(function(Ct){typeof define=="function"&&define.amd?define(Ct):Ct()})((function(){"use strict";/**
* @vue/shared v3.5.31
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Ct(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const te={},Tt=[],He=()=>{},zs=()=>!1,hn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),gn=e=>e.startsWith("onUpdate:"),ue=Object.assign,Wn=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},or=Object.prototype.hasOwnProperty,X=(e,t)=>or.call(e,t),R=Array.isArray,Pt=e=>qt(e)==="[object Map]",It=e=>qt(e)==="[object Set]",Ks=e=>qt(e)==="[object Date]",B=e=>typeof e=="function",re=e=>typeof e=="string",qe=e=>typeof e=="symbol",ne=e=>e!==null&&typeof e=="object",Yn=e=>(ne(e)||B(e))&&B(e.then)&&B(e.catch),Ws=Object.prototype.toString,qt=e=>Ws.call(e),rr=e=>qt(e).slice(8,-1),bn=e=>qt(e)==="[object Object]",Gn=e=>re(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,zt=Ct(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),mn=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},lr=/-\w/g,Ce=mn(e=>e.replace(lr,t=>t.slice(1).toUpperCase())),cr=/\B([A-Z])/g,Re=mn(e=>e.replace(cr,"-$1").toLowerCase()),Ys=mn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Jn=mn(e=>e?`on${Ys(e)}`:""),ze=(e,t)=>!Object.is(e,t),_n=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Gs=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},yn=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Xn=e=>{const t=re(e)?Number(e):NaN;return isNaN(t)?e:t};let Js;const vn=()=>Js||(Js=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function xn(e){if(R(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],i=re(s)?dr(s):xn(s);if(i)for(const o in i)t[o]=i[o]}return t}else if(re(e)||ne(e))return e}const ar=/;(?![^(]*\))/g,ur=/:([^]+)/,fr=/\/\*[^]*?\*\//g;function dr(e){const t={};return e.replace(fr,"").split(ar).forEach(n=>{if(n){const s=n.split(ur);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Ne(e){let t="";if(re(e))t=e;else if(R(e))for(let n=0;n<e.length;n++){const s=Ne(e[n]);s&&(t+=s+" ")}else if(ne(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function pr(e){if(!e)return null;let{class:t,style:n}=e;return t&&!re(t)&&(e.class=Ne(t)),n&&(e.style=xn(n)),e}const hr=Ct("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Xs(e){return!!e||e===""}function gr(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=ut(e[s],t[s]);return n}function ut(e,t){if(e===t)return!0;let n=Ks(e),s=Ks(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=qe(e),s=qe(t),n||s)return e===t;if(n=R(e),s=R(t),n||s)return n&&s?gr(e,t):!1;if(n=ne(e),s=ne(t),n||s){if(!n||!s)return!1;const i=Object.keys(e).length,o=Object.keys(t).length;if(i!==o)return!1;for(const r in e){const l=e.hasOwnProperty(r),c=t.hasOwnProperty(r);if(l&&!c||!l&&c||!ut(e[r],t[r]))return!1}}return String(e)===String(t)}function Qn(e,t){return e.findIndex(n=>ut(n,t))}const Qs=e=>!!(e&&e.__v_isRef===!0),pe=e=>re(e)?e:e==null?"":R(e)||ne(e)&&(e.toString===Ws||!B(e.toString))?Qs(e)?pe(e.value):JSON.stringify(e,Zs,2):String(e),Zs=(e,t)=>Qs(t)?Zs(e,t.value):Pt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,i],o)=>(n[Zn(s,o)+" =>"]=i,n),{})}:It(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Zn(n))}:qe(t)?Zn(t):ne(t)&&!R(t)&&!bn(t)?String(t):t,Zn=(e,t="")=>{var n;return qe(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
* @vue/reactivity v3.5.31
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Te;class br{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=Te,!t&&Te&&(this.index=(Te.scopes||(Te.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Te;try{return Te=this,t()}finally{Te=n}}}on(){++this._on===1&&(this.prevScope=Te,Te=this)}off(){this._on>0&&--this._on===0&&(Te=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function mr(){return Te}let oe;const es=new WeakSet;class ei{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Te&&Te.active&&Te.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,es.has(this)&&(es.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||ni(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,li(this),si(this);const t=oe,n=Be;oe=this,Be=!0;try{return this.fn()}finally{ii(this),oe=t,Be=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)is(t);this.deps=this.depsTail=void 0,li(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?es.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ss(this)&&this.run()}get dirty(){return ss(this)}}let ti=0,Kt,Wt;function ni(e,t=!1){if(e.flags|=8,t){e.next=Wt,Wt=e;return}e.next=Kt,Kt=e}function ts(){ti++}function ns(){if(--ti>0)return;if(Wt){let t=Wt;for(Wt=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Kt;){let t=Kt;for(Kt=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function si(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ii(e){let t,n=e.depsTail,s=n;for(;s;){const i=s.prevDep;s.version===-1?(s===n&&(n=i),is(s),_r(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=i}e.deps=t,e.depsTail=n}function ss(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(oi(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function oi(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Yt)||(e.globalVersion=Yt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ss(e))))return;e.flags|=2;const t=e.dep,n=oe,s=Be;oe=e,Be=!0;try{si(e);const i=e.fn(e._value);(t.version===0||ze(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{oe=n,Be=s,ii(e),e.flags&=-3}}function is(e,t=!1){const{dep:n,prevSub:s,nextSub:i}=e;if(s&&(s.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)is(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function _r(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Be=!0;const ri=[];function Ke(){ri.push(Be),Be=!1}function We(){const e=ri.pop();Be=e===void 0?!0:e}function li(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=oe;oe=void 0;try{t()}finally{oe=n}}}let Yt=0;class yr{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class os{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!oe||!Be||oe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==oe)n=this.activeLink=new yr(oe,this),oe.deps?(n.prevDep=oe.depsTail,oe.depsTail.nextDep=n,oe.depsTail=n):oe.deps=oe.depsTail=n,ci(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=oe.depsTail,n.nextDep=void 0,oe.depsTail.nextDep=n,oe.depsTail=n,oe.deps===n&&(oe.deps=s)}return n}trigger(t){this.version++,Yt++,this.notify(t)}notify(t){ts();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{ns()}}}function ci(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)ci(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const rs=new WeakMap,mt=Symbol(""),ls=Symbol(""),Gt=Symbol("");function he(e,t,n){if(Be&&oe){let s=rs.get(e);s||rs.set(e,s=new Map);let i=s.get(n);i||(s.set(n,i=new os),i.map=s,i.key=n),i.track()}}function tt(e,t,n,s,i,o){const r=rs.get(e);if(!r){Yt++;return}const l=c=>{c&&c.trigger()};if(ts(),t==="clear")r.forEach(l);else{const c=R(e),u=c&&Gn(n);if(c&&n==="length"){const f=Number(s);r.forEach((p,b)=>{(b==="length"||b===Gt||!qe(b)&&b>=f)&&l(p)})}else switch((n!==void 0||r.has(void 0))&&l(r.get(n)),u&&l(r.get(Gt)),t){case"add":c?u&&l(r.get("length")):(l(r.get(mt)),Pt(e)&&l(r.get(ls)));break;case"delete":c||(l(r.get(mt)),Pt(e)&&l(r.get(ls)));break;case"set":Pt(e)&&l(r.get(mt));break}}ns()}function Et(e){const t=J(e);return t===e?t:(he(t,"iterate",Gt),$e(e)?t:t.map(Ue))}function wn(e){return he(e=J(e),"iterate",Gt),e}function Ye(e,t){return st(e)?Ft(_t(e)?Ue(t):t):Ue(t)}const vr={__proto__:null,[Symbol.iterator](){return cs(this,Symbol.iterator,e=>Ye(this,e))},concat(...e){return Et(this).concat(...e.map(t=>R(t)?Et(t):t))},entries(){return cs(this,"entries",e=>(e[1]=Ye(this,e[1]),e))},every(e,t){return nt(this,"every",e,t,void 0,arguments)},filter(e,t){return nt(this,"filter",e,t,n=>n.map(s=>Ye(this,s)),arguments)},find(e,t){return nt(this,"find",e,t,n=>Ye(this,n),arguments)},findIndex(e,t){return nt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return nt(this,"findLast",e,t,n=>Ye(this,n),arguments)},findLastIndex(e,t){return nt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return nt(this,"forEach",e,t,void 0,arguments)},includes(...e){return as(this,"includes",e)},indexOf(...e){return as(this,"indexOf",e)},join(e){return Et(this).join(e)},lastIndexOf(...e){return as(this,"lastIndexOf",e)},map(e,t){return nt(this,"map",e,t,void 0,arguments)},pop(){return Jt(this,"pop")},push(...e){return Jt(this,"push",e)},reduce(e,...t){return ai(this,"reduce",e,t)},reduceRight(e,...t){return ai(this,"reduceRight",e,t)},shift(){return Jt(this,"shift")},some(e,t){return nt(this,"some",e,t,void 0,arguments)},splice(...e){return Jt(this,"splice",e)},toReversed(){return Et(this).toReversed()},toSorted(e){return Et(this).toSorted(e)},toSpliced(...e){return Et(this).toSpliced(...e)},unshift(...e){return Jt(this,"unshift",e)},values(){return cs(this,"values",e=>Ye(this,e))}};function cs(e,t,n){const s=wn(e),i=s[t]();return s!==e&&!$e(e)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.done||(o.value=n(o.value)),o}),i}const xr=Array.prototype;function nt(e,t,n,s,i,o){const r=wn(e),l=r!==e&&!$e(e),c=r[t];if(c!==xr[t]){const p=c.apply(e,o);return l?Ue(p):p}let u=n;r!==e&&(l?u=function(p,b){return n.call(this,Ye(e,p),b,e)}:n.length>2&&(u=function(p,b){return n.call(this,p,b,e)}));const f=c.call(r,u,s);return l&&i?i(f):f}function ai(e,t,n,s){const i=wn(e),o=i!==e&&!$e(e);let r=n,l=!1;i!==e&&(o?(l=s.length===0,r=function(u,f,p){return l&&(l=!1,u=Ye(e,u)),n.call(this,u,Ye(e,f),p,e)}):n.length>3&&(r=function(u,f,p){return n.call(this,u,f,p,e)}));const c=i[t](r,...s);return l?Ye(e,c):c}function as(e,t,n){const s=J(e);he(s,"iterate",Gt);const i=s[t](...n);return(i===-1||i===!1)&&ps(n[0])?(n[0]=J(n[0]),s[t](...n)):i}function Jt(e,t,n=[]){Ke(),ts();const s=J(e)[t].apply(e,n);return ns(),We(),s}const wr=Ct("__proto__,__v_isRef,__isVue"),ui=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(qe));function kr(e){qe(e)||(e=String(e));const t=J(this);return he(t,"has",e),t.hasOwnProperty(e)}class fi{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(i?o?mi:bi:o?gi:hi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const r=R(t);if(!i){let c;if(r&&(c=vr[n]))return c;if(n==="hasOwnProperty")return kr}const l=Reflect.get(t,n,le(t)?t:s);if((qe(n)?ui.has(n):wr(n))||(i||he(t,"get",n),o))return l;if(le(l)){const c=r&&Gn(n)?l:l.value;return i&&ne(c)?ds(c):c}return ne(l)?i?ds(l):fs(l):l}}class di extends fi{constructor(t=!1){super(!1,t)}set(t,n,s,i){let o=t[n];const r=R(t)&&Gn(n);if(!this._isShallow){const u=st(o);if(!$e(s)&&!st(s)&&(o=J(o),s=J(s)),!r&&le(o)&&!le(s))return u||(o.value=s),!0}const l=r?Number(n)<t.length:X(t,n),c=Reflect.set(t,n,s,le(t)?t:i);return t===J(i)&&(l?ze(s,o)&&tt(t,"set",n,s):tt(t,"add",n,s)),c}deleteProperty(t,n){const s=X(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&s&&tt(t,"delete",n,void 0),i}has(t,n){const s=Reflect.has(t,n);return(!qe(n)||!ui.has(n))&&he(t,"has",n),s}ownKeys(t){return he(t,"iterate",R(t)?"length":mt),Reflect.ownKeys(t)}}class pi extends fi{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Sr=new di,Cr=new pi,Tr=new di(!0),Pr=new pi(!0),us=e=>e,kn=e=>Reflect.getPrototypeOf(e);function Ir(e,t,n){return function(...s){const i=this.__v_raw,o=J(i),r=Pt(o),l=e==="entries"||e===Symbol.iterator&&r,c=e==="keys"&&r,u=i[e](...s),f=n?us:t?Ft:Ue;return!t&&he(o,"iterate",c?ls:mt),ue(Object.create(u),{next(){const{value:p,done:b}=u.next();return b?{value:p,done:b}:{value:l?[f(p[0]),f(p[1])]:f(p),done:b}}})}}function Sn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Er(e,t){const n={get(i){const o=this.__v_raw,r=J(o),l=J(i);e||(ze(i,l)&&he(r,"get",i),he(r,"get",l));const{has:c}=kn(r),u=t?us:e?Ft:Ue;if(c.call(r,i))return u(o.get(i));if(c.call(r,l))return u(o.get(l));o!==r&&o.get(i)},get size(){const i=this.__v_raw;return!e&&he(J(i),"iterate",mt),i.size},has(i){const o=this.__v_raw,r=J(o),l=J(i);return e||(ze(i,l)&&he(r,"has",i),he(r,"has",l)),i===l?o.has(i):o.has(i)||o.has(l)},forEach(i,o){const r=this,l=r.__v_raw,c=J(l),u=t?us:e?Ft:Ue;return!e&&he(c,"iterate",mt),l.forEach((f,p)=>i.call(o,u(f),u(p),r))}};return ue(n,e?{add:Sn("add"),set:Sn("set"),delete:Sn("delete"),clear:Sn("clear")}:{add(i){const o=J(this),r=kn(o),l=J(i),c=!t&&!$e(i)&&!st(i)?l:i;return r.has.call(o,c)||ze(i,c)&&r.has.call(o,i)||ze(l,c)&&r.has.call(o,l)||(o.add(c),tt(o,"add",c,c)),this},set(i,o){!t&&!$e(o)&&!st(o)&&(o=J(o));const r=J(this),{has:l,get:c}=kn(r);let u=l.call(r,i);u||(i=J(i),u=l.call(r,i));const f=c.call(r,i);return r.set(i,o),u?ze(o,f)&&tt(r,"set",i,o):tt(r,"add",i,o),this},delete(i){const o=J(this),{has:r,get:l}=kn(o);let c=r.call(o,i);c||(i=J(i),c=r.call(o,i)),l&&l.call(o,i);const u=o.delete(i);return c&&tt(o,"delete",i,void 0),u},clear(){const i=J(this),o=i.size!==0,r=i.clear();return o&&tt(i,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=Ir(i,e,t)}),n}function Cn(e,t){const n=Er(e,t);return(s,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?s:Reflect.get(X(n,i)&&i in s?n:s,i,o)}const Fr={get:Cn(!1,!1)},Ar={get:Cn(!1,!0)},Or={get:Cn(!0,!1)},Mr={get:Cn(!0,!0)},hi=new WeakMap,gi=new WeakMap,bi=new WeakMap,mi=new WeakMap;function Rr(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Nr(e){return e.__v_skip||!Object.isExtensible(e)?0:Rr(rr(e))}function fs(e){return st(e)?e:Tn(e,!1,Sr,Fr,hi)}function $r(e){return Tn(e,!1,Tr,Ar,gi)}function ds(e){return Tn(e,!0,Cr,Or,bi)}function La(e){return Tn(e,!0,Pr,Mr,mi)}function Tn(e,t,n,s,i){if(!ne(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=Nr(e);if(o===0)return e;const r=i.get(e);if(r)return r;const l=new Proxy(e,o===2?s:n);return i.set(e,l),l}function _t(e){return st(e)?_t(e.__v_raw):!!(e&&e.__v_isReactive)}function st(e){return!!(e&&e.__v_isReadonly)}function $e(e){return!!(e&&e.__v_isShallow)}function ps(e){return e?!!e.__v_raw:!1}function J(e){const t=e&&e.__v_raw;return t?J(t):e}function jr(e){return!X(e,"__v_skip")&&Object.isExtensible(e)&&Gs(e,"__v_skip",!0),e}const Ue=e=>ne(e)?fs(e):e,Ft=e=>ne(e)?ds(e):e;function le(e){return e?e.__v_isRef===!0:!1}function Pn(e){return _i(e,!1)}function Lr(e){return _i(e,!0)}function _i(e,t){return le(e)?e:new Dr(e,t)}class Dr{constructor(t,n){this.dep=new os,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:J(t),this._value=n?t:Ue(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||$e(t)||st(t);t=s?t:J(t),ze(t,n)&&(this._rawValue=t,this._value=s?t:Ue(t),this.dep.trigger())}}function N(e){return le(e)?e.value:e}const Br={get:(e,t,n)=>t==="__v_raw"?e:N(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const i=e[t];return le(i)&&!le(n)?(i.value=n,!0):Reflect.set(e,t,n,s)}};function yi(e){return _t(e)?e:new Proxy(e,Br)}class Ur{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new os(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Yt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&oe!==this)return ni(this,!0),!0}get value(){const t=this.dep.track();return oi(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Vr(e,t,n=!1){let s,i;return B(e)?s=e:(s=e.get,i=e.set),new Ur(s,i,n)}const In={},En=new WeakMap;let yt;function Hr(e,t=!1,n=yt){if(n){let s=En.get(n);s||En.set(n,s=[]),s.push(e)}}function qr(e,t,n=te){const{immediate:s,deep:i,once:o,scheduler:r,augmentJob:l,call:c}=n,u=I=>i?I:$e(I)||i===!1||i===0?it(I,1):it(I);let f,p,b,w,E=!1,S=!1;if(le(e)?(p=()=>e.value,E=$e(e)):_t(e)?(p=()=>u(e),E=!0):R(e)?(S=!0,E=e.some(I=>_t(I)||$e(I)),p=()=>e.map(I=>{if(le(I))return I.value;if(_t(I))return u(I);if(B(I))return c?c(I,2):I()})):B(e)?t?p=c?()=>c(e,2):e:p=()=>{if(b){Ke();try{b()}finally{We()}}const I=yt;yt=f;try{return c?c(e,3,[w]):e(w)}finally{yt=I}}:p=He,t&&i){const I=p,T=i===!0?1/0:i;p=()=>it(I(),T)}const z=mr(),U=()=>{f.stop(),z&&z.active&&Wn(z.effects,f)};if(o&&t){const I=t;t=(...T)=>{I(...T),U()}}let O=S?new Array(e.length).fill(In):In;const H=I=>{if(!(!(f.flags&1)||!f.dirty&&!I))if(t){const T=f.run();if(i||E||(S?T.some((D,Y)=>ze(D,O[Y])):ze(T,O))){b&&b();const D=yt;yt=f;try{const Y=[T,O===In?void 0:S&&O[0]===In?[]:O,w];O=T,c?c(t,3,Y):t(...Y)}finally{yt=D}}}else f.run()};return l&&l(H),f=new ei(p),f.scheduler=r?()=>r(H,!1):H,w=I=>Hr(I,!1,f),b=f.onStop=()=>{const I=En.get(f);if(I){if(c)c(I,4);else for(const T of I)T();En.delete(f)}},t?s?H(!0):O=f.run():r?r(H.bind(null,!0),!0):f.run(),U.pause=f.pause.bind(f),U.resume=f.resume.bind(f),U.stop=U,U}function it(e,t=1/0,n){if(t<=0||!ne(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,le(e))it(e.value,t,n);else if(R(e))for(let s=0;s<e.length;s++)it(e[s],t,n);else if(It(e)||Pt(e))e.forEach(s=>{it(s,t,n)});else if(bn(e)){for(const s in e)it(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&it(e[s],t,n)}return e}/**
* @vue/runtime-core v3.5.31
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const Xt=[];let hs=!1;function Da(e,...t){if(hs)return;hs=!0,Ke();const n=Xt.length?Xt[Xt.length-1].component:null,s=n&&n.appContext.config.warnHandler,i=zr();if(s)At(s,n,11,[e+t.map(o=>{var r,l;return(l=(r=o.toString)==null?void 0:r.call(o))!=null?l:JSON.stringify(o)}).join(""),n&&n.proxy,i.map(({vnode:o})=>`at <${_o(n,o.type)}>`).join(`
`),i]);else{const o=[`[Vue warn]: ${e}`,...t];i.length&&o.push(`
`,...Kr(i)),console.warn(...o)}We(),hs=!1}function zr(){let e=Xt[Xt.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const s=e.component&&e.component.parent;e=s&&s.vnode}return t}function Kr(e){const t=[];return e.forEach((n,s)=>{t.push(...s===0?[]:[`
`],...Wr(n))}),t}function Wr({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",s=e.component?e.component.parent==null:!1,i=` at <${_o(e.component,e.type,s)}`,o=">"+n;return e.props?[i,...Yr(e.props),o]:[i+o]}function Yr(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(s=>{t.push(...vi(s,e[s]))}),n.length>3&&t.push(" ..."),t}function vi(e,t,n){return re(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:le(t)?(t=vi(e,J(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):B(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=J(t),n?t:[`${e}=`,t])}function At(e,t,n,s){try{return s?e(...s):e()}catch(i){Qt(i,t,n)}}function Ge(e,t,n,s){if(B(e)){const i=At(e,t,n,s);return i&&Yn(i)&&i.catch(o=>{Qt(o,t,n)}),i}if(R(e)){const i=[];for(let o=0;o<e.length;o++)i.push(Ge(e[o],t,n,s));return i}}function Qt(e,t,n,s=!0){const i=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:r}=t&&t.appContext.config||te;if(t){let l=t.parent;const c=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const f=l.ec;if(f){for(let p=0;p<f.length;p++)if(f[p](e,c,u)===!1)return}l=l.parent}if(o){Ke(),At(o,null,10,[e,c,u]),We();return}}Gr(e,n,i,s,r)}function Gr(e,t,n,s=!0,i=!1){if(i)throw e;console.error(e)}const _e=[];let Je=-1;const Ot=[];let ft=null,Mt=0;const xi=Promise.resolve();let Fn=null;function gs(e){const t=Fn||xi;return e?t.then(this?e.bind(this):e):t}function Jr(e){let t=Je+1,n=_e.length;for(;t<n;){const s=t+n>>>1,i=_e[s],o=Zt(i);o<e||o===e&&i.flags&2?t=s+1:n=s}return t}function bs(e){if(!(e.flags&1)){const t=Zt(e),n=_e[_e.length-1];!n||!(e.flags&2)&&t>=Zt(n)?_e.push(e):_e.splice(Jr(t),0,e),e.flags|=1,wi()}}function wi(){Fn||(Fn=xi.then(Ci))}function ms(e){R(e)?Ot.push(...e):ft&&e.id===-1?ft.splice(Mt+1,0,e):e.flags&1||(Ot.push(e),e.flags|=1),wi()}function ki(e,t,n=Je+1){for(;n<_e.length;n++){const s=_e[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;_e.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function Si(e){if(Ot.length){const t=[...new Set(Ot)].sort((n,s)=>Zt(n)-Zt(s));if(Ot.length=0,ft){ft.push(...t);return}for(ft=t,Mt=0;Mt<ft.length;Mt++){const n=ft[Mt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}ft=null,Mt=0}}const Zt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Ci(e){try{for(Je=0;Je<_e.length;Je++){const t=_e[Je];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),At(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Je<_e.length;Je++){const t=_e[Je];t&&(t.flags&=-2)}Je=-1,_e.length=0,Si(),Fn=null,(_e.length||Ot.length)&&Ci()}}let je=null,Ti=null;function An(e){const t=je;return je=e,Ti=e&&e.type.__scopeId||null,t}function Pi(e,t=je,n){if(!t||e._n)return e;const s=(...i)=>{s._d&&fo(-1);const o=An(t);let r;try{r=e(...i)}finally{An(o),s._d&&fo(1)}return r};return s._n=!0,s._c=!0,s._d=!0,s}function vt(e,t){if(je===null)return e;const n=Vn(je),s=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,r,l,c=te]=t[i];o&&(B(o)&&(o={mounted:o,updated:o}),o.deep&&it(r),s.push({dir:o,instance:n,value:r,oldValue:void 0,arg:l,modifiers:c}))}return e}function xt(e,t,n,s){const i=e.dirs,o=t&&t.dirs;for(let r=0;r<i.length;r++){const l=i[r];o&&(l.oldValue=o[r].value);let c=l.dir[s];c&&(Ke(),Ge(c,n,8,[e.el,l,e,t]),We())}}function Ii(e,t){if(ke){let n=ke.provides;const s=ke.parent&&ke.parent.provides;s===n&&(n=ke.provides=Object.create(s)),n[e]=t}}function wt(e,t,n=!1){const s=Dn();if(s||Rt){let i=Rt?Rt._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&B(t)?t.call(s&&s.proxy):t}}const Xr=Symbol.for("v-scx"),Qr=()=>wt(Xr);function _s(e,t,n){return Ei(e,t,n)}function Ei(e,t,n=te){const{immediate:s,deep:i,flush:o,once:r}=n,l=ue({},n),c=t&&s||!t&&o!=="post";let u;if(Bt){if(o==="sync"){const w=Qr();u=w.__watcherHandles||(w.__watcherHandles=[])}else if(!c){const w=()=>{};return w.stop=He,w.resume=He,w.pause=He,w}}const f=ke;l.call=(w,E,S)=>Ge(w,f,E,S);let p=!1;o==="post"?l.scheduler=w=>{ve(w,f&&f.suspense)}:o!=="sync"&&(p=!0,l.scheduler=(w,E)=>{E?w():bs(w)}),l.augmentJob=w=>{t&&(w.flags|=4),p&&(w.flags|=2,f&&(w.id=f.uid,w.i=f))};const b=qr(e,t,l);return Bt&&(u?u.push(b):c&&b()),b}function Zr(e,t,n){const s=this.proxy,i=re(e)?e.includes(".")?Fi(s,e):()=>s[e]:e.bind(s,s);let o;B(t)?o=t:(o=t.handler,n=t);const r=Dt(this),l=Ei(i,o.bind(s),n);return r(),l}function Fi(e,t){const n=t.split(".");return()=>{let s=e;for(let i=0;i<n.length&&s;i++)s=s[n[i]];return s}}const el=Symbol("_vte"),tl=e=>e.__isTeleport,nl=Symbol("_leaveCb");function ys(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ys(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Pe(e,t){return B(e)?ue({name:e.name},t,{setup:e}):e}function Ai(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function sl(e){const t=Dn(),n=Lr(null);if(t){const i=t.refs===te?t.refs={}:t.refs;Object.defineProperty(i,e,{enumerable:!0,get:()=>n.value,set:o=>n.value=o})}return n}function Oi(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const On=new WeakMap;function en(e,t,n,s,i=!1){if(R(e)){e.forEach((S,z)=>en(S,t&&(R(t)?t[z]:t),n,s,i));return}if(tn(s)&&!i){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&en(e,t,n,s.component.subTree);return}const o=s.shapeFlag&4?Vn(s.component):s.el,r=i?null:o,{i:l,r:c}=e,u=t&&t.r,f=l.refs===te?l.refs={}:l.refs,p=l.setupState,b=J(p),w=p===te?zs:S=>Oi(f,S)?!1:X(b,S),E=(S,z)=>!(z&&Oi(f,z));if(u!=null&&u!==c){if(Mi(t),re(u))f[u]=null,w(u)&&(p[u]=null);else if(le(u)){const S=t;E(u,S.k)&&(u.value=null),S.k&&(f[S.k]=null)}}if(B(c))At(c,l,12,[r,f]);else{const S=re(c),z=le(c);if(S||z){const U=()=>{if(e.f){const O=S?w(c)?p[c]:f[c]:E()||!e.k?c.value:f[e.k];if(i)R(O)&&Wn(O,o);else if(R(O))O.includes(o)||O.push(o);else if(S)f[c]=[o],w(c)&&(p[c]=f[c]);else{const H=[o];E(c,e.k)&&(c.value=H),e.k&&(f[e.k]=H)}}else S?(f[c]=r,w(c)&&(p[c]=r)):z&&(E(c,e.k)&&(c.value=r),e.k&&(f[e.k]=r))};if(r){const O=()=>{U(),On.delete(e)};O.id=-1,On.set(e,O),ve(O,n)}else Mi(e),U()}}}function Mi(e){const t=On.get(e);t&&(t.flags|=8,On.delete(e))}vn().requestIdleCallback,vn().cancelIdleCallback;const tn=e=>!!e.type.__asyncLoader,Ri=e=>e.type.__isKeepAlive;function il(e,t){Ni(e,"a",t)}function ol(e,t){Ni(e,"da",t)}function Ni(e,t,n=ke){const s=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Mn(t,s,n),n){let i=n.parent;for(;i&&i.parent;)Ri(i.parent.vnode)&&rl(s,t,n,i),i=i.parent}}function rl(e,t,n,s){const i=Mn(t,e,s,!0);$i(()=>{Wn(s[t],i)},n)}function Mn(e,t,n=ke,s=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...r)=>{Ke();const l=Dt(n),c=Ge(t,n,e,r);return l(),We(),c});return s?i.unshift(o):i.push(o),o}}const ot=e=>(t,n=ke)=>{(!Bt||e==="sp")&&Mn(e,(...s)=>t(...s),n)},ll=ot("bm"),vs=ot("m"),cl=ot("bu"),al=ot("u"),ul=ot("bum"),$i=ot("um"),fl=ot("sp"),dl=ot("rtg"),pl=ot("rtc");function hl(e,t=ke){Mn("ec",e,t)}const gl=Symbol.for("v-ndc");function Rn(e,t,n,s){let i;const o=n,r=R(e);if(r||re(e)){const l=r&&_t(e);let c=!1,u=!1;l&&(c=!$e(e),u=st(e),e=wn(e)),i=new Array(e.length);for(let f=0,p=e.length;f<p;f++)i[f]=t(c?u?Ft(Ue(e[f])):Ue(e[f]):e[f],f,void 0,o)}else if(typeof e=="number"){i=new Array(e);for(let l=0;l<e;l++)i[l]=t(l+1,l,void 0,o)}else if(ne(e))if(e[Symbol.iterator])i=Array.from(e,(l,c)=>t(l,c,void 0,o));else{const l=Object.keys(e);i=new Array(l.length);for(let c=0,u=l.length;c<u;c++){const f=l[c];i[c]=t(e[f],f,c,o)}}else i=[];return i}const xs=e=>e?bo(e)?Vn(e):xs(e.parent):null,nn=ue(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>xs(e.parent),$root:e=>xs(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Bi(e),$forceUpdate:e=>e.f||(e.f=()=>{bs(e.update)}),$nextTick:e=>e.n||(e.n=gs.bind(e.proxy)),$watch:e=>Zr.bind(e)}),ws=(e,t)=>e!==te&&!e.__isScriptSetup&&X(e,t),bl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:i,props:o,accessCache:r,type:l,appContext:c}=e;if(t[0]!=="$"){const b=r[t];if(b!==void 0)switch(b){case 1:return s[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(ws(s,t))return r[t]=1,s[t];if(i!==te&&X(i,t))return r[t]=2,i[t];if(X(o,t))return r[t]=3,o[t];if(n!==te&&X(n,t))return r[t]=4,n[t];ks&&(r[t]=0)}}const u=nn[t];let f,p;if(u)return t==="$attrs"&&he(e.attrs,"get",""),u(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==te&&X(n,t))return r[t]=4,n[t];if(p=c.config.globalProperties,X(p,t))return p[t]},set({_:e},t,n){const{data:s,setupState:i,ctx:o}=e;return ws(i,t)?(i[t]=n,!0):s!==te&&X(s,t)?(s[t]=n,!0):X(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:i,props:o,type:r}},l){let c;return!!(n[l]||e!==te&&l[0]!=="$"&&X(e,l)||ws(t,l)||X(o,l)||X(s,l)||X(nn,l)||X(i.config.globalProperties,l)||(c=r.__cssModules)&&c[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:X(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ji(e){return R(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function ml(e){const t=Dn(),n=Bt;let s=e();Un(),n&&Lt(!1);const i=()=>{Dt(t),n&&Lt(!0)},o=()=>{Dn()!==t&&t.scope.off(),Un(),n&&Lt(!1)};return Yn(s)&&(s=s.catch(r=>{throw i(),Promise.resolve().then(()=>Promise.resolve().then(o)),r})),[s,()=>{i(),Promise.resolve().then(o)}]}let ks=!0;function _l(e){const t=Bi(e),n=e.proxy,s=e.ctx;ks=!1,t.beforeCreate&&Li(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:r,watch:l,provide:c,inject:u,created:f,beforeMount:p,mounted:b,beforeUpdate:w,updated:E,activated:S,deactivated:z,beforeDestroy:U,beforeUnmount:O,destroyed:H,unmounted:I,render:T,renderTracked:D,renderTriggered:Y,errorCaptured:P,serverPrefetch:F,expose:j,inheritAttrs:Q,components:q,directives:se,filters:ae}=t;if(u&&yl(u,s,null),r)for(const $ in r){const K=r[$];B(K)&&(s[$]=K.bind(n))}if(i){const $=i.call(n,n);ne($)&&(e.data=fs($))}if(ks=!0,o)for(const $ in o){const K=o[$],Ae=B(K)?K.bind(n,n):B(K.get)?K.get.bind(n,n):He,Ze=!B(K)&&B(K.set)?K.set.bind(n):He,Fe=Ee({get:Ae,set:Ze});Object.defineProperty(s,$,{enumerable:!0,configurable:!0,get:()=>Fe.value,set:Oe=>Fe.value=Oe})}if(l)for(const $ in l)Di(l[$],s,n,$);if(c){const $=B(c)?c.call(n):c;Reflect.ownKeys($).forEach(K=>{Ii(K,$[K])})}f&&Li(f,e,"c");function G($,K){R(K)?K.forEach(Ae=>$(Ae.bind(n))):K&&$(K.bind(n))}if(G(ll,p),G(vs,b),G(cl,w),G(al,E),G(il,S),G(ol,z),G(hl,P),G(pl,D),G(dl,Y),G(ul,O),G($i,I),G(fl,F),R(j))if(j.length){const $=e.exposed||(e.exposed={});j.forEach(K=>{Object.defineProperty($,K,{get:()=>n[K],set:Ae=>n[K]=Ae,enumerable:!0})})}else e.exposed||(e.exposed={});T&&e.render===He&&(e.render=T),Q!=null&&(e.inheritAttrs=Q),q&&(e.components=q),se&&(e.directives=se),F&&Ai(e)}function yl(e,t,n=He){R(e)&&(e=Ss(e));for(const s in e){const i=e[s];let o;ne(i)?"default"in i?o=wt(i.from||s,i.default,!0):o=wt(i.from||s):o=wt(i),le(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):t[s]=o}}function Li(e,t,n){Ge(R(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Di(e,t,n,s){let i=s.includes(".")?Fi(n,s):()=>n[s];if(re(e)){const o=t[e];B(o)&&_s(i,o)}else if(B(e))_s(i,e.bind(n));else if(ne(e))if(R(e))e.forEach(o=>Di(o,t,n,s));else{const o=B(e.handler)?e.handler.bind(n):t[e.handler];B(o)&&_s(i,o,e)}}function Bi(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:r}}=e.appContext,l=o.get(t);let c;return l?c=l:!i.length&&!n&&!s?c=t:(c={},i.length&&i.forEach(u=>Nn(c,u,r,!0)),Nn(c,t,r)),ne(t)&&o.set(t,c),c}function Nn(e,t,n,s=!1){const{mixins:i,extends:o}=t;o&&Nn(e,o,n,!0),i&&i.forEach(r=>Nn(e,r,n,!0));for(const r in t)if(!(s&&r==="expose")){const l=vl[r]||n&&n[r];e[r]=l?l(e[r],t[r]):t[r]}return e}const vl={data:Ui,props:Vi,emits:Vi,methods:sn,computed:sn,beforeCreate:ye,created:ye,beforeMount:ye,mounted:ye,beforeUpdate:ye,updated:ye,beforeDestroy:ye,beforeUnmount:ye,destroyed:ye,unmounted:ye,activated:ye,deactivated:ye,errorCaptured:ye,serverPrefetch:ye,components:sn,directives:sn,watch:wl,provide:Ui,inject:xl};function Ui(e,t){return t?e?function(){return ue(B(e)?e.call(this,this):e,B(t)?t.call(this,this):t)}:t:e}function xl(e,t){return sn(Ss(e),Ss(t))}function Ss(e){if(R(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ye(e,t){return e?[...new Set([].concat(e,t))]:t}function sn(e,t){return e?ue(Object.create(null),e,t):t}function Vi(e,t){return e?R(e)&&R(t)?[...new Set([...e,...t])]:ue(Object.create(null),ji(e),ji(t??{})):t}function wl(e,t){if(!e)return t;if(!t)return e;const n=ue(Object.create(null),e);for(const s in t)n[s]=ye(e[s],t[s]);return n}function Hi(){return{app:null,config:{isNativeTag:zs,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let kl=0;function Sl(e,t){return function(s,i=null){B(s)||(s=ue({},s)),i!=null&&!ne(i)&&(i=null);const o=Hi(),r=new WeakSet,l=[];let c=!1;const u=o.app={_uid:kl++,_component:s,_props:i,_container:null,_context:o,_instance:null,version:cc,get config(){return o.config},set config(f){},use(f,...p){return r.has(f)||(f&&B(f.install)?(r.add(f),f.install(u,...p)):B(f)&&(r.add(f),f(u,...p))),u},mixin(f){return o.mixins.includes(f)||o.mixins.push(f),u},component(f,p){return p?(o.components[f]=p,u):o.components[f]},directive(f,p){return p?(o.directives[f]=p,u):o.directives[f]},mount(f,p,b){if(!c){const w=u._ceVNode||Le(s,i);return w.appContext=o,b===!0?b="svg":b===!1&&(b=void 0),e(w,f,b),c=!0,u._container=f,f.__vue_app__=u,Vn(w.component)}},onUnmount(f){l.push(f)},unmount(){c&&(Ge(l,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(f,p){return o.provides[f]=p,u},runWithContext(f){const p=Rt;Rt=u;try{return f()}finally{Rt=p}}};return u}}let Rt=null;const Cl=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ce(t)}Modifiers`]||e[`${Re(t)}Modifiers`];function Tl(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||te;let i=n;const o=t.startsWith("update:"),r=o&&Cl(s,t.slice(7));r&&(r.trim&&(i=n.map(f=>re(f)?f.trim():f)),r.number&&(i=n.map(yn)));let l,c=s[l=Jn(t)]||s[l=Jn(Ce(t))];!c&&o&&(c=s[l=Jn(Re(t))]),c&&Ge(c,e,6,i);const u=s[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ge(u,e,6,i)}}const Pl=new WeakMap;function qi(e,t,n=!1){const s=n?Pl:t.emitsCache,i=s.get(e);if(i!==void 0)return i;const o=e.emits;let r={},l=!1;if(!B(e)){const c=u=>{const f=qi(u,t,!0);f&&(l=!0,ue(r,f))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!l?(ne(e)&&s.set(e,null),null):(R(o)?o.forEach(c=>r[c]=null):ue(r,o),ne(e)&&s.set(e,r),r)}function $n(e,t){return!e||!hn(t)?!1:(t=t.slice(2).replace(/Once$/,""),X(e,t[0].toLowerCase()+t.slice(1))||X(e,Re(t))||X(e,t))}function Ba(){}function zi(e){const{type:t,vnode:n,proxy:s,withProxy:i,propsOptions:[o],slots:r,attrs:l,emit:c,render:u,renderCache:f,props:p,data:b,setupState:w,ctx:E,inheritAttrs:S}=e,z=An(e);let U,O;try{if(n.shapeFlag&4){const I=i||s,T=I;U=Ve(u.call(T,I,f,p,w,b,E)),O=l}else{const I=t;U=Ve(I.length>1?I(p,{attrs:l,slots:r,emit:c}):I(p,null)),O=t.props?l:El(l)}}catch(I){rn.length=0,Qt(I,e,1),U=Le(Xe)}let H=U;if(O&&S!==!1){const I=Object.keys(O),{shapeFlag:T}=H;I.length&&T&7&&(o&&I.some(gn)&&(O=Fl(O,o)),H=jt(H,O,!1,!0))}return n.dirs&&(H=jt(H,null,!1,!0),H.dirs=H.dirs?H.dirs.concat(n.dirs):n.dirs),n.transition&&ys(H,n.transition),U=H,An(z),U}function Il(e,t=!0){let n;for(let s=0;s<e.length;s++){const i=e[s];if(Os(i)){if(i.type!==Xe||i.children==="v-if"){if(n)return;n=i}}else return}return n}const El=e=>{let t;for(const n in e)(n==="class"||n==="style"||hn(n))&&((t||(t={}))[n]=e[n]);return t},Fl=(e,t)=>{const n={};for(const s in e)(!gn(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Al(e,t,n){const{props:s,children:i,component:o}=e,{props:r,children:l,patchFlag:c}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?Ki(s,r,u):!!r;if(c&8){const f=t.dynamicProps;for(let p=0;p<f.length;p++){const b=f[p];if(Wi(r,s,b)&&!$n(u,b))return!0}}}else return(i||l)&&(!l||!l.$stable)?!0:s===r?!1:s?r?Ki(s,r,u):!0:!!r;return!1}function Ki(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let i=0;i<s.length;i++){const o=s[i];if(Wi(t,e,o)&&!$n(n,o))return!0}return!1}function Wi(e,t,n){const s=e[n],i=t[n];return n==="style"&&ne(s)&&ne(i)?!ut(s,i):s!==i}function Cs({vnode:e,parent:t,suspense:n},s){for(;t;){const i=t.subTree;if(i.suspense&&i.suspense.activeBranch===e&&(i.suspense.vnode.el=i.el=s,e=i),i===e)(e=t.vnode).el=s,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=s)}const Yi={},Gi=()=>Object.create(Yi),Ji=e=>Object.getPrototypeOf(e)===Yi;function Ol(e,t,n,s=!1){const i={},o=Gi();e.propsDefaults=Object.create(null),Xi(e,t,i,o);for(const r in e.propsOptions[0])r in i||(i[r]=void 0);n?e.props=s?i:$r(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function Ml(e,t,n,s){const{props:i,attrs:o,vnode:{patchFlag:r}}=e,l=J(i),[c]=e.propsOptions;let u=!1;if((s||r>0)&&!(r&16)){if(r&8){const f=e.vnode.dynamicProps;for(let p=0;p<f.length;p++){let b=f[p];if($n(e.emitsOptions,b))continue;const w=t[b];if(c)if(X(o,b))w!==o[b]&&(o[b]=w,u=!0);else{const E=Ce(b);i[E]=Ts(c,l,E,w,e,!1)}else w!==o[b]&&(o[b]=w,u=!0)}}}else{Xi(e,t,i,o)&&(u=!0);let f;for(const p in l)(!t||!X(t,p)&&((f=Re(p))===p||!X(t,f)))&&(c?n&&(n[p]!==void 0||n[f]!==void 0)&&(i[p]=Ts(c,l,p,void 0,e,!0)):delete i[p]);if(o!==l)for(const p in o)(!t||!X(t,p))&&(delete o[p],u=!0)}u&&tt(e.attrs,"set","")}function Xi(e,t,n,s){const[i,o]=e.propsOptions;let r=!1,l;if(t)for(let c in t){if(zt(c))continue;const u=t[c];let f;i&&X(i,f=Ce(c))?!o||!o.includes(f)?n[f]=u:(l||(l={}))[f]=u:$n(e.emitsOptions,c)||(!(c in s)||u!==s[c])&&(s[c]=u,r=!0)}if(o){const c=J(n),u=l||te;for(let f=0;f<o.length;f++){const p=o[f];n[p]=Ts(i,c,p,u[p],e,!X(u,p))}}return r}function Ts(e,t,n,s,i,o){const r=e[n];if(r!=null){const l=X(r,"default");if(l&&s===void 0){const c=r.default;if(r.type!==Function&&!r.skipFactory&&B(c)){const{propsDefaults:u}=i;if(n in u)s=u[n];else{const f=Dt(i);s=u[n]=c.call(null,t),f()}}else s=c;i.ce&&i.ce._setProp(n,s)}r[0]&&(o&&!l?s=!1:r[1]&&(s===""||s===Re(n))&&(s=!0))}return s}const Rl=new WeakMap;function Qi(e,t,n=!1){const s=n?Rl:t.propsCache,i=s.get(e);if(i)return i;const o=e.props,r={},l=[];let c=!1;if(!B(e)){const f=p=>{c=!0;const[b,w]=Qi(p,t,!0);ue(r,b),w&&l.push(...w)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!o&&!c)return ne(e)&&s.set(e,Tt),Tt;if(R(o))for(let f=0;f<o.length;f++){const p=Ce(o[f]);Zi(p)&&(r[p]=te)}else if(o)for(const f in o){const p=Ce(f);if(Zi(p)){const b=o[f],w=r[p]=R(b)||B(b)?{type:b}:ue({},b),E=w.type;let S=!1,z=!0;if(R(E))for(let U=0;U<E.length;++U){const O=E[U],H=B(O)&&O.name;if(H==="Boolean"){S=!0;break}else H==="String"&&(z=!1)}else S=B(E)&&E.name==="Boolean";w[0]=S,w[1]=z,(S||X(w,"default"))&&l.push(p)}}const u=[r,l];return ne(e)&&s.set(e,u),u}function Zi(e){return e[0]!=="$"&&!zt(e)}const Ps=e=>e==="_"||e==="_ctx"||e==="$stable",Is=e=>R(e)?e.map(Ve):[Ve(e)],Nl=(e,t,n)=>{if(t._n)return t;const s=Pi((...i)=>Is(t(...i)),n);return s._c=!1,s},eo=(e,t,n)=>{const s=e._ctx;for(const i in e){if(Ps(i))continue;const o=e[i];if(B(o))t[i]=Nl(i,o,s);else if(o!=null){const r=Is(o);t[i]=()=>r}}},to=(e,t)=>{const n=Is(t);e.slots.default=()=>n},no=(e,t,n)=>{for(const s in t)(n||!Ps(s))&&(e[s]=t[s])},$l=(e,t,n)=>{const s=e.slots=Gi();if(e.vnode.shapeFlag&32){const i=t._;i?(no(s,t,n),n&&Gs(s,"_",i,!0)):eo(t,s)}else t&&to(e,t)},jl=(e,t,n)=>{const{vnode:s,slots:i}=e;let o=!0,r=te;if(s.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:no(i,t,n):(o=!t.$stable,eo(t,i)),r=t}else t&&(to(e,t),r={default:1});if(o)for(const l in i)!Ps(l)&&r[l]==null&&delete i[l]},ve=Wl;function Ll(e){return Dl(e)}function Dl(e,t){const n=vn();n.__VUE__=!0;const{insert:s,remove:i,patchProp:o,createElement:r,createText:l,createComment:c,setText:u,setElementText:f,parentNode:p,nextSibling:b,setScopeId:w=He,insertStaticContent:E}=e,S=(a,d,h,y=null,g=null,m=null,k=void 0,x=null,v=!!d.dynamicChildren)=>{if(a===d)return;a&&!dt(a,d)&&(y=at(a),Oe(a,g,m,!0),a=null),d.patchFlag===-2&&(v=!1,d.dynamicChildren=null);const{type:_,ref:M,shapeFlag:C}=d;switch(_){case jn:z(a,d,h,y);break;case Xe:U(a,d,h,y);break;case As:a==null&&O(d,h,y,k);break;case xe:q(a,d,h,y,g,m,k,x,v);break;default:C&1?T(a,d,h,y,g,m,k,x,v):C&6?se(a,d,h,y,g,m,k,x,v):(C&64||C&128)&&_.process(a,d,h,y,g,m,k,x,v,gt)}M!=null&&g?en(M,a&&a.ref,m,d||a,!d):M==null&&a&&a.ref!=null&&en(a.ref,null,m,a,!0)},z=(a,d,h,y)=>{if(a==null)s(d.el=l(d.children),h,y);else{const g=d.el=a.el;d.children!==a.children&&u(g,d.children)}},U=(a,d,h,y)=>{a==null?s(d.el=c(d.children||""),h,y):d.el=a.el},O=(a,d,h,y)=>{[a.el,a.anchor]=E(a.children,d,h,y,a.el,a.anchor)},H=({el:a,anchor:d},h,y)=>{let g;for(;a&&a!==d;)g=b(a),s(a,h,y),a=g;s(d,h,y)},I=({el:a,anchor:d})=>{let h;for(;a&&a!==d;)h=b(a),i(a),a=h;i(d)},T=(a,d,h,y,g,m,k,x,v)=>{if(d.type==="svg"?k="svg":d.type==="math"&&(k="mathml"),a==null)D(d,h,y,g,m,k,x,v);else{const _=a.el&&a.el._isVueCE?a.el:null;try{_&&_._beginPatch(),F(a,d,g,m,k,x,v)}finally{_&&_._endPatch()}}},D=(a,d,h,y,g,m,k,x)=>{let v,_;const{props:M,shapeFlag:C,transition:A,dirs:L}=a;if(v=a.el=r(a.type,m,M&&M.is,M),C&8?f(v,a.children):C&16&&P(a.children,v,null,y,g,Es(a,m),k,x),L&&xt(a,null,y,"created"),Y(v,a,a.scopeId,k,y),M){for(const Z in M)Z!=="value"&&!zt(Z)&&o(v,Z,null,M[Z],m,y);"value"in M&&o(v,"value",null,M.value,m),(_=M.onVnodeBeforeMount)&&Qe(_,y,a)}L&&xt(a,null,y,"beforeMount");const W=Bl(g,A);W&&A.beforeEnter(v),s(v,d,h),((_=M&&M.onVnodeMounted)||W||L)&&ve(()=>{try{_&&Qe(_,y,a),W&&A.enter(v),L&&xt(a,null,y,"mounted")}finally{}},g)},Y=(a,d,h,y,g)=>{if(h&&w(a,h),y)for(let m=0;m<y.length;m++)w(a,y[m]);if(g){let m=g.subTree;if(d===m||lo(m.type)&&(m.ssContent===d||m.ssFallback===d)){const k=g.vnode;Y(a,k,k.scopeId,k.slotScopeIds,g.parent)}}},P=(a,d,h,y,g,m,k,x,v=0)=>{for(let _=v;_<a.length;_++){const M=a[_]=x?rt(a[_]):Ve(a[_]);S(null,M,d,h,y,g,m,k,x)}},F=(a,d,h,y,g,m,k)=>{const x=d.el=a.el;let{patchFlag:v,dynamicChildren:_,dirs:M}=d;v|=a.patchFlag&16;const C=a.props||te,A=d.props||te;let L;if(h&&kt(h,!1),(L=A.onVnodeBeforeUpdate)&&Qe(L,h,d,a),M&&xt(d,a,h,"beforeUpdate"),h&&kt(h,!0),(C.innerHTML&&A.innerHTML==null||C.textContent&&A.textContent==null)&&f(x,""),_?j(a.dynamicChildren,_,x,h,y,Es(d,g),m):k||K(a,d,x,null,h,y,Es(d,g),m,!1),v>0){if(v&16)Q(x,C,A,h,g);else if(v&2&&C.class!==A.class&&o(x,"class",null,A.class,g),v&4&&o(x,"style",C.style,A.style,g),v&8){const W=d.dynamicProps;for(let Z=0;Z<W.length;Z++){const ee=W[Z],ce=C[ee],de=A[ee];(de!==ce||ee==="value")&&o(x,ee,ce,de,g,h)}}v&1&&a.children!==d.children&&f(x,d.children)}else!k&&_==null&&Q(x,C,A,h,g);((L=A.onVnodeUpdated)||M)&&ve(()=>{L&&Qe(L,h,d,a),M&&xt(d,a,h,"updated")},y)},j=(a,d,h,y,g,m,k)=>{for(let x=0;x<d.length;x++){const v=a[x],_=d[x],M=v.el&&(v.type===xe||!dt(v,_)||v.shapeFlag&198)?p(v.el):h;S(v,_,M,null,y,g,m,k,!0)}},Q=(a,d,h,y,g)=>{if(d!==h){if(d!==te)for(const m in d)!zt(m)&&!(m in h)&&o(a,m,d[m],null,g,y);for(const m in h){if(zt(m))continue;const k=h[m],x=d[m];k!==x&&m!=="value"&&o(a,m,x,k,g,y)}"value"in h&&o(a,"value",d.value,h.value,g)}},q=(a,d,h,y,g,m,k,x,v)=>{const _=d.el=a?a.el:l(""),M=d.anchor=a?a.anchor:l("");let{patchFlag:C,dynamicChildren:A,slotScopeIds:L}=d;L&&(x=x?x.concat(L):L),a==null?(s(_,h,y),s(M,h,y),P(d.children||[],h,M,g,m,k,x,v)):C>0&&C&64&&A&&a.dynamicChildren&&a.dynamicChildren.length===A.length?(j(a.dynamicChildren,A,h,g,m,k,x),(d.key!=null||g&&d===g.subTree)&&so(a,d,!0)):K(a,d,h,M,g,m,k,x,v)},se=(a,d,h,y,g,m,k,x,v)=>{d.slotScopeIds=x,a==null?d.shapeFlag&512?g.ctx.activate(d,h,y,k,v):ae(d,h,y,g,m,k,v):be(a,d,v)},ae=(a,d,h,y,g,m,k)=>{const x=a.component=Zl(a,y,g);if(Ri(a)&&(x.ctx.renderer=gt),ec(x,!1,k),x.asyncDep){if(g&&g.registerDep(x,G,k),!a.el){const v=x.subTree=Le(Xe);U(null,v,d,h),a.placeholder=v.el}}else G(x,a,d,h,g,m,k)},be=(a,d,h)=>{const y=d.component=a.component;if(Al(a,d,h))if(y.asyncDep&&!y.asyncResolved){$(y,d,h);return}else y.next=d,y.update();else d.el=a.el,y.vnode=d},G=(a,d,h,y,g,m,k)=>{const x=()=>{if(a.isMounted){let{next:C,bu:A,u:L,parent:W,vnode:Z}=a;{const Me=io(a);if(Me){C&&(C.el=Z.el,$(a,C,k)),Me.asyncDep.then(()=>{ve(()=>{a.isUnmounted||_()},g)});return}}let ee=C,ce;kt(a,!1),C?(C.el=Z.el,$(a,C,k)):C=Z,A&&_n(A),(ce=C.props&&C.props.onVnodeBeforeUpdate)&&Qe(ce,W,C,Z),kt(a,!0);const de=zi(a),Se=a.subTree;a.subTree=de,S(Se,de,p(Se.el),at(Se),a,g,m),C.el=de.el,ee===null&&Cs(a,de.el),L&&ve(L,g),(ce=C.props&&C.props.onVnodeUpdated)&&ve(()=>Qe(ce,W,C,Z),g)}else{let C;const{el:A,props:L}=d,{bm:W,m:Z,parent:ee,root:ce,type:de}=a,Se=tn(d);kt(a,!1),W&&_n(W),!Se&&(C=L&&L.onVnodeBeforeMount)&&Qe(C,ee,d),kt(a,!0);{ce.ce&&ce.ce._hasShadowRoot()&&ce.ce._injectChildStyle(de,a.parent?a.parent.type:void 0);const Me=a.subTree=zi(a);S(null,Me,h,y,a,g,m),d.el=Me.el}if(Z&&ve(Z,g),!Se&&(C=L&&L.onVnodeMounted)){const Me=d;ve(()=>Qe(C,ee,Me),g)}(d.shapeFlag&256||ee&&tn(ee.vnode)&&ee.vnode.shapeFlag&256)&&a.a&&ve(a.a,g),a.isMounted=!0,d=h=y=null}};a.scope.on();const v=a.effect=new ei(x);a.scope.off();const _=a.update=v.run.bind(v),M=a.job=v.runIfDirty.bind(v);M.i=a,M.id=a.uid,v.scheduler=()=>bs(M),kt(a,!0),_()},$=(a,d,h)=>{d.component=a;const y=a.vnode.props;a.vnode=d,a.next=null,Ml(a,d.props,y,h),jl(a,d.children,h),Ke(),ki(a),We()},K=(a,d,h,y,g,m,k,x,v=!1)=>{const _=a&&a.children,M=a?a.shapeFlag:0,C=d.children,{patchFlag:A,shapeFlag:L}=d;if(A>0){if(A&128){Ze(_,C,h,y,g,m,k,x,v);return}else if(A&256){Ae(_,C,h,y,g,m,k,x,v);return}}L&8?(M&16&&ht(_,g,m),C!==_&&f(h,C)):M&16?L&16?Ze(_,C,h,y,g,m,k,x,v):ht(_,g,m,!0):(M&8&&f(h,""),L&16&&P(C,h,y,g,m,k,x,v))},Ae=(a,d,h,y,g,m,k,x,v)=>{a=a||Tt,d=d||Tt;const _=a.length,M=d.length,C=Math.min(_,M);let A;for(A=0;A<C;A++){const L=d[A]=v?rt(d[A]):Ve(d[A]);S(a[A],L,h,null,g,m,k,x,v)}_>M?ht(a,g,m,!0,!1,C):P(d,h,y,g,m,k,x,v,C)},Ze=(a,d,h,y,g,m,k,x,v)=>{let _=0;const M=d.length;let C=a.length-1,A=M-1;for(;_<=C&&_<=A;){const L=a[_],W=d[_]=v?rt(d[_]):Ve(d[_]);if(dt(L,W))S(L,W,h,null,g,m,k,x,v);else break;_++}for(;_<=C&&_<=A;){const L=a[C],W=d[A]=v?rt(d[A]):Ve(d[A]);if(dt(L,W))S(L,W,h,null,g,m,k,x,v);else break;C--,A--}if(_>C){if(_<=A){const L=A+1,W=L<M?d[L].el:y;for(;_<=A;)S(null,d[_]=v?rt(d[_]):Ve(d[_]),h,W,g,m,k,x,v),_++}}else if(_>A)for(;_<=C;)Oe(a[_],g,m,!0),_++;else{const L=_,W=_,Z=new Map;for(_=W;_<=A;_++){const me=d[_]=v?rt(d[_]):Ve(d[_]);me.key!=null&&Z.set(me.key,_)}let ee,ce=0;const de=A-W+1;let Se=!1,Me=0;const bt=new Array(de);for(_=0;_<de;_++)bt[_]=0;for(_=L;_<=C;_++){const me=a[_];if(ce>=de){Oe(me,g,m,!0);continue}let et;if(me.key!=null)et=Z.get(me.key);else for(ee=W;ee<=A;ee++)if(bt[ee-W]===0&&dt(me,d[ee])){et=ee;break}et===void 0?Oe(me,g,m,!0):(bt[et-W]=_+1,et>=Me?Me=et:Se=!0,S(me,d[et],h,null,g,m,k,x,v),ce++)}const St=Se?Ul(bt):Tt;for(ee=St.length-1,_=de-1;_>=0;_--){const me=W+_,et=d[me],sr=d[me+1],ir=me+1<M?sr.el||ro(sr):y;bt[_]===0?S(null,et,h,ir,g,m,k,x,v):Se&&(ee<0||_!==St[ee]?Fe(et,h,ir,2):ee--)}}},Fe=(a,d,h,y,g=null)=>{const{el:m,type:k,transition:x,children:v,shapeFlag:_}=a;if(_&6){Fe(a.component.subTree,d,h,y);return}if(_&128){a.suspense.move(d,h,y);return}if(_&64){k.move(a,d,h,gt);return}if(k===xe){s(m,d,h);for(let C=0;C<v.length;C++)Fe(v[C],d,h,y);s(a.anchor,d,h);return}if(k===As){H(a,d,h);return}if(y!==2&&_&1&&x)if(y===0)x.beforeEnter(m),s(m,d,h),ve(()=>x.enter(m),g);else{const{leave:C,delayLeave:A,afterLeave:L}=x,W=()=>{a.ctx.isUnmounted?i(m):s(m,d,h)},Z=()=>{m._isLeaving&&m[nl](!0),C(m,()=>{W(),L&&L()})};A?A(m,W,Z):Z()}else s(m,d,h)},Oe=(a,d,h,y=!1,g=!1)=>{const{type:m,props:k,ref:x,children:v,dynamicChildren:_,shapeFlag:M,patchFlag:C,dirs:A,cacheIndex:L,memo:W}=a;if(C===-2&&(g=!1),x!=null&&(Ke(),en(x,null,h,a,!0),We()),L!=null&&(d.renderCache[L]=void 0),M&256){d.ctx.deactivate(a);return}const Z=M&1&&A,ee=!tn(a);let ce;if(ee&&(ce=k&&k.onVnodeBeforeUnmount)&&Qe(ce,d,a),M&6)Kn(a.component,h,y);else{if(M&128){a.suspense.unmount(h,y);return}Z&&xt(a,null,d,"beforeUnmount"),M&64?a.type.remove(a,d,h,gt,y):_&&!_.hasOnce&&(m!==xe||C>0&&C&64)?ht(_,d,h,!1,!0):(m===xe&&C&384||!g&&M&16)&&ht(v,d,h),y&&dn(a)}const de=W!=null&&L==null;(ee&&(ce=k&&k.onVnodeUnmounted)||Z||de)&&ve(()=>{ce&&Qe(ce,d,a),Z&&xt(a,null,d,"unmounted"),de&&(a.el=null)},h)},dn=a=>{const{type:d,el:h,anchor:y,transition:g}=a;if(d===xe){Vt(h,y);return}if(d===As){I(a);return}const m=()=>{i(h),g&&!g.persisted&&g.afterLeave&&g.afterLeave()};if(a.shapeFlag&1&&g&&!g.persisted){const{leave:k,delayLeave:x}=g,v=()=>k(h,m);x?x(a.el,m,v):v()}else m()},Vt=(a,d)=>{let h;for(;a!==d;)h=b(a),i(a),a=h;i(d)},Kn=(a,d,h)=>{const{bum:y,scope:g,job:m,subTree:k,um:x,m:v,a:_}=a;oo(v),oo(_),y&&_n(y),g.stop(),m&&(m.flags|=8,Oe(k,a,d,h)),x&&ve(x,d),ve(()=>{a.isUnmounted=!0},d)},ht=(a,d,h,y=!1,g=!1,m=0)=>{for(let k=m;k<a.length;k++)Oe(a[k],d,h,y,g)},at=a=>{if(a.shapeFlag&6)return at(a.component.subTree);if(a.shapeFlag&128)return a.suspense.next();const d=b(a.anchor||a.el),h=d&&d[el];return h?b(h):d};let Ht=!1;const pn=(a,d,h)=>{let y;a==null?d._vnode&&(Oe(d._vnode,null,null,!0),y=d._vnode.component):S(d._vnode||null,a,d,null,null,null,h),d._vnode=a,Ht||(Ht=!0,ki(y),Si(),Ht=!1)},gt={p:S,um:Oe,m:Fe,r:dn,mt:ae,mc:P,pc:K,pbc:j,n:at,o:e};return{render:pn,hydrate:void 0,createApp:Sl(pn)}}function Es({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function kt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Bl(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function so(e,t,n=!1){const s=e.children,i=t.children;if(R(s)&&R(i))for(let o=0;o<s.length;o++){const r=s[o];let l=i[o];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=i[o]=rt(i[o]),l.el=r.el),!n&&l.patchFlag!==-2&&so(r,l)),l.type===jn&&(l.patchFlag===-1&&(l=i[o]=rt(l)),l.el=r.el),l.type===Xe&&!l.el&&(l.el=r.el)}}function Ul(e){const t=e.slice(),n=[0];let s,i,o,r,l;const c=e.length;for(s=0;s<c;s++){const u=e[s];if(u!==0){if(i=n[n.length-1],e[i]<u){t[s]=i,n.push(s);continue}for(o=0,r=n.length-1;o<r;)l=o+r>>1,e[n[l]]<u?o=l+1:r=l;u<e[n[o]]&&(o>0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,r=n[o-1];o-- >0;)n[o]=r,r=t[r];return n}function io(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:io(t)}function oo(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function ro(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?ro(t.subTree):null}const lo=e=>e.__isSuspense;let Fs=0;const Vl={name:"Suspense",__isSuspense:!0,process(e,t,n,s,i,o,r,l,c,u){if(e==null)Hl(t,n,s,i,o,r,l,c,u);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}ql(e,t,n,s,i,r,l,c,u)}},hydrate:zl,normalize:Kl};function on(e,t){const n=e.props&&e.props[t];B(n)&&n()}function Hl(e,t,n,s,i,o,r,l,c){const{p:u,o:{createElement:f}}=c,p=f("div"),b=e.suspense=co(e,i,s,t,p,n,o,r,l,c);u(null,b.pendingBranch=e.ssContent,p,null,s,b,o,r),b.deps>0?(on(e,"onPending"),on(e,"onFallback"),u(null,e.ssFallback,t,n,s,null,o,r),Nt(b,e.ssFallback)):b.resolve(!1,!0)}function ql(e,t,n,s,i,o,r,l,{p:c,um:u,o:{createElement:f}}){const p=t.suspense=e.suspense;p.vnode=t,t.el=e.el;const b=t.ssContent,w=t.ssFallback,{activeBranch:E,pendingBranch:S,isInFallback:z,isHydrating:U}=p;if(S)p.pendingBranch=b,dt(S,b)?(c(S,b,p.hiddenContainer,null,i,p,o,r,l),p.deps<=0?p.resolve():z&&(U||(c(E,w,n,s,i,null,o,r,l),Nt(p,w)))):(p.pendingId=Fs++,U?(p.isHydrating=!1,p.activeBranch=S):u(S,i,p),p.deps=0,p.effects.length=0,p.hiddenContainer=f("div"),z?(c(null,b,p.hiddenContainer,null,i,p,o,r,l),p.deps<=0?p.resolve():(c(E,w,n,s,i,null,o,r,l),Nt(p,w))):E&&dt(E,b)?(c(E,b,n,s,i,p,o,r,l),p.resolve(!0)):(c(null,b,p.hiddenContainer,null,i,p,o,r,l),p.deps<=0&&p.resolve()));else if(E&&dt(E,b))c(E,b,n,s,i,p,o,r,l),Nt(p,b);else if(on(t,"onPending"),p.pendingBranch=b,b.shapeFlag&512?p.pendingId=b.component.suspenseId:p.pendingId=Fs++,c(null,b,p.hiddenContainer,null,i,p,o,r,l),p.deps<=0)p.resolve();else{const{timeout:O,pendingId:H}=p;O>0?setTimeout(()=>{p.pendingId===H&&p.fallback(w)},O):O===0&&p.fallback(w)}}function co(e,t,n,s,i,o,r,l,c,u,f=!1){const{p,m:b,um:w,n:E,o:{parentNode:S,remove:z}}=u;let U;const O=Yl(e);O&&t&&t.pendingBranch&&(U=t.pendingId,t.deps++);const H=e.props?Xn(e.props.timeout):void 0,I=o,T={vnode:e,parent:t,parentComponent:n,namespace:r,container:s,hiddenContainer:i,deps:0,pendingId:Fs++,timeout:typeof H=="number"?H:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!f,isHydrating:f,isUnmounted:!1,effects:[],resolve(D=!1,Y=!1){const{vnode:P,activeBranch:F,pendingBranch:j,pendingId:Q,effects:q,parentComponent:se,container:ae,isInFallback:be}=T;let G=!1;T.isHydrating?T.isHydrating=!1:D||(G=F&&j.transition&&j.transition.mode==="out-in",G&&(F.transition.afterLeave=()=>{Q===T.pendingId&&(b(j,ae,o===I?E(F):o,0),ms(q),be&&P.ssFallback&&(P.ssFallback.el=null))}),F&&!T.isFallbackMountPending&&(S(F.el)===ae&&(o=E(F)),w(F,se,T,!0),!G&&be&&P.ssFallback&&ve(()=>P.ssFallback.el=null,T)),G||b(j,ae,o,0)),T.isFallbackMountPending=!1,Nt(T,j),T.pendingBranch=null,T.isInFallback=!1;let $=T.parent,K=!1;for(;$;){if($.pendingBranch){$.effects.push(...q),K=!0;break}$=$.parent}!K&&!G&&ms(q),T.effects=[],O&&t&&t.pendingBranch&&U===t.pendingId&&(t.deps--,t.deps===0&&!Y&&t.resolve()),on(P,"onResolve")},fallback(D){if(!T.pendingBranch)return;const{vnode:Y,activeBranch:P,parentComponent:F,container:j,namespace:Q}=T;on(Y,"onFallback");const q=E(P),se=()=>{T.isFallbackMountPending=!1,T.isInFallback&&(p(null,D,j,q,F,null,Q,l,c),Nt(T,D))},ae=D.transition&&D.transition.mode==="out-in";ae&&(T.isFallbackMountPending=!0,P.transition.afterLeave=se),T.isInFallback=!0,w(P,F,null,!0),ae||se()},move(D,Y,P){T.activeBranch&&b(T.activeBranch,D,Y,P),T.container=D},next(){return T.activeBranch&&E(T.activeBranch)},registerDep(D,Y,P){const F=!!T.pendingBranch;F&&T.deps++;const j=D.vnode.el;D.asyncDep.catch(Q=>{Qt(Q,D,0)}).then(Q=>{if(D.isUnmounted||T.isUnmounted||T.pendingId!==D.suspenseId)return;D.asyncResolved=!0;const{vnode:q}=D;Ns(D,Q),j&&(q.el=j);const se=!j&&D.subTree.el;Y(D,q,S(j||D.subTree.el),j?null:E(D.subTree),T,r,P),se&&(q.placeholder=null,z(se)),Cs(D,q.el),F&&--T.deps===0&&T.resolve()})},unmount(D,Y){T.isUnmounted=!0,T.activeBranch&&w(T.activeBranch,n,D,Y),T.pendingBranch&&w(T.pendingBranch,n,D,Y)}};return T}function zl(e,t,n,s,i,o,r,l,c){const u=t.suspense=co(t,s,n,e.parentNode,document.createElement("div"),null,i,o,r,l,!0),f=c(e,u.pendingBranch=t.ssContent,n,u,o,r);return u.deps===0&&u.resolve(!1,!0),f}function Kl(e){const{shapeFlag:t,children:n}=e,s=t&32;e.ssContent=ao(s?n.default:n),e.ssFallback=s?ao(n.fallback):Le(Xe)}function ao(e){let t;if(B(e)){const n=$t&&e._c;n&&(e._d=!1,V()),e=e(),n&&(e._d=!0,t=Ie,uo())}return R(e)&&(e=Il(e)),e=Ve(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Wl(e,t){t&&t.pendingBranch?R(e)?t.effects.push(...e):t.effects.push(e):ms(e)}function Nt(e,t){e.activeBranch=t;const{vnode:n,parentComponent:s}=e;let i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,s&&s.subTree===n&&(s.vnode.el=i,Cs(s,i))}function Yl(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const xe=Symbol.for("v-fgt"),jn=Symbol.for("v-txt"),Xe=Symbol.for("v-cmt"),As=Symbol.for("v-stc"),rn=[];let Ie=null;function V(e=!1){rn.push(Ie=e?null:[])}function uo(){rn.pop(),Ie=rn[rn.length-1]||null}let $t=1;function fo(e,t=!1){$t+=e,e<0&&Ie&&t&&(Ie.hasOnce=!0)}function po(e){return e.dynamicChildren=$t>0?Ie||Tt:null,uo(),$t>0&&Ie&&Ie.push(e),e}function ie(e,t,n,s,i,o){return po(ge(e,t,n,s,i,o,!0))}function we(e,t,n,s,i){return po(Le(e,t,n,s,i,!0))}function Os(e){return e?e.__v_isVNode===!0:!1}function dt(e,t){return e.type===t.type&&e.key===t.key}const ho=({key:e})=>e??null,Ln=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?re(e)||le(e)||B(e)?{i:je,r:e,k:t,f:!!n}:e:null);function ge(e,t=null,n=null,s=0,i=null,o=e===xe?0:1,r=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ho(t),ref:t&&Ln(t),scopeId:Ti,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:je};return l?(Rs(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=re(n)?8:16),$t>0&&!r&&Ie&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&Ie.push(c),c}const Le=Gl;function Gl(e,t=null,n=null,s=0,i=null,o=!1){if((!e||e===gl)&&(e=Xe),Os(e)){const l=jt(e,t,!0);return n&&Rs(l,n),$t>0&&!o&&Ie&&(l.shapeFlag&6?Ie[Ie.indexOf(e)]=l:Ie.push(l)),l.patchFlag=-2,l}if(lc(e)&&(e=e.__vccOpts),t){t=go(t);let{class:l,style:c}=t;l&&!re(l)&&(t.class=Ne(l)),ne(c)&&(ps(c)&&!R(c)&&(c=ue({},c)),t.style=xn(c))}const r=re(e)?1:lo(e)?128:tl(e)?64:ne(e)?4:B(e)?2:0;return ge(e,t,n,s,i,r,o,!0)}function go(e){return e?ps(e)||Ji(e)?ue({},e):e:null}function jt(e,t,n=!1,s=!1){const{props:i,ref:o,patchFlag:r,children:l,transition:c}=e,u=t?Jl(i||{},t):i,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&ho(u),ref:t&&t.ref?n&&o?R(o)?o.concat(Ln(t)):[o,Ln(t)]:Ln(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==xe?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&jt(e.ssContent),ssFallback:e.ssFallback&&jt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&ys(f,c.clone(f)),f}function Ms(e=" ",t=0){return Le(jn,null,e,t)}function fe(e="",t=!1){return t?(V(),we(Xe,null,e)):Le(Xe,null,e)}function Ve(e){return e==null||typeof e=="boolean"?Le(Xe):R(e)?Le(xe,null,e.slice()):Os(e)?rt(e):Le(jn,null,String(e))}function rt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:jt(e)}function Rs(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(R(t))n=16;else if(typeof t=="object")if(s&65){const i=t.default;i&&(i._c&&(i._d=!1),Rs(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!Ji(t)?t._ctx=je:i===3&&je&&(je.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else B(t)?(t={default:t,_ctx:je},n=32):(t=String(t),s&64?(n=16,t=[Ms(t)]):n=8);e.children=t,e.shapeFlag|=n}function Jl(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const i in s)if(i==="class")t.class!==s.class&&(t.class=Ne([t.class,s.class]));else if(i==="style")t.style=xn([t.style,s.style]);else if(hn(i)){const o=t[i],r=s[i];r&&o!==r&&!(R(o)&&o.includes(r))?t[i]=o?[].concat(o,r):r:r==null&&o==null&&!gn(i)&&(t[i]=r)}else i!==""&&(t[i]=s[i])}return t}function Qe(e,t,n,s=null){Ge(e,t,7,[n,s])}const Xl=Hi();let Ql=0;function Zl(e,t,n){const s=e.type,i=(t?t.appContext:e.appContext)||Xl,o={uid:Ql++,vnode:e,type:s,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new br(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Qi(s,i),emitsOptions:qi(s,i),emit:null,emitted:null,propsDefaults:te,inheritAttrs:s.inheritAttrs,ctx:te,data:te,props:te,attrs:te,slots:te,refs:te,setupState:te,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=Tl.bind(null,o),e.ce&&e.ce(o),o}let ke=null;const Dn=()=>ke||je;let Bn,Lt;{const e=vn(),t=(n,s)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(s),o=>{i.length>1?i.forEach(r=>r(o)):i[0](o)}};Bn=t("__VUE_INSTANCE_SETTERS__",n=>ke=n),Lt=t("__VUE_SSR_SETTERS__",n=>Bt=n)}const Dt=e=>{const t=ke;return Bn(e),e.scope.on(),()=>{e.scope.off(),Bn(t)}},Un=()=>{ke&&ke.scope.off(),Bn(null)};function bo(e){return e.vnode.shapeFlag&4}let Bt=!1;function ec(e,t=!1,n=!1){t&&Lt(t);const{props:s,children:i}=e.vnode,o=bo(e);Ol(e,s,o,t),$l(e,i,n||t);const r=o?tc(e,t):void 0;return t&&Lt(!1),r}function tc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,bl);const{setup:s}=n;if(s){Ke();const i=e.setupContext=s.length>1?sc(e):null,o=Dt(e),r=At(s,e,0,[e.props,i]),l=Yn(r);if(We(),o(),(l||e.sp)&&!tn(e)&&Ai(e),l){if(r.then(Un,Un),t)return r.then(c=>{Ns(e,c)}).catch(c=>{Qt(c,e,0)});e.asyncDep=r}else Ns(e,r)}else mo(e)}function Ns(e,t,n){B(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ne(t)&&(e.setupState=yi(t)),mo(e)}function mo(e,t,n){const s=e.type;e.render||(e.render=s.render||He);{const i=Dt(e);Ke();try{_l(e)}finally{We(),i()}}}const nc={get(e,t){return he(e,"get",""),e[t]}};function sc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,nc),slots:e.slots,emit:e.emit,expose:t}}function Vn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(yi(jr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in nn)return nn[n](e)},has(t,n){return n in t||n in nn}})):e.proxy}const ic=/(?:^|[-_])\w/g,oc=e=>e.replace(ic,t=>t.toUpperCase()).replace(/[-_]/g,"");function rc(e,t=!0){return B(e)?e.displayName||e.name:e.name||t&&e.__name}function _o(e,t,n=!1){let s=rc(t);if(!s&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(s=i[1])}if(!s&&e){const i=o=>{for(const r in o)if(o[r]===t)return r};s=i(e.components)||e.parent&&i(e.parent.type.components)||i(e.appContext.components)}return s?oc(s):n?"App":"Anonymous"}function lc(e){return B(e)&&"__vccOpts"in e}const Ee=(e,t)=>Vr(e,t,Bt),cc="3.5.31";/**
* @vue/runtime-dom v3.5.31
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let $s;const yo=typeof window<"u"&&window.trustedTypes;if(yo)try{$s=yo.createPolicy("vue",{createHTML:e=>e})}catch{}const vo=$s?e=>$s.createHTML(e):e=>e,ac="http://www.w3.org/2000/svg",uc="http://www.w3.org/1998/Math/MathML",lt=typeof document<"u"?document:null,xo=lt&&lt.createElement("template"),fc={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 i=t==="svg"?lt.createElementNS(ac,e):t==="mathml"?lt.createElementNS(uc,e):n?lt.createElement(e,{is:n}):lt.createElement(e);return e==="select"&&s&&s.multiple!=null&&i.setAttribute("multiple",s.multiple),i},createText:e=>lt.createTextNode(e),createComment:e=>lt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>lt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,i,o){const r=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{xo.innerHTML=vo(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=xo.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},dc=Symbol("_vtc");function pc(e,t,n){const s=e[dc];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Hn=Symbol("_vod"),wo=Symbol("_vsh"),hc={name:"show",beforeMount(e,{value:t},{transition:n}){e[Hn]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):ln(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),ln(e,!0),s.enter(e)):s.leave(e,()=>{ln(e,!1)}):ln(e,t))},beforeUnmount(e,{value:t}){ln(e,t)}};function ln(e,t){e.style.display=t?e[Hn]:"none",e[wo]=!t}const gc=Symbol(""),bc=/(?:^|;)\s*display\s*:/;function mc(e,t,n){const s=e.style,i=re(n);let o=!1;if(n&&!i){if(t)if(re(t))for(const r of t.split(";")){const l=r.slice(0,r.indexOf(":")).trim();n[l]==null&&qn(s,l,"")}else for(const r in t)n[r]==null&&qn(s,r,"");for(const r in n)r==="display"&&(o=!0),qn(s,r,n[r])}else if(i){if(t!==n){const r=s[gc];r&&(n+=";"+r),s.cssText=n,o=bc.test(n)}}else t&&e.removeAttribute("style");Hn in e&&(e[Hn]=o?s.display:"",e[wo]&&(s.display="none"))}const ko=/\s*!important$/;function qn(e,t,n){if(R(n))n.forEach(s=>qn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=_c(e,t);ko.test(n)?e.setProperty(Re(s),n.replace(ko,""),"important"):e[s]=n}}const So=["Webkit","Moz","ms"],js={};function _c(e,t){const n=js[t];if(n)return n;let s=Ce(t);if(s!=="filter"&&s in e)return js[t]=s;s=Ys(s);for(let i=0;i<So.length;i++){const o=So[i]+s;if(o in e)return js[t]=o}return t}const Co="http://www.w3.org/1999/xlink";function To(e,t,n,s,i,o=hr(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Co,t.slice(6,t.length)):e.setAttributeNS(Co,t,n):n==null||o&&!Xs(n)?e.removeAttribute(t):e.setAttribute(t,o?"":qe(n)?String(n):n)}function Po(e,t,n,s,i){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?vo(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const l=o==="OPTION"?e.getAttribute("value")||"":e.value,c=n==null?e.type==="checkbox"?"on":"":String(n);(l!==c||!("_value"in e))&&(e.value=c),n==null&&e.removeAttribute(t),e._value=n;return}let r=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=Xs(n):n==null&&l==="string"?(n="",r=!0):l==="number"&&(n=0,r=!0)}try{e[t]=n}catch{}r&&e.removeAttribute(i||t)}function ct(e,t,n,s){e.addEventListener(t,n,s)}function yc(e,t,n,s){e.removeEventListener(t,n,s)}const Io=Symbol("_vei");function vc(e,t,n,s,i=null){const o=e[Io]||(e[Io]={}),r=o[t];if(s&&r)r.value=s;else{const[l,c]=xc(t);if(s){const u=o[t]=Sc(s,i);ct(e,l,u,c)}else r&&(yc(e,l,r,c),o[t]=void 0)}}const Eo=/(?:Once|Passive|Capture)$/;function xc(e){let t;if(Eo.test(e)){t={};let s;for(;s=e.match(Eo);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Re(e.slice(2)),t]}let Ls=0;const wc=Promise.resolve(),kc=()=>Ls||(wc.then(()=>Ls=0),Ls=Date.now());function Sc(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Ge(Cc(s,n.value),t,5,[s])};return n.value=e,n.attached=kc(),n}function Cc(e,t){if(R(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>i=>!i._stopped&&s&&s(i))}else return t}const Fo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Tc=(e,t,n,s,i,o)=>{const r=i==="svg";t==="class"?pc(e,s,r):t==="style"?mc(e,n,s):hn(t)?gn(t)||vc(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Pc(e,t,s,r))?(Po(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&To(e,t,s,r,o,t!=="value")):e._isVueCE&&(Ic(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!re(s)))?Po(e,Ce(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),To(e,t,s,r))};function Pc(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Fo(t)&&B(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Fo(t)&&re(n)?!1:t in e}function Ic(e,t){const n=e._def.props;if(!n)return!1;const s=Ce(t);return Array.isArray(n)?n.some(i=>Ce(i)===s):Object.keys(n).some(i=>Ce(i)===s)}const Ao={};function Ds(e,t,n){let s=Pe(e,t);bn(s)&&(s=ue({},s,t));class i extends Bs{constructor(r){super(s,r,n)}}return i.def=s,i}const Ec=typeof HTMLElement<"u"?HTMLElement:class{};class Bs extends Ec{constructor(t,n={},s=Uo){super(),this._def=t,this._props=n,this._createApp=s,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&s!==Uo?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(ue({},t.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.assignedSlot||t.parentNode||t.host);)if(t instanceof Bs){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,gs(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(t){for(const n of t)this._setAttr(n.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let s=0;s<this.attributes.length;s++)this._setAttr(this.attributes[s].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const t=(s,i=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:o,styles:r}=s;let l;if(o&&!R(o))for(const c in o){const u=o[c];(u===Number||u&&u.type===Number)&&(c in this._props&&(this._props[c]=Xn(this._props[c])),(l||(l=Object.create(null)))[Ce(c)]=!0)}this._numberProps=l,this._resolveProps(s),this.shadowRoot&&this._applyStyles(r),this._mount(s)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(s=>{s.configureApp=this._def.configureApp,t(this._def=s,!0)}):t(this._def)}_mount(t){this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(n)for(const s in n)X(this,s)||Object.defineProperty(this,s,{get:()=>N(n[s])})}_resolveProps(t){const{props:n}=t,s=R(n)?n:Object.keys(n||{});for(const i of Object.keys(this))i[0]!=="_"&&s.includes(i)&&this._setProp(i,this[i]);for(const i of s.map(Ce))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(o){this._setProp(i,o,!0,!this._patching)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const n=this.hasAttribute(t);let s=n?this.getAttribute(t):Ao;const i=Ce(t);n&&this._numberProps&&this._numberProps[i]&&(s=Xn(s)),this._setProp(i,s,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,n,s=!0,i=!1){if(n!==this._props[t]&&(this._dirty=!0,n===Ao?delete this._props[t]:(this._props[t]=n,t==="key"&&this._app&&(this._app._ceVNode.key=n)),i&&this._instance&&this._update(),s)){const o=this._ob;o&&(this._processMutations(o.takeRecords()),o.disconnect()),n===!0?this.setAttribute(Re(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Re(t),n+""):n||this.removeAttribute(Re(t)),o&&o.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),Nc(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=Le(this._def,ue(t,this._props));return this._instance||(n.ce=s=>{this._instance=s,s.ce=this,s.isCE=!0;const i=(o,r)=>{this.dispatchEvent(new CustomEvent(o,bn(r[0])?ue({detail:r},r[0]):{detail:r}))};s.emit=(o,...r)=>{i(o,r),Re(o)!==o&&i(Re(o),r)},this._setParent()}),n}_applyStyles(t,n,s){if(!t)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const i=this._nonce,o=this.shadowRoot,r=s?this._getStyleAnchor(s)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(o);let l=null;for(let c=t.length-1;c>=0;c--){const u=document.createElement("style");i&&u.setAttribute("nonce",i),u.textContent=t[c],o.insertBefore(u,l||r),l=u,c===0&&(s||this._styleAnchors.set(this._def,u),n&&this._styleAnchors.set(n,u))}}_getStyleAnchor(t){if(!t)return null;const n=this._styleAnchors.get(t);return n&&n.parentNode===this.shadowRoot?n:(n&&this._styleAnchors.delete(t),null)}_getRootStyleInsertionAnchor(t){for(let n=0;n<t.childNodes.length;n++){const s=t.childNodes[n];if(!(s instanceof HTMLStyleElement))return s}return null}_parseSlots(){const t=this._slots={};let n;for(;n=this.firstChild;){const s=n.nodeType===1&&n.getAttribute("slot")||"default";(t[s]||(t[s]=[])).push(n),this.removeChild(n)}}_renderSlots(){const t=this._getSlots(),n=this._instance.type.__scopeId;for(let s=0;s<t.length;s++){const i=t[s],o=i.getAttribute("name")||"default",r=this._slots[o],l=i.parentNode;if(r)for(const c of r){if(n&&c.nodeType===1){const u=n+"-s",f=document.createTreeWalker(c,1);c.setAttribute(u,"");let p;for(;p=f.nextNode();)p.setAttribute(u,"")}l.insertBefore(c,i)}else for(;i.firstChild;)l.insertBefore(i.firstChild,i);l.removeChild(i)}}_getSlots(){const t=[this];this._teleportTargets&&t.push(...this._teleportTargets);const n=new Set;for(const s of t){const i=s.querySelectorAll("slot");for(let o=0;o<i.length;o++)n.add(i[o])}return Array.from(n)}_injectChildStyle(t,n){this._applyStyles(t.styles,t,n)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return this._def.shadowRoot!==!1}_removeChildStyle(t){}}const pt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return R(t)?n=>_n(t,n):t};function Fc(e){e.target.composing=!0}function Oo(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const De=Symbol("_assign");function Mo(e,t,n){return t&&(e=e.trim()),n&&(e=yn(e)),e}const cn={created(e,{modifiers:{lazy:t,trim:n,number:s}},i){e[De]=pt(i);const o=s||i.props&&i.props.type==="number";ct(e,t?"change":"input",r=>{r.target.composing||e[De](Mo(e.value,n,o))}),(n||o)&&ct(e,"change",()=>{e.value=Mo(e.value,n,o)}),t||(ct(e,"compositionstart",Fc),ct(e,"compositionend",Oo),ct(e,"change",Oo))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:i,number:o}},r){if(e[De]=pt(r),e.composing)return;const l=(o||e.type==="number")&&!/^0\d/.test(e.value)?yn(e.value):e.value,c=t??"";if(l===c)return;const u=e.getRootNode();(u instanceof Document||u instanceof ShadowRoot)&&u.activeElement===e&&e.type!=="range"&&(s&&t===n||i&&e.value.trim()===c)||(e.value=c)}},Ac={deep:!0,created(e,t,n){e[De]=pt(n),ct(e,"change",()=>{const s=e._modelValue,i=Ut(e),o=e.checked,r=e[De];if(R(s)){const l=Qn(s,i),c=l!==-1;if(o&&!c)r(s.concat(i));else if(!o&&c){const u=[...s];u.splice(l,1),r(u)}}else if(It(s)){const l=new Set(s);o?l.add(i):l.delete(i),r(l)}else r(Lo(e,o))})},mounted:Ro,beforeUpdate(e,t,n){e[De]=pt(n),Ro(e,t,n)}};function Ro(e,{value:t,oldValue:n},s){e._modelValue=t;let i;if(R(t))i=Qn(t,s.props.value)>-1;else if(It(t))i=t.has(s.props.value);else{if(t===n)return;i=ut(t,Lo(e,!0))}e.checked!==i&&(e.checked=i)}const No={created(e,{value:t},n){e.checked=ut(t,n.props.value),e[De]=pt(n),ct(e,"change",()=>{e[De](Ut(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e[De]=pt(s),t!==n&&(e.checked=ut(t,s.props.value))}},$o={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const i=It(t);ct(e,"change",()=>{const o=Array.prototype.filter.call(e.options,r=>r.selected).map(r=>n?yn(Ut(r)):Ut(r));e[De](e.multiple?i?new Set(o):o:o[0]),e._assigning=!0,gs(()=>{e._assigning=!1})}),e[De]=pt(s)},mounted(e,{value:t}){jo(e,t)},beforeUpdate(e,t,n){e[De]=pt(n)},updated(e,{value:t}){e._assigning||jo(e,t)}};function jo(e,t){const n=e.multiple,s=R(t);if(!(n&&!s&&!It(t))){for(let i=0,o=e.options.length;i<o;i++){const r=e.options[i],l=Ut(r);if(n)if(s){const c=typeof l;c==="string"||c==="number"?r.selected=t.some(u=>String(u)===String(l)):r.selected=Qn(t,l)>-1}else r.selected=t.has(l);else if(ut(Ut(r),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ut(e){return"_value"in e?e._value:e.value}function Lo(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Oc={created(e,t,n){zn(e,t,n,null,"created")},mounted(e,t,n){zn(e,t,n,null,"mounted")},beforeUpdate(e,t,n,s){zn(e,t,n,s,"beforeUpdate")},updated(e,t,n,s){zn(e,t,n,s,"updated")}};function Mc(e,t){switch(e){case"SELECT":return $o;case"TEXTAREA":return cn;default:switch(t){case"checkbox":return Ac;case"radio":return No;default:return cn}}}function zn(e,t,n,s,i){const r=Mc(e.tagName,n.props&&n.props.type)[i];r&&r(e,t,n,s)}const Rc=ue({patchProp:Tc},fc);let Do;function Bo(){return Do||(Do=Ll(Rc))}const Nc=((...e)=>{Bo().render(...e)}),Uo=((...e)=>{const t=Bo().createApp(...e),{mount:n}=t;return t.mount=s=>{const i=jc(s);if(!i)return;const o=t._component;!B(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const r=n(i,!1,$c(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),r},t});function $c(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function jc(e){return re(e)?document.querySelector(e):e}const Lc=["src"],Vo=Pe({__name:"Image",props:{data:{type:null}},setup(e){return(t,n)=>(V(),ie("img",{src:e.data.image,alt:"",class:"w-full"},null,8,Lc))}}),Dc=Object.freeze(Object.defineProperty({__proto__:null,default:Vo},Symbol.toStringTag,{value:"Module"})),Bc=["src"],Ho=Pe({__name:"Video",props:{data:{type:null}},setup(e){return(t,n)=>(V(),ie("iframe",{src:`https://www.youtube.com/embed/${e.data.sourceSystemId}`,frameborder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowfullscreen:"",class:"w-full aspect-video"},null,8,Bc))}}),Uc=Object.freeze(Object.defineProperty({__proto__:null,default:Ho},Symbol.toStringTag,{value:"Module"})),Us=Pe({__name:"index",props:{data:{type:null}},setup(e){return(t,n)=>{const s=Vo,i=Ho;return V(),ie(xe,null,[e.data.contentType==="IMAGE"?(V(),we(s,{key:0,data:e.data},null,8,["data"])):fe("",!0),e.data.contentType==="VIDEO"?(V(),we(i,{key:1,data:e.data},null,8,["data"])):fe("",!0)],64)}}}),Vc=Object.freeze(Object.defineProperty({__proto__:null,default:Us},Symbol.toStringTag,{value:"Module"})),qo=Pe({__name:"Time",props:{field:{type:null}},emits:["input"],setup(e,{emit:t}){const n=e,s=t,i=Ee({get(){var o;return(o=n.field.value)==null?void 0:o.replace(":00Z","")},set(o){s("input",o?`${o}:00Z`:void 0)}});return(o,r)=>vt((V(),ie("input",{"onUpdate:modelValue":r[0]||(r[0]=l=>le(i)?i.value=l:null),type:"time",class:Ne([{"border-error":e.field.errorMessage},"input"])},null,2)),[[cn,N(i)]])}}),Hc=Object.freeze(Object.defineProperty({__proto__:null,default:qo},Symbol.toStringTag,{value:"Module"})),zo=Pe({__name:"Date",props:{field:{type:null}},emits:["input"],setup(e,{emit:t}){const n=e,s=t,i=Ee({get(){return n.field.value},set(o){s("input",o)}});return(o,r)=>vt((V(),ie("input",{"onUpdate:modelValue":r[0]||(r[0]=l=>le(i)?i.value=l:null),type:"date",class:Ne([{"border-error":e.field.errorMessage},"input"])},null,2)),[[cn,N(i)]])}}),qc=Object.freeze(Object.defineProperty({__proto__:null,default:zo},Symbol.toStringTag,{value:"Module"})),Ko=Pe({__name:"Textarea",props:{field:{type:null}},emits:["input"],setup(e,{emit:t}){const n=e,s=t,i=Ee({get(){return n.field.value},set(o){s("input",o)}});return(o,r)=>vt((V(),ie("textarea",{"onUpdate:modelValue":r[0]||(r[0]=l=>le(i)?i.value=l:null),dir:"auto",rows:"4",class:Ne([{"border-error":e.field.errorMessage},"input"])},null,2)),[[cn,N(i)]])}}),zc=Object.freeze(Object.defineProperty({__proto__:null,default:Ko},Symbol.toStringTag,{value:"Module"})),Kc=["type"],Wo=Pe({__name:"Text",props:{field:{type:null}},emits:["input"],setup(e,{emit:t}){const n=e,s=t,i=Ee({get(){return n.field.value},set(r){s("input",r||null)}}),o=Ee(()=>{switch(n.field.metadata.validation.type){case"email":case"number":return n.field.metadata.validation.type;case"phone":return"tel";default:return n.field.subtype==="email"?"email":"text"}});return(r,l)=>vt((V(),ie("input",{"onUpdate:modelValue":l[0]||(l[0]=c=>le(i)?i.value=c:null),dir:"auto",type:N(o),class:Ne([{"border-error":e.field.errorMessage},"input"])},null,10,Kc)),[[Oc,N(i)]])}}),Wc=Object.freeze(Object.defineProperty({__proto__:null,default:Wo},Symbol.toStringTag,{value:"Module"}));function Vs(e){return{options:Ee(()=>{var n,s;return(n=e.metadata.value)!=null&&n.options?e.metadata.value.options.map((i,o)=>({...i,value:i.id,id:`${e.id}-${o}-${i.id}`})):((s=e.metadata.value)==null?void 0:s.map((i,o)=>({id:`${e.id}-${o}-${i}`,name:i,value:i})))||[]})}}const Yc={disabled:"",value:"null"},Gc=["value"],Yo=Pe({__name:"Select",props:{field:{type:null}},emits:["input"],setup(e,{emit:t}){const n=e,{options:s}=Vs(n.field),i=t,o=Ee({get(){return n.field.value},set(l){i("input",l)}}),r=wt("t");return(l,c)=>{var u;return vt((V(),ie("select",{"onUpdate:modelValue":c[0]||(c[0]=f=>le(o)?o.value=f:null),class:Ne([{"border-error":e.field.errorMessage},"input cursor-pointer"])},[ge("option",Yc,pe((u=N(r))==null?void 0:u("Choose an option")),1),(V(!0),ie(xe,null,Rn(N(s),f=>(V(),ie("option",{key:f.id,value:f.value},pe(f.name),9,Gc))),128))],2)),[[$o,N(o)]])}}}),Jc=Object.freeze(Object.defineProperty({__proto__:null,default:Yo},Symbol.toStringTag,{value:"Module"})),Xc=["id","value"],Qc=["for"],Go=Pe({__name:"Radio",props:{field:{type:null}},emits:["input"],setup(e,{emit:t}){const n=e,{options:s}=Vs(n.field),i=t,o=Ee({get(){return n.field.value},set(r){i("input",r)}});return(r,l)=>(V(!0),ie(xe,null,Rn(N(s),c=>(V(),ie("div",{key:c.id,class:"flex gap-2 items-center"},[vt(ge("input",{type:"radio",id:c.id,value:c.value,"onUpdate:modelValue":l[0]||(l[0]=u=>le(o)?o.value=u:null),class:Ne([{"accent-selected":N(o)===c.value,"appearance-none border-2 border-solid border-unselected rounded-full":N(o)!==c.value},"h-8 w-8 cursor-pointer bg-white"])},null,10,Xc),[[No,N(o)]]),ge("label",{for:c.id,class:"text-response text-response-font font-responseFont cursor-pointer"},pe(c.name),9,Qc)]))),128))}}),Zc=Object.freeze(Object.defineProperty({__proto__:null,default:Go},Symbol.toStringTag,{value:"Module"})),ea=["id","checked","onChange"],ta=["for"],Jo=Pe({__name:"Checkbox",props:{field:{type:null}},emits:["input"],setup(e,{emit:t}){const n=e,{options:s}=Vs(n.field),i=t,o=Ee({get(){return n.field.value||[]},set(l){i("input",l)}}),r=l=>{const c=structuredClone(J(o.value)),u=c.findIndex(f=>f===l);u>=0?c.splice(u,1):c.push(l),o.value=c};return(l,c)=>(V(!0),ie(xe,null,Rn(N(s),u=>(V(),ie("div",{key:u.id,class:"flex gap-2 items-center"},[ge("input",{type:"checkbox",id:u.id,checked:N(o).includes(u.value),class:Ne([{"accent-selected":N(o).includes(u.value),"appearance-none border-2 border-solid border-unselected rounded":!N(o).includes(u.value)},"h-8 w-8 cursor-pointer bg-white"]),onChange:f=>r(u.value)},null,42,ea),ge("label",{for:u.id,class:"text-response text-response-font font-responseFont cursor-pointer"},pe(u.name),9,ta)]))),128))}}),na=Object.freeze(Object.defineProperty({__proto__:null,default:Jo},Symbol.toStringTag,{value:"Module"})),sa={class:"flex flex-col gap-4"},ia={class:"text-question text-question-font font-questionLabelFont"},oa={key:0,class:"text-error"},ra={key:0,class:"text-caption text-caption-font font-captionFont whitespace-pre-wrap"},la=["href"],ca={key:8,class:"text-caption text-error font-captionFont"},Xo=Pe({__name:"Field",props:{field:{type:null}},emits:["input"],setup(e,{emit:t}){const n=e,s=Ee(()=>{var l;switch(n.field.type){case"client_preference":return((l=n.field.metadata.value)==null?void 0:l.type)||"select";case"choice":case"moment":return n.field.subtype||"select";case"account_detail":case"shorttext":return"text";case"longtext":return"textarea";default:return"text"}}),i=t,o=l=>{i("input",n.field.id,l)},r=wt("t");return(l,c)=>{var z,U,O;const u=Jo,f=Go,p=Yo,b=Wo,w=Ko,E=zo,S=qo;return V(),ie("div",sa,[ge("h3",ia,[Ms(pe((z=N(r))==null?void 0:z(e.field.label))+" ",1),(O=(U=e.field.metadata)==null?void 0:U.validation)!=null&&O.required?(V(),ie("span",oa," * ")):fe("",!0)]),e.field.description||e.field.linkText&&e.field.linkUrl?(V(),ie("p",ra,[Ms(pe(e.field.description)+" ",1),e.field.linkText&&e.field.linkUrl?(V(),ie("a",{key:0,href:e.field.linkUrl,target:"_blank",class:"text-link underline"},pe(e.field.linkText),9,la)):fe("",!0)])):fe("",!0),N(s)==="checkbox"?(V(),we(u,{key:1,field:e.field,onInput:o},null,8,["field"])):fe("",!0),N(s)==="radio"?(V(),we(f,{key:2,field:e.field,onInput:o},null,8,["field"])):fe("",!0),N(s)==="select"?(V(),we(p,{key:3,field:e.field,onInput:o},null,8,["field"])):fe("",!0),N(s)==="text"?(V(),we(b,{key:4,field:e.field,onInput:o},null,8,["field"])):fe("",!0),N(s)==="textarea"?(V(),we(w,{key:5,field:e.field,onInput:o},null,8,["field"])):fe("",!0),N(s)==="date"?(V(),we(E,{key:6,field:e.field,onInput:o},null,8,["field"])):fe("",!0),N(s)==="time"?(V(),we(S,{key:7,field:e.field,onInput:o},null,8,["field"])):fe("",!0),e.field.errorMessage?(V(),ie("p",ca,pe(e.field.errorMessage),1)):fe("",!0)])}}}),aa=Object.freeze(Object.defineProperty({__proto__:null,default:Xo},Symbol.toStringTag,{value:"Module"})),ua={class:"p-4"},fa={class:"text-title text-title-font font-titleFont"},da=["href"],Qo=Pe({__name:"Success",props:{success:{type:null}},setup(e){const t=Pn(null);vs(()=>{var s;(s=t.value)==null||s.scrollIntoView({behavior:"smooth",block:"center"})});const n=wt("t");return(s,i)=>{var r,l,c,u,f,p,b,w;const o=Us;return V(),ie("div",{ref_key:"successDiv",ref:t},[(r=e.success)!=null&&r.content?(V(),we(o,{key:0,data:(l=e.success)==null?void 0:l.content},null,8,["data"])):fe("",!0),ge("div",ua,[ge("p",fa,pe(((c=e.success)==null?void 0:c.paragraph)||((u=N(n))==null?void 0:u("Thank you. Your response has been submitted successfully."))),1),(f=e.success)!=null&&f.linkText&&((p=e.success)!=null&&p.linkUrl)?(V(),ie("a",{key:0,href:(b=e.success)==null?void 0:b.linkUrl,target:"_blank",class:"text-title text-link font-titleFont underline"},pe((w=e.success)==null?void 0:w.linkText),9,da)):fe("",!0)])],512)}}}),pa=Object.freeze(Object.defineProperty({__proto__:null,default:Qo},Symbol.toStringTag,{value:"Module"}));class an extends Error{}an.prototype.name="InvalidTokenError";function ha(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,n)=>{let s=n.charCodeAt(0).toString(16).toUpperCase();return s.length<2&&(s="0"+s),"%"+s}))}function ga(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return ha(t)}catch{return atob(t)}}function ba(e,t){if(typeof e!="string")throw new an("Invalid token specified: must be a string");t||(t={});const n=t.header===!0?0:1,s=e.split(".")[n];if(typeof s!="string")throw new an(`Invalid token specified: missing part #${n+1}`);let i;try{i=ga(s)}catch(o){throw new an(`Invalid token specified: invalid base64 for part #${n+1} (${o.message})`)}try{return JSON.parse(i)}catch(o){throw new an(`Invalid token specified: invalid json for part #${n+1} (${o.message})`)}}function Zo(e){var t,n;return(n=(t=document.cookie)==null?void 0:t.split(";").find(s=>s.trim().startsWith(`${e}=`)))==null?void 0:n.split("=")[1]}function ma(e,t,n,s=3600*24*365){document.cookie=`${e}=${t}; path=/; max-age=${s}; Secure${n?"; Domain="+n:""}`}async function Hs(e,t){const n=e==null?void 0:e.split(".").reduce((s,i)=>s==null?void 0:s[i],globalThis);if(typeof n=="function")return await n(t)}async function _a(e){var r;let t=e.consent&&e.deviceIdCookieName&&Zo(e.deviceIdCookieName)||"";const n=await Hs(e.deviceIdCallbackName,{props:e});typeof n=="string"&&(t=n),t||(t=crypto.randomUUID(),e.consent&&!e.deviceIdCallbackName&&ma(e.deviceIdCookieName,t,e.cookieDomain));let s;e.accessTokenCookieName&&(s=Zo(e.accessTokenCookieName));const i=await Hs(e.accessTokenCallbackName,{props:e});typeof i=="string"&&(s=i),e.accessToken&&(s=e.accessToken);let o;try{o=s?ba(s):void 0}catch(l){console.warn(l),s=void 0}return(r=o==null?void 0:o.authorities)!=null&&r.includes("ROLE_ANONYMOUS_*")&&(s=void 0,o=void 0),{deviceId:t,accessToken:s,decodedToken:o}}function ya(e,t,n,s){return{trackEvent:async()=>{try{const o=`https://ctr${e.stage?"-stage":""}.incrowdsports.${e.server==="standard"?"com":e.server}/v1/${e.clientId}/events`,r=new Date().toISOString(),l=[{eventId:crypto.randomUUID(),eventType:"REQUEST",createdTimestamp:r,sentTimestamp:r,deviceId:t,authId:n==null?void 0:n.sub,sourceSystem:"FORMS",sourceSystemId:e.id,campaignCodes:s,parentSourceSystem:e.parentSourceSystem,parentSourceSystemId:e.parentSourceSystemId}],c={method:"POST",body:JSON.stringify({events:l}),headers:{"Content-type":"application/json; charset=UTF-8","X-API-KEY":e.eventTrackingKey,"X-REALM":e.clientId.toLowerCase(),"X-APP-ID":"web"}};await fetch(o,c)}catch{}}}}const er=e=>`${e==="PILL"?100:e==="SMOOTH"?4:0}px`,un=async(e,t)=>{if(t)try{const n=new FontFace(e,`url(${t})`);await n.load(),document.fonts.add(n)}catch{}};function va(e,t){var n,s,i,o,r,l,c,u,f,p,b,w,E,S,z,U,O,H,I,T,D,Y,P,F,j,Q,q,se,ae,be,G,$,K,Ae,Ze,Fe,Oe,dn,Vt,Kn,ht,at,Ht,pn,gt,qs,a,d,h,y,g,m,k,x,v,_,M,C,A,L,W,Z,ee,ce,de,Se,Me,bt,St,me;(i=(s=(n=t.value)==null?void 0:n.style)==null?void 0:s.setProperty)==null||i.call(s,"--color-background-border",(e==null?void 0:e.backgroundBorderColor)||"black"),(l=(r=(o=t.value)==null?void 0:o.style)==null?void 0:r.setProperty)==null||l.call(r,"--color-background",(e==null?void 0:e.backgroundColor)||"white"),(f=(u=(c=t.value)==null?void 0:c.style)==null?void 0:u.setProperty)==null||f.call(u,"--radius-background",er(e==null?void 0:e.backgroundRadius)),(w=(b=(p=t.value)==null?void 0:p.style)==null?void 0:b.setProperty)==null||w.call(b,"--color-button-background",(e==null?void 0:e.buttonBackgroundColor)||"black"),(z=(S=(E=t.value)==null?void 0:E.style)==null?void 0:S.setProperty)==null||z.call(S,"--color-button-border",(e==null?void 0:e.buttonBorderColor)||"black"),(I=(O=(U=t.value)==null?void 0:U.style)==null?void 0:O.setProperty)==null||I.call(O,"--text-button",`${((H=e==null?void 0:e.buttonFont)==null?void 0:H.size)||16}px`),un("CortexFormButtonFont",(T=e==null?void 0:e.buttonFont)==null?void 0:T.url),(P=(Y=(D=t.value)==null?void 0:D.style)==null?void 0:Y.setProperty)==null||P.call(Y,"--color-button-font",(e==null?void 0:e.buttonFontColor)||"white"),(Q=(j=(F=t.value)==null?void 0:F.style)==null?void 0:j.setProperty)==null||Q.call(j,"--radius-button",er(e==null?void 0:e.buttonRadius)),(be=(se=(q=t.value)==null?void 0:q.style)==null?void 0:se.setProperty)==null||be.call(se,"--text-caption",`${((ae=e==null?void 0:e.captionFont)==null?void 0:ae.size)||16}px`),un("CortexFormCaptionFont",(G=e==null?void 0:e.captionFont)==null?void 0:G.url),(Ae=(K=($=t.value)==null?void 0:$.style)==null?void 0:K.setProperty)==null||Ae.call(K,"--color-caption-font",(e==null?void 0:e.captionFontColor)||"black"),(Oe=(Fe=(Ze=t.value)==null?void 0:Ze.style)==null?void 0:Fe.setProperty)==null||Oe.call(Fe,"--color-error",(e==null?void 0:e.errorColor)||"red"),(Kn=(Vt=(dn=t.value)==null?void 0:dn.style)==null?void 0:Vt.setProperty)==null||Kn.call(Vt,"--color-link",(e==null?void 0:e.linkFontColor)||"black"),(pn=(at=(ht=t.value)==null?void 0:ht.style)==null?void 0:at.setProperty)==null||pn.call(at,"--text-question",`${((Ht=e==null?void 0:e.questionLabelFont)==null?void 0:Ht.size)||16}px`),un("CortexFormQuestionLabelFont",(gt=e==null?void 0:e.questionLabelFont)==null?void 0:gt.url),(d=(a=(qs=t.value)==null?void 0:qs.style)==null?void 0:a.setProperty)==null||d.call(a,"--color-question-font",(e==null?void 0:e.questionLabelFontColor)||"black"),(m=(y=(h=t.value)==null?void 0:h.style)==null?void 0:y.setProperty)==null||m.call(y,"--text-response",`${((g=e==null?void 0:e.responseFont)==null?void 0:g.size)||16}px`),un("CortexFormResponseFont",(k=e==null?void 0:e.responseFont)==null?void 0:k.url),(_=(v=(x=t.value)==null?void 0:x.style)==null?void 0:v.setProperty)==null||_.call(v,"--color-response-font",(e==null?void 0:e.responseFontColor)||"black"),(A=(C=(M=t.value)==null?void 0:M.style)==null?void 0:C.setProperty)==null||A.call(C,"--color-selected",(e==null?void 0:e.selectedFieldColor)||"black"),(ee=(W=(L=t.value)==null?void 0:L.style)==null?void 0:W.setProperty)==null||ee.call(W,"--text-title",`${((Z=e==null?void 0:e.titleFont)==null?void 0:Z.size)||16}px`),un("CortexFormTitleFont",(ce=e==null?void 0:e.titleFont)==null?void 0:ce.url),(Me=(Se=(de=t.value)==null?void 0:de.style)==null?void 0:Se.setProperty)==null||Me.call(Se,"--color-title-font",(e==null?void 0:e.titleFontColor)||"black"),(me=(St=(bt=t.value)==null?void 0:bt.style)==null?void 0:St.setProperty)==null||me.call(St,"--color-unselected",(e==null?void 0:e.unselectedFieldColor)||"black")}function xa(e){const t={es:{"First name":"Nombres","Last name":"Apellidos",Email:"Correo electrónico","Choose an option":"Seleccione una opción",Submit:"Enviar","Required field":"Campo requerido","There is a problem with one or more of your responses. Please check and try again.":"Hay un problema con alguna de sus respuestas. Por favor, compruébelo e inténtelo nuevamente.","This field is required":"Este campo es requerido","Invalid email address":"Correo electrónico inválido","Please enter a valid response":"Ingrese una respuesta válida por favor","Thank you. Your response has been submitted successfully.":"Gracias. Su respuesta se ha enviado correctamente."},fr:{"First name":"Prénom","Last name":"Nom",Email:"Email","Choose an option":"Sélectionner une option",Submit:"Envoyer","Required field":"Champ obligatoire","There is a problem with one or more of your responses. Please check and try again.":"Il y a un problème avec une ou plusieurs des réponses. Veuillez vérifier votre saisie et réessayer.","This field is required":"Ce champ est obligatoire","Invalid email address":"Adresse e-mail incorrecte","Please enter a valid response":"Veuillez entrer une réponse valide","Thank you. Your response has been submitted successfully.":"Merci. Votre réponse a été soumise avec succès"},it:{"First name":"Nome","Last name":"Cognome",Email:"Email","Choose an option":"Selezionare un’opzione",Submit:"Inviare","Required field":"Campo obbligatorio","There is a problem with one or more of your responses. Please check and try again.":"C'è un problema con una o più delle tue risposte. Si prega di verificare e riprovare.","This field is required":"Il campo è obbligatorio","Invalid email address":"Indirizzo email non valido","Please enter a valid response":"Inserire una risposta valida","Thank you. Your response has been submitted successfully.":"Grazie. La tua risposta è stata inviata con successo"},ar:{"First name":"الاسم الأول","Last name":"اسم العائلة",Email:"البريد الإلكتروني","Choose an option":"اختر خيارًا",Submit:"إرسال","Required field":"حقل إجباري","There is a problem with one or more of your responses. Please check and try again.":"توجد مشكلة في واحد أو أكثر من ردودك. يرجى التحقق والمحاولة مرة أخرى.","This field is required":"هذا الحقل مطلوب","Invalid email address":"عنوان بريد إلكتروني غير صالح","Please enter a valid response":"الرجاء إدخال رد صالح","Thank you. Your response has been submitted successfully.":"شكرًا لك. تم إرسال ردك بنجاح."},sr:{"First name":"Ime","Last name":"Prezime",Email:"Email","Choose an option":"Izaberite opciju",Submit:"Pošalji","Required field":"Obavezno polje","There is a problem with one or more of your responses. Please check and try again.":"Postoji problem sa jednim ili više vaših odgovora. Molimo proverite i pokušajte ponovo.","This field is required":"Ovo polje je obavezno","Invalid email address":"Neispravna imejl adresa","Please enter a valid response":"Molimo unesite ispravan odgovor","Thank you. Your response has been submitted successfully.":"Hvala. Vaš odgovor je uspešno poslat."},lt:{"First name":"Vardas","Last name":"Pavardė",Email:"El. paštas","Choose an option":"Pasirinkite parinktį",Submit:"Pateikti","Required field":"Privalomas laukelis","There is a problem with one or more of your responses. Please check and try again.":"Iškilo problema su vienu ar keliais jūsų atsakymais. Patikrinkite ir bandykite dar kartą.","This field is required":"Šis laukas yra privalomas","Invalid email address":"Netinkamas el. pašto adresas","Please enter a valid response":"Įveskite tinkamą reikšmę","Thank you. Your response has been submitted successfully.":"Ačiū. Jūsų atsakymas sėkmingai pateiktas."},ru:{"First name":"Имя","Last name":"Фамилия",Email:"Email","Choose an option":"Выберите вариант",Submit:"Отправить","Required field":"Обязательное поле","There is a problem with one or more of your responses. Please check and try again.":"Возникла проблема с одним или несколькими вашими ответами. Пожалуйста, проверьте их и попробуйте еще раз.","This field is required":"Это поле обязательно для заполнения","Invalid email address":"Некорректный адрес эл. почты","Please enter a valid response":"Пожалуйста, введите корректное значение","Thank you. Your response has been submitted successfully.":"Спасибо. Ваш ответ был успешно отправлен."},tr:{"First name":"Ad","Last name":"Soyad",Email:"E-posta","Choose an option":"Bir seçenek belirleyin",Submit:"Gönder","Required field":"Zorunlu alan","There is a problem with one or more of your responses. Please check and try again.":"Yanıtlarınızdan birinde veya birkaçında bir sorun var. Lütfen kontrol edip tekrar deneyin.","This field is required":"Bu alan zorunludur","Invalid email address":"Geçersiz e-posta adresi","Please enter a valid response":"Lütfen geçerli bir yanıt girin","Thank you. Your response has been submitted successfully.":"Teşekkürler. Yanıtınız başarıyla gönderildi."},el:{"First name":"Όνομα","Last name":"Επώνυμο",Email:"Email","Choose an option":"Επιλέξτε μια επιλογή",Submit:"Υποβολή","Required field":"Υποχρεωτικό πεδίο","There is a problem with one or more of your responses. Please check and try again.":"Υπάρχει πρόβλημα με μία ή περισσότερες από τις απαντήσεις σας. Παρακαλούμε ελέγξτε και δοκιμάστε ξανά.","This field is required":"Αυτό το πεδίο είναι υποχρεωτικό","Invalid email address":"Μη έγκυρη διεύθυνση email","Please enter a valid response":"Παρακαλώ εισάγετε μια έγκυρη απάντηση","Thank you. Your response has been submitted successfully.":"Ευχαριστούμε. Η απάντησή σας υποβλήθηκε με επιτυχία."},de:{"First name":"Vorname","Last name":"Nachname",Email:"E-Mail","Choose an option":"Option auswählen",Submit:"Absenden","Required field":"Pflichtfeld","There is a problem with one or more of your responses. Please check and try again.":"Es gibt ein Problem mit einer oder mehreren Ihrer Eingaben. Bitte prüfen Sie diese und versuchen Sie es erneut.","This field is required":"Dieses Feld ist ein Pflichtfeld","Invalid email address":"Ungültige E-Mail-Adresse","Please enter a valid response":"Bitte geben Sie einen gültigen Wert ein","Thank you. Your response has been submitted successfully.":"Vielen Dank. Ihre Antwort wurde erfolgreich übermittelt."}};return{t:s=>{var o,r;const i=((o=e.value)==null?void 0:o.language)||"";return((r=t[i]||t[i.split("-")[0]])==null?void 0:r[s])||s}}}async function wa(e,t){var U,O,H,I,T,D,Y;const n=Pn();vs(()=>{var P,F;(P=n.value)!=null&&P.theme&&va((F=n.value)==null?void 0:F.theme,t)});const{deviceId:s,accessToken:i,decodedToken:o}=await _a(e),l=`https://${`forms${e.stage?"-stage":""}.cortextech.${e.server==="standard"?"io":e.server}`}/v1${e.preview?"/admin":""}/${e.clientId}/forms/${e.id}${e.preview?"/preview":""}`,{t:c}=xa(n),u=Pn([]),f=Ee(()=>{var P;return(P=u.value)==null?void 0:P.find(F=>{var j,Q;return(Q=(j=F.metadata)==null?void 0:j.validation)==null?void 0:Q.required})}),p=P=>P.map(F=>{var se,ae,be;const j=(ae=(se=F.metadata)==null?void 0:se.conditions)==null?void 0:ae[0],q=!(((be=j==null?void 0:j.nodes)==null?void 0:be.map(G=>{var K,Ae,Ze;const $=(K=P.find(({id:Fe})=>Fe===G.key))==null?void 0:K.value;switch(G.operator){case"IN":return(Ae=$==null?void 0:$.includes)==null?void 0:Ae.call($,G.value);case"NOT_IN":return!((Ze=$==null?void 0:$.includes)!=null&&Ze.call($,G.value));case"EQUAL":return $===G.value;default:return!0}}))||[])[(j==null?void 0:j.type)==="OR"?"some":"every"](G=>G);return{...F,hidden:q}}),b=(P,F)=>{const j=P?new Date>new Date(P):!1,Q=F?new Date<new Date(F):!0;return j&&Q};try{const P=await fetch(l,i?{headers:{Authorization:`Bearer ${i}`}}:void 0).then(F=>F.json());if((P==null?void 0:P.status)!=="success"||!b((U=P==null?void 0:P.data)==null?void 0:U.publishFrom,(O=P==null?void 0:P.data)==null?void 0:O.publishTo))return{};if(n.value=P.data,e.consent&&e.eventTrackingKey&&((H=n.value)!=null&&H.trackingEnabled)){const{trackEvent:F}=ya(e,s,o,(I=n.value)==null?void 0:I.campaignCodes);F()}u.value=p((((Y=(D=(T=n.value)==null?void 0:T.sections)==null?void 0:D[0])==null?void 0:Y.fields)||[]).map(F=>{var q,se,ae,be,G;let j=null,Q=!1;return F.type==="account_detail"&&o&&(j=o[F.subtype],Q=!e.preview),(se=(q=F.metadata)==null?void 0:q.value)!=null&&se.set&&(F.metadata.value.type==="checkbox"?j=(ae=F.metadata.value.options)==null?void 0:ae.filter($=>$.selected).map($=>$.id):j=(G=(be=F.metadata.value.options)==null?void 0:be.find($=>$.selected))==null?void 0:G.id),{...F,value:j,accountDetailHidden:Q}}))}catch{}const w=(P,F)=>{const j=u.value.findIndex(Q=>Q.id===P);j>=0&&(u.value[j].value=F),u.value=p(u.value)},E=P=>{switch(P){case"missing_required_field":return"This field is required";case"invalid_email_address":return"Invalid email address";default:return"Please enter a valid response"}},S=Pn(null);return{form:n,fields:u,hasRequiredField:f,t:c,updateField:w,submitStatus:S,submit:async()=>{var j,Q;for(let q=0;q<u.value.length;q++)u.value[q].errorMessage=void 0;const P={fields:u.value.filter(q=>!q.hidden&&q.value).map(q=>({id:q.id,value:q.value}))};S.value="pending";const F={method:"POST",body:JSON.stringify(P)};i&&(F.headers={Authorization:`Bearer ${i}`});try{let q;e.preview?q={status:"success"}:q=await fetch(l,F).then(se=>se.json()),S.value=(q==null?void 0:q.status)==="success"?"success":"error",(Q=(j=q.data)==null?void 0:j.errors)==null||Q.forEach(se=>{const ae=u.value.findIndex(be=>be.id===se.id);ae>=0&&(u.value[ae].errorMessage=c(E(se.errorCode)))}),await Hs(e.submitCallbackName||e.onSubmit,{props:e,content:J(n.value),elementType:"form"})}catch{S.value="error"}}}}const ka=["dir"],Sa={key:0,class:"text-title text-title-font font-titleFont"},Ca={class:"text-caption text-caption-font font-captionFont whitespace-pre-wrap"},Ta={key:1,class:"text-caption text-error font-captionFont"},Pa={class:"flex flex-col gap-8"},Ia=["id","disabled"],Ea={key:2,class:"border-t border-error p-4 flex items-center gap-2 text-caption font-captionFont"},Fa={class:"text-error"},Aa=Pe({__name:"TheForm",props:{id:{type:String},clientId:{type:String},stage:{type:[Boolean,String]},server:{type:String},accessToken:{type:String},accessTokenCookieName:{type:String},accessTokenCallbackName:{type:String},preview:{type:[Boolean,String]},eventTrackingKey:{type:String},parentSourceSystem:{type:String},parentSourceSystemId:{type:String},onSubmit:{type:String},submitCallbackName:{type:String},consent:{type:[Boolean,String],default:!0},cookieDomain:{type:String},deviceIdCookieName:{type:String},deviceIdCallbackName:{type:String}},async setup(e){let t,n;const s=e,i=Ee(()=>{var E,S,z,U,O,H,I,T,D,Y,P;return{...s,clientId:s.clientId||((E=globalThis.cortextech)==null?void 0:E.clientId),stage:s.stage==="false"?!1:s.stage||((S=globalThis.cortextech)==null?void 0:S.stage),server:s.server||((z=globalThis.cortextech)==null?void 0:z.server)||"standard",accessTokenCookieName:s.accessTokenCookieName||((U=globalThis.cortextech)==null?void 0:U.accessTokenCookieName),accessTokenCallbackName:s.accessTokenCallbackName||((O=globalThis.cortextech)==null?void 0:O.accessTokenCallbackName),preview:s.preview==="false"?!1:s.preview,eventTrackingKey:s.eventTrackingKey||((H=globalThis.cortextech)==null?void 0:H.eventTrackingKey),onSubmit:s.onSubmit||((I=globalThis.cortextech)==null?void 0:I.onSubmit),submitCallbackName:s.submitCallbackName||((T=globalThis.cortextech)==null?void 0:T.submitCallbackName),consent:s.consent==="false"?!1:s.consent,cookieDomain:s.cookieDomain||((D=globalThis.cortextech)==null?void 0:D.cookieDomain),deviceIdCookieName:s.deviceIdCookieName||((Y=globalThis.cortextech)==null?void 0:Y.deviceIdCookieName)||"cortex_device_id",deviceIdCallbackName:s.deviceIdCallbackName||((P=globalThis.cortextech)==null?void 0:P.deviceIdCallbackName)}}),o=sl("rootDiv"),{form:r,fields:l,hasRequiredField:c,t:u,updateField:f,submitStatus:p,submit:b}=([t,n]=ml(()=>wa(i.value,o)),t=await t,n(),t);Ii("t",u);const w=Ee(()=>{var E,S;return(S=(E=r.value)==null?void 0:E.language)!=null&&S.startsWith("ar")?"rtl":"auto"});return(E,S)=>{var H,I,T,D,Y,P;const z=Qo,U=Us,O=Xo;return V(),ie("div",{ref_key:"rootDiv",ref:o,class:Ne([{border:N(r)},"cortex-form bg-background border-background-border rounded-background overflow-hidden"])},[N(p)==="success"?(V(),we(z,{key:0,dir:N(w),success:(H=N(r))==null?void 0:H.success},null,8,["dir","success"])):N(r)?(V(),ie(xe,{key:1},[(I=N(r).heroMedia)!=null&&I.content?(V(),we(U,{key:0,data:(T=N(r).heroMedia)==null?void 0:T.content},null,8,["data"])):fe("",!0),ge("div",{dir:N(w),class:"p-4 flex flex-col gap-4"},[(D=N(r).displayOptions)!=null&&D.hideTitle?fe("",!0):(V(),ie("h1",Sa,pe(N(r).title),1)),ge("p",Ca,pe((Y=N(r))==null?void 0:Y.description),1),N(c)?(V(),ie("p",Ta," * "+pe(N(u)("Required field")),1)):fe("",!0),ge("div",Pa,[(V(!0),ie(xe,null,Rn(N(l),F=>vt((V(),we(O,{key:F.id,field:F,onInput:N(f)},null,8,["field","onInput"])),[[hc,!F.hidden&&!F.accountDetailHidden]])),128))]),ge("button",{id:`form-${N(i).id}-submit`,class:"text-button text-button-font font-buttonFont bg-button-background border border-button-border p-4 w-full rounded-button cursor-pointer disabled:cursor-not-allowed",disabled:N(p)==="pending",onClick:S[0]||(S[0]=(...F)=>N(b)&&N(b)(...F))},pe(((P=N(r).submitButton)==null?void 0:P.label)||N(u)("Submit")),9,Ia),N(p)==="error"?(V(),ie("div",Ea,[S[1]||(S[1]=ge("div",{class:"w-5 h-5 bg-error text-white rounded-full shrink-0 grid place-items-center"},"!",-1)),ge("p",Fa,pe(N(u)("There is a problem with one or more of your responses. Please check and try again.")),1)])):fe("",!0)],8,ka)],64)):fe("",!0)],2)}}}),Oa='/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-outline-style:solid}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-white:#fff;--spacing:.25rem;--aspect-video:16 / 9;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--font-buttonFont:"CortexFormButtonFont", "sans-serif";--font-captionFont:"CortexFormCaptionFont", "sans-serif";--font-questionLabelFont:"CortexFormQuestionLabelFont", "sans-serif";--font-responseFont:"CortexFormResponseFont", "sans-serif";--font-titleFont:"CortexFormTitleFont", "sans-serif";--text-button:1rem;--text-caption:1rem;--text-question:1rem;--text-response:1rem;--text-title:1rem;--color-background-border:black;--color-background:white;--color-button-background:white;--color-button-border:black;--color-button-font:black;--color-caption-font:black;--color-error:red;--color-link:blue;--color-question-font:black;--color-response-font:black;--color-selected:black;--color-title-font:black;--color-unselected:black;--radius-background:0;--radius-button:0}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.aspect-video{aspect-ratio:var(--aspect-video)}.h-5{height:calc(var(--spacing) * 5)}.h-8{height:calc(var(--spacing) * 8)}.input{border-style:var(--tw-border-style);--tw-border-style:solid;border-style:solid;border-width:1px;border-color:var(--color-unselected);background-color:var(--color-background);width:100%;padding-inline:calc(var(--spacing) * 4);padding-block:calc(var(--spacing) * 3);font-family:var(--font-responseFont);font-size:var(--text-response);color:var(--color-response-font);border-radius:.25rem}.input:focus{border-color:var(--color-selected)}.w-5{width:calc(var(--spacing) * 5)}.w-8{width:calc(var(--spacing) * 8)}.w-full{width:100%}.shrink-0{flex-shrink:0}.cursor-pointer{cursor:pointer}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-col{flex-direction:column}.place-items-center{place-items:center}.items-center{align-items:center}.gap-2{gap:calc(var(--spacing) * 2)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-8{gap:calc(var(--spacing) * 8)}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-background{border-radius:var(--radius-background)}.rounded-button{border-radius:var(--radius-button)}.rounded-full{border-radius:3.40282e38px}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-solid{--tw-border-style:solid;border-style:solid}.border-background-border{border-color:var(--color-background-border)}.border-button-border{border-color:var(--color-button-border)}.border-error{border-color:var(--color-error)}.border-unselected{border-color:var(--color-unselected)}.bg-background{background-color:var(--color-background)}.bg-button-background{background-color:var(--color-button-background)}.bg-error{background-color:var(--color-error)}.bg-white{background-color:var(--color-white)}.p-4{padding:calc(var(--spacing) * 4)}.px-4{padding-inline:calc(var(--spacing) * 4)}.py-3{padding-block:calc(var(--spacing) * 3)}.font-buttonFont{font-family:var(--font-buttonFont)}.font-captionFont{font-family:var(--font-captionFont)}.font-questionLabelFont{font-family:var(--font-questionLabelFont)}.font-responseFont{font-family:var(--font-responseFont)}.font-titleFont{font-family:var(--font-titleFont)}.text-button{font-size:var(--text-button)}.text-caption{font-size:var(--text-caption)}.text-question{font-size:var(--text-question)}.text-response{font-size:var(--text-response)}.text-title{font-size:var(--text-title)}.whitespace-pre-wrap{white-space:pre-wrap}.text-button-font{color:var(--color-button-font)}.text-caption-font{color:var(--color-caption-font)}.text-error{color:var(--color-error)}.text-link{color:var(--color-link)}.text-question-font{color:var(--color-question-font)}.text-response-font{color:var(--color-response-font)}.text-title-font{color:var(--color-title-font)}.text-white{color:var(--color-white)}.underline{text-decoration-line:underline}.accent-selected{accent-color:var(--color-selected)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.focus\\:border-selected:focus{border-color:var(--color-selected)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}}:focus-visible{outline:none}input[type=date],input[type=time]{-webkit-appearance:none;-moz-appearance:none;appearance:none}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}',tr=(e,t)=>{const n=e.__vccOpts||e;for(const[s,i]of t)n[s]=i;return n},nr=tr(Aa,[["styles",[Oa]]]),Ma=Object.freeze(Object.defineProperty({__proto__:null,default:nr},Symbol.toStringTag,{value:"Module"})),Ra={};function Na(e,t){const n=nr;return V(),we(Vl,null,{default:Pi(()=>[Le(n,pr(go(e.$attrs)),null,16)]),_:1})}const fn=tr(Ra,[["render",Na]]),$a=Object.values([Dc,Uc,Vc,aa,na,qc,Zc,Jc,Wc,zc,Hc,pa,Ma]);fn.styles=$a.reduce((e,t)=>[...e,...t.default.styles||[]],fn.styles||[]),customElements.get("cortex-form")||customElements.define("cortex-form",Ds(fn)),customElements.get("incrowd-form")||customElements.define("incrowd-form",Ds(fn)),customElements.get("incrowd-forms")||customElements.define("incrowd-forms",Ds(fn))}));
