218 lines
710 KiB
JavaScript
218 lines
710 KiB
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./wyZLWQiZ.js","./CCiNyU7o.js","./DJir2CeY.js","./DlAUqK2U.js","./index.Jbtftdv_.css","./DvWNwIUf.js","./CscEAC8U.js","./BTQNEIGx.js","./CjPHwh7J.js","./DdTQqoBP.js","./C3szrT99.js","./ChangeLanguage.SqR8ZyGJ.css","./YYaVwCEb.js","./5PiJbsaQ.js","./GIvwLoBE.js","./DAaUah2x.js","./BasicIconOld.BdWXMtbr.css","./C9-mKqzf.js","./cA5fh2lg.js","./BD2G5fvF.js","./B2MUeQ_z.js","./BQKhYWGC.js","./ogsyABxJ.js","./PGC92_Sj.js","./DFL6LqjW.js","./0N7JoioX.js","./CDDBg3Y_.js","./Dmy9LQHx.js","./BasicInput.BS7pxlLz.css","./g9otGdDE.js","./ssSX8W6r.js","./BasicButton.ghdrh_8K.css","./DEFgvqDI.js","./DrmiFgjd.js","./CLDsZ6pG.js","./BiK9i_Zy.js","./DSWAPs-i.js","./CxVR7ht-.js","./B5RoG9wW.js","./Cj99RmFE.js","./CCrciQyb.js","./C6Lfa4XD.js","./BK6U06JP.js","./B0tUBnBT.js","./DZnIL_2I.js","./InstaInput.CKJcpevC.css","./index.DQQ6m8Ab.css","./CU3dxLwF.js","./SVNFY45f.js","./n0DUIre6.js","./index.3vTMV84N.css","./CDmaZMQI.js","./Cka_Guai.js","./Cq497dur.js","./CE1G-McA.js","./Bgie9YSn.js","./UfKM_8Ux.js","./F7ppGFOP.js","./BA2sMwRy.js","./Cz6oeCNy.js","./index.C7yq570K.css","./BCsGs1aW.js","./sNw7gtjf.js","./LnMFAdTT.js","./CESgyd7F.js","./DPkf2bcV.js","./GNxLkFyZ.js","./CUkMw_9s.js","./BzMgnyr2.js","./7NC7WC4Q.js","./DP-y9mLJ.js","./C9-gXAgs.js","./DNQpC0YG.js","./KYGZybbC.js","./UserProfilePic.CvlRpmYy.css","./DSO9kF0m.js","./CxZINpjh.js","./D79lgzyq.js","./CfQT9Pjy.js","./Ah7i0Akn.js","./moreOptionProduct.Cv4yblbJ.css","./CcGAdEuH.js","./PostCardSkeleton.Cd9nU5gk.css","./swiper.BiEk7v8n.css","./pagination.DioOUj-L.css","./Bv0O_Z4q.js","./BMJhQ9nv.js","./D7Yr8Azi.js","./index.CW9Q0sCE.css","./nKJ5M9HP.js","./aCwO9UBV.js","./BQaFj55B.js","./B_myKqkW.js","./0T4JoQxv.js","./BO3lZk6o.js","./TprRDXFv.js","./BGRl04cL.js","./nC0LTzMz.js","./0sQGsR-B.js","./BMvqCgID.js","./BH7LQtOd.js","./PbouHhtI.js","./ByKjLdIF.js","./CzGVe8d-.js","./numbro.DPJQrSl7.css","./CbEKdWWr.js","./FullScreenStories.vHiwkct6.css","./D_wgKPen.js","./DjvBa-1E.js","./BSqWopBN.js","./COAIJs56.js","./T8YlS15x.js","./index.DM60V-SF.css","./CsFFaDNE.js","./42yfZ8s5.js","./ZBhiySNi.js","./BhPIhqMn.js","./CkPaWjHN.js","./Highlights.XJ6BKAjU.css","./BJJxomfH.js","./BsxsqCS1.js","./C3iaeegE.js","./BX4wePgn.js","./B8aja29o.js","./C_1pJ-hg.js","./index.C4gGGvAh.css","./index.BftfFzRd.css","./BgR2E6gQ.js","./Dw4nSNyv.js","./DJqfVuFV.js","./CGyvzagx.js","./73mfAfc8.js","./C18jMsoU.js","./Tyt-5zMt.js","./ProductSearchList.CBryqxih.css","./DNECQ76K.js","./D-bUn136.js","./index.DqDP03N6.css","./VL-oR_q3.js","./DQ720sOX.js","./C7bJGTou.js","./CLY8LzBL.js","./BfHz3dvx.js","./B2FuliQW.js","./BRhRjAcT.js","./C7xMEF3J.js","./CuIi7lIW.js","./EYLltJlx.js","./fH2P0ZZ_.js","./8nhEvy_1.js","./BcM39RcM.js","./agNxWnvF.js","./ivOVMXH8.js","./Cf4u1c6e.js","./CSzw-WNk.js","./BasicTextArea.tn0RQdqM.css","./sNT9a3xG.js","./CkKbv3Ni.js","./IndexImageUploader.DpcjnqB-.css","./Bf0Ckl74.js","./Cl8b34rw.js","./C6S6SGpu.js","./BVqtfT0J.js","./DKnHfTXN.js","./C3-w1DZ5.js","./X8oOxQUF.js","./D5nTpp1A.js","./032LL7yb.js","./BbqrR3bL.js","./OrderDetail.DmLQfC-y.css","./_id_.DZwRw4ht.css","./CSIBfn4m.js","./BmA3YvQr.js","./DR5vmjv0.js","./LRVleJrK.js","./BiNRGDG_.js","./CGQpwa8-.js","./DkN4vK_A.js","./D_JOnvrv.js","./_id_.D4oKB4V-.css","./Yw3ohozo.js","./C9x6R8kW.js","./CcsSAbyF.js","./C-nwmc8e.js","./IHCZ2Rvu.js","./diYFHgc7.js","./index.DUwLxYAC.css","./CkPJhJTd.js","./Bg9KKeRD.js","./BBWW5MI2.js","./index.CNHi-7Ke.css","./psw1EREk.js","./Bf86-oVZ.js","./DxGVXgDi.js","./kJacUU3k.js","./BxG--_9v.js","./StepNumber.DZuSkTLD.css","./Cc4_J5On.js","./BKreu5to.js","./Bl4cu-Dt.js","./BasicButtonOld.DPzkZLoL.css","./_id_.PJLx4Yw5.css","./DhIzw1D4.js","./BmGGrzWX.js","./CiMJi5Ym.js","./DebaRAa_.js","./style.Dw47-jjr.css","./index.BqsFHEeO.css","./index.DmFYDSzq.css","./BqgT1d0M.js","./Bgy6CLAp.js","./zOHJVF5R.js","./pjAMdu6e.js","./DQtr8B_M.js","./CFxvc77N.js","./gU9SvktB.js","./BqTU5BWa.js","./D-8eEkGp.js","./Bs7DLg6H.js","./CWhMemCQ.js","./index.By-U70SM.css","./BZ33drkU.js","./detail_message.C5Ha7jgz.css","./DmMp6NXy.js","./D79qYHny.js","./RtEQODCe.js","./index.BBugcOCd.css","./KU5dbtlr.js","./CoCcFrgl.js","./Ci5xsvi6.js","./fDINVVMd.js","./Bn6yXEZh.js","./CIzgzs4T.js","./D-NH961q.js","./default.C6CIwwM4.css","./DloKkSUm.js","./error-404._yXoGkXB.css","./BksW-ien.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 bC(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const _C={},wC=()=>{},SC=Object.assign,CC=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},EC=Object.prototype.hasOwnProperty,yl=(e,t)=>EC.call(e,t),tr=Array.isArray,li=e=>Ql(e)==="[object Map]",TC=e=>Ql(e)==="[object Set]",Oi=e=>typeof e=="function",xC=e=>typeof e=="string",ta=e=>typeof e=="symbol",ks=e=>e!==null&&typeof e=="object",AC=Object.prototype.toString,Ql=e=>AC.call(e),OC=e=>Ql(e).slice(8,-1),PC=e=>Ql(e)==="[object Object]",yd=e=>xC(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,$r=(e,t)=>!Object.is(e,t),$C=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})};let Et;class lv{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 vd(e){return new lv(e)}function Is(){return Et}function Pi(e,t=!1){Et&&Et.cleanups.push(e)}let Ie;const Vc=new WeakSet;class cv{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,Vc.has(this)&&(Vc.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||fv(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Vh(this),dv(this);const t=Ie,n=bn;Ie=this,bn=!0;try{return this.fn()}finally{hv(this),Ie=t,bn=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)wd(t);this.deps=this.depsTail=void 0,Vh(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Vc.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ku(this)&&this.run()}get dirty(){return Ku(this)}}let uv=0,ci,ui;function fv(e,t=!1){if(e.flags|=8,t){e.next=ui,ui=e;return}e.next=ci,ci=e}function bd(){uv++}function _d(){if(--uv>0)return;if(ui){let t=ui;for(ui=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;ci;){let t=ci;for(ci=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 dv(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function hv(e){let t,n=e.depsTail,r=n;for(;r;){const o=r.prevDep;r.version===-1?(r===n&&(n=o),wd(r),RC(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=o}e.deps=t,e.depsTail=n}function Ku(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(pv(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function pv(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===$i)||(e.globalVersion=$i,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ku(e))))return;e.flags|=2;const t=e.dep,n=Ie,r=bn;Ie=e,bn=!0;try{dv(e);const o=e.fn(e._value);(t.version===0||$r(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{Ie=n,bn=r,hv(e),e.flags&=-3}}function wd(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)wd(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function RC(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let bn=!0;const gv=[];function sr(){gv.push(bn),bn=!1}function ir(){const e=gv.pop();bn=e===void 0?!0:e}function Vh(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Ie;Ie=void 0;try{t()}finally{Ie=n}}}let $i=0;class kC{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 Zl{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||!bn||Ie===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Ie)n=this.activeLink=new kC(Ie,this),Ie.deps?(n.prevDep=Ie.depsTail,Ie.depsTail.nextDep=n,Ie.depsTail=n):Ie.deps=Ie.depsTail=n,mv(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++,$i++,this.notify(t)}notify(t){bd();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{_d()}}}function mv(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)mv(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const vl=new WeakMap,so=Symbol(""),Ju=Symbol(""),Ri=Symbol("");function Tt(e,t,n){if(bn&&Ie){let r=vl.get(e);r||vl.set(e,r=new Map);let o=r.get(n);o||(r.set(n,o=new Zl),o.map=r,o.key=n),o.track()}}function Xn(e,t,n,r,o,s){const i=vl.get(e);if(!i){$i++;return}const a=l=>{l&&l.trigger()};if(bd(),t==="clear")i.forEach(a);else{const l=tr(e),u=l&&yd(n);if(l&&n==="length"){const c=Number(r);i.forEach((f,d)=>{(d==="length"||d===Ri||!ta(d)&&d>=c)&&a(f)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),u&&a(i.get(Ri)),t){case"add":l?u&&a(i.get("length")):(a(i.get(so)),li(e)&&a(i.get(Ju)));break;case"delete":l||(a(i.get(so)),li(e)&&a(i.get(Ju)));break;case"set":li(e)&&a(i.get(so));break}}_d()}function IC(e,t){const n=vl.get(e);return n&&n.get(t)}function jo(e){const t=Se(e);return t===e?t:(Tt(t,"iterate",Ri),un(e)?t:t.map(bt))}function ec(e){return Tt(e=Se(e),"iterate",Ri),e}const NC={__proto__:null,[Symbol.iterator](){return qc(this,Symbol.iterator,bt)},concat(...e){return jo(this).concat(...e.map(t=>tr(t)?jo(t):t))},entries(){return qc(this,"entries",e=>(e[1]=bt(e[1]),e))},every(e,t){return Wn(this,"every",e,t,void 0,arguments)},filter(e,t){return Wn(this,"filter",e,t,n=>n.map(bt),arguments)},find(e,t){return Wn(this,"find",e,t,bt,arguments)},findIndex(e,t){return Wn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Wn(this,"findLast",e,t,bt,arguments)},findLastIndex(e,t){return Wn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Wn(this,"forEach",e,t,void 0,arguments)},includes(...e){return Gc(this,"includes",e)},indexOf(...e){return Gc(this,"indexOf",e)},join(e){return jo(this).join(e)},lastIndexOf(...e){return Gc(this,"lastIndexOf",e)},map(e,t){return Wn(this,"map",e,t,void 0,arguments)},pop(){return Gs(this,"pop")},push(...e){return Gs(this,"push",e)},reduce(e,...t){return qh(this,"reduce",e,t)},reduceRight(e,...t){return qh(this,"reduceRight",e,t)},shift(){return Gs(this,"shift")},some(e,t){return Wn(this,"some",e,t,void 0,arguments)},splice(...e){return Gs(this,"splice",e)},toReversed(){return jo(this).toReversed()},toSorted(e){return jo(this).toSorted(e)},toSpliced(...e){return jo(this).toSpliced(...e)},unshift(...e){return Gs(this,"unshift",e)},values(){return qc(this,"values",bt)}};function qc(e,t,n){const r=ec(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 LC=Array.prototype;function Wn(e,t,n,r,o,s){const i=ec(e),a=i!==e&&!un(e),l=i[t];if(l!==LC[t]){const f=l.apply(e,s);return a?bt(f):f}let u=n;i!==e&&(a?u=function(f,d){return n.call(this,bt(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 qh(e,t,n,r){const o=ec(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,bt(a),l,e)}),o[t](s,...r)}function Gc(e,t,n){const r=Se(e);Tt(r,"iterate",Ri);const o=r[t](...n);return(o===-1||o===!1)&&Td(n[0])?(n[0]=Se(n[0]),r[t](...n)):o}function Gs(e,t,n=[]){sr(),bd();const r=Se(e)[t].apply(e,n);return _d(),ir(),r}const jC=bC("__proto__,__v_isRef,__isVue"),yv=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ta));function MC(e){ta(e)||(e=String(e));const t=Se(this);return Tt(t,"has",e),t.hasOwnProperty(e)}class vv{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?GC:Sv:s?wv:_v).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=tr(t);if(!o){let l;if(i&&(l=NC[n]))return l;if(n==="hasOwnProperty")return MC}const a=Reflect.get(t,n,Me(t)?t:r);return(ta(n)?yv.has(n):jC(n))||(o||Tt(t,"get",n),s)?a:Me(a)?i&&yd(n)?a:a.value:ks(a)?o?Cd(a):rt(a):a}}class bv extends vv{constructor(t=!1){super(!1,t)}set(t,n,r,o){let s=t[n];if(!this._isShallow){const l=ar(s);if(!un(r)&&!ar(r)&&(s=Se(s),r=Se(r)),!tr(t)&&Me(s)&&!Me(r))return l?!1:(s.value=r,!0)}const i=tr(t)&&yd(n)?Number(n)<t.length:yl(t,n),a=Reflect.set(t,n,r,Me(t)?t:o);return t===Se(o)&&(i?$r(r,s)&&Xn(t,"set",n,r):Xn(t,"add",n,r)),a}deleteProperty(t,n){const r=yl(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&r&&Xn(t,"delete",n,void 0),o}has(t,n){const r=Reflect.has(t,n);return(!ta(n)||!yv.has(n))&&Tt(t,"has",n),r}ownKeys(t){return Tt(t,"iterate",tr(t)?"length":so),Reflect.ownKeys(t)}}class DC extends vv{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const BC=new bv,UC=new DC,FC=new bv(!0);const Yu=e=>e,wa=e=>Reflect.getPrototypeOf(e);function HC(e,t,n){return function(...r){const o=this.__v_raw,s=Se(o),i=li(s),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,u=o[e](...r),c=n?Yu:t?bl:bt;return!t&&Tt(s,"iterate",l?Ju:so),{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 Sa(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function WC(e,t){const n={get(o){const s=this.__v_raw,i=Se(s),a=Se(o);e||($r(o,a)&&Tt(i,"get",o),Tt(i,"get",a));const{has:l}=wa(i),u=t?Yu:e?bl:bt;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(Se(o),"iterate",so),Reflect.get(o,"size",o)},has(o){const s=this.__v_raw,i=Se(s),a=Se(o);return e||($r(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=Se(a),u=t?Yu:e?bl:bt;return!e&&Tt(l,"iterate",so),a.forEach((c,f)=>o.call(s,u(c),u(f),i))}};return SC(n,e?{add:Sa("add"),set:Sa("set"),delete:Sa("delete"),clear:Sa("clear")}:{add(o){!t&&!un(o)&&!ar(o)&&(o=Se(o));const s=Se(this);return wa(s).has.call(s,o)||(s.add(o),Xn(s,"add",o,o)),this},set(o,s){!t&&!un(s)&&!ar(s)&&(s=Se(s));const i=Se(this),{has:a,get:l}=wa(i);let u=a.call(i,o);u||(o=Se(o),u=a.call(i,o));const c=l.call(i,o);return i.set(o,s),u?$r(s,c)&&Xn(i,"set",o,s):Xn(i,"add",o,s),this},delete(o){const s=Se(this),{has:i,get:a}=wa(s);let l=i.call(s,o);l||(o=Se(o),l=i.call(s,o)),a&&a.call(s,o);const u=s.delete(o);return l&&Xn(s,"delete",o,void 0),u},clear(){const o=Se(this),s=o.size!==0,i=o.clear();return s&&Xn(o,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=HC(o,e,t)}),n}function Sd(e,t){const n=WC(e,t);return(r,o,s)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(yl(n,o)&&o in r?n:r,o,s)}const zC={get:Sd(!1,!1)},VC={get:Sd(!1,!0)},qC={get:Sd(!0,!1)};const _v=new WeakMap,wv=new WeakMap,Sv=new WeakMap,GC=new WeakMap;function KC(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function JC(e){return e.__v_skip||!Object.isExtensible(e)?0:KC(OC(e))}function rt(e){return ar(e)?e:Ed(e,!1,BC,zC,_v)}function Dn(e){return Ed(e,!1,FC,VC,wv)}function Cd(e){return Ed(e,!0,UC,qC,Sv)}function Ed(e,t,n,r,o){if(!ks(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=JC(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 Bn(e){return ar(e)?Bn(e.__v_raw):!!(e&&e.__v_isReactive)}function ar(e){return!!(e&&e.__v_isReadonly)}function un(e){return!!(e&&e.__v_isShallow)}function Td(e){return e?!!e.__v_raw:!1}function Se(e){const t=e&&e.__v_raw;return t?Se(t):e}function xd(e){return!yl(e,"__v_skip")&&Object.isExtensible(e)&&$C(e,"__v_skip",!0),e}const bt=e=>ks(e)?rt(e):e,bl=e=>ks(e)?Cd(e):e;function Me(e){return e?e.__v_isRef===!0:!1}function Z(e){return Cv(e,!1)}function ae(e){return Cv(e,!0)}function Cv(e,t){return Me(e)?e:new YC(e,t)}class YC{constructor(t,n){this.dep=new Zl,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Se(t),this._value=n?t:bt(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)||ar(t);t=r?t:Se(t),$r(t,n)&&(this._rawValue=t,this._value=r?t:bt(t),this.dep.trigger())}}function XC(e){e.dep&&e.dep.trigger()}function U(e){return Me(e)?e.value:e}function nt(e){return Oi(e)?e():U(e)}const QC={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 Ev(e){return Bn(e)?e:new Proxy(e,QC)}class ZC{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Zl,{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 Tv(e){return new ZC(e)}function eE(e){const t=tr(e)?new Array(e.length):{};for(const n in e)t[n]=xv(e,n);return t}class tE{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 IC(Se(this._object),this._key)}}class nE{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 tc(e,t,n){return Me(e)?e:Oi(e)?new nE(e):ks(e)&&arguments.length>1?xv(e,t,n):Z(e)}function xv(e,t,n){const r=e[t];return Me(r)?r:new tE(e,t,n)}class rE{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Zl(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=$i-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 fv(this,!0),!0}get value(){const t=this.dep.track();return pv(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function oE(e,t,n=!1){let r,o;return Oi(e)?r=e:(r=e.get,o=e.set),new rE(r,o,n)}const Ca={},_l=new WeakMap;let zr;function sE(e,t=!1,n=zr){if(n){let r=_l.get(n);r||_l.set(n,r=[]),r.push(e)}}function iE(e,t,n=_C){const{immediate:r,deep:o,once:s,scheduler:i,augmentJob:a,call:l}=n,u=_=>o?_:un(_)||o===!1||o===0?Qn(_,1):Qn(_);let c,f,d,h,p=!1,g=!1;if(Me(e)?(f=()=>e.value,p=un(e)):Bn(e)?(f=()=>u(e),p=!0):tr(e)?(g=!0,p=e.some(_=>Bn(_)||un(_)),f=()=>e.map(_=>{if(Me(_))return _.value;if(Bn(_))return u(_);if(Oi(_))return l?l(_,2):_()})):Oi(e)?t?f=l?()=>l(e,2):e:f=()=>{if(d){sr();try{d()}finally{ir()}}const _=zr;zr=c;try{return l?l(e,3,[h]):e(h)}finally{zr=_}}:f=wC,t&&o){const _=f,S=o===!0?1/0:o;f=()=>Qn(_(),S)}const y=Is(),b=()=>{c.stop(),y&&y.active&&CC(y.effects,c)};if(s&&t){const _=t;t=(...S)=>{_(...S),b()}}let v=g?new Array(e.length).fill(Ca):Ca;const m=_=>{if(!(!(c.flags&1)||!c.dirty&&!_))if(t){const S=c.run();if(o||p||(g?S.some((E,w)=>$r(E,v[w])):$r(S,v))){d&&d();const E=zr;zr=c;try{const w=[S,v===Ca?void 0:g&&v[0]===Ca?[]:v,h];l?l(t,3,w):t(...w),v=S}finally{zr=E}}}else c.run()};return a&&a(m),c=new cv(f),c.scheduler=i?()=>i(m,!1):m,h=_=>sE(_,!1,c),d=c.onStop=()=>{const _=_l.get(c);if(_){if(l)l(_,4);else for(const S of _)S();_l.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 Qn(e,t=1/0,n){if(t<=0||!ks(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Me(e))Qn(e.value,t,n);else if(tr(e))for(let r=0;r<e.length;r++)Qn(e[r],t,n);else if(TC(e)||li(e))e.forEach(r=>{Qn(r,t,n)});else if(PC(e)){for(const r in e)Qn(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Qn(e[r],t,n)}return e}function aE(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Le={},is=[],nr=()=>{},lE=()=>!1,nc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Av=e=>e.startsWith("onUpdate:"),zt=Object.assign,Ov=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},cE=Object.prototype.hasOwnProperty,Ne=(e,t)=>cE.call(e,t),be=Array.isArray,uE=e=>rc(e)==="[object Map]",fE=e=>rc(e)==="[object Set]",dE=e=>rc(e)==="[object RegExp]",ye=e=>typeof e=="function",dt=e=>typeof e=="string",Ad=e=>typeof e=="symbol",ht=e=>e!==null&&typeof e=="object",Od=e=>(ht(e)||ye(e))&&ye(e.then)&&ye(e.catch),Pv=Object.prototype.toString,rc=e=>Pv.call(e),hE=e=>rc(e)==="[object Object]",as=aE(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),oc=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},pE=/-(\w)/g,wn=oc(e=>e.replace(pE,(t,n)=>n?n.toUpperCase():"")),gE=/\B([A-Z])/g,na=oc(e=>e.replace(gE,"-$1").toLowerCase()),Pd=oc(e=>e.charAt(0).toUpperCase()+e.slice(1)),Kc=oc(e=>e?`on${Pd(e)}`:""),fi=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},mE=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},yE=e=>{const t=parseFloat(e);return isNaN(t)?e:t},vE=e=>{const t=dt(e)?Number(e):NaN;return isNaN(t)?e:t};let Gh;const sc=()=>Gh||(Gh=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ic(e){if(be(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=dt(r)?SE(r):ic(r);if(o)for(const s in o)t[s]=o[s]}return t}else if(dt(e)||ht(e))return e}const bE=/;(?![^(]*\))/g,_E=/:([^]+)/,wE=/\/\*[^]*?\*\//g;function SE(e){const t={};return e.replace(wE,"").split(bE).forEach(n=>{if(n){const r=n.split(_E);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function ac(e){let t="";if(dt(e))t=e;else if(be(e))for(let n=0;n<e.length;n++){const r=ac(e[n]);r&&(t+=r+" ")}else if(ht(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function CE(e){if(!e)return null;let{class:t,style:n}=e;return t&&!dt(t)&&(e.class=ac(t)),n&&(e.style=ic(n)),e}const $v=e=>!!(e&&e.__v_isRef===!0),Rv=e=>dt(e)?e:e==null?"":be(e)||ht(e)&&(e.toString===Pv||!ye(e.toString))?$v(e)?Rv(e.value):JSON.stringify(e,kv,2):String(e),kv=(e,t)=>$v(t)?kv(e,t.value):uE(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],s)=>(n[Jc(r,s)+" =>"]=o,n),{})}:fE(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Jc(n))}:Ad(t)?Jc(t):ht(t)&&!be(t)&&!hE(t)?String(t):t,Jc=(e,t="")=>{var n;return Ad(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};function ra(e,t,n,r){try{return r?e(...r):e()}catch(o){Ns(o,t,n)}}function Sn(e,t,n,r){if(ye(e)){const o=ra(e,t,n,r);return o&&Od(o)&&o.catch(s=>{Ns(s,t,n)}),o}if(be(e)){const o=[];for(let s=0;s<e.length;s++)o.push(Sn(e[s],t,n,r));return o}}function Ns(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){sr(),ra(s,null,10,[e,l,u]),ir();return}}EE(e,n,o,r,i)}function EE(e,t,n,r=!0,o=!1){if(o)throw e;console.error(e)}const kt=[];let In=-1;const ls=[];let br=null,Ko=0;const Iv=Promise.resolve();let wl=null;function Ot(e){const t=wl||Iv;return e?t.then(this?e.bind(this):e):t}function TE(e){let t=In+1,n=kt.length;for(;t<n;){const r=t+n>>>1,o=kt[r],s=ki(o);s<e||s===e&&o.flags&2?t=r+1:n=r}return t}function $d(e){if(!(e.flags&1)){const t=ki(e),n=kt[kt.length-1];!n||!(e.flags&2)&&t>=ki(n)?kt.push(e):kt.splice(TE(t),0,e),e.flags|=1,Nv()}}function Nv(){wl||(wl=Iv.then(Lv))}function Sl(e){be(e)?ls.push(...e):br&&e.id===-1?br.splice(Ko+1,0,e):e.flags&1||(ls.push(e),e.flags|=1),Nv()}function Kh(e,t,n=In+1){for(;n<kt.length;n++){const r=kt[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;kt.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Cl(e){if(ls.length){const t=[...new Set(ls)].sort((n,r)=>ki(n)-ki(r));if(ls.length=0,br){br.push(...t);return}for(br=t,Ko=0;Ko<br.length;Ko++){const n=br[Ko];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}br=null,Ko=0}}const ki=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Lv(e){try{for(In=0;In<kt.length;In++){const t=kt[In];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),ra(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;In<kt.length;In++){const t=kt[In];t&&(t.flags&=-2)}In=-1,kt.length=0,Cl(),wl=null,(kt.length||ls.length)&&Lv()}}let ut=null,jv=null;function El(e){const t=ut;return ut=e,jv=e&&e.type.__scopeId||null,t}function di(e,t=ut,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&cp(-1);const s=El(t);let i;try{i=e(...o)}finally{El(s),r._d&&cp(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function Mv(e,t){if(ut===null)return e;const n=fc(ut),r=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[s,i,a,l=Le]=t[o];s&&(ye(s)&&(s={mounted:s,updated:s}),s.deep&&Qn(i),r.push({dir:s,instance:n,value:i,oldValue:void 0,arg:a,modifiers:l}))}return e}function Nn(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&&(sr(),Sn(l,n,8,[e.el,a,e,t]),ir())}}const Dv=Symbol("_vte"),Bv=e=>e.__isTeleport,hi=e=>e&&(e.disabled||e.disabled===""),Jh=e=>e&&(e.defer||e.defer===""),Yh=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Xh=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Xu=(e,t)=>{const n=e&&e.to;return dt(n)?t?t(n):null:n},Uv={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=hi(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=(A,j)=>{v&16&&(o&&o.isCE&&(o.ce._teleportTarget=A),c(m,A,j,o,s,i,a,l))},O=()=>{const A=t.target=Xu(t.props,p),j=Fv(A,t,g,h);A&&(i!=="svg"&&Yh(A)?i="svg":i!=="mathml"&&Xh(A)&&(i="mathml"),b||(w(A,j),Xa(t,!1)))};b&&(w(n,E),Xa(t,!0)),Jh(t.props)?lt(()=>{O(),t.el.__isMounted=!0},s):O()}else{if(Jh(t.props)&&!e.el.__isMounted){lt(()=>{Uv.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,O=hi(e.props),A=O?n:E,j=O?S:w;if(i==="svg"||Yh(E)?i="svg":(i==="mathml"||Xh(E))&&(i="mathml"),_?(d(e.dynamicChildren,_,A,o,s,i,a),Dd(e,t,!0)):l||f(e,t,A,j,o,s,i,a,!1),b)O?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Ea(t,n,S,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const N=t.target=Xu(t.props,p);N&&Ea(t,N,null,u,0)}else O&&Ea(t,E,w,u,1);Xa(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||!hi(d);for(let p=0;p<a.length;p++){const g=a[p];r(g,t,n,h,!!g.dynamicChildren)}}},move:Ea,hydrate:xE};function Ea(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||hi(c))&&l&16)for(let d=0;d<u.length;d++)o(u[d],t,n,2);f&&r(a,t,n)}function xE(e,t,n,r,o,s,{o:{nextSibling:i,parentNode:a,querySelector:l,insert:u,createText:c}},f){const d=t.target=Xu(t.props,l);if(d){const h=hi(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||Fv(d,t,c,u),f(p&&i(p),t,d,n,r,o,s)}Xa(t,h)}return t.anchor&&i(t.anchor)}const Rd=Uv;function Xa(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 Fv(e,t,n,r){const o=t.targetStart=n(""),s=t.targetAnchor=n("");return o[Dv]=s,e&&(r(o,e),r(s,e)),s}const _r=Symbol("_leaveCb"),Ta=Symbol("_enterCb");function Hv(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return gt(()=>{e.isMounted=!0}),on(()=>{e.isUnmounting=!0}),e}const sn=[Function,Array],Wv={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:sn,onEnter:sn,onAfterEnter:sn,onEnterCancelled:sn,onBeforeLeave:sn,onLeave:sn,onAfterLeave:sn,onLeaveCancelled:sn,onBeforeAppear:sn,onAppear:sn,onAfterAppear:sn,onAppearCancelled:sn},zv=e=>{const t=e.subTree;return t.component?zv(t.component):t},AE={name:"BaseTransition",props:Wv,setup(e,{slots:t}){const n=jt(),r=Hv();return()=>{const o=t.default&&kd(t.default(),!0);if(!o||!o.length)return;const s=Vv(o),i=Se(e),{mode:a}=i;if(r.isLeaving)return Yc(s);const l=Qh(s);if(!l)return Yc(s);let u=Ii(l,i,r,n,f=>u=f);l.type!==qe&&kr(l,u);let c=n.subTree&&Qh(n.subTree);if(c&&c.type!==qe&&!vn(l,c)&&zv(n).type!==qe){let f=Ii(c,i,r,n);if(kr(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},Yc(s);a==="in-out"&&l.type!==qe?f.delayLeave=(d,h,p)=>{const g=qv(r,c);g[String(c.key)]=c,d[_r]=()=>{h(),d[_r]=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 Vv(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==qe){t=n;break}}return t}const OE=AE;function qv(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 Ii(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=qv(n,e),E=(A,j)=>{A&&Sn(A,r,9,j)},w=(A,j)=>{const N=j[1];E(A,j),be(A)?A.every(k=>k.length<=1)&&N():A.length<=1&&N()},O={mode:i,persisted:a,beforeEnter(A){let j=l;if(!n.isMounted)if(s)j=y||l;else return;A[_r]&&A[_r](!0);const N=S[_];N&&vn(e,N)&&N.el[_r]&&N.el[_r](),E(j,[A])},enter(A){let j=u,N=c,k=f;if(!n.isMounted)if(s)j=b||u,N=v||c,k=m||f;else return;let F=!1;const K=A[Ta]=R=>{F||(F=!0,R?E(k,[A]):E(N,[A]),O.delayedLeave&&O.delayedLeave(),A[Ta]=void 0)};j?w(j,[A,K]):K()},leave(A,j){const N=String(e.key);if(A[Ta]&&A[Ta](!0),n.isUnmounting)return j();E(d,[A]);let k=!1;const F=A[_r]=K=>{k||(k=!0,j(),K?E(g,[A]):E(p,[A]),A[_r]=void 0,S[N]===e&&delete S[N])};S[N]=e,h?w(h,[A,F]):F()},clone(A){const j=Ii(A,t,n,r,o);return o&&o(j),j}};return O}function Yc(e){if(oa(e))return e=Cn(e),e.children=null,e}function Qh(e){if(!oa(e))return Bv(e.type)&&e.children?Vv(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&&ye(n.default))return n.default()}}function kr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,kr(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 kd(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(kd(i.children,t,a))):(t||i.type!==qe)&&r.push(a!=null?Cn(i,{key:a}):i)}if(o>1)for(let s=0;s<r.length;s++)r[s].patchFlag=-2;return r}function pe(e,t){return ye(e)?zt({name:e.name},t,{setup:e}):e}function A8(){const e=jt();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function Id(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Ni(e,t,n,r,o=!1){if(be(e)){e.forEach((p,g)=>Ni(p,t&&(be(t)?t[g]:t),n,r,o));return}if(Rr(r)&&!o){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Ni(e,t,n,r.component.subTree);return}const s=r.shapeFlag&4?fc(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=Se(f),h=f===Le?()=>!1:p=>Ne(d,p);if(u!=null&&u!==l&&(dt(u)?(c[u]=null,h(u)&&(f[u]=null)):Me(u)&&(u.value=null)),ye(l))ra(l,a,12,[i,c]);else{const p=dt(l),g=Me(l);if(p||g){const y=()=>{if(e.f){const b=p?h(l)?f[l]:c[l]:l.value;o?be(b)&&Ov(b,s):be(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,lt(y,n)):y()}}}let Zh=!1;const Mo=()=>{Zh||(console.error("Hydration completed but contains mismatches."),Zh=!0)},PE=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",$E=e=>e.namespaceURI.includes("MathML"),xa=e=>{if(e.nodeType===1){if(PE(e))return"svg";if($E(e))return"mathml"}},ts=e=>e.nodeType===8;function RE(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,_),Cl(),_._vnode=m;return}f(_.firstChild,m,null,null,null),Cl(),_._vnode=m},f=(m,_,S,E,w,O=!1)=>{O=O||!!_.dynamicChildren;const A=ts(m)&&m.data==="[",j=()=>g(m,_,S,E,w,A),{type:N,ref:k,shapeFlag:F,patchFlag:K}=_;let R=m.nodeType;_.el=m,K===-2&&(O=!1,_.dynamicChildren=null);let I=null;switch(N){case rr:R!==3?_.children===""?(l(_.el=o(""),i(m),m),I=m):I=j():(m.data!==_.children&&(Mo(),m.data=_.children),I=s(m));break;case qe:v(m)?(I=s(m),b(_.el=m.content.firstChild,m,S)):R!==8||A?I=j():I=s(m);break;case us:if(A&&(m=s(m),R=m.nodeType),R===1||R===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 A?s(I):I}else j();break;case je:A?I=p(m,_,S,E,w,O):I=j();break;default:if(F&1)(R!==1||_.type.toLowerCase()!==m.tagName.toLowerCase())&&!v(m)?I=j():I=d(m,_,S,E,w,O);else if(F&6){_.slotScopeIds=w;const W=i(m);if(A?I=y(m):ts(m)&&m.data==="teleport start"?I=y(m,m.data,"teleport end"):I=s(m),t(_,W,null,S,E,xa(W),O),Rr(_)&&!_.type.__asyncResolved){let H;A?(H=P(je),H.anchor=I?I.previousSibling:W.lastChild):H=m.nodeType===3?E0(""):P("div"),H.el=m,_.component.subTree=H}}else F&64?R!==8?I=j():I=_.type.hydrate(m,_,S,E,w,O,e,h):F&128&&(I=_.type.hydrate(m,_,S,E,xa(i(m)),w,O,e,f))}return k!=null&&Ni(k,null,E,_),I},d=(m,_,S,E,w,O)=>{O=O||!!_.dynamicChildren;const{type:A,props:j,patchFlag:N,shapeFlag:k,dirs:F,transition:K}=_,R=A==="input"||A==="option";if(R||N!==-1){F&&Nn(_,null,S,"created");let I=!1;if(v(m)){I=p0(null,K)&&S&&S.vnode.props&&S.vnode.props.appear;const H=m.content.firstChild;I&&K.beforeEnter(H),b(H,m,S),_.el=m=H}if(k&16&&!(j&&(j.innerHTML||j.textContent))){let H=h(m.firstChild,_,m,S,E,w,O);for(;H;){Aa(m,1)||Mo();const Q=H;H=H.nextSibling,a(Q)}}else if(k&8){let H=_.children;H[0]===`
|
||
`&&(m.tagName==="PRE"||m.tagName==="TEXTAREA")&&(H=H.slice(1)),m.textContent!==H&&(Aa(m,0)||Mo(),m.textContent=_.children)}if(j){if(R||!O||N&48){const H=m.tagName.includes("-");for(const Q in j)(R&&(Q.endsWith("value")||Q==="indeterminate")||nc(Q)&&!as(Q)||Q[0]==="."||H)&&r(m,Q,null,j[Q],void 0,S)}else if(j.onClick)r(m,"onClick",null,j.onClick,void 0,S);else if(N&4&&Bn(j.style))for(const H in j.style)j.style[H]}let W;(W=j&&j.onVnodeBeforeMount)&&Dt(W,S,_),F&&Nn(_,null,S,"beforeMount"),((W=j&&j.onVnodeMounted)||F||I)&&b0(()=>{W&&Dt(W,S,_),I&&K.enter(m),F&&Nn(_,null,S,"mounted")},E)}return m.nextSibling},h=(m,_,S,E,w,O,A)=>{A=A||!!_.dynamicChildren;const j=_.children,N=j.length;for(let k=0;k<N;k++){const F=A?j[k]:j[k]=Zt(j[k]),K=F.type===rr;m?(K&&!A&&k+1<N&&Zt(j[k+1]).type===rr&&(l(o(m.data.slice(F.children.length)),S,s(m)),m.data=F.children),m=f(m,F,E,w,O,A)):K&&!F.children?l(F.el=o(""),S):(Aa(S,1)||Mo(),n(null,F,S,null,E,w,xa(S),O))}return m},p=(m,_,S,E,w,O)=>{const{slotScopeIds:A}=_;A&&(w=w?w.concat(A):A);const j=i(m),N=h(s(m),_,j,S,E,w,O);return N&&ts(N)&&N.data==="]"?s(_.anchor=N):(Mo(),l(_.anchor=u("]"),j,N),N)},g=(m,_,S,E,w,O)=>{if(Aa(m.parentElement,1)||Mo(),_.el=null,O){const N=y(m);for(;;){const k=s(m);if(k&&k!==N)a(k);else break}}const A=s(m),j=i(m);return a(m),n(null,_,j,A,S,E,xa(j),w),S&&(S.vnode.el=_.el,uc(S,_.el)),A},y=(m,_="[",S="]")=>{let E=0;for(;m;)if(m=s(m),m&&ts(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 ep="data-allow-mismatch",kE={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Aa(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(ep);)e=e.parentElement;const n=e&&e.getAttribute(ep);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:n.split(",").includes(kE[t])}}sc().requestIdleCallback;sc().cancelIdleCallback;function IE(e,t){if(ts(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(ts(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const Rr=e=>!!e.type.__asyncLoader;function Qu(e){ye(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 pe({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(p,g,y){const b=s?()=>{const v=s(y,m=>IE(p,m));v&&(g.bum||(g.bum=[])).push(v)}:y;c?b():h().then(()=>!g.isUnmounted&&b())},get __asyncResolved(){return c},setup(){const p=ct;if(Id(p),c)return()=>Xc(c,p);const g=m=>{u=null,Ns(m,p,13,!r)};if(a&&p.suspense||ys)return h().then(m=>()=>Xc(m,p)).catch(m=>(g(m),()=>r?P(r,{error:m}):null));const y=Z(!1),b=Z(),v=Z(!!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&&oa(p.parent.vnode)&&p.parent.update()}).catch(m=>{g(m),b.value=m}),()=>{if(y.value&&c)return Xc(c,p);if(b.value&&r)return P(r,{error:b.value});if(n&&!v.value)return P(n)}}})}function Xc(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 oa=e=>e.type.__isKeepAlive,NE={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=jt(),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),lt(()=>{w.isDeactivated=!1,w.a&&fi(w.a);const O=v.props&&v.props.onVnodeMounted;O&&Dt(O,w.parent,v)},a)},r.deactivate=v=>{const m=v.component;xl(m.m),xl(m.a),u(v,d,null,1,a),lt(()=>{m.da&&fi(m.da);const _=v.props&&v.props.onVnodeUnmounted;_&&Dt(_,m.parent,v),m.isDeactivated=!0},a)};function h(v){Qc(v),c(v,n,a,!0)}function p(v){o.forEach((m,_)=>{const S=lf(m.type);S&&!v(S)&&g(_)})}function g(v){const m=o.get(v);m&&(!i||!vn(m,i))?h(m):i&&Qc(i),o.delete(v),s.delete(v)}_e(()=>[e.include,e.exclude],([v,m])=>{v&&p(_=>oi(v,_)),m&&p(_=>!oi(m,_))},{flush:"post",deep:!0});let y=null;const b=()=>{y!=null&&(Al(n.subTree.type)?lt(()=>{o.set(y,Oa(n.subTree))},n.subTree.suspense):o.set(y,Oa(n.subTree)))};return gt(b),Ls(b),on(()=>{o.forEach(v=>{const{subTree:m,suspense:_}=n,S=Oa(m);if(v.type===S.type&&v.key===S.key){Qc(S);const E=S.component.da;E&<(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(!nn(m)||!(m.shapeFlag&4)&&!(m.shapeFlag&128))return i=null,m;let _=Oa(m);if(_.type===qe)return i=null,_;const S=_.type,E=lf(Rr(_)?_.type.__asyncResolved||{}:S),{include:w,exclude:O,max:A}=e;if(w&&(!E||!oi(w,E))||O&&E&&oi(O,E))return _.shapeFlag&=-257,i=_,m;const j=_.key==null?S:_.key,N=o.get(j);return _.el&&(_=Cn(_),m.shapeFlag&128&&(m.ssContent=_)),y=j,N?(_.el=N.el,_.component=N.component,_.transition&&kr(_,_.transition),_.shapeFlag|=512,s.delete(j),s.add(j)):(s.add(j),A&&s.size>parseInt(A,10)&&g(s.values().next().value)),_.shapeFlag|=256,i=_,Al(m.type)?m:_}}},LE=NE;function oi(e,t){return be(e)?e.some(n=>oi(n,t)):dt(e)?e.split(",").includes(t):dE(e)?(e.lastIndex=0,e.test(t)):!1}function Gv(e,t){Jv(e,"a",t)}function Kv(e,t){Jv(e,"da",t)}function Jv(e,t,n=ct){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(lc(t,r,n),n){let o=n.parent;for(;o&&o.parent;)oa(o.parent.vnode)&&jE(r,t,n,o),o=o.parent}}function jE(e,t,n,r){const o=lc(t,e,r,!0);js(()=>{Ov(r[t],o)},n)}function Qc(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Oa(e){return e.shapeFlag&128?e.ssContent:e}function lc(e,t,n=ct,r=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{sr();const a=mo(n),l=Sn(t,n,e,i);return a(),ir(),l});return r?o.unshift(s):o.push(s),s}}const ur=e=>(t,n=ct)=>{(!ys||e==="sp")&&lc(e,(...r)=>t(...r),n)},Yv=ur("bm"),gt=ur("m"),Xv=ur("bu"),Ls=ur("u"),on=ur("bum"),js=ur("um"),ME=ur("sp"),DE=ur("rtg"),BE=ur("rtc");function Qv(e,t=ct){lc("ec",e,t)}const Nd="components",UE="directives";function O8(e,t){return Ld(Nd,e,!0,t)||e}const Zv=Symbol.for("v-ndc");function FE(e){return dt(e)?Ld(Nd,e,!1)||e:e||Zv}function P8(e){return Ld(UE,e)}function Ld(e,t,n=!0,r=!1){const o=ut||ct;if(o){const s=o.type;if(e===Nd){const a=lf(s,!1);if(a&&(a===t||a===wn(t)||a===Pd(wn(t))))return s}const i=tp(o[e]||s[e],t)||tp(o.appContext[e],t);return!i&&r?s:i}}function tp(e,t){return e&&(e[t]||e[wn(t)]||e[Pd(wn(t))])}function $8(e,t,n,r){let o;const s=n,i=be(e);if(i||dt(e)){const a=i&&Bn(e);let l=!1,u=!1;a&&(l=!un(e),u=ar(e),e=ec(e)),o=new Array(e.length);for(let c=0,f=e.length;c<f;c++)o[c]=t(l?u?bl(bt(e[c])):bt(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(ht(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 R8(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(be(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 k8(e,t,n={},r,o){if(ut.ce||ut.parent&&Rr(ut.parent)&&ut.parent.ce)return t!=="default"&&(n.name=t),It(),Mn(je,null,[P("slot",n,r&&r())],64);let s=e[t];s&&s._c&&(s._d=!1),It();const i=s&&e0(s(n)),a=n.key||i&&i.key,l=Mn(je,{key:(a&&!Ad(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 e0(e){return e.some(t=>nn(t)?!(t.type===qe||t.type===je&&!e0(t.children)):!0)?e:null}const Zu=e=>e?A0(e)?fc(e):Zu(e.parent):null,pi=zt(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=>Zu(e.parent),$root:e=>Zu(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>r0(e),$forceUpdate:e=>e.f||(e.f=()=>{$d(e.update)}),$nextTick:e=>e.n||(e.n=Ot.bind(e.proxy)),$watch:e=>aT.bind(e)}),Zc=(e,t)=>e!==Le&&!e.__isScriptSetup&&Ne(e,t),HE={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(Zc(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];ef&&(i[t]=0)}}const c=pi[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 Zc(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)||Zc(t,i)||(a=s[0])&&Ne(a,i)||Ne(r,i)||Ne(pi,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 I8(){return t0().slots}function N8(){return t0().attrs}function t0(){const e=jt();return e.setupContext||(e.setupContext=P0(e))}function np(e){return be(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function L8(e){const t=jt();let n=e();return sf(),Od(n)&&(n=n.catch(r=>{throw mo(t),r})),[n,()=>mo(t)]}let ef=!0;function WE(e){const t=r0(e),n=e.proxy,r=e.ctx;ef=!1,t.beforeCreate&&rp(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:O,serverPrefetch:A,expose:j,inheritAttrs:N,components:k,directives:F,filters:K}=t;if(u&&zE(u,r,null),i)for(const W in i){const H=i[W];ye(H)&&(r[W]=H.bind(n))}if(o){const W=o.call(n,n);ht(W)&&(e.data=rt(W))}if(ef=!0,s)for(const W in s){const H=s[W],Q=ye(H)?H.bind(n,n):ye(H.get)?H.get.bind(n,n):nr,ge=!ye(H)&&ye(H.set)?H.set.bind(n):nr,le=$({get:Q,set:ge});Object.defineProperty(r,W,{enumerable:!0,configurable:!0,get:()=>le.value,set:we=>le.value=we})}if(a)for(const W in a)n0(a[W],r,n,W);if(l){const W=ye(l)?l.call(n):l;Reflect.ownKeys(W).forEach(H=>{wt(H,W[H])})}c&&rp(c,e,"c");function I(W,H){be(H)?H.forEach(Q=>W(Q.bind(n))):H&&W(H.bind(n))}if(I(Yv,f),I(gt,d),I(Xv,h),I(Ls,p),I(Gv,g),I(Kv,y),I(Qv,O),I(BE,E),I(DE,w),I(on,v),I(js,_),I(ME,A),be(j))if(j.length){const W=e.exposed||(e.exposed={});j.forEach(H=>{Object.defineProperty(W,H,{get:()=>n[H],set:Q=>n[H]=Q})})}else e.exposed||(e.exposed={});S&&e.render===nr&&(e.render=S),N!=null&&(e.inheritAttrs=N),k&&(e.components=k),F&&(e.directives=F),A&&Id(e)}function zE(e,t,n=nr){be(e)&&(e=tf(e));for(const r in e){const o=e[r];let s;ht(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 rp(e,t,n){Sn(be(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function n0(e,t,n,r){let o=r.includes(".")?m0(n,r):()=>n[r];if(dt(e)){const s=t[e];ye(s)&&_e(o,s)}else if(ye(e))_e(o,e.bind(n));else if(ht(e))if(be(e))e.forEach(s=>n0(s,t,n,r));else{const s=ye(e.handler)?e.handler.bind(n):t[e.handler];ye(s)&&_e(o,s,e)}}function r0(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=>Tl(l,u,i,!0)),Tl(l,t,i)),ht(t)&&s.set(t,l),l}function Tl(e,t,n,r=!1){const{mixins:o,extends:s}=t;s&&Tl(e,s,n,!0),o&&o.forEach(i=>Tl(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const a=VE[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const VE={data:op,props:sp,emits:sp,methods:si,computed:si,beforeCreate:$t,created:$t,beforeMount:$t,mounted:$t,beforeUpdate:$t,updated:$t,beforeDestroy:$t,beforeUnmount:$t,destroyed:$t,unmounted:$t,activated:$t,deactivated:$t,errorCaptured:$t,serverPrefetch:$t,components:si,directives:si,watch:GE,provide:op,inject:qE};function op(e,t){return t?e?function(){return zt(ye(e)?e.call(this,this):e,ye(t)?t.call(this,this):t)}:t:e}function qE(e,t){return si(tf(e),tf(t))}function tf(e){if(be(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function $t(e,t){return e?[...new Set([].concat(e,t))]:t}function si(e,t){return e?zt(Object.create(null),e,t):t}function sp(e,t){return e?be(e)&&be(t)?[...new Set([...e,...t])]:zt(Object.create(null),np(e),np(t??{})):t}function GE(e,t){if(!e)return t;if(!t)return e;const n=zt(Object.create(null),e);for(const r in t)n[r]=$t(e[r],t[r]);return n}function o0(){return{app:null,config:{isNativeTag:lE,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 KE=0;function JE(e,t){return function(r,o=null){ye(r)||(r=zt({},r)),o!=null&&!ht(o)&&(o=null);const s=o0(),i=new WeakSet,a=[];let l=!1;const u=s.app={_uid:KE++,_component:r,_props:o,_container:null,_context:s,_instance:null,version:OT,get config(){return s.config},set config(c){},use(c,...f){return i.has(c)||(c&&ye(c.install)?(i.add(c),c.install(u,...f)):ye(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,fc(h.component)}},onUnmount(c){a.push(c)},unmount(){l&&(Sn(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=io;io=u;try{return c()}finally{io=f}}};return u}}let io=null;function wt(e,t){if(ct){let n=ct.provides;const r=ct.parent&&ct.parent.provides;r===n&&(n=ct.provides=Object.create(r)),n[e]=t}}function Te(e,t,n=!1){const r=ct||ut;if(r||io){const o=io?io._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&&ye(t)?t.call(r&&r.proxy):t}}function To(){return!!(ct||ut||io)}const s0={},i0=()=>Object.create(s0),a0=e=>Object.getPrototypeOf(e)===s0;function YE(e,t,n,r=!1){const o={},s=i0();e.propsDefaults=Object.create(null),l0(e,t,o,s);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);n?e.props=r?o:Dn(o):e.type.props?e.props=o:e.props=s,e.attrs=s}function XE(e,t,n,r){const{props:o,attrs:s,vnode:{patchFlag:i}}=e,a=Se(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(cc(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=wn(d);o[p]=nf(l,a,p,h,e,!1)}else h!==s[d]&&(s[d]=h,u=!0)}}}else{l0(e,t,o,s)&&(u=!0);let c;for(const f in a)(!t||!Ne(t,f)&&((c=na(f))===f||!Ne(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(o[f]=nf(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&&Xn(e.attrs,"set","")}function l0(e,t,n,r){const[o,s]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(as(l))continue;const u=t[l];let c;o&&Ne(o,c=wn(l))?!s||!s.includes(c)?n[c]=u:(a||(a={}))[c]=u:cc(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,i=!0)}if(s){const l=Se(n),u=a||Le;for(let c=0;c<s.length;c++){const f=s[c];n[f]=nf(o,l,f,u[f],e,!Ne(u,f))}}return i}function nf(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&&ye(l)){const{propsDefaults:u}=o;if(n in u)r=u[n];else{const c=mo(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===na(n))&&(r=!0))}return r}const QE=new WeakMap;function c0(e,t,n=!1){const r=n?QE:t.propsCache,o=r.get(e);if(o)return o;const s=e.props,i={},a=[];let l=!1;if(!ye(e)){const c=f=>{l=!0;const[d,h]=c0(f,t,!0);zt(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 ht(e)&&r.set(e,is),is;if(be(s))for(let c=0;c<s.length;c++){const f=wn(s[c]);ip(f)&&(i[f]=Le)}else if(s)for(const c in s){const f=wn(c);if(ip(f)){const d=s[c],h=i[f]=be(d)||ye(d)?{type:d}:zt({},d),p=h.type;let g=!1,y=!0;if(be(p))for(let b=0;b<p.length;++b){const v=p[b],m=ye(v)&&v.name;if(m==="Boolean"){g=!0;break}else m==="String"&&(y=!1)}else g=ye(p)&&p.name==="Boolean";h[0]=g,h[1]=y,(g||Ne(h,"default"))&&a.push(f)}}const u=[i,a];return ht(e)&&r.set(e,u),u}function ip(e){return e[0]!=="$"&&!as(e)}const jd=e=>e[0]==="_"||e==="$stable",Md=e=>be(e)?e.map(Zt):[Zt(e)],ZE=(e,t,n)=>{if(t._n)return t;const r=di((...o)=>Md(t(...o)),n);return r._c=!1,r},u0=(e,t,n)=>{const r=e._ctx;for(const o in e){if(jd(o))continue;const s=e[o];if(ye(s))t[o]=ZE(o,s,r);else if(s!=null){const i=Md(s);t[o]=()=>i}}},f0=(e,t)=>{const n=Md(t);e.slots.default=()=>n},d0=(e,t,n)=>{for(const r in t)(n||!jd(r))&&(e[r]=t[r])},eT=(e,t,n)=>{const r=e.slots=i0();if(e.vnode.shapeFlag&32){const o=t._;o?(d0(r,t,n),n&&mE(r,"_",o,!0)):u0(t,r)}else t&&f0(e,t)},tT=(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:d0(o,t,n):(s=!t.$stable,u0(t,o)),i=t}else t&&(f0(e,t),i={default:1});if(s)for(const a in o)!jd(a)&&i[a]==null&&delete o[a]},lt=b0;function nT(e){return h0(e)}function rT(e){return h0(e,RE)}function h0(e,t){const n=sc();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=nr,insertStaticContent:p}=e,g=(C,T,L,z=null,B=null,V=null,te=void 0,X=null,Y=!!T.dynamicChildren)=>{if(C===T)return;C&&!vn(C,T)&&(z=D(C),we(C,B,V,!0),C=null),T.patchFlag===-2&&(Y=!1,T.dynamicChildren=null);const{type:q,ref:ce,shapeFlag:ne}=T;switch(q){case rr:y(C,T,L,z);break;case qe:b(C,T,L,z);break;case us:C==null&&v(T,L,z,te);break;case je:k(C,T,L,z,B,V,te,X,Y);break;default:ne&1?S(C,T,L,z,B,V,te,X,Y):ne&6?F(C,T,L,z,B,V,te,X,Y):(ne&64||ne&128)&&q.process(C,T,L,z,B,V,te,X,Y,oe)}ce!=null&&B&&Ni(ce,C&&C.ref,V,T||C,!T)},y=(C,T,L,z)=>{if(C==null)r(T.el=a(T.children),L,z);else{const B=T.el=C.el;T.children!==C.children&&u(B,T.children)}},b=(C,T,L,z)=>{C==null?r(T.el=l(T.children||""),L,z):T.el=C.el},v=(C,T,L,z)=>{[C.el,C.anchor]=p(C.children,T,L,z,C.el,C.anchor)},m=({el:C,anchor:T},L,z)=>{let B;for(;C&&C!==T;)B=d(C),r(C,L,z),C=B;r(T,L,z)},_=({el:C,anchor:T})=>{let L;for(;C&&C!==T;)L=d(C),o(C),C=L;o(T)},S=(C,T,L,z,B,V,te,X,Y)=>{T.type==="svg"?te="svg":T.type==="math"&&(te="mathml"),C==null?E(T,L,z,B,V,te,X,Y):A(C,T,B,V,te,X,Y)},E=(C,T,L,z,B,V,te,X)=>{let Y,q;const{props:ce,shapeFlag:ne,transition:ie,dirs:me}=C;if(Y=C.el=i(C.type,V,ce&&ce.is,ce),ne&8?c(Y,C.children):ne&16&&O(C.children,Y,null,z,B,eu(C,V),te,X),me&&Nn(C,null,z,"created"),w(Y,C,C.scopeId,te,z),ce){for(const Pe in ce)Pe!=="value"&&!as(Pe)&&s(Y,Pe,null,ce[Pe],V,z);"value"in ce&&s(Y,"value",null,ce.value,V),(q=ce.onVnodeBeforeMount)&&Dt(q,z,C)}me&&Nn(C,null,z,"beforeMount");const Ee=p0(B,ie);Ee&&ie.beforeEnter(Y),r(Y,T,L),((q=ce&&ce.onVnodeMounted)||Ee||me)&<(()=>{q&&Dt(q,z,C),Ee&&ie.enter(Y),me&&Nn(C,null,z,"mounted")},B)},w=(C,T,L,z,B)=>{if(L&&h(C,L),z)for(let V=0;V<z.length;V++)h(C,z[V]);if(B){let V=B.subTree;if(T===V||Al(V.type)&&(V.ssContent===T||V.ssFallback===T)){const te=B.vnode;w(C,te,te.scopeId,te.slotScopeIds,B.parent)}}},O=(C,T,L,z,B,V,te,X,Y=0)=>{for(let q=Y;q<C.length;q++){const ce=C[q]=X?wr(C[q]):Zt(C[q]);g(null,ce,T,L,z,B,V,te,X)}},A=(C,T,L,z,B,V,te)=>{const X=T.el=C.el;let{patchFlag:Y,dynamicChildren:q,dirs:ce}=T;Y|=C.patchFlag&16;const ne=C.props||Le,ie=T.props||Le;let me;if(L&&Mr(L,!1),(me=ie.onVnodeBeforeUpdate)&&Dt(me,L,T,C),ce&&Nn(T,C,L,"beforeUpdate"),L&&Mr(L,!0),(ne.innerHTML&&ie.innerHTML==null||ne.textContent&&ie.textContent==null)&&c(X,""),q?j(C.dynamicChildren,q,X,L,z,eu(T,B),V):te||H(C,T,X,null,L,z,eu(T,B),V,!1),Y>0){if(Y&16)N(X,ne,ie,L,B);else if(Y&2&&ne.class!==ie.class&&s(X,"class",null,ie.class,B),Y&4&&s(X,"style",ne.style,ie.style,B),Y&8){const Ee=T.dynamicProps;for(let Pe=0;Pe<Ee.length;Pe++){const Ae=Ee[Pe],qt=ne[Ae],Ct=ie[Ae];(Ct!==qt||Ae==="value")&&s(X,Ae,qt,Ct,B,L)}}Y&1&&C.children!==T.children&&c(X,T.children)}else!te&&q==null&&N(X,ne,ie,L,B);((me=ie.onVnodeUpdated)||ce)&<(()=>{me&&Dt(me,L,T,C),ce&&Nn(T,C,L,"updated")},z)},j=(C,T,L,z,B,V,te)=>{for(let X=0;X<T.length;X++){const Y=C[X],q=T[X],ce=Y.el&&(Y.type===je||!vn(Y,q)||Y.shapeFlag&70)?f(Y.el):L;g(Y,q,ce,null,z,B,V,te,!0)}},N=(C,T,L,z,B)=>{if(T!==L){if(T!==Le)for(const V in T)!as(V)&&!(V in L)&&s(C,V,T[V],null,B,z);for(const V in L){if(as(V))continue;const te=L[V],X=T[V];te!==X&&V!=="value"&&s(C,V,X,te,B,z)}"value"in L&&s(C,"value",T.value,L.value,B)}},k=(C,T,L,z,B,V,te,X,Y)=>{const q=T.el=C?C.el:a(""),ce=T.anchor=C?C.anchor:a("");let{patchFlag:ne,dynamicChildren:ie,slotScopeIds:me}=T;me&&(X=X?X.concat(me):me),C==null?(r(q,L,z),r(ce,L,z),O(T.children||[],L,ce,B,V,te,X,Y)):ne>0&&ne&64&&ie&&C.dynamicChildren?(j(C.dynamicChildren,ie,L,B,V,te,X),(T.key!=null||B&&T===B.subTree)&&Dd(C,T,!0)):H(C,T,L,ce,B,V,te,X,Y)},F=(C,T,L,z,B,V,te,X,Y)=>{T.slotScopeIds=X,C==null?T.shapeFlag&512?B.ctx.activate(T,L,z,te,Y):K(T,L,z,B,V,te,Y):R(C,T,Y)},K=(C,T,L,z,B,V,te)=>{const X=C.component=CT(C,z,B);if(oa(C)&&(X.ctx.renderer=oe),ET(X,!1,te),X.asyncDep){if(B&&B.registerDep(X,I,te),!C.el){const Y=X.subTree=P(qe);b(null,Y,T,L)}}else I(X,C,T,L,B,V,te)},R=(C,T,L)=>{const z=T.component=C.component;if(hT(C,T,L))if(z.asyncDep&&!z.asyncResolved){W(z,T,L);return}else z.next=T,z.update();else T.el=C.el,z.vnode=T},I=(C,T,L,z,B,V,te)=>{const X=()=>{if(C.isMounted){let{next:ne,bu:ie,u:me,parent:Ee,vnode:Pe}=C;{const Gt=g0(C);if(Gt){ne&&(ne.el=Pe.el,W(C,ne,te)),Gt.asyncDep.then(()=>{C.isUnmounted||X()});return}}let Ae=ne,qt;Mr(C,!1),ne?(ne.el=Pe.el,W(C,ne,te)):ne=Pe,ie&&fi(ie),(qt=ne.props&&ne.props.onVnodeBeforeUpdate)&&Dt(qt,Ee,ne,Pe),Mr(C,!0);const Ct=tu(C),dn=C.subTree;C.subTree=Ct,g(dn,Ct,f(dn.el),D(dn),C,B,V),ne.el=Ct.el,Ae===null&&uc(C,Ct.el),me&<(me,B),(qt=ne.props&&ne.props.onVnodeUpdated)&<(()=>Dt(qt,Ee,ne,Pe),B)}else{let ne;const{el:ie,props:me}=T,{bm:Ee,m:Pe,parent:Ae,root:qt,type:Ct}=C,dn=Rr(T);if(Mr(C,!1),Ee&&fi(Ee),!dn&&(ne=me&&me.onVnodeBeforeMount)&&Dt(ne,Ae,T),Mr(C,!0),ie&&G){const Gt=()=>{C.subTree=tu(C),G(ie,C.subTree,C,B,null)};dn&&Ct.__asyncHydrate?Ct.__asyncHydrate(ie,C,Gt):Gt()}else{qt.ce&&qt.ce._injectChildStyle(Ct);const Gt=C.subTree=tu(C);g(null,Gt,L,z,C,B,V),T.el=Gt.el}if(Pe&<(Pe,B),!dn&&(ne=me&&me.onVnodeMounted)){const Gt=T;lt(()=>Dt(ne,Ae,Gt),B)}(T.shapeFlag&256||Ae&&Rr(Ae.vnode)&&Ae.vnode.shapeFlag&256)&&C.a&<(C.a,B),C.isMounted=!0,T=L=z=null}};C.scope.on();const Y=C.effect=new cv(X);C.scope.off();const q=C.update=Y.run.bind(Y),ce=C.job=Y.runIfDirty.bind(Y);ce.i=C,ce.id=C.uid,Y.scheduler=()=>$d(ce),Mr(C,!0),q()},W=(C,T,L)=>{T.component=C;const z=C.vnode.props;C.vnode=T,C.next=null,XE(C,T.props,z,L),tT(C,T.children,L),sr(),Kh(C),ir()},H=(C,T,L,z,B,V,te,X,Y=!1)=>{const q=C&&C.children,ce=C?C.shapeFlag:0,ne=T.children,{patchFlag:ie,shapeFlag:me}=T;if(ie>0){if(ie&128){ge(q,ne,L,z,B,V,te,X,Y);return}else if(ie&256){Q(q,ne,L,z,B,V,te,X,Y);return}}me&8?(ce&16&&st(q,B,V),ne!==q&&c(L,ne)):ce&16?me&16?ge(q,ne,L,z,B,V,te,X,Y):st(q,B,V,!0):(ce&8&&c(L,""),me&16&&O(ne,L,z,B,V,te,X,Y))},Q=(C,T,L,z,B,V,te,X,Y)=>{C=C||is,T=T||is;const q=C.length,ce=T.length,ne=Math.min(q,ce);let ie;for(ie=0;ie<ne;ie++){const me=T[ie]=Y?wr(T[ie]):Zt(T[ie]);g(C[ie],me,L,null,B,V,te,X,Y)}q>ce?st(C,B,V,!0,!1,ne):O(T,L,z,B,V,te,X,Y,ne)},ge=(C,T,L,z,B,V,te,X,Y)=>{let q=0;const ce=T.length;let ne=C.length-1,ie=ce-1;for(;q<=ne&&q<=ie;){const me=C[q],Ee=T[q]=Y?wr(T[q]):Zt(T[q]);if(vn(me,Ee))g(me,Ee,L,null,B,V,te,X,Y);else break;q++}for(;q<=ne&&q<=ie;){const me=C[ne],Ee=T[ie]=Y?wr(T[ie]):Zt(T[ie]);if(vn(me,Ee))g(me,Ee,L,null,B,V,te,X,Y);else break;ne--,ie--}if(q>ne){if(q<=ie){const me=ie+1,Ee=me<ce?T[me].el:z;for(;q<=ie;)g(null,T[q]=Y?wr(T[q]):Zt(T[q]),L,Ee,B,V,te,X,Y),q++}}else if(q>ie)for(;q<=ne;)we(C[q],B,V,!0),q++;else{const me=q,Ee=q,Pe=new Map;for(q=Ee;q<=ie;q++){const Kt=T[q]=Y?wr(T[q]):Zt(T[q]);Kt.key!=null&&Pe.set(Kt.key,q)}let Ae,qt=0;const Ct=ie-Ee+1;let dn=!1,Gt=0;const qs=new Array(Ct);for(q=0;q<Ct;q++)qs[q]=0;for(q=me;q<=ne;q++){const Kt=C[q];if(qt>=Ct){we(Kt,B,V,!0);continue}let An;if(Kt.key!=null)An=Pe.get(Kt.key);else for(Ae=Ee;Ae<=ie;Ae++)if(qs[Ae-Ee]===0&&vn(Kt,T[Ae])){An=Ae;break}An===void 0?we(Kt,B,V,!0):(qs[An-Ee]=q+1,An>=Gt?Gt=An:dn=!0,g(Kt,T[An],L,null,B,V,te,X,Y),qt++)}const Wh=dn?oT(qs):is;for(Ae=Wh.length-1,q=Ct-1;q>=0;q--){const Kt=Ee+q,An=T[Kt],zh=Kt+1<ce?T[Kt+1].el:z;qs[q]===0?g(null,An,L,zh,B,V,te,X,Y):dn&&(Ae<0||q!==Wh[Ae]?le(An,L,zh,2):Ae--)}}},le=(C,T,L,z,B=null)=>{const{el:V,type:te,transition:X,children:Y,shapeFlag:q}=C;if(q&6){le(C.component.subTree,T,L,z);return}if(q&128){C.suspense.move(T,L,z);return}if(q&64){te.move(C,T,L,oe);return}if(te===je){r(V,T,L);for(let ne=0;ne<Y.length;ne++)le(Y[ne],T,L,z);r(C.anchor,T,L);return}if(te===us){m(C,T,L);return}if(z!==2&&q&1&&X)if(z===0)X.beforeEnter(V),r(V,T,L),lt(()=>X.enter(V),B);else{const{leave:ne,delayLeave:ie,afterLeave:me}=X,Ee=()=>{C.ctx.isUnmounted?o(V):r(V,T,L)},Pe=()=>{ne(V,()=>{Ee(),me&&me()})};ie?ie(V,Ee,Pe):Pe()}else r(V,T,L)},we=(C,T,L,z=!1,B=!1)=>{const{type:V,props:te,ref:X,children:Y,dynamicChildren:q,shapeFlag:ce,patchFlag:ne,dirs:ie,cacheIndex:me}=C;if(ne===-2&&(B=!1),X!=null&&(sr(),Ni(X,null,L,C,!0),ir()),me!=null&&(T.renderCache[me]=void 0),ce&256){T.ctx.deactivate(C);return}const Ee=ce&1&&ie,Pe=!Rr(C);let Ae;if(Pe&&(Ae=te&&te.onVnodeBeforeUnmount)&&Dt(Ae,T,C),ce&6)Ue(C.component,L,z);else{if(ce&128){C.suspense.unmount(L,z);return}Ee&&Nn(C,null,T,"beforeUnmount"),ce&64?C.type.remove(C,T,L,oe,z):q&&!q.hasOnce&&(V!==je||ne>0&&ne&64)?st(q,T,L,!1,!0):(V===je&&ne&384||!B&&ce&16)&&st(Y,T,L),z&&Xe(C)}(Pe&&(Ae=te&&te.onVnodeUnmounted)||Ee)&<(()=>{Ae&&Dt(Ae,T,C),Ee&&Nn(C,null,T,"unmounted")},L)},Xe=C=>{const{type:T,el:L,anchor:z,transition:B}=C;if(T===je){pt(L,z);return}if(T===us){_(C);return}const V=()=>{o(L),B&&!B.persisted&&B.afterLeave&&B.afterLeave()};if(C.shapeFlag&1&&B&&!B.persisted){const{leave:te,delayLeave:X}=B,Y=()=>te(L,V);X?X(C.el,V,Y):Y()}else V()},pt=(C,T)=>{let L;for(;C!==T;)L=d(C),o(C),C=L;o(T)},Ue=(C,T,L)=>{const{bum:z,scope:B,job:V,subTree:te,um:X,m:Y,a:q,parent:ce,slots:{__:ne}}=C;xl(Y),xl(q),z&&fi(z),ce&&be(ne)&&ne.forEach(ie=>{ce.renderCache[ie]=void 0}),B.stop(),V&&(V.flags|=8,we(te,C,T,L)),X&<(X,T),lt(()=>{C.isUnmounted=!0},T),T&&T.pendingBranch&&!T.isUnmounted&&C.asyncDep&&!C.asyncResolved&&C.suspenseId===T.pendingId&&(T.deps--,T.deps===0&&T.resolve())},st=(C,T,L,z=!1,B=!1,V=0)=>{for(let te=V;te<C.length;te++)we(C[te],T,L,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),L=T&&T[Dv];return L?d(L):T};let ee=!1;const J=(C,T,L)=>{C==null?T._vnode&&we(T._vnode,null,null,!0):g(T._vnode||null,C,T,null,null,null,L),T._vnode=C,ee||(ee=!0,Kh(),Cl(),ee=!1)},oe={p:g,um:we,m:le,r:Xe,mt:K,mc:O,pc:H,pbc:j,n:D,o:e};let ve,G;return t&&([ve,G]=t(oe)),{render:J,hydrate:ve,createApp:JE(J,ve)}}function eu({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 Mr({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function p0(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Dd(e,t,n=!1){const r=e.children,o=t.children;if(be(r)&&be(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]=wr(o[s]),a.el=i.el),!n&&a.patchFlag!==-2&&Dd(i,a)),a.type===rr&&(a.el=i.el),a.type===qe&&!a.el&&(a.el=i.el)}}function oT(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 g0(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:g0(t)}function xl(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const sT=Symbol.for("v-scx"),iT=()=>Te(sT);function Fn(e,t){return Bd(e,null,t)}function _e(e,t,n){return Bd(e,t,n)}function Bd(e,t,n=Le){const{immediate:r,deep:o,flush:s,once:i}=n,a=zt({},n),l=t&&r||!t&&s!=="post";let u;if(ys){if(s==="sync"){const h=iT();u=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=nr,h.resume=nr,h.pause=nr,h}}const c=ct;a.call=(h,p,g)=>Sn(h,c,p,g);let f=!1;s==="post"?a.scheduler=h=>{lt(h,c&&c.suspense)}:s!=="sync"&&(f=!0,a.scheduler=(h,p)=>{p?h():$d(h)}),a.augmentJob=h=>{t&&(h.flags|=4),f&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const d=iE(e,t,a);return ys&&(u?u.push(d):l&&d()),d}function aT(e,t,n){const r=this.proxy,o=dt(e)?e.includes(".")?m0(r,e):()=>r[e]:e.bind(r,r);let s;ye(t)?s=t:(s=t.handler,n=t);const i=mo(this),a=Bd(o,s.bind(r),n);return i(),a}function m0(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 lT=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${wn(t)}Modifiers`]||e[`${na(t)}Modifiers`];function cT(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Le;let o=n;const s=t.startsWith("update:"),i=s&&lT(r,t.slice(7));i&&(i.trim&&(o=n.map(c=>dt(c)?c.trim():c)),i.number&&(o=n.map(yE)));let a,l=r[a=Kc(t)]||r[a=Kc(wn(t))];!l&&s&&(l=r[a=Kc(na(t))]),l&&Sn(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,Sn(u,e,6,o)}}function y0(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(!ye(e)){const l=u=>{const c=y0(u,t,!0);c&&(a=!0,zt(i,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?(ht(e)&&r.set(e,null),null):(be(s)?s.forEach(l=>i[l]=null):zt(i,s),ht(e)&&r.set(e,i),i)}function cc(e,t){return!e||!nc(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ne(e,t[0].toLowerCase()+t.slice(1))||Ne(e,na(t))||Ne(e,t))}function tu(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=El(e);let b,v;try{if(n.shapeFlag&4){const _=o||r,S=_;b=Zt(u.call(S,_,c,f,h,d,p)),v=a}else{const _=t;b=Zt(_.length>1?_(f,{attrs:a,slots:i,emit:l}):_(f,null)),v=t.props?a:fT(a)}}catch(_){gi.length=0,Ns(_,e,1),b=P(qe)}let m=b;if(v&&g!==!1){const _=Object.keys(v),{shapeFlag:S}=m;_.length&&S&7&&(s&&_.some(Av)&&(v=dT(v,s)),m=Cn(m,v,!1,!0))}return n.dirs&&(m=Cn(m,null,!1,!0),m.dirs=m.dirs?m.dirs.concat(n.dirs):n.dirs),n.transition&&kr(m,n.transition),b=m,El(y),b}function uT(e,t=!0){let n;for(let r=0;r<e.length;r++){const o=e[r];if(nn(o)){if(o.type!==qe||o.children==="v-if"){if(n)return;n=o}}else return}return n}const fT=e=>{let t;for(const n in e)(n==="class"||n==="style"||nc(n))&&((t||(t={}))[n]=e[n]);return t},dT=(e,t)=>{const n={};for(const r in e)(!Av(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function hT(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?ap(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]&&!cc(u,d))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:r===i?!1:r?i?ap(r,i,u):!0:!!i;return!1}function ap(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]&&!cc(n,s))return!0}return!1}function uc({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 Al=e=>e.__isSuspense;let rf=0;const pT={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,s,i,a,l,u){if(e==null)gT(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}mT(e,t,n,r,o,i,a,l,u)}},hydrate:yT,normalize:vT},Ud=pT;function Li(e,t){const n=e.props&&e.props[t];ye(n)&&n()}function gT(e,t,n,r,o,s,i,a,l){const{p:u,o:{createElement:c}}=l,f=c("div"),d=e.suspense=v0(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?(Li(e,"onPending"),Li(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,s,i),cs(d,e.ssFallback)):d.resolve(!1,!0)}function mT(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,vn(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),cs(f,h)))):(f.pendingId=rf++,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),cs(f,h))):p&&vn(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&&vn(d,p))l(p,d,n,r,o,f,s,i,a),cs(f,d);else if(Li(t,"onPending"),f.pendingBranch=d,d.shapeFlag&512?f.pendingId=d.component.suspenseId:f.pendingId=rf++,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 v0(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=bT(e);v&&t&&t.pendingBranch&&(b=t.pendingId,t.deps++);const m=e.props?vE(e.props.timeout):void 0,_=s,S={vnode:e,parent:t,parentComponent:n,namespace:i,container:r,hiddenContainer:o,deps:0,pendingId:rf++,timeout:typeof m=="number"?m:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(E=!1,w=!1){const{vnode:O,activeBranch:A,pendingBranch:j,pendingId:N,effects:k,parentComponent:F,container:K}=S;let R=!1;S.isHydrating?S.isHydrating=!1:E||(R=A&&j.transition&&j.transition.mode==="out-in",R&&(A.transition.afterLeave=()=>{N===S.pendingId&&(d(j,K,s===_?p(A):s,0),Sl(k))}),A&&(g(A.el)===K&&(s=p(A)),h(A,F,S,!0)),R||d(j,K,s,0)),cs(S,j),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&&!R&&Sl(k),S.effects=[],v&&t&&t.pendingBranch&&b===t.pendingId&&(t.deps--,t.deps===0&&!w&&t.resolve()),Li(O,"onResolve")},fallback(E){if(!S.pendingBranch)return;const{vnode:w,activeBranch:O,parentComponent:A,container:j,namespace:N}=S;Li(w,"onFallback");const k=p(O),F=()=>{S.isInFallback&&(f(null,E,j,k,A,null,N,a,l),cs(S,E))},K=E.transition&&E.transition.mode==="out-in";K&&(O.transition.afterLeave=F),S.isInFallback=!0,h(O,A,null,!0),K||F()},move(E,w,O){S.activeBranch&&d(S.activeBranch,E,w,O),S.container=E},next(){return S.activeBranch&&p(S.activeBranch)},registerDep(E,w,O){const A=!!S.pendingBranch;A&&S.deps++;const j=E.vnode.el;E.asyncDep.catch(N=>{Ns(N,E,0)}).then(N=>{if(E.isUnmounted||S.isUnmounted||S.pendingId!==E.suspenseId)return;E.asyncResolved=!0;const{vnode:k}=E;af(E,N),j&&(k.el=j);const F=!j&&E.subTree.el;w(E,k,g(j||E.subTree.el),j?null:p(E.subTree),S,i,O),F&&y(F),uc(E,k.el),A&&--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 yT(e,t,n,r,o,s,i,a,l){const u=t.suspense=v0(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 vT(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=lp(r?n.default:n),e.ssFallback=r?lp(n.fallback):P(qe)}function lp(e){let t;if(ye(e)){const n=ms&&e._c;n&&(e._d=!1,It()),e=e(),n&&(e._d=!0,t=Bt,_0())}return be(e)&&(e=uT(e)),e=Zt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function b0(e,t){t&&t.pendingBranch?be(e)?t.effects.push(...e):t.effects.push(e):Sl(e)}function cs(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,uc(r,o))}function bT(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const je=Symbol.for("v-fgt"),rr=Symbol.for("v-txt"),qe=Symbol.for("v-cmt"),us=Symbol.for("v-stc"),gi=[];let Bt=null;function It(e=!1){gi.push(Bt=e?null:[])}function _0(){gi.pop(),Bt=gi[gi.length-1]||null}let ms=1;function cp(e,t=!1){ms+=e,e<0&&Bt&&t&&(Bt.hasOnce=!0)}function w0(e){return e.dynamicChildren=ms>0?Bt||is:null,_0(),ms>0&&Bt&&Bt.push(e),e}function Ol(e,t,n,r,o,s){return w0(Zn(e,t,n,r,o,s,!0))}function Mn(e,t,n,r,o){return w0(P(e,t,n,r,o,!0))}function nn(e){return e?e.__v_isVNode===!0:!1}function vn(e,t){return e.type===t.type&&e.key===t.key}const S0=({key:e})=>e??null,Qa=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?dt(e)||Me(e)||ye(e)?{i:ut,r:e,k:t,f:!!n}:e:null);function Zn(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&&S0(t),ref:t&&Qa(t),scopeId:jv,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:ut};return a?(Fd(l,n),s&128&&e.normalize(l)):n&&(l.shapeFlag|=dt(n)?8:16),ms>0&&!i&&Bt&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&Bt.push(l),l}const P=_T;function _T(e,t=null,n=null,r=0,o=null,s=!1){if((!e||e===Zv)&&(e=qe),nn(e)){const a=Cn(e,t,!0);return n&&Fd(a,n),ms>0&&!s&&Bt&&(a.shapeFlag&6?Bt[Bt.indexOf(e)]=a:Bt.push(a)),a.patchFlag=-2,a}if(AT(e)&&(e=e.__vccOpts),t){t=C0(t);let{class:a,style:l}=t;a&&!dt(a)&&(t.class=ac(a)),ht(l)&&(Td(l)&&!be(l)&&(l=zt({},l)),t.style=ic(l))}const i=dt(e)?1:Al(e)?128:Bv(e)?64:ht(e)?4:ye(e)?2:0;return Zn(e,t,n,r,o,i,s,!0)}function C0(e){return e?Td(e)||a0(e)?zt({},e):e:null}function Cn(e,t,n=!1,r=!1){const{props:o,ref:s,patchFlag:i,children:a,transition:l}=e,u=t?x0(o||{},t):o,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&S0(u),ref:t&&t.ref?n&&s?be(s)?s.concat(Qa(t)):[s,Qa(t)]:Qa(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&&Cn(e.ssContent),ssFallback:e.ssFallback&&Cn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&kr(c,l.clone(c)),c}function E0(e=" ",t=0){return P(rr,null,e,t)}function j8(e,t){const n=P(us,null,e);return n.staticCount=t,n}function T0(e="",t=!1){return t?(It(),Mn(qe,null,e)):P(qe,null,e)}function Zt(e){return e==null||typeof e=="boolean"?P(qe):be(e)?P(je,null,e.slice()):nn(e)?wr(e):P(rr,null,String(e))}function wr(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Cn(e)}function Fd(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(be(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),Fd(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!a0(t)?t._ctx=ut:o===3&&ut&&(ut.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ye(t)?(t={default:t,_ctx:ut},n=32):(t=String(t),r&64?(n=16,t=[E0(t)]):n=8);e.children=t,e.shapeFlag|=n}function x0(...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=ac([t.class,r.class]));else if(o==="style")t.style=ic([t.style,r.style]);else if(nc(o)){const s=t[o],i=r[o];i&&s!==i&&!(be(s)&&s.includes(i))&&(t[o]=s?[].concat(s,i):i)}else o!==""&&(t[o]=r[o])}return t}function Dt(e,t,n,r=null){Sn(e,t,7,[n,r])}const wT=o0();let ST=0;function CT(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||wT,s={uid:ST++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new lv(!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:c0(r,o),emitsOptions:y0(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=cT.bind(null,s),e.ce&&e.ce(s),s}let ct=null;const jt=()=>ct||ut;let Pl,of;{const e=sc(),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=>ct=n),of=t("__VUE_SSR_SETTERS__",n=>ys=n)}const mo=e=>{const t=ct;return Pl(e),e.scope.on(),()=>{e.scope.off(),Pl(t)}},sf=()=>{ct&&ct.scope.off(),Pl(null)};function A0(e){return e.vnode.shapeFlag&4}let ys=!1;function ET(e,t=!1,n=!1){t&&of(t);const{props:r,children:o}=e.vnode,s=A0(e);YE(e,r,s,t),eT(e,o,n||t);const i=s?TT(e,t):void 0;return t&&of(!1),i}function TT(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,HE);const{setup:r}=n;if(r){sr();const o=e.setupContext=r.length>1?P0(e):null,s=mo(e),i=ra(r,e,0,[e.props,o]),a=Od(i);if(ir(),s(),(a||e.sp)&&!Rr(e)&&Id(e),a){if(i.then(sf,sf),t)return i.then(l=>{af(e,l)}).catch(l=>{Ns(l,e,0)});e.asyncDep=i}else af(e,i)}else O0(e)}function af(e,t,n){ye(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ht(t)&&(e.setupState=Ev(t)),O0(e)}function O0(e,t,n){const r=e.type;e.render||(e.render=r.render||nr);{const o=mo(e);sr();try{WE(e)}finally{ir(),o()}}}const xT={get(e,t){return Tt(e,"get",""),e[t]}};function P0(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,xT),slots:e.slots,emit:e.emit,expose:t}}function fc(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ev(xd(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in pi)return pi[n](e)},has(t,n){return n in t||n in pi}})):e.proxy}function lf(e,t=!0){return ye(e)?e.displayName||e.name:e.name||t&&e.__name}function AT(e){return ye(e)&&"__vccOpts"in e}const $=(e,t)=>oE(e,t,ys);function ft(e,t,n){const r=arguments.length;return r===2?ht(t)&&!be(t)?nn(t)?P(e,null,[t]):P(e,t):P(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&nn(n)&&(n=[n]),P(e,t,n))}const OT="3.5.14";function PT(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const $T=()=>{},RT=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),kT=e=>e.startsWith("onUpdate:"),dc=Object.assign,lr=Array.isArray,$0=e=>k0(e)==="[object Set]",up=e=>k0(e)==="[object Date]",R0=e=>typeof e=="function",vs=e=>typeof e=="string",cf=e=>typeof e=="symbol",uf=e=>e!==null&&typeof e=="object",IT=Object.prototype.toString,k0=e=>IT.call(e),Hd=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},NT=/-(\w)/g,LT=Hd(e=>e.replace(NT,(t,n)=>n?n.toUpperCase():"")),jT=/\B([A-Z])/g,Wd=Hd(e=>e.replace(jT,"-$1").toLowerCase()),MT=Hd(e=>e.charAt(0).toUpperCase()+e.slice(1)),DT=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},fp=e=>{const t=parseFloat(e);return isNaN(t)?e:t},BT=e=>{const t=vs(e)?Number(e):NaN;return isNaN(t)?e:t},UT="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",FT=PT(UT);function I0(e){return!!e||e===""}function HT(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=hc(e[r],t[r]);return n}function hc(e,t){if(e===t)return!0;let n=up(e),r=up(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=cf(e),r=cf(t),n||r)return e===t;if(n=lr(e),r=lr(t),n||r)return n&&r?HT(e,t):!1;if(n=uf(e),r=uf(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||!hc(e[i],t[i]))return!1}}return String(e)===String(t)}function N0(e,t){return e.findIndex(n=>hc(n,t))}let ff;const dp=typeof window<"u"&&window.trustedTypes;if(dp)try{ff=dp.createPolicy("vue",{createHTML:e=>e})}catch{}const L0=ff?e=>ff.createHTML(e):e=>e,WT="http://www.w3.org/2000/svg",zT="http://www.w3.org/1998/Math/MathML",Gn=typeof document<"u"?document:null,hp=Gn&&Gn.createElement("template"),VT={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"?Gn.createElementNS(WT,e):t==="mathml"?Gn.createElementNS(zT,e):n?Gn.createElement(e,{is:n}):Gn.createElement(e);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>Gn.createTextNode(e),createComment:e=>Gn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Gn.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{hp.innerHTML=L0(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=hp.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]}},gr="transition",Ks="animation",bs=Symbol("_vtc"),j0={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},M0=dc({},Wv,j0),qT=e=>(e.displayName="Transition",e.props=M0,e),Ms=qT((e,{slots:t})=>ft(OE,D0(e),t)),Dr=(e,t=[])=>{lr(e)?e.forEach(n=>n(...t)):e&&e(...t)},pp=e=>e?lr(e)?e.some(t=>t.length>1):e.length>1:!1;function D0(e){const t={};for(const k in e)k in j0||(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=GT(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:O=m}=t,A=(k,F,K,R)=>{k._enterCancelled=R,yr(k,F?c:a),yr(k,F?u:i),K&&K()},j=(k,F)=>{k._isLeaving=!1,yr(k,f),yr(k,h),yr(k,d),F&&F()},N=k=>(F,K)=>{const R=k?w:v,I=()=>A(F,k,K);Dr(R,[F,I]),gp(()=>{yr(F,k?l:s),Pn(F,k?c:a),pp(R)||mp(F,r,g,I)})};return dc(t,{onBeforeEnter(k){Dr(b,[k]),Pn(k,s),Pn(k,i)},onBeforeAppear(k){Dr(E,[k]),Pn(k,l),Pn(k,u)},onEnter:N(!1),onAppear:N(!0),onLeave(k,F){k._isLeaving=!0;const K=()=>j(k,F);Pn(k,f),k._enterCancelled?(Pn(k,d),df()):(df(),Pn(k,d)),gp(()=>{k._isLeaving&&(yr(k,f),Pn(k,h),pp(_)||mp(k,r,y,K))}),Dr(_,[k,K])},onEnterCancelled(k){A(k,!1,void 0,!0),Dr(m,[k])},onAppearCancelled(k){A(k,!0,void 0,!0),Dr(O,[k])},onLeaveCancelled(k){j(k),Dr(S,[k])}})}function GT(e){if(e==null)return null;if(uf(e))return[nu(e.enter),nu(e.leave)];{const t=nu(e);return[t,t]}}function nu(e){return BT(e)}function Pn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[bs]||(e[bs]=new Set)).add(t)}function yr(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[bs];n&&(n.delete(t),n.size||(e[bs]=void 0))}function gp(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let KT=0;function mp(e,t,n,r){const o=e._endId=++KT,s=()=>{o===e._endId&&r()};if(n!=null)return setTimeout(s,n);const{type:i,timeout:a,propCount:l}=B0(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 B0(e,t){const n=window.getComputedStyle(e),r=p=>(n[p]||"").split(", "),o=r(`${gr}Delay`),s=r(`${gr}Duration`),i=yp(o,s),a=r(`${Ks}Delay`),l=r(`${Ks}Duration`),u=yp(a,l);let c=null,f=0,d=0;t===gr?i>0&&(c=gr,f=i,d=s.length):t===Ks?u>0&&(c=Ks,f=u,d=l.length):(f=Math.max(i,u),c=f>0?i>u?gr:Ks:null,d=c?c===gr?s.length:l.length:0);const h=c===gr&&/\b(transform|all)(,|$)/.test(r(`${gr}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:h}}function yp(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>vp(n)+vp(e[r])))}function vp(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function df(){return document.body.offsetHeight}function JT(e,t,n){const r=e[bs];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const $l=Symbol("_vod"),U0=Symbol("_vsh"),F0={beforeMount(e,{value:t},{transition:n}){e[$l]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Js(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),Js(e,!0),r.enter(e)):r.leave(e,()=>{Js(e,!1)}):Js(e,t))},beforeUnmount(e,{value:t}){Js(e,t)}};function Js(e,t){e.style.display=t?e[$l]:"none",e[U0]=!t}const H0=Symbol("");function M8(e){const t=jt();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(s=>Rl(s,o))},r=()=>{const o=e(t.proxy);t.ce?Rl(t.ce,o):hf(t.subTree,o),n(o)};Xv(()=>{Sl(r)}),gt(()=>{_e(r,$T,{flush:"post"});const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),js(()=>o.disconnect())})}function hf(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{hf(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Rl(e.el,t);else if(e.type===je)e.children.forEach(n=>hf(n,t));else if(e.type===us){let{el:n,anchor:r}=e;for(;n&&(Rl(n,t),n!==r);)n=n.nextSibling}}function Rl(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[H0]=r}}const YT=/(^|;)\s*display\s*:/;function XT(e,t,n){const r=e.style,o=vs(n);let s=!1;if(n&&!o){if(t)if(vs(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&Za(r,a,"")}else for(const i in t)n[i]==null&&Za(r,i,"");for(const i in n)i==="display"&&(s=!0),Za(r,i,n[i])}else if(o){if(t!==n){const i=r[H0];i&&(n+=";"+i),r.cssText=n,s=YT.test(n)}}else t&&e.removeAttribute("style");$l in e&&(e[$l]=s?r.display:"",e[U0]&&(r.display="none"))}const bp=/\s*!important$/;function Za(e,t,n){if(lr(n))n.forEach(r=>Za(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=QT(e,t);bp.test(n)?e.setProperty(Wd(r),n.replace(bp,""),"important"):e[r]=n}}const _p=["Webkit","Moz","ms"],ru={};function QT(e,t){const n=ru[t];if(n)return n;let r=wn(t);if(r!=="filter"&&r in e)return ru[t]=r;r=MT(r);for(let o=0;o<_p.length;o++){const s=_p[o]+r;if(s in e)return ru[t]=s}return t}const wp="http://www.w3.org/1999/xlink";function Sp(e,t,n,r,o,s=FT(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(wp,t.slice(6,t.length)):e.setAttributeNS(wp,t,n):n==null||s&&!I0(n)?e.removeAttribute(t):e.setAttribute(t,s?"":cf(n)?String(n):n)}function Cp(e,t,n,r,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?L0(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=I0(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 Gr(e,t,n,r){e.addEventListener(t,n,r)}function ZT(e,t,n,r){e.removeEventListener(t,n,r)}const Ep=Symbol("_vei");function ex(e,t,n,r,o=null){const s=e[Ep]||(e[Ep]={}),i=s[t];if(r&&i)i.value=r;else{const[a,l]=tx(t);if(r){const u=s[t]=ox(r,o);Gr(e,a,u,l)}else i&&(ZT(e,a,i,l),s[t]=void 0)}}const Tp=/(?:Once|Passive|Capture)$/;function tx(e){let t;if(Tp.test(e)){t={};let r;for(;r=e.match(Tp);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Wd(e.slice(2)),t]}let ou=0;const nx=Promise.resolve(),rx=()=>ou||(nx.then(()=>ou=0),ou=Date.now());function ox(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Sn(sx(r,n.value),t,5,[r])};return n.value=e,n.attached=rx(),n}function sx(e,t){if(lr(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 xp=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ix=(e,t,n,r,o,s)=>{const i=o==="svg";t==="class"?JT(e,r,i):t==="style"?XT(e,n,r):RT(t)?kT(t)||ex(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ax(e,t,r,i))?(Cp(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)||!vs(r))?Cp(e,LT(t),r,s,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Sp(e,t,r,i))};function ax(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&xp(t)&&R0(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 xp(t)&&vs(n)?!1:t in e}const W0=new WeakMap,z0=new WeakMap,kl=Symbol("_moveCb"),Ap=Symbol("_enterCb"),lx=e=>(delete e.props.mode,e),cx=lx({name:"TransitionGroup",props:dc({},M0,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=jt(),r=Hv();let o,s;return Ls(()=>{if(!o.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!hx(o[0].el,n.vnode.el,i)){o=[];return}o.forEach(ux),o.forEach(fx);const a=o.filter(dx);df(),a.forEach(l=>{const u=l.el,c=u.style;Pn(u,i),c.transform=c.webkitTransform=c.transitionDuration="";const f=u[kl]=d=>{d&&d.target!==u||(!d||/transform$/.test(d.propertyName))&&(u.removeEventListener("transitionend",f),u[kl]=null,yr(u,i))};u.addEventListener("transitionend",f)}),o=[]}),()=>{const i=Se(e),a=D0(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),kr(c,Ii(c,a,r,n)),W0.set(c,c.el.getBoundingClientRect()))}s=t.default?kd(t.default()):[];for(let u=0;u<s.length;u++){const c=s[u];c.key!=null&&kr(c,Ii(c,a,r,n))}return P(l,null,s)}}}),V0=cx;function ux(e){const t=e.el;t[kl]&&t[kl](),t[Ap]&&t[Ap]()}function fx(e){z0.set(e,e.el.getBoundingClientRect())}function dx(e){const t=W0.get(e),n=z0.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 hx(e,t,n){const r=e.cloneNode(),o=e[bs];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}=B0(r);return s.removeChild(r),i}const Il=e=>{const t=e.props["onUpdate:modelValue"]||!1;return lr(t)?n=>DT(t,n):t};function px(e){e.target.composing=!0}function Op(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const fs=Symbol("_assign"),D8={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[fs]=Il(o);const s=r||o.props&&o.props.type==="number";Gr(e,t?"change":"input",i=>{if(i.target.composing)return;let a=e.value;n&&(a=a.trim()),s&&(a=fp(a)),e[fs](a)}),n&&Gr(e,"change",()=>{e.value=e.value.trim()}),t||(Gr(e,"compositionstart",px),Gr(e,"compositionend",Op),Gr(e,"change",Op))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:o,number:s}},i){if(e[fs]=Il(i),e.composing)return;const a=(s||e.type==="number")&&!/^0\d/.test(e.value)?fp(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))}},B8={deep:!0,created(e,t,n){e[fs]=Il(n),Gr(e,"change",()=>{const r=e._modelValue,o=gx(e),s=e.checked,i=e[fs];if(lr(r)){const a=N0(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($0(r)){const a=new Set(r);s?a.add(o):a.delete(o),i(a)}else i(q0(e,s))})},mounted:Pp,beforeUpdate(e,t,n){e[fs]=Il(n),Pp(e,t,n)}};function Pp(e,{value:t,oldValue:n},r){e._modelValue=t;let o;if(lr(t))o=N0(t,r.props.value)>-1;else if($0(t))o=t.has(r.props.value);else{if(t===n)return;o=hc(t,q0(e,!0))}e.checked!==o&&(e.checked=o)}function gx(e){return"_value"in e?e._value:e.value}function q0(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const mx=["ctrl","shift","alt","meta"],yx={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)=>mx.some(n=>e[`${n}Key`]&&!t.includes(n))},U8=(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=yx[t[i]];if(a&&a(o,t))return}return e(o,...s)})},vx={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},F8=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=o=>{if(!("key"in o))return;const s=Wd(o.key);if(t.some(i=>i===s||vx[i]===s))return e(o)})},G0=dc({patchProp:ix},VT);let mi,$p=!1;function K0(){return mi||(mi=nT(G0))}function bx(){return mi=$p?mi:rT(G0),$p=!0,mi}const yo=(...e)=>{K0().render(...e)},_x=(...e)=>{const t=K0().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Y0(r);if(!o)return;const s=t._component;!R0(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const i=n(o,!1,J0(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t},wx=(...e)=>{const t=bx().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Y0(r);if(o)return n(o,!0,J0(o))},t};function J0(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Y0(e){return vs(e)?document.querySelector(e):e}const Sx=/"(?:_|\\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*:/,Cx=/"(?: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*:/,Ex=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Tx(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){xx(e);return}return t}function xx(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function ji(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(!Ex.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Sx.test(e)||Cx.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,Tx)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const X0=/#/g,Q0=/&/g,Ax=/\//g,Ox=/=/g,Px=/\?/g,pc=/\+/g,$x=/%5e/gi,Rx=/%60/gi,kx=/%7c/gi,Ix=/%20/gi,Nx=/%2f/gi,Lx=/%252f/gi;function Z0(e){return encodeURI(""+e).replace(kx,"|")}function pf(e){return Z0(typeof e=="string"?e:JSON.stringify(e)).replace(pc,"%2B").replace(Ix,"+").replace(X0,"%23").replace(Q0,"%26").replace(Rx,"`").replace($x,"^").replace(Ax,"%2F")}function su(e){return pf(e).replace(Ox,"%3D")}function jx(e){return Z0(e).replace(X0,"%23").replace(Px,"%3F").replace(Lx,"%2F").replace(Q0,"%26").replace(pc,"%2B")}function Mi(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function Mx(e){return Mi(e.replace(Nx,"%252F"))}function Dx(e){return Mi(e.replace(pc," "))}function Bx(e){return Mi(e.replace(pc," "))}function eb(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=Dx(r[1]);if(o==="__proto__"||o==="constructor")continue;const s=Bx(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 Ux(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${su(e)}=${pf(n)}`).join("&"):`${su(e)}=${pf(t)}`:su(e)}function Fx(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>Ux(t,e[t])).filter(Boolean).join("&")}const Hx=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,tb=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,Wx=/^([/\\]\s*){2,}[^/\\]/,zx=/^[\s\0]*(blob|data|javascript|vbscript):$/i,Vx=/\/$|\/\?|\/#/,qx=/^\.?\//;function xo(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?Hx.test(e):tb.test(e)||(t.acceptRelative?Wx.test(e):!1)}function Gx(e){return!!e&&zx.test(e)}function gf(e="",t){return t?Vx.test(e):e.endsWith("/")}function Nl(e="",t){if(!t)return(gf(e)?e.slice(0,-1):e)||"/";if(!gf(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 Kx(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(gf(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 Jx(e,t){if(rb(t)||xo(e))return e;const n=Nl(t);if(e.startsWith(n)){const r=e[n.length];if(!r||r==="/"||r==="?")return e}return ob(n,e)}function Rp(e,t){if(rb(t))return e;const n=Nl(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 nb(e,t){const n=zd(e),r={...eb(n.search),...t};return n.search=Fx(r),e1(n)}function rb(e){return!e||e==="/"}function Yx(e){return e&&e!=="/"}function ob(e,...t){let n=e||"";for(const r of t.filter(o=>Yx(o)))if(n){const o=r.replace(qx,"");n=Kx(n)+o}else n=r;return n}function sb(...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&&xo(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 Xx(e){return Qx(e,"https://")}function Qx(e,t){let n=e.match(tb);return n||(n=e.match(/^\/{2,}/)),n?t+e.slice(n[0].length):t+e}function Zx(e,t){return Mi(Nl(e))===Mi(Nl(t))}const ib=Symbol.for("ufo:protocolRelative");function zd(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(!xo(e,{acceptRelative:!0}))return kp(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}=kp(a);return{protocol:r.toLowerCase(),auth:o?o.slice(0,Math.max(0,o.length-1)):"",host:i,pathname:l,search:u,hash:c,[ib]:!r}}function kp(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function e1(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[ib]?(e.protocol||"")+"//":"")+o+s+t+n+r}class t1 extends Error{constructor(t,n){super(t,n),this.name="FetchError",n?.cause&&!this.cause&&(this.cause=n.cause)}}function n1(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 t1(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 r1=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function Ip(e="GET"){return r1.has(e.toUpperCase())}function o1(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 s1=new Set(["image/svg","application/xml","application/xhtml","application/html"]),i1=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function a1(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return i1.test(t)?"json":t==="text/event-stream"?"stream":s1.has(t)||t.startsWith("text/")?"text":"blob"}function l1(e,t,n,r){const o=c1(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 c1(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 Pa(e,t){if(t)if(Array.isArray(t))for(const n of t)await n(e);else await t(e)}const u1=new Set([408,409,425,429,500,502,503,504]),f1=new Set([101,204,205,304]);function ab(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=Ip(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):u1.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=n1(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,s),u}const s=async function(l,u={}){const c={request:l,options:l1(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 Pa(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=Jx(c.request,c.options.baseURL)),c.options.query&&(c.request=nb(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&&Ip(c.options.method))if(o1(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 Pa(c,c.options.onRequestError),await o(c)}finally{f&&clearTimeout(f)}if((c.response.body||c.response._bodyInit)&&!f1.has(c.response.status)&&c.options.method!=="HEAD"){const h=(c.options.parseResponse?"json":c.options.responseType)||a1(c.response.headers.get("content-type")||"");switch(h){case"json":{const p=await c.response.text(),g=c.options.parseResponse||ji;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 Pa(c,c.options.onResponse),!c.options.ignoreResponseError&&c.response.status>=400&&c.response.status<600?(c.options.onResponseError&&await Pa(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={})=>ab({...e,...l,defaults:{...e.defaults,...l.defaults,...a}}),i}const Ll=(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")})(),d1=Ll.fetch?(...e)=>Ll.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),h1=Ll.Headers,p1=Ll.AbortController,g1=ab({fetch:d1,Headers:h1,AbortController:p1}),m1=g1,y1=()=>window?.__NUXT__?.config||window?.useNuxtApp?.().payload?.config,Vd=()=>y1().app,v1=()=>Vd().baseURL,b1=()=>Vd().buildAssetsDir,qd=(...e)=>sb(lb(),b1(),...e),lb=(...e)=>{const t=Vd(),n=t.cdnURL||t.baseURL;return e.length?sb(n,...e):n};globalThis.__buildAssetsURL=qd,globalThis.__publicAssetsURL=lb;globalThis.$fetch||(globalThis.$fetch=m1.create({baseURL:v1()}));"global"in globalThis||(globalThis.global=globalThis);function mf(e,t={},n){for(const r in e){const o=e[r],s=n?`${n}:${r}`:r;typeof o=="object"&&o!==null?mf(o,t,s):typeof o=="function"&&(t[s]=o)}return t}const _1={run:e=>e()},w1=()=>_1,cb=typeof console.createTask<"u"?console.createTask:w1;function S1(e,t){const n=t.shift(),r=cb(n);return e.reduce((o,s)=>o.then(()=>r.run(()=>s(...t))),Promise.resolve())}function C1(e,t){const n=t.shift(),r=cb(n);return Promise.all(e.map(o=>r.run(()=>o(...t))))}function iu(e,t){for(const n of[...e])n(t)}let E1=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=mf(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=mf(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(S1,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(C1,t,...n)}callHookWith(t,n,...r){const o=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&iu(this._before,o);const s=t(n in this._hooks?[...this._hooks[n]]:[],r);return s instanceof Promise?s.finally(()=>{this._after&&o&&iu(this._after,o)}):(this._after&&o&&iu(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 T1(){return new E1}function x1(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;yf.add(u);try{const c=o?o.run(i,a):a();return n||(t=void 0),await c}finally{yf.delete(u)}}}}function A1(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=x1({...e,...r})),t[n]}}}const jl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},Np="__unctx__",O1=jl[Np]||(jl[Np]=A1()),P1=(e,t={})=>O1.get(e,t),Lp="__unctx_async_handlers__",yf=jl[Lp]||(jl[Lp]=new Set);function ao(e){const t=[];for(const o of yf){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 $1=!1,jp=!1,R1=!1,Mp={id:"__nuxt-loader"},W8={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},z8={deep:!1},k1="#__nuxt",ub="nuxt-app",Dp=36e5,I1="vite:preloadError";function fb(e=ub){return P1(e,{asyncContext:!1})}const N1="__nuxt_plugin";function L1(e){let t=0;const n={_id:e.id||ub||"nuxt-app",_scope:vd(),provide:void 0,versions:{get nuxt(){return"4.3.1"},get vue(){return n.vueApp.version}},payload:Dn({...e.ssrContext?.payload||{},data:Dn({}),state:rt({}),once:new Set,_errors:Dn({})}),static:{data:{}},runWithContext(o){return n._scope.active&&!Is()?n._scope.run(()=>Bp(n,o)):Bp(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:Dn({}),_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=T1(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(o,s)=>{const i="$"+o;$a(n,i,s),$a(n.vueApp.config.globalProperties,i,s)},$a(n.vueApp,"$nuxt",n),$a(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(I1,s=>{n.callHook("app:chunkError",{error:s.payload}),s.payload.message.includes("Unable to preload CSS")&&s.preventDefault()}),window.useNuxtApp||=Je;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 j1(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function M1(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 D1(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=M1(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)j1(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,{[N1]:!0,_name:t})}const B1=De;function Bp(e,t,n){const r=()=>t();return fb(e._id).set(e),e.vueApp.runWithContext(r)}function U1(e){let t;return To()&&(t=jt()?.appContext.app.$nuxt),t||=fb(e).tryUse(),t||null}function Je(e){const t=U1(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function sa(e){return Je().$config}function $a(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function au(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 vf(e,t,n=".",r){if(!au(t))return vf(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]]:au(i)&&au(o[s])?o[s]=vf(i,o[s],(n?`${n}.`:"")+s.toString(),r):o[s]=i))}return o}function F1(e){return(...t)=>t.reduce((n,r)=>vf(n,r,"",e),{})}const db=F1();function H1(e,t){try{return t in e}catch{return!1}}class Up 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:bf(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=hb(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}function W1(e){if(typeof e=="string")return new Up(e);if(z1(e))return e;const t=new Up(e.message??e.statusMessage??"",{cause:e.cause||e});if(H1(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=bf(e.statusCode,t.statusCode):e.status&&(t.statusCode=bf(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;hb(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 z1(e){return e?.constructor?.__h3_error__===!0}const V1=/[^\u0009\u0020-\u007E]/g;function hb(e=""){return e.replace(V1,"")}function bf(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const pb=Symbol("layout-meta"),vo=Symbol("route");import.meta.url.replace(/\/app\/.*$/,"/");const Pt=()=>Je()?.$router,Gd=()=>To()?Te(vo,Je()._route):Je()._route;const q1=()=>{try{if(Je()._processingMiddleware)return!0}catch{return!1}return!1},Ys=(e,t)=>{e||="/";const n=typeof e=="string"?e:"path"in e?G1(e):Pt().resolve(e).href;if(t?.open){const{target:u="_blank",windowFeatures:c={}}=t.open,f=[];for(const[d,h]of Object.entries(c))h!==void 0&&f.push(`${d.toLowerCase()}=${h}`);return open(n,u,f.join(", ")),Promise.resolve()}const r=xo(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:u}=new URL(n,window.location.href);if(u&&Gx(u))throw new Error(`Cannot navigate to a URL with '${u}' protocol.`)}const s=q1();if(!o&&s){if(t?.replace){if(typeof e=="string"){const{pathname:u,search:c,hash:f}=zd(e);return{path:u,...c&&{query:eb(c)},...f&&{hash:f},replace:!0}}return{...e,replace:!0}}return e}const i=Pt(),a=Je();if(o)return a._scope.stop(),t?.replace?location.replace(n):location.href=n,s?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve();const l=typeof e=="string"?K1(e):e;return t?.replace?i.replace(l):i.push(l)};function G1(e){return nb(e.path||"",e.query||{})+(e.hash||"")}function K1(e){const t=zd(e);return jx(Mx(t.pathname))+t.search+t.hash}const gb="__nuxt_error",gc=()=>tc(Je().payload,"error"),Vr=e=>{const t=lo(e);try{const n=gc();Je().hooks.callHook("app:error",t),n.value||=t}catch{throw t}return t},J1=async(e={})=>{const t=Je(),n=gc();t.callHook("app:error:cleared",e),e.redirect&&await Pt().replace(e.redirect),n.value=void 0},mb=e=>!!e&&typeof e=="object"&&gb in e,lo=e=>{typeof e!="string"&&e.statusText&&(e.message??=e.statusText);const t=W1(e);return Object.defineProperty(t,gb,{value:!0,configurable:!1,writable:!1}),Object.defineProperty(t,"status",{get:()=>t.statusCode,configurable:!0}),Object.defineProperty(t,"statusText",{get:()=>t.statusMessage,configurable:!0}),t};let yb;const _s=e=>yb=e,vb=Symbol();function _f(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var yi;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(yi||(yi={}));function Y1(){const e=vd(!0),t=e.run(()=>Z({}));let n=[],r=[];const o=xd({install(s){_s(o),o._a=s,s.provide(vb,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 bb=()=>{};function Fp(e,t,n,r=bb){e.add(t);const o=()=>{e.delete(t)&&r()};return!n&&Is()&&Pi(o),o}function Do(e,...t){e.forEach(n=>{n(...t)})}const X1=e=>e(),Hp=Symbol(),lu=Symbol();function wf(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];_f(o)&&_f(r)&&e.hasOwnProperty(n)&&!Me(r)&&!Bn(r)?e[n]=wf(o,r):e[n]=r}return e}const Q1=Symbol();function Z1(e){return!_f(e)||!Object.prototype.hasOwnProperty.call(e,Q1)}const{assign:vr}=Object;function eA(e){return!!(Me(e)&&e.effect)}function tA(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=eE(n.state.value[e]);return vr(c,s,Object.keys(i||{}).reduce((f,d)=>(f[d]=xd($(()=>{_s(n);const h=n._s.get(e);return i[d].call(h,h)})),f),{}))}return l=_b(e,u,t,n,r,!0),l}function _b(e,t,n={},r,o,s){let i;const a=vr({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]={}),Z({});let g;function y(O){let A;u=c=!1,typeof O=="function"?(O(r.state.value[e]),A={type:yi.patchFunction,storeId:e,events:h}):(wf(r.state.value[e],O),A={type:yi.patchObject,payload:O,storeId:e,events:h});const j=g=Symbol();Ot().then(()=>{g===j&&(u=!0)}),c=!0,Do(f,A,r.state.value[e])}const b=s?function(){const{state:A}=n,j=A?A():{};this.$patch(N=>{vr(N,j)})}:bb;function v(){i.stop(),f.clear(),d.clear(),r._s.delete(e)}const m=(O,A="")=>{if(Hp in O)return O[lu]=A,O;const j=function(){_s(r);const N=Array.from(arguments),k=new Set,F=new Set;function K(W){k.add(W)}function R(W){F.add(W)}Do(d,{args:N,name:j[lu],store:S,after:K,onError:R});let I;try{I=O.apply(this&&this.$id===e?this:S,N)}catch(W){throw Do(F,W),W}return I instanceof Promise?I.then(W=>(Do(k,W),W)).catch(W=>(Do(F,W),Promise.reject(W))):(Do(k,I),I)};return j[Hp]=!0,j[lu]=A,j},_={_p:r,$id:e,$onAction:Fp.bind(null,d),$patch:y,$reset:b,$subscribe(O,A={}){const j=Fp(f,O,A.detached,()=>N()),N=i.run(()=>_e(()=>r.state.value[e],k=>{(A.flush==="sync"?c:u)&&O({storeId:e,type:yi.direct,events:h},k)},vr({},l,A)));return j},$dispose:v},S=rt(_);r._s.set(e,S);const w=(r._a&&r._a.runWithContext||X1)(()=>r._e.run(()=>(i=vd()).run(()=>t({action:m}))));for(const O in w){const A=w[O];if(Me(A)&&!eA(A)||Bn(A))s||(p&&Z1(A)&&(Me(A)?A.value=p[O]:wf(A,p[O])),r.state.value[e][O]=A);else if(typeof A=="function"){const j=m(A,O);w[O]=j,a.actions[O]=A}}return vr(S,w),vr(Se(S),w),Object.defineProperty(S,"$state",{get:()=>r.state.value[e],set:O=>{y(A=>{vr(A,O)})}}),r._p.forEach(O=>{vr(S,i.run(()=>O({store:S,app:r._a,pinia:r,options:a})))}),p&&s&&n.hydrate&&n.hydrate(S.$state,p),u=!0,c=!0,S}function ia(e,t,n){let r;const o=typeof t=="function";r=o?n:t;function s(i,a){const l=To();return i=i||(l?Te(vb,null):null),i&&_s(i),i=yb,i._s.has(e)||(o?_b(e,t,r,i):tA(e,r,i)),i._s.get(e)}return s.$id=e,s}function V8(e){const t=Se(e),n={};for(const r in t){const o=t[r];o.effect?n[r]=$({get:()=>e[r],set(s){e[r]=s}}):(Me(o)||Bn(o))&&(n[r]=tc(e,r))}return n}function nA(e){const t=oA(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 rA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function oA(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|=rA.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 sA=-1,iA=-2,aA=-3,lA=-4,cA=-5,uA=-6,fA=-7;function dA(e,t){return hA(JSON.parse(e),t)}function hA(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===sA)return;if(i===aA)return NaN;if(i===lA)return 1/0;if(i===cA)return-1/0;if(i===uA)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=nA(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 if(l[0]===fA){const u=l[1],c=new Array(u);r[i]=c;for(let f=2;f<l.length;f+=2){const d=l[f];c[d]=s(l[f+1])}}else{const u=new Array(l.length);r[i]=u;for(let c=0;c<l.length;c+=1){const f=l[c];f!==iA&&(u[c]=s(f))}}else{const u={};r[i]=u;for(const c of Object.keys(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 pA=new Set(["link","style","script","noscript"]),gA=new Set(["title","titleTemplate","script","style","noscript"]),Wp=new Set(["base","meta","link","style","script","noscript"]),mA=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),yA=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),vA=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),bA=new Set(["templateParams","htmlAttrs","bodyAttrs"]),_A=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]);function Sf(e,t={},n){for(const r in e){const o=e[r],s=n?`${n}:${r}`:r;typeof o=="object"&&o!==null?Sf(o,t,s):typeof o=="function"&&(t[s]=o)}return t}const wb=(()=>{if(console.createTask)return console.createTask;const e={run:t=>t()};return()=>e})();function Sb(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(()=>Sb(e,t,o+1,r))}catch(s){return Promise.reject(s)}}function wA(e,t,n){if(e.length>0)return Sb(e,t,0,wb(n))}function SA(e,t,n){if(e.length>0){const r=wb(n);return Promise.all(e.map(o=>r.run(()=>o(...t))))}}function cu(e,t){for(const n of[...e])n(t)}var CA=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=Sf(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=Sf(e);for(const n in t)this.removeHook(n,t[n])}removeAllHooks(){this._hooks={}}callHook(e,...t){return this.callHookWith(wA,e,t)}callHookParallel(e,...t){return this.callHookWith(SA,e,t)}callHookWith(e,t,n){const r=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&cu(this._before,r);const o=e(this._hooks[t]?[...this._hooks[t]]:[],n,t);return o instanceof Promise?o.finally(()=>{this._after&&r&&cu(this._after,r)}):(this._after&&r&&cu(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 EA(){return new CA}const TA=["name","property","http-equiv"],xA=new Set(["viewport","description","keywords","robots"]);function Cb(e){const t=e.split(":");return t.length?_A.has(t[1]):!1}function Cf(e){const{props:t,tag:n}=e;if(yA.has(n))return n;if(n==="link"&&t.rel==="canonical")return"canonical";const r=t.hreflang||t.type;if(n==="link"&&t.rel==="alternate"&&r)return`alternate:${r}`;if(t.charset)return"charset";if(e.tag==="meta"){for(const o of TA)if(t[o]!==void 0){const s=t[o],i=s&&typeof s=="string"&&s.includes(":"),a=s&&xA.has(s),u=!(i||a)&&e.key?`:key:${e.key}`:"";return`${n}:${s}${u}`}}if(e.key)return`${n}:key:${e.key}`;if(t.id)return`${n}:id:${t.id}`;if(gA.has(n)){const o=e.textContent||e.innerHTML;if(o)return`${n}:content:${o}`}}function zp(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 Ml(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=>Ml(s,t));if(o?.constructor===Object){const s={};for(const i of Object.keys(o))s[i]=Ml(o[i],t,i);return s}return o}function AA(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 Eb(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]=AA(n,r);return}if(vA.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 OA(e,t){const n=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},r=Eb({tag:e,props:{}},n);return r.key&&pA.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 PA(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=Ml(e,n),Object.entries(e||{}).forEach(([o,s])=>{if(s!==void 0)for(const i of Array.isArray(s)?s:[s])r.push(OA(o,i))}),r.flat()}const Vp=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,qp={base:-10,title:10},$A={critical:-8,high:-1,low:2},Gp={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}},RA=/@import/,Xs=e=>e===""||e===!0;function kA(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let n=100;const r=$A[t.tagPriority]||0,o=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:Gp;if(t.tag in qp)n=qp[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=Gp.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);Xs(t.props.async)?n=o.script.async:t.props.src&&!Xs(t.props.defer)&&!Xs(t.props.async)&&s!=="module"&&!s.endsWith("json")||t.innerHTML&&!s.endsWith("json")?n=o.script.sync:(Xs(t.props.defer)&&t.props.src&&!Xs(t.props.async)||s==="module")&&(n=o.script.defer)}else t.tag==="style"&&(n=t.innerHTML&&RA.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 IA(e={}){const t=EA();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:PA(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=kA(i,g),g._p=(h._i<<10)+y,g._d=Cf(g),g))}}let l=!1;a.entries.flatMap(d=>(d._tags||[]).map(h=>({...h,props:{...h.props}}))).sort(Vp).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||(bA.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"&&Cb(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(Vp)),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(mA.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=Cf(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 NA=(e,t)=>Me(t)?nt(t):t,Kd="usehead";function LA(e){return{install(n){n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(Kd,e)}}.install}function jA(){if(To()){const e=Te(Kd);if(e)return e}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function MA(e,t={}){const n=t.head||jA();return n.ssr?n.push(e||{},t):DA(n,e,t)}function DA(e,t,n={}){const r=Z(!1);let o;return Fn(()=>{const i=r.value?{}:Ml(t,NA);o?o.patch(i):o=e.push(i,n)}),jt()&&(on(()=>{o.dispose()}),Kv(()=>{r.value=!0}),Gv(()=>{r.value=!1})),o}function BA(e){const t=e||Je();return t.ssrContext?.head||t.runWithContext(()=>{if(To()){const n=Te(Kd);if(!n)throw new Error("[nuxt] [unhead] Missing Unhead instance.");return n}})}function UA(e,t={}){const n=t.head||BA(t.nuxt);return MA(e,{head:n,...t})}const FA=(()=>{const e={},t={prerender:!1};return(n,r)=>{let o=[];r.charCodeAt(r.length-1)===47&&(r=r.slice(0,-1)||"/"),r==="/user/address"&&o.unshift({data:e}),r==="/user/attributes"&&o.unshift({data:e}),r==="/user/brands"&&o.unshift({data:e}),r==="/user/categories"&&o.unshift({data:e}),r==="/user/managers"&&o.unshift({data:e}),r==="/user/profile"&&o.unshift({data:e}),r==="/user/setting"&&o.unshift({data:e}),r==="/user/store_request"&&o.unshift({data:e}),r==="/_nuxt"&&(o.unshift({data:t}),o.unshift({data:t})),r==="/__sitemap__/style.xsl"&&o.unshift({data:e}),r==="/sitemap.xml"&&o.unshift({data:e});let s=r.split("/");return s.length-1,s[1]==="add"&&o.unshift({data:e,params:{_:s.slice(2).join("/")}}),s[1]==="auth"&&o.unshift({data:e,params:{_:s.slice(2).join("/")}}),s[1]==="fav"&&o.unshift({data:e,params:{_:s.slice(2).join("/")}}),s[1]==="message"&&o.unshift({data:e,params:{_:s.slice(2).join("/")}}),s[1]==="cart"&&o.unshift({data:e,params:{_:s.slice(2).join("/")}}),s[1]==="edit"&&o.unshift({data:e,params:{_:s.slice(2).join("/")}}),s[1]==="user"&&(s[2]==="edit"&&o.unshift({data:e,params:{_:s.slice(3).join("/")}}),s[2]==="order"&&o.unshift({data:e,params:{_:s.slice(3).join("/")}}),s[2]==="statistics_list"&&o.unshift({data:e,params:{_:s.slice(3).join("/")}}),s[2]==="add"&&o.unshift({data:e,params:{_:s.slice(3).join("/")}})),o}})(),Tb=e=>db({},...FA("",e).map(t=>t.data).reverse()),HA=Tb;let el;function WA(){return el=$fetch(qd(`builds/meta/${sa().app.buildId}.json`),{responseType:"json"}),el.catch(e=>{console.error("[nuxt] Error fetching app manifest.",e)}),el}function xb(){return el||WA()}function Ab(e){const t=typeof e=="string"?e:e.path;try{return HA(t)}catch(n){return console.error("[nuxt] Error matching route rules.",n),{}}}async function Jp(e,t={}){return null}async function zA(e){return null}let Br=null;async function VA(){if(Br)return Br;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await qA(e.textContent||""),n=e.dataset.src?await zA(e.dataset.src):void 0;return Br={...t,...n,...window.__NUXT__},Br.config?.public&&(Br.config.public=rt(Br.config.public)),Br}async function qA(e){return await dA(e,Je()._payloadRevivers)}function Ob(e,t){Je()._payloadRevivers[e]=t}const GA=B1(()=>{Ob("skipHydrate",e=>{})}),KA=[["NuxtError",e=>lo(e)],["EmptyShallowRef",e=>ae(e==="_"?void 0:e==="0n"?BigInt(0):ji(e))],["EmptyRef",e=>Z(e==="_"?void 0:e==="0n"?BigInt(0):ji(e))],["ShallowRef",e=>ae(e)],["ShallowReactive",e=>Dn(e)],["Ref",e=>Z(e)],["Reactive",e=>rt(e)]],JA=De({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const[r,o]of KA)Ob(r,o);Object.assign(e.payload,([t,n]=ao(()=>e.runWithContext(VA)),t=await t,n(),t)),delete window.__NUXT__}});async function Jd(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)||zp(g),shouldRender:!0};return g._d&&Cb(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(!Wp.has(y))continue;const b=Eb({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=Cf(b)||zp(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):Wp.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 YA(e={}){const t=e.domOptions?.render||Jd;e.document=e.document||(typeof window<"u"?document:void 0);const n=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return IA({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]})}function XA(e,t){let n=0;return()=>{const r=++n;t(()=>{n===r&&e()})}}function QA(e={}){const t=YA({domOptions:{render:XA(()=>Jd(t),n=>setTimeout(n,0))},...e});return t.install=LA(t),t}const ZA={disableDefaults:!0},eO=De({name:"nuxt:head",enforce:"pre",setup(e){const t=QA(ZA);e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await Jd(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 Jo=typeof document<"u";function Pb(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function tO(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Pb(e.default)}const xe=Object.assign;function uu(e,t){const n={};for(const r in t){const o=t[r];n[r]=En(o)?o.map(e):e(o)}return n}const vi=()=>{},En=Array.isArray;function Yp(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const $b=/#/g,nO=/&/g,rO=/\//g,oO=/=/g,sO=/\?/g,Rb=/\+/g,iO=/%5B/g,aO=/%5D/g,kb=/%5E/g,lO=/%60/g,Ib=/%7B/g,cO=/%7C/g,Nb=/%7D/g,uO=/%20/g;function Yd(e){return e==null?"":encodeURI(""+e).replace(cO,"|").replace(iO,"[").replace(aO,"]")}function fO(e){return Yd(e).replace(Ib,"{").replace(Nb,"}").replace(kb,"^")}function Ef(e){return Yd(e).replace(Rb,"%2B").replace(uO,"+").replace($b,"%23").replace(nO,"%26").replace(lO,"`").replace(Ib,"{").replace(Nb,"}").replace(kb,"^")}function dO(e){return Ef(e).replace(oO,"%3D")}function hO(e){return Yd(e).replace($b,"%23").replace(sO,"%3F")}function pO(e){return hO(e).replace(rO,"%2F")}function Di(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const gO=/\/$/,mO=e=>e.replace(gO,"");function fu(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=_O(r??t,n),{fullPath:r+s+i,path:r,query:o,hash:Di(i)}}function yO(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Xp(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function vO(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&ws(t.matched[r],n.matched[o])&&Lb(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function ws(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Lb(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!bO(e[n],t[n]))return!1;return!0}function bO(e,t){return En(e)?Qp(e,t):En(t)?Qp(t,e):e?.valueOf()===t?.valueOf()}function Qp(e,t){return En(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function _O(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 an={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Tf=(function(e){return e.pop="pop",e.push="push",e})({}),du=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function wO(e){if(!e)if(Jo){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),mO(e)}const SO=/^[^#]+#/;function CO(e,t){return e.replace(SO,"#")+t}function EO(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 mc=()=>({left:window.scrollX,top:window.scrollY});function TO(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=EO(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 Zp(e,t){return(history.state?history.state.position-t:-1)+e}const xf=new Map;function xO(e,t){xf.set(e,t)}function AO(e){const t=xf.get(e);return xf.delete(e),t}function OO(e){return typeof e=="string"||e&&typeof e=="object"}function jb(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 Mb=Symbol("");ze.MATCHER_NOT_FOUND+"",ze.NAVIGATION_GUARD_REDIRECT+"",ze.NAVIGATION_ABORTED+"",ze.NAVIGATION_CANCELLED+"",ze.NAVIGATION_DUPLICATED+"";function Ss(e,t){return xe(new Error,{type:e,[Mb]:!0},t)}function zn(e,t){return e instanceof Error&&Mb in e&&(t==null||!!(e.type&t))}const PO=["params","query","hash"];function $O(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of PO)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function RO(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(Rb," "),s=o.indexOf("="),i=Di(s<0?o:o.slice(0,s)),a=s<0?null:Di(o.slice(s+1));if(i in t){let l=t[i];En(l)||(l=t[i]=[l]),l.push(a)}else t[i]=a}return t}function eg(e){let t="";for(let n in e){const r=e[n];if(n=dO(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(En(r)?r.map(o=>o&&Ef(o)):[r&&Ef(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function kO(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=En(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const IO=Symbol(""),tg=Symbol(""),yc=Symbol(""),Xd=Symbol(""),Af=Symbol("");function Qs(){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 Sr(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(Ss(ze.NAVIGATION_ABORTED,{from:n,to:t})):d instanceof Error?l(d):OO(d)?l(Ss(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 hu(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(Pb(l)){const u=(l.__vccOpts||l)[t];u&&s.push(Sr(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=tO(c)?c.default:c;i.mods[a]=c,i.components[a]=f;const d=(f.__vccOpts||f)[t];return d&&Sr(d,n,r,i,a,o)()}))}}return s}function NO(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=>ws(u,a))?r.push(a):n.push(a));const l=e.matched[i];l&&(t.matched.find(u=>ws(u,l))||o.push(l))}return[n,r,o]}let LO=()=>location.protocol+"//"+location.host;function Db(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),Xp(a,"")}return Xp(n,e)+r+o}function jO(e,t,n,r){let o=[],s=[],i=null;const a=({state:d})=>{const h=Db(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:Tf.pop,direction:y?y>0?du.forward:du.back:du.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:mc()}),"")}}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 ng(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?mc():null}}function MO(e){const{history:t,location:n}=window,r={value:Db(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:LO()+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,ng(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:mc()});s(c.current,c,!0),s(l,xe({},ng(r.value,l,null),{position:c.position+1},u),!1),r.value=l}return{location:r,state:o,push:a,replace:i}}function DO(e){e=wO(e);const t=MO(e),n=jO(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:CO.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 Qr=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var it=(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})(it||{});const BO={type:Qr.Static,value:""},UO=/[a-zA-Z0-9_]/;function FO(e){if(!e)return[[]];if(e==="/")return[[BO]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}let n=it.Static,r=n;const o=[];let s;function i(){s&&o.push(s),s=[]}let a=0,l,u="",c="";function f(){u&&(n===it.Static?s.push({type:Qr.Static,value:u}):n===it.Param||n===it.ParamRegExp||n===it.ParamRegExpEnd?(s.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),s.push({type:Qr.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!==it.ParamRegExp){r=n,n=it.EscapeNext;continue}switch(n){case it.Static:l==="/"?(u&&f(),i()):l===":"?(f(),n=it.Param):d();break;case it.EscapeNext:d(),n=r;break;case it.Param:l==="("?n=it.ParamRegExp:UO.test(l)?d():(f(),n=it.Static,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case it.ParamRegExp:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:n=it.ParamRegExpEnd:c+=l;break;case it.ParamRegExpEnd:f(),n=it.Static,l!=="*"&&l!=="?"&&l!=="+"&&a--,c="";break;default:t("Unknown state");break}}return n===it.ParamRegExp&&t(`Unfinished custom RegExp for param "${u}"`),f(),i(),o}const rg="[^/]+?",HO={sensitive:!1,strict:!1,start:!0,end:!0};var Rt=(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})(Rt||{});const WO=/[.+*?^${}()[\]/\\]/g;function zO(e,t){const n=xe({},HO,t),r=[];let o=n.start?"^":"";const s=[];for(const u of e){const c=u.length?[]:[Rt.Root];n.strict&&!u.length&&(o+="/");for(let f=0;f<u.length;f++){const d=u[f];let h=Rt.Segment+(n.sensitive?Rt.BonusCaseSensitive:0);if(d.type===Qr.Static)f||(o+="/"),o+=d.value.replace(WO,"\\$&"),h+=Rt.Static;else if(d.type===Qr.Param){const{value:p,repeatable:g,optional:y,regexp:b}=d;s.push({name:p,repeatable:g,optional:y});const v=b||rg;if(v!==rg){h+=Rt.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+=Rt.Dynamic,y&&(h+=Rt.BonusOptional),g&&(h+=Rt.BonusRepeatable),v===".*"&&(h+=Rt.BonusWildcard)}c.push(h)}r.push(c)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=Rt.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===Qr.Static)c+=h.value;else if(h.type===Qr.Param){const{value:p,repeatable:g,optional:y}=h,b=p in u?u[p]:"";if(En(b)&&!g)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const v=En(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 VO(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]===Rt.Static+Rt.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Rt.Static+Rt.Segment?1:-1:0}function Bb(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const s=VO(r[n],o[n]);if(s)return s;n++}if(Math.abs(o.length-r.length)===1){if(og(r))return 1;if(og(o))return-1}return o.length-r.length}function og(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const qO={strict:!1,end:!0,sensitive:!1};function GO(e,t,n){const r=zO(FO(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 KO(e,t){const n=[],r=new Map;t=Yp(qO,t);function o(f){return r.get(f)}function s(f,d,h){const p=!h,g=ig(f);g.aliasOf=h&&h.record;const y=Yp(t,f),b=[g];if("alias"in f){const _=typeof f.alias=="string"?[f.alias]:f.alias;for(const S of _)b.push(ig(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=GO(_,d,y),h?h.alias.push(v):(m=m||v,m!==v&&m.alias.push(v),p&&f.name&&!ag(v)&&i(f.name)),Ub(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)}:vi}function i(f){if(jb(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=XO(f,n);n.splice(d,0,f),f.record.name&&!ag(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 Ss(ze.MATCHER_NOT_FOUND,{location:f});y=h.record.name,p=xe(sg(d.params,h.keys.filter(m=>!m.optional).concat(h.parent?h.parent.keys.filter(m=>m.optional):[]).map(m=>m.name)),f.params&&sg(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 Ss(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:YO(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 sg(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function ig(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:JO(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 JO(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 ag(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function YO(e){return e.reduce((t,n)=>xe(t,n.meta),{})}function XO(e,t){let n=0,r=t.length;for(;n!==r;){const s=n+r>>1;Bb(e,t[s])<0?r=s:n=s+1}const o=QO(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function QO(e){let t=e;for(;t=t.parent;)if(Ub(t)&&Bb(e,t)===0)return t}function Ub({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function lg(e){const t=Te(yc),n=Te(Xd),r=$(()=>{const l=U(e.to);return t.resolve(l)}),o=$(()=>{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(ws.bind(null,c));if(d>-1)return d;const h=cg(l[u-2]);return u>1&&cg(c)===h&&f[f.length-1].path!==h?f.findIndex(ws.bind(null,l[u-2])):d}),s=$(()=>o.value>-1&&rP(n.params,r.value.params)),i=$(()=>o.value>-1&&o.value===n.matched.length-1&&Lb(n.params,r.value.params));function a(l={}){if(nP(l)){const u=t[U(e.replace)?"replace":"push"](U(e.to)).catch(vi);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:r,href:$(()=>r.value.href),isActive:s,isExactActive:i,navigate:a}}function ZO(e){return e.length===1?e[0]:e}const eP=pe({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:lg,setup(e,{slots:t}){const n=rt(lg(e)),{options:r}=Te(yc),o=$(()=>({[ug(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[ug(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&ZO(t.default(n));return e.custom?s:ft("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},s)}}}),tP=eP;function nP(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 rP(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(!En(o)||o.length!==r.length||r.some((s,i)=>s.valueOf()!==o[i].valueOf()))return!1}return!0}function cg(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ug=(e,t,n)=>e??t??n,oP=pe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Te(Af),o=$(()=>e.route||r.value),s=Te(tg,0),i=$(()=>{let u=U(s);const{matched:c}=o.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),a=$(()=>o.value.matched[i.value]);wt(tg,$(()=>i.value+1)),wt(IO,a),wt(Af,o);const l=Z();return _e(()=>[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||!ws(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 fg(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=ft(d,xe({},p,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return fg(n.default,{Component:y,route:u})||y}}});function fg(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Fb=oP;function sP(e){const t=KO(e.routes,e),n=e.parseQuery||RO,r=e.stringifyQuery||eg,o=e.history,s=Qs(),i=Qs(),a=Qs(),l=ae(an);let u=an;Jo&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=uu.bind(null,D=>""+D),f=uu.bind(null,pO),d=uu.bind(null,Di);function h(D,ee){let J,oe;return jb(D)?(J=t.getRecordMatcher(D),oe=ee):oe=D,t.addRoute(oe,J)}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=fu(n,D,ee.path),L=t.resolve({path:T.path},ee),z=o.createHref(T.fullPath);return xe(T,L,{params:d(L.params),hash:Di(T.hash),redirectedFrom:void 0,href:z})}let J;if(D.path!=null)J=xe({},D,{path:fu(n,D.path,ee.path).path});else{const T=xe({},D.params);for(const L in T)T[L]==null&&delete T[L];J=xe({},D,{params:f(T)}),ee.params=f(ee.params)}const oe=t.resolve(J,ee),ve=D.hash||"";oe.params=c(d(oe.params));const G=yO(r,xe({},D,{hash:fO(ve),path:oe.path})),C=o.createHref(G);return xe({fullPath:G,hash:ve,query:r===eg?kO(D.query):D.query||{}},oe,{redirectedFrom:void 0,href:C})}function v(D){return typeof D=="string"?fu(n,D,l.value.path):xe({},D)}function m(D,ee){if(u!==D)return Ss(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 J=D.matched[D.matched.length-1];if(J&&J.redirect){const{redirect:oe}=J;let ve=typeof oe=="function"?oe(D,ee):oe;return typeof ve=="string"&&(ve=ve.includes("?")||ve.includes("#")?ve=v(ve):{path:ve},ve.params={}),xe({query:D.query,hash:D.hash,params:ve.path!=null?{}:D.params},ve)}}function w(D,ee){const J=u=b(D),oe=l.value,ve=D.state,G=D.force,C=D.replace===!0,T=E(J,oe);if(T)return w(xe(v(T),{state:typeof T=="object"?xe({},ve,T.state):ve,force:G,replace:C}),ee||J);const L=J;L.redirectedFrom=ee;let z;return!G&&vO(r,oe,J)&&(z=Ss(ze.NAVIGATION_DUPLICATED,{to:L,from:oe}),le(oe,oe,!0,!1)),(z?Promise.resolve(z):j(L,oe)).catch(B=>zn(B)?zn(B,ze.NAVIGATION_GUARD_REDIRECT)?B:ge(B):H(B,L,oe)).then(B=>{if(B){if(zn(B,ze.NAVIGATION_GUARD_REDIRECT))return w(xe({replace:C},v(B.to),{state:typeof B.to=="object"?xe({},ve,B.to.state):ve,force:G}),ee||L)}else B=k(L,oe,!0,C,ve);return N(L,oe,B),B})}function O(D,ee){const J=m(D,ee);return J?Promise.reject(J):Promise.resolve()}function A(D){const ee=pt.values().next().value;return ee&&typeof ee.runWithContext=="function"?ee.runWithContext(D):D()}function j(D,ee){let J;const[oe,ve,G]=NO(D,ee);J=hu(oe.reverse(),"beforeRouteLeave",D,ee);for(const T of oe)T.leaveGuards.forEach(L=>{J.push(Sr(L,D,ee))});const C=O.bind(null,D,ee);return J.push(C),st(J).then(()=>{J=[];for(const T of s.list())J.push(Sr(T,D,ee));return J.push(C),st(J)}).then(()=>{J=hu(ve,"beforeRouteUpdate",D,ee);for(const T of ve)T.updateGuards.forEach(L=>{J.push(Sr(L,D,ee))});return J.push(C),st(J)}).then(()=>{J=[];for(const T of G)if(T.beforeEnter)if(En(T.beforeEnter))for(const L of T.beforeEnter)J.push(Sr(L,D,ee));else J.push(Sr(T.beforeEnter,D,ee));return J.push(C),st(J)}).then(()=>(D.matched.forEach(T=>T.enterCallbacks={}),J=hu(G,"beforeRouteEnter",D,ee,A),J.push(C),st(J))).then(()=>{J=[];for(const T of i.list())J.push(Sr(T,D,ee));return J.push(C),st(J)}).catch(T=>zn(T,ze.NAVIGATION_CANCELLED)?T:Promise.reject(T))}function N(D,ee,J){a.list().forEach(oe=>A(()=>oe(D,ee,J)))}function k(D,ee,J,oe,ve){const G=m(D,ee);if(G)return G;const C=ee===an,T=Jo?history.state:{};J&&(oe||C?o.replace(D.fullPath,xe({scroll:C&&T&&T.scroll},ve)):o.push(D.fullPath,ve)),l.value=D,le(D,ee,J,C),ge()}let F;function K(){F||(F=o.listen((D,ee,J)=>{if(!Ue.listening)return;const oe=b(D),ve=E(oe,Ue.currentRoute.value);if(ve){w(xe(ve,{replace:!0,force:!0}),oe).catch(vi);return}u=oe;const G=l.value;Jo&&xO(Zp(G.fullPath,J.delta),mc()),j(oe,G).catch(C=>zn(C,ze.NAVIGATION_ABORTED|ze.NAVIGATION_CANCELLED)?C:zn(C,ze.NAVIGATION_GUARD_REDIRECT)?(w(xe(v(C.to),{force:!0}),oe).then(T=>{zn(T,ze.NAVIGATION_ABORTED|ze.NAVIGATION_DUPLICATED)&&!J.delta&&J.type===Tf.pop&&o.go(-1,!1)}).catch(vi),Promise.reject()):(J.delta&&o.go(-J.delta,!1),H(C,oe,G))).then(C=>{C=C||k(oe,G,!1),C&&(J.delta&&!zn(C,ze.NAVIGATION_CANCELLED)?o.go(-J.delta,!1):J.type===Tf.pop&&zn(C,ze.NAVIGATION_ABORTED|ze.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),N(oe,G,C)}).catch(vi)}))}let R=Qs(),I=Qs(),W;function H(D,ee,J){ge(D);const oe=I.list();return oe.length?oe.forEach(ve=>ve(D,ee,J)):console.error(D),Promise.reject(D)}function Q(){return W&&l.value!==an?Promise.resolve():new Promise((D,ee)=>{R.add([D,ee])})}function ge(D){return W||(W=!D,K(),R.list().forEach(([ee,J])=>D?J(D):ee()),R.reset()),D}function le(D,ee,J,oe){const{scrollBehavior:ve}=e;if(!Jo||!ve)return Promise.resolve();const G=!J&&AO(Zp(D.fullPath,0))||(oe||!J)&&history.state&&history.state.scroll||null;return Ot().then(()=>ve(D,ee,G)).then(C=>C&&TO(C)).catch(C=>H(C,D,ee))}const we=D=>o.go(D);let Xe;const pt=new Set,Ue={currentRoute:l,listening:!0,addRoute:h,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:y,getRoutes:g,resolve:b,options:e,push:_,replace:S,go:we,back:()=>we(-1),forward:()=>we(1),beforeEach:s.add,beforeResolve:i.add,afterEach:a.add,onError:I.add,isReady:Q,install(D){D.component("RouterLink",tP),D.component("RouterView",Fb),D.config.globalProperties.$router=Ue,Object.defineProperty(D.config.globalProperties,"$route",{enumerable:!0,get:()=>U(l)}),Jo&&!Xe&&l.value===an&&(Xe=!0,_(o.location).catch(oe=>{}));const ee={};for(const oe in an)Object.defineProperty(ee,oe,{get:()=>l.value[oe],enumerable:!0});D.provide(yc,Ue),D.provide(Xd,Dn(ee)),D.provide(Af,l);const J=D.unmount;pt.add(D),D.unmount=function(){pt.delete(D),pt.size<1&&(u=an,F&&F(),F=null,l.value=an,Xe=!1,W=!1),J()}}};function st(D){return D.reduce((ee,J)=>ee.then(()=>A(J)),Promise.resolve())}return Ue}function q8(){return Te(yc)}function Hb(e){return Te(Xd)}const iP=/(:\w+)\([^)]+\)/g,aP=/(:\w+)[?+*]/g,lP=/:\w+/g,cP=(e,t)=>t.path.replace(iP,"$1").replace(aP,"$1").replace(lP,n=>e.params[n.slice(1)]?.toString()||""),Of=(e,t)=>{const n=e.route.matched.find(o=>o.components?.default===e.Component.type),r=t??n?.meta.key??(n&&cP(e.route,n));return typeof r=="function"?r(e.route):r},uP=(e,t)=>({default:()=>e?ft(LE,e===!0?{}:e,t):t});function Qd(e){return Array.isArray(e)?e:[e]}const fP="modulepreload",dP=function(e,t){return new URL(e,t).href},dg={},re=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=dP(c,r),c in dg)return;dg[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":fP,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)})},hP={redirect:{name:"auth-login"},showMobileNavigationMenu:!1},pP=null,gP={ssr:!1},mP={ssr:!1},yP={ssr:!1},vP={ssr:!1},bP={ssr:!1},_P={ssr:!1,showMobileNavigationMenu:!1},wP={ssr:!1},SP={ssr:!1},CP={ssr:!1},EP={ssr:!1},TP={ssr:!1},xP={ssr:!1},AP={ssr:!1,showMobileNavigationMenu:!1},OP={ssr:!1},PP={ssr:!1},$P={redirect:{name:"add-story-inputStory"},showMobileNavigationMenu:!1},RP={ssr:!1},kP={ssr:!1},IP={ssr:!1},NP={redirect:{name:"add-product-inputProduct"},showMobileNavigationMenu:!1},LP={showMobileNavigationMenu:!1},jP={ssr:!1},MP={ssr:!1},DP={showMobileNavigationMenu:!1},BP={ssr:!1},UP={ssr:!1},FP={ssr:!1},HP={ssr:!1},WP={ssr:!1},zP={showMobileNavigationMenu:!1},VP={showMobileNavigationMenu:!1},qP={ssr:!1,showMobileNavigationMenu:!1},GP={redirect:{name:"add-product-excel-inputProduct"},showMobileNavigationMenu:!1,ssr:!1},KP={showMobileNavigationMenu:!1},JP={showMobileNavigationMenu:!1},YP={showMobileNavigationMenu:!1},XP={showMobileNavigationMenu:!1},QP={ssr:!1,showMobileNavigationMenu:!1},ZP={showMobileNavigationMenu:!1},e$={ssr:!1,showMobileNavigationMenu:!1},t$={showMobileNavigationMenu:!1},pu=[{name:"auth",path:"/auth",meta:hP||{},redirect:{name:"auth-login"},component:()=>re(()=>import("./Cnjhbh3S.js"),[],import.meta.url),children:[{name:"auth-login",path:"login",component:()=>re(()=>import("./wyZLWQiZ.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:()=>re(()=>import("./CU3dxLwF.js"),__vite__mapDeps([47,15,3,16,13,14,17,8,18,19,20,21,22,23,24,25,26,27,28,29,30,31,48,49,34,35,36,37,38,39,40,41,42,43,44,45,50]),import.meta.url)},{name:"auth-register",path:"register",component:()=>re(()=>import("./CDmaZMQI.js"),__vite__mapDeps([51,48,13,14,15,3,16,17,8,18,19,20,21,22,23,24,25,26,27,28,52,53,54,55,56,57,58,59,29,30,31,36,37,38,39,40,60]),import.meta.url)}]},{name:"index",path:"/",redirect:{name:"home"},component:()=>re(()=>import("./BGK2dEIc.js"),[],import.meta.url)},{name:pP?.name,path:"/posts",component:()=>re(()=>import("./BCsGs1aW.js"),__vite__mapDeps([61,62,63,15,3,16,64,65,66,54,53,67,68,69,70,23,24,25,26,71,2,4,72,73,74,13,14,17,8,18,19,20,21,22,27,28,29,30,31,75,58,42,38,39,76,40,59,77,78,79,37,43,80,81,82,83,84,85,32,86,87,88]),import.meta.url),children:[{name:"posts",path:"",component:()=>re(()=>import("./nKJ5M9HP.js"),__vite__mapDeps([89,62,63,15,3,16,64,65,66,54,53,67,68,69,70,23,24,25,26,71,2,4,72,73,74,13,14,17,8,18,19,20,21,22,27,28,29,30,31,75,58,42,38,39,76,40,59,77,78,79,37,43,80,81,82,83,84,85,32,86,87,88]),import.meta.url)}]},{name:"user-add",path:"/user/add",meta:gP||{},component:()=>re(()=>import("./aCwO9UBV.js"),__vite__mapDeps([90,63]),import.meta.url)},{name:"add",path:"/add",meta:mP||{},component:()=>re(()=>import("./BQaFj55B.js"),__vite__mapDeps([91,63]),import.meta.url)},{name:"cart-id",path:"/cart/:id()",meta:yP||{},component:()=>re(()=>import("./B_myKqkW.js"),__vite__mapDeps([92,63]),import.meta.url)},{name:"fav",path:"/fav",meta:vP||{},component:()=>re(()=>import("./0T4JoQxv.js"),__vite__mapDeps([93,63]),import.meta.url)},{name:"cart",path:"/cart",meta:bP||{},component:()=>re(()=>import("./BO3lZk6o.js"),__vite__mapDeps([94,63]),import.meta.url)},{name:"edit",path:"/edit",meta:_P||{},component:()=>re(()=>import("./TprRDXFv.js"),__vite__mapDeps([95,63]),import.meta.url)},{name:"home",path:"/home",component:()=>re(()=>import("./BGRl04cL.js"),__vite__mapDeps([96,97,63,15,3,16,98,12,81,64,65,66,54,53,67,68,69,70,23,24,25,26,71,2,4,72,73,74,13,14,17,8,18,19,20,21,22,27,28,29,30,31,75,58,42,38,39,76,40,59,77,78,79,37,43,80,82,83,84,86,99,32,100,101,87,102,103,104,105,35,106,107,108,109,110,111,112]),import.meta.url)},{name:"user",path:"/user",component:()=>re(()=>import("./CsFFaDNE.js"),__vite__mapDeps([113,63,98,114,115,15,3,16,103,104,29,30,31,116,73,65,74,32,67,99,100,101,37,25,38,117,35,118,83,119,72,102,13,14,17,8,18,19,20,21,22,23,24,26,27,28,70,105,106,85,120,121,122,123,124,125,126,75,58,42,39,76,40,59,127,128,129,130,9,131,132,133,87,134,107,108,135,111,44,136,56,137]),import.meta.url)},{name:"saved-posts",path:"/saved/posts",meta:wP||{},component:()=>re(()=>import("./VL-oR_q3.js"),__vite__mapDeps([138,63]),import.meta.url)},{name:"user-brands",path:"/user/brands",meta:SP||{},component:()=>re(()=>import("./DQ720sOX.js"),__vite__mapDeps([139,63]),import.meta.url)},{name:"message-list",path:"/message/list",component:()=>re(()=>import("./C7bJGTou.js"),__vite__mapDeps([140,15,3,16,141,63,127,73,65,74,66,54,53,142,143,37,25,38,101]),import.meta.url)},{name:"search",path:"/search",component:()=>re(()=>import("./BRhRjAcT.js"),__vite__mapDeps([144,141,63,127,119,72,32,120,87]),import.meta.url)},{name:"user-address",path:"/user/address",meta:CP||{},component:()=>re(()=>import("./C7xMEF3J.js"),__vite__mapDeps([145,63]),import.meta.url)},{name:"user-message",path:"/user/message",meta:EP||{},component:()=>re(()=>import("./CuIi7lIW.js"),__vite__mapDeps([146,63]),import.meta.url)},{name:"user-profile",path:"/user/profile",meta:TP||{},component:()=>re(()=>import("./EYLltJlx.js"),__vite__mapDeps([147,63]),import.meta.url)},{name:"user-setting",path:"/user/setting",meta:xP||{},component:()=>re(()=>import("./fH2P0ZZ_.js"),__vite__mapDeps([148,63]),import.meta.url)},{name:"message",path:"/message",meta:AP||{},component:()=>re(()=>import("./8nhEvy_1.js"),__vite__mapDeps([149,63]),import.meta.url)},{name:"user-discount",path:"/user/discount",meta:OP||{},component:()=>re(()=>import("./BcM39RcM.js"),__vite__mapDeps([150,63]),import.meta.url)},{name:"user-managers",path:"/user/managers",meta:PP||{},component:()=>re(()=>import("./agNxWnvF.js"),__vite__mapDeps([151,63]),import.meta.url)},{name:"user-edit-id",path:"/user/edit/:id()",component:()=>re(()=>import("./ivOVMXH8.js"),__vite__mapDeps([152,153,15,3,16,65,49,13,14,17,8,18,19,20,21,22,23,24,25,26,27,28,154,155,52,53,54,55,56,57,58,59,156,157,158,5,6,2,4,29,30,31,34,35,36,37,38,39,40,41,42,43,44,45,159]),import.meta.url)},{name:"add-story",path:"/add/story",meta:$P||{},redirect:{name:"add-story-inputStory"},component:()=>re(()=>import("./Cl8b34rw.js"),__vite__mapDeps([160,161]),import.meta.url)},{name:"user-attributes",path:"/user/attributes",meta:RP||{},component:()=>re(()=>import("./BVqtfT0J.js"),__vite__mapDeps([162,63]),import.meta.url)},{name:"user-categories",path:"/user/categories",meta:kP||{},component:()=>re(()=>import("./DKnHfTXN.js"),__vite__mapDeps([163,63]),import.meta.url)},{name:"user-edit",path:"/user/edit",component:()=>re(()=>import("./C3-w1DZ5.js"),__vite__mapDeps([164,153,15,3,16,65,49,13,14,17,8,18,19,20,21,22,23,24,25,26,27,28,154,155,52,53,54,55,56,57,58,59,156,157,158,5,6,2,4,29,30,31,34,35,36,37,38,39,40,41,42,43,44,45,159]),import.meta.url)},{name:"user-order-id",path:"/user/order/:id()",component:()=>re(()=>import("./X8oOxQUF.js"),__vite__mapDeps([165,15,3,16,166,14,65,29,30,31,167,107,26,108,168,66,54,53,2,4,5,6,13,17,8,18,19,20,21,22,23,24,25,27,28,41,36,37,38,39,40,42,43,44,110,109,111,169,170]),import.meta.url)},{name:"highlight-create",path:"/highlight/create",meta:IP||{},component:()=>re(()=>import("./CSIBfn4m.js"),__vite__mapDeps([171,63]),import.meta.url)},{name:"user_detail-id",path:"/user_detail/:id()",component:()=>re(()=>import("./BmA3YvQr.js"),__vite__mapDeps([172,63,98,114,115,15,3,16,103,104,29,30,31,116,73,65,74,32,67,99,100,101,37,25,38,117,35,118,83,173,120,102,13,14,17,8,18,19,20,21,22,23,24,26,27,28,70,105,106,85,119,72,121,122,123,124,125,126,75,58,42,39,76,40,59,127,128,129,130,9,131,132,133,87,134,107,108,135,111,44,136,56,174,168,175,176,66,54,53,177,178,86,179]),import.meta.url)},{name:"add-product",path:"/add/product",meta:NP||{},redirect:{name:"add-product-inputProduct"},component:()=>re(()=>import("./Yw3ohozo.js"),__vite__mapDeps([180,181,77,78,79,25,42,38,39,37,43,24]),import.meta.url)},{name:"search-main",path:"/search/main",component:()=>re(()=>import("./CcsSAbyF.js"),__vite__mapDeps([182,63,127,15,3,16,121,120,119,72,32,14,29,30,31,122,123,124,125,126,75,58,25,42,38,39,76,22,23,24,26,40,59,128,129,17,8,18,19,20,21,27,130,9,131,132,133,87,134,183,167,184,55,185,73,65,74,135,111,44,136,56,186]),import.meta.url)},{name:"add-story-infStory",path:"/add/story/infStory",meta:LP||{},component:()=>re(()=>import("./CkPJhJTd.js"),__vite__mapDeps([187,188,67,68,189,105,77,78,79,25,42,38,39,37,43,24,15,3,16,32,52,53,54,55,26,56,23,57,58,8,18,20,59,99,100,101,30,36,40,190,83,155,84]),import.meta.url)},{name:"user-store_request",path:"/user/store_request",meta:jP||{},component:()=>re(()=>import("./psw1EREk.js"),__vite__mapDeps([191,63]),import.meta.url)},{name:"highlight-edit-id",path:"/highlight/edit/:id()",meta:MP||{},component:()=>re(()=>import("./Bf86-oVZ.js"),__vite__mapDeps([192,63]),import.meta.url)},{name:"product_detail-id",path:"/product_detail/:id()",component:()=>re(()=>import("./DxGVXgDi.js"),__vite__mapDeps([193,63,98,15,3,16,69,67,68,65,194,195,135,75,58,25,42,38,39,76,22,23,24,26,40,59,111,44,136,56,21,196,14,197,198,19,57,110,8,18,155,29,30,31,199,200,36,37,55,168,71,2,4,66,54,53,70,72,73,74,13,17,20,27,28,77,78,79,43,80,81,86,87,107,108,201,84,83]),import.meta.url)},{name:"add-story-inputStory",path:"/add/story/inputStory",meta:DP||{},component:()=>re(()=>import("./DhIzw1D4.js"),__vite__mapDeps([202,203,204,29,15,3,16,30,31,63,205,206,207,6,77,78,79,25,42,38,39,37,43,24,7,8,9,10,208]),import.meta.url)},{name:"user-statistics_list",path:"/user/statistics_list",meta:WP||{},component:()=>re(()=>import("./BqgT1d0M.js"),__vite__mapDeps([209,63]),import.meta.url),children:[{name:"user-statistics_list-saved",path:"saved",meta:BP||{},component:()=>re(()=>import("./Bgy6CLAp.js"),__vite__mapDeps([210,177,119,72,178,86,120]),import.meta.url)},{name:"user-statistics_list-orders",path:"orders",meta:UP||{},component:()=>re(()=>import("./zOHJVF5R.js"),__vite__mapDeps([211,175,176,73,65,3,74,29,15,16,30,31,14,66,54,53,99,32,100,101,37,25,38,168,72]),import.meta.url)},{name:"user-statistics_list-customers",path:"customers",meta:FP||{},component:()=>re(()=>import("./pjAMdu6e.js"),__vite__mapDeps([212,185,73,65,3,74,29,15,16,30,31,72,213,23,24,25,26,107,108,56]),import.meta.url)},{name:"user-statistics_list-storeOrders",path:"storeOrders",meta:HP||{},component:()=>re(()=>import("./CFxvc77N.js"),__vite__mapDeps([214,175,176,73,65,3,74,29,15,16,30,31,14,66,54,53,99,32,100,101,37,25,38,168,72]),import.meta.url)}]},{name:"edit-story-id",path:"/edit/story/:id()",meta:zP||{},component:()=>re(()=>import("./gU9SvktB.js"),__vite__mapDeps([215,161]),import.meta.url)},{name:"add-product-infProduct",path:"/add/product/infProduct",meta:VP||{},component:()=>re(()=>import("./BqTU5BWa.js"),__vite__mapDeps([216,217,15,3,16,29,30,31,218,100,101,37,25,38,27,23,24,26,109,110,111,40,56,41,36,39,8,42,43,21,44,63,67,68,189,105,77,78,79,49,13,14,17,18,19,20,22,28,154,155,197,198,76,136,57,59,123,124,125,126,5,6,128,129,55,130,9,168,132,34,35,45,199,200,10,7,219,220,83,84]),import.meta.url)},{name:"message-detail_message",path:"/message/detail_message",meta:qP||{},component:()=>re(()=>import("./BZ33drkU.js"),__vite__mapDeps([221,124,125,63,15,3,16,73,65,74,154,17,8,18,19,20,21,22,23,24,25,26,27,155,56,129,133,78,222]),import.meta.url)},{name:"add-product-excel",path:"/add/product/excel",meta:GP||{},redirect:{name:"add-product-excel-inputProduct"},component:()=>re(()=>import("./_ViE3SGe.js"),[],import.meta.url)},{name:"edit-product-id",path:"/edit/product/:id()",meta:KP||{},component:()=>re(()=>import("./DmMp6NXy.js"),__vite__mapDeps([223,181,77,78,79,25,42,38,39,37,43,24]),import.meta.url)},{name:"add-product-inputProduct",path:"/add/product/inputProduct",meta:JP||{},component:()=>re(()=>import("./D79qYHny.js"),__vite__mapDeps([224,225,204,29,15,3,16,30,31,63,205,206,207,6,77,78,79,25,42,38,39,37,43,24,69,7,8,9,226]),import.meta.url)},{name:"edit-story-id-infStory",path:"/edit/story/:id()/infStory",meta:YP||{},component:()=>re(()=>import("./KU5dbtlr.js"),__vite__mapDeps([227,188,67,68,189,105,77,78,79,25,42,38,39,37,43,24,15,3,16,32,52,53,54,55,26,56,23,57,58,8,18,20,59,99,100,101,30,36,40,190,83,155,84]),import.meta.url)},{name:"edit-story-id-inputStory",path:"/edit/story/:id()/inputStory",meta:XP||{},component:()=>re(()=>import("./CoCcFrgl.js"),__vite__mapDeps([228,203,204,29,15,3,16,30,31,63,205,206,207,6,77,78,79,25,42,38,39,37,43,24,7,8,9,10,208]),import.meta.url)},{name:"add-product-excel-infProductExcel",path:"/add/product/excel/infProductExcel",meta:QP||{},component:()=>re(()=>import("./Ci5xsvi6.js"),__vite__mapDeps([229,63]),import.meta.url)},{name:"edit-product-id-infProduct",path:"/edit/product/:id()/infProduct",meta:ZP||{},component:()=>re(()=>import("./fDINVVMd.js"),__vite__mapDeps([230,217,15,3,16,29,30,31,218,100,101,37,25,38,27,23,24,26,109,110,111,40,56,41,36,39,8,42,43,21,44,63,67,68,189,105,77,78,79,49,13,14,17,18,19,20,22,28,154,155,197,198,76,136,57,59,123,124,125,126,5,6,128,129,55,130,9,168,132,34,35,45,199,200,10,7,219,220,83,84]),import.meta.url)},{name:"add-product-excel-inputProductExcel",path:"/add/product/excel/inputProductExcel",meta:e$||{},component:()=>re(()=>import("./Bn6yXEZh.js"),__vite__mapDeps([231,63]),import.meta.url)},{name:"edit-product-id-inputProduct",path:"/edit/product/:id()/inputProduct",meta:t$||{},component:()=>re(()=>import("./CIzgzs4T.js"),__vite__mapDeps([232,225,204,29,15,3,16,30,31,63,205,206,207,6,77,78,79,25,42,38,39,37,43,24,69,7,8,9,226]),import.meta.url)}],Wb=(e,t)=>({default:()=>e?ft(Ms,e===!0?{}:e,t):t.default?.()}),n$=/(:\w+)\([^)]+\)/g,r$=/(:\w+)[?+*]/g,o$=/:\w+/g;function hg(e){const t=e?.meta.key??e.path.replace(n$,"$1").replace(r$,"$1").replace(o$,n=>e.params[n.slice(1)]?.toString()||"");return typeof t=="function"?t(e):t}function s$(e,t){return e===t||t===an?!1:hg(e)!==hg(t)?!0:!e.matched.every((r,o)=>r.components&&r.components.default===t.matched[o]?.components?.default)}const i$={scrollBehavior(e,t,n){const r=Je(),o=Pt().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:zb(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===an){a(pg(e,t,n,o));return}r.hooks.hookOnce(i,()=>{requestAnimationFrame(()=>a(pg(e,t,n,o)))})})}};function zb(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 pg(e,t,n,r){if(n)return n;const o=s$(e,t);return e.hash?{el:e.hash,top:zb(e.hash),behavior:o?r:"instant"}:{left:0,top:0}}const a$={hashMode:!1,scrollBehaviorType:"auto"},mr={...a$,...i$},l$=async(e,t)=>{let n,r;if(!e.meta?.validate)return;const o=([n,r]=ao(()=>Promise.resolve(e.meta.validate(e))),n=await n,r(),n);if(o===!0)return;const s=lo({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 vc(e){return Is()?(Pi(e),!0):!1}const gu=new WeakMap,c$=(...e)=>{var t;const n=e[0],r=(t=jt())==null?void 0:t.proxy;if(r==null&&!To())throw new Error("injectLocal must be called in setup");return r&&gu.has(r)&&n in gu.get(r)?gu.get(r)[n]:Te(...e)},Ds=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const u$=e=>e!=null,f$=Object.prototype.toString,d$=e=>f$.call(e)==="[object Object]",cn=()=>{},Pf=h$();function h$(){var e,t;return Ds&&((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 p$(...e){if(e.length!==1)return tc(...e);const t=e[0];return typeof t=="function"?Cd(Tv(()=>({get:t,set:cn}))):Z(t)}function g$(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 m$=e=>e();function y$(e,t={}){let n,r,o=cn;const s=l=>{clearTimeout(l),o(),o=cn};let i;return l=>{const u=nt(e),c=nt(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 v$(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 bi(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function _i(e){return Array.isArray(e)?e:[e]}function Vb(e){return jt()}function b$(e,t,n={}){const{eventFilter:r=m$,...o}=n;return _e(e,g$(r,t),o)}function Zd(e,t=!0,n){Vb()?gt(e,n):t?e():Ot(e)}function G8(e,t){Vb()&&js(e,t)}function K8(e,t,n={}){const{debounce:r=0,maxWait:o=void 0,...s}=n;return b$(e,t,{...s,eventFilter:y$(r,{maxWait:o})})}function _$(e,t,n){return _e(e,t,{...n,immediate:!0})}const fr=Ds?window:void 0;function Lt(e){var t;const n=nt(e);return(t=n?.$el)!=null?t:n}function Ut(...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=$(()=>{const a=_i(nt(e[0])).filter(l=>l!=null);return a.every(l=>typeof l!="string")?a:void 0}),s=_$(()=>{var a,l;return[(l=(a=o.value)==null?void 0:a.map(u=>Lt(u)))!=null?l:[fr].filter(u=>u!=null),_i(nt(o.value?e[1]:e[0])),_i(U(o.value?e[2]:e[1])),nt(o.value?e[3]:e[2])]},([a,l,u,c])=>{if(n(),!a?.length||!l?.length||!u?.length)return;const f=d$(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 vc(n),i}let gg=!1;function J8(e,t,n={}){const{window:r=fr,ignore:o=[],capture:s=!0,detectIframe:i=!1,controls:a=!1}=n;if(!r)return a?{stop:cn,cancel:cn,trigger:cn}:cn;if(Pf&&!gg){gg=!0;const y={passive:!0};Array.from(r.document.body.children).forEach(b=>b.addEventListener("click",cn,y)),r.document.documentElement.addEventListener("click",cn,y)}let l=!0;const u=y=>nt(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=Lt(b);return v&&(y.target===v||y.composedPath().includes(v))}});function c(y){const b=nt(y);return b&&b.$.subTree.shapeFlag===16}function f(y,b){const v=nt(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=Lt(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=[Ut(r,"click",y=>{h||(h=!0,setTimeout(()=>{h=!1},0),d(y))},{passive:!0,capture:s}),Ut(r,"pointerdown",y=>{const b=Lt(e);l=!u(y)&&!!(b&&!y.composedPath().includes(b))},{passive:!0}),i&&Ut(r,"blur",y=>{setTimeout(()=>{var b;const v=Lt(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 w$(){const e=ae(!1),t=jt();return t&>(()=>{e.value=!0},t),e}function bc(e){const t=w$();return $(()=>(t.value,!!e()))}const S$=500,C$=10;function Y8(e,t,n){var r,o;const s=$(()=>Lt(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??S$}function d(v){var m,_,S;const[E,w,O]=[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 A=v.x-w.x,j=v.y-w.y,N=Math.sqrt(A*A+j*j);n.onMouseUp(v.timeStamp-E,N,O)}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,O=v.y-a.y;Math.sqrt(w*w+O*O)>=((E=n?.distanceThreshold)!=null?E:C$)&&c()}const g={capture:(r=n?.modifiers)==null?void 0:r.capture,once:(o=n?.modifiers)==null?void 0:o.once},y=[Ut(s,"pointerdown",h,g),Ut(s,"pointermove",p,g),Ut(s,["pointerup","pointerleave"],d,g)];return()=>y.forEach(v=>v())}const E$=Symbol("vueuse-ssr-width");function qb(){const e=To()?c$(E$,null):null;return typeof e=="number"?e:void 0}function Er(e,t={}){const{window:n=fr,ssrWidth:r=qb()}=t,o=bc(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),s=ae(typeof r=="number"),i=ae(),a=ae(!1),l=u=>{a.value=u.matches};return Fn(()=>{if(s.value){s.value=!o.value;const u=nt(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>=bi(d[1])),h&&p&&(p=r<=bi(h[1])),f?!p:p});return}o.value&&(i.value=n.matchMedia(nt(e)),a.value=i.value.matches)}),Ut(i,"change",l,{passive:!0}),$(()=>a.value)}const X8={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};function Q8(e,t={}){function n(h,p){let g=nt(e[nt(h)]);return p!=null&&(g=v$(g,p)),typeof g=="number"&&(g=`${g}px`),g}const{window:r=fr,strategy:o="min-width",ssrWidth:s=qb()}=t,i=typeof s=="number",a=i?ae(!1):{value:!0};i&&Zd(()=>a.value=!!r);function l(h,p){return!a.value&&i?h==="min"?s>=bi(p):s<=bi(p):r?r.matchMedia(`(${h}-width: ${p})`).matches:!1}const u=h=>Er(()=>`(min-width: ${n(h)})`,t),c=h=>Er(()=>`(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],bi(n(p))]).sort((p,g)=>p[2]-g[2]);return $(()=>h.filter(([,p])=>p.value).map(([p])=>p))}return Object.assign(f,{greaterOrEqual:u,smallerOrEqual:c,greater(h){return Er(()=>`(min-width: ${n(h,.1)})`,t)},smaller(h){return Er(()=>`(max-width: ${n(h,-.1)})`,t)},between(h,p){return Er(()=>`(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 $(()=>h.value.length===0?"":h.value.at(o==="min-width"?-1:0))}})}function mu(e){return Er("(prefers-color-scheme: dark)",e)}function T$(e,t,n={}){const{window:r=fr,...o}=n;let s;const i=bc(()=>r&&"ResizeObserver"in r),a=()=>{s&&(s.disconnect(),s=void 0)},l=$(()=>{const f=nt(e);return Array.isArray(f)?f.map(d=>Lt(d)):[Lt(f)]}),u=_e(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 vc(c),{isSupported:i,stop:c}}function Z8(e,t={width:0,height:0},n={}){const{window:r=fr,box:o="content-box"}=n,s=$(()=>{var f,d;return(d=(f=Lt(e))==null?void 0:f.namespaceURI)==null?void 0:d.includes("svg")}),i=ae(t.width),a=ae(t.height),{stop:l}=T$(e,([f])=>{const d=o==="border-box"?f.borderBoxSize:o==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(r&&s.value){const h=Lt(e);if(h){const p=h.getBoundingClientRect();i.value=p.width,a.value=p.height}}else if(d){const h=_i(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);Zd(()=>{const f=Lt(e);f&&(i.value="offsetWidth"in f?f.offsetWidth:t.width,a.value="offsetHeight"in f?f.offsetHeight:t.height)});const u=_e(()=>Lt(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 e3(e,t,n={}){const{root:r,rootMargin:o="0px",threshold:s=0,window:i=fr,immediate:a=!0}=n,l=bc(()=>i&&"IntersectionObserver"in i),u=$(()=>{const p=nt(e);return _i(p).map(Lt).filter(u$)});let c=cn;const f=ae(a),d=l.value?_e(()=>[u.value,Lt(r),f.value],([p,g])=>{if(c(),!f.value||!p.length)return;const y=new IntersectionObserver(t,{root:Lt(g),rootMargin:o,threshold:s});p.forEach(b=>b&&y.observe(b)),c=()=>{y.disconnect(),c=cn}},{immediate:a,flush:"post"}):cn,h=()=>{c(),d(),f.value=!1};return vc(h),{isSupported:l,isActive:f,pause(){c(),f.value=!1},resume(){f.value=!0},stop:h}}function yu(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function x$(e={}){const{window:t=fr}=e,n=bc(()=>t&&"screen"in t&&"orientation"in t.screen),r=n.value?t.screen.orientation:{},o=Z(r.type),s=ae(r.angle||0);return n.value&&Ut(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 Gb(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:Gb(n)}}function A$(e){const t=e||window.event,n=t.target;return Gb(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const vu=new WeakMap;function t3(e,t=!1){const n=ae(t);let r=null,o="";_e(p$(e),a=>{const l=yu(nt(a));if(l){const u=l;if(vu.get(u)||vu.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=yu(nt(e));!a||n.value||(Pf&&(r=Ut(a,"touchmove",l=>{A$(l)},{passive:!1})),a.style.overflow="hidden",n.value=!0)},i=()=>{const a=yu(nt(e));!a||!n.value||(Pf&&r?.(),a.style.overflow=o,vu.delete(a),n.value=!1)};return vc(i),$({get(){return n.value},set(a){a?s():i()}})}function n3(e,t={}){const{threshold:n=50,onSwipe:r,onSwipeEnd:o,onSwipeStart:s,passive:i=!0}=t,a=rt({x:0,y:0}),l=rt({x:0,y:0}),u=$(()=>a.x-l.x),c=$(()=>a.y-l.y),{max:f,abs:d}=Math,h=$(()=>f(d(u.value),d(c.value))>=n),p=ae(!1),g=$(()=>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,O)=>{a.x=w,a.y=O},v=(w,O)=>{l.x=w,l.y=O},m={passive:i,capture:!i},_=w=>{p.value&&o?.(w,g.value),p.value=!1},S=[Ut(e,"touchstart",w=>{if(w.touches.length!==1)return;const[O,A]=y(w);b(O,A),v(O,A),s?.(w)},m),Ut(e,"touchmove",w=>{if(w.touches.length!==1)return;const[O,A]=y(w);v(O,A),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),Ut(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 O$(e={}){const{window:t=fr,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:o=!0,includeScrollbar:s=!0,type:i="inner"}=e,a=ae(n),l=ae(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(),Zd(u);const c={passive:!0};if(Ut("resize",u,c),t&&i==="visual"&&t.visualViewport&&Ut(t.visualViewport,"resize",u,c),o){const f=Er("(orientation: portrait)");_e(f,()=>u())}return{width:a,height:l}}const eh="auth-token";function Bi(e){"@babel/helpers - typeof";return Bi=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},Bi(e)}function P$(e,t){if(Bi(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $$(e){var t=P$(e,"string");return Bi(t)=="symbol"?t:t+""}function R$(e,t,n){return(t=$$(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mg(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?mg(Object(n),!0).forEach(function(r){R$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mg(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 k$=e=>typeof e=="function",I$=Array.isArray,N$=e=>typeof e=="string",L$=e=>e!==null&&typeof e=="object",j$=/^on[^a-z]/,M$=e=>j$.test(e),th=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},D$=/-(\w)/g,Kb=th(e=>e.replace(D$,(t,n)=>n?n.toUpperCase():"")),B$=/\B([A-Z])/g,U$=th(e=>e.replace(B$,"-$1").toLowerCase()),r3=th(e=>e.charAt(0).toUpperCase()+e.slice(1)),F$=Object.prototype.hasOwnProperty,yg=(e,t)=>F$.call(e,t);function H$(e,t,n,r){const o=e[n];if(o!=null){const s=yg(o,"default");if(s&&r===void 0){const i=o.default;r=o.type!==Function&&k$(i)?i():i}o.type===Boolean&&(!yg(t,n)&&!s?r=!1:r===""&&(r=!0))}return r}function o3(e){return Object.keys(e).reduce((t,n)=>((n.startsWith("data-")||n.startsWith("aria-"))&&(t[n]=e[n]),t),{})}function s3(e){return typeof e=="number"?`${e}px`:e}function ns(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 W$(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 Ye(){const e=[];for(let t=0;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t];if(n){if(N$(n))e.push(n);else if(I$(n))for(let r=0;r<n.length;r++){const o=Ye(n[r]);o&&e.push(o)}else if(L$(n))for(const r in n)n[r]&&e.push(r)}}return e.join(" ")}const z$=e=>e!=null&&e!=="",aa=(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},V$=e=>{const t=Object.keys(e),n={},r={},o={};for(let s=0,i=t.length;s<i;s++){const a=t[s];M$(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}},q$=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?Kb(i[0].trim()):i[0].trim();n[a]=i[1].trim()}}}),n)},i3=(e,t)=>e[t]!==void 0,G$=Symbol("skipFlatten"),or=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(...or(o,t)):o&&o.type===je?o.key===G$?r.push(o):r.push(...or(o.children,t)):o&&nn(o)?t&&!Jb(o)?r.push(o):t||r.push(o):z$(o)&&r.push(o)}),r},a3=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(nn(e))return e.type===je?t==="default"?or(e.children):[]:e.children&&e.children[t]?or(e.children[t](n)):[];{const r=e.$slots[t]&&e.$slots[t](n);return or(r)}},Dl=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},l3=e=>{const t={};if(e.$&&e.$.vnode){const n=e.$.vnode.props||{};Object.keys(e.$props).forEach(r=>{const o=e.$props[r],s=U$(r);(o!==void 0||s in n)&&(t[r]=o)})}else if(nn(e)&&typeof e.type=="object"){const n=e.props||{},r={};Object.keys(n).forEach(s=>{r[Kb(s)]=n[s]});const o=e.type.props||{};Object.keys(o).forEach(s=>{const i=H$(o,r,s,r[s]);(i!==void 0||s in r)&&(t[s]=i)})}return t},c3=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(nn(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=or(o),o=o.length===1?o[0]:o,o=o.length===0?void 0:o),o};function u3(){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),V$(n)[t?"onEvents":"events"]}function f3(e,t){let r=((nn(e)?e.props:e.$attrs)||{}).style||{};return typeof r=="string"&&(r=q$(r,t)),r}function d3(e){return e.length===1&&e[0].type===je}function Jb(e){return e&&(e.type===qe||e.type===je&&e.children.length===0||e.type===rr&&e.children.trim()==="")}function _c(){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(..._c(n.children)):t.push(n)}),t.filter(n=>!Jb(n))}function h3(e){if(e){const t=_c(e);return t.length?t:void 0}else return e}function p3(e){return Array.isArray(e)&&e.length===1&&(e=e[0]),e&&e.__v_isVNode&&typeof e.type!="symbol"}function g3(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 Yb=e=>setTimeout(e,16),Xb=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(Yb=e=>window.requestAnimationFrame(e),Xb=e=>window.cancelAnimationFrame(e));let vg=0;const nh=new Map;function Qb(e){nh.delete(e)}function Ui(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;vg+=1;const n=vg;function r(o){if(o===0)Qb(n),e();else{const s=Yb(()=>{r(o-1)});nh.set(n,s)}}return r(t),n}Ui.cancel=e=>{const t=nh.get(e);return Qb(t),Xb(t)};const Bl=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t},rh=e=>{const t=e;return t.install=function(n){n.component(t.displayName||t.name,e)},e};function bg(){return{type:[Function,Array]}}function et(e){return{type:Object,default:e}}function ds(e){return{type:Boolean,default:e}}function m3(e){return{type:Function,default:e}}function $f(e,t){const n={validator:()=>!0,default:e};return n}function y3(){return{validator:()=>!0}}function _g(e){return{type:Array,default:e}}function wg(e){return{type:String,default:e}}function K$(e,t){return e?{type:e,default:t}:$f(t)}let Zb=!1;try{const e=Object.defineProperty({},"passive",{get(){Zb=!0}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch{}function J$(e,t,n,r){if(e&&e.addEventListener){let o=r;o===void 0&&Zb&&(t==="touchstart"||t==="touchmove"||t==="wheel")&&(o={passive:!1}),e.addEventListener(t,n,o)}return{remove:()=>{e&&e.removeEventListener&&e.removeEventListener(t,n)}}}const oh="anticon",e_=Symbol("GlobalFormContextKey"),Y$=e=>{wt(e_,e)},v3=()=>Te(e_,{validateMessages:$(()=>{})}),X$=()=>({iconPrefixCls:String,getTargetContainer:{type:Function},getPopupContainer:{type:Function},prefixCls:String,getPrefixCls:{type:Function},renderEmpty:{type:Function},transformCellText:{type:Function},csp:et(),input:et(),autoInsertSpaceInButton:{type:Boolean,default:void 0},locale:et(),pageHeader:et(),componentSize:{type:String},componentDisabled:{type:Boolean,default:void 0},direction:{type:String,default:"ltr"},space:et(),virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},form:et(),pagination:et(),theme:et(),select:et(),wave:et()}),sh=Symbol("configProvider"),t_={getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:$(()=>oh),getPopupContainer:$(()=>()=>document.body),direction:$(()=>"ltr")},ih=()=>Te(sh,t_),Q$=e=>wt(sh,e),n_=Symbol("DisabledContextKey"),ah=()=>Te(n_,Z(void 0)),Z$=e=>{const t=ah();return wt(n_,$(()=>{var n;return(n=e.value)!==null&&n!==void 0?n:t.value})),e},eR={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"},tR={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"},r_={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Sg={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"]},tR),timePickerLocale:x({},r_)},Jt="${label} is not a valid ${type}",bo={locale:"en",Pagination:eR,DatePicker:Sg,TimePicker:r_,Calendar:Sg,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:Jt,method:Jt,array:Jt,object:Jt,number:Jt,date:Jt,boolean:Jt,integer:Jt,float:Jt,regexp:Jt,email:Jt,url:Jt,hex:Jt},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"}},o_=pe({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=$(()=>{const{componentName:i="global",defaultLocale:a}=e,l=a||bo[i||"global"],{antLocale:u}=r,c=i&&u?u[i]:{};return x(x({},typeof l=="function"?l():l),c||{})}),s=$(()=>{const{antLocale:i}=r,a=i&&i.locale;return i&&i.exist&&!a?bo.locale:a});return()=>{const i=e.children||n.default,{antLocale:a}=r;return i?.(o.value,s.value,a)}}});function lh(e,t,n){const r=Te("localeData",{});return[$(()=>{const{antLocale:s}=r,i=U(t)||bo[e||"global"],a=e&&s?s[e]:{};return x(x(x({},typeof i=="function"?i():i),a||{}),U(n)||{})})]}function ch(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 Cg="%";class nR{constructor(t){this.cache=new Map,this.instanceId=t}get(t){return this.cache.get(Array.isArray(t)?t.join(Cg):t)||null}update(t,n){const r=Array.isArray(t)?t.join(Cg):t,o=this.cache.get(r),s=n(o);s===null?this.cache.delete(r):this.cache.set(r,s)}}const s_="data-token-hash",co="data-css-hash",rs="__cssinjs_instance__";function Fi(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${co}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(o=>{o[rs]=o[rs]||e,o[rs]===e&&document.head.insertBefore(o,n)});const r={};Array.from(document.querySelectorAll(`style[${co}]`)).forEach(o=>{var s;const i=o.getAttribute(co);r[i]?o[rs]===e&&((s=o.parentNode)===null||s===void 0||s.removeChild(o)):r[i]=!0})}return new nR(e)}const i_=Symbol("StyleContextKey"),rR=()=>{var e,t,n;const r=jt();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=Fi(),r.appContext.config.globalProperties&&(r.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=o))}else o=Fi();return o},a_={cache:Fi(),defaultCache:!0,hashPriority:"low"},wc=()=>{const e=rR();return Te(i_,ae(x(x({},a_),{cache:e})))},oR=e=>{const t=wc(),n=ae(x(x({},a_),{cache:Fi()}));return _e([()=>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||Fi(),r.defaultCache=!s&&t.value.defaultCache,n.value=r},{immediate:!0}),wt(i_,n),n},sR=()=>({autoClear:ds(),mock:wg(),cache:et(),defaultCache:ds(),hashPriority:wg(),container:K$(),ssrInline:ds(),transformers:_g(),linters:_g()});rh(pe({name:"AStyleProvider",inheritAttrs:!1,props:sR(),setup(e,t){let{slots:n}=t;return oR(e),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}));function l_(e,t,n,r){const o=wc(),s=ae(""),i=ae();Fn(()=>{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 _e(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}),on(()=>{a(s.value)}),i}function Tn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function c_(e,t){return e&&e.contains?e.contains(t):!1}const Eg="data-vc-order",iR="vc-util-key",Rf=new Map;function u_(){let{mark:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e?e.startsWith("data-")?e:`data-${e}`:iR}function Sc(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function aR(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function f_(e){return Array.from((Rf.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function d_(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Tn())return null;const{csp:n,prepend:r}=t,o=document.createElement("style");o.setAttribute(Eg,aR(r)),n?.nonce&&(o.nonce=n?.nonce),o.innerHTML=e;const s=Sc(t),{firstChild:i}=s;if(r){if(r==="queue"){const a=f_(s).filter(l=>["prepend","prependQueue"].includes(l.getAttribute(Eg)));if(a.length)return s.insertBefore(o,a[a.length-1].nextSibling),o}s.insertBefore(o,i)}else s.appendChild(o);return o}function h_(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=Sc(t);return f_(n).find(r=>r.getAttribute(u_(t))===e)}function Ul(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=h_(e,t);n&&Sc(t).removeChild(n)}function lR(e,t){const n=Rf.get(e);if(!n||!c_(document,n)){const r=d_("",t),{parentNode:o}=r;Rf.set(e,o),e.removeChild(r)}}function Hi(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var r,o,s;const i=Sc(n);lR(i,n);const a=h_(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=d_(e,n);return l.setAttribute(u_(n),t),l}function cR(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 Cs{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>Cs.MAX_CACHE_SIZE+Cs.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=>!cR(n,t)),this.deleteByPath(this.cache,t)}}Cs.MAX_CACHE_SIZE=20;Cs.MAX_CACHE_OFFSET=5;let Tg={};function uR(e,t){}function fR(e,t){}function p_(e,t,n){!t&&!Tg[n]&&(e(!1,n),Tg[n]=!0)}function dR(e,t){p_(uR,e,t)}function b3(e,t){p_(fR,e,t)}function hR(){}let Cc=hR,xg=0;class g_{constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=xg,t.length===0&&Cc(t.length>0),xg+=1}getDerivativeToken(t){return this.derivatives.reduce((n,r)=>r(t,n),void 0)}}const bu=new Cs;function m_(e){const t=Array.isArray(e)?e:[e];return bu.has(t)||bu.set(t,new g_(t)),bu.get(t)}const Ag=new WeakMap;function Fl(e){let t=Ag.get(e)||"";return t||(Object.keys(e).forEach(n=>{const r=e[n];t+=n,r instanceof g_?t+=r.id:r&&typeof r=="object"?t+=Fl(r):t+=r}),Ag.set(e,t)),t}function pR(e,t){return ch(`${t}_${Fl(e)}`)}const wi=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),y_="_bAmBoO_";function gR(e,t,n){var r,o;if(Tn()){Hi(e,wi);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(y_);return(o=s.parentNode)===null||o===void 0||o.removeChild(s),Ul(wi),i}return!1}let _u;function mR(){return _u===void 0&&(_u=gR(`@layer ${wi} { .${wi} { content: "${y_}"!important; } }`,e=>{e.className=wi})),_u}const Og={},yR="css",Kr=new Map;function vR(e){Kr.set(e,(Kr.get(e)||0)+1)}function bR(e,t){typeof document<"u"&&document.querySelectorAll(`style[${s_}="${e}"]`).forEach(r=>{var o;r[rs]===t&&((o=r.parentNode)===null||o===void 0||o.removeChild(r))})}const _R=0;function wR(e,t){Kr.set(e,(Kr.get(e)||0)-1);const n=Array.from(Kr.keys()),r=n.filter(o=>(Kr.get(o)||0)<=0);n.length-r.length>_R&&r.forEach(o=>{bR(o,t),Kr.delete(o)})}const SR=(e,t,n,r)=>{const o=n.getDerivativeToken(e);let s=x(x({},o),t);return r&&(s=r(s)),s};function CR(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Z({});const r=wc(),o=$(()=>x({},...t.value)),s=$(()=>Fl(o.value)),i=$(()=>Fl(n.value.override||Og));return l_("token",$(()=>[n.value.salt||"",e.value.id,s.value,i.value]),()=>{const{salt:l="",override:u=Og,formatToken:c,getComputedToken:f}=n.value,d=f?f(o.value,u,e.value):SR(o.value,u,e.value,c),h=pR(d,l);d._tokenKey=h,vR(h);const p=`${yR}-${ch(h)}`;return d._hashId=p,[d,p]},l=>{var u;wR(l[0]._tokenKey,(u=r.value)===null||u===void 0?void 0:u.cache.instanceId)})}var ER={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},v_="comm",b_="rule",__="decl",TR="@import",xR="@namespace",AR="@keyframes",OR="@layer",w_=Math.abs,uh=String.fromCharCode;function S_(e){return e.trim()}function tl(e,t,n){return e.replace(t,n)}function PR(e,t,n){return e.indexOf(t,n)}function hs(e,t){return e.charCodeAt(t)|0}function Es(e,t,n){return e.slice(t,n)}function Ln(e){return e.length}function $R(e){return e.length}function Ra(e,t){return t.push(e),e}var Ec=1,Ts=1,C_=0,fn=0,tt=0,Bs="";function fh(e,t,n,r,o,s,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:Ec,column:Ts,length:i,return:"",siblings:a}}function RR(){return tt}function kR(){return tt=fn>0?hs(Bs,--fn):0,Ts--,tt===10&&(Ts=1,Ec--),tt}function _n(){return tt=fn<C_?hs(Bs,fn++):0,Ts++,tt===10&&(Ts=1,Ec++),tt}function xr(){return hs(Bs,fn)}function nl(){return fn}function Tc(e,t){return Es(Bs,e,t)}function Wi(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 IR(e){return Ec=Ts=1,C_=Ln(Bs=e),fn=0,[]}function NR(e){return Bs="",e}function wu(e){return S_(Tc(fn-1,kf(e===91?e+2:e===40?e+1:e)))}function LR(e){for(;(tt=xr())&&tt<33;)_n();return Wi(e)>2||Wi(tt)>3?"":" "}function jR(e,t){for(;--t&&_n()&&!(tt<48||tt>102||tt>57&&tt<65||tt>70&&tt<97););return Tc(e,nl()+(t<6&&xr()==32&&_n()==32))}function kf(e){for(;_n();)switch(tt){case e:return fn;case 34:case 39:e!==34&&e!==39&&kf(tt);break;case 40:e===41&&kf(e);break;case 92:_n();break}return fn}function MR(e,t){for(;_n()&&e+tt!==57;)if(e+tt===84&&xr()===47)break;return"/*"+Tc(t,fn-1)+"*"+uh(e===47?e:_n())}function DR(e){for(;!Wi(xr());)_n();return Tc(e,fn)}function BR(e){return NR(rl("",null,null,null,[""],e=IR(e),0,[0],e))}function rl(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=_n()){case 40:if(p!=108&&hs(w,f-1)==58){PR(w+=tl(wu(v),"&","&\f"),"&\f",w_(u?a[u-1]:0))!=-1&&(b=-1);break}case 34:case 39:case 91:w+=wu(v);break;case 9:case 10:case 13:case 32:w+=LR(p);break;case 92:w+=jR(nl()-1,7);continue;case 47:switch(xr()){case 42:case 47:Ra(UR(MR(_n(),nl()),t,n,l),l),(Wi(p||1)==5||Wi(xr()||1)==5)&&Ln(w)&&Es(w,-1,void 0)!==" "&&(w+=" ");break;default:w+="/"}break;case 123*g:a[u++]=Ln(w)*b;case 125*g:case 59:case 0:switch(v){case 0:case 125:y=0;case 59+c:b==-1&&(w=tl(w,/\f/g,"")),h>0&&(Ln(w)-f||g===0&&p===47)&&Ra(h>32?$g(w+";",r,n,f-1,l):$g(tl(w," ","")+";",r,n,f-2,l),l);break;case 59:w+=";";default:if(Ra(E=Pg(w,t,n,u,c,o,a,m,_=[],S=[],f,s),s),v===123)if(c===0)rl(w,t,E,E,_,s,f,a,S);else{switch(d){case 99:if(hs(w,3)===110)break;case 108:if(hs(w,2)===97)break;default:c=0;case 100:case 109:case 115:}c?rl(e,E,E,r&&Ra(Pg(e,E,E,0,0,o,a,m,o,_=[],f,S),S),o,S,f,a,r?_:S):rl(w,E,E,E,[""],S,0,a,S)}}u=c=h=0,g=b=1,m=w="",f=i;break;case 58:f=1+Ln(w),h=p;default:if(g<1){if(v==123)--g;else if(v==125&&g++==0&&kR()==125)continue}switch(w+=uh(v),v*g){case 38:b=c>0?1:(w+="\f",-1);break;case 44:a[u++]=(Ln(w)-1)*b,b=1;break;case 64:xr()===45&&(w+=wu(_n())),d=xr(),c=f=Ln(m=w+=DR(nl())),v++;break;case 45:p===45&&Ln(w)==2&&(g=0)}}return s}function Pg(e,t,n,r,o,s,i,a,l,u,c,f){for(var d=o-1,h=o===0?s:[""],p=$R(h),g=0,y=0,b=0;g<r;++g)for(var v=0,m=Es(e,d+1,d=w_(y=i[g])),_=e;v<p;++v)(_=S_(y>0?h[v]+" "+m:tl(m,/&\f/g,h[v])))&&(l[b++]=_);return fh(e,t,n,o===0?b_:a,l,u,c,f)}function UR(e,t,n,r){return fh(e,t,n,v_,uh(RR()),Es(e,2,-2),0,r)}function $g(e,t,n,r,o){return fh(e,t,n,__,Es(e,0,r),Es(e,r+1,-1),r,o)}function If(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function FR(e,t,n,r){switch(e.type){case OR:if(e.children.length)break;case TR:case xR:case __:return e.return=e.return||e.value;case v_:return"";case AR:return e.return=e.value+"{"+If(e.children,r)+"}";case b_:if(!Ln(e.value=e.props.join(",")))return""}return Ln(n=If(e.children,r))?e.return=e.value+"{"+n+"}":""}const Rg="data-ant-cssinjs-cache-path",HR="_FILE_STYLE__";let uo,E_=!0;function WR(){var e;if(!uo&&(uo={},Tn())){const t=document.createElement("div");t.className=Rg,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(":");uo[s]=i});const r=document.querySelector(`style[${Rg}]`);r&&(E_=!1,(e=r.parentNode)===null||e===void 0||e.removeChild(r)),document.body.removeChild(t)}}function zR(e){return WR(),!!uo[e]}function VR(e){const t=uo[e];let n=null;if(t&&Tn())if(E_)n=HR;else{const r=document.querySelector(`style[${co}="${uo[e]}"]`);r?n=r.innerHTML:delete uo[e]}return[n,t]}const kg=Tn(),qR="_skip_check_",T_="_multi_value_";function Ig(e){return If(BR(e),FR).replace(/\{%%%\:[^;];}/g,";")}function GR(e){return typeof e=="object"&&e&&(qR in e||T_ in e)}function KR(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 Ng=new Set,Nf=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]=Nf(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)&&!GR(S)){let E=!1,w=m.trim(),O=!1;(n||r)&&s?w.startsWith("@")?E=!0:w=KR(m,s,l):n&&!s&&(w==="&"||w==="")&&(w="",O=!0);const[A,j]=Nf(S,t,{root:O,injectHash:E,parentSelectors:[...o,w]});d=x(x({},d),j),f+=`${w}${A}`}else{let E=function(O,A){const j=O.replace(/[A-Z]/g,k=>`-${k.toLowerCase()}`);let N=A;!ER[O]&&typeof N=="number"&&N!==0&&(N=`${N}px`),O==="animationName"&&A?._keyframe&&(h(A),N=A.getName(s)),f+=`${j}:${N};`};const w=(_=S?.value)!==null&&_!==void 0?_:S;typeof S=="object"&&S?.[T_]&&Array.isArray(w)?w.forEach(O=>{E(m,O)}):E(m,w)}})}}),!n)f=`{${f}}`;else if(i&&mR()){const y=i.split(",");f=`@layer ${y[y.length-1].trim()} {${f}}`,y.length>1&&(f=`@layer ${i}{%%%:%}${f}`)}return[f,d]};function JR(e,t){return ch(`${e.join("%")}${t}`)}function Lf(e,t){const n=wc(),r=$(()=>e.value.token._tokenKey),o=$(()=>[r.value,...e.value.path]);let s=kg;return l_("style",o,()=>{const{path:i,hashId:a,layer:l,nonce:u,clientOnly:c,order:f=0}=e.value,d=o.value.join("|");if(zR(d)){const[w,O]=VR(d);if(w)return[w,r.value,O,{},c,f]}const h=t(),{hashPriority:p,container:g,transformers:y,linters:b,cache:v}=n.value,[m,_]=Nf(h,{hashId:a,hashPriority:p,layer:l,path:i.join("-"),transformers:y,linters:b}),S=Ig(m),E=JR(o.value,S);if(s){const w={mark:co,prepend:"queue",attachTo:g,priority:f},O=typeof u=="function"?u():u;O&&(w.csp={nonce:O});const A=Hi(S,E,w);A[rs]=v.instanceId,A.setAttribute(s_,r.value),Object.keys(_).forEach(j=>{Ng.has(j)||(Ng.add(j),Hi(Ig(_[j]),`_effect-${j}`,{mark:co,prepend:"queue",attachTo:g}))})}return[S,r.value,E,_,c,f]},(i,a)=>{let[,,l]=i;(a||n.value.autoClear)&&kg&&Ul(l,{mark:co})}),i=>i}class Ke{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 YR="4.1.2";function St(e,t){XR(e)&&(e="100%");var n=QR(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 ka(e){return Math.min(1,Math.max(0,e))}function XR(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function QR(e){return typeof e=="string"&&e.indexOf("%")!==-1}function x_(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ia(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Zr(e){return e.length===1?"0"+e:String(e)}function ZR(e,t,n){return{r:St(e,255)*255,g:St(t,255)*255,b:St(n,255)*255}}function Lg(e,t,n){e=St(e,255),t=St(t,255),n=St(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 Su(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 ek(e,t,n){var r,o,s;if(e=St(e,360),t=St(t,100),n=St(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=Su(a,i,e+1/3),o=Su(a,i,e),s=Su(a,i,e-1/3)}return{r:r*255,g:o*255,b:s*255}}function jf(e,t,n){e=St(e,255),t=St(t,255),n=St(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 tk(e,t,n){e=St(e,360)*6,t=St(t,100),n=St(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 Mf(e,t,n,r){var o=[Zr(Math.round(e).toString(16)),Zr(Math.round(t).toString(16)),Zr(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 nk(e,t,n,r,o){var s=[Zr(Math.round(e).toString(16)),Zr(Math.round(t).toString(16)),Zr(Math.round(n).toString(16)),Zr(rk(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 rk(e){return Math.round(parseFloat(e)*255).toString(16)}function jg(e){return Yt(e)/255}function Yt(e){return parseInt(e,16)}function ok(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Df={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 Yo(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=ak(e)),typeof e=="object"&&(Vn(e.r)&&Vn(e.g)&&Vn(e.b)?(t=ZR(e.r,e.g,e.b),i=!0,a=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Vn(e.h)&&Vn(e.s)&&Vn(e.v)?(r=Ia(e.s),o=Ia(e.v),t=tk(e.h,r,o),i=!0,a="hsv"):Vn(e.h)&&Vn(e.s)&&Vn(e.l)&&(r=Ia(e.s),s=Ia(e.l),t=ek(e.h,r,s),i=!0,a="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=x_(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 sk="[-\\+]?\\d+%?",ik="[-\\+]?\\d*\\.\\d+%?",Ar="(?:".concat(ik,")|(?:").concat(sk,")"),Cu="[\\s|\\(]+(".concat(Ar,")[,|\\s]+(").concat(Ar,")[,|\\s]+(").concat(Ar,")\\s*\\)?"),Eu="[\\s|\\(]+(".concat(Ar,")[,|\\s]+(").concat(Ar,")[,|\\s]+(").concat(Ar,")[,|\\s]+(").concat(Ar,")\\s*\\)?"),hn={CSS_UNIT:new RegExp(Ar),rgb:new RegExp("rgb"+Cu),rgba:new RegExp("rgba"+Eu),hsl:new RegExp("hsl"+Cu),hsla:new RegExp("hsla"+Eu),hsv:new RegExp("hsv"+Cu),hsva:new RegExp("hsva"+Eu),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 ak(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Df[e])e=Df[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:Yt(n[1]),g:Yt(n[2]),b:Yt(n[3]),a:jg(n[4]),format:t?"name":"hex8"}:(n=hn.hex6.exec(e),n?{r:Yt(n[1]),g:Yt(n[2]),b:Yt(n[3]),format:t?"name":"hex"}:(n=hn.hex4.exec(e),n?{r:Yt(n[1]+n[1]),g:Yt(n[2]+n[2]),b:Yt(n[3]+n[3]),a:jg(n[4]+n[4]),format:t?"name":"hex8"}:(n=hn.hex3.exec(e),n?{r:Yt(n[1]+n[1]),g:Yt(n[2]+n[2]),b:Yt(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Vn(e){return!!hn.CSS_UNIT.exec(String(e))}var _t=(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=ok(t)),this.originalInput=t;var o=Yo(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=x_(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=jf(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=jf(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=Lg(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=Lg(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),Mf(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),nk(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(St(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(St(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="#"+Mf(this.r,this.g,this.b,!1),n=0,r=Object.entries(Df);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=ka(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=ka(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=ka(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=ka(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})(),Na=2,Mg=.16,lk=.05,ck=.05,uk=.15,A_=5,O_=4,fk=[{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 Dg(e){var t=e.r,n=e.g,r=e.b,o=jf(t,n,r);return{h:o.h*360,s:o.s,v:o.v}}function La(e){var t=e.r,n=e.g,r=e.b;return"#".concat(Mf(t,n,r,!1))}function dk(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 Bg(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Na*t:Math.round(e.h)+Na*t:r=n?Math.round(e.h)+Na*t:Math.round(e.h)-Na*t,r<0?r+=360:r>=360&&(r-=360),r}function Ug(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Mg*t:t===O_?r=e.s+Mg:r=e.s+lk*t,r>1&&(r=1),n&&t===A_&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function Fg(e,t,n){var r;return n?r=e.v+ck*t:r=e.v-uk*t,r>1&&(r=1),Number(r.toFixed(2))}function _o(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Yo(e),o=A_;o>0;o-=1){var s=Dg(r),i=La(Yo({h:Bg(s,o,!0),s:Ug(s,o,!0),v:Fg(s,o,!0)}));n.push(i)}n.push(La(r));for(var a=1;a<=O_;a+=1){var l=Dg(r),u=La(Yo({h:Bg(l,a),s:Ug(l,a),v:Fg(l,a)}));n.push(u)}return t.theme==="dark"?fk.map(function(c){var f=c.index,d=c.opacity,h=La(dk(Yo(t.backgroundColor||"#141414"),Yo(n[f]),d*100));return h}):n}var Tu={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"},ol={},xu={};Object.keys(Tu).forEach(function(e){ol[e]=_o(Tu[e]),ol[e].primary=ol[e][5],xu[e]=_o(Tu[e],{theme:"dark",backgroundColor:"#141414"}),xu[e].primary=xu[e][5]});var hk=ol.blue;const pk=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function gk(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 P_={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"},xc=x(x({},P_),{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 mk(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 _t("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const yk=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 vk(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},yk(r))}const qn=(e,t)=>new _t(e).setAlpha(t).toRgbString(),Zs=(e,t)=>new _t(e).darken(t).toHexString(),bk=e=>{const t=_o(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]}},_k=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:qn(r,.88),colorTextSecondary:qn(r,.65),colorTextTertiary:qn(r,.45),colorTextQuaternary:qn(r,.25),colorFill:qn(r,.15),colorFillSecondary:qn(r,.06),colorFillTertiary:qn(r,.04),colorFillQuaternary:qn(r,.02),colorBgLayout:Zs(n,4),colorBgContainer:Zs(n,0),colorBgElevated:Zs(n,0),colorBgSpotlight:qn(r,.85),colorBorder:Zs(n,15),colorBorderSecondary:Zs(n,6)}};function wk(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 Sk=e=>{const t=wk(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 Ck(e){const t=Object.keys(P_).map(n=>{const r=_o(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),mk(e,{generateColorPalettes:bk,generateNeutralColorPalettes:_k})),Sk(e.fontSize)),gk(e)),pk(e)),vk(e))}function Au(e){return e>=0&&e<=255}function ja(e,t){const{r:n,g:r,b:o,a:s}=new _t(e).toRgb();if(s<1)return e;const{r:i,g:a,b:l}=new _t(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(Au(c)&&Au(f)&&Au(d))return new _t({r:c,g:f,b:d,a:Math.round(u*100)/100}).toRgbString()}return new _t({r:n,g:r,b:o,a:1}).toRgbString()}var Ek=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 Tk(e){const{override:t}=e,n=Ek(e,["override"]),r=x({},t);Object.keys(xc).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:ja(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:ja(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:ja(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:ja(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 _t("rgba(0, 0, 0, 0.16)").toRgbString()},
|
||
0 3px 6px 0 ${new _t("rgba(0, 0, 0, 0.12)").toRgbString()},
|
||
0 5px 12px 4px ${new _t("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 _3={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},dh=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),xk=()=>({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"}}),Ak=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Ok=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"}}}),Pk=(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"}}}}},$k=e=>({outline:`${e.lineWidthBold}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),$_=e=>({"&:focus-visible":x({},$k(e))});function Ao(e,t,n){return r=>{const o=$(()=>r?.value),[s,i,a]=la(),{getPrefixCls:l,iconPrefixCls:u}=ih(),c=$(()=>l()),f=$(()=>({theme:s.value,token:i.value,hashId:a.value,path:["Shared",c.value]}));Lf(f,()=>[{"&":Ok(i.value)}]);const d=$(()=>({theme:s.value,token:i.value,hashId:a.value,path:[e,o.value,u.value]}));return[Lf(d,()=>{const{token:h,flush:p}=kk(i.value),g=typeof n=="function"?n(h):n,y=x(x({},g),i.value[e]),b=`.${o.value}`,v=Nr(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),[Pk(i.value,o.value),m]}),a]}}const R_=typeof CSSINJS_STATISTIC<"u";let Bf=!0;function Nr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!R_)return x({},...t);Bf=!1;const r={};return t.forEach(o=>{Object.keys(o).forEach(i=>{Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:()=>o[i]})})}),Bf=!0,r}function Rk(){}function kk(e){let t,n=e,r=Rk;return R_&&(t=new Set,n=new Proxy(e,{get(o,s){return Bf&&t.add(s),o[s]}}),r=(o,s)=>{Array.from(t)}),{token:n,keys:t,flush:r}}const Ik=m_(Ck),k_={token:xc,hashed:!0},I_=Symbol("DesignTokenContext"),Uf=ae(),Nk=e=>{wt(I_,e),_e(e,()=>{Uf.value=U(e),XC(Uf)},{immediate:!0,deep:!0})},Lk=pe({props:{value:et()},setup(e,t){let{slots:n}=t;return Nk($(()=>e.value)),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});function la(){const e=Te(I_,$(()=>Uf.value||k_)),t=$(()=>`${YR}-${e.value.hashed||""}`),n=$(()=>e.value.theme||Ik),r=CR(n,$(()=>[xc,e.value.token]),$(()=>({salt:t.value,override:x({override:e.value.token},e.value.components),formatToken:Tk})));return[n,$(()=>r.value[0]),$(()=>e.value.hashed?r.value[1]:"")]}const N_=pe({compatConfig:{MODE:3},setup(){const[,e]=la(),t=$(()=>new _t(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)])])])}});N_.PRESENTED_IMAGE_DEFAULT=!0;const L_=pe({compatConfig:{MODE:3},setup(){const[,e]=la(),t=$(()=>{const{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:s}=e.value;return{borderColor:new _t(n).onBackground(s).toHexString(),shadowColor:new _t(r).onBackground(s).toHexString(),contentColor:new _t(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)])])])}});L_.PRESENTED_IMAGE_SIMPLE=!0;const jk=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}}}}},Mk=Ao("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,r=Nr(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return[jk(r)]});var Dk=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 j_=P(N_,null,null),M_=P(L_,null,null),Bk=()=>({prefixCls:String,imageStyle:et(),image:$f(),description:$f()}),hh=pe({name:"AEmpty",compatConfig:{MODE:3},inheritAttrs:!1,props:Bk(),setup(e,t){let{slots:n={},attrs:r}=t;const{direction:o,prefixCls:s}=dr("empty",e),[i,a]=Mk(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))||j_,description:h=((u=n.description)===null||u===void 0?void 0:u.call(n))||void 0,imageStyle:p,class:g=""}=f,y=Dk(f,["image","description","imageStyle","class"]);return i(P(o_,{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",fe({class:Ye(c,g,a.value,{[`${c}-normal`]:d===M_,[`${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`},[_c(n.default())])])}},null))}}});hh.PRESENTED_IMAGE_DEFAULT=j_;hh.PRESENTED_IMAGE_SIMPLE=M_;const ei=rh(hh),D_=e=>{const{prefixCls:t}=dr("empty",e);return(r=>{switch(r){case"Table":case"List":return P(ei,{image:ei.PRESENTED_IMAGE_SIMPLE},null);case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return P(ei,{image:ei.PRESENTED_IMAGE_SIMPLE,class:`${t.value}-small`},null);default:return P(ei,null,null)}})(e.componentName)};function Uk(e){return P(D_,{componentName:e},null)}const B_=Symbol("SizeContextKey"),U_=()=>Te(B_,Z(void 0)),Fk=e=>{const t=U_();return wt(B_,$(()=>e.value||t.value)),e},dr=((e,t)=>{const n=U_(),r=ah(),o=Te(sh,x(x({},t_),{renderEmpty:w=>ft(D_,{componentName:w})})),s=$(()=>o.getPrefixCls(e,t.prefixCls)),i=$(()=>{var w,O;return(w=t.direction)!==null&&w!==void 0?w:(O=o.direction)===null||O===void 0?void 0:O.value}),a=$(()=>{var w;return(w=t.iconPrefixCls)!==null&&w!==void 0?w:o.iconPrefixCls.value}),l=$(()=>o.getPrefixCls()),u=$(()=>{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=$(()=>{var w,O;return(w=t.getTargetContainer)!==null&&w!==void 0?w:(O=o.getTargetContainer)===null||O===void 0?void 0:O.value}),g=$(()=>{var w,O,A;return(O=(w=t.getContainer)!==null&&w!==void 0?w:t.getPopupContainer)!==null&&O!==void 0?O:(A=o.getPopupContainer)===null||A===void 0?void 0:A.value}),y=$(()=>{var w,O;return(w=t.dropdownMatchSelectWidth)!==null&&w!==void 0?w:(O=o.dropdownMatchSelectWidth)===null||O===void 0?void 0:O.value}),b=$(()=>{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=$(()=>t.size||n.value),m=$(()=>{var w,O,A;return(w=t.autocomplete)!==null&&w!==void 0?w:(A=(O=o.input)===null||O===void 0?void 0:O.value)===null||A===void 0?void 0:A.autocomplete}),_=$(()=>{var w;return(w=t.disabled)!==null&&w!==void 0?w:r.value}),S=$(()=>{var w;return(w=t.csp)!==null&&w!==void 0?w:o.csp}),E=$(()=>{var w,O;return(w=t.wave)!==null&&w!==void 0?w:(O=o.wave)===null||O===void 0?void 0:O.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 F_(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 Hk(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 H_(e,t,n){return n&&Hk(e,n),e}function sl(){return(sl=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 W_(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function z_(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 Hg(e){return((t=e)!=null&&typeof t=="object"&&Array.isArray(t)===!1)==1&&Object.prototype.toString.call(e)==="[object Object]";var t}var V_=Object.prototype,q_=V_.toString,Wk=V_.hasOwnProperty,G_=/^\s*function (\w+)/;function Wg(e){var t,n=(t=e?.type)!==null&&t!==void 0?t:e;if(n){var r=n.toString().match(G_);return r?r[1]:""}return""}var wo=function(e){var t,n;return Hg(e)!==!1&&typeof(t=e.constructor)=="function"&&Hg(n=t.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1},zk=function(e){return e},tn=zk,zi=function(e,t){return Wk.call(e,t)},Vk=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},xs=Array.isArray||function(e){return q_.call(e)==="[object Array]"},As=function(e){return q_.call(e)==="[object Function]"},Hl=function(e){return wo(e)&&zi(e,"_vueTypes_name")},K_=function(e){return wo(e)&&(zi(e,"type")||["_vueTypes_name","validator","default","required"].some(function(t){return zi(e,t)}))};function ph(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function Oo(e,t,n){var r,o=!0,s="";r=wo(e)?e:{type:e};var i=Hl(r)?r._vueTypes_name+" - ":"";if(K_(r)&&r.type!==null){if(r.type===void 0||r.type===!0||!r.required&&t===void 0)return o;xs(r.type)?(o=r.type.some(function(f){return Oo(f,t)===!0}),s=r.type.map(function(f){return Wg(f)}).join(" or ")):o=(s=Wg(r))==="Array"?xs(t):s==="Object"?wo(t):s==="String"||s==="Number"||s==="Boolean"||s==="Function"?(function(f){if(f==null)return"";var d=f.constructor.toString().match(G_);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(zi(r,"validator")&&As(r.validator)){var l=tn,u=[];if(tn=function(f){u.push(f)},o=r.validator(t),tn=l,!o){var c=(u.length>1?"* ":"")+u.join(`
|
||
* `);return u.length=0,c}}return o}function rn(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?As(o)||Oo(this,o)===!0?(this.default=xs(o)?function(){return[].concat(o)}:wo(o)?function(){return Object.assign({},o)}:o,this):(tn(this._vueTypes_name+' - invalid default value: "'+o+'"'),this):this}}}),r=n.validator;return As(r)&&(n.validator=ph(r,n)),n}function Un(e,t){var n=rn(e,t);return Object.defineProperty(n,"validate",{value:function(r){return As(this.validator)&&tn(this._vueTypes_name+` - calling .validate() will overwrite the current custom validator function. Validator info:
|
||
`+JSON.stringify(this)),this.validator=ph(r,this),this}})}function zg(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,!wo(n))return s;var i,a,l=n.validator,u=z_(n,["validator"]);if(As(l)){var c=s.validator;c&&(c=(a=(i=c).__original)!==null&&a!==void 0?a:i),s.validator=ph(c?function(f){return c.call(this,f)&&l.call(this,f)}:l,s)}return Object.assign(s,u)}function Ac(e){return e.replace(/^(?!\s*$)/gm," ")}var qk=function(){return Un("any",{})},Gk=function(){return Un("function",{type:Function})},Kk=function(){return Un("boolean",{type:Boolean})},Jk=function(){return Un("string",{type:String})},Yk=function(){return Un("number",{type:Number})},Xk=function(){return Un("array",{type:Array})},Qk=function(){return Un("object",{type:Object})},Zk=function(){return rn("integer",{type:Number,validator:function(e){return Vk(e)}})},eI=function(){return rn("symbol",{validator:function(e){return typeof e=="symbol"}})};function tI(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 rn(e.name||"<<anonymous function>>",{validator:function(n){var r=e(n);return r||tn(this._vueTypes_name+" - "+t),r}})}function nI(e){if(!xs(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 rn("oneOf",{type:n.length>0?n:void 0,validator:function(r){var o=e.indexOf(r)!==-1;return o||tn(t),o}})}function rI(e){if(!xs(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(K_(o)){if(Hl(o)&&o._vueTypes_name==="oneOf"){n=n.concat(o.type);continue}if(As(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}),rn("oneOfType",t?{type:n,validator:function(s){var i=[],a=e.some(function(l){var u=Oo(Hl(l)&&l._vueTypes_name==="oneOf"?l.type||null:l,s);return typeof u=="string"&&i.push(u),u===!0});return a||tn("oneOfType - provided value does not match any of the "+i.length+` passed-in validators:
|
||
`+Ac(i.join(`
|
||
`))),a}}:{type:n})}function oI(e){return rn("arrayOf",{type:Array,validator:function(t){var n,r=t.every(function(o){return(n=Oo(e,o))===!0});return r||tn(`arrayOf - value validation error:
|
||
`+Ac(n)),r}})}function sI(e){return rn("instanceOf",{type:e})}function iI(e){return rn("objectOf",{type:Object,validator:function(t){var n,r=Object.keys(t).every(function(o){return(n=Oo(e,t[o]))===!0});return r||tn(`objectOf - value validation error:
|
||
`+Ac(n)),r}})}function aI(e){var t=Object.keys(e),n=t.filter(function(o){var s;return!!(!((s=e[o])===null||s===void 0)&&s.required)}),r=rn("shape",{type:Object,validator:function(o){var s=this;if(!wo(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 tn(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||(tn('shape - shape definition does not include a "'+l+'" property. Allowed keys: "'+t.join('", "')+'".'),!1);var u=Oo(e[l],o[l]);return typeof u=="string"&&tn('shape - "'+l+`" property validation error:
|
||
`+Ac(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 $n=(function(){function e(){}return e.extend=function(t){var n=this;if(xs(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=z_(t,["name","validate","getter"]);if(zi(this,r))throw new TypeError('[VueTypes error]: Type "'+r+'" already defined');var u,c=l.type;return Hl(c)?(delete l.type,Object.defineProperty(this,r,a?{get:function(){return zg(r,c,l)}}:{value:function(){var f,d=zg(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?Un(r,f):rn(r,f)},enumerable:!0}:{value:function(){var f,d,h=Object.assign({},l);return f=s?Un(r,h):rn(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))},H_(e,null,[{key:"any",get:function(){return qk()}},{key:"func",get:function(){return Gk().def(this.defaults.func)}},{key:"bool",get:function(){return Kk().def(this.defaults.bool)}},{key:"string",get:function(){return Jk().def(this.defaults.string)}},{key:"number",get:function(){return Yk().def(this.defaults.number)}},{key:"array",get:function(){return Xk().def(this.defaults.array)}},{key:"object",get:function(){return Qk().def(this.defaults.object)}},{key:"integer",get:function(){return Zk().def(this.defaults.integer)}},{key:"symbol",get:function(){return eI()}}]),e})();function J_(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 W_(r,n),H_(r,null,[{key:"sensibleDefaults",get:function(){return sl({},this.defaults)},set:function(o){this.defaults=o!==!1?sl({},o!==!0?o:e):{}}}]),r})($n)).defaults=sl({},e),t}$n.defaults={},$n.custom=tI,$n.oneOf=nI,$n.instanceOf=sI,$n.oneOfType=rI,$n.arrayOf=oI,$n.objectOf=iI,$n.shape=aI,$n.utils={validate:function(e,t){return Oo(t,e)===!0},toType:function(e,t,n){return n===void 0&&(n=!1),n?Un(e,t):rn(e,t)}};(function(e){function t(){return e.apply(this,arguments)||this}return W_(t,e),t})(J_());const Fe=J_({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});Fe.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 w3(e){return e.default=void 0,e}const Y_=((e,t,n)=>{dR(e,`[ant-design-vue: ${t}] ${n}`)});function lI(e){let{prefixCls:t,animation:n,transitionName:r}=e;return n?{name:`${t}-${n}`}:r?{name:r}:{}}function S3(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=_c(e)[0]),!o)return null;const s=Cn(o,t,r);return s.props=n?x(x({},s.props),t):s.props,Cc(typeof s.props.class!="object"),s}function cI(e,t,n){yo(Cn(e,x({},t)),n)}const X_=e=>(e||[]).some(t=>nn(t)?!(t.type===qe||t.type===je&&!X_(t.children)):!0)?e:null;function C3(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 uI=(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 fI(){this.__data__=[],this.size=0}function Q_(e,t){return e===t||e!==e&&t!==t}function Oc(e,t){for(var n=e.length;n--;)if(Q_(e[n][0],t))return n;return-1}var dI=Array.prototype,hI=dI.splice;function pI(e){var t=this.__data__,n=Oc(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():hI.call(t,n,1),--this.size,!0}function gI(e){var t=this.__data__,n=Oc(t,e);return n<0?void 0:t[n][1]}function mI(e){return Oc(this.__data__,e)>-1}function yI(e,t){var n=this.__data__,r=Oc(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function hr(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])}}hr.prototype.clear=fI;hr.prototype.delete=pI;hr.prototype.get=gI;hr.prototype.has=mI;hr.prototype.set=yI;function vI(){this.__data__=new hr,this.size=0}function bI(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function _I(e){return this.__data__.get(e)}function wI(e){return this.__data__.has(e)}var Z_=typeof global=="object"&&global&&global.Object===Object&&global,SI=typeof self=="object"&&self&&self.Object===Object&&self,Hn=Z_||SI||Function("return this")(),Ir=Hn.Symbol,ew=Object.prototype,CI=ew.hasOwnProperty,EI=ew.toString,ti=Ir?Ir.toStringTag:void 0;function TI(e){var t=CI.call(e,ti),n=e[ti];try{e[ti]=void 0;var r=!0}catch{}var o=EI.call(e);return r&&(t?e[ti]=n:delete e[ti]),o}var xI=Object.prototype,AI=xI.toString;function OI(e){return AI.call(e)}var PI="[object Null]",$I="[object Undefined]",Vg=Ir?Ir.toStringTag:void 0;function Us(e){return e==null?e===void 0?$I:PI:Vg&&Vg in Object(e)?TI(e):OI(e)}function ca(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var RI="[object AsyncFunction]",kI="[object Function]",II="[object GeneratorFunction]",NI="[object Proxy]";function tw(e){if(!ca(e))return!1;var t=Us(e);return t==kI||t==II||t==RI||t==NI}var Ou=Hn["__core-js_shared__"],qg=(function(){var e=/[^.]+$/.exec(Ou&&Ou.keys&&Ou.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function LI(e){return!!qg&&qg in e}var jI=Function.prototype,MI=jI.toString;function Po(e){if(e!=null){try{return MI.call(e)}catch{}try{return e+""}catch{}}return""}var DI=/[\\^$.*+?()[\]{}|]/g,BI=/^\[object .+?Constructor\]$/,UI=Function.prototype,FI=Object.prototype,HI=UI.toString,WI=FI.hasOwnProperty,zI=RegExp("^"+HI.call(WI).replace(DI,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function VI(e){if(!ca(e)||LI(e))return!1;var t=tw(e)?zI:BI;return t.test(Po(e))}function qI(e,t){return e?.[t]}function $o(e,t){var n=qI(e,t);return VI(n)?n:void 0}var Vi=$o(Hn,"Map"),qi=$o(Object,"create");function GI(){this.__data__=qi?qi(null):{},this.size=0}function KI(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var JI="__lodash_hash_undefined__",YI=Object.prototype,XI=YI.hasOwnProperty;function QI(e){var t=this.__data__;if(qi){var n=t[e];return n===JI?void 0:n}return XI.call(t,e)?t[e]:void 0}var ZI=Object.prototype,eN=ZI.hasOwnProperty;function tN(e){var t=this.__data__;return qi?t[e]!==void 0:eN.call(t,e)}var nN="__lodash_hash_undefined__";function rN(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=qi&&t===void 0?nN:t,this}function So(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])}}So.prototype.clear=GI;So.prototype.delete=KI;So.prototype.get=QI;So.prototype.has=tN;So.prototype.set=rN;function oN(){this.size=0,this.__data__={hash:new So,map:new(Vi||hr),string:new So}}function sN(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Pc(e,t){var n=e.__data__;return sN(t)?n[typeof t=="string"?"string":"hash"]:n.map}function iN(e){var t=Pc(this,e).delete(e);return this.size-=t?1:0,t}function aN(e){return Pc(this,e).get(e)}function lN(e){return Pc(this,e).has(e)}function cN(e,t){var n=Pc(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Lr(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])}}Lr.prototype.clear=oN;Lr.prototype.delete=iN;Lr.prototype.get=aN;Lr.prototype.has=lN;Lr.prototype.set=cN;var uN=200;function fN(e,t){var n=this.__data__;if(n instanceof hr){var r=n.__data__;if(!Vi||r.length<uN-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Lr(r)}return n.set(e,t),this.size=n.size,this}function Fs(e){var t=this.__data__=new hr(e);this.size=t.size}Fs.prototype.clear=vI;Fs.prototype.delete=bI;Fs.prototype.get=_I;Fs.prototype.has=wI;Fs.prototype.set=fN;var Gg=Hn.Uint8Array;function nw(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var Ro=Array.isArray;function rw(e,t,n){var r=t(e);return Ro(e)?r:nw(r,n(e))}function dN(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 ow(){return[]}var hN=Object.prototype,pN=hN.propertyIsEnumerable,Kg=Object.getOwnPropertySymbols,gh=Kg?function(e){return e==null?[]:(e=Object(e),dN(Kg(e),function(t){return pN.call(e,t)}))}:ow;function gN(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Hs(e){return e!=null&&typeof e=="object"}var mN="[object Arguments]";function Jg(e){return Hs(e)&&Us(e)==mN}var sw=Object.prototype,yN=sw.hasOwnProperty,vN=sw.propertyIsEnumerable,iw=Jg((function(){return arguments})())?Jg:function(e){return Hs(e)&&yN.call(e,"callee")&&!vN.call(e,"callee")};function bN(){return!1}var aw=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Yg=aw&&typeof module=="object"&&module&&!module.nodeType&&module,_N=Yg&&Yg.exports===aw,Xg=_N?Hn.Buffer:void 0,wN=Xg?Xg.isBuffer:void 0,mh=wN||bN,SN=9007199254740991,CN=/^(?:0|[1-9]\d*)$/;function EN(e,t){var n=typeof e;return t=t??SN,!!t&&(n=="number"||n!="symbol"&&CN.test(e))&&e>-1&&e%1==0&&e<t}var TN=9007199254740991;function lw(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=TN}var xN="[object Arguments]",AN="[object Array]",ON="[object Boolean]",PN="[object Date]",$N="[object Error]",RN="[object Function]",kN="[object Map]",IN="[object Number]",NN="[object Object]",LN="[object RegExp]",jN="[object Set]",MN="[object String]",DN="[object WeakMap]",BN="[object ArrayBuffer]",UN="[object DataView]",FN="[object Float32Array]",HN="[object Float64Array]",WN="[object Int8Array]",zN="[object Int16Array]",VN="[object Int32Array]",qN="[object Uint8Array]",GN="[object Uint8ClampedArray]",KN="[object Uint16Array]",JN="[object Uint32Array]",Be={};Be[FN]=Be[HN]=Be[WN]=Be[zN]=Be[VN]=Be[qN]=Be[GN]=Be[KN]=Be[JN]=!0;Be[xN]=Be[AN]=Be[BN]=Be[ON]=Be[UN]=Be[PN]=Be[$N]=Be[RN]=Be[kN]=Be[IN]=Be[NN]=Be[LN]=Be[jN]=Be[MN]=Be[DN]=!1;function YN(e){return Hs(e)&&lw(e.length)&&!!Be[Us(e)]}function yh(e){return function(t){return e(t)}}var cw=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Si=cw&&typeof module=="object"&&module&&!module.nodeType&&module,XN=Si&&Si.exports===cw,Pu=XN&&Z_.process,Os=(function(){try{var e=Si&&Si.require&&Si.require("util").types;return e||Pu&&Pu.binding&&Pu.binding("util")}catch{}})(),Qg=Os&&Os.isTypedArray,uw=Qg?yh(Qg):YN,QN=Object.prototype,ZN=QN.hasOwnProperty;function fw(e,t){var n=Ro(e),r=!n&&iw(e),o=!n&&!r&&mh(e),s=!n&&!r&&!o&&uw(e),i=n||r||o||s,a=i?gN(e.length,String):[],l=a.length;for(var u in e)(t||ZN.call(e,u))&&!(i&&(u=="length"||o&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||EN(u,l)))&&a.push(u);return a}var e2=Object.prototype;function $c(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||e2;return e===n}function dw(e,t){return function(n){return e(t(n))}}var t2=dw(Object.keys,Object),n2=Object.prototype,r2=n2.hasOwnProperty;function hw(e){if(!$c(e))return t2(e);var t=[];for(var n in Object(e))r2.call(e,n)&&n!="constructor"&&t.push(n);return t}function vh(e){return e!=null&&lw(e.length)&&!tw(e)}function bh(e){return vh(e)?fw(e):hw(e)}function o2(e){return rw(e,bh,gh)}var Ff=$o(Hn,"DataView"),Hf=$o(Hn,"Promise"),Wf=$o(Hn,"Set"),zf=$o(Hn,"WeakMap"),Zg="[object Map]",s2="[object Object]",em="[object Promise]",tm="[object Set]",nm="[object WeakMap]",rm="[object DataView]",i2=Po(Ff),a2=Po(Vi),l2=Po(Hf),c2=Po(Wf),u2=Po(zf),jn=Us;(Ff&&jn(new Ff(new ArrayBuffer(1)))!=rm||Vi&&jn(new Vi)!=Zg||Hf&&jn(Hf.resolve())!=em||Wf&&jn(new Wf)!=tm||zf&&jn(new zf)!=nm)&&(jn=function(e){var t=Us(e),n=t==s2?e.constructor:void 0,r=n?Po(n):"";if(r)switch(r){case i2:return rm;case a2:return Zg;case l2:return em;case c2:return tm;case u2:return nm}return t});Bl("bottomLeft","bottomRight","topLeft","topRight");const E3=e=>e!==void 0&&(e==="topLeft"||e==="topRight")?"slide-down":"slide-up",pw=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)},gw=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)},Wl=(e,t,n)=>n!==void 0?n:`${e}-${t}`,mw=Symbol("PortalContextKey"),yw=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inTriggerContext:!0};wt(mw,{inTriggerContext:t.inTriggerContext,shouldRender:$(()=>{const{sPopupVisible:n,popupRef:r,forceRender:o,autoDestroy:s}=e||{};let i=!1;return(n||r||o)&&(i=!0),!n&&s&&(i=!1),i})})},f2=()=>{yw({},{inTriggerContext:!1});const e=Te(mw,{shouldRender:$(()=>!1),inTriggerContext:!1});return{shouldRender:$(()=>e.shouldRender.value||e.inTriggerContext===!1)}},vw=pe({compatConfig:{MODE:3},name:"Portal",inheritAttrs:!1,props:{getContainer:Fe.func.isRequired,didUpdate:Function},setup(e,t){let{slots:n}=t,r=!0,o;const{shouldRender:s}=f2();function i(){s.value&&(o=e.getContainer())}Yv(()=>{r=!1,i()}),gt(()=>{o||i()});const a=_e(s,()=>{s.value&&!o&&(o=e.getContainer()),o&&a()});return Ls(()=>{Ot(()=>{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(Rd,{to:o},n):null:null}}});let $u;function d2(e){if(typeof document>"u")return 0;if($u===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),$u=o-s}return $u}const h2=`vc-util-locker-${Date.now()}`;let om=0;function p2(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}function g2(e){const t=$(()=>!!e&&!!e.value);om+=1;const n=`${h2}_${om}`;Fn(r=>{if(Tn()){if(t.value){const o=d2(),s=p2();Hi(`
|
||
html body {
|
||
overflow-y: hidden;
|
||
${s?`width: calc(100% - ${o}px);`:""}
|
||
}`,n)}else Ul(n);r(()=>{Ul(n)})}},{flush:"post"})}let Ur=0;const il=Tn(),sm=e=>{if(!il)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},m2=pe({compatConfig:{MODE:3},name:"PortalWrapper",inheritAttrs:!1,props:{wrapperClassName:String,forceRender:{type:Boolean,default:void 0},getContainer:Fe.any,visible:{type:Boolean,default:void 0},autoLock:ds(),didUpdate:Function},setup(e,t){let{slots:n}=t;const r=ae(),o=ae(),s=ae(),i=ae(1),a=Tn()&&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=sm(e.getContainer),u?(u.appendChild(r.value),!0):!1):!0},f=()=>il?(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 Ls(()=>{d(),c()}),g2($(()=>e.autoLock&&e.visible&&Tn()&&(r.value===document.body||r.value===a))),gt(()=>{let h=!1;_e([()=>e.visible,()=>e.getContainer],(p,g)=>{let[y,b]=p,[v,m]=g;il&&(u=sm(e.getContainer),u===document.body&&(y&&!v?Ur+=1:h&&(Ur-=1))),h&&(typeof b=="function"&&typeof m=="function"?b.toString()!==m.toString():b!==m)&&l(),h=!0},{immediate:!0,flush:"post"}),Ot(()=>{c()||(s.value=Ui(()=>{i.value+=1}))})}),on(()=>{const{visible:h}=e;il&&u===document.body&&(Ur=h&&Ur?Ur-1:Ur),l(),Ui.cancel(s.value)}),()=>{const{forceRender:h,visible:p}=e;let g=null;const y={getOpenCount:()=>Ur,getContainer:f};return i.value&&(h||p||o.value)&&(g=P(vw,{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}}}),im={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},y2=`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`,v2=`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`,am=`${y2} ${v2}`.split(/[\s\n]+/),b2="aria-",_2="data-";function lm(e,t){return e.indexOf(t)===0}function w2(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"||lm(o,b2))||n.data&&lm(o,_2)||n.attr&&(am.includes(o)||am.includes(o.toLowerCase())))&&(r[o]=e[o])}),r}function Fr(e){const t=typeof e=="function"?e():e,n=Z(t);function r(o){n.value=o}return[n,r]}var S2=Symbol("iconContext"),bw=function(){return Te(S2,{prefixCls:Z("anticon"),rootClassName:Z(""),csp:Z()})};function _h(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function C2(e,t){return e&&e.contains?e.contains(t):!1}var cm="data-vc-order",E2="vc-icon-key",Vf=new Map;function _w(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):E2}function wh(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function T2(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function ww(e){return Array.from((Vf.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Sw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!_h())return null;var n=t.csp,r=t.prepend,o=document.createElement("style");o.setAttribute(cm,T2(r)),n&&n.nonce&&(o.nonce=n.nonce),o.innerHTML=e;var s=wh(t),i=s.firstChild;if(r){if(r==="queue"){var a=ww(s).filter(function(l){return["prepend","prependQueue"].includes(l.getAttribute(cm))});if(a.length)return s.insertBefore(o,a[a.length-1].nextSibling),o}s.insertBefore(o,i)}else s.appendChild(o);return o}function x2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=wh(t);return ww(n).find(function(r){return r.getAttribute(_w(t))===e})}function A2(e,t){var n=Vf.get(e);if(!n||!C2(document,n)){var r=Sw("",t),o=r.parentNode;Vf.set(e,o),e.removeChild(r)}}function O2(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=wh(n);A2(r,n);var o=x2(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=Sw(e,n);return s.setAttribute(_w(n),t),s}function um(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){P2(e,o,n[o])})}return e}function P2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fm(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function qf(e,t,n){return n?ft(e.tag,um({key:t},n,e.attrs),(e.children||[]).map(function(r,o){return qf(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):ft(e.tag,um({key:t},e.attrs),(e.children||[]).map(function(r,o){return qf(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function Cw(e){return _o(e)[0]}function Ew(e){return e?Array.isArray(e)?e:[e]:[]}var $2=`
|
||
.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 Tw(e){return e&&e.getRootNode&&e.getRootNode()}function R2(e){return _h()?Tw(e)instanceof ShadowRoot:!1}function k2(e){return R2(e)?Tw(e):null}var I2=function(){var t=bw(),n=t.prefixCls,r=t.csp,o=jt(),s=$2;n&&(s=s.replace(/anticon/g,n.value)),Ot(function(){if(_h()){var i=o.vnode.el,a=k2(i);O2(s,"@ant-design-vue-icons",{prepend:!0,csp:r.value,attachTo:a})}})},N2=["icon","primaryColor","secondaryColor"];function L2(e,t){if(e==null)return{};var n=j2(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 j2(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 al(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){M2(e,o,n[o])})}return e}function M2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ci=rt({primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1});function D2(e){var t=e.primaryColor,n=e.secondaryColor;Ci.primaryColor=t,Ci.secondaryColor=n||Cw(t),Ci.calculated=!!n}function B2(){return al({},Ci)}var jr=function(t,n){var r=al({},t,n.attrs),o=r.icon,s=r.primaryColor,i=r.secondaryColor,a=L2(r,N2),l=Ci;if(s&&(l={primaryColor:s,secondaryColor:i||Cw(s)}),fm(o),!fm(o))return null;var u=o;return u&&typeof u.icon=="function"&&(u=al({},u,{icon:u.icon(l.primaryColor,l.secondaryColor)})),qf(u.icon,"svg-".concat(u.name),al({},a,{"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};jr.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String};jr.inheritAttrs=!1;jr.displayName="IconBase";jr.getTwoToneColors=B2;jr.setTwoToneColors=D2;function U2(e,t){return z2(e)||W2(e,t)||H2(e,t)||F2()}function F2(){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 H2(e,t){if(e){if(typeof e=="string")return dm(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 dm(e,t)}}function dm(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 W2(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 z2(e){if(Array.isArray(e))return e}function xw(e){var t=Ew(e),n=U2(t,2),r=n[0],o=n[1];return jr.setTwoToneColors({primaryColor:r,secondaryColor:o})}function V2(){var e=jr.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var q2=pe({name:"InsertStyles",setup:function(){return I2(),function(){return null}}}),G2=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function K2(e,t){return Q2(e)||X2(e,t)||Y2(e,t)||J2()}function J2(){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 hm(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 hm(e,t)}}function hm(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 Q2(e){if(Array.isArray(e))return e}function pm(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){ii(e,o,n[o])})}return e}function ii(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z2(e,t){if(e==null)return{};var n=eL(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 eL(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}xw(hk.primary);var Mt=function(t,n){var r,o=pm({},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=Z2(o,G2),h=bw(),p=h.prefixCls,g=h.rootClassName,y=(r={},ii(r,g.value,!!g.value),ii(r,p.value,!0),ii(r,"".concat(p.value,"-").concat(i.name),!!i.name),ii(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=Ew(c),_=K2(m,2),S=_[0],E=_[1];return P("span",pm({role:"img","aria-label":i.name},d,{onClick:f,class:[y,s],tabindex:b}),[P(jr,{icon:i,primaryColor:S,secondaryColor:E,style:v},null),P(q2,null,null)])};Mt.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]};Mt.displayName="AntdIcon";Mt.inheritAttrs=!1;Mt.getTwoToneColor=V2;Mt.setTwoToneColor=xw;var tL={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 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){nL(e,o,n[o])})}return e}function nL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Co=function(t,n){var r=gm({},t,n.attrs);return P(Mt,gm({},r,{icon:tL}),null)};Co.displayName="LoadingOutlined";Co.inheritAttrs=!1;var rL={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 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){oL(e,o,n[o])})}return e}function oL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ws=function(t,n){var r=mm({},t,n.attrs);return P(Mt,mm({},r,{icon:rL}),null)};Ws.displayName="CloseOutlined";Ws.inheritAttrs=!1;var sL={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 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){iL(e,o,n[o])})}return e}function iL(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=ym({},t,n.attrs);return P(Mt,ym({},r,{icon:sL}),null)};ko.displayName="CloseCircleFilled";ko.inheritAttrs=!1;function Aw(e){const t=Symbol("contextKey");return{useProvide:(o,s)=>{const i=rt({});return wt(t,i),Fn(()=>{x(i,o,s||{})}),i},useInject:()=>Te(t,e)||{}}}const aL=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},lL=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"}}}}},cL=Ao("Space",e=>[lL(e),aL(e)]);var uL="[object Symbol]";function Sh(e){return typeof e=="symbol"||Hs(e)&&Us(e)==uL}function fL(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 vm=Ir?Ir.prototype:void 0,bm=vm?vm.toString:void 0;function Ow(e){if(typeof e=="string")return e;if(Ro(e))return fL(e,Ow)+"";if(Sh(e))return bm?bm.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var _m=Object.create,dL=(function(){function e(){}return function(t){if(!ca(t))return{};if(_m)return _m(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}})();function hL(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var wm=(function(){try{var e=$o(Object,"defineProperty");return e({},"",{}),e}catch{}})();function pL(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function Pw(e,t,n){t=="__proto__"&&wm?wm(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var gL=Object.prototype,mL=gL.hasOwnProperty;function $w(e,t,n){var r=e[t];(!(mL.call(e,t)&&Q_(r,n))||n===void 0&&!(t in e))&&Pw(e,t,n)}function Rc(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?Pw(n,a,l):$w(n,a,l)}return n}function yL(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var vL=Object.prototype,bL=vL.hasOwnProperty;function _L(e){if(!ca(e))return yL(e);var t=$c(e),n=[];for(var r in e)r=="constructor"&&(t||!bL.call(e,r))||n.push(r);return n}function Ch(e){return vh(e)?fw(e,!0):_L(e)}var wL=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,SL=/^\w*$/;function CL(e,t){if(Ro(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Sh(e)?!0:SL.test(e)||!wL.test(e)||t!=null&&e in Object(t)}var EL="Expected a function";function Eh(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(EL);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(Eh.Cache||Lr),n}Eh.Cache=Lr;var TL=500;function xL(e){var t=Eh(e,function(r){return n.size===TL&&n.clear(),r}),n=t.cache;return t}var AL=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,OL=/\\(\\)?/g,PL=xL(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(AL,function(n,r,o,s){t.push(o?s.replace(OL,"$1"):r||n)}),t});function $L(e){return e==null?"":Ow(e)}function RL(e,t){return Ro(e)?e:CL(e,t)?[e]:PL($L(e))}function kL(e){if(typeof e=="string"||Sh(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function IL(e,t){t=RL(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[kL(t[n++])];return n&&n==r?e:void 0}function We(e,t,n){var r=e==null?void 0:IL(e,t);return r===void 0?n:r}var Rw=dw(Object.getPrototypeOf,Object);function NL(e,t){return e&&Rc(t,bh(t),e)}function LL(e,t){return e&&Rc(t,Ch(t),e)}var kw=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Sm=kw&&typeof module=="object"&&module&&!module.nodeType&&module,jL=Sm&&Sm.exports===kw,Cm=jL?Hn.Buffer:void 0,Em=Cm?Cm.allocUnsafe:void 0;function ML(e,t){if(t)return e.slice();var n=e.length,r=Em?Em(n):new e.constructor(n);return e.copy(r),r}function DL(e,t){return Rc(e,gh(e),t)}var BL=Object.getOwnPropertySymbols,Iw=BL?function(e){for(var t=[];e;)nw(t,gh(e)),e=Rw(e);return t}:ow;function UL(e,t){return Rc(e,Iw(e),t)}function FL(e){return rw(e,Ch,Iw)}var HL=Object.prototype,WL=HL.hasOwnProperty;function zL(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&WL.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function Th(e){var t=new e.constructor(e.byteLength);return new Gg(t).set(new Gg(e)),t}function VL(e,t){var n=t?Th(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var qL=/\w*$/;function GL(e){var t=new e.constructor(e.source,qL.exec(e));return t.lastIndex=e.lastIndex,t}var Tm=Ir?Ir.prototype:void 0,xm=Tm?Tm.valueOf:void 0;function KL(e){return xm?Object(xm.call(e)):{}}function JL(e,t){var n=t?Th(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var YL="[object Boolean]",XL="[object Date]",QL="[object Map]",ZL="[object Number]",ej="[object RegExp]",tj="[object Set]",nj="[object String]",rj="[object Symbol]",oj="[object ArrayBuffer]",sj="[object DataView]",ij="[object Float32Array]",aj="[object Float64Array]",lj="[object Int8Array]",cj="[object Int16Array]",uj="[object Int32Array]",fj="[object Uint8Array]",dj="[object Uint8ClampedArray]",hj="[object Uint16Array]",pj="[object Uint32Array]";function gj(e,t,n){var r=e.constructor;switch(t){case oj:return Th(e);case YL:case XL:return new r(+e);case sj:return VL(e,n);case ij:case aj:case lj:case cj:case uj:case fj:case dj:case hj:case pj:return JL(e,n);case QL:return new r;case ZL:case nj:return new r(e);case ej:return GL(e);case tj:return new r;case rj:return KL(e)}}function mj(e){return typeof e.constructor=="function"&&!$c(e)?dL(Rw(e)):{}}var yj="[object Map]";function vj(e){return Hs(e)&&jn(e)==yj}var Am=Os&&Os.isMap,bj=Am?yh(Am):vj,_j="[object Set]";function wj(e){return Hs(e)&&jn(e)==_j}var Om=Os&&Os.isSet,Sj=Om?yh(Om):wj,Cj=1,Ej=2,Tj=4,Nw="[object Arguments]",xj="[object Array]",Aj="[object Boolean]",Oj="[object Date]",Pj="[object Error]",Lw="[object Function]",$j="[object GeneratorFunction]",Rj="[object Map]",kj="[object Number]",jw="[object Object]",Ij="[object RegExp]",Nj="[object Set]",Lj="[object String]",jj="[object Symbol]",Mj="[object WeakMap]",Dj="[object ArrayBuffer]",Bj="[object DataView]",Uj="[object Float32Array]",Fj="[object Float64Array]",Hj="[object Int8Array]",Wj="[object Int16Array]",zj="[object Int32Array]",Vj="[object Uint8Array]",qj="[object Uint8ClampedArray]",Gj="[object Uint16Array]",Kj="[object Uint32Array]",Re={};Re[Nw]=Re[xj]=Re[Dj]=Re[Bj]=Re[Aj]=Re[Oj]=Re[Uj]=Re[Fj]=Re[Hj]=Re[Wj]=Re[zj]=Re[Rj]=Re[kj]=Re[jw]=Re[Ij]=Re[Nj]=Re[Lj]=Re[jj]=Re[Vj]=Re[qj]=Re[Gj]=Re[Kj]=!0;Re[Pj]=Re[Lw]=Re[Mj]=!1;function ll(e,t,n,r,o,s){var i,a=t&Cj,l=t&Ej,u=t&Tj;if(n&&(i=o?n(e,r,o,s):n(e)),i!==void 0)return i;if(!ca(e))return e;var c=Ro(e);if(c){if(i=zL(e),!a)return hL(e,i)}else{var f=jn(e),d=f==Lw||f==$j;if(mh(e))return ML(e,a);if(f==jw||f==Nw||d&&!o){if(i=l||d?{}:mj(e),!a)return l?UL(e,LL(i,e)):DL(e,NL(i,e))}else{if(!Re[f])return o?e:{};i=gj(e,f,a)}}s||(s=new Fs);var h=s.get(e);if(h)return h;s.set(e,i),Sj(e)?e.forEach(function(y){i.add(ll(y,t,n,y,e,s))}):bj(e)&&e.forEach(function(y,b){i.set(b,ll(y,t,n,b,e,s))});var p=u?l?FL:o2:l?Ch:bh,g=c?void 0:p(e);return pL(g||e,function(y,b){g&&(b=y,y=e[b]),$w(i,b,ll(y,t,n,b,e,s))}),i}var Jj=1,Yj=4;function Xj(e){return ll(e,Jj|Yj)}var Qj="[object Map]",Zj="[object Set]",eM=Object.prototype,tM=eM.hasOwnProperty;function Mw(e){if(e==null)return!0;if(vh(e)&&(Ro(e)||typeof e=="string"||typeof e.splice=="function"||mh(e)||uw(e)||iw(e)))return!e.length;var t=jn(e);if(t==Qj||t==Zj)return!e.size;if($c(e))return!hw(e).length;for(var n in e)if(tM.call(e,n))return!1;return!0}const nM=()=>({compactSize:String,compactDirection:Fe.oneOf(Bl("horizontal","vertical")).def("horizontal"),isFirstItem:ds(),isLastItem:ds()}),kc=Aw(null),rM=(e,t)=>{const n=kc.useInject(),r=$(()=>{if(!n||Mw(n))return"";const{compactDirection:o,isFirstItem:s,isLastItem:i}=n,a=o==="vertical"?"-vertical-":"-";return Ye({[`${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:$(()=>n?.compactSize),compactDirection:$(()=>n?.compactDirection),compactItemClassnames:r}},T3=pe({name:"NoCompactStyle",setup(e,t){let{slots:n}=t;return kc.useProvide(null),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}),oM=()=>({prefixCls:String,size:{type:String},direction:Fe.oneOf(Bl("horizontal","vertical")).def("horizontal"),align:Fe.oneOf(Bl("start","end","center","baseline")),block:{type:Boolean,default:void 0}}),sM=pe({name:"CompactItem",props:nM(),setup(e,t){let{slots:n}=t;return kc.useProvide(e),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});oM();const iM=e=>({animationDuration:e,animationFillMode:"both"}),aM=e=>({animationDuration:e,animationFillMode:"both"}),Dw=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({},iM(r)),{animationPlayState:"paused"}),[`${s}${e}-leave`]:x(x({},aM(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"}}},lM=new Ke("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),cM=new Ke("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),uM=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[Dw(r,lM,cM,e.motionDurationMid,t),{[`
|
||
${o}${r}-enter,
|
||
${o}${r}-appear
|
||
`]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},fM=new Ke("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),dM=new Ke("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Pm=new Ke("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),$m=new Ke("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),hM=new Ke("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),pM=new Ke("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),gM=new Ke("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),mM=new Ke("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),yM=new Ke("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),vM=new Ke("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),bM=new Ke("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),_M=new Ke("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),wM={zoom:{inKeyframes:fM,outKeyframes:dM},"zoom-big":{inKeyframes:Pm,outKeyframes:$m},"zoom-big-fast":{inKeyframes:Pm,outKeyframes:$m},"zoom-left":{inKeyframes:gM,outKeyframes:mM},"zoom-right":{inKeyframes:yM,outKeyframes:vM},"zoom-up":{inKeyframes:hM,outKeyframes:pM},"zoom-down":{inKeyframes:bM,outKeyframes:_M}},SM=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:s}=wM[t];return[Dw(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 CM(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 EM(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 TM(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({},CM(e,r,t)),EM(n,r,t))}}var xM={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 Rm(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){AM(e,o,n[o])})}return e}function AM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xh=function(t,n){var r=Rm({},t,n.attrs);return P(Mt,Rm({},r,{icon:xM}),null)};xh.displayName="CheckCircleOutlined";xh.inheritAttrs=!1;var OM={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 km(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 ua=function(t,n){var r=km({},t,n.attrs);return P(Mt,km({},r,{icon:OM}),null)};ua.displayName="ExclamationCircleOutlined";ua.inheritAttrs=!1;var $M={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 Im(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){RM(e,o,n[o])})}return e}function RM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ah=function(t,n){var r=Im({},t,n.attrs);return P(Mt,Im({},r,{icon:$M}),null)};Ah.displayName="InfoCircleOutlined";Ah.inheritAttrs=!1;var kM={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 Nm(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 Oh=function(t,n){var r=Nm({},t,n.attrs);return P(Mt,Nm({},r,{icon:kM}),null)};Oh.displayName="CloseCircleOutlined";Oh.inheritAttrs=!1;var NM={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 Lm(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 Io=function(t,n){var r=Lm({},t,n.attrs);return P(Mt,Lm({},r,{icon:NM}),null)};Io.displayName="CheckCircleFilled";Io.inheritAttrs=!1;var jM={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 jm(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){MM(e,o,n[o])})}return e}function MM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var No=function(t,n){var r=jm({},t,n.attrs);return P(Mt,jm({},r,{icon:jM}),null)};No.displayName="ExclamationCircleFilled";No.inheritAttrs=!1;var DM={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 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){BM(e,o,n[o])})}return e}function BM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Lo=function(t,n){var r=Mm({},t,n.attrs);return P(Mt,Mm({},r,{icon:DM}),null)};Lo.displayName="InfoCircleFilled";Lo.inheritAttrs=!1;const UM=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}}}}},FM=Ao("Wave",e=>[UM(e)]);function HM(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 Ru(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&HM(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function WM(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Ru(t)?t:Ru(n)?n:Ru(r)?r:null}function ku(e){return Number.isNaN(e)?0:e}const zM=pe({props:{target:et(),className:String},setup(e){const t=ae(null),[n,r]=Fr(null),[o,s]=Fr([]),[i,a]=Fr(0),[l,u]=Fr(0),[c,f]=Fr(0),[d,h]=Fr(0),[p,g]=Fr(!1);function y(){const{target:w}=e,O=getComputedStyle(w);r(WM(w));const A=O.position==="static",{borderLeftWidth:j,borderTopWidth:N}=O;a(A?w.offsetLeft:ku(-parseFloat(j))),u(A?w.offsetTop:ku(-parseFloat(N))),f(w.offsetWidth),h(w.offsetHeight);const{borderTopLeftRadius:k,borderTopRightRadius:F,borderBottomLeftRadius:K,borderBottomRightRadius:R}=O;s([k,F,R,K].map(I=>ku(parseFloat(I))))}let b,v,m;const _=()=>{clearTimeout(m),Ui.cancel(v),b?.disconnect()},S=()=>{var w;const O=(w=t.value)===null||w===void 0?void 0:w.parentElement;O&&(yo(null,O),O.parentElement&&O.parentElement.removeChild(O))};gt(()=>{_(),m=setTimeout(()=>{S()},5e3);const{target:w}=e;w&&(v=Ui(()=>{y(),g(!0)}),typeof ResizeObserver<"u"&&(b=new ResizeObserver(y),b.observe(w)))}),on(()=>{_()});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(O=>`${O}px`).join(" ")};return n&&(w["--wave-color"]=n.value),P(Ms,{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 VM(e,t){const n=document.createElement("div");n.style.position="absolute",n.style.left="0px",n.style.top="0px",e?.insertBefore(n,e?.firstChild),yo(P(zM,{target:e,className:t},null),n)}function qM(e,t,n){function r(){var o;const s=Dl(e);!((o=n?.value)===null||o===void 0)&&o.disabled||!s||VM(s,t.value)}return r}const GM=pe({compatConfig:{MODE:3},name:"Wave",props:{disabled:Boolean},setup(e,t){let{slots:n}=t;const r=jt(),{prefixCls:o,wave:s}=dr("wave",e),[,i]=FM(o),a=qM(r,$(()=>Ye(o.value,i.value)),s);let l;const u=()=>{Dl(r).removeEventListener("click",l,!0)};return gt(()=>{_e(()=>e.disabled,()=>{u(),Ot(()=>{const c=Dl(r);c?.removeEventListener("click",l,!0),!(!c||c.nodeType!==1||e.disabled)&&(l=f=>{f.target.tagName==="INPUT"||!uI(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"})}),on(()=>{u()}),()=>{var c;return(c=n.default)===null||c===void 0?void 0:c.call(n)[0]}}});function Bw(e){return e==="danger"?{danger:!0}:{type:e}}const KM=()=>({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:Fe.any,href:String,target:String,title:String,onClick:bg(),onMousedown:bg()}),Dm=e=>{e&&(e.style.width="0px",e.style.opacity="0",e.style.transform="scale(0)")},Bm=e=>{Ot(()=>{e&&(e.style.width=`${e.scrollWidth}px`,e.style.opacity="1",e.style.transform="scale(1)")})},Um=e=>{e&&e.style&&(e.style.width=null,e.style.opacity=null,e.style.transform=null)},JM=pe({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(Co,null,null)]);const o=!!r;return P(Ms,{name:`${n}-loading-icon-motion`,onBeforeEnter:Dm,onEnter:Bm,onAfterEnter:Um,onBeforeLeave:Bm,onLeave:s=>{setTimeout(()=>{Dm(s)})},onAfterLeave:Um},{default:()=>[o?P("span",{class:`${n}-loading-icon`},[P(Co,null,null)]):null]})}}}),Fm=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),YM=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}},Fm(`${t}-primary`,o),Fm(`${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 QM(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 ZM(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:x(x({},XM(e,t)),QM(e.componentCls,t))}}const eD=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({},$_(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:'""'}}}}}}},cr=(e,t)=>({"&:not(:disabled)":{"&:hover":e,"&:active":t}}),tD=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),nD=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),Gf=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),zl=(e,t,n,r,o,s,i)=>({[`&${e}-background-ghost`]:x(x({color:t||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},cr(x({backgroundColor:"transparent"},s),x({backgroundColor:"transparent"},i))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:o||void 0}})}),Ph=e=>({"&:disabled":x({},Gf(e))}),Uw=e=>x({},Ph(e)),Vl=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),Fw=e=>x(x(x(x(x({},Uw(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),cr({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),zl(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:x(x(x({color:e.colorError,borderColor:e.colorError},cr({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),zl(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Ph(e))}),rD=e=>x(x(x(x(x({},Uw(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),cr({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),zl(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}`},cr({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),zl(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Ph(e))}),oD=e=>x(x({},Fw(e)),{borderStyle:"dashed"}),sD=e=>x(x(x({color:e.colorLink},cr({color:e.colorLinkHover},{color:e.colorLinkActive})),Vl(e)),{[`&${e.componentCls}-dangerous`]:x(x({color:e.colorError},cr({color:e.colorErrorHover},{color:e.colorErrorActive})),Vl(e))}),iD=e=>x(x(x({},cr({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),Vl(e)),{[`&${e.componentCls}-dangerous`]:x(x({color:e.colorError},Vl(e)),cr({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),aD=e=>x(x({},Gf(e)),{[`&${e.componentCls}:hover`]:x({},Gf(e))}),lD=e=>{const{componentCls:t}=e;return{[`${t}-default`]:Fw(e),[`${t}-primary`]:rD(e),[`${t}-dashed`]:oD(e),[`${t}-link`]:sD(e),[`${t}-text`]:iD(e),[`${t}-disabled`]:aD(e)}},$h=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}`]:tD(e)},{[`${n}${n}-round${t}`]:nD(e)}]},cD=e=>$h(e),uD=e=>{const t=Nr(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM});return $h(t,`${e.componentCls}-sm`)},fD=e=>{const t=Nr(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG});return $h(t,`${e.componentCls}-lg`)},dD=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},hD=Ao("Button",e=>{const{controlTmpOutline:t,paddingContentHorizontal:n}=e,r=Nr(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n});return[eD(r),uD(r),cD(r),fD(r),dD(r),lD(r),YM(r),TM(e,{focus:!1}),ZM(e)]}),pD=()=>({prefixCls:String,size:{type:String}}),Hw=Aw(),Kf=pe({compatConfig:{MODE:3},name:"AButtonGroup",props:pD(),setup(e,t){let{slots:n}=t;const{prefixCls:r,direction:o}=dr("btn-group",e),[,,s]=la();Hw.useProvide(rt({size:$(()=>e.size)}));const i=$(()=>{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:Y_(!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},[or((a=n.default)===null||a===void 0?void 0:a.call(n))])}}}),Hm=/^[\u4e00-\u9fa5]{2}$/,Wm=Hm.test.bind(Hm);function Ma(e){return e==="text"||e==="link"}const fo=pe({compatConfig:{MODE:3},name:"AButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:aa(KM(),{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}=dr("btn",e),[c,f]=hD(i),d=Hw.useInject(),h=ah(),p=$(()=>{var R;return(R=e.disabled)!==null&&R!==void 0?R:h.value}),g=ae(null),y=ae(void 0);let b=!1;const v=ae(!1),m=ae(!1),_=$(()=>a.value!==!1),{compactSize:S,compactItemClassnames:E}=rM(i,l),w=$(()=>typeof e.loading=="object"&&e.loading.delay?e.loading.delay||!0:!!e.loading);_e(w,R=>{clearTimeout(y.value),typeof w.value=="number"?y.value=setTimeout(()=>{v.value=R},w.value):v.value=R},{immediate:!0});const O=$(()=>{const{type:R,shape:I="default",ghost:W,block:H,danger:Q}=e,ge=i.value,le={large:"lg",small:"sm",middle:void 0},we=S.value||d?.size||u.value,Xe=we&&le[we]||"";return[E.value,{[f.value]:!0,[`${ge}`]:!0,[`${ge}-${I}`]:I!=="default"&&I,[`${ge}-${R}`]:R,[`${ge}-${Xe}`]:Xe,[`${ge}-loading`]:v.value,[`${ge}-background-ghost`]:W&&!Ma(R),[`${ge}-two-chinese-chars`]:m.value&&_.value,[`${ge}-block`]:H,[`${ge}-dangerous`]:!!Q,[`${ge}-rtl`]:l.value==="rtl"}]}),A=()=>{const R=g.value;if(!R||a.value===!1)return;const I=R.textContent;b&&Wm(I)?m.value||(m.value=!0):m.value&&(m.value=!1)},j=R=>{if(v.value||p.value){R.preventDefault();return}o("click",R)},N=R=>{o("mousedown",R)},k=(R,I)=>{const W=I?" ":"";if(R.type===rr){let H=R.children.trim();return Wm(H)&&(H=H.split("").join(W)),P("span",null,[H])}return R};return Fn(()=>{Y_(!(e.ghost&&Ma(e.type)),"Button","`link` or `text` button can't be a `ghost` button.")}),gt(A),Ls(A),on(()=>{y.value&&clearTimeout(y.value)}),s({focus:()=>{var R;(R=g.value)===null||R===void 0||R.focus()},blur:()=>{var R;(R=g.value)===null||R===void 0||R.blur()}}),()=>{var R,I;const{icon:W=(R=n.icon)===null||R===void 0?void 0:R.call(n)}=e,H=or((I=n.default)===null||I===void 0?void 0:I.call(n));b=H.length===1&&!W&&!Ma(e.type);const{type:Q,htmlType:ge,href:le,title:we,target:Xe}=e,pt=v.value?"loading":W,Ue=x(x({},r),{title:we,disabled:p.value,class:[O.value,r.class,{[`${i.value}-icon-only`]:H.length===0&&!!pt}],onClick:j,onMousedown:N});p.value||delete Ue.disabled;const st=W&&!v.value?W:P(JM,{existIcon:!!W,prefixCls:i.value,loading:!!v.value},null),D=H.map(J=>k(J,b&&_.value));if(le!==void 0)return c(P("a",fe(fe({},Ue),{},{href:le,target:Xe,ref:g}),[st,D]));let ee=P("button",fe(fe({},Ue),{},{ref:g,type:ge}),[st,D]);if(!Ma(Q)){const J=(function(){return ee})();ee=P(GM,{ref:"wave",disabled:!!v.value},{default:()=>[J]})}return c(ee)}}});fo.Group=Kf;fo.install=function(e){return e.component(fo.name,fo),e.component(Kf.name,Kf),e};var Ww=60,zw=Ww*60,Vw=zw*24,gD=Vw*7,Ps=1e3,cl=Ww*Ps,zm=zw*Ps,mD=Vw*Ps,yD=gD*Ps,Rh="millisecond",eo="second",er="minute",to="hour",Jn="day",ul="week",ln="month",qw="quarter",Yn="year",os="date",vD="YYYY-MM-DDTHH:mm:ssZ",Vm="Invalid Date",bD=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_D=/\[([^\]]+)]|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 wD={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 Jf=function(t,n,r){var o=String(t);return!o||o.length>=n?t:""+Array(n+1-o.length).join(r)+t},SD=function(t){var n=-t.utcOffset(),r=Math.abs(n),o=Math.floor(r/60),s=r%60;return(n<=0?"+":"-")+Jf(o,2,"0")+":"+Jf(s,2,"0")},CD=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,ln),s=n-o<0,i=t.clone().add(r+(s?-1:1),ln);return+(-(r+(n-o)/(s?o-i:i-o))||0)},ED=function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},TD=function(t){var n={M:ln,y:Yn,w:ul,d:Jn,D:os,h:to,m:er,s:eo,ms:Rh,Q:qw};return n[t]||String(t||"").toLowerCase().replace(/s$/,"")},xD=function(t){return t===void 0};const AD={s:Jf,z:SD,m:CD,a:ED,p:TD,u:xD};var Ei="en",ho={};ho[Ei]=wD;var Gw="$isDayjsObject",kh=function(t){return t instanceof Ic||!!(t&&t[Gw])},ql=function e(t,n,r){var o;if(!t)return Ei;if(typeof t=="string"){var s=t.toLowerCase();ho[s]&&(o=s),n&&(ho[s]=n,o=s);var i=t.split("-");if(!o&&i.length>1)return e(i[0])}else{var a=t.name;ho[a]=t,o=a}return!r&&o&&(Ei=o),o||!r&&Ei},Ge=function(t,n){if(kh(t))return t.clone();var r=typeof n=="object"?n:{};return r.date=t,r.args=arguments,new Ic(r)},OD=function(t,n){return Ge(t,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})},Oe=AD;Oe.l=ql;Oe.i=kh;Oe.w=OD;var PD=function(t){var n=t.date,r=t.utc;if(n===null)return new Date(NaN);if(Oe.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(bD);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)},Ic=(function(){function e(n){this.$L=ql(n.locale,null,!0),this.parse(n),this.$x=this.$x||n.x||{},this[Gw]=!0}var t=e.prototype;return t.parse=function(r){this.$d=PD(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 Oe},t.isValid=function(){return this.$d.toString()!==Vm},t.isSame=function(r,o){var s=Ge(r);return this.startOf(o)<=s&&s<=this.endOf(o)},t.isAfter=function(r,o){return Ge(r)<this.startOf(o)},t.isBefore=function(r,o){return this.endOf(o)<Ge(r)},t.$g=function(r,o,s){return Oe.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=Oe.u(o)?!0:o,a=Oe.p(r),l=function(b,v){var m=Oe.w(s.$u?Date.UTC(s.$y,v,b):new Date(s.$y,v,b),s);return i?m:m.endOf(Jn)},u=function(b,v){var m=[0,0,0,0],_=[23,59,59,999];return Oe.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 Yn:return i?l(1,0):l(31,11);case ln:return i?l(1,f):l(0,f+1);case ul:{var p=this.$locale().weekStart||0,g=(c<p?c+7:c)-p;return l(i?d-g:d+(6-g),f)}case Jn:case os:return u(h+"Hours",0);case to:return u(h+"Minutes",1);case er:return u(h+"Seconds",2);case eo: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=Oe.p(r),a="set"+(this.$u?"UTC":""),l=(s={},s[Jn]=a+"Date",s[os]=a+"Date",s[ln]=a+"Month",s[Yn]=a+"FullYear",s[to]=a+"Hours",s[er]=a+"Minutes",s[eo]=a+"Seconds",s[Rh]=a+"Milliseconds",s)[i],u=i===Jn?this.$D+(o-this.$W):o;if(i===ln||i===Yn){var c=this.clone().set(os,1);c.$d[l](u),c.init(),this.$d=c.set(os,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[Oe.p(r)]()},t.add=function(r,o){var s=this,i;r=Number(r);var a=Oe.p(o),l=function(d){var h=Ge(s);return Oe.w(h.date(h.date()+Math.round(d*r)),s)};if(a===ln)return this.set(ln,this.$M+r);if(a===Yn)return this.set(Yn,this.$y+r);if(a===Jn)return l(1);if(a===ul)return l(7);var u=(i={},i[er]=cl,i[to]=zm,i[eo]=Ps,i)[a]||1,c=this.$d.getTime()+r*u;return Oe.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||Vm;var i=r||vD,a=Oe.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 Oe.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 Oe.s(o.$y,4,"0");case"M":return c+1;case"MM":return Oe.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 Oe.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 Oe.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 Oe.s(u,2,"0");case"s":return String(o.$s);case"ss":return Oe.s(o.$s,2,"0");case"SSS":return Oe.s(o.$ms,3,"0");case"Z":return a}return null};return i.replace(_D,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=Oe.p(o),l=Ge(r),u=(l.utcOffset()-this.utcOffset())*cl,c=this-l,f=function(){return Oe.m(i,l)},d;switch(a){case Yn:d=f()/12;break;case ln:d=f();break;case qw:d=f()/3;break;case ul:d=(c-u)/yD;break;case Jn:d=(c-u)/mD;break;case to:d=c/zm;break;case er:d=c/cl;break;case eo:d=c/Ps;break;default:d=c;break}return s?d:Oe.a(d)},t.daysInMonth=function(){return this.endOf(ln).$D},t.$locale=function(){return ho[this.$L]},t.locale=function(r,o){if(!r)return this.$L;var s=this.clone(),i=ql(r,o,!0);return i&&(s.$L=i),s},t.clone=function(){return Oe.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})(),Kw=Ic.prototype;Ge.prototype=Kw;[["$ms",Rh],["$s",eo],["$m",er],["$H",to],["$W",Jn],["$M",ln],["$y",Yn],["$D",os]].forEach(function(e){Kw[e[1]]=function(t){return this.$g(t,e[0],e[1])}});Ge.extend=function(e,t){return e.$i||(e(t,Ic,Ge),e.$i=!0),Ge};Ge.locale=ql;Ge.isDayjs=kh;Ge.unix=function(e){return Ge(e*1e3)};Ge.en=ho[Ei];Ge.Ls=ho;Ge.p={};const Jw=()=>Tn()&&window.document.documentElement;let Da;const x3=()=>{if(!Jw())return!1;if(Da!==void 0)return Da;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),Da=e.scrollHeight===1,document.body.removeChild(e),Da};let fl=x({},bo.Modal);function $D(e){e?fl=x(x({},fl),e):fl=x({},bo.Modal)}function RD(){return fl}const Yf="internalMark",dl=pe({compatConfig:{MODE:3},name:"ALocaleProvider",props:{locale:{type:Object},ANT_MARK__:String},setup(e,t){let{slots:n}=t;Cc(e.ANT_MARK__===Yf);const r=rt({antLocale:x(x({},e.locale),{exist:!0}),ANT_MARK__:Yf});return wt("localeData",r),_e(()=>e.locale,o=>{$D(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)}}});dl.install=function(e){return e.component(dl.name,dl),e};const kD=rh(dl),Yw=pe({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=$(()=>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 gt(()=>{a()}),js(()=>{s=!0,l()}),_e([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,O)=>((O.startsWith("data-")||O.startsWith("aria-")||O==="role")&&(w[O]=n[O]),w),{}),E=P("div",fe({class:Ye(_,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(Rd,{to:b},{default:()=>E}):E}}});var ID=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 qm=0;const ND=Date.now();function Gm(){const e=qm;return qm+=1,`rcNotification_${ND}_${e}`}const Gl=pe({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=Z([]),a=$(()=>{const{prefixCls:c,animation:f="fade"}=e;let d=e.transitionName;return!d&&f&&(d=`${c}-${f}`),gw(d)}),l=(c,f)=>{const d=c.key||Gm(),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=Gm(),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:O=>{var A;u(O),(A=b.onClose)===null||A===void 0||A.call(b)},onClick:b.onClick});return v?P("div",{key:_,class:`${f}-hook-holder`,ref:O=>{typeof _>"u"||(O?(s.set(_,O),v(O,w)):s.delete(_))}},null):P(Yw,fe(fe({},w),{},{class:Ye(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(V0,fe({tag:"div"},a.value),{default:()=>[h]})])}}});Gl.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=ID(r,["name","getContainer","appContext","prefixCls","rootPrefixCls","transitionName","hasTransitionName","useStyle"]),h=document.createElement("div");s?s().appendChild(h):document.body.appendChild(h);const g=P(pe({compatConfig:{MODE:3},name:"NotificationWrapper",setup(y,b){let{attrs:v}=b;const m=ae(),_=$(()=>vt.getPrefixCls(o,a)),[,S]=f(_);return gt(()=>{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(){yo(null,h),h.parentNode&&h.parentNode.removeChild(h)},component:m})}),()=>{const E=vt,w=E.getRootPrefixCls(l,_.value),O=c?u:`${_.value}-${u}`;return P(po,fe(fe({},E),{},{prefixCls:w}),{default:()=>[P(Gl,fe(fe({ref:m},v),{},{prefixCls:_.value,transitionName:O,hashId:S.value}),null)]})}}}),d);g.appContext=i||g.appContext,yo(g,h)};let Km=0;const LD=Date.now();function Jm(){const e=Km;return Km+=1,`rcNotification_${LD}_${e}`}const jD=pe({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=$(()=>e.notices),i=$(()=>{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 gw(c)}),a=c=>e.remove(c),l=Z({});_e(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=$(()=>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,O)=>{let{notice:A,holderCallback:j}=w;const N=O===s.value.length-1?A.updateMark:void 0,{key:k,userPassKey:F}=A,{content:K}=A,R=x(x(x({prefixCls:f,closeIcon:typeof d=="function"?d({prefixCls:f}):d},A),A.props),{key:k,noticeKey:F||k,updateMark:N,onClose:I=>{var W;a(I),(W=A.onClose)===null||W===void 0||W.call(A)},onClick:A.onClick});return j?P("div",{key:k,class:`${f}-hook-holder`,ref:I=>{typeof k>"u"||(I?(o.set(k,I),j(I,R)):o.delete(k))}},null):P(Yw,fe(fe({},R),{},{class:Ye(R.class,e.hashId)}),{default:()=>[typeof K=="function"?K({prefixCls:f}):K]})}),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(V0,fe(fe({tag:"div"},i.value),{},{onAfterLeave:E}),{default:()=>[_]})])});return P(vw,{getContainer:e.getContainer},{default:()=>[h]})}}});var MD=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 DD=()=>document.body;let Ym=0;function BD(){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=DD,motion:n,prefixCls:r,maxCount:o,getClassName:s,getStyles:i,onAllRemoved:a}=e,l=MD(e,["getContainer","motion","prefixCls","maxCount","getClassName","getStyles","onAllRemoved"]),u=ae([]),c=ae(),f=(b,v)=>{const m=b.key||Jm(),_=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=Jm(),_.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(jD,{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=ae([]),y={open:b=>{const v=BD(l,b);(v.key===null||v.key===void 0)&&(v.key=`vc-notification-${Ym}`,Ym+=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 _e(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 UD=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 Ke("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:h,transform:"translateY(0)",opacity:1}}),v=new Ke("MessageMoveOut",{"0%":{maxHeight:e.height,padding:h,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}});return[{[t]:x(x({},dh(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"}}]},Qw=Ao("Message",e=>{const t=Nr(e,{messageNoticeContentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`});return[UD(t)]},e=>({height:150,zIndexPopup:e.zIndexPopupBase+10})),FD={info:P(Lo,null,null),success:P(Io,null,null),error:P(ko,null,null),warning:P(No,null,null),loading:P(Co,null,null)},HD=pe({name:"PureContent",inheritAttrs:!1,props:["prefixCls","type","icon"],setup(e,t){let{slots:n}=t;return()=>{var r;return P("div",{class:Ye(`${e.prefixCls}-custom-content`,`${e.prefixCls}-${e.type}`)},[e.icon||FD[e.type],P("span",null,[(r=n.default)===null||r===void 0?void 0:r.call(n)])])}}});var WD=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 zD=8,VD=3,qD=pe({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}=dr("message",e),a=$(()=>s("message",e.prefixCls)),[,l]=Qw(a),u=()=>{var g;const y=(g=e.top)!==null&&g!==void 0?g:zD;return{left:"50%",transform:"translateX(-50%)",top:typeof y=="number"?`${y}px`:y}},c=()=>Ye(l.value,e.rtl?`${a.value}-rtl`:""),f=()=>{var g;return lI({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(Ws,{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:VD,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 Xm=0;function GD(e){const t=ae(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=WD(l,["content","icon","type","key","class","onClose"]);let _=y;return _==null&&(Xm+=1,_=`antd-message-${Xm}`),W$(S=>(u(x(x({},m),{key:_,content:()=>P(HD,{prefixCls:c,type:g,icon:typeof p=="function"?p():p},{default:()=>[typeof h=="function"?h():h]}),placement:"top",class:Ye(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(qD,fe(fe({key:n},e),{},{ref:t}),null)]}function KD(e){return GD(e)}let Zw=3,eS,Nt,JD=1,tS="",nS="move-up",rS=!1,oS=()=>document.body,sS,iS=!1;function YD(){return JD++}function XD(e){e.top!==void 0&&(eS=e.top,Nt=null),e.duration!==void 0&&(Zw=e.duration),e.prefixCls!==void 0&&(tS=e.prefixCls),e.getContainer!==void 0&&(oS=e.getContainer,Nt=null),e.transitionName!==void 0&&(nS=e.transitionName,Nt=null,rS=!0),e.maxCount!==void 0&&(sS=e.maxCount,Nt=null),e.rtl!==void 0&&(iS=e.rtl)}function QD(e,t){if(Nt){t(Nt);return}Gl.newInstance({appContext:e.appContext,prefixCls:e.prefixCls||tS,rootPrefixCls:e.rootPrefixCls,transitionName:nS,hasTransitionName:rS,style:{top:eS},getContainer:oS||e.getPopupContainer,maxCount:sS,name:"message",useStyle:Qw},n=>{if(Nt){t(Nt);return}Nt=n,t(n)})}const aS={info:Lo,success:Io,error:ko,warning:No,loading:Co},ZD=Object.keys(aS);function eB(e){const t=e.duration!==void 0?e.duration:Zw,n=e.key||YD(),r=new Promise(s=>{const i=()=>(typeof e.onClose=="function"&&e.onClose(),s(!0));QD(e,a=>{a.notice({key:n,duration:t,style:e.style||{},class:e.class,content:l=>{let{prefixCls:u}=l;const c=aS[e.type],f=c?P(c,null,null):"",d=Ye(`${u}-custom-content`,{[`${u}-${e.type}`]:e.type,[`${u}-rtl`]:iS===!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=()=>{Nt&&Nt.removeNotice(n)};return o.then=(s,i)=>r.then(s,i),o.promise=r,o}function tB(e){return Object.prototype.toString.call(e)==="[object Object]"&&!!e.content}const xt={open:eB,config:XD,destroy(e){if(Nt)if(e){const{removeNotice:t}=Nt;t(e)}else{const{destroy:t}=Nt;t(),Nt=null}}};function nB(e,t){e[t]=(n,r,o)=>tB(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}))}ZD.forEach(e=>nB(xt,e));xt.warn=xt.warning;xt.useMessage=KD;const rB=e=>{const{componentCls:t,width:n,notificationMarginEdge:r}=e,o=new Ke("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}}),s=new Ke("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}}),i=new Ke("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}}}},oB=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 Ke("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:m},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),w=new Ke("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({},dh(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"}}),rB(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}}]},lS=Ao("Notification",e=>{const t=e.paddingMD,n=e.paddingLG,r=Nr(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[oB(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50,width:384}));function sB(e,t){return t||P("span",{class:`${e}-close-x`},[P(Ws,{class:`${e}-close-icon`},null)])}P(Lo,null,null),P(Io,null,null),P(ko,null,null),P(No,null,null),P(Co,null,null);const iB={success:Io,info:Lo,error:ko,warning:No};function aB(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`},[ns(n)]);else if(r){const l=iB[r];a=P(l,{class:`${t}-icon ${t}-icon-${r}`},null)}return P("div",{class:Ye({[`${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 cS(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 lB(e){return{name:`${e}-fade`}}var cB=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 Qm=24,uB=4.5,fB=pe({name:"Holder",inheritAttrs:!1,props:["prefixCls","class","type","icon","content","onAllRemoved"],setup(e,t){let{expose:n}=t;const{getPrefixCls:r,getPopupContainer:o}=dr("notification",e),s=$(()=>e.prefixCls||r("notification")),i=d=>{var h,p;return cS(d,(h=e.top)!==null&&h!==void 0?h:Qm,(p=e.bottom)!==null&&p!==void 0?p:Qm)},[,a]=lS(s),l=()=>Ye(a.value,{[`${s.value}-rtl`]:e.rtl}),u=()=>lB(s.value),[c,f]=Xw({prefixCls:s.value,getStyles:i,getClassName:l,motion:u,closable:!0,closeIcon:sB(s.value),duration:uB,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 dB(e){const t=ae(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=cB(a,["message","description","icon","type","btn","class"]);return l(x(x({placement:"topRight"},v),{content:()=>P(aB,{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:Ye(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(fB,fe(fe({key:n},e),{},{ref:t}),null)]}function hB(e){return dB(e)}const Jr={};let uS=4.5,fS="24px",dS="24px",Xf="",hS="topRight",pS=()=>document.body,gS=null,Qf=!1,mS;function pB(e){const{duration:t,placement:n,bottom:r,top:o,getContainer:s,closeIcon:i,prefixCls:a}=e;a!==void 0&&(Xf=a),t!==void 0&&(uS=t),n!==void 0&&(hS=n),r!==void 0&&(dS=typeof r=="number"?`${r}px`:r),o!==void 0&&(fS=typeof o=="number"?`${o}px`:o),s!==void 0&&(pS=s),i!==void 0&&(gS=i),e.rtl!==void 0&&(Qf=e.rtl),e.maxCount!==void 0&&(mS=e.maxCount)}function gB(e,t){let{prefixCls:n,placement:r=hS,getContainer:o=pS,top:s,bottom:i,closeIcon:a=gS,appContext:l}=e;const{getPrefixCls:u}=AB(),c=u("notification",n||Xf),f=`${c}-${r}-${Qf}`,d=Jr[f];if(d){Promise.resolve(d).then(p=>{t(p)});return}const h=Ye(`${c}-${r}`,{[`${c}-rtl`]:Qf===!0});Gl.newInstance({name:"notification",prefixCls:n||Xf,useStyle:lS,class:h,style:cS(r,s??fS,i??dS),appContext:l,getContainer:o,closeIcon:p=>{let{prefixCls:g}=p;return P("span",{class:`${g}-close-x`},[ns(a,{},P(Ws,{class:`${g}-close-icon`},null))])},maxCount:mS,hasTransitionName:!0},p=>{Jr[f]=p,t(p)})}const mB={success:xh,info:Ah,error:Oh,warning:ua};function yB(e){const{icon:t,type:n,description:r,message:o,btn:s}=e,i=e.duration===void 0?uS:e.duration;gB(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`},[ns(t)]);else if(n){const d=mB[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,ns(o)]),P("div",{class:`${c}-description`},[ns(r)]),s?P("span",{class:`${c}-btn`},[ns(s)]):null])},duration:i,closable:!0,onClose:e.onClose,onClick:e.onClick,key:e.key,style:e.style||{},class:e.class})})}const $s={open:yB,close(e){Object.keys(Jr).forEach(t=>Promise.resolve(Jr[t]).then(n=>{n.removeNotice(e)}))},config:pB,destroy(){Object.keys(Jr).forEach(e=>{Promise.resolve(Jr[e]).then(t=>{t.destroy()}),delete Jr[e]})}},vB=["success","info","warning","error"];vB.forEach(e=>{$s[e]=t=>$s.open(x(x({},t),{type:e}))});$s.warn=$s.warning;$s.useNotification=hB;const bB=`-ant-${Date.now()}-${Math.random()}`;function _B(e,t){const n={},r=(i,a)=>{let l=i.clone();return l=a?.(l)||l,l.toRgbString()},o=(i,a)=>{const l=new _t(i),u=_o(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 _t(t.primaryColor),a=_o(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 _t(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 wB(e,t){const n=_B(e,t);Tn()&&Hi(n,`${bB}-dynamic-theme`)}const SB=e=>{const[t,n]=la();return Lf($(()=>({theme:t.value,token:n.value,hashId:"",path:["ant-design-icons",e.value]})),()=>[{[`.${e.value}`]:x(x({},xk()),{[`.${e.value} .${e.value}-icon`]:{display:"block"}})}])};function CB(e,t){const n=$(()=>e?.value||{}),r=$(()=>n.value.inherit===!1||!t?.value?k_:t.value);return $(()=>{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 EB=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 TB="ant";function ps(){return vt.prefixCls||TB}function yS(){return vt.iconPrefixCls||oh}const Ih=rt({}),vt=rt({});Fn(()=>{x(vt,Ih),vt.prefixCls=ps(),vt.iconPrefixCls=yS(),vt.getPrefixCls=(e,t)=>t||(e?`${vt.prefixCls}-${e}`:vt.prefixCls),vt.getRootPrefixCls=()=>vt.prefixCls?vt.prefixCls:ps()});let Iu;const xB=e=>{Iu&&Iu(),Iu=Fn(()=>{x(Ih,rt(e)),x(vt,rt(e))}),e.theme&&wB(ps(),e.theme)},AB=()=>({getPrefixCls:(e,t)=>t||(e?`${ps()}-${e}`:ps()),getIconPrefixCls:yS,getRootPrefixCls:()=>vt.prefixCls?vt.prefixCls:ps()}),po=pe({compatConfig:{MODE:3},name:"AConfigProvider",inheritAttrs:!1,props:X$(),setup(e,t){let{slots:n}=t;const r=ih(),o=(R,I)=>{const{prefixCls:W="ant"}=e;if(I)return I;const H=W||r.getPrefixCls("");return R?`${H}-${R}`:H},s=$(()=>e.iconPrefixCls||r.iconPrefixCls.value||oh),i=$(()=>s.value!==r.iconPrefixCls.value),a=$(()=>{var R;return e.csp||((R=r.csp)===null||R===void 0?void 0:R.value)}),l=SB(s),u=CB($(()=>e.theme),$(()=>{var R;return(R=r.theme)===null||R===void 0?void 0:R.value})),c=R=>(e.renderEmpty||n.renderEmpty||r.renderEmpty||Uk)(R),f=$(()=>{var R,I;return(R=e.autoInsertSpaceInButton)!==null&&R!==void 0?R:(I=r.autoInsertSpaceInButton)===null||I===void 0?void 0:I.value}),d=$(()=>{var R;return e.locale||((R=r.locale)===null||R===void 0?void 0:R.value)});_e(d,()=>{Ih.locale=d.value},{immediate:!0});const h=$(()=>{var R;return e.direction||((R=r.direction)===null||R===void 0?void 0:R.value)}),p=$(()=>{var R,I;return(R=e.space)!==null&&R!==void 0?R:(I=r.space)===null||I===void 0?void 0:I.value}),g=$(()=>{var R,I;return(R=e.virtual)!==null&&R!==void 0?R:(I=r.virtual)===null||I===void 0?void 0:I.value}),y=$(()=>{var R,I;return(R=e.dropdownMatchSelectWidth)!==null&&R!==void 0?R:(I=r.dropdownMatchSelectWidth)===null||I===void 0?void 0:I.value}),b=$(()=>{var R;return e.getTargetContainer!==void 0?e.getTargetContainer:(R=r.getTargetContainer)===null||R===void 0?void 0:R.value}),v=$(()=>{var R;return e.getPopupContainer!==void 0?e.getPopupContainer:(R=r.getPopupContainer)===null||R===void 0?void 0:R.value}),m=$(()=>{var R;return e.pageHeader!==void 0?e.pageHeader:(R=r.pageHeader)===null||R===void 0?void 0:R.value}),_=$(()=>{var R;return e.input!==void 0?e.input:(R=r.input)===null||R===void 0?void 0:R.value}),S=$(()=>{var R;return e.pagination!==void 0?e.pagination:(R=r.pagination)===null||R===void 0?void 0:R.value}),E=$(()=>{var R;return e.form!==void 0?e.form:(R=r.form)===null||R===void 0?void 0:R.value}),w=$(()=>{var R;return e.select!==void 0?e.select:(R=r.select)===null||R===void 0?void 0:R.value}),O=$(()=>e.componentSize),A=$(()=>e.componentDisabled),j=$(()=>{var R,I;return(R=e.wave)!==null&&R!==void 0?R:(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:$(()=>{var R,I;return(R=u.value)!==null&&R!==void 0?R:(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:O,componentDisabled:A,transformCellText:$(()=>e.transformCellText),wave:j},k=$(()=>{const R=u.value||{},{algorithm:I,token:W}=R,H=EB(R,["algorithm","token"]),Q=I&&(!Array.isArray(I)||I.length>0)?m_(I):void 0;return x(x({},H),{theme:Q,token:x(x({},xc),W)})}),F=$(()=>{var R,I;let W={};return d.value&&(W=((R=d.value.Form)===null||R===void 0?void 0:R.defaultValidateMessages)||((I=bo.Form)===null||I===void 0?void 0:I.defaultValidateMessages)||{}),e.form&&e.form.validateMessages&&(W=x(x({},W),e.form.validateMessages)),W});Q$(N),Y$({validateMessages:F}),Fk(O),Z$(A);const K=R=>{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 Q=(function(){return H})();H=P(Lk,{value:k.value},{default:()=>[Q]})}return P(kD,{locale:d.value||R,ANT_MARK__:Yf},{default:()=>[H]})};return Fn(()=>{h.value&&(xt.config({rtl:h.value==="rtl"}),$s.config({rtl:h.value==="rtl"}))}),()=>P(o_,{children:(R,I,W)=>K(W)},null)}});po.config=xB;po.install=function(e){e.component(po.name,po)};function Nh(){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:Fe.shape({x:Number,y:Number}).loose,title:Fe.any,footer:Fe.any,transitionName:String,maskTransitionName:String,animation:Fe.any,maskAnimation:Fe.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:Fe.any,maskProps:Fe.any,wrapProps:Fe.any,getContainer:Fe.any,dialogStyle:{type:Object,default:void 0},dialogClass:String,closeIcon:Fe.any,forceRender:{type:Boolean,default:void 0},getOpenCount:Function,focusTriggerAfterClose:{type:Boolean,default:void 0},onClose:Function,modalRender:Function}}function Zm(e,t,n){let r=t;return!r&&n&&(r=`${e}-${n}`),r}let ey=-1;function OB(){return ey+=1,ey}function ty(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 PB(e){const t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=ty(o),n.top+=ty(o,!0),n}const ny={width:0,height:0,overflow:"hidden",outline:"none"},$B=pe({compatConfig:{MODE:3},name:"DialogContent",inheritAttrs:!1,props:x(x({},Nh()),{motionName:String,ariaId:String,onVisibleChanged:Function,onMousedown:Function,onMouseup:Function}),setup(e,t){let{expose:n,slots:r,attrs:o}=t;const s=Z(),i=Z(),a=Z();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=Z(),u=$(()=>{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=()=>{Ot(()=>{if(a.value){const d=PB(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:O,onMousedown:A,onMouseup:j,visible:N,modalRender:k=r.modalRender,destroyOnClose:F,motionName:K}=e;let R;b&&(R=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",fe({class:`${y}-body`,style:w},O),[(g=r.default)===null||g===void 0?void 0:g.call(r)]),R]),Q=pw(K);return P(Ms,fe(fe({},Q),{},{onBeforeEnter:c,onAfterEnter:()=>f(!0),onAfterLeave:()=>f(!1)}),{default:()=>[N||!F?Mv(P("div",fe(fe({},o),{},{ref:a,key:"dialog-element",role:"document",style:[u.value,o.style],class:[y,o.class],onMousedown:A,onMouseup:j}),[P("div",{tabindex:0,ref:s,style:ny,"aria-hidden":"true"},null),k?k({originVNode:H}):H,P("div",{tabindex:0,ref:i,style:ny,"aria-hidden":"true"},null)]),[[F0,N]]):null]})}}}),RB=pe({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=pw(s);return P(Ms,i,{default:()=>[Mv(P("div",fe({class:`${n}-mask`},o),null),[[F0,r]])]})}}}),ry=pe({compatConfig:{MODE:3},name:"VcDialog",inheritAttrs:!1,props:aa(x(x({},Nh()),{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=ae(),s=ae(),i=ae(),a=ae(e.visible),l=ae(`vcDialogTitle${OB()}`),u=b=>{var v,m;if(b)c_(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=ae(!1),d=ae(),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===im.ESC){b.stopPropagation(),c(b);return}e.visible&&b.keyCode===im.TAB&&i.value.changeActive(!b.shiftKey)};return _e(()=>e.visible,()=>{e.visible&&(a.value=!0)},{flush:"post"}),on(()=>{var b;clearTimeout(d.value),(b=e.scrollLocker)===null||b===void 0||b.unLock()}),Fn(()=>{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:O,wrapStyle:A,closable:j,maskProps:N,maskStyle:k,transitionName:F,animation:K,wrapProps:R,title:I=r.title}=e,{style:W,class:H}=n;return P("div",fe({class:[`${b}-root`,O]},w2(e,{data:!0})),[P(RB,{prefixCls:b,visible:v&&m,motionName:Zm(b,_,S),style:x({zIndex:E},k),maskProps:N},null),P("div",fe({tabIndex:-1,onKeydown:y,class:Ye(`${b}-wrap`,w),ref:s,onClick:g,role:"dialog","aria-labelledby":I?l.value:null,style:x(x({zIndex:E},A),{display:a.value?null:"none"})},R),[P($B,fe(fe({},F_(e,["scrollLocker"])),{},{style:W,class:H,onMousedown:h,onMouseup:p,ref:i,closable:j,ariaId:l.value,prefixCls:b,visible:m,onClose:c,onVisibleChanged:u,motionName:Zm(b,F,K)}),r)])])}}}),kB=Nh(),IB=pe({compatConfig:{MODE:3},name:"DialogWrap",inheritAttrs:!1,props:aa(kB,{visible:!1}),setup(e,t){let{attrs:n,slots:r}=t;const o=Z(e.visible);return yw({},{inTriggerContext:!1}),_e(()=>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(ry,fe(fe({},c),{},{getOpenCount:()=>2}),r):!a&&l&&!o.value?null:P(m2,{autoLock:!0,visible:s,forceRender:a,getContainer:i},{default:f=>(c=x(x(x({},c),f),{afterClose:()=>{u?.(),o.value=!1}}),P(ry,c,r))})}}});function oy(e){return{position:e,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0}}const NB=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({},oy("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:x(x({},oy("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:uM(e)}]},LB=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({},dh(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}},$_(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"}}}]},jB=e=>{const{componentCls:t}=e,n=`${t}-confirm`;return{[n]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${n}-body-wrapper`]:x({},Ak()),[`${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"}}},MB=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},DB=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}}}},BB=Ao("Modal",e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5,o=Nr(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[LB(o),jB(o),MB(o),NB(o),e.wireframe&&DB(o),SM(o,"zoom")]});var UB=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 Zf;const FB=e=>{Zf={x:e.pageX,y:e.pageY},setTimeout(()=>Zf=null,100)};Jw()&&J$(document.documentElement,"click",FB,!0);const HB=()=>({prefixCls:String,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},confirmLoading:{type:Boolean,default:void 0},title:Fe.any,closable:{type:Boolean,default:void 0},closeIcon:Fe.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:Fe.any,okText:Fe.any,okType:String,cancelText:Fe.any,icon:Fe.any,maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:et(),cancelButtonProps:et(),destroyOnClose:{type:Boolean,default:void 0},wrapClassName:String,maskTransitionName:String,transitionName:String,getContainer:{type:[String,Function,Boolean,Object],default:void 0},zIndex:Number,bodyStyle:et(),maskStyle:et(),mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:Object,focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:Function,mousePosition:et()}),Ft=pe({compatConfig:{MODE:3},name:"AModal",inheritAttrs:!1,props:aa(HB(),{width:520,confirmLoading:!1,okType:"primary"}),setup(e,t){let{emit:n,slots:r,attrs:o}=t;const[s]=lh("Modal"),{prefixCls:i,rootPrefixCls:a,direction:l,getPopupContainer:u}=dr("modal",e),[c,f]=BB(i);Cc(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(fo,fe({onClick:d},e.cancelButtonProps),{default:()=>[m||s.value.cancelText]}),P(fo,fe(fe({},Bw(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:O=!0}=e,A=UB(e,["prefixCls","visible","open","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose"]),j=Ye(_,{[`${i.value}-centered`]:!!S,[`${i.value}-wrap-rtl`]:l.value==="rtl"});return c(P(IB,fe(fe(fe({},A),o),{},{rootClassName:f.value,class:Ye(f.value,o.class),getContainer:E||u?.value,prefixCls:i.value,wrapClassName:j,visible:m??v,onClose:d,focusTriggerAfterClose:O,transitionName:Wl(a.value,"zoom",e.transitionName),maskTransitionName:Wl(a.value,"fade",e.maskTransitionName),mousePosition:(y=A.mousePosition)!==null&&y!==void 0?y:Zf}),x(x({},r),{footer:r.footer||p,closeIcon:()=>P("span",{class:`${i.value}-close-x`},[w||P(Ws,{class:`${i.value}-close-icon`},null)])})))}}}),WB=()=>{const e=ae(!1);return on(()=>{e.value=!0}),e},zB={type:{type:String},actionFn:Function,close:Function,autofocus:Boolean,prefixCls:String,buttonProps:et(),emitEvent:Boolean,quitOnNullishReturnValue:Boolean};function sy(e){return!!(e&&e.then)}const iy=pe({compatConfig:{MODE:3},name:"ActionButton",props:zB,setup(e,t){let{slots:n}=t;const r=ae(!1),o=ae(),s=ae(!1);let i;const a=WB();gt(()=>{e.autofocus&&(i=setTimeout(()=>{var f,d;return(d=(f=Dl(o.value))===null||f===void 0?void 0:f.focus)===null||d===void 0?void 0:d.call(f)}))}),on(()=>{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=>{sy(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&&!sy(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(fo,fe(fe(fe({},Bw(f)),{},{onClick:c,loading:s.value,prefixCls:d},h),{},{ref:o}),n)}}});function Bo(e){return typeof e=="function"?e():e}const vS=pe({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]=lh("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:O,content:A,direction:j,closeIcon:N,modalRender:k,focusTriggerAfterClose:F,rootPrefixCls:K,bodyStyle:R,wrapClassName:I,footer:W}=e;let H=o;if(!o&&o!==null)switch(E){case"info":H=P(Lo,null,null);break;case"success":H=P(Io,null,null);break;case"error":H=P(ko,null,null);break;default:H=P(No,null,null)}const Q=e.okType||"primary",ge=e.prefixCls||"ant-modal",le=`${ge}-confirm`,we=n.style||{},Xe=v??E==="confirm",pt=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",Ue=`${ge}-confirm`,st=Ye(Ue,`${Ue}-${e.type}`,{[`${Ue}-rtl`]:j==="rtl"},n.class),D=r.value,ee=Xe&&P(iy,{actionFn:s,close:a,autofocus:pt==="cancel",buttonProps:b,prefixCls:`${K}-btn`},{default:()=>[Bo(e.cancelText)||D.cancelText]});return P(Ft,{prefixCls:ge,class:st,wrapClassName:Ye({[`${Ue}-centered`]:!!h},I),onCancel:J=>a?.({triggerCancel:!0},J),open:w,title:"",footer:"",transitionName:Wl(K,"zoom",e.transitionName),maskTransitionName:Wl(K,"fade",e.maskTransitionName),mask:_,maskClosable:S,maskStyle:g,style:we,bodyStyle:R,width:m,zIndex:c,afterClose:f,keyboard:d,centered:h,getContainer:p,closable:u,closeIcon:N,modalRender:k,focusTriggerAfterClose:F},{default:()=>[P("div",{class:`${le}-body-wrapper`},[P("div",{class:`${le}-body`},[Bo(H),O===void 0?null:P("span",{class:`${le}-title`},[Bo(O)]),P("div",{class:`${le}-content`},[Bo(A)])]),W!==void 0?Bo(W):P("div",{class:`${le}-btns`},[ee,P(iy,{type:Q,actionFn:i,close:a,autofocus:pt==="ok",buttonProps:y,prefixCls:`${K}-btn`},{default:()=>[Bo(l)||(Xe?D.okText:D.justOkText)]})])])]})}}}),no=[],fa=e=>{const t=document.createDocumentFragment();let n=x(x({},F_(e,["parentContext","appContext"])),{close:s,open:!0}),r=null;function o(){r&&(yo(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<no.length;h++)if(no[h]===s){no.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&&cI(r,n,t)}const a=u=>{const c=vt,f=c.prefixCls,d=u.prefixCls||`${f}-modal`,h=c.iconPrefixCls,p=RD();return P(po,fe(fe({},c),{},{prefixCls:f}),{default:()=>[P(vS,fe(fe({},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,yo(c,t),c}return r=l(n),no.push(s),{destroy:s,update:i}};function bS(e){return x(x({},e),{type:"warning"})}function _S(e){return x(x({},e),{type:"info"})}function wS(e){return x(x({},e),{type:"success"})}function SS(e){return x(x({},e),{type:"error"})}function CS(e){return x(x({},e),{type:"confirm"})}const VB=()=>({config:Object,afterClose:Function,destroyAction:Function,open:Boolean}),qB=pe({name:"HookModal",inheritAttrs:!1,props:aa(VB(),{config:{width:520,okType:"primary"}}),setup(e,t){let{expose:n}=t;var r;const o=$(()=>e.open),s=$(()=>e.config),{direction:i,getPrefixCls:a}=ih(),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]=lh("Modal",bo.Modal);return()=>P(vS,fe(fe({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 ay=0;const GB=pe({name:"ElementsHolder",inheritAttrs:!1,setup(e,t){let{expose:n}=t;const r=ae([]);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 KB(){const e=ae(null),t=ae([]);_e(t,()=>{t.value.length&&([...t.value].forEach(i=>{i()}),t.value=[])},{immediate:!0});const n=s=>function(a){var l;ay+=1;const u=ae(!0),c=ae(null),f=ae(U(a)),d=ae({});_e(()=>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(qB,{key:`modal-${ay}`,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&&no.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=$(()=>({info:n(_S),success:n(wS),error:n(SS),warning:n(bS),confirm:n(CS)})),o=Symbol("modalHolderKey");return[r.value,()=>P(GB,{key:o,ref:e},null)]}function ES(e){return fa(bS(e))}Ft.useModal=KB;Ft.info=function(t){return fa(_S(t))};Ft.success=function(t){return fa(wS(t))};Ft.error=function(t){return fa(SS(t))};Ft.warning=ES;Ft.warn=ES;Ft.confirm=function(t){return fa(CS(t))};Ft.destroyAll=function(){for(;no.length;){const t=no.pop();t&&t()}};Ft.install=function(e){return e.component(Ft.name,Ft),e};function Nc(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 JB(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 YB=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class Lh extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}}class XB extends Lh{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class ly extends Lh{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class cy extends Lh{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var ed;(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"})(ed||(ed={}));class QB{constructor(t,{headers:n={},customFetch:r,region:o=ed.Any}={}){this.url=t,this.headers=n,this.region=o,this.fetch=YB(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return JB(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 ly(b);if(!b.ok)throw new cy(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 cy||a instanceof ly?a.context:void 0}}finally{s&&clearTimeout(s)}})}}var ZB=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.code=e.code}},eU=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 ZB(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}},tU=class extends eU{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 uy=new RegExp("[,()]");var Xo=class extends tU{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"&&uy.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"&&uy.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}},nU=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 Xo({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 Xo({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 Xo({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 Xo({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 Xo({method:n,url:r,headers:o,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch})}},rU=class TS{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 nU(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new TS(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 Xo({method:a,url:l,headers:d,schema:this.schemaName,body:u,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch})}};class oU{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 sU="2.93.3",iU=`realtime-js/${sU}`,aU="1.0.0",xS="2.0.0",fy=xS,td=1e4,lU=1e3,cU=100;var Cr;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(Cr||(Cr={}));var at;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(at||(at={}));var yn;(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"})(yn||(yn={}));var nd;(function(e){e.websocket="websocket"})(nd||(nd={}));var Yr;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(Yr||(Yr={}));class uU{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 AS{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 $e;(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"})($e||($e={}));const dy=(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]=fU(i,e,t,o),s),{}):{}},fU=(e,t,n,r)=>{const o=t.find(a=>a.name===e),s=o?.type,i=n[e];return s&&!r.includes(s)?OS(s,i):rd(i)},OS=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return gU(t,n)}switch(e){case $e.bool:return dU(t);case $e.float4:case $e.float8:case $e.int2:case $e.int4:case $e.int8:case $e.numeric:case $e.oid:return hU(t);case $e.json:case $e.jsonb:return pU(t);case $e.timestamp:return mU(t);case $e.abstime:case $e.date:case $e.daterange:case $e.int4range:case $e.int8range:case $e.money:case $e.reltime:case $e.text:case $e.time:case $e.timestamptz:case $e.timetz:case $e.tsrange:case $e.tstzrange:return rd(t);default:return rd(t)}},rd=e=>e,dU=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},hU=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},pU=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},gU=(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=>OS(t,a))}return e},mU=e=>typeof e=="string"?e.replace(" ","T"):e,PS=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 Nu{constructor(t,n,r={},o=td){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 hy;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(hy||(hy={}));class Ti{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=Ti.syncState(this.state,o,s,i),this.pendingDiffs.forEach(l=>{this.state=Ti.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=Ti.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 py;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(py||(py={}));var xi;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(xi||(xi={}));var Kn;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(Kn||(Kn={}));class ss{constructor(t,n={config:{}},r){var o,s;if(this.topic=t,this.params=n,this.socket=r,this.bindings={},this.state=at.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 Nu(this,yn.join,this.params,this.timeout),this.rejoinTimer=new AS(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=at.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=at.closed,this.socket._remove(this)}),this._onError(i=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,i),this.state=at.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=at.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",i=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,i),this.state=at.errored,this.rejoinTimer.scheduleTimeout())}),this._on(yn.reply,{},(i,a)=>{this._trigger(this._replyEventName(a),i)}),this.presence=new Ti(this),this.broadcastEndpointURL=PS(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==at.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[xi.PRESENCE]&&this.bindings[xi.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?.(Kn.CHANNEL_ERROR,h)),this._onClose(()=>t?.(Kn.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?.(Kn.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,O=h&&h[v];if(O&&O.event===_&&ss.isFilterValueEqual(O.schema,S)&&ss.isFilterValueEqual(O.table,E)&&ss.isFilterValueEqual(O.filter,w))b.push(Object.assign(Object.assign({},m),{id:O.id}));else{this.unsubscribe(),this.state=at.errored,t?.(Kn.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=b,t&&t(Kn.SUBSCRIBED);return}}).receive("error",h=>{this.state=at.errored,t?.(Kn.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(h).join(", ")||"error")))}).receive("timeout",()=>{t?.(Kn.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===at.joined&&t===xi.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=at.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(yn.close,"leave",this._joinRef())};this.joinPush.destroy();let r=null;return new Promise(o=>{r=new Nu(this,yn.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=at.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 Nu(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>cU){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}=yn;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===at.closed}_isJoined(){return this.state===at.joined}_isJoining(){return this.state===at.joining}_isLeaving(){return this.state===at.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&&ss.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(yn.close,{},t)}_onError(t){this._on(yn.error,{},n=>t(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=at.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=dy(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=dy(t.columns,t.old_record)),n}}const Lu=()=>{},Ba={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},yU=[1e3,2e3,5e3,1e4],vU=1e4,bU=`
|
||
addEventListener("message", (e) => {
|
||
if (e.data.event === "start") {
|
||
setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
|
||
}
|
||
});`;class _U{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=td,this.transport=null,this.heartbeatIntervalMs=Ba.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=Lu,this.ref=0,this.reconnectTimer=null,this.vsn=fy,this.logger=Lu,this.conn=null,this.sendBuffer=[],this.serializer=new uU,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}/${nd.websocket}`,this.httpEndpoint=PS(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=oU.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 Cr.connecting:return Yr.Connecting;case Cr.open:return Yr.Open;case Cr.closing:return Yr.Closing;default:return Yr.Closed}}isConnected(){return this.connectionState()===Yr.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 ss(`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(lU,"heartbeat timeout"),setTimeout(()=>{var n;this.isConnected()||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout()},Ba.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===Cr.open&&this._onConnOpen())}_teardownConnection(){if(this.conn){if(this.conn.readyState===Cr.open||this.conn.readyState===Cr.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(yn.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([bU],{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:iU};n&&o.updateJoinPayload(s),o.joinedOnce&&o._isJoined()&&o._push(yn.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 AS(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},Ba.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:td,this.heartbeatIntervalMs=(o=t?.heartbeatIntervalMs)!==null&&o!==void 0?o:Ba.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:Lu,this.vsn=(l=t?.vsn)!==null&&l!==void 0?l:fy,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=>yU[p-1]||vU),this.vsn){case aU: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 xS: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 Gi=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 wU(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 SU(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 CU(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:n,path:r,query:o,body:s,headers:i}){const a=wU(e.baseUrl,r,o),l=await SU(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 Gi(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 Ua(e){return e.join("")}var EU=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:Ua(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/${Ua(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Ua(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Ua(e.namespace)}`}),!0}catch(t){if(t instanceof Gi&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(n){if(n instanceof Gi&&n.status===409)return;throw n}}};function Uo(e){return e.join("")}var TU=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/${Uo(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/${Uo(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/${Uo(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/${Uo(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/${Uo(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/${Uo(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(n){if(n instanceof Gi&&n.status===404)return!1;throw n}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(n){if(n instanceof Gi&&n.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw n}}},xU=class{constructor(e){let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const n=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=CU({baseUrl:n,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=e.accessDelegation?.join(","),this.namespaceOps=new EU(this.client,t),this.tableOps=new TU(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)}},Lc=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 jc(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var Fa=class extends Lc{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}}},$S=class extends Lc{constructor(e,t,n="storage"){super(e,n),this.name=n==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};const AU=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),OU=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)},od=e=>{if(Array.isArray(e))return e.map(n=>od(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]=od(r)}),t},PU=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e);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 $U(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 RU(e){var t=$U(e,"string");return Ki(t)=="symbol"?t:t+""}function kU(e,t,n){return(t=RU(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gy(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 de(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gy(Object(n),!0).forEach(function(r){kU(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gy(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const my=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)},IU=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 Fa(my(i),s,a,r))}).catch(()=>{if(r==="vectors"){const i=s+"";t(new Fa(o.statusText||`HTTP ${s} error`,s,i,r))}else{const i=s+"";t(new Fa(o.statusText||`HTTP ${s} error`,s,i,r))}});else{const i=s+"";t(new Fa(o.statusText||`HTTP ${s} error`,s,i,r))}}else t(new $S(my(e),e,r))},NU=(e,t,n,r)=>{const o={method:e,headers:t?.headers||{}};return e==="GET"||e==="HEAD"||!r?de(de({},o),n):(OU(r)?(o.headers=de({"Content-Type":"application/json"},t?.headers),o.body=JSON.stringify(r)):o.body=r,t?.duplex&&(o.duplex=t.duplex),de(de({},o),n))};async function ni(e,t,n,r,o,s,i){return new Promise((a,l)=>{e(n,NU(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=>IU(u,l,r,i))})}function RS(e="storage"){return{get:async(t,n,r,o)=>ni(t,"GET",n,r,o,void 0,e),post:async(t,n,r,o,s)=>ni(t,"POST",n,o,s,r,e),put:async(t,n,r,o,s)=>ni(t,"PUT",n,o,s,r,e),head:async(t,n,r,o)=>ni(t,"HEAD",n,de(de({},r),{},{noResolveJson:!0}),o,void 0,e),remove:async(t,n,r,o,s)=>ni(t,"DELETE",n,o,s,r,e)}}const LU=RS("storage"),{get:Ji,post:gn,put:sd,head:jU,remove:jh}=LU,en=RS("vectors");var zs=class{constructor(e,t={},n,r="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=t,this.fetch=AU(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(jc(n))return{data:null,error:n};throw n}}},MU=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(jc(t))return{data:null,error:t};throw t}}};let kS;kS=Symbol.toStringTag;var DU=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[kS]="BlobDownloadBuilder",this.promise=null}asStream(){return new MU(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(jc(t))return{data:null,error:t};throw t}}};const BU={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},yy={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var UU=class extends zs{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=de(de({},yy),r);let a=de(de({},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=de(de({},a),r.headers));const u=o._removeEmptyFolders(t),c=o._getFinalPath(u),f=await(e=="PUT"?sd:gn)(o.fetch,`${o.url}/object/${c}`,s,de({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=de({upsert:yy.upsert},r),c=de(de({},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 sd(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=de({},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 Lc("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}`,de({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=>de(de({},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=()=>Ji(this.fetch,`${this.url}/${n}/${s}${o}`,{headers:this.headers,noResolveJson:!0});return new DU(i,this.shouldThrowOnError)}async info(e){var t=this;const n=t._getFinalPath(e);return t.handleOperation(async()=>od(await Ji(t.fetch,`${t.url}/object/info/${n}`,{headers:t.headers})))}async exists(e){var t=this;const n=t._getFinalPath(e);try{return await jU(t.fetch,`${t.url}/object/${n}`,{headers:t.headers}),{data:!0,error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(jc(r)&&r instanceof $S){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 jh(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=de(de(de({},BU),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=de({},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 FU="2.93.3",da={"X-Client-Info":`storage-js/${FU}`};var HU=class extends zs{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=de(de({},da),t);super(s,i,n,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=t.listBucketOptionsToQueryString(e);return await Ji(t.fetch,`${t.url}/bucket${n}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Ji(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 sd(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 jh(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():""}},WU=class extends zs{constructor(e,t={},n){const r=e.replace(/\/$/,""),o=de(de({},da),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 Ji(t.fetch,o,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await jh(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!PU(e))throw new Lc("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 xU({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}}}}})}},zU=class extends zs{constructor(e,t={},n){const r=e.replace(/\/$/,""),o=de(de({},da),{},{"Content-Type":"application/json"},t);super(r,o,n,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await en.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var n=this;return n.handleOperation(async()=>await en.post(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await en.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var n=this;return n.handleOperation(async()=>await en.post(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers})||{})}},VU=class extends zs{constructor(e,t={},n){const r=e.replace(/\/$/,""),o=de(de({},da),{},{"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 en.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await en.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 en.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await en.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 en.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},qU=class extends zs{constructor(e,t={},n){const r=e.replace(/\/$/,""),o=de(de({},da),{},{"Content-Type":"application/json"},t);super(r,o,n,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await en.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await en.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await en.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await en.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},GU=class extends qU{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new KU(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)}},KU=class extends zU{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,de(de({},e),{},{vectorBucketName:n.vectorBucketName}))}async listIndexes(e={}){var t=()=>super.listIndexes,n=this;return t().call(n,de(de({},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 JU(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},JU=class extends VU{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,de(de({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(e){var t=()=>super.getVectors,n=this;return t().call(n,de(de({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,n=this;return t().call(n,de(de({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,n=this;return t().call(n,de(de({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,n=this;return t().call(n,de(de({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},YU=class extends HU{constructor(e,t={},n,r){super(e,t,n,r)}from(e){return new UU(this.url,this.headers,e,this.fetch)}get vectors(){return new GU(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new WU(this.url+"/iceberg",this.headers,this.fetch)}};const IS="2.93.3",Qo=30*1e3,id=3,ju=id*Qo,XU="http://localhost:9999",QU="supabase.auth.token",ZU={"X-Client-Info":`gotrue-js/${IS}`},ad="X-Supabase-Api-Version",NS={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},e4=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,t4=600*1e3;class Yi extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function se(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class n4 extends Yi{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function r4(e){return se(e)&&e.name==="AuthApiError"}class Xr extends Yi{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class pr extends Yi{constructor(t,n,r,o){super(t,r,o),this.name=n,this.status=r}}class Xt extends pr{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function Mu(e){return se(e)&&e.name==="AuthSessionMissingError"}class Fo extends pr{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class Ha extends pr{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class Wa extends pr{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 o4(e){return se(e)&&e.name==="AuthImplicitGrantRedirectError"}class vy extends pr{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 s4 extends pr{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 ld extends pr{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function Du(e){return se(e)&&e.name==="AuthRetryableFetchError"}class by extends pr{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class cd extends pr{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const Kl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),_y=`
|
||
\r=`.split(""),i4=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<_y.length;t+=1)e[_y[t].charCodeAt(0)]=-2;for(let t=0;t<Kl.length;t+=1)e[Kl[t].charCodeAt(0)]=t;return e})();function wy(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(Kl[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(Kl[r]),t.queuedBits-=6}}function LS(e,t,n){const r=i4[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 Sy(e){const t=[],n=i=>{t.push(String.fromCodePoint(i))},r={utf8seq:0,codepoint:0},o={queue:0,queuedBits:0},s=i=>{c4(i,r,n)};for(let i=0;i<e.length;i+=1)LS(e.charCodeAt(i),o,s);return t.join("")}function a4(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 l4(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}a4(r,t)}}function c4(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 gs(e){const t=[],n={queue:0,queuedBits:0},r=o=>{t.push(o)};for(let o=0;o<e.length;o+=1)LS(e.charCodeAt(o),n,r);return new Uint8Array(t)}function u4(e){const t=[];return l4(e,n=>t.push(n)),new Uint8Array(t)}function ro(e){const t=[],n={queue:0,queuedBits:0},r=o=>{t.push(o)};return e.forEach(o=>wy(o,n,r)),wy(null,n,r),t.join("")}function f4(e){return Math.round(Date.now()/1e3)+e}function d4(){return Symbol("auth-callback")}const yt=()=>typeof window<"u"&&typeof document<"u",Hr={tested:!1,writable:!1},jS=()=>{if(!yt())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Hr.tested)return Hr.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),Hr.tested=!0,Hr.writable=!0}catch{Hr.tested=!0,Hr.writable=!1}return Hr.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 MS=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),p4=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",Zo=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},Wr=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},mt=async(e,t)=>{await e.removeItem(t)};class Mc{constructor(){this.promise=new Mc.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}Mc.promiseConstructor=Promise;function za(e){const t=e.split(".");if(t.length!==3)throw new cd("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!e4.test(t[r]))throw new cd("JWT not in base64url format");return{header:JSON.parse(Sy(t[0])),payload:JSON.parse(Sy(t[1])),signature:gs(t[2]),raw:{header:t[0],payload:t[1]}}}async function g4(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function m4(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 y4(e){return("0"+e.toString(16)).substr(-2)}function v4(){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,y4).join("")}async function b4(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 _4(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 b4(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Ho(e,t,n=!1){const r=v4();let o=r;n&&(o+="/PASSWORD_RECOVERY"),await Zo(e,`${t}-code-verifier`,o);const s=await _4(r);return[s,r===s?"plain":"s256"]}const w4=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function S4(e){const t=e.headers.get(ad);if(!t||!t.match(w4))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function C4(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 E4(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 T4=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Wo(e){if(!T4.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function Bu(){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 x4(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 Cy(e){return JSON.parse(JSON.stringify(e))}const qr=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),A4=[502,503,504];async function Ey(e){var t;if(!p4(e))throw new ld(qr(e),0);if(A4.includes(e.status))throw new ld(qr(e),e.status);let n;try{n=await e.json()}catch(s){throw new Xr(qr(s),s)}let r;const o=S4(e);if(o&&o.getTime()>=NS["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 by(qr(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new Xt}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 by(qr(n),e.status,n.weak_password.reasons);throw new n4(qr(n),e.status||500,r)}const O4=(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 ue(e,t,n,r){var o;const s=Object.assign({},r?.headers);s[ad]||(s[ad]=NS["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 P4(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 P4(e,t,n,r,o,s){const i=O4(t,r,o,s);let a;try{a=await e(n,Object.assign({},i))}catch(l){throw console.error(l),new ld(qr(l),0)}if(a.ok||await Ey(a),r?.noResolveJson)return a;try{return await a.json()}catch(l){await Ey(l)}}function pn(e){var t;let n=null;k4(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=f4(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function Ty(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 Tr(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function $4(e){return{data:e,error:null}}function R4(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:o,verification_type:s}=e,i=Nc(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 xy(e){return e}function k4(e){return e.access_token&&e.refresh_token&&e.expires_in}const Uu=["global","local","others"];class I4{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=MS(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=Uu[0]){if(Uu.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Uu.join(", ")}`);try{return await ue(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(se(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await ue(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:Tr})}catch(r){if(se(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=Nc(t,["options"]),o=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(o.new_email=r?.newEmail,delete o.newEmail),await ue(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:o,headers:this.headers,xform:R4,redirectTo:n?.redirectTo})}catch(n){if(se(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await ue(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:Tr})}catch(n){if(se(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 ue(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:xy});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(se(u))return{data:{users:[]},error:u};throw u}}async getUserById(t){Wo(t);try{return await ue(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:Tr})}catch(n){if(se(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){Wo(t);try{return await ue(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:Tr})}catch(r){if(se(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){Wo(t);try{return await ue(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:Tr})}catch(r){if(se(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){Wo(t.userId);try{const{data:n,error:r}=await ue(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(se(n))return{data:null,error:n};throw n}}async _deleteFactor(t){Wo(t.userId),Wo(t.id);try{return{data:await ue(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(se(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 ue(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:xy});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(se(u))return{data:{clients:[]},error:u};throw u}}async _createOAuthClient(t){try{return await ue(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(se(n))return{data:null,error:n};throw n}}async _getOAuthClient(t){try{return await ue(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(se(n))return{data:null,error:n};throw n}}async _updateOAuthClient(t,n){try{return await ue(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(se(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(t){try{return await ue(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(se(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(t){try{return await ue(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(se(n))return{data:null,error:n};throw n}}}function Ay(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}const zo={debug:!!(globalThis&&jS()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class DS extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class N4 extends DS{}async function L4(e,t,n){zo.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;return t>0&&setTimeout(()=>{r.abort(),zo.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){zo.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,o.name);try{return await n()}finally{zo.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,o.name)}}else{if(t===0)throw zo.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new N4(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(zo.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 j4(){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 BS(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function M4(e){return parseInt(e,16)}function D4(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,r=>r.toString(16).padStart(2,"0")).join("")}function B4(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=BS(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 Qe 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 Jl extends Qe{constructor(t,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:t}),this.name="WebAuthnUnknownError",this.originalError=n}}function U4({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 Qe({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 Qe({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 Qe({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 Qe({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 Qe({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new Qe({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 Qe({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new Qe({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(US(i)){if(s.rp.id!==i)return new Qe({message:`The RP ID "${s.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Qe({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 Qe({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 Qe({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 Qe({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function F4({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 Qe({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new Qe({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const r=window.location.hostname;if(US(r)){if(n.rpId!==r)return new Qe({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Qe({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new Qe({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 Qe({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class H4{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 W4=new H4;function z4(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=Nc(e,["challenge","user","excludeCredentials"]),s=gs(t).buffer,i=Object.assign(Object.assign({},n),{id:gs(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:gs(u.id).buffer,type:u.type||"public-key",transports:u.transports})}}return a}function V4(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=Nc(e,["challenge","allowCredentials"]),o=gs(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:gs(a.id).buffer,type:a.type||"public-key",transports:a.transports})}}return s}function q4(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:ro(new Uint8Array(e.response.attestationObject)),clientDataJSON:ro(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function G4(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:ro(new Uint8Array(o.authenticatorData)),clientDataJSON:ro(new Uint8Array(o.clientDataJSON)),signature:ro(new Uint8Array(o.signature)),userHandle:o.userHandle?ro(new Uint8Array(o.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function US(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function Oy(){var e,t;return!!(yt()&&"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 K4(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Jl("Browser returned unexpected credential type",t)}:{data:null,error:new Jl("Empty credential response",t)}}catch(t){return{data:null,error:U4({error:t,options:e})}}}async function J4(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Jl("Browser returned unexpected credential type",t)}:{data:null,error:new Jl("Empty credential response",t)}}catch(t){return{data:null,error:F4({error:t,options:e})}}}const Y4={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},X4={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function Yl(...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]=Yl(a,i):r[s]=Yl(i)}else r[s]=i}return r}function Q4(e,t){return Yl(Y4,e,t||{})}function Z4(e,t){return Yl(X4,e,t||{})}class eF{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??W4.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=Q4(a.webauthn.credential_options.publicKey,s?.create),{data:f,error:d}=await K4({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=Z4(a.webauthn.credential_options.publicKey,s?.request),{data:f,error:d}=await J4(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 se(a)?{data:null,error:a}:{data:null,error:new Xr("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 Yi("rpId is required for WebAuthn authentication")};try{if(!Oy())return{data:null,error:new Xr("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 se(i)?{data:null,error:i}:{data:null,error:new Xr("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 Yi("rpId is required for WebAuthn registration")};try{if(!Oy())return{data:null,error:new Xr("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 se(i)?{data:null,error:i}:{data:null,error:new Xr("Unexpected error in register",i)}}}}j4();const tF={url:XU,storageKey:QU,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:ZU,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:1e4};async function Py(e,t,n){return await n()}const Vo={};class Xi{get jwks(){var t,n;return(n=(t=Vo[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){Vo[this.storageKey]=Object.assign(Object.assign({},Vo[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=Vo[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){Vo[this.storageKey]=Object.assign(Object.assign({},Vo[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({},tF),t);if(this.storageKey=s.storageKey,this.instanceID=(n=Xi.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,Xi.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!s.debug,typeof s.debug=="function"&&(this.logger=s.debug),this.instanceID>0&&yt()){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 I4({url:s.url,headers:s.headers,fetch:s.fetch}),this.url=s.url,this.headers=s.headers,this.fetch=MS(s.fetch),this.lock=s.lock||Py,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&&yt()&&(!((r=globalThis?.navigator)===null||r===void 0)&&r.locks)?this.lock=L4:this.lock=Py,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 eF(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:jS()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=Ay(this.memoryStorage)),s.userStorage&&(this.userStorage=s.userStorage)):(this.memoryStorage={},this.storage=Ay(this.memoryStorage)),yt()&&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} (${IS}) ${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(yt()&&(n=h4(window.location.href),this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce")),yt()&&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),o4(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 se(n)?this._returnResult({error:n}):this._returnResult({error:new Xr("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,o;try{const s=await ue(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(se(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 Ho(this.storage,this.storageKey)),s=await ue(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 ue(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 Ha("You must provide either an email or phone number and a password");const{data:i,error:a}=s;if(a||!i)return await mt(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 mt(this.storage,`${this.storageKey}-code-verifier`),se(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 ue(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:Ty})}else if("phone"in t){const{phone:s,password:i,options:a}=t;n=await ue(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:Ty})}else throw new Ha("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 Fo;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(se(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(yt())if(typeof y=="object")m=y;else{const A=window;if("ethereum"in A&&typeof A.ethereum=="object"&&"request"in A.ethereum&&typeof A.ethereum.request=="function")m=A.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(A=>A).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=BS(S[0]);let w=(r=v?.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!w){const A=await m.request({method:"eth_chainId"});w=M4(A)}const O={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=B4(O),p=await m.request({method:"personal_sign",params:[D4(h),E]})}try{const{data:g,error:y}=await ue(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 Fo;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(se(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(yt())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 ue(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:p,signature:ro(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 Fo;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(se(y))return this._returnResult({data:{user:null,session:null},error:y});throw y}}async _exchangeCodeForSession(t){const n=await Wr(this.storage,`${this.storageKey}-code-verifier`),[r,o]=(n??"").split("/");try{if(!r&&this.flowType==="pkce")throw new s4;const{data:s,error:i}=await ue(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:pn});if(await mt(this.storage,`${this.storageKey}-code-verifier`),i)throw i;if(!s||!s.session||!s.user){const a=new Fo;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 mt(this.storage,`${this.storageKey}-code-verifier`),se(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 ue(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 Fo;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(se(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 Ho(this.storage,this.storageKey));const{error:f}=await ue(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 ue(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 Ha("You must provide either an email or phone number.")}catch(a){if(await mt(this.storage,`${this.storageKey}-code-verifier`),se(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 ue(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(se(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 Ho(this.storage,this.storageKey));const u=await ue(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:$4});return!((s=u.data)===null||s===void 0)&&s.url&&yt()&&!(!((i=t.options)===null||i===void 0)&&i.skipBrowserRedirect)&&window.location.assign(u.data.url),this._returnResult(u)}catch(a){if(await mt(this.storage,`${this.storageKey}-code-verifier`),se(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 Xt;const{error:o}=await ue(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(se(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 ue(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 ue(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 Ha("You must provide either an email or phone number and a type")}catch(n){if(se(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 Wr(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()<ju:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const i=await Wr(this.userStorage,this.storageKey+"-user");i?.user?t.user=i.user:t.user=Bu()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const i={value:this.suppressGetSessionWarning};t.user=x4(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 ue(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:Tr}):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 Xt}:await ue(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:Tr})})}catch(n){if(se(n))return Mu(n)&&(await this._removeSession(),await mt(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 Xt;const i=o.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await Ho(this.storage,this.storageKey));const{data:u,error:c}=await ue(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:Tr});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 mt(this.storage,`${this.storageKey}-code-verifier`),se(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 Xt;const n=Date.now()/1e3;let r=n,o=!0,s=null;const{payload:i}=za(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(se(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 Xt;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(se(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async _getSessionFromURL(t,n){try{if(!yt())throw new Wa("No browser detected.");if(t.error||t.error_description||t.error_code)throw new Wa(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 vy("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Wa("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 vy("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 Wa("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<=Qo&&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(se(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 Wr(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&&!Mu(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&&!(r4(a)&&(a.status===404||a.status===401||a.status===403)||Mu(a)))return this._returnResult({error:a})}return t!=="others"&&(await this._removeSession(),await mt(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const n=d4(),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 Ho(this.storage,this.storageKey,!0));try{return await ue(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 mt(this.storage,`${this.storageKey}-code-verifier`),se(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(se(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 ue(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 yt()&&!(!((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(se(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 ue(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 Fo}):(d.session&&(await this._saveSession(d.session),await this._notifyAllSubscribers("USER_UPDATED",d.session)),this._returnResult({data:d,error:h}))}catch(o){if(await mt(this.storage,`${this.storageKey}-code-verifier`),se(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 ue(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(se(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 m4(async o=>(o>0&&await g4(200*Math.pow(2,o-1)),this._debug(n,"refreshing attempt",o),await ue(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&&Du(s)&&Date.now()+i-r<Qo})}catch(r){if(this._debug(n,"error",r),se(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),yt()&&!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 Wr(this.storage,this.storageKey);if(o&&this.userStorage){let i=await Wr(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!i&&(i={user:o.user},await Zo(this.userStorage,this.storageKey+"-user",i)),o.user=(t=i?.user)!==null&&t!==void 0?t:Bu()}else if(o&&!o.user&&!o.user){const i=await Wr(this.storage,this.storageKey+"-user");i&&i?.user?(o.user=i.user,await mt(this.storage,this.storageKey+"-user"),await Zo(this.storage,this.storageKey,o)):o.user=Bu()}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()<ju;if(this._debug(r,`session has${s?"":" not"} expired with margin of ${ju}s`),s){if(this.autoRefreshToken&&o.refresh_token){const{error:i}=await this._callRefreshToken(o.refresh_token);i&&(console.error(i),Du(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 Xt;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const o=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(o,"begin");try{this.refreshingDeferred=new Mc;const{data:s,error:i}=await this._refreshAccessToken(t);if(i)throw i;if(!s.session)throw new Xt;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),se(s)){const i={data:null,error:s};return Du(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 mt(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 Zo(this.userStorage,this.storageKey+"-user",{user:n.user});const o=Object.assign({},n);delete o.user;const s=Cy(o);await Zo(this.storage,this.storageKey,s)}else{const o=Cy(n);await Zo(this.storage,this.storageKey,o)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await mt(this.storage,this.storageKey),await mt(this.storage,this.storageKey+"-code-verifier"),await mt(this.storage,this.storageKey+"-user"),this.userStorage&&await mt(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&yt()&&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(),Qo);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)/Qo);this._debug("#_autoRefreshTokenTick()",`access token expires in ${o} ticks, a tick lasts ${Qo}ms, refresh threshold is ${id} ticks`),o<=id&&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 DS)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!yt()||!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 Ho(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 ue(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(se(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 ue(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(se(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"?q4(t.webauthn.credential_response):G4(t.webauthn.credential_response)})}:{code:t.code}),{data:a,error:l}=await ue(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(se(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 ue(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:z4(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:V4(a.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(n){if(se(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}=za(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(se(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}=za(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 ue(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 Xt})})}catch(n){if(se(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 Xt});const i=await ue(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&&yt()&&!n?.skipBrowserRedirect&&window.location.assign(i.data.redirect_url),i})}catch(r){if(se(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 Xt});const i=await ue(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&&yt()&&!n?.skipBrowserRedirect&&window.location.assign(i.data.redirect_url),i})}catch(r){if(se(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 ue(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 Xt})})}catch(t){if(se(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 ue(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 Xt})})}catch(n){if(se(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+t4>o)return r;const{data:s,error:i}=await ue(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}}=za(r);n?.allowExpired||C4(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=E4(o.alg),f=await crypto.subtle.importKey("jwk",u,c,!0,["verify"]);if(!await crypto.subtle.verify(c,f,i,u4(`${a}.${l}`)))throw new cd("Invalid JWT signature");return{data:{claims:s,header:o,signature:i},error:null}}catch(r){if(se(r))return this._returnResult({data:null,error:r});throw r}}}Xi.nextInstanceID={};const nF=Xi,rF="2.93.3";let ai="";typeof Deno<"u"?ai="deno":typeof document<"u"?ai="web":typeof navigator<"u"&&navigator.product==="ReactNative"?ai="react-native":ai="node";const oF={"X-Client-Info":`supabase-js-${ai}/${rF}`},sF={headers:oF},iF={schema:"public"},aF={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},lF={};function Qi(e){"@babel/helpers - typeof";return Qi=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},Qi(e)}function cF(e,t){if(Qi(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uF(e){var t=cF(e,"string");return Qi(t)=="symbol"?t:t+""}function fF(e,t,n){return(t=uF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $y(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?$y(Object(n),!0).forEach(function(r){fF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$y(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const dF=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),hF=()=>Headers,pF=(e,t,n)=>{const r=dF(n),o=hF();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 gF(e){return e.endsWith("/")?e:e+"/"}function mF(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 yF(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(gF(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var vF=class extends nF{constructor(e){super(e)}},bF=class{constructor(e,t,n){var r,o;this.supabaseUrl=e,this.supabaseKey=t;const s=yF(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:iF,realtime:lF,auth:Ve(Ve({},aF),{},{storageKey:i}),global:sF},l=mF(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=pF(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 rU(new URL("rest/v1",s).href,{headers:this.headers,schema:l.db.schema,fetch:this.fetch}),this.storage=new YU(this.storageUrl.href,this.headers,this.fetch,n?.storage),l.accessToken||this._listenForAuthEvents()}get functions(){return new QB(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 vF({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 _U(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 _F=(e,t,n)=>new bF(e,t,n);function wF(){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}wF()&&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 FS(e,t){return function(){return e.apply(t,arguments)}}const{toString:SF}=Object.prototype,{getPrototypeOf:Mh}=Object,{iterator:Dc,toStringTag:HS}=Symbol,Bc=(e=>t=>{const n=SF.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),xn=e=>(e=e.toLowerCase(),t=>Bc(t)===e),Uc=e=>t=>typeof t===e,{isArray:Vs}=Array,Rs=Uc("undefined");function ha(e){return e!==null&&!Rs(e)&&e.constructor!==null&&!Rs(e.constructor)&&Ht(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const WS=xn("ArrayBuffer");function CF(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&WS(e.buffer),t}const EF=Uc("string"),Ht=Uc("function"),zS=Uc("number"),pa=e=>e!==null&&typeof e=="object",TF=e=>e===!0||e===!1,hl=e=>{if(Bc(e)!=="object")return!1;const t=Mh(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(HS in e)&&!(Dc in e)},xF=e=>{if(!pa(e)||ha(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},AF=xn("Date"),OF=xn("File"),PF=xn("Blob"),$F=xn("FileList"),RF=e=>pa(e)&&Ht(e.pipe),kF=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ht(e.append)&&((t=Bc(e))==="formdata"||t==="object"&&Ht(e.toString)&&e.toString()==="[object FormData]"))},IF=xn("URLSearchParams"),[NF,LF,jF,MF]=["ReadableStream","Request","Response","Headers"].map(xn),DF=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ga(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Vs(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(ha(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 VS(e,t){if(ha(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 oo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,qS=e=>!Rs(e)&&e!==oo;function ud(){const{caseless:e,skipUndefined:t}=qS(this)&&this||{},n={},r=(o,s)=>{const i=e&&VS(n,s)||s;hl(n[i])&&hl(o)?n[i]=ud(n[i],o):hl(o)?n[i]=ud({},o):Vs(o)?n[i]=o.slice():(!t||!Rs(o))&&(n[i]=o)};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&ga(arguments[o],r);return n}const BF=(e,t,n,{allOwnKeys:r}={})=>(ga(t,(o,s)=>{n&&Ht(o)?Object.defineProperty(e,s,{value:FS(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,s,{value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),UF=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),FF=(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)},HF=(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&&Mh(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},WF=(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},zF=e=>{if(!e)return null;if(Vs(e))return e;let t=e.length;if(!zS(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},VF=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Mh(Uint8Array)),qF=(e,t)=>{const r=(e&&e[Dc]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},GF=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},KF=xn("HTMLFormElement"),JF=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Ry=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),YF=xn("RegExp"),GS=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ga(n,(o,s)=>{let i;(i=t(o,s,e))!==!1&&(r[s]=i||o)}),Object.defineProperties(e,r)},XF=e=>{GS(e,(t,n)=>{if(Ht(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ht(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+"'")})}})},QF=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return Vs(e)?r(e):r(String(e).split(t)),n},ZF=()=>{},e6=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function t6(e){return!!(e&&Ht(e.append)&&e[HS]==="FormData"&&e[Dc])}const n6=e=>{const t=new Array(10),n=(r,o)=>{if(pa(r)){if(t.indexOf(r)>=0)return;if(ha(r))return r;if(!("toJSON"in r)){t[o]=r;const s=Vs(r)?[]:{};return ga(r,(i,a)=>{const l=n(i,o+1);!Rs(l)&&(s[a]=l)}),t[o]=void 0,s}}return r};return n(e,0)},r6=xn("AsyncFunction"),o6=e=>e&&(pa(e)||Ht(e))&&Ht(e.then)&&Ht(e.catch),KS=((e,t)=>e?setImmediate:t?((n,r)=>(oo.addEventListener("message",({source:o,data:s})=>{o===oo&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),oo.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ht(oo.postMessage)),s6=typeof queueMicrotask<"u"?queueMicrotask.bind(oo):typeof process<"u"&&process.nextTick||KS,i6=e=>e!=null&&Ht(e[Dc]),M={isArray:Vs,isArrayBuffer:WS,isBuffer:ha,isFormData:kF,isArrayBufferView:CF,isString:EF,isNumber:zS,isBoolean:TF,isObject:pa,isPlainObject:hl,isEmptyObject:xF,isReadableStream:NF,isRequest:LF,isResponse:jF,isHeaders:MF,isUndefined:Rs,isDate:AF,isFile:OF,isBlob:PF,isRegExp:YF,isFunction:Ht,isStream:RF,isURLSearchParams:IF,isTypedArray:VF,isFileList:$F,forEach:ga,merge:ud,extend:BF,trim:DF,stripBOM:UF,inherits:FF,toFlatObject:HF,kindOf:Bc,kindOfTest:xn,endsWith:WF,toArray:zF,forEachEntry:qF,matchAll:GF,isHTMLForm:KF,hasOwnProperty:Ry,hasOwnProp:Ry,reduceDescriptors:GS,freezeMethods:XF,toObjectSet:QF,toCamelCase:JF,noop:ZF,toFiniteNumber:e6,findKey:VS,global:oo,isContextDefined:qS,isSpecCompliantForm:t6,toJSONObject:n6,isAsyncFn:r6,isThenable:o6,setImmediate:KS,asap:s6,isIterable:i6};let he=class JS extends Error{static from(t,n,r,o,s,i){const a=new JS(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}}};he.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";he.ERR_BAD_OPTION="ERR_BAD_OPTION";he.ECONNABORTED="ECONNABORTED";he.ETIMEDOUT="ETIMEDOUT";he.ERR_NETWORK="ERR_NETWORK";he.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";he.ERR_DEPRECATED="ERR_DEPRECATED";he.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";he.ERR_BAD_REQUEST="ERR_BAD_REQUEST";he.ERR_CANCELED="ERR_CANCELED";he.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";he.ERR_INVALID_URL="ERR_INVALID_URL";const a6=null;function fd(e){return M.isPlainObject(e)||M.isArray(e)}function YS(e){return M.endsWith(e,"[]")?e.slice(0,-2):e}function ky(e,t,n){return e?e.concat(t).map(function(o,s){return o=YS(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function l6(e){return M.isArray(e)&&!e.some(fd)}const c6=M.toFlatObject(M,{},null,function(t){return/^is[A-Z]/.test(t)});function Fc(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 he("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)&&l6(p)||(M.isFileList(p)||M.endsWith(g,"[]"))&&(b=M.toArray(p)))return g=YS(g),b.forEach(function(m,_){!(M.isUndefined(m)||m===null)&&t.append(i===!0?ky([g],_,s):i===null?g:g+"[]",u(m))}),!1}return fd(p)?!0:(t.append(ky(y,g,s),u(p)),!1)}const f=[],d=Object.assign(c6,{defaultVisitor:c,convertValue:u,isVisitable:fd});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 Iy(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Dh(e,t){this._pairs=[],e&&Fc(e,this,t)}const XS=Dh.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,Iy)}:Iy;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function u6(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function QS(e,t,n){if(!t)return e;const r=n&&n.encode||u6,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 Dh(t,o).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Ny{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 ZS={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},f6=typeof URLSearchParams<"u"?URLSearchParams:Dh,d6=typeof FormData<"u"?FormData:null,h6=typeof Blob<"u"?Blob:null,p6={isBrowser:!0,classes:{URLSearchParams:f6,FormData:d6,Blob:h6},protocols:["http","https","file","blob","url","data"]},Bh=typeof window<"u"&&typeof document<"u",dd=typeof navigator=="object"&&navigator||void 0,g6=Bh&&(!dd||["ReactNative","NativeScript","NS"].indexOf(dd.product)<0),m6=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",y6=Bh&&window.location.href||"http://localhost",v6=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Bh,hasStandardBrowserEnv:g6,hasStandardBrowserWebWorkerEnv:m6,navigator:dd,origin:y6},Symbol.toStringTag,{value:"Module"})),At={...v6,...p6};function b6(e,t){return Fc(e,new At.classes.URLSearchParams,{visitor:function(n,r,o,s){return At.isNode&&M.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function _6(e){return M.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function w6(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 eC(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]=w6(o[i])),!a)}if(M.isFormData(e)&&M.isFunction(e.entries)){const n={};return M.forEachEntry(e,(r,o)=>{t(_6(r),o,n,0)}),n}return null}function S6(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 ma={transitional:ZS,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(eC(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 b6(t,this.formSerializer).toString();if((a=M.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Fc(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),S6(t)):t}],transformResponse:[function(t){const n=this.transitional||ma.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"?he.from(a,he.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:At.classes.FormData,Blob:At.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=>{ma.headers[e]={}});const C6=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"]),E6=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]&&C6[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ly=Symbol("internals");function ri(e){return e&&String(e).trim().toLowerCase()}function pl(e){return e===!1||e==null?e:M.isArray(e)?e.map(pl):String(e)}function T6(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 x6=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Fu(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 A6(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function O6(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 Wt=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(a,l,u){const c=ri(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]=pl(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())&&!x6(t))i(E6(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=ri(t),t){const r=M.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return T6(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=ri(t),t){const r=M.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Fu(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(i){if(i=ri(i),i){const a=M.findKey(r,i);a&&(!n||Fu(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||Fu(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]=pl(o),delete n[s];return}const a=t?A6(s):String(s).trim();a!==s&&delete n[s],n[a]=pl(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[Ly]=this[Ly]={accessors:{}}).accessors,o=this.prototype;function s(i){const a=ri(i);r[a]||(O6(o,i),r[a]=!0)}return M.isArray(t)?t.forEach(s):s(t),this}};Wt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);M.reduceDescriptors(Wt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});M.freezeMethods(Wt);function Hu(e,t){const n=this||ma,r=t||n,o=Wt.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 tC(e){return!!(e&&e.__CANCEL__)}let ya=class extends he{constructor(t,n,r){super(t??"canceled",he.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function nC(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new he("Request failed with status code "+n.status,[he.ERR_BAD_REQUEST,he.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function P6(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function $6(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 R6(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 Xl=(e,t,n=3)=>{let r=0;const o=$6(50,250);return R6(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)},jy=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},My=e=>(...t)=>M.asap(()=>e(...t)),k6=At.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,At.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(At.origin),At.navigator&&/(msie|trident)/i.test(At.navigator.userAgent)):()=>!0,I6=At.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 N6(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function L6(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function rC(e,t,n){let r=!N6(t);return e&&(r||n==!1)?L6(e,t):t}const Dy=e=>e instanceof Wt?{...e}:e;function Eo(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(Dy(u),Dy(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 oC=e=>{const t=Eo({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:a}=t;if(t.headers=i=Wt.from(i),t.url=QS(rC(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(At.hasStandardBrowserEnv||At.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(At.hasStandardBrowserEnv&&(r&&M.isFunction(r)&&(r=r(t)),r||r!==!1&&k6(t.url))){const l=o&&s&&I6.read(s);l&&i.set(o,l)}return t},j6=typeof XMLHttpRequest<"u",M6=j6&&function(e){return new Promise(function(n,r){const o=oC(e);let s=o.data;const i=Wt.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=Wt.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};nC(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 he("Request aborted",he.ECONNABORTED,e,y)),y=null)},y.onerror=function(_){const S=_&&_.message?_.message:"Network Error",E=new he(S,he.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||ZS;o.timeoutErrorMessage&&(_=o.timeoutErrorMessage),r(new he(_,S.clarifyTimeoutError?he.ETIMEDOUT:he.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]=Xl(u,!0),y.addEventListener("progress",d)),l&&y.upload&&([f,h]=Xl(l),y.upload.addEventListener("progress",f),y.upload.addEventListener("loadend",h)),(o.cancelToken||o.signal)&&(c=m=>{y&&(r(!m||m.type?new ya(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=P6(o.url);if(v&&At.protocols.indexOf(v)===-1){r(new he("Unsupported protocol "+v+":",he.ERR_BAD_REQUEST,e));return}y.send(s||null)})},D6=(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 he?c:new ya(c instanceof Error?c.message:c))}};let i=t&&setTimeout(()=>{i=null,s(new he(`timeout of ${t}ms exceeded`,he.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}},B6=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},U6=async function*(e,t){for await(const n of F6(e))yield*B6(n,t)},F6=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()}},By=(e,t,n,r)=>{const o=U6(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})},Uy=64*1024,{isFunction:Va}=M,H6=(({Request:e,Response:t})=>({Request:e,Response:t}))(M.global),{ReadableStream:Fy,TextEncoder:Hy}=M.global,Wy=(e,...t)=>{try{return!!e(...t)}catch{return!1}},W6=e=>{e=M.merge.call({skipUndefined:!0},H6,e);const{fetch:t,Request:n,Response:r}=e,o=t?Va(t):typeof fetch=="function",s=Va(n),i=Va(r);if(!o)return!1;const a=o&&Va(Fy),l=o&&(typeof Hy=="function"?(p=>g=>p.encode(g))(new Hy):async p=>new Uint8Array(await new n(p).arrayBuffer())),u=s&&a&&Wy(()=>{let p=!1;const g=new n(At.origin,{body:new Fy,method:"POST",get duplex(){return p=!0,"half"}}).headers.has("Content-Type");return p&&!g}),c=i&&a&&Wy(()=>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 he(`Response type '${p}' is not supported`,he.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(At.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:O,withCredentials:A="same-origin",fetchOptions:j}=oC(p),N=t||fetch;w=w?(w+"").toLowerCase():"text";let k=D6([v,m&&m.toAbortSignal()],_),F=null;const K=k&&k.unsubscribe&&(()=>{k.unsubscribe()});let R;try{if(E&&u&&y!=="get"&&y!=="head"&&(R=await h(O,b))!==0){let le=new n(g,{method:"POST",body:b,duplex:"half"}),we;if(M.isFormData(b)&&(we=le.headers.get("content-type"))&&O.setContentType(we),le.body){const[Xe,pt]=jy(R,Xl(My(E)));b=By(le.body,Uy,Xe,pt)}}M.isString(A)||(A=A?"include":"omit");const I=s&&"credentials"in n.prototype,W={...j,signal:k,method:y.toUpperCase(),headers:O.normalize().toJSON(),body:b,duplex:"half",credentials:I?A:void 0};F=s&&new n(g,W);let H=await(s?N(F,j):N(g,W));const Q=c&&(w==="stream"||w==="response");if(c&&(S||Q&&K)){const le={};["status","statusText","headers"].forEach(Ue=>{le[Ue]=H[Ue]});const we=M.toFiniteNumber(H.headers.get("content-length")),[Xe,pt]=S&&jy(we,Xl(My(S),!0))||[];H=new r(By(H.body,Uy,Xe,()=>{pt&&pt(),K&&K()}),le)}w=w||"text";let ge=await f[M.findKey(f,w)||"text"](H,p);return!Q&&K&&K(),await new Promise((le,we)=>{nC(le,we,{data:ge,headers:Wt.from(H.headers),status:H.status,statusText:H.statusText,config:p,request:F})})}catch(I){throw K&&K(),I&&I.name==="TypeError"&&/Load failed|fetch/i.test(I.message)?Object.assign(new he("Network Error",he.ERR_NETWORK,p,F),{cause:I.cause||I}):he.from(I,I&&I.code,p,F)}}},z6=new Map,sC=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=z6;for(;a--;)l=s[a],u=c.get(l),u===void 0&&c.set(l,u=a?new Map:W6(t)),c=u;return u};sC();const Uh={http:a6,xhr:M6,fetch:{get:sC}};M.forEach(Uh,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const zy=e=>`- ${e}`,V6=e=>M.isFunction(e)||e===null||e===!1;function q6(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,!V6(r)&&(o=Uh[(a=String(r)).toLowerCase()],o===void 0))throw new he(`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(zy).join(`
|
||
`):" "+zy(i[0]):"as no adapter specified";throw new he("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o}const iC={getAdapter:q6,adapters:Uh};function Wu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ya(null,e)}function Vy(e){return Wu(e),e.headers=Wt.from(e.headers),e.data=Hu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),iC.getAdapter(e.adapter||ma.adapter,e)(e).then(function(r){return Wu(e),r.data=Hu.call(e,e.transformResponse,r),r.headers=Wt.from(r.headers),r},function(r){return tC(r)||(Wu(e),r&&r.response&&(r.response.data=Hu.call(e,e.transformResponse,r.response),r.response.headers=Wt.from(r.response.headers))),Promise.reject(r)})}const aC="1.13.4",Hc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Hc[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const qy={};Hc.transitional=function(t,n,r){function o(s,i){return"[Axios v"+aC+"] Transitional option '"+s+"'"+i+(r?". "+r:"")}return(s,i,a)=>{if(t===!1)throw new he(o(i," has been removed"+(n?" in "+n:"")),he.ERR_DEPRECATED);return n&&!qy[i]&&(qy[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}};Hc.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function G6(e,t,n){if(typeof e!="object")throw new he("options must be an object",he.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 he("option "+s+" must be "+l,he.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new he("Unknown option "+s,he.ERR_BAD_OPTION)}}const gl={assertOptions:G6,validators:Hc},On=gl.validators;let go=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Ny,response:new Ny}}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=Eo(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&gl.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}:gl.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),gl.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=Wt.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=[Vy.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=Vy.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=Eo(this.defaults,t);const n=rC(t.baseURL,t.url,t.allowAbsoluteUrls);return QS(n,t.params,t.paramsSerializer)}};M.forEach(["delete","get","head","options"],function(t){go.prototype[t]=function(n,r){return this.request(Eo(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(Eo(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}go.prototype[t]=n(),go.prototype[t+"Form"]=n(!0)});let K6=class lC{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 ya(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 lC(function(o){t=o}),cancel:t}}};function J6(e){return function(n){return e.apply(null,n)}}function Y6(e){return M.isObject(e)&&e.isAxiosError===!0}const hd={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(hd).forEach(([e,t])=>{hd[t]=e});function cC(e){const t=new go(e),n=FS(go.prototype.request,t);return M.extend(n,go.prototype,t,{allOwnKeys:!0}),M.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return cC(Eo(e,o))},n}const He=cC(ma);He.Axios=go;He.CanceledError=ya;He.CancelToken=K6;He.isCancel=tC;He.VERSION=aC;He.toFormData=Fc;He.AxiosError=he;He.Cancel=He.CanceledError;He.all=function(t){return Promise.all(t)};He.spread=J6;He.isAxiosError=Y6;He.mergeConfig=Eo;He.AxiosHeaders=Wt;He.formToJSON=e=>eC(M.isHTMLForm(e)?new FormData(e):e);He.getAdapter=iC.getAdapter;He.HttpStatusCode=hd;He.default=He;const{Axios:$3,AxiosError:R3,CanceledError:k3,isCancel:I3,CancelToken:N3,VERSION:L3,all:j3,Cancel:M3,isAxiosError:D3,spread:B3,toFormData:U3,AxiosHeaders:F3,HttpStatusCode:H3,formToJSON:W3,getAdapter:z3,mergeConfig:V3}=He,X6={};var Q6={};function Z6(){const e=globalThis.__BASE_URL__,t=X6?.NUXT_PUBLIC_NODE_BASE_URL||Q6.NUXT_PUBLIC_NODE_BASE_URL||"";return e??t}function eH(e){return e?e.startsWith("/")?e:`/${e}`:"/"}const Qt=He.create({headers:{"Content-Type":"application/json",Accept:"application/json"}});Qt.interceptors.request.use(e=>{const t=Z6();t?e.baseURL=t:console.warn("[axios] BASE_URL is empty; request may fail"),e.url&&(e.url=eH(e.url));const n=zc();return n&&e.headers&&(e.headers.Authorization=`Bearer ${n}`),e},e=>Promise.reject(e));Qt.interceptors.response.use(e=>e.data,e=>{const t=e?.response,n=e?.config??{},r=t?.data;if(r?.code&&tH(r,n),t&&t.status===401)try{zc()&&(pC(),window.location.assign("/auth/login"))}catch{}return Promise.reject(e)});function tH(e,t){const n=We(t,"meta.errorMessage","message");if(n==="none")return;(o=>{xt.error(o)})(e?.message??"خطای نامشخص")}const Ce={post(e,t,n){return Qt.post(e,t,n)},request(e){return Qt.request(e)},get(e,t){return Qt.get(e,t)},delete(e,t){return Qt.delete(e,t)},head(e,t){return Qt.head(e,t)},options(e,t){return Qt.options(e,t)},put(e,t,n){return Qt.put(e,t,n)},patch(e,t,n){return Qt.patch(e,t,n)},postForm(e,t,n){return Qt.postForm(e,t,n)},putForm(e,t,n){return Qt.putForm(e,t,n)},patchForm(e,t,n){return Qt.patchForm(e,t,n)}},nH=async()=>await Ce.get("/auth/me"),q3=async(e,t)=>await Ce.post("/auth/login",{email:e,password:t}),G3=async(e,t="login")=>await Ce.post("/auth/generate-otp",{phone:e,type:t}),K3=async(e,t)=>await Ce.post("/auth/verify-otp",{phone:e,otp:t}),rH=async e=>await Ce.post("/auth/set-password",{password:e}),J3=async(e,t,n)=>await Ce.post("/auth/forget-password",{phone:e,otp:t,new_password:n}),Y3=async e=>await Ce.post("/auth/set-birthday",{birthday:e}),X3=async(e,t)=>await Ce.post("/auth/set-names",{first_name:e,last_name:t}),Gy=async e=>ot.fetch("users","update",{data:e,field:"id",value:e.id??""}),oH=async e=>ot.updateUserDetails(e?.email??void 0,void 0,e?.password??void 0,!1),Q3=async e=>{try{delete e?.email;const t=await oH(e);delete e?.password,await Gy(e)}catch(t){t.message==="New password should be different from the old password."&&(delete e?.password,await Gy(e))}},Z3=async e=>{await Ce.post("auth/add-customer",e)},uC={};var fC={};function zu(){const e=globalThis.__APP_NAME_FA__,t=uC?.NUXT_PUBLIC_APP_NAME_FA||fC.NUXT_PUBLIC_NODE_BASE_URL||"";return e??t}function Vu(){const e=globalThis.__APP_NAME_EN__,t=uC?.NUXT_PUBLIC_APP_NAME_FA||fC.NUXT_PUBLIC_NODE_BASE_URL||"";return e??t}const Ky=e=>({helloworld:{fa:"سلام دنیا",en:"hello word"},montech:{fa:"منتک",en:"Montech"},version:{fa:"نسخه",en:"Version"},appUpdating:{fa:"در حال بهروزرسانی...",en:"Updating..."},download:{fa:"دانلود",en:"Download"},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:`با شرایط و سیاست های ${zu()} موافقت کنید`,en:`Agree to ${Vu()}'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:`با ضربه زدن روی موافقم، با ایجاد یک حساب کاربری و شرایط ${zu()}، خط مشی رازداری و خط مشی کوکی ها موافقت می کنید. خطمشی رازداری روشهایی را توضیح میدهد که ما میتوانیم از اطلاعاتی که هنگام ایجاد حساب جمعآوری میکنیم استفاده کنیم. به عنوان مثال، ما از این اطلاعات برای ارائه، شخصی سازی و بهبود محصولات خود از جمله تبلیغات استفاده می کنیم.`,en:` By tapping I agree, you agree to create an account and to ${Vu()}'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"},messages:{fa:"پیام ها",en:"Messages"},FaName:{fa:"نام فارسی",en:"Fa name"},home:{fa:"خانه",en:"Home"},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"},uploadDescription:{fa:"شما میتوانید یک فایل با حداکثر حجم 50 مگابایت در این قسمت آپلود کنید. اگر میخواهید فایل های بیشتری آپلود انتخاب کنید، لطفا ابتدا آنها را در سرویس های دیگر آپلود کنید و لینک فایل ها را پس از زدن بر روی دکمه لینک جدید، در ورودی های زیر وارد کنید.",en:"You can upload only 50 Mb file. If you want to upload more than one file, please upload them into other services, then click on new link button and input your links."},showInVariants:{fa:"نشان دادن در متغیر ها",en:"Show in variants"},addLink:{fa:"افزودن لینک",en:"add link"},pleaseFillPreviousInput:{fa:"لطفا ورودی قبلی را پر کنید",en:"Please fill previous input"},pleaseInputLink:{fa:"لطفا لینک را وارد کنید",en:"Please input link"},clickForChoosingFile:{fa:"برای انتخاب فابل کلیک کنید",en:"Click for choosing file"},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 "},sellType:{fa:"نوع فروش",en:"Sell type "},downloadableFile:{fa:"فایل دانلودی",en:"Downloadable file"},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"},goldenInventory:{fa:"موجودی طلایی",en:"Golden inventory"},goldenInventoryToRial:{fa:"موجودی طلایی به ریال",en:"Golden inventory to Rial"},rialInventory:{fa:"موجودی ریالی",en:"Rial inventory"},useRialWallet:{fa:"استفاده از کیف پول ریالی",en:"Use Rial wallet"},useGoldWallet:{fa:"استفاده از کیف پول طلایی",en:"Use Gold wallet"},useRialAndGoldWallet:{fa:"استفاده از کیف پول ریالی و طلایی",en:"Use Rial and gold wallet"},wallet:{fa:"کیف پول",en:"Wallet"},withdrawFromRialWallet:{fa:"برداشت از کیف پول ریالی",en:"Withdraw from Rial wallet"},withdrawFromGoldWallet:{fa:"برداشت از کیف پول طلایی",en:"Withdraw from gold wallet"},equivalent:{fa:"معادل",en:"Equivalent"},caption:{fa:"توضیحات",en:"Caption"},gholakWallet:{fa:"کیف پول قلک طلا",en:"GholakTala Wallet"},addToCart:{fa:"افزودن به سبد خرید",en:"Add to cart"},inStock:{fa:"موجود",en:"In stock"},outOfStock:{fa:"ناموجود",en:"Out of Stock"},theAvailableProductIsLessThanTheQuantityYouRequested:{fa:"موجودی محصول از تعداد درخواست شما کمتر است",en:"The available product is less than the quantity you requested."},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"},installPwa:{fa:"نصب وب اپلیکیشن",en:"Install PWA"},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:`چگونگی استفاده از ${zu()}`,en:`How you use ${Vu()}`},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 sH(){return await Ce.post("/config",{})}async function iH(e){const t={"Content-Type":"application/json"},r=sa().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 He.get(r,{headers:t});return o}catch(o){throw console.log("e",o?.response),o}}async function aH(){const e={"Content-Type":"application/json"},n=`${sa().public.subscriptionUrl}-version`;if(!n||typeof n!="string"||!n.startsWith("http"))return Promise.reject(new Error("Configuration Error: Invalid Subscription URL"));window.location.host&&(e["X-Domain"]=window.location.host);try{const{data:r}=await He.get(n,{headers:e});return r}catch(r){throw console.log("e",r?.response),r}}const lH=async(e,t)=>await Ce.post("/notification/subscribe",{subscription:e,userId:t}),cH=async(e,t)=>await Ce.post("/notification/send-public",{title:e,body:t}),uH=async(e,t,n)=>await Ce.post("/notification/send-private",{title:e,body:t,user_id:n}),fH="$s";function ke(...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=fH+n,s=Je(),i=tc(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}function dH(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");const n={},r=t||{},o=r.decode||hH;let s=0;for(;s<e.length;){const i=e.indexOf("=",s);if(i===-1)break;let a=e.indexOf(";",s);if(a===-1)a=e.length;else if(a<i){s=e.lastIndexOf(";",i-1)+1;continue}const l=e.slice(s,i).trim();if(r?.filter&&!r?.filter(l)){s=a+1;continue}if(n[l]===void 0){let u=e.slice(i+1,a).trim();u.codePointAt(0)===34&&(u=u.slice(1,-1)),n[l]=pH(u,o)}s=a+1}return n}function hH(e){return e.includes("%")?decodeURIComponent(e):e}function pH(e,t){try{return t(e)}catch{return e}}const qa=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function Jy(e,t,n){const r=n||{},o=r.encode||encodeURIComponent;if(typeof o!="function")throw new TypeError("option encode is invalid");if(!qa.test(e))throw new TypeError("argument name is invalid");const s=o(t);if(s&&!qa.test(s))throw new TypeError("argument val is invalid");let i=e+"="+s;if(r.maxAge!==void 0&&r.maxAge!==null){const a=r.maxAge-0;if(Number.isNaN(a)||!Number.isFinite(a))throw new TypeError("option maxAge is invalid");i+="; Max-Age="+Math.floor(a)}if(r.domain){if(!qa.test(r.domain))throw new TypeError("option domain is invalid");i+="; Domain="+r.domain}if(r.path){if(!qa.test(r.path))throw new TypeError("option path is invalid");i+="; Path="+r.path}if(r.expires){if(!gH(r.expires)||Number.isNaN(r.expires.valueOf()))throw new TypeError("option expires is invalid");i+="; Expires="+r.expires.toUTCString()}if(r.httpOnly&&(i+="; HttpOnly"),r.secure&&(i+="; Secure"),r.priority)switch(typeof r.priority=="string"?r.priority.toLowerCase():r.priority){case"low":{i+="; Priority=Low";break}case"medium":{i+="; Priority=Medium";break}case"high":{i+="; Priority=High";break}default:throw new TypeError("option priority is invalid")}if(r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:{i+="; SameSite=Strict";break}case"lax":{i+="; SameSite=Lax";break}case"strict":{i+="; SameSite=Strict";break}case"none":{i+="; SameSite=None";break}default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(i+="; Partitioned"),i}function gH(e){return Object.prototype.toString.call(e)==="[object Date]"||e instanceof Date}function Yy(e){return typeof e=="string"?`'${e}'`:new mH().serialize(e)}const mH=(function(){class e{#e=new Map;compare(n,r){const o=typeof n,s=typeof r;return o==="string"&&s==="string"?n.localeCompare(r):o==="number"&&s==="number"?n-r:String.prototype.localeCompare.call(this.serialize(n,!0),this.serialize(r,!0))}serialize(n,r){if(n===null)return"null";switch(typeof n){case"string":return r?n:`'${n}'`;case"bigint":return`${n}n`;case"object":return this.$object(n);case"function":return this.$function(n)}return String(n)}serializeObject(n){const r=Object.prototype.toString.call(n);if(r!=="[object Object]")return this.serializeBuiltInType(r.length<10?`unknown:${r}`:r.slice(8,-1),n);const o=n.constructor,s=o===Object||o===void 0?"":o.name;if(s!==""&&globalThis[s]===o)return this.serializeBuiltInType(s,n);if(typeof n.toJSON=="function"){const i=n.toJSON();return s+(i!==null&&typeof i=="object"?this.$object(i):`(${this.serialize(i)})`)}return this.serializeObjectEntries(s,Object.entries(n))}serializeBuiltInType(n,r){const o=this["$"+n];if(o)return o.call(this,r);if(typeof r?.entries=="function")return this.serializeObjectEntries(n,r.entries());throw new Error(`Cannot serialize ${n}`)}serializeObjectEntries(n,r){const o=Array.from(r).sort((i,a)=>this.compare(i[0],a[0]));let s=`${n}{`;for(let i=0;i<o.length;i++){const[a,l]=o[i];s+=`${this.serialize(a,!0)}:${this.serialize(l)}`,i<o.length-1&&(s+=",")}return s+"}"}$object(n){let r=this.#e.get(n);return r===void 0&&(this.#e.set(n,`#${this.#e.size}`),r=this.serializeObject(n),this.#e.set(n,r)),r}$function(n){const r=Function.prototype.toString.call(n);return r.slice(-15)==="[native code] }"?`${n.name||""}()[native]`:`${n.name}(${n.length})${r.replace(/\s*\n\s*/g,"")}`}$Array(n){let r="[";for(let o=0;o<n.length;o++)r+=this.serialize(n[o]),o<n.length-1&&(r+=",");return r+"]"}$Date(n){try{return`Date(${n.toISOString()})`}catch{return"Date(null)"}}$ArrayBuffer(n){return`ArrayBuffer[${new Uint8Array(n).join(",")}]`}$Set(n){return`Set${this.$Array(Array.from(n).sort((r,o)=>this.compare(r,o)))}`}$Map(n){return this.serializeObjectEntries("Map",n.entries())}}for(const t of["Error","RegExp","URL"])e.prototype["$"+t]=function(n){return`${t}(${n})`};for(const t of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])e.prototype["$"+t]=function(n){return`${t}[${n.join(",")}]`};for(const t of["BigInt64Array","BigUint64Array"])e.prototype["$"+t]=function(n){return`${t}[${n.join("n,")}${n.length>0?"n":""}]`};return e})();function yH(e,t){return e===t||Yy(e)===Yy(t)}function mn(e){if(typeof e!="object")return e;var t,n,r=Object.prototype.toString.call(e);if(r==="[object Object]"){if(e.constructor!==Object&&typeof e.constructor=="function"){n=new e.constructor;for(t in e)e.hasOwnProperty(t)&&n[t]!==e[t]&&(n[t]=mn(e[t]))}else{n={};for(t in e)t==="__proto__"?Object.defineProperty(n,t,{value:mn(e[t]),configurable:!0,enumerable:!0,writable:!0}):n[t]=mn(e[t])}return n}if(r==="[object Array]"){for(t=e.length,n=Array(t);t--;)n[t]=mn(e[t]);return n}return r==="[object Set]"?(n=new Set,e.forEach(function(o){n.add(mn(o))}),n):r==="[object Map]"?(n=new Map,e.forEach(function(o,s){n.set(mn(s),mn(o))}),n):r==="[object Date]"?new Date(+e):r==="[object RegExp]"?(n=new RegExp(e.source,e.flags),n.lastIndex=e.lastIndex,n):r==="[object DataView]"?new e.constructor(mn(e.buffer)):r==="[object ArrayBuffer]"?e.slice(0):r.slice(-6)==="Array]"?new e.constructor(e):e}const vH={path:"/",watch:!0,decode:e=>{const t=decodeURIComponent(e),n=ji(t);return typeof n=="number"&&(!Number.isFinite(n)||String(n)!==t)?t:n},encode:e=>encodeURIComponent(typeof e=="string"?e:JSON.stringify(e))},Ga=globalThis.cookieStore;function qo(e,t){const n={...vH,...t};n.filter??=u=>u===e;const r=Xy(n)||{};let o;n.maxAge!==void 0?o=n.maxAge*1e3:n.expires&&(o=n.expires.getTime()-Date.now());const s=o!==void 0&&o<=0,i=s||r[e]===void 0||r[e]===null,a=mn(s?void 0:r[e]??n.default?.()),l=o&&!s?wH(a,o,n.watch&&n.watch!=="shallow"):Z(a);{let u=null;try{!Ga&&typeof BroadcastChannel<"u"&&(u=new BroadcastChannel(`nuxt:cookies:${e}`))}catch{}const c=(p=!1)=>{!p&&(n.readonly||yH(l.value,r[e]))||(_H(e,l.value,n),r[e]=mn(l.value),u?.postMessage({value:n.encode(l.value)}))},f=p=>{const g=p.refresh?Xy(n)?.[e]:n.decode(p.value);d=!0,l.value=g,r[e]=mn(g),Ot(()=>{d=!1})};let d=!1;const h=!!Is();if(h&&Pi(()=>{d=!0,c(),u?.close()}),Ga){const p=g=>{const y=g.changed.find(v=>v.name===e),b=g.deleted.find(v=>v.name===e);y&&f({value:y.value}),b&&f({value:null})};Ga.addEventListener("change",p),h&&Pi(()=>Ga.removeEventListener("change",p))}else u&&(u.onmessage=({data:p})=>f(p));n.watch&&_e(l,()=>{d||c()},{deep:n.watch!=="shallow"}),i&&c(i)}return l}function Xy(e={}){return dH(document.cookie,e)}function bH(e,t,n={}){return t==null?Jy(e,t,{...n,maxAge:-1}):Jy(e,t,n)}function _H(e,t,n={}){document.cookie=bH(e,t,n)}const Qy=2147483647;function wH(e,t,n){let r,o,s=0;const i=n?Z(e):{value:e};return Is()&&Pi(()=>{o?.(),clearTimeout(r)}),Tv((a,l)=>{n&&(o=_e(i,l));function u(){s=0,clearTimeout(r);const c=t-s,f=c<Qy?c:Qy;r=setTimeout(()=>{if(s+=f,s<t)return u();i.value=void 0,l()},f)}return{get(){return a(),i.value},set(c){u(),i.value=c,l()}}})}const Vt=ia("setting",()=>{const e=Z("fa"),t=Z("light"),n=Z(),r=Z(!1),o=Z(),s=Z(!1),i=Z(!1),a=Z(),l=$(()=>a.value?.config?.find(G=>G.key==="gold_price_id")?.value??0),u=$(()=>a.value?.config?.find(G=>G.key==="silver_price_id")?.value??0),c=ke("app-type",()=>""),f=ke("version",()=>qo("version",{path:"/",maxAge:31536e3,default:()=>""}).value||""),d=ke("storage-url",()=>""),h=ke("storage-upload",()=>""),p=ke("storage-logo",()=>""),g=ke("text-header",()=>""),y=ke("price-header",()=>!1),b=ke("app-has-silver",()=>!1),v=ke("app-has-gold",()=>!1),m=ke("app-has-wallet",()=>!1),_=ke("app-milady-date",()=>!1),S=ke("enamad-url",()=>""),E=ke("enamad-img-src",()=>""),w=ke("enamad-code",()=>""),O=ke("base-url",()=>""),A=ke("supabase-url",()=>""),j=ke("supabase-key",()=>""),N=ke("app-name",()=>({fa:"",en:""})),k=ke("config-loaded",()=>!1),F=ke("app-updating",()=>!1);function K(G){globalThis.__BASE_URL__=G||""}function R(G,C=!1){return d.value?`${d.value}/${G}`:""}function I(G){return p.value?`${p.value}/${G}`:""}function W(G){globalThis.__APP_NAME_FA__=G||""}function H(G){globalThis.__APP_NAME_EN__=G||""}function Q(G){globalThis.__APP_TYPE__=G||""}_e(O,G=>K(G),{immediate:!0});async function ge(){try{a.value=await sH()}catch(G){console.error(G)}Ds&&le()}function le(){let G=localStorage.getItem("config");G?(o.value=JSON.parse(G),e.value=o.value.langMode??"fa",t.value=o.value.themeMode??"light",n.value=ee(a.value?.config[0]?.value??"")):Ue(),oe(),J()}function we(G){G&&(c.value=G.app_type??"",b.value=G.has_silver??!1,v.value=G.has_gold??!1,_.value=G.milady_date??!1,m.value=G.has_wallet??!1,h.value=G.storage_upload??"",d.value=G.storage_url??"",p.value=G.storage_logo??"",g.value=G.text_header??"",y.value=G.price_header??!1,S.value=G.enamad_url??"",E.value=G.enamad_img_src??"",w.value=G.enamad_code??"",O.value=G.node_url??"",N.value.en=G.name_en??"",N.value.fa=G.name_fa??"",A.value=G.supa_url??"",j.value=G.supa_key??"",K(O.value),W(N.value.fa),H(N.value.en),Q(c.value))}async function Xe(G){if(k.value)return;const C=qo("subscribe_config",{path:"/",maxAge:3600*24*7,default:()=>""});try{const T=C.value;if(T&&typeof T=="object")try{if(T&&(T.node_url!=null||T.storage_url!=null||T.app_type!=null))return we(T),await ge(),k.value=!0,T}catch{}const L=await iH(G);console.log("fetch data"),we(L);try{C.value=JSON.stringify(L)}catch{}return await ge(),k.value=!0,L}catch(T){throw console.error("❌ [SSR] Failed to load config:",T),T}}async function pt(){const G=(await aH())?.version??"1.0.0",C=qo("version",{path:"/",maxAge:3600*24*365}),T=f.value||C.value||"";if(T&&G!==T){C.value=G,f.value=G,F.value=!0;const L=qo("subscribe_config",{path:"/"});L.value=null,setTimeout(()=>{window.location.reload()},1200);return}f.value=G,C.value=G}function Ue(){o.value={themeMode:t.value,langMode:e.value};{localStorage.setItem("config",JSON.stringify(o.value));const G=qo("lang",{path:"/",maxAge:3600*24*365});G.value=e.value;const C=qo("theme",{path:"/",maxAge:3600*24*365});C.value=t.value}}function st(G){G!=="fa"&&G!=="en"||(e.value=G,i.value=G==="fa")}function D(G){G!=="light"&&G!=="night"&&G!=="default"||(t.value=G,oe())}function ee(G,...C){switch(e.value){case"fa":return We(Ky(C),`${G}.fa`);case"en":return We(Ky(C),`${G}.en`)}}_e(t,()=>{oe()}),_e(e,()=>{Ue(),J(),n.value=ee("rial")}),_e(mu(),()=>{oe()});function J(){i.value=["fa"].includes(e.value),document.dir=i.value?"rtl":"ltr"}function oe(){switch(t.value){case"default":Gu.value=mu().value,s.value=mu().value;break;case"light":Gu.value=!1,s.value=!1;break;case"night":Gu.value=!0,s.value=!0;break}Ue()}function ve(){r.value=!1}return{getSubscribe:Xe,useString:ee,getConfig:ge,applyLangForSSR:st,applyThemeForSSR:D,lang:e,isNightStore:s,priceUnit:n,isSeller:r,isRTL:i,themeMode:t,reset:ve,sellerConfig:a,APP_TYPE:c,APP_HAS_SILVER:b,APP_HAS_GOLD:v,APP_HAS_WALLET:m,APP_Milady_Date:_,ENAMAD_URL:S,ENAMAD_IMG_SRC:E,ENAMAD_CODE:w,TEXT_HEADER:g,PRICE_HEADER:y,baseURL:O,appName:N,STORAGE_URL:d,STORAGE_UPLOAD:h,STORAGE_LOGO:p,goldPriceId:l,silverPriceId:u,useDataStorage:R,useLogo:I,setConfig:le,checkVersion:pt,VERSION:f,isUpdatingApp:F}});let Ka=null;function Zy(){if(Ka)return Ka;const e=ke("supabase-url").value,t=ke("supabase-key").value;return(!e||!t)&&console.warn("[supabase] Missing SUPABASE_URL/KEY"),Ka=_F(e,t),Ka}const Ze=new Proxy({},{get(e,t,n){const r=Zy();return Reflect.get(r,t,n)},apply(e,t,n){return Zy()?.apply?.(t,n)}}),ot={async fetch(e,t,n={},r,o){try{let s;switch(t){case"select":{let a=Ze.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 Ze.from(e).select(n.columns||"*").in(n.field??"",n.value);break;case"insert":s=await Ze.from(e).insert(n.data).select("*");break;case"update":s=await Ze.from(e).update(n.data).eq(n.field??"",n.value).select(n.columns||"*");break;case"delete":{let i=Ze.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),SH(s.message),s}},async updateUserDetails(e,t,n,r=!1){try{const o=await Ze.auth.updateUser({email:e,phone:t});if(n){const s=await rH(n)}if(o.error)throw o.error;return o.data.user}catch(o){throw console.error("Unexpected error while updating user:",o),r&&es(o.message),o}},async createUser(e){try{return await Ze.auth.admin.createUser(e)}catch(t){throw console.error("Unexpected Error:",t),es(t),t}},async login(e){try{const t=await Ze.auth.signInWithPassword(e);if(t.error)throw t.error;return t.data.user}catch(t){throw console.error("Unexpected Login Error:",t),es(t.message),t}},async deleteUser(e){try{return await Ze.auth.admin.deleteUser(e)}catch(t){throw console.error("Unexpected Login Error:",t),es(t),t}},async signup(e,t){try{const{user:n,session:r,error:o}=await Ze.auth.signUp({email:e,password:t});return o?(console.error("Signup Error:",o.message),es(o.message),null):{user:n,session:r}}catch(n){return console.error("Unexpected Signup Error:",n),null}},async logout(){try{const{error:e}=await Ze.auth.signOut();return e?(console.error("Logout Error:",e.message),!1):!0}catch(e){return console.error("Unexpected Logout Error:",e),!1}},getUser(){return Ze.auth.getUser()},onAuthStateChange(e){Ze.auth.onAuthStateChange(e)}};function es(e){xt.error(e).then(t=>"")}function SH(e){const t=Vt();e==='duplicate key value violates unique constraint "users_phone_key"'&&es(t.useString("phoneIsTakenBefore"))}async function CH(e,t){const n=Vt();Ft.confirm({title:e,icon:P(ua),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 eW(e,t,n,r){const o=Vt();Ft.confirm({title:e,icon:P(ua),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 tW=async e=>await Ce.get(`/users/profile/${e}`),nW=async(e,t=1,n=10,r)=>await Ce.post(`/users/customers/${e}`,{page:t,limit:n,search:r}),rW=async()=>await ot.fetch("user_store_request","select",{columns:`*,
|
||
users(id,name,phone,avatar)`}),EH=async e=>await ot.fetch("user_store_request","select",{field:"user_id",value:e}),oW=async e=>await Ce.post("/set-user-store-request",e),sW=async e=>await Ce.post(`/confirm-user-store-request/${e}`),iW=async e=>await Ce.post(`/cancel-user-store-request/${e}`),TH=async()=>await Ce.get("/gholak/get-user-wallet"),aW=async()=>await ot.fetch("collections_store","select"),lW=async e=>await ot.fetch("users","select",{columns:"*",field:"username",value:e}),cW=async e=>{try{return await Ce.post(`/auth/delete-user/${e}`)}catch(t){console.log(t)}},Wc=ia("price",()=>{const e=Vt(),t=Z([]),n=$(()=>t.value.find(l=>l?.id==e.goldPriceId)?.price),r=$(()=>t.value.find(l=>l?.id==e.silverPriceId)?.price),o=async()=>{const l=await ot.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:()=>{Ze.channel("realtime:prices").on("postgres_changes",{event:"*",schema:"public",table:"prices"},async l=>{(l.eventType==="INSERT"||l.eventType==="UPDATE")&&s(l.new)}).subscribe()},getPriceItemPrice:xH}}),xH=e=>Wc().prices.find(n=>n.id_key===e);function Rn(e,t){const n=ba(),r=Wc(),o=Vt(),s=$(()=>r?.tala18),i=$(()=>r?.silver),a=$(()=>U(e).collection_id===1||U(e).collection_id===2||U(e).collections?.parent_id==1||U(e).collections?.parent_id==2),l=$(()=>We(U(e),"title_fa","")),u=$(()=>We(U(e),"is_exist",""));$(()=>We(U(e),"id",null));const c=$(()=>{let Q=l.value;return U(e).seo_title&&(Q=U(e).seo_title),Q}),f=$(()=>We(U(e),"meta","")),d=$(()=>U(t)?We(U(t),"weight",0):We(U(e),"weight",0)),h=(Q=0)=>{if(U(e).collection_id===1||U(e)?.collections?.parent_id===1)return s.value?(Q*s.value+Q*s.value*(U(e).percent_fee??0)/100+(o.sellerConfig?.store?.has_gold_tax?Q*s.value*(o.sellerConfig?.store?.tax_gold_profit??0)/100:0)+(o.sellerConfig?.store?.has_gold_tax?Q*s.value*(((U(e).percent_fee??0)+(o.sellerConfig?.store?.tax_gold_profit??0))/100)*.09:0)+(U(e).rial_fee??0)).toFixed(0):0;if(U(e)?.collection_id===2||U(e)?.collections?.parent_id===2)return i.value?(Q*i.value+Q*i.value*(U(e).percent_fee??0)/100+(o.sellerConfig?.store?.has_silver_tax?Q*i.value*(o.sellerConfig?.store?.tax_silver_profit??0)/100:0)+(o.sellerConfig?.store?.has_silver_tax?Q*i.value*(((U(e).percent_fee??0)+(o.sellerConfig?.store?.tax_silver_profit??0))/100)*.09:0)+(U(e).rial_fee??0)).toFixed(0):0},p=$(()=>{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=$(()=>b.value?y.value?.toFixed(0):parseInt(String(p.value??"0"))?.toFixed(0)),y=$(()=>{if(U(t))if(U(t)?.auto_calculate&&a.value){const Q=Z(U(t)?.discount_type),ge=Z(U(t)?.system_discount),le=parseInt(h(d.value));switch(Q.value){case"percent":return le-le*(ge.value?.percentage??0)/100;case"simple":return le-ge.value?.amount;default:return le}}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 Q=Z(U(e)?.discount_type),ge=Z(U(e)?.system_discount),le=parseInt(h(d.value));switch(Q.value){case"percent":return le-le*(ge.value.percentage??0)/100;case"simple":return le-ge.value.amount;default:return le}}else if(U(e)?.display_price)return U(e)?.display_price;return 0}),b=$(()=>v.value!==0&&v.value!==null),v=$(()=>U(t)&&U(t)?.discount?U(t)?.discount:We(U(e),"discount","")),m=$(()=>We(U(e),"brand.title","-")),_=$(()=>We(U(e),"type","simple")==="variant"),S=$(()=>We(U(e),"sell_type","numeric")==="box"),E=$(()=>We(U(e),"gallery",[]).map(ge=>We(ge,"file.src"))),w=$(()=>{const Q=We(U(e),"body","");return Q||""}),O=$(()=>o.useDataStorage(We(U(e),"files[0].url",null))),A=$(()=>We(U(e),"collection.title","-")),j=$(()=>We(U(e),"count","-")),N=$(()=>We(U(e),"variants",[])),k=$(()=>We(U(e),"product_attributes",[])),F=$(()=>We(U(e),"description","-")),K=$(()=>{const Q=[];return N.value?.forEach(le=>le.variant_attribute_values?.forEach(we=>{Q.includes(we.attribute_values.id)||Q.push(we.attribute_values.id)})),(k?.value.filter(le=>le.use_in_variant)??[]).map(le=>({attribute_id:le.attribute_id,attribute:le.attributes,attribute_values_arr:le.attribute_values_arr?.filter(we=>Q.includes(we.id)),attribute_values:le.attribute_values?.filter(we=>Q.includes(we)),use_in_product_page:le.use_in_product_page}))}),R=$({set(Q){n.addToCart(U(e),Q,t)},get(){let Q;return U(t)?Q=n.list.findIndex(ge=>ge.product.id==U(e).id&&ge.variant?.id===U(t).id):Q=n.list.findIndex(ge=>ge.product.id==U(e).id),Q>-1?n.list[Q].qty:0}}),I=$(()=>g.value<p.value),W=$(()=>{if(I.value){const Q=p.value-g.value;return Math.floor(Q/(p.value/100))}return 0}),H=$(()=>I.value?p.value-g.value:0);return{title:l,price:g,brand:m,gallery:E,variants:N,body:w,originalImage:O,collection:A,qty:R,priceWithDiscount:y,hasDiscount:b,originalPrice:p,hasProfit:I,displayPrice:y,discountPercent:W,seoTitle:c,seoMeta:f,attributes:k,isVariant:_,description:F,attributesUsedInVariants:K,count:j,profit:H,discount:v,isBox:S,weight:d,isExist:u}}const uW=async(e=1,t=10)=>await Ce.post("/products/table",{page:e,limit:t}),fW=async e=>await Ce.post("/products",e),dW=async(e,t)=>await Ce.put(`/products/${t}`,e),hW=async e=>await Ce.get(`/products/${e}`),AH=async e=>await Ce.post("/products/by-ids",{ids:e}),pW=async e=>await ot.fetch("products","insert",{data:e}),gW=async e=>await ot.fetch("products","delete",{field:"id",value:e}),mW=async e=>await ot.fetch("media","delete",{field:"id",value:e}),yW=async()=>ot.fetch("discounts","select",{columns:"*"}),vW=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 ot.fetch("discounts","insert",{data:t});if(n&&n.length>0){const r=n[0].id;await dC(r,e)}return n},bW=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 ot.fetch("discounts","update",{data:n,field:"id",value:e});return await ot.fetch("discount_items","delete",{field:"discount_id",value:e}),await dC(e,t),r},_W=async e=>await ot.fetch("discount_items","select",{field:"discount_id",value:e}),wW=async e=>(await ot.fetch("discount_items","delete",{field:"discount_id",value:e}),await ot.fetch("discounts","delete",{field:"id",value:e})),OH=async e=>await Ce.post("/discount/code",{code:e}),dC=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 ot.fetch("discount_items","insert",{data:n})},SW=async e=>await Ce.get(`/order/${e}`),CW=async(e=1,t=10)=>await Ce.post("/order/get-orders",{page:e,limit:t}),EW=async(e,t=1,n=10)=>await Ce.post(`/order/get-user-orders/${e}`,{page:t,limit:n}),TW=async(e=1,t=10)=>await Ce.post("/order/get-store-orders",{page:e,limit:t}),PH=async e=>await Ce.post("/order",e),$H=async(e,t)=>await Ce.post(`/order/start-transaction/${e}`,{method:t}),xW=async(e,t)=>await Ce.post(`/order/verify/${e}?${t}`),AW=async(e,t)=>ot.fetch("orders_status","update",{data:t,field:"id",value:e}),OW=async e=>await Ce.post(`/order/change-status/${e.order_id}`,{title:e.title}),qu=Z(0),ev=Z(!1),ml=Z(!1),Zi=Z("rial"),va=()=>Hh(),hC=()=>Vt(),Fh=()=>ba(),RH=()=>Wc(),PW=$(()=>va().wallet?.gold_balance),Ja=$(()=>{const e=va(),t=RH();return(e.wallet?.gold_balance??0)*(t.tala18??0)}),pd=$(()=>va().wallet?.cash_balance),ea=$(()=>{const e=Fh();return["rial","rialWithGold"].includes(Zi.value)?(pd.value??0)>Math.ceil(e.sumCart)?Math.ceil(e.sumCart):pd.value??0:0}),gd=$(()=>{const e=Fh();if(Zi.value==="gold")return(Ja.value??0)>Math.ceil(e.sumCart)?Math.ceil(e.sumCart):Ja.value??0;if(Zi.value==="rialWithGold"){if(ea.value===pd.value){const t=Math.ceil(e.sumCart)-(ea.value??0);return t===0?0:(Ja.value??0)>t?t:Ja.value??0}}else return 0}),kH=$(()=>{const e=ba(),t=Math.ceil(e.sumCart)??0;if(ml.value)switch(Zi.value){case"gold":return t-(gd.value??0);case"rial":return t-(ea.value??0);case"rialWithGold":return t-(ea.value??0)-(gd.value??0)}else return t}),$W=async()=>{const e=Pt(),t=va(),n=hC(),r=Fh();try{if(!t.user){await e.push({name:"auth-login",query:{back:"cart_address"}}),xt.warn(n.useString("pleaseLoginOrRegister"));return}if(qu.value==0){qu.value=1;return}if(!r.methode){xt.error(n.useString("selectGateway"));return}ev.value=!0;const o={address:r.address,address_id:r.address?.id,payment_type:r.methode,note:"",total_discounts:Math.ceil(r.sumDiscount),total_price:kH.value,wallet_type:ml.value?Zi.value:void 0,amount_wallet_gold:ml.value?gd.value:void 0,amount_wallet_cash:ml.value?ea.value:void 0,total_tax:0,sum_gold:r.sumGoldPrice,sum_silver:r.sumSilverPrice,profit:r.sumDiscount,percent_profit:r.sumPercentProfit,code:r.code,items:r.list.map(i=>{const{price:a,qty:l,title:u,profit:c,discountPercent:f}=Rn(i.product);return{title:u.value,note:"",qty:l.value,total_price:Math.ceil(l.value*a.value),variant_id:i.variant?.id??void 0,price:a.value,collection_id:i.product.collection_id,product_id:i.product.id,discount:0,profit:c.value,percent_profit:f.value}})},s=await PH(o);if(r.code="",r.discountCodeDetail=void 0,r.methode!=="home"){const i=await $H(s.id,r.methode);await tv(),i.url&&(window.location.href=i.url)}else await tv(),xt.success(n.useString("orderSubmitted")),await e.replace({name:"cart-id",params:{id:s.id},query:{type:"home"}}),qu.value=2;r.reset()}catch(o){console.error(o),o.response.data.error.includes("stock")&&xt.error(n.useString("theAvailableProductIsLessThanTheQuantityYouRequested"))}finally{ev.value=!1}};async function tv(){const e=va(),t=hC();await e.getUserInfo(),await t.getConfig()}const ba=ia("cart",()=>{const e=Z([]),t=Vt(),n=Z(void 0),r=Z(""),o=Z(),s=Z(!1),i=Z(null);async function a(){if(!r.value){xt.warn(t.useString("pleaseInputDiscountCode"));return}try{Or.value=!0,o.value=(await OH(r.value)).discount,s.value=!1,xt.success(t.useString("discountCodeApplied"))}catch(N){console.error(N),xt.error(N.response?.data?.message||t.useString("invalidDiscountCode"))}finally{Or.value=!1}}function l(){o.value=void 0,r.value="",xt.success(t.useString("discountCodeRemoved"))}function u(N,k,F){if(e.value?.length){const R=e.value[0].product?.owner_id;R?.length&&N.owner_id&&R!==N.owner_id&&(e.value=[])}let K;F?K=e.value.findIndex(R=>R.product.id==N.id&&R.variant.id===F.id):K=e.value.findIndex(R=>R.product.id==N.id),K>-1?k>0?e.value[K].qty=k:e.value.splice(K,1):k>0&&(e.value.push({product:N,qty:k,variant:F}),xt.success(t.useString("productAddedToCart"))),j()}const c=$(()=>{let N=0;return e.value.forEach(k=>{N+=parseInt(k.qty.toString())}),N});$(()=>f.value===0?0:Math.round(d.value/f.value*100));const f=$(()=>{let N=0;return e.value.forEach(k=>{const{price:F}=Rn(k.product,k.variant);N+=F.value*k.qty}),N}),d=$(()=>{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=$(()=>Math.max(0,f.value-d.value)),p=$(()=>{let N=0;return e.value.forEach(k=>{const{originalPrice:F}=Rn(k.product,k.variant);N+=F.value*k.qty}),N}),g=$(()=>{let N=0;return e.value.forEach(k=>{if(k.product.collection_id===2||k.product.collections?.parent_id===2){const{weight:F}=Rn(k.product,k.variant);N+=F.value*k.qty}}),N}),y=$(()=>{let N=0;return e.value.forEach(k=>{if(k.product.collection_id===1||k.product.collections?.parent_id===1){const{weight:F}=Rn(k.product,k.variant);N+=F.value*k.qty}}),N}),b=$(()=>{let N=0;return e.value.forEach(k=>{const{displayPrice:F}=Rn(k.product,k.variant);N+=F.value*k.qty}),N}),v=$(()=>{let N=0;return e.value.forEach(k=>{const{profit:F}=Rn(k.product,k.variant);N+=F.value*k.qty}),N}),m=$(()=>{let N=0;return e.value.forEach(k=>{const{discountPercent:F}=Rn(k.product,k.variant);N+=F.value}),N}),_=N=>{const{priceWithDiscount:k}=Rn(N.product,N.variant);return N.qty*k.value},S=$(()=>{let N=0;return e.value.forEach(k=>{const{discount:F}=Rn(k.product,k.variant);N+=F.value}),N});function E(N,k){let F;k?F=e.value.findIndex(K=>K.product.id==N&&K.variant.id===k):F=e.value.findIndex(K=>K.product.id==N),F>-1&&e.value.splice(F,1),j()}function w(){e.value=[],n.value="home",j()}async function O(){}async function A(){const N=localStorage.getItem("cart");if(N){const k=JSON.parse(N);if(Array.isArray(k)){const F=k.map(K=>K.product.id);if(F.length){let K;try{Or.value=!0,K=(await AH(F))?.data??[]}catch(R){console.log(R)}finally{Or.value=!1}e.value=[],k.forEach(R=>{const I=K.find(Q=>Q?.id===R.product.id);let W,H=0;I&&(I.type==="variant"?(W=I?.variants?.find(Q=>R.variant?.id===Q.id),H=W?.stock??0):H=I?.count??0,R.qty>H&&!I.is_exist&&(R.qty=H),e.value.push({product:Xj(I),qty:R.qty,variant:W}))})}}}}function j(){localStorage.setItem("cart",JSON.stringify(e.value))}return{list:e,addToCart:u,count:c,sumCart:h,removeProduct:E,address:i,reset:w,sumItem:_,saveToLocal:j,getFormLocal:A,getAddress:O,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}}),IH={publicKey:"BPxLE03XsLqyrcfv_EsO7p7iR9GS5oN4jV5q6V_UuF2yLPDIFlUWc8XfSqY9926_W6IoHSmSeOxWTjnhANqG938",privateKey:"1k4YIoy5JgwSLuP-s5UuntfvXK_0OLEJyH6ei0lHnKE"},NH=()=>"serviceWorker"in navigator&&"PushManager"in window,LH=async()=>{},jH=async()=>{try{return await Notification.requestPermission()==="granted"}catch(e){return console.error("Error requesting permission:",e),!1}},MH=async e=>{try{const n=await(await navigator.serviceWorker.ready).pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:UH(IH.publicKey)});return await lH(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}},DH=async(e,t)=>{try{return await cH(e,t)}catch(n){throw console.error("Error sending public notification:",n),n}},BH=async(e,t,n)=>{try{return await uH(t,n,e)}catch(r){throw console.error("Error sending private notification:",r),r}};function UH(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 FH(){return{initializePushNotifications:async r=>{if(!NH())return console.warn("Push notifications not supported"),!1;try{return await LH(),await jH()&&r?(await MH(r),!0):!1}catch(o){return console.error("Push notification initialization failed:",o),!1}},sendPublicNotification:async(r,o)=>await DH(r,o),sendPrivateNotification:async(r,o,s)=>await BH(r,o,s)}}async function RW(e,t=1,n=10){const r=(t-1)*n,o=r+n-1,{data:s,error:i}=await Ze.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 kW(e){await Ce.get(`/chat/read/${e}`)}async function IW(e){const{data:t,error:n}=await Ze.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 NW(e,t=1,n=10){const{data:r,error:o}=await Ze.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 LW(e,t,n=null){return await Ce.post("/chat/send-message",{chat_id:e,message_text:t,file_url:n})}async function jW(e,t){const{data:n,error:r}=await Ze.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 MW(e,t){const{data:n,error:r}=await Ze.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 HH(e){const{data:t,error:n}=await Ze.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 Hh=ia("user",()=>{const e=Z(void 0),t=Z([]),n=Z([]),r=Z([]),o=Z(!1),s=Pt(),i=Z(),a=Z(null),l=Vt(),u=ba(),{initializePushNotifications:c}=FH();async function f(){try{Or.value=!0;const _=await nH();e.value=_.user,l.isSeller=_.user.type==="store",c(e.value.id),HH(e.value.id).then(S=>{n.value=S??[]}),EH(e.value.id).then(S=>{r.value=S})}catch(_){console.log(_)}finally{Or.value=!1}}const d=$(()=>{}),h=$(()=>{}),p=$(()=>{if(h.value==null)return 0}),g=$(()=>e.value.type=="seller"||!e.value.type),y=$(()=>e.value.type=="IUser");async function b(){pC(),e.value={},u.reset(),l.reset(),n.value=[],await s.push({name:"home"})}async function v(){await CH(l.useString("confirmLogout"),b)}async function m(){try{Or.value=!0,i.value=await TH(),console.log(i.value)}catch(_){console.error(_)}finally{Or.value=!1}}return{user:e,wallet:i,unReadMessage:n,getUserInfo:f,hasUserName:d,confirmLogout:v,logout:b,myDataLoaded:o,getWallet:m,isSeller:g,isIUser:y,storeList:t,subscription:h,remainingSubscription:p,activeStore:a,userConvertStoreRequests:r}}),Gu=Z(!1),Or=Z(!1);Z(!1);Z(!1);Z(!1);function DW(e){return localStorage.setItem(eh,e)}function zc(){if(Ds&&localStorage)return localStorage.getItem(eh)}function pC(){if(Ds&&localStorage)return ot.logout(),localStorage?.removeItem(eh)}function BW(e){e.target?.select()}function UW(){const e=Pt(),t=Vt(),n=Hh();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 FW(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 WH=(e,t)=>{const n=ke("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(Ds){if(zc()){const o=Vt();if(e.name=="auth-login")return Ys("/");if(n==="single"){if(o.isSeller){if(["cart","cart-id"].includes(e.name))return Ys({name:"home"})}else if(r.includes(e.name))return Ys({name:"home"})}else if(!o.isSeller&&r.includes(e.name))return Ys({name:"home"})}else if([...r].includes(e.name))return Ys({name:"home"})}},zH=ia("routeStore",()=>{Z({})}),VH=(e,t)=>{const n=zH();n.previousRoute=t},qH=e=>{const t=Ab({path:e.path});if(t.redirect){const n=t.redirect.includes("#")?t.redirect:t.redirect+e.hash;return xo(n,{acceptRelative:!0})?(window.location.href=n,!1):n}},GH=[l$,WH,VH,qH],md={};function KH(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),Rp(c,"")}const a=Rp(r,e),l=!n||Zx(a,n)?a:n;return l+(l.includes("?")?"":o)+s}const JH=De({name:"nuxt:router",enforce:"pre",async setup(e){let t,n,r=sa().app.baseURL;const o=mr.history?.(r)??DO(r),s=mr.routes?([t,n]=ao(()=>mr.routes(pu)),t=await t,n(),t??pu):pu;let i;const a=sP({...mr,scrollBehavior:(y,b,v)=>{if(b===an){i=v;return}if(mr.scrollBehavior){if(a.options.scrollBehavior=mr.scrollBehavior,"scrollRestoration"in window.history){const m=a.beforeEach(()=>{m(),window.history.scrollRestoration="manual"})}return mr.scrollBehavior(y,an,i||v)}},history:o,routes:s});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(a);const l=ae(a.currentRoute.value);a.afterEach((y,b)=>{l.value=b}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>l.value});const u=KH(r,window.location,e.payload.path),c=ae(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=Dn(d),e._middleware||={global:[],named:{}};const h=gc();a.afterEach(async(y,b,v)=>{delete e._processingMiddleware,!e.isHydrating&&h.value&&await e.runWithContext(J1),v&&await e.callHook("page:loading:end")});try{[t,n]=ao(()=>a.isReady()),await t,n()}catch(y){[t,n]=ao(()=>e.runWithContext(()=>Vr(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=rt(y.meta),e.isHydrating&&g&&!ar(y.meta.layout)&&(y.meta.layout=g),e._processingMiddleware=!0;{const v=new Set([...GH,...e._middleware.global]);for(const _ of y.matched){const S=_.meta.middleware;if(S)for(const E of Qd(S))v.add(E)}const m=Ab({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 md[_]?.().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||lo({status:404,statusText:`Page Not Found: ${u}`});return await e.runWithContext(()=>Vr(w)),!1}if(E===!0)continue;if(E===!1)return E;if(E)return mb(E)&&E.fatal&&await e.runWithContext(()=>Vr(E)),E}catch(E){const w=lo(E);return w.fatal&&await e.runWithContext(()=>Vr(w)),w}}}}),a.onError(async()=>{delete e._processingMiddleware,await e.callHook("page:loading:end")}),a.afterEach(y=>{if(y.matched.length===0&&!h.value)return e.runWithContext(()=>Vr(lo({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=mr.scrollBehavior}catch(y){await e.runWithContext(()=>Vr(y))}}),{provide:{router:a}}}}),nv=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),HW=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),_a=e=>{const t=Je();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{nv(()=>e())}):nv(()=>e())};function YH(e){if(e?.__asyncLoader&&!e.__asyncResolved)return e.__asyncLoader()}async function XH(e,t=Pt()){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(()=>XH(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 QH(e={}){const t=e.path||window.location.pathname;let n={};try{n=ji(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:Je().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}function ZH(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&&!xo(String(e.url),{acceptRelative:!0,strict:!1})&&(e.url=Xx(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 e5(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?nt(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:ZH(i)}return{stack:n,push:r,get:o}}const t5=De({name:"nuxt-site-config:init",enforce:"pre",async setup(e){const t=e5(),n=ke("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}}}}),n5=De({name:"init-config",dependsOn:["pinia"],enforce:"pre",parallel:!1,async setup(e){let t,n;const r=Vt();let o="";o=window.location.host;try{o?([t,n]=ao(()=>r.getSubscribe(o)),await t,n()):console.warn("⚠️ [Plugin] No host detected!");const s=ke("supabase-url").value,i=ke("supabase-key").value;(!s||!i)&&console.warn("⚠️ Supabase config is missing, checking store..."),r.setConfig()}catch(s){console.error("❌ [Plugin] Error:",s),r.setConfig()}}}),r5=De({name:"nuxt:payload",setup(e){const t=new Set;Pt().beforeResolve(async(n,r)=>{if(n.path===r.path)return;const o=await Jp(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]}}),_a(()=>{e.hooks.hook("link:prefetch",async n=>{const{hostname:r}=new URL(n,window.location.href);r===window.location.hostname&&await Jp().catch(()=>{console.warn("[nuxt] Error preloading payload for",n)})}),navigator.connection?.effectiveType!=="slow-2g"&&setTimeout(xb,1e3)})}}),o5=De(()=>{const e=Pt();_a(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),s5=De(e=>{let t;async function n(){let r;try{r=await xb()}catch(o){const s=o;if(!("status"in s&&(s.status===404||s.status===403)))throw s}t&&clearTimeout(t),t=setTimeout(n,Dp);try{const o=await $fetch(qd("builds/latest.json")+`?${Date.now()}`);o.id!==r?.id&&(e.hooks.callHook("app:manifest:update",o),t&&clearTimeout(t))}catch{}}_a(()=>{t=setTimeout(n,Dp)})}),i5=De({name:"nuxt:chunk-reload",setup(e){const t=Pt(),n=sa(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:s})=>{r.add(s)});function o(s){const i=ob(n.app.baseURL,s.fullPath);QH({path:i,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(o)}),t.onError((s,i)=>{r.has(s)&&o(i)})}}),a5=De({name:"pinia",setup(e){const t=Y1();return e.vueApp.use(t),_s(t),e.payload&&e.payload.pinia&&(t.state.value=e.payload.pinia),{provide:{pinia:t}}},hooks:{"app:rendered"(){const e=Je();e.payload.pinia=Se(e.$pinia).state.value,_s(void 0)}}}),l5=De({name:"nuxt:global-components"}),Pr={default:Qu(()=>re(()=>import("./D-NH961q.js"),__vite__mapDeps([233,33,63,65,98,107,26,108,97,15,3,16,115,81,142,12,174,234]),import.meta.url).then(e=>e.default||e))},c5=De({name:"nuxt:prefetch",setup(e){const t=Pt();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{const r=n?.meta?.layout;r&&typeof Pr[r]=="function"&&await Pr[r]()})}),e.hooks.hook("link:prefetch",n=>{if(xo(n))return;const r=t.resolve(n);if(!r)return;const o=r.meta.layout;let s=Qd(r.meta.middleware);s=s.filter(i=>typeof i=="string");for(const i of s)typeof md[i]=="function"&&md[i]();typeof o=="string"&&o in Pr&&YH(Pr[o])})}}),u5=(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}}}),f5=(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:eo},{l:"m",r:89},{l:"mm",r:44,d:er},{l:"h",r:89},{l:"hh",r:21,d:to},{l:"d",r:35},{l:"dd",r:25,d:Jn},{l:"M",r:45},{l:"MM",r:10,d:ln},{l:"y",r:17},{l:"yy",d:Yn}],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 d5=/[+-]\d\d(?::?\d\d)?/g,h5=/([+-]|\d\d)/g;function p5(e){e===void 0&&(e="");var t=e.match(d5);if(!t)return null;var n=(""+t[0]).match(h5)||["-",0,0],r=n[0],o=n[1],s=n[2],i=+o*60+ +s;return i===0?0:r==="+"?i:-i}const g5=(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(),er):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=p5(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,er),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*cl},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)}});Ge.extend(u5);Ge.extend(f5);Ge.extend(g5);const m5=De(async e=>e.provide("dayjs",Ge)),y5=De(()=>({provide:{pwaIcons:{transparent:{},maskable:{},favicon:{},apple:{},appleSplashScreen:{}}}})),v5=De(()=>{});var kn=(e=>(e.LOADING="loading",e.LOADED="loaded",e.ERROR="error",e))(kn||{});const b5=typeof window<"u"&&window!==null,_5=E5(),w5=Object.prototype.propertyIsEnumerable,rv=Object.getOwnPropertySymbols;function Ai(e){return typeof e=="function"||toString.call(e)==="[object Object]"}function S5(e){return typeof e=="object"?e===null:typeof e!="function"}function C5(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"}function E5(){return b5&&"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 T5(e,...t){if(!Ai(e))throw new TypeError("expected the first argument to be an object");if(t.length===0||typeof Symbol!="function"||typeof rv!="function")return e;for(const n of t){const r=rv(n);for(const o of r)w5.call(n,o)&&(e[o]=n[o])}return e}function gC(e,...t){let n=0;for(S5(e)&&(e=t[n++]),e||(e={});n<t.length;n++)if(Ai(t[n])){for(const r of Object.keys(t[n]))C5(r)&&(Ai(e[r])&&Ai(t[n][r])?gC(e[r],t[n][r]):e[r]=t[n][r]);T5(e,t[n])}return e}const ov="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",x5="",A5={rootMargin:"0px",threshold:0},Go="data-lazy-timeout-id";class O5{constructor(t){this.options={loading:ov,error:x5,observerOptions:A5,log:!0,lifecycle:{},logLevel:"error"},this._images=new WeakMap,this.config(t)}config(t={}){gC(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(kn.LOADING,i,t),t.setAttribute("src",o||ov),_5||(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(kn.LOADED,o,t)},()=>{t.onload=null,this._lifecycle(kn.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(Go))return;const a=setTimeout(()=>{this._intersectionCallback(t,n,o,s,i),n.target.removeAttribute(Go)},r);n.target.setAttribute(Go,String(a))}else n.target.hasAttribute(Go)&&(clearTimeout(Number(n.target.getAttribute(Go))),n.target.removeAttribute(Go))}_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 Ai(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 kn.LOADING:r?.setAttribute("lazy",kn.LOADING),n?.loading&&n.loading(r);break;case kn.LOADED:r?.setAttribute("lazy",kn.LOADED),n?.loaded&&n.loaded(r);break;case kn.ERROR:r?.setAttribute("lazy",kn.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 mC={install(e,t){const n=new O5(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)})}},P5=De(e=>{e.vueApp.use(mC,{loading:"/preview/default-loading.gif",error:"/preview/default-error.png"})}),$5=De(()=>{gt(()=>{const{isSupported:e,lockOrientation:t}=x$(),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)})}),R5=De(async()=>{_a(async()=>{const e=Wc();await e.getList(),e.runWebsocket()})}),k5=De(e=>{let t=null;const n=Z(!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 I5(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 re(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 N5=De(()=>{"serviceWorker"in navigator&&I5({immediate:!0,onRegistered(e){console.log("[PWA] Service worker registered:",e)},onRegisterError(e){console.error("[PWA] Service worker registration error:",e)}})}),L5=De(async()=>{_a(async()=>{await ba().getFormLocal()})});function j5(){return!!zc()}const M5=De(async()=>{let e,t;const n=Hh();j5()&&([e,t]=ao(()=>n.getUserInfo()),await e,t())}),D5=De(()=>{const e=Vt();_e(()=>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}),_e(()=>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})}),B5=()=>{},U5=De(e=>{e.vueApp.use(mC)}),F5="standalone",H5=void 0;function W5(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 re(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 z5(e={}){const{immediate:t=!0,onNeedRefresh:n,onOfflineReady:r,onRegistered:o,onRegisteredSW:s,onRegisterError:i}=e,a=Z(!1),l=Z(!1);return{updateServiceWorker:W5({immediate:t,onNeedRefresh(){a.value=!0,n?.()},onOfflineReady(){l.value=!0,r?.()},onRegistered:o,onRegisteredSW:s,onRegisterError:i}),offlineReady:l,needRefresh:a}}const V5=De({name:"vite-pwa:nuxt:client:plugin",enforce:"post",parallel:!0,setup(e){const t=Z(!1),n=Z(!1),r=Z(!1),o=Z(!0),s=navigator.userAgent,i=s.match(/iPhone|iPad|iPod/),a=`${F5}`,l=window.matchMedia(`(display-mode: ${a})`).matches,u=Z(!!(l||i&&!s.match(/Safari/))),c=Z(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}=z5({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(H5,"true")},b=async()=>{if(!r.value||!m){r.value=!1;return}return r.value=!1,await Ot(),m.prompt(),await m.userChoice}}return{provide:{pwa:rt({isInstalled:u,isPWAInstalled:c,showInstallPrompt:r,cancelInstall:v,install:b,swActivated:n,registrationError:t,offlineReady:h,needRefresh:p,updateServiceWorker:g,cancelPrompt:y,getSWRegistration:d})}}}}),q5=[GA,JA,eO,JH,t5,n5,r5,o5,s5,i5,a5,l5,c5,m5,y5,v5,P5,$5,R5,k5,N5,L5,M5,D5,B5,U5,V5],G5=pe({async setup(){return()=>null}}),yC=(e="RouteProvider")=>pe({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 wt(vo,Dn(o)),()=>t.vnode?ft(t.vnode,{ref:t.vnodeRef}):t.vnode}}),K5=yC(),sv=new WeakMap,J5=pe({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=Je(),s=Z(),i=Te(vo,null);let a;r({pageRef:s});const l=Te(pb,null);let u;const c=o.deferHydration();let f=!1,d=0;if(o.isHydrating){const p=o.hooks.hookOnce("app:error",c);Pt().beforeEach(p)}e.pageKey&&_e(()=>e.pageKey,(p,g)=>{p!==g&&o.callHook("page:loading:start")});let h=!1;{const p=Pt().beforeResolve(()=>{h=!1});on(()=>{p(),c()})}return()=>ft(Fb,{name:e.name,route:e.route,...t},{default:p=>{const g=X5(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?u:null;const b=Of(p,e.pageKey),v=Q5(i,p.route,p.Component);!o.isHydrating&&a===b&&!v&&Ot(()=>{h||(h=!0,o.callHook("page:loading:end"))}),f&&a!==b&&d++,a=b;const m=!!(e.transition??p.route.meta.pageTransition??jp),_=m&&Y5([e.transition,p.route.meta.pageTransition,jp,{onAfterLeave(){delete o._runningTransition,o.callHook("page:transition:finish",p.Component)}}]),S=e.keepalive??p.route.meta.keepalive??R1;return u=Wb(m&&_,uP(S,ft(Ud,{key:d,suspensible:!0,onPending:()=>{f=!0,m&&(o._runningTransition=!0),o.callHook("page:start",p.Component)},onResolve:async()=>{f=!1;try{await Ot(),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?Z5(n.default,p):p.Component,route:p.route,renderKey:b||void 0,trackRootNodes:m,vnodeRef:s};if(!S)return ft(K5,E);const w=p.Component.type,O=w;let A=sv.get(O);return A||(A=yC(w.name||w.__name),sv.set(O,A)),ft(A,E)}}))).default(),u}})}});function Y5(e){const t=[];for(const n of e)n&&t.push({...n,onAfterLeave:n.onAfterLeave?Qd(n.onAfterLeave):void 0});return db(...t)}function X5(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&&Of({route:t,Component:n})!==Of({route:e,Component:n})}function Q5(e,t,n){return e?t.matched.findIndex(o=>o.components?.default===n?.type)<t.matched.length-1:!1}function Z5(e,t){const n=e(t);return n.length===1?ft(n[0]):ft(je,void 0,n)}const e8={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"}},t8=pe({__name:"NoLandscapeOverly",setup(e){const{width:t,height:n}=O$(),r=Er("(hover: none) and (pointer: coarse)"),o=$(()=>r.value&&Math.min(t.value,n.value)<860),s=Z(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};gt(()=>{i(),screen?.orientation?.addEventListener?.("change",i),window.addEventListener("orientationchange",i,{passive:!0}),window.matchMedia?.("(orientation: landscape)")?.addEventListener?.("change",i)}),js(()=>{screen?.orientation?.removeEventListener?.("change",i),window.removeEventListener("orientationchange",i),window.matchMedia?.("(orientation: landscape)")?.removeEventListener?.("change",i)});const a=$(()=>s.value===!0),l=Z(!1);return gt(()=>{l.value=!0}),(u,c)=>l.value&&o.value&&a.value?(It(),Ol("div",e8,c[0]||(c[0]=[Zn("div",{class:"pointer-events-none select-none"},[Zn("p",{class:"text-lg font-semibold"},"لطفاً گوشی را عمودی نگه دارید"),Zn("p",{class:"opacity-80 mt-2"},"این صفحه در حالت افقی در دسترس نیست.")],-1)]))):T0("",!0)}}),n8=Object.assign(t8,{__name:"NoLandscapeOverly"}),vC=Tb,r8=pe({name:"LayoutLoader",inheritAttrs:!1,props:{name:String,layoutProps:Object},setup(e,t){return()=>ft(Pr[e.name],e.layoutProps,t.slots)}}),o8={name:{type:[String,Boolean,Object],default:null},fallback:{type:[String,Object],default:null}},s8=pe({name:"NuxtLayout",inheritAttrs:!1,props:o8,setup(e,t){const n=Je(),r=Te(vo),s=!r||r===Gd()?Hb():r,i=$(()=>{let c=U(e.name)??s?.meta.layout??vC(s?.path).appLayout??"default";return c&&!(c in Pr)&&e.fallback&&(c=U(e.fallback)),c}),a=ae();t.expose({layoutRef:a});const l=n.deferHydration();if(n.isHydrating){const c=n.hooks.hookOnce("app:error",l);Pt().beforeEach(c)}let u;return()=>{const c=i.value&&i.value in Pr,f=s?.meta.layoutTransition??$1,d=u;return u=i.value,Wb(c&&f,{default:()=>ft(Ud,{suspensible:!0,onResolve:()=>{Ot(l)}},{default:()=>ft(i8,{layoutProps:x0(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()}}}),i8=pe({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&&wt(pb,{isCurrent:s=>n===!1||n===(s.meta.layout??vC(s.path).appLayout??"default")});const r=Te(vo);if(r&&r===Gd()){const s=Hb(),i={};for(const a in s){const l=a;Object.defineProperty(i,l,{enumerable:!0,get:()=>e.isRenderingNewLayout(e.name)?s[l]:r[l]})}wt(vo,Dn(i))}return()=>!n||typeof n=="string"&&!(n in Pr)?t.slots.default?.():ft(r8,{key:n,layoutProps:e.layoutProps,name:n},t.slots)}}),a8="#0064e0",l8="#fff",c8="#abc2f7",u8="#feb701",f8={50:"#f9fafd",70:"#f9f9f9",100:"#e8eaee",200:"#caced8",300:"#D1D5DB",400:"#9CA3AF",500:"#949db0",700:"#374151",900:"#656f87"},d8={100:"#ecf5ef",900:"#0f7f36"},h8="#1e2229",p8="#ffffff",g8={100:"#fee2e2",500:"#f4474d",600:"#dc2626"},m8={100:"#FFF6E1",900:"#FEB701"},y8={100:"#ebf4fd",600:"#0891B2",900:"#0891B2"},v8={50:"#ECFEFF",300:"#67E8F9",600:"#0891B2",800:"#155E75"},Ya={primary:a8,primaryDark:l8,"primary-rgba":"#0891B2",secondary:c8,"secondary-rgba":"#0072e914",tertiary:u8,"tertiary-rgba":"#fec94114",gray:f8,green:d8,"green-rgba":"#ecf5ef",black:h8,white:p8,red:g8,"red-rgba":"#fce6e6",yellow:m8,blue:y8,cyan:v8},b8={class:"desktopConfig"},_8={key:0,class:"app-updating-overlay"},w8={class:"app-updating-content"},S8={class:"app-updating-text"},C8=["src","alt"],E8=pe({__name:"app",setup(e){const t=Vt(),n=Vt(),r=o=>o?.parentNode||void 0;return gt(t.checkVersion),UA({title:$(()=>n.appName.en||"Loading..."),meta:[{name:"description",content:$(()=>n.TEXT_HEADER)}],link:[]}),(o,s)=>{const i=G5,a=J5,l=n8,u=s8,c=po;return It(),Ol("div",b8,[(It(),Mn(Rd,{to:"body"},[P(Ms,{name:"fade"},{default:di(()=>[U(t).isUpdatingApp?(It(),Ol("div",_8,[Zn("div",w8,[s[0]||(s[0]=Zn("span",{class:"app-updating-spinner"},null,-1)),Zn("p",S8,Rv(U(t).useString("appUpdating")),1)])])):T0("",!0)]),_:1})])),Zn("img",{src:U(t).useLogo("logo_mini.png"),alt:U(t).appName.en,style:{position:"fixed",top:"-10000rem"}},null,8,C8),P(c,{direction:"ltr",getPopupContainer:r,theme:{token:{colorPrimary:U(Ya).primary,colorLink:U(Ya).primary,fontFamily:U(t).isRTL?"iran-sans":"system",colorLinkActive:U(Ya).primary,colorLinkHover:U(Ya)["primary-rgba"]}}},{default:di(()=>[P(u,{name:"default"},{default:di(()=>[P(i),P(a),P(l)]),_:1})]),_:1},8,["theme"])])}}}),T8={__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?Qu(()=>re(()=>import("./DloKkSUm.js"),__vite__mapDeps([235,3,236]),import.meta.url)):Qu(()=>re(()=>import("./BksW-ien.js"),__vite__mapDeps([237,3,238]),import.meta.url));return(f,d)=>(It(),Mn(U(c),CE(C0({status:U(r),statusText:U(s),statusCode:U(r),statusMessage:U(s),description:U(i),stack:U(a)})),null,16))}},x8={key:0},iv={__name:"nuxt-root",setup(e){const t=()=>null,n=Je(),r=n.deferHydration();if(n.isHydrating){const u=n.hooks.hookOnce("app:error",r);Pt().beforeEach(u)}const o=!1;wt(vo,Gd()),n.hooks.callHookWith(u=>u.map(c=>c()),"vue:setup");const s=gc(),i=!1,a=/bot\b|chrome-lighthouse|facebookexternalhit|google\b/i;Qv((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(mb(u)&&(u.fatal||u.unhandled))return n.runWithContext(()=>Vr(u)),!1});const l=!1;return(u,c)=>(It(),Mn(Ud,{onResolve:U(r)},{default:di(()=>[U(i)?(It(),Ol("div",x8)):U(s)?(It(),Mn(U(T8),{key:1,error:U(s)},null,8,["error"])):U(l)?(It(),Mn(U(t),{key:2,context:U(l)},null,8,["context"])):U(o)?(It(),Mn(FE(U(o)),{key:3})):(It(),Mn(U(E8),{key:4}))]),_:1},8,["onResolve"]))}};let av;{let e;av=async function(){if(e)return e;const n=!!(window.__NUXT__?.serverRendered??document.getElementById("__NUXT_DATA__")?.dataset.ssr==="true"),r=n?wx(iv):_x(iv),o=L1({vueApp:r});async function s(i){await o.callHook("app:error",i),o.payload.error||=lo(i)}r.config.errorHandler=s,o.hook("app:suspense:resolve",()=>{r.config.errorHandler===s&&(r.config.errorHandler=void 0)}),!n&&Mp.id&&o.hook("app:suspense:resolve",()=>{document.getElementById(Mp.id)?.remove()});try{await D1(o,q5)}catch(i){s(i)}try{await o.hooks.callHook("app:created",r),await o.hooks.callHook("app:beforeMount",r),r.mount(k1),await o.hooks.callHook("app:mounted",r),await Ot()}catch(i){s(i)}return r},e=av().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{X3 as $,Ol as A,Zn as B,Rv as C,P as D,di as E,E0 as F,Mn as G,Vt as H,Hh as I,rt as J,U as K,F8 as L,q3 as M,Ze as N,DW as O,UW as P,xt as Q,k8 as R,Or as S,T0 as T,Ms as U,J3 as V,pC as W,K3 as X,G3 as Y,rH as Z,Y3 as _,Je as a,Ao as a$,_e as a0,je as a1,$8 as a2,ac as a3,e3 as a4,L8 as a5,Mv as a6,F0 as a7,ic as a8,zc as a9,ll as aA,Xj as aB,x as aC,Se as aD,dr as aE,Fk as aF,Z$ as aG,v3 as aH,Ye as aI,fe as aJ,aa as aK,Fe as aL,m3 as aM,ds as aN,wg as aO,K$ as aP,$f as aQ,et as aR,Bl as aS,Aw as aT,Te as aU,jt as aV,Sh as aW,vh as aX,bh as aY,la as aZ,x3 as a_,wt as aa,FE as ab,Qu as ac,re as ad,V8 as ae,Ot as af,js as ag,ba as ah,Wc as ai,P8 as aj,kW as ak,R8 as al,M8 as am,Co as an,I8 as ao,fo as ap,Ce as aq,ot as ar,Hn as as,ca as at,fL as au,IL as av,RL as aw,kL as ax,Rc as ay,FL as az,_a as b,Dl as b$,Nr as b0,p3 as b1,Cn as b2,Mt as b3,lh as b4,bo as b5,fM as b6,dh as b7,gw as b8,pw as b9,Ir as bA,Q_ as bB,Gg as bC,o2 as bD,jn as bE,mh as bF,Fs as bG,uw as bH,Ro as bI,Hs as bJ,TM as bK,Ak as bL,lI as bM,or as bN,c_ as bO,uI as bP,Ls as bQ,J$ as bR,tc as bS,U8 as bT,Zb as bU,l3 as bV,a3 as bW,u3 as bX,m2 as bY,i3 as bZ,c3 as b_,V0 as ba,_c as bb,Fn as bc,uR as bd,ko as be,No as bf,Io as bg,A8 as bh,Lt as bi,G8 as bj,Me as bk,Ke as bl,$k as bm,ah as bn,F_ as bo,_g as bp,S3 as bq,bg as br,rM as bs,Xv as bt,T3 as bu,Ui as bv,Cc as bw,g3 as bx,nn as by,Lr as bz,nv as c,mW as c$,yw as c0,SM as c1,d3 as c2,Wl as c3,f3 as c4,rh as c5,Us as c6,Rw as c7,CL as c8,We as c9,Dw as cA,Z8 as cB,ia as cC,Y8 as cD,J8 as cE,CH as cF,gW as cG,nt as cH,z8 as cI,Yv as cJ,Sl as cK,lo as cL,yh as cM,FW as cN,fW as cO,dW as cP,j8 as cQ,Wf as cR,Y_ as cS,z$ as cT,xk as cU,Rd as cV,Tu as cW,Pw as cX,uW as cY,n3 as cZ,eW as c_,wm as ca,iw as cb,nw as cc,lw as cd,EN as ce,Jn as cf,Yn as cg,ul as ch,Rh as ci,qw as cj,ln as ck,vD as cl,Ge as cm,b3 as cn,N8 as co,im as cp,dR as cq,Is as cr,Pi as cs,Fr as ct,_t as cu,_3 as cv,Sg as cw,r3 as cx,GM as cy,Ws as cz,pe as d,Z3 as d$,q8 as d0,Hb as d1,vc as d2,Tv as d3,K8 as d4,$w as d5,G$ as d6,s3 as d7,$_ as d8,Kb as d9,C3 as dA,y3 as dB,w2 as dC,eE as dD,Tn as dE,E3 as dF,D_ as dG,uM as dH,BW as dI,XC as dJ,IB as dK,Nh as dL,NB as dM,NW as dN,jW as dO,MW as dP,LW as dQ,zH as dR,ua as dS,Oh as dT,Ah as dU,xh as dV,Lo as dW,t3 as dX,O$ as dY,Q8 as dZ,X8 as d_,o3 as da,Jb as db,w3 as dc,Gv as dd,Kv as de,x0 as df,RW as dg,$s as dh,IW as di,aW as dj,tW as dk,Q3 as dl,lW as dm,Gd as dn,Rn as dp,AW as dq,OW as dr,SW as ds,EW as dt,TW as du,CW as dv,hW as dw,nW as dx,cW as dy,h3 as dz,on as e,$W as e0,Ja as e1,pd as e2,ml as e3,PW as e4,Zi as e5,ea as e6,gd as e7,kH as e8,ev as e9,xW as ea,qu as eb,OB as ec,oW as ed,Gy as ee,_W as ef,bW as eg,vW as eh,yW as ei,Ft as ej,wW as ek,D8 as el,B8 as em,rW as en,sW as eo,iW as ep,ke as eq,pW as er,HW as f,O8 as g,ft as h,K1 as i,G1 as j,XH as k,$ as l,xo as m,ob as n,gt as o,eb as p,Ys as q,Z as r,ae as s,sa as t,Pt as u,Nl as v,Kx as w,W8 as x,UA as y,It as z};
|