1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./C5sgdyU7.js","./DlAUqK2U.js","./404.CuBqjYP5.css","./BR8G1Lm-.js","./CXzDMTjs.js","./CnLb32tY.js","./BAcHMMJG.js","./CFZWd18n.js","./app.2U6aqBpX.css","./DejiEXVP.js","./D0eDppiH.js","./BuLRVBqz.js","./DiDQQ4Wr.js","./auth.BenKnITT.css","./BmladEZr.js","./blog.Co2GdcMz.css","./t-2kK0ll.js","./CTUZ4iQV.js","./CJMSFO93.js","./92s3wAHG.js","./CvZLGYaG.js","./JournalFeed.DZu2NU8b.css","./Bq0dffKh.js","./index.-xLuk9xF.css","./CZyxUcXh.js","./confirm.BeaRVbe_.css","./CBM05Y7A.js","./DCLYQ2yV.js","./CalendarHeatmap.qZ7ghJQ7.css","./heatmap.BB_bn11g.css","./BEqWq0cL.js","./payment.CjehMXsG.css","./B936b8P7.js","./CEjVeJ4_.js","./BTle4YYq.js","./B3W1GDtT.js","./DDihncDr.js","./D-msKkEA.js","./CK1ZbU7i.js","./CY-GfFn3.js","./Settings.Dm5wZRpc.css","./settings.Dl9xhwIw.css","./Ctsgs1Tq.js","./McOAnWIB.js","./CsB8zGEI.js","./free-tools.CQQ3FRCA.css","./TZWEOB8H.js","./CtEIoL95.js","./_id_.Cb5PAQ0b.css","./BnmZP0EL.js","./Cww8eItP.js","./ToolFormShell.BxPcytAf.css","./marketing.CfdMBYdK.css","./ChAq-wQK.js","./index.MMXoDw_U.css","./bJV1MXU4.js","./_toolSlug_.B_h6J6dq.css","./CTMniRx9.js","./C6drvUE_.js","./_title_.DYjzLwvx.css","./g0foPpwd.js","./_id_.Dux3R3ws.css","./DMlvqsaY.js","./privacy-policy.BfBIz_5R.css","./CX32LmUt.js","./_startup_.CrjSHbNV.css","./CZnwEk2s.js","./C6kkVEGv.js","./_id_.CkNU4PUV.css","./Bj2ij8dt.js","./startup-idea-validator.m3rblSOd.css","./DYNZq_EG.js","./terms-and-conditions.C9CMtJQm.css","./CDP7Rytg.js","./business-model-canvas-generator.D0Y078EC.css","./Zn1ydb8D.js","./DgIf_bFY.js","./CEL62vOW.js","./BE8DZArl.js","./loggedin.BtwCeAh7.css","./CvEjZZBI.js","./BY-dwC9t.js","./Vug-K3JR.js","./error-404.B8j-Xh3Z.css","./r39Jw2be.js","./error-500.q-NF-DFu.css"])))=>i.map(i=>d[i]); 2(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function kc(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Ne={},Dr=[],kn=()=>{},Eh=()=>!1,Pi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),qo=e=>e.startsWith("onUpdate:"),it=Object.assign,Rc=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},a_=Object.prototype.hasOwnProperty,Pe=(e,t)=>a_.call(e,t),te=Array.isArray,cr=e=>Ps(e)==="[object Map]",Gn=e=>Ps(e)==="[object Set]",Ru=e=>Ps(e)==="[object Date]",l_=e=>Ps(e)==="[object RegExp]",le=e=>typeof e=="function",$e=e=>typeof e=="string",jt=e=>typeof e=="symbol",ke=e=>e!==null&&typeof e=="object",Oc=e=>(ke(e)||le(e))&&le(e.then)&&le(e.catch),Th=Object.prototype.toString,Ps=e=>Th.call(e),c_=e=>Ps(e).slice(8,-1),Sh=e=>Ps(e)==="[object Object]",Ko=e=>$e(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ur=kc(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Go=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},u_=/-\w/g,At=Go(e=>e.replace(u_,t=>t.slice(1).toUpperCase())),f_=/\B([A-Z])/g,mr=Go(e=>e.replace(f_,"-$1").toLowerCase()),zo=Go(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ia=Go(e=>e?`on${zo(e)}`:""),wn=(e,t)=>!Object.is(e,t),ps=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Ah=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Jo=e=>{const t=parseFloat(e);return isNaN(t)?e:t},kh=e=>{const t=$e(e)?Number(e):NaN;return isNaN(t)?e:t};let Ou;const Yo=()=>Ou||(Ou=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Xo(e){if(te(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=$e(r)?g_(r):Xo(r);if(s)for(const i in s)t[i]=s[i]}return t}else if($e(e)||ke(e))return e}const d_=/;(?![^(]*\))/g,h_=/:([^]+)/,p_=/"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;function g_(e){const t={};return e.replace(p_,n=>n.startsWith("/*")?"":n).split(d_).forEach(n=>{if(n){const r=n.split(h_);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Qo(e){let t="";if($e(e))t=e;else if(te(e))for(let n=0;n<e.length;n++){const r=Qo(e[n]);r&&(t+=r+" ")}else if(ke(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function m_(e){if(!e)return null;let{class:t,style:n}=e;return t&&!$e(t)&&(e.class=Qo(t)),n&&(e.style=Xo(n)),e}const __="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",y_=kc(__);function Rh(e){return!!e||e===""}function b_(e,t,n){if(e.length!==t.length)return!1;let r=!0;for(let s=0;r&&s<e.length;s++)r=zn(e[s],t[s],n);return r}function Cu(e,t,n){if(e.size!==t.size)return!1;const r=Array.from(t),s=new Uint8Array(r.length);for(const i of e){let o=-1;for(let a=0;a<r.length;a++)if(!s[a]&&zn(i,r[a],n)){o=a;break}if(o<0)return!1;s[o]=1}return!0}function v_(e,t,n){let r=cr(e),s=cr(t);if(r||s||(r=Gn(e),s=Gn(t),r||s))return r&&s?Cu(e,t,n):!1;const i=Object.keys(e).length,o=Object.keys(t).length;if(i!==o)return!1;for(const a in e){const l=e.hasOwnProperty(a),c=t.hasOwnProperty(a);if(l&&!c||!l&&c||!zn(e[a],t[a],n))return!1}return String(e)===String(t)}function Pu(e,t,n,r){n||(n=[new Map,new Map]);const[s,i]=n;
vendor: 17,827 bytes, line 2
2if(s.has(e)||i.has(t))return s.get(e)===t&&i.get(t)===e;s.set(e,t),i.set(t,e);const o=r(e,t,n);return s.delete(e),i.delete(t),o}function zn(e,t,n){if(e===t)return!0;let r=Ru(e),s=Ru(t);return r||s?r&&s?e.getTime()===t.getTime():!1:(r=jt(e),s=jt(t),r||s?e===t:(r=te(e),s=te(t),r||s?r&&s?Pu(e,t,n,b_):!1:(r=ke(e),s=ke(t),r||s?!r||!s?!1:Pu(e,t,n,v_):String(e)===String(t))))}function Cc(e,t){return e.findIndex(n=>zn(n,t))}const Oh=e=>!!(e&&e.__v_isRef===!0),w_=e=>$e(e)?e:e==null?"":te(e)||ke(e)&&(e.toString===Th||!le(e.toString))?Oh(e)?w_(e.value):JSON.stringify(e,Ch,2):String(e),Ch=(e,t)=>Oh(t)?Ch(e,t.value):cr(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[La(r,i)+" =>"]=s,n),{})}:Gn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>La(n))}:jt(t)?La(t):ke(t)&&!te(t)&&!Sh(t)?String(t):t,La=(e,t="")=>{var n;return jt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let st;class Ph{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&st&&(st.active?(this.parent=st,this.index=(st.scopes||(st.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes){const r=this.scopes.slice();for(t=0,n=r.length;t<n;t++)r[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){const s=this.scopes.slice();for(t=0,n=s.length;t<n;t++)s[t].resume()}const r=this.effects.slice();for(t=0,n=r.length;t<n;t++)r[t].resume()}}run(t){if(this._active){const n=st;try{return st=this,t()}finally{st=n}}}on(){++this._on===1&&(this.prevScope=st,st=this)}off(){if(this._on>0&&--this._on===0){if(st===this)st=this.prevScope;else{let t=st;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){const s=this.scopes.slice();for(n=0,r=s.length;n<r;n++)s[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function Pc(e){return new Ph(e)}function Zo(){return st}function vl(e,t=!1){st&&st.cleanups.push(e)}let Ue;const xa=new WeakSet;class Ih{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,st&&(st.active?st.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,xa.has(this)&&(xa.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||xh(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Iu(this),Nh(this);const t=Ue,n=on;Ue=this,on=!0;try{return this.fn()}finally{Dh(this),Ue=t,on=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)xc(t);this.deps=this.depsTail=void 0,Iu(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?xa.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){wl(this)&&this.run()}get dirty(){return wl(this)}}let Lh=0,ei,ti;function xh(e,t=!1){if(e.flags|=8,t){e.next=ti,ti=e;return}e.next=ei,ei=e}function Ic(){Lh++}function Lc(){if(--Lh>0)return;if(ti){let t=ti;for(ti=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;ei;){let t=ei;for(ei=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 Nh(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Dh(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),xc(r),E_(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function wl(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&($h(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function $h(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ci)||(e.globalVersion=ci,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!wl(e))))return;e.flags|=2;const t=e.dep,n=Ue,r=on;Ue=e,on=!0;try{Nh(e);const s=e.fn(e._value);(t.version===0||wn(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{Ue=n,on=r,Dh(e),e.flags&=-3}}function xc(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)xc(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function E_(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let on=!0;const Mh=[];function Jn(){Mh.push(on),on=!1}function Yn(){const e=Mh.pop();on=e===void 0?!0:e}function Iu(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Ue;Ue=void 0;try{t()}finally{Ue=n}}}let ci=0;class T_{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 ea{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Ue||!on||Ue===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Ue)n=this.activeLink=new T_(Ue,this),Ue.deps?(n.prevDep=Ue.depsTail,Ue.depsTail.nextDep=n,Ue.depsTail=n):Ue.deps=Ue.depsTail=n,Uh(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=Ue.depsTail,n.nextDep=void 0,Ue.depsTail.nextDep=n,Ue.depsTail=n,Ue.deps===n&&(Ue.deps=r)}return n}trigger(t){this.version++,ci++,this.notify(t)}notify(t){Ic();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Lc()}}}function Uh(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)Uh(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const yo=new WeakMap,jr=Symbol(""),El=Symbol(""),ui=Symbol("");function yt(e,t,n){if(on&&Ue){let r=yo.get(e);r||yo.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new ea),s.map=r,s.key=n),s.track()}}function jn(e,t,n,r,s,i){const o=yo.get(e);if(!o){ci++;return}const a=l=>{l&&l.trigger()};if(Ic(),t==="clear")o.forEach(a);else{const l=te(e),c=l&&Ko(n);if(l&&n==="length"){const u=Number(r);o.forEach((f,h)=>{(h==="length"||h===ui||!jt(h)&&h>=u)&&a(f)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),c&&a(o.get(ui)),t){case"add":l?c&&a(o.get("length")):(a(o.get(jr)),cr(e)&&a(o.get(El)));break;case"delete":l||(a(o.get(jr)),cr(e)&&a(o.get(El)));break;case"set":cr(e)&&a(o.get(jr));break}}Lc()}function S_(e,t){const n=yo.get(e);return n&&n.get(t)}function Xr(e){const t=Se(e);return t===e||(yt(t,"iterate",ui),Mt(e))?t:an(e)?Wn(e)?t.map(n=>pr(Kt(n))):t.map(pr):t.map(Kt)}function ta(e){return yt(e=Se(e),"iterate",ui),e}function vn(e,t){return an(e)?pr(Wn(e)?Kt(t):t):Kt(t)}const A_={__proto__:null,[Symbol.iterator](){return Na(this,Symbol.iterator,e=>vn(this,e))},concat(...e){return Xr(this).concat(...e.map(t=>te(t)?Xr(t):t))},entries(){return Na(this,"entries",e=>(e[1]=vn(this,e[1]),e))},every(e,t){return In(this,"every",e,t,void 0,arguments)},filter(e,t){return In(this,"filter",e,t,n=>n.map(r=>vn(this,r)),arguments)},find(e,t){return In(this,"find",e,t,n=>vn(this,n),arguments)},findIndex(e,t){return In(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return In(this,"findLast",e,t,n=>vn(this,n),arguments)},findLastIndex(e,t){return In(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return In(this,"forEach",e,t,void 0,arguments)},includes(...e){return Da(this,"includes",e)},indexOf(...e){return Da(this,"indexOf",e)},join(e){return Xr(this).join(e)},lastIndexOf(...e){return Da(this,"lastIndexOf",e)},map(e,t){return In(this,"map",e,t,void 0,arguments)},pop(){return $s(this,"pop")},push(...e){return $s(this,"push",e)},reduce(e,...t){return Lu(this,"reduce",e,t)},reduceRight(e,...t){return Lu(this,"reduceRight",e,t)},shift(){return $s(this,"shift")},some(e,t){return In(this,"some",e,t,void 0,arguments)},splice(...e){return $s(this,"splice",e)},toReversed(){return Xr(this).toReversed()},toSorted(e){return Xr(this).toSorted(e)},toSpliced(...e){return Xr(this).toSpliced(...e)},unshift(...e){return $s(this,"unshift",e)},values(){return Na(this,"values",e=>vn(this,e))}};function Na(e,t,n){const r=ta(e),s=r[t]();return r!==e&&!Mt(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}const k_=Array.prototype;function In(e,t,n,r,s,i){const o=ta(e),a=o!==e&&!Mt(e),l=o[t];if(l!==k_[t]){const f=l.apply(e,i);return a?Kt(f):f}let c=n;o!==e&&(a?c=function(f,h){return n.call(this,vn(e,f),h,e)}:n.length>2&&(c=function(f,h){return n.call(this,f,h,e)}));const u=l.call(o,c,r);return a&&s?s(u):u}function Lu(e,t,n,r){const s=ta(e),i=s!==e&&!Mt(e);let o=n,a=!1;s!==e&&(i?(a=r.length===0,o=function(c,u,f){return a&&(a=!1,c=vn(e,c)),n.call(this,c,vn(e,u),f,e)}):n.length>3&&(o=function(c,u,f){return n.call(this,c,u,f,e)}));const l=s[t](o,...r);return a?vn(e,l):l}function Da(e,t,n){const r=Se(e);yt(r,"iterate",ui);const s=r[t](...n);return(s===-1||s===!1)&&na(n[0])?(n[0]=Se(n[0]),r[t](...n)):s}function $s(e,t,n=[]){Jn(),Ic();const r=Se(e)[t].apply(e,n);return Lc(),Yn(),r}const R_=kc("__proto__,__v_isRef,__isVue"),jh=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(jt));function O_(e){jt(e)||(e=String(e));const t=Se(this);return yt(t,"has",e),t.hasOwnProperty(e)}class Fh{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?U_:Wh:i?Vh:Hh).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=te(t);if(!s){let l;if(o&&(l=A_[n]))return l;if(n==="hasOwnProperty")return O_}const a=Reflect.get(t,n,Be(t)?t:r);if((jt(n)?jh.has(n):R_(n))||(s||yt(t,"get",n),i))return a;if(Be(a)){const l=o&&Ko(n)?a:a.value;return s&&ke(l)?Sl(l):l}return ke(a)?s?Sl(a):_r(a):a}}class Bh extends Fh{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];const o=te(t)&&Ko(n);if(!this._isShallow){const c=an(i);if(!Mt(r)&&!an(r)&&(i=Se(i),r=Se(r)),!o&&Be(i)&&!Be(r))return c||(i.value=r),!0}const a=o?Number(n)<t.length:Pe(t,n),l=Reflect.set(t,n,r,Be(t)?t:s);return t===Se(s)&&l&&(a?wn(r,i)&&jn(t,"set",n,r):jn(t,"add",n,r)),l}deleteProperty(t,n){const r=Pe(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&jn(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!jt(n)||!jh.has(n))&&yt(t,"has",n),r}ownKeys(t){return yt(t,"iterate",te(t)?"length":jr),Reflect.ownKeys(t)}}class C_ extends Fh{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const P_=new Bh,I_=new C_,L_=new Bh(!0);const Tl=e=>e,Fi=e=>Reflect.getPrototypeOf(e);function x_(e,t,n){return function(...r){const s=this.__v_raw,i=Se(s),o=cr(i),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,c=s[e](...r),u=n?Tl:t?pr:Kt;return!t&&yt(i,"iterate",l?El:jr),it(Object.create(c),{next(){const{value:f,done:h}=c.next();return h?{value:f,done:h}:{value:a?[u(f[0]),u(f[1])]:u(f),done:h}}})}}function Bi(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function N_(e,t){const n={get(s){const i=this.__v_raw,o=Se(i),a=Se(s);e||(wn(s,a)&&yt(o,"get",s),yt(o,"get",a));const{has:l}=Fi(o),c=t?Tl:e?pr:Kt;if(l.call(o,s))return c(i.get(s));if(l.call(o,a))return c(i.get(a));i!==o&&i.get(s)},get size(){const s=this.__v_raw;return!e&&yt(Se(s),"iterate",jr),s.size},has(s){const i=this.__v_raw,o=Se(i),a=Se(s);return e||(wn(s,a)&&yt(o,"has",s),yt(o,"has",a)),s===a?i.has(s):i.has(s)||i.has(a)},forEach(s,i){const o=this,a=o.__v_raw,l=Se(a),c=t?Tl:e?pr:Kt;return!e&&yt(l,"iterate",jr),a.forEach((u,f)=>s.call(i,c(u),c(f),o))}};return it(n,e?{add:Bi("add"),set:Bi("set"),delete:Bi("delete"),clear:Bi("clear")}:{add(s){const i=Se(this),o=Fi(i),a=Se(s),l=!t&&!Mt(s)&&!an(s)?a:s;return o.has.call(i,l)||wn(s,l)&&o.has.call(i,s)||wn(a,l)&&o.has.call(i,a)||(i.add(l),jn(i,"add",l,l)),this},set(s,i){!t&&!Mt(i)&&!an(i)&&(i=Se(i));const o=Se(this),{has:a,get:l}=Fi(o);let c=a.call(o,s);c||(s=Se(s),c=a.call(o,s));const u=l.call(o,s);return o.set(s,i),c?wn(i,u)&&jn(o,"set",s,i):jn(o,"add",s,i),this},delete(s){const i=Se(this),{has:o,get:a}=Fi(i);let l=o.call(i,s);l||(s=Se(s),l=o.call(i,s)),a&&a.call(i,s);const c=i.delete(s);return l&&jn(i,"delete",s,void 0),c},clear(){const s=Se(this),i=s.size!==0,o=s.clear();return i&&jn(s,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=x_(s,e,t)}),n}function Nc(e,t){const n=N_(e,t);return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(Pe(n,s)&&s in r?n:r,s,i)}const D_={get:Nc(!1,!1)},$_={get:Nc(!1,!0)},M_={get:Nc(!0,!1)};const Hh=new WeakMap,Vh=new WeakMap,Wh=new WeakMap,U_=new WeakMap;function j_(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function _r(e){return an(e)?e:Dc(e,!1,P_,D_,Hh)}function Tn(e){return Dc(e,!1,L_,$_,Vh)}function Sl(e){return Dc(e,!0,I_,M_,Wh)}function Dc(e,t,n,r,s){if(!ke(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=s.get(e);if(i)return i;const o=j_(c_(e));if(o===0)return e;const a=new Proxy(e,o===2?r:n);return s.set(e,a),a}function Wn(e){return an(e)?Wn(e.__v_raw):!!(e&&e.__v_isReactive)}function an(e){return!!(e&&e.__v_isReadonly)}function Mt(e){return!!(e&&e.__v_isShallow)}function na(e){return e?!!e.__v_raw:!1}function Se(e){const t=e&&e.__v_raw;return t?Se(t):e}function F_(e){return!Pe(e,"__v_skip")&&Object.isExtensible(e)&&Ah(e,"__v_skip",!0),e}const Kt=e=>ke(e)?_r(e):e,pr=e=>ke(e)?Sl(e):e;function Be(e){return e?e.__v_isRef===!0:!1}function kt(e){return qh(e,!1)}function Hr(e){return qh(e,!0)}function qh(e,t){return Be(e)?e:new B_(e,t)}class B_{constructor(t,n){this.dep=new ea,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Se(t),this._value=n?t:Kt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Mt(t)||an(t);t=r?t:Se(t),wn(t,n)&&(this._rawValue=t,this._value=r?t:Kt(t),this.dep.trigger())}}function de(e){return Be(e)?e.value:e}function fs(e){return le(e)?e():de(e)}const H_={get:(e,t,n)=>t==="__v_raw"?e:de(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return Be(s)&&!Be(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Kh(e){return Wn(e)?e:new Proxy(e,H_)}class V_{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new ea,{get:r,set:s}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function W_(e){return new V_(e)}function BP(e){const t=te(e)?new Array(e.length):{};for(const n in e)t[n]=zh(e,n);return t}class q_{constructor(t,n,r){this._object=t,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._key=jt(n)?n:String(n),this._raw=Se(t);let s=!0,i=t;if(!te(t)||jt(this._key)||!Ko(this._key))do s=!na(i)||Mt(i);while(s&&(i=i.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=de(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Be(this._raw[this._key])){const n=this._object[this._key];if(Be(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return S_(this._raw,this._key)}}class K_{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 Gh(e,t,n){return Be(e)?e:le(e)?new K_(e):ke(e)&&arguments.length>1?zh(e,t,n):kt(e)}function zh(e,t,n){return new q_(e,t,n)}class G_{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new ea(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ci-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Ue!==this)return xh(this,!0),!0}get value(){const t=this.dep.track();return $h(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function z_(e,t,n=!1){let r,s;return le(e)?r=e:(r=e.get,s=e.set),new G_(r,s,n)}const Hi={},bo=new WeakMap;let Or;function J_(e,t=!1,n=Or){if(n){let r=bo.get(n);r||bo.set(n,r=[]),r.push(e)}}function Y_(e,t,n=Ne){const{immediate:r,deep:s,once:i,scheduler:o,augmentJob:a,call:l}=n,c=_=>s?_:Mt(_)||s===!1||s===0?Fn(_,1):Fn(_);let u,f,h,d,p=!1,m=!1;if(Be(e)?(f=()=>e.value,p=Mt(e)):Wn(e)?(f=()=>c(e),p=!0):te(e)?(m=!0,p=e.some(_=>Wn(_)||Mt(_)),f=()=>e.map(_=>{if(Be(_))return _.value;if(Wn(_))return c(_);if(le(_))return l?l(_,2):_()})):le(e)?t?f=l?()=>l(e,2):e:f=()=>{if(h){Jn();try{h()}finally{Yn()}}const _=Or;Or=u;try{return l?l(e,3,[d]):e(d)}finally{Or=_}}:f=kn,t&&s){const _=f,T=s===!0?1/0:s;f=()=>Fn(_(),T)}const v=Zo(),b=()=>{u.stop(),v&&v.active&&Rc(v.effects,u)};if(i&&t){const _=t;t=(...T)=>{const R=_(...T);return b(),R}}let y=m?new Array(e.length).fill(Hi):Hi;const g=_=>{if(!(!(u.flags&1)||!u.dirty&&!_))if(t){const T=u.run();if(_||s||p||(m?T.some((R,k)=>wn(R,y[k])):wn(T,y))){h&&h();const R=Or;Or=u;try{const k=[T,y===Hi?void 0:m&&y[0]===Hi?[]:y,d];y=T,l?l(t,3,k):t(...k)}finally{Or=R}}}else u.run()};
vendor: 4,276 bytes, line 2
2return a&&a(g),u=new Ih(f),u.scheduler=o?()=>o(g,!1):g,d=_=>J_(_,!1,u),h=u.onStop=()=>{const _=bo.get(u);if(_){if(l)l(_,4);else for(const T of _)T();bo.delete(u)}},t?r?g(!0):y=u.run():o?o(g.bind(null,!0),!0):u.run(),b.pause=u.pause.bind(u),b.resume=u.resume.bind(u),b.stop=b,b}function Fn(e,t=1/0,n){if(t<=0||!ke(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Be(e))Fn(e.value,t,n);else if(te(e))for(let r=0;r<e.length;r++)Fn(e[r],t,n);else if(Gn(e)||cr(e))e.forEach(r=>{Fn(r,t,n)});else if(Sh(e)){for(const r in e)Fn(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Fn(e[r],t,n)}return e}function Ii(e,t,n,r){try{return r?e(...r):e()}catch(s){Is(s,t,n)}}function Gt(e,t,n,r){if(le(e)){const s=Ii(e,t,n,r);return s&&Oc(s)&&s.catch(i=>{Is(i,t,n)}),s}if(te(e)){const s=[];for(let i=0;i<e.length;i++)s.push(Gt(e[i],t,n,r));return s}}function Is(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||Ne;if(t){let a=t.parent;const l=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const u=a.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](e,l,c)===!1)return}a=a.parent}if(i){Jn(),Ii(i,null,10,[e,l,c]),Yn();return}}X_(e,n,s,r,o)}function X_(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const St=[];let yn=-1;const gs=[];let rr=null,ss=0;const Jh=Promise.resolve();let vo=null;function gr(e){const t=vo||Jh;return e?t.then(this?e.bind(this):e):t}function Q_(e){let t=yn+1,n=St.length;for(;t<n;){const r=t+n>>>1,s=St[r],i=fi(s);i<e||i===e&&s.flags&2?t=r+1:n=r}return t}function $c(e){if(!(e.flags&1)){const t=fi(e),n=St[St.length-1];!n||!(e.flags&2)&&t>=fi(n)?St.push(e):St.splice(Q_(t),0,e),e.flags|=1,Yh()}}function Yh(){vo||(vo=Jh.then(Xh))}function Al(e){if(!te(e))rr&&e.id===-1?rr.splice(ss+1,0,e):e.flags&1||(gs.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)gs.push(e[t]);Yh()}function xu(e,t,n=yn+1){for(;n<St.length;n++){const r=St[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;St.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function wo(e){if(gs.length){const t=[...new Set(gs)].sort((n,r)=>fi(n)-fi(r));if(gs.length=0,rr){for(let n=0;n<t.length;n++)rr.push(t[n]);return}for(rr=t,ss=0;ss<rr.length;ss++){const n=rr[ss];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}rr=null,ss=0}}const fi=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Xh(e){try{for(yn=0;yn<St.length;yn++){const t=St[yn];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Ii(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;yn<St.length;yn++){const t=St[yn];t&&(t.flags&=-2)}yn=-1,St.length=0,wo(),vo=null,(St.length||gs.length)&&Xh()}}let gt=null,Qh=null;function Eo(e){const t=gt;return gt=e,Qh=e&&e.type.__scopeId||null,t}function Mc(e,t=gt,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Co(-1);const i=Eo(t),o=Kn.length;let a;try{a=e(...s)}finally{for(let l=Kn.length;l>o;l--)ua();Eo(i),r._d&&Co(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function HP(e,t){if(gt===null)return e;const n=fa(gt),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,o,a,l=Ne]=t[s];i&&(le(i)&&(i={mounted:i,updated:i}),i.deep&&Fn(o),r.push({dir:i,instance:n,value:o,oldValue:void 0,arg:a,modifiers:l}))}return e}function bn(e,t,n,r){const s=e.dirs,i=t&&t.dirs;for(let o=0;o<s.length;o++){const a=s[o];i&&(a.oldValue=i[o].value);let l=a.dir[r];l&&(Jn(),Gt(l,n,8,[e.el,a,e,t]),Yn())}}function ur(e,t){if(pt){let n=pt.provides;const r=pt.parent&&pt.parent.provides;r===n&&(n=pt.provides=Object.create(r)),n[e]=t}}function ct(e,t,n=!1){const r=ln();if(r||Fr){let s=Fr?Fr._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&le(t)?t.call(r&&r.proxy):t}}function ra(){return!!(ln()||Fr)}const Z_=Symbol.for("v-scx"),ey=()=>ct(Z_);function ty(e,t){return Uc(e,null,t)}function Ut(e,t,n){return Uc(e,t,n)}function Uc(e,t,n=Ne){const{immediate:r,deep:s,flush:i,once:o}=n,a=it({},n),l=t&&r||!t&&i!=="post";let c;if(Wr){if(i==="sync"){const d=ey();c=d.__watcherHandles||(d.__watcherHandles=[])}else if(!l){const d=()=>{};return d.stop=kn,d.resume=kn,d.pause=kn,d}}const u=pt;a.call=(d,p,m)=>Gt(d,u,p,m);let f=!1;
vendor: 1,326 bytes, line 2
2i==="post"?a.scheduler=d=>{Ze(d,u&&u.suspense)}:i!=="sync"&&(f=!0,a.scheduler=(d,p)=>{p?d():$c(d)}),a.augmentJob=d=>{t&&(d.flags|=4),f&&(d.flags|=2,u&&(d.id=u.uid,d.i=u))};const h=Y_(e,t,a);return Wr&&(c?c.push(h):l&&h()),h}function ny(e,t,n){const r=this.proxy,s=$e(e)?e.includes(".")?Zh(r,e):()=>r[e]:e.bind(r,r);let i;le(t)?i=t:(i=t.handler,n=t);const o=Ls(this),a=Uc(s,i.bind(r),n);return o(),a}function Zh(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}const nr=new WeakMap,ep=Symbol("_vte"),sa=e=>e.__isTeleport,Lr=e=>e&&(e.disabled||e.disabled===""),ry=e=>e&&(e.defer||e.defer===""),Nu=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Du=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,kl=(e,t)=>{const n=e&&e.to;return $e(n)?t?t(n):null:n},sy={name:"Teleport",__isTeleport:!0,process(e,t,n,r,s,i,o,a,l,c){const{mc:u,pc:f,pbc:h,o:{insert:d,querySelector:p,createText:m,createComment:v,parentNode:b}}=c,y=Lr(t.props);let{dynamicChildren:g}=t;const _=(k,j,N)=>{k.shapeFlag&16&&u(k.children,j,N,s,i,o,a,l)},T=(k=t)=>{const j=Lr(k.props),N=k.target=kl(k.props,p),H=Rl(N,k,m,d);N&&(o!=="svg"&&Nu(N)?o="svg":o!=="mathml"&&Du(N)&&(o="mathml"),s&&s.isCE&&(s.ce._teleportTargets||(s.ce._teleportTargets=new Set)).add(N),j||(_(k,N,H),zs(k,!1)))},R=k=>{const j=()=>
2{if(nr.get(k)===j){if(nr.delete(k),Lr(k.props)){const N=b(k.el)||n;_(k,N,k.anchor),zs(k,!0)}T(k)}};nr.set(k,j),Ze(j,i)};if(e==null){const k=t.el=m(""),j=t.anchor=m("");if(d(k,n,r),d(j,n,r),ry(t.props)||i&&i.pendingBranch){R(t);return}y&&(_(t,n,j),zs(t,!0)),T()}else{t.el=e.el;const k=t.anchor=e.anchor,j=nr.get(e);if(j){j.flags|=8,nr.delete(e),R(t);return}t.targetStart=e.targetStart;const N=t.target=e.target,H=t.targetAnchor=e.targetAnchor,F=Lr(e.props),M=F?n:N,J=F?k:H;if(o==="svg"||Nu(N)?o="svg":(o==="mathml"||Du(N))&&(o="mathml"),g?(h(e.dynamicChildren,g,M,s,i,o,a),Vc(e,t,!0)):l||f(e,t,M,J,s,i,o,a,!1),y)F?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Vi(t,n,k,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const ne=kl(t.props,p);ne&&(t.target=ne,Vi(t,ne,null,c,0))}else F&&Vi(t,N,H,c,1);zs(t,y)}},remove(e,t,n,{um:r,o:{remove:s}},i){const{shapeFlag:o,children:a,anchor:l,targetStart:c,targetAnchor:u,target:f,props:h}=e,d=Lr(h),p=i||!d,m=nr.get(e);if(m&&(m.flags|=8,nr.delete(e)),f&&(s(c),s(u)),i&&s(l),!m&&(d||f)&&o&16)for(let v=0;v<a.length;v++){const b=a[v];r(b,t,n,p,!!b.dynamicChildren)}},move:Vi,hydrate:iy};function Vi(e,t,n,{o:{insert:r},m:s},i=2){i===0&&r(e.targetAnchor,t,n);const{el:o,anchor:a,shapeFlag:l,children:c,props:u}=e,f=i===2;if(f&&r(o,t,n),!nr.has(e)&&(!f||Lr(u))&&l&16)for(let h=0;h<c.length;h++)s(c[h],t,n,2);f&&r(a,t,n)}function iy(e,t,n,r,s,i,{o:{nextSibling:o,parentNode:a,querySelector:l,insert:c,createText:u}},f){function h(v,b){let y=b;for(;y;){if(y&&y.nodeType===8){if(y.data==="teleport start anchor")t.targetStart=y;else if(y.data==="teleport anchor"){t.targetAnchor=y,v._lpa=t.targetAnchor&&o(t.targetAnchor);break}}y=o(y)}}function d(v,b){b.anchor=f(o(v),b,a(v),n,r,s,i)}const p=t.target=kl(t.props,l),m=Lr(t.props);if(p){const v=p._lpa||p.firstChild;t.shapeFlag&16&&(m?(d(e,t),h(p,v),t.targetAnchor||Rl(p,t,u,c,a(e)===p?e:null)):(t.anchor=o(e),h(p,v),t.targetAnchor||Rl(p,t,u,c),f(v&&o(v),t,p,n,r,s,i))),zs(t,m)}else m&&t.shapeFlag&16&&(d(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}const VP=sy;function zs(e,t){const n=e.ctx;if(n&&n.ut){let r,s;for(t?(r=e.el,s=e.anchor):(r=e.targetStart,s=e.targetAnchor);r&&r!==s;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function Rl(e,t,n,r,s=null){const i=t.targetStart=n(""),o=t.targetAnchor=n("");return i[ep]=o,e&&(r(i,e,s),r(o,e,s)),o}const Vt=Symbol("_leaveCb"),Ms=Symbol("_enterCb");function oy(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return oa(()=>{e.isMounted=!0}),xi(()=>{e.isUnmounting=!0}),e}const Bt=[Function,Array],tp={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Bt,onEnter:Bt,onAfterEnter:Bt,onEnterCancelled:Bt,onBeforeLeave:Bt,onLeave:Bt,onAfterLeave:Bt,onLeaveCancelled:Bt,onBeforeAppear:Bt,onAppear:Bt,onAfterAppear:Bt,onAppearCancelled:Bt},np=e=>{const t=e.subTree;return t.component?np(t.component):t},ay={name:"BaseTransition",props:tp,setup(e,{slots:t}){const n=ln(),r=oy();return()=>{const s=t.default&&ip(t.default(),!0),i=s&&s.length?rp(s):n.subTree?ob():void 0;if(!i)return;const o=Se(e),{mode:a}=o;if(r.isLeaving)return $a(i);const l=To(i);if(!l)return $a(i);let c=Ol(l,o,r,n,f=>c=f);l.type!==Je&&ws(l,c);let u=n.subTree&&To(n.subTree);if(u&&u.type!==Je&&!rn(u,l)&&np(n).type!==Je){let f=Ol(u,o,r,n);if(ws(u,f),a==="out-in"&&l.type!==Je)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,u=void 0},$a(i);a==="in-out"&&l.type!==Je?f.delayLeave=(h,d,p)=>{const m=sp(r,u);m[String(u.key)]=u,h[Vt]=()=>{d(),h[Vt]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{p(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return i}}};function rp(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Je){t=n;break}}return t}const ly=ay;function sp(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 Ol(e,t,n,r,s){const{appear:i,mode:o,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:h,onLeave:d,onAfterLeave:p,onLeaveCancelled:m,onBeforeAppear:v,onAppear:b,onAfterAppear:y,onAppearCancelled:g}=t,_=String(e.key),T=sp(n,e),R=(N,H)=>{N&&Gt(N,r,9,H)},k=(N,H)=>{const F=H[1];R(N,H),te(N)?N.every(M=>M.length<=1)&&F():N.length<=1&&F()},j={mode:o,persisted:a,beforeEnter(N){let H=l;if(!n.isMounted)if(i)H=v||l;else return;N[Vt]&&N[Vt](!0);const F=T[_];F&&rn(e,F)&&F.el[Vt]&&F.el[Vt](),R(H,[N])},enter(N){if(T[_]===e)return;let H=c,F=u,M=f;if(!n.isMounted)if(i)H=b||c,F=y||u,M=g||f;else return;let J=!1;N[Ms]=he=>{J||(J=!0,he?R(M,[N]):R(F,[N]),j.delayedLeave&&j.delayedLeave(),N[Ms]=void 0)};const ne=N[Ms].bind(null,!1);H?k(H,[N,ne]):ne()},leave(N,H){const F=String(e.key);if(N[Ms]&&N[Ms](!0),n.isUnmounting)return H();R(h,[N]);let M=!1;N[Vt]=ne=>{M||(M=!0,H(),ne?R(m,[N]):R(p,[N]),N[Vt]=void 0,T[F]===e&&delete T[F])};const J=N[Vt].bind(null,!1);T[F]=e,d?k(d,[N,J]):J()},clone(N){const H=Ol(N,t,n,r,s);return s&&s(H),H}};return j}function $a(e){if(Li(e))return e=Xn(e),e.children=null,e}function To(e){if(!Li(e))return sa(e.type)&&e.children?rp(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&&le(n.default))return n.default()}}function ws(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const n=e.component.subTree;ws(sa(n.type)&&To(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ip(e,t=!1,n){let r=[],s=0;for(let i=0;i<e.length;i++){let o=e[i];const a=n==null?o.key:String(n)+String(o.key!=null?o.key:i);o.type===ht?(o.patchFlag&128&&s++,r=r.concat(ip(o.children,t,a))):(t||o.type!==Je)&&r.push(a!=null?Xn(o,{key:a}):o)}if(s>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}function Yt(e,t){return le(e)?it({name:e.name},t,{setup:e}):e}
2function jc(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function $u(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const So=new WeakMap;function ms(e,t,n,r,s=!1){if(te(e)){e.forEach((m,v)=>ms(m,t&&(te(t)?t[v]:t),n,r,s));return}if(qn(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&ms(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?fa(r.component):r.el,o=s?null:i,{i:a,r:l}=e,c=t&&t.r,u=a.refs===Ne?a.refs={}:a.refs,f=a.setupState,h=Se(f),d=f===Ne?Eh:m=>$u(u,m)?!1:Pe(h,m),p=(m,v)=>!(v&&$u(u,v));if(c!=null&&c!==l){if(Mu(t),$e(c))u[c]=null,d(c)&&(f[c]=null);else if(Be(c)){const m=t;p(c,m.k)&&(c.value=null),m.k&&(u[m.k]=null)}}if(le(l))Ii(l,a,12,[o,u]);else{const m=$e(l),v=Be(l);if(m||v){const b=()=>{if(e.f){const y=m?d(l)?f[l]:u[l]:p()||!e.k?l.value:u[e.k];if(s)te(y)&&Rc(y,i);else if(te(y))y.includes(i)||y.push(i);else if(m)u[l]=[i],d(l)&&(f[l]=u[l]);else{const g=[i];p(l,e.k)&&(l.value=g),e.k&&(u[e.k]=g)}}else m?(u[l]=o,d(l)&&(f[l]=o)):v&&(p(l,e.k)&&(l.value=o),e.k&&(u[e.k]=o))};if(o){const y=()=>{b(),So.delete(e)};y.id=-1,So.set(e,y),Ze(y,n)}else Mu(e),b()}}}function Mu(e){const t=So.get(e);t&&(t.flags|=8,So.delete(e))}let Uu=!1;const Qr=()=>{Uu||(console.error("Hydration completed but contains mismatches."),Uu=!0)},cy=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",uy=e=>e.namespaceURI.includes("MathML"),Wi=e=>{if(e.nodeType===1){if(cy(e))return"svg";if(uy(e))return"mathml"}},ds=e=>e.nodeType===8;function fy(e){const{mt:t,p:n,o:{patchProp:r,createText:s,nextSibling:i,parentNode:o,remove:a,insert:l,createComment:c}}=e,u=(g,_)=>{if(!_.hasChildNodes()){n(null,g,_),wo(),_._vnode=g;return}f(_.firstChild,g,null,null,null),wo(),_._vnode=g},f=(g,_,T,R,k,j=!1)=>{j=j||!!_.dynamicChildren;const N=ds(g)&&g.data==="[",H=()=>m(g,_,T,R,k,N),{type:F,ref:M,shapeFlag:J,patchFlag:ne}=_;let he=g.nodeType;_.el=g,ne===-2&&(j=!1,_.dynamicChildren=null);let Y=null;switch(F){case fr:he!==3?_.children===""?(l(_.el=s(""),o(g),g),Y=g):Y=H():(g.data!==_.children&&(Qr(),g.data=_.children),Y=i(g));break;case Je:y(g)?(Y=i(g),b(_.el=g.content.firstChild,g,T)):he!==8||N?Y=H():Y=i(g);break;case ys:if(N&&(g=i(g),he=g.nodeType),he===1||he===3){Y=g;const ae=!_.children.length;for(let re=0;re<_.staticCount;re++)ae&&(_.children+=Y.nodeType===1?Y.outerHTML:Y.data),re===_.staticCount-1&&(_.anchor=Y),Y=i(Y);return N?i(Y):Y}else H();break;case ht:N?Y=p(g,_,T,R,k,j):Y=H();break;default:if(J&1)(he!==1||_.type.toLowerCase()!==g.tagName.toLowerCase())&&!y(g)?Y=H():Y=h(g,_,T,R,k,j);else if(J&6){_.slotScopeIds=k;const ae=o(g);if(N?Y=v(g):ds(g)&&g.data==="teleport start"?Y=v(g,g.data,"teleport end"):Y=i(g),t(_,ae,null,T,R,Wi(ae),j),(qn(_)||_.component.asyncDep)&&!_.component.subTree){let re;N?(re=We(ys),re.anchor=Y?Y.previousSibling:ae.lastChild):re=g.nodeType===3?Up(""):We(g.nodeType===8?Je:"div"),re.el=g,_.component.subTree=re}}else J&64?he!==8?Y=H():Y=_.type.hydrate(g,_,T,R,k,j,e,d):J&128&&(Y=_.type.hydrate(g,_,T,R,Wi(o(g)),k,j,e,f))}return M!=null&&ms(M,null,R,_),Y},h=(g,_,T,R,k,j)=>{j=j||!!_.dynamicChildren;const{type:N,dynamicProps:H,props:F,patchFlag:M,shapeFlag:J,dirs:ne,transition:he}=_,Y=N==="input"||N==="option",ae=!!H;if(Y||ae||M!==-1){ne&&bn(_,null,T,"created");let re=!1;if(y(g)){re=Cp(null,he)&&T&&T.vnode.props&&T.vnode.props.appear;const ge=g.content.firstChild;if(re){const ce=ge.getAttribute("class");ce&&(ge.$cls=ce),he.beforeEnter(ge)}b(ge,g,T),_.el=g=ge}if(J&16&&!(F&&(F.innerHTML||F.textContent))){let ge=d(g.firstChild,_,g,T,R,k,j);for(ge&&!po(g,1)&&Qr();ge;){const ce=ge;ge=ge.nextSibling,a(ce)}}else if(J&8){let ge=_.children;ge[0]===` 3`&&(g.tagName==="PRE"||g.tagName==="TEXTAREA")&&(ge=ge.slice(1));const{textContent:ce}=g;ce!==ge&&ce!==ge.replace(/\r\n|\r/g,` 4`)&&(po(g,0)||Qr(),g.textContent=_.children)}if(F){if(Y||ae||!j||M&48){const ge=g.tagName.includes("-"),ce=g.namespaceURI.includes("svg")?"svg":g.namespaceURI.includes("MathML")?"mathml":void 0;for(const be in F)if(Y&&(be.endsWith("value")||be==="indeterminate")||Pi(be)&&!Ur(be)||be[0]==="."||ge&&!Ur(be)||H&&H.includes(be)){if(hy(g,be,F[be]))continue;r(g,be,null,F[be],ce,T)}}else if(F.onClick)r(g,"onClick",null,F.onClick,void 0,T);else if(M&4&&Wn(F.style))for(const ge in F.style)F.style[ge]}let ye;(ye=F&&F.onVnodeBeforeMount)&&It(ye,T,_),ne&&bn(_,null,T,"beforeMount"),((ye=F&&F.onVnodeMounted)||ne||re)&&xp(()=>{ye&&It(ye,T,_),re&&he.enter(g),ne&&bn(_,null,T,"mounted")},R)}return g.nextSibling},d=(g,_,T,R,k,j,N)=>{N=N||!!_.dynamicChildren;const H=_.children,F=H.length;let M=!1;for(let J=0;J<F;J++){const ne=N?H[J]:H[J]=Dt(H[J]),he=ne.type===fr;g?(he&&!N&&J+1<F&&Dt(H[J+1]).type===fr&&(l(s(g.data.slice(ne.children.length)),T,i(g)),g.data=ne.children),g=f(g,ne,R,k,j,N)):he&&!ne.children?l(ne.el=s(""),T):(M||(M=!0,po(T,1)||Qr()),n(null,ne,T,null,R,k,Wi(T),j))}return g},p=(g,_,T,R,k,j)=>{const{slotScopeIds:N}=_;N&&(k=k?k.concat(N):N);const H=o(g),F=d(i(g),_,H,T,R,k,j);return F&&ds(F)&&F.data==="]"?i(_.anchor=F):(Qr(),l(_.anchor=c("]"),H,F),F)},m=(g,_,T,R,k,j)=>{if(gy(g,_)||Qr(),_.el=null,j){const F=v(g);for(;;){const M=i(g);if(M&&M!==F)a(M);else break}}const N=i(g),H=o(g);return a(g),n(null,_,H,N,T,R,Wi(H),k),T&&(T.vnode.el=_.el,ca(T,_.el)),N},v=(g,_="[",T="]")=>{let R=0;for(;g;
4)if(g=i(g),g&&ds(g)&&(g.data===_&&R++,g.data===T)){if(R===0)return i(g);R--}return g},b=(g,_,T)=>{const R=_.parentNode;R&&R.replaceChild(g,_);let k=T;for(;k;)k.vnode.el===_&&(k.vnode.el=k.subTree.el=g),k=k.parent},y=g=>g.nodeType===1&&g.tagName==="TEMPLATE";return[u,f]}const dy=new Set(["src","srcset","href","poster"]);function hy(e,t,n){return dy.has(t)?e.getAttribute(t)===(n==null?null:`${n}`):!1}const Ao="data-allow-mismatch",py={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function po(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Ao);)e=e.parentElement;return Fc(e&&e.getAttribute(Ao),t)}function Fc(e,t){if(e==null)return!1;if(e==="")return!0;{const n=e.split(",");return t===0&&n.includes("children")?!0:n.includes(py[t])}}function gy(e,t){return po(e.parentElement,1)||my(e)||_y(t)}function my(e){return e.nodeType===1&&Fc(e.getAttribute(Ao),1)}function _y({props:e}){const t=e&&e[Ao];return typeof t=="string"&&Fc(t,1)}Yo().requestIdleCallback;Yo().cancelIdleCallback;function yy(e,t){if(ds(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(ds(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const qn=e=>!!e.type.__asyncLoader;function Dn(e){le(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:s=200,hydrate:i,timeout:o,suspensible:a=!0,onError:l}=e;let c=null,u,f=0;const h=()=>(f++,c=null,d()),d=()=>{let p;return c||(p=c=t().catch(m=>{if(m=m instanceof Error?m:new Error(String(m)),l)return new Promise((v,b)=>{l(m,()=>v(h()),()=>b(m),f+1)});throw m}).then(m=>p!==c&&c?c:(m&&(m.__esModule||m[Symbol.toStringTag]==="Module")&&(m=m.default),u=m,m)))};return Yt({name:"AsyncComponentWrapper",__asyncLoader:d,__asyncHydrate(p,m,v){const b=p.isConnected;let y=!1;(m.bu||(m.bu=[])).push(()=>y=!0);const g=()=>{y||!p.parentNode||b&&!p.isConnected||v()},_=i?()=>{const T=i(g,R=>yy(p,R));T&&(m.bum||(m.bum=[])).push(T)}:g;u?_():d().then(()=>!m.isUnmounted&&_())},get __asyncResolved(){return u},setup(){const p=pt;if(jc(p),u)return()=>qi(u,p);const m=T=>{c=null,Is(T,p,13,!r)};if(a&&p.suspense||Wr)return d().then(T=>()=>qi(T,p)).catch(T=>(m(T),()=>r?We(r,{error:T}):null));const v=kt(!1),b=kt(),y=kt(!!s);let g,_;return aa(()=>{g!=null&&clearTimeout(g),_!=null&&clearTimeout(_)}),s&&(_=setTimeout(()=>{p.isUnmounted||(y.value=!1)},s)),o!=null&&(g=setTimeout(()=>{if(!p.isUnmounted&&!v.value&&!b.value){const T=new Error(`Async component timed out after ${o}ms.`);m(T),b.value=T}},o)),d().then(()=>{p.isUnmounted||(v.value=!0,p.parent&&Li(p.parent.vnode)&&p.parent.update())}).catch(T=>{if(p.isUnmounted){c=null;return}m(T),b.value=T}),()=>{if(v.value&&u)return qi(u,p);if(b.value&&r)return We(r,{error:b.value});if(n&&!y.value)return qi(n,p)}}})}function qi(e,t){const{ref:n,props:r,children:s,ce:i}=t.vnode,o=We(e,r,s);return o.ref=n,o.ce=i,delete t.vnode.ce,o}const Li=e=>e.type.__isKeepAlive,by={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=ln(),r=n.ctx;if(!r.renderer)return()=>{const y=t.default&&t.default();return y&&y.length===1?y[0]:y};const s=new Map,i=new Set;let o=null;const a=n.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:f}}}=r,h=f("div");r.activate=(y,g,_,T,R)=>{const k=y.component;c(y,g,_,0,a),l(k.vnode,y,g,_,k,a,T,y.slotScopeIds,R),Ze(()=>{k.isDeactivated=!1,k.a&&ps(k.a);const j=y.props&&y.props.onVnodeMounted;j&&It(j,k.parent,y)},a)},r.deactivate=y=>{const g=y.component;Ro(g.m),Ro(g.a),c(y,h,null,1,a),Ze(()=>{g.da&&ps(g.da);const _=y.props&&y.props.onVnodeUnmounted;_&&It(_,g.parent,y),g.isDeactivated=!0},a)};function d(y){Ma(y),u(y,n,a,!0)}function p(y){s.forEach((g,_)=>{const T=Dl(qn(g)?g.type.__asyncResolved||{}:g.type);T&&!y(T)&&m(_)})}function m(y){const g=s.get(y);g&&(!o||!rn(g,o))?d(g):o&&Ma(o),s.delete(y),i.delete(y)}Ut(()=>[e.include,e.exclude],([y,g])=>{y&&p(_=>Js(y,_)),g&&p(_=>!Js(g,_))},{flush:"post",deep:!0});let v=null;const b=()=>{v!=null&&(Oo(n.subTree.type)?Ze(()=>{const y=Ki(n.subTree);y.component&&s.set(v,y)},n.subTree.suspense):s.set(v,Ki(n.subTree)))};return oa(b),cp(b),xi(()=>
vendor: 7,123 bytes, line 4
4{s.forEach(y=>{const{subTree:g,suspense:_}=n,T=Ki(g);if(y.type===T.type&&y.key===T.key){Ma(T);const R=T.component.da;R&&Ze(R,_);return}d(y)})}),()=>{if(v=null,!t.default)return o=null;const y=t.default(),g=y[0];if(y.length>1)return o=null,y;if(!Vr(g)||!(g.shapeFlag&4)&&!(g.shapeFlag&128))return o=null,g;let _=Ki(g);if(_.type===Je)return o=null,_;const T=_.type,R=Dl(qn(_)?_.type.__asyncResolved||{}:T),{include:k,exclude:j,max:N}=e;if(k&&(!R||!Js(k,R))||j&&R&&Js(j,R))return _.shapeFlag&=-257,o=_,g;const H=_.key==null?T:_.key,F=s.get(H);return _.el&&(_=Xn(_),g.shapeFlag&128&&(g.ssContent=_)),v=H,F?(_.el=F.el,_.component=F.component,_.transition&&ws(_,_.transition),_.shapeFlag|=512,i.delete(H),i.add(H)):(i.add(H),N&&i.size>parseInt(N,10)&&m(i.values().next().value)),_.shapeFlag|=256,o=_,Oo(g.type)?g:_}}},vy=by;function Js(e,t){return te(e)?e.some(n=>Js(n,t)):$e(e)?e.split(",").includes(t):l_(e)?(e.lastIndex=0,e.test(t)):!1}function op(e,t){lp(e,"a",t)}function ap(e,t){lp(e,"da",t)}function lp(e,t,n=pt){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(ia(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Li(s.parent.vnode)&&wy(r,t,n,s),s=s.parent}}function wy(e,t,n,r){const s=ia(t,e,r,!0);aa(()=>{Rc(r[t],s)},n)}function Ma(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Ki(e){return e.shapeFlag&128?e.ssContent:e}function ia(e,t,n=pt,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{Jn();const a=Ls(n),l=Gt(t,n,e,o);return a(),Yn(),l});return r?s.unshift(i):s.push(i),i}}const Qn=e=>(t,n=pt)=>{(!Wr||e==="sp")&&ia(e,(...r)=>t(...r),n)},Ey=Qn("bm"),oa=Qn("m"),Ty=Qn("bu"),cp=Qn("u"),xi=Qn("bum"),aa=Qn("um"),Sy=Qn("sp"),Ay=Qn("rtg"),ky=Qn("rtc");function up(e,t=pt){ia("ec",e,t)}const fp="components";function WP(e,t){return hp(fp,e,!0,t)||e}const dp=Symbol.for("v-ndc");function Ry(e){return $e(e)?hp(fp,e,!1)||e:e||dp}function hp(e,t,n=!0,r=!1){const s=gt||pt;if(s){const i=s.type;{const a=Dl(i,!1);if(a&&(a===t||a===At(t)||a===zo(At(t))))return i}const o=ju(s[e]||i[e],t)||ju(s.appContext[e],t);return!o&&r?i:o}}function ju(e,t){return e&&(e[t]||e[At(t)]||e[zo(At(t))])}function qP(e,t,n,r){let s;const i=n,o=te(e);if(o||$e(e)){const a=o&&Wn(e);let l=!1,c=!1;a&&(l=!Mt(e),c=an(e),e=ta(e)),s=new Array(e.length);for(let u=0,f=e.length;u<f;u++)s[u]=t(l?c?pr(Kt(e[u])):Kt(e[u]):e[u],u,void 0,i)}else if(typeof e=="number"){s=new Array(e);for(let a=0;a<e;a++)s[a]=t(a+1,a,void 0,i)}else if(ke(e))if(e[Symbol.iterator])s=Array.from(e,(a,l)=>t(a,l,void 0,i));else{const a=Object.keys(e);s=new Array(a.length);for(let l=0,c=a.length;l<c;l++){const u=a[l];s[l]=t(e[u],u,l,i)}}else s=[];return s}function KP(e,t,n,r,s,i){if(n==null&&(n={}),gt.ce||gt.parent&&qn(gt.parent)&>.parent.ce){const c=n,u=Object.keys(c).length>0;return t!=="default"&&(c.name=t),Wt(),En(ht,null,[We("slot",c,r&&r())],u?-2:64)}let o=e[t];o&&o._c&&(o._d=!1);const a=Kn.length;Wt();let l;try{const c=o&&pp(o(n)),u=n.key||i||c&&c.key;l=En(ht,{key:(u&&!jt(u)?u:`_${t}`)+(!c&&r?"_fb":"")},c||(r?r():[]),c&&e._===1?64:-2)}catch(c){for(let u=Kn.length;u>a;u--)ua();throw c}finally{o&&o._c&&(o._d=!0)}return!s&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),l}function pp(e){return e.some(t=>Vr(t)?!(t.type===Je||t.type===ht&&!pp(t.children)):!0)?e:null}const Cl=e=>e?Fp(e)?fa(e):Cl(e.parent):null,ni=it(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=>Cl(e.parent),$root:e=>Cl(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>mp(e),$forceUpdate:e=>e.f||(e.f=()=>{$c(e.update)}),$nextTick:e=>e.n||(e.n=gr.bind(e.proxy)),$watch:e=>ny.bind(e)}),Ua=(e,t)=>e!==Ne&&!e.__isScriptSetup&&Pe(e,t),Oy={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:i,accessCache:o,type:a,appContext:l}=e;if(t[0]!=="$"){const h=o[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(Ua(r,t))return o[t]=1,r[t];if(s!==Ne&&Pe(s,t))return o[t]=2,s[t];if(Pe(i,t))return o[t]=3,i[t];if(n!==Ne&&Pe(n,t))return o[t]=4,n[t];Pl&&(o[t]=0)}}const c=ni[t];let u,f;if(c)return t==="$attrs"&&yt(e.attrs,"get",""),c(e);if((u=a.__cssModules)&&(u=u[t]))return u;if(n!==Ne&&Pe(n,t))return o[t]=4,n[t];if(f=l.config.globalProperties,Pe(f,t))return f[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return Ua(s,t)?(s[t]=n,!0):r!==Ne&&Pe(r,t)?(r[t]=n,!0):Pe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,props:i,type:o}},a){let l;return!!(n[a]||e!==Ne&&a[0]!=="$"&&Pe(e,a)||Ua(t,a)||Pe(i,a)||Pe(r,a)||Pe(ni,a)||Pe(s.config.globalProperties,a)||(l=o.__cssModules)&&l[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Pe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Fu(e){return te(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function GP(e){const t=ln(),n=Wr;let r=e();hi(),n&&dr(!1);const s=()=>{Ls(t),n&&dr(!0)},i=()=>{ln()!==t&&t.scope.off(),hi(),n&&dr(!1)};return Oc(r)&&(r=r.catch(o=>{throw s(),Promise.resolve().then(()=>Promise.resolve().then(i)),o})),[r,()=>{s(),Promise.resolve().then(i)}]}let Pl=!0;function Cy(e){const t=mp(e),n=e.proxy,r=e.ctx;Pl=!1,t.beforeCreate&&Bu(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:a,provide:l,inject:c,created:u,beforeMount:f,mounted:h,beforeUpdate:d,updated:p,activated:m,deactivated:v,beforeDestroy:b,beforeUnmount:y,destroyed:g,unmounted:_,render:T,renderTracked:R,renderTriggered:k,errorCaptured:j,serverPrefetch:N,expose:H,inheritAttrs:F,components:M,directives:J,filters:ne}=t;if(c&&Py(c,r,null),o)for(const ae in o){const re=o[ae];le(re)&&(r[ae]=re.bind(n))}if(s){const ae=s.call(n,n);ke(ae)&&(e.data=_r(ae))}if(Pl=!0,i)for(const ae in i){const re=i[ae],ye=le(re)?re.bind(n,n):le(re.get)?re.get.bind(n,n):kn,ge=!le(re)&&le(re.set)?re.set.bind(n):kn,ce=ve({get:ye,set:ge});Object.defineProperty(r,ae,{enumerable:!0,configurable:!0,get:()=>ce.value,set:be=>ce.value=be})}if(a)for(const ae in a)gp(a[ae],r,n,ae);if(l){const ae=le(l)?l.call(n):l;Reflect.ownKeys(ae).forEach(re=>{ur(re,ae[re])})}u&&Bu(u,e,"c");function Y(ae,re){te(re)?re.forEach(ye=>ae(ye.bind(n))):re&&ae(re.bind(n))}if(Y(Ey,f),Y(oa,h),Y(Ty,d),Y(cp,p),Y(op,m),Y(ap,v),Y(up,j),Y(ky,R),Y(Ay,k),Y(xi,y),Y(aa,_),Y(Sy,N),te(H))if(H.length){const ae=e.exposed||(e.exposed={});H.forEach(re=>{Object.defineProperty(ae,re,{get:()=>n[re],set:ye=>n[re]=ye,enumerable:!0})})}else e.exposed||(e.exposed={});T&&e.render===kn&&(e.render=T),F!=null&&(e.inheritAttrs=F),M&&(e.components=M),J&&(e.directives=J),N&&jc(e)}function Py(e,t,n=kn){te(e)&&(e=Il(e));for(const r in e){const s=e[r];let i;ke(s)?"default"in s?i=ct(s.from||r,s.default,!0):i=ct(s.from||r):i=ct(s),Be(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function Bu(e,t,n){Gt(te(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function gp(e,t,n,r){let s=r.includes(".")?Zh(n,r):()=>n[r];if($e(e)){const i=t[e];le(i)&&Ut(s,i)}else if(le(e))Ut(s,e.bind(n));else if(ke(e))if(te(e))e.forEach(i=>
vendor: 4,544 bytes, line 4
4gp(i,t,n,r));else{const i=le(e.handler)?e.handler.bind(n):t[e.handler];le(i)&&Ut(s,i,e)}}function mp(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,a=i.get(t);let l;return a?l=a:!s.length&&!n&&!r?l=t:(l={},s.length&&s.forEach(c=>ko(l,c,o,!0)),ko(l,t,o)),ke(t)&&i.set(t,l),l}function ko(e,t,n,r=!1){const{mixins:s,extends:i}=t;i&&ko(e,i,n,!0),s&&s.forEach(o=>ko(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const a=Iy[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const Iy={data:Hu,props:Vu,emits:Vu,methods:Ys,computed:Ys,beforeCreate:Et,created:Et,beforeMount:Et,mounted:Et,beforeUpdate:Et,updated:Et,beforeDestroy:Et,beforeUnmount:Et,destroyed:Et,unmounted:Et,activated:Et,deactivated:Et,errorCaptured:Et,serverPrefetch:Et,components:Ys,directives:Ys,watch:xy,provide:Hu,inject:Ly};function Hu(e,t){return t?e?function(){return it(le(e)?e.call(this,this):e,le(t)?t.call(this,this):t)}:t:e}function Ly(e,t){return Ys(Il(e),Il(t))}function Il(e){if(te(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Et(e,t){return e?[...new Set([].concat(e,t))]:t}function Ys(e,t){return e?it(Object.create(null),e,t):t}function Vu(e,t){return e?te(e)&&te(t)?[...new Set([...e,...t])]:it(Object.create(null),Fu(e),Fu(t??{})):t}function xy(e,t){if(!e)return t;if(!t)return e;const n=it(Object.create(null),e);for(const r in t)n[r]=Et(e[r],t[r]);return n}function _p(){return{app:null,config:{isNativeTag:Eh,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 Ny=0;function Dy(e,t){return function(r,s=null){le(r)||(r=it({},r)),s!=null&&!ke(s)&&(s=null);const i=_p(),o=new WeakSet,a=[];let l=!1;const c=i.app={_uid:Ny++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:gb,get config(){return i.config},set config(u){},use(u,...f){return o.has(u)||(u&&le(u.install)?(o.add(u),u.install(c,...f)):le(u)&&(o.add(u),u(c,...f))),c},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),c},component(u,f){return f?(i.components[u]=f,c):i.components[u]},directive(u,f){return f?(i.directives[u]=f,c):i.directives[u]},mount(u,f,h){if(!l){const d=c._ceVNode||We(r,s);return d.appContext=i,h===!0?h="svg":h===!1&&(h=void 0),f&&t?t(d,u):e(d,u,h),l=!0,c._container=u,u.__vue_app__=c,fa(d.component)}},onUnmount(u){a.push(u)},unmount(){l&&(Gt(a,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,f){return i.provides[u]=f,c},runWithContext(u){const f=Fr;Fr=c;try{return u()}finally{Fr=f}}};return c}}let Fr=null;const $y=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${At(t)}Modifiers`]||e[`${mr(t)}Modifiers`];function My(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Ne;let s=n;const i=t.startsWith("update:"),o=i&&$y(r,t.slice(7));o&&(o.trim&&(s=n.map(u=>$e(u)?u.trim():u)),o.number&&(s=s.map(Jo)));let a,l=r[a=Ia(t)]||r[a=Ia(At(t))];!l&&i&&(l=r[a=Ia(mr(t))]),l&&Gt(l,e,6,s);const c=r[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Gt(c,e,6,s)}}const Uy=new WeakMap;function yp(e,t,n=!1){const r=n?Uy:t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let o={},a=!1;if(!le(e)){const l=c=>{const u=yp(c,t,!0);u&&(a=!0,it(o,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(ke(e)&&r.set(e,null),null):(te(i)?i.forEach(l=>o[l]=null):it(o,i),ke(e)&&r.set(e,o),o)}function la(e,t){return!e||!Pi(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),Pe(e,t[0].toLowerCase()+t.slice(1))||Pe(e,mr(t))||Pe(e,t))}function ja(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:o,attrs:a,emit:l,render:c,renderCache:u,props:f,data:h,setupState:d,ctx:p,inheritAttrs:m}=e,v=Eo(e);let b,y;try{if(n.shapeFlag&4){const _=s||r,T=_;b=Dt(c.call(T,_,u,f,d,h,p)),y=a}else{const _=t;b=Dt(_.length>1?_(f,{attrs:a,slots:o,emit:l}):_(f,null)),y=t.props?a:Fy(a)}}catch(_){Kn.length=0,Is(_,e,1),b=We(Je)}let g=b;if(y&&m!==!1){const _=Object.keys(y),{shapeFlag:T}=g;_.length&&T&7&&(i&&_.some(qo)&&(y=By(y,i)),g=Xn(g,y,!1,!0))}if(n.dirs&&(g=Xn(g,null,!1,!0),g.dirs=g.dirs?g.dirs.concat(n.dirs):n.dirs),n.transition){const _=sa(g.type)&&To(g)||g;ws(_,n.transition)}return b=g,Eo(v),b}function jy(e,t=!0){let n;for(let r=0;r<e.length;r++){const s=e[r];
vendor: 4,102 bytes, line 4
4if(Vr(s)){if(s.type!==Je||s.children==="v-if"){if(n)return;n=s}}else return}return n}const Fy=e=>{let t;for(const n in e)(n==="class"||n==="style"||Pi(n))&&((t||(t={}))[n]=e[n]);return t},By=(e,t)=>{const n={};for(const r in e)(!qo(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Hy(e,t,n){const{props:r,children:s,component:i}=e,{props:o,children:a,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Wu(r,o,c):!!o;if(l&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const h=u[f];if(bp(o,r,h)&&!la(c,h))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:r===o?!1:r?o?Wu(r,o,c):!0:!!o;return!1}function Wu(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const i=r[s];if(bp(t,e,i)&&!la(n,i))return!0}return!1}function bp(e,t,n){const r=e[n],s=t[n];return n==="style"&&ke(r)&&ke(s)?!zn(r,s):r!==s}function ca({vnode:e,parent:t,suspense:n},r){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.suspense.vnode.el=s.el=r,e=s),s===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}const vp={},wp=()=>Object.create(vp),Ep=e=>Object.getPrototypeOf(e)===vp;function Vy(e,t,n,r=!1){const s={},i=wp();e.propsDefaults=Object.create(null),Tp(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=r?s:Tn(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function Wy(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,a=Se(s),[l]=e.propsOptions;let c=!1;if((r||o>0)&&!(o&16)){if(o&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let h=u[f];if(la(e.emitsOptions,h))continue;const d=t[h];if(l)if(Pe(i,h))d!==i[h]&&(i[h]=d,c=!0);else{const p=At(h);s[p]=Ll(l,a,p,d,e,!1)}else d!==i[h]&&(i[h]=d,c=!0)}}}else{Tp(e,t,s,i)&&(c=!0);let u;for(const f in a)(!t||!Pe(t,f)&&((u=mr(f))===f||!Pe(t,u)))&&(l?n&&(n[f]!==void 0||n[u]!==void 0)&&(s[f]=Ll(l,a,f,void 0,e,!0)):delete s[f]);if(i!==a)for(const f in i)(!t||!Pe(t,f))&&(delete i[f],c=!0)}c&&jn(e.attrs,"set","")}function Tp(e,t,n,r){const[s,i]=e.propsOptions;let o=!1,a;if(t)for(let l in t){if(Ur(l))continue;const c=t[l];let u;s&&Pe(s,u=At(l))?!i||!i.includes(u)?n[u]=c:(a||(a={}))[u]=c:la(e.emitsOptions,l)||(!(l in r)||c!==r[l])&&(r[l]=c,o=!0)}if(i){const l=Se(n),c=a||Ne;for(let u=0;u<i.length;u++){const f=i[u];n[f]=Ll(s,l,f,c[f],e,!Pe(c,f))}}return o}function Ll(e,t,n,r,s,i){const o=e[n];if(o!=null){const a=Pe(o,"default");if(a&&r===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&le(l)){const{propsDefaults:c}=s;if(n in c)r=c[n];else{const u=Ls(s);r=c[n]=l.call(null,t),u()}}else r=l;s.ce&&s.ce._setProp(n,r)}o[0]&&(i&&!a?r=!1:o[1]&&(r===""||r===mr(n))&&(r=!0))}return r}const qy=new WeakMap;function Sp(e,t,n=!1){const r=n?qy:t.propsCache,s=r.get(e);if(s)return s;const i=e.props,o={},a=[];let l=!1;if(!le(e)){const u=f=>{l=!0;const[h,d]=Sp(f,t,!0);it(o,h),d&&a.push(...d)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!l)return ke(e)&&r.set(e,Dr),Dr;if(te(i))for(let u=0;u<i.length;u++){const f=At(i[u]);qu(f)&&(o[f]=Ne)}else if(i)for(const u in i){const f=At(u);if(qu(f)){const h=i[u],d=o[f]=te(h)||le(h)?{type:h}:it({},h),p=d.type;let m=!1,v=!0;if(te(p))for(let b=0;b<p.length;++b){const y=p[b],g=le(y)&&y.name;if(g==="Boolean"){m=!0;break}else g==="String"&&(v=!1)}else m=le(p)&&p.name==="Boolean";d[0]=m,d[1]=v,(m||Pe(d,"default"))&&a.push(f)}}const c=[o,a];return ke(e)&&r.set(e,c),c}function qu(e){return e[0]!=="$"&&!Ur(e)}const Bc=e=>e==="_"||e==="_ctx"||e==="$stable",Hc=e=>te(e)?e.map(Dt):[Dt(e)],Ky=(e,t,n)=>{if(t._n)return t;const r=Mc((...s)=>Hc(t(...s)),n);return r._c=!1,r},Ap=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Bc(s))continue;const i=e[s];if(le(i))t[s]=Ky(s,i,r);else if(i!=null){const o=Hc(i);t[s]=()=>o}}},kp=(e,t)=>{const n=Hc(t);e.slots.default=()=>n},Rp=(e,t,n)=>{for(const r in t)(n||!Bc(r))&&(e[r]=t[r])},Gy=(e,t,n)=>{const r=e.slots=wp();if(e.vnode.shapeFlag&32){const s=t._;s?(Rp(r,t,n),n&&Ah(r,"_",s,!0)):Ap(t,r)}else t&&kp(e,t)},zy=(e,t,n)=>
vendor: 7,669 bytes, line 4
4{const{vnode:r,slots:s}=e;let i=!0,o=Ne;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:Rp(s,t,n):(i=!t.$stable,Ap(t,s)),o=t}else t&&(kp(e,t),o={default:1});if(i)for(const a in s)!Bc(a)&&o[a]==null&&delete s[a]},Ze=xp;function Jy(e){return Op(e)}function Yy(e){return Op(e,fy)}function Op(e,t){const n=Yo();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:o,createText:a,createComment:l,setText:c,setElementText:u,parentNode:f,nextSibling:h,setScopeId:d=kn,insertStaticContent:p}=e,m=(E,A,I,B=null,$=null,w=null,S=void 0,P=null,x=!!A.dynamicChildren)=>{if(E===A)return;E&&!rn(E,A)&&(B=U(E),be(E,$,w,!0),E=null),A.patchFlag===-2&&(x=!1,A.dynamicChildren=null),A.dynamicChildren&&E&&E.dynamicChildren&&E.dynamicChildren.hasOnce&&(A.dynamicChildren===Dr&&(A.dynamicChildren=[]),A.dynamicChildren.hasOnce=!0);const{type:D,ref:V,shapeFlag:C}=A;switch(D){case fr:v(E,A,I,B);break;case Je:b(E,A,I,B);break;case ys:E==null&&y(A,I,B,S);break;case ht:M(E,A,I,B,$,w,S,P,x);break;default:C&1?T(E,A,I,B,$,w,S,P,x):C&6?J(E,A,I,B,$,w,S,P,x):(C&64||C&128)&&D.process(E,A,I,B,$,w,S,P,x,Q)}V!=null&&$?ms(V,E&&E.ref,w,A||E,!A):V==null&&E&&E.ref!=null&&ms(E.ref,null,w,E,!0)},v=(E,A,I,B)=>{if(E==null)r(A.el=a(A.children),I,B);else{const $=A.el=E.el;A.children!==E.children&&c($,A.children)}},b=(E,A,I,B)=>{E==null?r(A.el=l(A.children||""),I,B):A.el=E.el},y=(E,A,I,B)=>{[E.el,E.anchor]=p(E.children,A,I,B,E.el,E.anchor)},g=({el:E,anchor:A},I,B)=>{let $;for(;E&&E!==A;)$=h(E),r(E,I,B),E=$;r(A,I,B)},_=({el:E,anchor:A})=>{let I;for(;E&&E!==A;)I=h(E),s(E),E=I;s(A)},T=(E,A,I,B,$,w,S,P,x)=>{if(A.type==="svg"?S="svg":A.type==="math"&&(S="mathml"),E==null)R(A,I,B,$,w,S,P,x);else{const D=E.el&&E.el._isVueCE?E.el:null;try{D&&D._beginPatch(),N(E,A,$,w,S,P,x)}finally{D&&D._endPatch()}}},R=(E,A,I,B,$,w,S,P)=>{let x,D;const{props:V,shapeFlag:C,transition:L,dirs:q}=E;if(x=E.el=o(E.type,w,V&&V.is,V),C&8?u(x,E.children):C&16&&j(E.children,x,null,B,$,Fa(E,w),S,P),q&&bn(E,null,B,"created"),k(x,E,E.scopeId,S,B),V){for(const pe in V)pe!=="value"&&!Ur(pe)&&i(x,pe,null,V[pe],w,B);"value"in V&&i(x,"value",null,V.value,w),(D=V.onVnodeBeforeMount)&&It(D,B,E)}q&&bn(E,null,B,"beforeMount");const X=Cp($,L);X&&L.beforeEnter(x),r(x,A,I),((D=V&&V.onVnodeMounted)||X||q)&&Ze(()=>{D&&It(D,B,E),X&&L.enter(x),q&&bn(E,null,B,"mounted")},$)},k=(E,A,I,B,$)=>{if(I&&d(E,I),B)for(let w=0;w<B.length;w++)d(E,B[w]);if($){let w=$.subTree;if(A===w||Oo(w.type)&&(w.ssContent===A||w.ssFallback===A)){const S=$.vnode;k(E,S,S.scopeId,S.slotScopeIds,$.parent)}}},j=(E,A,I,B,$,w,S,P,x=0)=>{for(let D=x;D<E.length;D++){const V=E[D]=P?Un(E[D]):Dt(E[D]);m(null,V,A,I,B,$,w,S,P)}},N=(E,A,I,B,$,w,S)=>{const P=A.el=E.el;let{patchFlag:x,dynamicChildren:D,dirs:V}=A;x|=E.patchFlag&16;const C=E.props||Ne,L=A.props||Ne;let q;if(I&&Er(I,!1),(q=L.onVnodeBeforeUpdate)&&It(q,I,A,E),V&&bn(A,E,I,"beforeUpdate"),I&&Er(I,!0),D&&(!E.dynamicChildren||E.dynamicChildren.length!==D.length)&&(x=0,S=!1,D=null),(C.innerHTML&&L.innerHTML==null||C.textContent&&L.textContent==null)&&u(P,""),D?H(E.dynamicChildren,D,P,I,B,Fa(A,$),w):S||re(E,A,P,null,I,B,Fa(A,$),w,!1),x>0){if(x&16)F(P,C,L,I,$);else if(x&2&&C.class!==L.class&&i(P,"class",null,L.class,$),x&4&&i(P,"style",C.style,L.style,$),x&8){const X=A.dynamicProps;for(let pe=0;pe<X.length;pe++){const _e=X[pe],Re=C[_e],je=L[_e];(je!==Re||_e==="value")&&i(P,_e,Re,je,$,I)}}x&1&&E.children!==A.children&&u(P,A.children)}else!S&&D==null&&F(P,C,L,I,$);((q=L.onVnodeUpdated)||V)&&Ze(()=>{q&&It(q,I,A,E),V&&bn(A,E,I,"updated")},B)},H=(E,A,I,B,$,w,S)=>{for(let P=0;P<A.length;P++){const x=E[P],D=A[P],V=x.el&&(x.type===ht||!rn(x,D)||x.shapeFlag&198)?f(x.el):I;m(x,D,V,null,B,$,w,S,!0)}},F=(E,A,I,B,$)=>{if(A!==I){if(A!==Ne)for(const w in A)!Ur(w)&&!(w in I)&&i(E,w,A[w],null,$,B);for(const w in I){if(Ur(w))continue;const S=I[w],P=A[w];S!==P&&w!=="value"&&i(E,w,P,S,$,B)}"value"in I&&i(E,"value",A.value,I.value,$)}},M=(E,A,I,B,$,w,S,P,x)=>{const D=A.el=E?E.el:a(""),V=A.anchor=E?E.anchor:a("");let{patchFlag:C,dynamicChildren:L,slotScopeIds:q}=A;q&&(P=P?P.concat(q):q),E==null?(r(D,I,B),r(V,I,B),j(A.children||[],I,V,$,w,S,P,x)):C>0&&C&64&&L&&E.dynamicChildren&&E.dynamicChildren.length===L.length?(H(E.dynamicChildren,L,I,$,w,S,P),(A.key!=null||$&&A===$.subTree)&&Vc(E,A,!0)):re(E,A,I,V,$,w,S,P,x)},J=(E,A,I,B,$,w,S,P,x)=>{A.slotScopeIds=P,E==null?A.shapeFlag&512?$.ctx.activate(A,I,B,S,x):ne(A,I,B,$,w,S,x):he(E,A,x)},ne=(E,A,I,B,$,w,S)=>{const P=E.component=cb(E,B,$);if(Li(E)&&(P.ctx.renderer=Q),ub(P,!1,S),P.asyncDep){if($&&$.registerDep(P,Y,S),!E.el){const x=P.subTree=We(Je);b(null,x,A,I),E.placeholder=x.el}}else Y(P,E,A,I,$,w,S)},he=(E,A,I)=>{const B=A.component=E.component;if(Hy(E,A,I))if(B.asyncDep&&!B.asyncResolved){A.el=E.el,ae(B,A,I);return}else B.next=A,B.update();else A.el=E.el,B.vnode=A},Y=(E,A,I,B,$,w,S)=>{const P=()=>{if(E.isMounted){let{next:C,bu:L,u:q,parent:X,vnode:pe}=E;{const at=Pp(E);if(at){C&&(C.el=pe.el,ae(E,C,S)),at.asyncDep.then(()=>{Ze(()=>{E.isUnmounted||D()},$)});return}}let _e=C,Re;Er(E,!1),C?(C.el=pe.el,ae(E,C,S)):C=pe,L&&ps(L),(Re=C.props&&C.props.onVnodeBeforeUpdate)&&It(Re,X,C,pe),Er(E,!0);const je=ja(E),vt=E.subTree;E.subTree=je,m(vt,je,f(vt.el),U(vt),E,$,w),C.el=je.el,_e===null&&ca(E,je.el),q&&Ze(q,$),(Re=C.props&&C.props.onVnodeUpdated)&&Ze(()=>It(Re,X,C,pe),$)}else{let C;const{el:L,props:q}=A,{bm:X,m:pe,parent:_e,root:Re,type:je}=E,vt=qn(A);if(Er(E,!1),X&&ps(X),!vt&&(C=q&&q.onVnodeBeforeMount)&&It(C,_e,A),Er(E,!0),L&&Ae){const at=()=>{E.subTree=ja(E),Ae(L,E.subTree,E,$,null)};vt&&je.__asyncHydrate?je.__asyncHydrate(L,E,at):at()}else{Re.ce&&Re.ce._hasShadowRoot()&&Re.ce._injectChildStyle(je,E.parent?E.parent.type:void 0);const at=E.subTree=ja(E);m(null,at,I,B,E,$,w),A.el=at.el}if(pe&&Ze(pe,$),!vt&&(C=q&&q.onVnodeMounted)){const at=A;Ze(()=>It(C,_e,at),$)}(A.shapeFlag&256||_e&&qn(_e.vnode)&&_e.vnode.shapeFlag&256)&&E.a&&Ze(E.a,$),E.isMounted=!0,A=I=B=null}};E.scope.on();const x=E.effect=new Ih(P);E.scope.off();const D=E.update=x.run.bind(x),V=E.job=x.runIfDirty.bind(x);V.i=E,V.id=E.uid,x.scheduler=()=>$c(V),Er(E,!0),D()},ae=(E,A,I)=>{A.component=E;const B=E.vnode.props;E.vnode=A,E.next=null,Wy(E,A.props,B,I),zy(E,A.children,I),Jn(),xu(E),Yn()},re=(E,A,I,B,$,w,S,P,x=!1)=>{const D=E&&E.children,V=E?E.shapeFlag:0,C=A.children,{patchFlag:L,shapeFlag:q}=A;if(L>0){if(L&128){ge(D,C,I,B,$,w,S,P,x);return}else if(L&256){ye(D,C,I,B,$,w,S,P,x);return}}q&8?(V&16&&qe(D,$,w),C!==D&&u(I,C)):V&16?q&16?ge(D,C,I,B,$,w,S,P,x):qe(D,$,w,!0):(V&8&&u(I,""),q&16&&j(C,I,B,$,w,S,P,x))},ye=(E,A,I,B,$,w,S,P,x)=>{E=E||Dr,A=A||Dr;const D=E.length,V=A.length,C=Math.min(D,V);let L;for(L=0;L<C;L++){const q=A[L]=x?Un(A[L]):Dt(A[L]);m(E[L],q,I,null,$,w,S,P,x)}D>V?qe(E,$,w,!0,!1,C):j(A,I,B,$,w,S,P,x,C)},ge=(E,A,I,B,$,w,S,P,x)=>{let D=0;const V=A.length;let C=E.length-1,L=V-1;for(;D<=C&&D<=L;){const q=E[D],X=A[D]=x?Un(A[D]):Dt(A[D]);if(rn(q,X))m(q,X,I,null,$,w,S,P,x);else break;D++}for(;D<=C&&D<=L;){const q=E[C],X=A[L]=x?Un(A[L]):Dt(A[L]);if(rn(q,X))m(q,X,I,null,$,w,S,P,x);else break;C--,L--}if(D>C){if(D<=L){const q=L+1,X=q<V?A[q].el:B;for(;D<=L;)m(null,A[D]=x?Un(A[D]):Dt(A[D]),I,X,$,w,S,P,x),D++}}else if(D>L)for(;D<=C;)be(E[D],$,w,!0),D++;else{const q=D,X=D,pe=new Map;for(D=X;D<=L;D++){const Ye=A[D]=x?Un(A[D]):Dt(A[D]);Ye.key!=null&&pe.set(Ye.key,D)}let _e,Re=0;const je=L-X+1;let vt=!1,at=0;const dn=new Array(je);for(D=0;D<je;D++)dn[D]=0;for(D=q;D<=C;D++){const Ye=E[D];if(Re>=je){be(Ye,$,w,!0);continue}let Ct;if(Ye.key!=null)Ct=pe.get(Ye.key);else for(_e=X;_e<=L;_e++)if(dn[_e-X]===0&&rn(Ye,A[_e])){Ct=_e;break}Ct===void 0?be(Ye,$,w,!0):(dn[Ct-X]=D+1,Ct>=at?at=Ct:vt=!0,m(Ye,A[Ct],I,null,$,w,S,P,x),Re++)}const Ft=vt?Xy(dn):Dr;
vendor: 4,451 bytes, line 4
4for(_e=Ft.length-1,D=je-1;D>=0;D--){const Ye=X+D,Ct=A[Ye],zr=A[Ye+1],Mi=Ye+1<V?zr.el||Ip(zr):B;dn[D]===0?m(null,Ct,I,Mi,$,w,S,P,x):vt&&(_e<0||D!==Ft[_e]?ce(Ct,I,Mi,2):_e--)}}},ce=(E,A,I,B,$=null)=>{const{el:w,type:S,transition:P,children:x,shapeFlag:D}=E;if(D&6){ce(E.component.subTree,A,I,B);return}if(D&128){E.suspense.move(A,I,B);return}if(D&64){S.move(E,A,I,Q);return}if(S===ht){r(w,A,I);for(let C=0;C<x.length;C++)ce(x[C],A,I,B);r(E.anchor,A,I);return}if(S===ys){g(E,A,I);return}if(B!==2&&D&1&&P)if(B===0)P.persisted&&!w[Vt]?r(w,A,I):(P.beforeEnter(w),r(w,A,I),Ze(()=>P.enter(w),$));else{const{leave:C,delayLeave:L,afterLeave:q}=P,X=()=>{E.ctx.isUnmounted?s(w):r(w,A,I)},pe=()=>{const _e=w._isLeaving||!!w[Vt];w._isLeaving&&w[Vt](!0),P.persisted&&!_e?X():C(w,()=>{X(),q&&q()})};L?L(w,X,pe):pe()}else r(w,A,I)},be=(E,A,I,B=!1,$=!1)=>{const{type:w,props:S,ref:P,children:x,dynamicChildren:D,shapeFlag:V,patchFlag:C,dirs:L,cacheIndex:q,memo:X}=E;if((C===-2||D&&D.hasOnce)&&($=!1),P!=null&&(Jn(),ms(P,null,I,E,!0),Yn()),q!=null&&(!E.ctx||E.ctx===A)&&(A.renderCache[q]=void 0),V&256){A.ctx.deactivate(E);return}const pe=V&1&&L,_e=!qn(E);let Re;if(_e&&(Re=S&&S.onVnodeBeforeUnmount)&&It(Re,A,E),V&6)Te(E.component,I,B);else{if(V&128){E.suspense.unmount(I,B);return}pe&&bn(E,null,A,"beforeUnmount"),V&64?E.type.remove(E,A,I,Q,B):D&&!D.hasOnce&&(w!==ht||C>0&&C&64)?qe(D,A,I,!1,!0):(w===ht&&C&384||!$&&V&16)&&qe(x,A,I),B&&Le(E)}const je=X!=null&&q==null;(_e&&(Re=S&&S.onVnodeUnmounted)||pe||je)&&Ze(()=>{Re&&It(Re,A,E),pe&&bn(E,null,A,"unmounted"),je&&(E.el=null)},I)},Le=E=>{const{type:A,el:I,anchor:B,transition:$}=E;if(A===ht){xt(I,B);return}if(A===ys){_(E),$&&!$.persisted&&$.afterLeave&&$.afterLeave();return}const w=()=>{s(I),$&&!$.persisted&&$.afterLeave&&$.afterLeave()};if(E.shapeFlag&1&&$&&!$.persisted){const{leave:S,delayLeave:P}=$,x=()=>S(I,w);P?P(E.el,w,x):x()}else w()},xt=(E,A)=>{let I;for(;E!==A;)I=h(E),s(E),E=I;s(A)},Te=(E,A,I)=>{const{bum:B,scope:$,job:w,subTree:S,um:P,m:x,a:D}=E;Ro(x),Ro(D),B&&ps(B),$.stop(),w?(w.flags|=8,be(S,E,A,I)):E.vnode.el&&S&&(S.transition=E.vnode.transition,be(S,E,A,I)),P&&Ze(P,A),Ze(()=>{E.isUnmounted=!0},A)},qe=(E,A,I,B=!1,$=!1,w=0)=>{for(let S=w;S<E.length;S++)be(E[S],A,I,B,$)},U=E=>{if(E.shapeFlag&6)return U(E.component.subTree);if(E.shapeFlag&128)return E.suspense.next();const A=h(E.anchor||E.el),I=A&&A[ep];return I?h(I):A};let z=!1;const G=(E,A,I)=>{let B;E==null?A._vnode&&(be(A._vnode,null,null,!0),B=A._vnode.component):m(A._vnode||null,E,A,null,null,null,I),A._vnode=E,z||(z=!0,xu(B),wo(),z=!1)},Q={p:m,um:be,m:ce,r:Le,mt:ne,mc:j,pc:re,pbc:H,n:U,o:e};let ue,Ae;return t&&([ue,Ae]=t(Q)),{render:G,hydrate:ue,createApp:Dy(G,ue)}}function Fa({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 Er({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Cp(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Vc(e,t,n=!1){const r=e.children,s=t.children;if(te(r)&&te(s))for(let i=0;i<r.length;i++){const o=r[i];let a=s[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=s[i]=Un(s[i]),a.el=o.el),!n&&a.patchFlag!==-2&&Vc(o,a)),a.type===fr&&(a.patchFlag===-1&&(a=s[i]=Un(a)),a.el=o.el),a.type===Je&&!a.el&&(a.el=o.el)}}function Xy(e){const t=e.slice(),n=[0];let r,s,i,o,a;const l=e.length;for(r=0;r<l;r++){const c=e[r];if(c!==0){if(s=n[n.length-1],e[s]<c){t[r]=s,n.push(r);continue}for(i=0,o=n.length-1;i<o;)a=i+o>>1,e[n[a]]<c?i=a+1:o=a;c<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function Pp(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Pp(t)}function Ro(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Ip(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Ip(t.subTree):null}const Oo=e=>e.__isSuspense;let xl=0;const Qy={name:"Suspense",__isSuspense:!0,process(e,t,n,r,s,i,o,a,l,c){if(e==null)Zy(t,n,r,s,i,o,a,l,c);else{if(i&&i.deps>0&&!e.suspense.isInFallback&&!i.isHydrating){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}eb(e,t,n,r,s,o,a,l,c)}},hydrate:tb,normalize:nb},Wc=Qy;function di(e,t){const n=e.props&&e.props[t];le(n)&&n()}function Zy(e,t,n,r,s,i,o,a,l){const{p:c,o:{createElement:u}}=l,f=u("div"),h=e.suspense=Lp(e,s,r,t,f,n,i,o,a,l);c(null,h.pendingBranch=e.ssContent,f,null,r,h,i,o),h.deps>
40?(di(e,"onPending"),di(e,"onFallback"),c(null,e.ssFallback,t,n,r,null,i,o),_s(h,e.ssFallback)):h.resolve(!1,!0)}function eb(e,t,n,r,s,i,o,a,{p:l,um:c,o:{createElement:u}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const h=t.ssContent,d=t.ssFallback,{activeBranch:p,pendingBranch:m,isInFallback:v,isHydrating:b}=f;if(m)f.pendingBranch=h,rn(m,h)?(f.deps++,l(m,h,b?n:f.hiddenContainer,null,s,f,i,o,a),f.deps--,f.deps<=0?f.resolve():v&&!b&&!f.isFallbackMountPending&&(l(p,d,n,r,s,null,i,o,a),_s(f,d))):(f.pendingId=xl++,b?(f.isHydrating=!1,f.activeBranch=m):c(m,s,f),f.deps=0,f.effects.length=0,f.hiddenContainer=u("div"),v?(l(null,h,f.hiddenContainer,null,s,f,i,o,a),f.deps<=0?f.resolve():f.isFallbackMountPending||(l(p,d,n,r,s,null,i,o,a),_s(f,d))):p&&rn(p,h)?(l(p,h,n,r,s,f,i,o,a),f.resolve(!0)):(l(null,h,f.hiddenContainer,null,s,f,i,o,a),f.deps<=0&&f.resolve()));else if(p&&rn(p,h))l(p,h,n,r,s,f,i,o,a),_s(f,h);else if(di(t,"onPending"),f.pendingBranch=h,h.shapeFlag&512?f.pendingId=h.component.suspenseId:f.pendingId=xl++,l(null,h,f.hiddenContainer,null,s,f,i,o,a),f.deps<=0)f.resolve();else{const{timeout:y,pendingId:g}=f;y>0?setTimeout(()=>{f.pendingId===g&&f.fallback(d)},y):y===0&&f.fallback(d)}}function Lp(e,t,n,r,s,i,o,a,l,c,u=!1){const{p:f,m:h,um:d,n:p,o:{parentNode:m,remove:v}}=c;let b;const y=rb(e);y&&t&&t.pendingBranch&&(b=t.pendingId,t.deps++);const g=e.props?kh(e.props.timeout):void 0,_=i,T={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:s,deps:0,pendingId:xl++,timeout:typeof g=="number"?g:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(R=!1,k=!1){const{vnode:j,activeBranch:N,pendingBranch:H,pendingId:F,effects:M,parentComponent:J,container:ne,isInFallback:he}=T;let Y=!1;if(T.isHydrating)T.isHydrating=!1;else if(!R){Y=N&&H.transition&&H.transition.mode==="out-in";let ye=!1;Y&&(N.transition.afterLeave=()=>{F===T.pendingId&&(h(H,ne,i===_&&!ye?p(N):i,0),Al(M),he&&j.ssFallback&&(j.ssFallback.el=null))}),N&&!T.isFallbackMountPending&&(m(N.el)===ne&&(i=p(N),ye=!0),d(N,J,T,!0),!Y&&he&&j.ssFallback&&Ze(()=>j.ssFallback.el=null,T)),Y||h(H,ne,i,0)}T.isFallbackMountPending=!1,_s(T,H),T.pendingBranch=null,T.isInFallback=!1;let ae=T.parent,re=!1;for(;ae;){if(ae.pendingBranch){for(let ye=0;ye<M.length;ye++)ae.effects.push(M[ye]);re=!0;break}ae=ae.parent}!re&&!Y&&Al(M),T.effects=[],y&&t&&t.pendingBranch&&b===t.pendingId&&(b=void 0,t.deps--,t.deps===0&&!k&&t.resolve()),di(j,"onResolve")},fallback(R){if(!T.pendingBranch)return;const{vnode:k,activeBranch:j,parentComponent:N,container:H,namespace:F}=T;di(k,"onFallback");const M=p(j),J=()=>{if(T.isFallbackMountPending=!1,!T.isInFallback)return;const he=T.vnode.ssFallback;f(null,he,H,M,N,null,F,a,l),_s(T,he)},ne=R.transition&&R.transition.mode==="out-in";ne&&(T.isFallbackMountPending=!0,j.transition.afterLeave=J),T.isInFallback=!0,d(j,N,null,!0),ne||J()},move(R,k,j){T.activeBranch&&h(T.activeBranch,R,k,j),T.container=R},next(){return T.activeBranch&&p(T.activeBranch)},registerDep(R,k,j){const N=!!T.pendingBranch;N&&T.deps++;const H=R.vnode.el;R.asyncDep.catch(F=>{Is(F,R,0)}).then(F=>{if(R.isUnmounted||T.isUnmounted||T.pendingId!==R.suspenseId)return;if(hi(),H&&!R.scope.active){N&&--T.deps===0&&T.resolve();return}R.asyncResolved=!0;const{vnode:M}=R;Nl(R,F),H&&(M.el=H);const J=!H&&R.subTree.el;k(R,M,m(H||R.subTree.el),H?null:p(R.subTree),T,o,j),J&&(M.placeholder=null,v(J)),ca(R,M.el),N&&--T.deps===0&&T.resolve()})},unmount(R,k){T.isUnmounted=!0,T.activeBranch&&d(T.activeBranch,n,R,k),T.pendingBranch&&d(T.pendingBranch,n,R,k)}};return T}function tb(e,t,n,r,s,i,o,a,l){const c=t.suspense=Lp(t,r,n,e.parentNode,document.createElement("div"),null,s,i,o,a,!0),u=l(e,c.pendingBranch=t.ssContent,n,c,i,o);return c.deps===0&&c.resolve(!1,!0),u}function nb(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Ku(r?n.default:n),e.ssFallback=r?Ku(n.fallback):We(Je)}function Ku(e){let t;if(le(e)){const n=Es&&e._c;n&&(e._d=!1,Wt()),e=e(),n&&(e._d=!0,t=Lt,ua())}return te(e)&&(e=jy(e)),e=Dt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function xp(e,t){t&&t.pendingBranch?te(e)?t.effects.push(...e):t.effects.push(e):Al(e)}function _s(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;n.el=s,r&&r.subTree===n&&(r.vnode.el=s,ca(r,s))}function rb(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const ht=Symbol.for("v-fgt"),fr=Symbol.for("v-txt"),Je=Symbol.for("v-cmt"),ys=Symbol.for("v-stc"),Kn=[];let Lt=null;function Wt(e=!1){Kn.push(Lt=e?null:[])}function ua(){Kn.pop(),Lt=Kn[Kn.length-1]||null}let Es=1;function Co(e,t=!1){Es+=e,e<0&&Lt&&t&&(Lt.hasOnce=!0)}function Np(e){return e.dynamicChildren=Es>0?Lt||Dr:null,ua(),Es>0&&Lt&&Lt.push(e),e}
vendor: 6,987 bytes, line 4
4function sb(e,t,n,r,s,i){return Np($p(e,t,n,r,s,i,!0))}function En(e,t,n,r,s){return Np(We(e,t,n,r,s,!0))}function Vr(e){return e?e.__v_isVNode===!0:!1}function rn(e,t){return e.type===t.type&&e.key===t.key}const Dp=({key:e})=>e??null,go=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?$e(e)||Be(e)||le(e)?{i:gt,r:e,k:t,f:!!n}:e:null);function $p(e,t=null,n=null,r=0,s=null,i=e===ht?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Dp(t),ref:t&&go(t),scopeId:Qh,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:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:gt};return a?(Po(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=$e(n)?8:16),Es>0&&!o&&Lt&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Lt.push(l),l}const We=ib;function ib(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===dp)&&(e=Je),Vr(e)){const a=Xn(e,t,!0);return n&&Po(a,n),Es>0&&!i&&Lt&&(a.shapeFlag&6?Lt[Lt.indexOf(e)]=a:Lt.push(a)),a.patchFlag=-2,a}if(pb(e)&&(e=e.__vccOpts),t){t=Mp(t);let{class:a,style:l}=t;a&&!$e(a)&&(t.class=Qo(a)),ke(l)&&(na(l)&&!te(l)&&(l=it({},l)),t.style=Xo(l))}const o=$e(e)?1:Oo(e)?128:sa(e)?64:ke(e)?4:le(e)?2:0;return $p(e,t,n,r,s,o,i,!0)}function Mp(e){return e?na(e)||Ep(e)?it({},e):e:null}function Xn(e,t,n=!1,r=!1){const{props:s,ref:i,patchFlag:o,children:a,transition:l}=e,c=t?jp(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Dp(c),ref:t&&t.ref?n&&i?te(i)?i.concat(go(t)):[i,go(t)]:go(t):i,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!==ht?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Xn(e.ssContent),ssFallback:e.ssFallback&&Xn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return l&&r&&ws(u,l.clone(u)),u}function Up(e=" ",t=0){return We(fr,null,e,t)}function zP(e,t){const n=We(ys,null,e);return n.staticCount=t,n}function ob(e="",t=!1){return t?(Wt(),En(Je,null,e)):We(Je,null,e)}function Dt(e){return e==null||typeof e=="boolean"?We(Je):te(e)?We(ht,null,e.slice()):Vr(e)?Un(e):We(fr,null,String(e))}function Un(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Xn(e)}function Po(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(te(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Po(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Ep(t)?t._ctx=gt:s===3&>&&(gt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(le(t)){if(r&65){Po(e,{default:t});return}t={default:t,_ctx:gt},n=32}else t=String(t),r&64?(n=16,t=[Up(t)]):n=8;e.children=t,e.shapeFlag|=n}function jp(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=Qo([t.class,r.class]));else if(s==="style")t.style=Xo([t.style,r.style]);else if(Pi(s)){const i=t[s],o=r[s];o&&i!==o&&!(te(i)&&i.includes(o))?t[s]=i?[].concat(i,o):o:o==null&&i==null&&!qo(s)&&(t[s]=o)}else s!==""&&(t[s]=r[s])}return t}function It(e,t,n,r=null){Gt(e,t,7,[n,r])}const ab=_p();let lb=0;function cb(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||ab,i={uid:lb++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ph(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Sp(r,s),emitsOptions:yp(r,s),emit:null,emitted:null,propsDefaults:Ne,inheritAttrs:r.inheritAttrs,ctx:Ne,data:Ne,props:Ne,attrs:Ne,slots:Ne,refs:Ne,setupState:Ne,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 i.ctx={_:i},i.root=t?t.root:i,i.emit=My.bind(null,i),e.ce&&e.ce(i),i}let pt=null;const ln=()=>pt||gt;let Io,dr;{const e=Yo(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};Io=t("__VUE_INSTANCE_SETTERS__",n=>pt=n),dr=t("__VUE_SSR_SETTERS__",n=>Wr=n)}const Ls=e=>{const t=pt;return Io(e),e.scope.on(),()=>{e.scope.off(),Io(t)}},hi=()=>{pt&&pt.scope.off(),Io(null)};function Fp(e){return e.vnode.shapeFlag&4}let Wr=!1;function ub(e,t=!1,n=!1){t&&dr(t);const{props:r,children:s}=e.vnode,i=Fp(e);Vy(e,r,i,t),Gy(e,s,n||t);const o=i?fb(e,t):void 0;return t&&dr(!1),o}function fb(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Oy);const{setup:r}=n;if(r){Jn();const s=e.setupContext=r.length>1?hb(e):null,i=Ls(e),o=Ii(r,e,0,[e.props,s]),a=Oc(o);if(Yn(),i(),(a||e.sp)&&!qn(e)&&jc(e),a){if(o.then(hi,hi),t)return o.then(l=>{dr(!0);try{Nl(e,l,t)}finally{dr(!1)}}).catch(l=>{Is(l,e,0)});e.asyncDep=o}else Nl(e,o)}else Bp(e)}function Nl(e,t,n){le(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ke(t)&&(e.setupState=Kh(t)),Bp(e)}function Bp(e,t,n){const r=e.type;e.render||(e.render=r.render||kn);{const s=Ls(e);Jn();try{Cy(e)}finally{Yn(),s()}}}const db={get(e,t){return yt(e,"get",""),e[t]}};function hb(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,db),slots:e.slots,emit:e.emit,expose:t}}function fa(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Kh(F_(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ni)return ni[n](e)},has(t,n){return n in t||n in ni}})):e.proxy}function Dl(e,t=!0){return le(e)?e.displayName||e.name:e.name||t&&e.__name}function pb(e){return le(e)&&"__vccOpts"in e}const ve=(e,t)=>z_(e,t,Wr);function lt(e,t,n){try{Co(-1);const r=arguments.length;return r===2?ke(t)&&!te(t)?Vr(t)?We(e,null,[t]):We(e,t):We(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Vr(n)&&(n=[n]),We(e,t,n))}finally{Co(1)}}const gb="3.5.43";let $l;const Gu=typeof window<"u"&&window.trustedTypes;if(Gu)try{$l=Gu.createPolicy("vue",{createHTML:e=>e})}catch{}const Hp=$l?e=>$l.createHTML(e):e=>e,mb="http://www.w3.org/2000/svg",_b="http://www.w3.org/1998/Math/MathML",$n=typeof document<"u"?document:null,zu=$n&&$n.createElement("template"),yb={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?$n.createElementNS(mb,e):t==="mathml"?$n.createElementNS(_b,e):n?$n.createElement(e,{is:n}):$n.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>$n.createTextNode(e),createComment:e=>$n.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>
vendor: 4,566 bytes, line 4
4{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>$n.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){const o=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{zu.innerHTML=Hp(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=zu.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[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},er="transition",Us="animation",pi=Symbol("_vtc"),Vp={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},bb=it({},tp,Vp),vb=e=>(e.displayName="Transition",e.props=bb,e),wb=vb((e,{slots:t})=>lt(ly,Eb(e),t)),Tr=(e,t=[])=>{te(e)?e.forEach(n=>n(...t)):e&&e(...t)},Ju=e=>e?te(e)?e.some(t=>t.length>1):e.length>1:!1;function Eb(e){const t={};for(const M in e)M in Vp||(t[M]=e[M]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:c=o,appearToClass:u=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:d=`${n}-leave-to`}=e,p=Tb(s),m=p&&p[0],v=p&&p[1],{onBeforeEnter:b,onEnter:y,onEnterCancelled:g,onLeave:_,onLeaveCancelled:T,onBeforeAppear:R=b,onAppear:k=y,onAppearCancelled:j=g}=t,N=(M,J,ne,he)=>{M._enterCancelled=he,Sr(M,J?u:a),Sr(M,J?c:o),ne&&ne()},H=(M,J)=>{M._isLeaving=!1,Sr(M,f),Sr(M,d),Sr(M,h),J&&J()},F=M=>(J,ne)=>{const he=M?k:y,Y=()=>N(J,M,ne);Tr(he,[J,Y]),Yu(()=>{Sr(J,M?l:i),Ln(J,M?u:a),Ju(he)||Xu(J,r,m,Y)})};return it(t,{onBeforeEnter(M){Tr(b,[M]),Ln(M,i),Ln(M,o)},onBeforeAppear(M){Tr(R,[M]),Ln(M,l),Ln(M,c)},onEnter:F(!1),onAppear:F(!0),onLeave(M,J){M._isLeaving=!0;const ne=()=>H(M,J);Ln(M,f),M._enterCancelled?(Ln(M,h),ef(M)):(ef(M),Ln(M,h)),Yu(()=>{M._isLeaving&&(Sr(M,f),Ln(M,d),Ju(_)||Xu(M,r,v,ne))}),Tr(_,[M,ne])},onEnterCancelled(M){N(M,!1,void 0,!0),Tr(g,[M])},onAppearCancelled(M){N(M,!0,void 0,!0),Tr(j,[M])},onLeaveCancelled(M){H(M),Tr(T,[M])}})}function Tb(e){if(e==null)return null;if(ke(e))return[Ba(e.enter),Ba(e.leave)];{const t=Ba(e);return[t,t]}}function Ba(e){return kh(e)}function Ln(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[pi]||(e[pi]=new Set)).add(t)}function Sr(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[pi];n&&(n.delete(t),n.size||(e[pi]=void 0))}function Yu(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Sb=0;function Xu(e,t,n,r){const s=e._endId=++Sb,i=()=>{s===e._endId&&r()};if(n!=null)return setTimeout(i,n);const{type:o,timeout:a,propCount:l}=Ab(e,t);if(!o)return r();const c=o+"end";let u=0;const f=()=>{e.removeEventListener(c,h),i()},h=d=>{d.target===e&&++u>=l&&f()};setTimeout(()=>{u<l&&f()},a+1),e.addEventListener(c,h)}function Ab(e,t){const n=window.getComputedStyle(e),r=p=>(n[p]||"").split(", "),s=r(`${er}Delay`),i=r(`${er}Duration`),o=Qu(s,i),a=r(`${Us}Delay`),l=r(`${Us}Duration`),c=Qu(a,l);let u=null,f=0,h=0;t===er?o>0&&(u=er,f=o,h=i.length):t===Us?c>0&&(u=Us,f=c,h=l.length):(f=Math.max(o,c),u=f>0?o>c?er:Us:null,h=u?u===er?i.length:l.length:0);const d=u===er&&/\b(?:transform|all)(?:,|$)/.test(r(`${er}Property`).toString());return{type:u,timeout:f,propCount:h,hasTransform:d}}function Qu(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>Zu(n)+Zu(e[r])))}function Zu(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function ef(e){return(e?e.ownerDocument:document).body.offsetHeight}function kb(e,t,n){const r=e[pi];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const tf=Symbol("_vod"),Rb=Symbol("_vsh"),Ob=Symbol(""),Cb=/(?:^|;)\s*display\s*:/;function Pb(e,t,n){const r=e.style,s=$e(n);let i=!1;if(n&&!s){if(t)if($e(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&Xs(r,a,"")}else for(const o in t)n[o]==null&&Xs(r,o,"");for(const o in n){o==="display"&&(i=!0);const a=n[o];a!=null?Lb(e,o,!$e(t)&&t?t[o]:void 0,a)||Xs(r,o,a):Xs(r,o,"")}}else if(s){if(t!==n){const o=r[Ob];o&&(n+=";"+o),r.cssText=n,i=Cb.test(n)}}else t&&e.removeAttribute("style");
vendor: 5,616 bytes, lines 4-5
4tf in e&&(e[tf]=i?r.display:"",e[Rb]&&(r.display="none"))}const Gi=/\s*!important$/;function Xs(e,t,n){if(te(n))n.forEach(r=>Xs(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))Gi.test(n)?e.setProperty(t,n.replace(Gi,""),"important"):e.setProperty(t,n);else{const r=Ib(e,t);Gi.test(n)?e.setProperty(mr(r),n.replace(Gi,""),"important"):e[r]=n}}const nf=["Webkit","Moz","ms"],Ha={};function Ib(e,t){const n=Ha[t];if(n)return n;let r=At(t);if(r!=="filter"&&r in e)return Ha[t]=r;r=zo(r);for(let s=0;s<nf.length;s++){const i=nf[s]+r;if(i in e)return Ha[t]=i}return t}function Lb(e,t,n,r){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&$e(r)&&n===r}const rf="http://www.w3.org/1999/xlink";function sf(e,t,n,r,s,i=y_(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(rf,t.slice(6,t.length)):e.setAttributeNS(rf,t,n):n==null||i&&!Rh(n)?e.removeAttribute(t):e.setAttribute(t,i?"":jt(n)?String(n):n)}function of(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Hp(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const a=i==="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 o=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=Rh(n):n==null&&a==="string"?(n="",o=!0):a==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(s||t)}function or(e,t,n,r){e.addEventListener(t,n,r)}function xb(e,t,n,r){e.removeEventListener(t,n,r)}const af=Symbol("_vei");function Nb(e,t,n,r,s=null){const i=e[af]||(e[af]={}),o=i[t];if(r&&o)o.value=r;else{const[a,l]=Mb(t);if(r){const c=i[t]=Fb(r,s);or(e,a,c,l)}else o&&(xb(e,a,o,l),i[t]=void 0)}}const Db=/(Once|Passive|Capture)$/,$b=/^on:?(?:Once|Passive|Capture)$/;function Mb(e){let t,n;for(;(n=e.match(Db))&&!$b.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):mr(e.slice(2)),t]}let Va=0;const Ub=Promise.resolve(),jb=()=>Va||(Ub.then(()=>Va=0),Va=Date.now());function Fb(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;const s=n.value;if(te(s)){const i=r.stopImmediatePropagation;r.stopImmediatePropagation=()=>{i.call(r),r._stopped=!0};const o=s.slice(),a=[r];for(let l=0;l<o.length&&!r._stopped;l++){const c=o[l];c&&Gt(c,t,5,a)}}else Gt(s,t,5,[r])};return n.value=e,n.attached=jb(),n}const lf=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Bb=(e,t,n,r,s,i)=>{const o=s==="svg";t==="class"?kb(e,r,o):t==="style"?Pb(e,n,r):Pi(t)?qo(t)||Nb(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Hb(e,t,r,o))?(of(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&sf(e,t,r,o,i,t!=="value")):e._isVueCE&&(Vb(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!$e(r)))?of(e,At(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),sf(e,t,r,o))};function Hb(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&lf(t)&&le(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return lf(t)&&$e(n)?!1:t in e}function Vb(e,t){const n=e._def.props;if(!n)return!1;const r=At(t);return Array.isArray(n)?n.some(s=>At(s)===r):Object.keys(n).some(s=>At(s)===r)}const Ts=e=>{const t=e.props["onUpdate:modelValue"]||!1;return te(t)?n=>ps(t,n):t};function Wb(e){e.target.composing=!0}function cf(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Sn=Symbol("_assign"),zi=Symbol("_initialValue");function Wa(e,t,n){return t&&(e=e.trim()),n&&(e=Jo(e)),e}const JP={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e.parentNode&&(e.type==="text"?e[zi]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[zi]=e.defaultValue.replace(/\r\n?/g,` 5`))),e[Sn]=Ts(s);const i=r||s.props&&s.props.type==="number";or(e,t?"change":"input",o=>{o.target.composing||e[Sn](Wa(e.value,n,i))}),(n||i)&&or(e,"change",()=>{e.value=Wa(e.value,n,i)}),t||(or(e,"compositionstart",Wb),or(e,"compositionend",cf),or(e,"change",cf))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){const s=t??"",i=e[zi];delete e[zi],i!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==i?e[Sn](Wa(e.value,n,r)):e.value=s},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:i}},o){if(e[Sn]=Ts(o),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?Jo(e.value):e.value,l=t??"";if(a===l)return;const c=e.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===l)||(e.value=l)}},YP={deep:!0,created(e,t,n){e[Sn]=Ts(n),or(e,"change",()=>{const r=e._modelValue,s=gi(e),i=e.checked,o=e[Sn];if(te(r)){const a=Cc(r,s),l=a!==-1;if(i&&!l)o(r.concat(s));else if(!i&&l){const c=[...r];c.splice(a,1),o(c)}}else if(Gn(r)){const a=new Set(r);i?a.add(s):a.delete(s),o(a)}else o(Wp(e,i))})},mounted:uf,beforeUpdate(e,t,n){e[Sn]=Ts(n),uf(e,t,n)}};function uf(e,{value:t,oldValue:n},r){e._modelValue=t;let s;if(te(t))s=Cc(t,r.props.value)>-1;else if(Gn(t))s=t.has(r.props.value);else{if(t===n)return;s=zn(t,Wp(e,!0))}e.checked!==s&&(e.checked=s)}const XP={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,or(e,"change",()=>{const s=Array.prototype.filter.call(e.options,l=>
5l.selected).map(l=>n?Jo(gi(l)):gi(l)),i=e.multiple,o=i?Gn(e._modelValue)?new Set(s):s:s[0],a=e._pendingValue=[i,i?te(o)?s.slice():s:o];try{e[Sn](o)}finally{gr(()=>{e._pendingValue===a&&(e._pendingValue=void 0)})}}),e[Sn]=Ts(r)},mounted(e,{value:t}){ff(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[Sn]=Ts(n)},updated(e,{value:t}){const n=e._pendingValue;e._pendingValue=void 0,(!n||n[0]!==e.multiple||!qb(t,n[1],n[0]))&&ff(e,t)}};function qb(e,t,n){if(!n||te(e))return zn(e,t);if(Gn(e)){if(e.size!==t.length)return!1;for(const r of t)if(!e.has(r))return!1;return!0}return!1}function ff(e,t){const n=e.multiple,r=te(t);if(!(n&&!r&&!Gn(t))){for(let s=0,i=e.options.length;s<i;s++){const o=e.options[s],a=gi(o);if(n)if(r){const l=typeof a;l==="string"||l==="number"?o.selected=t.some(c=>String(c)===String(a)):o.selected=Cc(t,a)>-1}else o.selected=t.has(a);else if(zn(gi(o),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function gi(e){return"_value"in e?e._value:e.value}function Wp(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Kb=["ctrl","shift","alt","meta"],Gb={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)=>Kb.some(n=>e[`${n}Key`]&&!t.includes(n))},QP=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=((s,...i)=>{for(let o=0;o<t.length;o++){const a=Gb[t[o]];if(a&&a(s,t))return}return e(s,...i)}))},zb={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ZP=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=(s=>{if(!("key"in s))return;const i=mr(s.key);if(t.some(o=>o===i||zb[o]===i))return e(s)}))},qp=it({patchProp:Bb},yb);let ri,df=!1;function Jb(){return ri||(ri=Jy(qp))}function Yb(){return ri=df?ri:Yy(qp),df=!0,ri}const Xb=((...e)=>{const t=Jb().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Gp(r);if(!s)return;const i=t._component;!le(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=n(s,!1,Kp(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t}),Qb=((...e)=>{const t=Yb().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Gp(r);if(s)return n(s,!0,Kp(s))},t});function Kp(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Gp(e){return $e(e)?document.querySelector(e):e}const Zb=/"(?:_|\\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*:/,ev=/"(?: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*:/,tv=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function nv(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){rv(e);return}return t}function rv(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function mi(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(!tv.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Zb.test(e)||ev.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,nv)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const zp=/#/g,Jp=/&/g,sv=/\//g,iv=/=/g,ov=/\?/g,da=/\+/g,av=/%5e/gi,lv=/%60/gi,cv=/%7c/gi,uv=/%20/gi,fv=/%2f/gi,dv=/%252f/gi;function Yp(e){return encodeURI(""+e).replace(cv,"|")}function Ml(e){return Yp(typeof e=="string"?e:JSON.stringify(e)).replace(da,"%2B").replace(uv,"+").replace(zp,"%23").replace(Jp,"%26").replace(lv,"`").replace(av,"^").replace(sv,"%2F")}function qa(e){return Ml(e).replace(iv,"%3D")}function hv(e){return Yp(e).replace(zp,"%23").replace(ov,"%3F").replace(dv,"%2F").replace(Jp,"%26").replace(da,"%2B")}function qr(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function pv(e){return qr(e.replace(fv,"%252F"))}
5function gv(e){return qr(e.replace(da," "))}function mv(e){return qr(e.replace(da," "))}function qc(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 s=gv(r[1]);if(s==="__proto__"||s==="constructor")continue;const i=mv(r[2]||"");t[s]===void 0?t[s]=i:Array.isArray(t[s])?t[s].push(i):t[s]=[t[s],i]}return t}function _v(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${qa(e)}=${Ml(n)}`).join("&"):`${qa(e)}=${Ml(t)}`:qa(e)}function yv(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>_v(t,e[t])).filter(Boolean).join("&")}const bv=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,Xp=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,vv=/^([/\\]\s*){2,}[^/\\]/,wv=/^[\s\0]*(blob|data|javascript|vbscript):$/i,Ev=/\/$|\/\?|\/#/,Tv=/^\.?\//;function On(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?bv.test(e):Xp.test(e)||(t.acceptRelative?vv.test(e):!1)}function Sv(e){return!!e&&wv.test(e)}function Ul(e="",t){return t?Ev.test(e):e.endsWith("/")}function _i(e="",t){if(!t)return(Ul(e)?e.slice(0,-1):e)||"/";if(!Ul(e,!0))return e||"/";let n=e,r="";const s=e.indexOf("#");s!==-1&&(n=e.slice(0,s),r=e.slice(s));const[i,...o]=n.split("?");return((i.endsWith("/")?i.slice(0,-1):i)||"/")+(o.length>0?`?${o.join("?")}`:"")+r}function Lo(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(Ul(e,!0))return e||"/";let n=e,r="";const s=e.indexOf("#");if(s!==-1&&(n=e.slice(0,s),r=e.slice(s),!n))return r;const[i,...o]=n.split("?");return i+"/"+(o.length>0?`?${o.join("?")}`:"")+r}function Av(e=""){return e.startsWith("/")}function hf(e=""){return Av(e)?e:"/"+e}function kv(e,t){if(Qp(t)||On(e))return e;const n=_i(t);if(e.startsWith(n)){const r=e[n.length];if(!r||r==="/"||r==="?")return e}return xs(n,e)}function pf(e,t){if(Qp(t))return e;const n=_i(t);if(!e.startsWith(n))return e;const r=e[n.length];if(r&&r!=="/"&&r!=="?")return e;const s=e.slice(n.length);return s[0]==="/"?s:"/"+s}function ha(e,t){const n=Ss(e),r={...qc(n.search),...t};return n.search=yv(r),Iv(n)}function Qp(e){return!e||e==="/"}function Rv(e){return e&&e!=="/"}function xs(e,...t){let n=e||"";for(const r of t.filter(s=>Rv(s)))if(n){const s=r.replace(Tv,"");n=Lo(n)+s}else n=r;return n}function Zp(...e){const t=/\/(?!\/)/,n=e.filter(Boolean),r=[];let s=0;for(const o of n)if(!(!o||o==="/")){for(const[a,l]of o.split(t).entries())if(!(!l||l===".")){if(l===".."){if(r.length===1&&On(r[0]))continue;r.pop(),s--;continue}if(a===1&&r[r.length-1]?.endsWith(":/")){r[r.length-1]+="/"+l;continue}r.push(l),s++}}let i=r.join("/");return s>=0?n[0]?.startsWith("/")&&!i.startsWith("/")?i="/"+i:n[0]?.startsWith("./")&&!i.startsWith("./")&&(i="./"+i):i="../".repeat(-1*s)+i,n[n.length-1]?.endsWith("/")&&!i.endsWith("/")&&(i+="/"),i}function Ov(e){return Cv(e,"https://")}function Cv(e,t){let n=e.match(Xp);return n||(n=e.match(/^\/{2,}/)),n?t+e.slice(n[0].length):t+e}function Pv(e,t){return qr(_i(e))===qr(_i(t))}function gf(e,t,n={}){return n.trailingSlash||(e=Lo(e),t=Lo(t)),n.leadingSlash||(e=hf(e),t=hf(t)),n.encoding||(e=qr(e),t=qr(t)),e===t}const eg=Symbol.for("ufo:protocolRelative");function Ss(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,f,h=""]=n;return{protocol:f.toLowerCase(),pathname:h,href:f+h,auth:"",host:"",search:"",hash:""}}if(!On(e,{acceptRelative:!0}))return t?Ss(t+e):jl(e);const[,r="",s,i=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,o="",a=""]=i.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:c,hash:u}=jl(a);return{protocol:r.toLowerCase(),auth:s?s.slice(0,Math.max(0,s.length-1)):"",host:o,pathname:l,search:c,hash:u,[eg]:!r}}function jl(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function Iv(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",s=e.auth?e.auth+"@":"",i=e.host||"";return(e.protocol||e[eg]?(e.protocol||"")+"//":"")+s+i+t+n+r}
5class Lv extends Error{constructor(t,n){super(t,n),this.name="FetchError",n?.cause&&!this.cause&&(this.cause=n.cause)}}function xv(e){const t=e.error?.message||e.error?.toString()||"",n=e.request?.method||e.options?.method||"GET",r=e.request?.url||String(e.request)||"/",s=`[${n}] ${JSON.stringify(r)}`,i=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",o=`${s}: ${i}${t?` ${t}`:""}`,a=new Lv(o,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,c]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,l,{get(){return e.response&&e.response[c]}});return a}const Nv=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function mf(e="GET"){return Nv.has(e.toUpperCase())}function Dv(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 $v=new Set(["image/svg","application/xml","application/xhtml","application/html"]),Mv=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Uv(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return Mv.test(t)?"json":t==="text/event-stream"?"stream":$v.has(t)||t.startsWith("text/")?"text":"blob"}function jv(e,t,n,r){const s=Fv(t?.headers??e?.headers,n?.headers,r);let i;return(n?.query||n?.params||t?.params||t?.query)&&(i={...n?.params,...n?.query,...t?.params,...t?.query}),{...n,...t,query:i,params:i,headers:s}}function Fv(e,t,n){if(!t)return new n(e);const r=new n(t);if(e)for(const[s,i]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))r.set(s,i);return r}async function Ji(e,t){if(t)if(Array.isArray(t))for(const n of t)await n(e);else await t(e)}const Bv=new Set([408,409,425,429,500,502,503,504]),Hv=new Set([101,204,205,304]);function tg(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function s(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let u;typeof a.options.retry=="number"?u=a.options.retry:u=mf(a.options.method)?0:1;const f=a.response&&a.response.status||500;if(u>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(f):Bv.has(f))){const h=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return h>0&&await new Promise(d=>setTimeout(d,h)),i(a.request,{...a.options,retry:u-1})}}const c=xv(a);throw Error.captureStackTrace&&Error.captureStackTrace(c,i),c}const i=async function(l,c={}){const u={request:l,options:jv(l,c,e.defaults,n),response:void 0,error:void 0};if(u.options.method&&(u.options.method=u.options.method.toUpperCase()),u.options.onRequest&&(await Ji(u,u.options.onRequest),u.options.headers instanceof n||(u.options.headers=new n(u.options.headers||{}))),typeof u.request=="string"&&(u.options.baseURL&&(u.request=kv(u.request,u.options.baseURL)),u.options.query&&(u.request=ha(u.request,u.options.query),delete u.options.query),"query"in u.options&&delete u.options.query,"params"in u.options&&delete u.options.params),u.options.body&&mf(u.options.method))if(Dv(u.options.body)){const d=u.options.headers.get("content-type");typeof u.options.body!="string"&&(u.options.body=d==="application/x-www-form-urlencoded"?new URLSearchParams(u.options.body).toString():JSON.stringify(u.options.body)),d||u.options.headers.set("content-type","application/json"),u.options.headers.has("accept")||u.options.headers.set("accept","application/json")}else("pipeTo"in u.options.body&&typeof u.options.body.pipeTo=="function"||typeof u.options.body.pipe=="function")&&("duplex"in u.options||(u.options.duplex="half"));let f;if(!u.options.signal&&u.options.timeout){const d=new r;f=setTimeout(()=>{const p=new Error("[TimeoutError]: The operation was aborted due to timeout");p.name="TimeoutError",p.code=23,d.abort(p)},u.options.timeout),u.options.signal=d.signal}try{u.response=await t(u.request,u.options)}catch(d){return u.error=d,u.options.onRequestError&&await Ji(u,u.options.onRequestError),await s(u)}finally{f&&clearTimeout(f)}if((u.response.body||u.response._bodyInit)&&!Hv.has(u.response.status)&&u.options.method!=="HEAD"){const d=(u.options.parseResponse?"json":u.options.responseType)||Uv(u.response.headers.get("content-type")||"");switch(d){case"json":{const p=await u.response.text(),m=u.options.parseResponse||mi;u.response._data=m(p);break}case"stream":{u.response._data=u.response.body||u.response._bodyInit;break}default:u.response._data=await u.response[d]()}}return u.options.onResponse&&await Ji(u,u.options.onResponse),!u.options.ignoreResponseError&&u.response.status>=400&&u.response.status<600?(u.options.onResponseError&&await Ji(u,u.options.onResponseError),await s(u)):u.response},o=async function(l,c){return(await i(l,c))._data};return o.raw=i,o.native=(...a)=>t(...a),o.create=(a={},l={})=>tg({...e,...l,defaults:{...e.defaults,...l.defaults,...a}}),o}const xo=(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")})(),Vv=xo.fetch?(...e)=>xo.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),Wv=xo.Headers,qv=xo.AbortController,
5Kv=tg({fetch:Vv,Headers:Wv,AbortController:qv}),Gv=Kv,zv=()=>window?.__NUXT__?.config||{},Kc=()=>zv().app,Jv=()=>Kc().baseURL,Yv=()=>Kc().buildAssetsDir,Gc=(...e)=>Zp(ng(),Yv(),...e),ng=(...e)=>{const t=Kc(),n=t.cdnURL||t.baseURL;return e.length?Zp(n,...e):n};globalThis.__buildAssetsURL=Gc,globalThis.__publicAssetsURL=ng;globalThis.$fetch||(globalThis.$fetch=Gv.create({baseURL:Jv()}));"global"in globalThis||(globalThis.global=globalThis);function Fl(e,t={},n){for(const r in e){const s=e[r],i=n?`${n}:${r}`:r;typeof s=="object"&&s!==null?Fl(s,t,i):typeof s=="function"&&(t[i]=s)}return t}const Xv={run:e=>e()},Qv=()=>Xv,rg=typeof console.createTask<"u"?console.createTask:Qv;function Zv(e,t){const n=t.shift(),r=rg(n);return e.reduce((s,i)=>s.then(()=>r.run(()=>i(...t))),Promise.resolve())}function ew(e,t){const n=t.shift(),r=rg(n);return Promise.all(e.map(s=>r.run(()=>s(...t))))}function Ka(e,t){for(const n of[...e])n(t)}let tw=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 s=t;let i;for(;this._deprecatedHooks[t];)i=this._deprecatedHooks[t],t=i.to;if(i&&!r.allowDeprecated){let o=i.message;o||(o=`${s} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(o)||(console.warn(o),this._deprecatedMessages.add(o))}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,s=(...i)=>(typeof r=="function"&&r(),r=void 0,s=void 0,n(...i));return r=this.hook(t,s),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 s of r)this.hook(t,s)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=Fl(t),r=Object.keys(n).map(s=>this.hook(s,n[s]));return()=>{for(const s of r.splice(0,r.length))s()}}removeHooks(t){const n=Fl(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(Zv,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(ew,t,...n)}callHookWith(t,n,...r){const s=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&Ka(this._before,s);const i=t(n in this._hooks?[...this._hooks[n]]:[],r);return i instanceof Promise?i.finally(()=>{this._after&&s&&Ka(this._after,s)}):(this._after&&s&&Ka(this._after,s),i)}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 nw(){return new tw}function rw(e={}){let t,n=!1;const r=o=>{if(t&&t!==o)throw new Error("Context conflict")};let s;if(e.asyncContext){const o=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;o?s=new o:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const i=()=>{if(s){const o=s.getStore();if(o!==void 0)return o}return t};return{use:()=>{const o=i();if(o===void 0)throw new Error("Context is not available");return o},tryUse:()=>i(),set:(o,a)=>{a||r(o),t=o,n=!0},unset:()=>{t=void 0,n=!1},call:(o,a)=>{r(o),t=o;try{return s?s.run(o,a):a()}finally{n||(t=void 0)}},async callAsync(o,a){t=o;const l=()=>{t=o},c=()=>t===o?l:void 0;Bl.add(c);try{const u=s?s.run(o,a):a();return n||(t=void 0),await u}finally{Bl.delete(c)}}}}function sw(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=rw({...e,...r})),t[n]}}}const No=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},_f="__unctx__",iw=No[_f]||(No[_f]=sw()),ow=(e,t={})=>iw.get(e,t),yf="__unctx_async_handlers__",Bl=No[yf]||(No[yf]=new Set);function An(e){const t=[];for(const s of Bl){const i=s();
5i&&t.push(i)}const n=()=>{for(const s of t)s()};let r=e();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(s=>{throw n(),s})),[r,n]}const aw=!1,bf=!1,lw=!1,tI={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},nI={value:null,errorValue:null,deep:!0},cw=null,rI={},uw="#__nuxt",sg="nuxt-app",vf=36e5,fw="vite:preloadError";function ig(e=sg){return ow(e,{asyncContext:!1})}const dw="__nuxt_plugin";function hw(e){let t=0;const n={_id:e.id||sg||"nuxt-app",_scope:Pc(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.21.1"},get vue(){return n.vueApp.version}},payload:Tn({...e.ssrContext?.payload||{},data:Tn({}),state:_r({}),once:new Set,_errors:Tn({})}),static:{data:{}},runWithContext(s){return n._scope.active&&!Zo()?n._scope.run(()=>wf(n,s)):wf(n,s)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let s=!1;return()=>{if(!s&&(s=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:Tn({}),_payloadRevivers:{},...e};{const s=window.__NUXT__;if(s)for(const i in s)switch(i){case"data":case"state":case"_errors":Object.assign(n.payload[i],s[i]);break;default:n.payload[i]=s[i]}}n.hooks=nw(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(s,i)=>{const o="$"+s;Yi(n,o,i),Yi(n.vueApp.config.globalProperties,o,i)},Yi(n.vueApp,"$nuxt",n),Yi(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(fw,i=>{n.callHook("app:chunkError",{error:i.payload}),i.payload.message.includes("Unable to preload CSS")&&i.preventDefault()}),window.useNuxtApp||=Ie;const s=n.hook("app:error",(...i)=>{console.error("[nuxt] error caught during app initialization",...i)});n.hook("app:mounted",s)}const r=n.payload.config;return n.provide("config",r),n}function pw(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function gw(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 mw(e,t){const n=new Set,r=[],s=[];let i,o=0;async function a(l){const c=l.dependsOn?.filter(u=>t.some(f=>f._name===u)&&!n.has(u))??[];if(c.length>0)r.push([new Set(c),l]);else{const u=gw(e,l).then(async()=>{l._name&&(n.add(l._name),await Promise.all(r.map(async([f,h])=>{f.has(l._name)&&(f.delete(l._name),f.size===0&&(o++,await a(h)))})))}).catch(f=>{if(!l.parallel&&!e.payload.error)throw f;i||=f});l.parallel?s.push(u):await u}}for(const l of t)pw(e,l);for(const l of t)await a(l);if(await Promise.all(s),o)for(let l=0;l<o;l++)await Promise.all(s);if(i)throw e.payload.error||i}function ot(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[dw]:!0,_name:t})}function wf(e,t,n){const r=()=>t();return ig(e._id).set(e),e.vueApp.runWithContext(r)}function og(e){let t;return ra()&&(t=ln()?.appContext.app.$nuxt),t||=ig(e).tryUse(),t||null}function Ie(e){const t=og(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function fn(e){return Ie().$config}function Yi(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function Ga(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 Hl(e,t,n=".",r){if(!Ga(t))return Hl(e,{},n,r);const s=Object.assign({},t);for(const i in e){if(i==="__proto__"||i==="constructor")continue;const o=e[i];o!=null&&(r&&r(s,i,o,n)||(Array.isArray(o)&&Array.isArray(s[i])?s[i]=[...o,...s[i]]:Ga(o)&&Ga(s[i])?s[i]=Hl(o,s[i],(n?`${n}.`:"")+i.toString(),r):s[i]=o))}return s}function _w(e){return(...t)=>t.reduce((n,r)=>Hl(n,r,"",e),{})}const ag=_w();function yw(e,t){try{return t in e}catch{return!1}}class Ef 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:Vl(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=lg(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}function bw(e){if(typeof e=="string")return new Ef(e);
5if(vw(e))return e;const t=new Ef(e.message??e.statusMessage??"",{cause:e.cause||e});if(yw(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=Vl(e.statusCode,t.statusCode):e.status&&(t.statusCode=Vl(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;lg(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 vw(e){return e?.constructor?.__h3_error__===!0}const ww=/[^\u0009\u0020-\u007E]/g;function lg(e=""){return e.replace(ww,"")}function Vl(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const cg=Symbol("layout-meta"),Kr=Symbol("route");import.meta.url.replace(/\/app\/.*$/,"/");const bt=()=>Ie()?.$router,pa=()=>ra()?ct(Kr,Ie()._route):Ie()._route;function sI(e){return e}const ug=(e,t,n={})=>{const r=Ie(),s=n.global||typeof e!="string",i=typeof e!="string"?e:t;if(!i){console.warn("[nuxt] No route middleware passed to `addRouteMiddleware`.",e);return}s?r._middleware.global.push(i):r._middleware.named[e]=i},Ew=()=>{try{if(Ie()._processingMiddleware)return!0}catch{return!1}return!1},Cr=(e,t)=>{e||="/";const n=typeof e=="string"?e:"path"in e?Tw(e):bt().resolve(e).href;if(t?.open){const{target:c="_blank",windowFeatures:u={}}=t.open,f=[];for(const[h,d]of Object.entries(u))d!==void 0&&f.push(`${h.toLowerCase()}=${d}`);return open(n,c,f.join(", ")),Promise.resolve()}const r=On(n,{acceptRelative:!0}),s=t?.external||r;if(s){if(!t?.external)throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:c}=new URL(n,window.location.href);if(c&&Sv(c))throw new Error(`Cannot navigate to a URL with '${c}' protocol.`)}const i=Ew();if(!s&&i){if(t?.replace){if(typeof e=="string"){const{pathname:c,search:u,hash:f}=Ss(e);return{path:c,...u&&{query:qc(u)},...f&&{hash:f},replace:!0}}return{...e,replace:!0}}return e}const o=bt(),a=Ie();if(s)return a._scope.stop(),t?.replace?location.replace(n):location.href=n,i?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve();const l=typeof e=="string"?Sw(e):e;return t?.replace?o.replace(l):o.push(l)};function Tw(e){return ha(e.path||"",e.query||{})+(e.hash||"")}function Sw(e){const t=Ss(e);return hv(pv(t.pathname))+t.search+t.hash}const fg="__nuxt_error",ga=()=>Gh(Ie().payload,"error"),Pr=e=>{const t=Br(e);try{const n=ga();Ie().hooks.callHook("app:error",t),n.value||=t}catch{throw t}return t},Aw=async(e={})=>{const t=Ie(),n=ga();t.callHook("app:error:cleared",e),e.redirect&&await bt().replace(e.redirect),n.value=cw},dg=e=>!!e&&typeof e=="object"&&fg in e,Br=e=>{typeof e!="string"&&e.statusText&&(e.message??=e.statusText);const t=bw(e);return Object.defineProperty(t,fg,{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};function kw(e){const t=Ow(e),n=new ArrayBuffer(t.length),r=new DataView(n);for(let s=0;s<n.byteLength;s++)r.setUint8(s,t.charCodeAt(s));return n}const Rw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Ow(e){e.length%4===0&&(e=e.replace(/==?$/,""));let t="",n=0,r=0;for(let s=0;s<e.length;s++)n<<=6,n|=Rw.indexOf(e[s]),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 Cw=-1,Pw=-2,Iw=-3,Lw=-4,xw=-5,Nw=-6,Dw=-7;function $w(e,t){return Mw(JSON.parse(e),t)}function Mw(e,t){if(typeof e=="number")return i(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);let s=null;function i(o,a=!1){if(o===Cw)return;if(o===Iw)return NaN;if(o===Lw)return 1/0;if(o===xw)return-1/0;if(o===Nw)return-0;if(a||typeof o!="number")throw new Error("Invalid input");if(o in r)return r[o];const l=n[o];if(!l||typeof l!="object")r[o]=l;else if(Array.isArray(l))if(typeof l[0]=="string"){const c=l[0],u=t&&Object.hasOwn(t,c)?t[c]:void 0;if(u){let f=l[1];if(typeof f!="number"&&(f=n.push(l[1])-1),s??=new Set,s.has(f))throw new Error("Invalid circular reference");return s.add(f),r[o]=u(i(f)),s.delete(f),r[o]}switch(c){case"Date":r[o]=new Date(l[1]);break;case"Set":const f=new Set;r[o]=f;for(let p=1;p<l.length;p+=1)f.add(i(l[p]));break;case"Map":const h=new Map;r[o]=h;for(let p=1;p<l.length;p+=2)h.set(i(l[p]),i(l[p+1]));break;case"RegExp":r[o]=new RegExp(l[1],l[2]);break;case"Object":r[o]=Object(l[1]);break;case"BigInt":r[o]=BigInt(l[1]);break;case"null":const d=Object.create(null);r[o]=d;for(let p=1;p<l.length;p+=2)d[l[p]]=i(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[c],m=i(l[1]),v=new p(m);r[o]=l[2]!==void 0?v.subarray(l[2],l[3]):v;break}case"ArrayBuffer":{const p=l[1];if(typeof p!="string")throw new Error("Invalid ArrayBuffer encoding");const m=kw(p);r[o]=m;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=c.slice(9);r[o]=Temporal[p].from(l[1]);break}case"URL":{const p=new URL(l[1]);r[o]=p;break}case"URLSearchParams":{const p=new URLSearchParams(l[1]);r[o]=p;break}default:throw new Error(`Unknown type ${c}`)}}else if(l[0]===Dw){const c=l[1],u=new Array(c);r[o]=u;for(let f=2;f<l.length;f+=2){const h=l[f];u[h]=i(l[f+1])}}else{const c=new Array(l.length);r[o]=c;for(let u=0;u<l.length;u+=1){const f=l[u];f!==Pw&&(c[u]=i(f))}}else{const c={};r[o]=c;
5for(const u of Object.keys(l)){if(u==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const f=l[u];c[u]=i(f)}}return r[o]}return i(0)}const Uw=new Set(["link","style","script","noscript"]),jw=new Set(["title","titleTemplate","script","style","noscript"]),Tf=new Set(["base","meta","link","style","script","noscript"]),Fw=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),Bw=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),Hw=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),Vw=new Set(["templateParams","htmlAttrs","bodyAttrs"]),zc=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]),yi={META:new Set(["twitter"]),OG:new Set(["og","book","article","profile","fb"]),MEDIA:new Set(["ogImage","ogVideo","ogAudio","twitterImage"]),HTTP_EQUIV:new Set(["contentType","defaultStyle","xUaCompatible"])},Ww={articleExpirationTime:"article:expiration_time",articleModifiedTime:"article:modified_time",articlePublishedTime:"article:published_time",bookReleaseDate:"book:release_date",fbAppId:"fb:app_id",ogAudioSecureUrl:"og:audio:secure_url",ogAudioUrl:"og:audio",ogImageSecureUrl:"og:image:secure_url",ogImageUrl:"og:image",ogSiteName:"og:site_name",ogVideoSecureUrl:"og:video:secure_url",ogVideoUrl:"og:video",profileFirstName:"profile:first_name",profileLastName:"profile:last_name",profileUsername:"profile:username",msapplicationConfig:"msapplication-Config",msapplicationTileColor:"msapplication-TileColor",msapplicationTileImage:"msapplication-TileImage"},hg={appleItunesApp:{unpack:{entrySeparator:", ",resolve:({key:e,value:t})=>`${Bn(e)}=${t}`}},refresh:{metaKey:"http-equiv",unpack:{entrySeparator:";",resolve:({key:e,value:t})=>e==="seconds"?`${t}`:void 0}},robots:{unpack:{entrySeparator:", ",resolve:({key:e,value:t})=>typeof t=="boolean"?Bn(e):`${Bn(e)}:${t}`}},contentSecurityPolicy:{metaKey:"http-equiv",unpack:{entrySeparator:"; ",resolve:({key:e,value:t})=>`${Bn(e)} ${t}`}},charset:{}};function Bn(e){const t=e.replace(/([A-Z])/g,"-$1").toLowerCase(),n=t.indexOf("-");return n===-1?t:yi.META.has(t.slice(0,n))||yi.OG.has(t.slice(0,n))?e.replace(/([A-Z])/g,":$1").toLowerCase():t}function pg(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>String(n)!=="false"&&t))}function Wl(e){return Array.isArray(e)?e.map(Wl):!e||typeof e!="object"?e:Object.fromEntries(Object.entries(e).map(([t,n])=>[Bn(t),Wl(n)]))}function gg(e,t={}){const{entrySeparator:n="",keyValueSeparator:r="",wrapValue:s,resolve:i}=t;return Object.entries(e).map(([o,a])=>{if(i){const c=i({key:o,value:a});if(c!==void 0)return c}const l=typeof a=="object"?gg(a,t):typeof a=="number"?a.toString():typeof a=="string"&&s?`${s}${a.replace(new RegExp(s,"g"),`\\${s}`)}${s}`:a;return`${o}${r}${l}`}).join(n)}function Sf(e,t){const n=pg(t),r=Bn(e),s=mg(r);if(!zc.has(r))return[{[s]:r,...n}];const i=Object.fromEntries(Object.entries(n).map(([o,a])=>[`${e}${o==="url"?"":`${o[0].toUpperCase()}${o.slice(1)}`}`,a]));return Do(i||{}).sort((o,a)=>(o[s]?.length||0)-(a[s]?.length||0))}function mg(e){if(hg[e]?.metaKey==="http-equiv"||yi.HTTP_EQUIV.has(e))return"http-equiv";const t=Bn(e),n=t.indexOf(":");return n===-1?"name":yi.OG.has(t.slice(0,n))?"property":"name"}function qw(e){return Ww[e]||Bn(e)}function Kw(e,t){return t==="refresh"?`${e.seconds};url=${e.url}`:gg(Wl(e),{keyValueSeparator:"=",entrySeparator:", ",resolve:({value:n,key:r})=>n===null?"":typeof n=="boolean"?r:void 0,...hg[t]?.unpack})}function Do(e){const t=[],n={};for(const[s,i]of Object.entries(e)){if(Array.isArray(i)){if(s==="themeColor"){i.forEach(o=>{typeof o=="object"&&o!==null&&t.push({name:"theme-color",...o})});continue}for(const o of i)if(typeof o=="object"&&o!==null){const a=[],l=[];for(const[c,u]of Object.entries(o)){const f=`${s}${c==="url"?"":`:${c}`}`,h=Do({[f]:u});(c==="url"?a:l).push(...h)}t.push(...a,...l)}else t.push(...typeof o=="string"?Do({[s]:o}):Sf(s,o));continue}if(typeof i=="object"&&i)if(yi.MEDIA.has(s)){const o=s.startsWith("twitter")?"twitter":"og",a=s.replace(/^(og|twitter)/,"").toLowerCase(),l=o==="twitter"?"name":"property";i.url&&t.push({[l]:`${o}:${a}`,content:i.url}),i.secureUrl&&t.push({[l]:`${o}:${a}:secure_url`,content:i.secureUrl});for(const[c,u]of Object.entries(i))c!=="url"&&c!=="secureUrl"&&t.push({[l]:`${o}:${a}:${c}`,content:u})}else zc.has(Bn(s))?t.push(...Sf(s,i)):n[s]=pg(i);else n[s]=i}const r=Object.entries(n).map(([s,i])=>
5{if(s==="charset")return{charset:i===null?"_null":i};const o=mg(s),a=qw(s),l=i===null?"_null":typeof i=="object"?Kw(i,s):typeof i=="number"?i.toString():i;return o==="http-equiv"?{"http-equiv":a,content:l}:{[o]:a,content:l}});return[...t,...r].map(s=>"content"in s&&s.content==="_null"?{...s,content:null}:s)}const Gw={key:"flatMeta",hooks:{"entries:normalize":e=>{const t=[];e.tags=e.tags.map(n=>n.tag!=="_flatMeta"?n:(t.push(Do(n.props).map(r=>({...n,tag:"meta",props:r}))),!1)).filter(Boolean).concat(...t)}}};function ql(e,t={},n){for(const r in e){const s=e[r],i=n?`${n}:${r}`:r;typeof s=="object"&&s!==null?ql(s,t,i):typeof s=="function"&&(t[i]=s)}return t}const _g=(()=>{if(console.createTask)return console.createTask;const e={run:t=>t()};return()=>e})();function yg(e,t,n,r){for(let s=n;s<e.length;s+=1)try{const i=r?r.run(()=>e[s](...t)):e[s](...t);if(i instanceof Promise)return i.then(()=>yg(e,t,s+1,r))}catch(i){return Promise.reject(i)}}function zw(e,t,n){if(e.length>0)return yg(e,t,0,_g(n))}function Jw(e,t,n){if(e.length>0){const r=_g(n);return Promise.all(e.map(s=>r.run(()=>s(...t))))}}function za(e,t){for(const n of[...e])n(t)}var Yw=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 s;for(;this._deprecatedHooks[e];)s=this._deprecatedHooks[e],e=s.to;if(s&&!n.allowDeprecated){let i=s.message;i||(i=`${r} 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(!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=(...s)=>(typeof n=="function"&&n(),n=void 0,r=void 0,t(...s));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=ql(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=ql(e);for(const n in t)this.removeHook(n,t[n])}removeAllHooks(){this._hooks={}}callHook(e,...t){return this.callHookWith(zw,e,t)}callHookParallel(e,...t){return this.callHookWith(Jw,e,t)}callHookWith(e,t,n){const r=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&za(this._before,r);const s=e(this._hooks[t]?[...this._hooks[t]]:[],n,t);return s instanceof Promise?s.finally(()=>{this._after&&r&&za(this._after,r)}):(this._after&&r&&za(this._after,r),s)}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 Xw(){return new Yw}const Qw=["name","property","http-equiv"],Zw=new Set(["viewport","description","keywords","robots"]);function bg(e){const t=e.split(":");return t.length?zc.has(t[1]):!1}function Kl(e){const{props:t,tag:n}=e;if(Bw.has(n))return n;if(n==="link"&&t.rel==="canonical")return"canonical";if(n==="link"&&t.rel==="alternate"){const r=t.hreflang||t.type;if(r)return`alternate:${r}`}if(t.charset)return"charset";if(e.tag==="meta"){for(const r of Qw)if(t[r]!==void 0){const s=t[r],i=s&&typeof s=="string"&&s.includes(":"),o=s&&Zw.has(s),l=!(i||o)&&e.key?`:key:${e.key}`:"";return`${n}:${s}${l}`}}if(e.key)return`${n}:key:${e.key}`;if(t.id)return`${n}:id:${t.id}`;if(n==="link"&&t.rel==="alternate")return`alternate:${t.href||""}`;if(jw.has(n)){const r=e.textContent||e.innerHTML;if(r)return`${n}:content:${r}`}}function vg(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,s])=>`${r}:${String(s)}`).join(",")}`}function $o(e,t,n){typeof e==="function"&&(!n||n!=="titleTemplate"&&!(n[0]==="o"&&n[1]==="n"))&&(e=e());const s=t?t(n,e):e;if(Array.isArray(s))return s.map(i=>$o(i,t));if(s?.constructor===Object){const i={};for(const o of Object.keys(s))i[o]=$o(s[o],t,o);return i}return s}function e0(e,t){const n=e==="style"?new Map:new Set;function r(s){if(s==null||s===void 0)return;const i=String(s).trim();if(i)if(e==="style"){const[o,...a]=i.split(":").map(l=>l?l.trim():"");o&&a.length&&n.set(o,a.join(":"))}
5else i.split(" ").filter(Boolean).forEach(o=>n.add(o))}return typeof t=="string"?e==="style"?t.split(";").forEach(r):r(t):Array.isArray(t)?t.forEach(s=>r(s)):t&&typeof t=="object"&&Object.entries(t).forEach(([s,i])=>{i&&i!=="false"&&(e==="style"?n.set(String(s).trim(),String(i)):r(s))}),n}function wg(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]=e0(n,r);return}if(Hw.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 s=String(r),i=n.startsWith("data-"),o=e.tag==="meta"&&n==="content";s==="true"||s===""?e.props[n]=i||o?s:!0:!r&&i&&s==="false"?e.props[n]="false":r!==void 0&&(e.props[n]=r)}),e):e}function t0(e,t){const n=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},r=wg({tag:e,props:{}},n);return r.key&&Uw.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(s=>({...r,props:{...r.props,content:s}})):r}function n0(e,t){if(!e)return[];typeof e=="function"&&(e=e());const n=(s,i)=>{for(let o=0;o<t.length;o++)i=t[o](s,i);return i};e=n(void 0,e);const r=[];return e=$o(e,n),Object.entries(e||{}).forEach(([s,i])=>{if(i!==void 0)for(const o of Array.isArray(i)?i:[i])r.push(t0(s,o))}),r.flat()}const Gl=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,Af={base:-10,title:10},r0={critical:-8,high:-1,low:2},kf={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}},s0=/@import/,js=e=>e===""||e===!0;function i0(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let n=100;const r=r0[t.tagPriority]||0,s=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:kf;if(t.tag in Af)n=Af[t.tag];else if(t.tag==="meta"){const i=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;i&&(n=kf.meta[i])}else if(t.tag==="link"&&t.props.rel)n=s.link[t.props.rel];else if(t.tag==="script"){const i=String(t.props.type);js(t.props.async)?n=s.script.async:t.props.src&&!js(t.props.defer)&&!js(t.props.async)&&i!=="module"&&!i.endsWith("json")||t.innerHTML&&!i.endsWith("json")?n=s.script.sync:(js(t.props.defer)&&t.props.src&&!js(t.props.async)||i==="module")&&(n=s.script.defer)}else t.tag==="style"&&(n=t.innerHTML&&s0.test(t.innerHTML)?s.style.imported:s.style.sync);return(n||100)+r}function Rf(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 o0(e={}){const t=Xw();t.addHooks(e.hooks||{});const n=!e.document,r=new Map,s=new Map,i=new Set,o={_entryCount:1,plugins:s,dirty:!1,resolvedOptions:e,hooks:t,ssr:n,entries:r,headEntries(){return[...r.values()]},use:a=>Rf(o,a),push(a,l){const c={...l||{}};delete c.head;const u=c._index??o._entryCount++,f={_i:u,input:a,options:c},h={_poll(d=!1){o.dirty=!0,!d&&i.add(u),t.callHook("entries:updated",o)},dispose(){r.delete(u)&&o.invalidate()},patch(d){(!c.mode||c.mode==="server"&&n||c.mode==="client"&&!n)&&(f.input=d,r.set(u,f),h._poll())}};return h.patch(a),h},async resolveTags(){const a={tagMap:new Map,tags:[],entries:[...o.entries.values()]};for(await t.callHook("entries:resolve",a);i.size;){const h=i.values().next().value;i.delete(h);const d=r.get(h);if(d){const p={tags:n0(d.input,e.propResolvers||[]).map(m=>Object.assign(m,d.options)),entry:d};await t.callHook("entries:normalize",p),d._tags=p.tags.map((m,v)=>(m._w=i0(o,m),m._p=(d._i<<10)+v,m._d=Kl(m),m._d||(m._h=vg(m)),m))}}let l=!1;a.entries.flatMap(h=>(h._tags||[]).map(d=>({...d,props:{...d.props}}))).sort(Gl).reduce((h,d)=>{const p=d._d||d._h;if(!h.has(p))return h.set(p,d);const m=h.get(p);if((d?.tagDuplicateStrategy||(Vw.has(d.tag)?"merge":null)||(d.key&&d.key===m.key?"merge":null))==="merge"){const b={...m.props};
5Object.entries(d.props).forEach(([y,g])=>b[y]=y==="style"?new Map([...m.props.style||new Map,...g]):y==="class"?new Set([...m.props.class||new Set,...g]):g),h.set(p,{...d,props:b})}else d._p>>10===m._p>>10&&d.tag==="meta"&&bg(p)?(h.set(p,Object.assign([...Array.isArray(m)?m:[m],d],d)),l=!0):(d._w===m._w?d._p>m._p:d?._w<m?._w)&&h.set(p,d);return h},a.tagMap);const c=a.tagMap.get("title"),u=a.tagMap.get("titleTemplate");if(o._title=c?.textContent,u){const h=u?.textContent;if(o._titleTemplate=h,h){let d=typeof h=="function"?h(c?.textContent):h;typeof d=="string"&&!o.plugins.has("template-params")&&(d=d.replace("%s",c?.textContent||"")),c?d===null?a.tagMap.delete("title"):a.tagMap.set("title",{...c,textContent:d}):(u.tag="title",u.textContent=d)}}a.tags=Array.from(a.tagMap.values()),l&&(a.tags=a.tags.flat().sort(Gl)),await t.callHook("tags:beforeResolve",a),await t.callHook("tags:resolve",a),await t.callHook("tags:afterResolve",a);const f=[];for(const h of a.tags){const{innerHTML:d,tag:p,props:m}=h;if(Fw.has(p)&&!(Object.keys(m).length===0&&!h.innerHTML&&!h.textContent)&&!(p==="meta"&&!m.content&&!m["http-equiv"]&&!m.charset)){if(p==="script"&&d){if(String(m.type).endsWith("json")){const v=typeof d=="string"?d:JSON.stringify(d);h.innerHTML=v.replace(/</g,"\\u003C")}else typeof d=="string"&&(h.innerHTML=d.replace(new RegExp(`</${p}`,"g"),`<\\/${p}`));h._d=Kl(h)}f.push(h)}}return f},invalidate(){for(const a of r.values())i.add(a._i);o.dirty=!0,t.callHook("entries:updated",o)}};return(e?.plugins||[]).forEach(a=>Rf(o,a)),o.hooks.callHook("init",o),e.init?.forEach(a=>a&&o.push(a)),o}const Ja="%separator";function a0(e,t,n=!1){let r;if(t==="s"||t==="pageTitle")r=e.pageTitle;else if(t.includes(".")){const s=t.indexOf(".");r=e[t.substring(0,s)]?.[t.substring(s+1)]}else r=e[t];if(r!==void 0)return n?(r||"").replace(/\\/g,"\\\\").replace(/</g,"\\u003C").replace(/"/g,'\\"'):r||""}function Xi(e,t,n,r=!1){if(typeof e!="string"||!e.includes("%"))return e;let s=e;try{s=decodeURI(e)}catch{}const i=s.match(/%\w+(?:\.\w+)?/g);if(!i)return e;const o=e.includes(Ja);return e=e.replace(/%\w+(?:\.\w+)?/g,a=>{if(a===Ja||!i.includes(a))return a;const l=a0(t,a.slice(1),r);return l!==void 0?l:a}).trim(),o&&(e=e.split(Ja).map(a=>a.trim()).filter(a=>a!=="").join(n?` ${n} `:" ")),e}const Of=e=>e.includes(":key")?e:e.split(":").join(":key:"),l0={key:"aliasSorting",hooks:{"tags:resolve":e=>{let t=!1;for(const n of e.tags){const r=n.tagPriority;if(!r)continue;const s=String(r);if(s.startsWith("before:")){const i=Of(s.slice(7)),o=e.tagMap.get(i);o&&(typeof o.tagPriority=="number"&&(n.tagPriority=o.tagPriority),n._p=o._p-1,t=!0)}else if(s.startsWith("after:")){const i=Of(s.slice(6)),o=e.tagMap.get(i);o&&(typeof o.tagPriority=="number"&&(n.tagPriority=o.tagPriority),n._p=o._p+1,t=!0)}}t&&(e.tags=e.tags.sort(Gl))}}},c0={key:"deprecations",hooks:{"entries:normalize":({tags:e})=>{for(const t of e)t.props.children&&(t.innerHTML=t.props.children,delete t.props.children),t.props.hid&&(t.key=t.props.hid,delete t.props.hid),t.props.vmid&&(t.key=t.props.vmid,delete t.props.vmid),t.props.body&&(t.tagPosition="bodyClose",delete t.props.body)}}};async function zl(e){if(typeof e==="function")return e;if(e instanceof Promise)return await e;if(Array.isArray(e))return await Promise.all(e.map(n=>zl(n)));if(e?.constructor===Object){const n={};for(const r of Object.keys(e))n[r]=await zl(e[r]);return n}return e}const u0={key:"promises",hooks:{"entries:resolve":async e=>{const t=[];for(const n in e.entries)e.entries[n]._promisesProcessed||t.push(zl(e.entries[n].input).then(r=>{e.entries[n].input=r,e.entries[n]._promisesProcessed=!0}));await Promise.all(t)}}},f0={meta:"content",link:"href",htmlAttrs:"lang"},d0=["innerHTML","textContent"],h0=e=>({key:"template-params",hooks:{"entries:normalize":t=>{const n=t.tags.filter(r=>r.tag==="templateParams"&&r.mode==="server")?.[0]?.props||{};Object.keys(n).length&&(e._ssrPayload={templateParams:{...e._ssrPayload?.templateParams||{},...n}})},"tags:resolve":({tagMap:t,tags:n})=>{const r=t.get("templateParams")?.props||{},s=r.separator||"|";delete r.separator,r.pageTitle=Xi(r.pageTitle||e._title||"",r,s);for(const i of n){if(i.processTemplateParams===!1)continue;const o=f0[i.tag];
5if(o&&typeof i.props[o]=="string")i.props[o]=Xi(i.props[o],r,s);else if(i.processTemplateParams||i.tag==="titleTemplate"||i.tag==="title")for(const a of d0)typeof i[a]=="string"&&(i[a]=Xi(i[a],r,s,i.tag==="script"&&i.props.type.endsWith("json")))}e._templateParams=r,e._separator=s},"tags:afterResolve":({tagMap:t})=>{const n=t.get("title");n?.textContent&&n.processTemplateParams!==!1&&(n.textContent=Xi(n.textContent,e._templateParams,e._separator))}}}),p0=(e,t)=>Be(t)?fs(t):t,Jc="usehead";function g0(e){return{install(n){n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(Jc,e)}}.install}function Eg(){if(ra()){const e=ct(Jc);if(e)return e}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function Tg(e,t={}){const n=t.head||Eg();return n.ssr?n.push(e||{},t):m0(n,e,t)}function m0(e,t,n={}){const r=kt(!1);let s;return ty(()=>{const o=r.value?{}:$o(t,p0);s?s.patch(o):s=e.push(o,n)}),ln()&&(xi(()=>{s.dispose()}),ap(()=>{r.value=!0}),op(()=>{r.value=!1})),s}function _0(e={},t={}){(t.head||Eg()).use(Gw);const{title:r,titleTemplate:s,...i}=e;return Tg({title:r,titleTemplate:s,_flatMeta:i},t)}function Sg(e){const t=e||og();return t?.ssrContext?.head||t?.runWithContext(()=>{if(ra())return ct(Jc)})}function y0(e,t={}){const n=Sg(t.nuxt);if(n)return Tg(e,{head:n,...t})}function b0(e,t={}){const n=Sg(t.nuxt);if(n)return _0(e,{head:n,...t})}const v0=(()=>{const e={};return(t,n)=>{let r=[];return n.charCodeAt(n.length-1)===47&&(n=n.slice(0,-1)||"/"),n==="/confirm"&&r.unshift({data:e}),r}})(),Ag=e=>ag({},...v0("",e).map(t=>t.data).reverse()),w0=Ag;let mo;function E0(){return mo=$fetch(Gc(`builds/meta/${fn().app.buildId}.json`),{responseType:"json"}),mo.catch(e=>{console.error("[nuxt] Error fetching app manifest.",e)}),mo}function kg(){return mo||E0()}function Rg(e){const t=typeof e=="string"?e:e.path;try{return w0(t)}catch(n){return console.error("[nuxt] Error matching route rules.",n),{}}}async function Cf(e,t={}){return null}async function T0(e){return null}let Ar=null;async function S0(){if(Ar)return Ar;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await A0(e.textContent||""),n=e.dataset.src?await T0(e.dataset.src):void 0;return Ar={...t,...n,...window.__NUXT__},Ar.config?.public&&(Ar.config.public=_r(Ar.config.public)),Ar}async function A0(e){return await $w(e,Ie()._payloadRevivers)}function k0(e,t){Ie()._payloadRevivers[e]=t}const Og=[["NuxtError",e=>Br(e)],["EmptyShallowRef",e=>Hr(e==="_"?void 0:e==="0n"?BigInt(0):mi(e))],["EmptyRef",e=>kt(e==="_"?void 0:e==="0n"?BigInt(0):mi(e))],["ShallowRef",e=>Hr(e)],["ShallowReactive",e=>Tn(e)],["Ref",e=>kt(e)],["Reactive",e=>_r(e)]];Og.push(["Island",({key:e,params:t,result:n})=>{const r=Ie();return r.isHydrating||(r.payload.data[e]||=$fetch(`/__nuxt_island/${e}.json`,{responseType:"json",...t?{params:t}:{}}).then(s=>(r.payload.data[e]=s,s))),{html:"",...n}}]);
5const R0=ot({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const[r,s]of Og)k0(r,s);Object.assign(e.payload,([t,n]=An(()=>e.runWithContext(S0)),t=await t,n(),t)),window.__NUXT__=e.payload}});async function Yc(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 s=>{const i=new Map,o=new Promise(d=>{e.resolveTags().then(p=>{d(p.map(m=>{const v=i.get(m._d)||0,b={tag:m,id:(v?`${m._d}:${v}`:m._d)||m._h,shouldRender:!0};return m._d&&bg(m._d)&&i.set(m._d,v+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 d of["body","head"]){const p=n[d]?.children;for(const m of p){const v=m.tagName.toLowerCase();if(!Tf.has(v))continue;const b=wg({tag:v,props:{}},{innerHTML:m.innerHTML,...m.getAttributeNames().reduce((y,g)=>(y[g]=m.getAttribute(g),y),{})||{}});if(b.key=m.getAttribute("data-hid")||void 0,b._d=Kl(b)||vg(b),a.elMap.has(b._d)){let y=1,g=b._d;for(;a.elMap.has(g);)g=`${b._d}:${y++}`;a.elMap.set(g,m)}else a.elMap.set(b._d,m)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function l(d,p,m){const v=`${d}:${p}`;a.sideEffects[v]=m,delete a.pendingSideEffects[v]}function c({id:d,$el:p,tag:m}){const v=m.tag.endsWith("Attrs");a.elMap.set(d,p),v||(m.textContent&&m.textContent!==p.textContent&&(p.textContent=m.textContent),m.innerHTML&&m.innerHTML!==p.innerHTML&&(p.innerHTML=m.innerHTML),l(d,"el",()=>{p?.remove(),a.elMap.delete(d)}));for(const b in m.props){if(!Object.prototype.hasOwnProperty.call(m.props,b))continue;const y=m.props[b];if(b.startsWith("on")&&typeof y=="function"){const _=p?.dataset;if(_&&_[`${b}fired`]){const T=b.slice(0,-5);y.call(p,new Event(T.substring(2)))}p.getAttribute(`data-${b}`)!==""&&((m.tag==="bodyAttrs"?n.defaultView:p).addEventListener(b.substring(2),y.bind(p)),p.setAttribute(`data-${b}`,""));continue}const g=`attr:${b}`;if(b==="class"){if(!y)continue;for(const _ of y)v&&l(d,`${g}:${_}`,()=>p.classList.remove(_)),!p.classList.contains(_)&&p.classList.add(_)}else if(b==="style"){if(!y)continue;for(const[_,T]of y)l(d,`${g}:${_}`,()=>{p.style.removeProperty(_)}),p.style.setProperty(_,T)}else y!==!1&&y!==null&&(p.getAttribute(b)!==y&&p.setAttribute(b,y===!0?"":String(y)),v&&l(d,g,()=>p.removeAttribute(b)))}}const u=[],f={bodyClose:void 0,bodyOpen:void 0,head:void 0},h=await o;for(const d of h){const{tag:p,shouldRender:m,id:v}=d;if(m){if(p.tag==="title"){n.title=p.textContent,l("title","",()=>n.title=a.title);continue}d.$el=d.$el||a.elMap.get(v),d.$el?c(d):Tf.has(p.tag)&&u.push(d)}}for(const d of u){const p=d.tag.tagPosition||"head";d.$el=n.createElement(d.tag.tag),c(d),f[p]=f[p]||n.createDocumentFragment(),f[p].appendChild(d.$el)}for(const d of h)await e.hooks.callHook("dom:renderTag",d,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 d in a.pendingSideEffects)a.pendingSideEffects[d]();e._dom=a,await e.hooks.callHook("dom:rendered",{renders:h}),s()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function O0(e={}){const t=e.domOptions?.render||Yc;e.document=e.document||(typeof window<"u"?document:void 0);const n=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return o0({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]})}function C0(e,t){let n=0;return()=>{const r=++n;t(()=>{n===r&&e()})}}function P0(e={}){const t=O0({domOptions:{render:C0(()=>Yc(t),n=>setTimeout(n,0))},...e});return t.install=g0(t),t}const I0={disableDefaults:!0,disableCapoSorting:!1,plugins:[c0,u0,h0,l0]},L0=ot({name:"nuxt:head",enforce:"pre",setup(e){const t=P0(I0);e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await Yc(t)};t.hooks.hook("dom:beforeRender",s=>{s.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 is=typeof document<"u";function Cg(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}
vendor: 24,386 bytes, line 5
5function x0(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Cg(e.default)}const Oe=Object.assign;function Ya(e,t){const n={};for(const r in t){const s=t[r];n[r]=cn(s)?s.map(e):e(s)}return n}const si=()=>{},cn=Array.isArray;function Pf(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const Pg=/#/g,N0=/&/g,D0=/\//g,$0=/=/g,M0=/\?/g,Ig=/\+/g,U0=/%5B/g,j0=/%5D/g,Lg=/%5E/g,F0=/%60/g,xg=/%7B/g,B0=/%7C/g,Ng=/%7D/g,H0=/%20/g;function Xc(e){return e==null?"":encodeURI(""+e).replace(B0,"|").replace(U0,"[").replace(j0,"]")}function V0(e){return Xc(e).replace(xg,"{").replace(Ng,"}").replace(Lg,"^")}function Jl(e){return Xc(e).replace(Ig,"%2B").replace(H0,"+").replace(Pg,"%23").replace(N0,"%26").replace(F0,"`").replace(xg,"{").replace(Ng,"}").replace(Lg,"^")}function W0(e){return Jl(e).replace($0,"%3D")}function q0(e){return Xc(e).replace(Pg,"%23").replace(M0,"%3F")}function K0(e){return q0(e).replace(D0,"%2F")}function bi(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const G0=/\/$/,z0=e=>e.replace(G0,"");function Xa(e,t,n="/"){let r,s={},i="",o="";const a=t.indexOf("#");let l=t.indexOf("?");return l=a>=0&&l>a?-1:l,l>=0&&(r=t.slice(0,l),i=t.slice(l,a>0?a:t.length),s=e(i.slice(1))),a>=0&&(r=r||t.slice(0,a),o=t.slice(a,t.length)),r=Q0(r??t,n),{fullPath:r+i+o,path:r,query:s,hash:bi(o)}}function J0(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function If(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Y0(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&As(t.matched[r],n.matched[s])&&Dg(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function As(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Dg(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!X0(e[n],t[n]))return!1;return!0}function X0(e,t){return cn(e)?Lf(e,t):cn(t)?Lf(t,e):e?.valueOf()===t?.valueOf()}function Lf(e,t){return cn(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Q0(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let i=n.length-1,o,a;for(o=0;o<r.length;o++)if(a=r[o],a!==".")if(a==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(o).join("/")}const Ht={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Yl=(function(e){return e.pop="pop",e.push="push",e})({}),Qa=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function Z0(e){if(!e)if(is){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),z0(e)}const eE=/^[^#]+#/;function tE(e,t){return e.replace(eE,"#")+t}function nE(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 ma=()=>({left:window.scrollX,top:window.scrollY});function rE(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=nE(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function xf(e,t){return(history.state?history.state.position-t:-1)+e}const Xl=new Map;function sE(e,t){Xl.set(e,t)}function iE(e){const t=Xl.get(e);return Xl.delete(e),t}function oE(e){return typeof e=="string"||e&&typeof e=="object"}function $g(e){return typeof e=="string"||typeof e=="symbol"}let Ke=(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 Mg=Symbol("");Ke.MATCHER_NOT_FOUND+"",Ke.NAVIGATION_GUARD_REDIRECT+"",Ke.NAVIGATION_ABORTED+"",Ke.NAVIGATION_CANCELLED+"",Ke.NAVIGATION_DUPLICATED+"";function ks(e,t){return Oe(new Error,{type:e,[Mg]:!0},t)}function mn(e,t){return e instanceof Error&&Mg in e&&(t==null||!!(e.type&t))}const aE=["params","query","hash"];function lE(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of aE)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function cE(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const s=n[r].replace(Ig," "),i=s.indexOf("="),o=bi(i<0?s:s.slice(0,i)),a=i<0?null:bi(s.slice(i+1));if(o in t){let l=t[o];cn(l)||(l=t[o]=[l]),l.push(a)}else t[o]=a}return t}function Nf(e){let t="";for(let n in e){const r=e[n];if(n=W0(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(cn(r)?r.map(s=>s&&Jl(s)):[r&&Jl(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function uE(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=cn(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const fE=Symbol(""),Df=Symbol(""),Qc=Symbol(""),Zc=Symbol(""),Ql=Symbol("");function Fs(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function sr(e,t,n,r,s,i=o=>o()){const o=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((a,l)=>{const c=h=>{h===!1?l(ks(Ke.NAVIGATION_ABORTED,{from:n,to:t})):h instanceof Error?l(h):oE(h)?l(ks(Ke.NAVIGATION_GUARD_REDIRECT,{from:t,to:h})):(o&&r.enterCallbacks[s]===o&&typeof h=="function"&&o.push(h),a())},u=i(()=>e.call(r&&r.instances[s],t,n,c));let f=Promise.resolve(u);e.length<3&&(f=f.then(c)),f.catch(h=>l(h))})}function Za(e,t,n,r,s=i=>i()){const i=[];for(const o of e)for(const a in o.components){let l=o.components[a];if(!(t!=="beforeRouteEnter"&&!o.instances[a]))if(Cg(l)){const c=(l.__vccOpts||l)[t];c&&i.push(sr(c,n,r,o,a,s))}else{let c=l();i.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${o.path}"`);const f=x0(u)?u.default:u;o.mods[a]=u,o.components[a]=f;const h=(f.__vccOpts||f)[t];return h&&sr(h,n,r,o,a,s)()}))}}return i}function dE(e,t){const n=[],r=[],s=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;o<i;o++){const a=t.matched[o];a&&(e.matched.find(c=>As(c,a))?r.push(a):n.push(a));const l=e.matched[o];l&&(t.matched.find(c=>As(c,l))||s.push(l))}return[n,r,s]}let hE=()=>location.protocol+"//"+location.host;function Ug(e,t){const{pathname:n,search:r,hash:s}=t,i=e.indexOf("#");if(i>-1){let o=s.includes(e.slice(i))?e.slice(i).length:1,a=s.slice(o);return a[0]!=="/"&&(a="/"+a),If(a,"")}return If(n,e)+r+s}function pE(e,t,n,r){let s=[],i=[],o=null;const a=({state:h})=>{const d=Ug(e,location),p=n.value,m=t.value;let v=0;if(h){if(n.value=d,t.value=h,o&&o===p){o=null;return}v=m?h.position-m.position:0}else r(d);s.forEach(b=>{b(n.value,p,{delta:v,type:Yl.pop,direction:v?v>0?Qa.forward:Qa.back:Qa.unknown})})};function l(){o=n.value}function c(h){s.push(h);const d=()=>{const p=s.indexOf(h);p>-1&&s.splice(p,1)};return i.push(d),d}function u(){if(document.visibilityState==="hidden"){const{history:h}=window;if(!h.state)return;h.replaceState(Oe({},h.state,{scroll:ma()}),"")}}function f(){for(const h of i)h();i=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",u),document.removeEventListener("visibilitychange",u)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",u),document.addEventListener("visibilitychange",u),{pauseListeners:l,listen:c,destroy:f}}function $f(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?ma():null}}function gE(e){const{history:t,location:n}=window,r={value:Ug(e,n)},s={value:t.state};s.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,c,u){const f=e.indexOf("#"),h=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:hE()+e+l;try{t[u?"replaceState":"pushState"](c,"",h),s.value=c}catch(d){console.error(d),n[u?"replace":"assign"](h)}}function o(l,c){i(l,Oe({},t.state,$f(s.value.back,l,s.value.forward,!0),c,{position:s.value.position}),!0),r.value=l}function a(l,c){const u=Oe({},s.value,t.state,{forward:l,scroll:ma()});i(u.current,u,!0),i(l,Oe({},$f(r.value,l,null),{position:u.position+1},c),!1),r.value=l}return{location:r,state:s,push:a,replace:o}}function mE(e){e=Z0(e);const t=gE(e),n=pE(e,t.state,t.location,t.replace);function r(i,o=!0){o||n.pauseListeners(),history.go(i)}const s=Oe({location:"",base:e,go:r,createHref:tE.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}let $r=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var nt=(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})(nt||{});const _E={type:$r.Static,value:""},yE=/[a-zA-Z0-9_]/;function bE(e){if(!e)return[[]];if(e==="/")return[[_E]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(d){throw new Error(`ERR (${n})/"${c}": ${d}`)}let n=nt.Static,r=n;const s=[];let i;function o(){i&&s.push(i),i=[]}let a=0,l,c="",u="";function f(){c&&(n===nt.Static?i.push({type:$r.Static,value:c}):n===nt.Param||n===nt.ParamRegExp||n===nt.ParamRegExpEnd?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:$r.Param,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function h(){c+=l}for(;a<e.length;){if(l=e[a++],l==="\\"&&n!==nt.ParamRegExp){r=n,n=nt.EscapeNext;continue}switch(n){case nt.Static:l==="/"?(c&&f(),o()):l===":"?(f(),n=nt.Param):h();break;case nt.EscapeNext:h(),n=r;break;case nt.Param:l==="("?n=nt.ParamRegExp:yE.test(l)?h():(f(),n=nt.Static,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case nt.ParamRegExp:l===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+l:n=nt.ParamRegExpEnd:u+=l;break;case nt.ParamRegExpEnd:f(),n=nt.Static,l!=="*"&&l!=="?"&&l!=="+"&&a--,u="";break;default:t("Unknown state");break}}return n===nt.ParamRegExp&&t(`Unfinished custom RegExp for param "${c}"`),f(),o(),s}const Mf="[^/]+?",vE={sensitive:!1,strict:!1,start:!0,end:!0};var Tt=(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})(Tt||{});const wE=/[.+*?^${}()[\]/\\]/g;function EE(e,t){const n=Oe({},vE,t),r=[];let s=n.start?"^":"";const i=[];for(const c of e){const u=c.length?[]:[Tt.Root];n.strict&&!c.length&&(s+="/");for(let f=0;f<c.length;f++){const h=c[f];let d=Tt.Segment+(n.sensitive?Tt.BonusCaseSensitive:0);if(h.type===$r.Static)f||(s+="/"),s+=h.value.replace(wE,"\\$&"),d+=Tt.Static;else if(h.type===$r.Param){const{value:p,repeatable:m,optional:v,regexp:b}=h;i.push({name:p,repeatable:m,optional:v});const y=b||Mf;if(y!==Mf){d+=Tt.BonusCustomRegExp;try{`${y}`}catch(_){throw new Error(`Invalid custom RegExp for param "${p}" (${y}): `+_.message)}}let g=m?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;f||(g=v&&c.length<2?`(?:/${g})`:"/"+g),v&&(g+="?"),s+=g,d+=Tt.Dynamic,v&&(d+=Tt.BonusOptional),m&&(d+=Tt.BonusRepeatable),y===".*"&&(d+=Tt.BonusWildcard)}u.push(d)}r.push(u)}if(n.strict&&n.end){const c=r.length-1;r[c][r[c].length-1]+=Tt.BonusStrict}n.strict||(s+="/?"),n.end?s+="$":n.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const o=new RegExp(s,n.sensitive?"":"i");function a(c){const u=c.match(o),f={};if(!u)return null;for(let h=1;h<u.length;h++){const d=u[h]||"",p=i[h-1];f[p.name]=d&&p.repeatable?d.split("/"):d}return f}function l(c){let u="",f=!1;for(const h of e){(!f||!u.endsWith("/"))&&(u+="/"),f=!1;for(const d of h)if(d.type===$r.Static)u+=d.value;else if(d.type===$r.Param){const{value:p,repeatable:m,optional:v}=d,b=p in c?c[p]:"";if(cn(b)&&!m)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const y=cn(b)?b.join("/"):b;if(!y)if(v)h.length<2&&(u.endsWith("/")?u=u.slice(0,-1):f=!0);else throw new Error(`Missing required param "${p}"`);u+=y}}return u||"/"}return{re:o,score:r,keys:i,parse:a,stringify:l}}function TE(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]===Tt.Static+Tt.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Tt.Static+Tt.Segment?1:-1:0}function jg(e,t){let n=0;const r=e.score,s=t.score;for(;n<r.length&&n<s.length;){const i=TE(r[n],s[n]);if(i)return i;n++}if(Math.abs(s.length-r.length)===1){if(Uf(r))return 1;if(Uf(s))return-1}return s.length-r.length}function Uf(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const SE={strict:!1,end:!0,sensitive:!1};function AE(e,t,n){const r=EE(bE(e.path),n),s=Oe(r,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function kE(e,t){const n=[],r=new Map;t=Pf(SE,t);function s(f){return r.get(f)}function i(f,h,d){const p=!d,m=Ff(f);m.aliasOf=d&&d.record;const v=Pf(t,f),b=[m];if("alias"in f){const _=typeof f.alias=="string"?[f.alias]:f.alias;for(const T of _)b.push(Ff(Oe({},m,{components:d?d.record.components:m.components,path:T,aliasOf:d?d.record:m})))}let y,g;for(const _ of b){const{path:T}=_;if(h&&T[0]!=="/"){const R=h.record.path,k=R[R.length-1]==="/"?"":"/";_.path=h.record.path+(T&&k+T)}if(y=AE(_,h,v),d?d.alias.push(y):(g=g||y,g!==y&&g.alias.push(y),p&&f.name&&!Bf(y)&&o(f.name)),Fg(y)&&l(y),m.children){const R=m.children;for(let k=0;k<R.length;k++)i(R[k],y,d&&d.children[k])}d=d||y}return g?()=>{o(g)}:si}function o(f){if($g(f)){const h=r.get(f);h&&(r.delete(f),n.splice(n.indexOf(h),1),h.children.forEach(o),h.alias.forEach(o))}else{const h=n.indexOf(f);h>-1&&(n.splice(h,1),f.record.name&&r.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function a(){return n}function l(f){const h=CE(f,n);n.splice(h,0,f),f.record.name&&!Bf(f)&&r.set(f.record.name,f)}function c(f,h){let d,p={},m,v;if("name"in f&&f.name){if(d=r.get(f.name),!d)throw ks(Ke.MATCHER_NOT_FOUND,{location:f});v=d.record.name,p=Oe(jf(h.params,d.keys.filter(g=>!g.optional).concat(d.parent?d.parent.keys.filter(g=>g.optional):[]).map(g=>g.name)),f.params&&jf(f.params,d.keys.map(g=>g.name))),m=d.stringify(p)}else if(f.path!=null)m=f.path,d=n.find(g=>g.re.test(m)),d&&(p=d.parse(m),v=d.record.name);else{if(d=h.name?r.get(h.name):n.find(g=>g.re.test(h.path)),!d)throw ks(Ke.MATCHER_NOT_FOUND,{location:f,currentLocation:h});v=d.record.name,p=Oe({},h.params,f.params),m=d.stringify(p)}const b=[];let y=d;for(;y;)b.unshift(y.record),y=y.parent;return{name:v,path:m,params:p,matched:b,meta:OE(b)}}e.forEach(f=>i(f));function u(){n.length=0,r.clear()}return{addRoute:i,resolve:c,removeRoute:o,clearRoutes:u,getRoutes:a,getRecordMatcher:s}}function jf(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Ff(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:RE(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 RE(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 Bf(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function OE(e){return e.reduce((t,n)=>Oe(t,n.meta),{})}function CE(e,t){let n=0,r=t.length;for(;n!==r;){const i=n+r>>1;jg(e,t[i])<0?r=i:n=i+1}const s=PE(e);return s&&(r=t.lastIndexOf(s,r-1)),r}function PE(e){let t=e;for(;t=t.parent;)if(Fg(t)&&jg(e,t)===0)return t}function Fg({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Hf(e){const t=ct(Qc),n=ct(Zc),r=ve(()=>{const l=de(e.to);return t.resolve(l)}),s=ve(()=>{const{matched:l}=r.value,{length:c}=l,u=l[c-1],f=n.matched;if(!u||!f.length)return-1;const h=f.findIndex(As.bind(null,u));if(h>-1)return h;const d=Vf(l[c-2]);return c>1&&Vf(u)===d&&f[f.length-1].path!==d?f.findIndex(As.bind(null,l[c-2])):h}),i=ve(()=>s.value>-1&&DE(n.params,r.value.params)),o=ve(()=>s.value>-1&&s.value===n.matched.length-1&&Dg(n.params,r.value.params));function a(l={}){if(NE(l)){const c=t[de(e.replace)?"replace":"push"](de(e.to)).catch(si);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:r,href:ve(()=>r.value.href),isActive:i,isExactActive:o,navigate:a}}function IE(e){return e.length===1?e[0]:e}const LE=Yt({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:Hf,setup(e,{slots:t}){const n=_r(Hf(e)),{options:r}=ct(Qc),s=ve(()=>({[Wf(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Wf(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&IE(t.default(n));return e.custom?i:lt("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},i)}}}),xE=LE;function NE(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 DE(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!cn(s)||s.length!==r.length||r.some((i,o)=>i.valueOf()!==s[o].valueOf()))return!1}return!0}function Vf(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Wf=(e,t,n)=>e??t??n,$E=Yt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=ct(Ql),s=ve(()=>e.route||r.value),i=ct(Df,0),o=ve(()=>{let c=de(i);const{matched:u}=s.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),a=ve(()=>s.value.matched[o.value]);ur(Df,ve(()=>o.value+1)),ur(fE,a),ur(Ql,s);const l=kt();return Ut(()=>[l.value,a.value,e.name],([c,u,f],[h,d,p])=>{u&&(u.instances[f]=c,d&&d!==u&&c&&c===h&&(u.leaveGuards.size||(u.leaveGuards=d.leaveGuards),u.updateGuards.size||(u.updateGuards=d.updateGuards))),c&&u&&(!d||!As(u,d)||!h)&&(u.enterCallbacks[f]||[]).forEach(m=>m(c))},{flush:"post"}),()=>{const c=s.value,u=e.name,f=a.value,h=f&&f.components[u];if(!h)return qf(n.default,{Component:h,route:c});const d=f.props[u],p=d?d===!0?c.params:typeof d=="function"?d(c):d:null,v=lt(h,Oe({},p,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(f.instances[u]=null)},ref:l}));return qf(n.default,{Component:v,route:c})||v}}});function qf(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Bg=$E;function ME(e){const t=kE(e.routes,e),n=e.parseQuery||cE,r=e.stringifyQuery||Nf,s=e.history,i=Fs(),o=Fs(),a=Fs(),l=Hr(Ht);let c=Ht;is&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Ya.bind(null,U=>""+U),f=Ya.bind(null,K0),h=Ya.bind(null,bi);function d(U,z){let G,Q;return $g(U)?(G=t.getRecordMatcher(U),Q=z):Q=U,t.addRoute(Q,G)}function p(U){const z=t.getRecordMatcher(U);z&&t.removeRoute(z)}function m(){return t.getRoutes().map(U=>U.record)}function v(U){return!!t.getRecordMatcher(U)}function b(U,z){if(z=Oe({},z||l.value),typeof U=="string"){const A=Xa(n,U,z.path),I=t.resolve({path:A.path},z),B=s.createHref(A.fullPath);return Oe(A,I,{params:h(I.params),hash:bi(A.hash),redirectedFrom:void 0,href:B})}let G;if(U.path!=null)G=Oe({},U,{path:Xa(n,U.path,z.path).path});else{const A=Oe({},U.params);for(const I in A)A[I]==null&&delete A[I];G=Oe({},U,{params:f(A)}),z.params=f(z.params)}const Q=t.resolve(G,z),ue=U.hash||"";Q.params=u(h(Q.params));const Ae=J0(r,Oe({},U,{hash:V0(ue),path:Q.path})),E=s.createHref(Ae);return Oe({fullPath:Ae,hash:ue,query:r===Nf?uE(U.query):U.query||{}},Q,{redirectedFrom:void 0,href:E})}function y(U){return typeof U=="string"?Xa(n,U,l.value.path):Oe({},U)}function g(U,z){if(c!==U)return ks(Ke.NAVIGATION_CANCELLED,{from:z,to:U})}function _(U){return k(U)}function T(U){return _(Oe(y(U),{replace:!0}))}function R(U,z){const G=U.matched[U.matched.length-1];if(G&&G.redirect){const{redirect:Q}=G;let ue=typeof Q=="function"?Q(U,z):Q;return typeof ue=="string"&&(ue=ue.includes("?")||ue.includes("#")?ue=y(ue):{path:ue},ue.params={}),Oe({query:U.query,hash:U.hash,params:ue.path!=null?{}:U.params},ue)}}function k(U,z){const G=c=b(U),Q=l.value,ue=U.state,Ae=U.force,E=U.replace===!0,A=R(G,Q);if(A)return k(Oe(y(A),{state:typeof A=="object"?Oe({},ue,A.state):ue,force:Ae,replace:E}),z||G);const I=G;I.redirectedFrom=z;let B;return!Ae&&Y0(r,Q,G)&&(B=ks(Ke.NAVIGATION_DUPLICATED,{to:I,from:Q}),ce(Q,Q,!0,!1)),(B?Promise.resolve(B):H(I,Q)).catch($=>mn($)?mn($,Ke.NAVIGATION_GUARD_REDIRECT)?$:ge($):re($,I,Q)).then($=>{if($){if(mn($,Ke.NAVIGATION_GUARD_REDIRECT))return k(Oe({replace:E},y($.to),{state:typeof $.to=="object"?Oe({},ue,$.to.state):ue,force:Ae}),z||I)}else $=M(I,Q,!0,E,ue);return F(I,Q,$),$})}function j(U,z){const G=g(U,z);return G?Promise.reject(G):Promise.resolve()}function N(U){const z=xt.values().next().value;return z&&typeof z.runWithContext=="function"?z.runWithContext(U):U()}function H(U,z){let G;const[Q,ue,Ae]=dE(U,z);G=Za(Q.reverse(),"beforeRouteLeave",U,z);for(const A of Q)A.leaveGuards.forEach(I=>{G.push(sr(I,U,z))});const E=j.bind(null,U,z);return G.push(E),qe(G).then(()=>{G=[];for(const A of i.list())G.push(sr(A,U,z));return G.push(E),qe(G)}).then(()=>{G=Za(ue,"beforeRouteUpdate",U,z);for(const A of ue)A.updateGuards.forEach(I=>{G.push(sr(I,U,z))});return G.push(E),qe(G)}).then(()=>{G=[];for(const A of Ae)if(A.beforeEnter)if(cn(A.beforeEnter))for(const I of A.beforeEnter)G.push(sr(I,U,z));else G.push(sr(A.beforeEnter,U,z));return G.push(E),qe(G)}).then(()=>(U.matched.forEach(A=>A.enterCallbacks={}),G=Za(Ae,"beforeRouteEnter",U,z,N),G.push(E),qe(G))).then(()=>{G=[];for(const A of o.list())G.push(sr(A,U,z));return G.push(E),qe(G)}).catch(A=>mn(A,Ke.NAVIGATION_CANCELLED)?A:Promise.reject(A))}function F(U,z,G){a.list().forEach(Q=>N(()=>Q(U,z,G)))}function M(U,z,G,Q,ue){const Ae=g(U,z);if(Ae)return Ae;const E=z===Ht,A=is?history.state:{};G&&(Q||E?s.replace(U.fullPath,Oe({scroll:E&&A&&A.scroll},ue)):s.push(U.fullPath,ue)),l.value=U,ce(U,z,G,E),ge()}let J;function ne(){J||(J=s.listen((U,z,G)=>{if(!Te.listening)return;const Q=b(U),ue=R(Q,Te.currentRoute.value);if(ue){k(Oe(ue,{replace:!0,force:!0}),Q).catch(si);return}c=Q;const Ae=l.value;is&&sE(xf(Ae.fullPath,G.delta),ma()),H(Q,Ae).catch(E=>mn(E,Ke.NAVIGATION_ABORTED|Ke.NAVIGATION_CANCELLED)?E:mn(E,Ke.NAVIGATION_GUARD_REDIRECT)?(k(Oe(y(E.to),{force:!0}),Q).then(A=>{mn(A,Ke.NAVIGATION_ABORTED|Ke.NAVIGATION_DUPLICATED)&&!G.delta&&G.type===Yl.pop&&s.go(-1,!1)}).catch(si),Promise.reject()):(G.delta&&s.go(-G.delta,!1),re(E,Q,Ae))).then(E=>{E=E||M(Q,Ae,!1),E&&(G.delta&&!mn(E,Ke.NAVIGATION_CANCELLED)?s.go(-G.delta,!1):G.type===Yl.pop&&mn(E,Ke.NAVIGATION_ABORTED|Ke.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),F(Q,Ae,E)}).catch(si)}))}let he=Fs(),Y=Fs(),ae;function re(U,z,G){ge(U);const Q=Y.list();return Q.length?Q.forEach(ue=>ue(U,z,G)):console.error(U),Promise.reject(U)}function ye(){return ae&&l.value!==Ht?Promise.resolve():new Promise((U,z)=>{he.add([U,z])})}function ge(U){return ae||(ae=!U,ne(),he.list().forEach(([z,G])=>U?G(U):z()),he.reset()),U}function ce(U,z,G,Q){const{scrollBehavior:ue}=e;if(!is||!ue)return Promise.resolve();
5const Ae=!G&&iE(xf(U.fullPath,0))||(Q||!G)&&history.state&&history.state.scroll||null;return gr().then(()=>ue(U,z,Ae)).then(E=>E&&rE(E)).catch(E=>re(E,U,z))}const be=U=>s.go(U);let Le;const xt=new Set,Te={currentRoute:l,listening:!0,addRoute:d,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:v,getRoutes:m,resolve:b,options:e,push:_,replace:T,go:be,back:()=>be(-1),forward:()=>be(1),beforeEach:i.add,beforeResolve:o.add,afterEach:a.add,onError:Y.add,isReady:ye,install(U){U.component("RouterLink",xE),U.component("RouterView",Bg),U.config.globalProperties.$router=Te,Object.defineProperty(U.config.globalProperties,"$route",{enumerable:!0,get:()=>de(l)}),is&&!Le&&l.value===Ht&&(Le=!0,_(s.location).catch(Q=>{}));const z={};for(const Q in Ht)Object.defineProperty(z,Q,{get:()=>l.value[Q],enumerable:!0});U.provide(Qc,Te),U.provide(Zc,Tn(z)),U.provide(Ql,l);const G=U.unmount;xt.add(U),U.unmount=function(){xt.delete(U),xt.size<1&&(c=Ht,J&&J(),J=null,l.value=Ht,Le=!1,ae=!1),G()}}};function qe(U){return U.reduce((z,G)=>z.then(()=>N(G)),Promise.resolve())}return Te}function Hg(e){return ct(Zc)}const UE=/(:\w+)\([^)]+\)/g,jE=/(:\w+)[?+*]/g,FE=/:\w+/g,BE=(e,t)=>t.path.replace(UE,"$1").replace(jE,"$1").replace(FE,n=>e.params[n.slice(1)]?.toString()||""),Zl=(e,t)=>{const n=e.route.matched.find(s=>s.components?.default===e.Component.type),r=t??n?.meta.key??(n&&BE(e.route,n));return typeof r=="function"?r(e.route):r},HE=(e,t)=>({default:()=>e?lt(vy,e===!0?{}:e,t):t});function eu(e){return Array.isArray(e)?e:[e]}const VE="modulepreload",WE=function(e,t){return new URL(e,t).href},Kf={},fe=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){let c=function(u){return Promise.all(u.map(f=>Promise.resolve(f).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};const o=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=a?.nonce||a?.getAttribute("nonce");s=c(n.map(u=>{if(u=WE(u,r),u in Kf)return;Kf[u]=!0;const f=u.endsWith(".css"),h=f?'[rel="stylesheet"]':"";if(r)for(let p=o.length-1;p>=0;p--){const m=o[p];if(m.href===u&&(!f||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${h}`))return;const d=document.createElement("link");if(d.rel=f?"stylesheet":VE,f||(d.as="script"),d.crossOrigin="",d.href=u,l&&d.setAttribute("nonce",l),document.head.appendChild(d),f)return new Promise((p,m)=>{d.addEventListener("load",p),d.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${u}`)))})}))}function i(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return s.then(o=>{for(const a of o||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})},qE={layout:"default"},KE={layout:"indielogs"},GE={layout:"custom"},zE={layout:"custom"},JE={layout:"default"},YE={layout:"custom"},XE={layout:"custom"},QE={layout:"default"},ZE={layout:"default"},eT={layout:"loggedin"},tT={layout:"default"},nT={layout:"custom"},rT={layout:"custom"},sT={layout:"loggedin"},iT={layout:"custom"},oT={layout:"default"},aT={layout:"default"},lT={layout:"startup-idea"},cT={layout:"default"},uT={layout:"indielogs"},fT={layout:"default"},dT={layout:"custom"},hT={layout:"startup-idea"},pT={layout:"default"},gT={layout:"embed"},mT={layout:"custom"},_T={layout:"startup-idea"},yT={layout:"default"},bT={layout:"default"},vT={layout:"default"},wT={layout:"default"},el=[{name:"404___en",path:"/404",meta:qE||{},component:()=>fe(()=>import("./C5sgdyU7.js"),__vite__mapDeps([0,1,2]),import.meta.url)},{name:"app___en",path:"/app",meta:{...KE||{},middleware:"auth"},component:()=>fe(()=>import("./BR8G1Lm-.js"),__vite__mapDeps([3,4,5,6,7,1,8]),import.meta.url)},{name:"why___en",path:"/why",meta:GE||{},component:()=>fe(()=>import("./DejiEXVP.js"),__vite__mapDeps([9,10,4,1,5]),import.meta.url)},{name:"auth___en",path:"/auth",meta:zE||{},component:()=>fe(()=>import("./BuLRVBqz.js"),__vite__mapDeps([11,12,1,13]),import.meta.url)},{name:"blog___en",path:"/blog",meta:JE||{},component:()=>fe(()=>import("./BmladEZr.js"),__vite__mapDeps([14,5,12,7,1,15]),import.meta.url)},{name:"feed___en",path:"/feed",meta:YE||{},component:()=>fe(()=>import("./t-2kK0ll.js"),__vite__mapDeps([16,10,4,1,5,17,18,19,20,21,7]),import.meta.url)},{name:"index___en",path:"/",meta:XE||{},component:()=>fe(()=>import("./Bq0dffKh.js"),__vite__mapDeps([22,10,4,1,23]),import.meta.url)},{name:"confirm___en",path:"/confirm",meta:QE||{},component:()=>fe(()=>import("./CZyxUcXh.js"),__vite__mapDeps([24,1,25]),import.meta.url)},{name:"heatmap___en",path:"/heatmap",meta:ZE||{},component:()=>fe(()=>import("./CBM05Y7A.js"),__vite__mapDeps([26,5,27,1,28,29]),import.meta.url)},{name:"payment___en",path:"/payment",meta:{...eT||{},middleware:"auth"},component:()=>fe(()=>import("./BEqWq0cL.js"),__vite__mapDeps([30,4,5,6,7,12,1,31]),import.meta.url)},{name:"feedssss___en",path:"/feedssss",meta:tT||{},component:()=>fe(()=>import("./CEdjvUN3.js"),[],import.meta.url)},{name:"rankings___en",path:"/rankings",meta:rT||{},component:()=>fe(()=>import("./B936b8P7.js"),__vite__mapDeps([32,10,4,1,5,33,34,6,7]),import.meta.url),children:[{name:"rankings-category___en",path:":category()",meta:nT||{},component:()=>fe(()=>import("./B3W1GDtT.js"),__vite__mapDeps([35,10,4,1,5,33,34,6,7]),import.meta.url)}]},{name:"settings___en",path:"/settings",meta:{...sT||{},middleware:"auth"},component:()=>fe(()=>import("./DDihncDr.js"),__vite__mapDeps([36,5,37,38,1,39,12,40,41]),import.meta.url)},{name:"categories___en",path:"/categories",meta:iT||{},component:()=>fe(()=>import("./Ctsgs1Tq.js"),__vite__mapDeps([42,10,4,1,5,33,34,6,7]),import.meta.url)},{name:"free-tools___en",path:"/free-tools",meta:oT||{},component:()=>fe(()=>import("./McOAnWIB.js"),__vite__mapDeps([43,5,44,1,45]),import.meta.url)},{name:"oldrankings___en",path:"/oldrankings",meta:aT||{},component:()=>fe(()=>import("./Dm90XyGo.js"),[],import.meta.url)},{name:"tool-bmc-id___en",path:"/tool/bmc/:id?",meta:lT||{},component:()=>fe(()=>import("./TZWEOB8H.js"),__vite__mapDeps([46,47,6,7,1,48]),import.meta.url)},{name:"tools-marketing___en",path:"/tools/marketing",meta:cT||{},component:()=>fe(()=>import("./BnmZP0EL.js"),__vite__mapDeps([49,50,5,1,51,52]),import.meta.url)},{name:"username___en",path:"/:username()",meta:uT||{},component:()=>fe(()=>import("./ChAq-wQK.js"),__vite__mapDeps([53,38,1,17,18,19,20,21,6,7,54]),import.meta.url)},{name:"tools-toolSlug___en",path:"/tools/:toolSlug()",meta:fT||{},component:()=>fe(()=>import("./bJV1MXU4.js"),__vite__mapDeps([55,5,44,1,56]),import.meta.url)},{name:"articles-title___en",path:"/articles/:title?",meta:dT||{},component:()=>fe(()=>import("./CTMniRx9.js"),__vite__mapDeps([57,58,10,4,1,38,19,12,7,59]),import.meta.url)},{name:"startup-idea-id___en",path:"/startup-idea/:id?",meta:hT||{},component:()=>fe(()=>
5import("./g0foPpwd.js"),__vite__mapDeps([60,1,47,6,7,61]),import.meta.url)},{name:"legal-privacy-policy___en",path:"/legal/privacy-policy",meta:pT||{},component:()=>fe(()=>import("./DMlvqsaY.js"),__vite__mapDeps([62,5,1,63]),import.meta.url)},{name:"startups-startup___en",path:"/startups/:startup?",meta:gT||{},component:()=>fe(()=>import("./CX32LmUt.js"),__vite__mapDeps([64,4,34,17,18,19,20,1,21,7,65]),import.meta.url)},{name:"category-category___en",path:"/category/:category?",meta:mT||{},component:()=>fe(()=>import("./CZnwEk2s.js"),__vite__mapDeps([66,10,4,1,5,33,34,6,7]),import.meta.url)},{name:"tool-marketing-id___en",path:"/tool/marketing/:id?",meta:_T||{},component:()=>fe(()=>import("./C6kkVEGv.js"),__vite__mapDeps([67,47,6,7,1,68]),import.meta.url)},{name:"startup-idea-validator___en",path:"/startup-idea-validator",meta:yT||{},component:()=>fe(()=>import("./Bj2ij8dt.js"),__vite__mapDeps([69,50,5,1,51,70]),import.meta.url)},{name:"account-center-proposals___en",path:"/account-center-proposals",meta:bT||{},component:()=>fe(()=>import("./Cf2Yw6fH.js"),[],import.meta.url)},{name:"legal-terms-and-conditions___en",path:"/legal/terms-and-conditions",meta:vT||{},component:()=>fe(()=>import("./DYNZq_EG.js"),__vite__mapDeps([71,5,1,72]),import.meta.url)},{name:"tools-business-model-canvas-generator___en",path:"/tools/business-model-canvas-generator",meta:wT||{},component:()=>fe(()=>import("./CDP7Rytg.js"),__vite__mapDeps([73,50,5,1,51,74]),import.meta.url)}],Vg=(e,t)=>({default:()=>e?lt(wb,e===!0?{}:e,t):t.default?.()}),ET=/(:\w+)\([^)]+\)/g,TT=/(:\w+)[?+*]/g,ST=/:\w+/g;function Gf(e){const t=e?.meta.key??e.path.replace(ET,"$1").replace(TT,"$1").replace(ST,n=>e.params[n.slice(1)]?.toString()||"");return typeof t=="function"?t(e):t}function AT(e,t){return e===t||t===Ht?!1:Gf(e)!==Gf(t)?!0:!e.matched.every((r,s)=>r.components&&r.components.default===t.matched[s]?.components?.default)}const kT={scrollBehavior(e,t,n){const r=Ie(),s=bt().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:Wg(e.hash),behavior:s}:!1;if((typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop)===!1)return!1;const o=r._runningTransition?"page:transition:finish":"page:loading:end";return new Promise(a=>{if(t===Ht){a(zf(e,t,n,s));return}r.hooks.hookOnce(o,()=>{requestAnimationFrame(()=>a(zf(e,t,n,s)))})})}};function Wg(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 zf(e,t,n,r){if(n)return n;const s=AT(e,t);return e.hash?{el:e.hash,top:Wg(e.hash),behavior:s?r:"instant"}:{left:0,top:0}}const RT={hashMode:!1,scrollBehaviorType:"auto"},tr={...RT,...kT},OT=async(e,t)=>{let n,r;if(!e.meta?.validate)return;const s=([n,r]=An(()=>Promise.resolve(e.meta.validate(e))),n=await n,r(),n);if(s===!0)return;const i=Br({fatal:!0,status:s&&(s.status||s.statusCode)||404,statusText:s&&(s.statusText||s.statusMessage)||`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}});return typeof window<"u"&&window.history.pushState({},"",t.fullPath),i},CT=e=>{const t=Rg({path:e.path});if(t.redirect){const n=t.redirect.includes("#")?t.redirect:t.redirect+e.hash;return On(n,{acceptRelative:!0})?(window.location.href=n,!1):n}},PT=[OT,CT],ec={"auth-new":()=>fe(()=>import("./Zn1ydb8D.js"),__vite__mapDeps([75,12]),import.meta.url),auth:()=>fe(()=>import("./DgIf_bFY.js"),__vite__mapDeps([76,12]),import.meta.url)};function IT(e,t,n){const{pathname:r,search:s,hash:i}=t,o=e.indexOf("#");if(o>-1){const c=i.includes(e.slice(o))?e.slice(o).length:1;let u=i.slice(c);return u[0]!=="/"&&(u="/"+u),pf(u,"")}const a=pf(r,e),l=!n||Pv(a,n)?a:n;return l+(l.includes("?")?"":s)+i}const LT=ot({name:"nuxt:router",enforce:"pre",async setup(e){let t,n,r=fn().app.baseURL;const s=tr.history?.(r)??mE(r),i=tr.routes?([t,n]=An(()=>tr.routes(el)),t=await t,n(),t??el):el;let o;const a=ME({...tr,scrollBehavior:(v,b,y)=>{if(b===Ht){o=y;return}if(tr.scrollBehavior){if(a.options.scrollBehavior=tr.scrollBehavior,"scrollRestoration"in window.history){const g=a.beforeEach(()=>{g(),window.history.scrollRestoration="manual"})}return tr.scrollBehavior(v,Ht,o||y)}},history:s,routes:i});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(a);const l=Hr(a.currentRoute.value);
5a.afterEach((v,b)=>{l.value=b}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>l.value});const c=IT(r,window.location,e.payload.path),u=Hr(a.currentRoute.value),f=()=>{u.value=a.currentRoute.value};a.afterEach((v,b)=>{v.matched.at(-1)?.components?.default===b.matched.at(-1)?.components?.default&&f()});const h={sync:f};for(const v in u.value)Object.defineProperty(h,v,{get:()=>u.value[v],enumerable:!0});e._route=Tn(h),e._middleware||={global:[],named:{}};const d=ga();a.afterEach(async(v,b,y)=>{delete e._processingMiddleware,!e.isHydrating&&d.value&&await e.runWithContext(Aw),y&&await e.callHook("page:loading:end")});try{[t,n]=An(()=>a.isReady()),await t,n()}catch(v){[t,n]=An(()=>e.runWithContext(()=>Pr(v))),await t,n()}const p=c!==a.currentRoute.value.fullPath?a.resolve(c):a.currentRoute.value;f();const m=e.payload.state._layout;return a.beforeEach(async(v,b)=>{await e.callHook("page:loading:start"),v.meta=_r(v.meta),e.isHydrating&&m&&!an(v.meta.layout)&&(v.meta.layout=m),e._processingMiddleware=!0;{const y=new Set([...PT,...e._middleware.global]);for(const _ of v.matched){const T=_.meta.middleware;if(T)for(const R of eu(T))y.add(R)}const g=Rg({path:v.path});if(g.appMiddleware)for(const _ in g.appMiddleware)g.appMiddleware[_]?y.add(_):y.delete(_);for(const _ of y){const T=typeof _=="string"?e._middleware.named[_]||await ec[_]?.().then(R=>R.default||R):_;if(!T)throw new Error(`Unknown route middleware: '${_}'.`);try{const R=await e.runWithContext(()=>T(v,b));if(!e.payload.serverRendered&&e.isHydrating&&(R===!1||R instanceof Error)){const k=R||Br({status:404,statusText:`Page Not Found: ${c}`});return await e.runWithContext(()=>Pr(k)),!1}if(R===!0)continue;if(R===!1)return R;if(R)return dg(R)&&R.fatal&&await e.runWithContext(()=>Pr(R)),R}catch(R){const k=Br(R);return k.fatal&&await e.runWithContext(()=>Pr(k)),k}}}}),a.onError(async()=>{delete e._processingMiddleware,await e.callHook("page:loading:end")}),a.afterEach(v=>{if(v.matched.length===0&&!d.value)return e.runWithContext(()=>Pr(Br({status:404,fatal:!1,statusText:`Page not found: ${v.fullPath}`,data:{path:v.fullPath}})))}),e.hooks.hookOnce("app:created",async()=>{try{"name"in p&&(p.name=void 0),await a.replace({...p,force:!0}),a.options.scrollBehavior=tr.scrollBehavior}catch(v){await e.runWithContext(()=>Pr(v))}}),{provide:{router:a}}}});function Jf(e){return typeof e=="string"?`'${e}'`:new xT().serialize(e)}const xT=(function(){class e{#e=new Map;compare(n,r){const s=typeof n,i=typeof r;return s==="string"&&i==="string"?n.localeCompare(r):s==="number"&&i==="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 s=n.constructor,i=s===Object||s===void 0?"":s.name;if(i!==""&&globalThis[i]===s)return this.serializeBuiltInType(i,n);if(typeof n.toJSON=="function"){const o=n.toJSON();return i+(o!==null&&typeof o=="object"?this.$object(o):`(${this.serialize(o)})`)}return this.serializeObjectEntries(i,Object.entries(n))}serializeBuiltInType(n,r){const s=this["$"+n];if(s)return s.call(this,r);if(typeof r?.entries=="function")return this.serializeObjectEntries(n,r.entries());throw new Error(`Cannot serialize ${n}`)}serializeObjectEntries(n,r){const s=Array.from(r).sort((o,a)=>this.compare(o[0],a[0]));let i=`${n}{`;for(let o=0;o<s.length;o++){const[a,l]=s[o];i+=`${this.serialize(a,!0)}:${this.serialize(l)}`,o<s.length-1&&(i+=",")}return i+"}"}$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 s=0;s<n.length;s++)r+=this.serialize(n[s]),s<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,s)=>this.compare(r,s)))}`}
5$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 NT(e,t){return e===t||Jf(e)===Jf(t)}const Yf=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),iI=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),tu=e=>{const t=Ie();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{Yf(()=>e())}):Yf(()=>e())},DT="$s";function Ni(...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 s=DT+n,i=Ie(),o=Gh(i.payload.state,s);if(o.value===void 0&&r){const a=r();if(Be(a))return i.payload.state[s]=a,a;o.value=a}return o}function $T(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");const n={},r=t||{},s=r.decode||MT;let i=0;for(;i<e.length;){const o=e.indexOf("=",i);if(o===-1)break;let a=e.indexOf(";",i);if(a===-1)a=e.length;else if(a<o){i=e.lastIndexOf(";",o-1)+1;continue}const l=e.slice(i,o).trim();if(r?.filter&&!r?.filter(l)){i=a+1;continue}if(n[l]===void 0){let c=e.slice(o+1,a).trim();c.codePointAt(0)===34&&(c=c.slice(1,-1)),n[l]=UT(c,s)}i=a+1}return n}function MT(e){return e.includes("%")?decodeURIComponent(e):e}function UT(e,t){try{return t(e)}catch{return e}}const Qi=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function Xf(e,t,n){const r=n||{},s=r.encode||encodeURIComponent;if(typeof s!="function")throw new TypeError("option encode is invalid");if(!Qi.test(e))throw new TypeError("argument name is invalid");const i=s(t);if(i&&!Qi.test(i))throw new TypeError("argument val is invalid");let o=e+"="+i;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");o+="; Max-Age="+Math.floor(a)}if(r.domain){if(!Qi.test(r.domain))throw new TypeError("option domain is invalid");o+="; Domain="+r.domain}if(r.path){if(!Qi.test(r.path))throw new TypeError("option path is invalid");o+="; Path="+r.path}if(r.expires){if(!jT(r.expires)||Number.isNaN(r.expires.valueOf()))throw new TypeError("option expires is invali
5d");o+="; Expires="+r.expires.toUTCString()}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.priority)switch(typeof r.priority=="string"?r.priority.toLowerCase():r.priority){case"low":{o+="; Priority=Low";break}case"medium":{o+="; Priority=Medium";break}case"high":{o+="; 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:{o+="; SameSite=Strict";break}case"lax":{o+="; SameSite=Lax";break}case"strict":{o+="; SameSite=Strict";break}case"none":{o+="; SameSite=None";break}default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(o+="; Partitioned"),o}function jT(e){return Object.prototype.toString.call(e)==="[object Date]"||e instanceof Date}function en(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]=en(e[t]))}else{n={};for(t in e)t==="__proto__"?Object.defineProperty(n,t,{value:en(e[t]),configurable:!0,enumerable:!0,writable:!0}):n[t]=en(e[t])}return n}if(r==="[object Array]"){for(t=e.length,n=Array(t);t--;)n[t]=en(e[t]);return n}return r==="[object Set]"?(n=new Set,e.forEach(function(s){n.add(en(s))}),n):r==="[object Map]"?(n=new Map,e.forEach(function(s,i){n.set(en(i),en(s))}),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(en(e.buffer)):r==="[object ArrayBuffer]"?e.slice(0):r.slice(-6)==="Array]"?new e.constructor(e):e}const FT={path:"/",watch:!0,decode:e=>{const t=decodeURIComponent(e),n=mi(t);return typeof n=="number"&&(!Number.isFinite(n)||String(n)!==t)?t:n},encode:e=>encodeURIComponent(typeof e=="string"?e:JSON.stringify(e))},Zi=globalThis.cookieStore;function qg(e,t){const n={...FT,...t};n.filter??=c=>c===e;const r=Qf(n)||{};let s;n.maxAge!==void 0?s=n.maxAge*1e3:n.expires&&(s=n.expires.getTime()-Date.now());const i=s!==void 0&&s<=0,o=i||r[e]===void 0||r[e]===null,a=en(i?void 0:r[e]??n.default?.()),l=s&&!i?VT(a,s,n.watch&&n.watch!=="shallow"):kt(a);{let c=null;try{!Zi&&typeof BroadcastChannel<"u"&&(c=new BroadcastChannel(`nuxt:cookies:${e}`))}catch{}const u=(p=!1)=>{!p&&(n.readonly||NT(l.value,r[e]))||(HT(e,l.value,n),r[e]=en(l.value),c?.postMessage({value:n.encode(l.value)}))},f=p=>{const m=p.refresh?Qf(n)?.[e]:n.decode(p.value);h=!0,l.value=m,r[e]=en(m),gr(()=>{h=!1})};let h=!1;const d=!!Zo();if(d&&vl(()=>{h=!0,u(),c?.close()}),Zi){const p=m=>{const v=m.changed.find(y=>y.name===e),b=m.deleted.find(y=>y.name===e);v&&f({value:v.value}),b&&f({value:null})};Zi.addEventListener("change",p),d&&vl(()=>Zi.removeEventListener("change",p))}else c&&(c.onmessage=({data:p})=>f(p));n.watch&&Ut(l,()=>{h||u()},{deep:n.watch!=="shallow"}),o&&u(o)}return l}function Qf(e={}){return $T(document.cookie,e)}function BT(e,t,n={}){return t==null?Xf(e,t,{...n,maxAge:-1}):Xf(e,t,n)}function HT(e,t,n={}){document.cookie=BT(e,t,n)}const Zf=2147483647;function VT(e,t,n){let r,s,i=0;const o=n?kt(e):{value:e};return Zo()&&vl(()=>{s?.(),clearTimeout(r)}),W_((a,l)=>{n&&(s=Ut(o,l));function c(){i=0,clearTimeout(r);const u=t-i,f=u<Zf?u:Zf;r=setTimeout(()=>{if(i+=f,i<t)return c();o.value=void 0,l()},f)}return{get(){return a(),o.value},set(u){c(),o.value=u,l()}}})}function WT(e){if(e?.__asyncLoader&&!e.__asyncResolved)return e.__asyncLoader()}async function qT(e,t=bt()){const{path:n,matched:r}=t.resolve(e);if(!r.length||(t._routePreloaded||=new Set,t._routePreloaded.has(n)))return;const s=t._preloadPromises||=[];if(s.length>4)return Promise.all(s).then(()=>qT(e,t));t._routePreloaded.add(n);for(const i of r){const o=i.components?.default;if(typeof o!="function")continue;const a=Promise.resolve(o()).catch(()=>{}).finally(()=>s.splice(s.indexOf(a)));s.push(a)}await Promise.all(s)}function KT(e={}){const t=e.path||window.location.pathname;let n={};try{n=mi(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:Ie().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}function GT(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&&!On(String(e.url),{acceptRelative:!0,strict:!1})&&(e.url=Ov(String(e.url)));const t=Object.keys(e).sort((r,s)=>r.localeCompare(s)),n={};for(const r of t)n[r]=e[r];return n}function zT(e){const n=[];function r(i){if(!i||typeof i!="object"||Object.keys(i).length===0)return()=>{};i._context;const o={};for(const a in i){const l=i[a];typeof l<"u"&&l!==""&&(o[a]=l)}return Object.keys(o).filter(a=>!a.startsWith("_")).length===0?()=>{}:(n.push(o),()=>{const a=n.indexOf(o);a!==-1&&n.splice(a,1)})}function s(i){const o={};i?.debug&&(o._context={}),o._priority={};for(const a in n.sort((l,c)=>(l._priority||0)-(c._priority||0)))for(const l in n[a]){const c=l,u=i?.resolveRefs?fs(n[a][l]):n[a][l];!l.startsWith("_")&&typeof u<"u"&&u!==""&&(o[l]=u,typeof n[a]._priority<"u"&&n[a]._priority!==-1&&(o._priority[c]=n[a]._priority),i?.debug&&(o._context[c]=n[a]._context?.[c]||n[a]._context||"anonymous"))}return i?.skipNormalize?o:GT(o)}return{stack:n,push:r,get:s}}const JT=ot({name:"nuxt-site-config:init",enforce:"pre",async setup(e){const t=zT(),n=Ni("site-config");{const r=n.value||window.__NUXT_SITE_CONFIG__||{};for(const s in r)s[0]!=="_"&&t.push({[s]:r[s],_priority:r._priority?.[s]||-1})}return{provide:{nuxtSiteConfig:t}}}});function _a(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 s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n}function YT(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}
5return new(n||(n=Promise))(function(i,o){function a(u){try{c(r.next(u))}catch(f){o(f)}}function l(u){try{c(r.throw(u))}catch(f){o(f)}}function c(u){u.done?i(u.value):s(u.value).then(a,l)}c((r=r.apply(e,t||[])).next())})}const XT=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class nu extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}}class QT extends nu{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class ed extends nu{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class td extends nu{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var tc;(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"})(tc||(tc={}));class ZT{constructor(t,{headers:n={},customFetch:r,region:s=tc.Any}={}){this.url=t,this.headers=n,this.region=s,this.fetch=XT(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return YT(this,arguments,void 0,function*(n,r={}){var s;let i,o;try{const{headers:a,method:l,body:c,signal:u,timeout:f}=r;let h={},{region:d}=r;d||(d=this.region);const p=new URL(`${this.url}/${n}`);d&&d!=="any"&&(h["x-region"]=d,p.searchParams.set("forceFunctionRegion",d));let m;c&&(a&&!Object.prototype.hasOwnProperty.call(a,"Content-Type")||!a)?typeof Blob<"u"&&c instanceof Blob||c instanceof ArrayBuffer?(h["Content-Type"]="application/octet-stream",m=c):typeof c=="string"?(h["Content-Type"]="text/plain",m=c):typeof FormData<"u"&&c instanceof FormData?m=c:(h["Content-Type"]="application/json",m=JSON.stringify(c)):c&&typeof c!="string"&&!(typeof Blob<"u"&&c instanceof Blob)&&!(c instanceof ArrayBuffer)&&!(typeof FormData<"u"&&c instanceof FormData)?m=JSON.stringify(c):m=c;let v=u;f&&(o=new AbortController,i=setTimeout(()=>o.abort(),f),u?(v=o.signal,u.addEventListener("abort",()=>o.abort())):v=o.signal);const b=yield this.fetch(p.toString(),{method:l||"POST",headers:Object.assign(Object.assign(Object.assign({},h),this.headers),a),body:m,signal:v}).catch(T=>{throw new QT(T)}),y=b.headers.get("x-relay-error");if(y&&y==="true")throw new ed(b);if(!b.ok)throw new td(b);let g=((s=b.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim(),_;return g==="application/json"?_=yield b.json():g==="application/octet-stream"||g==="application/pdf"?_=yield b.blob():g==="text/event-stream"?_=b:g==="multipart/form-data"?_=yield b.formData():_=yield b.text(),{data:_,error:null,response:b}}catch(a){return{data:null,error:a,response:a instanceof td||a instanceof ed?a.context:void 0}}finally{i&&clearTimeout(i)}})}}var eS=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.co
5de=e.code}},tS=class{constructor(e){var t,n,r;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,this.urlLengthLimit=(r=e.urlLengthLimit)!==null&&r!==void 0?r:8e3,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 s=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async i=>{let o=null,a=null,l=null,c=i.status,u=i.statusText;if(i.ok){var f,h;if(n.method!=="HEAD"){var d;const b=await i.text();b===""||(n.headers.get("Accept")==="text/csv"||n.headers.get("Accept")&&(!((d=n.headers.get("Accept"))===null||d===void 0)&&d.includes("application/vnd.pgrst.plan+text"))?a=b:a=JSON.parse(b))}const m=(f=n.headers.get("Prefer"))===null||f===void 0?void 0:f.match(/count=(exact|planned|estimated)/),v=(h=i.headers.get("content-range"))===null||h===void 0?void 0:h.split("/");m&&v&&v.length>1&&(l=parseInt(v[1])),n.isMaybeSingle&&n.method==="GET"&&Array.isArray(a)&&(a.length>1?(o={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,c=406,u="Not Acceptable"):a.length===1?a=a[0]:a=null)}else{var p;const m=await i.text();try{o=JSON.parse(m),Array.isArray(o)&&i.status===404&&(a=[],o=null,c=200,u="OK")}catch{i.status===404&&m===""?(c=204,u="No Content"):o={message:m}}if(o&&n.isMaybeSingle&&(!(o==null||(p=o.details)===null||p===void 0)&&p.includes("0 rows"))&&(o=null,c=200,u="OK"),o&&n.shouldThrowOnError)throw new eS(o)}return{error:o,data:a,count:l,status:c,statusText:u}});return this.shouldThrowOnError||(s=s.catch(i=>{var o;let a="",l="",c="";const u=i?.cause;if(u){var f,h,d,p;const b=(f=u?.message)!==null&&f!==void 0?f:"",y=(h=u?.code)!==null&&h!==void 0?h:"";a=`${(d=i?.name)!==null&&d!==void 0?d:"FetchError"}: ${i?.message}`,a+=` 6 7Caused by: ${(p=u?.name)!==null&&p!==void 0?p:"Error"}: ${b}`,y&&(a+=` (${y})`),u?.stack&&(a+=` 8${u.stack}`)}else{var m;a=(m=i?.stack)!==null&&m!==void 0?m:""}const v=this.url.toString().length;return i?.name==="AbortError"||i?.code==="ABORT_ERR"?(c="",l="Request was aborted (timeout or manual cancellation)",v>this.urlLengthLimit&&(l+=`. Note: Your request URL is ${v} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):(u?.name==="HeadersOverflowError"||u?.code==="UND_ERR_HEADERS_OVERFLOW")&&(c="",l="HTTP headers exceeded server limits (typically 16KB)",v>this.urlLengthLimit&&(l+=`. Your request URL is ${v} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{error:{message:`${(o=i?.name)!==null&&o!==void 0?o:"FetchError"}: ${i?.message}`,details:a,hint:l,code:c},data:null,count:null,status:0,statusText:""}})),s.then(e,t)}returns(){return this}overrideTypes(){return this}},nS=class extends tS{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:s=r}={}){const i=s?`${s}.order`:"order",o=this.url.searchParams.get(i);return this.url.searchParams.set(i,`${o?`${o},`:""}${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 s=typeof r>"u"?"offset":`${r}.offset`,i=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(s,`${e}`),this.url.searchParams.set(i,`${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}
8explain({analyze:e=!1,verbose:t=!1,settings:n=!1,buffers:r=!1,wal:s=!1,format:i="text"}={}){var o;const a=[e?"analyze":null,t?"verbose":null,n?"settings":null,r?"buffers":null,s?"wal":null].filter(Boolean).join("|"),l=(o=this.headers.get("Accept"))!==null&&o!==void 0?o:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${i}; for="${l}"; options=${a};`),i==="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 nd=new RegExp("[,()]");var os=class extends nS{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"&&nd.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"&&nd.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 s="";r==="plain"?s="pl":r==="phrase"?s="ph":r==="websearch"&&(s="w");const i=n===void 0?"":`(${n})`;return this.url.searchParams.append(e,`${s}fts${i}.${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}},rS=class{constructor(e,{headers:t={},schema:n,fetch:r,urlLengthLimit:s=8e3}){this.url=e,this.headers=new Headers(t),this.schema=n,this.fetch=r,this.urlLengthLimit=s}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:n=!1,count:r}=t??{},s=n?"HEAD":"GET";let i=!1;const o=(e??"*").split("").map(c=>/\s/.test(c)&&!i?"":(c==='"'&&(i=!i),c)).join(""),{url:a,headers:l}=this.cloneRequestState();return a.searchParams.set("select",o),r&&l.append("Prefer",`count=${r}`),new os({method:s,url:a,headers:l,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}insert(e,{count:t,defaultToNull:n=!0}={}){var r;const s="POST",{url:i,headers:o}=this.cloneRequestState();if(t&&o.append("Prefer",`count=${t}`),n||o.append("Prefer","missing=default"),Array.isArray(e)){const a=e.reduce((l,c)=>l.concat(Object.keys(c)),[]);if(a.length>
80){const l=[...new Set(a)].map(c=>`"${c}"`);i.searchParams.set("columns",l.join(","))}}return new os({method:s,url:i,headers:o,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch,urlLengthLimit:this.urlLengthLimit})}upsert(e,{onConflict:t,ignoreDuplicates:n=!1,count:r,defaultToNull:s=!0}={}){var i;const o="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}`),s||l.append("Prefer","missing=default"),Array.isArray(e)){const c=e.reduce((u,f)=>u.concat(Object.keys(f)),[]);if(c.length>0){const u=[...new Set(c)].map(f=>`"${f}"`);a.searchParams.set("columns",u.join(","))}}return new os({method:o,url:a,headers:l,schema:this.schema,body:e,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch,urlLengthLimit:this.urlLengthLimit})}update(e,{count:t}={}){var n;const r="PATCH",{url:s,headers:i}=this.cloneRequestState();return t&&i.append("Prefer",`count=${t}`),new os({method:r,url:s,headers:i,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch,urlLengthLimit:this.urlLengthLimit})}delete({count:e}={}){var t;const n="DELETE",{url:r,headers:s}=this.cloneRequestState();return e&&s.append("Prefer",`count=${e}`),new os({method:n,url:r,headers:s,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch,urlLengthLimit:this.urlLengthLimit})}};function vi(e){"@babel/helpers - typeof";return vi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vi(e)}function sS(e,t){if(vi(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function iS(e){var t=sS(e,"string");return vi(t)=="symbol"?t:t+""}function oS(e,t,n){return(t=iS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function eo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rd(Object(n),!0).forEach(function(r){oS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rd(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var aS=class Kg{constructor(t,{headers:n={},schema:r,fetch:s,timeout:i,urlLengthLimit:o=8e3}={}){this.url=t,this.headers=new Headers(n),this.schemaName=r,this.urlLengthLimit=o;const a=s??globalThis.fetch;i!==void 0&&i>0?this.fetch=(l,c)=>{const u=new AbortController,f=setTimeout(()=>u.abort(),i),h=c?.signal;if(h){if(h.aborted)return clearTimeout(f),a(l,c);const d=()=>{clearTimeout(f),u.abort()};return h.addEventListener("abort",d,{once:!0}),a(l,eo(eo({},c),{},{signal:u.signal})).finally(()=>{clearTimeout(f),h.removeEventListener("abort",d)})}return a(l,eo(eo({},c),{},{signal:u.signal})).finally(()=>clearTimeout(f))}:this.fetch=a}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new rS(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}schema(t){return new Kg(this.url,{headers:this.headers,schema:t,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}rpc(t,n={},{head:r=!1,get:s=!1,count:i}={}){var o;let a;const l=new URL(`${this.url}/rpc/${t}`);let c;const u=d=>d!==null&&typeof d=="object"&&(!Array.isArray(d)||d.some(u)),f=r&&Object.values(n).some(u);f?(a="POST",c=n):r||s?(a=r?"HEAD":"GET",Object.entries(n).filter(([d,p])=>p!==void 0).map(([d,p])=>[d,Array.isArray(p)?`{${p.join(",")}}`:`${p}
8`]).forEach(([d,p])=>{l.searchParams.append(d,p)})):(a="POST",c=n);const h=new Headers(this.headers);return f?h.set("Prefer",i?`count=${i},return=minimal`:"return=minimal"):i&&h.set("Prefer",`count=${i}`),new os({method:a,url:l,headers:h,schema:this.schemaName,body:c,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch,urlLengthLimit:this.urlLengthLimit})}};class lS{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 s=r.node,i=parseInt(s.replace(/^v/,"").split(".")[0]);return i>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${i} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${i} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: 9import ws from "ws" 10new 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+=` 11 12Suggested 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 cS="2.98.0",uS=`realtime-js/${cS}`,fS="1.0.0",Gg="2.0.0",sd=Gg,nc=1e4,dS=1e3,hS=100;var ir;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(ir||(ir={}));var rt;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(rt||(rt={}));var nn;(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"})(nn||(nn={}));var rc;(function(e){e.websocket="websocket"})(rc||(rc={}));var xr;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(xr||(xr={}));class pS{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 s=(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,s)}_encodeJsonUserBroadcastPush(t){var n,r;const s=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:{},o=new TextEncoder().encode(JSON.stringify(s)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,o)}_encodeUserBroadcastPush(t,n,r){var s,i;const o=t.topic,a=(s=t.ref)!==null&&s!==void 0?s:"",l=(i=t.join_ref)!==null&&i!==void 0?i:"",c=t.payload.event,u=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},f=Object.keys(u).length===0?"":JSON.stringify(u);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(o.length>255)throw new Error(`topic length ${o.length} exceeds maximum of 255`);if(c.length>255)throw new Error(`userEvent length ${c.length} exceeds maximum of 255`);if(f.length>255)throw new Error(`metadata length ${f.length} exceeds maximum of 255`);const h=this.USER_BROADCAST_PUSH_META_LENGTH+l.length+a.length+o.length+c.length+f.length,d=new ArrayBuffer(this.HEADER_LENGTH+h);let p=new DataView(d),m=0;p.setUint8(m++,this.KINDS.userBroadcastPush),p.setUint8(m++,l.length),p.setUint8(m++,a.length),p.setUint8(m++,o.length),p.setUint8(m++,c.length),p.setUint8(m++,f.length),p.setUint8(m++,n),Array.from(l,b=>p.setUint8(m++,b.charCodeAt(0))),Array.from(a,b=>p.setUint8(m++,b.charCodeAt(0))),Array.from(o,b=>p.setUint8(m++,b.charCodeAt(0))),Array.from(c,b=>p.setUint8(m++,b.charCodeAt(0))),Array.from(f,b=>p.setUint8(m++,b.charCodeAt(0)));var v=new Uint8Array(d.byteLength+r.byteLength);return v.set(new Uint8Array(d),0),v.set(new Uint8Array(r),d.byteLength),v.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),[s,i,o,a,l]=r;
12return n({join_ref:s,ref:i,topic:o,event:a,payload:l})}return n({})}_binaryDecode(t){const n=new DataView(t),r=n.getUint8(0),s=new TextDecoder;if(r===this.KINDS.userBroadcast)return this._decodeUserBroadcast(t,n,s)}_decodeUserBroadcast(t,n,r){const s=n.getUint8(1),i=n.getUint8(2),o=n.getUint8(3),a=n.getUint8(4);let l=this.HEADER_LENGTH+4;const c=r.decode(t.slice(l,l+s));l=l+s;const u=r.decode(t.slice(l,l+i));l=l+i;const f=r.decode(t.slice(l,l+o));l=l+o;const h=t.slice(l,t.byteLength),d=a===this.JSON_ENCODING?JSON.parse(r.decode(h)):h,p={type:this.BROADCAST_EVENT,event:u,payload:d};return o>0&&(p.meta=JSON.parse(f)),{join_ref:null,ref:null,topic:c,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 zg{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 Me;(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"})(Me||(Me={}));const id=(e,t,n={})=>{var r;const s=(r=n.skipTypes)!==null&&r!==void 0?r:[];return t?Object.keys(t).reduce((i,o)=>(i[o]=gS(o,e,t,s),i),{}):{}},gS=(e,t,n,r)=>{const s=t.find(a=>a.name===e),i=s?.type,o=n[e];return i&&!r.includes(i)?Jg(i,o):sc(o)},Jg=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return bS(t,n)}switch(e){case Me.bool:return mS(t);case Me.float4:case Me.float8:case Me.int2:case Me.int4:case Me.int8:case Me.numeric:case Me.oid:return _S(t);case Me.json:case Me.jsonb:return yS(t);case Me.timestamp:return vS(t);case Me.abstime:case Me.date:case Me.daterange:case Me.int4range:case Me.int8range:case Me.money:case Me.reltime:case Me.text:case Me.time:case Me.timestamptz:case Me.timetz:case Me.tsrange:case Me.tstzrange:return sc(t);default:return sc(t)}},sc=e=>e,mS=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},_S=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},yS=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},bS=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let i;const o=e.slice(1,n);try{i=JSON.parse("["+o+"]")}catch{i=o?o.split(","):[]}return i.map(a=>Jg(t,a))}return e},vS=e=>typeof e=="string"?e.replace(" ","T"):e,Yg=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 tl{constructor(t,n,r={},s=nc){this.channel=t,this.event=n,this.payload=r,this.timeout=s,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}
12_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 od;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(od||(od={}));class ii{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,{},s=>{const{onJoin:i,onLeave:o,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=ii.syncState(this.state,s,i,o),this.pendingDiffs.forEach(l=>{this.state=ii.syncDiff(this.state,l,i,o)}),this.pendingDiffs=[],a()}),this.channel._on(r.diff,{},s=>{const{onJoin:i,onLeave:o,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=ii.syncDiff(this.state,s,i,o),a())}),this.onJoin((s,i,o)=>{this.channel._trigger("presence",{event:"join",key:s,currentPresences:i,newPresences:o})}),this.onLeave((s,i,o)=>{this.channel._trigger("presence",{event:"leave",key:s,currentPresences:i,leftPresences:o})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,n,r,s){const i=this.cloneDeep(t),o=this.transformState(n),a={},l={};return this.map(i,(c,u)=>{o[c]||(l[c]=u)}),this.map(o,(c,u)=>{const f=i[c];if(f){const h=u.map(v=>v.presence_ref),d=f.map(v=>v.presence_ref),p=u.filter(v=>d.indexOf(v.presence_ref)<0),m=f.filter(v=>h.indexOf(v.presence_ref)<0);p.length>0&&(a[c]=p),m.length>0&&(l[c]=m)}else a[c]=u}),this.syncDiff(i,{joins:a,leaves:l},r,s)}static syncDiff(t,n,r,s){const{joins:i,leaves:o}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),s||(s=()=>{}),this.map(i,(a,l)=>{var c;const u=(c=t[a])!==null&&c!==void 0?c:[];if(t[a]=this.cloneDeep(l),u.length>0){const f=t[a].map(d=>d.presence_ref),h=u.filter(d=>f.indexOf(d.presence_ref)<0);t[a].unshift(...h)}r(a,u,l)}),this.map(o,(a,l)=>{let c=t[a];if(!c)return;const u=l.map(f=>f.presence_ref);c=c.filter(f=>u.indexOf(f.presence_ref)<0),t[a]=c,s(a,c,l),c.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 s=t[r];return"metas"in s?n[r]=s.metas.map(i=>(i.presence_ref=i.phx_ref,delete i.phx_ref,delete i.phx_ref_prev,i)):n[r]=s,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 ad;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(ad||(ad={}));var oi;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(oi||(oi={}));var Mn;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(Mn||(Mn={}));class hs{constructor(t,n={config:{}},r){var s,i;if(this.topic=t,this.params=n,this.socket=r,this.bindings={},this.state=rt.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 tl(this,nn.join,this.params,this.timeout),this.rejoinTimer=new zg(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=rt.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(o=>o.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=rt.closed,this.socket._remove(this)}),this._onError(o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=rt.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=rt.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=rt.errored,this.rejoinTimer.scheduleTimeout())}),this._on(nn.reply,{},(o,a)=>{this._trigger(this._replyEventName(a),o)}),this.presence=new ii(this),this.broadcastEndpointURL=Yg(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((i=(s=this.params.config)===null||s===void 0?void 0:s.broadcast)===null||i===void 0)&&i.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(t,n=this.timeout){var r,s,i;if(this.socket.isConnected()||this.socket.connect(),this.state==rt.closed){const{config:{broadcast:o,presence:a,private:l}}=this.params,c=(s=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(d=>d.filter))!==null&&s!==void 0?s:[],u=!!this.bindings[oi.PRESENCE]&&this.bindings[oi.PRESENCE].length>0||((i=this.params.config.presence)===null||i===void 0?void 0:i.enabled)===!0,f={},h={broadcast:o,presence:Object.assign(Object.assign({},a),{enabled:u}),postgres_changes:c,private:l};this.socket.accessTokenValue&&(f.access_token=this.socket.accessTokenValue),this._onError(d=>t?.(Mn.CHANNEL_ERROR,d)),this._onClose(()=>t?.(Mn.CLOSED)),this.updateJoinPayload(Object.assign({config:h},f)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:d})=>{var p;if(this.socket._isManualToken()||this.socket.setAuth(),d===void 0){t?.(Mn.SUBSCRIBED);return}else{const m=this.bindings.postgres_changes,v=(p=m?.length)!==null&&p!==void 0?p:0,b=[];for(let y=0;y<v;y++){const g=m[y],{filter:{event:_,schema:T,table:R,filter:k}}=g,j=d&&d[y];if(j&&j.event===_&&hs.isFilterValueEqual(j.schema,T)&&hs.isFilterValueEqual(j.table,R)&&hs.isFilterValueEqual(j.filter,k))b.push(Object.assign(Object.assign({},g),{id:j.id}));else{this.unsubscribe(),this.state=rt.errored,t?.(Mn.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=b,t&&t(Mn.SUBSCRIBED);return}}).receive("error",d=>{this.state=rt.errored,t?.(Mn.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(d).join(", ")||"error")))}).receive("timeout",()=>{t?.(Mn.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===rt.joined&&t===oi.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 s;if(n==null)return Promise.reject("Payload is required for httpSend()");const i={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(i.Authorization=`Bearer ${this.socket.accessTokenValue}`);const o={method:"POST",headers:i,body:JSON.stringify({messages:[{topic:this.subTopic,event:t,payload:n,private:this.private}]})},a=await this._fetchWithTimeout(this.broadcastEndpointURL,o,(s=r.timeout)!==null&&s!==void 0?s:this.timeout);if(a.status===202)return{success:!0};let l=a.statusText;
12try{const c=await a.json();l=c.error||c.message||l}catch{}return Promise.reject(new Error(l))}async send(t,n={}){var r,s;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:i,payload:o}=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:i,payload:o,private:this.private}]})};try{const c=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((s=c.body)===null||s===void 0?void 0:s.cancel()),c.ok?"ok":"error"}catch(c){return c.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var o,a,l;const c=this._push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((l=(a=(o=this.params)===null||o===void 0?void 0:o.config)===null||a===void 0?void 0:a.broadcast)===null||l===void 0)&&l.ack)&&i("ok"),c.receive("ok",()=>i("ok")),c.receive("error",()=>i("error")),c.receive("timeout",()=>i("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=rt.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(nn.close,"leave",this._joinRef())};this.joinPush.destroy();let r=null;return new Promise(s=>{r=new tl(this,nn.leave,{},t),r.receive("ok",()=>{n(),s("ok")}).receive("timeout",()=>{n(),s("timed out")}).receive("error",()=>{s("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=rt.closed,this.bindings={}}async _fetchWithTimeout(t,n,r){const s=new AbortController,i=setTimeout(()=>s.abort(),r),o=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:s.signal}));return clearTimeout(i),o}_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 s=new tl(this,t,n,r);return this._canPush()?s.send():this._addToPushBuffer(s),s}_addToPushBuffer(t){if(t.startTimeout(),this.pushBuffer.push(t),this.pushBuffer.length>hS){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 s,i;const o=t.toLocaleLowerCase(),{close:a,error:l,leave:c,join:u}=nn;if(r&&[a,l,c,u].indexOf(o)>=0&&r!==this._joinRef())return;let h=this._onMessage(o,n,r);if(n&&!h)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(o)?(s=this.bindings.postgres_changes)===null||s===void 0||s.filter(d=>{var p,m,v;return((p=d.filter)===null||p===void 0?void 0:p.event)==="*"||((v=(m=d.filter)===null||m===void 0?void 0:m.event)===null||v===void 0?void 0:v.toLocaleLowerCase())===o}).map(d=>d.callback(h,r)):(i=this.bindings[o])===null||i===void 0||i.filter(d=>{var p,m,v,b,y,g;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in d){const _=d.id,T=(p=d.filter)===null||p===void 0?void 0:p.event;return _&&((m=n.ids)===null||m===void 0?void 0:m.includes(_))&&(T==="*"||T?.toLocaleLowerCase()===((v=n.data)===null||v===void 0?void 0:v.type.toLocaleLowerCase()))}else{const _=(y=(b=d?.filter)===null||b===void 0?void 0:b.event)===null||y===void 0?void 0:y.toLocaleLowerCase();return _==="*"||_===((g=n?.event)===null||g===void 0?void 0:g.toLocaleLowerCase())}else return d.type.toLocaleLowerCase()===o}).map(d=>{if(typeof h=="object"&&"ids"in h){const p=h.data,{schema:m,table:v,commit_timestamp:b,type:y,errors:g}=p;h=Object.assign(Object.assign({},{schema:m,table:v,commit_timestamp:b,eventType:y,new:{},old:{},errors:g}),this._getPayloadRecords(p))}d.callback(h,r)})}_isClosed(){return this.state===rt.closed}_isJoined(){return this.state===rt.joined}_isJoining(){return this.state===rt.joining}_isLeaving(){return this.state===rt.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,n,r){const s=t.toLocaleLowerCase(),i={type:s,filter:n,callback:r};return this.bindings[s]?this.bindings[s].push(i):this.bindings[s]=[i],this}_off(t,n){const r=t.toLocaleLowerCase();return this.bindings[r]&&(this.bindings[r]=this.bindings[r].filter(s=>{var i;return!(((i=s.type)===null||i===void 0?void 0:i.toLocaleLowerCase())===r&&hs.isEqual(s.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(nn.close,{},t)}_onError(t){this._on(nn.error,{},n=>t(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=rt.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=id(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=id(t.columns,t.old_record)),n}}const nl=()=>{},to={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},wS=[1e3,2e3,5e3,1e4],ES=1e4,TS=` 13 addEventListener("message", (e) => { 14 if (e.data.event === "start") { 15 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 16 } 17 });`;class SS{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=nc,this.transport=null,this.heartbeatIntervalMs=to.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=nl,this.ref=0,this.reconnectTimer=null,this.vsn=sd,this.logger=nl,this.conn=null,this.sendBuffer=[],this.serializer
17=new pS,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._heartbeatSentAt=null,this._resolveFetch=s=>s?(...i)=>s(...i):(...i)=>fetch(...i),!(!((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}/${rc.websocket}`,this.httpEndpoint=Yg(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=lS.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const n=t.message;throw n.includes("Node.js")?new Error(`${n} 18 19To use Realtime in Node.js, you need to provide a WebSocket implementation: 20 21Option 1: Use Node.js 22+ which has native WebSocket support 22Option 2: Install and provide the "ws" package: 23 24 npm install ws 25 26 import ws from "ws" 27 const client = new RealtimeClient(url, { 28 ...options, 29 transport: ws 30 })`):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 ir.connecting:return xr.Connecting;case ir.open:return xr.Open;case ir.closing:return xr.Closing;default:return xr.Closed}}isConnected(){return this.connectionState()===xr.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(t,n={config:{}}){const r=`realtime:${t}`,s=this.getChannels().find(i=>i.topic===r);if(s)return s;{const i=new hs(`realtime:${t}`,n,this);return this.channels.push(i),i}}push(t){const{topic:n,event:r,payload:s,ref:i}=t,o=()=>{this.encode(t,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${n} ${r} (${i})`,s),this.isConnected()?o():this.sendBuffer.push(o)}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(dS,"heartbeat timeout"),setTimeout(()=>{var n;this.isConnected()||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout()},to.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=>
30{if(n.topic==="phoenix"&&n.event==="phx_reply"&&n.ref&&n.ref===this.pendingHeartbeatRef){const c=this._heartbeatSentAt?Date.now()-this._heartbeatSentAt:void 0;try{this.heartbeatCallback(n.payload.status==="ok"?"ok":"error",c)}catch(u){this.log("error","error in heartbeat callback",u)}this._heartbeatSentAt=null,this.pendingHeartbeatRef=null}const{topic:r,event:s,payload:i,ref:o}=n,a=o?`(${o})`:"",l=i.status||"";this.log("receive",`${l} ${r} ${s} ${a}`.trim(),i),this.channels.filter(c=>c._isMember(r)).forEach(c=>c._trigger(s,i,o)),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===ir.open&&this._onConnOpen())}_teardownConnection(){if(this.conn){if(this.conn.readyState===ir.open||this.conn.readyState===ir.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.accessTokenValue&&(this.channels.forEach(n=>{n.updateJoinPayload({access_token:this.accessTokenValue})}),this.sendBuffer=[],this.channels.forEach(n=>{n._isJoining()&&(n.joinPush.sent=!1,n.joinPush.send())})),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(nn.error))}_appendParams(t,n){if(Object.keys(n).length===0)return t;const r=t.match(/\?/)?"&":"?",s=new URLSearchParams(n);return`${t}${r}${s}`}_workerObjectUrl(t){let n;if(t)n=t;else{const r=new Blob([TS],{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(s){this.log("error","Error fetching access token from callback",s),n=this.accessTokenValue}else n=this.accessTokenValue;r?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEac
30h(s=>{const i={access_token:n,version:uS};n&&s.updateJoinPayload(i),s.joinedOnce&&s._isJoined()&&s._push(nn.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(s){this.log("error",`error in ${t} callback`,s)}})}catch(r){this.log("error",`error triggering ${t} callbacks`,r)}}_setupReconnectionTimer(){this.reconnectTimer=new zg(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},to.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(t){var n,r,s,i,o,a,l,c,u,f,h,d;switch(this.transport=(n=t?.transport)!==null&&n!==void 0?n:null,this.timeout=(r=t?.timeout)!==null&&r!==void 0?r:nc,this.heartbeatIntervalMs=(s=t?.heartbeatIntervalMs)!==null&&s!==void 0?s:to.HEARTBEAT_INTERVAL,this.worker=(i=t?.worker)!==null&&i!==void 0?i:!1,this.accessToken=(o=t?.accessToken)!==null&&o!==void 0?o:null,this.heartbeatCallback=(a=t?.heartbeatCallback)!==null&&a!==void 0?a:nl,this.vsn=(l=t?.vsn)!==null&&l!==void 0?l:sd,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=(c=t?.reconnectAfterMs)!==null&&c!==void 0?c:(p=>wS[p-1]||ES),this.vsn){case fS:this.encode=(u=t?.encode)!==null&&u!==void 0?u:((p,m)=>m(JSON.stringify(p))),this.decode=(f=t?.decode)!==null&&f!==void 0?f:((p,m)=>m(JSON.parse(p)));break;case Gg:this.encode=(h=t?.encode)!==null&&h!==void 0?h:this.serializer.encode.bind(this.serializer),this.decode=(d=t?.decode)!==null&&d!==void 0?d: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 wi=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 AS(e,t,n){const r=new URL(t,e);if(n)for(const[s,i]of Object.entries(n))i!==void 0&&r.searchParams.set(s,i);return r.toString()}async function kS(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 RS(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:n,path:r,query:s,body:i,headers:o}){const a=AS(e.baseUrl,r,s),l=await kS(e.auth),c=await t(a,{method:n,headers:{...i?{"Content-Type":"application/json"}:{},...l,...o},body:i?JSON.stringify(i):void 0}),u=await c.text(),f=(c.headers.get("content-type")||"").includes("application/json"),h=f&&u?JSON.parse(u):u;if(!c.ok){const d=f?h:void 0,p=d?.error;throw new wi(p?.message??`Request failed with status ${c.status}`,{status:c.status,icebergType:p?.type,icebergCode:p?.code,details:d})}return{status:c.status,headers:c.headers,data:h}}}}function no(e){return e.join("�")}var OS=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:no(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/${no(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${no(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${no(e.namespace)}`}),!0}catch(t){if(t instanceof wi&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(n){if(n instanceof wi&&n.status===409)return;throw n}}};function Zr(e){return e.join("�")}var CS=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/${Zr(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/${Zr(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/${Zr(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/${Zr(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/${Zr(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/${Zr(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(n){if(n instanceof wi&&n.status===404)return!1;throw n}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(n){if(n instanceof wi&&n.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw n}}},PS=class{constructor(e){let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const n=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=RS({baseUrl:n,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=e.accessDelegation?.join(","),this.namespaceOps=new OS(this.client,t),this.tableOps=new CS(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)}
30async 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)}},ya=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 ba(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var ro=class extends ya{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}}},Xg=class extends ya{constructor(e,t,n="storage"){super(e,n),this.name=n==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};const IS=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),LS=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)},ic=e=>{if(Array.isArray(e))return e.map(n=>ic(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,r])=>{const s=n.replace(/([-_][a-z])/gi,i=>i.toUpperCase().replace(/[-_]/g,""));t[s]=ic(r)}),t},xS=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e);function Ei(e){"@babel/helpers - typeof";return Ei=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},Ei(e)}function NS(e,t){if(Ei(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ei(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function DS(e){var t=NS(e,"string");return Ei(t)=="symbol"?t:t+""}function $S(e,t,n){return(t=DS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ld(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function ie(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ld(Object(n),!0).forEach(function(r){$S(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ld(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const cd=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)},MS=async(e,t,n,r)=>{if(e&&typeof e=="object"&&"status"in e&&"ok"in e&&typeof e.status=="number"&&!n?.noResolveJson){const s=e,i=s.status||500;if(typeof s.json=="function")s.json().then(o=>{const a=o?.statusCode||o?.code||i+"";t(new ro(cd(o),i,a,r))}).catch(()=>{if(r==="vectors"){const o=i+"";t(new ro(s.statusText||`HTTP ${i} error`,i,o,r))}else{const o=i+"";t(new ro(s.statusText||`HTTP ${i} error`,i,o,r))}});else{const o=i+"";t(new ro(s.statusText||`HTTP ${i} error`,i,o,r))}}else t(new Xg(cd(e),e,r))},US=(e,t,n,r)=>{const s={method:e,headers:t?.headers||{}};return e==="GET"||e==="HEAD"||!r?ie(ie({},s),n):(LS(r)?(s.headers=ie({"Content-Type":"application/json"},t?.headers),s.body=JSON.stringify(r)):s.body=r,t?.duplex&&(s.duplex=t.duplex),ie(ie({},s),n))};async function Bs(e,t,n,r,s,i,o){return new Promise((a,l)=>{e(n,US(t,r,s,i)).then(c=>{if(!c.ok)throw c;if(r?.noResolveJson)return c;if(o==="vectors"){const u=c.headers.get("content-type");if(c.headers.get("content-length")==="0"||c.status===204)return{};if(!u||!u.includes("application/json"))return{}}return c.json()}).then(c=>a(c)).catch(c=>MS(c,l,r,o))})}function Qg(e="storage"){return{get:async(t,n,r,s)=>Bs(t,"GET",n,r,s,void 0,e),post:async(t,n,r,s,i)=>Bs(t,"POST",n,s,i,r,e),put:async(t,n,r,s,i)=>Bs(t,"PUT",n,s,i,r,e),head:async(t,n,r,s)=>Bs(t,"HEAD",n,ie(ie({},r),{},{noResolveJson:!0}),s,void 0,e),remove:async(t,n,r,s,i)=>Bs(t,"DELETE",n,s,i,r,e)}}const jS=Qg("storage"),{get:Ti,post:tn,put:oc,head:FS,remove:ru}=jS,$t=Qg("vectors");var Ns=class{constructor(e,t={},n,r="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=t,this.fetch=IS(n),this.namespace=r}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=ie(ie({},this.headers),{},{[e]:t}),this}async handleOperation(e){var t=this;try{return{data:await e(),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(ba(n))return{data:null,error:n};throw n}}},BS=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(ba(t))return{data:null,error:t};throw t}}};let Zg;Zg=Symbol.toStringTag;var HS=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[Zg]="BlobDownloadBuilder",this.promise=null}asStream(){return new BS(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(ba(t))return{data:null,error:t};throw t}}};const VS={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},ud={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var WS=class extends Ns{constructor(e,t={},n,r){super(e,t,r,"storage"),this.bucketId=n}async uploadOrUpdate(e,t,n,r){var s=this;return s.handleOperation(async()=>{let i;const o=ie(ie({},ud),r);let a=ie(ie({},s.headers),e==="POST"&&{"x-upsert":String(o.upsert)});const l=o.metadata;typeof Blob<"u"&&n instanceof Blob?(i=new FormData,i.append("cacheControl",o.cacheControl),l&&i.append("metadata",s.encodeMetadata(l)),i.append("",n)):typeof FormData<"u"&&n instanceof FormData?(i=n,i.has("cacheControl")||i.append("cacheControl",o.cacheControl),l&&!i.has("metadata")&&i.append("metadata",s.encodeMetadata(l))):(i=n,a["cache-control"]=`max-age=${o.cacheControl}`,a["content-type"]=o.contentType,l&&(a["x-metadata"]=s.toBase64(s.encodeMetadata(l))),(typeof ReadableStream<"u"&&i instanceof ReadableStream||i&&typeof i=="object"&&"pipe"in i&&typeof i.pipe=="function")&&!o.duplex&&(o.duplex="half")),r?.headers&&(a=ie(ie({},a),r.headers));const c=s._removeEmptyFolders(t),u=s._getFinalPath(c),f=await(e=="PUT"?oc:tn)(s.fetch,`${s.url}/object/${u}`,i,ie({headers:a},o?.duplex?{duplex:o.duplex}:{}));return{path:c,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 s=this;const i=s._removeEmptyFolders(e),o=s._getFinalPath(i),a=new URL(s.url+`/object/upload/sign/${o}`);return a.searchParams.set("token",t),s.handleOperation(async()=>{let l;const c=ie({upsert:ud.upsert},r),u=ie(ie({},s.headers),{"x-upsert":String(c.upsert)});return typeof Blob<"u"&&n instanceof Blob?(l=new FormData,l.append("cacheControl",c.cacheControl),l.append("",n)):typeof FormData<"u"&&n instanceof FormData?(l=n,l.append("cacheControl",c.cacheControl)):(l=n,u["cache-control"]=`max-age=${c.cacheControl}`,u["content-type"]=c.contentType),{path:i,fullPath:(await oc(s.fetch,a.toString(),l,{headers:u})).Key}})}async createSignedUploadUrl(e,t){var n=this;return n.handleOperation(async()=>{let r=n._getFinalPath(e);const s=ie({},n.headers);t?.upsert&&(s["x-upsert"]="true");const i=await tn(n.fetch,`${n.url}/object/upload/sign/${r}`,{},{headers:s}),o=new URL(n.url+i.url),a=o.searchParams.get("token");if(!a)throw new ya("No token returned by API");return{signedUrl:o.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 tn(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,de
30stinationBucket:n?.destinationBucket},{headers:r.headers}))}async copy(e,t,n){var r=this;return r.handleOperation(async()=>({path:(await tn(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 s=r._getFinalPath(e),i=await tn(r.fetch,`${r.url}/object/sign/${s}`,ie({expiresIn:t},n?.transform?{transform:n.transform}:{}),{headers:r.headers});const o=n?.download?`&download=${n.download===!0?"":n.download}`:"";return{signedUrl:encodeURI(`${r.url}${i.signedURL}${o}`)}})}async createSignedUrls(e,t,n){var r=this;return r.handleOperation(async()=>{const s=await tn(r.fetch,`${r.url}/object/sign/${r.bucketId}`,{expiresIn:t,paths:e},{headers:r.headers}),i=n?.download?`&download=${n.download===!0?"":n.download}`:"";return s.map(o=>ie(ie({},o),{},{signedUrl:o.signedURL?encodeURI(`${r.url}${o.signedURL}${i}`):null}))})}download(e,t,n){const r=typeof t?.transform<"u"?"render/image/authenticated":"object",s=this.transformOptsToQueryString(t?.transform||{}),i=s?`?${s}`:"",o=this._getFinalPath(e),a=()=>Ti(this.fetch,`${this.url}/${r}/${o}${i}`,{headers:this.headers,noResolveJson:!0},n);return new HS(a,this.shouldThrowOnError)}async info(e){var t=this;const n=t._getFinalPath(e);return t.handleOperation(async()=>ic(await Ti(t.fetch,`${t.url}/object/info/${n}`,{headers:t.headers})))}async exists(e){var t=this;const n=t._getFinalPath(e);try{return await FS(t.fetch,`${t.url}/object/${n}`,{headers:t.headers}),{data:!0,error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(ba(r)&&r instanceof Xg){const s=r.originalError;if([400,404].includes(s?.status))return{data:!1,error:r}}throw r}}getPublicUrl(e,t){const n=this._getFinalPath(e),r=[],s=t?.download?`download=${t.download===!0?"":t.download}`:"";s!==""&&r.push(s);const i=typeof t?.transform<"u"?"render/image":"object",o=this.transformOptsToQueryString(t?.transform||{});o!==""&&r.push(o);let a=r.join("&");return a!==""&&(a=`?${a}`),{data:{publicUrl:encodeURI(`${this.url}/${i}/public/${n}${a}`)}}}async remove(e){var t=this;return t.handleOperation(async()=>await ru(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 s=ie(ie(ie({},VS),t),{},{prefix:e||""});return await tn(r.fetch,`${r.url}/object/list/${r.bucketId}`,s,{headers:r.headers},n)})}async listV2(e,t){var n=this;return n.handleOperation(async()=>{const r=ie({},e);return await tn(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 qS="2.98.0",Di={"X-Client-Info":`storage-js/${qS}`};var KS=class extends Ns{constructor(e,t={},n,r){const s=new URL(e);r?.useNewHostname&&/supabase\.(co|in|red)$/.test(s.hostname)&&!s.hostname.includes("storage.supabase.")&&(s.hostname=s.hostname.replace("supabase.","storage.supabase."));const i=s.href.replace(/\/$/,""),o=ie(ie({},Di),t);super(i,o,n,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=t.listBucketOptionsToQueryString(e);return await Ti(t.fetch,`${t.url}/bucket${n}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Ti(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var n=this;return n.handleOperation(async()=>await tn(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 oc(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 tn(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await ru(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():""}},GS=class extends Ns{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=ie(ie({},Di),t);super(r,s,n,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await tn(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(),s=r?`${t.url}/bucket?${r}`:`${t.url}/bucket`;return await Ti(t.fetch,s,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await ru(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!xS(e))throw new ya("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 PS({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}
30),r=this.shouldThrowOnError;return new Proxy(n,{get(s,i){const o=s[i];return typeof o!="function"?o:async(...a)=>{try{return{data:await o.apply(s,a),error:null}}catch(l){if(r)throw l;return{data:null,error:l}}}}})}},zS=class extends Ns{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=ie(ie({},Di),{},{"Content-Type":"application/json"},t);super(r,s,n,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await $t.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var n=this;return n.handleOperation(async()=>await $t.post(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await $t.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var n=this;return n.handleOperation(async()=>await $t.post(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers})||{})}},JS=class extends Ns{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=ie(ie({},Di),{},{"Content-Type":"application/json"},t);super(r,s,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 $t.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await $t.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 $t.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await $t.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 $t.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},YS=class extends Ns{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=ie(ie({},Di),{},{"Content-Type":"application/json"},t);super(r,s,n,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await $t.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await $t.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await $t.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await $t.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},XS=class extends YS{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new QS(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)}},QS=class extends zS{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,ie(ie({},e),{},{vectorBucketName:n.vectorBucketName}))}async listIndexes(e={}){var t=()=>super.listIndexes,n=this;return t().call(n,ie(ie({},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 ZS(this.url,this.headers,this.vectorBucketName,e,this.fetch)}}
30,ZS=class extends JS{constructor(e,t,n,r,s){super(e,t,s),this.vectorBucketName=n,this.indexName=r}async putVectors(e){var t=()=>super.putVectors,n=this;return t().call(n,ie(ie({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(e){var t=()=>super.getVectors,n=this;return t().call(n,ie(ie({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,n=this;return t().call(n,ie(ie({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,n=this;return t().call(n,ie(ie({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,n=this;return t().call(n,ie(ie({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},eA=class extends KS{constructor(e,t={},n,r){super(e,t,n,r)}from(e){return new WS(this.url,this.headers,e,this.fetch)}get vectors(){return new XS(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new GS(this.url+"/iceberg",this.headers,this.fetch)}};const em="2.98.0",as=30*1e3,ac=3,rl=ac*as,tA="http://localhost:9999",nA="supabase.auth.token",rA={"X-Client-Info":`gotrue-js/${em}`},lc="X-Supabase-Api-Version",tm={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},sA=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,iA=600*1e3;
30class Si extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function ee(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class oA extends Si{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function aA(e){return ee(e)&&e.name==="AuthApiError"}class Nr extends Si{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class Zn extends Si{constructor(t,n,r,s){super(t,r,s),this.name=n,this.status=r}}class Nt extends Zn{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function sl(e){return ee(e)&&e.name==="AuthSessionMissingError"}class es extends Zn{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class so extends Zn{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class io extends Zn{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 lA(e){return ee(e)&&e.name==="AuthImplicitGrantRedirectError"}class fd extends Zn{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 cA extends Zn{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 cc extends Zn{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function il(e){return ee(e)&&e.name==="AuthRetryableFetchError"}class dd extends Zn{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class uc extends Zn{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const Mo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),hd=` 31\r=`.split(""),uA=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<hd.length;t+=1)e[hd[t].charCodeAt(0)]=-2;for(let t=0;t<Mo.length;t+=1)e[Mo[t].charCodeAt(0)]=t;return e})();function pd(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(Mo[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(Mo[r]),t.queuedBits-=6}}function nm(e,t,n){const r=uA[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 gd(e){const t=[],n=o=>{t.push(String.fromCodePoint(o))},r={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},i=o=>{hA(o,r,n)};for(let o=0;o<e.length;o+=1)nm(e.charCodeAt(o),s,i);return t.join("")}function fA(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 dA(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const s=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|s)+65536,n+=1}fA(r,t)}}function hA(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 bs(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};for(let s=0;s<e.length;s+=1)nm(e.charCodeAt(s),n,r);return new Uint8Array(t)}function pA(e){const t=[];return dA(e,n=>t.push(n)),new Uint8Array(t)}function Mr(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};return e.forEach(s=>pd(s,n,r)),pd(null,n,r),t.join("")}function gA(e){return Math.round(Date.now()/1e3)+e}function mA(){return Symbol("auth-callback")}const dt=()=>typeof window<"u"&&typeof document<"u",kr={tested:!1,writable:!1},rm=()=>{if(!dt())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(kr.tested)return kr.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),kr.tested=!0,kr.writable=!0}catch{kr.tested=!0,kr.writable=!1}return kr.writable};function _A(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEac
31h((s,i)=>{t[i]=s})}catch{}return n.searchParams.forEach((r,s)=>{t[s]=r}),t}const sm=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),yA=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",ls=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},Rr=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},ft=async(e,t)=>{await e.removeItem(t)};class va{constructor(){this.promise=new va.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}va.promiseConstructor=Promise;function oo(e){const t=e.split(".");if(t.length!==3)throw new uc("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!sA.test(t[r]))throw new uc("JWT not in base64url format");return{header:JSON.parse(gd(t[0])),payload:JSON.parse(gd(t[1])),signature:bs(t[2]),raw:{header:t[0],payload:t[1]}}}async function bA(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function vA(e,t){return new Promise((r,s)=>{(async()=>{for(let i=0;i<1/0;i++)try{const o=await e(i);if(!t(i,null,o)){r(o);return}}catch(o){if(!t(i,o)){s(o);return}}})()})}function wA(e){return("0"+e.toString(16)).substr(-2)}function EA(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let s="";for(let i=0;i<56;i++)s+=n.charAt(Math.floor(Math.random()*r));return s}return crypto.getRandomValues(t),Array.from(t,wA).join("")}async function TA(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",n),s=new Uint8Array(r);return Array.from(s).map(i=>String.fromCharCode(i)).join("")}async function SA(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 TA(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function ts(e,t,n=!1){const r=EA();let s=r;n&&(s+="/PASSWORD_RECOVERY"),await ls(e,`${t}-code-verifier`,s);const i=await SA(r);return[i,r===i?"plain":"s256"]}const AA=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function kA(e){const t=e.headers.get(lc);if(!t||!t.match(AA))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function RA(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 OA(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 CA=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function ns(e){if(!CA.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function ol(){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 PA(e,t){return new Proxy(e,{get:(n,r,s)=>{if(r==="__isInsecureUserWarningProxy")return!0;if(typeof r=="symbol"){const i=r.toString();if(i==="Symbol(Symbol.toPrimitive)"||i==="Symbol(Symbol.toStringTag)"||i==="Symbol(util.inspect.custom)"||i==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(n,r,s)}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,s)}})}function md(e){return JSON.parse(JSON.stringify(e))}const Ir=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),IA=[502,503,504];async function _d(e){var t;if(!yA(e))throw new cc(Ir(e),0);if(IA.includes(e.status))throw new cc(Ir(e),e.status);let n;try{n=await e.json()}catch(i){throw new Nr(Ir(i),i)}let r;const s=kA(e);if(s&&s.getTime()>=tm["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 dd(Ir(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new Nt}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((i,o)=>
31i&&typeof o=="string",!0))throw new dd(Ir(n),e.status,n.weak_password.reasons);throw new oA(Ir(n),e.status||500,r)}const LA=(e,t,n,r)=>{const s={method:e,headers:t?.headers||{}};return e==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t?.headers),s.body=JSON.stringify(r),Object.assign(Object.assign({},s),n))};async function oe(e,t,n,r){var s;const i=Object.assign({},r?.headers);i[lc]||(i[lc]=tm["2024-01-01"].name),r?.jwt&&(i.Authorization=`Bearer ${r.jwt}`);const o=(s=r?.query)!==null&&s!==void 0?s:{};r?.redirectTo&&(o.redirect_to=r.redirectTo);const a=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",l=await xA(e,t,n+a,{headers:i,noResolveJson:r?.noResolveJson},{},r?.body);return r?.xform?r?.xform(l):{data:Object.assign({},l),error:null}}async function xA(e,t,n,r,s,i){const o=LA(t,r,s,i);let a;try{a=await e(n,Object.assign({},o))}catch(l){throw console.error(l),new cc(Ir(l),0)}if(a.ok||await _d(a),r?.noResolveJson)return a;try{return await a.json()}catch(l){await _d(l)}}function Qt(e){var t;let n=null;$A(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=gA(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function yd(e){const t=Qt(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 ar(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function NA(e){return{data:e,error:null}}function DA(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i}=e,o=_a(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i},l=Object.assign({},o);return{data:{properties:a,user:l},error:null}}function bd(e){return e}function $A(e){return e.access_token&&e.refresh_token&&e.expires_in}const al=["global","local","others"];class MA{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=sm(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=al[0]){if(al.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${al.join(", ")}`);try{return await oe(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(ee(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await oe(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:ar})}catch(r){if(ee(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=_a(t,["options"]),s=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(s.new_email=r?.newEmail,delete s.newEmail),await oe(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:DA,redirectTo:n?.redirectTo})}catch(n){if(ee(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await oe(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:ar})}catch(n){if(ee(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,s,i,o,a,l;try{const c={nextPage:null,lastPage:0,total:0},u=await oe(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:(i=(s=t?.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:bd});if(u.error)throw u.error;const f=await u.json(),h=(o=u.headers.get("x-total-count"))!==null&&o!==void 0?o:0,d=(l=(a=u.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return d.length>
310&&(d.forEach(p=>{const m=parseInt(p.split(";")[0].split("=")[1].substring(0,1)),v=JSON.parse(p.split(";")[1].split("=")[1]);c[`${v}Page`]=m}),c.total=parseInt(h)),{data:Object.assign(Object.assign({},f),c),error:null}}catch(c){if(ee(c))return{data:{users:[]},error:c};throw c}}async getUserById(t){ns(t);try{return await oe(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:ar})}catch(n){if(ee(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){ns(t);try{return await oe(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:ar})}catch(r){if(ee(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){ns(t);try{return await oe(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:ar})}catch(r){if(ee(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){ns(t.userId);try{const{data:n,error:r}=await oe(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:n,error:r}}catch(n){if(ee(n))return{data:null,error:n};throw n}}async _deleteFactor(t){ns(t.userId),ns(t.id);try{return{data:await oe(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(ee(n))return{data:null,error:n};throw n}}async _listOAuthClients(t){var n,r,s,i,o,a,l;try{const c={nextPage:null,lastPage:0,total:0},u=await oe(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:(i=(s=t?.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:bd});if(u.error)throw u.error;const f=await u.json(),h=(o=u.headers.get("x-total-count"))!==null&&o!==void 0?o:0,d=(l=(a=u.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return d.length>0&&(d.forEach(p=>{const m=parseInt(p.split(";")[0].split("=")[1].substring(0,1)),v=JSON.parse(p.split(";")[1].split("=")[1]);c[`${v}Page`]=m}),c.total=parseInt(h)),{data:Object.assign(Object.assign({},f),c),error:null}}catch(c){if(ee(c))return{data:{clients:[]},error:c};throw c}}async _createOAuthClient(t){try{return await oe(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(ee(n))return{data:null,error:n};throw n}}async _getOAuthClient(t){try{return await oe(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(ee(n))return{data:null,error:n};throw n}}async _updateOAuthClient(t,n){try{return await oe(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(ee(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(t){try{return await oe(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(ee(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(t){try{return await oe(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(ee(n))return{data:null,error:n};throw n}}}function vd(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}const xn={debug:!!(globalThis&&rm()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class im extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class UA extends im{}async function jA(e,t,n){xn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;t>0&&setTimeout(()=>{r.abort(),xn.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await Promise.resolve();try{return await globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async s=>{if(s){xn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,s.name);try{return await n()}finally{xn.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,s.name)}}else{if(t===0)throw xn.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new UA(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(xn.debug)try{const i=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(i,null," "))}catch(i){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",i)}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()}})}catch(s){if(s?.name==="AbortError"&&t>0)return xn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire timeout, recovering by stealing lock",e),console.warn(`@
31supabase/gotrue-js: Lock "${e}" was not released within ${t}ms. This may indicate an orphaned lock from a component unmount (e.g., React Strict Mode). Forcefully acquiring the lock to recover.`),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,{mode:"exclusive",steal:!0},async i=>{if(i){xn.debug&&console.log("@supabase/gotrue-js: navigatorLock: recovered (stolen)",e,i.name);try{return await n()}finally{xn.debug&&console.log("@supabase/gotrue-js: navigatorLock: released (stolen)",e,i.name)}}else return console.warn("@supabase/gotrue-js: Navigator LockManager returned null lock even with steal: true"),await n()}));throw s}}function FA(){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 om(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function BA(e){return parseInt(e,16)}function HA(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,r=>r.toString(16).padStart(2,"0")).join("")}function VA(e){var t;const{chainId:n,domain:r,expirationTime:s,issuedAt:i=new Date,nonce:o,notBefore:a,requestId:l,resources:c,scheme:u,uri:f,version:h}=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(o&&o.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${o}`);if(!f)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(h!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${h}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(` 32`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const d=om(e.address),p=u?`${u}://${r}`:r,m=e.statement?`${e.statement} 33`:"",v=`${p} wants you to sign in with your Ethereum account: 34${d} 35 36${m}`;let b=`URI: ${f} 37Version: ${h} 38Chain ID: ${n}${o?` 39Nonce: ${o}`:""} 40Issued At: ${i.toISOString()}`;if(s&&(b+=` 41Expiration Time: ${s.toISOString()}`),a&&(b+=` 42Not Before: ${a.toISOString()}`),l&&(b+=` 43Request ID: ${l}`),c){let y=` 44Resources:`;for(const g of c){if(!g||typeof g!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${g}`);y+=` 45- ${g}`}b+=y}return`${v} 46${b}`}class Qe extends Error{constructor({message:t,code:n,cause:r,name:s}){var i;super(t,{cause:r}),this.__isWebAuthnError=!0,this.name=(i=s??(r instanceof Error?r.name:void 0))!==null&&i!==void 0?i:"Unknown Error",this.code=n}}class Uo extends Qe{constructor(t,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:t}),this.name="WebAuthnUnknownError",this.originalError=n}}function WA({error:e,options:t}){var n,r,s;const{publicKey:i}=t;if(!i)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=i.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=i.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(((s=i.authenticatorSelection)===null||s===void 0?void 0:s.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 i.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 o=window.location.hostname;if(am(o)){if(i.rp.id!==o)return new Qe({message:`The RP ID "${i.rp.id}
46" 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(i.user.id.byteLength<1||i.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 qA({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(am(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 KA{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 GA=new KA;function zA(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,s=_a(e,["challenge","user","excludeCredentials"]),i=bs(t).buffer,o=Object.assign(Object.assign({},n),{id:bs(n.id).buffer}),a=Object.assign(Object.assign({},s),{challenge:i,user:o});if(r&&r.length>0){a.excludeCredentials=new Array(r.length);for(let l=0;l<r.length;l++){const c=r[l];a.excludeCredentials[l]=Object.assign(Object.assign({},c),{id:bs(c.id).buffer,type:c.type||"public-key",transports:c.transports})}}return a}function JA(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=_a(e,["challenge","allowCredentials"]),s=bs(t).buffer,i=Object.assign(Object.assign({},r),{challenge:s});if(n&&n.length>0){i.allowCredentials=new Array(n.length);for(let o=0;o<n.length;o++){const a=n[o];i.allowCredentials[o]=Object.assign(Object.assign({},a),{id:bs(a.id).buffer,type:a.type||"public-key",transports:a.transports})}}return i}function YA(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:Mr(new Uint8Array(e.response.attestationObject)),clientDataJSON:Mr(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function XA(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e,r=e.getClientExtensionResults(),s=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:Mr(new Uint8Array(s.authenticatorData)),clientDataJSON:Mr(new Uint8Array(s.clientDataJSON)),signature:Mr(new Uint8Array(s.signature)),userHandle:s.userHandle?Mr(new Uint8Array(s.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function am(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function wd(){var e,t;return!!(dt()&&"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 QA(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Uo("Browser returned unexpected credential type",t)}:{data:null,error:new Uo("Empty credential response",t)}}
46catch(t){return{data:null,error:WA({error:t,options:e})}}}async function ZA(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Uo("Browser returned unexpected credential type",t)}:{data:null,error:new Uo("Empty credential response",t)}}catch(t){return{data:null,error:qA({error:t,options:e})}}}const ek={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},tk={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function jo(...e){const t=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),n=s=>s instanceof ArrayBuffer||ArrayBuffer.isView(s),r={};for(const s of e)if(s)for(const i in s){const o=s[i];if(o!==void 0)if(Array.isArray(o))r[i]=o;else if(n(o))r[i]=o;else if(t(o)){const a=r[i];t(a)?r[i]=jo(a,o):r[i]=jo(o)}else r[i]=o}return r}function nk(e,t){return jo(ek,e,t||{})}function rk(e,t){return jo(tk,e,t||{})}class sk{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:s},i){var o;try{const{data:a,error:l}=await this.client.mfa.challenge({factorId:t,webauthn:n});if(!a)return{data:null,error:l};const c=s??GA.createNewAbortSignal();if(a.webauthn.type==="create"){const{user:u}=a.webauthn.credential_options.publicKey;if(!u.name){const f=r;if(f)u.name=`${u.id}:${f}`;else{const d=(await this.client.getUser()).data.user,p=((o=d?.user_metadata)===null||o===void 0?void 0:o.name)||d?.email||d?.id||"User";u.name=`${u.id}:${p}`}}u.displayName||(u.displayName=u.name)}switch(a.webauthn.type){case"create":{const u=nk(a.webauthn.credential_options.publicKey,i?.create),{data:f,error:h}=await QA({publicKey:u,signal:c});return f?{data:{factorId:t,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:f}},error:null}:{data:null,error:h}}case"request":{const u=rk(a.webauthn.credential_options.publicKey,i?.request),{data:f,error:h}=await ZA(Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:u,signal:c}));return f?{data:{factorId:t,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:f}},error:null}:{data:null,error:h}}}}catch(a){return ee(a)?{data:null,error:a}:{data:null,error:new Nr("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:s}={}},i){if(!n)return{data:null,error:new Si("rpId is required for WebAuthn authentication")};try{if(!wd())return{data:null,error:new Nr("Browser does not support WebAuthn",null)};const{data:o,error:a}=await this.challenge({factorId:t,webauthn:{rpId:n,rpOrigins:r},signal:s},{request:i});if(!o)return{data:null,error:a};const{webauthn:l}=o;return this._verify({factorId:t,challengeId:o.challengeId,webauthn:{type:l.type,rpId:n,rpOrigins:r,credential_response:l.credential_response}})}catch(o){return ee(o)?{data:null,error:o}:{data:null,error:new Nr("Unexpected error in authenticate",o)}}}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:s}={}},i){if(!n)return{data:null,error:new Si("rpId is required for WebAuthn registration")};try{if(!wd())return{data:null,error:new Nr("Browser does not support WebAuthn",null)};const{data:o,error:a}=await this._enroll({friendlyName:t});if(!o)return await this.client.mfa.listFactors().then(u=>{var f;return(f=u.data)===null||f===void 0?void 0:f.all.find(h=>h.factor_type==="webauthn"&&h.friendly_name===t&&h.status!=="unverified")}).then(u=>
46u?this.client.mfa.unenroll({factorId:u?.id}):void 0),{data:null,error:a};const{data:l,error:c}=await this._challenge({factorId:o.id,friendlyName:o.friendly_name,webauthn:{rpId:n,rpOrigins:r},signal:s},{create:i});return l?this._verify({factorId:o.id,challengeId:l.challengeId,webauthn:{rpId:n,rpOrigins:r,type:l.webauthn.type,credential_response:l.webauthn.credential_response}}):{data:null,error:c}}catch(o){return ee(o)?{data:null,error:o}:{data:null,error:new Nr("Unexpected error in register",o)}}}}FA();const ik={url:tA,storageKey:nA,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:rA,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1};async function Ed(e,t,n){return await n()}const rs={};class Ai{get jwks(){var t,n;return(n=(t=rs[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){rs[this.storageKey]=Object.assign(Object.assign({},rs[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=rs[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){rs[this.storageKey]=Object.assign(Object.assign({},rs[this.storageKey]),{cachedAt:t})}constructor(t){var n,r,s;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 i=Object.assign(Object.assign({},ik),t);if(this.storageKey=i.storageKey,this.instanceID=(n=Ai.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,Ai.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!i.debug,typeof i.debug=="function"&&(this.logger=i.debug),this.instanceID>0&&dt()){const o=`${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(o),this.logDebugMessages&&console.trace(o)}if(this.persistSession=i.persistSession,this.autoRefreshToken=i.autoRefreshToken,this.admin=new MA({url:i.url,headers:i.headers,fetch:i.fetch}),this.url=i.url,this.headers=i.headers,this.fetch=sm(i.fetch),this.lock=i.lock||Ed,this.detectSessionInUrl=i.detectSessionInUrl,this.flowType=i.flowType,this.hasCustomAuthorizationHeader=i.hasCustomAuthorizationHeader,this.throwOnError=i.throwOnError,this.lockAcquireTimeout=i.lockAcquireTimeout,i.lock?this.lock=i.lock:this.persistSession&&dt()&&(!((r=globalThis?.navigator)===null||r===void 0)&&r.locks)?this.lock=jA:this.lock=Ed,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 sk(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?(i.storage?this.storage=i.storage:rm()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=vd(this.memoryStorage)),i.userStorage&&(this.userStorage=i.userStorage)):(this.memoryStorage={},this.storage=vd(this.memoryStorage)),dt()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(o){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",o)}(s=this.broadcastChannel)===null||s===void 0||s.addEventListener("message",async o=>{this._debug("received broadcast notification from other tab or client",o);try{await this._notifyAllSubscribers(o.data.event,o.data.session,!1)}catch(a){this._debug("#broadcastChannel","error",a)}})}i.skipAutoInitialize||this.initialize().catch(o=>{this._debug("#initialize()","error",o)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${em}) ${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(dt()&&(n=_A(window.location.href),this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce")),dt()&&this.detectSessionInUrl&&r!=="none"){const{data:s,error:i}=await this._getSessionFromURL(n,r);if(i){if(this._debug("#_initialize()","error detecting session from URL",i),lA(i)){const l=(t=i.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:i}}return{error:i}}const{session:o,redirectType:a}=s;return this._debug("#_initialize()","detected session in URL",o,"redirect type",a),await this._saveSession(o),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return ee(n)?this._returnResult({error:n}):this._returnResult({error:new Nr("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,s;try{const i=await oe(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:(s=t?.options)===null||s===void 0?void 0:s.captchaToken}},xform:Qt}),{data:o,error:a}=i;if(a||!o)return this._returnResult({data:{user:null,session:null},error:a});const l=o.session,c=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(i){if(ee(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signUp(t){var n,r,s;try{let i;if("email"in t){const{email:u,password:f,options:h}=t;let d=null,p=null;this.flowType==="pkce"&&([d,p]=await ts(this.storage,this.storageKey)),i=await oe(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:h?.emailRedirectTo,body:{email:u,password:f,data:(n=h?.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:h?.captchaToken},code_challenge:d,code_challenge_method:p},xform:Qt})}else if("phone"in t){const{phone:u,password:f,options:h}=t;i=await oe(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:u,password:f,data:(r=h?.data)!==null&&r!==void 0?r:{},channel:(s=h?.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:h?.captchaToken}},xform:Qt})}else throw new so("You must provide either an email or phone number and a password");const{data:o,error:a}=i;if(a||!o)return await ft(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:a});const l=o.session,c=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(i){if(await ft(this.storage,`${this.storageKey}-code-verifier`),ee(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithPassword(t){try{let n;if("email"in t){const{email:i,password:o,options:a}=t;n=await oe(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:i,password:o,gotrue_meta_security:{captcha_token:a?.captchaToken}},xform:yd})}else if("phone"in t){const{phone:i,password:o,options:a}=t;n=await oe(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:i,password:o,gotrue_meta_security:{captcha_token:a?.captchaToken}},xform:yd})}else throw new so("You must provide either an email or phone number and a password");const{data:r,error:s}=n;if(s)return this._returnResult({data:{user:null,session:null},error:s});if(!r||!r.session||!r.user){const i=new es;return this._returnResult({data:{user:null,session:null},error:i})}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:s})}catch(n){if(ee(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOAuth(t){var n,r,s,i;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:(s=t.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(i=t.options)===null||i===void 0?void 0:i.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,s,i,o,a,l,c,u,f,h;let d,p;
46if("message"in t)d=t.message,p=t.signature;else{const{chain:m,wallet:v,statement:b,options:y}=t;let g;if(dt())if(typeof v=="object")g=v;else{const N=window;if("ethereum"in N&&typeof N.ethereum=="object"&&"request"in N.ethereum&&typeof N.ethereum.request=="function")g=N.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 v!="object"||!y?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");g=v}const _=new URL((n=y?.url)!==null&&n!==void 0?n:window.location.href),T=await g.request({method:"eth_requestAccounts"}).then(N=>N).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!T||T.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const R=om(T[0]);let k=(r=y?.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!k){const N=await g.request({method:"eth_chainId"});k=BA(N)}const j={domain:_.host,address:R,statement:b,uri:_.href,version:"1",chainId:k,nonce:(s=y?.signInWithEthereum)===null||s===void 0?void 0:s.nonce,issuedAt:(o=(i=y?.signInWithEthereum)===null||i===void 0?void 0:i.issuedAt)!==null&&o!==void 0?o:new Date,expirationTime:(a=y?.signInWithEthereum)===null||a===void 0?void 0:a.expirationTime,notBefore:(l=y?.signInWithEthereum)===null||l===void 0?void 0:l.notBefore,requestId:(c=y?.signInWithEthereum)===null||c===void 0?void 0:c.requestId,resources:(u=y?.signInWithEthereum)===null||u===void 0?void 0:u.resources};d=VA(j),p=await g.request({method:"personal_sign",params:[HA(d),R]})}try{const{data:m,error:v}=await oe(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:d,signature:p},!((f=t.options)===null||f===void 0)&&f.captchaToken?{gotrue_meta_security:{captcha_token:(h=t.options)===null||h===void 0?void 0:h.captchaToken}}:null),xform:Qt});if(v)throw v;if(!m||!m.session||!m.user){const b=new es;return this._returnResult({data:{user:null,session:null},error:b})}return m.session&&(await this._saveSession(m.session),await this._notifyAllSubscribers("SIGNED_IN",m.session)),this._returnResult({data:Object.assign({},m),error:v})}catch(m){if(ee(m))return this._returnResult({data:{user:null,session:null},error:m});throw m}}async signInWithSolana(t){var n,r,s,i,o,a,l,c,u,f,h,d;let p,m;if("message"in t)p=t.message,m=t.signature;else{const{chain:v,wallet:b,statement:y,options:g}=t;let _;if(dt())if(typeof b=="object")_=b;else{const R=window;if("solana"in R&&typeof R.solana=="object"&&("signIn"in R.solana&&typeof R.solana.signIn=="function"||"signMessage"in R.solana&&typeof R.solana.signMessage=="function"))_=R.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"||!g?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");_=b}const T=new URL((n=g?.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in _&&_.signIn){const R=await _.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},g?.signInWithSolana),{version:"1",domain:T.host,uri:T.href}),y?{statement:y}:null));let k;if(Array.isArray(R)&&R[0]&&typeof R[0]=="object")k=R[0];else if(R&&typeof R=="object"&&"signedMessage"in R&&"signature"in R)k=R;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in k&&"signature"in k&&(typeof k.signedMessage=="string"||k.signedMessage instanceof Uint8Array)&&k.signature instanceof Uint8Array)p=typeof k.signedMessage=="string"?k.signedMessage:new TextDecoder().decode(k.signedMessage),m=k.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=[`${T.host} wants you to sign in with your Solana account:`,_.publicKey.toBase58(),...y?["",y,""]:[""],"Version: 1",`URI: ${T.href}`,`Issued At: ${(s=(r=g?.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((i=g?.signInWithSolana)===null||i===void 0)&&i.notBefore?[`Not Before: ${g.signInWithSolana.notBefore}`]:[],...!((o=g?.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${g.signInWithSolana.expirationTime}`]:[],...!((a=g?.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${g.signInWithSolana.chainId}`]:[],...!((l=g?.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${g.signInWithSolana.nonce}`]:[],...!((c=g?.signInWithSolana)===null||c===void 0)&&c.requestId?[`Request ID: ${g.signInWithSolana.requestId}`]:[],...!((f=(u=g?.signInWithSolana)===null||u===void 0?void 0:u.resources)===null||f===void 0)&&f.length?["Resources",...g.signInWithSolana.resources.map(k=>`- ${k}`)]:[]].join(` 47`);const R=await _.signMessage(new TextEncoder().encode(p),"utf8");if(!R||!(R instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");m=R}}try{const{data:v,error:b}=await oe(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:p,signature:Mr(m)}
47,!((h=t.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(d=t.options)===null||d===void 0?void 0:d.captchaToken}}:null),xform:Qt});if(b)throw b;if(!v||!v.session||!v.user){const y=new es;return this._returnResult({data:{user:null,session:null},error:y})}return v.session&&(await this._saveSession(v.session),await this._notifyAllSubscribers("SIGNED_IN",v.session)),this._returnResult({data:Object.assign({},v),error:b})}catch(v){if(ee(v))return this._returnResult({data:{user:null,session:null},error:v});throw v}}async _exchangeCodeForSession(t){const n=await Rr(this.storage,`${this.storageKey}-code-verifier`),[r,s]=(n??"").split("/");try{if(!r&&this.flowType==="pkce")throw new cA;const{data:i,error:o}=await oe(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:Qt});if(await ft(this.storage,`${this.storageKey}-code-verifier`),o)throw o;if(!i||!i.session||!i.user){const a=new es;return this._returnResult({data:{user:null,session:null,redirectType:null},error:a})}return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),this._returnResult({data:Object.assign(Object.assign({},i),{redirectType:s??null}),error:o})}catch(i){if(await ft(this.storage,`${this.storageKey}-code-verifier`),ee(i))return this._returnResult({data:{user:null,session:null,redirectType:null},error:i});throw i}}async signInWithIdToken(t){try{const{options:n,provider:r,token:s,access_token:i,nonce:o}=t,a=await oe(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:s,access_token:i,nonce:o,gotrue_meta_security:{captcha_token:n?.captchaToken}},xform:Qt}),{data:l,error:c}=a;if(c)return this._returnResult({data:{user:null,session:null},error:c});if(!l||!l.session||!l.user){const u=new es;return this._returnResult({data:{user:null,session:null},error:u})}return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),this._returnResult({data:l,error:c})}catch(n){if(ee(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOtp(t){var n,r,s,i,o;try{if("email"in t){const{email:a,options:l}=t;let c=null,u=null;this.flowType==="pkce"&&([c,u]=await ts(this.storage,this.storageKey));const{error:f}=await oe(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:c,code_challenge_method:u},redirectTo:l?.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:f})}if("phone"in t){const{phone:a,options:l}=t,{data:c,error:u}=await oe(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(s=l?.data)!==null&&s!==void 0?s:{},create_user:(i=l?.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:l?.captchaToken},channel:(o=l?.channel)!==null&&o!==void 0?o:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:c?.message_id},error:u})}throw new so("You must provide either an email or phone number.")}catch(a){if(await ft(this.storage,`${this.storageKey}-code-verifier`),ee(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async verifyOtp(t){var n,r;try{let s,i;"options"in t&&(s=(n=t.options)===null||n===void 0?void 0:n.redirectTo,i=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:o,error:a}=await oe(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:i}}),redirectTo:s,xform:Qt});if(a)throw a;if(!o)throw new Error("An error occurred on token verification.");const l=o.session,c=o.user;return l?.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),this._returnResult({data:{user:c,session:l},error:null})}catch(s){if(ee(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithSSO(t){var n,r,s,i,o;try{let a=null,l=null;this.flowType==="pkce"&&([a,l]=await ts(this.storage,this.storageKey));const c=await oe(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}),!((s=t?.options)===null||s===void 0)&&s.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:NA});return!((i=c.data)===null||i===void 0)&&i.url&&dt()&&!(!((o=t.options)===null||o===void 0)&&o.skipBrowserRedirect)&&window.location.assign(c.data.url),this._returnResult(c)}catch(a){if(await ft(this.storage,`${this.storageKey}-code-verifier`),ee(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 Nt;const{error:s}=await oe(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return this._returnResult({data:{user:null,session:null},error:s})})}catch(t){if(ee(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:s,options:i}=t,{error:o}=await oe(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:s,gotrue_meta_security:{captcha_token:i?.captchaToken}},redirectTo:i?.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:o})}else if("phone"in t){const{phone:r,type:s,options:i}=t,{data:o,error:a}=await oe(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:s,gotrue_meta_security:{captcha_token:i?.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:o?.message_id},error:a})}throw new so("You must provide either an email or phone number and a type")}catch(n){if(ee(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(),s=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}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 s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.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 Rr(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 val
47id"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<rl:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.userStorage){const o=await Rr(this.userStorage,this.storageKey+"-user");o?.user?t.user=o.user:t.user=ol()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const o={value:this.suppressGetSessionWarning};t.user=PA(t.user,o),o.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:s,error:i}=await this._callRefreshToken(t.refresh_token);return i?this._returnResult({data:{session:null},error:i}):this._returnResult({data:{session:s},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 oe(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:ar}):await this._useSession(async n=>{var r,s,i;const{data:o,error:a}=n;if(a)throw a;return!(!((r=o.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new Nt}:await oe(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(i=(s=o.session)===null||s===void 0?void 0:s.access_token)!==null&&i!==void 0?i:void 0,xform:ar})})}catch(n){if(ee(n))return sl(n)&&(await this._removeSession(),await ft(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:s,error:i}=r;if(i)throw i;if(!s.session)throw new Nt;const o=s.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await ts(this.storage,this.storageKey));const{data:c,error:u}=await oe(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:o.access_token,xform:ar});if(u)throw u;return o.user=c.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),this._returnResult({data:{user:o.user},error:null})})}catch(r){if(await ft(this.storage,`${this.storageKey}-code-verifier`),ee(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 Nt;const n=Date.now()/1e3;let r=n,s=!0,i=null;const{payload:o}=oo(t.access_token);if(o.exp&&(r=o.exp,s=r<=n),s){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};i=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});i={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(i),await this._notifyAllSubscribers("SIGNED_IN",i)}return this._returnResult({data:{user:i.user,session:i},error:null})}catch(n){if(ee(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:o,error:a}=n;if(a)throw a;t=(r=o.session)!==null&&r!==void 0?r:void 0}if(!t?.refresh_token)throw new Nt;const{data:s,error:i}=await this._callRefreshToken(t.refresh_token);return i?this._returnResult({data:{user:null,session:null},error:i}):s?this._returnResult({data:{user:s.user,session:s},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(n){if(ee(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}
47async _getSessionFromURL(t,n){try{if(!dt())throw new io("No browser detected.");if(t.error||t.error_description||t.error_code)throw new io(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 fd("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new io("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 fd("No code detected.");const{data:y,error:g}=await this._exchangeCodeForSession(t.code);if(g)throw g;const _=new URL(window.location.href);return _.searchParams.delete("code"),window.history.replaceState(window.history.state,"",_.toString()),{data:{session:y.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:s,access_token:i,refresh_token:o,expires_in:a,expires_at:l,token_type:c}=t;if(!i||!a||!o||!c)throw new io("No session defined in URL");const u=Math.round(Date.now()/1e3),f=parseInt(a);let h=u+f;l&&(h=parseInt(l));const d=h-u;d*1e3<=as&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${d}s, should have been closer to ${f}s`);const p=h-f;u-p>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",p,h,u):u-p<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",p,h,u);const{data:m,error:v}=await this._getUser(i);if(v)throw v;const b={provider_token:r,provider_refresh_token:s,access_token:i,expires_in:f,expires_at:h,refresh_token:o,token_type:c,user:m.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(ee(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 Rr(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:s,error:i}=n;if(i&&!sl(i))return this._returnResult({error:i});const o=(r=s.session)===null||r===void 0?void 0:r.access_token;if(o){const{error:a}=await this.admin.signOut(o,t);if(a&&!(aA(a)&&(a.status===404||a.status===401||a.status===403)||sl(a)))return this._returnResult({error:a})}return t!=="others"&&(await this._removeSession(),await ft(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const n=mA(),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,s;try{const{data:{session:i},error:o}=n;if(o)throw o;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",i)),this._debug("INITIAL_SESSION","callback id",t,"session",i)}catch(i){await((s=this.stateChangeEmitters.get(t))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",i),console.error(i)}})}async resetPasswordForEmail(t,n={}){let r=null,s=null;this.flowType==="pkce"&&([r,s]=await ts(this.storage,this.storageKey,!0));try{return await oe(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:s,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(i){if(await ft(this.storage,`${this.storageKey}-code-verifier`),ee(i))return this._returnResult({data:null,error:i});throw i}}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(ee(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:s}=await this._useSession(async i=>{var o,a,l,c,u;const{data:f,error:h}=i;if(h)throw h;const d=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(o=t.options)===null||o===void 0?void 0:o.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 oe(this.fetch,"GET",d,{headers:this.headers,jwt:(u=(c=f.session)===null||c===void 0?void 0:c.access_token)!==null&&u!==void 0?u:void 0})});if(s)throw s;return dt()&&!(!((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(ee(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:s,data:{session:i}}=n;
47if(s)throw s;const{options:o,provider:a,token:l,access_token:c,nonce:u}=t,f=await oe(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(r=i?.access_token)!==null&&r!==void 0?r:void 0,body:{provider:a,id_token:l,access_token:c,nonce:u,link_identity:!0,gotrue_meta_security:{captcha_token:o?.captchaToken}},xform:Qt}),{data:h,error:d}=f;return d?this._returnResult({data:{user:null,session:null},error:d}):!h||!h.session||!h.user?this._returnResult({data:{user:null,session:null},error:new es}):(h.session&&(await this._saveSession(h.session),await this._notifyAllSubscribers("USER_UPDATED",h.session)),this._returnResult({data:h,error:d}))}catch(s){if(await ft(this.storage,`${this.storageKey}-code-verifier`),ee(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}})}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,s;const{data:i,error:o}=n;if(o)throw o;return await oe(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(s=(r=i.session)===null||r===void 0?void 0:r.access_token)!==null&&s!==void 0?s:void 0})})}catch(n){if(ee(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 vA(async s=>(s>0&&await bA(200*Math.pow(2,s-1)),this._debug(n,"refreshing attempt",s),await oe(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Qt})),(s,i)=>{const o=200*Math.pow(2,s);return i&&il(i)&&Date.now()+o-r<as})}catch(r){if(this._debug(n,"error",r),ee(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),dt()&&!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 s=await Rr(this.storage,this.storageKey);if(s&&this.userStorage){let o=await Rr(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:s.user},await ls(this.userStorage,this.storageKey+"-user",o)),s.user=(t=o?.user)!==null&&t!==void 0?t:ol()}else if(s&&!s.user&&!s.user){const o=await Rr(this.storage,this.storageKey+"-user");o&&o?.user?(s.user=o.user,await ft(this.storage,this.storageKey+"-user"),await ls(this.storage,this.storageKey,s)):s.user=ol()}if(this._debug(r,"session from storage",s),!this._isValidSession(s)){this._debug(r,"session is not valid"),s!==null&&await this._removeSession();return}const i=((n=s.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<rl;if(this._debug(r,`session has${i?"":" not"} expired with margin of ${rl}s`),i){if(this.autoRefreshToken&&s.refresh_token){const{error:o}=await this._callRefreshToken(s.refresh_token);o&&(console.error(o),il(o)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",o),await this._removeSession()))}}else if(s.user&&s.user.__isUserNotAvailableProxy===!0)try{const{data:o,error:a}=await this._getUser(s.access_token);!a&&o?.user?(s.user=o.user,await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)):this._debug(r,"could not get user data, skipping SIGNED_IN notification")}catch(o){console.error("Error getting user data:",o),this._debug(r,"error getting user data, skipping SIGNED_IN notification",o)}else await this._notifyAllSubscribers("SIGNED_IN",s)}catch(s){this._debug(r,"error",s),console.error(s);return}finally{this._debug(r,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new Nt;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new va;const{data:i,error:o}=await this._refreshAccessToken(t);if(o)throw o;if(!i.session)throw new Nt;await this._saveSession(i.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",i.session);const a={data:i.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(i){if(this._debug(s,"error",i),ee(i)){const o={data:null,error:i};return il(i)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(o),o}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(i),i}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(t,n,r=!0){const s=`#_notifyAllSubscribers(${t})`;this._debug(s,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const i=[],o=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(t,n)}catch(l){i.push(l)}});if(await Promise.all(o),i.length>0){for(let a=0;a<i.length;a+=1)console.error(i[a]);throw i[0]}}finally{this._debug(s,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await ft(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 ls(this.userStorage,this.storageKey+"-user",{user:n.user});const s=Object.assign({},n);delete s.user;const i=md(s);await ls(this.storage,this.storageKey,i)}else{const s=md(n);await ls(this.storage,this.storageKey,s)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await ft(this.storage,this.storageKey),await ft(this.storage,this.storageKey+"-code-verifier"),await ft(this.storage,this.storageKey+"-user"),this.userStorage&&await ft(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&dt()&&window?.removeEventListener&&window.removeEventListener("visibilitychange",t)}
47catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),as);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 s=Math.floor((r.expires_at*1e3-t)/as);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${as}ms, refresh threshold is ${ac} ticks`),s<=ac&&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 im)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!dt()||!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 s=[`provider=${encodeURIComponent(n)}`];if(r?.redirectTo&&s.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r?.scopes&&s.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[i,o]=await ts(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(o)}`});s.push(a.toString())}if(r?.queryParams){const i=new URLSearchParams(r.queryParams);s.push(i.toString())}return r?.skipBrowserRedirect&&s.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${s.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;return i?this._returnResult({data:null,error:i}):await oe(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=s?.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(ee(n))return this._returnResult({data:null,error:n});throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,s;const{data:i,error:o}=n;if(o)return this._returnResult({data:null,error:o});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:c}=await oe(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(r=i?.session)===null||r===void 0?void 0:r.access_token});return c?this._returnResult({data:null,error:c}):(t.factorType==="totp"&&l.type==="totp"&&(!((s=l?.totp)===null||s===void 0)&&s.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(ee(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:s,error:i}=n;if(i)return this._returnResult({data:null,error:i});const o=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?YA(t.webauthn.credential_response):XA(t.webauthn.credential_response)})}:{code:t.code}),{data:a,error:l}=await oe(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:o,headers:this.headers,jwt:(r=s?.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(ee(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:s,error:i}=n;if(i)return this._returnResult({data:null,error:i});const o=await oe(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(r=s?.session)===null||r===void 0?void 0:r.access_token});if(o.error)return o;const{data:a}=o;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:zA(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:JA(a.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(n){if(ee(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 s={all:[],phone:[],totp:[],webauthn:[]};for(const i of(t=n?.factors)!==null&&t!==void 0?t:[])s.all.push(i),i.status==="verified"&&s[i.factor_type].push(i);return{data:s,error:null}}async _getAuthenticatorAssuranceLevel(t){var n,r,s,i;if(t)try{const{payload:d}=oo(t);let p=null;d.aal&&(p=d.aal);let m=p;const{data:{user:v},error:b}=await this.getUser(t);if(b)return this._returnResult({data:null,error:b});((r=(n=v?.factors)===null||n===void 0?void 0:n.filter(_=>_.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(m="aal2");const g=d.amr||[];return{data:{currentLevel:p,nextLevel:m,currentAuthenticationMethods:g},error:null}}catch(d){if(ee(d))return this._returnResult({data:null,error:d});throw d}const{data:{session:o},error:a}
47=await this.getSession();if(a)return this._returnResult({data:null,error:a});if(!o)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:l}=oo(o.access_token);let c=null;l.aal&&(c=l.aal);let u=c;((i=(s=o.user.factors)===null||s===void 0?void 0:s.filter(d=>d.status==="verified"))!==null&&i!==void 0?i:[]).length>0&&(u="aal2");const h=l.amr||[];return{data:{currentLevel:c,nextLevel:u,currentAuthenticationMethods:h},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;return s?this._returnResult({data:null,error:s}):r?await oe(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:r.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new Nt})})}catch(n){if(ee(n))return this._returnResult({data:null,error:n});throw n}}async _approveAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:s},error:i}=r;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new Nt});const o=await oe(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"approve"},xform:a=>({data:a,error:null})});return o.data&&o.data.redirect_url&&dt()&&!n?.skipBrowserRedirect&&window.location.assign(o.data.redirect_url),o})}catch(r){if(ee(r))return this._returnResult({data:null,error:r});throw r}}async _denyAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:s},error:i}=r;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new Nt});const o=await oe(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"deny"},xform:a=>({data:a,error:null})});return o.data&&o.data.redirect_url&&dt()&&!n?.skipBrowserRedirect&&window.location.assign(o.data.redirect_url),o})}catch(r){if(ee(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 oe(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,xform:s=>({data:s,error:null})}):this._returnResult({data:null,error:new Nt})})}catch(t){if(ee(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:s}=n;return s?this._returnResult({data:null,error:s}):r?(await oe(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 Nt})})}catch(n){if(ee(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 s=Date.now();if(r=this.jwks.keys.find(a=>a.kid===t),r&&this.jwks_cached_at+iA>s)return r;const{data:i,error:o}=await oe(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!i.keys||i.keys.length===0||(this.jwks=i,this.jwks_cached_at=s,r=i.keys.find(a=>a.kid===t),!r)?null:r}async getClaims(t,n={}){try{let r=t;if(!r){const{data:d,error:p}
47=await this.getSession();if(p||!d.session)return this._returnResult({data:null,error:p});r=d.session.access_token}const{header:s,payload:i,signature:o,raw:{header:a,payload:l}}=oo(r);n?.allowExpired||RA(i.exp);const c=!s.alg||s.alg.startsWith("HS")||!s.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(s.kid,n?.keys?{keys:n.keys}:n?.jwks);if(!c){const{error:d}=await this.getUser(r);if(d)throw d;return{data:{claims:i,header:s,signature:o},error:null}}const u=OA(s.alg),f=await crypto.subtle.importKey("jwk",c,u,!0,["verify"]);if(!await crypto.subtle.verify(u,f,o,pA(`${a}.${l}`)))throw new uc("Invalid JWT signature");return{data:{claims:i,header:s,signature:o},error:null}}catch(r){if(ee(r))return this._returnResult({data:null,error:r});throw r}}}Ai.nextInstanceID={};const ok=Ai,ak="2.98.0";let Qs="";typeof Deno<"u"?Qs="deno":typeof document<"u"?Qs="web":typeof navigator<"u"&&navigator.product==="ReactNative"?Qs="react-native":Qs="node";const lk={"X-Client-Info":`supabase-js-${Qs}/${ak}`},ck={headers:lk},uk={schema:"public"},fk={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},dk={};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 hk(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 pk(e){var t=hk(e,"string");return ki(t)=="symbol"?t:t+""}function gk(e,t,n){return(t=pk(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Td(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function Ge(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Td(Object(n),!0).forEach(function(r){gk(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Td(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const mk=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),_k=()=>Headers,yk=(e,t,n)=>{const r=mk(n),s=_k();return async(i,o)=>{var a;const l=(a=await t())!==null&&a!==void 0?a:e;let c=new s(o?.headers);return c.has("apikey")||c.set("apikey",e),c.has("Authorization")||c.set("Authorization",`Bearer ${l}`),r(i,Ge(Ge({},o),{},{headers:c}))}};function bk(e){return e.endsWith("/")?e:e+"/"}function vk(e,t){var n,r;const{db:s,auth:i,realtime:o,global:a}=e,{db:l,auth:c,realtime:u,global:f}=t,h={db:Ge(Ge({},l),s),auth:Ge(Ge({},c),i),realtime:Ge(Ge({},u),o),storage:{},global:Ge(Ge(Ge({},f),a),{},{headers:Ge(Ge({},(n=f?.headers)!==null&&n!==void 0?n:{}),(r=a?.headers)!==null&&r!==void 0?r:{})}),accessToken:async()=>""};return e.accessToken?h.accessToken=e.accessToken:delete h.accessToken,h}function wk(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(bk(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var Ek=class extends ok{constructor(e){super(e)}},Tk=class{constructor(e,t,n){var r,s;this.supabaseUrl=e,this.supabaseKey=t;const i=wk(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",i),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",i),this.storageUrl=new URL("storage/v1",i),this.functionsUrl=new URL("functions/v1",i);const o=`sb-${i.hostname.split(".")[0]}-auth-token`,a={db:uk,realtime:dk,auth:Ge(Ge({},fk),{},{storageKey:o}),global:ck},l=vk(n??{},a);if(this.storageKey=(r=l.auth.storageKey)!==null&&r!==void 0?r:"",this.headers=(s=l.global.headers)!==null&&s!==void 0?s:{},l.accessToken)this.accessToken=l.accessToken,this.auth=new Proxy({},{get:(u,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 c;this.auth=this._initSupabaseAuthClient((c=l.auth)!==null&&c!==void 0?c:{},this.headers,l.global.fetch)}this.fetch=yk(t,this._getAccessToken.bind(this),l.global.fetch),this.realtime=this._initRealtimeClient(Ge({headers:this.headers,accessToken:this._getAccessToken.bind(this)},l.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(u=>this.realtime.setAuth(u)).catch(u=>console.warn("Failed to set initial Realtime auth token:",u)),this.rest=new aS(new URL("rest/v1",i).href,{headers:this.headers,schema:l.db.schema,fetch:this.fetch,timeout:l.db.timeout,urlLengthLimit:l.db.urlLengthLimit}),this.storage=new eA(this.storageUrl.href,this.headers,this.fetch,n?.storage),l.accessToken||this._listenForAuthEvents()}get functions(){return new ZT(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)}
47channel(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:s,storageKey:i,flowType:o,lock:a,debug:l,throwOnError:c},u,f){const h={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new Ek({url:this.authUrl.href,headers:Ge(Ge({},h),u),storageKey:i,autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:s,flowType:o,lock:a,debug:l,throwOnError:c,fetch:f,hasCustomAuthorizationHeader:Object.keys(this.headers).some(d=>d.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new SS(this.realtimeUrl.href,Ge(Ge({},e),{},{params:Ge(Ge({},{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 lm=(e,t,n)=>new Tk(e,t,n);function Sk(){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}Sk()&&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");const Ak="0.7.0";var Xt={},Sd;function kk(){if(Sd)return Xt;Sd=1,Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.parseCookie=a,Xt.parse=a,Xt.stringifyCookie=l,Xt.stringifySetCookie=c,Xt.serialize=c,Xt.parseSetCookie=u,Xt.stringifySetCookie=c,Xt.serialize=c;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,s=/^-?\d+$/,i=Object.prototype.toString,o=(()=>{const v=function(){};return v.prototype=Object.create(null),v})();function a(v,b){const y=new o,g=v.length;if(g<2)return y;const _=b?.decode||p;let T=0;do{const R=h(v,T,g);if(R===-1)break;const k=f(v,T,g);if(R>k){T=v.lastIndexOf(";",R-1)+1;continue}const j=d(v,T,R);y[j]===void 0&&(y[j]=_(d(v,R+1,k))),T=k+1}while(T<g);return y}function l(v,b){const y=b?.encode||encodeURIComponent,g=[];for(const _ of Object.keys(v)){const T=v[_];if(T===void 0)continue;if(!e.test(_))throw new TypeError(`cookie name is invalid: ${_}`);const R=y(T);if(!t.test(R))throw new TypeError(`cookie val is invalid: ${T}`);g.push(`${_}=${R}`)}return g.join("; ")}function c(v,b,y){const g=typeof v=="object"?v:{...y,name:v,value:String(b)},T=(typeof b=="object"?b:y)?.encode||encodeURIComponent;if(!e.test(g.name))throw new TypeError(`argument name is invalid: ${g.name}`);const R=g.value?T(g.value):"";if(!t.test(R))throw new TypeError(`argument val is invalid: ${g.value}`);let k=g.name+"="+R;if(g.maxAge!==void 0){if(!Number.isInteger(g.maxAge))throw new TypeError(`option maxAge is invalid: ${g.maxAge}`);k+="; Max-Age="+g.maxAge}if(g.domain){if(!n.test(g.domain))throw new TypeError(`option domain is invalid: ${g.domain}`);k+="; Domain="+g.domain}if(g.path){if(!r.test(g.path))throw new TypeError(`option path is invalid: ${g.path}`);k+="; Path="+g.path}if(g.expires){if(!m(g.expires)||!Number.isFinite(g.expires.valueOf()))throw new TypeError(`option expires is invali
47d: ${g.expires}`);k+="; Expires="+g.expires.toUTCString()}if(g.httpOnly&&(k+="; HttpOnly"),g.secure&&(k+="; Secure"),g.partitioned&&(k+="; Partitioned"),g.priority)switch(typeof g.priority=="string"?g.priority.toLowerCase():void 0){case"low":k+="; Priority=Low";break;case"medium":k+="; Priority=Medium";break;case"high":k+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${g.priority}`)}if(g.sameSite)switch(typeof g.sameSite=="string"?g.sameSite.toLowerCase():g.sameSite){case!0:case"strict":k+="; SameSite=Strict";break;case"lax":k+="; SameSite=Lax";break;case"none":k+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${g.sameSite}`)}return k}function u(v,b){const y=b?.decode||p,g=v.length,_=f(v,0,g),T=h(v,0,_),R=T===-1?{name:"",value:y(d(v,0,_))}:{name:d(v,0,T),value:y(d(v,T+1,_))};let k=_+1;for(;k<g;){const j=f(v,k,g),N=h(v,k,j),H=N===-1?d(v,k,j):d(v,k,N),F=N===-1?void 0:d(v,N+1,j);switch(H.toLowerCase()){case"httponly":R.httpOnly=!0;break;case"secure":R.secure=!0;break;case"partitioned":R.partitioned=!0;break;case"domain":R.domain=F;break;case"path":R.path=F;break;case"max-age":F&&s.test(F)&&(R.maxAge=Number(F));break;case"expires":if(!F)break;const M=new Date(F);Number.isFinite(M.valueOf())&&(R.expires=M);break;case"priority":if(!F)break;const J=F.toLowerCase();(J==="low"||J==="medium"||J==="high")&&(R.priority=J);break;case"samesite":if(!F)break;const ne=F.toLowerCase();(ne==="lax"||ne==="strict"||ne==="none")&&(R.sameSite=ne);break}k=j+1}return R}function f(v,b,y){const g=v.indexOf(";",b);return g===-1?y:g}function h(v,b,y){const g=v.indexOf("=",b);return g<y?g:-1}function d(v,b,y){let g=b,_=y;do{const T=v.charCodeAt(g);if(T!==32&&T!==9)break}while(++g<_);for(;_>g;){const T=v.charCodeAt(_-1);if(T!==32&&T!==9)break;_--}return v.slice(g,_)}function p(v){if(v.indexOf("%")===-1)return v;try{return decodeURIComponent(v)}catch{return v}}function m(v){return i.call(v)==="[object Date]"}return Xt}var Ad=kk();function ai(){return typeof window<"u"&&typeof window.document<"u"}const ao={path:"/",sameSite:"lax",httpOnly:!1,maxAge:400*24*60*60},Rk=3180,Ok=/^(.*)[.](0|[1-9][0-9]*)$/;function kd(e,t){if(e===t)return!0;const n=e.match(Ok);return!!(n&&n[1]===t)}function Ck(e,t,n){const r=Rk;let s=encodeURIComponent(t);if(s.length<=r)return[{name:e,value:t}];const i=[];for(;s.length>0;){let o=s.slice(0,r);const a=o.lastIndexOf("%");a>r-3&&(o=o.slice(0,a));let l="";for(;o.length>0;)try{l=decodeURIComponent(o);break}catch(c){if(c instanceof URIError&&o.at(-3)==="%"&&o.length>3)o=o.slice(0,o.length-3);else throw c}i.push(l),s=s.slice(o.length)}return i.map((o,a)=>({name:`${e}.${a}`,value:o}))}async function Pk(e,t){const n=await t(e);if(n)return n;let r=[];for(let s=0;;s++){const i=`${e}.${s}`,o=await t(i);if(!o)break;r.push(o)}return r.length>0?r.join(""):null}const Fo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Rd=`
48\r=`.split(""),Ik=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<Rd.length;t+=1)e[Rd[t].charCodeAt(0)]=-2;for(let t=0;t<Fo.length;t+=1)e[Fo[t].charCodeAt(0)]=t;return e})();function Lk(e){const t=[];let n=0,r=0;if(Dk(e,i=>{for(n=n<<8|i,r+=8;r>=6;){const o=n>>r-6&63;t.push(Fo[o]),r-=6}}),r>0)for(n=n<<6-r,r=6;r>=6;){const i=n>>r-6&63;t.push(Fo[i]),r-=6}return t.join("")}function xk(e){const t=[],n=o=>{t.push(String.fromCodePoint(o))},r={utf8seq:0,codepoint:0};let s=0,i=0;for(let o=0;o<e.length;o+=1){const a=e.charCodeAt(o),l=Ik[a];if(l>-1)for(s=s<<6|l,i+=6;i>=8;)$k(s>>i-8&255,r,n),i-=8;else{if(l===-2)continue;throw new Error(`Invalid Base64-URL character "${e.at(o)}" at position ${o}`)}}return t.join("")}function Nk(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 Dk(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const s=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|s)+65536,n+=1}Nk(r,t)}}function $k(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)}}const ll="base64-";function Mk(e,t){const n=e.cookies??null,r=e.cookieEncoding,s={},i={};let o,a;if(n)if("get"in n){const l=async c=>{const u=c.flatMap(h=>[h,...Array.from({length:5}).map((d,p)=>`${h}.${p}`)]),f=[];for(let h=0;h<u.length;h+=1){const d=await n.get(u[h]);!d&&typeof d!="string"||f.push({name:u[h],value:d})}return f};if(o=async c=>await l(c),"set"in n&&"remove"in n)a=async c=>{for(let u=0;u<c.length;u+=1){const{name:f,value:h,options:d}=c[u];h?await n.set(f,h,d):await n.remove(f,d)}};else throw new Error("@supabase/ssr: createBrowserClient requires configuring a getAll and setAll cookie method (deprecated: alternatively both get, set and remove can be used)")}else if("getAll"in n)if(o=async()=>await n.getAll(),"setAll"in n)a=n.setAll;else throw new Error("@supabase/ssr: createBrowserClient requires configuring both getAll and setAll cookie methods (deprecated: alternatively both get, set and remove can be used)");else throw new Error(`@supabase/ssr: createBrowserClient requires configuring getAll and setAll cookie methods (deprecated: alternatively use get, set and remove).${ai()?" As this is called in a browser runtime, consider removing the cookies option object to use the document.cookie API automatically.":""}`);else if(ai()){const l=()=>{const c=Ad.parse(document.cookie);return Object.keys(c).map(u=>({name:u,value:c[u]??""}))};o=()=>l(),a=c=>{c.forEach(({name:u,value:f,options:h})=>{document.cookie=Ad.serialize(u,f,h)})}}else o=()=>[],a=()=>{throw new Error("@supabase/ssr: createBrowserClient in non-browser runtimes (including Next.js pre-rendering mode) was not initialized cookie options that specify getAll and setAll functions (deprecated: alternatively use get, set and remove), but they were needed")};return{getAll:o,setAll:a,setItems:s,removedItems:i,storage:{isServer:!1,getItem:async l=>{const c=await o([l]),u=await Pk(l,async h=>{const d=c?.find(({name:p})=>p===h)||null;return d?d.value:null});if(!u)return null;let f=u;return u.startsWith(ll)&&(f=xk(u.substring(ll.length))),f},setItem:async(l,c)=>{const f=(await o([l]))?.map(({name:y})=>y)||[],h=new Set(f.filter(y=>kd(y,l)));let d=c;r==="base64url"&&(d=ll+Lk(c));const p=Ck(l,d);p.forEach(({name:y})=>{h.delete(y)});const m={...ao,...e?.cookieOptions,maxAge:0},v={...ao,...e?.cookieOptions,maxAge:ao.maxAge};delete m.name,delete v.name;const b=[...[...h].map(y=>({name:y,value:"",options:m})),...p.map(({name:y,value:g})=>({name:y,value:g,options:v}))];b.length>0&&await a(b)},removeItem:async l=>{const f=((await o([l]))?.map(({name:d})=>d)||[]).filter(d=>kd(d,l)),h={...ao,...e?.cookieOptions,maxAge:0};delete h.name,f.length>0&&await a(f.map(d=>({name:d,value:"",options:h})))}}}}let cl;function Uk(e,t,n){const r=n?.isSingleton===!0||(!n||!("isSingleton"in n))&&ai();if(r&&cl)return cl;if(!e||!t)throw new Error(`@supabase/ssr: Your project's URL and API key are required to create a Supabase client! 49 50Check your Supabase project's API settings to find these values 51 52https://supabase.com/dashboard/project/_/settings/api`);const{storage:s}=Mk({...n,cookieEncoding:n?.cookieEncoding??"base64url"}),i=lm(e,t,{...n,global:{...n?.global,headers:{...n?.global?.headers,"X-Client-Info":`supabase-ssr/${Ak} createBrowserClient`}},auth:{...n?.auth,...n?.cookieOptions?.name?{storageKey:n.cookieOptions.name}:null,flowType:"pkce",autoRefreshToken:ai(),detectSessionInUrl:ai(),persistSession:!0,storage:s}});return r&&(cl=i),i}async function Od(e,t){for(let r=1;r<=3;r++)try{return await fetch(e,t)}catch(s){if(t?.signal?.aborted)throw s;if(r===3)throw console.error(`Error fetching request ${e}`,s,t),s;console.warn(`Retrying fetch attempt ${r+1} for request: ${e}`)}throw new Error("Unreachable code")}const cm=()=>Ni("supabase_session",()=>null),jk=()=>Ni("supabase_user",()=>
52null),Fk=ot({name:"supabase",enforce:"pre",async setup({provide:e}){const{url:t,key:n,cookieOptions:r,cookiePrefix:s,useSsrCookies:i,clientOptions:o}=fn().public.supabase;let a;i?a=Uk(t,n,{...o,cookieOptions:{...r,name:s},isSingleton:!0,global:{fetch:Od,...o.global}}):a=lm(t,n,{...o,global:{fetch:Od,...o.global}}),e("supabase",{client:a});const l=cm(),c=jk();a.auth.onAuthStateChange((u,f)=>{JSON.stringify(l.value)!==JSON.stringify(f)&&(l.value=f,c.value=f?.user??null)})}}),Bk=ot({name:"nuxt:payload",setup(e){const t=new Set;bt().beforeResolve(async(n,r)=>{if(n.path===r.path)return;const s=await Cf(n.path);if(s){for(const i of t)delete e.static.data[i];for(const i in s.data)i in e.static.data||t.add(i),e.static.data[i]=s.data[i]}}),tu(()=>{e.hooks.hook("link:prefetch",async n=>{const{hostname:r}=new URL(n,window.location.href);r===window.location.hostname&&await Cf().catch(()=>{console.warn("[nuxt] Error preloading payload for",n)})}),navigator.connection?.effectiveType!=="slow-2g"&&setTimeout(kg,1e3)})}}),Hk=ot(()=>{const e=bt();tu(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),Vk=ot(e=>{let t;async function n(){let r;try{r=await kg()}catch(s){const i=s;
52if(!("status"in i&&(i.status===404||i.status===403)))throw i}t&&clearTimeout(t),t=setTimeout(n,vf);try{const s=await $fetch(Gc("builds/latest.json")+`?${Date.now()}`);s.id!==r?.id&&(e.hooks.callHook("app:manifest:update",s),t&&clearTimeout(t))}catch{}}tu(()=>{t=setTimeout(n,vf)})}),Wk=ot({name:"nuxt:chunk-reload",setup(e){const t=bt(),n=fn(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:i})=>{r.add(i)});function s(i){const o=xs(n.app.baseURL,i.fullPath);KT({path:o,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(s)}),t.onError((i,o)=>{r.has(i)&&s(o)})}});function qk(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Bo=typeof window<"u",yr=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Kk=(e,t,n)=>Gk({l:e,k:t,s:n}),Gk=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),et=e=>typeof e=="number"&&isFinite(e),zk=e=>Ea(e)==="[object Date]",Ho=e=>Ea(e)==="[object RegExp]",wa=e=>we(e)&&Object.keys(e).length===0,He=Object.assign,Jk=Object.create,xe=(e=null)=>Jk(e);let Cd;const su=()=>Cd||(Cd=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:xe());function Pd(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function Id(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Yk(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(r,s,i)=>`${s}="${Id(i)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(r,s,i)=>`${s}='${Id(i)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1on$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(r=>{e=e.replace(r,"$1javascript:")}),e}const Xk=Object.prototype.hasOwnProperty;function sn(e,t){return Xk.call(e,t)}const ze=Array.isArray,De=e=>typeof e=="function",K=e=>typeof e=="string",Ve=e=>typeof e=="boolean",Ee=e=>e!==null&&typeof e=="object",Qk=e=>Ee(e)&&De(e.then)&&De(e.catch),um=Object.prototype.toString,Ea=e=>um.call(e),we=e=>Ea(e)==="[object Object]",Zk=e=>e==null?"":ze(e)||we(e)&&e.toString===um?JSON.stringify(e,null,2):String(e);function iu(e,t=""){return e.reduce((n,r,s)=>s===0?n+r:n+t+r,"")}const lo=e=>!Ee(e)||ze(e);function vs(e,t){if(lo(e)||lo(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:s}=n.pop();Object.keys(r).forEach(i=>{i!=="__proto__"&&(Ee(r[i])&&!Ee(s[i])&&(s[i]=Array.isArray(r[i])?[]:xe()),lo(s[i])||lo(r[i])?s[i]=r[i]:n.push({src:r[i],des:s[i]}))})}}const eR={language:{t:0,b:{t:2,i:[{t:3}],s:"Language"}},footer:{affiliates:{t:0,b:{t:2,i:[{t:3}],s:"Affiliates"}},about:{t:0,b:{t:2,i:[{t:3}],s:"About"}},howItWorks:{t:0,b:{t:2,i:[{t:3}],s:"How it Works"}},pricing:{t:0,b:{t:2,i:[{t:3}],s:"Pricing"}},contact:{t:0,b:{t:2,i:[{t:3}],s:"Contact"}},faq:{t:0,b:{t:2,i:[{t:3}],s:"FAQ"}},gallery:{t:0,b:{t:2,i:[{t:3}],s:"Gallery"}},termsOfService:{t:0,b:{t:2,i:[{t:3}],s:"Terms of Service"}},cookiePolicy:{t:0,b:{t:2,i:[{t:3}],s:"Cookie Policy"}},privacyPolicy:{t:0,b:{t:2,i:[{t:3}],s:"Privacy Policy"}}},Testimonials:{title:{t:0,b:{t:2,i:[{t:3}],s:"Our customers love their new designs"}},subtitle:{t:0,b:{t:2,i:[{t:3}],s:"InterioresIA is faster, cheaper, and easier than any other option. See for yourself!"}},reviews:[{text:{t:0,b:{t:2,i:[{t:3}],s:"âI'm delighted, I received completely amazing design proposals! I'm already using one of my favorites to renovate my bedroom.â"}},author:{t:0,b:{t:2,i:[{t:3}],s:"Yousra L."}},role:{t:0,b:{t:2,i:[{t:3}],s:"Writer"}}},{text:{t:0,b:{t:2,i:[{t:3}],s:"âI was looking for inspiration to renovate my home office. The ideas I received were not only innovative but also easy to implement. Highly recommended!â"}},author:{t:0,b:{t:2,i:[{t:3}],s:"Omar T."}},role:{t:0,b:{t:2,i:[{t:3}],s:"Account Manager"}}},{text:{t:0,b:{t:2,i:[{t:3}],s:"âWith InterioresIA, designing my living room was quick and simple, saving time and money, an incredible experience. I am very happy with the outcome. Thank y
52ou!â"}},author:{t:0,b:{t:2,i:[{t:3}],s:"Olivier M."}},role:{t:0,b:{t:2,i:[{t:3}],s:"Artist"}}}]},faq:{title:{t:0,b:{t:2,i:[{t:3}],s:"Frequently Asked Questions"}},description:{t:0,b:{t:2,i:[{t:3}],s:"Answers to common questions about Indie Logs, the log sharing platform for startups."}},items:[{question:{t:0,b:{t:2,i:[{t:3}],s:"What is Indie Logs?"}},answer:{t:0,b:{t:2,i:[{t:3}],s:"Indie Logs is a platform that lets you share updates and progress on your startups in a simple, streamlined way. It helps build credibility and trust with your audience by showing a maintained product timeline."}}},{question:{t:0,b:{t:2,i:[{t:3}],s:"How can Indie Logs benefit my startup?"}},answer:{t:0,b:{t:2,i:[{t:3}],s:"By consistently sharing updates on Indie Logs, you can demonstrate the active development and growth of your startup, helping to keep your customers informed and engaged."}}},{question:{t:0,b:{t:2,i:[{t:3}],s:"Can I share updates for multiple startups on Indie Logs?"}},answer:{t:0,b:{t:2,i:[{t:3}],s:"Absolutely! Indie Logs allows you to manage and share progress for all your startups in one place. You can create a unique timeline for each startup to showcase your journey."}}},{question:{t:0,b:{t:2,i:[{t:3}],s:"Is there a cost to using Indie Logs?"}},answer:{t:0,b:{t:2,i:[{t:3}],s:"Indie Logs offers a free tier for individuals with a single startup. If you manage multiple startups or want premium features like front-page visibility, we offer monthly or yearly subscription plans."}}},{question:{t:0,b:{t:2,i:[{t:3}],s:"How does the free plan differ from the subscription plans?"}},answer:{t:0,b:{t:2,i:[{t:3}],s:"The free plan is perfect for solo entrepreneurs with one startup, providing basic log sharing capabilities. Subscription plans offer additional features such as multiple startup management and front-page exposure."}}},{question:{t:0,b:{t:2,i:[{t:3}],s:"Can my startup get featured on the Indie Logs front page?"}},answer:{t:0,b:{t:2,i:[{t:3}],s:"Startups with a subscription plan are eligible for front-page feature on Indie Logs, giving them greater visibility and reach to potential customers and investors."}}},{question:{t:0,b:{t:2,i:[{t:3}],s:"How do I get started with Indie Logs?"}},answer:{t:0,b:{t:2,i:[{t:3}],s:"Simply sign up on our website, add your startup information, and begin sharing your updates. It's designed to be intuitive and user-friendly, so you can start building your startup's story right away."}}},{question:{t:0,b:{t:2,i:[{t:3}],s:"What type of updates should I share on Indie Logs?"}},answer:{t:0,b:{t:2,i:[{t:3}],s:"The floor is yours! Feel free to share milestones, product updates, new features, bug fixes, marketing successes, or even personal stories about how an idea came to life. Indie Logs is your space to document and broadcast every aspect of your startup journey."}}}]},auth:{title:{t:0,b:{t:2,i:[{t:3}],s:"Sign in"}},headline:{t:0,b:{t:2,i:[{t:3}],s:"A home for your work."}},loading:{t:0,b:{t:2,i:[{t:3}],s:"Loading..."}},greeting:{t:0,b:{t:2,i:[{t:3}],s:"Hey there!"}},thankYou:{t:0,b:{t:2,i:[{t:3}],s:"Thank you for being here."}},instruction:{t:0,b:{t:2,i:[{t:3}],s:"Sign in or create your account to start your founder portfolio."}},signInWithGoogle:{t:0,b:{t:2,i:[{t:3}],s:"Sign in with Google"}},or:{t:0,b:{t:2,i:[{t:3}],s:"OR"}},email:{t:0,b:{t:2,i:[{t:3}],s:"âï¸ Email"}},placeholder:{t:0,b:{t:2,i:[{t:3}],s:"tupac.shakur.com"}},sendMagicLink:{t:0,b:{t:2,i:[{t:3}],s:"Sign in with email"}},agreement:{t:0,b:{t:2,i:[{t:3}],s:"When creating a new account, you agree to the"}},termsAndConditions:{t:0,b:{t:2,i:[{t:3}],s:"terms & conditions"}},and:{t:0,b:{t:2,i:[{t:3}],s:"and"}},privacyPolicy:{t:0,b:{t:2,i:[{t:3}],s:"privacy policy"}},loginSuccess:{t:0,b:{t:2,i:[{t:3}],s:"Success! Check your email for the login link!"}},reason1:{t:0,b:{t:2,i:[{t:3}],s:"Earn your customers trust by transparently documenting updates and progress."}},reason2:{t:0,b:{t:2,i:[{t:3}],s:"Share progress about multiple startups in an organized manner."}},reason3:{t:0,b:{t:2,i:[{t:3}],s:"Earn sales by earning trust: Your story is your pitch."}}},landing:{headline:{t:0,b:{t:2,i:[{t:3}],s:"Share your solopreneur journey and build trust with every update."}},asSeenOn:{t:0,b:{t:2,i:[{t:3}],s:"As seen on: "}},trustedBy:{t:0,b:{t:2,i:[{t:3}],s:"Trusted by"}},startups:{t:0,b:{t:2,i:[{t:3}],s:"solopreneurs"}},likeYou:{t:0,b:{t:2,i:[{t:3}],s:"like you"}}},seo:{title:{t:0,b:{t:2,i:[{t:3}],s:"Stand out as a Solopreneur and Build a Personal Brand "}},defaultKeywords:{t:0,b:{t:2,i:[{t:3}],s:"solopreneur, indiehackers, solopreneurship, entrepreneur, startup, bootstrapping, build in public, building in public"}},description:{t:0,b:{t:2,i:[{t:3}],s:"Build your personal brand and earn trust as a solopreneur. Perfect for bootstrapped foun
52ders who build in public."}}},BuyModal:{transformYourInterior:{t:0,b:{t:2,i:[{t:3}],s:"Transform your interior with your personal interior designer ð¸"}},specialOffer:{t:0,b:{t:2,i:[{t:3}],s:"ð Special offer - more than 50% discount! ð"}},veryImportantPre:{t:0,b:{t:2,i:[{t:3}],s:"Very important - make the payment using"}},veryImportantEmail:{t:0,b:{t:2,i:[{t:3}],s:"the same email"}},veryImportantPost:{t:0,b:{t:2,i:[{t:3}],s:"you are using for your IndieLogs account!"}},proceedNotice:{t:0,b:{t:2,i:[{t:3}],s:"By proceeding, you accept the"}},termsOfService:{t:0,b:{t:2,i:[{t:3}],s:"Terms of Service"}},proceedNoticeContinuation:{t:0,b:{t:2,i:[{t:3}],s:"of IndieLogs and waive the 14-day withdrawal right, as digital content is provided immediately. There are no refunds possible after purchase."}}},payment:{title:{t:0,b:{t:2,i:[{t:3}],s:"Choose your plan"}},description:{t:0,b:{t:2,i:[{t:3}],s:"Pick your desired plan and styles, then let our AI image generator bring your profile pictures to life. One-time payment. Limited offer available now."}},optionsTitle:{t:0,b:{t:2,i:[{t:3}],s:"Options"}},nextButton:{t:0,b:{t:2,i:[{t:3}],s:"Purchase"}},small:{name:{t:0,b:{t:2,i:[{t:3}],s:"Small"}},description:{t:0,b:{t:2,i:[{t:3}],s:"Get more than 90 pictures in 24 different styles."}},badge:{t:0,b:{t:2,i:[{t:3}],s:"BASIC"}}},large:{name:{t:0,b:{t:2,i:[{t:3}],s:"Large"}},description:{t:0,b:{t:2,i:[{t:3}],s:"Get more than 192 pictures in 48 different styles."}},badge:{t:0,b:{t:2,i:[{t:3}],s:"POPULAR"}}},all:{name:{t:0,b:{t:2,i:[{t:3}],s:"ALL"}},description:{t:0,b:{t:2,i:[{t:3}],s:"Get more than 410 pictures in more than 104 styles."}},badge:{t:0,b:{t:2,i:[{t:3}],s:"BEST VALUE"}}}},navbar:{app:{t:0,b:{t:2,i:[{t:3}],s:"App"}},examples:{t:0,b:{t:2,i:[{t:3}],s:"Examples"}},gallery:{t:0,b:{t:2,i:[{t:3}],s:"Gallery"}},how:{t:0,b:{t:2,i:[{t:3}],s:"Demo"}},studio:{t:0,b:{t:2,i:[{t:3}],s:"Studio"}},pricing:{t:0,b:{t:2,i:[{t:3}],s:"Pricing"}},faq:{t:0,b:{t:2,i:[{t:3}],s:"FAQ"}},login:{t:0,b:{t:2,i:[{t:3}],s:"Login"}}},layouts:{title:{t:0,b:{t:2,i:[{t:3}],s:"Create profile pictures with AI - "}},description:{t:0,b:{t:2,i:[{t:3}],s:"Create profile pictures that capture your unique essence with our AI image generator, an AI that draws your photos for WhatsApp, Instagram, and more!"}}},blog:{yourProfile:{t:0,b:{t:2,i:[{t:3}],s:"your profile"}},titleOne:{t:0,b:{t:2,i:[{t:3}],s:"Articles about"}},titleTwo:{t:0,b:{t:2,i:[{t:3}],s:"solopreneurship, indiehacking,"}},titleThree:{t:0,b:{t:2,i:[{t:3}],s:"building in public and more"}},subtitle:{t:0,b:{t:2,i:[{t:3}],s:"Learn how to build your startup in public, earn trust, and grow your business."}},description:{t:0,b:{t:2,i:[{t:3}],s:"In-depth insights and perspectives about creating aesthetic avatars with AI, understanding the potential of image generation tools, and more."}},continueReading:{t:0,b:{t:2,i:[{t:3}],s:"Continue Reading"}}},titles:{payment:{t:0,b:{t:2,i:[{t:3}],s:"Payment -"}},dashboard:{t:0,b:{t:2,i:[{t:3}],s:"Dashboard -"}},gallery:{t:0,b:{t:2,i:[{t:3}],s:"Gallery -"}},studio:{t:0,b:{t:2,i:[{t:3}],s:"Studio -"}},trainYourAIModel:{t:0,b:{t:2,i:[{t:3}],s:"Train your AI model -"}}}},hr=["en"],fc={en:[{key:"locale_en_46json_0b63539c",load:()=>Promise.resolve(eR),cache:!0}]},tR=[()=>fe(()=>import("./CYh19onR.js"),[],import.meta.url)],Rs=[{code:"en",name:"�ð¸",iso:"en-US",files:[{path:"/app/i18n/locales/en.json",cache:void 0}]}],fm="@nuxtjs/i18n",nR=!1,rR="i18n_redirected",sR="nuxtI18nInternal",Ld="nuxt-i18n-slp";function Ta(e){return K(e)?e:e!=null?e.toString():"(null)"}function xd(e,t,n){const{defaultLocale:r,strategy:s,routesNameSeparator:i,defaultLocaleRouteNameSuffix:o,differentDomains:a}=n,l=s!=="no_prefix"||a,c=Ta(e)+(l?i+t:"");return t===r&&s==="prefix_and_default"?c+i+o:c}function iR(e,t){const n=[];for(const[r,s]of t.entries()){const i=e.find(o=>o.language?.toLowerCase()===s.toLowerCase());if(i){n.push({code:i.code,score:1-r/t.length});break}}for(const[r,s]of t.entries()){const i=s.split("-")[0].toLowerCase(),o=e.find(a=>a.language?.split("-")[0].toLowerCase()===i);if(o){n.push({code:o.code,score:.999-r/t.length});break}}return n}function oR(e,t){return e.score===t.score?t.code.length-e.code.length:t.score-e.score}function aR(e,t){const n=e.map(s=>({code:s.code,language:s.language||s.code})),r=iR(n,t);return r.length===0?"":(r.length>1&&r.sort(oR),r[0].code)}function dm(e){return new RegExp(`^/(${e.join("|")}
52)(?:/|$)`,"i")}const lR=`(${hr.join("|")})`,dc=dm(hr);function cR(){const{routesNameSeparator:e,defaultLocaleRouteNameSuffix:t}=fn().public.i18n,n=`(?:${e}${t})?`,r=new RegExp(`${e}${lR}${n}$`,"i");return s=>K(s)?s.match(dc)?.[1]??"":s.name?Ta(s.name).match(r)?.[1]??"":s.path?s.path.match(dc)?.[1]??"":""}function uR(e){return e!=null&&"global"in e&&"mode"in e}function fR(e){return e!=null&&!("__composer"in e)&&"locale"in e&&Be(e.locale)}function hm(e){return e!=null&&"__composer"in e}function Vo(e){return uR(e)?e.global:e}function Zs(e){const t=Vo(e);return fR(t)?t:hm(t)?t.__composer:t}function Sa(){return window.location.host}function dR(e,t,n){const r=Sa();if(!r)return r;const s=K(n)?n:n.path,i=e.filter(a=>a.domain?(On(a.domain)?a.domain.replace(/(http|https):\/\//,""):a.domain)===r:ze(a?.domains)?a.domains.includes(r):!1);if(i.length===0)return"";if(i.length===1)return i[0]?.code??"";if(t==="no_prefix")return console.warn(mm("Multiple matching domains found! This is not supported for no_prefix strategy in combination with differentDomains!")),i[0]?.code??"";if(n&&s){const a=s.match(dm(i.map(l=>l.code)))?.at(1);if(a)return i.find(c=>c.code===a)?.code??""}return i.find(a=>a.defaultForDomains?.includes(r)??a.domainDefault)?.code??""}function pm(e){Ie();const t=Sa(),{domainLocales:n}=fn().public.i18n,r=Rs.find(o=>o.code===e),s=n?.[e]?.domain||r?.domain||r?.domains?.find(o=>o===t);if(!s){console.warn(mm("Could not find domain name for locale "+e));return}return On(s,{strict:!0})?s:new URL(window.location.origin).protocol+"//"+s}function hR(e,t){const{multiDomainLocales:n,strategy:r,routesNameSeparator:s,defaultLocaleRouteNameSuffix:i}=e;if(!n||!(r==="prefix_except_default"||r==="prefix_and_default"))return;const o=bt(),a=[s,i].join("");for(const l of o.getRoutes()){const c=Ta(l.name);if(c.endsWith(a)){o.removeRoute(c);continue}const u=c.split(s)[1];u===t&&o.addRoute({...l,path:l.path===`/${u}`?"/":l.path.replace(`/${u}`,"")})}}function pR(e){const{locales:t,domainLocales:n,defaultLocale:r,multiDomainLocales:s}=e,i=Sa();return s?t.some(o=>!K(o)&&o.defaultForDomains!=null)?t.find(a=>!K(a)&&!!a.defaultForDomains?.includes(i))?.code??"":r||"":Rs.find(a=>{const l=K(a)?a:a.code,c=Rs.find(f=>f.code===l);return(n?.[l]?.domain??c?.domain)===i})?.code??r??""}const li=new Map;async function gR(e,t){const n={messages:{}};for(const r of e){const{default:s}=await r(),i=De(s)?await t.runWithContext(()=>s()):s;vs(i,n)}return n}function gm(e,t){if(e===!1)return[];if(ze(e))return e;let n=[];if(K(e))return t.every(s=>s!==e)&&n.push(e),n;const r=[...t,"default"];for(const s of r)s in e&&(n=[...n,...e[s].filter(Boolean)]);return n}const mR=e=>Ea(e)==="[object Module]";async function _R(e,{key:t,load:n},r){let s=null;try{const i=await n().then(o=>mR(o)?o.default:o);De(i)?s=await r.runWithContext(()=>i(e)):(s=i,s!=null&&li&&li.set(t,s))}catch(i){console.error("Failed locale loading: "+i.message)}return s}async function hc(e,t,n,r){const s=t[e];if(s==null)return;const i={};for(const o of s){let a=null;li&&li.has(o.key)&&o.cache?a=li.get(o.key):a=await r.runWithContext(()=>_R(e,o,r)),a!=null&&vs(a,i)}n(e,i)}function Os(e,t){const n=de(t),r=Ee(n)?n?.name:n;if(!(n==null||!r))return Ta(r).split(e.runtimeConfig.public.i18n.routesNameSeparator)[0]}function ou(e,t,n){if(K(t)&&On(t,{acceptRelative:!0}))return t;const r=au(e,t,n);return r==null?"":r.redirectedFrom?.fullPath||r.fullPath}function Aa(e,t,n){return au(e,t,n)??void 0}function yR(e){if(!K(e))return He({},e);if(e[0]==="/"){const{pathname:t,search:n,hash:r}=jl(e);return{path:t,query:qc(n),hash:r}}return{name:e}}const bR=e=>!!e.path&&!e.name;function vR(e,t,n){const r=e.runtimeConfig.public.i18n;if(bR(t)){const i=ER(e,t,n),o=Os(e,i);return o?(i.name=xd(o,n,r),i):(!r.differentDomains&&AR(n,r.defaultLocale,r.strategy)&&(t.path="/"+n+t.path),t.path=(r.trailingSlash?Lo:_i)(t.path,!0),t)}t.name||=Os(e,e.router.currentRoute.value);const s=xd(t.name,n,r);return e.router.hasRoute(s)&&(t.name=s),t}function au(e,t,n){try{const r=n||de(Vo(e.i18n).locale),s=yR(t),i=e.router.resolve(vR(e,s,r));return i.name?i:e.router.resolve(t)}catch(r){if(mn(r,1))return null}}function wR(e,t){if(e.runtimeConfig.public.i18n.experimental.switchLocalePathLinkSSR)return de(e.metaState.value);const n=t.meta||{};return de(n)?.[sR]||{}}function lu(e,t,n){const r=n??e.router.currentRoute.value,s=Os(e,r);if(!s)return"";const i=wR(e,r)[t],o={name:s,params:He({},r.params,i),fullPath:r.fullPath,query:r.query,hash:r.hash,path:r.path,meta:r.meta},a=ou(e,o,t);if(e.runtimeConfig.public.i18n.differentDomains){const l=pm(t);return l&&xs(l,a)||a}return a}function ER(e,t,n){if(e.runtimeConfig.public.i18n.strategy==="no_prefix")return t;if(e.runtimeConfig.public.i18n.strategy!=="prefix")return e.router.resolve(t);const r=t.path.slice(1),s=t.path[0]+n+(r&&"/"+r),i=e.router.options.routes.find(o=>o.path===s);return i==null?t:e.router.resolve(He({},t,i,{path:s}))}function mm(e){return`[${fm}]: ${e}`}function _m(e){return{i18n:e??Ie().$i18n,router:bt(),runtimeConfig:fn(),metaState:Ni("nuxt-i18n-meta",()=>({}))}}async function ym(e,t,n=!1){const{differentDomains:r,skipSettingLocaleOnNavigate:s}=e.$config.public.i18n,i=$i(e.$config.public.i18n),o=de(e.$i18n.locale),a=de(e.$i18n.localeCodes);function l(h=o){i===!1||!i.useCookie||s||e.$i18n.setLocaleCookie(h)}const c=await e.$i18n.onBeforeLanguageSwitch(o,t,n,e);
52if(c&&a.includes(c)){if(o===c)return l(),!1;t=c}if(!t||!n&&r||o===t)return l(),!1;const u=de(e.$i18n.fallbackLocale),f=e.$i18n.mergeLocaleMessage.bind(e.$i18n);if(u){const h=gm(u,[t]);await Promise.all(h.map(d=>hc(d,fc,f,e)))}return await hc(t,fc,f,e),s?!1:(l(t),e._vueI18n.__setLocale(t),await e.$i18n.onLanguageSwitched(o,t),!0)}function TR(e,t,n,r,s){const{strategy:i,defaultLocale:o,differentDomains:a,multiDomainLocales:l}=e.$config.public.i18n,c=$i(),u=IR(e,t,s,r);if(u.locale&&u.from!=null&&hr.includes(u.locale))return u.locale;let f="";a||l?f||=dR(Rs,i,t):i!=="no_prefix"&&(f||=n);const h=(hr.includes(u.locale)||s&&hr.includes(s))&&c&&c.useCookie&&s;return f||=h||r||o||"",f}function bm({to:e,nuxtApp:t,from:n,locale:r,routeLocale:s},i=!1){if(s===r||t.$i18n.strategy==="no_prefix")return"";const o=_m();let a=lu(o,r,e);return i&&!a&&(a=ou(o,e.fullPath,r)),gf(a,e.fullPath)||n&&gf(a,n.fullPath)?"":a}const SR=()=>Ni(fm+":redirect",()=>"");async function vm({nuxt:e,locale:t,route:n,redirectPath:r},s=!1){const{rootRedirect:i,differentDomains:o,multiDomainLocales:a,skipSettingLocaleOnNavigate:l,locales:c,strategy:u}=e.$config.public.i18n;if(n.path==="/"&&i)return K(i)?r="/"+i:(r="/"+i.path,i.statusCode),r=e.$localePath(r,t),Cr(r,{});if(!(l&&(e._vueI18n.__pendingLocale=t,e._vueI18n.__pendingLocalePromise=new Promise(f=>{e._vueI18n.__resolvePendingLocalePromise=()=>f()}),!s))){if(a&&u==="prefix_except_default"){const f=Sa(),h=c.find(p=>{if(!K(p))return p.defaultForDomains?.find(m=>m===f)}),d=K(h)?void 0:h?.code;if(n.path.startsWith(`/${d}`))return Cr(n.path.replace(`/${d}`,""));if(!n.path.startsWith(`/${t}`)&&t!==d){const p=e._vueI18n.__localeFromRoute(n.path);return Cr(p!==""?`/${t+n.path.replace(`/${p}`,"")}`:`/${t+(n.path==="/"?"":n.path)}`)}return r&&n.path!==r?Cr(r):void 0}if(o){const f=SR();f.value&&f.value!==r&&(f.value="",window.location.assign(r))}else if(r)return Cr(r)}}function AR(e,t,n){return n!=="no_prefix"&&!(e===t&&(n==="prefix_and_default"||n==="prefix_except_default"))}function kR(e){const{baseUrl:t,defaultLocale:n,differentDomains:r}=e.$config.public.i18n;if(De(t))return()=>t(e);const s=De(n)?n():n;return()=>{if(r&&s){const i=pm(s);if(i)return i}return t??""}}function RR(e){return ze(e)?e:[e]}function Gr(e,t=_m()){return(...n)=>e(t,...n)}function OR(){const e=navigator.languages;return aR(Rs,e)||void 0}function CR(){const e=$i(),t=e&&e.cookieKey||rR,n=new Date,r={path:"/",readonly:!1,expires:new Date(n.setDate(n.getDate()+365)),sameSite:e&&e.cookieCrossOrigin?"none":"lax",domain:e&&e.cookieDomain||void 0,secure:e&&e.cookieCrossOrigin||e&&e.cookieSecure};return qg(t,r)}function PR(e,t,n){if(t===!1||!t.useCookie)return;const r=e.value??void 0;if(r!=null){if(hr.includes(r))return r;if(n)return e.value=n,n;e.value=void 0}}function IR(e,t,n,r=""){const s=$i();if(!s)return{locale:"",error:"disabled"};const i=e.$i18n.strategy;if(!e._vueI18n.__firstAccess)return{locale:i==="no_prefix"?r:"",error:"first_access_only"};if(i!=="no_prefix"){const c=K(t)?t:t.path;if(s.redirectOn==="root"&&c!=="/")return{locale:"",error:"not_redirect_on_root"};if(s.redirectOn==="no prefix"&&!s.alwaysRedirect&&c.match(dc))return{locale:"",error:"not_redirect_on_no_prefix"}}const a=s.useCookie&&n||void 0;if(a)return{locale:a,from:"cookie"};const l=e.$i18n.getBrowserLocale();return l?{locale:l,from:"navigator_or_header"}:{locale:s.fallbackLocale||"",from:"fallback"}}function $i(e=fn().public.i18n){return e?.detectBrowserLanguage===!1?!1:e?.detectBrowserLanguage}function LR(e){const t=Ie(),n=de(t.$i18n.locale),r=de(t.$i18n.locales).map(a=>K(a)?{code:a}:a),s=r.find(a=>a.code===n)||{code:n},i=xs(de(Zs(t.$i18n).baseUrl),t.$config.app.baseURL),o=t.$config.public.i18n;return i||console.warn("I18n `baseUrl` is required to generate valid SEO tag links."),{dir:e.dir,lang:e.lang,key:e.key,seo:e.seo,locale:n,locales:r,currentDir:s.dir||o.defaultDirection,currentLocale:s,currentLanguage:s.language,baseUrl:i,runtimeI18n:o}}function xR(e,{dir:t=!0,lang:n=!0,seo:r=!0,key:s="hid"}){return NR(e,{dir:t,lang:n,seo:r,key:s})}function NR(e,t){const n={htmlAttrs:{},link:[],meta:[]},r=LR(t);return r.baseUrl==null||(r.dir&&(n.htmlAttrs.dir=r.currentDir),r.lang&&r.currentLanguage&&(n.htmlAttrs.lang=r.currentLanguage),r.seo&&(n.link=n.link.concat(DR(e,r),$R(e,r)),n.meta=n.meta.concat(MR(e,r),UR(r),jR(r)))),n}function DR(e,t){const{defaultLocale:n,strategy:r,differentDomains:s}=t.runtimeI18n,i=[];if(r==="no_prefix"&&!s)return i;const o=new Map;
52for(const c of t.locales){if(!c.language){console.warn("Locale `language` ISO code is required to generate alternate link");continue}const[u,f]=c.language.split("-");u&&f&&(c.isCatchallLocale||!o.has(u))&&o.set(u,c),o.set(c.language,c)}const a=t.runtimeI18n.experimental.alternateLinkCanonicalQueries===!0,l=a?e.router.resolve({query:{}}):void 0;!t.runtimeI18n.experimental.switchLocalePathLinkSSR&&a&&(l.meta=e.router.currentRoute.value.meta);for(const[c,u]of o.entries()){const f=lu(e,u.code,l);if(!f)continue;const h=s&&u.domain?f:xs(t.baseUrl,f),d=ha(h,a?Em(e,t):{});i.push({[t.key]:`i18n-alt-${c}`,rel:"alternate",href:d,hreflang:c}),n&&n===u.code&&i.unshift({[t.key]:"i18n-xd",rel:"alternate",href:d,hreflang:"x-default"})}return i}function wm(e,t){const n=e.router.currentRoute.value,r=Aa(e,He({},n,{path:void 0,name:Os(e,n)}));return r?ha(xs(t.baseUrl,r.path),Em(e,t)):""}function $R(e,t){const n=wm(e,t);return n?[{[t.key]:"i18n-can",rel:"canonical",href:n}]:[]}function Em(e,t){const n=e.router.currentRoute.value,r=Aa(e,He({},n,{path:void 0,name:Os(e,n)})),s=Ee(t.seo)&&t.seo?.canonicalQueries||[],i=r?.query||{},o={};for(const a of s.filter(l=>l in i)){o[a]??=[];for(const l of RR(i[a]))o[a].push(l||"")}return o}function MR(e,t){const n=wm(e,t);return n?[{[t.key]:"i18n-og-url",property:"og:url",content:n}]:[]}function UR(e){return e.currentLanguage?[{[e.key]:"i18n-og",property:"og:locale",content:Tm(e.currentLanguage)}]:[]}function jR(e){return e.locales.filter(n=>n.language&&n.language!==e.currentLanguage).map(n=>({[e.key]:`i18n-og-alt-${n.language}`,property:"og:locale:alternate",content:Tm(n.language)}))}function Tm(e=""){return e.replace(/-/g,"_")}function FR(e,t,n){return{line:e,column:t,offset:n}}function pc(e,t,n){return{start:e,end:t}}const Ce={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14},BR=17;function ka(e,t,n={}){const{domain:r,messages:s,args:i}=n,o=e,a=new SyntaxError(String(o));return a.code=e,t&&(a.location=t),a.domain=r,a}function HR(e){throw e}const pn=" ",VR="\r",_t=` 53`,WR="\u2028",qR="\u2029";function KR(e){const t=e;let n=0,r=1,s=1,i=0;const o=k=>t[k]===VR&&t[k+1]===_t,a=k=>t[k]===_t,l=k=>t[k]===qR,c=k=>t[k]===WR,u=k=>o(k)||a(k)||l(k)||c(k),f=()=>n,h=()=>r,d=()=>s,p=()=>i,m=k=>o(k)||l(k)||c(k)?_t:t[k],v=()=>m(n),b=()=>m(n+i);function y(){return i=0,u(n)&&(r++,s=0),o(n)&&n++,n++,s++,t[n]}function g(){return o(n+i)&&i++,i++,t[n+i]}function _(){n=0,r=1,s=1,i=0}function T(k=0){i=k}function R(){const k=n+i;for(;k!==n;)y();i=0}return{index:f,line:h,column:d,peekOffset:p,charAt:m,currentChar:v,currentPeek:b,next:y,peek:g,reset:_,resetPeek:T,skipToPeek:R}}const Nn=void 0,GR=".",Nd="'",zR="tokenizer";function JR(e,t={}){const n=t.location!==!1,r=KR(e),s=()=>r.index(),i=()=>FR(r.line(),r.column(),r.index()),o=i(),a=s(),l={currentType:13,offset:a,startLoc:o,endLoc:o,lastType:13,lastOffset:a,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:u}=t;function f(w,S,P,...x){const D=c();if(S.column+=P,S.offset+=P,u){const V=n?pc(D.startLoc,S):null,C=ka(w,V,{domain:zR,args:x});u(C)}}function h(w,S,P){w.endLoc=i(),w.currentType=S;const x={type:S};return n&&(x.loc=pc(w.startLoc,w.endLoc)),P!=null&&(x.value=P),x}const d=w=>h(w,13);function p(w,S){return w.currentChar()===S?(w.next(),S):(f(Ce.EXPECTED_TOKEN,i(),0,S),"")}function m(w){let S="";for(;w.currentPeek()===pn||w.currentPeek()===_t;)S+=w.currentPeek(),w.peek();return S}function v(w){const S=m(w);return w.skipToPeek(),S}function b(w){if(w===Nn)return!1;const S=w.charCodeAt(0);return S>=97&&S<=122||S>=65&&S<=90||S===95}function y(w){if(w===Nn)return!1;const S=w.charCodeAt(0);return S>=48&&S<=57}function g(w,S){const{currentType:P}=S;if(P!==2)return!1;m(w);const x=b(w.currentPeek());return w.resetPeek(),x}function _(w,S){const{currentType:P}=S;if(P!==2)return!1;m(w);
53const x=w.currentPeek()==="-"?w.peek():w.currentPeek(),D=y(x);return w.resetPeek(),D}function T(w,S){const{currentType:P}=S;if(P!==2)return!1;m(w);const x=w.currentPeek()===Nd;return w.resetPeek(),x}function R(w,S){const{currentType:P}=S;if(P!==7)return!1;m(w);const x=w.currentPeek()===".";return w.resetPeek(),x}function k(w,S){const{currentType:P}=S;if(P!==8)return!1;m(w);const x=b(w.currentPeek());return w.resetPeek(),x}function j(w,S){const{currentType:P}=S;if(!(P===7||P===11))return!1;m(w);const x=w.currentPeek()===":";return w.resetPeek(),x}function N(w,S){const{currentType:P}=S;if(P!==9)return!1;const x=()=>{const V=w.currentPeek();return V==="{"?b(w.peek()):V==="@"||V==="|"||V===":"||V==="."||V===pn||!V?!1:V===_t?(w.peek(),x()):F(w,!1)},D=x();return w.resetPeek(),D}function H(w){m(w);const S=w.currentPeek()==="|";return w.resetPeek(),S}function F(w,S=!0){const P=(D=!1,V="")=>{const C=w.currentPeek();return C==="{"||C==="@"||!C?D:C==="|"?!(V===pn||V===_t):C===pn?(w.peek(),P(!0,pn)):C===_t?(w.peek(),P(!0,_t)):!0},x=P();return S&&w.resetPeek(),x}function M(w,S){const P=w.currentChar();return P===Nn?Nn:S(P)?(w.next(),P):null}function J(w){const S=w.charCodeAt(0);return S>=97&&S<=122||S>=65&&S<=90||S>=48&&S<=57||S===95||S===36}function ne(w){return M(w,J)}function he(w){const S=w.charCodeAt(0);return S>=97&&S<=122||S>=65&&S<=90||S>=48&&S<=57||S===95||S===36||S===45}function Y(w){return M(w,he)}function ae(w){const S=w.charCodeAt(0);return S>=48&&S<=57}function re(w){return M(w,ae)}function ye(w){const S=w.charCodeAt(0);return S>=48&&S<=57||S>=65&&S<=70||S>=97&&S<=102}function ge(w){return M(w,ye)}function ce(w){let S="",P="";for(;S=re(w);)P+=S;return P}function be(w){let S="";for(;;){const P=w.currentChar();if(P==="{"||P==="}"||P==="@"||P==="|"||!P)break;if(P===pn||P===_t)if(F(w))S+=P,w.next();else{if(H(w))break;S+=P,w.next()}else S+=P,w.next()}return S}function Le(w){v(w);let S="",P="";for(;S=Y(w);)P+=S;const x=w.currentChar();if(x&&x!=="}"&&x!==Nn&&x!==pn&&x!==_t&&x!=="ã"){const D=Q(w);
53return f(Ce.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,P+D),P+D}return w.currentChar()===Nn&&f(Ce.UNTERMINATED_CLOSING_BRACE,i(),0),P}function xt(w){v(w);let S="";return w.currentChar()==="-"?(w.next(),S+=`-${ce(w)}`):S+=ce(w),w.currentChar()===Nn&&f(Ce.UNTERMINATED_CLOSING_BRACE,i(),0),S}function Te(w){return w!==Nd&&w!==_t}function qe(w){v(w),p(w,"'");let S="",P="";for(;S=M(w,Te);)S==="\\"?P+=U(w):P+=S;const x=w.currentChar();return x===_t||x===Nn?(f(Ce.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),x===_t&&(w.next(),p(w,"'")),P):(p(w,"'"),P)}function U(w){const S=w.currentChar();switch(S){case"\\":case"'":return w.next(),`\\${S}`;case"u":return z(w,S,4);case"U":return z(w,S,6);default:return f(Ce.UNKNOWN_ESCAPE_SEQUENCE,i(),0,S),""}}function z(w,S,P){p(w,S);let x="";for(let D=0;D<P;D++){const V=ge(w);if(!V){f(Ce.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${S}${x}${w.currentChar()}`);break}x+=V}return`\\${S}${x}`}function G(w){return w!=="{"&&w!=="}"&&w!==pn&&w!==_t}function Q(w){v(w);let S="",P="";for(;S=M(w,G);)P+=S;return P}function ue(w){let S="",P="";for(;S=ne(w);)P+=S;return P}function Ae(w){const S=P=>{const x=w.currentChar();return x==="{"||x==="@"||x==="|"||x==="("||x===")"||!x||x===pn?P:(P+=x,w.next(),S(P))};return S("")}function E(w){v(w);const S=p(w,"|");return v(w),S}function A(w,S){let P=null;switch(w.currentChar()){case"{":return S.braceNest>=1&&f(Ce.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),w.next(),P=h(S,2,"{"),v(w),S.braceNest++,P;case"}":return S.braceNest>0&&S.currentType===2&&f(Ce.EMPTY_PLACEHOLDER,i(),0),w.next(),P=h(S,3,"}"),S.braceNest--,S.braceNest>0&&v(w),S.inLinked&&S.braceNest===0&&(S.inLinked=!1),P;case"@":return S.braceNest>0&&f(Ce.UNTERMINATED_CLOSING_BRACE,i(),0),P=I(w,S)||d(S),S.braceNest=0,P;default:{let D=!0,V=!0,C=!0;if(H(w))return S.braceNest>0&&f(Ce.UNTERMINATED_CLOSING_BRACE,i(),0),P=h(S,1,E(w)),S.braceNest=0,S.inLinked=!1,P;if(S.braceNest>0&&(S.currentType===4||S.currentType===5||S.currentType===6))return f(Ce.UNTERMINATED_CLOSING_BRACE,i(),0),S.braceNest=0,B(w,S);if(D=g(w,S))return P=h(S,4,Le(w)),v(w),P;if(V=_(w,S))return P=h(S,5,xt(w)),v(w),P;if(C=T(w,S))return P=h(S,6,qe(w)),v(w),P;if(!D&&!V&&!C)return P=h(S,12,Q(w)),f(Ce.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,P.value),v(w),P;break}}return P}function I(w,S){const{currentType:P}=S;let x=null;const D=w.currentChar();switch((P===7||P===8||P===11||P===9)&&(D===_t||D===pn)&&f(Ce.INVALID_LINKED_FORMAT,i(),0),D){case"@":return w.next(),x=h(S,7,"@"),S.inLinked=!0,x;case".":return v(w),w.next(),h(S,8,".");case":":return v(w),w.next(),h(S,9,":");default:return H(w)?(x=h(S,1,E(w)),S.braceNest=0,S.inLinked=!1,x):R(w,S)||j(w,S)?(v(w),I(w,S)):k(w,S)?(v(w),h(S,11,ue(w))):N(w,S)?(v(w),D==="{"?A(w,S)||x:h(S,10,Ae(w))):(P===7&&f(Ce.INVALID_LINKED_FORMAT,i(),0),S.braceNest=0,S.inLinked=!1,B(w,S))}}function B(w,S){let P={type:13};if(S.braceNest>0)return A(w,S)||d(S);if(S.inLinked)return I(w,S)||d(S);switch(w.currentChar()){case"{":return A(w,S)||d(S);case"}":return f(Ce.UNBALANCED_CLOSING_BRACE,i(),0),w.next(),h(S,3,"}");case"@":return I(w,S)||d(S);default:{if(H(w))return P=h(S,1,E(w)),S.braceNest=0,S.inLinked=!1,P;if(F(w))return h(S,0,be(w));break}}return P}function $(){const{currentType:w,offset:S,startLoc:P,endLoc:x}=l;return l.lastType=w,l.lastOffset=S,l.lastStartLoc=P,l.lastEndLoc=x,l.offset=s(),l.startLoc=i(),r.currentChar()===Nn?h(l,13):B(r,l)}return{nextToken:$,currentOffset:s,currentPosition:i,context:c}}const YR="parser",XR=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function QR(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function ZR(e={}){const t=e.location!==!1,{onError:n}=e;function r(b,y,g,_,...T){const R=b.currentPosition();if(R.offset+=_,R.column+=_,n){const k=t?pc(g,R):null,j=ka(y,k,{domain:YR,args:T});n(j)}}function s(b,y,g){const _={type:b};return t&&(_.start=y,_.end=y,_.loc={start:g,end:g}),_}function i(b,y,g,_){t&&(b.end=y,b.loc&&(b.loc.end=g))}function o(b,y){const g=b.context(),_=s(3,g.offset,g.startLoc);return _.value=y,i(_,b.currentOffset(),b.currentPosition()),_}function a(b,y){const g=b.context(),{lastOffset:_,lastStartLoc:T}=g,R=s(5,_,T);return R.index=parseInt(y,10),b.nextToken(),i(R,b.currentOffset(),b.currentPosition()),R}function l(b,y){const g=b.context(),{lastOffset:_,lastStartLoc:T}=g,R=s(4,_,T);return R.key=y,b.nextToken(),i(R,b.currentOffset(),b.currentPosition()),R}function c(b,y){const g=b.context(),{lastOffset:_,lastStartLoc:T}=g,R=s(9,_,T);return R.value=y.replace(XR,QR),b.nextToken(),i(R,b.currentOffset(),b.currentPosition()),R}function u(b){const y=b.nextToken(),g=b.context(),{lastOffset:_,lastStartLoc:T}=g,R=s(8,_,T);return y.type!==11?(r(b,Ce.UNEXPECTED_EMPTY_LINKED_MODIFIER,g.lastStartLoc,0),R.value="",i(R,_,T),{nextConsumeToken:y,node:R}):(y.value==null&&r(b,Ce.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,gn(y)),R.value=y.value||"",i(R,b.currentOffset(),b.currentPosition()),{node:R})}function f(b,y){const g=b.context(),_=s(7,g.offset,g.startLoc);return _.value=y,i(_,b.currentOffset(),b.currentPosition()),_}function h(b){const y=b.context(),g=s(6,y.offset,y.startLoc);let _=b.nextToken();if(_.type===8){const T=u(b);g.modifier=T.node,_=T.nextConsumeToken||b.nextToken()}switch(_.type!==9&&r(b,Ce.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,gn(_)),_=b.nextToken(),_.type===2&&(_=b.nextToken()),_.type){case 10:_.value==null&&r(b,Ce.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,gn(_)),g.key=f(b,_.value||"");break;case 4:_.value==null&&r(b,Ce.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,gn(_)),g.key=l(b,_.value||"");break;case 5:_.value==null&&r(b,Ce.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,gn(_)),g.key=a(b,_.value||"");break;case 6:_.value==null&&r(b,Ce.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,gn(_)),g.key=c(b,_.value||"");break;default:{r(b,Ce.UNEXPECTED_EMPTY_LINKED_KEY,y.lastStartLoc,0);const T=b.context(),R=s(7,T.offset,T.startLoc);return R.value="",i(R,T.offset,T.startLoc),g.key=R,i(g,T.offset,T.startLoc),{nextConsumeToken:_,node:g}}}return i(g,b.currentOffset(),b.currentPosition()),{node:g}}function d(b){const y=b.context(),g=y.currentType===1?b.currentOffset():y.offset,_=y.currentType===1?y.endLoc:y.startLoc,T=s(2,g,_);T.items=[];let R=null;do{const N=R||b.nextToken();switch(R=null,N.type){case 0:N.value==null&&r(b,Ce.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,gn(N)),T.items.push(o(b,N.value||""));break;case 5:N.value==null&&r(b,Ce.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,gn(N)),T.items.push(a(b,N.value||""));break;case 4:N.value==null&&r(b,Ce.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,gn(N)),T.items.push(l(b,N.value||""));break;case 6:N.value==null&&r(b,Ce.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,gn(N)),T.items.push(c(b,N.value||""));break;case 7:{const H=h(b);T.items.push(H.node),R=H.nextConsumeToken||null;break}}}while(y.currentType!==13&&y.currentType!==1);const k=y.currentType===1?y.lastOffset:b.currentOffset(),j=y.currentType===1?y.lastEndLoc:b.currentPosition();return i(T,k,j),T}function p(b,y,g,_){const T=b.context();let R=_.items.length===0;const k=s(1,y,g);k.cases=[],k.cases.push(_);do{const j=d(b);R||(R=j.items.length===0),k.cases.push(j)}while(T.currentType!==13);return R&&r(b,Ce.MUST_HAVE_MESSAGES_IN_PLURAL,g,0),i(k,b.currentOffset(),b.currentPosition()),k}function m(b){const y=b.context(),{offset:g,startLoc:_}=y,T=d(b);return y.currentType===13?T:p(b,g,_,T)}
53function v(b){const y=JR(b,He({},e)),g=y.context(),_=s(0,g.offset,g.startLoc);return t&&_.loc&&(_.loc.source=b),_.body=m(y),e.onCacheKey&&(_.cacheKey=e.onCacheKey(b)),g.currentType!==13&&r(y,Ce.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,b[g.offset]||""),i(_,y.currentOffset(),y.currentPosition()),_}return{parse:v}}function gn(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"â¦":t}function eO(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function Dd(e,t){for(let n=0;n<e.length;n++)cu(e[n],t)}function cu(e,t){switch(e.type){case 1:Dd(e.cases,t),t.helper("plural");break;case 2:Dd(e.items,t);break;case 6:{cu(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function tO(e,t={}){const n=eO(e);n.helper("normalize"),e.body&&cu(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function nO(e){const t=e.body;return t.type===2?$d(t):t.cases.forEach(n=>$d(n)),e}function $d(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=iu(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}function cs(e){switch(e.t=e.type,e.type){case 0:{const t=e;cs(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let r=0;r<n.length;r++)cs(n[r]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let r=0;r<n.length;r++)cs(n[r]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;cs(t.key),t.k=t.key,delete t.key,t.modifier&&(cs(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}}delete e.type}function rO(e,t){const{filename:n,breakLineCode:r,needIndent:s}=t,i=t.location!==!1,o={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:s,indentLevel:0};i&&e.loc&&(o.source=e.loc.source);const a=()=>o;function l(m,v){o.code+=m}function c(m,v=!0){const b=v?r:"";l(s?b+" ".repeat(m):b)}function u(m=!0){const v=++o.indentLevel;m&&c(v)}function f(m=!0){const v=--o.indentLevel;m&&c(v)}function h(){c(o.indentLevel)}return{context:a,push:l,indent:u,deindent:f,newline:h,helper:m=>`_${m}`,needIndent:()=>o.needIndent}}function sO(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Cs(e,t.key),t.modifier?(e.push(", "),Cs(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function iO(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const s=t.items.length;for(let i=0;i<s&&(Cs(e,t.items[i]),i!==s-1);i++)e.push(", ");e.deindent(r()),e.push("])")}function oO(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const s=t.cases.length;for(let i=0;i<s&&(Cs(e,t.cases[i]),i!==s-1);i++)e.push(", ");e.deindent(r()),e.push("])")}}function aO(e,t){t.body?Cs(e,t.body):e.push("null")}function Cs(e,t){const{helper:n}=e;switch(t.type){case 0:aO(e,t);break;case 1:oO(e,t);break;case 2:iO(e,t);break;case 6:sO(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break}}const lO=(e,t={})=>{const n=K(t.mode)?t.mode:"normal",r=K(t.filename)?t.filename:"message.intl";t.sourceMap;const s=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":` 54`,i=t.needIndent?t.needIndent:n!=="arrow",o=e.helpers||[],a=rO(e,{filename:r,breakLineCode:s,needIndent:i});a.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(i),o.length>0&&(a.push(`const { ${iu(o.map(u=>`${u}: _${u}`),", ")} } = ctx`),a.newline()),a.push("return "),Cs(a,e),a.deindent(i),a.push("}"),delete e.helpers;const{code:l,map:c}=a.context();return{ast:e,code:l,map:c?c.toJSON():void 0}};function cO(e,t={}){const n=He({}
54,t),r=!!n.jit,s=!!n.minify,i=n.optimize==null?!0:n.optimize,a=ZR(n).parse(e);return r?(i&&nO(a),s&&cs(a),{ast:a,code:""}):(tO(a,n),lO(a,n))}function uO(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(su().__INTLIFY_PROD_DEVTOOLS__=!1)}function Rn(e){return Ee(e)&&uu(e)===0&&(sn(e,"b")||sn(e,"body"))}const Sm=["b","body"];function fO(e){return br(e,Sm)}const Am=["c","cases"];function dO(e){return br(e,Am,[])}const km=["s","static"];function hO(e){return br(e,km)}const Rm=["i","items"];function pO(e){return br(e,Rm,[])}const Om=["t","type"];function uu(e){return br(e,Om)}const Cm=["v","value"];function co(e,t){const n=br(e,Cm);if(n!=null)return n;throw Ri(t)}const Pm=["m","modifier"];function gO(e){return br(e,Pm)}const Im=["k","key"];function mO(e){const t=br(e,Im);if(t)return t;throw Ri(6)}function br(e,t,n){for(let r=0;r<t.length;r++){const s=t[r];if(sn(e,s)&&e[s]!=null)return e[s]}return n}const Lm=[...Sm,...Am,...km,...Rm,...Im,...Pm,...Cm,...Om];function Ri(e){return new Error(`unhandled node type: ${e}`)}function ul(e){return n=>_O(n,e)}function _O(e,t){const n=fO(t);if(n==null)throw Ri(0);if(uu(n)===1){const i=dO(n);return e.plural(i.reduce((o,a)=>[...o,Md(e,a)],[]))}else return Md(e,n)}function Md(e,t){const n=hO(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=pO(t).reduce((s,i)=>[...s,gc(e,i)],[]);return e.normalize(r)}}function gc(e,t){const n=uu(t);switch(n){case 3:return co(t,n);case 9:return co(t,n);case 4:{const r=t;if(sn(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(sn(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw Ri(n)}case 5:{const r=t;if(sn(r,"i")&&et(r.i))return e.interpolate(e.list(r.i));if(sn(r,"index")&&et(r.index))return e.interpolate(e.list(r.index));throw Ri(n)}case 6:{const r=t,s=gO(r),i=mO(r);return e.linked(gc(e,i),s?gc(e,s):void 0,e.type)}case 7:return co(t,n);case 8:return co(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const yO=e=>e;let uo=xe();function bO(e,t={}){let n=!1;const r=t.onError||HR;return t.onError=s=>{n=!0,r(s)},{...cO(e,t),detectError:n}}function vO(e,t){if(K(e)){Ve(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||yO)(e),s=uo[r];if(s)return s;const{ast:i,detectError:o}=bO(e,{...t,location:!1,jit:!0}),a=ul(i);return o?a:uo[r]=a}else{const n=e.cacheKey;if(n){const r=uo[n];return r||(uo[n]=ul(e))}else return ul(e)}}let Oi=null;function wO(e){Oi=e}function EO(e,t,n){Oi&&Oi.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const TO=SO("function:translate");function SO(e){return t=>Oi&&Oi.emit(e,t)}const Hn={INVALID_ARGUMENT:BR,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},AO=24;function Vn(e){return ka(e,null,void 0)}function fu(e,t){return t.locale!=null?Ud(t.locale):Ud(e.locale)}let fl;function Ud(e){if(K(e))return e;if(De(e)){if(e.resolvedOnce&&fl!=null)return fl;if(e.constructor.name==="Function"){const t=e();if(Qk(t))throw Vn(Hn.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return fl=t}else throw Vn(Hn.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Vn(Hn.NOT_SUPPORT_LOCALE_TYPE)}function kO(e,t,n){return[...new Set([n,...ze(t)?t:Ee(t)?Object.keys(t):K(t)?[t]:[n]])]}function xm(e,t,n){const r=K(n)?n:Wo,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);let i=s.__localeChainCache.get(r);if(!i){i=[];let o=[n];for(;ze(o);)o=jd(i,o,t);const a=ze(t)||!we(t)?t:t.default?t.default:null;o=K(a)?[a]:a,ze(o)&&jd(i,o,!1),s.__localeChainCache.set(r,i)}return i}function jd(e,t,n){let r=!0;for(let s=0;s<t.length&&Ve(r);s++){const i=t[s];K(i)&&(r=RO(e,t[s],n))}return r}function RO(e,t,n){let r;const s=t.split("-");do{const i=s.join("-");r=OO(e,i,n),s.splice(-1,1)}while(s.length&&r===!0);return r}function OO(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const s=t.replace(/!/g,"");e.push(s),(ze(n)||we(n))&&n[s]&&(r=n[s])}return r}const vr=[];vr[0]={w:[0],i:[3,0],"[":[4],o:[7]};vr[1]={w:[1],".":[2],"[":[4],o:[7]};vr[2]={w:[2],i:[3,0],0:[3,0]};vr[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};vr[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};vr[5]={"'":[4,0],o:8,l:[5,0]};vr[6]={'"':[4,0],o:8,l:[6,0]};const CO=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function PO(e){return CO.test(e)}function IO(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function LO(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function xO(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:PO(t)?IO(t):"*"+t}function NO(e){const t=[];let n=-1,r=0,s=0,i,o,a,l,c,u,f;const h=[];h[0]=()=>{o===void 0?o=a:o+=a},h[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},h[2]=()=>{h[0](),s++},h[3]=()=>
54{if(s>0)s--,r=4,h[0]();else{if(s=0,o===void 0||(o=xO(o),o===!1))return!1;h[1]()}};function d(){const p=e[n+1];if(r===5&&p==="'"||r===6&&p==='"')return n++,a="\\"+p,h[0](),!0}for(;r!==null;)if(n++,i=e[n],!(i==="\\"&&d())){if(l=LO(i),f=vr[r],c=f[l]||f.l||8,c===8||(r=c[0],c[1]!==void 0&&(u=h[c[1]],u&&(a=i,u()===!1))))return;if(r===7)return t}}const Fd=new Map;function DO(e,t){return Ee(e)?e[t]:null}function $O(e,t){if(!Ee(e))return null;let n=Fd.get(t);if(n||(n=NO(t),n&&Fd.set(t,n)),!n)return null;const r=n.length;let s=e,i=0;for(;i<r;){const o=n[i];if(Lm.includes(o)&&Rn(s))return null;const a=s[o];if(a===void 0||De(s))return null;s=a,i++}return s}const MO="10.0.8",Ra=-1,Wo="en-US",Bd="",Hd=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function UO(){return{upper:(e,t)=>t==="text"&&K(e)?e.toUpperCase():t==="vnode"&&Ee(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&K(e)?e.toLowerCase():t==="vnode"&&Ee(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&K(e)?Hd(e):t==="vnode"&&Ee(e)&&"__v_isVNode"in e?Hd(e.children):e}}let Nm;function jO(e){Nm=e}let Dm;function FO(e){Dm=e}let $m;function BO(e){$m=e}let Mm=null;const HO=e=>{Mm=e},VO=()=>Mm;let Um=null;const Vd=e=>{Um=e},WO=()=>Um;let Wd=0;function qO(e={}){const t=De(e.onWarn)?e.onWarn:qk,n=K(e.version)?e.version:MO,r=K(e.locale)||De(e.locale)?e.locale:Wo,s=De(r)?Wo:r,i=ze(e.fallbackLocale)||we(e.fallbackLocale)||K(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s,o=we(e.messages)?e.messages:dl(s),a=we(e.datetimeFormats)?e.datetimeFormats:dl(s),l=we(e.numberFormats)?e.numberFormats:dl(s),c=He(xe(),e.modifiers,UO()),u=e.pluralRules||xe(),f=De(e.missing)?e.missing:null,h=Ve(e.missingWarn)||Ho(e.missingWarn)?e.missingWarn:!0,d=Ve(e.fallbackWarn)||Ho(e.fallbackWarn)?e.fallbackWarn:!0,p=!!e.fallbackFormat,m=!!e.unresolving,v=De(e.postTranslation)?e.postTranslation:null,b=we(e.processor)?e.processor:null,y=Ve(e.warnHtmlMessage)?e.warnHtmlMessage:!0,g=!!e.escapeParameter,_=De(e.messageCompiler)?e.messageCompiler:Nm,T=De(e.messageResolver)?e.messageResolver:Dm||DO,R=De(e.localeFallbacker)?e.localeFallbacker:$m||kO,k=Ee(e.fallbackContext)?e.fallbackContext:void 0,j=e,N=Ee(j.__datetimeFormatters)?j.__datetimeFormatters:new Map,H=Ee(j.__numberFormatters)?j.__numberFormatters:new Map,F=Ee(j.__meta)?j.__meta:{};Wd++;const M={version:n,cid:Wd,locale:r,fallbackLocale:i,messages:o,modifiers:c,pluralRules:u,missing:f,missingWarn:h,fallbackWarn:d,fallbackFormat:p,unresolving:m,postTranslation:v,processor:b,warnHtmlMessage:y,escapeParameter:g,messageCompiler:_,messageResolver:T,localeFallbacker:R,fallbackContext:k,onWarn:t,__meta:F};return M.datetimeFormats=a,M.numberFormats=l,M.__datetimeFormatters=N,M.__numberFormatters=H,__INTLIFY_PROD_DEVTOOLS__&&EO(M,n,F),M}const dl=e=>({[e]:xe()});function du(e,t,n,r,s){const{missing:i,onWarn:o}=e;if(i!==null){const a=i(e,n,t,s);return K(a)?a:t}else return t}function Hs(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function KO(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function GO(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(KO(e,t[r]))return!0;return!1}function qd(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:s,onWarn:i,localeFallbacker:o}=e,{__datetimeFormatters:a}=e,[l,c,u,f]=mc(...t),h=Ve(u.missingWarn)?u.missingWarn:e.missingWarn;Ve(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const d=!!u.part,p=fu(e,u),m=o(e,s,p);if(!K(l)||l==="")return new Intl.DateTimeFormat(p,f).format(c);let v={},b,y=null;const g="datetime format";for(let R=0;R<m.length&&(b=m[R],v=n[b]||{},y=v[l],!we(y));R++)du(e,l,b,h,g);if(!we(y)||!K(b))return r?Ra:l;let _=`${b}__${l}`;wa(f)||(_=`${_}__${JSON.stringify(f)}`);let T=a.get(_);return T||(T=new Intl.DateTimeFormat(b,He({},y,f)),a.set(_,T)),d?T.formatToParts(c):T.format(c)}const jm=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function mc(...e){const[t,n,r,s]=e,i=xe();let o=xe(),a;if(K(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw Vn(Hn.INVALID_ISO_DATE_ARGUMENT);const c=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();a=new Date(c);try{a.toISOString()}catch{throw Vn(Hn.INVALID_ISO_DATE_ARGUMENT)}}else if(zk(t)){if(isNaN(t.getTime()))throw Vn(Hn.INVALID_DATE_ARGUMENT);a=t}else if(et(t))a=t;else throw Vn(Hn.INVALID_ARGUMENT);
54return K(n)?i.key=n:we(n)&&Object.keys(n).forEach(l=>{jm.includes(l)?o[l]=n[l]:i[l]=n[l]}),K(r)?i.locale=r:we(r)&&(o=r),we(s)&&(o=s),[i.key||"",a,i,o]}function Kd(e,t,n){const r=e;for(const s in n){const i=`${t}__${s}`;r.__datetimeFormatters.has(i)&&r.__datetimeFormatters.delete(i)}}function Gd(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:s,onWarn:i,localeFallbacker:o}=e,{__numberFormatters:a}=e,[l,c,u,f]=_c(...t),h=Ve(u.missingWarn)?u.missingWarn:e.missingWarn;Ve(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const d=!!u.part,p=fu(e,u),m=o(e,s,p);if(!K(l)||l==="")return new Intl.NumberFormat(p,f).format(c);let v={},b,y=null;const g="number format";for(let R=0;R<m.length&&(b=m[R],v=n[b]||{},y=v[l],!we(y));R++)du(e,l,b,h,g);if(!we(y)||!K(b))return r?Ra:l;let _=`${b}__${l}`;wa(f)||(_=`${_}__${JSON.stringify(f)}`);let T=a.get(_);return T||(T=new Intl.NumberFormat(b,He({},y,f)),a.set(_,T)),d?T.formatToParts(c):T.format(c)}const Fm=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function _c(...e){const[t,n,r,s]=e,i=xe();let o=xe();if(!et(t))throw Vn(Hn.INVALID_ARGUMENT);const a=t;return K(n)?i.key=n:we(n)&&Object.keys(n).forEach(l=>{Fm.includes(l)?o[l]=n[l]:i[l]=n[l]}),K(r)?i.locale=r:we(r)&&(o=r),we(s)&&(o=s),[i.key||"",a,i,o]}function zd(e,t,n){const r=e;for(const s in n){const i=`${t}__${s}`;r.__numberFormatters.has(i)&&r.__numberFormatters.delete(i)}}const zO=e=>e,JO=e=>"",YO="text",XO=e=>e.length===0?"":iu(e),QO=Zk;function Jd(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function ZO(e){const t=et(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(et(e.named.count)||et(e.named.n))?et(e.named.count)?e.named.count:et(e.named.n)?e.named.n:t:t}function eC(e,t){t.count||(t.count=e),t.n||(t.n=e)}function tC(e={}){const t=e.locale,n=ZO(e),r=Ee(e.pluralRules)&&K(t)&&De(e.pluralRules[t])?e.pluralRules[t]:Jd,s=Ee(e.pluralRules)&&K(t)&&De(e.pluralRules[t])?Jd:void 0,i=b=>b[r(n,b.length,s)],o=e.list||[],a=b=>o[b],l=e.named||xe();et(e.pluralIndex)&&eC(n,l);const c=b=>l[b];function u(b,y){const g=De(e.messages)?e.messages(b,!!y):Ee(e.messages)?e.messages[b]:!1;return g||(e.parent?e.parent.message(b):JO)}const f=b=>e.modifiers?e.modifiers[b]:zO,h=we(e.processor)&&De(e.processor.normalize)?e.processor.normalize:XO,d=we(e.processor)&&De(e.processor.interpolate)?e.processor.interpolate:QO,p=we(e.processor)&&K(e.processor.type)?e.processor.type:YO,v={list:a,named:c,plural:i,linked:(b,...y)=>{const[g,_]=y;let T="text",R="";y.length===1?Ee(g)?(R=g.modifier||R,T=g.type||T):K(g)&&(R=g||R):y.length===2&&(K(g)&&(R=g||R),K(_)&&(T=_||T));const k=u(b,!0)(v),j=T==="vnode"&&ze(k)&&R?k[0]:k;return R?f(R)(j,T):j},message:u,type:p,interpolate:d,normalize:h,values:He(xe(),o,l)};return v}const Yd=()=>"",qt=e=>De(e);function Xd(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:s,messageCompiler:i,fallbackLocale:o,messages:a}=e,[l,c]=yc(...t),u=Ve(c.missingWarn)?c.missingWarn:e.missingWarn,f=Ve(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,h=Ve(c.escapeParameter)?c.escapeParameter:e.escapeParameter,d=!!c.resolvedMessage,p=K(c.default)||Ve(c.default)?Ve(c.default)?i?l:()=>l:c.default:n?i?l:()=>l:null,m=n||p!=null&&(K(p)||De(p)),v=fu(e,c);h&&nC(c);let[b,y,g]=d?[l,v,a[v]||xe()]:Bm(e,l,v,o,f,u),_=b,T=l;if(!d&&!(K(_)||Rn(_)||qt(_))&&m&&(_=p,T=_),!d&&(!(K(_)||Rn(_)||qt(_))||!K(y)))return s?Ra:l;let R=!1;const k=()=>{R=!0},j=qt(_)?_:Hm(e,l,y,_,T,k);if(R)return _;const N=iC(e,y,g,c),H=tC(N),F=rC(e,j,H);let M=r?r(F,l):F;if(h&&K(M)&&(M=Yk(M)),__INTLIFY_PROD_DEVTOOLS__){const J={timestamp:Date.now(),key:K(l)?l:qt(_)?_.key:"",locale:y||(qt(_)?_.locale:""),format:K(_)?_:qt(_)?_.source:"",message:M};J.meta=He({},e.__meta,VO()||{}),TO(J)}return M}function nC(e){ze(e.list)?e.list=e.list.map(t=>
54K(t)?Pd(t):t):Ee(e.named)&&Object.keys(e.named).forEach(t=>{K(e.named[t])&&(e.named[t]=Pd(e.named[t]))})}function Bm(e,t,n,r,s,i){const{messages:o,onWarn:a,messageResolver:l,localeFallbacker:c}=e,u=c(e,r,n);let f=xe(),h,d=null;const p="translate";for(let m=0;m<u.length&&(h=u[m],f=o[h]||xe(),(d=l(f,t))===null&&(d=f[t]),!(K(d)||Rn(d)||qt(d)));m++)if(!GO(h,u)){const v=du(e,t,h,i,p);v!==t&&(d=v)}return[d,h,f]}function Hm(e,t,n,r,s,i){const{messageCompiler:o,warnHtmlMessage:a}=e;if(qt(r)){const c=r;return c.locale=c.locale||n,c.key=c.key||t,c}if(o==null){const c=(()=>r);return c.locale=n,c.key=t,c}const l=o(r,sC(e,n,s,r,a,i));return l.locale=n,l.key=t,l.source=r,l}function rC(e,t,n){return t(n)}function yc(...e){const[t,n,r]=e,s=xe();if(!K(t)&&!et(t)&&!qt(t)&&!Rn(t))throw Vn(Hn.INVALID_ARGUMENT);const i=et(t)?String(t):(qt(t),t);return et(n)?s.plural=n:K(n)?s.default=n:we(n)&&!wa(n)?s.named=n:ze(n)&&(s.list=n),et(r)?s.plural=r:K(r)?s.default=r:we(r)&&He(s,r),[i,s]}function sC(e,t,n,r,s,i){return{locale:t,key:n,warnHtmlMessage:s,onError:o=>{throw i&&i(o),o},onCacheKey:o=>Kk(t,n,o)}}function iC(e,t,n,r){const{modifiers:s,pluralRules:i,messageResolver:o,fallbackLocale:a,fallbackWarn:l,missingWarn:c,fallbackContext:u}=e,h={locale:t,modifiers:s,pluralRules:i,messages:(d,p)=>{let m=o(n,d);if(m==null&&(u||p)){const[,,v]=Bm(u||e,d,t,a,l,c);m=o(v,d)}if(K(m)||Rn(m)){let v=!1;const y=Hm(e,d,t,m,d,()=>{v=!0});return v?Yd:y}else return qt(m)?m:Yd}};return e.processor&&(h.processor=e.processor),r.list&&(h.list=r.list),r.named&&(h.named=r.named),et(r.plural)&&(h.pluralIndex=r.plural),h}uO();const oC="10.0.8";function aC(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(su().__INTLIFY_PROD_DEVTOOLS__=!1)}const zt={UNEXPECTED_RETURN_TYPE:AO,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32};function un(e,...t){return ka(e,null,void 0)}const bc=yr("__translateVNode"),vc=yr("__datetimeParts"),wc=yr("__numberParts"),lC=yr("__setPluralRules"),cC=yr("__injectWithOption"),Ec=yr("__dispose");function Ci(e){if(!Ee(e)||Rn(e))return e;for(const t in e)if(sn(e,t))if(!t.includes("."))Ee(e[t])&&Ci(e[t]);else{const n=t.split("."),r=n.length-1;let s=e,i=!1;for(let o=0;o<r;o++){if(n[o]==="__proto__")throw new Error(`unsafe key: ${n[o]}`);if(n[o]in s||(s[n[o]]=xe()),!Ee(s[n[o]])){i=!0;break}s=s[n[o]]}if(i||(Rn(s)?Lm.includes(n[r])||delete e[t]:(s[n[r]]=e[t],delete e[t])),!Rn(s)){const o=s[n[r]];Ee(o)&&Ci(o)}}return e}function Vm(e,t){const{messages:n,__i18n:r,messageResolver:s,flatJson:i}=t,o=we(n)?n:ze(r)?xe():{[e]:xe()};if(ze(r)&&r.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:c}=a;l?(o[l]=o[l]||xe(),vs(c,o[l])):vs(c,o)}else K(a)&&vs(JSON.parse(a),o)}),s==null&&i)for(const a in o)sn(o,a)&&Ci(o[a]);return o}function Wm(e){return e.type}function uC(e,t,n){let r=Ee(t.messages)?t.messages:xe();"__i18nGlobal"in n&&(r=Vm(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const s=Object.keys(r);s.length&&s.forEach(i=>{e.mergeLocaleMessage(i,r[i])});{if(Ee(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}
54if(Ee(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function Qd(e){return We(fr,null,e,0)}const Zd="__INTLIFY_META__",eh=()=>[],fC=()=>!1;let th=0;function nh(e){return((t,n,r,s)=>e(n,r,ln()||void 0,s))}const dC=()=>{const e=ln();let t=null;return e&&(t=Wm(e)[Zd])?{[Zd]:t}:null};function qm(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,s=e.flatJson,i=Bo?kt:Hr;let o=Ve(e.inheritLocale)?e.inheritLocale:!0;const a=i(t&&o?t.locale.value:K(e.locale)?e.locale:Wo),l=i(t&&o?t.fallbackLocale.value:K(e.fallbackLocale)||ze(e.fallbackLocale)||we(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a.value),c=i(Vm(a.value,e)),u=i(we(e.datetimeFormats)?e.datetimeFormats:{[a.value]:{}}),f=i(we(e.numberFormats)?e.numberFormats:{[a.value]:{}});let h=t?t.missingWarn:Ve(e.missingWarn)||Ho(e.missingWarn)?e.missingWarn:!0,d=t?t.fallbackWarn:Ve(e.fallbackWarn)||Ho(e.fallbackWarn)?e.fallbackWarn:!0,p=t?t.fallbackRoot:Ve(e.fallbackRoot)?e.fallbackRoot:!0,m=!!e.fallbackFormat,v=De(e.missing)?e.missing:null,b=De(e.missing)?nh(e.missing):null,y=De(e.postTranslation)?e.postTranslation:null,g=t?t.warnHtmlMessage:Ve(e.warnHtmlMessage)?e.warnHtmlMessage:!0,_=!!e.escapeParameter;const T=t?t.modifiers:we(e.modifiers)?e.modifiers:{};let R=e.pluralRules||t&&t.pluralRules,k;k=(()=>{r&&Vd(null);const C={version:oC,locale:a.value,fallbackLocale:l.value,messages:c.value,modifiers:T,pluralRules:R,missing:b===null?void 0:b,missingWarn:h,fallbackWarn:d,fallbackFormat:m,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:g,escapeParameter:_,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};C.datetimeFormats=u.value,C.numberFormats=f.value,C.__datetimeFormatters=we(k)?k.__datetimeFormatters:void 0,C.__numberFormatters=we(k)?k.__numberFormatters:void 0;const L=qO(C);return r&&Vd(L),L})(),Hs(k,a.value,l.value);function N(){return[a.value,l.value,c.value,u.value,f.value]}const H=ve({get:()=>a.value,set:C=>{a.value=C,k.locale=a.value}}),F=ve({get:()=>l.value,set:C=>{l.value=C,k.fallbackLocale=l.value,Hs(k,a.value,C)}}),M=ve(()=>c.value),J=ve(()=>u.value),ne=ve(()=>f.value);function he(){return De(y)?y:null}function Y(C){y=C,k.postTranslation=C}function ae(){return v}function re(C){C!==null&&(b=nh(C)),v=C,k.missing=b}const ye=(C,L,q,X,pe,_e)=>{N();let Re;try{__INTLIFY_PROD_DEVTOOLS__,r||(k.fallbackContext=t?WO():void 0),Re=C(k)}finally{__INTLIFY_PROD_DEVTOOLS__,r||(k.fallbackContext=void 0)}if(q!=="translate exists"&&et(Re)&&Re===Ra||q==="translate exists"&&!Re){const[je,vt]=L();return t&&p?X(t):pe(je)}else{if(_e(Re))return Re;throw un(zt.UNEXPECTED_RETURN_TYPE)}};function ge(...C){return ye(L=>Reflect.apply(Xd,null,[L,...C]),()=>yc(...C),"translate",L=>Reflect.apply(L.t,L,[...C]),L=>L,L=>K(L))}function ce(...C){const[L,q,X]=C;if(X&&!Ee(X))throw un(zt.INVALID_ARGUMENT);return ge(L,q,He({resolvedMessage:!0},X||{}))}function be(...C){return ye(L=>Reflect.apply(qd,null,[L,...C]),()=>mc(...C),"datetime format",L=>Reflect.apply(L.d,L,[...C]),()=>Bd,L=>K(L))}function Le(...C){return ye(L=>Reflect.apply(Gd,null,[L,...C]),()=>_c(...C),"number format",L=>Reflect.apply(L.n,L,[...C]),()=>Bd,L=>K(L))}function xt(C){return C.map(L=>K(L)||et(L)||Ve(L)?Qd(String(L)):L)}const qe={normalize:xt,interpolate:C=>C,type:"vnode"};function U(...C){return ye(L=>{let q;
54const X=L;try{X.processor=qe,q=Reflect.apply(Xd,null,[X,...C])}finally{X.processor=null}return q},()=>yc(...C),"translate",L=>L[bc](...C),L=>[Qd(L)],L=>ze(L))}function z(...C){return ye(L=>Reflect.apply(Gd,null,[L,...C]),()=>_c(...C),"number format",L=>L[wc](...C),eh,L=>K(L)||ze(L))}function G(...C){return ye(L=>Reflect.apply(qd,null,[L,...C]),()=>mc(...C),"datetime format",L=>L[vc](...C),eh,L=>K(L)||ze(L))}function Q(C){R=C,k.pluralRules=R}function ue(C,L){return ye(()=>{if(!C)return!1;const q=K(L)?L:a.value,X=A(q),pe=k.messageResolver(X,C);return Rn(pe)||qt(pe)||K(pe)},()=>[C],"translate exists",q=>Reflect.apply(q.te,q,[C,L]),fC,q=>Ve(q))}function Ae(C){let L=null;const q=xm(k,l.value,a.value);for(let X=0;X<q.length;X++){const pe=c.value[q[X]]||{},_e=k.messageResolver(pe,C);if(_e!=null){L=_e;break}}return L}function E(C){const L=Ae(C);return L??(t?t.tm(C)||{}:{})}function A(C){return c.value[C]||{}}function I(C,L){if(s){const q={[C]:L};for(const X in q)sn(q,X)&&Ci(q[X]);L=q[C]}c.value[C]=L,k.messages=c.value}function B(C,L){c.value[C]=c.value[C]||{};const q={[C]:L};if(s)for(const X in q)sn(q,X)&&Ci(q[X]);L=q[C],vs(L,c.value[C]),k.messages=c.value}function $(C){return u.value[C]||{}}function w(C,L){u.value[C]=L,k.datetimeFormats=u.value,Kd(k,C,L)}function S(C,L){u.value[C]=He(u.value[C]||{},L),k.datetimeFormats=u.value,Kd(k,C,L)}function P(C){return f.value[C]||{}}function x(C,L){f.value[C]=L,k.numberFormats=f.value,zd(k,C,L)}function D(C,L){f.value[C]=He(f.value[C]||{},L),k.numberFormats=f.value,zd(k,C,L)}th++,t&&Bo&&(Ut(t.locale,C=>{o&&(a.value=C,k.locale=C,Hs(k,a.value,l.value))}),Ut(t.fallbackLocale,C=>{o&&(l.value=C,k.fallbackLocale=C,Hs(k,a.value,l.value))}));const V={id:th,locale:H,fallbackLocale:F,get inheritLocale(){return o},set inheritLocale(C){o=C,C&&t&&(a.value=t.locale.value,l.value=t.fallbackLocale.value,Hs(k,a.value,l.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:M,get modifiers(){return T},get pluralRules(){return R||{}},get isGlobal(){return r},get missingWarn(){return h},set missingWarn(C){h=C,k.missingWarn=h},get fallbackWarn(){return d},set fallbackWarn(C){d=C,k.fallbackWarn=d},get fallbackRoot(){return p},set fallbackRoot(C){p=C},get fallbackFormat(){return m},set fallbackFormat(C){m=C,k.fallbackFormat=m},get warnHtmlMessage(){return g},set warnHtmlMessage(C){g=C,k.warnHtmlMessage=C},get escapeParameter(){return _},set escapeParameter(C){_=C,k.escapeParameter=C},t:ge,getLocaleMessage:A,setLocaleMessage:I,mergeLocaleMessage:B,getPostTranslationHandler:he,setPostTranslationHandler:Y,getMissingHandler:ae,setMissingHandler:re,[lC]:Q};return V.datetimeFormats=J,V.numberFormats=ne,V.rt=ce,V.te=ue,V.tm=E,V.d=be,V.n=Le,V.getDateTimeFormat=$,V.setDateTimeFormat=w,V.mergeDateTimeFormat=S,V.getNumberFormat=P,V.setNumberFormat=x,V.mergeNumberFormat=D,V[cC]=n,V[bc]=U,V[vc]=G,V[wc]=z,V}const hu={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function hC({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,s)=>[...r,...s.type===ht?s.children:[s]],[]):t.reduce((n,r)=>{const s=e[r];return s&&(n[r]=s()),n},xe())}function Km(){return ht}const pC=Yt({name:"i18n-t",props:He({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>et(e)||!isNaN(e)}},hu),setup(e,t){const{slots:n,attrs:r}=t,s=e.i18n||pu({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter(f=>f!=="_"),o=xe();e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=K(e.plural)?+e.plural:e.plural);const a=hC(t,i),l=s[bc](e.keypath,a,o),c=He(xe(),r),u=K(e.tag)||Ee(e.tag)?e.tag:Km();return lt(u,c,l)}}}),rh=pC;function gC(e){return ze(e)&&!K(e[0])}function Gm(e,t,n,r){const{slots:s,attrs:i}=t;return()=>{const o={part:!0};let a=xe();e.locale&&(o.locale=e.locale),K(e.format)?o.key=e.format:Ee(e.format)&&(K(e.format.key)&&(o.key=e.format.key),a=Object.keys(e.format).reduce((h,d)=>n.includes(d)?He(xe(),h,{[d]:e.format[d]}):h,xe()));const l=r(e.value,o,a);let c=[o.key];ze(l)?c=l.map((h,d)=>{const p=s[h.type],m=p?p({[h.type]:h.value,index:d,parts:l}):[h.value];return gC(m)&&(m[0].key=`${h.type}-${d}`),m}):K(l)&&(c=[l]);const u=He(xe(),i),f=K(e.tag)||Ee(e.tag)?e.tag:Km();return lt(f,u,c)}}const mC=Yt({name:"i18n-n",props:He({value:{type:Number,required:!0},format:{type:[String,Object]}},hu),setup(e,t){const n=e.i18n||pu({useScope:e.scope,__useComponent:!0});return Gm(e,t,Fm,(...r)=>n[wc](...r))}}),sh=mC,_C=Yt({name:"i18n-d",props:He({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},hu),setup(e,t){const n=e.i18n||pu({useScope:e.scope,__useComponent:!0});return Gm(e,t,jm,(...r)=>n[vc](...r))}}),ih=_C;function yC(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function bC(e){const t=o=>{const{instance:a,value:l}=o;if(!a||!a.$)throw un(zt.UNEXPECTED_ERROR);const c=yC(e,a.$),u=oh(l);return[Reflect.apply(c.t,c,[...ah(u)]),c]};return{created:(o,a)=>{const[l,c]=t(a);Bo&&e.global===c&&(o.__i18nWatcher=Ut(c.locale,()=>{a.instance&&a.instance.$forceUpdate()})),o.__composer=c,o.textContent=l},unmounted:o=>{Bo&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:a})=>{if(o.__composer){const l=o.__composer,c=oh(a);o.textContent=Reflect.apply(l.t,l,[...ah(c)])}},getSSRProps:o=>{const[a]=t(o);return{textContent:a}}}}function oh(e){if(K(e))return{path:e};if(we(e)){if(!("path"in e))throw un(zt.REQUIRED_VALUE,"path");return e}else throw un(zt.INVALID_VALUE)}function ah(e){const{path:t,locale:n,args:r,choice:s,plural:i}=e,o={},a=r||{};return K(n)&&(o.locale=n),et(s)&&(o.plural=s),et(i)&&(o.plural=i),[t,a,o]}function vC(e,t,...n){const r=we(n[0])?n[0]:{};(!Ve(r.globalInstall)||r.globalInstall)&&([rh.name,"I18nT"].forEach(i=>
54e.component(i,rh)),[sh.name,"I18nN"].forEach(i=>e.component(i,sh)),[ih.name,"I18nD"].forEach(i=>e.component(i,ih))),e.directive("t",bC(t))}const wC=yr("global-vue-i18n");function EC(e={},t){const n=Ve(e.globalInjection)?e.globalInjection:!0,r=new Map,[s,i]=TC(e),o=yr("");function a(f){return r.get(f)||null}function l(f,h){r.set(f,h)}function c(f){r.delete(f)}const u={get mode(){return"composition"},async install(f,...h){if(f.__VUE_I18N_SYMBOL__=o,f.provide(f.__VUE_I18N_SYMBOL__,u),we(h[0])){const m=h[0];u.__composerExtend=m.__composerExtend,u.__vueI18nExtend=m.__vueI18nExtend}let d=null;n&&(d=IC(f,u.global)),vC(f,u,...h);const p=f.unmount;f.unmount=()=>{d&&d(),u.dispose(),p()}},get global(){return i},dispose(){s.stop()},__instances:r,__getInstance:a,__setInstance:l,__deleteInstance:c};return u}function pu(e={}){const t=ln();if(t==null)throw un(zt.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw un(zt.NOT_INSTALLED);const n=SC(t),r=kC(n),s=Wm(t),i=AC(e,s);if(i==="global")return uC(r,e,s),r;if(i==="parent"){let l=RC(n,t,e.__useComponent);return l==null&&(l=r),l}const o=n;let a=o.__getInstance(t);if(a==null){const l=He({},e);"__i18n"in s&&(l.__i18n=s.__i18n),r&&(l.__root=r),a=qm(l),o.__composerExtend&&(a[Ec]=o.__composerExtend(a)),CC(o,t,a),o.__setInstance(t,a)}return a}function TC(e,t,n){const r=Pc(),s=r.run(()=>qm(e));if(s==null)throw un(zt.UNEXPECTED_ERROR);return[r,s]}function SC(e){const t=ct(e.isCE?wC:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw un(e.isCE?zt.NOT_INSTALLED_WITH_PROVIDE:zt.UNEXPECTED_ERROR);return t}function AC(e,t){return wa(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function kC(e){return e.mode==="composition"?e.global:e.global.__composer}function RC(e,t,n=!1){let r=null;const s=t.root;let i=OC(t,n);for(;i!=null;){const o=e;if(e.mode==="composition"&&(r=o.__getInstance(i)),r!=null||s===i)break;i=i.parent}return r}function OC(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function CC(e,t,n){oa(()=>{},t),aa(()=>{const r=n;e.__deleteInstance(t);const s=r[Ec];s&&(s(),delete r[Ec])},t)}const PC=["locale","fallbackLocale","availableLocales"],lh=["t","rt","d","n","tm","te"];function IC(e,t){const n=Object.create(null);return PC.forEach(s=>{const i=Object.getOwnPropertyDescriptor(t,s);if(!i)throw un(zt.UNEXPECTED_ERROR);const o=Be(i.value)?{get(){return i.value.value},set(a){i.value.value=a}}:{get(){return i.get&&i.get()}};Object.defineProperty(n,s,o)}),e.config.globalProperties.$i18n=n,lh.forEach(s=>{const i=Object.getOwnPropertyDescriptor(t,s);if(!i||!i.value)throw un(zt.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${s}`,i)}),()=>{delete e.config.globalProperties.$i18n,lh.forEach(s=>{delete e.config.globalProperties[`$${s}`]})}}aC();jO(vO);FO($O);BO(xm);if(__INTLIFY_PROD_DEVTOOLS__){const e=su();e.__INTLIFY__=!0,wO(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}function LC(){return Gr(Os)}function xC(){return Gr(ou)}function NC(){return Gr(Aa)}function DC(){return Gr(Aa)}function zm(){return Gr(lu)}const $C=ot({name:"i18n:plugin:switch-locale-path-ssr",dependsOn:["i18n:plugin"],setup(e){const t=Ie(e._id);if(t.$config.public.i18n.experimental.switchLocalePathLinkSSR!==!0)return;const n=zm(),r=new RegExp([`<!--${Ld}-\\[(\\w+)\\]-->`,".+?",`<!--/${Ld}-->`].join(""),"g");t.hook("app:rendered",s=>{s.renderResult?.html!=null&&(s.renderResult.html=s.renderResult.html.replaceAll(r,(i,o)=>i.replace(/href="([^"]+)"/,`href="${encodeURI(n(o??""))}"`)))})}}),MC=ot({name:"i18n:plugin:route-locale-detect",dependsOn:["i18n:plugin"],async setup(e){let t,n;const r=Ie(e._id),s=r.$router.currentRoute;async function i(a){let l=TR(r,a,r._vueI18n.__localeFromRoute(a),de(r.$i18n.locale),r.$i18n.getLocaleCookie());if(r._vueI18n.__firstAccess){r._vueI18n.__setLocale(l);const u=gm(de(r._vueI18n.global.fallbackLocale),[l]);await Promise.all(u.map(f=>r.$i18n.loadLocaleMessages(f))),await r.$i18n.loadLocaleMessages(l)}return await r.runWithContext(()=>ym(r,l,r._vueI18n.__firstAccess))&&(l=de(r.$i18n.locale)),l}[t,n]=An(()=>i(s.value)),await t,n(),ug("locale-changing",async(a,l)=>{let c,u;const f=([c,u]=An(()=>r.runWithContext(()=>i(a))),c=await c,u(),c),h=([c,u]=An(()=>r.runWithContext(()=>
54bm({to:a,nuxtApp:r,from:l,locale:f,routeLocale:r._vueI18n.__localeFromRoute(a)},!0))),c=await c,u(),c);return r._vueI18n.__firstAccess=!1,[c,u]=An(()=>r.runWithContext(()=>vm({nuxt:r,redirectPath:h,locale:f,route:a}))),c=await c,u(),c},{global:!0})}});function UC(e,{extendComposer:t,extendComposerInstance:n}){const r=Pc(),s=e.install.bind(e);e.install=(i,...o)=>{const a=He({},o[0]);a.__composerExtend=c=>(n(c,Zs(e)),()=>{}),e.mode==="legacy"&&(a.__vueI18nExtend=c=>(n(c,Zs(c)),()=>{})),Reflect.apply(s,e,[i,a]);const l=Zs(e);if(r.run(()=>{t(l),e.mode==="legacy"&&hm(e.global)&&n(e.global,Zs(e.global))}),e.mode==="composition"&&i.config.globalProperties.$i18n!=null&&n(i.config.globalProperties.$i18n,l),i.unmount){const c=i.unmount.bind(i);i.unmount=()=>{r.stop(),c()}}}}const jC=ot({name:"i18n:plugin",parallel:nR,async setup(e){let t,n;const r=Ie(e._id);Object.defineProperty(e.versions,"nuxtI18n",{get:()=>"9.5.6"});const s=r.$config.public.i18n,i=pR(s);hR(s,i),r.$config.public.i18n.defaultLocale=i;const o={...s,defaultLocale:i,baseUrl:kR(r)},a=([t,n]=An(()=>gR(tR,Ie())),t=await t,n(),t);a.messages||={},a.fallbackLocale??=!1,i&&(a.locale=i);for(const f of hr)a.messages[f]??={};const l=EC(a);r._vueI18n=l,l.__localeFromRoute=cR(),l.__firstAccess=!0,l.__setLocale=f=>{const h=Vo(l);Be(h.locale)?h.locale.value=f:h.locale=f};const c=CR(),u=$i();return UC(l,{extendComposer(f){const h=kt(o.locales);f.locales=ve(()=>h.value);const d=kt(hr);f.localeCodes=ve(()=>d.value);const p=kt(o.baseUrl());f.baseUrl=ve(()=>p.value),Ut(f.locale,()=>p.value=o.baseUrl()),f.strategy=o.strategy,f.localeProperties=ve(()=>Rs.find(m=>m.code===f.locale.value)||{code:f.locale.value}),f.setLocale=async m=>{if(await ym(r,m,l.__firstAccess),f.strategy==="no_prefix"){await f.loadLocaleMessages(m),l.__setLocale(m);return}const v=r.$router.currentRoute.value,b=await r.runWithContext(()=>bm({to:v,nuxtApp:r,locale:m,routeLocale:l.__localeFromRoute(v)}));await r.runWithContext(()=>vm({nuxt:r,redirectPath:b,locale:m,route:v},!0))},f.loadLocaleMessages=async m=>await hc(m,fc,f.mergeLocaleMessage.bind(f),r),f.differentDomains=o.differentDomains,f.defaultLocale=o.defaultLocale,f.getBrowserLocale=()=>OR(),f.getLocaleCookie=()=>PR(c,u,f.defaultLocale),f.setLocaleCookie=m=>{!u||!u.useCookie||(c.value=m)},f.onBeforeLanguageSwitch=(m,v,b,y)=>r.callHook("i18n:beforeLocaleSwitch",{oldLocale:m,newLocale:v,initialSetup:b,context:y}),f.onLanguageSwitched=(m,v)=>r.callHook("i18n:localeSwitched",{oldLocale:m,newLocale:v}),f.finalizePendingLocaleChange=async()=>{l.__pendingLocale&&(l.__setLocale(l.__pendingLocale),l.__resolvePendingLocalePromise?.(),l.__pendingLocale=void 0)},f.waitForPendingLocaleChange=async()=>{l.__pendingLocale&&l.__pendingLocalePromise&&await l.__pendingLocalePromise}},extendComposerInstance(f,h){const d=[["locales",()=>h.locales],["localeCodes",()=>h.localeCodes],["baseUrl",()=>h.baseUrl],["strategy",()=>h.strategy],["localeProperties",()=>h.localeProperties],["setLocale",()=>async p=>Reflect.apply(h.setLocale,h,[p])],["loadLocaleMessages",()=>async p=>Reflect.apply(h.loadLocaleMessages,h,[p])],["differentDomains",()=>h.differentDomains],["defaultLocale",()=>h.defaultLocale],["getBrowserLocale",()=>()=>Reflect.apply(h.getBrowserLocale,h,[])],["getLocaleCookie",()=>()=>Reflect.apply(h.getLocaleCookie,h,[])],["setLocaleCookie",()=>p=>Reflect.apply(h.setLocaleCookie,h,[p])],["onBeforeLanguageSwitch",()=>(p,m,v,b)=>Reflect.apply(h.onBeforeLanguageSwitch,h,[p,m,v,b])],["onLanguageSwitched",()=>(p,m)=>Reflect.apply(h.onLanguageSwitched,h,[p,m])],["finalizePendingLocaleChange",()=>()=>Reflect.apply(h.finalizePendingLocaleChange,h,[])],["waitForPendingLocaleChange",()=>()=>Reflect.apply(h.waitForPendingLocaleChange,h,[])]];for(const[p,m]of d)Object.defineProperty(f,p,{get:m})}}),r.vueApp.use(l),Object.defineProperty(r,"$i18n",{get:()=>Vo(l)}),{provide:{localeHead:Gr(xR),localePath:xC(),localeRoute:NC(),getRouteBaseName:LC(),switchLocalePath:zm(),resolveRoute:Gr(au),localeLocation:DC()}}}}),FC=ot({name:"nuxt:global-components"}),lr={custom:Dn(()=>fe(()=>import("./ByVOdIx_.js"),[],import.meta.url).then(e=>e.default||e)),default:Dn(()=>fe(()=>import("./CEL62vOW.js"),__vite__mapDeps([77,58,10,4,1]),import.meta.url).then(e=>e.default||e)),embed:Dn(()=>fe(()=>import("./CT-NmEM9.js"),[],import.meta.url).then(e=>e.default||e)),indielogs:Dn(()=>fe(()=>import("./CmYXJbif.js"),[],import.meta.url).then(e=>e.default||e)),loggedin:Dn(()=>fe(()=>import("./BE8DZArl.js"),__vite__mapDeps([78,4,1,79]),import.meta.url).then(e=>e.default||e)),"startup-idea":Dn(()=>fe(()=>import("./CvEjZZBI.js"),__vite__mapDeps([80,58,10,4,1]),import.meta.url).then(e=>e.default||e)),tool:Dn(()=>fe(()=>import("./BY-dwC9t.js"),__vite__mapDeps([81,58,10,4,1]),import.meta.url).then(e=>e.default||e))},BC=ot({name:"nuxt:prefetch",setup(e){const t=bt();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{const r=n?.meta?.layout;r&&typeof lr[r]=="function"&&await lr[r]()})}),e.hooks.hook("link:prefetch",n=>{if(On(n))return;const r=t.resolve(n);if(!r)return;const s=r.meta.layout;let i=eu(r.meta.middleware);
54i=i.filter(o=>typeof o=="string");for(const o of i)typeof ec[o]=="function"&&ec[o]();typeof s=="string"&&s in lr&&WT(lr[s])})}}),HC=["i18n:plugin","i18n:plugin:ssg-detect","i18n:plugin:route-locale-detect"],VC=ot({name:"nuxt-site-config:i18n",dependsOn:HC,setup(e){const t=e.$i18n;if(!t)return;const n=Ie().$nuxtSiteConfig,r=fs(t.baseUrl);if(r){const u=n.get({resolveRefs:!0}),f=u.url;if(f&&!f.includes("localhost")){const h=Ss(r,"https://"),d=Ss(f,"https://");h.host!==d.host&&u.env==="production"&&console.error(`[Nuxt Site Config] Your I18n baseUrl \`${h.host}\` doesn't match your site url ${d.host}. This will cause production SEO issues. Either provide a matching baseUrl or remove the site url config.`)}}const s=ve(()=>{const u=fs(t.locales).find(f=>f.code===t.defaultLocale);return u?.language||u?.iso||t.defaultLocale}),i=ve(()=>fs(t.baseUrl)||void 0),o=ve(()=>{const u=fs(t.localeProperties);return u.language?u.language:s.value}),a=ve(()=>t.te("nuxtSiteConfig.description")?t.t("nuxtSiteConfig.description"):void 0),l=ve(()=>t.te("nuxtSiteConfig.name")?t.t("nuxtSiteConfig.name"):void 0);let c;Ut(t.locale,()=>{c&&c(),c=n.push({_priority:-1,_context:"@nuxtjs/i18n",url:i,defaultLocale:s,currentLocale:o,description:a,name:l})},{immediate:!0})}}),WC=()=>{const e=fn().public.supabase,t=e.redirectOptions.saveRedirectToCookie?e.cookiePrefix:e.cookieName,n=qg(`${t}-redirect-path`,{...e.cookieOptions,readonly:!1});return{path:n,pluck:()=>{const r=n.value;return n.value=null,r}}},qC=ot({name:"auth-redirect",setup(){ug("global-auth",e=>{const t=fn().public.supabase,{login:n,callback:r,include:s,exclude:i,cookieRedirect:o,saveRedirectToCookie:a}=t.redirectOptions;if(s&&s.length>0&&!s.some(f=>new RegExp(`^${f.replace(/\*/g,".*")}$`).test(e.path))||[...i??[],n,r].some(u=>new RegExp(`^${u.replace(/\*/g,".*")}$`).test(e.path)))return;if(!cm().value){if(o||a){const u=WC();u.path.value=e.fullPath}return Cr(n)}},{global:!0})}});const{entries:Jm,setPrototypeOf:ch,isFrozen:KC,getPrototypeOf:GC,getOwnPropertyDescriptor:zC}=Object;let{freeze:Rt,seal:Jt,create:Tc}=Object,{apply:Sc,construct:Ac}=typeof Reflect<"u"&&Reflect;Rt||(Rt=function(t){return t});Jt||(Jt=function(t){return t});Sc||(Sc=function(t,n){for(var r=arguments.length,s=new Array(r>2?r-2:0),i=2;i<r;i++)s[i-2]=arguments[i];return t.apply(n,s)});Ac||(Ac=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return new t(...r)});const fo=Ot(Array.prototype.forEach),JC=Ot(Array.prototype.lastIndexOf),uh=Ot(Array.prototype.pop),Vs=Ot(Array.prototype.push),YC=Ot(Array.prototype.splice),_o=Ot(String.prototype.toLowerCase),hl=Ot(String.prototype.toString),pl=Ot(String.prototype.match),Ws=Ot(String.prototype.replace),XC=Ot(String.prototype.indexOf),QC=Ot(String.prototype.trim),Zt=Ot(Object.prototype.hasOwnProperty),wt=Ot(RegExp.prototype.test),qs=ZC(TypeError);function Ot(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return Sc(e,t,r)}}function ZC(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ac(e,n)}}function me(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_o;ch&&ch(e,null);let r=t.length;for(;r--;){let s=t[r];if(typeof s=="string"){const i=n(s);i!==s&&(KC(t)||(t[r]=i),s=i)}e[s]=!0}return e}function eP(e){for(let t=0;t<e.length;t++)Zt(e,t)||(e[t]=null);return e}function _n(e){const t=Tc(null);for(const[n,r]of Jm(e))Zt(e,n)&&(Array.isArray(r)?t[n]=eP(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=_n(r):t[n]=r);return t}function Ks(e,t){for(;e!==null;){const r=zC(e,t);if(r){if(r.get)return Ot(r.get);if(typeof r.value=="function")return Ot(r.value)}e=GC(e)}function n(){return null}return n}const fh=Rt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),gl=Rt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ml=Rt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),tP=Rt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),_l=Rt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),nP=Rt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),dh=Rt(["#text"]),hh=Rt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
54spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),yl=Rt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),ph=Rt(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ho=Rt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),rP=Jt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),sP=Jt(/<%[\w\W]*|[\w\W]*%>/gm),iP=Jt(/\$\{[\w\W]*/gm),oP=Jt(/^data-[\-\w.\u00B7-\uFFFF]+$/),aP=Jt(/^aria-[\-\w]+$/),Ym=Jt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),lP=Jt(/^(?:\w+script|data):/i),cP=Jt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Xm=Jt(/^html$/i),uP=Jt(/^[a-z][.\w]*(-[.\w]+)+$/i);var gh=Object.freeze({__proto__:null,ARIA_ATTR:aP,ATTR_WHITESPACE:cP,CUSTOM_ELEMENT:uP,DATA_ATTR:oP,DOCTYPE_NAME:Xm,ERB_EXPR:sP,IS_ALLOWED_URI:Ym,IS_SCRIPT_OR_DATA:lP,MUSTACHE_EXPR:rP,TMPLIT_EXPR:iP});const Gs={element:1,text:3,progressingInstruction:7,comment:8,document:9},fP=function(){return typeof window>"u"?null:window},dP=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;
vendor: 12,369 bytes, line 54
54const s="data-tt-policy-suffix";n&&n.hasAttribute(s)&&(r=n.getAttribute(s));const i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},mh=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Qm(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fP();const t=se=>Qm(se);if(t.version="3.3.1",t.removed=[],!e||!e.document||e.document.nodeType!==Gs.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const r=n,s=r.currentScript,{DocumentFragment:i,HTMLTemplateElement:o,Node:a,Element:l,NodeFilter:c,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:h,trustedTypes:d}=e,p=l.prototype,m=Ks(p,"cloneNode"),v=Ks(p,"remove"),b=Ks(p,"nextSibling"),y=Ks(p,"childNodes"),g=Ks(p,"parentNode");if(typeof o=="function"){const se=n.createElement("template");se.content&&se.content.ownerDocument&&(n=se.content.ownerDocument)}let _,T="";const{implementation:R,createNodeIterator:k,createDocumentFragment:j,getElementsByTagName:N}=n,{importNode:H}=r;let F=mh();t.isSupported=typeof Jm=="function"&&typeof g=="function"&&R&&R.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:M,ERB_EXPR:J,TMPLIT_EXPR:ne,DATA_ATTR:he,ARIA_ATTR:Y,IS_SCRIPT_OR_DATA:ae,ATTR_WHITESPACE:re,CUSTOM_ELEMENT:ye}=gh;let{IS_ALLOWED_URI:ge}=gh,ce=null;const be=me({},[...fh,...gl,...ml,..._l,...dh]);let Le=null;const xt=me({},[...hh,...yl,...ph,...ho]);let Te=Object.seal(Tc(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),qe=null,U=null;const z=Object.seal(Tc(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let G=!0,Q=!0,ue=!1,Ae=!0,E=!1,A=!0,I=!1,B=!1,$=!1,w=!1,S=!1,P=!1,x=!0,D=!1;const V="user-content-";let C=!0,L=!1,q={},X=null;const pe=me({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let _e=null;const Re=me({},["audio","video","img","source","image","track"]);let je=null;const vt=me({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),at="http://www.w3.org/1998/Math/MathML",dn="http://www.w3.org/2000/svg",Ft="http://www.w3.org/1999/xhtml";let Ye=Ft,Ct=!1,zr=null;const Mi=me({},[at,dn,Ft],hl);let Ui=me({},["mi","mo","mn","ms","mtext"]),ji=me({},["annotation-xml"]);const t_=me({},["title","style","font","a","script"]);let Ds=null;const n_=["application/xhtml+xml","text/html"],r_="text/html";let tt=null,Jr=null;const s_=n.createElement("form"),gu=function(O){return O instanceof RegExp||O instanceof Function},Oa=function(){let O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Jr&&Jr===O)){if((!O||typeof O!="object")&&(O={}),O=_n(O),Ds=n_.indexOf(O.PARSER_MEDIA_TYPE)===-1?r_:O.PARSER_MEDIA_TYPE,tt=Ds==="application/xhtml+xml"?hl:_o,ce=Zt(O,"ALLOWED_TAGS")?me({},O.ALLOWED_TAGS,tt):be,Le=Zt(O,"ALLOWED_ATTR")?me({},O.ALLOWED_ATTR,tt):xt,zr=Zt(O,"ALLOWED_NAMESPACES")?me({},O.ALLOWED_NAMESPACES,hl):Mi,je=Zt(O,"ADD_URI_SAFE_ATTR")?me(_n(vt),O.ADD_URI_SAFE_ATTR,tt):vt,_e=Zt(O,"ADD_DATA_URI_TAGS")?me(_n(Re),O.ADD_DATA_URI_TAGS,tt):Re,X=Zt(O,"FORBID_CONTENTS")?me({},O.FORBID_CONTENTS,tt):pe,qe=Zt(O,"FORBID_TAGS")?me({},O.FORBID_TAGS,tt):_n({}),U=Zt(O,"FORBID_ATTR")?me({},O.FORBID_ATTR,tt):_n({}),q=Zt(O,"USE_PROFILES")?O.USE_PROFILES:!1,G=O.ALLOW_ARIA_ATTR!==!1,Q=O.ALLOW_DATA_ATTR!==!1,ue=O.ALLOW_UNKNOWN_PROTOCOLS||!1,Ae=O.ALLOW_SELF_CLOSE_IN_ATTR!==!1,E=O.SAFE_FOR_TEMPLATES||!1,A=O.SAFE_FOR_XML!==!1,I=O.WHOLE_DOCUMENT||!1,w=O.RETURN_DOM||!1,S=O.RETURN_DOM_FRAGMENT||!1,P=O.RETURN_TRUSTED_TYPE||!1,$=O.FORCE_BODY||!1,x=O.SANITIZE_DOM!==!1,D=O.SANITIZE_NAMED_PROPS||!1,C=O.KEEP_CONTENT!==!1,L=O.IN_PLACE||!1,ge=O.ALLOWED_URI_REGEXP||Ym,Ye=O.NAMESPACE||Ft,Ui=O.MATHML_TEXT_INTEGRATION_POINTS||Ui,ji=O.HTML_INTEGRATION_POINTS||ji,Te=O.CUSTOM_ELEMENT_HANDLING||{},O.CUSTOM_ELEMENT_HANDLING&&gu(O.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Te.tagNameCheck=O.CUSTOM_ELEMENT_HANDLING.tagNameCheck),O.CUSTOM_ELEMENT_HANDLING&&gu(O.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Te.attributeNameCheck=O.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),O.CUSTOM_ELEMENT_HANDLING&&typeof O.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Te.allowCustomizedBuiltInElements=O.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),E&&(Q=!1),S&&(w=!0),q&&(ce=me({},dh),Le=[],q.html===!0&&(me(ce,fh),me(Le,hh)),q.svg===!0&&(me(ce,gl),me(Le,yl),me(Le,ho)),q.svgFilters===!0&&(me(ce,ml),me(Le,yl),me(Le,ho)),q.mathMl===!0&&(me(ce,_l),me(Le,ph),me(Le,ho))),O.ADD_TAGS&&(typeof O.ADD_TAGS=="function"?z.tagCheck=O.ADD_TAGS:(ce===be&&(ce=_n(ce)),me(ce,O.ADD_TAGS,tt))),O.ADD_ATTR&&(typeof O.ADD_ATTR=="function"?z.attributeCheck=O.ADD_ATTR:(Le===xt&&(Le=_n(Le)),me(Le,O.ADD_ATTR,tt))),O.ADD_URI_SAFE_ATTR&&me(je,O.ADD_URI_SAFE_ATTR,tt),O.FORBID_CONTENTS&&(X===pe&&(X=_n(X)),me(X,O.FORBID_CONTENTS,tt)),O.ADD_FORBID_CONTENTS&&(X===pe&&(X=_n(X)),me(X,O.ADD_FORBID_CONTENTS,tt)),C&&(ce["#text"]=!0),I&&me(ce,["html","head","body"]),ce.table&&(me(ce,["tbody"]),delete qe.tbody),O.TRUSTED_TYPES_POLICY){if(typeof O.TRUSTED_TYPES_POLICY.createHTML!="function")throw qs('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof O.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw qs('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');_=O.TRUSTED_TYPES_POLICY,T=_.createHTML("")}else _===void 0&&(_=dP(d,s)),_!==null&&typeof T=="string"&&(T=_.createHTML(""));Rt&&Rt(O),Jr=O}},mu=me({},[...gl,...ml,...tP]),_u=me({},[..._l,...nP]),i_=function(O){let W=g(O);(!W||!W.tagName)&&(W={namespaceURI:Ye,tagName:"template"});const Z=_o(O.tagName),Fe=_o(W.tagName);return zr[O.namespaceURI]?O.namespaceURI===dn?W.namespaceURI===Ft?Z==="svg":W.namespaceURI===at?Z==="svg"&&(Fe==="annotation-xml"||Ui[Fe]):!!mu[Z]:O.namespaceURI===at?W.namespaceURI===Ft?Z==="math":W.namespaceURI===dn?Z==="math"&&ji[Fe]:!!_u[Z]:O.namespaceURI===Ft?W.namespaceURI===dn&&!ji[Fe]||W.namespaceURI===at&&!Ui[Fe]?!1:!_u[Z]&&(t_[Z]||!mu[Z]):!!(Ds==="application/xhtml+xml"&&zr[O.namespaceURI]):!1},hn=function(O){Vs(t.removed,{element:O});try{g(O).removeChild(O)}catch{v(O)}},wr=function(O,W){try{Vs(t.removed,{attribute:W.getAttributeNode(O),from:W})}catch{Vs(t.removed,{attribute:null,from:W})}if(W.removeAttribute(O),O==="is")if(w||S)try{hn(W)}catch{}else try{W.setAttribute(O,"")}catch{}},yu=function(O){let W=null,Z=null;if($)O="<remove></remove>"+O;else{const Xe=pl(O,/^[\r\n\t ]+/);Z=Xe&&Xe[0]}Ds==="application/xhtml+xml"&&Ye===Ft&&(O='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+O+"</body></html>");const Fe=_?_.createHTML(O):O;if(Ye===Ft)try{W=new h().parseFromString(Fe,Ds)}catch{}if(!W||!W.documentElement){W=R.createDocument(Ye,"template",null);try{W.documentElement.innerHTML=Ct?T:Fe}catch{}}const mt=W.body||W.documentElement;return O&&Z&&mt.insertBefore(n.createTextNode(Z),mt.childNodes[0]||null),Ye===Ft?N.call(W,I?"html":"body")[0]:I?W.documentElement:mt},bu=function(O){return k.call(O.ownerDocument||O,O,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Ca=function(O){return O instanceof f&&(typeof O.nodeName!="string"||typeof O.textContent!="string"||typeof O.removeChild!="function"||!(O.attributes instanceof u)||typeof O.removeAttribute!="function"||typeof O.setAttribute!="function"||typeof O.namespaceURI!="string"||typeof O.insertBefore!="function"||typeof O.hasChildNodes!="function")},vu=function(O){return typeof a=="function"&&O instanceof a};function Cn(se,O,W){fo(se,Z=>{Z.call(t,O,W,Jr)})}const wu=function(O){let W=null;if(Cn(F.beforeSanitizeElements,O,null),Ca(O))return hn(O),!0;const Z=tt(O.nodeName);if(Cn(F.uponSanitizeElement,O,{tagName:Z,allowedTags:ce}),A&&O.hasChildNodes()&&!vu(O.firstElementChild)&&wt(/<[/\w!]/g,O.innerHTML)&&wt(/<[/\w!]/g,O.textContent)||O.nodeType===Gs.progressingInstruction||A&&O.nodeType===Gs.comment&&wt(/<[/\w]/g,O.data))return hn(O),!0;if(!(z.tagCheck instanceof Function&&z.tagCheck(Z))&&(!ce[Z]||qe[Z])){if(!qe[Z]&&Tu(Z)&&(Te.tagNameCheck instanceof RegExp&&wt(Te.tagNameCheck,Z)||Te.tagNameCheck instanceof Function&&Te.tagNameCheck(Z)))return!1;if(C&&!X[Z]){const Fe=g(O)||O.parentNode,mt=y(O)||O.childNodes;if(mt&&Fe){const Xe=mt.length;for(let Pt=Xe-1;Pt>=0;--Pt){const Pn=m(mt[Pt],!0);Pn.__removalCount=(O.__removalCount||0)+1,Fe.insertBefore(Pn,b(O))}}}return hn(O),!0}return O instanceof l&&!i_(O)||(Z==="noscript"||Z==="noembed"||Z==="noframes")&&wt(/<\/no(script|embed|frames)/i,O.innerHTML)?(hn(O),!0):(E&&O.nodeType===Gs.text&&(W=O.textContent,fo([M,J,ne],Fe=>{W=Ws(W,Fe," ")}),O.textContent!==W&&(Vs(t.removed,{element:O.cloneNode()}),O.textContent=W)),Cn(F.afterSanitizeElements,O,null),!1)},Eu=function(O,W,Z){if(x&&(W==="id"||W==="name")&&(Z in n||Z in s_))return!1;if(!(Q&&!U[W]&&wt(he,W))){if(!(G&&wt(Y,W))){if(!(z.attributeCheck instanceof Function&&z.attributeCheck(W,O))){if(!Le[W]||U[W]){if(!(Tu(O)&&(Te.tagNameCheck instanceof RegExp&&wt(Te.tagNameCheck,O)||Te.tagNameCheck instanceof Function&&Te.tagNameCheck(O))&&(Te.attributeNameCheck instanceof RegExp&&wt(Te.attributeNameCheck,W)||Te.attributeNameCheck instanceof Function&&Te.attributeNameCheck(W,O))||W==="is"&&Te.allowCustomizedBuiltInElements&&(Te.tagNameCheck instanceof RegExp&&wt(Te.tagNameCheck,Z)||Te.tagNameCheck instanceof Function&&Te.tagNameCheck(Z))))return!1}else if(!je[W]){if(!wt(ge,Ws(Z,re,""))){if(!((W==="src"||W==="xlink:href"||W==="href")&&O!=="script"&&XC(Z,"data:")===0&&_e[O])){if(!(ue&&!wt(ae,Ws(Z,re,"")))){if(Z)return!1}}}}}}}return!0},Tu=function(O){return O!=="annotation-xml"&&pl(O,ye)},Su=function(O){Cn(F.beforeSanitizeAttributes,O,null);const{attributes:W}=O;if(!W||Ca(O))return;const Z={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Le,forceKeepAttr:void 0};let Fe=W.length;for(;Fe--;){const mt=W[Fe],{name:Xe,namespaceURI:Pt,value:Pn}=mt,Yr=tt(Xe),Pa=Pn;let ut=Xe==="value"?Pa:QC(Pa);if(Z.attrName=Yr,Z.attrValue=ut,Z.keepAttr=!0,Z.forceKeepAttr=void 0,Cn(F.uponSanitizeAttribute,O,Z),ut=Z.attrValue,D&&(Yr==="id"||Yr==="name")&&(wr(Xe,O),ut=V+ut),A&&wt(/((--!?|])>)|<\/(style|title|textarea)/i,ut)){wr(Xe,O);continue}if(Yr==="attributename"&&pl(ut,"href")){wr(Xe,O);continue}if(Z.forceKeepAttr)continue;if(!Z.keepAttr){wr(Xe,O);continue}if(!Ae&&wt(/\/>/i,ut)){wr(Xe,O);continue}E&&fo([M,J,ne],ku=>{ut=Ws(ut,ku," ")});const Au=tt(O.nodeName);if(!Eu(Au,Yr,ut)){wr(Xe,O);continue}if(_&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!Pt)switch(d.getAttributeType(Au,Yr)){case"TrustedHTML":{ut=_.createHTML(ut);break}case"TrustedScriptURL":{ut=_.createScriptURL(ut);break}}if(ut!==Pa)try{Pt?O.setAttributeNS(Pt,Xe,ut):O.setAttribute(Xe,ut),Ca(O)?hn(O):uh(t.removed)}catch{wr(Xe,O)}}Cn(F.afterSanitizeAttributes,O,null)},o_=function se(O){let W=null;const Z=bu(O);for(Cn(F.beforeSanitizeShadowDOM,O,null);W=Z.nextNode();)Cn(F.uponSanitizeShadowNode,W,null),wu(W),Su(W),W.content instanceof i&&se(W.content);Cn(F.afterSanitizeShadowDOM,O,null)};return t.sanitize=function(se){let O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},W=null,Z=null,Fe=null,mt=null;if(Ct=!se,Ct&&(se="<!-->"),typeof se!="string"&&!vu(se))if(typeof se.toString=="function"){if(se=se.toString(),typeof se!="string")throw qs("dirty is not a string, aborting")}else throw qs("toString is not a function");if(!t.isSupported)return se;if(B||Oa(O),t.removed=[],typeof se=="string"&&(L=!1),L){if(se.nodeName){const Pn=tt(se.nodeName);if(!ce[Pn]||qe[Pn])throw qs("root node is forbidden and cannot be sanitized in-place")}}else if(se instanceof a)W=yu("<!---->"),Z=W.ownerDocument.importNode(se,!0),Z.nodeType===Gs.element&&Z.nodeName==="BODY"||Z.nodeName==="HTML"?W=Z:W.a
54ppendChild(Z);else{if(!w&&!E&&!I&&se.indexOf("<")===-1)return _&&P?_.createHTML(se):se;if(W=yu(se),!W)return w?null:P?T:""}W&&$&&hn(W.firstChild);const Xe=bu(L?se:W);for(;Fe=Xe.nextNode();)wu(Fe),Su(Fe),Fe.content instanceof i&&o_(Fe.content);if(L)return se;if(w){if(S)for(mt=j.call(W.ownerDocument);W.firstChild;)mt.appendChild(W.firstChild);else mt=W;return(Le.shadowroot||Le.shadowrootmode)&&(mt=H.call(r,mt,!0)),mt}let Pt=I?W.outerHTML:W.innerHTML;return I&&ce["!doctype"]&&W.ownerDocument&&W.ownerDocument.doctype&&W.ownerDocument.doctype.name&&wt(Xm,W.ownerDocument.doctype.name)&&(Pt="<!DOCTYPE "+W.ownerDocument.doctype.name+`> 55`+Pt),E&&fo([M,J,ne],Pn=>{Pt=Ws(Pt,Pn," ")}),_&&P?_.createHTML(Pt):Pt},t.setConfig=function(){let se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Oa(se),B=!0},t.clearConfig=function(){Jr=null,B=!1},t.isValidAttribute=function(se,O,W){Jr||Oa({});const Z=tt(se),Fe=tt(O);return Eu(Z,Fe,W)},t.addHook=function(se,O){typeof O=="function"&&Vs(F[se],O)},t.removeHook=function(se,O){if(O!==void 0){const W=JC(F[se],O);return W===-1?void 0:YC(F[se],W,1)[0]}return uh(F[se])},t.removeHooks=function(se){F[se]=[]},t.removeAllHooks=function(){F=mh()},t}var hP=Qm();const pP=["p","br","strong","b","em","i","u","s","code","pre","blockquote","h2","h3","h4","ul","ol","li","a","img","video","source","iframe"],gP={a:["href","target","rel"],img:["src","alt","width","height"],video:["src","poster","controls","playsinline","preload","muted","loop"],source:["src","type"],iframe:["src","title","width","height","allow","allowfullscreen","loading","referrerpolicy"]},mP=Array.from(new Set(Object.values(gP).flat())),_P=new Set(["www.youtube.com","youtube.com","www.youtube-nocookie.com","player.vimeo.com"]),yP=/^(?:(?:https?):|[^a-z]|[a-z+.-]+(?:[^a-z+.-:]|$))/i;function bP(e){try{const t=new URL(e);return t.protocol==="https:"&&_P.has(t.hostname.toLowerCase())}catch{return!1}}function vP(e){const t=hP.sanitize(String(e??""),{ALLOWED_TAGS:pP,ALLOWED_ATTR:mP,ALLOWED_URI_REGEXP:yP}),n=document.createElement("div");n.innerHTML=t;for(const r of n.querySelectorAll("a"))r.setAttribute("target","_blank"),r.setAttribute("rel","noopener noreferrer nofollow");for(const r of n.querySelectorAll("iframe")){if(!bP(r.getAttribute("src"))){r.remove();continue}r.setAttribute("loading","lazy"),r.setAttribute("referrerpolicy","strict-origin-when-cross-origin")}return n.innerHTML.trim()}const wP=ot(()=>({provide:{sanitizeLogHtml:vP}})),EP=ot(e=>{const t=fn();let n,r=!1,s=document.cookie.includes("user-cookie-decision=declined");const i=[],o={capture(c,u={}){s||!t.public.posthogPublicKey||(n?n.capture(c,u):i.length<50&&i.push([c,u]))},opt_out_capturing(){s=!0,i.length=0,n?.opt_out_capturing()},opt_in_capturing(){s=!1,n?n.opt_in_capturing():a()}};async function a(){if(!(!t.public.posthogPublicKey||s||n||r)){r=!0;try{const{default:c}=await fe(async()=>{const{default:u}=await import("./V11-Nb0s.js");return{default:u}},[],import.meta.url);if(s)return;n=c.init(t.public.posthogPublicKey,{api_host:t.public.posthogHost,capture_pageview:!1,autocapture:!1,disable_session_recording:!0});for(const[u,f]of i.splice(0))n?.capture(u,f)}catch{i.length=0}finally{r=!1}}}e.hook("app:mounted",()=>{"requestIdleCallback"in window?window.requestIdleCallback(a,{timeout:5e3}):window.setTimeout(a,2500)});const l=bt();return l.afterEach(c=>{o.capture("$pageview",{$current_url:window.location.origin+c.path})}),o.capture("$pageview",{$current_url:window.location.origin+l.currentRoute.value.path}),{provide:{posthog:()=>o}}}),TP=ot({name:"i18n:plugin:ssg-detect",dependsOn:["i18n:plugin","i18n:plugin:route-locale-detect"],enforce:"post",setup(e){Ie(e._id)}}),SP=[R0,L0,LT,JT,Fk,Bk,Hk,Vk,Wk,$C,MC,jC,FC,BC,VC,qC,wP,EP,TP],Zm=(e="RouteProvider")=>Yt({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,s={};for(const i in t.route)Object.defineProperty(s,i,{get:()=>n===t.renderKey?t.route[i]:r[i],enumerable:!0});return ur(Kr,Tn(s)),()=>t.vnode?lt(t.vnode,{ref:t.vnodeRef}):t.vnode}}),AP=Zm(),_h=new WeakMap,kP=Yt({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 s=Ie(),i=kt(),o=ct(Kr,null);let a;r({pageRef:i});const l=ct(cg,null);let c;const u=s.deferHydration();let f=!1,h=0;if(s.isHydrating){const p=s.hooks.hookOnce("app:error",u);bt().beforeEach(p)}e.pageKey&&Ut(()=>e.pageKey,(p,m)=>{p!==m&&s.callHook("page:loading:start")});let d=!1;{const p=bt().beforeResolve(()=>{d=!1});xi(()=>{p(),u()})}return()=>lt(Bg,{name:e.name,route:e.route,...t},{default:p=>{const m=OP(o,p.route,p.Component),v=o&&o.matched.length===p.route.matched.length;if(!p.Component){if(c&&!v)return c;
55u();return}if(c&&l&&!l.isCurrent(p.route))return c;if(m&&o&&(!l||l?.isCurrent(o)))return v||c?c:null;const b=Zl(p,e.pageKey),y=CP(o,p.route,p.Component);!s.isHydrating&&a===b&&!y&&gr(()=>{d||(d=!0,s.callHook("page:loading:end"))}),f&&a!==b&&h++,a=b;const g=!!(e.transition??p.route.meta.pageTransition??bf),_=g&&RP([e.transition,p.route.meta.pageTransition,bf,{onAfterLeave(){delete s._runningTransition,s.callHook("page:transition:finish",p.Component)}}]),T=e.keepalive??p.route.meta.keepalive??lw;return c=Vg(g&&_,HE(T,lt(Wc,{key:h,suspensible:!0,onPending:()=>{f=!0,g&&(s._runningTransition=!0),s.callHook("page:start",p.Component)},onResolve:async()=>{f=!1;try{await gr(),s._route.sync?.(),await s.callHook("page:finish",p.Component),delete s._runningTransition,!d&&!y&&(d=!0,await s.callHook("page:loading:end"))}finally{u()}}},{default:()=>{const R={key:b||void 0,vnode:n.default?PP(n.default,p):p.Component,route:p.route,renderKey:b||void 0,trackRootNodes:g,vnodeRef:i};if(!T)return lt(AP,R);const k=p.Component.type,j=k;let N=_h.get(j);return N||(N=Zm(k.name||k.__name),_h.set(j,N)),lt(N,R)}}))).default(),c}})}});function RP(e){const t=[];for(const n of e)n&&t.push({...n,onAfterLeave:n.onAfterLeave?eu(n.onAfterLeave):void 0});return ag(...t)}function OP(e,t,n){if(!e)return!1;const r=t.matched.findIndex(s=>s.components?.default===n?.type);return!r||r===-1?!1:t.matched.slice(0,r).some((s,i)=>s.components?.default!==e.matched[i]?.components?.default)||n&&Zl({route:t,Component:n})!==Zl({route:e,Component:n})}function CP(e,t,n){return e?t.matched.findIndex(s=>s.components?.default===n?.type)<t.matched.length-1:!1}function PP(e,t){const n=e(t);return n.length===1?lt(n[0]):lt(ht,void 0,n)}const e_=Ag,IP=Yt({name:"LayoutLoader",inheritAttrs:!1,props:{name:String,layoutProps:Object},setup(e,t){return()=>
55lt(lr[e.name],e.layoutProps,t.slots)}}),LP={name:{type:[String,Boolean,Object],default:null},fallback:{type:[String,Object],default:null}},xP=Yt({name:"NuxtLayout",inheritAttrs:!1,props:LP,setup(e,t){const n=Ie(),r=ct(Kr),i=!r||r===pa()?Hg():r,o=ve(()=>{let u=de(e.name)??i?.meta.layout??e_(i?.path).appLayout??"default";return u&&!(u in lr)&&e.fallback&&(u=de(e.fallback)),u}),a=Hr();t.expose({layoutRef:a});const l=n.deferHydration();if(n.isHydrating){const u=n.hooks.hookOnce("app:error",l);bt().beforeEach(u)}let c;return()=>{const u=o.value&&o.value in lr,f=i?.meta.layoutTransition??aw,h=c;return c=o.value,Vg(u&&f,{default:()=>lt(Wc,{suspensible:!0,onResolve:()=>{gr(l)}},{default:()=>lt(NP,{layoutProps:jp(t.attrs,i.meta.layoutProps??{},{ref:a}),key:o.value||void 0,name:o.value,shouldProvide:!e.name,isRenderingNewLayout:d=>d!==h&&d===o.value,hasTransition:!!f},t.slots)})}).default()}}}),NP=Yt({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&&ur(cg,{isCurrent:i=>n===!1||n===(i.meta.layout??e_(i.path).appLayout??"default")});const r=ct(Kr);if(r&&r===pa()){const i=Hg(),o={};for(const a in i){const l=a;Object.defineProperty(o,l,{enumerable:!0,get:()=>e.isRenderingNewLayout(e.name)?i[l]:r[l]})}ur(Kr,Tn(o))}return()=>!n||typeof n=="string"&&!(n in lr)?t.slots.default?.():lt(IP,{key:n,layoutProps:e.layoutProps,name:n},t.slots)}}),oI="FD Digital",aI="IndieLogs",lI="Indie",cI="Logs",uI="indielogs.com",DP="IndieLogs helps indie founders showcase startups, publish progress updates, and grow in public with founder profiles, startup journals, and free startup tools.",fI="https://www.indielogs.com/logo.png",us="https://www.indielogs.com",bl="Indie Logs",yh="https://www.indielogs.com/og_image.png",dI="https://www.indielogs.com/og-validator.png";function hI(e){return us+e}const pI="indielogs",gI="/app",mI="https://www.indielogs.com/confirm",$P="/img/404.png",_I=e=>{e.target.src=$P},MP="en",bh=[{code:"en",name:"�ð¸",iso:"en-US",files:["en.json"]}],yI="16 September 2023",bI="https://app.termly.io/document/privacy-policy/abe6079e-4fa1-4be2-91ca-c46ef800c5ca",vI="https://app.termly.io/document/terms-of-service/b6546b52-e1a4-44df-8baf-ed25547a3549",wI=["lifetime","monthly","yearly","unpaid","cancelled","past_due"],UP=Yt({__name:"app",setup(e){const t=pa(),n=d=>{if(!d)return"/";const p=d.split("?")[0].split("#")[0];return p==="/"?"/":p.endsWith("/")?p.slice(0,-1):p},r=d=>d==="/"?"IndieLogs for Indie Founders":d.split("/").filter(Boolean).map(m=>decodeURIComponent(m).replace(/[-_]+/g," ").replace(/\b\w/g,v=>v.toUpperCase())).join(" ⢠"),s=(d,p)=>{if(!d)return"";const m=d.replace(/\s+/g," ").trim();return m.length<=p?m:`${m.slice(0,p-1).trim()}â¦`},i=ve(()=>n(t.path)),o=ve(()=>`${us}${i.value}`),a=ve(()=>{const d=[...bh].sort((m,v)=>v.code.length-m.code.length),p=i.value;for(const m of d){const v=`/${m.code}`;if(p===v)return"/";if(p.startsWith(`${v}/`))return p.slice(v.length)}return p}),l=ve(()=>s(r(i.value),60)),c=ve(()=>{if(i.value==="/")return s(DP,160);const d=r(i.value).replace(` | ${bl}`,"");return s(`Explore ${d} on IndieLogs. Track startup progress, discover founders building in public, and access practical resources to launch and grow.`,160)}),u=ve(()=>bh.map(d=>({code:d.code,iso:d.iso||d.code}))),f=ve(()=>{const d=u.value.filter(m=>!!m.code).map(m=>{const v=m.code===MP?a.value:`/${m.code}${a.value==="/"?"":a.value}`;return{rel:"alternate",hreflang:m.iso,href:`${us}${n(v)}`}}),p=a.value;return d.push({rel:"alternate",hreflang:"x-default",href:`${us}${n(p)}`}),d}),h=ve(()=>{const d=i.value.split("/").filter(Boolean),p=[{"@type":"ListItem",position:1,name:"Home",item:us}];let m="";return d.forEach((v,b)=>{m+=`/${v}`,p.push({"@type":"ListItem",position:b+2,name:decodeURIComponent(v).replace(/[-_]+/g," ").replace(/\b\w/g,y=>y.toUpperCase()),item:`${us}${m}`})}),{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:p}});return b0({title:()=>l.value,description:()=>c.value,ogTitle:()=>l.value,ogDescription:()=>c.value,ogType:"website",ogUrl:()=>o.value,ogImage:yh,twitterCard:"summary_large_image",twitterTitle:()=>l.value,twitterDescription:()=>c.value,twitterImage:yh}),y0(()=>({titleTemplate:d=>d?/indie\s*logs\s*$/i.test(d)?d:`${d} | ${bl}`:bl,link:[{key:"canonical",rel:"canonical",href:o.value},...f.value],script:[{key:"breadcrumbs-jsonld",type:"application/ld+json",children:JSON.stringify(h.value)}]})),(d,p)=>{const m=kP,v=xP;return Wt(),En(v,null,{default:Mc(()=>[We(m)]),_:1})}}}),jP={__name:"nuxt-error-page",props:{error:Object},setup(e){const n=e.error,r=Number(n.statusCode||500),s=r===404,i=n.statusMessage??(s?"Page Not Found":"Internal Server Error"),o=n.message||n.toString(),a=void 0,u=s?Dn(()=>fe(()=>import("./Vug-K3JR.js"),__vite__mapDeps([82,4,1,83]),import.meta.url)):Dn(()=>fe(()=>import("./r39Jw2be.js"),__vite__mapDeps([84,1,85]),import.meta.url));return(f,h)=>(Wt(),En(de(u),m_(Mp({status:de(r),statusText:de(i),statusCode:de(r),statusMessage:de(i),description:de(o),stack:de(a)})),null,16))}},FP={key:0},vh={__name:"nuxt-root",setup(e){const t=()=>null,n=Ie(),r=n.deferHydration();if(n.isHydrating){const c=n.hooks.hookOnce("app:error",r);bt().beforeEach(c)}const s=!1;ur(Kr,pa()),n.hooks.callHookWith(c=>c.map(u=>u()),"vue:setup");const i=ga(),o=!1,a=/bot\b|chrome-lighthouse|facebookexternalhit|google\b/i;up((c,u,f)=>{if(n.hooks.callHook("vue:error",c,u,f).catch(h=>console.error("[nuxt] Error in `vue:error` hook",h)),a.test(navigator.userAgent))return n.hooks.callHook("app:error",c),console.error(`[nuxt] Not rendering error page for bot with user agent \`${navigator.userAgent}\`:`,c),!1;if(dg(c)&&(c.fatal||c.unhandled))return n.runWithContext(()=>Pr(c)),!1});const l=!1;return(c,u)=>(Wt(),En(Wc,{onResolve:de(r)},{default:Mc(()=>[de(o)?(Wt(),sb("div",FP)):de(i)?(Wt(),En(de(jP),{key:1,error:de(i)},null,8,["error"])):de(l)?(Wt(),En(de(t),{key:2,context:de(l)},null,8,["context"])):de(s)?(Wt(),En(Ry(de(s)),{key:3})):(Wt(),En(de(UP),{key:4}))]),_:1},8,["onResolve"]))}};let wh;{let e;wh=async function(){if(e)return e;const r=!!(window.__NUXT__?.serverRendered??document.getElementById("__NUXT_DATA__")?.dataset.ssr==="true")?Qb(vh):Xb(vh),s=hw({vueApp:r});async function i(o){await s.callHook("app:error",o),s.payload.error||=Br(o)}r.config.errorHandler=i,s.hook("app:suspense:resolve",()=>{r.config.errorHandler===i&&(r.config.errorHandler=void 0)});try{await mw(s,SP)}catch(o){i(o)}try{await s.hooks.callHook("app:created",r),await s.hooks.callHook("app:beforeMount",r),r.mount(uw),await s.hooks.callHook("app:mounted",r),await gr()}catch(o){i(o)}return r},e=wh().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{aa as $,QP as A,HP as B,JP as C,Be as D,mI as E,ht as F,fI as G,lI as H,cI as I,qP as J,Ut as K,xi as L,ZP as M,Qo as N,oa as O,bI as P,wI as Q,XP as R,Br as S,vI as T,ng as U,uI as V,yI as W,aI as X,ty as Y,_I as Z,fe as _,$p as a,Jf as a0,_r as a1,rI as a2,fs as a3,nI as a4,Ey as a5,ct as a6,vl as a7,ln as a8,Zo as a9,dI as aA,YP as aB,wb as aC,VP as aD,Ry as aE,hP as aF,F_ as aG,W_ as aH,Xo as aI,BP as aJ,Hr as aa,gr as ab,Gh as ac,Al as ad,Yt as ae,tu as af,Yf as ag,iI as ah,lt as ai,WP as aj,qc as ak,Sw as al,Tw as am,qT as an,tI as ao,xs as ap,On as aq,fn as ar,Lo as as,_i as at,KP as au,oI as av,sI as aw,An as ax,hI as ay,pI as az,We as b,sb as c,Up as d,b0 as e,jk as f,GP as g,ve as h,En as i,ob as j,de as k,Dn as l,zP as m,Cr as n,Wt as o,yh as p,us as q,kt as r,pu as s,w_ as t,y0 as u,bt as v,Mc as w,pa as x,gI as y,Ie as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.