nuxt-email-renderer 0.0.12 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/200.html +1 -1
- package/dist/client/404.html +1 -1
- package/dist/client/_nuxt/{Bnel3IPA.js → B25Tu66H.js} +1 -1
- package/dist/client/_nuxt/DxtrUEuP.js +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/6e6b81db-0775-4162-baf6-2536e8683f82.json +1 -0
- package/dist/client/index.html +1 -1
- package/dist/module.json +1 -1
- package/package.json +1 -1
- package/dist/client/_nuxt/builds/meta/48207fae-1a15-4153-b52c-c5d209484774.json +0 -1
package/dist/client/200.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__nuxt-email-renderer/_nuxt/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__nuxt-email-renderer/_nuxt/B25Tu66H.js"}}</script><link rel="stylesheet" href="/__nuxt-email-renderer/_nuxt/entry.PhmAKarW.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__nuxt-email-renderer/_nuxt/B25Tu66H.js"><link rel="prefetch" as="style" crossorigin href="/__nuxt-email-renderer/_nuxt/error-404.BHOIm0B1.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt-email-renderer/_nuxt/Dp9LgCK2.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-email-renderer/_nuxt/n57rOy2v.js"><link rel="prefetch" as="style" crossorigin href="/__nuxt-email-renderer/_nuxt/error-500.CqX_nDZ5.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt-email-renderer/_nuxt/DZaor8iy.js"><script type="module" src="/__nuxt-email-renderer/_nuxt/B25Tu66H.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1759233247310,false]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{nuxtEmailRenderer:{emailsDir:"/playground/emails",devtools:false}},app:{baseURL:"/__nuxt-email-renderer",buildId:"6e6b81db-0775-4162-baf6-2536e8683f82",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/dist/client/404.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__nuxt-email-renderer/_nuxt/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__nuxt-email-renderer/_nuxt/B25Tu66H.js"}}</script><link rel="stylesheet" href="/__nuxt-email-renderer/_nuxt/entry.PhmAKarW.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__nuxt-email-renderer/_nuxt/B25Tu66H.js"><link rel="prefetch" as="style" crossorigin href="/__nuxt-email-renderer/_nuxt/error-404.BHOIm0B1.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt-email-renderer/_nuxt/Dp9LgCK2.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-email-renderer/_nuxt/n57rOy2v.js"><link rel="prefetch" as="style" crossorigin href="/__nuxt-email-renderer/_nuxt/error-500.CqX_nDZ5.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt-email-renderer/_nuxt/DZaor8iy.js"><script type="module" src="/__nuxt-email-renderer/_nuxt/B25Tu66H.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1759233247310,false]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{nuxtEmailRenderer:{emailsDir:"/playground/emails",devtools:false}},app:{baseURL:"/__nuxt-email-renderer",buildId:"6e6b81db-0775-4162-baf6-2536e8683f82",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
|
@@ -16,6 +16,6 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Dp9LgCK2.js","./n57r
|
|
|
16
16
|
* @vue/runtime-dom v3.5.21
|
|
17
17
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
18
18
|
* @license MIT
|
|
19
|
-
**/let pr;const So=typeof window<"u"&&window.trustedTypes;if(So)try{pr=So.createPolicy("vue",{createHTML:e=>e})}catch{}const Sa=pr?e=>pr.createHTML(e):e=>e,yu="http://www.w3.org/2000/svg",_u="http://www.w3.org/1998/Math/MathML",vt=typeof document<"u"?document:null,Eo=vt&&vt.createElement("template"),vu={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?vt.createElementNS(yu,e):t==="mathml"?vt.createElementNS(_u,e):n?vt.createElement(e,{is:n}):vt.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>vt.createTextNode(e),createComment:e=>vt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>vt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{Eo.innerHTML=Sa(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const a=Eo.content;if(s==="svg"||s==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},bu=Symbol("_vtc");function wu(e,t,n){const s=e[bu];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const To=Symbol("_vod"),xu=Symbol("_vsh"),Su=Symbol(""),Eu=/(?:^|;)\s*display\s*:/;function Tu(e,t,n){const s=e.style,r=ve(n);let o=!1;if(n&&!r){if(t)if(ve(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&Xn(s,a,"")}else for(const i in t)n[i]==null&&Xn(s,i,"");for(const i in n)i==="display"&&(o=!0),Xn(s,i,n[i])}else if(r){if(t!==n){const i=s[Su];i&&(n+=";"+i),s.cssText=n,o=Eu.test(n)}}else t&&e.removeAttribute("style");To in e&&(e[To]=o?s.display:"",e[xu]&&(s.display="none"))}const Co=/\s*!important$/;function Xn(e,t,n){if(X(n))n.forEach(s=>Xn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Cu(e,t);Co.test(n)?e.setProperty(Ut(s),n.replace(Co,""),"important"):e[s]=n}}const Ro=["Webkit","Moz","ms"],Gs={};function Cu(e,t){const n=Gs[t];if(n)return n;let s=Ze(t);if(s!=="filter"&&s in e)return Gs[t]=s;s=ws(s);for(let r=0;r<Ro.length;r++){const o=Ro[r]+s;if(o in e)return Gs[t]=o}return t}const Po="http://www.w3.org/1999/xlink";function Ao(e,t,n,s,r,o=El(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Po,t.slice(6,t.length)):e.setAttributeNS(Po,t,n):n==null||o&&!fi(n)?e.removeAttribute(t):e.setAttribute(t,o?"":rt(n)?String(n):n)}function ko(e,t,n,s,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Sa(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const a=o==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=fi(n):n==null&&a==="string"?(n="",i=!0):a==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(r||t)}function Wr(e,t,n,s){e.addEventListener(t,n,s)}function Ru(e,t,n,s){e.removeEventListener(t,n,s)}const Mo=Symbol("_vei");function Pu(e,t,n,s,r=null){const o=e[Mo]||(e[Mo]={}),i=o[t];if(s&&i)i.value=s;else{const[a,l]=Au(t);if(s){const f=o[t]=Ou(s,r);Wr(e,a,f,l)}else i&&(Ru(e,a,i,l),o[t]=void 0)}}const Oo=/(?:Once|Passive|Capture)$/;function Au(e){let t;if(Oo.test(e)){t={};let s;for(;s=e.match(Oo);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ut(e.slice(2)),t]}let Xs=0;const ku=Promise.resolve(),Mu=()=>Xs||(ku.then(()=>Xs=0),Xs=Date.now());function Ou(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;ht(Lu(s,n.value),t,5,[s])};return n.value=e,n.attached=Mu(),n}function Lu(e,t){if(X(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Lo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,$u=(e,t,n,s,r,o)=>{const i=r==="svg";t==="class"?wu(e,s,i):t==="style"?Tu(e,n,s):An(t)?Tr(t)||Pu(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Du(e,t,s,i))?(ko(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ao(e,t,s,i,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ve(s))?ko(e,Ze(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Ao(e,t,s,i))};function Du(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Lo(t)&&Q(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Lo(t)&&ve(n)?!1:t in e}const us=e=>{const t=e.props["onUpdate:modelValue"]||!1;return X(t)?n=>Kn(t,n):t},sn=Symbol("_assign"),Iu={created(e,{value:t},n){e.checked=rn(t,n.props.value),e[sn]=us(n),Wr(e,"change",()=>{e[sn](Pn(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e[sn]=us(s),t!==n&&(e.checked=rn(t,s.props.value))}},Nu={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const r=vs(t);Wr(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?ui(Pn(i)):Pn(i));e[sn](e.multiple?r?new Set(o):o:o[0]),e._assigning=!0,ft(()=>{e._assigning=!1})}),e[sn]=us(s)},mounted(e,{value:t}){$o(e,t)},beforeUpdate(e,t,n){e[sn]=us(n)},updated(e,{value:t}){e._assigning||$o(e,t)}};function $o(e,t){const n=e.multiple,s=X(t);if(!(n&&!s&&!vs(t))){for(let r=0,o=e.options.length;r<o;r++){const i=e.options[r],a=Pn(i);if(n)if(s){const l=typeof a;l==="string"||l==="number"?i.selected=t.some(f=>String(f)===String(a)):i.selected=Cl(t,a)>-1}else i.selected=t.has(a);else if(rn(Pn(i),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Pn(e){return"_value"in e?e._value:e.value}const Ea=Ie({patchProp:$u},vu);let Sn,Do=!1;function Hu(){return Sn||(Sn=jc(Ea))}function ju(){return Sn=Do?Sn:zc(Ea),Do=!0,Sn}const zu=((...e)=>{const t=Hu().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Ca(s);if(!r)return;const o=t._component;!Q(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const i=n(r,!1,Ta(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t}),Bu=((...e)=>{const t=ju().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Ca(s);if(r)return n(r,!0,Ta(r))},t});function Ta(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Ca(e){return ve(e)?document.querySelector(e):e}const Fu=/"(?:_|\\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*:/,Uu=/"(?: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*:/,Vu=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Wu(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){qu(e);return}return t}function qu(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function fs(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(!Vu.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Fu.test(e)||Uu.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,Wu)}return JSON.parse(e)}catch(s){if(t.strict)throw s;return e}}const Ku=/#/g,Ju=/&/g,Gu=/\//g,Xu=/=/g,qr=/\+/g,Yu=/%5e/gi,Qu=/%60/gi,Zu=/%7c/gi,ef=/%20/gi;function tf(e){return encodeURI(""+e).replace(Zu,"|")}function mr(e){return tf(typeof e=="string"?e:JSON.stringify(e)).replace(qr,"%2B").replace(ef,"+").replace(Ku,"%23").replace(Ju,"%26").replace(Qu,"`").replace(Yu,"^").replace(Gu,"%2F")}function Ys(e){return mr(e).replace(Xu,"%3D")}function ds(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function nf(e){return ds(e.replace(qr," "))}function sf(e){return ds(e.replace(qr," "))}function Ls(e=""){const t=Object.create(null);e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const s=n.match(/([^=]+)=?(.*)/)||[];if(s.length<2)continue;const r=nf(s[1]);if(r==="__proto__"||r==="constructor")continue;const o=sf(s[2]||"");t[r]===void 0?t[r]=o:Array.isArray(t[r])?t[r].push(o):t[r]=[t[r],o]}return t}function rf(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${Ys(e)}=${mr(n)}`).join("&"):`${Ys(e)}=${mr(t)}`:Ys(e)}function Ra(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>rf(t,e[t])).filter(Boolean).join("&")}const of=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,af=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,lf=/^([/\\]\s*){2,}[^/\\]/,cf=/^[\s\0]*(blob|data|javascript|vbscript):$/i,uf=/\/$|\/\?|\/#/,ff=/^\.?\//;function Ot(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?of.test(e):af.test(e)||(t.acceptRelative?lf.test(e):!1)}function df(e){return!!e&&cf.test(e)}function gr(e="",t){return t?uf.test(e):e.endsWith("/")}function $s(e="",t){if(!t)return(gr(e)?e.slice(0,-1):e)||"/";if(!gr(e,!0))return e||"/";let n=e,s="";const r=e.indexOf("#");r!==-1&&(n=e.slice(0,r),s=e.slice(r));const[o,...i]=n.split("?");return((o.endsWith("/")?o.slice(0,-1):o)||"/")+(i.length>0?`?${i.join("?")}`:"")+s}function hs(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(gr(e,!0))return e||"/";let n=e,s="";const r=e.indexOf("#");if(r!==-1&&(n=e.slice(0,r),s=e.slice(r),!n))return s;const[o,...i]=n.split("?");return o+"/"+(i.length>0?`?${i.join("?")}`:"")+s}function hf(e=""){return e.startsWith("/")}function Io(e=""){return hf(e)?e:"/"+e}function pf(e,t){if(Aa(t)||Ot(e))return e;const n=$s(t);return e.startsWith(n)?e:$n(n,e)}function mf(e,t){if(Aa(t))return e;const n=$s(t);if(!e.startsWith(n))return e;const s=e.slice(n.length);return s[0]==="/"?s:"/"+s}function Pa(e,t){const n=Oa(e),s={...Ls(n.search),...t};return n.search=Ra(s),La(n)}function Aa(e){return!e||e==="/"}function gf(e){return e&&e!=="/"}function $n(e,...t){let n=e||"";for(const s of t.filter(r=>gf(r)))if(n){const r=s.replace(ff,"");n=hs(n)+r}else n=s;return n}function ka(...e){const t=/\/(?!\/)/,n=e.filter(Boolean),s=[];let r=0;for(const i of n)if(!(!i||i==="/")){for(const[a,l]of i.split(t).entries())if(!(!l||l===".")){if(l===".."){if(s.length===1&&Ot(s[0]))continue;s.pop(),r--;continue}if(a===1&&s[s.length-1]?.endsWith(":/")){s[s.length-1]+="/"+l;continue}s.push(l),r++}}let o=s.join("/");return r>=0?n[0]?.startsWith("/")&&!o.startsWith("/")?o="/"+o:n[0]?.startsWith("./")&&!o.startsWith("./")&&(o="./"+o):o="../".repeat(-1*r)+o,n[n.length-1]?.endsWith("/")&&!o.endsWith("/")&&(o+="/"),o}function yf(e,t,n={}){return n.trailingSlash||(e=hs(e),t=hs(t)),n.leadingSlash||(e=Io(e),t=Io(t)),n.encoding||(e=ds(e),t=ds(t)),e===t}const Ma=Symbol.for("ufo:protocolRelative");function Oa(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,u,h=""]=n;return{protocol:u.toLowerCase(),pathname:h,href:u+h,auth:"",host:"",search:"",hash:""}}if(!Ot(e,{acceptRelative:!0}))return No(e);const[,s="",r,o=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,i="",a=""]=o.match(/([^#/?]*)(.*)?/)||[];s==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:f,hash:c}=No(a);return{protocol:s.toLowerCase(),auth:r?r.slice(0,Math.max(0,r.length-1)):"",host:i,pathname:l,search:f,hash:c,[Ma]:!s}}function No(e=""){const[t="",n="",s=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:s}}function La(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",s=e.hash||"",r=e.auth?e.auth+"@":"",o=e.host||"";return(e.protocol||e[Ma]?(e.protocol||"")+"//":"")+r+o+t+n+s}class _f extends Error{constructor(t,n){super(t,n),this.name="FetchError",n?.cause&&!this.cause&&(this.cause=n.cause)}}function vf(e){const t=e.error?.message||e.error?.toString()||"",n=e.request?.method||e.options?.method||"GET",s=e.request?.url||String(e.request)||"/",r=`[${n}] ${JSON.stringify(s)}`,o=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",i=`${r}: ${o}${t?` ${t}`:""}`,a=new _f(i,e.error?{cause:e.error}:void 0);for(const l of["request","options","response"])Object.defineProperty(a,l,{get(){return e[l]}});for(const[l,f]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,l,{get(){return e.response&&e.response[f]}});return a}const bf=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function Ho(e="GET"){return bf.has(e.toUpperCase())}function wf(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?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const xf=new Set(["image/svg","application/xml","application/xhtml","application/html"]),Sf=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Ef(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return Sf.test(t)?"json":xf.has(t)||t.startsWith("text/")?"text":"blob"}function Tf(e,t,n,s){const r=Cf(t?.headers??e?.headers,n?.headers,s);let o;return(n?.query||n?.params||t?.params||t?.query)&&(o={...n?.params,...n?.query,...t?.params,...t?.query}),{...n,...t,query:o,params:o,headers:r}}function Cf(e,t,n){if(!t)return new n(e);const s=new n(t);if(e)for(const[r,o]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))s.set(r,o);return s}async function Bn(e,t){if(t)if(Array.isArray(t))for(const n of t)await n(e);else await t(e)}const Rf=new Set([408,409,425,429,500,502,503,504]),Pf=new Set([101,204,205,304]);function $a(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:s=globalThis.AbortController}=e;async function r(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let c;typeof a.options.retry=="number"?c=a.options.retry:c=Ho(a.options.method)?0:1;const u=a.response&&a.response.status||500;if(c>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(u):Rf.has(u))){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)),o(a.request,{...a.options,retry:c-1})}}const f=vf(a);throw Error.captureStackTrace&&Error.captureStackTrace(f,o),f}const o=async function(l,f={}){const c={request:l,options:Tf(l,f,e.defaults,n),response:void 0,error:void 0};c.options.method&&(c.options.method=c.options.method.toUpperCase()),c.options.onRequest&&await Bn(c,c.options.onRequest),typeof c.request=="string"&&(c.options.baseURL&&(c.request=pf(c.request,c.options.baseURL)),c.options.query&&(c.request=Pa(c.request,c.options.query),delete c.options.query),"query"in c.options&&delete c.options.query,"params"in c.options&&delete c.options.params),c.options.body&&Ho(c.options.method)&&(wf(c.options.body)?(c.options.body=typeof c.options.body=="string"?c.options.body:JSON.stringify(c.options.body),c.options.headers=new n(c.options.headers||{}),c.options.headers.has("content-type")||c.options.headers.set("content-type","application/json"),c.options.headers.has("accept")||c.options.headers.set("accept","application/json")):("pipeTo"in c.options.body&&typeof c.options.body.pipeTo=="function"||typeof c.options.body.pipe=="function")&&("duplex"in c.options||(c.options.duplex="half")));let u;if(!c.options.signal&&c.options.timeout){const d=new s;u=setTimeout(()=>{const g=new Error("[TimeoutError]: The operation was aborted due to timeout");g.name="TimeoutError",g.code=23,d.abort(g)},c.options.timeout),c.options.signal=d.signal}try{c.response=await t(c.request,c.options)}catch(d){return c.error=d,c.options.onRequestError&&await Bn(c,c.options.onRequestError),await r(c)}finally{u&&clearTimeout(u)}if((c.response.body||c.response._bodyInit)&&!Pf.has(c.response.status)&&c.options.method!=="HEAD"){const d=(c.options.parseResponse?"json":c.options.responseType)||Ef(c.response.headers.get("content-type")||"");switch(d){case"json":{const g=await c.response.text(),y=c.options.parseResponse||fs;c.response._data=y(g);break}case"stream":{c.response._data=c.response.body||c.response._bodyInit;break}default:c.response._data=await c.response[d]()}}return c.options.onResponse&&await Bn(c,c.options.onResponse),!c.options.ignoreResponseError&&c.response.status>=400&&c.response.status<600?(c.options.onResponseError&&await Bn(c,c.options.onResponseError),await r(c)):c.response},i=async function(l,f){return(await o(l,f))._data};return i.raw=o,i.native=(...a)=>t(...a),i.create=(a={},l={})=>$a({...e,...l,defaults:{...e.defaults,...l.defaults,...a}}),i}const ps=(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")})(),Af=ps.fetch?(...e)=>ps.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),kf=ps.Headers,Mf=ps.AbortController,Of=$a({fetch:Af,Headers:kf,AbortController:Mf}),Lf=Of,$f=()=>window?.__NUXT__?.config||window?.useNuxtApp?.().payload?.config,Kr=()=>$f().app,Df=()=>Kr().baseURL,If=()=>Kr().buildAssetsDir,Jr=(...e)=>ka(Da(),If(),...e),Da=(...e)=>{const t=Kr(),n=t.cdnURL||t.baseURL;return e.length?ka(n,...e):n};globalThis.__buildAssetsURL=Jr,globalThis.__publicAssetsURL=Da;globalThis.$fetch||(globalThis.$fetch=Lf.create({baseURL:Df()}));"global"in globalThis||(globalThis.global=globalThis);function yr(e,t={},n){for(const s in e){const r=e[s],o=n?`${n}:${s}`:s;typeof r=="object"&&r!==null?yr(r,t,o):typeof r=="function"&&(t[o]=r)}return t}const Nf={run:e=>e()},Hf=()=>Nf,Ia=typeof console.createTask<"u"?console.createTask:Hf;function jf(e,t){const n=t.shift(),s=Ia(n);return e.reduce((r,o)=>r.then(()=>s.run(()=>o(...t))),Promise.resolve())}function zf(e,t){const n=t.shift(),s=Ia(n);return Promise.all(e.map(r=>s.run(()=>r(...t))))}function Qs(e,t){for(const n of[...e])n(t)}class Bf{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,s={}){if(!t||typeof n!="function")return()=>{};const r=t;let o;for(;this._deprecatedHooks[t];)o=this._deprecatedHooks[t],t=o.to;if(o&&!s.allowDeprecated){let i=o.message;i||(i=`${r} hook has been deprecated`+(o.to?`, please use ${o.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let s,r=(...o)=>(typeof s=="function"&&s(),s=void 0,r=void 0,n(...o));return s=this.hook(t,r),s}removeHook(t,n){if(this._hooks[t]){const s=this._hooks[t].indexOf(n);s!==-1&&this._hooks[t].splice(s,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const s=this._hooks[t]||[];delete this._hooks[t];for(const r of s)this.hook(t,r)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=yr(t),s=Object.keys(n).map(r=>this.hook(r,n[r]));return()=>{for(const r of s.splice(0,s.length))r()}}removeHooks(t){const n=yr(t);for(const s in n)this.removeHook(s,n[s])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(jf,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(zf,t,...n)}callHookWith(t,n,...s){const r=this._before||this._after?{name:n,args:s,context:{}}:void 0;this._before&&Qs(this._before,r);const o=t(n in this._hooks?[...this._hooks[n]]:[],s);return o instanceof Promise?o.finally(()=>{this._after&&r&&Qs(this._after,r)}):(this._after&&r&&Qs(this._after,r),o)}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 Na(){return new Bf}function Ff(e={}){let t,n=!1;const s=i=>{if(t&&t!==i)throw new Error("Context conflict")};let r;if(e.asyncContext){const i=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;i?r=new i:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const o=()=>{if(r){const i=r.getStore();if(i!==void 0)return i}return t};return{use:()=>{const i=o();if(i===void 0)throw new Error("Context is not available");return i},tryUse:()=>o(),set:(i,a)=>{a||s(i),t=i,n=!0},unset:()=>{t=void 0,n=!1},call:(i,a)=>{s(i),t=i;try{return r?r.run(i,a):a()}finally{n||(t=void 0)}},async callAsync(i,a){t=i;const l=()=>{t=i},f=()=>t===i?l:void 0;_r.add(f);try{const c=r?r.run(i,a):a();return n||(t=void 0),await c}finally{_r.delete(f)}}}}function Uf(e={}){const t={};return{get(n,s={}){return t[n]||(t[n]=Ff({...e,...s})),t[n]}}}const ms=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},jo="__unctx__",Vf=ms[jo]||(ms[jo]=Uf()),Wf=(e,t={})=>Vf.get(e,t),zo="__unctx_async_handlers__",_r=ms[zo]||(ms[zo]=new Set);function Ha(e){const t=[];for(const r of _r){const o=r();o&&t.push(o)}const n=()=>{for(const r of t)r()};let s=e();return s&&typeof s=="object"&&"catch"in s&&(s=s.catch(r=>{throw n(),r})),[s,n]}const Bo={id:"__nuxt-loader"},qf={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},Kf={deep:!1},Jf={},Gf="#__nuxt",ja="nuxt-app",Fo=36e5,Xf="vite:preloadError";function za(e=ja){return Wf(e,{asyncContext:!1})}const Yf="__nuxt_plugin";function Qf(e){let t=0;const n={_id:e.id||ja||"nuxt-app",_scope:Rl(),provide:void 0,versions:{get nuxt(){return"4.1.2"},get vue(){return n.vueApp.version}},payload:Jt({...e.ssrContext?.payload||{},data:Jt({}),state:dt({}),once:new Set,_errors:Jt({})}),static:{data:{}},runWithContext(r){return n._scope.active&&!Ss()?n._scope.run(()=>Uo(n,r)):Uo(n,r)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let r=!1;return()=>{if(!r&&(r=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:Jt({}),_payloadRevivers:{},...e};{const r=window.__NUXT__;if(r)for(const o in r)switch(o){case"data":case"state":case"_errors":Object.assign(n.payload[o],r[o]);break;default:n.payload[o]=r[o]}}n.hooks=Na(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(r,o)=>{const i="$"+r;Fn(n,i,o),Fn(n.vueApp.config.globalProperties,i,o)},Fn(n.vueApp,"$nuxt",n),Fn(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(Xf,o=>{n.callHook("app:chunkError",{error:o.payload}),o.payload.message.includes("Unable to preload CSS")&&o.preventDefault()}),window.useNuxtApp||=Te;const r=n.hook("app:error",(...o)=>{console.error("[nuxt] error caught during app initialization",...o)});n.hook("app:mounted",r)}const s=n.payload.config;return n.provide("config",s),n}function Zf(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function ed(e,t){if(typeof t=="function"){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n=="object")for(const s in n)e.provide(s,n[s])}}async function td(e,t){const n=new Set,s=[],r=[];let o,i=0;async function a(l){const f=l.dependsOn?.filter(c=>t.some(u=>u._name===c)&&!n.has(c))??[];if(f.length>0)s.push([new Set(f),l]);else{const c=ed(e,l).then(async()=>{l._name&&(n.add(l._name),await Promise.all(s.map(async([u,h])=>{u.has(l._name)&&(u.delete(l._name),u.size===0&&(i++,await a(h)))})))}).catch(u=>{if(!l.parallel&&!e.payload.error)throw u;o||=u});l.parallel?r.push(c):await c}}for(const l of t)Zf(e,l);for(const l of t)await a(l);if(await Promise.all(r),i)for(let l=0;l<i;l++)await Promise.all(r);if(o)throw e.payload.error||o}function Ct(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[Yf]:!0,_name:t})}function Uo(e,t,n){const s=()=>t();return za(e._id).set(e),e.vueApp.runWithContext(s)}function nd(e){let t;return zr()&&(t=it()?.appContext.app.$nuxt),t||=za(e).tryUse(),t||null}function Te(e){const t=nd(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function fn(e){return Te().$config}function Fn(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function sd(e,t){return{ctx:{table:e},matchAll:n=>Fa(n,e)}}function Ba(e){const t={};for(const n in e)t[n]=n==="dynamic"?new Map(Object.entries(e[n]).map(([s,r])=>[s,Ba(r)])):new Map(Object.entries(e[n]));return t}function rd(e){return sd(Ba(e))}function Fa(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1)||"/");const s=[];for(const[o,i]of Vo(t.wildcard))(e===o||e.startsWith(o+"/"))&&s.push(i);for(const[o,i]of Vo(t.dynamic))if(e.startsWith(o+"/")){const a="/"+e.slice(o.length).split("/").splice(2).join("/");s.push(...Fa(a,i))}const r=t.static.get(e);return r&&s.push(r),s.filter(Boolean)}function Vo(e){return[...e.entries()].sort((t,n)=>t[0].length-n[0].length)}function Zs(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 vr(e,t,n=".",s){if(!Zs(t))return vr(e,{},n,s);const r=Object.assign({},t);for(const o in e){if(o==="__proto__"||o==="constructor")continue;const i=e[o];i!=null&&(s&&s(r,o,i,n)||(Array.isArray(i)&&Array.isArray(r[o])?r[o]=[...i,...r[o]]:Zs(i)&&Zs(r[o])?r[o]=vr(i,r[o],(n?`${n}.`:"")+o.toString(),s):r[o]=i))}return r}function od(e){return(...t)=>t.reduce((n,s)=>vr(n,s,"",e),{})}const id=od();function ad(e,t){try{return t in e}catch{return!1}}class Wo 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:br(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=Ua(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}function ld(e){if(typeof e=="string")return new Wo(e);if(cd(e))return e;const t=new Wo(e.message??e.statusMessage??"",{cause:e.cause||e});if(ad(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=br(e.statusCode,t.statusCode):e.status&&(t.statusCode=br(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;Ua(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 cd(e){return e?.constructor?.__h3_error__===!0}const ud=/[^\u0009\u0020-\u007E]/g;function Ua(e=""){return e.replace(ud,"")}function br(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const Va=Symbol("route");import.meta.url.replace(/\/app\/.*$/,"/");const pt=()=>Te()?.$router,Wa=()=>zr()?We(Va,Te()._route):Te()._route;const fd=()=>{try{if(Te()._processingMiddleware)return!0}catch{return!1}return!1},qa=(e,t)=>{e||="/";const n=typeof e=="string"?e:"path"in e?wr(e):pt().resolve(e).href;if(t?.open){const{target:l="_blank",windowFeatures:f={}}=t.open,c=[];for(const[u,h]of Object.entries(f))h!==void 0&&c.push(`${u.toLowerCase()}=${h}`);return open(n,l,c.join(", ")),Promise.resolve()}const s=Ot(n,{acceptRelative:!0}),r=t?.external||s;if(r){if(!t?.external)throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:l}=new URL(n,window.location.href);if(l&&df(l))throw new Error(`Cannot navigate to a URL with '${l}' protocol.`)}const o=fd();if(!r&&o){if(t?.replace){if(typeof e=="string"){const{pathname:l,search:f,hash:c}=Oa(e);return{path:l,...f&&{query:Ls(f)},...c&&{hash:c},replace:!0}}return{...e,replace:!0}}return e}const i=pt(),a=Te();return r?(a._scope.stop(),t?.replace?location.replace(n):location.href=n,o?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t?.replace?i.replace(e):i.push(e)};function wr(e){return Pa(e.path||"",e.query||{})+(e.hash||"")}const Ka="__nuxt_error",Gr=()=>$r(Te().payload,"error"),dd=e=>{const t=Ds(e);try{const n=Te(),s=Gr();n.hooks.callHook("app:error",t),s.value||=t}catch{throw t}return t},hd=async(e={})=>{const t=Te(),n=Gr();t.callHook("app:error:cleared",e),e.redirect&&await pt().replace(e.redirect),n.value=void 0},pd=e=>!!e&&typeof e=="object"&&Ka in e,Ds=e=>{const t=ld(e);return Object.defineProperty(t,Ka,{value:!0,configurable:!1,writable:!1}),t};function md(e){const t=yd(e),n=new ArrayBuffer(t.length),s=new DataView(n);for(let r=0;r<n.byteLength;r++)s.setUint8(r,t.charCodeAt(r));return n}const gd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function yd(e){e.length%4===0&&(e=e.replace(/==?$/,""));let t="",n=0,s=0;for(let r=0;r<e.length;r++)n<<=6,n|=gd.indexOf(e[r]),s+=6,s===24&&(t+=String.fromCharCode((n&16711680)>>16),t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255),n=s=0);return s===12?(n>>=4,t+=String.fromCharCode(n)):s===18&&(n>>=2,t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255)),t}const _d=-1,vd=-2,bd=-3,wd=-4,xd=-5,Sd=-6;function Ed(e,t){return Td(JSON.parse(e),t)}function Td(e,t){if(typeof e=="number")return r(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,s=Array(n.length);function r(o,i=!1){if(o===_d)return;if(o===bd)return NaN;if(o===wd)return 1/0;if(o===xd)return-1/0;if(o===Sd)return-0;if(i||typeof o!="number")throw new Error("Invalid input");if(o in s)return s[o];const a=n[o];if(!a||typeof a!="object")s[o]=a;else if(Array.isArray(a))if(typeof a[0]=="string"){const l=a[0],f=t?.[l];if(f)return s[o]=f(r(a[1]));switch(l){case"Date":s[o]=new Date(a[1]);break;case"Set":const c=new Set;s[o]=c;for(let d=1;d<a.length;d+=1)c.add(r(a[d]));break;case"Map":const u=new Map;s[o]=u;for(let d=1;d<a.length;d+=2)u.set(r(a[d]),r(a[d+1]));break;case"RegExp":s[o]=new RegExp(a[1],a[2]);break;case"Object":s[o]=Object(a[1]);break;case"BigInt":s[o]=BigInt(a[1]);break;case"null":const h=Object.create(null);s[o]=h;for(let d=1;d<a.length;d+=2)h[a[d]]=r(a[d+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const d=globalThis[l],g=new d(r(a[1]));s[o]=a[2]!==void 0?g.subarray(a[2],a[3]):g;break}case"ArrayBuffer":{const d=a[1],g=md(d);s[o]=g;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{const d=l.slice(9);s[o]=Temporal[d].from(a[1]);break}case"URL":{const d=new URL(a[1]);s[o]=d;break}case"URLSearchParams":{const d=new URLSearchParams(a[1]);s[o]=d;break}default:throw new Error(`Unknown type ${l}`)}}else{const l=new Array(a.length);s[o]=l;for(let f=0;f<a.length;f+=1){const c=a[f];c!==vd&&(l[f]=r(c))}}else{const l={};s[o]=l;for(const f in a){if(f==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const c=a[f];l[f]=r(c)}}return s[o]}return r(0)}const Cd=new Set(["link","style","script","noscript"]),Rd=new Set(["title","titleTemplate","script","style","noscript"]),qo=new Set(["base","meta","link","style","script","noscript"]),Pd=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),Ad=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),kd=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),Md=new Set(["templateParams","htmlAttrs","bodyAttrs"]),Od=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]),Ld=["name","property","http-equiv"],$d=new Set(["viewport","description","keywords","robots"]);function Ja(e){const t=e.split(":");return t.length?Od.has(t[1]):!1}function xr(e){const{props:t,tag:n}=e;if(Ad.has(n))return n;if(n==="link"&&t.rel==="canonical")return"canonical";if(t.charset)return"charset";if(e.tag==="meta"){for(const s of Ld)if(t[s]!==void 0){const r=t[s],o=r.includes(":"),i=$d.has(r),l=!(o||i)&&e.key?`:key:${e.key}`:"";return`${n}:${r}${l}`}}if(e.key)return`${n}:key:${e.key}`;if(t.id)return`${n}:id:${t.id}`;if(Rd.has(n)){const s=e.textContent||e.innerHTML;if(s)return`${n}:content:${s}`}}function Ko(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(([s,r])=>`${s}:${String(r)}`).join(",")}`}function gs(e,t,n){typeof e==="function"&&(!n||n!=="titleTemplate"&&!(n[0]==="o"&&n[1]==="n"))&&(e=e());let r;if(t&&(r=t(n,e)),Array.isArray(r))return r.map(o=>gs(o,t));if(r?.constructor===Object){const o={};for(const i of Object.keys(r))o[i]=gs(r[i],t,i);return o}return r}function Dd(e,t){const n=e==="style"?new Map:new Set;function s(r){const o=r.trim();if(o)if(e==="style"){const[i,...a]=o.split(":").map(l=>l.trim());i&&a.length&&n.set(i,a.join(":"))}else o.split(" ").filter(Boolean).forEach(i=>n.add(i))}return typeof t=="string"?e==="style"?t.split(";").forEach(s):s(t):Array.isArray(t)?t.forEach(r=>s(r)):t&&typeof t=="object"&&Object.entries(t).forEach(([r,o])=>{o&&o!=="false"&&(e==="style"?n.set(r.trim(),o):s(r))}),n}function Ga(e,t){return e.props=e.props||{},t?e.tag==="templateParams"?(e.props=t,e):(Object.entries(t).forEach(([n,s])=>{if(s===null){e.props[n]=null;return}if(n==="class"||n==="style"){e.props[n]=Dd(n,s);return}if(kd.has(n)){if(["textContent","innerHTML"].includes(n)&&typeof s=="object"){let i=t.type;if(t.type||(i="application/json"),!i?.endsWith("json")&&i!=="speculationrules")return;t.type=i,e.props.type=i,e[n]=JSON.stringify(s)}else e[n]=s;return}const r=String(s),o=n.startsWith("data-");r==="true"||r===""?e.props[n]=o?r:!0:!s&&o&&r==="false"?e.props[n]="false":s!==void 0&&(e.props[n]=s)}),e):e}function Id(e,t){const n=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},s=Ga({tag:e,props:{}},n);return s.key&&Cd.has(s.tag)&&(s.props["data-hid"]=s._h=s.key),s.tag==="script"&&typeof s.innerHTML=="object"&&(s.innerHTML=JSON.stringify(s.innerHTML),s.props.type=s.props.type||"application/json"),Array.isArray(s.props.content)?s.props.content.map(r=>({...s,props:{...s.props,content:r}})):s}function Nd(e,t){if(!e)return[];typeof e=="function"&&(e=e());const n=(r,o)=>{for(let i=0;i<t.length;i++)o=t[i](r,o);return o};e=n(void 0,e);const s=[];return e=gs(e,n),Object.entries(e||{}).forEach(([r,o])=>{if(o!==void 0)for(const i of Array.isArray(o)?o:[o])s.push(Id(r,i))}),s.flat()}const Jo=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,Go={base:-10,title:10},Hd={critical:-8,high:-1,low:2},Xo={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}},jd=/@import/,yn=e=>e===""||e===!0;function zd(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let n=100;const s=Hd[t.tagPriority]||0,r=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:Xo;if(t.tag in Go)n=Go[t.tag];else if(t.tag==="meta"){const o=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;o&&(n=Xo.meta[o])}else t.tag==="link"&&t.props.rel?n=r.link[t.props.rel]:t.tag==="script"?yn(t.props.async)?n=r.script.async:t.props.src&&!yn(t.props.defer)&&!yn(t.props.async)&&t.props.type!=="module"&&!t.props.type?.endsWith("json")?n=r.script.sync:yn(t.props.defer)&&t.props.src&&!yn(t.props.async)&&(n=r.script.defer):t.tag==="style"&&(n=t.innerHTML&&jd.test(t.innerHTML)?r.style.imported:r.style.sync);return(n||100)+s}function Yo(e,t){const n=typeof t=="function"?t(e):t,s=n.key||String(e.plugins.size+1);e.plugins.get(s)||(e.plugins.set(s,n),e.hooks.addHooks(n.hooks||{}))}function Bd(e={}){const t=Na();t.addHooks(e.hooks||{});const n=!e.document,s=new Map,r=new Map,o=new Set,i={_entryCount:1,plugins:r,dirty:!1,resolvedOptions:e,hooks:t,ssr:n,entries:s,headEntries(){return[...s.values()]},use:a=>Yo(i,a),push(a,l){const f={...l||{}};delete f.head;const c=f._index??i._entryCount++,u={_i:c,input:a,options:f},h={_poll(d=!1){i.dirty=!0,!d&&o.add(c),t.callHook("entries:updated",i)},dispose(){s.delete(c)&&i.invalidate()},patch(d){(!f.mode||f.mode==="server"&&n||f.mode==="client"&&!n)&&(u.input=d,s.set(c,u),h._poll())}};return h.patch(a),h},async resolveTags(){const a={tagMap:new Map,tags:[],entries:[...i.entries.values()]};for(await t.callHook("entries:resolve",a);o.size;){const h=o.values().next().value;o.delete(h);const d=s.get(h);if(d){const g={tags:Nd(d.input,e.propResolvers||[]).map(y=>Object.assign(y,d.options)),entry:d};await t.callHook("entries:normalize",g),d._tags=g.tags.map((y,w)=>(y._w=zd(i,y),y._p=(d._i<<10)+w,y._d=xr(y),y))}}let l=!1;a.entries.flatMap(h=>(h._tags||[]).map(d=>({...d,props:{...d.props}}))).sort(Jo).reduce((h,d)=>{const g=String(d._d||d._p);if(!h.has(g))return h.set(g,d);const y=h.get(g);if((d?.tagDuplicateStrategy||(Md.has(d.tag)?"merge":null)||(d.key&&d.key===y.key?"merge":null))==="merge"){const x={...y.props};Object.entries(d.props).forEach(([E,m])=>x[E]=E==="style"?new Map([...y.props.style||new Map,...m]):E==="class"?new Set([...y.props.class||new Set,...m]):m),h.set(g,{...d,props:x})}else d._p>>10===y._p>>10&&d.tag==="meta"&&Ja(g)?(h.set(g,Object.assign([...Array.isArray(y)?y:[y],d],d)),l=!0):(d._w===y._w?d._p>y._p:d?._w<y?._w)&&h.set(g,d);return h},a.tagMap);const f=a.tagMap.get("title"),c=a.tagMap.get("titleTemplate");if(i._title=f?.textContent,c){const h=c?.textContent;if(i._titleTemplate=h,h){let d=typeof h=="function"?h(f?.textContent):h;typeof d=="string"&&!i.plugins.has("template-params")&&(d=d.replace("%s",f?.textContent||"")),f?d===null?a.tagMap.delete("title"):a.tagMap.set("title",{...f,textContent:d}):(c.tag="title",c.textContent=d)}}a.tags=Array.from(a.tagMap.values()),l&&(a.tags=a.tags.flat().sort(Jo)),await t.callHook("tags:beforeResolve",a),await t.callHook("tags:resolve",a),await t.callHook("tags:afterResolve",a);const u=[];for(const h of a.tags){const{innerHTML:d,tag:g,props:y}=h;if(Pd.has(g)&&!(Object.keys(y).length===0&&!h.innerHTML&&!h.textContent)&&!(g==="meta"&&!y.content&&!y["http-equiv"]&&!y.charset)){if(g==="script"&&d){if(y.type?.endsWith("json")){const w=typeof d=="string"?d:JSON.stringify(d);h.innerHTML=w.replace(/</g,"\\u003C")}else typeof d=="string"&&(h.innerHTML=d.replace(new RegExp(`</${g}`,"g"),`<\\/${g}`));h._d=xr(h)}u.push(h)}}return u},invalidate(){for(const a of s.values())o.add(a._i);i.dirty=!0,t.callHook("entries:updated",i)}};return(e?.plugins||[]).forEach(a=>Yo(i,a)),i.hooks.callHook("init",i),e.init?.forEach(a=>a&&i.push(a)),i}const Fd=(e,t)=>_e(t)?Re(t):t,Xa="usehead";function Ud(e){return{install(n){n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(Xa,e)}}.install}function Vd(){if(zr()){const e=We(Xa);if(!e)throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");return e}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function zm(e,t={}){const n=t.head||Vd();return n.ssr?n.push(e||{},t):Wd(n,e,t)}function Wd(e,t,n={}){const s=we(!1);let r;return Vc(()=>{const i=s.value?{}:gs(t,Fd);r?r.patch(i):r=e.push(i,n)}),it()&&(Ln(()=>{r.dispose()}),zi(()=>{s.value=!0}),ji(()=>{s.value=!1})),r}const qd="modulepreload",Kd=function(e,t){return new URL(e,t).href},Qo={},Ce=function(t,n,s){let r=Promise.resolve();if(n&&n.length>0){let f=function(c){return Promise.all(c.map(u=>Promise.resolve(u).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};const i=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=a?.nonce||a?.getAttribute("nonce");r=f(n.map(c=>{if(c=Kd(c,s),c in Qo)return;Qo[c]=!0;const u=c.endsWith(".css"),h=u?'[rel="stylesheet"]':"";if(!!s)for(let y=i.length-1;y>=0;y--){const w=i[y];if(w.href===c&&(!u||w.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${h}`))return;const g=document.createElement("link");if(g.rel=u?"stylesheet":qd,u||(g.as="script"),g.crossOrigin="",g.href=c,l&&g.setAttribute("nonce",l),document.head.appendChild(g),u)return new Promise((y,w)=>{g.addEventListener("load",y),g.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return r.then(i=>{for(const a of i||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})};let Yn,Qn;function Jd(){return Yn=$fetch(Jr(`builds/meta/${fn().app.buildId}.json`),{responseType:"json"}),Yn.then(e=>{Qn=rd(e.matcher)}).catch(e=>{console.error("[nuxt] Error fetching app manifest.",e)}),Yn}function Is(){return Yn||Jd()}async function Xr(e){const t=typeof e=="string"?e:e.path;if(await Is(),!Qn)return console.error("[nuxt] Error creating app manifest matcher.",Qn),{};try{return id({},...Qn.matchAll(t).reverse())}catch(n){return console.error("[nuxt] Error matching route rules.",n),{}}}async function Zo(e,t={}){if(!await Qa(e))return null;const s=await Xd(e,t);return await Ya(s)||null}const Gd="_payload.json";async function Xd(e,t={}){const n=new URL(e,"http://localhost");if(n.host!=="localhost"||Ot(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const s=fn(),r=t.hash||(t.fresh?Date.now():s.app.buildId),o=s.app.cdnURL,i=o&&await Qa(e)?o:s.app.baseURL;return $n(i,n.pathname,Gd+(r?`?${r}`:""))}async function Ya(e){const t=fetch(e,{cache:"force-cache"}).then(n=>n.text().then(Za));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}async function Qa(e=Wa().path){const t=Te();return e=$s(e),(await Is()).prerendered.includes(e)?!0:t.runWithContext(async()=>{const s=await Xr({path:e});return!!s.prerender&&!s.redirect})}let $t=null;async function Yd(){if($t)return $t;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await Za(e.textContent||""),n=e.dataset.src?await Ya(e.dataset.src):void 0;return $t={...t,...n,...window.__NUXT__},$t.config?.public&&($t.config.public=dt($t.config.public)),$t}async function Za(e){return await Ed(e,Te()._payloadRevivers)}function Qd(e,t){Te()._payloadRevivers[e]=t}const Zd=[["NuxtError",e=>Ds(e)],["EmptyShallowRef",e=>et(e==="_"?void 0:e==="0n"?BigInt(0):fs(e))],["EmptyRef",e=>we(e==="_"?void 0:e==="0n"?BigInt(0):fs(e))],["ShallowRef",e=>et(e)],["ShallowReactive",e=>Jt(e)],["Ref",e=>we(e)],["Reactive",e=>dt(e)]],eh=Ct({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const[s,r]of Zd)Qd(s,r);Object.assign(e.payload,([t,n]=Ha(()=>e.runWithContext(Yd)),t=await t,n(),t)),delete window.__NUXT__}});async function Yr(e,t={}){const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const s={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",s),!!s.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async r=>{const o=new Map,i=new Promise(d=>{e.resolveTags().then(g=>{d(g.map(y=>{const w=o.get(y._d)||0,x={tag:y,id:(w?`${y._d}:${w}`:y._d)||Ko(y),shouldRender:!0};return y._d&&Ja(y._d)&&o.set(y._d,w+1),x}))})});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 g=n[d]?.children;for(const y of g){const w=y.tagName.toLowerCase();if(!qo.has(w))continue;const x=Ga({tag:w,props:{}},{innerHTML:y.innerHTML,...y.getAttributeNames().reduce((E,m)=>(E[m]=y.getAttribute(m),E),{})||{}});if(x.key=y.getAttribute("data-hid")||void 0,x._d=xr(x)||Ko(x),a.elMap.has(x._d)){let E=1,m=x._d;for(;a.elMap.has(m);)m=`${x._d}:${E++}`;a.elMap.set(m,y)}else a.elMap.set(x._d,y)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function l(d,g,y){const w=`${d}:${g}`;a.sideEffects[w]=y,delete a.pendingSideEffects[w]}function f({id:d,$el:g,tag:y}){const w=y.tag.endsWith("Attrs");a.elMap.set(d,g),w||(y.textContent&&y.textContent!==g.textContent&&(g.textContent=y.textContent),y.innerHTML&&y.innerHTML!==g.innerHTML&&(g.innerHTML=y.innerHTML),l(d,"el",()=>{g?.remove(),a.elMap.delete(d)}));for(const x in y.props){if(!Object.prototype.hasOwnProperty.call(y.props,x))continue;const E=y.props[x];if(x.startsWith("on")&&typeof E=="function"){const v=g?.dataset;if(v&&v[`${x}fired`]){const b=x.slice(0,-5);E.call(g,new Event(b.substring(2)))}g.getAttribute(`data-${x}`)!==""&&((y.tag==="bodyAttrs"?n.defaultView:g).addEventListener(x.substring(2),E.bind(g)),g.setAttribute(`data-${x}`,""));continue}const m=`attr:${x}`;if(x==="class"){if(!E)continue;for(const v of E)w&&l(d,`${m}:${v}`,()=>g.classList.remove(v)),!g.classList.contains(v)&&g.classList.add(v)}else if(x==="style"){if(!E)continue;for(const[v,b]of E)l(d,`${m}:${v}`,()=>{g.style.removeProperty(v)}),g.style.setProperty(v,b)}else E!==!1&&E!==null&&(g.getAttribute(x)!==E&&g.setAttribute(x,E===!0?"":String(E)),w&&l(d,m,()=>g.removeAttribute(x)))}}const c=[],u={bodyClose:void 0,bodyOpen:void 0,head:void 0},h=await i;for(const d of h){const{tag:g,shouldRender:y,id:w}=d;if(y){if(g.tag==="title"){n.title=g.textContent,l("title","",()=>n.title=a.title);continue}d.$el=d.$el||a.elMap.get(w),d.$el?f(d):qo.has(g.tag)&&c.push(d)}}for(const d of c){const g=d.tag.tagPosition||"head";d.$el=n.createElement(d.tag.tag),f(d),u[g]=u[g]||n.createDocumentFragment(),u[g].appendChild(d.$el)}for(const d of h)await e.hooks.callHook("dom:renderTag",d,n,l);u.head&&n.head.appendChild(u.head),u.bodyOpen&&n.body.insertBefore(u.bodyOpen,n.body.firstChild),u.bodyClose&&n.body.appendChild(u.bodyClose);for(const d in a.pendingSideEffects)a.pendingSideEffects[d]();e._dom=a,await e.hooks.callHook("dom:rendered",{renders:h}),r()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function th(e={}){const t=e.domOptions?.render||Yr;e.document=e.document||(typeof window<"u"?document:void 0);const n=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return Bd({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]})}function nh(e,t){let n=0;return()=>{const s=++n;t(()=>{n===s&&e()})}}function sh(e={}){const t=th({domOptions:{render:nh(()=>Yr(t),n=>setTimeout(n,0))},...e});return t.install=Ud(t),t}const rh={disableDefaults:!0},oh=Ct({name:"nuxt:head",enforce:"pre",setup(e){const t=sh(rh);e.vueApp.use(t);{let n=!0;const s=async()=>{n=!1,await Yr(t)};t.hooks.hook("dom:beforeRender",r=>{r.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||s()}),e.hooks.hook("app:error",s),e.hooks.hook("app:suspense:resolve",s)}}}),ih=async e=>{let t,n;const s=([t,n]=Ha(()=>Xr({path:e.path})),t=await t,n(),t);if(s.redirect)return Ot(s.redirect,{acceptRelative:!0})?(window.location.href=s.redirect,!1):s.redirect},ah=[ih];function er(e){const t=e&&typeof e=="object"?e:{};typeof e=="object"&&(e=La({pathname:e.path||"",search:Ra(e.query||{}),hash:e.hash||""}));const n=new URL(e.toString(),window.location.href);return{path:n.pathname,fullPath:e,query:Ls(n.search),hash:n.hash,params:t.params||{},name:void 0,matched:t.matched||[],redirectedFrom:void 0,meta:t.meta||{},href:e}}const lh=Ct({name:"nuxt:router",enforce:"pre",setup(e){const t=mf(window.location.pathname,fn().app.baseURL)+window.location.search+window.location.hash,n=[],s={"navigate:before":[],"resolve:before":[],"navigate:after":[],error:[]},r=(u,h)=>(s[u].push(h),()=>s[u].splice(s[u].indexOf(h),1)),o=fn().app.baseURL,i=dt(er(t));async function a(u,h){try{const d=er(u);for(const g of s["navigate:before"]){const y=await g(d,i);if(y===!1||y instanceof Error)return;if(typeof y=="string"&&y.length)return a(y,!0)}for(const g of s["resolve:before"])await g(d,i);Object.assign(i,d),window.history[h?"replaceState":"pushState"]({},"",$n(o,d.fullPath)),e.isHydrating||await e.runWithContext(hd);for(const g of s["navigate:after"])await g(d,i)}catch(d){for(const g of s.error)await g(d)}}const f={currentRoute:ie(()=>i),isReady:()=>Promise.resolve(),options:{},install:()=>Promise.resolve(),push:u=>a(u,!1),replace:u=>a(u,!0),back:()=>window.history.go(-1),go:u=>window.history.go(u),forward:()=>window.history.go(1),beforeResolve:u=>r("resolve:before",u),beforeEach:u=>r("navigate:before",u),afterEach:u=>r("navigate:after",u),onError:u=>r("error",u),resolve:er,addRoute:(u,h)=>{n.push(h)},getRoutes:()=>n,hasRoute:u=>n.some(h=>h.name===u),removeRoute:u=>{const h=n.findIndex(d=>d.name===u);h!==-1&&n.splice(h,1)}};e.vueApp.component("RouterLink",mt({functional:!0,props:{to:{type:String,required:!0},custom:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:String},setup:(u,{slots:h})=>{const d=()=>a(u.to,u.replace);return()=>{const g=f.resolve(u.to);return u.custom?h.default?.({href:u.to,navigate:d,route:g}):un("a",{href:u.to,onClick:y=>(y.preventDefault(),d())},h)}}})),window.addEventListener("popstate",u=>{const h=u.target.location;f.replace(h.href.replace(h.origin,""))}),e._route=i,e._middleware||={global:[],named:{}};const c=e.payload.state._layout;return e.hooks.hookOnce("app:created",async()=>{f.beforeEach(async(u,h)=>{u.meta=dt(u.meta||{}),e.isHydrating&&c&&!Et(u.meta.layout)&&(u.meta.layout=c),e._processingMiddleware=!0;{const d=new Set([...ah,...e._middleware.global]);{const g=await e.runWithContext(()=>Xr({path:u.path}));if(g.appMiddleware)for(const y in g.appMiddleware){const w=e._middleware.named[y];if(!w)return;g.appMiddleware[y]?d.add(w):d.delete(w)}}for(const g of d){const y=await e.runWithContext(()=>g(u,h));if(y!==!0&&(y||y===!1))return y}}}),f.afterEach(()=>{delete e._processingMiddleware}),await f.replace(t),yf(i.fullPath,t)||await e.runWithContext(()=>qa(i.fullPath))}),{provide:{route:i,router:f}}}}),Sr=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),ch=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),Ns=e=>{const t=Te();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{Sr(()=>e())}):Sr(()=>e())},uh=Ct({name:"nuxt:payload",setup(e){const t=new Set;pt().beforeResolve(async(n,s)=>{if(n.path===s.path)return;const r=await Zo(n.path);if(r){for(const o of t)delete e.static.data[o];for(const o in r.data)o in e.static.data||t.add(o),e.static.data[o]=r.data[o]}}),Ns(()=>{e.hooks.hook("link:prefetch",async n=>{const{hostname:s}=new URL(n,window.location.href);s===window.location.hostname&&await Zo(n).catch(()=>{console.warn("[nuxt] Error preloading payload for",n)})}),navigator.connection?.effectiveType!=="slow-2g"&&setTimeout(Is,1e3)})}}),fh=Ct(()=>{const e=pt();Ns(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),dh=Ct(e=>{let t;async function n(){let s;try{s=await Is()}catch(r){const o=r;if(!("status"in o&&(o.status===404||o.status===403)))throw o}t&&clearTimeout(t),t=setTimeout(n,Fo);try{const r=await $fetch(Jr("builds/latest.json")+`?${Date.now()}`);r.id!==s?.id&&(e.hooks.callHook("app:manifest:update",r),t&&clearTimeout(t))}catch{}}Ns(()=>{t=setTimeout(n,Fo)})});function hh(e={}){const t=e.path||window.location.pathname;let n={};try{n=fs(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:Te().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}const ph=Ct({name:"nuxt:chunk-reload",setup(e){const t=pt(),n=fn(),s=new Set;t.beforeEach(()=>{s.clear()}),e.hook("app:chunkError",({error:o})=>{s.add(o)});function r(o){const i=$n(n.app.baseURL,o.fullPath);hh({path:i,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(r)}),t.onError((o,i)=>{s.has(o)&&r(i)})}}),mh=Ee(()=>Ce(()=>import("./BiAFyfuC.js"),[],import.meta.url).then(e=>e.default||e.default||e)),gh=Ee(()=>Ce(()=>import("./w6Ba9RFs.js"),[],import.meta.url).then(e=>e.default||e.default||e)),yh=Ee(()=>Ce(()=>import("./DxtrUEuP.js"),[],import.meta.url).then(e=>e.default||e.default||e)),_h=Ee(()=>Ce(()=>import("./Cy7ER5AW.js"),[],import.meta.url).then(e=>e.default||e.default||e)),vh=Ee(()=>Ce(()=>import("./CZl87j9X.js"),[],import.meta.url).then(e=>e.default||e.default||e)),bh=Ee(()=>Ce(()=>import("./C_9V6maS.js"),[],import.meta.url).then(e=>e.default||e.default||e)),wh=Ee(()=>Ce(()=>import("./vtjzglMa.js"),[],import.meta.url).then(e=>e.default||e.default||e)),xh=Ee(()=>Ce(()=>import("./nELEOAeo.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Sh=Ee(()=>Ce(()=>import("./CrS-Eymw.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Eh=Ee(()=>Ce(()=>import("./B1_8x1Pc.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Th=Ee(()=>Ce(()=>import("./Cx6idk6p.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Ch=Ee(()=>Ce(()=>import("./C7tL_S05.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Rh=Ee(()=>Ce(()=>import("./xgtAgxcg.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Ph=Ee(()=>Ce(()=>import("./D6oGVCO1.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Ah=Ee(()=>Ce(()=>import("./nqGpOCzb.js"),[],import.meta.url).then(e=>e.default||e.default||e)),kh=Ee(()=>Ce(()=>import("./PSW7UpGH.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Mh=Ee(()=>Ce(()=>import("./oPyquYyc.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Oh=Ee(()=>Ce(()=>import("./DKtnr7fR.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Lh=[["BodyEBody",mh],["ButtonEButton",gh],["CodeBlockECodeBlock",yh],["CodeInlineECodeInline",_h],["ColumnEColumn",vh],["ContainerEContainer",bh],["FontEFont",wh],["HeadEHead",xh],["HeadingEHeading",Sh],["HrEHr",Eh],["HtmlEHtml",Th],["ImgEImg",Ch],["LinkELink",Rh],["PreviewEPreview",Ph],["RowERow",Ah],["SectionESection",kh],["StyleEStyle",Mh],["TextEText",Oh]],$h=Ct({name:"nuxt:global-components",setup(e){for(const[t,n]of Lh)e.vueApp.component(t,n),e.vueApp.component("Lazy"+t,n)}}),Dh=Ct(()=>{}),Ih=[eh,oh,lh,uh,fh,dh,ph,$h,Dh],Qr=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},Nh={},Hh={class:"n-loading n-panel-grids-center"},jh={class:"flex flex-col animate-pulse items-center text-lg"};function zh(e,t){return q(),fe("div",Hh,[ce("div",jh,[t[1]||(t[1]=ce("div",{class:"i-carbon-circle-dash animate-spin text-4xl op50"},null,-1)),Ge(e.$slots,"default",{},()=>[t[0]||(t[0]=je(" Loading... ",-1))])])])}const el=Object.assign(Qr(Nh,[["render",zh]]),{__name:"NLoading"}),Hs={__name:"NIcon",props:{icon:{type:String,required:!1}},setup(e){return(t,n)=>(q(),fe("div",{class:ot(["n-icon",e.icon])},null,2))}},Bh={class:"n-tip n-tip-base"},tl={__name:"NTip",props:{icon:{type:String,required:!1}},setup(e){return(t,n)=>{const s=Hs;return q(),fe("div",Bh,[Ge(t.$slots,"icon",{},()=>[e.icon?(q(),Se(s,{key:0,icon:e.icon,class:"n-tip-icon"},null,8,["icon"])):Je("",!0)]),ce("div",null,[Ge(t.$slots,"default")])])}}},Fh={},Uh={class:"n-card n-card-base"};function Vh(e,t){return q(),fe("div",Uh,[Ge(e.$slots,"default")])}const Zr=Object.assign(Qr(Fh,[["render",Vh]]),{__name:"NCard"}),Wh={flex:"~ gap-3","items-center":""},nl={__name:"NIconTitle",props:{icon:{type:String,required:!1},text:{type:String,required:!1}},setup(e){return(t,n)=>(q(),fe("div",Wh,[e.icon?(q(),fe("div",{key:0,class:ot(e.icon)},null,2)):Je("",!0),Ge(t.$slots,"default",{},()=>[ce("div",null,Ke(e.text),1)])]))}},qh={},Kh={class:"n-badge"};function Jh(e,t){return q(),fe("span",Kh,[Ge(e.$slots,"default")])}const eo=Object.assign(Qr(qh,[["render",Jh]]),{__name:"NBadge"});function sl(e){return Ss()?(mi(e),!0):!1}const to=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Gh=e=>typeof e<"u",Xh=Object.prototype.toString,Yh=e=>Xh.call(e)==="[object Object]",Qh=()=>{};function Zh(...e){if(e.length!==1)return $r(...e);const t=e[0];return typeof t=="function"?Rs(Ql(()=>({get:t,set:Qh}))):we(t)}function ep(e,t){function n(...s){return new Promise((r,o)=>{Promise.resolve(e(()=>t.apply(this,s),{fn:t,thisArg:this,args:s})).then(r).catch(o)})}return n}const rl=e=>e();function tp(e=rl,t={}){const{initialState:n="active"}=t,s=Zh(n==="active");function r(){s.value=!1}function o(){s.value=!0}const i=(...a)=>{s.value&&e(...a)};return{isActive:Rs(s),pause:r,resume:o,eventFilter:i}}function np(e){let t;function n(){return t||(t=e()),t}return n.reset=async()=>{const s=t;t=void 0,s&&await s},n}function tr(e){return Array.isArray(e)?e:[e]}function sp(e){return it()}function rp(e,t,n={}){const{eventFilter:s=rl,...r}=n;return De(e,ep(s,t),r)}function op(e,t,n={}){const{eventFilter:s,initialState:r="active",...o}=n,{eventFilter:i,pause:a,resume:l,isActive:f}=tp(s,{initialState:r});return{stop:rp(e,t,{...o,eventFilter:i}),pause:a,resume:l,isActive:f}}function ip(e,t=!0,n){sp()?hn(e,n):t?e():ft(e)}function ap(e,t,n={}){const{immediate:s=!0,immediateCallback:r=!1}=n,o=et(!1);let i;function a(){i&&(clearTimeout(i),i=void 0)}function l(){o.value=!1,a()}function f(...c){r&&e(),a(),o.value=!0,i=setTimeout(()=>{o.value=!1,i=void 0,e(...c)},Re(t))}return s&&(o.value=!0,to&&f()),sl(l),{isPending:Kl(o),start:f,stop:l}}function lp(e,t,n){return De(e,t,{...n,immediate:!0})}const ys=to?window:void 0,ol=to?window.navigator:void 0;function cp(e){var t;const n=Re(e);return(t=n?.$el)!=null?t:n}function _s(...e){const t=[],n=()=>{t.forEach(a=>a()),t.length=0},s=(a,l,f,c)=>(a.addEventListener(l,f,c),()=>a.removeEventListener(l,f,c)),r=ie(()=>{const a=tr(Re(e[0])).filter(l=>l!=null);return a.every(l=>typeof l!="string")?a:void 0}),o=lp(()=>{var a,l;return[(l=(a=r.value)==null?void 0:a.map(f=>cp(f)))!=null?l:[ys].filter(f=>f!=null),tr(Re(r.value?e[1]:e[0])),tr(B(r.value?e[2]:e[1])),Re(r.value?e[3]:e[2])]},([a,l,f,c])=>{if(n(),!a?.length||!l?.length||!f?.length)return;const u=Yh(c)?{...c}:c;t.push(...a.flatMap(h=>l.flatMap(d=>f.map(g=>s(h,d,g,u)))))},{flush:"post"}),i=()=>{o(),n()};return sl(n),i}function up(){const e=et(!1),t=it();return t&&hn(()=>{e.value=!0},t),e}function il(e){const t=up();return ie(()=>(t.value,!!e()))}function ei(e,t={}){const{controls:n=!1,navigator:s=ol}=t,r=il(()=>s&&"permissions"in s),o=et(),i=typeof e=="string"?{name:e}:e,a=et(),l=()=>{var c,u;a.value=(u=(c=o.value)==null?void 0:c.state)!=null?u:"prompt"};_s(o,"change",l,{passive:!0});const f=np(async()=>{if(r.value){if(!o.value)try{o.value=await s.permissions.query(i)}catch{o.value=void 0}finally{l()}if(n)return ue(o.value)}});return f(),n?{state:a,isSupported:r,query:f}:a}function fp(e={}){const{navigator:t=ol,read:n=!1,source:s,copiedDuring:r=1500,legacy:o=!1}=e,i=il(()=>t&&"clipboard"in t),a=ei("clipboard-read"),l=ei("clipboard-write"),f=ie(()=>i.value||o),c=et(""),u=et(!1),h=ap(()=>u.value=!1,r,{immediate:!1});async function d(){let E=!(i.value&&x(a.value));if(!E)try{c.value=await t.clipboard.readText()}catch{E=!0}E&&(c.value=w())}f.value&&n&&_s(["copy","cut"],d,{passive:!0});async function g(E=Re(s)){if(f.value&&E!=null){let m=!(i.value&&x(l.value));if(!m)try{await t.clipboard.writeText(E)}catch{m=!0}m&&y(E),c.value=E,u.value=!0,h.start()}}function y(E){const m=document.createElement("textarea");m.value=E??"",m.style.position="absolute",m.style.opacity="0",document.body.appendChild(m),m.select(),document.execCommand("copy"),m.remove()}function w(){var E,m,v;return(v=(m=(E=document?.getSelection)==null?void 0:E.call(document))==null?void 0:m.toString())!=null?v:""}function x(E){return E==="granted"||E==="prompt"}return{isSupported:f,text:c,copied:u,copy:g}}function dp(e){return JSON.parse(JSON.stringify(e))}const Un=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Vn="__vueuse_ssr_handlers__",hp=pp();function pp(){return Vn in Un||(Un[Vn]=Un[Vn]||{}),Un[Vn]}function mp(e,t){return hp[e]||t}function gp(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const yp={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},ti="vueuse-storage";function _p(e,t,n,s={}){var r;const{flush:o="pre",deep:i=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:f=!1,shallow:c,window:u=ys,eventFilter:h,onError:d=U=>{console.error(U)},initOnMounted:g}=s,y=(c?et:we)(typeof t=="function"?t():t),w=ie(()=>Re(e));if(!n)try{n=mp("getDefaultStorage",()=>{var U;return(U=ys)==null?void 0:U.localStorage})()}catch(U){d(U)}if(!n)return y;const x=Re(t),E=gp(x),m=(r=s.serializer)!=null?r:yp[E],{pause:v,resume:b}=op(y,U=>z(U),{flush:o,deep:i,eventFilter:h});De(w,()=>ee(),{flush:o});let L=!1;const F=U=>{g&&!L||ee(U)},G=U=>{g&&!L||ae(U)};u&&a&&(n instanceof Storage?_s(u,"storage",F,{passive:!0}):_s(u,ti,G)),g?ip(()=>{L=!0,ee()}):ee();function Y(U,se){if(u){const H={key:w.value,oldValue:U,newValue:se,storageArea:n};u.dispatchEvent(n instanceof Storage?new StorageEvent("storage",H):new CustomEvent(ti,{detail:H}))}}function z(U){try{const se=n.getItem(w.value);if(U==null)Y(se,null),n.removeItem(w.value);else{const H=m.write(U);se!==H&&(n.setItem(w.value,H),Y(se,H))}}catch(se){d(se)}}function oe(U){const se=U?U.newValue:n.getItem(w.value);if(se==null)return l&&x!=null&&n.setItem(w.value,m.write(x)),x;if(!U&&f){const H=m.read(se);return typeof f=="function"?f(H,x):E==="object"&&!Array.isArray(H)?{...x,...H}:H}else return typeof se!="string"?se:m.read(se)}function ee(U){if(!(U&&U.storageArea!==n)){if(U&&U.key==null){y.value=x;return}if(!(U&&U.key!==w.value)){v();try{const se=m.write(y.value);(U===void 0||U?.newValue!==se)&&(y.value=oe(U))}catch(se){d(se)}finally{U?ft(b):b()}}}}function ae(U){ee(U.detail)}return y}function vp(e,t,n={}){const{window:s=ys}=n;return _p(e,t,s?.localStorage,n)}function al(e,t,n,s={}){var r,o,i;const{clone:a=!1,passive:l=!1,eventName:f,deep:c=!1,defaultValue:u,shouldEmit:h}=s,d=it(),g=n||d?.emit||((r=d?.$emit)==null?void 0:r.bind(d))||((i=(o=d?.proxy)==null?void 0:o.$emit)==null?void 0:i.bind(d?.proxy));let y=f;y=y||`update:${t.toString()}`;const w=m=>a?typeof a=="function"?a(m):dp(m):m,x=()=>Gh(e[t])?w(e[t]):u,E=m=>{h?h(m)&&g(y,m):g(y,m)};if(l){const m=x(),v=we(m);let b=!1;return De(()=>e[t],L=>{b||(b=!0,v.value=w(L),ft(()=>b=!1))}),De(v,L=>{!b&&(L!==e[t]||c)&&E(L)},{deep:c}),v}else return ie({get(){return x()},set(m){E(m)}})}const bp=["disabled"],wp={key:0,value:"",disabled:"",hidden:""},xp={__name:"NSelect",props:{modelValue:{type:null,required:!1,default:void 0},placeholder:{type:String,required:!1,default:""},icon:{type:String,required:!1,default:""},disabled:{type:Boolean,required:!1,default:!1}},emits:[],setup(e,{emit:t}){const r=al(e,"modelValue",t,{passive:!0});return(o,i)=>{const a=Hs;return q(),fe("div",{class:ot(["n-select flex flex items-center border rounded n-bg-base px-2 py-1 focus-within:border-context focus-within:n-focus-base",e.disabled?"border-gray:10":"n-border-base"])},[Ge(o.$slots,"icon",{},()=>[e.icon?(q(),Se(a,{key:0,icon:e.icon,class:"mr-0.4em text-1.1em op50"},null,8,["icon"])):Je("",!0)]),Hi(ce("select",{"onUpdate:modelValue":i[0]||(i[0]=l=>_e(r)?r.value=l:null),disabled:e.disabled,class:ot(["w-full flex-auto n-bg-base !outline-none",e.disabled?"appearance-none":""])},[e.placeholder?(q(),fe("option",wp,Ke(e.placeholder),1)):Je("",!0),Ge(o.$slots,"default")],10,bp),[[Nu,B(r)]])],2)}}},Sp={class:"space-y-2"},Ep={class:"flex items-center justify-between"},Tp=["value"],Cp=mt({__name:"EmailTemplateSelector",props:{emailTemplates:{},selectedTemplate:{}},emits:["select"],setup(e){return(t,n)=>{const s=nl,r=eo,o=xp,i=Zr;return q(),fe("div",Sp,[ce("div",Ep,[ne(s,{text:"Select Your Email Template:",icon:"carbon:list"}),ne(r,null,{default:xe(()=>[je(Ke(t.emailTemplates.length)+" templates ",1)]),_:1})]),t.emailTemplates.length>0?(q(),Se(i,{key:0,class:"grid gap-3"},{default:xe(()=>[ne(o,{"model-value":t.selectedTemplate,"onUpdate:modelValue":n[0]||(n[0]=a=>t.$emit("select",a))},{default:xe(()=>[(q(!0),fe($e,null,Ji(t.emailTemplates,a=>(q(),fe("option",{key:a.filename,value:a},Ke(a.filename),9,Tp))),128))]),_:1},8,["model-value"])]),_:1})):Je("",!0)])}}}),Rp=Object.assign(Cp,{__name:"EmailTemplateSelector"}),Pp={class:"n-select-tabs flex flex-inline flex-wrap items-center border n-border-base rounded n-bg-base"},Ap=["disabled","title"],kp=["disabled","value","title"],Mp={__name:"NSelectTabs",props:{modelValue:{type:null,required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:!1},options:{type:Array,required:!0}},emits:[],setup(e,{emit:t}){const r=al(e,"modelValue",t,{passive:!0});return(o,i)=>(q(),fe("fieldset",Pp,[(q(!0),fe($e,null,Ji(e.options,(a,l)=>(q(),fe("label",{key:a.label,disabled:e.disabled,class:ot(["relative n-border-base px-0.5em py-0.1em hover:n-bg-active",[l?"border-l n-border-base ml--1px":"",a.value===B(r)?"n-bg-active":""]]),title:a.label},[ce("div",{class:ot([a.value===B(r)?"":"op35"])},Ke(a.label),3),Hi(ce("input",{"onUpdate:modelValue":i[0]||(i[0]=f=>_e(r)?r.value=f:null),type:"radio",disabled:e.disabled,value:a.value,title:a.label,class:"absolute inset-0 op-0.1"},null,8,kp),[[Iu,B(r)]])],10,Ap))),128))]))}};async function ll(e,t=pt()){const{path:n,matched:s}=t.resolve(e);if(!s.length||(t._routePreloaded||=new Set,t._routePreloaded.has(n)))return;const r=t._preloadPromises||=[];if(r.length>4)return Promise.all(r).then(()=>ll(e,t));t._routePreloaded.add(n);for(const o of s){const i=o.components?.default;if(typeof i!="function")continue;const a=Promise.resolve(i()).catch(()=>{}).finally(()=>r.splice(r.indexOf(a)));r.push(a)}await Promise.all(r)}const Op=(...e)=>e.find(t=>t!==void 0);function Lp(e){const t=e.componentName||"NuxtLink";function n(o){return typeof o=="string"&&o.startsWith("#")}function s(o,i,a){const l=a??e.trailingSlash;if(!o||l!=="append"&&l!=="remove")return o;if(typeof o=="string")return Wn(o,l);const f="path"in o&&o.path!==void 0?o.path:i(o).path;return{...o,name:void 0,path:Wn(f,l)}}function r(o){const i=pt(),a=fn(),l=ie(()=>!!o.target&&o.target!=="_self"),f=ie(()=>{const w=o.to||o.href||"";return typeof w=="string"&&Ot(w,{acceptRelative:!0})}),c=is("RouterLink"),u=c&&typeof c!="string"?c.useLink:void 0,h=ie(()=>{if(o.external)return!0;const w=o.to||o.href||"";return typeof w=="object"?!1:w===""||f.value}),d=ie(()=>{const w=o.to||o.href||"";return h.value?w:s(w,i.resolve,o.trailingSlash)}),g=h.value?void 0:u?.({...o,to:d}),y=ie(()=>{const w=o.trailingSlash??e.trailingSlash;if(!d.value||f.value||n(d.value))return d.value;if(h.value){const x=typeof d.value=="object"&&"path"in d.value?wr(d.value):d.value,E=typeof x=="object"?i.resolve(x).href:x;return Wn(E,w)}return typeof d.value=="object"?i.resolve(d.value)?.href??null:Wn($n(a.app.baseURL,d.value),w)});return{to:d,hasTarget:l,isAbsoluteUrl:f,isExternal:h,href:y,isActive:g?.isActive??ie(()=>d.value===i.currentRoute.value.path),isExactActive:g?.isExactActive??ie(()=>d.value===i.currentRoute.value.path),route:g?.route??ie(()=>i.resolve(d.value)),async navigate(w){await qa(y.value,{replace:o.replace,external:h.value||l.value})}}}return mt({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,default:void 0,required:!1}},useLink:r,setup(o,{slots:i}){const a=pt(),{to:l,href:f,navigate:c,isExternal:u,hasTarget:h,isAbsoluteUrl:d}=r(o),g=et(!1),y=we(null),w=m=>{y.value=o.custom?m?.$el?.nextElementSibling:m?.$el};function x(m){return!g.value&&(typeof o.prefetchOn=="string"?o.prefetchOn===m:o.prefetchOn?.[m]??e.prefetchOn?.[m])&&(o.prefetch??e.prefetch)!==!1&&o.noPrefetch!==!0&&o.target!=="_blank"&&!Np()}async function E(m=Te()){if(g.value)return;g.value=!0;const v=typeof l.value=="string"?l.value:u.value?wr(l.value):a.resolve(l.value).fullPath,b=u.value?new URL(v,window.location.href).href:v;await Promise.all([m.hooks.callHook("link:prefetch",b).catch(()=>{}),!u.value&&!h.value&&ll(l.value,a).catch(()=>{})])}if(x("visibility")){const m=Te();let v,b=null;hn(()=>{const L=Dp();Ns(()=>{v=Sr(()=>{y?.value?.tagName&&(b=L.observe(y.value,async()=>{b?.(),b=null,await E(m)}))})})}),Ln(()=>{v&&ch(v),b?.(),b=null})}return()=>{if(!u.value&&!h.value&&!n(l.value)){const b={ref:w,to:l.value,activeClass:o.activeClass||e.activeClass,exactActiveClass:o.exactActiveClass||e.exactActiveClass,replace:o.replace,ariaCurrentValue:o.ariaCurrentValue,custom:o.custom};return o.custom||(x("interaction")&&(b.onPointerenter=E.bind(null,void 0),b.onFocus=E.bind(null,void 0)),g.value&&(b.class=o.prefetchedClass||e.prefetchedClass),b.rel=o.rel||void 0),un(is("RouterLink"),b,i.default)}const m=o.target||null,v=Op(o.noRel?"":o.rel,e.externalRelAttribute,d.value||h.value?"noopener noreferrer":"")||null;return o.custom?i.default?i.default({href:f.value,navigate:c,prefetch:E,get route(){if(!f.value)return;const b=new URL(f.value,window.location.href);return{path:b.pathname,fullPath:b.pathname,get query(){return Ls(b.search)},hash:b.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:f.value}},rel:v,target:m,isExternal:u.value||h.value,isActive:!1,isExactActive:!1}):null:un("a",{ref:y,href:f.value||null,rel:v,target:m,onClick:b=>{if(!(u.value||h.value))return b.preventDefault(),o.replace?a.replace(f.value):a.push(f.value)}},i.default?.())}}})}const $p=Lp(qf);function Wn(e,t){const n=t==="append"?hs:$s;return Ot(e)&&!e.startsWith("http")?e:n(e,!0)}function Dp(){const e=Te();if(e._observer)return e._observer;let t=null;const n=new Map,s=(o,i)=>(t||=new IntersectionObserver(a=>{for(const l of a){const f=n.get(l.target);(l.isIntersecting||l.intersectionRatio>0)&&f&&f()}}),n.set(o,i),t.observe(o),()=>{n.delete(o),t?.unobserve(o),n.size===0&&(t?.disconnect(),t=null)});return e._observer={observe:s}}const Ip=/2g/;function Np(){const e=navigator.connection;return!!(e&&(e.saveData||Ip.test(e.effectiveType)))}const Hp=mt({name:"NButton",props:{to:String,icon:String,border:{type:Boolean,default:!0},disabled:Boolean,type:{type:String,default:"button"}},setup(e,{attrs:t,slots:n}){return()=>un(e.to?$p:"button",{to:e.to,...t,...!e.to&&{type:e.type},...e.disabled?{disabled:!0}:{tabindex:0},class:[e.border?"n-button-base active:n-button-active focus-visible:n-focus-base hover:n-button-hover":"",n.default?"":"n-icon-button","n-button n-transition n-disabled:n-disabled"].join(" ")},{default:()=>[Ge(n,"icon",{},()=>e.icon?[un(Hs,{icon:e.icon,class:n.default?"n-button-icon":""})]:[]),Ge(n,"default")]})}}),jp={class:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4"},zp={class:"flex flex-col sm:flex-row sm:items-center gap-4"},Bp={class:"flex items-center gap-3"},Fp={class:"flex items-center gap-3"},Up={class:"flex items-center gap-4"},Vp={class:"flex items-center gap-2"},Wp=mt({__name:"EmailViewerToolbar",props:{viewMode:{},contentMode:{},isLoading:{type:Boolean},renderedHtml:{},sourceCode:{}},emits:["update:viewMode","update:contentMode","refresh"],setup(e,{emit:t}){const n=e,s=t,r=[{value:"desktop",label:"Desktop"},{value:"mobile",label:"Mobile"}],o=[{value:"preview",label:"Preview"},{value:"source",label:"Source Code"}],i=ie({get:()=>n.viewMode,set:g=>s("update:viewMode",g)}),a=ie({get:()=>n.contentMode,set:g=>s("update:contentMode",g)}),{copy:l,copied:f,isSupported:c}=fp(),u=async()=>{c&&n.sourceCode&&await l(n.sourceCode)},h=async()=>{c&&n.renderedHtml&&await l(n.renderedHtml)},d=()=>{s("refresh")};return(g,y)=>{const w=Mp,x=eo,E=Hp;return q(),fe("div",jp,[ce("div",zp,[ce("div",Bp,[y[2]||(y[2]=ce("span",{class:"text-sm font-medium text-gray-700 dark:text-gray-300"}," Viewport: ",-1)),ne(w,{modelValue:B(i),"onUpdate:modelValue":y[0]||(y[0]=m=>_e(i)?i.value=m:null),options:r},null,8,["modelValue"]),ne(x,{class:"hidden sm:inline-flex"},{default:xe(()=>[je(Ke(g.viewMode==="desktop"?"800px":"375px"),1)]),_:1})]),y[4]||(y[4]=ce("div",{class:"hidden sm:block w-px h-8 bg-gray-200 dark:bg-gray-700"},null,-1)),ce("div",Fp,[y[3]||(y[3]=ce("span",{class:"text-sm font-medium text-gray-700 dark:text-gray-300"}," View: ",-1)),ne(w,{modelValue:B(a),"onUpdate:modelValue":y[1]||(y[1]=m=>_e(a)?a.value=m:null),options:o},null,8,["modelValue"])])]),ce("div",Up,[ce("div",Vp,[g.contentMode==="preview"&&g.renderedHtml?(q(),Se(E,{key:0,icon:"carbon:update-now",disabled:g.isLoading,onClick:d},{default:xe(()=>[...y[5]||(y[5]=[je(" Refresh ",-1)])]),_:1},8,["disabled"])):Je("",!0),g.contentMode==="preview"&&g.renderedHtml&&B(c)?(q(),Se(E,{key:1,icon:B(f)?"carbon:checkmark-outline":"carbon:copy",onClick:h},{default:xe(()=>[je(Ke(B(f)?"Copied":"Copy"),1)]),_:1},8,["icon"])):Je("",!0),g.contentMode==="source"&&g.sourceCode&&B(c)?(q(),Se(E,{key:2,icon:B(f)?"carbon:checkmark-outline":"carbon:copy",onClick:u},{default:xe(()=>[je(Ke(B(f)?"Copied":"Copy"),1)]),_:1},8,["icon"])):Je("",!0)])])])}}}),qp=Object.assign(Wp,{__name:"EmailViewerToolbar"}),Kp={class:"border rounded-lg overflow-hidden bg-white shadow-sm"},Jp={key:0,class:"flex items-center justify-center h-64"},Gp={class:"text-center"},Xp=["srcdoc"],Yp=mt({__name:"EmailPreviewPane",props:{isLoading:{type:Boolean},renderedHtml:{},viewMode:{}},setup(e){const t=e,n=ie(()=>t.viewMode==="mobile"?"max-w-[375px] mx-auto":"max-w-[800px] mx-auto");return(s,r)=>{const o=is("UIcon");return q(),fe("div",null,[ce("div",Kp,[s.isLoading?(q(),fe("div",Jp,[ce("div",Gp,[ne(o,{name:"i-heroicons-arrow-path",class:"w-8 h-8 text-blue-500 mx-auto mb-2 animate-spin"}),r[0]||(r[0]=ce("p",{class:"text-sm text-gray-500"}," Rendering template... ",-1))])])):s.renderedHtml?(q(),fe("iframe",{key:1,srcdoc:s.renderedHtml,class:ot(["w-full h-screen border-0",B(n)]),width:"100%",height:"100%",sandbox:"allow-same-origin allow-scripts"},null,10,Xp)):Je("",!0)])])}}}),Qp=Object.assign(Yp,{__name:"EmailPreviewPane"}),Zp={class:"bg-gray-50 dark:bg-gray-800 p-4 overflow-auto"},em={class:"text-sm text-gray-800 dark:text-gray-200 whitespace-pre-wrap font-mono"},tm=mt({__name:"EmailSourceCodeViewer",props:{sourceCode:{}},setup(e){return(t,n)=>{const s=Zr;return q(),Se(s,{class:"p-0"},{default:xe(()=>[ce("div",Zp,[ce("pre",em,[ce("code",null,Ke(t.sourceCode||"Loading source code..."),1)])])]),_:1})}}}),nm=Object.assign(tm,{__name:"EmailSourceCodeViewer"});function cl(e){return new URL(globalThis.location.href)}const sm={trailing:!0};function rm(e,t=25,n={}){if(n={...sm,...n},!Number.isFinite(t))throw new TypeError("Expected `wait` to be a finite number");let s,r,o=[],i,a;const l=(u,h)=>(i=om(e,u,h),i.finally(()=>{if(i=null,n.trailing&&a&&!r){const d=l(u,a);return a=null,d}}),i),f=function(...u){return n.trailing&&(a=u),i||new Promise(h=>{const d=!r&&n.leading;clearTimeout(r),r=setTimeout(()=>{r=null;const g=n.leading?s:l(this,u);a=null;for(const y of o)y(g);o=[]},t),d?(s=l(this,u),h(s)):o.push(h)})},c=u=>{u&&(clearTimeout(u),r=null)};return f.isPending=()=>!!r,f.cancel=()=>{c(r),o=[],a=null},f.flush=()=>{if(c(r),!a||i)return;const u=a;return a=null,l(this,u)},f}async function om(e,t,n){return await e.apply(t,n)}function im(e){return typeof e=="string"?`'${e}'`:new am().serialize(e)}const am=(function(){class e{#e=new Map;compare(n,s){const r=typeof n,o=typeof s;return r==="string"&&o==="string"?n.localeCompare(s):r==="number"&&o==="number"?n-s:String.prototype.localeCompare.call(this.serialize(n,!0),this.serialize(s,!0))}serialize(n,s){if(n===null)return"null";switch(typeof n){case"string":return s?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 s=Object.prototype.toString.call(n);if(s!=="[object Object]")return this.serializeBuiltInType(s.length<10?`unknown:${s}`:s.slice(8,-1),n);const r=n.constructor,o=r===Object||r===void 0?"":r.name;if(o!==""&&globalThis[o]===r)return this.serializeBuiltInType(o,n);if(typeof n.toJSON=="function"){const i=n.toJSON();return o+(i!==null&&typeof i=="object"?this.$object(i):`(${this.serialize(i)})`)}return this.serializeObjectEntries(o,Object.entries(n))}serializeBuiltInType(n,s){const r=this["$"+n];if(r)return r.call(this,s);if(typeof s?.entries=="function")return this.serializeObjectEntries(n,s.entries());throw new Error(`Cannot serialize ${n}`)}serializeObjectEntries(n,s){const r=Array.from(s).sort((i,a)=>this.compare(i[0],a[0]));let o=`${n}{`;for(let i=0;i<r.length;i++){const[a,l]=r[i];o+=`${this.serialize(a,!0)}:${this.serialize(l)}`,i<r.length-1&&(o+=",")}return o+"}"}$object(n){let s=this.#e.get(n);return s===void 0&&(this.#e.set(n,`#${this.#e.size}`),s=this.serializeObject(n),this.#e.set(n,s)),s}$function(n){const s=Function.prototype.toString.call(n);return s.slice(-15)==="[native code] }"?`${n.name||""}()[native]`:`${n.name}(${n.length})${s.replace(/\s*\n\s*/g,"")}`}$Array(n){let s="[";for(let r=0;r<n.length;r++)s+=this.serialize(n[r]),r<n.length-1&&(s+=",");return s+"]"}$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((s,r)=>this.compare(s,r)))}`}$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})(),lm=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],cm=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],um="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",Dt=[];class fm{_data=new Xt;_hash=new Xt([...lm]);_nDataBytes=0;_minBufferSize=0;finalize(t){t&&this._append(t);const n=this._nDataBytes*8,s=this._data.sigBytes*8;return this._data.words[s>>>5]|=128<<24-s%32,this._data.words[(s+64>>>9<<4)+14]=Math.floor(n/4294967296),this._data.words[(s+64>>>9<<4)+15]=n,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(t,n){const s=this._hash.words;let r=s[0],o=s[1],i=s[2],a=s[3],l=s[4],f=s[5],c=s[6],u=s[7];for(let h=0;h<64;h++){if(h<16)Dt[h]=t[n+h]|0;else{const m=Dt[h-15],v=(m<<25|m>>>7)^(m<<14|m>>>18)^m>>>3,b=Dt[h-2],L=(b<<15|b>>>17)^(b<<13|b>>>19)^b>>>10;Dt[h]=v+Dt[h-7]+L+Dt[h-16]}const d=l&f^~l&c,g=r&o^r&i^o&i,y=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),w=(l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25),x=u+w+d+cm[h]+Dt[h],E=y+g;u=c,c=f,f=l,l=a+x|0,a=i,i=o,o=r,r=x+E|0}s[0]=s[0]+r|0,s[1]=s[1]+o|0,s[2]=s[2]+i|0,s[3]=s[3]+a|0,s[4]=s[4]+l|0,s[5]=s[5]+f|0,s[6]=s[6]+c|0,s[7]=s[7]+u|0}_append(t){typeof t=="string"&&(t=Xt.fromUtf8(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes}_process(t){let n,s=this._data.sigBytes/64;t?s=Math.ceil(s):s=Math.max((s|0)-this._minBufferSize,0);const r=s*16,o=Math.min(r*4,this._data.sigBytes);if(r){for(let i=0;i<r;i+=16)this._doProcessBlock(this._data.words,i);n=this._data.words.splice(0,r),this._data.sigBytes-=o}return new Xt(n,o)}}class Xt{words;sigBytes;constructor(t,n){t=this.words=t||[],this.sigBytes=n===void 0?t.length*4:n}static fromUtf8(t){const n=unescape(encodeURIComponent(t)),s=n.length,r=[];for(let o=0;o<s;o++)r[o>>>2]|=(n.charCodeAt(o)&255)<<24-o%4*8;return new Xt(r,s)}toBase64(){const t=[];for(let n=0;n<this.sigBytes;n+=3){const s=this.words[n>>>2]>>>24-n%4*8&255,r=this.words[n+1>>>2]>>>24-(n+1)%4*8&255,o=this.words[n+2>>>2]>>>24-(n+2)%4*8&255,i=s<<16|r<<8|o;for(let a=0;a<4&&n*8+a*6<this.sigBytes*8;a++)t.push(um.charAt(i>>>6*(3-a)&63))}return t.join("")}concat(t){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let n=0;n<t.sigBytes;n++){const s=t.words[n>>>2]>>>24-n%4*8&255;this.words[this.sigBytes+n>>>2]|=s<<24-(this.sigBytes+n)%4*8}else for(let n=0;n<t.sigBytes;n+=4)this.words[this.sigBytes+n>>>2]=t.words[n>>>2];this.sigBytes+=t.sigBytes}}function dm(e){return new fm().finalize(e).toBase64()}function Kt(e){return dm(im(e))}const hm=Symbol.for("nuxt:client-only");function ul(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;pm(e[0],e[1])&&e.unshift(t);let[n,s,r={}]=e;const o=ie(()=>Re(n));if(typeof o.value!="string")throw new TypeError("[nuxt] [useAsyncData] key must be a string.");if(typeof s!="function")throw new TypeError("[nuxt] [useAsyncData] handler must be a function.");const i=Te();r.server??=!0,r.default??=gm,r.getCachedData??=dl,r.lazy??=!1,r.immediate??=!0,r.deep??=Kf.deep,r.dedupe??="cancel",r._functionName,i._asyncData[o.value];const a={cause:"initial",dedupe:r.dedupe};i._asyncData[o.value]?._init||(a.cachedData=r.getCachedData(o.value,i,{cause:"initial"}),i._asyncData[o.value]=ni(i,o.value,s,r,a.cachedData));const l=i._asyncData[o.value];l._deps++;const f=()=>i._asyncData[o.value].execute(a),c=r.server!==!1&&i.payload.serverRendered;{let d=function(m){const v=i._asyncData[m];v?._deps&&(v._deps--,v._deps===0&&v?._off())};const g=it();if(g&&c&&r.immediate&&!g.sp&&(g.sp=[]),g&&!g._nuxtOnBeforeMountCbs){g._nuxtOnBeforeMountCbs=[];const m=g._nuxtOnBeforeMountCbs;Fi(()=>{m.forEach(v=>{v()}),m.splice(0,m.length)}),jr(()=>m.splice(0,m.length))}const y=g&&(g._nuxtClientOnly||We(hm,!1));c&&i.isHydrating&&(l.error.value||l.data.value!==void 0)?l.status.value=l.error.value?"error":"success":g&&(!y&&i.payload.serverRendered&&i.isHydrating||r.lazy)&&r.immediate?g._nuxtOnBeforeMountCbs.push(f):r.immediate&&l.status.value!=="success"&&f();const w=Ss(),x=De(o,(m,v)=>{if((m||v)&&m!==v){const b=i._asyncData[v]?.data.value!==void 0,L=i._asyncDataPromises[v]!==void 0;v&&d(v);const F={cause:"initial",dedupe:r.dedupe};if(!i._asyncData[m]?._init){let G;v&&b?G=i._asyncData[v]?.data.value:(G=r.getCachedData(m,i,{cause:"initial"}),F.cachedData=G),i._asyncData[m]=ni(i,m,s,r,G)}i._asyncData[m]._deps++,(r.immediate||b||L)&&i._asyncData[m].execute(F)}},{flush:"sync"}),E=r.watch?De(r.watch,()=>{l._execute({cause:"watch",dedupe:r.dedupe})}):()=>{};w&&mi(()=>{x(),E(),d(o.value)})}const u={data:qn(()=>i._asyncData[o.value]?.data),pending:qn(()=>i._asyncData[o.value]?.pending),status:qn(()=>i._asyncData[o.value]?.status),error:qn(()=>i._asyncData[o.value]?.error),refresh:(...d)=>i._asyncData[o.value].execute(...d),execute:(...d)=>i._asyncData[o.value].execute(...d),clear:()=>fl(i,o.value)},h=Promise.resolve(i._asyncDataPromises[o.value]).then(()=>u);return Object.assign(h,u),h}function qn(e){return ie({get(){return e()?.value},set(t){const n=e();n&&(n.value=t)}})}function pm(e,t){return!(typeof e=="string"||typeof e=="object"&&e!==null||typeof e=="function"&&typeof t=="function")}function fl(e,t){t in e.payload.data&&(e.payload.data[t]=void 0),t in e.payload._errors&&(e.payload._errors[t]=void 0),e._asyncData[t]&&(e._asyncData[t].data.value=B(e._asyncData[t]._default()),e._asyncData[t].error.value=void 0,e._asyncData[t].status.value="idle"),t in e._asyncDataPromises&&(e._asyncDataPromises[t]&&(e._asyncDataPromises[t].cancelled=!0),e._asyncDataPromises[t]=void 0)}function mm(e,t){const n={};for(const s of t)n[s]=e[s];return n}function ni(e,t,n,s,r){e.payload._errors[t]??=void 0;const o=s.getCachedData!==dl,i=n,a=s.deep?we:et,l=r!==void 0,f=e.hook("app:data:refresh",async u=>{(!u||u.includes(t))&&await c.execute({cause:"refresh:hook"})}),c={data:a(l?r:s.default()),pending:ie(()=>c.status.value==="pending"),error:$r(e.payload._errors,t),status:et("idle"),execute:(...u)=>{const[h,d=void 0]=u,g=h&&d===void 0&&typeof h=="object"?h:{};if(e._asyncDataPromises[t]){if((g.dedupe??s.dedupe)==="defer")return e._asyncDataPromises[t];e._asyncDataPromises[t].cancelled=!0}{const w="cachedData"in g?g.cachedData:s.getCachedData(t,e,{cause:g.cause??"refresh:manual"});if(w!==void 0)return e.payload.data[t]=c.data.value=w,c.error.value=void 0,c.status.value="success",Promise.resolve(w)}c.status.value="pending";const y=new Promise((w,x)=>{try{w(i(e))}catch(E){x(E)}}).then(async w=>{if(y.cancelled)return e._asyncDataPromises[t];let x=w;s.transform&&(x=await s.transform(w)),s.pick&&(x=mm(x,s.pick)),e.payload.data[t]=x,c.data.value=x,c.error.value=void 0,c.status.value="success"}).catch(w=>{if(y.cancelled)return e._asyncDataPromises[t];c.error.value=Ds(w),c.data.value=B(s.default()),c.status.value="error"}).finally(()=>{y.cancelled||delete e._asyncDataPromises[t]});return e._asyncDataPromises[t]=y,e._asyncDataPromises[t]},_execute:rm((...u)=>c.execute(...u),0,{leading:!0}),_default:s.default,_deps:0,_init:!0,_hash:void 0,_off:()=>{f(),e._asyncData[t]?._init&&(e._asyncData[t]._init=!1),o||ft(()=>{e._asyncData[t]?._init||(fl(e,t),c.execute=()=>Promise.resolve())})}};return c}const gm=()=>{},dl=(e,t,n)=>{if(t.isHydrating)return t.payload.data[e];if(n.cause!=="refresh:manual"&&n.cause!=="refresh:hook")return t.static.data[e]},ym={class:"space-y-2"},_m={class:"flex items-center gap-2"},vm={key:0,class:"flex mt-8"},bm={key:1,class:"flex flex-col"},wm={key:2,class:"flex items-center justify-center h-64"},xm={class:"text-center"},Sm={key:3,class:"space-y-6"},Em={class:"space-y-4"},Tm={key:0},Cm={key:1},Rm=mt({__name:"EmailTemplateViewer",props:{template:{}},setup(e){const t=e,n=we("desktop"),s=we("preview"),r=cl(),{data:o,error:i,pending:a,refresh:l}=ul(async()=>{if(!t.template)return{html:null,sourceCode:null};const u=await $fetch(`${r.origin}/api/emails/render`,{method:"POST",body:{name:t.template.filename}}),d=(await $fetch(`${r.origin}/api/emails/source`,{method:"POST",body:{name:t.template.filename}})).sourceCode;return{html:u,sourceCode:d}},{watch:[()=>t.template]},"$XdfX-fxT8q"),f=ie(()=>o.value?.sourceCode??null),c=ie(()=>o.value?.html??null);return(u,h)=>{const d=nl,g=eo,y=el,w=tl,x=is("UIcon"),E=qp,m=Qp,v=nm;return q(),fe("div",ym,[ce("div",_m,[ne(d,{text:u.template?.displayName??"Please select a template",icon:"carbon:email"},null,8,["text"]),u.template?(q(),Se(g,{key:0},{default:xe(()=>[je(Ke(u.template.filename),1)]),_:1})):Je("",!0)]),B(a)?(q(),fe("div",vm,[ne(y,null,{default:xe(()=>[...h[2]||(h[2]=[je("Loading email template...",-1)])]),_:1})])):B(i)?(q(),fe("div",bm,[ne(w,{n:"red6 dark:red5",icon:"carbon:warning-alt"},{default:xe(()=>[...h[3]||(h[3]=[je(" Error! ",-1)])]),_:1}),ne(w,{n:"red6 dark:red5"},{default:xe(()=>[je(Ke(B(i)),1)]),_:1})])):u.template?(q(),fe("div",Sm,[ne(E,{"view-mode":B(n),"onUpdate:viewMode":h[0]||(h[0]=b=>_e(n)?n.value=b:null),"content-mode":B(s),"onUpdate:contentMode":h[1]||(h[1]=b=>_e(s)?s.value=b:null),"is-loading":B(a),"rendered-html":B(c),"source-code":B(f),onRefresh:B(l)},null,8,["view-mode","content-mode","is-loading","rendered-html","source-code","onRefresh"]),ce("div",Em,[B(s)==="preview"?(q(),fe("div",Tm,[ne(m,{"is-loading":B(a),"rendered-html":B(c),"view-mode":B(n)},null,8,["is-loading","rendered-html","view-mode"])])):B(s)==="source"?(q(),fe("div",Cm,[ne(v,{"source-code":B(f)},null,8,["source-code"])])):Je("",!0)])])):(q(),fe("div",wm,[ce("div",xm,[ne(x,{name:"i-heroicons-inbox",class:"w-12 h-12 text-gray-400 mx-auto mb-4"}),h[4]||(h[4]=ce("p",{class:"text-gray-500 dark:text-gray-400"}," Select an email template to preview ",-1))])]))])}}}),Pm=Object.assign(Rm,{__name:"EmailTemplateViewer"}),Am={__name:"splitpanes",props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],setup(e,{emit:t}){const n=t,s=e,r=Sc(),o=we([]),i=ie(()=>o.value.reduce((T,A)=>(T[~~A.id]=A)&&T,{})),a=ie(()=>o.value.length),l=we(null),f=we(!1),c=we({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),u=we({splitter:null,timeoutId:null}),h=ie(()=>({[`splitpanes splitpanes--${s.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":c.value.dragging})),d=()=>{document.addEventListener("mousemove",w,{passive:!1}),document.addEventListener("mouseup",x),"ontouchstart"in window&&(document.addEventListener("touchmove",w,{passive:!1}),document.addEventListener("touchend",x))},g=()=>{document.removeEventListener("mousemove",w,{passive:!1}),document.removeEventListener("mouseup",x),"ontouchstart"in window&&(document.removeEventListener("touchmove",w,{passive:!1}),document.removeEventListener("touchend",x))},y=(T,A)=>{const D=T.target.closest(".splitpanes__splitter");if(D){const{left:M,top:I}=D.getBoundingClientRect(),{clientX:K,clientY:re}="ontouchstart"in window&&T.touches?T.touches[0]:T;c.value.cursorOffset=s.horizontal?re-I:K-M}d(),c.value.mouseDown=!0,c.value.activeSplitter=A},w=T=>{c.value.mouseDown&&(T.preventDefault(),c.value.dragging=!0,requestAnimationFrame(()=>{F(b(T)),n("resize",o.value.map(A=>({min:A.min,max:A.max,size:A.size})))}))},x=()=>{c.value.dragging&&n("resized",o.value.map(T=>({min:T.min,max:T.max,size:T.size}))),c.value.mouseDown=!1,setTimeout(()=>{c.value.dragging=!1,g()},100)},E=(T,A)=>{"ontouchstart"in window&&(T.preventDefault(),s.dblClickSplitter&&(u.value.splitter===A?(clearTimeout(u.value.timeoutId),u.value.timeoutId=null,m(T,A),u.value.splitter=null):(u.value.splitter=A,u.value.timeoutId=setTimeout(()=>u.value.splitter=null,500)))),c.value.dragging||n("splitter-click",o.value[A])},m=(T,A)=>{let D=0;o.value=o.value.map((M,I)=>(M.size=I===A?M.max:M.min,I!==A&&(D+=M.min),M)),o.value[A].size-=D,n("pane-maximize",o.value[A]),n("resized",o.value.map(M=>({min:M.min,max:M.max,size:M.size})))},v=(T,A)=>{n("pane-click",i.value[A])},b=T=>{const A=l.value.getBoundingClientRect(),{clientX:D,clientY:M}="ontouchstart"in window&&T.touches?T.touches[0]:T;return{x:D-(s.horizontal?0:c.value.cursorOffset)-A.left,y:M-(s.horizontal?c.value.cursorOffset:0)-A.top}},L=T=>{T=T[s.horizontal?"y":"x"];const A=l.value[s.horizontal?"clientHeight":"clientWidth"];return s.rtl&&!s.horizontal&&(T=A-T),T*100/A},F=T=>{const A=c.value.activeSplitter;let D={prevPanesSize:Y(A),nextPanesSize:z(A),prevReachedMinPanes:0,nextReachedMinPanes:0};const M=0+(s.pushOtherPanes?0:D.prevPanesSize),I=100-(s.pushOtherPanes?0:D.nextPanesSize),K=Math.max(Math.min(L(T),I),M);let re=[A,A+1],p=o.value[re[0]]||null,_=o.value[re[1]]||null;const S=p.max<100&&K>=p.max+D.prevPanesSize,P=_.max<100&&K<=100-(_.max+z(A+1));if(S||P){S?(p.size=p.max,_.size=Math.max(100-p.max-D.prevPanesSize-D.nextPanesSize,0)):(p.size=Math.max(100-_.max-D.prevPanesSize-z(A+1),0),_.size=_.max);return}if(s.pushOtherPanes){const C=G(D,K);if(!C)return;({sums:D,panesToResize:re}=C),p=o.value[re[0]]||null,_=o.value[re[1]]||null}p!==null&&(p.size=Math.min(Math.max(K-D.prevPanesSize-D.prevReachedMinPanes,p.min),p.max)),_!==null&&(_.size=Math.min(Math.max(100-K-D.nextPanesSize-D.nextReachedMinPanes,_.min),_.max))},G=(T,A)=>{const D=c.value.activeSplitter,M=[D,D+1];return A<T.prevPanesSize+o.value[M[0]].min&&(M[0]=oe(D).index,T.prevReachedMinPanes=0,M[0]<D&&o.value.forEach((I,K)=>{K>M[0]&&K<=D&&(I.size=I.min,T.prevReachedMinPanes+=I.min)}),T.prevPanesSize=Y(M[0]),M[0]===void 0)?(T.prevReachedMinPanes=0,o.value[0].size=o.value[0].min,o.value.forEach((I,K)=>{K>0&&K<=D&&(I.size=I.min,T.prevReachedMinPanes+=I.min)}),o.value[M[1]].size=100-T.prevReachedMinPanes-o.value[0].min-T.prevPanesSize-T.nextPanesSize,null):A>100-T.nextPanesSize-o.value[M[1]].min&&(M[1]=ee(D).index,T.nextReachedMinPanes=0,M[1]>D+1&&o.value.forEach((I,K)=>{K>D&&K<M[1]&&(I.size=I.min,T.nextReachedMinPanes+=I.min)}),T.nextPanesSize=z(M[1]-1),M[1]===void 0)?(T.nextReachedMinPanes=0,o.value.forEach((I,K)=>{K<a.value-1&&K>=D+1&&(I.size=I.min,T.nextReachedMinPanes+=I.min)}),o.value[M[0]].size=100-T.prevPanesSize-z(M[0]-1),null):{sums:T,panesToResize:M}},Y=T=>o.value.reduce((A,D,M)=>A+(M<T?D.size:0),0),z=T=>o.value.reduce((A,D,M)=>A+(M>T+1?D.size:0),0),oe=T=>[...o.value].reverse().find(A=>A.index<T&&A.size>A.min)||{},ee=T=>o.value.find(A=>A.index>T+1&&A.size>A.min)||{},ae=()=>{var T;Array.from(((T=l.value)==null?void 0:T.children)||[]).forEach(A=>{const D=A.classList.contains("splitpanes__pane"),M=A.classList.contains("splitpanes__splitter");!D&&!M&&(A.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},U=(T,A,D=!1)=>{const M=T-1,I=document.createElement("div");I.classList.add("splitpanes__splitter"),D||(I.onmousedown=K=>y(K,M),typeof window<"u"&&"ontouchstart"in window&&(I.ontouchstart=K=>y(K,M)),I.onclick=K=>E(K,M+1)),s.dblClickSplitter&&(I.ondblclick=K=>m(K,M+1)),A.parentNode.insertBefore(I,A)},se=T=>{T.onmousedown=void 0,T.onclick=void 0,T.ondblclick=void 0,T.remove()},H=()=>{var T;const A=Array.from(((T=l.value)==null?void 0:T.children)||[]);A.forEach(M=>{M.className.includes("splitpanes__splitter")&&se(M)});let D=0;A.forEach(M=>{M.className.includes("splitpanes__pane")&&(!D&&s.firstSplitter?U(D,M,!0):D&&U(D,M),D++)})},te=({uid:T,...A})=>{const D=i.value[T];Object.entries(A).forEach(([M,I])=>D[M]=I)},V=T=>{var A;let D=-1;Array.from(((A=l.value)==null?void 0:A.children)||[]).some(M=>(M.className.includes("splitpanes__pane")&&D++,M.isSameNode(T.el))),o.value.splice(D,0,{...T,index:D}),o.value.forEach((M,I)=>M.index=I),f.value&&ft(()=>{H(),Rt({addedPane:o.value[D]}),n("pane-add",{index:D,panes:o.value.map(M=>({min:M.min,max:M.max,size:M.size}))})})},be=T=>{const A=o.value.findIndex(M=>M.id===T),D=o.value.splice(A,1)[0];o.value.forEach((M,I)=>M.index=I),ft(()=>{H(),Rt({removedPane:{...D}}),n("pane-remove",{removed:D,panes:o.value.map(M=>({min:M.min,max:M.max,size:M.size}))})})},Rt=(T={})=>{!T.addedPane&&!T.removedPane?Xe():o.value.some(A=>A.givenSize!==null||A.min||A.max<100)?Dn(T):gt(),f.value&&n("resized",o.value.map(A=>({min:A.min,max:A.max,size:A.size})))},gt=()=>{const T=100/a.value;let A=0;const D=[],M=[];o.value.forEach(I=>{I.size=Math.max(Math.min(T,I.max),I.min),A-=I.size,I.size>=I.max&&D.push(I.id),I.size<=I.min&&M.push(I.id)}),A>.1&&pn(A,D,M)},Xe=()=>{let T=100;const A=[],D=[];let M=0;o.value.forEach(K=>{T-=K.size,K.givenSize!==null&&M++,K.size>=K.max&&A.push(K.id),K.size<=K.min&&D.push(K.id)});let I=100;T>.1&&(o.value.forEach(K=>{K.givenSize===null&&(K.size=Math.max(Math.min(T/(a.value-M),K.max),K.min)),I-=K.size}),I>.1&&pn(I,A,D))},Dn=({addedPane:T,removedPane:A}={})=>{let D=100/a.value,M=0;const I=[],K=[];(T?.givenSize??null)!==null&&(D=(100-T.givenSize)/(a.value-1).value),o.value.forEach(re=>{M-=re.size,re.size>=re.max&&I.push(re.id),re.size<=re.min&&K.push(re.id)}),!(Math.abs(M)<.1)&&(o.value.forEach(re=>{T?.givenSize!==null&&T?.id===re.id||(re.size=Math.max(Math.min(D,re.max),re.min)),M-=re.size,re.size>=re.max&&I.push(re.id),re.size<=re.min&&K.push(re.id)}),M>.1&&pn(M,I,K))},pn=(T,A,D)=>{let M;T>0?M=T/(a.value-A.length):M=T/(a.value-D.length),o.value.forEach((I,K)=>{if(T>0&&!A.includes(I.id)){const re=Math.max(Math.min(I.size+M,I.max),I.min),p=re-I.size;T-=p,I.size=re}else if(!D.includes(I.id)){const re=Math.max(Math.min(I.size+M,I.max),I.min),p=re-I.size;T-=p,I.size=re}}),Math.abs(T)>.1&&ft(()=>{f.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})};De(()=>s.firstSplitter,()=>H()),De(()=>s.dblClickSplitter,T=>{[...l.value.querySelectorAll(".splitpanes__splitter")].forEach((A,D)=>{A.ondblclick=T?M=>m(M,D):void 0})}),Ln(()=>f.value=!1),hn(()=>{ae(),H(),Rt(),n("ready"),f.value=!0});const js=()=>{var T;return un("div",{ref:l,class:h.value},(T=r.default)==null?void 0:T.call(r))};return _t("panes",o),_t("indexedPanes",i),_t("horizontal",ie(()=>s.horizontal)),_t("requestUpdate",te),_t("onPaneAdd",V),_t("onPaneRemove",be),_t("onPaneClick",v),(T,A)=>(q(),Se(qi(js)))}},si={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(e){var t;const n=e,s=We("requestUpdate"),r=We("onPaneAdd"),o=We("horizontal"),i=We("onPaneRemove"),a=We("onPaneClick"),l=(t=it())==null?void 0:t.uid,f=We("indexedPanes"),c=ie(()=>f.value[l]),u=we(null),h=ie(()=>{const w=isNaN(n.size)||n.size===void 0?0:parseFloat(n.size);return Math.max(Math.min(w,g.value),d.value)}),d=ie(()=>{const w=parseFloat(n.minSize);return isNaN(w)?0:w}),g=ie(()=>{const w=parseFloat(n.maxSize);return isNaN(w)?100:w}),y=ie(()=>{var w;return`${o.value?"height":"width"}: ${(w=c.value)==null?void 0:w.size}%`});return hn(()=>{r({id:l,el:u.value,min:d.value,max:g.value,givenSize:n.size===void 0?null:h.value,size:h.value})}),De(()=>h.value,w=>s({uid:l,size:w})),De(()=>d.value,w=>s({uid:l,min:w})),De(()=>g.value,w=>s({uid:l,max:w})),Ln(()=>i(l)),(w,x)=>(q(),fe("div",{ref_key:"paneEl",ref:u,class:"splitpanes__pane",onClick:x[0]||(x[0]=E=>B(a)(E,w._.uid)),style:Mn(y.value)},[Ge(w.$slots,"default")],4))}},ri=30,km={__name:"NSplitPane",props:{storageKey:{type:String,required:!1},stateKey:{type:String,required:!1,default:"nuxt-devtools-panels-state"},leftSize:{type:Number,required:!1},minSize:{type:Number,required:!1},horizontal:{type:Boolean,required:!1}},setup(e){const t=e,n=vp(t.stateKey,{},{listenToStorageChanges:!1}),s=t.storageKey,r=s?ie({get:()=>n.value[s]||t.leftSize||ri,set:o=>{n.value[s]=o}}):we(t.leftSize||ri);return(o,i)=>(q(),Se(B(Am),{horizontal:e.horizontal,"h-full":"","of-hidden":"",onResize:i[0]||(i[0]=a=>r.value=a[0].size)},{default:xe(()=>[ne(B(si),{"h-full":"",class:"of-auto!",size:B(r),"min-size":o.$slots.right?e.minSize||10:100},{default:xe(()=>[Ge(o.$slots,"left")]),_:3},8,["size","min-size"]),o.$slots.right?(q(),Se(B(si),{key:0,relative:"","h-full":"",class:"of-auto!","min-size":e.minSize||10},{default:xe(()=>[Ge(o.$slots,"right")]),_:3},8,["min-size"])):Je("",!0)]),_:3},8,["horizontal"]))}};function Mm(e,t,n){const[s={},r]=typeof t=="string"?[{},t]:[t,n],o=ie(()=>Re(e)),i=ie(()=>Re(s.key)||"$f"+Kt([r,typeof o.value=="string"?o.value:"",...Om(s)]));if(!s.baseURL&&typeof o.value=="string"&&o.value[0]==="/"&&o.value[1]==="/")throw new Error('[nuxt] [useFetch] the request URL must not start with "//".');const{server:a,lazy:l,default:f,transform:c,pick:u,watch:h,immediate:d,getCachedData:g,deep:y,dedupe:w,...x}=s,E=dt({...Jf,...x,cache:typeof s.cache=="boolean"?void 0:s.cache}),m={server:a,lazy:l,default:f,transform:c,pick:u,immediate:d,getCachedData:g,deep:y,dedupe:w,watch:h===!1?[]:[...h||[],E]};let v;return ul(h===!1?i.value:i,()=>{v?.abort?.(new DOMException("Request aborted as another request to the same endpoint was initiated.","AbortError")),v=typeof AbortController<"u"?new AbortController:{};const L=Re(s.timeout);let F;return L&&(F=setTimeout(()=>v.abort(new DOMException("Request aborted due to timeout.","AbortError")),L),v.signal.onabort=()=>clearTimeout(F)),(s.$fetch||globalThis.$fetch)(o.value,{signal:v.signal,...E}).finally(()=>{clearTimeout(F)})},m)}function Om(e){const t=[Re(e.method)?.toUpperCase()||"GET",Re(e.baseURL)];for(const n of[e.params||e.query]){const s=Re(n);if(!s)continue;const r={};for(const[o,i]of Object.entries(s))r[Re(o)]=Re(i);t.push(r)}if(e.body){const n=Re(e.body);if(!n)t.push(Kt(n));else if(n instanceof ArrayBuffer)t.push(Kt(Object.fromEntries([...new Uint8Array(n).entries()].map(([s,r])=>[s,r.toString()]))));else if(n instanceof FormData){const s={};for(const r of n.entries()){const[o,i]=r;s[o]=i instanceof File?i.name:i}t.push(Kt(s))}else if(Pr(n))t.push(Kt(dt(n)));else try{t.push(Kt(n))}catch{console.warn("[useFetch] Failed to hash body",n)}}return t}const Lm={key:0,class:"flex mt-8"},$m={key:1,class:"flex flex-col"},Dm={key:3,class:"flex flex-col h-full"},Im={class:"mt-8"},Nm=mt({__name:"app",async setup(e){let t,n;const s=cl(),{data:r,pending:o,error:i}=([t,n]=Tc(()=>Mm(`${s.origin}/api/emails`,{default:()=>[]},"$3oRWNoOsuN")),t=await t,n(),t),a=we(null);function l(f){a.value=f}return De(r,f=>{f.length>0&&!a.value&&(a.value=f[0])},{immediate:!0}),(f,c)=>{const u=el,h=tl,d=Hs,g=Zr,y=Rp,w=Pm,x=km;return q(),Se(x,{"storage-key":"devtools:nuxt-email-renderer",class:"!h-screen p-4","min-size":30,horizontal:!1},{left:xe(()=>[c[4]||(c[4]=ce("div",{class:"mb-8"},[ce("h1",{class:"text-3xl font-bold text-gray-900 dark:text-white mb-2"}," Nuxt Email Renderer "),ce("p",{class:"text-gray-600 dark:text-gray-400"}," Preview and explore email templates with desktop and mobile viewports ")],-1)),B(o)?(q(),fe("div",Lm,[ne(u,null,{default:xe(()=>[...c[0]||(c[0]=[je("Loading email templates...",-1)])]),_:1})])):B(i)?(q(),fe("div",$m,[ne(h,{n:"red6 dark:red5",icon:"carbon:warning-alt"},{default:xe(()=>[...c[1]||(c[1]=[je(" Error! ",-1)])]),_:1}),ne(h,{n:"red6 dark:red5"},{default:xe(()=>[je(Ke(B(i)),1)]),_:1})])):Je("",!0),B(r).length===0?(q(),Se(g,{key:2,class:"text-center py-12"},{default:xe(()=>[ne(d,{icon:"carbon:email",class:"w-16 h-16 text-gray-300 dark:text-gray-600 mx-auto mb-4"}),c[2]||(c[2]=ce("h3",{class:"text-lg font-medium text-gray-900 dark:text-white mb-2"}," No email templates found ",-1)),c[3]||(c[3]=ce("p",{class:"text-gray-500 dark:text-gray-400 mb-6 max-w-sm mx-auto"}," Create your first email template by adding a .vue file to the emails directory. ",-1))]),_:1})):(q(),fe("div",Dm,[ne(y,{"email-templates":B(r),"selected-template":B(a),onSelect:l},null,8,["email-templates","selected-template"]),ce("div",Im,[ne(w,{template:B(a)},null,8,["template"])])]))]),_:1})}}}),Hm={__name:"nuxt-error-page",props:{error:Object},setup(e){const n=e.error;n.stack&&n.stack.split(`
|
|
19
|
+
**/let pr;const So=typeof window<"u"&&window.trustedTypes;if(So)try{pr=So.createPolicy("vue",{createHTML:e=>e})}catch{}const Sa=pr?e=>pr.createHTML(e):e=>e,yu="http://www.w3.org/2000/svg",_u="http://www.w3.org/1998/Math/MathML",vt=typeof document<"u"?document:null,Eo=vt&&vt.createElement("template"),vu={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?vt.createElementNS(yu,e):t==="mathml"?vt.createElementNS(_u,e):n?vt.createElement(e,{is:n}):vt.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>vt.createTextNode(e),createComment:e=>vt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>vt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{Eo.innerHTML=Sa(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const a=Eo.content;if(s==="svg"||s==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},bu=Symbol("_vtc");function wu(e,t,n){const s=e[bu];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const To=Symbol("_vod"),xu=Symbol("_vsh"),Su=Symbol(""),Eu=/(?:^|;)\s*display\s*:/;function Tu(e,t,n){const s=e.style,r=ve(n);let o=!1;if(n&&!r){if(t)if(ve(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&Xn(s,a,"")}else for(const i in t)n[i]==null&&Xn(s,i,"");for(const i in n)i==="display"&&(o=!0),Xn(s,i,n[i])}else if(r){if(t!==n){const i=s[Su];i&&(n+=";"+i),s.cssText=n,o=Eu.test(n)}}else t&&e.removeAttribute("style");To in e&&(e[To]=o?s.display:"",e[xu]&&(s.display="none"))}const Co=/\s*!important$/;function Xn(e,t,n){if(X(n))n.forEach(s=>Xn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Cu(e,t);Co.test(n)?e.setProperty(Ut(s),n.replace(Co,""),"important"):e[s]=n}}const Ro=["Webkit","Moz","ms"],Gs={};function Cu(e,t){const n=Gs[t];if(n)return n;let s=Ze(t);if(s!=="filter"&&s in e)return Gs[t]=s;s=ws(s);for(let r=0;r<Ro.length;r++){const o=Ro[r]+s;if(o in e)return Gs[t]=o}return t}const Po="http://www.w3.org/1999/xlink";function Ao(e,t,n,s,r,o=El(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Po,t.slice(6,t.length)):e.setAttributeNS(Po,t,n):n==null||o&&!fi(n)?e.removeAttribute(t):e.setAttribute(t,o?"":rt(n)?String(n):n)}function ko(e,t,n,s,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Sa(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const a=o==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=fi(n):n==null&&a==="string"?(n="",i=!0):a==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(r||t)}function Wr(e,t,n,s){e.addEventListener(t,n,s)}function Ru(e,t,n,s){e.removeEventListener(t,n,s)}const Mo=Symbol("_vei");function Pu(e,t,n,s,r=null){const o=e[Mo]||(e[Mo]={}),i=o[t];if(s&&i)i.value=s;else{const[a,l]=Au(t);if(s){const f=o[t]=Ou(s,r);Wr(e,a,f,l)}else i&&(Ru(e,a,i,l),o[t]=void 0)}}const Oo=/(?:Once|Passive|Capture)$/;function Au(e){let t;if(Oo.test(e)){t={};let s;for(;s=e.match(Oo);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ut(e.slice(2)),t]}let Xs=0;const ku=Promise.resolve(),Mu=()=>Xs||(ku.then(()=>Xs=0),Xs=Date.now());function Ou(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;ht(Lu(s,n.value),t,5,[s])};return n.value=e,n.attached=Mu(),n}function Lu(e,t){if(X(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Lo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,$u=(e,t,n,s,r,o)=>{const i=r==="svg";t==="class"?wu(e,s,i):t==="style"?Tu(e,n,s):An(t)?Tr(t)||Pu(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Du(e,t,s,i))?(ko(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ao(e,t,s,i,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ve(s))?ko(e,Ze(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Ao(e,t,s,i))};function Du(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Lo(t)&&Q(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Lo(t)&&ve(n)?!1:t in e}const us=e=>{const t=e.props["onUpdate:modelValue"]||!1;return X(t)?n=>Kn(t,n):t},sn=Symbol("_assign"),Iu={created(e,{value:t},n){e.checked=rn(t,n.props.value),e[sn]=us(n),Wr(e,"change",()=>{e[sn](Pn(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e[sn]=us(s),t!==n&&(e.checked=rn(t,s.props.value))}},Nu={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const r=vs(t);Wr(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?ui(Pn(i)):Pn(i));e[sn](e.multiple?r?new Set(o):o:o[0]),e._assigning=!0,ft(()=>{e._assigning=!1})}),e[sn]=us(s)},mounted(e,{value:t}){$o(e,t)},beforeUpdate(e,t,n){e[sn]=us(n)},updated(e,{value:t}){e._assigning||$o(e,t)}};function $o(e,t){const n=e.multiple,s=X(t);if(!(n&&!s&&!vs(t))){for(let r=0,o=e.options.length;r<o;r++){const i=e.options[r],a=Pn(i);if(n)if(s){const l=typeof a;l==="string"||l==="number"?i.selected=t.some(f=>String(f)===String(a)):i.selected=Cl(t,a)>-1}else i.selected=t.has(a);else if(rn(Pn(i),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Pn(e){return"_value"in e?e._value:e.value}const Ea=Ie({patchProp:$u},vu);let Sn,Do=!1;function Hu(){return Sn||(Sn=jc(Ea))}function ju(){return Sn=Do?Sn:zc(Ea),Do=!0,Sn}const zu=((...e)=>{const t=Hu().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Ca(s);if(!r)return;const o=t._component;!Q(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const i=n(r,!1,Ta(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t}),Bu=((...e)=>{const t=ju().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Ca(s);if(r)return n(r,!0,Ta(r))},t});function Ta(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Ca(e){return ve(e)?document.querySelector(e):e}const Fu=/"(?:_|\\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*:/,Uu=/"(?: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*:/,Vu=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Wu(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){qu(e);return}return t}function qu(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function fs(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(!Vu.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Fu.test(e)||Uu.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,Wu)}return JSON.parse(e)}catch(s){if(t.strict)throw s;return e}}const Ku=/#/g,Ju=/&/g,Gu=/\//g,Xu=/=/g,qr=/\+/g,Yu=/%5e/gi,Qu=/%60/gi,Zu=/%7c/gi,ef=/%20/gi;function tf(e){return encodeURI(""+e).replace(Zu,"|")}function mr(e){return tf(typeof e=="string"?e:JSON.stringify(e)).replace(qr,"%2B").replace(ef,"+").replace(Ku,"%23").replace(Ju,"%26").replace(Qu,"`").replace(Yu,"^").replace(Gu,"%2F")}function Ys(e){return mr(e).replace(Xu,"%3D")}function ds(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function nf(e){return ds(e.replace(qr," "))}function sf(e){return ds(e.replace(qr," "))}function Ls(e=""){const t=Object.create(null);e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const s=n.match(/([^=]+)=?(.*)/)||[];if(s.length<2)continue;const r=nf(s[1]);if(r==="__proto__"||r==="constructor")continue;const o=sf(s[2]||"");t[r]===void 0?t[r]=o:Array.isArray(t[r])?t[r].push(o):t[r]=[t[r],o]}return t}function rf(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${Ys(e)}=${mr(n)}`).join("&"):`${Ys(e)}=${mr(t)}`:Ys(e)}function Ra(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>rf(t,e[t])).filter(Boolean).join("&")}const of=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,af=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,lf=/^([/\\]\s*){2,}[^/\\]/,cf=/^[\s\0]*(blob|data|javascript|vbscript):$/i,uf=/\/$|\/\?|\/#/,ff=/^\.?\//;function Ot(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?of.test(e):af.test(e)||(t.acceptRelative?lf.test(e):!1)}function df(e){return!!e&&cf.test(e)}function gr(e="",t){return t?uf.test(e):e.endsWith("/")}function $s(e="",t){if(!t)return(gr(e)?e.slice(0,-1):e)||"/";if(!gr(e,!0))return e||"/";let n=e,s="";const r=e.indexOf("#");r!==-1&&(n=e.slice(0,r),s=e.slice(r));const[o,...i]=n.split("?");return((o.endsWith("/")?o.slice(0,-1):o)||"/")+(i.length>0?`?${i.join("?")}`:"")+s}function hs(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(gr(e,!0))return e||"/";let n=e,s="";const r=e.indexOf("#");if(r!==-1&&(n=e.slice(0,r),s=e.slice(r),!n))return s;const[o,...i]=n.split("?");return o+"/"+(i.length>0?`?${i.join("?")}`:"")+s}function hf(e=""){return e.startsWith("/")}function Io(e=""){return hf(e)?e:"/"+e}function pf(e,t){if(Aa(t)||Ot(e))return e;const n=$s(t);return e.startsWith(n)?e:$n(n,e)}function mf(e,t){if(Aa(t))return e;const n=$s(t);if(!e.startsWith(n))return e;const s=e.slice(n.length);return s[0]==="/"?s:"/"+s}function Pa(e,t){const n=Oa(e),s={...Ls(n.search),...t};return n.search=Ra(s),La(n)}function Aa(e){return!e||e==="/"}function gf(e){return e&&e!=="/"}function $n(e,...t){let n=e||"";for(const s of t.filter(r=>gf(r)))if(n){const r=s.replace(ff,"");n=hs(n)+r}else n=s;return n}function ka(...e){const t=/\/(?!\/)/,n=e.filter(Boolean),s=[];let r=0;for(const i of n)if(!(!i||i==="/")){for(const[a,l]of i.split(t).entries())if(!(!l||l===".")){if(l===".."){if(s.length===1&&Ot(s[0]))continue;s.pop(),r--;continue}if(a===1&&s[s.length-1]?.endsWith(":/")){s[s.length-1]+="/"+l;continue}s.push(l),r++}}let o=s.join("/");return r>=0?n[0]?.startsWith("/")&&!o.startsWith("/")?o="/"+o:n[0]?.startsWith("./")&&!o.startsWith("./")&&(o="./"+o):o="../".repeat(-1*r)+o,n[n.length-1]?.endsWith("/")&&!o.endsWith("/")&&(o+="/"),o}function yf(e,t,n={}){return n.trailingSlash||(e=hs(e),t=hs(t)),n.leadingSlash||(e=Io(e),t=Io(t)),n.encoding||(e=ds(e),t=ds(t)),e===t}const Ma=Symbol.for("ufo:protocolRelative");function Oa(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,u,h=""]=n;return{protocol:u.toLowerCase(),pathname:h,href:u+h,auth:"",host:"",search:"",hash:""}}if(!Ot(e,{acceptRelative:!0}))return No(e);const[,s="",r,o=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,i="",a=""]=o.match(/([^#/?]*)(.*)?/)||[];s==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:f,hash:c}=No(a);return{protocol:s.toLowerCase(),auth:r?r.slice(0,Math.max(0,r.length-1)):"",host:i,pathname:l,search:f,hash:c,[Ma]:!s}}function No(e=""){const[t="",n="",s=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:s}}function La(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",s=e.hash||"",r=e.auth?e.auth+"@":"",o=e.host||"";return(e.protocol||e[Ma]?(e.protocol||"")+"//":"")+r+o+t+n+s}class _f extends Error{constructor(t,n){super(t,n),this.name="FetchError",n?.cause&&!this.cause&&(this.cause=n.cause)}}function vf(e){const t=e.error?.message||e.error?.toString()||"",n=e.request?.method||e.options?.method||"GET",s=e.request?.url||String(e.request)||"/",r=`[${n}] ${JSON.stringify(s)}`,o=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",i=`${r}: ${o}${t?` ${t}`:""}`,a=new _f(i,e.error?{cause:e.error}:void 0);for(const l of["request","options","response"])Object.defineProperty(a,l,{get(){return e[l]}});for(const[l,f]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,l,{get(){return e.response&&e.response[f]}});return a}const bf=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function Ho(e="GET"){return bf.has(e.toUpperCase())}function wf(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?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const xf=new Set(["image/svg","application/xml","application/xhtml","application/html"]),Sf=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function Ef(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return Sf.test(t)?"json":xf.has(t)||t.startsWith("text/")?"text":"blob"}function Tf(e,t,n,s){const r=Cf(t?.headers??e?.headers,n?.headers,s);let o;return(n?.query||n?.params||t?.params||t?.query)&&(o={...n?.params,...n?.query,...t?.params,...t?.query}),{...n,...t,query:o,params:o,headers:r}}function Cf(e,t,n){if(!t)return new n(e);const s=new n(t);if(e)for(const[r,o]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))s.set(r,o);return s}async function Bn(e,t){if(t)if(Array.isArray(t))for(const n of t)await n(e);else await t(e)}const Rf=new Set([408,409,425,429,500,502,503,504]),Pf=new Set([101,204,205,304]);function $a(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:s=globalThis.AbortController}=e;async function r(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let c;typeof a.options.retry=="number"?c=a.options.retry:c=Ho(a.options.method)?0:1;const u=a.response&&a.response.status||500;if(c>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(u):Rf.has(u))){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)),o(a.request,{...a.options,retry:c-1})}}const f=vf(a);throw Error.captureStackTrace&&Error.captureStackTrace(f,o),f}const o=async function(l,f={}){const c={request:l,options:Tf(l,f,e.defaults,n),response:void 0,error:void 0};c.options.method&&(c.options.method=c.options.method.toUpperCase()),c.options.onRequest&&await Bn(c,c.options.onRequest),typeof c.request=="string"&&(c.options.baseURL&&(c.request=pf(c.request,c.options.baseURL)),c.options.query&&(c.request=Pa(c.request,c.options.query),delete c.options.query),"query"in c.options&&delete c.options.query,"params"in c.options&&delete c.options.params),c.options.body&&Ho(c.options.method)&&(wf(c.options.body)?(c.options.body=typeof c.options.body=="string"?c.options.body:JSON.stringify(c.options.body),c.options.headers=new n(c.options.headers||{}),c.options.headers.has("content-type")||c.options.headers.set("content-type","application/json"),c.options.headers.has("accept")||c.options.headers.set("accept","application/json")):("pipeTo"in c.options.body&&typeof c.options.body.pipeTo=="function"||typeof c.options.body.pipe=="function")&&("duplex"in c.options||(c.options.duplex="half")));let u;if(!c.options.signal&&c.options.timeout){const d=new s;u=setTimeout(()=>{const g=new Error("[TimeoutError]: The operation was aborted due to timeout");g.name="TimeoutError",g.code=23,d.abort(g)},c.options.timeout),c.options.signal=d.signal}try{c.response=await t(c.request,c.options)}catch(d){return c.error=d,c.options.onRequestError&&await Bn(c,c.options.onRequestError),await r(c)}finally{u&&clearTimeout(u)}if((c.response.body||c.response._bodyInit)&&!Pf.has(c.response.status)&&c.options.method!=="HEAD"){const d=(c.options.parseResponse?"json":c.options.responseType)||Ef(c.response.headers.get("content-type")||"");switch(d){case"json":{const g=await c.response.text(),y=c.options.parseResponse||fs;c.response._data=y(g);break}case"stream":{c.response._data=c.response.body||c.response._bodyInit;break}default:c.response._data=await c.response[d]()}}return c.options.onResponse&&await Bn(c,c.options.onResponse),!c.options.ignoreResponseError&&c.response.status>=400&&c.response.status<600?(c.options.onResponseError&&await Bn(c,c.options.onResponseError),await r(c)):c.response},i=async function(l,f){return(await o(l,f))._data};return i.raw=o,i.native=(...a)=>t(...a),i.create=(a={},l={})=>$a({...e,...l,defaults:{...e.defaults,...l.defaults,...a}}),i}const ps=(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")})(),Af=ps.fetch?(...e)=>ps.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),kf=ps.Headers,Mf=ps.AbortController,Of=$a({fetch:Af,Headers:kf,AbortController:Mf}),Lf=Of,$f=()=>window?.__NUXT__?.config||window?.useNuxtApp?.().payload?.config,Kr=()=>$f().app,Df=()=>Kr().baseURL,If=()=>Kr().buildAssetsDir,Jr=(...e)=>ka(Da(),If(),...e),Da=(...e)=>{const t=Kr(),n=t.cdnURL||t.baseURL;return e.length?ka(n,...e):n};globalThis.__buildAssetsURL=Jr,globalThis.__publicAssetsURL=Da;globalThis.$fetch||(globalThis.$fetch=Lf.create({baseURL:Df()}));"global"in globalThis||(globalThis.global=globalThis);function yr(e,t={},n){for(const s in e){const r=e[s],o=n?`${n}:${s}`:s;typeof r=="object"&&r!==null?yr(r,t,o):typeof r=="function"&&(t[o]=r)}return t}const Nf={run:e=>e()},Hf=()=>Nf,Ia=typeof console.createTask<"u"?console.createTask:Hf;function jf(e,t){const n=t.shift(),s=Ia(n);return e.reduce((r,o)=>r.then(()=>s.run(()=>o(...t))),Promise.resolve())}function zf(e,t){const n=t.shift(),s=Ia(n);return Promise.all(e.map(r=>s.run(()=>r(...t))))}function Qs(e,t){for(const n of[...e])n(t)}class Bf{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,s={}){if(!t||typeof n!="function")return()=>{};const r=t;let o;for(;this._deprecatedHooks[t];)o=this._deprecatedHooks[t],t=o.to;if(o&&!s.allowDeprecated){let i=o.message;i||(i=`${r} hook has been deprecated`+(o.to?`, please use ${o.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let s,r=(...o)=>(typeof s=="function"&&s(),s=void 0,r=void 0,n(...o));return s=this.hook(t,r),s}removeHook(t,n){if(this._hooks[t]){const s=this._hooks[t].indexOf(n);s!==-1&&this._hooks[t].splice(s,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const s=this._hooks[t]||[];delete this._hooks[t];for(const r of s)this.hook(t,r)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=yr(t),s=Object.keys(n).map(r=>this.hook(r,n[r]));return()=>{for(const r of s.splice(0,s.length))r()}}removeHooks(t){const n=yr(t);for(const s in n)this.removeHook(s,n[s])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(jf,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(zf,t,...n)}callHookWith(t,n,...s){const r=this._before||this._after?{name:n,args:s,context:{}}:void 0;this._before&&Qs(this._before,r);const o=t(n in this._hooks?[...this._hooks[n]]:[],s);return o instanceof Promise?o.finally(()=>{this._after&&r&&Qs(this._after,r)}):(this._after&&r&&Qs(this._after,r),o)}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 Na(){return new Bf}function Ff(e={}){let t,n=!1;const s=i=>{if(t&&t!==i)throw new Error("Context conflict")};let r;if(e.asyncContext){const i=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;i?r=new i:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const o=()=>{if(r){const i=r.getStore();if(i!==void 0)return i}return t};return{use:()=>{const i=o();if(i===void 0)throw new Error("Context is not available");return i},tryUse:()=>o(),set:(i,a)=>{a||s(i),t=i,n=!0},unset:()=>{t=void 0,n=!1},call:(i,a)=>{s(i),t=i;try{return r?r.run(i,a):a()}finally{n||(t=void 0)}},async callAsync(i,a){t=i;const l=()=>{t=i},f=()=>t===i?l:void 0;_r.add(f);try{const c=r?r.run(i,a):a();return n||(t=void 0),await c}finally{_r.delete(f)}}}}function Uf(e={}){const t={};return{get(n,s={}){return t[n]||(t[n]=Ff({...e,...s})),t[n]}}}const ms=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},jo="__unctx__",Vf=ms[jo]||(ms[jo]=Uf()),Wf=(e,t={})=>Vf.get(e,t),zo="__unctx_async_handlers__",_r=ms[zo]||(ms[zo]=new Set);function Ha(e){const t=[];for(const r of _r){const o=r();o&&t.push(o)}const n=()=>{for(const r of t)r()};let s=e();return s&&typeof s=="object"&&"catch"in s&&(s=s.catch(r=>{throw n(),r})),[s,n]}const Bo={id:"__nuxt-loader"},qf={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},Kf={deep:!1},Jf={},Gf="#__nuxt",ja="nuxt-app",Fo=36e5,Xf="vite:preloadError";function za(e=ja){return Wf(e,{asyncContext:!1})}const Yf="__nuxt_plugin";function Qf(e){let t=0;const n={_id:e.id||ja||"nuxt-app",_scope:Rl(),provide:void 0,versions:{get nuxt(){return"4.1.2"},get vue(){return n.vueApp.version}},payload:Jt({...e.ssrContext?.payload||{},data:Jt({}),state:dt({}),once:new Set,_errors:Jt({})}),static:{data:{}},runWithContext(r){return n._scope.active&&!Ss()?n._scope.run(()=>Uo(n,r)):Uo(n,r)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let r=!1;return()=>{if(!r&&(r=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:Jt({}),_payloadRevivers:{},...e};{const r=window.__NUXT__;if(r)for(const o in r)switch(o){case"data":case"state":case"_errors":Object.assign(n.payload[o],r[o]);break;default:n.payload[o]=r[o]}}n.hooks=Na(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(r,o)=>{const i="$"+r;Fn(n,i,o),Fn(n.vueApp.config.globalProperties,i,o)},Fn(n.vueApp,"$nuxt",n),Fn(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(Xf,o=>{n.callHook("app:chunkError",{error:o.payload}),o.payload.message.includes("Unable to preload CSS")&&o.preventDefault()}),window.useNuxtApp||=Te;const r=n.hook("app:error",(...o)=>{console.error("[nuxt] error caught during app initialization",...o)});n.hook("app:mounted",r)}const s=n.payload.config;return n.provide("config",s),n}function Zf(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function ed(e,t){if(typeof t=="function"){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n=="object")for(const s in n)e.provide(s,n[s])}}async function td(e,t){const n=new Set,s=[],r=[];let o,i=0;async function a(l){const f=l.dependsOn?.filter(c=>t.some(u=>u._name===c)&&!n.has(c))??[];if(f.length>0)s.push([new Set(f),l]);else{const c=ed(e,l).then(async()=>{l._name&&(n.add(l._name),await Promise.all(s.map(async([u,h])=>{u.has(l._name)&&(u.delete(l._name),u.size===0&&(i++,await a(h)))})))}).catch(u=>{if(!l.parallel&&!e.payload.error)throw u;o||=u});l.parallel?r.push(c):await c}}for(const l of t)Zf(e,l);for(const l of t)await a(l);if(await Promise.all(r),i)for(let l=0;l<i;l++)await Promise.all(r);if(o)throw e.payload.error||o}function Ct(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[Yf]:!0,_name:t})}function Uo(e,t,n){const s=()=>t();return za(e._id).set(e),e.vueApp.runWithContext(s)}function nd(e){let t;return zr()&&(t=it()?.appContext.app.$nuxt),t||=za(e).tryUse(),t||null}function Te(e){const t=nd(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function fn(e){return Te().$config}function Fn(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function sd(e,t){return{ctx:{table:e},matchAll:n=>Fa(n,e)}}function Ba(e){const t={};for(const n in e)t[n]=n==="dynamic"?new Map(Object.entries(e[n]).map(([s,r])=>[s,Ba(r)])):new Map(Object.entries(e[n]));return t}function rd(e){return sd(Ba(e))}function Fa(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1)||"/");const s=[];for(const[o,i]of Vo(t.wildcard))(e===o||e.startsWith(o+"/"))&&s.push(i);for(const[o,i]of Vo(t.dynamic))if(e.startsWith(o+"/")){const a="/"+e.slice(o.length).split("/").splice(2).join("/");s.push(...Fa(a,i))}const r=t.static.get(e);return r&&s.push(r),s.filter(Boolean)}function Vo(e){return[...e.entries()].sort((t,n)=>t[0].length-n[0].length)}function Zs(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 vr(e,t,n=".",s){if(!Zs(t))return vr(e,{},n,s);const r=Object.assign({},t);for(const o in e){if(o==="__proto__"||o==="constructor")continue;const i=e[o];i!=null&&(s&&s(r,o,i,n)||(Array.isArray(i)&&Array.isArray(r[o])?r[o]=[...i,...r[o]]:Zs(i)&&Zs(r[o])?r[o]=vr(i,r[o],(n?`${n}.`:"")+o.toString(),s):r[o]=i))}return r}function od(e){return(...t)=>t.reduce((n,s)=>vr(n,s,"",e),{})}const id=od();function ad(e,t){try{return t in e}catch{return!1}}class Wo 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:br(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=Ua(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}function ld(e){if(typeof e=="string")return new Wo(e);if(cd(e))return e;const t=new Wo(e.message??e.statusMessage??"",{cause:e.cause||e});if(ad(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=br(e.statusCode,t.statusCode):e.status&&(t.statusCode=br(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;Ua(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 cd(e){return e?.constructor?.__h3_error__===!0}const ud=/[^\u0009\u0020-\u007E]/g;function Ua(e=""){return e.replace(ud,"")}function br(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const Va=Symbol("route");import.meta.url.replace(/\/app\/.*$/,"/");const pt=()=>Te()?.$router,Wa=()=>zr()?We(Va,Te()._route):Te()._route;const fd=()=>{try{if(Te()._processingMiddleware)return!0}catch{return!1}return!1},qa=(e,t)=>{e||="/";const n=typeof e=="string"?e:"path"in e?wr(e):pt().resolve(e).href;if(t?.open){const{target:l="_blank",windowFeatures:f={}}=t.open,c=[];for(const[u,h]of Object.entries(f))h!==void 0&&c.push(`${u.toLowerCase()}=${h}`);return open(n,l,c.join(", ")),Promise.resolve()}const s=Ot(n,{acceptRelative:!0}),r=t?.external||s;if(r){if(!t?.external)throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:l}=new URL(n,window.location.href);if(l&&df(l))throw new Error(`Cannot navigate to a URL with '${l}' protocol.`)}const o=fd();if(!r&&o){if(t?.replace){if(typeof e=="string"){const{pathname:l,search:f,hash:c}=Oa(e);return{path:l,...f&&{query:Ls(f)},...c&&{hash:c},replace:!0}}return{...e,replace:!0}}return e}const i=pt(),a=Te();return r?(a._scope.stop(),t?.replace?location.replace(n):location.href=n,o?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t?.replace?i.replace(e):i.push(e)};function wr(e){return Pa(e.path||"",e.query||{})+(e.hash||"")}const Ka="__nuxt_error",Gr=()=>$r(Te().payload,"error"),dd=e=>{const t=Ds(e);try{const n=Te(),s=Gr();n.hooks.callHook("app:error",t),s.value||=t}catch{throw t}return t},hd=async(e={})=>{const t=Te(),n=Gr();t.callHook("app:error:cleared",e),e.redirect&&await pt().replace(e.redirect),n.value=void 0},pd=e=>!!e&&typeof e=="object"&&Ka in e,Ds=e=>{const t=ld(e);return Object.defineProperty(t,Ka,{value:!0,configurable:!1,writable:!1}),t};function md(e){const t=yd(e),n=new ArrayBuffer(t.length),s=new DataView(n);for(let r=0;r<n.byteLength;r++)s.setUint8(r,t.charCodeAt(r));return n}const gd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function yd(e){e.length%4===0&&(e=e.replace(/==?$/,""));let t="",n=0,s=0;for(let r=0;r<e.length;r++)n<<=6,n|=gd.indexOf(e[r]),s+=6,s===24&&(t+=String.fromCharCode((n&16711680)>>16),t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255),n=s=0);return s===12?(n>>=4,t+=String.fromCharCode(n)):s===18&&(n>>=2,t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255)),t}const _d=-1,vd=-2,bd=-3,wd=-4,xd=-5,Sd=-6;function Ed(e,t){return Td(JSON.parse(e),t)}function Td(e,t){if(typeof e=="number")return r(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,s=Array(n.length);function r(o,i=!1){if(o===_d)return;if(o===bd)return NaN;if(o===wd)return 1/0;if(o===xd)return-1/0;if(o===Sd)return-0;if(i||typeof o!="number")throw new Error("Invalid input");if(o in s)return s[o];const a=n[o];if(!a||typeof a!="object")s[o]=a;else if(Array.isArray(a))if(typeof a[0]=="string"){const l=a[0],f=t?.[l];if(f)return s[o]=f(r(a[1]));switch(l){case"Date":s[o]=new Date(a[1]);break;case"Set":const c=new Set;s[o]=c;for(let d=1;d<a.length;d+=1)c.add(r(a[d]));break;case"Map":const u=new Map;s[o]=u;for(let d=1;d<a.length;d+=2)u.set(r(a[d]),r(a[d+1]));break;case"RegExp":s[o]=new RegExp(a[1],a[2]);break;case"Object":s[o]=Object(a[1]);break;case"BigInt":s[o]=BigInt(a[1]);break;case"null":const h=Object.create(null);s[o]=h;for(let d=1;d<a.length;d+=2)h[a[d]]=r(a[d+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const d=globalThis[l],g=new d(r(a[1]));s[o]=a[2]!==void 0?g.subarray(a[2],a[3]):g;break}case"ArrayBuffer":{const d=a[1],g=md(d);s[o]=g;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{const d=l.slice(9);s[o]=Temporal[d].from(a[1]);break}case"URL":{const d=new URL(a[1]);s[o]=d;break}case"URLSearchParams":{const d=new URLSearchParams(a[1]);s[o]=d;break}default:throw new Error(`Unknown type ${l}`)}}else{const l=new Array(a.length);s[o]=l;for(let f=0;f<a.length;f+=1){const c=a[f];c!==vd&&(l[f]=r(c))}}else{const l={};s[o]=l;for(const f in a){if(f==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const c=a[f];l[f]=r(c)}}return s[o]}return r(0)}const Cd=new Set(["link","style","script","noscript"]),Rd=new Set(["title","titleTemplate","script","style","noscript"]),qo=new Set(["base","meta","link","style","script","noscript"]),Pd=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),Ad=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),kd=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),Md=new Set(["templateParams","htmlAttrs","bodyAttrs"]),Od=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]),Ld=["name","property","http-equiv"],$d=new Set(["viewport","description","keywords","robots"]);function Ja(e){const t=e.split(":");return t.length?Od.has(t[1]):!1}function xr(e){const{props:t,tag:n}=e;if(Ad.has(n))return n;if(n==="link"&&t.rel==="canonical")return"canonical";if(t.charset)return"charset";if(e.tag==="meta"){for(const s of Ld)if(t[s]!==void 0){const r=t[s],o=r.includes(":"),i=$d.has(r),l=!(o||i)&&e.key?`:key:${e.key}`:"";return`${n}:${r}${l}`}}if(e.key)return`${n}:key:${e.key}`;if(t.id)return`${n}:id:${t.id}`;if(Rd.has(n)){const s=e.textContent||e.innerHTML;if(s)return`${n}:content:${s}`}}function Ko(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(([s,r])=>`${s}:${String(r)}`).join(",")}`}function gs(e,t,n){typeof e==="function"&&(!n||n!=="titleTemplate"&&!(n[0]==="o"&&n[1]==="n"))&&(e=e());let r;if(t&&(r=t(n,e)),Array.isArray(r))return r.map(o=>gs(o,t));if(r?.constructor===Object){const o={};for(const i of Object.keys(r))o[i]=gs(r[i],t,i);return o}return r}function Dd(e,t){const n=e==="style"?new Map:new Set;function s(r){const o=r.trim();if(o)if(e==="style"){const[i,...a]=o.split(":").map(l=>l.trim());i&&a.length&&n.set(i,a.join(":"))}else o.split(" ").filter(Boolean).forEach(i=>n.add(i))}return typeof t=="string"?e==="style"?t.split(";").forEach(s):s(t):Array.isArray(t)?t.forEach(r=>s(r)):t&&typeof t=="object"&&Object.entries(t).forEach(([r,o])=>{o&&o!=="false"&&(e==="style"?n.set(r.trim(),o):s(r))}),n}function Ga(e,t){return e.props=e.props||{},t?e.tag==="templateParams"?(e.props=t,e):(Object.entries(t).forEach(([n,s])=>{if(s===null){e.props[n]=null;return}if(n==="class"||n==="style"){e.props[n]=Dd(n,s);return}if(kd.has(n)){if(["textContent","innerHTML"].includes(n)&&typeof s=="object"){let i=t.type;if(t.type||(i="application/json"),!i?.endsWith("json")&&i!=="speculationrules")return;t.type=i,e.props.type=i,e[n]=JSON.stringify(s)}else e[n]=s;return}const r=String(s),o=n.startsWith("data-");r==="true"||r===""?e.props[n]=o?r:!0:!s&&o&&r==="false"?e.props[n]="false":s!==void 0&&(e.props[n]=s)}),e):e}function Id(e,t){const n=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},s=Ga({tag:e,props:{}},n);return s.key&&Cd.has(s.tag)&&(s.props["data-hid"]=s._h=s.key),s.tag==="script"&&typeof s.innerHTML=="object"&&(s.innerHTML=JSON.stringify(s.innerHTML),s.props.type=s.props.type||"application/json"),Array.isArray(s.props.content)?s.props.content.map(r=>({...s,props:{...s.props,content:r}})):s}function Nd(e,t){if(!e)return[];typeof e=="function"&&(e=e());const n=(r,o)=>{for(let i=0;i<t.length;i++)o=t[i](r,o);return o};e=n(void 0,e);const s=[];return e=gs(e,n),Object.entries(e||{}).forEach(([r,o])=>{if(o!==void 0)for(const i of Array.isArray(o)?o:[o])s.push(Id(r,i))}),s.flat()}const Jo=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,Go={base:-10,title:10},Hd={critical:-8,high:-1,low:2},Xo={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}},jd=/@import/,yn=e=>e===""||e===!0;function zd(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let n=100;const s=Hd[t.tagPriority]||0,r=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:Xo;if(t.tag in Go)n=Go[t.tag];else if(t.tag==="meta"){const o=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;o&&(n=Xo.meta[o])}else t.tag==="link"&&t.props.rel?n=r.link[t.props.rel]:t.tag==="script"?yn(t.props.async)?n=r.script.async:t.props.src&&!yn(t.props.defer)&&!yn(t.props.async)&&t.props.type!=="module"&&!t.props.type?.endsWith("json")?n=r.script.sync:yn(t.props.defer)&&t.props.src&&!yn(t.props.async)&&(n=r.script.defer):t.tag==="style"&&(n=t.innerHTML&&jd.test(t.innerHTML)?r.style.imported:r.style.sync);return(n||100)+s}function Yo(e,t){const n=typeof t=="function"?t(e):t,s=n.key||String(e.plugins.size+1);e.plugins.get(s)||(e.plugins.set(s,n),e.hooks.addHooks(n.hooks||{}))}function Bd(e={}){const t=Na();t.addHooks(e.hooks||{});const n=!e.document,s=new Map,r=new Map,o=new Set,i={_entryCount:1,plugins:r,dirty:!1,resolvedOptions:e,hooks:t,ssr:n,entries:s,headEntries(){return[...s.values()]},use:a=>Yo(i,a),push(a,l){const f={...l||{}};delete f.head;const c=f._index??i._entryCount++,u={_i:c,input:a,options:f},h={_poll(d=!1){i.dirty=!0,!d&&o.add(c),t.callHook("entries:updated",i)},dispose(){s.delete(c)&&i.invalidate()},patch(d){(!f.mode||f.mode==="server"&&n||f.mode==="client"&&!n)&&(u.input=d,s.set(c,u),h._poll())}};return h.patch(a),h},async resolveTags(){const a={tagMap:new Map,tags:[],entries:[...i.entries.values()]};for(await t.callHook("entries:resolve",a);o.size;){const h=o.values().next().value;o.delete(h);const d=s.get(h);if(d){const g={tags:Nd(d.input,e.propResolvers||[]).map(y=>Object.assign(y,d.options)),entry:d};await t.callHook("entries:normalize",g),d._tags=g.tags.map((y,w)=>(y._w=zd(i,y),y._p=(d._i<<10)+w,y._d=xr(y),y))}}let l=!1;a.entries.flatMap(h=>(h._tags||[]).map(d=>({...d,props:{...d.props}}))).sort(Jo).reduce((h,d)=>{const g=String(d._d||d._p);if(!h.has(g))return h.set(g,d);const y=h.get(g);if((d?.tagDuplicateStrategy||(Md.has(d.tag)?"merge":null)||(d.key&&d.key===y.key?"merge":null))==="merge"){const x={...y.props};Object.entries(d.props).forEach(([E,m])=>x[E]=E==="style"?new Map([...y.props.style||new Map,...m]):E==="class"?new Set([...y.props.class||new Set,...m]):m),h.set(g,{...d,props:x})}else d._p>>10===y._p>>10&&d.tag==="meta"&&Ja(g)?(h.set(g,Object.assign([...Array.isArray(y)?y:[y],d],d)),l=!0):(d._w===y._w?d._p>y._p:d?._w<y?._w)&&h.set(g,d);return h},a.tagMap);const f=a.tagMap.get("title"),c=a.tagMap.get("titleTemplate");if(i._title=f?.textContent,c){const h=c?.textContent;if(i._titleTemplate=h,h){let d=typeof h=="function"?h(f?.textContent):h;typeof d=="string"&&!i.plugins.has("template-params")&&(d=d.replace("%s",f?.textContent||"")),f?d===null?a.tagMap.delete("title"):a.tagMap.set("title",{...f,textContent:d}):(c.tag="title",c.textContent=d)}}a.tags=Array.from(a.tagMap.values()),l&&(a.tags=a.tags.flat().sort(Jo)),await t.callHook("tags:beforeResolve",a),await t.callHook("tags:resolve",a),await t.callHook("tags:afterResolve",a);const u=[];for(const h of a.tags){const{innerHTML:d,tag:g,props:y}=h;if(Pd.has(g)&&!(Object.keys(y).length===0&&!h.innerHTML&&!h.textContent)&&!(g==="meta"&&!y.content&&!y["http-equiv"]&&!y.charset)){if(g==="script"&&d){if(y.type?.endsWith("json")){const w=typeof d=="string"?d:JSON.stringify(d);h.innerHTML=w.replace(/</g,"\\u003C")}else typeof d=="string"&&(h.innerHTML=d.replace(new RegExp(`</${g}`,"g"),`<\\/${g}`));h._d=xr(h)}u.push(h)}}return u},invalidate(){for(const a of s.values())o.add(a._i);i.dirty=!0,t.callHook("entries:updated",i)}};return(e?.plugins||[]).forEach(a=>Yo(i,a)),i.hooks.callHook("init",i),e.init?.forEach(a=>a&&i.push(a)),i}const Fd=(e,t)=>_e(t)?Re(t):t,Xa="usehead";function Ud(e){return{install(n){n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(Xa,e)}}.install}function Vd(){if(zr()){const e=We(Xa);if(!e)throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");return e}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function zm(e,t={}){const n=t.head||Vd();return n.ssr?n.push(e||{},t):Wd(n,e,t)}function Wd(e,t,n={}){const s=we(!1);let r;return Vc(()=>{const i=s.value?{}:gs(t,Fd);r?r.patch(i):r=e.push(i,n)}),it()&&(Ln(()=>{r.dispose()}),zi(()=>{s.value=!0}),ji(()=>{s.value=!1})),r}const qd="modulepreload",Kd=function(e,t){return new URL(e,t).href},Qo={},Ce=function(t,n,s){let r=Promise.resolve();if(n&&n.length>0){let f=function(c){return Promise.all(c.map(u=>Promise.resolve(u).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};const i=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=a?.nonce||a?.getAttribute("nonce");r=f(n.map(c=>{if(c=Kd(c,s),c in Qo)return;Qo[c]=!0;const u=c.endsWith(".css"),h=u?'[rel="stylesheet"]':"";if(!!s)for(let y=i.length-1;y>=0;y--){const w=i[y];if(w.href===c&&(!u||w.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${h}`))return;const g=document.createElement("link");if(g.rel=u?"stylesheet":qd,u||(g.as="script"),g.crossOrigin="",g.href=c,l&&g.setAttribute("nonce",l),document.head.appendChild(g),u)return new Promise((y,w)=>{g.addEventListener("load",y),g.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return r.then(i=>{for(const a of i||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})};let Yn,Qn;function Jd(){return Yn=$fetch(Jr(`builds/meta/${fn().app.buildId}.json`),{responseType:"json"}),Yn.then(e=>{Qn=rd(e.matcher)}).catch(e=>{console.error("[nuxt] Error fetching app manifest.",e)}),Yn}function Is(){return Yn||Jd()}async function Xr(e){const t=typeof e=="string"?e:e.path;if(await Is(),!Qn)return console.error("[nuxt] Error creating app manifest matcher.",Qn),{};try{return id({},...Qn.matchAll(t).reverse())}catch(n){return console.error("[nuxt] Error matching route rules.",n),{}}}async function Zo(e,t={}){if(!await Qa(e))return null;const s=await Xd(e,t);return await Ya(s)||null}const Gd="_payload.json";async function Xd(e,t={}){const n=new URL(e,"http://localhost");if(n.host!=="localhost"||Ot(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const s=fn(),r=t.hash||(t.fresh?Date.now():s.app.buildId),o=s.app.cdnURL,i=o&&await Qa(e)?o:s.app.baseURL;return $n(i,n.pathname,Gd+(r?`?${r}`:""))}async function Ya(e){const t=fetch(e,{cache:"force-cache"}).then(n=>n.text().then(Za));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}async function Qa(e=Wa().path){const t=Te();return e=$s(e),(await Is()).prerendered.includes(e)?!0:t.runWithContext(async()=>{const s=await Xr({path:e});return!!s.prerender&&!s.redirect})}let $t=null;async function Yd(){if($t)return $t;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await Za(e.textContent||""),n=e.dataset.src?await Ya(e.dataset.src):void 0;return $t={...t,...n,...window.__NUXT__},$t.config?.public&&($t.config.public=dt($t.config.public)),$t}async function Za(e){return await Ed(e,Te()._payloadRevivers)}function Qd(e,t){Te()._payloadRevivers[e]=t}const Zd=[["NuxtError",e=>Ds(e)],["EmptyShallowRef",e=>et(e==="_"?void 0:e==="0n"?BigInt(0):fs(e))],["EmptyRef",e=>we(e==="_"?void 0:e==="0n"?BigInt(0):fs(e))],["ShallowRef",e=>et(e)],["ShallowReactive",e=>Jt(e)],["Ref",e=>we(e)],["Reactive",e=>dt(e)]],eh=Ct({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const[s,r]of Zd)Qd(s,r);Object.assign(e.payload,([t,n]=Ha(()=>e.runWithContext(Yd)),t=await t,n(),t)),delete window.__NUXT__}});async function Yr(e,t={}){const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const s={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",s),!!s.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async r=>{const o=new Map,i=new Promise(d=>{e.resolveTags().then(g=>{d(g.map(y=>{const w=o.get(y._d)||0,x={tag:y,id:(w?`${y._d}:${w}`:y._d)||Ko(y),shouldRender:!0};return y._d&&Ja(y._d)&&o.set(y._d,w+1),x}))})});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 g=n[d]?.children;for(const y of g){const w=y.tagName.toLowerCase();if(!qo.has(w))continue;const x=Ga({tag:w,props:{}},{innerHTML:y.innerHTML,...y.getAttributeNames().reduce((E,m)=>(E[m]=y.getAttribute(m),E),{})||{}});if(x.key=y.getAttribute("data-hid")||void 0,x._d=xr(x)||Ko(x),a.elMap.has(x._d)){let E=1,m=x._d;for(;a.elMap.has(m);)m=`${x._d}:${E++}`;a.elMap.set(m,y)}else a.elMap.set(x._d,y)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function l(d,g,y){const w=`${d}:${g}`;a.sideEffects[w]=y,delete a.pendingSideEffects[w]}function f({id:d,$el:g,tag:y}){const w=y.tag.endsWith("Attrs");a.elMap.set(d,g),w||(y.textContent&&y.textContent!==g.textContent&&(g.textContent=y.textContent),y.innerHTML&&y.innerHTML!==g.innerHTML&&(g.innerHTML=y.innerHTML),l(d,"el",()=>{g?.remove(),a.elMap.delete(d)}));for(const x in y.props){if(!Object.prototype.hasOwnProperty.call(y.props,x))continue;const E=y.props[x];if(x.startsWith("on")&&typeof E=="function"){const v=g?.dataset;if(v&&v[`${x}fired`]){const b=x.slice(0,-5);E.call(g,new Event(b.substring(2)))}g.getAttribute(`data-${x}`)!==""&&((y.tag==="bodyAttrs"?n.defaultView:g).addEventListener(x.substring(2),E.bind(g)),g.setAttribute(`data-${x}`,""));continue}const m=`attr:${x}`;if(x==="class"){if(!E)continue;for(const v of E)w&&l(d,`${m}:${v}`,()=>g.classList.remove(v)),!g.classList.contains(v)&&g.classList.add(v)}else if(x==="style"){if(!E)continue;for(const[v,b]of E)l(d,`${m}:${v}`,()=>{g.style.removeProperty(v)}),g.style.setProperty(v,b)}else E!==!1&&E!==null&&(g.getAttribute(x)!==E&&g.setAttribute(x,E===!0?"":String(E)),w&&l(d,m,()=>g.removeAttribute(x)))}}const c=[],u={bodyClose:void 0,bodyOpen:void 0,head:void 0},h=await i;for(const d of h){const{tag:g,shouldRender:y,id:w}=d;if(y){if(g.tag==="title"){n.title=g.textContent,l("title","",()=>n.title=a.title);continue}d.$el=d.$el||a.elMap.get(w),d.$el?f(d):qo.has(g.tag)&&c.push(d)}}for(const d of c){const g=d.tag.tagPosition||"head";d.$el=n.createElement(d.tag.tag),f(d),u[g]=u[g]||n.createDocumentFragment(),u[g].appendChild(d.$el)}for(const d of h)await e.hooks.callHook("dom:renderTag",d,n,l);u.head&&n.head.appendChild(u.head),u.bodyOpen&&n.body.insertBefore(u.bodyOpen,n.body.firstChild),u.bodyClose&&n.body.appendChild(u.bodyClose);for(const d in a.pendingSideEffects)a.pendingSideEffects[d]();e._dom=a,await e.hooks.callHook("dom:rendered",{renders:h}),r()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function th(e={}){const t=e.domOptions?.render||Yr;e.document=e.document||(typeof window<"u"?document:void 0);const n=e.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return Bd({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]})}function nh(e,t){let n=0;return()=>{const s=++n;t(()=>{n===s&&e()})}}function sh(e={}){const t=th({domOptions:{render:nh(()=>Yr(t),n=>setTimeout(n,0))},...e});return t.install=Ud(t),t}const rh={disableDefaults:!0},oh=Ct({name:"nuxt:head",enforce:"pre",setup(e){const t=sh(rh);e.vueApp.use(t);{let n=!0;const s=async()=>{n=!1,await Yr(t)};t.hooks.hook("dom:beforeRender",r=>{r.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||s()}),e.hooks.hook("app:error",s),e.hooks.hook("app:suspense:resolve",s)}}}),ih=async e=>{let t,n;const s=([t,n]=Ha(()=>Xr({path:e.path})),t=await t,n(),t);if(s.redirect)return Ot(s.redirect,{acceptRelative:!0})?(window.location.href=s.redirect,!1):s.redirect},ah=[ih];function er(e){const t=e&&typeof e=="object"?e:{};typeof e=="object"&&(e=La({pathname:e.path||"",search:Ra(e.query||{}),hash:e.hash||""}));const n=new URL(e.toString(),window.location.href);return{path:n.pathname,fullPath:e,query:Ls(n.search),hash:n.hash,params:t.params||{},name:void 0,matched:t.matched||[],redirectedFrom:void 0,meta:t.meta||{},href:e}}const lh=Ct({name:"nuxt:router",enforce:"pre",setup(e){const t=mf(window.location.pathname,fn().app.baseURL)+window.location.search+window.location.hash,n=[],s={"navigate:before":[],"resolve:before":[],"navigate:after":[],error:[]},r=(u,h)=>(s[u].push(h),()=>s[u].splice(s[u].indexOf(h),1)),o=fn().app.baseURL,i=dt(er(t));async function a(u,h){try{const d=er(u);for(const g of s["navigate:before"]){const y=await g(d,i);if(y===!1||y instanceof Error)return;if(typeof y=="string"&&y.length)return a(y,!0)}for(const g of s["resolve:before"])await g(d,i);Object.assign(i,d),window.history[h?"replaceState":"pushState"]({},"",$n(o,d.fullPath)),e.isHydrating||await e.runWithContext(hd);for(const g of s["navigate:after"])await g(d,i)}catch(d){for(const g of s.error)await g(d)}}const f={currentRoute:ie(()=>i),isReady:()=>Promise.resolve(),options:{},install:()=>Promise.resolve(),push:u=>a(u,!1),replace:u=>a(u,!0),back:()=>window.history.go(-1),go:u=>window.history.go(u),forward:()=>window.history.go(1),beforeResolve:u=>r("resolve:before",u),beforeEach:u=>r("navigate:before",u),afterEach:u=>r("navigate:after",u),onError:u=>r("error",u),resolve:er,addRoute:(u,h)=>{n.push(h)},getRoutes:()=>n,hasRoute:u=>n.some(h=>h.name===u),removeRoute:u=>{const h=n.findIndex(d=>d.name===u);h!==-1&&n.splice(h,1)}};e.vueApp.component("RouterLink",mt({functional:!0,props:{to:{type:String,required:!0},custom:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:String},setup:(u,{slots:h})=>{const d=()=>a(u.to,u.replace);return()=>{const g=f.resolve(u.to);return u.custom?h.default?.({href:u.to,navigate:d,route:g}):un("a",{href:u.to,onClick:y=>(y.preventDefault(),d())},h)}}})),window.addEventListener("popstate",u=>{const h=u.target.location;f.replace(h.href.replace(h.origin,""))}),e._route=i,e._middleware||={global:[],named:{}};const c=e.payload.state._layout;return e.hooks.hookOnce("app:created",async()=>{f.beforeEach(async(u,h)=>{u.meta=dt(u.meta||{}),e.isHydrating&&c&&!Et(u.meta.layout)&&(u.meta.layout=c),e._processingMiddleware=!0;{const d=new Set([...ah,...e._middleware.global]);{const g=await e.runWithContext(()=>Xr({path:u.path}));if(g.appMiddleware)for(const y in g.appMiddleware){const w=e._middleware.named[y];if(!w)return;g.appMiddleware[y]?d.add(w):d.delete(w)}}for(const g of d){const y=await e.runWithContext(()=>g(u,h));if(y!==!0&&(y||y===!1))return y}}}),f.afterEach(()=>{delete e._processingMiddleware}),await f.replace(t),yf(i.fullPath,t)||await e.runWithContext(()=>qa(i.fullPath))}),{provide:{route:i,router:f}}}}),Sr=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),ch=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),Ns=e=>{const t=Te();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{Sr(()=>e())}):Sr(()=>e())},uh=Ct({name:"nuxt:payload",setup(e){const t=new Set;pt().beforeResolve(async(n,s)=>{if(n.path===s.path)return;const r=await Zo(n.path);if(r){for(const o of t)delete e.static.data[o];for(const o in r.data)o in e.static.data||t.add(o),e.static.data[o]=r.data[o]}}),Ns(()=>{e.hooks.hook("link:prefetch",async n=>{const{hostname:s}=new URL(n,window.location.href);s===window.location.hostname&&await Zo(n).catch(()=>{console.warn("[nuxt] Error preloading payload for",n)})}),navigator.connection?.effectiveType!=="slow-2g"&&setTimeout(Is,1e3)})}}),fh=Ct(()=>{const e=pt();Ns(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),dh=Ct(e=>{let t;async function n(){let s;try{s=await Is()}catch(r){const o=r;if(!("status"in o&&(o.status===404||o.status===403)))throw o}t&&clearTimeout(t),t=setTimeout(n,Fo);try{const r=await $fetch(Jr("builds/latest.json")+`?${Date.now()}`);r.id!==s?.id&&(e.hooks.callHook("app:manifest:update",r),t&&clearTimeout(t))}catch{}}Ns(()=>{t=setTimeout(n,Fo)})});function hh(e={}){const t=e.path||window.location.pathname;let n={};try{n=fs(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:Te().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}const ph=Ct({name:"nuxt:chunk-reload",setup(e){const t=pt(),n=fn(),s=new Set;t.beforeEach(()=>{s.clear()}),e.hook("app:chunkError",({error:o})=>{s.add(o)});function r(o){const i=$n(n.app.baseURL,o.fullPath);hh({path:i,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(r)}),t.onError((o,i)=>{s.has(o)&&r(i)})}}),mh=Ee(()=>Ce(()=>import("./BiAFyfuC.js"),[],import.meta.url).then(e=>e.default||e.default||e)),gh=Ee(()=>Ce(()=>import("./w6Ba9RFs.js"),[],import.meta.url).then(e=>e.default||e.default||e)),yh=Ee(()=>Ce(()=>import("./DxtrUEuP.js"),[],import.meta.url).then(e=>e.default||e.default||e)),_h=Ee(()=>Ce(()=>import("./Cy7ER5AW.js"),[],import.meta.url).then(e=>e.default||e.default||e)),vh=Ee(()=>Ce(()=>import("./CZl87j9X.js"),[],import.meta.url).then(e=>e.default||e.default||e)),bh=Ee(()=>Ce(()=>import("./C_9V6maS.js"),[],import.meta.url).then(e=>e.default||e.default||e)),wh=Ee(()=>Ce(()=>import("./vtjzglMa.js"),[],import.meta.url).then(e=>e.default||e.default||e)),xh=Ee(()=>Ce(()=>import("./nELEOAeo.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Sh=Ee(()=>Ce(()=>import("./CrS-Eymw.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Eh=Ee(()=>Ce(()=>import("./B1_8x1Pc.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Th=Ee(()=>Ce(()=>import("./Cx6idk6p.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Ch=Ee(()=>Ce(()=>import("./C7tL_S05.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Rh=Ee(()=>Ce(()=>import("./xgtAgxcg.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Ph=Ee(()=>Ce(()=>import("./D6oGVCO1.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Ah=Ee(()=>Ce(()=>import("./nqGpOCzb.js"),[],import.meta.url).then(e=>e.default||e.default||e)),kh=Ee(()=>Ce(()=>import("./PSW7UpGH.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Mh=Ee(()=>Ce(()=>import("./oPyquYyc.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Oh=Ee(()=>Ce(()=>import("./DKtnr7fR.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Lh=[["BodyEBody",mh],["ButtonEButton",gh],["CodeBlockECodeBlock",yh],["CodeInlineECodeInline",_h],["ColumnEColumn",vh],["ContainerEContainer",bh],["FontEFont",wh],["HeadEHead",xh],["HeadingEHeading",Sh],["HrEHr",Eh],["HtmlEHtml",Th],["ImgEImg",Ch],["LinkELink",Rh],["PreviewEPreview",Ph],["RowERow",Ah],["SectionESection",kh],["StyleEStyle",Mh],["TextEText",Oh]],$h=Ct({name:"nuxt:global-components",setup(e){for(const[t,n]of Lh)e.vueApp.component(t,n),e.vueApp.component("Lazy"+t,n)}}),Dh=Ct(()=>{}),Ih=[eh,oh,lh,uh,fh,dh,ph,$h,Dh],Qr=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},Nh={},Hh={class:"n-loading n-panel-grids-center"},jh={class:"flex flex-col animate-pulse items-center text-lg"};function zh(e,t){return q(),fe("div",Hh,[ce("div",jh,[t[1]||(t[1]=ce("div",{class:"i-carbon-circle-dash animate-spin text-4xl op50"},null,-1)),Ge(e.$slots,"default",{},()=>[t[0]||(t[0]=je(" Loading... ",-1))])])])}const el=Object.assign(Qr(Nh,[["render",zh]]),{__name:"NLoading"}),Hs={__name:"NIcon",props:{icon:{type:String,required:!1}},setup(e){return(t,n)=>(q(),fe("div",{class:ot(["n-icon",e.icon])},null,2))}},Bh={class:"n-tip n-tip-base"},tl={__name:"NTip",props:{icon:{type:String,required:!1}},setup(e){return(t,n)=>{const s=Hs;return q(),fe("div",Bh,[Ge(t.$slots,"icon",{},()=>[e.icon?(q(),Se(s,{key:0,icon:e.icon,class:"n-tip-icon"},null,8,["icon"])):Je("",!0)]),ce("div",null,[Ge(t.$slots,"default")])])}}},Fh={},Uh={class:"n-card n-card-base"};function Vh(e,t){return q(),fe("div",Uh,[Ge(e.$slots,"default")])}const Zr=Object.assign(Qr(Fh,[["render",Vh]]),{__name:"NCard"}),Wh={flex:"~ gap-3","items-center":""},nl={__name:"NIconTitle",props:{icon:{type:String,required:!1},text:{type:String,required:!1}},setup(e){return(t,n)=>(q(),fe("div",Wh,[e.icon?(q(),fe("div",{key:0,class:ot(e.icon)},null,2)):Je("",!0),Ge(t.$slots,"default",{},()=>[ce("div",null,Ke(e.text),1)])]))}},qh={},Kh={class:"n-badge"};function Jh(e,t){return q(),fe("span",Kh,[Ge(e.$slots,"default")])}const eo=Object.assign(Qr(qh,[["render",Jh]]),{__name:"NBadge"});function sl(e){return Ss()?(mi(e),!0):!1}const to=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Gh=e=>typeof e<"u",Xh=Object.prototype.toString,Yh=e=>Xh.call(e)==="[object Object]",Qh=()=>{};function Zh(...e){if(e.length!==1)return $r(...e);const t=e[0];return typeof t=="function"?Rs(Ql(()=>({get:t,set:Qh}))):we(t)}function ep(e,t){function n(...s){return new Promise((r,o)=>{Promise.resolve(e(()=>t.apply(this,s),{fn:t,thisArg:this,args:s})).then(r).catch(o)})}return n}const rl=e=>e();function tp(e=rl,t={}){const{initialState:n="active"}=t,s=Zh(n==="active");function r(){s.value=!1}function o(){s.value=!0}const i=(...a)=>{s.value&&e(...a)};return{isActive:Rs(s),pause:r,resume:o,eventFilter:i}}function np(e){let t;function n(){return t||(t=e()),t}return n.reset=async()=>{const s=t;t=void 0,s&&await s},n}function tr(e){return Array.isArray(e)?e:[e]}function sp(e){return it()}function rp(e,t,n={}){const{eventFilter:s=rl,...r}=n;return De(e,ep(s,t),r)}function op(e,t,n={}){const{eventFilter:s,initialState:r="active",...o}=n,{eventFilter:i,pause:a,resume:l,isActive:f}=tp(s,{initialState:r});return{stop:rp(e,t,{...o,eventFilter:i}),pause:a,resume:l,isActive:f}}function ip(e,t=!0,n){sp()?hn(e,n):t?e():ft(e)}function ap(e,t,n={}){const{immediate:s=!0,immediateCallback:r=!1}=n,o=et(!1);let i;function a(){i&&(clearTimeout(i),i=void 0)}function l(){o.value=!1,a()}function f(...c){r&&e(),a(),o.value=!0,i=setTimeout(()=>{o.value=!1,i=void 0,e(...c)},Re(t))}return s&&(o.value=!0,to&&f()),sl(l),{isPending:Kl(o),start:f,stop:l}}function lp(e,t,n){return De(e,t,{...n,immediate:!0})}const ys=to?window:void 0,ol=to?window.navigator:void 0;function cp(e){var t;const n=Re(e);return(t=n?.$el)!=null?t:n}function _s(...e){const t=[],n=()=>{t.forEach(a=>a()),t.length=0},s=(a,l,f,c)=>(a.addEventListener(l,f,c),()=>a.removeEventListener(l,f,c)),r=ie(()=>{const a=tr(Re(e[0])).filter(l=>l!=null);return a.every(l=>typeof l!="string")?a:void 0}),o=lp(()=>{var a,l;return[(l=(a=r.value)==null?void 0:a.map(f=>cp(f)))!=null?l:[ys].filter(f=>f!=null),tr(Re(r.value?e[1]:e[0])),tr(B(r.value?e[2]:e[1])),Re(r.value?e[3]:e[2])]},([a,l,f,c])=>{if(n(),!a?.length||!l?.length||!f?.length)return;const u=Yh(c)?{...c}:c;t.push(...a.flatMap(h=>l.flatMap(d=>f.map(g=>s(h,d,g,u)))))},{flush:"post"}),i=()=>{o(),n()};return sl(n),i}function up(){const e=et(!1),t=it();return t&&hn(()=>{e.value=!0},t),e}function il(e){const t=up();return ie(()=>(t.value,!!e()))}function ei(e,t={}){const{controls:n=!1,navigator:s=ol}=t,r=il(()=>s&&"permissions"in s),o=et(),i=typeof e=="string"?{name:e}:e,a=et(),l=()=>{var c,u;a.value=(u=(c=o.value)==null?void 0:c.state)!=null?u:"prompt"};_s(o,"change",l,{passive:!0});const f=np(async()=>{if(r.value){if(!o.value)try{o.value=await s.permissions.query(i)}catch{o.value=void 0}finally{l()}if(n)return ue(o.value)}});return f(),n?{state:a,isSupported:r,query:f}:a}function fp(e={}){const{navigator:t=ol,read:n=!1,source:s,copiedDuring:r=1500,legacy:o=!1}=e,i=il(()=>t&&"clipboard"in t),a=ei("clipboard-read"),l=ei("clipboard-write"),f=ie(()=>i.value||o),c=et(""),u=et(!1),h=ap(()=>u.value=!1,r,{immediate:!1});async function d(){let E=!(i.value&&x(a.value));if(!E)try{c.value=await t.clipboard.readText()}catch{E=!0}E&&(c.value=w())}f.value&&n&&_s(["copy","cut"],d,{passive:!0});async function g(E=Re(s)){if(f.value&&E!=null){let m=!(i.value&&x(l.value));if(!m)try{await t.clipboard.writeText(E)}catch{m=!0}m&&y(E),c.value=E,u.value=!0,h.start()}}function y(E){const m=document.createElement("textarea");m.value=E??"",m.style.position="absolute",m.style.opacity="0",document.body.appendChild(m),m.select(),document.execCommand("copy"),m.remove()}function w(){var E,m,v;return(v=(m=(E=document?.getSelection)==null?void 0:E.call(document))==null?void 0:m.toString())!=null?v:""}function x(E){return E==="granted"||E==="prompt"}return{isSupported:f,text:c,copied:u,copy:g}}function dp(e){return JSON.parse(JSON.stringify(e))}const Un=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Vn="__vueuse_ssr_handlers__",hp=pp();function pp(){return Vn in Un||(Un[Vn]=Un[Vn]||{}),Un[Vn]}function mp(e,t){return hp[e]||t}function gp(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const yp={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},ti="vueuse-storage";function _p(e,t,n,s={}){var r;const{flush:o="pre",deep:i=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:f=!1,shallow:c,window:u=ys,eventFilter:h,onError:d=U=>{console.error(U)},initOnMounted:g}=s,y=(c?et:we)(typeof t=="function"?t():t),w=ie(()=>Re(e));if(!n)try{n=mp("getDefaultStorage",()=>{var U;return(U=ys)==null?void 0:U.localStorage})()}catch(U){d(U)}if(!n)return y;const x=Re(t),E=gp(x),m=(r=s.serializer)!=null?r:yp[E],{pause:v,resume:b}=op(y,U=>z(U),{flush:o,deep:i,eventFilter:h});De(w,()=>ee(),{flush:o});let L=!1;const F=U=>{g&&!L||ee(U)},G=U=>{g&&!L||ae(U)};u&&a&&(n instanceof Storage?_s(u,"storage",F,{passive:!0}):_s(u,ti,G)),g?ip(()=>{L=!0,ee()}):ee();function Y(U,se){if(u){const H={key:w.value,oldValue:U,newValue:se,storageArea:n};u.dispatchEvent(n instanceof Storage?new StorageEvent("storage",H):new CustomEvent(ti,{detail:H}))}}function z(U){try{const se=n.getItem(w.value);if(U==null)Y(se,null),n.removeItem(w.value);else{const H=m.write(U);se!==H&&(n.setItem(w.value,H),Y(se,H))}}catch(se){d(se)}}function oe(U){const se=U?U.newValue:n.getItem(w.value);if(se==null)return l&&x!=null&&n.setItem(w.value,m.write(x)),x;if(!U&&f){const H=m.read(se);return typeof f=="function"?f(H,x):E==="object"&&!Array.isArray(H)?{...x,...H}:H}else return typeof se!="string"?se:m.read(se)}function ee(U){if(!(U&&U.storageArea!==n)){if(U&&U.key==null){y.value=x;return}if(!(U&&U.key!==w.value)){v();try{const se=m.write(y.value);(U===void 0||U?.newValue!==se)&&(y.value=oe(U))}catch(se){d(se)}finally{U?ft(b):b()}}}}function ae(U){ee(U.detail)}return y}function vp(e,t,n={}){const{window:s=ys}=n;return _p(e,t,s?.localStorage,n)}function al(e,t,n,s={}){var r,o,i;const{clone:a=!1,passive:l=!1,eventName:f,deep:c=!1,defaultValue:u,shouldEmit:h}=s,d=it(),g=n||d?.emit||((r=d?.$emit)==null?void 0:r.bind(d))||((i=(o=d?.proxy)==null?void 0:o.$emit)==null?void 0:i.bind(d?.proxy));let y=f;y=y||`update:${t.toString()}`;const w=m=>a?typeof a=="function"?a(m):dp(m):m,x=()=>Gh(e[t])?w(e[t]):u,E=m=>{h?h(m)&&g(y,m):g(y,m)};if(l){const m=x(),v=we(m);let b=!1;return De(()=>e[t],L=>{b||(b=!0,v.value=w(L),ft(()=>b=!1))}),De(v,L=>{!b&&(L!==e[t]||c)&&E(L)},{deep:c}),v}else return ie({get(){return x()},set(m){E(m)}})}const bp=["disabled"],wp={key:0,value:"",disabled:"",hidden:""},xp={__name:"NSelect",props:{modelValue:{type:null,required:!1,default:void 0},placeholder:{type:String,required:!1,default:""},icon:{type:String,required:!1,default:""},disabled:{type:Boolean,required:!1,default:!1}},emits:[],setup(e,{emit:t}){const r=al(e,"modelValue",t,{passive:!0});return(o,i)=>{const a=Hs;return q(),fe("div",{class:ot(["n-select flex flex items-center border rounded n-bg-base px-2 py-1 focus-within:border-context focus-within:n-focus-base",e.disabled?"border-gray:10":"n-border-base"])},[Ge(o.$slots,"icon",{},()=>[e.icon?(q(),Se(a,{key:0,icon:e.icon,class:"mr-0.4em text-1.1em op50"},null,8,["icon"])):Je("",!0)]),Hi(ce("select",{"onUpdate:modelValue":i[0]||(i[0]=l=>_e(r)?r.value=l:null),disabled:e.disabled,class:ot(["w-full flex-auto n-bg-base !outline-none",e.disabled?"appearance-none":""])},[e.placeholder?(q(),fe("option",wp,Ke(e.placeholder),1)):Je("",!0),Ge(o.$slots,"default")],10,bp),[[Nu,B(r)]])],2)}}},Sp={class:"space-y-2"},Ep={class:"flex items-center justify-between"},Tp=["value"],Cp=mt({__name:"EmailTemplateSelector",props:{emailTemplates:{},selectedTemplate:{}},emits:["select"],setup(e){return(t,n)=>{const s=nl,r=eo,o=xp,i=Zr;return q(),fe("div",Sp,[ce("div",Ep,[ne(s,{text:"Select Your Email Template:",icon:"carbon:list"}),ne(r,null,{default:xe(()=>[je(Ke(t.emailTemplates.length)+" templates ",1)]),_:1})]),t.emailTemplates.length>0?(q(),Se(i,{key:0,class:"grid gap-3"},{default:xe(()=>[ne(o,{"model-value":t.selectedTemplate,"onUpdate:modelValue":n[0]||(n[0]=a=>t.$emit("select",a))},{default:xe(()=>[(q(!0),fe($e,null,Ji(t.emailTemplates,a=>(q(),fe("option",{key:a.filename,value:a},Ke(a.filename),9,Tp))),128))]),_:1},8,["model-value"])]),_:1})):Je("",!0)])}}}),Rp=Object.assign(Cp,{__name:"EmailTemplateSelector"}),Pp={class:"n-select-tabs flex flex-inline flex-wrap items-center border n-border-base rounded n-bg-base"},Ap=["disabled","title"],kp=["disabled","value","title"],Mp={__name:"NSelectTabs",props:{modelValue:{type:null,required:!1,default:void 0},disabled:{type:Boolean,required:!1,default:!1},options:{type:Array,required:!0}},emits:[],setup(e,{emit:t}){const r=al(e,"modelValue",t,{passive:!0});return(o,i)=>(q(),fe("fieldset",Pp,[(q(!0),fe($e,null,Ji(e.options,(a,l)=>(q(),fe("label",{key:a.label,disabled:e.disabled,class:ot(["relative n-border-base px-0.5em py-0.1em hover:n-bg-active",[l?"border-l n-border-base ml--1px":"",a.value===B(r)?"n-bg-active":""]]),title:a.label},[ce("div",{class:ot([a.value===B(r)?"":"op35"])},Ke(a.label),3),Hi(ce("input",{"onUpdate:modelValue":i[0]||(i[0]=f=>_e(r)?r.value=f:null),type:"radio",disabled:e.disabled,value:a.value,title:a.label,class:"absolute inset-0 op-0.1"},null,8,kp),[[Iu,B(r)]])],10,Ap))),128))]))}};async function ll(e,t=pt()){const{path:n,matched:s}=t.resolve(e);if(!s.length||(t._routePreloaded||=new Set,t._routePreloaded.has(n)))return;const r=t._preloadPromises||=[];if(r.length>4)return Promise.all(r).then(()=>ll(e,t));t._routePreloaded.add(n);for(const o of s){const i=o.components?.default;if(typeof i!="function")continue;const a=Promise.resolve(i()).catch(()=>{}).finally(()=>r.splice(r.indexOf(a)));r.push(a)}await Promise.all(r)}const Op=(...e)=>e.find(t=>t!==void 0);function Lp(e){const t=e.componentName||"NuxtLink";function n(o){return typeof o=="string"&&o.startsWith("#")}function s(o,i,a){const l=a??e.trailingSlash;if(!o||l!=="append"&&l!=="remove")return o;if(typeof o=="string")return Wn(o,l);const f="path"in o&&o.path!==void 0?o.path:i(o).path;return{...o,name:void 0,path:Wn(f,l)}}function r(o){const i=pt(),a=fn(),l=ie(()=>!!o.target&&o.target!=="_self"),f=ie(()=>{const w=o.to||o.href||"";return typeof w=="string"&&Ot(w,{acceptRelative:!0})}),c=is("RouterLink"),u=c&&typeof c!="string"?c.useLink:void 0,h=ie(()=>{if(o.external)return!0;const w=o.to||o.href||"";return typeof w=="object"?!1:w===""||f.value}),d=ie(()=>{const w=o.to||o.href||"";return h.value?w:s(w,i.resolve,o.trailingSlash)}),g=h.value?void 0:u?.({...o,to:d}),y=ie(()=>{const w=o.trailingSlash??e.trailingSlash;if(!d.value||f.value||n(d.value))return d.value;if(h.value){const x=typeof d.value=="object"&&"path"in d.value?wr(d.value):d.value,E=typeof x=="object"?i.resolve(x).href:x;return Wn(E,w)}return typeof d.value=="object"?i.resolve(d.value)?.href??null:Wn($n(a.app.baseURL,d.value),w)});return{to:d,hasTarget:l,isAbsoluteUrl:f,isExternal:h,href:y,isActive:g?.isActive??ie(()=>d.value===i.currentRoute.value.path),isExactActive:g?.isExactActive??ie(()=>d.value===i.currentRoute.value.path),route:g?.route??ie(()=>i.resolve(d.value)),async navigate(w){await qa(y.value,{replace:o.replace,external:h.value||l.value})}}}return mt({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,default:void 0,required:!1}},useLink:r,setup(o,{slots:i}){const a=pt(),{to:l,href:f,navigate:c,isExternal:u,hasTarget:h,isAbsoluteUrl:d}=r(o),g=et(!1),y=we(null),w=m=>{y.value=o.custom?m?.$el?.nextElementSibling:m?.$el};function x(m){return!g.value&&(typeof o.prefetchOn=="string"?o.prefetchOn===m:o.prefetchOn?.[m]??e.prefetchOn?.[m])&&(o.prefetch??e.prefetch)!==!1&&o.noPrefetch!==!0&&o.target!=="_blank"&&!Np()}async function E(m=Te()){if(g.value)return;g.value=!0;const v=typeof l.value=="string"?l.value:u.value?wr(l.value):a.resolve(l.value).fullPath,b=u.value?new URL(v,window.location.href).href:v;await Promise.all([m.hooks.callHook("link:prefetch",b).catch(()=>{}),!u.value&&!h.value&&ll(l.value,a).catch(()=>{})])}if(x("visibility")){const m=Te();let v,b=null;hn(()=>{const L=Dp();Ns(()=>{v=Sr(()=>{y?.value?.tagName&&(b=L.observe(y.value,async()=>{b?.(),b=null,await E(m)}))})})}),Ln(()=>{v&&ch(v),b?.(),b=null})}return()=>{if(!u.value&&!h.value&&!n(l.value)){const b={ref:w,to:l.value,activeClass:o.activeClass||e.activeClass,exactActiveClass:o.exactActiveClass||e.exactActiveClass,replace:o.replace,ariaCurrentValue:o.ariaCurrentValue,custom:o.custom};return o.custom||(x("interaction")&&(b.onPointerenter=E.bind(null,void 0),b.onFocus=E.bind(null,void 0)),g.value&&(b.class=o.prefetchedClass||e.prefetchedClass),b.rel=o.rel||void 0),un(is("RouterLink"),b,i.default)}const m=o.target||null,v=Op(o.noRel?"":o.rel,e.externalRelAttribute,d.value||h.value?"noopener noreferrer":"")||null;return o.custom?i.default?i.default({href:f.value,navigate:c,prefetch:E,get route(){if(!f.value)return;const b=new URL(f.value,window.location.href);return{path:b.pathname,fullPath:b.pathname,get query(){return Ls(b.search)},hash:b.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:f.value}},rel:v,target:m,isExternal:u.value||h.value,isActive:!1,isExactActive:!1}):null:un("a",{ref:y,href:f.value||null,rel:v,target:m,onClick:b=>{if(!(u.value||h.value))return b.preventDefault(),o.replace?a.replace(f.value):a.push(f.value)}},i.default?.())}}})}const $p=Lp(qf);function Wn(e,t){const n=t==="append"?hs:$s;return Ot(e)&&!e.startsWith("http")?e:n(e,!0)}function Dp(){const e=Te();if(e._observer)return e._observer;let t=null;const n=new Map,s=(o,i)=>(t||=new IntersectionObserver(a=>{for(const l of a){const f=n.get(l.target);(l.isIntersecting||l.intersectionRatio>0)&&f&&f()}}),n.set(o,i),t.observe(o),()=>{n.delete(o),t?.unobserve(o),n.size===0&&(t?.disconnect(),t=null)});return e._observer={observe:s}}const Ip=/2g/;function Np(){const e=navigator.connection;return!!(e&&(e.saveData||Ip.test(e.effectiveType)))}const Hp=mt({name:"NButton",props:{to:String,icon:String,border:{type:Boolean,default:!0},disabled:Boolean,type:{type:String,default:"button"}},setup(e,{attrs:t,slots:n}){return()=>un(e.to?$p:"button",{to:e.to,...t,...!e.to&&{type:e.type},...e.disabled?{disabled:!0}:{tabindex:0},class:[e.border?"n-button-base active:n-button-active focus-visible:n-focus-base hover:n-button-hover":"",n.default?"":"n-icon-button","n-button n-transition n-disabled:n-disabled"].join(" ")},{default:()=>[Ge(n,"icon",{},()=>e.icon?[un(Hs,{icon:e.icon,class:n.default?"n-button-icon":""})]:[]),Ge(n,"default")]})}}),jp={class:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4"},zp={class:"flex flex-col sm:flex-row sm:items-center gap-4"},Bp={class:"flex items-center gap-3"},Fp={class:"flex items-center gap-3"},Up={class:"flex items-center gap-4"},Vp={class:"flex items-center gap-2"},Wp=mt({__name:"EmailViewerToolbar",props:{viewMode:{},contentMode:{},isLoading:{type:Boolean},renderedHtml:{},sourceCode:{}},emits:["update:viewMode","update:contentMode","refresh"],setup(e,{emit:t}){const n=e,s=t,r=[{value:"desktop",label:"Desktop"},{value:"mobile",label:"Mobile"}],o=[{value:"preview",label:"Preview"},{value:"source",label:"Source Code"}],i=ie({get:()=>n.viewMode,set:g=>s("update:viewMode",g)}),a=ie({get:()=>n.contentMode,set:g=>s("update:contentMode",g)}),{copy:l,copied:f,isSupported:c}=fp(),u=async()=>{c&&n.sourceCode&&await l(n.sourceCode)},h=async()=>{c&&n.renderedHtml&&await l(n.renderedHtml)},d=()=>{s("refresh")};return(g,y)=>{const w=Mp,x=eo,E=Hp;return q(),fe("div",jp,[ce("div",zp,[ce("div",Bp,[y[2]||(y[2]=ce("span",{class:"text-sm font-medium text-gray-700 dark:text-gray-300"}," Viewport: ",-1)),ne(w,{modelValue:B(i),"onUpdate:modelValue":y[0]||(y[0]=m=>_e(i)?i.value=m:null),options:r},null,8,["modelValue"]),ne(x,{class:"hidden sm:inline-flex"},{default:xe(()=>[je(Ke(g.viewMode==="desktop"?"800px":"375px"),1)]),_:1})]),y[4]||(y[4]=ce("div",{class:"hidden sm:block w-px h-8 bg-gray-200 dark:bg-gray-700"},null,-1)),ce("div",Fp,[y[3]||(y[3]=ce("span",{class:"text-sm font-medium text-gray-700 dark:text-gray-300"}," View: ",-1)),ne(w,{modelValue:B(a),"onUpdate:modelValue":y[1]||(y[1]=m=>_e(a)?a.value=m:null),options:o},null,8,["modelValue"])])]),ce("div",Up,[ce("div",Vp,[g.contentMode==="preview"&&g.renderedHtml?(q(),Se(E,{key:0,icon:"carbon:update-now",disabled:g.isLoading,onClick:d},{default:xe(()=>[...y[5]||(y[5]=[je(" Refresh ",-1)])]),_:1},8,["disabled"])):Je("",!0),g.contentMode==="preview"&&g.renderedHtml&&B(c)?(q(),Se(E,{key:1,icon:B(f)?"carbon:checkmark-outline":"carbon:copy",onClick:h},{default:xe(()=>[je(Ke(B(f)?"Copied":"Copy"),1)]),_:1},8,["icon"])):Je("",!0),g.contentMode==="source"&&g.sourceCode&&B(c)?(q(),Se(E,{key:2,icon:B(f)?"carbon:checkmark-outline":"carbon:copy",onClick:u},{default:xe(()=>[je(Ke(B(f)?"Copied":"Copy"),1)]),_:1},8,["icon"])):Je("",!0)])])])}}}),qp=Object.assign(Wp,{__name:"EmailViewerToolbar"}),Kp={class:"border rounded-lg overflow-hidden bg-white shadow-sm"},Jp={key:0,class:"flex items-center justify-center h-64"},Gp={class:"text-center"},Xp=["srcdoc"],Yp=mt({__name:"EmailPreviewPane",props:{isLoading:{type:Boolean},renderedHtml:{},viewMode:{}},setup(e){const t=e,n=ie(()=>t.viewMode==="mobile"?"max-w-[375px] mx-auto":"max-w-[800px] mx-auto");return(s,r)=>{const o=is("UIcon");return q(),fe("div",null,[ce("div",Kp,[s.isLoading?(q(),fe("div",Jp,[ce("div",Gp,[ne(o,{name:"i-heroicons-arrow-path",class:"w-8 h-8 text-blue-500 mx-auto mb-2 animate-spin"}),r[0]||(r[0]=ce("p",{class:"text-sm text-gray-500"}," Rendering template... ",-1))])])):s.renderedHtml?(q(),fe("iframe",{key:1,srcdoc:s.renderedHtml,class:ot(["w-full h-screen border-0",B(n)]),width:"100%",height:"100%",sandbox:"allow-same-origin allow-scripts"},null,10,Xp)):Je("",!0)])])}}}),Qp=Object.assign(Yp,{__name:"EmailPreviewPane"}),Zp={class:"bg-gray-50 dark:bg-gray-800 p-4 overflow-auto"},em={class:"text-sm text-gray-800 dark:text-gray-200 whitespace-pre-wrap font-mono"},tm=mt({__name:"EmailSourceCodeViewer",props:{sourceCode:{}},setup(e){return(t,n)=>{const s=Zr;return q(),Se(s,{class:"p-0"},{default:xe(()=>[ce("div",Zp,[ce("pre",em,[ce("code",null,Ke(t.sourceCode||"Loading source code..."),1)])])]),_:1})}}}),nm=Object.assign(tm,{__name:"EmailSourceCodeViewer"});function cl(e){return new URL(globalThis.location.href)}const sm={trailing:!0};function rm(e,t=25,n={}){if(n={...sm,...n},!Number.isFinite(t))throw new TypeError("Expected `wait` to be a finite number");let s,r,o=[],i,a;const l=(u,h)=>(i=om(e,u,h),i.finally(()=>{if(i=null,n.trailing&&a&&!r){const d=l(u,a);return a=null,d}}),i),f=function(...u){return n.trailing&&(a=u),i||new Promise(h=>{const d=!r&&n.leading;clearTimeout(r),r=setTimeout(()=>{r=null;const g=n.leading?s:l(this,u);a=null;for(const y of o)y(g);o=[]},t),d?(s=l(this,u),h(s)):o.push(h)})},c=u=>{u&&(clearTimeout(u),r=null)};return f.isPending=()=>!!r,f.cancel=()=>{c(r),o=[],a=null},f.flush=()=>{if(c(r),!a||i)return;const u=a;return a=null,l(this,u)},f}async function om(e,t,n){return await e.apply(t,n)}function im(e){return typeof e=="string"?`'${e}'`:new am().serialize(e)}const am=(function(){class e{#e=new Map;compare(n,s){const r=typeof n,o=typeof s;return r==="string"&&o==="string"?n.localeCompare(s):r==="number"&&o==="number"?n-s:String.prototype.localeCompare.call(this.serialize(n,!0),this.serialize(s,!0))}serialize(n,s){if(n===null)return"null";switch(typeof n){case"string":return s?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 s=Object.prototype.toString.call(n);if(s!=="[object Object]")return this.serializeBuiltInType(s.length<10?`unknown:${s}`:s.slice(8,-1),n);const r=n.constructor,o=r===Object||r===void 0?"":r.name;if(o!==""&&globalThis[o]===r)return this.serializeBuiltInType(o,n);if(typeof n.toJSON=="function"){const i=n.toJSON();return o+(i!==null&&typeof i=="object"?this.$object(i):`(${this.serialize(i)})`)}return this.serializeObjectEntries(o,Object.entries(n))}serializeBuiltInType(n,s){const r=this["$"+n];if(r)return r.call(this,s);if(typeof s?.entries=="function")return this.serializeObjectEntries(n,s.entries());throw new Error(`Cannot serialize ${n}`)}serializeObjectEntries(n,s){const r=Array.from(s).sort((i,a)=>this.compare(i[0],a[0]));let o=`${n}{`;for(let i=0;i<r.length;i++){const[a,l]=r[i];o+=`${this.serialize(a,!0)}:${this.serialize(l)}`,i<r.length-1&&(o+=",")}return o+"}"}$object(n){let s=this.#e.get(n);return s===void 0&&(this.#e.set(n,`#${this.#e.size}`),s=this.serializeObject(n),this.#e.set(n,s)),s}$function(n){const s=Function.prototype.toString.call(n);return s.slice(-15)==="[native code] }"?`${n.name||""}()[native]`:`${n.name}(${n.length})${s.replace(/\s*\n\s*/g,"")}`}$Array(n){let s="[";for(let r=0;r<n.length;r++)s+=this.serialize(n[r]),r<n.length-1&&(s+=",");return s+"]"}$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((s,r)=>this.compare(s,r)))}`}$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})(),lm=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],cm=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],um="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",Dt=[];class fm{_data=new Xt;_hash=new Xt([...lm]);_nDataBytes=0;_minBufferSize=0;finalize(t){t&&this._append(t);const n=this._nDataBytes*8,s=this._data.sigBytes*8;return this._data.words[s>>>5]|=128<<24-s%32,this._data.words[(s+64>>>9<<4)+14]=Math.floor(n/4294967296),this._data.words[(s+64>>>9<<4)+15]=n,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(t,n){const s=this._hash.words;let r=s[0],o=s[1],i=s[2],a=s[3],l=s[4],f=s[5],c=s[6],u=s[7];for(let h=0;h<64;h++){if(h<16)Dt[h]=t[n+h]|0;else{const m=Dt[h-15],v=(m<<25|m>>>7)^(m<<14|m>>>18)^m>>>3,b=Dt[h-2],L=(b<<15|b>>>17)^(b<<13|b>>>19)^b>>>10;Dt[h]=v+Dt[h-7]+L+Dt[h-16]}const d=l&f^~l&c,g=r&o^r&i^o&i,y=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),w=(l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25),x=u+w+d+cm[h]+Dt[h],E=y+g;u=c,c=f,f=l,l=a+x|0,a=i,i=o,o=r,r=x+E|0}s[0]=s[0]+r|0,s[1]=s[1]+o|0,s[2]=s[2]+i|0,s[3]=s[3]+a|0,s[4]=s[4]+l|0,s[5]=s[5]+f|0,s[6]=s[6]+c|0,s[7]=s[7]+u|0}_append(t){typeof t=="string"&&(t=Xt.fromUtf8(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes}_process(t){let n,s=this._data.sigBytes/64;t?s=Math.ceil(s):s=Math.max((s|0)-this._minBufferSize,0);const r=s*16,o=Math.min(r*4,this._data.sigBytes);if(r){for(let i=0;i<r;i+=16)this._doProcessBlock(this._data.words,i);n=this._data.words.splice(0,r),this._data.sigBytes-=o}return new Xt(n,o)}}class Xt{words;sigBytes;constructor(t,n){t=this.words=t||[],this.sigBytes=n===void 0?t.length*4:n}static fromUtf8(t){const n=unescape(encodeURIComponent(t)),s=n.length,r=[];for(let o=0;o<s;o++)r[o>>>2]|=(n.charCodeAt(o)&255)<<24-o%4*8;return new Xt(r,s)}toBase64(){const t=[];for(let n=0;n<this.sigBytes;n+=3){const s=this.words[n>>>2]>>>24-n%4*8&255,r=this.words[n+1>>>2]>>>24-(n+1)%4*8&255,o=this.words[n+2>>>2]>>>24-(n+2)%4*8&255,i=s<<16|r<<8|o;for(let a=0;a<4&&n*8+a*6<this.sigBytes*8;a++)t.push(um.charAt(i>>>6*(3-a)&63))}return t.join("")}concat(t){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let n=0;n<t.sigBytes;n++){const s=t.words[n>>>2]>>>24-n%4*8&255;this.words[this.sigBytes+n>>>2]|=s<<24-(this.sigBytes+n)%4*8}else for(let n=0;n<t.sigBytes;n+=4)this.words[this.sigBytes+n>>>2]=t.words[n>>>2];this.sigBytes+=t.sigBytes}}function dm(e){return new fm().finalize(e).toBase64()}function Kt(e){return dm(im(e))}const hm=Symbol.for("nuxt:client-only");function ul(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;pm(e[0],e[1])&&e.unshift(t);let[n,s,r={}]=e;const o=ie(()=>Re(n));if(typeof o.value!="string")throw new TypeError("[nuxt] [useAsyncData] key must be a string.");if(typeof s!="function")throw new TypeError("[nuxt] [useAsyncData] handler must be a function.");const i=Te();r.server??=!0,r.default??=gm,r.getCachedData??=dl,r.lazy??=!1,r.immediate??=!0,r.deep??=Kf.deep,r.dedupe??="cancel",r._functionName,i._asyncData[o.value];const a={cause:"initial",dedupe:r.dedupe};i._asyncData[o.value]?._init||(a.cachedData=r.getCachedData(o.value,i,{cause:"initial"}),i._asyncData[o.value]=ni(i,o.value,s,r,a.cachedData));const l=i._asyncData[o.value];l._deps++;const f=()=>i._asyncData[o.value].execute(a),c=r.server!==!1&&i.payload.serverRendered;{let d=function(m){const v=i._asyncData[m];v?._deps&&(v._deps--,v._deps===0&&v?._off())};const g=it();if(g&&c&&r.immediate&&!g.sp&&(g.sp=[]),g&&!g._nuxtOnBeforeMountCbs){g._nuxtOnBeforeMountCbs=[];const m=g._nuxtOnBeforeMountCbs;Fi(()=>{m.forEach(v=>{v()}),m.splice(0,m.length)}),jr(()=>m.splice(0,m.length))}const y=g&&(g._nuxtClientOnly||We(hm,!1));c&&i.isHydrating&&(l.error.value||l.data.value!==void 0)?l.status.value=l.error.value?"error":"success":g&&(!y&&i.payload.serverRendered&&i.isHydrating||r.lazy)&&r.immediate?g._nuxtOnBeforeMountCbs.push(f):r.immediate&&l.status.value!=="success"&&f();const w=Ss(),x=De(o,(m,v)=>{if((m||v)&&m!==v){const b=i._asyncData[v]?.data.value!==void 0,L=i._asyncDataPromises[v]!==void 0;v&&d(v);const F={cause:"initial",dedupe:r.dedupe};if(!i._asyncData[m]?._init){let G;v&&b?G=i._asyncData[v]?.data.value:(G=r.getCachedData(m,i,{cause:"initial"}),F.cachedData=G),i._asyncData[m]=ni(i,m,s,r,G)}i._asyncData[m]._deps++,(r.immediate||b||L)&&i._asyncData[m].execute(F)}},{flush:"sync"}),E=r.watch?De(r.watch,()=>{l._execute({cause:"watch",dedupe:r.dedupe})}):()=>{};w&&mi(()=>{x(),E(),d(o.value)})}const u={data:qn(()=>i._asyncData[o.value]?.data),pending:qn(()=>i._asyncData[o.value]?.pending),status:qn(()=>i._asyncData[o.value]?.status),error:qn(()=>i._asyncData[o.value]?.error),refresh:(...d)=>i._asyncData[o.value].execute(...d),execute:(...d)=>i._asyncData[o.value].execute(...d),clear:()=>fl(i,o.value)},h=Promise.resolve(i._asyncDataPromises[o.value]).then(()=>u);return Object.assign(h,u),h}function qn(e){return ie({get(){return e()?.value},set(t){const n=e();n&&(n.value=t)}})}function pm(e,t){return!(typeof e=="string"||typeof e=="object"&&e!==null||typeof e=="function"&&typeof t=="function")}function fl(e,t){t in e.payload.data&&(e.payload.data[t]=void 0),t in e.payload._errors&&(e.payload._errors[t]=void 0),e._asyncData[t]&&(e._asyncData[t].data.value=B(e._asyncData[t]._default()),e._asyncData[t].error.value=void 0,e._asyncData[t].status.value="idle"),t in e._asyncDataPromises&&(e._asyncDataPromises[t]&&(e._asyncDataPromises[t].cancelled=!0),e._asyncDataPromises[t]=void 0)}function mm(e,t){const n={};for(const s of t)n[s]=e[s];return n}function ni(e,t,n,s,r){e.payload._errors[t]??=void 0;const o=s.getCachedData!==dl,i=n,a=s.deep?we:et,l=r!==void 0,f=e.hook("app:data:refresh",async u=>{(!u||u.includes(t))&&await c.execute({cause:"refresh:hook"})}),c={data:a(l?r:s.default()),pending:ie(()=>c.status.value==="pending"),error:$r(e.payload._errors,t),status:et("idle"),execute:(...u)=>{const[h,d=void 0]=u,g=h&&d===void 0&&typeof h=="object"?h:{};if(e._asyncDataPromises[t]){if((g.dedupe??s.dedupe)==="defer")return e._asyncDataPromises[t];e._asyncDataPromises[t].cancelled=!0}{const w="cachedData"in g?g.cachedData:s.getCachedData(t,e,{cause:g.cause??"refresh:manual"});if(w!==void 0)return e.payload.data[t]=c.data.value=w,c.error.value=void 0,c.status.value="success",Promise.resolve(w)}c.status.value="pending";const y=new Promise((w,x)=>{try{w(i(e))}catch(E){x(E)}}).then(async w=>{if(y.cancelled)return e._asyncDataPromises[t];let x=w;s.transform&&(x=await s.transform(w)),s.pick&&(x=mm(x,s.pick)),e.payload.data[t]=x,c.data.value=x,c.error.value=void 0,c.status.value="success"}).catch(w=>{if(y.cancelled)return e._asyncDataPromises[t];c.error.value=Ds(w),c.data.value=B(s.default()),c.status.value="error"}).finally(()=>{y.cancelled||delete e._asyncDataPromises[t]});return e._asyncDataPromises[t]=y,e._asyncDataPromises[t]},_execute:rm((...u)=>c.execute(...u),0,{leading:!0}),_default:s.default,_deps:0,_init:!0,_hash:void 0,_off:()=>{f(),e._asyncData[t]?._init&&(e._asyncData[t]._init=!1),o||ft(()=>{e._asyncData[t]?._init||(fl(e,t),c.execute=()=>Promise.resolve())})}};return c}const gm=()=>{},dl=(e,t,n)=>{if(t.isHydrating)return t.payload.data[e];if(n.cause!=="refresh:manual"&&n.cause!=="refresh:hook")return t.static.data[e]},ym={class:"space-y-2"},_m={class:"flex items-center gap-2"},vm={key:0,class:"flex mt-8"},bm={key:1,class:"flex flex-col"},wm={key:2,class:"flex items-center justify-center h-64"},xm={class:"text-center"},Sm={key:3,class:"space-y-6"},Em={class:"space-y-4"},Tm={key:0},Cm={key:1},Rm=mt({__name:"EmailTemplateViewer",props:{template:{}},setup(e){const t=e,n=we("desktop"),s=we("preview"),r=cl(),{data:o,error:i,pending:a,refresh:l}=ul(async()=>{if(!t.template)return{html:null,sourceCode:null};const u=await $fetch(`${r.origin}/api/emails/render`,{method:"POST",body:{name:t.template.filename,pretty:!0}}),d=(await $fetch(`${r.origin}/api/emails/source`,{method:"POST",body:{name:t.template.filename}})).sourceCode;return{html:u,sourceCode:d}},{watch:[()=>t.template]},"$XdfX-fxT8q"),f=ie(()=>o.value?.sourceCode??null),c=ie(()=>o.value?.html??null);return(u,h)=>{const d=nl,g=eo,y=el,w=tl,x=is("UIcon"),E=qp,m=Qp,v=nm;return q(),fe("div",ym,[ce("div",_m,[ne(d,{text:u.template?.displayName??"Please select a template",icon:"carbon:email"},null,8,["text"]),u.template?(q(),Se(g,{key:0},{default:xe(()=>[je(Ke(u.template.filename),1)]),_:1})):Je("",!0)]),B(a)?(q(),fe("div",vm,[ne(y,null,{default:xe(()=>[...h[2]||(h[2]=[je("Loading email template...",-1)])]),_:1})])):B(i)?(q(),fe("div",bm,[ne(w,{n:"red6 dark:red5",icon:"carbon:warning-alt"},{default:xe(()=>[...h[3]||(h[3]=[je(" Error! ",-1)])]),_:1}),ne(w,{n:"red6 dark:red5"},{default:xe(()=>[je(Ke(B(i)),1)]),_:1})])):u.template?(q(),fe("div",Sm,[ne(E,{"view-mode":B(n),"onUpdate:viewMode":h[0]||(h[0]=b=>_e(n)?n.value=b:null),"content-mode":B(s),"onUpdate:contentMode":h[1]||(h[1]=b=>_e(s)?s.value=b:null),"is-loading":B(a),"rendered-html":B(c),"source-code":B(f),onRefresh:B(l)},null,8,["view-mode","content-mode","is-loading","rendered-html","source-code","onRefresh"]),ce("div",Em,[B(s)==="preview"?(q(),fe("div",Tm,[ne(m,{"is-loading":B(a),"rendered-html":B(c),"view-mode":B(n)},null,8,["is-loading","rendered-html","view-mode"])])):B(s)==="source"?(q(),fe("div",Cm,[ne(v,{"source-code":B(f)},null,8,["source-code"])])):Je("",!0)])])):(q(),fe("div",wm,[ce("div",xm,[ne(x,{name:"i-heroicons-inbox",class:"w-12 h-12 text-gray-400 mx-auto mb-4"}),h[4]||(h[4]=ce("p",{class:"text-gray-500 dark:text-gray-400"}," Select an email template to preview ",-1))])]))])}}}),Pm=Object.assign(Rm,{__name:"EmailTemplateViewer"}),Am={__name:"splitpanes",props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],setup(e,{emit:t}){const n=t,s=e,r=Sc(),o=we([]),i=ie(()=>o.value.reduce((T,A)=>(T[~~A.id]=A)&&T,{})),a=ie(()=>o.value.length),l=we(null),f=we(!1),c=we({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),u=we({splitter:null,timeoutId:null}),h=ie(()=>({[`splitpanes splitpanes--${s.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":c.value.dragging})),d=()=>{document.addEventListener("mousemove",w,{passive:!1}),document.addEventListener("mouseup",x),"ontouchstart"in window&&(document.addEventListener("touchmove",w,{passive:!1}),document.addEventListener("touchend",x))},g=()=>{document.removeEventListener("mousemove",w,{passive:!1}),document.removeEventListener("mouseup",x),"ontouchstart"in window&&(document.removeEventListener("touchmove",w,{passive:!1}),document.removeEventListener("touchend",x))},y=(T,A)=>{const D=T.target.closest(".splitpanes__splitter");if(D){const{left:M,top:I}=D.getBoundingClientRect(),{clientX:K,clientY:re}="ontouchstart"in window&&T.touches?T.touches[0]:T;c.value.cursorOffset=s.horizontal?re-I:K-M}d(),c.value.mouseDown=!0,c.value.activeSplitter=A},w=T=>{c.value.mouseDown&&(T.preventDefault(),c.value.dragging=!0,requestAnimationFrame(()=>{F(b(T)),n("resize",o.value.map(A=>({min:A.min,max:A.max,size:A.size})))}))},x=()=>{c.value.dragging&&n("resized",o.value.map(T=>({min:T.min,max:T.max,size:T.size}))),c.value.mouseDown=!1,setTimeout(()=>{c.value.dragging=!1,g()},100)},E=(T,A)=>{"ontouchstart"in window&&(T.preventDefault(),s.dblClickSplitter&&(u.value.splitter===A?(clearTimeout(u.value.timeoutId),u.value.timeoutId=null,m(T,A),u.value.splitter=null):(u.value.splitter=A,u.value.timeoutId=setTimeout(()=>u.value.splitter=null,500)))),c.value.dragging||n("splitter-click",o.value[A])},m=(T,A)=>{let D=0;o.value=o.value.map((M,I)=>(M.size=I===A?M.max:M.min,I!==A&&(D+=M.min),M)),o.value[A].size-=D,n("pane-maximize",o.value[A]),n("resized",o.value.map(M=>({min:M.min,max:M.max,size:M.size})))},v=(T,A)=>{n("pane-click",i.value[A])},b=T=>{const A=l.value.getBoundingClientRect(),{clientX:D,clientY:M}="ontouchstart"in window&&T.touches?T.touches[0]:T;return{x:D-(s.horizontal?0:c.value.cursorOffset)-A.left,y:M-(s.horizontal?c.value.cursorOffset:0)-A.top}},L=T=>{T=T[s.horizontal?"y":"x"];const A=l.value[s.horizontal?"clientHeight":"clientWidth"];return s.rtl&&!s.horizontal&&(T=A-T),T*100/A},F=T=>{const A=c.value.activeSplitter;let D={prevPanesSize:Y(A),nextPanesSize:z(A),prevReachedMinPanes:0,nextReachedMinPanes:0};const M=0+(s.pushOtherPanes?0:D.prevPanesSize),I=100-(s.pushOtherPanes?0:D.nextPanesSize),K=Math.max(Math.min(L(T),I),M);let re=[A,A+1],p=o.value[re[0]]||null,_=o.value[re[1]]||null;const S=p.max<100&&K>=p.max+D.prevPanesSize,P=_.max<100&&K<=100-(_.max+z(A+1));if(S||P){S?(p.size=p.max,_.size=Math.max(100-p.max-D.prevPanesSize-D.nextPanesSize,0)):(p.size=Math.max(100-_.max-D.prevPanesSize-z(A+1),0),_.size=_.max);return}if(s.pushOtherPanes){const C=G(D,K);if(!C)return;({sums:D,panesToResize:re}=C),p=o.value[re[0]]||null,_=o.value[re[1]]||null}p!==null&&(p.size=Math.min(Math.max(K-D.prevPanesSize-D.prevReachedMinPanes,p.min),p.max)),_!==null&&(_.size=Math.min(Math.max(100-K-D.nextPanesSize-D.nextReachedMinPanes,_.min),_.max))},G=(T,A)=>{const D=c.value.activeSplitter,M=[D,D+1];return A<T.prevPanesSize+o.value[M[0]].min&&(M[0]=oe(D).index,T.prevReachedMinPanes=0,M[0]<D&&o.value.forEach((I,K)=>{K>M[0]&&K<=D&&(I.size=I.min,T.prevReachedMinPanes+=I.min)}),T.prevPanesSize=Y(M[0]),M[0]===void 0)?(T.prevReachedMinPanes=0,o.value[0].size=o.value[0].min,o.value.forEach((I,K)=>{K>0&&K<=D&&(I.size=I.min,T.prevReachedMinPanes+=I.min)}),o.value[M[1]].size=100-T.prevReachedMinPanes-o.value[0].min-T.prevPanesSize-T.nextPanesSize,null):A>100-T.nextPanesSize-o.value[M[1]].min&&(M[1]=ee(D).index,T.nextReachedMinPanes=0,M[1]>D+1&&o.value.forEach((I,K)=>{K>D&&K<M[1]&&(I.size=I.min,T.nextReachedMinPanes+=I.min)}),T.nextPanesSize=z(M[1]-1),M[1]===void 0)?(T.nextReachedMinPanes=0,o.value.forEach((I,K)=>{K<a.value-1&&K>=D+1&&(I.size=I.min,T.nextReachedMinPanes+=I.min)}),o.value[M[0]].size=100-T.prevPanesSize-z(M[0]-1),null):{sums:T,panesToResize:M}},Y=T=>o.value.reduce((A,D,M)=>A+(M<T?D.size:0),0),z=T=>o.value.reduce((A,D,M)=>A+(M>T+1?D.size:0),0),oe=T=>[...o.value].reverse().find(A=>A.index<T&&A.size>A.min)||{},ee=T=>o.value.find(A=>A.index>T+1&&A.size>A.min)||{},ae=()=>{var T;Array.from(((T=l.value)==null?void 0:T.children)||[]).forEach(A=>{const D=A.classList.contains("splitpanes__pane"),M=A.classList.contains("splitpanes__splitter");!D&&!M&&(A.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},U=(T,A,D=!1)=>{const M=T-1,I=document.createElement("div");I.classList.add("splitpanes__splitter"),D||(I.onmousedown=K=>y(K,M),typeof window<"u"&&"ontouchstart"in window&&(I.ontouchstart=K=>y(K,M)),I.onclick=K=>E(K,M+1)),s.dblClickSplitter&&(I.ondblclick=K=>m(K,M+1)),A.parentNode.insertBefore(I,A)},se=T=>{T.onmousedown=void 0,T.onclick=void 0,T.ondblclick=void 0,T.remove()},H=()=>{var T;const A=Array.from(((T=l.value)==null?void 0:T.children)||[]);A.forEach(M=>{M.className.includes("splitpanes__splitter")&&se(M)});let D=0;A.forEach(M=>{M.className.includes("splitpanes__pane")&&(!D&&s.firstSplitter?U(D,M,!0):D&&U(D,M),D++)})},te=({uid:T,...A})=>{const D=i.value[T];Object.entries(A).forEach(([M,I])=>D[M]=I)},V=T=>{var A;let D=-1;Array.from(((A=l.value)==null?void 0:A.children)||[]).some(M=>(M.className.includes("splitpanes__pane")&&D++,M.isSameNode(T.el))),o.value.splice(D,0,{...T,index:D}),o.value.forEach((M,I)=>M.index=I),f.value&&ft(()=>{H(),Rt({addedPane:o.value[D]}),n("pane-add",{index:D,panes:o.value.map(M=>({min:M.min,max:M.max,size:M.size}))})})},be=T=>{const A=o.value.findIndex(M=>M.id===T),D=o.value.splice(A,1)[0];o.value.forEach((M,I)=>M.index=I),ft(()=>{H(),Rt({removedPane:{...D}}),n("pane-remove",{removed:D,panes:o.value.map(M=>({min:M.min,max:M.max,size:M.size}))})})},Rt=(T={})=>{!T.addedPane&&!T.removedPane?Xe():o.value.some(A=>A.givenSize!==null||A.min||A.max<100)?Dn(T):gt(),f.value&&n("resized",o.value.map(A=>({min:A.min,max:A.max,size:A.size})))},gt=()=>{const T=100/a.value;let A=0;const D=[],M=[];o.value.forEach(I=>{I.size=Math.max(Math.min(T,I.max),I.min),A-=I.size,I.size>=I.max&&D.push(I.id),I.size<=I.min&&M.push(I.id)}),A>.1&&pn(A,D,M)},Xe=()=>{let T=100;const A=[],D=[];let M=0;o.value.forEach(K=>{T-=K.size,K.givenSize!==null&&M++,K.size>=K.max&&A.push(K.id),K.size<=K.min&&D.push(K.id)});let I=100;T>.1&&(o.value.forEach(K=>{K.givenSize===null&&(K.size=Math.max(Math.min(T/(a.value-M),K.max),K.min)),I-=K.size}),I>.1&&pn(I,A,D))},Dn=({addedPane:T,removedPane:A}={})=>{let D=100/a.value,M=0;const I=[],K=[];(T?.givenSize??null)!==null&&(D=(100-T.givenSize)/(a.value-1).value),o.value.forEach(re=>{M-=re.size,re.size>=re.max&&I.push(re.id),re.size<=re.min&&K.push(re.id)}),!(Math.abs(M)<.1)&&(o.value.forEach(re=>{T?.givenSize!==null&&T?.id===re.id||(re.size=Math.max(Math.min(D,re.max),re.min)),M-=re.size,re.size>=re.max&&I.push(re.id),re.size<=re.min&&K.push(re.id)}),M>.1&&pn(M,I,K))},pn=(T,A,D)=>{let M;T>0?M=T/(a.value-A.length):M=T/(a.value-D.length),o.value.forEach((I,K)=>{if(T>0&&!A.includes(I.id)){const re=Math.max(Math.min(I.size+M,I.max),I.min),p=re-I.size;T-=p,I.size=re}else if(!D.includes(I.id)){const re=Math.max(Math.min(I.size+M,I.max),I.min),p=re-I.size;T-=p,I.size=re}}),Math.abs(T)>.1&&ft(()=>{f.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})};De(()=>s.firstSplitter,()=>H()),De(()=>s.dblClickSplitter,T=>{[...l.value.querySelectorAll(".splitpanes__splitter")].forEach((A,D)=>{A.ondblclick=T?M=>m(M,D):void 0})}),Ln(()=>f.value=!1),hn(()=>{ae(),H(),Rt(),n("ready"),f.value=!0});const js=()=>{var T;return un("div",{ref:l,class:h.value},(T=r.default)==null?void 0:T.call(r))};return _t("panes",o),_t("indexedPanes",i),_t("horizontal",ie(()=>s.horizontal)),_t("requestUpdate",te),_t("onPaneAdd",V),_t("onPaneRemove",be),_t("onPaneClick",v),(T,A)=>(q(),Se(qi(js)))}},si={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(e){var t;const n=e,s=We("requestUpdate"),r=We("onPaneAdd"),o=We("horizontal"),i=We("onPaneRemove"),a=We("onPaneClick"),l=(t=it())==null?void 0:t.uid,f=We("indexedPanes"),c=ie(()=>f.value[l]),u=we(null),h=ie(()=>{const w=isNaN(n.size)||n.size===void 0?0:parseFloat(n.size);return Math.max(Math.min(w,g.value),d.value)}),d=ie(()=>{const w=parseFloat(n.minSize);return isNaN(w)?0:w}),g=ie(()=>{const w=parseFloat(n.maxSize);return isNaN(w)?100:w}),y=ie(()=>{var w;return`${o.value?"height":"width"}: ${(w=c.value)==null?void 0:w.size}%`});return hn(()=>{r({id:l,el:u.value,min:d.value,max:g.value,givenSize:n.size===void 0?null:h.value,size:h.value})}),De(()=>h.value,w=>s({uid:l,size:w})),De(()=>d.value,w=>s({uid:l,min:w})),De(()=>g.value,w=>s({uid:l,max:w})),Ln(()=>i(l)),(w,x)=>(q(),fe("div",{ref_key:"paneEl",ref:u,class:"splitpanes__pane",onClick:x[0]||(x[0]=E=>B(a)(E,w._.uid)),style:Mn(y.value)},[Ge(w.$slots,"default")],4))}},ri=30,km={__name:"NSplitPane",props:{storageKey:{type:String,required:!1},stateKey:{type:String,required:!1,default:"nuxt-devtools-panels-state"},leftSize:{type:Number,required:!1},minSize:{type:Number,required:!1},horizontal:{type:Boolean,required:!1}},setup(e){const t=e,n=vp(t.stateKey,{},{listenToStorageChanges:!1}),s=t.storageKey,r=s?ie({get:()=>n.value[s]||t.leftSize||ri,set:o=>{n.value[s]=o}}):we(t.leftSize||ri);return(o,i)=>(q(),Se(B(Am),{horizontal:e.horizontal,"h-full":"","of-hidden":"",onResize:i[0]||(i[0]=a=>r.value=a[0].size)},{default:xe(()=>[ne(B(si),{"h-full":"",class:"of-auto!",size:B(r),"min-size":o.$slots.right?e.minSize||10:100},{default:xe(()=>[Ge(o.$slots,"left")]),_:3},8,["size","min-size"]),o.$slots.right?(q(),Se(B(si),{key:0,relative:"","h-full":"",class:"of-auto!","min-size":e.minSize||10},{default:xe(()=>[Ge(o.$slots,"right")]),_:3},8,["min-size"])):Je("",!0)]),_:3},8,["horizontal"]))}};function Mm(e,t,n){const[s={},r]=typeof t=="string"?[{},t]:[t,n],o=ie(()=>Re(e)),i=ie(()=>Re(s.key)||"$f"+Kt([r,typeof o.value=="string"?o.value:"",...Om(s)]));if(!s.baseURL&&typeof o.value=="string"&&o.value[0]==="/"&&o.value[1]==="/")throw new Error('[nuxt] [useFetch] the request URL must not start with "//".');const{server:a,lazy:l,default:f,transform:c,pick:u,watch:h,immediate:d,getCachedData:g,deep:y,dedupe:w,...x}=s,E=dt({...Jf,...x,cache:typeof s.cache=="boolean"?void 0:s.cache}),m={server:a,lazy:l,default:f,transform:c,pick:u,immediate:d,getCachedData:g,deep:y,dedupe:w,watch:h===!1?[]:[...h||[],E]};let v;return ul(h===!1?i.value:i,()=>{v?.abort?.(new DOMException("Request aborted as another request to the same endpoint was initiated.","AbortError")),v=typeof AbortController<"u"?new AbortController:{};const L=Re(s.timeout);let F;return L&&(F=setTimeout(()=>v.abort(new DOMException("Request aborted due to timeout.","AbortError")),L),v.signal.onabort=()=>clearTimeout(F)),(s.$fetch||globalThis.$fetch)(o.value,{signal:v.signal,...E}).finally(()=>{clearTimeout(F)})},m)}function Om(e){const t=[Re(e.method)?.toUpperCase()||"GET",Re(e.baseURL)];for(const n of[e.params||e.query]){const s=Re(n);if(!s)continue;const r={};for(const[o,i]of Object.entries(s))r[Re(o)]=Re(i);t.push(r)}if(e.body){const n=Re(e.body);if(!n)t.push(Kt(n));else if(n instanceof ArrayBuffer)t.push(Kt(Object.fromEntries([...new Uint8Array(n).entries()].map(([s,r])=>[s,r.toString()]))));else if(n instanceof FormData){const s={};for(const r of n.entries()){const[o,i]=r;s[o]=i instanceof File?i.name:i}t.push(Kt(s))}else if(Pr(n))t.push(Kt(dt(n)));else try{t.push(Kt(n))}catch{console.warn("[useFetch] Failed to hash body",n)}}return t}const Lm={key:0,class:"flex mt-8"},$m={key:1,class:"flex flex-col"},Dm={key:3,class:"flex flex-col h-full"},Im={class:"mt-8"},Nm=mt({__name:"app",async setup(e){let t,n;const s=cl(),{data:r,pending:o,error:i}=([t,n]=Tc(()=>Mm(`${s.origin}/api/emails`,{default:()=>[]},"$3oRWNoOsuN")),t=await t,n(),t),a=we(null);function l(f){a.value=f}return De(r,f=>{f.length>0&&!a.value&&(a.value=f[0])},{immediate:!0}),(f,c)=>{const u=el,h=tl,d=Hs,g=Zr,y=Rp,w=Pm,x=km;return q(),Se(x,{"storage-key":"devtools:nuxt-email-renderer",class:"!h-screen p-4","min-size":30,horizontal:!1},{left:xe(()=>[c[4]||(c[4]=ce("div",{class:"mb-8"},[ce("h1",{class:"text-3xl font-bold text-gray-900 dark:text-white mb-2"}," Nuxt Email Renderer "),ce("p",{class:"text-gray-600 dark:text-gray-400"}," Preview and explore email templates with desktop and mobile viewports ")],-1)),B(o)?(q(),fe("div",Lm,[ne(u,null,{default:xe(()=>[...c[0]||(c[0]=[je("Loading email templates...",-1)])]),_:1})])):B(i)?(q(),fe("div",$m,[ne(h,{n:"red6 dark:red5",icon:"carbon:warning-alt"},{default:xe(()=>[...c[1]||(c[1]=[je(" Error! ",-1)])]),_:1}),ne(h,{n:"red6 dark:red5"},{default:xe(()=>[je(Ke(B(i)),1)]),_:1})])):Je("",!0),B(r).length===0?(q(),Se(g,{key:2,class:"text-center py-12"},{default:xe(()=>[ne(d,{icon:"carbon:email",class:"w-16 h-16 text-gray-300 dark:text-gray-600 mx-auto mb-4"}),c[2]||(c[2]=ce("h3",{class:"text-lg font-medium text-gray-900 dark:text-white mb-2"}," No email templates found ",-1)),c[3]||(c[3]=ce("p",{class:"text-gray-500 dark:text-gray-400 mb-6 max-w-sm mx-auto"}," Create your first email template by adding a .vue file to the emails directory. ",-1))]),_:1})):(q(),fe("div",Dm,[ne(y,{"email-templates":B(r),"selected-template":B(a),onSelect:l},null,8,["email-templates","selected-template"]),ce("div",Im,[ne(w,{template:B(a)},null,8,["template"])])]))]),_:1})}}}),Hm={__name:"nuxt-error-page",props:{error:Object},setup(e){const n=e.error;n.stack&&n.stack.split(`
|
|
20
20
|
`).splice(1).map(u=>({text:u.replace("webpack:/","").replace(".vue",".js").trim(),internal:u.includes("node_modules")&&!u.includes(".cache")||u.includes("internal")||u.includes("new Promise")})).map(u=>`<span class="stack${u.internal?" internal":""}">${u.text}</span>`).join(`
|
|
21
21
|
`);const s=Number(n.statusCode||500),r=s===404,o=n.statusMessage??(r?"Page Not Found":"Internal Server Error"),i=n.message||n.toString(),a=void 0,c=r?Ee(()=>Ce(()=>import("./Dp9LgCK2.js"),__vite__mapDeps([0,1,2]),import.meta.url)):Ee(()=>Ce(()=>import("./DZaor8iy.js"),__vite__mapDeps([3,1,4]),import.meta.url));return(u,h)=>(q(),Se(B(c),xl(va({statusCode:B(s),statusMessage:B(o),description:B(i),stack:B(a)})),null,16))}},jm={key:0},oi={__name:"nuxt-root",setup(e){const t=()=>null,n=Te(),s=n.deferHydration();if(n.isHydrating){const f=n.hooks.hookOnce("app:error",s);pt().beforeEach(f)}const r=!1;_t(Va,Wa()),n.hooks.callHookWith(f=>f.map(c=>c()),"vue:setup");const o=Gr(),i=!1,a=/bot\b|chrome-lighthouse|facebookexternalhit|google\b/i;Ui((f,c,u)=>{if(n.hooks.callHook("vue:error",f,c,u).catch(h=>console.error("[nuxt] Error in `vue:error` hook",h)),a.test(navigator.userAgent))return n.hooks.callHook("app:error",f),console.error(`[nuxt] Not rendering error page for bot with user agent \`${navigator.userAgent}\`:`,f),!1;if(pd(f)&&(f.fatal||f.unhandled))return n.runWithContext(()=>dd(f)),!1});const l=!1;return(f,c)=>(q(),Se(eu,{onResolve:B(s)},{default:xe(()=>[B(i)?(q(),fe("div",jm)):B(o)?(q(),Se(B(Hm),{key:1,error:B(o)},null,8,["error"])):B(l)?(q(),Se(B(t),{key:2,context:B(l)},null,8,["context"])):B(r)?(q(),Se(qi(B(r)),{key:3})):(q(),Se(B(Nm),{key:4}))]),_:1},8,["onResolve"]))}};let ii;{let e;ii=async function(){if(e)return e;const n=!!(window.__NUXT__?.serverRendered??document.getElementById("__NUXT_DATA__")?.dataset.ssr==="true"),s=n?Bu(oi):zu(oi),r=Qf({vueApp:s});async function o(i){await r.callHook("app:error",i),r.payload.error||=Ds(i)}s.config.errorHandler=o,r.hook("app:suspense:resolve",()=>{s.config.errorHandler===o&&(s.config.errorHandler=void 0)}),!n&&Bo.id&&r.hook("app:suspense:resolve",()=>{document.getElementById(Bo.id)?.remove()});try{await td(r,Ih)}catch(i){o(i)}try{await r.hooks.callHook("app:created",s),await r.hooks.callHook("app:beforeMount",s),s.mount(Gf),await r.hooks.callHook("app:mounted",s),await ft()}catch(i){o(i)}return s},e=ii().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{Qr as _,ce as a,ne as b,fe as c,je as d,$p as e,Te as f,Xa as g,zr as h,We as i,mt as j,un as k,ie as l,Ce as m,q as o,we as r,Ke as t,zm as u,xe as w};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./D7nOehHU.js","./
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./D7nOehHU.js","./B25Tu66H.js","./entry.PhmAKarW.css"])))=>i.map(i=>d[i]);
|
|
2
2
|
import{j as h,m,k as l}from"#entry";const y=h({name:"ECodeBlock",props:{code:{type:String,required:!0},lang:{type:String,required:!0},theme:{type:String,required:!0},class:{type:String,default:""},showLineNumbers:{type:Boolean,default:!1},lineNumberColor:{type:String,default:"#636E7B"},lineHighlightingColor:{type:String,default:"rgba(101, 117, 133, .16)"},highlightedLines:{type:Array,default:()=>[]}},async setup({code:a,lang:r,theme:t,showLineNumbers:s,lineNumberColor:n,highlightedLines:p,lineHighlightingColor:c}){const{createHighlighter:d}=await m(async()=>{const{createHighlighter:e}=await import("./D7nOehHU.js");return{createHighlighter:e}},__vite__mapDeps([0,1,2]),import.meta.url),i=await d({langs:[r],themes:[t]}),g=i.getTheme(t).bg,u=i.codeToHtml(a,{lang:r,theme:t,transformers:[{code(e){e.properties.style="display: table; width: 100%;"}},{line(e,o){e.properties.style="display: table-row; line-height: 1.5; height: 1.5em;",s&&e.children.unshift({type:"element",tagName:"span",properties:{className:["line-number"],style:`padding-left: 5px; padding-right: 15px; color: ${n}; user-select: none;`},children:[{type:"text",value:`${o}`}]}),p.includes(o)&&(e.properties.style+=`background-color: ${c};`)}}]});return()=>l("pre",{class:["shiki",t],style:{backgroundColor:g,display:"block",whiteSpace:"pre",fontFamily:"monospace"},tabindex:0},[l("span",{innerHTML:u})])}}),b=Object.assign(y,{__name:"CodeBlockECodeBlock"});export{y as ECodeBlock,b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"
|
|
1
|
+
{"id":"6e6b81db-0775-4162-baf6-2536e8683f82","timestamp":1759233240936}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"id":"6e6b81db-0775-4162-baf6-2536e8683f82","timestamp":1759233240936,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|
package/dist/client/index.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__nuxt-email-renderer/_nuxt/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__nuxt-email-renderer/_nuxt/B25Tu66H.js"}}</script><link rel="stylesheet" href="/__nuxt-email-renderer/_nuxt/entry.PhmAKarW.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__nuxt-email-renderer/_nuxt/B25Tu66H.js"><link rel="prefetch" as="style" crossorigin href="/__nuxt-email-renderer/_nuxt/error-404.BHOIm0B1.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt-email-renderer/_nuxt/Dp9LgCK2.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-email-renderer/_nuxt/n57rOy2v.js"><link rel="prefetch" as="style" crossorigin href="/__nuxt-email-renderer/_nuxt/error-500.CqX_nDZ5.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt-email-renderer/_nuxt/DZaor8iy.js"><script type="module" src="/__nuxt-email-renderer/_nuxt/B25Tu66H.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1759233247311,false]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{nuxtEmailRenderer:{emailsDir:"/playground/emails",devtools:false}},app:{baseURL:"/__nuxt-email-renderer",buildId:"6e6b81db-0775-4162-baf6-2536e8683f82",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
|
package/dist/module.json
CHANGED
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"id":"48207fae-1a15-4153-b52c-c5d209484774","timestamp":1759220291204,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|