bilitoolkit-plugin-image-downloader 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/CommentImages-C5waklbJ.js +1 -0
- package/dist/assets/DynamicImages-DL1vfgvT.js +1 -0
- package/dist/assets/LiveCover-BegVwZJ3.js +1 -0
- package/dist/assets/OpusImages-Y7TBDtw1.js +1 -0
- package/dist/assets/UserFace-DiLu1wxg.js +1 -0
- package/dist/assets/VideoCover-COFRm2-N.js +1 -0
- package/dist/assets/client-Ds0OqWOh.js +1 -0
- package/dist/assets/client-Sk2irmzh.css +1 -0
- package/dist/assets/index-Qez441I5.js +10 -0
- package/dist/index.html +1 -1
- package/package.json +5 -5
- package/readme.md +1 -1
- package/dist/assets/CommentEmoji-CxnaGCSF.css +0 -1
- package/dist/assets/CommentEmoji-Ds9e0mTx.js +0 -1
- package/dist/assets/DynamicEmoji-17Kes4sQ.css +0 -1
- package/dist/assets/DynamicEmoji-DXs3cpXt.js +0 -1
- package/dist/assets/OpusPics-BTsrV8AB.js +0 -1
- package/dist/assets/OpusPics-LCsfJPxA.css +0 -1
- package/dist/assets/UserFace-CVE5pVtF.css +0 -1
- package/dist/assets/UserFace-sEd7VSeX.js +0 -1
- package/dist/assets/VideoCover-CAWn5EZd.css +0 -1
- package/dist/assets/VideoCover-CmdqyAU7.js +0 -1
- package/dist/assets/download-DBjE6xGC.js +0 -1
- package/dist/assets/index-pBgDTaGA.js +0 -10
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CommentImages-C5waklbJ.js","./client-Ds0OqWOh.js","./client-Sk2irmzh.css","./DynamicImages-DL1vfgvT.js","./OpusImages-Y7TBDtw1.js","./UserFace-DiLu1wxg.js","./VideoCover-COFRm2-N.js","./LiveCover-BegVwZJ3.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();function Nc(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const We={},Bs=[],Rt=()=>{},vm=()=>!1,Ci=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ti=e=>e.startsWith("onUpdate:"),gt=Object.assign,Ic=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},dw=Object.prototype.hasOwnProperty,Pe=(e,t)=>dw.call(e,t),ue=Array.isArray,Os=e=>Js(e)==="[object Map]",ym=e=>Js(e)==="[object Set]",Wf=e=>Js(e)==="[object Date]",pw=e=>Js(e)==="[object RegExp]",me=e=>typeof e=="function",Ne=e=>typeof e=="string",Jt=e=>typeof e=="symbol",Te=e=>e!==null&&typeof e=="object",wm=e=>(Te(e)||me(e))&&me(e.then)&&me(e.catch),_m=Object.prototype.toString,Js=e=>_m.call(e),hw=e=>Js(e).slice(8,-1),Em=e=>Js(e)==="[object Object]",Ri=e=>Ne(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ro=Nc(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Pi=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},mw=/-\w/g,Pt=Pi(e=>e.replace(mw,t=>t.slice(1).toUpperCase())),gw=/\B([A-Z])/g,ps=Pi(e=>e.replace(gw,"-$1").toLowerCase()),Bi=Pi(e=>e.charAt(0).toUpperCase()+e.slice(1)),Wa=Pi(e=>e?`on${Bi(e)}`:""),Ln=(e,t)=>!Object.is(e,t),Po=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Am=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},bw=e=>{const t=parseFloat(e);return isNaN(t)?e:t},vw=e=>{const t=Ne(e)?Number(e):NaN;return isNaN(t)?e:t};let Df;const Oi=()=>Df||(Df=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function _n(e){if(ue(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=Ne(r)?Ew(r):_n(r);if(s)for(const o in s)t[o]=s[o]}return t}else if(Ne(e)||Te(e))return e}const yw=/;(?![^(]*\))/g,ww=/:([^]+)/,_w=/\/\*[^]*?\*\//g;function Ew(e){const t={};return e.replace(_w,"").split(yw).forEach(n=>{if(n){const r=n.split(ww);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Oe(e){let t="";if(Ne(e))t=e;else if(ue(e))for(let n=0;n<e.length;n++){const r=Oe(e[n]);r&&(t+=r+" ")}else if(Te(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Aw(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Ne(t)&&(e.class=Oe(t)),n&&(e.style=_n(n)),e}const Sw="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",xw=Nc(Sw);function Sm(e){return!!e||e===""}function Nw(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Cc(e[r],t[r]);return n}function Cc(e,t){if(e===t)return!0;let n=Wf(e),r=Wf(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Jt(e),r=Jt(t),n||r)return e===t;if(n=ue(e),r=ue(t),n||r)return n&&r?Nw(e,t):!1;if(n=Te(e),r=Te(t),n||r){if(!n||!r)return!1;const s=Object.keys(e).length,o=Object.keys(t).length;if(s!==o)return!1;for(const a in e){const i=e.hasOwnProperty(a),l=t.hasOwnProperty(a);if(i&&!l||!i&&l||!Cc(e[a],t[a]))return!1}}return String(e)===String(t)}const xm=e=>!!(e&&e.__v_isRef===!0),Wt=e=>Ne(e)?e:e==null?"":ue(e)||Te(e)&&(e.toString===_m||!me(e.toString))?xm(e)?Wt(e.value):JSON.stringify(e,Nm,2):String(e),Nm=(e,t)=>xm(t)?Nm(e,t.value):Os(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],o)=>(n[ll(r,o)+" =>"]=s,n),{})}:ym(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ll(n))}:Jt(t)?ll(t):Te(t)&&!ue(t)&&!Em(t)?String(t):t,ll=(e,t="")=>{var n;return Jt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};function Iw(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:String(e)}let pt;class Im{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&&pt&&(pt.active?(this.parent=pt,this.index=(pt.scopes||(pt.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=pt;try{return pt=this,t()}finally{pt=n}}}on(){++this._on===1&&(this.prevScope=pt,pt=this)}off(){if(this._on>0&&--this._on===0){if(pt===this)pt=this.prevScope;else{let t=pt;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,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function Cm(e){return new Im(e)}function Tc(){return pt}function Tm(e,t=!1){pt&&pt.cleanups.push(e)}let Ue;const ul=new WeakSet;class Rm{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,pt&&(pt.active?pt.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ul.has(this)&&(ul.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Bm(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Gf(this),Om(this);const t=Ue,n=vn;Ue=this,vn=!0;try{return this.fn()}finally{km(this),Ue=t,vn=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Bc(t);this.deps=this.depsTail=void 0,Gf(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ul.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Jl(this)&&this.run()}get dirty(){return Jl(this)}}let Pm=0,Bo,Oo;function Bm(e,t=!1){if(e.flags|=8,t){e.next=Oo,Oo=e;return}e.next=Bo,Bo=e}function Rc(){Pm++}function Pc(){if(--Pm>0)return;if(Oo){let t=Oo;for(Oo=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Bo;){let t=Bo;for(Bo=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Om(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function km(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Bc(r),Cw(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function Jl(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Fm(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Fm(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Zo)||(e.globalVersion=Zo,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Jl(e))))return;e.flags|=2;const t=e.dep,n=Ue,r=vn;Ue=e,vn=!0;try{Om(e);const s=e.fn(e._value);(t.version===0||Ln(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{Ue=n,vn=r,km(e),e.flags&=-3}}function Bc(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)Bc(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Cw(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let vn=!0;const Lm=[];function Dn(){Lm.push(vn),vn=!1}function Gn(){const e=Lm.pop();vn=e===void 0?!0:e}function Gf(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Ue;Ue=void 0;try{t()}finally{Ue=n}}}let Zo=0;class Tw{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Oc{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Ue||!vn||Ue===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Ue)n=this.activeLink=new Tw(Ue,this),Ue.deps?(n.prevDep=Ue.depsTail,Ue.depsTail.nextDep=n,Ue.depsTail=n):Ue.deps=Ue.depsTail=n,Mm(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=Ue.depsTail,n.nextDep=void 0,Ue.depsTail.nextDep=n,Ue.depsTail=n,Ue.deps===n&&(Ue.deps=r)}return n}trigger(t){this.version++,Zo++,this.notify(t)}notify(t){Rc();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Pc()}}}function Mm(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Mm(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const oi=new WeakMap,ns=Symbol(""),Ql=Symbol(""),Ko=Symbol("");function Ct(e,t,n){if(vn&&Ue){let r=oi.get(e);r||oi.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new Oc),s.map=r,s.key=n),s.track()}}function lr(e,t,n,r,s,o){const a=oi.get(e);if(!a){Zo++;return}const i=l=>{l&&l.trigger()};if(Rc(),t==="clear")a.forEach(i);else{const l=ue(e),u=l&&Ri(n);if(l&&n==="length"){const c=Number(r);a.forEach((f,d)=>{(d==="length"||d===Ko||!Jt(d)&&d>=c)&&i(f)})}else switch((n!==void 0||a.has(void 0))&&i(a.get(n)),u&&i(a.get(Ko)),t){case"add":l?u&&i(a.get("length")):(i(a.get(ns)),Os(e)&&i(a.get(Ql)));break;case"delete":l||(i(a.get(ns)),Os(e)&&i(a.get(Ql)));break;case"set":Os(e)&&i(a.get(ns));break}}Pc()}function Rw(e,t){const n=oi.get(e);return n&&n.get(t)}function ys(e){const t=Re(e);return t===e?t:(Ct(t,"iterate",Ko),zt(e)?t:t.map(En))}function ki(e){return Ct(e=Re(e),"iterate",Ko),e}function kn(e,t){return pr(e)?Ls($n(e)?En(t):t):En(t)}const Pw={__proto__:null,[Symbol.iterator](){return cl(this,Symbol.iterator,e=>kn(this,e))},concat(...e){return ys(this).concat(...e.map(t=>ue(t)?ys(t):t))},entries(){return cl(this,"entries",e=>(e[1]=kn(this,e[1]),e))},every(e,t){return Jn(this,"every",e,t,void 0,arguments)},filter(e,t){return Jn(this,"filter",e,t,n=>n.map(r=>kn(this,r)),arguments)},find(e,t){return Jn(this,"find",e,t,n=>kn(this,n),arguments)},findIndex(e,t){return Jn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Jn(this,"findLast",e,t,n=>kn(this,n),arguments)},findLastIndex(e,t){return Jn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Jn(this,"forEach",e,t,void 0,arguments)},includes(...e){return fl(this,"includes",e)},indexOf(...e){return fl(this,"indexOf",e)},join(e){return ys(this).join(e)},lastIndexOf(...e){return fl(this,"lastIndexOf",e)},map(e,t){return Jn(this,"map",e,t,void 0,arguments)},pop(){return lo(this,"pop")},push(...e){return lo(this,"push",e)},reduce(e,...t){return Yf(this,"reduce",e,t)},reduceRight(e,...t){return Yf(this,"reduceRight",e,t)},shift(){return lo(this,"shift")},some(e,t){return Jn(this,"some",e,t,void 0,arguments)},splice(...e){return lo(this,"splice",e)},toReversed(){return ys(this).toReversed()},toSorted(e){return ys(this).toSorted(e)},toSpliced(...e){return ys(this).toSpliced(...e)},unshift(...e){return lo(this,"unshift",e)},values(){return cl(this,"values",e=>kn(this,e))}};function cl(e,t,n){const r=ki(e),s=r[t]();return r!==e&&!zt(e)&&(s._next=s.next,s.next=()=>{const o=s._next();return o.done||(o.value=n(o.value)),o}),s}const Bw=Array.prototype;function Jn(e,t,n,r,s,o){const a=ki(e),i=a!==e&&!zt(e),l=a[t];if(l!==Bw[t]){const f=l.apply(e,o);return i?En(f):f}let u=n;a!==e&&(i?u=function(f,d){return n.call(this,kn(e,f),d,e)}:n.length>2&&(u=function(f,d){return n.call(this,f,d,e)}));const c=l.call(a,u,r);return i&&s?s(c):c}function Yf(e,t,n,r){const s=ki(e),o=s!==e&&!zt(e);let a=n,i=!1;s!==e&&(o?(i=r.length===0,a=function(u,c,f){return i&&(i=!1,u=kn(e,u)),n.call(this,u,kn(e,c),f,e)}):n.length>3&&(a=function(u,c,f){return n.call(this,u,c,f,e)}));const l=s[t](a,...r);return i?kn(e,l):l}function fl(e,t,n){const r=Re(e);Ct(r,"iterate",Ko);const s=r[t](...n);return(s===-1||s===!1)&&$i(n[0])?(n[0]=Re(n[0]),r[t](...n)):s}function lo(e,t,n=[]){Dn(),Rc();const r=Re(e)[t].apply(e,n);return Pc(),Gn(),r}const Ow=Nc("__proto__,__v_isRef,__isVue"),$m=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Jt));function kw(e){Jt(e)||(e=String(e));const t=Re(this);return Ct(t,"has",e),t.hasOwnProperty(e)}class Vm{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(s?o?jm:Um:o?Ym:Gm).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const a=ue(t);if(!s){let l;if(a&&(l=Pw[n]))return l;if(n==="hasOwnProperty")return kw}const i=Reflect.get(t,n,Ke(t)?t:r);if((Jt(n)?$m.has(n):Ow(n))||(s||Ct(t,"get",n),o))return i;if(Ke(i)){const l=a&&Ri(n)?i:i.value;return s&&Te(l)?Fs(l):l}return Te(i)?s?Fs(i):xn(i):i}}class Wm extends Vm{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];const a=ue(t)&&Ri(n);if(!this._isShallow){const u=pr(o);if(!zt(r)&&!pr(r)&&(o=Re(o),r=Re(r)),!a&&Ke(o)&&!Ke(r))return u||(o.value=r),!0}const i=a?Number(n)<t.length:Pe(t,n),l=Reflect.set(t,n,r,Ke(t)?t:s);return t===Re(s)&&l&&(i?Ln(r,o)&&lr(t,"set",n,r):lr(t,"add",n,r)),l}deleteProperty(t,n){const r=Pe(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&lr(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!Jt(n)||!$m.has(n))&&Ct(t,"has",n),r}ownKeys(t){return Ct(t,"iterate",ue(t)?"length":ns),Reflect.ownKeys(t)}}class Dm extends Vm{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Fw=new Wm,Lw=new Dm,Mw=new Wm(!0),$w=new Dm(!0),ql=e=>e,Aa=e=>Reflect.getPrototypeOf(e);function Vw(e,t,n){return function(...r){const s=this.__v_raw,o=Re(s),a=Os(o),i=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,u=s[e](...r),c=n?ql:t?Ls:En;return!t&&Ct(o,"iterate",l?Ql:ns),gt(Object.create(u),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:i?[c(f[0]),c(f[1])]:c(f),done:d}}})}}function Sa(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ww(e,t){const n={get(s){const o=this.__v_raw,a=Re(o),i=Re(s);e||(Ln(s,i)&&Ct(a,"get",s),Ct(a,"get",i));const{has:l}=Aa(a),u=t?ql:e?Ls:En;if(l.call(a,s))return u(o.get(s));if(l.call(a,i))return u(o.get(i));o!==a&&o.get(s)},get size(){const s=this.__v_raw;return!e&&Ct(Re(s),"iterate",ns),s.size},has(s){const o=this.__v_raw,a=Re(o),i=Re(s);return e||(Ln(s,i)&&Ct(a,"has",s),Ct(a,"has",i)),s===i?o.has(s):o.has(s)||o.has(i)},forEach(s,o){const a=this,i=a.__v_raw,l=Re(i),u=t?ql:e?Ls:En;return!e&&Ct(l,"iterate",ns),i.forEach((c,f)=>s.call(o,u(c),u(f),a))}};return gt(n,e?{add:Sa("add"),set:Sa("set"),delete:Sa("delete"),clear:Sa("clear")}:{add(s){const o=Re(this),a=Aa(o),i=Re(s),l=!t&&!zt(s)&&!pr(s)?i:s;return a.has.call(o,l)||Ln(s,l)&&a.has.call(o,s)||Ln(i,l)&&a.has.call(o,i)||(o.add(l),lr(o,"add",l,l)),this},set(s,o){!t&&!zt(o)&&!pr(o)&&(o=Re(o));const a=Re(this),{has:i,get:l}=Aa(a);let u=i.call(a,s);u||(s=Re(s),u=i.call(a,s));const c=l.call(a,s);return a.set(s,o),u?Ln(o,c)&&lr(a,"set",s,o):lr(a,"add",s,o),this},delete(s){const o=Re(this),{has:a,get:i}=Aa(o);let l=a.call(o,s);l||(s=Re(s),l=a.call(o,s)),i&&i.call(o,s);const u=o.delete(s);return l&&lr(o,"delete",s,void 0),u},clear(){const s=Re(this),o=s.size!==0,a=s.clear();return o&&lr(s,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Vw(s,e,t)}),n}function Fi(e,t){const n=Ww(e,t);return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(Pe(n,s)&&s in r?n:r,s,o)}const Dw={get:Fi(!1,!1)},Gw={get:Fi(!1,!0)},Yw={get:Fi(!0,!1)},Uw={get:Fi(!0,!0)},Gm=new WeakMap,Ym=new WeakMap,Um=new WeakMap,jm=new WeakMap;function jw(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function xn(e){return pr(e)?e:Mi(e,!1,Fw,Dw,Gm)}function Li(e){return Mi(e,!1,Mw,Gw,Ym)}function Fs(e){return Mi(e,!0,Lw,Yw,Um)}function Zw(e){return Mi(e,!0,$w,Uw,jm)}function Mi(e,t,n,r,s){if(!Te(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const o=s.get(e);if(o)return o;const a=jw(hw(e));if(a===0)return e;const i=new Proxy(e,a===2?r:n);return s.set(e,i),i}function $n(e){return pr(e)?$n(e.__v_raw):!!(e&&e.__v_isReactive)}function pr(e){return!!(e&&e.__v_isReadonly)}function zt(e){return!!(e&&e.__v_isShallow)}function $i(e){return e?!!e.__v_raw:!1}function Re(e){const t=e&&e.__v_raw;return t?Re(t):e}function kc(e){return!Pe(e,"__v_skip")&&Object.isExtensible(e)&&Am(e,"__v_skip",!0),e}const En=e=>Te(e)?xn(e):e,Ls=e=>Te(e)?Fs(e):e;function Ke(e){return e?e.__v_isRef===!0:!1}function Q(e){return Zm(e,!1)}function Qs(e){return Zm(e,!0)}function Zm(e,t){return Ke(e)?e:new Kw(e,t)}class Kw{constructor(t,n){this.dep=new Oc,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Re(t),this._value=n?t:En(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||zt(t)||pr(t);t=r?t:Re(t),Ln(t,n)&&(this._rawValue=t,this._value=r?t:En(t),this.dep.trigger())}}function A(e){return Ke(e)?e.value:e}function dr(e){return me(e)?e():A(e)}const Hw={get:(e,t,n)=>t==="__v_raw"?e:A(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return Ke(s)&&!Ke(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Km(e){return $n(e)?e:new Proxy(e,Hw)}function Xw(e){const t=ue(e)?new Array(e.length):{};for(const n in e)t[n]=Hm(e,n);return t}class zw{constructor(t,n,r){this._object=t,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._key=Jt(n)?n:String(n),this._raw=Re(t);let s=!0,o=t;if(!ue(t)||Jt(this._key)||!Ri(this._key))do s=!$i(o)||zt(o);while(s&&(o=o.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=A(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Ke(this._raw[this._key])){const n=this._object[this._key];if(Ke(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return Rw(this._raw,this._key)}}class Jw{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Et(e,t,n){return Ke(e)?e:me(e)?new Jw(e):Te(e)&&arguments.length>1?Hm(e,t,n):Q(e)}function Hm(e,t,n){return new zw(e,t,n)}class Qw{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Oc(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Zo-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Ue!==this)return Bm(this,!0),!0}get value(){const t=this.dep.track();return Fm(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function qw(e,t,n=!1){let r,s;return me(e)?r=e:(r=e.get,s=e.set),new Qw(r,s,n)}const xa={},ai=new WeakMap;let Hr;function e_(e,t=!1,n=Hr){if(n){let r=ai.get(n);r||ai.set(n,r=[]),r.push(e)}}function t_(e,t,n=We){const{immediate:r,deep:s,once:o,scheduler:a,augmentJob:i,call:l}=n,u=_=>s?_:zt(_)||s===!1||s===0?ur(_,1):ur(_);let c,f,d,p,h=!1,m=!1;if(Ke(e)?(f=()=>e.value,h=zt(e)):$n(e)?(f=()=>u(e),h=!0):ue(e)?(m=!0,h=e.some(_=>$n(_)||zt(_)),f=()=>e.map(_=>{if(Ke(_))return _.value;if($n(_))return u(_);if(me(_))return l?l(_,2):_()})):me(e)?t?f=l?()=>l(e,2):e:f=()=>{if(d){Dn();try{d()}finally{Gn()}}const _=Hr;Hr=c;try{return l?l(e,3,[p]):e(p)}finally{Hr=_}}:f=Rt,t&&s){const _=f,B=s===!0?1/0:s;f=()=>ur(_(),B)}const b=Tc(),y=()=>{c.stop(),b&&b.active&&Ic(b.effects,c)};if(o&&t){const _=t;t=(...B)=>{const G=_(...B);return y(),G}}let v=m?new Array(e.length).fill(xa):xa;const E=_=>{if(!(!(c.flags&1)||!c.dirty&&!_))if(t){const B=c.run();if(_||s||h||(m?B.some((G,P)=>Ln(G,v[P])):Ln(B,v))){d&&d();const G=Hr;Hr=c;try{const P=[B,v===xa?void 0:m&&v[0]===xa?[]:v,p];v=B,l?l(t,3,P):t(...P)}finally{Hr=G}}}else c.run()};return i&&i(E),c=new Rm(f),c.scheduler=a?()=>a(E,!1):E,p=_=>e_(_,!1,c),d=c.onStop=()=>{const _=ai.get(c);if(_){if(l)l(_,4);else for(const B of _)B();ai.delete(c)}},t?r?E(!0):v=c.run():a?a(E.bind(null,!0),!0):c.run(),y.pause=c.pause.bind(c),y.resume=c.resume.bind(c),y.stop=y,y}function ur(e,t=1/0,n){if(t<=0||!Te(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ke(e))ur(e.value,t,n);else if(ue(e))for(let r=0;r<e.length;r++)ur(e[r],t,n);else if(ym(e)||Os(e))e.forEach(r=>{ur(r,t,n)});else if(Em(e)){for(const r in e)ur(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&ur(e[r],t,n)}return e}function pa(e,t,n,r){try{return r?e(...r):e()}catch(s){Vi(s,t,n)}}function un(e,t,n,r){if(me(e)){const s=pa(e,t,n,r);return s&&wm(s)&&s.catch(o=>{Vi(o,t,n)}),s}if(ue(e)){const s=[];for(let o=0;o<e.length;o++)s.push(un(e[o],t,n,r));return s}}function Vi(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||We;if(t){let i=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const c=i.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,l,u)===!1)return}i=i.parent}if(o){Dn(),pa(o,null,10,[e,l,u]),Gn();return}}n_(e,n,s,r,a)}function n_(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const Lt=[];let On=-1;const ks=[];let Rr=null,Ns=0;const Xm=Promise.resolve();let ii=null;function cn(e){const t=ii||Xm;return e?t.then(this?e.bind(this):e):t}function r_(e){let t=On+1,n=Lt.length;for(;t<n;){const r=t+n>>>1,s=Lt[r],o=Ho(s);o<e||o===e&&s.flags&2?t=r+1:n=r}return t}function Fc(e){if(!(e.flags&1)){const t=Ho(e),n=Lt[Lt.length-1];!n||!(e.flags&2)&&t>=Ho(n)?Lt.push(e):Lt.splice(r_(t),0,e),e.flags|=1,zm()}}function zm(){ii||(ii=Xm.then(qm))}function Jm(e){ue(e)?ks.push(...e):Rr&&e.id===-1?Rr.splice(Ns+1,0,e):e.flags&1||(ks.push(e),e.flags|=1),zm()}function Uf(e,t,n=On+1){for(;n<Lt.length;n++){const r=Lt[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Lt.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Qm(e){if(ks.length){const t=[...new Set(ks)].sort((n,r)=>Ho(n)-Ho(r));if(ks.length=0,Rr){Rr.push(...t);return}for(Rr=t,Ns=0;Ns<Rr.length;Ns++){const n=Rr[Ns];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Rr=null,Ns=0}}const Ho=e=>e.id==null?e.flags&2?-1:1/0:e.id;function qm(e){try{for(On=0;On<Lt.length;On++){const t=Lt[On];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),pa(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;On<Lt.length;On++){const t=Lt[On];t&&(t.flags&=-2)}On=-1,Lt.length=0,Qm(),ii=null,(Lt.length||ks.length)&&qm()}}let At=null,eg=null;function li(e){const t=At;return At=e,eg=e&&e.type.__scopeId||null,t}function de(e,t=At,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&pi(-1);const o=li(t);let a;try{a=e(...s)}finally{li(o),r._d&&pi(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function qs(e,t){if(At===null)return e;const n=Yi(At),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[o,a,i,l=We]=t[s];o&&(me(o)&&(o={mounted:o,updated:o}),o.deep&&ur(a),r.push({dir:o,instance:n,value:a,oldValue:void 0,arg:i,modifiers:l}))}return e}function Gr(e,t,n,r){const s=e.dirs,o=t&&t.dirs;for(let a=0;a<s.length;a++){const i=s[a];o&&(i.oldValue=o[a].value);let l=i.dir[r];l&&(Dn(),un(l,n,8,[e.el,i,e,t]),Gn())}}function st(e,t){if(Tt){let n=Tt.provides;const r=Tt.parent&&Tt.parent.provides;r===n&&(n=Tt.provides=Object.create(r)),n[e]=t}}function be(e,t,n=!1){const r=ot();if(r||ss){let s=ss?ss._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&me(t)?t.call(r&&r.proxy):t}}function s_(){return!!(ot()||ss)}const o_=Symbol.for("v-scx"),a_=()=>be(o_);function tg(e,t){return Lc(e,null,t)}function Ie(e,t,n){return Lc(e,t,n)}function Lc(e,t,n=We){const{immediate:r,deep:s,flush:o,once:a}=n,i=gt({},n),l=t&&r||!t&&o!=="post";let u;if(zo){if(o==="sync"){const p=a_();u=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){const p=()=>{};return p.stop=Rt,p.resume=Rt,p.pause=Rt,p}}const c=Tt;i.call=(p,h,m)=>un(p,c,h,m);let f=!1;o==="post"?i.scheduler=p=>{ht(p,c&&c.suspense)}:o!=="sync"&&(f=!0,i.scheduler=(p,h)=>{h?p():Fc(p)}),i.augmentJob=p=>{t&&(p.flags|=4),f&&(p.flags|=2,c&&(p.id=c.uid,p.i=c))};const d=t_(e,t,i);return zo&&(u?u.push(d):l&&d()),d}function i_(e,t,n){const r=this.proxy,s=Ne(e)?e.includes(".")?ng(r,e):()=>r[e]:e.bind(r,r);let o;me(t)?o=t:(o=t.handler,n=t);const a=ma(this),i=Lc(s,o.bind(r),n);return a(),i}function ng(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}const Er=new WeakMap,rg=Symbol("_vte"),sg=e=>e.__isTeleport,Qr=e=>e&&(e.disabled||e.disabled===""),l_=e=>e&&(e.defer||e.defer===""),jf=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Zf=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,eu=(e,t)=>{const n=e&&e.to;return Ne(n)?t?t(n):null:n},u_={name:"Teleport",__isTeleport:!0,process(e,t,n,r,s,o,a,i,l,u){const{mc:c,pc:f,pbc:d,o:{insert:p,querySelector:h,createText:m,createComment:b,parentNode:y}}=u,v=Qr(t.props);let{dynamicChildren:E}=t;const _=(P,O,R)=>{P.shapeFlag&16&&c(P.children,O,R,s,o,a,i,l)},B=(P=t)=>{const O=Qr(P.props),R=P.target=eu(P.props,h),F=tu(R,P,m,p);R&&(a!=="svg"&&jf(R)?a="svg":a!=="mathml"&&Zf(R)&&(a="mathml"),s&&s.isCE&&(s.ce._teleportTargets||(s.ce._teleportTargets=new Set)).add(R),O||(_(P,R,F),wo(P,!1)))},G=P=>{const O=()=>{if(Er.get(P)===O){if(Er.delete(P),Qr(P.props)){const R=y(P.el)||n;_(P,R,P.anchor),wo(P,!0)}B(P)}};Er.set(P,O),ht(O,o)};if(e==null){const P=t.el=m(""),O=t.anchor=m("");if(p(P,n,r),p(O,n,r),l_(t.props)||o&&o.pendingBranch){G(t);return}v&&(_(t,n,O),wo(t,!0)),B()}else{t.el=e.el;const P=t.anchor=e.anchor,O=Er.get(e);if(O){O.flags|=8,Er.delete(e),G(t);return}t.targetStart=e.targetStart;const R=t.target=e.target,F=t.targetAnchor=e.targetAnchor,W=Qr(e.props),k=W?n:R,U=W?P:F;if(a==="svg"||jf(R)?a="svg":(a==="mathml"||Zf(R))&&(a="mathml"),E?(d(e.dynamicChildren,E,k,s,o,a,i),Dc(e,t,!0)):l||f(e,t,k,U,s,o,a,i,!1),v)W?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Na(t,n,P,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const K=eu(t.props,h);K&&(t.target=K,Na(t,K,null,u,0))}else W&&Na(t,R,F,u,1);wo(t,v)}},remove(e,t,n,{um:r,o:{remove:s}},o){const{shapeFlag:a,children:i,anchor:l,targetStart:u,targetAnchor:c,target:f,props:d}=e,p=Qr(d),h=o||!p,m=Er.get(e);if(m&&(m.flags|=8,Er.delete(e)),f&&(s(u),s(c)),o&&s(l),!m&&(p||f)&&a&16)for(let b=0;b<i.length;b++){const y=i[b];r(y,t,n,h,!!y.dynamicChildren)}},move:Na,hydrate:c_};function Na(e,t,n,{o:{insert:r},m:s},o=2){o===0&&r(e.targetAnchor,t,n);const{el:a,anchor:i,shapeFlag:l,children:u,props:c}=e,f=o===2;if(f&&r(a,t,n),!Er.has(e)&&(!f||Qr(c))&&l&16)for(let d=0;d<u.length;d++)s(u[d],t,n,2);f&&r(i,t,n)}function c_(e,t,n,r,s,o,{o:{nextSibling:a,parentNode:i,querySelector:l,insert:u,createText:c}},f){function d(b,y){let v=y;for(;v;){if(v&&v.nodeType===8){if(v.data==="teleport start anchor")t.targetStart=v;else if(v.data==="teleport anchor"){t.targetAnchor=v,b._lpa=t.targetAnchor&&a(t.targetAnchor);break}}v=a(v)}}function p(b,y){y.anchor=f(a(b),y,i(b),n,r,s,o)}const h=t.target=eu(t.props,l),m=Qr(t.props);if(h){const b=h._lpa||h.firstChild;t.shapeFlag&16&&(m?(p(e,t),d(h,b),t.targetAnchor||tu(h,t,c,u,i(e)===h?e:null)):(t.anchor=a(e),d(h,b),t.targetAnchor||tu(h,t,c,u),f(b&&a(b),t,h,n,r,s,o))),wo(t,m)}else m&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=a(e));return t.anchor&&a(t.anchor)}const f_=u_;function wo(e,t){const n=e.ctx;if(n&&n.ut){let r,s;for(t?(r=e.el,s=e.anchor):(r=e.targetStart,s=e.targetAnchor);r&&r!==s;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function tu(e,t,n,r,s=null){const o=t.targetStart=n(""),a=t.targetAnchor=n("");return o[rg]=a,e&&(r(o,e,s),r(a,e,s)),a}const an=Symbol("_leaveCb"),uo=Symbol("_enterCb");function d_(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return it(()=>{e.isMounted=!0}),vt(()=>{e.isUnmounting=!0}),e}const en=[Function,Array],og={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:en,onEnter:en,onAfterEnter:en,onEnterCancelled:en,onBeforeLeave:en,onLeave:en,onAfterLeave:en,onLeaveCancelled:en,onBeforeAppear:en,onAppear:en,onAfterAppear:en,onAppearCancelled:en},ag=e=>{const t=e.subTree;return t.component?ag(t.component):t},p_={name:"BaseTransition",props:og,setup(e,{slots:t}){const n=ot(),r=d_();return()=>{const s=t.default&&ug(t.default(),!0),o=s&&s.length?ig(s):n.subTree?et():void 0;if(!o)return;const a=Re(e),{mode:i}=a;if(r.isLeaving)return dl(o);const l=Kf(o);if(!l)return dl(o);let u=nu(l,a,r,n,f=>u=f);l.type!==mt&&Ms(l,u);let c=n.subTree&&Kf(n.subTree);if(c&&c.type!==mt&&!Or(c,l)&&ag(n).type!==mt){let f=nu(c,a,r,n);if(Ms(c,f),i==="out-in"&&l.type!==mt)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,c=void 0},dl(o);i==="in-out"&&l.type!==mt?f.delayLeave=(d,p,h)=>{const m=lg(r,c);m[String(c.key)]=c,d[an]=()=>{p(),d[an]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{h(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return o}}};function ig(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==mt){t=n;break}}return t}const h_=p_;function lg(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function nu(e,t,n,r,s){const{appear:o,mode:a,persisted:i=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:d,onLeave:p,onAfterLeave:h,onLeaveCancelled:m,onBeforeAppear:b,onAppear:y,onAfterAppear:v,onAppearCancelled:E}=t,_=String(e.key),B=lg(n,e),G=(R,F)=>{R&&un(R,r,9,F)},P=(R,F)=>{const W=F[1];G(R,F),ue(R)?R.every(k=>k.length<=1)&&W():R.length<=1&&W()},O={mode:a,persisted:i,beforeEnter(R){let F=l;if(!n.isMounted)if(o)F=b||l;else return;R[an]&&R[an](!0);const W=B[_];W&&Or(e,W)&&W.el[an]&&W.el[an](),G(F,[R])},enter(R){if(B[_]===e)return;let F=u,W=c,k=f;if(!n.isMounted)if(o)F=y||u,W=v||c,k=E||f;else return;let U=!1;R[uo]=j=>{U||(U=!0,j?G(k,[R]):G(W,[R]),O.delayedLeave&&O.delayedLeave(),R[uo]=void 0)};const K=R[uo].bind(null,!1);F?P(F,[R,K]):K()},leave(R,F){const W=String(e.key);if(R[uo]&&R[uo](!0),n.isUnmounting)return F();G(d,[R]);let k=!1;R[an]=K=>{k||(k=!0,F(),K?G(m,[R]):G(h,[R]),R[an]=void 0,B[W]===e&&delete B[W])};const U=R[an].bind(null,!1);B[W]=e,p?P(p,[R,U]):U()},clone(R){const F=nu(R,t,n,r,s);return s&&s(F),F}};return O}function dl(e){if(Wi(e))return e=Yn(e),e.children=null,e}function Kf(e){if(!Wi(e))return sg(e.type)&&e.children?ig(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&me(n.default))return n.default()}}function Ms(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Ms(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ug(e,t=!1,n){let r=[],s=0;for(let o=0;o<e.length;o++){let a=e[o];const i=n==null?a.key:String(n)+String(a.key!=null?a.key:o);a.type===qe?(a.patchFlag&128&&s++,r=r.concat(ug(a.children,t,i))):(t||a.type!==mt)&&r.push(i!=null?Yn(a,{key:i}):a)}if(s>1)for(let o=0;o<r.length;o++)r[o].patchFlag=-2;return r}function he(e,t){return me(e)?gt({name:e.name},t,{setup:e}):e}function cg(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function m_(e){const t=ot(),n=Qs(null);if(t){const s=t.refs===We?t.refs={}:t.refs;Object.defineProperty(s,e,{enumerable:!0,get:()=>n.value,set:o=>n.value=o})}return n}function Hf(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const ui=new WeakMap;function ko(e,t,n,r,s=!1){if(ue(e)){e.forEach((m,b)=>ko(m,t&&(ue(t)?t[b]:t),n,r,s));return}if(Lr(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&ko(e,t,n,r.component.subTree);return}const o=r.shapeFlag&4?Yi(r.component):r.el,a=s?null:o,{i,r:l}=e,u=t&&t.r,c=i.refs===We?i.refs={}:i.refs,f=i.setupState,d=Re(f),p=f===We?vm:m=>Hf(c,m)?!1:Pe(d,m),h=(m,b)=>!(b&&Hf(c,b));if(u!=null&&u!==l){if(Xf(t),Ne(u))c[u]=null,p(u)&&(f[u]=null);else if(Ke(u)){const m=t;h(u,m.k)&&(u.value=null),m.k&&(c[m.k]=null)}}if(me(l)){Dn();try{pa(l,i,12,[a,c])}finally{Gn()}}else{const m=Ne(l),b=Ke(l);if(m||b){const y=()=>{if(e.f){const v=m?p(l)?f[l]:c[l]:h()||!e.k?l.value:c[e.k];if(s)ue(v)&&Ic(v,o);else if(ue(v))v.includes(o)||v.push(o);else if(m)c[l]=[o],p(l)&&(f[l]=c[l]);else{const E=[o];h(l,e.k)&&(l.value=E),e.k&&(c[e.k]=E)}}else m?(c[l]=a,p(l)&&(f[l]=a)):b&&(h(l,e.k)&&(l.value=a),e.k&&(c[e.k]=a))};if(a){const v=()=>{y(),ui.delete(e)};v.id=-1,ui.set(e,v),ht(v,n)}else Xf(e),y()}}}function Xf(e){const t=ui.get(e);t&&(t.flags|=8,ui.delete(e))}Oi().requestIdleCallback;Oi().cancelIdleCallback;const Lr=e=>!!e.type.__asyncLoader,Wi=e=>e.type.__isKeepAlive,g_={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=ot(),r=n.ctx;if(!r.renderer)return()=>{const v=t.default&&t.default();return v&&v.length===1?v[0]:v};const s=new Map,o=new Set;let a=null;const i=n.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:f}}}=r,d=f("div");r.activate=(v,E,_,B,G)=>{const P=v.component;u(v,E,_,0,i),l(P.vnode,v,E,_,P,i,B,v.slotScopeIds,G),ht(()=>{P.isDeactivated=!1,P.a&&Po(P.a);const O=v.props&&v.props.onVnodeMounted;O&&on(O,P.parent,v)},i)},r.deactivate=v=>{const E=v.component;fi(E.m),fi(E.a),u(v,d,null,1,i),ht(()=>{E.da&&Po(E.da);const _=v.props&&v.props.onVnodeUnmounted;_&&on(_,E.parent,v),E.isDeactivated=!0},i)};function p(v){pl(v),c(v,n,i,!0)}function h(v){s.forEach((E,_)=>{const B=lu(Lr(E)?E.type.__asyncResolved||{}:E.type);B&&!v(B)&&m(_)})}function m(v){const E=s.get(v);E&&(!a||!Or(E,a))?p(E):a&&pl(a),s.delete(v),o.delete(v)}Ie(()=>[e.include,e.exclude],([v,E])=>{v&&h(_=>_o(v,_)),E&&h(_=>!_o(E,_))},{flush:"post",deep:!0});let b=null;const y=()=>{b!=null&&(di(n.subTree.type)?ht(()=>{s.set(b,Ia(n.subTree))},n.subTree.suspense):s.set(b,Ia(n.subTree)))};return it(y),Mc(y),vt(()=>{s.forEach(v=>{const{subTree:E,suspense:_}=n,B=Ia(E);if(v.type===B.type&&v.key===B.key){pl(B);const G=B.component.da;G&&ht(G,_);return}p(v)})}),()=>{if(b=null,!t.default)return a=null;const v=t.default(),E=v[0];if(v.length>1)return a=null,v;if(!yn(E)||!(E.shapeFlag&4)&&!(E.shapeFlag&128))return a=null,E;let _=Ia(E);if(_.type===mt)return a=null,_;const B=_.type,G=lu(Lr(_)?_.type.__asyncResolved||{}:B),{include:P,exclude:O,max:R}=e;if(P&&(!G||!_o(P,G))||O&&G&&_o(O,G))return _.shapeFlag&=-257,a=_,E;const F=_.key==null?B:_.key,W=s.get(F);return _.el&&(_=Yn(_),E.shapeFlag&128&&(E.ssContent=_)),b=F,W?(_.el=W.el,_.component=W.component,_.transition&&Ms(_,_.transition),_.shapeFlag|=512,o.delete(F),o.add(F)):(o.add(F),R&&o.size>parseInt(R,10)&&m(o.values().next().value)),_.shapeFlag|=256,a=_,di(E.type)?E:_}}},b_=g_;function _o(e,t){return ue(e)?e.some(n=>_o(n,t)):Ne(e)?e.split(",").includes(t):pw(e)?(e.lastIndex=0,e.test(t)):!1}function fg(e,t){pg(e,"a",t)}function dg(e,t){pg(e,"da",t)}function pg(e,t,n=Tt){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Di(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Wi(s.parent.vnode)&&v_(r,t,n,s),s=s.parent}}function v_(e,t,n,r){const s=Di(t,e,r,!0);ha(()=>{Ic(r[t],s)},n)}function pl(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Ia(e){return e.shapeFlag&128?e.ssContent:e}function Di(e,t,n=Tt,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...a)=>{Dn();const i=ma(n),l=un(t,n,e,a);return i(),Gn(),l});return r?s.unshift(o):s.push(o),o}}const mr=e=>(t,n=Tt)=>{(!zo||e==="sp")&&Di(e,(...r)=>t(...r),n)},hg=mr("bm"),it=mr("m"),mg=mr("bu"),Mc=mr("u"),vt=mr("bum"),ha=mr("um"),y_=mr("sp"),w_=mr("rtg"),__=mr("rtc");function E_(e,t=Tt){Di("ec",e,t)}const $c="components";function Vt(e,t){return bg($c,e,!0,t)||e}const gg=Symbol.for("v-ndc");function rs(e){return Ne(e)?bg($c,e,!1)||e:e||gg}function bg(e,t,n=!0,r=!1){const s=At||Tt;if(s){const o=s.type;if(e===$c){const i=lu(o,!1);if(i&&(i===t||i===Pt(t)||i===Bi(Pt(t))))return o}const a=zf(s[e]||o[e],t)||zf(s.appContext[e],t);return!a&&r?o:a}}function zf(e,t){return e&&(e[t]||e[Pt(t)]||e[Bi(Pt(t))])}function vg(e,t,n,r){let s;const o=n,a=ue(e);if(a||Ne(e)){const i=a&&$n(e);let l=!1,u=!1;i&&(l=!zt(e),u=pr(e),e=ki(e)),s=new Array(e.length);for(let c=0,f=e.length;c<f;c++)s[c]=t(l?u?Ls(En(e[c])):En(e[c]):e[c],c,void 0,o)}else if(typeof e=="number"){s=new Array(e);for(let i=0;i<e;i++)s[i]=t(i+1,i,void 0,o)}else if(Te(e))if(e[Symbol.iterator])s=Array.from(e,(i,l)=>t(i,l,void 0,o));else{const i=Object.keys(e);s=new Array(i.length);for(let l=0,u=i.length;l<u;l++){const c=i[l];s[l]=t(e[c],c,l,o)}}else s=[];return s}function yg(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(ue(r))for(let s=0;s<r.length;s++)e[r[s].name]=r[s].fn;else r&&(e[r.name]=r.key?(...s)=>{const o=r.fn(...s);return o&&(o.key=r.key),o}:r.fn)}return e}function we(e,t,n={},r,s){if(At.ce||At.parent&&Lr(At.parent)&&At.parent.ce){const u=Object.keys(n).length>0;return t!=="default"&&(n.name=t),z(),xe(qe,null,[Ae("slot",n,r&&r())],u?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),z();const a=o&&wg(o(n)),i=n.key||a&&a.key,l=xe(qe,{key:(i&&!Jt(i)?i:`_${t}`)+(!a&&r?"_fb":"")},a||(r?r():[]),a&&e._===1?64:-2);return!s&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function wg(e){return e.some(t=>yn(t)?!(t.type===mt||t.type===qe&&!wg(t.children)):!0)?e:null}function A_(e,t){const n={};for(const r in e)n[Wa(r)]=e[r];return n}const ru=e=>e?Dg(e)?Yi(e):ru(e.parent):null,Fo=gt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ru(e.parent),$root:e=>ru(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Sg(e),$forceUpdate:e=>e.f||(e.f=()=>{Fc(e.update)}),$nextTick:e=>e.n||(e.n=cn.bind(e.proxy)),$watch:e=>i_.bind(e)}),hl=(e,t)=>e!==We&&!e.__isScriptSetup&&Pe(e,t),S_={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:o,accessCache:a,type:i,appContext:l}=e;if(t[0]!=="$"){const d=a[t];if(d!==void 0)switch(d){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(hl(r,t))return a[t]=1,r[t];if(s!==We&&Pe(s,t))return a[t]=2,s[t];if(Pe(o,t))return a[t]=3,o[t];if(n!==We&&Pe(n,t))return a[t]=4,n[t];su&&(a[t]=0)}}const u=Fo[t];let c,f;if(u)return t==="$attrs"&&Ct(e.attrs,"get",""),u(e);if((c=i.__cssModules)&&(c=c[t]))return c;if(n!==We&&Pe(n,t))return a[t]=4,n[t];if(f=l.config.globalProperties,Pe(f,t))return f[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return hl(s,t)?(s[t]=n,!0):r!==We&&Pe(r,t)?(r[t]=n,!0):Pe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,props:o,type:a}},i){let l;return!!(n[i]||e!==We&&i[0]!=="$"&&Pe(e,i)||hl(t,i)||Pe(o,i)||Pe(r,i)||Pe(Fo,i)||Pe(s.config.globalProperties,i)||(l=a.__cssModules)&&l[i])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Pe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function _g(){return Eg().slots}function OO(){return Eg().attrs}function Eg(e){const t=ot();return t.setupContext||(t.setupContext=Yg(t))}function Jf(e){return ue(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let su=!0;function x_(e){const t=Sg(e),n=e.proxy,r=e.ctx;su=!1,t.beforeCreate&&Qf(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:a,watch:i,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:p,updated:h,activated:m,deactivated:b,beforeDestroy:y,beforeUnmount:v,destroyed:E,unmounted:_,render:B,renderTracked:G,renderTriggered:P,errorCaptured:O,serverPrefetch:R,expose:F,inheritAttrs:W,components:k,directives:U,filters:K}=t;if(u&&N_(u,r,null),a)for(const I in a){const C=a[I];me(C)&&(r[I]=C.bind(n))}if(s){const I=s.call(n,n);Te(I)&&(e.data=xn(I))}if(su=!0,o)for(const I in o){const C=o[I],H=me(C)?C.bind(n,n):me(C.get)?C.get.bind(n,n):Rt,re=!me(C)&&me(C.set)?C.set.bind(n):Rt,le=T({get:H,set:re});Object.defineProperty(r,I,{enumerable:!0,configurable:!0,get:()=>le.value,set:ae=>le.value=ae})}if(i)for(const I in i)Ag(i[I],r,n,I);if(l){const I=me(l)?l.call(n):l;Reflect.ownKeys(I).forEach(C=>{st(C,I[C])})}c&&Qf(c,e,"c");function M(I,C){ue(C)?C.forEach(H=>I(H.bind(n))):C&&I(C.bind(n))}if(M(hg,f),M(it,d),M(mg,p),M(Mc,h),M(fg,m),M(dg,b),M(E_,O),M(__,G),M(w_,P),M(vt,v),M(ha,_),M(y_,R),ue(F))if(F.length){const I=e.exposed||(e.exposed={});F.forEach(C=>{Object.defineProperty(I,C,{get:()=>n[C],set:H=>n[C]=H,enumerable:!0})})}else e.exposed||(e.exposed={});B&&e.render===Rt&&(e.render=B),W!=null&&(e.inheritAttrs=W),k&&(e.components=k),U&&(e.directives=U),R&&cg(e)}function N_(e,t,n=Rt){ue(e)&&(e=ou(e));for(const r in e){const s=e[r];let o;Te(s)?"default"in s?o=be(s.from||r,s.default,!0):o=be(s.from||r):o=be(s),Ke(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):t[r]=o}}function Qf(e,t,n){un(ue(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ag(e,t,n,r){let s=r.includes(".")?ng(n,r):()=>n[r];if(Ne(e)){const o=t[e];me(o)&&Ie(s,o)}else if(me(e))Ie(s,e.bind(n));else if(Te(e))if(ue(e))e.forEach(o=>Ag(o,t,n,r));else{const o=me(e.handler)?e.handler.bind(n):t[e.handler];me(o)&&Ie(s,o,e)}}function Sg(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,i=o.get(t);let l;return i?l=i:!s.length&&!n&&!r?l=t:(l={},s.length&&s.forEach(u=>ci(l,u,a,!0)),ci(l,t,a)),Te(t)&&o.set(t,l),l}function ci(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&ci(e,o,n,!0),s&&s.forEach(a=>ci(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const i=I_[a]||n&&n[a];e[a]=i?i(e[a],t[a]):t[a]}return e}const I_={data:qf,props:ed,emits:ed,methods:Eo,computed:Eo,beforeCreate:Bt,created:Bt,beforeMount:Bt,mounted:Bt,beforeUpdate:Bt,updated:Bt,beforeDestroy:Bt,beforeUnmount:Bt,destroyed:Bt,unmounted:Bt,activated:Bt,deactivated:Bt,errorCaptured:Bt,serverPrefetch:Bt,components:Eo,directives:Eo,watch:T_,provide:qf,inject:C_};function qf(e,t){return t?e?function(){return gt(me(e)?e.call(this,this):e,me(t)?t.call(this,this):t)}:t:e}function C_(e,t){return Eo(ou(e),ou(t))}function ou(e){if(ue(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Bt(e,t){return e?[...new Set([].concat(e,t))]:t}function Eo(e,t){return e?gt(Object.create(null),e,t):t}function ed(e,t){return e?ue(e)&&ue(t)?[...new Set([...e,...t])]:gt(Object.create(null),Jf(e),Jf(t??{})):t}function T_(e,t){if(!e)return t;if(!t)return e;const n=gt(Object.create(null),e);for(const r in t)n[r]=Bt(e[r],t[r]);return n}function xg(){return{app:null,config:{isNativeTag:vm,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let R_=0;function P_(e,t){return function(r,s=null){me(r)||(r=gt({},r)),s!=null&&!Te(s)&&(s=null);const o=xg(),a=new WeakSet,i=[];let l=!1;const u=o.app={_uid:R_++,_component:r,_props:s,_container:null,_context:o,_instance:null,version:oE,get config(){return o.config},set config(c){},use(c,...f){return a.has(c)||(c&&me(c.install)?(a.add(c),c.install(u,...f)):me(c)&&(a.add(c),c(u,...f))),u},mixin(c){return o.mixins.includes(c)||o.mixins.push(c),u},component(c,f){return f?(o.components[c]=f,u):o.components[c]},directive(c,f){return f?(o.directives[c]=f,u):o.directives[c]},mount(c,f,d){if(!l){const p=u._ceVNode||Ae(r,s);return p.appContext=o,d===!0?d="svg":d===!1&&(d=void 0),e(p,c,d),l=!0,u._container=c,c.__vue_app__=u,Yi(p.component)}},onUnmount(c){i.push(c)},unmount(){l&&(un(i,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,f){return o.provides[c]=f,u},runWithContext(c){const f=ss;ss=u;try{return c()}finally{ss=f}}};return u}}let ss=null;const B_=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Pt(t)}Modifiers`]||e[`${ps(t)}Modifiers`];function O_(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||We;let s=n;const o=t.startsWith("update:"),a=o&&B_(r,t.slice(7));a&&(a.trim&&(s=n.map(c=>Ne(c)?c.trim():c)),a.number&&(s=n.map(bw)));let i,l=r[i=Wa(t)]||r[i=Wa(Pt(t))];!l&&o&&(l=r[i=Wa(ps(t))]),l&&un(l,e,6,s);const u=r[i+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[i])return;e.emitted[i]=!0,un(u,e,6,s)}}const k_=new WeakMap;function Ng(e,t,n=!1){const r=n?k_:t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let a={},i=!1;if(!me(e)){const l=u=>{const c=Ng(u,t,!0);c&&(i=!0,gt(a,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!i?(Te(e)&&r.set(e,null),null):(ue(o)?o.forEach(l=>a[l]=null):gt(a,o),Te(e)&&r.set(e,a),a)}function Gi(e,t){return!e||!Ci(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),Pe(e,t[0].toLowerCase()+t.slice(1))||Pe(e,ps(t))||Pe(e,t))}function td(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[o],slots:a,attrs:i,emit:l,render:u,renderCache:c,props:f,data:d,setupState:p,ctx:h,inheritAttrs:m}=e,b=li(e);let y,v;try{if(n.shapeFlag&4){const _=s||r,B=_;y=Fn(u.call(B,_,c,f,p,d,h)),v=i}else{const _=t;y=Fn(_.length>1?_(f,{attrs:i,slots:a,emit:l}):_(f,null)),v=t.props?i:F_(i)}}catch(_){Lo.length=0,Vi(_,e,1),y=Ae(mt)}let E=y;if(v&&m!==!1){const _=Object.keys(v),{shapeFlag:B}=E;_.length&&B&7&&(o&&_.some(Ti)&&(v=L_(v,o)),E=Yn(E,v,!1,!0))}return n.dirs&&(E=Yn(E,null,!1,!0),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&Ms(E,n.transition),y=E,li(b),y}const F_=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ci(n))&&((t||(t={}))[n]=e[n]);return t},L_=(e,t)=>{const n={};for(const r in e)(!Ti(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function M_(e,t,n){const{props:r,children:s,component:o}=e,{props:a,children:i,patchFlag:l}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?nd(r,a,u):!!a;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const d=c[f];if(Ig(a,r,d)&&!Gi(u,d))return!0}}}else return(s||i)&&(!i||!i.$stable)?!0:r===a?!1:r?a?nd(r,a,u):!0:!!a;return!1}function nd(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const o=r[s];if(Ig(t,e,o)&&!Gi(n,o))return!0}return!1}function Ig(e,t,n){const r=e[n],s=t[n];return n==="style"&&Te(r)&&Te(s)?!Cc(r,s):r!==s}function $_({vnode:e,parent:t,suspense:n},r){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.suspense.vnode.el=s.el=r,e=s),s===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}const Cg={},Tg=()=>Object.create(Cg),Rg=e=>Object.getPrototypeOf(e)===Cg;function V_(e,t,n,r=!1){const s={},o=Tg();e.propsDefaults=Object.create(null),Pg(e,t,s,o);for(const a in e.propsOptions[0])a in s||(s[a]=void 0);n?e.props=r?s:Li(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function W_(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:a}}=e,i=Re(s),[l]=e.propsOptions;let u=!1;if((r||a>0)&&!(a&16)){if(a&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let d=c[f];if(Gi(e.emitsOptions,d))continue;const p=t[d];if(l)if(Pe(o,d))p!==o[d]&&(o[d]=p,u=!0);else{const h=Pt(d);s[h]=au(l,i,h,p,e,!1)}else p!==o[d]&&(o[d]=p,u=!0)}}}else{Pg(e,t,s,o)&&(u=!0);let c;for(const f in i)(!t||!Pe(t,f)&&((c=ps(f))===f||!Pe(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(s[f]=au(l,i,f,void 0,e,!0)):delete s[f]);if(o!==i)for(const f in o)(!t||!Pe(t,f))&&(delete o[f],u=!0)}u&&lr(e.attrs,"set","")}function Pg(e,t,n,r){const[s,o]=e.propsOptions;let a=!1,i;if(t)for(let l in t){if(Ro(l))continue;const u=t[l];let c;s&&Pe(s,c=Pt(l))?!o||!o.includes(c)?n[c]=u:(i||(i={}))[c]=u:Gi(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,a=!0)}if(o){const l=Re(n),u=i||We;for(let c=0;c<o.length;c++){const f=o[c];n[f]=au(s,l,f,u[f],e,!Pe(u,f))}}return a}function au(e,t,n,r,s,o){const a=e[n];if(a!=null){const i=Pe(a,"default");if(i&&r===void 0){const l=a.default;if(a.type!==Function&&!a.skipFactory&&me(l)){const{propsDefaults:u}=s;if(n in u)r=u[n];else{const c=ma(s);r=u[n]=l.call(null,t),c()}}else r=l;s.ce&&s.ce._setProp(n,r)}a[0]&&(o&&!i?r=!1:a[1]&&(r===""||r===ps(n))&&(r=!0))}return r}const D_=new WeakMap;function Bg(e,t,n=!1){const r=n?D_:t.propsCache,s=r.get(e);if(s)return s;const o=e.props,a={},i=[];let l=!1;if(!me(e)){const c=f=>{l=!0;const[d,p]=Bg(f,t,!0);gt(a,d),p&&i.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!o&&!l)return Te(e)&&r.set(e,Bs),Bs;if(ue(o))for(let c=0;c<o.length;c++){const f=Pt(o[c]);rd(f)&&(a[f]=We)}else if(o)for(const c in o){const f=Pt(c);if(rd(f)){const d=o[c],p=a[f]=ue(d)||me(d)?{type:d}:gt({},d),h=p.type;let m=!1,b=!0;if(ue(h))for(let y=0;y<h.length;++y){const v=h[y],E=me(v)&&v.name;if(E==="Boolean"){m=!0;break}else E==="String"&&(b=!1)}else m=me(h)&&h.name==="Boolean";p[0]=m,p[1]=b,(m||Pe(p,"default"))&&i.push(f)}}const u=[a,i];return Te(e)&&r.set(e,u),u}function rd(e){return e[0]!=="$"&&!Ro(e)}const Vc=e=>e==="_"||e==="_ctx"||e==="$stable",Wc=e=>ue(e)?e.map(Fn):[Fn(e)],G_=(e,t,n)=>{if(t._n)return t;const r=de((...s)=>Wc(t(...s)),n);return r._c=!1,r},Og=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Vc(s))continue;const o=e[s];if(me(o))t[s]=G_(s,o,r);else if(o!=null){const a=Wc(o);t[s]=()=>a}}},kg=(e,t)=>{const n=Wc(t);e.slots.default=()=>n},Fg=(e,t,n)=>{for(const r in t)(n||!Vc(r))&&(e[r]=t[r])},Y_=(e,t,n)=>{const r=e.slots=Tg();if(e.vnode.shapeFlag&32){const s=t._;s?(Fg(r,t,n),n&&Am(r,"_",s,!0)):Og(t,r)}else t&&kg(e,t)},U_=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,a=We;if(r.shapeFlag&32){const i=t._;i?n&&i===1?o=!1:Fg(s,t,n):(o=!t.$stable,Og(t,s)),a=t}else t&&(kg(e,t),a={default:1});if(o)for(const i in s)!Vc(i)&&a[i]==null&&delete s[i]},ht=X_;function j_(e){return Z_(e)}function Z_(e,t){const n=Oi();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:a,createText:i,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:p=Rt,insertStaticContent:h}=e,m=(g,w,S,V=null,Y=null,$=null,ne=void 0,ee=null,X=!!w.dynamicChildren)=>{if(g===w)return;g&&!Or(g,w)&&(V=L(g),ae(g,Y,$,!0),g=null),w.patchFlag===-2&&(X=!1,w.dynamicChildren=null);const{type:Z,ref:ge,shapeFlag:oe}=w;switch(Z){case eo:b(g,w,S,V);break;case mt:y(g,w,S,V);break;case Da:g==null&&v(w,S,V,ne);break;case qe:k(g,w,S,V,Y,$,ne,ee,X);break;default:oe&1?B(g,w,S,V,Y,$,ne,ee,X):oe&6?U(g,w,S,V,Y,$,ne,ee,X):(oe&64||oe&128)&&Z.process(g,w,S,V,Y,$,ne,ee,X,ie)}ge!=null&&Y?ko(ge,g&&g.ref,$,w||g,!w):ge==null&&g&&g.ref!=null&&ko(g.ref,null,$,g,!0)},b=(g,w,S,V)=>{if(g==null)r(w.el=i(w.children),S,V);else{const Y=w.el=g.el;w.children!==g.children&&u(Y,w.children)}},y=(g,w,S,V)=>{g==null?r(w.el=l(w.children||""),S,V):w.el=g.el},v=(g,w,S,V)=>{[g.el,g.anchor]=h(g.children,w,S,V,g.el,g.anchor)},E=({el:g,anchor:w},S,V)=>{let Y;for(;g&&g!==w;)Y=d(g),r(g,S,V),g=Y;r(w,S,V)},_=({el:g,anchor:w})=>{let S;for(;g&&g!==w;)S=d(g),s(g),g=S;s(w)},B=(g,w,S,V,Y,$,ne,ee,X)=>{if(w.type==="svg"?ne="svg":w.type==="math"&&(ne="mathml"),g==null)G(w,S,V,Y,$,ne,ee,X);else{const Z=g.el&&g.el._isVueCE?g.el:null;try{Z&&Z._beginPatch(),R(g,w,Y,$,ne,ee,X)}finally{Z&&Z._endPatch()}}},G=(g,w,S,V,Y,$,ne,ee)=>{let X,Z;const{props:ge,shapeFlag:oe,transition:fe,dirs:ve}=g;if(X=g.el=a(g.type,$,ge&&ge.is,ge),oe&8?c(X,g.children):oe&16&&O(g.children,X,null,V,Y,ml(g,$),ne,ee),ve&&Gr(g,null,V,"created"),P(X,g,g.scopeId,ne,V),ge){for(const Fe in ge)Fe!=="value"&&!Ro(Fe)&&o(X,Fe,null,ge[Fe],$,V);"value"in ge&&o(X,"value",null,ge.value,$),(Z=ge.onVnodeBeforeMount)&&on(Z,V,g)}ve&&Gr(g,null,V,"beforeMount");const Ce=K_(Y,fe);Ce&&fe.beforeEnter(X),r(X,w,S),((Z=ge&&ge.onVnodeMounted)||Ce||ve)&&ht(()=>{Z&&on(Z,V,g),Ce&&fe.enter(X),ve&&Gr(g,null,V,"mounted")},Y)},P=(g,w,S,V,Y)=>{if(S&&p(g,S),V)for(let $=0;$<V.length;$++)p(g,V[$]);if(Y){let $=Y.subTree;if(w===$||di($.type)&&($.ssContent===w||$.ssFallback===w)){const ne=Y.vnode;P(g,ne,ne.scopeId,ne.slotScopeIds,Y.parent)}}},O=(g,w,S,V,Y,$,ne,ee,X=0)=>{for(let Z=X;Z<g.length;Z++){const ge=g[Z]=ee?ar(g[Z]):Fn(g[Z]);m(null,ge,w,S,V,Y,$,ne,ee)}},R=(g,w,S,V,Y,$,ne)=>{const ee=w.el=g.el;let{patchFlag:X,dynamicChildren:Z,dirs:ge}=w;X|=g.patchFlag&16;const oe=g.props||We,fe=w.props||We;let ve;if(S&&Yr(S,!1),(ve=fe.onVnodeBeforeUpdate)&&on(ve,S,w,g),ge&&Gr(w,g,S,"beforeUpdate"),S&&Yr(S,!0),Z&&(!g.dynamicChildren||g.dynamicChildren.length!==Z.length)&&(X=0,ne=!1,Z=null),(oe.innerHTML&&fe.innerHTML==null||oe.textContent&&fe.textContent==null)&&c(ee,""),Z?F(g.dynamicChildren,Z,ee,S,V,ml(w,Y),$):ne||C(g,w,ee,null,S,V,ml(w,Y),$,!1),X>0){if(X&16)W(ee,oe,fe,S,Y);else if(X&2&&oe.class!==fe.class&&o(ee,"class",null,fe.class,Y),X&4&&o(ee,"style",oe.style,fe.style,Y),X&8){const Ce=w.dynamicProps;for(let Fe=0;Fe<Ce.length;Fe++){const ke=Ce[Fe],lt=oe[ke],yt=fe[ke];(yt!==lt||ke==="value")&&o(ee,ke,lt,yt,Y,S)}}X&1&&g.children!==w.children&&c(ee,w.children)}else!ne&&Z==null&&W(ee,oe,fe,S,Y);((ve=fe.onVnodeUpdated)||ge)&&ht(()=>{ve&&on(ve,S,w,g),ge&&Gr(w,g,S,"updated")},V)},F=(g,w,S,V,Y,$,ne)=>{for(let ee=0;ee<w.length;ee++){const X=g[ee],Z=w[ee],ge=X.el&&(X.type===qe||!Or(X,Z)||X.shapeFlag&198)?f(X.el):S;m(X,Z,ge,null,V,Y,$,ne,!0)}},W=(g,w,S,V,Y)=>{if(w!==S){if(w!==We)for(const $ in w)!Ro($)&&!($ in S)&&o(g,$,w[$],null,Y,V);for(const $ in S){if(Ro($))continue;const ne=S[$],ee=w[$];ne!==ee&&$!=="value"&&o(g,$,ee,ne,Y,V)}"value"in S&&o(g,"value",w.value,S.value,Y)}},k=(g,w,S,V,Y,$,ne,ee,X)=>{const Z=w.el=g?g.el:i(""),ge=w.anchor=g?g.anchor:i("");let{patchFlag:oe,dynamicChildren:fe,slotScopeIds:ve}=w;ve&&(ee=ee?ee.concat(ve):ve),g==null?(r(Z,S,V),r(ge,S,V),O(w.children||[],S,ge,Y,$,ne,ee,X)):oe>0&&oe&64&&fe&&g.dynamicChildren&&g.dynamicChildren.length===fe.length?(F(g.dynamicChildren,fe,S,Y,$,ne,ee),(w.key!=null||Y&&w===Y.subTree)&&Dc(g,w,!0)):C(g,w,S,ge,Y,$,ne,ee,X)},U=(g,w,S,V,Y,$,ne,ee,X)=>{w.slotScopeIds=ee,g==null?w.shapeFlag&512?Y.ctx.activate(w,S,V,ne,X):K(w,S,V,Y,$,ne,X):j(g,w,X)},K=(g,w,S,V,Y,$,ne)=>{const ee=g.component=eE(g,V,Y);if(Wi(g)&&(ee.ctx.renderer=ie),tE(ee,!1,ne),ee.asyncDep){if(Y&&Y.registerDep(ee,M,ne),!g.el){const X=ee.subTree=Ae(mt);y(null,X,w,S),g.placeholder=X.el}}else M(ee,g,w,S,Y,$,ne)},j=(g,w,S)=>{const V=w.component=g.component;if(M_(g,w,S))if(V.asyncDep&&!V.asyncResolved){I(V,w,S);return}else V.next=w,V.update();else w.el=g.el,V.vnode=w},M=(g,w,S,V,Y,$,ne)=>{const ee=()=>{if(g.isMounted){let{next:oe,bu:fe,u:ve,parent:Ce,vnode:Fe}=g;{const In=Lg(g);if(In){oe&&(oe.el=Fe.el,I(g,oe,ne)),In.asyncDep.then(()=>{ht(()=>{g.isUnmounted||Z()},Y)});return}}let ke=oe,lt;Yr(g,!1),oe?(oe.el=Fe.el,I(g,oe,ne)):oe=Fe,fe&&Po(fe),(lt=oe.props&&oe.props.onVnodeBeforeUpdate)&&on(lt,Ce,oe,Fe),Yr(g,!0);const yt=td(g),Nn=g.subTree;g.subTree=yt,m(Nn,yt,f(Nn.el),L(Nn),g,Y,$),oe.el=yt.el,ke===null&&$_(g,yt.el),ve&&ht(ve,Y),(lt=oe.props&&oe.props.onVnodeUpdated)&&ht(()=>on(lt,Ce,oe,Fe),Y)}else{let oe;const{el:fe,props:ve}=w,{bm:Ce,m:Fe,parent:ke,root:lt,type:yt}=g,Nn=Lr(w);Yr(g,!1),Ce&&Po(Ce),!Nn&&(oe=ve&&ve.onVnodeBeforeMount)&&on(oe,ke,w),Yr(g,!0);{lt.ce&<.ce._hasShadowRoot()&<.ce._injectChildStyle(yt,g.parent?g.parent.type:void 0);const In=g.subTree=td(g);m(null,In,S,V,g,Y,$),w.el=In.el}if(Fe&&ht(Fe,Y),!Nn&&(oe=ve&&ve.onVnodeMounted)){const In=w;ht(()=>on(oe,ke,In),Y)}(w.shapeFlag&256||ke&&Lr(ke.vnode)&&ke.vnode.shapeFlag&256)&&g.a&&ht(g.a,Y),g.isMounted=!0,w=S=V=null}};g.scope.on();const X=g.effect=new Rm(ee);g.scope.off();const Z=g.update=X.run.bind(X),ge=g.job=X.runIfDirty.bind(X);ge.i=g,ge.id=g.uid,X.scheduler=()=>Fc(ge),Yr(g,!0),Z()},I=(g,w,S)=>{w.component=g;const V=g.vnode.props;g.vnode=w,g.next=null,W_(g,w.props,V,S),U_(g,w.children,S),Dn(),Uf(g),Gn()},C=(g,w,S,V,Y,$,ne,ee,X=!1)=>{const Z=g&&g.children,ge=g?g.shapeFlag:0,oe=w.children,{patchFlag:fe,shapeFlag:ve}=w;if(fe>0){if(fe&128){re(Z,oe,S,V,Y,$,ne,ee,X);return}else if(fe&256){H(Z,oe,S,V,Y,$,ne,ee,X);return}}ve&8?(ge&16&&Qe(Z,Y,$),oe!==Z&&c(S,oe)):ge&16?ve&16?re(Z,oe,S,V,Y,$,ne,ee,X):Qe(Z,Y,$,!0):(ge&8&&c(S,""),ve&16&&O(oe,S,V,Y,$,ne,ee,X))},H=(g,w,S,V,Y,$,ne,ee,X)=>{g=g||Bs,w=w||Bs;const Z=g.length,ge=w.length,oe=Math.min(Z,ge);let fe;for(fe=0;fe<oe;fe++){const ve=w[fe]=X?ar(w[fe]):Fn(w[fe]);m(g[fe],ve,S,null,Y,$,ne,ee,X)}Z>ge?Qe(g,Y,$,!0,!1,oe):O(w,S,V,Y,$,ne,ee,X,oe)},re=(g,w,S,V,Y,$,ne,ee,X)=>{let Z=0;const ge=w.length;let oe=g.length-1,fe=ge-1;for(;Z<=oe&&Z<=fe;){const ve=g[Z],Ce=w[Z]=X?ar(w[Z]):Fn(w[Z]);if(Or(ve,Ce))m(ve,Ce,S,null,Y,$,ne,ee,X);else break;Z++}for(;Z<=oe&&Z<=fe;){const ve=g[oe],Ce=w[fe]=X?ar(w[fe]):Fn(w[fe]);if(Or(ve,Ce))m(ve,Ce,S,null,Y,$,ne,ee,X);else break;oe--,fe--}if(Z>oe){if(Z<=fe){const ve=fe+1,Ce=ve<ge?w[ve].el:V;for(;Z<=fe;)m(null,w[Z]=X?ar(w[Z]):Fn(w[Z]),S,Ce,Y,$,ne,ee,X),Z++}}else if(Z>fe)for(;Z<=oe;)ae(g[Z],Y,$,!0),Z++;else{const ve=Z,Ce=Z,Fe=new Map;for(Z=Ce;Z<=fe;Z++){const jt=w[Z]=X?ar(w[Z]):Fn(w[Z]);jt.key!=null&&Fe.set(jt.key,Z)}let ke,lt=0;const yt=fe-Ce+1;let Nn=!1,In=0;const io=new Array(yt);for(Z=0;Z<yt;Z++)io[Z]=0;for(Z=ve;Z<=oe;Z++){const jt=g[Z];if(lt>=yt){ae(jt,Y,$,!0);continue}let Cn;if(jt.key!=null)Cn=Fe.get(jt.key);else for(ke=Ce;ke<=fe;ke++)if(io[ke-Ce]===0&&Or(jt,w[ke])){Cn=ke;break}Cn===void 0?ae(jt,Y,$,!0):(io[Cn-Ce]=Z+1,Cn>=In?In=Cn:Nn=!0,m(jt,w[Cn],S,null,Y,$,ne,ee,X),lt++)}const Mf=Nn?H_(io):Bs;for(ke=Mf.length-1,Z=yt-1;Z>=0;Z--){const jt=Ce+Z,Cn=w[jt],$f=w[jt+1],Vf=jt+1<ge?$f.el||Mg($f):V;io[Z]===0?m(null,Cn,S,Vf,Y,$,ne,ee,X):Nn&&(ke<0||Z!==Mf[ke]?le(Cn,S,Vf,2):ke--)}}},le=(g,w,S,V,Y=null)=>{const{el:$,type:ne,transition:ee,children:X,shapeFlag:Z}=g;if(Z&6){le(g.component.subTree,w,S,V);return}if(Z&128){g.suspense.move(w,S,V);return}if(Z&64){ne.move(g,w,S,ie);return}if(ne===qe){r($,w,S);for(let oe=0;oe<X.length;oe++)le(X[oe],w,S,V);r(g.anchor,w,S);return}if(ne===Da){E(g,w,S);return}if(V!==2&&Z&1&&ee)if(V===0)ee.persisted&&!$[an]?r($,w,S):(ee.beforeEnter($),r($,w,S),ht(()=>ee.enter($),Y));else{const{leave:oe,delayLeave:fe,afterLeave:ve}=ee,Ce=()=>{g.ctx.isUnmounted?s($):r($,w,S)},Fe=()=>{const ke=$._isLeaving||!!$[an];$._isLeaving&&$[an](!0),ee.persisted&&!ke?Ce():oe($,()=>{Ce(),ve&&ve()})};fe?fe($,Ce,Fe):Fe()}else r($,w,S)},ae=(g,w,S,V=!1,Y=!1)=>{const{type:$,props:ne,ref:ee,children:X,dynamicChildren:Z,shapeFlag:ge,patchFlag:oe,dirs:fe,cacheIndex:ve,memo:Ce}=g;if(oe===-2&&(Y=!1),ee!=null&&(Dn(),ko(ee,null,S,g,!0),Gn()),ve!=null&&(w.renderCache[ve]=void 0),ge&256){w.ctx.deactivate(g);return}const Fe=ge&1&&fe,ke=!Lr(g);let lt;if(ke&&(lt=ne&&ne.onVnodeBeforeUnmount)&&on(lt,w,g),ge&6)Be(g.component,S,V);else{if(ge&128){g.suspense.unmount(S,V);return}Fe&&Gr(g,null,w,"beforeUnmount"),ge&64?g.type.remove(g,w,S,ie,V):Z&&!Z.hasOnce&&($!==qe||oe>0&&oe&64)?Qe(Z,w,S,!1,!0):($===qe&&oe&384||!Y&&ge&16)&&Qe(X,w,S),V&&Se(g)}const yt=Ce!=null&&ve==null;(ke&&(lt=ne&&ne.onVnodeUnmounted)||Fe||yt)&&ht(()=>{lt&&on(lt,w,g),Fe&&Gr(g,null,w,"unmounted"),yt&&(g.el=null)},S)},Se=g=>{const{type:w,el:S,anchor:V,transition:Y}=g;if(w===qe){ye(S,V);return}if(w===Da){_(g);return}const $=()=>{s(S),Y&&!Y.persisted&&Y.afterLeave&&Y.afterLeave()};if(g.shapeFlag&1&&Y&&!Y.persisted){const{leave:ne,delayLeave:ee}=Y,X=()=>ne(S,$);ee?ee(g.el,$,X):X()}else $()},ye=(g,w)=>{let S;for(;g!==w;)S=d(g),s(g),g=S;s(w)},Be=(g,w,S)=>{const{bum:V,scope:Y,job:$,subTree:ne,um:ee,m:X,a:Z}=g;fi(X),fi(Z),V&&Po(V),Y.stop(),$&&($.flags|=8,ae(ne,g,w,S)),ee&&ht(ee,w),ht(()=>{g.isUnmounted=!0},w)},Qe=(g,w,S,V=!1,Y=!1,$=0)=>{for(let ne=$;ne<g.length;ne++)ae(g[ne],w,S,V,Y)},L=g=>{if(g.shapeFlag&6)return L(g.component.subTree);if(g.shapeFlag&128)return g.suspense.next();const w=d(g.anchor||g.el),S=w&&w[rg];return S?d(S):w};let te=!1;const q=(g,w,S)=>{let V;g==null?w._vnode&&(ae(w._vnode,null,null,!0),V=w._vnode.component):m(w._vnode||null,g,w,null,null,null,S),w._vnode=g,te||(te=!0,Uf(V),Qm(),te=!1)},ie={p:m,um:ae,m:le,r:Se,mt:K,mc:O,pc:C,pbc:F,n:L,o:e};return{render:q,hydrate:void 0,createApp:P_(q)}}function ml({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Yr({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function K_(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Dc(e,t,n=!1){const r=e.children,s=t.children;if(ue(r)&&ue(s))for(let o=0;o<r.length;o++){const a=r[o];let i=s[o];i.shapeFlag&1&&!i.dynamicChildren&&((i.patchFlag<=0||i.patchFlag===32)&&(i=s[o]=ar(s[o]),i.el=a.el),!n&&i.patchFlag!==-2&&Dc(a,i)),i.type===eo&&(i.patchFlag===-1&&(i=s[o]=ar(i)),i.el=a.el),i.type===mt&&!i.el&&(i.el=a.el)}}function H_(e){const t=e.slice(),n=[0];let r,s,o,a,i;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(s=n[n.length-1],e[s]<u){t[r]=s,n.push(r);continue}for(o=0,a=n.length-1;o<a;)i=o+a>>1,e[n[i]]<u?o=i+1:a=i;u<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,a=n[o-1];o-- >0;)n[o]=a,a=t[a];return n}function Lg(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Lg(t)}function fi(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Mg(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Mg(t.subTree):null}const di=e=>e.__isSuspense;function X_(e,t){t&&t.pendingBranch?ue(e)?t.effects.push(...e):t.effects.push(e):Jm(e)}const qe=Symbol.for("v-fgt"),eo=Symbol.for("v-txt"),mt=Symbol.for("v-cmt"),Da=Symbol.for("v-stc"),Lo=[];let Xt=null;function z(e=!1){Lo.push(Xt=e?null:[])}function z_(){Lo.pop(),Xt=Lo[Lo.length-1]||null}let Xo=1;function pi(e,t=!1){Xo+=e,e<0&&Xt&&t&&(Xt.hasOnce=!0)}function $g(e){return e.dynamicChildren=Xo>0?Xt||Bs:null,z_(),Xo>0&&Xt&&Xt.push(e),e}function Ee(e,t,n,r,s,o){return $g(pe(e,t,n,r,s,o,!0))}function xe(e,t,n,r,s){return $g(Ae(e,t,n,r,s,!0))}function yn(e){return e?e.__v_isVNode===!0:!1}function Or(e,t){return e.type===t.type&&e.key===t.key}const Vg=({key:e})=>e??null,Ga=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ne(e)||Ke(e)||me(e)?{i:At,r:e,k:t,f:!!n}:e:null);function pe(e,t=null,n=null,r=0,s=null,o=e===qe?0:1,a=!1,i=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Vg(t),ref:t&&Ga(t),scopeId:eg,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:At};return i?(hi(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=Ne(n)?8:16),Xo>0&&!a&&Xt&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Xt.push(l),l}const Ae=J_;function J_(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===gg)&&(e=mt),yn(e)){const i=Yn(e,t,!0);return n&&hi(i,n),Xo>0&&!o&&Xt&&(i.shapeFlag&6?Xt[Xt.indexOf(e)]=i:Xt.push(i)),i.patchFlag=-2,i}if(sE(e)&&(e=e.__vccOpts),t){t=Wg(t);let{class:i,style:l}=t;i&&!Ne(i)&&(t.class=Oe(i)),Te(l)&&($i(l)&&!ue(l)&&(l=gt({},l)),t.style=_n(l))}const a=Ne(e)?1:di(e)?128:sg(e)?64:Te(e)?4:me(e)?2:0;return pe(e,t,n,r,s,a,o,!0)}function Wg(e){return e?$i(e)||Rg(e)?gt({},e):e:null}function Yn(e,t,n=!1,r=!1){const{props:s,ref:o,patchFlag:a,children:i,transition:l}=e,u=t?Yt(s||{},t):s,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Vg(u),ref:t&&t.ref?n&&o?ue(o)?o.concat(Ga(t)):[o,Ga(t)]:Ga(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==qe?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Yn(e.ssContent),ssFallback:e.ssFallback&&Yn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Ms(c,l.clone(c)),c}function Un(e=" ",t=0){return Ae(eo,null,e,t)}function et(e="",t=!1){return t?(z(),xe(mt,null,e)):Ae(mt,null,e)}function Fn(e){return e==null||typeof e=="boolean"?Ae(mt):ue(e)?Ae(qe,null,e.slice()):yn(e)?ar(e):Ae(eo,null,String(e))}function ar(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Yn(e)}function hi(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ue(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),hi(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Rg(t)?t._ctx=At:s===3&&At&&(At.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(me(t)){if(r&65){hi(e,{default:t});return}t={default:t,_ctx:At},n=32}else t=String(t),r&64?(n=16,t=[Un(t)]):n=8;e.children=t,e.shapeFlag|=n}function Yt(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=Oe([t.class,r.class]));else if(s==="style")t.style=_n([t.style,r.style]);else if(Ci(s)){const o=t[s],a=r[s];a&&o!==a&&!(ue(o)&&o.includes(a))?t[s]=o?[].concat(o,a):a:a==null&&o==null&&!Ti(s)&&(t[s]=a)}else s!==""&&(t[s]=r[s])}return t}function on(e,t,n,r=null){un(e,t,7,[n,r])}const Q_=xg();let q_=0;function eE(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||Q_,o={uid:q_++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Im(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Bg(r,s),emitsOptions:Ng(r,s),emit:null,emitted:null,propsDefaults:We,inheritAttrs:r.inheritAttrs,ctx:We,data:We,props:We,attrs:We,slots:We,refs:We,setupState:We,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=O_.bind(null,o),e.ce&&e.ce(o),o}let Tt=null;const ot=()=>Tt||At;let mi,iu;{const e=Oi(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),o=>{s.length>1?s.forEach(a=>a(o)):s[0](o)}};mi=t("__VUE_INSTANCE_SETTERS__",n=>Tt=n),iu=t("__VUE_SSR_SETTERS__",n=>zo=n)}const ma=e=>{const t=Tt;return mi(e),e.scope.on(),()=>{e.scope.off(),mi(t)}},sd=()=>{Tt&&Tt.scope.off(),mi(null)};function Dg(e){return e.vnode.shapeFlag&4}let zo=!1;function tE(e,t=!1,n=!1){t&&iu(t);const{props:r,children:s}=e.vnode,o=Dg(e);V_(e,r,o,t),Y_(e,s,n||t);const a=o?nE(e,t):void 0;return t&&iu(!1),a}function nE(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,S_);const{setup:r}=n;if(r){Dn();const s=e.setupContext=r.length>1?Yg(e):null,o=ma(e),a=pa(r,e,0,[e.props,s]),i=wm(a);if(Gn(),o(),(i||e.sp)&&!Lr(e)&&cg(e),i){if(a.then(sd,sd),t)return a.then(l=>{od(e,l)}).catch(l=>{Vi(l,e,0)});e.asyncDep=a}else od(e,a)}else Gg(e)}function od(e,t,n){me(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Te(t)&&(e.setupState=Km(t)),Gg(e)}function Gg(e,t,n){const r=e.type;e.render||(e.render=r.render||Rt);{const s=ma(e);Dn();try{x_(e)}finally{Gn(),s()}}}const rE={get(e,t){return Ct(e,"get",""),e[t]}};function Yg(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,rE),slots:e.slots,emit:e.emit,expose:t}}function Yi(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Km(kc(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Fo)return Fo[n](e)},has(t,n){return n in t||n in Fo}})):e.proxy}function lu(e,t=!0){return me(e)?e.displayName||e.name:e.name||t&&e.__name}function sE(e){return me(e)&&"__vccOpts"in e}const T=(e,t)=>qw(e,t,zo);function ut(e,t,n){try{pi(-1);const r=arguments.length;return r===2?Te(t)&&!ue(t)?yn(t)?Ae(e,null,[t]):Ae(e,t):Ae(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&yn(n)&&(n=[n]),Ae(e,t,n))}finally{pi(1)}}const oE="3.5.39",aE=Rt;let uu;const ad=typeof window<"u"&&window.trustedTypes;if(ad)try{uu=ad.createPolicy("vue",{createHTML:e=>e})}catch{}const Ug=uu?e=>uu.createHTML(e):e=>e,iE="http://www.w3.org/2000/svg",lE="http://www.w3.org/1998/Math/MathML",sr=typeof document<"u"?document:null,id=sr&&sr.createElement("template"),uE={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?sr.createElementNS(iE,e):t==="mathml"?sr.createElementNS(lE,e):n?sr.createElement(e,{is:n}):sr.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>sr.createTextNode(e),createComment:e=>sr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>sr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,o){const a=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{id.innerHTML=Ug(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const i=id.content;if(r==="svg"||r==="mathml"){const l=i.firstChild;for(;l.firstChild;)i.appendChild(l.firstChild);i.removeChild(l)}t.insertBefore(i,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},wr="transition",co="animation",Jo=Symbol("_vtc"),jg={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},cE=gt({},og,jg),fE=e=>(e.displayName="Transition",e.props=cE,e),to=fE((e,{slots:t})=>ut(h_,dE(e),t)),Ur=(e,t=[])=>{ue(e)?e.forEach(n=>n(...t)):e&&e(...t)},ld=e=>e?ue(e)?e.some(t=>t.length>1):e.length>1:!1;function dE(e){const t={};for(const k in e)k in jg||(t[k]=e[k]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:o=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:i=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:u=a,appearToClass:c=i,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,h=pE(s),m=h&&h[0],b=h&&h[1],{onBeforeEnter:y,onEnter:v,onEnterCancelled:E,onLeave:_,onLeaveCancelled:B,onBeforeAppear:G=y,onAppear:P=v,onAppearCancelled:O=E}=t,R=(k,U,K,j)=>{k._enterCancelled=j,jr(k,U?c:i),jr(k,U?u:a),K&&K()},F=(k,U)=>{k._isLeaving=!1,jr(k,f),jr(k,p),jr(k,d),U&&U()},W=k=>(U,K)=>{const j=k?P:v,M=()=>R(U,k,K);Ur(j,[U,M]),ud(()=>{jr(U,k?l:o),Qn(U,k?c:i),ld(j)||cd(U,r,m,M)})};return gt(t,{onBeforeEnter(k){Ur(y,[k]),Qn(k,o),Qn(k,a)},onBeforeAppear(k){Ur(G,[k]),Qn(k,l),Qn(k,u)},onEnter:W(!1),onAppear:W(!0),onLeave(k,U){k._isLeaving=!0;const K=()=>F(k,U);Qn(k,f),k._enterCancelled?(Qn(k,d),pd(k)):(pd(k),Qn(k,d)),ud(()=>{k._isLeaving&&(jr(k,f),Qn(k,p),ld(_)||cd(k,r,b,K))}),Ur(_,[k,K])},onEnterCancelled(k){R(k,!1,void 0,!0),Ur(E,[k])},onAppearCancelled(k){R(k,!0,void 0,!0),Ur(O,[k])},onLeaveCancelled(k){F(k),Ur(B,[k])}})}function pE(e){if(e==null)return null;if(Te(e))return[gl(e.enter),gl(e.leave)];{const t=gl(e);return[t,t]}}function gl(e){return vw(e)}function Qn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Jo]||(e[Jo]=new Set)).add(t)}function jr(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Jo];n&&(n.delete(t),n.size||(e[Jo]=void 0))}function ud(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let hE=0;function cd(e,t,n,r){const s=e._endId=++hE,o=()=>{s===e._endId&&r()};if(n!=null)return setTimeout(o,n);const{type:a,timeout:i,propCount:l}=mE(e,t);if(!a)return r();const u=a+"end";let c=0;const f=()=>{e.removeEventListener(u,d),o()},d=p=>{p.target===e&&++c>=l&&f()};setTimeout(()=>{c<l&&f()},i+1),e.addEventListener(u,d)}function mE(e,t){const n=window.getComputedStyle(e),r=h=>(n[h]||"").split(", "),s=r(`${wr}Delay`),o=r(`${wr}Duration`),a=fd(s,o),i=r(`${co}Delay`),l=r(`${co}Duration`),u=fd(i,l);let c=null,f=0,d=0;t===wr?a>0&&(c=wr,f=a,d=o.length):t===co?u>0&&(c=co,f=u,d=l.length):(f=Math.max(a,u),c=f>0?a>u?wr:co:null,d=c?c===wr?o.length:l.length:0);const p=c===wr&&/\b(?:transform|all)(?:,|$)/.test(r(`${wr}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:p}}function fd(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>dd(n)+dd(e[r])))}function dd(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function pd(e){return(e?e.ownerDocument:document).body.offsetHeight}function gE(e,t,n){const r=e[Jo];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const gi=Symbol("_vod"),Zg=Symbol("_vsh"),Ui={name:"show",beforeMount(e,{value:t},{transition:n}){e[gi]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):fo(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),fo(e,!0),r.enter(e)):r.leave(e,()=>{fo(e,!1)}):fo(e,t))},beforeUnmount(e,{value:t}){fo(e,t)}};function fo(e,t){e.style.display=t?e[gi]:"none",e[Zg]=!t}const Kg=Symbol("");function bE(e){const t=ot();if(!t)return;const n=t.ut=(s=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(o=>bi(o,s))},r=()=>{const s=e(t.proxy);t.ce?bi(t.ce,s):cu(t.subTree,s),n(s)};mg(()=>{Jm(r)}),it(()=>{Ie(r,Rt,{flush:"post"});const s=new MutationObserver(r);s.observe(t.subTree.el.parentNode,{childList:!0}),ha(()=>s.disconnect())})}function cu(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{cu(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)bi(e.el,t);else if(e.type===qe)e.children.forEach(n=>cu(n,t));else if(e.type===Da){let{el:n,anchor:r}=e;for(;n&&(bi(n,t),n!==r);)n=n.nextSibling}}function bi(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const s in t){const o=Iw(t[s]);n.setProperty(`--${s}`,o),r+=`--${s}: ${o};`}n[Kg]=r}}const vE=/(?:^|;)\s*display\s*:/;function yE(e,t,n){const r=e.style,s=Ne(n);let o=!1;if(n&&!s){if(t)if(Ne(t))for(const a of t.split(";")){const i=a.slice(0,a.indexOf(":")).trim();n[i]==null&&Ao(r,i,"")}else for(const a in t)n[a]==null&&Ao(r,a,"");for(const a in n){a==="display"&&(o=!0);const i=n[a];i!=null?_E(e,a,!Ne(t)&&t?t[a]:void 0,i)||Ao(r,a,i):Ao(r,a,"")}}else if(s){if(t!==n){const a=r[Kg];a&&(n+=";"+a),r.cssText=n,o=vE.test(n)}}else t&&e.removeAttribute("style");gi in e&&(e[gi]=o?r.display:"",e[Zg]&&(r.display="none"))}const hd=/\s*!important$/;function Ao(e,t,n){if(ue(n))n.forEach(r=>Ao(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=wE(e,t);hd.test(n)?e.setProperty(ps(r),n.replace(hd,""),"important"):e[r]=n}}const md=["Webkit","Moz","ms"],bl={};function wE(e,t){const n=bl[t];if(n)return n;let r=Pt(t);if(r!=="filter"&&r in e)return bl[t]=r;r=Bi(r);for(let s=0;s<md.length;s++){const o=md[s]+r;if(o in e)return bl[t]=o}return t}function _E(e,t,n,r){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&Ne(r)&&n===r}const gd="http://www.w3.org/1999/xlink";function bd(e,t,n,r,s,o=xw(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(gd,t.slice(6,t.length)):e.setAttributeNS(gd,t,n):n==null||o&&!Sm(n)?e.removeAttribute(t):e.setAttribute(t,o?"":Jt(n)?String(n):n)}function vd(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Ug(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const i=o==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(i!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let a=!1;if(n===""||n==null){const i=typeof e[t];i==="boolean"?n=Sm(n):n==null&&i==="string"?(n="",a=!0):i==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(s||t)}function EE(e,t,n,r){e.addEventListener(t,n,r)}function AE(e,t,n,r){e.removeEventListener(t,n,r)}const yd=Symbol("_vei");function SE(e,t,n,r,s=null){const o=e[yd]||(e[yd]={}),a=o[t];if(r&&a)a.value=r;else{const[i,l]=IE(t);if(r){const u=o[t]=RE(r,s);EE(e,i,u,l)}else a&&(AE(e,i,a,l),o[t]=void 0)}}const xE=/(Once|Passive|Capture)$/,NE=/^on:?(?:Once|Passive|Capture)$/;function IE(e){let t,n;for(;(n=e.match(xE))&&!NE.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):ps(e.slice(2)),t]}let vl=0;const CE=Promise.resolve(),TE=()=>vl||(CE.then(()=>vl=0),vl=Date.now());function RE(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;const s=n.value;if(ue(s)){const o=r.stopImmediatePropagation;r.stopImmediatePropagation=()=>{o.call(r),r._stopped=!0};const a=s.slice(),i=[r];for(let l=0;l<a.length&&!r._stopped;l++){const u=a[l];u&&un(u,t,5,i)}}else un(s,t,5,[r])};return n.value=e,n.attached=TE(),n}const wd=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,PE=(e,t,n,r,s,o)=>{const a=s==="svg";t==="class"?gE(e,r,a):t==="style"?yE(e,n,r):Ci(t)?Ti(t)||SE(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):BE(e,t,r,a))?(vd(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&bd(e,t,r,a,o,t!=="value")):e._isVueCE&&(OE(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Ne(r)))?vd(e,Pt(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),bd(e,t,r,a))};function BE(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&wd(t)&&me(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return wd(t)&&Ne(n)?!1:t in e}function OE(e,t){const n=e._def.props;if(!n)return!1;const r=Pt(t);return Array.isArray(n)?n.some(s=>Pt(s)===r):Object.keys(n).some(s=>Pt(s)===r)}const kE=["ctrl","shift","alt","meta"],FE={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>kE.some(n=>e[`${n}Key`]&&!t.includes(n))},Qo=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=((s,...o)=>{for(let a=0;a<t.length;a++){const i=FE[t[a]];if(i&&i(s,t))return}return e(s,...o)}))};const LE=gt({patchProp:PE},uE);let _d;function Hg(){return _d||(_d=j_(LE))}const Ed=((...e)=>{Hg().render(...e)}),ME=((...e)=>{const t=Hg().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=VE(r);if(!s)return;const o=t._component;!me(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const a=n(s,!1,$E(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),a},t});function $E(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function VE(e){return Ne(e)?document.querySelector(e):e}let Xg;const ji=e=>Xg=e,zg=Symbol();function fu(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Mo;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Mo||(Mo={}));function WE(){const e=Cm(!0),t=e.run(()=>Q({}));let n=[],r=[];const s=kc({install(o){ji(s),s._a=o,o.provide(zg,s),o.config.globalProperties.$pinia=s,r.forEach(a=>n.push(a)),r=[]},use(o){return this._a?n.push(o):r.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const Jg=()=>{};function Ad(e,t,n,r=Jg){e.add(t);const s=()=>{e.delete(t)&&r()};return!n&&Tc()&&Tm(s),s}function ws(e,...t){e.forEach(n=>{n(...t)})}const DE=e=>e(),Sd=Symbol(),yl=Symbol();function du(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],s=e[n];fu(s)&&fu(r)&&e.hasOwnProperty(n)&&!Ke(r)&&!$n(r)?e[n]=du(s,r):e[n]=r}return e}const GE=Symbol();function YE(e){return!fu(e)||!Object.prototype.hasOwnProperty.call(e,GE)}const{assign:Ar}=Object;function UE(e){return!!(Ke(e)&&e.effect)}function jE(e,t,n,r){const{state:s,actions:o,getters:a}=t,i=n.state.value[e];let l;function u(){i||(n.state.value[e]=s?s():{});const c=Xw(n.state.value[e]);return Ar(c,o,Object.keys(a||{}).reduce((f,d)=>(f[d]=kc(T(()=>{ji(n);const p=n._s.get(e);return a[d].call(p,p)})),f),{}))}return l=Qg(e,u,t,n,r,!0),l}function Qg(e,t,n={},r,s,o){let a;const i=Ar({actions:{}},n),l={deep:!0};let u,c,f=new Set,d=new Set,p;const h=r.state.value[e];!o&&!h&&(r.state.value[e]={});let m;function b(O){let R;u=c=!1,typeof O=="function"?(O(r.state.value[e]),R={type:Mo.patchFunction,storeId:e,events:p}):(du(r.state.value[e],O),R={type:Mo.patchObject,payload:O,storeId:e,events:p});const F=m=Symbol();cn().then(()=>{m===F&&(u=!0)}),c=!0,ws(f,R,r.state.value[e])}const y=o?function(){const{state:R}=n,F=R?R():{};this.$patch(W=>{Ar(W,F)})}:Jg;function v(){a.stop(),f.clear(),d.clear(),r._s.delete(e)}const E=(O,R="")=>{if(Sd in O)return O[yl]=R,O;const F=function(){ji(r);const W=Array.from(arguments),k=new Set,U=new Set;function K(I){k.add(I)}function j(I){U.add(I)}ws(d,{args:W,name:F[yl],store:B,after:K,onError:j});let M;try{M=O.apply(this&&this.$id===e?this:B,W)}catch(I){throw ws(U,I),I}return M instanceof Promise?M.then(I=>(ws(k,I),I)).catch(I=>(ws(U,I),Promise.reject(I))):(ws(k,M),M)};return F[Sd]=!0,F[yl]=R,F},_={_p:r,$id:e,$onAction:Ad.bind(null,d),$patch:b,$reset:y,$subscribe(O,R={}){const F=Ad(f,O,R.detached,()=>W()),W=a.run(()=>Ie(()=>r.state.value[e],k=>{(R.flush==="sync"?c:u)&&O({storeId:e,type:Mo.direct,events:p},k)},Ar({},l,R)));return F},$dispose:v},B=xn(_);r._s.set(e,B);const P=(r._a&&r._a.runWithContext||DE)(()=>r._e.run(()=>(a=Cm()).run(()=>t({action:E}))));for(const O in P){const R=P[O];if(Ke(R)&&!UE(R)||$n(R))o||(h&&YE(R)&&(Ke(R)?R.value=h[O]:du(R,h[O])),r.state.value[e][O]=R);else if(typeof R=="function"){const F=E(R,O);P[O]=F,i.actions[O]=R}}return Ar(B,P),Ar(Re(B),P),Object.defineProperty(B,"$state",{get:()=>r.state.value[e],set:O=>{b(R=>{Ar(R,O)})}}),r._p.forEach(O=>{Ar(B,a.run(()=>O({store:B,app:r._a,pinia:r,options:i})))}),h&&o&&n.hydrate&&n.hydrate(B.$state,h),u=!0,c=!0,B}function qg(e,t,n){let r;const s=typeof t=="function";r=s?n:t;function o(a,i){const l=s_();return a=a||(l?be(zg,null):null),a&&ji(a),a=Xg,a._s.has(e)||(s?Qg(e,t,r,a):jE(e,r,a)),a._s.get(e)}return o.$id=e,o}function ZE(e){const t=Re(e),n={};for(const r in t){const s=t[r];s.effect?n[r]=T({get:()=>e[r],set(o){e[r]=o}}):(Ke(s)||$n(s))&&(n[r]=Et(e,r))}return n}function KE(e,t){if(e==null)return;let n=e;for(let r=0;r<t.length;r++){if(n===void 0||n[t[r]]===void 0)return;if(n===null||n[t[r]]===null)return null;n=n[t[r]]}return n}function Gc(e,t,n){if(n.length===0)return t;const r=n[0];return n.length>1&&(t=Gc(typeof e!="object"||e===null||!Object.prototype.hasOwnProperty.call(e,r)?Number.isInteger(Number(n[1]))?[]:{}:e[r],t,Array.prototype.slice.call(n,1))),Number.isInteger(Number(r))&&Array.isArray(e)?e.slice()[r]:Object.assign({},e,{[r]:t})}function e0(e,t){if(e==null||t.length===0)return e;if(t.length===1){if(e==null)return e;if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.slice.call(e,0).splice(t[0],1);const n={};for(const r in e)n[r]=e[r];return delete n[t[0]],n}if(e[t[0]]==null){if(Number.isInteger(t[0])&&Array.isArray(e))return Array.prototype.concat.call([],e);const n={};for(const r in e)n[r]=e[r];return n}return Gc(e,e0(e[t[0]],Array.prototype.slice.call(t,1)),[t[0]])}function t0(e,t){return t.map(n=>n.split(".")).map(n=>[n,KE(e,n)]).filter(n=>n[1]!==void 0).reduce((n,r)=>Gc(n,r[1],r[0]),{})}function n0(e,t){return t.map(n=>n.split(".")).reduce((n,r)=>e0(n,r),e)}function xd(e,{storage:t,serializer:n,key:r,debug:s,pick:o,omit:a,beforeHydrate:i,afterHydrate:l},u,c=!0){try{c&&i?.(u);const f=t.getItem(r);if(f){const d=n.deserialize(f),p=o?t0(d,o):d,h=a?n0(p,a):p;e.$patch(h)}c&&l?.(u)}catch(f){s&&console.error("[pinia-plugin-persistedstate]",f)}}function Nd(e,{storage:t,serializer:n,key:r,debug:s,pick:o,omit:a}){try{const i=o?t0(e,o):e,l=a?n0(i,a):i,u=n.serialize(l);t.setItem(r,u)}catch(i){s&&console.error("[pinia-plugin-persistedstate]",i)}}function HE(e,t){return typeof e=="function"?e(t):typeof e=="string"?e:t}function XE(e,t,n){const{pinia:r,store:s,options:{persist:o=n}}=e;if(!o)return;if(!(s.$id in r.state.value)){const i=r._s.get(s.$id.replace("__hot:",""));i&&Promise.resolve().then(()=>i.$persist());return}const a=(Array.isArray(o)?o:o===!0?[{}]:[o]).map(t);s.$hydrate=({runHooks:i=!0}={})=>{a.forEach(l=>{xd(s,l,e,i)})},s.$persist=()=>{a.forEach(i=>{Nd(s.$state,i)})},a.forEach(i=>{xd(s,i,e),s.$subscribe((l,u)=>Nd(u,i),{detached:!0})})}function zE(e={}){return function(t){XE(t,n=>{const r=HE(n.key,t.store.$id);return{key:(e.key?e.key:s=>s)(r),debug:n.debug??e.debug??!1,serializer:n.serializer??e.serializer??{serialize:s=>JSON.stringify(s),deserialize:s=>JSON.parse(s)},storage:n.storage??e.storage??window.localStorage,beforeHydrate:n.beforeHydrate??e.beforeHydrate,afterHydrate:n.afterHydrate??e.afterHydrate,pick:n.pick,omit:n.omit}},e.auto??!1)}}var JE=zE();const $o={primaryColors:["#6284DF","#474747","#B04040","#F7A456","#D39C1F","#079307","#21AB86","#00AEEC","#FB7299"],primaryColorIndex:0},QE={primaryColorIndex:$o.primaryColorIndex,primaryColor:$o.primaryColors[$o.primaryColorIndex],themeMode:"light",bgMode:"default",dark:!1},Id={UI_SELECTED_USER:"ui_selected_user"};var r0=typeof global=="object"&&global&&global.Object===Object&&global,qE=typeof self=="object"&&self&&self.Object===Object&&self,Kn=r0||qE||Function("return this")(),$s=Kn.Symbol,s0=Object.prototype,e3=s0.hasOwnProperty,t3=s0.toString,po=$s?$s.toStringTag:void 0;function n3(e){var t=e3.call(e,po),n=e[po];try{e[po]=void 0;var r=!0}catch{}var s=t3.call(e);return r&&(t?e[po]=n:delete e[po]),s}var r3=Object.prototype,s3=r3.toString;function o3(e){return s3.call(e)}var a3="[object Null]",i3="[object Undefined]",Cd=$s?$s.toStringTag:void 0;function ga(e){return e==null?e===void 0?i3:a3:Cd&&Cd in Object(e)?n3(e):o3(e)}function ba(e){return e!=null&&typeof e=="object"}var Yc=Array.isArray;function Zi(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var l3="[object AsyncFunction]",u3="[object Function]",c3="[object GeneratorFunction]",f3="[object Proxy]";function o0(e){if(!Zi(e))return!1;var t=ga(e);return t==u3||t==c3||t==l3||t==f3}var wl=Kn["__core-js_shared__"],Td=(function(){var e=/[^.]+$/.exec(wl&&wl.keys&&wl.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function d3(e){return!!Td&&Td in e}var p3=Function.prototype,h3=p3.toString;function hs(e){if(e!=null){try{return h3.call(e)}catch{}try{return e+""}catch{}}return""}var m3=/[\\^$.*+?()[\]{}|]/g,g3=/^\[object .+?Constructor\]$/,b3=Function.prototype,v3=Object.prototype,y3=b3.toString,w3=v3.hasOwnProperty,_3=RegExp("^"+y3.call(w3).replace(m3,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function E3(e){if(!Zi(e)||d3(e))return!1;var t=o0(e)?_3:g3;return t.test(hs(e))}function A3(e,t){return e?.[t]}function ms(e,t){var n=A3(e,t);return E3(n)?n:void 0}var pu=ms(Kn,"WeakMap"),Rd=Object.create,S3=(function(){function e(){}return function(t){if(!Zi(t))return{};if(Rd)return Rd(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}})(),Pd=(function(){try{var e=ms(Object,"defineProperty");return e({},"",{}),e}catch{}})();function x3(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var N3=9007199254740991,I3=/^(?:0|[1-9]\d*)$/;function C3(e,t){var n=typeof e;return t=t??N3,!!t&&(n=="number"||n!="symbol"&&I3.test(e))&&e>-1&&e%1==0&&e<t}function T3(e,t,n){t=="__proto__"&&Pd?Pd(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function a0(e,t){return e===t||e!==e&&t!==t}var R3=Object.prototype,P3=R3.hasOwnProperty;function B3(e,t,n){var r=e[t];(!(P3.call(e,t)&&a0(r,n))||n===void 0&&!(t in e))&&T3(e,t,n)}var O3=9007199254740991;function i0(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=O3}function k3(e){return e!=null&&i0(e.length)&&!o0(e)}var F3=Object.prototype;function l0(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||F3;return e===n}function L3(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var M3="[object Arguments]";function Bd(e){return ba(e)&&ga(e)==M3}var u0=Object.prototype,$3=u0.hasOwnProperty,V3=u0.propertyIsEnumerable,W3=Bd((function(){return arguments})())?Bd:function(e){return ba(e)&&$3.call(e,"callee")&&!V3.call(e,"callee")};function D3(){return!1}var c0=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Od=c0&&typeof module=="object"&&module&&!module.nodeType&&module,G3=Od&&Od.exports===c0,kd=G3?Kn.Buffer:void 0,Y3=kd?kd.isBuffer:void 0,f0=Y3||D3,U3="[object Arguments]",j3="[object Array]",Z3="[object Boolean]",K3="[object Date]",H3="[object Error]",X3="[object Function]",z3="[object Map]",J3="[object Number]",Q3="[object Object]",q3="[object RegExp]",eA="[object Set]",tA="[object String]",nA="[object WeakMap]",rA="[object ArrayBuffer]",sA="[object DataView]",oA="[object Float32Array]",aA="[object Float64Array]",iA="[object Int8Array]",lA="[object Int16Array]",uA="[object Int32Array]",cA="[object Uint8Array]",fA="[object Uint8ClampedArray]",dA="[object Uint16Array]",pA="[object Uint32Array]",je={};je[oA]=je[aA]=je[iA]=je[lA]=je[uA]=je[cA]=je[fA]=je[dA]=je[pA]=!0;je[U3]=je[j3]=je[rA]=je[Z3]=je[sA]=je[K3]=je[H3]=je[X3]=je[z3]=je[J3]=je[Q3]=je[q3]=je[eA]=je[tA]=je[nA]=!1;function hA(e){return ba(e)&&i0(e.length)&&!!je[ga(e)]}function Uc(e){return function(t){return e(t)}}var d0=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Vo=d0&&typeof module=="object"&&module&&!module.nodeType&&module,mA=Vo&&Vo.exports===d0,_l=mA&&r0.process,Vs=(function(){try{var e=Vo&&Vo.require&&Vo.require("util").types;return e||_l&&_l.binding&&_l.binding("util")}catch{}})(),Fd=Vs&&Vs.isTypedArray,gA=Fd?Uc(Fd):hA,bA=Object.prototype,vA=bA.hasOwnProperty;function yA(e,t){var n=Yc(e),r=!n&&W3(e),s=!n&&!r&&f0(e),o=!n&&!r&&!s&&gA(e),a=n||r||s||o,i=a?L3(e.length,String):[],l=i.length;for(var u in e)vA.call(e,u)&&!(a&&(u=="length"||s&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||C3(u,l)))&&i.push(u);return i}function p0(e,t){return function(n){return e(t(n))}}var wA=p0(Object.keys,Object),_A=Object.prototype,EA=_A.hasOwnProperty;function AA(e){if(!l0(e))return wA(e);var t=[];for(var n in Object(e))EA.call(e,n)&&n!="constructor"&&t.push(n);return t}function SA(e){return k3(e)?yA(e):AA(e)}var qo=ms(Object,"create");function xA(){this.__data__=qo?qo(null):{},this.size=0}function NA(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var IA="__lodash_hash_undefined__",CA=Object.prototype,TA=CA.hasOwnProperty;function RA(e){var t=this.__data__;if(qo){var n=t[e];return n===IA?void 0:n}return TA.call(t,e)?t[e]:void 0}var PA=Object.prototype,BA=PA.hasOwnProperty;function OA(e){var t=this.__data__;return qo?t[e]!==void 0:BA.call(t,e)}var kA="__lodash_hash_undefined__";function FA(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=qo&&t===void 0?kA:t,this}function is(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}is.prototype.clear=xA;is.prototype.delete=NA;is.prototype.get=RA;is.prototype.has=OA;is.prototype.set=FA;function LA(){this.__data__=[],this.size=0}function Ki(e,t){for(var n=e.length;n--;)if(a0(e[n][0],t))return n;return-1}var MA=Array.prototype,$A=MA.splice;function VA(e){var t=this.__data__,n=Ki(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():$A.call(t,n,1),--this.size,!0}function WA(e){var t=this.__data__,n=Ki(t,e);return n<0?void 0:t[n][1]}function DA(e){return Ki(this.__data__,e)>-1}function GA(e,t){var n=this.__data__,r=Ki(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function gr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}gr.prototype.clear=LA;gr.prototype.delete=VA;gr.prototype.get=WA;gr.prototype.has=DA;gr.prototype.set=GA;var ea=ms(Kn,"Map");function YA(){this.size=0,this.__data__={hash:new is,map:new(ea||gr),string:new is}}function UA(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Hi(e,t){var n=e.__data__;return UA(t)?n[typeof t=="string"?"string":"hash"]:n.map}function jA(e){var t=Hi(this,e).delete(e);return this.size-=t?1:0,t}function ZA(e){return Hi(this,e).get(e)}function KA(e){return Hi(this,e).has(e)}function HA(e,t){var n=Hi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function no(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}no.prototype.clear=YA;no.prototype.delete=jA;no.prototype.get=ZA;no.prototype.has=KA;no.prototype.set=HA;function XA(e,t){for(var n=-1,r=t.length,s=e.length;++n<r;)e[s+n]=t[n];return e}var zA=p0(Object.getPrototypeOf,Object);function JA(){this.__data__=new gr,this.size=0}function QA(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function qA(e){return this.__data__.get(e)}function e4(e){return this.__data__.has(e)}var t4=200;function n4(e,t){var n=this.__data__;if(n instanceof gr){var r=n.__data__;if(!ea||r.length<t4-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new no(r)}return n.set(e,t),this.size=n.size,this}function ro(e){var t=this.__data__=new gr(e);this.size=t.size}ro.prototype.clear=JA;ro.prototype.delete=QA;ro.prototype.get=qA;ro.prototype.has=e4;ro.prototype.set=n4;var h0=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ld=h0&&typeof module=="object"&&module&&!module.nodeType&&module,r4=Ld&&Ld.exports===h0,Md=r4?Kn.Buffer:void 0;Md&&Md.allocUnsafe;function s4(e,t){return e.slice()}function o4(e,t){for(var n=-1,r=e==null?0:e.length,s=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[s++]=a)}return o}function a4(){return[]}var i4=Object.prototype,l4=i4.propertyIsEnumerable,$d=Object.getOwnPropertySymbols,u4=$d?function(e){return e==null?[]:(e=Object(e),o4($d(e),function(t){return l4.call(e,t)}))}:a4;function c4(e,t,n){var r=t(e);return Yc(e)?r:XA(r,n(e))}function f4(e){return c4(e,SA,u4)}var hu=ms(Kn,"DataView"),mu=ms(Kn,"Promise"),gu=ms(Kn,"Set"),Vd="[object Map]",d4="[object Object]",Wd="[object Promise]",Dd="[object Set]",Gd="[object WeakMap]",Yd="[object DataView]",p4=hs(hu),h4=hs(ea),m4=hs(mu),g4=hs(gu),b4=hs(pu),ir=ga;(hu&&ir(new hu(new ArrayBuffer(1)))!=Yd||ea&&ir(new ea)!=Vd||mu&&ir(mu.resolve())!=Wd||gu&&ir(new gu)!=Dd||pu&&ir(new pu)!=Gd)&&(ir=function(e){var t=ga(e),n=t==d4?e.constructor:void 0,r=n?hs(n):"";if(r)switch(r){case p4:return Yd;case h4:return Vd;case m4:return Wd;case g4:return Dd;case b4:return Gd}return t});var v4=Object.prototype,y4=v4.hasOwnProperty;function w4(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&y4.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Ud=Kn.Uint8Array;function jc(e){var t=new e.constructor(e.byteLength);return new Ud(t).set(new Ud(e)),t}function _4(e,t){var n=jc(e.buffer);return new e.constructor(n,e.byteOffset,e.byteLength)}var E4=/\w*$/;function A4(e){var t=new e.constructor(e.source,E4.exec(e));return t.lastIndex=e.lastIndex,t}var jd=$s?$s.prototype:void 0,Zd=jd?jd.valueOf:void 0;function S4(e){return Zd?Object(Zd.call(e)):{}}function x4(e,t){var n=jc(e.buffer);return new e.constructor(n,e.byteOffset,e.length)}var N4="[object Boolean]",I4="[object Date]",C4="[object Map]",T4="[object Number]",R4="[object RegExp]",P4="[object Set]",B4="[object String]",O4="[object Symbol]",k4="[object ArrayBuffer]",F4="[object DataView]",L4="[object Float32Array]",M4="[object Float64Array]",$4="[object Int8Array]",V4="[object Int16Array]",W4="[object Int32Array]",D4="[object Uint8Array]",G4="[object Uint8ClampedArray]",Y4="[object Uint16Array]",U4="[object Uint32Array]";function j4(e,t,n){var r=e.constructor;switch(t){case k4:return jc(e);case N4:case I4:return new r(+e);case F4:return _4(e);case L4:case M4:case $4:case V4:case W4:case D4:case G4:case Y4:case U4:return x4(e);case C4:return new r;case T4:case B4:return new r(e);case R4:return A4(e);case P4:return new r;case O4:return S4(e)}}function Z4(e){return typeof e.constructor=="function"&&!l0(e)?S3(zA(e)):{}}var K4="[object Map]";function H4(e){return ba(e)&&ir(e)==K4}var Kd=Vs&&Vs.isMap,X4=Kd?Uc(Kd):H4,z4="[object Set]";function J4(e){return ba(e)&&ir(e)==z4}var Hd=Vs&&Vs.isSet,Q4=Hd?Uc(Hd):J4,m0="[object Arguments]",q4="[object Array]",eS="[object Boolean]",tS="[object Date]",nS="[object Error]",g0="[object Function]",rS="[object GeneratorFunction]",sS="[object Map]",oS="[object Number]",b0="[object Object]",aS="[object RegExp]",iS="[object Set]",lS="[object String]",uS="[object Symbol]",cS="[object WeakMap]",fS="[object ArrayBuffer]",dS="[object DataView]",pS="[object Float32Array]",hS="[object Float64Array]",mS="[object Int8Array]",gS="[object Int16Array]",bS="[object Int32Array]",vS="[object Uint8Array]",yS="[object Uint8ClampedArray]",wS="[object Uint16Array]",_S="[object Uint32Array]",Ye={};Ye[m0]=Ye[q4]=Ye[fS]=Ye[dS]=Ye[eS]=Ye[tS]=Ye[pS]=Ye[hS]=Ye[mS]=Ye[gS]=Ye[bS]=Ye[sS]=Ye[oS]=Ye[b0]=Ye[aS]=Ye[iS]=Ye[lS]=Ye[uS]=Ye[vS]=Ye[yS]=Ye[wS]=Ye[_S]=!0;Ye[nS]=Ye[g0]=Ye[cS]=!1;function Wo(e,t,n,r,s,o){var a;if(n&&(a=s?n(e,r,s,o):n(e)),a!==void 0)return a;if(!Zi(e))return e;var i=Yc(e);if(i)a=w4(e);else{var l=ir(e),u=l==g0||l==rS;if(f0(e))return s4(e);if(l==b0||l==m0||u&&!s)a=u?{}:Z4(e);else{if(!Ye[l])return s?e:{};a=j4(e,l)}}o||(o=new ro);var c=o.get(e);if(c)return c;o.set(e,a),Q4(e)?e.forEach(function(p){a.add(Wo(p,t,n,p,e,o))}):X4(e)&&e.forEach(function(p,h){a.set(h,Wo(p,t,n,h,e,o))});var f=f4,d=i?void 0:f(e);return x3(d||e,function(p,h){d&&(h=p,p=e[h]),B3(a,h,Wo(p,t,n,h,e,o))}),a}var ES=1,AS=4;function v0(e){return Wo(e,ES|AS)}var SS=1,xS=4;function NS(e,t){return t=typeof t=="function"?t:void 0,Wo(e,SS|xS,t)}function IS(e){return e instanceof Error?e.name==="AbortError"||e.name==="CanceledError"||"code"in e&&e.code==="ERR_CANCELED":!1}function Zc(e){return typeof e=="string"?e:e instanceof Error||e&&typeof e=="object"&&"message"in e&&typeof e.message=="string"?e.message:String(e)??"未知错误"}var CS=class extends Error{constructor(e,t){super(e),t!==void 0&&(this.cause=t instanceof Error?t:new Error(Zc(t))),this.name=new.target.name,Object.setPrototypeOf(this,new.target.prototype)}toString(){return`${this.name}: ${this.message}${this.cause?` (caused by ${this.cause})`:""}`}},Xd={trace:0,debug:1,info:2,warn:3,error:4},TS=["trace","debug","info","warn","error"];function Kc(e){return e instanceof Error?{name:e.name,message:e.message,stack:e.stack,cause:"cause"in e&&e.cause?Kc(e.cause):void 0}:{name:"UnknownError",message:Zc(e)}}function RS(e){return e!=null&&typeof e=="object"&&"success"in e&&typeof e.success=="boolean"&&"msg"in e&&typeof e.msg=="string"}async function zd(e){if(RS(e)){if(e.success)return e.data;throw e.error?PS(e.error):new Error(e.msg)}else return e}function PS(e){return Object.assign(new Error,e)}var Jd=()=>{},BS=new Set(["then","catch","finally","toJSON","toString","valueOf"]);function Qd(e){return TS.indexOf(e)>-1}function OS(e,t){let n="info";return(async()=>{try{let r=(typeof e=="function"?await e():e).toLowerCase();Qd(r)?n=r:n="info"}catch{n="info"}})().then(),new Proxy(Jd,{get(r,s){if(!(typeof s!="string"||BS.has(s))&&Qd(s))return new Proxy(Jd,{apply(o,a,i){i&&(Xd[s]<Xd[n]||t(s,...i))}})}})}function kS(e,t){return new Promise((n,r)=>{setTimeout(()=>{n()},e)})}function kO(e,t,n){let r=Math.random()*(t-e)+e;return kS(r)}function FS(e,t){let n=isNaN(e.getTime())?new Date:e,r=n.getFullYear(),s=String(n.getMonth()+1).padStart(2,"0"),o=String(n.getDate()).padStart(2,"0"),a=String(n.getHours()).padStart(2,"0"),i=String(n.getMinutes()).padStart(2,"0"),l=String(n.getSeconds()).padStart(2,"0");return t==="date"?`${r}-${s}-${o}`:t==="time"?`${a}:${i}:${l}`:`${r}-${s}-${o} ${a}:${i}:${l}`}function FO(e){return FS(new Date,"date")}var LS=e=>NS(Re(e),t=>{typeof t=="function"||t instanceof Window||t instanceof Element}),MS=()=>{};function y0(e=[]){return new Proxy(MS,{get(t,n){if(typeof n=="string"&&!(n==="__proto__"||n==="constructor"))return y0(e.concat(n))},async apply(t,n,r){const s=e.join(".");try{let o;for(let i=0;i<e.length;i++){const l=e[i];if(i===0)if(window.__toolkitApi&&l in window.__toolkitApi)o=window.__toolkitApi[l];else break;else if(o&&typeof o=="object"&&l in o)o=o[l];else{o=void 0;break}}const a=r.map(i=>typeof i=="function"?i:LS(i));return zd(typeof o=="function"?await o(...a):await window.__toolkitInvoke(s,...a))}catch(o){throw console.error(`[${s}]`,r,o),o}}})}function $S(){if(window.toolkitApi)return window.toolkitApi;let e;return Object.defineProperty(window,"toolkitApi",{get(){return e||(e=y0([])),e}}),window.toolkitApi}OS(async()=>await window.toolkitApi.system.getLogLevel(),(e,...t)=>{console[e](`[${new Date().toLocaleString()}]`,...t),window.toolkitApi.system.saveLog({level:e,data:t.map(n=>n instanceof Error?JSON.stringify(Kc(n)):JSON.stringify(n))}).catch()});const Ve={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},VS=["","default","small","large"];var w0=typeof global=="object"&&global&&global.Object===Object&&global,WS=typeof self=="object"&&self&&self.Object===Object&&self,br=w0||WS||Function("return this")(),jn=br.Symbol,_0=Object.prototype,DS=_0.hasOwnProperty,GS=_0.toString,ho=jn?jn.toStringTag:void 0;function YS(e){var t=DS.call(e,ho),n=e[ho];try{e[ho]=void 0;var r=!0}catch{}var s=GS.call(e);return r&&(t?e[ho]=n:delete e[ho]),s}var US=Object.prototype,jS=US.toString;function ZS(e){return jS.call(e)}var KS="[object Null]",HS="[object Undefined]",qd=jn?jn.toStringTag:void 0;function gs(e){return e==null?e===void 0?HS:KS:qd&&qd in Object(e)?YS(e):ZS(e)}function va(e){return e!=null&&typeof e=="object"}var XS="[object Symbol]";function Hc(e){return typeof e=="symbol"||va(e)&&gs(e)==XS}function zS(e,t){for(var n=-1,r=e==null?0:e.length,s=Array(r);++n<r;)s[n]=t(e[n],n,e);return s}var so=Array.isArray,ep=jn?jn.prototype:void 0,tp=ep?ep.toString:void 0;function E0(e){if(typeof e=="string")return e;if(so(e))return zS(e,E0)+"";if(Hc(e))return tp?tp.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function vi(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function JS(e){return e}var QS="[object AsyncFunction]",qS="[object Function]",ex="[object GeneratorFunction]",tx="[object Proxy]";function nx(e){if(!vi(e))return!1;var t=gs(e);return t==qS||t==ex||t==QS||t==tx}var El=br["__core-js_shared__"],np=(function(){var e=/[^.]+$/.exec(El&&El.keys&&El.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function rx(e){return!!np&&np in e}var sx=Function.prototype,ox=sx.toString;function bs(e){if(e!=null){try{return ox.call(e)}catch{}try{return e+""}catch{}}return""}var ax=/[\\^$.*+?()[\]{}|]/g,ix=/^\[object .+?Constructor\]$/,lx=Function.prototype,ux=Object.prototype,cx=lx.toString,fx=ux.hasOwnProperty,dx=RegExp("^"+cx.call(fx).replace(ax,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function px(e){if(!vi(e)||rx(e))return!1;var t=nx(e)?dx:ix;return t.test(bs(e))}function hx(e,t){return e?.[t]}function vs(e,t){var n=hx(e,t);return px(n)?n:void 0}var bu=vs(br,"WeakMap");function mx(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var gx=800,bx=16,vx=Date.now;function yx(e){var t=0,n=0;return function(){var r=vx(),s=bx-(r-n);if(n=r,s>0){if(++t>=gx)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function wx(e){return function(){return e}}var yi=(function(){try{var e=vs(Object,"defineProperty");return e({},"",{}),e}catch{}})(),_x=yi?function(e,t){return yi(e,"toString",{configurable:!0,enumerable:!1,value:wx(t),writable:!0})}:JS,Ex=yx(_x),Ax=9007199254740991,Sx=/^(?:0|[1-9]\d*)$/;function A0(e,t){var n=typeof e;return t=t??Ax,!!t&&(n=="number"||n!="symbol"&&Sx.test(e))&&e>-1&&e%1==0&&e<t}function S0(e,t,n){t=="__proto__"&&yi?yi(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function x0(e,t){return e===t||e!==e&&t!==t}var xx=Object.prototype,Nx=xx.hasOwnProperty;function Ix(e,t,n){var r=e[t];(!(Nx.call(e,t)&&x0(r,n))||n===void 0&&!(t in e))&&S0(e,t,n)}var rp=Math.max;function Cx(e,t,n){return t=rp(t===void 0?e.length-1:t,0),function(){for(var r=arguments,s=-1,o=rp(r.length-t,0),a=Array(o);++s<o;)a[s]=r[t+s];s=-1;for(var i=Array(t+1);++s<t;)i[s]=r[s];return i[t]=n(a),mx(e,this,i)}}var Tx=9007199254740991;function N0(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Tx}var LO=Object.prototype;var Rx="[object Arguments]";function sp(e){return va(e)&&gs(e)==Rx}var I0=Object.prototype,Px=I0.hasOwnProperty,Bx=I0.propertyIsEnumerable,C0=sp((function(){return arguments})())?sp:function(e){return va(e)&&Px.call(e,"callee")&&!Bx.call(e,"callee")};var T0=typeof exports=="object"&&exports&&!exports.nodeType&&exports,op=T0&&typeof module=="object"&&module&&!module.nodeType&&module,Ox=op&&op.exports===T0,ap=Ox?br.Buffer:void 0,MO=ap?ap.isBuffer:void 0;var kx="[object Arguments]",Fx="[object Array]",Lx="[object Boolean]",Mx="[object Date]",$x="[object Error]",Vx="[object Function]",Wx="[object Map]",Dx="[object Number]",Gx="[object Object]",Yx="[object RegExp]",Ux="[object Set]",jx="[object String]",Zx="[object WeakMap]",Kx="[object ArrayBuffer]",Hx="[object DataView]",Xx="[object Float32Array]",zx="[object Float64Array]",Jx="[object Int8Array]",Qx="[object Int16Array]",qx="[object Int32Array]",eN="[object Uint8Array]",tN="[object Uint8ClampedArray]",nN="[object Uint16Array]",rN="[object Uint32Array]",Ze={};Ze[Xx]=Ze[zx]=Ze[Jx]=Ze[Qx]=Ze[qx]=Ze[eN]=Ze[tN]=Ze[nN]=Ze[rN]=!0;Ze[kx]=Ze[Fx]=Ze[Kx]=Ze[Lx]=Ze[Hx]=Ze[Mx]=Ze[$x]=Ze[Vx]=Ze[Wx]=Ze[Dx]=Ze[Gx]=Ze[Yx]=Ze[Ux]=Ze[jx]=Ze[Zx]=!1;function sN(e){return va(e)&&N0(e.length)&&!!Ze[gs(e)]}function oN(e){return function(t){return e(t)}}var R0=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Do=R0&&typeof module=="object"&&module&&!module.nodeType&&module,aN=Do&&Do.exports===R0,Al=aN&&w0.process,ip=(function(){try{var e=Do&&Do.require&&Do.require("util").types;return e||Al&&Al.binding&&Al.binding("util")}catch{}})(),lp=ip&&ip.isTypedArray,$O=lp?oN(lp):sN,iN=Object.prototype,VO=iN.hasOwnProperty;function P0(e,t){return function(n){return e(t(n))}}var WO=P0(Object.keys,Object),lN=Object.prototype,DO=lN.hasOwnProperty;var uN=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,cN=/^\w*$/;function fN(e,t){if(so(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Hc(e)?!0:cN.test(e)||!uN.test(e)||t!=null&&e in Object(t)}var ta=vs(Object,"create");function dN(){this.__data__=ta?ta(null):{},this.size=0}function pN(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var hN="__lodash_hash_undefined__",mN=Object.prototype,gN=mN.hasOwnProperty;function bN(e){var t=this.__data__;if(ta){var n=t[e];return n===hN?void 0:n}return gN.call(t,e)?t[e]:void 0}var vN=Object.prototype,yN=vN.hasOwnProperty;function wN(e){var t=this.__data__;return ta?t[e]!==void 0:yN.call(t,e)}var _N="__lodash_hash_undefined__";function EN(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ta&&t===void 0?_N:t,this}function ls(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ls.prototype.clear=dN;ls.prototype.delete=pN;ls.prototype.get=bN;ls.prototype.has=wN;ls.prototype.set=EN;function AN(){this.__data__=[],this.size=0}function Xi(e,t){for(var n=e.length;n--;)if(x0(e[n][0],t))return n;return-1}var SN=Array.prototype,xN=SN.splice;function NN(e){var t=this.__data__,n=Xi(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():xN.call(t,n,1),--this.size,!0}function IN(e){var t=this.__data__,n=Xi(t,e);return n<0?void 0:t[n][1]}function CN(e){return Xi(this.__data__,e)>-1}function TN(e,t){var n=this.__data__,r=Xi(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function vr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}vr.prototype.clear=AN;vr.prototype.delete=NN;vr.prototype.get=IN;vr.prototype.has=CN;vr.prototype.set=TN;var na=vs(br,"Map");function RN(){this.size=0,this.__data__={hash:new ls,map:new(na||vr),string:new ls}}function PN(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function zi(e,t){var n=e.__data__;return PN(t)?n[typeof t=="string"?"string":"hash"]:n.map}function BN(e){var t=zi(this,e).delete(e);return this.size-=t?1:0,t}function ON(e){return zi(this,e).get(e)}function kN(e){return zi(this,e).has(e)}function FN(e,t){var n=zi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function yr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}yr.prototype.clear=RN;yr.prototype.delete=BN;yr.prototype.get=ON;yr.prototype.has=kN;yr.prototype.set=FN;var LN="Expected a function";function Xc(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(LN);var n=function(){var r=arguments,s=t?t.apply(this,r):r[0],o=n.cache;if(o.has(s))return o.get(s);var a=e.apply(this,r);return n.cache=o.set(s,a)||o,a};return n.cache=new(Xc.Cache||yr),n}Xc.Cache=yr;var MN=500;function $N(e){var t=Xc(e,function(r){return n.size===MN&&n.clear(),r}),n=t.cache;return t}var VN=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,WN=/\\(\\)?/g,DN=$N(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(VN,function(n,r,s,o){t.push(s?o.replace(WN,"$1"):r||n)}),t});function GN(e){return e==null?"":E0(e)}function Ji(e,t){return so(e)?e:fN(e,t)?[e]:DN(GN(e))}function zc(e){if(typeof e=="string"||Hc(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function B0(e,t){t=Ji(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[zc(t[n++])];return n&&n==r?e:void 0}function YN(e,t,n){var r=e==null?void 0:B0(e,t);return r===void 0?n:r}function UN(e,t){for(var n=-1,r=t.length,s=e.length;++n<r;)e[s+n]=t[n];return e}var up=jn?jn.isConcatSpreadable:void 0;function jN(e){return so(e)||C0(e)||!!(up&&e&&e[up])}function O0(e,t,n,r,s){var o=-1,a=e.length;for(n||(n=jN),s||(s=[]);++o<a;){var i=e[o];t>0&&n(i)?t>1?O0(i,t-1,n,r,s):UN(s,i):r||(s[s.length]=i)}return s}function ZN(e){var t=e==null?0:e.length;return t?O0(e,1):[]}function KN(e){return Ex(Cx(e,void 0,ZN),e+"")}var HN=P0(Object.getPrototypeOf,Object),XN="[object Object]",zN=Function.prototype,JN=Object.prototype,k0=zN.toString,QN=JN.hasOwnProperty,qN=k0.call(Object);function eI(e){if(!va(e)||gs(e)!=XN)return!1;var t=HN(e);if(t===null)return!0;var n=QN.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&k0.call(n)==qN}function tI(){if(!arguments.length)return[];var e=arguments[0];return so(e)?e:[e]}function nI(){this.__data__=new vr,this.size=0}function rI(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function sI(e){return this.__data__.get(e)}function oI(e){return this.__data__.has(e)}var aI=200;function iI(e,t){var n=this.__data__;if(n instanceof vr){var r=n.__data__;if(!na||r.length<aI-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new yr(r)}return n.set(e,t),this.size=n.size,this}function ya(e){var t=this.__data__=new vr(e);this.size=t.size}ya.prototype.clear=nI;ya.prototype.delete=rI;ya.prototype.get=sI;ya.prototype.has=oI;ya.prototype.set=iI;var lI=Object.prototype,GO=lI.propertyIsEnumerable;var vu=vs(br,"DataView"),yu=vs(br,"Promise"),wu=vs(br,"Set"),cp="[object Map]",uI="[object Object]",fp="[object Promise]",dp="[object Set]",pp="[object WeakMap]",hp="[object DataView]",cI=bs(vu),fI=bs(na),dI=bs(yu),pI=bs(wu),hI=bs(bu),_s=gs;(vu&&_s(new vu(new ArrayBuffer(1)))!=hp||na&&_s(new na)!=cp||yu&&_s(yu.resolve())!=fp||wu&&_s(new wu)!=dp||bu&&_s(new bu)!=pp)&&(_s=function(e){var t=gs(e),n=t==uI?e.constructor:void 0,r=n?bs(n):"";if(r)switch(r){case cI:return hp;case fI:return cp;case dI:return fp;case pI:return dp;case hI:return pp}return t});var YO=br.Uint8Array,mI="__lodash_hash_undefined__";function gI(e){return this.__data__.set(e,mI),this}function bI(e){return this.__data__.has(e)}function _u(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new yr;++t<n;)this.add(e[t])}_u.prototype.add=_u.prototype.push=gI;_u.prototype.has=bI;var mp=jn?jn.prototype:void 0,UO=mp?mp.valueOf:void 0;var vI=Object.prototype,jO=vI.hasOwnProperty;var yI=Object.prototype,ZO=yI.hasOwnProperty;function wI(e,t){return e!=null&&t in Object(e)}function _I(e,t,n){t=Ji(t,e);for(var r=-1,s=t.length,o=!1;++r<s;){var a=zc(t[r]);if(!(o=e!=null&&n(e,a)))break;e=e[a]}return o||++r!=s?o:(s=e==null?0:e.length,!!s&&N0(s)&&A0(a,s)&&(so(e)||C0(e)))}function EI(e,t){return e!=null&&_I(e,t,wI)}function wi(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var s=e[t];S0(r,s[0],s[1])}return r}function Ws(e){return e==null}function AI(e){return e===void 0}function SI(e,t,n,r){if(!vi(e))return e;t=Ji(t,e);for(var s=-1,o=t.length,a=o-1,i=e;i!=null&&++s<o;){var l=zc(t[s]),u=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(s!=a){var c=i[l];u=void 0,u===void 0&&(u=vi(c)?c:A0(t[s+1])?[]:{})}Ix(i,l,u),i=i[l]}return e}function xI(e,t,n){for(var r=-1,s=t.length,o={};++r<s;){var a=t[r],i=B0(e,a);n(i,a)&&SI(o,Ji(a,e),i)}return o}function NI(e,t){return xI(e,t,function(n,r){return EI(e,r)})}var II=KN(function(e,t){return e==null?{}:NI(e,t)});const F0=e=>e===void 0,os=e=>typeof e=="boolean",Mt=e=>typeof e=="number";const kr=e=>typeof Element>"u"?!1:e instanceof Element;const CI=e=>Ne(e)?!Number.isNaN(Number(e)):!1;const gp=e=>Object.keys(e);const TI="__epPropKey",ce=e=>e,RI=e=>Te(e)&&!!e.__epPropKey,Qi=(e,t)=>{if(!Te(e)||RI(e))return e;const{values:n,required:r,default:s,type:o,validator:a}=e,i={type:o,required:!!r,validator:n||a?l=>{let u=!1,c=[];if(n&&(c=Array.from(n),Pe(e,"default")&&c.push(s),u||=c.includes(l)),a&&(u||=a(l)),!u&&c.length>0){const f=[...new Set(c)].map(d=>JSON.stringify(d)).join(", ");aE(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${f}], got value ${JSON.stringify(l)}.`)}return u}:void 0,[TI]:!0};return Pe(e,"default")&&(i.default=s),i},Ge=e=>wi(Object.entries(e).map(([t,n])=>[t,Qi(n,t)]));var L0=class extends Error{constructor(e){super(e),this.name="ElementPlusError"}};function ra(e,t){throw new L0(`[${e}] ${t}`)}function An(e,t){{const n=Ne(e)?new L0(`[${e}] ${t}`):e;console.warn(n)}}function M0(e,t){var n;const r=Qs();return tg(()=>{r.value=e()},{...t,flush:(n=void 0)!=null?n:"sync"}),Fs(r)}function qi(e){return Tc()?(Tm(e),!0):!1}const ft=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const PI=Object.prototype.toString,BI=e=>PI.call(e)==="[object Object]";const Es=()=>{},OI=kI();function kI(){var e,t;return ft&&((e=window?.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window?.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function Sl(e){return Array.isArray(e)?e:[e]}function Eu(e,t,n={}){const{immediate:r=!0,immediateCallback:s=!1}=n,o=Qs(!1);let a;function i(){a&&(clearTimeout(a),a=void 0)}function l(){o.value=!1,i()}function u(...c){s&&e(),i(),o.value=!0,a=setTimeout(()=>{o.value=!1,a=void 0,e(...c)},dr(t))}return r&&(o.value=!0,ft&&u()),qi(l),{isPending:Zw(o),start:u,stop:l}}function FI(e,t,n){return Ie(e,t,{...n,immediate:!0})}const Jc=ft?window:void 0,KO=ft?window.document:void 0;function Mn(e){var t;const n=dr(e);return(t=n?.$el)!=null?t:n}function Mr(...e){const t=[],n=()=>{t.forEach(i=>i()),t.length=0},r=(i,l,u,c)=>(i.addEventListener(l,u,c),()=>i.removeEventListener(l,u,c)),s=T(()=>{const i=Sl(dr(e[0])).filter(l=>l!=null);return i.every(l=>typeof l!="string")?i:void 0}),o=FI(()=>{var i,l;return[(l=(i=s.value)==null?void 0:i.map(u=>Mn(u)))!=null?l:[Jc].filter(u=>u!=null),Sl(dr(s.value?e[1]:e[0])),Sl(A(s.value?e[2]:e[1])),dr(s.value?e[3]:e[2])]},([i,l,u,c])=>{if(n(),!i?.length||!l?.length||!u?.length)return;const f=BI(c)?{...c}:c;t.push(...i.flatMap(d=>l.flatMap(p=>u.map(h=>r(d,p,h,f)))))},{flush:"post"}),a=()=>{o(),n()};return qi(n),a}let bp=!1;function LI(e,t,n={}){const{window:r=Jc,ignore:s=[],capture:o=!0,detectIframe:a=!1,controls:i=!1}=n;if(!r)return i?{stop:Es,cancel:Es,trigger:Es}:Es;if(OI&&!bp){bp=!0;const b={passive:!0};Array.from(r.document.body.children).forEach(y=>y.addEventListener("click",Es,b)),r.document.documentElement.addEventListener("click",Es,b)}let l=!0;const u=b=>dr(s).some(y=>{if(typeof y=="string")return Array.from(r.document.querySelectorAll(y)).some(v=>v===b.target||b.composedPath().includes(v));{const v=Mn(y);return v&&(b.target===v||b.composedPath().includes(v))}});function c(b){const y=dr(b);return y&&y.$.subTree.shapeFlag===16}function f(b,y){const v=dr(b),E=v.$.subTree&&v.$.subTree.children;return E==null||!Array.isArray(E)?!1:E.some(_=>_.el===y.target||y.composedPath().includes(_.el))}const d=b=>{const y=Mn(e);if(b.target!=null&&!(!(y instanceof Element)&&c(e)&&f(e,b))&&!(!y||y===b.target||b.composedPath().includes(y))){if("detail"in b&&b.detail===0&&(l=!u(b)),!l){l=!0;return}t(b)}};let p=!1;const h=[Mr(r,"click",b=>{p||(p=!0,setTimeout(()=>{p=!1},0),d(b))},{passive:!0,capture:o}),Mr(r,"pointerdown",b=>{const y=Mn(e);l=!u(b)&&!!(y&&!b.composedPath().includes(y))},{passive:!0}),a&&Mr(r,"blur",b=>{setTimeout(()=>{var y;const v=Mn(e);((y=r.document.activeElement)==null?void 0:y.tagName)==="IFRAME"&&!v?.contains(r.document.activeElement)&&t(b)},0)},{passive:!0})].filter(Boolean),m=()=>h.forEach(b=>b());return i?{stop:m,cancel:()=>{l=!1},trigger:b=>{l=!0,d(b),l=!1}}:m}function MI(){const e=Qs(!1),t=ot();return t&&it(()=>{e.value=!0},t),e}function $I(e){const t=MI();return T(()=>(t.value,!!e()))}function sa(e,t,n={}){const{window:r=Jc,...s}=n;let o;const a=$I(()=>r&&"ResizeObserver"in r),i=()=>{o&&(o.disconnect(),o=void 0)},l=T(()=>{const f=dr(e);return Array.isArray(f)?f.map(d=>Mn(d)):[Mn(f)]}),u=Ie(l,f=>{if(i(),a.value&&r){o=new ResizeObserver(t);for(const d of f)d&&o.observe(d,s)}},{immediate:!0,flush:"post"}),c=()=>{i(),u()};return qi(c),{isSupported:a,stop:c}}const VI=({from:e,replacement:t,scope:n,version:r,ref:s,type:o="API"},a)=>{Ie(()=>A(a),i=>{i&&An(n,`[${o}] ${e} is about to be deprecated in version ${r}, please use ${t} instead.
|
|
3
|
+
For more detail, please visit: ${s}
|
|
4
|
+
`)},{immediate:!0})};const WI=e=>typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot,vp=e=>typeof Element>"u"?!1:e instanceof Element;const Au=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}},Ya=function(e,t,...n){let r;t.includes("mouse")||t.includes("click")?r="MouseEvents":t.includes("key")?r="KeyboardEvent":r="HTMLEvents";const s=document.createEvent(r);return s.initEvent(t,...n),e.dispatchEvent(s),e};const el=(e,t)=>{if(!e||!e.focus)return;let n=!1;vp(e)&&!Au(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),n=!0),e.focus(t),vp(e)&&n&&e.removeAttribute("tabindex")};const HO=()=>ft&&/firefox/i.test(window.navigator.userAgent),DI=()=>ft&&/android/i.test(window.navigator.userAgent),GI="utils/dom/style",$0=(e="")=>e.split(" ").filter(t=>!!t.trim()),YI=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Ca=(e,t)=>{!e||!t.trim()||e.classList.add(...$0(t))},xl=(e,t)=>{!e||!t.trim()||e.classList.remove(...$0(t))},XO=(e,t)=>{if(!ft||!e||!t||WI(e))return"";let n=Pt(t);n==="float"&&(n="cssFloat");try{const r=e.style[n];if(r)return r;const s=document.defaultView?.getComputedStyle(e,"");return s?s[n]:""}catch{return e.style[n]}};function us(e,t="px"){if(!e&&e!==0)return"";if(Mt(e)||CI(e))return`${e}${t}`;if(Ne(e))return e;An(GI,"binding value must be a string or number")}var UI={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value",alphaDescription:"alpha {alpha}, current color is {color}",hueLabel:"pick hue value",hueDescription:"hue {hue}, current color is {color}",svLabel:"pick saturation and brightness value",svDescription:"saturation {saturation}, brightness {brightness}, current color is {color}",predefineDescription:"select {value} as the color"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum",selectAllLabel:"Select all rows",selectRowLabel:"Select this row",expandRowLabel:"Expand this row",collapseRowLabel:"Collapse this row",sortLabel:"Sort by {column}",filterLabel:"Filter by {column}"},tag:{close:"Close this tag"},tour:{next:"Next",previous:"Previous",finish:"Finish",close:"Close this dialog"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"},inputOTP:{groupLabel:"OTP Input",defaultLabel:"Please enter OTP character {index}"}}};const jI=e=>(t,n)=>ZI(t,n,A(e)),ZI=(e,t,n)=>YN(n,e,e).replace(/\{(\w+)\}/g,(r,s)=>`${t?.[s]??`{${s}}`}`),KI=e=>({lang:T(()=>A(e).name),locale:Ke(e)?e:Q(e),t:jI(e)}),V0=Symbol("localeContextKey"),W0=e=>{const t=e||be(V0,Q());return KI(T(()=>t.value||UI))},HI="is-",Zr=(e,t,n,r,s)=>{let o=`${e}-${t}`;return n&&(o+=`-${n}`),r&&(o+=`__${r}`),s&&(o+=`--${s}`),o},D0=Symbol("namespaceContextKey"),Qc=e=>{const t=e||(ot()?be(D0,Q("el")):Q("el"));return T(()=>A(t)||"el")},De=(e,t)=>{const n=Qc(t);return{namespace:n,b:(m="")=>Zr(n.value,e,m,"",""),e:m=>m?Zr(n.value,e,"",m,""):"",m:m=>m?Zr(n.value,e,"","",m):"",be:(m,b)=>m&&b?Zr(n.value,e,m,b,""):"",em:(m,b)=>m&&b?Zr(n.value,e,"",m,b):"",bm:(m,b)=>m&&b?Zr(n.value,e,m,"",b):"",bem:(m,b,y)=>m&&b&&y?Zr(n.value,e,m,b,y):"",is:(m,...b)=>{const y=b.length>=1?b[0]:!0;return m&&y?`${HI}${m}`:""},cssVar:m=>{const b={};for(const y in m)m[y]&&(b[`--${n.value}-${y}`]=m[y]);return b},cssVarName:m=>`--${n.value}-${m}`,cssVarBlock:m=>{const b={};for(const y in m)m[y]&&(b[`--${n.value}-${e}-${y}`]=m[y]);return b},cssVarBlockName:m=>`--${n.value}-${e}-${m}`}},ct=(e,t,{checkForDefaultPrevented:n=!0}={})=>s=>{const o=e?.(s);if(n===!1||!o)return t?.(s)},yp=e=>t=>t.pointerType==="mouse"?e(t):void 0,Hn=e=>{if(e.code&&e.code!=="Unidentified")return e.code;const t=XI(e);return t?Object.values(Ve).includes(t)?t:t===" "?Ve.space:"":""},XI=e=>{let t=e.key&&e.key!=="Unidentified"?e.key:"";if(!t&&e.type==="keyup"&&DI()){const n=e.target;t=n.value.charAt(n.selectionStart-1)}return t},zI=Qi({type:ce(Boolean),default:null}),JI=Qi({type:ce(Function)}),QI=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],s={[e]:zI,[n]:JI};return{useModelToggle:({indicator:a,toggleReason:i,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:c,onHide:f})=>{const d=ot(),{emit:p}=d,h=d.props,m=T(()=>me(h[n])),b=T(()=>h[e]===null),y=P=>{a.value!==!0&&(a.value=!0,i&&(i.value=P),me(c)&&c(P))},v=P=>{a.value!==!1&&(a.value=!1,i&&(i.value=P),me(f)&&f(P))},E=P=>{if(h.disabled===!0||me(u)&&!u())return;const O=m.value&&ft;O&&p(t,!0),(b.value||!O)&&y(P)},_=P=>{if(h.disabled===!0||!ft)return;const O=m.value&&ft;O&&p(t,!1),(b.value||!O)&&v(P)},B=P=>{os(P)&&(h.disabled&&P?m.value&&p(t,!1):a.value!==P&&(P?y():v()))},G=()=>{a.value?_():E()};return Ie(()=>h[e],B),l&&d.appContext.config.globalProperties.$route!==void 0&&Ie(()=>({...d.proxy.$route}),()=>{l.value&&a.value&&_()}),it(()=>{B(h[e])}),{hide:_,show:E,toggle:G,hasUpdateHandler:m}},useModelToggleProps:s,useModelToggleEmits:r}},G0=e=>{const t=ot();return T(()=>t?.proxy?.$props?.[e])};var Dt="top",fn="bottom",dn="right",Gt="left",qc="auto",wa=[Dt,fn,dn,Gt],Ds="start",oa="end",qI="clippingParents",Y0="viewport",mo="popper",eC="reference",wp=wa.reduce(function(e,t){return e.concat([t+"-"+Ds,t+"-"+oa])},[]),ef=[].concat(wa,[qc]).reduce(function(e,t){return e.concat([t,t+"-"+Ds,t+"-"+oa])},[]),tC="beforeRead",nC="read",rC="afterRead",sC="beforeMain",oC="main",aC="afterMain",iC="beforeWrite",lC="write",uC="afterWrite",cC=[tC,nC,rC,sC,oC,aC,iC,lC,uC];function Zn(e){return e?(e.nodeName||"").toLowerCase():null}function Qt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function cs(e){var t=Qt(e).Element;return e instanceof t||e instanceof Element}function ln(e){var t=Qt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function tf(e){if(typeof ShadowRoot>"u")return!1;var t=Qt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function fC(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},s=t.attributes[n]||{},o=t.elements[n];!ln(o)||!Zn(o)||(Object.assign(o.style,r),Object.keys(s).forEach(function(a){var i=s[a];i===!1?o.removeAttribute(a):o.setAttribute(a,i===!0?"":i)}))})}function dC(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var s=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),i=a.reduce(function(l,u){return l[u]="",l},{});!ln(s)||!Zn(s)||(Object.assign(s.style,i),Object.keys(o).forEach(function(l){s.removeAttribute(l)}))})}}var U0={name:"applyStyles",enabled:!0,phase:"write",fn:fC,effect:dC,requires:["computeStyles"]};function Vn(e){return e.split("-")[0]}var as=Math.max,_i=Math.min,Gs=Math.round;function Su(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function j0(){return!/^((?!chrome|android).)*safari/i.test(Su())}function Ys(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),s=1,o=1;t&&ln(e)&&(s=e.offsetWidth>0&&Gs(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Gs(r.height)/e.offsetHeight||1);var a=cs(e)?Qt(e):window,i=a.visualViewport,l=!j0()&&n,u=(r.left+(l&&i?i.offsetLeft:0))/s,c=(r.top+(l&&i?i.offsetTop:0))/o,f=r.width/s,d=r.height/o;return{width:f,height:d,top:c,right:u+f,bottom:c+d,left:u,x:u,y:c}}function nf(e){var t=Ys(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Z0(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&tf(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function hr(e){return Qt(e).getComputedStyle(e)}function pC(e){return["table","td","th"].indexOf(Zn(e))>=0}function Dr(e){return((cs(e)?e.ownerDocument:e.document)||window.document).documentElement}function tl(e){return Zn(e)==="html"?e:e.assignedSlot||e.parentNode||(tf(e)?e.host:null)||Dr(e)}function _p(e){return!ln(e)||hr(e).position==="fixed"?null:e.offsetParent}function hC(e){var t=/firefox/i.test(Su()),n=/Trident/i.test(Su());if(n&&ln(e)){var r=hr(e);if(r.position==="fixed")return null}var s=tl(e);for(tf(s)&&(s=s.host);ln(s)&&["html","body"].indexOf(Zn(s))<0;){var o=hr(s);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return s;s=s.parentNode}return null}function _a(e){for(var t=Qt(e),n=_p(e);n&&pC(n)&&hr(n).position==="static";)n=_p(n);return n&&(Zn(n)==="html"||Zn(n)==="body"&&hr(n).position==="static")?t:n||hC(e)||t}function rf(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Go(e,t,n){return as(e,_i(t,n))}function mC(e,t,n){var r=Go(e,t,n);return r>n?n:r}function K0(){return{top:0,right:0,bottom:0,left:0}}function H0(e){return Object.assign({},K0(),e)}function X0(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var gC=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,H0(typeof e!="number"?e:X0(e,wa))};function bC(e){var t,n=e.state,r=e.name,s=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,i=Vn(n.placement),l=rf(i),u=[Gt,dn].indexOf(i)>=0,c=u?"height":"width";if(!(!o||!a)){var f=gC(s.padding,n),d=nf(o),p=l==="y"?Dt:Gt,h=l==="y"?fn:dn,m=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],b=a[l]-n.rects.reference[l],y=_a(o),v=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,E=m/2-b/2,_=f[p],B=v-d[c]-f[h],G=v/2-d[c]/2+E,P=Go(_,G,B),O=l;n.modifiersData[r]=(t={},t[O]=P,t.centerOffset=P-G,t)}}function vC(e){var t=e.state,n=e.options,r=n.element,s=r===void 0?"[data-popper-arrow]":r;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||Z0(t.elements.popper,s)&&(t.elements.arrow=s))}var yC={name:"arrow",enabled:!0,phase:"main",fn:bC,effect:vC,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Us(e){return e.split("-")[1]}var wC={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _C(e,t){var n=e.x,r=e.y,s=t.devicePixelRatio||1;return{x:Gs(n*s)/s||0,y:Gs(r*s)/s||0}}function Ep(e){var t,n=e.popper,r=e.popperRect,s=e.placement,o=e.variation,a=e.offsets,i=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,d=a.x,p=d===void 0?0:d,h=a.y,m=h===void 0?0:h,b=typeof c=="function"?c({x:p,y:m}):{x:p,y:m};p=b.x,m=b.y;var y=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),E=Gt,_=Dt,B=window;if(u){var G=_a(n),P="clientHeight",O="clientWidth";if(G===Qt(n)&&(G=Dr(n),hr(G).position!=="static"&&i==="absolute"&&(P="scrollHeight",O="scrollWidth")),G=G,s===Dt||(s===Gt||s===dn)&&o===oa){_=fn;var R=f&&G===B&&B.visualViewport?B.visualViewport.height:G[P];m-=R-r.height,m*=l?1:-1}if(s===Gt||(s===Dt||s===fn)&&o===oa){E=dn;var F=f&&G===B&&B.visualViewport?B.visualViewport.width:G[O];p-=F-r.width,p*=l?1:-1}}var W=Object.assign({position:i},u&&wC),k=c===!0?_C({x:p,y:m},Qt(n)):{x:p,y:m};if(p=k.x,m=k.y,l){var U;return Object.assign({},W,(U={},U[_]=v?"0":"",U[E]=y?"0":"",U.transform=(B.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",U))}return Object.assign({},W,(t={},t[_]=v?m+"px":"",t[E]=y?p+"px":"",t.transform="",t))}function EC(e){var t=e.state,n=e.options,r=n.gpuAcceleration,s=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,i=n.roundOffsets,l=i===void 0?!0:i,u={placement:Vn(t.placement),variation:Us(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ep(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ep(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var z0={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:EC,data:{}},Ta={passive:!0};function AC(e){var t=e.state,n=e.instance,r=e.options,s=r.scroll,o=s===void 0?!0:s,a=r.resize,i=a===void 0?!0:a,l=Qt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(c){c.addEventListener("scroll",n.update,Ta)}),i&&l.addEventListener("resize",n.update,Ta),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",n.update,Ta)}),i&&l.removeEventListener("resize",n.update,Ta)}}var J0={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:AC,data:{}},SC={left:"right",right:"left",bottom:"top",top:"bottom"};function Ua(e){return e.replace(/left|right|bottom|top/g,function(t){return SC[t]})}var xC={start:"end",end:"start"};function Ap(e){return e.replace(/start|end/g,function(t){return xC[t]})}function sf(e){var t=Qt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function of(e){return Ys(Dr(e)).left+sf(e).scrollLeft}function NC(e,t){var n=Qt(e),r=Dr(e),s=n.visualViewport,o=r.clientWidth,a=r.clientHeight,i=0,l=0;if(s){o=s.width,a=s.height;var u=j0();(u||!u&&t==="fixed")&&(i=s.offsetLeft,l=s.offsetTop)}return{width:o,height:a,x:i+of(e),y:l}}function IC(e){var t,n=Dr(e),r=sf(e),s=(t=e.ownerDocument)==null?void 0:t.body,o=as(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),a=as(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),i=-r.scrollLeft+of(e),l=-r.scrollTop;return hr(s||n).direction==="rtl"&&(i+=as(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:a,x:i,y:l}}function af(e){var t=hr(e),n=t.overflow,r=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+r)}function Q0(e){return["html","body","#document"].indexOf(Zn(e))>=0?e.ownerDocument.body:ln(e)&&af(e)?e:Q0(tl(e))}function Yo(e,t){var n;t===void 0&&(t=[]);var r=Q0(e),s=r===((n=e.ownerDocument)==null?void 0:n.body),o=Qt(r),a=s?[o].concat(o.visualViewport||[],af(r)?r:[]):r,i=t.concat(a);return s?i:i.concat(Yo(tl(a)))}function xu(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function CC(e,t){var n=Ys(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Sp(e,t,n){return t===Y0?xu(NC(e,n)):cs(t)?CC(t,n):xu(IC(Dr(e)))}function TC(e){var t=Yo(tl(e)),n=["absolute","fixed"].indexOf(hr(e).position)>=0,r=n&&ln(e)?_a(e):e;return cs(r)?t.filter(function(s){return cs(s)&&Z0(s,r)&&Zn(s)!=="body"}):[]}function RC(e,t,n,r){var s=t==="clippingParents"?TC(e):[].concat(t),o=[].concat(s,[n]),a=o[0],i=o.reduce(function(l,u){var c=Sp(e,u,r);return l.top=as(c.top,l.top),l.right=_i(c.right,l.right),l.bottom=_i(c.bottom,l.bottom),l.left=as(c.left,l.left),l},Sp(e,a,r));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function q0(e){var t=e.reference,n=e.element,r=e.placement,s=r?Vn(r):null,o=r?Us(r):null,a=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,l;switch(s){case Dt:l={x:a,y:t.y-n.height};break;case fn:l={x:a,y:t.y+t.height};break;case dn:l={x:t.x+t.width,y:i};break;case Gt:l={x:t.x-n.width,y:i};break;default:l={x:t.x,y:t.y}}var u=s?rf(s):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case Ds:l[u]=l[u]-(t[c]/2-n[c]/2);break;case oa:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function aa(e,t){t===void 0&&(t={});var n=t,r=n.placement,s=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,i=n.boundary,l=i===void 0?qI:i,u=n.rootBoundary,c=u===void 0?Y0:u,f=n.elementContext,d=f===void 0?mo:f,p=n.altBoundary,h=p===void 0?!1:p,m=n.padding,b=m===void 0?0:m,y=H0(typeof b!="number"?b:X0(b,wa)),v=d===mo?eC:mo,E=e.rects.popper,_=e.elements[h?v:d],B=RC(cs(_)?_:_.contextElement||Dr(e.elements.popper),l,c,a),G=Ys(e.elements.reference),P=q0({reference:G,element:E,placement:s}),O=xu(Object.assign({},E,P)),R=d===mo?O:G,F={top:B.top-R.top+y.top,bottom:R.bottom-B.bottom+y.bottom,left:B.left-R.left+y.left,right:R.right-B.right+y.right},W=e.modifiersData.offset;if(d===mo&&W){var k=W[s];Object.keys(F).forEach(function(U){var K=[dn,fn].indexOf(U)>=0?1:-1,j=[Dt,fn].indexOf(U)>=0?"y":"x";F[U]+=k[j]*K})}return F}function PC(e,t){t===void 0&&(t={});var n=t,r=n.placement,s=n.boundary,o=n.rootBoundary,a=n.padding,i=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?ef:l,c=Us(r),f=c?i?wp:wp.filter(function(h){return Us(h)===c}):wa,d=f.filter(function(h){return u.indexOf(h)>=0});d.length===0&&(d=f);var p=d.reduce(function(h,m){return h[m]=aa(e,{placement:m,boundary:s,rootBoundary:o,padding:a})[Vn(m)],h},{});return Object.keys(p).sort(function(h,m){return p[h]-p[m]})}function BC(e){if(Vn(e)===qc)return[];var t=Ua(e);return[Ap(e),t,Ap(t)]}function OC(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var s=n.mainAxis,o=s===void 0?!0:s,a=n.altAxis,i=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,h=p===void 0?!0:p,m=n.allowedAutoPlacements,b=t.options.placement,y=Vn(b),v=y===b,E=l||(v||!h?[Ua(b)]:BC(b)),_=[b].concat(E).reduce(function(ye,Be){return ye.concat(Vn(Be)===qc?PC(t,{placement:Be,boundary:c,rootBoundary:f,padding:u,flipVariations:h,allowedAutoPlacements:m}):Be)},[]),B=t.rects.reference,G=t.rects.popper,P=new Map,O=!0,R=_[0],F=0;F<_.length;F++){var W=_[F],k=Vn(W),U=Us(W)===Ds,K=[Dt,fn].indexOf(k)>=0,j=K?"width":"height",M=aa(t,{placement:W,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),I=K?U?dn:Gt:U?fn:Dt;B[j]>G[j]&&(I=Ua(I));var C=Ua(I),H=[];if(o&&H.push(M[k]<=0),i&&H.push(M[I]<=0,M[C]<=0),H.every(function(ye){return ye})){R=W,O=!1;break}P.set(W,H)}if(O)for(var re=h?3:1,le=function(ye){var Be=_.find(function(Qe){var L=P.get(Qe);if(L)return L.slice(0,ye).every(function(te){return te})});if(Be)return R=Be,"break"},ae=re;ae>0;ae--){var Se=le(ae);if(Se==="break")break}t.placement!==R&&(t.modifiersData[r]._skip=!0,t.placement=R,t.reset=!0)}}var kC={name:"flip",enabled:!0,phase:"main",fn:OC,requiresIfExists:["offset"],data:{_skip:!1}};function xp(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Np(e){return[Dt,dn,fn,Gt].some(function(t){return e[t]>=0})}function FC(e){var t=e.state,n=e.name,r=t.rects.reference,s=t.rects.popper,o=t.modifiersData.preventOverflow,a=aa(t,{elementContext:"reference"}),i=aa(t,{altBoundary:!0}),l=xp(a,r),u=xp(i,s,o),c=Np(l),f=Np(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}var LC={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:FC};function MC(e,t,n){var r=Vn(e),s=[Gt,Dt].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],i=o[1];return a=a||0,i=(i||0)*s,[Gt,dn].indexOf(r)>=0?{x:i,y:a}:{x:a,y:i}}function $C(e){var t=e.state,n=e.options,r=e.name,s=n.offset,o=s===void 0?[0,0]:s,a=ef.reduce(function(c,f){return c[f]=MC(f,t.rects,o),c},{}),i=a[t.placement],l=i.x,u=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}var VC={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:$C};function WC(e){var t=e.state,n=e.name;t.modifiersData[n]=q0({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var eb={name:"popperOffsets",enabled:!0,phase:"read",fn:WC,data:{}};function DC(e){return e==="x"?"y":"x"}function GC(e){var t=e.state,n=e.options,r=e.name,s=n.mainAxis,o=s===void 0?!0:s,a=n.altAxis,i=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,d=n.tether,p=d===void 0?!0:d,h=n.tetherOffset,m=h===void 0?0:h,b=aa(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),y=Vn(t.placement),v=Us(t.placement),E=!v,_=rf(y),B=DC(_),G=t.modifiersData.popperOffsets,P=t.rects.reference,O=t.rects.popper,R=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,F=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),W=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(G){if(o){var U,K=_==="y"?Dt:Gt,j=_==="y"?fn:dn,M=_==="y"?"height":"width",I=G[_],C=I+b[K],H=I-b[j],re=p?-O[M]/2:0,le=v===Ds?P[M]:O[M],ae=v===Ds?-O[M]:-P[M],Se=t.elements.arrow,ye=p&&Se?nf(Se):{width:0,height:0},Be=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:K0(),Qe=Be[K],L=Be[j],te=Go(0,P[M],ye[M]),q=E?P[M]/2-re-te-Qe-F.mainAxis:le-te-Qe-F.mainAxis,ie=E?-P[M]/2+re+te+L+F.mainAxis:ae+te+L+F.mainAxis,_e=t.elements.arrow&&_a(t.elements.arrow),g=_e?_==="y"?_e.clientTop||0:_e.clientLeft||0:0,w=(U=W?.[_])!=null?U:0,S=I+q-w-g,V=I+ie-w,Y=Go(p?_i(C,S):C,I,p?as(H,V):H);G[_]=Y,k[_]=Y-I}if(i){var $,ne=_==="x"?Dt:Gt,ee=_==="x"?fn:dn,X=G[B],Z=B==="y"?"height":"width",ge=X+b[ne],oe=X-b[ee],fe=[Dt,Gt].indexOf(y)!==-1,ve=($=W?.[B])!=null?$:0,Ce=fe?ge:X-P[Z]-O[Z]-ve+F.altAxis,Fe=fe?X+P[Z]+O[Z]-ve-F.altAxis:oe,ke=p&&fe?mC(Ce,X,Fe):Go(p?Ce:ge,X,p?Fe:oe);G[B]=ke,k[B]=ke-X}t.modifiersData[r]=k}}var YC={name:"preventOverflow",enabled:!0,phase:"main",fn:GC,requiresIfExists:["offset"]};function UC(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function jC(e){return e===Qt(e)||!ln(e)?sf(e):UC(e)}function ZC(e){var t=e.getBoundingClientRect(),n=Gs(t.width)/e.offsetWidth||1,r=Gs(t.height)/e.offsetHeight||1;return n!==1||r!==1}function KC(e,t,n){n===void 0&&(n=!1);var r=ln(t),s=ln(t)&&ZC(t),o=Dr(t),a=Ys(e,s,n),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Zn(t)!=="body"||af(o))&&(i=jC(t)),ln(t)?(l=Ys(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=of(o))),{x:a.left+i.scrollLeft-l.x,y:a.top+i.scrollTop-l.y,width:a.width,height:a.height}}function HC(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function s(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(i){if(!n.has(i)){var l=t.get(i);l&&s(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||s(o)}),r}function XC(e){var t=HC(e);return cC.reduce(function(n,r){return n.concat(t.filter(function(s){return s.phase===r}))},[])}function zC(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function JC(e){var t=e.reduce(function(n,r){var s=n[r.name];return n[r.name]=s?Object.assign({},s,r,{options:Object.assign({},s.options,r.options),data:Object.assign({},s.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Ip={placement:"bottom",modifiers:[],strategy:"absolute"};function Cp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function lf(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,s=t.defaultOptions,o=s===void 0?Ip:s;return function(a,i,l){l===void 0&&(l=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ip,o),modifiersData:{},elements:{reference:a,popper:i},attributes:{},styles:{}},c=[],f=!1,d={state:u,setOptions:function(m){var b=typeof m=="function"?m(u.options):m;h(),u.options=Object.assign({},o,u.options,b),u.scrollParents={reference:cs(a)?Yo(a):a.contextElement?Yo(a.contextElement):[],popper:Yo(i)};var y=XC(JC([].concat(r,u.options.modifiers)));return u.orderedModifiers=y.filter(function(v){return v.enabled}),p(),d.update()},forceUpdate:function(){if(!f){var m=u.elements,b=m.reference,y=m.popper;if(Cp(b,y)){u.rects={reference:KC(b,_a(y),u.options.strategy==="fixed"),popper:nf(y)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(O){return u.modifiersData[O.name]=Object.assign({},O.data)});for(var v=0;v<u.orderedModifiers.length;v++){if(u.reset===!0){u.reset=!1,v=-1;continue}var E=u.orderedModifiers[v],_=E.fn,B=E.options,G=B===void 0?{}:B,P=E.name;typeof _=="function"&&(u=_({state:u,options:G,name:P,instance:d})||u)}}}},update:zC(function(){return new Promise(function(m){d.forceUpdate(),m(u)})}),destroy:function(){h(),f=!0}};if(!Cp(a,i))return d;d.setOptions(l).then(function(m){!f&&l.onFirstUpdate&&l.onFirstUpdate(m)});function p(){u.orderedModifiers.forEach(function(m){var b=m.name,y=m.options,v=y===void 0?{}:y,E=m.effect;if(typeof E=="function"){var _=E({state:u,name:b,instance:d,options:v}),B=function(){};c.push(_||B)}})}function h(){c.forEach(function(m){return m()}),c=[]}return d}}lf();var QC=[J0,eb,z0,U0];lf({defaultModifiers:QC});var qC=[J0,eb,z0,U0,VC,kC,YC,yC,LC],e5=lf({defaultModifiers:qC});const t5=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const u=n5(l);Object.assign(a.value,u)},requires:["computeStyles"]},s=T(()=>{const{onFirstUpdate:l,placement:u,strategy:c,modifiers:f}=A(n);return{onFirstUpdate:l,placement:u||"bottom",strategy:c||"absolute",modifiers:[...f||[],r,{name:"applyStyles",enabled:!1}]}}),o=Qs(),a=Q({styles:{popper:{position:A(s).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=()=>{o.value&&(o.value.destroy(),o.value=void 0)};return Ie(s,l=>{const u=A(o);u&&u.setOptions(l)},{deep:!0}),Ie([e,t],([l,u])=>{i(),!(!l||!u)&&(o.value=e5(l,u,A(s)))}),vt(()=>{i()}),{state:T(()=>({...A(o)?.state||{}})),styles:T(()=>A(a).styles),attributes:T(()=>A(a).attributes),update:()=>A(o)?.update(),forceUpdate:()=>A(o)?.forceUpdate(),instanceRef:T(()=>A(o))}};function n5(e){const t=Object.keys(e.elements);return{styles:wi(t.map(n=>[n,e.styles[n]||{}])),attributes:wi(t.map(n=>[n,e.attributes[n]]))}}function Tp(){let e;const t=(r,s)=>{n(),e=globalThis.setTimeout(r,s)},n=()=>{e!==void 0&&(globalThis.clearTimeout(e),e=void 0)};return qi(()=>n()),{registerTimeout:t,cancelTimeout:n}}const Nu={prefix:Math.floor(Math.random()*1e4),current:0},r5=Symbol("elIdInjection"),tb=()=>ot()?be(r5,Nu):Nu,nl=e=>{const t=tb();!ft&&t===Nu&&An("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
|
|
5
|
+
usage: app.provide(ID_INJECTION_KEY, {
|
|
6
|
+
prefix: number,
|
|
7
|
+
current: number,
|
|
8
|
+
})`);const n=Qc();return M0(()=>A(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let Is=[];const Rp=e=>{Hn(e)===Ve.esc&&Is.forEach(t=>t(e))},s5=e=>{it(()=>{Is.length===0&&document.addEventListener("keydown",Rp),ft&&Is.push(e)}),vt(()=>{Is=Is.filter(t=>t!==e),Is.length===0&&ft&&document.removeEventListener("keydown",Rp)})},nb=()=>{const e=Qc(),t=tb(),n=T(()=>`${e.value}-popper-container-${t.prefix}`);return{id:n,selector:T(()=>`#${n.value}`)}},o5=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},a5=()=>{const{id:e,selector:t}=nb();return hg(()=>{ft&&(document.body.querySelector(t.value)||o5(e.value))}),{id:e,selector:t}},i5=Ge({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),l5=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:s})=>{const{registerTimeout:o}=Tp(),{registerTimeout:a,cancelTimeout:i}=Tp();return{onOpen:(c,f=A(e))=>{o(()=>{r(c);const d=A(n);Mt(d)&&d>0&&a(()=>{s(c)},d)},f)},onClose:(c,f=A(t))=>{i(),o(()=>{s(c)},f)}}},rb=Symbol("elForwardRef"),u5=e=>{st(rb,{setForwardRef:(n=>{e.value=n})})},c5=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),Pp={current:0},Bp=Q(0),sb=2e3,Op=Symbol("elZIndexContextKey"),ob=Symbol("zIndexContextKey"),ab=e=>{const t=ot()?be(Op,Pp):Pp,n=e||(ot()?be(ob,void 0):void 0),r=T(()=>{const a=A(n);return Mt(a)?a:sb}),s=T(()=>r.value+Bp.value),o=()=>(t.current++,Bp.value=t.current,s.value);return!ft&&!be(Op)&&An("ZIndexInjection",`Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
|
|
9
|
+
usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:r,currentZIndex:s,nextZIndex:o}};const So=e=>{const t=ue(e)?e:[e],n=[];return t.forEach(r=>{ue(r)?n.push(...So(r)):yn(r)&&r.component?.subTree?n.push(r,...So(r.component.subTree)):yn(r)&&ue(r.children)?n.push(...So(r.children)):yn(r)&&r.shapeFlag===2?n.push(...So(r.type())):n.push(r)}),n},ib=Qi({type:String,values:VS,required:!1}),lb=Symbol("size"),f5=()=>{const e=be(lb,{});return T(()=>A(e.size)||"")},d5=Symbol("emptyValuesContextKey");const p5=Ge({emptyValues:Array,valueOnClear:{type:ce([String,Number,Boolean,Function]),default:void 0,validator:e=>(e=me(e)?e():e,ue(e)?e.every(t=>!t):!e)}});const h5=Ge({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),uf=e=>II(h5,e),ub=e=>{const t=e.props,n=ue(t)?wi(t.map(r=>[r,{}])):t;e.setPropsDefaults=r=>{if(n){for(const[s,o]of Object.entries(r)){const a=n[s];if(Pe(n,s)){if(eI(a)){n[s]={...a,default:o};continue}n[s]={type:a,default:o}}}e.props=n}}},Xn=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t??{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return ub(e),e},m5=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),g5=(e,t)=>(e.install=n=>{n.directive(t,e)},e),oo=e=>(e.install=Rt,ub(e),e);var b5=he({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(z(),Ee("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[pe("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}}),cb=b5;var v5=he({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(z(),Ee("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[pe("path",{fill:"currentColor",d:"M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),y5=v5;var w5=he({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(z(),Ee("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[pe("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),pe("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752z"})]))}}),_5=w5,E5=he({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(z(),Ee("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[pe("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),fb=E5,A5=he({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(z(),Ee("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[pe("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),pe("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),S5=A5;var x5=he({name:"Close",__name:"close",setup(e){return(t,n)=>(z(),Ee("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[pe("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),N5=x5;var I5=he({name:"Hide",__name:"hide",setup(e){return(t,n)=>(z(),Ee("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[pe("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4s-12.8-9.6-22.4-9.6-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176S0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4m-646.4 528Q115.2 579.2 76.8 512q43.2-72 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4m140.8-96Q352 555.2 352 512c0-44.8 16-83.2 48-112s67.2-48 112-48c28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6q-43.2 72-153.6 172.8c-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176S1024 528 1024 512s-48.001-73.6-134.401-176"}),pe("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112s-67.2 48-112 48"})]))}}),zO=I5,C5=he({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(z(),Ee("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[pe("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),Iu=C5,T5=he({name:"Loading",__name:"loading",setup(e){return(t,n)=>(z(),Ee("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[pe("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248M828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0"})]))}}),db=T5;var R5=he({name:"More",__name:"more",setup(e){return(t,n)=>(z(),Ee("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[pe("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),P5=R5;var B5=he({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(z(),Ee("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[pe("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),pb=B5,O5=he({name:"View",__name:"view",setup(e){return(t,n)=>(z(),Ee("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[pe("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288m0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.19 160.19 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),JO=O5,k5=he({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(z(),Ee("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[pe("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),hb=k5;const cr=ce([String,Object,Function]);const F5={Close:N5,SuccessFilled:pb,InfoFilled:Iu,WarningFilled:hb,CircleCloseFilled:fb},kp={primary:Iu,success:pb,warning:hb,error:fb,info:Iu},QO={validating:db,success:_5,error:S5},L5=Ge({size:{type:ce([Number,String])},color:{type:String}});var M5=he({name:"ElIcon",inheritAttrs:!1,__name:"icon",props:L5,setup(e){const t=e,n=De("icon"),r=T(()=>{const{size:s,color:o}=t,a=us(s);return!a&&!o?{}:{fontSize:a,"--color":o}});return(s,o)=>(z(),Ee("i",Yt({class:A(n).b(),style:r.value},s.$attrs),[we(s.$slots,"default")],16))}}),$5=M5;const Vr=Xn($5),mb=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],gb=Ge({role:{type:String,values:mb,default:"tooltip"}}),cf=Symbol("popper"),bb=Symbol("popperContent");var V5=he({name:"ElPopperArrow",inheritAttrs:!1,__name:"arrow",setup(e,{expose:t}){const n=De("popper"),{arrowRef:r,arrowStyle:s}=be(bb,void 0);return vt(()=>{r.value=void 0}),t({arrowRef:r}),(o,a)=>(z(),Ee("span",{ref_key:"arrowRef",ref:r,class:Oe(A(n).e("arrow")),style:_n(A(s)),"data-popper-arrow":""},null,6))}}),W5=V5;const vb=Ge({virtualRef:{type:ce(Object)},virtualTriggering:Boolean,onMouseenter:{type:ce(Function)},onMouseleave:{type:ce(Function)},onClick:{type:ce(Function)},onKeydown:{type:ce(Function)},onFocus:{type:ce(Function)},onBlur:{type:ce(Function)},onContextmenu:{type:ce(Function)},id:String,open:Boolean}),Nl="ElOnlyChild",yb=he({name:Nl,setup(e,{slots:t,attrs:n}){const r=c5(be(rb)?.setForwardRef??Rt);return()=>{const s=t.default?.(n);if(!s)return null;const[o,a]=wb(s);return o?(a>1&&An(Nl,"requires exact only one valid child."),qs(Yn(o,n),[[r]])):(An(Nl,"no valid child node found"),null)}}});function wb(e){if(!e)return[null,0];const t=e,n=t.filter(r=>r.type!==mt).length;for(const r of t){if(Te(r))switch(r.type){case mt:continue;case eo:case"svg":return[Fp(r),n];case qe:return wb(r.children);default:return[r,n]}return[Fp(r),n]}return[null,0]}function Fp(e){return Ae("span",{class:De("only-child").e("content")},[e])}var D5=he({name:"ElPopperTrigger",inheritAttrs:!1,__name:"trigger",props:vb,setup(e,{expose:t}){const n=e,{role:r,triggerRef:s}=be(cf,void 0);u5(s);const o=T(()=>i.value?n.id:void 0),a=T(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),i=T(()=>{if(r&&r.value!=="tooltip")return r.value}),l=T(()=>i.value?`${n.open}`:void 0);let u;const c=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return it(()=>{Ie(()=>n.virtualRef,f=>{f&&(s.value=Mn(f))},{immediate:!0}),Ie(s,(f,d)=>{u?.(),u=void 0,kr(d)&&c.forEach(p=>{const h=n[p];h&&d.removeEventListener(p.slice(2).toLowerCase(),h,["onFocus","onBlur"].includes(p))}),kr(f)&&(c.forEach(p=>{const h=n[p];h&&f.addEventListener(p.slice(2).toLowerCase(),h,["onFocus","onBlur"].includes(p))}),Au(f)&&(u=Ie([o,a,i,l],p=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((h,m)=>{Ws(p[m])?f.removeAttribute(h):f.setAttribute(h,p[m])})},{immediate:!0}))),kr(d)&&Au(d)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(p=>d.removeAttribute(p))},{immediate:!0})}),vt(()=>{if(u?.(),u=void 0,s.value&&kr(s.value)){const f=s.value;c.forEach(d=>{const p=n[d];p&&f.removeEventListener(d.slice(2).toLowerCase(),p,["onFocus","onBlur"].includes(d))}),s.value=void 0}}),t({triggerRef:s}),(f,d)=>e.virtualTriggering?et("v-if",!0):(z(),xe(A(yb),Yt({key:0},f.$attrs,{"aria-controls":o.value,"aria-describedby":a.value,"aria-expanded":l.value,"aria-haspopup":i.value}),{default:de(()=>[we(f.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}}),G5=D5;const _b=Ge({arrowOffset:{type:Number,default:5}}),Y5=Ge({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:ce(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:ef,default:"bottom"},popperOptions:{type:ce(Object),default:()=>({})},strategy:{type:String,values:["fixed","absolute"],default:"absolute"}}),Eb=Ge({...Y5,..._b,id:String,style:{type:ce([String,Array,Object,Boolean]),default:void 0},className:{type:ce([String,Array,Object])},effect:{type:ce(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:Boolean,trapping:Boolean,popperClass:{type:ce([String,Array,Object])},popperStyle:{type:ce([String,Array,Object,Boolean]),default:void 0},referenceEl:{type:ce(Object)},triggerTargetEl:{type:ce(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...uf(["ariaLabel"]),loop:Boolean}),U5={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},ff=Symbol("formContextKey"),Ei=Symbol("formItemContextKey"),Ab=(e,t={})=>{const n=Q(void 0),r=t.prop?n:G0("size"),s=t.global?n:f5(),o=t.form?{size:void 0}:be(ff,void 0),a=t.formItem?{size:void 0}:be(Ei,void 0);return T(()=>r.value||A(e)||a?.size||o?.size||s.value||"")},Sb=e=>{const t=G0("disabled"),n=be(ff,void 0);return T(()=>t.value??A(e)??n?.disabled??!1)},j5=()=>({form:be(ff,void 0),formItem:be(Ei,void 0)}),qO=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=Q(!1)),r||(r=Q(!1));const s=ot(),o=()=>{let u=s?.parent;for(;u;){if(u.type.name==="ElFormItem")return!1;if(u.type.name==="ElLabelWrap")return!0;u=u.parent}return!1},a=Q();let i;const l=T(()=>!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&t.inputIds?.length<=1));return it(()=>{i=Ie([Et(e,"id"),n],([u,c])=>{const f=u??(c?void 0:nl().value);f!==a.value&&(t?.removeInputId&&!o()&&(a.value&&t.removeInputId(a.value),!r?.value&&!c&&f&&t.addInputId(f)),a.value=f)},{immediate:!0})}),ha(()=>{i&&i(),t?.removeInputId&&a.value&&t.removeInputId(a.value)}),{isLabeledByFormItem:l,inputId:a}};const Z5=e=>!e&&e!==0?[]:ue(e)?e:[e],Il="focus-trap.focus-after-trapped",Cl="focus-trap.focus-after-released",K5="focus-trap.focusout-prevented",Lp={cancelable:!0,bubbles:!1},H5={cancelable:!0,bubbles:!1},Mp="focusAfterTrapped",$p="focusAfterReleased",X5=Symbol("elFocusTrap"),df=Q(),rl=Q(0),pf=Q(0);let Ra=0;const xb=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},Vp=(e,t)=>{for(const n of e)if(!z5(n,t))return n},z5=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},J5=e=>{const t=xb(e);return[Vp(t,e),Vp(t.reverse(),e)]},Q5=e=>e instanceof HTMLInputElement&&"select"in e,Sr=(e,t)=>{if(e){const n=document.activeElement;el(e,{preventScroll:!0}),pf.value=window.performance.now(),e!==n&&Q5(e)&&t&&e.select()}};function Wp(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const q5=()=>{let e=[];return{push:r=>{const s=e[0];s&&r!==s&&s.pause(),e=Wp(e,r),e.unshift(r)},remove:r=>{e=Wp(e,r),e[0]?.resume?.()}}},e6=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(Sr(r,t),document.activeElement!==n)return},Dp=q5(),t6=()=>rl.value>pf.value,Pa=()=>{df.value="pointer",rl.value=window.performance.now()},Gp=()=>{df.value="keyboard",rl.value=window.performance.now()},n6=()=>(it(()=>{Ra===0&&(document.addEventListener("mousedown",Pa),document.addEventListener("touchstart",Pa),document.addEventListener("keydown",Gp)),Ra++}),vt(()=>{Ra--,Ra<=0&&(document.removeEventListener("mousedown",Pa),document.removeEventListener("touchstart",Pa),document.removeEventListener("keydown",Gp))}),{focusReason:df,lastUserFocusTimestamp:rl,lastAutomatedFocusTimestamp:pf}),Ba=e=>new CustomEvent(K5,{...H5,detail:e});var r6=he({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Mp,$p,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=Q();let r,s;const{focusReason:o}=n6();s5(h=>{e.trapped&&!a.paused&&t("release-requested",h)});const a={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},i=h=>{if(!e.loop&&!e.trapped||a.paused)return;const{altKey:m,ctrlKey:b,metaKey:y,currentTarget:v,shiftKey:E}=h,{loop:_}=e,B=Hn(h)===Ve.tab&&!m&&!b&&!y,G=document.activeElement;if(B&&G){const P=v,[O,R]=J5(P);if(O&&R){if(!E&&G===R){const F=Ba({focusReason:o.value});t("focusout-prevented",F),F.defaultPrevented||(h.preventDefault(),_&&Sr(O,!0))}else if(E&&[O,P].includes(G)){const F=Ba({focusReason:o.value});t("focusout-prevented",F),F.defaultPrevented||(h.preventDefault(),_&&Sr(R,!0))}}else if(G===P){const F=Ba({focusReason:o.value});t("focusout-prevented",F),F.defaultPrevented||h.preventDefault()}}};st(X5,{focusTrapRef:n,onKeydown:i}),Ie(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),Ie([n],([h],[m])=>{h&&(h.addEventListener("keydown",i),h.addEventListener("focusin",c),h.addEventListener("focusout",f)),m&&(m.removeEventListener("keydown",i),m.removeEventListener("focusin",c),m.removeEventListener("focusout",f))});const l=h=>{t(Mp,h)},u=h=>t($p,h),c=h=>{const m=A(n);if(!m)return;const b=h.target,y=h.relatedTarget,v=b&&m.contains(b);e.trapped||y&&m.contains(y)||(r=y),v&&t("focusin",h),!a.paused&&e.trapped&&(v?s=b:Sr(s,!0))},f=h=>{const m=A(n);if(!(a.paused||!m))if(e.trapped){const b=h.relatedTarget;!Ws(b)&&!m.contains(b)&&setTimeout(()=>{if(!a.paused&&e.trapped){const y=Ba({focusReason:o.value});t("focusout-prevented",y),y.defaultPrevented||Sr(s,!0)}},0)}else{const b=h.target;b&&m.contains(b)||t("focusout",h)}};async function d(){await cn();const h=A(n);if(h){Dp.push(a);const m=h.contains(document.activeElement)?r:document.activeElement;if(r=m,!h.contains(m)){const b=new Event(Il,Lp);h.addEventListener(Il,l),h.dispatchEvent(b),b.defaultPrevented||cn(()=>{let y=e.focusStartEl;Ne(y)||(Sr(y),document.activeElement!==y&&(y="first")),y==="first"&&e6(xb(h),!0),(document.activeElement===m||y==="container")&&Sr(h)})}}}function p(){const h=A(n);if(h){h.removeEventListener(Il,l);const m=new CustomEvent(Cl,{...Lp,detail:{focusReason:o.value}});h.addEventListener(Cl,u),h.dispatchEvent(m),!m.defaultPrevented&&(o.value=="keyboard"||!t6()||h.contains(document.activeElement))&&Sr(r??document.body),h.removeEventListener(Cl,u),Dp.remove(a),r=null,s=null}}return it(()=>{e.trapped&&d(),Ie(()=>e.trapped,h=>{h?d():p()})}),vt(()=>{e.trapped&&p(),n.value&&(n.value.removeEventListener("keydown",i),n.value.removeEventListener("focusin",c),n.value.removeEventListener("focusout",f),n.value=void 0),r=null,s=null}),{onKeydown:i}}}),zn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n};function s6(e,t,n,r,s,o){return we(e.$slots,"default",{handleKeydown:e.onKeydown})}var o6=zn(r6,[["render",s6]]),a6=o6;const i6=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:s}=e,o={placement:n,strategy:r,...s,modifiers:[...u6(e),...t]};return c6(o,s?.modifiers),o},l6=e=>{if(ft)return Mn(e)};function u6(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:0,bottom:0,left:0,right:0}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function c6(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const f6=0,d6=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:s}=be(cf,void 0),o=Q(),a=T(()=>e.arrowOffset),i=T(()=>({name:"eventListeners",enabled:!!e.visible})),l=T(()=>{const v=A(o),E=A(a)??f6;return{name:"arrow",enabled:!AI(v),options:{element:v,padding:E}}}),u=T(()=>({onFirstUpdate:()=>{h()},...i6(e,[A(l),A(i)])})),c=T(()=>l6(e.referenceEl)||A(r)),{attributes:f,state:d,styles:p,update:h,forceUpdate:m,instanceRef:b}=t5(c,n,u);Ie(b,v=>t.value=v,{flush:"sync"}),it(()=>{Ie(()=>A(c)?.getBoundingClientRect?.(),()=>{h()})});let y;return Ie(()=>e.visible,v=>{y?.(),y=void 0,v&&(y=sa(n,h).stop)}),vt(()=>{t.value=void 0,y?.(),y=void 0}),{attributes:f,arrowRef:o,contentRef:n,instanceRef:b,state:d,styles:p,role:s,forceUpdate:m,update:h}},p6=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:s}=ab(),o=De("popper"),a=T(()=>A(t).popper),i=Q(Mt(e.zIndex)?e.zIndex:s()),l=T(()=>[o.b(),o.is("pure",e.pure),o.is(e.effect),e.popperClass]),u=T(()=>[{zIndex:A(i)},A(n).popper,e.popperStyle||{}]),c=T(()=>r.value==="dialog"?"false":void 0),f=T(()=>A(n).arrow||{});return{ariaModal:c,arrowStyle:f,contentAttrs:a,contentClass:l,contentStyle:u,contentZIndex:i,updateZIndex:()=>{i.value=Mt(e.zIndex)?e.zIndex:s()}}},h6=(e,t)=>{const n=Q(!1),r=Q(),s=()=>{t("focus")},o=u=>{u.detail?.focusReason!=="pointer"&&(r.value="first",t("blur"))},a=u=>{e.visible&&!n.value&&(u.target&&(r.value=u.target),n.value=!0)},i=u=>{e.trapping||(u.detail.focusReason==="pointer"&&u.preventDefault(),n.value=!1)},l=()=>{n.value=!1,t("close")};return vt(()=>{r.value=void 0}),{focusStartRef:r,trapped:n,onFocusAfterReleased:o,onFocusAfterTrapped:s,onFocusInTrap:a,onFocusoutPrevented:i,onReleaseRequested:l}};var m6=he({name:"ElPopperContent",__name:"content",props:Eb,emits:U5,setup(e,{expose:t,emit:n}){const r=n,s=e,{focusStartRef:o,trapped:a,onFocusAfterReleased:i,onFocusAfterTrapped:l,onFocusInTrap:u,onFocusoutPrevented:c,onReleaseRequested:f}=h6(s,r),{attributes:d,arrowRef:p,contentRef:h,styles:m,instanceRef:b,role:y,update:v}=d6(s),{ariaModal:E,arrowStyle:_,contentAttrs:B,contentClass:G,contentStyle:P,updateZIndex:O}=p6(s,{styles:m,attributes:d,role:y}),R=be(Ei,void 0);st(bb,{arrowStyle:_,arrowRef:p}),R&&st(Ei,{...R,addInputId:Rt,removeInputId:Rt});let F;const W=(U=!0)=>{v(),U&&O()},k=()=>{W(!1),s.visible&&s.focusOnShow?a.value=!0:s.visible===!1&&(a.value=!1)};return it(()=>{Ie(()=>s.triggerTargetEl,(U,K)=>{F?.(),F=void 0;const j=A(U||h.value),M=A(K||h.value);kr(j)&&(F=Ie([y,()=>s.ariaLabel,E,()=>s.id],I=>{["role","aria-label","aria-modal","id"].forEach((C,H)=>{Ws(I[H])?j.removeAttribute(C):j.setAttribute(C,I[H])})},{immediate:!0})),M!==j&&kr(M)&&["role","aria-label","aria-modal","id"].forEach(I=>{M.removeAttribute(I)})},{immediate:!0}),Ie(()=>s.visible,k,{immediate:!0})}),vt(()=>{F?.(),F=void 0,h.value=void 0}),t({popperContentRef:h,popperInstanceRef:b,updatePopper:W,contentStyle:P}),(U,K)=>(z(),Ee("div",Yt({ref_key:"contentRef",ref:h},A(B),{style:A(P),class:A(G),tabindex:"-1",onMouseenter:K[0]||(K[0]=j=>U.$emit("mouseenter",j)),onMouseleave:K[1]||(K[1]=j=>U.$emit("mouseleave",j))}),[Ae(A(a6),{loop:e.loop,trapped:A(a),"trap-on-focus-in":!0,"focus-trap-el":A(h),"focus-start-el":A(o),onFocusAfterTrapped:A(l),onFocusAfterReleased:A(i),onFocusin:A(u),onFocusoutPrevented:A(c),onReleaseRequested:A(f)},{default:de(()=>[we(U.$slots,"default")]),_:3},8,["loop","trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}}),g6=m6,b6=he({name:"ElPopper",inheritAttrs:!1,__name:"popper",props:gb,setup(e,{expose:t}){const n=e,r={triggerRef:Q(),popperInstanceRef:Q(),contentRef:Q(),referenceRef:Q(),role:T(()=>n.role)};return t(r),st(cf,r),(s,o)=>we(s.$slots,"default")}}),v6=b6;const y6=Xn(v6),It=Ge({...i5,...Eb,appendTo:{type:ce([String,Object])},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:ce(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...uf(["ariaLabel"])}),$r=Ge({...vb,disabled:Boolean,trigger:{type:ce([String,Array]),default:"hover"},triggerKeys:{type:ce(Array),default:()=>[Ve.enter,Ve.numpadEnter,Ve.space]},focusOnTarget:Boolean}),{useModelToggleProps:w6,useModelToggleEmits:_6,useModelToggle:E6}=QI("visible"),A6=Ge({...gb,...w6,...It,...$r,..._b,showArrow:{type:Boolean,default:!0}}),S6=[..._6,"before-show","before-hide","show","hide","open","close"],hf=Symbol("elTooltip"),Cu=(e,t)=>ue(e)?e.includes(t):e===t,As=(e,t,n)=>r=>{Cu(A(e),t)&&n(r)};var x6=he({name:"ElTooltipTrigger",__name:"trigger",props:$r,setup(e,{expose:t}){const n=e,r=De("tooltip"),{controlled:s,id:o,open:a,onOpen:i,onClose:l,onToggle:u}=be(hf,void 0),c=Q(null),f=()=>{if(A(s)||n.disabled)return!0},d=Et(n,"trigger"),p=ct(f,As(d,"hover",_=>{i(_),n.focusOnTarget&&_.target&&cn(()=>{el(_.target,{preventScroll:!0})})})),h=ct(f,As(d,"hover",l)),m=ct(f,As(d,"click",_=>{_.button===0&&u(_)})),b=ct(f,As(d,"focus",i)),y=ct(f,As(d,"focus",l)),v=ct(f,As(d,"contextmenu",_=>{_.preventDefault(),u(_)})),E=ct(f,_=>{const B=Hn(_);n.triggerKeys.includes(B)&&(_.preventDefault(),u(_))});return t({triggerRef:c}),(_,B)=>(z(),xe(A(G5),{id:A(o),"virtual-ref":e.virtualRef,open:A(a),"virtual-triggering":e.virtualTriggering,class:Oe(A(r).e("trigger")),onBlur:A(y),onClick:A(m),onContextmenu:A(v),onFocus:A(b),onMouseenter:A(p),onMouseleave:A(h),onKeydown:A(E)},{default:de(()=>[we(_.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}}),N6=x6,I6=he({name:"ElTooltipContent",inheritAttrs:!1,__name:"content",props:It,setup(e,{expose:t}){const n=e,{selector:r}=nb(),s=De("tooltip"),o=Q(),a=M0(()=>o.value?.popperContentRef);let i;const{controlled:l,id:u,open:c,trigger:f,onClose:d,onOpen:p,onShow:h,onHide:m,onBeforeShow:b,onBeforeHide:y}=be(hf,void 0),v=T(()=>n.transition||`${s.namespace.value}-fade-in-linear`),E=T(()=>n.persistent);vt(()=>{i?.()});const _=T(()=>A(E)?!0:A(c)),B=T(()=>n.disabled?!1:A(c)),G=T(()=>n.appendTo||r.value),P=T(()=>n.style??{}),O=Q(!0),R=()=>{m(),I()&&el(document.body,{preventScroll:!0}),O.value=!0},F=()=>{if(A(l))return!0},W=ct(F,()=>{n.enterable&&Cu(A(f),"hover")&&p()}),k=ct(F,()=>{Cu(A(f),"hover")&&d()}),U=()=>{o.value?.updatePopper?.(),b?.()},K=()=>{y?.()},j=()=>{h()},M=()=>{n.virtualTriggering||d()},I=C=>{const H=o.value?.popperContentRef,re=C?.relatedTarget||document.activeElement;return H?.contains(re)};return Ie(()=>A(c),C=>{C?(O.value=!1,i=LI(a,()=>{A(l)||Z5(A(f)).every(H=>H!=="hover"&&H!=="focus")&&d()},{detectIframe:!0})):i?.()},{flush:"post"}),t({contentRef:o,isFocusInsideContent:I}),(C,H)=>(z(),xe(f_,{disabled:!e.teleported,to:G.value},[_.value||!O.value?(z(),xe(to,{key:0,name:v.value,appear:!E.value,onAfterLeave:R,onBeforeEnter:U,onAfterEnter:j,onBeforeLeave:K,persisted:""},{default:de(()=>[qs(Ae(A(g6),Yt({id:A(u),ref_key:"contentRef",ref:o},C.$attrs,{"aria-label":e.ariaLabel,"aria-hidden":O.value,"boundaries-padding":e.boundariesPadding,"fallback-placements":e.fallbackPlacements,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,placement:e.placement,"popper-options":e.popperOptions,"arrow-offset":e.arrowOffset,strategy:e.strategy,effect:e.effect,enterable:e.enterable,pure:e.pure,"popper-class":e.popperClass,"popper-style":[e.popperStyle,P.value],"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,visible:B.value,"z-index":e.zIndex,loop:e.loop,onMouseenter:A(W),onMouseleave:A(k),onBlur:M,onClose:A(d)}),{default:de(()=>[we(C.$slots,"default")]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","arrow-offset","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","loop","onMouseenter","onMouseleave","onClose"]),[[Ui,B.value]])]),_:3},8,["name","appear"])):et("v-if",!0)],8,["disabled","to"]))}}),C6=I6;const T6=["innerHTML"],R6={key:1};var P6=he({name:"ElTooltip",__name:"tooltip",props:A6,emits:S6,setup(e,{expose:t,emit:n}){const r=e,s=n;a5();const o=De("tooltip"),a=nl(),i=Q(),l=Q(),u=()=>{const _=A(i);_&&_.popperInstanceRef?.update()},c=Q(!1),f=Q(),{show:d,hide:p,hasUpdateHandler:h}=E6({indicator:c,toggleReason:f}),{onOpen:m,onClose:b}=l5({showAfter:Et(r,"showAfter"),hideAfter:Et(r,"hideAfter"),autoClose:Et(r,"autoClose"),open:d,close:p}),y=T(()=>os(r.visible)&&!h.value),v=T(()=>[o.b(),r.popperClass]);st(hf,{controlled:y,id:a,open:Fs(c),trigger:Et(r,"trigger"),onOpen:m,onClose:b,onToggle:_=>{A(c)?b(_):m(_)},onShow:()=>{s("show",f.value)},onHide:()=>{s("hide",f.value)},onBeforeShow:()=>{s("before-show",f.value)},onBeforeHide:()=>{s("before-hide",f.value)},updatePopper:u}),Ie(()=>r.disabled,_=>{_&&c.value&&(c.value=!1),!_&&os(r.visible)&&(c.value=r.visible)});const E=_=>l.value?.isFocusInsideContent(_);return dg(()=>c.value&&p()),vt(()=>{f.value=void 0}),t({popperRef:i,contentRef:l,isFocusInsideContent:E,updatePopper:u,onOpen:m,onClose:b,hide:p}),(_,B)=>(z(),xe(A(y6),{ref_key:"popperRef",ref:i,role:e.role},{default:de(()=>[Ae(N6,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering,"focus-on-target":e.focusOnTarget},{default:de(()=>[_.$slots.default?we(_.$slots,"default",{key:0}):et("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering","focus-on-target"]),Ae(C6,{ref_key:"contentRef",ref:l,"aria-label":e.ariaLabel,"boundaries-padding":e.boundariesPadding,content:e.content,disabled:e.disabled,effect:e.effect,enterable:e.enterable,"fallback-placements":e.fallbackPlacements,"hide-after":e.hideAfter,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,persistent:e.persistent,"popper-class":v.value,"popper-style":e.popperStyle,placement:e.placement,"popper-options":e.popperOptions,"arrow-offset":e.arrowOffset,pure:e.pure,"raw-content":e.rawContent,"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,"show-after":e.showAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"virtual-triggering":e.virtualTriggering,"z-index":e.zIndex,"append-to":e.appendTo,loop:e.loop},{default:de(()=>[we(_.$slots,"content",{},()=>[e.rawContent?(z(),Ee("span",{key:0,innerHTML:e.content},null,8,T6)):(z(),Ee("span",R6,Wt(e.content),1))]),e.showArrow?(z(),xe(A(W5),{key:0})):et("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","arrow-offset","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to","loop"])]),_:3},8,["role"]))}}),B6=P6;const Ea=Xn(B6),Nb=e=>e,O6=Ge({distance:{type:Number,default:0},height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:ce([String,Object,Array,Boolean]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:ce([String,Object,Array,Boolean]),default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...uf(["ariaLabel","ariaOrientation"])}),k6={"end-reached":e=>["left","right","top","bottom"].includes(e),scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Mt)},F6={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},L6=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),M6=Ge({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),mf=Symbol("scrollbarContextKey");function Yp(e,t,n=.03){return e-t>n}const $6=Ge({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),V6="Thumb";var W6=he({__name:"thumb",props:M6,setup(e){const t=e,n=be(mf),r=De("scrollbar");n||ra(V6,"can not inject scrollbar context");const s=Q(),o=Q(),a=Q({}),i=Q(!1);let l=!1,u=!1,c=0,f=0,d=ft?document.onselectstart:null;const p=T(()=>F6[t.vertical?"vertical":"horizontal"]),h=T(()=>L6({size:t.size,move:t.move,bar:p.value})),m=T(()=>s.value[p.value.offset]**2/n.wrapElement[p.value.scrollSize]/t.ratio/o.value[p.value.offset]),b=O=>{if(O.stopPropagation(),O.ctrlKey||[1,2].includes(O.button))return;window.getSelection()?.removeAllRanges(),v(O);const R=O.currentTarget;R&&(a.value[p.value.axis]=R[p.value.offset]-(O[p.value.client]-R.getBoundingClientRect()[p.value.direction]))},y=O=>{if(!o.value||!s.value||!n.wrapElement)return;const R=(Math.abs(O.target.getBoundingClientRect()[p.value.direction]-O[p.value.client])-o.value[p.value.offset]/2)*100*m.value/s.value[p.value.offset];n.wrapElement[p.value.scroll]=R*n.wrapElement[p.value.scrollSize]/100},v=O=>{O.stopImmediatePropagation(),l=!0,c=n.wrapElement.scrollHeight,f=n.wrapElement.scrollWidth,document.addEventListener("mousemove",E),document.addEventListener("mouseup",_),d=document.onselectstart,document.onselectstart=()=>!1},E=O=>{if(!s.value||!o.value||l===!1)return;const R=a.value[p.value.axis];if(!R)return;const F=((s.value.getBoundingClientRect()[p.value.direction]-O[p.value.client])*-1-(o.value[p.value.offset]-R))*100*m.value/s.value[p.value.offset];p.value.scroll==="scrollLeft"?n.wrapElement[p.value.scroll]=F*f/100:n.wrapElement[p.value.scroll]=F*c/100},_=()=>{l=!1,a.value[p.value.axis]=0,document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",_),P(),u&&(i.value=!1)},B=()=>{u=!1,i.value=!!t.size},G=()=>{u=!0,i.value=l};vt(()=>{P(),document.removeEventListener("mouseup",_)});const P=()=>{document.onselectstart!==d&&(document.onselectstart=d)};return Mr(Et(n,"scrollbarElement"),"mousemove",B),Mr(Et(n,"scrollbarElement"),"mouseleave",G),(O,R)=>(z(),xe(to,{name:A(r).b("fade"),persisted:""},{default:de(()=>[qs(pe("div",{ref_key:"instance",ref:s,class:Oe([A(r).e("bar"),A(r).is(p.value.key)]),onMousedown:y,onClick:R[0]||(R[0]=Qo(()=>{},["stop"]))},[pe("div",{ref_key:"thumb",ref:o,class:Oe(A(r).e("thumb")),style:_n(h.value),onMousedown:b},null,38)],34),[[Ui,e.always||i.value]])]),_:1},8,["name"]))}}),Up=W6,D6=he({__name:"bar",props:$6,setup(e,{expose:t}){const n=e,r=be(mf),s=Q(0),o=Q(0),a=Q(""),i=Q(""),l=Q(1),u=Q(1);return t({handleScroll:d=>{if(d){const p=d.offsetHeight-4,h=d.offsetWidth-4;o.value=d.scrollTop*100/p*l.value,s.value=d.scrollLeft*100/h*u.value}},update:()=>{const d=r?.wrapElement;if(!d)return;const p=d.offsetHeight-4,h=d.offsetWidth-4,m=p**2/d.scrollHeight,b=h**2/d.scrollWidth,y=Math.max(m,n.minSize),v=Math.max(b,n.minSize);l.value=m/(p-m)/(y/(p-y)),u.value=b/(h-b)/(v/(h-v)),i.value=y+4<p?`${y}px`:"",a.value=v+4<h?`${v}px`:""}}),(d,p)=>(z(),Ee(qe,null,[Ae(Up,{move:s.value,ratio:u.value,size:a.value,always:e.always},null,8,["move","ratio","size","always"]),Ae(Up,{move:o.value,ratio:l.value,size:i.value,vertical:"",always:e.always},null,8,["move","ratio","size","always"])],64))}}),G6=D6;const Y6=["tabindex"],Tl="ElScrollbar";var U6=he({name:Tl,__name:"scrollbar",props:O6,emits:k6,setup(e,{expose:t,emit:n}){const r=e,s=n,o=De("scrollbar");let a,i,l,u=0,c=0,f="";const d={bottom:!1,top:!1,right:!1,left:!1},p=Q(),h=Q(),m=Q(),b=Q(),y=T(()=>{const k={},U=us(r.height),K=us(r.maxHeight);return U&&(k.height=U),K&&(k.maxHeight=K),[r.wrapStyle,k]}),v=T(()=>[r.wrapClass,o.e("wrap"),{[o.em("wrap","hidden-default")]:!r.native}]),E=T(()=>[o.e("view"),r.viewClass]),_=k=>d[k]??!1,B={top:"bottom",bottom:"top",left:"right",right:"left"},G=k=>{const U=B[f];if(!U)return;const K=k[f],j=k[U];K&&!d[f]&&(d[f]=!0),!j&&d[U]&&(d[U]=!1)},P=()=>{if(h.value){b.value?.handleScroll(h.value);const k=u,U=c;u=h.value.scrollTop,c=h.value.scrollLeft;const K={bottom:!Yp(h.value.scrollHeight-r.distance,h.value.clientHeight+u),top:u<=r.distance&&k!==0,right:!Yp(h.value.scrollWidth-r.distance,h.value.clientWidth+c)&&U!==c,left:c<=r.distance&&U!==0};if(s("scroll",{scrollTop:u,scrollLeft:c}),k!==u&&(f=u>k?"bottom":"top"),U!==c&&(f=c>U?"right":"left"),r.distance>0){if(_(f))return;G(K)}K[f]&&s("end-reached",f)}};function O(k,U){Te(k)?h.value.scrollTo(k):Mt(k)&&Mt(U)&&h.value.scrollTo(k,U)}const R=k=>{if(!Mt(k)){An(Tl,"value must be a number");return}h.value.scrollTop=k},F=k=>{if(!Mt(k)){An(Tl,"value must be a number");return}h.value.scrollLeft=k},W=()=>{b.value?.update(),d[f]=!1,h.value&&b.value?.handleScroll(h.value)};return Ie(()=>r.noresize,k=>{k?(a?.(),i?.(),l?.()):({stop:a}=sa(m,W),{stop:i}=sa(h,W),l=Mr("resize",W))},{immediate:!0}),Ie(()=>[r.maxHeight,r.height],()=>{r.native||cn(()=>{W()})}),st(mf,xn({scrollbarElement:p,wrapElement:h})),fg(()=>{h.value&&(h.value.scrollTop=u,h.value.scrollLeft=c)}),it(()=>{r.native||cn(()=>{W()})}),Mc(()=>W()),t({wrapRef:h,update:W,scrollTo:O,setScrollTop:R,setScrollLeft:F,handleScroll:P}),(k,U)=>(z(),Ee("div",{ref_key:"scrollbarRef",ref:p,class:Oe(A(o).b())},[pe("div",{ref_key:"wrapRef",ref:h,class:Oe(v.value),style:_n(y.value),tabindex:e.tabindex,onScroll:P},[(z(),xe(rs(e.tag),{id:e.id,ref_key:"resizeRef",ref:m,class:Oe(E.value),style:_n(e.viewStyle),role:e.role,"aria-label":e.ariaLabel,"aria-orientation":e.ariaOrientation},{default:de(()=>[we(k.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,Y6),e.native?et("v-if",!0):(z(),xe(G6,{key:0,ref_key:"barRef",ref:b,always:e.always,"min-size":e.minSize},null,8,["always","min-size"]))],2))}}),j6=U6;const Z6=Xn(j6),K6=Ge({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:ce([String,Object,Array,Boolean]),default:void 0},offset:{type:ce(Array),default:()=>[0,0]},badgeClass:{type:String}});var H6=he({name:"ElBadge",__name:"badge",props:K6,setup(e,{expose:t}){const n=e,r=De("badge"),s=T(()=>n.isDot?"":Mt(n.value)&&Mt(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`),o=T(()=>[{backgroundColor:n.color,marginRight:us(-n.offset[0]),marginTop:us(n.offset[1])},n.badgeStyle??{}]);return t({content:s}),(a,i)=>(z(),Ee("div",{class:Oe(A(r).b())},[we(a.$slots,"default"),Ae(to,{name:`${A(r).namespace.value}-zoom-in-center`},{default:de(()=>[!e.hidden&&(s.value||e.isDot||a.$slots.content)?(z(),Ee("sup",{key:0,class:Oe([A(r).e("content"),A(r).em("content",e.type),A(r).is("fixed",!!a.$slots.default),A(r).is("dot",e.isDot),A(r).is("hide-zero",!e.showZero&&e.value===0),e.badgeClass]),style:_n(o.value)},[we(a.$slots,"content",{value:s.value},()=>[Un(Wt(s.value),1)])],6)):et("v-if",!0)]),_:3},8,["name"])],2))}}),X6=H6;const z6=Xn(X6),J6=["default","primary","success","warning","info","danger","text",""],Q6=["button","submit","reset"],Tu=Ge({size:ib,disabled:{type:Boolean,default:void 0},type:{type:String,values:J6,default:""},icon:{type:cr},nativeType:{type:String,values:Q6,default:"button"},loading:Boolean,loadingIcon:{type:cr,default:()=>db},plain:{type:Boolean,default:void 0},text:{type:Boolean,default:void 0},link:Boolean,bg:Boolean,autofocus:Boolean,round:{type:Boolean,default:void 0},circle:Boolean,dashed:{type:Boolean,default:void 0},color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:ce([String,Object]),default:"button"}}),q6={click:e=>e instanceof MouseEvent},Ib=Symbol(),Ai=Q();function gf(e,t=void 0){const n=ot()?be(Ib,Ai):Ai;return e?T(()=>n.value?.[e]??t):n}function eT(e,t){const n=gf(),r=De(e,T(()=>n.value?.namespace||"el")),s=W0(T(()=>n.value?.locale)),o=ab(T(()=>{const i=n.value?.zIndex;return Ws(i)||Number.isNaN(i)?sb:i})),a=T(()=>A(t)||n.value?.size||"");return tT(T(()=>A(n)||{})),{ns:r,locale:s,zIndex:o,size:a}}const tT=(e,t,n=!1)=>{const r=!!ot(),s=r?gf():void 0,o=r?st:void 0;if(!o){An("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const a=T(()=>{const i=A(e);return s?.value?nT(s.value,i):i});return o(Ib,a),o(V0,T(()=>a.value.locale)),o(D0,T(()=>a.value.namespace)),o(ob,T(()=>a.value.zIndex)),o(lb,{size:T(()=>a.value.size||"")}),o(d5,T(()=>({emptyValues:a.value.emptyValues,valueOnClear:a.value.valueOnClear}))),(n||!Ai.value)&&(Ai.value=a.value),a},nT=(e,t)=>{const n=[...new Set([...gp(e),...gp(t)])],r={};for(const s of n)r[s]=t[s]!==void 0?t[s]:e[s];return r},ek=Ge({a11y:{type:Boolean,default:!0},locale:{type:ce(Object)},size:ib,button:{type:ce(Object)},card:{type:ce(Object)},dialog:{type:ce(Object)},link:{type:ce(Object)},experimentalFeatures:{type:ce(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:ce(Object)},zIndex:Number,namespace:{type:String,default:"el"},table:{type:ce(Object)},...p5}),kt={placement:"top"};const Cb=Symbol("buttonGroupContextKey"),rT=(e,t)=>{VI({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},T(()=>e.type==="text"));const n=be(Cb,void 0),r=gf("button"),{form:s}=j5(),o=Ab(T(()=>n?.size)),a=Sb(),i=Q(),l=_g(),u=T(()=>e.type||n?.type||r.value?.type||""),c=T(()=>e.autoInsertSpace??r.value?.autoInsertSpace??!1),f=T(()=>e.plain??r.value?.plain??!1),d=T(()=>e.round??r.value?.round??!1),p=T(()=>e.text??r.value?.text??!1),h=T(()=>e.dashed??r.value?.dashed??!1),m=T(()=>e.tag==="button"?{ariaDisabled:a.value||e.loading,disabled:a.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),b=T(()=>{const v=l.default?.();if(c.value&&v?.length===1){const E=v[0];if(E?.type===eo){const _=E.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(_.trim())}}return!1});return{_disabled:a,_size:o,_type:u,_ref:i,_props:m,_plain:f,_round:d,_text:p,_dashed:h,shouldAddSpace:b,handleClick:v=>{if(a.value||e.loading){v.stopPropagation();return}e.nativeType==="reset"&&s?.resetFields(),t("click",v)}}};function St(e,t){sT(e)&&(e="100%");const n=oT(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Oa(e){return Math.min(1,Math.max(0,e))}function sT(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function oT(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Tb(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ka(e){return Number(e)<=1?`${Number(e)*100}%`:e}function es(e){return e.length===1?"0"+e:String(e)}function aT(e,t,n){return{r:St(e,255)*255,g:St(t,255)*255,b:St(n,255)*255}}function jp(e,t,n){e=St(e,255),t=St(t,255),n=St(n,255);const r=Math.max(e,t,n),s=Math.min(e,t,n);let o=0,a=0;const i=(r+s)/2;if(r===s)a=0,o=0;else{const l=r-s;switch(a=i>.5?l/(2-r-s):l/(r+s),r){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4;break}o/=6}return{h:o,s:a,l:i}}function Rl(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function iT(e,t,n){let r,s,o;if(e=St(e,360),t=St(t,100),n=St(n,100),t===0)s=n,o=n,r=n;else{const a=n<.5?n*(1+t):n+t-n*t,i=2*n-a;r=Rl(i,a,e+1/3),s=Rl(i,a,e),o=Rl(i,a,e-1/3)}return{r:r*255,g:s*255,b:o*255}}function Zp(e,t,n){e=St(e,255),t=St(t,255),n=St(n,255);const r=Math.max(e,t,n),s=Math.min(e,t,n);let o=0;const a=r,i=r-s,l=r===0?0:i/r;if(r===s)o=0;else{switch(r){case e:o=(t-n)/i+(t<n?6:0);break;case t:o=(n-e)/i+2;break;case n:o=(e-t)/i+4;break}o/=6}return{h:o,s:l,v:a}}function lT(e,t,n){e=St(e,360)*6,t=St(t,100),n=St(n,100);const r=Math.floor(e),s=e-r,o=n*(1-t),a=n*(1-s*t),i=n*(1-(1-s)*t),l=r%6,u=[n,a,o,o,i,n][l],c=[i,n,n,a,o,o][l],f=[o,o,i,n,n,a][l];return{r:u*255,g:c*255,b:f*255}}function Kp(e,t,n,r){const s=[es(Math.round(e).toString(16)),es(Math.round(t).toString(16)),es(Math.round(n).toString(16))];return r&&s[0].startsWith(s[0].charAt(1))&&s[1].startsWith(s[1].charAt(1))&&s[2].startsWith(s[2].charAt(1))?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0):s.join("")}function uT(e,t,n,r,s){const o=[es(Math.round(e).toString(16)),es(Math.round(t).toString(16)),es(Math.round(n).toString(16)),es(fT(r))];return s&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function cT(e,t,n,r){const s=e/100,o=t/100,a=n/100,i=r/100,l=255*(1-s)*(1-i),u=255*(1-o)*(1-i),c=255*(1-a)*(1-i);return{r:l,g:u,b:c}}function Hp(e,t,n){let r=1-e/255,s=1-t/255,o=1-n/255,a=Math.min(r,s,o);return a===1?(r=0,s=0,o=0):(r=(r-a)/(1-a)*100,s=(s-a)/(1-a)*100,o=(o-a)/(1-a)*100),a*=100,{c:Math.round(r),m:Math.round(s),y:Math.round(o),k:Math.round(a)}}function fT(e){return Math.round(parseFloat(e)*255).toString(16)}function Xp(e){return Kt(e)/255}function Kt(e){return parseInt(e,16)}function dT(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}const Ru={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function pT(e){let t={r:0,g:0,b:0},n=1,r=null,s=null,o=null,a=!1,i=!1;return typeof e=="string"&&(e=gT(e)),typeof e=="object"&&(Zt(e.r)&&Zt(e.g)&&Zt(e.b)?(t=aT(e.r,e.g,e.b),a=!0,i=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Zt(e.h)&&Zt(e.s)&&Zt(e.v)?(r=ka(e.s),s=ka(e.v),t=lT(e.h,r,s),a=!0,i="hsv"):Zt(e.h)&&Zt(e.s)&&Zt(e.l)?(r=ka(e.s),o=ka(e.l),t=iT(e.h,r,o),a=!0,i="hsl"):Zt(e.c)&&Zt(e.m)&&Zt(e.y)&&Zt(e.k)&&(t=cT(e.c,e.m,e.y,e.k),a=!0,i="cmyk"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Tb(n),{ok:a,format:e.format||i,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}const hT="[-\\+]?\\d+%?",mT="[-\\+]?\\d*\\.\\d+%?",Fr="(?:"+mT+")|(?:"+hT+")",Pl="[\\s|\\(]+("+Fr+")[,|\\s]+("+Fr+")[,|\\s]+("+Fr+")\\s*\\)?",Fa="[\\s|\\(]+("+Fr+")[,|\\s]+("+Fr+")[,|\\s]+("+Fr+")[,|\\s]+("+Fr+")\\s*\\)?",tn={CSS_UNIT:new RegExp(Fr),rgb:new RegExp("rgb"+Pl),rgba:new RegExp("rgba"+Fa),hsl:new RegExp("hsl"+Pl),hsla:new RegExp("hsla"+Fa),hsv:new RegExp("hsv"+Pl),hsva:new RegExp("hsva"+Fa),cmyk:new RegExp("cmyk"+Fa),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function gT(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;let t=!1;if(Ru[e])e=Ru[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};let n=tn.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=tn.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=tn.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=tn.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=tn.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=tn.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=tn.cmyk.exec(e),n?{c:n[1],m:n[2],y:n[3],k:n[4]}:(n=tn.hex8.exec(e),n?{r:Kt(n[1]),g:Kt(n[2]),b:Kt(n[3]),a:Xp(n[4]),format:t?"name":"hex8"}:(n=tn.hex6.exec(e),n?{r:Kt(n[1]),g:Kt(n[2]),b:Kt(n[3]),format:t?"name":"hex"}:(n=tn.hex4.exec(e),n?{r:Kt(n[1]+n[1]),g:Kt(n[2]+n[2]),b:Kt(n[3]+n[3]),a:Xp(n[4]+n[4]),format:t?"name":"hex8"}:(n=tn.hex3.exec(e),n?{r:Kt(n[1]+n[1]),g:Kt(n[2]+n[2]),b:Kt(n[3]+n[3]),format:t?"name":"hex"}:!1))))))))))}function Zt(e){return typeof e=="number"?!Number.isNaN(e):tn.CSS_UNIT.test(e)}class nt{constructor(t="",n={}){if(t instanceof nt)return t;typeof t=="number"&&(t=dT(t)),this.originalInput=t;const r=pT(t);this.originalInput=t,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=n.format??r.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=r.ok}isDark(){return this.getBrightness()<128}isLight(){return!this.isDark()}getBrightness(){const t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3}getLuminance(){const t=this.toRgb();let n,r,s;const o=t.r/255,a=t.g/255,i=t.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),i<=.03928?s=i/12.92:s=Math.pow((i+.055)/1.055,2.4),.2126*n+.7152*r+.0722*s}getAlpha(){return this.a}setAlpha(t){return this.a=Tb(t),this.roundA=Math.round(100*this.a)/100,this}isMonochrome(){const{s:t}=this.toHsl();return t===0}toHsv(){const t=Zp(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}}toHsvString(){const t=Zp(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),s=Math.round(t.v*100);return this.a===1?`hsv(${n}, ${r}%, ${s}%)`:`hsva(${n}, ${r}%, ${s}%, ${this.roundA})`}toHsl(){const t=jp(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}}toHslString(){const t=jp(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),s=Math.round(t.l*100);return this.a===1?`hsl(${n}, ${r}%, ${s}%)`:`hsla(${n}, ${r}%, ${s}%, ${this.roundA})`}toHex(t=!1){return Kp(this.r,this.g,this.b,t)}toHexString(t=!1){return"#"+this.toHex(t)}toHex8(t=!1){return uT(this.r,this.g,this.b,this.a,t)}toHex8String(t=!1){return"#"+this.toHex8(t)}toHexShortString(t=!1){return this.a===1?this.toHexString(t):this.toHex8String(t)}toRgb(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}}toRgbString(){const t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?`rgb(${t}, ${n}, ${r})`:`rgba(${t}, ${n}, ${r}, ${this.roundA})`}toPercentageRgb(){const t=n=>`${Math.round(St(n,255)*100)}%`;return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}}toPercentageRgbString(){const t=n=>Math.round(St(n,255)*100);return this.a===1?`rgb(${t(this.r)}%, ${t(this.g)}%, ${t(this.b)}%)`:`rgba(${t(this.r)}%, ${t(this.g)}%, ${t(this.b)}%, ${this.roundA})`}toCmyk(){return{...Hp(this.r,this.g,this.b)}}toCmykString(){const{c:t,m:n,y:r,k:s}=Hp(this.r,this.g,this.b);return`cmyk(${t}, ${n}, ${r}, ${s})`}toName(){if(this.a===0)return"transparent";if(this.a<1)return!1;const t="#"+Kp(this.r,this.g,this.b,!1);for(const[n,r]of Object.entries(Ru))if(t===r)return n;return!1}toString(t){const n=!!t;t=t??this.format;let r=!1;const s=this.a<1&&this.a>=0;return!n&&s&&(t.startsWith("hex")||t==="name")?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),t==="cmyk"&&(r=this.toCmykString()),r||this.toHexString())}toNumber(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)}clone(){return new nt(this.toString())}lighten(t=10){const n=this.toHsl();return n.l+=t/100,n.l=Oa(n.l),new nt(n)}brighten(t=10){const n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new nt(n)}darken(t=10){const n=this.toHsl();return n.l-=t/100,n.l=Oa(n.l),new nt(n)}tint(t=10){return this.mix("white",t)}shade(t=10){return this.mix("black",t)}desaturate(t=10){const n=this.toHsl();return n.s-=t/100,n.s=Oa(n.s),new nt(n)}saturate(t=10){const n=this.toHsl();return n.s+=t/100,n.s=Oa(n.s),new nt(n)}greyscale(){return this.desaturate(100)}spin(t){const n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new nt(n)}mix(t,n=50){const r=this.toRgb(),s=new nt(t).toRgb(),o=n/100,a={r:(s.r-r.r)*o+r.r,g:(s.g-r.g)*o+r.g,b:(s.b-r.b)*o+r.b,a:(s.a-r.a)*o+r.a};return new nt(a)}analogous(t=6,n=30){const r=this.toHsl(),s=360/n,o=[this];for(r.h=(r.h-(s*t>>1)+720)%360;--t;)r.h=(r.h+s)%360,o.push(new nt(r));return o}complement(){const t=this.toHsl();return t.h=(t.h+180)%360,new nt(t)}monochromatic(t=6){const n=this.toHsv(),{h:r}=n,{s}=n;let{v:o}=n;const a=[],i=1/t;for(;t--;)a.push(new nt({h:r,s,v:o})),o=(o+i)%1;return a}splitcomplement(){const t=this.toHsl(),{h:n}=t;return[this,new nt({h:(n+72)%360,s:t.s,l:t.l}),new nt({h:(n+216)%360,s:t.s,l:t.l})]}onBackground(t){const n=this.toRgb(),r=new nt(t).toRgb(),s=n.a+r.a*(1-n.a);return new nt({r:(n.r*n.a+r.r*r.a*(1-n.a))/s,g:(n.g*n.a+r.g*r.a*(1-n.a))/s,b:(n.b*n.a+r.b*r.a*(1-n.a))/s,a:s})}triad(){return this.polyad(3)}tetrad(){return this.polyad(4)}polyad(t){const n=this.toHsl(),{h:r}=n,s=[this],o=360/t;for(let a=1;a<t;a++)s.push(new nt({h:(r+a*o)%360,s:n.s,l:n.l}));return s}equals(t){const n=new nt(t);return this.format==="cmyk"||n.format==="cmyk"?this.toCmykString()===n.toCmykString():this.toRgbString()===n.toRgbString()}}function Tn(e,t=20){return e.mix("#141414",t).toString()}function bT(e){const t=Sb(),n=De("button");return T(()=>{let r={},s=e.color;if(s){const o=s.match(/var\((.*?)\)/);o&&(s=window.getComputedStyle(window.document.documentElement).getPropertyValue(o[1]));const a=new nt(s),i=e.dark?a.tint(20).toString():Tn(a,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?Tn(a,90):a.tint(90).toString(),"text-color":s,"border-color":e.dark?Tn(a,50):a.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":s,"hover-border-color":s,"active-bg-color":i,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":i}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?Tn(a,90):a.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?Tn(a,50):a.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?Tn(a,80):a.tint(80).toString());else if(e.link||e.text){const l=e.dark?Tn(a,30):a.tint(30).toString();if(r=n.cssVarBlock({"text-color":s,"hover-text-color":l,"active-text-color":i}),e.link&&(r[n.cssVarBlockName("hover-link-text-color")]=l,r[n.cssVarBlockName("active-color")]=i),t.value){const u=e.dark?Tn(a,50):a.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]="transparent",r[n.cssVarBlockName("disabled-text-color")]=u,r[n.cssVarBlockName("disabled-border-color")]="transparent"}}else{const l=e.dark?Tn(a,30):a.tint(30).toString(),u=a.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":s,"text-color":u,"border-color":s,"hover-bg-color":l,"hover-text-color":u,"hover-border-color":l,"active-bg-color":i,"active-border-color":i}),t.value){const c=e.dark?Tn(a,50):a.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=c,r[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=c}}}return r})}var vT=he({name:"ElButton",__name:"button",props:Tu,emits:q6,setup(e,{expose:t,emit:n}){const r=e,s=n,o=bT(r),a=De("button"),{_ref:i,_size:l,_type:u,_disabled:c,_props:f,_plain:d,_round:p,_text:h,_dashed:m,shouldAddSpace:b,handleClick:y}=rT(r,s),v=T(()=>[a.b(),a.m(u.value),a.m(l.value),a.is("disabled",c.value),a.is("loading",r.loading),a.is("plain",d.value),a.is("round",p.value),a.is("circle",r.circle),a.is("text",h.value),a.is("dashed",m.value),a.is("link",r.link),a.is("has-bg",r.bg)]);return t({ref:i,size:l,type:u,disabled:c,shouldAddSpace:b}),(E,_)=>(z(),xe(rs(e.tag),Yt({ref_key:"_ref",ref:i},A(f),{class:v.value,style:A(o),onClick:A(y)}),{default:de(()=>[e.loading?(z(),Ee(qe,{key:0},[E.$slots.loading?we(E.$slots,"loading",{key:0}):(z(),xe(A(Vr),{key:1,class:Oe(A(a).is("loading"))},{default:de(()=>[(z(),xe(rs(e.loadingIcon)))]),_:1},8,["class"]))],64)):e.icon||E.$slots.icon?(z(),xe(A(Vr),{key:1},{default:de(()=>[e.icon?(z(),xe(rs(e.icon),{key:0})):we(E.$slots,"icon",{key:1})]),_:3})):et("v-if",!0),E.$slots.default?(z(),Ee("span",{key:2,class:Oe({[A(a).em("text","expand")]:A(b)})},[we(E.$slots,"default")],2)):et("v-if",!0)]),_:3},16,["class","style","onClick"]))}}),yT=vT;const wT={size:Tu.size,type:Tu.type,direction:{type:ce(String),values:["horizontal","vertical"],default:"horizontal"}};var _T=he({name:"ElButtonGroup",__name:"button-group",props:wT,setup(e){const t=e;st(Cb,xn({size:Et(t,"size"),type:Et(t,"type")}));const n=De("button");return(r,s)=>(z(),Ee("div",{class:Oe([A(n).b("group"),A(n).bm("group",t.direction)])},[we(r.$slots,"default")],2))}}),Rb=_T;const Pb=Xn(yT,{ButtonGroup:Rb}),tk=oo(Rb);function ET(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ja={exports:{}},AT=ja.exports,zp;function ST(){return zp||(zp=1,(function(e,t){(function(n,r){e.exports=r()})(AT,(function(){var n=1e3,r=6e4,s=36e5,o="millisecond",a="second",i="minute",l="hour",u="day",c="week",f="month",d="quarter",p="year",h="date",m="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(K){var j=["th","st","nd","rd"],M=K%100;return"["+K+(j[(M-20)%10]||j[M]||j[0])+"]"}},E=function(K,j,M){var I=String(K);return!I||I.length>=j?K:""+Array(j+1-I.length).join(M)+K},_={s:E,z:function(K){var j=-K.utcOffset(),M=Math.abs(j),I=Math.floor(M/60),C=M%60;return(j<=0?"+":"-")+E(I,2,"0")+":"+E(C,2,"0")},m:function K(j,M){if(j.date()<M.date())return-K(M,j);var I=12*(M.year()-j.year())+(M.month()-j.month()),C=j.clone().add(I,f),H=M-C<0,re=j.clone().add(I+(H?-1:1),f);return+(-(I+(M-C)/(H?C-re:re-C))||0)},a:function(K){return K<0?Math.ceil(K)||0:Math.floor(K)},p:function(K){return{M:f,y:p,w:c,d:u,D:h,h:l,m:i,s:a,ms:o,Q:d}[K]||String(K||"").toLowerCase().replace(/s$/,"")},u:function(K){return K===void 0}},B="en",G={};G[B]=v;var P="$isDayjsObject",O=function(K){return K instanceof k||!(!K||!K[P])},R=function K(j,M,I){var C;if(!j)return B;if(typeof j=="string"){var H=j.toLowerCase();G[H]&&(C=H),M&&(G[H]=M,C=H);var re=j.split("-");if(!C&&re.length>1)return K(re[0])}else{var le=j.name;G[le]=j,C=le}return!I&&C&&(B=C),C||!I&&B},F=function(K,j){if(O(K))return K.clone();var M=typeof j=="object"?j:{};return M.date=K,M.args=arguments,new k(M)},W=_;W.l=R,W.i=O,W.w=function(K,j){return F(K,{locale:j.$L,utc:j.$u,x:j.$x,$offset:j.$offset})};var k=(function(){function K(M){this.$L=R(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[P]=!0}var j=K.prototype;return j.parse=function(M){this.$d=(function(I){var C=I.date,H=I.utc;if(C===null)return new Date(NaN);if(W.u(C))return new Date;if(C instanceof Date)return new Date(C);if(typeof C=="string"&&!/Z$/i.test(C)){var re=C.match(b);if(re){var le=re[2]-1||0,ae=(re[7]||"0").substring(0,3);return H?new Date(Date.UTC(re[1],le,re[3]||1,re[4]||0,re[5]||0,re[6]||0,ae)):new Date(re[1],le,re[3]||1,re[4]||0,re[5]||0,re[6]||0,ae)}}return new Date(C)})(M),this.init()},j.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},j.$utils=function(){return W},j.isValid=function(){return this.$d.toString()!==m},j.isSame=function(M,I){var C=F(M);return this.startOf(I)<=C&&C<=this.endOf(I)},j.isAfter=function(M,I){return F(M)<this.startOf(I)},j.isBefore=function(M,I){return this.endOf(I)<F(M)},j.$g=function(M,I,C){return W.u(M)?this[I]:this.set(C,M)},j.unix=function(){return Math.floor(this.valueOf()/1e3)},j.valueOf=function(){return this.$d.getTime()},j.startOf=function(M,I){var C=this,H=!!W.u(I)||I,re=W.p(M),le=function(q,ie){var _e=W.w(C.$u?Date.UTC(C.$y,ie,q):new Date(C.$y,ie,q),C);return H?_e:_e.endOf(u)},ae=function(q,ie){return W.w(C.toDate()[q].apply(C.toDate("s"),(H?[0,0,0,0]:[23,59,59,999]).slice(ie)),C)},Se=this.$W,ye=this.$M,Be=this.$D,Qe="set"+(this.$u?"UTC":"");switch(re){case p:return H?le(1,0):le(31,11);case f:return H?le(1,ye):le(0,ye+1);case c:var L=this.$locale().weekStart||0,te=(Se<L?Se+7:Se)-L;return le(H?Be-te:Be+(6-te),ye);case u:case h:return ae(Qe+"Hours",0);case l:return ae(Qe+"Minutes",1);case i:return ae(Qe+"Seconds",2);case a:return ae(Qe+"Milliseconds",3);default:return this.clone()}},j.endOf=function(M){return this.startOf(M,!1)},j.$set=function(M,I){var C,H=W.p(M),re="set"+(this.$u?"UTC":""),le=(C={},C[u]=re+"Date",C[h]=re+"Date",C[f]=re+"Month",C[p]=re+"FullYear",C[l]=re+"Hours",C[i]=re+"Minutes",C[a]=re+"Seconds",C[o]=re+"Milliseconds",C)[H],ae=H===u?this.$D+(I-this.$W):I;if(H===f||H===p){var Se=this.clone().set(h,1);Se.$d[le](ae),Se.init(),this.$d=Se.set(h,Math.min(this.$D,Se.daysInMonth())).$d}else le&&this.$d[le](ae);return this.init(),this},j.set=function(M,I){return this.clone().$set(M,I)},j.get=function(M){return this[W.p(M)]()},j.add=function(M,I){var C,H=this;M=Number(M);var re=W.p(I),le=function(ye){var Be=F(H);return W.w(Be.date(Be.date()+Math.round(ye*M)),H)};if(re===f)return this.set(f,this.$M+M);if(re===p)return this.set(p,this.$y+M);if(re===u)return le(1);if(re===c)return le(7);var ae=(C={},C[i]=r,C[l]=s,C[a]=n,C)[re]||1,Se=this.$d.getTime()+M*ae;return W.w(Se,this)},j.subtract=function(M,I){return this.add(-1*M,I)},j.format=function(M){var I=this,C=this.$locale();if(!this.isValid())return C.invalidDate||m;var H=M||"YYYY-MM-DDTHH:mm:ssZ",re=W.z(this),le=this.$H,ae=this.$m,Se=this.$M,ye=C.weekdays,Be=C.months,Qe=C.meridiem,L=function(ie,_e,g,w){return ie&&(ie[_e]||ie(I,H))||g[_e].slice(0,w)},te=function(ie){return W.s(le%12||12,ie,"0")},q=Qe||function(ie,_e,g){var w=ie<12?"AM":"PM";return g?w.toLowerCase():w};return H.replace(y,(function(ie,_e){return _e||(function(g){switch(g){case"YY":return String(I.$y).slice(-2);case"YYYY":return W.s(I.$y,4,"0");case"M":return Se+1;case"MM":return W.s(Se+1,2,"0");case"MMM":return L(C.monthsShort,Se,Be,3);case"MMMM":return L(Be,Se);case"D":return I.$D;case"DD":return W.s(I.$D,2,"0");case"d":return String(I.$W);case"dd":return L(C.weekdaysMin,I.$W,ye,2);case"ddd":return L(C.weekdaysShort,I.$W,ye,3);case"dddd":return ye[I.$W];case"H":return String(le);case"HH":return W.s(le,2,"0");case"h":return te(1);case"hh":return te(2);case"a":return q(le,ae,!0);case"A":return q(le,ae,!1);case"m":return String(ae);case"mm":return W.s(ae,2,"0");case"s":return String(I.$s);case"ss":return W.s(I.$s,2,"0");case"SSS":return W.s(I.$ms,3,"0");case"Z":return re}return null})(ie)||re.replace(":","")}))},j.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},j.diff=function(M,I,C){var H,re=this,le=W.p(I),ae=F(M),Se=(ae.utcOffset()-this.utcOffset())*r,ye=this-ae,Be=function(){return W.m(re,ae)};switch(le){case p:H=Be()/12;break;case f:H=Be();break;case d:H=Be()/3;break;case c:H=(ye-Se)/6048e5;break;case u:H=(ye-Se)/864e5;break;case l:H=ye/s;break;case i:H=ye/r;break;case a:H=ye/n;break;default:H=ye}return C?H:W.a(H)},j.daysInMonth=function(){return this.endOf(f).$D},j.$locale=function(){return G[this.$L]},j.locale=function(M,I){if(!M)return this.$L;var C=this.clone(),H=R(M,I,!0);return H&&(C.$L=H),C},j.clone=function(){return W.w(this.$d,this)},j.toDate=function(){return new Date(this.valueOf())},j.toJSON=function(){return this.isValid()?this.toISOString():null},j.toISOString=function(){return this.$d.toISOString()},j.toString=function(){return this.$d.toUTCString()},K})(),U=k.prototype;return F.prototype=U,[["$ms",o],["$s",a],["$m",i],["$H",l],["$W",u],["$M",f],["$y",p],["$D",h]].forEach((function(K){U[K[1]]=function(j){return this.$g(j,K[0],K[1])}})),F.extend=function(K,j){return K.$i||(K(j,k,F),K.$i=!0),F},F.locale=R,F.isDayjs=O,F.unix=function(K){return F(1e3*K)},F.en=G[B],F.Ls=G,F.p={},F}))})(ja)),ja.exports}var nk=ST();const xr=new Map;if(ft){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const n of xr.values())for(const{documentHandler:r}of n)r(t,e);e=void 0}})}function Jp(e,t){let n=[];return ue(t.arg)?n=t.arg:kr(t.arg)&&n.push(t.arg),function(r,s){const o=t.instance.popperRef,a=r.target,i=s?.target,l=!t||!t.instance,u=!a||!i,c=e.contains(a)||e.contains(i),f=e===a,d=n.length&&n.some(h=>h?.contains(a))||n.length&&n.includes(i),p=o&&(o.contains(a)||o.contains(i));l||u||c||f||d||p||t.value(r,s)}}const xT={beforeMount(e,t){xr.has(e)||xr.set(e,[]),xr.get(e).push({documentHandler:Jp(e,t),bindingFn:t.value})},updated(e,t){xr.has(e)||xr.set(e,[]);const n=xr.get(e),r=n.findIndex(o=>o.bindingFn===t.oldValue),s={documentHandler:Jp(e,t),bindingFn:t.value};r>=0?n.splice(r,1,s):n.push(s)},unmounted(e){xr.delete(e)}};var NT=he({name:"ElCollapseTransition",__name:"collapse-transition",setup(e){const t=De("collapse-transition"),n=s=>{s.style.maxHeight="",s.style.overflow=s.dataset.oldOverflow,s.style.paddingTop=s.dataset.oldPaddingTop,s.style.paddingBottom=s.dataset.oldPaddingBottom},r={beforeEnter(s){s.dataset||(s.dataset={}),s.dataset.oldPaddingTop=s.style.paddingTop,s.dataset.oldPaddingBottom=s.style.paddingBottom,s.style.height&&(s.dataset.elExistsHeight=s.style.height),s.style.maxHeight=0,s.style.paddingTop=0,s.style.paddingBottom=0},enter(s){requestAnimationFrame(()=>{s.dataset.oldOverflow=s.style.overflow,s.dataset.elExistsHeight?s.style.maxHeight=s.dataset.elExistsHeight:s.scrollHeight!==0?s.style.maxHeight=`${s.scrollHeight}px`:s.style.maxHeight=0,s.style.paddingTop=s.dataset.oldPaddingTop,s.style.paddingBottom=s.dataset.oldPaddingBottom,s.style.overflow="hidden"})},afterEnter(s){s.style.maxHeight="",s.style.overflow=s.dataset.oldOverflow},enterCancelled(s){n(s)},beforeLeave(s){s.dataset||(s.dataset={}),s.dataset.oldPaddingTop=s.style.paddingTop,s.dataset.oldPaddingBottom=s.style.paddingBottom,s.dataset.oldOverflow=s.style.overflow,s.style.maxHeight=`${s.scrollHeight}px`,s.style.overflow="hidden"},leave(s){s.scrollHeight!==0&&(s.style.maxHeight=0,s.style.paddingTop=0,s.style.paddingBottom=0)},afterLeave(s){n(s)},leaveCancelled(s){n(s)}};return(s,o)=>(z(),xe(to,Yt({name:A(t).b()},A_(r)),{default:de(()=>[we(s.$slots,"default")]),_:3},16,["name"]))}}),IT=NT;const CT=Xn(IT),Bb=(...e)=>t=>{e.forEach(n=>{n.value=t})},Za=Ge({trigger:{...$r.trigger,type:ce([String,Array])},triggerKeys:{type:ce(Array),default:()=>[Ve.enter,Ve.numpadEnter,Ve.space,Ve.down]},virtualTriggering:$r.virtualTriggering,virtualRef:$r.virtualRef,effect:{...It.effect,default:"light"},type:{type:ce(String)},placement:{type:ce(String),default:"bottom"},popperOptions:{type:ce(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showArrow:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:ce([Number,String]),default:0},maxHeight:{type:ce([Number,String]),default:""},popperClass:It.popperClass,popperStyle:It.popperStyle,disabled:Boolean,role:{type:String,values:mb,default:"menu"},buttonProps:{type:ce(Object)},teleported:It.teleported,appendTo:It.appendTo,persistent:{type:Boolean,default:!0}}),Ob=Ge({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:cr}}),TT=Ge({onKeydown:{type:ce(Function)}}),sl=Symbol("elDropdown"),kb="elDropdown";var RT=he({inheritAttrs:!1});function PT(e,t,n,r,s,o){return we(e.$slots,"default")}var BT=zn(RT,[["render",PT]]),OT=he({name:"ElCollectionItem",inheritAttrs:!1});function kT(e,t,n,r,s,o){return we(e.$slots,"default")}var FT=zn(OT,[["render",kT]]);const Fb="data-el-collection-item",LT=e=>{const t=`El${e}Collection`,n=`${t}Item`,r=Symbol(t),s=Symbol(n);return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:s,ElCollection:Object.assign({},BT,{name:t,setup(){const o=Q(),a=new Map;st(r,{itemMap:a,getItems:(()=>{const l=A(o);if(!l)return[];const u=Array.from(l.querySelectorAll(`[${Fb}]`));return[...a.values()].sort((c,f)=>u.indexOf(c.ref)-u.indexOf(f.ref))}),collectionRef:o})}}),ElCollectionItem:Object.assign({},FT,{name:n,setup(o,{attrs:a}){const i=Q(),l=be(r,void 0);st(s,{collectionItemRef:i}),it(()=>{const u=A(i);u&&l.itemMap.set(u,{ref:u,...a})}),vt(()=>{const u=A(i);l.itemMap.delete(u)})}})}},MT=Ge({style:{type:ce([String,Array,Object,Boolean]),default:void 0},currentTabId:{type:ce(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:ce(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:$T,ElCollectionItem:VT,COLLECTION_INJECTION_KEY:Lb,COLLECTION_ITEM_INJECTION_KEY:WT}=LT("RovingFocusGroup"),bf=Symbol("elRovingFocusGroup"),Mb=Symbol("elRovingFocusGroupItem"),DT={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},GT=(e,t)=>e,YT=(e,t,n)=>{const r=GT(Hn(e));return DT[r]},UT=(e,t)=>e.map((n,r)=>e[(r+t)%e.length]),Qp=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},qp="currentTabIdChange",eh="rovingFocusGroup.entryFocus",jT={bubbles:!1,cancelable:!0};var ZT=he({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:MT,emits:[qp,"entryFocus"],setup(e,{emit:t}){const n=Q((e.currentTabId||e.defaultCurrentTabId)??null),r=Q(!1),s=Q(!1),o=Q(),{getItems:a}=be(Lb,void 0),i=T(()=>[{outline:"none"},e.style]),l=m=>{t(qp,m)},u=()=>{r.value=!0},c=ct(m=>{e.onMousedown?.(m)},()=>{s.value=!0}),f=ct(m=>{e.onFocus?.(m)},m=>{const b=!A(s),{target:y,currentTarget:v}=m;if(y===v&&b&&!A(r)){const E=new Event(eh,jT);if(v?.dispatchEvent(E),!E.defaultPrevented){const _=a().filter(B=>B.focusable);Qp([_.find(B=>B.active),_.find(B=>B.id===A(n)),..._].filter(Boolean).map(B=>B.ref))}}s.value=!1}),d=ct(m=>{e.onBlur?.(m)},()=>{r.value=!1}),p=(...m)=>{t("entryFocus",...m)},h=m=>{const b=YT(m);if(b){m.preventDefault();let y=a().filter(v=>v.focusable).map(v=>v.ref);switch(b){case"last":y.reverse();break;case"prev":case"next":{b==="prev"&&y.reverse();const v=y.indexOf(m.currentTarget);y=e.loop?UT(y,v+1):y.slice(v+1);break}}cn(()=>{Qp(y)})}};st(bf,{currentTabbedId:Fs(n),loop:Et(e,"loop"),tabIndex:T(()=>A(r)?-1:0),rovingFocusGroupRef:o,rovingFocusGroupRootStyle:i,orientation:Et(e,"orientation"),dir:Et(e,"dir"),onItemFocus:l,onItemShiftTab:u,onBlur:d,onFocus:f,onMousedown:c,onKeydown:h}),Ie(()=>e.currentTabId,m=>{n.value=m??null}),Mr(o,eh,p)}});function KT(e,t,n,r,s,o){return we(e.$slots,"default")}var HT=zn(ZT,[["render",KT]]),XT=he({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:$T,ElRovingFocusGroupImpl:HT}});function zT(e,t,n,r,s,o){const a=Vt("el-roving-focus-group-impl"),i=Vt("el-focus-group-collection");return z(),xe(i,null,{default:de(()=>[Ae(a,Aw(Wg(e.$attrs)),{default:de(()=>[we(e.$slots,"default")]),_:3},16)]),_:3})}var JT=zn(XT,[["render",zT]]),QT=he({components:{ElRovingFocusCollectionItem:VT},props:{focusable:{type:Boolean,default:!0},active:Boolean},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,onItemFocus:r,onItemShiftTab:s,onKeydown:o}=be(bf,void 0),a=nl(),i=Q(),l=ct(d=>{t("mousedown",d)},d=>{e.focusable?r(A(a)):d.preventDefault()}),u=ct(d=>{t("focus",d)},()=>{r(A(a))}),c=ct(d=>{t("keydown",d)},d=>{const{shiftKey:p,target:h,currentTarget:m}=d;if(Hn(d)===Ve.tab&&p){s();return}h===m&&o(d)}),f=T(()=>n.value===A(a));return st(Mb,{rovingFocusGroupItemRef:i,tabIndex:T(()=>A(f)?0:-1),handleMousedown:l,handleFocus:u,handleKeydown:c}),{id:a,handleKeydown:c,handleFocus:u,handleMousedown:l}}});function qT(e,t,n,r,s,o){const a=Vt("el-roving-focus-collection-item");return z(),xe(a,{id:e.id,focusable:e.focusable,active:e.active},{default:de(()=>[we(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var eR=zn(QT,[["render",qT]]),tR=JT;const{ButtonGroup:nR}=Pb;var rR=he({name:"ElDropdown",components:{ElButton:Pb,ElButtonGroup:nR,ElScrollbar:Z6,ElTooltip:Ea,ElRovingFocusGroup:tR,ElOnlyChild:yb,ElIcon:Vr,ArrowDown:cb},props:Za,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=ot(),r=De("dropdown"),{t:s}=W0(),o=Q(),a=Q(),i=Q(),l=Q(),u=Q(null),c=Q(null),f=Q(!1),d=T(()=>({maxHeight:us(e.maxHeight)})),p=T(()=>[r.m(_.value)]),h=T(()=>tI(e.trigger)),m=nl().value,b=T(()=>e.id||m);function y(){i.value?.onClose(void 0,0)}function v(){i.value?.onClose()}function E(){i.value?.onOpen()}const _=Ab();function B(...U){t("command",...U)}function G(){}function P(){const U=A(l);h.value.includes("hover")&&U?.focus({preventScroll:!0}),c.value=null}function O(U){c.value=U}function R(){t("visible-change",!0)}function F(U){f.value=U?.type==="keydown",l.value?.focus()}function W(){t("visible-change",!1)}return st(sl,{contentRef:l,role:T(()=>e.role),triggerId:b,isUsingKeyboard:f,onItemEnter:G,onItemLeave:P,handleClose:v}),st(kb,{instance:n,dropdownSize:_,handleClick:y,commandHandler:B,trigger:Et(e,"trigger"),hideOnClick:Et(e,"hideOnClick")}),{t:s,ns:r,scrollbar:u,wrapStyle:d,dropdownTriggerKls:p,dropdownSize:_,triggerId:b,currentTabId:c,handleCurrentTabIdChange:O,handlerMainButtonClick:U=>{t("click",U)},handleClose:v,handleOpen:E,handleBeforeShowTooltip:R,handleShowTooltip:F,handleBeforeHideTooltip:W,popperRef:i,contentRef:l,triggeringElementRef:o,referenceElementRef:a}}});function sR(e,t,n,r,s,o){const a=Vt("el-roving-focus-group"),i=Vt("el-scrollbar"),l=Vt("el-only-child"),u=Vt("el-tooltip"),c=Vt("el-button"),f=Vt("arrow-down"),d=Vt("el-icon"),p=Vt("el-button-group");return z(),Ee("div",{class:Oe([e.ns.b(),e.ns.is("disabled",e.disabled)])},[Ae(u,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"popper-style":e.popperStyle,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-arrow":e.showArrow,"show-after":e.trigger==="hover"?e.showTimeout:0,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"virtual-ref":e.virtualRef??e.triggeringElementRef,"virtual-triggering":e.virtualTriggering||e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,"append-to":e.appendTo,pure:"","focus-on-target":"",persistent:e.persistent,onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},yg({content:de(()=>[Ae(i,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:de(()=>[Ae(a,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange},{default:de(()=>[we(e.$slots,"dropdown")]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:de(()=>[Ae(l,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:de(()=>[we(e.$slots,"default")]),_:3},8,["id","tabindex"])]),key:"0"}]),1032,["role","effect","popper-options","placement","popper-class","popper-style","trigger","trigger-keys","trigger-target-el","show-arrow","show-after","hide-after","virtual-ref","virtual-triggering","disabled","transition","teleported","append-to","persistent","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(z(),xe(p,{key:0},{default:de(()=>[Ae(c,Yt({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:de(()=>[we(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),Ae(c,Yt({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:de(()=>[Ae(d,{class:Oe(e.ns.e("icon"))},{default:de(()=>[Ae(f)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):et("v-if",!0)],2)}var oR=zn(rR,[["render",sR]]),aR=he({name:"DropdownItemImpl",components:{ElIcon:Vr},props:Ob,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=De("dropdown"),{role:r}=be(sl,void 0),{collectionItemRef:s}=be(WT,void 0),{rovingFocusGroupItemRef:o,tabIndex:a,handleFocus:i,handleKeydown:l,handleMousedown:u}=be(Mb,void 0),c=Bb(s,o),f=T(()=>r.value==="menu"?"menuitem":r.value==="navigation"?"link":"button"),d=ct(p=>{const h=Hn(p);if([Ve.enter,Ve.numpadEnter,Ve.space].includes(h))return p.preventDefault(),p.stopImmediatePropagation(),t("clickimpl",p),!0},l);return{ns:n,itemRef:c,dataset:{[Fb]:""},role:f,tabIndex:a,handleFocus:i,handleKeydown:d,handleMousedown:u}}});const iR=["aria-disabled","tabindex","role"];function lR(e,t,n,r,s,o){const a=Vt("el-icon");return z(),Ee(qe,null,[e.divided?(z(),Ee("li",{key:0,role:"separator",class:Oe(e.ns.bem("menu","item","divided"))},null,2)):et("v-if",!0),pe("li",Yt({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:t[0]||(t[0]=i=>e.$emit("clickimpl",i)),onFocus:t[1]||(t[1]=(...i)=>e.handleFocus&&e.handleFocus(...i)),onKeydown:t[2]||(t[2]=Qo((...i)=>e.handleKeydown&&e.handleKeydown(...i),["self"])),onMousedown:t[3]||(t[3]=(...i)=>e.handleMousedown&&e.handleMousedown(...i)),onPointermove:t[4]||(t[4]=i=>e.$emit("pointermove",i)),onPointerleave:t[5]||(t[5]=i=>e.$emit("pointerleave",i))}),[e.icon||e.$slots.icon?(z(),xe(a,{key:0},{default:de(()=>[we(e.$slots,"icon",{},()=>[(z(),xe(rs(e.icon)))])]),_:3})):et("v-if",!0),we(e.$slots,"default")],16,iR)],64)}var uR=zn(aR,[["render",lR]]);const $b=()=>{const e=be(kb,{});return{elDropdown:e,_elDropdownSize:T(()=>e?.dropdownSize)}};var cR=he({name:"ElDropdownItem",components:{ElRovingFocusItem:eR,ElDropdownItemImpl:uR},inheritAttrs:!1,props:Ob,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:r}=$b(),s=ot(),{onItemEnter:o,onItemLeave:a}=be(sl,void 0),i=ct(u=>(t("pointermove",u),u.defaultPrevented),yp(u=>{if(e.disabled){a(u);return}const c=u.currentTarget;c===document.activeElement||c.contains(document.activeElement)||(o(u),u.defaultPrevented||c?.focus({preventScroll:!0}))})),l=ct(u=>(t("pointerleave",u),u.defaultPrevented),yp(a));return{handleClick:ct(u=>{if(!e.disabled)return t("click",u),u.type!=="keydown"&&u.defaultPrevented},u=>{if(e.disabled){u.stopImmediatePropagation();return}r?.hideOnClick?.value&&r.handleClick?.(),r.commandHandler?.(e.command,s,u)}),handlePointerMove:i,handlePointerLeave:l,propsAndAttrs:T(()=>({...e,...n}))}}});function fR(e,t,n,r,s,o){const a=Vt("el-dropdown-item-impl"),i=Vt("el-roving-focus-item");return z(),xe(i,{focusable:!e.disabled},{default:de(()=>[Ae(a,Yt(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),yg({default:de(()=>[we(e.$slots,"default")]),_:2},[e.$slots.icon?{name:"icon",fn:de(()=>[we(e.$slots,"icon")]),key:"0"}:void 0]),1040,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])}var Vb=zn(cR,[["render",fR]]),dR=he({name:"ElDropdownMenu",props:TT,setup(e){const t=De("dropdown"),{_elDropdownSize:n}=$b(),r=n.value,{contentRef:s,role:o,triggerId:a,isUsingKeyboard:i,handleClose:l}=be(sl,void 0),{rovingFocusGroupRef:u,rovingFocusGroupRootStyle:c,onBlur:f,onFocus:d,onKeydown:p,onMousedown:h}=be(bf,void 0),{collectionRef:m}=be(Lb,void 0),b=T(()=>[t.b("menu"),t.bm("menu",r?.value)]),y=Bb(s,u,m),v=ct(_=>{e.onKeydown?.(_)},_=>{const{currentTarget:B,target:G}=_,P=Hn(_);if(B.contains(G),Ve.tab===P)return l();p(_)});function E(_){i.value&&d(_)}return{size:r,rovingFocusGroupRootStyle:c,dropdownKls:b,role:o,triggerId:a,dropdownListWrapperRef:y,handleKeydown:v,onBlur:f,handleFocus:E,onMousedown:h}}});const pR=["role","aria-labelledby"];function hR(e,t,n,r,s,o){return z(),Ee("ul",{ref:e.dropdownListWrapperRef,class:Oe(e.dropdownKls),style:_n(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onFocusin:t[0]||(t[0]=(...a)=>e.handleFocus&&e.handleFocus(...a)),onFocusout:t[1]||(t[1]=(...a)=>e.onBlur&&e.onBlur(...a)),onKeydown:t[2]||(t[2]=Qo((...a)=>e.handleKeydown&&e.handleKeydown(...a),["self"])),onMousedown:t[3]||(t[3]=Qo((...a)=>e.onMousedown&&e.onMousedown(...a),["self"]))},[we(e.$slots,"default")],46,pR)}var Wb=zn(dR,[["render",hR]]);const mR=Xn(oR,{DropdownItem:Vb,DropdownMenu:Wb}),gR=oo(Vb),bR=oo(Wb),vf="rootMenu",Si="subMenu:";function Db(e,t){const n=T(()=>{let r=e.parent;const s=[t.value];for(;r.type.name!=="ElMenu";)r.props.index&&s.unshift(r.props.index),r=r.parent;return s});return{parentMenu:T(()=>{let r=e.parent;for(;r&&!["ElMenu","ElSubMenu"].includes(r.type.name);)r=r.parent;return r}),indexPath:n}}function vR(e){return T(()=>{const t=e.backgroundColor;return t?new nt(t).shade(20).toString():""})}const Gb=(e,t)=>{const n=De("menu");return T(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":vR(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},yR=Ge({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,popperStyle:{type:ce([String,Object])},disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:cr},expandOpenIcon:{type:cr},collapseCloseIcon:{type:cr},collapseOpenIcon:{type:cr}}),Bl="ElSubMenu";var yf=he({name:Bl,props:yR,setup(e,{slots:t,expose:n}){const r=ot(),{indexPath:s,parentMenu:o}=Db(r,T(()=>e.index)),a=De("menu"),i=De("sub-menu"),l=be(vf);l||ra(Bl,"can not inject root menu");const u=be(`${Si}${o.value.uid}`);u||ra(Bl,"can not inject sub menu");const c=Q({}),f=Q({});let d;const p=Q(!1),h=Q(),m=Q(),b=T(()=>u.level===0),y=T(()=>O.value==="horizontal"&&b.value?"bottom-start":"right-start"),v=T(()=>O.value==="horizontal"&&b.value||O.value==="vertical"&&!l.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?G.value?e.expandOpenIcon:e.expandCloseIcon:cb:e.collapseCloseIcon&&e.collapseOpenIcon?G.value?e.collapseOpenIcon:e.collapseCloseIcon:y5),E=T(()=>{const ae=e.teleported;return F0(ae)?b.value:ae}),_=T(()=>l.props.collapse?`${a.namespace.value}-zoom-in-left`:`${a.namespace.value}-zoom-in-top`),B=T(()=>O.value==="horizontal"&&b.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),G=T(()=>l.openedMenus.includes(e.index)),P=T(()=>[...Object.values(c.value),...Object.values(f.value)].some(({active:ae})=>ae)),O=T(()=>l.props.mode),R=T(()=>l.props.persistent),F=xn({index:e.index,indexPath:s,active:P}),W=Gb(l.props,u.level+1),k=T(()=>e.popperOffset??l.props.popperOffset),U=T(()=>e.popperClass??l.props.popperClass),K=T(()=>e.popperStyle??l.props.popperStyle),j=T(()=>e.showTimeout??l.props.showTimeout),M=T(()=>e.hideTimeout??l.props.hideTimeout),I=()=>m.value?.popperRef?.popperInstanceRef?.destroy(),C=ae=>{ae||I()},H=()=>{l.props.menuTrigger==="hover"&&l.props.mode==="horizontal"||l.props.collapse&&l.props.mode==="vertical"||e.disabled||l.handleSubMenuClick({index:e.index,indexPath:s.value,active:P.value})},re=(ae,Se=j.value)=>{if(ae.type!=="focus"){if(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||e.disabled){u.mouseInChild.value=!0;return}u.mouseInChild.value=!0,d?.(),{stop:d}=Eu(()=>{l.openMenu(e.index,s.value)},Se),E.value&&o.value.vnode.el?.dispatchEvent(new MouseEvent("mouseenter")),ae.type==="mouseenter"&&ae.target&&cn(()=>{el(ae.target,{preventScroll:!0})})}},le=(ae=!1)=>{if(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"){u.mouseInChild.value=!1;return}d?.(),u.mouseInChild.value=!1,{stop:d}=Eu(()=>!p.value&&l.closeMenu(e.index,s.value),M.value),E.value&&ae&&u.handleMouseleave?.(!0)};Ie(()=>l.props.collapse,ae=>C(!!ae));{const ae=ye=>{f.value[ye.index]=ye},Se=ye=>{delete f.value[ye.index]};st(`${Si}${r.uid}`,{addSubMenu:ae,removeSubMenu:Se,handleMouseleave:le,mouseInChild:p,level:u.level+1})}return n({opened:G}),it(()=>{l.addSubMenu(F),u.addSubMenu(F)}),vt(()=>{u.removeSubMenu(F),l.removeSubMenu(F)}),()=>{const ae=[t.title?.(),ut(Vr,{class:i.e("icon-arrow"),style:{transform:G.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&l.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>Ne(v.value)?ut(r.appContext.components[v.value]):ut(v.value)})],Se=l.isMenuPopup?ut(Ea,{ref:m,visible:G.value,effect:"light",pure:!0,offset:k.value,showArrow:!1,persistent:R.value,popperClass:U.value,popperStyle:K.value,placement:y.value,teleported:E.value,fallbackPlacements:B.value,transition:_.value,gpuAcceleration:!1},{content:()=>ut("div",{class:[a.m(O.value),a.m("popup-container"),U.value],onMouseenter:ye=>re(ye,100),onMouseleave:()=>le(!0),onFocus:ye=>re(ye,100)},[ut("ul",{class:[a.b(),a.m("popup"),a.m(`popup-${y.value}`)],style:W.value},[t.default?.()])]),default:()=>ut("div",{class:i.e("title"),onClick:H},ae)}):ut(qe,{},[ut("div",{class:i.e("title"),ref:h,onClick:H},ae),ut(CT,{},{default:()=>qs(ut("ul",{role:"menu",class:[a.b(),a.m("inline")],style:W.value},[t.default?.()]),[[Ui,G.value]])})]);return ut("li",{class:[i.b(),i.is("active",P.value),i.is("opened",G.value),i.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:G.value,onMouseenter:re,onMouseleave:()=>le(),onFocus:re},[Se])}}}),wR=class{constructor(e,t){this.parent=e,this.domNode=t,this.subIndex=0,this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(e){e===this.subMenuItems.length?e=0:e<0&&(e=this.subMenuItems.length-1),this.subMenuItems[e].focus(),this.subIndex=e}addListeners(){const e=this.parent.domNode;this.subMenuItems.forEach(t=>{t.addEventListener("keydown",n=>{const r=Hn(n);let s=!1;switch(r){case Ve.down:this.gotoSubIndex(this.subIndex+1),s=!0;break;case Ve.up:this.gotoSubIndex(this.subIndex-1),s=!0;break;case Ve.tab:Ya(e,"mouseleave");break;case Ve.enter:case Ve.numpadEnter:case Ve.space:s=!0,n.currentTarget.click();break}return s&&(n.preventDefault(),n.stopPropagation()),!1})})}},_R=class{constructor(e,t){this.domNode=e,this.submenu=null,this.init(t)}init(e){this.domNode.setAttribute("tabindex","0");const t=this.domNode.querySelector(`.${e}-menu`);t&&(this.submenu=new wR(this,t)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",e=>{const t=Hn(e);let n=!1;switch(t){case Ve.down:Ya(e.currentTarget,"mouseenter"),this.submenu?.gotoSubIndex(0),n=!0;break;case Ve.up:Ya(e.currentTarget,"mouseenter"),this.submenu?.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break;case Ve.tab:Ya(e.currentTarget,"mouseleave");break;case Ve.enter:case Ve.numpadEnter:case Ve.space:n=!0,e.currentTarget.click();break}n&&e.preventDefault()})}},ER=class{constructor(e,t){this.domNode=e,this.init(t)}init(e){const t=this.domNode.childNodes;Array.from(t).forEach(n=>{n.nodeType===1&&new _R(n,e)})}},AR=he({name:"ElMenuCollapseTransition",__name:"menu-collapse-transition",setup(e){const t=De("menu"),n={onBeforeEnter:r=>r.style.opacity="0.2",onEnter(r,s){Ca(r,`${t.namespace.value}-opacity-transition`),r.style.opacity="1",s()},onAfterEnter(r){xl(r,`${t.namespace.value}-opacity-transition`),r.style.opacity=""},onBeforeLeave(r){r.dataset||(r.dataset={}),YI(r,t.m("collapse"))?(xl(r,t.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),Ca(r,t.m("collapse"))):(Ca(r,t.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),xl(r,t.m("collapse"))),r.style.width=`${r.scrollWidth}px`,r.style.overflow="hidden"},onLeave(r){Ca(r,"horizontal-collapse-transition"),r.style.width=`${r.dataset.scrollWidth}px`}};return(r,s)=>(z(),xe(to,Yt({mode:"out-in"},n),{default:de(()=>[we(r.$slots,"default")]),_:3},16))}}),SR=AR;const xR=Ge({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:ce(Array),default:()=>Nb([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:cr,default:()=>P5},popperEffect:{type:ce(String),default:"dark"},popperClass:String,popperStyle:{type:ce([String,Object])},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},persistent:{type:Boolean,default:!0}}),Ol=e=>ue(e)&&e.every(t=>Ne(t)),NR={close:(e,t)=>Ne(e)&&Ol(t),open:(e,t)=>Ne(e)&&Ol(t),select:(e,t,n,r)=>Ne(e)&&Ol(t)&&Te(n)&&(F0(r)||r instanceof Promise)},th=64;var IR=he({name:"ElMenu",props:xR,emits:NR,setup(e,{emit:t,slots:n,expose:r}){const s=ot(),o=s.appContext.config.globalProperties.$router,a=Q(),i=Q(),l=De("menu"),u=De("sub-menu");let c=th;const f=Q(-1),d=Q(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),p=Q(e.defaultActive),h=Q({}),m=Q({}),b=T(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),y=()=>{const I=p.value&&h.value[p.value];!I||e.mode==="horizontal"||e.collapse||I.indexPath.forEach(C=>{const H=m.value[C];H&&v(C,H.indexPath)})},v=(I,C)=>{d.value.includes(I)||(e.uniqueOpened&&(d.value=d.value.filter(H=>C.includes(H))),d.value.push(I),t("open",I,C))},E=I=>{const C=d.value.indexOf(I);C!==-1&&d.value.splice(C,1)},_=(I,C)=>{E(I),t("close",I,C)},B=({index:I,indexPath:C})=>{d.value.includes(I)?_(I,C):v(I,C)},G=I=>{(e.mode==="horizontal"||e.collapse)&&(d.value=[]);const{index:C,indexPath:H}=I;if(!(Ws(C)||Ws(H)))if(e.router&&o){const re=I.route||C,le=o.push(re).then(ae=>(ae||(p.value=C),ae));t("select",C,H,{index:C,indexPath:H,route:re},le)}else p.value=C,t("select",C,H,{index:C,indexPath:H})},P=I=>{const C=h.value;p.value=(C[I]||p.value&&C[p.value]||C[e.defaultActive])?.index??I},O=I=>{const C=getComputedStyle(I),H=Number.parseInt(C.marginLeft,10),re=Number.parseInt(C.marginRight,10);return I.offsetWidth+H+re||0},R=()=>{if(!a.value)return-1;const I=Array.from(a.value.childNodes).filter(ye=>ye.nodeName!=="#comment"&&(ye.nodeName!=="#text"||ye.nodeValue)),C=getComputedStyle(a.value),H=Number.parseInt(C.paddingLeft,10),re=Number.parseInt(C.paddingRight,10),le=a.value.clientWidth-H-re;let ae=0,Se=0;return I.forEach((ye,Be)=>{ae+=O(ye),ae<=le-c&&(Se=Be+1)}),Se===I.length?-1:Se},F=I=>m.value[I].indexPath,W=(I,C=33.34)=>{let H;return()=>{H&&clearTimeout(H),H=setTimeout(()=>{I()},C)}};let k=!0;const U=()=>{const I=Mn(i);if(I&&(c=O(I)||th),f.value===R())return;const C=()=>{f.value=-1,cn(()=>{f.value=R()})};k?C():W(C)(),k=!1};Ie(()=>e.defaultActive,I=>{h.value[I]||(p.value=""),P(I)}),Ie(()=>e.collapse,I=>{I&&(d.value=[])}),Ie(h.value,y);let K;tg(()=>{e.mode==="horizontal"&&e.ellipsis?K=sa(a,U).stop:K?.()});const j=Q(!1);{const I=le=>{m.value[le.index]=le},C=le=>{delete m.value[le.index]};st(vf,xn({props:e,openedMenus:d,items:h,subMenus:m,activeIndex:p,isMenuPopup:b,addMenuItem:le=>{h.value[le.index]=le},removeMenuItem:le=>{delete h.value[le.index]},addSubMenu:I,removeSubMenu:C,openMenu:v,closeMenu:_,handleMenuItemClick:G,handleSubMenuClick:B})),st(`${Si}${s.uid}`,{addSubMenu:I,removeSubMenu:C,mouseInChild:j,level:0})}it(()=>{e.mode==="horizontal"&&new ER(s.vnode.el,l.namespace.value)}),r({open:C=>{const{indexPath:H}=m.value[C];H.forEach(re=>v(re,H))},close:E,updateActiveIndex:P,handleResize:U});const M=Gb(e,0);return()=>{let I=n.default?.()??[];const C=[];if(e.mode==="horizontal"&&a.value){const le=So(I).filter(ye=>ye?.shapeFlag!==8),ae=f.value===-1?le:le.slice(0,f.value),Se=f.value===-1?[]:le.slice(f.value);Se?.length&&e.ellipsis&&(I=ae,C.push(ut(yf,{ref:i,index:"sub-menu-more",class:u.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>ut(Vr,{class:u.e("icon-more")},{default:()=>ut(e.ellipsisIcon)}),default:()=>Se})))}const H=e.closeOnClickOutside?[[xT,()=>{d.value.length&&(j.value||(d.value.forEach(le=>t("close",le,F(le))),d.value=[]))}]]:[],re=qs(ut("ul",{key:String(e.collapse),role:"menubar",ref:a,style:M.value,class:{[l.b()]:!0,[l.m(e.mode)]:!0,[l.m("collapse")]:e.collapse}},[...I,...C]),H);return e.collapseTransition&&e.mode==="vertical"?ut(SR,()=>re):re}}});const CR=Ge({index:{type:String,required:!0},route:{type:ce([String,Object])},disabled:Boolean}),TR={click:e=>Ne(e.index)&&ue(e.indexPath)},RR={title:String},kl="ElMenuItem";var PR=he({name:kl,__name:"menu-item",props:CR,emits:TR,setup(e,{expose:t,emit:n}){const r=e,s=n,o=ot(),a=be(vf),i=De("menu"),l=De("menu-item");a||ra(kl,"can not inject root menu");const{parentMenu:u,indexPath:c}=Db(o,Et(r,"index")),f=be(`${Si}${u.value.uid}`);f||ra(kl,"can not inject sub menu");const d=T(()=>r.index===a.activeIndex),p=xn({index:r.index,indexPath:c,active:d}),h=()=>{r.disabled||(a.handleMenuItemClick({index:r.index,indexPath:c.value,route:r.route}),s("click",p))};return it(()=>{f.addSubMenu(p),a.addMenuItem(p)}),vt(()=>{f.removeSubMenu(p),a.removeMenuItem(p)}),t({parentMenu:u,rootMenu:a,active:d,nsMenu:i,nsMenuItem:l,handleClick:h}),(m,b)=>(z(),Ee("li",{class:Oe([A(l).b(),A(l).is("active",d.value),A(l).is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:h},[A(u).type.name==="ElMenu"&&A(a).props.collapse&&m.$slots.title?(z(),xe(A(Ea),{key:0,effect:A(a).props.popperEffect,placement:"right","fallback-placements":["left"],"popper-class":A(a).props.popperClass,"popper-style":A(a).props.popperStyle,persistent:A(a).props.persistent,"focus-on-target":""},{content:de(()=>[we(m.$slots,"title")]),default:de(()=>[pe("div",{class:Oe(A(i).be("tooltip","trigger"))},[we(m.$slots,"default")],2)]),_:3},8,["effect","popper-class","popper-style","persistent"])):(z(),Ee(qe,{key:1},[we(m.$slots,"default"),we(m.$slots,"title")],64))],2))}}),Yb=PR,BR=he({name:"ElMenuItemGroup",__name:"menu-item-group",props:RR,setup(e){const t=De("menu-item-group");return(n,r)=>(z(),Ee("li",{class:Oe(A(t).b())},[pe("div",{class:Oe(A(t).e("title"))},[n.$slots.title?we(n.$slots,"title",{key:1}):(z(),Ee(qe,{key:0},[Un(Wt(e.title),1)],64))],2),pe("ul",null,[we(n.$slots,"default")])],2))}}),Ub=BR;const OR=Xn(IR,{MenuItem:Yb,MenuItemGroup:Ub,SubMenu:yf}),jb=oo(Yb);oo(Ub);const kR=oo(yf),Zb=["primary","success","info","warning","error"],Kb=["top","top-left","top-right","bottom","bottom-left","bottom-right"],xt=Nb({customClass:"",dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,placement:void 0,zIndex:0,grouping:!1,repeatNum:1,appendTo:ft?document.body:void 0}),FR=Ge({customClass:{type:String,default:xt.customClass},dangerouslyUseHTMLString:{type:Boolean,default:xt.dangerouslyUseHTMLString},duration:{type:Number,default:xt.duration},icon:{type:cr,default:xt.icon},id:{type:String,default:xt.id},message:{type:ce([String,Object,Function]),default:xt.message},onClose:{type:ce(Function),default:xt.onClose},showClose:{type:Boolean,default:xt.showClose},type:{type:String,values:Zb,default:xt.type},plain:{type:Boolean,default:xt.plain},offset:{type:Number,default:xt.offset},placement:{type:String,values:Kb,default:xt.placement},zIndex:{type:Number,default:xt.zIndex},grouping:{type:Boolean,default:xt.grouping},repeatNum:{type:Number,default:xt.repeatNum}}),LR={destroy:()=>!0},wn=Li({}),MR=e=>(wn[e]||(wn[e]=Li([])),wn[e]),$R=(e,t)=>{const n=wn[t]||[],r=n.findIndex(a=>a.id===e),s=n[r];let o;return r>0&&(o=n[r-1]),{current:s,prev:o}},VR=(e,t)=>{const{prev:n}=$R(e,t);return n?n.vm.exposed.bottom.value:0},WR=(e,t,n)=>(wn[n]||[]).findIndex(r=>r.id===e)>0?16:t,DR=["id"],GR=["innerHTML"];var YR=he({name:"ElMessage",__name:"message",props:FR,emits:LR,setup(e,{expose:t,emit:n}){const{Close:r}=F5,s=e,o=n,a=Q(!1),{ns:i,zIndex:l}=eT("message"),{currentZIndex:u,nextZIndex:c}=l,f=Q(),d=Q(!1),p=Q(0);let h;const m=T(()=>s.type?s.type==="error"?"danger":s.type:"info"),b=T(()=>{const U=s.type;return{[i.bm("icon",U)]:U&&kp[U]}}),y=T(()=>s.icon||kp[s.type]||""),v=T(()=>s.placement||"top"),E=T(()=>VR(s.id,v.value)),_=T(()=>Math.max(WR(s.id,s.offset,v.value)+E.value,s.offset)),B=T(()=>p.value+_.value),G=T(()=>v.value.includes("left")?i.is("left"):v.value.includes("right")?i.is("right"):i.is("center")),P=T(()=>v.value.startsWith("top")?"top":"bottom"),O=T(()=>({[P.value]:`${_.value}px`,zIndex:u.value}));function R(){s.duration!==0&&({stop:h}=Eu(()=>{W()},s.duration))}function F(){h?.()}function W(){d.value=!1,cn(()=>{a.value||(s.onClose?.(),o("destroy"))})}function k(U){Hn(U)===Ve.esc&&W()}return it(()=>{R(),c(),d.value=!0}),Ie(()=>s.repeatNum,()=>{F(),R()}),Mr(document,"keydown",k),sa(f,()=>{p.value=f.value.getBoundingClientRect().height}),t({visible:d,bottom:B,close:W}),(U,K)=>(z(),xe(to,{name:A(i).b("fade"),onBeforeEnter:K[0]||(K[0]=j=>a.value=!0),onBeforeLeave:e.onClose,onAfterLeave:K[1]||(K[1]=j=>U.$emit("destroy")),persisted:""},{default:de(()=>[qs(pe("div",{id:e.id,ref_key:"messageRef",ref:f,class:Oe([A(i).b(),{[A(i).m(e.type)]:e.type},A(i).is("closable",e.showClose),A(i).is("plain",e.plain),A(i).is("bottom",P.value==="bottom"),G.value,e.customClass]),style:_n(O.value),role:"alert",onMouseenter:F,onMouseleave:R},[e.repeatNum>1?(z(),xe(A(z6),{key:0,value:e.repeatNum,type:m.value,class:Oe(A(i).e("badge"))},null,8,["value","type","class"])):et("v-if",!0),y.value?(z(),xe(A(Vr),{key:1,class:Oe([A(i).e("icon"),b.value])},{default:de(()=>[(z(),xe(rs(y.value)))]),_:1},8,["class"])):et("v-if",!0),!e.dangerouslyUseHTMLString||U.$slots.default?(z(),Ee("p",{key:2,class:Oe(A(i).e("content"))},[we(U.$slots,"default",{},()=>[Un(Wt(e.message),1)])],2)):(z(),Ee(qe,{key:3},[et(" Caution here, message could've been compromised, never use user's input as message "),pe("p",{class:Oe(A(i).e("content")),innerHTML:e.message},null,10,GR)],2112)),e.showClose?(z(),xe(A(Vr),{key:4,class:Oe(A(i).e("closeBtn")),onClick:Qo(W,["stop"])},{default:de(()=>[Ae(A(r))]),_:1},8,["class"])):et("v-if",!0)],46,DR),[[Ui,d.value]])]),_:3},8,["name","onBeforeLeave"]))}}),UR=YR;let jR=1;const ZR=e=>{if(!e.appendTo)e.appendTo=document.body;else if(Ne(e.appendTo)){let t=document.querySelector(e.appendTo);kr(t)||(An("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),t=document.body),e.appendTo=t}},KR=e=>{!e.placement&&Ne(kt.placement)&&kt.placement&&(e.placement=kt.placement),e.placement||(e.placement="top"),Kb.includes(e.placement)||(An("ElMessage",`Invalid placement: ${e.placement}. Falling back to 'top'.`),e.placement="top")},Hb=e=>{const t=!e||Ne(e)||yn(e)||me(e)?{message:e}:e,n={...xt,...t};return ZR(n),KR(n),os(kt.grouping)&&!n.grouping&&(n.grouping=kt.grouping),Mt(kt.duration)&&n.duration===3e3&&(n.duration=kt.duration),Mt(kt.offset)&&n.offset===16&&(n.offset=kt.offset),os(kt.showClose)&&!n.showClose&&(n.showClose=kt.showClose),os(kt.plain)&&!n.plain&&(n.plain=kt.plain),n},HR=e=>{const t=wn[e.props.placement||"top"],n=t.indexOf(e);if(n===-1)return;t.splice(n,1);const{handler:r}=e;r.close()},XR=({appendTo:e,...t},n)=>{const r=`message_${jR++}`,s=t.onClose,o=document.createElement("div"),a={...t,id:r,onClose:()=>{s?.(),HR(u)},onDestroy:()=>{Ed(null,o)}},i=Ae(UR,a,me(a.message)||yn(a.message)?{default:me(a.message)?a.message:()=>a.message}:null);i.appContext=n||fs._context,Ed(i,o),e.appendChild(o.firstElementChild);const l=i.component,u={id:r,vnode:i,vm:l,handler:{close:()=>{l.exposed.close()}},props:i.component.props};return u},fs=(e={},t)=>{if(!ft)return{close:()=>{}};const n=Hb(e),r=MR(n.placement||"top");if(n.grouping&&r.length){const o=r.find(({vnode:a})=>a.props?.message===n.message);if(o)return o.props.repeatNum+=1,o.props.type=n.type,o.handler}if(Mt(kt.max)&&r.length>=kt.max)return{close:()=>{}};const s=XR(n,t);return r.push(s),s.handler};Zb.forEach(e=>{fs[e]=(t={},n)=>fs({...Hb(t),type:e},n)});function zR(e){for(const t in wn)if(Pe(wn,t)){const n=[...wn[t]];for(const r of n)(!e||e===r.props.type)&&r.handler.close()}}function JR(e){wn[e]&&[...wn[e]].forEach(t=>t.handler.close())}fs.closeAll=zR;fs.closeAllByPlacement=JR;fs._context=null;const QR=m5(fs,"$message"),qR=Ge({trigger:$r.trigger,triggerKeys:$r.triggerKeys,placement:Za.placement,disabled:$r.disabled,visible:It.visible,transition:It.transition,popperOptions:Za.popperOptions,tabindex:Za.tabindex,content:It.content,popperStyle:It.popperStyle,popperClass:It.popperClass,enterable:{...It.enterable,default:!0},effect:{...It.effect,default:"light"},teleported:It.teleported,appendTo:It.appendTo,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),e8={"update:visible":e=>os(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},t8="onUpdate:visible";var n8=he({name:"ElPopover",__name:"popover",props:qR,emits:e8,setup(e,{expose:t,emit:n}){const r=e,s=n,o=T(()=>r[t8]),a=De("popover"),i=Q(),l=T(()=>A(i)?.popperRef),u=T(()=>[{width:us(r.width)},r.popperStyle]),c=T(()=>[a.b(),r.popperClass,{[a.m("plain")]:!!r.content}]),f=T(()=>r.transition===`${a.namespace.value}-fade-in-linear`),d=()=>{i.value?.hide()},p=()=>{s("before-enter")},h=()=>{s("before-leave")},m=()=>{s("after-enter")},b=()=>{s("update:visible",!1),s("after-leave")};return t({popperRef:l,hide:d}),(y,v)=>(z(),xe(A(Ea),Yt({ref_key:"tooltipRef",ref:i},y.$attrs,{trigger:e.trigger,"trigger-keys":e.triggerKeys,placement:e.placement,disabled:e.disabled,visible:e.visible,transition:e.transition,"popper-options":e.popperOptions,tabindex:e.tabindex,content:e.content,offset:e.offset,"show-after":e.showAfter,"hide-after":e.hideAfter,"auto-close":e.autoClose,"show-arrow":e.showArrow,"aria-label":e.title,effect:e.effect,enterable:e.enterable,"popper-class":c.value,"popper-style":u.value,teleported:e.teleported,"append-to":e.appendTo,persistent:e.persistent,"gpu-acceleration":f.value,"onUpdate:visible":o.value,onBeforeShow:p,onBeforeHide:h,onShow:m,onHide:b}),{content:de(()=>[e.title?(z(),Ee("div",{key:0,class:Oe(A(a).e("title")),role:"title"},Wt(e.title),3)):et("v-if",!0),we(y.$slots,"default",{hide:d},()=>[Un(Wt(e.content),1)])]),default:de(()=>[y.$slots.reference?we(y.$slots,"reference",{key:0}):et("v-if",!0)]),_:3},16,["trigger","trigger-keys","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","append-to","persistent","gpu-acceleration","onUpdate:visible"]))}}),r8=n8;const nh=(e,t)=>{const n=(t.arg||t.value)?.popperRef;n&&(n.triggerRef=e)};var s8={mounted(e,t){nh(e,t)},updated(e,t){nh(e,t)}};const o8="popover",a8=g5(s8,o8),i8=Xn(r8,{directive:a8});var Fl={exports:{}},Ll={exports:{}},rh;function l8(){return rh||(rh=1,(function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(n,r){return n<<r|n>>>32-r},rotr:function(n,r){return n<<32-r|n>>>r},endian:function(n){if(n.constructor==Number)return t.rotl(n,8)&16711935|t.rotl(n,24)&4278255360;for(var r=0;r<n.length;r++)n[r]=t.endian(n[r]);return n},randomBytes:function(n){for(var r=[];n>0;n--)r.push(Math.floor(Math.random()*256));return r},bytesToWords:function(n){for(var r=[],s=0,o=0;s<n.length;s++,o+=8)r[o>>>5]|=n[s]<<24-o%32;return r},wordsToBytes:function(n){for(var r=[],s=0;s<n.length*32;s+=8)r.push(n[s>>>5]>>>24-s%32&255);return r},bytesToHex:function(n){for(var r=[],s=0;s<n.length;s++)r.push((n[s]>>>4).toString(16)),r.push((n[s]&15).toString(16));return r.join("")},hexToBytes:function(n){for(var r=[],s=0;s<n.length;s+=2)r.push(parseInt(n.substr(s,2),16));return r},bytesToBase64:function(n){for(var r=[],s=0;s<n.length;s+=3)for(var o=n[s]<<16|n[s+1]<<8|n[s+2],a=0;a<4;a++)s*8+a*6<=n.length*8?r.push(e.charAt(o>>>6*(3-a)&63)):r.push("=");return r.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/ig,"");for(var r=[],s=0,o=0;s<n.length;o=++s%4)o!=0&&r.push((e.indexOf(n.charAt(s-1))&Math.pow(2,-2*o+8)-1)<<o*2|e.indexOf(n.charAt(s))>>>6-o*2);return r}};Ll.exports=t})()),Ll.exports}var Ml,sh;function oh(){if(sh)return Ml;sh=1;var e={utf8:{stringToBytes:function(t){return e.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(e.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var n=[],r=0;r<t.length;r++)n.push(t.charCodeAt(r)&255);return n},bytesToString:function(t){for(var n=[],r=0;r<t.length;r++)n.push(String.fromCharCode(t[r]));return n.join("")}}};return Ml=e,Ml}var $l,ah;function u8(){if(ah)return $l;ah=1,$l=function(n){return n!=null&&(e(n)||t(n)||!!n._isBuffer)};function e(n){return!!n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function t(n){return typeof n.readFloatLE=="function"&&typeof n.slice=="function"&&e(n.slice(0,0))}return $l}var ih;function c8(){return ih||(ih=1,(function(){var e=l8(),t=oh().utf8,n=u8(),r=oh().bin,s=function(o,a){o.constructor==String?a&&a.encoding==="binary"?o=r.stringToBytes(o):o=t.stringToBytes(o):n(o)?o=Array.prototype.slice.call(o,0):!Array.isArray(o)&&o.constructor!==Uint8Array&&(o=o.toString());for(var i=e.bytesToWords(o),l=o.length*8,u=1732584193,c=-271733879,f=-1732584194,d=271733878,p=0;p<i.length;p++)i[p]=(i[p]<<8|i[p]>>>24)&16711935|(i[p]<<24|i[p]>>>8)&4278255360;i[l>>>5]|=128<<l%32,i[(l+64>>>9<<4)+14]=l;for(var h=s._ff,m=s._gg,b=s._hh,y=s._ii,p=0;p<i.length;p+=16){var v=u,E=c,_=f,B=d;u=h(u,c,f,d,i[p+0],7,-680876936),d=h(d,u,c,f,i[p+1],12,-389564586),f=h(f,d,u,c,i[p+2],17,606105819),c=h(c,f,d,u,i[p+3],22,-1044525330),u=h(u,c,f,d,i[p+4],7,-176418897),d=h(d,u,c,f,i[p+5],12,1200080426),f=h(f,d,u,c,i[p+6],17,-1473231341),c=h(c,f,d,u,i[p+7],22,-45705983),u=h(u,c,f,d,i[p+8],7,1770035416),d=h(d,u,c,f,i[p+9],12,-1958414417),f=h(f,d,u,c,i[p+10],17,-42063),c=h(c,f,d,u,i[p+11],22,-1990404162),u=h(u,c,f,d,i[p+12],7,1804603682),d=h(d,u,c,f,i[p+13],12,-40341101),f=h(f,d,u,c,i[p+14],17,-1502002290),c=h(c,f,d,u,i[p+15],22,1236535329),u=m(u,c,f,d,i[p+1],5,-165796510),d=m(d,u,c,f,i[p+6],9,-1069501632),f=m(f,d,u,c,i[p+11],14,643717713),c=m(c,f,d,u,i[p+0],20,-373897302),u=m(u,c,f,d,i[p+5],5,-701558691),d=m(d,u,c,f,i[p+10],9,38016083),f=m(f,d,u,c,i[p+15],14,-660478335),c=m(c,f,d,u,i[p+4],20,-405537848),u=m(u,c,f,d,i[p+9],5,568446438),d=m(d,u,c,f,i[p+14],9,-1019803690),f=m(f,d,u,c,i[p+3],14,-187363961),c=m(c,f,d,u,i[p+8],20,1163531501),u=m(u,c,f,d,i[p+13],5,-1444681467),d=m(d,u,c,f,i[p+2],9,-51403784),f=m(f,d,u,c,i[p+7],14,1735328473),c=m(c,f,d,u,i[p+12],20,-1926607734),u=b(u,c,f,d,i[p+5],4,-378558),d=b(d,u,c,f,i[p+8],11,-2022574463),f=b(f,d,u,c,i[p+11],16,1839030562),c=b(c,f,d,u,i[p+14],23,-35309556),u=b(u,c,f,d,i[p+1],4,-1530992060),d=b(d,u,c,f,i[p+4],11,1272893353),f=b(f,d,u,c,i[p+7],16,-155497632),c=b(c,f,d,u,i[p+10],23,-1094730640),u=b(u,c,f,d,i[p+13],4,681279174),d=b(d,u,c,f,i[p+0],11,-358537222),f=b(f,d,u,c,i[p+3],16,-722521979),c=b(c,f,d,u,i[p+6],23,76029189),u=b(u,c,f,d,i[p+9],4,-640364487),d=b(d,u,c,f,i[p+12],11,-421815835),f=b(f,d,u,c,i[p+15],16,530742520),c=b(c,f,d,u,i[p+2],23,-995338651),u=y(u,c,f,d,i[p+0],6,-198630844),d=y(d,u,c,f,i[p+7],10,1126891415),f=y(f,d,u,c,i[p+14],15,-1416354905),c=y(c,f,d,u,i[p+5],21,-57434055),u=y(u,c,f,d,i[p+12],6,1700485571),d=y(d,u,c,f,i[p+3],10,-1894986606),f=y(f,d,u,c,i[p+10],15,-1051523),c=y(c,f,d,u,i[p+1],21,-2054922799),u=y(u,c,f,d,i[p+8],6,1873313359),d=y(d,u,c,f,i[p+15],10,-30611744),f=y(f,d,u,c,i[p+6],15,-1560198380),c=y(c,f,d,u,i[p+13],21,1309151649),u=y(u,c,f,d,i[p+4],6,-145523070),d=y(d,u,c,f,i[p+11],10,-1120210379),f=y(f,d,u,c,i[p+2],15,718787259),c=y(c,f,d,u,i[p+9],21,-343485551),u=u+v>>>0,c=c+E>>>0,f=f+_>>>0,d=d+B>>>0}return e.endian([u,c,f,d])};s._ff=function(o,a,i,l,u,c,f){var d=o+(a&i|~a&l)+(u>>>0)+f;return(d<<c|d>>>32-c)+a},s._gg=function(o,a,i,l,u,c,f){var d=o+(a&l|i&~l)+(u>>>0)+f;return(d<<c|d>>>32-c)+a},s._hh=function(o,a,i,l,u,c,f){var d=o+(a^i^l)+(u>>>0)+f;return(d<<c|d>>>32-c)+a},s._ii=function(o,a,i,l,u,c,f){var d=o+(i^(a|~l))+(u>>>0)+f;return(d<<c|d>>>32-c)+a},s._blocksize=16,s._digestsize=16,Fl.exports=function(o,a){if(o==null)throw new Error("Illegal argument "+o);var i=e.wordsToBytes(s(o,a));return a&&a.asBytes?i:a&&a.asString?r.bytesToString(i):e.bytesToHex(i)}})()),Fl.exports}var f8=c8();const d8=ET(f8);function Xb(e){return e instanceof Error?e.name==="AbortError"||e.name==="CanceledError"||"code"in e&&e.code==="ERR_CANCELED":!1}function js(e){let t=new Error(e??"操作已取消");return t.name="AbortError",t}function Pu(e){return typeof e=="string"?e:e instanceof Error||e&&typeof e=="object"&&"message"in e&&typeof e.message=="string"?e.message:String(e)??"未知错误"}var lh={trace:0,debug:1,info:2,warn:3,error:4},p8=["trace","debug","info","warn","error"];function ao(e){return Array.isArray(e)&&e.length===0}var uh=()=>{},h8=new Set(["then","catch","finally","toJSON","toString","valueOf"]);function ch(e){return p8.indexOf(e)>-1}function m8(e,t){let n="info";return(async()=>{try{let r=(typeof e=="function"?await e():e).toLowerCase();ch(r)?n=r:n="info"}catch{n="info"}})().then(),new Proxy(uh,{get(r,s){if(!(typeof s!="string"||h8.has(s))&&ch(s))return new Proxy(uh,{apply(o,a,i){i&&(lh[s]<lh[n]||t(s,...i))}})}})}function Ps(e,t){return new Promise((n,r)=>{if(t?.aborted)return r(js());let s=setTimeout(()=>{a(),n()},e),o=()=>{clearTimeout(s),a(),r(js())},a=()=>{t?.removeEventListener("abort",o)};t?.addEventListener("abort",o)})}function ia(e,t,n){let r=Math.random()*(t-e)+e;return Ps(r,n)}function zb(e){try{let{origin:t,pathname:n,searchParams:r}=new URL(e);return{baseUrl:t+n,searchParams:r}}catch{throw new Error("Invalid URL")}}function Bu(e,t=!1){return Object.keys(e).sort().filter(n=>t||e[n]!=null).map(n=>{let r=e[n]??"";return`${encodeURIComponent(n)}=${encodeURIComponent(String(r))}`}).join("&")}function Jb(e,t){let n={};return e.size>0&&e.forEach((r,s)=>{n[s]=r}),t&&(n={...n,...t}),n}function Qb(e,t){return e!==null&&typeof e=="object"&&"$typeName"in e&&typeof e.$typeName=="string"?t===void 0?!0:t.typeName===e.$typeName:!1}var D;(function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"})(D||(D={}));function g8(){let e=0,t=0;for(let r=0;r<28;r+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<r,(s&128)==0)return this.assertBounds(),[e,t]}let n=this.buf[this.pos++];if(e|=(n&15)<<28,t=(n&112)>>4,(n&128)==0)return this.assertBounds(),[e,t];for(let r=3;r<=31;r+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<r,(s&128)==0)return this.assertBounds(),[e,t]}throw new Error("invalid varint")}const Ka=4294967296;function fh(e){const t=e[0]==="-";t&&(e=e.slice(1));const n=1e6;let r=0,s=0;function o(a,i){const l=Number(e.slice(a,i));s*=n,r=r*n+l,r>=Ka&&(s=s+(r/Ka|0),r=r%Ka)}return o(-24,-18),o(-18,-12),o(-12,-6),o(-6),t?e1(r,s):wf(r,s)}function b8(e,t){let n=wf(e,t);const r=n.hi&2147483648;r&&(n=e1(n.lo,n.hi));const s=qb(n.lo,n.hi);return r?"-"+s:s}function qb(e,t){if({lo:e,hi:t}=v8(e,t),t<=2097151)return String(Ka*t+e);const n=e&16777215,r=(e>>>24|t<<8)&16777215,s=t>>16&65535;let o=n+r*6777216+s*6710656,a=r+s*8147497,i=s*2;const l=1e7;return o>=l&&(a+=Math.floor(o/l),o%=l),a>=l&&(i+=Math.floor(a/l),a%=l),i.toString()+dh(a)+dh(o)}function v8(e,t){return{lo:e>>>0,hi:t>>>0}}function wf(e,t){return{lo:e|0,hi:t|0}}function e1(e,t){return t=~t,e?e=~e+1:t+=1,wf(e,t)}const dh=e=>{const t=String(e);return"0000000".slice(t.length)+t};function y8(e,t){if(e>=0){for(;e>127;)t.push(e&127|128),e=e>>>7;t.push(e)}else{for(let n=0;n<9;n++)t.push(e&127|128),e=e>>7;t.push(1)}}function w8(){let e=this.buf[this.pos++],t=e&127;if((e&128)==0)return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<7,(e&128)==0)return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<14,(e&128)==0)return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<21,(e&128)==0)return this.assertBounds(),t;e=this.buf[this.pos++],t|=(e&15)<<28;for(let n=5;(e&128)!==0&&n<10;n++)e=this.buf[this.pos++];if((e&128)!=0)throw new Error("invalid varint");return this.assertBounds(),t>>>0}var ph={};const _t=_8();function _8(){const e=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof e.getBigInt64=="function"&&typeof e.getBigUint64=="function"&&typeof e.setBigInt64=="function"&&typeof e.setBigUint64=="function"&&(!!globalThis.Deno||!!globalThis.Bun||typeof process!="object"||typeof ph!="object"||ph.BUF_BIGINT_DISABLE!=="1")){const n=BigInt("-9223372036854775808"),r=BigInt("9223372036854775807"),s=BigInt("0"),o=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(a){const i=typeof a=="bigint"?a:BigInt(a);if(i>r||i<n)throw new Error(`invalid int64: ${a}`);return i},uParse(a){const i=typeof a=="bigint"?a:BigInt(a);if(i>o||i<s)throw new Error(`invalid uint64: ${a}`);return i},enc(a){return e.setBigInt64(0,this.parse(a),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},uEnc(a){return e.setBigInt64(0,this.uParse(a),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},dec(a,i){return e.setInt32(0,a,!0),e.setInt32(4,i,!0),e.getBigInt64(0,!0)},uDec(a,i){return e.setInt32(0,a,!0),e.setInt32(4,i,!0),e.getBigUint64(0,!0)}}}return{zero:"0",supported:!1,parse(n){return typeof n!="string"&&(n=n.toString()),hh(n),n},uParse(n){return typeof n!="string"&&(n=n.toString()),mh(n),n},enc(n){return typeof n!="string"&&(n=n.toString()),hh(n),fh(n)},uEnc(n){return typeof n!="string"&&(n=n.toString()),mh(n),fh(n)},dec(n,r){return b8(n,r)},uDec(n,r){return qb(n,r)}}}function hh(e){if(!/^-?[0-9]+$/.test(e))throw new Error("invalid int64: "+e)}function mh(e){if(!/^[0-9]+$/.test(e))throw new Error("invalid uint64: "+e)}function la(e,t){switch(e){case D.STRING:return"";case D.BOOL:return!1;case D.DOUBLE:case D.FLOAT:return 0;case D.INT64:case D.UINT64:case D.SFIXED64:case D.FIXED64:case D.SINT64:return t?"0":_t.zero;case D.BYTES:return new Uint8Array(0);default:return 0}}function E8(e,t){switch(e){case D.BOOL:return t===!1;case D.STRING:return t==="";case D.BYTES:return t instanceof Uint8Array&&!t.byteLength;case D.DOUBLE:case D.FLOAT:return Object.is(t,0);default:return t==0}}const t1=2,fr=Symbol.for("reflect unsafe local");function A8(e,t){const n=e[t.localName].case;return n===void 0?n:t.fields.find(r=>r.localName===n)}function S8(e,t){const n=t.localName;if(t.oneof)return e[t.oneof.localName].case===n;if(t.presence!=t1)return e[n]!==void 0&&Object.prototype.hasOwnProperty.call(e,n);switch(t.fieldKind){case"list":return e[n].length>0;case"map":return Object.keys(e[n]).length>0;case"scalar":return!E8(t.scalar,e[n]);case"enum":return e[n]!==t.enum.values[0].number}throw new Error("message field with implicit presence")}function ua(e,t){return Object.prototype.hasOwnProperty.call(e,t)&&e[t]!==void 0}function x8(e,t){if(t.oneof){const n=e[t.oneof.localName];return n.case===t.localName?n.value:void 0}return e[t.localName]}function N8(e,t,n){t.oneof?e[t.oneof.localName]={case:t.localName,value:n}:e[t.localName]=n}function I8(e,t){const n=t.localName;if(t.oneof){const r=t.oneof.localName;e[r].case===n&&(e[r]={case:void 0})}else if(t.presence!=t1)delete e[n];else switch(t.fieldKind){case"map":e[n]={};break;case"list":e[n]=[];break;case"enum":e[n]=t.enum.values[0].number;break;case"scalar":e[n]=la(t.scalar,t.longAsString);break}}function Zs(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function _f(e,t){var n,r,s,o;if(Zs(e)&&fr in e&&"add"in e&&"field"in e&&typeof e.field=="function"){if(t!==void 0){const a=t,i=e.field();return a.listKind==i.listKind&&a.scalar===i.scalar&&((n=a.message)===null||n===void 0?void 0:n.typeName)===((r=i.message)===null||r===void 0?void 0:r.typeName)&&((s=a.enum)===null||s===void 0?void 0:s.typeName)===((o=i.enum)===null||o===void 0?void 0:o.typeName)}return!0}return!1}function Ef(e,t){var n,r,s,o;if(Zs(e)&&fr in e&&"has"in e&&"field"in e&&typeof e.field=="function"){if(t!==void 0){const a=t,i=e.field();return a.mapKey===i.mapKey&&a.mapKind==i.mapKind&&a.scalar===i.scalar&&((n=a.message)===null||n===void 0?void 0:n.typeName)===((r=i.message)===null||r===void 0?void 0:r.typeName)&&((s=a.enum)===null||s===void 0?void 0:s.typeName)===((o=i.enum)===null||o===void 0?void 0:o.typeName)}return!0}return!1}function Af(e,t){return Zs(e)&&fr in e&&"desc"in e&&Zs(e.desc)&&e.desc.kind==="message"&&(t===void 0||e.desc.typeName==t.typeName)}function C8(e){return n1(e.$typeName)}function T8(e){const t=e.fields[0];return n1(e.typeName)&&t!==void 0&&t.fieldKind=="scalar"&&t.name=="value"&&t.number==1}function n1(e){return e.startsWith("google.protobuf.")&&["DoubleValue","FloatValue","Int64Value","UInt64Value","Int32Value","UInt32Value","BoolValue","StringValue","BytesValue"].includes(e.substring(16))}const R8=999,P8=998,Ha=2;function B8(e,t){return Qb(t,e)?t:k8(e)}const O8=Symbol(),gh=new WeakMap;function k8(e){let t;if(F8(e)){const n=gh.get(e);let r,s;if(n)({prototype:r,members:s}=n);else{r={},s=new Set;for(const o of e.members)o.kind!="oneof"&&(o.fieldKind!="scalar"&&o.fieldKind!="enum"||o.presence!=Ha&&(s.add(o),r[o.localName]=Vl(o)));gh.set(e,{prototype:r,members:s})}t=Object.create(r),t.$typeName=e.typeName;for(const o of e.members)s.has(o)||o.kind=="field"&&(o.fieldKind=="message"||(o.fieldKind=="scalar"||o.fieldKind=="enum")&&o.presence!=Ha)||(t[o.localName]=Vl(o))}else{t={$typeName:e.typeName};for(const n of e.members)(n.kind=="oneof"||n.presence==Ha)&&(t[n.localName]=Vl(n))}return t}function F8(e){switch(e.file.edition){case R8:return!1;case P8:return!0;default:return e.fields.some(t=>t.presence!=Ha&&t.fieldKind!="message"&&!t.oneof)}}function Vl(e){if(e.kind=="oneof")return{case:void 0};if(e.fieldKind=="list")return[];if(e.fieldKind=="map")return{};if(e.fieldKind=="message")return O8;const t=e.getDefaultValue();return t!==void 0?e.fieldKind=="scalar"&&e.longAsString?t.toString():t:e.fieldKind=="scalar"?la(e.scalar,e.longAsString):e.enum.values[0].number}class Ks extends Error{constructor(t,n,r="FieldValueInvalidError"){super(n),this.name=r,this.field=()=>t}}const Wl=Symbol.for("@bufbuild/protobuf/text-encoding");function r1(){if(globalThis[Wl]==null){const e=new globalThis.TextEncoder,t=new globalThis.TextDecoder;let n;globalThis[Wl]={encodeUtf8(r){return e.encode(r)},decodeUtf8(r,s){return s?(n===void 0&&(n=new globalThis.TextDecoder("utf-8",{fatal:!0})),n.decode(r)):t.decode(r)},checkUtf8(r){try{return encodeURIComponent(r),!0}catch{return!1}}}}return globalThis[Wl]}var gn;(function(e){e[e.Varint=0]="Varint",e[e.Bit64=1]="Bit64",e[e.LengthDelimited=2]="LengthDelimited",e[e.StartGroup=3]="StartGroup",e[e.EndGroup=4]="EndGroup",e[e.Bit32=5]="Bit32"})(gn||(gn={}));const L8=34028234663852886e22,M8=-34028234663852886e22,$8=4294967295,V8=2147483647,W8=-2147483648;class D8{constructor(t,n=r1().decodeUtf8){this.decodeUtf8=n,this.varint64=g8,this.uint32=w8,this.buf=t,this.len=t.length,this.pos=0,this.view=new DataView(t.buffer,t.byteOffset,t.byteLength)}tag(){const t=this.pos,n=this.uint32(),r=this.pos-t;if(r>5||r==5&&this.buf[this.pos-1]>15)throw new Error("illegal tag: varint overflows uint32");const s=n>>>3,o=n&7;if(s<=0||o>5)throw new Error("illegal tag: field no "+s+" wire type "+o);return[s,o]}skip(t,n,r=100){let s=this.pos;switch(t){case gn.Varint:for(;this.buf[this.pos++]&128;);break;case gn.Bit64:this.pos+=4;case gn.Bit32:this.pos+=4;break;case gn.LengthDelimited:let o=this.uint32();this.pos+=o;break;case gn.StartGroup:if(r<=0)throw new Error("maximum recursion depth reached");for(;;){const[a,i]=this.tag();if(i===gn.EndGroup){if(n!==void 0&&a!==n)throw new Error("invalid end group tag");break}this.skip(i,a,r-1)}break;default:throw new Error("cant skip wire type "+t)}return this.assertBounds(),this.buf.subarray(s,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let t=this.uint32();return t>>>1^-(t&1)}int64(){return _t.dec(...this.varint64())}uint64(){return _t.uDec(...this.varint64())}sint64(){let[t,n]=this.varint64(),r=-(t&1);return t=(t>>>1|(n&1)<<31)^r,n=n>>>1^r,_t.dec(t,n)}bool(){let[t,n]=this.varint64();return t!==0||n!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return _t.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return _t.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let t=this.uint32(),n=this.pos;return this.pos+=t,this.assertBounds(),this.buf.subarray(n,n+t)}string(t){return this.decodeUtf8(this.bytes(),t)}}function G8(e,t){const n=e.fieldKind=="list"?_f(t,e):e.fieldKind=="map"?Ef(t,e):Sf(e,t);if(n===!0)return;let r;switch(e.fieldKind){case"list":r=`expected ${o1(e)}, got ${Ni(t)}`;break;case"map":r=`expected ${a1(e)}, got ${Ni(t)}`;break;default:r=xi(e,t,n)}return new Ks(e,r)}function bh(e,t,n){const r=Sf(e,n);if(r!==!0)return new Ks(e,`list item #${t+1}: ${xi(e,n,r)}`)}function Y8(e,t,n){const r=Ou(t,e.mapKey);if(r!==!0)return new Ks(e,`invalid map key: ${xi({scalar:e.mapKey},t,r)}`);const s=Sf(e,n);if(s!==!0)return new Ks(e,`map entry ${Ni(t)}: ${xi(e,n,s)}`)}function Sf(e,t){return e.scalar!==void 0?Ou(t,e.scalar):e.enum!==void 0?e.enum.open?Ou(t,D.INT32):e.enum.values.some(n=>n.number===t):Af(t,e.message)}function Ou(e,t){switch(t){case D.DOUBLE:return typeof e=="number";case D.FLOAT:return typeof e!="number"?!1:Number.isNaN(e)||!Number.isFinite(e)?!0:e>L8||e<M8?`${e.toFixed()} out of range`:!0;case D.INT32:case D.SFIXED32:case D.SINT32:return typeof e!="number"||!Number.isInteger(e)?!1:e>V8||e<W8?`${e.toFixed()} out of range`:!0;case D.FIXED32:case D.UINT32:return typeof e!="number"||!Number.isInteger(e)?!1:e>$8||e<0?`${e.toFixed()} out of range`:!0;case D.BOOL:return typeof e=="boolean";case D.STRING:return typeof e!="string"?!1:r1().checkUtf8(e)||"invalid UTF8";case D.BYTES:return e instanceof Uint8Array;case D.INT64:case D.SFIXED64:case D.SINT64:if(typeof e=="bigint"||typeof e=="number"||typeof e=="string"&&e.length>0)try{return _t.parse(e),!0}catch{return`${e} out of range`}return!1;case D.FIXED64:case D.UINT64:if(typeof e=="bigint"||typeof e=="number"||typeof e=="string"&&e.length>0)try{return _t.uParse(e),!0}catch{return`${e} out of range`}return!1}}function xi(e,t,n){return n=typeof n=="string"?`: ${n}`:`, got ${Ni(t)}`,e.scalar!==void 0?`expected ${U8(e.scalar)}`+n:e.enum!==void 0?`expected ${e.enum.toString()}`+n:`expected ${s1(e.message)}`+n}function Ni(e){switch(typeof e){case"object":return e===null?"null":e instanceof Uint8Array?`Uint8Array(${e.length})`:Array.isArray(e)?`Array(${e.length})`:_f(e)?o1(e.field()):Ef(e)?a1(e.field()):Af(e)?s1(e.desc):Qb(e)?`message ${e.$typeName}`:"object";case"string":return e.length>30?"string":`"${e.split('"').join('\\"')}"`;case"boolean":return String(e);case"number":return String(e);case"bigint":return String(e)+"n";default:return typeof e}}function s1(e){return`ReflectMessage (${e.typeName})`}function o1(e){switch(e.listKind){case"message":return`ReflectList (${e.message.toString()})`;case"enum":return`ReflectList (${e.enum.toString()})`;case"scalar":return`ReflectList (${D[e.scalar]})`}}function a1(e){switch(e.mapKind){case"message":return`ReflectMap (${D[e.mapKey]}, ${e.message.toString()})`;case"enum":return`ReflectMap (${D[e.mapKey]}, ${e.enum.toString()})`;case"scalar":return`ReflectMap (${D[e.mapKey]}, ${D[e.scalar]})`}}function U8(e){switch(e){case D.STRING:return"string";case D.BOOL:return"boolean";case D.INT64:case D.SINT64:case D.SFIXED64:return"bigint (int64)";case D.UINT64:case D.FIXED64:return"bigint (uint64)";case D.BYTES:return"Uint8Array";case D.DOUBLE:return"number (float64)";case D.FLOAT:return"number (float32)";case D.FIXED32:case D.UINT32:return"number (uint32)";case D.INT32:case D.SFIXED32:case D.SINT32:return"number (int32)"}}function xf(e,t,n=!0){return new i1(e,t,n)}const vh=new WeakMap;class i1{get sortedFields(){const t=vh.get(this.desc);if(t)return t;const n=this.desc.fields.concat().sort((r,s)=>r.number-s.number);return vh.set(this.desc,n),n}constructor(t,n,r=!0){this.lists=new Map,this.maps=new Map,this.check=r,this.desc=t,this.message=this[fr]=n??B8(t),this.fields=t.fields,this.oneofs=t.oneofs,this.members=t.members}findNumber(t){return this._fieldsByNumber||(this._fieldsByNumber=new Map(this.desc.fields.map(n=>[n.number,n]))),this._fieldsByNumber.get(t)}oneofCase(t){return go(this.message,t),A8(this.message,t)}isSet(t){return go(this.message,t),S8(this.message,t)}clear(t){go(this.message,t),I8(this.message,t)}get(t){go(this.message,t);const n=x8(this.message,t);switch(t.fieldKind){case"list":let r=this.lists.get(t);return(!r||r[fr]!==n)&&this.lists.set(t,r=new j8(t,n,this.check)),r;case"map":let s=this.maps.get(t);return(!s||s[fr]!==n)&&this.maps.set(t,s=new Z8(t,n,this.check)),s;case"message":return If(t,n,this.check);case"scalar":return n===void 0?la(t.scalar,!1):Cf(t,n);case"enum":return n??t.enum.values[0].number}}set(t,n){if(go(this.message,t),this.check){const s=G8(t,n);if(s)throw s}let r;t.fieldKind=="message"?r=Nf(t,n):Ef(n)||_f(n)?r=n[fr]:r=Tf(t,n),N8(this.message,t,r)}getUnknown(){return this.message.$unknown}setUnknown(t){this.message.$unknown=t}}function go(e,t){if(t.parent.typeName!==e.$typeName)throw new Ks(t,`cannot use ${t.toString()} with message ${e.$typeName}`,"ForeignFieldError")}class j8{field(){return this._field}get size(){return this._arr.length}constructor(t,n,r){this._field=t,this._arr=this[fr]=n,this.check=r}get(t){const n=this._arr[t];return n===void 0?void 0:Dl(this._field,n,this.check)}set(t,n){if(t<0||t>=this._arr.length)throw new Ks(this._field,`list item #${t+1}: out of range`);if(this.check){const r=bh(this._field,t,n);if(r)throw r}this._arr[t]=yh(this._field,n)}add(t){if(this.check){const n=bh(this._field,this._arr.length,t);if(n)throw n}this._arr.push(yh(this._field,t))}clear(){this._arr.splice(0,this._arr.length)}[Symbol.iterator](){return this.values()}keys(){return this._arr.keys()}*values(){for(const t of this._arr)yield Dl(this._field,t,this.check)}*entries(){for(let t=0;t<this._arr.length;t++)yield[t,Dl(this._field,this._arr[t],this.check)]}}class Z8{constructor(t,n,r=!0){this.obj=this[fr]=n??{},this.check=r,this._field=t}field(){return this._field}set(t,n){if(this.check){const r=Y8(this._field,t,n);if(r)throw r}return this.obj[La(t)]=K8(this._field,n),this}delete(t){const n=La(t),r=Object.prototype.hasOwnProperty.call(this.obj,n);return r&&delete this.obj[n],r}clear(){for(const t of Object.keys(this.obj))delete this.obj[t]}get(t){let n=this.obj[La(t)];return n!==void 0&&(n=Gl(this._field,n,this.check)),n}has(t){return Object.prototype.hasOwnProperty.call(this.obj,La(t))}*keys(){for(const t of Object.keys(this.obj))yield wh(t,this._field.mapKey)}*entries(){for(const t of Object.entries(this.obj))yield[wh(t[0],this._field.mapKey),Gl(this._field,t[1],this.check)]}[Symbol.iterator](){return this.entries()}get size(){return Object.keys(this.obj).length}*values(){for(const t of Object.values(this.obj))yield Gl(this._field,t,this.check)}forEach(t,n){for(const r of this.entries())t.call(n,r[1],r[0],this)}}function Nf(e,t){return Af(t)?C8(t.message)&&!e.oneof&&e.fieldKind=="message"?t.message.value:t.desc.typeName=="google.protobuf.Struct"&&e.parent.typeName!="google.protobuf.Value"?u1(t.message):t.message:t}function If(e,t,n){return t!==void 0&&(T8(e.message)&&!e.oneof&&e.fieldKind=="message"?t={$typeName:e.message.typeName,value:Cf(e.message.fields[0],t)}:e.message.typeName=="google.protobuf.Struct"&&e.parent.typeName!="google.protobuf.Value"&&Zs(t)&&(t=l1(t))),new i1(e.message,t,n)}function yh(e,t){return e.listKind=="message"?Nf(e,t):Tf(e,t)}function Dl(e,t,n){return e.listKind=="message"?If(e,t,n):Cf(e,t)}function K8(e,t){return e.mapKind=="message"?Nf(e,t):Tf(e,t)}function Gl(e,t,n){return e.mapKind=="message"?If(e,t,n):t}function La(e){return typeof e=="string"||typeof e=="number"?e:String(e)}function wh(e,t){switch(t){case D.STRING:return e;case D.INT32:case D.FIXED32:case D.UINT32:case D.SFIXED32:case D.SINT32:{const n=Number.parseInt(e);if(Number.isFinite(n))return n;break}case D.BOOL:switch(e){case"true":return!0;case"false":return!1}break;case D.UINT64:case D.FIXED64:try{return _t.uParse(e)}catch{}break;default:try{return _t.parse(e)}catch{}break}return e}function Cf(e,t){switch(e.scalar){case D.INT64:case D.SFIXED64:case D.SINT64:"longAsString"in e&&e.longAsString&&typeof t=="string"&&(t=_t.parse(t));break;case D.FIXED64:case D.UINT64:"longAsString"in e&&e.longAsString&&typeof t=="string"&&(t=_t.uParse(t));break}return t}function Tf(e,t){switch(e.scalar){case D.INT64:case D.SFIXED64:case D.SINT64:"longAsString"in e&&e.longAsString?t=String(t):(typeof t=="string"||typeof t=="number")&&(t=_t.parse(t));break;case D.FIXED64:case D.UINT64:"longAsString"in e&&e.longAsString?t=String(t):(typeof t=="string"||typeof t=="number")&&(t=_t.uParse(t));break}return t}function l1(e){const t={$typeName:"google.protobuf.Struct",fields:{}};if(Zs(e))for(const[n,r]of Object.entries(e))t.fields[n]=f1(r);return t}function u1(e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=c1(r);return t}function c1(e){switch(e.kind.case){case"structValue":return u1(e.kind.value);case"listValue":return e.kind.value.values.map(c1);case"nullValue":case void 0:return null;default:return e.kind.value}}function f1(e){const t={$typeName:"google.protobuf.Value",kind:{case:void 0}};switch(typeof e){case"number":t.kind={case:"numberValue",value:e};break;case"string":t.kind={case:"stringValue",value:e};break;case"boolean":t.kind={case:"boolValue",value:e};break;case"object":if(e===null)t.kind={case:"nullValue",value:0};else if(Array.isArray(e)){const n={$typeName:"google.protobuf.ListValue",values:[]};if(Array.isArray(e))for(const r of e)n.values.push(f1(r));t.kind={case:"listValue",value:n}}else t.kind={case:"structValue",value:l1(e)};break}return t}function H8(e){const t=z8();let n=e.length*3/4;e[e.length-2]=="="?n-=2:e[e.length-1]=="="&&(n-=1);let r=new Uint8Array(n),s=0,o=0,a,i=0;for(let l=0;l<e.length;l++){if(a=t[e.charCodeAt(l)],a===void 0)switch(e[l]){case"=":o=0;case`
|
|
10
|
+
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string")}switch(o){case 0:i=a,o=1;break;case 1:r[s++]=i<<2|(a&48)>>4,i=a,o=2;break;case 2:r[s++]=(i&15)<<4|(a&60)>>2,i=a,o=3;break;case 3:r[s++]=(i&3)<<6|a,o=0;break}}if(o==1)throw Error("invalid base64 string");return r.subarray(0,s)}let Ma,Ss;function X8(e){return Ma||(Ma="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),Ma.slice(0,-2).concat("-","_")),Ma}function z8(){if(!Ss){Ss=[];const e=X8();for(let t=0;t<e.length;t++)Ss[e[t].charCodeAt(0)]=t;Ss[45]=e.indexOf("+"),Ss[95]=e.indexOf("/")}return Ss}function Ii(e){let t=!1;const n=[];for(let r=0;r<e.length;r++){let s=e.charAt(r);switch(s){case"_":t=!0;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":n.push(s),t=!1;break;default:t&&(t=!1,s=s.toUpperCase()),n.push(s);break}}return n.join("")}const J8=new Set(["constructor","toString","toJSON","valueOf"]);function ca(e){return J8.has(e)?e+"$":e}function Rf(e){for(const t of e.field)ua(t,"jsonName")||(t.jsonName=Ii(t.name));e.nestedType.forEach(Rf)}function Q8(e,t){const n=e.values.find(r=>r.name===t);if(!n)throw new Error(`cannot parse ${e} default value: ${t}`);return n.number}function q8(e,t){switch(e){case D.STRING:return t;case D.BYTES:{const n=eP(t);if(n===!1)throw new Error(`cannot parse ${D[e]} default value: ${t}`);return n}case D.INT64:case D.SFIXED64:case D.SINT64:return _t.parse(t);case D.UINT64:case D.FIXED64:return _t.uParse(t);case D.DOUBLE:case D.FLOAT:switch(t){case"inf":return Number.POSITIVE_INFINITY;case"-inf":return Number.NEGATIVE_INFINITY;case"nan":return Number.NaN;default:return parseFloat(t)}case D.BOOL:return t==="true";case D.INT32:case D.UINT32:case D.SINT32:case D.FIXED32:case D.SFIXED32:return parseInt(t,10)}}function eP(e){const t=[],n={tail:e,c:"",next(){return this.tail.length==0?!1:(this.c=this.tail[0],this.tail=this.tail.substring(1),!0)},take(r){if(this.tail.length>=r){const s=this.tail.substring(0,r);return this.tail=this.tail.substring(r),s}return!1}};for(;n.next();)switch(n.c){case"\\":if(n.next())switch(n.c){case"\\":t.push(n.c.charCodeAt(0));break;case"b":t.push(8);break;case"f":t.push(12);break;case"n":t.push(10);break;case"r":t.push(13);break;case"t":t.push(9);break;case"v":t.push(11);break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":{const r=n.c,s=n.take(2);if(s===!1)return!1;const o=parseInt(r+s,8);if(Number.isNaN(o))return!1;t.push(o);break}case"x":{const r=n.c,s=n.take(2);if(s===!1)return!1;const o=parseInt(r+s,16);if(Number.isNaN(o))return!1;t.push(o);break}case"u":{const r=n.c,s=n.take(4);if(s===!1)return!1;const o=parseInt(r+s,16);if(Number.isNaN(o))return!1;const a=new Uint8Array(4);new DataView(a.buffer).setInt32(0,o,!0),t.push(a[0],a[1],a[2],a[3]);break}case"U":{const r=n.c,s=n.take(8);if(s===!1)return!1;const o=_t.uEnc(r+s),a=new Uint8Array(8),i=new DataView(a.buffer);i.setInt32(0,o.lo,!0),i.setInt32(4,o.hi,!0),t.push(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7]);break}}break;default:t.push(n.c.charCodeAt(0))}return new Uint8Array(t)}function*ku(e){switch(e.kind){case"file":for(const t of e.messages)yield t,yield*ku(t);yield*e.enums,yield*e.services,yield*e.extensions;break;case"message":for(const t of e.nestedMessages)yield t,yield*ku(t);yield*e.nestedEnums,yield*e.nestedExtensions;break}}function d1(...e){const t=tP();if(!e.length)return t;if("$typeName"in e[0]&&e[0].$typeName=="google.protobuf.FileDescriptorSet"){for(const n of e[0].file)Sh(n,t);return t}if("$typeName"in e[0]){let o=function(a){const i=[];for(const l of a.dependency){if(t.getFile(l)!=null||s.has(l))continue;const u=r(l);if(!u)throw new Error(`Unable to resolve ${l}, imported by ${a.name}`);"kind"in u?t.addFile(u,!1,!0):(s.add(u.name),i.push(u))}return i.concat(...i.map(o))};const n=e[0],r=e[1],s=new Set;for(const a of[n,...o(n)].reverse())Sh(a,t)}else for(const n of e)for(const r of n.files)t.addFile(r);return t}function tP(){const e=new Map,t=new Map,n=new Map;return{kind:"registry",types:e,extendees:t,[Symbol.iterator](){return e.values()},get files(){return n.values()},addFile(r,s,o){if(n.set(r.proto.name,r),!s)for(const a of ku(r))this.add(a);if(o)for(const a of r.dependencies)this.addFile(a,s,o)},add(r){if(r.kind=="extension"){let s=t.get(r.extendee.typeName);s||t.set(r.extendee.typeName,s=new Map),s.set(r.number,r)}e.set(r.typeName,r)},get(r){return e.get(r)},getFile(r){return n.get(r)},getMessage(r){const s=e.get(r);return s?.kind=="message"?s:void 0},getEnum(r){const s=e.get(r);return s?.kind=="enum"?s:void 0},getExtension(r){const s=e.get(r);return s?.kind=="extension"?s:void 0},getExtensionFor(r,s){var o;return(o=t.get(r.typeName))===null||o===void 0?void 0:o.get(s)},getService(r){const s=e.get(r);return s?.kind=="service"?s:void 0}}}const nP=998,rP=999,sP=9999,oP=9,fa=10,Uo=11,aP=12,_h=14,Pf=3,iP=2,Eh=1,lP=0,Yl=1,Ah=2,uP=3,cP=1,fP=2,dP=1,pP=2,hP=1001,p1={998:{fieldPresence:1,enumType:2,repeatedFieldEncoding:2,utf8Validation:3,messageEncoding:1,jsonFormat:2,enforceNamingStyle:2,defaultSymbolVisibility:1},999:{fieldPresence:2,enumType:1,repeatedFieldEncoding:1,utf8Validation:2,messageEncoding:1,jsonFormat:1,enforceNamingStyle:2,defaultSymbolVisibility:1},1e3:{fieldPresence:1,enumType:1,repeatedFieldEncoding:1,utf8Validation:2,messageEncoding:1,jsonFormat:1,enforceNamingStyle:2,defaultSymbolVisibility:1},1001:{fieldPresence:1,enumType:1,repeatedFieldEncoding:1,utf8Validation:2,messageEncoding:1,jsonFormat:1,enforceNamingStyle:1,defaultSymbolVisibility:2}};function Sh(e,t){var n,r;const s={kind:"file",proto:e,deprecated:(r=(n=e.options)===null||n===void 0?void 0:n.deprecated)!==null&&r!==void 0?r:!1,edition:vP(e),name:e.name.replace(/\.proto$/,""),dependencies:yP(e,t),enums:[],messages:[],extensions:[],services:[],toString(){return`file ${e.name}`}},o=new Map,a={get(i){return o.get(i)},add(i){var l;bn(((l=i.proto.options)===null||l===void 0?void 0:l.mapEntry)===!0),o.set(i.typeName,i)}};for(const i of e.enumType)h1(i,s,void 0,t);for(const i of e.messageType)m1(i,s,void 0,t,a);for(const i of e.service)mP(i,s,t);Fu(s,t);for(const i of o.values())Lu(i,t,a);for(const i of s.messages)Lu(i,t,a),Fu(i,t);t.addFile(s,!0)}function Fu(e,t){switch(e.kind){case"file":for(const n of e.proto.extension){const r=Mu(n,e,t);e.extensions.push(r),t.add(r)}break;case"message":for(const n of e.proto.extension){const r=Mu(n,e,t);e.nestedExtensions.push(r),t.add(r)}for(const n of e.nestedMessages)Fu(n,t);break}}function Lu(e,t,n){const r=e.proto.oneofDecl.map(o=>bP(o,e)),s=new Set;for(const o of e.proto.field){const a=EP(o,r),i=Mu(o,e,t,a,n);e.fields.push(i),e.field[i.localName]=i,a===void 0?e.members.push(i):(a.fields.push(i),s.has(a)||(s.add(a),e.members.push(a)))}for(const o of r.filter(a=>s.has(a)))e.oneofs.push(o);for(const o of e.nestedMessages)Lu(o,t,n)}function h1(e,t,n,r){var s,o,a,i,l;const u=wP(e.name,e.value),c={kind:"enum",proto:e,deprecated:(o=(s=e.options)===null||s===void 0?void 0:s.deprecated)!==null&&o!==void 0?o:!1,file:t,parent:n,open:!0,name:e.name,typeName:ol(e,n,t),value:{},values:[],sharedPrefix:u,toString(){return`enum ${this.typeName}`}};c.open=NP(c),r.add(c);for(const f of e.value){const d=f.name;c.values.push(c.value[f.number]={kind:"enum_value",proto:f,deprecated:(i=(a=f.options)===null||a===void 0?void 0:a.deprecated)!==null&&i!==void 0?i:!1,parent:c,name:d,localName:ca(u==null?d:d.substring(u.length)),number:f.number,toString(){return`enum value ${c.typeName}.${d}`}})}((l=n?.nestedEnums)!==null&&l!==void 0?l:t.enums).push(c)}function m1(e,t,n,r,s){var o,a,i,l;const u={kind:"message",proto:e,deprecated:(a=(o=e.options)===null||o===void 0?void 0:o.deprecated)!==null&&a!==void 0?a:!1,file:t,parent:n,name:e.name,typeName:ol(e,n,t),fields:[],field:{},oneofs:[],members:[],nestedEnums:[],nestedMessages:[],nestedExtensions:[],toString(){return`message ${this.typeName}`}};((i=e.options)===null||i===void 0?void 0:i.mapEntry)===!0?s.add(u):(((l=n?.nestedMessages)!==null&&l!==void 0?l:t.messages).push(u),r.add(u));for(const c of e.enumType)h1(c,t,u,r);for(const c of e.nestedType)m1(c,t,u,r,s)}function mP(e,t,n){var r,s;const o={kind:"service",proto:e,deprecated:(s=(r=e.options)===null||r===void 0?void 0:r.deprecated)!==null&&s!==void 0?s:!1,file:t,name:e.name,typeName:ol(e,void 0,t),methods:[],method:{},toString(){return`service ${this.typeName}`}};t.services.push(o),n.add(o);for(const a of e.method){const i=gP(a,o,n);o.methods.push(i),o.method[i.localName]=i}}function gP(e,t,n){var r,s,o,a;let i;e.clientStreaming&&e.serverStreaming?i="bidi_streaming":e.clientStreaming?i="client_streaming":e.serverStreaming?i="server_streaming":i="unary";const l=n.getMessage(or(e.inputType)),u=n.getMessage(or(e.outputType));bn(l,`invalid MethodDescriptorProto: input_type ${e.inputType} not found`),bn(u,`invalid MethodDescriptorProto: output_type ${e.inputType} not found`);const c=e.name;return{kind:"rpc",proto:e,deprecated:(s=(r=e.options)===null||r===void 0?void 0:r.deprecated)!==null&&s!==void 0?s:!1,parent:t,name:c,localName:ca(c.length?ca(c[0].toLowerCase()+c.substring(1)):c),methodKind:i,input:l,output:u,idempotency:(a=(o=e.options)===null||o===void 0?void 0:o.idempotencyLevel)!==null&&a!==void 0?a:lP,toString(){return`rpc ${t.typeName}.${c}`}}}function bP(e,t){return{kind:"oneof",proto:e,deprecated:!1,parent:t,fields:[],name:e.name,localName:ca(Ii(e.name)),toString(){return`oneof ${t.typeName}.${this.name}`}}}function Mu(e,t,n,r,s){var o,a,i;const l=s===void 0,u={kind:"field",proto:e,deprecated:(a=(o=e.options)===null||o===void 0?void 0:o.deprecated)!==null&&a!==void 0?a:!1,name:e.name,number:e.number,scalar:void 0,message:void 0,enum:void 0,presence:AP(e,r,l,t),utf8Validation:IP(e,t),listKind:void 0,mapKind:void 0,mapKey:void 0,delimitedEncoding:void 0,packed:void 0,longAsString:!1,getDefaultValue:void 0};if(l){const p=t.kind=="file"?t:t.file,h=t.kind=="file"?void 0:t,m=ol(e,h,p);u.kind="extension",u.file=p,u.parent=h,u.oneof=void 0,u.typeName=m,u.jsonName=`[${m}]`,u.toString=()=>`extension ${m}`;const b=n.getMessage(or(e.extendee));bn(b,`invalid FieldDescriptorProto: extendee ${e.extendee} not found`),u.extendee=b}else{const p=t;bn(p.kind=="message"),u.parent=p,u.oneof=r,u.localName=r?Ii(e.name):ca(Ii(e.name)),u.jsonName=e.jsonName,u.toString=()=>`field ${p.typeName}.${e.name}`}const c=e.label,f=e.type,d=(i=e.options)===null||i===void 0?void 0:i.jstype;if(c===Pf){const p=f==Uo?s?.get(or(e.typeName)):void 0;if(p){u.fieldKind="map";const{key:h,value:m}=xP(p);return u.mapKey=h.scalar,u.mapKind=m.fieldKind,u.message=m.message,u.delimitedEncoding=!1,u.enum=m.enum,u.scalar=m.scalar,u}switch(u.fieldKind="list",f){case Uo:case fa:u.listKind="message",u.message=n.getMessage(or(e.typeName)),bn(u.message),u.delimitedEncoding=xh(e,t);break;case _h:u.listKind="enum",u.enum=n.getEnum(or(e.typeName)),bn(u.enum);break;default:u.listKind="scalar",u.scalar=f,u.longAsString=d==Eh;break}return u.packed=SP(e,t),u}switch(f){case Uo:case fa:u.fieldKind="message",u.message=n.getMessage(or(e.typeName)),bn(u.message,`invalid FieldDescriptorProto: type_name ${e.typeName} not found`),u.delimitedEncoding=xh(e,t),u.getDefaultValue=()=>{};break;case _h:{const p=n.getEnum(or(e.typeName));bn(p!==void 0,`invalid FieldDescriptorProto: type_name ${e.typeName} not found`),u.fieldKind="enum",u.enum=n.getEnum(or(e.typeName)),u.getDefaultValue=()=>ua(e,"defaultValue")?Q8(p,e.defaultValue):void 0;break}default:{u.fieldKind="scalar",u.scalar=f,u.longAsString=d==Eh,u.getDefaultValue=()=>ua(e,"defaultValue")?q8(f,e.defaultValue):void 0;break}}return u}function vP(e){switch(e.syntax){case"":case"proto2":return nP;case"proto3":return rP;case"editions":if(e.edition===sP)return hP;if(e.edition in p1)return e.edition;throw new Error(`${e.name}: unsupported edition`);default:throw new Error(`${e.name}: unsupported syntax "${e.syntax}"`)}}function yP(e,t){return e.dependency.map(n=>{const r=t.getFile(n);if(!r)throw new Error(`Cannot find ${n}, imported by ${e.name}`);return r})}function wP(e,t){const n=_P(e)+"_";for(const r of t){if(!r.name.toLowerCase().startsWith(n))return;const s=r.name.substring(n.length);if(s.length==0||/^\d/.test(s))return}return n}function _P(e){return(e.substring(0,1)+e.substring(1).replace(/[A-Z]/g,t=>"_"+t)).toLowerCase()}function ol(e,t,n){let r;return t?r=`${t.typeName}.${e.name}`:n.proto.package.length>0?r=`${n.proto.package}.${e.name}`:r=`${e.name}`,r}function or(e){return e.startsWith(".")?e.substring(1):e}function EP(e,t){if(!ua(e,"oneofIndex")||e.proto3Optional)return;const n=t[e.oneofIndex];return bn(n,`invalid FieldDescriptorProto: oneof #${e.oneofIndex} for field #${e.number} not found`),n}function AP(e,t,n,r){if(e.label==iP)return uP;if(e.label==Pf)return Ah;if(t||e.proto3Optional||n)return Yl;const s=ds("fieldPresence",{proto:e,parent:r});return s==Ah&&(e.type==Uo||e.type==fa)?Yl:s}function SP(e,t){if(e.label!=Pf)return!1;switch(e.type){case oP:case aP:case fa:case Uo:return!1}const n=e.options;return n&&ua(n,"packed")?n.packed:cP==ds("repeatedFieldEncoding",{proto:e,parent:t})}function xP(e){const t=e.fields.find(r=>r.number===1),n=e.fields.find(r=>r.number===2);return bn(t&&t.fieldKind=="scalar"&&t.scalar!=D.BYTES&&t.scalar!=D.FLOAT&&t.scalar!=D.DOUBLE&&n&&n.fieldKind!="list"&&n.fieldKind!="map"),{key:t,value:n}}function NP(e){var t;return dP==ds("enumType",{proto:e.proto,parent:(t=e.parent)!==null&&t!==void 0?t:e.file})}function xh(e,t){return e.type==fa?!0:fP==ds("messageEncoding",{proto:e,parent:t})}function IP(e,t){return pP==ds("utf8Validation",{proto:e,parent:t})}function ds(e,t){var n,r;const s=(n=t.proto.options)===null||n===void 0?void 0:n.features;if(s){const o=s[e];if(o!=0)return o}if("kind"in t){if(t.kind=="message")return ds(e,(r=t.parent)!==null&&r!==void 0?r:t.file);const o=p1[t.edition];if(!o)throw new Error(`feature default for edition ${t.edition} not found`);return o[e]}return ds(e,t.parent)}function bn(e,t){if(!e)throw new Error(t)}function CP(e){const t=TP(e);return t.messageType.forEach(Rf),d1(t,()=>{}).getFile(t.name)}function TP(e){return Object.assign(Object.create({syntax:"",edition:0}),Object.assign(Object.assign({$typeName:"google.protobuf.FileDescriptorProto",dependency:[],publicDependency:[],weakDependency:[],optionDependency:[],service:[],extension:[]},e),{messageType:e.messageType.map(g1),enumType:e.enumType.map(b1)}))}function g1(e){var t,n,r,s,o,a,i,l;return Object.assign(Object.create({visibility:0}),{$typeName:"google.protobuf.DescriptorProto",name:e.name,field:(n=(t=e.field)===null||t===void 0?void 0:t.map(RP))!==null&&n!==void 0?n:[],extension:[],nestedType:(s=(r=e.nestedType)===null||r===void 0?void 0:r.map(g1))!==null&&s!==void 0?s:[],enumType:(a=(o=e.enumType)===null||o===void 0?void 0:o.map(b1))!==null&&a!==void 0?a:[],extensionRange:(l=(i=e.extensionRange)===null||i===void 0?void 0:i.map(c=>Object.assign({$typeName:"google.protobuf.DescriptorProto.ExtensionRange"},c)))!==null&&l!==void 0?l:[],oneofDecl:[],reservedRange:[],reservedName:[]})}function RP(e){return Object.assign(Object.create({label:1,typeName:"",extendee:"",defaultValue:"",oneofIndex:0,jsonName:"",proto3Optional:!1}),Object.assign(Object.assign({$typeName:"google.protobuf.FieldDescriptorProto"},e),{options:e.options?PP(e.options):void 0}))}function PP(e){var t,n,r;return Object.assign(Object.create({ctype:0,packed:!1,jstype:0,lazy:!1,unverifiedLazy:!1,deprecated:!1,weak:!1,debugRedact:!1,retention:0}),Object.assign(Object.assign({$typeName:"google.protobuf.FieldOptions"},e),{targets:(t=e.targets)!==null&&t!==void 0?t:[],editionDefaults:(r=(n=e.editionDefaults)===null||n===void 0?void 0:n.map(o=>Object.assign({$typeName:"google.protobuf.FieldOptions.EditionDefault"},o)))!==null&&r!==void 0?r:[],uninterpretedOption:[]}))}function b1(e){return Object.assign(Object.create({visibility:0}),{$typeName:"google.protobuf.EnumDescriptorProto",name:e.name,reservedName:[],reservedRange:[],value:e.value.map(n=>Object.assign({$typeName:"google.protobuf.EnumValueDescriptorProto"},n))})}function se(e,t,...n){return n.reduce((r,s)=>r.nestedMessages[s],e.messages[t])}function qt(e,t,...n){if(n.length==0)return e.enums[t];const r=n.pop();return n.reduce((s,o)=>s.nestedMessages[o],e.messages[t]).nestedEnums[r]}const BP=CP({name:"google/protobuf/descriptor.proto",package:"google.protobuf",messageType:[{name:"FileDescriptorSet",field:[{name:"file",number:1,type:11,label:3,typeName:".google.protobuf.FileDescriptorProto"}],extensionRange:[{start:536e6,end:536000001}]},{name:"FileDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"package",number:2,type:9,label:1},{name:"dependency",number:3,type:9,label:3},{name:"public_dependency",number:10,type:5,label:3},{name:"weak_dependency",number:11,type:5,label:3},{name:"option_dependency",number:15,type:9,label:3},{name:"message_type",number:4,type:11,label:3,typeName:".google.protobuf.DescriptorProto"},{name:"enum_type",number:5,type:11,label:3,typeName:".google.protobuf.EnumDescriptorProto"},{name:"service",number:6,type:11,label:3,typeName:".google.protobuf.ServiceDescriptorProto"},{name:"extension",number:7,type:11,label:3,typeName:".google.protobuf.FieldDescriptorProto"},{name:"options",number:8,type:11,label:1,typeName:".google.protobuf.FileOptions"},{name:"source_code_info",number:9,type:11,label:1,typeName:".google.protobuf.SourceCodeInfo"},{name:"syntax",number:12,type:9,label:1},{name:"edition",number:14,type:14,label:1,typeName:".google.protobuf.Edition"}]},{name:"DescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"field",number:2,type:11,label:3,typeName:".google.protobuf.FieldDescriptorProto"},{name:"extension",number:6,type:11,label:3,typeName:".google.protobuf.FieldDescriptorProto"},{name:"nested_type",number:3,type:11,label:3,typeName:".google.protobuf.DescriptorProto"},{name:"enum_type",number:4,type:11,label:3,typeName:".google.protobuf.EnumDescriptorProto"},{name:"extension_range",number:5,type:11,label:3,typeName:".google.protobuf.DescriptorProto.ExtensionRange"},{name:"oneof_decl",number:8,type:11,label:3,typeName:".google.protobuf.OneofDescriptorProto"},{name:"options",number:7,type:11,label:1,typeName:".google.protobuf.MessageOptions"},{name:"reserved_range",number:9,type:11,label:3,typeName:".google.protobuf.DescriptorProto.ReservedRange"},{name:"reserved_name",number:10,type:9,label:3},{name:"visibility",number:11,type:14,label:1,typeName:".google.protobuf.SymbolVisibility"}],nestedType:[{name:"ExtensionRange",field:[{name:"start",number:1,type:5,label:1},{name:"end",number:2,type:5,label:1},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.ExtensionRangeOptions"}]},{name:"ReservedRange",field:[{name:"start",number:1,type:5,label:1},{name:"end",number:2,type:5,label:1}]}]},{name:"ExtensionRangeOptions",field:[{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"},{name:"declaration",number:2,type:11,label:3,typeName:".google.protobuf.ExtensionRangeOptions.Declaration",options:{retention:2}},{name:"features",number:50,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"verification",number:3,type:14,label:1,typeName:".google.protobuf.ExtensionRangeOptions.VerificationState",defaultValue:"UNVERIFIED",options:{retention:2}}],nestedType:[{name:"Declaration",field:[{name:"number",number:1,type:5,label:1},{name:"full_name",number:2,type:9,label:1},{name:"type",number:3,type:9,label:1},{name:"reserved",number:5,type:8,label:1},{name:"repeated",number:6,type:8,label:1}]}],enumType:[{name:"VerificationState",value:[{name:"DECLARATION",number:0},{name:"UNVERIFIED",number:1}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"FieldDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"number",number:3,type:5,label:1},{name:"label",number:4,type:14,label:1,typeName:".google.protobuf.FieldDescriptorProto.Label"},{name:"type",number:5,type:14,label:1,typeName:".google.protobuf.FieldDescriptorProto.Type"},{name:"type_name",number:6,type:9,label:1},{name:"extendee",number:2,type:9,label:1},{name:"default_value",number:7,type:9,label:1},{name:"oneof_index",number:9,type:5,label:1},{name:"json_name",number:10,type:9,label:1},{name:"options",number:8,type:11,label:1,typeName:".google.protobuf.FieldOptions"},{name:"proto3_optional",number:17,type:8,label:1}],enumType:[{name:"Type",value:[{name:"TYPE_DOUBLE",number:1},{name:"TYPE_FLOAT",number:2},{name:"TYPE_INT64",number:3},{name:"TYPE_UINT64",number:4},{name:"TYPE_INT32",number:5},{name:"TYPE_FIXED64",number:6},{name:"TYPE_FIXED32",number:7},{name:"TYPE_BOOL",number:8},{name:"TYPE_STRING",number:9},{name:"TYPE_GROUP",number:10},{name:"TYPE_MESSAGE",number:11},{name:"TYPE_BYTES",number:12},{name:"TYPE_UINT32",number:13},{name:"TYPE_ENUM",number:14},{name:"TYPE_SFIXED32",number:15},{name:"TYPE_SFIXED64",number:16},{name:"TYPE_SINT32",number:17},{name:"TYPE_SINT64",number:18}]},{name:"Label",value:[{name:"LABEL_OPTIONAL",number:1},{name:"LABEL_REPEATED",number:3},{name:"LABEL_REQUIRED",number:2}]}]},{name:"OneofDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"options",number:2,type:11,label:1,typeName:".google.protobuf.OneofOptions"}]},{name:"EnumDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"value",number:2,type:11,label:3,typeName:".google.protobuf.EnumValueDescriptorProto"},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.EnumOptions"},{name:"reserved_range",number:4,type:11,label:3,typeName:".google.protobuf.EnumDescriptorProto.EnumReservedRange"},{name:"reserved_name",number:5,type:9,label:3},{name:"visibility",number:6,type:14,label:1,typeName:".google.protobuf.SymbolVisibility"}],nestedType:[{name:"EnumReservedRange",field:[{name:"start",number:1,type:5,label:1},{name:"end",number:2,type:5,label:1}]}]},{name:"EnumValueDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"number",number:2,type:5,label:1},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.EnumValueOptions"}]},{name:"ServiceDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"method",number:2,type:11,label:3,typeName:".google.protobuf.MethodDescriptorProto"},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.ServiceOptions"}]},{name:"MethodDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"input_type",number:2,type:9,label:1},{name:"output_type",number:3,type:9,label:1},{name:"options",number:4,type:11,label:1,typeName:".google.protobuf.MethodOptions"},{name:"client_streaming",number:5,type:8,label:1,defaultValue:"false"},{name:"server_streaming",number:6,type:8,label:1,defaultValue:"false"}]},{name:"FileOptions",field:[{name:"java_package",number:1,type:9,label:1},{name:"java_outer_classname",number:8,type:9,label:1},{name:"java_multiple_files",number:10,type:8,label:1,defaultValue:"false",options:{}},{name:"java_generate_equals_and_hash",number:20,type:8,label:1,options:{deprecated:!0}},{name:"java_string_check_utf8",number:27,type:8,label:1,defaultValue:"false"},{name:"optimize_for",number:9,type:14,label:1,typeName:".google.protobuf.FileOptions.OptimizeMode",defaultValue:"SPEED"},{name:"go_package",number:11,type:9,label:1},{name:"cc_generic_services",number:16,type:8,label:1,defaultValue:"false"},{name:"java_generic_services",number:17,type:8,label:1,defaultValue:"false"},{name:"py_generic_services",number:18,type:8,label:1,defaultValue:"false"},{name:"deprecated",number:23,type:8,label:1,defaultValue:"false"},{name:"cc_enable_arenas",number:31,type:8,label:1,defaultValue:"true"},{name:"objc_class_prefix",number:36,type:9,label:1},{name:"csharp_namespace",number:37,type:9,label:1},{name:"swift_prefix",number:39,type:9,label:1},{name:"php_class_prefix",number:40,type:9,label:1},{name:"php_namespace",number:41,type:9,label:1},{name:"php_metadata_namespace",number:44,type:9,label:1},{name:"ruby_package",number:45,type:9,label:1},{name:"features",number:50,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],enumType:[{name:"OptimizeMode",value:[{name:"SPEED",number:1},{name:"CODE_SIZE",number:2},{name:"LITE_RUNTIME",number:3}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"MessageOptions",field:[{name:"message_set_wire_format",number:1,type:8,label:1,defaultValue:"false"},{name:"no_standard_descriptor_accessor",number:2,type:8,label:1,defaultValue:"false"},{name:"deprecated",number:3,type:8,label:1,defaultValue:"false"},{name:"map_entry",number:7,type:8,label:1},{name:"deprecated_legacy_json_field_conflicts",number:11,type:8,label:1,options:{deprecated:!0}},{name:"features",number:12,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"FieldOptions",field:[{name:"ctype",number:1,type:14,label:1,typeName:".google.protobuf.FieldOptions.CType",defaultValue:"STRING"},{name:"packed",number:2,type:8,label:1},{name:"jstype",number:6,type:14,label:1,typeName:".google.protobuf.FieldOptions.JSType",defaultValue:"JS_NORMAL"},{name:"lazy",number:5,type:8,label:1,defaultValue:"false"},{name:"unverified_lazy",number:15,type:8,label:1,defaultValue:"false"},{name:"deprecated",number:3,type:8,label:1,defaultValue:"false"},{name:"weak",number:10,type:8,label:1,defaultValue:"false",options:{deprecated:!0}},{name:"debug_redact",number:16,type:8,label:1,defaultValue:"false"},{name:"retention",number:17,type:14,label:1,typeName:".google.protobuf.FieldOptions.OptionRetention"},{name:"targets",number:19,type:14,label:3,typeName:".google.protobuf.FieldOptions.OptionTargetType"},{name:"edition_defaults",number:20,type:11,label:3,typeName:".google.protobuf.FieldOptions.EditionDefault"},{name:"features",number:21,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"feature_support",number:22,type:11,label:1,typeName:".google.protobuf.FieldOptions.FeatureSupport"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],nestedType:[{name:"EditionDefault",field:[{name:"edition",number:3,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"value",number:2,type:9,label:1}]},{name:"FeatureSupport",field:[{name:"edition_introduced",number:1,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"edition_deprecated",number:2,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"deprecation_warning",number:3,type:9,label:1},{name:"edition_removed",number:4,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"removal_error",number:5,type:9,label:1}]}],enumType:[{name:"CType",value:[{name:"STRING",number:0},{name:"CORD",number:1},{name:"STRING_PIECE",number:2}]},{name:"JSType",value:[{name:"JS_NORMAL",number:0},{name:"JS_STRING",number:1},{name:"JS_NUMBER",number:2}]},{name:"OptionRetention",value:[{name:"RETENTION_UNKNOWN",number:0},{name:"RETENTION_RUNTIME",number:1},{name:"RETENTION_SOURCE",number:2}]},{name:"OptionTargetType",value:[{name:"TARGET_TYPE_UNKNOWN",number:0},{name:"TARGET_TYPE_FILE",number:1},{name:"TARGET_TYPE_EXTENSION_RANGE",number:2},{name:"TARGET_TYPE_MESSAGE",number:3},{name:"TARGET_TYPE_FIELD",number:4},{name:"TARGET_TYPE_ONEOF",number:5},{name:"TARGET_TYPE_ENUM",number:6},{name:"TARGET_TYPE_ENUM_ENTRY",number:7},{name:"TARGET_TYPE_SERVICE",number:8},{name:"TARGET_TYPE_METHOD",number:9}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"OneofOptions",field:[{name:"features",number:1,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"EnumOptions",field:[{name:"allow_alias",number:2,type:8,label:1},{name:"deprecated",number:3,type:8,label:1,defaultValue:"false"},{name:"deprecated_legacy_json_field_conflicts",number:6,type:8,label:1,options:{deprecated:!0}},{name:"features",number:7,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"EnumValueOptions",field:[{name:"deprecated",number:1,type:8,label:1,defaultValue:"false"},{name:"features",number:2,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"debug_redact",number:3,type:8,label:1,defaultValue:"false"},{name:"feature_support",number:4,type:11,label:1,typeName:".google.protobuf.FieldOptions.FeatureSupport"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"ServiceOptions",field:[{name:"features",number:34,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"deprecated",number:33,type:8,label:1,defaultValue:"false"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"MethodOptions",field:[{name:"deprecated",number:33,type:8,label:1,defaultValue:"false"},{name:"idempotency_level",number:34,type:14,label:1,typeName:".google.protobuf.MethodOptions.IdempotencyLevel",defaultValue:"IDEMPOTENCY_UNKNOWN"},{name:"features",number:35,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],enumType:[{name:"IdempotencyLevel",value:[{name:"IDEMPOTENCY_UNKNOWN",number:0},{name:"NO_SIDE_EFFECTS",number:1},{name:"IDEMPOTENT",number:2}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"UninterpretedOption",field:[{name:"name",number:2,type:11,label:3,typeName:".google.protobuf.UninterpretedOption.NamePart"},{name:"identifier_value",number:3,type:9,label:1},{name:"positive_int_value",number:4,type:4,label:1},{name:"negative_int_value",number:5,type:3,label:1},{name:"double_value",number:6,type:1,label:1},{name:"string_value",number:7,type:12,label:1},{name:"aggregate_value",number:8,type:9,label:1}],nestedType:[{name:"NamePart",field:[{name:"name_part",number:1,type:9,label:2},{name:"is_extension",number:2,type:8,label:2}]}]},{name:"FeatureSet",field:[{name:"field_presence",number:1,type:14,label:1,typeName:".google.protobuf.FeatureSet.FieldPresence",options:{retention:1,targets:[4,1],editionDefaults:[{value:"EXPLICIT",edition:900},{value:"IMPLICIT",edition:999},{value:"EXPLICIT",edition:1e3}]}},{name:"enum_type",number:2,type:14,label:1,typeName:".google.protobuf.FeatureSet.EnumType",options:{retention:1,targets:[6,1],editionDefaults:[{value:"CLOSED",edition:900},{value:"OPEN",edition:999}]}},{name:"repeated_field_encoding",number:3,type:14,label:1,typeName:".google.protobuf.FeatureSet.RepeatedFieldEncoding",options:{retention:1,targets:[4,1],editionDefaults:[{value:"EXPANDED",edition:900},{value:"PACKED",edition:999}]}},{name:"utf8_validation",number:4,type:14,label:1,typeName:".google.protobuf.FeatureSet.Utf8Validation",options:{retention:1,targets:[4,1],editionDefaults:[{value:"NONE",edition:900},{value:"VERIFY",edition:999}]}},{name:"message_encoding",number:5,type:14,label:1,typeName:".google.protobuf.FeatureSet.MessageEncoding",options:{retention:1,targets:[4,1],editionDefaults:[{value:"LENGTH_PREFIXED",edition:900}]}},{name:"json_format",number:6,type:14,label:1,typeName:".google.protobuf.FeatureSet.JsonFormat",options:{retention:1,targets:[3,6,1],editionDefaults:[{value:"LEGACY_BEST_EFFORT",edition:900},{value:"ALLOW",edition:999}]}},{name:"enforce_naming_style",number:7,type:14,label:1,typeName:".google.protobuf.FeatureSet.EnforceNamingStyle",options:{retention:2,targets:[1,2,3,4,5,6,7,8,9],editionDefaults:[{value:"STYLE_LEGACY",edition:900},{value:"STYLE2024",edition:1001}]}},{name:"default_symbol_visibility",number:8,type:14,label:1,typeName:".google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility",options:{retention:2,targets:[1],editionDefaults:[{value:"EXPORT_ALL",edition:900},{value:"EXPORT_TOP_LEVEL",edition:1001}]}}],nestedType:[{name:"VisibilityFeature",enumType:[{name:"DefaultSymbolVisibility",value:[{name:"DEFAULT_SYMBOL_VISIBILITY_UNKNOWN",number:0},{name:"EXPORT_ALL",number:1},{name:"EXPORT_TOP_LEVEL",number:2},{name:"LOCAL_ALL",number:3},{name:"STRICT",number:4}]}]}],enumType:[{name:"FieldPresence",value:[{name:"FIELD_PRESENCE_UNKNOWN",number:0},{name:"EXPLICIT",number:1},{name:"IMPLICIT",number:2},{name:"LEGACY_REQUIRED",number:3}]},{name:"EnumType",value:[{name:"ENUM_TYPE_UNKNOWN",number:0},{name:"OPEN",number:1},{name:"CLOSED",number:2}]},{name:"RepeatedFieldEncoding",value:[{name:"REPEATED_FIELD_ENCODING_UNKNOWN",number:0},{name:"PACKED",number:1},{name:"EXPANDED",number:2}]},{name:"Utf8Validation",value:[{name:"UTF8_VALIDATION_UNKNOWN",number:0},{name:"VERIFY",number:2},{name:"NONE",number:3}]},{name:"MessageEncoding",value:[{name:"MESSAGE_ENCODING_UNKNOWN",number:0},{name:"LENGTH_PREFIXED",number:1},{name:"DELIMITED",number:2}]},{name:"JsonFormat",value:[{name:"JSON_FORMAT_UNKNOWN",number:0},{name:"ALLOW",number:1},{name:"LEGACY_BEST_EFFORT",number:2}]},{name:"EnforceNamingStyle",value:[{name:"ENFORCE_NAMING_STYLE_UNKNOWN",number:0},{name:"STYLE2024",number:1},{name:"STYLE_LEGACY",number:2}]}],extensionRange:[{start:1e3,end:9995},{start:9995,end:1e4},{start:1e4,end:10001}]},{name:"FeatureSetDefaults",field:[{name:"defaults",number:1,type:11,label:3,typeName:".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault"},{name:"minimum_edition",number:4,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"maximum_edition",number:5,type:14,label:1,typeName:".google.protobuf.Edition"}],nestedType:[{name:"FeatureSetEditionDefault",field:[{name:"edition",number:3,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"overridable_features",number:4,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"fixed_features",number:5,type:11,label:1,typeName:".google.protobuf.FeatureSet"}]}]},{name:"SourceCodeInfo",field:[{name:"location",number:1,type:11,label:3,typeName:".google.protobuf.SourceCodeInfo.Location"}],nestedType:[{name:"Location",field:[{name:"path",number:1,type:5,label:3,options:{packed:!0}},{name:"span",number:2,type:5,label:3,options:{packed:!0}},{name:"leading_comments",number:3,type:9,label:1},{name:"trailing_comments",number:4,type:9,label:1},{name:"leading_detached_comments",number:6,type:9,label:3}]}],extensionRange:[{start:536e6,end:536000001}]},{name:"GeneratedCodeInfo",field:[{name:"annotation",number:1,type:11,label:3,typeName:".google.protobuf.GeneratedCodeInfo.Annotation"}],nestedType:[{name:"Annotation",field:[{name:"path",number:1,type:5,label:3,options:{packed:!0}},{name:"source_file",number:2,type:9,label:1},{name:"begin",number:3,type:5,label:1},{name:"end",number:4,type:5,label:1},{name:"semantic",number:5,type:14,label:1,typeName:".google.protobuf.GeneratedCodeInfo.Annotation.Semantic"}],enumType:[{name:"Semantic",value:[{name:"NONE",number:0},{name:"SET",number:1},{name:"ALIAS",number:2}]}]}]}],enumType:[{name:"Edition",value:[{name:"EDITION_UNKNOWN",number:0},{name:"EDITION_LEGACY",number:900},{name:"EDITION_PROTO2",number:998},{name:"EDITION_PROTO3",number:999},{name:"EDITION_2023",number:1e3},{name:"EDITION_2024",number:1001},{name:"EDITION_UNSTABLE",number:9999},{name:"EDITION_1_TEST_ONLY",number:1},{name:"EDITION_2_TEST_ONLY",number:2},{name:"EDITION_99997_TEST_ONLY",number:99997},{name:"EDITION_99998_TEST_ONLY",number:99998},{name:"EDITION_99999_TEST_ONLY",number:99999},{name:"EDITION_MAX",number:2147483647}]},{name:"SymbolVisibility",value:[{name:"VISIBILITY_UNSET",number:0},{name:"VISIBILITY_LOCAL",number:1},{name:"VISIBILITY_EXPORT",number:2}]}]}),OP=se(BP,1);var Nh;(function(e){e[e.DECLARATION=0]="DECLARATION",e[e.UNVERIFIED=1]="UNVERIFIED"})(Nh||(Nh={}));var Ih;(function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.GROUP=10]="GROUP",e[e.MESSAGE=11]="MESSAGE",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.ENUM=14]="ENUM",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"})(Ih||(Ih={}));var Ch;(function(e){e[e.OPTIONAL=1]="OPTIONAL",e[e.REPEATED=3]="REPEATED",e[e.REQUIRED=2]="REQUIRED"})(Ch||(Ch={}));var Th;(function(e){e[e.SPEED=1]="SPEED",e[e.CODE_SIZE=2]="CODE_SIZE",e[e.LITE_RUNTIME=3]="LITE_RUNTIME"})(Th||(Th={}));var Rh;(function(e){e[e.STRING=0]="STRING",e[e.CORD=1]="CORD",e[e.STRING_PIECE=2]="STRING_PIECE"})(Rh||(Rh={}));var Ph;(function(e){e[e.JS_NORMAL=0]="JS_NORMAL",e[e.JS_STRING=1]="JS_STRING",e[e.JS_NUMBER=2]="JS_NUMBER"})(Ph||(Ph={}));var Bh;(function(e){e[e.RETENTION_UNKNOWN=0]="RETENTION_UNKNOWN",e[e.RETENTION_RUNTIME=1]="RETENTION_RUNTIME",e[e.RETENTION_SOURCE=2]="RETENTION_SOURCE"})(Bh||(Bh={}));var Oh;(function(e){e[e.TARGET_TYPE_UNKNOWN=0]="TARGET_TYPE_UNKNOWN",e[e.TARGET_TYPE_FILE=1]="TARGET_TYPE_FILE",e[e.TARGET_TYPE_EXTENSION_RANGE=2]="TARGET_TYPE_EXTENSION_RANGE",e[e.TARGET_TYPE_MESSAGE=3]="TARGET_TYPE_MESSAGE",e[e.TARGET_TYPE_FIELD=4]="TARGET_TYPE_FIELD",e[e.TARGET_TYPE_ONEOF=5]="TARGET_TYPE_ONEOF",e[e.TARGET_TYPE_ENUM=6]="TARGET_TYPE_ENUM",e[e.TARGET_TYPE_ENUM_ENTRY=7]="TARGET_TYPE_ENUM_ENTRY",e[e.TARGET_TYPE_SERVICE=8]="TARGET_TYPE_SERVICE",e[e.TARGET_TYPE_METHOD=9]="TARGET_TYPE_METHOD"})(Oh||(Oh={}));var kh;(function(e){e[e.IDEMPOTENCY_UNKNOWN=0]="IDEMPOTENCY_UNKNOWN",e[e.NO_SIDE_EFFECTS=1]="NO_SIDE_EFFECTS",e[e.IDEMPOTENT=2]="IDEMPOTENT"})(kh||(kh={}));var Fh;(function(e){e[e.DEFAULT_SYMBOL_VISIBILITY_UNKNOWN=0]="DEFAULT_SYMBOL_VISIBILITY_UNKNOWN",e[e.EXPORT_ALL=1]="EXPORT_ALL",e[e.EXPORT_TOP_LEVEL=2]="EXPORT_TOP_LEVEL",e[e.LOCAL_ALL=3]="LOCAL_ALL",e[e.STRICT=4]="STRICT"})(Fh||(Fh={}));var Lh;(function(e){e[e.FIELD_PRESENCE_UNKNOWN=0]="FIELD_PRESENCE_UNKNOWN",e[e.EXPLICIT=1]="EXPLICIT",e[e.IMPLICIT=2]="IMPLICIT",e[e.LEGACY_REQUIRED=3]="LEGACY_REQUIRED"})(Lh||(Lh={}));var Mh;(function(e){e[e.ENUM_TYPE_UNKNOWN=0]="ENUM_TYPE_UNKNOWN",e[e.OPEN=1]="OPEN",e[e.CLOSED=2]="CLOSED"})(Mh||(Mh={}));var $h;(function(e){e[e.REPEATED_FIELD_ENCODING_UNKNOWN=0]="REPEATED_FIELD_ENCODING_UNKNOWN",e[e.PACKED=1]="PACKED",e[e.EXPANDED=2]="EXPANDED"})($h||($h={}));var Vh;(function(e){e[e.UTF8_VALIDATION_UNKNOWN=0]="UTF8_VALIDATION_UNKNOWN",e[e.VERIFY=2]="VERIFY",e[e.NONE=3]="NONE"})(Vh||(Vh={}));var Wh;(function(e){e[e.MESSAGE_ENCODING_UNKNOWN=0]="MESSAGE_ENCODING_UNKNOWN",e[e.LENGTH_PREFIXED=1]="LENGTH_PREFIXED",e[e.DELIMITED=2]="DELIMITED"})(Wh||(Wh={}));var Dh;(function(e){e[e.JSON_FORMAT_UNKNOWN=0]="JSON_FORMAT_UNKNOWN",e[e.ALLOW=1]="ALLOW",e[e.LEGACY_BEST_EFFORT=2]="LEGACY_BEST_EFFORT"})(Dh||(Dh={}));var Gh;(function(e){e[e.ENFORCE_NAMING_STYLE_UNKNOWN=0]="ENFORCE_NAMING_STYLE_UNKNOWN",e[e.STYLE2024=1]="STYLE2024",e[e.STYLE_LEGACY=2]="STYLE_LEGACY"})(Gh||(Gh={}));var Yh;(function(e){e[e.NONE=0]="NONE",e[e.SET=1]="SET",e[e.ALIAS=2]="ALIAS"})(Yh||(Yh={}));var Uh;(function(e){e[e.EDITION_UNKNOWN=0]="EDITION_UNKNOWN",e[e.EDITION_LEGACY=900]="EDITION_LEGACY",e[e.EDITION_PROTO2=998]="EDITION_PROTO2",e[e.EDITION_PROTO3=999]="EDITION_PROTO3",e[e.EDITION_2023=1e3]="EDITION_2023",e[e.EDITION_2024=1001]="EDITION_2024",e[e.EDITION_UNSTABLE=9999]="EDITION_UNSTABLE",e[e.EDITION_1_TEST_ONLY=1]="EDITION_1_TEST_ONLY",e[e.EDITION_2_TEST_ONLY=2]="EDITION_2_TEST_ONLY",e[e.EDITION_99997_TEST_ONLY=99997]="EDITION_99997_TEST_ONLY",e[e.EDITION_99998_TEST_ONLY=99998]="EDITION_99998_TEST_ONLY",e[e.EDITION_99999_TEST_ONLY=99999]="EDITION_99999_TEST_ONLY",e[e.EDITION_MAX=2147483647]="EDITION_MAX"})(Uh||(Uh={}));var jh;(function(e){e[e.VISIBILITY_UNSET=0]="VISIBILITY_UNSET",e[e.VISIBILITY_LOCAL=1]="VISIBILITY_LOCAL",e[e.VISIBILITY_EXPORT=2]="VISIBILITY_EXPORT"})(jh||(jh={}));function kP(e){return Object.assign(Object.assign({readUnknownFields:!0,recursionLimit:100},e),{depth:0})}function v1(e,t,n){const r=xf(e,void 0,!1);return y1(r,new D8(t),kP(n),!1,t.byteLength),r.message}function y1(e,t,n,r,s){var o;if(++n.depth>n.recursionLimit)throw new Error(`cannot decode ${e.desc} from binary: maximum recursion depth of ${n.recursionLimit} reached`);const a=r?t.len:t.pos+s;let i,l;const u=(o=e.getUnknown())!==null&&o!==void 0?o:[];for(;t.pos<a&&([i,l]=t.tag(),!(r&&l==gn.EndGroup));){const c=e.findNumber(i);if(!c){const f=n.recursionLimit-n.depth,d=t.skip(l,i,f);n.readUnknownFields&&u.push({no:i,wireType:l,data:d});continue}FP(e,t,c,l,n)}if(r&&(l!=gn.EndGroup||i!==s))throw new Error("invalid end group tag");u.length>0&&e.setUnknown(u),n.depth--}function FP(e,t,n,r,s){var o;switch(n.fieldKind){case"scalar":e.set(n,Hs(t,n.scalar,n.utf8Validation));break;case"enum":const a=Hs(t,D.INT32);if(n.enum.open)e.set(n,a);else if(n.enum.values.some(l=>l.number===a))e.set(n,a);else if(s.readUnknownFields){const l=[];y8(a,l);const u=(o=e.getUnknown())!==null&&o!==void 0?o:[];u.push({no:n.number,wireType:r,data:new Uint8Array(l)}),e.setUnknown(u)}break;case"message":e.set(n,Bf(t,s,n,e.get(n)));break;case"list":MP(t,r,e.get(n),s);break;case"map":LP(t,e.get(n),s);break}}function LP(e,t,n){const r=t.field();let s,o;const a=e.uint32(),i=e.pos+a;for(;e.pos<i;){const[l]=e.tag();switch(l){case 1:s=Hs(e,r.mapKey,r.utf8Validation);break;case 2:switch(r.mapKind){case"scalar":o=Hs(e,r.scalar,r.utf8Validation);break;case"enum":o=e.int32();break;case"message":o=Bf(e,n,r);break}break}}if(s===void 0&&(s=la(r.mapKey,!1)),o===void 0)switch(r.mapKind){case"scalar":o=la(r.scalar,!1);break;case"enum":o=r.enum.values[0].number;break;case"message":o=xf(r.message,void 0,!1);break}t.set(s,o)}function MP(e,t,n,r){var s;const o=n.field();if(o.listKind==="message"){n.add(Bf(e,r,o));return}const a=(s=o.scalar)!==null&&s!==void 0?s:D.INT32;if(!(t==gn.LengthDelimited&&a!=D.STRING&&a!=D.BYTES)){n.add(Hs(e,a,o.utf8Validation));return}const l=e.uint32()+e.pos;for(;e.pos<l;)n.add(Hs(e,a,o.utf8Validation))}function Bf(e,t,n,r){const s=n.delimitedEncoding,o=r??xf(n.message,void 0,!1);return y1(o,e,t,s,s?n.number:e.uint32()),o}function Hs(e,t,n=!1){switch(t){case D.STRING:return e.string(n);case D.BOOL:return e.bool();case D.DOUBLE:return e.double();case D.FLOAT:return e.float();case D.INT32:return e.int32();case D.INT64:return e.int64();case D.UINT64:return e.uint64();case D.FIXED64:return e.fixed64();case D.BYTES:return e.bytes();case D.FIXED32:return e.fixed32();case D.SFIXED32:return e.sfixed32();case D.SFIXED64:return e.sfixed64();case D.SINT64:return e.sint64();case D.UINT32:return e.uint32();case D.SINT32:return e.sint32()}}function $P(e,t){var n;const r=v1(OP,H8(e));return r.messageType.forEach(Rf),r.dependency=(n=void 0)!==null&&n!==void 0?n:[],d1(r,o=>{}).getFile(r.name)}function VP(e,t,...n){if(n.length>0)throw new Error;return e.services[t]}var WP=Object.create,w1=Object.defineProperty,DP=Object.getOwnPropertyDescriptor,_1=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),E1=e=>{throw TypeError(e)},GP=(e,t,n)=>t in e?w1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,He=e=>[,,,WP(e?.[_1("metadata")]??null)],A1=["class","method","getter","setter","accessor","field","value","get","set"],S1=e=>e!==void 0&&typeof e!="function"?E1("Function expected"):e,YP=(e,t,n,r,s)=>({kind:A1[e],name:t,metadata:r,addInitializer:o=>n._?E1("Already initialized"):s.push(S1(o||null))}),Xe=(e,t)=>GP(t,_1("metadata"),e[3]),ze=(e,t,n,r)=>{for(var s=0,o=e[t>>1],a=o&&o.length;s<a;s++)o[s].call(n);return r},x=(e,t,n,r,s,o)=>{for(var a,i,l,u,c=t&7,f=!1,d=!1,p=2,h=A1[c+5],m=e[p]||(e[p]=[]),b=(s=s.prototype,DP(s,n)),y=r.length-1;y>=0;y--)l=YP(c,n,i={},e[3],m),l.static=f,l.private=d,u=l.access={has:v=>n in v},u.get=v=>v[n],c>2,a=(0,r[y])(b[h],l),i._=1,S1(a)&&(b[h]=a);return b&&w1(s,n,b),s};function N(){return function(e,t){let n=String(t.name);return function(...r){let s=this.constructor.name;try{return e.call(this,...r)}catch(o){if(typeof this.handleError=="function")this.handleError(o,s,n);else throw console.error(`${s}.${n} 未知异常`,o),o}}}}var Wn=class extends Error{constructor(e,t,n){super(t||"操作失败"),this.name="BiliError",this.rawError=n instanceof Error?n:new Error(String(n));let{timeout:r,userAgent:s,context:o}=e;this.clientConfig={timeout:r,userAgent:s,context:o?.userCookie?{userCookie:o?.userCookie}:void 0}}},x1=class extends Wn{constructor(e,t,n,r){super(e,n,r),this.name="BiliApiError";let{url:s,method:o,query:a,data:i,skipWbiSign:l,autoCsrf:u}=t;this.requestOptions={url:s,method:o,query:a,data:i,skipWbiSign:l,autoCsrf:u}}},$a=class extends x1{constructor(e,t,n,r,s){super(e,t,r||n.statusText||`HTTP ${n.status}`,s),this.status=0,this.name="BiliApiHttpError",this.status=n.status}},N1=class extends x1{constructor(e,t,n,r,s){super(e,t,r||n.message,s),this.name="BiliApiBusinessError",this.responseCode=n.code??-1,this.responseData=n.data}};async function UP(e,t,n){let r={updateRequestContext:!0,autoRefresh:!0,pollIntervalMs:1233,...n},s=AbortSignal.timeout(180*1e3),o=r.signal?AbortSignal.any([r.signal,s]):s,a=u=>new Promise(c=>setTimeout(c,u)),i=u=>{try{t.onStatusChange(u)}catch(c){e.logger.error("[QRCodeLogin] onStatusChange callback error:",c)}},l=async u=>{try{await t.onQRCodeReceived(u)}catch(c){e.logger.error("[QRCodeLogin] onQRCodeReceived callback error:",c)}};try{for(;!o.aborted;){i("正在获取登录二维码...");let u=await e.getLoginQRCode(n);if(!u?.url||!u?.qrcode_key)throw new Error("未能获取有效的二维码数据");await l(u.url),i("请使用手机 App 扫码登录..."),await a(2e3);let c=!1;for(;!o.aborted&&!c;){let f=await e.getQRCodeLoginResult(u.qrcode_key,n);switch(i(f.message),f.code){case 0:return i("扫码成功,正在同步用户信息..."),t.cookieProvider&&(await a(1e3),f.setCookie=await t.cookieProvider()),await e.initLoginSession(f.setCookie,r.updateRequestContext,n);case 86038:if(r.autoRefresh)i("二维码已失效,正在自动刷新..."),c=!0;else throw new Wn(e.clientConfig,"二维码已失效");break;default:await a(r.pollIntervalMs);break}}}}catch(u){if(r.signal?.aborted)throw i("取消登录"),js("取消登录");if(o.aborted||Xb(u)){let c="登录超时";throw i(c),new Error(c)}throw u}throw o.aborted?js():new Error("登录流程异常终止")}function jP(e){if(!e)throw new Error("setCookie 为空");let t=[],n,r;for(let s of e)if(s){let o=s.slice(0,s.indexOf(";")+1);t.push(o),o.startsWith("bili_jct=")&&(n=o.slice(9,-1)),o.startsWith("DedeUserID=")&&(r=o.slice(11,-1))}if(!n||!r)throw new Error("setCookie 解析错误,不存在 bili_jct/uid");return{uid:Number(r),cookie:t.join(" "),bili_jct:n}}var I1=class{constructor(e){this.api=e}get clientConfig(){return this.api.clientConfig}get logger(){return this.api.logger}get request(){return this.api.request}get get(){return this.api.get}get post(){return this.api.post}get save(){return this.api.save}get currUserUid(){let e=this.api.clientConfig.context?.userCookie.uid;if(e===void 0)throw new Wn(this.clientConfig,"用户未登录");return e}},Je=class extends I1{constructor(e){super(e),this.createPager=e.createPager}throwError(e,t){throw new Wn(this.clientConfig,Pu(e),t)}handleError(e,t,n){if(e instanceof Wn)this.logger.error(`${t}.${n} 出现错误`,e);else{let r=new Wn(this.clientConfig,Pu(e),e);this.logger.error(`${t}.${n} 出现错误`,r)}throw e}resolveVideoId(e){return e.aid!==void 0?{aid:e.aid}:{bvid:e.bvid}}},C1,T1,R1,P1,B1,O1,k1,F1,L1,$u,nn,pn=class extends($u=Je,L1=[N()],F1=[N()],k1=[N()],O1=[N()],B1=[N()],P1=[N()],R1=[N()],T1=[N()],C1=[N()],$u){constructor(){super(...arguments),ze(nn,5,this)}getLoginQRCode(e){return this.get("https://passport.bilibili.com/x/passport-login/web/qrcode/generate",e)}async getQRCodeLoginResult(e,t){let n=await this.get("https://passport.bilibili.com/x/passport-login/web/qrcode/poll",{query:{qrcode_key:e},skipWbiSign:!0,returnFormat:"RawResponse",...t});return{...(await n.json()).data,setCookie:n.headers.getSetCookie()}}async loginWithQRCode(e,t){return UP(this,e,t)}getBuvids(e){return this.get("https://api.bilibili.com/x/frontend/finger/spi",e)}getMyInfo(e,t){return this.get("https://api.bilibili.com/x/space/myinfo",{cookie:e,...t})}async initLoginSession(e,t=!0,n){this.logger.info("初始化用户数据...");let r=jP(e),{b_3:s,b_4:o}=await this.getBuvids(n);r.cookie=`${r.cookie} buvid3=${encodeURIComponent(s)}; buvid4=${encodeURIComponent(o)}; `;let a={userCookie:r};return t&&(this.clientConfig.context=a),this.logger.info(`已完成用户登录:${r.uid}`),a}async getUserCard(e,t){return await this.get("https://api.bilibili.com/x/web-interface/card",{query:e,...t})}async getUserCards(e,t){let n=await this.get("https://api.vc.bilibili.com/account/v1/user/cards",{query:{uids:e.join(",")},...t});return e.map(r=>n.find(s=>s.mid===r)??null)}async getUpStat(e,t){return await this.get("https://api.bilibili.com/x/space/upstat",{query:{mid:e},...t})}};nn=He($u),x(nn,1,"getLoginQRCode",L1,pn),x(nn,1,"getQRCodeLoginResult",F1,pn),x(nn,1,"loginWithQRCode",k1,pn),x(nn,1,"getBuvids",O1,pn),x(nn,1,"getMyInfo",B1,pn),x(nn,1,"initLoginSession",P1,pn),x(nn,1,"getUserCard",R1,pn),x(nn,1,"getUserCards",T1,pn),x(nn,1,"getUpStat",C1,pn),Xe(nn,pn);var bo={PersonalSpace:11,Comment:15,H5FollowList:106,H5FansList:107,BlockList:116},Kr={FOLLOW:{code:1,name:"关注",reSrc:bo.PersonalSpace},UNFOLLOW:{code:2,name:"取关",reSrc:bo.H5FollowList},BLOCK:{code:5,name:"拉黑",reSrc:bo.Comment},UNBLOCK:{code:6,name:"取消拉黑",reSrc:bo.BlockList},REMOVE_FAN:{code:7,name:"踢出粉丝",reSrc:bo.H5FansList}},Ut=class{constructor(e){this.options=e,e.pageParams&&(e.pageNum=this.parsePageNum(e.pageParams))}},M1=class extends Ut{hasNextPage(e,t,n){return!(this.options.total!==void 0&&(t.length>=this.options.total||(e-1)*this.options.pageSize>=this.options.total)||n!==null&&(n.data===null||ao(n.data)||this.getList(n).length<this.options.pageSize))}parsePageNum(e){if(e)return e.pn}updateNextPageParams(e,t,n,r){t.ps=this.options.pageSize,t.pn=e}getList(e){return e.data}},Xa=class Vu extends M1{static isPageDataWithTotalResponse(t){return t!==null&&typeof t.data=="object"&&t.data!==null&&"total"in t.data&&"list"in t.data}hasNextPage(t,n,r){return!(!super.hasNextPage(t,n,r)||r!==null&&(!Vu.isPageDataWithTotalResponse(r)||r.data.total<=n.length||ao(r.data.list)))}getList(t){return Vu.isPageDataWithTotalResponse(t)?t.data.list:[]}},$1,V1,W1,D1,G1,Y1,U1,j1,Z1,K1,H1,X1,z1,J1,Q1,q1,ev,tv,nv,rv,sv,ov,av,iv,lv,uv,cv,Wu,Le,$e=class extends(Wu=Je,cv=[N()],uv=[N()],lv=[N()],iv=[N()],av=[N()],ov=[N()],sv=[N()],rv=[N()],nv=[N()],tv=[N()],ev=[N()],q1=[N()],Q1=[N()],J1=[N()],z1=[N()],X1=[N()],H1=[N()],K1=[N()],Z1=[N()],j1=[N()],U1=[N()],Y1=[N()],G1=[N()],D1=[N()],W1=[N()],V1=[N()],$1=[N()],Wu){constructor(){super(...arguments),ze(Le,5,this)}get userService(){return this.api.client.user}buildRelationPager(e,t,n){return this.createPager("https://api.bilibili.com/x/relation/tag",new M1({pageSize:200,total:typeof e=="object"?e.count:void 0,...t}),{query:{tagid:typeof e=="object"?e.tagid:e},...n})}async fetchRelationPage(e,t,n){return await this.buildRelationPager(e,t,n).fetchNext()}async fetchRelationPageWithNextParams(e,t,n){return await this.buildRelationPager(e,t,n).fetchPageWithNextParams()}async fetchRelationAll(e,t,n,r){return await this.buildRelationPager(e,t,r).fetchAllPage(n)}async getRelation(e,t){return this.get("https://api.bilibili.com/x/space/wbi/acc/relation",{query:{mid:e,web_location:"333.1387"},...t})}getFollowTags(e){return this.get("https://api.bilibili.com/x/relation/tags",e)}getFollowingsByTag(e,t,n,r){return this.fetchRelationAll(e,t,n,r)}createFollowTag(e,t){return this.save("https://api.bilibili.com/x/relation/tag/create",{data:{tag:e},...t})}updateFollowTag(e,t){return this.save("https://api.bilibili.com/x/relation/tag/update",{data:e,...t})}deleteFollowTag(e,t){return this.save("https://api.bilibili.com/x/relation/tag/del",{data:{tagid:`${e}`},...t})}async getFollowsGroupedByTag(e,t,n){let r=await this.getFollowTags(n);for(let s of r)s.list=await this.getFollowingsByTag(s,e,t,n);return r}buildFollowingsPager(e,t,n){if(!e&&!this.currUserUid)throw new Wn(this.clientConfig,"uid 为空");return this.createPager("https://api.bilibili.com/x/relation/followings",new Xa({pageSize:24,...t}),{query:{vmid:e??this.currUserUid,order:"desc"},...n})}async fetchFollowingsPage(e,t,n){return await this.buildFollowingsPager(e,t,n).fetchNext()}async fetchPageWithNextParams(e,t,n){return await this.buildFollowingsPager(e,t,n).fetchPageWithNextParams()}async fetchFollowingsAll(e,t,n,r){return await this.buildFollowingsPager(e,t,r).fetchAllPage(n)}async followUser(e,t){await this.modify(e,Kr.FOLLOW,!0,t)}async unFollowUser(e,t){await this.modify(e,Kr.UNFOLLOW,!0,t)}copyUsersToTag(e,t,n){return this.save("https://api.bilibili.com/x/relation/tags/copyUsers",{data:{fids:e.join(","),tagids:t.join(",")},...n})}buildFansPager(e,t,n){if(!e&&!this.currUserUid)throw new Wn(this.clientConfig,"uid 为空");return this.createPager("https://api.bilibili.com/x/relation/fans",new Xa({pageSize:24,...t}),{query:{vmid:e??this.currUserUid,order:"desc"},...n})}async fetchFansPage(e,t,n){return await this.buildFansPager(e,t,n).fetchNext()}async fetchFansPageWithNextParams(e,t,n){return await this.buildFansPager(e,t,n).fetchPageWithNextParams()}async fetchFansAll(e,t,n,r){return await this.buildFansPager(e,t,r).fetchAllPage(n)}async removeFan(e,t){await this.modify(e,Kr.REMOVE_FAN,!0,t)}async getStat(e,t){return await this.get("https://api.bilibili.com/x/relation/stat",{query:{vmid:e},...t})}async avoidRiskControl(e,t){await this.get("https://api.bilibili.com/x/web-interface/wbi/search/all/v2",{query:{__refresh__:"true",_extra:"",context:"",page:"1",page_size:"42",order:"",pubtime_begin_s:"0",pubtime_end_s:"0",duration:"",from_source:"",from_spmid:"333.337",platform:"pc",highlight:"1",single_column:"0",keyword:`UID: ${e}`,ad_resource:"5646",source_tag:"3"},...t,logRequestParams:!1}),await Ps(666,t?.signal),await this.getRelation(e),await Ps(50,t?.signal),await this.getStat(e,t),await Ps(50,t?.signal),await this.userService.getUpStat(e,t),await Ps(666,t?.signal)}async modify(e,t,n=!0,r){n&&await this.avoidRiskControl(e,r),await this.save("https://api.bilibili.com/x/relation/modify",{query:{statistics:'{"appId":100,"platform":5}',...t.code!==Kr.BLOCK.code?{"x-bili-device-req-json":'{"platform":"web","device":"pc","spmid":"333.1387"}'}:{}},data:{fid:String(e),act:String(t.code),re_src:t.reSrc.toString(),spmid:"333.1387",extend_content:`{"entity":"query","entity_id":"${e}"}`,gaia_source:"web_main",...t.code!==Kr.BLOCK.code?{is_from_frontend_component:"true"}:{}},ignoreBusinessError:!1,...r})}async blockUser(e,t){await this.modify(e,Kr.BLOCK,!1,t)}async unBlockUser(e,t){await this.modify(e,Kr.UNBLOCK,!0,t)}buildBlocksPager(e,t){return this.createPager("https://api.bilibili.com/x/relation/blacks",new Xa({pageSize:50,...e}),{...t})}async fetchBlocksPage(e,t){return await this.buildBlocksPager(e,t).fetchNext()}async fetchBlocksPageWithNextParams(e,t){return await this.buildBlocksPager(e,t).fetchPageWithNextParams()}async fetchBlocksAll(e,t,n){return await this.buildBlocksPager(e,n).fetchAllPage(t)}};Le=He(Wu),x(Le,1,"fetchRelationPage",cv,$e),x(Le,1,"fetchRelationPageWithNextParams",uv,$e),x(Le,1,"fetchRelationAll",lv,$e),x(Le,1,"getRelation",iv,$e),x(Le,1,"getFollowTags",av,$e),x(Le,1,"getFollowingsByTag",ov,$e),x(Le,1,"createFollowTag",sv,$e),x(Le,1,"updateFollowTag",rv,$e),x(Le,1,"deleteFollowTag",nv,$e),x(Le,1,"getFollowsGroupedByTag",tv,$e),x(Le,1,"fetchFollowingsPage",ev,$e),x(Le,1,"fetchPageWithNextParams",q1,$e),x(Le,1,"fetchFollowingsAll",Q1,$e),x(Le,1,"followUser",J1,$e),x(Le,1,"unFollowUser",z1,$e),x(Le,1,"copyUsersToTag",X1,$e),x(Le,1,"fetchFansPage",H1,$e),x(Le,1,"fetchFansPageWithNextParams",K1,$e),x(Le,1,"fetchFansAll",Z1,$e),x(Le,1,"getStat",j1,$e),x(Le,1,"avoidRiskControl",U1,$e),x(Le,1,"modify",Y1,$e),x(Le,1,"blockUser",G1,$e),x(Le,1,"unBlockUser",D1,$e),x(Le,1,"fetchBlocksPage",W1,$e),x(Le,1,"fetchBlocksPageWithNextParams",V1,$e),x(Le,1,"fetchBlocksAll",$1,$e),Xe(Le,$e);var ZP=class extends Ut{hasNextPage(e,t,n){if(n!==null){if(n.data==null)return!1;let r=n.data;if(r.cursor.ps===0||r.cursor.max===0)return!1}return!0}parsePageNum(e){}updateNextPageParams(e,t,n,r){if(r===null)t.ps=this.options.pageSize,t.max=0,t.view_at=0,t.business=t.business??"";else{let s=r.data.cursor;t.ps=s.ps,t.max=s.max,t.view_at=s.view_at,t.business=s.business}}getList(e){return e.data.list}},fv,dv,pv,hv,mv,gv,bv,vv,Du,hn,Rn=class extends(Du=Je,vv=[N()],bv=[N()],gv=[N()],mv=[N()],hv=[N()],pv=[N()],dv=[N()],fv=[N()],Du){constructor(){super(...arguments),ze(hn,5,this)}buildPager(e,t,n){return this.createPager("https://api.bilibili.com/x/web-interface/history/cursor",new ZP({pageSize:20,...t}),{query:{business:e??""},...n})}async fetchPage(e,t,n){return await this.buildPager(e,t,n).fetchNext()}async fetchPageWithNextParams(e,t,n){return await this.buildPager(e,t,n).fetchPageWithNextParams()}async fetchAll(e,t,n,r){return await this.buildPager(e,t,r).fetchAllPage(n)}deleteHistory(e,t){return this.save("https://api.bilibili.com/x/v2/history/delete",{data:{kid:e},...t})}clearHistory(e){return this.save("https://api.bilibili.com/x/v2/history/clear",{...e})}setHistoryShadow(e,t){return this.save("https://api.bilibili.com/x/v2/history/shadow/set",{data:{switch:e},...t})}getHistoryShadow(e){return this.get("https://api.bilibili.com/x/v2/history/shadow",{...e})}report(e,t){return this.save("https://api.bilibili.com/x/v2/history/report",{data:{...e,platform:"web"},...t})}};hn=He(Du),x(hn,1,"fetchPage",vv,Rn),x(hn,1,"fetchPageWithNextParams",bv,Rn),x(hn,1,"fetchAll",gv,Rn),x(hn,1,"deleteHistory",mv,Rn),x(hn,1,"clearHistory",hv,Rn),x(hn,1,"setHistoryShadow",pv,Rn),x(hn,1,"getHistoryShadow",dv,Rn),x(hn,1,"report",fv,Rn),Xe(hn,Rn);var yv,wv,_v,Ev,Av,Sv,xv,Nv,Iv,Cv,Gu,Ht,rn=class extends(Gu=Je,Cv=[N()],Iv=[N()],Nv=[N()],xv=[N()],Sv=[N()],Av=[N()],Ev=[N()],_v=[N()],wv=[N()],yv=[N()],Gu){constructor(){super(...arguments),ze(Ht,5,this)}getSettings(e){return this.get("https://api.vc.bilibili.com/link_setting/v1/link_setting/get",{query:{msg_notify:1,show_unfollowed_msg:1,build:0,mobi_app:"web"},...e})}updateSettings(e,t){return this.save("https://api.vc.bilibili.com/link_setting/v1/link_setting/set",{data:{...e,build:0,mobi_app:"web"},...t})}getBlockWords(e){return this.get("https://api.vc.bilibili.com/x/im/link_setting/get_block_words",{query:{build:0,mobi_app:"web"},...e})}addBlockWord(e,t){return this.save("https://api.vc.bilibili.com/x/im/link_setting/add_block_word",{data:{content:e,build:0,mobi_app:"web"},...t})}delBlockWord(e,t){return this.save("https://api.vc.bilibili.com/x/im/link_setting/del_block_word",{data:{content:e,build:0,mobi_app:"web"},...t})}getAutoReplyRules(e,t){return this.get("https://api.vc.bilibili.com/x/im/auto_reply/get_reply_text",{query:{"type[]":e,build:0,mobi_app:"web"},...t})}setAutoReplyRule(e,t){return this.save("https://api.vc.bilibili.com/x/im/auto_reply/set_reply_text",{data:{build:0,mobi_app:"web",...e},...t})}delAutoReplyRule(e,t){return this.save("https://api.vc.bilibili.com/x/im/auto_reply/del_reply_text",{data:{id:e,build:0,mobi_app:"web"},...t})}getSystemSettings(e){return this.get("https://api.vc.bilibili.com/link_setting/v1/link_setting/get_sys_setting",{query:{build:0,mobi_app:"web"},...e})}canShowCreateGroupIcon(e){return this.get("https://api.vc.bilibili.com/link_group/v1/member/show_create_group_icon",{query:{build:0,mobi_app:"web"},...e})}};Ht=He(Gu),x(Ht,1,"getSettings",Cv,rn),x(Ht,1,"updateSettings",Iv,rn),x(Ht,1,"getBlockWords",Nv,rn),x(Ht,1,"addBlockWord",xv,rn),x(Ht,1,"delBlockWord",Sv,rn),x(Ht,1,"getAutoReplyRules",Av,rn),x(Ht,1,"setAutoReplyRule",Ev,rn),x(Ht,1,"delAutoReplyRule",_v,rn),x(Ht,1,"getSystemSettings",wv,rn),x(Ht,1,"canShowCreateGroupIcon",yv,rn),Xe(Ht,rn);var KP=class extends Ut{constructor(e){super({pageSize:20,...e})}hasNextPage(e,t,n){return!(n!==null&&(n.data==null||n.data.cursor.is_end))}parsePageNum(e){}updateNextPageParams(e,t,n,r){if(r!=null){let s=r.data.cursor;t.id=s.id,t.reply_time=s.time}}getList(e){return e.data.items}},HP=class extends Ut{constructor(e){super({pageSize:20,...e})}hasNextPage(e,t,n){return!(n!==null&&(n.data==null||n.data.cursor.is_end))}parsePageNum(e){}updateNextPageParams(e,t,n,r){if(r!=null){let s=r.data.cursor;t.id=s.id,t.at_time=s.time}}getList(e){return e.data.items}},XP=class extends Ut{constructor(t){super({pageSize:20,...t})}hasNextPage(t,n,r){return!(r!==null&&(r.data==null||r.data.total.cursor.is_end))}parsePageNum(t){}updateNextPageParams(t,n,r,s){if(s!=null){let o=s.data.total.cursor;n.id=o.id,n.like_time=o.time}}getList(t){return t.data.total.items}},zP=class extends Ut{constructor(t){super({pageSize:17,...t})}hasNextPage(t,n,r){if(r!==null){if(r.data==null)return!1;let s=r.data;if(s==null||ao(s))return!1}return!0}parsePageNum(t){}updateNextPageParams(t,n,r,s){r!=null&&r.length>0&&(n.cursor=r[r.length-1].cursor)}getList(t){return t.data}},Tv,Rv,Pv,Bv,Ov,kv,Fv,Lv,Mv,$v,Vv,Wv,Dv,Gv,Yv,Uv,jv,Zv,Kv,Yu,tt,at=class extends(Yu=Je,Kv=[N()],Zv=[N()],jv=[N()],Uv=[N()],Yv=[N()],Gv=[N()],Dv=[N()],Wv=[N()],Vv=[N()],$v=[N()],Mv=[N()],Lv=[N()],Fv=[N()],kv=[N()],Ov=[N()],Bv=[N()],Pv=[N()],Rv=[N()],Tv=[N()],Yu){constructor(){super(...arguments),ze(tt,5,this)}getUnreadCount(e){return this.get("https://api.vc.bilibili.com/x/im/web/msgfeed/unread",{query:{build:0,mobi_app:"web"},...e})}delMessage(e,t,n){return this.save("https://api.bilibili.com/x/msgfeed/del",{data:{tp:t,id:e,build:0,mobi_app:"web",platform:"web"},...n})}buildBasePager(e,t,n){return this.createPager(`https://api.bilibili.com/x/msgfeed/${e}`,t,{query:{platform:"web",build:0,mobi_app:"web",web_location:"333.40164"},...n})}buildReplyPager(e,t){return this.buildBasePager("reply",new KP(e),t)}buildAtPager(e,t){return this.buildBasePager("at",new HP(e),t)}buildLikePager(e,t){return this.buildBasePager("like",new XP(e),t)}async fetchReplyPage(e,t){return await this.buildReplyPager(e,t).fetchNext()}async fetchReplyPageWithNextParams(e,t){return await this.buildReplyPager(e,t).fetchPageWithNextParams()}async fetchReplyAll(e,t,n){return await this.buildReplyPager(e,n).fetchAllPage(t)}delReplyMessage(e,t){return this.delMessage(e,1,t)}async fetchAtPage(e,t){return await this.buildAtPager(e,t).fetchNext()}async fetchAtPageWithNextParams(e,t){return await this.buildAtPager(e,t).fetchPageWithNextParams()}async fetchAtAll(e,t,n){return await this.buildAtPager(e,n).fetchAllPage(t)}delAtMessage(e,t){return this.delMessage(e,2,t)}async fetchLikePage(e,t){return await this.buildLikePager(e,t).fetchNext()}async fetchLikePageWithNextParams(e,t){return await this.buildLikePager(e,t).fetchPageWithNextParams()}async fetchLikeAll(e,t,n){return await this.buildLikePager(e,n).fetchAllPage(t)}setLikeMsgState(e,t,n){return this.save("https://api.bilibili.com/x/msgfeed/notice",{data:{tp:0,id:e,notice_state:t,build:0,mobi_app:"web",platform:"web"},...n})}delLikeMessage(e,t){return this.delMessage(e,0,t)}buildSystemPager(e,t){return this.createPager("https://message.bilibili.com/x/sys-msg/query_notify_list",new zP(e),{query:{page_size:20,build:0,platform:"web",mobi_app:"web",data_type:"web",has_up:"1",source_platform:"web",web_location:"333.40164"},...t})}async fetchSystemPage(e,t){return await this.buildSystemPager(e,t).fetchNext()}async fetchSystemPageWithNextParams(e,t){return await this.buildSystemPager(e,t).fetchPageWithNextParams()}async fetchSystemAll(e,t,n){return await this.buildSystemPager(e,n).fetchAllPage(t)}delSysMessages(e,t){return this.save("https://message.bilibili.com/x/sys-msg/del_notify_list",{query:{build:0,mobi_app:"web",csrf:this.clientConfig.context?.userCookie.bili_jct??""},data:JSON.stringify({station_ids:e.filter(n=>n.is_station===1).map(n=>n.id),ids:e.filter(n=>n.is_station!==1).map(n=>n.id),type:4,build:0,mobi_app:"web"}),...t})}};tt=He(Yu),x(tt,1,"getUnreadCount",Kv,at),x(tt,1,"delMessage",Zv,at),x(tt,1,"fetchReplyPage",jv,at),x(tt,1,"fetchReplyPageWithNextParams",Uv,at),x(tt,1,"fetchReplyAll",Yv,at),x(tt,1,"delReplyMessage",Gv,at),x(tt,1,"fetchAtPage",Dv,at),x(tt,1,"fetchAtPageWithNextParams",Wv,at),x(tt,1,"fetchAtAll",Vv,at),x(tt,1,"delAtMessage",$v,at),x(tt,1,"fetchLikePage",Mv,at),x(tt,1,"fetchLikePageWithNextParams",Lv,at),x(tt,1,"fetchLikeAll",Fv,at),x(tt,1,"setLikeMsgState",kv,at),x(tt,1,"delLikeMessage",Ov,at),x(tt,1,"fetchSystemPage",Bv,at),x(tt,1,"fetchSystemPageWithNextParams",Pv,at),x(tt,1,"fetchSystemAll",Rv,at),x(tt,1,"delSysMessages",Tv,at),Xe(tt,at);var JP=class extends Ut{constructor(t){super({pageSize:20,...t})}hasNextPage(t,n,r){if(r!==null){if(r.data==null)return!1;let s=r.data;if(s.has_more===0||s.session_list==null||s.session_list.length===0)return!1}return!0}parsePageNum(t){}updateNextPageParams(t,n,r,s){if(s!=null){let o=s.data.session_list;o!=null&&(n.end_ts=o[o.length-1].session_ts)}}getList(t){return t.data.session_list}},Hv,Xv,zv,Jv,Qv,qv,e2,Uu,Pn,er=class extends(Uu=Je,e2=[N()],qv=[N()],Qv=[N()],Jv=[N()],zv=[N()],Xv=[N()],Hv=[N()],Uu){constructor(){super(...arguments),ze(Pn,5,this)}getUnreadCount(e){return this.get("https://api.vc.bilibili.com/session_svr/v1/session_svr/single_unread",{query:{build:0,mobi_app:"web"},...e})}getMyGroupUnreadCount(e){return this.get("https://api.vc.bilibili.com/session_svr/v1/session_svr/my_group_unread",{query:{build:0,mobi_app:"web"},...e})}buildPager(e,t,n){let r=e?.session_type??1;return this.createPager("https://api.vc.bilibili.com/session_svr/v1/session_svr/get_sessions",new JP(t),{query:{...e,session_type:r,group_fold:r===1?"2":"1",size:r!==1?1:void 0,unfollow_fold:"0",sort_rule:"1",platform:"web",build:0,mobi_app:"web",web_location:"333.40164"},...n})}async fetchPage(e,t,n){return await this.buildPager(e,t,n).fetchNext()}async fetchPageWithNextParams(e,t,n){return await this.buildPager(e,t,n).fetchPageWithNextParams()}async fetchAll(e,t,n,r){return await this.buildPager(e,t,r).fetchAllPage(n)}async setSessionRead(e,t){await this.save("https://api.vc.bilibili.com/session_svr/v1/session_svr/update_ack",{data:{talker_id:e.talker_id,session_type:e.session_type,ack_seqno:e.ack_seqno,build:0,mobi_app:"web"},...t})}async delSession(e,t){await this.save("https://api.vc.bilibili.com/session_svr/v1/session_svr/remove_session",{data:{talker_id:e.talker_id,session_type:e.session_type,build:0,mobi_app:"web"},...t})}};Pn=He(Uu),x(Pn,1,"getUnreadCount",e2,er),x(Pn,1,"getMyGroupUnreadCount",qv,er),x(Pn,1,"fetchPage",Qv,er),x(Pn,1,"fetchPageWithNextParams",Jv,er),x(Pn,1,"fetchAll",zv,er),x(Pn,1,"setSessionRead",Xv,er),x(Pn,1,"delSession",Hv,er),Xe(Pn,er);var QP=class extends Ut{constructor(e){super({pageSize:20,...e})}hasNextPage(e,t,n){if(n!==null){if(n.data==null)return!1;let r=n.data;if(r.count<=t.length||r.list.length===0)return!1}return!0}parsePageNum(e){if(e)return e.pn}updateNextPageParams(e,t,n,r){t.ps=this.options.pageSize,t.pn=e}getList(e){return e.data.list}},t2,n2,r2,s2,o2,a2,i2,l2,u2,ju,sn,mn=class extends(ju=Je,u2=[N()],l2=[N()],i2=[N()],a2=[N()],o2=[N()],s2=[N()],r2=[N()],n2=[N()],t2=[N()],ju){constructor(){super(...arguments),ze(sn,5,this)}buildPager(e,t){return this.createPager("https://api.bilibili.com/x/v2/history/toview/web",new QP(e),{query:{viewed:0,asc:!1,key:"",need_split:!0,build:0,platform:"web",mobi_app:"web"},...t})}async fetchPage(e,t){return await this.buildPager(e,t).fetchNext()}async fetchPageWithNextParams(e,t){return await this.buildPager(e,t).fetchPageWithNextParams()}async fetchAll(e,t,n){return await this.buildPager(e,n).fetchAllPage(t)}async addToView(e,t){await this.save("https://api.bilibili.com/x/v2/history/toview/add",{data:{aid:e},...t})}async addAllToView(e,t){await this.save("https://space.bilibili.com/ajax/channel/addAllToView",{data:{...typeof e=="string"?{bvid:e}:{aid:e}},...t})}async delToView(e,t){await this.save("https://api.bilibili.com/x/v2/history/toview/v2/dels",{data:{resources:e.join(",")},...t})}async clearToView(e,t){await this.save("https://api.bilibili.com/x/v2/history/toview/clear",{data:{clean_type:e},...t})}async moveFavFolder(e,t){await this.save("https://api.bilibili.com/x/v2/history/toview/move",{data:{resources:e.join(","),tar_media_id:t}})}async getTotal(e){let t=await this.get("https://api.bilibili.com/x/v3/fav/folder/list4navigate?web_location=333.1007",e);try{return t[1].mediaListResponse.count}catch{return}}};sn=He(ju),x(sn,1,"fetchPage",u2,mn),x(sn,1,"fetchPageWithNextParams",l2,mn),x(sn,1,"fetchAll",i2,mn),x(sn,1,"addToView",a2,mn),x(sn,1,"addAllToView",o2,mn),x(sn,1,"delToView",s2,mn),x(sn,1,"clearToView",r2,mn),x(sn,1,"moveFavFolder",n2,mn),x(sn,1,"getTotal",t2,mn),Xe(sn,mn);var Of=class extends Ut{constructor(e,t="list",n="has_more",r){super(e),this.listKey=t,this.hasMoreKey=n,this.countKey=r}hasNextPage(e,t,n){return n!==null&&n.data?n.data.has_more:!0}parsePageNum(e){if(e)return e.pn}updateNextPageParams(e,t,n,r){t.ps=this.options.pageSize,t.pn=e}getList(e){return e.data[this.listKey]}getTotal(e){if(this.countKey&&e)return e.data[this.countKey]}},c2,f2,d2,p2,h2,m2,g2,b2,v2,y2,w2,_2,E2,A2,Zu,wt,Nt=class extends(Zu=Je,A2=[N()],E2=[N()],_2=[N()],w2=[N()],y2=[N()],v2=[N()],b2=[N()],g2=[N()],m2=[N()],h2=[N()],p2=[N()],d2=[N()],f2=[N()],c2=[N()],Zu){constructor(){super(...arguments),ze(wt,5,this)}async getFavFolders(e,t,n){return await this.get("https://api.bilibili.com/x/v3/fav/folder/created/list-all",{query:{up_mid:e??this.currUserUid,...t?{rid:t}:{},web_location:"333.1387"},...n})??{list:[],count:0}}async getFavFolderMeta(e,t){return await this.get("https://api.bilibili.com/x/v3/fav/folder/info",{query:{media_id:e},...t})}buildPager(e,t,n){return this.createPager("https://api.bilibili.com/x/v3/fav/resource/list",new Of({pageSize:40,...t},"medias"),{query:{...e,platform:"web",web_location:"333.1387"},...n})}async fetchPage(e,t,n){return await this.buildPager(e,t,n).fetchNext()}async fetchPageWithNextParams(e,t,n){return await this.buildPager(e,t,n).fetchPageWithNextParams()}async fetchAll(e,t,n,r){let s=this.buildPager(e,t,r),o=await s.fetchAllPage(n);if(!s.lastApiResponse?.data.info)throw new Wn(this.clientConfig,`收藏夹[${e.media_id}]不存在`);return{info:s.lastApiResponse?.data.info,medias:o,has_more:!1}}async getFavIds(e,t){return await this.get("https://api.bilibili.com/x/v3/fav/resource/ids",{query:{media_id:e},...t})}async addFavFolder(e,t){return await this.save("https://api.bilibili.com/x/v3/fav/folder/add",{data:{...e},...t})}async updateFavFolder(e,t){let{id:n,...r}=e;return await this.save("https://api.bilibili.com/x/v3/fav/folder/edit",{data:{...r,media_id:n},...t})}async delFavFolder(e,t){await this.save("https://api.bilibili.com/x/v3/fav/folder/del",{data:{media_ids:e.join(",")},...t})}async copyFavItems(e,t,n,r,s){await this.save("https://api.bilibili.com/x/v3/fav/resource/copy",{data:{src_media_id:e,tar_media_id:t,mid:n,resources:r,platform:"web"},...s})}async moveFavItems(e,t,n,r,s){await this.save("https://api.bilibili.com/x/v3/fav/resource/move",{data:{src_media_id:e,tar_media_id:t,mid:n,resources:r,platform:"web"},...s})}async batchDelFavItems(e,t,n){await this.save("https://api.bilibili.com/x/v3/fav/resource/batch-del",{data:{media_id:e,resources:t,platform:"web"},...n})}async cleanFavItems(e,t){await this.save("https://api.bilibili.com/x/v3/fav/resource/clean",{data:{media_id:e,platform:"web"},...t})}async favVideo(e,t,n,r){return await this.save("https://api.bilibili.com/x/v3/fav/resource/deal",{data:{rid:e,add_media_ids:t.join(","),del_media_ids:n.join(","),type:"2",platform:"web",eab_x:"1",ramval:"10",ga:"1",gaia_source:"web_normal"},...r})}};wt=He(Zu),x(wt,1,"getFavFolders",A2,Nt),x(wt,1,"getFavFolderMeta",E2,Nt),x(wt,1,"fetchPage",_2,Nt),x(wt,1,"fetchPageWithNextParams",w2,Nt),x(wt,1,"fetchAll",y2,Nt),x(wt,1,"getFavIds",v2,Nt),x(wt,1,"addFavFolder",b2,Nt),x(wt,1,"updateFavFolder",g2,Nt),x(wt,1,"delFavFolder",m2,Nt),x(wt,1,"copyFavItems",h2,Nt),x(wt,1,"moveFavItems",p2,Nt),x(wt,1,"batchDelFavItems",d2,Nt),x(wt,1,"cleanFavItems",f2,Nt),x(wt,1,"favVideo",c2,Nt),Xe(wt,Nt);var S2,x2,N2,I2,C2,Ku,Nr,Xr=class extends(Ku=Je,C2=[N()],I2=[N()],N2=[N()],x2=[N()],S2=[N()],Ku){constructor(){super(...arguments),ze(Nr,5,this)}buildPager(e,t,n){return this.createPager("https://api.bilibili.com/x/v3/fav/folder/collected/list",new Of({pageSize:50,...t},void 0,void 0,"count"),{query:{up_mid:e??this.currUserUid,platform:"web",web_location:"333.1387"},...n})}async fetchPage(e,t,n){return await this.buildPager(e,t,n).fetchNext()}async fetchPageWithNextParams(e,t,n){return await this.buildPager(e,t,n).fetchPageWithNextParams()}async fetchAll(e,t,n,r){return await this.buildPager(e,t,r).fetchAllPage(n)}async add(e,t){await this.save("https://api.bilibili.com/x/v3/fav/season/fav",{data:{season_id:e,platform:"web"},...t})}async del(e,t){await this.save("https://api.bilibili.com/x/v3/fav/season/unfav",{data:{season_id:e,platform:"web"},...t})}};Nr=He(Ku),x(Nr,1,"fetchPage",C2,Xr),x(Nr,1,"fetchPageWithNextParams",I2,Xr),x(Nr,1,"fetchAll",N2,Xr),x(Nr,1,"add",x2,Xr),x(Nr,1,"del",S2,Xr),Xe(Nr,Xr);var qP=class extends Ut{constructor(t){super({pageSize:20,...t})}hasNextPage(t,n,r){return r!==null&&r.data?r.data.has_more:!0}parsePageNum(t){if(t)return t.page}updateNextPageParams(t,n,r,s){n.page=t,n.page_size=this.options.pageSize}getList(t){return t.data.items}},T2,R2,P2,B2,O2,k2,Hu,tr,Ir=class extends(Hu=Je,k2=[N()],O2=[N()],B2=[N()],P2=[N()],R2=[N()],T2=[N()],Hu){constructor(){super(...arguments),ze(tr,5,this)}buildPager(t,n){return this.createPager("https://api.bilibili.com/x/polymer/web-dynamic/v1/opus/feed/fav",new qP(t),{query:{platform:"web",web_location:"333.1387"},...n})}async fetchPage(t,n){return await this.buildPager(t,n).fetchNext()}async fetchPageWithNextParams(t,n){return await this.buildPager(t,n).fetchPageWithNextParams()}async fetchAll(t,n,r){return await this.buildPager(t,r).fetchAllPage(n)}async del(t,n){await this.post("https://api.bilibili.com/x/community/cosmo/interface/simple_action",{query:{csrf:this.clientConfig.context?.userCookie.bili_jct,gaia_source:"main_web"},data:JSON.stringify({"":{spmid:"444.42.0.0",from:"unknown",from_spmid:"333.1387.0.0"},action:4,entity:{object_id_str:t,type:{biz:2}}}),...n})}async addByCvId(t,n){await this.save("https://api.bilibili.com/x/article/favorites/add",{data:{id:t},...n})}async addByOpusId(t,n){let r=await this.get("https://api.bilibili.com/x/polymer/web-dynamic/v1/opus/detail",{query:{id:t},...n});await ia(200,300),await this.addByCvId(r.fallback.id)}};tr=He(Hu),x(tr,1,"fetchPage",k2,Ir),x(tr,1,"fetchPageWithNextParams",O2,Ir),x(tr,1,"fetchAll",B2,Ir),x(tr,1,"del",P2,Ir),x(tr,1,"addByCvId",R2,Ir),x(tr,1,"addByOpusId",T2,Ir),Xe(tr,Ir);var vo={all:0},F2,L2,M2,$2,V2,W2,Xu,nr,Cr=class extends(Xu=Je,W2=[N()],V2=[N()],$2=[N()],M2=[N()],L2=[N()],F2=[N()],Xu){constructor(){super(...arguments),ze(nr,5,this)}buildPager(e,t,n=vo.all,r,s){return this.createPager("https://api.bilibili.com/x/space/bangumi/follow/list",new Xa({pageSize:24,...r}),{query:{vmid:e??this.currUserUid,type:t,follow_status:n,platform:"web",web_location:"333.1387"},...s})}async fetchPage(e,t,n=vo.all,r,s){return await this.buildPager(e,t,n,r,s).fetchNext()}async fetchPageWithNextParams(e,t,n=vo.all,r,s){return await this.buildPager(e,t,n,r,s).fetchPageWithNextParams()}async fetchAll(e,t,n=vo.all,r,s,o){return await this.buildPager(e,t,n,r,o).fetchAllPage(s)}async fetchMyAll(e,t=vo.all,n,r,s){return this.fetchAll(this.currUserUid,e,t,n,r,s)}async add(e,t){await this.save("https://api.bilibili.com/pgc/web/follow/add",{data:{season_id:e,platform:"web"},...t})}async del(e,t){await this.save("https://api.bilibili.com/pgc/web/follow/del",{data:{season_id:e,platform:"web"},...t})}};nr=He(Xu),x(nr,1,"fetchPage",W2,Cr),x(nr,1,"fetchPageWithNextParams",V2,Cr),x(nr,1,"fetchAll",$2,Cr),x(nr,1,"fetchMyAll",M2,Cr),x(nr,1,"add",L2,Cr),x(nr,1,"del",F2,Cr),Xe(nr,Cr);var e9=class extends Ut{constructor(e){super({pageSize:40,...e})}hasNextPage(e,t,n){if(n!==null){if(n.data==null)return!1;let r=n.data,s=r.page;if(ao(r.list.vlist)||s.count<=t.length||s.count<=s.pn*s.ps)return!1}return!0}parsePageNum(e){if(e)return e.pn}updateNextPageParams(e,t,n,r){t.ps=this.options.pageSize,t.pn=e}getList(e){return e.data.list.vlist}},D2,G2,Y2,zu,Cs,xo=class extends(zu=Je,Y2=[N()],G2=[N()],D2=[N()],zu){constructor(){super(...arguments),ze(Cs,5,this)}buildPager(e,t,n){return this.createPager("https://api.bilibili.com/x/space/wbi/arc/search",new e9(t),{query:{...e,platform:"web"},...n})}async fetchPage(e,t,n){return await this.buildPager(e,t,n).fetchNext()}async fetchPageWithNextParams(e,t,n){return await this.buildPager(e,t,n).fetchPageWithNextParams()}async fetchAll(e,t,n,r){let s=this.buildPager(e,t,r);return await s.fetchAllPage(n),s.lastApiResponse.data.list.vlist=s.list,s.lastApiResponse.data}};Cs=He(zu),x(Cs,1,"fetchPage",Y2,xo),x(Cs,1,"fetchPageWithNextParams",G2,xo),x(Cs,1,"fetchAll",D2,xo),Xe(Cs,xo);var U2,j2,Z2,K2,Ju,zr,qr=class extends(Ju=Je,K2=[N()],Z2=[N()],j2=[N()],U2=[N()],Ju){constructor(){super(...arguments),ze(zr,5,this)}getOnlineCount(t,n){return this.get("https://api.bilibili.com/x/player/online/total",{query:{...this.resolveVideoId(t),cid:t.cid},...n})}getParts(t,n){return this.get("https://api.bilibili.com/x/player/pagelist",{query:{...this.resolveVideoId(t)},...n})}async getOwnParts(t,n){let r=await this.get("https://member.bilibili.com/x/vupre/web/archive/view",{query:{topic_grey:"1",bvid:t},...n});return r?.videos&&Array.isArray(r.videos)?r.videos:[]}getInfo(t,n){return this.get("https://api.bilibili.com/x/web-interface/wbi/view",{query:{...this.resolveVideoId(t)},...n})}};zr=He(Ju),x(zr,1,"getOnlineCount",K2,qr),x(zr,1,"getParts",Z2,qr),x(zr,1,"getOwnParts",j2,qr),x(zr,1,"getInfo",U2,qr),Xe(zr,qr);var t9=class extends Ut{constructor(t){super({pageSize:20,...t})}hasNextPage(t,n,r){if(r!==null){if(r.data==null)return!1;let s=r.data;if(s.has_more!==void 0)return s.has_more}return!0}parsePageNum(t){}updateNextPageParams(t,n,r,s){if(s!=null){let o=s.data;n.offset=o.offset}}getList(t){return t.data.items}},H2,X2,z2,J2,Q2,Qu,Tr,Pr=class extends(Qu=Je,Q2=[N()],J2=[N()],z2=[N()],X2=[N()],H2=[N()],Qu){constructor(){super(...arguments),ze(Tr,5,this)}buildDynamicPager(e,t,n){return this.createPager("https://api.bilibili.com/x/polymer/web-dynamic/v1/feed/all",new t9(t),{query:{...e,platform:"web",build:0,mobi_app:"web",web_location:"333.1365"},...n})}async fetchDynamicPage(e,t,n){return await this.buildDynamicPager(e,t,n).fetchNext()}async fetchDynamicPageWithNextParams(e,t,n){return await this.buildDynamicPager(e,t,n).fetchPageWithNextParams()}async fetchDynamicAll(e,t,n,r){return await this.buildDynamicPager(e,t,r).fetchAllPage(n)}async newUpdatesCount(e,t){return(await this.get("https://api.bilibili.com/x/polymer/web-dynamic/v1/feed/all/update",{query:{...e,web_location:"333.1365"},...t})).update_num}async getDetail(e,t){return(await this.get("https://api.bilibili.com/x/polymer/web-dynamic/v1/detail",{query:{timezone_offset:"-480",platform:"web",gaia_source:"main_web",features:"itemOpusStyle,opusBigCover,onlyfansVote,endFooterHidden,decorationCard,onlyfansAssetsV2,ugcDelete,onlyfansQaCard,editable,opusPrivateVisible,avatarAutoTheme,sunflowerStyle,cardsEnhance,eva3CardOpus,eva3CardVideo,eva3CardComment,eva3CardVote,eva3CardUser",web_location:"333.1368","x-bili-device-req-json":'{"platform":"web","device":"pc","spmid":"333.1368"}',...e},...t})).item}};Tr=He(Qu),x(Tr,1,"fetchDynamicPage",Q2,Pr),x(Tr,1,"fetchDynamicPageWithNextParams",J2,Pr),x(Tr,1,"fetchDynamicAll",z2,Pr),x(Tr,1,"newUpdatesCount",X2,Pr),x(Tr,1,"getDetail",H2,Pr),Xe(Tr,Pr);var q2,ey,ty,ny,ry,sy,oy,qu,Bn,rr=class extends(qu=Je,oy=[N()],sy=[N()],ry=[N()],ny=[N()],ty=[N()],ey=[N()],q2=[N()],qu){constructor(){super(...arguments),ze(Bn,5,this),this._videoInfoService=null}get videoInfoService(){return this._videoInfoService||(this._videoInfoService=new qr(this.api)),this._videoInfoService}getRelation(e,t){return this.get("https://api.bilibili.com/x/web-interface/archive/relation",{query:{...this.resolveVideoId(e)},returnFormat:"ApiResponse",ignoreBusinessError:!0,...t})}like(e,t){return this.save("https://api.bilibili.com/x/web-interface/archive/like",{data:{...this.resolveVideoId(e),like:e.like?"1":"2"},...t})}async hasLike(e,t){return await this.get("https://api.bilibili.com/x/web-interface/archive/has/like",{query:{...this.resolveVideoId(e)},...t})===1}dislike(e,t){return this.save("https://app.biliapi.net/x/v2/view/dislike",{data:{aid:e.avid,dislike:e.dislike?"0":"1"},...t})}async coin(e,t){let n=e.bvid;return n||(n=(await this.videoInfoService.getInfo(e)).bvid),this.save("https://api.bilibili.com/x/web-interface/coin/add",{data:{bvid:n,multiply:e.multiply,select_like:e.select_like??0,cross_domain:!0,from_spmid:"333.337.search-card.all.click",spmid:"333.788.0.0",statistics:'{"appId":100,"platform":5}',eab_x:2,ramval:0,source:"web_normal",ga:1},returnFormat:"ApiResponse",ignoreBusinessError:!0,...t,referer:`https://www.bilibili.com/video/${n}/?spm_id_from=333.1391.0.0`})}triple(e,t){return this.save("https://api.bilibili.com/x/web-interface/archive/like/triple",{data:{...this.resolveVideoId(e)},...t})}share(e,t){return this.save("https://api.bilibili.com/x/web-interface/share/add",{data:{...this.resolveVideoId(e),eab_x:1,ramval:316,source:"web_normal",ga:1},...t})}};Bn=He(qu),x(Bn,1,"getRelation",oy,rr),x(Bn,1,"like",sy,rr),x(Bn,1,"hasLike",ry,rr),x(Bn,1,"dislike",ny,rr),x(Bn,1,"coin",ty,rr),x(Bn,1,"triple",ey,rr),x(Bn,1,"share",q2,rr),Xe(Bn,rr);var ay,ec,za,tc=class extends(ec=Je,ay=[N()],ec){constructor(){super(...arguments),ze(za,5,this)}heartbeat(t,n,r){let s={params:{},body:{}},o=(i,l,u)=>{s.body[i]=s.params[u||"w"+i]=n[i]??t[u||"w"+i]??l};o("start_ts",Math.floor(Date.now()/1e3)),o("mid",this.currUserUid),o("aid",0),o("dt",2),o("realtime",0),o("played_time",0,"w_playedtime"),o("real_played_time",0),o("video_duration",180),o("last_play_progress_time",0);let a="https://www.bilibili.com/?spm_id_from=333.1365.0.0";return this.save("https://api.bilibili.com/x/click-interface/web/heartbeat",{query:{...s.params,web_location:1315873,...t},data:{quality:80,type:3,outer:0,statistics:'{"appId":100,"platform":5,"abtest":"","version":""}',max_play_progress_time:s.body.last_play_progress_time+s.body.played_time,refer_url:a,...s.body,mobi_app:"web",device:"web",platform:"web",cur_language_vt:"{}",perfer_type:"{}",play_mode:"1",spmid:"333.788.0.0",from_spmid:"333.1007.tianma.1-2-2.click",session:crypto.randomUUID().replace(/-/g,""),extra:'{"player_version":"4.8.36","play_method":3,"play_volume":1,"auto_play":0}',...n},init:{headers:{referer:a}},...r})}};za=He(ec),x(za,1,"heartbeat",ay,tc),Xe(za,tc);var iy,ly,nc,No,Ja=class extends(nc=Je,ly=[N()],iy=[N()],nc){constructor(){super(...arguments),ze(No,5,this)}getDailyTaskStatus(e){return this.get("https://api.bilibili.com/x/member/web/exp/reward",e)}getCoinTodayExp(e){return this.get("https://api.bilibili.com/x/web-interface/coin/today/exp",e)}};No=He(nc),x(No,1,"getDailyTaskStatus",ly,Ja),x(No,1,"getCoinTodayExp",iy,Ja),Xe(No,Ja);var n9=class extends Of{constructor(t,n="list",r){super(t,n),this.hasMoreKey=r}hasNextPage(t,n,r){return r!==null&&r.data?r.data[this.hasMoreKey]:!0}},uy,cy,fy,dy,rc,Jr,Ts=class extends(rc=Je,dy=[N()],fy=[N()],cy=[N()],uy=[N()],rc){constructor(){super(...arguments),ze(Jr,5,this)}buildPopularPager(e,t){return this.createPager("https://api.bilibili.com/x/web-interface/popular",new n9({pageSize:20,...e},"list","no_more"),{query:{},...t})}async fetchPopularPage(e,t){return await this.buildPopularPager(e,t).fetchNext()}async fetchPageWithNextParams(e,t){return await this.buildPopularPager(e,t).fetchPageWithNextParams()}getPopularSeriesList(e){return this.get("https://api.bilibili.com/x/web-interface/popular/series/list",{...e})}getPopularSeriesInfo(e,t){return this.get("https://api.bilibili.com/x/web-interface/popular/series/one",{query:{number:e},...t})}};Jr=He(rc),x(Jr,1,"fetchPopularPage",dy,Ts),x(Jr,1,"fetchPageWithNextParams",fy,Ts),x(Jr,1,"getPopularSeriesList",cy,Ts),x(Jr,1,"getPopularSeriesInfo",uy,Ts),Xe(Jr,Ts);var py,hy,sc,Io,Qa=class extends(sc=Je,hy=[N()],py=[N()],sc){constructor(){super(...arguments),ze(Io,5,this)}getNavNum(e,t){return this.get("https://api.bilibili.com/x/space/navnum",{query:{mid:e},...t})}getFavNum(e,t){return this.get("https://api.bilibili.com/x/space/fav/nav",{query:{mid:e},...t})}};Io=He(sc),x(Io,1,"getNavNum",hy,Qa),x(Io,1,"getFavNum",py,Qa),Xe(Io,Qa);var my,gy,oc,Co,qa=class extends(oc=Je,gy=[N()],my=[N()],oc){constructor(){super(...arguments),ze(Co,5,this)}getSpaceSettings(e){return this.get("https://api.bilibili.com/x/space/setting",{query:{web_location:"333.1387",mid:this.currUserUid},...e})}updatePrivacy(e,t){let n=Object.keys(e)[0],r=e[n];return this.save("https://api.bilibili.com/x/space/privacy/modify",{data:{field:n,value:r},...t})}};Co=He(oc),x(Co,1,"getSpaceSettings",gy,qa),x(Co,1,"updatePrivacy",my,qa),Xe(Co,qa);var r9=(e="info")=>({timeout:5e3,userAgent:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36",referer:"https://space.bilibili.com/10000",logLevel:e,logger:m8(e,(t,...n)=>{console[t](`[${new Date().toLocaleString()}]`,...n)}),autoMixinKey:!1}),by={method:"GET",skipWbiSign:!1,autoCsrf:!0,logRequestParams:!0},s9={...by,returnFormat:"ApiResponseData",ignoreBusinessError:!1},vy,yy,ac,To,ei=class extends(ac=Je,yy=[N()],vy=[N()],ac){constructor(){super(...arguments),ze(To,5,this)}get userService(){return this.api.client.user}getPlayUrl(e,t){return this.get("https://api.bilibili.com/x/player/wbi/playurl",{query:{fnval:1,fourk:1,high_quality:1,gaia_source:"view-card ",...e},init:{headers:{referer:`https://www.bilibili.com/video/${e.bvid}/?spm_id_from=333.1391.0.0`}},...t})}async getBestQualityUrl(e,t){let n=await this.getPlayUrl({...e,fnval:4048,qn:129},t);if(n.quality===n.accept_quality[0])return n;let r=n.accept_quality[0];await ia(100,200);let s=await this.userService.getMyInfo(void 0,t);return await ia(100,200),s.vip.type===0&&n.accept_quality[0]>=80&&(r=80),this.getPlayUrl({...e,qn:r},t)}};To=He(ac),x(To,1,"getPlayUrl",yy,ei),x(To,1,"getBestQualityUrl",vy,ei),Xe(To,ei);var o9=class extends Ut{constructor(e){super({pageSize:20,...e})}hasNextPage(e,t,n){if(n!==null){if(n.data==null)return!1;let r=n.data,s=r.page;if(ao(r.replies)||s.count<=t.length||s.count<=s.num*s.size)return!1}return!0}updateNextPageParams(e,t,n,r){t.ps=this.options.pageSize,t.pn=e}getList(e){return e.data.replies}parsePageNum(e){if(e?.pn)return e?.pn}},a9=class extends Ut{constructor(e){super({pageSize:20,...e})}hasNextPage(e,t,n){if(n!==null){if(n.data==null)return!1;let r=n.data,s=r.cursor;if(ao(r.replies)||s.is_end)return!1}return!0}updateNextPageParams(e,t,n,r){if(r){let s=r.data;t.pagination_str=`{"offset":"${s.cursor.pagination_reply.next_offset}"}`}}getList(e){let t=e.data,n=t.replies;return t.top.upper&&n.push(t.top.upper),n}parsePageNum(e){}},i9=23442827791579n,l9=2251799813685247n,u9=58n,Zh="FcwAPNKTMug3GV5Lj7EJnHpWsx4tb8haYeviqBz6rkCy12mUSDQX9RdoZf",wy=Object.create(null);for(let e=0;e<Zh.length;e++)wy[Zh[e]]=BigInt(e);function c9(e){if(!e.startsWith("BV1")||e.length!==12)throw new Error(`[utils/bv2av] Invalid BVID format: ${e}`);let t=Array.from(e);[t[3],t[9]]=[t[9],t[3]],[t[4],t[7]]=[t[7],t[4]];let n=0n;for(let r=3;r<12;r++){let s=wy[t[r]]??0n;n=n*u9+s}return Number(n&l9^i9)}var ic=async e=>{if(e=e?.trim(),!e)throw new Error("视频链接解析错误");if(e.length===12&&e.match(/^BV1[0-9a-zA-Z]{9}$/))return{bvid:e};if(e.match(/^av[0-9]+$/))return{aid:Number(e.slice(2))};let t=e.match(/^https:\/\/b23.tv\/([0-9a-z-A-Z]+)$/);return t?ic((await fetch(e)).url):(t=e.match(/https:\/\/www.bilibili.com\/video\/([^/?]+)/),ic(t?t[1]:void 0))},Kh=async e=>{if(e=e?.trim(),!e)throw new Error("用户 uid 解析错误");if(e.match(/^[0-9]+$/))return Number(e);let t=e.match(/\buid\b\s*[::]\s*(\d+)/i);return t?Number(t[1]):(t=e.match(/^https:\/\/b23.tv\/([0-9a-z-A-Z]+)$/),t?Kh((await fetch(e)).url):(t=e.match(/https:\/\/space.bilibili.com\/([^/?]+)/),Kh(t?t[1]:void 0)))},lc=async e=>{if(e=e?.trim(),!e)throw new Error("动态链接解析错误");if(e.match(/^[0-9]+$/))return e;let t=e.match(/^https:\/\/b23.tv\/([0-9a-z-A-Z]+)$/);return t?lc((await fetch(e)).url):(t=e.match(/https:\/\/t.bilibili.com\/([^/?]+)/),lc(t?t[1]:await cc(e)))},uc=async e=>{if(e=e?.trim(),!e)throw new Error("专栏评论链接解析错误");if(e.match(/^[0-9]+$/))return e;let t=e.match(/^https:\/\/b23.tv\/([0-9a-z-A-Z]+)$/);return t?uc((await fetch(e)).url):(t=e.match(/https:\/\/www.bilibili.com\/read\/cv([^/?]+)/),uc(t?t[1]:void 0))},cc=async e=>{if(e=e?.trim(),!e)throw new Error("专栏链接解析错误");if(e.match(/^[0-9]+$/))return e;let t=e.match(/^https:\/\/b23.tv\/([0-9a-z-A-Z]+)$/);return t?cc((await fetch(e)).url):(t=e.match(/https:\/\/www.bilibili.com\/opus\/([^/?]+)/),cc(t?t[1]:void 0))},_y=async(e,t)=>{t=t?.trim();let n="评论链接解析错误";if(!t)throw new Error(n);if(t.match(/^https:\/\/b23.tv\/([0-9a-z-A-Z]+)$/))return _y(e,(await fetch(t)).url);let r=new URLSearchParams(t.split("#")[0]),s=r.get("comment_root_id"),o=r.get("comment_secondary_id"),a=r.get("type");if(s==null)throw new Error(n);try{let i=await ic(t);if(i){let{aid:l,bvid:u}=i;return u&&(l=c9(u)),{oid:String(l),type:"1",root_id:s,rpid:o??void 0}}}catch{}if(a)try{let i=await lc(t);if(i){let l=await e.getDetail({rid:i,type:a});return{oid:String(i),type:String(l.basic.comment_type),root_id:s,rpid:o??void 0}}}catch{}try{let i=await uc(t);if(i)return{oid:String(i),type:"12",root_id:s,rpid:o??void 0}}catch{}throw new Error(n)},Ey,Ay,Sy,xy,Ny,Iy,Cy,Ty,Ry,Py,By,Oy,fc,Ot,$t=class extends(fc=Je,Oy=[N()],By=[N()],Py=[N()],Ry=[N()],Ty=[N()],Cy=[N()],Iy=[N()],Ny=[N()],xy=[N()],Sy=[N()],Ay=[N()],Ey=[N()],fc){constructor(){super(...arguments),ze(Ot,5,this),this._dynamicService=null}get dynamicService(){return this._dynamicService||(this._dynamicService=new Pr(this.api)),this._dynamicService}buildSubReplyPager(e,t,n){return this.createPager("https://api.bilibili.com/x/v2/reply/reply",new o9({...t}),{query:{...e,platform:"web",web_location:"333.1369"},...n,referer:`https://t.bilibili.com/${e.oid}?spm_id_from=333.1387.0.0`})}async fetchSubReplyPage(e,t,n){return await this.buildSubReplyPager(e,t,n).fetchNext()}async fetchSubPageWithNextParams(e,t,n){return await this.buildSubReplyPager(e,t,n).fetchPageWithNextParams()}async fetchSubReplyAll(e,t,n,r){return await this.buildSubReplyPager(e,t,r).fetchAllPage(n)}buildPager(e,t,n){return this.createPager("https://api.bilibili.com/x/v2/reply/wbi/main",new a9({...t}),{query:{seek_rpid:"",...e,plat:1,web_location:"1315875"},...n,referer:`https://t.bilibili.com/${e.oid}?spm_id_from=333.1387.0.0`})}async fetchPage(e,t,n){return await this.buildPager(e,t,n).fetchNext()}async fetchPageWithNextParams(e,t,n){return await this.buildPager(e,t,n).fetchPageWithNextParams()}async fetchAll(e,t,n,r){return await this.buildPager(e,t,r).fetchAllPage(n)}async resolveCommentItem(e,t){let{type:n,oid:r,rpid:s,root_id:o}=await _y(this.dynamicService,e),a=s??o,i=await this.buildPager({type:n,oid:r,seek_rpid:a,mode:"3"}).fetchNext(t);if(!i||i.length===0)return null;for(let l of i){if(l.rpid_str===a)return l;if(l.replies&&l.replies.length>0){for(let u of l.replies)if(u.rpid_str===a)return u}}return null}async getRecentReplies(e,t,n){let r=this.buildPager({mode:"2",...e}),s=[];for(;;){let o=await r.fetchNext(n);if(await ia(2222,5555),!o||o.length===0)return s;for(let a=0;a<o.length;a++){let i=o[a];if(s.length>=t)return s;s.push(i)}}}async del(e,t){await this.save("https://api.bilibili.com/x/v2/reply/del",{data:{...e},...t,referer:`https://t.bilibili.com/${e.oid}?spm_id_from=333.1387.0.0`})}async like(e,t){await this.save("https://api.bilibili.com/x/v2/reply/action",{data:{action:"1",...e,statistics:'{"appId":100,"platform":5}'},...t,referer:`https://t.bilibili.com/${e.oid}?spm_id_from=333.1387.0.0`})}async hate(e,t){await this.save("https://api.bilibili.com/x/v2/reply/hate",{data:{action:"1",...e,statistics:'{"appId":100,"platform":5}'},...t,referer:`https://t.bilibili.com/${e.oid}?spm_id_from=333.1387.0.0`})}async add(e,t){return await this.save("https://api.bilibili.com/x/v2/reply/add",{data:{...e,plat:"1",at_name_to_mid:"{}",gaia_source:"main_web",statistics:'{"appId":100,"platform":5}'},...t,referer:`https://t.bilibili.com/${e.oid}?spm_id_from=333.1387.0.0`})}};Ot=He(fc),x(Ot,1,"fetchSubReplyPage",Oy,$t),x(Ot,1,"fetchSubPageWithNextParams",By,$t),x(Ot,1,"fetchSubReplyAll",Py,$t),x(Ot,1,"fetchPage",Ry,$t),x(Ot,1,"fetchPageWithNextParams",Ty,$t),x(Ot,1,"fetchAll",Cy,$t),x(Ot,1,"resolveCommentItem",Iy,$t),x(Ot,1,"getRecentReplies",Ny,$t),x(Ot,1,"del",xy,$t),x(Ot,1,"like",Sy,$t),x(Ot,1,"hate",Ay,$t),x(Ot,1,"add",Ey,$t),Xe(Ot,$t);var J=$P("CghkbS5wcm90bxIgYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEiZAoGQXZhdGFyEgoKAmlkGAEgASgJEgsKA3VybBgCIAEoCRJBCgthdmF0YXJfdHlwZRgDIAEoDjIsLmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLkF2YXRhclR5cGUiIwoGQnViYmxlEgwKBHRleHQYASABKAkSCwoDdXJsGAIgASgJIsYBCghCdWJibGVWMhIMCgR0ZXh0GAEgASgJEgsKA3VybBgCIAEoCRJBCgtidWJibGVfdHlwZRgDIAEoDjIsLmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLkJ1YmJsZVR5cGUSFQoNZXhwb3N1cmVfb25jZRgEIAEoCBJFCg1leHBvc3VyZV90eXBlGAUgASgOMi4uYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuRXhwb3N1cmVUeXBlIiYKBkJ1dHRvbhIMCgR0ZXh0GAEgASgJEg4KBmFjdGlvbhgCIAEoBSJYCg5CdXp6d29yZENvbmZpZxJGCghrZXl3b3JkcxgBIAMoCzI0LmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLkJ1enp3b3JkU2hvd0NvbmZpZyJ4ChJCdXp6d29yZFNob3dDb25maWcSDAoEbmFtZRgBIAEoCRIOCgZzY2hlbWEYAiABKAkSDgoGc291cmNlGAMgASgFEgoKAmlkGAQgASgDEhMKC2J1enp3b3JkX2lkGAUgASgDEhMKC3NjaGVtYV90eXBlGAYgASgFInsKCENoZWNrQm94EgwKBHRleHQYASABKAkSPAoEdHlwZRgCIAEoDjIuLmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLkNoZWNrYm94VHlwZRIVCg1kZWZhdWx0X3ZhbHVlGAMgASgIEgwKBHNob3cYBCABKAgiPwoKQ2hlY2tCb3hWMhIMCgR0ZXh0GAEgASgJEgwKBHR5cGUYAiABKAUSFQoNZGVmYXVsdF92YWx1ZRgDIAEoCCKCAgoLQ2xpY2tCdXR0b24SFQoNcG9ydHJhaXRfdGV4dBgBIAMoCRIWCg5sYW5kc2NhcGVfdGV4dBgCIAMoCRIbChNwb3J0cmFpdF90ZXh0X2ZvY3VzGAMgAygJEhwKFGxhbmRzY2FwZV90ZXh0X2ZvY3VzGAQgAygJEkEKC3JlbmRlcl90eXBlGAUgASgOMiwuYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuUmVuZGVyVHlwZRIMCgRzaG93GAYgASgIEjgKBmJ1YmJsZRgHIAEoCzIoLmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLkJ1YmJsZSLVAQoNQ2xpY2tCdXR0b25WMhIVCg1wb3J0cmFpdF90ZXh0GAEgAygJEhYKDmxhbmRzY2FwZV90ZXh0GAIgAygJEhsKE3BvcnRyYWl0X3RleHRfZm9jdXMYAyADKAkSHAoUbGFuZHNjYXBlX3RleHRfZm9jdXMYBCADKAkSEwoLcmVuZGVyX3R5cGUYBSABKAUSFwoPdGV4dF9pbnB1dF9wb3N0GAYgASgIEhUKDWV4cG9zdXJlX29uY2UYByABKAgSFQoNZXhwb3N1cmVfdHlwZRgIIAEoBSKhAQoJQ29tbWFuZERtEgoKAmlkGAEgASgDEgsKA29pZBgCIAEoAxILCgNtaWQYAyABKAkSDwoHY29tbWFuZBgEIAEoCRIPCgdjb250ZW50GAUgASgJEhAKCHByb2dyZXNzGAYgASgFEg0KBWN0aW1lGAcgASgJEg0KBW10aW1lGAggASgJEg0KBWV4dHJhGAkgASgJEg0KBWlkU3RyGAogASgJIlAKDURhbm1ha3VBSUZsYWcSPwoIZG1fZmxhZ3MYASADKAsyLS5iaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MS5EYW5tYWt1RmxhZyKtAgoLRGFubWFrdUVsZW0SCgoCaWQYASABKAMSEAoIcHJvZ3Jlc3MYAiABKAUSDAoEbW9kZRgDIAEoBRIQCghmb250c2l6ZRgEIAEoBRINCgVjb2xvchgFIAEoDRIPCgdtaWRIYXNoGAYgASgJEg8KB2NvbnRlbnQYByABKAkSDQoFY3RpbWUYCCABKAMSDgoGd2VpZ2h0GAkgASgFEg4KBmFjdGlvbhgKIAEoCRIMCgRwb29sGAsgASgFEg0KBWlkU3RyGAwgASgJEgwKBGF0dHIYDSABKAUSEQoJYW5pbWF0aW9uGBYgASgJEkIKCGNvbG9yZnVsGBggASgOMjAuYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuRG1Db2xvcmZ1bFR5cGUiKQoLRGFubWFrdUZsYWcSDAoEZG1pZBgBIAEoAxIMCgRmbGFnGAIgASgNIksKEURhbm1ha3VGbGFnQ29uZmlnEhAKCHJlY19mbGFnGAEgASgFEhAKCHJlY190ZXh0GAIgASgJEhIKCnJlY19zd2l0Y2gYAyABKAUi5AYKGERhbm11RGVmYXVsdFBsYXllckNvbmZpZxIpCiFwbGF5ZXJfZGFubWFrdV91c2VfZGVmYXVsdF9jb25maWcYASABKAgSLAokcGxheWVyX2Rhbm1ha3VfYWlfcmVjb21tZW5kZWRfc3dpdGNoGAQgASgIEisKI3BsYXllcl9kYW5tYWt1X2FpX3JlY29tbWVuZGVkX2xldmVsGAUgASgFEh8KF3BsYXllcl9kYW5tYWt1X2Jsb2NrdG9wGAYgASgIEiIKGnBsYXllcl9kYW5tYWt1X2Jsb2Nrc2Nyb2xsGAcgASgIEiIKGnBsYXllcl9kYW5tYWt1X2Jsb2NrYm90dG9tGAggASgIEiQKHHBsYXllcl9kYW5tYWt1X2Jsb2NrY29sb3JmdWwYCSABKAgSIgoacGxheWVyX2Rhbm1ha3VfYmxvY2tyZXBlYXQYCiABKAgSIwobcGxheWVyX2Rhbm1ha3VfYmxvY2tzcGVjaWFsGAsgASgIEh4KFnBsYXllcl9kYW5tYWt1X29wYWNpdHkYDCABKAISJAoccGxheWVyX2Rhbm1ha3Vfc2NhbGluZ2ZhY3RvchgNIAEoAhIdChVwbGF5ZXJfZGFubWFrdV9kb21haW4YDiABKAISHAoUcGxheWVyX2Rhbm1ha3Vfc3BlZWQYDyABKAUSJAocaW5saW5lX3BsYXllcl9kYW5tYWt1X3N3aXRjaBgQIAEoCBIpCiFwbGF5ZXJfZGFubWFrdV9zZW5pb3JfbW9kZV9zd2l0Y2gYESABKAUSLgomcGxheWVyX2Rhbm1ha3VfYWlfcmVjb21tZW5kZWRfbGV2ZWxfdjIYEiABKAUSmAEKKnBsYXllcl9kYW5tYWt1X2FpX3JlY29tbWVuZGVkX2xldmVsX3YyX21hcBgTIAMoCzJkLmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLkRhbm11RGVmYXVsdFBsYXllckNvbmZpZy5QbGF5ZXJEYW5tYWt1QWlSZWNvbW1lbmRlZExldmVsVjJNYXBFbnRyeRpLCilQbGF5ZXJEYW5tYWt1QWlSZWNvbW1lbmRlZExldmVsVjJNYXBFbnRyeRILCgNrZXkYASABKAUSDQoFdmFsdWUYAiABKAU6AjgBIo8IChFEYW5tdVBsYXllckNvbmZpZxIdChVwbGF5ZXJfZGFubWFrdV9zd2l0Y2gYASABKAgSIgoacGxheWVyX2Rhbm1ha3Vfc3dpdGNoX3NhdmUYAiABKAgSKQohcGxheWVyX2Rhbm1ha3VfdXNlX2RlZmF1bHRfY29uZmlnGAMgASgIEiwKJHBsYXllcl9kYW5tYWt1X2FpX3JlY29tbWVuZGVkX3N3aXRjaBgEIAEoCBIrCiNwbGF5ZXJfZGFubWFrdV9haV9yZWNvbW1lbmRlZF9sZXZlbBgFIAEoBRIfChdwbGF5ZXJfZGFubWFrdV9ibG9ja3RvcBgGIAEoCBIiChpwbGF5ZXJfZGFubWFrdV9ibG9ja3Njcm9sbBgHIAEoCBIiChpwbGF5ZXJfZGFubWFrdV9ibG9ja2JvdHRvbRgIIAEoCBIkChxwbGF5ZXJfZGFubWFrdV9ibG9ja2NvbG9yZnVsGAkgASgIEiIKGnBsYXllcl9kYW5tYWt1X2Jsb2NrcmVwZWF0GAogASgIEiMKG3BsYXllcl9kYW5tYWt1X2Jsb2Nrc3BlY2lhbBgLIAEoCBIeChZwbGF5ZXJfZGFubWFrdV9vcGFjaXR5GAwgASgCEiQKHHBsYXllcl9kYW5tYWt1X3NjYWxpbmdmYWN0b3IYDSABKAISHQoVcGxheWVyX2Rhbm1ha3VfZG9tYWluGA4gASgCEhwKFHBsYXllcl9kYW5tYWt1X3NwZWVkGA8gASgFEiYKHnBsYXllcl9kYW5tYWt1X2VuYWJsZWJsb2NrbGlzdBgQIAEoCBIkChxpbmxpbmVfcGxheWVyX2Rhbm1ha3Vfc3dpdGNoGBEgASgIEiQKHGlubGluZV9wbGF5ZXJfZGFubWFrdV9jb25maWcYEiABKAUSJgoecGxheWVyX2Rhbm1ha3VfaW9zX3N3aXRjaF9zYXZlGBMgASgFEikKIXBsYXllcl9kYW5tYWt1X3Nlbmlvcl9tb2RlX3N3aXRjaBgUIAEoBRIuCiZwbGF5ZXJfZGFubWFrdV9haV9yZWNvbW1lbmRlZF9sZXZlbF92MhgVIAEoBRKRAQoqcGxheWVyX2Rhbm1ha3VfYWlfcmVjb21tZW5kZWRfbGV2ZWxfdjJfbWFwGBYgAygLMl0uYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuRGFubXVQbGF5ZXJDb25maWcuUGxheWVyRGFubWFrdUFpUmVjb21tZW5kZWRMZXZlbFYyTWFwRW50cnkaSwopUGxheWVyRGFubWFrdUFpUmVjb21tZW5kZWRMZXZlbFYyTWFwRW50cnkSCwoDa2V5GAEgASgFEg0KBXZhbHVlGAIgASgFOgI4ASIwChZEYW5tdVBsYXllckNvbmZpZ1BhbmVsEhYKDnNlbGVjdGlvbl90ZXh0GAEgASgJIksKGERhbm11UGxheWVyRHluYW1pY0NvbmZpZxIQCghwcm9ncmVzcxgBIAEoBRIdChVwbGF5ZXJfZGFubWFrdV9kb21haW4YDiABKAIikAMKFURhbm11UGxheWVyVmlld0NvbmZpZxJhCh1kYW5tdWt1X2RlZmF1bHRfcGxheWVyX2NvbmZpZxgBIAEoCzI6LmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLkRhbm11RGVmYXVsdFBsYXllckNvbmZpZxJSChVkYW5tdWt1X3BsYXllcl9jb25maWcYAiABKAsyMy5iaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MS5EYW5tdVBsYXllckNvbmZpZxJhCh1kYW5tdWt1X3BsYXllcl9keW5hbWljX2NvbmZpZxgDIAMoCzI6LmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLkRhbm11UGxheWVyRHluYW1pY0NvbmZpZxJdChtkYW5tdWt1X3BsYXllcl9jb25maWdfcGFuZWwYBCABKAsyOC5iaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MS5EYW5tdVBsYXllckNvbmZpZ1BhbmVsItgEChREYW5tdVdlYlBsYXllckNvbmZpZxIRCglkbV9zd2l0Y2gYASABKAgSEQoJYWlfc3dpdGNoGAIgASgIEhAKCGFpX2xldmVsGAMgASgFEhAKCGJsb2NrdG9wGAQgASgIEhMKC2Jsb2Nrc2Nyb2xsGAUgASgIEhMKC2Jsb2NrYm90dG9tGAYgASgIEhIKCmJsb2NrY29sb3IYByABKAgSFAoMYmxvY2tzcGVjaWFsGAggASgIEhQKDHByZXZlbnRzaGFkZRgJIAEoCBINCgVkbWFzaxgKIAEoCBIPCgdvcGFjaXR5GAsgASgCEg4KBmRtYXJlYRgMIAEoBRIRCglzcGVlZHBsdXMYDSABKAISEAoIZm9udHNpemUYDiABKAISEgoKc2NyZWVuc3luYxgPIAEoCBIRCglzcGVlZHN5bmMYECABKAgSEgoKZm9udGZhbWlseRgRIAEoCRIMCgRib2xkGBIgASgIEhIKCmZvbnRib3JkZXIYEyABKAUSEQoJZHJhd190eXBlGBQgASgJEhoKEnNlbmlvcl9tb2RlX3N3aXRjaBgVIAEoBRITCgthaV9sZXZlbF92MhgWIAEoBRJhCg9haV9sZXZlbF92Ml9tYXAYFyADKAsySC5iaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MS5EYW5tdVdlYlBsYXllckNvbmZpZy5BaUxldmVsVjJNYXBFbnRyeRozChFBaUxldmVsVjJNYXBFbnRyeRILCgNrZXkYASABKAUSDQoFdmFsdWUYAiABKAU6AjgBIlkKCkRtQ29sb3JmdWwSPgoEdHlwZRgBIAEoDjIwLmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLkRtQ29sb3JmdWxUeXBlEgsKA3NyYxgCIAEoCSJBCg9EbUV4cG9SZXBvcnRSZXESEgoKc2Vzc2lvbl9pZBgBIAEoCRILCgNvaWQYAiABKAMSDQoFc3BtaWQYBCABKAkiEQoPRG1FeHBvUmVwb3J0UmVzIuMMChFEbVBsYXllckNvbmZpZ1JlcRIKCgJ0cxgBIAEoAxJFCgZzd2l0Y2gYAiABKAsyNS5iaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MS5QbGF5ZXJEYW5tYWt1U3dpdGNoEk4KC3N3aXRjaF9zYXZlGAMgASgLMjkuYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuUGxheWVyRGFubWFrdVN3aXRjaFNhdmUSWwoSdXNlX2RlZmF1bHRfY29uZmlnGAQgASgLMj8uYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuUGxheWVyRGFubWFrdVVzZURlZmF1bHRDb25maWcSYQoVYWlfcmVjb21tZW5kZWRfc3dpdGNoGAUgASgLMkIuYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuUGxheWVyRGFubWFrdUFpUmVjb21tZW5kZWRTd2l0Y2gSXwoUYWlfcmVjb21tZW5kZWRfbGV2ZWwYBiABKAsyQS5iaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MS5QbGF5ZXJEYW5tYWt1QWlSZWNvbW1lbmRlZExldmVsEkkKCGJsb2NrdG9wGAcgASgLMjcuYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuUGxheWVyRGFubWFrdUJsb2NrdG9wEk8KC2Jsb2Nrc2Nyb2xsGAggASgLMjouYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuUGxheWVyRGFubWFrdUJsb2Nrc2Nyb2xsEk8KC2Jsb2NrYm90dG9tGAkgASgLMjouYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuUGxheWVyRGFubWFrdUJsb2NrYm90dG9tElMKDWJsb2NrY29sb3JmdWwYCiABKAsyPC5iaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MS5QbGF5ZXJEYW5tYWt1QmxvY2tjb2xvcmZ1bBJPCgtibG9ja3JlcGVhdBgLIAEoCzI6LmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLlBsYXllckRhbm1ha3VCbG9ja3JlcGVhdBJRCgxibG9ja3NwZWNpYWwYDCABKAsyOy5iaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MS5QbGF5ZXJEYW5tYWt1QmxvY2tzcGVjaWFsEkcKB29wYWNpdHkYDSABKAsyNi5iaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MS5QbGF5ZXJEYW5tYWt1T3BhY2l0eRJTCg1zY2FsaW5nZmFjdG9yGA4gASgLMjwuYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuUGxheWVyRGFubWFrdVNjYWxpbmdmYWN0b3ISRQoGZG9tYWluGA8gASgLMjUuYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuUGxheWVyRGFubWFrdURvbWFpbhJDCgVzcGVlZBgQIAEoCzI0LmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLlBsYXllckRhbm1ha3VTcGVlZBJXCg9lbmFibGVibG9ja2xpc3QYESABKAsyPi5iaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MS5QbGF5ZXJEYW5tYWt1RW5hYmxlYmxvY2tsaXN0El4KGWlubGluZVBsYXllckRhbm1ha3VTd2l0Y2gYEiABKAsyOy5iaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MS5JbmxpbmVQbGF5ZXJEYW5tYWt1U3dpdGNoElsKEnNlbmlvcl9tb2RlX3N3aXRjaBgTIAEoCzI/LmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLlBsYXllckRhbm1ha3VTZW5pb3JNb2RlU3dpdGNoEmQKF2FpX3JlY29tbWVuZGVkX2xldmVsX3YyGBQgASgLMkMuYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuUGxheWVyRGFubWFrdUFpUmVjb21tZW5kZWRMZXZlbFYyIi8KC0RtU2VnQ29uZmlnEhEKCXBhZ2Vfc2l6ZRgBIAEoAxINCgV0b3RhbBgCIAEoAyLkAQoQRG1TZWdNb2JpbGVSZXBseRI8CgVlbGVtcxgBIAMoCzItLmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLkRhbm1ha3VFbGVtEg0KBXN0YXRlGAIgASgFEkAKB2FpX2ZsYWcYAyABKAsyLy5iaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MS5EYW5tYWt1QUlGbGFnEkEKC2NvbG9yZnVsU3JjGAUgAygLMiwuYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuRG1Db2xvcmZ1bCKmAQoORG1TZWdNb2JpbGVSZXESCwoDcGlkGAEgASgDEgsKA29pZBgCIAEoAxIMCgR0eXBlGAMgASgFEhUKDXNlZ21lbnRfaW5kZXgYBCABKAMSFgoOdGVlbmFnZXJzX21vZGUYBSABKAUSCgoCcHMYBiABKAMSCgoCcGUYByABKAMSEQoJcHVsbF9tb2RlGAggASgFEhIKCmZyb21fc2NlbmUYCSABKAUiXQoNRG1TZWdPdHRSZXBseRIOCgZjbG9zZWQYASABKAgSPAoFZWxlbXMYAiADKAsyLS5iaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MS5EYW5tYWt1RWxlbSJMCgtEbVNlZ090dFJlcRILCgNwaWQYASABKAMSCwoDb2lkGAIgASgDEgwKBHR5cGUYAyABKAUSFQoNc2VnbWVudF9pbmRleBgEIAEoAyJdCg1EbVNlZ1NES1JlcGx5Eg4KBmNsb3NlZBgBIAEoCBI8CgVlbGVtcxgCIAMoCzItLmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLkRhbm1ha3VFbGVtIkwKC0RtU2VnU0RLUmVxEgsKA3BpZBgBIAEoAxILCgNvaWQYAiABKAMSDAoEdHlwZRgDIAEoBRIVCg1zZWdtZW50X2luZGV4GAQgASgDIt4GCgtEbVZpZXdSZXBseRIOCgZjbG9zZWQYASABKAgSOQoEbWFzaxgCIAEoCzIrLmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLlZpZGVvTWFzaxJBCghzdWJ0aXRsZRgDIAEoCzIvLmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLlZpZGVvU3VidGl0bGUSEwoLc3BlY2lhbF9kbXMYBCADKAkSRAoHYWlfZmxhZxgFIAEoCzIzLmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLkRhbm1ha3VGbGFnQ29uZmlnEk4KDXBsYXllcl9jb25maWcYBiABKAsyNy5iaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MS5EYW5tdVBsYXllclZpZXdDb25maWcSFgoOc2VuZF9ib3hfc3R5bGUYByABKAUSDQoFYWxsb3cYCCABKAgSEQoJY2hlY2tfYm94GAkgASgJEhoKEmNoZWNrX2JveF9zaG93X21zZxgKIAEoCRIYChB0ZXh0X3BsYWNlaG9sZGVyGAsgASgJEhkKEWlucHV0X3BsYWNlaG9sZGVyGAwgASgJEh0KFXJlcG9ydF9maWx0ZXJfY29udGVudBgNIAMoCRJBCgtleHBvX3JlcG9ydBgOIAEoCzIsLmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLkV4cG9SZXBvcnQSSQoPYnV6endvcmRfY29uZmlnGA8gASgLMjAuYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuQnV6endvcmRDb25maWcSQgoLZXhwcmVzc2lvbnMYECADKAsyLS5iaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MS5FeHByZXNzaW9ucxI/Cgpwb3N0X3BhbmVsGBEgAygLMisuYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuUG9zdFBhbmVsEhUKDWFjdGl2aXR5X21ldGEYEiADKAkSQgoLcG9zdF9wYW5lbDIYEyADKAsyLS5iaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MS5Qb3N0UGFuZWxWMiJYCglEbVZpZXdSZXESCwoDcGlkGAEgASgDEgsKA29pZBgCIAEoAxIMCgR0eXBlGAMgASgFEg0KBXNwbWlkGAQgASgJEhQKDGlzX2hhcmRfYm9vdBgFIAEoBSLEBAoORG1XZWJWaWV3UmVwbHkSDQoFc3RhdGUYASABKAUSDAoEdGV4dBgCIAEoCRIRCgl0ZXh0X3NpZGUYAyABKAkSPQoGZG1fc2dlGAQgASgLMi0uYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuRG1TZWdDb25maWcSQQoEZmxhZxgFIAEoCzIzLmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLkRhbm1ha3VGbGFnQ29uZmlnEhMKC3NwZWNpYWxfZG1zGAYgAygJEhEKCWNoZWNrX2JveBgHIAEoCBINCgVjb3VudBgIIAEoAxI/Cgpjb21tYW5kRG1zGAkgAygLMisuYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuQ29tbWFuZERtEk0KDXBsYXllcl9jb25maWcYCiABKAsyNi5iaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MS5EYW5tdVdlYlBsYXllckNvbmZpZxIdChVyZXBvcnRfZmlsdGVyX2NvbnRlbnQYCyADKAkSQgoLZXhwcmVzc2lvbnMYDCADKAsyLS5iaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MS5FeHByZXNzaW9ucxI/Cgpwb3N0X3BhbmVsGA0gAygLMisuYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuUG9zdFBhbmVsEhUKDWFjdGl2aXR5X21ldGEYDiADKAkiKgoKRXhwb1JlcG9ydBIcChRzaG91bGRfcmVwb3J0X2F0X2VuZBgBIAEoCCJkCgpFeHByZXNzaW9uEg8KB2tleXdvcmQYASADKAkSCwoDdXJsGAIgASgJEjgKBnBlcmlvZBgDIAMoCzIoLmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLlBlcmlvZCJJCgtFeHByZXNzaW9ucxI6CgRkYXRhGAEgAygLMiwuYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuRXhwcmVzc2lvbiIqChlJbmxpbmVQbGF5ZXJEYW5tYWt1U3dpdGNoEg0KBXZhbHVlGAEgASgIIicKBUxhYmVsEg0KBXRpdGxlGAEgASgJEg8KB2NvbnRlbnQYAiADKAkiVwoHTGFiZWxWMhINCgV0aXRsZRgBIAEoCRIPCgdjb250ZW50GAIgAygJEhUKDWV4cG9zdXJlX29uY2UYAyABKAgSFQoNZXhwb3N1cmVfdHlwZRgEIAEoBSIkCgZQZXJpb2QSDQoFc3RhcnQYASABKAMSCwoDZW5kGAIgASgDIjAKH1BsYXllckRhbm1ha3VBaVJlY29tbWVuZGVkTGV2ZWwSDQoFdmFsdWUYASABKAgiMgohUGxheWVyRGFubWFrdUFpUmVjb21tZW5kZWRMZXZlbFYyEg0KBXZhbHVlGAEgASgFIjEKIFBsYXllckRhbm1ha3VBaVJlY29tbWVuZGVkU3dpdGNoEg0KBXZhbHVlGAEgASgIIikKGFBsYXllckRhbm1ha3VCbG9ja2JvdHRvbRINCgV2YWx1ZRgBIAEoCCIrChpQbGF5ZXJEYW5tYWt1QmxvY2tjb2xvcmZ1bBINCgV2YWx1ZRgBIAEoCCIpChhQbGF5ZXJEYW5tYWt1QmxvY2tyZXBlYXQSDQoFdmFsdWUYASABKAgiKQoYUGxheWVyRGFubWFrdUJsb2Nrc2Nyb2xsEg0KBXZhbHVlGAEgASgIIioKGVBsYXllckRhbm1ha3VCbG9ja3NwZWNpYWwSDQoFdmFsdWUYASABKAgiJgoVUGxheWVyRGFubWFrdUJsb2NrdG9wEg0KBXZhbHVlGAEgASgIIiQKE1BsYXllckRhbm1ha3VEb21haW4SDQoFdmFsdWUYASABKAIiLQocUGxheWVyRGFubWFrdUVuYWJsZWJsb2NrbGlzdBINCgV2YWx1ZRgBIAEoCCIlChRQbGF5ZXJEYW5tYWt1T3BhY2l0eRINCgV2YWx1ZRgBIAEoAiIrChpQbGF5ZXJEYW5tYWt1U2NhbGluZ2ZhY3RvchINCgV2YWx1ZRgBIAEoAiIuCh1QbGF5ZXJEYW5tYWt1U2VuaW9yTW9kZVN3aXRjaBINCgV2YWx1ZRgBIAEoBSIjChJQbGF5ZXJEYW5tYWt1U3BlZWQSDQoFdmFsdWUYASABKAUiOAoTUGxheWVyRGFubWFrdVN3aXRjaBINCgV2YWx1ZRgBIAEoCBISCgpjYW5faWdub3JlGAIgASgIIigKF1BsYXllckRhbm1ha3VTd2l0Y2hTYXZlEg0KBXZhbHVlGAEgASgIIi4KHVBsYXllckRhbm1ha3VVc2VEZWZhdWx0Q29uZmlnEg0KBXZhbHVlGAEgASgIIowDCglQb3N0UGFuZWwSDQoFc3RhcnQYASABKAMSCwoDZW5kGAIgASgDEhAKCHByaW9yaXR5GAMgASgDEg4KBmJpel9pZBgEIAEoAxJECghiaXpfdHlwZRgFIAEoDjIyLmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLlBvc3RQYW5lbEJpelR5cGUSQwoMY2xpY2tfYnV0dG9uGAYgASgLMi0uYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuQ2xpY2tCdXR0b24SPwoKdGV4dF9pbnB1dBgHIAEoCzIrLmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLlRleHRJbnB1dBI9CgljaGVja19ib3gYCCABKAsyKi5iaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MS5DaGVja0JveBI2CgV0b2FzdBgJIAEoCzInLmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLlRvYXN0IssDCgtQb3N0UGFuZWxWMhINCgVzdGFydBgBIAEoAxILCgNlbmQYAiABKAMSEAoIYml6X3R5cGUYAyABKAUSRQoMY2xpY2tfYnV0dG9uGAQgASgLMi8uYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuQ2xpY2tCdXR0b25WMhJBCgp0ZXh0X2lucHV0GAUgASgLMi0uYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuVGV4dElucHV0VjISPwoJY2hlY2tfYm94GAYgASgLMiwuYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuQ2hlY2tCb3hWMhI4CgV0b2FzdBgHIAEoCzIpLmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLlRvYXN0VjISOgoGYnViYmxlGAggASgLMiouYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuQnViYmxlVjISOAoFbGFiZWwYCSABKAsyKS5iaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MS5MYWJlbFYyEhMKC3Bvc3Rfc3RhdHVzGAogASgFIikKCFJlc3BvbnNlEgwKBGNvZGUYASABKAUSDwoHbWVzc2FnZRgCIAEoCSL5AgoMU3VidGl0bGVJdGVtEgoKAmlkGAEgASgDEg4KBmlkX3N0chgCIAEoCRILCgNsYW4YAyABKAkSDwoHbGFuX2RvYxgEIAEoCRIUCgxzdWJ0aXRsZV91cmwYBSABKAkSOgoGYXV0aG9yGAYgASgLMiouYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuVXNlckluZm8SPAoEdHlwZRgHIAEoDjIuLmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLlN1YnRpdGxlVHlwZRIVCg1sYW5fZG9jX2JyaWVmGAggASgJEkEKB2FpX3R5cGUYCSABKA4yMC5iaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MS5TdWJ0aXRsZUFpVHlwZRJFCglhaV9zdGF0dXMYCiABKA4yMi5iaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MS5TdWJ0aXRsZUFpU3RhdHVzIugCCglUZXh0SW5wdXQSHAoUcG9ydHJhaXRfcGxhY2Vob2xkZXIYASADKAkSHQoVbGFuZHNjYXBlX3BsYWNlaG9sZGVyGAIgAygJEkEKC3JlbmRlcl90eXBlGAMgASgOMiwuYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuUmVuZGVyVHlwZRIYChBwbGFjZWhvbGRlcl9wb3N0GAQgASgIEgwKBHNob3cYBSABKAgSOAoGYXZhdGFyGAYgAygLMiguYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuQXZhdGFyEkEKC3Bvc3Rfc3RhdHVzGAcgASgOMiwuYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuUG9zdFN0YXR1cxI2CgVsYWJlbBgIIAEoCzInLmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLkxhYmVsIvsBCgtUZXh0SW5wdXRWMhIcChRwb3J0cmFpdF9wbGFjZWhvbGRlchgBIAMoCRIdChVsYW5kc2NhcGVfcGxhY2Vob2xkZXIYAiADKAkSQQoLcmVuZGVyX3R5cGUYAyABKA4yLC5iaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MS5SZW5kZXJUeXBlEhgKEHBsYWNlaG9sZGVyX3Bvc3QYBCABKAgSOAoGYXZhdGFyGAUgAygLMiguYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuQXZhdGFyEhgKEHRleHRfaW5wdXRfbGltaXQYBiABKAUibwoFVG9hc3QSDAoEdGV4dBgBIAEoCRIQCghkdXJhdGlvbhgCIAEoBRIMCgRzaG93GAMgASgIEjgKBmJ1dHRvbhgEIAEoCzIoLmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLkJ1dHRvbiItCg1Ub2FzdEJ1dHRvblYyEgwKBHRleHQYASABKAkSDgoGYWN0aW9uGAIgASgFInMKB1RvYXN0VjISDAoEdGV4dBgBIAEoCRIQCghkdXJhdGlvbhgCIAEoBRJICg90b2FzdF9idXR0b25fdjIYAyABKAsyLy5iaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MS5Ub2FzdEJ1dHRvblYyIlwKCFVzZXJJbmZvEgsKA21pZBgBIAEoAxIMCgRuYW1lGAIgASgJEgsKA3NleBgDIAEoCRIMCgRmYWNlGAQgASgJEgwKBHNpZ24YBSABKAkSDAoEcmFuaxgGIAEoBSJTCglWaWRlb01hc2sSCwoDY2lkGAEgASgDEgwKBHBsYXQYAiABKAUSCwoDZnBzGAMgASgFEgwKBHRpbWUYBCABKAMSEAoIbWFza191cmwYBSABKAkibwoNVmlkZW9TdWJ0aXRsZRILCgNsYW4YASABKAkSDgoGbGFuRG9jGAIgASgJEkEKCXN1YnRpdGxlcxgDIAMoCzIuLmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLlN1YnRpdGxlSXRlbSozCgpBdmF0YXJUeXBlEhIKDkF2YXRhclR5cGVOb25lEAASEQoNQXZhdGFyVHlwZU5GVBABKlkKCkJ1YmJsZVR5cGUSEgoOQnViYmxlVHlwZU5vbmUQABIZChVCdWJibGVUeXBlQ2xpY2tCdXR0b24QARIcChhCdWJibGVUeXBlRG1TZXR0aW5nUGFuZWwQAipYCgxDaGVja2JveFR5cGUSFAoQQ2hlY2tib3hUeXBlTm9uZRAAEhkKFUNoZWNrYm94VHlwZUVuY291cmFnZRABEhcKE0NoZWNrYm94VHlwZUNvbG9yRE0QAipMCglETUF0dHJCaXQSFAoQRE1BdHRyQml0UHJvdGVjdBAAEhUKEURNQXR0ckJpdEZyb21MaXZlEAESEgoORE1BdHRySGlnaExpa2UQAio1Cg5EbUNvbG9yZnVsVHlwZRIMCghOb25lVHlwZRAAEhUKD1ZpcEdyYWR1YWxDb2xvchDh1AMqPAoMRXhwb3N1cmVUeXBlEhQKEEV4cG9zdXJlVHlwZU5vbmUQABIWChJFeHBvc3VyZVR5cGVETVNlbmQQASrBAQoQUG9zdFBhbmVsQml6VHlwZRIYChRQb3N0UGFuZWxCaXpUeXBlTm9uZRAAEh0KGVBvc3RQYW5lbEJpelR5cGVFbmNvdXJhZ2UQARIbChdQb3N0UGFuZWxCaXpUeXBlQ29sb3JETRACEhkKFVBvc3RQYW5lbEJpelR5cGVORlRETRADEh0KGVBvc3RQYW5lbEJpelR5cGVGcmFnQ2xvc2UQBBIdChlQb3N0UGFuZWxCaXpUeXBlUmVjb21tZW5kEAUqOAoKUG9zdFN0YXR1cxIUChBQb3N0U3RhdHVzTm9ybWFsEAASFAoQUG9zdFN0YXR1c0Nsb3NlZBABKk4KClJlbmRlclR5cGUSEgoOUmVuZGVyVHlwZU5vbmUQABIUChBSZW5kZXJUeXBlU2luZ2xlEAESFgoSUmVuZGVyVHlwZVJvdGF0aW9uEAIqNgoQU3VidGl0bGVBaVN0YXR1cxIICgROb25lEAASDAoIRXhwb3N1cmUQARIKCgZBc3Npc3QQAiorCg5TdWJ0aXRsZUFpVHlwZRIKCgZOb3JtYWwQABINCglUcmFuc2xhdGUQASoeCgxTdWJ0aXRsZVR5cGUSBgoCQ0MQABIGCgJBSRABKk4KEVRvYXN0RnVuY3Rpb25UeXBlEhkKFVRvYXN0RnVuY3Rpb25UeXBlTm9uZRAAEh4KGlRvYXN0RnVuY3Rpb25UeXBlUG9zdFBhbmVsEAEyoAUKAkRNEnMKC0RtU2VnTW9iaWxlEjAuYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuRG1TZWdNb2JpbGVSZXEaMi5iaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MS5EbVNlZ01vYmlsZVJlcGx5EmQKBkRtVmlldxIrLmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLkRtVmlld1JlcRotLmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLkRtVmlld1JlcGx5EnEKDkRtUGxheWVyQ29uZmlnEjMuYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuRG1QbGF5ZXJDb25maWdSZXEaKi5iaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MS5SZXNwb25zZRJqCghEbVNlZ090dBItLmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLkRtU2VnT3R0UmVxGi8uYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuRG1TZWdPdHRSZXBseRJqCghEbVNlZ1NESxItLmJpbGliaWxpLmNvbW11bml0eS5zZXJ2aWNlLmRtLnYxLkRtU2VnU0RLUmVxGi8uYmlsaWJpbGkuY29tbXVuaXR5LnNlcnZpY2UuZG0udjEuRG1TZWdTREtSZXBseRJ0CgxEbUV4cG9SZXBvcnQSMS5iaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MS5EbUV4cG9SZXBvcnRSZXEaMS5iaWxpYmlsaS5jb21tdW5pdHkuc2VydmljZS5kbS52MS5EbUV4cG9SZXBvcnRSZXNiBnByb3RvMw");se(J,0);se(J,1);se(J,2);se(J,3);se(J,4);se(J,5);se(J,6);se(J,7);se(J,8);se(J,9);se(J,10);se(J,11);se(J,12);se(J,13);se(J,14);se(J,15);se(J,16);se(J,17);se(J,18);se(J,19);se(J,20);se(J,21);se(J,22);se(J,23);se(J,24);se(J,25);se(J,26);se(J,27);se(J,28);se(J,29);se(J,30);se(J,31);se(J,32);se(J,33);se(J,34);se(J,35);se(J,36);se(J,37);se(J,38);se(J,39);se(J,40);se(J,41);se(J,42);se(J,43);se(J,44);se(J,45);se(J,46);se(J,47);se(J,48);se(J,49);se(J,50);se(J,51);se(J,52);se(J,53);se(J,54);se(J,55);se(J,56);se(J,57);se(J,58);se(J,59);se(J,60);se(J,61);se(J,62);se(J,63);se(J,64);se(J,65);se(J,66);se(J,67);se(J,68);se(J,69);se(J,70);se(J,71);var f9=(e=>(e[e.AvatarTypeNone=0]="AvatarTypeNone",e[e.AvatarTypeNFT=1]="AvatarTypeNFT",e))(f9||{});qt(J,0);var d9=(e=>(e[e.BubbleTypeNone=0]="BubbleTypeNone",e[e.BubbleTypeClickButton=1]="BubbleTypeClickButton",e[e.BubbleTypeDmSettingPanel=2]="BubbleTypeDmSettingPanel",e))(d9||{});qt(J,1);var p9=(e=>(e[e.CheckboxTypeNone=0]="CheckboxTypeNone",e[e.CheckboxTypeEncourage=1]="CheckboxTypeEncourage",e[e.CheckboxTypeColorDM=2]="CheckboxTypeColorDM",e))(p9||{});qt(J,2);var h9=(e=>(e[e.DMAttrBitProtect=0]="DMAttrBitProtect",e[e.DMAttrBitFromLive=1]="DMAttrBitFromLive",e[e.DMAttrHighLike=2]="DMAttrHighLike",e))(h9||{});qt(J,3);var m9=(e=>(e[e.NoneType=0]="NoneType",e[e.VipGradualColor=60001]="VipGradualColor",e))(m9||{});qt(J,4);var g9=(e=>(e[e.ExposureTypeNone=0]="ExposureTypeNone",e[e.ExposureTypeDMSend=1]="ExposureTypeDMSend",e))(g9||{});qt(J,5);var b9=(e=>(e[e.PostPanelBizTypeNone=0]="PostPanelBizTypeNone",e[e.PostPanelBizTypeEncourage=1]="PostPanelBizTypeEncourage",e[e.PostPanelBizTypeColorDM=2]="PostPanelBizTypeColorDM",e[e.PostPanelBizTypeNFTDM=3]="PostPanelBizTypeNFTDM",e[e.PostPanelBizTypeFragClose=4]="PostPanelBizTypeFragClose",e[e.PostPanelBizTypeRecommend=5]="PostPanelBizTypeRecommend",e))(b9||{});qt(J,6);var v9=(e=>(e[e.PostStatusNormal=0]="PostStatusNormal",e[e.PostStatusClosed=1]="PostStatusClosed",e))(v9||{});qt(J,7);var y9=(e=>(e[e.RenderTypeNone=0]="RenderTypeNone",e[e.RenderTypeSingle=1]="RenderTypeSingle",e[e.RenderTypeRotation=2]="RenderTypeRotation",e))(y9||{});qt(J,8);var w9=(e=>(e[e.None=0]="None",e[e.Exposure=1]="Exposure",e[e.Assist=2]="Assist",e))(w9||{});qt(J,9);var _9=(e=>(e[e.Normal=0]="Normal",e[e.Translate=1]="Translate",e))(_9||{});qt(J,10);var E9=(e=>(e[e.CC=0]="CC",e[e.AI=1]="AI",e))(E9||{});qt(J,11);var A9=(e=>(e[e.ToastFunctionTypeNone=0]="ToastFunctionTypeNone",e[e.ToastFunctionTypePostPanel=1]="ToastFunctionTypePostPanel",e))(A9||{});qt(J,12);var S9=VP(J,0),ky,dc,ti,pc=class extends(dc=Je,ky=[N()],dc){constructor(){super(...arguments),ze(ti,5,this)}async fetchAll(e,t){let n=(e.duration-1)/360+1,r=[];for(let s=1;s<=n;s++){let o=await this.api.fetchArrayBuffer("https://api.bilibili.com/x/v2/dm/web/seg.so",{query:{type:"1",oid:e.cid,segment_index:s},...t}),a=new Uint8Array(o),i=v1(S9.method.dmSegMobile.output,a);r.push(...i.elems??[]),s<n&&await ia(500,1111,t?.signal)}return r}};ti=He(dc),x(ti,1,"fetchAll",ky,pc),Xe(ti,pc);var Fy,hc,ni,mc=class extends(hc=Je,Fy=[N()],hc){constructor(){super(...arguments),ze(ni,5,this)}async getDetail(e,t){return await this.get("https://api.bilibili.com/x/polymer/web-dynamic/v1/opus/detail",{query:{timezone_offset:"-480",features:"onlyfansVote,onlyfansAssetsV2,decorationCard,htmlNewStyle,ugcDelete,editable,opusPrivateVisible,tribeeEdit,avatarAutoTheme,avatarTypeOpus",...e},...t})}};ni=He(hc),x(ni,1,"getDetail",Fy,mc),Xe(ni,mc);var Ly,gc,ri,bc=class extends(gc=Je,Ly=[N()],gc){constructor(){super(...arguments),ze(ri,5,this)}async getRoomInfo(e,t){return this.get("https://api.live.bilibili.com/room/v1/Room/getRoomInfoOld",{query:{mid:e},...t})}};ri=He(gc),x(ri,1,"getRoomInfo",Ly,bc),Xe(ri,bc);var x9=class{get logger(){return this.config.logger}constructor(t){this.config={...r9(t?.logLevel),...t??{}},this.api=new B9(this),this.createPager=this.api.createPager,this.request=this.api.request,this.user=new pn(this.api),this.userExp=new Ja(this.api),this.relation=new $e(this.api),this.history=new Rn(this.api),this.session=new er(this.api),this.sessionSettings=new rn(this.api),this.message=new at(this.api),this.toview=new mn(this.api),this.fav=new Nt(this.api),this.favCollection=new Xr(this.api),this.favOpus=new Ir(this.api),this.followBangumi=new Cr(this.api),this.spaceVideo=new xo(this.api),this.spaceStatus=new Qa(this.api),this.spaceSettings=new qa(this.api),this.dynamic=new Pr(this.api),this.videoInfo=new qr(this.api),this.videoAction=new rr(this.api),this.videoReport=new tc(this.api),this.videoRanking=new Ts(this.api),this.videoPlayer=new ei(this.api),this.comment=new $t(this.api),this.dm=new pc(this.api),this.opus=new mc(this.api),this.live=new bc(this.api),Vy.setAutoRefresh(this.config.autoMixinKey)}updateRequestContext(t){this.config.context=t}},Ul=null,N9=()=>(Ul||(Ul=new x9),Ul),vc,Va=null,My=0,jl,Hh=1440*60*1e3,$y=!1,Vy={get:async()=>vc||(Va||(Va=T9().catch(()=>{Va=null})),await Va,vc),setAutoRefresh(e){$y=e}};function I9(e,t){return Math.floor(e/Hh)!==Math.floor(t/Hh)}var C9=[46,47,18,2,53,8,23,32,15,50,10,31,58,3,45,35,27,43,5,49,33,9,42,19,29,28,14,39,12,38,41,13,37,48,7,16,24,55,40,61,26,17,0,1,60,51,30,4,22,25,54,21,56,59,6,63,57,62,11,36,20,34,44,52],Wy=(e,t)=>{let n=e+t;return C9.map(r=>n[r]).join("").slice(0,32)},T9=async()=>{await Xh(),jl||clearInterval(jl),$y&&(jl=setInterval(()=>{I9(My,Date.now())&&Xh()},3e5))},Xh=async()=>{try{let e=Date.now(),t=(await(await fetch("https://api.bilibili.com/x/web-interface/nav")).json()).data,n=o=>new URL(o).pathname.split("/").pop().replace(/\.[^.]+$/,""),r=n(t.wbi_img.img_url),s=n(t.wbi_img.sub_url);vc=Wy(r,s),My=e}catch(e){throw N9().logger.error("初始化 MixinKey 失败",e),e}};async function zh(e,t){let n=Math.floor(Date.now()/1e3),r=t??await Vy.get();return`${Bu(e)}&w_rid=${d8(Bu({...e,wts:n})+r)}&wts=${n}`}async function R9(e,t,n){try{return t||Object.keys(e).length===0?`${Bu(e)}`:n?`${await zh(e,Wy(n.imgKey,n.subKey))}`:`${await zh(e)}`}catch{throw new Error("查询参数无效")}}var P9=class extends I1{constructor(e,t,n){super(e),this.list=[],this.lastApiResponse=null,this.pageStrategy=t,t.options.pageNum!==void 0?this.nextPageNum=t.options.pageNum:this.nextPageNum=1;let{baseUrl:r,searchParams:s}=zb(n.url);this.requestParams=Object.assign(Jb(s,n.query)),this.requestOptions={...n,url:r,query:this.requestParams,returnFormat:"ApiResponse"}}mergeRequestOptions(e){this.requestParams={...this.requestParams,...e?.query},this.requestOptions={...this.requestOptions,...e,query:this.requestParams,returnFormat:"ApiResponse"}}async fetchNext(e){if(this.mergeRequestOptions(e),!this.pageStrategy.hasNextPage(this.nextPageNum,this.list,this.lastApiResponse))return null;this.pageStrategy.updateNextPageParams(this.nextPageNum,this.requestParams,this.list,this.lastApiResponse),this.lastApiResponse===null&&(this.nextPageNum===1||this.nextPageNum===this.pageStrategy.options.pageNum)&&Object.assign(this.requestParams,this.pageStrategy.options.pageParams);let t=await this.get(this.requestOptions.url,this.requestOptions);if(this.lastApiResponse=t,t.data==null)return null;this.nextPageNum++;let n=this.pageStrategy.getList(t)??[];return n.length<=0?null:(this.list.push(...n),n)}async fetchPageWithNextParams(e){return{items:await this.fetchNext(e),nextParams:this.getNextPageParams(),hasNext:this.pageStrategy.hasNextPage(this.nextPageNum,this.list,this.lastApiResponse),pageSize:this.pageStrategy.options.pageSize,total:this.pageStrategy.getTotal?.(this.lastApiResponse)??void 0}}getRequestDelay(e){return typeof e?.delay=="function"?e.delay(this.nextPageNum):typeof e?.delay=="number"?e.delay:1122}async fetchAllPage(e,t){for(this.mergeRequestOptions(t),this.nextPageNum=1,this.list=[],this.lastApiResponse=null;!this.requestOptions.signal?.aborted;){let n=await this.fetchNext(t);if(n===null||e&&await e(n,this.list)===!1)break;await Ps(this.getRequestDelay(t),this.requestOptions.signal)}return this.list}getNextPageParams(){let e={};return this.pageStrategy.updateNextPageParams(this.nextPageNum,e,this.list,this.lastApiResponse),e}getPageSize(){return this.pageStrategy.options.pageSize}},B9=class{constructor(e){this.client=e,this.logApiSuccess=(t,n,r,s)=>{if(n==="RawResponse")this.logger.debug(`${t} 请求成功`);else{let o=s||this.isDebug?JSON.stringify(r):"";n==="ApiResponse"?this.logger.debug(`${t} 请求成功`,o):this.logger.debug(`${t} 请求成功`,o)}},this.logApiError=(t,n)=>{Xb(n)?this.logger.error(`${t} [${Pu(n)}]`):n instanceof $a?this.logger.error(`${t} [http error]:${n.message}(${n.status})`):n instanceof Wn?this.logger.error(`${t} ${n.message}`):this.logger.error(`${t} 出现未知错误`,n)},this.buildFinalUrl=async(t,n)=>{let{baseUrl:r,searchParams:s}=zb(t.url),o=Jb(s,t.query),a=await R9(o,t.skipWbiSign,t.wbiSignKeys);return t.logRequestParams?this.logger.debug(`${n} 请求中 ${a}`):this.logger.debug(`${n} 请求中...`),a&&a.length>0?`${r}?${a}`:r},this.buildRequestBody=async t=>{let n=t.data;if(n)if(typeof n=="object"){if(!(n instanceof Blob)&&!(n instanceof URLSearchParams)&&!(n instanceof FormData)){let r={};Object.keys(n).forEach(function(s){if(n!=null){let o=n[s];o!=null&&(r[s]=String(o))}}),n=new URLSearchParams(r)}}else typeof n=="string"&&(t.init={...t.init},t.init.headers={...t.init.headers,"Content-Type":"application/json"});return t.method==="POST"&&n&&t.autoCsrf&&n instanceof URLSearchParams&&n.set("csrf",this.clientConfig.context?.userCookie.bili_jct??""),n},this.buildRequestInit=async(t,n)=>{let{context:r,userAgent:s,timeout:o,referer:a}=this.clientConfig;return{signal:t?.signal?AbortSignal.any([t?.signal,AbortSignal.timeout(o)]):AbortSignal.timeout(o),method:t.method,body:n,...t?.init??{},credentials:"include",headers:{"User-Agent":s,origin:"https://t.bilibili.com",cookie:t.cookie?.cookie||r?.userCookie.cookie||"",Referer:t.referer??(typeof a=="function"?a(t.url):a),...t?.init?.headers??{}}}},this.executeRequest=async(t,n)=>{t.url=await this.buildFinalUrl(t,n);let r=await this.buildRequestBody(t);r&&this.logger.debug(`${n} 请求体`,JSON.stringify(r));let s=await this.buildRequestInit(t,r);return await(this.clientConfig.fetcher??fetch)(t.url,s)},this.request=async(t,n)=>{if(n?.signal?.aborted)throw js();let r={...s9,url:t,...n},s=this.buildLogPrefix(r);try{let o=await this.executeRequest(r,s);if(!o.ok)throw new $a(this.clientConfig,r,o);if(r.returnFormat==="RawResponse")return this.logApiSuccess(s,"RawResponse",o,r.logResponseData),o;let a;try{a=await o.json()}catch(i){throw new $a(this.clientConfig,r,o,"解析响应数据错误",i)}if(!r.ignoreBusinessError&&a.code!==0)throw new N1(this.clientConfig,r,a);return r.returnFormat==="ApiResponse"?(this.logApiSuccess(s,"ApiResponse",a,r.logResponseData),a):(this.logApiSuccess(s,"ApiResponseData",a.data,r.logResponseData),a.data)}catch(o){throw this.logApiError(s,o),o}},this.fetchRaw=async(t,n)=>{if(n?.signal?.aborted)throw js();let r={...by,url:t,...n},s=this.buildLogPrefix(r),o=r.responseType;try{let a=await this.executeRequest(r,s);if(!a.ok)throw new $a(this.clientConfig,r,a);return this.logApiSuccess(s,"RawResponse",a,r.logResponseData),o==="json"?await a.json():o==="text"?await a.text():o==="blob"?await a.blob():o==="arrayBuffer"?await a.arrayBuffer():await a.formData()}catch(a){throw this.logApiError(s,a),a}},this.fetchText=async(t,n)=>this.fetchRaw(t,{...n,responseType:"text"}),this.fetchBlob=async(t,n)=>this.fetchRaw(t,{...n,responseType:"blob"}),this.fetchArrayBuffer=async(t,n)=>this.fetchRaw(t,{...n,responseType:"arrayBuffer"}),this.fetchFormData=async(t,n)=>this.fetchRaw(t,{...n,responseType:"formData"}),this.get=async(t,n)=>this.request(t,{...n,method:"GET"}),this.post=async(t,n)=>this.request(t,{...n,method:"POST"}),this.save=async(t,n)=>this.request(t,{...n,method:"POST",skipWbiSign:!1,autoCsrf:!0}),this.createPager=(t,n,r)=>new P9(this,n,{url:t,...r})}get clientConfig(){return this.client.config}get logger(){return this.clientConfig.logger}get isDebug(){return this.clientConfig.logLevel==="debug"}buildLogPrefix(e){let t=this.clientConfig.context?.userCookie.uid;return`[bili API]${t?` [${t}]`:""} ${e.method} ${new URL(e.url).pathname}`}},O9=class extends CS{constructor(e,t){super(e,t),this.name=new.target.name,Object.setPrototypeOf(this,new.target.prototype)}};const Wr=$S();var bt=(e,t,n,r="srgb",s)=>`color-mix(in ${r}, ${e} ${n}%, ${t} ${100-n}%)`,Dy=e=>{let t=parseInt(e.slice(1,3),16),n=parseInt(e.slice(3,5),16),r=parseInt(e.slice(5,7),16);return{r:t,g:n,b:r}},k9=(e,t)=>{document.documentElement.style.setProperty(e,t)};const Jh="#ffffff",Qh="#000000",Zl=(e,t,n)=>{const{r,g:s,b:o}=Dy(e);for(let a=2;a<100;){const i=a/100;t[`${n}-transparent-${a}`]=`rgba(${r}, ${s}, ${o}, ${i})`,a>=10?a+=5:a++}},F9=(e,t,n)=>{const r={};n?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark");const s=r["--app-color-foreground"]=n?Jh:Qh,o=r["--app-color-background"]=n?Qh:Jh;r["--app-primary-color"]=e,r["--el-color-primary"]=e,r["--el-color-primary-light-1"]=bt(e,o,90),r["--el-color-primary-light-2"]=bt(e,o,80),r["--el-color-primary-light-3"]=bt(e,o,70),r["--el-color-primary-light-4"]=bt(e,o,60),r["--el-color-primary-light-5"]=bt(e,o,50),r["--el-color-primary-light-6"]=bt(e,o,40),r["--el-color-primary-light-7"]=bt(e,o,30),r["--el-color-primary-light-8"]=bt(e,o,20),r["--el-color-primary-light-9"]=bt(e,o,12),r["--el-color-primary-dark-1"]=bt(e,s,90),r["--el-color-primary-dark-2"]=bt(e,s,80),r["--el-color-primary-dark-3"]=bt(e,s,70),r["--el-color-primary-dark-4"]=bt(e,s,60),r["--el-color-primary-dark-5"]=bt(e,s,50),r["--el-color-primary-dark-6"]=bt(e,s,40),r["--el-color-primary-dark-7"]=bt(e,s,30),r["--el-color-primary-dark-8"]=bt(e,s,20),r["--el-color-primary-dark-9"]=bt(e,s,12);const{r:a,g:i,b:l}=Dy(e);r["--app-bg-color-overlay"]=`rgba(${a}, ${i}, ${l}, 0.05)`,r["--app-bg-color-overlay-hover"]=`rgba(${a}, ${i}, ${l}, 0.15)`,r["--app-bg-color-page"]=n?"var(--el-fill-color-blank)":"transparent",r["--app-bg-color-menus"]="var(--app-bg-color-page)",n?r["--app-text-shadow"]=" 0px 1px 2px rgba(255, 255, 255, .4)":r["--app-text-shadow"]=" 0px 1px 2px rgba(0, 0, 0, .4)",Zl(e,r,"--app-color-primary"),Zl(o,r,"--app-color-background"),Zl(s,r,"--app-color-foreground");for(const u in r)k9(u,r[u])},L9=async e=>{const t=e??(await Wr.system.getAppThemeState()).themeMode;return t==="system"?await Wr.system.shouldUseDarkColors():t==="dark"},qh=async e=>{const t=e??await Wr.system.getAppThemeState(),n=await L9(t.themeMode);F9(t.primaryColor,t.themeMode,n)},Gy=qg("biliToolkit-ui-theme",()=>{const e=xn(QE);let t=!1;const n=async(s,o)=>{const a=await window.toolkitApi.system.getAppThemeState();Object.assign(e,a),await qh(a),s&&o&&(t=!0,Ie(()=>e,i=>{const l=v0(i);window.toolkitApi.db.write(s,l).then(async()=>{await window.toolkitApi.event.emit(o,l)})},{deep:!0}))};window.toolkitApi.event.onUpdateAppTheme(s=>{t||Object.assign(e,s),qh(s).then()}).catch();const r=s=>(e.primaryColor=s,e.primaryColor);return{init:n,state:e,switchThemeColor:()=>{e.primaryColorIndex=(e.primaryColorIndex+1)%$o.primaryColors.length;const s=$o.primaryColors[e.primaryColorIndex];return r(s)},setPrimaryColor:r}},{persist:!1}),Yy=qg("biliToolkit-ui-selected-user",()=>{const e=Q(null),t=async()=>{try{e.value=(await window.toolkitApi.db.init(Id.UI_SELECTED_USER))?.user??null}catch{}};return Ie(()=>e.value,async n=>{let r=n!=null?v0(n):null;await window.toolkitApi.db.write(Id.UI_SELECTED_USER,{user:r}),r&&await window.toolkitApi.user.switchCurrUser(r)},{deep:!0}),{init:t,user:e,deleteUser:()=>{e.value=null},setUser:n=>{e.value=n},assertLoggedIn:()=>{if(e.value==null)throw new Error("请先登录")}}}),M9=async(e,t)=>(Promise.resolve({}),Promise.resolve({}),Promise.resolve({}),await Gy(e).init(t?.appThemeDBName,t?.appThemeUpdateEvent),await Yy(e).init(),{install(n){}});function $9(e){Wr.system.saveLog({level:"error",data:[JSON.stringify(Kc(e))]}).catch()}function em(e,t){return e==null?!1:e instanceof t||typeof e=="object"&&"name"in e&&e.name===t.name}const yc=e=>{if(!IS(e))if(e){console.error(e);const t=()=>{Wr&&Wr.system&&$9(e)};em(e,O9)?si(`${e.message}`):em(e,N1)?(si(`${e.message} (${e.responseCode})`),t()):(si(Zc(e)),t())}else kf({message:"未知错误",type:"error"})};function kf(e){const t={message:"",type:"success",duration:3e3};typeof e=="string"?t.message=e:Object.assign(t,e),QR(t)}function si(e){kf({message:e,type:"error"})}function pk(e){kf({message:e,type:"warning"})}const hk=e=>{const t=Q(!1);let n=null;const r=Q(!1);return{loading:t,hasLoaded:r,loadingData:s=>async(...o)=>(n=(async()=>{t.value=!0;try{return typeof s=="function"?await s(...o):await s}finally{t.value=!1,r.value=!0,n=null}})(),n)}},V9=he({__name:"AppIcon",props:{icon:{}},setup(e){const t=e,n=Gy(),r=T(()=>n.state.dark?`ri-${t.icon}-fill`:`ri-${t.icon}-line`);return(s,o)=>(z(),Ee("i",{class:Oe([r.value,"icon-font"])},null,2))}}),Uy=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},W9={class:"tooltip"},D9={class:"label"},jy=he({__name:"AppTooltip",props:{content:{},lines:{default:1},ellipsis:{default:"right"},iconClass:{}},setup(e){bE(i=>({v22da9023:A(n)}));const t=e,n=t.lines,r=()=>({"txt-ellipsis-right":t.ellipsis==="right","txt-ellipsis-left":t.ellipsis==="left","single-line":t.lines===1}),s=Q(!1),o=m_("refContent"),a=new ResizeObserver(()=>{o.value&&(t.lines===1?s.value=o.value.scrollWidth>o.value.clientWidth:s.value=o.value.scrollHeight>o.value.clientHeight)});return it(()=>{o.value&&a.observe(o.value)}),ha(()=>{a.disconnect()}),(i,l)=>{const u=Ea;return z(),Ee("div",W9,[pe("div",D9,[e.iconClass?(z(),xe(V9,{key:0,icon:e.iconClass},null,8,["icon"])):et("",!0)]),e.content?(z(),xe(u,{key:0,effect:"light",content:e.content,placement:"top",disabled:!s.value,"show-after":800},{content:de(()=>[we(i.$slots,"tooltipContent")]),default:de(()=>[pe("div",Yt({ref_key:"refContent",ref:o},i.$attrs,{class:["tooltip__content",r()]}),[pe("span",null,[we(i.$slots,"default",{},()=>[Un(Wt(e.content),1)])])],16)]),_:3},8,["content","disabled"])):et("",!0)])}}}),Zy="data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2030%2030'%20style='enable-background:new%200%200%2030%2030;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e.st0.lv1{fill:transparent;}.st1.lv1{fill-rule:evenodd;clip-rule:evenodd;fill:%23FFFFFF;}.st2.lv1{fill-rule:evenodd;clip-rule:evenodd;fill:%23C0C0C0;}%3c/style%3e%3crect%20class='st0%20lv1'%20width='30'%20height='30'/%3e%3cpath%20class='st1%20lv1'%20d='M19.9,11.1h-5.6v1.1H2.1v6.7h17.8v-6.7h0V11.1z'/%3e%3cpath%20class='st2%20lv1'%20d='M13.4,10.6c0-0.3,0.2-0.6,0.6-0.6h6.5c0.3,0,0.6,0.3,0.5,0.6v8.2v0.7c0,0.3-0.2,0.6-0.6,0.6H1.6%20C1.3,20,1,19.8,1,19.4v-7.8C1,11.3,1.2,11,1.6,11h11.8V10.6z%20M15.8,18.9h2.6c0.2,0,0.4-0.2,0.4-0.4v-0.6c0-0.2-0.2-0.4-0.4-0.4h-0.6%20v-5.6c0-0.2-0.2-0.4-0.4-0.4h-1.4c-0.2,0-0.4,0.2-0.4,0.4v0.6c0,0.2,0.2,0.4,0.4,0.4h0.4v4.6h-0.6c-0.2,0-0.4,0.2-0.4,0.4v0.6%20C15.3,18.7,15.5,18.9,15.8,18.9z%20M12.7,16.3v0.1c0,0.1-0.1,0.2-0.2,0.2c0,0,0,0-0.1,0.1l-2,2c-0.1,0.1-0.5,0.1-0.5,0.1%20s-0.4,0-0.5-0.1l-2-2c-0.1,0-0.1-0.3-0.1-0.4v-0.1v-3.5c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4l1.2,1.2l1.2-1.2v-3.3%20c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4V16.3L12.7,16.3z%20M2.6,18.9h3.4c0.2,0,0.4-0.2,0.4-0.4v-0.6c0-0.2-0.2-0.4-0.4-0.4%20H3.7v-4.7c0-0.2-0.2-0.4-0.4-0.4H2.6c-0.2,0-0.4,0.2-0.4,0.4v5.8C2.2,18.7,2.4,18.9,2.6,18.9z'/%3e%3c/svg%3e",Ky="data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2030%2030'%20style='enable-background:new%200%200%2030%2030;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e.st0.lv2{fill:transparent;}.st1.lv2{fill-rule:evenodd;clip-rule:evenodd;fill:%23FFFFFF;}.st2.lv2{fill-rule:evenodd;clip-rule:evenodd;fill:%238BD29B;}%3c/style%3e%3crect%20class='st0%20lv2'%20width='30'%20height='30'/%3e%3cpath%20class='st1%20lv2'%20d='M19.9,11.1h-5.6v1.1H2.1v6.7h17.8v-6.7h0V11.1z'/%3e%3cpath%20class='st2%20lv2'%20d='M14,10h6.5c0.3,0,0.6,0.3,0.5,0.6v8.8c0,0.3-0.2,0.6-0.6,0.6H1.6C1.3,20,1,19.8,1,19.4v-7.8%20C1,11.3,1.2,11,1.6,11h11.8v-0.4C13.4,10.3,13.6,10,14,10z%20M19.4,15.8c0.2,0,0.4-0.2,0.4-0.4v-3.7c0-0.2-0.2-0.4-0.4-0.4H15%20c-0.2,0-0.4,0.2-0.4,0.4v0.6c0,0.2,0.2,0.4,0.4,0.4h3.4v1.7H15c-0.2,0-0.4,0.2-0.4,0.4v3.7c0,0.2,0.2,0.4,0.4,0.4h4.4%20c0.2,0,0.4-0.2,0.4-0.4v-0.6c0-0.2-0.2-0.4-0.4-0.4H16v-1.7H19.4z%20M12.7,16.4c0,0.1,0,0.3-0.1,0.4l-2.1,2c-0.1,0.1-0.5,0.1-0.5,0.1%20s-0.4,0-0.5-0.1l-2-2c-0.1,0-0.1-0.3-0.1-0.4v-0.1v-3.5c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4l1.2,1.2l1.2-1.2v-3.3%20c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4V16.4z%20M2.6,18.9h3.4c0.2,0,0.4-0.2,0.4-0.4v-0.6c0-0.2-0.2-0.4-0.4-0.4H3.7%20v-4.7c0-0.2-0.2-0.4-0.4-0.4H2.6c-0.2,0-0.4,0.2-0.4,0.4v5.8C2.2,18.7,2.4,18.9,2.6,18.9z'/%3e%3c/svg%3e",Hy="data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2030%2030'%20style='enable-background:new%200%200%2030%2030;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e.st0.lv3{fill:transparent;}.st1.lv3{fill-rule:evenodd;clip-rule:evenodd;fill:%23FFFFFF;}.st2.lv3{fill-rule:evenodd;clip-rule:evenodd;fill:%237BCDEF;}%3c/style%3e%3crect%20class='st0%20lv3'%20width='30'%20height='30'/%3e%3cpath%20class='st1%20lv3'%20d='M19.9,11.1h-5.6v1.1H2.1v6.7h17.8v-6.7h0V11.1z'/%3e%3cpath%20class='st2%20lv3'%20d='M13.4,10.6c0-0.3,0.2-0.6,0.6-0.6h6.5c0.3,0,0.6,0.3,0.5,0.6v8.8c0,0.3-0.2,0.6-0.6,0.6H1.6%20C1.3,20,1,19.8,1,19.4v-7.8C1,11.3,1.2,11,1.6,11h11.8V10.6z%20M19.4,18.9c0.2,0,0.4-0.2,0.4-0.4v-6.9c0-0.2-0.2-0.4-0.4-0.4H15%20c-0.2,0-0.4,0.2-0.4,0.4v0.6c0,0.2,0.2,0.4,0.4,0.4h3.4v1.7H15c-0.2,0-0.4,0.2-0.4,0.4v0.6c0,0.2,0.2,0.4,0.4,0.4h3.4v1.7H15%20c-0.2,0-0.4,0.2-0.4,0.4v0.6c0,0.2,0.2,0.4,0.4,0.4H19.4z%20M12.7,16.4c0,0.1,0,0.3-0.1,0.4l-2.1,2c-0.1,0.1-0.5,0.1-0.5,0.1%20s-0.4,0-0.5-0.1l-2-2c-0.1,0-0.1-0.3-0.1-0.4v-0.1v-3.5c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4l1.2,1.2l1.2-1.2v-3.3%20c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4V16.4z%20M2.6,18.9h3.4c0.2,0,0.4-0.2,0.4-0.4v-0.6c0-0.2-0.2-0.4-0.4-0.4H3.7%20v-4.7c0-0.2-0.2-0.4-0.4-0.4H2.6c-0.2,0-0.4,0.2-0.4,0.4v5.8C2.2,18.7,2.4,18.9,2.6,18.9z'/%3e%3c/svg%3e",Xy="data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2030%2030'%20style='enable-background:new%200%200%2030%2030;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e.st0.lv4{fill:transparent;}.st1.lv4{fill-rule:evenodd;clip-rule:evenodd;fill:%23FFFFFF;}.st2.lv4{fill-rule:evenodd;clip-rule:evenodd;fill:%23FEBB8B;}%3c/style%3e%3crect%20class='st0%20lv4'%20width='30'%20height='30'/%3e%3cpath%20class='st1%20lv4'%20d='M19.9,11.1h-5.6v1.1H2.1v6.7h17.8v-6.7h0V11.1z'/%3e%3cpath%20class='st2%20lv4'%20d='M13.4,10.6c0-0.3,0.2-0.6,0.6-0.6h6.5c0.3,0,0.6,0.3,0.5,0.6v8.8c0,0.3-0.2,0.6-0.6,0.6H1.6%20C1.3,20,1,19.8,1,19.4v-7.8C1,11.3,1.2,11,1.6,11h11.8V10.6z%20M19.4,18.9c0.2,0,0.4-0.2,0.4-0.4v-6.9c0-0.2-0.2-0.4-0.4-0.4h-0.6%20c-0.2,0-0.4,0.2-0.4,0.4v2.7H16v-2.7c0-0.2-0.2-0.4-0.4-0.4H15c-0.2,0-0.4,0.2-0.4,0.4v3.7c0,0.2,0.2,0.4,0.4,0.4h3.4v2.7%20c0,0.2,0.2,0.4,0.4,0.4H19.4z%20M12.7,16.4c0,0.1,0,0.3-0.1,0.4l-2.1,2c-0.1,0.1-0.5,0.1-0.5,0.1s-0.4,0-0.5-0.1l-2-2%20c-0.1-0.1-0.1-0.3-0.1-0.4v-0.1v-3.5c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4l1.2,1.2l1.2-1.2v-3.3%20c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4V16.4z%20M2.6,18.9h3.4c0.2,0,0.4-0.2,0.4-0.4v-0.6c0-0.2-0.2-0.4-0.4-0.4H3.7%20v-4.7c0-0.2-0.2-0.4-0.4-0.4H2.6c-0.2,0-0.4,0.2-0.4,0.4v5.8C2.2,18.7,2.4,18.9,2.6,18.9z'/%3e%3c/svg%3e",zy="data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2030%2030'%20style='enable-background:new%200%200%2030%2030;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e.st0.lv5{fill:transparent;}.st1.lv5{fill-rule:evenodd;clip-rule:evenodd;fill:%23FFFFFF;}.st2.lv5{fill-rule:evenodd;clip-rule:evenodd;fill:%23EE672A;}%3c/style%3e%3crect%20class='st0%20lv5'%20width='30'%20height='30'/%3e%3cpath%20class='st1%20lv5'%20d='M19.9,11.1h-5.6v1.1H2.1v6.7h17.8v-6.7h0V11.1z'/%3e%3cpath%20class='st2%20lv5'%20d='M13.4,10.6c0-0.3,0.2-0.6,0.6-0.6h6.5c0.3,0,0.6,0.3,0.5,0.6v8.8c0,0.3-0.2,0.6-0.6,0.6H1.6%20C1.3,20,1,19.8,1,19.4v-7.8C1,11.3,1.2,11,1.6,11h11.8V10.6z%20M19.4,12.7c0.2,0,0.4-0.2,0.4-0.4v-0.7c0-0.2-0.2-0.4-0.4-0.4H15%20c-0.2,0-0.4,0.2-0.4,0.4v3.7c0,0.2,0.2,0.4,0.4,0.4h3.4v1.7H15c-0.2,0-0.4,0.2-0.4,0.4v0.6c0,0.2,0.2,0.4,0.4,0.4h4.4%20c0.2,0,0.4-0.2,0.4-0.4v-3.7c0-0.2-0.2-0.4-0.4-0.4H16v-1.6H19.4z%20M12.7,16.4c0,0.1,0,0.3-0.1,0.4l-2.1,2c-0.1,0.1-0.5,0.1-0.5,0.1%20s-0.4,0-0.5-0.1l-2-2c-0.1-0.1-0.1-0.3-0.1-0.4v-0.1v-3.5c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4l1.2,1.2l1.2-1.2%20v-3.3c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4V16.4z%20M2.6,18.9h3.4c0.2,0,0.4-0.2,0.4-0.4v-0.6c0-0.2-0.2-0.4-0.4-0.4%20H3.7v-4.7c0-0.2-0.2-0.4-0.4-0.4H2.6c-0.2,0-0.4,0.2-0.4,0.4v5.8C2.2,18.7,2.4,18.9,2.6,18.9z'/%3e%3c/svg%3e",Jy="data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2030%2030'%20style='enable-background:new%200%200%2030%2030;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e.st0.lv6{fill:transparent;}.st1.lv6{fill-rule:evenodd;clip-rule:evenodd;fill:%23FFFFFF;}.st2.lv6{fill-rule:evenodd;clip-rule:evenodd;fill:%23F04C49;}%3c/style%3e%3crect%20class='st0%20lv6'%20width='30'%20height='30'/%3e%3cpath%20class='st1%20lv6'%20d='M19.9,11.1h-5.6v1.1H2.1v6.7h17.8v-6.7h0V11.1z'/%3e%3cpath%20class='st2%20lv6'%20d='M14,10c-0.4,0-0.6,0.3-0.6,0.6V11H1.6C1.2,11,1,11.3,1,11.6v7.8C1,19.8,1.3,20,1.6,20h18.8%20c0.4,0,0.6-0.3,0.6-0.6v-8.8c0.1-0.3-0.2-0.6-0.5-0.6H14z%20M19.8,12.3c0,0.2-0.2,0.4-0.4,0.4H16v1.6h3.4c0.2,0,0.4,0.2,0.4,0.4v3.7%20c0,0.2-0.2,0.4-0.4,0.4H15c-0.2,0-0.4-0.2-0.4-0.4v-6.8c0-0.2,0.2-0.4,0.4-0.4h4.4c0.2,0,0.4,0.2,0.4,0.4V12.3z%20M12.6,16.7%20c0.1-0.1,0.1-0.2,0.1-0.4v-0.1v-3.4c0-0.2-0.2-0.4-0.4-0.4h-0.6c-0.2,0-0.4,0.2-0.4,0.4v3.3L10,17.3l-1.2-1.2v-3.4%20c0-0.2-0.2-0.4-0.4-0.4H7.8c-0.2,0-0.4,0.2-0.4,0.4v3.5v0.1c0,0.2,0,0.4,0.1,0.4l2,2c0.1,0.1,0.5,0.1,0.5,0.1s0.4,0,0.5-0.1%20L12.6,16.7z%20M6.1,18.9H2.6c-0.2,0-0.4-0.2-0.4-0.4v-5.8c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v4.7h2.4%20c0.2,0,0.4,0.2,0.4,0.4v0.6C6.5,18.7,6.3,18.9,6.1,18.9z%20M18.4,17.4H16v-1.7h2.4V17.4z'/%3e%3c/svg%3e",wc="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/2wBDAQMDAwQDBAgEBAgQCwkLEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBD/wAARCAC0ALQDAREAAhEBAxEB/8QAHAABAAMAAwEBAAAAAAAAAAAAAAUGBwECBAMJ/8QASBAAAQMCAgQHDQUHAgcAAAAAAQACAwQFBhEHEiExEyJBUWGR0RQVFjZVcXSBk5ShsdIyQlJUwVZicnOCkrMjQyQmM0VThLL/xAAYAQEBAQEBAAAAAAAAAAAAAAAAAQIDBP/EAB8RAQEAAgMAAwEBAAAAAAAAAAABAhESITEiMlFBQv/aAAwDAQACEQMRAD8A/RVetyEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQdBPAZTAJmGRozLA4awHmRHdFEBAQEHSKeGcF0EzJADkSxwOR5tiI7oogICAgICAgICAgICAgICDFrxT3rDd+fNNLIypEhljnB/6gJ39PSPUteuF3K0nCWLKbEdNwcmrFWxD/Uj5HfvN6Pks2OuOW1gRoQN20oM5xvjgzGSz2ab/T2tnnaftc7Wnm5zyqyOWWW+o76MLXco5pro8ujo5I+Da0/7rs946Bt29KUwl9aGo6iAgICAgICAgICAgIOHvZGwySPDWtGZcTkAEEPNjPDFO8xyXiEkHI6oLh1gFNM8o+fhzhXyuz2b+xDlEdfb5gfEFE6jrLowEbY5BG/WjdzjZ8E7S3Gs0jqJrXX8Pb6vjwSHg5mZgOyO/I8h5itOXjTLLpEs1XRNddqgUlS3ivbquLXdIyB2dCmnWZz+pDw5wr5XZ7N/YovKKnjPHja2N1ssczuAcMpZwCC8fhGe0DnVkYyy31Fdw1S2Oet4W/1zYKeLI6mq4mU82wbBzq1ma320yPGuEYY2xRXSNjGANa0RPAA5tyy68o7eHOFfK7PZv7EOUe633+y3V2pQXKGZ+WeoHZO6jtTSyyveiiAgICAgICAgIOHOaxpe9wa1ozJO4BBmdxuF2x9eHWq1yGKgiOZJ2N1R993PnyBXxytud1Es7R3he307X3S6TNPLI6VkbT5gR+qbXhJ6+Hgpo8Gzv+PfI+xN1OOP648FdHf7QN98j7E3Tjj+ngro7/aBvvkfYm6ccf08FtHf7QD3yPsTdXjj+uwwlo+O0X4e+R9ibqccf08EtH3l4e+R9ibpxx/TwS0fD/vw98j7E3Tjj+ngno98vj3yPsTdOOP65ZhHR/I4MZfQ5x3AVke34JunHH9dLvo2ZDB3bh2tlMsY12se4Eu/hcMsim1uH4kcC4rmuzH2q6O/42nGxx2GRo2HPpHKli45b6q3KNiAgICAgICAgr2Pa59BhmpMZIdOWwAjkDt/wBSM53URei2BjLPV1OqNaSo1S7lya0bPiVazh4k7Jbaa8R+EF2gZUz1JcYWyDWbDFmQ1rQdm7aTzlRZN91L957R5Ko/YN7Ea1DvPaPJVH7BvYhqHee0eSqP2DexDUO89o8lUfsG9iGod57R5Ko/YN7ENQ7z2jyVR+wb2Iah3ntHkqj9g3sQ1DvPaPJVH7BvYhqOr7JZpGlj7TRlrhkRwDexDUR1oidZr3NYonuNFJB3VTNcSeC42q5gPNmQR50SdXSk3SY2bSKZ4QGN7pjJA3ZPA1uvMq/xzvWTVFHYQEBAQEBAQEFT0m+LbfSWfJyRjPxxo0blhl5/FUSH4NVph4mcLZeD1Bl/4QpVx8SiNCAgICAgICAgipMvCmD0CT/IxGf8ATPccDLGpPOYD8AtRzy+zV1l2EBAQEBAQEBBU9Jvi230lnyckYz8ddGhPgzJnyVEn/wAtVqYeJnChzw5bzzwhStY+JVGnlr7rbbXHwlwrYYAd2u7InzDeUS2T1W6nSbh+GZscMdTOzPjPawAAdGZBKumecWuCeKphZUQPD45Gh7XDcQdyjXruiq/ijGFLhl8EL6d1RLNm4sa/V1W8+7n+SSbZyy4vhbdImHa4hk0slG88kzeL/cMx15JpJnKskE8FTGJqeZksbtzmODgfWEa9d0VESnLFdMOegl/yMRn/AEz7G5Jxs8czoAP7Wqzxzy+zWFHYQEBAQEBAQEFT0m+LbfSWfJyRjPxxo2GWGHnnnkPwCtMPEvhPxbt/8hqlXHxUMYY6u1NcZ7TbMqZkB1HSaub3Hoz3BWRjLK70pQbcLrVEgT1dRIdu97z+qrHdW2xaNK+r1Z7zL3LEdvBNyMh8/I34qbbmFvrSKOkgoaWKjpmlsULAxgJzyAUdJ0+qKgcT4QocStZJJK6CpiaWslaM8xzEcoSXTOWPJnl4wLf7SS8U3dUI/wByDjZedu8LW3O42I213q62OfhKCqkhOfGYdrXedp2IzLY1rCV8qMQWgV9VTCGQSGM6ueq/IDjDPk25epZrtjdx2m8bKX0Cb/IxD+s/xwAMakjlMB+AWo55fZq6y7CAgICAgICAgqek3xbb6Sz5OSMZ+ONHGzCzv50nyCtMPEvhPxbt38hqlXHxzcMLWG6Vnd9fQNlm1Q0kucAQN2YB2psuMvb30lDR0MfBUVLFAz8MbA0fBF1p9kV84KmnqWudTzslDHFjixwOThvBy5UQhqqapLxT1EcvBO1H6jgdV3MctxQ24gqqapMgp52SGJ5jk1XZ6rhvB6UH1RXir7JaLnn3fboJifvOZxusbUSyV6KWlpqKBlLSQMhiYMmsYMgEPEZN420voE3+RiJ/VBxz46ex+QWo55fZqyy7CAgICAgICAgqek3xbb6Sz5OSMZ+OdHLf+Vh+9NJ+itMPEthQauHLe3mhAUq4+JVGhAQVmfDN2oKueowvc4qSOrOtNBMzWYH/AIm78j0JtjjZ48lPgu82hp7xX/gnVEYbVGVmes/bxm8289qu042eVP2Cw01gozTQSPlfI4ySyvPGkeeVRqTSSRoQEERK3PFdM7P7NBL8ZGIz/VCx2MsZtPOIStRzy+zVFl2EBAQEBAQEBBVNJjScN5jkqGE9RVjGfjro0l4TDb4xvjqHt6wD+qUw8TGFXB2HqHnbHqnoIJBHWpVx8SqNCAgICAgICAgiHvDsWxRt2llveXdGcjcvkUZ/0oGNHGoxwImbS18EY8+Q7VqeOeX2assuwgICAgICAgIPBfrYLxaKq3HIOlZxCeRw2t+ICJZuaUXR7e4rPV1NhuZEBlkzYX7MpBsLT58h1K1zwuuquRttyt88stllpzDO4yPpp8w1rzvLHN3Z7yMiM1G9WeBmxXnsobXl6Q/6EPkcNiv8hbPeX/QnR8jhsWeT7X7y/wChOj5HDYs/IWv3l/0J0fJ2EuKeWitg/wDYf9CHZwuKPyds9u/6UOzhcU/krZ7w/wClDtxwuKvyVs94k+hDtwJcWO2dxWtmf3uHkdl6tUZofJxBFT4fpqq73mubJPLk6ect1RkPssYOYcg3klDzuqRhqCbFWMpb3JDq08MnDuzGwZbGN8+wdRV8Yx+V209R1EBAQEBAQEBAQVbFmBqe/PNdRSNp6zLJxI4knn5j0qysZY78VUWTSNbwKWnkrODZ9ngqkFvq2p0xrKORQ6TCcg+4+uoH1J0ayfCvGkG2U7quuq66KFmWbzUgjbu3FXovKPLbbljS7yPittxrp3xjWc1s+0Dn2lOknK+PZURaRqWCSpqJ7iyKJpe9xn2ADed6nS/KPFbrrjK7Tmmt1zrp5WtLy1s5zy59p6Qr0ktvj3S0+kiCJ8001xYyNpc5xqNgA3nep0uskbR33FdfUspKS71sk0hyY3hyMzzbSqm7UsaDSaNvCXH3kfUp0usnHcOkz8dy94H1J0ayfSDBmL79Mw3yrkiib96eXXcB0NB39Sbi8bfWhWez0VjomUNDHqsbtc4/ae7lJKjpJp7UUQEBAQEBAQEBAQEBBnOlC7l89PZYn8WMcNKB+I/ZHVmfWrHLO/xWcK3c2S+U9Y52URdwcv8AAdh6t/qVrON1WiaRLgKXDb4mP41W9sQy5R9o/AfFZjpnelDwLWdx4noyTk2YmE/1DIfHJarnjdVddJN67htLbZE/KWtOTst4jG/rOQ61I6Z3U0y6KWSCVk0Ty18bg5rhvBG4quTcMP3aO92inuLMg6RuUgH3XjY4day7y7m0giiAgICAgICAgICAgICAg6yyxwRPmlcGsjaXOJ5ABmSiMKu9wkutzqbjJnnPIXAczeQeoZBacLd3byIJi8Ygmu9rttDMSXUTHMcT97cGn+0BFt3EZSVDqSqhqmfahkbIPODmiJDFF6dfbzPXAnggeDhB5GDd17T60i27u0UiLxowvPAVs1mlfxKgcJFnyPA2j1j5KVvC96aUo6iAgICAgICAgICAgICAgrGkO6d78PSQMdlJWOEI/h3u+Ay9aRjO6jJFpyEBAQEBB6LdWy26vp6+E8eCRrx05HchLpu1NURVdPFVQu1o5mB7TzgjMLLv6+iKICAgICAgICAgICAgIMs0m3Luq9x0DHZso4wCP33bT8NVWOOd3VQVZEBAQEBAQato2ubq2xGjkOb6J+oP4DtH6j1KV1wvS2KNiAgICAgICAgICAgIOskjIo3SyHJrAXOPMAiMIuda+43Gprnk5zyuf5gTsHUtOF7eZAQEBAQEBBa9G9y7jv8A3I92UdYws/qG0fqPWpWsLqtXUdhAQEBAQEBAQEBAQEEViuV8GG7jJGcncA4Z+fZ+qRnLxiS04iAgICAgICD22SV8N4oZYzk5tRGQf6glJ63VZegQEBAQEBB//9k=",G9={class:"user-card"},Y9={class:"user-card__face-wrapper"},U9=["src"],j9={key:0,class:"user-card--blocked"},Z9={class:"user-card__info"},K9={class:"user-card__row"},H9=["src"],X9={class:"user-card__row"},z9={class:"user-card__uid"},J9={class:"user-card__row"},Q9={class:"user-card__stat__item"},q9={class:"user-card__stat__value"},eB={class:"user-card__stat__item"},tB={class:"user-card__stat__value"},nB={class:"user-card__stat__item"},rB={class:"user-card__stat__value"},sB=he({__name:"BiliUserCard",props:{user:{}},setup(e){const t=e,n=T(()=>t.user.face||wc),r=T(()=>new URL(Object.assign({"../../assets/images/user_level/level_1.svg":Zy,"../../assets/images/user_level/level_2.svg":Ky,"../../assets/images/user_level/level_3.svg":Hy,"../../assets/images/user_level/level_4.svg":Xy,"../../assets/images/user_level/level_5.svg":zy,"../../assets/images/user_level/level_6.svg":Jy})[`../../assets/images/user_level/level_${t.user.level}.svg`],import.meta.url).href);return(s,o)=>{const a=jy;return z(),Ee("div",G9,[we(s.$slots,"default"),pe("div",Y9,[pe("img",{class:"user-card__face",alt:"face",src:n.value},null,8,U9),e.user.silence===1?(z(),Ee("span",j9,"账号已封禁")):et("",!0)]),pe("div",Z9,[pe("div",K9,[Ae(a,{class:"user-card__name",content:e.user.name},null,8,["content"]),pe("img",{class:"user-card__level",src:r.value,alt:"level"},null,8,H9)]),pe("div",X9,[o[0]||(o[0]=pe("span",{class:"user-card__uid-icon"},null,-1)),pe("span",z9,Wt(e.user.mid),1)]),pe("div",J9,[pe("span",Q9,[pe("span",q9,Wt(e.user.following),1),o[1]||(o[1]=pe("span",{class:"user-card__stat__label"},"关注",-1))]),pe("span",eB,[pe("span",tB,Wt(e.user.follower),1),o[2]||(o[2]=pe("span",{class:"user-card__stat__label"},"粉丝",-1))]),pe("span",nB,[pe("span",rB,Wt(e.user.coins),1),o[3]||(o[3]=pe("span",{class:"user-card__stat__label"},"硬币",-1))])])])])}}}),Qy=he({__name:"PluginMenuItem",props:{menu:{}},setup(e){return(t,n)=>{const r=jb,s=kR;return!e.menu.children||e.menu.children.length===0?(z(),xe(r,{key:0,index:e.menu.path},{title:de(()=>[Un(Wt(e.menu.title),1)]),_:1},8,["index"])):(z(),xe(s,{key:1,index:e.menu.path},{title:de(()=>[Un(Wt(e.menu.title),1)]),default:de(()=>[(z(!0),Ee(qe,null,vg(e.menu.children,o=>(z(),xe(Qy,{key:o.path,menu:o},null,8,["menu"]))),128))]),_:1},8,["index"]))}}}),oB=he({__name:"PluginMenus",props:{menus:{},activeIndex:{}},emits:["handleSelect"],setup(e,{emit:t}){const n=e,r=(c,f=new Map)=>(c.forEach(d=>{f.set(d.path,d),d.children&&d.children.length>0&&r(d.children,f)}),f),s=T(()=>r(n.menus)),o=t,a=c=>{const f=s.value.get(c);f&&o("handleSelect",f)},i=_g(),l=T(()=>!!i["left-item"]||!!i.left),u=T(()=>!!i["right-item"]||!!i.right);return(c,f)=>{const d=jb,p=OR;return z(),xe(p,{"default-active":e.activeIndex,class:"plugin-menus",mode:"horizontal",ellipsis:!1,onSelect:a},{default:de(()=>[l.value?we(c.$slots,"left-item",{key:0},()=>[Ae(d,{index:"-left",style:{"margin-right":"auto"}},{default:de(()=>[we(c.$slots,"left",{},void 0,!0)]),_:3})],!0):et("",!0),(z(!0),Ee(qe,null,vg(e.menus,h=>(z(),xe(Qy,{key:h.path,menu:h,index:String(h.path)},null,8,["menu","index"]))),128)),u.value?we(c.$slots,"right-item",{key:1},()=>[Ae(d,{index:"-right",style:{"margin-left":"auto"}},{default:de(()=>[we(c.$slots,"right",{},void 0,!0)]),_:3})],!0):et("",!0)]),_:3},8,["default-active"])}}}),aB=Uy(oB,[["__scopeId","data-v-6dfc7821"]]),iB={class:"plugin-page-header"},lB={class:"plugin-page-header__user-container"},uB={class:"plugin-page-header__user-container__info"},cB=["src"],fB=["src"],dB={key:1,class:"plugin-page-header__user-container__info"},pB=he({__name:"PluginPageHeader",props:{menus:{},activeIndex:{}},emits:["handleMenuSelect"],setup(e,{emit:t}){const n=Yy(),{user:r}=ZE(n),s=T(()=>r.value?.face||wc),o=T(()=>new URL(Object.assign({"../../assets/images/user_level/level_1.svg":Zy,"../../assets/images/user_level/level_2.svg":Ky,"../../assets/images/user_level/level_3.svg":Hy,"../../assets/images/user_level/level_4.svg":Xy,"../../assets/images/user_level/level_5.svg":zy,"../../assets/images/user_level/level_6.svg":Jy})[`../../assets/images/user_level/level_${r.value?.level??0}.svg`],import.meta.url).href),a=async()=>{n.setUser(await Wr.user.switchUser(!0))},i=()=>{n.deleteUser()},l=t,u=c=>{c&&l("handleMenuSelect",c)};return it(async()=>{if(r.value)try{const c=await Wr.user.getMyInfoByCookie(r.value.userCookie);n.setUser(c)}catch{si("当前用户 cookie 已失效"),n.deleteUser()}}),(c,f)=>{const d=aB,p=jy,h=sB,m=i8,b=gR,y=bR,v=mR;return z(),Ee("div",iB,[Ae(d,{class:"plugin-page-header__menus","active-index":e.activeIndex,menus:e.menus,onHandleSelect:u},null,8,["active-index","menus"]),pe("div",lB,[A(r)?(z(),xe(m,{key:0,placement:"bottom-end",width:"auto",trigger:"hover"},{reference:de(()=>[pe("div",uB,[pe("img",{class:"plugin-page-header__user-container__info__face",src:s.value,alt:"face"},null,8,cB),Ae(p,{class:"plugin-page-header__user-container__info__name",content:A(r).name},null,8,["content"]),pe("img",{class:"plugin-page-header__user-container__info__level",src:o.value,alt:"level img"},null,8,fB)])]),default:de(()=>[Ae(h,{user:A(r)},null,8,["user"])]),_:1})):(z(),Ee("div",dB,[...f[0]||(f[0]=[pe("img",{class:"plugin-page-header__user-container__info__face",alt:"",src:wc},null,-1),pe("span",{class:"plugin-page-header__user-container__info__name"},"未登录",-1)])])),Ae(v,{placement:"bottom-end",trigger:"click",size:"default"},{dropdown:de(()=>[Ae(y,null,{default:de(()=>[Ae(b,{onClick:a},{default:de(()=>[...f[1]||(f[1]=[Un("选择用户",-1)])]),_:1}),A(r)?(z(),xe(b,{key:0,onClick:i},{default:de(()=>[...f[2]||(f[2]=[Un("取消选择",-1)])]),_:1})):et("",!0)]),_:1})]),default:de(()=>[f[3]||(f[3]=pe("span",{class:"plugin-page-header__user-container__arrow"},"▼",-1))]),_:1})])])}}}),hB={},mB={class:"plugin-page-container"};function gB(e,t){return z(),Ee("div",mB,[we(e.$slots,"default",{},void 0,!0)])}const mk=Uy(hB,[["render",gB],["__scopeId","data-v-ddcb3392"]]);const Rs=typeof document<"u";function qy(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function bB(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&qy(e.default)}const Me=Object.assign;function Kl(e,t){const n={};for(const r in t){const s=t[r];n[r]=Sn(s)?s.map(e):e(s)}return n}const jo=()=>{},Sn=Array.isArray;function tm(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const ew=/#/g,vB=/&/g,yB=/\//g,wB=/=/g,_B=/\?/g,tw=/\+/g,EB=/%5B/g,AB=/%5D/g,nw=/%5E/g,SB=/%60/g,rw=/%7B/g,xB=/%7C/g,sw=/%7D/g,NB=/%20/g;function Ff(e){return e==null?"":encodeURI(""+e).replace(xB,"|").replace(EB,"[").replace(AB,"]")}function IB(e){return Ff(e).replace(rw,"{").replace(sw,"}").replace(nw,"^")}function _c(e){return Ff(e).replace(tw,"%2B").replace(NB,"+").replace(ew,"%23").replace(vB,"%26").replace(SB,"`").replace(rw,"{").replace(sw,"}").replace(nw,"^")}function CB(e){return _c(e).replace(wB,"%3D")}function TB(e){return Ff(e).replace(ew,"%23").replace(_B,"%3F")}function RB(e){return TB(e).replace(yB,"%2F")}function da(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const PB=/\/$/,BB=e=>e.replace(PB,"");function Hl(e,t,n="/"){let r,s={},o="",a="";const i=t.indexOf("#");let l=t.indexOf("?");return l=i>=0&&l>i?-1:l,l>=0&&(r=t.slice(0,l),o=t.slice(l,i>0?i:t.length),s=e(o.slice(1))),i>=0&&(r=r||t.slice(0,i),a=t.slice(i,t.length)),r=LB(r??t,n),{fullPath:r+o+a,path:r,query:s,hash:da(a)}}function OB(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function nm(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function kB(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&Xs(t.matched[r],n.matched[s])&&ow(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Xs(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ow(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!FB(e[n],t[n]))return!1;return!0}function FB(e,t){return Sn(e)?rm(e,t):Sn(t)?rm(t,e):e?.valueOf()===t?.valueOf()}function rm(e,t){return Sn(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function LB(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let o=n.length-1,a,i;for(a=0;a<r.length;a++)if(i=r[a],i!==".")if(i==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(a).join("/")}const _r={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Ec=(function(e){return e.pop="pop",e.push="push",e})({}),Xl=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function MB(e){if(!e)if(Rs){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),BB(e)}const $B=/^[^#]+#/;function VB(e,t){return e.replace($B,"#")+t}function WB(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const al=()=>({left:window.scrollX,top:window.scrollY});function DB(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=WB(s,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 sm(e,t){return(history.state?history.state.position-t:-1)+e}const Ac=new Map;function GB(e,t){Ac.set(e,t)}function YB(e){const t=Ac.get(e);return Ac.delete(e),t}function UB(e){return typeof e=="string"||e&&typeof e=="object"}function aw(e){return typeof e=="string"||typeof e=="symbol"}let rt=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const iw=Symbol("");rt.MATCHER_NOT_FOUND+"",rt.NAVIGATION_GUARD_REDIRECT+"",rt.NAVIGATION_ABORTED+"",rt.NAVIGATION_CANCELLED+"",rt.NAVIGATION_DUPLICATED+"";function zs(e,t){return Me(new Error,{type:e,[iw]:!0},t)}function qn(e,t){return e instanceof Error&&iw in e&&(t==null||!!(e.type&t))}const jB=["params","query","hash"];function ZB(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of jB)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function KB(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const s=n[r].replace(tw," "),o=s.indexOf("="),a=da(o<0?s:s.slice(0,o)),i=o<0?null:da(s.slice(o+1));if(a in t){let l=t[a];Sn(l)||(l=t[a]=[l]),l.push(i)}else t[a]=i}return t}function om(e){let t="";for(let n in e){const r=e[n];if(n=CB(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(Sn(r)?r.map(s=>s&&_c(s)):[r&&_c(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function HB(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Sn(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const XB=Symbol(""),am=Symbol(""),il=Symbol(""),Lf=Symbol(""),Sc=Symbol("");function yo(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Br(e,t,n,r,s,o=a=>a()){const a=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((i,l)=>{const u=d=>{d===!1?l(zs(rt.NAVIGATION_ABORTED,{from:n,to:t})):d instanceof Error?l(d):UB(d)?l(zs(rt.NAVIGATION_GUARD_REDIRECT,{from:t,to:d})):(a&&r.enterCallbacks[s]===a&&typeof d=="function"&&a.push(d),i())},c=o(()=>e.call(r&&r.instances[s],t,n,u));let f=Promise.resolve(c);e.length<3&&(f=f.then(u)),f.catch(d=>l(d))})}function zl(e,t,n,r,s=o=>o()){const o=[];for(const a of e)for(const i in a.components){let l=a.components[i];if(!(t!=="beforeRouteEnter"&&!a.instances[i]))if(qy(l)){const u=(l.__vccOpts||l)[t];u&&o.push(Br(u,n,r,a,i,s))}else{let u=l();o.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${i}" at "${a.path}"`);const f=bB(c)?c.default:c;a.mods[i]=c,a.components[i]=f;const d=(f.__vccOpts||f)[t];return d&&Br(d,n,r,a,i,s)()}))}}return o}function zB(e,t){const n=[],r=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let a=0;a<o;a++){const i=t.matched[a];i&&(e.matched.find(u=>Xs(u,i))?r.push(i):n.push(i));const l=e.matched[a];l&&(t.matched.find(u=>Xs(u,l))||s.push(l))}return[n,r,s]}let JB=()=>location.protocol+"//"+location.host;function lw(e,t){const{pathname:n,search:r,hash:s}=t,o=e.indexOf("#");if(o>-1){let a=s.includes(e.slice(o))?e.slice(o).length:1,i=s.slice(a);return i[0]!=="/"&&(i="/"+i),nm(i,"")}return nm(n,e)+r+s}function QB(e,t,n,r){let s=[],o=[],a=null;const i=({state:d})=>{const p=lw(e,location),h=n.value,m=t.value;let b=0;if(d){if(n.value=p,t.value=d,a&&a===h){a=null;return}b=m?d.position-m.position:0}else r(p);s.forEach(y=>{y(n.value,h,{delta:b,type:Ec.pop,direction:b?b>0?Xl.forward:Xl.back:Xl.unknown})})};function l(){a=n.value}function u(d){s.push(d);const p=()=>{const h=s.indexOf(d);h>-1&&s.splice(h,1)};return o.push(p),p}function c(){if(document.visibilityState==="hidden"){const{history:d}=window;if(!d.state)return;d.replaceState(Me({},d.state,{scroll:al()}),"")}}function f(){for(const d of o)d();o=[],window.removeEventListener("popstate",i),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",i),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:l,listen:u,destroy:f}}function im(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?al():null}}function qB(e){const{history:t,location:n}=window,r={value:lw(e,n)},s={value:t.state};s.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,u,c){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:JB()+e+l;try{t[c?"replaceState":"pushState"](u,"",d),s.value=u}catch(p){console.error(p),n[c?"replace":"assign"](d)}}function a(l,u){o(l,Me({},t.state,im(s.value.back,l,s.value.forward,!0),u,{position:s.value.position}),!0),r.value=l}function i(l,u){const c=Me({},s.value,t.state,{forward:l,scroll:al()});o(c.current,c,!0),o(l,Me({},im(r.value,l,null),{position:c.position+1},u),!1),r.value=l}return{location:r,state:s,push:i,replace:a}}function eO(e){e=MB(e);const t=qB(e),n=QB(e,t.state,t.location,t.replace);function r(o,a=!0){a||n.pauseListeners(),history.go(o)}const s=Me({location:"",base:e,go:r,createHref:VB.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function tO(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),eO(e)}let ts=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var dt=(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})(dt||{});const nO={type:ts.Static,value:""},rO=/[a-zA-Z0-9_]/;function sO(e){if(!e)return[[]];if(e==="/")return[[nO]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${u}": ${p}`)}let n=dt.Static,r=n;const s=[];let o;function a(){o&&s.push(o),o=[]}let i=0,l,u="",c="";function f(){u&&(n===dt.Static?o.push({type:ts.Static,value:u}):n===dt.Param||n===dt.ParamRegExp||n===dt.ParamRegExpEnd?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:ts.Param,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=l}for(;i<e.length;){if(l=e[i++],l==="\\"&&n!==dt.ParamRegExp){r=n,n=dt.EscapeNext;continue}switch(n){case dt.Static:l==="/"?(u&&f(),a()):l===":"?(f(),n=dt.Param):d();break;case dt.EscapeNext:d(),n=r;break;case dt.Param:l==="("?n=dt.ParamRegExp:rO.test(l)?d():(f(),n=dt.Static,l!=="*"&&l!=="?"&&l!=="+"&&i--);break;case dt.ParamRegExp:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:n=dt.ParamRegExpEnd:c+=l;break;case dt.ParamRegExpEnd:f(),n=dt.Static,l!=="*"&&l!=="?"&&l!=="+"&&i--,c="";break;default:t("Unknown state");break}}return n===dt.ParamRegExp&&t(`Unfinished custom RegExp for param "${u}"`),f(),a(),s}const lm="[^/]+?",oO={sensitive:!1,strict:!1,start:!0,end:!0};var Ft=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(Ft||{});const aO=/[.+*?^${}()[\]/\\]/g;function iO(e,t){const n=Me({},oO,t),r=[];let s=n.start?"^":"";const o=[];for(const u of e){const c=u.length?[]:[Ft.Root];n.strict&&!u.length&&(s+="/");for(let f=0;f<u.length;f++){const d=u[f];let p=Ft.Segment+(n.sensitive?Ft.BonusCaseSensitive:0);if(d.type===ts.Static)f||(s+="/"),s+=d.value.replace(aO,"\\$&"),p+=Ft.Static;else if(d.type===ts.Param){const{value:h,repeatable:m,optional:b,regexp:y}=d;o.push({name:h,repeatable:m,optional:b});const v=y||lm;if(v!==lm){p+=Ft.BonusCustomRegExp;try{`${v}`}catch(_){throw new Error(`Invalid custom RegExp for param "${h}" (${v}): `+_.message)}}let E=m?`((?:${v})(?:/(?:${v}))*)`:`(${v})`;f||(E=b&&u.length<2?`(?:/${E})`:"/"+E),b&&(E+="?"),s+=E,p+=Ft.Dynamic,b&&(p+=Ft.BonusOptional),m&&(p+=Ft.BonusRepeatable),v===".*"&&(p+=Ft.BonusWildcard)}c.push(p)}r.push(c)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=Ft.BonusStrict}n.strict||(s+="/?"),n.end?s+="$":n.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const a=new RegExp(s,n.sensitive?"":"i");function i(u){const c=u.match(a),f={};if(!c)return null;for(let d=1;d<c.length;d++){const p=c[d]||"",h=o[d-1];f[h.name]=p&&h.repeatable?p.split("/"):p}return f}function l(u){let c="",f=!1;for(const d of e){(!f||!c.endsWith("/"))&&(c+="/"),f=!1;for(const p of d)if(p.type===ts.Static)c+=p.value;else if(p.type===ts.Param){const{value:h,repeatable:m,optional:b}=p,y=h in u?u[h]:"";if(Sn(y)&&!m)throw new Error(`Provided param "${h}" is an array but it is not repeatable (* or + modifiers)`);const v=Sn(y)?y.join("/"):y;if(!v)if(b)d.length<2&&(c.endsWith("/")?c=c.slice(0,-1):f=!0);else throw new Error(`Missing required param "${h}"`);c+=v}}return c||"/"}return{re:a,score:r,keys:o,parse:i,stringify:l}}function lO(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===Ft.Static+Ft.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Ft.Static+Ft.Segment?1:-1:0}function uw(e,t){let n=0;const r=e.score,s=t.score;for(;n<r.length&&n<s.length;){const o=lO(r[n],s[n]);if(o)return o;n++}if(Math.abs(s.length-r.length)===1){if(um(r))return 1;if(um(s))return-1}return s.length-r.length}function um(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const uO={strict:!1,end:!0,sensitive:!1};function cO(e,t,n){const r=iO(sO(e.path),n),s=Me(r,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function fO(e,t){const n=[],r=new Map;t=tm(uO,t);function s(f){return r.get(f)}function o(f,d,p){const h=!p,m=fm(f);m.aliasOf=p&&p.record;const b=tm(t,f),y=[m];if("alias"in f){const _=typeof f.alias=="string"?[f.alias]:f.alias;for(const B of _)y.push(fm(Me({},m,{components:p?p.record.components:m.components,path:B,aliasOf:p?p.record:m})))}let v,E;for(const _ of y){const{path:B}=_;if(d&&B[0]!=="/"){const G=d.record.path,P=G[G.length-1]==="/"?"":"/";_.path=d.record.path+(B&&P+B)}if(v=cO(_,d,b),p?p.alias.push(v):(E=E||v,E!==v&&E.alias.push(v),h&&f.name&&!dm(v)&&a(f.name)),cw(v)&&l(v),m.children){const G=m.children;for(let P=0;P<G.length;P++)o(G[P],v,p&&p.children[P])}p=p||v}return E?()=>{a(E)}:jo}function a(f){if(aw(f)){const d=r.get(f);d&&(r.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(a),d.alias.forEach(a))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,1),f.record.name&&r.delete(f.record.name),f.children.forEach(a),f.alias.forEach(a))}}function i(){return n}function l(f){const d=hO(f,n);n.splice(d,0,f),f.record.name&&!dm(f)&&r.set(f.record.name,f)}function u(f,d){let p,h={},m,b;if("name"in f&&f.name){if(p=r.get(f.name),!p)throw zs(rt.MATCHER_NOT_FOUND,{location:f});b=p.record.name,h=Me(cm(d.params,p.keys.filter(E=>!E.optional).concat(p.parent?p.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),f.params&&cm(f.params,p.keys.map(E=>E.name))),m=p.stringify(h)}else if(f.path!=null)m=f.path,p=n.find(E=>E.re.test(m)),p&&(h=p.parse(m),b=p.record.name);else{if(p=d.name?r.get(d.name):n.find(E=>E.re.test(d.path)),!p)throw zs(rt.MATCHER_NOT_FOUND,{location:f,currentLocation:d});b=p.record.name,h=Me({},d.params,f.params),m=p.stringify(h)}const y=[];let v=p;for(;v;)y.unshift(v.record),v=v.parent;return{name:b,path:m,params:h,matched:y,meta:pO(y)}}e.forEach(f=>o(f));function c(){n.length=0,r.clear()}return{addRoute:o,resolve:u,removeRoute:a,clearRoutes:c,getRoutes:i,getRecordMatcher:s}}function cm(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function fm(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:dO(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function dO(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function dm(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function pO(e){return e.reduce((t,n)=>Me(t,n.meta),{})}function hO(e,t){let n=0,r=t.length;for(;n!==r;){const o=n+r>>1;uw(e,t[o])<0?r=o:n=o+1}const s=mO(e);return s&&(r=t.lastIndexOf(s,r-1)),r}function mO(e){let t=e;for(;t=t.parent;)if(cw(t)&&uw(e,t)===0)return t}function cw({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function pm(e){const t=be(il),n=be(Lf),r=T(()=>{const l=A(e.to);return t.resolve(l)}),s=T(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],f=n.matched;if(!c||!f.length)return-1;const d=f.findIndex(Xs.bind(null,c));if(d>-1)return d;const p=hm(l[u-2]);return u>1&&hm(c)===p&&f[f.length-1].path!==p?f.findIndex(Xs.bind(null,l[u-2])):d}),o=T(()=>s.value>-1&&wO(n.params,r.value.params)),a=T(()=>s.value>-1&&s.value===n.matched.length-1&&ow(n.params,r.value.params));function i(l={}){if(yO(l)){const u=t[A(e.replace)?"replace":"push"](A(e.to)).catch(jo);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:r,href:T(()=>r.value.href),isActive:o,isExactActive:a,navigate:i}}function gO(e){return e.length===1?e[0]:e}const bO=he({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:pm,setup(e,{slots:t}){const n=xn(pm(e)),{options:r}=be(il),s=T(()=>({[mm(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[mm(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&gO(t.default(n));return e.custom?o:ut("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}}),vO=bO;function yO(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function wO(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!Sn(s)||s.length!==r.length||r.some((o,a)=>o.valueOf()!==s[a].valueOf()))return!1}return!0}function hm(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const mm=(e,t,n)=>e??t??n,_O=he({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=be(Sc),s=T(()=>e.route||r.value),o=be(am,0),a=T(()=>{let u=A(o);const{matched:c}=s.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),i=T(()=>s.value.matched[a.value]);st(am,T(()=>a.value+1)),st(XB,i),st(Sc,s);const l=Q();return Ie(()=>[l.value,i.value,e.name],([u,c,f],[d,p,h])=>{c&&(c.instances[f]=u,p&&p!==c&&u&&u===d&&(c.leaveGuards.size||(c.leaveGuards=p.leaveGuards),c.updateGuards.size||(c.updateGuards=p.updateGuards))),u&&c&&(!p||!Xs(c,p)||!d)&&(c.enterCallbacks[f]||[]).forEach(m=>m(u))},{flush:"post"}),()=>{const u=s.value,c=e.name,f=i.value,d=f&&f.components[c];if(!d)return gm(n.default,{Component:d,route:u});const p=f.props[c],h=p?p===!0?u.params:typeof p=="function"?p(u):p:null,b=ut(d,Me({},h,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return gm(n.default,{Component:b,route:u})||b}}});function gm(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const fw=_O;function EO(e){const t=fO(e.routes,e),n=e.parseQuery||KB,r=e.stringifyQuery||om,s=e.history,o=yo(),a=yo(),i=yo(),l=Qs(_r);let u=_r;Rs&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Kl.bind(null,L=>""+L),f=Kl.bind(null,RB),d=Kl.bind(null,da);function p(L,te){let q,ie;return aw(L)?(q=t.getRecordMatcher(L),ie=te):ie=L,t.addRoute(ie,q)}function h(L){const te=t.getRecordMatcher(L);te&&t.removeRoute(te)}function m(){return t.getRoutes().map(L=>L.record)}function b(L){return!!t.getRecordMatcher(L)}function y(L,te){if(te=Me({},te||l.value),typeof L=="string"){const S=Hl(n,L,te.path),V=t.resolve({path:S.path},te),Y=s.createHref(S.fullPath);return Me(S,V,{params:d(V.params),hash:da(S.hash),redirectedFrom:void 0,href:Y})}let q;if(L.path!=null)q=Me({},L,{path:Hl(n,L.path,te.path).path});else{const S=Me({},L.params);for(const V in S)S[V]==null&&delete S[V];q=Me({},L,{params:f(S)}),te.params=f(te.params)}const ie=t.resolve(q,te),_e=L.hash||"";ie.params=c(d(ie.params));const g=OB(r,Me({},L,{hash:IB(_e),path:ie.path})),w=s.createHref(g);return Me({fullPath:g,hash:_e,query:r===om?HB(L.query):L.query||{}},ie,{redirectedFrom:void 0,href:w})}function v(L){return typeof L=="string"?Hl(n,L,l.value.path):Me({},L)}function E(L,te){if(u!==L)return zs(rt.NAVIGATION_CANCELLED,{from:te,to:L})}function _(L){return P(L)}function B(L){return _(Me(v(L),{replace:!0}))}function G(L,te){const q=L.matched[L.matched.length-1];if(q&&q.redirect){const{redirect:ie}=q;let _e=typeof ie=="function"?ie(L,te):ie;return typeof _e=="string"&&(_e=_e.includes("?")||_e.includes("#")?_e=v(_e):{path:_e},_e.params={}),Me({query:L.query,hash:L.hash,params:_e.path!=null?{}:L.params},_e)}}function P(L,te){const q=u=y(L),ie=l.value,_e=L.state,g=L.force,w=L.replace===!0,S=G(q,ie);if(S)return P(Me(v(S),{state:typeof S=="object"?Me({},_e,S.state):_e,force:g,replace:w}),te||q);const V=q;V.redirectedFrom=te;let Y;return!g&&kB(r,ie,q)&&(Y=zs(rt.NAVIGATION_DUPLICATED,{to:V,from:ie}),le(ie,ie,!0,!1)),(Y?Promise.resolve(Y):F(V,ie)).catch($=>qn($)?qn($,rt.NAVIGATION_GUARD_REDIRECT)?$:re($):C($,V,ie)).then($=>{if($){if(qn($,rt.NAVIGATION_GUARD_REDIRECT))return P(Me({replace:w},v($.to),{state:typeof $.to=="object"?Me({},_e,$.to.state):_e,force:g}),te||V)}else $=k(V,ie,!0,w,_e);return W(V,ie,$),$})}function O(L,te){const q=E(L,te);return q?Promise.reject(q):Promise.resolve()}function R(L){const te=ye.values().next().value;return te&&typeof te.runWithContext=="function"?te.runWithContext(L):L()}function F(L,te){let q;const[ie,_e,g]=zB(L,te);q=zl(ie.reverse(),"beforeRouteLeave",L,te);for(const S of ie)S.leaveGuards.forEach(V=>{q.push(Br(V,L,te))});const w=O.bind(null,L,te);return q.push(w),Qe(q).then(()=>{q=[];for(const S of o.list())q.push(Br(S,L,te));return q.push(w),Qe(q)}).then(()=>{q=zl(_e,"beforeRouteUpdate",L,te);for(const S of _e)S.updateGuards.forEach(V=>{q.push(Br(V,L,te))});return q.push(w),Qe(q)}).then(()=>{q=[];for(const S of g)if(S.beforeEnter)if(Sn(S.beforeEnter))for(const V of S.beforeEnter)q.push(Br(V,L,te));else q.push(Br(S.beforeEnter,L,te));return q.push(w),Qe(q)}).then(()=>(L.matched.forEach(S=>S.enterCallbacks={}),q=zl(g,"beforeRouteEnter",L,te,R),q.push(w),Qe(q))).then(()=>{q=[];for(const S of a.list())q.push(Br(S,L,te));return q.push(w),Qe(q)}).catch(S=>qn(S,rt.NAVIGATION_CANCELLED)?S:Promise.reject(S))}function W(L,te,q){i.list().forEach(ie=>R(()=>ie(L,te,q)))}function k(L,te,q,ie,_e){const g=E(L,te);if(g)return g;const w=te===_r,S=Rs?history.state:{};q&&(ie||w?s.replace(L.fullPath,Me({scroll:w&&S&&S.scroll},_e)):s.push(L.fullPath,_e)),l.value=L,le(L,te,q,w),re()}let U;function K(){U||(U=s.listen((L,te,q)=>{if(!Be.listening)return;const ie=y(L),_e=G(ie,Be.currentRoute.value);if(_e){P(Me(_e,{replace:!0,force:!0}),ie).catch(jo);return}u=ie;const g=l.value;Rs&&GB(sm(g.fullPath,q.delta),al()),F(ie,g).catch(w=>qn(w,rt.NAVIGATION_ABORTED|rt.NAVIGATION_CANCELLED)?w:qn(w,rt.NAVIGATION_GUARD_REDIRECT)?(P(Me(v(w.to),{force:!0}),ie).then(S=>{qn(S,rt.NAVIGATION_ABORTED|rt.NAVIGATION_DUPLICATED)&&!q.delta&&q.type===Ec.pop&&s.go(-1,!1)}).catch(jo),Promise.reject()):(q.delta&&s.go(-q.delta,!1),C(w,ie,g))).then(w=>{w=w||k(ie,g,!1),w&&(q.delta&&!qn(w,rt.NAVIGATION_CANCELLED)?s.go(-q.delta,!1):q.type===Ec.pop&&qn(w,rt.NAVIGATION_ABORTED|rt.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),W(ie,g,w)}).catch(jo)}))}let j=yo(),M=yo(),I;function C(L,te,q){re(L);const ie=M.list();return ie.length?ie.forEach(_e=>_e(L,te,q)):console.error(L),Promise.reject(L)}function H(){return I&&l.value!==_r?Promise.resolve():new Promise((L,te)=>{j.add([L,te])})}function re(L){return I||(I=!L,K(),j.list().forEach(([te,q])=>L?q(L):te()),j.reset()),L}function le(L,te,q,ie){const{scrollBehavior:_e}=e;if(!Rs||!_e)return Promise.resolve();const g=!q&&YB(sm(L.fullPath,0))||(ie||!q)&&history.state&&history.state.scroll||null;return cn().then(()=>_e(L,te,g)).then(w=>w&&DB(w)).catch(w=>C(w,L,te))}const ae=L=>s.go(L);let Se;const ye=new Set,Be={currentRoute:l,listening:!0,addRoute:p,removeRoute:h,clearRoutes:t.clearRoutes,hasRoute:b,getRoutes:m,resolve:y,options:e,push:_,replace:B,go:ae,back:()=>ae(-1),forward:()=>ae(1),beforeEach:o.add,beforeResolve:a.add,afterEach:i.add,onError:M.add,isReady:H,install(L){L.component("RouterLink",vO),L.component("RouterView",fw),L.config.globalProperties.$router=Be,Object.defineProperty(L.config.globalProperties,"$route",{enumerable:!0,get:()=>A(l)}),Rs&&!Se&&l.value===_r&&(Se=!0,_(s.location).catch(ie=>{}));const te={};for(const ie in _r)Object.defineProperty(te,ie,{get:()=>l.value[ie],enumerable:!0});L.provide(il,Be),L.provide(Lf,Li(te)),L.provide(Sc,l);const q=L.unmount;ye.add(L),L.unmount=function(){ye.delete(L),ye.size<1&&(u=_r,U&&U(),U=null,l.value=_r,Se=!1,I=!1),q()}}};function Qe(L){return L.reduce((te,q)=>te.then(()=>R(q)),Promise.resolve())}return Be}function AO(){return be(il)}function SO(e){return be(Lf)}const xO="modulepreload",NO=function(e,t){return new URL(e,t).href},bm={},xs=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){let u=function(c){return Promise.all(c.map(f=>Promise.resolve(f).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};const a=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),l=i?.nonce||i?.getAttribute("nonce");s=u(n.map(c=>{if(c=NO(c,r),c in bm)return;bm[c]=!0;const f=c.endsWith(".css"),d=f?'[rel="stylesheet"]':"";if(r)for(let h=a.length-1;h>=0;h--){const m=a[h];if(m.href===c&&(!f||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${d}`))return;const p=document.createElement("link");if(p.rel=f?"stylesheet":xO,f||(p.as="script"),p.crossOrigin="",p.href=c,l&&p.setAttribute("nonce",l),document.head.appendChild(p),f)return new Promise((h,m)=>{p.addEventListener("load",h),p.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(a){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=a,window.dispatchEvent(i),!i.defaultPrevented)throw a}return s.then(a=>{for(const i of a||[])i.status==="rejected"&&o(i.reason);return t().catch(o)})},xc=[{title:"评论",path:"/CommentImages",name:"CommentImages",component:()=>xs(()=>import("./CommentImages-C5waklbJ.js"),__vite__mapDeps([0,1,2]),import.meta.url)},{title:"动态",path:"/DynamicImages",name:"DynamicImages",component:()=>xs(()=>import("./DynamicImages-DL1vfgvT.js"),__vite__mapDeps([3,1,2]),import.meta.url)},{title:"专栏",path:"/OpusImages",name:"OpusImages",component:()=>xs(()=>import("./OpusImages-Y7TBDtw1.js"),__vite__mapDeps([4,1,2]),import.meta.url)},{title:"头像",path:"/UserFace",name:"UserFace",component:()=>xs(()=>import("./UserFace-DiLu1wxg.js"),__vite__mapDeps([5,1,2]),import.meta.url)},{title:"视频封面",path:"/VideoCover",name:"VideoCover",component:()=>xs(()=>import("./VideoCover-COFRm2-N.js"),__vite__mapDeps([6,1,2]),import.meta.url)},{title:"直播封面",path:"/LiveCover",name:"LiveCover",component:()=>xs(()=>import("./LiveCover-BegVwZJ3.js"),__vite__mapDeps([7,1,2]),import.meta.url)}],IO=EO({history:tO("./"),routes:[{path:"/",redirect:xc[0].path},...xc]}),CO={class:"plugin-page"},TO=he({__name:"App",setup(e){const t=SO(),n=AO(),r=Q(xc),s=o=>{n.push(o.path)};return(o,a)=>(z(),Ee("div",CO,[Ae(A(pB),{menus:r.value,"active-index":A(t).path,onHandleMenuSelect:s},null,8,["menus","active-index"]),Ae(A(fw),{class:"plugin-page-content"},{default:de(({Component:i,route:l})=>[(z(),xe(b_,null,[(z(),xe(rs(i),{key:l.fullPath}))],1024))]),_:1})]))}}),RO=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},PO=RO(TO,[["__scopeId","data-v-d366bdbc"]]);async function BO(){const e=ME(PO);e.config.globalProperties.$toolkitApi=window.toolkitApi;const t=WE();t.use(JE),e.use(t),e.use(IO);const n=await M9(t);e.use(n),e.config.errorHandler=yc,window.addEventListener("unhandledrejection",r=>{yc(r.reason)}),e.mount("#app")}BO().then(()=>{console.log("插件启动成功")}).catch(yc);export{pe as $,O9 as A,cr as B,S5 as C,ib as D,ce as E,uf as F,Nb as G,kc as H,HO as I,Mt as J,OO as K,_g as L,j5 as M,qO as N,Ab as O,Sb as P,De as Q,sa as R,Rt as S,it as T,vt as U,Et as V,Ee as W,et as X,qe as Y,Oe as Z,we as _,Ae as a,rs as a0,Vr as a1,Yt as a2,Qo as a3,_n as a4,Wt as a5,QO as a6,JO as a7,zO as a8,Ws as a9,RO as aA,x9 as aB,Te as aa,Xn as ab,xn as ac,ME as ad,eT as ae,ut as af,qs as ag,Ui as ah,to as ai,Xw as aj,xl as ak,XO as al,Ca as am,Ke as an,ps as ao,Wr as ap,kO as aq,kf as ar,Yy as as,Pb as at,vg as au,mk as av,hk as aw,m_ as ax,pk as ay,Zc as az,Un as b,xe as c,he as d,Kh as e,An as f,T as g,wi as h,ot as i,lc as j,FO as k,cc as l,ft as m,Ie as n,z as o,Mr as p,me as q,Q as r,Qs as s,Au as t,A as u,cn as v,de as w,Ne as x,Ge as y,ic as z};
|