(function(en){typeof define=="function"&&define.amd?define(en):en()})(function(){"use strict";function en(t,e){const n=Object.create(null),i=t.split(",");for(let s=0;s<i.length;s++)n[i[s]]=!0;return e?s=>!!n[s.toLowerCase()]:s=>!!n[s]}const _t={},nn=[],te=()=>{},tu=()=>!1,eu=/^on[^a-z]/,Gn=t=>eu.test(t),os=t=>t.startsWith("onUpdate:"),$t=Object.assign,rs=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},nu=Object.prototype.hasOwnProperty,dt=(t,e)=>nu.call(t,e),X=Array.isArray,sn=t=>ei(t)==="[object Map]",Io=t=>ei(t)==="[object Set]",it=t=>typeof t=="function",wt=t=>typeof t=="string",ti=t=>typeof t=="symbol",yt=t=>t!==null&&typeof t=="object",Oo=t=>(yt(t)||it(t))&&it(t.then)&&it(t.catch),No=Object.prototype.toString,ei=t=>No.call(t),iu=t=>ei(t).slice(8,-1),Do=t=>ei(t)==="[object Object]",ls=t=>wt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,ni=en(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ii=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},su=/-(\w)/g,oe=ii(t=>t.replace(su,(e,n)=>n?n.toUpperCase():"")),ou=/\B([A-Z])/g,on=ii(t=>t.replace(ou,"-$1").toLowerCase()),si=ii(t=>t.charAt(0).toUpperCase()+t.slice(1)),as=ii(t=>t?`on${si(t)}`:""),Fe=(t,e)=>!Object.is(t,e),us=(t,e)=>{for(let n=0;n<t.length;n++)t[n](e)},oi=(t,e,n)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},ru=t=>{const e=parseFloat(t);return isNaN(e)?t:e},lu=t=>{const e=wt(t)?Number(t):NaN;return isNaN(e)?t:e};let Fo;const cs=()=>Fo||(Fo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function rn(t){if(X(t)){const e={};for(let n=0;n<t.length;n++){const i=t[n],s=wt(i)?du(i):rn(i);if(s)for(const o in s)e[o]=s[o]}return e}else if(wt(t)||yt(t))return t}const au=/;(?![^(]*\))/g,uu=/:([^]+)/,cu=/\/\*[^]*?\*\//g;function du(t){const e={};return t.replace(cu,"").split(au).forEach(n=>{if(n){const i=n.split(uu);i.length>1&&(e[i[0].trim()]=i[1].trim())}}),e}function V(t){let e="";if(wt(t))e=t;else if(X(t))for(let n=0;n<t.length;n++){const i=V(t[n]);i&&(e+=i+" ")}else if(yt(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}const fu=en("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Vo(t){return!!t||t===""}const N=t=>wt(t)?t:t==null?"":X(t)||yt(t)&&(t.toString===No||!it(t.toString))?JSON.stringify(t,Uo,2):String(t),Uo=(t,e)=>e&&e.__v_isRef?Uo(t,e.value):sn(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[i,s])=>(n[`${i} =>`]=s,n),{})}:Io(e)?{[`Set(${e.size})`]:[...e.values()]}:yt(e)&&!X(e)&&!Do(e)?String(e):e;let Ut;class jo{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ut,!e&&Ut&&(this.index=(Ut.scopes||(Ut.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const n=Ut;try{return Ut=this,e()}finally{Ut=n}}}on(){Ut=this}off(){Ut=this.parent}stop(e){if(this._active){let n,i;for(n=0,i=this.effects.length;n<i;n++)this.effects[n].stop();for(n=0,i=this.cleanups.length;n<i;n++)this.cleanups[n]();if(this.scopes)for(n=0,i=this.scopes.length;n<i;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!e){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0,this._active=!1}}}function Wo(t){return new jo(t)}function pu(t,e=Ut){e&&e.active&&e.effects.push(t)}function ds(){return Ut}function Zo(t){Ut&&Ut.cleanups.push(t)}const fs=t=>{const e=new Set(t);return e.w=0,e.n=0,e},zo=t=>(t.w&xe)>0,qo=t=>(t.n&xe)>0,hu=({deps:t})=>{if(t.length)for(let e=0;e<t.length;e++)t[e].w|=xe},gu=t=>{const{deps:e}=t;if(e.length){let n=0;for(let i=0;i<e.length;i++){const s=e[i];zo(s)&&!qo(s)?s.delete(t):e[n++]=s,s.w&=~xe,s.n&=~xe}e.length=n}},ri=new WeakMap;let xn=0,xe=1;const ps=30;let ee;const Ve=Symbol(""),hs=Symbol("");class gs{constructor(e,n=null,i){this.fn=e,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,pu(this,i)}run(){if(!this.active)return this.fn();let e=ee,n=ke;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=ee,ee=this,ke=!0,xe=1<<++xn,xn<=ps?hu(this):Ko(this),this.fn()}finally{xn<=ps&&gu(this),xe=1<<--xn,ee=this.parent,ke=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){ee===this?this.deferStop=!0:this.active&&(Ko(this),this.onStop&&this.onStop(),this.active=!1)}}function Ko(t){const{deps:e}=t;if(e.length){for(let n=0;n<e.length;n++)e[n].delete(t);e.length=0}}let ke=!0;const Jo=[];function ln(){Jo.push(ke),ke=!1}function an(){const t=Jo.pop();ke=t===void 0?!0:t}function Nt(t,e,n){if(ke&&ee){let i=ri.get(t);i||ri.set(t,i=new Map);let s=i.get(n);s||i.set(n,s=fs()),Qo(s)}}function Qo(t,e){let n=!1;xn<=ps?qo(t)||(t.n|=xe,n=!zo(t)):n=!t.has(ee),n&&(t.add(ee),ee.deps.push(t))}function pe(t,e,n,i,s,o){const r=ri.get(t);if(!r)return;let l=[];if(e==="clear")l=[...r.values()];else if(n==="length"&&X(t)){const a=Number(i);r.forEach((c,u)=>{(u==="length"||!ti(u)&&u>=a)&&l.push(c)})}else switch(n!==void 0&&l.push(r.get(n)),e){case"add":X(t)?ls(n)&&l.push(r.get("length")):(l.push(r.get(Ve)),sn(t)&&l.push(r.get(hs)));break;case"delete":X(t)||(l.push(r.get(Ve)),sn(t)&&l.push(r.get(hs)));break;case"set":sn(t)&&l.push(r.get(Ve));break}if(l.length===1)l[0]&&ms(l[0]);else{const a=[];for(const c of l)c&&a.push(...c);ms(fs(a))}}function ms(t,e){const n=X(t)?t:[...t];for(const i of n)i.computed&&Xo(i);for(const i of n)i.computed||Xo(i)}function Xo(t,e){(t!==ee||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function mu(t,e){var n;return(n=ri.get(t))==null?void 0:n.get(e)}const _u=en("__proto__,__v_isRef,__isVue"),Yo=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(ti)),Go=yu();function yu(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const i=ut(this);for(let o=0,r=this.length;o<r;o++)Nt(i,"get",o+"");const s=i[e](...n);return s===-1||s===!1?i[e](...n.map(ut)):s}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...n){ln();const i=ut(this)[e].apply(this,n);return an(),i}}),t}function vu(t){const e=ut(this);return Nt(e,"has",t),e.hasOwnProperty(t)}class tr{constructor(e=!1,n=!1){this._isReadonly=e,this._shallow=n}get(e,n,i){const s=this._isReadonly,o=this._shallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw"&&i===(s?o?Au:ar:o?lr:rr).get(e))return e;const r=X(e);if(!s){if(r&&dt(Go,n))return Reflect.get(Go,n,i);if(n==="hasOwnProperty")return vu}const l=Reflect.get(e,n,i);return(ti(n)?Yo.has(n):_u(n))||(s||Nt(e,"get",n),o)?l:Ct(l)?r&&ls(n)?l:l.value:yt(l)?s?ur(l):pi(l):l}}class er extends tr{constructor(e=!1){super(!1,e)}set(e,n,i,s){let o=e[n];if(un(o)&&Ct(o)&&!Ct(i))return!1;if(!this._shallow&&(!hi(i)&&!un(i)&&(o=ut(o),i=ut(i)),!X(e)&&Ct(o)&&!Ct(i)))return o.value=i,!0;const r=X(e)&&ls(n)?Number(n)<e.length:dt(e,n),l=Reflect.set(e,n,i,s);return e===ut(s)&&(r?Fe(i,o)&&pe(e,"set",n,i):pe(e,"add",n,i)),l}deleteProperty(e,n){const i=dt(e,n);e[n];const s=Reflect.deleteProperty(e,n);return s&&i&&pe(e,"delete",n,void 0),s}has(e,n){const i=Reflect.has(e,n);return(!ti(n)||!Yo.has(n))&&Nt(e,"has",n),i}ownKeys(e){return Nt(e,"iterate",X(e)?"length":Ve),Reflect.ownKeys(e)}}class wu extends tr{constructor(e=!1){super(!0,e)}set(e,n){return!0}deleteProperty(e,n){return!0}}const bu=new er,Cu=new wu,xu=new er(!0),_s=t=>t,li=t=>Reflect.getPrototypeOf(t);function ai(t,e,n=!1,i=!1){t=t.__v_raw;const s=ut(t),o=ut(e);n||(Fe(e,o)&&Nt(s,"get",e),Nt(s,"get",o));const{has:r}=li(s),l=i?_s:n?ws:Sn;if(r.call(s,e))return l(t.get(e));if(r.call(s,o))return l(t.get(o));t!==s&&t.get(e)}function ui(t,e=!1){const n=this.__v_raw,i=ut(n),s=ut(t);return e||(Fe(t,s)&&Nt(i,"has",t),Nt(i,"has",s)),t===s?n.has(t):n.has(t)||n.has(s)}function ci(t,e=!1){return t=t.__v_raw,!e&&Nt(ut(t),"iterate",Ve),Reflect.get(t,"size",t)}function nr(t){t=ut(t);const e=ut(this);return li(e).has.call(e,t)||(e.add(t),pe(e,"add",t,t)),this}function ir(t,e){e=ut(e);const n=ut(this),{has:i,get:s}=li(n);let o=i.call(n,t);o||(t=ut(t),o=i.call(n,t));const r=s.call(n,t);return n.set(t,e),o?Fe(e,r)&&pe(n,"set",t,e):pe(n,"add",t,e),this}function sr(t){const e=ut(this),{has:n,get:i}=li(e);let s=n.call(e,t);s||(t=ut(t),s=n.call(e,t)),i&&i.call(e,t);const o=e.delete(t);return s&&pe(e,"delete",t,void 0),o}function or(){const t=ut(this),e=t.size!==0,n=t.clear();return e&&pe(t,"clear",void 0,void 0),n}function di(t,e){return function(i,s){const o=this,r=o.__v_raw,l=ut(r),a=e?_s:t?ws:Sn;return!t&&Nt(l,"iterate",Ve),r.forEach((c,u)=>i.call(s,a(c),a(u),o))}}function fi(t,e,n){return function(...i){const s=this.__v_raw,o=ut(s),r=sn(o),l=t==="entries"||t===Symbol.iterator&&r,a=t==="keys"&&r,c=s[t](...i),u=n?_s:e?ws:Sn;return!e&&Nt(o,"iterate",a?hs:Ve),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:l?[u(f[0]),u(f[1])]:u(f),done:d}},[Symbol.iterator](){return this}}}}function Se(t){return function(...e){return t==="delete"?!1:this}}function ku(){const t={get(o){return ai(this,o)},get size(){return ci(this)},has:ui,add:nr,set:ir,delete:sr,clear:or,forEach:di(!1,!1)},e={get(o){return ai(this,o,!1,!0)},get size(){return ci(this)},has:ui,add:nr,set:ir,delete:sr,clear:or,forEach:di(!1,!0)},n={get(o){return ai(this,o,!0)},get size(){return ci(this,!0)},has(o){return ui.call(this,o,!0)},add:Se("add"),set:Se("set"),delete:Se("delete"),clear:Se("clear"),forEach:di(!0,!1)},i={get(o){return ai(this,o,!0,!0)},get size(){return ci(this,!0)},has(o){return ui.call(this,o,!0)},add:Se("add"),set:Se("set"),delete:Se("delete"),clear:Se("clear"),forEach:di(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{t[o]=fi(o,!1,!1),n[o]=fi(o,!0,!1),e[o]=fi(o,!1,!0),i[o]=fi(o,!0,!0)}),[t,n,e,i]}const[Su,Eu,$u,Tu]=ku();function ys(t,e){const n=e?t?Tu:$u:t?Eu:Su;return(i,s,o)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?i:Reflect.get(dt(n,s)&&s in i?n:i,s,o)}const Lu={get:ys(!1,!1)},Mu={get:ys(!1,!0)},Ru={get:ys(!0,!1)},rr=new WeakMap,lr=new WeakMap,ar=new WeakMap,Au=new WeakMap;function Pu(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Bu(t){return t.__v_skip||!Object.isExtensible(t)?0:Pu(iu(t))}function pi(t){return un(t)?t:vs(t,!1,bu,Lu,rr)}function Hu(t){return vs(t,!1,xu,Mu,lr)}function ur(t){return vs(t,!0,Cu,Ru,ar)}function vs(t,e,n,i,s){if(!yt(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const o=s.get(t);if(o)return o;const r=Bu(t);if(r===0)return t;const l=new Proxy(t,r===2?i:n);return s.set(t,l),l}function Ee(t){return un(t)?Ee(t.__v_raw):!!(t&&t.__v_isReactive)}function un(t){return!!(t&&t.__v_isReadonly)}function hi(t){return!!(t&&t.__v_isShallow)}function cr(t){return Ee(t)||un(t)}function ut(t){const e=t&&t.__v_raw;return e?ut(e):t}function kn(t){return oi(t,"__v_skip",!0),t}const Sn=t=>yt(t)?pi(t):t,ws=t=>yt(t)?ur(t):t;function dr(t){ke&&ee&&(t=ut(t),Qo(t.dep||(t.dep=fs())))}function fr(t,e){t=ut(t);const n=t.dep;n&&ms(n)}function Ct(t){return!!(t&&t.__v_isRef===!0)}function q(t){return Iu(t,!1)}function Iu(t,e){return Ct(t)?t:new Ou(t,e)}class Ou{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:ut(e),this._value=n?e:Sn(e)}get value(){return dr(this),this._value}set value(e){const n=this.__v_isShallow||hi(e)||un(e);e=n?e:ut(e),Fe(e,this._rawValue)&&(this._rawValue=e,this._value=n?e:Sn(e),fr(this))}}function b(t){return Ct(t)?t.value:t}const Nu={get:(t,e,n)=>b(Reflect.get(t,e,n)),set:(t,e,n,i)=>{const s=t[e];return Ct(s)&&!Ct(n)?(s.value=n,!0):Reflect.set(t,e,n,i)}};function pr(t){return Ee(t)?t:new Proxy(t,Nu)}function Du(t){const e=X(t)?new Array(t.length):{};for(const n in t)e[n]=Vu(t,n);return e}class Fu{constructor(e,n,i){this._object=e,this._key=n,this._defaultValue=i,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return mu(ut(this._object),this._key)}}function Vu(t,e,n){const i=t[e];return Ct(i)?i:new Fu(t,e,n)}class Uu{constructor(e,n,i,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new gs(e,()=>{this._dirty||(this._dirty=!0,fr(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=i}get value(){const e=ut(this);return dr(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function ju(t,e,n=!1){let i,s;const o=it(t);return o?(i=t,s=te):(i=t.get,s=t.set),new Uu(i,s,o||!s,n)}function a5(t,...e){}function $e(t,e,n,i){let s;try{s=i?t(...i):t()}catch(o){gi(o,e,n)}return s}function zt(t,e,n,i){if(it(t)){const o=$e(t,e,n,i);return o&&Oo(o)&&o.catch(r=>{gi(r,e,n)}),o}const s=[];for(let o=0;o<t.length;o++)s.push(zt(t[o],e,n,i));return s}function gi(t,e,n,i=!0){const s=e?e.vnode:null;if(e){let o=e.parent;const r=e.proxy,l=n;for(;o;){const c=o.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](t,r,l)===!1)return}o=o.parent}const a=e.appContext.config.errorHandler;if(a){$e(a,null,10,[t,r,l]);return}}Wu(t,n,s,i)}function Wu(t,e,n,i=!0){console.error(t)}let En=!1,bs=!1;const Rt=[];let re=0;const cn=[];let he=null,Ue=0;const hr=Promise.resolve();let Cs=null;function xs(t){const e=Cs||hr;return t?e.then(this?t.bind(this):t):e}function Zu(t){let e=re+1,n=Rt.length;for(;e<n;){const i=e+n>>>1,s=Rt[i],o=$n(s);o<t||o===t&&s.pre?e=i+1:n=i}return e}function ks(t){(!Rt.length||!Rt.includes(t,En&&t.allowRecurse?re+1:re))&&(t.id==null?Rt.push(t):Rt.splice(Zu(t.id),0,t),gr())}function gr(){!En&&!bs&&(bs=!0,Cs=hr.then(yr))}function zu(t){const e=Rt.indexOf(t);e>re&&Rt.splice(e,1)}function qu(t){X(t)?cn.push(...t):(!he||!he.includes(t,t.allowRecurse?Ue+1:Ue))&&cn.push(t),gr()}function mr(t,e=En?re+1:0){for(;e<Rt.length;e++){const n=Rt[e];n&&n.pre&&(Rt.splice(e,1),e--,n())}}function _r(t){if(cn.length){const e=[...new Set(cn)];if(cn.length=0,he){he.push(...e);return}for(he=e,he.sort((n,i)=>$n(n)-$n(i)),Ue=0;Ue<he.length;Ue++)he[Ue]();he=null,Ue=0}}const $n=t=>t.id==null?1/0:t.id,Ku=(t,e)=>{const n=$n(t)-$n(e);if(n===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function yr(t){bs=!1,En=!0,Rt.sort(Ku);const e=te;try{for(re=0;re<Rt.length;re++){const n=Rt[re];n&&n.active!==!1&&$e(n,null,14)}}finally{re=0,Rt.length=0,_r(),En=!1,Cs=null,(Rt.length||cn.length)&&yr()}}function Ju(t,e,...n){if(t.isUnmounted)return;const i=t.vnode.props||_t;let s=n;const o=e.startsWith("update:"),r=o&&e.slice(7);if(r&&r in i){const u=`${r==="modelValue"?"model":r}Modifiers`,{number:f,trim:d}=i[u]||_t;d&&(s=n.map(m=>wt(m)?m.trim():m)),f&&(s=n.map(ru))}let l,a=i[l=as(e)]||i[l=as(oe(e))];!a&&o&&(a=i[l=as(on(e))]),a&&zt(a,t,6,s);const c=i[l+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[l])return;t.emitted[l]=!0,zt(c,t,6,s)}}function vr(t,e,n=!1){const i=e.emitsCache,s=i.get(t);if(s!==void 0)return s;const o=t.emits;let r={},l=!1;if(!it(t)){const a=c=>{const u=vr(c,e,!0);u&&(l=!0,$t(r,u))};!n&&e.mixins.length&&e.mixins.forEach(a),t.extends&&a(t.extends),t.mixins&&t.mixins.forEach(a)}return!o&&!l?(yt(t)&&i.set(t,null),null):(X(o)?o.forEach(a=>r[a]=null):$t(r,o),yt(t)&&i.set(t,r),r)}function mi(t,e){return!t||!Gn(e)?!1:(e=e.slice(2).replace(/Once$/,""),dt(t,e[0].toLowerCase()+e.slice(1))||dt(t,on(e))||dt(t,e))}let Lt=null,_i=null;function yi(t){const e=Lt;return Lt=t,_i=t&&t.type.__scopeId||null,e}function wr(t){_i=t}function br(){_i=null}function Dt(t,e=Lt,n){if(!e||t._n)return t;const i=(...s)=>{i._d&&Gr(-1);const o=yi(e);let r;try{r=t(...s)}finally{yi(o),i._d&&Gr(1)}return r};return i._n=!0,i._c=!0,i._d=!0,i}function u5(){}function Ss(t){const{type:e,vnode:n,proxy:i,withProxy:s,props:o,propsOptions:[r],slots:l,attrs:a,emit:c,render:u,renderCache:f,data:d,setupState:m,ctx:g,inheritAttrs:_}=t;let C,w;const E=yi(t);try{if(n.shapeFlag&4){const $=s||i;C=le(u.call($,$,f,o,m,d,g)),w=a}else{const $=e;C=le($.length>1?$(o,{attrs:a,slots:l,emit:c}):$(o,null)),w=e.props?a:Qu(a)}}catch($){Pn.length=0,gi($,t,1),C=j(Jt)}let A=C;if(w&&_!==!1){const $=Object.keys(w),{shapeFlag:D}=A;$.length&&D&7&&(r&&$.some(os)&&(w=Xu(w,r)),A=Le(A,w))}return n.dirs&&(A=Le(A),A.dirs=A.dirs?A.dirs.concat(n.dirs):n.dirs),n.transition&&(A.transition=n.transition),C=A,yi(E),C}const Qu=t=>{let e;for(const n in t)(n==="class"||n==="style"||Gn(n))&&((e||(e={}))[n]=t[n]);return e},Xu=(t,e)=>{const n={};for(const i in t)(!os(i)||!(i.slice(9)in e))&&(n[i]=t[i]);return n};function Yu(t,e,n){const{props:i,children:s,component:o}=t,{props:r,children:l,patchFlag:a}=e,c=o.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return i?Cr(i,r,c):!!r;if(a&8){const u=e.dynamicProps;for(let f=0;f<u.length;f++){const d=u[f];if(r[d]!==i[d]&&!mi(c,d))return!0}}}else return(s||l)&&(!l||!l.$stable)?!0:i===r?!1:i?r?Cr(i,r,c):!0:!!r;return!1}function Cr(t,e,n){const i=Object.keys(e);if(i.length!==Object.keys(t).length)return!0;for(let s=0;s<i.length;s++){const o=i[s];if(e[o]!==t[o]&&!mi(n,o))return!0}return!1}function Gu({vnode:t,parent:e},n){for(;e&&e.subTree===t;)(t=e.vnode).el=n,e=e.parent}const tc=t=>t.__isSuspense;function ec(t,e){e&&e.pendingBranch?X(t)?e.effects.push(...t):e.effects.push(t):qu(t)}function nc(t,e){return Es(t,null,e)}const vi={};function At(t,e,n){return Es(t,e,n)}function Es(t,e,{immediate:n,deep:i,flush:s,onTrack:o,onTrigger:r}=_t){var l;const a=ds()===((l=Tt)==null?void 0:l.scope)?Tt:null;let c,u=!1,f=!1;if(Ct(t)?(c=()=>t.value,u=hi(t)):Ee(t)?(c=()=>t,i=!0):X(t)?(f=!0,u=t.some($=>Ee($)||hi($)),c=()=>t.map($=>{if(Ct($))return $.value;if(Ee($))return je($);if(it($))return $e($,a,2)})):it(t)?e?c=()=>$e(t,a,2):c=()=>{if(!(a&&a.isUnmounted))return d&&d(),zt(t,a,3,[m])}:c=te,e&&i){const $=c;c=()=>je($())}let d,m=$=>{d=E.onStop=()=>{$e($,a,4)}},g;if(Hn)if(m=te,e?n&&zt(e,a,3,[c(),f?[]:void 0,m]):c(),s==="sync"){const $=Gc();g=$.__watcherHandles||($.__watcherHandles=[])}else return te;let _=f?new Array(t.length).fill(vi):vi;const C=()=>{if(E.active)if(e){const $=E.run();(i||u||(f?$.some((D,G)=>Fe(D,_[G])):Fe($,_)))&&(d&&d(),zt(e,a,3,[$,_===vi?void 0:f&&_[0]===vi?[]:_,m]),_=$)}else E.run()};C.allowRecurse=!!e;let w;s==="sync"?w=C:s==="post"?w=()=>Vt(C,a&&a.suspense):(C.pre=!0,a&&(C.id=a.uid),w=()=>ks(C));const E=new gs(c,w);e?n?C():_=E.run():s==="post"?Vt(E.run.bind(E),a&&a.suspense):E.run();const A=()=>{E.stop(),a&&a.scope&&rs(a.scope.effects,E)};return g&&g.push(A),A}function ic(t,e,n){const i=this.proxy,s=wt(t)?t.includes(".")?xr(i,t):()=>i[t]:t.bind(i,i);let o;it(e)?o=e:(o=e.handler,n=e);const r=Tt;gn(this);const l=Es(s,o.bind(i),n);return r?gn(r):qe(),l}function xr(t,e){const n=e.split(".");return()=>{let i=t;for(let s=0;s<n.length&&i;s++)i=i[n[s]];return i}}function je(t,e){if(!yt(t)||t.__v_skip||(e=e||new Set,e.has(t)))return t;if(e.add(t),Ct(t))je(t.value,e);else if(X(t))for(let n=0;n<t.length;n++)je(t[n],e);else if(Io(t)||sn(t))t.forEach(n=>{je(n,e)});else if(Do(t))for(const n in t)je(t[n],e);return t}function Ft(t,e){const n=Lt;if(n===null)return t;const i=Ri(n)||n.proxy,s=t.dirs||(t.dirs=[]);for(let o=0;o<e.length;o++){let[r,l,a,c=_t]=e[o];r&&(it(r)&&(r={mounted:r,updated:r}),r.deep&&je(l),s.push({dir:r,instance:i,value:l,oldValue:void 0,arg:a,modifiers:c}))}return t}function We(t,e,n,i){const s=t.dirs,o=e&&e.dirs;for(let r=0;r<s.length;r++){const l=s[r];o&&(l.oldValue=o[r].value);let a=l.dir[i];a&&(ln(),zt(a,n,8,[t.el,l,t,e]),an())}}const Te=Symbol("_leaveCb"),wi=Symbol("_enterCb");function sc(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return dn(()=>{t.isMounted=!0}),Lr(()=>{t.isUnmounting=!0}),t}const qt=[Function,Array],kr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:qt,onEnter:qt,onAfterEnter:qt,onEnterCancelled:qt,onBeforeLeave:qt,onLeave:qt,onAfterLeave:qt,onLeaveCancelled:qt,onBeforeAppear:qt,onAppear:qt,onAfterAppear:qt,onAppearCancelled:qt},oc={name:"BaseTransition",props:kr,setup(t,{slots:e}){const n=Us(),i=sc();let s;return()=>{const o=e.default&&$r(e.default(),!0);if(!o||!o.length)return;let r=o[0];if(o.length>1){for(const _ of o)if(_.type!==Jt){r=_;break}}const l=ut(t),{mode:a}=l;if(i.isLeaving)return Ts(r);const c=Er(r);if(!c)return Ts(r);const u=$s(c,l,i,n);Ls(c,u);const f=n.subTree,d=f&&Er(f);let m=!1;const{getTransitionKey:g}=c.type;if(g){const _=g();s===void 0?s=_:_!==s&&(s=_,m=!0)}if(d&&d.type!==Jt&&(!ze(c,d)||m)){const _=$s(d,l,i,n);if(Ls(d,_),a==="out-in")return i.isLeaving=!0,_.afterLeave=()=>{i.isLeaving=!1,n.update.active!==!1&&n.update()},Ts(r);a==="in-out"&&c.type!==Jt&&(_.delayLeave=(C,w,E)=>{const A=Sr(i,d);A[String(d.key)]=d,C[Te]=()=>{w(),C[Te]=void 0,delete u.delayedLeave},u.delayedLeave=E})}return r}}};function Sr(t,e){const{leavingVNodes:n}=t;let i=n.get(e.type);return i||(i=Object.create(null),n.set(e.type,i)),i}function $s(t,e,n,i){const{appear:s,mode:o,persisted:r=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:f,onLeave:d,onAfterLeave:m,onLeaveCancelled:g,onBeforeAppear:_,onAppear:C,onAfterAppear:w,onAppearCancelled:E}=e,A=String(t.key),$=Sr(n,t),D=(M,F)=>{M&&zt(M,i,9,F)},G=(M,F)=>{const Z=F[1];D(M,F),X(M)?M.every(Q=>Q.length<=1)&&Z():M.length<=1&&Z()},z={mode:o,persisted:r,beforeEnter(M){let F=l;if(!n.isMounted)if(s)F=_||l;else return;M[Te]&&M[Te](!0);const Z=$[A];Z&&ze(t,Z)&&Z.el[Te]&&Z.el[Te](),D(F,[M])},enter(M){let F=a,Z=c,Q=u;if(!n.isMounted)if(s)F=C||a,Z=w||c,Q=E||u;else return;let I=!1;const et=M[wi]=ft=>{I||(I=!0,ft?D(Q,[M]):D(Z,[M]),z.delayedLeave&&z.delayedLeave(),M[wi]=void 0)};F?G(F,[M,et]):et()},leave(M,F){const Z=String(t.key);if(M[wi]&&M[wi](!0),n.isUnmounting)return F();D(f,[M]);let Q=!1;const I=M[Te]=et=>{Q||(Q=!0,F(),et?D(g,[M]):D(m,[M]),M[Te]=void 0,$[Z]===t&&delete $[Z])};$[Z]=t,d?G(d,[M,I]):I()},clone(M){return $s(M,e,n,i)}};return z}function Ts(t){if(bi(t))return t=Le(t),t.children=null,t}function Er(t){return bi(t)?t.children?t.children[0]:void 0:t}function Ls(t,e){t.shapeFlag&6&&t.component?Ls(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function $r(t,e=!1,n){let i=[],s=0;for(let o=0;o<t.length;o++){let r=t[o];const l=n==null?r.key:String(n)+String(r.key!=null?r.key:o);r.type===gt?(r.patchFlag&128&&s++,i=i.concat($r(r.children,e,l))):(e||r.type!==Jt)&&i.push(l!=null?Le(r,{key:l}):r)}if(s>1)for(let o=0;o<i.length;o++)i[o].patchFlag=-2;return i}/*! #__NO_SIDE_EFFECTS__ */function lt(t,e){return it(t)?(()=>$t({name:t.name},e,{setup:t}))():t}const Tn=t=>!!t.type.__asyncLoader,bi=t=>t.type.__isKeepAlive;function rc(t,e){Tr(t,"a",e)}function lc(t,e){Tr(t,"da",e)}function Tr(t,e,n=Tt){const i=t.__wdc||(t.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return t()});if(Ci(e,i,n),n){let s=n.parent;for(;s&&s.parent;)bi(s.parent.vnode)&&ac(i,e,n,s),s=s.parent}}function ac(t,e,n,i){const s=Ci(e,t,i,!0);fn(()=>{rs(i[e],s)},n)}function Ci(t,e,n=Tt,i=!1){if(n){const s=n[t]||(n[t]=[]),o=e.__weh||(e.__weh=(...r)=>{if(n.isUnmounted)return;ln(),gn(n);const l=zt(e,n,t,r);return qe(),an(),l});return i?s.unshift(o):s.push(o),o}}const ge=t=>(e,n=Tt)=>(!Hn||t==="sp")&&Ci(t,(...i)=>e(...i),n),uc=ge("bm"),dn=ge("m"),cc=ge("bu"),dc=ge("u"),Lr=ge("bum"),fn=ge("um"),fc=ge("sp"),pc=ge("rtg"),hc=ge("rtc");function gc(t,e=Tt){Ci("ec",t,e)}const Mr="components",mc="directives",Rr=Symbol.for("v-ndc");function xi(t){return wt(t)?Pr(Mr,t,!1)||t:t||Rr}function Ar(t){return Pr(mc,t)}function Pr(t,e,n=!0,i=!1){const s=Lt||Tt;if(s){const o=s.type;if(t===Mr){const l=Qc(o,!1);if(l&&(l===e||l===oe(e)||l===si(oe(e))))return o}const r=Br(s[t]||o[t],e)||Br(s.appContext[t],e);return!r&&i?o:r}}function Br(t,e){return t&&(t[e]||t[oe(e)]||t[si(oe(e))])}function Kt(t,e,n,i){let s;const o=n&&n[i];if(X(t)||wt(t)){s=new Array(t.length);for(let r=0,l=t.length;r<l;r++)s[r]=e(t[r],r,void 0,o&&o[r])}else if(typeof t=="number"){s=new Array(t);for(let r=0;r<t;r++)s[r]=e(r+1,r,void 0,o&&o[r])}else if(yt(t))if(t[Symbol.iterator])s=Array.from(t,(r,l)=>e(r,l,void 0,o&&o[l]));else{const r=Object.keys(t);s=new Array(r.length);for(let l=0,a=r.length;l<a;l++){const c=r[l];s[l]=e(t[c],c,l,o&&o[l])}}else s=[];return n&&(n[i]=s),s}function ki(t,e,n={},i,s){if(Lt.isCE||Lt.parent&&Tn(Lt.parent)&&Lt.parent.isCE)return e!=="default"&&(n.name=e),j("slot",n,i&&i());let o=t[e];o&&o._c&&(o._d=!1),v();const r=o&&Hr(o(n)),l=pt(gt,{key:n.key||r&&r.key||`_${e}`},r||(i?i():[]),r&&t._===1?64:-2);return!s&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function Hr(t){return t.some(e=>Ti(e)?!(e.type===Jt||e.type===gt&&!Hr(e.children)):!0)?t:null}const Ms=t=>t?sl(t)?Ri(t)||t.proxy:Ms(t.parent):null,Ln=$t(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Ms(t.parent),$root:t=>Ms(t.root),$emit:t=>t.emit,$options:t=>Ps(t),$forceUpdate:t=>t.f||(t.f=()=>ks(t.update)),$nextTick:t=>t.n||(t.n=xs.bind(t.proxy)),$watch:t=>ic.bind(t)}),Rs=(t,e)=>t!==_t&&!t.__isScriptSetup&&dt(t,e),_c={get({_:t},e){const{ctx:n,setupState:i,data:s,props:o,accessCache:r,type:l,appContext:a}=t;let c;if(e[0]!=="$"){const m=r[e];if(m!==void 0)switch(m){case 1:return i[e];case 2:return s[e];case 4:return n[e];case 3:return o[e]}else{if(Rs(i,e))return r[e]=1,i[e];if(s!==_t&&dt(s,e))return r[e]=2,s[e];if((c=t.propsOptions[0])&&dt(c,e))return r[e]=3,o[e];if(n!==_t&&dt(n,e))return r[e]=4,n[e];As&&(r[e]=0)}}const u=Ln[e];let f,d;if(u)return e==="$attrs"&&Nt(t,"get",e),u(t);if((f=l.__cssModules)&&(f=f[e]))return f;if(n!==_t&&dt(n,e))return r[e]=4,n[e];if(d=a.config.globalProperties,dt(d,e))return d[e]},set({_:t},e,n){const{data:i,setupState:s,ctx:o}=t;return Rs(s,e)?(s[e]=n,!0):i!==_t&&dt(i,e)?(i[e]=n,!0):dt(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(o[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:i,appContext:s,propsOptions:o}},r){let l;return!!n[r]||t!==_t&&dt(t,r)||Rs(e,r)||(l=o[0])&&dt(l,r)||dt(i,r)||dt(Ln,r)||dt(s.config.globalProperties,r)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:dt(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function Ir(t){return X(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}let As=!0;function yc(t){const e=Ps(t),n=t.proxy,i=t.ctx;As=!1,e.beforeCreate&&Or(e.beforeCreate,t,"bc");const{data:s,computed:o,methods:r,watch:l,provide:a,inject:c,created:u,beforeMount:f,mounted:d,beforeUpdate:m,updated:g,activated:_,deactivated:C,beforeDestroy:w,beforeUnmount:E,destroyed:A,unmounted:$,render:D,renderTracked:G,renderTriggered:z,errorCaptured:M,serverPrefetch:F,expose:Z,inheritAttrs:Q,components:I,directives:et,filters:ft}=e;if(c&&vc(c,i,null),r)for(const tt in r){const B=r[tt];it(B)&&(i[tt]=B.bind(n))}if(s){const tt=s.call(n,n);yt(tt)&&(t.data=pi(tt))}if(As=!0,o)for(const tt in o){const B=o[tt],at=it(B)?B.bind(n,n):it(B.get)?B.get.bind(n,n):te,bt=!it(B)&&it(B.set)?B.set.bind(n):te,Bt=Y({get:at,set:bt});Object.defineProperty(i,tt,{enumerable:!0,configurable:!0,get:()=>Bt.value,set:Wt=>Bt.value=Wt})}if(l)for(const tt in l)Nr(l[tt],i,n,tt);if(a){const tt=it(a)?a.call(n):a;Reflect.ownKeys(tt).forEach(B=>{Sc(B,tt[B])})}u&&Or(u,t,"c");function ot(tt,B){X(B)?B.forEach(at=>tt(at.bind(n))):B&&tt(B.bind(n))}if(ot(uc,f),ot(dn,d),ot(cc,m),ot(dc,g),ot(rc,_),ot(lc,C),ot(gc,M),ot(hc,G),ot(pc,z),ot(Lr,E),ot(fn,$),ot(fc,F),X(Z))if(Z.length){const tt=t.exposed||(t.exposed={});Z.forEach(B=>{Object.defineProperty(tt,B,{get:()=>n[B],set:at=>n[B]=at})})}else t.exposed||(t.exposed={});D&&t.render===te&&(t.render=D),Q!=null&&(t.inheritAttrs=Q),I&&(t.components=I),et&&(t.directives=et)}function vc(t,e,n=te){X(t)&&(t=Bs(t));for(const i in t){const s=t[i];let o;yt(s)?"default"in s?o=pn(s.from||i,s.default,!0):o=pn(s.from||i):o=pn(s),Ct(o)?Object.defineProperty(e,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):e[i]=o}}function Or(t,e,n){zt(X(t)?t.map(i=>i.bind(e.proxy)):t.bind(e.proxy),e,n)}function Nr(t,e,n,i){const s=i.includes(".")?xr(n,i):()=>n[i];if(wt(t)){const o=e[t];it(o)&&At(s,o)}else if(it(t))At(s,t.bind(n));else if(yt(t))if(X(t))t.forEach(o=>Nr(o,e,n,i));else{const o=it(t.handler)?t.handler.bind(n):e[t.handler];it(o)&&At(s,o,t)}}function Ps(t){const e=t.type,{mixins:n,extends:i}=e,{mixins:s,optionsCache:o,config:{optionMergeStrategies:r}}=t.appContext,l=o.get(e);let a;return l?a=l:!s.length&&!n&&!i?a=e:(a={},s.length&&s.forEach(c=>Si(a,c,r,!0)),Si(a,e,r)),yt(e)&&o.set(e,a),a}function Si(t,e,n,i=!1){const{mixins:s,extends:o}=e;o&&Si(t,o,n,!0),s&&s.forEach(r=>Si(t,r,n,!0));for(const r in e)if(!(i&&r==="expose")){const l=wc[r]||n&&n[r];t[r]=l?l(t[r],e[r]):e[r]}return t}const wc={data:Dr,props:Fr,emits:Fr,methods:Mn,computed:Mn,beforeCreate:Ht,created:Ht,beforeMount:Ht,mounted:Ht,beforeUpdate:Ht,updated:Ht,beforeDestroy:Ht,beforeUnmount:Ht,destroyed:Ht,unmounted:Ht,activated:Ht,deactivated:Ht,errorCaptured:Ht,serverPrefetch:Ht,components:Mn,directives:Mn,watch:Cc,provide:Dr,inject:bc};function Dr(t,e){return e?t?function(){return $t(it(t)?t.call(this,this):t,it(e)?e.call(this,this):e)}:e:t}function bc(t,e){return Mn(Bs(t),Bs(e))}function Bs(t){if(X(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function Ht(t,e){return t?[...new Set([].concat(t,e))]:e}function Mn(t,e){return t?$t(Object.create(null),t,e):e}function Fr(t,e){return t?X(t)&&X(e)?[...new Set([...t,...e])]:$t(Object.create(null),Ir(t),Ir(e??{})):e}function Cc(t,e){if(!t)return e;if(!e)return t;const n=$t(Object.create(null),t);for(const i in e)n[i]=Ht(t[i],e[i]);return n}function Vr(){return{app:null,config:{isNativeTag:tu,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 xc=0;function kc(t,e){return function(i,s=null){it(i)||(i=$t({},i)),s!=null&&!yt(s)&&(s=null);const o=Vr(),r=new WeakSet;let l=!1;const a=o.app={_uid:xc++,_component:i,_props:s,_container:null,_context:o,_instance:null,version:td,get config(){return o.config},set config(c){},use(c,...u){return r.has(c)||(c&&it(c.install)?(r.add(c),c.install(a,...u)):it(c)&&(r.add(c),c(a,...u))),a},mixin(c){return o.mixins.includes(c)||o.mixins.push(c),a},component(c,u){return u?(o.components[c]=u,a):o.components[c]},directive(c,u){return u?(o.directives[c]=u,a):o.directives[c]},mount(c,u,f){if(!l){const d=j(i,s);return d.appContext=o,u&&e?e(d,c):t(d,c,f),l=!0,a._container=c,c.__vue_app__=a,Ri(d.component)||d.component.proxy}},unmount(){l&&(t(null,a._container),delete a._container.__vue_app__)},provide(c,u){return o.provides[c]=u,a},runWithContext(c){Rn=a;try{return c()}finally{Rn=null}}};return a}}let Rn=null;function Sc(t,e){if(Tt){let n=Tt.provides;const i=Tt.parent&&Tt.parent.provides;i===n&&(n=Tt.provides=Object.create(i)),n[t]=e}}function pn(t,e,n=!1){const i=Tt||Lt;if(i||Rn){const s=i?i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:Rn._context.provides;if(s&&t in s)return s[t];if(arguments.length>1)return n&&it(e)?e.call(i&&i.proxy):e}}function Ec(){return!!(Tt||Lt||Rn)}function $c(t,e,n,i=!1){const s={},o={};oi(o,Li,1),t.propsDefaults=Object.create(null),Ur(t,e,s,o);for(const r in t.propsOptions[0])r in s||(s[r]=void 0);n?t.props=i?s:Hu(s):t.type.props?t.props=s:t.props=o,t.attrs=o}function Tc(t,e,n,i){const{props:s,attrs:o,vnode:{patchFlag:r}}=t,l=ut(s),[a]=t.propsOptions;let c=!1;if((i||r>0)&&!(r&16)){if(r&8){const u=t.vnode.dynamicProps;for(let f=0;f<u.length;f++){let d=u[f];if(mi(t.emitsOptions,d))continue;const m=e[d];if(a)if(dt(o,d))m!==o[d]&&(o[d]=m,c=!0);else{const g=oe(d);s[g]=Hs(a,l,g,m,t,!1)}else m!==o[d]&&(o[d]=m,c=!0)}}}else{Ur(t,e,s,o)&&(c=!0);let u;for(const f in l)(!e||!dt(e,f)&&((u=on(f))===f||!dt(e,u)))&&(a?n&&(n[f]!==void 0||n[u]!==void 0)&&(s[f]=Hs(a,l,f,void 0,t,!0)):delete s[f]);if(o!==l)for(const f in o)(!e||!dt(e,f))&&(delete o[f],c=!0)}c&&pe(t,"set","$attrs")}function Ur(t,e,n,i){const[s,o]=t.propsOptions;let r=!1,l;if(e)for(let a in e){if(ni(a))continue;const c=e[a];let u;s&&dt(s,u=oe(a))?!o||!o.includes(u)?n[u]=c:(l||(l={}))[u]=c:mi(t.emitsOptions,a)||(!(a in i)||c!==i[a])&&(i[a]=c,r=!0)}if(o){const a=ut(n),c=l||_t;for(let u=0;u<o.length;u++){const f=o[u];n[f]=Hs(s,a,f,c[f],t,!dt(c,f))}}return r}function Hs(t,e,n,i,s,o){const r=t[n];if(r!=null){const l=dt(r,"default");if(l&&i===void 0){const a=r.default;if(r.type!==Function&&!r.skipFactory&&it(a)){const{propsDefaults:c}=s;n in c?i=c[n]:(gn(s),i=c[n]=a.call(null,e),qe())}else i=a}r[0]&&(o&&!l?i=!1:r[1]&&(i===""||i===on(n))&&(i=!0))}return i}function jr(t,e,n=!1){const i=e.propsCache,s=i.get(t);if(s)return s;const o=t.props,r={},l=[];let a=!1;if(!it(t)){const u=f=>{a=!0;const[d,m]=jr(f,e,!0);$t(r,d),m&&l.push(...m)};!n&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}if(!o&&!a)return yt(t)&&i.set(t,nn),nn;if(X(o))for(let u=0;u<o.length;u++){const f=oe(o[u]);Wr(f)&&(r[f]=_t)}else if(o)for(const u in o){const f=oe(u);if(Wr(f)){const d=o[u],m=r[f]=X(d)||it(d)?{type:d}:$t({},d);if(m){const g=qr(Boolean,m.type),_=qr(String,m.type);m[0]=g>-1,m[1]=_<0||g<_,(g>-1||dt(m,"default"))&&l.push(f)}}}const c=[r,l];return yt(t)&&i.set(t,c),c}function Wr(t){return t[0]!=="$"}function Zr(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function zr(t,e){return Zr(t)===Zr(e)}function qr(t,e){return X(e)?e.findIndex(n=>zr(n,t)):it(e)&&zr(e,t)?0:-1}const Kr=t=>t[0]==="_"||t==="$stable",Is=t=>X(t)?t.map(le):[le(t)],Lc=(t,e,n)=>{if(e._n)return e;const i=Dt((...s)=>Is(e(...s)),n);return i._c=!1,i},Jr=(t,e,n)=>{const i=t._ctx;for(const s in t){if(Kr(s))continue;const o=t[s];if(it(o))e[s]=Lc(s,o,i);else if(o!=null){const r=Is(o);e[s]=()=>r}}},Qr=(t,e)=>{const n=Is(e);t.slots.default=()=>n},Mc=(t,e)=>{if(t.vnode.shapeFlag&32){const n=e._;n?(t.slots=ut(e),oi(e,"_",n)):Jr(e,t.slots={})}else t.slots={},e&&Qr(t,e);oi(t.slots,Li,1)},Rc=(t,e,n)=>{const{vnode:i,slots:s}=t;let o=!0,r=_t;if(i.shapeFlag&32){const l=e._;l?n&&l===1?o=!1:($t(s,e),!n&&l===1&&delete s._):(o=!e.$stable,Jr(e,s)),r=e}else e&&(Qr(t,e),r={default:1});if(o)for(const l in s)!Kr(l)&&r[l]==null&&delete s[l]};function Os(t,e,n,i,s=!1){if(X(t)){t.forEach((d,m)=>Os(d,e&&(X(e)?e[m]:e),n,i,s));return}if(Tn(i)&&!s)return;const o=i.shapeFlag&4?Ri(i.component)||i.component.proxy:i.el,r=s?null:o,{i:l,r:a}=t,c=e&&e.r,u=l.refs===_t?l.refs={}:l.refs,f=l.setupState;if(c!=null&&c!==a&&(wt(c)?(u[c]=null,dt(f,c)&&(f[c]=null)):Ct(c)&&(c.value=null)),it(a))$e(a,l,12,[r,u]);else{const d=wt(a),m=Ct(a);if(d||m){const g=()=>{if(t.f){const _=d?dt(f,a)?f[a]:u[a]:a.value;s?X(_)&&rs(_,o):X(_)?_.includes(o)||_.push(o):d?(u[a]=[o],dt(f,a)&&(f[a]=u[a])):(a.value=[o],t.k&&(u[t.k]=a.value))}else d?(u[a]=r,dt(f,a)&&(f[a]=r)):m&&(a.value=r,t.k&&(u[t.k]=r))};r?(g.id=-1,Vt(g,n)):g()}}}const Vt=ec;function Ac(t){return Pc(t)}function Pc(t,e){const n=cs();n.__VUE__=!0;const{insert:i,remove:s,patchProp:o,createElement:r,createText:l,createComment:a,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:m=te,insertStaticContent:g}=t,_=(h,y,k,T=null,L=null,H=null,U=!1,P=null,O=!!y.dynamicChildren)=>{if(h===y)return;h&&!ze(h,y)&&(T=Ge(h),Wt(h,L,H,!0),h=null),y.patchFlag===-2&&(O=!1,y.dynamicChildren=null);const{type:R,ref:K,shapeFlag:W}=y;switch(R){case $i:C(h,y,k,T);break;case Jt:w(h,y,k,T);break;case Fs:h==null&&E(y,k,T,U);break;case gt:I(h,y,k,T,L,H,U,P,O);break;default:W&1?D(h,y,k,T,L,H,U,P,O):W&6?et(h,y,k,T,L,H,U,P,O):(W&64||W&128)&&R.process(h,y,k,T,L,H,U,P,O,Ce)}K!=null&&L&&Os(K,h&&h.ref,H,y||h,!y)},C=(h,y,k,T)=>{if(h==null)i(y.el=l(y.children),k,T);else{const L=y.el=h.el;y.children!==h.children&&c(L,y.children)}},w=(h,y,k,T)=>{h==null?i(y.el=a(y.children||""),k,T):y.el=h.el},E=(h,y,k,T)=>{[h.el,h.anchor]=g(h.children,y,k,T,h.el,h.anchor)},A=({el:h,anchor:y},k,T)=>{let L;for(;h&&h!==y;)L=d(h),i(h,k,T),h=L;i(y,k,T)},$=({el:h,anchor:y})=>{let k;for(;h&&h!==y;)k=d(h),s(h),h=k;s(y)},D=(h,y,k,T,L,H,U,P,O)=>{U=U||y.type==="svg",h==null?G(y,k,T,L,H,U,P,O):F(h,y,L,H,U,P,O)},G=(h,y,k,T,L,H,U,P)=>{let O,R;const{type:K,props:W,shapeFlag:J,transition:nt,dirs:rt}=h;if(O=h.el=r(h.type,H,W&&W.is,W),J&8?u(O,h.children):J&16&&M(h.children,O,null,T,L,H&&K!=="foreignObject",U,P),rt&&We(h,null,T,"created"),z(O,h,h.scopeId,U,T),W){for(const ht in W)ht!=="value"&&!ni(ht)&&o(O,ht,null,W[ht],H,h.children,T,L,Gt);"value"in W&&o(O,"value",null,W.value),(R=W.onVnodeBeforeMount)&&ae(R,T,h)}rt&&We(h,null,T,"beforeMount");const mt=Bc(L,nt);mt&&nt.beforeEnter(O),i(O,y,k),((R=W&&W.onVnodeMounted)||mt||rt)&&Vt(()=>{R&&ae(R,T,h),mt&&nt.enter(O),rt&&We(h,null,T,"mounted")},L)},z=(h,y,k,T,L)=>{if(k&&m(h,k),T)for(let H=0;H<T.length;H++)m(h,T[H]);if(L){let H=L.subTree;if(y===H){const U=L.vnode;z(h,U,U.scopeId,U.slotScopeIds,L.parent)}}},M=(h,y,k,T,L,H,U,P,O=0)=>{for(let R=O;R<h.length;R++){const K=h[R]=P?Me(h[R]):le(h[R]);_(null,K,y,k,T,L,H,U,P)}},F=(h,y,k,T,L,H,U)=>{const P=y.el=h.el;let{patchFlag:O,dynamicChildren:R,dirs:K}=y;O|=h.patchFlag&16;const W=h.props||_t,J=y.props||_t;let nt;k&&Ze(k,!1),(nt=J.onVnodeBeforeUpdate)&&ae(nt,k,y,h),K&&We(y,h,k,"beforeUpdate"),k&&Ze(k,!0);const rt=L&&y.type!=="foreignObject";if(R?Z(h.dynamicChildren,R,P,k,T,rt,H):U||B(h,y,P,null,k,T,rt,H,!1),O>0){if(O&16)Q(P,y,W,J,k,T,L);else if(O&2&&W.class!==J.class&&o(P,"class",null,J.class,L),O&4&&o(P,"style",W.style,J.style,L),O&8){const mt=y.dynamicProps;for(let ht=0;ht<mt.length;ht++){const Et=mt[ht],se=W[Et],Cn=J[Et];(Cn!==se||Et==="value")&&o(P,Et,se,Cn,L,h.children,k,T,Gt)}}O&1&&h.children!==y.children&&u(P,y.children)}else!U&&R==null&&Q(P,y,W,J,k,T,L);((nt=J.onVnodeUpdated)||K)&&Vt(()=>{nt&&ae(nt,k,y,h),K&&We(y,h,k,"updated")},T)},Z=(h,y,k,T,L,H,U)=>{for(let P=0;P<y.length;P++){const O=h[P],R=y[P],K=O.el&&(O.type===gt||!ze(O,R)||O.shapeFlag&70)?f(O.el):k;_(O,R,K,null,T,L,H,U,!0)}},Q=(h,y,k,T,L,H,U)=>{if(k!==T){if(k!==_t)for(const P in k)!ni(P)&&!(P in T)&&o(h,P,k[P],null,U,y.children,L,H,Gt);for(const P in T){if(ni(P))continue;const O=T[P],R=k[P];O!==R&&P!=="value"&&o(h,P,R,O,U,y.children,L,H,Gt)}"value"in T&&o(h,"value",k.value,T.value)}},I=(h,y,k,T,L,H,U,P,O)=>{const R=y.el=h?h.el:l(""),K=y.anchor=h?h.anchor:l("");let{patchFlag:W,dynamicChildren:J,slotScopeIds:nt}=y;nt&&(P=P?P.concat(nt):nt),h==null?(i(R,k,T),i(K,k,T),M(y.children,k,K,L,H,U,P,O)):W>0&&W&64&&J&&h.dynamicChildren?(Z(h.dynamicChildren,J,k,L,H,U,P),(y.key!=null||L&&y===L.subTree)&&Ns(h,y,!0)):B(h,y,k,K,L,H,U,P,O)},et=(h,y,k,T,L,H,U,P,O)=>{y.slotScopeIds=P,h==null?y.shapeFlag&512?L.ctx.activate(y,k,T,U,O):ft(y,k,T,L,H,U,O):St(h,y,O)},ft=(h,y,k,T,L,H,U)=>{const P=h.component=Zc(h,T,L);if(bi(h)&&(P.ctx.renderer=Ce),zc(P),P.asyncDep){if(L&&L.registerDep(P,ot),!h.el){const O=P.subTree=j(Jt);w(null,O,y,k)}return}ot(P,h,y,k,L,H,U)},St=(h,y,k)=>{const T=y.component=h.component;if(Yu(h,y,k))if(T.asyncDep&&!T.asyncResolved){tt(T,y,k);return}else T.next=y,zu(T.update),T.update();else y.el=h.el,T.vnode=y},ot=(h,y,k,T,L,H,U)=>{const P=()=>{if(h.isMounted){let{next:K,bu:W,u:J,parent:nt,vnode:rt}=h,mt=K,ht;Ze(h,!1),K?(K.el=rt.el,tt(h,K,U)):K=rt,W&&us(W),(ht=K.props&&K.props.onVnodeBeforeUpdate)&&ae(ht,nt,K,rt),Ze(h,!0);const Et=Ss(h),se=h.subTree;h.subTree=Et,_(se,Et,f(se.el),Ge(se),h,L,H),K.el=Et.el,mt===null&&Gu(h,Et.el),J&&Vt(J,L),(ht=K.props&&K.props.onVnodeUpdated)&&Vt(()=>ae(ht,nt,K,rt),L)}else{let K;const{el:W,props:J}=y,{bm:nt,m:rt,parent:mt}=h,ht=Tn(y);if(Ze(h,!1),nt&&us(nt),!ht&&(K=J&&J.onVnodeBeforeMount)&&ae(K,mt,y),Ze(h,!0),W&&tn){const Et=()=>{h.subTree=Ss(h),tn(W,h.subTree,h,L,null)};ht?y.type.__asyncLoader().then(()=>!h.isUnmounted&&Et()):Et()}else{const Et=h.subTree=Ss(h);_(null,Et,k,T,h,L,H),y.el=Et.el}if(rt&&Vt(rt,L),!ht&&(K=J&&J.onVnodeMounted)){const Et=y;Vt(()=>ae(K,mt,Et),L)}(y.shapeFlag&256||mt&&Tn(mt.vnode)&&mt.vnode.shapeFlag&256)&&h.a&&Vt(h.a,L),h.isMounted=!0,y=k=T=null}},O=h.effect=new gs(P,()=>ks(R),h.scope),R=h.update=()=>O.run();R.id=h.uid,Ze(h,!0),R()},tt=(h,y,k)=>{y.component=h;const T=h.vnode.props;h.vnode=y,h.next=null,Tc(h,y.props,T,k),Rc(h,y.children,k),ln(),mr(),an()},B=(h,y,k,T,L,H,U,P,O=!1)=>{const R=h&&h.children,K=h?h.shapeFlag:0,W=y.children,{patchFlag:J,shapeFlag:nt}=y;if(J>0){if(J&128){bt(R,W,k,T,L,H,U,P,O);return}else if(J&256){at(R,W,k,T,L,H,U,P,O);return}}nt&8?(K&16&&Gt(R,L,H),W!==R&&u(k,W)):K&16?nt&16?bt(R,W,k,T,L,H,U,P,O):Gt(R,L,H,!0):(K&8&&u(k,""),nt&16&&M(W,k,T,L,H,U,P,O))},at=(h,y,k,T,L,H,U,P,O)=>{h=h||nn,y=y||nn;const R=h.length,K=y.length,W=Math.min(R,K);let J;for(J=0;J<W;J++){const nt=y[J]=O?Me(y[J]):le(y[J]);_(h[J],nt,k,null,L,H,U,P,O)}R>K?Gt(h,L,H,!0,!1,W):M(y,k,T,L,H,U,P,O,W)},bt=(h,y,k,T,L,H,U,P,O)=>{let R=0;const K=y.length;let W=h.length-1,J=K-1;for(;R<=W&&R<=J;){const nt=h[R],rt=y[R]=O?Me(y[R]):le(y[R]);if(ze(nt,rt))_(nt,rt,k,null,L,H,U,P,O);else break;R++}for(;R<=W&&R<=J;){const nt=h[W],rt=y[J]=O?Me(y[J]):le(y[J]);if(ze(nt,rt))_(nt,rt,k,null,L,H,U,P,O);else break;W--,J--}if(R>W){if(R<=J){const nt=J+1,rt=nt<K?y[nt].el:T;for(;R<=J;)_(null,y[R]=O?Me(y[R]):le(y[R]),k,rt,L,H,U,P,O),R++}}else if(R>J)for(;R<=W;)Wt(h[R],L,H,!0),R++;else{const nt=R,rt=R,mt=new Map;for(R=rt;R<=J;R++){const Zt=y[R]=O?Me(y[R]):le(y[R]);Zt.key!=null&&mt.set(Zt.key,R)}let ht,Et=0;const se=J-rt+1;let Cn=!1,Xa=0;const Yn=new Array(se);for(R=0;R<se;R++)Yn[R]=0;for(R=nt;R<=W;R++){const Zt=h[R];if(Et>=se){Wt(Zt,L,H,!0);continue}let fe;if(Zt.key!=null)fe=mt.get(Zt.key);else for(ht=rt;ht<=J;ht++)if(Yn[ht-rt]===0&&ze(Zt,y[ht])){fe=ht;break}fe===void 0?Wt(Zt,L,H,!0):(Yn[fe-rt]=R+1,fe>=Xa?Xa=fe:Cn=!0,_(Zt,y[fe],k,null,L,H,U,P,O),Et++)}const Ya=Cn?Hc(Yn):nn;for(ht=Ya.length-1,R=se-1;R>=0;R--){const Zt=rt+R,fe=y[Zt],Ga=Zt+1<K?y[Zt+1].el:T;Yn[R]===0?_(null,fe,k,Ga,L,H,U,P,O):Cn&&(ht<0||R!==Ya[ht]?Bt(fe,k,Ga,2):ht--)}}},Bt=(h,y,k,T,L=null)=>{const{el:H,type:U,transition:P,children:O,shapeFlag:R}=h;if(R&6){Bt(h.component.subTree,y,k,T);return}if(R&128){h.suspense.move(y,k,T);return}if(R&64){U.move(h,y,k,Ce);return}if(U===gt){i(H,y,k);for(let W=0;W<O.length;W++)Bt(O[W],y,k,T);i(h.anchor,y,k);return}if(U===Fs){A(h,y,k);return}if(T!==2&&R&1&&P)if(T===0)P.beforeEnter(H),i(H,y,k),Vt(()=>P.enter(H),L);else{const{leave:W,delayLeave:J,afterLeave:nt}=P,rt=()=>i(H,y,k),mt=()=>{W(H,()=>{rt(),nt&&nt()})};J?J(H,rt,mt):mt()}else i(H,y,k)},Wt=(h,y,k,T=!1,L=!1)=>{const{type:H,props:U,ref:P,children:O,dynamicChildren:R,shapeFlag:K,patchFlag:W,dirs:J}=h;if(P!=null&&Os(P,null,k,h,!0),K&256){y.ctx.deactivate(h);return}const nt=K&1&&J,rt=!Tn(h);let mt;if(rt&&(mt=U&&U.onVnodeBeforeUnmount)&&ae(mt,y,h),K&6)ss(h.component,k,T);else{if(K&128){h.suspense.unmount(k,T);return}nt&&We(h,null,y,"beforeUnmount"),K&64?h.type.remove(h,y,k,L,Ce,T):R&&(H!==gt||W>0&&W&64)?Gt(R,y,k,!1,!0):(H===gt&&W&384||!L&&K&16)&&Gt(O,y,k),T&&Qn(h)}(rt&&(mt=U&&U.onVnodeUnmounted)||nt)&&Vt(()=>{mt&&ae(mt,y,h),nt&&We(h,null,y,"unmounted")},k)},Qn=h=>{const{type:y,el:k,anchor:T,transition:L}=h;if(y===gt){is(k,T);return}if(y===Fs){$(h);return}const H=()=>{s(k),L&&!L.persisted&&L.afterLeave&&L.afterLeave()};if(h.shapeFlag&1&&L&&!L.persisted){const{leave:U,delayLeave:P}=L,O=()=>U(k,H);P?P(h.el,H,O):O()}else H()},is=(h,y)=>{let k;for(;h!==y;)k=d(h),s(h),h=k;s(y)},ss=(h,y,k)=>{const{bum:T,scope:L,update:H,subTree:U,um:P}=h;T&&us(T),L.stop(),H&&(H.active=!1,Wt(U,h,y,k)),P&&Vt(P,y),Vt(()=>{h.isUnmounted=!0},y),y&&y.pendingBranch&&!y.isUnmounted&&h.asyncDep&&!h.asyncResolved&&h.suspenseId===y.pendingId&&(y.deps--,y.deps===0&&y.resolve())},Gt=(h,y,k,T=!1,L=!1,H=0)=>{for(let U=H;U<h.length;U++)Wt(h[U],y,k,T,L)},Ge=h=>h.shapeFlag&6?Ge(h.component.subTree):h.shapeFlag&128?h.suspense.next():d(h.anchor||h.el),Xn=(h,y,k)=>{h==null?y._vnode&&Wt(y._vnode,null,null,!0):_(y._vnode||null,h,y,null,null,null,k),mr(),_r(),y._vnode=h},Ce={p:_,um:Wt,m:Bt,r:Qn,mt:ft,mc:M,pc:B,pbc:Z,n:Ge,o:t};let bn,tn;return e&&([bn,tn]=e(Ce)),{render:Xn,hydrate:bn,createApp:kc(Xn,bn)}}function Ze({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function Bc(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function Ns(t,e,n=!1){const i=t.children,s=e.children;if(X(i)&&X(s))for(let o=0;o<i.length;o++){const r=i[o];let l=s[o];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=s[o]=Me(s[o]),l.el=r.el),n||Ns(r,l)),l.type===$i&&(l.el=r.el)}}function Hc(t){const e=t.slice(),n=[0];let i,s,o,r,l;const a=t.length;for(i=0;i<a;i++){const c=t[i];if(c!==0){if(s=n[n.length-1],t[s]<c){e[i]=s,n.push(i);continue}for(o=0,r=n.length-1;o<r;)l=o+r>>1,t[n[l]]<c?o=l+1:r=l;c<t[n[o]]&&(o>0&&(e[i]=n[o-1]),n[o]=i)}}for(o=n.length,r=n[o-1];o-- >0;)n[o]=r,r=e[r];return n}const Ic=t=>t.__isTeleport,An=t=>t&&(t.disabled||t.disabled===""),Xr=t=>typeof SVGElement<"u"&&t instanceof SVGElement,Ds=(t,e)=>{const n=t&&t.to;return wt(n)?e?e(n):null:n},Oc={__isTeleport:!0,process(t,e,n,i,s,o,r,l,a,c){const{mc:u,pc:f,pbc:d,o:{insert:m,querySelector:g,createText:_,createComment:C}}=c,w=An(e.props);let{shapeFlag:E,children:A,dynamicChildren:$}=e;if(t==null){const D=e.el=_(""),G=e.anchor=_("");m(D,n,i),m(G,n,i);const z=e.target=Ds(e.props,g),M=e.targetAnchor=_("");z&&(m(M,z),r=r||Xr(z));const F=(Z,Q)=>{E&16&&u(A,Z,Q,s,o,r,l,a)};w?F(n,G):z&&F(z,M)}else{e.el=t.el;const D=e.anchor=t.anchor,G=e.target=t.target,z=e.targetAnchor=t.targetAnchor,M=An(t.props),F=M?n:G,Z=M?D:z;if(r=r||Xr(G),$?(d(t.dynamicChildren,$,F,s,o,r,l),Ns(t,e,!0)):a||f(t,e,F,Z,s,o,r,l,!1),w)M?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):Ei(e,n,D,c,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const Q=e.target=Ds(e.props,g);Q&&Ei(e,Q,null,c,0)}else M&&Ei(e,G,z,c,1)}Yr(e)},remove(t,e,n,i,{um:s,o:{remove:o}},r){const{shapeFlag:l,children:a,anchor:c,targetAnchor:u,target:f,props:d}=t;if(f&&o(u),r&&o(c),l&16){const m=r||!An(d);for(let g=0;g<a.length;g++){const _=a[g];s(_,e,n,m,!!_.dynamicChildren)}}},move:Ei,hydrate:Nc};function Ei(t,e,n,{o:{insert:i},m:s},o=2){o===0&&i(t.targetAnchor,e,n);const{el:r,anchor:l,shapeFlag:a,children:c,props:u}=t,f=o===2;if(f&&i(r,e,n),(!f||An(u))&&a&16)for(let d=0;d<c.length;d++)s(c[d],e,n,2);f&&i(l,e,n)}function Nc(t,e,n,i,s,o,{o:{nextSibling:r,parentNode:l,querySelector:a}},c){const u=e.target=Ds(e.props,a);if(u){const f=u._lpa||u.firstChild;if(e.shapeFlag&16)if(An(e.props))e.anchor=c(r(t),e,l(t),n,i,s,o),e.targetAnchor=f;else{e.anchor=r(t);let d=f;for(;d;)if(d=r(d),d&&d.nodeType===8&&d.data==="teleport anchor"){e.targetAnchor=d,u._lpa=e.targetAnchor&&r(e.targetAnchor);break}c(f,e,u,n,i,s,o)}Yr(e)}return e.anchor&&r(e.anchor)}const Dc=Oc;function Yr(t){const e=t.ctx;if(e&&e.ut){let n=t.children[0].el;for(;n&&n!==t.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",e.uid),n=n.nextSibling;e.ut()}}const gt=Symbol.for("v-fgt"),$i=Symbol.for("v-txt"),Jt=Symbol.for("v-cmt"),Fs=Symbol.for("v-stc"),Pn=[];let ne=null;function v(t=!1){Pn.push(ne=t?null:[])}function Fc(){Pn.pop(),ne=Pn[Pn.length-1]||null}let Bn=1;function Gr(t){Bn+=t}function tl(t){return t.dynamicChildren=Bn>0?ne||nn:null,Fc(),Bn>0&&ne&&ne.push(t),t}function x(t,e,n,i,s,o){return tl(p(t,e,n,i,s,o,!0))}function pt(t,e,n,i,s){return tl(j(t,e,n,i,s,!0))}function Ti(t){return t?t.__v_isVNode===!0:!1}function ze(t,e){return t.type===e.type&&t.key===e.key}const Li="__vInternal",el=({key:t})=>t??null,Mi=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?wt(t)||Ct(t)||it(t)?{i:Lt,r:t,k:e,f:!!n}:t:null);function p(t,e=null,n=null,i=0,s=null,o=t===gt?0:1,r=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&el(e),ref:e&&Mi(e),scopeId:_i,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:i,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Lt};return l?(Vs(a,n),o&128&&t.normalize(a)):n&&(a.shapeFlag|=wt(n)?8:16),Bn>0&&!r&&ne&&(a.patchFlag>0||o&6)&&a.patchFlag!==32&&ne.push(a),a}const j=Vc;function Vc(t,e=null,n=null,i=0,s=null,o=!1){if((!t||t===Rr)&&(t=Jt),Ti(t)){const l=Le(t,e,!0);return n&&Vs(l,n),Bn>0&&!o&&ne&&(l.shapeFlag&6?ne[ne.indexOf(t)]=l:ne.push(l)),l.patchFlag|=-2,l}if(Xc(t)&&(t=t.__vccOpts),e){e=Uc(e);let{class:l,style:a}=e;l&&!wt(l)&&(e.class=V(l)),yt(a)&&(cr(a)&&!X(a)&&(a=$t({},a)),e.style=rn(a))}const r=wt(t)?1:tc(t)?128:Ic(t)?64:yt(t)?4:it(t)?2:0;return p(t,e,n,i,s,r,o,!0)}function Uc(t){return t?cr(t)||Li in t?$t({},t):t:null}function Le(t,e,n=!1){const{props:i,ref:s,patchFlag:o,children:r}=t,l=e?nl(i||{},e):i;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:l,key:l&&el(l),ref:e&&e.ref?n&&s?X(s)?s.concat(Mi(e)):[s,Mi(e)]:Mi(e):s,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:r,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==gt?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Le(t.ssContent),ssFallback:t.ssFallback&&Le(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function me(t=" ",e=0){return j($i,null,t,e)}function st(t="",e=!1){return e?(v(),pt(Jt,null,t)):j(Jt,null,t)}function le(t){return t==null||typeof t=="boolean"?j(Jt):X(t)?j(gt,null,t.slice()):typeof t=="object"?Me(t):j($i,null,String(t))}function Me(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Le(t)}function Vs(t,e){let n=0;const{shapeFlag:i}=t;if(e==null)e=null;else if(X(e))n=16;else if(typeof e=="object")if(i&65){const s=e.default;s&&(s._c&&(s._d=!1),Vs(t,s()),s._c&&(s._d=!0));return}else{n=32;const s=e._;!s&&!(Li in e)?e._ctx=Lt:s===3&&Lt&&(Lt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else it(e)?(e={default:e,_ctx:Lt},n=32):(e=String(e),i&64?(n=16,e=[me(e)]):n=8);t.children=e,t.shapeFlag|=n}function nl(...t){const e={};for(let n=0;n<t.length;n++){const i=t[n];for(const s in i)if(s==="class")e.class!==i.class&&(e.class=V([e.class,i.class]));else if(s==="style")e.style=rn([e.style,i.style]);else if(Gn(s)){const o=e[s],r=i[s];r&&o!==r&&!(X(o)&&o.includes(r))&&(e[s]=o?[].concat(o,r):r)}else s!==""&&(e[s]=i[s])}return e}function ae(t,e,n,i=null){zt(t,e,7,[n,i])}const jc=Vr();let Wc=0;function Zc(t,e,n){const i=t.type,s=(e?e.appContext:t.appContext)||jc,o={uid:Wc++,vnode:t,type:i,parent:e,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new jo(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:jr(i,s),emitsOptions:vr(i,s),emit:null,emitted:null,propsDefaults:_t,inheritAttrs:i.inheritAttrs,ctx:_t,data:_t,props:_t,attrs:_t,slots:_t,refs:_t,setupState:_t,setupContext:null,attrsProxy:null,slotsProxy: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=e?e.root:o,o.emit=Ju.bind(null,o),t.ce&&t.ce(o),o}let Tt=null;const Us=()=>Tt||Lt;let js,hn,il="__VUE_INSTANCE_SETTERS__";(hn=cs()[il])||(hn=cs()[il]=[]),hn.push(t=>Tt=t),js=t=>{hn.length>1?hn.forEach(e=>e(t)):hn[0](t)};const gn=t=>{js(t),t.scope.on()},qe=()=>{Tt&&Tt.scope.off(),js(null)};function sl(t){return t.vnode.shapeFlag&4}let Hn=!1;function zc(t,e=!1){Hn=e;const{props:n,children:i}=t.vnode,s=sl(t);$c(t,n,s,e),Mc(t,i);const o=s?qc(t,e):void 0;return Hn=!1,o}function qc(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=kn(new Proxy(t.ctx,_c));const{setup:i}=n;if(i){const s=t.setupContext=i.length>1?Jc(t):null;gn(t),ln();const o=$e(i,t,0,[t.props,s]);if(an(),qe(),Oo(o)){if(o.then(qe,qe),e)return o.then(r=>{ol(t,r,e)}).catch(r=>{gi(r,t,0)});t.asyncDep=o}else ol(t,o,e)}else ll(t,e)}function ol(t,e,n){it(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:yt(e)&&(t.setupState=pr(e)),ll(t,n)}let rl;function ll(t,e,n){const i=t.type;if(!t.render){if(!e&&rl&&!i.render){const s=i.template||Ps(t).template;if(s){const{isCustomElement:o,compilerOptions:r}=t.appContext.config,{delimiters:l,compilerOptions:a}=i,c=$t($t({isCustomElement:o,delimiters:l},r),a);i.render=rl(s,c)}}t.render=i.render||te}{gn(t),ln();try{yc(t)}finally{an(),qe()}}}function Kc(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,n){return Nt(t,"get","$attrs"),e[n]}}))}function Jc(t){const e=n=>{t.exposed=n||{}};return{get attrs(){return Kc(t)},slots:t.slots,emit:t.emit,expose:e}}function Ri(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(pr(kn(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in Ln)return Ln[n](t)},has(e,n){return n in e||n in Ln}}))}function Qc(t,e=!0){return it(t)?t.displayName||t.name:t.name||e&&t.__name}function Xc(t){return it(t)&&"__vccOpts"in t}const Y=(t,e)=>ju(t,e,Hn);function al(t,e,n){const i=arguments.length;return i===2?yt(e)&&!X(e)?Ti(e)?j(t,null,[e]):j(t,e):j(t,null,e):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&Ti(n)&&(n=[n]),j(t,e,n))}const Yc=Symbol.for("v-scx"),Gc=()=>pn(Yc),td="3.3.7",ed="http://www.w3.org/2000/svg",Ke=typeof document<"u"?document:null,ul=Ke&&Ke.createElement("template"),nd={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,i)=>{const s=e?Ke.createElementNS(ed,t):Ke.createElement(t,n?{is:n}:void 0);return t==="select"&&i&&i.multiple!=null&&s.setAttribute("multiple",i.multiple),s},createText:t=>Ke.createTextNode(t),createComment:t=>Ke.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Ke.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,i,s,o){const r=n?n.previousSibling:e.lastChild;if(s&&(s===o||s.nextSibling))for(;e.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{ul.innerHTML=i?`<svg>${t}</svg>`:t;const l=ul.content;if(i){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}e.insertBefore(l,n)}return[r?r.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},Re="transition",In="animation",On=Symbol("_vtc"),It=(t,{slots:e})=>al(oc,id(t),e);It.displayName="Transition";const cl={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};It.props=$t({},kr,cl);const Je=(t,e=[])=>{X(t)?t.forEach(n=>n(...e)):t&&t(...e)},dl=t=>t?X(t)?t.some(e=>e.length>1):t.length>1:!1;function id(t){const e={};for(const I in t)I in cl||(e[I]=t[I]);if(t.css===!1)return e;const{name:n="v",type:i,duration:s,enterFromClass:o=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=o,appearActiveClass:c=r,appearToClass:u=l,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=t,g=sd(s),_=g&&g[0],C=g&&g[1],{onBeforeEnter:w,onEnter:E,onEnterCancelled:A,onLeave:$,onLeaveCancelled:D,onBeforeAppear:G=w,onAppear:z=E,onAppearCancelled:M=A}=e,F=(I,et,ft)=>{Qe(I,et?u:l),Qe(I,et?c:r),ft&&ft()},Z=(I,et)=>{I._isLeaving=!1,Qe(I,f),Qe(I,m),Qe(I,d),et&&et()},Q=I=>(et,ft)=>{const St=I?z:E,ot=()=>F(et,I,ft);Je(St,[et,ot]),fl(()=>{Qe(et,I?a:o),Ae(et,I?u:l),dl(St)||pl(et,i,_,ot)})};return $t(e,{onBeforeEnter(I){Je(w,[I]),Ae(I,o),Ae(I,r)},onBeforeAppear(I){Je(G,[I]),Ae(I,a),Ae(I,c)},onEnter:Q(!1),onAppear:Q(!0),onLeave(I,et){I._isLeaving=!0;const ft=()=>Z(I,et);Ae(I,f),ld(),Ae(I,d),fl(()=>{I._isLeaving&&(Qe(I,f),Ae(I,m),dl($)||pl(I,i,C,ft))}),Je($,[I,ft])},onEnterCancelled(I){F(I,!1),Je(A,[I])},onAppearCancelled(I){F(I,!0),Je(M,[I])},onLeaveCancelled(I){Z(I),Je(D,[I])}})}function sd(t){if(t==null)return null;if(yt(t))return[Ws(t.enter),Ws(t.leave)];{const e=Ws(t);return[e,e]}}function Ws(t){return lu(t)}function Ae(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[On]||(t[On]=new Set)).add(e)}function Qe(t,e){e.split(/\s+/).forEach(i=>i&&t.classList.remove(i));const n=t[On];n&&(n.delete(e),n.size||(t[On]=void 0))}function fl(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let od=0;function pl(t,e,n,i){const s=t._endId=++od,o=()=>{s===t._endId&&i()};if(n)return setTimeout(o,n);const{type:r,timeout:l,propCount:a}=rd(t,e);if(!r)return i();const c=r+"end";let u=0;const f=()=>{t.removeEventListener(c,d),o()},d=m=>{m.target===t&&++u>=a&&f()};setTimeout(()=>{u<a&&f()},l+1),t.addEventListener(c,d)}function rd(t,e){const n=window.getComputedStyle(t),i=g=>(n[g]||"").split(", "),s=i(`${Re}Delay`),o=i(`${Re}Duration`),r=hl(s,o),l=i(`${In}Delay`),a=i(`${In}Duration`),c=hl(l,a);let u=null,f=0,d=0;e===Re?r>0&&(u=Re,f=r,d=o.length):e===In?c>0&&(u=In,f=c,d=a.length):(f=Math.max(r,c),u=f>0?r>c?Re:In:null,d=u?u===Re?o.length:a.length:0);const m=u===Re&&/\b(transform|all)(,|$)/.test(i(`${Re}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:m}}function hl(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((n,i)=>gl(n)+gl(t[i])))}function gl(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function ld(){return document.body.offsetHeight}function ad(t,e,n){const i=t[On];i&&(e=(e?[e,...i]:[...i]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const Zs=Symbol("_vod"),Pe={beforeMount(t,{value:e},{transition:n}){t[Zs]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):Nn(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:i}){!e!=!n&&(i?e?(i.beforeEnter(t),Nn(t,!0),i.enter(t)):i.leave(t,()=>{Nn(t,!1)}):Nn(t,e))},beforeUnmount(t,{value:e}){Nn(t,e)}};function Nn(t,e){t.style.display=e?t[Zs]:"none"}function ud(t,e,n){const i=t.style,s=wt(n);if(n&&!s){if(e&&!wt(e))for(const o in e)n[o]==null&&zs(i,o,"");for(const o in n)zs(i,o,n[o])}else{const o=i.display;s?e!==n&&(i.cssText=n):e&&t.removeAttribute("style"),Zs in t&&(i.display=o)}}const ml=/\s*!important$/;function zs(t,e,n){if(X(n))n.forEach(i=>zs(t,e,i));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const i=cd(t,e);ml.test(n)?t.setProperty(on(i),n.replace(ml,""),"important"):t[i]=n}}const _l=["Webkit","Moz","ms"],qs={};function cd(t,e){const n=qs[e];if(n)return n;let i=oe(e);if(i!=="filter"&&i in t)return qs[e]=i;i=si(i);for(let s=0;s<_l.length;s++){const o=_l[s]+i;if(o in t)return qs[e]=o}return e}const yl="http://www.w3.org/1999/xlink";function dd(t,e,n,i,s){if(i&&e.startsWith("xlink:"))n==null?t.removeAttributeNS(yl,e.slice(6,e.length)):t.setAttributeNS(yl,e,n);else{const o=fu(e);n==null||o&&!Vo(n)?t.removeAttribute(e):t.setAttribute(e,o?"":n)}}function fd(t,e,n,i,s,o,r){if(e==="innerHTML"||e==="textContent"){i&&r(i,s,o),t[e]=n??"";return}const l=t.tagName;if(e==="value"&&l!=="PROGRESS"&&!l.includes("-")){t._value=n;const c=l==="OPTION"?t.getAttribute("value"):t.value,u=n??"";c!==u&&(t.value=u),n==null&&t.removeAttribute(e);return}let a=!1;if(n===""||n==null){const c=typeof t[e];c==="boolean"?n=Vo(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{t[e]=n}catch{}a&&t.removeAttribute(e)}function pd(t,e,n,i){t.addEventListener(e,n,i)}function hd(t,e,n,i){t.removeEventListener(e,n,i)}const vl=Symbol("_vei");function gd(t,e,n,i,s=null){const o=t[vl]||(t[vl]={}),r=o[e];if(i&&r)r.value=i;else{const[l,a]=md(e);if(i){const c=o[e]=vd(i,s);pd(t,l,c,a)}else r&&(hd(t,l,r,a),o[e]=void 0)}}const wl=/(?:Once|Passive|Capture)$/;function md(t){let e;if(wl.test(t)){e={};let i;for(;i=t.match(wl);)t=t.slice(0,t.length-i[0].length),e[i[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):on(t.slice(2)),e]}let Ks=0;const _d=Promise.resolve(),yd=()=>Ks||(_d.then(()=>Ks=0),Ks=Date.now());function vd(t,e){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;zt(wd(i,n.value),e,5,[i])};return n.value=t,n.attached=yd(),n}function wd(t,e){if(X(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(i=>s=>!s._stopped&&i&&i(s))}else return e}const bl=/^on[a-z]/,bd=(t,e,n,i,s=!1,o,r,l,a)=>{e==="class"?ad(t,i,s):e==="style"?ud(t,n,i):Gn(e)?os(e)||gd(t,e,n,i,r):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):Cd(t,e,i,s))?fd(t,e,i,o,r,l,a):(e==="true-value"?t._trueValue=i:e==="false-value"&&(t._falseValue=i),dd(t,e,i,s))};function Cd(t,e,n,i){return i?!!(e==="innerHTML"||e==="textContent"||e in t&&bl.test(e)&&it(n)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||bl.test(e)&&wt(n)?!1:e in t}const xd=["ctrl","shift","alt","meta"],kd={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>xd.some(n=>t[`${n}Key`]&&!e.includes(n))},Js=(t,e)=>(n,...i)=>{for(let s=0;s<e.length;s++){const o=kd[e[s]];if(o&&o(n,e))return}return t(n,...i)},Sd=$t({patchProp:bd},nd);let Cl;function Ed(){return Cl||(Cl=Ac(Sd))}const Ai=(...t)=>{const e=Ed().createApp(...t),{mount:n}=e;return e.mount=i=>{const s=$d(i);if(!s)return;const o=e._component;!it(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.innerHTML="";const r=n(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),r},e};function $d(t){return wt(t)?document.querySelector(t):t}const d5="";function Pi(t){return ds()?(Zo(t),!0):!1}function Dn(t){return typeof t=="function"?t():b(t)}const Qs=typeof window<"u"&&typeof document<"u",Td=t=>t!=null,Ld=Object.prototype.toString,Md=t=>Ld.call(t)==="[object Object]",xl=()=>+Date.now(),Be=()=>{},Rd=Ad();function Ad(){var t;return Qs&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function Pd(t,e){function n(...i){return new Promise((s,o)=>{Promise.resolve(t(()=>e.apply(this,i),{fn:e,thisArg:this,args:i})).then(s).catch(o)})}return n}function Bd(t,e=!0,n=!0,i=!1){let s=0,o,r=!0,l=Be,a;const c=()=>{o&&(clearTimeout(o),o=void 0,l(),l=Be)};return f=>{const d=Dn(t),m=Date.now()-s,g=()=>a=f();return c(),d<=0?(s=Date.now(),g()):(m>d&&(n||!r)?(s=Date.now(),g()):e&&(a=new Promise((_,C)=>{l=i?C:_,o=setTimeout(()=>{s=Date.now(),r=!0,_(g()),c()},Math.max(0,d-m))})),!n&&!o&&(o=setTimeout(()=>r=!0,d)),r=!1,a)}}function Hd(t,e=!0){Us()?dn(t):e?t():xs(t)}function jt(t){var e;const n=Dn(t);return(e=n==null?void 0:n.$el)!=null?e:n}const _e=Qs?window:void 0,Id=Qs?window.document:void 0;function Xe(...t){let e,n,i,s;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,i,s]=t,e=_e):[e,n,i,s]=t,!e)return Be;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const o=[],r=()=>{o.forEach(u=>u()),o.length=0},l=(u,f,d,m)=>(u.addEventListener(f,d,m),()=>u.removeEventListener(f,d,m)),a=At(()=>[jt(e),Dn(s)],([u,f])=>{if(r(),!u)return;const d=Md(f)?{...f}:f;o.push(...n.flatMap(m=>i.map(g=>l(u,m,g,d))))},{immediate:!0,flush:"post"}),c=()=>{a(),r()};return Pi(c),c}let kl=!1;function Sl(t,e,n={}){const{window:i=_e,ignore:s=[],capture:o=!0,detectIframe:r=!1}=n;if(!i)return;Rd&&!kl&&(kl=!0,Array.from(i.document.body.children).forEach(d=>d.addEventListener("click",Be)),i.document.documentElement.addEventListener("click",Be));let l=!0;const a=d=>s.some(m=>{if(typeof m=="string")return Array.from(i.document.querySelectorAll(m)).some(g=>g===d.target||d.composedPath().includes(g));{const g=jt(m);return g&&(d.target===g||d.composedPath().includes(g))}}),u=[Xe(i,"click",d=>{const m=jt(t);if(!(!m||m===d.target||d.composedPath().includes(m))){if(d.detail===0&&(l=!a(d)),!l){l=!0;return}e(d)}},{passive:!0,capture:o}),Xe(i,"pointerdown",d=>{const m=jt(t);m&&(l=!d.composedPath().includes(m)&&!a(d))},{passive:!0}),r&&Xe(i,"blur",d=>{setTimeout(()=>{var m;const g=jt(t);((m=i.document.activeElement)==null?void 0:m.tagName)==="IFRAME"&&!(g!=null&&g.contains(i.document.activeElement))&&e(d)},0)})].filter(Boolean);return()=>u.forEach(d=>d())}function Od(){const t=q(!1);return Us()&&dn(()=>{t.value=!0}),t}function Xs(t){const e=Od();return Y(()=>(e.value,!!t()))}function Nd(t,e={}){const{window:n=_e}=e,i=Xs(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let s;const o=q(!1),r=c=>{o.value=c.matches},l=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",r):s.removeListener(r))},a=nc(()=>{i.value&&(l(),s=n.matchMedia(Dn(t)),"addEventListener"in s?s.addEventListener("change",r):s.addListener(r),o.value=s.matches)});return Pi(()=>{a(),l(),s=void 0}),o}function Dd(t={}){const{document:e=Id}=t;if(!e)return q("visible");const n=q(e.visibilityState);return Xe(e,"visibilitychange",()=>{n.value=e.visibilityState}),n}function Fd(t,e,n={}){const{window:i=_e,...s}=n;let o;const r=Xs(()=>i&&"ResizeObserver"in i),l=()=>{o&&(o.disconnect(),o=void 0)},a=Y(()=>Array.isArray(t)?t.map(f=>jt(f)):[jt(t)]),c=At(a,f=>{if(l(),r.value&&i){o=new ResizeObserver(e);for(const d of f)d&&o.observe(d,s)}},{immediate:!0,flush:"post",deep:!0}),u=()=>{l(),c()};return Pi(u),{isSupported:r,stop:u}}function Vd(t,e={width:0,height:0},n={}){const{window:i=_e,box:s="content-box"}=n,o=Y(()=>{var a,c;return(c=(a=jt(t))==null?void 0:a.namespaceURI)==null?void 0:c.includes("svg")}),r=q(e.width),l=q(e.height);return Fd(t,([a])=>{const c=s==="border-box"?a.borderBoxSize:s==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(i&&o.value){const u=jt(t);if(u){const f=i.getComputedStyle(u);r.value=Number.parseFloat(f.width),l.value=Number.parseFloat(f.height)}}else if(c){const u=Array.isArray(c)?c:[c];r.value=u.reduce((f,{inlineSize:d})=>f+d,0),l.value=u.reduce((f,{blockSize:d})=>f+d,0)}else r.value=a.contentRect.width,l.value=a.contentRect.height},n),At(()=>jt(t),a=>{r.value=a?e.width:0,l.value=a?e.height:0}),{width:r,height:l}}function Ud(t,e,n={}){const{root:i,rootMargin:s="0px",threshold:o=.1,window:r=_e,immediate:l=!0}=n,a=Xs(()=>r&&"IntersectionObserver"in r),c=Y(()=>{const g=Dn(t);return(Array.isArray(g)?g:[g]).map(jt).filter(Td)});let u=Be;const f=q(l),d=a.value?At(()=>[c.value,jt(i),f.value],([g,_])=>{if(u(),!f.value||!g.length)return;const C=new IntersectionObserver(e,{root:jt(_),rootMargin:s,threshold:o});g.forEach(w=>w&&C.observe(w)),u=()=>{C.disconnect(),u=Be}},{immediate:l,flush:"post"}):Be,m=()=>{u(),d(),f.value=!1};return Pi(m),{isSupported:a,isActive:f,pause(){u(),f.value=!1},resume(){f.value=!0},stop:m}}function jd(t,e={}){const{window:n=_e,scrollTarget:i}=e,s=q(!1);return Ud(t,([{isIntersecting:o}])=>{s.value=o},{root:i,window:n,threshold:0}),s}const Wd=["mousemove","mousedown","resize","keydown","touchstart","wheel"],Zd=6e4;function zd(t=Zd,e={}){const{initialState:n=!1,listenForVisibilityChange:i=!0,events:s=Wd,window:o=_e,eventFilter:r=Bd(50)}=e,l=q(n),a=q(xl());let c;const u=()=>{l.value=!1,clearTimeout(c),c=setTimeout(()=>l.value=!0,t)},f=Pd(r,()=>{a.value=xl(),u()});if(o){const d=o.document;for(const m of s)Xe(o,m,f,{passive:!0});i&&Xe(d,"visibilitychange",()=>{d.hidden||f()}),u()}return{idle:l,lastActive:a,reset:u}}function qd(t={}){const{window:e=_e,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:i=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:o=!0}=t,r=q(n),l=q(i),a=()=>{e&&(o?(r.value=e.innerWidth,l.value=e.innerHeight):(r.value=e.document.documentElement.clientWidth,l.value=e.document.documentElement.clientHeight))};if(a(),Hd(a),Xe("resize",a,{passive:!0}),s){const c=Nd("(orientation: portrait)");At(c,()=>a())}return{width:r,height:l}}function El(t,e){return function(){return t.apply(e,arguments)}}const{toString:Kd}=Object.prototype,{getPrototypeOf:Ys}=Object,Bi=(t=>e=>{const n=Kd.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ue=t=>(t=t.toLowerCase(),e=>Bi(e)===t),Hi=t=>e=>typeof e===t,{isArray:mn}=Array,Fn=Hi("undefined");function Jd(t){return t!==null&&!Fn(t)&&t.constructor!==null&&!Fn(t.constructor)&&Qt(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const $l=ue("ArrayBuffer");function Qd(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&$l(t.buffer),e}const Xd=Hi("string"),Qt=Hi("function"),Tl=Hi("number"),Ii=t=>t!==null&&typeof t=="object",Yd=t=>t===!0||t===!1,Oi=t=>{if(Bi(t)!=="object")return!1;const e=Ys(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Gd=ue("Date"),tf=ue("File"),ef=ue("Blob"),nf=ue("FileList"),sf=t=>Ii(t)&&Qt(t.pipe),of=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Qt(t.append)&&((e=Bi(t))==="formdata"||e==="object"&&Qt(t.toString)&&t.toString()==="[object FormData]"))},rf=ue("URLSearchParams"),lf=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Vn(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let i,s;if(typeof t!="object"&&(t=[t]),mn(t))for(i=0,s=t.length;i<s;i++)e.call(null,t[i],i,t);else{const o=n?Object.getOwnPropertyNames(t):Object.keys(t),r=o.length;let l;for(i=0;i<r;i++)l=o[i],e.call(null,t[l],l,t)}}function Ll(t,e){e=e.toLowerCase();const n=Object.keys(t);let i=n.length,s;for(;i-- >0;)if(s=n[i],e===s.toLowerCase())return s;return null}const Ml=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Rl=t=>!Fn(t)&&t!==Ml;function Gs(){const{caseless:t}=Rl(this)&&this||{},e={},n=(i,s)=>{const o=t&&Ll(e,s)||s;Oi(e[o])&&Oi(i)?e[o]=Gs(e[o],i):Oi(i)?e[o]=Gs({},i):mn(i)?e[o]=i.slice():e[o]=i};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&Vn(arguments[i],n);return e}const af=(t,e,n,{allOwnKeys:i}={})=>(Vn(e,(s,o)=>{n&&Qt(s)?t[o]=El(s,n):t[o]=s},{allOwnKeys:i}),t),uf=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),cf=(t,e,n,i)=>{t.prototype=Object.create(e.prototype,i),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},df=(t,e,n,i)=>{let s,o,r;const l={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),o=s.length;o-- >0;)r=s[o],(!i||i(r,t,e))&&!l[r]&&(e[r]=t[r],l[r]=!0);t=n!==!1&&Ys(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},ff=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const i=t.indexOf(e,n);return i!==-1&&i===n},pf=t=>{if(!t)return null;if(mn(t))return t;let e=t.length;if(!Tl(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},hf=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Ys(Uint8Array)),gf=(t,e)=>{const i=(t&&t[Symbol.iterator]).call(t);let s;for(;(s=i.next())&&!s.done;){const o=s.value;e.call(t,o[0],o[1])}},mf=(t,e)=>{let n;const i=[];for(;(n=t.exec(e))!==null;)i.push(n);return i},_f=ue("HTMLFormElement"),yf=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,s){return i.toUpperCase()+s}),Al=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),vf=ue("RegExp"),Pl=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),i={};Vn(n,(s,o)=>{let r;(r=e(s,o,t))!==!1&&(i[o]=r||s)}),Object.defineProperties(t,i)},wf=t=>{Pl(t,(e,n)=>{if(Qt(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=t[n];if(Qt(i)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},bf=(t,e)=>{const n={},i=s=>{s.forEach(o=>{n[o]=!0})};return mn(t)?i(t):i(String(t).split(e)),n},Cf=()=>{},xf=(t,e)=>(t=+t,Number.isFinite(t)?t:e),to="abcdefghijklmnopqrstuvwxyz",Bl="0123456789",Hl={DIGIT:Bl,ALPHA:to,ALPHA_DIGIT:to+to.toUpperCase()+Bl},kf=(t=16,e=Hl.ALPHA_DIGIT)=>{let n="";const{length:i}=e;for(;t--;)n+=e[Math.random()*i|0];return n};function Sf(t){return!!(t&&Qt(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Ef=t=>{const e=new Array(10),n=(i,s)=>{if(Ii(i)){if(e.indexOf(i)>=0)return;if(!("toJSON"in i)){e[s]=i;const o=mn(i)?[]:{};return Vn(i,(r,l)=>{const a=n(r,s+1);!Fn(a)&&(o[l]=a)}),e[s]=void 0,o}}return i};return n(t,0)},$f=ue("AsyncFunction"),S={isArray:mn,isArrayBuffer:$l,isBuffer:Jd,isFormData:of,isArrayBufferView:Qd,isString:Xd,isNumber:Tl,isBoolean:Yd,isObject:Ii,isPlainObject:Oi,isUndefined:Fn,isDate:Gd,isFile:tf,isBlob:ef,isRegExp:vf,isFunction:Qt,isStream:sf,isURLSearchParams:rf,isTypedArray:hf,isFileList:nf,forEach:Vn,merge:Gs,extend:af,trim:lf,stripBOM:uf,inherits:cf,toFlatObject:df,kindOf:Bi,kindOfTest:ue,endsWith:ff,toArray:pf,forEachEntry:gf,matchAll:mf,isHTMLForm:_f,hasOwnProperty:Al,hasOwnProp:Al,reduceDescriptors:Pl,freezeMethods:wf,toObjectSet:bf,toCamelCase:yf,noop:Cf,toFiniteNumber:xf,findKey:Ll,global:Ml,isContextDefined:Rl,ALPHABET:Hl,generateString:kf,isSpecCompliantForm:Sf,toJSONObject:Ef,isAsyncFn:$f,isThenable:t=>t&&(Ii(t)||Qt(t))&&Qt(t.then)&&Qt(t.catch)};function ct(t,e,n,i,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),i&&(this.request=i),s&&(this.response=s)}S.inherits(ct,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:S.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Il=ct.prototype,Ol={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Ol[t]={value:t}}),Object.defineProperties(ct,Ol),Object.defineProperty(Il,"isAxiosError",{value:!0}),ct.from=(t,e,n,i,s,o)=>{const r=Object.create(Il);return S.toFlatObject(t,r,function(a){return a!==Error.prototype},l=>l!=="isAxiosError"),ct.call(r,t.message,e,n,i,s),r.cause=t,r.name=t.name,o&&Object.assign(r,o),r};const Tf=null;function eo(t){return S.isPlainObject(t)||S.isArray(t)}function Nl(t){return S.endsWith(t,"[]")?t.slice(0,-2):t}function Dl(t,e,n){return t?t.concat(e).map(function(s,o){return s=Nl(s),!n&&o?"["+s+"]":s}).join(n?".":""):e}function Lf(t){return S.isArray(t)&&!t.some(eo)}const Mf=S.toFlatObject(S,{},null,function(e){return/^is[A-Z]/.test(e)});function Ni(t,e,n){if(!S.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=S.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,C){return!S.isUndefined(C[_])});const i=n.metaTokens,s=n.visitor||u,o=n.dots,r=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&S.isSpecCompliantForm(e);if(!S.isFunction(s))throw new TypeError("visitor must be a function");function c(g){if(g===null)return"";if(S.isDate(g))return g.toISOString();if(!a&&S.isBlob(g))throw new ct("Blob is not supported. Use a Buffer instead.");return S.isArrayBuffer(g)||S.isTypedArray(g)?a&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,_,C){let w=g;if(g&&!C&&typeof g=="object"){if(S.endsWith(_,"{}"))_=i?_:_.slice(0,-2),g=JSON.stringify(g);else if(S.isArray(g)&&Lf(g)||(S.isFileList(g)||S.endsWith(_,"[]"))&&(w=S.toArray(g)))return _=Nl(_),w.forEach(function(A,$){!(S.isUndefined(A)||A===null)&&e.append(r===!0?Dl([_],$,o):r===null?_:_+"[]",c(A))}),!1}return eo(g)?!0:(e.append(Dl(C,_,o),c(g)),!1)}const f=[],d=Object.assign(Mf,{defaultVisitor:u,convertValue:c,isVisitable:eo});function m(g,_){if(!S.isUndefined(g)){if(f.indexOf(g)!==-1)throw Error("Circular reference detected in "+_.join("."));f.push(g),S.forEach(g,function(w,E){(!(S.isUndefined(w)||w===null)&&s.call(e,w,S.isString(E)?E.trim():E,_,d))===!0&&m(w,_?_.concat(E):[E])}),f.pop()}}if(!S.isObject(t))throw new TypeError("data must be an object");return m(t),e}function Fl(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(i){return e[i]})}function no(t,e){this._pairs=[],t&&Ni(t,this,e)}const Vl=no.prototype;Vl.append=function(e,n){this._pairs.push([e,n])},Vl.toString=function(e){const n=e?function(i){return e.call(this,i,Fl)}:Fl;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Rf(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ul(t,e,n){if(!e)return t;const i=n&&n.encode||Rf,s=n&&n.serialize;let o;if(s?o=s(e,n):o=S.isURLSearchParams(e)?e.toString():new no(e,n).toString(i),o){const r=t.indexOf("#");r!==-1&&(t=t.slice(0,r)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class Af{constructor(){this.handlers=[]}use(e,n,i){return this.handlers.push({fulfilled:e,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){S.forEach(this.handlers,function(i){i!==null&&e(i)})}}const jl=Af,Wl={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Pf=typeof URLSearchParams<"u"?URLSearchParams:no,Bf=typeof FormData<"u"?FormData:null,Hf=typeof Blob<"u"?Blob:null,If=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Of=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),ce={isBrowser:!0,classes:{URLSearchParams:Pf,FormData:Bf,Blob:Hf},isStandardBrowserEnv:If,isStandardBrowserWebWorkerEnv:Of,protocols:["http","https","file","blob","url","data"]};function Nf(t,e){return Ni(t,new ce.classes.URLSearchParams,Object.assign({visitor:function(n,i,s,o){return ce.isNode&&S.isBuffer(n)?(this.append(i,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function Df(t){return S.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Ff(t){const e={},n=Object.keys(t);let i;const s=n.length;let o;for(i=0;i<s;i++)o=n[i],e[o]=t[o];return e}function Zl(t){function e(n,i,s,o){let r=n[o++];const l=Number.isFinite(+r),a=o>=n.length;return r=!r&&S.isArray(s)?s.length:r,a?(S.hasOwnProp(s,r)?s[r]=[s[r],i]:s[r]=i,!l):((!s[r]||!S.isObject(s[r]))&&(s[r]=[]),e(n,i,s[r],o)&&S.isArray(s[r])&&(s[r]=Ff(s[r])),!l)}if(S.isFormData(t)&&S.isFunction(t.entries)){const n={};return S.forEachEntry(t,(i,s)=>{e(Df(i),s,n,0)}),n}return null}function Vf(t,e,n){if(S.isString(t))try{return(e||JSON.parse)(t),S.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(t)}const io={transitional:Wl,adapter:["xhr","http"],transformRequest:[function(e,n){const i=n.getContentType()||"",s=i.indexOf("application/json")>-1,o=S.isObject(e);if(o&&S.isHTMLForm(e)&&(e=new FormData(e)),S.isFormData(e))return s&&s?JSON.stringify(Zl(e)):e;if(S.isArrayBuffer(e)||S.isBuffer(e)||S.isStream(e)||S.isFile(e)||S.isBlob(e))return e;if(S.isArrayBufferView(e))return e.buffer;if(S.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let l;if(o){if(i.indexOf("application/x-www-form-urlencoded")>-1)return Nf(e,this.formSerializer).toString();if((l=S.isFileList(e))||i.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return Ni(l?{"files[]":e}:e,a&&new a,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),Vf(e)):e}],transformResponse:[function(e){const n=this.transitional||io.transitional,i=n&&n.forcedJSONParsing,s=this.responseType==="json";if(e&&S.isString(e)&&(i&&!this.responseType||s)){const r=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(l){if(r)throw l.name==="SyntaxError"?ct.from(l,ct.ERR_BAD_RESPONSE,this,null,this.response):l}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ce.classes.FormData,Blob:ce.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};S.forEach(["delete","get","head","post","put","patch"],t=>{io.headers[t]={}});const so=io,Uf=S.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),jf=t=>{const e={};let n,i,s;return t&&t.split(`
`).forEach(function(r){s=r.indexOf(":"),n=r.substring(0,s).trim().toLowerCase(),i=r.substring(s+1).trim(),!(!n||e[n]&&Uf[n])&&(n==="set-cookie"?e[n]?e[n].push(i):e[n]=[i]:e[n]=e[n]?e[n]+", "+i:i)}),e},zl=Symbol("internals");function Un(t){return t&&String(t).trim().toLowerCase()}function Di(t){return t===!1||t==null?t:S.isArray(t)?t.map(Di):String(t)}function Wf(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(t);)e[i[1]]=i[2];return e}const Zf=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function oo(t,e,n,i,s){if(S.isFunction(i))return i.call(this,e,n);if(s&&(e=n),!!S.isString(e)){if(S.isString(i))return e.indexOf(i)!==-1;if(S.isRegExp(i))return i.test(e)}}function zf(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,i)=>n.toUpperCase()+i)}function qf(t,e){const n=S.toCamelCase(" "+e);["get","set","has"].forEach(i=>{Object.defineProperty(t,i+n,{value:function(s,o,r){return this[i].call(this,e,s,o,r)},configurable:!0})})}class Fi{constructor(e){e&&this.set(e)}set(e,n,i){const s=this;function o(l,a,c){const u=Un(a);if(!u)throw new Error("header name must be a non-empty string");const f=S.findKey(s,u);(!f||s[f]===void 0||c===!0||c===void 0&&s[f]!==!1)&&(s[f||a]=Di(l))}const r=(l,a)=>S.forEach(l,(c,u)=>o(c,u,a));return S.isPlainObject(e)||e instanceof this.constructor?r(e,n):S.isString(e)&&(e=e.trim())&&!Zf(e)?r(jf(e),n):e!=null&&o(n,e,i),this}get(e,n){if(e=Un(e),e){const i=S.findKey(this,e);if(i){const s=this[i];if(!n)return s;if(n===!0)return Wf(s);if(S.isFunction(n))return n.call(this,s,i);if(S.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Un(e),e){const i=S.findKey(this,e);return!!(i&&this[i]!==void 0&&(!n||oo(this,this[i],i,n)))}return!1}delete(e,n){const i=this;let s=!1;function o(r){if(r=Un(r),r){const l=S.findKey(i,r);l&&(!n||oo(i,i[l],l,n))&&(delete i[l],s=!0)}}return S.isArray(e)?e.forEach(o):o(e),s}clear(e){const n=Object.keys(this);let i=n.length,s=!1;for(;i--;){const o=n[i];(!e||oo(this,this[o],o,e,!0))&&(delete this[o],s=!0)}return s}normalize(e){const n=this,i={};return S.forEach(this,(s,o)=>{const r=S.findKey(i,o);if(r){n[r]=Di(s),delete n[o];return}const l=e?zf(o):String(o).trim();l!==o&&delete n[o],n[l]=Di(s),i[l]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return S.forEach(this,(i,s)=>{i!=null&&i!==!1&&(n[s]=e&&S.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const i=new this(e);return n.forEach(s=>i.set(s)),i}static accessor(e){const i=(this[zl]=this[zl]={accessors:{}}).accessors,s=this.prototype;function o(r){const l=Un(r);i[l]||(qf(s,r),i[l]=!0)}return S.isArray(e)?e.forEach(o):o(e),this}}Fi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),S.reduceDescriptors(Fi.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(i){this[n]=i}}}),S.freezeMethods(Fi);const ye=Fi;function ro(t,e){const n=this||so,i=e||n,s=ye.from(i.headers);let o=i.data;return S.forEach(t,function(l){o=l.call(n,o,s.normalize(),e?e.status:void 0)}),s.normalize(),o}function ql(t){return!!(t&&t.__CANCEL__)}function jn(t,e,n){ct.call(this,t??"canceled",ct.ERR_CANCELED,e,n),this.name="CanceledError"}S.inherits(jn,ct,{__CANCEL__:!0});function Kf(t,e,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?t(n):e(new ct("Request failed with status code "+n.status,[ct.ERR_BAD_REQUEST,ct.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Jf=ce.isStandardBrowserEnv?function(){return{write:function(n,i,s,o,r,l){const a=[];a.push(n+"="+encodeURIComponent(i)),S.isNumber(s)&&a.push("expires="+new Date(s).toGMTString()),S.isString(o)&&a.push("path="+o),S.isString(r)&&a.push("domain="+r),l===!0&&a.push("secure"),document.cookie=a.join("; ")},read:function(n){const i=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Qf(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Xf(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function Kl(t,e){return t&&!Qf(e)?Xf(t,e):e}const Yf=ce.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let i;function s(o){let r=o;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=s(window.location.href),function(r){const l=S.isString(r)?s(r):r;return l.protocol===i.protocol&&l.host===i.host}}():function(){return function(){return!0}}();function Gf(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function t1(t,e){t=t||10;const n=new Array(t),i=new Array(t);let s=0,o=0,r;return e=e!==void 0?e:1e3,function(a){const c=Date.now(),u=i[o];r||(r=c),n[s]=a,i[s]=c;let f=o,d=0;for(;f!==s;)d+=n[f++],f=f%t;if(s=(s+1)%t,s===o&&(o=(o+1)%t),c-r<e)return;const m=u&&c-u;return m?Math.round(d*1e3/m):void 0}}function Jl(t,e){let n=0;const i=t1(50,250);return s=>{const o=s.loaded,r=s.lengthComputable?s.total:void 0,l=o-n,a=i(l),c=o<=r;n=o;const u={loaded:o,total:r,progress:r?o/r:void 0,bytes:l,rate:a||void 0,estimated:a&&r&&c?(r-o)/a:void 0,event:s};u[e?"download":"upload"]=!0,t(u)}}const lo={http:Tf,xhr:typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,i){let s=t.data;const o=ye.from(t.headers).normalize(),r=t.responseType;let l;function a(){t.cancelToken&&t.cancelToken.unsubscribe(l),t.signal&&t.signal.removeEventListener("abort",l)}let c;S.isFormData(s)&&(ce.isStandardBrowserEnv||ce.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.getContentType(/^\s*multipart\/form-data/)?S.isString(c=o.getContentType())&&o.setContentType(c.replace(/^\s*(multipart\/form-data);+/,"$1")):o.setContentType("multipart/form-data"));let u=new XMLHttpRequest;if(t.auth){const g=t.auth.username||"",_=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.set("Authorization","Basic "+btoa(g+":"+_))}const f=Kl(t.baseURL,t.url);u.open(t.method.toUpperCase(),Ul(f,t.params,t.paramsSerializer),!0),u.timeout=t.timeout;function d(){if(!u)return;const g=ye.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),C={data:!r||r==="text"||r==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:g,config:t,request:u};Kf(function(E){n(E),a()},function(E){i(E),a()},C),u=null}if("onloadend"in u?u.onloadend=d:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(d)},u.onabort=function(){u&&(i(new ct("Request aborted",ct.ECONNABORTED,t,u)),u=null)},u.onerror=function(){i(new ct("Network Error",ct.ERR_NETWORK,t,u)),u=null},u.ontimeout=function(){let _=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const C=t.transitional||Wl;t.timeoutErrorMessage&&(_=t.timeoutErrorMessage),i(new ct(_,C.clarifyTimeoutError?ct.ETIMEDOUT:ct.ECONNABORTED,t,u)),u=null},ce.isStandardBrowserEnv){const g=Yf(f)&&t.xsrfCookieName&&Jf.read(t.xsrfCookieName);g&&o.set(t.xsrfHeaderName,g)}s===void 0&&o.setContentType(null),"setRequestHeader"in u&&S.forEach(o.toJSON(),function(_,C){u.setRequestHeader(C,_)}),S.isUndefined(t.withCredentials)||(u.withCredentials=!!t.withCredentials),r&&r!=="json"&&(u.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&u.addEventListener("progress",Jl(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",Jl(t.onUploadProgress)),(t.cancelToken||t.signal)&&(l=g=>{u&&(i(!g||g.type?new jn(null,t,u):g),u.abort(),u=null)},t.cancelToken&&t.cancelToken.subscribe(l),t.signal&&(t.signal.aborted?l():t.signal.addEventListener("abort",l)));const m=Gf(f);if(m&&ce.protocols.indexOf(m)===-1){i(new ct("Unsupported protocol "+m+":",ct.ERR_BAD_REQUEST,t));return}u.send(s||null)})}};S.forEach(lo,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Ql=t=>`- ${t}`,e1=t=>S.isFunction(t)||t===null||t===!1,Xl={getAdapter:t=>{t=S.isArray(t)?t:[t];const{length:e}=t;let n,i;const s={};for(let o=0;o<e;o++){n=t[o];let r;if(i=n,!e1(n)&&(i=lo[(r=String(n)).toLowerCase()],i===void 0))throw new ct(`Unknown adapter '${r}'`);if(i)break;s[r||"#"+o]=i}if(!i){const o=Object.entries(s).map(([l,a])=>`adapter ${l} `+(a===!1?"is not supported by the environment":"is not available in the build"));let r=e?o.length>1?`since :
`+o.map(Ql).join(`
`):" "+Ql(o[0]):"as no adapter specified";throw new ct("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return i},adapters:lo};function ao(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new jn(null,t)}function Yl(t){return ao(t),t.headers=ye.from(t.headers),t.data=ro.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Xl.getAdapter(t.adapter||so.adapter)(t).then(function(i){return ao(t),i.data=ro.call(t,t.transformResponse,i),i.headers=ye.from(i.headers),i},function(i){return ql(i)||(ao(t),i&&i.response&&(i.response.data=ro.call(t,t.transformResponse,i.response),i.response.headers=ye.from(i.response.headers))),Promise.reject(i)})}const Gl=t=>t instanceof ye?t.toJSON():t;function _n(t,e){e=e||{};const n={};function i(c,u,f){return S.isPlainObject(c)&&S.isPlainObject(u)?S.merge.call({caseless:f},c,u):S.isPlainObject(u)?S.merge({},u):S.isArray(u)?u.slice():u}function s(c,u,f){if(S.isUndefined(u)){if(!S.isUndefined(c))return i(void 0,c,f)}else return i(c,u,f)}function o(c,u){if(!S.isUndefined(u))return i(void 0,u)}function r(c,u){if(S.isUndefined(u)){if(!S.isUndefined(c))return i(void 0,c)}else return i(void 0,u)}function l(c,u,f){if(f in e)return i(c,u);if(f in t)return i(void 0,c)}const a={url:o,method:o,data:o,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:l,headers:(c,u)=>s(Gl(c),Gl(u),!0)};return S.forEach(Object.keys(Object.assign({},t,e)),function(u){const f=a[u]||s,d=f(t[u],e[u],u);S.isUndefined(d)&&f!==l||(n[u]=d)}),n}const ta="1.6.0",uo={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{uo[t]=function(i){return typeof i===t||"a"+(e<1?"n ":" ")+t}});const ea={};uo.transitional=function(e,n,i){function s(o,r){return"[Axios v"+ta+"] Transitional option '"+o+"'"+r+(i?". "+i:"")}return(o,r,l)=>{if(e===!1)throw new ct(s(r," has been removed"+(n?" in "+n:"")),ct.ERR_DEPRECATED);return n&&!ea[r]&&(ea[r]=!0,console.warn(s(r," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(o,r,l):!0}};function n1(t,e,n){if(typeof t!="object")throw new ct("options must be an object",ct.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let s=i.length;for(;s-- >0;){const o=i[s],r=e[o];if(r){const l=t[o],a=l===void 0||r(l,o,t);if(a!==!0)throw new ct("option "+o+" must be "+a,ct.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ct("Unknown option "+o,ct.ERR_BAD_OPTION)}}const co={assertOptions:n1,validators:uo},He=co.validators;class Vi{constructor(e){this.defaults=e,this.interceptors={request:new jl,response:new jl}}request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=_n(this.defaults,n);const{transitional:i,paramsSerializer:s,headers:o}=n;i!==void 0&&co.assertOptions(i,{silentJSONParsing:He.transitional(He.boolean),forcedJSONParsing:He.transitional(He.boolean),clarifyTimeoutError:He.transitional(He.boolean)},!1),s!=null&&(S.isFunction(s)?n.paramsSerializer={serialize:s}:co.assertOptions(s,{encode:He.function,serialize:He.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let r=o&&S.merge(o.common,o[n.method]);o&&S.forEach(["delete","get","head","post","put","patch","common"],g=>{delete o[g]}),n.headers=ye.concat(r,o);const l=[];let a=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(n)===!1||(a=a&&_.synchronous,l.unshift(_.fulfilled,_.rejected))});const c=[];this.interceptors.response.forEach(function(_){c.push(_.fulfilled,_.rejected)});let u,f=0,d;if(!a){const g=[Yl.bind(this),void 0];for(g.unshift.apply(g,l),g.push.apply(g,c),d=g.length,u=Promise.resolve(n);f<d;)u=u.then(g[f++],g[f++]);return u}d=l.length;let m=n;for(f=0;f<d;){const g=l[f++],_=l[f++];try{m=g(m)}catch(C){_.call(this,C);break}}try{u=Yl.call(this,m)}catch(g){return Promise.reject(g)}for(f=0,d=c.length;f<d;)u=u.then(c[f++],c[f++]);return u}getUri(e){e=_n(this.defaults,e);const n=Kl(e.baseURL,e.url);return Ul(n,e.params,e.paramsSerializer)}}S.forEach(["delete","get","head","options"],function(e){Vi.prototype[e]=function(n,i){return this.request(_n(i||{},{method:e,url:n,data:(i||{}).data}))}}),S.forEach(["post","put","patch"],function(e){function n(i){return function(o,r,l){return this.request(_n(l||{},{method:e,headers:i?{"Content-Type":"multipart/form-data"}:{},url:o,data:r}))}}Vi.prototype[e]=n(),Vi.prototype[e+"Form"]=n(!0)});const Ui=Vi;class fo{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const i=this;this.promise.then(s=>{if(!i._listeners)return;let o=i._listeners.length;for(;o-- >0;)i._listeners[o](s);i._listeners=null}),this.promise.then=s=>{let o;const r=new Promise(l=>{i.subscribe(l),o=l}).then(s);return r.cancel=function(){i.unsubscribe(o)},r},e(function(o,r,l){i.reason||(i.reason=new jn(o,r,l),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new fo(function(s){e=s}),cancel:e}}}const i1=fo;function s1(t){return function(n){return t.apply(null,n)}}function o1(t){return S.isObject(t)&&t.isAxiosError===!0}const po={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(po).forEach(([t,e])=>{po[e]=t});const r1=po;function na(t){const e=new Ui(t),n=El(Ui.prototype.request,e);return S.extend(n,Ui.prototype,e,{allOwnKeys:!0}),S.extend(n,e,null,{allOwnKeys:!0}),n.create=function(s){return na(_n(t,s))},n}const xt=na(so);xt.Axios=Ui,xt.CanceledError=jn,xt.CancelToken=i1,xt.isCancel=ql,xt.VERSION=ta,xt.toFormData=Ni,xt.AxiosError=ct,xt.Cancel=xt.CanceledError,xt.all=function(e){return Promise.all(e)},xt.spread=s1,xt.isAxiosError=o1,xt.mergeConfig=_n,xt.AxiosHeaders=ye,xt.formToJSON=t=>Zl(S.isHTMLForm(t)?new FormData(t):t),xt.getAdapter=Xl.getAdapter,xt.HttpStatusCode=r1,xt.default=xt;const l1=xt,a1="https://api.tiun.live/live_api",ho="ICtrpjbkxZkZjNH2L2hYnkuooyhqFjTvywXpFK_1",u1="false",c1="de",go="false",d1="v5_20250117_1",f1="true",Pt=l1.create({baseURL:a1,withCredentials:!0,headers:{}});Pt.interceptors.response.use(function(t){var n;const e=(n=t.data)==null?void 0:n.newState;return e&&localStorage.setItem("tiun_state",e),t}),Pt.interceptors.request.use(function(t){const e=localStorage.getItem("tiun_state");return e&&(t.headers["X-TIUN-STATE"]=e),t.headers["X-TIUN-SNIPPET-ID"]=ho,go.toLowerCase()==="true"&&(t.headers["X-SNIPPET-PREVIEW"]="true"),t.headers["X-TIUN-SNIPPET-APPEARANCE"]="Light",t.headers["X-TIUN-SNIPPET-LANGUAGE"]=c1,t.headers["X-TIUN-SNIPPET-VERSION"]=d1,t},function(t){return Promise.reject(t)});const p1=async t=>{const e=await Pt.get("/v1/info",{params:{referrer:t||void 0}});return e==null?void 0:e.data},h1=async()=>{const t=await Pt.patch("/v1/info/seen");return t==null?void 0:t.data},g1=async()=>{const t=await Pt.delete("/v1/info/referrer");return t==null?void 0:t.data};var m1=!1;/* pinia v2.2.2 - (c) 2024 Eduardo San Martin Morote - @license MIT */let ia;const ji=t=>ia=t,sa=Symbol();function mo(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var Wn;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(Wn||(Wn={}));function _1(){const t=Wo(!0),e=t.run(()=>q({}));let n=[],i=[];const s=kn({install(o){ji(s),s._a=o,o.provide(sa,s),o.config.globalProperties.$pinia=s,i.forEach(r=>n.push(r)),i=[]},use(o){return!this._a&&!m1?i.push(o):n.push(o),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return s}const oa=()=>{};function ra(t,e,n,i=oa){t.push(e);const s=()=>{const o=t.indexOf(e);o>-1&&(t.splice(o,1),i())};return!n&&ds()&&Zo(s),s}function yn(t,...e){t.slice().forEach(n=>{n(...e)})}const y1=t=>t(),la=Symbol(),_o=Symbol();function yo(t,e){t instanceof Map&&e instanceof Map?e.forEach((n,i)=>t.set(i,n)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const i=e[n],s=t[n];mo(s)&&mo(i)&&t.hasOwnProperty(n)&&!Ct(i)&&!Ee(i)?t[n]=yo(s,i):t[n]=i}return t}const v1=Symbol();function w1(t){return!mo(t)||!t.hasOwnProperty(v1)}const{assign:Ie}=Object;function b1(t){return!!(Ct(t)&&t.effect)}function C1(t,e,n,i){const{state:s,actions:o,getters:r}=e,l=n.state.value[t];let a;function c(){l||(n.state.value[t]=s?s():{});const u=Du(n.state.value[t]);return Ie(u,o,Object.keys(r||{}).reduce((f,d)=>(f[d]=kn(Y(()=>{ji(n);const m=n._s.get(t);return r[d].call(m,m)})),f),{}))}return a=aa(t,c,e,n,i,!0),a}function aa(t,e,n={},i,s,o){let r;const l=Ie({actions:{}},n),a={deep:!0};let c,u,f=[],d=[],m;const g=i.state.value[t];!o&&!g&&(i.state.value[t]={}),q({});let _;function C(M){let F;c=u=!1,typeof M=="function"?(M(i.state.value[t]),F={type:Wn.patchFunction,storeId:t,events:m}):(yo(i.state.value[t],M),F={type:Wn.patchObject,payload:M,storeId:t,events:m});const Z=_=Symbol();xs().then(()=>{_===Z&&(c=!0)}),u=!0,yn(f,F,i.state.value[t])}const w=o?function(){const{state:F}=n,Z=F?F():{};this.$patch(Q=>{Ie(Q,Z)})}:oa;function E(){r.stop(),f=[],d=[],i._s.delete(t)}const A=(M,F="")=>{if(la in M)return M[_o]=F,M;const Z=function(){ji(i);const Q=Array.from(arguments),I=[],et=[];function ft(tt){I.push(tt)}function St(tt){et.push(tt)}yn(d,{args:Q,name:Z[_o],store:D,after:ft,onError:St});let ot;try{ot=M.apply(this&&this.$id===t?this:D,Q)}catch(tt){throw yn(et,tt),tt}return ot instanceof Promise?ot.then(tt=>(yn(I,tt),tt)).catch(tt=>(yn(et,tt),Promise.reject(tt))):(yn(I,ot),ot)};return Z[la]=!0,Z[_o]=F,Z},$={_p:i,$id:t,$onAction:ra.bind(null,d),$patch:C,$reset:w,$subscribe(M,F={}){const Z=ra(f,M,F.detached,()=>Q()),Q=r.run(()=>At(()=>i.state.value[t],I=>{(F.flush==="sync"?u:c)&&M({storeId:t,type:Wn.direct,events:m},I)},Ie({},a,F)));return Z},$dispose:E},D=pi($);i._s.set(t,D);const z=(i._a&&i._a.runWithContext||y1)(()=>i._e.run(()=>(r=Wo()).run(()=>e({action:A}))));for(const M in z){const F=z[M];if(Ct(F)&&!b1(F)||Ee(F))o||(g&&w1(F)&&(Ct(F)?F.value=g[M]:yo(F,g[M])),i.state.value[t][M]=F);else if(typeof F=="function"){const Z=A(F,M);z[M]=Z,l.actions[M]=F}}return Ie(D,z),Ie(ut(D),z),Object.defineProperty(D,"$state",{get:()=>i.state.value[t],set:M=>{C(F=>{Ie(F,M)})}}),i._p.forEach(M=>{Ie(D,r.run(()=>M({store:D,app:i._a,pinia:i,options:l})))}),g&&o&&n.hydrate&&n.hydrate(D.$state,g),c=!0,u=!0,D}function Wi(t,e,n){let i,s;const o=typeof e=="function";typeof t=="string"?(i=t,s=o?n:e):(s=t,i=t.id);function r(l,a){const c=Ec();return l=l||(c?pn(sa,null):null),l&&ji(l),l=ia,l._s.has(i)||(o?aa(i,e,s,l):C1(i,s,l)),l._s.get(i)}return r.$id=i,r}const ua={active:"4eb1d4ce-ec68-49f7-b3d7-ce9f172a84cb",inactive:"de6c0a23-b259-4c4f-aad9-c0eab912c301"},ca=async(t,e)=>{const n=await Pt.patch("/v1/sessions",{currentUrl:window.location.href,contentId:t,contentType:e==="active"?ua.active:e==="inactive"?ua.inactive:void 0});return n==null?void 0:n.data},da=async t=>{const e=await Pt.post("/v1/sessions",{currentUrl:window.location.href,startMethod:t});return e==null?void 0:e.data},x1=async()=>{const t=await Pt.delete("/v1/sessions");return t==null?void 0:t.data},vo=Wi("sessionState",()=>{const t=q(null);let e=0;const n=q({contentId:void 0,lastSessionStatus:void 0}),i=q("text"),s=q(),o=vt();function r(c){var u,f,d;if(c.origin===window.location.origin&&((u=c.data)==null?void 0:u.type)==="TIUN_EVENT"&&((f=c.data)==null?void 0:f.content)==="TIUN_UPDATE_CONTENT"){if(n.value.contentId=c.data.contentId,c.data.mediaType==="audio"&&(i.value=c.data.mediaType),c.data.contentType&&c.data.contentType===n.value.lastSessionStatus||(n.value.lastSessionStatus=c.data.contentType,!localStorage.getItem("tiun_state")||!o.pollingStarted||((d=o.snippetInfo)==null?void 0:d.connectionStatus)!=="Session"))return;l()}}async function l(){const c=++e;t.value=c;const u=await ca(n.value.contentId,n.value.lastSessionStatus);return t.value!==c||(s.value=u,o.badgeData=u.badge,u.openBadge&&(o.openDetails=!0)),u}async function a(){const c=await ca(n.value.contentId,"inactive");return s.value=c,o.badgeData=c.badge,c}return{mediaType:i,snippetSession:s,messageHandler:r,pausePolling:a,patchSessionInfo:l}}),Ot=Wi("globalState",()=>{const t=Y(()=>go==="true"),e=Y(()=>f1==="true"),n=Y(()=>u1==="true");return{isPreviewMode:t,areCornersRounded:e,isDarkMode:n}});var Zi=(t=>(t.None="none",t.Tiun="tiun",t.Bluecode="bluecode",t))(Zi||{});function k1(){const t="tiun_ref";function e(r){return Object.values(Zi).includes(r)}const n=()=>new URLSearchParams(window.location.search),i=r=>{const l=new URL(window.location.toString());l.searchParams.delete(r),window.history.replaceState({},"",l.toString())};function s(){let r=null,l=n();return l.has(t)&&(r=l.get(t),i(t)),r?o(r):null}function o(r){return e(r)&&Object.keys(Zi).find(a=>Zi[a]===r)||null}return{getReferrerQueryParam:s,getReferrerTypeFromQueryParam:o}}const vt=Wi("badgeState",()=>{const t=q(),e=q(!1),n=q(),i=q(),s=q(!1),o=q(),r=q(),l=vo(),a=Ot(),{getReferrerQueryParam:c}=k1(),u=q(!1),f=q(!1),d=Y(()=>{var B;return((B=r.value)==null?void 0:B.type)==="BadgeSessionStartResponseV1"}),m=Y(()=>{var B;return((B=r.value)==null?void 0:B.type)==="BadgeSessionActiveResponseV1"}),g=Y(()=>{var B;return((B=r.value)==null?void 0:B.type)==="BadgeSessionLoadingResponseV1"}),_=Y(()=>{var B;return((B=r.value)==null?void 0:B.type)==="BadgeWarningBalanceLowResponseV1"}),C=Y(()=>{var B;return((B=r.value)==null?void 0:B.type)==="BadgeWarningCountdownResponseV1"}),w=Y(()=>{var B;return((B=r.value)==null?void 0:B.type)==="BadgeErrorTopUpFundsResponseV1"}),E=Y(()=>{var B;return((B=r.value)==null?void 0:B.type)==="BadgeErrorPaymentFailedResponseV1"}),A=Y(()=>{var B;return((B=r.value)==null?void 0:B.type)==="BadgeReferrerConnectResponseV1"}),$=Y(()=>{var B,at,bt;return((bt=(at=(B=r.value)==null?void 0:B.data)==null?void 0:at.hint)==null?void 0:bt.type)==="BadgeDataHintRatingResponseV1"}),D=Y(()=>{var B,at,bt;return((bt=(at=(B=r.value)==null?void 0:B.data)==null?void 0:at.hint)==null?void 0:bt.type)==="BadgeDataHintMonthlyLimitHitResponseV1"}),G=Y(()=>{var B,at;switch((at=(B=r.value)==null?void 0:B.data.headerRow)==null?void 0:at.color){case"Gray":return"tiun-bg-gray-400";case"Green":return"tiun-bg-teal-600";case"Purple":return"tiun-bg-indigo-600";case"Orange":return"tiun-bg-orange-500";default:return""}});async function z(){var B;((B=n.value)==null?void 0:B.connectionStatus)==="Session"?(await l.patchSessionInfo(),Q()):(await M(),Z())}async function M(){var bt,Bt;const B=localStorage.getItem("tiun_state"),at=c();if(!B&&!a.isPreviewMode&&!at){tt(),u.value=!0;return}return n.value=await p1(at),r.value=(bt=n.value.infoBadge)==null?void 0:bt.badge,e.value=((Bt=n.value.infoBadge)==null?void 0:Bt.open)||!1,F(),u.value=!0,n.value}function F(){var B;((B=n.value)==null?void 0:B.connectionStatus)!=="Session"&&n&&t.value!=="showPaywall"&&(ot("TIUN_SHOW_PAYWALL"),t.value="showPaywall")}function Z(){var B,at;((B=n.value)==null?void 0:B.connectionStatus)==="SetUp"||((at=n.value)==null?void 0:at.connectionStatus)==="Session"?ft():St()}async function Q(){var B,at,bt,Bt;(((B=l.snippetSession)==null?void 0:B.sessionStatus)==="Active"||((at=l.snippetSession)==null?void 0:at.sessionStatus)==="Paused")&&t.value!=="hidePaywall"?(ot("TIUN_HIDE_PAYWALL",(bt=l.snippetSession)==null?void 0:bt.sessionId),t.value="hidePaywall"):((Bt=l.snippetSession)==null?void 0:Bt.sessionStatus)==="Invalid"&&(tt(),await M())}function I(){e.value=!0}async function et(){var B,at,bt;((at=(B=n.value)==null?void 0:B.infoBadge)!=null&&at.open||(bt=l.snippetSession)!=null&&bt.openBadge)&&e.value&&(await h1(),M()),e.value=!1}function ft(){s.value||(z(),i.value=setInterval(()=>{z()},3e3),s.value=!0)}function St(){clearInterval(i.value),s.value=!1}function ot(B,at){window.postMessage({type:"TIUN_EVENT",content:B,sessionId:at},window.location.origin)}function tt(){St(),t.value!=="showPaywall"&&(ot("TIUN_SHOW_PAYWALL"),t.value="showPaywall")}return{openDetails:e,snippetInfo:n,paywallConnectionStatus:o,isStartSessionBadge:d,isActiveSessionBadge:m,isLoadingSessionBadge:g,badgeData:r,pollingStarted:s,buttonColor:G,lastSentMessage:t,fetchingInfo:u,isLowBalanceWarning:_,isCountdownWarning:C,isTopUpError:w,isBadgeReferrer:A,isPaymentError:E,isHintRating:$,isHintMonthlyLimit:D,showSpentScreen:f,loadSnippetInfo:M,sendMessage:ot,invalidateState:tt,loadInfo:z,closeBadge:et,openBadge:I,startPolling:ft,stopPolling:St,handlePolling:Z}}),S1={class:"tiun-h-6 tiun-w-6 tiun-flex tiun-items-center tiun-justify-center"},E1=[p("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"white",d:"M15.7071 16.2071C15.3166 16.5976 14.6834 16.5976 14.2929 16.2071L9.29289 11.2071C8.90237 10.8166 8.90237 10.1834 9.2929 9.79289L14.2929 4.79289C14.6834 4.40237 15.3166 4.40237 15.7071 4.79289C16.0976 5.18342 16.0976 5.81658 15.7071 6.20711L11.4142 10.5L15.7071 14.7929C16.0976 15.1834 16.0976 15.8166 15.7071 16.2071ZM9.70711 16.2071C9.31658 16.5976 8.68342 16.5976 8.29289 16.2071L3.29289 11.2071C2.90237 10.8166 2.90237 10.1834 3.29289 9.79289L8.2929 4.79289C8.68342 4.40237 9.31658 4.40237 9.70711 4.79289C10.0976 5.18342 10.0976 5.81658 9.70711 6.20711L5.41421 10.5L9.70711 14.7929C10.0976 15.1834 10.0976 15.8166 9.70711 16.2071Z"},null,-1)],wo=lt({__name:"BadgeButton",emits:["mouseEnterBadgeButton"],setup(t){const e=/Mobi/.test(window.navigator.userAgent),n=vt(),i=Ot();function s(){i.isPreviewMode||(n.openDetails?n.closeBadge():n.openBadge())}return(o,r)=>(v(),x("button",{type:"button",class:"tiun-flex tiun-group tiun-outline-none focus:tiun-outline-none tiun-h-fit",onClick:s,onMouseenter:r[0]||(r[0]=l=>b(e)?void 0:o.$emit("mouseEnterBadgeButton")),"data-cy":"tiunBtnShowBadge"},[p("div",{class:V(["tiun-px-1.5 tiun-py-4 tiun-grid tiun-gap-4 tiun-shadow-md",[b(n).buttonColor,{"tiun-rounded-l-xl":b(i).areCornersRounded}]])},[p("div",S1,[(v(),x("svg",{style:rn(b(n).openDetails?"transform: rotate(180deg);":""),width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"tiun-h-6 tiun-w-6 tiun-transition-all tiun-duration-300"},E1,4))])],2)],32))}}),zi=t=>(wr("data-v-7a9c941e"),t=t(),br(),t),$1={class:"tiun-relative tiun-w-[40px] tiun-h-[40px] tiun-flex tiun-items-center tiun-flex-shrink-0 tiun-justify-center"},T1={key:0,class:"tiun-absolute tiun-text-[8px] tiun-font-bold"},L1=["width","height"],M1=zi(()=>p("path",{d:"M40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20ZM4.99099 20C4.99099 28.2893 11.7108 35.009 20 35.009C28.2893 35.009 35.009 28.2893 35.009 20C35.009 11.7108 28.2893 4.99099 20 4.99099C11.7108 4.99099 4.99099 11.7108 4.99099 20Z",fill:"#10B981"},null,-1)),R1=zi(()=>p("path",{d:"M20 2.49549C20 1.11727 18.8784 -0.016052 17.5109 0.155472C14.2961 0.558701 11.2141 1.7389 8.53857 3.60989C5.17844 5.95959 2.62168 9.28526 1.21459 13.1364C-0.192503 16.9876 -0.381936 21.1782 0.67195 25.1407C1.72583 29.1031 3.97211 32.6459 7.10653 35.2892C10.241 37.9324 14.1121 39.5485 18.1955 39.9184C22.279 40.2884 26.3775 39.3943 29.9359 37.3574C33.4943 35.3204 36.3407 32.239 38.0895 28.5305C39.4821 25.5775 40.1251 22.3405 39.9799 19.1038C39.9182 17.7269 38.6118 16.8127 37.2533 17.0454C35.8949 17.278 35.0044 18.5717 35.0089 19.95C35.0163 22.17 34.531 24.375 33.5753 26.4017C32.2629 29.1848 30.1268 31.4972 27.4564 33.0258C24.786 34.5545 21.7103 35.2254 18.6458 34.9478C15.5814 34.6702 12.6763 33.4574 10.3241 31.4738C7.97186 29.4901 6.28614 26.8314 5.49525 23.8578C4.70436 20.8842 4.84652 17.7394 5.90248 14.8492C6.95843 11.9591 8.87715 9.46337 11.3988 7.70003C13.2351 6.41592 15.3265 5.5654 17.5159 5.19796C18.8751 4.96985 20 3.87371 20 2.49549Z",fill:"url(#paint0_radial_3286_9385)"},null,-1)),A1={x:"50",y:"75","font-size":"10","font-weight":"500","text-anchor":"middle","alignment-baseline":"middle"},P1=zi(()=>p("defs",null,[p("radialGradient",{id:"paint0_radial_3286_9385",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(19) rotate(44.1931) scale(25.1048)"},[p("stop",{"stop-color":"#047857"}),p("stop",{offset:"1","stop-color":"#14B8A6","stop-opacity":"0.42"})])],-1)),B1={key:2,viewBox:"0 0 40 40",class:"tiun-block tiun-w-full tiun-h-full tiun-transform tiun--rotate-90"},H1=zi(()=>p("circle",{cx:"20",cy:"20",r:"17.5",fill:"none",class:"tiun-stroke-current tiun-text-gray-300","stroke-width":"5"},null,-1)),I1=["stroke-dashoffset"],O1=lt({__name:"RadialProgressBar",props:{maxValue:{type:Number,required:!0},progress:{type:Number,default:0},isFree:{type:Boolean,default:!1}},setup(t){const e=t,n=2*Math.PI*17.5,i=Y(()=>{const o=e.progress/100;return n*(1-o)}),{width:s}=qd();return(o,r)=>(v(),x("div",$1,[t.isFree?(v(),x("span",T1,"FREE")):st("",!0),t.isFree?(v(),x("svg",{key:1,width:b(s)<=640?40:50,height:b(s)<=640?40:50,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[M1,R1,p("text",A1,N(t.maxValue),1),P1],8,L1)):(v(),x("svg",B1,[H1,p("circle",{cx:"20",cy:"20",r:"17.5",fill:"none",stroke:"#10b981",class:"tiun-transition-all tiun-duration-700 tiun-ease-in-out","stroke-width":"5","stroke-linecap":"round","stroke-dasharray":n,"stroke-dashoffset":i.value},null,8,I1)]))]))}}),m5="",kt=(t,e)=>{const n=t.__vccOpts||t;for(const[i,s]of e)n[i]=s;return n},fa=kt(O1,[["__scopeId","data-v-7a9c941e"]]),bo=lt({__name:"CurrencyDisplay",props:{value:{type:Object,default:void 0}},setup(t){const e=n=>{switch(n){case"Space":return"";case"Minus":return"-";case"Plus":return"+";default:return""}};return(n,i)=>{var s,o,r,l;return v(),x("div",{class:V({"tiun-line-through":(s=t.value)==null?void 0:s.strikethrough})},N((o=t.value)==null?void 0:o.currencySymbol)+" "+N(e((r=t.value)==null?void 0:r.separator))+N((l=t.value)==null?void 0:l.displayValue),3)}}}),Co=t=>(wr("data-v-8cd87d87"),t=t(),br(),t),N1={class:"tiun-absolute tiun-backface-hidden tiun-px-4 tiun-py-6 tiun-w-full tiun-h-full"},D1={class:"tiun-grid tiun-justify-center tiun-text-center tiun-gap-4 tiun-content-center"},F1=["src"],V1={class:"tiun-flex tiun-items-center tiun-justify-center tiun-gap-2"},U1={class:"tiun-flex-shrink-0 tiun-flex tiun-items-center tiun-divide-x dark:tiun-divide-gray-600 tiun-divide-gray-200"},j1={class:"tiun-grid tiun-gap-2 tiun-pr-2"},W1={class:"tiun-text-gray-400 tiun-text-xs tiun-font-medium"},Z1={key:0,class:"tiun-text-sm tiun-font-semibold tiun-text-emerald-500"},z1={key:1,class:"tiun-text-sm tiun-font-semibold tiun-text-black dark:tiun-text-white"},q1={class:"tiun-grid tiun-gap-2 tiun-pl-2"},K1=Co(()=>p("span",{class:"tiun-relative tiun-flex tiun-h-5 tiun-w-5 tiun-items-center"},[p("svg",{width:"13",height:"12",viewBox:"0 0 13 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[p("path",{d:"M6.83325 8H6.33325V6H5.83325M6.33325 4H6.33825M10.8333 6C10.8333 8.48528 8.81853 10.5 6.33325 10.5C3.84797 10.5 1.83325 8.48528 1.83325 6C1.83325 3.51472 3.84797 1.5 6.33325 1.5C8.81853 1.5 10.8333 3.51472 10.8333 6Z",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"})])],-1)),J1={class:"tiun-text-sm tiun-font-semibold tiun-flex tiun-gap-1"},Q1={class:"tiun-text-gray-400"},X1={class:"tiun-flex tiun-items-center tiun-justify-between tiun-pt-2 tiun-pb-6 dark:tiun-text-white tiun-text-black"},Y1={class:"tiun-flex tiun-items-center tiun-gap-2"},G1=Co(()=>p("svg",{width:"13",height:"12",viewBox:"0 0 13 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"tiun-h-5 tiun-w-5"},[p("path",{d:"M6.83325 8H6.33325V6H5.83325M6.33325 4H6.33825M10.8333 6C10.8333 8.48528 8.81853 10.5 6.33325 10.5C3.84797 10.5 1.83325 8.48528 1.83325 6C1.83325 3.51472 3.84797 1.5 6.33325 1.5C8.81853 1.5 10.8333 3.51472 10.8333 6Z",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),t0={class:"tiun-text-sm tiun-font-semibold"},e0=[Co(()=>p("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"tiun-h-5 tiun-w-5"},[p("path",{d:"M4 12L12 4M4 4L12 12",stroke:"currentColor","stroke-width":"1.33333","stroke-linecap":"round","stroke-linejoin":"round"})],-1))],n0={class:"tiun-text-xs !tiun-leading-normal dark:tiun-text-gray-300 tiun-text-gray-500 tiun-font-medium"},i0=lt({__name:"ProviderCard",setup(t){const e=q(null),n=q(!1),i=vt(),s=Ot();Sl(e,()=>n.value=!1);const o=Y(()=>{var l;return(l=i.badgeData)==null?void 0:l.data});function r(){n.value=!0}return(l,a)=>{var c,u,f,d,m,g,_,C,w,E,A,$,D;return v(),x("div",{class:V(["tiun-relative tiun-preserve-3d tiun-w-full tiun-h-full tiun-duration-500",{"tiun-my-rotate-y-180":n.value}]),ref_key:"target",ref:e},[p("div",N1,[p("div",{class:V(["tiun-grid tiun-gap-6 tiun-h-full",{"tiun-rounded-xl":b(s).areCornersRounded}])},[p("div",D1,[(c=o.value)!=null&&c.logoUrl?(v(),x("img",{key:0,height:"48",width:"48",class:V(["tiun-flex-shrink-0 tiun-w-12 tiun-h-12 tiun-mx-auto tiun-border tiun-border-gray-100",{"tiun-rounded-md":b(s).areCornersRounded}]),src:(u=o.value)==null?void 0:u.logoUrl},null,10,F1)):st("",!0)]),p("div",V1,[p("div",U1,[p("div",j1,[p("span",W1,N((f=o.value)==null?void 0:f.sessionSpendTitle),1),(d=o.value)!=null&&d.sessionFreeText?(v(),x("span",Z1,N(o.value.sessionFreeText),1)):(v(),x("div",z1,[j(bo,{value:(m=o.value)==null?void 0:m.sessionSpend},null,8,["value"])]))]),p("div",q1,[p("button",{class:"tiun-outline-none focus:!tiun-outline-none focus-visible:!tiun-outline-1 tiun-rounded-xl focus-visible:!tiun-outline-black dark:focus-visible:!tiun-outline-white !tiun-text-gray-400 !tiun-text-xs tiun-group !tiun-font-medium tiun-flex tiun-items-center tiun-gap-1 dark:hover:!tiun-text-gray-300 hover:!tiun-text-gray-500 tiun-transition-colors disabled:hover:tiun-text-gray-400",onClick:r},[me(N((g=o.value)==null?void 0:g.monthlyLimitTitle)+" ",1),K1]),p("div",J1,[j(bo,{value:(_=o.value)==null?void 0:_.monthlyLimit.spend,class:"tiun-text-emerald-500"},null,8,["value"]),p("span",Q1," / "+N((C=o.value)==null?void 0:C.monthlyLimit.limit),1)])])]),j(fa,{isFree:(w=o.value)==null?void 0:w.monthlyLimit.isFree,progress:(E=o.value)==null?void 0:E.monthlyLimit.usagePercentage,maxValue:((A=o.value)==null?void 0:A.monthlyLimit.limit)||0},null,8,["isFree","progress","maxValue"])])],2)]),p("div",{class:V(["tiun-absolute tiun-z-20 tiun-my-rotate-y-180 tiun-backface-hidden tiun-px-4 tiun-py-6 tiun-w-full tiun-h-full tiun-overflow-hidden",{"tiun-rounded-xl":b(s).areCornersRounded}])},[p("div",X1,[p("div",Y1,[G1,p("span",t0,N(($=o.value)==null?void 0:$.monthlyLimitHintTitle),1)]),p("button",{type:"button",onClick:a[0]||(a[0]=G=>n.value=!1),class:"focus:!tiun-outline-none tiun-outline-none focus-visible:!tiun-outline-1 tiun-rounded-xl focus-visible:!tiun-outline-black dark:focus-visible:!tiun-outline-white dark:!tiun-text-white !tiun-text-gray-600 tiun-hover tiun-transition-all dark:hover:!tiun-opacity-80 hover:!tiun-text-black"},e0)]),p("p",n0,N((D=o.value)==null?void 0:D.monthlyLimitHintText),1)],2)],2)}}}),y5="",s0=kt(i0,[["__scopeId","data-v-8cd87d87"]]),o0={},r0={width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l0=[p("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.86321 3.86361C4.21469 3.51214 4.78453 3.51214 5.13601 3.86361L8.99961 7.72721L12.8632 3.86361C13.2147 3.51214 13.7845 3.51214 14.136 3.86361C14.4875 4.21508 14.4875 4.78493 14.136 5.1364L10.2724 9.00001L14.136 12.8636C14.4875 13.2151 14.4875 13.7849 14.136 14.1364C13.7845 14.4879 13.2147 14.4879 12.8632 14.1364L8.99961 10.2728L5.13601 14.1364C4.78453 14.4879 4.21469 14.4879 3.86321 14.1364C3.51174 13.7849 3.51174 13.2151 3.86321 12.8636L7.72682 9.00001L3.86321 5.1364C3.51174 4.78493 3.51174 4.21508 3.86321 3.86361Z",fill:"currentColor"},null,-1)];function a0(t,e){return v(),x("svg",r0,l0)}const Zn=kt(o0,[["render",a0]]),xo=async t=>{const e=await Pt.delete("/v1/hint",{params:{type:t}});return e==null?void 0:e.data},u0={class:"tiun-h-full"},c0={class:"tiun-h-full tiun-py-4 tiun-grid tiun-justify-center tiun-text-center tiun-gap-6 tiun-content-center"},d0={class:"tiun-text-sm tiun-font-bold tiun-text-black dark:tiun-text-white"},f0={class:"tiun-text-xs tiun-text-gray-400 dark:tiun-text-white tiun-font-medium"},p0={key:0,class:"tiun-text-emerald-500"},h0={key:1},g0={class:"tiun-absolute tiun-top-4 tiun-right-4"},m0=lt({__name:"MonthlyLimitCard",setup(t){const e=vt(),n=Y(()=>{var s,o;return(o=(s=e.badgeData)==null?void 0:s.data.hint)==null?void 0:o.data});async function i(){await xo("MonthlyLimitHit"),await e.loadInfo()}return(s,o)=>{var r,l,a,c,u,f;return v(),x("div",u0,[p("div",c0,[p("div",d0,N((r=n.value)==null?void 0:r.primaryLine),1),j(fa,{isFree:!0,progress:100,maxValue:0,class:"tiun-mx-auto"}),p("div",f0,[me(N((l=n.value)==null?void 0:l.secondaryLineBefore),1),(a=n.value)!=null&&a.secondaryLineHighlight?(v(),x("span",p0,N((c=n.value)==null?void 0:c.secondaryLineHighlight),1)):st("",!0),(u=n.value)!=null&&u.secondaryLineAfter?(v(),x("span",h0,N((f=n.value)==null?void 0:f.secondaryLineAfter),1)):st("",!0)])]),p("div",g0,[p("button",{type:"button",class:"tiun-rounded-xl tiun-outline-none focus-visible:tiun-outline-1 dark:focus-visible:tiun-outline-white focus-visible:tiun-outline-black !tiun-text-gray-600 dark:!tiun-text-white tiun-hover tiun-transition-colors dark:hover:!tiun-text-opacity-80 hover:!tiun-text-black",onClick:i},[j(Zn)])])])}}}),_0=async t=>{const e=await Pt.post("/v1/sessions/ratings",{rating:t});return e==null?void 0:e.data},y0=async t=>{const e=await Pt.post("/v1/sessions/ratings/reasons",{reason:t});return e==null?void 0:e.data},v0={},w0={width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},b0=[p("rect",{width:"18",height:"18",rx:"9",fill:"#D1FAE5"},null,-1),p("path",{d:"M6.375 9.375L7.875 10.875L11.625 7.125",stroke:"#059669","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)];function C0(t,e){return v(),x("svg",w0,b0)}const ko=kt(v0,[["render",C0]]),x0={key:0,class:"tiun-inset-0 tiun-absolute tiun-w-full tiun-flex tiun-flex-col tiun-h-full tiun-justify-center tiun-items-center tiun-gap-8"},k0={class:"tiun-text-sm tiun-font-bold dark:tiun-text-white tiun-text-black"},S0={key:1,class:"tiun-inset-0 tiun-absolute tiun-w-full tiun-flex tiun-flex-col tiun-h-full tiun-justify-center tiun-items-center tiun-gap-6"},E0={class:"tiun-absolute tiun-right-4 tiun-top-4"},$0={class:"tiun-text-sm tiun-font-bold dark:tiun-text-white tiun-text-black"},T0={key:2,class:"tiun-absolute tiun-inset-4"},L0={class:"tiun-absolute tiun-right-0 tiun-top-0"},M0={class:"tiun-flex tiun-justify-center tiun-h-[90%] tiun-flex-col tiun-gap-6"},R0={class:"tiun-py-4 tiun-text-sm tiun-font-bold tiun-text-center dark:tiun-text-white tiun-text-black"},A0={class:"tiun-flex tiun-items-center tiun-gap-2 tiun-w-full tiun-justify-between"},P0=["onClick"],B0=["src"],H0={class:"tiun-text-tiny tiun-leading-4 dark:tiun-text-gray-300 tiun-text-gray-700 tiun-transition-colors tiun-font-semibold dark:group-hover:tiun-text-white group-hover:tiun-text-black"},I0={key:3,class:"tiun-absolute tiun-inset-4 tiun-flex tiun-flex-col tiun-gap-4"},O0={class:"tiun-absolute tiun-right-0 tiun-top-0"},N0={class:"tiun-flex tiun-justify-center tiun-h-[90%] tiun-flex-col tiun-gap-6"},D0={class:"tiun-text-sm tiun-font-bold tiun-pb-4 tiun-text-center dark:tiun-text-white tiun-text-black"},F0={class:"tiun-flex tiun-flex-wrap tiun-gap-x-1 tiun-gap-y-4 tiun-w-full tiun-justify-center"},V0=["onClick"],U0={class:"!tiun-text-xxs !tiun-leading-4 dark:group-hover:tiun-bg-gray-700 group-hover:tiun-bg-gray-100 tiun-rounded-full dark:tiun-text-gray-100 !tiun-px-2.5 !tiun-py-2 tiun-text-gray-600 tiun-transition-colors !tiun-font-medium dark:group-hover:tiun-text-white group-hover:tiun-text-black"},j0=lt({__name:"RatingCard",setup(t){const e=vt(),n=q("sessionEnded"),i=q(),s=q(),o=Y(()=>{var d,m;return((m=(d=e.snippetInfo)==null?void 0:d.infoBadge)==null?void 0:m.open)&&e.showSpentScreen}),r=Y(()=>{var d,m;return(m=(d=e.badgeData)==null?void 0:d.data.hint)==null?void 0:m.data});o.value?(n.value="sessionEnded",setTimeout(()=>n.value="idle",1500)):n.value="idle";async function l(d){var g,_;s.value=(g=r.value.ratings.find(C=>C.rating===d))==null?void 0:g.reasons;const m=s.value&&((_=s.value)==null?void 0:_.length)>0;n.value=m?"active":"done",i.value=d,await _0(d),m||setTimeout(()=>a(),1500)}function a(){e.loadInfo(),e.showSpentScreen=!1}async function c(){await xo("SkipRating"),a()}async function u(){await xo("SkipRatingReason"),a()}async function f(d){try{n.value="done",await y0(d),setTimeout(()=>a(),1500)}catch{console.log("Error while trying to post feedback.")}}return(d,m)=>(v(),pt(It,{name:"tiun-fade"},{default:Dt(()=>[n.value==="sessionEnded"?(v(),x("div",x0,[p("div",k0,N(r.value.sessionEndSuccessMessage),1),j(ko,{class:"tiun-h-10 tiun-w-10"})])):n.value==="done"?(v(),x("div",S0,[p("div",E0,[p("button",{type:"button",class:"tiun-rounded-xl tiun-outline-none focus-visible:tiun-outline-1 dark:focus-visible:tiun-outline-white focus-visible:tiun-outline-black !tiun-text-gray-600 dark:!tiun-text-white tiun-hover tiun-transition-colors dark:hover:!tiun-text-opacity-80 hover:!tiun-text-black",onClick:m[0]||(m[0]=g=>a())},[j(Zn)])]),p("div",$0,N(r.value.submittedMessage),1),j(ko,{class:"tiun-h-10 tiun-w-10"})])):n.value==="idle"?(v(),x("div",T0,[p("div",L0,[p("button",{type:"button",class:"tiun-rounded-xl tiun-outline-none focus-visible:tiun-outline-1 dark:focus-visible:tiun-outline-white focus-visible:tiun-outline-black !tiun-text-gray-600 dark:!tiun-text-white tiun-hover tiun-transition-colors dark:hover:!tiun-text-opacity-80 hover:!tiun-text-black",onClick:m[1]||(m[1]=g=>c())},[j(Zn)])]),p("div",M0,[p("div",R0,N(r.value.ratingTitle),1),p("section",A0,[(v(!0),x(gt,null,Kt(r.value.ratings,g=>(v(),x("button",{key:g.text,onClick:_=>l(g.rating),type:"button",class:"tiun-outline-none tiun-rounded-sm focus-visible:tiun-outline-1 focus-visible:tiun-outline-black dark:focus-visible:tiun-outline-white tiun-grid tiun-gap-2 tiun-justify-items-center tiun-w-full tiun-group"},[p("img",{src:g.imageUrl,class:"tiun-h-6 tiun-w-6"},null,8,B0),p("div",H0,N(g.text),1)],8,P0))),128))])])])):(v(),x("div",I0,[p("div",O0,[p("button",{type:"button",class:"tiun-rounded-xl focus:!tiun-outline-none tiun-outline-none focus-visible:!tiun-outline-1 dark:focus-visible:!tiun-outline-white focus-visible:!tiun-outline-black !tiun-text-gray-600 dark:!tiun-text-white tiun-hover tiun-transition-colors dark:hover:!tiun-text-opacity-80 hover:!tiun-text-black",onClick:m[2]||(m[2]=g=>u())},[j(Zn)])]),p("div",N0,[p("div",D0,N(r.value.ratingReasonTitle),1),p("section",F0,[(v(!0),x(gt,null,Kt(s.value,g=>(v(),x("button",{key:g,onClick:_=>f(g),type:"button",class:"tiun-border tiun-rounded-full tiun-border-gray-300 tiun-group"},[p("div",U0,N(g),1)],8,V0))),128))])])]))]),_:1}))}}),W0=async()=>{const t=await Pt.post("/v1/paywall",{currentUrl:window.location.href});return t==null?void 0:t.data},Z0={width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},z0=["fill"],q0=["fill"],K0=["fill"],J0=["fill"],Q0=["fill"],X0=["fill"],Y0=["fill"],G0=lt({__name:"lightBulbIcon",props:{darkMode:{type:Boolean,default:!1}},setup(t){return(e,n)=>(v(),x("svg",Z0,[p("circle",{cx:"24",cy:"24",r:"24",fill:"currentColor",class:V(["tiun-transition-colors",{"group-hover:tiun-fill-gray-400":!t.darkMode}])},null,2),p("path",{d:"M24.3998 17.7C24.3998 17.203 23.9969 16.8 23.4998 16.8C23.0027 16.8 22.5998 17.203 22.5998 17.7V18.6C22.5998 19.0971 23.0027 19.5 23.4998 19.5C23.9969 19.5 24.3998 19.0971 24.3998 18.6V17.7Z",class:V(["tiun-transition-colors",{"group-hover:tiun-fill-white":t.darkMode}]),fill:t.darkMode?"#9CA3AF":"#fff"},null,10,z0),p("path",{d:"M28.5909 20.1816C28.9424 19.8302 28.9424 19.2603 28.5909 18.9088C28.2395 18.5574 27.6696 18.5574 27.3181 18.9088L26.6817 19.5452C26.3303 19.8967 26.3303 20.4665 26.6817 20.818C27.0332 21.1695 27.6031 21.1695 27.9545 20.818L28.5909 20.1816Z",class:V(["tiun-transition-colors",{"group-hover:tiun-fill-white":t.darkMode}]),fill:t.darkMode?"#9CA3AF":"#fff"},null,10,q0),p("path",{d:"M30.6998 24C30.6998 24.4971 30.2969 24.9 29.7998 24.9H28.8998C28.4027 24.9 27.9998 24.4971 27.9998 24C27.9998 23.503 28.4027 23.1 28.8998 23.1H29.7998C30.2969 23.1 30.6998 23.503 30.6998 24Z",class:V(["tiun-transition-colors",{"group-hover:tiun-fill-white":t.darkMode}]),fill:t.darkMode?"#9CA3AF":"#fff"},null,10,K0),p("path",{d:"M19.045 20.818C19.3964 21.1695 19.9663 21.1695 20.3178 20.818C20.6692 20.4666 20.6692 19.8967 20.3178 19.5452L19.6814 18.9088C19.3299 18.5574 18.7601 18.5574 18.4086 18.9088C18.0571 19.2603 18.0571 19.8302 18.4086 20.1816L19.045 20.818Z",class:V(["tiun-transition-colors",{"group-hover:tiun-fill-white":t.darkMode}]),fill:t.darkMode?"#9CA3AF":"#fff"},null,10,J0),p("path",{d:"M18.9998 24C18.9998 24.4971 18.5969 24.9 18.0998 24.9H17.1998C16.7027 24.9 16.2998 24.4971 16.2998 24C16.2998 23.503 16.7027 23.1 17.1998 23.1H18.0998C18.5969 23.1 18.9998 23.503 18.9998 24Z",class:V(["tiun-transition-colors",{"group-hover:tiun-fill-white":t.darkMode}]),fill:t.darkMode?"#9CA3AF":"#fff"},null,10,Q0),p("path",{d:"M21.6998 29.4V28.5H25.2998V29.4C25.2998 30.3942 24.4939 31.2 23.4998 31.2C22.5057 31.2 21.6998 30.3942 21.6998 29.4Z",class:V(["tiun-transition-colors",{"group-hover:tiun-fill-white":t.darkMode}]),fill:t.darkMode?"#9CA3AF":"#fff"},null,10,X0),p("path",{d:"M25.3006 27.6C25.3137 27.2938 25.4866 27.0184 25.7289 26.8271C26.5639 26.1678 27.0998 25.1465 27.0998 24C27.0998 22.0118 25.488 20.4 23.4998 20.4C21.5116 20.4 19.8998 22.0118 19.8998 24C19.8998 25.1465 20.4357 26.1678 21.2707 26.8271C21.513 27.0184 21.6859 27.2938 21.699 27.6H25.3006Z",class:V(["tiun-transition-colors",{"group-hover:tiun-fill-white":t.darkMode}]),fill:t.darkMode?"#9CA3AF":"#fff"},null,10,Y0)]))}}),tp={width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ep=["fill"],np=lt({__name:"pricingIcon",props:{darkMode:{type:Boolean,default:!1}},setup(t){return(e,n)=>(v(),x("svg",tp,[p("circle",{cx:"24",cy:"24",r:"24",fill:"currentColor",class:V(["tiun-transition-colors",{"group-hover:tiun-fill-gray-400":!t.darkMode}])},null,2),p("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M30.9362 23.3637C31.2877 23.7151 31.2877 24.285 30.9362 24.6364L24.6362 30.9364C24.2847 31.2879 23.7149 31.2879 23.3634 30.9364L17.0634 24.6364C16.8876 24.4607 16.7998 24.2303 16.7998 23.9999V19.5C16.7998 18.0089 18.0086 16.8 19.4998 16.8H24.0001C24.2303 16.8001 24.4605 16.888 24.6362 17.0637L30.9362 23.3637ZM19.4998 20.4C19.9969 20.4 20.3998 19.9971 20.3998 19.5C20.3998 19.003 19.9969 18.6 19.4998 18.6C19.0027 18.6 18.5998 19.003 18.5998 19.5C18.5998 19.9971 19.0027 20.4 19.4998 20.4Z",class:V(["tiun-transition-colors",{"group-hover:tiun-fill-white":t.darkMode}]),fill:t.darkMode?"#9CA3AF":"#fff"},null,10,ep)]))}}),ip={width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},sp=["fill"],op=["fill"],rp=lt({__name:"supportIcon",props:{darkMode:{type:Boolean,default:!1}},setup(t){return(e,n)=>(v(),x("svg",ip,[p("circle",{cx:"24",cy:"24",r:"24",fill:"currentColor",class:V(["tiun-transition-colors",{"group-hover:tiun-fill-gray-400":!t.darkMode}])},null,2),p("path",{d:"M16.8025 20.2956L23.9998 23.8938L31.1971 20.2956C31.1705 19.837 30.9695 19.4059 30.6353 19.0907C30.3012 18.7754 29.8592 18.5999 29.3998 18.6H18.5998C18.1404 18.5999 17.6984 18.7754 17.3643 19.0907C17.0301 19.4059 16.8291 19.837 16.8025 20.2956Z",class:V(["tiun-transition-colors",{"group-hover:tiun-fill-white":t.darkMode}]),fill:t.darkMode?"#9CA3AF":"#fff"},null,10,sp),p("path",{d:"M31.1998 22.3062L23.9998 25.9062L16.7998 22.3062V27.6C16.7998 28.0774 16.9894 28.5352 17.327 28.8728C17.6646 29.2103 18.1224 29.4 18.5998 29.4H29.3998C29.8772 29.4 30.335 29.2103 30.6726 28.8728C31.0102 28.5352 31.1998 28.0774 31.1998 27.6V22.3062Z",class:V(["tiun-transition-colors",{"group-hover:tiun-fill-white":t.darkMode}]),fill:t.darkMode?"#9CA3AF":"#fff"},null,10,op)]))}}),lp={width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ap=["fill"],up=lt({__name:"videoIcon",props:{darkMode:{type:Boolean,default:!1}},setup(t){return(e,n)=>(v(),x("svg",lp,[p("circle",{cx:"24",cy:"24",r:"24",fill:"currentColor",class:V(["tiun-transition-colors",{"group-hover:tiun-fill-gray-400":!t.darkMode}])},null,2),p("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M23.9998 31.2C27.9763 31.2 31.1998 27.9765 31.1998 24C31.1998 20.0236 27.9763 16.8 23.9998 16.8C20.0234 16.8 16.7998 20.0236 16.7998 24C16.7998 27.9765 20.0234 31.2 23.9998 31.2ZM23.599 21.4512C23.3229 21.2671 22.9678 21.2499 22.6751 21.4065C22.3825 21.5632 22.1998 21.8681 22.1998 22.2001V25.8001C22.1998 26.132 22.3825 26.4369 22.6751 26.5936C22.9678 26.7502 23.3229 26.733 23.599 26.5489L26.299 24.7489C26.5494 24.582 26.6998 24.301 26.6998 24.0001C26.6998 23.6991 26.5494 23.4181 26.299 23.2512L23.599 21.4512Z",class:V(["tiun-transition-colors",{"group-hover:tiun-fill-white":t.darkMode}]),fill:t.darkMode?"#9CA3AF":"#fff"},null,10,ap)]))}}),zn=async t=>{const e=await Pt.post("/v1/paywall/interaction",{currentUrl:window.location.href,type:t});return e==null?void 0:e.data},cp=async()=>{const t=await Pt.post("/v1/paywall/view",{currentUrl:window.location.href});return t==null?void 0:t.data},ie=Wi("paywallState",()=>{const t=q(!1),e=q(),n=q(),i=q(),s=q("showPaymentMethods"),o=Ot(),r=Y(()=>{var u,f,d,m,g,_,C,w,E,A,$,D;return[{type:G0,text:(d=(f=(u=e.value)==null?void 0:u.helpCenter)==null?void 0:f.hintWhatIsTiun)==null?void 0:d.helpCenterCtaString,value:"whatsTiun"},{type:up,text:(_=(g=(m=e.value)==null?void 0:m.helpCenter)==null?void 0:g.hintHowItWorks)==null?void 0:_.helpCenterCtaString,value:"howItWorks"},{type:np,text:(E=(w=(C=e.value)==null?void 0:C.helpCenter)==null?void 0:w.pricing)==null?void 0:E.helpCenterCtaString,value:"pricing"},{type:rp,text:(D=($=(A=e.value)==null?void 0:A.helpCenter)==null?void 0:$.support)==null?void 0:D.helpCenterCtaString,value:"support"}]});async function l(){var u;t.value=!0;try{e.value=await W0(),n.value=((u=e.value.preselectedPaymentMethod)==null?void 0:u.type)||e.value.paymentMethodList[0].type}catch{console.log("Error while trying to load modules")}finally{setTimeout(()=>t.value=!1,300)}}function a(u){n.value=u,o.isPreviewMode||zn("SwitchPaymentMethod")}function c(u){i.value=u}return{loadingPaywall:t,paywallConfig:e,selectedMethod:n,currentView:s,selectedHint:i,allHints:r,setHint:c,loadPaywall:l,setPaymentMethod:a}}),dp={class:"tiun-h-full"},fp={class:"tiun-px-6 tiun-h-full tiun-py-4 tiun-grid tiun-justify-center tiun-text-center tiun-gap-6 tiun-content-center"},pp={class:"tiun-text-sm tiun-font-bold tiun-text-black dark:tiun-text-white"},hp=p("div",{"aria-label":"Loading...",role:"status",class:"tiun-flex tiun-justify-center"},[p("svg",{class:"tiun-animate-spin tiun-h-10 tiun-w-10 !tiun-fill-indigo-600",viewBox:"3 3 18 18"},[p("path",{class:"tiun-opacity-20",d:"M12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5ZM3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12Z"}),p("path",{d:"M16.9497 7.05015C14.2161 4.31648 9.78392 4.31648 7.05025 7.05015C6.65973 7.44067 6.02656 7.44067 5.63604 7.05015C5.24551 6.65962 5.24551 6.02646 5.63604 5.63593C9.15076 2.12121 14.8492 2.12121 18.364 5.63593C18.7545 6.02646 18.7545 6.65962 18.364 7.05015C17.9734 7.44067 17.3403 7.44067 16.9497 7.05015Z"})])],-1),gp={key:0,class:"tiun-text-xxs tiun-text-gray-500 dark:tiun-text-white"},mp=lt({__name:"LoadingCard",setup(t){const e=vt(),n=Y(()=>{var i;return(i=e.badgeData)==null?void 0:i.data});return(i,s)=>{var o,r;return v(),x("div",dp,[p("div",fp,[p("div",pp,N((o=n.value)==null?void 0:o.loadingSpinnerText),1),hp,(r=n.value)!=null&&r.explanationText?(v(),x("div",gp,N(n.value.explanationText),1)):st("",!0)])])}}}),_p={class:"tiun-h-full"},yp={class:"tiun-px-6 tiun-h-full tiun-grid tiun-justify-center tiun-text-center tiun-gap-6 tiun-content-center"},vp={class:"tiun-text-sm tiun-font-bold tiun-text-black dark:tiun-text-white"},wp=p("div",{role:"status",class:"tiun-flex tiun-justify-center"},[p("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"tiun-h-10 tiun-w-10"},[p("rect",{width:"18",height:"18",rx:"9",fill:"#D1FAE5"}),p("path",{d:"M6.375 9.375L7.875 10.875L11.625 7.125",stroke:"#059669","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})])],-1),bp=lt({__name:"SuccessCard",setup(t){const e=vt(),n=Y(()=>{var i;return(i=e.badgeData)==null?void 0:i.data});return(i,s)=>{var o,r;return v(),x("div",_p,[p("div",yp,[p("div",vp,N((r=(o=n.value)==null?void 0:o.animation)==null?void 0:r.successfulConnectionText),1),wp])])}}}),Cp={key:2,class:"tiun-h-full tiun-absolute tiun-inset-0","data-cy":"tiunUnlockSessionCard"},xp={class:"tiun-text-base tiun-leading-normal tiun-text-white"},kp=p("img",{src:"https://assets.tiun.dev/snippets/emojis/index_pointing_down.svg",class:"!tiun-inline"},null,-1),Sp={class:"tiun-h-full tiun-p-4 tiun-grid tiun-justify-center tiun-text-center tiun-gap-4 tiun-content-center"},Ep=["src"],$p={class:"tiun-grid tiun-gap-1"},Tp={class:"tiun-text-sm tiun-leading-5 tiun-font-bold dark:tiun-text-white tiun-text-black"},Lp={class:"tiun-text-xs tiun-font-medium tiun-text-gray-400"},pa=lt({__name:"UnlockSessionCard",props:{type:{type:String,required:!0}},setup(t){const e=t,n=vt(),i=ie(),s=q(),o=Ot(),r=Y(()=>{var l;return(l=n.badgeData)==null?void 0:l.data});return At(()=>{var l;return(l=r.value)==null?void 0:l.animation},()=>{var l,a,c,u,f,d,m,g,_,C;if(!((a=(l=r.value)==null?void 0:l.animation)!=null&&a.showSuccessfulConnectionAnimation)&&!((u=(c=r.value)==null?void 0:c.animation)!=null&&u.showStartNextSessionAnimation)){s.value="idle";return}else i.currentView="showPaymentMethods",e.type==="badge"&&((f=r.value)!=null&&f.animation.showOnPaywallInsteadOfBadge)||e.type==="paywall"&&!((d=r.value)!=null&&d.animation.showOnPaywallInsteadOfBadge)?s.value="idle":(m=r.value)!=null&&m.animation.showSuccessfulConnectionAnimation&&((g=r.value)!=null&&g.animation.showStartNextSessionAnimation)?(s.value="success",setTimeout(()=>s.value="startSession",3e3),setTimeout(()=>s.value="idle",8e3)):(_=r.value)!=null&&_.animation.showSuccessfulConnectionAnimation?(s.value="success",setTimeout(()=>s.value="idle",3e3)):(C=r.value)!=null&&C.animation.showStartNextSessionAnimation?(s.value="startSession",setTimeout(()=>s.value="idle",3e3)):s.value="idle"},{immediate:!0,deep:!0}),(l,a)=>(v(),pt(It,{name:"tiun-fade"},{default:Dt(()=>{var c,u,f,d,m;return[b(n).isLoadingSessionBadge?(v(),pt(mp,{key:0,class:"tiun-absolute tiun-inset-0"})):s.value==="success"||!s.value?(v(),pt(bp,{key:1,class:"tiun-absolute tiun-inset-0"})):(v(),x("div",Cp,[p("div",{class:V(["tiun-transition-opacity tiun-duration-300 tiun-absolute tiun-gap-1 tiun-font-bold tiun-text-base tiun-h-full tiun-w-full tiun-bg-black tiun-text-white tiun-flex tiun-items-end tiun-text-end tiun-p-8",[{"tiun-rounded-xl":b(o).areCornersRounded},s.value==="startSession"?"tiun-opacity-90":"tiun-opacity-0"]])},[p("span",xp,N((u=(c=r.value)==null?void 0:c.animation)==null?void 0:u.startNextSessionText),1),kp],2),p("div",Sp,[(f=r.value)!=null&&f.logoUrl?(v(),x("img",{key:0,height:"48",width:"48",class:V(["tiun-flex-shrink-0 !tiun-my-0 tiun-w-12 tiun-h-12 tiun-mx-auto tiun-border tiun-border-gray-100",{"tiun-rounded-md":b(o).areCornersRounded}]),src:r.value.logoUrl},null,10,Ep)):(v(),x("div",{key:1,class:V([{"tiun-rounded-md":b(o).areCornersRounded},"tiun-h-12 tiun-w-12 dark:tiun-bg-gray-700 tiun-bg-gray-100 tiun-flex tiun-items-center tiun-mx-auto tiun-justify-center"])},null,2)),p("div",$p,[p("div",Tp,N((d=r.value)==null?void 0:d.primaryLine),1),p("div",Lp,N((m=r.value)==null?void 0:m.secondaryLine),1)])])]))]}),_:1}))}}),Mp={},Rp={class:"tiun-absolute tiun-top-4 tiun-right-4"},Ap=[p("svg",{width:"71",height:"12",viewBox:"0 0 71 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[p("path",{d:"M0.795943 9V3.18182H2.86981C3.32246 3.18182 3.69746 3.2642 3.99481 3.42898C4.29216 3.59375 4.51469 3.81913 4.66242 4.10511C4.81015 4.3892 4.88401 4.70928 4.88401 5.06534C4.88401 5.4233 4.8092 5.74527 4.65958 6.03125C4.51185 6.31534 4.28837 6.54072 3.98912 6.70739C3.69178 6.87216 3.31772 6.95455 2.86697 6.95455H1.44083V6.21023H2.78742C3.07341 6.21023 3.30541 6.16098 3.48344 6.0625C3.66147 5.96212 3.79215 5.82576 3.87549 5.65341C3.95882 5.48106 4.00049 5.28504 4.00049 5.06534C4.00049 4.84564 3.95882 4.65057 3.87549 4.48011C3.79215 4.30966 3.66053 4.17614 3.4806 4.07955C3.30257 3.98295 3.06772 3.93466 2.77606 3.93466H1.67378V9H0.795943ZM7.62833 9.08807C7.21924 9.08807 6.86223 8.99432 6.55731 8.80682C6.25238 8.61932 6.01564 8.35701 5.84708 8.01989C5.67852 7.68277 5.59424 7.28883 5.59424 6.83807C5.59424 6.38542 5.67852 5.98958 5.84708 5.65057C6.01564 5.31155 6.25238 5.0483 6.55731 4.8608C6.86223 4.6733 7.21924 4.57955 7.62833 4.57955C8.03742 4.57955 8.39443 4.6733 8.69935 4.8608C9.00428 5.0483 9.24102 5.31155 9.40958 5.65057C9.57814 5.98958 9.66242 6.38542 9.66242 6.83807C9.66242 7.28883 9.57814 7.68277 9.40958 8.01989C9.24102 8.35701 9.00428 8.61932 8.69935 8.80682C8.39443 8.99432 8.03742 9.08807 7.62833 9.08807ZM7.63117 8.375C7.89632 8.375 8.11602 8.30492 8.29026 8.16477C8.4645 8.02462 8.59329 7.83807 8.67662 7.60511C8.76185 7.37216 8.80447 7.11553 8.80447 6.83523C8.80447 6.55682 8.76185 6.30114 8.67662 6.06818C8.59329 5.83333 8.4645 5.64489 8.29026 5.50284C8.11602 5.3608 7.89632 5.28977 7.63117 5.28977C7.36412 5.28977 7.14253 5.3608 6.9664 5.50284C6.79215 5.64489 6.66242 5.83333 6.57719 6.06818C6.49386 6.30114 6.45219 6.55682 6.45219 6.83523C6.45219 7.11553 6.49386 7.37216 6.57719 7.60511C6.66242 7.83807 6.79215 8.02462 6.9664 8.16477C7.14253 8.30492 7.36412 8.375 7.63117 8.375ZM11.4238 9L10.1397 4.63636H11.0175L11.8726 7.84091H11.9153L12.7732 4.63636H13.6511L14.5033 7.8267H14.5459L15.3954 4.63636H16.2732L14.992 9H14.1255L13.2391 5.84943H13.1738L12.2874 9H11.4238ZM18.8272 9.08807C18.3973 9.08807 18.027 8.99621 17.7164 8.8125C17.4077 8.62689 17.169 8.36648 17.0005 8.03125C16.8338 7.69413 16.7505 7.29924 16.7505 6.84659C16.7505 6.39962 16.8338 6.00568 17.0005 5.66477C17.169 5.32386 17.4039 5.05777 17.705 4.86648C18.0081 4.67519 18.3622 4.57955 18.7675 4.57955C19.0137 4.57955 19.2524 4.62027 19.4834 4.7017C19.7145 4.78314 19.9219 4.91098 20.1056 5.08523C20.2893 5.25947 20.4342 5.4858 20.5403 5.7642C20.6463 6.04072 20.6994 6.37689 20.6994 6.77273V7.07386H17.2306V6.4375H19.867C19.867 6.21402 19.8215 6.0161 19.7306 5.84375C19.6397 5.66951 19.5119 5.5322 19.3471 5.43182C19.1842 5.33144 18.9929 5.28125 18.7732 5.28125C18.5346 5.28125 18.3262 5.33996 18.1482 5.45739C17.9721 5.57292 17.8357 5.72443 17.7391 5.91193C17.6444 6.09754 17.5971 6.29924 17.5971 6.51705V7.0142C17.5971 7.30587 17.6482 7.55398 17.7505 7.75852C17.8547 7.96307 17.9995 8.11932 18.1851 8.22727C18.3708 8.33333 18.5876 8.38636 18.8357 8.38636C18.9967 8.38636 19.1435 8.36364 19.2761 8.31818C19.4086 8.27083 19.5232 8.20076 19.6198 8.10795C19.7164 8.01515 19.7903 7.90057 19.8414 7.7642L20.6454 7.90909C20.581 8.14583 20.4655 8.35322 20.2988 8.53125C20.134 8.70739 19.9266 8.8447 19.6766 8.94318C19.4285 9.03977 19.1454 9.08807 18.8272 9.08807ZM21.6418 9V4.63636H22.4628V5.32955H22.5083C22.5878 5.0947 22.728 4.91004 22.9288 4.77557C23.1314 4.6392 23.3606 4.57102 23.6163 4.57102C23.6693 4.57102 23.7318 4.57292 23.8038 4.5767C23.8776 4.58049 23.9354 4.58523 23.9771 4.59091V5.40341C23.943 5.39394 23.8824 5.38352 23.7952 5.37216C23.7081 5.3589 23.621 5.35227 23.5339 5.35227C23.3331 5.35227 23.1541 5.39489 22.9969 5.48011C22.8416 5.56345 22.7185 5.67992 22.6276 5.82955C22.5367 5.97727 22.4913 6.14583 22.4913 6.33523V9H21.6418ZM26.4366 9.08807C26.0066 9.08807 25.6364 8.99621 25.3258 8.8125C25.0171 8.62689 24.7784 8.36648 24.6099 8.03125C24.4432 7.69413 24.3599 7.29924 24.3599 6.84659C24.3599 6.39962 24.4432 6.00568 24.6099 5.66477C24.7784 5.32386 25.0133 5.05777 25.3144 4.86648C25.6174 4.67519 25.9716 4.57955 26.3769 4.57955C26.6231 4.57955 26.8618 4.62027 27.0928 4.7017C27.3239 4.78314 27.5313 4.91098 27.715 5.08523C27.8987 5.25947 28.0436 5.4858 28.1496 5.7642C28.2557 6.04072 28.3087 6.37689 28.3087 6.77273V7.07386H24.84V6.4375H27.4763C27.4763 6.21402 27.4309 6.0161 27.34 5.84375C27.2491 5.66951 27.1212 5.5322 26.9565 5.43182C26.7936 5.33144 26.6023 5.28125 26.3826 5.28125C26.144 5.28125 25.9356 5.33996 25.7576 5.45739C25.5815 5.57292 25.4451 5.72443 25.3485 5.91193C25.2538 6.09754 25.2065 6.29924 25.2065 6.51705V7.0142C25.2065 7.30587 25.2576 7.55398 25.3599 7.75852C25.464 7.96307 25.6089 8.11932 25.7945 8.22727C25.9801 8.33333 26.197 8.38636 26.4451 8.38636C26.6061 8.38636 26.7529 8.36364 26.8854 8.31818C27.018 8.27083 27.1326 8.20076 27.2292 8.10795C27.3258 8.01515 27.3996 7.90057 27.4508 7.7642L28.2547 7.90909C28.1904 8.14583 28.0748 8.35322 27.9082 8.53125C27.7434 8.70739 27.536 8.8447 27.286 8.94318C27.0379 9.03977 26.7547 9.08807 26.4366 9.08807ZM30.8847 9.08523C30.5324 9.08523 30.2181 8.99527 29.9415 8.81534C29.6669 8.63352 29.451 8.375 29.2938 8.03977C29.1385 7.70265 29.0609 7.2983 29.0609 6.8267C29.0609 6.35511 29.1395 5.9517 29.2967 5.61648C29.4557 5.28125 29.6735 5.02462 29.9501 4.84659C30.2266 4.66856 30.54 4.57955 30.8904 4.57955C31.1612 4.57955 31.379 4.625 31.5438 4.71591C31.7105 4.80492 31.8393 4.90909 31.9302 5.02841C32.023 5.14773 32.0949 5.25284 32.1461 5.34375H32.1972V3.18182H33.0467V9H32.2171V8.32102H32.1461C32.0949 8.41383 32.0211 8.51989 31.9245 8.6392C31.8298 8.75852 31.6991 8.86269 31.5324 8.9517C31.3658 9.04072 31.1499 9.08523 30.8847 9.08523ZM31.0722 8.3608C31.3165 8.3608 31.523 8.2964 31.6915 8.16761C31.862 8.03693 31.9908 7.85606 32.0779 7.625C32.1669 7.39394 32.2114 7.125 32.2114 6.81818C32.2114 6.51515 32.1679 6.25 32.0807 6.02273C31.9936 5.79545 31.8658 5.61837 31.6972 5.49148C31.5287 5.36458 31.3203 5.30114 31.0722 5.30114C30.8165 5.30114 30.6035 5.36742 30.433 5.5C30.2626 5.63258 30.1338 5.81345 30.0467 6.04261C29.9614 6.27178 29.9188 6.5303 29.9188 6.81818C29.9188 7.10985 29.9624 7.37216 30.0495 7.60511C30.1366 7.83807 30.2654 8.02273 30.4359 8.15909C30.6082 8.29356 30.8203 8.3608 31.0722 8.3608ZM36.4444 9V3.18182H37.2938V5.34375H37.3449C37.3942 5.25284 37.4652 5.14773 37.558 5.02841C37.6508 4.90909 37.7796 4.80492 37.9444 4.71591C38.1092 4.625 38.327 4.57955 38.5978 4.57955C38.9501 4.57955 39.2645 4.66856 39.541 4.84659C39.8175 5.02462 40.0343 5.28125 40.1915 5.61648C40.3506 5.9517 40.4302 6.35511 40.4302 6.8267C40.4302 7.2983 40.3516 7.70265 40.1944 8.03977C40.0372 8.375 39.8213 8.63352 39.5467 8.81534C39.272 8.99527 38.9586 9.08523 38.6063 9.08523C38.3412 9.08523 38.1243 9.04072 37.9557 8.9517C37.7891 8.86269 37.6584 8.75852 37.5637 8.6392C37.469 8.51989 37.3961 8.41383 37.3449 8.32102H37.2739V9H36.4444ZM37.2768 6.81818C37.2768 7.125 37.3213 7.39394 37.4103 7.625C37.4993 7.85606 37.6281 8.03693 37.7967 8.16761C37.9652 8.2964 38.1717 8.3608 38.416 8.3608C38.6698 8.3608 38.8819 8.29356 39.0523 8.15909C39.2228 8.02273 39.3516 7.83807 39.4387 7.60511C39.5277 7.37216 39.5722 7.10985 39.5722 6.81818C39.5722 6.5303 39.5287 6.27178 39.4415 6.04261C39.3563 5.81345 39.2275 5.63258 39.0552 5.5C38.8847 5.36742 38.6717 5.30114 38.416 5.30114C38.1698 5.30114 37.9614 5.36458 37.791 5.49148C37.6224 5.61837 37.4946 5.79545 37.4074 6.02273C37.3203 6.25 37.2768 6.51515 37.2768 6.81818ZM41.7725 10.6364C41.6456 10.6364 41.5301 10.6259 41.4259 10.6051C41.3217 10.5862 41.2441 10.5653 41.193 10.5426L41.3975 9.84659C41.5528 9.88826 41.6911 9.90625 41.8123 9.90057C41.9335 9.89489 42.0405 9.84943 42.1333 9.7642C42.228 9.67898 42.3113 9.53977 42.3833 9.34659L42.4884 9.05682L40.8918 4.63636H41.8009L42.906 8.02273H42.9515L44.0566 4.63636H44.9685L43.1702 9.58239C43.0869 9.80966 42.9808 10.0019 42.8521 10.1591C42.7233 10.3182 42.5699 10.4375 42.3918 10.517C42.2138 10.5966 42.0074 10.6364 41.7725 10.6364Z",fill:"#6B7280"}),p("path",{d:"M51.8137 4.52092V5.80908H48.3464V4.52092H51.8137ZM49.0728 3.20413H50.8225V8.2888C50.8225 8.39615 50.8392 8.48322 50.8726 8.55001C50.9084 8.61442 50.9597 8.66094 51.0265 8.68956C51.0933 8.7158 51.1732 8.72892 51.2662 8.72892C51.333 8.72892 51.4034 8.72296 51.4773 8.71103C51.5537 8.69672 51.6109 8.68479 51.6491 8.67525L51.9139 9.93837C51.8304 9.96222 51.7123 9.99204 51.5596 10.0278C51.4094 10.0636 51.2293 10.0863 51.0193 10.0958C50.609 10.1149 50.2572 10.0672 49.9637 9.95268C49.6727 9.83579 49.4497 9.6545 49.2946 9.40879C49.1419 9.16308 49.068 8.85416 49.0728 8.48203V3.20413ZM52.7065 10.0171V4.52092H54.4562V10.0171H52.7065ZM53.5831 3.88041C53.3374 3.88041 53.1263 3.79931 52.9498 3.63709C52.7733 3.47249 52.685 3.2745 52.685 3.04311C52.685 2.8141 52.7733 2.61849 52.9498 2.45627C53.1263 2.29168 53.3374 2.20938 53.5831 2.20938C53.8312 2.20938 54.0423 2.29168 54.2165 2.45627C54.393 2.61849 54.4813 2.8141 54.4813 3.04311C54.4813 3.2745 54.393 3.47249 54.2165 3.63709C54.0423 3.79931 53.8312 3.88041 53.5831 3.88041ZM59.116 7.64472V4.52092H60.8622V10.0171H59.1947V8.99371H59.1375C59.0158 9.33007 58.8083 9.59724 58.5148 9.79524C58.2238 9.99085 57.872 10.0887 57.4593 10.0887C57.0847 10.0887 56.7555 10.0028 56.4717 9.83102C56.1878 9.65927 55.9671 9.41952 55.8097 9.1118C55.6523 8.80168 55.5723 8.43909 55.57 8.02401V4.52092H57.3197V7.6805C57.3221 7.97869 57.4008 8.21366 57.5559 8.38541C57.7109 8.55717 57.922 8.64305 58.1892 8.64305C58.3634 8.64305 58.5196 8.60488 58.658 8.52854C58.7987 8.44982 58.9096 8.33651 58.9907 8.18861C59.0742 8.03832 59.116 7.85703 59.116 7.64472ZM63.7256 6.88255V10.0171H61.9759V4.52092H63.6398V5.52998H63.7006C63.8223 5.19363 64.0298 4.93003 64.3232 4.73919C64.6166 4.54597 64.9661 4.44935 65.3716 4.44935C65.7581 4.44935 66.0932 4.53642 66.3771 4.71056C66.6634 4.88232 66.8852 5.12325 67.0427 5.43337C67.2025 5.7411 67.2812 6.10131 67.2788 6.514V10.0171H65.5291V6.85751C65.5315 6.55216 65.4539 6.31361 65.2965 6.14186C65.1414 5.9701 64.9256 5.88423 64.6488 5.88423C64.4652 5.88423 64.3029 5.92478 64.1622 6.00589C64.0238 6.08461 63.9165 6.19792 63.8402 6.34582C63.7662 6.49372 63.728 6.67263 63.7256 6.88255ZM69.3462 10.1209C69.0885 10.1209 68.8679 10.0302 68.6842 9.84891C68.5029 9.66762 68.4134 9.44815 68.4158 9.19052C68.4134 8.93765 68.5029 8.72177 68.6842 8.54286C68.8679 8.36156 69.0885 8.27091 69.3462 8.27091C69.5895 8.27091 69.8042 8.36156 69.9902 8.54286C70.1787 8.72177 70.2741 8.93765 70.2765 9.19052C70.2741 9.36227 70.2288 9.51852 70.1405 9.65927C70.0547 9.80001 69.9413 9.91213 69.8006 9.99562C69.6622 10.0791 69.5108 10.1209 69.3462 10.1209Z",fill:"#6B7280"})],-1)];function Pp(t,e){return v(),x("div",Rp,Ap)}const ha=kt(Mp,[["render",Pp]]),Bp={class:"tiun-w-full tiun-grid tiun-bg-black"},Hp={class:"tiun-text-center tiun-text-white tiun-text-xs tiun-font-medium tiun-leading-none"},Ip={class:"tiun-p-4 tiun-grid"},Op={class:"tiun-h-[2.75em]"},Np={class:"tiun-grid tiun-gap-1 tiun-h-full tiun-text-left"},Dp={key:0,class:"tiun-text-xs tiun-font-medium tiun-text-gray-400"},Fp=lt({__name:"BadgeTopPart",setup(t){const e=vt(),n=Y(()=>{var i,s;return(s=(i=e.badgeData)==null?void 0:i.data)==null?void 0:s.headerRow});return(i,s)=>{var o,r,l,a,c,u;return v(),x("div",Bp,[p("div",{class:V(["tiun-h-[3.25em] tiun-p-4 tiun-self-stretch tiun-w-full tiun-items-center tiun-inline-flex",(o=n.value)!=null&&o.tagText?"tiun-justify-between":"tiun-justify-end"])},[(r=n.value)!=null&&r.tagText?(v(),x("div",{key:0,class:V(["tiun-px-2.5 tiun-py-1 tiun-rounded-[10px] tiun-justify-center tiun-items-center tiun-flex",b(e).buttonColor])},[p("div",Hp,N(n.value.tagText),1)],2)):st("",!0),j(ha)],2),p("div",Ip,[p("div",Op,[p("div",Np,[p("div",{class:V(["tiun-flex tiun-font-semibold tiun-text-white tiun-items-center tiun-gap-1",{"tiun--mt-8":!((l=n.value)!=null&&l.subtitleLine)}])},N((a=n.value)==null?void 0:a.titleLine),3),(c=n.value)!=null&&c.subtitleLine?(v(),x("div",Dp,N((u=n.value)==null?void 0:u.subtitleLine),1)):st("",!0)])])])])}}}),So=async()=>{const t=await Pt.delete("/v1/connections");return t==null?void 0:t.data},Eo=async t=>{const e=await Pt.post("/v1/connections",{currentUrl:window.location.href,connectionType:t});return e==null?void 0:e.data},Vp=["disabled"],Up={class:"tiunBadgeButtonText"},jp=["disabled"],Wp={class:"tiunBadgeButtonText"},Zp=lt({__name:"BadgeCta",setup(t){const e=vt(),n=Ot(),i=ie(),s=vo(),o=q(!1),r=Y(()=>{var _,C;return(C=(_=e.badgeData)==null?void 0:_.data)==null?void 0:C.ctaRow}),l=Y(()=>{var _;return(_=e.badgeData)==null?void 0:_.data});function a(){e.isPaymentError&&f()}function c(){e.isPaymentError?m():e.isLowBalanceWarning||e.isTopUpError?d():e.isActiveSessionBadge||e.isCountdownWarning?g():e.isStartSessionBadge||e.isLoadingSessionBadge?f():e.isBadgeReferrer&&u()}async function u(){var w;const _=(w=e.badgeData)==null?void 0:w.data,C=await Eo(_==null?void 0:_.connectionType);C.redirectUrl&&(o.value=!1,window.location.href=C.redirectUrl)}async function f(){if(!n.isPreviewMode)try{o.value=!0;const _=await da("Badge");_.redirectUrl?window.location.href=_.redirectUrl:await e.loadInfo(),o.value=!1}catch{o.value=!1}}function d(){var _;(_=l.value)!=null&&_.topUpLink&&window.open(l.value.topUpLink,"_blank")}async function m(){n.isPreviewMode||(e.closeBadge(),await So(),await i.loadPaywall(),await e.loadInfo())}async function g(){try{o.value=!0,e.showSpentScreen=!0,await x1(),await e.loadSnippetInfo(),s.snippetSession=void 0,e.stopPolling(),e.sendMessage("TIUN_SHOW_PAYWALL"),e.lastSentMessage="showPaywall",o.value=!1}catch{o.value=!1}}return(_,C)=>{var E,A,$,D,G,z;const w=Ar("ripple");return v(),x("div",{class:V(["tiun-bg-gray-200 tiun-w-full tiun-p-4",{"tiun-rounded-xl":b(n).areCornersRounded}])},[p("div",{class:V({"tiun-flex tiun-items-center tiun-gap-4":((E=r.value)==null?void 0:E.primaryCtaLabel)&&((A=r.value)==null?void 0:A.secondaryCtaLabel)})},[($=r.value)!=null&&$.secondaryCtaLabel?Ft((v(),x("button",{key:0,type:"button",class:V(["tiunBadgeSecondaryButton !tiun-min-w-[4.5em]",{"tiun-rounded-xl":b(n).areCornersRounded}]),onClick:a,disabled:b(e).isLoadingSessionBadge||o.value},[p("div",Up,N((D=r.value)==null?void 0:D.secondaryCtaLabel),1)],10,Vp)),[[w]]):st("",!0),(G=r.value)!=null&&G.primaryCtaLabel?Ft((v(),x("button",{key:1,type:"button",class:V(["tiunBadgePrimaryButton tiun-w-full",{"tiun-rounded-xl":b(n).areCornersRounded}]),"data-cy":"tiunBtnEndSession",onClick:c,disabled:b(e).isLoadingSessionBadge||o.value},[p("div",Wp,N((z=r.value)==null?void 0:z.primaryCtaLabel),1)],10,jp)),[[w]]):st("",!0)],2)],2)}}}),zp={},qp={width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Kp=[p("path",{d:"M11.327 4.12721C12.0299 3.42427 13.1696 3.42427 13.8726 4.12721C14.5755 4.83015 14.5755 5.96985 13.8726 6.6728L11.1726 9.37279C10.4696 10.0757 9.32994 10.0757 8.627 9.3728C8.27552 9.02132 7.70568 9.02132 7.3542 9.3728C7.00273 9.72427 7.00273 10.2941 7.3542 10.6456C8.76009 12.0515 11.0395 12.0515 12.4454 10.6456L15.1454 7.94559C16.5513 6.5397 16.5513 4.26031 15.1454 2.85442C13.7395 1.44853 11.4601 1.44853 10.0542 2.85442L8.7042 4.20442C8.35273 4.55589 8.35273 5.12574 8.7042 5.47721C9.05568 5.82868 9.62552 5.82868 9.977 5.47721L11.327 4.12721Z",fill:"currentColor"},null,-1),p("path",{d:"M6.82701 8.62721C7.52996 7.92427 8.66965 7.92427 9.3726 8.62721C9.72407 8.97868 10.2939 8.97868 10.6454 8.62721C10.9969 8.27574 10.9969 7.70589 10.6454 7.35442C9.2395 5.94853 6.96011 5.94853 5.55422 7.35442L2.85422 10.0544C1.44833 11.4603 1.44833 13.7397 2.85422 15.1456C4.26011 16.5515 6.5395 16.5515 7.94539 15.1456L9.29539 13.7956C9.64686 13.4441 9.64686 12.8743 9.29539 12.5228C8.94392 12.1713 8.37407 12.1713 8.0226 12.5228L6.6726 13.8728C5.96965 14.5757 4.82996 14.5757 4.12701 13.8728C3.42407 13.1699 3.42407 12.0302 4.12701 11.3272L6.82701 8.62721Z",fill:"currentColor"},null,-1)];function Jp(t,e){return v(),x("svg",qp,Kp)}const Qp=kt(zp,[["render",Jp]]),Xp={},Yp={width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"dark:tiun-text-white tiun-text-gray-500 hover:tiun-text-black dark:hover:!tiun-text-opacity-80 tiun-transition-colors"},Gp=[p("path",{d:"M9 3.75L9 3.7575M9 9L9 9.0075M9 14.25L9 14.2575M9 4.5C8.58579 4.5 8.25 4.16421 8.25 3.75C8.25 3.33579 8.58579 3 9 3C9.41421 3 9.75 3.33579 9.75 3.75C9.75 4.16421 9.41421 4.5 9 4.5ZM9 9.75C8.58579 9.75 8.25 9.41421 8.25 9C8.25 8.58579 8.58579 8.25 9 8.25C9.41421 8.25 9.75 8.58579 9.75 9C9.75 9.41421 9.41421 9.75 9 9.75ZM9 15C8.58579 15 8.25 14.6642 8.25 14.25C8.25 13.8358 8.58579 13.5 9 13.5C9.41421 13.5 9.75 13.8358 9.75 14.25C9.75 14.6642 9.41421 15 9 15Z",stroke:"currentColor","stroke-width":"0.75","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)];function t2(t,e){return v(),x("svg",Yp,Gp)}const e2=kt(Xp,[["render",t2]]),n2={class:"tiun-flex tiun-gap-2 tiun-items-center tiun-w-full"},i2=["src"],s2={class:"tiun-text-xs tiun-gap-2 tiun-flex tiun-w-full tiun-font-medium dark:tiun-text-white tiun-text-gray-700"},o2={key:0},r2={key:1},l2={key:0,class:"tiun-flex tiun-items-center tiun-gap-1"},a2={key:1,class:"tiun-relative"},u2=["aria-expanded"],c2={key:0,class:"tiun-flex tiun-items-center tiun-justify-between tiun-text-gray-700 tiun-p-4"},d2={class:"tiun-font-semibold tiun-text-xs"},f2={class:"!tiun-font-medium !tiun-text-xs"},p2={class:"!tiun-font-medium !tiun-text-xs"},ga=lt({__name:"PaymentMethod",setup(t){const e=vt(),n=ie(),i=q(!1),s=Y(()=>{var d,m;return(m=(d=e.badgeData)==null?void 0:d.data)==null?void 0:m.connectionRow}),o=Ot();function r(){i.value=!i.value}function l(){i.value&&(i.value=!1)}function a(){o.isPreviewMode||(e.isBadgeReferrer?c():u())}async function c(){e.closeBadge(),await g1(),await n.loadPaywall(),await e.loadInfo()}async function u(){e.closeBadge(),await So(),await n.loadPaywall(),await e.loadInfo()}function f(){var d,m,g;(g=(m=(d=s.value)==null?void 0:d.menu)==null?void 0:m.walletLink)!=null&&g.linkUrl&&window.open(s.value.menu.walletLink.linkUrl,"_blank")}return(d,m)=>{var g,_,C,w,E,A;return v(),x("div",{class:V(["tiun-flex tiun-justify-between tiun-items-center tiun-border tiun-border-gray-200 dark:tiun-border-none tiun-shadow-sm tiun-p-4 tiun-bg-white dark:tiun-bg-gray-800",{"tiun-rounded-xl":b(o).areCornersRounded}])},[p("div",n2,[(g=s.value)!=null&&g.iconUrl?(v(),x("img",{key:0,src:s.value.iconUrl,class:"!tiun-my-0"},null,8,i2)):st("",!0),p("div",s2,[(_=s.value)!=null&&_.maskedCardNumber?(v(),x("div",o2," **"+N(s.value.maskedCardNumber),1)):st("",!0),(C=s.value)!=null&&C.text?(v(),x("span",r2,N(s.value.text),1)):st("",!0)])]),(w=s.value)!=null&&w.menu||(E=s.value)!=null&&E.showCheckmark?(v(),x("div",l2,[(A=s.value)!=null&&A.showCheckmark?(v(),pt(ko,{key:0})):st("",!0),s.value.menu?(v(),x("div",a2,[p("button",{onClick:r,onBlur:l,class:"tiun-p-2 tiun-flex tiun-group tiun-rounded-full focus:tiun-outline-none focus-visible:tiun-outline-1 focus-visible:tiun-outline-black dark:focus-visible:tiun-outline-white","aria-haspopup":"true","aria-expanded":i.value,"data-cy":"tiunBtnExpandPaymentMethod"},[j(e2)],40,u2),j(It,{name:"tiun-scale"},{default:Dt(()=>{var $,D,G,z;return[Ft(p("div",{class:V(["tiun-absolute tiun-min-w-[227px] tiun-group tiun-divide-y tiun-transition-colors tiun-right-0 tiun-mt-2 tiun-bg-white dark:tiun-bg-gray-700 dark:tiun-border-none tiun-shadow-sm tiun-border tiun-z-50",{"tiun-rounded-xl":b(o).areCornersRounded}]),role:"menu"},[($=s.value.menu.balance)!=null&&$.text?(v(),x("div",c2,[p("span",d2,N((D=s.value.menu.balance)==null?void 0:D.text),1),j(bo,{class:"tiun-font-semibold tiun-text-xs",value:s.value.menu.balance.amount},null,8,["value"])])):st("",!0),(G=s.value.menu.walletLink)!=null&&G.linkText?(v(),x("button",{key:1,class:"tiun-flex tiun-items-center tiun-justify-between tiun-gap-2 !tiun-px-4 !tiun-py-4 tiun-w-full tiunLink",role:"menuitem",onClick:f,"data-cy":"tiunBtnOpenWallet"},[p("span",f2,N((z=s.value.menu.walletLink)==null?void 0:z.linkText),1),j(Qp)])):st("",!0),s.value.menu.disconnectCtaText?(v(),x("button",{key:2,class:"tiun-flex tiun-items-center tiun-justify-between tiun-gap-2 !tiun-px-4 !tiun-py-4 tiun-w-full tiunLink",role:"menuitem",onClick:a,"data-cy":"tiunBtnDisconnectWallet"},[p("span",p2,N(s.value.menu.disconnectCtaText),1),j(Zn)])):st("",!0)],2),[[Pe,i.value]])]}),_:1})])):st("",!0)])):st("",!0)],2)}}}),h2={},g2={width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m2=[p("rect",{width:"40",height:"40",rx:"20",fill:"#FEF3C7"},null,-1),p("path",{d:"M19.9995 17V19M19.9995 23H20.0095M13.0713 27H26.9277C28.4673 27 29.4296 25.3333 28.6598 24L21.7316 12C20.9618 10.6667 19.0373 10.6667 18.2675 12L11.3393 24C10.5695 25.3333 11.5317 27 13.0713 27Z",stroke:"#F97316","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)];function _2(t,e){return v(),x("svg",g2,m2)}const y2=kt(h2,[["render",_2]]),v2={class:"tiun-absolute tiun-inset-0 tiun-py-4 tiun-px-6 tiun-h-full tiun-grid tiun-justify-center tiun-text-center tiun-gap-6 tiun-content-center"},w2={class:"tiun-text-sm tiun-font-bold dark:tiun-text-white tiun-text-black"},b2={role:"status",class:"tiun-flex tiun-justify-center"},C2={class:"tiun-text-xxs tiun-text-gray-400"},x2=lt({__name:"LowBalanceCard",setup(t){const e=vt(),n=Y(()=>{var i;return(i=e.badgeData)==null?void 0:i.data});return(i,s)=>{var o,r;return v(),x("div",v2,[p("div",w2,N((o=n.value)==null?void 0:o.primaryLine),1),p("div",b2,[j(y2)]),p("span",C2,N((r=n.value)==null?void 0:r.secondaryLine),1)])}}}),k2={},S2={width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E2=[p("rect",{width:"40",height:"40",rx:"20",fill:"#FCE7F3"},null,-1),p("path",{d:"M19.9995 17V19M19.9995 23H20.0095M13.0713 27H26.9277C28.4673 27 29.4296 25.3333 28.6598 24L21.7316 12C20.9618 10.6667 19.0373 10.6667 18.2675 12L11.3393 24C10.5695 25.3333 11.5317 27 13.0713 27Z",stroke:"#DB2777","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)];function $2(t,e){return v(),x("svg",S2,E2)}const ma=kt(k2,[["render",$2]]),T2={class:"tiun-text-gray-400 !tiun-leading-[0.875em]"},L2={key:0,class:"!tiun-text-xxs !tiun-leading-[0.875em]"},M2=["href"],R2={key:2,class:"!tiun-text-xxs !tiun-leading-[0.875em]"},A2=lt({__name:"TextAndLinkDisplay",props:{data:{type:Object,default:void 0}},setup(t){return(e,n)=>{var i,s,o,r,l,a,c;return v(),x("span",T2,[(i=t.data)!=null&&i.secondaryLineBefore?(v(),x("span",L2,N((s=t.data)==null?void 0:s.secondaryLineBefore),1)):st("",!0),(r=(o=t.data)==null?void 0:o.secondaryLineLink)!=null&&r.linkUrl?(v(),x("a",{key:1,class:"!tiun-underline !tiun-text-xxs !tiun-leading-[0.875em]",href:t.data.secondaryLineLink.linkUrl,target:"_blank"},N((l=t.data)==null?void 0:l.secondaryLineLink.displayName),9,M2)):st("",!0),(a=t.data)!=null&&a.secondaryLineAfter?(v(),x("span",R2,N((c=t.data)==null?void 0:c.secondaryLineAfter),1)):st("",!0)])}}}),M5="",_a=kt(A2,[["__scopeId","data-v-bb170cb6"]]),P2={class:"tiun-absolute tiun-inset-0 tiun-px-6 tiun-py-4 tiun-h-full tiun-grid tiun-justify-center tiun-text-center tiun-gap-6 tiun-content-center"},B2={class:"tiun-text-sm tiun-font-bold dark:tiun-text-white tiun-text-black"},H2={role:"status",class:"tiun-flex tiun-justify-center"},ya=lt({__name:"InsufficientFundsCard",setup(t){const e=vt(),n=Y(()=>{var i;return(i=e.badgeData)==null?void 0:i.data});return(i,s)=>{var o;return v(),x("div",P2,[p("div",B2,N((o=n.value)==null?void 0:o.primaryLine),1),p("div",H2,[j(ma)]),j(_a,{data:n.value},null,8,["data"])])}}}),I2={class:"tiun-absolute tiun-inset-0 tiun-py-4 tiun-px-6 tiun-h-full tiun-grid tiun-justify-center tiun-text-center tiun-gap-6 tiun-content-center"},O2={class:"tiun-text-sm tiun-font-bold dark:tiun-text-white tiun-text-black"},N2={role:"status",class:"tiun-flex tiun-justify-center"},va=lt({__name:"PaymentFailedCard",setup(t){const e=vt(),n=Y(()=>{var i;return(i=e.badgeData)==null?void 0:i.data});return(i,s)=>{var o;return v(),x("div",I2,[p("div",O2,N((o=n.value)==null?void 0:o.primaryLine),1),p("div",N2,[j(ma)]),j(_a,{data:n.value},null,8,["data"])])}}}),D2={class:"tiun-absolute tiun-inset-0 tiun-px-6 tiun-py-4 tiun-h-full tiun-grid tiun-justify-center tiun-text-center tiun-gap-6 tiun-content-center"},F2={class:"tiun-text-sm tiun-font-bold dark:tiun-text-white tiun-text-black"},V2={class:"tiun-text-gray-400"},U2=lt({__name:"CountdownWarningCard",setup(t){const e=vt(),n=Y(()=>{var i;return(i=e.badgeData)==null?void 0:i.data});return(i,s)=>{var o,r;return v(),x("div",D2,[p("div",F2,N((o=n.value)==null?void 0:o.primaryLine),1),p("span",V2,N((r=n.value)==null?void 0:r.secondaryLine),1)])}}}),j2={class:"tiun-rounded-xl tiun-flex tiun-flex-col tiun-h-full"},W2={class:"tiun-relative tiun-flex tiun-flex-col tiun-h-full"},Z2={class:"tiun-h-full tiun-w-[304px]"},z2={class:"tiun-p-4 tiun-h-full tiun-flex tiun-flex-col tiun-gap-2"},q2={key:0,class:"tiun-absolute tiun-rounded-b-xl tiun-inset-0 tiun-bg-white tiun-p-4"},K2={class:"tiun-relative tiun-h-full tiun-border tiun-p-4 tiun-rounded-xl"},$o=lt({__name:"Badge",setup(t){const e=vt(),n=Ot();return(i,s)=>(v(),x("div",j2,[j(Fp),p("div",W2,[p("div",Z2,[p("div",z2,[j(ga),p("div",{class:V(["tiun-bg-white dark:tiun-bg-gray-800 tiun-h-full tiun-border tiun-border-gray-200 dark:tiun-border-none tiun-relative",{"tiun-rounded-xl":b(n).areCornersRounded}])},[j(It,{name:"tiun-fade"},{default:Dt(()=>[b(e).isLowBalanceWarning?(v(),pt(x2,{key:0})):b(e).isTopUpError?(v(),pt(ya,{key:1})):b(e).isPaymentError?(v(),pt(va,{key:2})):b(e).isCountdownWarning?(v(),pt(U2,{key:3})):b(e).isStartSessionBadge||b(e).isBadgeReferrer||b(e).isLoadingSessionBadge?(v(),pt(pa,{key:4,type:"badge"})):b(e).isActiveSessionBadge?(v(),pt(s0,{key:5})):st("",!0)]),_:1})],2)])]),j(Zp),j(It,{name:"tiun-scale"},{default:Dt(()=>{var o,r;return[(r=(o=b(e).badgeData)==null?void 0:o.data)!=null&&r.hint?(v(),x("div",q2,[p("div",K2,[b(e).isHintRating?(v(),pt(j0,{key:0})):b(e).isHintMonthlyLimit?(v(),pt(m0,{key:1})):st("",!0)])])):st("",!0)]}),_:1})])]))}}),J2=lt({__name:"BadgeWrapper",setup(t){const e=/Mobi/.test(window.navigator.userAgent),n=q(),i=vt(),s=q(),o=q(""),r=q(null),l=q({x:0,y:0}),a=q({x:0,y:0}),{width:c}=Vd(n),u=Ot();dn(()=>{document.addEventListener("touchstart",g),document.addEventListener("touchend",_)}),fn(()=>{document.removeEventListener("touchstart",g),document.removeEventListener("touchend",_)});const f=C=>{o.value=`-${C}px`},d=()=>{s.value&&(clearTimeout(s.value),s.value=null),i.openBadge()},m=()=>{s.value=setTimeout(()=>{i.closeBadge()},300)};Sl(r,()=>i.closeBadge());const g=C=>{l.value={x:C.touches[0].clientX,y:C.touches[0].clientY}},_=C=>{if(a.value={x:C.changedTouches[0].clientX,y:C.changedTouches[0].clientY},Math.abs(a.value.x-l.value.x)>0||Math.abs(a.value.y-l.value.y)>0){const E=r.value;if(E){const A=E.getBoundingClientRect();(l.value.x<A.left||l.value.x>A.right||l.value.y<A.top||l.value.y>A.bottom||a.value.x<A.left||a.value.x>A.right||a.value.y<A.top||a.value.y>A.bottom)&&i.closeBadge()}}};return At(c,C=>{f(C)}),(C,w)=>{var E,A,$,D,G,z,M,F,Z,Q,I,et;return Ft((v(),x("div",{class:"tiun-fixed tiun-z-[99999] tiun-transition-transform tiun-duration-300",style:rn([`right: ${o.value}`,b(i).openDetails?`transform: translateX(${o.value})`:"",`top: ${(A=(E=b(i).snippetInfo)==null?void 0:E.infoBadge)!=null&&A.topOffsetInPixels&&(($=b(i).snippetInfo)==null?void 0:$.infoBadge.topOffsetInPixels)>=0?((D=b(i).snippetInfo)==null?void 0:D.infoBadge.topOffsetInPixels)+"px":"74px"}`]),ref_key:"badgeRef",ref:r},[(z=(G=b(i).snippetInfo)==null?void 0:G.infoBadge)!=null&&z.animate?(v(),pt(It,{key:0,mode:"out-in",appear:(F=(M=b(i).snippetInfo)==null?void 0:M.infoBadge)==null?void 0:F.animate,"enter-active-class":"tiun-transition tiun-ease-out tiun-duration-300","enter-from-class":"tiun-transform tiun-translate-x-full tiun-opacity-0","enter-to-class":"tiun-transform tiun-translate-x-0 tiun-opacity-100","leave-active-class":"tiun-transition tiun-ease-in tiun-duration-200","leave-from-class":"tiun-transform tiun-translate-x-0 tiun-opacity-100","leave-to-class":"tiun-transform tiun-translate-x-full tiun-opacity-0"},{default:Dt(()=>{var ft,St;return[(St=(ft=b(i).snippetInfo)==null?void 0:ft.infoBadge)!=null&&St.badge?(v(),x("div",{key:0,class:"tiun-flex",onMouseleave:w[2]||(w[2]=ot=>b(e)?void 0:m())},[j(wo,{onMouseEnterBadgeButton:w[0]||(w[0]=ot=>d())}),p("div",{ref_key:"statusDetails",ref:n,onMouseenter:w[1]||(w[1]=ot=>b(e)||!b(i).openDetails?void 0:d()),class:"tiun-h-[507px]"},[p("div",{class:V(["tiun-transition-shadow tiun-duration-300 dark:tiun-bg-black tiun-bg-white tiun-flex tiun-flex-col tiun-h-full",[b(i).openDetails?"tiun-shadow-2xl":"tiun-shadow-none",{"tiun-rounded-b-xl":b(u).areCornersRounded}]])},[j($o)],2)],544)],32)):st("",!0)]}),_:1},8,["appear"])):(v(),x(gt,{key:1},[(Q=(Z=b(i).snippetInfo)==null?void 0:Z.infoBadge)!=null&&Q.badge?(v(),x("div",{key:0,class:"tiun-flex",onMouseleave:w[5]||(w[5]=ft=>b(e)?void 0:m())},[j(wo,{onMouseEnterBadgeButton:w[3]||(w[3]=ft=>d())}),p("div",{ref_key:"statusDetails",ref:n,onMouseenter:w[4]||(w[4]=ft=>b(e)||!b(i).openDetails?void 0:d()),class:"tiun-h-[507px]"},[p("div",{class:V(["tiun-transition-shadow tiun-duration-300 dark:tiun-bg-black tiun-bg-white tiun-flex tiun-flex-col tiun-h-full",[b(i).openDetails?"tiun-shadow-2xl":"tiun-shadow-none",{"tiun-rounded-b-xl":b(u).areCornersRounded}]])},[j($o)],2)],544)],32)):st("",!0)],64))],4)),[[Pe,(et=(I=b(i).snippetInfo)==null?void 0:I.infoBadge)==null?void 0:et.badge]])}}}),Q2=lt({__name:"App",setup(t){const e=vt(),n=vo(),i=Dd(),{idle:s}=zd(18e4);async function o(){await e.loadInfo(),e.sendMessage("TIUN_SNIPPET_INITIALIZED")}return dn(()=>{o()}),At(()=>i.value,()=>{var r;i.value==="hidden"&&n.mediaType==="text"?(e.stopPolling(),((r=n.snippetSession)==null?void 0:r.sessionStatus)==="Active"&&n.pausePolling()):(e.loadInfo(),e.handlePolling())}),At(()=>s.value,()=>{var r;s.value&&n.mediaType==="text"?(e.stopPolling(),((r=n.snippetSession)==null?void 0:r.sessionStatus)==="Active"&&n.pausePolling()):s.value||(e.loadInfo(),e.handlePolling())}),window.addEventListener("message",n.messageHandler),fn(()=>{window.removeEventListener("message",n.messageHandler),e.stopPolling()}),(r,l)=>(v(),pt(J2))}}),R5="",X2=80,wa=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34});function ba(t,e){t.style.transform=e,t.style.webkitTransform=e}function To(t,e){t.style.opacity=e.toString()}function Lo(t){return t.constructor.name==="TouchEvent"}function Ca(t){return t.constructor.name==="KeyboardEvent"}const Y2=(t,e,n={})=>{let i=0,s=0;if(!Ca(t)){const f=e.getBoundingClientRect(),d=Lo(t)?t.touches[t.touches.length-1]:t;i=d.clientX-f.left,s=d.clientY-f.top}let o=0,r=.3;e._ripple&&e._ripple.circle?(r=.15,o=e.clientWidth/2,o=n.center?o:o+Math.sqrt((i-o)**2+(s-o)**2)/4):o=Math.sqrt(e.clientWidth**2+e.clientHeight**2)/2;const l=`${(e.clientWidth-o*2)/2}px`,a=`${(e.clientHeight-o*2)/2}px`,c=n.center?l:`${i-o}px`,u=n.center?a:`${s-o}px`;return{radius:o,scale:r,x:c,y:u,centerX:l,centerY:a}},qi={show(t,e,n={}){if(!e._ripple||!e._ripple.enabled)return;const i=document.createElement("span"),s=document.createElement("span");i.appendChild(s),i.className="v-ripple__container",n.class&&(i.className+=` ${n.class}`);const{radius:o,scale:r,x:l,y:a,centerX:c,centerY:u}=Y2(t,e,n),f=`${o*2}px`;s.className="v-ripple__animation",s.style.width=f,s.style.height=f,e.appendChild(i);const d=window.getComputedStyle(e);d&&d.position==="static"&&(e.style.position="relative",e.dataset.previousPosition="static"),s.classList.add("v-ripple__animation--enter"),s.classList.add("v-ripple__animation--visible"),ba(s,`translate(${l}, ${a}) scale3d(${r},${r},${r})`),To(s,0),s.dataset.activated=String(performance.now()),setTimeout(()=>{s.classList.remove("v-ripple__animation--enter"),s.classList.add("v-ripple__animation--in"),ba(s,`translate(${c}, ${u}) scale3d(1,1,1)`),To(s,.1)},0)},hide(t){if(!t||!t._ripple||!t._ripple.enabled)return;const e=t.getElementsByClassName("v-ripple__animation");if(e.length===0)return;const n=e[e.length-1];if(n.dataset.isHiding)return;n.dataset.isHiding="true";const i=performance.now()-Number(n.dataset.activated),s=Math.max(250-i,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),To(n,0),setTimeout(()=>{t.getElementsByClassName("v-ripple__animation").length===1&&t.dataset.previousPosition&&(t.style.position=t.dataset.previousPosition,delete t.dataset.previousPosition),n.parentNode&&t.removeChild(n.parentNode)},300)},s)}};function xa(t){return typeof t>"u"||!!t}function qn(t){const e={},n=t.currentTarget;if(!(!n||!n._ripple||n._ripple.touched)){if(Lo(t))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(e.center=n._ripple.centered||Ca(t),n._ripple.class&&(e.class=n._ripple.class),Lo(t)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{qi.show(t,n,e)},n._ripple.showTimer=window.setTimeout(()=>{n&&n._ripple&&n._ripple.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},X2)}else qi.show(t,n,e)}}function Xt(t){const e=t.currentTarget;if(!(!e||!e._ripple)){if(window.clearTimeout(e._ripple.showTimer),t.type==="touchend"&&e._ripple.showTimerCommit){e._ripple.showTimerCommit(),e._ripple.showTimerCommit=null,e._ripple.showTimer=setTimeout(()=>{Xt(t)});return}window.setTimeout(()=>{e._ripple&&(e._ripple.touched=!1)}),qi.hide(e)}}function ka(t){const e=t.currentTarget;!e||!e._ripple||(e._ripple.showTimerCommit&&(e._ripple.showTimerCommit=null),window.clearTimeout(e._ripple.showTimer))}let Mo=!1;function Sa(t){!Mo&&(t.keyCode===wa.enter||t.keyCode===wa.space)&&(Mo=!0,qn(t))}function Ea(t){Mo=!1,Xt(t)}function $a(t,e,n){const i=xa(e.value);i||qi.hide(t),t._ripple=t._ripple||{},t._ripple.enabled=i;const s=e.value||{};s.center&&(t._ripple.centered=!0),s.class&&(t._ripple.class=e.value.class),s.circle&&(t._ripple.circle=s.circle),i&&!n?(t.addEventListener("touchstart",qn,{passive:!0}),t.addEventListener("touchend",Xt,{passive:!0}),t.addEventListener("touchmove",ka,{passive:!0}),t.addEventListener("touchcancel",Xt),t.addEventListener("mousedown",qn),t.addEventListener("mouseup",Xt),t.addEventListener("mouseleave",Xt),t.addEventListener("keydown",Sa),t.addEventListener("keyup",Ea),t.addEventListener("dragstart",Xt,{passive:!0})):!i&&n&&Ta(t)}function Ta(t){t.removeEventListener("mousedown",qn),t.removeEventListener("touchstart",qn),t.removeEventListener("touchend",Xt),t.removeEventListener("touchmove",ka),t.removeEventListener("touchcancel",Xt),t.removeEventListener("mouseup",Xt),t.removeEventListener("mouseleave",Xt),t.removeEventListener("keydown",Sa),t.removeEventListener("keyup",Ea),t.removeEventListener("dragstart",Xt)}function G2(t,e,n){$a(t,e,!1)}function th(t){delete t._ripple,Ta(t)}function eh(t,e){if(e.value===e.oldValue)return;const n=xa(e.oldValue);$a(t,e,n)}const Ro={unmounted:th,mounted:G2,updated:eh},nh={},ih={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},sh=[p("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10 19.6C15.3019 19.6 19.6 15.3019 19.6 10C19.6 4.69807 15.3019 0.400002 10 0.400002C4.69807 0.400002 0.400002 4.69807 0.400002 10C0.400002 15.3019 4.69807 19.6 10 19.6ZM8.44853 6.75147C7.9799 6.28284 7.2201 6.28284 6.75147 6.75147C6.28284 7.2201 6.28284 7.9799 6.75147 8.44853L8.30295 10L6.75147 11.5515C6.28284 12.0201 6.28284 12.7799 6.75147 13.2485C7.2201 13.7172 7.9799 13.7172 8.44853 13.2485L10 11.6971L11.5515 13.2485C12.0201 13.7172 12.7799 13.7172 13.2485 13.2485C13.7172 12.7799 13.7172 12.0201 13.2485 11.5515L11.6971 10L13.2485 8.44853C13.7172 7.9799 13.7172 7.2201 13.2485 6.75147C12.7799 6.28284 12.0201 6.28284 11.5515 6.75147L10 8.30295L8.44853 6.75147Z",fill:"currentColor"},null,-1)];function oh(t,e){return v(),x("svg",ih,sh)}const Ao=kt(nh,[["render",oh]]),rh={},lh={class:"tiun-flex-grow tiun-flex tiun-self-end",height:"3",preserveAspectRatio:"none",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ah=[p("pattern",{id:"dots",width:"5",height:"3",patternUnits:"userSpaceOnUse"},[p("circle",{cx:"2.5",cy:"1.5",r:"1",fill:"#9CA3AF"})],-1),p("rect",{width:"100%",height:"3",fill:"url(#dots)"},null,-1)];function uh(t,e){return v(),x("svg",lh,ah)}const ch=kt(rh,[["render",uh]]),dh={},fh={width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ph=[p("path",{d:"M4.5 6.00001L5.5 7.00001L7.5 5.00001M10.309 2.99217C10.2066 2.99736 10.1036 2.99999 10 2.99999C8.46327 2.99999 7.06148 2.42227 5.99997 1.47217C4.93846 2.42223 3.53669 2.99992 2 2.99992C1.89639 2.99992 1.79339 2.9973 1.69106 2.99211C1.56635 3.47392 1.5 3.97921 1.5 4.50001C1.5 7.29576 3.41216 9.64491 6 10.311C8.58784 9.64491 10.5 7.29576 10.5 4.50001C10.5 3.97923 10.4337 3.47396 10.309 2.99217Z",stroke:"#10B981","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)];function hh(t,e){return v(),x("svg",fh,ph)}const gh=kt(dh,[["render",hh]]),mh={class:"tiun-flex tiun-flex-col tiun-gap-6 tiun-h-full"},_h={class:"tiun-flex tiun-flex-col tiun-gap-2 tiun-font-medium","data-cy":"tiunPricingCard"},yh={class:"tiun-flex-shrink-0 tiun-text-xs tiun-leading-4"},vh={class:"tiun-flex-shrink-0 tiun-text-gray-500 tiun-text-xs tiun-leading-4"},wh={class:"tiun-font-medium tiun-grid tiun-gap-2"},bh={class:"tiun-text-emerald-500 tiun-text-xxs tiun-flex tiun-items-center tiun-gap-1"},Ch={class:"tiun-text-gray-400 !tiun-text-xxs !tiun-leading-normal tiun-text-left"},xh={class:"tiun-flex tiun-items-center tiun-gap-8 tiun-m-auto"},kh=["onClick"],Sh={class:"tiun-hintBtnText group-hover:!tiun-text-black tiun-text-gray-600"},Eh=lt({__name:"PricingHint",setup(t){const e=ie(),n=Y(()=>e.allHints.filter(i=>i.value!=="pricing"));return(i,s)=>{var o,r,l,a,c,u;return v(),x("div",mh,[p("div",_h,[(v(!0),x(gt,null,Kt((r=(o=b(e).paywallConfig)==null?void 0:o.helpCenter)==null?void 0:r.pricing.breakdownLines,(f,d)=>(v(),x("div",{key:f,class:"tiun-flex tiun-justify-between tiun-items-center tiun-gap-2"},[p("span",yh,N(d),1),j(ch),p("span",vh,N(f),1)]))),128))]),p("div",wh,[p("div",bh,[me(N((a=(l=b(e).paywallConfig)==null?void 0:l.helpCenter)==null?void 0:a.pricing.userProtectionTitle)+" ",1),j(gh)]),p("p",Ch,N((u=(c=b(e).paywallConfig)==null?void 0:c.helpCenter)==null?void 0:u.pricing.userProtectionBody),1)]),p("div",xh,[(v(!0),x(gt,null,Kt(n.value,f=>(v(),x("button",{key:f.text,type:"button",class:"tiun-hintBtn tiun-group !tiun-text-gray-300 tiun-h-full",onClick:d=>b(e).setHint(f.value)},[(v(),pt(xi(f.type))),p("span",Sh,N(f.text),1)],8,kh))),128))])])}}}),I5="",$h=kt(Eh,[["__scopeId","data-v-aac61892"]]),Th={class:"tiun-bg-white tiun-flex tiun-flex-col tiun-gap-6 tiun-h-full","data-cy":"tiunSupportCard"},Lh={class:"tiun-text-left !tiun-leading-4"},Mh={class:"!tiun-text-xs !tiun-font-medium"},Rh=["href"],Ah={class:"tiun-text-left !tiun-leading-4"},Ph={class:"!tiun-text-xs !tiun-font-medium"},Bh=["href"],Hh={class:"tiun-flex tiun-gap-8 tiun-items-center tiun-m-auto"},Ih=["onClick"],Oh={class:"tiun-hintBtnText group-hover:!tiun-text-black tiun-text-gray-600"},Nh=lt({__name:"SupportHint",setup(t){const e=ie(),n=Y(()=>e.allHints.filter(i=>i.value!=="support"));return(i,s)=>{var o,r,l,a,c,u,f,d,m,g,_,C;return v(),x("div",Th,[p("div",Lh,[p("div",Mh,N((r=(o=b(e).paywallConfig)==null?void 0:o.helpCenter)==null?void 0:r.support.contactSupportText),1),p("a",{class:"tiunLink",href:(a=(l=b(e).paywallConfig)==null?void 0:l.helpCenter)==null?void 0:a.support.supportEmail.linkUrl},N((u=(c=b(e).paywallConfig)==null?void 0:c.helpCenter)==null?void 0:u.support.supportEmail.displayName),9,Rh)]),p("div",Ah,[p("div",Ph,N((d=(f=b(e).paywallConfig)==null?void 0:f.helpCenter)==null?void 0:d.support.helpPageText),1),p("a",{class:"tiunLink",href:(g=(m=b(e).paywallConfig)==null?void 0:m.helpCenter)==null?void 0:g.support.helpPageLink.linkUrl,target:"_blank"},N((C=(_=b(e).paywallConfig)==null?void 0:_.helpCenter)==null?void 0:C.support.helpPageLink.displayName),9,Bh)]),p("div",Hh,[(v(!0),x(gt,null,Kt(n.value,w=>(v(),x("button",{key:w.text,type:"button",class:"tiun-hintBtn tiun-group !tiun-text-gray-300 tiun-h-full",onClick:E=>b(e).setHint(w.value)},[(v(),pt(xi(w.type))),p("span",Oh,N(w.text),1)],8,Ih))),128))])])}}}),O5="",Dh=kt(Nh,[["__scopeId","data-v-dd76703e"]]),Fh=["onClick","data-cy"],Vh={class:"tiun-hintBtnText group-hover:!tiun-text-white tiun-text-gray-400"},Uh=lt({__name:"HintButtons",setup(t){const e=ie();return(n,i)=>(v(),x("section",null,[p("div",{class:V(["tiun-grid tiun-grid-cols-2 tiun-transition-opacity tiun-duration-300 tiun-gap-10 tiun-absolute tiun-bottom-28 tiun-inset-x-0 tiun-mx-auto tiun-w-fit",!b(e).currentView||b(e).currentView==="showPaymentMethods"?"tiun-opacity-0 -tiun-z-10 ":"tiun-delay-100 tiun-opacity-100"])},[(v(!0),x(gt,null,Kt(b(e).allHints,s=>(v(),x("button",{key:s.text,type:"button",class:"tiun-hintBtn tiun-group !tiun-text-gray-800",onClick:o=>b(e).setHint(s.value),"data-cy":s.value},[(v(),pt(xi(s.type),{darkMode:!0})),p("span",Vh,N(s.text),1)],8,Fh))),128))],2)]))}}),jh={class:"tiun-h-full tiun-flex tiun-flex-col tiun-relative","data-cy":"tiunHintCard"},Wh={key:0},Zh={class:"tiun-text-end tiun-pr-4 tiun-pt-4"},zh={class:"tiun-absolute tiun-p-4 tiun-top-12 tiun-left-0 tiun-right-0 tiun-text-center"},qh={class:"tiun-text-base tiun-font-semibold tiun-text-white"},Kh={class:"tiun-text-xs tiun-font-medium tiun-text-gray-400"},Jh={key:1,class:"tiun-grid tiun-gap-2 tiun-p-4 tiun-bg-black"},Qh={class:"tiun-text-sm tiun-font-semibold tiun-text-white"},Xh={class:"tiun-h-[3px]"},Yh={key:0,class:"tiun-flex tiun-gap-2 tiun-h-[3px]"},Gh=["onClick"],t3=["src"],e3=lt({__name:"HintCard",setup(t){var _;const e=q(0),n=ie(),i=Ot();let s;const o=Y(()=>n.selectedHint==="howItWorks"||n.selectedHint==="whatsTiun"),r=Y(()=>{var C,w,E;return n.selectedHint==="howItWorks"?(w=(C=n.paywallConfig)==null?void 0:C.helpCenter)==null?void 0:w.hintHowItWorks.hintImages:n.selectedHint==="whatsTiun"?(E=n.paywallConfig)==null?void 0:E.helpCenter.hintWhatIsTiun.hintImages:[]}),l=q(((_=r.value)==null?void 0:_.map(()=>0))||[]),a=Y(()=>{var C,w,E,A,$,D,G,z;return n.selectedHint==="howItWorks"?(w=(C=n.paywallConfig)==null?void 0:C.helpCenter)==null?void 0:w.hintHowItWorks.title:n.selectedHint==="whatsTiun"?(A=(E=n.paywallConfig)==null?void 0:E.helpCenter)==null?void 0:A.hintWhatIsTiun.title:n.selectedHint==="support"?(D=($=n.paywallConfig)==null?void 0:$.helpCenter)==null?void 0:D.support.title:n.selectedHint==="pricing"?(z=(G=n.paywallConfig)==null?void 0:G.helpCenter)==null?void 0:z.pricing.title:""}),c=()=>{var C,w;(C=l.value)!=null&&C.length&&(e.value<((w=l.value)==null?void 0:w.length)-1?(l.value[e.value]=100,e.value++):m())},u=()=>{if(e.value>0){const C=l.value[e.value];l.value[e.value]=0,C<=25&&(l.value[e.value-1]=0),e.value--}else l.value[e.value]=0},f=C=>{const{offsetX:w,currentTarget:E}=C;if(E){const A=E.clientWidth;w<A/3?u():c()}},d=()=>{var w,E;if(!((w=l.value)!=null&&w.length))return;const C=[...l.value];C[e.value]+=1,C[e.value]>=100&&(C[e.value]=100,e.value<((E=l.value)==null?void 0:E.length)-1?(e.value++,C[e.value]=C[e.value]||0):m()),l.value=C};function m(){g(),n.setHint(void 0)}function g(){var C;s&&(clearInterval(s),l.value=((C=l.value)==null?void 0:C.map(()=>0))||[],e.value=0)}return fn(()=>{s&&clearInterval(s)}),At(()=>n.selectedHint,()=>{var C;l.value=((C=r.value)==null?void 0:C.map(()=>0))||[],o.value&&(s=setInterval(d,50))},{immediate:!0}),(C,w)=>(v(),x("div",jh,[j(It,{name:"tiun-fasterFade"},{default:Dt(()=>{var E,A;return[b(n).selectedHint?(v(),x("div",Jh,[p("span",Qh,N(a.value),1),p("div",Xh,[o.value?(v(),x("div",Yh,[(v(!0),x(gt,null,Kt(l.value,($,D)=>(v(),x("div",{key:D,class:"tiun-w-full tiun-rounded-xl tiun-bg-gray-600 tiun-flex-1"},[p("span",{class:V(["tiun-h-full tiun-flex tiun-rounded-xl",D<=e.value?"tiun-bg-white":"tiun-bg-gray-600 "]),style:rn({width:`${$}%`})},null,6)]))),128))])):st("",!0)])])):(v(),x("div",Wh,[p("div",Zh,[p("button",{type:"button",class:"tiun-top-4 !tiun-ml-auto hover:tiun-opacity-80 tiun-transition-opacity tiun-rounded-full focus:tiun-outline-none focus-visible:tiun-outline-1 focus-visible:tiun-outline-black","data-cy":"tiunBtnHideHelp",onClick:w[0]||(w[0]=$=>b(n).currentView="showPaymentMethods")},[j(Ao,{class:"tiun-text-gray-400"})])]),p("div",zh,[p("div",qh,N((E=b(n).paywallConfig)==null?void 0:E.helpCenter.titleLine),1),p("div",Kh,N((A=b(n).paywallConfig)==null?void 0:A.helpCenter.subtitleLine),1)]),j(Uh)]))]}),_:1}),j(It,{name:"tiun-slide-up"},{default:Dt(()=>{var E;return[Ft(p("div",{class:V(["tiun-p-4 tiun-bg-white tiun-flex tiun-flex-col tiun-gap-4 tiun-bottom-0 tiun-left-0 tiun-right-0 tiun-absolute tiun-h-[435px]",{"tiun-rounded-xl":b(i).areCornersRounded}])},[p("button",{type:"button",onClick:Js(m,["stop"]),class:"!tiun-ml-auto hover:tiun-opacity-80 tiun-transition-opacity tiun-rounded-full focus:tiun-outline-none focus-visible:tiun-outline-1 focus-visible:tiun-outline-black","data-cy":"tiunBtnCloseHint"},[j(Ao,{class:"tiun-text-gray-400"})],8,Gh),o.value?(v(),x("div",{key:0,onClick:f,class:V(["tiun-relative tiun-transition-opacity tiun-h-full tiun-cursor-pointer",b(n).selectedHint?"tiun-delay-700 tiun-opacity-100":"tiun-opacity-0"])},[p("img",{src:(E=r.value)==null?void 0:E[e.value],class:V(["tiun-absolute !tiun-my-0 tiun-object-cover tiun-w-full !tiun-h-full",{"tiun-rounded-xl":b(i).areCornersRounded}]),"data-cy":"tiunCarouselImg"},null,10,t3)],2)):st("",!0),b(n).selectedHint==="pricing"?(v(),pt($h,{key:1})):st("",!0),b(n).selectedHint==="support"?(v(),pt(Dh,{key:2})):st("",!0)],2),[[Pe,b(n).selectedHint]])]}),_:1})]))}}),n3={},i3={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s3=[p("rect",{width:"16",height:"16",rx:"8",fill:"#4F46E5"},null,-1),p("path",{d:"M12.2069 4.79303C12.3944 4.98056 12.4997 5.23487 12.4997 5.50003C12.4997 5.76519 12.3944 6.0195 12.2069 6.20703L7.20692 11.207C7.01939 11.3945 6.76508 11.4998 6.49992 11.4998C6.23475 11.4998 5.98045 11.3945 5.79292 11.207L3.79292 9.20703C3.61076 9.01843 3.50997 8.76583 3.51224 8.50363C3.51452 8.24143 3.61969 7.99062 3.8051 7.80521C3.99051 7.6198 4.24132 7.51463 4.50352 7.51236C4.76571 7.51008 5.01832 7.61087 5.20692 7.79303L6.49992 9.08603L10.7929 4.79303C10.9804 4.60556 11.2348 4.50024 11.4999 4.50024C11.7651 4.50024 12.0194 4.60556 12.2069 4.79303Z",fill:"white"},null,-1)];function o3(t,e){return v(),x("svg",i3,s3)}const r3=kt(n3,[["render",o3]]),l3={},a3={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u3=[p("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16ZM7.31265 9.30722V9.3879H8.346V9.30722C8.34807 9.08792 8.37393 8.9038 8.42358 8.75485C8.4753 8.60383 8.55392 8.47246 8.65943 8.36075C8.767 8.24903 8.90458 8.14145 9.07215 8.03801C9.26248 7.92423 9.42695 7.79493 9.56555 7.65012C9.70416 7.5053 9.81071 7.3398 9.88518 7.15361C9.96173 6.96742 10 6.7564 10 6.52056C10 6.17093 9.91518 5.86889 9.74554 5.61443C9.57797 5.3579 9.34316 5.16033 9.04112 5.02172C8.74114 4.88311 8.39359 4.81381 7.99845 4.81381C7.63641 4.81381 7.3054 4.88001 7.00543 5.01241C6.70753 5.14482 6.46755 5.34342 6.28549 5.60822C6.10551 5.87303 6.01034 6.20197 6 6.59504H7.10473C7.11508 6.40057 7.16266 6.24024 7.24748 6.11404C7.33437 5.98578 7.44298 5.89061 7.57331 5.82855C7.70572 5.76442 7.84536 5.73235 7.99224 5.73235C8.15154 5.73235 8.29532 5.76545 8.42358 5.83165C8.55392 5.89785 8.65736 5.99095 8.7339 6.11094C8.81045 6.23093 8.84872 6.37264 8.84872 6.53607C8.84872 6.68089 8.81976 6.81226 8.76183 6.93018C8.70391 7.04603 8.62426 7.15154 8.52289 7.2467C8.42358 7.3398 8.31083 7.42565 8.18464 7.50427C8.00052 7.61805 7.84432 7.74321 7.71606 7.87975C7.58779 8.01422 7.48849 8.19214 7.41815 8.4135C7.34988 8.63486 7.31471 8.93277 7.31265 9.30722ZM7.37161 11.1257C7.50608 11.2581 7.66641 11.3243 7.8526 11.3243C7.97673 11.3243 8.08947 11.2943 8.19085 11.2343C8.29428 11.1722 8.37704 11.0895 8.4391 10.986C8.50323 10.8826 8.5353 10.7678 8.5353 10.6416C8.5353 10.4554 8.46703 10.2961 8.33049 10.1637C8.19602 10.0313 8.03672 9.96509 7.8526 9.96509C7.66641 9.96509 7.50608 10.0313 7.37161 10.1637C7.23713 10.2961 7.1699 10.4554 7.1699 10.6416C7.1699 10.8319 7.23713 10.9933 7.37161 11.1257Z",fill:"#4B5563"},null,-1)];function c3(t,e){return v(),x("svg",a3,u3)}const d3=kt(l3,[["render",c3]]),f3={},p3={class:"tiun-grid tiun-gap-2.5"},h3=p("span",{class:"tiun-h-[1.125em] tiun-w-full tiun-bg-gray-200 tiun-animate-pulse tiun-rounded-md"},null,-1),g3=p("hr",null,null,-1),m3=[p("span",{class:"tiun-h-6 tiun-w-full tiun-bg-gray-200 tiun-animate-pulse tiun-rounded-md"},null,-1),p("hr",null,null,-1)];function _3(t,e){return v(),x("div",p3,[h3,g3,(v(),x(gt,null,Kt([1,2,3,4],n=>p("div",{key:n,class:"tiun-grid tiun-gap-2.5"},m3)),64))])}const y3=kt(f3,[["render",_3]]),v3={key:1,class:"tiun-flex tiun-flex-col"},w3={class:"tiun-flex tiun-items-center tiun-justify-between tiun-pb-2.5"},b3={class:"tiun-text-xs tiun-font-medium tiun-text-gray-600"},C3={class:"tiun-max-h-[240px] tiun--mx-4 tiun-px-4 tiun-overflow-y-auto"},x3=["data-cy"],k3=["value","checked","onChange"],S3={class:"tiun-flex tiun-items-center tiun-gap-1"},E3=["src"],$3={class:"tiun-flex tiun-items-center tiun-gap-1"},T3=lt({__name:"PaymentOptions",setup(t){const e=ie(),n=vt(),i=Ot(),s=Y(()=>{var r;return(r=e.paywallConfig)==null?void 0:r.paymentMethodList});function o(){e.currentView="showHelp",i.isPreviewMode||zn("GetHelp")}return(r,l)=>(v(),pt(It,{name:"tiun-slide-up"},{default:Dt(()=>{var a;return[Ft(p("div",{class:V(["tiun-z-10 tiun-bg-white dark:tiun-bg-gray-700 tiun-p-4 tiun-h-[362px] tiun-absolute tiun-left-0 tiun-right-0",{"tiun-rounded-xl":b(i).areCornersRounded}]),"data-cy":"tiunPaymentOptions"},[j(It,{name:"tiun-fasterFade"},{default:Dt(()=>{var c,u,f;return[b(e).loadingPaywall?(v(),pt(y3,{key:0})):(v(),x("div",v3,[p("div",w3,[p("span",b3,N((c=b(e).paywallConfig)==null?void 0:c.paymentMethodSelectorString),1),(u=b(e).paywallConfig)!=null&&u.helpCenter.helpCenterCtaString?(v(),x("button",{key:0,typ:"button",class:"tiun-flex tiun-gap-1.5 tiun-items-center !tiun-text-gray-500 !tiun-italic !tiun-text-xxs hover:!tiun-text-gray-800 tiun-transition-colors",onClick:l[0]||(l[0]=d=>o()),"data-cy":"tiunBtnShowHelp"},[me(N((f=b(e).paywallConfig)==null?void 0:f.helpCenter.helpCenterCtaString)+" ",1),j(d3)])):st("",!0)]),p("div",C3,[(v(!0),x(gt,null,Kt(s.value,(d,m)=>{var g;return v(),x("div",{key:d.type,class:V(["tiun-border-t tiun-border-b-gray-200 tiun-transition-colors",{"tiun-border-b":((g=s.value)==null?void 0:g.length)===m+1}])},[p("label",{class:"tiun-flex tiun-justify-between tiun-items-center tiun-cursor-pointer tiun-py-2.5","data-cy":`tiunOption-${d.type}`},[p("input",{type:"radio",value:d.type,checked:b(e).selectedMethod===d.type,onChange:_=>b(e).setPaymentMethod(d.type),class:"tiun-hidden tiun-peer"},null,40,k3),p("div",S3,[(v(!0),x(gt,null,Kt(d.paymentMethodImageUrls,_=>(v(),x("img",{key:_,src:_,class:"!tiun-my-0"},null,8,E3))),128))]),p("div",$3,[p("span",{class:V(["tiun-font-medium tiun-text-xxs",b(e).selectedMethod===d.type?"tiun-text-indigo-600":"tiun-text-gray-400"])},N(d.explanation),3),p("div",{class:V(["tiun-relative tiun-flex tiun-items-center tiun-justify-center tiun-w-4 tiun-h-4 tiun-border tiun-rounded-full peer-checked:tiun-bg-indigo-600",b(e).selectedMethod===d.type?"tiun-border-indigo-600":"tiun-border-gray-300"])},[p("div",{class:V(["tiun-absolute tiun-inset-0 tiun-rounded-full",b(e).selectedMethod===d.type?"tiun-bg-indigo-600":"tiun-bg-white"])},null,2),j(r3,{class:V(["tiun-w-4 tiun-h-4 tiun-text-white tiun-z-10 tiun-transition-opacity",b(e).selectedMethod===d.type?"tiun-opacity-100":"tiun-opacity-0"])},null,8,["class"])],2)])],8,x3)],2)}),128))])]))]}),_:1})],2),[[Pe,!((a=b(n).snippetInfo)!=null&&a.hasConnection)]])]}),_:1}))}}),j5="",L3=kt(T3,[["__scopeId","data-v-56c04171"]]),M3={class:"tiun-flex tiun-flex-col tiun-h-full"},R3=lt({__name:"PaywallConnected",setup(t){const e=vt(),n=Ot();return(i,s)=>(v(),pt(It,{name:"tiun-slide-up"},{default:Dt(()=>{var o,r;return[Ft(p("div",{class:V(["tiun-z-20 tiun-mb-14 tiun-pb-4 tiun-absolute tiun-w-full tiun-bg-white dark:tiun-bg-gray-700 tiun-h-[306px]",{"tiun-rounded-t-xl":b(n).areCornersRounded}])},[p("div",{class:V(["tiun-transition-opacity tiun-p-4 tiun-flex tiun-flex-col tiun-gap-2 tiun-h-full",(o=b(e).snippetInfo)!=null&&o.hasConnection?"tiun-delay-700 tiun-opacity-100":"tiun-opacity-0 "])},[j(ga),p("div",M3,[p("div",{class:V(["tiun-bg-white dark:tiun-bg-gray-800 tiun-h-full tiun-border tiun-border-gray-200 dark:tiun-border-none tiun-relative",{"tiun-rounded-xl":b(n).areCornersRounded}])},[b(e).isTopUpError?(v(),pt(ya,{key:0})):b(e).isPaymentError?(v(),pt(va,{key:1})):(v(),pt(pa,{key:2,type:"paywall"}))],2)])],2)],2),[[Pe,(r=b(e).snippetInfo)==null?void 0:r.hasConnection]])]}),_:1}))}}),A3={},P3={width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},B3=[p("path",{d:"M8.00002 6V7.33333M8.00002 10H8.00669M3.38122 12.6667H12.6188C13.6452 12.6667 14.2867 11.5556 13.7735 10.6667L9.15472 2.66667C8.64152 1.77778 7.35852 1.77778 6.84532 2.66667L2.22652 10.6667C1.71332 11.5556 2.35482 12.6667 3.38122 12.6667Z",stroke:"#F59E0B","stroke-width":"1.33333","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)];function H3(t,e){return v(),x("svg",P3,B3)}const I3=kt(A3,[["render",H3]]),O3={key:0,class:"tiun-absolute tiun-grid tiun-gap-1 tiun-p-4 tiun-top-8 tiun-text-left"},N3={class:"tiun-text-base tiun-font-semibold tiun-text-white"},D3={class:"tiun-text-xs tiun-font-medium tiun-text-gray-400"},F3={key:1,class:"tiun-absolute tiun-grid tiun-gap-1 tiun-p-4 tiun-top-8 tiun-text-left"},V3={class:"tiun-text-base tiun-leading-normal tiun-font-semibold tiun-text-white"},U3=lt({__name:"HeaderTitle",setup(t){const e=vt(),n=ie(),i=Y(()=>{var o,r;return(r=(o=e.badgeData)==null?void 0:o.data)==null?void 0:r.headerRow}),s=Y(()=>{var o;return(o=n.paywallConfig)==null?void 0:o.paymentMethodList.find(r=>r.type===n.selectedMethod)});return(o,r)=>(v(),pt(It,{name:"tiun-fasterFade"},{default:Dt(()=>{var l,a,c,u,f,d,m;return[(l=b(e).snippetInfo)!=null&&l.hasConnection?(v(),x("div",O3,[p("div",N3,N((a=i.value)==null?void 0:a.titleLine),1),p("div",D3,N((c=i.value)==null?void 0:c.subtitleLine),1)])):(v(),x("div",F3,[p("div",V3,[(v(!0),x(gt,null,Kt((u=s.value)==null?void 0:u.titleLine.fragments,(g,_)=>(v(),x("span",{key:_,class:V({"tiun-line-through !tiun-text-gray-400":g.isStrikethrough})},N(g.text),3))),128))]),p("div",{class:V(["tiun-text-xs tiun-font-medium",(f=s.value)!=null&&f.subtitleLine.isWarning?"tiun-text-amber-500 tiun-flex tiun-items-center tiun-gap-1":"tiun-text-gray-400"])},[(d=s.value)!=null&&d.subtitleLine.isWarning?(v(),pt(I3,{key:0})):st("",!0),me(" "+N((m=s.value)==null?void 0:m.subtitleLine.text),1)],2)]))]}),_:1}))}}),j3={class:"tiun-mt-12 tiun-w-[148px] tiun-h-[148px] tiun-m-auto"},W3=["src"],Z3={key:1,class:"tiun-m-auto tiun-w-[148px] tiun-h-[148px] tiun-animate-pulse tiun-bg-gray-400 dark:tiun-bg-gray-600"},z3={class:"tiun-w-fit tiun-flex tiun-items-center tiun-mx-auto"},q3={class:"tiun-bg-gray-300 dark:tiun-bg-white tiun-pl-2 tiun-text-[8px] tiun-leading-[16px] tiun-text-gray-600 dark:tiun-text-gray-700 tiun-font-medium tiun-flex tiun-items-center tiun-gap-0.5 tiun-rounded-[4px]"},K3={width:"16",height:"24",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J3=["stroke"],Q3=["stroke"],X3=["src"],Y3={key:0,class:"tiun-flex tiun-items-center tiun-gap-4 tiun-animate-pulse"},G3=["disabled"],t8={class:"tiunBadgeButtonText"},e8=["disabled"],n8={class:"tiunBadgeButtonText"},i8={class:"mr-0.5 tiun-shrink-0",width:"15",height:"14",viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s8=["fill"],o8=["disabled"],r8=lt({__name:"QrCodeFooterActions",setup(t){const e=ie(),n=vt(),i=Ot(),s=q(!1),o=q(),r=q(!1),l=Y(()=>{var w;return(w=e.paywallConfig)==null?void 0:w.paymentMethodList.find(E=>E.type===e.selectedMethod)}),a=Y(()=>{var w;return(w=n.badgeData)==null?void 0:w.data});function c(){n.isPaymentError&&C()}function u(){n.isPaymentError?d():n.isTopUpError?f():(n.isStartSessionBadge||n.isLoadingSessionBadge)&&C()}function f(){var w;(w=a.value)!=null&&w.topUpLink&&window.open(a.value.topUpLink,"_blank")}async function d(){if(!i.isPreviewMode)try{s.value=!0,n.closeBadge(),await So(),await e.loadPaywall(),await n.loadInfo(),s.value=!1}catch{s.value=!1}}async function m(){var w,E,A,$;if(!i.isPreviewMode)if(s.value=!0,await zn("Connect"),((E=(w=e.paywallConfig)==null?void 0:w.preselectedPaymentMethod)==null?void 0:E.type)===e.selectedMethod&&(($=(A=e.paywallConfig)==null?void 0:A.preselectedPaymentMethod)!=null&&$.redirectUrl))window.location.href=e.paywallConfig.preselectedPaymentMethod.redirectUrl;else{const D=await Eo(e.selectedMethod);if(!D.redirectUrl)return;s.value=!1,window.location.href=D.redirectUrl}}async function g(){var w,E,A,$,D,G,z;if(e.currentView=e.currentView==="showQr"?"showPaymentMethods":"showQr",e.currentView==="showQr")if(i.isPreviewMode)await _((w=e.paywallConfig)==null?void 0:w.previewQrCodeImageUrl);else{if(zn("ShowQrCode"),((A=(E=e.paywallConfig)==null?void 0:E.preselectedPaymentMethod)==null?void 0:A.type)===e.selectedMethod&&((D=($=e.paywallConfig)==null?void 0:$.preselectedPaymentMethod)!=null&&D.qrCodeImageUrl)){_((z=(G=e.paywallConfig)==null?void 0:G.preselectedPaymentMethod)==null?void 0:z.qrCodeImageUrl);return}try{r.value=!0;const M=await Eo(e.selectedMethod);await _(M.qrCodeImageUrl)}catch{r.value=!1}await e.loadPaywall(),n.startPolling()}else i.isPreviewMode||zn("HideQrCode")}async function _(w){if(w){r.value=!0;try{if(!o.value){const E=new Image;await new Promise((A,$)=>{E.onload=A,E.onerror=$,E.src=w})}o.value=w}catch(E){console.error("Error fetching or displaying QR code:",E)}finally{r.value=!1}}}async function C(){if(!i.isPreviewMode)try{s.value=!0;const w=await da("Paywall");w.redirectUrl?window.location.href=w.redirectUrl:await n.loadInfo(),s.value=!1}catch{s.value=!1}}return(w,E)=>{var $,D,G,z,M,F,Z,Q,I,et,ft,St,ot,tt,B,at,bt,Bt,Wt,Qn,is,ss,Gt,Ge,Xn,Ce,bn;const A=Ar("ripple");return v(),x(gt,null,[j(It,{name:"tiun-slide-up"},{default:Dt(()=>{var tn,h,y;return[Ft(p("div",{class:V(["tiun-flex -tiun-mb-5 tiun-justify-center tiun-items-center tiun-text-center tiun-absolute tiun-bottom-20 tiun-left-0 tiun-right-0 dark:tiun-bg-gray-700 tiun-bg-gray-200 tiun-z-10 tiun-h-[304px]",{"tiun-rounded-t-xl":b(i).areCornersRounded}])},[p("div",{class:V(["tiun-flex tiun-flex-col tiun-gap-4 tiun-transition-opacity",b(e).currentView==="showQr"?"tiun-delay-700 tiun-opacity-100 ":"tiun-opacity-0 "])},[p("button",{type:"button",class:"tiun-absolute tiun-top-4 tiun-right-4 hover:tiun-opacity-80 tiun-transition-opacity tiun-rounded-full focus:tiun-outline-none focus-visible:tiun-outline-1 focus-visible:tiun-outline-black","data-cy":"tiunBtnHideQr",onClick:g},[j(Ao,{class:"tiun-text-gray-400"})]),p("div",j3,[o.value&&!r.value?(v(),x("img",{key:0,id:"tiunQrCodeImg","data-cy":"tiunQrCodeImg",src:o.value,class:"tiun-m-auto !tiun-my-0 tiun-w-[148px] tiun-h-[148px]",height:"148",width:"148"},null,8,W3)):(v(),x("div",Z3))]),p("div",z3,[p("div",q3,[(v(),x("svg",K3,[p("path",{d:"M1.75 5.25016C1.75 4.60583 2.27233 4.0835 2.91667 4.0835H3.45895C3.84903 4.0835 4.2133 3.88854 4.42968 3.56398L4.90366 2.85301C5.12003 2.52845 5.4843 2.3335 5.87438 2.3335H8.12562C8.5157 2.3335 8.87997 2.52845 9.09634 2.85301L9.57032 3.56398C9.7867 3.88854 10.151 4.0835 10.541 4.0835H11.0833C11.7277 4.0835 12.25 4.60583 12.25 5.25016V10.5002C12.25 11.1445 11.7277 11.6668 11.0833 11.6668H2.91667C2.27233 11.6668 1.75 11.1445 1.75 10.5002V5.25016Z",stroke:b(i).isDarkMode?"#374151":"#4B5563","stroke-linecap":"round","stroke-linejoin":"round"},null,8,J3),p("path",{d:"M8.75 7.5835C8.75 8.54999 7.9665 9.3335 7 9.3335C6.0335 9.3335 5.25 8.54999 5.25 7.5835C5.25 6.617 6.0335 5.8335 7 5.8335C7.9665 5.8335 8.75 6.617 8.75 7.5835Z",stroke:b(i).isDarkMode?"#374151":"#4B5563","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Q3)])),p("span",null,N((tn=l.value)==null?void 0:tn.qrCta.scanExplanationText),1),(h=l.value)!=null&&h.qrCta.qrPaymentMethodImageUrl?(v(),x("img",{key:0,src:(y=l.value)==null?void 0:y.qrCta.qrPaymentMethodImageUrl,class:"tiun-py-[1px] tiun-pr-[1px] tiun-ml-2 !tiun-my-0",height:"24",width:"48"},null,8,X3)):st("",!0)])])],2)],2),[[Pe,b(e).currentView==="showQr"]])]}),_:1}),p("div",{class:V(["tiun-z-30 tiun-h-[70.5px] tiun-absolute tiun-bottom-0 tiun-w-full tiun-mb-[-2px] tiun-bg-gray-200 dark:tiun-bg-gray-700 tiun-p-4 tiun-flex tiun-flex-col tiun-gap-4",{"tiun-rounded-xl":b(i).areCornersRounded}])},[!b(i).isPreviewMode&&b(e).loadingPaywall&&b(e).currentView!=="showQr"?(v(),x("div",Y3,[p("div",{class:V(["tiun-h-[38.5px] tiun-w-full tiun-bg-gray-300 dark:tiun-bg-gray-600",{"tiun-rounded-xl":b(i).areCornersRounded}])},null,2)])):!b(i).isPreviewMode&&(b(n).isStartSessionBadge||b(n).isLoadingSessionBadge||b(n).isTopUpError||b(n).isPaymentError)?(v(),x("div",{key:1,class:V({"tiun-flex tiun-items-center tiun-gap-4":((G=(D=($=b(n).badgeData)==null?void 0:$.data)==null?void 0:D.ctaRow)==null?void 0:G.primaryCtaLabel)&&((F=(M=(z=b(n).badgeData)==null?void 0:z.data)==null?void 0:M.ctaRow)==null?void 0:F.secondaryCtaLabel)})},[(I=(Q=(Z=b(n).badgeData)==null?void 0:Z.data)==null?void 0:Q.ctaRow)!=null&&I.secondaryCtaLabel?Ft((v(),x("button",{key:0,type:"button",class:V(["tiunBadgeSecondaryButton !tiun-min-w-[4.5em]",{"tiun-rounded-xl":b(i).areCornersRounded}]),onClick:c,disabled:b(n).isLoadingSessionBadge||s.value},[p("div",t8,N((St=(ft=(et=b(n).badgeData)==null?void 0:et.data)==null?void 0:ft.ctaRow)==null?void 0:St.secondaryCtaLabel),1)],10,G3)),[[A]]):st("",!0),(B=(tt=(ot=b(n).badgeData)==null?void 0:ot.data)==null?void 0:tt.ctaRow)!=null&&B.primaryCtaLabel?Ft((v(),x("button",{key:1,type:"button",class:V(["tiunBadgePrimaryButton tiun-w-full",{"tiun-rounded-xl":b(i).areCornersRounded}]),onClick:u,disabled:b(n).isLoadingSessionBadge||s.value},[p("div",n8,N((Bt=(bt=(at=b(n).badgeData)==null?void 0:at.data)==null?void 0:bt.ctaRow)==null?void 0:Bt.primaryCtaLabel),1)],10,e8)),[[A]]):st("",!0)],2)):b(e).currentView==="showPaymentMethods"?(v(),x("div",{key:2,class:V({"tiun-flex tiun-items-center tiun-gap-4":((Wt=l.value)==null?void 0:Wt.ctaVisibility)==="Both"})},[((Qn=l.value)==null?void 0:Qn.ctaVisibility)==="Both"||((is=l.value)==null?void 0:is.ctaVisibility)==="QrOnly"?Ft((v(),x("button",{key:0,type:"button",class:V(["tiunButton tiunWhiteButton tiun-gap-1 tiun-flex-shrink-0",{"tiun-rounded-xl":b(i).areCornersRounded,"tiun-w-fit":((ss=l.value)==null?void 0:ss.ctaVisibility)==="Both","tiun-w-full":((Gt=l.value)==null?void 0:Gt.ctaVisibility)==="QrOnly"}]),"data-cy":"tiunBtnShowQr",onClick:g},[(v(),x("svg",i8,[p("path",{d:"M8.24998 2.3335C8.24998 1.91928 7.91419 1.5835 7.49998 1.5835C7.08577 1.5835 6.74998 1.91928 6.74998 2.3335H8.24998ZM6.74998 2.91683C6.74998 3.33104 7.08577 3.66683 7.49998 3.66683C7.91419 3.66683 8.24998 3.33104 8.24998 2.91683H6.74998ZM11 8.5835C10.5858 8.5835 10.25 8.91928 10.25 9.3335C10.25 9.74771 10.5858 10.0835 11 10.0835V8.5835ZM12.1666 10.0835C12.5809 10.0835 12.9166 9.74771 12.9166 9.3335C12.9166 8.91928 12.5809 8.5835 12.1666 8.5835V10.0835ZM7.49998 9.3335V8.5835C7.08577 8.5835 6.74998 8.91928 6.74998 9.3335H7.49998ZM8.66665 10.0835C9.08086 10.0835 9.41665 9.74771 9.41665 9.3335C9.41665 8.91928 9.08086 8.5835 8.66665 8.5835V10.0835ZM6.74998 11.6668C6.74998 12.081 7.08577 12.4168 7.49998 12.4168C7.91419 12.4168 8.24998 12.081 8.24998 11.6668H6.74998ZM8.24998 5.25016C8.24998 4.83595 7.91419 4.50016 7.49998 4.50016C7.08577 4.50016 6.74998 4.83595 6.74998 5.25016H8.24998ZM7.49998 7.00016H6.74998C6.74998 7.41438 7.08577 7.75016 7.49998 7.75016V7.00016ZM9.83331 10.9168C9.4191 10.9168 9.08331 11.2526 9.08331 11.6668C9.08331 12.081 9.4191 12.4168 9.83331 12.4168V10.9168ZM12.1666 12.4168C12.5809 12.4168 12.9166 12.081 12.9166 11.6668C12.9166 11.2526 12.5809 10.9168 12.1666 10.9168V12.4168ZM2.83331 6.25016C2.4191 6.25016 2.08331 6.58595 2.08331 7.00016C2.08331 7.41438 2.4191 7.75016 2.83331 7.75016V6.25016ZM5.16665 7.75016C5.58086 7.75016 5.91665 7.41438 5.91665 7.00016C5.91665 6.58595 5.58086 6.25016 5.16665 6.25016V7.75016ZM7.50581 7.75016C7.92003 7.75016 8.25581 7.41438 8.25581 7.00016C8.25581 6.58595 7.92003 6.25016 7.50581 6.25016V7.75016ZM9.83915 7.75016C10.2534 7.75016 10.5891 7.41438 10.5891 7.00016C10.5891 6.58595 10.2534 6.25016 9.83915 6.25016V7.75016ZM12.1666 6.25016C11.7524 6.25016 11.4166 6.58595 11.4166 7.00016C11.4166 7.41438 11.7524 7.75016 12.1666 7.75016V6.25016ZM12.1725 7.75016C12.5867 7.75016 12.9225 7.41438 12.9225 7.00016C12.9225 6.58595 12.5867 6.25016 12.1725 6.25016V7.75016ZM3.41665 3.0835H4.58331V1.5835H3.41665V3.0835ZM4.41665 2.91683V4.0835H5.91665V2.91683H4.41665ZM4.58331 3.91683H3.41665V5.41683H4.58331V3.91683ZM3.58331 4.0835V2.91683H2.08331V4.0835H3.58331ZM3.41665 3.91683C3.50869 3.91683 3.58331 3.99145 3.58331 4.0835H2.08331C2.08331 4.81988 2.68027 5.41683 3.41665 5.41683V3.91683ZM4.41665 4.0835C4.41665 3.99145 4.49127 3.91683 4.58331 3.91683V5.41683C5.31969 5.41683 5.91665 4.81988 5.91665 4.0835H4.41665ZM4.58331 3.0835C4.49127 3.0835 4.41665 3.00888 4.41665 2.91683H5.91665C5.91665 2.18045 5.31969 1.5835 4.58331 1.5835V3.0835ZM3.41665 1.5835C2.68027 1.5835 2.08331 2.18045 2.08331 2.91683H3.58331C3.58331 3.00888 3.50869 3.0835 3.41665 3.0835V1.5835ZM10.4166 3.0835H11.5833V1.5835H10.4166V3.0835ZM11.4166 2.91683V4.0835H12.9166V2.91683H11.4166ZM11.5833 3.91683H10.4166V5.41683H11.5833V3.91683ZM10.5833 4.0835V2.91683H9.08331V4.0835H10.5833ZM10.4166 3.91683C10.5087 3.91683 10.5833 3.99145 10.5833 4.0835H9.08331C9.08331 4.81988 9.68027 5.41683 10.4166 5.41683V3.91683ZM11.4166 4.0835C11.4166 3.99145 11.4913 3.91683 11.5833 3.91683V5.41683C12.3197 5.41683 12.9166 4.81988 12.9166 4.0835H11.4166ZM11.5833 3.0835C11.4913 3.0835 11.4166 3.00888 11.4166 2.91683H12.9166C12.9166 2.18045 12.3197 1.5835 11.5833 1.5835V3.0835ZM10.4166 1.5835C9.68027 1.5835 9.08331 2.18045 9.08331 2.91683H10.5833C10.5833 3.00888 10.5087 3.0835 10.4166 3.0835V1.5835ZM3.41665 10.0835H4.58331V8.5835H3.41665V10.0835ZM4.41665 9.91683V11.0835H5.91665V9.91683H4.41665ZM4.58331 10.9168H3.41665V12.4168H4.58331V10.9168ZM3.58331 11.0835V9.91683H2.08331V11.0835H3.58331ZM3.41665 10.9168C3.50869 10.9168 3.58331 10.9914 3.58331 11.0835H2.08331C2.08331 11.8199 2.68027 12.4168 3.41665 12.4168V10.9168ZM4.41665 11.0835C4.41665 10.9914 4.49127 10.9168 4.58331 10.9168V12.4168C5.31969 12.4168 5.91665 11.8199 5.91665 11.0835H4.41665ZM4.58331 10.0835C4.49127 10.0835 4.41665 10.0089 4.41665 9.91683H5.91665C5.91665 9.18045 5.31969 8.5835 4.58331 8.5835V10.0835ZM3.41665 8.5835C2.68027 8.5835 2.08331 9.18045 2.08331 9.91683H3.58331C3.58331 10.0089 3.50869 10.0835 3.41665 10.0835V8.5835ZM6.74998 2.3335V2.91683H8.24998V2.3335H6.74998ZM11 10.0835H12.1666V8.5835H11V10.0835ZM7.49998 10.0835H8.66665V8.5835H7.49998V10.0835ZM6.74998 9.3335V11.6668H8.24998V9.3335H6.74998ZM6.74998 5.25016V7.00016H8.24998V5.25016H6.74998ZM9.83331 12.4168H12.1666V10.9168H9.83331V12.4168ZM2.83331 7.75016H5.16665V6.25016H2.83331V7.75016ZM7.49998 7.75016H7.50581V6.25016H7.49998V7.75016ZM12.1666 7.75016H12.1725V6.25016H12.1666V7.75016ZM7.49998 7.75016H9.83915V6.25016H7.49998V7.75016Z",fill:b(i).isDarkMode?"white":"black"},null,8,s8)])),me(" "+N((Ge=l.value)==null?void 0:Ge.qrCta.openCtaText),1)],2)),[[A]]):st("",!0),((Xn=l.value)==null?void 0:Xn.ctaVisibility)==="Both"||((Ce=l.value)==null?void 0:Ce.ctaVisibility)==="RedirectOnly"?Ft((v(),x("button",{key:1,type:"button",class:V(["tiunButton tiunBlackButton tiun-w-full",{"tiun-rounded-xl":b(i).areCornersRounded}]),"data-cy":"tiunBtnConnect",disabled:s.value,onClick:E[0]||(E[0]=tn=>m())},[me(N((bn=l.value)==null?void 0:bn.redirectCta.ctaText),1)],10,o8)),[[A]]):st("",!0)],2)):st("",!0)],2)],64)}}}),l8=lt({__name:"Paywall",setup(t){const e=vt(),n=ie(),i=Ot(),s=q(null),o=jd(s),r=q(!1);fn(()=>{n.currentView="showPaymentMethods"}),At(()=>e.fetchingInfo,(a,c)=>{var u,f;!c&&a&&(((u=e.snippetInfo)==null?void 0:u.connectionStatus)!=="Connected"&&((f=e.snippetInfo)==null?void 0:f.connectionStatus)!=="Session"||i.isPreviewMode)&&n.loadPaywall()},{immediate:!0});async function l(){try{await cp()}catch(a){console.error("Error sending paywall view:",a)}}return At(o,a=>{a&&!r.value&&!i.isPreviewMode&&(r.value=!0,l())},{immediate:!0}),(a,c)=>(v(),x("div",{class:"tiun-min-w-[304px] tiun-h-[490px] tiun-max-w-[343px] tiun-mx-auto","data-cy":"tiunPaywallDiv",ref_key:"paywallRef",ref:s},[p("div",{class:V([{"tiun-my-rotate-y-180":b(n).currentView==="showHelp","tiun-rounded-xl":b(i).areCornersRounded},"tiun-relative tiun-preserve-3d tiun-w-full tiun-h-full tiun-duration-500 tiun-shadow-md"])},[p("div",{class:V(["tiun-z-10 tiun-relative tiun-backface-hidden tiun-w-full tiun-h-full dark:tiun-bg-gray-900",{"tiun-rounded-xl":b(i).areCornersRounded}])},[p("div",{class:V(["tiun-bg-black tiun-flex tiun-flex-col tiun-h-full tiun-justify-end",{"tiun-rounded-xl":b(i).areCornersRounded}])},[j(ha),j(U3),j(R3),j(L3),j(r8)],2)],2),p("div",{class:V(["tiun-z-20 tiun-top-0 dark:tiun-text-white dark:tiun-bg-gray-900 tiun-bg-black tiun-w-full tiun-my-rotate-y-180 tiun-h-full tiun-overflow-hidden tiun-absolute tiun-backface-hidden",{"tiun-rounded-xl":b(i).areCornersRounded}])},[j(e3)],2)],2)],512))}}),a8={class:"tiun-flex"},u8={ref:"statusDetails",class:"tiun-h-[507px]"},c8=lt({__name:"MockBadgeApp",setup(t){const e=vt(),n=Ot();return e.loadInfo(),(i,s)=>(v(),x("div",a8,[j(wo),p("div",u8,[p("div",{class:V(["tiun-shadow-2xl tiun-relative tiun-transition-shadow tiun-duration-300 dark:tiun-bg-black tiun-bg-white tiun-flex tiun-flex-col tiun-h-full",[{"tiun-rounded-b-xl":b(n).areCornersRounded}]])},[j($o)],2)],512)]))}});let Ki;const d8=new Uint8Array(16);function f8(){if(!Ki&&(Ki=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ki))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ki(d8)}const Mt=[];for(let t=0;t<256;++t)Mt.push((t+256).toString(16).slice(1));function p8(t,e=0){return(Mt[t[e+0]]+Mt[t[e+1]]+Mt[t[e+2]]+Mt[t[e+3]]+"-"+Mt[t[e+4]]+Mt[t[e+5]]+"-"+Mt[t[e+6]]+Mt[t[e+7]]+"-"+Mt[t[e+8]]+Mt[t[e+9]]+"-"+Mt[t[e+10]]+Mt[t[e+11]]+Mt[t[e+12]]+Mt[t[e+13]]+Mt[t[e+14]]+Mt[t[e+15]]).toLowerCase()}const h8=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),La={randomUUID:h8};function g8(t,e,n){if(La.randomUUID&&!e&&!t)return La.randomUUID();t=t||{};const i=t.random||(t.rng||f8)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,e){n=n||0;for(let s=0;s<16;++s)e[n+s]=i[s];return e}return p8(i)}function vn(t){return t.split("-")[0]}function Po(t){return t.split("-")[1]}function Ji(t){return["top","bottom"].includes(vn(t))?"x":"y"}function Ma(t){return t==="y"?"height":"width"}function Ra(t,e,n){let{reference:i,floating:s}=t;const o=i.x+i.width/2-s.width/2,r=i.y+i.height/2-s.height/2,l=Ji(e),a=Ma(l),c=i[a]/2-s[a]/2,u=vn(e),f=l==="x";let d;switch(u){case"top":d={x:o,y:i.y-s.height};break;case"bottom":d={x:o,y:i.y+i.height};break;case"right":d={x:i.x+i.width,y:r};break;case"left":d={x:i.x-s.width,y:r};break;default:d={x:i.x,y:i.y}}switch(Po(e)){case"start":d[l]-=c*(n&&f?-1:1);break;case"end":d[l]+=c*(n&&f?-1:1);break}return d}const m8=async(t,e,n)=>{const{placement:i="bottom",strategy:s="absolute",middleware:o=[],platform:r}=n,l=await(r.isRTL==null?void 0:r.isRTL(e));let a=await r.getElementRects({reference:t,floating:e,strategy:s}),{x:c,y:u}=Ra(a,i,l),f=i,d={},m=0;for(let g=0;g<o.length;g++){const{name:_,fn:C}=o[g],{x:w,y:E,data:A,reset:$}=await C({x:c,y:u,initialPlacement:i,placement:f,strategy:s,middlewareData:d,rects:a,platform:r,elements:{reference:t,floating:e}});if(c=w??c,u=E??u,d={...d,[_]:{...d[_],...A}},$&&m<=50){m++,typeof $=="object"&&($.placement&&(f=$.placement),$.rects&&(a=$.rects===!0?await r.getElementRects({reference:t,floating:e,strategy:s}):$.rects),{x:c,y:u}=Ra(a,f,l)),g=-1;continue}}return{x:c,y:u,placement:f,strategy:s,middlewareData:d}};function _8(t){return{top:0,right:0,bottom:0,left:0,...t}}function Aa(t){return typeof t!="number"?_8(t):{top:t,right:t,bottom:t,left:t}}function Kn(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function y8(t,e){var n;e===void 0&&(e={});const{x:i,y:s,platform:o,rects:r,elements:l,strategy:a}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:m=0}=e,g=Aa(m),_=l[d?f==="floating"?"reference":"floating":f],C=Kn(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(_)))==null||n?_:_.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:a})),w=Kn(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:f==="floating"?{...r.floating,x:i,y:s}:r.reference,offsetParent:await(o.getOffsetParent==null?void 0:o.getOffsetParent(l.floating)),strategy:a}):r[f]);return{top:C.top-w.top+g.top,bottom:w.bottom-C.bottom+g.bottom,left:C.left-w.left+g.left,right:w.right-C.right+g.right}}const v8=Math.min,w8=Math.max,b8={left:"right",right:"left",bottom:"top",top:"bottom"};function Qi(t){return t.replace(/left|right|bottom|top/g,e=>b8[e])}function C8(t,e,n){n===void 0&&(n=!1);const i=Po(t),s=Ji(t),o=Ma(s);let r=s==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(r=Qi(r)),{main:r,cross:Qi(r)}}const x8={start:"end",end:"start"};function Pa(t){return t.replace(/start|end/g,e=>x8[e])}function k8(t){const e=Qi(t);return[Pa(t),e,Pa(e)]}const S8=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n;const{placement:i,middlewareData:s,rects:o,initialPlacement:r,platform:l,elements:a}=e,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",flipAlignment:m=!0,...g}=t,_=vn(i),C=f||(_===r||!m?[Qi(r)]:k8(r)),w=[r,...C],E=await y8(e,g),A=[];let $=((n=s.flip)==null?void 0:n.overflows)||[];if(c&&A.push(E[_]),u){const{main:M,cross:F}=C8(i,o,await(l.isRTL==null?void 0:l.isRTL(a.floating)));A.push(E[M],E[F])}if($=[...$,{placement:i,overflows:A}],!A.every(M=>M<=0)){var D,G;const M=((D=(G=s.flip)==null?void 0:G.index)!=null?D:0)+1,F=w[M];if(F)return{data:{index:M,overflows:$},reset:{placement:F}};let Z="bottom";switch(d){case"bestFit":{var z;const Q=(z=$.map(I=>[I,I.overflows.filter(et=>et>0).reduce((et,ft)=>et+ft,0)]).sort((I,et)=>I[1]-et[1])[0])==null?void 0:z[0].placement;Q&&(Z=Q);break}case"initialPlacement":Z=r;break}if(i!==Z)return{reset:{placement:Z}}}return{}}}};async function E8(t,e){const{placement:n,platform:i,elements:s}=t,o=await(i.isRTL==null?void 0:i.isRTL(s.floating)),r=vn(n),l=Po(n),a=Ji(n)==="x",c=["left","top"].includes(r)?-1:1,u=o&&a?-1:1,f=typeof e=="function"?e(t):e;let{mainAxis:d,crossAxis:m,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&typeof g=="number"&&(m=l==="end"?g*-1:g),a?{x:m*u,y:d*c}:{x:d*c,y:m*u}}const $8=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){const{x:n,y:i}=e,s=await E8(e,t);return{x:n+s.x,y:i+s.y,data:s}}}},T8=function(t){return t===void 0&&(t={}),{name:"inline",options:t,async fn(e){var n;const{placement:i,elements:s,rects:o,platform:r,strategy:l}=e,{padding:a=2,x:c,y:u}=t,f=Kn(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({rect:o.reference,offsetParent:await(r.getOffsetParent==null?void 0:r.getOffsetParent(s.floating)),strategy:l}):o.reference),d=(n=await(r.getClientRects==null?void 0:r.getClientRects(s.reference)))!=null?n:[],m=Aa(a);function g(){if(d.length===2&&d[0].left>d[1].right&&c!=null&&u!=null){var C;return(C=d.find(w=>c>w.left-m.left&&c<w.right+m.right&&u>w.top-m.top&&u<w.bottom+m.bottom))!=null?C:f}if(d.length>=2){if(Ji(i)==="x"){const Q=d[0],I=d[d.length-1],et=vn(i)==="top",ft=Q.top,St=I.bottom,ot=et?Q.left:I.left,tt=et?Q.right:I.right,B=tt-ot,at=St-ft;return{top:ft,bottom:St,left:ot,right:tt,width:B,height:at,x:ot,y:ft}}const w=vn(i)==="left",E=w8(...d.map(Q=>Q.right)),A=v8(...d.map(Q=>Q.left)),$=d.filter(Q=>w?Q.left===A:Q.right===E),D=$[0].top,G=$[$.length-1].bottom,z=A,M=E,F=M-z,Z=G-D;return{top:D,bottom:G,left:z,right:M,width:F,height:Z,x:z,y:D}}return f}const _=await r.getElementRects({reference:{getBoundingClientRect:g},floating:s.floating,strategy:l});return o.reference.x!==_.reference.x||o.reference.y!==_.reference.y||o.reference.width!==_.reference.width||o.reference.height!==_.reference.height?{reset:{rects:_}}:{}}}};function Ba(t){return t&&t.document&&t.location&&t.alert&&t.setInterval}function ve(t){if(t==null)return window;if(!Ba(t)){const e=t.ownerDocument;return e&&e.defaultView||window}return t}function Oe(t){return ve(t).getComputedStyle(t)}function we(t){return Ba(t)?"":t?(t.nodeName||"").toLowerCase():""}function Ha(){const t=navigator.userAgentData;return t!=null&&t.brands?t.brands.map(e=>e.brand+"/"+e.version).join(" "):navigator.userAgent}function de(t){return t instanceof ve(t).HTMLElement}function Ne(t){return t instanceof ve(t).Element}function L8(t){return t instanceof ve(t).Node}function Xi(t){if(typeof ShadowRoot>"u")return!1;const e=ve(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Yi(t){const{overflow:e,overflowX:n,overflowY:i}=Oe(t);return/auto|scroll|overlay|hidden/.test(e+i+n)}function M8(t){return["table","td","th"].includes(we(t))}function Ia(t){const e=/firefox/i.test(Ha()),n=Oe(t);return n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].includes(n.willChange)||e&&n.willChange==="filter"||e&&(n.filter?n.filter!=="none":!1)}function Oa(){return!/^((?!chrome|android).)*safari/i.test(Ha())}const Na=Math.min,Jn=Math.max,Gi=Math.round;function be(t,e,n){var i,s,o,r;e===void 0&&(e=!1),n===void 0&&(n=!1);const l=t.getBoundingClientRect();let a=1,c=1;e&&de(t)&&(a=t.offsetWidth>0&&Gi(l.width)/t.offsetWidth||1,c=t.offsetHeight>0&&Gi(l.height)/t.offsetHeight||1);const u=Ne(t)?ve(t):window,f=!Oa()&&n,d=(l.left+(f&&(i=(s=u.visualViewport)==null?void 0:s.offsetLeft)!=null?i:0))/a,m=(l.top+(f&&(o=(r=u.visualViewport)==null?void 0:r.offsetTop)!=null?o:0))/c,g=l.width/a,_=l.height/c;return{width:g,height:_,top:m,right:d+g,bottom:m+_,left:d,x:d,y:m}}function De(t){return((L8(t)?t.ownerDocument:t.document)||window.document).documentElement}function ts(t){return Ne(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Da(t){return be(De(t)).left+ts(t).scrollLeft}function R8(t){const e=be(t);return Gi(e.width)!==t.offsetWidth||Gi(e.height)!==t.offsetHeight}function A8(t,e,n){const i=de(e),s=De(e),o=be(t,i&&R8(e),n==="fixed");let r={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if(i||!i&&n!=="fixed")if((we(e)!=="body"||Yi(s))&&(r=ts(e)),de(e)){const a=be(e,!0);l.x=a.x+e.clientLeft,l.y=a.y+e.clientTop}else s&&(l.x=Da(s));return{x:o.left+r.scrollLeft-l.x,y:o.top+r.scrollTop-l.y,width:o.width,height:o.height}}function Fa(t){return we(t)==="html"?t:t.assignedSlot||t.parentNode||(Xi(t)?t.host:null)||De(t)}function Va(t){return!de(t)||Oe(t).position==="fixed"?null:t.offsetParent}function P8(t){let e=Fa(t);for(Xi(e)&&(e=e.host);de(e)&&!["html","body"].includes(we(e));){if(Ia(e))return e;{const n=e.parentNode;e=Xi(n)?n.host:n}}return null}function Bo(t){const e=ve(t);let n=Va(t);for(;n&&M8(n)&&Oe(n).position==="static";)n=Va(n);return n&&(we(n)==="html"||we(n)==="body"&&Oe(n).position==="static"&&!Ia(n))?e:n||P8(t)||e}function Ua(t){if(de(t))return{width:t.offsetWidth,height:t.offsetHeight};const e=be(t);return{width:e.width,height:e.height}}function B8(t){let{rect:e,offsetParent:n,strategy:i}=t;const s=de(n),o=De(n);if(n===o)return e;let r={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if((s||!s&&i!=="fixed")&&((we(n)!=="body"||Yi(o))&&(r=ts(n)),de(n))){const a=be(n,!0);l.x=a.x+n.clientLeft,l.y=a.y+n.clientTop}return{...e,x:e.x-r.scrollLeft+l.x,y:e.y-r.scrollTop+l.y}}function H8(t,e){const n=ve(t),i=De(t),s=n.visualViewport;let o=i.clientWidth,r=i.clientHeight,l=0,a=0;if(s){o=s.width,r=s.height;const c=Oa();(c||!c&&e==="fixed")&&(l=s.offsetLeft,a=s.offsetTop)}return{width:o,height:r,x:l,y:a}}function I8(t){var e;const n=De(t),i=ts(t),s=(e=t.ownerDocument)==null?void 0:e.body,o=Jn(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=Jn(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0);let l=-i.scrollLeft+Da(t);const a=-i.scrollTop;return Oe(s||n).direction==="rtl"&&(l+=Jn(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:l,y:a}}function ja(t){const e=Fa(t);return["html","body","#document"].includes(we(e))?t.ownerDocument.body:de(e)&&Yi(e)?e:ja(e)}function es(t,e){var n;e===void 0&&(e=[]);const i=ja(t),s=i===((n=t.ownerDocument)==null?void 0:n.body),o=ve(i),r=s?[o].concat(o.visualViewport||[],Yi(i)?i:[]):i,l=e.concat(r);return s?l:l.concat(es(r))}function O8(t,e){const n=e.getRootNode==null?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&Xi(n)){let i=e;do{if(i&&t===i)return!0;i=i.parentNode||i.host}while(i)}return!1}function N8(t,e){const n=be(t,!1,e==="fixed"),i=n.top+t.clientTop,s=n.left+t.clientLeft;return{top:i,left:s,x:s,y:i,right:s+t.clientWidth,bottom:i+t.clientHeight,width:t.clientWidth,height:t.clientHeight}}function Wa(t,e,n){return e==="viewport"?Kn(H8(t,n)):Ne(e)?N8(e,n):Kn(I8(De(t)))}function D8(t){const e=es(t),n=["absolute","fixed"].includes(Oe(t).position)&&de(t)?Bo(t):t;return Ne(n)?e.filter(i=>Ne(i)&&O8(i,n)&&we(i)!=="body"):[]}function F8(t){let{element:e,boundary:n,rootBoundary:i,strategy:s}=t;const o=[...n==="clippingAncestors"?D8(e):[].concat(n),i],r=o[0],l=o.reduce((a,c)=>{const u=Wa(e,c,s);return a.top=Jn(u.top,a.top),a.right=Na(u.right,a.right),a.bottom=Na(u.bottom,a.bottom),a.left=Jn(u.left,a.left),a},Wa(e,r,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}const V8={getClippingRect:F8,convertOffsetParentRelativeRectToViewportRelativeRect:B8,isElement:Ne,getDimensions:Ua,getOffsetParent:Bo,getDocumentElement:De,getElementRects:t=>{let{reference:e,floating:n,strategy:i}=t;return{reference:A8(e,Bo(n),i),floating:{...Ua(n),x:0,y:0}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>Oe(t).direction==="rtl"};function U8(t,e,n,i){i===void 0&&(i={});const{ancestorScroll:s=!0,ancestorResize:o=!0,elementResize:r=!0,animationFrame:l=!1}=i,a=s&&!l,c=o&&!l,u=a||c?[...Ne(t)?es(t):[],...es(e)]:[];u.forEach(_=>{a&&_.addEventListener("scroll",n,{passive:!0}),c&&_.addEventListener("resize",n)});let f=null;if(r){let _=!0;f=new ResizeObserver(()=>{_||n(),_=!1}),Ne(t)&&!l&&f.observe(t),f.observe(e)}let d,m=l?be(t):null;l&&g();function g(){const _=be(t);m&&(_.x!==m.x||_.y!==m.y||_.width!==m.width||_.height!==m.height)&&n(),m=_,d=requestAnimationFrame(g)}return n(),()=>{var _;u.forEach(C=>{a&&C.removeEventListener("scroll",n),c&&C.removeEventListener("resize",n)}),(_=f)==null||_.disconnect(),f=null,l&&cancelAnimationFrame(d)}}const j8=(t,e,n)=>m8(t,e,{platform:V8,...n}),W8={id:{type:String,default:null},reference:{type:HTMLElement,default:null},trigger:{type:String,default:"hover"},placement:{type:String,default:null},size:{type:String,default:"small"},type:{type:String,default:"dark"},title:{type:String,required:!0},description:{type:String,default:null},buttons:{type:Array,default:null},container:{type:Boolean,default:null}},Z8=lt({name:"Tooltip",props:W8,emits:["close"],data(){return{isOpen:!1,options:pn("tooltipOptions",null),cleanupAutoUpdate:null}},computed:{defaultButtonType(){return this.type==="light"?"primary":"secondary"},disableTeleport(){var t;return((t=this.options)==null?void 0:t.container)===!1||this.container===!1},popperPlacement(){var t,e,n;return(n=(e=this.placement)!=null?e:(t=this.options)==null?void 0:t.placement)!=null?n:"top"}},beforeUnmount(){var t;(t=this.cleanupAutoUpdate)==null||t.call(this)},methods:{markRaw:kn,initialize(){var t,e;const n=this.$refs.tooltip,i=(t=this.reference)!=null?t:this.$refs["tooltip-holder"];(e=this.cleanupAutoUpdate)==null||e.call(this),this.cleanupAutoUpdate=U8(i,n,async()=>{const s=await j8(i,n,{placement:this.popperPlacement,middleware:[S8(),T8(),$8(()=>({mainAxis:10}))]});n.setAttribute("data-placement",s.placement),Object.assign(n.style,{left:"0",top:"0",transform:`translate(${Math.round(s.x)}px,${Math.round(s.y)}px)`})})},async buttonClick(t){typeof t.onClick=="function"?t.onClick()&&this.$emit("close"):this.$emit("close")},open(t){this.trigger===t&&(this.isOpen=!0,this.initialize())},close(t){var e;this.trigger===t&&((e=this.cleanupAutoUpdate)==null||e.call(this),this.isOpen=!1)},toggle(t){if(this.isOpen){this.close(t);return}this.open(t)},click(){this.toggle("click")}}}),z8=(t,e)=>{const n=t.__vccOpts||t;for(const[i,s]of e)n[i]=s;return n},q8=["id","data-type","data-size"],K8={class:"tooltip-container"},J8={class:"title"},Q8=["innerHTML"],X8={key:0,class:"mt-4 flex"},Y8=["data-type","data-size","onClick"];function G8(t,e,n,i,s,o){var r,l;return v(),x("span",null,[p("span",{onMouseenter:e[1]||(e[1]=Js(()=>t.open("hover"),["prevent"])),onMouseleave:e[2]||(e[2]=Js(()=>t.close("hover"),["prevent"]))},[p("span",{ref:"tooltip-holder",class:"tooltip-holder",onClick:e[0]||(e[0]=(...a)=>t.click&&t.click(...a))},[ki(t.$slots,"default")],512)],32),(v(),pt(Dc,{disabled:t.disableTeleport,to:"#tooltip-container"},[(r=t.options)!=null&&r.template?Ft((v(),pt(xi((l=t.options)==null?void 0:l.template),nl({key:0,ref:"tooltip"},{...t.$props,...t.$attrs}),null,16)),[[Pe,t.isOpen]]):Ft((v(),x("div",{key:1,id:t.id,ref:"tooltip","data-type":t.type,"data-size":t.size,class:"tooltip",style:{width:"fit-content"}},[p("div",K8,[p("div",null,[p("p",J8,[ki(t.$slots,"title",{},()=>[me(N(t.title),1)])]),ki(t.$slots,"description",{},()=>[t.description?(v(),x("p",{key:0,class:"description",style:{"font-size":"calc(100% - .2rem)"},innerHTML:t.description},null,8,Q8)):st("",!0)]),ki(t.$slots,"actions",{},()=>[t.buttons&&t.buttons.length>0?(v(),x("div",X8,[(v(!0),x(gt,null,Kt(t.buttons,(a,c)=>{var u,f;return v(),x("button",{key:`toast-button-${c}`,"data-type":(u=a.type)!=null?u:t.defaultButtonType,"data-size":(f=a.size)!=null?f:t.size,class:"cursor-pointer mr-2",onClick:d=>t.buttonClick(a)},N(a.title),9,Y8)}),128))])):st("",!0)])])])],8,q8)),[[Pe,t.isOpen]])],8,["disabled"]))])}const t5=z8(Z8,[["render",G8]]),Za={install:(t,e={})=>{var n,i,s,o,r;if(typeof(e==null?void 0:e.container)=="object"&&((n=e==null?void 0:e.container)==null?void 0:n.enabled)!==!1||(e==null?void 0:e.container)!==!1){let a="tooltip-container",c=document.createElement("div");typeof(e==null?void 0:e.container)=="object"&&typeof((i=e==null?void 0:e.container)==null?void 0:i.ref)=="string"&&(a=(s=e==null?void 0:e.container)==null?void 0:s.ref),c.setAttribute("id",a),typeof(e==null?void 0:e.container)=="object"&&((o=e==null?void 0:e.container)==null?void 0:o.ref)instanceof HTMLDivElement&&(c=(r=e==null?void 0:e.container)==null?void 0:r.ref),document.body.append(c)}t.config.globalProperties.$tooltipOptions=e,t.provide("tooltipOptions",e);const l={};t.directive("tooltip",{mounted(a,c,u){const f=g8(),d=al(t5,{id:f,title:c.value},{default:()=>u.children});a.dataset.tooltipId=f;const m=Ai(d);m.mount(a),l[f]=m},unmounted(a){var c;const u=a.dataset.tooltipId;u&&((c=l[u])==null||c.unmount())}})}},Z5="",za={},Ho=_1(),qa="tiunPaymentSnippet",e5="tiunBadgeSnippet";let Yt=null,Ye=null,wn=null,ns;const Ka=Y(()=>go==="true");document.readyState==="loading"?document.addEventListener("DOMContentLoaded",Ja):Ja();function Ja(){Ka.value?(s5(),Qa()):n5()}function n5(){let t=document.getElementById(ho);t||(t=document.createElement("div"),t.id=ho,t.classList.add("tiun-html"),document.body.appendChild(t)),ns=new MutationObserver(n=>{for(const i of n)i.type==="childList"&&i5()});const e={childList:!0,subtree:!0};ns.observe(document.body,e),Ye=Ai(Q2),Ye.use(Ho),Ye.use(Za,za),Ye.directive("ripple",Ro),Ye.mount(t)}function i5(){const t=document.getElementById(qa);t&&!Yt?Qa():!t&&Yt&&o5()}function Qa(){const t=document.getElementById(qa);if(t&&(t.classList.add("tiun-html"),Yt=Ai(l8),Yt.use(Ho),Yt.directive("ripple",Ro),Yt.use(Za,za),Yt.mount(t),Ka.value)){const e=vt();e.fetchingInfo=!0}}function s5(){const t=document.getElementById(e5);t&&(t.classList.add("tiun-html"),wn=Ai(c8),wn.use(Ho),wn.directive("ripple",Ro),wn.mount(t))}function o5(){Yt&&(Yt.unmount(),Yt=null)}function r5(){ns&&ns.disconnect(),Yt&&Yt.unmount(),wn&&wn.unmount(),Ye&&Ye.unmount()}window.unloadMyApp=r5});