218 lines
694 KiB
JavaScript
218 lines
694 KiB
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./D71_8iAW.js","./zXc5OqDM.js","./iThYsS9r.js","./DlAUqK2U.js","./index.Jbtftdv_.css","./TS67Dh9D.js","./CscEAC8U.js","./QaRcfXiG.js","./CqL7MJb4.js","./BQLydWEZ.js","./DW_bFPRe.js","./ChangeLanguage.SqR8ZyGJ.css","./UZViNtu6.js","./rW1UJcio.js","./h3vOCeO2.js","./BasicIconOld.DktbhR_V.css","./DMmzgEFm.js","./DhpIxLUX.js","./Bvb2KE_X.js","./cVxvsw-g.js","./BkdTOo3t.js","./B8BNQJT3.js","./D6qJbdzf.js","./BYO2u26t.js","./BasicInput.BS7pxlLz.css","./C4IJggRf.js","./Cgrawfgk.js","./BasicButton.F4HvHSRr.css","./TR_VMgQV.js","./BDDD11fq.js","./CbE8wWOc.js","./B8kWovXe.js","./BuARQi0-.js","./BdzjWEBr.js","./DLaLWwro.js","./CvzxW4k7.js","./Cj99RmFE.js","./DAm35wCk.js","./BFKVSULU.js","./DDpy-nxA.js","./Dk3GGXWm.js","./fkkGvHOC.js","./Ck7xxMC2.js","./CJ_Iy2ET.js","./CiRz__JV.js","./InstaInput.CKJcpevC.css","./index.DQQ6m8Ab.css","./Dqz_u0Ik.js","./Bme6jswu.js","./kwmA8fCG.js","./index.3vTMV84N.css","./oVCzkWoK.js","./7t5j4bQX.js","./Cq497dur.js","./CE1G-McA.js","./C6CyHoiY.js","./DFqTtjB6.js","./DtM3W8XB.js","./1med13IE.js","./CseG1518.js","./index.C7yq570K.css","./CM92j2qg.js","./Dsse3M_6.js","./dOhigEsU.js","./1PclIw6T.js","./DB_tx3mi.js","./Cz0ze3dq.js","./CTKn_q2d.js","./BW6XFBV8.js","./DgIR2C0w.js","./B6irGWYT.js","./Bwh5mp2j.js","./DjOFqycQ.js","./C1GbzRtN.js","./UserProfilePic.CvlRpmYy.css","./C2mWIuFr.js","./hRWhkcZm.js","./BBQb2YCE.js","./CfQT9Pjy.js","./BzSahvFr.js","./moreOptionProduct.Cv4yblbJ.css","./PostCardSkeleton.DUP1THnB.css","./swiper.BiEk7v8n.css","./pagination.DioOUj-L.css","./wTmOvwUe.js","./DZhRMey9.js","./BWk0HqXj.js","./index.CW9Q0sCE.css","./CWiRiNxu.js","./C_nZn2_k.js","./DAhN-qpf.js","./qEmiV_VS.js","./VjQZb-bn.js","./7TUp2nqe.js","./B8_nwabi.js","./C7u8ARcS.js","./0sQGsR-B.js","./BopIhRlJ.js","./CPs-NHNf.js","./GsKQ0she.js","./BwMeOX52.js","./vbWGrGDi.js","./CKskNGnl.js","./numbro.DPJQrSl7.css","./DTSeBhIu.js","./FullScreenStories.vHiwkct6.css","./o___hXeN.js","./DjvBa-1E.js","./DZkwk9zE.js","./CDQxiK-V.js","./DrHaYhD4.js","./index.DM60V-SF.css","./Dl40SX0Q.js","./BE4kx24x.js","./CGx07bmV.js","./BwXZnHx-.js","./Highlights.LsmMR9Cv.css","./01_auARU.js","./DNyUaj5D.js","./D50Dwl_A.js","./Ze6BhNjy.js","./B6YAPRst.js","./DkKOCi34.js","./index.C4gGGvAh.css","./index.BftfFzRd.css","./BgR2E6gQ.js","./Dcwat7P_.js","./J_SE_Pot.js","./DPBAe1pF.js","./RjBF6GJC.js","./ProductSearchList.CBryqxih.css","./DZx9IK1L.js","./D-bUn136.js","./index.D7fFHUgh.css","./BOU51ti_.js","./ZxkccWh1.js","./DAvy-kcj.js","./BPHLUlMn.js","./CjA4i-tX.js","./BQNfWzTf.js","./Qo3oHkEo.js","./BUpRfqYU.js","./3o6YqOc2.js","./UNgMgOvH.js","./Co6fEKNi.js","./DxbAgBj2.js","./Ae_4WTYP.js","./DDGZ6s1v.js","./BMb5MMpc.js","./DfWSBlt2.js","./Cg4PvGMM.js","./BasicTextArea.tn0RQdqM.css","./C34FAMhQ.js","./BkAwj_ZF.js","./IndexImageUploader.DpcjnqB-.css","./CiBFxzGs.js","./BwUSRes4.js","./DNX20LV1.js","./k0R1zBny.js","./BmYTfB0m.js","./Cf09OEMK.js","./BeJulhUo.js","./CwPuFVPM.js","./BUllv8ai.js","./CHchsQee.js","./DTMKzxgu.js","./OrderDetail.DmLQfC-y.css","./_id_.DZwRw4ht.css","./U1b2gnpv.js","./CccLFIOq.js","./By5DSMhK.js","./8zaGD7Kq.js","./C79IA_7s.js","./C7YC1VRI.js","./BLUOSRuI.js","./Czkt-H4M.js","./_id_.BhPp45mc.css","./FhE5Sp8w.js","./Bu1TSr4Z.js","./YUaVt_Ra.js","./Jy21wGDl.js","./PibADJKd.js","./wkyco40G.js","./index.DUwLxYAC.css","./DdIH2Hs4.js","./BoJ0uf43.js","./Cfn77cg9.js","./index.CNHi-7Ke.css","./DusYBPLY.js","./CdpDT1_s.js","./ahfKITsJ.js","./M6PXZ8u8.js","./TPJwKAsh.js","./StepNumber.DZuSkTLD.css","./HKdg-cnI.js","./DjPgbN4R.js","./_id_.Bri8pDyb.css","./BakWA8YC.js","./aqPrlV9C.js","./D49GBPmW.js","./DhkYPUkr.js","./style.Dw47-jjr.css","./index.aL-dNlg2.css","./index.CitrVgdW.css","./BzRPrbi9.js","./Byhp8Jh0.js","./CSoPQIfi.js","./Dc3VSVc9.js","./B0RpQ20O.js","./B9ToE0bR.js","./UqQNGnEi.js","./B7kAjnZP.js","./t7yrqs37.js","./DjZ4zy4Q.js","./index.C6u2Qac4.css","./BQHc_fkH.js","./detail_message.3FMAeztm.css","./CVI5pXCr.js","./CT2Jun5i.js","./j5soqDGf.js","./index.CKnq7F2I.css","./Dt_JUmG4.js","./WbDqYTxE.js","./B9wF6kv9.js","./iQOeP5ON.js","./-3vPFNLw.js","./CmSk0O2d.js","./CYcXPVnD.js","./default.CI-HhjVj.css","./QVWSnFgG.js","./error-404._yXoGkXB.css","./WDsVA47l.js","./error-500.BENb_mjk.css"])))=>i.map(i=>d[i]);
|
||
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function KS(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const JS={},YS=()=>{},XS=Object.assign,QS=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ZS=Object.prototype.hasOwnProperty,nl=(e,t)=>ZS.call(e,t),Zn=Array.isArray,oi=e=>Dl(e)==="[object Map]",eC=e=>Dl(e)==="[object Set]",Ci=e=>typeof e=="function",tC=e=>typeof e=="string",qi=e=>typeof e=="symbol",$s=e=>e!==null&&typeof e=="object",nC=Object.prototype.toString,Dl=e=>nC.call(e),rC=e=>Dl(e).slice(8,-1),oC=e=>Dl(e)==="[object Object]",ed=e=>tC(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Or=(e,t)=>!Object.is(e,t),sC=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})};let Et;class Uy{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Et,!t&&Et&&(this.index=(Et.scopes||(Et.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Et;try{return Et=this,t()}finally{Et=n}}}on(){++this._on===1&&(this.prevScope=Et,Et=this)}off(){this._on>0&&--this._on===0&&(Et=this.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 o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function td(e){return new Uy(e)}function Bl(){return Et}function Fy(e,t=!1){Et&&Et.cleanups.push(e)}let Ie;const Rc=new WeakSet;class Hy{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,Et&&Et.active&&Et.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Rc.has(this)&&(Rc.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||zy(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ah(this),Vy(this);const t=Ie,n=vn;Ie=this,vn=!0;try{return this.fn()}finally{qy(this),Ie=t,vn=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)od(t);this.deps=this.depsTail=void 0,Ah(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Rc.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Iu(this)&&this.run()}get dirty(){return Iu(this)}}let Wy=0,si,ii;function zy(e,t=!1){if(e.flags|=8,t){e.next=ii,ii=e;return}e.next=si,si=e}function nd(){Wy++}function rd(){if(--Wy>0)return;if(ii){let t=ii;for(ii=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;si;){let t=si;for(si=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 Vy(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function qy(e){let t,n=e.depsTail,r=n;for(;r;){const o=r.prevDep;r.version===-1?(r===n&&(n=o),od(r),iC(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=o}e.deps=t,e.depsTail=n}function Iu(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Gy(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Gy(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ei)||(e.globalVersion=Ei,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Iu(e))))return;e.flags|=2;const t=e.dep,n=Ie,r=vn;Ie=e,vn=!0;try{Vy(e);const o=e.fn(e._value);(t.version===0||Or(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{Ie=n,vn=r,qy(e),e.flags&=-3}}function od(e,t=!1){const{dep:n,prevSub:r,nextSub:o}=e;if(r&&(r.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)od(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function iC(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 Ky=[];function rr(){Ky.push(vn),vn=!1}function or(){const e=Ky.pop();vn=e===void 0?!0:e}function Ah(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Ie;Ie=void 0;try{t()}finally{Ie=n}}}let Ei=0;class aC{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 Ul{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}track(t){if(!Ie||!vn||Ie===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Ie)n=this.activeLink=new aC(Ie,this),Ie.deps?(n.prevDep=Ie.depsTail,Ie.depsTail.nextDep=n,Ie.depsTail=n):Ie.deps=Ie.depsTail=n,Jy(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=Ie.depsTail,n.nextDep=void 0,Ie.depsTail.nextDep=n,Ie.depsTail=n,Ie.deps===n&&(Ie.deps=r)}return n}trigger(t){this.version++,Ei++,this.notify(t)}notify(t){nd();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{rd()}}}function Jy(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)Jy(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const rl=new WeakMap,no=Symbol(""),Nu=Symbol(""),Ti=Symbol("");function Tt(e,t,n){if(vn&&Ie){let r=rl.get(e);r||rl.set(e,r=new Map);let o=r.get(n);o||(r.set(n,o=new Ul),o.map=r,o.key=n),o.track()}}function Jn(e,t,n,r,o,s){const i=rl.get(e);if(!i){Ei++;return}const a=l=>{l&&l.trigger()};if(nd(),t==="clear")i.forEach(a);else{const l=Zn(e),u=l&&ed(n);if(l&&n==="length"){const c=Number(r);i.forEach((f,d)=>{(d==="length"||d===Ti||!qi(d)&&d>=c)&&a(f)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),u&&a(i.get(Ti)),t){case"add":l?u&&a(i.get("length")):(a(i.get(no)),oi(e)&&a(i.get(Nu)));break;case"delete":l||(a(i.get(no)),oi(e)&&a(i.get(Nu)));break;case"set":oi(e)&&a(i.get(no));break}}rd()}function lC(e,t){const n=rl.get(e);return n&&n.get(t)}function Io(e){const t=Ce(e);return t===e?t:(Tt(t,"iterate",Ti),un(e)?t:t.map(vt))}function Fl(e){return Tt(e=Ce(e),"iterate",Ti),e}const cC={__proto__:null,[Symbol.iterator](){return kc(this,Symbol.iterator,vt)},concat(...e){return Io(this).concat(...e.map(t=>Zn(t)?Io(t):t))},entries(){return kc(this,"entries",e=>(e[1]=vt(e[1]),e))},every(e,t){return Un(this,"every",e,t,void 0,arguments)},filter(e,t){return Un(this,"filter",e,t,n=>n.map(vt),arguments)},find(e,t){return Un(this,"find",e,t,vt,arguments)},findIndex(e,t){return Un(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Un(this,"findLast",e,t,vt,arguments)},findLastIndex(e,t){return Un(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Un(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ic(this,"includes",e)},indexOf(...e){return Ic(this,"indexOf",e)},join(e){return Io(this).join(e)},lastIndexOf(...e){return Ic(this,"lastIndexOf",e)},map(e,t){return Un(this,"map",e,t,void 0,arguments)},pop(){return Ws(this,"pop")},push(...e){return Ws(this,"push",e)},reduce(e,...t){return Ph(this,"reduce",e,t)},reduceRight(e,...t){return Ph(this,"reduceRight",e,t)},shift(){return Ws(this,"shift")},some(e,t){return Un(this,"some",e,t,void 0,arguments)},splice(...e){return Ws(this,"splice",e)},toReversed(){return Io(this).toReversed()},toSorted(e){return Io(this).toSorted(e)},toSpliced(...e){return Io(this).toSpliced(...e)},unshift(...e){return Ws(this,"unshift",e)},values(){return kc(this,"values",vt)}};function kc(e,t,n){const r=Fl(e),o=r[t]();return r!==e&&!un(e)&&(o._next=o.next,o.next=()=>{const s=o._next();return s.value&&(s.value=n(s.value)),s}),o}const uC=Array.prototype;function Un(e,t,n,r,o,s){const i=Fl(e),a=i!==e&&!un(e),l=i[t];if(l!==uC[t]){const f=l.apply(e,s);return a?vt(f):f}let u=n;i!==e&&(a?u=function(f,d){return n.call(this,vt(f),d,e)}:n.length>2&&(u=function(f,d){return n.call(this,f,d,e)}));const c=l.call(i,u,r);return a&&o?o(c):c}function Ph(e,t,n,r){const o=Fl(e);let s=n;return o!==e&&(un(e)?n.length>3&&(s=function(i,a,l){return n.call(this,i,a,l,e)}):s=function(i,a,l){return n.call(this,i,vt(a),l,e)}),o[t](s,...r)}function Ic(e,t,n){const r=Ce(e);Tt(r,"iterate",Ti);const o=r[t](...n);return(o===-1||o===!1)&&ld(n[0])?(n[0]=Ce(n[0]),r[t](...n)):o}function Ws(e,t,n=[]){rr(),nd();const r=Ce(e)[t].apply(e,n);return rd(),or(),r}const fC=KS("__proto__,__v_isRef,__isVue"),Yy=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(qi));function dC(e){qi(e)||(e=String(e));const t=Ce(this);return Tt(t,"has",e),t.hasOwnProperty(e)}class Xy{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(o?s?SC:tv:s?ev:Zy).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=Zn(t);if(!o){let l;if(i&&(l=cC[n]))return l;if(n==="hasOwnProperty")return dC}const a=Reflect.get(t,n,Me(t)?t:r);return(qi(n)?Yy.has(n):fC(n))||(o||Tt(t,"get",n),s)?a:Me(a)?i&&ed(n)?a:a.value:$s(a)?o?id(a):ot(a):a}}class Qy extends Xy{constructor(t=!1){super(!1,t)}set(t,n,r,o){let s=t[n];if(!this._isShallow){const l=sr(s);if(!un(r)&&!sr(r)&&(s=Ce(s),r=Ce(r)),!Zn(t)&&Me(s)&&!Me(r))return l?!1:(s.value=r,!0)}const i=Zn(t)&&ed(n)?Number(n)<t.length:nl(t,n),a=Reflect.set(t,n,r,Me(t)?t:o);return t===Ce(o)&&(i?Or(r,s)&&Jn(t,"set",n,r):Jn(t,"add",n,r)),a}deleteProperty(t,n){const r=nl(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&r&&Jn(t,"delete",n,void 0),o}has(t,n){const r=Reflect.has(t,n);return(!qi(n)||!Yy.has(n))&&Tt(t,"has",n),r}ownKeys(t){return Tt(t,"iterate",Zn(t)?"length":no),Reflect.ownKeys(t)}}class hC extends Xy{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const pC=new Qy,gC=new hC,mC=new Qy(!0);const Lu=e=>e,ua=e=>Reflect.getPrototypeOf(e);function yC(e,t,n){return function(...r){const o=this.__v_raw,s=Ce(o),i=oi(s),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,u=o[e](...r),c=n?Lu:t?ol:vt;return!t&&Tt(s,"iterate",l?Nu:no),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:a?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function fa(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function vC(e,t){const n={get(o){const s=this.__v_raw,i=Ce(s),a=Ce(o);e||(Or(o,a)&&Tt(i,"get",o),Tt(i,"get",a));const{has:l}=ua(i),u=t?Lu:e?ol:vt;if(l.call(i,o))return u(s.get(o));if(l.call(i,a))return u(s.get(a));s!==i&&s.get(o)},get size(){const o=this.__v_raw;return!e&&Tt(Ce(o),"iterate",no),Reflect.get(o,"size",o)},has(o){const s=this.__v_raw,i=Ce(s),a=Ce(o);return e||(Or(o,a)&&Tt(i,"has",o),Tt(i,"has",a)),o===a?s.has(o):s.has(o)||s.has(a)},forEach(o,s){const i=this,a=i.__v_raw,l=Ce(a),u=t?Lu:e?ol:vt;return!e&&Tt(l,"iterate",no),a.forEach((c,f)=>o.call(s,u(c),u(f),i))}};return XS(n,e?{add:fa("add"),set:fa("set"),delete:fa("delete"),clear:fa("clear")}:{add(o){!t&&!un(o)&&!sr(o)&&(o=Ce(o));const s=Ce(this);return ua(s).has.call(s,o)||(s.add(o),Jn(s,"add",o,o)),this},set(o,s){!t&&!un(s)&&!sr(s)&&(s=Ce(s));const i=Ce(this),{has:a,get:l}=ua(i);let u=a.call(i,o);u||(o=Ce(o),u=a.call(i,o));const c=l.call(i,o);return i.set(o,s),u?Or(s,c)&&Jn(i,"set",o,s):Jn(i,"add",o,s),this},delete(o){const s=Ce(this),{has:i,get:a}=ua(s);let l=i.call(s,o);l||(o=Ce(o),l=i.call(s,o)),a&&a.call(s,o);const u=s.delete(o);return l&&Jn(s,"delete",o,void 0),u},clear(){const o=Ce(this),s=o.size!==0,i=o.clear();return s&&Jn(o,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=yC(o,e,t)}),n}function sd(e,t){const n=vC(e,t);return(r,o,s)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(nl(n,o)&&o in r?n:r,o,s)}const bC={get:sd(!1,!1)},_C={get:sd(!1,!0)},wC={get:sd(!0,!1)};const Zy=new WeakMap,ev=new WeakMap,tv=new WeakMap,SC=new WeakMap;function CC(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function EC(e){return e.__v_skip||!Object.isExtensible(e)?0:CC(rC(e))}function ot(e){return sr(e)?e:ad(e,!1,pC,bC,Zy)}function Ln(e){return ad(e,!1,mC,_C,ev)}function id(e){return ad(e,!0,gC,wC,tv)}function ad(e,t,n,r,o){if(!$s(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=EC(e);if(s===0)return e;const i=o.get(e);if(i)return i;const a=new Proxy(e,s===2?r:n);return o.set(e,a),a}function jn(e){return sr(e)?jn(e.__v_raw):!!(e&&e.__v_isReactive)}function sr(e){return!!(e&&e.__v_isReadonly)}function un(e){return!!(e&&e.__v_isShallow)}function ld(e){return e?!!e.__v_raw:!1}function Ce(e){const t=e&&e.__v_raw;return t?Ce(t):e}function cd(e){return!nl(e,"__v_skip")&&Object.isExtensible(e)&&sC(e,"__v_skip",!0),e}const vt=e=>$s(e)?ot(e):e,ol=e=>$s(e)?id(e):e;function Me(e){return e?e.__v_isRef===!0:!1}function te(e){return nv(e,!1)}function se(e){return nv(e,!0)}function nv(e,t){return Me(e)?e:new TC(e,t)}class TC{constructor(t,n){this.dep=new Ul,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Ce(t),this._value=n?t:vt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||un(t)||sr(t);t=r?t:Ce(t),Or(t,n)&&(this._rawValue=t,this._value=r?t:vt(t),this.dep.trigger())}}function xC(e){e.dep&&e.dep.trigger()}function U(e){return Me(e)?e.value:e}function rt(e){return Ci(e)?e():U(e)}const OC={get:(e,t,n)=>t==="__v_raw"?e:U(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Me(o)&&!Me(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function rv(e){return jn(e)?e:new Proxy(e,OC)}class AC{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Ul,{get:r,set:o}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=o}get value(){return this._value=this._get()}set value(t){this._set(t)}}function PC(e){return new AC(e)}function $C(e){const t=Zn(e)?new Array(e.length):{};for(const n in e)t[n]=ov(e,n);return t}class RC{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return lC(Ce(this._object),this._key)}}class kC{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 Hl(e,t,n){return Me(e)?e:Ci(e)?new kC(e):$s(e)&&arguments.length>1?ov(e,t,n):te(e)}function ov(e,t,n){const r=e[t];return Me(r)?r:new RC(e,t,n)}class IC{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Ul(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ei-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Ie!==this)return zy(this,!0),!0}get value(){const t=this.dep.track();return Gy(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function NC(e,t,n=!1){let r,o;return Ci(e)?r=e:(r=e.get,o=e.set),new IC(r,o,n)}const da={},sl=new WeakMap;let Fr;function LC(e,t=!1,n=Fr){if(n){let r=sl.get(n);r||sl.set(n,r=[]),r.push(e)}}function jC(e,t,n=JS){const{immediate:r,deep:o,once:s,scheduler:i,augmentJob:a,call:l}=n,u=_=>o?_:un(_)||o===!1||o===0?Yn(_,1):Yn(_);let c,f,d,h,p=!1,g=!1;if(Me(e)?(f=()=>e.value,p=un(e)):jn(e)?(f=()=>u(e),p=!0):Zn(e)?(g=!0,p=e.some(_=>jn(_)||un(_)),f=()=>e.map(_=>{if(Me(_))return _.value;if(jn(_))return u(_);if(Ci(_))return l?l(_,2):_()})):Ci(e)?t?f=l?()=>l(e,2):e:f=()=>{if(d){rr();try{d()}finally{or()}}const _=Fr;Fr=c;try{return l?l(e,3,[h]):e(h)}finally{Fr=_}}:f=YS,t&&o){const _=f,S=o===!0?1/0:o;f=()=>Yn(_(),S)}const y=Bl(),b=()=>{c.stop(),y&&y.active&&QS(y.effects,c)};if(s&&t){const _=t;t=(...S)=>{_(...S),b()}}let v=g?new Array(e.length).fill(da):da;const m=_=>{if(!(!(c.flags&1)||!c.dirty&&!_))if(t){const S=c.run();if(o||p||(g?S.some((E,w)=>Or(E,v[w])):Or(S,v))){d&&d();const E=Fr;Fr=c;try{const w=[S,v===da?void 0:g&&v[0]===da?[]:v,h];l?l(t,3,w):t(...w),v=S}finally{Fr=E}}}else c.run()};return a&&a(m),c=new Hy(f),c.scheduler=i?()=>i(m,!1):m,h=_=>LC(_,!1,c),d=c.onStop=()=>{const _=sl.get(c);if(_){if(l)l(_,4);else for(const S of _)S();sl.delete(c)}},t?r?m(!0):v=c.run():i?i(m.bind(null,!0),!0):c.run(),b.pause=c.pause.bind(c),b.resume=c.resume.bind(c),b.stop=b,b}function Yn(e,t=1/0,n){if(t<=0||!$s(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Me(e))Yn(e.value,t,n);else if(Zn(e))for(let r=0;r<e.length;r++)Yn(e[r],t,n);else if(eC(e)||oi(e))e.forEach(r=>{Yn(r,t,n)});else if(oC(e)){for(const r in e)Yn(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Yn(e[r],t,n)}return e}function MC(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Le={},rs=[],er=()=>{},DC=()=>!1,Wl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),sv=e=>e.startsWith("onUpdate:"),Ht=Object.assign,iv=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},BC=Object.prototype.hasOwnProperty,Ne=(e,t)=>BC.call(e,t),_e=Array.isArray,UC=e=>zl(e)==="[object Map]",FC=e=>zl(e)==="[object Set]",HC=e=>zl(e)==="[object RegExp]",ve=e=>typeof e=="function",ft=e=>typeof e=="string",ud=e=>typeof e=="symbol",dt=e=>e!==null&&typeof e=="object",fd=e=>(dt(e)||ve(e))&&ve(e.then)&&ve(e.catch),av=Object.prototype.toString,zl=e=>av.call(e),WC=e=>zl(e)==="[object Object]",os=MC(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Vl=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},zC=/-(\w)/g,_n=Vl(e=>e.replace(zC,(t,n)=>n?n.toUpperCase():"")),VC=/\B([A-Z])/g,Gi=Vl(e=>e.replace(VC,"-$1").toLowerCase()),dd=Vl(e=>e.charAt(0).toUpperCase()+e.slice(1)),Nc=Vl(e=>e?`on${dd(e)}`:""),ai=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},qC=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},GC=e=>{const t=parseFloat(e);return isNaN(t)?e:t},KC=e=>{const t=ft(e)?Number(e):NaN;return isNaN(t)?e:t};let $h;const ql=()=>$h||($h=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Gl(e){if(_e(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=ft(r)?QC(r):Gl(r);if(o)for(const s in o)t[s]=o[s]}return t}else if(ft(e)||dt(e))return e}const JC=/;(?![^(]*\))/g,YC=/:([^]+)/,XC=/\/\*[^]*?\*\//g;function QC(e){const t={};return e.replace(XC,"").split(JC).forEach(n=>{if(n){const r=n.split(YC);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Kl(e){let t="";if(ft(e))t=e;else if(_e(e))for(let n=0;n<e.length;n++){const r=Kl(e[n]);r&&(t+=r+" ")}else if(dt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function ZC(e){if(!e)return null;let{class:t,style:n}=e;return t&&!ft(t)&&(e.class=Kl(t)),n&&(e.style=Gl(n)),e}const lv=e=>!!(e&&e.__v_isRef===!0),eE=e=>ft(e)?e:e==null?"":_e(e)||dt(e)&&(e.toString===av||!ve(e.toString))?lv(e)?eE(e.value):JSON.stringify(e,cv,2):String(e),cv=(e,t)=>lv(t)?cv(e,t.value):UC(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],s)=>(n[Lc(r,s)+" =>"]=o,n),{})}:FC(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Lc(n))}:ud(t)?Lc(t):dt(t)&&!_e(t)&&!WC(t)?String(t):t,Lc=(e,t="")=>{var n;return ud(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};function Ki(e,t,n,r){try{return r?e(...r):e()}catch(o){Rs(o,t,n)}}function wn(e,t,n,r){if(ve(e)){const o=Ki(e,t,n,r);return o&&fd(o)&&o.catch(s=>{Rs(s,t,n)}),o}if(_e(e)){const o=[];for(let s=0;s<e.length;s++)o.push(wn(e[s],t,n,r));return o}}function Rs(e,t,n,r=!0){const o=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||Le;if(t){let a=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const c=a.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,l,u)===!1)return}a=a.parent}if(s){rr(),Ki(s,null,10,[e,l,u]),or();return}}tE(e,n,o,r,i)}function tE(e,t,n,r=!0,o=!1){if(o)throw e;console.error(e)}const Pt=[];let Rn=-1;const ss=[];let yr=null,zo=0;const uv=Promise.resolve();let il=null;function kt(e){const t=il||uv;return e?t.then(this?e.bind(this):e):t}function nE(e){let t=Rn+1,n=Pt.length;for(;t<n;){const r=t+n>>>1,o=Pt[r],s=xi(o);s<e||s===e&&o.flags&2?t=r+1:n=r}return t}function hd(e){if(!(e.flags&1)){const t=xi(e),n=Pt[Pt.length-1];!n||!(e.flags&2)&&t>=xi(n)?Pt.push(e):Pt.splice(nE(t),0,e),e.flags|=1,fv()}}function fv(){il||(il=uv.then(dv))}function al(e){_e(e)?ss.push(...e):yr&&e.id===-1?yr.splice(zo+1,0,e):e.flags&1||(ss.push(e),e.flags|=1),fv()}function Rh(e,t,n=Rn+1){for(;n<Pt.length;n++){const r=Pt[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Pt.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function ll(e){if(ss.length){const t=[...new Set(ss)].sort((n,r)=>xi(n)-xi(r));if(ss.length=0,yr){yr.push(...t);return}for(yr=t,zo=0;zo<yr.length;zo++){const n=yr[zo];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}yr=null,zo=0}}const xi=e=>e.id==null?e.flags&2?-1:1/0:e.id;function dv(e){try{for(Rn=0;Rn<Pt.length;Rn++){const t=Pt[Rn];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Ki(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Rn<Pt.length;Rn++){const t=Pt[Rn];t&&(t.flags&=-2)}Rn=-1,Pt.length=0,ll(),il=null,(Pt.length||ss.length)&&dv()}}let ct=null,hv=null;function cl(e){const t=ct;return ct=e,hv=e&&e.type.__scopeId||null,t}function ul(e,t=ct,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&qh(-1);const s=cl(t);let i;try{i=e(...o)}finally{cl(s),r._d&&qh(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function pv(e,t){if(ct===null)return e;const n=Ql(ct),r=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[s,i,a,l=Le]=t[o];s&&(ve(s)&&(s={mounted:s,updated:s}),s.deep&&Yn(i),r.push({dir:s,instance:n,value:i,oldValue:void 0,arg:a,modifiers:l}))}return e}function kn(e,t,n,r){const o=e.dirs,s=t&&t.dirs;for(let i=0;i<o.length;i++){const a=o[i];s&&(a.oldValue=s[i].value);let l=a.dir[r];l&&(rr(),wn(l,n,8,[e.el,a,e,t]),or())}}const gv=Symbol("_vte"),mv=e=>e.__isTeleport,li=e=>e&&(e.disabled||e.disabled===""),kh=e=>e&&(e.defer||e.defer===""),Ih=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Nh=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,ju=(e,t)=>{const n=e&&e.to;return ft(n)?t?t(n):null:n},yv={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,s,i,a,l,u){const{mc:c,pc:f,pbc:d,o:{insert:h,querySelector:p,createText:g,createComment:y}}=u,b=li(t.props);let{shapeFlag:v,children:m,dynamicChildren:_}=t;if(e==null){const S=t.el=g(""),E=t.anchor=g("");h(S,n,r),h(E,n,r);const w=(O,L)=>{v&16&&(o&&o.isCE&&(o.ce._teleportTarget=O),c(m,O,L,o,s,i,a,l))},A=()=>{const O=t.target=ju(t.props,p),L=bv(O,t,g,h);O&&(i!=="svg"&&Ih(O)?i="svg":i!=="mathml"&&Nh(O)&&(i="mathml"),b||(w(O,L),Ma(t,!1)))};b&&(w(n,E),Ma(t,!0)),kh(t.props)?at(()=>{A(),t.el.__isMounted=!0},s):A()}else{if(kh(t.props)&&!e.el.__isMounted){at(()=>{yv.process(e,t,n,r,o,s,i,a,l,u),delete e.el.__isMounted},s);return}t.el=e.el,t.targetStart=e.targetStart;const S=t.anchor=e.anchor,E=t.target=e.target,w=t.targetAnchor=e.targetAnchor,A=li(e.props),O=A?n:E,L=A?S:w;if(i==="svg"||Ih(E)?i="svg":(i==="mathml"||Nh(E))&&(i="mathml"),_?(d(e.dynamicChildren,_,O,o,s,i,a),_d(e,t,!0)):l||f(e,t,O,L,o,s,i,a,!1),b)A?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):ha(t,n,S,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const N=t.target=ju(t.props,p);N&&ha(t,N,null,u,0)}else A&&ha(t,E,w,u,1);Ma(t,b)}},remove(e,t,n,{um:r,o:{remove:o}},s){const{shapeFlag:i,children:a,anchor:l,targetStart:u,targetAnchor:c,target:f,props:d}=e;if(f&&(o(u),o(c)),s&&o(l),i&16){const h=s||!li(d);for(let p=0;p<a.length;p++){const g=a[p];r(g,t,n,h,!!g.dynamicChildren)}}},move:ha,hydrate:rE};function ha(e,t,n,{o:{insert:r},m:o},s=2){s===0&&r(e.targetAnchor,t,n);const{el:i,anchor:a,shapeFlag:l,children:u,props:c}=e,f=s===2;if(f&&r(i,t,n),(!f||li(c))&&l&16)for(let d=0;d<u.length;d++)o(u[d],t,n,2);f&&r(a,t,n)}function rE(e,t,n,r,o,s,{o:{nextSibling:i,parentNode:a,querySelector:l,insert:u,createText:c}},f){const d=t.target=ju(t.props,l);if(d){const h=li(t.props),p=d._lpa||d.firstChild;if(t.shapeFlag&16)if(h)t.anchor=f(i(e),t,a(e),n,r,o,s),t.targetStart=p,t.targetAnchor=p&&i(p);else{t.anchor=i(e);let g=p;for(;g;){if(g&&g.nodeType===8){if(g.data==="teleport start anchor")t.targetStart=g;else if(g.data==="teleport anchor"){t.targetAnchor=g,d._lpa=t.targetAnchor&&i(t.targetAnchor);break}}g=i(g)}t.targetAnchor||bv(d,t,c,u),f(p&&i(p),t,d,n,r,o,s)}Ma(t,h)}return t.anchor&&i(t.anchor)}const vv=yv;function Ma(e,t){const n=e.ctx;if(n&&n.ut){let r,o;for(t?(r=e.el,o=e.anchor):(r=e.targetStart,o=e.targetAnchor);r&&r!==o;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function bv(e,t,n,r){const o=t.targetStart=n(""),s=t.targetAnchor=n("");return o[gv]=s,e&&(r(o,e),r(s,e)),s}const vr=Symbol("_leaveCb"),pa=Symbol("_enterCb");function _v(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return St(()=>{e.isMounted=!0}),rn(()=>{e.isUnmounting=!0}),e}const on=[Function,Array],wv={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:on,onEnter:on,onAfterEnter:on,onEnterCancelled:on,onBeforeLeave:on,onLeave:on,onAfterLeave:on,onLeaveCancelled:on,onBeforeAppear:on,onAppear:on,onAfterAppear:on,onAppearCancelled:on},Sv=e=>{const t=e.subTree;return t.component?Sv(t.component):t},oE={name:"BaseTransition",props:wv,setup(e,{slots:t}){const n=Nt(),r=_v();return()=>{const o=t.default&&pd(t.default(),!0);if(!o||!o.length)return;const s=Cv(o),i=Ce(e),{mode:a}=i;if(r.isLeaving)return jc(s);const l=Lh(s);if(!l)return jc(s);let u=Oi(l,i,r,n,f=>u=f);l.type!==qe&&Pr(l,u);let c=n.subTree&&Lh(n.subTree);if(c&&c.type!==qe&&!yn(l,c)&&Sv(n).type!==qe){let f=Oi(c,i,r,n);if(Pr(c,f),a==="out-in"&&l.type!==qe)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,c=void 0},jc(s);a==="in-out"&&l.type!==qe?f.delayLeave=(d,h,p)=>{const g=Ev(r,c);g[String(c.key)]=c,d[vr]=()=>{h(),d[vr]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{p(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return s}}};function Cv(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==qe){t=n;break}}return t}const sE=oE;function Ev(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 Oi(e,t,n,r,o){const{appear:s,mode:i,persisted:a=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:d,onLeave:h,onAfterLeave:p,onLeaveCancelled:g,onBeforeAppear:y,onAppear:b,onAfterAppear:v,onAppearCancelled:m}=t,_=String(e.key),S=Ev(n,e),E=(O,L)=>{O&&wn(O,r,9,L)},w=(O,L)=>{const N=L[1];E(O,L),_e(O)?O.every(k=>k.length<=1)&&N():O.length<=1&&N()},A={mode:i,persisted:a,beforeEnter(O){let L=l;if(!n.isMounted)if(s)L=y||l;else return;O[vr]&&O[vr](!0);const N=S[_];N&&yn(e,N)&&N.el[vr]&&N.el[vr](),E(L,[O])},enter(O){let L=u,N=c,k=f;if(!n.isMounted)if(s)L=b||u,N=v||c,k=m||f;else return;let F=!1;const G=O[pa]=$=>{F||(F=!0,$?E(k,[O]):E(N,[O]),A.delayedLeave&&A.delayedLeave(),O[pa]=void 0)};L?w(L,[O,G]):G()},leave(O,L){const N=String(e.key);if(O[pa]&&O[pa](!0),n.isUnmounting)return L();E(d,[O]);let k=!1;const F=O[vr]=G=>{k||(k=!0,L(),G?E(g,[O]):E(p,[O]),O[vr]=void 0,S[N]===e&&delete S[N])};S[N]=e,h?w(h,[O,F]):F()},clone(O){const L=Oi(O,t,n,r,o);return o&&o(L),L}};return A}function jc(e){if(Ji(e))return e=Sn(e),e.children=null,e}function Lh(e){if(!Ji(e))return mv(e.type)&&e.children?Cv(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&&ve(n.default))return n.default()}}function Pr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Pr(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 pd(e,t=!1,n){let r=[],o=0;for(let s=0;s<e.length;s++){let i=e[s];const a=n==null?i.key:String(n)+String(i.key!=null?i.key:s);i.type===je?(i.patchFlag&128&&o++,r=r.concat(pd(i.children,t,a))):(t||i.type!==qe)&&r.push(a!=null?Sn(i,{key:a}):i)}if(o>1)for(let s=0;s<r.length;s++)r[s].patchFlag=-2;return r}function he(e,t){return ve(e)?Ht({name:e.name},t,{setup:e}):e}function j5(){const e=Nt();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function gd(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Ai(e,t,n,r,o=!1){if(_e(e)){e.forEach((p,g)=>Ai(p,t&&(_e(t)?t[g]:t),n,r,o));return}if(Ar(r)&&!o){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Ai(e,t,n,r.component.subTree);return}const s=r.shapeFlag&4?Ql(r.component):r.el,i=o?null:s,{i:a,r:l}=e,u=t&&t.r,c=a.refs===Le?a.refs={}:a.refs,f=a.setupState,d=Ce(f),h=f===Le?()=>!1:p=>Ne(d,p);if(u!=null&&u!==l&&(ft(u)?(c[u]=null,h(u)&&(f[u]=null)):Me(u)&&(u.value=null)),ve(l))Ki(l,a,12,[i,c]);else{const p=ft(l),g=Me(l);if(p||g){const y=()=>{if(e.f){const b=p?h(l)?f[l]:c[l]:l.value;o?_e(b)&&iv(b,s):_e(b)?b.includes(s)||b.push(s):p?(c[l]=[s],h(l)&&(f[l]=c[l])):(l.value=[s],e.k&&(c[e.k]=l.value))}else p?(c[l]=i,h(l)&&(f[l]=i)):g&&(l.value=i,e.k&&(c[e.k]=i))};i?(y.id=-1,at(y,n)):y()}}}let jh=!1;const No=()=>{jh||(console.error("Hydration completed but contains mismatches."),jh=!0)},iE=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",aE=e=>e.namespaceURI.includes("MathML"),ga=e=>{if(e.nodeType===1){if(iE(e))return"svg";if(aE(e))return"mathml"}},Xo=e=>e.nodeType===8;function lE(e){const{mt:t,p:n,o:{patchProp:r,createText:o,nextSibling:s,parentNode:i,remove:a,insert:l,createComment:u}}=e,c=(m,_)=>{if(!_.hasChildNodes()){n(null,m,_),ll(),_._vnode=m;return}f(_.firstChild,m,null,null,null),ll(),_._vnode=m},f=(m,_,S,E,w,A=!1)=>{A=A||!!_.dynamicChildren;const O=Xo(m)&&m.data==="[",L=()=>g(m,_,S,E,w,O),{type:N,ref:k,shapeFlag:F,patchFlag:G}=_;let $=m.nodeType;_.el=m,G===-2&&(A=!1,_.dynamicChildren=null);let I=null;switch(N){case tr:$!==3?_.children===""?(l(_.el=o(""),i(m),m),I=m):I=L():(m.data!==_.children&&(No(),m.data=_.children),I=s(m));break;case qe:v(m)?(I=s(m),b(_.el=m.content.firstChild,m,S)):$!==8||O?I=L():I=s(m);break;case as:if(O&&(m=s(m),$=m.nodeType),$===1||$===3){I=m;const W=!_.children.length;for(let H=0;H<_.staticCount;H++)W&&(_.children+=I.nodeType===1?I.outerHTML:I.data),H===_.staticCount-1&&(_.anchor=I),I=s(I);return O?s(I):I}else L();break;case je:O?I=p(m,_,S,E,w,A):I=L();break;default:if(F&1)($!==1||_.type.toLowerCase()!==m.tagName.toLowerCase())&&!v(m)?I=L():I=d(m,_,S,E,w,A);else if(F&6){_.slotScopeIds=w;const W=i(m);if(O?I=y(m):Xo(m)&&m.data==="teleport start"?I=y(m,m.data,"teleport end"):I=s(m),t(_,W,null,S,E,ga(W),A),Ar(_)&&!_.type.__asyncResolved){let H;O?(H=P(je),H.anchor=I?I.previousSibling:W.lastChild):H=m.nodeType===3?n0(""):P("div"),H.el=m,_.component.subTree=H}}else F&64?$!==8?I=L():I=_.type.hydrate(m,_,S,E,w,A,e,h):F&128&&(I=_.type.hydrate(m,_,S,E,ga(i(m)),w,A,e,f))}return k!=null&&Ai(k,null,E,_),I},d=(m,_,S,E,w,A)=>{A=A||!!_.dynamicChildren;const{type:O,props:L,patchFlag:N,shapeFlag:k,dirs:F,transition:G}=_,$=O==="input"||O==="option";if($||N!==-1){F&&kn(_,null,S,"created");let I=!1;if(v(m)){I=qv(null,G)&&S&&S.vnode.props&&S.vnode.props.appear;const H=m.content.firstChild;I&&G.beforeEnter(H),b(H,m,S),_.el=m=H}if(k&16&&!(L&&(L.innerHTML||L.textContent))){let H=h(m.firstChild,_,m,S,E,w,A);for(;H;){ma(m,1)||No();const J=H;H=H.nextSibling,a(J)}}else if(k&8){let H=_.children;H[0]===`
|
||
`&&(m.tagName==="PRE"||m.tagName==="TEXTAREA")&&(H=H.slice(1)),m.textContent!==H&&(ma(m,0)||No(),m.textContent=_.children)}if(L){if($||!A||N&48){const H=m.tagName.includes("-");for(const J in L)($&&(J.endsWith("value")||J==="indeterminate")||Wl(J)&&!os(J)||J[0]==="."||H)&&r(m,J,null,L[J],void 0,S)}else if(L.onClick)r(m,"onClick",null,L.onClick,void 0,S);else if(N&4&&jn(L.style))for(const H in L.style)L.style[H]}let W;(W=L&&L.onVnodeBeforeMount)&&jt(W,S,_),F&&kn(_,null,S,"beforeMount"),((W=L&&L.onVnodeMounted)||F||I)&&Xv(()=>{W&&jt(W,S,_),I&&G.enter(m),F&&kn(_,null,S,"mounted")},E)}return m.nextSibling},h=(m,_,S,E,w,A,O)=>{O=O||!!_.dynamicChildren;const L=_.children,N=L.length;for(let k=0;k<N;k++){const F=O?L[k]:L[k]=Xt(L[k]),G=F.type===tr;m?(G&&!O&&k+1<N&&Xt(L[k+1]).type===tr&&(l(o(m.data.slice(F.children.length)),S,s(m)),m.data=F.children),m=f(m,F,E,w,A,O)):G&&!F.children?l(F.el=o(""),S):(ma(S,1)||No(),n(null,F,S,null,E,w,ga(S),A))}return m},p=(m,_,S,E,w,A)=>{const{slotScopeIds:O}=_;O&&(w=w?w.concat(O):O);const L=i(m),N=h(s(m),_,L,S,E,w,A);return N&&Xo(N)&&N.data==="]"?s(_.anchor=N):(No(),l(_.anchor=u("]"),L,N),N)},g=(m,_,S,E,w,A)=>{if(ma(m.parentElement,1)||No(),_.el=null,A){const N=y(m);for(;;){const k=s(m);if(k&&k!==N)a(k);else break}}const O=s(m),L=i(m);return a(m),n(null,_,L,O,S,E,ga(L),w),S&&(S.vnode.el=_.el,Xl(S,_.el)),O},y=(m,_="[",S="]")=>{let E=0;for(;m;)if(m=s(m),m&&Xo(m)&&(m.data===_&&E++,m.data===S)){if(E===0)return s(m);E--}return m},b=(m,_,S)=>{const E=_.parentNode;E&&E.replaceChild(m,_);let w=S;for(;w;)w.vnode.el===_&&(w.vnode.el=w.subTree.el=m),w=w.parent},v=m=>m.nodeType===1&&m.tagName==="TEMPLATE";return[c,f]}const Mh="data-allow-mismatch",cE={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function ma(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Mh);)e=e.parentElement;const n=e&&e.getAttribute(Mh);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:n.split(",").includes(cE[t])}}ql().requestIdleCallback;ql().cancelIdleCallback;function uE(e,t){if(Xo(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(Xo(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const Ar=e=>!!e.type.__asyncLoader;function Mu(e){ve(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:o=200,hydrate:s,timeout:i,suspensible:a=!0,onError:l}=e;let u=null,c,f=0;const d=()=>(f++,u=null,h()),h=()=>{let p;return u||(p=u=t().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),l)return new Promise((y,b)=>{l(g,()=>y(d()),()=>b(g),f+1)});throw g}).then(g=>p!==u&&u?u:(g&&(g.__esModule||g[Symbol.toStringTag]==="Module")&&(g=g.default),c=g,g)))};return he({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(p,g,y){const b=s?()=>{const v=s(y,m=>uE(p,m));v&&(g.bum||(g.bum=[])).push(v)}:y;c?b():h().then(()=>!g.isUnmounted&&b())},get __asyncResolved(){return c},setup(){const p=lt;if(gd(p),c)return()=>Mc(c,p);const g=m=>{u=null,Rs(m,p,13,!r)};if(a&&p.suspense||gs)return h().then(m=>()=>Mc(m,p)).catch(m=>(g(m),()=>r?P(r,{error:m}):null));const y=te(!1),b=te(),v=te(!!o);return o&&setTimeout(()=>{v.value=!1},o),i!=null&&setTimeout(()=>{if(!y.value&&!b.value){const m=new Error(`Async component timed out after ${i}ms.`);g(m),b.value=m}},i),h().then(()=>{y.value=!0,p.parent&&Ji(p.parent.vnode)&&p.parent.update()}).catch(m=>{g(m),b.value=m}),()=>{if(y.value&&c)return Mc(c,p);if(b.value&&r)return P(r,{error:b.value});if(n&&!v.value)return P(n)}}})}function Mc(e,t){const{ref:n,props:r,children:o,ce:s}=t.vnode,i=P(e,r,o);return i.ref=n,i.ce=s,delete t.vnode.ce,i}const Ji=e=>e.type.__isKeepAlive,fE={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Nt(),r=n.ctx;if(!r.renderer)return()=>{const v=t.default&&t.default();return v&&v.length===1?v[0]:v};const o=new Map,s=new Set;let i=null;const a=n.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:f}}}=r,d=f("div");r.activate=(v,m,_,S,E)=>{const w=v.component;u(v,m,_,0,a),l(w.vnode,v,m,_,w,a,S,v.slotScopeIds,E),at(()=>{w.isDeactivated=!1,w.a&&ai(w.a);const A=v.props&&v.props.onVnodeMounted;A&&jt(A,w.parent,v)},a)},r.deactivate=v=>{const m=v.component;dl(m.m),dl(m.a),u(v,d,null,1,a),at(()=>{m.da&&ai(m.da);const _=v.props&&v.props.onVnodeUnmounted;_&&jt(_,m.parent,v),m.isDeactivated=!0},a)};function h(v){Dc(v),c(v,n,a,!0)}function p(v){o.forEach((m,_)=>{const S=qu(m.type);S&&!v(S)&&g(_)})}function g(v){const m=o.get(v);m&&(!i||!yn(m,i))?h(m):i&&Dc(i),o.delete(v),s.delete(v)}Se(()=>[e.include,e.exclude],([v,m])=>{v&&p(_=>ei(v,_)),m&&p(_=>!ei(m,_))},{flush:"post",deep:!0});let y=null;const b=()=>{y!=null&&(hl(n.subTree.type)?at(()=>{o.set(y,ya(n.subTree))},n.subTree.suspense):o.set(y,ya(n.subTree)))};return St(b),ks(b),rn(()=>{o.forEach(v=>{const{subTree:m,suspense:_}=n,S=ya(m);if(v.type===S.type&&v.key===S.key){Dc(S);const E=S.component.da;E&&at(E,_);return}h(v)})}),()=>{if(y=null,!t.default)return i=null;const v=t.default(),m=v[0];if(v.length>1)return i=null,v;if(!en(m)||!(m.shapeFlag&4)&&!(m.shapeFlag&128))return i=null,m;let _=ya(m);if(_.type===qe)return i=null,_;const S=_.type,E=qu(Ar(_)?_.type.__asyncResolved||{}:S),{include:w,exclude:A,max:O}=e;if(w&&(!E||!ei(w,E))||A&&E&&ei(A,E))return _.shapeFlag&=-257,i=_,m;const L=_.key==null?S:_.key,N=o.get(L);return _.el&&(_=Sn(_),m.shapeFlag&128&&(m.ssContent=_)),y=L,N?(_.el=N.el,_.component=N.component,_.transition&&Pr(_,_.transition),_.shapeFlag|=512,s.delete(L),s.add(L)):(s.add(L),O&&s.size>parseInt(O,10)&&g(s.values().next().value)),_.shapeFlag|=256,i=_,hl(m.type)?m:_}}},dE=fE;function ei(e,t){return _e(e)?e.some(n=>ei(n,t)):ft(e)?e.split(",").includes(t):HC(e)?(e.lastIndex=0,e.test(t)):!1}function Tv(e,t){Ov(e,"a",t)}function xv(e,t){Ov(e,"da",t)}function Ov(e,t,n=lt){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Jl(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Ji(o.parent.vnode)&&hE(r,t,n,o),o=o.parent}}function hE(e,t,n,r){const o=Jl(t,e,r,!0);Is(()=>{iv(r[t],o)},n)}function Dc(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function ya(e){return e.shapeFlag&128?e.ssContent:e}function Jl(e,t,n=lt,r=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{rr();const a=ho(n),l=wn(t,n,e,i);return a(),or(),l});return r?o.unshift(s):o.push(s),s}}const lr=e=>(t,n=lt)=>{(!gs||e==="sp")&&Jl(e,(...r)=>t(...r),n)},Av=lr("bm"),St=lr("m"),Pv=lr("bu"),ks=lr("u"),rn=lr("bum"),Is=lr("um"),pE=lr("sp"),gE=lr("rtg"),mE=lr("rtc");function $v(e,t=lt){Jl("ec",e,t)}const md="components",yE="directives";function M5(e,t){return yd(md,e,!0,t)||e}const Rv=Symbol.for("v-ndc");function vE(e){return ft(e)?yd(md,e,!1)||e:e||Rv}function D5(e){return yd(yE,e)}function yd(e,t,n=!0,r=!1){const o=ct||lt;if(o){const s=o.type;if(e===md){const a=qu(s,!1);if(a&&(a===t||a===_n(t)||a===dd(_n(t))))return s}const i=Dh(o[e]||s[e],t)||Dh(o.appContext[e],t);return!i&&r?s:i}}function Dh(e,t){return e&&(e[t]||e[_n(t)]||e[dd(_n(t))])}function B5(e,t,n,r){let o;const s=n,i=_e(e);if(i||ft(e)){const a=i&&jn(e);let l=!1,u=!1;a&&(l=!un(e),u=sr(e),e=Fl(e)),o=new Array(e.length);for(let c=0,f=e.length;c<f;c++)o[c]=t(l?u?ol(vt(e[c])):vt(e[c]):e[c],c,void 0,s)}else if(typeof e=="number"){o=new Array(e);for(let a=0;a<e;a++)o[a]=t(a+1,a,void 0,s)}else if(dt(e))if(e[Symbol.iterator])o=Array.from(e,(a,l)=>t(a,l,void 0,s));else{const a=Object.keys(e);o=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const c=a[l];o[l]=t(e[c],c,l,s)}}else o=[];return o}function U5(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(_e(r))for(let o=0;o<r.length;o++)e[r[o].name]=r[o].fn;else r&&(e[r.name]=r.key?(...o)=>{const s=r.fn(...o);return s&&(s.key=r.key),s}:r.fn)}return e}function F5(e,t,n={},r,o){if(ct.ce||ct.parent&&Ar(ct.parent)&&ct.parent.ce)return t!=="default"&&(n.name=t),Yt(),Xn(je,null,[P("slot",n,r&&r())],64);let s=e[t];s&&s._c&&(s._d=!1),Yt();const i=s&&kv(s(n)),a=n.key||i&&i.key,l=Xn(je,{key:(a&&!ud(a)?a:`_${t}`)+(!i&&r?"_fb":"")},i||(r?r():[]),i&&e._===1?64:-2);return!o&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function kv(e){return e.some(t=>en(t)?!(t.type===qe||t.type===je&&!kv(t.children)):!0)?e:null}const Du=e=>e?o0(e)?Ql(e):Du(e.parent):null,ci=Ht(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=>Du(e.parent),$root:e=>Du(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Lv(e),$forceUpdate:e=>e.f||(e.f=()=>{hd(e.update)}),$nextTick:e=>e.n||(e.n=kt.bind(e.proxy)),$watch:e=>DE.bind(e)}),Bc=(e,t)=>e!==Le&&!e.__isScriptSetup&&Ne(e,t),bE={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:o,props:s,accessCache:i,type:a,appContext:l}=e;let u;if(t[0]!=="$"){const h=i[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return s[t]}else{if(Bc(r,t))return i[t]=1,r[t];if(o!==Le&&Ne(o,t))return i[t]=2,o[t];if((u=e.propsOptions[0])&&Ne(u,t))return i[t]=3,s[t];if(n!==Le&&Ne(n,t))return i[t]=4,n[t];Bu&&(i[t]=0)}}const c=ci[t];let f,d;if(c)return t==="$attrs"&&Tt(e.attrs,"get",""),c(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==Le&&Ne(n,t))return i[t]=4,n[t];if(d=l.config.globalProperties,Ne(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:s}=e;return Bc(o,t)?(o[t]=n,!0):r!==Le&&Ne(r,t)?(r[t]=n,!0):Ne(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:s}},i){let a;return!!n[i]||e!==Le&&Ne(e,i)||Bc(t,i)||(a=s[0])&&Ne(a,i)||Ne(r,i)||Ne(ci,i)||Ne(o.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ne(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function H5(){return Iv().slots}function W5(){return Iv().attrs}function Iv(){const e=Nt();return e.setupContext||(e.setupContext=i0(e))}function Bh(e){return _e(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function z5(e){const t=Nt();let n=e();return zu(),fd(n)&&(n=n.catch(r=>{throw ho(t),r})),[n,()=>ho(t)]}let Bu=!0;function _E(e){const t=Lv(e),n=e.proxy,r=e.ctx;Bu=!1,t.beforeCreate&&Uh(t.beforeCreate,e,"bc");const{data:o,computed:s,methods:i,watch:a,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:h,updated:p,activated:g,deactivated:y,beforeDestroy:b,beforeUnmount:v,destroyed:m,unmounted:_,render:S,renderTracked:E,renderTriggered:w,errorCaptured:A,serverPrefetch:O,expose:L,inheritAttrs:N,components:k,directives:F,filters:G}=t;if(u&&wE(u,r,null),i)for(const W in i){const H=i[W];ve(H)&&(r[W]=H.bind(n))}if(o){const W=o.call(n,n);dt(W)&&(e.data=ot(W))}if(Bu=!0,s)for(const W in s){const H=s[W],J=ve(H)?H.bind(n,n):ve(H.get)?H.get.bind(n,n):er,pe=!ve(H)&&ve(H.set)?H.set.bind(n):er,ae=R({get:J,set:pe});Object.defineProperty(r,W,{enumerable:!0,configurable:!0,get:()=>ae.value,set:be=>ae.value=be})}if(a)for(const W in a)Nv(a[W],r,n,W);if(l){const W=ve(l)?l.call(n):l;Reflect.ownKeys(W).forEach(H=>{_t(H,W[H])})}c&&Uh(c,e,"c");function I(W,H){_e(H)?H.forEach(J=>W(J.bind(n))):H&&W(H.bind(n))}if(I(Av,f),I(St,d),I(Pv,h),I(ks,p),I(Tv,g),I(xv,y),I($v,A),I(mE,E),I(gE,w),I(rn,v),I(Is,_),I(pE,O),_e(L))if(L.length){const W=e.exposed||(e.exposed={});L.forEach(H=>{Object.defineProperty(W,H,{get:()=>n[H],set:J=>n[H]=J})})}else e.exposed||(e.exposed={});S&&e.render===er&&(e.render=S),N!=null&&(e.inheritAttrs=N),k&&(e.components=k),F&&(e.directives=F),O&&gd(e)}function wE(e,t,n=er){_e(e)&&(e=Uu(e));for(const r in e){const o=e[r];let s;dt(o)?"default"in o?s=Te(o.from||r,o.default,!0):s=Te(o.from||r):s=Te(o),Me(s)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:i=>s.value=i}):t[r]=s}}function Uh(e,t,n){wn(_e(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Nv(e,t,n,r){let o=r.includes(".")?Kv(n,r):()=>n[r];if(ft(e)){const s=t[e];ve(s)&&Se(o,s)}else if(ve(e))Se(o,e.bind(n));else if(dt(e))if(_e(e))e.forEach(s=>Nv(s,t,n,r));else{const s=ve(e.handler)?e.handler.bind(n):t[e.handler];ve(s)&&Se(o,s,e)}}function Lv(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,a=s.get(t);let l;return a?l=a:!o.length&&!n&&!r?l=t:(l={},o.length&&o.forEach(u=>fl(l,u,i,!0)),fl(l,t,i)),dt(t)&&s.set(t,l),l}function fl(e,t,n,r=!1){const{mixins:o,extends:s}=t;s&&fl(e,s,n,!0),o&&o.forEach(i=>fl(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const a=SE[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const SE={data:Fh,props:Hh,emits:Hh,methods:ti,computed:ti,beforeCreate:Ot,created:Ot,beforeMount:Ot,mounted:Ot,beforeUpdate:Ot,updated:Ot,beforeDestroy:Ot,beforeUnmount:Ot,destroyed:Ot,unmounted:Ot,activated:Ot,deactivated:Ot,errorCaptured:Ot,serverPrefetch:Ot,components:ti,directives:ti,watch:EE,provide:Fh,inject:CE};function Fh(e,t){return t?e?function(){return Ht(ve(e)?e.call(this,this):e,ve(t)?t.call(this,this):t)}:t:e}function CE(e,t){return ti(Uu(e),Uu(t))}function Uu(e){if(_e(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ot(e,t){return e?[...new Set([].concat(e,t))]:t}function ti(e,t){return e?Ht(Object.create(null),e,t):t}function Hh(e,t){return e?_e(e)&&_e(t)?[...new Set([...e,...t])]:Ht(Object.create(null),Bh(e),Bh(t??{})):t}function EE(e,t){if(!e)return t;if(!t)return e;const n=Ht(Object.create(null),e);for(const r in t)n[r]=Ot(e[r],t[r]);return n}function jv(){return{app:null,config:{isNativeTag:DC,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 TE=0;function xE(e,t){return function(r,o=null){ve(r)||(r=Ht({},r)),o!=null&&!dt(o)&&(o=null);const s=jv(),i=new WeakSet,a=[];let l=!1;const u=s.app={_uid:TE++,_component:r,_props:o,_container:null,_context:s,_instance:null,version:iT,get config(){return s.config},set config(c){},use(c,...f){return i.has(c)||(c&&ve(c.install)?(i.add(c),c.install(u,...f)):ve(c)&&(i.add(c),c(u,...f))),u},mixin(c){return s.mixins.includes(c)||s.mixins.push(c),u},component(c,f){return f?(s.components[c]=f,u):s.components[c]},directive(c,f){return f?(s.directives[c]=f,u):s.directives[c]},mount(c,f,d){if(!l){const h=u._ceVNode||P(r,o);return h.appContext=s,d===!0?d="svg":d===!1&&(d=void 0),f&&t?t(h,c):e(h,c,d),l=!0,u._container=c,c.__vue_app__=u,Ql(h.component)}},onUnmount(c){a.push(c)},unmount(){l&&(wn(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,f){return s.provides[c]=f,u},runWithContext(c){const f=ro;ro=u;try{return c()}finally{ro=f}}};return u}}let ro=null;function _t(e,t){if(lt){let n=lt.provides;const r=lt.parent&<.parent.provides;r===n&&(n=lt.provides=Object.create(r)),n[e]=t}}function Te(e,t,n=!1){const r=lt||ct;if(r||ro){const o=ro?ro._context.provides:r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&ve(t)?t.call(r&&r.proxy):t}}function So(){return!!(lt||ct||ro)}const Mv={},Dv=()=>Object.create(Mv),Bv=e=>Object.getPrototypeOf(e)===Mv;function OE(e,t,n,r=!1){const o={},s=Dv();e.propsDefaults=Object.create(null),Uv(e,t,o,s);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);n?e.props=r?o:Ln(o):e.type.props?e.props=o:e.props=s,e.attrs=s}function AE(e,t,n,r){const{props:o,attrs:s,vnode:{patchFlag:i}}=e,a=Ce(o),[l]=e.propsOptions;let u=!1;if((r||i>0)&&!(i&16)){if(i&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let d=c[f];if(Yl(e.emitsOptions,d))continue;const h=t[d];if(l)if(Ne(s,d))h!==s[d]&&(s[d]=h,u=!0);else{const p=_n(d);o[p]=Fu(l,a,p,h,e,!1)}else h!==s[d]&&(s[d]=h,u=!0)}}}else{Uv(e,t,o,s)&&(u=!0);let c;for(const f in a)(!t||!Ne(t,f)&&((c=Gi(f))===f||!Ne(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(o[f]=Fu(l,a,f,void 0,e,!0)):delete o[f]);if(s!==a)for(const f in s)(!t||!Ne(t,f))&&(delete s[f],u=!0)}u&&Jn(e.attrs,"set","")}function Uv(e,t,n,r){const[o,s]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(os(l))continue;const u=t[l];let c;o&&Ne(o,c=_n(l))?!s||!s.includes(c)?n[c]=u:(a||(a={}))[c]=u:Yl(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,i=!0)}if(s){const l=Ce(n),u=a||Le;for(let c=0;c<s.length;c++){const f=s[c];n[f]=Fu(o,l,f,u[f],e,!Ne(u,f))}}return i}function Fu(e,t,n,r,o,s){const i=e[n];if(i!=null){const a=Ne(i,"default");if(a&&r===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&ve(l)){const{propsDefaults:u}=o;if(n in u)r=u[n];else{const c=ho(o);r=u[n]=l.call(null,t),c()}}else r=l;o.ce&&o.ce._setProp(n,r)}i[0]&&(s&&!a?r=!1:i[1]&&(r===""||r===Gi(n))&&(r=!0))}return r}const PE=new WeakMap;function Fv(e,t,n=!1){const r=n?PE:t.propsCache,o=r.get(e);if(o)return o;const s=e.props,i={},a=[];let l=!1;if(!ve(e)){const c=f=>{l=!0;const[d,h]=Fv(f,t,!0);Ht(i,d),h&&a.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!s&&!l)return dt(e)&&r.set(e,rs),rs;if(_e(s))for(let c=0;c<s.length;c++){const f=_n(s[c]);Wh(f)&&(i[f]=Le)}else if(s)for(const c in s){const f=_n(c);if(Wh(f)){const d=s[c],h=i[f]=_e(d)||ve(d)?{type:d}:Ht({},d),p=h.type;let g=!1,y=!0;if(_e(p))for(let b=0;b<p.length;++b){const v=p[b],m=ve(v)&&v.name;if(m==="Boolean"){g=!0;break}else m==="String"&&(y=!1)}else g=ve(p)&&p.name==="Boolean";h[0]=g,h[1]=y,(g||Ne(h,"default"))&&a.push(f)}}const u=[i,a];return dt(e)&&r.set(e,u),u}function Wh(e){return e[0]!=="$"&&!os(e)}const vd=e=>e[0]==="_"||e==="$stable",bd=e=>_e(e)?e.map(Xt):[Xt(e)],$E=(e,t,n)=>{if(t._n)return t;const r=ul((...o)=>bd(t(...o)),n);return r._c=!1,r},Hv=(e,t,n)=>{const r=e._ctx;for(const o in e){if(vd(o))continue;const s=e[o];if(ve(s))t[o]=$E(o,s,r);else if(s!=null){const i=bd(s);t[o]=()=>i}}},Wv=(e,t)=>{const n=bd(t);e.slots.default=()=>n},zv=(e,t,n)=>{for(const r in t)(n||!vd(r))&&(e[r]=t[r])},RE=(e,t,n)=>{const r=e.slots=Dv();if(e.vnode.shapeFlag&32){const o=t._;o?(zv(r,t,n),n&&qC(r,"_",o,!0)):Hv(t,r)}else t&&Wv(e,t)},kE=(e,t,n)=>{const{vnode:r,slots:o}=e;let s=!0,i=Le;if(r.shapeFlag&32){const a=t._;a?n&&a===1?s=!1:zv(o,t,n):(s=!t.$stable,Hv(t,o)),i=t}else t&&(Wv(e,t),i={default:1});if(s)for(const a in o)!vd(a)&&i[a]==null&&delete o[a]},at=Xv;function IE(e){return Vv(e)}function NE(e){return Vv(e,lE)}function Vv(e,t){const n=ql();n.__VUE__=!0;const{insert:r,remove:o,patchProp:s,createElement:i,createText:a,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:h=er,insertStaticContent:p}=e,g=(C,T,j,z=null,B=null,V=null,Q=void 0,Y=null,K=!!T.dynamicChildren)=>{if(C===T)return;C&&!yn(C,T)&&(z=D(C),be(C,B,V,!0),C=null),T.patchFlag===-2&&(K=!1,T.dynamicChildren=null);const{type:q,ref:le,shapeFlag:Z}=T;switch(q){case tr:y(C,T,j,z);break;case qe:b(C,T,j,z);break;case as:C==null&&v(T,j,z,Q);break;case je:k(C,T,j,z,B,V,Q,Y,K);break;default:Z&1?S(C,T,j,z,B,V,Q,Y,K):Z&6?F(C,T,j,z,B,V,Q,Y,K):(Z&64||Z&128)&&q.process(C,T,j,z,B,V,Q,Y,K,ie)}le!=null&&B&&Ai(le,C&&C.ref,V,T||C,!T)},y=(C,T,j,z)=>{if(C==null)r(T.el=a(T.children),j,z);else{const B=T.el=C.el;T.children!==C.children&&u(B,T.children)}},b=(C,T,j,z)=>{C==null?r(T.el=l(T.children||""),j,z):T.el=C.el},v=(C,T,j,z)=>{[C.el,C.anchor]=p(C.children,T,j,z,C.el,C.anchor)},m=({el:C,anchor:T},j,z)=>{let B;for(;C&&C!==T;)B=d(C),r(C,j,z),C=B;r(T,j,z)},_=({el:C,anchor:T})=>{let j;for(;C&&C!==T;)j=d(C),o(C),C=j;o(T)},S=(C,T,j,z,B,V,Q,Y,K)=>{T.type==="svg"?Q="svg":T.type==="math"&&(Q="mathml"),C==null?E(T,j,z,B,V,Q,Y,K):O(C,T,B,V,Q,Y,K)},E=(C,T,j,z,B,V,Q,Y)=>{let K,q;const{props:le,shapeFlag:Z,transition:oe,dirs:me}=C;if(K=C.el=i(C.type,V,le&&le.is,le),Z&8?c(K,C.children):Z&16&&A(C.children,K,null,z,B,Uc(C,V),Q,Y),me&&kn(C,null,z,"created"),w(K,C,C.scopeId,Q,z),le){for(const $e in le)$e!=="value"&&!os($e)&&s(K,$e,null,le[$e],V,z);"value"in le&&s(K,"value",null,le.value,V),(q=le.onVnodeBeforeMount)&&jt(q,z,C)}me&&kn(C,null,z,"beforeMount");const Ee=qv(B,oe);Ee&&oe.beforeEnter(K),r(K,T,j),((q=le&&le.onVnodeMounted)||Ee||me)&&at(()=>{q&&jt(q,z,C),Ee&&oe.enter(K),me&&kn(C,null,z,"mounted")},B)},w=(C,T,j,z,B)=>{if(j&&h(C,j),z)for(let V=0;V<z.length;V++)h(C,z[V]);if(B){let V=B.subTree;if(T===V||hl(V.type)&&(V.ssContent===T||V.ssFallback===T)){const Q=B.vnode;w(C,Q,Q.scopeId,Q.slotScopeIds,B.parent)}}},A=(C,T,j,z,B,V,Q,Y,K=0)=>{for(let q=K;q<C.length;q++){const le=C[q]=Y?br(C[q]):Xt(C[q]);g(null,le,T,j,z,B,V,Q,Y)}},O=(C,T,j,z,B,V,Q)=>{const Y=T.el=C.el;let{patchFlag:K,dynamicChildren:q,dirs:le}=T;K|=C.patchFlag&16;const Z=C.props||Le,oe=T.props||Le;let me;if(j&&Nr(j,!1),(me=oe.onVnodeBeforeUpdate)&&jt(me,j,T,C),le&&kn(T,C,j,"beforeUpdate"),j&&Nr(j,!0),(Z.innerHTML&&oe.innerHTML==null||Z.textContent&&oe.textContent==null)&&c(Y,""),q?L(C.dynamicChildren,q,Y,j,z,Uc(T,B),V):Q||H(C,T,Y,null,j,z,Uc(T,B),V,!1),K>0){if(K&16)N(Y,Z,oe,j,B);else if(K&2&&Z.class!==oe.class&&s(Y,"class",null,oe.class,B),K&4&&s(Y,"style",Z.style,oe.style,B),K&8){const Ee=T.dynamicProps;for(let $e=0;$e<Ee.length;$e++){const Oe=Ee[$e],Wt=Z[Oe],Ct=oe[Oe];(Ct!==Wt||Oe==="value")&&s(Y,Oe,Wt,Ct,B,j)}}K&1&&C.children!==T.children&&c(Y,T.children)}else!Q&&q==null&&N(Y,Z,oe,j,B);((me=oe.onVnodeUpdated)||le)&&at(()=>{me&&jt(me,j,T,C),le&&kn(T,C,j,"updated")},z)},L=(C,T,j,z,B,V,Q)=>{for(let Y=0;Y<T.length;Y++){const K=C[Y],q=T[Y],le=K.el&&(K.type===je||!yn(K,q)||K.shapeFlag&70)?f(K.el):j;g(K,q,le,null,z,B,V,Q,!0)}},N=(C,T,j,z,B)=>{if(T!==j){if(T!==Le)for(const V in T)!os(V)&&!(V in j)&&s(C,V,T[V],null,B,z);for(const V in j){if(os(V))continue;const Q=j[V],Y=T[V];Q!==Y&&V!=="value"&&s(C,V,Y,Q,B,z)}"value"in j&&s(C,"value",T.value,j.value,B)}},k=(C,T,j,z,B,V,Q,Y,K)=>{const q=T.el=C?C.el:a(""),le=T.anchor=C?C.anchor:a("");let{patchFlag:Z,dynamicChildren:oe,slotScopeIds:me}=T;me&&(Y=Y?Y.concat(me):me),C==null?(r(q,j,z),r(le,j,z),A(T.children||[],j,le,B,V,Q,Y,K)):Z>0&&Z&64&&oe&&C.dynamicChildren?(L(C.dynamicChildren,oe,j,B,V,Q,Y),(T.key!=null||B&&T===B.subTree)&&_d(C,T,!0)):H(C,T,j,le,B,V,Q,Y,K)},F=(C,T,j,z,B,V,Q,Y,K)=>{T.slotScopeIds=Y,C==null?T.shapeFlag&512?B.ctx.activate(T,j,z,Q,K):G(T,j,z,B,V,Q,K):$(C,T,K)},G=(C,T,j,z,B,V,Q)=>{const Y=C.component=tT(C,z,B);if(Ji(C)&&(Y.ctx.renderer=ie),nT(Y,!1,Q),Y.asyncDep){if(B&&B.registerDep(Y,I,Q),!C.el){const K=Y.subTree=P(qe);b(null,K,T,j)}}else I(Y,C,T,j,B,V,Q)},$=(C,T,j)=>{const z=T.component=C.component;if(zE(C,T,j))if(z.asyncDep&&!z.asyncResolved){W(z,T,j);return}else z.next=T,z.update();else T.el=C.el,z.vnode=T},I=(C,T,j,z,B,V,Q)=>{const Y=()=>{if(C.isMounted){let{next:Z,bu:oe,u:me,parent:Ee,vnode:$e}=C;{const zt=Gv(C);if(zt){Z&&(Z.el=$e.el,W(C,Z,Q)),zt.asyncDep.then(()=>{C.isUnmounted||Y()});return}}let Oe=Z,Wt;Nr(C,!1),Z?(Z.el=$e.el,W(C,Z,Q)):Z=$e,oe&&ai(oe),(Wt=Z.props&&Z.props.onVnodeBeforeUpdate)&&jt(Wt,Ee,Z,$e),Nr(C,!0);const Ct=Fc(C),dn=C.subTree;C.subTree=Ct,g(dn,Ct,f(dn.el),D(dn),C,B,V),Z.el=Ct.el,Oe===null&&Xl(C,Ct.el),me&&at(me,B),(Wt=Z.props&&Z.props.onVnodeUpdated)&&at(()=>jt(Wt,Ee,Z,$e),B)}else{let Z;const{el:oe,props:me}=T,{bm:Ee,m:$e,parent:Oe,root:Wt,type:Ct}=C,dn=Ar(T);if(Nr(C,!1),Ee&&ai(Ee),!dn&&(Z=me&&me.onVnodeBeforeMount)&&jt(Z,Oe,T),Nr(C,!0),oe&&Ue){const zt=()=>{C.subTree=Fc(C),Ue(oe,C.subTree,C,B,null)};dn&&Ct.__asyncHydrate?Ct.__asyncHydrate(oe,C,zt):zt()}else{Wt.ce&&Wt.ce._injectChildStyle(Ct);const zt=C.subTree=Fc(C);g(null,zt,j,z,C,B,V),T.el=zt.el}if($e&&at($e,B),!dn&&(Z=me&&me.onVnodeMounted)){const zt=T;at(()=>jt(Z,Oe,zt),B)}(T.shapeFlag&256||Oe&&Ar(Oe.vnode)&&Oe.vnode.shapeFlag&256)&&C.a&&at(C.a,B),C.isMounted=!0,T=j=z=null}};C.scope.on();const K=C.effect=new Hy(Y);C.scope.off();const q=C.update=K.run.bind(K),le=C.job=K.runIfDirty.bind(K);le.i=C,le.id=C.uid,K.scheduler=()=>hd(le),Nr(C,!0),q()},W=(C,T,j)=>{T.component=C;const z=C.vnode.props;C.vnode=T,C.next=null,AE(C,T.props,z,j),kE(C,T.children,j),rr(),Rh(C),or()},H=(C,T,j,z,B,V,Q,Y,K=!1)=>{const q=C&&C.children,le=C?C.shapeFlag:0,Z=T.children,{patchFlag:oe,shapeFlag:me}=T;if(oe>0){if(oe&128){pe(q,Z,j,z,B,V,Q,Y,K);return}else if(oe&256){J(q,Z,j,z,B,V,Q,Y,K);return}}me&8?(le&16&&pt(q,B,V),Z!==q&&c(j,Z)):le&16?me&16?pe(q,Z,j,z,B,V,Q,Y,K):pt(q,B,V,!0):(le&8&&c(j,""),me&16&&A(Z,j,z,B,V,Q,Y,K))},J=(C,T,j,z,B,V,Q,Y,K)=>{C=C||rs,T=T||rs;const q=C.length,le=T.length,Z=Math.min(q,le);let oe;for(oe=0;oe<Z;oe++){const me=T[oe]=K?br(T[oe]):Xt(T[oe]);g(C[oe],me,j,null,B,V,Q,Y,K)}q>le?pt(C,B,V,!0,!1,Z):A(T,j,z,B,V,Q,Y,K,Z)},pe=(C,T,j,z,B,V,Q,Y,K)=>{let q=0;const le=T.length;let Z=C.length-1,oe=le-1;for(;q<=Z&&q<=oe;){const me=C[q],Ee=T[q]=K?br(T[q]):Xt(T[q]);if(yn(me,Ee))g(me,Ee,j,null,B,V,Q,Y,K);else break;q++}for(;q<=Z&&q<=oe;){const me=C[Z],Ee=T[oe]=K?br(T[oe]):Xt(T[oe]);if(yn(me,Ee))g(me,Ee,j,null,B,V,Q,Y,K);else break;Z--,oe--}if(q>Z){if(q<=oe){const me=oe+1,Ee=me<le?T[me].el:z;for(;q<=oe;)g(null,T[q]=K?br(T[q]):Xt(T[q]),j,Ee,B,V,Q,Y,K),q++}}else if(q>oe)for(;q<=Z;)be(C[q],B,V,!0),q++;else{const me=q,Ee=q,$e=new Map;for(q=Ee;q<=oe;q++){const Vt=T[q]=K?br(T[q]):Xt(T[q]);Vt.key!=null&&$e.set(Vt.key,q)}let Oe,Wt=0;const Ct=oe-Ee+1;let dn=!1,zt=0;const Hs=new Array(Ct);for(q=0;q<Ct;q++)Hs[q]=0;for(q=me;q<=Z;q++){const Vt=C[q];if(Wt>=Ct){be(Vt,B,V,!0);continue}let xn;if(Vt.key!=null)xn=$e.get(Vt.key);else for(Oe=Ee;Oe<=oe;Oe++)if(Hs[Oe-Ee]===0&&yn(Vt,T[Oe])){xn=Oe;break}xn===void 0?be(Vt,B,V,!0):(Hs[xn-Ee]=q+1,xn>=zt?zt=xn:dn=!0,g(Vt,T[xn],j,null,B,V,Q,Y,K),Wt++)}const xh=dn?LE(Hs):rs;for(Oe=xh.length-1,q=Ct-1;q>=0;q--){const Vt=Ee+q,xn=T[Vt],Oh=Vt+1<le?T[Vt+1].el:z;Hs[q]===0?g(null,xn,j,Oh,B,V,Q,Y,K):dn&&(Oe<0||q!==xh[Oe]?ae(xn,j,Oh,2):Oe--)}}},ae=(C,T,j,z,B=null)=>{const{el:V,type:Q,transition:Y,children:K,shapeFlag:q}=C;if(q&6){ae(C.component.subTree,T,j,z);return}if(q&128){C.suspense.move(T,j,z);return}if(q&64){Q.move(C,T,j,ie);return}if(Q===je){r(V,T,j);for(let Z=0;Z<K.length;Z++)ae(K[Z],T,j,z);r(C.anchor,T,j);return}if(Q===as){m(C,T,j);return}if(z!==2&&q&1&&Y)if(z===0)Y.beforeEnter(V),r(V,T,j),at(()=>Y.enter(V),B);else{const{leave:Z,delayLeave:oe,afterLeave:me}=Y,Ee=()=>{C.ctx.isUnmounted?o(V):r(V,T,j)},$e=()=>{Z(V,()=>{Ee(),me&&me()})};oe?oe(V,Ee,$e):$e()}else r(V,T,j)},be=(C,T,j,z=!1,B=!1)=>{const{type:V,props:Q,ref:Y,children:K,dynamicChildren:q,shapeFlag:le,patchFlag:Z,dirs:oe,cacheIndex:me}=C;if(Z===-2&&(B=!1),Y!=null&&(rr(),Ai(Y,null,j,C,!0),or()),me!=null&&(T.renderCache[me]=void 0),le&256){T.ctx.deactivate(C);return}const Ee=le&1&&oe,$e=!Ar(C);let Oe;if($e&&(Oe=Q&&Q.onVnodeBeforeUnmount)&&jt(Oe,T,C),le&6)ge(C.component,j,z);else{if(le&128){C.suspense.unmount(j,z);return}Ee&&kn(C,null,T,"beforeUnmount"),le&64?C.type.remove(C,T,j,ie,z):q&&!q.hasOnce&&(V!==je||Z>0&&Z&64)?pt(q,T,j,!1,!0):(V===je&&Z&384||!B&&le&16)&&pt(K,T,j),z&&Qe(C)}($e&&(Oe=Q&&Q.onVnodeUnmounted)||Ee)&&at(()=>{Oe&&jt(Oe,T,C),Ee&&kn(C,null,T,"unmounted")},j)},Qe=C=>{const{type:T,el:j,anchor:z,transition:B}=C;if(T===je){ye(j,z);return}if(T===as){_(C);return}const V=()=>{o(j),B&&!B.persisted&&B.afterLeave&&B.afterLeave()};if(C.shapeFlag&1&&B&&!B.persisted){const{leave:Q,delayLeave:Y}=B,K=()=>Q(j,V);Y?Y(C.el,V,K):K()}else V()},ye=(C,T)=>{let j;for(;C!==T;)j=d(C),o(C),C=j;o(T)},ge=(C,T,j)=>{const{bum:z,scope:B,job:V,subTree:Q,um:Y,m:K,a:q,parent:le,slots:{__:Z}}=C;dl(K),dl(q),z&&ai(z),le&&_e(Z)&&Z.forEach(oe=>{le.renderCache[oe]=void 0}),B.stop(),V&&(V.flags|=8,be(Q,C,T,j)),Y&&at(Y,T),at(()=>{C.isUnmounted=!0},T),T&&T.pendingBranch&&!T.isUnmounted&&C.asyncDep&&!C.asyncResolved&&C.suspenseId===T.pendingId&&(T.deps--,T.deps===0&&T.resolve())},pt=(C,T,j,z=!1,B=!1,V=0)=>{for(let Q=V;Q<C.length;Q++)be(C[Q],T,j,z,B)},D=C=>{if(C.shapeFlag&6)return D(C.component.subTree);if(C.shapeFlag&128)return C.suspense.next();const T=d(C.anchor||C.el),j=T&&T[gv];return j?d(j):T};let ee=!1;const X=(C,T,j)=>{C==null?T._vnode&&be(T._vnode,null,null,!0):g(T._vnode||null,C,T,null,null,null,j),T._vnode=C,ee||(ee=!0,Rh(),ll(),ee=!1)},ie={p:g,um:be,m:ae,r:Qe,mt:G,mc:A,pc:H,pbc:L,n:D,o:e};let we,Ue;return t&&([we,Ue]=t(ie)),{render:X,hydrate:we,createApp:xE(X,we)}}function Uc({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 Nr({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function qv(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function _d(e,t,n=!1){const r=e.children,o=t.children;if(_e(r)&&_e(o))for(let s=0;s<r.length;s++){const i=r[s];let a=o[s];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[s]=br(o[s]),a.el=i.el),!n&&a.patchFlag!==-2&&_d(i,a)),a.type===tr&&(a.el=i.el),a.type===qe&&!a.el&&(a.el=i.el)}}function LE(e){const t=e.slice(),n=[0];let r,o,s,i,a;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(o=n[n.length-1],e[o]<u){t[r]=o,n.push(r);continue}for(s=0,i=n.length-1;s<i;)a=s+i>>1,e[n[a]]<u?s=a+1:i=a;u<e[n[s]]&&(s>0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=t[i];return n}function Gv(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Gv(t)}function dl(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const jE=Symbol.for("v-scx"),ME=()=>Te(jE);function Dn(e,t){return wd(e,null,t)}function Se(e,t,n){return wd(e,t,n)}function wd(e,t,n=Le){const{immediate:r,deep:o,flush:s,once:i}=n,a=Ht({},n),l=t&&r||!t&&s!=="post";let u;if(gs){if(s==="sync"){const h=ME();u=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=er,h.resume=er,h.pause=er,h}}const c=lt;a.call=(h,p,g)=>wn(h,c,p,g);let f=!1;s==="post"?a.scheduler=h=>{at(h,c&&c.suspense)}:s!=="sync"&&(f=!0,a.scheduler=(h,p)=>{p?h():hd(h)}),a.augmentJob=h=>{t&&(h.flags|=4),f&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const d=jC(e,t,a);return gs&&(u?u.push(d):l&&d()),d}function DE(e,t,n){const r=this.proxy,o=ft(e)?e.includes(".")?Kv(r,e):()=>r[e]:e.bind(r,r);let s;ve(t)?s=t:(s=t.handler,n=t);const i=ho(this),a=wd(o,s.bind(r),n);return i(),a}function Kv(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o<n.length&&r;o++)r=r[n[o]];return r}}const BE=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${_n(t)}Modifiers`]||e[`${Gi(t)}Modifiers`];function UE(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Le;let o=n;const s=t.startsWith("update:"),i=s&&BE(r,t.slice(7));i&&(i.trim&&(o=n.map(c=>ft(c)?c.trim():c)),i.number&&(o=n.map(GC)));let a,l=r[a=Nc(t)]||r[a=Nc(_n(t))];!l&&s&&(l=r[a=Nc(Gi(t))]),l&&wn(l,e,6,o);const u=r[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,wn(u,e,6,o)}}function Jv(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const s=e.emits;let i={},a=!1;if(!ve(e)){const l=u=>{const c=Jv(u,t,!0);c&&(a=!0,Ht(i,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?(dt(e)&&r.set(e,null),null):(_e(s)?s.forEach(l=>i[l]=null):Ht(i,s),dt(e)&&r.set(e,i),i)}function Yl(e,t){return!e||!Wl(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ne(e,t[0].toLowerCase()+t.slice(1))||Ne(e,Gi(t))||Ne(e,t))}function Fc(e){const{type:t,vnode:n,proxy:r,withProxy:o,propsOptions:[s],slots:i,attrs:a,emit:l,render:u,renderCache:c,props:f,data:d,setupState:h,ctx:p,inheritAttrs:g}=e,y=cl(e);let b,v;try{if(n.shapeFlag&4){const _=o||r,S=_;b=Xt(u.call(S,_,c,f,h,d,p)),v=a}else{const _=t;b=Xt(_.length>1?_(f,{attrs:a,slots:i,emit:l}):_(f,null)),v=t.props?a:HE(a)}}catch(_){ui.length=0,Rs(_,e,1),b=P(qe)}let m=b;if(v&&g!==!1){const _=Object.keys(v),{shapeFlag:S}=m;_.length&&S&7&&(s&&_.some(sv)&&(v=WE(v,s)),m=Sn(m,v,!1,!0))}return n.dirs&&(m=Sn(m,null,!1,!0),m.dirs=m.dirs?m.dirs.concat(n.dirs):n.dirs),n.transition&&Pr(m,n.transition),b=m,cl(y),b}function FE(e,t=!0){let n;for(let r=0;r<e.length;r++){const o=e[r];if(en(o)){if(o.type!==qe||o.children==="v-if"){if(n)return;n=o}}else return}return n}const HE=e=>{let t;for(const n in e)(n==="class"||n==="style"||Wl(n))&&((t||(t={}))[n]=e[n]);return t},WE=(e,t)=>{const n={};for(const r in e)(!sv(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function zE(e,t,n){const{props:r,children:o,component:s}=e,{props:i,children:a,patchFlag:l}=t,u=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?zh(r,i,u):!!i;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const d=c[f];if(i[d]!==r[d]&&!Yl(u,d))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:r===i?!1:r?i?zh(r,i,u):!0:!!i;return!1}function zh(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const s=r[o];if(t[s]!==e[s]&&!Yl(n,s))return!0}return!1}function Xl({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const hl=e=>e.__isSuspense;let Hu=0;const VE={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,s,i,a,l,u){if(e==null)qE(t,n,r,o,s,i,a,l,u);else{if(s&&s.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}GE(e,t,n,r,o,i,a,l,u)}},hydrate:KE,normalize:JE},Sd=VE;function Pi(e,t){const n=e.props&&e.props[t];ve(n)&&n()}function qE(e,t,n,r,o,s,i,a,l){const{p:u,o:{createElement:c}}=l,f=c("div"),d=e.suspense=Yv(e,o,r,t,f,n,s,i,a,l);u(null,d.pendingBranch=e.ssContent,f,null,r,d,s,i),d.deps>0?(Pi(e,"onPending"),Pi(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,s,i),is(d,e.ssFallback)):d.resolve(!1,!0)}function GE(e,t,n,r,o,s,i,a,{p:l,um:u,o:{createElement:c}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const d=t.ssContent,h=t.ssFallback,{activeBranch:p,pendingBranch:g,isInFallback:y,isHydrating:b}=f;if(g)f.pendingBranch=d,yn(d,g)?(l(g,d,f.hiddenContainer,null,o,f,s,i,a),f.deps<=0?f.resolve():y&&(b||(l(p,h,n,r,o,null,s,i,a),is(f,h)))):(f.pendingId=Hu++,b?(f.isHydrating=!1,f.activeBranch=g):u(g,o,f),f.deps=0,f.effects.length=0,f.hiddenContainer=c("div"),y?(l(null,d,f.hiddenContainer,null,o,f,s,i,a),f.deps<=0?f.resolve():(l(p,h,n,r,o,null,s,i,a),is(f,h))):p&&yn(d,p)?(l(p,d,n,r,o,f,s,i,a),f.resolve(!0)):(l(null,d,f.hiddenContainer,null,o,f,s,i,a),f.deps<=0&&f.resolve()));else if(p&&yn(d,p))l(p,d,n,r,o,f,s,i,a),is(f,d);else if(Pi(t,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=Hu++,l(null,d,f.hiddenContainer,null,o,f,s,i,a),f.deps<=0)f.resolve();else{const{timeout:v,pendingId:m}=f;v>0?setTimeout(()=>{f.pendingId===m&&f.fallback(h)},v):v===0&&f.fallback(h)}}function Yv(e,t,n,r,o,s,i,a,l,u,c=!1){const{p:f,m:d,um:h,n:p,o:{parentNode:g,remove:y}}=u;let b;const v=YE(e);v&&t&&t.pendingBranch&&(b=t.pendingId,t.deps++);const m=e.props?KC(e.props.timeout):void 0,_=s,S={vnode:e,parent:t,parentComponent:n,namespace:i,container:r,hiddenContainer:o,deps:0,pendingId:Hu++,timeout:typeof m=="number"?m:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(E=!1,w=!1){const{vnode:A,activeBranch:O,pendingBranch:L,pendingId:N,effects:k,parentComponent:F,container:G}=S;let $=!1;S.isHydrating?S.isHydrating=!1:E||($=O&&L.transition&&L.transition.mode==="out-in",$&&(O.transition.afterLeave=()=>{N===S.pendingId&&(d(L,G,s===_?p(O):s,0),al(k))}),O&&(g(O.el)===G&&(s=p(O)),h(O,F,S,!0)),$||d(L,G,s,0)),is(S,L),S.pendingBranch=null,S.isInFallback=!1;let I=S.parent,W=!1;for(;I;){if(I.pendingBranch){I.effects.push(...k),W=!0;break}I=I.parent}!W&&!$&&al(k),S.effects=[],v&&t&&t.pendingBranch&&b===t.pendingId&&(t.deps--,t.deps===0&&!w&&t.resolve()),Pi(A,"onResolve")},fallback(E){if(!S.pendingBranch)return;const{vnode:w,activeBranch:A,parentComponent:O,container:L,namespace:N}=S;Pi(w,"onFallback");const k=p(A),F=()=>{S.isInFallback&&(f(null,E,L,k,O,null,N,a,l),is(S,E))},G=E.transition&&E.transition.mode==="out-in";G&&(A.transition.afterLeave=F),S.isInFallback=!0,h(A,O,null,!0),G||F()},move(E,w,A){S.activeBranch&&d(S.activeBranch,E,w,A),S.container=E},next(){return S.activeBranch&&p(S.activeBranch)},registerDep(E,w,A){const O=!!S.pendingBranch;O&&S.deps++;const L=E.vnode.el;E.asyncDep.catch(N=>{Rs(N,E,0)}).then(N=>{if(E.isUnmounted||S.isUnmounted||S.pendingId!==E.suspenseId)return;E.asyncResolved=!0;const{vnode:k}=E;Vu(E,N),L&&(k.el=L);const F=!L&&E.subTree.el;w(E,k,g(L||E.subTree.el),L?null:p(E.subTree),S,i,A),F&&y(F),Xl(E,k.el),O&&--S.deps===0&&S.resolve()})},unmount(E,w){S.isUnmounted=!0,S.activeBranch&&h(S.activeBranch,n,E,w),S.pendingBranch&&h(S.pendingBranch,n,E,w)}};return S}function KE(e,t,n,r,o,s,i,a,l){const u=t.suspense=Yv(t,r,n,e.parentNode,document.createElement("div"),null,o,s,i,a,!0),c=l(e,u.pendingBranch=t.ssContent,n,u,s,i);return u.deps===0&&u.resolve(!1,!0),c}function JE(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Vh(r?n.default:n),e.ssFallback=r?Vh(n.fallback):P(qe)}function Vh(e){let t;if(ve(e)){const n=ps&&e._c;n&&(e._d=!1,Yt()),e=e(),n&&(e._d=!0,t=Mt,Qv())}return _e(e)&&(e=FE(e)),e=Xt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Xv(e,t){t&&t.pendingBranch?_e(e)?t.effects.push(...e):t.effects.push(e):al(e)}function is(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let o=t.el;for(;!o&&t.component;)t=t.component.subTree,o=t.el;n.el=o,r&&r.subTree===n&&(r.vnode.el=o,Xl(r,o))}function YE(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const je=Symbol.for("v-fgt"),tr=Symbol.for("v-txt"),qe=Symbol.for("v-cmt"),as=Symbol.for("v-stc"),ui=[];let Mt=null;function Yt(e=!1){ui.push(Mt=e?null:[])}function Qv(){ui.pop(),Mt=ui[ui.length-1]||null}let ps=1;function qh(e,t=!1){ps+=e,e<0&&Mt&&t&&(Mt.hasOnce=!0)}function Zv(e){return e.dynamicChildren=ps>0?Mt||rs:null,Qv(),ps>0&&Mt&&Mt.push(e),e}function Cd(e,t,n,r,o,s){return Zv(ls(e,t,n,r,o,s,!0))}function Xn(e,t,n,r,o){return Zv(P(e,t,n,r,o,!0))}function en(e){return e?e.__v_isVNode===!0:!1}function yn(e,t){return e.type===t.type&&e.key===t.key}const e0=({key:e})=>e??null,Da=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ft(e)||Me(e)||ve(e)?{i:ct,r:e,k:t,f:!!n}:e:null);function ls(e,t=null,n=null,r=0,o=null,s=e===je?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&e0(t),ref:t&&Da(t),scopeId:hv,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:s,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:ct};return a?(Ed(l,n),s&128&&e.normalize(l)):n&&(l.shapeFlag|=ft(n)?8:16),ps>0&&!i&&Mt&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&Mt.push(l),l}const P=XE;function XE(e,t=null,n=null,r=0,o=null,s=!1){if((!e||e===Rv)&&(e=qe),en(e)){const a=Sn(e,t,!0);return n&&Ed(a,n),ps>0&&!s&&Mt&&(a.shapeFlag&6?Mt[Mt.indexOf(e)]=a:Mt.push(a)),a.patchFlag=-2,a}if(sT(e)&&(e=e.__vccOpts),t){t=t0(t);let{class:a,style:l}=t;a&&!ft(a)&&(t.class=Kl(a)),dt(l)&&(ld(l)&&!_e(l)&&(l=Ht({},l)),t.style=Gl(l))}const i=ft(e)?1:hl(e)?128:mv(e)?64:dt(e)?4:ve(e)?2:0;return ls(e,t,n,r,o,i,s,!0)}function t0(e){return e?ld(e)||Bv(e)?Ht({},e):e:null}function Sn(e,t,n=!1,r=!1){const{props:o,ref:s,patchFlag:i,children:a,transition:l}=e,u=t?r0(o||{},t):o,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&e0(u),ref:t&&t.ref?n&&s?_e(s)?s.concat(Da(t)):[s,Da(t)]:Da(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==je?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Sn(e.ssContent),ssFallback:e.ssFallback&&Sn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Pr(c,l.clone(c)),c}function n0(e=" ",t=0){return P(tr,null,e,t)}function V5(e,t){const n=P(as,null,e);return n.staticCount=t,n}function QE(e="",t=!1){return t?(Yt(),Xn(qe,null,e)):P(qe,null,e)}function Xt(e){return e==null||typeof e=="boolean"?P(qe):_e(e)?P(je,null,e.slice()):en(e)?br(e):P(tr,null,String(e))}function br(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Sn(e)}function Ed(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(_e(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),Ed(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Bv(t)?t._ctx=ct:o===3&&ct&&(ct.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ve(t)?(t={default:t,_ctx:ct},n=32):(t=String(t),r&64?(n=16,t=[n0(t)]):n=8);e.children=t,e.shapeFlag|=n}function r0(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const o in r)if(o==="class")t.class!==r.class&&(t.class=Kl([t.class,r.class]));else if(o==="style")t.style=Gl([t.style,r.style]);else if(Wl(o)){const s=t[o],i=r[o];i&&s!==i&&!(_e(s)&&s.includes(i))&&(t[o]=s?[].concat(s,i):i)}else o!==""&&(t[o]=r[o])}return t}function jt(e,t,n,r=null){wn(e,t,7,[n,r])}const ZE=jv();let eT=0;function tT(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||ZE,s={uid:eT++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Uy(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Fv(r,o),emitsOptions:Jv(r,o),emit:null,emitted:null,propsDefaults:Le,inheritAttrs:r.inheritAttrs,ctx:Le,data:Le,props:Le,attrs:Le,slots:Le,refs:Le,setupState:Le,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 s.ctx={_:s},s.root=t?t.root:s,s.emit=UE.bind(null,s),e.ce&&e.ce(s),s}let lt=null;const Nt=()=>lt||ct;let pl,Wu;{const e=ql(),t=(n,r)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(r),s=>{o.length>1?o.forEach(i=>i(s)):o[0](s)}};pl=t("__VUE_INSTANCE_SETTERS__",n=>lt=n),Wu=t("__VUE_SSR_SETTERS__",n=>gs=n)}const ho=e=>{const t=lt;return pl(e),e.scope.on(),()=>{e.scope.off(),pl(t)}},zu=()=>{lt&<.scope.off(),pl(null)};function o0(e){return e.vnode.shapeFlag&4}let gs=!1;function nT(e,t=!1,n=!1){t&&Wu(t);const{props:r,children:o}=e.vnode,s=o0(e);OE(e,r,s,t),RE(e,o,n||t);const i=s?rT(e,t):void 0;return t&&Wu(!1),i}function rT(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,bE);const{setup:r}=n;if(r){rr();const o=e.setupContext=r.length>1?i0(e):null,s=ho(e),i=Ki(r,e,0,[e.props,o]),a=fd(i);if(or(),s(),(a||e.sp)&&!Ar(e)&&gd(e),a){if(i.then(zu,zu),t)return i.then(l=>{Vu(e,l)}).catch(l=>{Rs(l,e,0)});e.asyncDep=i}else Vu(e,i)}else s0(e)}function Vu(e,t,n){ve(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:dt(t)&&(e.setupState=rv(t)),s0(e)}function s0(e,t,n){const r=e.type;e.render||(e.render=r.render||er);{const o=ho(e);rr();try{_E(e)}finally{or(),o()}}}const oT={get(e,t){return Tt(e,"get",""),e[t]}};function i0(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,oT),slots:e.slots,emit:e.emit,expose:t}}function Ql(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(rv(cd(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ci)return ci[n](e)},has(t,n){return n in t||n in ci}})):e.proxy}function qu(e,t=!0){return ve(e)?e.displayName||e.name:e.name||t&&e.__name}function sT(e){return ve(e)&&"__vccOpts"in e}const R=(e,t)=>NC(e,t,gs);function ut(e,t,n){const r=arguments.length;return r===2?dt(t)&&!_e(t)?en(t)?P(e,null,[t]):P(e,t):P(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&en(n)&&(n=[n]),P(e,t,n))}const iT="3.5.14";function aT(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const lT=()=>{},cT=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),uT=e=>e.startsWith("onUpdate:"),Zl=Object.assign,ir=Array.isArray,a0=e=>c0(e)==="[object Set]",Gh=e=>c0(e)==="[object Date]",l0=e=>typeof e=="function",ms=e=>typeof e=="string",Gu=e=>typeof e=="symbol",Ku=e=>e!==null&&typeof e=="object",fT=Object.prototype.toString,c0=e=>fT.call(e),Td=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},dT=/-(\w)/g,hT=Td(e=>e.replace(dT,(t,n)=>n?n.toUpperCase():"")),pT=/\B([A-Z])/g,xd=Td(e=>e.replace(pT,"-$1").toLowerCase()),gT=Td(e=>e.charAt(0).toUpperCase()+e.slice(1)),mT=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Kh=e=>{const t=parseFloat(e);return isNaN(t)?e:t},yT=e=>{const t=ms(e)?Number(e):NaN;return isNaN(t)?e:t},vT="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",bT=aT(vT);function u0(e){return!!e||e===""}function _T(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=ec(e[r],t[r]);return n}function ec(e,t){if(e===t)return!0;let n=Gh(e),r=Gh(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Gu(e),r=Gu(t),n||r)return e===t;if(n=ir(e),r=ir(t),n||r)return n&&r?_T(e,t):!1;if(n=Ku(e),r=Ku(t),n||r){if(!n||!r)return!1;const o=Object.keys(e).length,s=Object.keys(t).length;if(o!==s)return!1;for(const i in e){const a=e.hasOwnProperty(i),l=t.hasOwnProperty(i);if(a&&!l||!a&&l||!ec(e[i],t[i]))return!1}}return String(e)===String(t)}function f0(e,t){return e.findIndex(n=>ec(n,t))}let Ju;const Jh=typeof window<"u"&&window.trustedTypes;if(Jh)try{Ju=Jh.createPolicy("vue",{createHTML:e=>e})}catch{}const d0=Ju?e=>Ju.createHTML(e):e=>e,wT="http://www.w3.org/2000/svg",ST="http://www.w3.org/1998/Math/MathML",Vn=typeof document<"u"?document:null,Yh=Vn&&Vn.createElement("template"),CT={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 o=t==="svg"?Vn.createElementNS(wT,e):t==="mathml"?Vn.createElementNS(ST,e):n?Vn.createElement(e,{is:n}):Vn.createElement(e);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>Vn.createTextNode(e),createComment:e=>Vn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Vn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,s){const i=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===s||!(o=o.nextSibling)););else{Yh.innerHTML=d0(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=Yh.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},hr="transition",zs="animation",ys=Symbol("_vtc"),h0={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},p0=Zl({},wv,h0),ET=e=>(e.displayName="Transition",e.props=p0,e),Yi=ET((e,{slots:t})=>ut(sE,g0(e),t)),Lr=(e,t=[])=>{ir(e)?e.forEach(n=>n(...t)):e&&e(...t)},Xh=e=>e?ir(e)?e.some(t=>t.length>1):e.length>1:!1;function g0(e){const t={};for(const k in e)k in h0||(t[k]=e[k]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:s=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:u=i,appearToClass:c=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,p=TT(o),g=p&&p[0],y=p&&p[1],{onBeforeEnter:b,onEnter:v,onEnterCancelled:m,onLeave:_,onLeaveCancelled:S,onBeforeAppear:E=b,onAppear:w=v,onAppearCancelled:A=m}=t,O=(k,F,G,$)=>{k._enterCancelled=$,gr(k,F?c:a),gr(k,F?u:i),G&&G()},L=(k,F)=>{k._isLeaving=!1,gr(k,f),gr(k,h),gr(k,d),F&&F()},N=k=>(F,G)=>{const $=k?w:v,I=()=>O(F,k,G);Lr($,[F,I]),Qh(()=>{gr(F,k?l:s),An(F,k?c:a),Xh($)||Zh(F,r,g,I)})};return Zl(t,{onBeforeEnter(k){Lr(b,[k]),An(k,s),An(k,i)},onBeforeAppear(k){Lr(E,[k]),An(k,l),An(k,u)},onEnter:N(!1),onAppear:N(!0),onLeave(k,F){k._isLeaving=!0;const G=()=>L(k,F);An(k,f),k._enterCancelled?(An(k,d),Yu()):(Yu(),An(k,d)),Qh(()=>{k._isLeaving&&(gr(k,f),An(k,h),Xh(_)||Zh(k,r,y,G))}),Lr(_,[k,G])},onEnterCancelled(k){O(k,!1,void 0,!0),Lr(m,[k])},onAppearCancelled(k){O(k,!0,void 0,!0),Lr(A,[k])},onLeaveCancelled(k){L(k),Lr(S,[k])}})}function TT(e){if(e==null)return null;if(Ku(e))return[Hc(e.enter),Hc(e.leave)];{const t=Hc(e);return[t,t]}}function Hc(e){return yT(e)}function An(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[ys]||(e[ys]=new Set)).add(t)}function gr(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[ys];n&&(n.delete(t),n.size||(e[ys]=void 0))}function Qh(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let xT=0;function Zh(e,t,n,r){const o=e._endId=++xT,s=()=>{o===e._endId&&r()};if(n!=null)return setTimeout(s,n);const{type:i,timeout:a,propCount:l}=m0(e,t);if(!i)return r();const u=i+"end";let c=0;const f=()=>{e.removeEventListener(u,d),s()},d=h=>{h.target===e&&++c>=l&&f()};setTimeout(()=>{c<l&&f()},a+1),e.addEventListener(u,d)}function m0(e,t){const n=window.getComputedStyle(e),r=p=>(n[p]||"").split(", "),o=r(`${hr}Delay`),s=r(`${hr}Duration`),i=ep(o,s),a=r(`${zs}Delay`),l=r(`${zs}Duration`),u=ep(a,l);let c=null,f=0,d=0;t===hr?i>0&&(c=hr,f=i,d=s.length):t===zs?u>0&&(c=zs,f=u,d=l.length):(f=Math.max(i,u),c=f>0?i>u?hr:zs:null,d=c?c===hr?s.length:l.length:0);const h=c===hr&&/\b(transform|all)(,|$)/.test(r(`${hr}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:h}}function ep(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>tp(n)+tp(e[r])))}function tp(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Yu(){return document.body.offsetHeight}function OT(e,t,n){const r=e[ys];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const gl=Symbol("_vod"),y0=Symbol("_vsh"),v0={beforeMount(e,{value:t},{transition:n}){e[gl]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Vs(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),Vs(e,!0),r.enter(e)):r.leave(e,()=>{Vs(e,!1)}):Vs(e,t))},beforeUnmount(e,{value:t}){Vs(e,t)}};function Vs(e,t){e.style.display=t?e[gl]:"none",e[y0]=!t}const b0=Symbol("");function q5(e){const t=Nt();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(s=>ml(s,o))},r=()=>{const o=e(t.proxy);t.ce?ml(t.ce,o):Xu(t.subTree,o),n(o)};Pv(()=>{al(r)}),St(()=>{Se(r,lT,{flush:"post"});const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),Is(()=>o.disconnect())})}function Xu(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Xu(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)ml(e.el,t);else if(e.type===je)e.children.forEach(n=>Xu(n,t));else if(e.type===as){let{el:n,anchor:r}=e;for(;n&&(ml(n,t),n!==r);)n=n.nextSibling}}function ml(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const o in t)n.setProperty(`--${o}`,t[o]),r+=`--${o}: ${t[o]};`;n[b0]=r}}const AT=/(^|;)\s*display\s*:/;function PT(e,t,n){const r=e.style,o=ms(n);let s=!1;if(n&&!o){if(t)if(ms(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&Ba(r,a,"")}else for(const i in t)n[i]==null&&Ba(r,i,"");for(const i in n)i==="display"&&(s=!0),Ba(r,i,n[i])}else if(o){if(t!==n){const i=r[b0];i&&(n+=";"+i),r.cssText=n,s=AT.test(n)}}else t&&e.removeAttribute("style");gl in e&&(e[gl]=s?r.display:"",e[y0]&&(r.display="none"))}const np=/\s*!important$/;function Ba(e,t,n){if(ir(n))n.forEach(r=>Ba(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=$T(e,t);np.test(n)?e.setProperty(xd(r),n.replace(np,""),"important"):e[r]=n}}const rp=["Webkit","Moz","ms"],Wc={};function $T(e,t){const n=Wc[t];if(n)return n;let r=_n(t);if(r!=="filter"&&r in e)return Wc[t]=r;r=gT(r);for(let o=0;o<rp.length;o++){const s=rp[o]+r;if(s in e)return Wc[t]=s}return t}const op="http://www.w3.org/1999/xlink";function sp(e,t,n,r,o,s=bT(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(op,t.slice(6,t.length)):e.setAttributeNS(op,t,n):n==null||s&&!u0(n)?e.removeAttribute(t):e.setAttribute(t,s?"":Gu(n)?String(n):n)}function ip(e,t,n,r,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?d0(n):n);return}const s=e.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){const a=s==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=u0(n):n==null&&a==="string"?(n="",i=!0):a==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(o||t)}function zr(e,t,n,r){e.addEventListener(t,n,r)}function RT(e,t,n,r){e.removeEventListener(t,n,r)}const ap=Symbol("_vei");function kT(e,t,n,r,o=null){const s=e[ap]||(e[ap]={}),i=s[t];if(r&&i)i.value=r;else{const[a,l]=IT(t);if(r){const u=s[t]=jT(r,o);zr(e,a,u,l)}else i&&(RT(e,a,i,l),s[t]=void 0)}}const lp=/(?:Once|Passive|Capture)$/;function IT(e){let t;if(lp.test(e)){t={};let r;for(;r=e.match(lp);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):xd(e.slice(2)),t]}let zc=0;const NT=Promise.resolve(),LT=()=>zc||(NT.then(()=>zc=0),zc=Date.now());function jT(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;wn(MT(r,n.value),t,5,[r])};return n.value=e,n.attached=LT(),n}function MT(e,t){if(ir(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const cp=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,DT=(e,t,n,r,o,s)=>{const i=o==="svg";t==="class"?OT(e,r,i):t==="style"?PT(e,n,r):cT(t)?uT(t)||kT(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):BT(e,t,r,i))?(ip(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&sp(e,t,r,i,s,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ms(r))?ip(e,hT(t),r,s,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),sp(e,t,r,i))};function BT(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&cp(t)&&l0(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return cp(t)&&ms(n)?!1:t in e}const _0=new WeakMap,w0=new WeakMap,yl=Symbol("_moveCb"),up=Symbol("_enterCb"),UT=e=>(delete e.props.mode,e),FT=UT({name:"TransitionGroup",props:Zl({},p0,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Nt(),r=_v();let o,s;return ks(()=>{if(!o.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!VT(o[0].el,n.vnode.el,i)){o=[];return}o.forEach(HT),o.forEach(WT);const a=o.filter(zT);Yu(),a.forEach(l=>{const u=l.el,c=u.style;An(u,i),c.transform=c.webkitTransform=c.transitionDuration="";const f=u[yl]=d=>{d&&d.target!==u||(!d||/transform$/.test(d.propertyName))&&(u.removeEventListener("transitionend",f),u[yl]=null,gr(u,i))};u.addEventListener("transitionend",f)}),o=[]}),()=>{const i=Ce(e),a=g0(i);let l=i.tag||je;if(o=[],s)for(let u=0;u<s.length;u++){const c=s[u];c.el&&c.el instanceof Element&&(o.push(c),Pr(c,Oi(c,a,r,n)),_0.set(c,c.el.getBoundingClientRect()))}s=t.default?pd(t.default()):[];for(let u=0;u<s.length;u++){const c=s[u];c.key!=null&&Pr(c,Oi(c,a,r,n))}return P(l,null,s)}}}),S0=FT;function HT(e){const t=e.el;t[yl]&&t[yl](),t[up]&&t[up]()}function WT(e){w0.set(e,e.el.getBoundingClientRect())}function zT(e){const t=_0.get(e),n=w0.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const s=e.el.style;return s.transform=s.webkitTransform=`translate(${r}px,${o}px)`,s.transitionDuration="0s",e}}function VT(e,t,n){const r=e.cloneNode(),o=e[ys];o&&o.forEach(a=>{a.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const s=t.nodeType===1?t:t.parentNode;s.appendChild(r);const{hasTransform:i}=m0(r);return s.removeChild(r),i}const vl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ir(t)?n=>mT(t,n):t};function qT(e){e.target.composing=!0}function fp(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const cs=Symbol("_assign"),G5={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[cs]=vl(o);const s=r||o.props&&o.props.type==="number";zr(e,t?"change":"input",i=>{if(i.target.composing)return;let a=e.value;n&&(a=a.trim()),s&&(a=Kh(a)),e[cs](a)}),n&&zr(e,"change",()=>{e.value=e.value.trim()}),t||(zr(e,"compositionstart",qT),zr(e,"compositionend",fp),zr(e,"change",fp))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:o,number:s}},i){if(e[cs]=vl(i),e.composing)return;const a=(s||e.type==="number")&&!/^0\d/.test(e.value)?Kh(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||o&&e.value.trim()===l)||(e.value=l))}},K5={deep:!0,created(e,t,n){e[cs]=vl(n),zr(e,"change",()=>{const r=e._modelValue,o=GT(e),s=e.checked,i=e[cs];if(ir(r)){const a=f0(r,o),l=a!==-1;if(s&&!l)i(r.concat(o));else if(!s&&l){const u=[...r];u.splice(a,1),i(u)}}else if(a0(r)){const a=new Set(r);s?a.add(o):a.delete(o),i(a)}else i(C0(e,s))})},mounted:dp,beforeUpdate(e,t,n){e[cs]=vl(n),dp(e,t,n)}};function dp(e,{value:t,oldValue:n},r){e._modelValue=t;let o;if(ir(t))o=f0(t,r.props.value)>-1;else if(a0(t))o=t.has(r.props.value);else{if(t===n)return;o=ec(t,C0(e,!0))}e.checked!==o&&(e.checked=o)}function GT(e){return"_value"in e?e._value:e.value}function C0(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const KT=["ctrl","shift","alt","meta"],JT={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)=>KT.some(n=>e[`${n}Key`]&&!t.includes(n))},J5=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(o,...s)=>{for(let i=0;i<t.length;i++){const a=JT[t[i]];if(a&&a(o,t))return}return e(o,...s)})},YT={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Y5=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=o=>{if(!("key"in o))return;const s=xd(o.key);if(t.some(i=>i===s||YT[i]===s))return e(o)})},E0=Zl({patchProp:DT},CT);let fi,hp=!1;function T0(){return fi||(fi=IE(E0))}function XT(){return fi=hp?fi:NE(E0),hp=!0,fi}const po=(...e)=>{T0().render(...e)},QT=(...e)=>{const t=T0().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=O0(r);if(!o)return;const s=t._component;!l0(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const i=n(o,!1,x0(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t},ZT=(...e)=>{const t=XT().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=O0(r);if(o)return n(o,!0,x0(o))},t};function x0(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function O0(e){return ms(e)?document.querySelector(e):e}const ex=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,tx=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,nx=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function rx(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){ox(e);return}return t}function ox(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function bl(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!nx.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(ex.test(e)||tx.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,rx)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const sx=/#/g,ix=/&/g,ax=/\//g,lx=/=/g,Od=/\+/g,cx=/%5e/gi,ux=/%60/gi,fx=/%7c/gi,dx=/%20/gi,hx=/%2f/gi;function px(e){return encodeURI(""+e).replace(fx,"|")}function Qu(e){return px(typeof e=="string"?e:JSON.stringify(e)).replace(Od,"%2B").replace(dx,"+").replace(sx,"%23").replace(ix,"%26").replace(ux,"`").replace(cx,"^").replace(ax,"%2F")}function Vc(e){return Qu(e).replace(lx,"%3D")}function $i(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function pp(e){return $i(e.replace(hx,"%252F"))}function gx(e){return $i(e.replace(Od," "))}function mx(e){return $i(e.replace(Od," "))}function A0(e=""){const t=Object.create(null);e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const o=gx(r[1]);if(o==="__proto__"||o==="constructor")continue;const s=mx(r[2]||"");t[o]===void 0?t[o]=s:Array.isArray(t[o])?t[o].push(s):t[o]=[t[o],s]}return t}function yx(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${Vc(e)}=${Qu(n)}`).join("&"):`${Vc(e)}=${Qu(t)}`:Vc(e)}function vx(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>yx(t,e[t])).filter(Boolean).join("&")}const bx=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,P0=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,_x=/^([/\\]\s*){2,}[^/\\]/,wx=/^[\s\0]*(blob|data|javascript|vbscript):$/i,Sx=/\/$|\/\?|\/#/,Cx=/^\.?\//;function Co(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?bx.test(e):P0.test(e)||(t.acceptRelative?_x.test(e):!1)}function Ex(e){return!!e&&wx.test(e)}function Zu(e="",t){return t?Sx.test(e):e.endsWith("/")}function _l(e="",t){if(!t)return(Zu(e)?e.slice(0,-1):e)||"/";if(!Zu(e,!0))return e||"/";let n=e,r="";const o=e.indexOf("#");o!==-1&&(n=e.slice(0,o),r=e.slice(o));const[s,...i]=n.split("?");return((s.endsWith("/")?s.slice(0,-1):s)||"/")+(i.length>0?`?${i.join("?")}`:"")+r}function Tx(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(Zu(e,!0))return e||"/";let n=e,r="";const o=e.indexOf("#");if(o!==-1&&(n=e.slice(0,o),r=e.slice(o),!n))return r;const[s,...i]=n.split("?");return s+"/"+(i.length>0?`?${i.join("?")}`:"")+r}function xx(e,t){if(R0(t)||Co(e))return e;const n=_l(t);if(e.startsWith(n)){const r=e[n.length];if(!r||r==="/"||r==="?")return e}return k0(n,e)}function gp(e,t){if(R0(t))return e;const n=_l(t);if(!e.startsWith(n))return e;const r=e[n.length];if(r&&r!=="/"&&r!=="?")return e;const o=e.slice(n.length);return o[0]==="/"?o:"/"+o}function $0(e,t){const n=L0(e),r={...A0(n.search),...t};return n.search=vx(r),Rx(n)}function R0(e){return!e||e==="/"}function Ox(e){return e&&e!=="/"}function k0(e,...t){let n=e||"";for(const r of t.filter(o=>Ox(o)))if(n){const o=r.replace(Cx,"");n=Tx(n)+o}else n=r;return n}function I0(...e){const t=/\/(?!\/)/,n=e.filter(Boolean),r=[];let o=0;for(const i of n)if(!(!i||i==="/")){for(const[a,l]of i.split(t).entries())if(!(!l||l===".")){if(l===".."){if(r.length===1&&Co(r[0]))continue;r.pop(),o--;continue}if(a===1&&r[r.length-1]?.endsWith(":/")){r[r.length-1]+="/"+l;continue}r.push(l),o++}}let s=r.join("/");return o>=0?n[0]?.startsWith("/")&&!s.startsWith("/")?s="/"+s:n[0]?.startsWith("./")&&!s.startsWith("./")&&(s="./"+s):s="../".repeat(-1*o)+s,n[n.length-1]?.endsWith("/")&&!s.endsWith("/")&&(s+="/"),s}function Ax(e){return Px(e,"https://")}function Px(e,t){let n=e.match(P0);return n||(n=e.match(/^\/{2,}/)),n?t+e.slice(n[0].length):t+e}function $x(e,t){return $i(_l(e))===$i(_l(t))}const N0=Symbol.for("ufo:protocolRelative");function L0(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,f,d=""]=n;return{protocol:f.toLowerCase(),pathname:d,href:f+d,auth:"",host:"",search:"",hash:""}}if(!Co(e,{acceptRelative:!0}))return mp(e);const[,r="",o,s=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,i="",a=""]=s.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:u,hash:c}=mp(a);return{protocol:r.toLowerCase(),auth:o?o.slice(0,Math.max(0,o.length-1)):"",host:i,pathname:l,search:u,hash:c,[N0]:!r}}function mp(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function Rx(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",o=e.auth?e.auth+"@":"",s=e.host||"";return(e.protocol||e[N0]?(e.protocol||"")+"//":"")+o+s+t+n+r}class kx extends Error{constructor(t,n){super(t,n),this.name="FetchError",n?.cause&&!this.cause&&(this.cause=n.cause)}}function Ix(e){const t=e.error?.message||e.error?.toString()||"",n=e.request?.method||e.options?.method||"GET",r=e.request?.url||String(e.request)||"/",o=`[${n}] ${JSON.stringify(r)}`,s=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",i=`${o}: ${s}${t?` ${t}`:""}`,a=new kx(i,e.error?{cause:e.error}:void 0);for(const l of["request","options","response"])Object.defineProperty(a,l,{get(){return e[l]}});for(const[l,u]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,l,{get(){return e.response&&e.response[u]}});return a}const Nx=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function yp(e="GET"){return Nx.has(e.toUpperCase())}function Lx(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer||e instanceof FormData||e instanceof URLSearchParams?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const jx=new Set(["image/svg","application/xml","application/xhtml","application/html"]),Mx=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Dx(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return Mx.test(t)?"json":t==="text/event-stream"?"stream":jx.has(t)||t.startsWith("text/")?"text":"blob"}function Bx(e,t,n,r){const o=Ux(t?.headers??e?.headers,n?.headers,r);let s;return(n?.query||n?.params||t?.params||t?.query)&&(s={...n?.params,...n?.query,...t?.params,...t?.query}),{...n,...t,query:s,params:s,headers:o}}function Ux(e,t,n){if(!t)return new n(e);const r=new n(t);if(e)for(const[o,s]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))r.set(o,s);return r}async function va(e,t){if(t)if(Array.isArray(t))for(const n of t)await n(e);else await t(e)}const Fx=new Set([408,409,425,429,500,502,503,504]),Hx=new Set([101,204,205,304]);function j0(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function o(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let c;typeof a.options.retry=="number"?c=a.options.retry:c=yp(a.options.method)?0:1;const f=a.response&&a.response.status||500;if(c>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(f):Fx.has(f))){const d=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return d>0&&await new Promise(h=>setTimeout(h,d)),s(a.request,{...a.options,retry:c-1})}}const u=Ix(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,s),u}const s=async function(l,u={}){const c={request:l,options:Bx(l,u,e.defaults,n),response:void 0,error:void 0};if(c.options.method&&(c.options.method=c.options.method.toUpperCase()),c.options.onRequest&&(await va(c,c.options.onRequest),c.options.headers instanceof n||(c.options.headers=new n(c.options.headers||{}))),typeof c.request=="string"&&(c.options.baseURL&&(c.request=xx(c.request,c.options.baseURL)),c.options.query&&(c.request=$0(c.request,c.options.query),delete c.options.query),"query"in c.options&&delete c.options.query,"params"in c.options&&delete c.options.params),c.options.body&&yp(c.options.method))if(Lx(c.options.body)){const h=c.options.headers.get("content-type");typeof c.options.body!="string"&&(c.options.body=h==="application/x-www-form-urlencoded"?new URLSearchParams(c.options.body).toString():JSON.stringify(c.options.body)),h||c.options.headers.set("content-type","application/json"),c.options.headers.has("accept")||c.options.headers.set("accept","application/json")}else("pipeTo"in c.options.body&&typeof c.options.body.pipeTo=="function"||typeof c.options.body.pipe=="function")&&("duplex"in c.options||(c.options.duplex="half"));let f;if(!c.options.signal&&c.options.timeout){const h=new r;f=setTimeout(()=>{const p=new Error("[TimeoutError]: The operation was aborted due to timeout");p.name="TimeoutError",p.code=23,h.abort(p)},c.options.timeout),c.options.signal=h.signal}try{c.response=await t(c.request,c.options)}catch(h){return c.error=h,c.options.onRequestError&&await va(c,c.options.onRequestError),await o(c)}finally{f&&clearTimeout(f)}if((c.response.body||c.response._bodyInit)&&!Hx.has(c.response.status)&&c.options.method!=="HEAD"){const h=(c.options.parseResponse?"json":c.options.responseType)||Dx(c.response.headers.get("content-type")||"");switch(h){case"json":{const p=await c.response.text(),g=c.options.parseResponse||bl;c.response._data=g(p);break}case"stream":{c.response._data=c.response.body||c.response._bodyInit;break}default:c.response._data=await c.response[h]()}}return c.options.onResponse&&await va(c,c.options.onResponse),!c.options.ignoreResponseError&&c.response.status>=400&&c.response.status<600?(c.options.onResponseError&&await va(c,c.options.onResponseError),await o(c)):c.response},i=async function(l,u){return(await s(l,u))._data};return i.raw=s,i.native=(...a)=>t(...a),i.create=(a={},l={})=>j0({...e,...l,defaults:{...e.defaults,...l.defaults,...a}}),i}const wl=(function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")})(),Wx=wl.fetch?(...e)=>wl.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),zx=wl.Headers,Vx=wl.AbortController,qx=j0({fetch:Wx,Headers:zx,AbortController:Vx}),Gx=qx,Kx=()=>window?.__NUXT__?.config||window?.useNuxtApp?.().payload?.config,Ad=()=>Kx().app,Jx=()=>Ad().baseURL,Yx=()=>Ad().buildAssetsDir,Pd=(...e)=>I0(M0(),Yx(),...e),M0=(...e)=>{const t=Ad(),n=t.cdnURL||t.baseURL;return e.length?I0(n,...e):n};globalThis.__buildAssetsURL=Pd,globalThis.__publicAssetsURL=M0;globalThis.$fetch||(globalThis.$fetch=Gx.create({baseURL:Jx()}));"global"in globalThis||(globalThis.global=globalThis);function ef(e,t={},n){for(const r in e){const o=e[r],s=n?`${n}:${r}`:r;typeof o=="object"&&o!==null?ef(o,t,s):typeof o=="function"&&(t[s]=o)}return t}const Xx={run:e=>e()},Qx=()=>Xx,D0=typeof console.createTask<"u"?console.createTask:Qx;function Zx(e,t){const n=t.shift(),r=D0(n);return e.reduce((o,s)=>o.then(()=>r.run(()=>s(...t))),Promise.resolve())}function e1(e,t){const n=t.shift(),r=D0(n);return Promise.all(e.map(o=>r.run(()=>o(...t))))}function qc(e,t){for(const n of[...e])n(t)}let t1=class{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const o=t;let s;for(;this._deprecatedHooks[t];)s=this._deprecatedHooks[t],t=s.to;if(s&&!r.allowDeprecated){let i=s.message;i||(i=`${o} hook has been deprecated`+(s.to?`, please use ${s.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,o=(...s)=>(typeof r=="function"&&r(),r=void 0,o=void 0,n(...s));return r=this.hook(t,o),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const o of r)this.hook(t,o)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=ef(t),r=Object.keys(n).map(o=>this.hook(o,n[o]));return()=>{for(const o of r.splice(0,r.length))o()}}removeHooks(t){const n=ef(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(Zx,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(e1,t,...n)}callHookWith(t,n,...r){const o=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&qc(this._before,o);const s=t(n in this._hooks?[...this._hooks[n]]:[],r);return s instanceof Promise?s.finally(()=>{this._after&&o&&qc(this._after,o)}):(this._after&&o&&qc(this._after,o),s)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}};function n1(){return new t1}function r1(e={}){let t,n=!1;const r=i=>{if(t&&t!==i)throw new Error("Context conflict")};let o;if(e.asyncContext){const i=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;i?o=new i:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const s=()=>{if(o){const i=o.getStore();if(i!==void 0)return i}return t};return{use:()=>{const i=s();if(i===void 0)throw new Error("Context is not available");return i},tryUse:()=>s(),set:(i,a)=>{a||r(i),t=i,n=!0},unset:()=>{t=void 0,n=!1},call:(i,a)=>{r(i),t=i;try{return o?o.run(i,a):a()}finally{n||(t=void 0)}},async callAsync(i,a){t=i;const l=()=>{t=i},u=()=>t===i?l:void 0;tf.add(u);try{const c=o?o.run(i,a):a();return n||(t=void 0),await c}finally{tf.delete(u)}}}}function o1(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=r1({...e,...r})),t[n]}}}const Sl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},vp="__unctx__",s1=Sl[vp]||(Sl[vp]=o1()),i1=(e,t={})=>s1.get(e,t),bp="__unctx_async_handlers__",tf=Sl[bp]||(Sl[bp]=new Set);function oo(e){const t=[];for(const o of tf){const s=o();s&&t.push(s)}const n=()=>{for(const o of t)o()};let r=e();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(o=>{throw n(),o})),[r,n]}const a1=!1,_p=!1,l1=!1,wp={id:"__nuxt-loader"},Q5={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},Z5={deep:!1},c1="#__nuxt",B0="nuxt-app",Sp=36e5,u1="vite:preloadError";function U0(e=B0){return i1(e,{asyncContext:!1})}const f1="__nuxt_plugin";function d1(e){let t=0;const n={_id:e.id||B0||"nuxt-app",_scope:td(),provide:void 0,versions:{get nuxt(){return"4.3.0"},get vue(){return n.vueApp.version}},payload:Ln({...e.ssrContext?.payload||{},data:Ln({}),state:ot({}),once:new Set,_errors:Ln({})}),static:{data:{}},runWithContext(o){return n._scope.active&&!Bl()?n._scope.run(()=>Cp(n,o)):Cp(n,o)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let o=!1;return()=>{if(!o&&(o=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:Ln({}),_payloadRevivers:{},...e};{const o=window.__NUXT__;if(o)for(const s in o)switch(s){case"data":case"state":case"_errors":Object.assign(n.payload[s],o[s]);break;default:n.payload[s]=o[s]}}n.hooks=n1(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(o,s)=>{const i="$"+o;ba(n,i,s),ba(n.vueApp.config.globalProperties,i,s)},ba(n.vueApp,"$nuxt",n),ba(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(u1,s=>{n.callHook("app:chunkError",{error:s.payload}),s.payload.message.includes("Unable to preload CSS")&&s.preventDefault()}),window.useNuxtApp||=Ye;const o=n.hook("app:error",(...s)=>{console.error("[nuxt] error caught during app initialization",...s)});n.hook("app:mounted",o)}const r=n.payload.config;return n.provide("config",r),n}function h1(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function p1(e,t){if(typeof t=="function"){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n=="object")for(const r in n)e.provide(r,n[r])}}async function g1(e,t){const n=new Set,r=[],o=[];let s,i=0;async function a(l){const u=l.dependsOn?.filter(c=>t.some(f=>f._name===c)&&!n.has(c))??[];if(u.length>0)r.push([new Set(u),l]);else{const c=p1(e,l).then(async()=>{l._name&&(n.add(l._name),await Promise.all(r.map(async([f,d])=>{f.has(l._name)&&(f.delete(l._name),f.size===0&&(i++,await a(d)))})))}).catch(f=>{if(!l.parallel&&!e.payload.error)throw f;s||=f});l.parallel?o.push(c):await c}}for(const l of t)h1(e,l);for(const l of t)await a(l);if(await Promise.all(o),i)for(let l=0;l<i;l++)await Promise.all(o);if(s)throw e.payload.error||s}function De(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[f1]:!0,_name:t})}const m1=De;function Cp(e,t,n){const r=()=>t();return U0(e._id).set(e),e.vueApp.runWithContext(r)}function y1(e){let t;return So()&&(t=Nt()?.appContext.app.$nuxt),t||=U0(e).tryUse(),t||null}function Ye(e){const t=y1(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function tc(e){return Ye().$config}function ba(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function Gc(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function nf(e,t,n=".",r){if(!Gc(t))return nf(e,{},n,r);const o=Object.assign({},t);for(const s in e){if(s==="__proto__"||s==="constructor")continue;const i=e[s];i!=null&&(r&&r(o,s,i,n)||(Array.isArray(i)&&Array.isArray(o[s])?o[s]=[...i,...o[s]]:Gc(i)&&Gc(o[s])?o[s]=nf(i,o[s],(n?`${n}.`:"")+s.toString(),r):o[s]=i))}return o}function v1(e){return(...t)=>t.reduce((n,r)=>nf(n,r,"",e),{})}const F0=v1();function b1(e,t){try{return t in e}catch{return!1}}class Ep extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(t,n={}){super(t,n),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const t={message:this.message,statusCode:rf(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=H0(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}function _1(e){if(typeof e=="string")return new Ep(e);if(w1(e))return e;const t=new Ep(e.message??e.statusMessage??"",{cause:e.cause||e});if(b1(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=rf(e.statusCode,t.statusCode):e.status&&(t.statusCode=rf(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;H0(t.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function w1(e){return e?.constructor?.__h3_error__===!0}const S1=/[^\u0009\u0020-\u007E]/g;function H0(e=""){return e.replace(S1,"")}function rf(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const W0=Symbol("layout-meta"),go=Symbol("route");import.meta.url.replace(/\/app\/.*$/,"/");const It=()=>Ye()?.$router,$d=()=>So()?Te(go,Ye()._route):Ye()._route;const C1=()=>{try{if(Ye()._processingMiddleware)return!0}catch{return!1}return!1},qs=(e,t)=>{e||="/";const n=typeof e=="string"?e:"path"in e?E1(e):It().resolve(e).href;if(t?.open){const{target:l="_blank",windowFeatures:u={}}=t.open,c=[];for(const[f,d]of Object.entries(u))d!==void 0&&c.push(`${f.toLowerCase()}=${d}`);return open(n,l,c.join(", ")),Promise.resolve()}const r=Co(n,{acceptRelative:!0}),o=t?.external||r;if(o){if(!t?.external)throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:l}=new URL(n,window.location.href);if(l&&Ex(l))throw new Error(`Cannot navigate to a URL with '${l}' protocol.`)}const s=C1();if(!o&&s){if(t?.replace){if(typeof e=="string"){const{pathname:l,search:u,hash:c}=L0(e);return{path:l,...u&&{query:A0(u)},...c&&{hash:c},replace:!0}}return{...e,replace:!0}}return e}const i=It(),a=Ye();return o?(a._scope.stop(),t?.replace?location.replace(n):location.href=n,s?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t?.replace?i.replace(e):i.push(e)};function E1(e){return $0(e.path||"",e.query||{})+(e.hash||"")}const z0="__nuxt_error",nc=()=>Hl(Ye().payload,"error"),Hr=e=>{const t=so(e);try{const n=nc();Ye().hooks.callHook("app:error",t),n.value||=t}catch{throw t}return t},T1=async(e={})=>{const t=Ye(),n=nc();t.callHook("app:error:cleared",e),e.redirect&&await It().replace(e.redirect),n.value=void 0},V0=e=>!!e&&typeof e=="object"&&z0 in e,so=e=>{typeof e!="string"&&e.statusText&&(e.message??=e.statusText);const t=_1(e);return Object.defineProperty(t,z0,{value:!0,configurable:!1,writable:!1}),t};let q0;const vs=e=>q0=e,G0=Symbol();function of(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var di;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(di||(di={}));function x1(){const e=td(!0),t=e.run(()=>te({}));let n=[],r=[];const o=cd({install(s){vs(o),o._a=s,s.provide(G0,o),s.config.globalProperties.$pinia=o,r.forEach(i=>n.push(i)),r=[]},use(s){return this._a?n.push(s):r.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const K0=()=>{};function Tp(e,t,n,r=K0){e.add(t);const o=()=>{e.delete(t)&&r()};return!n&&Bl()&&Fy(o),o}function Lo(e,...t){e.forEach(n=>{n(...t)})}const O1=e=>e(),xp=Symbol(),Kc=Symbol();function sf(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],o=e[n];of(o)&&of(r)&&e.hasOwnProperty(n)&&!Me(r)&&!jn(r)?e[n]=sf(o,r):e[n]=r}return e}const A1=Symbol();function P1(e){return!of(e)||!Object.prototype.hasOwnProperty.call(e,A1)}const{assign:mr}=Object;function $1(e){return!!(Me(e)&&e.effect)}function R1(e,t,n,r){const{state:o,actions:s,getters:i}=t,a=n.state.value[e];let l;function u(){a||(n.state.value[e]=o?o():{});const c=$C(n.state.value[e]);return mr(c,s,Object.keys(i||{}).reduce((f,d)=>(f[d]=cd(R(()=>{vs(n);const h=n._s.get(e);return i[d].call(h,h)})),f),{}))}return l=J0(e,u,t,n,r,!0),l}function J0(e,t,n={},r,o,s){let i;const a=mr({actions:{}},n),l={deep:!0};let u,c,f=new Set,d=new Set,h;const p=r.state.value[e];!s&&!p&&(r.state.value[e]={}),te({});let g;function y(A){let O;u=c=!1,typeof A=="function"?(A(r.state.value[e]),O={type:di.patchFunction,storeId:e,events:h}):(sf(r.state.value[e],A),O={type:di.patchObject,payload:A,storeId:e,events:h});const L=g=Symbol();kt().then(()=>{g===L&&(u=!0)}),c=!0,Lo(f,O,r.state.value[e])}const b=s?function(){const{state:O}=n,L=O?O():{};this.$patch(N=>{mr(N,L)})}:K0;function v(){i.stop(),f.clear(),d.clear(),r._s.delete(e)}const m=(A,O="")=>{if(xp in A)return A[Kc]=O,A;const L=function(){vs(r);const N=Array.from(arguments),k=new Set,F=new Set;function G(W){k.add(W)}function $(W){F.add(W)}Lo(d,{args:N,name:L[Kc],store:S,after:G,onError:$});let I;try{I=A.apply(this&&this.$id===e?this:S,N)}catch(W){throw Lo(F,W),W}return I instanceof Promise?I.then(W=>(Lo(k,W),W)).catch(W=>(Lo(F,W),Promise.reject(W))):(Lo(k,I),I)};return L[xp]=!0,L[Kc]=O,L},_={_p:r,$id:e,$onAction:Tp.bind(null,d),$patch:y,$reset:b,$subscribe(A,O={}){const L=Tp(f,A,O.detached,()=>N()),N=i.run(()=>Se(()=>r.state.value[e],k=>{(O.flush==="sync"?c:u)&&A({storeId:e,type:di.direct,events:h},k)},mr({},l,O)));return L},$dispose:v},S=ot(_);r._s.set(e,S);const w=(r._a&&r._a.runWithContext||O1)(()=>r._e.run(()=>(i=td()).run(()=>t({action:m}))));for(const A in w){const O=w[A];if(Me(O)&&!$1(O)||jn(O))s||(p&&P1(O)&&(Me(O)?O.value=p[A]:sf(O,p[A])),r.state.value[e][A]=O);else if(typeof O=="function"){const L=m(O,A);w[A]=L,a.actions[A]=O}}return mr(S,w),mr(Ce(S),w),Object.defineProperty(S,"$state",{get:()=>r.state.value[e],set:A=>{y(O=>{mr(O,A)})}}),r._p.forEach(A=>{mr(S,i.run(()=>A({store:S,app:r._a,pinia:r,options:a})))}),p&&s&&n.hydrate&&n.hydrate(S.$state,p),u=!0,c=!0,S}function Xi(e,t,n){let r;const o=typeof t=="function";r=o?n:t;function s(i,a){const l=So();return i=i||(l?Te(G0,null):null),i&&vs(i),i=q0,i._s.has(e)||(o?J0(e,t,r,i):R1(e,r,i)),i._s.get(e)}return s.$id=e,s}function e8(e){const t=Ce(e),n={};for(const r in t){const o=t[r];o.effect?n[r]=R({get:()=>e[r],set(s){e[r]=s}}):(Me(o)||jn(o))&&(n[r]=Hl(e,r))}return n}function k1(e){const t=N1(e),n=new ArrayBuffer(t.length),r=new DataView(n);for(let o=0;o<n.byteLength;o++)r.setUint8(o,t.charCodeAt(o));return n}const I1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function N1(e){e.length%4===0&&(e=e.replace(/==?$/,""));let t="",n=0,r=0;for(let o=0;o<e.length;o++)n<<=6,n|=I1.indexOf(e[o]),r+=6,r===24&&(t+=String.fromCharCode((n&16711680)>>16),t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255),n=r=0);return r===12?(n>>=4,t+=String.fromCharCode(n)):r===18&&(n>>=2,t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255)),t}const L1=-1,j1=-2,M1=-3,D1=-4,B1=-5,U1=-6;function F1(e,t){return H1(JSON.parse(e),t)}function H1(e,t){if(typeof e=="number")return s(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);let o=null;function s(i,a=!1){if(i===L1)return;if(i===M1)return NaN;if(i===D1)return 1/0;if(i===B1)return-1/0;if(i===U1)return-0;if(a||typeof i!="number")throw new Error("Invalid input");if(i in r)return r[i];const l=n[i];if(!l||typeof l!="object")r[i]=l;else if(Array.isArray(l))if(typeof l[0]=="string"){const u=l[0],c=t&&Object.hasOwn(t,u)?t[u]:void 0;if(c){let f=l[1];if(typeof f!="number"&&(f=n.push(l[1])-1),o??=new Set,o.has(f))throw new Error("Invalid circular reference");return o.add(f),r[i]=c(s(f)),o.delete(f),r[i]}switch(u){case"Date":r[i]=new Date(l[1]);break;case"Set":const f=new Set;r[i]=f;for(let p=1;p<l.length;p+=1)f.add(s(l[p]));break;case"Map":const d=new Map;r[i]=d;for(let p=1;p<l.length;p+=2)d.set(s(l[p]),s(l[p+1]));break;case"RegExp":r[i]=new RegExp(l[1],l[2]);break;case"Object":r[i]=Object(l[1]);break;case"BigInt":r[i]=BigInt(l[1]);break;case"null":const h=Object.create(null);r[i]=h;for(let p=1;p<l.length;p+=2)h[l[p]]=s(l[p+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{if(n[l[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");const p=globalThis[u],g=s(l[1]),y=new p(g);r[i]=l[2]!==void 0?y.subarray(l[2],l[3]):y;break}case"ArrayBuffer":{const p=l[1];if(typeof p!="string")throw new Error("Invalid ArrayBuffer encoding");const g=k1(p);r[i]=g;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{const p=u.slice(9);r[i]=Temporal[p].from(l[1]);break}case"URL":{const p=new URL(l[1]);r[i]=p;break}case"URLSearchParams":{const p=new URLSearchParams(l[1]);r[i]=p;break}default:throw new Error(`Unknown type ${u}`)}}else{const u=new Array(l.length);r[i]=u;for(let c=0;c<l.length;c+=1){const f=l[c];f!==j1&&(u[c]=s(f))}}else{const u={};r[i]=u;for(const c in l){if(c==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const f=l[c];u[c]=s(f)}}return r[i]}return s(0)}const W1=new Set(["link","style","script","noscript"]),z1=new Set(["title","titleTemplate","script","style","noscript"]),Op=new Set(["base","meta","link","style","script","noscript"]),V1=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),q1=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),G1=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),K1=new Set(["templateParams","htmlAttrs","bodyAttrs"]),J1=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]);function af(e,t={},n){for(const r in e){const o=e[r],s=n?`${n}:${r}`:r;typeof o=="object"&&o!==null?af(o,t,s):typeof o=="function"&&(t[s]=o)}return t}const Y0=(()=>{if(console.createTask)return console.createTask;const e={run:t=>t()};return()=>e})();function X0(e,t,n,r){for(let o=n;o<e.length;o+=1)try{const s=r?r.run(()=>e[o](...t)):e[o](...t);if(s instanceof Promise)return s.then(()=>X0(e,t,o+1,r))}catch(s){return Promise.reject(s)}}function Y1(e,t,n){if(e.length>0)return X0(e,t,0,Y0(n))}function X1(e,t,n){if(e.length>0){const r=Y0(n);return Promise.all(e.map(o=>r.run(()=>o(...t))))}}function Jc(e,t){for(const n of[...e])n(t)}var Q1=class{_hooks;_before;_after;_deprecatedHooks;_deprecatedMessages;constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,n={}){if(!e||typeof t!="function")return()=>{};const r=e;let o;for(;this._deprecatedHooks[e];)o=this._deprecatedHooks[e],e=o.to;if(o&&!n.allowDeprecated){let s=o.message;s||(s=`${r} hook has been deprecated`+(o.to?`, please use ${o.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(s)||(console.warn(s),this._deprecatedMessages.add(s))}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&(this.removeHook(e,t),t=void 0)}}hookOnce(e,t){let n,r=(...o)=>(typeof n=="function"&&n(),n=void 0,r=void 0,t(...o));return n=this.hook(e,r),n}removeHook(e,t){const n=this._hooks[e];if(n){const r=n.indexOf(t);r!==-1&&n.splice(r,1),n.length===0&&(this._hooks[e]=void 0)}}deprecateHook(e,t){this._deprecatedHooks[e]=typeof t=="string"?{to:t}:t;const n=this._hooks[e]||[];this._hooks[e]=void 0;for(const r of n)this.hook(e,r)}deprecateHooks(e){for(const t in e)this.deprecateHook(t,e[t])}addHooks(e){const t=af(e),n=Object.keys(t).map(r=>this.hook(r,t[r]));return()=>{for(const r of n)r();n.length=0}}removeHooks(e){const t=af(e);for(const n in t)this.removeHook(n,t[n])}removeAllHooks(){this._hooks={}}callHook(e,...t){return this.callHookWith(Y1,e,t)}callHookParallel(e,...t){return this.callHookWith(X1,e,t)}callHookWith(e,t,n){const r=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&Jc(this._before,r);const o=e(this._hooks[t]?[...this._hooks[t]]:[],n,t);return o instanceof Promise?o.finally(()=>{this._after&&r&&Jc(this._after,r)}):(this._after&&r&&Jc(this._after,r),o)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){const t=this._before.indexOf(e);t!==-1&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){const t=this._after.indexOf(e);t!==-1&&this._after.splice(t,1)}}}};function Z1(){return new Q1}const eO=["name","property","http-equiv"],tO=new Set(["viewport","description","keywords","robots"]);function Q0(e){const t=e.split(":");return t.length?J1.has(t[1]):!1}function lf(e){const{props:t,tag:n}=e;if(q1.has(n))return n;if(n==="link"&&t.rel==="canonical")return"canonical";if(t.charset)return"charset";if(e.tag==="meta"){for(const r of eO)if(t[r]!==void 0){const o=t[r],s=o&&typeof o=="string"&&o.includes(":"),i=o&&tO.has(o),l=!(s||i)&&e.key?`:key:${e.key}`:"";return`${n}:${o}${l}`}}if(e.key)return`${n}:key:${e.key}`;if(t.id)return`${n}:id:${t.id}`;if(z1.has(n)){const r=e.textContent||e.innerHTML;if(r)return`${n}:content:${r}`}}function Ap(e){const t=e._h||e._d;if(t)return t;const n=e.textContent||e.innerHTML;return n||`${e.tag}:${Object.entries(e.props).map(([r,o])=>`${r}:${String(o)}`).join(",")}`}function Cl(e,t,n){typeof e==="function"&&(!n||n!=="titleTemplate"&&!(n[0]==="o"&&n[1]==="n"))&&(e=e());const o=t?t(n,e):e;if(Array.isArray(o))return o.map(s=>Cl(s,t));if(o?.constructor===Object){const s={};for(const i of Object.keys(o))s[i]=Cl(o[i],t,i);return s}return o}function nO(e,t){const n=e==="style"?new Map:new Set;function r(o){if(o==null||o===void 0)return;const s=String(o).trim();if(s)if(e==="style"){const[i,...a]=s.split(":").map(l=>l?l.trim():"");i&&a.length&&n.set(i,a.join(":"))}else s.split(" ").filter(Boolean).forEach(i=>n.add(i))}return typeof t=="string"?e==="style"?t.split(";").forEach(r):r(t):Array.isArray(t)?t.forEach(o=>r(o)):t&&typeof t=="object"&&Object.entries(t).forEach(([o,s])=>{s&&s!=="false"&&(e==="style"?n.set(String(o).trim(),String(s)):r(o))}),n}function Z0(e,t){return e.props=e.props||{},t?e.tag==="templateParams"?(e.props=t,e):(Object.entries(t).forEach(([n,r])=>{if(r===null){e.props[n]=null;return}if(n==="class"||n==="style"){e.props[n]=nO(n,r);return}if(G1.has(n)){if(["textContent","innerHTML"].includes(n)&&typeof r=="object"){let a=t.type;if(t.type||(a="application/json"),!a?.endsWith("json")&&a!=="speculationrules")return;t.type=a,e.props.type=a,e[n]=JSON.stringify(r)}else e[n]=r;return}const o=String(r),s=n.startsWith("data-"),i=e.tag==="meta"&&n==="content";o==="true"||o===""?e.props[n]=s||i?o:!0:!r&&s&&o==="false"?e.props[n]="false":r!==void 0&&(e.props[n]=r)}),e):e}function rO(e,t){const n=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},r=Z0({tag:e,props:{}},n);return r.key&&W1.has(r.tag)&&(r.props["data-hid"]=r._h=r.key),r.tag==="script"&&typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map(o=>({...r,props:{...r.props,content:o}})):r}function oO(e,t){if(!e)return[];typeof e=="function"&&(e=e());const n=(o,s)=>{for(let i=0;i<t.length;i++)s=t[i](o,s);return s};e=n(void 0,e);const r=[];return e=Cl(e,n),Object.entries(e||{}).forEach(([o,s])=>{if(s!==void 0)for(const i of Array.isArray(s)?s:[s])r.push(rO(o,i))}),r.flat()}const Pp=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,$p={base:-10,title:10},sO={critical:-8,high:-1,low:2},Rp={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},iO=/@import/,Gs=e=>e===""||e===!0;function aO(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let n=100;const r=sO[t.tagPriority]||0,o=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:Rp;if(t.tag in $p)n=$p[t.tag];else if(t.tag==="meta"){const s=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;s&&(n=Rp.meta[s])}else if(t.tag==="link"&&t.props.rel)n=o.link[t.props.rel];else if(t.tag==="script"){const s=String(t.props.type);Gs(t.props.async)?n=o.script.async:t.props.src&&!Gs(t.props.defer)&&!Gs(t.props.async)&&s!=="module"&&!s.endsWith("json")||t.innerHTML&&!s.endsWith("json")?n=o.script.sync:(Gs(t.props.defer)&&t.props.src&&!Gs(t.props.async)||s==="module")&&(n=o.script.defer)}else t.tag==="style"&&(n=t.innerHTML&&iO.test(t.innerHTML)?o.style.imported:o.style.sync);return(n||100)+r}function kp(e,t){const n=typeof t=="function"?t(e):t,r=n.key||String(e.plugins.size+1);e.plugins.get(r)||(e.plugins.set(r,n),e.hooks.addHooks(n.hooks||{}))}function lO(e={}){const t=Z1();t.addHooks(e.hooks||{});const n=!e.document,r=new Map,o=new Map,s=new Set,i={_entryCount:1,plugins:o,dirty:!1,resolvedOptions:e,hooks:t,ssr:n,entries:r,headEntries(){return[...r.values()]},use:a=>kp(i,a),push(a,l){const u={...l||{}};delete u.head;const c=u._index??i._entryCount++,f={_i:c,input:a,options:u},d={_poll(h=!1){i.dirty=!0,!h&&s.add(c),t.callHook("entries:updated",i)},dispose(){r.delete(c)&&i.invalidate()},patch(h){(!u.mode||u.mode==="server"&&n||u.mode==="client"&&!n)&&(f.input=h,r.set(c,f),d._poll())}};return d.patch(a),d},async resolveTags(){const a={tagMap:new Map,tags:[],entries:[...i.entries.values()]};for(await t.callHook("entries:resolve",a);s.size;){const d=s.values().next().value;s.delete(d);const h=r.get(d);if(h){const p={tags:oO(h.input,e.propResolvers||[]).map(g=>Object.assign(g,h.options)),entry:h};await t.callHook("entries:normalize",p),h._tags=p.tags.map((g,y)=>(g._w=aO(i,g),g._p=(h._i<<10)+y,g._d=lf(g),g))}}let l=!1;a.entries.flatMap(d=>(d._tags||[]).map(h=>({...h,props:{...h.props}}))).sort(Pp).reduce((d,h)=>{const p=String(h._d||h._p);if(!d.has(p))return d.set(p,h);const g=d.get(p);if((h?.tagDuplicateStrategy||(K1.has(h.tag)?"merge":null)||(h.key&&h.key===g.key?"merge":null))==="merge"){const b={...g.props};Object.entries(h.props).forEach(([v,m])=>b[v]=v==="style"?new Map([...g.props.style||new Map,...m]):v==="class"?new Set([...g.props.class||new Set,...m]):m),d.set(p,{...h,props:b})}else h._p>>10===g._p>>10&&h.tag==="meta"&&Q0(p)?(d.set(p,Object.assign([...Array.isArray(g)?g:[g],h],h)),l=!0):(h._w===g._w?h._p>g._p:h?._w<g?._w)&&d.set(p,h);return d},a.tagMap);const u=a.tagMap.get("title"),c=a.tagMap.get("titleTemplate");if(i._title=u?.textContent,c){const d=c?.textContent;if(i._titleTemplate=d,d){let h=typeof d=="function"?d(u?.textContent):d;typeof h=="string"&&!i.plugins.has("template-params")&&(h=h.replace("%s",u?.textContent||"")),u?h===null?a.tagMap.delete("title"):a.tagMap.set("title",{...u,textContent:h}):(c.tag="title",c.textContent=h)}}a.tags=Array.from(a.tagMap.values()),l&&(a.tags=a.tags.flat().sort(Pp)),await t.callHook("tags:beforeResolve",a),await t.callHook("tags:resolve",a),await t.callHook("tags:afterResolve",a);const f=[];for(const d of a.tags){const{innerHTML:h,tag:p,props:g}=d;if(V1.has(p)&&!(Object.keys(g).length===0&&!d.innerHTML&&!d.textContent)&&!(p==="meta"&&!g.content&&!g["http-equiv"]&&!g.charset)){if(p==="script"&&h){if(String(g.type).endsWith("json")){const y=typeof h=="string"?h:JSON.stringify(h);d.innerHTML=y.replace(/</g,"\\u003C")}else typeof h=="string"&&(d.innerHTML=h.replace(new RegExp(`</${p}`,"g"),`<\\/${p}`));d._d=lf(d)}f.push(d)}}return f},invalidate(){for(const a of r.values())s.add(a._i);i.dirty=!0,t.callHook("entries:updated",i)}};return(e?.plugins||[]).forEach(a=>kp(i,a)),i.hooks.callHook("init",i),e.init?.forEach(a=>a&&i.push(a)),i}const cO=(e,t)=>Me(t)?rt(t):t,Rd="usehead";function uO(e){return{install(n){n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(Rd,e)}}.install}function fO(){if(So()){const e=Te(Rd);if(!e)throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");return e}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function dO(e,t={}){const n=t.head||fO();return n.ssr?n.push(e||{},t):hO(n,e,t)}function hO(e,t,n={}){const r=te(!1);let o;return Dn(()=>{const i=r.value?{}:Cl(t,cO);o?o.patch(i):o=e.push(i,n)}),Nt()&&(rn(()=>{o.dispose()}),xv(()=>{r.value=!0}),Tv(()=>{r.value=!1})),o}function pO(e){const t=e||Ye();return t.ssrContext?.head||t.runWithContext(()=>{if(So()){const n=Te(Rd);if(!n)throw new Error("[nuxt] [unhead] Missing Unhead instance.");return n}})}function gO(e,t={}){const n=t.head||pO(t.nuxt);return dO(e,{head:n,...t})}const mO=(()=>{const e={};return(t,n)=>{let r=[];n.charCodeAt(n.length-1)===47&&(n=n.slice(0,-1)||"/"),n==="/user/address"&&r.unshift({data:e}),n==="/user/attributes"&&r.unshift({data:e}),n==="/user/brands"&&r.unshift({data:e}),n==="/user/categories"&&r.unshift({data:e}),n==="/user/managers"&&r.unshift({data:e}),n==="/user/profile"&&r.unshift({data:e}),n==="/user/setting"&&r.unshift({data:e}),n==="/user/store_request"&&r.unshift({data:e}),n==="/__sitemap__/style.xsl"&&r.unshift({data:e}),n==="/sitemap.xml"&&r.unshift({data:e});let o=n.split("/");return o.length-1,o[1]==="add"&&r.unshift({data:e,params:{_:o.slice(2).join("/")}}),o[1]==="auth"&&r.unshift({data:e,params:{_:o.slice(2).join("/")}}),o[1]==="fav"&&r.unshift({data:e,params:{_:o.slice(2).join("/")}}),o[1]==="message"&&r.unshift({data:e,params:{_:o.slice(2).join("/")}}),o[1]==="cart"&&r.unshift({data:e,params:{_:o.slice(2).join("/")}}),o[1]==="edit"&&r.unshift({data:e,params:{_:o.slice(2).join("/")}}),o[1]==="user"&&(o[2]==="edit"&&r.unshift({data:e,params:{_:o.slice(3).join("/")}}),o[2]==="order"&&r.unshift({data:e,params:{_:o.slice(3).join("/")}}),o[2]==="statistics_list"&&r.unshift({data:e,params:{_:o.slice(3).join("/")}}),o[2]==="add"&&r.unshift({data:e,params:{_:o.slice(3).join("/")}})),r}})(),eb=e=>F0({},...mO("",e).map(t=>t.data).reverse()),yO=eb;let Ua;function vO(){return Ua=$fetch(Pd(`builds/meta/${tc().app.buildId}.json`),{responseType:"json"}),Ua.catch(e=>{console.error("[nuxt] Error fetching app manifest.",e)}),Ua}function tb(){return Ua||vO()}function nb(e){const t=typeof e=="string"?e:e.path;try{return yO(t)}catch(n){return console.error("[nuxt] Error matching route rules.",n),{}}}async function Ip(e,t={}){return null}async function bO(e){return null}let jr=null;async function _O(){if(jr)return jr;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await wO(e.textContent||""),n=e.dataset.src?await bO(e.dataset.src):void 0;return jr={...t,...n,...window.__NUXT__},jr.config?.public&&(jr.config.public=ot(jr.config.public)),jr}async function wO(e){return await F1(e,Ye()._payloadRevivers)}function rb(e,t){Ye()._payloadRevivers[e]=t}const SO=m1(()=>{rb("skipHydrate",e=>{})}),CO=[["NuxtError",e=>so(e)],["EmptyShallowRef",e=>se(e==="_"?void 0:e==="0n"?BigInt(0):bl(e))],["EmptyRef",e=>te(e==="_"?void 0:e==="0n"?BigInt(0):bl(e))],["ShallowRef",e=>se(e)],["ShallowReactive",e=>Ln(e)],["Ref",e=>te(e)],["Reactive",e=>ot(e)]],EO=De({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const[r,o]of CO)rb(r,o);Object.assign(e.payload,([t,n]=oo(()=>e.runWithContext(_O)),t=await t,n(),t)),delete window.__NUXT__}});async function kd(e,t={}){const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const r={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!!r.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async o=>{const s=new Map,i=new Promise(h=>{e.resolveTags().then(p=>{h(p.map(g=>{const y=s.get(g._d)||0,b={tag:g,id:(y?`${g._d}:${y}`:g._d)||Ap(g),shouldRender:!0};return g._d&&Q0(g._d)&&s.set(g._d,y+1),b}))})});let a=e._dom;if(!a){a={title:n.title,elMap:new Map().set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)};for(const h of["body","head"]){const p=n[h]?.children;for(const g of p){const y=g.tagName.toLowerCase();if(!Op.has(y))continue;const b=Z0({tag:y,props:{}},{innerHTML:g.innerHTML,...g.getAttributeNames().reduce((v,m)=>(v[m]=g.getAttribute(m),v),{})||{}});if(b.key=g.getAttribute("data-hid")||void 0,b._d=lf(b)||Ap(b),a.elMap.has(b._d)){let v=1,m=b._d;for(;a.elMap.has(m);)m=`${b._d}:${v++}`;a.elMap.set(m,g)}else a.elMap.set(b._d,g)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function l(h,p,g){const y=`${h}:${p}`;a.sideEffects[y]=g,delete a.pendingSideEffects[y]}function u({id:h,$el:p,tag:g}){const y=g.tag.endsWith("Attrs");a.elMap.set(h,p),y||(g.textContent&&g.textContent!==p.textContent&&(p.textContent=g.textContent),g.innerHTML&&g.innerHTML!==p.innerHTML&&(p.innerHTML=g.innerHTML),l(h,"el",()=>{p?.remove(),a.elMap.delete(h)}));for(const b in g.props){if(!Object.prototype.hasOwnProperty.call(g.props,b))continue;const v=g.props[b];if(b.startsWith("on")&&typeof v=="function"){const _=p?.dataset;if(_&&_[`${b}fired`]){const S=b.slice(0,-5);v.call(p,new Event(S.substring(2)))}p.getAttribute(`data-${b}`)!==""&&((g.tag==="bodyAttrs"?n.defaultView:p).addEventListener(b.substring(2),v.bind(p)),p.setAttribute(`data-${b}`,""));continue}const m=`attr:${b}`;if(b==="class"){if(!v)continue;for(const _ of v)y&&l(h,`${m}:${_}`,()=>p.classList.remove(_)),!p.classList.contains(_)&&p.classList.add(_)}else if(b==="style"){if(!v)continue;for(const[_,S]of v)l(h,`${m}:${_}`,()=>{p.style.removeProperty(_)}),p.style.setProperty(_,S)}else v!==!1&&v!==null&&(p.getAttribute(b)!==v&&p.setAttribute(b,v===!0?"":String(v)),y&&l(h,m,()=>p.removeAttribute(b)))}}const c=[],f={bodyClose:void 0,bodyOpen:void 0,head:void 0},d=await i;for(const h of d){const{tag:p,shouldRender:g,id:y}=h;if(g){if(p.tag==="title"){n.title=p.textContent,l("title","",()=>n.title=a.title);continue}h.$el=h.$el||a.elMap.get(y),h.$el?u(h):Op.has(p.tag)&&c.push(h)}}for(const h of c){const p=h.tag.tagPosition||"head";h.$el=n.createElement(h.tag.tag),u(h),f[p]=f[p]||n.createDocumentFragment(),f[p].appendChild(h.$el)}for(const h of d)await e.hooks.callHook("dom:renderTag",h,n,l);f.head&&n.head.appendChild(f.head),f.bodyOpen&&n.body.insertBefore(f.bodyOpen,n.body.firstChild),f.bodyClose&&n.body.appendChild(f.bodyClose);for(const h in a.pendingSideEffects)a.pendingSideEffects[h]();e._dom=a,await e.hooks.callHook("dom:rendered",{renders:d}),o()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function TO(e={}){const t=e.domOptions?.render||kd;e.document=e.document||(typeof window<"u"?document:void 0);const n=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return lO({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]})}function xO(e,t){let n=0;return()=>{const r=++n;t(()=>{n===r&&e()})}}function OO(e={}){const t=TO({domOptions:{render:xO(()=>kd(t),n=>setTimeout(n,0))},...e});return t.install=uO(t),t}const AO={disableDefaults:!0},PO=De({name:"nuxt:head",enforce:"pre",setup(e){const t=OO(AO);e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await kd(t)};t.hooks.hook("dom:beforeRender",o=>{o.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||r()}),e.hooks.hook("app:error",r),e.hooks.hook("app:suspense:resolve",r)}}});const Vo=typeof document<"u";function ob(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function $O(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&ob(e.default)}const xe=Object.assign;function Yc(e,t){const n={};for(const r in t){const o=t[r];n[r]=Cn(o)?o.map(e):e(o)}return n}const hi=()=>{},Cn=Array.isArray;function Np(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const sb=/#/g,RO=/&/g,kO=/\//g,IO=/=/g,NO=/\?/g,ib=/\+/g,LO=/%5B/g,jO=/%5D/g,ab=/%5E/g,MO=/%60/g,lb=/%7B/g,DO=/%7C/g,cb=/%7D/g,BO=/%20/g;function Id(e){return e==null?"":encodeURI(""+e).replace(DO,"|").replace(LO,"[").replace(jO,"]")}function UO(e){return Id(e).replace(lb,"{").replace(cb,"}").replace(ab,"^")}function cf(e){return Id(e).replace(ib,"%2B").replace(BO,"+").replace(sb,"%23").replace(RO,"%26").replace(MO,"`").replace(lb,"{").replace(cb,"}").replace(ab,"^")}function FO(e){return cf(e).replace(IO,"%3D")}function HO(e){return Id(e).replace(sb,"%23").replace(NO,"%3F")}function WO(e){return HO(e).replace(kO,"%2F")}function Ri(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const zO=/\/$/,VO=e=>e.replace(zO,"");function Xc(e,t,n="/"){let r,o={},s="",i="";const a=t.indexOf("#");let l=t.indexOf("?");return l=a>=0&&l>a?-1:l,l>=0&&(r=t.slice(0,l),s=t.slice(l,a>0?a:t.length),o=e(s.slice(1))),a>=0&&(r=r||t.slice(0,a),i=t.slice(a,t.length)),r=JO(r??t,n),{fullPath:r+s+i,path:r,query:o,hash:Ri(i)}}function qO(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Lp(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function GO(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&bs(t.matched[r],n.matched[o])&&ub(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function bs(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ub(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!KO(e[n],t[n]))return!1;return!0}function KO(e,t){return Cn(e)?jp(e,t):Cn(t)?jp(t,e):e?.valueOf()===t?.valueOf()}function jp(e,t){return Cn(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function JO(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let s=n.length-1,i,a;for(i=0;i<r.length;i++)if(a=r[i],a!==".")if(a==="..")s>1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(i).join("/")}const sn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let uf=(function(e){return e.pop="pop",e.push="push",e})({}),Qc=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function YO(e){if(!e)if(Vo){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),VO(e)}const XO=/^[^#]+#/;function QO(e,t){return e.replace(XO,"#")+t}function ZO(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 rc=()=>({left:window.scrollX,top:window.scrollY});function eA(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=ZO(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Mp(e,t){return(history.state?history.state.position-t:-1)+e}const ff=new Map;function tA(e,t){ff.set(e,t)}function nA(e){const t=ff.get(e);return ff.delete(e),t}function rA(e){return typeof e=="string"||e&&typeof e=="object"}function fb(e){return typeof e=="string"||typeof e=="symbol"}let ze=(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 db=Symbol("");ze.MATCHER_NOT_FOUND+"",ze.NAVIGATION_GUARD_REDIRECT+"",ze.NAVIGATION_ABORTED+"",ze.NAVIGATION_CANCELLED+"",ze.NAVIGATION_DUPLICATED+"";function _s(e,t){return xe(new Error,{type:e,[db]:!0},t)}function Fn(e,t){return e instanceof Error&&db in e&&(t==null||!!(e.type&t))}const oA=["params","query","hash"];function sA(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of oA)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function iA(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 o=n[r].replace(ib," "),s=o.indexOf("="),i=Ri(s<0?o:o.slice(0,s)),a=s<0?null:Ri(o.slice(s+1));if(i in t){let l=t[i];Cn(l)||(l=t[i]=[l]),l.push(a)}else t[i]=a}return t}function Dp(e){let t="";for(let n in e){const r=e[n];if(n=FO(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(Cn(r)?r.map(o=>o&&cf(o)):[r&&cf(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function aA(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Cn(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const lA=Symbol(""),Bp=Symbol(""),oc=Symbol(""),Nd=Symbol(""),df=Symbol("");function Ks(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function _r(e,t,n,r,o,s=i=>i()){const i=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((a,l)=>{const u=d=>{d===!1?l(_s(ze.NAVIGATION_ABORTED,{from:n,to:t})):d instanceof Error?l(d):rA(d)?l(_s(ze.NAVIGATION_GUARD_REDIRECT,{from:t,to:d})):(i&&r.enterCallbacks[o]===i&&typeof d=="function"&&i.push(d),a())},c=s(()=>e.call(r&&r.instances[o],t,n,u));let f=Promise.resolve(c);e.length<3&&(f=f.then(u)),f.catch(d=>l(d))})}function Zc(e,t,n,r,o=s=>s()){const s=[];for(const i of e)for(const a in i.components){let l=i.components[a];if(!(t!=="beforeRouteEnter"&&!i.instances[a]))if(ob(l)){const u=(l.__vccOpts||l)[t];u&&s.push(_r(u,n,r,i,a,o))}else{let u=l();s.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${a}" at "${i.path}"`);const f=$O(c)?c.default:c;i.mods[a]=c,i.components[a]=f;const d=(f.__vccOpts||f)[t];return d&&_r(d,n,r,i,a,o)()}))}}return s}function cA(e,t){const n=[],r=[],o=[],s=Math.max(t.matched.length,e.matched.length);for(let i=0;i<s;i++){const a=t.matched[i];a&&(e.matched.find(u=>bs(u,a))?r.push(a):n.push(a));const l=e.matched[i];l&&(t.matched.find(u=>bs(u,l))||o.push(l))}return[n,r,o]}let uA=()=>location.protocol+"//"+location.host;function hb(e,t){const{pathname:n,search:r,hash:o}=t,s=e.indexOf("#");if(s>-1){let i=o.includes(e.slice(s))?e.slice(s).length:1,a=o.slice(i);return a[0]!=="/"&&(a="/"+a),Lp(a,"")}return Lp(n,e)+r+o}function fA(e,t,n,r){let o=[],s=[],i=null;const a=({state:d})=>{const h=hb(e,location),p=n.value,g=t.value;let y=0;if(d){if(n.value=h,t.value=d,i&&i===p){i=null;return}y=g?d.position-g.position:0}else r(h);o.forEach(b=>{b(n.value,p,{delta:y,type:uf.pop,direction:y?y>0?Qc.forward:Qc.back:Qc.unknown})})};function l(){i=n.value}function u(d){o.push(d);const h=()=>{const p=o.indexOf(d);p>-1&&o.splice(p,1)};return s.push(h),h}function c(){if(document.visibilityState==="hidden"){const{history:d}=window;if(!d.state)return;d.replaceState(xe({},d.state,{scroll:rc()}),"")}}function f(){for(const d of s)d();s=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:l,listen:u,destroy:f}}function Up(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?rc():null}}function dA(e){const{history:t,location:n}=window,r={value:hb(e,n)},o={value:t.state};o.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(l,u,c){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:uA()+e+l;try{t[c?"replaceState":"pushState"](u,"",d),o.value=u}catch(h){console.error(h),n[c?"replace":"assign"](d)}}function i(l,u){s(l,xe({},t.state,Up(o.value.back,l,o.value.forward,!0),u,{position:o.value.position}),!0),r.value=l}function a(l,u){const c=xe({},o.value,t.state,{forward:l,scroll:rc()});s(c.current,c,!0),s(l,xe({},Up(r.value,l,null),{position:c.position+1},u),!1),r.value=l}return{location:r,state:o,push:a,replace:i}}function hA(e){e=YO(e);const t=dA(e),n=fA(e,t.state,t.location,t.replace);function r(s,i=!0){i||n.pauseListeners(),history.go(s)}const o=xe({location:"",base:e,go:r,createHref:QO.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}let Jr=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var st=(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})(st||{});const pA={type:Jr.Static,value:""},gA=/[a-zA-Z0-9_]/;function mA(e){if(!e)return[[]];if(e==="/")return[[pA]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}let n=st.Static,r=n;const o=[];let s;function i(){s&&o.push(s),s=[]}let a=0,l,u="",c="";function f(){u&&(n===st.Static?s.push({type:Jr.Static,value:u}):n===st.Param||n===st.ParamRegExp||n===st.ParamRegExpEnd?(s.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),s.push({type:Jr.Param,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=l}for(;a<e.length;){if(l=e[a++],l==="\\"&&n!==st.ParamRegExp){r=n,n=st.EscapeNext;continue}switch(n){case st.Static:l==="/"?(u&&f(),i()):l===":"?(f(),n=st.Param):d();break;case st.EscapeNext:d(),n=r;break;case st.Param:l==="("?n=st.ParamRegExp:gA.test(l)?d():(f(),n=st.Static,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case st.ParamRegExp:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:n=st.ParamRegExpEnd:c+=l;break;case st.ParamRegExpEnd:f(),n=st.Static,l!=="*"&&l!=="?"&&l!=="+"&&a--,c="";break;default:t("Unknown state");break}}return n===st.ParamRegExp&&t(`Unfinished custom RegExp for param "${u}"`),f(),i(),o}const Fp="[^/]+?",yA={sensitive:!1,strict:!1,start:!0,end:!0};var At=(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})(At||{});const vA=/[.+*?^${}()[\]/\\]/g;function bA(e,t){const n=xe({},yA,t),r=[];let o=n.start?"^":"";const s=[];for(const u of e){const c=u.length?[]:[At.Root];n.strict&&!u.length&&(o+="/");for(let f=0;f<u.length;f++){const d=u[f];let h=At.Segment+(n.sensitive?At.BonusCaseSensitive:0);if(d.type===Jr.Static)f||(o+="/"),o+=d.value.replace(vA,"\\$&"),h+=At.Static;else if(d.type===Jr.Param){const{value:p,repeatable:g,optional:y,regexp:b}=d;s.push({name:p,repeatable:g,optional:y});const v=b||Fp;if(v!==Fp){h+=At.BonusCustomRegExp;try{`${v}`}catch(_){throw new Error(`Invalid custom RegExp for param "${p}" (${v}): `+_.message)}}let m=g?`((?:${v})(?:/(?:${v}))*)`:`(${v})`;f||(m=y&&u.length<2?`(?:/${m})`:"/"+m),y&&(m+="?"),o+=m,h+=At.Dynamic,y&&(h+=At.BonusOptional),g&&(h+=At.BonusRepeatable),v===".*"&&(h+=At.BonusWildcard)}c.push(h)}r.push(c)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=At.BonusStrict}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const i=new RegExp(o,n.sensitive?"":"i");function a(u){const c=u.match(i),f={};if(!c)return null;for(let d=1;d<c.length;d++){const h=c[d]||"",p=s[d-1];f[p.name]=h&&p.repeatable?h.split("/"):h}return f}function l(u){let c="",f=!1;for(const d of e){(!f||!c.endsWith("/"))&&(c+="/"),f=!1;for(const h of d)if(h.type===Jr.Static)c+=h.value;else if(h.type===Jr.Param){const{value:p,repeatable:g,optional:y}=h,b=p in u?u[p]:"";if(Cn(b)&&!g)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const v=Cn(b)?b.join("/"):b;if(!v)if(y)d.length<2&&(c.endsWith("/")?c=c.slice(0,-1):f=!0);else throw new Error(`Missing required param "${p}"`);c+=v}}return c||"/"}return{re:i,score:r,keys:s,parse:a,stringify:l}}function _A(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]===At.Static+At.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===At.Static+At.Segment?1:-1:0}function pb(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const s=_A(r[n],o[n]);if(s)return s;n++}if(Math.abs(o.length-r.length)===1){if(Hp(r))return 1;if(Hp(o))return-1}return o.length-r.length}function Hp(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const wA={strict:!1,end:!0,sensitive:!1};function SA(e,t,n){const r=bA(mA(e.path),n),o=xe(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function CA(e,t){const n=[],r=new Map;t=Np(wA,t);function o(f){return r.get(f)}function s(f,d,h){const p=!h,g=zp(f);g.aliasOf=h&&h.record;const y=Np(t,f),b=[g];if("alias"in f){const _=typeof f.alias=="string"?[f.alias]:f.alias;for(const S of _)b.push(zp(xe({},g,{components:h?h.record.components:g.components,path:S,aliasOf:h?h.record:g})))}let v,m;for(const _ of b){const{path:S}=_;if(d&&S[0]!=="/"){const E=d.record.path,w=E[E.length-1]==="/"?"":"/";_.path=d.record.path+(S&&w+S)}if(v=SA(_,d,y),h?h.alias.push(v):(m=m||v,m!==v&&m.alias.push(v),p&&f.name&&!Vp(v)&&i(f.name)),gb(v)&&l(v),g.children){const E=g.children;for(let w=0;w<E.length;w++)s(E[w],v,h&&h.children[w])}h=h||v}return m?()=>{i(m)}:hi}function i(f){if(fb(f)){const d=r.get(f);d&&(r.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(i),d.alias.forEach(i))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,1),f.record.name&&r.delete(f.record.name),f.children.forEach(i),f.alias.forEach(i))}}function a(){return n}function l(f){const d=xA(f,n);n.splice(d,0,f),f.record.name&&!Vp(f)&&r.set(f.record.name,f)}function u(f,d){let h,p={},g,y;if("name"in f&&f.name){if(h=r.get(f.name),!h)throw _s(ze.MATCHER_NOT_FOUND,{location:f});y=h.record.name,p=xe(Wp(d.params,h.keys.filter(m=>!m.optional).concat(h.parent?h.parent.keys.filter(m=>m.optional):[]).map(m=>m.name)),f.params&&Wp(f.params,h.keys.map(m=>m.name))),g=h.stringify(p)}else if(f.path!=null)g=f.path,h=n.find(m=>m.re.test(g)),h&&(p=h.parse(g),y=h.record.name);else{if(h=d.name?r.get(d.name):n.find(m=>m.re.test(d.path)),!h)throw _s(ze.MATCHER_NOT_FOUND,{location:f,currentLocation:d});y=h.record.name,p=xe({},d.params,f.params),g=h.stringify(p)}const b=[];let v=h;for(;v;)b.unshift(v.record),v=v.parent;return{name:y,path:g,params:p,matched:b,meta:TA(b)}}e.forEach(f=>s(f));function c(){n.length=0,r.clear()}return{addRoute:s,resolve:u,removeRoute:i,clearRoutes:c,getRoutes:a,getRecordMatcher:o}}function Wp(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function zp(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:EA(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 EA(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 Vp(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function TA(e){return e.reduce((t,n)=>xe(t,n.meta),{})}function xA(e,t){let n=0,r=t.length;for(;n!==r;){const s=n+r>>1;pb(e,t[s])<0?r=s:n=s+1}const o=OA(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function OA(e){let t=e;for(;t=t.parent;)if(gb(t)&&pb(e,t)===0)return t}function gb({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function qp(e){const t=Te(oc),n=Te(Nd),r=R(()=>{const l=U(e.to);return t.resolve(l)}),o=R(()=>{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(bs.bind(null,c));if(d>-1)return d;const h=Gp(l[u-2]);return u>1&&Gp(c)===h&&f[f.length-1].path!==h?f.findIndex(bs.bind(null,l[u-2])):d}),s=R(()=>o.value>-1&&kA(n.params,r.value.params)),i=R(()=>o.value>-1&&o.value===n.matched.length-1&&ub(n.params,r.value.params));function a(l={}){if(RA(l)){const u=t[U(e.replace)?"replace":"push"](U(e.to)).catch(hi);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:r,href:R(()=>r.value.href),isActive:s,isExactActive:i,navigate:a}}function AA(e){return e.length===1?e[0]:e}const PA=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:qp,setup(e,{slots:t}){const n=ot(qp(e)),{options:r}=Te(oc),o=R(()=>({[Kp(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Kp(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&AA(t.default(n));return e.custom?s:ut("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},s)}}}),$A=PA;function RA(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 kA(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!Cn(o)||o.length!==r.length||r.some((s,i)=>s.valueOf()!==o[i].valueOf()))return!1}return!0}function Gp(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Kp=(e,t,n)=>e??t??n,IA=he({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Te(df),o=R(()=>e.route||r.value),s=Te(Bp,0),i=R(()=>{let u=U(s);const{matched:c}=o.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),a=R(()=>o.value.matched[i.value]);_t(Bp,R(()=>i.value+1)),_t(lA,a),_t(df,o);const l=te();return Se(()=>[l.value,a.value,e.name],([u,c,f],[d,h,p])=>{c&&(c.instances[f]=u,h&&h!==c&&u&&u===d&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),u&&c&&(!h||!bs(c,h)||!d)&&(c.enterCallbacks[f]||[]).forEach(g=>g(u))},{flush:"post"}),()=>{const u=o.value,c=e.name,f=a.value,d=f&&f.components[c];if(!d)return Jp(n.default,{Component:d,route:u});const h=f.props[c],p=h?h===!0?u.params:typeof h=="function"?h(u):h:null,y=ut(d,xe({},p,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return Jp(n.default,{Component:y,route:u})||y}}});function Jp(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const mb=IA;function NA(e){const t=CA(e.routes,e),n=e.parseQuery||iA,r=e.stringifyQuery||Dp,o=e.history,s=Ks(),i=Ks(),a=Ks(),l=se(sn);let u=sn;Vo&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Yc.bind(null,D=>""+D),f=Yc.bind(null,WO),d=Yc.bind(null,Ri);function h(D,ee){let X,ie;return fb(D)?(X=t.getRecordMatcher(D),ie=ee):ie=D,t.addRoute(ie,X)}function p(D){const ee=t.getRecordMatcher(D);ee&&t.removeRoute(ee)}function g(){return t.getRoutes().map(D=>D.record)}function y(D){return!!t.getRecordMatcher(D)}function b(D,ee){if(ee=xe({},ee||l.value),typeof D=="string"){const T=Xc(n,D,ee.path),j=t.resolve({path:T.path},ee),z=o.createHref(T.fullPath);return xe(T,j,{params:d(j.params),hash:Ri(T.hash),redirectedFrom:void 0,href:z})}let X;if(D.path!=null)X=xe({},D,{path:Xc(n,D.path,ee.path).path});else{const T=xe({},D.params);for(const j in T)T[j]==null&&delete T[j];X=xe({},D,{params:f(T)}),ee.params=f(ee.params)}const ie=t.resolve(X,ee),we=D.hash||"";ie.params=c(d(ie.params));const Ue=qO(r,xe({},D,{hash:UO(we),path:ie.path})),C=o.createHref(Ue);return xe({fullPath:Ue,hash:we,query:r===Dp?aA(D.query):D.query||{}},ie,{redirectedFrom:void 0,href:C})}function v(D){return typeof D=="string"?Xc(n,D,l.value.path):xe({},D)}function m(D,ee){if(u!==D)return _s(ze.NAVIGATION_CANCELLED,{from:ee,to:D})}function _(D){return w(D)}function S(D){return _(xe(v(D),{replace:!0}))}function E(D,ee){const X=D.matched[D.matched.length-1];if(X&&X.redirect){const{redirect:ie}=X;let we=typeof ie=="function"?ie(D,ee):ie;return typeof we=="string"&&(we=we.includes("?")||we.includes("#")?we=v(we):{path:we},we.params={}),xe({query:D.query,hash:D.hash,params:we.path!=null?{}:D.params},we)}}function w(D,ee){const X=u=b(D),ie=l.value,we=D.state,Ue=D.force,C=D.replace===!0,T=E(X,ie);if(T)return w(xe(v(T),{state:typeof T=="object"?xe({},we,T.state):we,force:Ue,replace:C}),ee||X);const j=X;j.redirectedFrom=ee;let z;return!Ue&&GO(r,ie,X)&&(z=_s(ze.NAVIGATION_DUPLICATED,{to:j,from:ie}),ae(ie,ie,!0,!1)),(z?Promise.resolve(z):L(j,ie)).catch(B=>Fn(B)?Fn(B,ze.NAVIGATION_GUARD_REDIRECT)?B:pe(B):H(B,j,ie)).then(B=>{if(B){if(Fn(B,ze.NAVIGATION_GUARD_REDIRECT))return w(xe({replace:C},v(B.to),{state:typeof B.to=="object"?xe({},we,B.to.state):we,force:Ue}),ee||j)}else B=k(j,ie,!0,C,we);return N(j,ie,B),B})}function A(D,ee){const X=m(D,ee);return X?Promise.reject(X):Promise.resolve()}function O(D){const ee=ye.values().next().value;return ee&&typeof ee.runWithContext=="function"?ee.runWithContext(D):D()}function L(D,ee){let X;const[ie,we,Ue]=cA(D,ee);X=Zc(ie.reverse(),"beforeRouteLeave",D,ee);for(const T of ie)T.leaveGuards.forEach(j=>{X.push(_r(j,D,ee))});const C=A.bind(null,D,ee);return X.push(C),pt(X).then(()=>{X=[];for(const T of s.list())X.push(_r(T,D,ee));return X.push(C),pt(X)}).then(()=>{X=Zc(we,"beforeRouteUpdate",D,ee);for(const T of we)T.updateGuards.forEach(j=>{X.push(_r(j,D,ee))});return X.push(C),pt(X)}).then(()=>{X=[];for(const T of Ue)if(T.beforeEnter)if(Cn(T.beforeEnter))for(const j of T.beforeEnter)X.push(_r(j,D,ee));else X.push(_r(T.beforeEnter,D,ee));return X.push(C),pt(X)}).then(()=>(D.matched.forEach(T=>T.enterCallbacks={}),X=Zc(Ue,"beforeRouteEnter",D,ee,O),X.push(C),pt(X))).then(()=>{X=[];for(const T of i.list())X.push(_r(T,D,ee));return X.push(C),pt(X)}).catch(T=>Fn(T,ze.NAVIGATION_CANCELLED)?T:Promise.reject(T))}function N(D,ee,X){a.list().forEach(ie=>O(()=>ie(D,ee,X)))}function k(D,ee,X,ie,we){const Ue=m(D,ee);if(Ue)return Ue;const C=ee===sn,T=Vo?history.state:{};X&&(ie||C?o.replace(D.fullPath,xe({scroll:C&&T&&T.scroll},we)):o.push(D.fullPath,we)),l.value=D,ae(D,ee,X,C),pe()}let F;function G(){F||(F=o.listen((D,ee,X)=>{if(!ge.listening)return;const ie=b(D),we=E(ie,ge.currentRoute.value);if(we){w(xe(we,{replace:!0,force:!0}),ie).catch(hi);return}u=ie;const Ue=l.value;Vo&&tA(Mp(Ue.fullPath,X.delta),rc()),L(ie,Ue).catch(C=>Fn(C,ze.NAVIGATION_ABORTED|ze.NAVIGATION_CANCELLED)?C:Fn(C,ze.NAVIGATION_GUARD_REDIRECT)?(w(xe(v(C.to),{force:!0}),ie).then(T=>{Fn(T,ze.NAVIGATION_ABORTED|ze.NAVIGATION_DUPLICATED)&&!X.delta&&X.type===uf.pop&&o.go(-1,!1)}).catch(hi),Promise.reject()):(X.delta&&o.go(-X.delta,!1),H(C,ie,Ue))).then(C=>{C=C||k(ie,Ue,!1),C&&(X.delta&&!Fn(C,ze.NAVIGATION_CANCELLED)?o.go(-X.delta,!1):X.type===uf.pop&&Fn(C,ze.NAVIGATION_ABORTED|ze.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),N(ie,Ue,C)}).catch(hi)}))}let $=Ks(),I=Ks(),W;function H(D,ee,X){pe(D);const ie=I.list();return ie.length?ie.forEach(we=>we(D,ee,X)):console.error(D),Promise.reject(D)}function J(){return W&&l.value!==sn?Promise.resolve():new Promise((D,ee)=>{$.add([D,ee])})}function pe(D){return W||(W=!D,G(),$.list().forEach(([ee,X])=>D?X(D):ee()),$.reset()),D}function ae(D,ee,X,ie){const{scrollBehavior:we}=e;if(!Vo||!we)return Promise.resolve();const Ue=!X&&nA(Mp(D.fullPath,0))||(ie||!X)&&history.state&&history.state.scroll||null;return kt().then(()=>we(D,ee,Ue)).then(C=>C&&eA(C)).catch(C=>H(C,D,ee))}const be=D=>o.go(D);let Qe;const ye=new Set,ge={currentRoute:l,listening:!0,addRoute:h,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:y,getRoutes:g,resolve:b,options:e,push:_,replace:S,go:be,back:()=>be(-1),forward:()=>be(1),beforeEach:s.add,beforeResolve:i.add,afterEach:a.add,onError:I.add,isReady:J,install(D){D.component("RouterLink",$A),D.component("RouterView",mb),D.config.globalProperties.$router=ge,Object.defineProperty(D.config.globalProperties,"$route",{enumerable:!0,get:()=>U(l)}),Vo&&!Qe&&l.value===sn&&(Qe=!0,_(o.location).catch(ie=>{}));const ee={};for(const ie in sn)Object.defineProperty(ee,ie,{get:()=>l.value[ie],enumerable:!0});D.provide(oc,ge),D.provide(Nd,Ln(ee)),D.provide(df,l);const X=D.unmount;ye.add(D),D.unmount=function(){ye.delete(D),ye.size<1&&(u=sn,F&&F(),F=null,l.value=sn,Qe=!1,W=!1),X()}}};function pt(D){return D.reduce((ee,X)=>ee.then(()=>O(X)),Promise.resolve())}return ge}function t8(){return Te(oc)}function yb(e){return Te(Nd)}const LA=/(:\w+)\([^)]+\)/g,jA=/(:\w+)[?+*]/g,MA=/:\w+/g,DA=(e,t)=>t.path.replace(LA,"$1").replace(jA,"$1").replace(MA,n=>e.params[n.slice(1)]?.toString()||""),hf=(e,t)=>{const n=e.route.matched.find(o=>o.components?.default===e.Component.type),r=t??n?.meta.key??(n&&DA(e.route,n));return typeof r=="function"?r(e.route):r},BA=(e,t)=>({default:()=>e?ut(dE,e===!0?{}:e,t):t});function Ld(e){return Array.isArray(e)?e:[e]}const UA="modulepreload",FA=function(e,t){return new URL(e,t).href},Yp={},ne=function(t,n,r){let o=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 i=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=a?.nonce||a?.getAttribute("nonce");o=u(n.map(c=>{if(c=FA(c,r),c in Yp)return;Yp[c]=!0;const f=c.endsWith(".css"),d=f?'[rel="stylesheet"]':"";if(r)for(let p=i.length-1;p>=0;p--){const g=i[p];if(g.href===c&&(!f||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${d}`))return;const h=document.createElement("link");if(h.rel=f?"stylesheet":UA,f||(h.as="script"),h.crossOrigin="",h.href=c,l&&h.setAttribute("nonce",l),document.head.appendChild(h),f)return new Promise((p,g)=>{h.addEventListener("load",p),h.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${c}`)))})}))}function s(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return o.then(i=>{for(const a of i||[])a.status==="rejected"&&s(a.reason);return t().catch(s)})},HA={redirect:{name:"auth-login"},showMobileNavigationMenu:!1},WA=null,zA={ssr:!1},VA={ssr:!1},qA={ssr:!1},GA={ssr:!1},KA={ssr:!1},JA={ssr:!1,showMobileNavigationMenu:!1},YA={ssr:!1},XA={ssr:!1},QA={ssr:!1},ZA={ssr:!1},eP={ssr:!1},tP={ssr:!1},nP={ssr:!1,showMobileNavigationMenu:!1},rP={ssr:!1},oP={ssr:!1},sP={redirect:{name:"add-story-inputStory"},showMobileNavigationMenu:!1},iP={ssr:!1},aP={ssr:!1},lP={ssr:!1},cP={redirect:{name:"add-product-inputProduct"},showMobileNavigationMenu:!1},uP={showMobileNavigationMenu:!1},fP={ssr:!1},dP={ssr:!1},hP={showMobileNavigationMenu:!1},pP={ssr:!1},gP={ssr:!1},mP={ssr:!1},yP={ssr:!1},vP={ssr:!1},bP={showMobileNavigationMenu:!1},_P={showMobileNavigationMenu:!1},wP={ssr:!1,showMobileNavigationMenu:!1},SP={redirect:{name:"add-product-excel-inputProduct"},showMobileNavigationMenu:!1,ssr:!1},CP={showMobileNavigationMenu:!1},EP={showMobileNavigationMenu:!1},TP={showMobileNavigationMenu:!1},xP={showMobileNavigationMenu:!1},OP={ssr:!1,showMobileNavigationMenu:!1},AP={showMobileNavigationMenu:!1},PP={ssr:!1,showMobileNavigationMenu:!1},$P={showMobileNavigationMenu:!1},eu=[{name:"auth",path:"/auth",meta:HA||{},redirect:{name:"auth-login"},component:()=>ne(()=>import("./CEVsq4jO.js"),[],import.meta.url),children:[{name:"auth-login",path:"login",component:()=>ne(()=>import("./D71_8iAW.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46]),import.meta.url)},{name:"auth-forget",path:"forget",component:()=>ne(()=>import("./Dqz_u0Ik.js"),__vite__mapDeps([47,14,3,15,12,13,16,8,17,18,19,20,21,22,23,24,25,26,27,48,49,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,50]),import.meta.url)},{name:"auth-register",path:"register",component:()=>ne(()=>import("./oVCzkWoK.js"),__vite__mapDeps([51,48,12,13,14,3,15,16,8,17,18,19,20,21,22,23,24,52,53,54,55,39,56,37,38,34,57,58,59,25,26,27,32,33,35,36,40,60]),import.meta.url)}]},{name:"index",path:"/",redirect:{name:"home"},component:()=>ne(()=>import("./BGseQsag.js"),[],import.meta.url)},{name:WA?.name,path:"/posts",component:()=>ne(()=>import("./CM92j2qg.js"),__vite__mapDeps([61,62,63,14,3,15,64,65,66,54,53,67,68,69,70,37,22,38,34,39,71,2,4,72,73,74,12,13,16,8,17,18,19,20,21,23,24,25,26,27,75,58,42,35,36,76,40,59,77,78,79,33,43,80,81,82,83,84,28,85,86,87]),import.meta.url),children:[{name:"posts",path:"",component:()=>ne(()=>import("./CWiRiNxu.js"),__vite__mapDeps([88,62,63,14,3,15,64,65,66,54,53,67,68,69,70,37,22,38,34,39,71,2,4,72,73,74,12,13,16,8,17,18,19,20,21,23,24,25,26,27,75,58,42,35,36,76,40,59,77,78,79,33,43,80,81,82,83,84,28,85,86,87]),import.meta.url)}]},{name:"user-add",path:"/user/add",meta:zA||{},component:()=>ne(()=>import("./C_nZn2_k.js"),__vite__mapDeps([89,63]),import.meta.url)},{name:"add",path:"/add",meta:VA||{},component:()=>ne(()=>import("./DAhN-qpf.js"),__vite__mapDeps([90,63]),import.meta.url)},{name:"cart-id",path:"/cart/:id()",meta:qA||{},component:()=>ne(()=>import("./qEmiV_VS.js"),__vite__mapDeps([91,63]),import.meta.url)},{name:"fav",path:"/fav",meta:GA||{},component:()=>ne(()=>import("./VjQZb-bn.js"),__vite__mapDeps([92,63]),import.meta.url)},{name:"cart",path:"/cart",meta:KA||{},component:()=>ne(()=>import("./7TUp2nqe.js"),__vite__mapDeps([93,63]),import.meta.url)},{name:"edit",path:"/edit",meta:JA||{},component:()=>ne(()=>import("./B8_nwabi.js"),__vite__mapDeps([94,63]),import.meta.url)},{name:"home",path:"/home",component:()=>ne(()=>import("./C7u8ARcS.js"),__vite__mapDeps([95,63,14,3,15,96,97,71,2,4,66,54,53,65,70,37,22,38,34,39,72,73,74,12,13,16,8,17,18,19,20,21,23,24,25,26,27,75,58,42,35,36,76,40,59,77,78,79,33,43,80,64,67,68,69,81,82,83,85,98,28,99,100,86,101,102,103,104,31,105,106,107,108,109,110,111]),import.meta.url)},{name:"user",path:"/user",component:()=>ne(()=>import("./Dl40SX0Q.js"),__vite__mapDeps([112,63,96,113,14,3,15,102,103,25,26,27,114,73,65,74,28,67,98,99,100,33,34,35,115,31,116,82,117,72,101,12,13,16,8,17,18,19,20,21,22,23,24,70,37,38,39,104,105,84,118,119,120,121,122,123,124,75,58,42,36,76,40,59,125,126,127,9,128,129,86,130,106,107,131,110,44,132,56,133]),import.meta.url)},{name:"saved-posts",path:"/saved/posts",meta:YA||{},component:()=>ne(()=>import("./BOU51ti_.js"),__vite__mapDeps([134,63]),import.meta.url)},{name:"user-brands",path:"/user/brands",meta:XA||{},component:()=>ne(()=>import("./ZxkccWh1.js"),__vite__mapDeps([135,63]),import.meta.url)},{name:"message-list",path:"/message/list",component:()=>ne(()=>import("./DAvy-kcj.js"),__vite__mapDeps([136,14,3,15,137,63,125,73,65,74,66,54,53,138,139,33,34,35,100]),import.meta.url)},{name:"search",path:"/search",component:()=>ne(()=>import("./Qo3oHkEo.js"),__vite__mapDeps([140,137,63,125,117,72,28,118,86]),import.meta.url)},{name:"user-address",path:"/user/address",meta:QA||{},component:()=>ne(()=>import("./BUpRfqYU.js"),__vite__mapDeps([141,63]),import.meta.url)},{name:"user-message",path:"/user/message",meta:ZA||{},component:()=>ne(()=>import("./3o6YqOc2.js"),__vite__mapDeps([142,63]),import.meta.url)},{name:"user-profile",path:"/user/profile",meta:eP||{},component:()=>ne(()=>import("./UNgMgOvH.js"),__vite__mapDeps([143,63]),import.meta.url)},{name:"user-setting",path:"/user/setting",meta:tP||{},component:()=>ne(()=>import("./Co6fEKNi.js"),__vite__mapDeps([144,63]),import.meta.url)},{name:"message",path:"/message",meta:nP||{},component:()=>ne(()=>import("./DxbAgBj2.js"),__vite__mapDeps([145,63]),import.meta.url)},{name:"user-discount",path:"/user/discount",meta:rP||{},component:()=>ne(()=>import("./Ae_4WTYP.js"),__vite__mapDeps([146,63]),import.meta.url)},{name:"user-managers",path:"/user/managers",meta:oP||{},component:()=>ne(()=>import("./DDGZ6s1v.js"),__vite__mapDeps([147,63]),import.meta.url)},{name:"user-edit-id",path:"/user/edit/:id()",component:()=>ne(()=>import("./BMb5MMpc.js"),__vite__mapDeps([148,149,14,3,15,65,49,12,13,16,8,17,18,19,20,21,22,23,24,150,151,52,53,54,55,39,56,37,38,34,57,58,59,152,153,154,5,6,2,4,25,26,27,30,31,32,33,35,36,40,41,42,43,44,45,155]),import.meta.url)},{name:"add-story",path:"/add/story",meta:sP||{},redirect:{name:"add-story-inputStory"},component:()=>ne(()=>import("./BwUSRes4.js"),__vite__mapDeps([156,157]),import.meta.url)},{name:"user-attributes",path:"/user/attributes",meta:iP||{},component:()=>ne(()=>import("./k0R1zBny.js"),__vite__mapDeps([158,63]),import.meta.url)},{name:"user-categories",path:"/user/categories",meta:aP||{},component:()=>ne(()=>import("./BmYTfB0m.js"),__vite__mapDeps([159,63]),import.meta.url)},{name:"user-edit",path:"/user/edit",component:()=>ne(()=>import("./Cf09OEMK.js"),__vite__mapDeps([160,149,14,3,15,65,49,12,13,16,8,17,18,19,20,21,22,23,24,150,151,52,53,54,55,39,56,37,38,34,57,58,59,152,153,154,5,6,2,4,25,26,27,30,31,32,33,35,36,40,41,42,43,44,45,155]),import.meta.url)},{name:"user-order-id",path:"/user/order/:id()",component:()=>ne(()=>import("./BeJulhUo.js"),__vite__mapDeps([161,14,3,15,162,13,163,65,25,26,27,164,106,39,107,165,66,54,53,2,4,5,6,12,16,8,17,18,19,20,21,22,23,24,41,32,33,34,35,36,37,38,40,42,43,44,109,108,110,166,167]),import.meta.url)},{name:"highlight-create",path:"/highlight/create",meta:lP||{},component:()=>ne(()=>import("./U1b2gnpv.js"),__vite__mapDeps([168,63]),import.meta.url)},{name:"user_detail-id",path:"/user_detail/:id()",component:()=>ne(()=>import("./CccLFIOq.js"),__vite__mapDeps([169,96,113,14,3,15,102,103,25,26,27,114,73,65,74,28,67,98,99,100,33,34,35,115,31,116,82,170,118,101,12,13,16,8,17,18,19,20,21,22,23,24,70,37,38,39,104,105,84,117,72,86,63,106,107,171,165,172,173,66,54,53,163,174,175,85,131,75,58,42,36,76,40,59,110,44,132,56,176]),import.meta.url)},{name:"add-product",path:"/add/product",meta:cP||{},redirect:{name:"add-product-inputProduct"},component:()=>ne(()=>import("./FhE5Sp8w.js"),__vite__mapDeps([177,178,77,78,79,34,42,35,36,33,43,38]),import.meta.url)},{name:"search-main",path:"/search/main",component:()=>ne(()=>import("./YUaVt_Ra.js"),__vite__mapDeps([179,63,125,14,3,15,119,118,117,72,28,13,25,26,27,120,121,122,123,124,75,58,34,42,35,36,76,21,22,37,38,39,40,59,126,16,8,17,18,19,20,23,127,9,128,129,86,130,180,164,181,55,182,73,65,74,131,110,44,132,56,183]),import.meta.url)},{name:"add-story-infStory",path:"/add/story/infStory",meta:uP||{},component:()=>ne(()=>import("./DdIH2Hs4.js"),__vite__mapDeps([184,185,67,68,186,104,77,78,79,34,42,35,36,33,43,38,14,3,15,28,52,53,54,55,39,56,37,22,57,58,8,17,19,59,98,99,100,26,32,40,187,82,151,83]),import.meta.url)},{name:"user-store_request",path:"/user/store_request",meta:fP||{},component:()=>ne(()=>import("./DusYBPLY.js"),__vite__mapDeps([188,63]),import.meta.url)},{name:"highlight-edit-id",path:"/highlight/edit/:id()",meta:dP||{},component:()=>ne(()=>import("./CdpDT1_s.js"),__vite__mapDeps([189,63]),import.meta.url)},{name:"product_detail-id",path:"/product_detail/:id()",component:()=>ne(()=>import("./ahfKITsJ.js"),__vite__mapDeps([190,63,96,14,3,15,69,67,68,65,191,192,131,75,58,34,42,35,36,76,21,22,37,38,39,40,59,110,44,132,56,20,193,13,194,195,18,57,109,8,17,151,25,26,27,32,33,55,165,71,2,4,66,54,53,70,72,73,74,12,16,19,23,24,77,78,79,43,80,85,86,106,107,196,83,82]),import.meta.url)},{name:"add-story-inputStory",path:"/add/story/inputStory",meta:hP||{},component:()=>ne(()=>import("./BakWA8YC.js"),__vite__mapDeps([197,198,199,25,14,3,15,26,27,63,200,201,202,6,77,78,79,34,42,35,36,33,43,38,7,8,9,10,203]),import.meta.url)},{name:"user-statistics_list",path:"/user/statistics_list",meta:vP||{},component:()=>ne(()=>import("./BzRPrbi9.js"),__vite__mapDeps([204,63]),import.meta.url),children:[{name:"user-statistics_list-saved",path:"saved",meta:pP||{},component:()=>ne(()=>import("./Byhp8Jh0.js"),__vite__mapDeps([205,174,117,72,175,85,118]),import.meta.url)},{name:"user-statistics_list-orders",path:"orders",meta:gP||{},component:()=>ne(()=>import("./CSoPQIfi.js"),__vite__mapDeps([206,172,173,73,65,3,74,25,14,15,26,27,13,66,54,53,98,28,99,100,33,34,35,165,72,163]),import.meta.url)},{name:"user-statistics_list-customers",path:"customers",meta:mP||{},component:()=>ne(()=>import("./Dc3VSVc9.js"),__vite__mapDeps([207,182,73,65,3,74,25,14,15,26,27,72,208,37,22,38,34,39,106,107,56]),import.meta.url)},{name:"user-statistics_list-storeOrders",path:"storeOrders",meta:yP||{},component:()=>ne(()=>import("./B9ToE0bR.js"),__vite__mapDeps([209,172,173,73,65,3,74,25,14,15,26,27,13,66,54,53,98,28,99,100,33,34,35,165,72,163]),import.meta.url)}]},{name:"edit-story-id",path:"/edit/story/:id()",meta:bP||{},component:()=>ne(()=>import("./UqQNGnEi.js"),__vite__mapDeps([210,157]),import.meta.url)},{name:"add-product-infProduct",path:"/add/product/infProduct",meta:_P||{},component:()=>ne(()=>import("./B7kAjnZP.js"),__vite__mapDeps([211,212,63,67,68,186,104,77,78,79,34,42,35,36,33,43,38,14,3,15,49,12,13,16,8,17,18,19,20,21,22,23,24,150,151,194,195,37,39,76,132,57,56,109,59,25,26,27,121,122,123,124,5,6,126,40,55,127,9,32,165,129,30,31,41,44,45,213,10,7,100,214,82,83]),import.meta.url)},{name:"message-detail_message",path:"/message/detail_message",meta:wP||{},component:()=>ne(()=>import("./BQHc_fkH.js"),__vite__mapDeps([215,122,123,63,14,3,15,73,65,74,150,16,8,17,18,19,20,21,22,23,151,216]),import.meta.url)},{name:"add-product-excel",path:"/add/product/excel",meta:SP||{},redirect:{name:"add-product-excel-inputProduct"},component:()=>ne(()=>import("./CR753W-O.js"),[],import.meta.url)},{name:"edit-product-id",path:"/edit/product/:id()",meta:CP||{},component:()=>ne(()=>import("./CVI5pXCr.js"),__vite__mapDeps([217,178,77,78,79,34,42,35,36,33,43,38]),import.meta.url)},{name:"add-product-inputProduct",path:"/add/product/inputProduct",meta:EP||{},component:()=>ne(()=>import("./CT2Jun5i.js"),__vite__mapDeps([218,219,199,25,14,3,15,26,27,63,200,201,202,6,77,78,79,34,42,35,36,33,43,38,69,7,8,9,220]),import.meta.url)},{name:"edit-story-id-infStory",path:"/edit/story/:id()/infStory",meta:TP||{},component:()=>ne(()=>import("./Dt_JUmG4.js"),__vite__mapDeps([221,185,67,68,186,104,77,78,79,34,42,35,36,33,43,38,14,3,15,28,52,53,54,55,39,56,37,22,57,58,8,17,19,59,98,99,100,26,32,40,187,82,151,83]),import.meta.url)},{name:"edit-story-id-inputStory",path:"/edit/story/:id()/inputStory",meta:xP||{},component:()=>ne(()=>import("./WbDqYTxE.js"),__vite__mapDeps([222,198,199,25,14,3,15,26,27,63,200,201,202,6,77,78,79,34,42,35,36,33,43,38,7,8,9,10,203]),import.meta.url)},{name:"add-product-excel-infProductExcel",path:"/add/product/excel/infProductExcel",meta:OP||{},component:()=>ne(()=>import("./B9wF6kv9.js"),__vite__mapDeps([223,63]),import.meta.url)},{name:"edit-product-id-infProduct",path:"/edit/product/:id()/infProduct",meta:AP||{},component:()=>ne(()=>import("./iQOeP5ON.js"),__vite__mapDeps([224,212,63,67,68,186,104,77,78,79,34,42,35,36,33,43,38,14,3,15,49,12,13,16,8,17,18,19,20,21,22,23,24,150,151,194,195,37,39,76,132,57,56,109,59,25,26,27,121,122,123,124,5,6,126,40,55,127,9,32,165,129,30,31,41,44,45,213,10,7,100,214,82,83]),import.meta.url)},{name:"add-product-excel-inputProductExcel",path:"/add/product/excel/inputProductExcel",meta:PP||{},component:()=>ne(()=>import("./-3vPFNLw.js"),__vite__mapDeps([225,63]),import.meta.url)},{name:"edit-product-id-inputProduct",path:"/edit/product/:id()/inputProduct",meta:$P||{},component:()=>ne(()=>import("./CmSk0O2d.js"),__vite__mapDeps([226,219,199,25,14,3,15,26,27,63,200,201,202,6,77,78,79,34,42,35,36,33,43,38,69,7,8,9,220]),import.meta.url)}],vb=(e,t)=>({default:()=>e?ut(Yi,e===!0?{}:e,t):t.default?.()}),RP=/(:\w+)\([^)]+\)/g,kP=/(:\w+)[?+*]/g,IP=/:\w+/g;function Xp(e){const t=e?.meta.key??e.path.replace(RP,"$1").replace(kP,"$1").replace(IP,n=>e.params[n.slice(1)]?.toString()||"");return typeof t=="function"?t(e):t}function NP(e,t){return e===t||t===sn?!1:Xp(e)!==Xp(t)?!0:!e.matched.every((r,o)=>r.components&&r.components.default===t.matched[o]?.components?.default)}const LP={scrollBehavior(e,t,n){const r=Ye(),o=It().options?.scrollBehaviorType??"auto";if(e.path.replace(/\/$/,"")===t.path.replace(/\/$/,""))return t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:bb(e.hash),behavior:o}:!1;if((typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop)===!1)return!1;const i=r._runningTransition?"page:transition:finish":"page:loading:end";return new Promise(a=>{if(t===sn){a(Qp(e,t,n,o));return}r.hooks.hookOnce(i,()=>{requestAnimationFrame(()=>a(Qp(e,t,n,o)))})})}};function bb(e){try{const t=document.querySelector(e);if(t)return(Number.parseFloat(getComputedStyle(t).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}function Qp(e,t,n,r){if(n)return n;const o=NP(e,t);return e.hash?{el:e.hash,top:bb(e.hash),behavior:o?r:"instant"}:{left:0,top:0}}const jP={hashMode:!1,scrollBehaviorType:"auto"},pr={...jP,...LP},MP=async(e,t)=>{let n,r;if(!e.meta?.validate)return;const o=([n,r]=oo(()=>Promise.resolve(e.meta.validate(e))),n=await n,r(),n);if(o===!0)return;const s=so({fatal:!0,status:o&&(o.status||o.statusCode)||404,statusText:o&&(o.statusText||o.statusMessage)||`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}});return typeof window<"u"&&window.history.pushState({},"",t.fullPath),s};function sc(e){return Bl()?(Fy(e),!0):!1}const tu=new WeakMap,DP=(...e)=>{var t;const n=e[0],r=(t=Nt())==null?void 0:t.proxy;if(r==null&&!So())throw new Error("injectLocal must be called in setup");return r&&tu.has(r)&&n in tu.get(r)?tu.get(r)[n]:Te(...e)},Ns=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const BP=e=>e!=null,UP=Object.prototype.toString,FP=e=>UP.call(e)==="[object Object]",ln=()=>{},pf=HP();function HP(){var e,t;return Ns&&((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 WP(...e){if(e.length!==1)return Hl(...e);const t=e[0];return typeof t=="function"?id(PC(()=>({get:t,set:ln}))):te(t)}function zP(e,t){function n(...r){return new Promise((o,s)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(s)})}return n}const VP=e=>e();function qP(e,t={}){let n,r,o=ln;const s=l=>{clearTimeout(l),o(),o=ln};let i;return l=>{const u=rt(e),c=rt(t.maxWait);return n&&s(n),u<=0||c!==void 0&&c<=0?(r&&(s(r),r=void 0),Promise.resolve(l())):new Promise((f,d)=>{o=t.rejectOnCancel?d:f,i=l,c&&!r&&(r=setTimeout(()=>{n&&s(n),r=void 0,f(i())},c)),n=setTimeout(()=>{r&&s(r),r=void 0,f(l())},u)})}}function GP(e,t){var n;if(typeof e=="number")return e+t;const r=((n=e.match(/^-?\d+\.?\d*/))==null?void 0:n[0])||"",o=e.slice(r.length),s=Number.parseFloat(r)+t;return Number.isNaN(s)?e:s+o}function pi(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function gi(e){return Array.isArray(e)?e:[e]}function _b(e){return Nt()}function KP(e,t,n={}){const{eventFilter:r=VP,...o}=n;return Se(e,zP(r,t),o)}function jd(e,t=!0,n){_b()?St(e,n):t?e():kt(e)}function n8(e,t){_b()&&Is(e,t)}function r8(e,t,n={}){const{debounce:r=0,maxWait:o=void 0,...s}=n;return KP(e,t,{...s,eventFilter:qP(r,{maxWait:o})})}function JP(e,t,n){return Se(e,t,{...n,immediate:!0})}const cr=Ns?window:void 0;function Rt(e){var t;const n=rt(e);return(t=n?.$el)!=null?t:n}function Dt(...e){const t=[],n=()=>{t.forEach(a=>a()),t.length=0},r=(a,l,u,c)=>(a.addEventListener(l,u,c),()=>a.removeEventListener(l,u,c)),o=R(()=>{const a=gi(rt(e[0])).filter(l=>l!=null);return a.every(l=>typeof l!="string")?a:void 0}),s=JP(()=>{var a,l;return[(l=(a=o.value)==null?void 0:a.map(u=>Rt(u)))!=null?l:[cr].filter(u=>u!=null),gi(rt(o.value?e[1]:e[0])),gi(U(o.value?e[2]:e[1])),rt(o.value?e[3]:e[2])]},([a,l,u,c])=>{if(n(),!a?.length||!l?.length||!u?.length)return;const f=FP(c)?{...c}:c;t.push(...a.flatMap(d=>l.flatMap(h=>u.map(p=>r(d,h,p,f)))))},{flush:"post"}),i=()=>{s(),n()};return sc(n),i}let Zp=!1;function o8(e,t,n={}){const{window:r=cr,ignore:o=[],capture:s=!0,detectIframe:i=!1,controls:a=!1}=n;if(!r)return a?{stop:ln,cancel:ln,trigger:ln}:ln;if(pf&&!Zp){Zp=!0;const y={passive:!0};Array.from(r.document.body.children).forEach(b=>b.addEventListener("click",ln,y)),r.document.documentElement.addEventListener("click",ln,y)}let l=!0;const u=y=>rt(o).some(b=>{if(typeof b=="string")return Array.from(r.document.querySelectorAll(b)).some(v=>v===y.target||y.composedPath().includes(v));{const v=Rt(b);return v&&(y.target===v||y.composedPath().includes(v))}});function c(y){const b=rt(y);return b&&b.$.subTree.shapeFlag===16}function f(y,b){const v=rt(y),m=v.$.subTree&&v.$.subTree.children;return m==null||!Array.isArray(m)?!1:m.some(_=>_.el===b.target||b.composedPath().includes(_.el))}const d=y=>{const b=Rt(e);if(y.target!=null&&!(!(b instanceof Element)&&c(e)&&f(e,y))&&!(!b||b===y.target||y.composedPath().includes(b))){if("detail"in y&&y.detail===0&&(l=!u(y)),!l){l=!0;return}t(y)}};let h=!1;const p=[Dt(r,"click",y=>{h||(h=!0,setTimeout(()=>{h=!1},0),d(y))},{passive:!0,capture:s}),Dt(r,"pointerdown",y=>{const b=Rt(e);l=!u(y)&&!!(b&&!y.composedPath().includes(b))},{passive:!0}),i&&Dt(r,"blur",y=>{setTimeout(()=>{var b;const v=Rt(e);((b=r.document.activeElement)==null?void 0:b.tagName)==="IFRAME"&&!v?.contains(r.document.activeElement)&&t(y)},0)},{passive:!0})].filter(Boolean),g=()=>p.forEach(y=>y());return a?{stop:g,cancel:()=>{l=!1},trigger:y=>{l=!0,d(y),l=!1}}:g}function YP(){const e=se(!1),t=Nt();return t&&St(()=>{e.value=!0},t),e}function ic(e){const t=YP();return R(()=>(t.value,!!e()))}const XP=500,QP=10;function s8(e,t,n){var r,o;const s=R(()=>Rt(e));let i,a,l,u=!1;function c(){i&&(clearTimeout(i),i=void 0),a=void 0,l=void 0,u=!1}function f(v){const m=n?.delay;return typeof m=="function"?m(v):m??XP}function d(v){var m,_,S;const[E,w,A]=[l,a,u];if(c(),!n?.onMouseUp||!w||!E||(m=n?.modifiers)!=null&&m.self&&v.target!==s.value)return;(_=n?.modifiers)!=null&&_.prevent&&v.preventDefault(),(S=n?.modifiers)!=null&&S.stop&&v.stopPropagation();const O=v.x-w.x,L=v.y-w.y,N=Math.sqrt(O*O+L*L);n.onMouseUp(v.timeStamp-E,N,A)}function h(v){var m,_,S;(m=n?.modifiers)!=null&&m.self&&v.target!==s.value||(c(),(_=n?.modifiers)!=null&&_.prevent&&v.preventDefault(),(S=n?.modifiers)!=null&&S.stop&&v.stopPropagation(),a={x:v.x,y:v.y},l=v.timeStamp,i=setTimeout(()=>{u=!0,t(v)},f(v)))}function p(v){var m,_,S,E;if((m=n?.modifiers)!=null&&m.self&&v.target!==s.value||!a||n?.distanceThreshold===!1)return;(_=n?.modifiers)!=null&&_.prevent&&v.preventDefault(),(S=n?.modifiers)!=null&&S.stop&&v.stopPropagation();const w=v.x-a.x,A=v.y-a.y;Math.sqrt(w*w+A*A)>=((E=n?.distanceThreshold)!=null?E:QP)&&c()}const g={capture:(r=n?.modifiers)==null?void 0:r.capture,once:(o=n?.modifiers)==null?void 0:o.once},y=[Dt(s,"pointerdown",h,g),Dt(s,"pointermove",p,g),Dt(s,["pointerup","pointerleave"],d,g)];return()=>y.forEach(v=>v())}const ZP=Symbol("vueuse-ssr-width");function wb(){const e=So()?DP(ZP,null):null;return typeof e=="number"?e:void 0}function Sr(e,t={}){const{window:n=cr,ssrWidth:r=wb()}=t,o=ic(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),s=se(typeof r=="number"),i=se(),a=se(!1),l=u=>{a.value=u.matches};return Dn(()=>{if(s.value){s.value=!o.value;const u=rt(e).split(",");a.value=u.some(c=>{const f=c.includes("not all"),d=c.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),h=c.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let p=!!(d||h);return d&&p&&(p=r>=pi(d[1])),h&&p&&(p=r<=pi(h[1])),f?!p:p});return}o.value&&(i.value=n.matchMedia(rt(e)),a.value=i.value.matches)}),Dt(i,"change",l,{passive:!0}),R(()=>a.value)}const i8={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function a8(e,t={}){function n(h,p){let g=rt(e[rt(h)]);return p!=null&&(g=GP(g,p)),typeof g=="number"&&(g=`${g}px`),g}const{window:r=cr,strategy:o="min-width",ssrWidth:s=wb()}=t,i=typeof s=="number",a=i?se(!1):{value:!0};i&&jd(()=>a.value=!!r);function l(h,p){return!a.value&&i?h==="min"?s>=pi(p):s<=pi(p):r?r.matchMedia(`(${h}-width: ${p})`).matches:!1}const u=h=>Sr(()=>`(min-width: ${n(h)})`,t),c=h=>Sr(()=>`(max-width: ${n(h)})`,t),f=Object.keys(e).reduce((h,p)=>(Object.defineProperty(h,p,{get:()=>o==="min-width"?u(p):c(p),enumerable:!0,configurable:!0}),h),{});function d(){const h=Object.keys(e).map(p=>[p,f[p],pi(n(p))]).sort((p,g)=>p[2]-g[2]);return R(()=>h.filter(([,p])=>p.value).map(([p])=>p))}return Object.assign(f,{greaterOrEqual:u,smallerOrEqual:c,greater(h){return Sr(()=>`(min-width: ${n(h,.1)})`,t)},smaller(h){return Sr(()=>`(max-width: ${n(h,-.1)})`,t)},between(h,p){return Sr(()=>`(min-width: ${n(h)}) and (max-width: ${n(p,-.1)})`,t)},isGreater(h){return l("min",n(h,.1))},isGreaterOrEqual(h){return l("min",n(h))},isSmaller(h){return l("max",n(h,-.1))},isSmallerOrEqual(h){return l("max",n(h))},isInBetween(h,p){return l("min",n(h))&&l("max",n(p,-.1))},current:d,active(){const h=d();return R(()=>h.value.length===0?"":h.value.at(o==="min-width"?-1:0))}})}function nu(e){return Sr("(prefers-color-scheme: dark)",e)}function e$(e,t,n={}){const{window:r=cr,...o}=n;let s;const i=ic(()=>r&&"ResizeObserver"in r),a=()=>{s&&(s.disconnect(),s=void 0)},l=R(()=>{const f=rt(e);return Array.isArray(f)?f.map(d=>Rt(d)):[Rt(f)]}),u=Se(l,f=>{if(a(),i.value&&r){s=new ResizeObserver(t);for(const d of f)d&&s.observe(d,o)}},{immediate:!0,flush:"post"}),c=()=>{a(),u()};return sc(c),{isSupported:i,stop:c}}function l8(e,t={width:0,height:0},n={}){const{window:r=cr,box:o="content-box"}=n,s=R(()=>{var f,d;return(d=(f=Rt(e))==null?void 0:f.namespaceURI)==null?void 0:d.includes("svg")}),i=se(t.width),a=se(t.height),{stop:l}=e$(e,([f])=>{const d=o==="border-box"?f.borderBoxSize:o==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(r&&s.value){const h=Rt(e);if(h){const p=h.getBoundingClientRect();i.value=p.width,a.value=p.height}}else if(d){const h=gi(d);i.value=h.reduce((p,{inlineSize:g})=>p+g,0),a.value=h.reduce((p,{blockSize:g})=>p+g,0)}else i.value=f.contentRect.width,a.value=f.contentRect.height},n);jd(()=>{const f=Rt(e);f&&(i.value="offsetWidth"in f?f.offsetWidth:t.width,a.value="offsetHeight"in f?f.offsetHeight:t.height)});const u=Se(()=>Rt(e),f=>{i.value=f?t.width:0,a.value=f?t.height:0});function c(){l(),u()}return{width:i,height:a,stop:c}}function c8(e,t,n={}){const{root:r,rootMargin:o="0px",threshold:s=0,window:i=cr,immediate:a=!0}=n,l=ic(()=>i&&"IntersectionObserver"in i),u=R(()=>{const p=rt(e);return gi(p).map(Rt).filter(BP)});let c=ln;const f=se(a),d=l.value?Se(()=>[u.value,Rt(r),f.value],([p,g])=>{if(c(),!f.value||!p.length)return;const y=new IntersectionObserver(t,{root:Rt(g),rootMargin:o,threshold:s});p.forEach(b=>b&&y.observe(b)),c=()=>{y.disconnect(),c=ln}},{immediate:a,flush:"post"}):ln,h=()=>{c(),d(),f.value=!1};return sc(h),{isSupported:l,isActive:f,pause(){c(),f.value=!1},resume(){f.value=!0},stop:h}}function ru(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function t$(e={}){const{window:t=cr}=e,n=ic(()=>t&&"screen"in t&&"orientation"in t.screen),r=n.value?t.screen.orientation:{},o=te(r.type),s=se(r.angle||0);return n.value&&Dt(t,"orientationchange",()=>{o.value=r.type,s.value=r.angle},{passive:!0}),{isSupported:n,orientation:o,angle:s,lockOrientation:l=>n.value&&typeof r.lock=="function"?r.lock(l):Promise.reject(new Error("Not supported")),unlockOrientation:()=>{n.value&&typeof r.unlock=="function"&&r.unlock()}}}function Sb(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!n||n.tagName==="BODY"?!1:Sb(n)}}function n$(e){const t=e||window.event,n=t.target;return Sb(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const ou=new WeakMap;function u8(e,t=!1){const n=se(t);let r=null,o="";Se(WP(e),a=>{const l=ru(rt(a));if(l){const u=l;if(ou.get(u)||ou.set(u,u.style.overflow),u.style.overflow!=="hidden"&&(o=u.style.overflow),u.style.overflow==="hidden")return n.value=!0;if(n.value)return u.style.overflow="hidden"}},{immediate:!0});const s=()=>{const a=ru(rt(e));!a||n.value||(pf&&(r=Dt(a,"touchmove",l=>{n$(l)},{passive:!1})),a.style.overflow="hidden",n.value=!0)},i=()=>{const a=ru(rt(e));!a||!n.value||(pf&&r?.(),a.style.overflow=o,ou.delete(a),n.value=!1)};return sc(i),R({get(){return n.value},set(a){a?s():i()}})}function f8(e,t={}){const{threshold:n=50,onSwipe:r,onSwipeEnd:o,onSwipeStart:s,passive:i=!0}=t,a=ot({x:0,y:0}),l=ot({x:0,y:0}),u=R(()=>a.x-l.x),c=R(()=>a.y-l.y),{max:f,abs:d}=Math,h=R(()=>f(d(u.value),d(c.value))>=n),p=se(!1),g=R(()=>h.value?d(u.value)>d(c.value)?u.value>0?"left":"right":c.value>0?"up":"down":"none"),y=w=>[w.touches[0].clientX,w.touches[0].clientY],b=(w,A)=>{a.x=w,a.y=A},v=(w,A)=>{l.x=w,l.y=A},m={passive:i,capture:!i},_=w=>{p.value&&o?.(w,g.value),p.value=!1},S=[Dt(e,"touchstart",w=>{if(w.touches.length!==1)return;const[A,O]=y(w);b(A,O),v(A,O),s?.(w)},m),Dt(e,"touchmove",w=>{if(w.touches.length!==1)return;const[A,O]=y(w);v(A,O),m.capture&&!m.passive&&Math.abs(u.value)>Math.abs(c.value)&&w.preventDefault(),!p.value&&h.value&&(p.value=!0),p.value&&r?.(w)},m),Dt(e,["touchend","touchcancel"],_,m)];return{isSwiping:p,direction:g,coordsStart:a,coordsEnd:l,lengthX:u,lengthY:c,stop:()=>S.forEach(w=>w()),isPassiveEventSupported:!0}}function r$(e={}){const{window:t=cr,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:o=!0,includeScrollbar:s=!0,type:i="inner"}=e,a=se(n),l=se(r),u=()=>{if(t)if(i==="outer")a.value=t.outerWidth,l.value=t.outerHeight;else if(i==="visual"&&t.visualViewport){const{width:f,height:d,scale:h}=t.visualViewport;a.value=Math.round(f*h),l.value=Math.round(d*h)}else s?(a.value=t.innerWidth,l.value=t.innerHeight):(a.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight)};u(),jd(u);const c={passive:!0};if(Dt("resize",u,c),t&&i==="visual"&&t.visualViewport&&Dt(t.visualViewport,"resize",u,c),o){const f=Sr("(orientation: portrait)");Se(f,()=>u())}return{width:a,height:l}}const Md="auth-token";function ki(e){"@babel/helpers - typeof";return ki=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ki(e)}function o$(e,t){if(ki(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ki(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function s$(e){var t=o$(e,"string");return ki(t)=="symbol"?t:t+""}function i$(e,t,n){return(t=s$(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ue(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eg(Object(n),!0).forEach(function(r){i$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x.apply(null,arguments)}const a$=e=>typeof e=="function",l$=Array.isArray,c$=e=>typeof e=="string",u$=e=>e!==null&&typeof e=="object",f$=/^on[^a-z]/,d$=e=>f$.test(e),Dd=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},h$=/-(\w)/g,Cb=Dd(e=>e.replace(h$,(t,n)=>n?n.toUpperCase():"")),p$=/\B([A-Z])/g,g$=Dd(e=>e.replace(p$,"-$1").toLowerCase()),d8=Dd(e=>e.charAt(0).toUpperCase()+e.slice(1)),m$=Object.prototype.hasOwnProperty,tg=(e,t)=>m$.call(e,t);function y$(e,t,n,r){const o=e[n];if(o!=null){const s=tg(o,"default");if(s&&r===void 0){const i=o.default;r=o.type!==Function&&a$(i)?i():i}o.type===Boolean&&(!tg(t,n)&&!s?r=!1:r===""&&(r=!0))}return r}function h8(e){return Object.keys(e).reduce((t,n)=>((n.startsWith("data-")||n.startsWith("aria-"))&&(t[n]=e[n]),t),{})}function p8(e){return typeof e=="number"?`${e}px`:e}function Qo(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return typeof e=="function"?e(t):e??n}function v$(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t?.()};return r.then=(o,s)=>n.then(o,s),r.promise=n,r}function Xe(){const e=[];for(let t=0;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t];if(n){if(c$(n))e.push(n);else if(l$(n))for(let r=0;r<n.length;r++){const o=Xe(n[r]);o&&e.push(o)}else if(u$(n))for(const r in n)n[r]&&e.push(r)}}return e.join(" ")}const b$=e=>e!=null&&e!=="",Qi=(e,t)=>{const n=x({},e);return Object.keys(t).forEach(r=>{const o=n[r];if(o)o.type||o.default?o.default=t[r]:o.def?o.def(t[r]):n[r]={type:o,default:t[r]};else throw new Error(`not have ${r} prop`)}),n},_$=e=>{const t=Object.keys(e),n={},r={},o={};for(let s=0,i=t.length;s<i;s++){const a=t[s];d$(a)?(n[a[2].toLowerCase()+a.slice(3)]=e[a],r[a]=e[a]):o[a]=e[a]}return{onEvents:r,events:n,extraAttrs:o}},w$=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n={},r=/;(?![^(]*\))/g,o=/:(.+)/;return typeof e=="object"?e:(e.split(r).forEach(function(s){if(s){const i=s.split(o);if(i.length>1){const a=t?Cb(i[0].trim()):i[0].trim();n[a]=i[1].trim()}}}),n)},g8=(e,t)=>e[t]!==void 0,S$=Symbol("skipFlatten"),nr=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const n=Array.isArray(e)?e:[e],r=[];return n.forEach(o=>{Array.isArray(o)?r.push(...nr(o,t)):o&&o.type===je?o.key===S$?r.push(o):r.push(...nr(o.children,t)):o&&en(o)?t&&!Eb(o)?r.push(o):t||r.push(o):b$(o)&&r.push(o)}),r},m8=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(en(e))return e.type===je?t==="default"?nr(e.children):[]:e.children&&e.children[t]?nr(e.children[t](n)):[];{const r=e.$slots[t]&&e.$slots[t](n);return nr(r)}},El=e=>{var t;let n=((t=e?.vnode)===null||t===void 0?void 0:t.el)||e&&(e.$el||e);for(;n&&!n.tagName;)n=n.nextSibling;return n},y8=e=>{const t={};if(e.$&&e.$.vnode){const n=e.$.vnode.props||{};Object.keys(e.$props).forEach(r=>{const o=e.$props[r],s=g$(r);(o!==void 0||s in n)&&(t[r]=o)})}else if(en(e)&&typeof e.type=="object"){const n=e.props||{},r={};Object.keys(n).forEach(s=>{r[Cb(s)]=n[s]});const o=e.type.props||{};Object.keys(o).forEach(s=>{const i=y$(o,r,s,r[s]);(i!==void 0||s in r)&&(t[s]=i)})}return t},v8=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,o;if(e.$){const s=e[t];if(s!==void 0)return typeof s=="function"&&r?s(n):s;o=e.$slots[t],o=r&&o?o(n):o}else if(en(e)){const s=e.props&&e.props[t];if(s!==void 0&&e.props!==null)return typeof s=="function"&&r?s(n):s;e.type===je?o=e.children:e.children&&e.children[t]&&(o=e.children[t],o=r&&o?o(n):o)}return Array.isArray(o)&&(o=nr(o),o=o.length===1?o[0]:o,o=o.length===0?void 0:o),o};function b8(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n={};return e.$?n=x(x({},n),e.$attrs):n=x(x({},n),e.props),_$(n)[t?"onEvents":"events"]}function _8(e,t){let r=((en(e)?e.props:e.$attrs)||{}).style||{};return typeof r=="string"&&(r=w$(r,t)),r}function w8(e){return e.length===1&&e[0].type===je}function Eb(e){return e&&(e.type===qe||e.type===je&&e.children.length===0||e.type===tr&&e.children.trim()==="")}function ac(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=[];return e.forEach(n=>{Array.isArray(n)?t.push(...n):n?.type===je?t.push(...ac(n.children)):t.push(n)}),t.filter(n=>!Eb(n))}function S8(e){if(e){const t=ac(e);return t.length?t:void 0}else return e}function C8(e){return Array.isArray(e)&&e.length===1&&(e=e[0]),e&&e.__v_isVNode&&typeof e.type!="symbol"}function E8(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"default";var r,o;return(r=t[n])!==null&&r!==void 0?r:(o=e[n])===null||o===void 0?void 0:o.call(e)}let Tb=e=>setTimeout(e,16),xb=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(Tb=e=>window.requestAnimationFrame(e),xb=e=>window.cancelAnimationFrame(e));let ng=0;const Bd=new Map;function Ob(e){Bd.delete(e)}function Ii(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ng+=1;const n=ng;function r(o){if(o===0)Ob(n),e();else{const s=Tb(()=>{r(o-1)});Bd.set(n,s)}}return r(t),n}Ii.cancel=e=>{const t=Bd.get(e);return Ob(t),xb(t)};const Tl=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t},Ud=e=>{const t=e;return t.install=function(n){n.component(t.displayName||t.name,e)},e};function rg(){return{type:[Function,Array]}}function tt(e){return{type:Object,default:e}}function us(e){return{type:Boolean,default:e}}function T8(e){return{type:Function,default:e}}function gf(e,t){const n={validator:()=>!0,default:e};return n}function x8(){return{validator:()=>!0}}function og(e){return{type:Array,default:e}}function sg(e){return{type:String,default:e}}function C$(e,t){return e?{type:e,default:t}:gf(t)}let Ab=!1;try{const e=Object.defineProperty({},"passive",{get(){Ab=!0}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch{}function E$(e,t,n,r){if(e&&e.addEventListener){let o=r;o===void 0&&Ab&&(t==="touchstart"||t==="touchmove"||t==="wheel")&&(o={passive:!1}),e.addEventListener(t,n,o)}return{remove:()=>{e&&e.removeEventListener&&e.removeEventListener(t,n)}}}const Fd="anticon",Pb=Symbol("GlobalFormContextKey"),T$=e=>{_t(Pb,e)},O8=()=>Te(Pb,{validateMessages:R(()=>{})}),x$=()=>({iconPrefixCls:String,getTargetContainer:{type:Function},getPopupContainer:{type:Function},prefixCls:String,getPrefixCls:{type:Function},renderEmpty:{type:Function},transformCellText:{type:Function},csp:tt(),input:tt(),autoInsertSpaceInButton:{type:Boolean,default:void 0},locale:tt(),pageHeader:tt(),componentSize:{type:String},componentDisabled:{type:Boolean,default:void 0},direction:{type:String,default:"ltr"},space:tt(),virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},form:tt(),pagination:tt(),theme:tt(),select:tt(),wave:tt()}),Hd=Symbol("configProvider"),$b={getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:R(()=>Fd),getPopupContainer:R(()=>()=>document.body),direction:R(()=>"ltr")},Wd=()=>Te(Hd,$b),O$=e=>_t(Hd,e),Rb=Symbol("DisabledContextKey"),zd=()=>Te(Rb,te(void 0)),A$=e=>{const t=zd();return _t(Rb,R(()=>{var n;return(n=e.value)!==null&&n!==void 0?n:t.value})),e},P$={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"},$$={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},kb={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},ig={lang:x({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},$$),timePickerLocale:x({},kb)},qt="${label} is not a valid ${type}",mo={locale:"en",Pagination:P$,DatePicker:ig,TimePicker:kb,Calendar:ig,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:qt,method:qt,array:qt,object:qt,number:qt,date:qt,boolean:qt,integer:qt,float:qt,regexp:qt,email:qt,url:qt,hex:qt},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"}},Ib=he({compatConfig:{MODE:3},name:"LocaleReceiver",props:{componentName:String,defaultLocale:{type:[Object,Function]},children:{type:Function}},setup(e,t){let{slots:n}=t;const r=Te("localeData",{}),o=R(()=>{const{componentName:i="global",defaultLocale:a}=e,l=a||mo[i||"global"],{antLocale:u}=r,c=i&&u?u[i]:{};return x(x({},typeof l=="function"?l():l),c||{})}),s=R(()=>{const{antLocale:i}=r,a=i&&i.locale;return i&&i.exist&&!a?mo.locale:a});return()=>{const i=e.children||n.default,{antLocale:a}=r;return i?.(o.value,s.value,a)}}});function Vd(e,t,n){const r=Te("localeData",{});return[R(()=>{const{antLocale:s}=r,i=U(t)||mo[e||"global"],a=e&&s?s[e]:{};return x(x(x({},typeof i=="function"?i():i),a||{}),U(n)||{})})]}function qd(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}const ag="%";class R${constructor(t){this.cache=new Map,this.instanceId=t}get(t){return this.cache.get(Array.isArray(t)?t.join(ag):t)||null}update(t,n){const r=Array.isArray(t)?t.join(ag):t,o=this.cache.get(r),s=n(o);s===null?this.cache.delete(r):this.cache.set(r,s)}}const Nb="data-token-hash",io="data-css-hash",Zo="__cssinjs_instance__";function Ni(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${io}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(o=>{o[Zo]=o[Zo]||e,o[Zo]===e&&document.head.insertBefore(o,n)});const r={};Array.from(document.querySelectorAll(`style[${io}]`)).forEach(o=>{var s;const i=o.getAttribute(io);r[i]?o[Zo]===e&&((s=o.parentNode)===null||s===void 0||s.removeChild(o)):r[i]=!0})}return new R$(e)}const Lb=Symbol("StyleContextKey"),k$=()=>{var e,t,n;const r=Nt();let o;if(r&&r.appContext){const s=(n=(t=(e=r.appContext)===null||e===void 0?void 0:e.config)===null||t===void 0?void 0:t.globalProperties)===null||n===void 0?void 0:n.__ANTDV_CSSINJS_CACHE__;s?o=s:(o=Ni(),r.appContext.config.globalProperties&&(r.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=o))}else o=Ni();return o},jb={cache:Ni(),defaultCache:!0,hashPriority:"low"},lc=()=>{const e=k$();return Te(Lb,se(x(x({},jb),{cache:e})))},I$=e=>{const t=lc(),n=se(x(x({},jb),{cache:Ni()}));return Se([()=>U(e),t],()=>{const r=x({},t.value),o=U(e);Object.keys(o).forEach(i=>{const a=o[i];o[i]!==void 0&&(r[i]=a)});const{cache:s}=o;r.cache=r.cache||Ni(),r.defaultCache=!s&&t.value.defaultCache,n.value=r},{immediate:!0}),_t(Lb,n),n},N$=()=>({autoClear:us(),mock:sg(),cache:tt(),defaultCache:us(),hashPriority:sg(),container:C$(),ssrInline:us(),transformers:og(),linters:og()});Ud(he({name:"AStyleProvider",inheritAttrs:!1,props:N$(),setup(e,t){let{slots:n}=t;return I$(e),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}));function Mb(e,t,n,r){const o=lc(),s=se(""),i=se();Dn(()=>{s.value=[e,...t.value].join("%")});const a=l=>{o.value.cache.update(l,u=>{const[c=0,f]=u||[];return c-1===0?(r?.(f,!1),null):[c-1,f]})};return Se(s,(l,u)=>{u&&a(u),o.value.cache.update(l,c=>{const[f=0,d]=c||[],p=d||n();return[f+1,p]}),i.value=o.value.cache.get(s.value)[1]},{immediate:!0}),rn(()=>{a(s.value)}),i}function En(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Db(e,t){return e&&e.contains?e.contains(t):!1}const lg="data-vc-order",L$="vc-util-key",mf=new Map;function Bb(){let{mark:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e?e.startsWith("data-")?e:`data-${e}`:L$}function cc(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function j$(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Ub(e){return Array.from((mf.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function Fb(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!En())return null;const{csp:n,prepend:r}=t,o=document.createElement("style");o.setAttribute(lg,j$(r)),n?.nonce&&(o.nonce=n?.nonce),o.innerHTML=e;const s=cc(t),{firstChild:i}=s;if(r){if(r==="queue"){const a=Ub(s).filter(l=>["prepend","prependQueue"].includes(l.getAttribute(lg)));if(a.length)return s.insertBefore(o,a[a.length-1].nextSibling),o}s.insertBefore(o,i)}else s.appendChild(o);return o}function Hb(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=cc(t);return Ub(n).find(r=>r.getAttribute(Bb(t))===e)}function xl(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=Hb(e,t);n&&cc(t).removeChild(n)}function M$(e,t){const n=mf.get(e);if(!n||!Db(document,n)){const r=Fb("",t),{parentNode:o}=r;mf.set(e,o),e.removeChild(r)}}function Li(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var r,o,s;const i=cc(n);M$(i,n);const a=Hb(t,n);if(a)return!((r=n.csp)===null||r===void 0)&&r.nonce&&a.nonce!==((o=n.csp)===null||o===void 0?void 0:o.nonce)&&(a.nonce=(s=n.csp)===null||s===void 0?void 0:s.nonce),a.innerHTML!==e&&(a.innerHTML=e),a;const l=Fb(e,n);return l.setAttribute(Bb(n),t),l}function D$(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}class ws{constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r={map:this.cache};return t.forEach(o=>{var s;r?r=(s=r?.map)===null||s===void 0?void 0:s.get(o):r=void 0}),r?.value&&n&&(r.value[1]=this.cacheCallTimes++),r?.value}get(t){var n;return(n=this.internalGet(t,!0))===null||n===void 0?void 0:n[0]}has(t){return!!this.internalGet(t)}set(t,n){if(!this.has(t)){if(this.size()+1>ws.MAX_CACHE_SIZE+ws.MAX_CACHE_OFFSET){const[o]=this.keys.reduce((s,i)=>{const[,a]=s;return this.internalGet(i)[1]<a?[i,this.internalGet(i)[1]]:s},[this.keys[0],this.cacheCallTimes]);this.delete(o)}this.keys.push(t)}let r=this.cache;t.forEach((o,s)=>{if(s===t.length-1)r.set(o,{value:[n,this.cacheCallTimes++]});else{const i=r.get(o);i?i.map||(i.map=new Map):r.set(o,{map:new Map}),r=r.get(o).map}})}deleteByPath(t,n){var r;const o=t.get(n[0]);if(n.length===1)return o.map?t.set(n[0],{map:o.map}):t.delete(n[0]),(r=o.value)===null||r===void 0?void 0:r[0];const s=this.deleteByPath(o.map,n.slice(1));return(!o.map||o.map.size===0)&&!o.value&&t.delete(n[0]),s}delete(t){if(this.has(t))return this.keys=this.keys.filter(n=>!D$(n,t)),this.deleteByPath(this.cache,t)}}ws.MAX_CACHE_SIZE=20;ws.MAX_CACHE_OFFSET=5;let cg={};function B$(e,t){}function U$(e,t){}function Wb(e,t,n){!t&&!cg[n]&&(e(!1,n),cg[n]=!0)}function F$(e,t){Wb(B$,e,t)}function A8(e,t){Wb(U$,e,t)}function H$(){}let uc=H$,ug=0;class zb{constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=ug,t.length===0&&uc(t.length>0),ug+=1}getDerivativeToken(t){return this.derivatives.reduce((n,r)=>r(t,n),void 0)}}const su=new ws;function Vb(e){const t=Array.isArray(e)?e:[e];return su.has(t)||su.set(t,new zb(t)),su.get(t)}const fg=new WeakMap;function Ol(e){let t=fg.get(e)||"";return t||(Object.keys(e).forEach(n=>{const r=e[n];t+=n,r instanceof zb?t+=r.id:r&&typeof r=="object"?t+=Ol(r):t+=r}),fg.set(e,t)),t}function W$(e,t){return qd(`${t}_${Ol(e)}`)}const mi=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),qb="_bAmBoO_";function z$(e,t,n){var r,o;if(En()){Li(e,mi);const s=document.createElement("div");s.style.position="fixed",s.style.left="0",s.style.top="0",t?.(s),document.body.appendChild(s);const i=n?n(s):(r=getComputedStyle(s).content)===null||r===void 0?void 0:r.includes(qb);return(o=s.parentNode)===null||o===void 0||o.removeChild(s),xl(mi),i}return!1}let iu;function V$(){return iu===void 0&&(iu=z$(`@layer ${mi} { .${mi} { content: "${qb}"!important; } }`,e=>{e.className=mi})),iu}const dg={},q$="css",Vr=new Map;function G$(e){Vr.set(e,(Vr.get(e)||0)+1)}function K$(e,t){typeof document<"u"&&document.querySelectorAll(`style[${Nb}="${e}"]`).forEach(r=>{var o;r[Zo]===t&&((o=r.parentNode)===null||o===void 0||o.removeChild(r))})}const J$=0;function Y$(e,t){Vr.set(e,(Vr.get(e)||0)-1);const n=Array.from(Vr.keys()),r=n.filter(o=>(Vr.get(o)||0)<=0);n.length-r.length>J$&&r.forEach(o=>{K$(o,t),Vr.delete(o)})}const X$=(e,t,n,r)=>{const o=n.getDerivativeToken(e);let s=x(x({},o),t);return r&&(s=r(s)),s};function Q$(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:te({});const r=lc(),o=R(()=>x({},...t.value)),s=R(()=>Ol(o.value)),i=R(()=>Ol(n.value.override||dg));return Mb("token",R(()=>[n.value.salt||"",e.value.id,s.value,i.value]),()=>{const{salt:l="",override:u=dg,formatToken:c,getComputedToken:f}=n.value,d=f?f(o.value,u,e.value):X$(o.value,u,e.value,c),h=W$(d,l);d._tokenKey=h,G$(h);const p=`${q$}-${qd(h)}`;return d._hashId=p,[d,p]},l=>{var u;Y$(l[0]._tokenKey,(u=r.value)===null||u===void 0?void 0:u.cache.instanceId)})}var Z$={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Gb="comm",Kb="rule",Jb="decl",eR="@import",tR="@namespace",nR="@keyframes",rR="@layer",Yb=Math.abs,Gd=String.fromCharCode;function Xb(e){return e.trim()}function Fa(e,t,n){return e.replace(t,n)}function oR(e,t,n){return e.indexOf(t,n)}function fs(e,t){return e.charCodeAt(t)|0}function Ss(e,t,n){return e.slice(t,n)}function In(e){return e.length}function sR(e){return e.length}function _a(e,t){return t.push(e),e}var fc=1,Cs=1,Qb=0,fn=0,nt=0,Ls="";function Kd(e,t,n,r,o,s,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:fc,column:Cs,length:i,return:"",siblings:a}}function iR(){return nt}function aR(){return nt=fn>0?fs(Ls,--fn):0,Cs--,nt===10&&(Cs=1,fc--),nt}function bn(){return nt=fn<Qb?fs(Ls,fn++):0,Cs++,nt===10&&(Cs=1,fc++),nt}function Er(){return fs(Ls,fn)}function Ha(){return fn}function dc(e,t){return Ss(Ls,e,t)}function ji(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function lR(e){return fc=Cs=1,Qb=In(Ls=e),fn=0,[]}function cR(e){return Ls="",e}function au(e){return Xb(dc(fn-1,yf(e===91?e+2:e===40?e+1:e)))}function uR(e){for(;(nt=Er())&&nt<33;)bn();return ji(e)>2||ji(nt)>3?"":" "}function fR(e,t){for(;--t&&bn()&&!(nt<48||nt>102||nt>57&&nt<65||nt>70&&nt<97););return dc(e,Ha()+(t<6&&Er()==32&&bn()==32))}function yf(e){for(;bn();)switch(nt){case e:return fn;case 34:case 39:e!==34&&e!==39&&yf(nt);break;case 40:e===41&&yf(e);break;case 92:bn();break}return fn}function dR(e,t){for(;bn()&&e+nt!==57;)if(e+nt===84&&Er()===47)break;return"/*"+dc(t,fn-1)+"*"+Gd(e===47?e:bn())}function hR(e){for(;!ji(Er());)bn();return dc(e,fn)}function pR(e){return cR(Wa("",null,null,null,[""],e=lR(e),0,[0],e))}function Wa(e,t,n,r,o,s,i,a,l){for(var u=0,c=0,f=i,d=0,h=0,p=0,g=1,y=1,b=1,v=0,m="",_=o,S=s,E=r,w=m;y;)switch(p=v,v=bn()){case 40:if(p!=108&&fs(w,f-1)==58){oR(w+=Fa(au(v),"&","&\f"),"&\f",Yb(u?a[u-1]:0))!=-1&&(b=-1);break}case 34:case 39:case 91:w+=au(v);break;case 9:case 10:case 13:case 32:w+=uR(p);break;case 92:w+=fR(Ha()-1,7);continue;case 47:switch(Er()){case 42:case 47:_a(gR(dR(bn(),Ha()),t,n,l),l),(ji(p||1)==5||ji(Er()||1)==5)&&In(w)&&Ss(w,-1,void 0)!==" "&&(w+=" ");break;default:w+="/"}break;case 123*g:a[u++]=In(w)*b;case 125*g:case 59:case 0:switch(v){case 0:case 125:y=0;case 59+c:b==-1&&(w=Fa(w,/\f/g,"")),h>0&&(In(w)-f||g===0&&p===47)&&_a(h>32?pg(w+";",r,n,f-1,l):pg(Fa(w," ","")+";",r,n,f-2,l),l);break;case 59:w+=";";default:if(_a(E=hg(w,t,n,u,c,o,a,m,_=[],S=[],f,s),s),v===123)if(c===0)Wa(w,t,E,E,_,s,f,a,S);else{switch(d){case 99:if(fs(w,3)===110)break;case 108:if(fs(w,2)===97)break;default:c=0;case 100:case 109:case 115:}c?Wa(e,E,E,r&&_a(hg(e,E,E,0,0,o,a,m,o,_=[],f,S),S),o,S,f,a,r?_:S):Wa(w,E,E,E,[""],S,0,a,S)}}u=c=h=0,g=b=1,m=w="",f=i;break;case 58:f=1+In(w),h=p;default:if(g<1){if(v==123)--g;else if(v==125&&g++==0&&aR()==125)continue}switch(w+=Gd(v),v*g){case 38:b=c>0?1:(w+="\f",-1);break;case 44:a[u++]=(In(w)-1)*b,b=1;break;case 64:Er()===45&&(w+=au(bn())),d=Er(),c=f=In(m=w+=hR(Ha())),v++;break;case 45:p===45&&In(w)==2&&(g=0)}}return s}function hg(e,t,n,r,o,s,i,a,l,u,c,f){for(var d=o-1,h=o===0?s:[""],p=sR(h),g=0,y=0,b=0;g<r;++g)for(var v=0,m=Ss(e,d+1,d=Yb(y=i[g])),_=e;v<p;++v)(_=Xb(y>0?h[v]+" "+m:Fa(m,/&\f/g,h[v])))&&(l[b++]=_);return Kd(e,t,n,o===0?Kb:a,l,u,c,f)}function gR(e,t,n,r){return Kd(e,t,n,Gb,Gd(iR()),Ss(e,2,-2),0,r)}function pg(e,t,n,r,o){return Kd(e,t,n,Jb,Ss(e,0,r),Ss(e,r+1,-1),r,o)}function vf(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function mR(e,t,n,r){switch(e.type){case rR:if(e.children.length)break;case eR:case tR:case Jb:return e.return=e.return||e.value;case Gb:return"";case nR:return e.return=e.value+"{"+vf(e.children,r)+"}";case Kb:if(!In(e.value=e.props.join(",")))return""}return In(n=vf(e.children,r))?e.return=e.value+"{"+n+"}":""}const gg="data-ant-cssinjs-cache-path",yR="_FILE_STYLE__";let ao,Zb=!0;function vR(){var e;if(!ao&&(ao={},En())){const t=document.createElement("div");t.className=gg,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);let n=getComputedStyle(t).content||"";n=n.replace(/^"/,"").replace(/"$/,""),n.split(";").forEach(o=>{const[s,i]=o.split(":");ao[s]=i});const r=document.querySelector(`style[${gg}]`);r&&(Zb=!1,(e=r.parentNode)===null||e===void 0||e.removeChild(r)),document.body.removeChild(t)}}function bR(e){return vR(),!!ao[e]}function _R(e){const t=ao[e];let n=null;if(t&&En())if(Zb)n=yR;else{const r=document.querySelector(`style[${io}="${ao[e]}"]`);r?n=r.innerHTML:delete ao[e]}return[n,t]}const mg=En(),wR="_skip_check_",e_="_multi_value_";function yg(e){return vf(pR(e),mR).replace(/\{%%%\:[^;];}/g,";")}function SR(e){return typeof e=="object"&&e&&(wR in e||e_ in e)}function CR(e,t,n){if(!t)return e;const r=`.${t}`,o=n==="low"?`:where(${r})`:r;return e.split(",").map(i=>{var a;const l=i.trim().split(/\s+/);let u=l[0]||"";const c=((a=u.match(/^\w+/))===null||a===void 0?void 0:a[0])||"";return u=`${c}${o}${u.slice(c.length)}`,[u,...l.slice(1)].join(" ")}).join(",")}const vg=new Set,bf=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{root:n,injectHash:r,parentSelectors:o}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]};const{hashId:s,layer:i,path:a,hashPriority:l,transformers:u=[],linters:c=[]}=t;let f="",d={};function h(y){const b=y.getName(s);if(!d[b]){const[v]=bf(y.style,t,{root:!1,parentSelectors:o});d[b]=`@keyframes ${y.getName(s)}${v}`}}function p(y){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return y.forEach(v=>{Array.isArray(v)?p(v,b):v&&b.push(v)}),b}if(p(Array.isArray(e)?e:[e]).forEach(y=>{const b=typeof y=="string"&&!n?{}:y;if(typeof b=="string")f+=`${b}
|
||
`;else if(b._keyframe)h(b);else{const v=u.reduce((m,_)=>{var S;return((S=_?.visit)===null||S===void 0?void 0:S.call(_,m))||m},b);Object.keys(v).forEach(m=>{var _;const S=v[m];if(typeof S=="object"&&S&&(m!=="animationName"||!S._keyframe)&&!SR(S)){let E=!1,w=m.trim(),A=!1;(n||r)&&s?w.startsWith("@")?E=!0:w=CR(m,s,l):n&&!s&&(w==="&"||w==="")&&(w="",A=!0);const[O,L]=bf(S,t,{root:A,injectHash:E,parentSelectors:[...o,w]});d=x(x({},d),L),f+=`${w}${O}`}else{let E=function(A,O){const L=A.replace(/[A-Z]/g,k=>`-${k.toLowerCase()}`);let N=O;!Z$[A]&&typeof N=="number"&&N!==0&&(N=`${N}px`),A==="animationName"&&O?._keyframe&&(h(O),N=O.getName(s)),f+=`${L}:${N};`};const w=(_=S?.value)!==null&&_!==void 0?_:S;typeof S=="object"&&S?.[e_]&&Array.isArray(w)?w.forEach(A=>{E(m,A)}):E(m,w)}})}}),!n)f=`{${f}}`;else if(i&&V$()){const y=i.split(",");f=`@layer ${y[y.length-1].trim()} {${f}}`,y.length>1&&(f=`@layer ${i}{%%%:%}${f}`)}return[f,d]};function ER(e,t){return qd(`${e.join("%")}${t}`)}function _f(e,t){const n=lc(),r=R(()=>e.value.token._tokenKey),o=R(()=>[r.value,...e.value.path]);let s=mg;return Mb("style",o,()=>{const{path:i,hashId:a,layer:l,nonce:u,clientOnly:c,order:f=0}=e.value,d=o.value.join("|");if(bR(d)){const[w,A]=_R(d);if(w)return[w,r.value,A,{},c,f]}const h=t(),{hashPriority:p,container:g,transformers:y,linters:b,cache:v}=n.value,[m,_]=bf(h,{hashId:a,hashPriority:p,layer:l,path:i.join("-"),transformers:y,linters:b}),S=yg(m),E=ER(o.value,S);if(s){const w={mark:io,prepend:"queue",attachTo:g,priority:f},A=typeof u=="function"?u():u;A&&(w.csp={nonce:A});const O=Li(S,E,w);O[Zo]=v.instanceId,O.setAttribute(Nb,r.value),Object.keys(_).forEach(L=>{vg.has(L)||(vg.add(L),Li(yg(_[L]),`_effect-${L}`,{mark:io,prepend:"queue",attachTo:g}))})}return[S,r.value,E,_,c,f]},(i,a)=>{let[,,l]=i;(a||n.value.autoClear)&&mg&&xl(l,{mark:io})}),i=>i}class Je{constructor(t,n){this._keyframe=!0,this.name=t,this.style=n}getName(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return t?`${t}-${this.name}`:this.name}}const TR="4.1.2";function wt(e,t){xR(e)&&(e="100%");var n=OR(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 wa(e){return Math.min(1,Math.max(0,e))}function xR(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function OR(e){return typeof e=="string"&&e.indexOf("%")!==-1}function t_(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Sa(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Yr(e){return e.length===1?"0"+e:String(e)}function AR(e,t,n){return{r:wt(e,255)*255,g:wt(t,255)*255,b:wt(n,255)*255}}function bg(e,t,n){e=wt(e,255),t=wt(t,255),n=wt(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),s=0,i=0,a=(r+o)/2;if(r===o)i=0,s=0;else{var l=r-o;switch(i=a>.5?l/(2-r-o):l/(r+o),r){case e:s=(t-n)/l+(t<n?6:0);break;case t:s=(n-e)/l+2;break;case n:s=(e-t)/l+4;break}s/=6}return{h:s,s:i,l:a}}function lu(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 PR(e,t,n){var r,o,s;if(e=wt(e,360),t=wt(t,100),n=wt(n,100),t===0)o=n,s=n,r=n;else{var i=n<.5?n*(1+t):n+t-n*t,a=2*n-i;r=lu(a,i,e+1/3),o=lu(a,i,e),s=lu(a,i,e-1/3)}return{r:r*255,g:o*255,b:s*255}}function wf(e,t,n){e=wt(e,255),t=wt(t,255),n=wt(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),s=0,i=r,a=r-o,l=r===0?0:a/r;if(r===o)s=0;else{switch(r){case e:s=(t-n)/a+(t<n?6:0);break;case t:s=(n-e)/a+2;break;case n:s=(e-t)/a+4;break}s/=6}return{h:s,s:l,v:i}}function $R(e,t,n){e=wt(e,360)*6,t=wt(t,100),n=wt(n,100);var r=Math.floor(e),o=e-r,s=n*(1-t),i=n*(1-o*t),a=n*(1-(1-o)*t),l=r%6,u=[n,i,s,s,a,n][l],c=[a,n,n,i,s,s][l],f=[s,s,a,n,n,i][l];return{r:u*255,g:c*255,b:f*255}}function Sf(e,t,n,r){var o=[Yr(Math.round(e).toString(16)),Yr(Math.round(t).toString(16)),Yr(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function RR(e,t,n,r,o){var s=[Yr(Math.round(e).toString(16)),Yr(Math.round(t).toString(16)),Yr(Math.round(n).toString(16)),Yr(kR(r))];return o&&s[0].startsWith(s[0].charAt(1))&&s[1].startsWith(s[1].charAt(1))&&s[2].startsWith(s[2].charAt(1))&&s[3].startsWith(s[3].charAt(1))?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0)+s[3].charAt(0):s.join("")}function kR(e){return Math.round(parseFloat(e)*255).toString(16)}function _g(e){return Gt(e)/255}function Gt(e){return parseInt(e,16)}function IR(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Cf={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 qo(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,s=null,i=!1,a=!1;return typeof e=="string"&&(e=jR(e)),typeof e=="object"&&(Hn(e.r)&&Hn(e.g)&&Hn(e.b)?(t=AR(e.r,e.g,e.b),i=!0,a=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Hn(e.h)&&Hn(e.s)&&Hn(e.v)?(r=Sa(e.s),o=Sa(e.v),t=$R(e.h,r,o),i=!0,a="hsv"):Hn(e.h)&&Hn(e.s)&&Hn(e.l)&&(r=Sa(e.s),s=Sa(e.l),t=PR(e.h,r,s),i=!0,a="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=t_(n),{ok:i,format:e.format||a,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var NR="[-\\+]?\\d+%?",LR="[-\\+]?\\d*\\.\\d+%?",Tr="(?:".concat(LR,")|(?:").concat(NR,")"),cu="[\\s|\\(]+(".concat(Tr,")[,|\\s]+(").concat(Tr,")[,|\\s]+(").concat(Tr,")\\s*\\)?"),uu="[\\s|\\(]+(".concat(Tr,")[,|\\s]+(").concat(Tr,")[,|\\s]+(").concat(Tr,")[,|\\s]+(").concat(Tr,")\\s*\\)?"),hn={CSS_UNIT:new RegExp(Tr),rgb:new RegExp("rgb"+cu),rgba:new RegExp("rgba"+uu),hsl:new RegExp("hsl"+cu),hsla:new RegExp("hsla"+uu),hsv:new RegExp("hsv"+cu),hsva:new RegExp("hsva"+uu),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 jR(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Cf[e])e=Cf[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=hn.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=hn.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=hn.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=hn.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=hn.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=hn.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=hn.hex8.exec(e),n?{r:Gt(n[1]),g:Gt(n[2]),b:Gt(n[3]),a:_g(n[4]),format:t?"name":"hex8"}:(n=hn.hex6.exec(e),n?{r:Gt(n[1]),g:Gt(n[2]),b:Gt(n[3]),format:t?"name":"hex"}:(n=hn.hex4.exec(e),n?{r:Gt(n[1]+n[1]),g:Gt(n[2]+n[2]),b:Gt(n[3]+n[3]),a:_g(n[4]+n[4]),format:t?"name":"hex8"}:(n=hn.hex3.exec(e),n?{r:Gt(n[1]+n[1]),g:Gt(n[2]+n[2]),b:Gt(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Hn(e){return!!hn.CSS_UNIT.exec(String(e))}var bt=(function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=IR(t)),this.originalInput=t;var o=qo(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.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=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,s=t.r/255,i=t.g/255,a=t.b/255;return s<=.03928?n=s/12.92:n=Math.pow((s+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),a<=.03928?o=a/12.92:o=Math.pow((a+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=t_(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=wf(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=wf(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=bg(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=bg(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Sf(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),RR(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(wt(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(wt(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Sf(this.r,this.g,this.b,!1),n=0,r=Object.entries(Cf);n<r.length;n++){var o=r[n],s=o[0],i=o[1];if(t===i)return s}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var r=!1,o=this.a<1&&this.a>=0,s=!n&&o&&(t.startsWith("hex")||t==="name");return s?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=wa(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=wa(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=wa(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=wa(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),s=n/100,i={r:(o.r-r.r)*s+r.r,g:(o.g-r.g)*s+r.g,b:(o.b-r.b)*s+r.b,a:(o.a-r.a)*s+r.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,s=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,s.push(new e(r));return s},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,s=n.v,i=[],a=1/t;t--;)i.push(new e({h:r,s:o,v:s})),s=(s+a)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],s=360/t,i=1;i<t;i++)o.push(new e({h:(r+i*s)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e})(),Ca=2,wg=.16,MR=.05,DR=.05,BR=.15,n_=5,r_=4,UR=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Sg(e){var t=e.r,n=e.g,r=e.b,o=wf(t,n,r);return{h:o.h*360,s:o.s,v:o.v}}function Ea(e){var t=e.r,n=e.g,r=e.b;return"#".concat(Sf(t,n,r,!1))}function FR(e,t,n){var r=n/100,o={r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b};return o}function Cg(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Ca*t:Math.round(e.h)+Ca*t:r=n?Math.round(e.h)+Ca*t:Math.round(e.h)-Ca*t,r<0?r+=360:r>=360&&(r-=360),r}function Eg(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-wg*t:t===r_?r=e.s+wg:r=e.s+MR*t,r>1&&(r=1),n&&t===n_&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function Tg(e,t,n){var r;return n?r=e.v+DR*t:r=e.v-BR*t,r>1&&(r=1),Number(r.toFixed(2))}function yo(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=qo(e),o=n_;o>0;o-=1){var s=Sg(r),i=Ea(qo({h:Cg(s,o,!0),s:Eg(s,o,!0),v:Tg(s,o,!0)}));n.push(i)}n.push(Ea(r));for(var a=1;a<=r_;a+=1){var l=Sg(r),u=Ea(qo({h:Cg(l,a),s:Eg(l,a),v:Tg(l,a)}));n.push(u)}return t.theme==="dark"?UR.map(function(c){var f=c.index,d=c.opacity,h=Ea(FR(qo(t.backgroundColor||"#141414"),qo(n[f]),d*100));return h}):n}var fu={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},za={},du={};Object.keys(fu).forEach(function(e){za[e]=yo(fu[e]),za[e].primary=za[e][5],du[e]=yo(fu[e],{theme:"dark",backgroundColor:"#141414"}),du[e].primary=du[e][5]});var HR=za.blue;const WR=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function zR(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const o_={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},hc=x(x({},o_),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
||
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
||
'Noto Color Emoji'`,fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1});function VR(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:s,colorError:i,colorInfo:a,colorPrimary:l,colorBgBase:u,colorTextBase:c}=e,f=n(l),d=n(o),h=n(s),p=n(i),g=n(a),y=r(u,c);return x(x({},y),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorBgMask:new bt("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const qR=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e>16?16:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};function GR(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return x({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},qR(r))}const Wn=(e,t)=>new bt(e).setAlpha(t).toRgbString(),Js=(e,t)=>new bt(e).darken(t).toHexString(),KR=e=>{const t=yo(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},JR=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Wn(r,.88),colorTextSecondary:Wn(r,.65),colorTextTertiary:Wn(r,.45),colorTextQuaternary:Wn(r,.25),colorFill:Wn(r,.15),colorFillSecondary:Wn(r,.06),colorFillTertiary:Wn(r,.04),colorFillQuaternary:Wn(r,.02),colorBgLayout:Js(n,4),colorBgContainer:Js(n,0),colorBgElevated:Js(n,0),colorBgSpotlight:Wn(r,.85),colorBorder:Js(n,15),colorBorderSecondary:Js(n,6)}};function YR(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,s=e*Math.pow(2.71828,o/5),i=r>1?Math.floor(s):Math.ceil(s);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>{const r=n+8;return{size:n,lineHeight:r/n}})}const XR=e=>{const t=YR(e),n=t.map(o=>o.size),r=t.map(o=>o.lineHeight);return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:r[1],lineHeightLG:r[2],lineHeightSM:r[0],lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function QR(e){const t=Object.keys(o_).map(n=>{const r=yo(e[n]);return new Array(10).fill(1).reduce((o,s,i)=>(o[`${n}-${i+1}`]=r[i],o),{})}).reduce((n,r)=>(n=x(x({},n),r),n),{});return x(x(x(x(x(x(x({},e),t),VR(e,{generateColorPalettes:KR,generateNeutralColorPalettes:JR})),XR(e.fontSize)),zR(e)),WR(e)),GR(e))}function hu(e){return e>=0&&e<=255}function Ta(e,t){const{r:n,g:r,b:o,a:s}=new bt(e).toRgb();if(s<1)return e;const{r:i,g:a,b:l}=new bt(t).toRgb();for(let u=.01;u<=1;u+=.01){const c=Math.round((n-i*(1-u))/u),f=Math.round((r-a*(1-u))/u),d=Math.round((o-l*(1-u))/u);if(hu(c)&&hu(f)&&hu(d))return new bt({r:c,g:f,b:d,a:Math.round(u*100)/100}).toRgbString()}return new bt({r:n,g:r,b:o,a:1}).toRgbString()}var ZR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function ek(e){const{override:t}=e,n=ZR(e,["override"]),r=x({},t);Object.keys(hc).forEach(h=>{delete r[h]});const o=x(x({},n),r),s=480,i=576,a=768,l=992,u=1200,c=1600,f=2e3;return x(x(x({},o),{colorLink:o.colorInfoText,colorLinkHover:o.colorInfoHover,colorLinkActive:o.colorInfoActive,colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Ta(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:Ta(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Ta(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Ta(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
|
||
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
||
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
||
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
||
`,boxShadowSecondary:`
|
||
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
||
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
||
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
||
`,boxShadowTertiary:`
|
||
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
||
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
||
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
||
`,screenXS:s,screenXSMin:s,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:a-1,screenMD:a,screenMDMin:a,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:u-1,screenXL:u,screenXLMin:u,screenXLMax:c-1,screenXXL:c,screenXXLMin:c,screenXXLMax:f-1,screenXXXL:f,screenXXXLMin:f,boxShadowPopoverArrow:"3px 3px 7px rgba(0, 0, 0, 0.1)",boxShadowCard:`
|
||
0 1px 2px -2px ${new bt("rgba(0, 0, 0, 0.16)").toRgbString()},
|
||
0 3px 6px 0 ${new bt("rgba(0, 0, 0, 0.12)").toRgbString()},
|
||
0 5px 12px 4px ${new bt("rgba(0, 0, 0, 0.09)").toRgbString()}
|
||
`,boxShadowDrawerRight:`
|
||
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
||
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
||
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
||
`,boxShadowDrawerLeft:`
|
||
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
||
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
||
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
||
`,boxShadowDrawerUp:`
|
||
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
||
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
||
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
||
`,boxShadowDrawerDown:`
|
||
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
||
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
||
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
||
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}const P8={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Jd=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),tk=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),nk=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),rk=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),ok=(e,t)=>{const{fontFamily:n,fontSize:r}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return{[o]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},sk=e=>({outline:`${e.lineWidthBold}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),s_=e=>({"&:focus-visible":x({},sk(e))});function Eo(e,t,n){return r=>{const o=R(()=>r?.value),[s,i,a]=Zi(),{getPrefixCls:l,iconPrefixCls:u}=Wd(),c=R(()=>l()),f=R(()=>({theme:s.value,token:i.value,hashId:a.value,path:["Shared",c.value]}));_f(f,()=>[{"&":rk(i.value)}]);const d=R(()=>({theme:s.value,token:i.value,hashId:a.value,path:[e,o.value,u.value]}));return[_f(d,()=>{const{token:h,flush:p}=ak(i.value),g=typeof n=="function"?n(h):n,y=x(x({},g),i.value[e]),b=`.${o.value}`,v=Rr(h,{componentCls:b,prefixCls:o.value,iconCls:`.${u.value}`,antCls:`.${c.value}`},y),m=t(v,{hashId:a.value,prefixCls:o.value,rootPrefixCls:c.value,iconPrefixCls:u.value,overrideComponentToken:i.value[e]});return p(e,y),[ok(i.value,o.value),m]}),a]}}const i_=typeof CSSINJS_STATISTIC<"u";let Ef=!0;function Rr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!i_)return x({},...t);Ef=!1;const r={};return t.forEach(o=>{Object.keys(o).forEach(i=>{Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:()=>o[i]})})}),Ef=!0,r}function ik(){}function ak(e){let t,n=e,r=ik;return i_&&(t=new Set,n=new Proxy(e,{get(o,s){return Ef&&t.add(s),o[s]}}),r=(o,s)=>{Array.from(t)}),{token:n,keys:t,flush:r}}const lk=Vb(QR),a_={token:hc,hashed:!0},l_=Symbol("DesignTokenContext"),Tf=se(),ck=e=>{_t(l_,e),Se(e,()=>{Tf.value=U(e),xC(Tf)},{immediate:!0,deep:!0})},uk=he({props:{value:tt()},setup(e,t){let{slots:n}=t;return ck(R(()=>e.value)),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});function Zi(){const e=Te(l_,R(()=>Tf.value||a_)),t=R(()=>`${TR}-${e.value.hashed||""}`),n=R(()=>e.value.theme||lk),r=Q$(n,R(()=>[hc,e.value.token]),R(()=>({salt:t.value,override:x({override:e.value.token},e.value.components),formatToken:ek})));return[n,R(()=>r.value[0]),R(()=>e.value.hashed?r.value[1]:"")]}const c_=he({compatConfig:{MODE:3},setup(){const[,e]=Zi(),t=R(()=>new bt(e.value.colorBgBase).toHsl().l<.5?{opacity:.65}:{});return()=>P("svg",{style:t.value,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},[P("g",{fill:"none","fill-rule":"evenodd"},[P("g",{transform:"translate(24 31.67)"},[P("ellipse",{"fill-opacity":".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"},null),P("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"},null),P("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"},null),P("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"},null),P("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"},null)]),P("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"},null),P("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},[P("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"},null),P("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"},null)])])])}});c_.PRESENTED_IMAGE_DEFAULT=!0;const u_=he({compatConfig:{MODE:3},setup(){const[,e]=Zi(),t=R(()=>{const{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:s}=e.value;return{borderColor:new bt(n).onBackground(s).toHexString(),shadowColor:new bt(r).onBackground(s).toHexString(),contentColor:new bt(o).onBackground(s).toHexString()}});return()=>P("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},[P("g",{transform:"translate(0 1)",fill:"none","fill-rule":"evenodd"},[P("ellipse",{fill:t.value.shadowColor,cx:"32",cy:"33",rx:"32",ry:"7"},null),P("g",{"fill-rule":"nonzero",stroke:t.value.borderColor},[P("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"},null),P("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:t.value.contentColor},null)])])])}});u_.PRESENTED_IMAGE_SIMPLE=!0;const fk=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:s,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:s,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{height:"100%",margin:"auto"}},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},dk=Eo("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,r=Rr(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return[fk(r)]});var hk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const f_=P(c_,null,null),d_=P(u_,null,null),pk=()=>({prefixCls:String,imageStyle:tt(),image:gf(),description:gf()}),Yd=he({name:"AEmpty",compatConfig:{MODE:3},inheritAttrs:!1,props:pk(),setup(e,t){let{slots:n={},attrs:r}=t;const{direction:o,prefixCls:s}=ur("empty",e),[i,a]=dk(s);return()=>{var l,u;const c=s.value,f=x(x({},e),r),{image:d=((l=n.image)===null||l===void 0?void 0:l.call(n))||f_,description:h=((u=n.description)===null||u===void 0?void 0:u.call(n))||void 0,imageStyle:p,class:g=""}=f,y=hk(f,["image","description","imageStyle","class"]);return i(P(Ib,{componentName:"Empty",children:b=>{const v=typeof h<"u"?h:b.description,m=typeof v=="string"?v:"empty";let _=null;return typeof d=="string"?_=P("img",{alt:m,src:d},null):_=d,P("div",ue({class:Xe(c,g,a.value,{[`${c}-normal`]:d===d_,[`${c}-rtl`]:o.value==="rtl"})},y),[P("div",{class:`${c}-image`,style:p},[_]),v&&P("p",{class:`${c}-description`},[v]),n.default&&P("div",{class:`${c}-footer`},[ac(n.default())])])}},null))}}});Yd.PRESENTED_IMAGE_DEFAULT=f_;Yd.PRESENTED_IMAGE_SIMPLE=d_;const Ys=Ud(Yd),h_=e=>{const{prefixCls:t}=ur("empty",e);return(r=>{switch(r){case"Table":case"List":return P(Ys,{image:Ys.PRESENTED_IMAGE_SIMPLE},null);case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return P(Ys,{image:Ys.PRESENTED_IMAGE_SIMPLE,class:`${t.value}-small`},null);default:return P(Ys,null,null)}})(e.componentName)};function gk(e){return P(h_,{componentName:e},null)}const p_=Symbol("SizeContextKey"),g_=()=>Te(p_,te(void 0)),mk=e=>{const t=g_();return _t(p_,R(()=>e.value||t.value)),e},ur=((e,t)=>{const n=g_(),r=zd(),o=Te(Hd,x(x({},$b),{renderEmpty:w=>ut(h_,{componentName:w})})),s=R(()=>o.getPrefixCls(e,t.prefixCls)),i=R(()=>{var w,A;return(w=t.direction)!==null&&w!==void 0?w:(A=o.direction)===null||A===void 0?void 0:A.value}),a=R(()=>{var w;return(w=t.iconPrefixCls)!==null&&w!==void 0?w:o.iconPrefixCls.value}),l=R(()=>o.getPrefixCls()),u=R(()=>{var w;return(w=o.autoInsertSpaceInButton)===null||w===void 0?void 0:w.value}),c=o.renderEmpty,f=o.space,d=o.pageHeader,h=o.form,p=R(()=>{var w,A;return(w=t.getTargetContainer)!==null&&w!==void 0?w:(A=o.getTargetContainer)===null||A===void 0?void 0:A.value}),g=R(()=>{var w,A,O;return(A=(w=t.getContainer)!==null&&w!==void 0?w:t.getPopupContainer)!==null&&A!==void 0?A:(O=o.getPopupContainer)===null||O===void 0?void 0:O.value}),y=R(()=>{var w,A;return(w=t.dropdownMatchSelectWidth)!==null&&w!==void 0?w:(A=o.dropdownMatchSelectWidth)===null||A===void 0?void 0:A.value}),b=R(()=>{var w;return(t.virtual===void 0?((w=o.virtual)===null||w===void 0?void 0:w.value)!==!1:t.virtual!==!1)&&y.value!==!1}),v=R(()=>t.size||n.value),m=R(()=>{var w,A,O;return(w=t.autocomplete)!==null&&w!==void 0?w:(O=(A=o.input)===null||A===void 0?void 0:A.value)===null||O===void 0?void 0:O.autocomplete}),_=R(()=>{var w;return(w=t.disabled)!==null&&w!==void 0?w:r.value}),S=R(()=>{var w;return(w=t.csp)!==null&&w!==void 0?w:o.csp}),E=R(()=>{var w,A;return(w=t.wave)!==null&&w!==void 0?w:(A=o.wave)===null||A===void 0?void 0:A.value});return{configProvider:o,prefixCls:s,direction:i,size:v,getTargetContainer:p,getPopupContainer:g,space:f,pageHeader:d,form:h,autoInsertSpaceInButton:u,renderEmpty:c,virtual:b,dropdownMatchSelectWidth:y,rootPrefixCls:l,getPrefixCls:o.getPrefixCls,autocomplete:m,csp:S,iconPrefixCls:a,disabled:_,select:o.select,wave:E}});function m_(e,t){const n=x({},e);for(let r=0;r<t.length;r+=1){const o=t[r];delete n[o]}return n}function yk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y_(e,t,n){return n&&yk(e,n),e}function Va(){return(Va=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function v_(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function b_(e,t){if(e==null)return{};var n,r,o={},s=Object.keys(e);for(r=0;r<s.length;r++)t.indexOf(n=s[r])>=0||(o[n]=e[n]);return o}function xg(e){return((t=e)!=null&&typeof t=="object"&&Array.isArray(t)===!1)==1&&Object.prototype.toString.call(e)==="[object Object]";var t}var __=Object.prototype,w_=__.toString,vk=__.hasOwnProperty,S_=/^\s*function (\w+)/;function Og(e){var t,n=(t=e?.type)!==null&&t!==void 0?t:e;if(n){var r=n.toString().match(S_);return r?r[1]:""}return""}var vo=function(e){var t,n;return xg(e)!==!1&&typeof(t=e.constructor)=="function"&&xg(n=t.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1},bk=function(e){return e},Zt=bk,Mi=function(e,t){return vk.call(e,t)},_k=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},Es=Array.isArray||function(e){return w_.call(e)==="[object Array]"},Ts=function(e){return w_.call(e)==="[object Function]"},Al=function(e){return vo(e)&&Mi(e,"_vueTypes_name")},C_=function(e){return vo(e)&&(Mi(e,"type")||["_vueTypes_name","validator","default","required"].some(function(t){return Mi(e,t)}))};function Xd(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function To(e,t,n){var r,o=!0,s="";r=vo(e)?e:{type:e};var i=Al(r)?r._vueTypes_name+" - ":"";if(C_(r)&&r.type!==null){if(r.type===void 0||r.type===!0||!r.required&&t===void 0)return o;Es(r.type)?(o=r.type.some(function(f){return To(f,t)===!0}),s=r.type.map(function(f){return Og(f)}).join(" or ")):o=(s=Og(r))==="Array"?Es(t):s==="Object"?vo(t):s==="String"||s==="Number"||s==="Boolean"||s==="Function"?(function(f){if(f==null)return"";var d=f.constructor.toString().match(S_);return d?d[1]:""})(t)===s:t instanceof r.type}if(!o){var a=i+'value "'+t+'" should be of type "'+s+'"';return a}if(Mi(r,"validator")&&Ts(r.validator)){var l=Zt,u=[];if(Zt=function(f){u.push(f)},o=r.validator(t),Zt=l,!o){var c=(u.length>1?"* ":"")+u.join(`
|
||
* `);return u.length=0,c}}return o}function tn(e,t){var n=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(o){return o!==void 0||this.default?Ts(o)||To(this,o)===!0?(this.default=Es(o)?function(){return[].concat(o)}:vo(o)?function(){return Object.assign({},o)}:o,this):(Zt(this._vueTypes_name+' - invalid default value: "'+o+'"'),this):this}}}),r=n.validator;return Ts(r)&&(n.validator=Xd(r,n)),n}function Mn(e,t){var n=tn(e,t);return Object.defineProperty(n,"validate",{value:function(r){return Ts(this.validator)&&Zt(this._vueTypes_name+` - calling .validate() will overwrite the current custom validator function. Validator info:
|
||
`+JSON.stringify(this)),this.validator=Xd(r,this),this}})}function Ag(e,t,n){var r,o,s=(r=t,o={},Object.getOwnPropertyNames(r).forEach(function(f){o[f]=Object.getOwnPropertyDescriptor(r,f)}),Object.defineProperties({},o));if(s._vueTypes_name=e,!vo(n))return s;var i,a,l=n.validator,u=b_(n,["validator"]);if(Ts(l)){var c=s.validator;c&&(c=(a=(i=c).__original)!==null&&a!==void 0?a:i),s.validator=Xd(c?function(f){return c.call(this,f)&&l.call(this,f)}:l,s)}return Object.assign(s,u)}function pc(e){return e.replace(/^(?!\s*$)/gm," ")}var wk=function(){return Mn("any",{})},Sk=function(){return Mn("function",{type:Function})},Ck=function(){return Mn("boolean",{type:Boolean})},Ek=function(){return Mn("string",{type:String})},Tk=function(){return Mn("number",{type:Number})},xk=function(){return Mn("array",{type:Array})},Ok=function(){return Mn("object",{type:Object})},Ak=function(){return tn("integer",{type:Number,validator:function(e){return _k(e)}})},Pk=function(){return tn("symbol",{validator:function(e){return typeof e=="symbol"}})};function $k(e,t){if(t===void 0&&(t="custom validation failed"),typeof e!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return tn(e.name||"<<anonymous function>>",{validator:function(n){var r=e(n);return r||Zt(this._vueTypes_name+" - "+t),r}})}function Rk(e){if(!Es(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var t='oneOf - value should be one of "'+e.join('", "')+'".',n=e.reduce(function(r,o){if(o!=null){var s=o.constructor;r.indexOf(s)===-1&&r.push(s)}return r},[]);return tn("oneOf",{type:n.length>0?n:void 0,validator:function(r){var o=e.indexOf(r)!==-1;return o||Zt(t),o}})}function kk(e){if(!Es(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var t=!1,n=[],r=0;r<e.length;r+=1){var o=e[r];if(C_(o)){if(Al(o)&&o._vueTypes_name==="oneOf"){n=n.concat(o.type);continue}if(Ts(o.validator)&&(t=!0),o.type!==!0&&o.type){n=n.concat(o.type);continue}}n.push(o)}return n=n.filter(function(s,i){return n.indexOf(s)===i}),tn("oneOfType",t?{type:n,validator:function(s){var i=[],a=e.some(function(l){var u=To(Al(l)&&l._vueTypes_name==="oneOf"?l.type||null:l,s);return typeof u=="string"&&i.push(u),u===!0});return a||Zt("oneOfType - provided value does not match any of the "+i.length+` passed-in validators:
|
||
`+pc(i.join(`
|
||
`))),a}}:{type:n})}function Ik(e){return tn("arrayOf",{type:Array,validator:function(t){var n,r=t.every(function(o){return(n=To(e,o))===!0});return r||Zt(`arrayOf - value validation error:
|
||
`+pc(n)),r}})}function Nk(e){return tn("instanceOf",{type:e})}function Lk(e){return tn("objectOf",{type:Object,validator:function(t){var n,r=Object.keys(t).every(function(o){return(n=To(e,t[o]))===!0});return r||Zt(`objectOf - value validation error:
|
||
`+pc(n)),r}})}function jk(e){var t=Object.keys(e),n=t.filter(function(o){var s;return!!(!((s=e[o])===null||s===void 0)&&s.required)}),r=tn("shape",{type:Object,validator:function(o){var s=this;if(!vo(o))return!1;var i=Object.keys(o);if(n.length>0&&n.some(function(l){return i.indexOf(l)===-1})){var a=n.filter(function(l){return i.indexOf(l)===-1});return Zt(a.length===1?'shape - required property "'+a[0]+'" is not defined.':'shape - required properties "'+a.join('", "')+'" are not defined.'),!1}return i.every(function(l){if(t.indexOf(l)===-1)return s._vueTypes_isLoose===!0||(Zt('shape - shape definition does not include a "'+l+'" property. Allowed keys: "'+t.join('", "')+'".'),!1);var u=To(e[l],o[l]);return typeof u=="string"&&Zt('shape - "'+l+`" property validation error:
|
||
`+pc(u)),u===!0})}});return Object.defineProperty(r,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(r,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),r}var Pn=(function(){function e(){}return e.extend=function(t){var n=this;if(Es(t))return t.forEach(function(f){return n.extend(f)}),this;var r=t.name,o=t.validate,s=o!==void 0&&o,i=t.getter,a=i!==void 0&&i,l=b_(t,["name","validate","getter"]);if(Mi(this,r))throw new TypeError('[VueTypes error]: Type "'+r+'" already defined');var u,c=l.type;return Al(c)?(delete l.type,Object.defineProperty(this,r,a?{get:function(){return Ag(r,c,l)}}:{value:function(){var f,d=Ag(r,c,l);return d.validator&&(d.validator=(f=d.validator).bind.apply(f,[d].concat([].slice.call(arguments)))),d}})):(u=a?{get:function(){var f=Object.assign({},l);return s?Mn(r,f):tn(r,f)},enumerable:!0}:{value:function(){var f,d,h=Object.assign({},l);return f=s?Mn(r,h):tn(r,h),h.validator&&(f.validator=(d=h.validator).bind.apply(d,[f].concat([].slice.call(arguments)))),f},enumerable:!0},Object.defineProperty(this,r,u))},y_(e,null,[{key:"any",get:function(){return wk()}},{key:"func",get:function(){return Sk().def(this.defaults.func)}},{key:"bool",get:function(){return Ck().def(this.defaults.bool)}},{key:"string",get:function(){return Ek().def(this.defaults.string)}},{key:"number",get:function(){return Tk().def(this.defaults.number)}},{key:"array",get:function(){return xk().def(this.defaults.array)}},{key:"object",get:function(){return Ok().def(this.defaults.object)}},{key:"integer",get:function(){return Ak().def(this.defaults.integer)}},{key:"symbol",get:function(){return Pk()}}]),e})();function E_(e){var t;return e===void 0&&(e={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(t=(function(n){function r(){return n.apply(this,arguments)||this}return v_(r,n),y_(r,null,[{key:"sensibleDefaults",get:function(){return Va({},this.defaults)},set:function(o){this.defaults=o!==!1?Va({},o!==!0?o:e):{}}}]),r})(Pn)).defaults=Va({},e),t}Pn.defaults={},Pn.custom=$k,Pn.oneOf=Rk,Pn.instanceOf=Nk,Pn.oneOfType=kk,Pn.arrayOf=Ik,Pn.objectOf=Lk,Pn.shape=jk,Pn.utils={validate:function(e,t){return To(t,e)===!0},toType:function(e,t,n){return n===void 0&&(n=!1),n?Mn(e,t):tn(e,t)}};(function(e){function t(){return e.apply(this,arguments)||this}return v_(t,e),t})(E_());const He=E_({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});He.extend([{name:"looseBool",getter:!0,type:Boolean,default:void 0},{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VueNode",getter:!0,type:null}]);function $8(e){return e.default=void 0,e}const T_=((e,t,n)=>{F$(e,`[ant-design-vue: ${t}] ${n}`)});function Mk(e){let{prefixCls:t,animation:n,transitionName:r}=e;return n?{name:`${t}-${n}`}:r?{name:r}:{}}function R8(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=e;if(Array.isArray(e)&&(o=ac(e)[0]),!o)return null;const s=Sn(o,t,r);return s.props=n?x(x({},s.props),t):s.props,uc(typeof s.props.class!="object"),s}function Dk(e,t,n){po(Sn(e,x({},t)),n)}const x_=e=>(e||[]).some(t=>en(t)?!(t.type===qe||t.type===je&&!x_(t.children)):!0)?e:null;function k8(e,t,n,r){var o;const s=(o=e[t])===null||o===void 0?void 0:o.call(e,n);return x_(s)?s:r?.()}const Bk=(e=>{if(!e)return!1;if(e.offsetParent)return!0;if(e.getBBox){const t=e.getBBox();if(t.width||t.height)return!0}if(e.getBoundingClientRect){const t=e.getBoundingClientRect();if(t.width||t.height)return!0}return!1});function Uk(){this.__data__=[],this.size=0}function O_(e,t){return e===t||e!==e&&t!==t}function gc(e,t){for(var n=e.length;n--;)if(O_(e[n][0],t))return n;return-1}var Fk=Array.prototype,Hk=Fk.splice;function Wk(e){var t=this.__data__,n=gc(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Hk.call(t,n,1),--this.size,!0}function zk(e){var t=this.__data__,n=gc(t,e);return n<0?void 0:t[n][1]}function Vk(e){return gc(this.__data__,e)>-1}function qk(e,t){var n=this.__data__,r=gc(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function fr(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])}}fr.prototype.clear=Uk;fr.prototype.delete=Wk;fr.prototype.get=zk;fr.prototype.has=Vk;fr.prototype.set=qk;function Gk(){this.__data__=new fr,this.size=0}function Kk(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Jk(e){return this.__data__.get(e)}function Yk(e){return this.__data__.has(e)}var A_=typeof global=="object"&&global&&global.Object===Object&&global,Xk=typeof self=="object"&&self&&self.Object===Object&&self,Bn=A_||Xk||Function("return this")(),$r=Bn.Symbol,P_=Object.prototype,Qk=P_.hasOwnProperty,Zk=P_.toString,Xs=$r?$r.toStringTag:void 0;function eI(e){var t=Qk.call(e,Xs),n=e[Xs];try{e[Xs]=void 0;var r=!0}catch{}var o=Zk.call(e);return r&&(t?e[Xs]=n:delete e[Xs]),o}var tI=Object.prototype,nI=tI.toString;function rI(e){return nI.call(e)}var oI="[object Null]",sI="[object Undefined]",Pg=$r?$r.toStringTag:void 0;function js(e){return e==null?e===void 0?sI:oI:Pg&&Pg in Object(e)?eI(e):rI(e)}function ea(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var iI="[object AsyncFunction]",aI="[object Function]",lI="[object GeneratorFunction]",cI="[object Proxy]";function $_(e){if(!ea(e))return!1;var t=js(e);return t==aI||t==lI||t==iI||t==cI}var pu=Bn["__core-js_shared__"],$g=(function(){var e=/[^.]+$/.exec(pu&&pu.keys&&pu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function uI(e){return!!$g&&$g in e}var fI=Function.prototype,dI=fI.toString;function xo(e){if(e!=null){try{return dI.call(e)}catch{}try{return e+""}catch{}}return""}var hI=/[\\^$.*+?()[\]{}|]/g,pI=/^\[object .+?Constructor\]$/,gI=Function.prototype,mI=Object.prototype,yI=gI.toString,vI=mI.hasOwnProperty,bI=RegExp("^"+yI.call(vI).replace(hI,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function _I(e){if(!ea(e)||uI(e))return!1;var t=$_(e)?bI:pI;return t.test(xo(e))}function wI(e,t){return e?.[t]}function Oo(e,t){var n=wI(e,t);return _I(n)?n:void 0}var Di=Oo(Bn,"Map"),Bi=Oo(Object,"create");function SI(){this.__data__=Bi?Bi(null):{},this.size=0}function CI(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var EI="__lodash_hash_undefined__",TI=Object.prototype,xI=TI.hasOwnProperty;function OI(e){var t=this.__data__;if(Bi){var n=t[e];return n===EI?void 0:n}return xI.call(t,e)?t[e]:void 0}var AI=Object.prototype,PI=AI.hasOwnProperty;function $I(e){var t=this.__data__;return Bi?t[e]!==void 0:PI.call(t,e)}var RI="__lodash_hash_undefined__";function kI(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Bi&&t===void 0?RI:t,this}function bo(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])}}bo.prototype.clear=SI;bo.prototype.delete=CI;bo.prototype.get=OI;bo.prototype.has=$I;bo.prototype.set=kI;function II(){this.size=0,this.__data__={hash:new bo,map:new(Di||fr),string:new bo}}function NI(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function mc(e,t){var n=e.__data__;return NI(t)?n[typeof t=="string"?"string":"hash"]:n.map}function LI(e){var t=mc(this,e).delete(e);return this.size-=t?1:0,t}function jI(e){return mc(this,e).get(e)}function MI(e){return mc(this,e).has(e)}function DI(e,t){var n=mc(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function kr(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])}}kr.prototype.clear=II;kr.prototype.delete=LI;kr.prototype.get=jI;kr.prototype.has=MI;kr.prototype.set=DI;var BI=200;function UI(e,t){var n=this.__data__;if(n instanceof fr){var r=n.__data__;if(!Di||r.length<BI-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new kr(r)}return n.set(e,t),this.size=n.size,this}function Ms(e){var t=this.__data__=new fr(e);this.size=t.size}Ms.prototype.clear=Gk;Ms.prototype.delete=Kk;Ms.prototype.get=Jk;Ms.prototype.has=Yk;Ms.prototype.set=UI;var Rg=Bn.Uint8Array;function R_(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var Ao=Array.isArray;function k_(e,t,n){var r=t(e);return Ao(e)?r:R_(r,n(e))}function FI(e,t){for(var n=-1,r=e==null?0:e.length,o=0,s=[];++n<r;){var i=e[n];t(i,n,e)&&(s[o++]=i)}return s}function I_(){return[]}var HI=Object.prototype,WI=HI.propertyIsEnumerable,kg=Object.getOwnPropertySymbols,Qd=kg?function(e){return e==null?[]:(e=Object(e),FI(kg(e),function(t){return WI.call(e,t)}))}:I_;function zI(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Ds(e){return e!=null&&typeof e=="object"}var VI="[object Arguments]";function Ig(e){return Ds(e)&&js(e)==VI}var N_=Object.prototype,qI=N_.hasOwnProperty,GI=N_.propertyIsEnumerable,L_=Ig((function(){return arguments})())?Ig:function(e){return Ds(e)&&qI.call(e,"callee")&&!GI.call(e,"callee")};function KI(){return!1}var j_=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ng=j_&&typeof module=="object"&&module&&!module.nodeType&&module,JI=Ng&&Ng.exports===j_,Lg=JI?Bn.Buffer:void 0,YI=Lg?Lg.isBuffer:void 0,Zd=YI||KI,XI=9007199254740991,QI=/^(?:0|[1-9]\d*)$/;function ZI(e,t){var n=typeof e;return t=t??XI,!!t&&(n=="number"||n!="symbol"&&QI.test(e))&&e>-1&&e%1==0&&e<t}var eN=9007199254740991;function M_(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=eN}var tN="[object Arguments]",nN="[object Array]",rN="[object Boolean]",oN="[object Date]",sN="[object Error]",iN="[object Function]",aN="[object Map]",lN="[object Number]",cN="[object Object]",uN="[object RegExp]",fN="[object Set]",dN="[object String]",hN="[object WeakMap]",pN="[object ArrayBuffer]",gN="[object DataView]",mN="[object Float32Array]",yN="[object Float64Array]",vN="[object Int8Array]",bN="[object Int16Array]",_N="[object Int32Array]",wN="[object Uint8Array]",SN="[object Uint8ClampedArray]",CN="[object Uint16Array]",EN="[object Uint32Array]",Be={};Be[mN]=Be[yN]=Be[vN]=Be[bN]=Be[_N]=Be[wN]=Be[SN]=Be[CN]=Be[EN]=!0;Be[tN]=Be[nN]=Be[pN]=Be[rN]=Be[gN]=Be[oN]=Be[sN]=Be[iN]=Be[aN]=Be[lN]=Be[cN]=Be[uN]=Be[fN]=Be[dN]=Be[hN]=!1;function TN(e){return Ds(e)&&M_(e.length)&&!!Be[js(e)]}function eh(e){return function(t){return e(t)}}var D_=typeof exports=="object"&&exports&&!exports.nodeType&&exports,yi=D_&&typeof module=="object"&&module&&!module.nodeType&&module,xN=yi&&yi.exports===D_,gu=xN&&A_.process,xs=(function(){try{var e=yi&&yi.require&&yi.require("util").types;return e||gu&&gu.binding&&gu.binding("util")}catch{}})(),jg=xs&&xs.isTypedArray,B_=jg?eh(jg):TN,ON=Object.prototype,AN=ON.hasOwnProperty;function U_(e,t){var n=Ao(e),r=!n&&L_(e),o=!n&&!r&&Zd(e),s=!n&&!r&&!o&&B_(e),i=n||r||o||s,a=i?zI(e.length,String):[],l=a.length;for(var u in e)(t||AN.call(e,u))&&!(i&&(u=="length"||o&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||ZI(u,l)))&&a.push(u);return a}var PN=Object.prototype;function yc(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||PN;return e===n}function F_(e,t){return function(n){return e(t(n))}}var $N=F_(Object.keys,Object),RN=Object.prototype,kN=RN.hasOwnProperty;function H_(e){if(!yc(e))return $N(e);var t=[];for(var n in Object(e))kN.call(e,n)&&n!="constructor"&&t.push(n);return t}function th(e){return e!=null&&M_(e.length)&&!$_(e)}function nh(e){return th(e)?U_(e):H_(e)}function IN(e){return k_(e,nh,Qd)}var xf=Oo(Bn,"DataView"),Of=Oo(Bn,"Promise"),Af=Oo(Bn,"Set"),Pf=Oo(Bn,"WeakMap"),Mg="[object Map]",NN="[object Object]",Dg="[object Promise]",Bg="[object Set]",Ug="[object WeakMap]",Fg="[object DataView]",LN=xo(xf),jN=xo(Di),MN=xo(Of),DN=xo(Af),BN=xo(Pf),Nn=js;(xf&&Nn(new xf(new ArrayBuffer(1)))!=Fg||Di&&Nn(new Di)!=Mg||Of&&Nn(Of.resolve())!=Dg||Af&&Nn(new Af)!=Bg||Pf&&Nn(new Pf)!=Ug)&&(Nn=function(e){var t=js(e),n=t==NN?e.constructor:void 0,r=n?xo(n):"";if(r)switch(r){case LN:return Fg;case jN:return Mg;case MN:return Dg;case DN:return Bg;case BN:return Ug}return t});Tl("bottomLeft","bottomRight","topLeft","topRight");const I8=e=>e!==void 0&&(e==="topLeft"||e==="topRight")?"slide-down":"slide-up",W_=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return x(e?{name:e,appear:!0,enterFromClass:`${e}-enter ${e}-enter-prepare ${e}-enter-start`,enterActiveClass:`${e}-enter ${e}-enter-prepare`,enterToClass:`${e}-enter ${e}-enter-active`,leaveFromClass:` ${e}-leave`,leaveActiveClass:`${e}-leave ${e}-leave-active`,leaveToClass:`${e}-leave ${e}-leave-active`}:{css:!1},t)},z_=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return x(e?{name:e,appear:!0,appearActiveClass:`${e}`,appearToClass:`${e}-appear ${e}-appear-active`,enterFromClass:`${e}-appear ${e}-enter ${e}-appear-prepare ${e}-enter-prepare`,enterActiveClass:`${e}`,enterToClass:`${e}-enter ${e}-appear ${e}-appear-active ${e}-enter-active`,leaveActiveClass:`${e} ${e}-leave`,leaveToClass:`${e}-leave-active`}:{css:!1},t)},Pl=(e,t,n)=>n!==void 0?n:`${e}-${t}`,V_=Symbol("PortalContextKey"),q_=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inTriggerContext:!0};_t(V_,{inTriggerContext:t.inTriggerContext,shouldRender:R(()=>{const{sPopupVisible:n,popupRef:r,forceRender:o,autoDestroy:s}=e||{};let i=!1;return(n||r||o)&&(i=!0),!n&&s&&(i=!1),i})})},UN=()=>{q_({},{inTriggerContext:!1});const e=Te(V_,{shouldRender:R(()=>!1),inTriggerContext:!1});return{shouldRender:R(()=>e.shouldRender.value||e.inTriggerContext===!1)}},G_=he({compatConfig:{MODE:3},name:"Portal",inheritAttrs:!1,props:{getContainer:He.func.isRequired,didUpdate:Function},setup(e,t){let{slots:n}=t,r=!0,o;const{shouldRender:s}=UN();function i(){s.value&&(o=e.getContainer())}Av(()=>{r=!1,i()}),St(()=>{o||i()});const a=Se(s,()=>{s.value&&!o&&(o=e.getContainer()),o&&a()});return ks(()=>{kt(()=>{var l;s.value&&((l=e.didUpdate)===null||l===void 0||l.call(e,e))})}),()=>{var l;return s.value?r?(l=n.default)===null||l===void 0?void 0:l.call(n):o?P(vv,{to:o},n):null:null}}});let mu;function FN(e){if(typeof document>"u")return 0;if(mu===void 0){const t=document.createElement("div");t.style.width="100%",t.style.height="200px";const n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);const o=t.offsetWidth;n.style.overflow="scroll";let s=t.offsetWidth;o===s&&(s=n.clientWidth),document.body.removeChild(n),mu=o-s}return mu}const HN=`vc-util-locker-${Date.now()}`;let Hg=0;function WN(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}function zN(e){const t=R(()=>!!e&&!!e.value);Hg+=1;const n=`${HN}_${Hg}`;Dn(r=>{if(En()){if(t.value){const o=FN(),s=WN();Li(`
|
||
html body {
|
||
overflow-y: hidden;
|
||
${s?`width: calc(100% - ${o}px);`:""}
|
||
}`,n)}else xl(n);r(()=>{xl(n)})}},{flush:"post"})}let Mr=0;const qa=En(),Wg=e=>{if(!qa)return null;if(e){if(typeof e=="string")return document.querySelectorAll(e)[0];if(typeof e=="function")return e();if(typeof e=="object"&&e instanceof window.HTMLElement)return e}return document.body},VN=he({compatConfig:{MODE:3},name:"PortalWrapper",inheritAttrs:!1,props:{wrapperClassName:String,forceRender:{type:Boolean,default:void 0},getContainer:He.any,visible:{type:Boolean,default:void 0},autoLock:us(),didUpdate:Function},setup(e,t){let{slots:n}=t;const r=se(),o=se(),s=se(),i=se(1),a=En()&&document.createElement("div"),l=()=>{var h,p;r.value===a&&((p=(h=r.value)===null||h===void 0?void 0:h.parentNode)===null||p===void 0||p.removeChild(r.value)),r.value=null};let u=null;const c=function(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)||r.value&&!r.value.parentNode?(u=Wg(e.getContainer),u?(u.appendChild(r.value),!0):!1):!0},f=()=>qa?(r.value||(r.value=a,c(!0)),d(),r.value):null,d=()=>{const{wrapperClassName:h}=e;r.value&&h&&h!==r.value.className&&(r.value.className=h)};return ks(()=>{d(),c()}),zN(R(()=>e.autoLock&&e.visible&&En()&&(r.value===document.body||r.value===a))),St(()=>{let h=!1;Se([()=>e.visible,()=>e.getContainer],(p,g)=>{let[y,b]=p,[v,m]=g;qa&&(u=Wg(e.getContainer),u===document.body&&(y&&!v?Mr+=1:h&&(Mr-=1))),h&&(typeof b=="function"&&typeof m=="function"?b.toString()!==m.toString():b!==m)&&l(),h=!0},{immediate:!0,flush:"post"}),kt(()=>{c()||(s.value=Ii(()=>{i.value+=1}))})}),rn(()=>{const{visible:h}=e;qa&&u===document.body&&(Mr=h&&Mr?Mr-1:Mr),l(),Ii.cancel(s.value)}),()=>{const{forceRender:h,visible:p}=e;let g=null;const y={getOpenCount:()=>Mr,getContainer:f};return i.value&&(h||p||o.value)&&(g=P(G_,{getContainer:f,ref:o,didUpdate:e.didUpdate},{default:()=>{var b;return(b=n.default)===null||b===void 0?void 0:b.call(n,y)}})),g}}}),zg={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224},qN=`accept acceptcharset accesskey action allowfullscreen allowtransparency
|
||
alt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge
|
||
charset checked classid classname colspan cols content contenteditable contextmenu
|
||
controls coords crossorigin data datetime default defer dir disabled download draggable
|
||
enctype form formaction formenctype formmethod formnovalidate formtarget frameborder
|
||
headers height hidden high href hreflang htmlfor for httpequiv icon id inputmode integrity
|
||
is keyparams keytype kind label lang list loop low manifest marginheight marginwidth max maxlength media
|
||
mediagroup method min minlength multiple muted name novalidate nonce open
|
||
optimum pattern placeholder poster preload radiogroup readonly rel required
|
||
reversed role rowspan rows sandbox scope scoped scrolling seamless selected
|
||
shape size sizes span spellcheck src srcdoc srclang srcset start step style
|
||
summary tabindex target title type usemap value width wmode wrap`,GN=`onCopy onCut onPaste onCompositionend onCompositionstart onCompositionupdate onKeydown
|
||
onKeypress onKeyup onFocus onBlur onChange onInput onSubmit onClick onContextmenu onDoubleclick onDblclick
|
||
onDrag onDragend onDragenter onDragexit onDragleave onDragover onDragstart onDrop onMousedown
|
||
onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel
|
||
onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough
|
||
onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata
|
||
onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError`,Vg=`${qN} ${GN}`.split(/[\s\n]+/),KN="aria-",JN="data-";function qg(e,t){return e.indexOf(t)===0}function YN(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=x({},t);const r={};return Object.keys(e).forEach(o=>{(n.aria&&(o==="role"||qg(o,KN))||n.data&&qg(o,JN)||n.attr&&(Vg.includes(o)||Vg.includes(o.toLowerCase())))&&(r[o]=e[o])}),r}function Dr(e){const t=typeof e=="function"?e():e,n=te(t);function r(o){n.value=o}return[n,r]}var XN=Symbol("iconContext"),K_=function(){return Te(XN,{prefixCls:te("anticon"),rootClassName:te(""),csp:te()})};function rh(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function QN(e,t){return e&&e.contains?e.contains(t):!1}var Gg="data-vc-order",ZN="vc-icon-key",$f=new Map;function J_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):ZN}function oh(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function e2(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Y_(e){return Array.from(($f.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function X_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!rh())return null;var n=t.csp,r=t.prepend,o=document.createElement("style");o.setAttribute(Gg,e2(r)),n&&n.nonce&&(o.nonce=n.nonce),o.innerHTML=e;var s=oh(t),i=s.firstChild;if(r){if(r==="queue"){var a=Y_(s).filter(function(l){return["prepend","prependQueue"].includes(l.getAttribute(Gg))});if(a.length)return s.insertBefore(o,a[a.length-1].nextSibling),o}s.insertBefore(o,i)}else s.appendChild(o);return o}function t2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=oh(t);return Y_(n).find(function(r){return r.getAttribute(J_(t))===e})}function n2(e,t){var n=$f.get(e);if(!n||!QN(document,n)){var r=X_("",t),o=r.parentNode;$f.set(e,o),e.removeChild(r)}}function r2(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=oh(n);n2(r,n);var o=t2(t,n);if(o)return n.csp&&n.csp.nonce&&o.nonce!==n.csp.nonce&&(o.nonce=n.csp.nonce),o.innerHTML!==e&&(o.innerHTML=e),o;var s=X_(e,n);return s.setAttribute(J_(n),t),s}function Kg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){o2(e,o,n[o])})}return e}function o2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jg(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function Rf(e,t,n){return n?ut(e.tag,Kg({key:t},n,e.attrs),(e.children||[]).map(function(r,o){return Rf(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):ut(e.tag,Kg({key:t},e.attrs),(e.children||[]).map(function(r,o){return Rf(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function Q_(e){return yo(e)[0]}function Z_(e){return e?Array.isArray(e)?e:[e]:[]}var s2=`
|
||
.anticon {
|
||
display: inline-block;
|
||
color: inherit;
|
||
font-style: normal;
|
||
line-height: 0;
|
||
text-align: center;
|
||
text-transform: none;
|
||
vertical-align: -0.125em;
|
||
text-rendering: optimizeLegibility;
|
||
-webkit-font-smoothing: antialiased;
|
||
-moz-osx-font-smoothing: grayscale;
|
||
}
|
||
|
||
.anticon > * {
|
||
line-height: 1;
|
||
}
|
||
|
||
.anticon svg {
|
||
display: inline-block;
|
||
}
|
||
|
||
.anticon::before {
|
||
display: none;
|
||
}
|
||
|
||
.anticon .anticon-icon {
|
||
display: block;
|
||
}
|
||
|
||
.anticon[tabindex] {
|
||
cursor: pointer;
|
||
}
|
||
|
||
.anticon-spin::before,
|
||
.anticon-spin {
|
||
display: inline-block;
|
||
-webkit-animation: loadingCircle 1s infinite linear;
|
||
animation: loadingCircle 1s infinite linear;
|
||
}
|
||
|
||
@-webkit-keyframes loadingCircle {
|
||
100% {
|
||
-webkit-transform: rotate(360deg);
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
|
||
@keyframes loadingCircle {
|
||
100% {
|
||
-webkit-transform: rotate(360deg);
|
||
transform: rotate(360deg);
|
||
}
|
||
}
|
||
`;function ew(e){return e&&e.getRootNode&&e.getRootNode()}function i2(e){return rh()?ew(e)instanceof ShadowRoot:!1}function a2(e){return i2(e)?ew(e):null}var l2=function(){var t=K_(),n=t.prefixCls,r=t.csp,o=Nt(),s=s2;n&&(s=s.replace(/anticon/g,n.value)),kt(function(){if(rh()){var i=o.vnode.el,a=a2(i);r2(s,"@ant-design-vue-icons",{prepend:!0,csp:r.value,attachTo:a})}})},c2=["icon","primaryColor","secondaryColor"];function u2(e,t){if(e==null)return{};var n=f2(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function f2(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Ga(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){d2(e,o,n[o])})}return e}function d2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vi=ot({primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1});function h2(e){var t=e.primaryColor,n=e.secondaryColor;vi.primaryColor=t,vi.secondaryColor=n||Q_(t),vi.calculated=!!n}function p2(){return Ga({},vi)}var Ir=function(t,n){var r=Ga({},t,n.attrs),o=r.icon,s=r.primaryColor,i=r.secondaryColor,a=u2(r,c2),l=vi;if(s&&(l={primaryColor:s,secondaryColor:i||Q_(s)}),Jg(o),!Jg(o))return null;var u=o;return u&&typeof u.icon=="function"&&(u=Ga({},u,{icon:u.icon(l.primaryColor,l.secondaryColor)})),Rf(u.icon,"svg-".concat(u.name),Ga({},a,{"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};Ir.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String};Ir.inheritAttrs=!1;Ir.displayName="IconBase";Ir.getTwoToneColors=p2;Ir.setTwoToneColors=h2;function g2(e,t){return b2(e)||v2(e,t)||y2(e,t)||m2()}function m2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y2(e,t){if(e){if(typeof e=="string")return Yg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yg(e,t)}}function Yg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function v2(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,s=!1,i,a;try{for(n=n.call(e);!(o=(i=n.next()).done)&&(r.push(i.value),!(t&&r.length===t));o=!0);}catch(l){s=!0,a=l}finally{try{!o&&n.return!=null&&n.return()}finally{if(s)throw a}}return r}}function b2(e){if(Array.isArray(e))return e}function tw(e){var t=Z_(e),n=g2(t,2),r=n[0],o=n[1];return Ir.setTwoToneColors({primaryColor:r,secondaryColor:o})}function _2(){var e=Ir.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var w2=he({name:"InsertStyles",setup:function(){return l2(),function(){return null}}}),S2=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function C2(e,t){return O2(e)||x2(e,t)||T2(e,t)||E2()}function E2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function T2(e,t){if(e){if(typeof e=="string")return Xg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xg(e,t)}}function Xg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function x2(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,s=!1,i,a;try{for(n=n.call(e);!(o=(i=n.next()).done)&&(r.push(i.value),!(t&&r.length===t));o=!0);}catch(l){s=!0,a=l}finally{try{!o&&n.return!=null&&n.return()}finally{if(s)throw a}}return r}}function O2(e){if(Array.isArray(e))return e}function Qg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){ni(e,o,n[o])})}return e}function ni(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A2(e,t){if(e==null)return{};var n=P2(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function P2(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}tw(HR.primary);var Lt=function(t,n){var r,o=Qg({},t,n.attrs),s=o.class,i=o.icon,a=o.spin,l=o.rotate,u=o.tabindex,c=o.twoToneColor,f=o.onClick,d=A2(o,S2),h=K_(),p=h.prefixCls,g=h.rootClassName,y=(r={},ni(r,g.value,!!g.value),ni(r,p.value,!0),ni(r,"".concat(p.value,"-").concat(i.name),!!i.name),ni(r,"".concat(p.value,"-spin"),!!a||i.name==="loading"),r),b=u;b===void 0&&f&&(b=-1);var v=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,m=Z_(c),_=C2(m,2),S=_[0],E=_[1];return P("span",Qg({role:"img","aria-label":i.name},d,{onClick:f,class:[y,s],tabindex:b}),[P(Ir,{icon:i,primaryColor:S,secondaryColor:E,style:v},null),P(w2,null,null)])};Lt.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]};Lt.displayName="AntdIcon";Lt.inheritAttrs=!1;Lt.getTwoToneColor=_2;Lt.setTwoToneColor=tw;var $2={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};function Zg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){R2(e,o,n[o])})}return e}function R2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _o=function(t,n){var r=Zg({},t,n.attrs);return P(Lt,Zg({},r,{icon:$2}),null)};_o.displayName="LoadingOutlined";_o.inheritAttrs=!1;var k2={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};function em(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){I2(e,o,n[o])})}return e}function I2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Bs=function(t,n){var r=em({},t,n.attrs);return P(Lt,em({},r,{icon:k2}),null)};Bs.displayName="CloseOutlined";Bs.inheritAttrs=!1;var N2={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};function tm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){L2(e,o,n[o])})}return e}function L2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Po=function(t,n){var r=tm({},t,n.attrs);return P(Lt,tm({},r,{icon:N2}),null)};Po.displayName="CloseCircleFilled";Po.inheritAttrs=!1;function nw(e){const t=Symbol("contextKey");return{useProvide:(o,s)=>{const i=ot({});return _t(t,i),Dn(()=>{x(i,o,s||{})}),i},useInject:()=>Te(t,e)||{}}}const j2=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},M2=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-space-item`]:{"&:empty":{display:"none"}}}}},D2=Eo("Space",e=>[M2(e),j2(e)]);var B2="[object Symbol]";function sh(e){return typeof e=="symbol"||Ds(e)&&js(e)==B2}function U2(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var nm=$r?$r.prototype:void 0,rm=nm?nm.toString:void 0;function rw(e){if(typeof e=="string")return e;if(Ao(e))return U2(e,rw)+"";if(sh(e))return rm?rm.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var om=Object.create,F2=(function(){function e(){}return function(t){if(!ea(t))return{};if(om)return om(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}})();function H2(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var sm=(function(){try{var e=Oo(Object,"defineProperty");return e({},"",{}),e}catch{}})();function W2(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function ow(e,t,n){t=="__proto__"&&sm?sm(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var z2=Object.prototype,V2=z2.hasOwnProperty;function sw(e,t,n){var r=e[t];(!(V2.call(e,t)&&O_(r,n))||n===void 0&&!(t in e))&&ow(e,t,n)}function vc(e,t,n,r){var o=!n;n||(n={});for(var s=-1,i=t.length;++s<i;){var a=t[s],l=void 0;l===void 0&&(l=e[a]),o?ow(n,a,l):sw(n,a,l)}return n}function q2(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var G2=Object.prototype,K2=G2.hasOwnProperty;function J2(e){if(!ea(e))return q2(e);var t=yc(e),n=[];for(var r in e)r=="constructor"&&(t||!K2.call(e,r))||n.push(r);return n}function ih(e){return th(e)?U_(e,!0):J2(e)}var Y2=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,X2=/^\w*$/;function Q2(e,t){if(Ao(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||sh(e)?!0:X2.test(e)||!Y2.test(e)||t!=null&&e in Object(t)}var Z2="Expected a function";function ah(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Z2);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],s=n.cache;if(s.has(o))return s.get(o);var i=e.apply(this,r);return n.cache=s.set(o,i)||s,i};return n.cache=new(ah.Cache||kr),n}ah.Cache=kr;var eL=500;function tL(e){var t=ah(e,function(r){return n.size===eL&&n.clear(),r}),n=t.cache;return t}var nL=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rL=/\\(\\)?/g,oL=tL(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(nL,function(n,r,o,s){t.push(o?s.replace(rL,"$1"):r||n)}),t});function sL(e){return e==null?"":rw(e)}function iL(e,t){return Ao(e)?e:Q2(e,t)?[e]:oL(sL(e))}function aL(e){if(typeof e=="string"||sh(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function lL(e,t){t=iL(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[aL(t[n++])];return n&&n==r?e:void 0}function We(e,t,n){var r=e==null?void 0:lL(e,t);return r===void 0?n:r}var iw=F_(Object.getPrototypeOf,Object);function cL(e,t){return e&&vc(t,nh(t),e)}function uL(e,t){return e&&vc(t,ih(t),e)}var aw=typeof exports=="object"&&exports&&!exports.nodeType&&exports,im=aw&&typeof module=="object"&&module&&!module.nodeType&&module,fL=im&&im.exports===aw,am=fL?Bn.Buffer:void 0,lm=am?am.allocUnsafe:void 0;function dL(e,t){if(t)return e.slice();var n=e.length,r=lm?lm(n):new e.constructor(n);return e.copy(r),r}function hL(e,t){return vc(e,Qd(e),t)}var pL=Object.getOwnPropertySymbols,lw=pL?function(e){for(var t=[];e;)R_(t,Qd(e)),e=iw(e);return t}:I_;function gL(e,t){return vc(e,lw(e),t)}function mL(e){return k_(e,ih,lw)}var yL=Object.prototype,vL=yL.hasOwnProperty;function bL(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&vL.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function lh(e){var t=new e.constructor(e.byteLength);return new Rg(t).set(new Rg(e)),t}function _L(e,t){var n=t?lh(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var wL=/\w*$/;function SL(e){var t=new e.constructor(e.source,wL.exec(e));return t.lastIndex=e.lastIndex,t}var cm=$r?$r.prototype:void 0,um=cm?cm.valueOf:void 0;function CL(e){return um?Object(um.call(e)):{}}function EL(e,t){var n=t?lh(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var TL="[object Boolean]",xL="[object Date]",OL="[object Map]",AL="[object Number]",PL="[object RegExp]",$L="[object Set]",RL="[object String]",kL="[object Symbol]",IL="[object ArrayBuffer]",NL="[object DataView]",LL="[object Float32Array]",jL="[object Float64Array]",ML="[object Int8Array]",DL="[object Int16Array]",BL="[object Int32Array]",UL="[object Uint8Array]",FL="[object Uint8ClampedArray]",HL="[object Uint16Array]",WL="[object Uint32Array]";function zL(e,t,n){var r=e.constructor;switch(t){case IL:return lh(e);case TL:case xL:return new r(+e);case NL:return _L(e,n);case LL:case jL:case ML:case DL:case BL:case UL:case FL:case HL:case WL:return EL(e,n);case OL:return new r;case AL:case RL:return new r(e);case PL:return SL(e);case $L:return new r;case kL:return CL(e)}}function VL(e){return typeof e.constructor=="function"&&!yc(e)?F2(iw(e)):{}}var qL="[object Map]";function GL(e){return Ds(e)&&Nn(e)==qL}var fm=xs&&xs.isMap,KL=fm?eh(fm):GL,JL="[object Set]";function YL(e){return Ds(e)&&Nn(e)==JL}var dm=xs&&xs.isSet,XL=dm?eh(dm):YL,QL=1,ZL=2,ej=4,cw="[object Arguments]",tj="[object Array]",nj="[object Boolean]",rj="[object Date]",oj="[object Error]",uw="[object Function]",sj="[object GeneratorFunction]",ij="[object Map]",aj="[object Number]",fw="[object Object]",lj="[object RegExp]",cj="[object Set]",uj="[object String]",fj="[object Symbol]",dj="[object WeakMap]",hj="[object ArrayBuffer]",pj="[object DataView]",gj="[object Float32Array]",mj="[object Float64Array]",yj="[object Int8Array]",vj="[object Int16Array]",bj="[object Int32Array]",_j="[object Uint8Array]",wj="[object Uint8ClampedArray]",Sj="[object Uint16Array]",Cj="[object Uint32Array]",ke={};ke[cw]=ke[tj]=ke[hj]=ke[pj]=ke[nj]=ke[rj]=ke[gj]=ke[mj]=ke[yj]=ke[vj]=ke[bj]=ke[ij]=ke[aj]=ke[fw]=ke[lj]=ke[cj]=ke[uj]=ke[fj]=ke[_j]=ke[wj]=ke[Sj]=ke[Cj]=!0;ke[oj]=ke[uw]=ke[dj]=!1;function Ka(e,t,n,r,o,s){var i,a=t&QL,l=t&ZL,u=t&ej;if(n&&(i=o?n(e,r,o,s):n(e)),i!==void 0)return i;if(!ea(e))return e;var c=Ao(e);if(c){if(i=bL(e),!a)return H2(e,i)}else{var f=Nn(e),d=f==uw||f==sj;if(Zd(e))return dL(e,a);if(f==fw||f==cw||d&&!o){if(i=l||d?{}:VL(e),!a)return l?gL(e,uL(i,e)):hL(e,cL(i,e))}else{if(!ke[f])return o?e:{};i=zL(e,f,a)}}s||(s=new Ms);var h=s.get(e);if(h)return h;s.set(e,i),XL(e)?e.forEach(function(y){i.add(Ka(y,t,n,y,e,s))}):KL(e)&&e.forEach(function(y,b){i.set(b,Ka(y,t,n,b,e,s))});var p=u?l?mL:IN:l?ih:nh,g=c?void 0:p(e);return W2(g||e,function(y,b){g&&(b=y,y=e[b]),sw(i,b,Ka(y,t,n,b,e,s))}),i}var Ej=1,Tj=4;function xj(e){return Ka(e,Ej|Tj)}var Oj="[object Map]",Aj="[object Set]",Pj=Object.prototype,$j=Pj.hasOwnProperty;function dw(e){if(e==null)return!0;if(th(e)&&(Ao(e)||typeof e=="string"||typeof e.splice=="function"||Zd(e)||B_(e)||L_(e)))return!e.length;var t=Nn(e);if(t==Oj||t==Aj)return!e.size;if(yc(e))return!H_(e).length;for(var n in e)if($j.call(e,n))return!1;return!0}const Rj=()=>({compactSize:String,compactDirection:He.oneOf(Tl("horizontal","vertical")).def("horizontal"),isFirstItem:us(),isLastItem:us()}),bc=nw(null),kj=(e,t)=>{const n=bc.useInject(),r=R(()=>{if(!n||dw(n))return"";const{compactDirection:o,isFirstItem:s,isLastItem:i}=n,a=o==="vertical"?"-vertical-":"-";return Xe({[`${e.value}-compact${a}item`]:!0,[`${e.value}-compact${a}first-item`]:s,[`${e.value}-compact${a}last-item`]:i,[`${e.value}-compact${a}item-rtl`]:t.value==="rtl"})});return{compactSize:R(()=>n?.compactSize),compactDirection:R(()=>n?.compactDirection),compactItemClassnames:r}},N8=he({name:"NoCompactStyle",setup(e,t){let{slots:n}=t;return bc.useProvide(null),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}),Ij=()=>({prefixCls:String,size:{type:String},direction:He.oneOf(Tl("horizontal","vertical")).def("horizontal"),align:He.oneOf(Tl("start","end","center","baseline")),block:{type:Boolean,default:void 0}}),Nj=he({name:"CompactItem",props:Rj(),setup(e,t){let{slots:n}=t;return bc.useProvide(e),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});Ij();const Lj=e=>({animationDuration:e,animationFillMode:"both"}),jj=e=>({animationDuration:e,animationFillMode:"both"}),hw=function(e,t,n,r){const s=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
|
||
${s}${e}-enter,
|
||
${s}${e}-appear
|
||
`]:x(x({},Lj(r)),{animationPlayState:"paused"}),[`${s}${e}-leave`]:x(x({},jj(r)),{animationPlayState:"paused"}),[`
|
||
${s}${e}-enter${e}-enter-active,
|
||
${s}${e}-appear${e}-appear-active
|
||
`]:{animationName:t,animationPlayState:"running"},[`${s}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Mj=new Je("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Dj=new Je("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Bj=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[hw(r,Mj,Dj,e.motionDurationMid,t),{[`
|
||
${o}${r}-enter,
|
||
${o}${r}-appear
|
||
`]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},Uj=new Je("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Fj=new Je("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),hm=new Je("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),pm=new Je("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Hj=new Je("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Wj=new Je("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),zj=new Je("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Vj=new Je("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),qj=new Je("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Gj=new Je("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Kj=new Je("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Jj=new Je("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Yj={zoom:{inKeyframes:Uj,outKeyframes:Fj},"zoom-big":{inKeyframes:hm,outKeyframes:pm},"zoom-big-fast":{inKeyframes:hm,outKeyframes:pm},"zoom-left":{inKeyframes:zj,outKeyframes:Vj},"zoom-right":{inKeyframes:qj,outKeyframes:Gj},"zoom-up":{inKeyframes:Hj,outKeyframes:Wj},"zoom-down":{inKeyframes:Kj,outKeyframes:Jj}},Xj=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:s}=Yj[t];return[hw(r,o,s,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
|
||
${r}-enter,
|
||
${r}-appear
|
||
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function Qj(e,t,n){const{focusElCls:r,focus:o,borderElCls:s}=n,i=s?"> *":"",a=["hover",o?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${i}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":x(x({[a]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function Zj(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function eM(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:x(x({},Qj(e,r,t)),Zj(n,r,t))}}var tM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};function gm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){nM(e,o,n[o])})}return e}function nM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ch=function(t,n){var r=gm({},t,n.attrs);return P(Lt,gm({},r,{icon:tM}),null)};ch.displayName="CheckCircleOutlined";ch.inheritAttrs=!1;var rM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"};function mm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){oM(e,o,n[o])})}return e}function oM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ta=function(t,n){var r=mm({},t,n.attrs);return P(Lt,mm({},r,{icon:rM}),null)};ta.displayName="ExclamationCircleOutlined";ta.inheritAttrs=!1;var sM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};function ym(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){iM(e,o,n[o])})}return e}function iM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var uh=function(t,n){var r=ym({},t,n.attrs);return P(Lt,ym({},r,{icon:sM}),null)};uh.displayName="InfoCircleOutlined";uh.inheritAttrs=!1;var aM={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"};function vm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){lM(e,o,n[o])})}return e}function lM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fh=function(t,n){var r=vm({},t,n.attrs);return P(Lt,vm({},r,{icon:aM}),null)};fh.displayName="CloseCircleOutlined";fh.inheritAttrs=!1;var cM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function bm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){uM(e,o,n[o])})}return e}function uM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $o=function(t,n){var r=bm({},t,n.attrs);return P(Lt,bm({},r,{icon:cM}),null)};$o.displayName="CheckCircleFilled";$o.inheritAttrs=!1;var fM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};function _m(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){dM(e,o,n[o])})}return e}function dM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ro=function(t,n){var r=_m({},t,n.attrs);return P(Lt,_m({},r,{icon:fM}),null)};Ro.displayName="ExclamationCircleFilled";Ro.inheritAttrs=!1;var hM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};function wm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){pM(e,o,n[o])})}return e}function pM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ko=function(t,n){var r=wm({},t,n.attrs);return P(Lt,wm({},r,{icon:hM}),null)};ko.displayName="InfoCircleFilled";ko.inheritAttrs=!1;const gM=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0}}}}},mM=Eo("Wave",e=>[gM(e)]);function yM(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function yu(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&yM(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function vM(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return yu(t)?t:yu(n)?n:yu(r)?r:null}function vu(e){return Number.isNaN(e)?0:e}const bM=he({props:{target:tt(),className:String},setup(e){const t=se(null),[n,r]=Dr(null),[o,s]=Dr([]),[i,a]=Dr(0),[l,u]=Dr(0),[c,f]=Dr(0),[d,h]=Dr(0),[p,g]=Dr(!1);function y(){const{target:w}=e,A=getComputedStyle(w);r(vM(w));const O=A.position==="static",{borderLeftWidth:L,borderTopWidth:N}=A;a(O?w.offsetLeft:vu(-parseFloat(L))),u(O?w.offsetTop:vu(-parseFloat(N))),f(w.offsetWidth),h(w.offsetHeight);const{borderTopLeftRadius:k,borderTopRightRadius:F,borderBottomLeftRadius:G,borderBottomRightRadius:$}=A;s([k,F,$,G].map(I=>vu(parseFloat(I))))}let b,v,m;const _=()=>{clearTimeout(m),Ii.cancel(v),b?.disconnect()},S=()=>{var w;const A=(w=t.value)===null||w===void 0?void 0:w.parentElement;A&&(po(null,A),A.parentElement&&A.parentElement.removeChild(A))};St(()=>{_(),m=setTimeout(()=>{S()},5e3);const{target:w}=e;w&&(v=Ii(()=>{y(),g(!0)}),typeof ResizeObserver<"u"&&(b=new ResizeObserver(y),b.observe(w)))}),rn(()=>{_()});const E=w=>{w.propertyName==="opacity"&&S()};return()=>{if(!p.value)return null;const w={left:`${i.value}px`,top:`${l.value}px`,width:`${c.value}px`,height:`${d.value}px`,borderRadius:o.value.map(A=>`${A}px`).join(" ")};return n&&(w["--wave-color"]=n.value),P(Yi,{appear:!0,name:"wave-motion",appearFromClass:"wave-motion-appear",appearActiveClass:"wave-motion-appear",appearToClass:"wave-motion-appear wave-motion-appear-active"},{default:()=>[P("div",{ref:t,class:e.className,style:w,onTransitionend:E},null)]})}}});function _M(e,t){const n=document.createElement("div");n.style.position="absolute",n.style.left="0px",n.style.top="0px",e?.insertBefore(n,e?.firstChild),po(P(bM,{target:e,className:t},null),n)}function wM(e,t,n){function r(){var o;const s=El(e);!((o=n?.value)===null||o===void 0)&&o.disabled||!s||_M(s,t.value)}return r}const SM=he({compatConfig:{MODE:3},name:"Wave",props:{disabled:Boolean},setup(e,t){let{slots:n}=t;const r=Nt(),{prefixCls:o,wave:s}=ur("wave",e),[,i]=mM(o),a=wM(r,R(()=>Xe(o.value,i.value)),s);let l;const u=()=>{El(r).removeEventListener("click",l,!0)};return St(()=>{Se(()=>e.disabled,()=>{u(),kt(()=>{const c=El(r);c?.removeEventListener("click",l,!0),!(!c||c.nodeType!==1||e.disabled)&&(l=f=>{f.target.tagName==="INPUT"||!Bk(f.target)||!c.getAttribute||c.getAttribute("disabled")||c.disabled||c.className.includes("disabled")||c.className.includes("-leave")||a()},c.addEventListener("click",l,!0))})},{immediate:!0,flush:"post"})}),rn(()=>{u()}),()=>{var c;return(c=n.default)===null||c===void 0?void 0:c.call(n)[0]}}});function pw(e){return e==="danger"?{danger:!0}:{type:e}}const CM=()=>({prefixCls:String,type:String,htmlType:{type:String,default:"button"},shape:{type:String},size:{type:String},loading:{type:[Boolean,Object],default:()=>!1},disabled:{type:Boolean,default:void 0},ghost:{type:Boolean,default:void 0},block:{type:Boolean,default:void 0},danger:{type:Boolean,default:void 0},icon:He.any,href:String,target:String,title:String,onClick:rg(),onMousedown:rg()}),Sm=e=>{e&&(e.style.width="0px",e.style.opacity="0",e.style.transform="scale(0)")},Cm=e=>{kt(()=>{e&&(e.style.width=`${e.scrollWidth}px`,e.style.opacity="1",e.style.transform="scale(1)")})},Em=e=>{e&&e.style&&(e.style.width=null,e.style.opacity=null,e.style.transform=null)},EM=he({compatConfig:{MODE:3},name:"LoadingIcon",props:{prefixCls:String,loading:[Boolean,Object],existIcon:Boolean},setup(e){return()=>{const{existIcon:t,prefixCls:n,loading:r}=e;if(t)return P("span",{class:`${n}-loading-icon`},[P(_o,null,null)]);const o=!!r;return P(Yi,{name:`${n}-loading-icon-motion`,onBeforeEnter:Sm,onEnter:Cm,onAfterEnter:Em,onBeforeLeave:Cm,onLeave:s=>{setTimeout(()=>{Sm(s)})},onAfterLeave:Em},{default:()=>[o?P("span",{class:`${n}-loading-icon`},[P(_o,null,null)]):null]})}}}),Tm=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),TM=e=>{const{componentCls:t,fontSize:n,lineWidth:r,colorPrimaryHover:o,colorErrorHover:s}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-r,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Tm(`${t}-primary`,o),Tm(`${t}-danger`,s)]}};function xM(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function OM(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function AM(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:x(x({},xM(e,t)),OM(e.componentCls,t))}}const PM=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:400,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"> span":{display:"inline-block"},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},"> a":{color:"currentColor"},"&:not(:disabled)":x({},s_(e)),[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${e.lineWidth*2}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${e.lineWidth*2}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},ar=(e,t)=>({"&:not(:disabled)":{"&:hover":e,"&:active":t}}),$M=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),RM=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),kf=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),$l=(e,t,n,r,o,s,i)=>({[`&${e}-background-ghost`]:x(x({color:t||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},ar(x({backgroundColor:"transparent"},s),x({backgroundColor:"transparent"},i))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:o||void 0}})}),dh=e=>({"&:disabled":x({},kf(e))}),gw=e=>x({},dh(e)),Rl=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),mw=e=>x(x(x(x(x({},gw(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),ar({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),$l(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:x(x(x({color:e.colorError,borderColor:e.colorError},ar({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),$l(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),dh(e))}),kM=e=>x(x(x(x(x({},gw(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),ar({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),$l(e.componentCls,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:x(x(x({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},ar({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),$l(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),dh(e))}),IM=e=>x(x({},mw(e)),{borderStyle:"dashed"}),NM=e=>x(x(x({color:e.colorLink},ar({color:e.colorLinkHover},{color:e.colorLinkActive})),Rl(e)),{[`&${e.componentCls}-dangerous`]:x(x({color:e.colorError},ar({color:e.colorErrorHover},{color:e.colorErrorActive})),Rl(e))}),LM=e=>x(x(x({},ar({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),Rl(e)),{[`&${e.componentCls}-dangerous`]:x(x({color:e.colorError},Rl(e)),ar({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),jM=e=>x(x({},kf(e)),{[`&${e.componentCls}:hover`]:x({},kf(e))}),MM=e=>{const{componentCls:t}=e;return{[`${t}-default`]:mw(e),[`${t}-primary`]:kM(e),[`${t}-dashed`]:IM(e),[`${t}-link`]:NM(e),[`${t}-text`]:LM(e),[`${t}-disabled`]:jM(e)}},hh=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,iconCls:r,controlHeight:o,fontSize:s,lineHeight:i,lineWidth:a,borderRadius:l,buttonPaddingHorizontal:u}=e,c=Math.max(0,(o-s*i)/2-a),f=u-a,d=`${n}-icon-only`;return[{[`${n}${t}`]:{fontSize:s,height:o,padding:`${c}px ${f}px`,borderRadius:l,[`&${d}`]:{width:o,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},"> span":{transform:"scale(1.143)"}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`&:not(${d}) ${n}-loading-icon > ${r}`]:{marginInlineEnd:e.marginXS}}},{[`${n}${n}-circle${t}`]:$M(e)},{[`${n}${n}-round${t}`]:RM(e)}]},DM=e=>hh(e),BM=e=>{const t=Rr(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM});return hh(t,`${e.componentCls}-sm`)},UM=e=>{const t=Rr(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG});return hh(t,`${e.componentCls}-lg`)},FM=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},HM=Eo("Button",e=>{const{controlTmpOutline:t,paddingContentHorizontal:n}=e,r=Rr(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n});return[PM(r),BM(r),DM(r),UM(r),FM(r),MM(r),TM(r),eM(e,{focus:!1}),AM(e)]}),WM=()=>({prefixCls:String,size:{type:String}}),yw=nw(),If=he({compatConfig:{MODE:3},name:"AButtonGroup",props:WM(),setup(e,t){let{slots:n}=t;const{prefixCls:r,direction:o}=ur("btn-group",e),[,,s]=Zi();yw.useProvide(ot({size:R(()=>e.size)}));const i=R(()=>{const{size:a}=e;let l="";switch(a){case"large":l="lg";break;case"small":l="sm";break;case"middle":case void 0:break;default:T_(!a,"Button.Group","Invalid prop `size`.")}return{[`${r.value}`]:!0,[`${r.value}-${l}`]:l,[`${r.value}-rtl`]:o.value==="rtl",[s.value]:!0}});return()=>{var a;return P("div",{class:i.value},[nr((a=n.default)===null||a===void 0?void 0:a.call(n))])}}}),xm=/^[\u4e00-\u9fa5]{2}$/,Om=xm.test.bind(xm);function xa(e){return e==="text"||e==="link"}const lo=he({compatConfig:{MODE:3},name:"AButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:Qi(CM(),{type:"default"}),slots:Object,setup(e,t){let{slots:n,attrs:r,emit:o,expose:s}=t;const{prefixCls:i,autoInsertSpaceInButton:a,direction:l,size:u}=ur("btn",e),[c,f]=HM(i),d=yw.useInject(),h=zd(),p=R(()=>{var $;return($=e.disabled)!==null&&$!==void 0?$:h.value}),g=se(null),y=se(void 0);let b=!1;const v=se(!1),m=se(!1),_=R(()=>a.value!==!1),{compactSize:S,compactItemClassnames:E}=kj(i,l),w=R(()=>typeof e.loading=="object"&&e.loading.delay?e.loading.delay||!0:!!e.loading);Se(w,$=>{clearTimeout(y.value),typeof w.value=="number"?y.value=setTimeout(()=>{v.value=$},w.value):v.value=$},{immediate:!0});const A=R(()=>{const{type:$,shape:I="default",ghost:W,block:H,danger:J}=e,pe=i.value,ae={large:"lg",small:"sm",middle:void 0},be=S.value||d?.size||u.value,Qe=be&&ae[be]||"";return[E.value,{[f.value]:!0,[`${pe}`]:!0,[`${pe}-${I}`]:I!=="default"&&I,[`${pe}-${$}`]:$,[`${pe}-${Qe}`]:Qe,[`${pe}-loading`]:v.value,[`${pe}-background-ghost`]:W&&!xa($),[`${pe}-two-chinese-chars`]:m.value&&_.value,[`${pe}-block`]:H,[`${pe}-dangerous`]:!!J,[`${pe}-rtl`]:l.value==="rtl"}]}),O=()=>{const $=g.value;if(!$||a.value===!1)return;const I=$.textContent;b&&Om(I)?m.value||(m.value=!0):m.value&&(m.value=!1)},L=$=>{if(v.value||p.value){$.preventDefault();return}o("click",$)},N=$=>{o("mousedown",$)},k=($,I)=>{const W=I?" ":"";if($.type===tr){let H=$.children.trim();return Om(H)&&(H=H.split("").join(W)),P("span",null,[H])}return $};return Dn(()=>{T_(!(e.ghost&&xa(e.type)),"Button","`link` or `text` button can't be a `ghost` button.")}),St(O),ks(O),rn(()=>{y.value&&clearTimeout(y.value)}),s({focus:()=>{var $;($=g.value)===null||$===void 0||$.focus()},blur:()=>{var $;($=g.value)===null||$===void 0||$.blur()}}),()=>{var $,I;const{icon:W=($=n.icon)===null||$===void 0?void 0:$.call(n)}=e,H=nr((I=n.default)===null||I===void 0?void 0:I.call(n));b=H.length===1&&!W&&!xa(e.type);const{type:J,htmlType:pe,href:ae,title:be,target:Qe}=e,ye=v.value?"loading":W,ge=x(x({},r),{title:be,disabled:p.value,class:[A.value,r.class,{[`${i.value}-icon-only`]:H.length===0&&!!ye}],onClick:L,onMousedown:N});p.value||delete ge.disabled;const pt=W&&!v.value?W:P(EM,{existIcon:!!W,prefixCls:i.value,loading:!!v.value},null),D=H.map(X=>k(X,b&&_.value));if(ae!==void 0)return c(P("a",ue(ue({},ge),{},{href:ae,target:Qe,ref:g}),[pt,D]));let ee=P("button",ue(ue({},ge),{},{ref:g,type:pe}),[pt,D]);if(!xa(J)){const X=(function(){return ee})();ee=P(SM,{ref:"wave",disabled:!!v.value},{default:()=>[X]})}return c(ee)}}});lo.Group=If;lo.install=function(e){return e.component(lo.name,lo),e.component(If.name,If),e};var vw=60,bw=vw*60,_w=bw*24,zM=_w*7,Os=1e3,Ja=vw*Os,Am=bw*Os,VM=_w*Os,qM=zM*Os,ph="millisecond",Xr="second",Qn="minute",Qr="hour",Gn="day",Ya="week",an="month",ww="quarter",Kn="year",es="date",GM="YYYY-MM-DDTHH:mm:ssZ",Pm="Invalid Date",KM=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,JM=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;const YM={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(t){var n=["th","st","nd","rd"],r=t%100;return"["+t+(n[(r-20)%10]||n[r]||n[0])+"]"}};var Nf=function(t,n,r){var o=String(t);return!o||o.length>=n?t:""+Array(n+1-o.length).join(r)+t},XM=function(t){var n=-t.utcOffset(),r=Math.abs(n),o=Math.floor(r/60),s=r%60;return(n<=0?"+":"-")+Nf(o,2,"0")+":"+Nf(s,2,"0")},QM=function e(t,n){if(t.date()<n.date())return-e(n,t);var r=(n.year()-t.year())*12+(n.month()-t.month()),o=t.clone().add(r,an),s=n-o<0,i=t.clone().add(r+(s?-1:1),an);return+(-(r+(n-o)/(s?o-i:i-o))||0)},ZM=function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},eD=function(t){var n={M:an,y:Kn,w:Ya,d:Gn,D:es,h:Qr,m:Qn,s:Xr,ms:ph,Q:ww};return n[t]||String(t||"").toLowerCase().replace(/s$/,"")},tD=function(t){return t===void 0};const nD={s:Nf,z:XM,m:QM,a:ZM,p:eD,u:tD};var bi="en",co={};co[bi]=YM;var Sw="$isDayjsObject",gh=function(t){return t instanceof _c||!!(t&&t[Sw])},kl=function e(t,n,r){var o;if(!t)return bi;if(typeof t=="string"){var s=t.toLowerCase();co[s]&&(o=s),n&&(co[s]=n,o=s);var i=t.split("-");if(!o&&i.length>1)return e(i[0])}else{var a=t.name;co[a]=t,o=a}return!r&&o&&(bi=o),o||!r&&bi},Ke=function(t,n){if(gh(t))return t.clone();var r=typeof n=="object"?n:{};return r.date=t,r.args=arguments,new _c(r)},rD=function(t,n){return Ke(t,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})},Ae=nD;Ae.l=kl;Ae.i=gh;Ae.w=rD;var oD=function(t){var n=t.date,r=t.utc;if(n===null)return new Date(NaN);if(Ae.u(n))return new Date;if(n instanceof Date)return new Date(n);if(typeof n=="string"&&!/Z$/i.test(n)){var o=n.match(KM);if(o){var s=o[2]-1||0,i=(o[7]||"0").substring(0,3);return r?new Date(Date.UTC(o[1],s,o[3]||1,o[4]||0,o[5]||0,o[6]||0,i)):new Date(o[1],s,o[3]||1,o[4]||0,o[5]||0,o[6]||0,i)}}return new Date(n)},_c=(function(){function e(n){this.$L=kl(n.locale,null,!0),this.parse(n),this.$x=this.$x||n.x||{},this[Sw]=!0}var t=e.prototype;return t.parse=function(r){this.$d=oD(r),this.init()},t.init=function(){var r=this.$d;this.$y=r.getFullYear(),this.$M=r.getMonth(),this.$D=r.getDate(),this.$W=r.getDay(),this.$H=r.getHours(),this.$m=r.getMinutes(),this.$s=r.getSeconds(),this.$ms=r.getMilliseconds()},t.$utils=function(){return Ae},t.isValid=function(){return this.$d.toString()!==Pm},t.isSame=function(r,o){var s=Ke(r);return this.startOf(o)<=s&&s<=this.endOf(o)},t.isAfter=function(r,o){return Ke(r)<this.startOf(o)},t.isBefore=function(r,o){return this.endOf(o)<Ke(r)},t.$g=function(r,o,s){return Ae.u(r)?this[o]:this.set(s,r)},t.unix=function(){return Math.floor(this.valueOf()/1e3)},t.valueOf=function(){return this.$d.getTime()},t.startOf=function(r,o){var s=this,i=Ae.u(o)?!0:o,a=Ae.p(r),l=function(b,v){var m=Ae.w(s.$u?Date.UTC(s.$y,v,b):new Date(s.$y,v,b),s);return i?m:m.endOf(Gn)},u=function(b,v){var m=[0,0,0,0],_=[23,59,59,999];return Ae.w(s.toDate()[b].apply(s.toDate("s"),(i?m:_).slice(v)),s)},c=this.$W,f=this.$M,d=this.$D,h="set"+(this.$u?"UTC":"");switch(a){case Kn:return i?l(1,0):l(31,11);case an:return i?l(1,f):l(0,f+1);case Ya:{var p=this.$locale().weekStart||0,g=(c<p?c+7:c)-p;return l(i?d-g:d+(6-g),f)}case Gn:case es:return u(h+"Hours",0);case Qr:return u(h+"Minutes",1);case Qn:return u(h+"Seconds",2);case Xr:return u(h+"Milliseconds",3);default:return this.clone()}},t.endOf=function(r){return this.startOf(r,!1)},t.$set=function(r,o){var s,i=Ae.p(r),a="set"+(this.$u?"UTC":""),l=(s={},s[Gn]=a+"Date",s[es]=a+"Date",s[an]=a+"Month",s[Kn]=a+"FullYear",s[Qr]=a+"Hours",s[Qn]=a+"Minutes",s[Xr]=a+"Seconds",s[ph]=a+"Milliseconds",s)[i],u=i===Gn?this.$D+(o-this.$W):o;if(i===an||i===Kn){var c=this.clone().set(es,1);c.$d[l](u),c.init(),this.$d=c.set(es,Math.min(this.$D,c.daysInMonth())).$d}else l&&this.$d[l](u);return this.init(),this},t.set=function(r,o){return this.clone().$set(r,o)},t.get=function(r){return this[Ae.p(r)]()},t.add=function(r,o){var s=this,i;r=Number(r);var a=Ae.p(o),l=function(d){var h=Ke(s);return Ae.w(h.date(h.date()+Math.round(d*r)),s)};if(a===an)return this.set(an,this.$M+r);if(a===Kn)return this.set(Kn,this.$y+r);if(a===Gn)return l(1);if(a===Ya)return l(7);var u=(i={},i[Qn]=Ja,i[Qr]=Am,i[Xr]=Os,i)[a]||1,c=this.$d.getTime()+r*u;return Ae.w(c,this)},t.subtract=function(r,o){return this.add(r*-1,o)},t.format=function(r){var o=this,s=this.$locale();if(!this.isValid())return s.invalidDate||Pm;var i=r||GM,a=Ae.z(this),l=this.$H,u=this.$m,c=this.$M,f=s.weekdays,d=s.months,h=s.meridiem,p=function(m,_,S,E){return m&&(m[_]||m(o,i))||S[_].slice(0,E)},g=function(m){return Ae.s(l%12||12,m,"0")},y=h||function(v,m,_){var S=v<12?"AM":"PM";return _?S.toLowerCase():S},b=function(m){switch(m){case"YY":return String(o.$y).slice(-2);case"YYYY":return Ae.s(o.$y,4,"0");case"M":return c+1;case"MM":return Ae.s(c+1,2,"0");case"MMM":return p(s.monthsShort,c,d,3);case"MMMM":return p(d,c);case"D":return o.$D;case"DD":return Ae.s(o.$D,2,"0");case"d":return String(o.$W);case"dd":return p(s.weekdaysMin,o.$W,f,2);case"ddd":return p(s.weekdaysShort,o.$W,f,3);case"dddd":return f[o.$W];case"H":return String(l);case"HH":return Ae.s(l,2,"0");case"h":return g(1);case"hh":return g(2);case"a":return y(l,u,!0);case"A":return y(l,u,!1);case"m":return String(u);case"mm":return Ae.s(u,2,"0");case"s":return String(o.$s);case"ss":return Ae.s(o.$s,2,"0");case"SSS":return Ae.s(o.$ms,3,"0");case"Z":return a}return null};return i.replace(JM,function(v,m){return m||b(v)||a.replace(":","")})},t.utcOffset=function(){return-Math.round(this.$d.getTimezoneOffset()/15)*15},t.diff=function(r,o,s){var i=this,a=Ae.p(o),l=Ke(r),u=(l.utcOffset()-this.utcOffset())*Ja,c=this-l,f=function(){return Ae.m(i,l)},d;switch(a){case Kn:d=f()/12;break;case an:d=f();break;case ww:d=f()/3;break;case Ya:d=(c-u)/qM;break;case Gn:d=(c-u)/VM;break;case Qr:d=c/Am;break;case Qn:d=c/Ja;break;case Xr:d=c/Os;break;default:d=c;break}return s?d:Ae.a(d)},t.daysInMonth=function(){return this.endOf(an).$D},t.$locale=function(){return co[this.$L]},t.locale=function(r,o){if(!r)return this.$L;var s=this.clone(),i=kl(r,o,!0);return i&&(s.$L=i),s},t.clone=function(){return Ae.w(this.$d,this)},t.toDate=function(){return new Date(this.valueOf())},t.toJSON=function(){return this.isValid()?this.toISOString():null},t.toISOString=function(){return this.$d.toISOString()},t.toString=function(){return this.$d.toUTCString()},e})(),Cw=_c.prototype;Ke.prototype=Cw;[["$ms",ph],["$s",Xr],["$m",Qn],["$H",Qr],["$W",Gn],["$M",an],["$y",Kn],["$D",es]].forEach(function(e){Cw[e[1]]=function(t){return this.$g(t,e[0],e[1])}});Ke.extend=function(e,t){return e.$i||(e(t,_c,Ke),e.$i=!0),Ke};Ke.locale=kl;Ke.isDayjs=gh;Ke.unix=function(e){return Ke(e*1e3)};Ke.en=co[bi];Ke.Ls=co;Ke.p={};const Ew=()=>En()&&window.document.documentElement;let Oa;const L8=()=>{if(!Ew())return!1;if(Oa!==void 0)return Oa;const e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),Oa=e.scrollHeight===1,document.body.removeChild(e),Oa};let Xa=x({},mo.Modal);function sD(e){e?Xa=x(x({},Xa),e):Xa=x({},mo.Modal)}function iD(){return Xa}const Lf="internalMark",Qa=he({compatConfig:{MODE:3},name:"ALocaleProvider",props:{locale:{type:Object},ANT_MARK__:String},setup(e,t){let{slots:n}=t;uc(e.ANT_MARK__===Lf);const r=ot({antLocale:x(x({},e.locale),{exist:!0}),ANT_MARK__:Lf});return _t("localeData",r),Se(()=>e.locale,o=>{sD(o&&o.Modal),r.antLocale=x(x({},o),{exist:!0})},{immediate:!0}),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}});Qa.install=function(e){return e.component(Qa.name,Qa),e};const aD=Ud(Qa),Tw=he({name:"Notice",inheritAttrs:!1,props:["prefixCls","duration","updateMark","noticeKey","closeIcon","closable","props","onClick","onClose","holder","visible"],setup(e,t){let{attrs:n,slots:r}=t,o,s=!1;const i=R(()=>e.duration===void 0?4.5:e.duration),a=()=>{i.value&&!s&&(o=setTimeout(()=>{u()},i.value*1e3))},l=()=>{o&&(clearTimeout(o),o=null)},u=f=>{f&&f.stopPropagation(),l();const{onClose:d,noticeKey:h}=e;d&&d(h)},c=()=>{l(),a()};return St(()=>{a()}),Is(()=>{s=!0,l()}),Se([i,()=>e.updateMark,()=>e.visible],(f,d)=>{let[h,p,g]=f,[y,b,v]=d;(h!==y||p!==b||g!==v&&v)&&c()},{flush:"post"}),()=>{var f,d;const{prefixCls:h,closable:p,closeIcon:g=(f=r.closeIcon)===null||f===void 0?void 0:f.call(r),onClick:y,holder:b}=e,{class:v,style:m}=n,_=`${h}-notice`,S=Object.keys(n).reduce((w,A)=>((A.startsWith("data-")||A.startsWith("aria-")||A==="role")&&(w[A]=n[A]),w),{}),E=P("div",ue({class:Xe(_,v,{[`${_}-closable`]:p}),style:m,onMouseenter:l,onMouseleave:a,onClick:y},S),[P("div",{class:`${_}-content`},[(d=r.default)===null||d===void 0?void 0:d.call(r)]),p?P("a",{tabindex:0,onClick:u,class:`${_}-close`},[g||P("span",{class:`${_}-close-x`},null)]):null]);return b?P(vv,{to:b},{default:()=>E}):E}}});var lD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let $m=0;const cD=Date.now();function Rm(){const e=$m;return $m+=1,`rcNotification_${cD}_${e}`}const Il=he({name:"Notification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId"],setup(e,t){let{attrs:n,expose:r,slots:o}=t;const s=new Map,i=te([]),a=R(()=>{const{prefixCls:c,animation:f="fade"}=e;let d=e.transitionName;return!d&&f&&(d=`${c}-${f}`),z_(d)}),l=(c,f)=>{const d=c.key||Rm(),h=x(x({},c),{key:d}),{maxCount:p}=e,g=i.value.map(b=>b.notice.key).indexOf(d),y=i.value.concat();g!==-1?y.splice(g,1,{notice:h,holderCallback:f}):(p&&i.value.length>=p&&(h.key=y[0].notice.key,h.updateMark=Rm(),h.userPassKey=d,y.shift()),y.push({notice:h,holderCallback:f})),i.value=y},u=c=>{i.value=i.value.filter(f=>{let{notice:{key:d,userPassKey:h}}=f;return(h||d)!==c})};return r({add:l,remove:u,notices:i}),()=>{var c;const{prefixCls:f,closeIcon:d=(c=o.closeIcon)===null||c===void 0?void 0:c.call(o,{prefixCls:f})}=e,h=i.value.map((g,y)=>{let{notice:b,holderCallback:v}=g;const m=y===i.value.length-1?b.updateMark:void 0,{key:_,userPassKey:S}=b,{content:E}=b,w=x(x(x({prefixCls:f,closeIcon:typeof d=="function"?d({prefixCls:f}):d},b),b.props),{key:_,noticeKey:S||_,updateMark:m,onClose:A=>{var O;u(A),(O=b.onClose)===null||O===void 0||O.call(b)},onClick:b.onClick});return v?P("div",{key:_,class:`${f}-hook-holder`,ref:A=>{typeof _>"u"||(A?(s.set(_,A),v(A,w)):s.delete(_))}},null):P(Tw,ue(ue({},w),{},{class:Xe(w.class,e.hashId)}),{default:()=>[typeof E=="function"?E({prefixCls:f}):E]})}),p={[f]:1,[n.class]:!!n.class,[e.hashId]:!0};return P("div",{class:p,style:n.style||{top:"65px",left:"50%"}},[P(S0,ue({tag:"div"},a.value),{default:()=>[h]})])}}});Il.newInstance=function(t,n){const r=t||{},{name:o="notification",getContainer:s,appContext:i,prefixCls:a,rootPrefixCls:l,transitionName:u,hasTransitionName:c,useStyle:f}=r,d=lD(r,["name","getContainer","appContext","prefixCls","rootPrefixCls","transitionName","hasTransitionName","useStyle"]),h=document.createElement("div");s?s().appendChild(h):document.body.appendChild(h);const g=P(he({compatConfig:{MODE:3},name:"NotificationWrapper",setup(y,b){let{attrs:v}=b;const m=se(),_=R(()=>yt.getPrefixCls(o,a)),[,S]=f(_);return St(()=>{n({notice(E){var w;(w=m.value)===null||w===void 0||w.add(E)},removeNotice(E){var w;(w=m.value)===null||w===void 0||w.remove(E)},destroy(){po(null,h),h.parentNode&&h.parentNode.removeChild(h)},component:m})}),()=>{const E=yt,w=E.getRootPrefixCls(l,_.value),A=c?u:`${_.value}-${u}`;return P(uo,ue(ue({},E),{},{prefixCls:w}),{default:()=>[P(Il,ue(ue({ref:m},v),{},{prefixCls:_.value,transitionName:A,hashId:S.value}),null)]})}}}),d);g.appContext=i||g.appContext,po(g,h)};let km=0;const uD=Date.now();function Im(){const e=km;return km+=1,`rcNotification_${uD}_${e}`}const fD=he({name:"HookNotification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId","remove","notices","getStyles","getClassName","onAllRemoved","getContainer"],setup(e,t){let{attrs:n,slots:r}=t;const o=new Map,s=R(()=>e.notices),i=R(()=>{let c=e.transitionName;if(!c&&e.animation)switch(typeof e.animation){case"string":c=e.animation;break;case"function":c=e.animation().name;break;case"object":c=e.animation.name;break;default:c=`${e.prefixCls}-fade`;break}return z_(c)}),a=c=>e.remove(c),l=te({});Se(s,()=>{const c={};Object.keys(l.value).forEach(f=>{c[f]=[]}),e.notices.forEach(f=>{const{placement:d="topRight"}=f.notice;d&&(c[d]=c[d]||[],c[d].push(f))}),l.value=c});const u=R(()=>Object.keys(l.value));return()=>{var c;const{prefixCls:f,closeIcon:d=(c=r.closeIcon)===null||c===void 0?void 0:c.call(r,{prefixCls:f})}=e,h=u.value.map(p=>{var g,y;const b=l.value[p],v=(g=e.getClassName)===null||g===void 0?void 0:g.call(e,p),m=(y=e.getStyles)===null||y===void 0?void 0:y.call(e,p),_=b.map((w,A)=>{let{notice:O,holderCallback:L}=w;const N=A===s.value.length-1?O.updateMark:void 0,{key:k,userPassKey:F}=O,{content:G}=O,$=x(x(x({prefixCls:f,closeIcon:typeof d=="function"?d({prefixCls:f}):d},O),O.props),{key:k,noticeKey:F||k,updateMark:N,onClose:I=>{var W;a(I),(W=O.onClose)===null||W===void 0||W.call(O)},onClick:O.onClick});return L?P("div",{key:k,class:`${f}-hook-holder`,ref:I=>{typeof k>"u"||(I?(o.set(k,I),L(I,$)):o.delete(k))}},null):P(Tw,ue(ue({},$),{},{class:Xe($.class,e.hashId)}),{default:()=>[typeof G=="function"?G({prefixCls:f}):G]})}),S={[f]:1,[`${f}-${p}`]:1,[n.class]:!!n.class,[e.hashId]:!0,[v]:!!v};function E(){var w;b.length>0||(Reflect.deleteProperty(l.value,p),(w=e.onAllRemoved)===null||w===void 0||w.call(e))}return P("div",{key:p,class:S,style:n.style||m||{top:"65px",left:"50%"}},[P(S0,ue(ue({tag:"div"},i.value),{},{onAfterLeave:E}),{default:()=>[_]})])});return P(G_,{getContainer:e.getContainer},{default:()=>[h]})}}});var dD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const hD=()=>document.body;let Nm=0;function pD(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(o=>{o&&Object.keys(o).forEach(s=>{const i=o[s];i!==void 0&&(e[s]=i)})}),e}function xw(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{getContainer:t=hD,motion:n,prefixCls:r,maxCount:o,getClassName:s,getStyles:i,onAllRemoved:a}=e,l=dD(e,["getContainer","motion","prefixCls","maxCount","getClassName","getStyles","onAllRemoved"]),u=se([]),c=se(),f=(b,v)=>{const m=b.key||Im(),_=x(x({},b),{key:m}),S=u.value.map(w=>w.notice.key).indexOf(m),E=u.value.concat();S!==-1?E.splice(S,1,{notice:_,holderCallback:v}):(o&&u.value.length>=o&&(_.key=E[0].notice.key,_.updateMark=Im(),_.userPassKey=m,E.shift()),E.push({notice:_,holderCallback:v})),u.value=E},d=b=>{u.value=u.value.filter(v=>{let{notice:{key:m,userPassKey:_}}=v;return(_||m)!==b})},h=()=>{u.value=[]},p=()=>P(fD,{ref:c,prefixCls:r,maxCount:o,notices:u.value,remove:d,getClassName:s,getStyles:i,animation:n,hashId:e.hashId,onAllRemoved:a,getContainer:t},null),g=se([]),y={open:b=>{const v=pD(l,b);(v.key===null||v.key===void 0)&&(v.key=`vc-notification-${Nm}`,Nm+=1),g.value=[...g.value,{type:"open",config:v}]},close:b=>{g.value=[...g.value,{type:"close",key:b}]},destroy:()=>{g.value=[...g.value,{type:"destroy"}]}};return Se(g,()=>{g.value.length&&(g.value.forEach(b=>{switch(b.type){case"open":f(b.config);break;case"close":d(b.key);break;case"destroy":h();break}}),g.value=[])}),[y,p]}const gD=e=>{const{componentCls:t,iconCls:n,boxShadowSecondary:r,colorBgElevated:o,colorSuccess:s,colorError:i,colorWarning:a,colorInfo:l,fontSizeLG:u,motionEaseInOutCirc:c,motionDurationSlow:f,marginXS:d,paddingXS:h,borderRadiusLG:p,zIndexPopup:g,messageNoticeContentPadding:y}=e,b=new Je("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:h,transform:"translateY(0)",opacity:1}}),v=new Je("MessageMoveOut",{"0%":{maxHeight:e.height,padding:h,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}});return[{[t]:x(x({},Jd(e)),{position:"fixed",top:d,left:"50%",transform:"translateX(-50%)",width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
|
||
${t}-move-up-appear,
|
||
${t}-move-up-enter
|
||
`]:{animationName:b,animationDuration:f,animationPlayState:"paused",animationTimingFunction:c},[`
|
||
${t}-move-up-appear${t}-move-up-appear-active,
|
||
${t}-move-up-enter${t}-move-up-enter-active
|
||
`]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:v,animationDuration:f,animationPlayState:"paused",animationTimingFunction:c},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[`${t}-notice`]:{padding:h,textAlign:"center",[n]:{verticalAlign:"text-bottom",marginInlineEnd:d,fontSize:u},[`${t}-notice-content`]:{display:"inline-block",padding:y,background:o,borderRadius:p,boxShadow:r,pointerEvents:"all"},[`${t}-success ${n}`]:{color:s},[`${t}-error ${n}`]:{color:i},[`${t}-warning ${n}`]:{color:a},[`
|
||
${t}-info ${n},
|
||
${t}-loading ${n}`]:{color:l}}},{[`${t}-notice-pure-panel`]:{padding:0,textAlign:"start"}}]},Ow=Eo("Message",e=>{const t=Rr(e,{messageNoticeContentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`});return[gD(t)]},e=>({height:150,zIndexPopup:e.zIndexPopupBase+10})),mD={info:P(ko,null,null),success:P($o,null,null),error:P(Po,null,null),warning:P(Ro,null,null),loading:P(_o,null,null)},yD=he({name:"PureContent",inheritAttrs:!1,props:["prefixCls","type","icon"],setup(e,t){let{slots:n}=t;return()=>{var r;return P("div",{class:Xe(`${e.prefixCls}-custom-content`,`${e.prefixCls}-${e.type}`)},[e.icon||mD[e.type],P("span",null,[(r=n.default)===null||r===void 0?void 0:r.call(n)])])}}});var vD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const bD=8,_D=3,wD=he({name:"Holder",inheritAttrs:!1,props:["top","prefixCls","getContainer","maxCount","duration","rtl","transitionName","onAllRemoved"],setup(e,t){let{expose:n}=t;var r,o;const{getPrefixCls:s,getPopupContainer:i}=ur("message",e),a=R(()=>s("message",e.prefixCls)),[,l]=Ow(a),u=()=>{var g;const y=(g=e.top)!==null&&g!==void 0?g:bD;return{left:"50%",transform:"translateX(-50%)",top:typeof y=="number"?`${y}px`:y}},c=()=>Xe(l.value,e.rtl?`${a.value}-rtl`:""),f=()=>{var g;return Mk({prefixCls:a.value,animation:(g=e.animation)!==null&&g!==void 0?g:"move-up",transitionName:e.transitionName})},d=P("span",{class:`${a.value}-close-x`},[P(Bs,{class:`${a.value}-close-icon`},null)]),[h,p]=xw({getStyles:u,prefixCls:a.value,getClassName:c,motion:f,closable:!1,closeIcon:d,duration:(r=e.duration)!==null&&r!==void 0?r:_D,getContainer:(o=e.staticGetContainer)!==null&&o!==void 0?o:i.value,maxCount:e.maxCount,onAllRemoved:e.onAllRemoved});return n(x(x({},h),{prefixCls:a,hashId:l})),p}});let Lm=0;function SD(e){const t=se(null),n=Symbol("messageHolderKey"),r=l=>{var u;(u=t.value)===null||u===void 0||u.close(l)},o=l=>{if(!t.value){const S=()=>{};return S.then=()=>{},S}const{open:u,prefixCls:c,hashId:f}=t.value,d=`${c}-notice`,{content:h,icon:p,type:g,key:y,class:b,onClose:v}=l,m=vD(l,["content","icon","type","key","class","onClose"]);let _=y;return _==null&&(Lm+=1,_=`antd-message-${Lm}`),v$(S=>(u(x(x({},m),{key:_,content:()=>P(yD,{prefixCls:c,type:g,icon:typeof p=="function"?p():p},{default:()=>[typeof h=="function"?h():h]}),placement:"top",class:Xe(g&&`${d}-${g}`,f,b),onClose:()=>{v?.(),S()}})),()=>{r(_)}))},i={open:o,destroy:l=>{var u;l!==void 0?r(l):(u=t.value)===null||u===void 0||u.destroy()}};return["info","success","warning","error","loading"].forEach(l=>{const u=(c,f,d)=>{let h;c&&typeof c=="object"&&"content"in c?h=c:h={content:c};let p,g;typeof f=="function"?g=f:(p=f,g=d);const y=x(x({onClose:g,duration:p},h),{type:l});return o(y)};i[l]=u}),[i,()=>P(wD,ue(ue({key:n},e),{},{ref:t}),null)]}function CD(e){return SD(e)}let Aw=3,Pw,$t,ED=1,$w="",Rw="move-up",kw=!1,Iw=()=>document.body,Nw,Lw=!1;function TD(){return ED++}function xD(e){e.top!==void 0&&(Pw=e.top,$t=null),e.duration!==void 0&&(Aw=e.duration),e.prefixCls!==void 0&&($w=e.prefixCls),e.getContainer!==void 0&&(Iw=e.getContainer,$t=null),e.transitionName!==void 0&&(Rw=e.transitionName,$t=null,kw=!0),e.maxCount!==void 0&&(Nw=e.maxCount,$t=null),e.rtl!==void 0&&(Lw=e.rtl)}function OD(e,t){if($t){t($t);return}Il.newInstance({appContext:e.appContext,prefixCls:e.prefixCls||$w,rootPrefixCls:e.rootPrefixCls,transitionName:Rw,hasTransitionName:kw,style:{top:Pw},getContainer:Iw||e.getPopupContainer,maxCount:Nw,name:"message",useStyle:Ow},n=>{if($t){t($t);return}$t=n,t(n)})}const jw={info:ko,success:$o,error:Po,warning:Ro,loading:_o},AD=Object.keys(jw);function PD(e){const t=e.duration!==void 0?e.duration:Aw,n=e.key||TD(),r=new Promise(s=>{const i=()=>(typeof e.onClose=="function"&&e.onClose(),s(!0));OD(e,a=>{a.notice({key:n,duration:t,style:e.style||{},class:e.class,content:l=>{let{prefixCls:u}=l;const c=jw[e.type],f=c?P(c,null,null):"",d=Xe(`${u}-custom-content`,{[`${u}-${e.type}`]:e.type,[`${u}-rtl`]:Lw===!0});return P("div",{class:d},[typeof e.icon=="function"?e.icon():e.icon||f,P("span",null,[typeof e.content=="function"?e.content():e.content])])},onClose:i,onClick:e.onClick})})}),o=()=>{$t&&$t.removeNotice(n)};return o.then=(s,i)=>r.then(s,i),o.promise=r,o}function $D(e){return Object.prototype.toString.call(e)==="[object Object]"&&!!e.content}const cn={open:PD,config:xD,destroy(e){if($t)if(e){const{removeNotice:t}=$t;t(e)}else{const{destroy:t}=$t;t(),$t=null}}};function RD(e,t){e[t]=(n,r,o)=>$D(n)?e.open(x(x({},n),{type:t})):(typeof r=="function"&&(o=r,r=void 0),e.open({content:n,duration:r,type:t,onClose:o}))}AD.forEach(e=>RD(cn,e));cn.warn=cn.warning;cn.useMessage=CD;const kD=e=>{const{componentCls:t,width:n,notificationMarginEdge:r}=e,o=new Je("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}}),s=new Je("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}}),i=new Je("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:n},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}});return{[`&${t}-top, &${t}-bottom`]:{marginInline:0},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:o}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:r,[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}}}},ID=e=>{const{iconCls:t,componentCls:n,boxShadowSecondary:r,fontSizeLG:o,notificationMarginBottom:s,borderRadiusLG:i,colorSuccess:a,colorInfo:l,colorWarning:u,colorError:c,colorTextHeading:f,notificationBg:d,notificationPadding:h,notificationMarginEdge:p,motionDurationMid:g,motionEaseInOut:y,fontSize:b,lineHeight:v,width:m,notificationIconSize:_}=e,S=`${n}-notice`,E=new Je("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:m},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),w=new Je("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:s,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[n]:x(x(x(x({},Jd(e)),{position:"fixed",zIndex:e.zIndexPopup,marginInlineEnd:p,[`${n}-hook-holder`]:{position:"relative"},[`&${n}-top, &${n}-bottom`]:{[`${n}-notice`]:{marginInline:"auto auto"}},[`&${n}-topLeft, &${n}-bottomLeft`]:{[`${n}-notice`]:{marginInlineEnd:"auto",marginInlineStart:0}},[`${n}-fade-enter, ${n}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:y,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${n}-fade-leave`]:{animationTimingFunction:y,animationFillMode:"both",animationDuration:g,animationPlayState:"paused"},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:E,animationPlayState:"running"},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:w,animationPlayState:"running"}}),kD(e)),{"&-rtl":{direction:"rtl",[`${n}-notice-btn`]:{float:"left"}}})},{[S]:{position:"relative",width:m,maxWidth:`calc(100vw - ${p*2}px)`,marginBottom:s,marginInlineStart:"auto",padding:h,overflow:"hidden",lineHeight:v,wordWrap:"break-word",background:d,borderRadius:i,boxShadow:r,[`${n}-close-icon`]:{fontSize:b,cursor:"pointer"},[`${S}-message`]:{marginBottom:e.marginXS,color:f,fontSize:o,lineHeight:e.lineHeightLG},[`${S}-description`]:{fontSize:b},[`&${S}-closable ${S}-message`]:{paddingInlineEnd:e.paddingLG},[`${S}-with-icon ${S}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+_,fontSize:o},[`${S}-with-icon ${S}-description`]:{marginInlineStart:e.marginSM+_,fontSize:b},[`${S}-icon`]:{position:"absolute",fontSize:_,lineHeight:0,[`&-success${t}`]:{color:a},[`&-info${t}`]:{color:l},[`&-warning${t}`]:{color:u},[`&-error${t}`]:{color:c}},[`${S}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${S}-btn`]:{float:"right",marginTop:e.marginSM}}},{[`${S}-pure-panel`]:{margin:0}}]},Mw=Eo("Notification",e=>{const t=e.paddingMD,n=e.paddingLG,r=Rr(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`,notificationMarginBottom:e.margin,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationIconSize:e.fontSizeLG*e.lineHeightLG,notificationCloseButtonSize:e.controlHeightLG*.55});return[ID(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50,width:384}));function ND(e,t){return t||P("span",{class:`${e}-close-x`},[P(Bs,{class:`${e}-close-icon`},null)])}P(ko,null,null),P($o,null,null),P(Po,null,null),P(Ro,null,null),P(_o,null,null);const LD={success:$o,info:ko,error:Po,warning:Ro};function jD(e){let{prefixCls:t,icon:n,type:r,message:o,description:s,btn:i}=e,a=null;if(n)a=P("span",{class:`${t}-icon`},[Qo(n)]);else if(r){const l=LD[r];a=P(l,{class:`${t}-icon ${t}-icon-${r}`},null)}return P("div",{class:Xe({[`${t}-with-icon`]:a}),role:"alert"},[a,P("div",{class:`${t}-message`},[o]),P("div",{class:`${t}-description`},[s]),i&&P("div",{class:`${t}-btn`},[i])])}function Dw(e,t,n){let r;switch(t=typeof t=="number"?`${t}px`:t,n=typeof n=="number"?`${n}px`:n,e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function MD(e){return{name:`${e}-fade`}}var DD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const jm=24,BD=4.5,UD=he({name:"Holder",inheritAttrs:!1,props:["prefixCls","class","type","icon","content","onAllRemoved"],setup(e,t){let{expose:n}=t;const{getPrefixCls:r,getPopupContainer:o}=ur("notification",e),s=R(()=>e.prefixCls||r("notification")),i=d=>{var h,p;return Dw(d,(h=e.top)!==null&&h!==void 0?h:jm,(p=e.bottom)!==null&&p!==void 0?p:jm)},[,a]=Mw(s),l=()=>Xe(a.value,{[`${s.value}-rtl`]:e.rtl}),u=()=>MD(s.value),[c,f]=xw({prefixCls:s.value,getStyles:i,getClassName:l,motion:u,closable:!0,closeIcon:ND(s.value),duration:BD,getContainer:()=>{var d,h;return((d=e.getPopupContainer)===null||d===void 0?void 0:d.call(e))||((h=o.value)===null||h===void 0?void 0:h.call(o))||document.body},maxCount:e.maxCount,hashId:a.value,onAllRemoved:e.onAllRemoved});return n(x(x({},c),{prefixCls:s.value,hashId:a})),f}});function FD(e){const t=se(null),n=Symbol("notificationHolderKey"),r=a=>{if(!t.value)return;const{open:l,prefixCls:u,hashId:c}=t.value,f=`${u}-notice`,{message:d,description:h,icon:p,type:g,btn:y,class:b}=a,v=DD(a,["message","description","icon","type","btn","class"]);return l(x(x({placement:"topRight"},v),{content:()=>P(jD,{prefixCls:f,icon:typeof p=="function"?p():p,type:g,message:typeof d=="function"?d():d,description:typeof h=="function"?h():h,btn:typeof y=="function"?y():y},null),class:Xe(g&&`${f}-${g}`,c,b)}))},s={open:r,destroy:a=>{var l,u;a!==void 0?(l=t.value)===null||l===void 0||l.close(a):(u=t.value)===null||u===void 0||u.destroy()}};return["success","info","warning","error"].forEach(a=>{s[a]=l=>r(x(x({},l),{type:a}))}),[s,()=>P(UD,ue(ue({key:n},e),{},{ref:t}),null)]}function HD(e){return FD(e)}const qr={};let Bw=4.5,Uw="24px",Fw="24px",jf="",Hw="topRight",Ww=()=>document.body,zw=null,Mf=!1,Vw;function WD(e){const{duration:t,placement:n,bottom:r,top:o,getContainer:s,closeIcon:i,prefixCls:a}=e;a!==void 0&&(jf=a),t!==void 0&&(Bw=t),n!==void 0&&(Hw=n),r!==void 0&&(Fw=typeof r=="number"?`${r}px`:r),o!==void 0&&(Uw=typeof o=="number"?`${o}px`:o),s!==void 0&&(Ww=s),i!==void 0&&(zw=i),e.rtl!==void 0&&(Mf=e.rtl),e.maxCount!==void 0&&(Vw=e.maxCount)}function zD(e,t){let{prefixCls:n,placement:r=Hw,getContainer:o=Ww,top:s,bottom:i,closeIcon:a=zw,appContext:l}=e;const{getPrefixCls:u}=nB(),c=u("notification",n||jf),f=`${c}-${r}-${Mf}`,d=qr[f];if(d){Promise.resolve(d).then(p=>{t(p)});return}const h=Xe(`${c}-${r}`,{[`${c}-rtl`]:Mf===!0});Il.newInstance({name:"notification",prefixCls:n||jf,useStyle:Mw,class:h,style:Dw(r,s??Uw,i??Fw),appContext:l,getContainer:o,closeIcon:p=>{let{prefixCls:g}=p;return P("span",{class:`${g}-close-x`},[Qo(a,{},P(Bs,{class:`${g}-close-icon`},null))])},maxCount:Vw,hasTransitionName:!0},p=>{qr[f]=p,t(p)})}const VD={success:ch,info:uh,error:fh,warning:ta};function qD(e){const{icon:t,type:n,description:r,message:o,btn:s}=e,i=e.duration===void 0?Bw:e.duration;zD(e,a=>{a.notice({content:l=>{let{prefixCls:u}=l;const c=`${u}-notice`;let f=null;if(t)f=()=>P("span",{class:`${c}-icon`},[Qo(t)]);else if(n){const d=VD[n];f=()=>P(d,{class:`${c}-icon ${c}-icon-${n}`},null)}return P("div",{class:f?`${c}-with-icon`:""},[f&&f(),P("div",{class:`${c}-message`},[!r&&f?P("span",{class:`${c}-message-single-line-auto-margin`},null):null,Qo(o)]),P("div",{class:`${c}-description`},[Qo(r)]),s?P("span",{class:`${c}-btn`},[Qo(s)]):null])},duration:i,closable:!0,onClose:e.onClose,onClick:e.onClick,key:e.key,style:e.style||{},class:e.class})})}const As={open:qD,close(e){Object.keys(qr).forEach(t=>Promise.resolve(qr[t]).then(n=>{n.removeNotice(e)}))},config:WD,destroy(){Object.keys(qr).forEach(e=>{Promise.resolve(qr[e]).then(t=>{t.destroy()}),delete qr[e]})}},GD=["success","info","warning","error"];GD.forEach(e=>{As[e]=t=>As.open(x(x({},t),{type:e}))});As.warn=As.warning;As.useNotification=HD;const KD=`-ant-${Date.now()}-${Math.random()}`;function JD(e,t){const n={},r=(i,a)=>{let l=i.clone();return l=a?.(l)||l,l.toRgbString()},o=(i,a)=>{const l=new bt(i),u=yo(l.toRgbString());n[`${a}-color`]=r(l),n[`${a}-color-disabled`]=u[1],n[`${a}-color-hover`]=u[4],n[`${a}-color-active`]=u[6],n[`${a}-color-outline`]=l.clone().setAlpha(.2).toRgbString(),n[`${a}-color-deprecated-bg`]=u[0],n[`${a}-color-deprecated-border`]=u[2]};if(t.primaryColor){o(t.primaryColor,"primary");const i=new bt(t.primaryColor),a=yo(i.toRgbString());a.forEach((u,c)=>{n[`primary-${c+1}`]=u}),n["primary-color-deprecated-l-35"]=r(i,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=r(i,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=r(i,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=r(i,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=r(i,u=>u.setAlpha(u.getAlpha()*.12));const l=new bt(a[0]);n["primary-color-active-deprecated-f-30"]=r(l,u=>u.setAlpha(u.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(l,u=>u.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
|
||
:root {
|
||
${Object.keys(n).map(i=>`--${e}-${i}: ${n[i]};`).join(`
|
||
`)}
|
||
}
|
||
`.trim()}function YD(e,t){const n=JD(e,t);En()&&Li(n,`${KD}-dynamic-theme`)}const XD=e=>{const[t,n]=Zi();return _f(R(()=>({theme:t.value,token:n.value,hashId:"",path:["ant-design-icons",e.value]})),()=>[{[`.${e.value}`]:x(x({},tk()),{[`.${e.value} .${e.value}-icon`]:{display:"block"}})}])};function QD(e,t){const n=R(()=>e?.value||{}),r=R(()=>n.value.inherit===!1||!t?.value?a_:t.value);return R(()=>{if(!e?.value)return t?.value;const s=x({},r.value.components);return Object.keys(e.value.components||{}).forEach(i=>{s[i]=x(x({},s[i]),e.value.components[i])}),x(x(x({},r.value),n.value),{token:x(x({},r.value.token),n.value.token),components:s})})}var ZD=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const eB="ant";function ds(){return yt.prefixCls||eB}function qw(){return yt.iconPrefixCls||Fd}const mh=ot({}),yt=ot({});Dn(()=>{x(yt,mh),yt.prefixCls=ds(),yt.iconPrefixCls=qw(),yt.getPrefixCls=(e,t)=>t||(e?`${yt.prefixCls}-${e}`:yt.prefixCls),yt.getRootPrefixCls=()=>yt.prefixCls?yt.prefixCls:ds()});let bu;const tB=e=>{bu&&bu(),bu=Dn(()=>{x(mh,ot(e)),x(yt,ot(e))}),e.theme&&YD(ds(),e.theme)},nB=()=>({getPrefixCls:(e,t)=>t||(e?`${ds()}-${e}`:ds()),getIconPrefixCls:qw,getRootPrefixCls:()=>yt.prefixCls?yt.prefixCls:ds()}),uo=he({compatConfig:{MODE:3},name:"AConfigProvider",inheritAttrs:!1,props:x$(),setup(e,t){let{slots:n}=t;const r=Wd(),o=($,I)=>{const{prefixCls:W="ant"}=e;if(I)return I;const H=W||r.getPrefixCls("");return $?`${H}-${$}`:H},s=R(()=>e.iconPrefixCls||r.iconPrefixCls.value||Fd),i=R(()=>s.value!==r.iconPrefixCls.value),a=R(()=>{var $;return e.csp||(($=r.csp)===null||$===void 0?void 0:$.value)}),l=XD(s),u=QD(R(()=>e.theme),R(()=>{var $;return($=r.theme)===null||$===void 0?void 0:$.value})),c=$=>(e.renderEmpty||n.renderEmpty||r.renderEmpty||gk)($),f=R(()=>{var $,I;return($=e.autoInsertSpaceInButton)!==null&&$!==void 0?$:(I=r.autoInsertSpaceInButton)===null||I===void 0?void 0:I.value}),d=R(()=>{var $;return e.locale||(($=r.locale)===null||$===void 0?void 0:$.value)});Se(d,()=>{mh.locale=d.value},{immediate:!0});const h=R(()=>{var $;return e.direction||(($=r.direction)===null||$===void 0?void 0:$.value)}),p=R(()=>{var $,I;return($=e.space)!==null&&$!==void 0?$:(I=r.space)===null||I===void 0?void 0:I.value}),g=R(()=>{var $,I;return($=e.virtual)!==null&&$!==void 0?$:(I=r.virtual)===null||I===void 0?void 0:I.value}),y=R(()=>{var $,I;return($=e.dropdownMatchSelectWidth)!==null&&$!==void 0?$:(I=r.dropdownMatchSelectWidth)===null||I===void 0?void 0:I.value}),b=R(()=>{var $;return e.getTargetContainer!==void 0?e.getTargetContainer:($=r.getTargetContainer)===null||$===void 0?void 0:$.value}),v=R(()=>{var $;return e.getPopupContainer!==void 0?e.getPopupContainer:($=r.getPopupContainer)===null||$===void 0?void 0:$.value}),m=R(()=>{var $;return e.pageHeader!==void 0?e.pageHeader:($=r.pageHeader)===null||$===void 0?void 0:$.value}),_=R(()=>{var $;return e.input!==void 0?e.input:($=r.input)===null||$===void 0?void 0:$.value}),S=R(()=>{var $;return e.pagination!==void 0?e.pagination:($=r.pagination)===null||$===void 0?void 0:$.value}),E=R(()=>{var $;return e.form!==void 0?e.form:($=r.form)===null||$===void 0?void 0:$.value}),w=R(()=>{var $;return e.select!==void 0?e.select:($=r.select)===null||$===void 0?void 0:$.value}),A=R(()=>e.componentSize),O=R(()=>e.componentDisabled),L=R(()=>{var $,I;return($=e.wave)!==null&&$!==void 0?$:(I=r.wave)===null||I===void 0?void 0:I.value}),N={csp:a,autoInsertSpaceInButton:f,locale:d,direction:h,space:p,virtual:g,dropdownMatchSelectWidth:y,getPrefixCls:o,iconPrefixCls:s,theme:R(()=>{var $,I;return($=u.value)!==null&&$!==void 0?$:(I=r.theme)===null||I===void 0?void 0:I.value}),renderEmpty:c,getTargetContainer:b,getPopupContainer:v,pageHeader:m,input:_,pagination:S,form:E,select:w,componentSize:A,componentDisabled:O,transformCellText:R(()=>e.transformCellText),wave:L},k=R(()=>{const $=u.value||{},{algorithm:I,token:W}=$,H=ZD($,["algorithm","token"]),J=I&&(!Array.isArray(I)||I.length>0)?Vb(I):void 0;return x(x({},H),{theme:J,token:x(x({},hc),W)})}),F=R(()=>{var $,I;let W={};return d.value&&(W=(($=d.value.Form)===null||$===void 0?void 0:$.defaultValidateMessages)||((I=mo.Form)===null||I===void 0?void 0:I.defaultValidateMessages)||{}),e.form&&e.form.validateMessages&&(W=x(x({},W),e.form.validateMessages)),W});O$(N),T$({validateMessages:F}),mk(A),A$(O);const G=$=>{var I,W;let H=i.value?l((I=n.default)===null||I===void 0?void 0:I.call(n)):(W=n.default)===null||W===void 0?void 0:W.call(n);if(e.theme){const J=(function(){return H})();H=P(uk,{value:k.value},{default:()=>[J]})}return P(aD,{locale:d.value||$,ANT_MARK__:Lf},{default:()=>[H]})};return Dn(()=>{h.value&&(cn.config({rtl:h.value==="rtl"}),As.config({rtl:h.value==="rtl"}))}),()=>P(Ib,{children:($,I,W)=>G(W)},null)}});uo.config=tB;uo.install=function(e){e.component(uo.name,uo)};function yh(){return{keyboard:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},afterClose:Function,closable:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},destroyOnClose:{type:Boolean,default:void 0},mousePosition:He.shape({x:Number,y:Number}).loose,title:He.any,footer:He.any,transitionName:String,maskTransitionName:String,animation:He.any,maskAnimation:He.any,wrapStyle:{type:Object,default:void 0},bodyStyle:{type:Object,default:void 0},maskStyle:{type:Object,default:void 0},prefixCls:String,wrapClassName:String,rootClassName:String,width:[String,Number],height:[String,Number],zIndex:Number,bodyProps:He.any,maskProps:He.any,wrapProps:He.any,getContainer:He.any,dialogStyle:{type:Object,default:void 0},dialogClass:String,closeIcon:He.any,forceRender:{type:Boolean,default:void 0},getOpenCount:Function,focusTriggerAfterClose:{type:Boolean,default:void 0},onClose:Function,modalRender:Function}}function Mm(e,t,n){let r=t;return!r&&n&&(r=`${e}-${n}`),r}let Dm=-1;function rB(){return Dm+=1,Dm}function Bm(e,t){let n=e[`page${t?"Y":"X"}Offset`];const r=`scroll${t?"Top":"Left"}`;if(typeof n!="number"){const o=e.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r])}return n}function oB(e){const t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=Bm(o),n.top+=Bm(o,!0),n}const Um={width:0,height:0,overflow:"hidden",outline:"none"},sB=he({compatConfig:{MODE:3},name:"DialogContent",inheritAttrs:!1,props:x(x({},yh()),{motionName:String,ariaId:String,onVisibleChanged:Function,onMousedown:Function,onMouseup:Function}),setup(e,t){let{expose:n,slots:r,attrs:o}=t;const s=te(),i=te(),a=te();n({focus:()=>{var d;(d=s.value)===null||d===void 0||d.focus()},changeActive:d=>{const{activeElement:h}=document;d&&h===i.value?s.value.focus():!d&&h===s.value&&i.value.focus()}});const l=te(),u=R(()=>{const{width:d,height:h}=e,p={};return d!==void 0&&(p.width=typeof d=="number"?`${d}px`:d),h!==void 0&&(p.height=typeof h=="number"?`${h}px`:h),l.value&&(p.transformOrigin=l.value),p}),c=()=>{kt(()=>{if(a.value){const d=oB(a.value);l.value=e.mousePosition?`${e.mousePosition.x-d.left}px ${e.mousePosition.y-d.top}px`:""}})},f=d=>{e.onVisibleChanged(d)};return()=>{var d,h,p,g;const{prefixCls:y,footer:b=(d=r.footer)===null||d===void 0?void 0:d.call(r),title:v=(h=r.title)===null||h===void 0?void 0:h.call(r),ariaId:m,closable:_,closeIcon:S=(p=r.closeIcon)===null||p===void 0?void 0:p.call(r),onClose:E,bodyStyle:w,bodyProps:A,onMousedown:O,onMouseup:L,visible:N,modalRender:k=r.modalRender,destroyOnClose:F,motionName:G}=e;let $;b&&($=P("div",{class:`${y}-footer`},[b]));let I;v&&(I=P("div",{class:`${y}-header`},[P("div",{class:`${y}-title`,id:m},[v])]));let W;_&&(W=P("button",{type:"button",onClick:E,"aria-label":"Close",class:`${y}-close`},[S||P("span",{class:`${y}-close-x`},null)]));const H=P("div",{class:`${y}-content`},[W,I,P("div",ue({class:`${y}-body`,style:w},A),[(g=r.default)===null||g===void 0?void 0:g.call(r)]),$]),J=W_(G);return P(Yi,ue(ue({},J),{},{onBeforeEnter:c,onAfterEnter:()=>f(!0),onAfterLeave:()=>f(!1)}),{default:()=>[N||!F?pv(P("div",ue(ue({},o),{},{ref:a,key:"dialog-element",role:"document",style:[u.value,o.style],class:[y,o.class],onMousedown:O,onMouseup:L}),[P("div",{tabindex:0,ref:s,style:Um,"aria-hidden":"true"},null),k?k({originVNode:H}):H,P("div",{tabindex:0,ref:i,style:Um,"aria-hidden":"true"},null)]),[[v0,N]]):null]})}}}),iB=he({compatConfig:{MODE:3},name:"DialogMask",props:{prefixCls:String,visible:Boolean,motionName:String,maskProps:Object},setup(e,t){return()=>{const{prefixCls:n,visible:r,maskProps:o,motionName:s}=e,i=W_(s);return P(Yi,i,{default:()=>[pv(P("div",ue({class:`${n}-mask`},o),null),[[v0,r]])]})}}}),Fm=he({compatConfig:{MODE:3},name:"VcDialog",inheritAttrs:!1,props:Qi(x(x({},yh()),{getOpenCount:Function,scrollLocker:Object}),{mask:!0,visible:!1,keyboard:!0,closable:!0,maskClosable:!0,destroyOnClose:!1,prefixCls:"rc-dialog",getOpenCount:()=>null,focusTriggerAfterClose:!0}),setup(e,t){let{attrs:n,slots:r}=t;const o=se(),s=se(),i=se(),a=se(e.visible),l=se(`vcDialogTitle${rB()}`),u=b=>{var v,m;if(b)Db(s.value,document.activeElement)||(o.value=document.activeElement,(v=i.value)===null||v===void 0||v.focus());else{const _=a.value;if(a.value=!1,e.mask&&o.value&&e.focusTriggerAfterClose){try{o.value.focus({preventScroll:!0})}catch{}o.value=null}_&&((m=e.afterClose)===null||m===void 0||m.call(e))}},c=b=>{var v;(v=e.onClose)===null||v===void 0||v.call(e,b)},f=se(!1),d=se(),h=()=>{clearTimeout(d.value),f.value=!0},p=()=>{d.value=setTimeout(()=>{f.value=!1})},g=b=>{if(!e.maskClosable)return null;f.value?f.value=!1:s.value===b.target&&c(b)},y=b=>{if(e.keyboard&&b.keyCode===zg.ESC){b.stopPropagation(),c(b);return}e.visible&&b.keyCode===zg.TAB&&i.value.changeActive(!b.shiftKey)};return Se(()=>e.visible,()=>{e.visible&&(a.value=!0)},{flush:"post"}),rn(()=>{var b;clearTimeout(d.value),(b=e.scrollLocker)===null||b===void 0||b.unLock()}),Dn(()=>{var b,v;(b=e.scrollLocker)===null||b===void 0||b.unLock(),a.value&&((v=e.scrollLocker)===null||v===void 0||v.lock())}),()=>{const{prefixCls:b,mask:v,visible:m,maskTransitionName:_,maskAnimation:S,zIndex:E,wrapClassName:w,rootClassName:A,wrapStyle:O,closable:L,maskProps:N,maskStyle:k,transitionName:F,animation:G,wrapProps:$,title:I=r.title}=e,{style:W,class:H}=n;return P("div",ue({class:[`${b}-root`,A]},YN(e,{data:!0})),[P(iB,{prefixCls:b,visible:v&&m,motionName:Mm(b,_,S),style:x({zIndex:E},k),maskProps:N},null),P("div",ue({tabIndex:-1,onKeydown:y,class:Xe(`${b}-wrap`,w),ref:s,onClick:g,role:"dialog","aria-labelledby":I?l.value:null,style:x(x({zIndex:E},O),{display:a.value?null:"none"})},$),[P(sB,ue(ue({},m_(e,["scrollLocker"])),{},{style:W,class:H,onMousedown:h,onMouseup:p,ref:i,closable:L,ariaId:l.value,prefixCls:b,visible:m,onClose:c,onVisibleChanged:u,motionName:Mm(b,F,G)}),r)])])}}}),aB=yh(),lB=he({compatConfig:{MODE:3},name:"DialogWrap",inheritAttrs:!1,props:Qi(aB,{visible:!1}),setup(e,t){let{attrs:n,slots:r}=t;const o=te(e.visible);return q_({},{inTriggerContext:!1}),Se(()=>e.visible,()=>{e.visible&&(o.value=!0)},{flush:"post"}),()=>{const{visible:s,getContainer:i,forceRender:a,destroyOnClose:l=!1,afterClose:u}=e;let c=x(x(x({},e),n),{ref:"_component",key:"dialog"});return i===!1?P(Fm,ue(ue({},c),{},{getOpenCount:()=>2}),r):!a&&l&&!o.value?null:P(VN,{autoLock:!0,visible:s,forceRender:a,getContainer:i},{default:f=>(c=x(x(x({},c),f),{afterClose:()=>{u?.(),o.value=!1}}),P(Fm,c,r))})}}});function Hm(e){return{position:e,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0}}const cB=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}${e.antCls}-zoom-enter, ${t}${e.antCls}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${e.antCls}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:x(x({},Hm("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:x(x({},Hm("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:Bj(e)}]},uB=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap`]:{zIndex:e.zIndexPopupBase,position:"fixed",inset:0,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"},[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax})`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:x(x({},Jd(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${e.margin*2}px)`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.modalHeadingColor,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.modalContentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadowSecondary,pointerEvents:"auto",padding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${t}-close`]:x({position:"absolute",top:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,padding:0,color:e.modalCloseColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalConfirmIconSize,height:e.modalConfirmIconSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"block",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${e.modalCloseBtnSize}px`,textAlign:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},s_(e)),[`${t}-header`]:{color:e.colorText,background:e.modalHeaderBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"},[`${t}-footer`]:{textAlign:"end",background:e.modalFooterBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
|
||
${t}-body,
|
||
${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},fB=e=>{const{componentCls:t}=e,n=`${t}-confirm`;return{[n]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${n}-body-wrapper`]:x({},nk()),[`${n}-body`]:{display:"flex",flexWrap:"wrap",alignItems:"center",[`${n}-title`]:{flex:"0 0 100%",display:"block",overflow:"hidden",color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,[`+ ${n}-content`]:{marginBlockStart:e.marginXS,flexBasis:"100%",maxWidth:`calc(100% - ${e.modalConfirmIconSize+e.marginSM}px)`}},[`${n}-content`]:{color:e.colorText,fontSize:e.fontSize},[`> ${e.iconCls}`]:{flex:"none",marginInlineEnd:e.marginSM,fontSize:e.modalConfirmIconSize,[`+ ${n}-title`]:{flex:1},[`+ ${n}-title + ${n}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.marginSM}}},[`${n}-btns`]:{textAlign:"end",marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${n}-error ${n}-body > ${e.iconCls}`]:{color:e.colorError},[`${n}-warning ${n}-body > ${e.iconCls},
|
||
${n}-confirm ${n}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${n}-info ${n}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${n}-success ${n}-body > ${e.iconCls}`]:{color:e.colorSuccess},[`${t}-zoom-leave ${t}-btns`]:{pointerEvents:"none"}}},dB=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},hB=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-confirm`;return{[t]:{[`${t}-content`]:{padding:0},[`${t}-header`]:{padding:e.modalHeaderPadding,borderBottom:`${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`,marginBottom:0},[`${t}-body`]:{padding:e.modalBodyPadding},[`${t}-footer`]:{padding:`${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`,borderTop:`${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`,marginTop:0}},[r]:{[`${n}-modal-body`]:{padding:`${e.padding*2}px ${e.padding*2}px ${e.paddingLG}px`},[`${r}-body`]:{[`> ${e.iconCls}`]:{marginInlineEnd:e.margin,[`+ ${r}-title + ${r}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.margin}}},[`${r}-btns`]:{marginTop:e.marginLG}}}},pB=Eo("Modal",e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5,o=Rr(e,{modalBodyPadding:e.paddingLG,modalHeaderBg:e.colorBgElevated,modalHeaderPadding:`${t}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderTitleLineHeight:r,modalHeaderTitleFontSize:n,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderCloseSize:r*n+t*2,modalContentBg:e.colorBgElevated,modalHeadingColor:e.colorTextHeading,modalCloseColor:e.colorTextDescription,modalFooterBg:"transparent",modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalConfirmTitleFontSize:e.fontSizeLG,modalIconHoverColor:e.colorIconHover,modalConfirmIconSize:e.fontSize*e.lineHeight,modalCloseBtnSize:e.controlHeightLG*.55});return[uB(o),fB(o),dB(o),cB(o),e.wireframe&&hB(o),Xj(o,"zoom")]});var gB=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let Df;const mB=e=>{Df={x:e.pageX,y:e.pageY},setTimeout(()=>Df=null,100)};Ew()&&E$(document.documentElement,"click",mB,!0);const yB=()=>({prefixCls:String,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},confirmLoading:{type:Boolean,default:void 0},title:He.any,closable:{type:Boolean,default:void 0},closeIcon:He.any,onOk:Function,onCancel:Function,"onUpdate:visible":Function,"onUpdate:open":Function,onChange:Function,afterClose:Function,centered:{type:Boolean,default:void 0},width:[String,Number],footer:He.any,okText:He.any,okType:String,cancelText:He.any,icon:He.any,maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:tt(),cancelButtonProps:tt(),destroyOnClose:{type:Boolean,default:void 0},wrapClassName:String,maskTransitionName:String,transitionName:String,getContainer:{type:[String,Function,Boolean,Object],default:void 0},zIndex:Number,bodyStyle:tt(),maskStyle:tt(),mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:Object,focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:Function,mousePosition:tt()}),Bt=he({compatConfig:{MODE:3},name:"AModal",inheritAttrs:!1,props:Qi(yB(),{width:520,confirmLoading:!1,okType:"primary"}),setup(e,t){let{emit:n,slots:r,attrs:o}=t;const[s]=Vd("Modal"),{prefixCls:i,rootPrefixCls:a,direction:l,getPopupContainer:u}=ur("modal",e),[c,f]=pB(i);uc(e.visible===void 0);const d=g=>{n("update:visible",!1),n("update:open",!1),n("cancel",g),n("change",!1)},h=g=>{n("ok",g)},p=()=>{var g,y;const{okText:b=(g=r.okText)===null||g===void 0?void 0:g.call(r),okType:v,cancelText:m=(y=r.cancelText)===null||y===void 0?void 0:y.call(r),confirmLoading:_}=e;return P(je,null,[P(lo,ue({onClick:d},e.cancelButtonProps),{default:()=>[m||s.value.cancelText]}),P(lo,ue(ue({},pw(v)),{},{loading:_,onClick:h},e.okButtonProps),{default:()=>[b||s.value.okText]})])};return()=>{var g,y;const{prefixCls:b,visible:v,open:m,wrapClassName:_,centered:S,getContainer:E,closeIcon:w=(g=r.closeIcon)===null||g===void 0?void 0:g.call(r),focusTriggerAfterClose:A=!0}=e,O=gB(e,["prefixCls","visible","open","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose"]),L=Xe(_,{[`${i.value}-centered`]:!!S,[`${i.value}-wrap-rtl`]:l.value==="rtl"});return c(P(lB,ue(ue(ue({},O),o),{},{rootClassName:f.value,class:Xe(f.value,o.class),getContainer:E||u?.value,prefixCls:i.value,wrapClassName:L,visible:m??v,onClose:d,focusTriggerAfterClose:A,transitionName:Pl(a.value,"zoom",e.transitionName),maskTransitionName:Pl(a.value,"fade",e.maskTransitionName),mousePosition:(y=O.mousePosition)!==null&&y!==void 0?y:Df}),x(x({},r),{footer:r.footer||p,closeIcon:()=>P("span",{class:`${i.value}-close-x`},[w||P(Bs,{class:`${i.value}-close-icon`},null)])})))}}}),vB=()=>{const e=se(!1);return rn(()=>{e.value=!0}),e},bB={type:{type:String},actionFn:Function,close:Function,autofocus:Boolean,prefixCls:String,buttonProps:tt(),emitEvent:Boolean,quitOnNullishReturnValue:Boolean};function Wm(e){return!!(e&&e.then)}const zm=he({compatConfig:{MODE:3},name:"ActionButton",props:bB,setup(e,t){let{slots:n}=t;const r=se(!1),o=se(),s=se(!1);let i;const a=vB();St(()=>{e.autofocus&&(i=setTimeout(()=>{var f,d;return(d=(f=El(o.value))===null||f===void 0?void 0:f.focus)===null||d===void 0?void 0:d.call(f)}))}),rn(()=>{clearTimeout(i)});const l=function(){for(var f,d=arguments.length,h=new Array(d),p=0;p<d;p++)h[p]=arguments[p];(f=e.close)===null||f===void 0||f.call(e,...h)},u=f=>{Wm(f)&&(s.value=!0,f.then(function(){a.value||(s.value=!1),l(...arguments),r.value=!1},d=>(a.value||(s.value=!1),r.value=!1,Promise.reject(d))))},c=f=>{const{actionFn:d}=e;if(r.value)return;if(r.value=!0,!d){l();return}let h;if(e.emitEvent){if(h=d(f),e.quitOnNullishReturnValue&&!Wm(h)){r.value=!1,l(f);return}}else if(d.length)h=d(e.close),r.value=!1;else if(h=d(),!h){l();return}u(h)};return()=>{const{type:f,prefixCls:d,buttonProps:h}=e;return P(lo,ue(ue(ue({},pw(f)),{},{onClick:c,loading:s.value,prefixCls:d},h),{},{ref:o}),n)}}});function jo(e){return typeof e=="function"?e():e}const Gw=he({name:"ConfirmDialog",inheritAttrs:!1,props:["icon","onCancel","onOk","close","closable","zIndex","afterClose","visible","open","keyboard","centered","getContainer","maskStyle","okButtonProps","cancelButtonProps","okType","prefixCls","okCancel","width","mask","maskClosable","okText","cancelText","autoFocusButton","transitionName","maskTransitionName","type","title","content","direction","rootPrefixCls","bodyStyle","closeIcon","modalRender","focusTriggerAfterClose","wrapClassName","confirmPrefixCls","footer"],setup(e,t){let{attrs:n}=t;const[r]=Vd("Modal");return()=>{const{icon:o,onCancel:s,onOk:i,close:a,okText:l,closable:u=!1,zIndex:c,afterClose:f,keyboard:d,centered:h,getContainer:p,maskStyle:g,okButtonProps:y,cancelButtonProps:b,okCancel:v,width:m=416,mask:_=!0,maskClosable:S=!1,type:E,open:w,title:A,content:O,direction:L,closeIcon:N,modalRender:k,focusTriggerAfterClose:F,rootPrefixCls:G,bodyStyle:$,wrapClassName:I,footer:W}=e;let H=o;if(!o&&o!==null)switch(E){case"info":H=P(ko,null,null);break;case"success":H=P($o,null,null);break;case"error":H=P(Po,null,null);break;default:H=P(Ro,null,null)}const J=e.okType||"primary",pe=e.prefixCls||"ant-modal",ae=`${pe}-confirm`,be=n.style||{},Qe=v??E==="confirm",ye=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",ge=`${pe}-confirm`,pt=Xe(ge,`${ge}-${e.type}`,{[`${ge}-rtl`]:L==="rtl"},n.class),D=r.value,ee=Qe&&P(zm,{actionFn:s,close:a,autofocus:ye==="cancel",buttonProps:b,prefixCls:`${G}-btn`},{default:()=>[jo(e.cancelText)||D.cancelText]});return P(Bt,{prefixCls:pe,class:pt,wrapClassName:Xe({[`${ge}-centered`]:!!h},I),onCancel:X=>a?.({triggerCancel:!0},X),open:w,title:"",footer:"",transitionName:Pl(G,"zoom",e.transitionName),maskTransitionName:Pl(G,"fade",e.maskTransitionName),mask:_,maskClosable:S,maskStyle:g,style:be,bodyStyle:$,width:m,zIndex:c,afterClose:f,keyboard:d,centered:h,getContainer:p,closable:u,closeIcon:N,modalRender:k,focusTriggerAfterClose:F},{default:()=>[P("div",{class:`${ae}-body-wrapper`},[P("div",{class:`${ae}-body`},[jo(H),A===void 0?null:P("span",{class:`${ae}-title`},[jo(A)]),P("div",{class:`${ae}-content`},[jo(O)])]),W!==void 0?jo(W):P("div",{class:`${ae}-btns`},[ee,P(zm,{type:J,actionFn:i,close:a,autofocus:ye==="ok",buttonProps:y,prefixCls:`${G}-btn`},{default:()=>[jo(l)||(Qe?D.okText:D.justOkText)]})])])]})}}}),Zr=[],na=e=>{const t=document.createDocumentFragment();let n=x(x({},m_(e,["parentContext","appContext"])),{close:s,open:!0}),r=null;function o(){r&&(po(null,t),r=null);for(var u=arguments.length,c=new Array(u),f=0;f<u;f++)c[f]=arguments[f];const d=c.some(h=>h&&h.triggerCancel);e.onCancel&&d&&e.onCancel(()=>{},...c.slice(1));for(let h=0;h<Zr.length;h++)if(Zr[h]===s){Zr.splice(h,1);break}}function s(){for(var u=arguments.length,c=new Array(u),f=0;f<u;f++)c[f]=arguments[f];n=x(x({},n),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),o.apply(this,c)}}),n.visible&&delete n.visible,i(n)}function i(u){typeof u=="function"?n=u(n):n=x(x({},n),u),r&&Dk(r,n,t)}const a=u=>{const c=yt,f=c.prefixCls,d=u.prefixCls||`${f}-modal`,h=c.iconPrefixCls,p=iD();return P(uo,ue(ue({},c),{},{prefixCls:f}),{default:()=>[P(Gw,ue(ue({},u),{},{rootPrefixCls:f,prefixCls:d,iconPrefixCls:h,locale:p,cancelText:u.cancelText||p.cancelText}),null)]})};function l(u){const c=P(a,x({},u));return c.appContext=e.parentContext||e.appContext||c.appContext,po(c,t),c}return r=l(n),Zr.push(s),{destroy:s,update:i}};function Kw(e){return x(x({},e),{type:"warning"})}function Jw(e){return x(x({},e),{type:"info"})}function Yw(e){return x(x({},e),{type:"success"})}function Xw(e){return x(x({},e),{type:"error"})}function Qw(e){return x(x({},e),{type:"confirm"})}const _B=()=>({config:Object,afterClose:Function,destroyAction:Function,open:Boolean}),wB=he({name:"HookModal",inheritAttrs:!1,props:Qi(_B(),{config:{width:520,okType:"primary"}}),setup(e,t){let{expose:n}=t;var r;const o=R(()=>e.open),s=R(()=>e.config),{direction:i,getPrefixCls:a}=Wd(),l=a("modal"),u=a(),c=()=>{var p,g;e?.afterClose(),(g=(p=s.value).afterClose)===null||g===void 0||g.call(p)},f=function(){e.destroyAction(...arguments)};n({destroy:f});const d=(r=s.value.okCancel)!==null&&r!==void 0?r:s.value.type==="confirm",[h]=Vd("Modal",mo.Modal);return()=>P(Gw,ue(ue({prefixCls:l,rootPrefixCls:u},s.value),{},{close:f,open:o.value,afterClose:c,okText:s.value.okText||(d?h?.value.okText:h?.value.justOkText),direction:s.value.direction||i.value,cancelText:s.value.cancelText||h?.value.cancelText}),null)}});let Vm=0;const SB=he({name:"ElementsHolder",inheritAttrs:!1,setup(e,t){let{expose:n}=t;const r=se([]);return n({addModal:s=>(r.value.push(s),r.value=r.value.slice(),()=>{r.value=r.value.filter(i=>i!==s)})}),()=>r.value.map(s=>s())}});function CB(){const e=se(null),t=se([]);Se(t,()=>{t.value.length&&([...t.value].forEach(i=>{i()}),t.value=[])},{immediate:!0});const n=s=>function(a){var l;Vm+=1;const u=se(!0),c=se(null),f=se(U(a)),d=se({});Se(()=>a,m=>{y(x(x({},Me(m)?m.value:m),d.value))});const h=function(){u.value=!1;for(var m=arguments.length,_=new Array(m),S=0;S<m;S++)_[S]=arguments[S];const E=_.some(w=>w&&w.triggerCancel);f.value.onCancel&&E&&f.value.onCancel(()=>{},..._.slice(1))};let p;const g=()=>P(wB,{key:`modal-${Vm}`,config:s(f.value),ref:c,open:u.value,destroyAction:h,afterClose:()=>{p?.()}},null);p=(l=e.value)===null||l===void 0?void 0:l.addModal(g),p&&Zr.push(p);const y=m=>{f.value=x(x({},f.value),m)};return{destroy:()=>{c.value?h():t.value=[...t.value,h]},update:m=>{d.value=m,c.value?y(m):t.value=[...t.value,()=>y(m)]}}},r=R(()=>({info:n(Jw),success:n(Yw),error:n(Xw),warning:n(Kw),confirm:n(Qw)})),o=Symbol("modalHolderKey");return[r.value,()=>P(SB,{key:o,ref:e},null)]}function Zw(e){return na(Kw(e))}Bt.useModal=CB;Bt.info=function(t){return na(Jw(t))};Bt.success=function(t){return na(Yw(t))};Bt.error=function(t){return na(Xw(t))};Bt.warning=Zw;Bt.warn=Zw;Bt.confirm=function(t){return na(Qw(t))};Bt.destroyAll=function(){for(;Zr.length;){const t=Zr.pop();t&&t()}};Bt.install=function(e){return e.component(Bt.name,Bt),e};function wc(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function EB(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function a(c){try{u(r.next(c))}catch(f){i(f)}}function l(c){try{u(r.throw(c))}catch(f){i(f)}}function u(c){c.done?s(c.value):o(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}const TB=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class vh extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}}class xB extends vh{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class qm extends vh{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class Gm extends vh{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var Bf;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(Bf||(Bf={}));class OB{constructor(t,{headers:n={},customFetch:r,region:o=Bf.Any}={}){this.url=t,this.headers=n,this.region=o,this.fetch=TB(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return EB(this,arguments,void 0,function*(n,r={}){var o;let s,i;try{const{headers:a,method:l,body:u,signal:c,timeout:f}=r;let d={},{region:h}=r;h||(h=this.region);const p=new URL(`${this.url}/${n}`);h&&h!=="any"&&(d["x-region"]=h,p.searchParams.set("forceFunctionRegion",h));let g;u&&(a&&!Object.prototype.hasOwnProperty.call(a,"Content-Type")||!a)?typeof Blob<"u"&&u instanceof Blob||u instanceof ArrayBuffer?(d["Content-Type"]="application/octet-stream",g=u):typeof u=="string"?(d["Content-Type"]="text/plain",g=u):typeof FormData<"u"&&u instanceof FormData?g=u:(d["Content-Type"]="application/json",g=JSON.stringify(u)):u&&typeof u!="string"&&!(typeof Blob<"u"&&u instanceof Blob)&&!(u instanceof ArrayBuffer)&&!(typeof FormData<"u"&&u instanceof FormData)?g=JSON.stringify(u):g=u;let y=c;f&&(i=new AbortController,s=setTimeout(()=>i.abort(),f),c?(y=i.signal,c.addEventListener("abort",()=>i.abort())):y=i.signal);const b=yield this.fetch(p.toString(),{method:l||"POST",headers:Object.assign(Object.assign(Object.assign({},d),this.headers),a),body:g,signal:y}).catch(S=>{throw new xB(S)}),v=b.headers.get("x-relay-error");if(v&&v==="true")throw new qm(b);if(!b.ok)throw new Gm(b);let m=((o=b.headers.get("Content-Type"))!==null&&o!==void 0?o:"text/plain").split(";")[0].trim(),_;return m==="application/json"?_=yield b.json():m==="application/octet-stream"||m==="application/pdf"?_=yield b.blob():m==="text/event-stream"?_=b:m==="multipart/form-data"?_=yield b.formData():_=yield b.text(),{data:_,error:null,response:b}}catch(a){return{data:null,error:a,response:a instanceof Gm||a instanceof qm?a.context:void 0}}finally{s&&clearTimeout(s)}})}}var AB=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.code=e.code}},PB=class{constructor(e){var t,n;this.shouldThrowOnError=!1,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(t=e.shouldThrowOnError)!==null&&t!==void 0?t:!1,this.signal=e.signal,this.isMaybeSingle=(n=e.isMaybeSingle)!==null&&n!==void 0?n:!1,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}then(e,t){var n=this;this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const r=this.fetch;let o=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async s=>{let i=null,a=null,l=null,u=s.status,c=s.statusText;if(s.ok){var f,d;if(n.method!=="HEAD"){var h;const b=await s.text();b===""||(n.headers.get("Accept")==="text/csv"||n.headers.get("Accept")&&(!((h=n.headers.get("Accept"))===null||h===void 0)&&h.includes("application/vnd.pgrst.plan+text"))?a=b:a=JSON.parse(b))}const g=(f=n.headers.get("Prefer"))===null||f===void 0?void 0:f.match(/count=(exact|planned|estimated)/),y=(d=s.headers.get("content-range"))===null||d===void 0?void 0:d.split("/");g&&y&&y.length>1&&(l=parseInt(y[1])),n.isMaybeSingle&&n.method==="GET"&&Array.isArray(a)&&(a.length>1?(i={code:"PGRST116",details:`Results contain ${a.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},a=null,l=null,u=406,c="Not Acceptable"):a.length===1?a=a[0]:a=null)}else{var p;const g=await s.text();try{i=JSON.parse(g),Array.isArray(i)&&s.status===404&&(a=[],i=null,u=200,c="OK")}catch{s.status===404&&g===""?(u=204,c="No Content"):i={message:g}}if(i&&n.isMaybeSingle&&(!(i==null||(p=i.details)===null||p===void 0)&&p.includes("0 rows"))&&(i=null,u=200,c="OK"),i&&n.shouldThrowOnError)throw new AB(i)}return{error:i,data:a,count:l,status:u,statusText:c}});return this.shouldThrowOnError||(o=o.catch(s=>{var i;let a="";const l=s?.cause;if(l){var u,c,f,d;const p=(u=l?.message)!==null&&u!==void 0?u:"",g=(c=l?.code)!==null&&c!==void 0?c:"";a=`${(f=s?.name)!==null&&f!==void 0?f:"FetchError"}: ${s?.message}`,a+=`
|
||
|
||
Caused by: ${(d=l?.name)!==null&&d!==void 0?d:"Error"}: ${p}`,g&&(a+=` (${g})`),l?.stack&&(a+=`
|
||
${l.stack}`)}else{var h;a=(h=s?.stack)!==null&&h!==void 0?h:""}return{error:{message:`${(i=s?.name)!==null&&i!==void 0?i:"FetchError"}: ${s?.message}`,details:a,hint:"",code:""},data:null,count:null,status:0,statusText:""}})),o.then(e,t)}returns(){return this}overrideTypes(){return this}},$B=class extends PB{select(e){let t=!1;const n=(e??"*").split("").map(r=>/\s/.test(r)&&!t?"":(r==='"'&&(t=!t),r)).join("");return this.url.searchParams.set("select",n),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:n,foreignTable:r,referencedTable:o=r}={}){const s=o?`${o}.order`:"order",i=this.url.searchParams.get(s);return this.url.searchParams.set(s,`${i?`${i},`:""}${e}.${t?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:n=t}={}){const r=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(r,`${e}`),this}range(e,t,{foreignTable:n,referencedTable:r=n}={}){const o=typeof r>"u"?"offset":`${r}.offset`,s=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(o,`${e}`),this.url.searchParams.set(s,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}explain({analyze:e=!1,verbose:t=!1,settings:n=!1,buffers:r=!1,wal:o=!1,format:s="text"}={}){var i;const a=[e?"analyze":null,t?"verbose":null,n?"settings":null,r?"buffers":null,o?"wal":null].filter(Boolean).join("|"),l=(i=this.headers.get("Accept"))!==null&&i!==void 0?i:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${s}; for="${l}"; options=${a};`),s==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};const Km=new RegExp("[,()]");var Go=class extends $B{eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&Km.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`in.(${n})`),this}notIn(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&Km.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`not.in.(${n})`),this}contains(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return typeof t=="string"?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:n,type:r}={}){let o="";r==="plain"?o="pl":r==="phrase"?o="ph":r==="websearch"&&(o="w");const s=n===void 0?"":`(${n})`;return this.url.searchParams.append(e,`${o}fts${s}.${t}`),this}match(e){return Object.entries(e).forEach(([t,n])=>{this.url.searchParams.append(t,`eq.${n}`)}),this}not(e,t,n){return this.url.searchParams.append(e,`not.${t}.${n}`),this}or(e,{foreignTable:t,referencedTable:n=t}={}){const r=n?`${n}.or`:"or";return this.url.searchParams.append(r,`(${e})`),this}filter(e,t,n){return this.url.searchParams.append(e,`${t}.${n}`),this}},RB=class{constructor(e,{headers:t={},schema:n,fetch:r}){this.url=e,this.headers=new Headers(t),this.schema=n,this.fetch=r}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:n=!1,count:r}=t??{},o=n?"HEAD":"GET";let s=!1;const i=(e??"*").split("").map(u=>/\s/.test(u)&&!s?"":(u==='"'&&(s=!s),u)).join(""),{url:a,headers:l}=this.cloneRequestState();return a.searchParams.set("select",i),r&&l.append("Prefer",`count=${r}`),new Go({method:o,url:a,headers:l,schema:this.schema,fetch:this.fetch})}insert(e,{count:t,defaultToNull:n=!0}={}){var r;const o="POST",{url:s,headers:i}=this.cloneRequestState();if(t&&i.append("Prefer",`count=${t}`),n||i.append("Prefer","missing=default"),Array.isArray(e)){const a=e.reduce((l,u)=>l.concat(Object.keys(u)),[]);if(a.length>0){const l=[...new Set(a)].map(u=>`"${u}"`);s.searchParams.set("columns",l.join(","))}}return new Go({method:o,url:s,headers:i,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch})}upsert(e,{onConflict:t,ignoreDuplicates:n=!1,count:r,defaultToNull:o=!0}={}){var s;const i="POST",{url:a,headers:l}=this.cloneRequestState();if(l.append("Prefer",`resolution=${n?"ignore":"merge"}-duplicates`),t!==void 0&&a.searchParams.set("on_conflict",t),r&&l.append("Prefer",`count=${r}`),o||l.append("Prefer","missing=default"),Array.isArray(e)){const u=e.reduce((c,f)=>c.concat(Object.keys(f)),[]);if(u.length>0){const c=[...new Set(u)].map(f=>`"${f}"`);a.searchParams.set("columns",c.join(","))}}return new Go({method:i,url:a,headers:l,schema:this.schema,body:e,fetch:(s=this.fetch)!==null&&s!==void 0?s:fetch})}update(e,{count:t}={}){var n;const r="PATCH",{url:o,headers:s}=this.cloneRequestState();return t&&s.append("Prefer",`count=${t}`),new Go({method:r,url:o,headers:s,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch})}delete({count:e}={}){var t;const n="DELETE",{url:r,headers:o}=this.cloneRequestState();return e&&o.append("Prefer",`count=${e}`),new Go({method:n,url:r,headers:o,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch})}},kB=class eS{constructor(t,{headers:n={},schema:r,fetch:o}={}){this.url=t,this.headers=new Headers(n),this.schemaName=r,this.fetch=o}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new RB(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new eS(this.url,{headers:this.headers,schema:t,fetch:this.fetch})}rpc(t,n={},{head:r=!1,get:o=!1,count:s}={}){var i;let a;const l=new URL(`${this.url}/rpc/${t}`);let u;const c=h=>h!==null&&typeof h=="object"&&(!Array.isArray(h)||h.some(c)),f=r&&Object.values(n).some(c);f?(a="POST",u=n):r||o?(a=r?"HEAD":"GET",Object.entries(n).filter(([h,p])=>p!==void 0).map(([h,p])=>[h,Array.isArray(p)?`{${p.join(",")}}`:`${p}`]).forEach(([h,p])=>{l.searchParams.append(h,p)})):(a="POST",u=n);const d=new Headers(this.headers);return f?d.set("Prefer",s?`count=${s},return=minimal`:"return=minimal"):s&&d.set("Prefer",`count=${s}`),new Go({method:a,url:l,headers:d,schema:this.schemaName,body:u,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch})}};class IB{constructor(){}static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};const n=globalThis.process;if(n){const r=n.versions;if(r&&r.node){const o=r.node,s=parseInt(o.replace(/^v/,"").split(".")[0]);return s>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${s} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${s} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option:
|
||
import ws from "ws"
|
||
new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.constructor)return t.constructor;let n=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(n+=`
|
||
|
||
Suggested solution: ${t.workaround}`),new Error(n)}static createWebSocket(t,n){const r=this.getWebSocketConstructor();return new r(t,n)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const NB="2.93.3",LB=`realtime-js/${NB}`,jB="1.0.0",tS="2.0.0",Jm=tS,Uf=1e4,MB=1e3,DB=100;var wr;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(wr||(wr={}));var it;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(it||(it={}));var mn;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(mn||(mn={}));var Ff;(function(e){e.websocket="websocket"})(Ff||(Ff={}));var Gr;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(Gr||(Gr={}));class BB{constructor(t){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=t??[]}encode(t,n){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return n(this._binaryEncodeUserBroadcastPush(t));let r=[t.join_ref,t.ref,t.topic,t.event,t.payload];return n(JSON.stringify(r))}_binaryEncodeUserBroadcastPush(t){var n;return this._isArrayBuffer((n=t.payload)===null||n===void 0?void 0:n.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var n,r;const o=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,o)}_encodeJsonUserBroadcastPush(t){var n,r;const o=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:{},i=new TextEncoder().encode(JSON.stringify(o)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,i)}_encodeUserBroadcastPush(t,n,r){var o,s;const i=t.topic,a=(o=t.ref)!==null&&o!==void 0?o:"",l=(s=t.join_ref)!==null&&s!==void 0?s:"",u=t.payload.event,c=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},f=Object.keys(c).length===0?"":JSON.stringify(c);if(l.length>255)throw new Error(`joinRef length ${l.length} exceeds maximum of 255`);if(a.length>255)throw new Error(`ref length ${a.length} exceeds maximum of 255`);if(i.length>255)throw new Error(`topic length ${i.length} exceeds maximum of 255`);if(u.length>255)throw new Error(`userEvent length ${u.length} exceeds maximum of 255`);if(f.length>255)throw new Error(`metadata length ${f.length} exceeds maximum of 255`);const d=this.USER_BROADCAST_PUSH_META_LENGTH+l.length+a.length+i.length+u.length+f.length,h=new ArrayBuffer(this.HEADER_LENGTH+d);let p=new DataView(h),g=0;p.setUint8(g++,this.KINDS.userBroadcastPush),p.setUint8(g++,l.length),p.setUint8(g++,a.length),p.setUint8(g++,i.length),p.setUint8(g++,u.length),p.setUint8(g++,f.length),p.setUint8(g++,n),Array.from(l,b=>p.setUint8(g++,b.charCodeAt(0))),Array.from(a,b=>p.setUint8(g++,b.charCodeAt(0))),Array.from(i,b=>p.setUint8(g++,b.charCodeAt(0))),Array.from(u,b=>p.setUint8(g++,b.charCodeAt(0))),Array.from(f,b=>p.setUint8(g++,b.charCodeAt(0)));var y=new Uint8Array(h.byteLength+r.byteLength);return y.set(new Uint8Array(h),0),y.set(new Uint8Array(r),h.byteLength),y.buffer}decode(t,n){if(this._isArrayBuffer(t)){let r=this._binaryDecode(t);return n(r)}if(typeof t=="string"){const r=JSON.parse(t),[o,s,i,a,l]=r;return n({join_ref:o,ref:s,topic:i,event:a,payload:l})}return n({})}_binaryDecode(t){const n=new DataView(t),r=n.getUint8(0),o=new TextDecoder;if(r===this.KINDS.userBroadcast)return this._decodeUserBroadcast(t,n,o)}_decodeUserBroadcast(t,n,r){const o=n.getUint8(1),s=n.getUint8(2),i=n.getUint8(3),a=n.getUint8(4);let l=this.HEADER_LENGTH+4;const u=r.decode(t.slice(l,l+o));l=l+o;const c=r.decode(t.slice(l,l+s));l=l+s;const f=r.decode(t.slice(l,l+i));l=l+i;const d=t.slice(l,t.byteLength),h=a===this.JSON_ENCODING?JSON.parse(r.decode(d)):d,p={type:this.BROADCAST_EVENT,event:c,payload:h};return i>0&&(p.meta=JSON.parse(f)),{join_ref:null,ref:null,topic:u,event:this.BROADCAST_EVENT,payload:p}}_isArrayBuffer(t){var n;return t instanceof ArrayBuffer||((n=t?.constructor)===null||n===void 0?void 0:n.name)==="ArrayBuffer"}_pick(t,n){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([r])=>n.includes(r)))}}class nS{constructor(t,n){this.callback=t,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=n}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var Re;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(Re||(Re={}));const Ym=(e,t,n={})=>{var r;const o=(r=n.skipTypes)!==null&&r!==void 0?r:[];return t?Object.keys(t).reduce((s,i)=>(s[i]=UB(i,e,t,o),s),{}):{}},UB=(e,t,n,r)=>{const o=t.find(a=>a.name===e),s=o?.type,i=n[e];return s&&!r.includes(s)?rS(s,i):Hf(i)},rS=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return zB(t,n)}switch(e){case Re.bool:return FB(t);case Re.float4:case Re.float8:case Re.int2:case Re.int4:case Re.int8:case Re.numeric:case Re.oid:return HB(t);case Re.json:case Re.jsonb:return WB(t);case Re.timestamp:return VB(t);case Re.abstime:case Re.date:case Re.daterange:case Re.int4range:case Re.int8range:case Re.money:case Re.reltime:case Re.text:case Re.time:case Re.timestamptz:case Re.timetz:case Re.tsrange:case Re.tstzrange:return Hf(t);default:return Hf(t)}},Hf=e=>e,FB=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},HB=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},WB=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},zB=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let s;const i=e.slice(1,n);try{s=JSON.parse("["+i+"]")}catch{s=i?i.split(","):[]}return s.map(a=>rS(t,a))}return e},VB=e=>typeof e=="string"?e.replace(" ","T"):e,oS=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),t.pathname===""||t.pathname==="/"?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};class _u{constructor(t,n,r={},o=Uf){this.channel=t,this.event=n,this.payload=r,this.timeout=o,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,n){var r;return this._hasReceived(t)&&n((r=this.receivedResp)===null||r===void 0?void 0:r.response),this.recHooks.push({status:t,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:n})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:n}){this.recHooks.filter(r=>r.status===t).forEach(r=>r.callback(n))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var Xm;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(Xm||(Xm={}));class _i{constructor(t,n){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const r=n?.events||{state:"presence_state",diff:"presence_diff"};this.channel._on(r.state,{},o=>{const{onJoin:s,onLeave:i,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=_i.syncState(this.state,o,s,i),this.pendingDiffs.forEach(l=>{this.state=_i.syncDiff(this.state,l,s,i)}),this.pendingDiffs=[],a()}),this.channel._on(r.diff,{},o=>{const{onJoin:s,onLeave:i,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(o):(this.state=_i.syncDiff(this.state,o,s,i),a())}),this.onJoin((o,s,i)=>{this.channel._trigger("presence",{event:"join",key:o,currentPresences:s,newPresences:i})}),this.onLeave((o,s,i)=>{this.channel._trigger("presence",{event:"leave",key:o,currentPresences:s,leftPresences:i})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,n,r,o){const s=this.cloneDeep(t),i=this.transformState(n),a={},l={};return this.map(s,(u,c)=>{i[u]||(l[u]=c)}),this.map(i,(u,c)=>{const f=s[u];if(f){const d=c.map(y=>y.presence_ref),h=f.map(y=>y.presence_ref),p=c.filter(y=>h.indexOf(y.presence_ref)<0),g=f.filter(y=>d.indexOf(y.presence_ref)<0);p.length>0&&(a[u]=p),g.length>0&&(l[u]=g)}else a[u]=c}),this.syncDiff(s,{joins:a,leaves:l},r,o)}static syncDiff(t,n,r,o){const{joins:s,leaves:i}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),o||(o=()=>{}),this.map(s,(a,l)=>{var u;const c=(u=t[a])!==null&&u!==void 0?u:[];if(t[a]=this.cloneDeep(l),c.length>0){const f=t[a].map(h=>h.presence_ref),d=c.filter(h=>f.indexOf(h.presence_ref)<0);t[a].unshift(...d)}r(a,c,l)}),this.map(i,(a,l)=>{let u=t[a];if(!u)return;const c=l.map(f=>f.presence_ref);u=u.filter(f=>c.indexOf(f.presence_ref)<0),t[a]=u,o(a,u,l),u.length===0&&delete t[a]}),t}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const o=t[r];return"metas"in o?n[r]=o.metas.map(s=>(s.presence_ref=s.phx_ref,delete s.phx_ref,delete s.phx_ref_prev,s)):n[r]=o,n},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var Qm;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(Qm||(Qm={}));var wi;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(wi||(wi={}));var qn;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(qn||(qn={}));class ts{constructor(t,n={config:{}},r){var o,s;if(this.topic=t,this.params=n,this.socket=r,this.bindings={},this.state=it.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},n.config),this.timeout=this.socket.timeout,this.joinPush=new _u(this,mn.join,this.params,this.timeout),this.rejoinTimer=new nS(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=it.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(i=>i.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=it.closed,this.socket._remove(this)}),this._onError(i=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,i),this.state=it.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=it.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",i=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,i),this.state=it.errored,this.rejoinTimer.scheduleTimeout())}),this._on(mn.reply,{},(i,a)=>{this._trigger(this._replyEventName(a),i)}),this.presence=new _i(this),this.broadcastEndpointURL=oS(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((s=(o=this.params.config)===null||o===void 0?void 0:o.broadcast)===null||s===void 0)&&s.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(t,n=this.timeout){var r,o,s;if(this.socket.isConnected()||this.socket.connect(),this.state==it.closed){const{config:{broadcast:i,presence:a,private:l}}=this.params,u=(o=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(h=>h.filter))!==null&&o!==void 0?o:[],c=!!this.bindings[wi.PRESENCE]&&this.bindings[wi.PRESENCE].length>0||((s=this.params.config.presence)===null||s===void 0?void 0:s.enabled)===!0,f={},d={broadcast:i,presence:Object.assign(Object.assign({},a),{enabled:c}),postgres_changes:u,private:l};this.socket.accessTokenValue&&(f.access_token=this.socket.accessTokenValue),this._onError(h=>t?.(qn.CHANNEL_ERROR,h)),this._onClose(()=>t?.(qn.CLOSED)),this.updateJoinPayload(Object.assign({config:d},f)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:h})=>{var p;if(this.socket._isManualToken()||this.socket.setAuth(),h===void 0){t?.(qn.SUBSCRIBED);return}else{const g=this.bindings.postgres_changes,y=(p=g?.length)!==null&&p!==void 0?p:0,b=[];for(let v=0;v<y;v++){const m=g[v],{filter:{event:_,schema:S,table:E,filter:w}}=m,A=h&&h[v];if(A&&A.event===_&&ts.isFilterValueEqual(A.schema,S)&&ts.isFilterValueEqual(A.table,E)&&ts.isFilterValueEqual(A.filter,w))b.push(Object.assign(Object.assign({},m),{id:A.id}));else{this.unsubscribe(),this.state=it.errored,t?.(qn.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=b,t&&t(qn.SUBSCRIBED);return}}).receive("error",h=>{this.state=it.errored,t?.(qn.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(h).join(", ")||"error")))}).receive("timeout",()=>{t?.(qn.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,r){return this.state===it.joined&&t===wi.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(async()=>await this.subscribe())),this._on(t,n,r)}async httpSend(t,n,r={}){var o;if(n==null)return Promise.reject("Payload is required for httpSend()");const s={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(s.Authorization=`Bearer ${this.socket.accessTokenValue}`);const i={method:"POST",headers:s,body:JSON.stringify({messages:[{topic:this.subTopic,event:t,payload:n,private:this.private}]})},a=await this._fetchWithTimeout(this.broadcastEndpointURL,i,(o=r.timeout)!==null&&o!==void 0?o:this.timeout);if(a.status===202)return{success:!0};let l=a.statusText;try{const u=await a.json();l=u.error||u.message||l}catch{}return Promise.reject(new Error(l))}async send(t,n={}){var r,o;if(!this._canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated in the future. Please use httpSend() explicitly for REST delivery.");const{event:s,payload:i}=t,a={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(a.Authorization=`Bearer ${this.socket.accessTokenValue}`);const l={method:"POST",headers:a,body:JSON.stringify({messages:[{topic:this.subTopic,event:s,payload:i,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((o=u.body)===null||o===void 0?void 0:o.cancel()),u.ok?"ok":"error"}catch(u){return u.name==="AbortError"?"timed out":"error"}}else return new Promise(s=>{var i,a,l;const u=this._push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((l=(a=(i=this.params)===null||i===void 0?void 0:i.config)===null||a===void 0?void 0:a.broadcast)===null||l===void 0)&&l.ack)&&s("ok"),u.receive("ok",()=>s("ok")),u.receive("error",()=>s("error")),u.receive("timeout",()=>s("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=it.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(mn.close,"leave",this._joinRef())};this.joinPush.destroy();let r=null;return new Promise(o=>{r=new _u(this,mn.leave,{},t),r.receive("ok",()=>{n(),o("ok")}).receive("timeout",()=>{n(),o("timed out")}).receive("error",()=>{o("error")}),r.send(),this._canPush()||r.trigger("ok",{})}).finally(()=>{r?.destroy()})}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=it.closed,this.bindings={}}async _fetchWithTimeout(t,n,r){const o=new AbortController,s=setTimeout(()=>o.abort(),r),i=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:o.signal}));return clearTimeout(s),i}_push(t,n,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let o=new _u(this,t,n,r);return this._canPush()?o.send():this._addToPushBuffer(o),o}_addToPushBuffer(t){if(t.startTimeout(),this.pushBuffer.push(t),this.pushBuffer.length>DB){const n=this.pushBuffer.shift();n&&(n.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${n.event}`,n.payload))}}_onMessage(t,n,r){return n}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,n,r){var o,s;const i=t.toLocaleLowerCase(),{close:a,error:l,leave:u,join:c}=mn;if(r&&[a,l,u,c].indexOf(i)>=0&&r!==this._joinRef())return;let d=this._onMessage(i,n,r);if(n&&!d)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(i)?(o=this.bindings.postgres_changes)===null||o===void 0||o.filter(h=>{var p,g,y;return((p=h.filter)===null||p===void 0?void 0:p.event)==="*"||((y=(g=h.filter)===null||g===void 0?void 0:g.event)===null||y===void 0?void 0:y.toLocaleLowerCase())===i}).map(h=>h.callback(d,r)):(s=this.bindings[i])===null||s===void 0||s.filter(h=>{var p,g,y,b,v,m;if(["broadcast","presence","postgres_changes"].includes(i))if("id"in h){const _=h.id,S=(p=h.filter)===null||p===void 0?void 0:p.event;return _&&((g=n.ids)===null||g===void 0?void 0:g.includes(_))&&(S==="*"||S?.toLocaleLowerCase()===((y=n.data)===null||y===void 0?void 0:y.type.toLocaleLowerCase()))}else{const _=(v=(b=h?.filter)===null||b===void 0?void 0:b.event)===null||v===void 0?void 0:v.toLocaleLowerCase();return _==="*"||_===((m=n?.event)===null||m===void 0?void 0:m.toLocaleLowerCase())}else return h.type.toLocaleLowerCase()===i}).map(h=>{if(typeof d=="object"&&"ids"in d){const p=d.data,{schema:g,table:y,commit_timestamp:b,type:v,errors:m}=p;d=Object.assign(Object.assign({},{schema:g,table:y,commit_timestamp:b,eventType:v,new:{},old:{},errors:m}),this._getPayloadRecords(p))}h.callback(d,r)})}_isClosed(){return this.state===it.closed}_isJoined(){return this.state===it.joined}_isJoining(){return this.state===it.joining}_isLeaving(){return this.state===it.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,n,r){const o=t.toLocaleLowerCase(),s={type:o,filter:n,callback:r};return this.bindings[o]?this.bindings[o].push(s):this.bindings[o]=[s],this}_off(t,n){const r=t.toLocaleLowerCase();return this.bindings[r]&&(this.bindings[r]=this.bindings[r].filter(o=>{var s;return!(((s=o.type)===null||s===void 0?void 0:s.toLocaleLowerCase())===r&&ts.isEqual(o.filter,n))})),this}static isEqual(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(t[r]!==n[r])return!1;return!0}static isFilterValueEqual(t,n){return(t??void 0)===(n??void 0)}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(mn.close,{},t)}_onError(t){this._on(mn.error,{},n=>t(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=it.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=Ym(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=Ym(t.columns,t.old_record)),n}}const wu=()=>{},Aa={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},qB=[1e3,2e3,5e3,1e4],GB=1e4,KB=`
|
||
addEventListener("message", (e) => {
|
||
if (e.data.event === "start") {
|
||
setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
|
||
}
|
||
});`;class JB{constructor(t,n){var r;if(this.accessTokenValue=null,this.apiKey=null,this._manuallySetToken=!1,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=Uf,this.transport=null,this.heartbeatIntervalMs=Aa.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=wu,this.ref=0,this.reconnectTimer=null,this.vsn=Jm,this.logger=wu,this.conn=null,this.sendBuffer=[],this.serializer=new BB,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._heartbeatSentAt=null,this._resolveFetch=o=>o?(...s)=>o(...s):(...s)=>fetch(...s),!(!((r=n?.params)===null||r===void 0)&&r.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey,this.endPoint=`${t}/${Ff.websocket}`,this.httpEndpoint=oS(t),this._initializeOptions(n),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(n?.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=IB.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const n=t.message;throw n.includes("Node.js")?new Error(`${n}
|
||
|
||
To use Realtime in Node.js, you need to provide a WebSocket implementation:
|
||
|
||
Option 1: Use Node.js 22+ which has native WebSocket support
|
||
Option 2: Install and provide the "ws" package:
|
||
|
||
npm install ws
|
||
|
||
import ws from "ws"
|
||
const client = new RealtimeClient(url, {
|
||
...options,
|
||
transport: ws
|
||
})`):new Error(`WebSocket not available: ${n}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:this.vsn}))}disconnect(t,n){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const r=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(r),this._setConnectionState("disconnected")},typeof this.conn.close=="function"&&(t?this.conn.close(t,n??""):this.conn.close()),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const t=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.channels=[],this.disconnect(),t}log(t,n,r){this.logger(t,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case wr.connecting:return Gr.Connecting;case wr.open:return Gr.Open;case wr.closing:return Gr.Closing;default:return Gr.Closed}}isConnected(){return this.connectionState()===Gr.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(t,n={config:{}}){const r=`realtime:${t}`,o=this.getChannels().find(s=>s.topic===r);if(o)return o;{const s=new ts(`realtime:${t}`,n,this);return this.channels.push(s),s}}push(t){const{topic:n,event:r,payload:o,ref:s}=t,i=()=>{this.encode(t,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${n} ${r} (${s})`,o),this.isConnected()?i():this.sendBuffer.push(i)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){var t;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(n){this.log("error","error in heartbeat callback",n)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this._heartbeatSentAt=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(n){this.log("error","error in heartbeat callback",n)}this._wasManualDisconnect=!1,(t=this.conn)===null||t===void 0||t.close(MB,"heartbeat timeout"),setTimeout(()=>{var n;this.isConnected()||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout()},Aa.HEARTBEAT_TIMEOUT_FALLBACK);return}this._heartbeatSentAt=Date.now(),this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(n){this.log("error","error in heartbeat callback",n)}this._setAuthSafely("heartbeat")}onHeartbeat(t){this.heartbeatCallback=t}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let n=this.channels.find(r=>r.topic===t&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${t}"`),n.unsubscribe())}_remove(t){this.channels=this.channels.filter(n=>n.topic!==t.topic)}_onConnMessage(t){this.decode(t.data,n=>{if(n.topic==="phoenix"&&n.event==="phx_reply"&&n.ref&&n.ref===this.pendingHeartbeatRef){const u=this._heartbeatSentAt?Date.now()-this._heartbeatSentAt:void 0;try{this.heartbeatCallback(n.payload.status==="ok"?"ok":"error",u)}catch(c){this.log("error","error in heartbeat callback",c)}this._heartbeatSentAt=null,this.pendingHeartbeatRef=null}const{topic:r,event:o,payload:s,ref:i}=n,a=i?`(${i})`:"",l=s.status||"";this.log("receive",`${l} ${r} ${o} ${a}`.trim(),s),this.channels.filter(u=>u._isMember(r)).forEach(u=>u._trigger(o,s,i)),this._triggerStateCallbacks("message",n)})}_clearTimer(t){var n;t==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):t==="reconnect"&&((n=this.reconnectTimer)===null||n===void 0||n.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t),this.conn.readyState===wr.open&&this._onConnOpen())}_teardownConnection(){if(this.conn){if(this.conn.readyState===wr.open||this.conn.readyState===wr.connecting)try{this.conn.close()}catch(t){this.log("error","Error closing connection",t)}this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null}this._clearAllTimers(),this._terminateWorker(),this.channels.forEach(t=>t.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).then(()=>{this.flushSendBuffer()}).catch(n=>{this.log("error","error waiting for auth on connect",n),this.flushSendBuffer()}),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this._terminateWorker()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_onConnClose(t){var n;this._setConnectionState("disconnected"),this.log("transport","close",t),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout(),this._triggerStateCallbacks("close",t)}_onConnError(t){this._setConnectionState("disconnected"),this.log("transport",`${t}`),this._triggerChanError(),this._triggerStateCallbacks("error",t);try{this.heartbeatCallback("error")}catch(n){this.log("error","error in heartbeat callback",n)}}_triggerChanError(){this.channels.forEach(t=>t._trigger(mn.error))}_appendParams(t,n){if(Object.keys(n).length===0)return t;const r=t.match(/\?/)?"&":"?",o=new URLSearchParams(n);return`${t}${r}${o}`}_workerObjectUrl(t){let n;if(t)n=t;else{const r=new Blob([KB],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_setConnectionState(t,n=!1){this._connectionState=t,t==="connecting"?this._wasManualDisconnect=!1:t==="disconnecting"&&(this._wasManualDisconnect=n)}async _performAuth(t=null){let n,r=!1;if(t)n=t,r=!0;else if(this.accessToken)try{n=await this.accessToken()}catch(o){this.log("error","Error fetching access token from callback",o),n=this.accessTokenValue}else n=this.accessTokenValue;r?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(o=>{const s={access_token:n,version:LB};n&&o.updateJoinPayload(s),o.joinedOnce&&o._isJoined()&&o._push(mn.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this._isManualToken()||this.setAuth().catch(n=>{this.log("error",`Error setting auth in ${t}`,n)})}_triggerStateCallbacks(t,n){try{this.stateChangeCallbacks[t].forEach(r=>{try{r(n)}catch(o){this.log("error",`error in ${t} callback`,o)}})}catch(r){this.log("error",`error triggering ${t} callbacks`,r)}}_setupReconnectionTimer(){this.reconnectTimer=new nS(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},Aa.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(t){var n,r,o,s,i,a,l,u,c,f,d,h;switch(this.transport=(n=t?.transport)!==null&&n!==void 0?n:null,this.timeout=(r=t?.timeout)!==null&&r!==void 0?r:Uf,this.heartbeatIntervalMs=(o=t?.heartbeatIntervalMs)!==null&&o!==void 0?o:Aa.HEARTBEAT_INTERVAL,this.worker=(s=t?.worker)!==null&&s!==void 0?s:!1,this.accessToken=(i=t?.accessToken)!==null&&i!==void 0?i:null,this.heartbeatCallback=(a=t?.heartbeatCallback)!==null&&a!==void 0?a:wu,this.vsn=(l=t?.vsn)!==null&&l!==void 0?l:Jm,t?.params&&(this.params=t.params),t?.logger&&(this.logger=t.logger),(t?.logLevel||t?.log_level)&&(this.logLevel=t.logLevel||t.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(u=t?.reconnectAfterMs)!==null&&u!==void 0?u:(p=>qB[p-1]||GB),this.vsn){case jB:this.encode=(c=t?.encode)!==null&&c!==void 0?c:((p,g)=>g(JSON.stringify(p))),this.decode=(f=t?.decode)!==null&&f!==void 0?f:((p,g)=>g(JSON.parse(p)));break;case tS:this.encode=(d=t?.encode)!==null&&d!==void 0?d:this.serializer.encode.bind(this.serializer),this.decode=(h=t?.decode)!==null&&h!==void 0?h:this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${this.vsn}`)}if(this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t?.workerUrl}}}var Ui=class extends Error{constructor(e,t){super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType==="CommitStateUnknownException"||[500,502,504].includes(t.status)&&t.icebergType?.includes("CommitState")===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function YB(e,t,n){const r=new URL(t,e);if(n)for(const[o,s]of Object.entries(n))s!==void 0&&r.searchParams.set(o,s);return r.toString()}async function XB(e){return!e||e.type==="none"?{}:e.type==="bearer"?{Authorization:`Bearer ${e.token}`}:e.type==="header"?{[e.name]:e.value}:e.type==="custom"?await e.getHeaders():{}}function QB(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:n,path:r,query:o,body:s,headers:i}){const a=YB(e.baseUrl,r,o),l=await XB(e.auth),u=await t(a,{method:n,headers:{...s?{"Content-Type":"application/json"}:{},...l,...i},body:s?JSON.stringify(s):void 0}),c=await u.text(),f=(u.headers.get("content-type")||"").includes("application/json"),d=f&&c?JSON.parse(c):c;if(!u.ok){const h=f?d:void 0,p=h?.error;throw new Ui(p?.message??`Request failed with status ${u.status}`,{status:u.status,icebergType:p?.type,icebergCode:p?.code,details:h})}return{status:u.status,headers:u.headers,data:d}}}}function Pa(e){return e.join("")}var ZB=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:Pa(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(r=>({namespace:r}))}async createNamespace(e,t){const n={namespace:e.namespace,properties:t?.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:n})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Pa(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Pa(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Pa(e.namespace)}`}),!0}catch(t){if(t instanceof Ui&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(n){if(n instanceof Ui&&n.status===409)return;throw n}}};function Mo(e){return e.join("")}var e4=class{constructor(e,t="",n){this.client=e,this.prefix=t,this.accessDelegation=n}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Mo(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const n={};return this.accessDelegation&&(n["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Mo(e.namespace)}/tables`,body:t,headers:n})).data.metadata}async updateTable(e,t){const n=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Mo(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":n.data["metadata-location"],metadata:n.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Mo(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String(t?.purge??!1)}})}async loadTable(e){const t={};return this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Mo(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){const t={};this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Mo(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(n){if(n instanceof Ui&&n.status===404)return!1;throw n}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(n){if(n instanceof Ui&&n.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw n}}},t4=class{constructor(e){let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const n=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=QB({baseUrl:n,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=e.accessDelegation?.join(","),this.namespaceOps=new ZB(this.client,t),this.tableOps=new e4(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}},Sc=class extends Error{constructor(e,t="storage",n,r){super(e),this.__isStorageError=!0,this.namespace=t,this.name=t==="vectors"?"StorageVectorsError":"StorageError",this.status=n,this.statusCode=r}};function Cc(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var $a=class extends Sc{constructor(e,t,n,r="storage"){super(e,r,t,n),this.name=r==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=t,this.statusCode=n}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},sS=class extends Sc{constructor(e,t,n="storage"){super(e,n),this.name=n==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};const n4=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),r4=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Wf=e=>{if(Array.isArray(e))return e.map(n=>Wf(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,r])=>{const o=n.replace(/([-_][a-z])/gi,s=>s.toUpperCase().replace(/[-_]/g,""));t[o]=Wf(r)}),t},o4=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e);function Fi(e){"@babel/helpers - typeof";return Fi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fi(e)}function s4(e,t){if(Fi(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Fi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function i4(e){var t=s4(e,"string");return Fi(t)=="symbol"?t:t+""}function a4(e,t,n){return(t=i4(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function fe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Zm(Object(n),!0).forEach(function(r){a4(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const ey=e=>{var t;return e.msg||e.message||e.error_description||(typeof e.error=="string"?e.error:(t=e.error)===null||t===void 0?void 0:t.message)||JSON.stringify(e)},l4=async(e,t,n,r)=>{if(e&&typeof e=="object"&&"status"in e&&"ok"in e&&typeof e.status=="number"&&!n?.noResolveJson){const o=e,s=o.status||500;if(typeof o.json=="function")o.json().then(i=>{const a=i?.statusCode||i?.code||s+"";t(new $a(ey(i),s,a,r))}).catch(()=>{if(r==="vectors"){const i=s+"";t(new $a(o.statusText||`HTTP ${s} error`,s,i,r))}else{const i=s+"";t(new $a(o.statusText||`HTTP ${s} error`,s,i,r))}});else{const i=s+"";t(new $a(o.statusText||`HTTP ${s} error`,s,i,r))}}else t(new sS(ey(e),e,r))},c4=(e,t,n,r)=>{const o={method:e,headers:t?.headers||{}};return e==="GET"||e==="HEAD"||!r?fe(fe({},o),n):(r4(r)?(o.headers=fe({"Content-Type":"application/json"},t?.headers),o.body=JSON.stringify(r)):o.body=r,t?.duplex&&(o.duplex=t.duplex),fe(fe({},o),n))};async function Qs(e,t,n,r,o,s,i){return new Promise((a,l)=>{e(n,c4(t,r,o,s)).then(u=>{if(!u.ok)throw u;if(r?.noResolveJson)return u;if(i==="vectors"){const c=u.headers.get("content-type");if(u.headers.get("content-length")==="0"||u.status===204)return{};if(!c||!c.includes("application/json"))return{}}return u.json()}).then(u=>a(u)).catch(u=>l4(u,l,r,i))})}function iS(e="storage"){return{get:async(t,n,r,o)=>Qs(t,"GET",n,r,o,void 0,e),post:async(t,n,r,o,s)=>Qs(t,"POST",n,o,s,r,e),put:async(t,n,r,o,s)=>Qs(t,"PUT",n,o,s,r,e),head:async(t,n,r,o)=>Qs(t,"HEAD",n,fe(fe({},r),{},{noResolveJson:!0}),o,void 0,e),remove:async(t,n,r,o,s)=>Qs(t,"DELETE",n,o,s,r,e)}}const u4=iS("storage"),{get:Hi,post:gn,put:zf,head:f4,remove:bh}=u4,Qt=iS("vectors");var Us=class{constructor(e,t={},n,r="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=t,this.fetch=n4(n),this.namespace=r}throwOnError(){return this.shouldThrowOnError=!0,this}async handleOperation(e){var t=this;try{return{data:await e(),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Cc(n))return{data:null,error:n};throw n}}},d4=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t}then(e,t){return this.execute().then(e,t)}async execute(){var e=this;try{return{data:(await e.downloadFn()).body,error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(Cc(t))return{data:null,error:t};throw t}}};let aS;aS=Symbol.toStringTag;var h4=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[aS]="BlobDownloadBuilder",this.promise=null}asStream(){return new d4(this.downloadFn,this.shouldThrowOnError)}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:await(await e.downloadFn()).blob(),error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(Cc(t))return{data:null,error:t};throw t}}};const p4={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},ty={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var g4=class extends Us{constructor(e,t={},n,r){super(e,t,r,"storage"),this.bucketId=n}async uploadOrUpdate(e,t,n,r){var o=this;return o.handleOperation(async()=>{let s;const i=fe(fe({},ty),r);let a=fe(fe({},o.headers),e==="POST"&&{"x-upsert":String(i.upsert)});const l=i.metadata;typeof Blob<"u"&&n instanceof Blob?(s=new FormData,s.append("cacheControl",i.cacheControl),l&&s.append("metadata",o.encodeMetadata(l)),s.append("",n)):typeof FormData<"u"&&n instanceof FormData?(s=n,s.has("cacheControl")||s.append("cacheControl",i.cacheControl),l&&!s.has("metadata")&&s.append("metadata",o.encodeMetadata(l))):(s=n,a["cache-control"]=`max-age=${i.cacheControl}`,a["content-type"]=i.contentType,l&&(a["x-metadata"]=o.toBase64(o.encodeMetadata(l))),(typeof ReadableStream<"u"&&s instanceof ReadableStream||s&&typeof s=="object"&&"pipe"in s&&typeof s.pipe=="function")&&!i.duplex&&(i.duplex="half")),r?.headers&&(a=fe(fe({},a),r.headers));const u=o._removeEmptyFolders(t),c=o._getFinalPath(u),f=await(e=="PUT"?zf:gn)(o.fetch,`${o.url}/object/${c}`,s,fe({headers:a},i?.duplex?{duplex:i.duplex}:{}));return{path:u,id:f.Id,fullPath:f.Key}})}async upload(e,t,n){return this.uploadOrUpdate("POST",e,t,n)}async uploadToSignedUrl(e,t,n,r){var o=this;const s=o._removeEmptyFolders(e),i=o._getFinalPath(s),a=new URL(o.url+`/object/upload/sign/${i}`);return a.searchParams.set("token",t),o.handleOperation(async()=>{let l;const u=fe({upsert:ty.upsert},r),c=fe(fe({},o.headers),{"x-upsert":String(u.upsert)});return typeof Blob<"u"&&n instanceof Blob?(l=new FormData,l.append("cacheControl",u.cacheControl),l.append("",n)):typeof FormData<"u"&&n instanceof FormData?(l=n,l.append("cacheControl",u.cacheControl)):(l=n,c["cache-control"]=`max-age=${u.cacheControl}`,c["content-type"]=u.contentType),{path:s,fullPath:(await zf(o.fetch,a.toString(),l,{headers:c})).Key}})}async createSignedUploadUrl(e,t){var n=this;return n.handleOperation(async()=>{let r=n._getFinalPath(e);const o=fe({},n.headers);t?.upsert&&(o["x-upsert"]="true");const s=await gn(n.fetch,`${n.url}/object/upload/sign/${r}`,{},{headers:o}),i=new URL(n.url+s.url),a=i.searchParams.get("token");if(!a)throw new Sc("No token returned by API");return{signedUrl:i.toString(),path:e,token:a}})}async update(e,t,n){return this.uploadOrUpdate("PUT",e,t,n)}async move(e,t,n){var r=this;return r.handleOperation(async()=>await gn(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,destinationBucket:n?.destinationBucket},{headers:r.headers}))}async copy(e,t,n){var r=this;return r.handleOperation(async()=>({path:(await gn(r.fetch,`${r.url}/object/copy`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,destinationBucket:n?.destinationBucket},{headers:r.headers})).Key}))}async createSignedUrl(e,t,n){var r=this;return r.handleOperation(async()=>{let o=r._getFinalPath(e),s=await gn(r.fetch,`${r.url}/object/sign/${o}`,fe({expiresIn:t},n?.transform?{transform:n.transform}:{}),{headers:r.headers});const i=n?.download?`&download=${n.download===!0?"":n.download}`:"";return{signedUrl:encodeURI(`${r.url}${s.signedURL}${i}`)}})}async createSignedUrls(e,t,n){var r=this;return r.handleOperation(async()=>{const o=await gn(r.fetch,`${r.url}/object/sign/${r.bucketId}`,{expiresIn:t,paths:e},{headers:r.headers}),s=n?.download?`&download=${n.download===!0?"":n.download}`:"";return o.map(i=>fe(fe({},i),{},{signedUrl:i.signedURL?encodeURI(`${r.url}${i.signedURL}${s}`):null}))})}download(e,t){const n=typeof t?.transform<"u"?"render/image/authenticated":"object",r=this.transformOptsToQueryString(t?.transform||{}),o=r?`?${r}`:"",s=this._getFinalPath(e),i=()=>Hi(this.fetch,`${this.url}/${n}/${s}${o}`,{headers:this.headers,noResolveJson:!0});return new h4(i,this.shouldThrowOnError)}async info(e){var t=this;const n=t._getFinalPath(e);return t.handleOperation(async()=>Wf(await Hi(t.fetch,`${t.url}/object/info/${n}`,{headers:t.headers})))}async exists(e){var t=this;const n=t._getFinalPath(e);try{return await f4(t.fetch,`${t.url}/object/${n}`,{headers:t.headers}),{data:!0,error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(Cc(r)&&r instanceof sS){const o=r.originalError;if([400,404].includes(o?.status))return{data:!1,error:r}}throw r}}getPublicUrl(e,t){const n=this._getFinalPath(e),r=[],o=t?.download?`download=${t.download===!0?"":t.download}`:"";o!==""&&r.push(o);const s=typeof t?.transform<"u"?"render/image":"object",i=this.transformOptsToQueryString(t?.transform||{});i!==""&&r.push(i);let a=r.join("&");return a!==""&&(a=`?${a}`),{data:{publicUrl:encodeURI(`${this.url}/${s}/public/${n}${a}`)}}}async remove(e){var t=this;return t.handleOperation(async()=>await bh(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}))}async list(e,t,n){var r=this;return r.handleOperation(async()=>{const o=fe(fe(fe({},p4),t),{},{prefix:e||""});return await gn(r.fetch,`${r.url}/object/list/${r.bucketId}`,o,{headers:r.headers},n)})}async listV2(e,t){var n=this;return n.handleOperation(async()=>{const r=fe({},e);return await gn(n.fetch,`${n.url}/object/list-v2/${n.bucketId}`,r,{headers:n.headers},t)})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){const t=[];return e.width&&t.push(`width=${e.width}`),e.height&&t.push(`height=${e.height}`),e.resize&&t.push(`resize=${e.resize}`),e.format&&t.push(`format=${e.format}`),e.quality&&t.push(`quality=${e.quality}`),t.join("&")}};const m4="2.93.3",ra={"X-Client-Info":`storage-js/${m4}`};var y4=class extends Us{constructor(e,t={},n,r){const o=new URL(e);r?.useNewHostname&&/supabase\.(co|in|red)$/.test(o.hostname)&&!o.hostname.includes("storage.supabase.")&&(o.hostname=o.hostname.replace("supabase.","storage.supabase."));const s=o.href.replace(/\/$/,""),i=fe(fe({},ra),t);super(s,i,n,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=t.listBucketOptionsToQueryString(e);return await Hi(t.fetch,`${t.url}/bucket${n}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Hi(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var n=this;return n.handleOperation(async()=>await gn(n.fetch,`${n.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async updateBucket(e,t){var n=this;return n.handleOperation(async()=>await zf(n.fetch,`${n.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async emptyBucket(e){var t=this;return t.handleOperation(async()=>await gn(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await bh(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}listBucketOptionsToQueryString(e){const t={};return e&&("limit"in e&&(t.limit=String(e.limit)),"offset"in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>0?"?"+new URLSearchParams(t).toString():""}},v4=class extends Us{constructor(e,t={},n){const r=e.replace(/\/$/,""),o=fe(fe({},ra),t);super(r,o,n,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await gn(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}))}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=new URLSearchParams;e?.limit!==void 0&&n.set("limit",e.limit.toString()),e?.offset!==void 0&&n.set("offset",e.offset.toString()),e?.sortColumn&&n.set("sortColumn",e.sortColumn),e?.sortOrder&&n.set("sortOrder",e.sortOrder),e?.search&&n.set("search",e.search);const r=n.toString(),o=r?`${t.url}/bucket?${r}`:`${t.url}/bucket`;return await Hi(t.fetch,o,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await bh(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!o4(e))throw new Sc("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const n=new t4({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}),r=this.shouldThrowOnError;return new Proxy(n,{get(o,s){const i=o[s];return typeof i!="function"?i:async(...a)=>{try{return{data:await i.apply(o,a),error:null}}catch(l){if(r)throw l;return{data:null,error:l}}}}})}},b4=class extends Us{constructor(e,t={},n){const r=e.replace(/\/$/,""),o=fe(fe({},ra),{},{"Content-Type":"application/json"},t);super(r,o,n,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await Qt.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var n=this;return n.handleOperation(async()=>await Qt.post(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await Qt.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var n=this;return n.handleOperation(async()=>await Qt.post(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers})||{})}},_4=class extends Us{constructor(e,t={},n){const r=e.replace(/\/$/,""),o=fe(fe({},ra),{},{"Content-Type":"application/json"},t);super(r,o,n,"vectors")}async putVectors(e){var t=this;if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return t.handleOperation(async()=>await Qt.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await Qt.post(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}))}async listVectors(e){var t=this;if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return t.handleOperation(async()=>await Qt.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await Qt.post(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}))}async deleteVectors(e){var t=this;if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return t.handleOperation(async()=>await Qt.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},w4=class extends Us{constructor(e,t={},n){const r=e.replace(/\/$/,""),o=fe(fe({},ra),{},{"Content-Type":"application/json"},t);super(r,o,n,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await Qt.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Qt.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await Qt.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Qt.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},S4=class extends w4{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new C4(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,n=this;return t().call(n,e)}async getBucket(e){var t=()=>super.getBucket,n=this;return t().call(n,e)}async listBuckets(e={}){var t=()=>super.listBuckets,n=this;return t().call(n,e)}async deleteBucket(e){var t=()=>super.deleteBucket,n=this;return t().call(n,e)}},C4=class extends b4{constructor(e,t,n,r){super(e,t,r),this.vectorBucketName=n}async createIndex(e){var t=()=>super.createIndex,n=this;return t().call(n,fe(fe({},e),{},{vectorBucketName:n.vectorBucketName}))}async listIndexes(e={}){var t=()=>super.listIndexes,n=this;return t().call(n,fe(fe({},e),{},{vectorBucketName:n.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,n=this;return t().call(n,n.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,n=this;return t().call(n,n.vectorBucketName,e)}index(e){return new E4(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},E4=class extends _4{constructor(e,t,n,r,o){super(e,t,o),this.vectorBucketName=n,this.indexName=r}async putVectors(e){var t=()=>super.putVectors,n=this;return t().call(n,fe(fe({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(e){var t=()=>super.getVectors,n=this;return t().call(n,fe(fe({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,n=this;return t().call(n,fe(fe({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,n=this;return t().call(n,fe(fe({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,n=this;return t().call(n,fe(fe({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},T4=class extends y4{constructor(e,t={},n,r){super(e,t,n,r)}from(e){return new g4(this.url,this.headers,e,this.fetch)}get vectors(){return new S4(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new v4(this.url+"/iceberg",this.headers,this.fetch)}};const lS="2.93.3",Ko=30*1e3,Vf=3,Su=Vf*Ko,x4="http://localhost:9999",O4="supabase.auth.token",A4={"X-Client-Info":`gotrue-js/${lS}`},qf="X-Supabase-Api-Version",cS={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},P4=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,$4=600*1e3;class Wi extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function re(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class R4 extends Wi{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function k4(e){return re(e)&&e.name==="AuthApiError"}class Kr extends Wi{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class dr extends Wi{constructor(t,n,r,o){super(t,r,o),this.name=n,this.status=r}}class Kt extends dr{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function Cu(e){return re(e)&&e.name==="AuthSessionMissingError"}class Do extends dr{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class Ra extends dr{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class ka extends dr{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function I4(e){return re(e)&&e.name==="AuthImplicitGrantRedirectError"}class ny extends dr{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class N4 extends dr{constructor(){super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.","AuthPKCECodeVerifierMissingError",400,"pkce_code_verifier_not_found")}}class Gf extends dr{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function Eu(e){return re(e)&&e.name==="AuthRetryableFetchError"}class ry extends dr{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class Kf extends dr{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const Nl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),oy=`
|
||
\r=`.split(""),L4=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<oy.length;t+=1)e[oy[t].charCodeAt(0)]=-2;for(let t=0;t<Nl.length;t+=1)e[Nl[t].charCodeAt(0)]=t;return e})();function sy(e,t,n){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(Nl[r]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(Nl[r]),t.queuedBits-=6}}function uS(e,t,n){const r=L4[e];if(r>-1)for(t.queue=t.queue<<6|r,t.queuedBits+=6;t.queuedBits>=8;)n(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function iy(e){const t=[],n=i=>{t.push(String.fromCodePoint(i))},r={utf8seq:0,codepoint:0},o={queue:0,queuedBits:0},s=i=>{D4(i,r,n)};for(let i=0;i<e.length;i+=1)uS(e.charCodeAt(i),o,s);return t.join("")}function j4(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function M4(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const o=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|o)+65536,n+=1}j4(r,t)}}function D4(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let r=1;r<6;r+=1)if((e>>7-r&1)===0){t.utf8seq=r;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&n(t.codepoint)}}function hs(e){const t=[],n={queue:0,queuedBits:0},r=o=>{t.push(o)};for(let o=0;o<e.length;o+=1)uS(e.charCodeAt(o),n,r);return new Uint8Array(t)}function B4(e){const t=[];return M4(e,n=>t.push(n)),new Uint8Array(t)}function eo(e){const t=[],n={queue:0,queuedBits:0},r=o=>{t.push(o)};return e.forEach(o=>sy(o,n,r)),sy(null,n,r),t.join("")}function U4(e){return Math.round(Date.now()/1e3)+e}function F4(){return Symbol("auth-callback")}const mt=()=>typeof window<"u"&&typeof document<"u",Br={tested:!1,writable:!1},fS=()=>{if(!mt())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Br.tested)return Br.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),Br.tested=!0,Br.writable=!0}catch{Br.tested=!0,Br.writable=!1}return Br.writable};function H4(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((o,s)=>{t[s]=o})}catch{}return n.searchParams.forEach((r,o)=>{t[o]=r}),t}const dS=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),W4=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",Jo=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},Ur=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},gt=async(e,t)=>{await e.removeItem(t)};class Ec{constructor(){this.promise=new Ec.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}Ec.promiseConstructor=Promise;function Ia(e){const t=e.split(".");if(t.length!==3)throw new Kf("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!P4.test(t[r]))throw new Kf("JWT not in base64url format");return{header:JSON.parse(iy(t[0])),payload:JSON.parse(iy(t[1])),signature:hs(t[2]),raw:{header:t[0],payload:t[1]}}}async function z4(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function V4(e,t){return new Promise((r,o)=>{(async()=>{for(let s=0;s<1/0;s++)try{const i=await e(s);if(!t(s,null,i)){r(i);return}}catch(i){if(!t(s,i)){o(i);return}}})()})}function q4(e){return("0"+e.toString(16)).substr(-2)}function G4(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let o="";for(let s=0;s<56;s++)o+=n.charAt(Math.floor(Math.random()*r));return o}return crypto.getRandomValues(t),Array.from(t,q4).join("")}async function K4(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",n),o=new Uint8Array(r);return Array.from(o).map(s=>String.fromCharCode(s)).join("")}async function J4(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const n=await K4(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Bo(e,t,n=!1){const r=G4();let o=r;n&&(o+="/PASSWORD_RECOVERY"),await Jo(e,`${t}-code-verifier`,o);const s=await J4(r);return[s,r===s?"plain":"s256"]}const Y4=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function X4(e){const t=e.headers.get(qf);if(!t||!t.match(Y4))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function Q4(e){if(!e)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error("JWT has expired")}function Z4(e){switch(e){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const eU=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Uo(e){if(!eU.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function Tu(){const e={};return new Proxy(e,{get:(t,n)=>{if(n==="__isUserNotAvailableProxy")return!0;if(typeof n=="symbol"){const r=n.toString();if(r==="Symbol(Symbol.toPrimitive)"||r==="Symbol(Symbol.toStringTag)"||r==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${n}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function tU(e,t){return new Proxy(e,{get:(n,r,o)=>{if(r==="__isInsecureUserWarningProxy")return!0;if(typeof r=="symbol"){const s=r.toString();if(s==="Symbol(Symbol.toPrimitive)"||s==="Symbol(Symbol.toStringTag)"||s==="Symbol(util.inspect.custom)"||s==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(n,r,o)}return!t.value&&typeof r=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),t.value=!0),Reflect.get(n,r,o)}})}function ay(e){return JSON.parse(JSON.stringify(e))}const Wr=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),nU=[502,503,504];async function ly(e){var t;if(!W4(e))throw new Gf(Wr(e),0);if(nU.includes(e.status))throw new Gf(Wr(e),e.status);let n;try{n=await e.json()}catch(s){throw new Kr(Wr(s),s)}let r;const o=X4(e);if(o&&o.getTime()>=cS["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?r=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(r=n.error_code),r){if(r==="weak_password")throw new ry(Wr(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new Kt}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((s,i)=>s&&typeof i=="string",!0))throw new ry(Wr(n),e.status,n.weak_password.reasons);throw new R4(Wr(n),e.status||500,r)}const rU=(e,t,n,r)=>{const o={method:e,headers:t?.headers||{}};return e==="GET"?o:(o.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t?.headers),o.body=JSON.stringify(r),Object.assign(Object.assign({},o),n))};async function ce(e,t,n,r){var o;const s=Object.assign({},r?.headers);s[qf]||(s[qf]=cS["2024-01-01"].name),r?.jwt&&(s.Authorization=`Bearer ${r.jwt}`);const i=(o=r?.query)!==null&&o!==void 0?o:{};r?.redirectTo&&(i.redirect_to=r.redirectTo);const a=Object.keys(i).length?"?"+new URLSearchParams(i).toString():"",l=await oU(e,t,n+a,{headers:s,noResolveJson:r?.noResolveJson},{},r?.body);return r?.xform?r?.xform(l):{data:Object.assign({},l),error:null}}async function oU(e,t,n,r,o,s){const i=rU(t,r,o,s);let a;try{a=await e(n,Object.assign({},i))}catch(l){throw console.error(l),new Gf(Wr(l),0)}if(a.ok||await ly(a),r?.noResolveJson)return a;try{return await a.json()}catch(l){await ly(l)}}function pn(e){var t;let n=null;aU(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=U4(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function cy(e){const t=pn(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(t.data.weak_password=e.weak_password),t}function Cr(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function sU(e){return{data:e,error:null}}function iU(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:o,verification_type:s}=e,i=wc(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:t,email_otp:n,hashed_token:r,redirect_to:o,verification_type:s},l=Object.assign({},i);return{data:{properties:a,user:l},error:null}}function uy(e){return e}function aU(e){return e.access_token&&e.refresh_token&&e.expires_in}const xu=["global","local","others"];class lU{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=dS(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)}}async signOut(t,n=xu[0]){if(xu.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${xu.join(", ")}`);try{return await ce(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(re(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await ce(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:Cr})}catch(r){if(re(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=wc(t,["options"]),o=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(o.new_email=r?.newEmail,delete o.newEmail),await ce(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:o,headers:this.headers,xform:iU,redirectTo:n?.redirectTo})}catch(n){if(re(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await ce(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:Cr})}catch(n){if(re(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,o,s,i,a,l;try{const u={nextPage:null,lastPage:0,total:0},c=await ce(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t?.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(s=(o=t?.perPage)===null||o===void 0?void 0:o.toString())!==null&&s!==void 0?s:""},xform:uy});if(c.error)throw c.error;const f=await c.json(),d=(i=c.headers.get("x-total-count"))!==null&&i!==void 0?i:0,h=(l=(a=c.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return h.length>0&&(h.forEach(p=>{const g=parseInt(p.split(";")[0].split("=")[1].substring(0,1)),y=JSON.parse(p.split(";")[1].split("=")[1]);u[`${y}Page`]=g}),u.total=parseInt(d)),{data:Object.assign(Object.assign({},f),u),error:null}}catch(u){if(re(u))return{data:{users:[]},error:u};throw u}}async getUserById(t){Uo(t);try{return await ce(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:Cr})}catch(n){if(re(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){Uo(t);try{return await ce(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:Cr})}catch(r){if(re(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){Uo(t);try{return await ce(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:Cr})}catch(r){if(re(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){Uo(t.userId);try{const{data:n,error:r}=await ce(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:o=>({data:{factors:o},error:null})});return{data:n,error:r}}catch(n){if(re(n))return{data:null,error:n};throw n}}async _deleteFactor(t){Uo(t.userId),Uo(t.id);try{return{data:await ce(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(re(n))return{data:null,error:n};throw n}}async _listOAuthClients(t){var n,r,o,s,i,a,l;try{const u={nextPage:null,lastPage:0,total:0},c=await ce(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t?.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(s=(o=t?.perPage)===null||o===void 0?void 0:o.toString())!==null&&s!==void 0?s:""},xform:uy});if(c.error)throw c.error;const f=await c.json(),d=(i=c.headers.get("x-total-count"))!==null&&i!==void 0?i:0,h=(l=(a=c.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return h.length>0&&(h.forEach(p=>{const g=parseInt(p.split(";")[0].split("=")[1].substring(0,1)),y=JSON.parse(p.split(";")[1].split("=")[1]);u[`${y}Page`]=g}),u.total=parseInt(d)),{data:Object.assign(Object.assign({},f),u),error:null}}catch(u){if(re(u))return{data:{clients:[]},error:u};throw u}}async _createOAuthClient(t){try{return await ce(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(re(n))return{data:null,error:n};throw n}}async _getOAuthClient(t){try{return await ce(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(re(n))return{data:null,error:n};throw n}}async _updateOAuthClient(t,n){try{return await ce(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(re(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(t){try{return await ce(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(re(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(t){try{return await ce(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(re(n))return{data:null,error:n};throw n}}}function fy(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}const Fo={debug:!!(globalThis&&fS()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class hS extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class cU extends hS{}async function uU(e,t,n){Fo.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;return t>0&&setTimeout(()=>{r.abort(),Fo.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async o=>{if(o){Fo.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,o.name);try{return await n()}finally{Fo.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,o.name)}}else{if(t===0)throw Fo.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new cU(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(Fo.debug)try{const s=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(s,null," "))}catch(s){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",s)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await n()}}))}function fU(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}function pS(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function dU(e){return parseInt(e,16)}function hU(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,r=>r.toString(16).padStart(2,"0")).join("")}function pU(e){var t;const{chainId:n,domain:r,expirationTime:o,issuedAt:s=new Date,nonce:i,notBefore:a,requestId:l,resources:u,scheme:c,uri:f,version:d}=e;{if(!Number.isInteger(n))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${n}`);if(!r)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(i&&i.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${i}`);if(!f)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(d!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${d}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(`
|
||
`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const h=pS(e.address),p=c?`${c}://${r}`:r,g=e.statement?`${e.statement}
|
||
`:"",y=`${p} wants you to sign in with your Ethereum account:
|
||
${h}
|
||
|
||
${g}`;let b=`URI: ${f}
|
||
Version: ${d}
|
||
Chain ID: ${n}${i?`
|
||
Nonce: ${i}`:""}
|
||
Issued At: ${s.toISOString()}`;if(o&&(b+=`
|
||
Expiration Time: ${o.toISOString()}`),a&&(b+=`
|
||
Not Before: ${a.toISOString()}`),l&&(b+=`
|
||
Request ID: ${l}`),u){let v=`
|
||
Resources:`;for(const m of u){if(!m||typeof m!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${m}`);v+=`
|
||
- ${m}`}b+=v}return`${y}
|
||
${b}`}class Ze extends Error{constructor({message:t,code:n,cause:r,name:o}){var s;super(t,{cause:r}),this.__isWebAuthnError=!0,this.name=(s=o??(r instanceof Error?r.name:void 0))!==null&&s!==void 0?s:"Unknown Error",this.code=n}}class Ll extends Ze{constructor(t,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:t}),this.name="WebAuthnUnknownError",this.originalError=n}}function gU({error:e,options:t}){var n,r,o;const{publicKey:s}=t;if(!s)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Ze({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((n=s.authenticatorSelection)===null||n===void 0?void 0:n.requireResidentKey)===!0)return new Ze({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((r=s.authenticatorSelection)===null||r===void 0?void 0:r.userVerification)==="required")return new Ze({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((o=s.authenticatorSelection)===null||o===void 0?void 0:o.userVerification)==="required")return new Ze({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new Ze({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new Ze({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return s.pubKeyCredParams.filter(a=>a.type==="public-key").length===0?new Ze({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new Ze({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const i=window.location.hostname;if(gS(i)){if(s.rp.id!==i)return new Ze({message:`The RP ID "${s.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Ze({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(s.user.id.byteLength<1||s.user.id.byteLength>64)return new Ze({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new Ze({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Ze({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function mU({error:e,options:t}){const{publicKey:n}=t;if(!n)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Ze({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new Ze({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const r=window.location.hostname;if(gS(r)){if(n.rpId!==r)return new Ze({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Ze({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new Ze({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Ze({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class yU{createNewAbortSignal(){if(this.controller){const n=new Error("Cancelling existing WebAuthn API call for new one");n.name="AbortError",this.controller.abort(n)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const vU=new yU;function bU(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:n,excludeCredentials:r}=e,o=wc(e,["challenge","user","excludeCredentials"]),s=hs(t).buffer,i=Object.assign(Object.assign({},n),{id:hs(n.id).buffer}),a=Object.assign(Object.assign({},o),{challenge:s,user:i});if(r&&r.length>0){a.excludeCredentials=new Array(r.length);for(let l=0;l<r.length;l++){const u=r[l];a.excludeCredentials[l]=Object.assign(Object.assign({},u),{id:hs(u.id).buffer,type:u.type||"public-key",transports:u.transports})}}return a}function _U(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:n}=e,r=wc(e,["challenge","allowCredentials"]),o=hs(t).buffer,s=Object.assign(Object.assign({},r),{challenge:o});if(n&&n.length>0){s.allowCredentials=new Array(n.length);for(let i=0;i<n.length;i++){const a=n[i];s.allowCredentials[i]=Object.assign(Object.assign({},a),{id:hs(a.id).buffer,type:a.type||"public-key",transports:a.transports})}}return s}function wU(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e;return{id:e.id,rawId:e.id,response:{attestationObject:eo(new Uint8Array(e.response.attestationObject)),clientDataJSON:eo(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function SU(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e,r=e.getClientExtensionResults(),o=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:eo(new Uint8Array(o.authenticatorData)),clientDataJSON:eo(new Uint8Array(o.clientDataJSON)),signature:eo(new Uint8Array(o.signature)),userHandle:o.userHandle?eo(new Uint8Array(o.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function gS(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function dy(){var e,t;return!!(mt()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator?.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((t=navigator?.credentials)===null||t===void 0?void 0:t.get)=="function")}async function CU(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Ll("Browser returned unexpected credential type",t)}:{data:null,error:new Ll("Empty credential response",t)}}catch(t){return{data:null,error:gU({error:t,options:e})}}}async function EU(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Ll("Browser returned unexpected credential type",t)}:{data:null,error:new Ll("Empty credential response",t)}}catch(t){return{data:null,error:mU({error:t,options:e})}}}const TU={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},xU={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function jl(...e){const t=o=>o!==null&&typeof o=="object"&&!Array.isArray(o),n=o=>o instanceof ArrayBuffer||ArrayBuffer.isView(o),r={};for(const o of e)if(o)for(const s in o){const i=o[s];if(i!==void 0)if(Array.isArray(i))r[s]=i;else if(n(i))r[s]=i;else if(t(i)){const a=r[s];t(a)?r[s]=jl(a,i):r[s]=jl(i)}else r[s]=i}return r}function OU(e,t){return jl(TU,e,t||{})}function AU(e,t){return jl(xU,e,t||{})}class PU{constructor(t){this.client=t,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:n,friendlyName:r,signal:o},s){var i;try{const{data:a,error:l}=await this.client.mfa.challenge({factorId:t,webauthn:n});if(!a)return{data:null,error:l};const u=o??vU.createNewAbortSignal();if(a.webauthn.type==="create"){const{user:c}=a.webauthn.credential_options.publicKey;if(!c.name){const f=r;if(f)c.name=`${c.id}:${f}`;else{const h=(await this.client.getUser()).data.user,p=((i=h?.user_metadata)===null||i===void 0?void 0:i.name)||h?.email||h?.id||"User";c.name=`${c.id}:${p}`}}c.displayName||(c.displayName=c.name)}switch(a.webauthn.type){case"create":{const c=OU(a.webauthn.credential_options.publicKey,s?.create),{data:f,error:d}=await CU({publicKey:c,signal:u});return f?{data:{factorId:t,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:f}},error:null}:{data:null,error:d}}case"request":{const c=AU(a.webauthn.credential_options.publicKey,s?.request),{data:f,error:d}=await EU(Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:c,signal:u}));return f?{data:{factorId:t,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:f}},error:null}:{data:null,error:d}}}}catch(a){return re(a)?{data:null,error:a}:{data:null,error:new Kr("Unexpected error in challenge",a)}}}async _verify({challengeId:t,factorId:n,webauthn:r}){return this.client.mfa.verify({factorId:n,challengeId:t,webauthn:r})}async _authenticate({factorId:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:o}={}},s){if(!n)return{data:null,error:new Wi("rpId is required for WebAuthn authentication")};try{if(!dy())return{data:null,error:new Kr("Browser does not support WebAuthn",null)};const{data:i,error:a}=await this.challenge({factorId:t,webauthn:{rpId:n,rpOrigins:r},signal:o},{request:s});if(!i)return{data:null,error:a};const{webauthn:l}=i;return this._verify({factorId:t,challengeId:i.challengeId,webauthn:{type:l.type,rpId:n,rpOrigins:r,credential_response:l.credential_response}})}catch(i){return re(i)?{data:null,error:i}:{data:null,error:new Kr("Unexpected error in authenticate",i)}}}async _register({friendlyName:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:o}={}},s){if(!n)return{data:null,error:new Wi("rpId is required for WebAuthn registration")};try{if(!dy())return{data:null,error:new Kr("Browser does not support WebAuthn",null)};const{data:i,error:a}=await this._enroll({friendlyName:t});if(!i)return await this.client.mfa.listFactors().then(c=>{var f;return(f=c.data)===null||f===void 0?void 0:f.all.find(d=>d.factor_type==="webauthn"&&d.friendly_name===t&&d.status!=="unverified")}).then(c=>c?this.client.mfa.unenroll({factorId:c?.id}):void 0),{data:null,error:a};const{data:l,error:u}=await this._challenge({factorId:i.id,friendlyName:i.friendly_name,webauthn:{rpId:n,rpOrigins:r},signal:o},{create:s});return l?this._verify({factorId:i.id,challengeId:l.challengeId,webauthn:{rpId:n,rpOrigins:r,type:l.webauthn.type,credential_response:l.webauthn.credential_response}}):{data:null,error:u}}catch(i){return re(i)?{data:null,error:i}:{data:null,error:new Kr("Unexpected error in register",i)}}}}fU();const $U={url:x4,storageKey:O4,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:A4,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:1e4};async function hy(e,t,n){return await n()}const Ho={};class zi{get jwks(){var t,n;return(n=(t=Ho[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){Ho[this.storageKey]=Object.assign(Object.assign({},Ho[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=Ho[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){Ho[this.storageKey]=Object.assign(Object.assign({},Ho[this.storageKey]),{cachedAt:t})}constructor(t){var n,r,o;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const s=Object.assign(Object.assign({},$U),t);if(this.storageKey=s.storageKey,this.instanceID=(n=zi.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,zi.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!s.debug,typeof s.debug=="function"&&(this.logger=s.debug),this.instanceID>0&&mt()){const i=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(i),this.logDebugMessages&&console.trace(i)}if(this.persistSession=s.persistSession,this.autoRefreshToken=s.autoRefreshToken,this.admin=new lU({url:s.url,headers:s.headers,fetch:s.fetch}),this.url=s.url,this.headers=s.headers,this.fetch=dS(s.fetch),this.lock=s.lock||hy,this.detectSessionInUrl=s.detectSessionInUrl,this.flowType=s.flowType,this.hasCustomAuthorizationHeader=s.hasCustomAuthorizationHeader,this.throwOnError=s.throwOnError,this.lockAcquireTimeout=s.lockAcquireTimeout,s.lock?this.lock=s.lock:this.persistSession&&mt()&&(!((r=globalThis?.navigator)===null||r===void 0)&&r.locks)?this.lock=uU:this.lock=hy,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new PU(this)},this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.persistSession?(s.storage?this.storage=s.storage:fS()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=fy(this.memoryStorage)),s.userStorage&&(this.userStorage=s.userStorage)):(this.memoryStorage={},this.storage=fy(this.memoryStorage)),mt()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(i){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",i)}(o=this.broadcastChannel)===null||o===void 0||o.addEventListener("message",async i=>{this._debug("received broadcast notification from other tab or client",i);try{await this._notifyAllSubscribers(i.data.event,i.data.session,!1)}catch(a){this._debug("#broadcastChannel","error",a)}})}this.initialize().catch(i=>{this._debug("#initialize()","error",i)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${lS}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{let n={},r="none";if(mt()&&(n=H4(window.location.href),this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce")),mt()&&this.detectSessionInUrl&&r!=="none"){const{data:o,error:s}=await this._getSessionFromURL(n,r);if(s){if(this._debug("#_initialize()","error detecting session from URL",s),I4(s)){const l=(t=s.details)===null||t===void 0?void 0:t.code;if(l==="identity_already_exists"||l==="identity_not_found"||l==="single_identity_not_deletable")return{error:s}}return{error:s}}const{session:i,redirectType:a}=o;return this._debug("#_initialize()","detected session in URL",i,"redirect type",a),await this._saveSession(i),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",i):await this._notifyAllSubscribers("SIGNED_IN",i)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return re(n)?this._returnResult({error:n}):this._returnResult({error:new Kr("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,o;try{const s=await ce(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=t?.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(o=t?.options)===null||o===void 0?void 0:o.captchaToken}},xform:pn}),{data:i,error:a}=s;if(a||!i)return this._returnResult({data:{user:null,session:null},error:a});const l=i.session,u=i.user;return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(s){if(re(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signUp(t){var n,r,o;try{let s;if("email"in t){const{email:c,password:f,options:d}=t;let h=null,p=null;this.flowType==="pkce"&&([h,p]=await Bo(this.storage,this.storageKey)),s=await ce(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:d?.emailRedirectTo,body:{email:c,password:f,data:(n=d?.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:d?.captchaToken},code_challenge:h,code_challenge_method:p},xform:pn})}else if("phone"in t){const{phone:c,password:f,options:d}=t;s=await ce(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:c,password:f,data:(r=d?.data)!==null&&r!==void 0?r:{},channel:(o=d?.channel)!==null&&o!==void 0?o:"sms",gotrue_meta_security:{captcha_token:d?.captchaToken}},xform:pn})}else throw new Ra("You must provide either an email or phone number and a password");const{data:i,error:a}=s;if(a||!i)return await gt(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:a});const l=i.session,u=i.user;return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(s){if(await gt(this.storage,`${this.storageKey}-code-verifier`),re(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithPassword(t){try{let n;if("email"in t){const{email:s,password:i,options:a}=t;n=await ce(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:s,password:i,gotrue_meta_security:{captcha_token:a?.captchaToken}},xform:cy})}else if("phone"in t){const{phone:s,password:i,options:a}=t;n=await ce(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:s,password:i,gotrue_meta_security:{captcha_token:a?.captchaToken}},xform:cy})}else throw new Ra("You must provide either an email or phone number and a password");const{data:r,error:o}=n;if(o)return this._returnResult({data:{user:null,session:null},error:o});if(!r||!r.session||!r.user){const s=new Do;return this._returnResult({data:{user:null,session:null},error:s})}return r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),this._returnResult({data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:o})}catch(n){if(re(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOAuth(t){var n,r,o,s;return await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(o=t.options)===null||o===void 0?void 0:o.queryParams,skipBrowserRedirect:(s=t.options)===null||s===void 0?void 0:s.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:n}=t;switch(n){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}}async signInWithEthereum(t){var n,r,o,s,i,a,l,u,c,f,d;let h,p;if("message"in t)h=t.message,p=t.signature;else{const{chain:g,wallet:y,statement:b,options:v}=t;let m;if(mt())if(typeof y=="object")m=y;else{const O=window;if("ethereum"in O&&typeof O.ethereum=="object"&&"request"in O.ethereum&&typeof O.ethereum.request=="function")m=O.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof y!="object"||!v?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");m=y}const _=new URL((n=v?.url)!==null&&n!==void 0?n:window.location.href),S=await m.request({method:"eth_requestAccounts"}).then(O=>O).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!S||S.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const E=pS(S[0]);let w=(r=v?.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!w){const O=await m.request({method:"eth_chainId"});w=dU(O)}const A={domain:_.host,address:E,statement:b,uri:_.href,version:"1",chainId:w,nonce:(o=v?.signInWithEthereum)===null||o===void 0?void 0:o.nonce,issuedAt:(i=(s=v?.signInWithEthereum)===null||s===void 0?void 0:s.issuedAt)!==null&&i!==void 0?i:new Date,expirationTime:(a=v?.signInWithEthereum)===null||a===void 0?void 0:a.expirationTime,notBefore:(l=v?.signInWithEthereum)===null||l===void 0?void 0:l.notBefore,requestId:(u=v?.signInWithEthereum)===null||u===void 0?void 0:u.requestId,resources:(c=v?.signInWithEthereum)===null||c===void 0?void 0:c.resources};h=pU(A),p=await m.request({method:"personal_sign",params:[hU(h),E]})}try{const{data:g,error:y}=await ce(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:h,signature:p},!((f=t.options)===null||f===void 0)&&f.captchaToken?{gotrue_meta_security:{captcha_token:(d=t.options)===null||d===void 0?void 0:d.captchaToken}}:null),xform:pn});if(y)throw y;if(!g||!g.session||!g.user){const b=new Do;return this._returnResult({data:{user:null,session:null},error:b})}return g.session&&(await this._saveSession(g.session),await this._notifyAllSubscribers("SIGNED_IN",g.session)),this._returnResult({data:Object.assign({},g),error:y})}catch(g){if(re(g))return this._returnResult({data:{user:null,session:null},error:g});throw g}}async signInWithSolana(t){var n,r,o,s,i,a,l,u,c,f,d,h;let p,g;if("message"in t)p=t.message,g=t.signature;else{const{chain:y,wallet:b,statement:v,options:m}=t;let _;if(mt())if(typeof b=="object")_=b;else{const E=window;if("solana"in E&&typeof E.solana=="object"&&("signIn"in E.solana&&typeof E.solana.signIn=="function"||"signMessage"in E.solana&&typeof E.solana.signMessage=="function"))_=E.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof b!="object"||!m?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");_=b}const S=new URL((n=m?.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in _&&_.signIn){const E=await _.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},m?.signInWithSolana),{version:"1",domain:S.host,uri:S.href}),v?{statement:v}:null));let w;if(Array.isArray(E)&&E[0]&&typeof E[0]=="object")w=E[0];else if(E&&typeof E=="object"&&"signedMessage"in E&&"signature"in E)w=E;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in w&&"signature"in w&&(typeof w.signedMessage=="string"||w.signedMessage instanceof Uint8Array)&&w.signature instanceof Uint8Array)p=typeof w.signedMessage=="string"?w.signedMessage:new TextDecoder().decode(w.signedMessage),g=w.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in _)||typeof _.signMessage!="function"||!("publicKey"in _)||typeof _!="object"||!_.publicKey||!("toBase58"in _.publicKey)||typeof _.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");p=[`${S.host} wants you to sign in with your Solana account:`,_.publicKey.toBase58(),...v?["",v,""]:[""],"Version: 1",`URI: ${S.href}`,`Issued At: ${(o=(r=m?.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&o!==void 0?o:new Date().toISOString()}`,...!((s=m?.signInWithSolana)===null||s===void 0)&&s.notBefore?[`Not Before: ${m.signInWithSolana.notBefore}`]:[],...!((i=m?.signInWithSolana)===null||i===void 0)&&i.expirationTime?[`Expiration Time: ${m.signInWithSolana.expirationTime}`]:[],...!((a=m?.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${m.signInWithSolana.chainId}`]:[],...!((l=m?.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${m.signInWithSolana.nonce}`]:[],...!((u=m?.signInWithSolana)===null||u===void 0)&&u.requestId?[`Request ID: ${m.signInWithSolana.requestId}`]:[],...!((f=(c=m?.signInWithSolana)===null||c===void 0?void 0:c.resources)===null||f===void 0)&&f.length?["Resources",...m.signInWithSolana.resources.map(w=>`- ${w}`)]:[]].join(`
|
||
`);const E=await _.signMessage(new TextEncoder().encode(p),"utf8");if(!E||!(E instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");g=E}}try{const{data:y,error:b}=await ce(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:p,signature:eo(g)},!((d=t.options)===null||d===void 0)&&d.captchaToken?{gotrue_meta_security:{captcha_token:(h=t.options)===null||h===void 0?void 0:h.captchaToken}}:null),xform:pn});if(b)throw b;if(!y||!y.session||!y.user){const v=new Do;return this._returnResult({data:{user:null,session:null},error:v})}return y.session&&(await this._saveSession(y.session),await this._notifyAllSubscribers("SIGNED_IN",y.session)),this._returnResult({data:Object.assign({},y),error:b})}catch(y){if(re(y))return this._returnResult({data:{user:null,session:null},error:y});throw y}}async _exchangeCodeForSession(t){const n=await Ur(this.storage,`${this.storageKey}-code-verifier`),[r,o]=(n??"").split("/");try{if(!r&&this.flowType==="pkce")throw new N4;const{data:s,error:i}=await ce(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:pn});if(await gt(this.storage,`${this.storageKey}-code-verifier`),i)throw i;if(!s||!s.session||!s.user){const a=new Do;return this._returnResult({data:{user:null,session:null,redirectType:null},error:a})}return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",s.session)),this._returnResult({data:Object.assign(Object.assign({},s),{redirectType:o??null}),error:i})}catch(s){if(await gt(this.storage,`${this.storageKey}-code-verifier`),re(s))return this._returnResult({data:{user:null,session:null,redirectType:null},error:s});throw s}}async signInWithIdToken(t){try{const{options:n,provider:r,token:o,access_token:s,nonce:i}=t,a=await ce(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:o,access_token:s,nonce:i,gotrue_meta_security:{captcha_token:n?.captchaToken}},xform:pn}),{data:l,error:u}=a;if(u)return this._returnResult({data:{user:null,session:null},error:u});if(!l||!l.session||!l.user){const c=new Do;return this._returnResult({data:{user:null,session:null},error:c})}return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),this._returnResult({data:l,error:u})}catch(n){if(re(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOtp(t){var n,r,o,s,i;try{if("email"in t){const{email:a,options:l}=t;let u=null,c=null;this.flowType==="pkce"&&([u,c]=await Bo(this.storage,this.storageKey));const{error:f}=await ce(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(n=l?.data)!==null&&n!==void 0?n:{},create_user:(r=l?.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:l?.captchaToken},code_challenge:u,code_challenge_method:c},redirectTo:l?.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:f})}if("phone"in t){const{phone:a,options:l}=t,{data:u,error:c}=await ce(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(o=l?.data)!==null&&o!==void 0?o:{},create_user:(s=l?.shouldCreateUser)!==null&&s!==void 0?s:!0,gotrue_meta_security:{captcha_token:l?.captchaToken},channel:(i=l?.channel)!==null&&i!==void 0?i:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:u?.message_id},error:c})}throw new Ra("You must provide either an email or phone number.")}catch(a){if(await gt(this.storage,`${this.storageKey}-code-verifier`),re(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async verifyOtp(t){var n,r;try{let o,s;"options"in t&&(o=(n=t.options)===null||n===void 0?void 0:n.redirectTo,s=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:i,error:a}=await ce(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:s}}),redirectTo:o,xform:pn});if(a)throw a;if(!i)throw new Error("An error occurred on token verification.");const l=i.session,u=i.user;return l?.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(o){if(re(o))return this._returnResult({data:{user:null,session:null},error:o});throw o}}async signInWithSSO(t){var n,r,o,s,i;try{let a=null,l=null;this.flowType==="pkce"&&([a,l]=await Bo(this.storage,this.storageKey));const u=await ce(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(r=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((o=t?.options)===null||o===void 0)&&o.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:a,code_challenge_method:l}),headers:this.headers,xform:sU});return!((s=u.data)===null||s===void 0)&&s.url&&mt()&&!(!((i=t.options)===null||i===void 0)&&i.skipBrowserRedirect)&&window.location.assign(u.data.url),this._returnResult(u)}catch(a){if(await gt(this.storage,`${this.storageKey}-code-verifier`),re(a))return this._returnResult({data:null,error:a});throw a}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)throw r;if(!n)throw new Kt;const{error:o}=await ce(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return this._returnResult({data:{user:null,session:null},error:o})})}catch(t){if(re(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){try{const n=`${this.url}/resend`;if("email"in t){const{email:r,type:o,options:s}=t,{error:i}=await ce(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:o,gotrue_meta_security:{captcha_token:s?.captchaToken}},redirectTo:s?.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:i})}else if("phone"in t){const{phone:r,type:o,options:s}=t,{data:i,error:a}=await ce(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:o,gotrue_meta_security:{captcha_token:s?.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:i?.message_id},error:a})}throw new Ra("You must provide either an email or phone number and a type")}catch(n){if(re(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async n=>n))}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),o=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await o}catch{}})()),o}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const o=[...this.pendingInLock];await Promise.all(o),this.pendingInLock.splice(0,o.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await t(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const n=await Ur(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<Su:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const i=await Ur(this.userStorage,this.storageKey+"-user");i?.user?t.user=i.user:t.user=Tu()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const i={value:this.suppressGetSessionWarning};t.user=tU(t.user,i),i.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:o,error:s}=await this._callRefreshToken(t.refresh_token);return s?this._returnResult({data:{session:null},error:s}):this._returnResult({data:{session:o},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){if(t)return await this._getUser(t);await this.initializePromise;const n=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return n.data.user&&(this.suppressGetSessionWarning=!0),n}async _getUser(t){try{return t?await ce(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:Cr}):await this._useSession(async n=>{var r,o,s;const{data:i,error:a}=n;if(a)throw a;return!(!((r=i.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new Kt}:await ce(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(s=(o=i.session)===null||o===void 0?void 0:o.access_token)!==null&&s!==void 0?s:void 0,xform:Cr})})}catch(n){if(re(n))return Cu(n)&&(await this._removeSession(),await gt(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:n});throw n}}async updateUser(t,n={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(t,n))}async _updateUser(t,n={}){try{return await this._useSession(async r=>{const{data:o,error:s}=r;if(s)throw s;if(!o.session)throw new Kt;const i=o.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await Bo(this.storage,this.storageKey));const{data:u,error:c}=await ce(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n?.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:a,code_challenge_method:l}),jwt:i.access_token,xform:Cr});if(c)throw c;return i.user=u.user,await this._saveSession(i),await this._notifyAllSubscribers("USER_UPDATED",i),this._returnResult({data:{user:i.user},error:null})})}catch(r){if(await gt(this.storage,`${this.storageKey}-code-verifier`),re(r))return this._returnResult({data:{user:null},error:r});throw r}}async setSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new Kt;const n=Date.now()/1e3;let r=n,o=!0,s=null;const{payload:i}=Ia(t.access_token);if(i.exp&&(r=i.exp,o=r<=n),o){const{data:a,error:l}=await this._callRefreshToken(t.refresh_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});if(!a)return{data:{user:null,session:null},error:null};s=a}else{const{data:a,error:l}=await this._getUser(t.access_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});s={access_token:t.access_token,refresh_token:t.refresh_token,user:a.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)}return this._returnResult({data:{user:s.user,session:s},error:null})}catch(n){if(re(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async n=>{var r;if(!t){const{data:i,error:a}=n;if(a)throw a;t=(r=i.session)!==null&&r!==void 0?r:void 0}if(!t?.refresh_token)throw new Kt;const{data:o,error:s}=await this._callRefreshToken(t.refresh_token);return s?this._returnResult({data:{user:null,session:null},error:s}):o?this._returnResult({data:{user:o.user,session:o},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(n){if(re(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async _getSessionFromURL(t,n){try{if(!mt())throw new ka("No browser detected.");if(t.error||t.error_description||t.error_code)throw new ka(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new ny("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new ka("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new ny("No code detected.");const{data:v,error:m}=await this._exchangeCodeForSession(t.code);if(m)throw m;const _=new URL(window.location.href);return _.searchParams.delete("code"),window.history.replaceState(window.history.state,"",_.toString()),{data:{session:v.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:o,access_token:s,refresh_token:i,expires_in:a,expires_at:l,token_type:u}=t;if(!s||!a||!i||!u)throw new ka("No session defined in URL");const c=Math.round(Date.now()/1e3),f=parseInt(a);let d=c+f;l&&(d=parseInt(l));const h=d-c;h*1e3<=Ko&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${h}s, should have been closer to ${f}s`);const p=d-f;c-p>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",p,d,c):c-p<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",p,d,c);const{data:g,error:y}=await this._getUser(s);if(y)throw y;const b={provider_token:r,provider_refresh_token:o,access_token:s,expires_in:f,expires_at:d,refresh_token:i,token_type:u,user:g.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:b,redirectType:t.type},error:null})}catch(r){if(re(r))return this._returnResult({data:{session:null,redirectType:null},error:r});throw r}}_isImplicitGrantCallback(t){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),t):!!(t.access_token||t.error_description)}async _isPKCECallback(t){const n=await Ur(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:o,error:s}=n;if(s&&!Cu(s))return this._returnResult({error:s});const i=(r=o.session)===null||r===void 0?void 0:r.access_token;if(i){const{error:a}=await this.admin.signOut(i,t);if(a&&!(k4(a)&&(a.status===404||a.status===401||a.status===403)||Cu(a)))return this._returnResult({error:a})}return t!=="others"&&(await this._removeSession(),await gt(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const n=F4(),r={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async n=>{var r,o;try{const{data:{session:s},error:i}=n;if(i)throw i;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",s)),this._debug("INITIAL_SESSION","callback id",t,"session",s)}catch(s){await((o=this.stateChangeEmitters.get(t))===null||o===void 0?void 0:o.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",s),console.error(s)}})}async resetPasswordForEmail(t,n={}){let r=null,o=null;this.flowType==="pkce"&&([r,o]=await Bo(this.storage,this.storageKey,!0));try{return await ce(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:o,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(s){if(await gt(this.storage,`${this.storageKey}-code-verifier`),re(s))return this._returnResult({data:null,error:s});throw s}}async getUserIdentities(){var t;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return this._returnResult({data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(n){if(re(n))return this._returnResult({data:null,error:n});throw n}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var n;try{const{data:r,error:o}=await this._useSession(async s=>{var i,a,l,u,c;const{data:f,error:d}=s;if(d)throw d;const h=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(i=t.options)===null||i===void 0?void 0:i.redirectTo,scopes:(a=t.options)===null||a===void 0?void 0:a.scopes,queryParams:(l=t.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await ce(this.fetch,"GET",h,{headers:this.headers,jwt:(c=(u=f.session)===null||u===void 0?void 0:u.access_token)!==null&&c!==void 0?c:void 0})});if(o)throw o;return mt()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r?.url),this._returnResult({data:{provider:t.provider,url:r?.url},error:null})}catch(r){if(re(r))return this._returnResult({data:{provider:t.provider,url:null},error:r});throw r}}async linkIdentityIdToken(t){return await this._useSession(async n=>{var r;try{const{error:o,data:{session:s}}=n;if(o)throw o;const{options:i,provider:a,token:l,access_token:u,nonce:c}=t,f=await ce(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(r=s?.access_token)!==null&&r!==void 0?r:void 0,body:{provider:a,id_token:l,access_token:u,nonce:c,link_identity:!0,gotrue_meta_security:{captcha_token:i?.captchaToken}},xform:pn}),{data:d,error:h}=f;return h?this._returnResult({data:{user:null,session:null},error:h}):!d||!d.session||!d.user?this._returnResult({data:{user:null,session:null},error:new Do}):(d.session&&(await this._saveSession(d.session),await this._notifyAllSubscribers("USER_UPDATED",d.session)),this._returnResult({data:d,error:h}))}catch(o){if(await gt(this.storage,`${this.storageKey}-code-verifier`),re(o))return this._returnResult({data:{user:null,session:null},error:o});throw o}})}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,o;const{data:s,error:i}=n;if(i)throw i;return await ce(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(o=(r=s.session)===null||r===void 0?void 0:r.access_token)!==null&&o!==void 0?o:void 0})})}catch(n){if(re(n))return this._returnResult({data:null,error:n});throw n}}async _refreshAccessToken(t){const n=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await V4(async o=>(o>0&&await z4(200*Math.pow(2,o-1)),this._debug(n,"refreshing attempt",o),await ce(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:pn})),(o,s)=>{const i=200*Math.pow(2,o);return s&&Eu(s)&&Date.now()+i-r<Ko})}catch(r){if(this._debug(n,"error",r),re(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}finally{this._debug(n,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",n,"url",r),mt()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:t,url:r},error:null}}async _recoverAndRefresh(){var t,n;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const o=await Ur(this.storage,this.storageKey);if(o&&this.userStorage){let i=await Ur(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!i&&(i={user:o.user},await Jo(this.userStorage,this.storageKey+"-user",i)),o.user=(t=i?.user)!==null&&t!==void 0?t:Tu()}else if(o&&!o.user&&!o.user){const i=await Ur(this.storage,this.storageKey+"-user");i&&i?.user?(o.user=i.user,await gt(this.storage,this.storageKey+"-user"),await Jo(this.storage,this.storageKey,o)):o.user=Tu()}if(this._debug(r,"session from storage",o),!this._isValidSession(o)){this._debug(r,"session is not valid"),o!==null&&await this._removeSession();return}const s=((n=o.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<Su;if(this._debug(r,`session has${s?"":" not"} expired with margin of ${Su}s`),s){if(this.autoRefreshToken&&o.refresh_token){const{error:i}=await this._callRefreshToken(o.refresh_token);i&&(console.error(i),Eu(i)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",i),await this._removeSession()))}}else if(o.user&&o.user.__isUserNotAvailableProxy===!0)try{const{data:i,error:a}=await this._getUser(o.access_token);!a&&i?.user?(o.user=i.user,await this._saveSession(o),await this._notifyAllSubscribers("SIGNED_IN",o)):this._debug(r,"could not get user data, skipping SIGNED_IN notification")}catch(i){console.error("Error getting user data:",i),this._debug(r,"error getting user data, skipping SIGNED_IN notification",i)}else await this._notifyAllSubscribers("SIGNED_IN",o)}catch(o){this._debug(r,"error",o),console.error(o);return}finally{this._debug(r,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new Kt;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const o=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(o,"begin");try{this.refreshingDeferred=new Ec;const{data:s,error:i}=await this._refreshAccessToken(t);if(i)throw i;if(!s.session)throw new Kt;await this._saveSession(s.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",s.session);const a={data:s.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(s){if(this._debug(o,"error",s),re(s)){const i={data:null,error:s};return Eu(s)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(i),i}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(s),s}finally{this.refreshingDeferred=null,this._debug(o,"end")}}async _notifyAllSubscribers(t,n,r=!0){const o=`#_notifyAllSubscribers(${t})`;this._debug(o,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const s=[],i=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(t,n)}catch(l){s.push(l)}});if(await Promise.all(i),s.length>0){for(let a=0;a<s.length;a+=1)console.error(s[a]);throw s[0]}}finally{this._debug(o,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await gt(this.storage,`${this.storageKey}-code-verifier`);const n=Object.assign({},t),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await Jo(this.userStorage,this.storageKey+"-user",{user:n.user});const o=Object.assign({},n);delete o.user;const s=ay(o);await Jo(this.storage,this.storageKey,s)}else{const o=ay(n);await Jo(this.storage,this.storageKey,o)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await gt(this.storage,this.storageKey),await gt(this.storage,this.storageKey+"-code-verifier"),await gt(this.storage,this.storageKey+"-user"),this.userStorage&&await gt(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&mt()&&window?.removeEventListener&&window.removeEventListener("visibilitychange",t)}catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),Ko);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t);const n=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=n,n&&typeof n=="object"&&typeof n.unref=="function"?n.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(n)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t);const n=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,n&&clearTimeout(n)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const o=Math.floor((r.expires_at*1e3-t)/Ko);this._debug("#_autoRefreshTokenTick()",`access token expires in ${o} ticks, a tick lasts ${Ko}ms, refresh threshold is ${Vf} ticks`),o<=Vf&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof hS)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!mt()||!window?.addEventListener)return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(t){this._debug("#visibilityChangedCallback","error",t)}},window?.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,n,r){const o=[`provider=${encodeURIComponent(n)}`];if(r?.redirectTo&&o.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r?.scopes&&o.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[s,i]=await Bo(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(s)}`,code_challenge_method:`${encodeURIComponent(i)}`});o.push(a.toString())}if(r?.queryParams){const s=new URLSearchParams(r.queryParams);o.push(s.toString())}return r?.skipBrowserRedirect&&o.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${o.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:o,error:s}=n;return s?this._returnResult({data:null,error:s}):await ce(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=o?.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(re(n))return this._returnResult({data:null,error:n});throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,o;const{data:s,error:i}=n;if(i)return this._returnResult({data:null,error:i});const a=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:l,error:u}=await ce(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(r=s?.session)===null||r===void 0?void 0:r.access_token});return u?this._returnResult({data:null,error:u}):(t.factorType==="totp"&&l.type==="totp"&&(!((o=l?.totp)===null||o===void 0)&&o.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),this._returnResult({data:l,error:null}))})}catch(n){if(re(n))return this._returnResult({data:null,error:n});throw n}}async _verify(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var r;const{data:o,error:s}=n;if(s)return this._returnResult({data:null,error:s});const i=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?wU(t.webauthn.credential_response):SU(t.webauthn.credential_response)})}:{code:t.code}),{data:a,error:l}=await ce(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:i,headers:this.headers,jwt:(r=o?.session)===null||r===void 0?void 0:r.access_token});return l?this._returnResult({data:null,error:l}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+a.expires_in},a)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",a),this._returnResult({data:a,error:l}))})}catch(n){if(re(n))return this._returnResult({data:null,error:n});throw n}})}async _challenge(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async n=>{var r;const{data:o,error:s}=n;if(s)return this._returnResult({data:null,error:s});const i=await ce(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(r=o?.session)===null||r===void 0?void 0:r.access_token});if(i.error)return i;const{data:a}=i;if(a.type!=="webauthn")return{data:a,error:null};switch(a.webauthn.type){case"create":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:bU(a.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:_U(a.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(n){if(re(n))return this._returnResult({data:null,error:n});throw n}})}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?this._returnResult({data:null,error:r}):await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){var t;const{data:{user:n},error:r}=await this.getUser();if(r)return{data:null,error:r};const o={all:[],phone:[],totp:[],webauthn:[]};for(const s of(t=n?.factors)!==null&&t!==void 0?t:[])o.all.push(s),s.status==="verified"&&o[s.factor_type].push(s);return{data:o,error:null}}async _getAuthenticatorAssuranceLevel(t){var n,r,o,s;if(t)try{const{payload:h}=Ia(t);let p=null;h.aal&&(p=h.aal);let g=p;const{data:{user:y},error:b}=await this.getUser(t);if(b)return this._returnResult({data:null,error:b});((r=(n=y?.factors)===null||n===void 0?void 0:n.filter(_=>_.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(g="aal2");const m=h.amr||[];return{data:{currentLevel:p,nextLevel:g,currentAuthenticationMethods:m},error:null}}catch(h){if(re(h))return this._returnResult({data:null,error:h});throw h}const{data:{session:i},error:a}=await this.getSession();if(a)return this._returnResult({data:null,error:a});if(!i)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:l}=Ia(i.access_token);let u=null;l.aal&&(u=l.aal);let c=u;((s=(o=i.user.factors)===null||o===void 0?void 0:o.filter(h=>h.status==="verified"))!==null&&s!==void 0?s:[]).length>0&&(c="aal2");const d=l.amr||[];return{data:{currentLevel:u,nextLevel:c,currentAuthenticationMethods:d},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async n=>{const{data:{session:r},error:o}=n;return o?this._returnResult({data:null,error:o}):r?await ce(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:r.access_token,xform:s=>({data:s,error:null})}):this._returnResult({data:null,error:new Kt})})}catch(n){if(re(n))return this._returnResult({data:null,error:n});throw n}}async _approveAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:o},error:s}=r;if(s)return this._returnResult({data:null,error:s});if(!o)return this._returnResult({data:null,error:new Kt});const i=await ce(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:o.access_token,body:{action:"approve"},xform:a=>({data:a,error:null})});return i.data&&i.data.redirect_url&&mt()&&!n?.skipBrowserRedirect&&window.location.assign(i.data.redirect_url),i})}catch(r){if(re(r))return this._returnResult({data:null,error:r});throw r}}async _denyAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:o},error:s}=r;if(s)return this._returnResult({data:null,error:s});if(!o)return this._returnResult({data:null,error:new Kt});const i=await ce(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:o.access_token,body:{action:"deny"},xform:a=>({data:a,error:null})});return i.data&&i.data.redirect_url&&mt()&&!n?.skipBrowserRedirect&&window.location.assign(i.data.redirect_url),i})}catch(r){if(re(r))return this._returnResult({data:null,error:r});throw r}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;return r?this._returnResult({data:null,error:r}):n?await ce(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,xform:o=>({data:o,error:null})}):this._returnResult({data:null,error:new Kt})})}catch(t){if(re(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async n=>{const{data:{session:r},error:o}=n;return o?this._returnResult({data:null,error:o}):r?(await ce(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new Kt})})}catch(n){if(re(n))return this._returnResult({data:null,error:n});throw n}}async fetchJwk(t,n={keys:[]}){let r=n.keys.find(a=>a.kid===t);if(r)return r;const o=Date.now();if(r=this.jwks.keys.find(a=>a.kid===t),r&&this.jwks_cached_at+$4>o)return r;const{data:s,error:i}=await ce(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(i)throw i;return!s.keys||s.keys.length===0||(this.jwks=s,this.jwks_cached_at=o,r=s.keys.find(a=>a.kid===t),!r)?null:r}async getClaims(t,n={}){try{let r=t;if(!r){const{data:h,error:p}=await this.getSession();if(p||!h.session)return this._returnResult({data:null,error:p});r=h.session.access_token}const{header:o,payload:s,signature:i,raw:{header:a,payload:l}}=Ia(r);n?.allowExpired||Q4(s.exp);const u=!o.alg||o.alg.startsWith("HS")||!o.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(o.kid,n?.keys?{keys:n.keys}:n?.jwks);if(!u){const{error:h}=await this.getUser(r);if(h)throw h;return{data:{claims:s,header:o,signature:i},error:null}}const c=Z4(o.alg),f=await crypto.subtle.importKey("jwk",u,c,!0,["verify"]);if(!await crypto.subtle.verify(c,f,i,B4(`${a}.${l}`)))throw new Kf("Invalid JWT signature");return{data:{claims:s,header:o,signature:i},error:null}}catch(r){if(re(r))return this._returnResult({data:null,error:r});throw r}}}zi.nextInstanceID={};const RU=zi,kU="2.93.3";let ri="";typeof Deno<"u"?ri="deno":typeof document<"u"?ri="web":typeof navigator<"u"&&navigator.product==="ReactNative"?ri="react-native":ri="node";const IU={"X-Client-Info":`supabase-js-${ri}/${kU}`},NU={headers:IU},LU={schema:"public"},jU={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},MU={};function Vi(e){"@babel/helpers - typeof";return Vi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vi(e)}function DU(e,t){if(Vi(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function BU(e){var t=DU(e,"string");return Vi(t)=="symbol"?t:t+""}function UU(e,t,n){return(t=BU(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function py(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ve(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?py(Object(n),!0).forEach(function(r){UU(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):py(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const FU=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),HU=()=>Headers,WU=(e,t,n)=>{const r=FU(n),o=HU();return async(s,i)=>{var a;const l=(a=await t())!==null&&a!==void 0?a:e;let u=new o(i?.headers);return u.has("apikey")||u.set("apikey",e),u.has("Authorization")||u.set("Authorization",`Bearer ${l}`),r(s,Ve(Ve({},i),{},{headers:u}))}};function zU(e){return e.endsWith("/")?e:e+"/"}function VU(e,t){var n,r;const{db:o,auth:s,realtime:i,global:a}=e,{db:l,auth:u,realtime:c,global:f}=t,d={db:Ve(Ve({},l),o),auth:Ve(Ve({},u),s),realtime:Ve(Ve({},c),i),storage:{},global:Ve(Ve(Ve({},f),a),{},{headers:Ve(Ve({},(n=f?.headers)!==null&&n!==void 0?n:{}),(r=a?.headers)!==null&&r!==void 0?r:{})}),accessToken:async()=>""};return e.accessToken?d.accessToken=e.accessToken:delete d.accessToken,d}function qU(e){const t=e?.trim();if(!t)throw new Error("supabaseUrl is required.");if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(zU(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var GU=class extends RU{constructor(e){super(e)}},KU=class{constructor(e,t,n){var r,o;this.supabaseUrl=e,this.supabaseKey=t;const s=qU(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",s),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",s),this.storageUrl=new URL("storage/v1",s),this.functionsUrl=new URL("functions/v1",s);const i=`sb-${s.hostname.split(".")[0]}-auth-token`,a={db:LU,realtime:MU,auth:Ve(Ve({},jU),{},{storageKey:i}),global:NU},l=VU(n??{},a);if(this.storageKey=(r=l.auth.storageKey)!==null&&r!==void 0?r:"",this.headers=(o=l.global.headers)!==null&&o!==void 0?o:{},l.accessToken)this.accessToken=l.accessToken,this.auth=new Proxy({},{get:(c,f)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(f)} is not possible`)}});else{var u;this.auth=this._initSupabaseAuthClient((u=l.auth)!==null&&u!==void 0?u:{},this.headers,l.global.fetch)}this.fetch=WU(t,this._getAccessToken.bind(this),l.global.fetch),this.realtime=this._initRealtimeClient(Ve({headers:this.headers,accessToken:this._getAccessToken.bind(this)},l.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(c=>this.realtime.setAuth(c)).catch(c=>console.warn("Failed to set initial Realtime auth token:",c)),this.rest=new kB(new URL("rest/v1",s).href,{headers:this.headers,schema:l.db.schema,fetch:this.fetch}),this.storage=new T4(this.storageUrl.href,this.headers,this.fetch,n?.storage),l.accessToken||this._listenForAuthEvents()}get functions(){return new OB(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,n)}channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e=this,t,n;if(e.accessToken)return await e.accessToken();const{data:r}=await e.auth.getSession();return(t=(n=r.session)===null||n===void 0?void 0:n.access_token)!==null&&t!==void 0?t:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:o,storageKey:s,flowType:i,lock:a,debug:l,throwOnError:u},c,f){const d={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new GU({url:this.authUrl.href,headers:Ve(Ve({},d),c),storageKey:s,autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:o,flowType:i,lock:a,debug:l,throwOnError:u,fetch:f,hasCustomAuthorizationHeader:Object.keys(this.headers).some(h=>h.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new JB(this.realtimeUrl.href,Ve(Ve({},e),{},{params:Ve(Ve({},{apikey:this.supabaseKey}),e?.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",t?.access_token)})}_handleTokenChanged(e,t,n){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const JU=(e,t,n)=>new KU(e,t,n);function YU(){if(typeof window<"u")return!1;const e=globalThis.process;if(!e)return!1;const t=e.version;if(t==null)return!1;const n=t.match(/^v(\d+)\./);return n?parseInt(n[1],10)<=18:!1}YU()&&console.warn("⚠️ Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");function mS(e,t){return function(){return e.apply(t,arguments)}}const{toString:XU}=Object.prototype,{getPrototypeOf:_h}=Object,{iterator:Tc,toStringTag:yS}=Symbol,xc=(e=>t=>{const n=XU.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Tn=e=>(e=e.toLowerCase(),t=>xc(t)===e),Oc=e=>t=>typeof t===e,{isArray:Fs}=Array,Ps=Oc("undefined");function oa(e){return e!==null&&!Ps(e)&&e.constructor!==null&&!Ps(e.constructor)&&Ut(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const vS=Tn("ArrayBuffer");function QU(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&vS(e.buffer),t}const ZU=Oc("string"),Ut=Oc("function"),bS=Oc("number"),sa=e=>e!==null&&typeof e=="object",eF=e=>e===!0||e===!1,Za=e=>{if(xc(e)!=="object")return!1;const t=_h(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(yS in e)&&!(Tc in e)},tF=e=>{if(!sa(e)||oa(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},nF=Tn("Date"),rF=Tn("File"),oF=Tn("Blob"),sF=Tn("FileList"),iF=e=>sa(e)&&Ut(e.pipe),aF=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ut(e.append)&&((t=xc(e))==="formdata"||t==="object"&&Ut(e.toString)&&e.toString()==="[object FormData]"))},lF=Tn("URLSearchParams"),[cF,uF,fF,dF]=["ReadableStream","Request","Response","Headers"].map(Tn),hF=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ia(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Fs(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(oa(e))return;const s=n?Object.getOwnPropertyNames(e):Object.keys(e),i=s.length;let a;for(r=0;r<i;r++)a=s[r],t.call(null,e[a],a,e)}}function _S(e,t){if(oa(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const to=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,wS=e=>!Ps(e)&&e!==to;function Jf(){const{caseless:e,skipUndefined:t}=wS(this)&&this||{},n={},r=(o,s)=>{const i=e&&_S(n,s)||s;Za(n[i])&&Za(o)?n[i]=Jf(n[i],o):Za(o)?n[i]=Jf({},o):Fs(o)?n[i]=o.slice():(!t||!Ps(o))&&(n[i]=o)};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&ia(arguments[o],r);return n}const pF=(e,t,n,{allOwnKeys:r}={})=>(ia(t,(o,s)=>{n&&Ut(o)?Object.defineProperty(e,s,{value:mS(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,s,{value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),gF=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),mF=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},yF=(e,t,n,r)=>{let o,s,i;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],(!r||r(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=n!==!1&&_h(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},vF=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},bF=e=>{if(!e)return null;if(Fs(e))return e;let t=e.length;if(!bS(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},_F=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&_h(Uint8Array)),wF=(e,t)=>{const r=(e&&e[Tc]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},SF=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},CF=Tn("HTMLFormElement"),EF=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),gy=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),TF=Tn("RegExp"),SS=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ia(n,(o,s)=>{let i;(i=t(o,s,e))!==!1&&(r[s]=i||o)}),Object.defineProperties(e,r)},xF=e=>{SS(e,(t,n)=>{if(Ut(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ut(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},OF=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return Fs(e)?r(e):r(String(e).split(t)),n},AF=()=>{},PF=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function $F(e){return!!(e&&Ut(e.append)&&e[yS]==="FormData"&&e[Tc])}const RF=e=>{const t=new Array(10),n=(r,o)=>{if(sa(r)){if(t.indexOf(r)>=0)return;if(oa(r))return r;if(!("toJSON"in r)){t[o]=r;const s=Fs(r)?[]:{};return ia(r,(i,a)=>{const l=n(i,o+1);!Ps(l)&&(s[a]=l)}),t[o]=void 0,s}}return r};return n(e,0)},kF=Tn("AsyncFunction"),IF=e=>e&&(sa(e)||Ut(e))&&Ut(e.then)&&Ut(e.catch),CS=((e,t)=>e?setImmediate:t?((n,r)=>(to.addEventListener("message",({source:o,data:s})=>{o===to&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),to.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ut(to.postMessage)),NF=typeof queueMicrotask<"u"?queueMicrotask.bind(to):typeof process<"u"&&process.nextTick||CS,LF=e=>e!=null&&Ut(e[Tc]),M={isArray:Fs,isArrayBuffer:vS,isBuffer:oa,isFormData:aF,isArrayBufferView:QU,isString:ZU,isNumber:bS,isBoolean:eF,isObject:sa,isPlainObject:Za,isEmptyObject:tF,isReadableStream:cF,isRequest:uF,isResponse:fF,isHeaders:dF,isUndefined:Ps,isDate:nF,isFile:rF,isBlob:oF,isRegExp:TF,isFunction:Ut,isStream:iF,isURLSearchParams:lF,isTypedArray:_F,isFileList:sF,forEach:ia,merge:Jf,extend:pF,trim:hF,stripBOM:gF,inherits:mF,toFlatObject:yF,kindOf:xc,kindOfTest:Tn,endsWith:vF,toArray:bF,forEachEntry:wF,matchAll:SF,isHTMLForm:CF,hasOwnProperty:gy,hasOwnProp:gy,reduceDescriptors:SS,freezeMethods:xF,toObjectSet:OF,toCamelCase:EF,noop:AF,toFiniteNumber:PF,findKey:_S,global:to,isContextDefined:wS,isSpecCompliantForm:$F,toJSONObject:RF,isAsyncFn:kF,isThenable:IF,setImmediate:CS,asap:NF,isIterable:LF};let de=class ES extends Error{static from(t,n,r,o,s,i){const a=new ES(t.message,n||t.code,r,o,s);return a.cause=t,a.name=t.name,i&&Object.assign(a,i),a}constructor(t,n,r,o,s){super(t),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),o&&(this.request=o),s&&(this.response=s,this.status=s.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:M.toJSONObject(this.config),code:this.code,status:this.status}}};de.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";de.ERR_BAD_OPTION="ERR_BAD_OPTION";de.ECONNABORTED="ECONNABORTED";de.ETIMEDOUT="ETIMEDOUT";de.ERR_NETWORK="ERR_NETWORK";de.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";de.ERR_DEPRECATED="ERR_DEPRECATED";de.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";de.ERR_BAD_REQUEST="ERR_BAD_REQUEST";de.ERR_CANCELED="ERR_CANCELED";de.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";de.ERR_INVALID_URL="ERR_INVALID_URL";const jF=null;function Yf(e){return M.isPlainObject(e)||M.isArray(e)}function TS(e){return M.endsWith(e,"[]")?e.slice(0,-2):e}function my(e,t,n){return e?e.concat(t).map(function(o,s){return o=TS(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function MF(e){return M.isArray(e)&&!e.some(Yf)}const DF=M.toFlatObject(M,{},null,function(t){return/^is[A-Z]/.test(t)});function Ac(e,t,n){if(!M.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=M.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,y){return!M.isUndefined(y[g])});const r=n.metaTokens,o=n.visitor||c,s=n.dots,i=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&M.isSpecCompliantForm(t);if(!M.isFunction(o))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(M.isDate(p))return p.toISOString();if(M.isBoolean(p))return p.toString();if(!l&&M.isBlob(p))throw new de("Blob is not supported. Use a Buffer instead.");return M.isArrayBuffer(p)||M.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function c(p,g,y){let b=p;if(p&&!y&&typeof p=="object"){if(M.endsWith(g,"{}"))g=r?g:g.slice(0,-2),p=JSON.stringify(p);else if(M.isArray(p)&&MF(p)||(M.isFileList(p)||M.endsWith(g,"[]"))&&(b=M.toArray(p)))return g=TS(g),b.forEach(function(m,_){!(M.isUndefined(m)||m===null)&&t.append(i===!0?my([g],_,s):i===null?g:g+"[]",u(m))}),!1}return Yf(p)?!0:(t.append(my(y,g,s),u(p)),!1)}const f=[],d=Object.assign(DF,{defaultVisitor:c,convertValue:u,isVisitable:Yf});function h(p,g){if(!M.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(p),M.forEach(p,function(b,v){(!(M.isUndefined(b)||b===null)&&o.call(t,b,M.isString(v)?v.trim():v,g,d))===!0&&h(b,g?g.concat(v):[v])}),f.pop()}}if(!M.isObject(e))throw new TypeError("data must be an object");return h(e),t}function yy(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function wh(e,t){this._pairs=[],e&&Ac(e,this,t)}const xS=wh.prototype;xS.append=function(t,n){this._pairs.push([t,n])};xS.toString=function(t){const n=t?function(r){return t.call(this,r,yy)}:yy;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function BF(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function OS(e,t,n){if(!t)return e;const r=n&&n.encode||BF,o=M.isFunction(n)?{serialize:n}:n,s=o&&o.serialize;let i;if(s?i=s(t,o):i=M.isURLSearchParams(t)?t.toString():new wh(t,o).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class vy{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){M.forEach(this.handlers,function(r){r!==null&&t(r)})}}const AS={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},UF=typeof URLSearchParams<"u"?URLSearchParams:wh,FF=typeof FormData<"u"?FormData:null,HF=typeof Blob<"u"?Blob:null,WF={isBrowser:!0,classes:{URLSearchParams:UF,FormData:FF,Blob:HF},protocols:["http","https","file","blob","url","data"]},Sh=typeof window<"u"&&typeof document<"u",Xf=typeof navigator=="object"&&navigator||void 0,zF=Sh&&(!Xf||["ReactNative","NativeScript","NS"].indexOf(Xf.product)<0),VF=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",qF=Sh&&window.location.href||"http://localhost",GF=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Sh,hasStandardBrowserEnv:zF,hasStandardBrowserWebWorkerEnv:VF,navigator:Xf,origin:qF},Symbol.toStringTag,{value:"Module"})),xt={...GF,...WF};function KF(e,t){return Ac(e,new xt.classes.URLSearchParams,{visitor:function(n,r,o,s){return xt.isNode&&M.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function JF(e){return M.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function YF(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}function PS(e){function t(n,r,o,s){let i=n[s++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),l=s>=n.length;return i=!i&&M.isArray(o)?o.length:i,l?(M.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!a):((!o[i]||!M.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],s)&&M.isArray(o[i])&&(o[i]=YF(o[i])),!a)}if(M.isFormData(e)&&M.isFunction(e.entries)){const n={};return M.forEachEntry(e,(r,o)=>{t(JF(r),o,n,0)}),n}return null}function XF(e,t,n){if(M.isString(e))try{return(t||JSON.parse)(e),M.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const aa={transitional:AS,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=M.isObject(t);if(s&&M.isHTMLForm(t)&&(t=new FormData(t)),M.isFormData(t))return o?JSON.stringify(PS(t)):t;if(M.isArrayBuffer(t)||M.isBuffer(t)||M.isStream(t)||M.isFile(t)||M.isBlob(t)||M.isReadableStream(t))return t;if(M.isArrayBufferView(t))return t.buffer;if(M.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return KF(t,this.formSerializer).toString();if((a=M.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Ac(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),XF(t)):t}],transformResponse:[function(t){const n=this.transitional||aa.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(M.isResponse(t)||M.isReadableStream(t))return t;if(t&&M.isString(t)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(a){if(i)throw a.name==="SyntaxError"?de.from(a,de.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:xt.classes.FormData,Blob:xt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};M.forEach(["delete","get","head","post","put","patch"],e=>{aa.headers[e]={}});const QF=M.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ZF=e=>{const t={};let n,r,o;return e&&e.split(`
|
||
`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&QF[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},by=Symbol("internals");function Zs(e){return e&&String(e).trim().toLowerCase()}function el(e){return e===!1||e==null?e:M.isArray(e)?e.map(el):String(e)}function eH(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const tH=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ou(e,t,n,r,o){if(M.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!M.isString(t)){if(M.isString(r))return t.indexOf(r)!==-1;if(M.isRegExp(r))return r.test(t)}}function nH(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function rH(e,t){const n=M.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,i){return this[r].call(this,t,o,s,i)},configurable:!0})})}let Ft=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(a,l,u){const c=Zs(l);if(!c)throw new Error("header name must be a non-empty string");const f=M.findKey(o,c);(!f||o[f]===void 0||u===!0||u===void 0&&o[f]!==!1)&&(o[f||l]=el(a))}const i=(a,l)=>M.forEach(a,(u,c)=>s(u,c,l));if(M.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(M.isString(t)&&(t=t.trim())&&!tH(t))i(ZF(t),n);else if(M.isObject(t)&&M.isIterable(t)){let a={},l,u;for(const c of t){if(!M.isArray(c))throw TypeError("Object iterator must return a key-value pair");a[u=c[0]]=(l=a[u])?M.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}i(a,n)}else t!=null&&s(n,t,r);return this}get(t,n){if(t=Zs(t),t){const r=M.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return eH(o);if(M.isFunction(n))return n.call(this,o,r);if(M.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Zs(t),t){const r=M.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Ou(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(i){if(i=Zs(i),i){const a=M.findKey(r,i);a&&(!n||Ou(r,r[a],a,n))&&(delete r[a],o=!0)}}return M.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!t||Ou(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return M.forEach(this,(o,s)=>{const i=M.findKey(r,s);if(i){n[i]=el(o),delete n[s];return}const a=t?nH(s):String(s).trim();a!==s&&delete n[s],n[a]=el(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return M.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&M.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
||
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[by]=this[by]={accessors:{}}).accessors,o=this.prototype;function s(i){const a=Zs(i);r[a]||(rH(o,i),r[a]=!0)}return M.isArray(t)?t.forEach(s):s(t),this}};Ft.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);M.reduceDescriptors(Ft.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});M.freezeMethods(Ft);function Au(e,t){const n=this||aa,r=t||n,o=Ft.from(r.headers);let s=r.data;return M.forEach(e,function(a){s=a.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function $S(e){return!!(e&&e.__CANCEL__)}let la=class extends de{constructor(t,n,r){super(t??"canceled",de.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function RS(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new de("Request failed with status code "+n.status,[de.ERR_BAD_REQUEST,de.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function oH(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function sH(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[s];i||(i=u),n[o]=l,r[o]=u;let f=s,d=0;for(;f!==o;)d+=n[f++],f=f%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),u-i<t)return;const h=c&&u-c;return h?Math.round(d*1e3/h):void 0}}function iH(e,t){let n=0,r=1e3/t,o,s;const i=(u,c=Date.now())=>{n=c,o=null,s&&(clearTimeout(s),s=null),e(...u)};return[(...u)=>{const c=Date.now(),f=c-n;f>=r?i(u,c):(o=u,s||(s=setTimeout(()=>{s=null,i(o)},r-f)))},()=>o&&i(o)]}const Ml=(e,t,n=3)=>{let r=0;const o=sH(50,250);return iH(s=>{const i=s.loaded,a=s.lengthComputable?s.total:void 0,l=i-r,u=o(l),c=i<=a;r=i;const f={loaded:i,total:a,progress:a?i/a:void 0,bytes:l,rate:u||void 0,estimated:u&&a&&c?(a-i)/u:void 0,event:s,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(f)},n)},_y=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},wy=e=>(...t)=>M.asap(()=>e(...t)),aH=xt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,xt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(xt.origin),xt.navigator&&/(msie|trident)/i.test(xt.navigator.userAgent)):()=>!0,lH=xt.hasStandardBrowserEnv?{write(e,t,n,r,o,s,i){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];M.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),M.isString(r)&&a.push(`path=${r}`),M.isString(o)&&a.push(`domain=${o}`),s===!0&&a.push("secure"),M.isString(i)&&a.push(`SameSite=${i}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function cH(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function uH(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function kS(e,t,n){let r=!cH(t);return e&&(r||n==!1)?uH(e,t):t}const Sy=e=>e instanceof Ft?{...e}:e;function wo(e,t){t=t||{};const n={};function r(u,c,f,d){return M.isPlainObject(u)&&M.isPlainObject(c)?M.merge.call({caseless:d},u,c):M.isPlainObject(c)?M.merge({},c):M.isArray(c)?c.slice():c}function o(u,c,f,d){if(M.isUndefined(c)){if(!M.isUndefined(u))return r(void 0,u,f,d)}else return r(u,c,f,d)}function s(u,c){if(!M.isUndefined(c))return r(void 0,c)}function i(u,c){if(M.isUndefined(c)){if(!M.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function a(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const l={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(u,c,f)=>o(Sy(u),Sy(c),f,!0)};return M.forEach(Object.keys({...e,...t}),function(c){const f=l[c]||o,d=f(e[c],t[c],c);M.isUndefined(d)&&f!==a||(n[c]=d)}),n}const IS=e=>{const t=wo({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:a}=t;if(t.headers=i=Ft.from(i),t.url=OS(kS(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),M.isFormData(n)){if(xt.hasStandardBrowserEnv||xt.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(M.isFunction(n.getHeaders)){const l=n.getHeaders(),u=["content-type","content-length"];Object.entries(l).forEach(([c,f])=>{u.includes(c.toLowerCase())&&i.set(c,f)})}}if(xt.hasStandardBrowserEnv&&(r&&M.isFunction(r)&&(r=r(t)),r||r!==!1&&aH(t.url))){const l=o&&s&&lH.read(s);l&&i.set(o,l)}return t},fH=typeof XMLHttpRequest<"u",dH=fH&&function(e){return new Promise(function(n,r){const o=IS(e);let s=o.data;const i=Ft.from(o.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:u}=o,c,f,d,h,p;function g(){h&&h(),p&&p(),o.cancelToken&&o.cancelToken.unsubscribe(c),o.signal&&o.signal.removeEventListener("abort",c)}let y=new XMLHttpRequest;y.open(o.method.toUpperCase(),o.url,!0),y.timeout=o.timeout;function b(){if(!y)return;const m=Ft.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),S={data:!a||a==="text"||a==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:m,config:e,request:y};RS(function(w){n(w),g()},function(w){r(w),g()},S),y=null}"onloadend"in y?y.onloadend=b:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(b)},y.onabort=function(){y&&(r(new de("Request aborted",de.ECONNABORTED,e,y)),y=null)},y.onerror=function(_){const S=_&&_.message?_.message:"Network Error",E=new de(S,de.ERR_NETWORK,e,y);E.event=_||null,r(E),y=null},y.ontimeout=function(){let _=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const S=o.transitional||AS;o.timeoutErrorMessage&&(_=o.timeoutErrorMessage),r(new de(_,S.clarifyTimeoutError?de.ETIMEDOUT:de.ECONNABORTED,e,y)),y=null},s===void 0&&i.setContentType(null),"setRequestHeader"in y&&M.forEach(i.toJSON(),function(_,S){y.setRequestHeader(S,_)}),M.isUndefined(o.withCredentials)||(y.withCredentials=!!o.withCredentials),a&&a!=="json"&&(y.responseType=o.responseType),u&&([d,p]=Ml(u,!0),y.addEventListener("progress",d)),l&&y.upload&&([f,h]=Ml(l),y.upload.addEventListener("progress",f),y.upload.addEventListener("loadend",h)),(o.cancelToken||o.signal)&&(c=m=>{y&&(r(!m||m.type?new la(null,e,y):m),y.abort(),y=null)},o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));const v=oH(o.url);if(v&&xt.protocols.indexOf(v)===-1){r(new de("Unsupported protocol "+v+":",de.ERR_BAD_REQUEST,e));return}y.send(s||null)})},hH=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const s=function(u){if(!o){o=!0,a();const c=u instanceof Error?u:this.reason;r.abort(c instanceof de?c:new la(c instanceof Error?c.message:c))}};let i=t&&setTimeout(()=>{i=null,s(new de(`timeout of ${t}ms exceeded`,de.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(s):u.removeEventListener("abort",s)}),e=null)};e.forEach(u=>u.addEventListener("abort",s));const{signal:l}=r;return l.unsubscribe=()=>M.asap(a),l}},pH=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},gH=async function*(e,t){for await(const n of mH(e))yield*pH(n,t)},mH=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Cy=(e,t,n,r)=>{const o=gH(e,t);let s=0,i,a=l=>{i||(i=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:c}=await o.next();if(u){a(),l.close();return}let f=c.byteLength;if(n){let d=s+=f;n(d)}l.enqueue(new Uint8Array(c))}catch(u){throw a(u),u}},cancel(l){return a(l),o.return()}},{highWaterMark:2})},Ey=64*1024,{isFunction:Na}=M,yH=(({Request:e,Response:t})=>({Request:e,Response:t}))(M.global),{ReadableStream:Ty,TextEncoder:xy}=M.global,Oy=(e,...t)=>{try{return!!e(...t)}catch{return!1}},vH=e=>{e=M.merge.call({skipUndefined:!0},yH,e);const{fetch:t,Request:n,Response:r}=e,o=t?Na(t):typeof fetch=="function",s=Na(n),i=Na(r);if(!o)return!1;const a=o&&Na(Ty),l=o&&(typeof xy=="function"?(p=>g=>p.encode(g))(new xy):async p=>new Uint8Array(await new n(p).arrayBuffer())),u=s&&a&&Oy(()=>{let p=!1;const g=new n(xt.origin,{body:new Ty,method:"POST",get duplex(){return p=!0,"half"}}).headers.has("Content-Type");return p&&!g}),c=i&&a&&Oy(()=>M.isReadableStream(new r("").body)),f={stream:c&&(p=>p.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!f[p]&&(f[p]=(g,y)=>{let b=g&&g[p];if(b)return b.call(g);throw new de(`Response type '${p}' is not supported`,de.ERR_NOT_SUPPORT,y)})});const d=async p=>{if(p==null)return 0;if(M.isBlob(p))return p.size;if(M.isSpecCompliantForm(p))return(await new n(xt.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if(M.isArrayBufferView(p)||M.isArrayBuffer(p))return p.byteLength;if(M.isURLSearchParams(p)&&(p=p+""),M.isString(p))return(await l(p)).byteLength},h=async(p,g)=>{const y=M.toFiniteNumber(p.getContentLength());return y??d(g)};return async p=>{let{url:g,method:y,data:b,signal:v,cancelToken:m,timeout:_,onDownloadProgress:S,onUploadProgress:E,responseType:w,headers:A,withCredentials:O="same-origin",fetchOptions:L}=IS(p),N=t||fetch;w=w?(w+"").toLowerCase():"text";let k=hH([v,m&&m.toAbortSignal()],_),F=null;const G=k&&k.unsubscribe&&(()=>{k.unsubscribe()});let $;try{if(E&&u&&y!=="get"&&y!=="head"&&($=await h(A,b))!==0){let ae=new n(g,{method:"POST",body:b,duplex:"half"}),be;if(M.isFormData(b)&&(be=ae.headers.get("content-type"))&&A.setContentType(be),ae.body){const[Qe,ye]=_y($,Ml(wy(E)));b=Cy(ae.body,Ey,Qe,ye)}}M.isString(O)||(O=O?"include":"omit");const I=s&&"credentials"in n.prototype,W={...L,signal:k,method:y.toUpperCase(),headers:A.normalize().toJSON(),body:b,duplex:"half",credentials:I?O:void 0};F=s&&new n(g,W);let H=await(s?N(F,L):N(g,W));const J=c&&(w==="stream"||w==="response");if(c&&(S||J&&G)){const ae={};["status","statusText","headers"].forEach(ge=>{ae[ge]=H[ge]});const be=M.toFiniteNumber(H.headers.get("content-length")),[Qe,ye]=S&&_y(be,Ml(wy(S),!0))||[];H=new r(Cy(H.body,Ey,Qe,()=>{ye&&ye(),G&&G()}),ae)}w=w||"text";let pe=await f[M.findKey(f,w)||"text"](H,p);return!J&&G&&G(),await new Promise((ae,be)=>{RS(ae,be,{data:pe,headers:Ft.from(H.headers),status:H.status,statusText:H.statusText,config:p,request:F})})}catch(I){throw G&&G(),I&&I.name==="TypeError"&&/Load failed|fetch/i.test(I.message)?Object.assign(new de("Network Error",de.ERR_NETWORK,p,F),{cause:I.cause||I}):de.from(I,I&&I.code,p,F)}}},bH=new Map,NS=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,s=[r,o,n];let i=s.length,a=i,l,u,c=bH;for(;a--;)l=s[a],u=c.get(l),u===void 0&&c.set(l,u=a?new Map:vH(t)),c=u;return u};NS();const Ch={http:jF,xhr:dH,fetch:{get:NS}};M.forEach(Ch,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ay=e=>`- ${e}`,_H=e=>M.isFunction(e)||e===null||e===!1;function wH(e,t){e=M.isArray(e)?e:[e];const{length:n}=e;let r,o;const s={};for(let i=0;i<n;i++){r=e[i];let a;if(o=r,!_H(r)&&(o=Ch[(a=String(r)).toLowerCase()],o===void 0))throw new de(`Unknown adapter '${a}'`);if(o&&(M.isFunction(o)||(o=o.get(t))))break;s[a||"#"+i]=o}if(!o){const i=Object.entries(s).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let a=n?i.length>1?`since :
|
||
`+i.map(Ay).join(`
|
||
`):" "+Ay(i[0]):"as no adapter specified";throw new de("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o}const LS={getAdapter:wH,adapters:Ch};function Pu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new la(null,e)}function Py(e){return Pu(e),e.headers=Ft.from(e.headers),e.data=Au.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),LS.getAdapter(e.adapter||aa.adapter,e)(e).then(function(r){return Pu(e),r.data=Au.call(e,e.transformResponse,r),r.headers=Ft.from(r.headers),r},function(r){return $S(r)||(Pu(e),r&&r.response&&(r.response.data=Au.call(e,e.transformResponse,r.response),r.response.headers=Ft.from(r.response.headers))),Promise.reject(r)})}const jS="1.13.4",Pc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Pc[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const $y={};Pc.transitional=function(t,n,r){function o(s,i){return"[Axios v"+jS+"] Transitional option '"+s+"'"+i+(r?". "+r:"")}return(s,i,a)=>{if(t===!1)throw new de(o(i," has been removed"+(n?" in "+n:"")),de.ERR_DEPRECATED);return n&&!$y[i]&&($y[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,i,a):!0}};Pc.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function SH(e,t,n){if(typeof e!="object")throw new de("options must be an object",de.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const a=e[s],l=a===void 0||i(a,s,e);if(l!==!0)throw new de("option "+s+" must be "+l,de.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new de("Unknown option "+s,de.ERR_BAD_OPTION)}}const tl={assertOptions:SH,validators:Pc},On=tl.validators;let fo=class{constructor(t){this.defaults=t||{},this.interceptors={request:new vy,response:new vy}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
||
`+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=wo(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&tl.assertOptions(r,{silentJSONParsing:On.transitional(On.boolean),forcedJSONParsing:On.transitional(On.boolean),clarifyTimeoutError:On.transitional(On.boolean)},!1),o!=null&&(M.isFunction(o)?n.paramsSerializer={serialize:o}:tl.assertOptions(o,{encode:On.function,serialize:On.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),tl.assertOptions(n,{baseUrl:On.spelling("baseURL"),withXsrfToken:On.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=s&&M.merge(s.common,s[n.method]);s&&M.forEach(["delete","get","head","post","put","patch","common"],p=>{delete s[p]}),n.headers=Ft.concat(i,s);const a=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let c,f=0,d;if(!l){const p=[Py.bind(this),void 0];for(p.unshift(...a),p.push(...u),d=p.length,c=Promise.resolve(n);f<d;)c=c.then(p[f++],p[f++]);return c}d=a.length;let h=n;for(;f<d;){const p=a[f++],g=a[f++];try{h=p(h)}catch(y){g.call(this,y);break}}try{c=Py.call(this,h)}catch(p){return Promise.reject(p)}for(f=0,d=u.length;f<d;)c=c.then(u[f++],u[f++]);return c}getUri(t){t=wo(this.defaults,t);const n=kS(t.baseURL,t.url,t.allowAbsoluteUrls);return OS(n,t.params,t.paramsSerializer)}};M.forEach(["delete","get","head","options"],function(t){fo.prototype[t]=function(n,r){return this.request(wo(r||{},{method:t,url:n,data:(r||{}).data}))}});M.forEach(["post","put","patch"],function(t){function n(r){return function(s,i,a){return this.request(wo(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}fo.prototype[t]=n(),fo.prototype[t+"Form"]=n(!0)});let CH=class MS{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(a=>{r.subscribe(a),s=a}).then(o);return i.cancel=function(){r.unsubscribe(s)},i},t(function(s,i,a){r.reason||(r.reason=new la(s,i,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new MS(function(o){t=o}),cancel:t}}};function EH(e){return function(n){return e.apply(null,n)}}function TH(e){return M.isObject(e)&&e.isAxiosError===!0}const Qf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Qf).forEach(([e,t])=>{Qf[t]=e});function DS(e){const t=new fo(e),n=mS(fo.prototype.request,t);return M.extend(n,fo.prototype,t,{allOwnKeys:!0}),M.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return DS(wo(e,o))},n}const Ge=DS(aa);Ge.Axios=fo;Ge.CanceledError=la;Ge.CancelToken=CH;Ge.isCancel=$S;Ge.VERSION=jS;Ge.toFormData=Ac;Ge.AxiosError=de;Ge.Cancel=Ge.CanceledError;Ge.all=function(t){return Promise.all(t)};Ge.spread=EH;Ge.isAxiosError=TH;Ge.mergeConfig=wo;Ge.AxiosHeaders=Ft;Ge.formToJSON=e=>PS(M.isHTMLForm(e)?new FormData(e):e);Ge.getAdapter=LS.getAdapter;Ge.HttpStatusCode=Qf;Ge.default=Ge;const{Axios:B8,AxiosError:U8,CanceledError:F8,isCancel:H8,CancelToken:W8,VERSION:z8,all:V8,Cancel:q8,isAxiosError:G8,spread:K8,toFormData:J8,AxiosHeaders:Y8,HttpStatusCode:X8,formToJSON:Q8,getAdapter:Z8,mergeConfig:e3}=Ge,xH={};var OH={};function AH(){const e=globalThis.__BASE_URL__,t=xH?.NUXT_PUBLIC_NODE_BASE_URL||OH.NUXT_PUBLIC_NODE_BASE_URL||"";return e??t}function PH(e){return e?e.startsWith("/")?e:`/${e}`:"/"}const Jt=Ge.create({headers:{"Content-Type":"application/json",Accept:"application/json"}});Jt.interceptors.request.use(e=>{const t=AH();t?e.baseURL=t:console.warn("[axios] BASE_URL is empty; request may fail"),e.url&&(e.url=PH(e.url));const n=$c();return n&&e.headers&&(e.headers.Authorization=`Bearer ${n}`),e},e=>Promise.reject(e));Jt.interceptors.response.use(e=>e.data,e=>{const t=e?.response,n=e?.config??{},r=t?.data;if(r?.code&&$H(r,n),t&&t.status===401)try{$c()&&(WS(),window.location.assign("/auth/login"))}catch{}return Promise.reject(e)});function $H(e,t){const n=We(t,"meta.errorMessage","message");if(n==="none")return;(o=>{cn.error(o)})(e?.message??"خطای نامشخص")}const Pe={post(e,t,n){return Jt.post(e,t,n)},request(e){return Jt.request(e)},get(e,t){return Jt.get(e,t)},delete(e,t){return Jt.delete(e,t)},head(e,t){return Jt.head(e,t)},options(e,t){return Jt.options(e,t)},put(e,t,n){return Jt.put(e,t,n)},patch(e,t,n){return Jt.patch(e,t,n)},postForm(e,t,n){return Jt.postForm(e,t,n)},putForm(e,t,n){return Jt.putForm(e,t,n)},patchForm(e,t,n){return Jt.patchForm(e,t,n)}},RH=async()=>await Pe.get("/auth/me"),t3=async(e,t)=>await Pe.post("/auth/login",{email:e,password:t}),n3=async(e,t="login")=>await Pe.post("/auth/generate-otp",{phone:e,type:t}),r3=async(e,t)=>await Pe.post("/auth/verify-otp",{phone:e,otp:t}),kH=async e=>await Pe.post("/auth/set-password",{password:e}),o3=async(e,t,n)=>await Pe.post("/auth/forget-password",{phone:e,otp:t,new_password:n}),s3=async e=>await Pe.post("/auth/set-birthday",{birthday:e}),i3=async(e,t)=>await Pe.post("/auth/set-names",{first_name:e,last_name:t}),Ry=async e=>ht.fetch("users","update",{data:e,field:"id",value:e.id??""}),IH=async e=>ht.updateUserDetails(e?.email??void 0,void 0,e?.password??void 0,!1),a3=async e=>{try{delete e?.email;const t=await IH(e);delete e?.password,await Ry(e)}catch(t){t.message==="New password should be different from the old password."&&(delete e?.password,await Ry(e))}},l3=async e=>{await Pe.post("auth/add-customer",e)},BS={};var US={};function $u(){const e=globalThis.__APP_NAME_FA__,t=BS?.NUXT_PUBLIC_APP_NAME_FA||US.NUXT_PUBLIC_NODE_BASE_URL||"";return e??t}function Ru(){const e=globalThis.__APP_NAME_EN__,t=BS?.NUXT_PUBLIC_APP_NAME_FA||US.NUXT_PUBLIC_NODE_BASE_URL||"";return e??t}const ky=e=>({helloworld:{fa:"سلام دنیا",en:"hello word"},montech:{fa:"منتک",en:"Montech"},version:{fa:"نسخه",en:"Version"},welcomePleaseInputPhone:{fa:"لطفا برای ورود یا ثبت نام شماره موبایل خود را وارد کنید.",en:"Please input your phone for login or register."},phone:{fa:"شماره تلفن",en:"Phone number"},placeHolderPhone:{fa:"شماره تلفن، نام کاربری یا ایمیل",en:"Phone number, username, or email"},placeHolderPassword:{fa:"گذرواژه",en:"Password"},or:{fa:"یا",en:"OR"},phoneIsTakenBefore:{fa:"این شماره تلفن قبلا استفاده شده است",en:"Phone is taken before"},forgetPassword:{fa:"گذرواژه خود را فراموش کرده اید؟",en:"Forgot password?"},noAccount:{fa:"حساب کاربری ندارید؟",en:"Don't have an account?"},signUp:{fa:"ثبت نام",en:"Sign up"},loginButton:{fa:"ورود",en:"Log in"},registerAgree:{fa:`با شرایط و سیاست های ${$u()} موافقت کنید`,en:`Agree to ${Ru()}'s terms and policies`},registerBirthday:{fa:"تولدت کیه؟",en:"What's your birthday?"},registerName:{fa:"اسمت چیه؟",en:"What's your name?"},registerPassword:{fa:"رمز عبور ایجاد کنید",en:"Create a password"},registerOtp:{fa:"کد تایید را وارد کنید",en:"Enter the confirmation code"},registerMobile:{fa:"شماره موبایلت چنده؟",en:"What's your mobile number?"},registerAgreeDescription:{fa:`با ضربه زدن روی موافقم، با ایجاد یک حساب کاربری و شرایط ${$u()}، خط مشی رازداری و خط مشی کوکی ها موافقت می کنید. خطمشی رازداری روشهایی را توضیح میدهد که ما میتوانیم از اطلاعاتی که هنگام ایجاد حساب جمعآوری میکنیم استفاده کنیم. به عنوان مثال، ما از این اطلاعات برای ارائه، شخصی سازی و بهبود محصولات خود از جمله تبلیغات استفاده می کنیم.`,en:` By tapping I agree, you agree to create an account and to ${Ru()}'s Terms, Privacy Policy and Cookies Policy. The Privacy Policy describes the ways we can use the information we collect when you create an account. For example, we use this information to provide, personalize and improve our products, including ads.`},registerBirthdayDescription:{fa:"از تاریخ تولد خود استفاده کنید، حتی اگر این حساب برای یک تجارت، یک حیوان خانگی یا چیز دیگری باشد. هیچ کس این را نخواهد دید مگر اینکه شما آن را به اشتراک بگذارید.",en:"Use your own birthday, even if this account is for a business, a pet or something else. No one will see this unless you choose to share it."},registerNameDescription:{fa:"نامی که میخواهید به کاربران نمایش داده شود را وارد کنید.",en:"Input the name that you want to show users."},firstNamePlaceholder:{fa:"نام خود را وارد کنید",en:"Please input your first name"},editImage:{fa:"ویرایش تصویر",en:"Edit Image"},lastNamePlaceholder:{fa:"نام خانوادگی خود را وارد کنید",en:"Please input your last name"},notExitUser:{fa:"کاربری با این اطلاعات وجود ندارد",en:"Not Exist user with this info."},invalidLogin:{fa:"اطلاعات وارد شده صحیح نمیباشد.",en:"Invalid login credentials"},loginFailed:{fa:"خطا در ورود",en:"login failed"},registerPasswordDescription:{fa:"یک رمز عبور با حداقل 6 حرف یا عدد ایجاد کنید. باید چیزی باشد که دیگران نمی توانند حدس بزنند.",en:"Create a password with at least 6 letters or numbers. It should be something others can't guess."},registerOtpDescription:{fa:`برای تأیید حساب خود، کد 5 رقمی را که از طریق پیامک به ${e} ارسال کردیم وارد کنید.`,en:`To confirm your account, enter the 5-digit code we sent via SMS to ${e}`},registerMobileDescription2:{fa:"ممکن است برای اهداف امنیتی و ورود به سیستم اعلان های پیامکی از ما دریافت کنید.",en:"You may receive SMS notifications from us for security and login purposes."},registerMobileDescription1:{fa:"شماره موبایلی که می توان با شما تماس گرفت را وارد کنید. هیچ کس شماره شما را را در نمایه شما نخواهد دید.",en:"Enter the mobile number where you can be contacted. No one will see this on your profile."},iHaveAccount:{fa:"حساب کاربری دارم",en:"I already have an account"},password:{fa:"پسورد",en:"Password"},next:{fa:"بعدی",en:"Next"},iAgree:{fa:"قبول میکنم",en:"I agree"},confirmButton:{fa:"ثبت کد",en:"Submit code"},required:{fa:"پر کردن مورد بالا الزامی است",en:"Please input required field"},requiredTitle:{fa:`پر کردن ${e} الزامی است`,en:`Field ${e} is required`},requiredLenTitle:{fa:` تعداد کاراکتر ${e[0]}باید ${e[1]} عدد باشد`,en:`The count of ${e[0]} must be ${e[1]} characters`},requiredLen:{fa:`تعداد کاراکتر باید ${e} عدد باشد`,en:`The count of characters must be ${e}`},confirmCode1:{fa:' کد تایید ارسال شده به شماره "',en:'Please input confirmation code sent to "'},confirmCode2:{fa:'" را وارد کنید.',en:'".'},editPhone:{fa:"ویرایش شماره موبایل",en:"Edit phone number"},allUsers:{fa:"همه کاربران",en:"All users"},resendCode1:{fa:"ارسال مجدد کد در ",en:"Resend code in "},resendCode2:{fa:" دیگر",en:""},detail:{fa:"جزئیات",en:"Detail"},isExist:{fa:"موجودی",en:"Is Exist"},pleaseInputZip:{fa:"کد پستی را وارد نمایید",en:"Please input zip"},resendCodeButton:{fa:" ارسال مجدد",en:"Resend code"},explainName:{fa:"برای استفاده از نام کاربر، کافیست به جای نام %name بگذارید.",en:"For using name of user, please add %name instead of user's name."},explainNameAttention:{fa:"توجه کنید برای کاربر هایی که شماره آنها وارد شده است، به عنوان پیشفرض از واژه (کاربر) استفاده خواهد شد.",en:"Note that for users whose numbers have been entered, the word (کاربر) will be used as the default."},remainderMessage:{fa:"موجودی پیامکی",en:"SMS balance"},remainderMessageError:{fa:"موجودی پیامکی شما به اندازه کافی نمیباشد.",en:"Your SMS balance is not Enough"},confirmInformation:{fa:"تکمیل اطلاعات",en:"Complete profile"},selectDate:{fa:"انتخاب تاریخ",en:"Select date"},inputInformationPls:{fa:"لطفا برای تکمیل ثبت نام اطلاعات زیر را وارد کنید",en:"Please enter the following information to complete the registration."},sendMessage:{fa:"ارسال پیام",en:"Send message"},comments:{fa:"نظرات",en:"Comments"},comment:{fa:"نظر",en:"Comment"},less:{fa:"کمتر",en:"less"},more:{fa:"بیشتر",en:"more"},post:{fa:"پست",en:"Post"},story:{fa:"استوری",en:"Story"},story2:{fa:"استوری",en:"STORY"},productExcel:{fa:"اکسل محصولات",en:"PRODUCT EXCEL"},newPost:{fa:"پست جدید",en:"New post"},tapPlusToAdd:{fa:"لطفا برای وارد کردن عکس بر روی + بزنید.",en:"Please tap + to add."},addOriginalMedia:{fa:"لطفا عکس اصلی را وارد کنید.",en:"Please enter the original media."},addAtLeastOneMedia:{fa:"لطفا حداقل یک عکس یا فیلم وارد کنید.",en:"Please input at least one media."},addACaption:{fa:"زیرنویس را اضافه کنید...",en:"Add a caption..."},productInformation:{fa:"اطلاعات محصول",en:"Product information"},moreInformation:{fa:"اطلاعات بیشتر",en:"More information"},showAdvancedSettings:{fa:"نمایش تنظیمات پیشرفته",en:"Show Advanced Settings"},unShowAdvancedSettings:{fa:"عدم نمایش تنظیمات پیشرفته",en:"UnShow Advanced Settings"},selectAnOption:{fa:"یک مورد را انتخاب کنید",en:"Please select an item"},selectUsers:{fa:"لطفا کاربران را انتخاب کنید",en:"Please select users"},addMessage:{fa:"افزودن پیام",en:"Add message"},productCode:{fa:"کد محصول",en:"Product Code"},users:{fa:"کاربران",en:"Users"},messagesList:{fa:"لیست پیام ها",en:"Messages list"},FaName:{fa:"نام فارسی",en:"Fa name"},EnName:{fa:"نام انگلیسی",en:"En name"},brand:{fa:"برند",en:"Brand"},brands:{fa:"برندها",en:"Brands"},category:{fa:"دسته بندی",en:"Category"},subcategory:{fa:"زیر دسته",en:"Subcategory"},categories:{fa:"دسته بندی ها",en:"Categories"},pricing:{fa:"قیمت گذاری",en:"Pricing"},userHaveAccount:{fa:"در حال حاظر شما بااین شماره حساب کاربری دارید.",en:"You already have account with this phone"},userNotHaveAccount:{fa:"حسابی با این اطلاعات وجود ندارد.",en:"Dont found account with this info"},minPassIs6:{fa:"حداقل 6 کاراکتر برای رمز عبور لازم است.",en:"A minimum of 6 characters is required for the password."},pricingType:{fa:"نوع قیمت گذاری",en:"Pricing type"},easy:{fa:"ساده",en:"Easy"},easyDes:{fa:"اگر این محصول بدون تنوع می باشد",en:"if this product is without variety"},variant:{fa:"متغیر",en:"Variant"},goldGramPrice:{fa:"قیمت گرم طلا",en:"Gold gram price"},theOperationEncounteredAnError:{fa:"عملیات با خطا مواجه شد.",en:"The operation encountered an error."},silverGramPrice:{fa:"قیمت گرم نقره",en:"Silver gram price"},variantDes:{fa:"اگر این محصول دارای تنوع رنگبندی، سایزبندی و... می باشد",en:"If this product has a variety of colors, sizes, etc."},price:{fa:"قیمت",en:"Price"},count:{fa:"تعداد",en:"Count"},pack:{fa:"بسته بندی",en:"Pack"},single:{fa:"تکی",en:"Single"},box:{fa:"کارتنی",en:"box"},numberInCarton:{fa:"عدد در کارتون",en:"number in carton"},seo:{fa:"سئو",en:"SEO"},seoTitle:{fa:"عنوان سئو",en:"SEO title"},meta:{fa:"متا",en:"Meta"},aboutProduct:{fa:"درباره محصول",en:"About product"},attributes:{fa:"ویژگی ها",en:"Attributes"},productAttributes:{fa:"ویژگی های محصول",en:"Product Attributes"},introducingAttributes:{fa:`با معرفی ویژگیهای محصول، محصولات خود را به همراه تنوعها در سایت نمایش دهید
|
||
و با ایجاد انتخابهای بیشتر برای بازدیدکنندگان شانس فروش از سایت را افزایش دهید.`,en:`By introducing product features,
|
||
display your products along with variations on the site and increase
|
||
the chances of sales from the site by creating more choices for visitors.`},pleaseSelectAtLeastOneOption:{fa:"لطفا حداقل یک مورد وارد کنید",en:"Please select at least one option"},selectAttribute:{fa:"انتخاب صفت",en:"Select attribute"},storeOrders:{fa:"سفارشات فروشگاه",en:"Store orders"},selectFeature:{fa:"انتخاب ویژگی",en:"Select Feature"},featureName:{fa:"نام ویژگی",en:"Feature name"},newFeature:{fa:"ویژگی جدید",en:"New feature"},pleaseEnter:{fa:"ویژگی جدید",en:"New feature"},searchFeatureOrAddNewInList:{fa:"ویژگی را جستجو کنید یا داخل لیست اضافه کنید",en:"Search feature or add new in list"},items:{fa:"مقادیر",en:"Items"},pleaseSelectItems:{fa:"لطفا مقادیر را وارد کنید",en:"Please select items"},showInProductPage:{fa:"نشان دادن در صفحه محصول",en:"Show in product page"},showInVariants:{fa:"نشان دادن در متغیر ها",en:"Show in variants"},variants:{fa:"متغیر ها",en:"Variants"},addVariant:{fa:"افزودن متغیر",en:"Add variant"},chooseDefaultVariant:{fa:"انتخاب متغیر پیشفرض",en:"Choose default variant"},pleaseSelectAnOption:{fa:"یک مورد را انتخاب کنید",en:"Please select an option"},code:{fa:"کد",en:"Code"},stock:{fa:"موجودی",en:"Stock "},toman:{fa:"تومان",en:"Toman "},rial:{fa:"ریال",en:"Rials "},product:{fa:"محصول",en:"Product "},product2:{fa:"محصول",en:"PRODUCT "},newProduct:{fa:"محصول جدید",en:"New product "},newStory:{fa:"استوری جدید",en:"New story "},language:{fa:"زبان",en:"Language"},persian:{fa:"فارسی",en:"Persian"},english:{fa:"انگلیسی",en:"English"},selectYourLanguage:{fa:"لطفا زبان خود را انتخاب کنید",en:"Select your language"},products:{fa:"محصولات",en:"Products"},orders:{fa:"سفارشات",en:"Orders"},customers:{fa:"مشتریان",en:"Customers"},editProfile:{fa:"ویرایش پروفایل",en:"Edit profile"},shareStore:{fa:"اشتراک گذاری پروفایل",en:"Share store"},new:{fa:"جدید",en:"New"},details:{fa:"جزئیات",en:"Details"},caption:{fa:"توضیحات",en:"Caption"},addToCart:{fa:"افزودن به سبد خرید",en:"Add to cart"},inStock:{fa:"موجود",en:"In stock"},outOfStock:{fa:"ناموجود",en:"Out of Stock"},pleaseCompleteAllSelects:{fa:"لطفا ویژگی درخواستی را تکمیل کنید",en:"Please complete all selects"},information:{fa:"اطلاعات",en:"Information"},cart:{fa:"سبد خرید",en:"Cart"},address:{fa:"آدرس",en:"Address"},payment:{fa:"پرداخت",en:"Payment"},mainImage:{fa:"عکس اصلی",en:"Main image"},subImage:{fa:"عکس فرعی",en:"Sub image"},sumOfCart:{fa:"جمع سبد خرید",en:"Sum of cart"},completeOrder:{fa:"تکمیل سفارش",en:"Complete order"},submitOrder:{fa:"ثبت سفارش",en:"Submit order"},selectAddress:{fa:"آدرس تحویل را انتخاب نمایید",en:"Select delivery address"},selectGateway:{fa:"شیوه پرداخت را انتخاب کنید",en:"Select Gateway"},orderSubmitted:{fa:"سفارش شما با موفقیت ثبت شد",en:"Order submitted successfully"},productAddedToCart:{fa:"محصول به سبد خرید اضافه شد",en:"Product added to cart"},pleaseCompleteLastCart:{fa:"لطفا سبد خرید خود با فروشگاه دیگر را تکمیل کنید",en:"Please complete your cart with other store"},cartIsEmpty:{fa:"سبد خرید خالی است",en:"Cart is empty"},orderDeliveryAddress:{fa:"آدرس تحویل سفارش",en:"Order delivery address"},addressNotFound:{fa:"آدرس یافت نشد",en:"Address not found"},changeAddress:{fa:" تغییر آدرس",en:"Change address"},paymentType:{fa:"شیوه پرداخت",en:"Payment type"},onTheSpot:{fa:"در محل",en:"On the spot"},online:{fa:"آنلاین",en:"Online"},chooseAddress:{fa:"انتخاب آدرس",en:"Choose address"},orderItems:{fa:"اقلام سفارش",en:"Order items"},shippingCost:{fa:"هزینه ارسال",en:"Shipping cost"},consumerPrice:{fa:"قیمت مصرف کننده",en:"Consumer price"},totalItems:{fa:"تعداد کل اجناس",en:"Total items"},totalWeight:{fa:"وزن کل",en:"Total weight"},totalGoldWeight:{fa:"وزن کل طلا",en:"Total gold weight"},totalSilverWeight:{fa:"وزن کل نقره",en:"Total silver weight"},yourProfit:{fa:"سود شما",en:"Your profit"},payable:{fa:"مبلغ قابل پرداخت",en:"Payable"},default:{fa:"پیش فرض",en:"Default"},defaultAddress:{fa:"آدرس پیش فرض",en:"Default address"},edit:{fa:"ویرایش",en:"Edit"},delete:{fa:"حذف",en:"Delete"},example:{fa:"مثال",en:"Example"},areYouSureToDeleteTheAddress:{fa:"آیا مطمئن به حذف آدرس هستید ؟",en:"Are you sure to delete the address?"},areYouSureToDeleteThisStory:{fa:"آیا مطمئن به حذف استوری هستید ؟",en:"Are you sure to delete this story?"},storyAddedSuccessfully:{fa:"استوری با موفقیت بارگذاری شد.",en:"Story added successfully."},yes:{fa:"بله",en:"Yes"},no:{fa:"خیر",en:"No"},noItems:{fa:"بدون مورد",en:"No items"},submitNewAddress:{fa:"ثبت آدرس جدید",en:"Submit new address"},expireTime:{fa:"تاریخ انقضا",en:"Expire time"},search:{fa:"جستجو",en:"Search"},phones:{fa:"جستجو",en:"Phones"},addPhones:{fa:"لطفا شماره تلفن را ثبت کنید",en:"Please add phones"},inventory:{fa:"موجودی",en:"Inventory"},variantCode:{fa:"کد ویژگی",en:"Variant code"},message:{fa:"پیام",en:"Message"},notifications:{fa:"اعلان ها ",en:"Notifications"},startFollow:{fa:"شما را دنبال کرد ",en:"started following you"},likedPost:{fa:"پست شما را پسندید.",en:"liked your post."},follow:{fa:"دنبال کردن",en:"follow"},followed:{fa:"دنبال می کنید",en:"followed"},setting:{fa:"تنظیمات",en:"Setting"},settingAndActivity:{fa:"تنظیمات",en:"Setting and activity"},manager:{fa:"مدیر",en:"Manager"},managers:{fa:"مدیران",en:"Managers"},logout:{fa:"خروج",en:"Logout"},howYouUseInstagram:{fa:`چگونگی استفاده از ${$u()}`,en:`How you use ${Ru()}`},howOthersCanInteractWithYou:{fa:"چگونگی تعامل دیگران با شما",en:"How others can interact with you"},theme:{fa:"نمایه",en:"Theme"},priceUnit:{fa:"واحد پول",en:"Price unit"},night:{fa:"شب",en:"Night"},light:{fa:"روز",en:"Light"},image:{fa:"تصویر",en:"Image"},title:{fa:"عنوان",en:"Title"},submit:{fa:"ثبت",en:"Submit"},addBrand:{fa:"افزودن برند",en:"Add brand"},sms:{fa:"پیامک",en:"SMS"},notification:{fa:"نوتیفیکیشن",en:"Notification"},editBrand:{fa:"ویرایش برند",en:"Edit brand"},editedSuccessfully:{fa:"با موفقیت ویرایش شد",en:"Edited successfully"},doneMessage:{fa:"با موفقیت انجام شد",en:"Done successfully"},addedSuccessfully:{fa:"با موفقیت افزوده شد",en:"Added successfully"},deletedSuccessfully:{fa:"با موفقیت حذف شد",en:"Deleted successfully"},errorInAction:{fa:"عملیات ناموفق",en:"Unsuccessful action"},updatedSuccessfully:{fa:"با موفقیت ویرایش شد",en:"Updated successfully"},errorInSubmittingData:{fa:"خطا در ثبت اطلاعات",en:"Error in submitting data"},areYouSureToDeleteThisBrand:{fa:"آیا از حذف دسته بندی اطمینان دارید؟",en:"Are you sure to delete this brand?"},areYouSureToDeleteThisCategory:{fa:"آیا از حذف دسته بندی اطمینان دارید؟",en:"Are you sure to delete this category?"},areYouSureToDeleteThisProduct:{fa:"آیا از حذف این محصول اطمینان دارید؟",en:"Are you sure to delete this product?"},areYouSureToDeleteThisComment:{fa:"آیا از حذف این نظر اطمینان دارید؟",en:"Are you sure to delete this comment?"},addCategory:{fa:"افزودن دسته بندی",en:"Add category"},editCategory:{fa:"ویرایش دسته بندی",en:"Edit category"},addDiscount:{fa:"افزودن تخفیف",en:"Add discount"},editDiscount:{fa:"ویرایش تخفیف",en:"Edit discount"},description:{fa:"توضیحات",en:"Description"},chooseParentCategory:{fa:"انتخاب دسته بندی والد",en:"Choose parent category"},addAttribute:{fa:"افزودن ویژگی",en:"Add attribute"},desAttribute:{fa:"این محصول تنوع رنگبندی و سایزبندی و ... دارد؟ از این بخش میتونید آنها را اضافه کنید.",en:"Does this product have a variety of colors, sizes, etc? You can add them from this section."},editAttribute:{fa:"ویرایش ویژگی",en:"Edit attribute"},add:{fa:"افزودن",en:"Add"},noAttribute:{fa:"بدون ویژگی",en:"No attribute"},update:{fa:"به روزرسانی کنید",en:"Update"},startDate:{fa:"تاریخ شروع",en:"Start date"},endDate:{fa:"تاریخ پایان",en:"End date"},useCode:{fa:"استفاده از کد",en:"Use code"},isActive:{fa:"فعال است",en:"Is active"},discountType:{fa:"نوع تخفیف",en:"Discount type"},user:{fa:"کاربر",en:"User"},percentageMustBeLessThan100:{fa:"درصد تخفیف نمیتواند بیشتر از 100 باشد",en:"Percentage cannot be greater than 100"},amountMustBeGreaterThanZero:{fa:"مقدار باید بیشتر از صفر باشد",en:"Amount must be greater than zero"},discountCodeIsRequired:{fa:"وقتی استفاده از کد فعال است، کد تخفیف الزامی است",en:"Discount code is required when use code is enabled"},endDateMustBeAfterStartDate:{fa:"تاریخ پایان نمیتواند قبل از تاریخ شروع باشد",en:"End date cannot be before start date"},pleaseSelectBrands:{fa:"لطفا حداقل یک برند انتخاب کنید",en:"Please select at least one brand"},pleaseSelectCategories:{fa:"لطفا حداقل یک دستهبندی انتخاب کنید",en:"Please select at least one category"},pleaseSelectUsers:{fa:"لطفا حداقل یک کاربر انتخاب کنید",en:"Please select at least one user"},pleaseSelectProducts:{fa:"لطفا حداقل یک محصول انتخاب کنید",en:"Please select at least one product"},thisFieldIsRequired:{fa:"این فیلد الزامی است",en:"This field is required"},errorLoadingData:{fa:"خطا در بارگذاری اطلاعات",en:"Error loading data"},operationFailed:{fa:"عملیات با خطا مواجه شد",en:"Operation failed"},discountCreatedSuccessfully:{fa:"تخفیف با موفقیت ایجاد شد",en:"Discount created successfully"},discountUpdatedSuccessfully:{fa:"تخفیف با موفقیت ویرایش شد",en:"Discount updated successfully"},pleaseLoginOrRegister:{fa:"برای استفاده از تمامی ویژگی های نرم افزار، لطفا وارد شوید یا ثبت نام کنید.",en:"For using all features, please login or register."},loginOrRegister:{fa:"ورود یا ثبت نام",en:"Login or register"},totalUsageLimit:{fa:"تعداد دفعات قابل استفاده (کل)",en:"Total Usage Limit"},totalUsageLimitDesc:{fa:"محدودیت کل استفاده از این تخفیف توسط همه کاربران",en:"Total usage limit for this discount by all users"},perUserUsageLimit:{fa:"تعداد دفعات قابل استفاده (هر کاربر)",en:"Per User Usage Limit"},perUserUsageLimitDesc:{fa:"محدودیت استفاده از این تخفیف برای هر کاربر",en:"Usage limit for this discount per user"},enterTotalCount:{fa:"تعداد کل را وارد کنید",en:"Enter total count"},enterPerUserCount:{fa:"تعداد برای هر کاربر را وارد کنید",en:"Enter count per user"},zarinpal:{fa:"زرین پال",en:"Zarinpal"},digipay:{fa:"دیجی پی",en:"Digipay"},inpart:{fa:"در محل",en:"Inpart"},payping:{fa:"پی پینگ",en:"Payping"},snappay:{fa:"اسنپ پی",en:"Snappay"},sepal:{fa:"سیپال",en:"Sepal"},zibal:{fa:"زیبال",en:"Zibal"},codeZarinpal:{fa:"کد زرین پال",en:"Zarinpal code"},codeDigipay:{fa:"کد دیجی پی",en:"Digipay code"},codePayping:{fa:"کد پی پینگ",en:"Payping code"},codeSnappay:{fa:"کد اسنپ پی",en:"Snappay code"},codeSepal:{fa:"کد سی پال",en:"Sepal code"},codeZibal:{fa:"کد زیبال",en:"Zibal code"},gateways:{fa:"درگاه ها",en:"Gateways"},unlimited:{fa:"بینهایت",en:"Unlimited"},enterLimitInFieldBelow:{fa:"تعداد را در فیلد پایین مشخص کنید",en:"Enter limit in field below"},confirmLogout:{fa:"آیا مطمئنید که میخواهید از اکانت خارج شوید؟",en:"Do you want to log out of your account?"},create:{fa:"ایجاد",en:"Create"},isNumber:{fa:"لطفا عدد وارد کنید",en:"Please input number"},outSideRange:{fa:"لطفا عدد را بین 0 تا100 انتخاب کنید",en:"Outside the range of 0 to 100"},discountAmountIsGreater:{fa:"مبلغ تخفیف از مبلغ اصلی بیشتر است.",en:"The discount amount is greater than the original amount."},province:{fa:"استان",en:"Province"},amount:{fa:"مقدار",en:"amount"},city:{fa:"شهر",en:"City"},fullAddress:{fa:"آدرس کامل",en:"Full address"},addAddress:{fa:"افزودن آدرس",en:"Add address"},editAddress:{fa:"ویرایش آدرس",en:"Edit address"},zip:{fa:"کد پستی",en:"Zip"},bio:{fa:"مشخصات",en:"Bio"},writeYourBio:{fa:"مشخصات خود را بنویسید",en:"Write your bio"},name:{fa:"نام",en:"Name"},birthdate:{fa:"تاریخ تولد",en:"Birthdate"},imageUploader:{fa:"بارگذاری عکس",en:"Image uploader"},email:{fa:"ایمیل",en:"Email"},website:{fa:"وبسایت",en:"Website"},viewProduct:{fa:"نمایش محصول",en:"View product"},newVersionRelease:{fa:"نسخه جدید منتشر شد!",en:"New version released!"},saved:{fa:"ذخیره شده",en:"Saved"},orderNumber:{fa:"شماره سفارش",en:"Order number"},totalPrice:{fa:"جمع مبلغ",en:"Total price"},totalPriceWithoutDiscount:{fa:"جمع مبلغ بدون تخفیف",en:"Total price without discount"},date:{fa:"تاریخ",en:"Date"},goToHomePage:{fa:"رفتن به صفحه اصلی",en:"Go to home page"},sendYourMessageHere:{fa:"پیام خود را بنویسید",en:"Write your message here"},ok:{fa:"تایید",en:"Ok"},cancel:{fa:"انصراف",en:"Cancel"},login:{fa:"ورود",en:"Login"},yourAccount:{fa:"حساب کاربری شما",en:"Your account"},profile:{fa:"حساب کاربری",en:"Profile"},filterProducts:{fa:"فیلتر محصولات",en:"Filter products"},newest:{fa:"جدید ترین",en:"Newest"},popular:{fa:"محبوب ترین",en:"Popular"},bestSeller:{fa:"پرفروش ترین",en:"Best seller"},mostVisited:{fa:"پر بازدید ترین",en:"Most visited"},cheapest:{fa:"ارزان ترین",en:"Cheapest"},mostExpensive:{fa:"گران ترین",en:"Most expensive"},countProducts:{fa:"کالا",en:"items"},theProductImageDidNotLoadCorrectly:{fa:"عکس محصول به درستی بارگزاری نشد",en:"The product image did not load correctly."},messageSeller:{fa:"ارسال پیام به فروشنده",en:"Message seller"},addToCartWillPlaceYourOrderIntoCartAndYouCanCompleteOrderInCartMenu:{fa:"با کلیک بر روی افزودن به سبد خرید، سفارش شما در سبد خرید ثبت خواهد شد و سپس شما میتوانید سفارش خود را در منو سبد خرید تکمیل کنید.",en:"Add to cart will place your order into cart and you can complete order in cart menu."},aboutSeller:{fa:"درباره فروشنده",en:"About seller"},showOrder:{fa:"برو به سفارش",en:"Show order"},placeOrder:{fa:"ثبت سفارش",en:"Place order"},followedByNUsers:{fa:`دنبال شده توسط ${e} کاربر `,en:`Followed by ${e} users`},seller:{fa:"فروشنده",en:"Seller"},orderDetail:{fa:"جزئیات سفارش",en:"Order detail"},orderSummery:{fa:"خلاصه سفارش",en:"Order summery"},status:{fa:"وضعیت",en:"Status"},sortProduct:{fa:"مرتب سازی محصولات",en:"Sort product"},filter:{fa:"فیلتر",en:"Filter"},reset:{fa:"بازنشانی",en:"Reset"},totalAmountPurchased:{fa:"جمع مبلغ خریداری شده",en:"Total amount purchased"},writeAnyThingAboutProduct:{fa:"مطلبی درباره محصول بنویسید",en:"Write any thing about product"},storeConfirmation:{fa:"تایید فروشگاه",en:"Store confirmation"},send:{fa:"ارسال",en:"Send"},delivery:{fa:"تحویل",en:"Delivery"},item2:{fa:"کالا",en:"Items"},paymentDetail:{fa:"جزئیات پرداخت",en:"Payment detail"},profit:{fa:"سود",en:"Profit"},amountPaid:{fa:"��بلغ پرداخت شده",en:"Amount paid"},addStatus:{fa:"افزودن وضعیت",en:"Add status"},editStatus:{fa:"ویرایش وضعیت",en:"Edit status"},IUnderstand:{fa:"متوجه شدم",en:"I understand"},discount:{fa:"تخفیف",en:"Discount"},discounts:{fa:"تخفیف ها",en:"Discounts"},simple:{fa:"ساده",en:"Simple"},percent:{fa:"درصد",en:"Percent"},resetDiscount:{fa:"بازنشانی تخفیف",en:"Reset discount"},disable:{fa:"غیرفعال",en:"Disable"},enable:{fa:"فعال",en:"Enable"},noDiscountsFound:{fa:"هیچ تخفیفی یافت نشد",en:"No discounts found"},clickPlusToAddDiscount:{fa:"برای افزودن تخفیف جدید روی دکمه + کلیک کنید",en:"Click the + button to add a new discount"},deleteDiscount:{fa:"حذف تخفیف",en:"Delete Discount"},areYouSureDeleteDiscount:{fa:"آیا از حذف این تخفیف اطمینان دارید؟ این عملیات قابل بازگشت نیست.",en:"Are you sure you want to delete this discount? This action cannot be undone."},discountDeletedSuccessfully:{fa:"تخفیف با موفقیت حذف شد",en:"Discount deleted successfully"},deleteFailed:{fa:"حذف با خطا مواجه شد",en:"Delete failed"},yourOrders:{fa:"سفارشات شما",en:"Your orders"},firstName:{fa:"نام",en:"First name"},lastName:{fa:"نام خانوادگی",en:"Last name"},active:{fa:"فعال",en:"Active"},inactive:{fa:"غیرفعال",en:"Inactive"},hasCode:{fa:"دارای کد",en:"Has Code"},haveDiscount:{fa:"کد تخفیف داری؟",en:"Have you discount code?"},pleaseInputDiscountCode:{fa:"لطفا کد تخفیف را وارد کنید",en:"Please input discount code"},invalidDiscountCode:{fa:"کد تخفیف نامعتبر است",en:"Invalid discount code"},discountCodeApplied:{fa:"کد تخفیف اعمال شد",en:"Discount code applied"},discountCode:{fa:"کد تخفیف",en:"Discount Code"},codeCopied:{fa:"کد با موفقیت کپی شد",en:"Code copied successfully"},discountCodeRemoved:{fa:"کد تخفیف با موفقیت حذف شد",en:"Discount code removed successfully"},copyFailed:{fa:"کپی کردن ناموفق بود",en:"Copy failed"},appliedTo:{fa:"اعمال شده روی",en:"Applied to"},expired:{fa:"منقضی شده",en:"Expired"},notStarted:{fa:"شروع نشده",en:"Not Started"},finished:{fa:"پایان یافته",en:"Finished"},running:{fa:"در حال اجرا",en:"Running"},pleaseChooseAddress:{fa:"لطفا آدرس را انتخاب کنید",en:"Please choose address"},customer:{fa:"مشتری",en:"Customer"},newMessage:{fa:"پیام جدید",en:"New message"},YouHaveNewMessageFrom:{fa:"شما پیام جدید دارید از",en:"You have new message from"},pleaseInputAllFields:{fa:"لطفا همه مقادیر را وارد کنید",en:"Please input all fields"},show:{fa:"نمایش",en:"Show"},addStory:{fa:"افزودن استوری",en:"Add story"},orderListIsEmpty:{fa:"سفارشی یافت نشد",en:"Order list is empty"},productSavedListIsEmpty:{fa:"محصول ذخیره شده ای یافت نشد",en:"Product saved list is empty"},customerListIsEmpty:{fa:"هیچ مشتری یافت نشد",en:"Customer list is empty"},findYourAccount:{fa:"بازیابی اکانت شما",en:"Find your account"},enterYourPhone:{fa:"شماره تلفن خود را وارد کنید.",en:"Enter your phone."},findAccount:{fa:"بازیابی اکانت",en:"Find account"},verifyCode:{fa:"اعتبار سنجی کد",en:"Verify code"},createNewPassword:{fa:"پسورد جدید بسازید",en:"Create new password"},updatePassword:{fa:"ویرایش پسورد",en:"Update password"},today:{fa:"امروز",en:"Today"},older:{fa:"قدیمی تر",en:"Older"},yesterday:{fa:"دیروز",en:"Yesterday"},last7Days:{fa:"7 روز پیش",en:"Last 7 days"},last30Days:{fa:"30 روز پیش",en:"Last 30 days"},likeText:{fa:" پست شما را پسندید.",en:" liked your post."},commentText:{fa:" درباره پست شما نظر داد.",en:" commented on your post."},orderText:{fa:" سفارش جدیدی ثبت کرد.",en:" submitted new order."},statusText:{fa:" در وضعیت سفارش شما تغییر ایجاد کرد.",en:" changed your order status."},createNewAccount:{fa:"ساخت پروفایل جدید",en:"Create new account"},yourComment:{fa:"نظر شما",en:"Your comment"},newHighLight:{fa:"هایلایت جدید",en:"New highlight"},done:{fa:"ثبت",en:"Done"},productType:{fa:"نوع محصول",en:"Product type"},weight:{fa:"وزن",en:"Weight"},rialFee:{fa:"اجرت ریالی",en:"Rial fee"},fee:{fa:"سود",en:"Fee"},percentFee:{fa:"اجرت درصدی",en:"Percent fee"},productOption:{fa:"ویژگی محصول",en:"Product option"},gram:{fa:"گرم",en:"Gram"},PleaseEnterAtLeastOneVariable:{fa:"لطفا حداقل یک متغیر وارد کنید.",en:"Please enter at least one variable."},PleaseRemoveTheVariableWithDuplicateAttributeInformation:{fa:"لطفا متغیر با اطلاعات ویژگی تکراری را حذف کنید.",en:"Please remove the variable with duplicate attribute information."},PleaseSelectAllVariableAttributeInformation:{fa:"لطفا تمامی اطلاعات ویژگی متغیر را انتخاب کنید.",en:"Please select all variable attribute information."},pleaseEnterAllVariablePriceAndInventoryInformation:{fa:"لطفا تمامی اطلاعات قیمت و موجودی متغیرها را وارد کنید.",en:"Please enter all variable price and inventory information."},SilverTaxAndProfit:{fa:"سود و مالیات نقره",en:"Silver tax and profit"},GoldTaxAndProfit:{fa:"سود و مالیات طلا",en:"Gold tax and profit"},hasTax:{fa:"محاسبه مالیات",en:"Calculate Tax"},specifyTaxAndProfit:{fa:"محاسبه مالیات",en:"Specify tax and profit"},specifyGoldTaxAndProfit:{fa:"محاسبه مالیات طلا",en:"Specify gold tax and profit"},specifySilverTaxAndProfit:{fa:"محاسبه مالیات نقره",en:"Specify silver tax and profit"},auto:{fa:"اتوماتیک",en:"Auto"},manual:{fa:"دستی",en:"Manual"},selectsStory:{fa:"انتخاب استوری",en:"Select Story"},reply:{fa:"پاسخ",en:"Reply"},replyingTo:{fa:"پاسخ به",en:"Replying to"},editComment:{fa:"ویرایش نظر",en:"Edit comment"},addProfile:{fa:"افزودن کاربر",en:"Add profile"},addItem:{fa:"افزودن مورد",en:"Add item"},pleaseEnterAttribute:{fa:"لطفا صفت را وارد کنید",en:"Please enter attribute"},pleaseEnterFeature:{fa:"لطفا ویژگی را وارد کنید",en:"Please enter feature"},viewMoreReplies:{fa:`دیدن ${e} پاسخ بیشتر`,en:`View ${e} more replies`},convertStore:{fa:"فروشنده شو",en:"Convert Store"},requestWasNotApproved:{fa:"درخواست فروشندگی مورد تایید قرار نگرفت",en:"The seller request was not approved."},registeredSalesRequest:{fa:"درخواست فروشندگی ثبت شده",en:"Registered sales request"},registeredSalesRequestConfirmed:{fa:"درخواست فروشندگی تایید شده",en:"Registered sales request Confirmed"},highlight:{fa:"برجسته کردن",en:"Highlight"},addFeatureValue:{fa:"افزودن صفات ویژگی",en:"Add feature value"},submitChanges:{fa:"ثبت تغییرات",en:"Submit changes"},allCollection:{fa:"همه دسته ها",en:"All collection"},storeName:{fa:"نام فروشگاه",en:"Store Name"},idCartPic:{fa:"عکس کارت ملی",en:"Id Cart pic"},telephone:{fa:"شماره ثابت",en:"Store Phone"},confirm:{fa:"تایید",en:"Confirm"},storeRequest:{fa:"درخواست های فروشگاه",en:"Store Requests"},storeRequestSubmit:{fa:"درخواست ساخت فروشکاه شما دریافت شد، منتظر تایید مدیر سیستم بمانید!",en:"Your request to create a shop has been received, wait for approval from the system administrator!"},storeRequestOk:{fa:"تبریک، فروشگاه شما فعال شد. هم اکنون میتوانید با ورود به نرم افزار محصولات خود را اضافه نمایید",en:"Congratulations, your store is activated. You can now log in to the software and add your products."},created:{fa:"ایجاد شده",en:"Created"},deleteVariant:{fa:"حذف متغیر",en:"Delete variant"},editProduct:{fa:"ویرایش محصول",en:"Edit product"},selectProductExcel:{fa:"انتخاب فایل اکسل",en:"Select product excel"},selectedFile:{fa:"فایل انتخاب شده",en:"Selected file"},addOneSheetAtLeast:{fa:"لطفا فایل اکسل محصولات را بارگذاری کنید",en:"please import an product excel file"},setColumns:{fa:"تعیین ستون ها",en:"Set columns"},newProducts:{fa:"محصولات جدید",en:"New products"},pleaseInputNamePriceCount:{fa:"فیلد های نام، قیمت و تعداد اجباری می باشند.",en:"Name, price and count inputs is required."},selectSkill:{fa:"حوزه فعالیت را انتخاب کنید",en:"Select skill"},skill:{fa:"حوزه فعالیت",en:"skill"},close:{fa:"بستن",en:"Close"},highlights:{fa:"هایلایت ها",en:"Highlights"},editCover:{fa:"ویرایش کاور",en:"Edit cover"},stories:{fa:"استوری ها",en:"Stories"},areYouSureToDeleteThisHighlight:{fa:"آیا از حذف این هایلایت اطمینان دارید؟",en:"Are you sure to delete this highlight"},areYouSureToDeleteThisUser:{fa:"آیا از حذف این کاربر اطمینان دارید؟",en:"Are you sure to delete this user"},username:{fa:"نام کاربری",en:"Username"}});async function NH(){return await Pe.post("/config",{})}async function LH(e){const t={"Content-Type":"application/json"},r=tc().public.subscriptionUrl;if(!r||typeof r!="string"||!r.startsWith("http"))return console.error("❌ [Config Error] Subscription URL is invalid or missing:",r),Promise.reject(new Error("Configuration Error: Invalid Subscription URL"));e&&(t["X-Domain"]=e);try{const{data:o}=await Ge.get(r,{headers:t});return o}catch(o){throw console.log("e",o?.response),o}}const jH=async(e,t)=>await Pe.post("/notification/subscribe",{subscription:e,userId:t}),MH=async(e,t)=>await Pe.post("/notification/send-public",{title:e,body:t}),DH=async(e,t,n)=>await Pe.post("/notification/send-private",{title:e,body:t,user_id:n}),BH="$s";function Fe(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[n,r]=e;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(r!==void 0&&typeof r!="function")throw new Error("[nuxt] [useState] init must be a function: "+r);const o=BH+n,s=Ye(),i=Hl(s.payload.state,o);if(i.value===void 0&&r){const a=r();if(Me(a))return s.payload.state[o]=a,a;i.value=a}return i}const nn=Xi("setting",()=>{const e=te("fa"),t=te("light"),n=te(),r=te(!1),o=te(),s=te(!1),i=te(!1),a=te(),l=R(()=>a.value?.config?.find(ye=>ye.key==="gold_price_id")?.value??0),u=R(()=>a.value?.config?.find(ye=>ye.key==="silver_price_id")?.value??0),c=Fe("app-type",()=>""),f=Fe("storage-url",()=>""),d=Fe("storage-upload",()=>""),h=Fe("storage-logo",()=>""),p=Fe("text-header",()=>""),g=Fe("price-header",()=>!1),y=Fe("app-has-silver",()=>!1),b=Fe("app-has-gold",()=>!1),v=Fe("app-milady-date",()=>!1),m=Fe("enamad-url",()=>""),_=Fe("enamad-img-src",()=>""),S=Fe("enamad-code",()=>""),E=Fe("base-url",()=>""),w=Fe("supabase-url",()=>""),A=Fe("supabase-key",()=>""),O=Fe("app-name",()=>({fa:"",en:""})),L=Fe("config-loaded",()=>!1);function N(ye){globalThis.__BASE_URL__=ye||""}function k(ye,ge=!1){return f.value?`${f.value}/${ye}`:""}function F(ye){return h.value?`${h.value}/${ye}`:""}function G(ye){globalThis.__APP_NAME_FA__=ye||""}function $(ye){globalThis.__APP_NAME_EN__=ye||""}function I(ye){globalThis.__APP_TYPE__=ye||""}Se(E,ye=>N(ye),{immediate:!0});async function W(){try{a.value=await NH()}catch(ye){console.error(ye)}if(Ns){let ye=localStorage.getItem("config");ye?(o.value=JSON.parse(ye),e.value=o.value.langMode??"fa",t.value=o.value.themeMode??"light",n.value=pe(a.value?.config[0]?.value??"")):J(),be(),ae()}}async function H(ye){if(L.value){console.log("⚡ [Store] Config already loaded from SSR/Hydration. Skipping fetch.");return}try{const ge=await LH(ye);return c.value=ge?.app_type||"",y.value=ge?.has_silver||!1,b.value=ge?.has_gold||!1,v.value=ge?.milady_date||!1,d.value=ge?.storage_upload||"",f.value=ge?.storage_url||"",h.value=ge?.storage_logo||"",p.value=ge?.text_header||"",g.value=ge?.price_header||!1,m.value=ge?.enamad_url||"",_.value=ge?.enamad_img_src||"",S.value=ge?.enamad_code||"",E.value=ge?.node_url||"",O.value.en=ge?.name_en||"",O.value.fa=ge?.name_fa||"",w.value=ge?.supa_url||"",A.value=ge?.supa_key||"",N(E.value),G(O.value.fa),$(O.value.en),I(c.value),await W(),L.value=!0,ge}catch(ge){throw console.error("❌ [SSR] Failed to load config:",ge),ge}}function J(){o.value={themeMode:t.value,langMode:e.value},localStorage.setItem("config",JSON.stringify(o.value))}function pe(ye,...ge){switch(e.value){case"fa":return We(ky(ge),`${ye}.fa`);case"en":return We(ky(ge),`${ye}.en`)}}Se(t,()=>{be()}),Se(e,()=>{J(),ae(),n.value=pe("rial")}),Se(nu(),()=>{be()});function ae(){i.value=["fa"].includes(e.value),document.dir=i.value?"rtl":"ltr"}function be(){switch(t.value){case"default":ku.value=nu().value,s.value=nu().value;break;case"light":ku.value=!1,s.value=!1;break;case"night":ku.value=!0,s.value=!0;break}J()}function Qe(){r.value=!1}return{getSubscribe:H,useString:pe,getConfig:W,lang:e,isNightStore:s,priceUnit:n,isSeller:r,isRTL:i,themeMode:t,reset:Qe,sellerConfig:a,APP_TYPE:c,APP_HAS_SILVER:y,APP_HAS_GOLD:b,APP_Milady_Date:v,ENAMAD_URL:m,ENAMAD_IMG_SRC:_,ENAMAD_CODE:S,TEXT_HEADER:p,PRICE_HEADER:g,baseURL:E,appName:O,STORAGE_URL:f,STORAGE_UPLOAD:d,STORAGE_LOGO:h,goldPriceId:l,silverPriceId:u,useDataStorage:k,useLogo:F}});let La=null;function Iy(){if(La)return La;const e=Fe("supabase-url").value,t=Fe("supabase-key").value;return(!e||!t)&&console.warn("[supabase] Missing SUPABASE_URL/KEY"),La=JU(e,t),La}const et=new Proxy({},{get(e,t,n){const r=Iy();return Reflect.get(r,t,n)},apply(e,t,n){return Iy()?.apply?.(t,n)}}),ht={async fetch(e,t,n={},r,o){try{let s;switch(t){case"select":{let a=et.from(e).select(n.columns||"*");n.field&&n.value&&(Array.isArray(n.field)&&Array.isArray(n.value)?n.field.forEach((l,u)=>{a=a.eq(l,n.value[u])}):a=a.eq(n.field,n.value)),o?.column&&(a=a.order(o.column,{ascending:o.ascending})),s=await a;break}case"select_group":s=await et.from(e).select(n.columns||"*").in(n.field??"",n.value);break;case"insert":s=await et.from(e).insert(n.data).select("*");break;case"update":s=await et.from(e).update(n.data).eq(n.field??"",n.value).select(n.columns||"*");break;case"delete":{let i=et.from(e).delete();Array.isArray(n.field)&&Array.isArray(n.value)?n.field.forEach((a,l)=>{i=i.eq(a,n.value[l])}):i=i.eq(n.field??"",n.value),s=await i;break}default:throw new Error("Unsupported method")}if(s.error)throw s.error;return s.data}catch(s){throw console.error(r||"Unexpected Supabase Error:",s),UH(s.message),s}},async updateUserDetails(e,t,n,r=!1){try{const o=await et.auth.updateUser({email:e,phone:t});if(n){const s=await kH(n)}if(o.error)throw o.error;return o.data.user}catch(o){throw console.error("Unexpected error while updating user:",o),r&&Yo(o.message),o}},async createUser(e){try{return await et.auth.admin.createUser(e)}catch(t){throw console.error("Unexpected Error:",t),Yo(t),t}},async login(e){try{const t=await et.auth.signInWithPassword(e);if(t.error)throw t.error;return t.data.user}catch(t){throw console.error("Unexpected Login Error:",t),Yo(t.message),t}},async deleteUser(e){try{return await et.auth.admin.deleteUser(e)}catch(t){throw console.error("Unexpected Login Error:",t),Yo(t),t}},async signup(e,t){try{const{user:n,session:r,error:o}=await et.auth.signUp({email:e,password:t});return o?(console.error("Signup Error:",o.message),Yo(o.message),null):{user:n,session:r}}catch(n){return console.error("Unexpected Signup Error:",n),null}},async logout(){try{const{error:e}=await et.auth.signOut();return e?(console.error("Logout Error:",e.message),!1):!0}catch(e){return console.error("Unexpected Logout Error:",e),!1}},getUser(){return et.auth.getUser()},onAuthStateChange(e){et.auth.onAuthStateChange(e)}};function Yo(e){cn.error(e).then(t=>"")}function UH(e){const t=nn();e==='duplicate key value violates unique constraint "users_phone_key"'&&Yo(t.useString("phoneIsTakenBefore"))}async function FH(e,t){const n=nn();Bt.confirm({title:e,icon:P(ta),okText:n.useString("ok"),okType:"danger",centered:!0,cancelText:n.useString("cancel"),async onOk(){try{await t()}catch(r){console.error(r)}},onCancel(){console.log("Cancel")}})}async function c3(e,t,n,r){const o=nn();Bt.confirm({title:e,icon:P(ta),okText:o.useString("ok"),okType:"danger",centered:!0,cancelText:o.useString("cancel"),async onOk(){try{await n(t),r&&await r()}catch(s){console.error(s)}},onCancel(){console.log("Cancel")}})}const Eh=Xi("price",()=>{const e=nn(),t=te([]),n=R(()=>t.value.find(l=>l?.id==e.goldPriceId)?.price),r=R(()=>t.value.find(l=>l?.id==e.silverPriceId)?.price),o=async()=>{const l=await ht.fetch("prices","select");i(l)},s=l=>{const u=t.value.findIndex(c=>c.id===l.id);u>=0?Object.assign(t.value[u],{...l}):t.value.push(l)},i=l=>{l.map(u=>s(u))};return{prices:t,tala18:n,silver:r,getList:o,runWebsocket:()=>{et.channel("realtime:prices").on("postgres_changes",{event:"*",schema:"public",table:"prices"},async l=>{(l.eventType==="INSERT"||l.eventType==="UPDATE")&&s(l.new)}).subscribe()},getPriceItemPrice:HH}}),HH=e=>Eh().prices.find(n=>n.id_key===e);function zn(e,t){const n=Th(),r=Eh(),o=nn(),s=R(()=>r?.tala18),i=R(()=>r?.silver),a=R(()=>U(e).collection_id===1||U(e).collection_id===2||U(e).collections?.parent_id==1||U(e).collections?.parent_id==2),l=R(()=>We(U(e),"title_fa","")),u=R(()=>We(U(e),"is_exist",""));R(()=>We(U(e),"id",null));const c=R(()=>{let J=l.value;return U(e).seo_title&&(J=U(e).seo_title),J}),f=R(()=>We(U(e),"meta","")),d=R(()=>U(t)?We(U(t),"weight",0):We(U(e),"weight",0)),h=(J=0)=>{if(U(e).collection_id===1||U(e)?.collections?.parent_id===1)return(J*s.value+J*s.value*(U(e).percent_fee??0)/100+J*s.value*(o.sellerConfig?.store?.tax_gold_profit??0)/100+(o.sellerConfig?.store?.has_gold_tax?J*s.value*(((U(e).percent_fee??0)+(o.sellerConfig?.store?.tax_gold_profit??0))/100)*.09:0)+(U(e).rial_fee??0)).toFixed(0);if(U(e)?.collection_id===2||U(e)?.collections?.parent_id===2)return(J*i.value+J*i.value*(U(e).percent_fee??0)/100+J*i.value*(o.sellerConfig?.store?.tax_silver_profit??0)/100+(o.sellerConfig?.store?.has_silver_tax?J*i.value*(((U(e).percent_fee??0)+(o.sellerConfig?.store?.tax_silver_profit??0))/100)*.09:0)+(U(e).rial_fee??0)).toFixed(0)},p=R(()=>{if(a.value){if(U(t)){if(U(t)?.weight)return U(t)?.auto_calculate?h(d.value):U(t)?.price}else if(U(e)?.weight)return U(e)?.auto_calculate?h(d.value):U(e)?.price}else{if(U(t)){if(U(t)?.price)return U(t)?.price}else if(U(e)?.price)return U(e)?.price;return 0}}),g=R(()=>b.value?y.value?.toFixed(0):parseInt(String(p.value??"0"))?.toFixed(0)),y=R(()=>{if(U(t))if(U(t)?.auto_calculate&&a.value){const J=te(U(t)?.discount_type),pe=te(U(t)?.system_discount),ae=parseInt(h(d.value));switch(J.value){case"percent":return ae-ae*(pe.value?.percentage??0)/100;case"simple":return ae-pe.value?.amount;default:return ae}}else return U(t)?.display_price?U(t)?.display_price:U(t)?.discount_type=="simple"?U(t)?.price-U(t)?.discount:U(t)?.price*((100-U(t)?.discount)/100);else if(U(e)?.auto_calculate&&a.value){const J=te(U(e)?.discount_type),pe=te(U(e)?.system_discount),ae=parseInt(h(d.value));switch(J.value){case"percent":return ae-ae*(pe.value.percentage??0)/100;case"simple":return ae-pe.value.amount;default:return ae}}else if(U(e)?.display_price)return U(e)?.display_price;return 0}),b=R(()=>v.value!==0&&v.value!==null),v=R(()=>U(t)&&U(t)?.discount?U(t)?.discount:We(U(e),"discount","")),m=R(()=>We(U(e),"brand.title","-")),_=R(()=>We(U(e),"type","simple")==="variant"),S=R(()=>We(U(e),"sell_type","numeric")==="box"),E=R(()=>We(U(e),"gallery",[]).map(pe=>We(pe,"file.src"))),w=R(()=>{const J=We(U(e),"body","");return J||""}),A=R(()=>o.useDataStorage(We(U(e),"files[0].url",null))),O=R(()=>We(U(e),"collection.title","-")),L=R(()=>We(U(e),"count","-")),N=R(()=>We(U(e),"variants",[])),k=R(()=>We(U(e),"product_attributes",[])),F=R(()=>We(U(e),"description","-")),G=R(()=>{const J=[];return N.value?.forEach(ae=>ae.variant_attribute_values?.forEach(be=>{J.includes(be.attribute_values.id)||J.push(be.attribute_values.id)})),(k?.value.filter(ae=>ae.use_in_variant)??[]).map(ae=>({attribute_id:ae.attribute_id,attribute:ae.attributes,attribute_values_arr:ae.attribute_values_arr?.filter(be=>J.includes(be.id)),attribute_values:ae.attribute_values?.filter(be=>J.includes(be)),use_in_product_page:ae.use_in_product_page}))}),$=R({set(J){n.addToCart(U(e),J,t)},get(){let J;return U(t)?J=n.list.findIndex(pe=>pe.product.id==U(e).id&&pe.variant?.id===U(t).id):J=n.list.findIndex(pe=>pe.product.id==U(e).id),J>-1?n.list[J].qty:0}}),I=R(()=>g.value<p.value),W=R(()=>{if(I.value){const J=p.value-g.value;return Math.floor(J/(p.value/100))}return 0}),H=R(()=>I.value?p.value-g.value:0);return{title:l,price:g,brand:m,gallery:E,variants:N,body:w,originalImage:A,collection:O,qty:$,priceWithDiscount:y,hasDiscount:b,originalPrice:p,hasProfit:I,displayPrice:y,discountPercent:W,seoTitle:c,seoMeta:f,attributes:k,isVariant:_,description:F,attributesUsedInVariants:G,count:L,profit:H,discount:v,isBox:S,weight:d,isExist:u}}const u3=async(e=1,t=10)=>await Pe.post("/products/table",{page:e,limit:t}),f3=async e=>await Pe.post("/products",e),d3=async(e,t)=>await Pe.put(`/products/${t}`,e),h3=async e=>await Pe.get(`/products/${e}`),WH=async e=>await Pe.post("/products/by-ids",{ids:e}),p3=async e=>await ht.fetch("products","insert",{data:e}),g3=async e=>await ht.fetch("products","delete",{field:"id",value:e}),m3=async e=>await ht.fetch("media","delete",{field:"id",value:e}),y3=async()=>ht.fetch("discounts","select",{columns:"*"}),v3=async e=>{const t={title:e.title,amount:e.amount,is_percent:e.is_percent,start_date:e.start_date,end_date:e.end_date,code:e.code,use_code:e.use_code,active:e.active,type:e.type,usage_limit:e.usage_limit||null,user_usage_limit:e.user_usage_limit||null},n=await ht.fetch("discounts","insert",{data:t});if(n&&n.length>0){const r=n[0].id;await FS(r,e)}return n},b3=async(e,t)=>{const n={title:t.title,amount:t.amount,is_percent:t.is_percent,start_date:t.start_date,end_date:t.end_date,code:t.code,use_code:t.use_code,active:t.active,type:t.type,usage_limit:t.usage_limit||null,user_usage_limit:t.user_usage_limit||null},r=await ht.fetch("discounts","update",{data:n,field:"id",value:e});return await ht.fetch("discount_items","delete",{field:"discount_id",value:e}),await FS(e,t),r},_3=async e=>await ht.fetch("discount_items","select",{field:"discount_id",value:e}),w3=async e=>(await ht.fetch("discount_items","delete",{field:"discount_id",value:e}),await ht.fetch("discounts","delete",{field:"id",value:e})),zH=async e=>await Pe.post("/discount/code",{code:e}),FS=async(e,t)=>{const n=[];switch(t.type){case"brand":t.brands&&t.brands.length>0&&n.push(...t.brands.map(r=>({discount_id:e,brand_id:r,category_id:null,user_id:null,product_id:null})));break;case"category":t.categories&&t.categories.length>0&&n.push(...t.categories.map(r=>({discount_id:e,brand_id:null,category_id:r,user_id:null,product_id:null})));break;case"user":t.users&&t.users.length>0&&n.push(...t.users.map(r=>{const o=JSON.parse(r);return{discount_id:e,brand_id:null,category_id:null,user_id:o.id,product_id:null}}));break;case"product":t.products&&t.products.length>0&&n.push(...t.products.map(r=>({discount_id:e,brand_id:null,category_id:null,user_id:null,product_id:r})));break}n.length>0&&await ht.fetch("discount_items","insert",{data:n})},Th=Xi("cart",()=>{const e=te([]),t=nn(),n=te(void 0),r=te(""),o=te(),s=te(!1),i=te(null);async function a(){if(!r.value){cn.warn(t.useString("pleaseInputDiscountCode"));return}try{ns.value=!0,o.value=(await zH(r.value)).discount,s.value=!1,cn.success(t.useString("discountCodeApplied"))}catch(N){console.error(N),cn.error(N.response?.data?.message||t.useString("invalidDiscountCode"))}finally{ns.value=!1}}function l(){o.value=void 0,r.value="",cn.success(t.useString("discountCodeRemoved"))}function u(N,k,F){if(e.value?.length){const $=e.value[0].product?.owner_id;$?.length&&N.owner_id&&$!==N.owner_id&&(e.value=[])}let G;F?G=e.value.findIndex($=>$.product.id==N.id&&$.variant.id===F.id):G=e.value.findIndex($=>$.product.id==N.id),G>-1?k>0?e.value[G].qty=k:e.value.splice(G,1):k>0&&(e.value.push({product:N,qty:k,variant:F}),cn.success(t.useString("productAddedToCart"))),L()}const c=R(()=>{let N=0;return e.value.forEach(k=>{N+=parseInt(k.qty.toString())}),N});R(()=>f.value===0?0:Math.round(d.value/f.value*100));const f=R(()=>{let N=0;return e.value.forEach(k=>{const{price:F}=zn(k.product,k.variant);N+=F.value*k.qty}),N}),d=R(()=>{if(!o.value)return 0;const N=f.value;return o.value.is_percent?N*o.value.amount/100:Math.min(o.value.amount,N)}),h=R(()=>Math.max(0,f.value-d.value)),p=R(()=>{let N=0;return e.value.forEach(k=>{const{originalPrice:F}=zn(k.product,k.variant);N+=F.value*k.qty}),N}),g=R(()=>{let N=0;return e.value.forEach(k=>{if(k.product.collection_id===2||k.product.collections?.parent_id===2){const{weight:F}=zn(k.product,k.variant);N+=F.value*k.qty}}),N}),y=R(()=>{let N=0;return e.value.forEach(k=>{if(k.product.collection_id===1||k.product.collections?.parent_id===1){const{weight:F}=zn(k.product,k.variant);N+=F.value*k.qty}}),N}),b=R(()=>{let N=0;return e.value.forEach(k=>{const{displayPrice:F}=zn(k.product,k.variant);N+=F.value*k.qty}),N}),v=R(()=>{let N=0;return e.value.forEach(k=>{const{profit:F}=zn(k.product,k.variant);N+=F.value*k.qty}),N}),m=R(()=>{let N=0;return e.value.forEach(k=>{const{discountPercent:F}=zn(k.product,k.variant);N+=F.value}),N}),_=N=>{const{priceWithDiscount:k}=zn(N.product,N.variant);return N.qty*k.value},S=R(()=>{let N=0;return e.value.forEach(k=>{const{discount:F}=zn(k.product,k.variant);N+=F.value}),N});function E(N,k){let F;k?F=e.value.findIndex(G=>G.product.id==N&&G.variant.id===k):F=e.value.findIndex(G=>G.product.id==N),F>-1&&e.value.splice(F,1),L()}function w(){e.value=[],n.value="home",L()}async function A(){}async function O(){const N=localStorage.getItem("cart");if(N){const k=JSON.parse(N);if(Array.isArray(k)){const F=k.map(G=>G.product.id);if(F.length){let G;try{ns.value=!0,G=(await WH(F))?.data??[]}catch($){console.log($)}finally{ns.value=!1}e.value=[],k.forEach($=>{const I=G.find(J=>J?.id===$.product.id);let W,H=0;I&&(I.type==="variant"?(W=I?.variants?.find(J=>$.variant?.id===J.id),H=W?.stock??0):H=I?.count??0,$.qty>H&&!I.is_exist&&($.qty=H),e.value.push({product:xj(I),qty:$.qty,variant:W}))})}}}}function L(){localStorage.setItem("cart",JSON.stringify(e.value))}return{list:e,addToCart:u,count:c,sumCart:h,removeProduct:E,address:i,reset:w,sumItem:_,saveToLocal:L,getFormLocal:O,getAddress:A,sumDiscount:S,sumOriginalPrice:p,sumDiscountCart:v,sumPercentProfit:m,sumDisplayPrice:b,methode:n,sumGoldPrice:y,sumSilverPrice:g,code:r,handleSubmitDiscount:a,discountCodeDetail:o,removeDiscountCode:l,discountVisible:s}}),VH={publicKey:"BPxLE03XsLqyrcfv_EsO7p7iR9GS5oN4jV5q6V_UuF2yLPDIFlUWc8XfSqY9926_W6IoHSmSeOxWTjnhANqG938",privateKey:"1k4YIoy5JgwSLuP-s5UuntfvXK_0OLEJyH6ei0lHnKE"},qH=()=>"serviceWorker"in navigator&&"PushManager"in window,GH=async()=>{},KH=async()=>{try{return await Notification.requestPermission()==="granted"}catch(e){return console.error("Error requesting permission:",e),!1}},JH=async e=>{try{const n=await(await navigator.serviceWorker.ready).pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:QH(VH.publicKey)});return await jH(n,e),n}catch(t){throw console.log("err ===>",t),Notification.permission==="denied"?console.warn("Permission for notifications was denied"):console.error("Failed to subscribe the user:",t),t}},YH=async(e,t)=>{try{return await MH(e,t)}catch(n){throw console.error("Error sending public notification:",n),n}},XH=async(e,t,n)=>{try{return await DH(t,n,e)}catch(r){throw console.error("Error sending private notification:",r),r}};function QH(e){const t="=".repeat((4-e.length%4)%4),n=(e+t).replace(/-/g,"+").replace(/_/g,"/"),r=window.atob(n),o=new Uint8Array(r.length);for(let s=0;s<r.length;++s)o[s]=r.charCodeAt(s);return o}function ZH(){return{initializePushNotifications:async r=>{if(!qH())return console.warn("Push notifications not supported"),!1;try{return await GH(),await KH()&&r?(await JH(r),!0):!1}catch(o){return console.error("Push notification initialization failed:",o),!1}},sendPublicNotification:async(r,o)=>await YH(r,o),sendPrivateNotification:async(r,o,s)=>await XH(r,o,s)}}async function S3(e,t=1,n=10){const r=(t-1)*n,o=r+n-1,{data:s,error:i}=await et.from("chats").select(`
|
||
*,
|
||
user1:user1_id (id, name, avatar),
|
||
user2:user2_id (id, name, avatar)`).or(`user1_id.eq.${e},user2_id.eq.${e}`).order("updated_at",{ascending:!1}).range(r,o);if(i){console.error("Error fetching chats:",i);return}return s}async function C3(e){await Pe.get(`/chat/read/${e}`)}async function E3(e){const{data:t,error:n}=await et.from("chats").select(`
|
||
*,
|
||
user1:user1_id (id, name, avatar),
|
||
user2:user2_id (id, name, avatar)`).eq("chat_id",e).single();if(n){console.error("Error fetching chats:",n);return}return t}async function T3(e,t=1,n=10){const{data:r,error:o}=await et.from("chat_messages").select(`
|
||
*,
|
||
media(*),
|
||
products(id,title_fa,files,users(id,name,avatar))
|
||
`).eq("chat_id",e).order("created_at",{ascending:!0});if(o){console.error("Error fetching messages:",o);return}return console.log("Chat messages:",r),r}async function x3(e,t){return await Pe.post("/chat/send-message",{chat_id:e,message_text:t})}async function O3(e,t){const{data:n,error:r}=await et.from("chats").select(`
|
||
*,
|
||
user1:user1_id (id, name, avatar),
|
||
user2:user2_id (id, name, avatar)`).or(`and(user1_id.eq.${e},user2_id.eq.${t}),and(user1_id.eq.${t},user2_id.eq.${e})`);return r?(console.error("Error fetching chats:",r),null):n}async function A3(e,t){const{data:n,error:r}=await et.from("chats").insert({user1_id:e,user2_id:t}).select(`
|
||
*,
|
||
user1:user1_id (id, name, avatar),
|
||
user2:user2_id (id, name, avatar)`).single();if(r){console.error("Error fetching chats:",r);return}return n}async function e6(e){const{data:t,error:n}=await et.from("chats").select().or(`user1_id.eq.${e},user2_id.eq.${e}`).not("last_message","is",null).neq("last_message->>sender_id",e).eq("last_message->>is_read",!1);if(n){console.error("Error fetching chats:",n);return}return t}const P3=async e=>await Pe.get(`/users/profile/${e}`),$3=async(e,t=1,n=10,r)=>await Pe.post(`/users/customers/${e}`,{page:t,limit:n,search:r}),R3=async()=>await ht.fetch("user_store_request","select",{columns:`*,
|
||
users(id,name,phone,avatar)`}),t6=async e=>await ht.fetch("user_store_request","select",{field:"user_id",value:e}),k3=async e=>await Pe.post("/set-user-store-request",e),I3=async e=>await Pe.post(`/confirm-user-store-request/${e}`),N3=async e=>await Pe.post(`/cancel-user-store-request/${e}`),L3=async()=>await ht.fetch("collections_store","select"),j3=async e=>await ht.fetch("users","select",{columns:"*",field:"username",value:e}),M3=async e=>{try{return await Pe.post(`/auth/delete-user/${e}`)}catch(t){console.log(t)}},HS=Xi("user",()=>{const e=te(void 0),t=te([]),n=te([]),r=te([]),o=te(!1),s=It(),i=te(null),a=nn(),l=Th(),{initializePushNotifications:u}=ZH();async function c(){try{ns.value=!0;const v=await RH();e.value=v.user,a.isSeller=v.user.type==="store",u(e.value.id),e6(e.value.id).then(m=>{n.value=m??[]}),t6(e.value.id).then(m=>{r.value=m})}catch(v){console.log(v)}finally{ns.value=!1}}const f=R(()=>{}),d=R(()=>{}),h=R(()=>{if(d.value==null)return 0}),p=R(()=>e.value.type=="seller"||!e.value.type),g=R(()=>e.value.type=="IUser");async function y(){WS(),e.value={},l.reset(),a.reset(),n.value=[],await s.push({name:"home"})}async function b(){await FH(a.useString("confirmLogout"),y)}return{user:e,unReadMessage:n,getUserInfo:c,hasUserName:f,confirmLogout:b,logout:y,myDataLoaded:o,isSeller:p,isIUser:g,storeList:t,subscription:d,remainingSubscription:h,activeStore:i,userConvertStoreRequests:r}}),ku=te(!1),ns=te(!1);te(!1);te(!1);te(!1);function D3(e){return localStorage.setItem(Md,e)}function $c(){if(Ns&&localStorage)return localStorage.getItem(Md)}function WS(){if(Ns&&localStorage)return ht.logout(),localStorage?.removeItem(Md)}function B3(e){e.target?.select()}function U3(){const e=It(),t=nn(),n=HS();t.APP_TYPE==="single"||!t.isSeller?e.push({name:"user"}):t.isSeller&&n.user?.id&&e.push({name:"user_detail-id",params:{id:n.user?.id},query:{isMain:!0}})}function F3(e,t="cropped.jpg"){const[n,r]=e.split(","),o=n.match(/data:(.*?);/)?.[1]||"image/jpeg",s=atob(r),i=new Uint8Array(s.length);for(let a=0;a<s.length;a++)i[a]=s.charCodeAt(a);return new File([i],t,{type:o})}const n6=(e,t)=>{const n=Fe("app-type").value,r=["add-product-inputProduct","add-product-excel-infProduct","add-product-excel-inputProduct","add-product-infProduct","add-story-inputStory","add-story-infStory","edit-product-id-inputProduct","edit-product-id-infProduct","edit-story-id-inputStory","edit-story-id-infStory","user-managers","user-send_message","user-attributes","user-edit-id","user-statistics_list-customers"];if(Ns){if($c()){const o=nn();if(e.name=="auth-login")return qs("/");if(n==="single"){if(o.isSeller){if(["cart","cart-id"].includes(e.name))return qs({name:"home"})}else if(r.includes(e.name))return qs({name:"home"})}else if(!o.isSeller&&r.includes(e.name))return qs({name:"home"})}else if([...r].includes(e.name))return qs({name:"home"})}},r6=Xi("routeStore",()=>{te({})}),o6=(e,t)=>{const n=r6();n.previousRoute=t},s6=e=>{const t=nb({path:e.path});if(t.redirect){const n=t.redirect.includes("#")?t.redirect:t.redirect+e.hash;return Co(n,{acceptRelative:!0})?(window.location.href=n,!1):n}},i6=[MP,n6,o6,s6],Zf={};function a6(e,t,n){const{pathname:r,search:o,hash:s}=t,i=e.indexOf("#");if(i>-1){const u=s.includes(e.slice(i))?e.slice(i).length:1;let c=s.slice(u);return c[0]!=="/"&&(c="/"+c),pp(gp(c,""))}const a=pp(gp(r,e)),l=!n||$x(a,n)?a:n;return l+(l.includes("?")?"":o)+s}const l6=De({name:"nuxt:router",enforce:"pre",async setup(e){let t,n,r=tc().app.baseURL;const o=pr.history?.(r)??hA(r),s=pr.routes?([t,n]=oo(()=>pr.routes(eu)),t=await t,n(),t??eu):eu;let i;const a=NA({...pr,scrollBehavior:(y,b,v)=>{if(b===sn){i=v;return}if(pr.scrollBehavior){if(a.options.scrollBehavior=pr.scrollBehavior,"scrollRestoration"in window.history){const m=a.beforeEach(()=>{m(),window.history.scrollRestoration="manual"})}return pr.scrollBehavior(y,sn,i||v)}},history:o,routes:s});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(a);const l=se(a.currentRoute.value);a.afterEach((y,b)=>{l.value=b}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>l.value});const u=a6(r,window.location,e.payload.path),c=se(a.currentRoute.value),f=()=>{c.value=a.currentRoute.value};a.afterEach((y,b)=>{y.matched.at(-1)?.components?.default===b.matched.at(-1)?.components?.default&&f()});const d={sync:f};for(const y in c.value)Object.defineProperty(d,y,{get:()=>c.value[y],enumerable:!0});e._route=Ln(d),e._middleware||={global:[],named:{}};const h=nc();a.afterEach(async(y,b,v)=>{delete e._processingMiddleware,!e.isHydrating&&h.value&&await e.runWithContext(T1),v&&await e.callHook("page:loading:end")});try{[t,n]=oo(()=>a.isReady()),await t,n()}catch(y){[t,n]=oo(()=>e.runWithContext(()=>Hr(y))),await t,n()}const p=u!==a.currentRoute.value.fullPath?a.resolve(u):a.currentRoute.value;f();const g=e.payload.state._layout;return a.beforeEach(async(y,b)=>{await e.callHook("page:loading:start"),y.meta=ot(y.meta),e.isHydrating&&g&&!sr(y.meta.layout)&&(y.meta.layout=g),e._processingMiddleware=!0;{const v=new Set([...i6,...e._middleware.global]);for(const _ of y.matched){const S=_.meta.middleware;if(S)for(const E of Ld(S))v.add(E)}const m=nb({path:y.path});if(m.appMiddleware)for(const _ in m.appMiddleware)m.appMiddleware[_]?v.add(_):v.delete(_);for(const _ of v){const S=typeof _=="string"?e._middleware.named[_]||await Zf[_]?.().then(E=>E.default||E):_;if(!S)throw new Error(`Unknown route middleware: '${_}'.`);try{const E=await e.runWithContext(()=>S(y,b));if(!e.payload.serverRendered&&e.isHydrating&&(E===!1||E instanceof Error)){const w=E||so({status:404,statusText:`Page Not Found: ${u}`});return await e.runWithContext(()=>Hr(w)),!1}if(E===!0)continue;if(E===!1)return E;if(E)return V0(E)&&E.fatal&&await e.runWithContext(()=>Hr(E)),E}catch(E){const w=so(E);return w.fatal&&await e.runWithContext(()=>Hr(w)),w}}}}),a.onError(async()=>{delete e._processingMiddleware,await e.callHook("page:loading:end")}),a.afterEach(y=>{if(y.matched.length===0)return e.runWithContext(()=>Hr(so({status:404,fatal:!1,statusText:`Page not found: ${y.fullPath}`,data:{path:y.fullPath}})))}),e.hooks.hookOnce("app:created",async()=>{try{"name"in p&&(p.name=void 0),await a.replace({...p,force:!0}),a.options.scrollBehavior=pr.scrollBehavior}catch(y){await e.runWithContext(()=>Hr(y))}}),{provide:{router:a}}}}),Ny=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),H3=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),ca=e=>{const t=Ye();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{Ny(()=>e())}):Ny(()=>e())};function c6(e){if(e?.__asyncLoader&&!e.__asyncResolved)return e.__asyncLoader()}async function u6(e,t=It()){const{path:n,matched:r}=t.resolve(e);if(!r.length||(t._routePreloaded||=new Set,t._routePreloaded.has(n)))return;const o=t._preloadPromises||=[];if(o.length>4)return Promise.all(o).then(()=>u6(e,t));t._routePreloaded.add(n);for(const s of r){const i=s.components?.default;if(typeof i!="function")continue;const a=Promise.resolve(i()).catch(()=>{}).finally(()=>o.splice(o.indexOf(a)));o.push(a)}await Promise.all(o)}function f6(e={}){const t=e.path||window.location.pathname;let n={};try{n=bl(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||n?.path!==t||n?.expires<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:Ye().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}function d6(e){typeof e.indexable<"u"&&(e.indexable=String(e.indexable)!=="false"),typeof e.trailingSlash<"u"&&!e.trailingSlash&&(e.trailingSlash=String(e.trailingSlash)!=="false"),e.url&&!Co(String(e.url),{acceptRelative:!0,strict:!1})&&(e.url=Ax(String(e.url)));const t=Object.keys(e).sort((r,o)=>r.localeCompare(o)),n={};for(const r of t)n[r]=e[r];return n}function h6(e){const n=[];function r(s){if(!s||typeof s!="object"||Object.keys(s).length===0)return()=>{};s._context;const i={};for(const a in s){const l=s[a];typeof l<"u"&&l!==""&&(i[a]=l)}return Object.keys(i).filter(a=>!a.startsWith("_")).length===0?()=>{}:(n.push(i),()=>{const a=n.indexOf(i);a!==-1&&n.splice(a,1)})}function o(s){const i={};s?.debug&&(i._context={}),i._priority={};for(const a in n.sort((l,u)=>(l._priority||0)-(u._priority||0)))for(const l in n[a]){const u=l,c=s?.resolveRefs?rt(n[a][l]):n[a][l];!l.startsWith("_")&&typeof c<"u"&&c!==""&&(i[l]=c,typeof n[a]._priority<"u"&&n[a]._priority!==-1&&(i._priority[u]=n[a]._priority),s?.debug&&(i._context[u]=n[a]._context?.[u]||n[a]._context||"anonymous"))}return s?.skipNormalize?i:d6(i)}return{stack:n,push:r,get:o}}const p6=De({name:"nuxt-site-config:init",enforce:"pre",async setup(e){const t=h6(),n=Fe("site-config");{const r=n.value||window.__NUXT_SITE_CONFIG__||{};for(const o in r)o[0]!=="_"&&t.push({[o]:r[o],_priority:r._priority?.[o]||-1})}return{provide:{nuxtSiteConfig:t}}}}),g6=De({name:"init-config",dependsOn:["pinia"],enforce:"pre",parallel:!1,async setup(e){let t,n;const r=nn();let o="";o=window.location.host;try{o?([t,n]=oo(()=>r.getSubscribe(o)),await t,n()):console.warn("⚠️ [Plugin] No host detected!");const s=Fe("supabase-url").value,i=Fe("supabase-key").value;(!s||!i)&&console.warn("⚠️ Supabase config is missing, checking store...")}catch(s){console.error("❌ [Plugin] Error:",s)}}}),m6=De({name:"nuxt:payload",setup(e){const t=new Set;It().beforeResolve(async(n,r)=>{if(n.path===r.path)return;const o=await Ip(n.path);if(o){for(const s of t)delete e.static.data[s];for(const s in o.data)s in e.static.data||t.add(s),e.static.data[s]=o.data[s]}}),ca(()=>{e.hooks.hook("link:prefetch",async n=>{const{hostname:r}=new URL(n,window.location.href);r===window.location.hostname&&await Ip().catch(()=>{console.warn("[nuxt] Error preloading payload for",n)})}),navigator.connection?.effectiveType!=="slow-2g"&&setTimeout(tb,1e3)})}}),y6=De(()=>{const e=It();ca(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),v6=De(e=>{let t;async function n(){let r;try{r=await tb()}catch(o){const s=o;if(!("status"in s&&(s.status===404||s.status===403)))throw s}t&&clearTimeout(t),t=setTimeout(n,Sp);try{const o=await $fetch(Pd("builds/latest.json")+`?${Date.now()}`);o.id!==r?.id&&(e.hooks.callHook("app:manifest:update",o),t&&clearTimeout(t))}catch{}}ca(()=>{t=setTimeout(n,Sp)})}),b6=De({name:"nuxt:chunk-reload",setup(e){const t=It(),n=tc(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:s})=>{r.add(s)});function o(s){const i=k0(n.app.baseURL,s.fullPath);f6({path:i,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(o)}),t.onError((s,i)=>{r.has(s)&&o(i)})}}),_6=De({name:"pinia",setup(e){const t=x1();return e.vueApp.use(t),vs(t),e.payload&&e.payload.pinia&&(t.state.value=e.payload.pinia),{provide:{pinia:t}}},hooks:{"app:rendered"(){const e=Ye();e.payload.pinia=Ce(e.$pinia).state.value,vs(void 0)}}}),w6=De({name:"nuxt:global-components"}),xr={default:Mu(()=>ne(()=>import("./CYcXPVnD.js"),__vite__mapDeps([227,29,63,65,96,106,39,107,138,97,171,3,228]),import.meta.url).then(e=>e.default||e))},S6=De({name:"nuxt:prefetch",setup(e){const t=It();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{const r=n?.meta?.layout;r&&typeof xr[r]=="function"&&await xr[r]()})}),e.hooks.hook("link:prefetch",n=>{if(Co(n))return;const r=t.resolve(n);if(!r)return;const o=r.meta.layout;let s=Ld(r.meta.middleware);s=s.filter(i=>typeof i=="string");for(const i of s)typeof Zf[i]=="function"&&Zf[i]();typeof o=="string"&&o in xr&&c6(xr[o])})}}),C6=(function(e,t,n){n.updateLocale=function(r,o){var s=n.Ls,i=s[r];if(i){var a=o?Object.keys(o):[];return a.forEach(function(l){i[l]=o[l]}),i}}}),E6=(function(e,t,n){e=e||{};var r=t.prototype,o={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};n.en.relativeTime=o,r.fromToBase=function(a,l,u,c,f){for(var d=u.$locale().relativeTime||o,h=e.thresholds||[{l:"s",r:44,d:Xr},{l:"m",r:89},{l:"mm",r:44,d:Qn},{l:"h",r:89},{l:"hh",r:21,d:Qr},{l:"d",r:35},{l:"dd",r:25,d:Gn},{l:"M",r:45},{l:"MM",r:10,d:an},{l:"y",r:17},{l:"yy",d:Kn}],p=h.length,g,y,b,v=0;v<p;v+=1){var m=h[v];m.d&&(g=c?n(a).diff(u,m.d,!0):u.diff(a,m.d,!0));var _=(e.rounding||Math.round)(Math.abs(g));if(b=g>0,_<=m.r||!m.r){_<=1&&v>0&&(m=h[v-1]);var S=d[m.l];f&&(_=f(""+_)),typeof S=="string"?y=S.replace("%d",_):y=S(_,l,m.l,b);break}}if(l)return y;var E=b?d.future:d.past;return typeof E=="function"?E(y):E.replace("%s",y)};function s(a,l,u,c){return r.fromToBase(a,l,u,c)}r.to=function(a,l){return s(a,l,this,!0)},r.from=function(a,l){return s(a,l,this)};var i=function(l){return l.$u?n.utc():n()};r.toNow=function(a){return this.to(i(this),a)},r.fromNow=function(a){return this.from(i(this),a)}});var T6=/[+-]\d\d(?::?\d\d)?/g,x6=/([+-]|\d\d)/g;function O6(e){e===void 0&&(e="");var t=e.match(T6);if(!t)return null;var n=(""+t[0]).match(x6)||["-",0,0],r=n[0],o=n[1],s=n[2],i=+o*60+ +s;return i===0?0:r==="+"?i:-i}const A6=(function(e,t,n){var r=t.prototype;n.utc=function(f){var d={date:f,utc:!0,args:arguments};return new t(d)},r.utc=function(f){var d=n(this.toDate(),{locale:this.$L,utc:!0});return f?d.add(this.utcOffset(),Qn):d},r.local=function(){return n(this.toDate(),{locale:this.$L,utc:!1})};var o=r.parse;r.parse=function(f){f.utc&&(this.$u=!0),this.$utils().u(f.$offset)||(this.$offset=f.$offset),o.call(this,f)};var s=r.init;r.init=function(){if(this.$u){var f=this.$d;this.$y=f.getUTCFullYear(),this.$M=f.getUTCMonth(),this.$D=f.getUTCDate(),this.$W=f.getUTCDay(),this.$H=f.getUTCHours(),this.$m=f.getUTCMinutes(),this.$s=f.getUTCSeconds(),this.$ms=f.getUTCMilliseconds()}else s.call(this)};var i=r.utcOffset;r.utcOffset=function(f,d){var h=this.$utils(),p=h.u;if(p(f))return this.$u?0:p(this.$offset)?i.call(this):this.$offset;if(typeof f=="string"&&(f=O6(f),f===null))return this;var g=Math.abs(f)<=16?f*60:f,y=this;if(d)return y.$offset=g,y.$u=f===0,y;if(f!==0){var b=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();y=this.local().add(g+b,Qn),y.$offset=g,y.$x.$localOffset=b}else y=this.utc();return y};var a=r.format,l="YYYY-MM-DDTHH:mm:ss[Z]";r.format=function(f){var d=f||(this.$u?l:"");return a.call(this,d)},r.valueOf=function(){var f=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-f*Ja},r.isUTC=function(){return!!this.$u},r.toISOString=function(){return this.toDate().toISOString()},r.toString=function(){return this.toDate().toUTCString()};var u=r.toDate;r.toDate=function(f){return f==="s"&&this.$offset?n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():u.call(this)};var c=r.diff;r.diff=function(f,d,h){if(f&&this.$u===f.$u)return c.call(this,f,d,h);var p=this.local(),g=n(f).local();return c.call(p,g,d,h)}});Ke.extend(C6);Ke.extend(E6);Ke.extend(A6);const P6=De(async e=>e.provide("dayjs",Ke)),$6=De(()=>({provide:{pwaIcons:{transparent:{},maskable:{},favicon:{},apple:{},appleSplashScreen:{}}}})),R6=De(()=>{});var $n=(e=>(e.LOADING="loading",e.LOADED="loaded",e.ERROR="error",e))($n||{});const k6=typeof window<"u"&&window!==null,I6=M6(),N6=Object.prototype.propertyIsEnumerable,Ly=Object.getOwnPropertySymbols;function Si(e){return typeof e=="function"||toString.call(e)==="[object Object]"}function L6(e){return typeof e=="object"?e===null:typeof e!="function"}function j6(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"}function M6(){return k6&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype?("isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get(){return this.intersectionRatio>0}}),!0):!1}function D6(e,...t){if(!Si(e))throw new TypeError("expected the first argument to be an object");if(t.length===0||typeof Symbol!="function"||typeof Ly!="function")return e;for(const n of t){const r=Ly(n);for(const o of r)N6.call(n,o)&&(e[o]=n[o])}return e}function zS(e,...t){let n=0;for(L6(e)&&(e=t[n++]),e||(e={});n<t.length;n++)if(Si(t[n])){for(const r of Object.keys(t[n]))j6(r)&&(Si(e[r])&&Si(t[n][r])?zS(e[r],t[n][r]):e[r]=t[n][r]);D6(e,t[n])}return e}const jy="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",B6="",U6={rootMargin:"0px",threshold:0},Wo="data-lazy-timeout-id";class F6{constructor(t){this.options={loading:jy,error:B6,observerOptions:U6,log:!0,lifecycle:{},logLevel:"error"},this._images=new WeakMap,this.config(t)}config(t={}){zS(this.options,t)}mount(t,n){if(!t)return;const{src:r,loading:o,error:s,lifecycle:i,delay:a}=this._valueFormatter(typeof n=="string"?n:n.value);this._lifecycle($n.LOADING,i,t),t.setAttribute("src",o||jy),I6||(this.loadImages(t,r,s,i),this._log(()=>{this._logger("Not support IntersectionObserver!")})),this._initIntersectionObserver(t,r,s,i,a)}update(t,n){if(!t)return;this._realObserver(t)?.unobserve(t);const{src:r,error:o,lifecycle:s,delay:i}=this._valueFormatter(typeof n=="string"?n:n.value);this._initIntersectionObserver(t,r,o,s,i)}unmount(t){t&&(this._realObserver(t)?.unobserve(t),this._images.delete(t))}loadImages(t,n,r,o){this._setImageSrc(t,n,r,o)}_setImageSrc(t,n,r,o){t.tagName.toLowerCase()==="img"?(n&&t.getAttribute("src")!==n&&t.setAttribute("src",n),this._listenImageStatus(t,()=>{this._lifecycle($n.LOADED,o,t)},()=>{t.onload=null,this._lifecycle($n.ERROR,o,t),this._realObserver(t)?.disconnect(),r&&t.getAttribute("src")!==r&&t.setAttribute("src",r),this._log(()=>{this._logger(`Image failed to load!And failed src was: ${n} `)})})):t.style.backgroundImage=`url('${n}')`}_initIntersectionObserver(t,n,r,o,s){const i=this.options.observerOptions;this._images.set(t,new IntersectionObserver(a=>{Array.prototype.forEach.call(a,l=>{s&&s>0?this._delayedIntersectionCallback(t,l,s,n,r,o):this._intersectionCallback(t,l,n,r,o)})},i)),this._realObserver(t)?.observe(t)}_intersectionCallback(t,n,r,o,s){n.isIntersecting&&(this._realObserver(t)?.unobserve(n.target),this._setImageSrc(t,r,o,s))}_delayedIntersectionCallback(t,n,r,o,s,i){if(n.isIntersecting){if(n.target.hasAttribute(Wo))return;const a=setTimeout(()=>{this._intersectionCallback(t,n,o,s,i),n.target.removeAttribute(Wo)},r);n.target.setAttribute(Wo,String(a))}else n.target.hasAttribute(Wo)&&(clearTimeout(Number(n.target.getAttribute(Wo))),n.target.removeAttribute(Wo))}_listenImageStatus(t,n,r){t.onload=n,t.onerror=r}_valueFormatter(t){let n=t,r=this.options.loading,o=this.options.error,s=this.options.lifecycle,i=this.options.delay;return Si(t)&&(n=t.src,r=t.loading||this.options.loading,o=t.error||this.options.error,s=t.lifecycle||this.options.lifecycle,i=t.delay||this.options.delay),{src:n,loading:r,error:o,lifecycle:s,delay:i}}_log(t){this.options.log&&t()}_lifecycle(t,n,r){switch(t){case $n.LOADING:r?.setAttribute("lazy",$n.LOADING),n?.loading&&n.loading(r);break;case $n.LOADED:r?.setAttribute("lazy",$n.LOADED),n?.loaded&&n.loaded(r);break;case $n.ERROR:r?.setAttribute("lazy",$n.ERROR),n?.error&&n.error(r);break}}_realObserver(t){return this._images.get(t)}_logger(t,...n){let r=console.error;switch(this.options.logLevel){case"error":r=console.error;break;case"warn":r=console.warn;break;case"info":r=console.info;break;case"debug":r=console.debug;break}r(t,n)}}const VS={install(e,t){const n=new F6(t);e.config.globalProperties.$Lazyload=n,e.provide("Lazyload",n),e.directive("lazy",{mounted:n.mount.bind(n),updated:n.update.bind(n),unmounted:n.unmount.bind(n)})}},H6=De(e=>{e.vueApp.use(VS,{loading:"/preview/default-loading.gif",error:"/preview/default-error.png"})}),W6=De(()=>{St(()=>{const{isSupported:e,lockOrientation:t}=t$(),n=async()=>{try{await t("portrait")}catch{}},r=o=>{const s=()=>{o(),window.removeEventListener("click",s),window.removeEventListener("touchstart",s)};window.addEventListener("click",s,{once:!0}),window.addEventListener("touchstart",s,{once:!0})};e.value&&r(n)})}),z6=De(async()=>{ca(async()=>{const e=Eh();await e.getList(),e.runWebsocket()})}),V6=De(e=>{let t=null;const n=te(!1),r=window.matchMedia("(display-mode: standalone)").matches||window.navigator.standalone;window.addEventListener("beforeinstallprompt",s=>{s.preventDefault(),t=s,r||(n.value=!0)}),window.addEventListener("appinstalled",()=>{t=null,n.value=!1});async function o(){if(!t)return!1;t.prompt();const{outcome:s}=await t.userChoice;return t=null,n.value=!1,s==="accepted"}e.provide("pwaInstall",{canInstall:n,promptInstall:o})});function q6(e={}){const{immediate:t=!1,onNeedRefresh:n,onOfflineReady:r,onRegistered:o,onRegisteredSW:s,onRegisterError:i}=e;let a,l,u;const c=async(d=!0)=>{await l,u?.()};async function f(){if("serviceWorker"in navigator){if(a=await ne(async()=>{const{Workbox:d}=await import("./BIl4cyR9.js");return{Workbox:d}},[],import.meta.url).then(({Workbox:d})=>new d("/sw_notif_pwa.js",{scope:"/",type:"classic"})).catch(d=>{i?.(d)}),!a)return;u=()=>{a?.messageSkipWaiting()};{let d=!1;const h=()=>{d=!0,a?.addEventListener("controlling",p=>{p.isUpdate&&window.location.reload()}),n?.()};a.addEventListener("installed",p=>{typeof p.isUpdate>"u"?typeof p.isExternal<"u"&&p.isExternal?h():!d&&r?.():p.isUpdate||r?.()}),a.addEventListener("waiting",h)}a.register({immediate:t}).then(d=>{s?s("/sw_notif_pwa.js",d):o?.(d)}).catch(d=>{i?.(d)})}}return l=f(),c}const G6=De(()=>{"serviceWorker"in navigator&&q6({immediate:!0,onRegistered(e){console.log("[PWA] Service worker registered:",e)},onRegisterError(e){console.error("[PWA] Service worker registration error:",e)}})}),K6=De(async()=>{ca(async()=>{await Th().getFormLocal()})});function J6(){return!!$c()}const Y6=De(async()=>{let e,t;const n=HS();J6()&&([e,t]=oo(()=>n.getUserInfo()),await e,t())}),X6=De(()=>{const e=nn();Se(()=>e.lang,t=>{t==="fa"?(document.body.style.fontFamily="iran-sans",document.body.style.direction="rtl",document.body.classList.add("fa")):(document.body.style.fontFamily="iran-sans",document.body.style.direction="ltr",document.body.classList.remove("fa"))},{immediate:!0}),Se(()=>e.isNightStore,t=>{t?(document.body.style.setProperty("background-color","#121212","important"),document.body.classList.add("dark-mode")):(document.body.style.setProperty("background-color","#fff","important"),document.body.classList.remove("dark-mode"))},{immediate:!0})}),Q6=De(e=>{e.vueApp.use(VS)}),Z6="standalone",e5=void 0;function t5(e={}){const{immediate:t=!1,onNeedRefresh:n,onOfflineReady:r,onRegistered:o,onRegisteredSW:s,onRegisterError:i}=e;let a,l,u;const c=async(d=!0)=>{await l,u?.()};async function f(){if("serviceWorker"in navigator){if(a=await ne(async()=>{const{Workbox:d}=await import("./BIl4cyR9.js");return{Workbox:d}},[],import.meta.url).then(({Workbox:d})=>new d("/sw_notif_pwa.js",{scope:"/",type:"classic"})).catch(d=>{i?.(d)}),!a)return;u=()=>{a?.messageSkipWaiting()};{let d=!1;const h=()=>{d=!0,a?.addEventListener("controlling",p=>{p.isUpdate&&window.location.reload()}),n?.()};a.addEventListener("installed",p=>{typeof p.isUpdate>"u"?typeof p.isExternal<"u"&&p.isExternal?h():!d&&r?.():p.isUpdate||r?.()}),a.addEventListener("waiting",h)}a.register({immediate:t}).then(d=>{s?s("/sw_notif_pwa.js",d):o?.(d)}).catch(d=>{i?.(d)})}}return l=f(),c}function n5(e={}){const{immediate:t=!0,onNeedRefresh:n,onOfflineReady:r,onRegistered:o,onRegisteredSW:s,onRegisterError:i}=e,a=te(!1),l=te(!1);return{updateServiceWorker:t5({immediate:t,onNeedRefresh(){a.value=!0,n?.()},onOfflineReady(){l.value=!0,r?.()},onRegistered:o,onRegisteredSW:s,onRegisterError:i}),offlineReady:l,needRefresh:a}}const r5=De({name:"vite-pwa:nuxt:client:plugin",enforce:"post",parallel:!0,setup(e){const t=te(!1),n=te(!1),r=te(!1),o=te(!0),s=navigator.userAgent,i=s.match(/iPhone|iPad|iPod/),a=`${Z6}`,l=window.matchMedia(`(display-mode: ${a})`).matches,u=te(!!(l||i&&!s.match(/Safari/))),c=te(u.value);window.matchMedia(`(display-mode: ${a})`).addEventListener("change",m=>{!c.value&&m.matches&&(c.value=!0)});let f;const d=()=>f,{offlineReady:h,needRefresh:p,updateServiceWorker:g}=n5({immediate:!0,onRegisterError(m){e.hooks.callHook("service-worker:registration-failed",{error:m}),t.value=!0},onRegisteredSW(m,_){f=_,e.hooks.callHook("service-worker:registered",{url:m,registration:_}),_?.active?.state==="activated"?(n.value=!0,e.hooks.callHook("service-worker:activated",{url:m,registration:_})):_?.installing&&_.installing.addEventListener("statechange",S=>{const E=S.target;n.value=E.state==="activated",n.value&&e.hooks.callHook("service-worker:activated",{url:m,registration:_})})}}),y=async()=>{h.value=!1,p.value=!1};let b=()=>Promise.resolve(void 0),v=()=>{};if(!o.value){let m;const _=S=>{S.preventDefault(),m=S,r.value=!0};window.addEventListener("beforeinstallprompt",_),window.addEventListener("appinstalled",()=>{m=void 0,r.value=!1}),v=()=>{m=void 0,r.value=!1,window.removeEventListener("beforeinstallprompt",_),o.value=!0,localStorage.setItem(e5,"true")},b=async()=>{if(!r.value||!m){r.value=!1;return}return r.value=!1,await kt(),m.prompt(),await m.userChoice}}return{provide:{pwa:ot({isInstalled:u,isPWAInstalled:c,showInstallPrompt:r,cancelInstall:v,install:b,swActivated:n,registrationError:t,offlineReady:h,needRefresh:p,updateServiceWorker:g,cancelPrompt:y,getSWRegistration:d})}}}}),o5=[SO,EO,PO,l6,p6,g6,m6,y6,v6,b6,_6,w6,S6,P6,$6,R6,H6,W6,z6,V6,G6,K6,Y6,X6,Q6,r5],s5=he({async setup(){return()=>null}}),qS=(e="RouteProvider")=>he({name:e,props:{route:{type:Object,required:!0},vnode:Object,vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(t){const n=t.renderKey,r=t.route,o={};for(const s in t.route)Object.defineProperty(o,s,{get:()=>n===t.renderKey?t.route[s]:r[s],enumerable:!0});return _t(go,Ln(o)),()=>t.vnode?ut(t.vnode,{ref:t.vnodeRef}):t.vnode}}),i5=qS(),My=new WeakMap,a5=he({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,slots:n,expose:r}){const o=Ye(),s=te(),i=Te(go,null);let a;r({pageRef:s});const l=Te(W0,null);let u;const c=o.deferHydration();let f=!1,d=0;if(o.isHydrating){const p=o.hooks.hookOnce("app:error",c);It().beforeEach(p)}e.pageKey&&Se(()=>e.pageKey,(p,g)=>{p!==g&&o.callHook("page:loading:start")});let h=!1;{const p=It().beforeResolve(()=>{h=!1});rn(()=>{p()})}return()=>ut(mb,{name:e.name,route:e.route,...t},{default:p=>{const g=c5(i,p.route,p.Component),y=i&&i.matched.length===p.route.matched.length;if(!p.Component){if(u&&!y)return u;c();return}if(u&&l&&!l.isCurrent(p.route))return u;if(g&&i&&(!l||l?.isCurrent(i)))return y?u:null;const b=hf(p,e.pageKey),v=u5(i,p.route,p.Component);!o.isHydrating&&a===b&&!v&&kt(()=>{h||(h=!0,o.callHook("page:loading:end"))}),f&&a!==b&&d++,a=b;const m=!!(e.transition??p.route.meta.pageTransition??_p),_=m&&l5([e.transition,p.route.meta.pageTransition,_p,{onAfterLeave(){delete o._runningTransition,o.callHook("page:transition:finish",p.Component)}}]),S=e.keepalive??p.route.meta.keepalive??l1;return u=vb(m&&_,BA(S,ut(Sd,{key:d,suspensible:!0,onPending:()=>{f=!0,m&&(o._runningTransition=!0),o.callHook("page:start",p.Component)},onResolve:async()=>{f=!1;try{await kt(),o._route.sync?.(),await o.callHook("page:finish",p.Component),delete o._runningTransition,!h&&!v&&(h=!0,await o.callHook("page:loading:end"))}finally{c()}}},{default:()=>{const E={key:b||void 0,vnode:n.default?f5(n.default,p):p.Component,route:p.route,renderKey:b||void 0,trackRootNodes:m,vnodeRef:s};if(!S)return ut(i5,E);const w=p.Component.type,A=w;let O=My.get(A);return O||(O=qS(w.name||w.__name),My.set(A,O)),ut(O,E)}}))).default(),u}})}});function l5(e){const t=[];for(const n of e)n&&t.push({...n,onAfterLeave:n.onAfterLeave?Ld(n.onAfterLeave):void 0});return F0(...t)}function c5(e,t,n){if(!e)return!1;const r=t.matched.findIndex(o=>o.components?.default===n?.type);return!r||r===-1?!1:t.matched.slice(0,r).some((o,s)=>o.components?.default!==e.matched[s]?.components?.default)||n&&hf({route:t,Component:n})!==hf({route:e,Component:n})}function u5(e,t,n){return e?t.matched.findIndex(o=>o.components?.default===n?.type)<t.matched.length-1:!1}function f5(e,t){const n=e(t);return n.length===1?ut(n[0]):ut(je,void 0,n)}const d5={key:0,class:"fixed inset-0 z-[99999] flex items-center justify-center bg-black/85 text-white p-6 text-center",style:{"backdrop-filter":"blur(2px)","-webkit-backdrop-filter":"blur(2px)","touch-action":"none"}},h5=he({__name:"NoLandscapeOverly",setup(e){const{width:t,height:n}=r$(),r=Sr("(hover: none) and (pointer: coarse)"),o=R(()=>r.value&&Math.min(t.value,n.value)<860),s=te(null),i=()=>{typeof screen<"u"&&screen.orientation?.type?s.value=screen.orientation.type.startsWith("landscape"):typeof window<"u"&&"matchMedia"in window?s.value=window.matchMedia("(orientation: landscape)").matches:s.value=t.value>n.value};St(()=>{i(),screen?.orientation?.addEventListener?.("change",i),window.addEventListener("orientationchange",i,{passive:!0}),window.matchMedia?.("(orientation: landscape)")?.addEventListener?.("change",i)}),Is(()=>{screen?.orientation?.removeEventListener?.("change",i),window.removeEventListener("orientationchange",i),window.matchMedia?.("(orientation: landscape)")?.removeEventListener?.("change",i)});const a=R(()=>s.value===!0),l=te(!1);return St(()=>{l.value=!0}),(u,c)=>l.value&&o.value&&a.value?(Yt(),Cd("div",d5,c[0]||(c[0]=[ls("div",{class:"pointer-events-none select-none"},[ls("p",{class:"text-lg font-semibold"},"لطفاً گوشی را عمودی نگه دارید"),ls("p",{class:"opacity-80 mt-2"},"این صفحه در حالت افقی در دسترس نیست.")],-1)]))):QE("",!0)}}),p5=Object.assign(h5,{__name:"NoLandscapeOverly"}),GS=eb,g5=he({name:"LayoutLoader",inheritAttrs:!1,props:{name:String,layoutProps:Object},setup(e,t){return()=>ut(xr[e.name],e.layoutProps,t.slots)}}),m5={name:{type:[String,Boolean,Object],default:null},fallback:{type:[String,Object],default:null}},y5=he({name:"NuxtLayout",inheritAttrs:!1,props:m5,setup(e,t){const n=Ye(),r=Te(go),s=!r||r===$d()?yb():r,i=R(()=>{let c=U(e.name)??s?.meta.layout??GS(s?.path).appLayout??"default";return c&&!(c in xr)&&e.fallback&&(c=U(e.fallback)),c}),a=se();t.expose({layoutRef:a});const l=n.deferHydration();if(n.isHydrating){const c=n.hooks.hookOnce("app:error",l);It().beforeEach(c)}let u;return()=>{const c=i.value&&i.value in xr,f=s?.meta.layoutTransition??a1,d=u;return u=i.value,vb(c&&f,{default:()=>ut(Sd,{suspensible:!0,onResolve:()=>{kt(l)}},{default:()=>ut(v5,{layoutProps:r0(t.attrs,s.meta.layoutProps??{},{ref:a}),key:i.value||void 0,name:i.value,shouldProvide:!e.name,isRenderingNewLayout:h=>h!==d&&h===i.value,hasTransition:!!f},t.slots)})}).default()}}}),v5=he({name:"NuxtLayoutProvider",inheritAttrs:!1,props:{name:{type:[String,Boolean]},layoutProps:{type:Object},hasTransition:{type:Boolean},shouldProvide:{type:Boolean},isRenderingNewLayout:{type:Function,required:!0}},setup(e,t){const n=e.name;e.shouldProvide&&_t(W0,{isCurrent:s=>n===!1||n===(s.meta.layout??GS(s.path).appLayout??"default")});const r=Te(go);if(r&&r===$d()){const s=yb(),i={};for(const a in s){const l=a;Object.defineProperty(i,l,{enumerable:!0,get:()=>e.isRenderingNewLayout(e.name)?s[l]:r[l]})}_t(go,Ln(i))}return()=>!n||typeof n=="string"&&!(n in xr)?t.slots.default?.():ut(g5,{key:n,layoutProps:e.layoutProps,name:n},t.slots)}}),b5="#0064e0",_5="#fff",w5="#abc2f7",S5="#feb701",C5={50:"#f9fafd",70:"#f9f9f9",100:"#e8eaee",200:"#caced8",300:"#D1D5DB",400:"#9CA3AF",500:"#949db0",700:"#374151",900:"#656f87"},E5={100:"#ecf5ef",900:"#0f7f36"},T5="#1e2229",x5="#ffffff",O5={100:"#fee2e2",500:"#f4474d",600:"#dc2626"},A5={100:"#FFF6E1",900:"#FEB701"},P5={100:"#ebf4fd",600:"#0891B2",900:"#0891B2"},$5={50:"#ECFEFF",300:"#67E8F9",600:"#0891B2",800:"#155E75"},ja={primary:b5,primaryDark:_5,"primary-rgba":"#0891B2",secondary:w5,"secondary-rgba":"#0072e914",tertiary:S5,"tertiary-rgba":"#fec94114",gray:C5,green:E5,"green-rgba":"#ecf5ef",black:T5,white:x5,red:O5,"red-rgba":"#fce6e6",yellow:A5,blue:P5,cyan:$5},R5={class:"desktopConfig"},k5=["src","alt"],I5=he({__name:"app",setup(e){const t=nn(),n=nn(),r=o=>o?.parentNode||void 0;return gO({title:R(()=>n.appName.en||"Loading..."),meta:[{name:"description",content:R(()=>n.TEXT_HEADER)}],link:[]}),(o,s)=>{const i=s5,a=a5,l=p5,u=y5,c=uo;return Yt(),Cd("div",R5,[ls("img",{src:U(t).useLogo("logo_mini.png"),alt:U(t).appName.en,style:{position:"fixed",top:"-10000rem"}},null,8,k5),P(c,{direction:"ltr",getPopupContainer:r,theme:{token:{colorPrimary:U(ja).primary,colorLink:U(ja).primary,fontFamily:U(t).isRTL?"iran-sans":"system",colorLinkActive:U(ja).primary,colorLinkHover:U(ja)["primary-rgba"]}}},{default:ul(()=>[P(u,{name:"default"},{default:ul(()=>[P(i),P(a),P(l)]),_:1})]),_:1},8,["theme"])])}}}),N5={__name:"nuxt-error-page",props:{error:Object},setup(e){const n=e.error,r=Number(n.statusCode||500),o=r===404,s=n.statusMessage??(o?"Page Not Found":"Internal Server Error"),i=n.message||n.toString(),a=void 0,c=o?Mu(()=>ne(()=>import("./QVWSnFgG.js"),__vite__mapDeps([229,3,230]),import.meta.url)):Mu(()=>ne(()=>import("./WDsVA47l.js"),__vite__mapDeps([231,3,232]),import.meta.url));return(f,d)=>(Yt(),Xn(U(c),ZC(t0({status:U(r),statusText:U(s),statusCode:U(r),statusMessage:U(s),description:U(i),stack:U(a)})),null,16))}},L5={key:0},Dy={__name:"nuxt-root",setup(e){const t=()=>null,n=Ye(),r=n.deferHydration();if(n.isHydrating){const u=n.hooks.hookOnce("app:error",r);It().beforeEach(u)}const o=!1;_t(go,$d()),n.hooks.callHookWith(u=>u.map(c=>c()),"vue:setup");const s=nc(),i=!1,a=/bot\b|chrome-lighthouse|facebookexternalhit|google\b/i;$v((u,c,f)=>{if(n.hooks.callHook("vue:error",u,c,f).catch(d=>console.error("[nuxt] Error in `vue:error` hook",d)),a.test(navigator.userAgent))return n.hooks.callHook("app:error",u),console.error(`[nuxt] Not rendering error page for bot with user agent \`${navigator.userAgent}\`:`,u),!1;if(V0(u)&&(u.fatal||u.unhandled))return n.runWithContext(()=>Hr(u)),!1});const l=!1;return(u,c)=>(Yt(),Xn(Sd,{onResolve:U(r)},{default:ul(()=>[U(i)?(Yt(),Cd("div",L5)):U(s)?(Yt(),Xn(U(N5),{key:1,error:U(s)},null,8,["error"])):U(l)?(Yt(),Xn(U(t),{key:2,context:U(l)},null,8,["context"])):U(o)?(Yt(),Xn(vE(U(o)),{key:3})):(Yt(),Xn(U(I5),{key:4}))]),_:1},8,["onResolve"]))}};let By;{let e;By=async function(){if(e)return e;const n=!!(window.__NUXT__?.serverRendered??document.getElementById("__NUXT_DATA__")?.dataset.ssr==="true"),r=n?ZT(Dy):QT(Dy),o=d1({vueApp:r});async function s(i){await o.callHook("app:error",i),o.payload.error||=so(i)}r.config.errorHandler=s,o.hook("app:suspense:resolve",()=>{r.config.errorHandler===s&&(r.config.errorHandler=void 0)}),!n&&wp.id&&o.hook("app:suspense:resolve",()=>{document.getElementById(wp.id)?.remove()});try{await g1(o,o5)}catch(i){s(i)}try{await o.hooks.callHook("app:created",r),await o.hooks.callHook("app:beforeMount",r),r.mount(c1),await o.hooks.callHook("app:mounted",r),await kt()}catch(i){s(i)}return r},e=By().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{Se as $,ls as A,eE as B,P as C,ul as D,n0 as E,Xn as F,nn as G,HS as H,ot as I,U as J,Y5 as K,t3 as L,et as M,D3 as N,U3 as O,cn as P,F5 as Q,ns as R,QE as S,Yi as T,o3 as U,WS as V,r3 as W,n3 as X,kH as Y,s3 as Z,i3 as _,Ye as a,Rr as a$,je as a0,B5 as a1,Kl as a2,c8 as a3,z5 as a4,pv as a5,v0 as a6,Gl as a7,$c as a8,_t as a9,xj as aA,x as aB,Ce as aC,ur as aD,mk as aE,A$ as aF,O8 as aG,Xe as aH,ue as aI,Qi as aJ,He as aK,T8 as aL,us as aM,sg as aN,C$ as aO,gf as aP,tt as aQ,Tl as aR,nw as aS,Te as aT,Nt as aU,sh as aV,th as aW,nh as aX,Zi as aY,L8 as aZ,Eo as a_,vE as aa,Mu as ab,ne as ac,e8 as ad,kt as ae,Is as af,Th as ag,Eh as ah,D5 as ai,C3 as aj,U5 as ak,q5 as al,_o as am,H5 as an,lo as ao,Pe as ap,ht as aq,Bn as ar,ea as as,U2 as at,lL as au,iL as av,aL as aw,vc as ax,mL as ay,Ka as az,ca as b,q_ as b$,C8 as b0,Sn as b1,Lt as b2,Vd as b3,mo as b4,Uj as b5,Jd as b6,z_ as b7,W_ as b8,S0 as b9,O_ as bA,Rg as bB,IN as bC,Nn as bD,Zd as bE,Ms as bF,B_ as bG,Ao as bH,Ds as bI,eM as bJ,nk as bK,Mk as bL,nr as bM,Db as bN,Bk as bO,ks as bP,E$ as bQ,Hl as bR,J5 as bS,Ab as bT,y8 as bU,m8 as bV,b8 as bW,VN as bX,g8 as bY,v8 as bZ,El as b_,ac as ba,Dn as bb,B$ as bc,Po as bd,Ro as be,$o as bf,j5 as bg,Rt as bh,n8 as bi,Me as bj,Je as bk,sk as bl,zd as bm,m_ as bn,og as bo,R8 as bp,rg as bq,kj as br,Pv as bs,N8 as bt,Ii as bu,uc as bv,E8 as bw,en as bx,kr as by,$r as bz,Ny as c,t8 as c$,Xj as c0,w8 as c1,Pl as c2,_8 as c3,Ud as c4,js as c5,iw as c6,Q2 as c7,We as c8,sm as c9,l8 as cA,Xi as cB,s8 as cC,o8 as cD,FH as cE,g3 as cF,rt as cG,Z5 as cH,Av as cI,al as cJ,so as cK,eh as cL,F3 as cM,f3 as cN,d3 as cO,V5 as cP,Af as cQ,T_ as cR,b$ as cS,tk as cT,vv as cU,fu as cV,ow as cW,u3 as cX,f8 as cY,c3 as cZ,m3 as c_,L_ as ca,R_ as cb,M_ as cc,ZI as cd,Gn as ce,Kn as cf,Ya as cg,ph as ch,ww as ci,an as cj,GM as ck,Ke as cl,A8 as cm,W5 as cn,zg as co,F$ as cp,Bl as cq,Fy as cr,Dr as cs,bt as ct,P8 as cu,ig as cv,d8 as cw,SM as cx,Bs as cy,hw as cz,he as d,K5 as d$,yb as d0,$8 as d1,Tv as d2,sc as d3,PC as d4,r8 as d5,sw as d6,S$ as d7,p8 as d8,s_ as d9,Bj as dA,B3 as dB,T3 as dC,O3 as dD,A3 as dE,x3 as dF,r6 as dG,ta as dH,fh as dI,uh as dJ,ch as dK,ko as dL,u8 as dM,r$ as dN,a8 as dO,i8 as dP,l3 as dQ,rB as dR,k3 as dS,Ry as dT,_3 as dU,b3 as dV,v3 as dW,y3 as dX,Bt as dY,w3 as dZ,G5 as d_,Cb as da,h8 as db,Eb as dc,xv as dd,r0 as de,S3 as df,As as dg,E3 as dh,L3 as di,P3 as dj,a3 as dk,j3 as dl,$d as dm,zn as dn,h3 as dp,$3 as dq,M3 as dr,S8 as ds,k8 as dt,x8 as du,YN as dv,$C as dw,En as dx,I8 as dy,h_ as dz,rn as e,R3 as e0,I3 as e1,N3 as e2,Fe as e3,p3 as e4,xC as e5,H3 as f,M5 as g,ut as h,E1 as i,u6 as j,R as k,Co as l,k0 as m,qs as n,St as o,A0 as p,tc as q,te as r,se as s,_l as t,It as u,Q5 as v,Tx as w,gO as x,Yt as y,Cd as z};
|