const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Ln7rX35I.js","./CYoLS9UK.js","./C0TgxKCE.js","./D8QnjlJE.js","./K9rVtodC.js","./BUHdFb8H.js","./ohHnq9Jx.js","./RConsentCookiesList.COnd9Xus.css","./CJ1pMV_X.js","./BbB25lLZ.js","./B-Nsz0e3.js","./dCVxfagP.js","./BloczekFakultet.Bckpezil.css","./index.I5I-QUE3.css","./ovA0HoqW.js","./index.DtEG5xXg.css","./CDF-4pa3.js","./BzUkiJVO.js","./DFRPcNgb.js","./queryString.D3ICUdQY.css","./nG3zZPnc.js","./Db3yOTZ9.js","./Drawer.CFHXJzUu.css","./index.CN9xv2hB.css","./CKuhdeWa.js","./Bw2Wi6sy.js","./index.B2g_1Uf3.css","./nAQ6bIKw.js","./NLHugjKc.js","./Szukaj.mHAPs0QY.css","./C9qOKhBH.js","./index.MNIidT3S.css","./index.nK9tVjwR.css","./DFyAYypg.js","./iqLXldPD.js","./CDkFGvx8.js","./B-pNyxpP.js","./default.3pGPl_rE.css"])))=>i.map(i=>d[i]);
/**
* @vue/shared v3.4.33
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**//*! #__NO_SIDE_EFFECTS__ */function Wf(e,t){const n=new Set(e.split(","));return r=>n.has(r)}const Ze={},vi=[],un=()=>{},Dk=()=>!1,ca=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Kf=e=>e.startsWith("onUpdate:"),ht=Object.assign,Gf=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Nk=Object.prototype.hasOwnProperty,Pe=(e,t)=>Nk.call(e,t),me=Array.isArray,yi=e=>ua(e)==="[object Map]",fy=e=>ua(e)==="[object Set]",Mk=e=>ua(e)==="[object RegExp]",ye=e=>typeof e=="function",tt=e=>typeof e=="string",is=e=>typeof e=="symbol",Ye=e=>e!==null&&typeof e=="object",qf=e=>(Ye(e)||ye(e))&&ye(e.then)&&ye(e.catch),py=Object.prototype.toString,ua=e=>py.call(e),$k=e=>ua(e).slice(8,-1),hy=e=>ua(e)==="[object Object]",Yf=e=>tt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,wi=Wf(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),mc=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},xk=/-(\w)/g,Cn=mc(e=>e.replace(xk,(t,n)=>n?n.toUpperCase():"")),Uk=/\B([A-Z])/g,os=mc(e=>e.replace(Uk,"-$1").toLowerCase()),_c=mc(e=>e.charAt(0).toUpperCase()+e.slice(1)),su=mc(e=>e?`on${_c(e)}`:""),rs=(e,t)=>!Object.is(e,t),bi=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},gy=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},sd=e=>{const t=parseFloat(e);return isNaN(t)?e:t},my=e=>{const t=tt(e)?Number(e):NaN;return isNaN(t)?e:t};let Nh;const _y=()=>Nh||(Nh=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function pn(e){if(me(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=tt(r)?jk(r):pn(r);if(s)for(const i in s)t[i]=s[i]}return t}else if(tt(e)||Ye(e))return e}const Fk=/;(?![^(]*\))/g,Bk=/:([^]+)/,Hk=/\/\*[^]*?\*\//g;function jk(e){const t={};return e.replace(Hk,"").split(Fk).forEach(n=>{if(n){const r=n.split(Bk);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Ee(e){let t="";if(tt(e))t=e;else if(me(e))for(let n=0;n<e.length;n++){const r=Ee(e[n]);r&&(t+=r+" ")}else if(Ye(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function St(e){if(!e)return null;let{class:t,style:n}=e;return t&&!tt(t)&&(e.class=Ee(t)),n&&(e.style=pn(n)),e}const zk="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Vk=Wf(zk);function vy(e){return!!e||e===""}const yy=e=>!!(e&&e.__v_isRef===!0),Ve=e=>tt(e)?e:e==null?"":me(e)||Ye(e)&&(e.toString===py||!ye(e.toString))?yy(e)?Ve(e.value):JSON.stringify(e,wy,2):String(e),wy=(e,t)=>yy(t)?wy(e,t.value):yi(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[iu(r,i)+" =>"]=s,n),{})}:fy(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>iu(n))}:is(t)?iu(t):Ye(t)&&!me(t)&&!hy(t)?String(t):t,iu=(e,t="")=>{var n;return is(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
* @vue/reactivity v3.4.33
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Gt;class by{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Gt,!t&&Gt&&(this.index=(Gt.scopes||(Gt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Gt;try{return Gt=this,t()}finally{Gt=n}}}on(){Gt=this}off(){Gt=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0,this._active=!1}}}function eo(e){return new by(e)}function Wk(e,t=Gt){t&&t.active&&t.effects.push(e)}function Vs(){return Gt}function Ps(e){Gt&&Gt.cleanups.push(e)}let Is;class Jf{constructor(t,n,r,s){this.fn=t,this.trigger=n,this.scheduler=r,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,Wk(this,s)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,as();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(Kk(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),ls()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Jr,n=Is;try{return Jr=!0,Is=this,this._runnings++,Mh(this),this.fn()}finally{$h(this),this._runnings--,Is=n,Jr=t}}stop(){this.active&&(Mh(this),$h(this),this.onStop&&this.onStop(),this.active=!1)}}function Kk(e){return e.value}function Mh(e){e._trackId++,e._depsLength=0}function $h(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Ey(e.deps[t],e);e.deps.length=e._depsLength}}function Ey(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let Jr=!0,id=0;const Ty=[];function as(){Ty.push(Jr),Jr=!1}function ls(){const e=Ty.pop();Jr=e===void 0?!0:e}function Xf(){id++}function Zf(){for(id--;!id&&od.length;)od.shift()()}function Sy(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const r=e.deps[e._depsLength];r!==t?(r&&Ey(r,e),e.deps[e._depsLength++]=t):e._depsLength++}}const od=[];function ky(e,t,n){Xf();for(const r of e.keys()){let s;r._dirtyLevel<t&&(s??(s=e.get(r)===r._trackId))&&(r._shouldSchedule||(r._shouldSchedule=r._dirtyLevel===0),r._dirtyLevel=t),r._shouldSchedule&&(s??(s=e.get(r)===r._trackId))&&(r.trigger(),(!r._runnings||r.allowRecurse)&&r._dirtyLevel!==2&&(r._shouldSchedule=!1,r.scheduler&&od.push(r.scheduler)))}Zf()}const Iy=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Cl=new WeakMap,Rs=Symbol(""),ad=Symbol("");function Bt(e,t,n){if(Jr&&Is){let r=Cl.get(e);r||Cl.set(e,r=new Map);let s=r.get(n);s||r.set(n,s=Iy(()=>r.delete(n))),Sy(Is,s)}}function pr(e,t,n,r,s,i){const o=Cl.get(e);if(!o)return;let a=[];if(t==="clear")a=[...o.values()];else if(n==="length"&&me(e)){const l=Number(r);o.forEach((c,u)=>{(u==="length"||!is(u)&&u>=l)&&a.push(c)})}else switch(n!==void 0&&a.push(o.get(n)),t){case"add":me(e)?Yf(n)&&a.push(o.get("length")):(a.push(o.get(Rs)),yi(e)&&a.push(o.get(ad)));break;case"delete":me(e)||(a.push(o.get(Rs)),yi(e)&&a.push(o.get(ad)));break;case"set":yi(e)&&a.push(o.get(Rs));break}Xf();for(const l of a)l&&ky(l,4);Zf()}function Gk(e,t){const n=Cl.get(e);return n&&n.get(t)}const qk=Wf("__proto__,__v_isRef,__isVue"),Ry=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(is)),xh=Yk();function Yk(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=Ie(this);for(let i=0,o=this.length;i<o;i++)Bt(r,"get",i+"");const s=r[t](...n);return s===-1||s===!1?r[t](...n.map(Ie)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){as(),Xf();const r=Ie(this)[t].apply(this,n);return Zf(),ls(),r}}),e}function Jk(e){is(e)||(e=String(e));const t=Ie(this);return Bt(t,"has",e),t.hasOwnProperty(e)}class Cy{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?cI:Ly:i?Py:Oy).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=me(t);if(!s){if(o&&Pe(xh,n))return Reflect.get(xh,n,r);if(n==="hasOwnProperty")return Jk}const a=Reflect.get(t,n,r);return(is(n)?Ry.has(n):qk(n))||(s||Bt(t,"get",n),i)?a:xe(a)?o&&Yf(n)?a:a.value:Ye(a)?s?Ni(a):gn(a):a}}class Ay extends Cy{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];if(!this._isShallow){const l=ss(i);if(!Mi(r)&&!ss(r)&&(i=Ie(i),r=Ie(r)),!me(t)&&xe(i)&&!xe(r))return l?!1:(i.value=r,!0)}const o=me(t)&&Yf(n)?Number(n)<t.length:Pe(t,n),a=Reflect.set(t,n,r,s);return t===Ie(s)&&(o?rs(r,i)&&pr(t,"set",n,r):pr(t,"add",n,r)),a}deleteProperty(t,n){const r=Pe(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&pr(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!is(n)||!Ry.has(n))&&Bt(t,"has",n),r}ownKeys(t){return Bt(t,"iterate",me(t)?"length":Rs),Reflect.ownKeys(t)}}class Xk extends Cy{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Zk=new Ay,Qk=new Xk,eI=new Ay(!0);const Qf=e=>e,vc=e=>Reflect.getPrototypeOf(e);function Da(e,t,n=!1,r=!1){e=e.__v_raw;const s=Ie(e),i=Ie(t);n||(rs(t,i)&&Bt(s,"get",t),Bt(s,"get",i));const{has:o}=vc(s),a=r?Qf:n?rp:zo;if(o.call(s,t))return a(e.get(t));if(o.call(s,i))return a(e.get(i));e!==s&&e.get(t)}function Na(e,t=!1){const n=this.__v_raw,r=Ie(n),s=Ie(e);return t||(rs(e,s)&&Bt(r,"has",e),Bt(r,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function Ma(e,t=!1){return e=e.__v_raw,!t&&Bt(Ie(e),"iterate",Rs),Reflect.get(e,"size",e)}function Uh(e,t=!1){!t&&!Mi(e)&&!ss(e)&&(e=Ie(e));const n=Ie(this);return vc(n).has.call(n,e)||(n.add(e),pr(n,"add",e,e)),this}function Fh(e,t,n=!1){!n&&!Mi(t)&&!ss(t)&&(t=Ie(t));const r=Ie(this),{has:s,get:i}=vc(r);let o=s.call(r,e);o||(e=Ie(e),o=s.call(r,e));const a=i.call(r,e);return r.set(e,t),o?rs(t,a)&&pr(r,"set",e,t):pr(r,"add",e,t),this}function Bh(e){const t=Ie(this),{has:n,get:r}=vc(t);let s=n.call(t,e);s||(e=Ie(e),s=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return s&&pr(t,"delete",e,void 0),i}function Hh(){const e=Ie(this),t=e.size!==0,n=e.clear();return t&&pr(e,"clear",void 0,void 0),n}function $a(e,t){return function(r,s){const i=this,o=i.__v_raw,a=Ie(o),l=t?Qf:e?rp:zo;return!e&&Bt(a,"iterate",Rs),o.forEach((c,u)=>r.call(s,l(c),l(u),i))}}function xa(e,t,n){return function(...r){const s=this.__v_raw,i=Ie(s),o=yi(i),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,c=s[e](...r),u=n?Qf:t?rp:zo;return!t&&Bt(i,"iterate",l?ad:Rs),{next(){const{value:d,done:f}=c.next();return f?{value:d,done:f}:{value:a?[u(d[0]),u(d[1])]:u(d),done:f}},[Symbol.iterator](){return this}}}}function kr(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function tI(){const e={get(i){return Da(this,i)},get size(){return Ma(this)},has:Na,add:Uh,set:Fh,delete:Bh,clear:Hh,forEach:$a(!1,!1)},t={get(i){return Da(this,i,!1,!0)},get size(){return Ma(this)},has:Na,add(i){return Uh.call(this,i,!0)},set(i,o){return Fh.call(this,i,o,!0)},delete:Bh,clear:Hh,forEach:$a(!1,!0)},n={get(i){return Da(this,i,!0)},get size(){return Ma(this,!0)},has(i){return Na.call(this,i,!0)},add:kr("add"),set:kr("set"),delete:kr("delete"),clear:kr("clear"),forEach:$a(!0,!1)},r={get(i){return Da(this,i,!0,!0)},get size(){return Ma(this,!0)},has(i){return Na.call(this,i,!0)},add:kr("add"),set:kr("set"),delete:kr("delete"),clear:kr("clear"),forEach:$a(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=xa(i,!1,!1),n[i]=xa(i,!0,!1),t[i]=xa(i,!1,!0),r[i]=xa(i,!0,!0)}),[e,n,t,r]}const[nI,rI,sI,iI]=tI();function ep(e,t){const n=t?e?iI:sI:e?rI:nI;return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(Pe(n,s)&&s in r?n:r,s,i)}const oI={get:ep(!1,!1)},aI={get:ep(!1,!0)},lI={get:ep(!0,!1)};const Oy=new WeakMap,Py=new WeakMap,Ly=new WeakMap,cI=new WeakMap;function uI(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function dI(e){return e.__v_skip||!Object.isExtensible(e)?0:uI($k(e))}function gn(e){return ss(e)?e:tp(e,!1,Zk,oI,Oy)}function sr(e){return tp(e,!1,eI,aI,Py)}function Ni(e){return tp(e,!0,Qk,lI,Ly)}function tp(e,t,n,r,s){if(!Ye(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=s.get(e);if(i)return i;const o=dI(e);if(o===0)return e;const a=new Proxy(e,o===2?r:n);return s.set(e,a),a}function hr(e){return ss(e)?hr(e.__v_raw):!!(e&&e.__v_isReactive)}function ss(e){return!!(e&&e.__v_isReadonly)}function Mi(e){return!!(e&&e.__v_isShallow)}function Dy(e){return e?!!e.__v_raw:!1}function Ie(e){const t=e&&e.__v_raw;return t?Ie(t):e}function np(e){return Object.isExtensible(e)&&gy(e,"__v_skip",!0),e}const zo=e=>Ye(e)?gn(e):e,rp=e=>Ye(e)?Ni(e):e;class Ny{constructor(t,n,r,s){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Jf(()=>t(this._value),()=>ko(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const t=Ie(this);return(!t._cacheable||t.effect.dirty)&&rs(t._value,t._value=t.effect.run())&&ko(t,4),sp(t),t.effect._dirtyLevel>=2&&ko(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function fI(e,t,n=!1){let r,s;const i=ye(e);return i?(r=e,s=un):(r=e.get,s=e.set),new Ny(r,s,i||!s,n)}function sp(e){var t;Jr&&Is&&(e=Ie(e),Sy(Is,(t=e.dep)!=null?t:e.dep=Iy(()=>e.dep=void 0,e instanceof Ny?e:void 0)))}function ko(e,t=4,n,r){e=Ie(e);const s=e.dep;s&&ky(s,t)}function xe(e){return!!(e&&e.__v_isRef===!0)}function te(e){return My(e,!1)}function tn(e){return My(e,!0)}function My(e,t){return xe(e)?e:new pI(e,t)}class pI{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Ie(t),this._value=n?t:zo(t)}get value(){return sp(this),this._value}set value(t){const n=this.__v_isShallow||Mi(t)||ss(t);t=n?t:Ie(t),rs(t,this._rawValue)&&(this._rawValue,this._rawValue=t,this._value=n?t:zo(t),ko(this,4))}}function O(e){return xe(e)?e.value:e}function u8(e){return ye(e)?e():O(e)}const hI={get:(e,t,n)=>O(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return xe(s)&&!xe(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function $y(e){return hr(e)?e:new Proxy(e,hI)}class gI{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>sp(this),()=>ko(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function xy(e){return new gI(e)}function rn(e){const t=me(e)?new Array(e.length):{};for(const n in e)t[n]=Uy(e,n);return t}class mI{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Gk(Ie(this._object),this._key)}}class _I{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function da(e,t,n){return xe(e)?e:ye(e)?new _I(e):Ye(e)&&arguments.length>1?Uy(e,t,n):te(e)}function Uy(e,t,n){const r=e[t];return xe(r)?r:new mI(e,t,n)}/**
* @vue/runtime-core v3.4.33
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Xr(e,t,n,r){try{return r?e(...r):e()}catch(s){fa(s,t,n)}}function hn(e,t,n,r){if(ye(e)){const s=Xr(e,t,n,r);return s&&qf(s)&&s.catch(i=>{fa(i,t,n)}),s}if(me(e)){const s=[];for(let i=0;i<e.length;i++)s.push(hn(e[i],t,n,r));return s}}function fa(e,t,n,r=!0){const s=t?t.vnode:null;if(t){let i=t.parent;const o=t.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const c=i.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,o,a)===!1)return}i=i.parent}const l=t.appContext.config.errorHandler;if(l){as(),Xr(l,null,10,[e,o,a]),ls();return}}vI(e,n,s,r)}function vI(e,t,n,r=!0){console.error(e)}let Vo=!1,ld=!1;const Ct=[];let Bn=0;const Ei=[];let Mr=null,ks=0;const Fy=Promise.resolve();let ip=null;function nn(e){const t=ip||Fy;return e?t.then(this?e.bind(this):e):t}function yI(e){let t=Bn+1,n=Ct.length;for(;t<n;){const r=t+n>>>1,s=Ct[r],i=Wo(s);i<e||i===e&&s.pre?t=r+1:n=r}return t}function op(e){(!Ct.length||!Ct.includes(e,Vo&&e.allowRecurse?Bn+1:Bn))&&(e.id==null?Ct.push(e):Ct.splice(yI(e.id),0,e),By())}function By(){!Vo&&!ld&&(ld=!0,ip=Fy.then(Hy))}function wI(e){const t=Ct.indexOf(e);t>Bn&&Ct.splice(t,1)}function cd(e){me(e)?Ei.push(...e):(!Mr||!Mr.includes(e,e.allowRecurse?ks+1:ks))&&Ei.push(e),By()}function jh(e,t,n=Vo?Bn+1:0){for(;n<Ct.length;n++){const r=Ct[n];if(r&&r.pre){if(e&&r.id!==e.uid)continue;Ct.splice(n,1),n--,r()}}}function Al(e){if(Ei.length){const t=[...new Set(Ei)].sort((n,r)=>Wo(n)-Wo(r));if(Ei.length=0,Mr){Mr.push(...t);return}for(Mr=t,ks=0;ks<Mr.length;ks++){const n=Mr[ks];n.active!==!1&&n()}Mr=null,ks=0}}const Wo=e=>e.id==null?1/0:e.id,bI=(e,t)=>{const n=Wo(e)-Wo(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Hy(e){ld=!1,Vo=!0,Ct.sort(bI);try{for(Bn=0;Bn<Ct.length;Bn++){const t=Ct[Bn];t&&t.active!==!1&&Xr(t,t.i,t.i?15:14)}}finally{Bn=0,Ct.length=0,Al(),Vo=!1,ip=null,(Ct.length||Ei.length)&&Hy()}}let pt=null,yc=null;function Ol(e){const t=pt;return pt=e,yc=e&&e.type.__scopeId||null,t}function wc(e){yc=e}function bc(){yc=null}function de(e,t=pt,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&sg(-1);const i=Ol(t);let o;try{o=e(...s)}finally{Ol(i),r._d&&sg(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Ls(e,t){if(pt===null)return e;const n=Rc(pt),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,o,a,l=Ze]=t[s];i&&(ye(i)&&(i={mounted:i,updated:i}),i.deep&&Hr(o),r.push({dir:i,instance:n,value:o,oldValue:void 0,arg:a,modifiers:l}))}return e}function Fn(e,t,n,r){const s=e.dirs,i=t&&t.dirs;for(let o=0;o<s.length;o++){const a=s[o];i&&(a.oldValue=i[o].value);let l=a.dir[r];l&&(as(),hn(l,n,8,[e.el,a,e,t]),ls())}}const $r=Symbol("_leaveCb"),Ua=Symbol("_enterCb");function jy(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Dt(()=>{e.isMounted=!0}),Tr(()=>{e.isUnmounting=!0}),e}const an=[Function,Array],zy={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:an,onEnter:an,onAfterEnter:an,onEnterCancelled:an,onBeforeLeave:an,onLeave:an,onAfterLeave:an,onLeaveCancelled:an,onBeforeAppear:an,onAppear:an,onAfterAppear:an,onAppearCancelled:an},Vy=e=>{const t=e.subTree;return t.component?Vy(t.component):t},EI={name:"BaseTransition",props:zy,setup(e,{slots:t}){const n=Nt(),r=jy();return()=>{const s=t.default&&ap(t.default(),!0);if(!s||!s.length)return;let i=s[0];if(s.length>1){for(const f of s)if(f.type!==Et){i=f;break}}const o=Ie(e),{mode:a}=o;if(r.isLeaving)return ou(i);const l=zh(i);if(!l)return ou(i);let c=Ko(l,o,r,n,f=>c=f);Ds(l,c);const u=n.subTree,d=u&&zh(u);if(d&&d.type!==Et&&!Tn(l,d)&&Vy(n).type!==Et){const f=Ko(d,o,r,n);if(Ds(d,f),a==="out-in"&&l.type!==Et)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},ou(i);a==="in-out"&&l.type!==Et&&(f.delayLeave=(p,g,v)=>{const w=Wy(r,d);w[String(d.key)]=d,p[$r]=()=>{g(),p[$r]=void 0,delete c.delayedLeave},c.delayedLeave=v})}return i}}},TI=EI;function Wy(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Ko(e,t,n,r,s){const{appear:i,mode:o,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:p,onAfterLeave:g,onLeaveCancelled:v,onBeforeAppear:w,onAppear:y,onAfterAppear:m,onAppearCancelled:h}=t,_=String(e.key),b=Wy(n,e),E=(A,D)=>{A&&hn(A,r,9,D)},R=(A,D)=>{const L=D[1];E(A,D),me(A)?A.every(N=>N.length<=1)&&L():A.length<=1&&L()},S={mode:o,persisted:a,beforeEnter(A){let D=l;if(!n.isMounted)if(i)D=w||l;else return;A[$r]&&A[$r](!0);const L=b[_];L&&Tn(e,L)&&L.el[$r]&&L.el[$r](),E(D,[A])},enter(A){let D=c,L=u,N=d;if(!n.isMounted)if(i)D=y||c,L=m||u,N=h||d;else return;let x=!1;const W=A[Ua]=ee=>{x||(x=!0,ee?E(N,[A]):E(L,[A]),S.delayedLeave&&S.delayedLeave(),A[Ua]=void 0)};D?R(D,[A,W]):W()},leave(A,D){const L=String(e.key);if(A[Ua]&&A[Ua](!0),n.isUnmounting)return D();E(f,[A]);let N=!1;const x=A[$r]=W=>{N||(N=!0,D(),W?E(v,[A]):E(g,[A]),A[$r]=void 0,b[L]===e&&delete b[L])};b[L]=e,p?R(p,[A,x]):x()},clone(A){const D=Ko(A,t,n,r,s);return s&&s(D),D}};return S}function ou(e){if(Ec(e))return e=mr(e),e.children=null,e}function zh(e){if(!Ec(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&ye(n.default))return n.default()}}function Ds(e,t){e.shapeFlag&6&&e.component?Ds(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ap(e,t=!1,n){let r=[],s=0;for(let i=0;i<e.length;i++){let o=e[i];const a=n==null?o.key:String(n)+String(o.key!=null?o.key:i);o.type===Ce?(o.patchFlag&128&&s++,r=r.concat(ap(o.children,t,a))):(t||o.type!==Et)&&r.push(a!=null?mr(o,{key:a}):o)}if(s>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}/*! #__NO_SIDE_EFFECTS__ */function pe(e,t){return ye(e)?ht({name:e.name},t,{setup:e}):e}const Cs=e=>!!e.type.__asyncLoader,Ec=e=>e.type.__isKeepAlive,SI={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Nt(),r=n.ctx;if(!r.renderer)return()=>{const m=t.default&&t.default();return m&&m.length===1?m[0]:m};const s=new Map,i=new Set;let o=null;const a=n.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:d}}}=r,f=d("div");r.activate=(m,h,_,b,E)=>{const R=m.component;c(m,h,_,0,a),l(R.vnode,m,h,_,R,a,b,m.slotScopeIds,E),vt(()=>{R.isDeactivated=!1,R.a&&bi(R.a);const S=m.props&&m.props.onVnodeMounted;S&&xt(S,R.parent,m)},a)},r.deactivate=m=>{const h=m.component;Nl(h.m),Nl(h.a),c(m,f,null,1,a),vt(()=>{h.da&&bi(h.da);const _=m.props&&m.props.onVnodeUnmounted;_&&xt(_,h.parent,m),h.isDeactivated=!0},a)};function p(m){au(m),u(m,n,a,!0)}function g(m){s.forEach((h,_)=>{const b=wd(h.type);b&&(!m||!m(b))&&v(_)})}function v(m){const h=s.get(m);!o||!Tn(h,o)?p(h):o&&au(o),s.delete(m),i.delete(m)}Se(()=>[e.include,e.exclude],([m,h])=>{m&&g(_=>wo(m,_)),h&&g(_=>!wo(h,_))},{flush:"post",deep:!0});let w=null;const y=()=>{w!=null&&(gd(n.subTree.type)?vt(()=>{s.set(w,Fa(n.subTree))},n.subTree.suspense):s.set(w,Fa(n.subTree)))};return Dt(y),up(y),Tr(()=>{s.forEach(m=>{const{subTree:h,suspense:_}=n,b=Fa(h);if(m.type===b.type&&m.key===b.key){au(b);const E=b.component.da;E&&vt(E,_);return}p(m)})}),()=>{if(w=null,!t.default)return null;const m=t.default(),h=m[0];if(m.length>1)return o=null,m;if(!xi(h)||!(h.shapeFlag&4)&&!(h.shapeFlag&128))return o=null,h;let _=Fa(h);const b=_.type,E=wd(Cs(_)?_.type.__asyncResolved||{}:b),{include:R,exclude:S,max:A}=e;if(R&&(!E||!wo(R,E))||S&&E&&wo(S,E))return o=_,h;const D=_.key==null?b:_.key,L=s.get(D);return _.el&&(_=mr(_),h.shapeFlag&128&&(h.ssContent=_)),w=D,L?(_.el=L.el,_.component=L.component,_.transition&&Ds(_,_.transition),_.shapeFlag|=512,i.delete(D),i.add(D)):(i.add(D),A&&i.size>parseInt(A,10)&&v(i.values().next().value)),_.shapeFlag|=256,o=_,gd(h.type)?h:_}}},kI=SI;function wo(e,t){return me(e)?e.some(n=>wo(n,t)):tt(e)?e.split(",").includes(t):Mk(e)?e.test(t):!1}function lp(e,t){Ky(e,"a",t)}function cp(e,t){Ky(e,"da",t)}function Ky(e,t,n=yt){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Tc(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Ec(s.parent.vnode)&&II(r,t,n,s),s=s.parent}}function II(e,t,n,r){const s=Tc(t,e,r,!0);to(()=>{Gf(r[t],s)},n)}function au(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Fa(e){return e.shapeFlag&128?e.ssContent:e}function Tc(e,t,n=yt,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{as();const a=Ns(n),l=hn(t,n,e,o);return a(),ls(),l});return r?s.unshift(i):s.push(i),i}}const Er=e=>(t,n=yt)=>{(!Ic||e==="sp")&&Tc(e,(...r)=>t(...r),n)},Gy=Er("bm"),Dt=Er("m"),RI=Er("bu"),up=Er("u"),Tr=Er("bum"),to=Er("um"),CI=Er("sp"),AI=Er("rtg"),OI=Er("rtc");function qy(e,t=yt){Tc("ec",e,t)}const dp="components",PI="directives";function d8(e,t){return pp(dp,e,!0,t)||e}const Yy=Symbol.for("v-ndc");function cs(e){return tt(e)?pp(dp,e,!1)||e:e||Yy}function fp(e){return pp(PI,e)}function pp(e,t,n=!0,r=!1){const s=pt||yt;if(s){const i=s.type;if(e===dp){const a=wd(i,!1);if(a&&(a===t||a===Cn(t)||a===_c(Cn(t))))return i}const o=Vh(s[e]||i[e],t)||Vh(s.appContext[e],t);return!o&&r?i:o}}function Vh(e,t){return e&&(e[t]||e[Cn(t)]||e[_c(Cn(t))])}function dn(e,t,n,r){let s;const i=n;if(me(e)||tt(e)){s=new Array(e.length);for(let o=0,a=e.length;o<a;o++)s[o]=t(e[o],o,void 0,i)}else if(typeof e=="number"){s=new Array(e);for(let o=0;o<e;o++)s[o]=t(o+1,o,void 0,i)}else if(Ye(e))if(e[Symbol.iterator])s=Array.from(e,(o,a)=>t(o,a,void 0,i));else{const o=Object.keys(e);s=new Array(o.length);for(let a=0,l=o.length;a<l;a++){const c=o[a];s[a]=t(e[c],c,a,i)}}else s=[];return s}function Jy(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(me(r))for(let s=0;s<r.length;s++)e[r[s].name]=r[s].fn;else r&&(e[r.name]=r.key?(...s)=>{const i=r.fn(...s);return i&&(i.key=r.key),i}:r.fn)}return e}function Te(e,t,n={},r,s){if(pt.isCE||pt.parent&&Cs(pt.parent)&&pt.parent.isCE)return t!=="default"&&(n.name=t),Q("slot",n,r&&r());let i=e[t];i&&i._c&&(i._d=!1),$();const o=i&&Xy(i(n)),a=se(Ce,{key:(n.key||o&&o.key||`_${t}`)+(!o&&r?"_fb":"")},o||(r?r():[]),o&&e._===1?64:-2);return!s&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),i&&i._c&&(i._d=!0),a}function Xy(e){return e.some(t=>xi(t)?!(t.type===Et||t.type===Ce&&!Xy(t.children)):!0)?e:null}const ud=e=>e?Sw(e)?Rc(e):ud(e.parent):null,Io=ht(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ud(e.parent),$root:e=>ud(e.root),$emit:e=>e.emit,$options:e=>hp(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,op(e.update)}),$nextTick:e=>e.n||(e.n=nn.bind(e.proxy)),$watch:e=>o0.bind(e)}),lu=(e,t)=>e!==Ze&&!e.__isScriptSetup&&Pe(e,t),LI={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:i,accessCache:o,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const p=o[t];if(p!==void 0)switch(p){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(lu(r,t))return o[t]=1,r[t];if(s!==Ze&&Pe(s,t))return o[t]=2,s[t];if((c=e.propsOptions[0])&&Pe(c,t))return o[t]=3,i[t];if(n!==Ze&&Pe(n,t))return o[t]=4,n[t];dd&&(o[t]=0)}}const u=Io[t];let d,f;if(u)return t==="$attrs"&&Bt(e.attrs,"get",""),u(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==Ze&&Pe(n,t))return o[t]=4,n[t];if(f=l.config.globalProperties,Pe(f,t))return f[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return lu(s,t)?(s[t]=n,!0):r!==Ze&&Pe(r,t)?(r[t]=n,!0):Pe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:i}},o){let a;return!!n[o]||e!==Ze&&Pe(e,o)||lu(t,o)||(a=i[0])&&Pe(a,o)||Pe(r,o)||Pe(Io,o)||Pe(s.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Pe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function DI(){return Zy().slots}function NI(){return Zy().attrs}function Zy(){const e=Nt();return e.setupContext||(e.setupContext=Iw(e))}function Wh(e){return me(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Qy(e){const t=Nt();let n=e();return vd(),qf(n)&&(n=n.catch(r=>{throw Ns(t),r})),[n,()=>Ns(t)]}let dd=!0;function MI(e){const t=hp(e),n=e.proxy,r=e.ctx;dd=!1,t.beforeCreate&&Kh(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:a,provide:l,inject:c,created:u,beforeMount:d,mounted:f,beforeUpdate:p,updated:g,activated:v,deactivated:w,beforeDestroy:y,beforeUnmount:m,destroyed:h,unmounted:_,render:b,renderTracked:E,renderTriggered:R,errorCaptured:S,serverPrefetch:A,expose:D,inheritAttrs:L,components:N,directives:x,filters:W}=t;if(c&&$I(c,r,null),o)for(const ce in o){const oe=o[ce];ye(oe)&&(r[ce]=oe.bind(n))}if(s){const ce=s.call(n,n);Ye(ce)&&(e.data=gn(ce))}if(dd=!0,i)for(const ce in i){const oe=i[ce],Xe=ye(oe)?oe.bind(n,n):ye(oe.get)?oe.get.bind(n,n):un,nt=!ye(oe)&&ye(oe.set)?oe.set.bind(n):un,Je=z({get:Xe,set:nt});Object.defineProperty(r,ce,{enumerable:!0,configurable:!0,get:()=>Je.value,set:He=>Je.value=He})}if(a)for(const ce in a)ew(a[ce],r,n,ce);if(l){const ce=ye(l)?l.call(n):l;Reflect.ownKeys(ce).forEach(oe=>{Wn(oe,ce[oe])})}u&&Kh(u,e,"c");function K(ce,oe){me(oe)?oe.forEach(Xe=>ce(Xe.bind(n))):oe&&ce(oe.bind(n))}if(K(Gy,d),K(Dt,f),K(RI,p),K(up,g),K(lp,v),K(cp,w),K(qy,S),K(OI,E),K(AI,R),K(Tr,m),K(to,_),K(CI,A),me(D))if(D.length){const ce=e.exposed||(e.exposed={});D.forEach(oe=>{Object.defineProperty(ce,oe,{get:()=>n[oe],set:Xe=>n[oe]=Xe})})}else e.exposed||(e.exposed={});b&&e.render===un&&(e.render=b),L!=null&&(e.inheritAttrs=L),N&&(e.components=N),x&&(e.directives=x)}function $I(e,t,n=un){me(e)&&(e=fd(e));for(const r in e){const s=e[r];let i;Ye(s)?"default"in s?i=et(s.from||r,s.default,!0):i=et(s.from||r):i=et(s),xe(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function Kh(e,t,n){hn(me(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function ew(e,t,n,r){const s=r.includes(".")?_w(n,r):()=>n[r];if(tt(e)){const i=t[e];ye(i)&&Se(s,i)}else if(ye(e))Se(s,e.bind(n));else if(Ye(e))if(me(e))e.forEach(i=>ew(i,t,n,r));else{const i=ye(e.handler)?e.handler.bind(n):t[e.handler];ye(i)&&Se(s,i,e)}}function hp(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,a=i.get(t);let l;return a?l=a:!s.length&&!n&&!r?l=t:(l={},s.length&&s.forEach(c=>Pl(l,c,o,!0)),Pl(l,t,o)),Ye(t)&&i.set(t,l),l}function Pl(e,t,n,r=!1){const{mixins:s,extends:i}=t;i&&Pl(e,i,n,!0),s&&s.forEach(o=>Pl(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const a=xI[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const xI={data:Gh,props:qh,emits:qh,methods:bo,computed:bo,beforeCreate:Pt,created:Pt,beforeMount:Pt,mounted:Pt,beforeUpdate:Pt,updated:Pt,beforeDestroy:Pt,beforeUnmount:Pt,destroyed:Pt,unmounted:Pt,activated:Pt,deactivated:Pt,errorCaptured:Pt,serverPrefetch:Pt,components:bo,directives:bo,watch:FI,provide:Gh,inject:UI};function Gh(e,t){return t?e?function(){return ht(ye(e)?e.call(this,this):e,ye(t)?t.call(this,this):t)}:t:e}function UI(e,t){return bo(fd(e),fd(t))}function fd(e){if(me(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Pt(e,t){return e?[...new Set([].concat(e,t))]:t}function bo(e,t){return e?ht(Object.create(null),e,t):t}function qh(e,t){return e?me(e)&&me(t)?[...new Set([...e,...t])]:ht(Object.create(null),Wh(e),Wh(t??{})):t}function FI(e,t){if(!e)return t;if(!t)return e;const n=ht(Object.create(null),e);for(const r in t)n[r]=Pt(e[r],t[r]);return n}function tw(){return{app:null,config:{isNativeTag:Dk,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 BI=0;function HI(e,t){return function(r,s=null){ye(r)||(r=ht({},r)),s!=null&&!Ye(s)&&(s=null);const i=tw(),o=new WeakSet;let a=!1;const l=i.app={_uid:BI++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:Rw,get config(){return i.config},set config(c){},use(c,...u){return o.has(c)||(c&&ye(c.install)?(o.add(c),c.install(l,...u)):ye(c)&&(o.add(c),c(l,...u))),l},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),l},component(c,u){return u?(i.components[c]=u,l):i.components[c]},directive(c,u){return u?(i.directives[c]=u,l):i.directives[c]},mount(c,u,d){if(!a){const f=Q(r,s);return f.appContext=i,d===!0?d="svg":d===!1&&(d=void 0),u&&t?t(f,c):e(f,c,d),a=!0,l._container=c,c.__vue_app__=l,Rc(f.component)}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(c,u){return i.provides[c]=u,l},runWithContext(c){const u=Ti;Ti=l;try{return c()}finally{Ti=u}}};return l}}let Ti=null;function Wn(e,t){if(yt){let n=yt.provides;const r=yt.parent&&yt.parent.provides;r===n&&(n=yt.provides=Object.create(r)),n[e]=t}}function et(e,t,n=!1){const r=yt||pt;if(r||Ti){const s=r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:Ti._context.provides;if(s&&e in s)return s[e];if(arguments.length>1)return n&&ye(t)?t.call(r&&r.proxy):t}}function gp(){return!!(yt||pt||Ti)}const nw={},rw=()=>Object.create(nw),sw=e=>Object.getPrototypeOf(e)===nw;function jI(e,t,n,r=!1){const s={},i=rw();e.propsDefaults=Object.create(null),iw(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=r?s:sr(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function zI(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,a=Ie(s),[l]=e.propsOptions;let c=!1;if((r||o>0)&&!(o&16)){if(o&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let f=u[d];if(kc(e.emitsOptions,f))continue;const p=t[f];if(l)if(Pe(i,f))p!==i[f]&&(i[f]=p,c=!0);else{const g=Cn(f);s[g]=pd(l,a,g,p,e,!1)}else p!==i[f]&&(i[f]=p,c=!0)}}}else{iw(e,t,s,i)&&(c=!0);let u;for(const d in a)(!t||!Pe(t,d)&&((u=os(d))===d||!Pe(t,u)))&&(l?n&&(n[d]!==void 0||n[u]!==void 0)&&(s[d]=pd(l,a,d,void 0,e,!0)):delete s[d]);if(i!==a)for(const d in i)(!t||!Pe(t,d))&&(delete i[d],c=!0)}c&&pr(e.attrs,"set","")}function iw(e,t,n,r){const[s,i]=e.propsOptions;let o=!1,a;if(t)for(let l in t){if(wi(l))continue;const c=t[l];let u;s&&Pe(s,u=Cn(l))?!i||!i.includes(u)?n[u]=c:(a||(a={}))[u]=c:kc(e.emitsOptions,l)||(!(l in r)||c!==r[l])&&(r[l]=c,o=!0)}if(i){const l=Ie(n),c=a||Ze;for(let u=0;u<i.length;u++){const d=i[u];n[d]=pd(s,l,d,c[d],e,!Pe(c,d))}}return o}function pd(e,t,n,r,s,i){const o=e[n];if(o!=null){const a=Pe(o,"default");if(a&&r===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&ye(l)){const{propsDefaults:c}=s;if(n in c)r=c[n];else{const u=Ns(s);r=c[n]=l.call(null,t),u()}}else r=l}o[0]&&(i&&!a?r=!1:o[1]&&(r===""||r===os(n))&&(r=!0))}return r}const VI=new WeakMap;function ow(e,t,n=!1){const r=n?VI:t.propsCache,s=r.get(e);if(s)return s;const i=e.props,o={},a=[];let l=!1;if(!ye(e)){const u=d=>{l=!0;const[f,p]=ow(d,t,!0);ht(o,f),p&&a.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!l)return Ye(e)&&r.set(e,vi),vi;if(me(i))for(let u=0;u<i.length;u++){const d=Cn(i[u]);Yh(d)&&(o[d]=Ze)}else if(i)for(const u in i){const d=Cn(u);if(Yh(d)){const f=i[u],p=o[d]=me(f)||ye(f)?{type:f}:ht({},f);if(p){const g=Zh(Boolean,p.type),v=Zh(String,p.type);p[0]=g>-1,p[1]=v<0||g<v,(g>-1||Pe(p,"default"))&&a.push(d)}}}const c=[o,a];return Ye(e)&&r.set(e,c),c}function Yh(e){return e[0]!=="$"&&!wi(e)}function Jh(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Xh(e,t){return Jh(e)===Jh(t)}function Zh(e,t){return me(t)?t.findIndex(n=>Xh(n,e)):ye(t)&&Xh(t,e)?0:-1}const aw=e=>e[0]==="_"||e==="$stable",mp=e=>me(e)?e.map(Jt):[Jt(e)],WI=(e,t,n)=>{if(t._n)return t;const r=de((...s)=>mp(t(...s)),n);return r._c=!1,r},lw=(e,t,n)=>{const r=e._ctx;for(const s in e){if(aw(s))continue;const i=e[s];if(ye(i))t[s]=WI(s,i,r);else if(i!=null){const o=mp(i);t[s]=()=>o}}},cw=(e,t)=>{const n=mp(t);e.slots.default=()=>n},uw=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},KI=(e,t,n)=>{const r=e.slots=rw();if(e.vnode.shapeFlag&32){const s=t._;s?(uw(r,t,n),n&&gy(r,"_",s,!0)):lw(t,r)}else t&&cw(e,t)},GI=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,o=Ze;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:uw(s,t,n):(i=!t.$stable,lw(t,s)),o=t}else t&&(cw(e,t),o={default:1});if(i)for(const a in s)!aw(a)&&o[a]==null&&delete s[a]};function Ll(e,t,n,r,s=!1){if(me(e)){e.forEach((f,p)=>Ll(f,t&&(me(t)?t[p]:t),n,r,s));return}if(Cs(r)&&!s)return;const i=r.shapeFlag&4?Rc(r.component):r.el,o=s?null:i,{i:a,r:l}=e,c=t&&t.r,u=a.refs===Ze?a.refs={}:a.refs,d=a.setupState;if(c!=null&&c!==l&&(tt(c)?(u[c]=null,Pe(d,c)&&(d[c]=null)):xe(c)&&(c.value=null)),ye(l))Xr(l,a,12,[o,u]);else{const f=tt(l),p=xe(l);if(f||p){const g=()=>{if(e.f){const v=f?Pe(d,l)?d[l]:u[l]:l.value;s?me(v)&&Gf(v,i):me(v)?v.includes(i)||v.push(i):f?(u[l]=[i],Pe(d,l)&&(d[l]=u[l])):(l.value=[i],e.k&&(u[e.k]=l.value))}else f?(u[l]=o,Pe(d,l)&&(d[l]=o)):p&&(l.value=o,e.k&&(u[e.k]=o))};o?(g.id=-1,vt(g,n)):g()}}}const dw=Symbol("_vte"),qI=e=>e.__isTeleport,Ro=e=>e&&(e.disabled||e.disabled===""),Qh=e=>typeof SVGElement<"u"&&e instanceof SVGElement,eg=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,hd=(e,t)=>{const n=e&&e.to;return tt(n)?t?t(n):null:n},YI={name:"Teleport",__isTeleport:!0,process(e,t,n,r,s,i,o,a,l,c){const{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:g,createText:v,createComment:w}}=c,y=Ro(t.props);let{shapeFlag:m,children:h,dynamicChildren:_}=t;if(e==null){const b=t.el=v(""),E=t.anchor=v(""),R=t.target=hd(t.props,g),S=t.targetStart=v(""),A=t.targetAnchor=v("");p(b,n,r),p(E,n,r),S[dw]=A,R&&(p(S,R),p(A,R),o==="svg"||Qh(R)?o="svg":(o==="mathml"||eg(R))&&(o="mathml"));const D=(L,N)=>{m&16&&u(h,L,N,s,i,o,a,l)};y?D(n,E):R&&D(R,A)}else{t.el=e.el,t.targetStart=e.targetStart;const b=t.anchor=e.anchor,E=t.target=e.target,R=t.targetAnchor=e.targetAnchor,S=Ro(e.props),A=S?n:E,D=S?b:R;if(o==="svg"||Qh(E)?o="svg":(o==="mathml"||eg(E))&&(o="mathml"),_?(f(e.dynamicChildren,_,A,s,i,o,a),_p(e,t,!0)):l||d(e,t,A,D,s,i,o,a,!1),y)S?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Ba(t,n,b,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const L=t.target=hd(t.props,g);L&&Ba(t,L,null,c,0)}else S&&Ba(t,E,R,c,1)}fw(t)},remove(e,t,n,{um:r,o:{remove:s}},i){const{shapeFlag:o,children:a,anchor:l,targetStart:c,targetAnchor:u,target:d,props:f}=e;if(d&&(c&&s(c),s(u)),i&&s(l),o&16){const p=i||!Ro(f);for(let g=0;g<a.length;g++){const v=a[g];r(v,t,n,p,!!v.dynamicChildren)}}},move:Ba,hydrate:JI};function Ba(e,t,n,{o:{insert:r},m:s},i=2){i===0&&r(e.targetAnchor,t,n);const{el:o,anchor:a,shapeFlag:l,children:c,props:u}=e,d=i===2;if(d&&r(o,t,n),(!d||Ro(u))&&l&16)for(let f=0;f<c.length;f++)s(c[f],t,n,2);d&&r(a,t,n)}function JI(e,t,n,r,s,i,{o:{nextSibling:o,parentNode:a,querySelector:l}},c){const u=t.target=hd(t.props,l);if(u){const d=u._lpa||u.firstChild;if(t.shapeFlag&16)if(Ro(t.props))t.anchor=c(o(e),t,a(e),n,r,s,i),t.targetAnchor=d;else{t.anchor=o(e);let f=d;for(;f;)if(f=o(f),f&&f.nodeType===8&&f.data==="teleport anchor"){t.targetAnchor=f,u._lpa=t.targetAnchor&&o(t.targetAnchor);break}c(d,t,u,n,r,s,i)}fw(t)}return t.anchor&&o(t.anchor)}const Dl=YI;function fw(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n&&n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}let tg=!1;const ei=()=>{tg||(console.error("Hydration completed but contains mismatches."),tg=!0)},XI=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",ZI=e=>e.namespaceURI.includes("MathML"),Ha=e=>{if(XI(e))return"svg";if(ZI(e))return"mathml"},ja=e=>e.nodeType===8;function QI(e){const{mt:t,p:n,o:{patchProp:r,createText:s,nextSibling:i,parentNode:o,remove:a,insert:l,createComment:c}}=e,u=(h,_)=>{if(!_.hasChildNodes()){n(null,h,_),Al(),_._vnode=h;return}d(_.firstChild,h,null,null,null),Al(),_._vnode=h},d=(h,_,b,E,R,S=!1)=>{S=S||!!_.dynamicChildren;const A=ja(h)&&h.data==="[",D=()=>v(h,_,b,E,R,A),{type:L,ref:N,shapeFlag:x,patchFlag:W}=_;let ee=h.nodeType;_.el=h,W===-2&&(S=!1,_.dynamicChildren=null);let K=null;switch(L){case Zr:ee!==3?_.children===""?(l(_.el=s(""),o(h),h),K=h):K=D():(h.data!==_.children&&(ei(),h.data=_.children),K=i(h));break;case Et:m(h)?(K=i(h),y(_.el=h.content.firstChild,h,b)):ee!==8||A?K=D():K=i(h);break;case ki:if(A&&(h=i(h),ee=h.nodeType),ee===1||ee===3){K=h;const ce=!_.children.length;for(let oe=0;oe<_.staticCount;oe++)ce&&(_.children+=K.nodeType===1?K.outerHTML:K.data),oe===_.staticCount-1&&(_.anchor=K),K=i(K);return A?i(K):K}else D();break;case Ce:A?K=g(h,_,b,E,R,S):K=D();break;default:if(x&1)(ee!==1||_.type.toLowerCase()!==h.tagName.toLowerCase())&&!m(h)?K=D():K=f(h,_,b,E,R,S);else if(x&6){_.slotScopeIds=R;const ce=o(h);if(A?K=w(h):ja(h)&&h.data==="teleport start"?K=w(h,h.data,"teleport end"):K=i(h),t(_,ce,null,b,E,Ha(ce),S),Cs(_)){let oe;A?(oe=Q(Ce),oe.anchor=K?K.previousSibling:ce.lastChild):oe=h.nodeType===3?Le(""):Q("div"),oe.el=h,_.component.subTree=oe}}else x&64?ee!==8?K=D():K=_.type.hydrate(h,_,b,E,R,S,e,p):x&128&&(K=_.type.hydrate(h,_,b,E,Ha(o(h)),R,S,e,d))}return N!=null&&Ll(N,null,E,_),K},f=(h,_,b,E,R,S)=>{S=S||!!_.dynamicChildren;const{type:A,props:D,patchFlag:L,shapeFlag:N,dirs:x,transition:W}=_,ee=A==="input"||A==="option";if(ee||L!==-1){x&&Fn(_,null,b,"created");let K=!1;if(m(h)){K=hw(E,W)&&b&&b.vnode.props&&b.vnode.props.appear;const oe=h.content.firstChild;K&&W.beforeEnter(oe),y(oe,h,b),_.el=h=oe}if(N&16&&!(D&&(D.innerHTML||D.textContent))){let oe=p(h.firstChild,_,h,b,E,R,S);for(;oe;){ei();const Xe=oe;oe=oe.nextSibling,a(Xe)}}else N&8&&h.textContent!==_.children&&(ei(),h.textContent=_.children);if(D){if(ee||!S||L&48)for(const oe in D)(ee&&(oe.endsWith("value")||oe==="indeterminate")||ca(oe)&&!wi(oe)||oe[0]===".")&&r(h,oe,null,D[oe],void 0,b);else if(D.onClick)r(h,"onClick",null,D.onClick,void 0,b);else if(L&4&&hr(D.style))for(const oe in D.style)D.style[oe]}let ce;(ce=D&&D.onVnodeBeforeMount)&&xt(ce,b,_),x&&Fn(_,null,b,"beforeMount"),((ce=D&&D.onVnodeMounted)||x||K)&&ww(()=>{ce&&xt(ce,b,_),K&&W.enter(h),x&&Fn(_,null,b,"mounted")},E)}return h.nextSibling},p=(h,_,b,E,R,S,A)=>{A=A||!!_.dynamicChildren;const D=_.children,L=D.length;for(let N=0;N<L;N++){const x=A?D[N]:D[N]=Jt(D[N]),W=x.type===Zr;if(h){if(W&&!A){let ee=D[N+1];ee&&(ee=Jt(ee)).type===Zr&&(l(s(h.data.slice(x.children.length)),b,i(h)),h.data=x.children)}h=d(h,x,E,R,S,A)}else W&&!x.children?l(x.el=s(""),b):(ei(),n(null,x,b,null,E,R,Ha(b),S))}return h},g=(h,_,b,E,R,S)=>{const{slotScopeIds:A}=_;A&&(R=R?R.concat(A):A);const D=o(h),L=p(i(h),_,D,b,E,R,S);return L&&ja(L)&&L.data==="]"?i(_.anchor=L):(ei(),l(_.anchor=c("]"),D,L),L)},v=(h,_,b,E,R,S)=>{if(ei(),_.el=null,S){const L=w(h);for(;;){const N=i(h);if(N&&N!==L)a(N);else break}}const A=i(h),D=o(h);return a(h),n(null,_,D,A,b,E,Ha(D),R),A},w=(h,_="[",b="]")=>{let E=0;for(;h;)if(h=i(h),h&&ja(h)&&(h.data===_&&E++,h.data===b)){if(E===0)return i(h);E--}return h},y=(h,_,b)=>{const E=_.parentNode;E&&E.replaceChild(h,_);let R=b;for(;R;)R.vnode.el===_&&(R.vnode.el=R.subTree.el=h),R=R.parent},m=h=>h.nodeType===1&&h.tagName.toLowerCase()==="template";return[u,d]}const vt=ww;function e0(e){return pw(e)}function t0(e){return pw(e,QI)}function pw(e,t){const n=_y();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:o,createText:a,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:f,setScopeId:p=un,insertStaticContent:g}=e,v=(C,P,F,G=null,H=null,J=null,re=void 0,T=null,k=!!P.dynamicChildren)=>{if(C===P)return;C&&!Tn(C,P)&&(G=V(C),He(C,H,J,!0),C=null),P.patchFlag===-2&&(k=!1,P.dynamicChildren=null);const{type:M,ref:j,shapeFlag:ne}=P;switch(M){case Zr:w(C,P,F,G);break;case Et:y(C,P,F,G);break;case ki:C==null&&m(P,F,G,re);break;case Ce:N(C,P,F,G,H,J,re,T,k);break;default:ne&1?b(C,P,F,G,H,J,re,T,k):ne&6?x(C,P,F,G,H,J,re,T,k):(ne&64||ne&128)&&M.process(C,P,F,G,H,J,re,T,k,ue)}j!=null&&H&&Ll(j,C&&C.ref,J,P||C,!P)},w=(C,P,F,G)=>{if(C==null)r(P.el=a(P.children),F,G);else{const H=P.el=C.el;P.children!==C.children&&c(H,P.children)}},y=(C,P,F,G)=>{C==null?r(P.el=l(P.children||""),F,G):P.el=C.el},m=(C,P,F,G)=>{[C.el,C.anchor]=g(C.children,P,F,G,C.el,C.anchor)},h=({el:C,anchor:P},F,G)=>{let H;for(;C&&C!==P;)H=f(C),r(C,F,G),C=H;r(P,F,G)},_=({el:C,anchor:P})=>{let F;for(;C&&C!==P;)F=f(C),s(C),C=F;s(P)},b=(C,P,F,G,H,J,re,T,k)=>{P.type==="svg"?re="svg":P.type==="math"&&(re="mathml"),C==null?E(P,F,G,H,J,re,T,k):A(C,P,H,J,re,T,k)},E=(C,P,F,G,H,J,re,T)=>{let k,M;const{props:j,shapeFlag:ne,transition:q,dirs:U}=C;if(k=C.el=o(C.type,J,j&&j.is,j),ne&8?u(k,C.children):ne&16&&S(C.children,k,null,G,H,cu(C,J),re,T),U&&Fn(C,null,G,"created"),R(k,C,C.scopeId,re,G),j){for(const ge in j)ge!=="value"&&!wi(ge)&&i(k,ge,null,j[ge],J,G);"value"in j&&i(k,"value",null,j.value,J),(M=j.onVnodeBeforeMount)&&xt(M,G,C)}U&&Fn(C,null,G,"beforeMount");const B=hw(H,q);B&&q.beforeEnter(k),r(k,P,F),((M=j&&j.onVnodeMounted)||B||U)&&vt(()=>{M&&xt(M,G,C),B&&q.enter(k),U&&Fn(C,null,G,"mounted")},H)},R=(C,P,F,G,H)=>{if(F&&p(C,F),G)for(let J=0;J<G.length;J++)p(C,G[J]);if(H){let J=H.subTree;if(P===J){const re=H.vnode;R(C,re,re.scopeId,re.slotScopeIds,H.parent)}}},S=(C,P,F,G,H,J,re,T,k=0)=>{for(let M=k;M<C.length;M++){const j=C[M]=T?xr(C[M]):Jt(C[M]);v(null,j,P,F,G,H,J,re,T)}},A=(C,P,F,G,H,J,re)=>{const T=P.el=C.el;let{patchFlag:k,dynamicChildren:M,dirs:j}=P;k|=C.patchFlag&16;const ne=C.props||Ze,q=P.props||Ze;let U;if(F&&gs(F,!1),(U=q.onVnodeBeforeUpdate)&&xt(U,F,P,C),j&&Fn(P,C,F,"beforeUpdate"),F&&gs(F,!0),(ne.innerHTML&&q.innerHTML==null||ne.textContent&&q.textContent==null)&&u(T,""),M?D(C.dynamicChildren,M,T,F,G,cu(P,H),J):re||oe(C,P,T,null,F,G,cu(P,H),J,!1),k>0){if(k&16)L(T,ne,q,F,H);else if(k&2&&ne.class!==q.class&&i(T,"class",null,q.class,H),k&4&&i(T,"style",ne.style,q.style,H),k&8){const B=P.dynamicProps;for(let ge=0;ge<B.length;ge++){const _e=B[ge],We=ne[_e],Rt=q[_e];(Rt!==We||_e==="value")&&i(T,_e,We,Rt,H,F)}}k&1&&C.children!==P.children&&u(T,P.children)}else!re&&M==null&&L(T,ne,q,F,H);((U=q.onVnodeUpdated)||j)&&vt(()=>{U&&xt(U,F,P,C),j&&Fn(P,C,F,"updated")},G)},D=(C,P,F,G,H,J,re)=>{for(let T=0;T<P.length;T++){const k=C[T],M=P[T],j=k.el&&(k.type===Ce||!Tn(k,M)||k.shapeFlag&70)?d(k.el):F;v(k,M,j,null,G,H,J,re,!0)}},L=(C,P,F,G,H)=>{if(P!==F){if(P!==Ze)for(const J in P)!wi(J)&&!(J in F)&&i(C,J,P[J],null,H,G);for(const J in F){if(wi(J))continue;const re=F[J],T=P[J];re!==T&&J!=="value"&&i(C,J,T,re,H,G)}"value"in F&&i(C,"value",P.value,F.value,H)}},N=(C,P,F,G,H,J,re,T,k)=>{const M=P.el=C?C.el:a(""),j=P.anchor=C?C.anchor:a("");let{patchFlag:ne,dynamicChildren:q,slotScopeIds:U}=P;U&&(T=T?T.concat(U):U),C==null?(r(M,F,G),r(j,F,G),S(P.children||[],F,j,H,J,re,T,k)):ne>0&&ne&64&&q&&C.dynamicChildren?(D(C.dynamicChildren,q,F,H,J,re,T),(P.key!=null||H&&P===H.subTree)&&_p(C,P,!0)):oe(C,P,F,j,H,J,re,T,k)},x=(C,P,F,G,H,J,re,T,k)=>{P.slotScopeIds=T,C==null?P.shapeFlag&512?H.ctx.activate(P,F,G,re,k):W(P,F,G,H,J,re,k):ee(C,P,k)},W=(C,P,F,G,H,J,re)=>{const T=C.component=S0(C,G,H);if(Ec(C)&&(T.ctx.renderer=ue),k0(T,!1,re),T.asyncDep){if(H&&H.registerDep(T,K,re),!C.el){const k=T.subTree=Q(Et);y(null,k,P,F)}}else K(T,C,P,F,H,J,re)},ee=(C,P,F)=>{const G=P.component=C.component;if(f0(C,P,F))if(G.asyncDep&&!G.asyncResolved){ce(G,P,F);return}else G.next=P,wI(G.update),G.effect.dirty=!0,G.update();else P.el=C.el,G.vnode=P},K=(C,P,F,G,H,J,re)=>{const T=()=>{if(C.isMounted){let{next:j,bu:ne,u:q,parent:U,vnode:B}=C;{const zt=gw(C);if(zt){j&&(j.el=B.el,ce(C,j,re)),zt.asyncDep.then(()=>{C.isUnmounted||T()});return}}let ge=j,_e;gs(C,!1),j?(j.el=B.el,ce(C,j,re)):j=B,ne&&bi(ne),(_e=j.props&&j.props.onVnodeBeforeUpdate)&&xt(_e,U,j,B),gs(C,!0);const We=uu(C),Rt=C.subTree;C.subTree=We,v(Rt,We,d(Rt.el),V(Rt),C,H,J),j.el=We.el,ge===null&&vp(C,We.el),q&&vt(q,H),(_e=j.props&&j.props.onVnodeUpdated)&&vt(()=>xt(_e,U,j,B),H)}else{let j;const{el:ne,props:q}=P,{bm:U,m:B,parent:ge}=C,_e=Cs(P);if(gs(C,!1),U&&bi(U),!_e&&(j=q&&q.onVnodeBeforeMount)&&xt(j,ge,P),gs(C,!0),ne&&ze){const We=()=>{C.subTree=uu(C),ze(ne,C.subTree,C,H,null)};_e?P.type.__asyncLoader().then(()=>!C.isUnmounted&&We()):We()}else{const We=C.subTree=uu(C);v(null,We,F,G,C,H,J),P.el=We.el}if(B&&vt(B,H),!_e&&(j=q&&q.onVnodeMounted)){const We=P;vt(()=>xt(j,ge,We),H)}(P.shapeFlag&256||ge&&Cs(ge.vnode)&&ge.vnode.shapeFlag&256)&&C.a&&vt(C.a,H),C.isMounted=!0,P=F=G=null}},k=C.effect=new Jf(T,un,()=>op(M),C.scope),M=C.update=()=>{k.dirty&&k.run()};M.i=C,M.id=C.uid,gs(C,!0),M()},ce=(C,P,F)=>{P.component=C;const G=C.vnode.props;C.vnode=P,C.next=null,zI(C,P.props,G,F),GI(C,P.children,F),as(),jh(C),ls()},oe=(C,P,F,G,H,J,re,T,k=!1)=>{const M=C&&C.children,j=C?C.shapeFlag:0,ne=P.children,{patchFlag:q,shapeFlag:U}=P;if(q>0){if(q&128){nt(M,ne,F,G,H,J,re,T,k);return}else if(q&256){Xe(M,ne,F,G,H,J,re,T,k);return}}U&8?(j&16&&It(M,H,J),ne!==M&&u(F,ne)):j&16?U&16?nt(M,ne,F,G,H,J,re,T,k):It(M,H,J,!0):(j&8&&u(F,""),U&16&&S(ne,F,G,H,J,re,T,k))},Xe=(C,P,F,G,H,J,re,T,k)=>{C=C||vi,P=P||vi;const M=C.length,j=P.length,ne=Math.min(M,j);let q;for(q=0;q<ne;q++){const U=P[q]=k?xr(P[q]):Jt(P[q]);v(C[q],U,F,null,H,J,re,T,k)}M>j?It(C,H,J,!0,!1,ne):S(P,F,G,H,J,re,T,k,ne)},nt=(C,P,F,G,H,J,re,T,k)=>{let M=0;const j=P.length;let ne=C.length-1,q=j-1;for(;M<=ne&&M<=q;){const U=C[M],B=P[M]=k?xr(P[M]):Jt(P[M]);if(Tn(U,B))v(U,B,F,null,H,J,re,T,k);else break;M++}for(;M<=ne&&M<=q;){const U=C[ne],B=P[q]=k?xr(P[q]):Jt(P[q]);if(Tn(U,B))v(U,B,F,null,H,J,re,T,k);else break;ne--,q--}if(M>ne){if(M<=q){const U=q+1,B=U<j?P[U].el:G;for(;M<=q;)v(null,P[M]=k?xr(P[M]):Jt(P[M]),F,B,H,J,re,T,k),M++}}else if(M>q)for(;M<=ne;)He(C[M],H,J,!0),M++;else{const U=M,B=M,ge=new Map;for(M=B;M<=q;M++){const Vt=P[M]=k?xr(P[M]):Jt(P[M]);Vt.key!=null&&ge.set(Vt.key,M)}let _e,We=0;const Rt=q-B+1;let zt=!1,La=0;const Qs=new Array(Rt);for(M=0;M<Rt;M++)Qs[M]=0;for(M=U;M<=ne;M++){const Vt=C[M];if(We>=Rt){He(Vt,H,J,!0);continue}let Ln;if(Vt.key!=null)Ln=ge.get(Vt.key);else for(_e=B;_e<=q;_e++)if(Qs[_e-B]===0&&Tn(Vt,P[_e])){Ln=_e;break}Ln===void 0?He(Vt,H,J,!0):(Qs[Ln-B]=M+1,Ln>=La?La=Ln:zt=!0,v(Vt,P[Ln],F,null,H,J,re,T,k),We++)}const Lh=zt?n0(Qs):vi;for(_e=Lh.length-1,M=Rt-1;M>=0;M--){const Vt=B+M,Ln=P[Vt],Dh=Vt+1<j?P[Vt+1].el:G;Qs[M]===0?v(null,Ln,F,Dh,H,J,re,T,k):zt&&(_e<0||M!==Lh[_e]?Je(Ln,F,Dh,2):_e--)}}},Je=(C,P,F,G,H=null)=>{const{el:J,type:re,transition:T,children:k,shapeFlag:M}=C;if(M&6){Je(C.component.subTree,P,F,G);return}if(M&128){C.suspense.move(P,F,G);return}if(M&64){re.move(C,P,F,ue);return}if(re===Ce){r(J,P,F);for(let ne=0;ne<k.length;ne++)Je(k[ne],P,F,G);r(C.anchor,P,F);return}if(re===ki){h(C,P,F);return}if(G!==2&&M&1&&T)if(G===0)T.beforeEnter(J),r(J,P,F),vt(()=>T.enter(J),H);else{const{leave:ne,delayLeave:q,afterLeave:U}=T,B=()=>r(J,P,F),ge=()=>{ne(J,()=>{B(),U&&U()})};q?q(J,B,ge):ge()}else r(J,P,F)},He=(C,P,F,G=!1,H=!1)=>{const{type:J,props:re,ref:T,children:k,dynamicChildren:M,shapeFlag:j,patchFlag:ne,dirs:q,cacheIndex:U}=C;if(ne===-2&&(H=!1),T!=null&&Ll(T,null,F,C,!0),U!=null&&(P.renderCache[U]=void 0),j&256){P.ctx.deactivate(C);return}const B=j&1&&q,ge=!Cs(C);let _e;if(ge&&(_e=re&&re.onVnodeBeforeUnmount)&&xt(_e,P,C),j&6)bt(C.component,F,G);else{if(j&128){C.suspense.unmount(F,G);return}B&&Fn(C,null,P,"beforeUnmount"),j&64?C.type.remove(C,P,F,ue,G):M&&!M.hasOnce&&(J!==Ce||ne>0&&ne&64)?It(M,P,F,!1,!0):(J===Ce&&ne&384||!H&&j&16)&&It(k,P,F),G&&_t(C)}(ge&&(_e=re&&re.onVnodeUnmounted)||B)&&vt(()=>{_e&&xt(_e,P,C),B&&Fn(C,null,P,"unmounted")},F)},_t=C=>{const{type:P,el:F,anchor:G,transition:H}=C;if(P===Ce){je(F,G);return}if(P===ki){_(C);return}const J=()=>{s(F),H&&!H.persisted&&H.afterLeave&&H.afterLeave()};if(C.shapeFlag&1&&H&&!H.persisted){const{leave:re,delayLeave:T}=H,k=()=>re(F,J);T?T(C.el,J,k):k()}else J()},je=(C,P)=>{let F;for(;C!==P;)F=f(C),s(C),C=F;s(P)},bt=(C,P,F)=>{const{bum:G,scope:H,update:J,subTree:re,um:T,m:k,a:M}=C;Nl(k),Nl(M),G&&bi(G),H.stop(),J&&(J.active=!1,He(re,C,P,F)),T&&vt(T,P),vt(()=>{C.isUnmounted=!0},P),P&&P.pendingBranch&&!P.isUnmounted&&C.asyncDep&&!C.asyncResolved&&C.suspenseId===P.pendingId&&(P.deps--,P.deps===0&&P.resolve())},It=(C,P,F,G=!1,H=!1,J=0)=>{for(let re=J;re<C.length;re++)He(C[re],P,F,G,H)},V=C=>{if(C.shapeFlag&6)return V(C.component.subTree);if(C.shapeFlag&128)return C.suspense.next();const P=f(C.anchor||C.el),F=P&&P[dw];return F?f(F):P};let le=!1;const ie=(C,P,F)=>{C==null?P._vnode&&He(P._vnode,null,null,!0):v(P._vnode||null,C,P,null,null,null,F),le||(le=!0,jh(),Al(),le=!1),P._vnode=C},ue={p:v,um:He,m:Je,r:_t,mt:W,mc:S,pc:oe,pbc:D,n:V,o:e};let Re,ze;return t&&([Re,ze]=t(ue)),{render:ie,hydrate:Re,createApp:HI(ie,Re)}}function cu({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function gs({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function hw(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function _p(e,t,n=!1){const r=e.children,s=t.children;if(me(r)&&me(s))for(let i=0;i<r.length;i++){const o=r[i];let a=s[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=s[i]=xr(s[i]),a.el=o.el),!n&&a.patchFlag!==-2&&_p(o,a)),a.type===Zr&&(a.el=o.el)}}function n0(e){const t=e.slice(),n=[0];let r,s,i,o,a;const l=e.length;for(r=0;r<l;r++){const c=e[r];if(c!==0){if(s=n[n.length-1],e[s]<c){t[r]=s,n.push(r);continue}for(i=0,o=n.length-1;i<o;)a=i+o>>1,e[n[a]]<c?i=a+1:o=a;c<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function gw(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:gw(t)}function Nl(e){if(e)for(let t=0;t<e.length;t++)e[t].active=!1}const r0=Symbol.for("v-scx"),s0=()=>et(r0);function mw(e,t){return Sc(e,null,t)}function i0(e,t){return Sc(e,null,{flush:"post"})}const za={};function Se(e,t,n){return Sc(e,t,n)}function Sc(e,t,{immediate:n,deep:r,flush:s,once:i,onTrack:o,onTrigger:a}=Ze){if(t&&i){const E=t;t=(...R)=>{E(...R),b()}}const l=yt,c=E=>r===!0?E:Hr(E,r===!1?1:void 0);let u,d=!1,f=!1;if(xe(e)?(u=()=>e.value,d=Mi(e)):hr(e)?(u=()=>c(e),d=!0):me(e)?(f=!0,d=e.some(E=>hr(E)||Mi(E)),u=()=>e.map(E=>{if(xe(E))return E.value;if(hr(E))return c(E);if(ye(E))return Xr(E,l,2)})):ye(e)?t?u=()=>Xr(e,l,2):u=()=>(p&&p(),hn(e,l,3,[g])):u=un,t&&r){const E=u;u=()=>Hr(E())}let p,g=E=>{p=h.onStop=()=>{Xr(E,l,4),p=h.onStop=void 0}},v;if(Ic)if(g=un,t?n&&hn(t,l,3,[u(),f?[]:void 0,g]):u(),s==="sync"){const E=s0();v=E.__watcherHandles||(E.__watcherHandles=[])}else return un;let w=f?new Array(e.length).fill(za):za;const y=()=>{if(!(!h.active||!h.dirty))if(t){const E=h.run();(r||d||(f?E.some((R,S)=>rs(R,w[S])):rs(E,w)))&&(p&&p(),hn(t,l,3,[E,w===za?void 0:f&&w[0]===za?[]:w,g]),w=E)}else h.run()};y.allowRecurse=!!t;let m;s==="sync"?m=y:s==="post"?m=()=>vt(y,l&&l.suspense):(y.pre=!0,l&&(y.id=l.uid),m=()=>op(y));const h=new Jf(u,un,m),_=Vs(),b=()=>{h.stop(),_&&Gf(_.effects,h)};return t?n?y():w=h.run():s==="post"?vt(h.run.bind(h),l&&l.suspense):h.run(),v&&v.push(b),b}function o0(e,t,n){const r=this.proxy,s=tt(e)?e.includes(".")?_w(r,e):()=>r[e]:e.bind(r,r);let i;ye(t)?i=t:(i=t.handler,n=t);const o=Ns(this),a=Sc(s,i.bind(r),n);return o(),a}function _w(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}function Hr(e,t=1/0,n){if(t<=0||!Ye(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,xe(e))Hr(e.value,t,n);else if(me(e))for(let r=0;r<e.length;r++)Hr(e[r],t,n);else if(fy(e)||yi(e))e.forEach(r=>{Hr(r,t,n)});else if(hy(e)){for(const r in e)Hr(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Hr(e[r],t,n)}return e}const a0=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Cn(t)}Modifiers`]||e[`${os(t)}Modifiers`];function l0(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Ze;let s=n;const i=t.startsWith("update:"),o=i&&a0(r,t.slice(7));o&&(o.trim&&(s=n.map(u=>tt(u)?u.trim():u)),o.number&&(s=n.map(sd)));let a,l=r[a=su(t)]||r[a=su(Cn(t))];!l&&i&&(l=r[a=su(os(t))]),l&&hn(l,e,6,s);const c=r[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,hn(c,e,6,s)}}function vw(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let o={},a=!1;if(!ye(e)){const l=c=>{const u=vw(c,t,!0);u&&(a=!0,ht(o,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(Ye(e)&&r.set(e,null),null):(me(i)?i.forEach(l=>o[l]=null):ht(o,i),Ye(e)&&r.set(e,o),o)}function kc(e,t){return!e||!ca(t)?!1:(t=t.slice(2).replace(/Once$/,""),Pe(e,t[0].toLowerCase()+t.slice(1))||Pe(e,os(t))||Pe(e,t))}function uu(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:o,attrs:a,emit:l,render:c,renderCache:u,props:d,data:f,setupState:p,ctx:g,inheritAttrs:v}=e,w=Ol(e);let y,m;try{if(n.shapeFlag&4){const _=s||r,b=_;y=Jt(c.call(b,_,u,d,p,f,g)),m=a}else{const _=t;y=Jt(_.length>1?_(d,{attrs:a,slots:o,emit:l}):_(d,null)),m=t.props?a:u0(a)}}catch(_){Co.length=0,fa(_,e,1),y=Q(Et)}let h=y;if(m&&v!==!1){const _=Object.keys(m),{shapeFlag:b}=h;_.length&&b&7&&(i&&_.some(Kf)&&(m=d0(m,i)),h=mr(h,m,!1,!0))}return n.dirs&&(h=mr(h,null,!1,!0),h.dirs=h.dirs?h.dirs.concat(n.dirs):n.dirs),n.transition&&(h.transition=n.transition),y=h,Ol(w),y}function c0(e,t=!0){let n;for(let r=0;r<e.length;r++){const s=e[r];if(xi(s)){if(s.type!==Et||s.children==="v-if"){if(n)return;n=s}}else return}return n}const u0=e=>{let t;for(const n in e)(n==="class"||n==="style"||ca(n))&&((t||(t={}))[n]=e[n]);return t},d0=(e,t)=>{const n={};for(const r in e)(!Kf(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function f0(e,t,n){const{props:r,children:s,component:i}=e,{props:o,children:a,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?ng(r,o,c):!!o;if(l&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const f=u[d];if(o[f]!==r[f]&&!kc(c,f))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:r===o?!1:r?o?ng(r,o,c):!0:!!o;return!1}function ng(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const i=r[s];if(t[i]!==e[i]&&!kc(n,i))return!0}return!1}function vp({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const gd=e=>e.__isSuspense;let md=0;const p0={name:"Suspense",__isSuspense:!0,process(e,t,n,r,s,i,o,a,l,c){if(e==null)h0(t,n,r,s,i,o,a,l,c);else{if(i&&i.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}g0(e,t,n,r,s,o,a,l,c)}},hydrate:m0,normalize:_0},yp=p0;function Go(e,t){const n=e.props&&e.props[t];ye(n)&&n()}function h0(e,t,n,r,s,i,o,a,l){const{p:c,o:{createElement:u}}=l,d=u("div"),f=e.suspense=yw(e,s,r,t,d,n,i,o,a,l);c(null,f.pendingBranch=e.ssContent,d,null,r,f,i,o),f.deps>0?(Go(e,"onPending"),Go(e,"onFallback"),c(null,e.ssFallback,t,n,r,null,i,o),Si(f,e.ssFallback)):f.resolve(!1,!0)}function g0(e,t,n,r,s,i,o,a,{p:l,um:c,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const f=t.ssContent,p=t.ssFallback,{activeBranch:g,pendingBranch:v,isInFallback:w,isHydrating:y}=d;if(v)d.pendingBranch=f,Tn(f,v)?(l(v,f,d.hiddenContainer,null,s,d,i,o,a),d.deps<=0?d.resolve():w&&(y||(l(g,p,n,r,s,null,i,o,a),Si(d,p)))):(d.pendingId=md++,y?(d.isHydrating=!1,d.activeBranch=v):c(v,s,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),w?(l(null,f,d.hiddenContainer,null,s,d,i,o,a),d.deps<=0?d.resolve():(l(g,p,n,r,s,null,i,o,a),Si(d,p))):g&&Tn(f,g)?(l(g,f,n,r,s,d,i,o,a),d.resolve(!0)):(l(null,f,d.hiddenContainer,null,s,d,i,o,a),d.deps<=0&&d.resolve()));else if(g&&Tn(f,g))l(g,f,n,r,s,d,i,o,a),Si(d,f);else if(Go(t,"onPending"),d.pendingBranch=f,f.shapeFlag&512?d.pendingId=f.component.suspenseId:d.pendingId=md++,l(null,f,d.hiddenContainer,null,s,d,i,o,a),d.deps<=0)d.resolve();else{const{timeout:m,pendingId:h}=d;m>0?setTimeout(()=>{d.pendingId===h&&d.fallback(p)},m):m===0&&d.fallback(p)}}function yw(e,t,n,r,s,i,o,a,l,c,u=!1){const{p:d,m:f,um:p,n:g,o:{parentNode:v,remove:w}}=c;let y;const m=v0(e);m&&t&&t.pendingBranch&&(y=t.pendingId,t.deps++);const h=e.props?my(e.props.timeout):void 0,_=i,b={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:s,deps:0,pendingId:md++,timeout:typeof h=="number"?h:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(E=!1,R=!1){const{vnode:S,activeBranch:A,pendingBranch:D,pendingId:L,effects:N,parentComponent:x,container:W}=b;let ee=!1;b.isHydrating?b.isHydrating=!1:E||(ee=A&&D.transition&&D.transition.mode==="out-in",ee&&(A.transition.afterLeave=()=>{L===b.pendingId&&(f(D,W,i===_?g(A):i,0),cd(N))}),A&&(v(A.el)!==b.hiddenContainer&&(i=g(A)),p(A,x,b,!0)),ee||f(D,W,i,0)),Si(b,D),b.pendingBranch=null,b.isInFallback=!1;let K=b.parent,ce=!1;for(;K;){if(K.pendingBranch){K.effects.push(...N),ce=!0;break}K=K.parent}!ce&&!ee&&cd(N),b.effects=[],m&&t&&t.pendingBranch&&y===t.pendingId&&(t.deps--,t.deps===0&&!R&&t.resolve()),Go(S,"onResolve")},fallback(E){if(!b.pendingBranch)return;const{vnode:R,activeBranch:S,parentComponent:A,container:D,namespace:L}=b;Go(R,"onFallback");const N=g(S),x=()=>{b.isInFallback&&(d(null,E,D,N,A,null,L,a,l),Si(b,E))},W=E.transition&&E.transition.mode==="out-in";W&&(S.transition.afterLeave=x),b.isInFallback=!0,p(S,A,null,!0),W||x()},move(E,R,S){b.activeBranch&&f(b.activeBranch,E,R,S),b.container=E},next(){return b.activeBranch&&g(b.activeBranch)},registerDep(E,R,S){const A=!!b.pendingBranch;A&&b.deps++;const D=E.vnode.el;E.asyncDep.catch(L=>{fa(L,E,0)}).then(L=>{if(E.isUnmounted||b.isUnmounted||b.pendingId!==E.suspenseId)return;E.asyncResolved=!0;const{vnode:N}=E;yd(E,L,!1),D&&(N.el=D);const x=!D&&E.subTree.el;R(E,N,v(D||E.subTree.el),D?null:g(E.subTree),b,o,S),x&&w(x),vp(E,N.el),A&&--b.deps===0&&b.resolve()})},unmount(E,R){b.isUnmounted=!0,b.activeBranch&&p(b.activeBranch,n,E,R),b.pendingBranch&&p(b.pendingBranch,n,E,R)}};return b}function m0(e,t,n,r,s,i,o,a,l){const c=t.suspense=yw(t,r,n,e.parentNode,document.createElement("div"),null,s,i,o,a,!0),u=l(e,c.pendingBranch=t.ssContent,n,c,i,o);return c.deps===0&&c.resolve(!1,!0),u}function _0(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=rg(r?n.default:n),e.ssFallback=r?rg(n.fallback):Q(Et)}function rg(e){let t;if(ye(e)){const n=$i&&e._c;n&&(e._d=!1,$()),e=e(),n&&(e._d=!0,t=Ft,bw())}return me(e)&&(e=c0(e)),e=Jt(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function ww(e,t){t&&t.pendingBranch?me(e)?t.effects.push(...e):t.effects.push(e):cd(e)}function Si(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;n.el=s,r&&r.subTree===n&&(r.vnode.el=s,vp(r,s))}function v0(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Ce=Symbol.for("v-fgt"),Zr=Symbol.for("v-txt"),Et=Symbol.for("v-cmt"),ki=Symbol.for("v-stc"),Co=[];let Ft=null;function $(e=!1){Co.push(Ft=e?null:[])}function bw(){Co.pop(),Ft=Co[Co.length-1]||null}let $i=1;function sg(e){$i+=e,e<0&&Ft&&(Ft.hasOnce=!0)}function Ew(e){return e.dynamicChildren=$i>0?Ft||vi:null,bw(),$i>0&&Ft&&Ft.push(e),e}function X(e,t,n,r,s,i){return Ew(Z(e,t,n,r,s,i,!0))}function se(e,t,n,r,s){return Ew(Q(e,t,n,r,s,!0))}function xi(e){return e?e.__v_isVNode===!0:!1}function Tn(e,t){return e.type===t.type&&e.key===t.key}const Tw=({key:e})=>e??null,dl=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?tt(e)||xe(e)||ye(e)?{i:pt,r:e,k:t,f:!!n}:e:null);function Z(e,t=null,n=null,r=0,s=null,i=e===Ce?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Tw(t),ref:t&&dl(t),scopeId:yc,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:pt};return a?(wp(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=tt(n)?8:16),$i>0&&!o&&Ft&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Ft.push(l),l}const Q=y0;function y0(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===Yy)&&(e=Et),xi(e)){const a=mr(e,t,!0);return n&&wp(a,n),$i>0&&!i&&Ft&&(a.shapeFlag&6?Ft[Ft.indexOf(e)]=a:Ft.push(a)),a.patchFlag=-2,a}if(C0(e)&&(e=e.__vccOpts),t){t=w0(t);let{class:a,style:l}=t;a&&!tt(a)&&(t.class=Ee(a)),Ye(l)&&(Dy(l)&&!me(l)&&(l=ht({},l)),t.style=pn(l))}const o=tt(e)?1:gd(e)?128:qI(e)?64:Ye(e)?4:ye(e)?2:0;return Z(e,t,n,r,s,o,i,!0)}function w0(e){return e?Dy(e)||sw(e)?ht({},e):e:null}function mr(e,t,n=!1,r=!1){const{props:s,ref:i,patchFlag:o,children:a,transition:l}=e,c=t?rt(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Tw(c),ref:t&&t.ref?n&&i?me(i)?i.concat(dl(t)):[i,dl(t)]:dl(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ce?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&mr(e.ssContent),ssFallback:e.ssFallback&&mr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Ds(u,l.clone(u)),u}function Le(e=" ",t=0){return Q(Zr,null,e,t)}function b0(e,t){const n=Q(ki,null,e);return n.staticCount=t,n}function fe(e="",t=!1){return t?($(),se(Et,null,e)):Q(Et,null,e)}function Jt(e){return e==null||typeof e=="boolean"?Q(Et):me(e)?Q(Ce,null,e.slice()):typeof e=="object"?xr(e):Q(Zr,null,String(e))}function xr(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:mr(e)}function wp(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(me(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),wp(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!sw(t)?t._ctx=pt:s===3&&pt&&(pt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ye(t)?(t={default:t,_ctx:pt},n=32):(t=String(t),r&64?(n=16,t=[Le(t)]):n=8);e.children=t,e.shapeFlag|=n}function rt(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=Ee([t.class,r.class]));else if(s==="style")t.style=pn([t.style,r.style]);else if(ca(s)){const i=t[s],o=r[s];o&&i!==o&&!(me(i)&&i.includes(o))&&(t[s]=i?[].concat(i,o):o)}else s!==""&&(t[s]=r[s])}return t}function xt(e,t,n,r=null){hn(e,t,7,[n,r])}const E0=tw();let T0=0;function S0(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||E0,i={uid:T0++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new by(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ow(r,s),emitsOptions:vw(r,s),emit:null,emitted:null,propsDefaults:Ze,inheritAttrs:r.inheritAttrs,ctx:Ze,data:Ze,props:Ze,attrs:Ze,slots:Ze,refs:Ze,setupState:Ze,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=l0.bind(null,i),e.ce&&e.ce(i),i}let yt=null;const Nt=()=>yt||pt;let Ml,_d;{const e=_y(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};Ml=t("__VUE_INSTANCE_SETTERS__",n=>yt=n),_d=t("__VUE_SSR_SETTERS__",n=>Ic=n)}const Ns=e=>{const t=yt;return Ml(e),e.scope.on(),()=>{e.scope.off(),Ml(t)}},vd=()=>{yt&&yt.scope.off(),Ml(null)};function Sw(e){return e.vnode.shapeFlag&4}let Ic=!1;function k0(e,t=!1,n=!1){t&&_d(t);const{props:r,children:s}=e.vnode,i=Sw(e);jI(e,r,i,t),KI(e,s,n);const o=i?I0(e,t):void 0;return t&&_d(!1),o}function I0(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,LI);const{setup:r}=n;if(r){const s=e.setupContext=r.length>1?Iw(e):null,i=Ns(e);as();const o=Xr(r,e,0,[e.props,s]);if(ls(),i(),qf(o)){if(o.then(vd,vd),t)return o.then(a=>{yd(e,a,t)}).catch(a=>{fa(a,e,0)});e.asyncDep=o}else yd(e,o,t)}else kw(e,t)}function yd(e,t,n){ye(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ye(t)&&(e.setupState=$y(t)),kw(e,n)}let ig;function kw(e,t,n){const r=e.type;if(!e.render){if(!t&&ig&&!r.render){const s=r.template||hp(e).template;if(s){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:l}=r,c=ht(ht({isCustomElement:i,delimiters:a},o),l);r.render=ig(s,c)}}e.render=r.render||un}{const s=Ns(e);as();try{MI(e)}finally{ls(),s()}}}const R0={get(e,t){return Bt(e,"get",""),e[t]}};function Iw(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,R0),slots:e.slots,emit:e.emit,expose:t}}function Rc(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy($y(np(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Io)return Io[n](e)},has(t,n){return n in t||n in Io}})):e.proxy}function wd(e,t=!0){return ye(e)?e.displayName||e.name:e.name||t&&e.__name}function C0(e){return ye(e)&&"__vccOpts"in e}const z=(e,t)=>fI(e,t,Ic);function At(e,t,n){const r=arguments.length;return r===2?Ye(t)&&!me(t)?xi(t)?Q(e,null,[t]):Q(e,t):Q(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&xi(n)&&(n=[n]),Q(e,t,n))}const Rw="3.4.33";/**
* @vue/runtime-dom v3.4.33
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const A0="http://www.w3.org/2000/svg",O0="http://www.w3.org/1998/Math/MathML",tr=typeof document<"u"?document:null,og=tr&&tr.createElement("template"),P0={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?tr.createElementNS(A0,e):t==="mathml"?tr.createElementNS(O0,e):n?tr.createElement(e,{is:n}):tr.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>tr.createTextNode(e),createComment:e=>tr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>tr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){const o=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{og.innerHTML=r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e;const a=og.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ir="transition",ho="animation",Ui=Symbol("_vtc"),zn=(e,{slots:t})=>At(TI,Aw(e),t);zn.displayName="Transition";const Cw={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},L0=zn.props=ht({},zy,Cw),ms=(e,t=[])=>{me(e)?e.forEach(n=>n(...t)):e&&e(...t)},ag=e=>e?me(e)?e.some(t=>t.length>1):e.length>1:!1;function Aw(e){const t={};for(const N in e)N in Cw||(t[N]=e[N]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:c=o,appearToClass:u=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,g=D0(s),v=g&&g[0],w=g&&g[1],{onBeforeEnter:y,onEnter:m,onEnterCancelled:h,onLeave:_,onLeaveCancelled:b,onBeforeAppear:E=y,onAppear:R=m,onAppearCancelled:S=h}=t,A=(N,x,W)=>{Lr(N,x?u:a),Lr(N,x?c:o),W&&W()},D=(N,x)=>{N._isLeaving=!1,Lr(N,d),Lr(N,p),Lr(N,f),x&&x()},L=N=>(x,W)=>{const ee=N?R:m,K=()=>A(x,N,W);ms(ee,[x,K]),lg(()=>{Lr(x,N?l:i),er(x,N?u:a),ag(ee)||cg(x,r,v,K)})};return ht(t,{onBeforeEnter(N){ms(y,[N]),er(N,i),er(N,o)},onBeforeAppear(N){ms(E,[N]),er(N,l),er(N,c)},onEnter:L(!1),onAppear:L(!0),onLeave(N,x){N._isLeaving=!0;const W=()=>D(N,x);er(N,d),er(N,f),Pw(),lg(()=>{N._isLeaving&&(Lr(N,d),er(N,p),ag(_)||cg(N,r,w,W))}),ms(_,[N,W])},onEnterCancelled(N){A(N,!1),ms(h,[N])},onAppearCancelled(N){A(N,!0),ms(S,[N])},onLeaveCancelled(N){D(N),ms(b,[N])}})}function D0(e){if(e==null)return null;if(Ye(e))return[du(e.enter),du(e.leave)];{const t=du(e);return[t,t]}}function du(e){return my(e)}function er(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Ui]||(e[Ui]=new Set)).add(t)}function Lr(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Ui];n&&(n.delete(t),n.size||(e[Ui]=void 0))}function lg(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let N0=0;function cg(e,t,n,r){const s=e._endId=++N0,i=()=>{s===e._endId&&r()};if(n)return setTimeout(i,n);const{type:o,timeout:a,propCount:l}=Ow(e,t);if(!o)return r();const c=o+"end";let u=0;const d=()=>{e.removeEventListener(c,f),i()},f=p=>{p.target===e&&++u>=l&&d()};setTimeout(()=>{u<l&&d()},a+1),e.addEventListener(c,f)}function Ow(e,t){const n=window.getComputedStyle(e),r=g=>(n[g]||"").split(", "),s=r(`${Ir}Delay`),i=r(`${Ir}Duration`),o=ug(s,i),a=r(`${ho}Delay`),l=r(`${ho}Duration`),c=ug(a,l);let u=null,d=0,f=0;t===Ir?o>0&&(u=Ir,d=o,f=i.length):t===ho?c>0&&(u=ho,d=c,f=l.length):(d=Math.max(o,c),u=d>0?o>c?Ir:ho:null,f=u?u===Ir?i.length:l.length:0);const p=u===Ir&&/\b(transform|all)(,|$)/.test(r(`${Ir}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function ug(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>dg(n)+dg(e[r])))}function dg(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Pw(){return document.body.offsetHeight}function M0(e,t,n){const r=e[Ui];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const $l=Symbol("_vod"),Lw=Symbol("_vsh"),Dw={beforeMount(e,{value:t},{transition:n}){e[$l]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):go(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),go(e,!0),r.enter(e)):r.leave(e,()=>{go(e,!1)}):go(e,t))},beforeUnmount(e,{value:t}){go(e,t)}};function go(e,t){e.style.display=t?e[$l]:"none",e[Lw]=!t}const Nw=Symbol("");function Mw(e){const t=Nt();if(!t)return;const n=t.ut=(s=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(i=>Ed(i,s))},r=()=>{const s=e(t.proxy);bd(t.subTree,s),n(s)};Dt(()=>{i0(r);const s=new MutationObserver(r);s.observe(t.subTree.el.parentNode,{childList:!0}),to(()=>s.disconnect())})}function bd(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{bd(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Ed(e.el,t);else if(e.type===Ce)e.children.forEach(n=>bd(n,t));else if(e.type===ki){let{el:n,anchor:r}=e;for(;n&&(Ed(n,t),n!==r);)n=n.nextSibling}}function Ed(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const s in t)n.setProperty(`--${s}`,t[s]),r+=`--${s}: ${t[s]};`;n[Nw]=r}}const $0=/(^|;)\s*display\s*:/;function x0(e,t,n){const r=e.style,s=tt(n);let i=!1;if(n&&!s){if(t)if(tt(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&fl(r,a,"")}else for(const o in t)n[o]==null&&fl(r,o,"");for(const o in n)o==="display"&&(i=!0),fl(r,o,n[o])}else if(s){if(t!==n){const o=r[Nw];o&&(n+=";"+o),r.cssText=n,i=$0.test(n)}}else t&&e.removeAttribute("style");$l in e&&(e[$l]=i?r.display:"",e[Lw]&&(r.display="none"))}const fg=/\s*!important$/;function fl(e,t,n){if(me(n))n.forEach(r=>fl(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=U0(e,t);fg.test(n)?e.setProperty(os(r),n.replace(fg,""),"important"):e[r]=n}}const pg=["Webkit","Moz","ms"],fu={};function U0(e,t){const n=fu[t];if(n)return n;let r=Cn(t);if(r!=="filter"&&r in e)return fu[t]=r;r=_c(r);for(let s=0;s<pg.length;s++){const i=pg[s]+r;if(i in e)return fu[t]=i}return t}const hg="http://www.w3.org/1999/xlink";function gg(e,t,n,r,s,i=Vk(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(hg,t.slice(6,t.length)):e.setAttributeNS(hg,t,n):n==null||i&&!vy(n)?e.removeAttribute(t):e.setAttribute(t,i?"":is(n)?String(n):n)}function F0(e,t,n,r){if(t==="innerHTML"||t==="textContent"){if(n==null)return;e[t]=n;return}const s=e.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){const o=s==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?"":String(n);(o!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const o=typeof e[t];o==="boolean"?n=vy(n):n==null&&o==="string"?(n="",i=!0):o==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(t)}function oi(e,t,n,r){e.addEventListener(t,n,r)}function B0(e,t,n,r){e.removeEventListener(t,n,r)}const mg=Symbol("_vei");function H0(e,t,n,r,s=null){const i=e[mg]||(e[mg]={}),o=i[t];if(r&&o)o.value=r;else{const[a,l]=j0(t);if(r){const c=i[t]=W0(r,s);oi(e,a,c,l)}else o&&(B0(e,a,o,l),i[t]=void 0)}}const _g=/(?:Once|Passive|Capture)$/;function j0(e){let t;if(_g.test(e)){t={};let r;for(;r=e.match(_g);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):os(e.slice(2)),t]}let pu=0;const z0=Promise.resolve(),V0=()=>pu||(z0.then(()=>pu=0),pu=Date.now());function W0(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;hn(K0(r,n.value),t,5,[r])};return n.value=e,n.attached=V0(),n}function K0(e,t){if(me(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const vg=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,G0=(e,t,n,r,s,i)=>{const o=s==="svg";t==="class"?M0(e,r,o):t==="style"?x0(e,n,r):ca(t)?Kf(t)||H0(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):q0(e,t,r,o))?(F0(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&gg(e,t,r,o,i,t!=="value")):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),gg(e,t,r,o))};function q0(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&vg(t)&&ye(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return vg(t)&&tt(n)?!1:t in e}const $w=new WeakMap,xw=new WeakMap,xl=Symbol("_moveCb"),yg=Symbol("_enterCb"),Uw={name:"TransitionGroup",props:ht({},L0,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Nt(),r=jy();let s,i;return up(()=>{if(!s.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!Q0(s[0].el,n.vnode.el,o))return;s.forEach(J0),s.forEach(X0);const a=s.filter(Z0);Pw(),a.forEach(l=>{const c=l.el,u=c.style;er(c,o),u.transform=u.webkitTransform=u.transitionDuration="";const d=c[xl]=f=>{f&&f.target!==c||(!f||/transform$/.test(f.propertyName))&&(c.removeEventListener("transitionend",d),c[xl]=null,Lr(c,o))};c.addEventListener("transitionend",d)})}),()=>{const o=Ie(e),a=Aw(o);let l=o.tag||Ce;if(s=[],i)for(let c=0;c<i.length;c++){const u=i[c];u.el&&u.el instanceof Element&&(s.push(u),Ds(u,Ko(u,a,r,n)),$w.set(u,u.el.getBoundingClientRect()))}i=t.default?ap(t.default()):[];for(let c=0;c<i.length;c++){const u=i[c];u.key!=null&&Ds(u,Ko(u,a,r,n))}return Q(l,null,i)}}},Y0=e=>delete e.mode;Uw.props;const f8=Uw;function J0(e){const t=e.el;t[xl]&&t[xl](),t[yg]&&t[yg]()}function X0(e){xw.set(e,e.el.getBoundingClientRect())}function Z0(e){const t=$w.get(e),n=xw.get(e),r=t.left-n.left,s=t.top-n.top;if(r||s){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${s}px)`,i.transitionDuration="0s",e}}function Q0(e,t,n){const r=e.cloneNode(),s=e[Ui];s&&s.forEach(a=>{a.split(/\s+/).forEach(l=>l&&r.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&r.classList.add(a)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:o}=Ow(r);return i.removeChild(r),o}const wg=e=>{const t=e.props["onUpdate:modelValue"]||!1;return me(t)?n=>bi(t,n):t};function eR(e){e.target.composing=!0}function bg(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const hu=Symbol("_assign"),tR={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[hu]=wg(s);const i=r||s.props&&s.props.type==="number";oi(e,t?"change":"input",o=>{if(o.target.composing)return;let a=e.value;n&&(a=a.trim()),i&&(a=sd(a)),e[hu](a)}),n&&oi(e,"change",()=>{e.value=e.value.trim()}),t||(oi(e,"compositionstart",eR),oi(e,"compositionend",bg),oi(e,"change",bg))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:i}},o){if(e[hu]=wg(o),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?sd(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===l)||(e.value=l))}},nR=["ctrl","shift","alt","meta"],rR={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>nR.some(n=>e[`${n}Key`]&&!t.includes(n))},p8=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(s,...i)=>{for(let o=0;o<t.length;o++){const a=rR[t[o]];if(a&&a(s,t))return}return e(s,...i)})},sR={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},h8=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=s=>{if(!("key"in s))return;const i=os(s.key);if(t.some(o=>o===i||sR[o]===i))return e(s)})},Fw=ht({patchProp:G0},P0);let Ao,Eg=!1;function iR(){return Ao||(Ao=e0(Fw))}function oR(){return Ao=Eg?Ao:t0(Fw),Eg=!0,Ao}const aR=(...e)=>{const t=iR().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Hw(r);if(!s)return;const i=t._component;!ye(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.innerHTML="";const o=n(s,!1,Bw(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t},lR=(...e)=>{const t=oR().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Hw(r);if(s)return n(s,!0,Bw(s))},t};function Bw(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Hw(e){return tt(e)?document.querySelector(e):e}const cR=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,uR=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,dR=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function fR(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){pR(e);return}return t}function pR(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function qo(e,t={}){if(typeof e!="string")return e;const n=e.trim();if(e[0]==='"'&&e.endsWith('"')&&!e.includes("\\"))return n.slice(1,-1);if(n.length<=9){const r=n.toLowerCase();if(r==="true")return!0;if(r==="false")return!1;if(r==="undefined")return;if(r==="null")return null;if(r==="nan")return Number.NaN;if(r==="infinity")return Number.POSITIVE_INFINITY;if(r==="-infinity")return Number.NEGATIVE_INFINITY}if(!dR.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(cR.test(e)||uR.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,fR)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const hR=/#/g,gR=/&/g,mR=/\//g,_R=/=/g,bp=/\+/g,vR=/%5e/gi,yR=/%60/gi,wR=/%7c/gi,bR=/%20/gi;function ER(e){return encodeURI(""+e).replace(wR,"|")}function Td(e){return ER(typeof e=="string"?e:JSON.stringify(e)).replace(bp,"%2B").replace(bR,"+").replace(hR,"%23").replace(gR,"%26").replace(yR,"`").replace(vR,"^").replace(mR,"%2F")}function gu(e){return Td(e).replace(_R,"%3D")}function Ul(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function TR(e){return Ul(e.replace(bp," "))}function SR(e){return Ul(e.replace(bp," "))}function jw(e=""){const t={};e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const s=TR(r[1]);if(s==="__proto__"||s==="constructor")continue;const i=SR(r[2]||"");t[s]===void 0?t[s]=i:Array.isArray(t[s])?t[s].push(i):t[s]=[t[s],i]}return t}function kR(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${gu(e)}=${Td(n)}`).join("&"):`${gu(e)}=${Td(t)}`:gu(e)}function IR(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>kR(t,e[t])).filter(Boolean).join("&")}const RR=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,CR=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,AR=/^([/\\]\s*){2,}[^/\\]/,OR=/^[\s\0]*(blob|data|javascript|vbscript):$/i,PR=/\/$|\/\?|\/#/,LR=/^\.?\//;function Yn(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?RR.test(e):CR.test(e)||(t.acceptRelative?AR.test(e):!1)}function DR(e){return!!e&&OR.test(e)}function Sd(e="",t){return t?PR.test(e):e.endsWith("/")}function Cc(e="",t){if(!t)return(Sd(e)?e.slice(0,-1):e)||"/";if(!Sd(e,!0))return e||"/";let n=e,r="";const s=e.indexOf("#");s>=0&&(n=e.slice(0,s),r=e.slice(s));const[i,...o]=n.split("?");return((i.endsWith("/")?i.slice(0,-1):i)||"/")+(o.length>0?`?${o.join("?")}`:"")+r}function Fl(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(Sd(e,!0))return e||"/";let n=e,r="";const s=e.indexOf("#");if(s>=0&&(n=e.slice(0,s),r=e.slice(s),!n))return r;const[i,...o]=n.split("?");return i+"/"+(o.length>0?`?${o.join("?")}`:"")+r}function NR(e=""){return e.startsWith("/")}function Tg(e=""){return NR(e)?e:"/"+e}function MR(e,t){if(Vw(t)||Yn(e))return e;const n=Cc(t);return e.startsWith(n)?e:no(n,e)}function Sg(e,t){if(Vw(t))return e;const n=Cc(t);if(!e.startsWith(n))return e;const r=e.slice(n.length);return r[0]==="/"?r:"/"+r}function zw(e,t){const n=xR(e),r={...jw(n.search),...t};return n.search=IR(r),UR(n)}function Vw(e){return!e||e==="/"}function $R(e){return e&&e!=="/"}function no(e,...t){let n=e||"";for(const r of t.filter(s=>$R(s)))if(n){const s=r.replace(LR,"");n=Fl(n)+s}else n=r;return n}function Ww(...e){var o,a,l,c;const t=/\/(?!\/)/,n=e.filter(Boolean),r=[];let s=0;for(const u of n)if(!(!u||u==="/")){for(const[d,f]of u.split(t).entries())if(!(!f||f===".")){if(f===".."){if(r.length===1&&Yn(r[0]))continue;r.pop(),s--;continue}if(d===1&&((o=r[r.length-1])!=null&&o.endsWith(":/"))){r[r.length-1]+="/"+f;continue}r.push(f),s++}}let i=r.join("/");return s>=0?(a=n[0])!=null&&a.startsWith("/")&&!i.startsWith("/")?i="/"+i:(l=n[0])!=null&&l.startsWith("./")&&!i.startsWith("./")&&(i="./"+i):i="../".repeat(-1*s)+i,(c=n[n.length-1])!=null&&c.endsWith("/")&&!i.endsWith("/")&&(i+="/"),i}function kd(e,t,n={}){return n.trailingSlash||(e=Fl(e),t=Fl(t)),n.leadingSlash||(e=Tg(e),t=Tg(t)),n.encoding||(e=Ul(e),t=Ul(t)),e===t}const Kw=Symbol.for("ufo:protocolRelative");function xR(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,d,f=""]=n;return{protocol:d.toLowerCase(),pathname:f,href:d+f,auth:"",host:"",search:"",hash:""}}if(!Yn(e,{acceptRelative:!0}))return Id(e);const[,r="",s,i=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,o="",a=""]=i.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:c,hash:u}=Id(a);return{protocol:r.toLowerCase(),auth:s?s.slice(0,Math.max(0,s.length-1)):"",host:o,pathname:l,search:c,hash:u,[Kw]:!r}}function Id(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function UR(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",s=e.auth?e.auth+"@":"",i=e.host||"";return(e.protocol||e[Kw]?(e.protocol||"")+"//":"")+s+i+t+n+r}class FR extends Error{constructor(t,n){super(t,n),this.name="FetchError",n!=null&&n.cause&&!this.cause&&(this.cause=n.cause)}}function BR(e){var l,c,u,d,f;const t=((l=e.error)==null?void 0:l.message)||((c=e.error)==null?void 0:c.toString())||"",n=((u=e.request)==null?void 0:u.method)||((d=e.options)==null?void 0:d.method)||"GET",r=((f=e.request)==null?void 0:f.url)||String(e.request)||"/",s=`[${n}] ${JSON.stringify(r)}`,i=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",o=`${s}: ${i}${t?` ${t}`:""}`,a=new FR(o,e.error?{cause:e.error}:void 0);for(const p of["request","options","response"])Object.defineProperty(a,p,{get(){return e[p]}});for(const[p,g]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,p,{get(){return e.response&&e.response[g]}});return a}const HR=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function kg(e="GET"){return HR.has(e.toUpperCase())}function jR(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const zR=new Set(["image/svg","application/xml","application/xhtml","application/html"]),VR=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function WR(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return VR.test(t)?"json":zR.has(t)||t.startsWith("text/")?"text":"blob"}function KR(e,t,n=globalThis.Headers){const r={...t,...e};if(t!=null&&t.params&&(e!=null&&e.params)&&(r.params={...t==null?void 0:t.params,...e==null?void 0:e.params}),t!=null&&t.query&&(e!=null&&e.query)&&(r.query={...t==null?void 0:t.query,...e==null?void 0:e.query}),t!=null&&t.headers&&(e!=null&&e.headers)){r.headers=new n((t==null?void 0:t.headers)||{});for(const[s,i]of new n((e==null?void 0:e.headers)||{}))r.headers.set(s,i)}return r}const GR=new Set([408,409,425,429,500,502,503,504]),qR=new Set([101,204,205,304]);function Gw(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function s(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let u;typeof a.options.retry=="number"?u=a.options.retry:u=kg(a.options.method)?0:1;const d=a.response&&a.response.status||500;if(u>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(d):GR.has(d))){const f=a.options.retryDelay||0;return f>0&&await new Promise(p=>setTimeout(p,f)),i(a.request,{...a.options,retry:u-1})}}const c=BR(a);throw Error.captureStackTrace&&Error.captureStackTrace(c,i),c}const i=async function(l,c={}){var p;const u={request:l,options:KR(c,e.defaults,n),response:void 0,error:void 0};u.options.method=(p=u.options.method)==null?void 0:p.toUpperCase(),u.options.onRequest&&await u.options.onRequest(u),typeof u.request=="string"&&(u.options.baseURL&&(u.request=MR(u.request,u.options.baseURL)),(u.options.query||u.options.params)&&(u.request=zw(u.request,{...u.options.params,...u.options.query}))),u.options.body&&kg(u.options.method)&&(jR(u.options.body)?(u.options.body=typeof u.options.body=="string"?u.options.body:JSON.stringify(u.options.body),u.options.headers=new n(u.options.headers||{}),u.options.headers.has("content-type")||u.options.headers.set("content-type","application/json"),u.options.headers.has("accept")||u.options.headers.set("accept","application/json")):("pipeTo"in u.options.body&&typeof u.options.body.pipeTo=="function"||typeof u.options.body.pipe=="function")&&("duplex"in u.options||(u.options.duplex="half")));let d;if(!u.options.signal&&u.options.timeout){const g=new r;d=setTimeout(()=>g.abort(),u.options.timeout),u.options.signal=g.signal}try{u.response=await t(u.request,u.options)}catch(g){return u.error=g,u.options.onRequestError&&await u.options.onRequestError(u),await s(u)}finally{d&&clearTimeout(d)}if(u.response.body&&!qR.has(u.response.status)&&u.options.method!=="HEAD"){const g=(u.options.parseResponse?"json":u.options.responseType)||WR(u.response.headers.get("content-type")||"");switch(g){case"json":{const v=await u.response.text(),w=u.options.parseResponse||qo;u.response._data=w(v);break}case"stream":{u.response._data=u.response.body;break}default:u.response._data=await u.response[g]()}}return u.options.onResponse&&await u.options.onResponse(u),!u.options.ignoreResponseError&&u.response.status>=400&&u.response.status<600?(u.options.onResponseError&&await u.options.onResponseError(u),await s(u)):u.response},o=async function(l,c){return(await i(l,c))._data};return o.raw=i,o.native=(...a)=>t(...a),o.create=(a={})=>Gw({...e,defaults:{...e.defaults,...a}}),o}const Ep=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),YR=Ep.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),JR=Ep.Headers,XR=Ep.AbortController,qw=Gw({fetch:YR,Headers:JR,AbortController:XR}),ZR=qw,QR=()=>{var e;return((e=window==null?void 0:window.__NUXT__)==null?void 0:e.config)||{}},Bl=QR().app,eC=()=>Bl.baseURL,tC=()=>Bl.buildAssetsDir,Tp=(...e)=>Ww(Yw(),tC(),...e),Yw=(...e)=>{const t=Bl.cdnURL||Bl.baseURL;return e.length?Ww(t,...e):t};globalThis.__buildAssetsURL=Tp,globalThis.__publicAssetsURL=Yw;globalThis.$fetch||(globalThis.$fetch=ZR.create({baseURL:eC()}));function Rd(e,t={},n){for(const r in e){const s=e[r],i=n?`${n}:${r}`:r;typeof s=="object"&&s!==null?Rd(s,t,i):typeof s=="function"&&(t[i]=s)}return t}const nC={run:e=>e()},rC=()=>nC,Jw=typeof console.createTask<"u"?console.createTask:rC;function sC(e,t){const n=t.shift(),r=Jw(n);return e.reduce((s,i)=>s.then(()=>r.run(()=>i(...t))),Promise.resolve())}function iC(e,t){const n=t.shift(),r=Jw(n);return Promise.all(e.map(s=>r.run(()=>s(...t))))}function mu(e,t){for(const n of[...e])n(t)}class oC{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const s=t;let i;for(;this._deprecatedHooks[t];)i=this._deprecatedHooks[t],t=i.to;if(i&&!r.allowDeprecated){let o=i.message;o||(o=`${s} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(o)||(console.warn(o),this._deprecatedMessages.add(o))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,s=(...i)=>(typeof r=="function"&&r(),r=void 0,s=void 0,n(...i));return r=this.hook(t,s),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const s of r)this.hook(t,s)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=Rd(t),r=Object.keys(n).map(s=>this.hook(s,n[s]));return()=>{for(const s of r.splice(0,r.length))s()}}removeHooks(t){const n=Rd(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(sC,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(iC,t,...n)}callHookWith(t,n,...r){const s=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&mu(this._before,s);const i=t(n in this._hooks?[...this._hooks[n]]:[],r);return i instanceof Promise?i.finally(()=>{this._after&&s&&mu(this._after,s)}):(this._after&&s&&mu(this._after,s),i)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function Xw(){return new oC}function aC(e={}){let t,n=!1;const r=o=>{if(t&&t!==o)throw new Error("Context conflict")};let s;if(e.asyncContext){const o=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;o?s=new o:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const i=()=>{if(s&&t===void 0){const o=s.getStore();if(o!==void 0)return o}return t};return{use:()=>{const o=i();if(o===void 0)throw new Error("Context is not available");return o},tryUse:()=>i(),set:(o,a)=>{a||r(o),t=o,n=!0},unset:()=>{t=void 0,n=!1},call:(o,a)=>{r(o),t=o;try{return s?s.run(o,a):a()}finally{n||(t=void 0)}},async callAsync(o,a){t=o;const l=()=>{t=o},c=()=>t===o?l:void 0;Cd.add(c);try{const u=s?s.run(o,a):a();return n||(t=void 0),await u}finally{Cd.delete(c)}}}}function lC(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=aC({...e,...r})),t[n],t[n]}}}const Hl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},Ig="__unctx__",cC=Hl[Ig]||(Hl[Ig]=lC()),uC=(e,t={})=>cC.get(e,t),Rg="__unctx_async_handlers__",Cd=Hl[Rg]||(Hl[Rg]=new Set);function Hn(e){const t=[];for(const s of Cd){const i=s();i&&t.push(i)}const n=()=>{for(const s of t)s()};let r=e();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(s=>{throw n(),s})),[r,n]}const dC=!1,Ad=!1,fC=!1,g8={componentName:"NuxtLink"},di={value:null,errorValue:null,deep:!0},pC=null,m8={},hC="#__nuxt",Zw="nuxt-app",Cg=36e5;function Qw(e=Zw){return uC(e,{asyncContext:!1})}const gC="__nuxt_plugin";function mC(e){let t=0;const n={_name:Zw,_scope:eo(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.12.4"},get vue(){return n.vueApp.version}},payload:sr({data:sr({}),state:gn({}),once:new Set,_errors:sr({})}),static:{data:{}},runWithContext(s){return n._scope.active&&!Vs()?n._scope.run(()=>Ag(n,s)):Ag(n,s)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let s=!1;return()=>{if(!s&&(s=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:sr({}),_payloadRevivers:{},...e};if(window.__NUXT__)for(const s in window.__NUXT__)switch(s){case"data":case"state":case"_errors":Object.assign(n.payload[s],window.__NUXT__[s]);break;default:n.payload[s]=window.__NUXT__[s]}n.hooks=Xw(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(s,i)=>{const o="$"+s;Va(n,o,i),Va(n.vueApp.config.globalProperties,o,i)},Va(n.vueApp,"$nuxt",n),Va(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener("nuxt.preloadError",i=>{n.callHook("app:chunkError",{error:i.payload})}),window.useNuxtApp=window.useNuxtApp||De;const s=n.hook("app:error",(...i)=>{console.error("[nuxt] error caught during app initialization",...i)});n.hook("app:mounted",s)}const r=n.payload.config;return n.provide("config",r),n}function _C(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function vC(e,t){if(typeof t=="function"){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n=="object")for(const r in n)e.provide(r,n[r])}}async function yC(e,t){const n=[],r=[],s=[],i=[];let o=0;async function a(l){var u;const c=((u=l.dependsOn)==null?void 0:u.filter(d=>t.some(f=>f._name===d)&&!n.includes(d)))??[];if(c.length>0)r.push([new Set(c),l]);else{const d=vC(e,l).then(async()=>{l._name&&(n.push(l._name),await Promise.all(r.map(async([f,p])=>{f.has(l._name)&&(f.delete(l._name),f.size===0&&(o++,await a(p)))})))});l.parallel?s.push(d.catch(f=>i.push(f))):await d}}for(const l of t)_C(e,l);for(const l of t)await a(l);if(await Promise.all(s),o)for(let l=0;l<o;l++)await Promise.all(s);if(i.length)throw i[0]}function gt(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[gC]:!0,_name:t})}function Ag(e,t,n){const r=()=>n?t(...n):t();return Qw(e._name).set(e),e.vueApp.runWithContext(r)}function wC(e){var n;let t;return gp()&&(t=(n=Nt())==null?void 0:n.appContext.app.$nuxt),t=t||Qw(e).tryUse(),t||null}function De(e){const t=wC(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function kt(e){return De().$config}function Va(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function bC(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");const n={},s=(t||{}).decode||EC;let i=0;for(;i<e.length;){const o=e.indexOf("=",i);if(o===-1)break;let a=e.indexOf(";",i);if(a===-1)a=e.length;else if(a<o){i=e.lastIndexOf(";",o-1)+1;continue}const l=e.slice(i,o).trim();if(n[l]===void 0){let c=e.slice(o+1,a).trim();c.codePointAt(0)===34&&(c=c.slice(1,-1)),n[l]=TC(c,s)}i=a+1}return n}function EC(e){return e.includes("%")?decodeURIComponent(e):e}function TC(e,t){try{return t(e)}catch{return e}}const Wa=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function Og(e,t,n){const r=n||{},s=r.encode||encodeURIComponent;if(typeof s!="function")throw new TypeError("option encode is invalid");if(!Wa.test(e))throw new TypeError("argument name is invalid");const i=s(t);if(i&&!Wa.test(i))throw new TypeError("argument val is invalid");let o=e+"="+i;if(r.maxAge!==void 0&&r.maxAge!==null){const a=r.maxAge-0;if(Number.isNaN(a)||!Number.isFinite(a))throw new TypeError("option maxAge is invalid");o+="; Max-Age="+Math.floor(a)}if(r.domain){if(!Wa.test(r.domain))throw new TypeError("option domain is invalid");o+="; Domain="+r.domain}if(r.path){if(!Wa.test(r.path))throw new TypeError("option path is invalid");o+="; Path="+r.path}if(r.expires){if(!SC(r.expires)||Number.isNaN(r.expires.valueOf()))throw new TypeError("option expires is invalid");o+="; Expires="+r.expires.toUTCString()}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.priority)switch(typeof r.priority=="string"?r.priority.toLowerCase():r.priority){case"low":{o+="; Priority=Low";break}case"medium":{o+="; Priority=Medium";break}case"high":{o+="; Priority=High";break}default:throw new TypeError("option priority is invalid")}if(r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:{o+="; SameSite=Strict";break}case"lax":{o+="; SameSite=Lax";break}case"strict":{o+="; SameSite=Strict";break}case"none":{o+="; SameSite=None";break}default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(o+="; Partitioned"),o}function SC(e){return Object.prototype.toString.call(e)==="[object Date]"||e instanceof Date}const Pg=Object.freeze({ignoreUnknown:!1,respectType:!1,respectFunctionNames:!1,respectFunctionProperties:!1,unorderedObjects:!0,unorderedArrays:!1,unorderedSets:!1,excludeKeys:void 0,excludeValues:void 0,replacer:void 0});function Od(e,t){t?t={...Pg,...t}:t=Pg;const n=eb(t);return n.dispatch(e),n.toString()}const kC=Object.freeze(["prototype","__proto__","constructor"]);function eb(e){let t="",n=new Map;const r=s=>{t+=s};return{toString(){return t},getContext(){return n},dispatch(s){return e.replacer&&(s=e.replacer(s)),this[s===null?"null":typeof s](s)},object(s){if(s&&typeof s.toJSON=="function")return this.object(s.toJSON());const i=Object.prototype.toString.call(s);let o="";const a=i.length;a<10?o="unknown:["+i+"]":o=i.slice(8,a-1),o=o.toLowerCase();let l=null;if((l=n.get(s))===void 0)n.set(s,n.size);else return this.dispatch("[CIRCULAR:"+l+"]");if(typeof Buffer<"u"&&Buffer.isBuffer&&Buffer.isBuffer(s))return r("buffer:"),r(s.toString("utf8"));if(o!=="object"&&o!=="function"&&o!=="asyncfunction")this[o]?this[o](s):e.ignoreUnknown||this.unkown(s,o);else{let c=Object.keys(s);e.unorderedObjects&&(c=c.sort());let u=[];e.respectType!==!1&&!Lg(s)&&(u=kC),e.excludeKeys&&(c=c.filter(f=>!e.excludeKeys(f)),u=u.filter(f=>!e.excludeKeys(f))),r("object:"+(c.length+u.length)+":");const d=f=>{this.dispatch(f),r(":"),e.excludeValues||this.dispatch(s[f]),r(",")};for(const f of c)d(f);for(const f of u)d(f)}},array(s,i){if(i=i===void 0?e.unorderedArrays!==!1:i,r("array:"+s.length+":"),!i||s.length<=1){for(const l of s)this.dispatch(l);return}const o=new Map,a=s.map(l=>{const c=eb(e);c.dispatch(l);for(const[u,d]of c.getContext())o.set(u,d);return c.toString()});return n=o,a.sort(),this.array(a,!1)},date(s){return r("date:"+s.toJSON())},symbol(s){return r("symbol:"+s.toString())},unkown(s,i){if(r(i),!!s&&(r(":"),s&&typeof s.entries=="function"))return this.array(Array.from(s.entries()),!0)},error(s){return r("error:"+s.toString())},boolean(s){return r("bool:"+s)},string(s){r("string:"+s.length+":"),r(s)},function(s){r("fn:"),Lg(s)?this.dispatch("[native]"):this.dispatch(s.toString()),e.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(s.name)),e.respectFunctionProperties&&this.object(s)},number(s){return r("number:"+s)},xml(s){return r("xml:"+s.toString())},null(){return r("Null")},undefined(){return r("Undefined")},regexp(s){return r("regex:"+s.toString())},uint8array(s){return r("uint8array:"),this.dispatch(Array.prototype.slice.call(s))},uint8clampedarray(s){return r("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(s))},int8array(s){return r("int8array:"),this.dispatch(Array.prototype.slice.call(s))},uint16array(s){return r("uint16array:"),this.dispatch(Array.prototype.slice.call(s))},int16array(s){return r("int16array:"),this.dispatch(Array.prototype.slice.call(s))},uint32array(s){return r("uint32array:"),this.dispatch(Array.prototype.slice.call(s))},int32array(s){return r("int32array:"),this.dispatch(Array.prototype.slice.call(s))},float32array(s){return r("float32array:"),this.dispatch(Array.prototype.slice.call(s))},float64array(s){return r("float64array:"),this.dispatch(Array.prototype.slice.call(s))},arraybuffer(s){return r("arraybuffer:"),this.dispatch(new Uint8Array(s))},url(s){return r("url:"+s.toString())},map(s){r("map:");const i=[...s];return this.array(i,e.unorderedSets!==!1)},set(s){r("set:");const i=[...s];return this.array(i,e.unorderedSets!==!1)},file(s){return r("file:"),this.dispatch([s.name,s.size,s.type,s.lastModfied])},blob(){if(e.ignoreUnknown)return r("[blob]");throw new Error(`Hashing Blob objects is currently not supported
Use "options.replacer" or "options.ignoreUnknown"
`)},domwindow(){return r("domwindow")},bigint(s){return r("bigint:"+s.toString())},process(){return r("process")},timer(){return r("timer")},pipe(){return r("pipe")},tcp(){return r("tcp")},udp(){return r("udp")},tty(){return r("tty")},statwatcher(){return r("statwatcher")},securecontext(){return r("securecontext")},connection(){return r("connection")},zlib(){return r("zlib")},context(){return r("context")},nodescript(){return r("nodescript")},httpparser(){return r("httpparser")},dataview(){return r("dataview")},signal(){return r("signal")},fsevent(){return r("fsevent")},tlswrap(){return r("tlswrap")}}}const tb="[native code] }",IC=tb.length;function Lg(e){return typeof e!="function"?!1:Function.prototype.toString.call(e).slice(-IC)===tb}class Qr{constructor(t,n){t=this.words=t||[],this.sigBytes=n===void 0?t.length*4:n}toString(t){return(t||RC).stringify(this)}concat(t){if(this.clamp(),this.sigBytes%4)for(let n=0;n<t.sigBytes;n++){const r=t.words[n>>>2]>>>24-n%4*8&255;this.words[this.sigBytes+n>>>2]|=r<<24-(this.sigBytes+n)%4*8}else for(let n=0;n<t.sigBytes;n+=4)this.words[this.sigBytes+n>>>2]=t.words[n>>>2];return this.sigBytes+=t.sigBytes,this}clamp(){this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4)}clone(){return new Qr([...this.words])}}const RC={stringify(e){const t=[];for(let n=0;n<e.sigBytes;n++){const r=e.words[n>>>2]>>>24-n%4*8&255;t.push((r>>>4).toString(16),(r&15).toString(16))}return t.join("")}},CC={stringify(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=[];for(let r=0;r<e.sigBytes;r+=3){const s=e.words[r>>>2]>>>24-r%4*8&255,i=e.words[r+1>>>2]>>>24-(r+1)%4*8&255,o=e.words[r+2>>>2]>>>24-(r+2)%4*8&255,a=s<<16|i<<8|o;for(let l=0;l<4&&r*8+l*6<e.sigBytes*8;l++)n.push(t.charAt(a>>>6*(3-l)&63))}return n.join("")}},AC={parse(e){const t=e.length,n=[];for(let r=0;r<t;r++)n[r>>>2]|=(e.charCodeAt(r)&255)<<24-r%4*8;return new Qr(n,t)}},OC={parse(e){return AC.parse(unescape(encodeURIComponent(e)))}};class PC{constructor(){this._data=new Qr,this._nDataBytes=0,this._minBufferSize=0,this.blockSize=512/32}reset(){this._data=new Qr,this._nDataBytes=0}_append(t){typeof t=="string"&&(t=OC.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes}_doProcessBlock(t,n){}_process(t){let n,r=this._data.sigBytes/(this.blockSize*4);t?r=Math.ceil(r):r=Math.max((r|0)-this._minBufferSize,0);const s=r*this.blockSize,i=Math.min(s*4,this._data.sigBytes);if(s){for(let o=0;o<s;o+=this.blockSize)this._doProcessBlock(this._data.words,o);n=this._data.words.splice(0,s),this._data.sigBytes-=i}return new Qr(n,i)}}class LC extends PC{update(t){return this._append(t),this._process(),this}finalize(t){t&&this._append(t)}}const Dg=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],DC=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],_s=[];class NC extends LC{constructor(){super(...arguments),this._hash=new Qr([...Dg])}reset(){super.reset(),this._hash=new Qr([...Dg])}_doProcessBlock(t,n){const r=this._hash.words;let s=r[0],i=r[1],o=r[2],a=r[3],l=r[4],c=r[5],u=r[6],d=r[7];for(let f=0;f<64;f++){if(f<16)_s[f]=t[n+f]|0;else{const h=_s[f-15],_=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,b=_s[f-2],E=(b<<15|b>>>17)^(b<<13|b>>>19)^b>>>10;_s[f]=_+_s[f-7]+E+_s[f-16]}const p=l&c^~l&u,g=s&i^s&o^i&o,v=(s<<30|s>>>2)^(s<<19|s>>>13)^(s<<10|s>>>22),w=(l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25),y=d+w+p+DC[f]+_s[f],m=v+g;d=u,u=c,c=l,l=a+y|0,a=o,o=i,i=s,s=y+m|0}r[0]=r[0]+s|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+l|0,r[5]=r[5]+c|0,r[6]=r[6]+u|0,r[7]=r[7]+d|0}finalize(t){super.finalize(t);const n=this._nDataBytes*8,r=this._data.sigBytes*8;return this._data.words[r>>>5]|=128<<24-r%32,this._data.words[(r+64>>>9<<4)+14]=Math.floor(n/4294967296),this._data.words[(r+64>>>9<<4)+15]=n,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}}function MC(e){return new NC().finalize(e).toString(CC)}function _8(e,t={}){const n=typeof e=="string"?e:Od(e,t);return MC(n).slice(0,10)}function $C(e,t,n={}){return e===t||Od(e,n)===Od(t,n)}function xC(e,t){return{ctx:{table:e},matchAll:n=>rb(n,e)}}function nb(e){const t={};for(const n in e)t[n]=n==="dynamic"?new Map(Object.entries(e[n]).map(([r,s])=>[r,nb(s)])):new Map(Object.entries(e[n]));return t}function UC(e){return xC(nb(e))}function rb(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1)||"/");const r=[];for(const[i,o]of Ng(t.wildcard))(e===i||e.startsWith(i+"/"))&&r.push(o);for(const[i,o]of Ng(t.dynamic))if(e.startsWith(i+"/")){const a="/"+e.slice(i.length).split("/").splice(2).join("/");r.push(...rb(a,o))}const s=t.static.get(e);return s&&r.push(s),r.filter(Boolean)}function Ng(e){return[...e.entries()].sort((t,n)=>t[0].length-n[0].length)}function _u(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function Pd(e,t,n=".",r){if(!_u(t))return Pd(e,{},n,r);const s=Object.assign({},t);for(const i in e){if(i==="__proto__"||i==="constructor")continue;const o=e[i];o!=null&&(r&&r(s,i,o,n)||(Array.isArray(o)&&Array.isArray(s[i])?s[i]=[...o,...s[i]]:_u(o)&&_u(s[i])?s[i]=Pd(o,s[i],(n?`${n}.`:"")+i.toString(),r):s[i]=o))}return s}function FC(e){return(...t)=>t.reduce((n,r)=>Pd(n,r,"",e),{})}const sb=FC();function BC(e,t){try{return t in e}catch{return!1}}var HC=Object.defineProperty,jC=(e,t,n)=>t in e?HC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Es=(e,t,n)=>(jC(e,typeof t!="symbol"?t+"":t,n),n);class Ld extends Error{constructor(t,n={}){super(t,n),Es(this,"statusCode",500),Es(this,"fatal",!1),Es(this,"unhandled",!1),Es(this,"statusMessage"),Es(this,"data"),Es(this,"cause"),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const t={message:this.message,statusCode:Nd(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=ib(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}Es(Ld,"__h3_error__",!0);function Dd(e){if(typeof e=="string")return new Ld(e);if(zC(e))return e;const t=new Ld(e.message??e.statusMessage??"",{cause:e.cause||e});if(BC(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=Nd(e.statusCode,t.statusCode):e.status&&(t.statusCode=Nd(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;ib(t.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function zC(e){var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.__h3_error__)===!0}const VC=/[^\u0009\u0020-\u007E]/g;function ib(e=""){return e.replace(VC,"")}function Nd(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const ob=Symbol("layout-meta"),pa=Symbol("route"),Ht=()=>{var e;return(e=De())==null?void 0:e.$router},ha=()=>gp()?et(pa,De()._route):De()._route;function v8(e){return e}const WC=(e,t,n={})=>{const r=De(),s=n.global||typeof e!="string",i=t;if(!i){console.warn("[nuxt] No route middleware passed to `addRouteMiddleware`.",e);return}s?r._middleware.global.push(i):r._middleware.named[e]=i},KC=()=>{try{if(De()._processingMiddleware)return!0}catch{return!1}return!1},GC=(e,t)=>{e||(e="/");const n=typeof e=="string"?e:"path"in e?qC(e):Ht().resolve(e).href;if(t!=null&&t.open){const{target:l="_blank",windowFeatures:c={}}=t.open,u=Object.entries(c).filter(([d,f])=>f!==void 0).map(([d,f])=>`${d.toLowerCase()}=${f}`).join(", ");return open(n,l,u),Promise.resolve()}const r=Yn(n,{acceptRelative:!0}),s=(t==null?void 0:t.external)||r;if(s){if(!(t!=null&&t.external))throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:l}=new URL(n,window.location.href);if(l&&DR(l))throw new Error(`Cannot navigate to a URL with '${l}' protocol.`)}const i=KC();if(!s&&i)return e;const o=Ht(),a=De();return s?(a._scope.stop(),t!=null&&t.replace?location.replace(n):location.href=n,i?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t!=null&&t.replace?o.replace(e):o.push(e)};function qC(e){return zw(e.path||"",e.query||{})+(e.hash||"")}const ab="__nuxt_error",ga=()=>da(De().payload,"error"),fi=e=>{const t=ro(e);try{const n=De(),r=ga();n.hooks.callHook("app:error",t),r.value=r.value||t}catch{throw t}return t},YC=async(e={})=>{const t=De(),n=ga();t.callHook("app:error:cleared",e),e.redirect&&await Ht().replace(e.redirect),n.value=pC},JC=e=>!!e&&typeof e=="object"&&ab in e,ro=e=>{const t=Dd(e);return Object.defineProperty(t,ab,{value:!0,configurable:!1,writable:!1}),t},XC=-1,ZC=-2,QC=-3,eA=-4,tA=-5,nA=-6;function rA(e,t){return sA(JSON.parse(e),t)}function sA(e,t){if(typeof e=="number")return s(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function s(i,o=!1){if(i===XC)return;if(i===QC)return NaN;if(i===eA)return 1/0;if(i===tA)return-1/0;if(i===nA)return-0;if(o)throw new Error("Invalid input");if(i in r)return r[i];const a=n[i];if(!a||typeof a!="object")r[i]=a;else if(Array.isArray(a))if(typeof a[0]=="string"){const l=a[0],c=t==null?void 0:t[l];if(c)return r[i]=c(s(a[1]));switch(l){case"Date":r[i]=new Date(a[1]);break;case"Set":const u=new Set;r[i]=u;for(let p=1;p<a.length;p+=1)u.add(s(a[p]));break;case"Map":const d=new Map;r[i]=d;for(let p=1;p<a.length;p+=2)d.set(s(a[p]),s(a[p+1]));break;case"RegExp":r[i]=new RegExp(a[1],a[2]);break;case"Object":r[i]=Object(a[1]);break;case"BigInt":r[i]=BigInt(a[1]);break;case"null":const f=Object.create(null);r[i]=f;for(let p=1;p<a.length;p+=2)f[a[p]]=s(a[p+1]);break;default:throw new Error(`Unknown type ${l}`)}}else{const l=new Array(a.length);r[i]=l;for(let c=0;c<a.length;c+=1){const u=a[c];u!==ZC&&(l[c]=s(u))}}else{const l={};r[i]=l;for(const c in a){const u=a[c];l[c]=s(u)}}return r[i]}return s(0)}function iA(e){return Array.isArray(e)?e:[e]}const oA=["title","titleTemplate","script","style","noscript"],pl=["base","meta","link","style","script","noscript"],aA=["title","titleTemplate","templateParams","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"],lA=["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"],lb=["tagPosition","tagPriority","tagDuplicateStrategy","children","innerHTML","textContent","processTemplateParams"],cA=typeof window<"u";function Sp(e){let t=9;for(let n=0;n<e.length;)t=Math.imul(t^e.charCodeAt(n++),9**9);return((t^t>>>9)+65536).toString(16).substring(1,8).toLowerCase()}function Mg(e){return e._h||Sp(e._d?e._d:`${e.tag}:${e.textContent||e.innerHTML||""}:${Object.entries(e.props).map(([t,n])=>`${t}:${String(n)}`).join(",")}`)}function cb(e,t){const{props:n,tag:r}=e;if(lA.includes(r))return r;if(r==="link"&&n.rel==="canonical")return"canonical";if(n.charset)return"charset";const s=["id"];r==="meta"&&s.push("name","property","http-equiv");for(const i of s)if(typeof n[i]<"u"){const o=String(n[i]);return`${r}:${i}:${o}`}return!1}function $g(e,t){return e==null?t||null:typeof e=="function"?e(t):e}async function uA(e,t,n){const r={tag:e,props:await ub(typeof t=="object"&&typeof t!="function"&&!(t instanceof Promise)?{...t}:{[["script","noscript","style"].includes(e)?"innerHTML":"textContent"]:t},["templateParams","titleTemplate"].includes(e))};return lb.forEach(s=>{const i=typeof r.props[s]<"u"?r.props[s]:n[s];typeof i<"u"&&((!["innerHTML","textContent","children"].includes(s)||oA.includes(r.tag))&&(r[s==="children"?"innerHTML":s]=i),delete r.props[s])}),r.props.body&&(r.tagPosition="bodyClose",delete r.props.body),r.tag==="script"&&typeof r.innerHTML=="object"&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map(s=>({...r,props:{...r.props,content:s}})):r}function dA(e,t){var r;const n=e==="class"?" ":";";return typeof t=="object"&&!Array.isArray(t)&&(t=Object.entries(t).filter(([,s])=>s).map(([s,i])=>e==="style"?`${s}:${i}`:s)),(r=String(Array.isArray(t)?t.join(n):t))==null?void 0:r.split(n).filter(s=>s.trim()).filter(Boolean).join(n)}async function ub(e,t){for(const n of Object.keys(e)){if(["class","style"].includes(n)){e[n]=dA(n,e[n]);continue}if(e[n]instanceof Promise&&(e[n]=await e[n]),!t&&!lb.includes(n)){const r=String(e[n]),s=n.startsWith("data-");r==="true"||r===""?e[n]=s?"true":!0:e[n]||(s&&r==="false"?e[n]="false":delete e[n])}}return e}const fA=10;async function pA(e){const t=[];return Object.entries(e.resolvedInput).filter(([n,r])=>typeof r<"u"&&aA.includes(n)).forEach(([n,r])=>{const s=iA(r);t.push(...s.map(i=>uA(n,i,e)).flat())}),(await Promise.all(t)).flat().filter(Boolean).map((n,r)=>(n._e=e._i,e.mode&&(n._m=e.mode),n._p=(e._i<<fA)+r,n))}const xg={base:-10,title:10},Ug={critical:-80,high:-10,low:20};function jl(e){let t=100;const n=e.tagPriority;return typeof n=="number"?n:(e.tag==="meta"?(e.props["http-equiv"]==="content-security-policy"&&(t=-30),e.props.charset&&(t=-20),e.props.name==="viewport"&&(t=-15)):e.tag==="link"&&e.props.rel==="preconnect"?t=20:e.tag in xg&&(t=xg[e.tag]),typeof n=="string"&&n in Ug?t+Ug[n]:t)}const hA=[{prefix:"before:",offset:-1},{prefix:"after:",offset:1}],Fg=["onload","onerror","onabort","onprogress","onloadstart"],Rr="%separator";function hl(e,t,n){if(typeof e!="string"||!e.includes("%"))return e;function r(o){let a;return["s","pageTitle"].includes(o)?a=t.pageTitle:o.includes(".")?a=o.split(".").reduce((l,c)=>l&&l[c]||void 0,t):a=t[o],typeof a<"u"?(a||"").replace(/"/g,'\\"'):!1}let s=e;try{s=decodeURI(e)}catch{}return(s.match(/%(\w+\.+\w+)|%(\w+)/g)||[]).sort().reverse().forEach(o=>{const a=r(o.slice(1));typeof a=="string"&&(e=e.replace(new RegExp(`\\${o}(\\W|$)`,"g"),(l,c)=>`${a}${c}`).trim())}),e.includes(Rr)&&(e.endsWith(Rr)&&(e=e.slice(0,-Rr.length).trim()),e.startsWith(Rr)&&(e=e.slice(Rr.length).trim()),e=e.replace(new RegExp(`\\${Rr}\\s*\\${Rr}`,"g"),Rr),e=hl(e,{separator:n},n)),e}async function db(e,t={}){var u;const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const r={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!r.shouldRender)return;const s=(await e.resolveTags()).map(d=>({tag:d,id:pl.includes(d.tag)?Mg(d):d.tag,shouldRender:!0}));let i=e._dom;if(!i){i={elMap:{htmlAttrs:n.documentElement,bodyAttrs:n.body}};for(const d of["body","head"]){const f=(u=n[d])==null?void 0:u.children,p=[];for(const g of[...f].filter(v=>pl.includes(v.tagName.toLowerCase()))){const v={tag:g.tagName.toLowerCase(),props:await ub(g.getAttributeNames().reduce((m,h)=>({...m,[h]:g.getAttribute(h)}),{})),innerHTML:g.innerHTML};let w=1,y=cb(v);for(;y&&p.find(m=>m._d===y);)y=`${y}:${w++}`;v._d=y||void 0,p.push(v),i.elMap[g.getAttribute("data-hid")||Mg(v)]=g}}}i.pendingSideEffects={...i.sideEffects||{}},i.sideEffects={};function o(d,f,p){const g=`${d}:${f}`;i.sideEffects[g]=p,delete i.pendingSideEffects[g]}function a({id:d,$el:f,tag:p}){const g=p.tag.endsWith("Attrs");i.elMap[d]=f,g||(["textContent","innerHTML"].forEach(v=>{p[v]&&p[v]!==f[v]&&(f[v]=p[v])}),o(d,"el",()=>{var v;(v=i.elMap[d])==null||v.remove(),delete i.elMap[d]}));for(const[v,w]of Object.entries(p._eventHandlers||{}))f.getAttribute(`data-${v}`)!==""&&((p.tag==="bodyAttrs"?n.defaultView:f).addEventListener(v.replace("on",""),w.bind(f)),f.setAttribute(`data-${v}`,""));Object.entries(p.props).forEach(([v,w])=>{const y=`attr:${v}`;if(v==="class")for(const m of(w||"").split(" ").filter(Boolean))g&&o(d,`${y}:${m}`,()=>f.classList.remove(m)),!f.classList.contains(m)&&f.classList.add(m);else if(v==="style")for(const m of(w||"").split(";").filter(Boolean)){const[h,..._]=m.split(":").map(b=>b.trim());o(d,`${y}:${h}`,()=>{f.style.removeProperty(h)}),f.style.setProperty(h,_.join(":"))}else f.getAttribute(v)!==w&&f.setAttribute(v,w===!0?"":String(w)),g&&o(d,y,()=>f.removeAttribute(v))})}const l=[],c={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const d of s){const{tag:f,shouldRender:p,id:g}=d;if(p){if(f.tag==="title"){n.title=f.textContent;continue}d.$el=d.$el||i.elMap[g],d.$el?a(d):pl.includes(f.tag)&&l.push(d)}}for(const d of l){const f=d.tag.tagPosition||"head";d.$el=n.createElement(d.tag.tag),a(d),c[f]=c[f]||n.createDocumentFragment(),c[f].appendChild(d.$el)}for(const d of s)await e.hooks.callHook("dom:renderTag",d,n,o);c.head&&n.head.appendChild(c.head),c.bodyOpen&&n.body.insertBefore(c.bodyOpen,n.body.firstChild),c.bodyClose&&n.body.appendChild(c.bodyClose),Object.values(i.pendingSideEffects).forEach(d=>d()),e._dom=i,e.dirty=!1,await e.hooks.callHook("dom:rendered",{renders:s})}async function gA(e,t={}){const n=t.delayFn||(r=>setTimeout(r,10));return e._domUpdatePromise=e._domUpdatePromise||new Promise(r=>n(async()=>{await db(e,t),delete e._domUpdatePromise,r()}))}function mA(e){return t=>{var r,s;const n=((s=(r=t.resolvedOptions.document)==null?void 0:r.head.querySelector('script[id="unhead:payload"]'))==null?void 0:s.innerHTML)||!1;return n&&t.push(JSON.parse(n)),{mode:"client",hooks:{"entries:updated":function(i){gA(i,e)}}}}}const _A=["templateParams","htmlAttrs","bodyAttrs"],vA={hooks:{"tag:normalise":function({tag:e}){["hid","vmid","key"].forEach(r=>{e.props[r]&&(e.key=e.props[r],delete e.props[r])});const n=cb(e)||(e.key?`${e.tag}:${e.key}`:!1);n&&(e._d=n)},"tags:resolve":function(e){const t={};e.tags.forEach(r=>{const s=(r.key?`${r.tag}:${r.key}`:r._d)||r._p,i=t[s];if(i){let a=r==null?void 0:r.tagDuplicateStrategy;if(!a&&_A.includes(r.tag)&&(a="merge"),a==="merge"){const l=i.props;["class","style"].forEach(c=>{l[c]&&(r.props[c]?(c==="style"&&!l[c].endsWith(";")&&(l[c]+=";"),r.props[c]=`${l[c]} ${r.props[c]}`):r.props[c]=l[c])}),t[s].props={...l,...r.props};return}else if(r._e===i._e){i._duped=i._duped||[],r._d=`${i._d}:${i._duped.length+1}`,i._duped.push(r);return}else if(jl(r)>jl(i))return}const o=Object.keys(r.props).length+(r.innerHTML?1:0)+(r.textContent?1:0);if(pl.includes(r.tag)&&o===0){delete t[s];return}t[s]=r});const n=[];Object.values(t).forEach(r=>{const s=r._duped;delete r._duped,n.push(r),s&&n.push(...s)}),e.tags=n,e.tags=e.tags.filter(r=>!(r.tag==="meta"&&(r.props.name||r.props.property)&&!r.props.content))}}},yA={mode:"server",hooks:{"tags:resolve":function(e){const t={};e.tags.filter(n=>["titleTemplate","templateParams","title"].includes(n.tag)&&n._m==="server").forEach(n=>{t[n.tag]=n.tag.startsWith("title")?n.textContent:n.props}),Object.keys(t).length&&e.tags.push({tag:"script",innerHTML:JSON.stringify(t),props:{id:"unhead:payload",type:"application/json"}})}}},wA=["script","link","bodyAttrs"],bA=e=>({hooks:{"tags:resolve":function(t){for(const n of t.tags.filter(r=>wA.includes(r.tag)))Object.entries(n.props).forEach(([r,s])=>{r.startsWith("on")&&typeof s=="function"&&(e.ssr&&Fg.includes(r)?n.props[r]=`this.dataset.${r}fired = true`:delete n.props[r],n._eventHandlers=n._eventHandlers||{},n._eventHandlers[r]=s)}),e.ssr&&n._eventHandlers&&(n.props.src||n.props.href)&&(n.key=n.key||Sp(n.props.src||n.props.href))},"dom:renderTag":function({$el:t,tag:n}){var r,s;for(const i of Object.keys((t==null?void 0:t.dataset)||{}).filter(o=>Fg.some(a=>`${a}fired`===o))){const o=i.replace("fired","");(s=(r=n._eventHandlers)==null?void 0:r[o])==null||s.call(t,new Event(o.replace("on","")))}}}}),EA=["link","style","script","noscript"],TA={hooks:{"tag:normalise":({tag:e})=>{e.key&&EA.includes(e.tag)&&(e.props["data-hid"]=e._h=Sp(e.key))}}},SA={hooks:{"tags:resolve":e=>{const t=n=>{var r;return(r=e.tags.find(s=>s._d===n))==null?void 0:r._p};for(const{prefix:n,offset:r}of hA)for(const s of e.tags.filter(i=>typeof i.tagPriority=="string"&&i.tagPriority.startsWith(n))){const i=t(s.tagPriority.replace(n,""));typeof i<"u"&&(s._p=i+r)}e.tags.sort((n,r)=>n._p-r._p).sort((n,r)=>jl(n)-jl(r))}}},kA={meta:"content",link:"href",htmlAttrs:"lang"},IA=e=>({hooks:{"tags:resolve":t=>{var a;const{tags:n}=t,r=(a=n.find(l=>l.tag==="title"))==null?void 0:a.textContent,s=n.findIndex(l=>l.tag==="templateParams"),i=s!==-1?n[s].props:{},o=i.separator||"|";delete i.separator,i.pageTitle=hl(i.pageTitle||r||"",i,o);for(const l of n.filter(c=>c.processTemplateParams!==!1)){const c=kA[l.tag];c&&typeof l.props[c]=="string"?l.props[c]=hl(l.props[c],i,o):(l.processTemplateParams===!0||["titleTemplate","title"].includes(l.tag))&&["innerHTML","textContent"].forEach(u=>{typeof l[u]=="string"&&(l[u]=hl(l[u],i,o))})}e._templateParams=i,e._separator=o,t.tags=n.filter(l=>l.tag!=="templateParams")}}}),RA={hooks:{"tags:resolve":e=>{const{tags:t}=e;let n=t.findIndex(s=>s.tag==="titleTemplate");const r=t.findIndex(s=>s.tag==="title");if(r!==-1&&n!==-1){const s=$g(t[n].textContent,t[r].textContent);s!==null?t[r].textContent=s||t[r].textContent:delete t[r]}else if(n!==-1){const s=$g(t[n].textContent);s!==null&&(t[n].textContent=s,t[n].tag="title",n=-1)}n!==-1&&delete t[n],e.tags=t.filter(Boolean)}}},CA={hooks:{"tags:afterResolve":function(e){for(const t of e.tags)typeof t.innerHTML=="string"&&(t.innerHTML&&["application/ld+json","application/json"].includes(t.props.type)?t.innerHTML=t.innerHTML.replace(/</g,"\\u003C"):t.innerHTML=t.innerHTML.replace(new RegExp(`</${t.tag}`,"g"),`<\\/${t.tag}`))}}};let fb;function AA(e={}){const t=OA(e);return t.use(mA()),fb=t}function Bg(e,t){return!e||e==="server"&&t||e==="client"&&!t}function OA(e={}){const t=Xw();t.addHooks(e.hooks||{}),e.document=e.document||(cA?document:void 0);const n=!e.document,r=()=>{a.dirty=!0,t.callHook("entries:updated",a)};let s=0,i=[];const o=[],a={plugins:o,dirty:!1,resolvedOptions:e,hooks:t,headEntries(){return i},use(l){const c=typeof l=="function"?l(a):l;(!c.key||!o.some(u=>u.key===c.key))&&(o.push(c),Bg(c.mode,n)&&t.addHooks(c.hooks||{}))},push(l,c){c==null||delete c.head;const u={_i:s++,input:l,...c};return Bg(u.mode,n)&&(i.push(u),r()),{dispose(){i=i.filter(d=>d._i!==u._i),t.callHook("entries:updated",a),r()},patch(d){i=i.map(f=>(f._i===u._i&&(f.input=u.input=d),f)),r()}}},async resolveTags(){const l={tags:[],entries:[...i]};await t.callHook("entries:resolve",l);for(const c of l.entries){const u=c.resolvedInput||c.input;if(c.resolvedInput=await(c.transform?c.transform(u):u),c.resolvedInput)for(const d of await pA(c)){const f={tag:d,entry:c,resolvedOptions:a.resolvedOptions};await t.callHook("tag:normalise",f),l.tags.push(f.tag)}}return await t.callHook("tags:beforeResolve",l),await t.callHook("tags:resolve",l),await t.callHook("tags:afterResolve",l),l.tags},ssr:n};return[vA,yA,bA,TA,SA,IA,RA,CA,...(e==null?void 0:e.plugins)||[]].forEach(l=>a.use(l)),a.hooks.callHook("init",a),a}function PA(){return fb}const LA=Rw.startsWith("3");function DA(e){return typeof e=="function"?e():O(e)}function Md(e,t=""){if(e instanceof Promise)return e;const n=DA(e);return!e||!n?n:Array.isArray(n)?n.map(r=>Md(r,t)):typeof n=="object"?Object.fromEntries(Object.entries(n).map(([r,s])=>r==="titleTemplate"||r.startsWith("on")?[r,O(s)]:[r,Md(s,r)])):n}const NA={hooks:{"entries:resolve":function(e){for(const t of e.entries)t.resolvedInput=Md(t.input)}}},pb="usehead";function MA(e){return{install(n){LA&&(n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(pb,e))}}.install}function $A(e={}){e.domDelayFn=e.domDelayFn||(n=>nn(()=>setTimeout(()=>n(),0)));const t=AA(e);return t.use(NA),t.install=MA(t),t}const $d=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},xd="__unhead_injection_handler__";function xA(e){$d[xd]=e}function y8(){if(xd in $d)return $d[xd]();const e=et(pb);return e||PA()}let gl,ml;function UA(){return gl=$fetch(Tp(`builds/meta/${kt().app.buildId}.json`),{responseType:"json"}),gl.then(e=>{ml=UC(e.matcher)}).catch(e=>{console.error("[nuxt] Error fetching app manifest.",e)}),gl}function Ac(){return gl||UA()}async function kp(e){if(await Ac(),!ml)return console.error("[nuxt] Error creating app manifest matcher.",ml),{};try{return sb({},...ml.matchAll(e).reverse())}catch(t){return console.error("[nuxt] Error matching route rules.",t),{}}}async function Hg(e,t={}){const n=await BA(e,t),r=De(),s=r._payloadCache=r._payloadCache||{};return n in s||(s[n]=gb(e).then(i=>i?hb(n).then(o=>o||(delete s[n],null)):(s[n]=null,null))),s[n]}const FA="_payload.json";async function BA(e,t={}){const n=new URL(e,"http://localhost");if(n.host!=="localhost"||Yn(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const r=kt(),s=t.hash||(t.fresh?Date.now():r.app.buildId),i=r.app.cdnURL,o=i&&await gb(e)?i:r.app.baseURL;return no(o,n.pathname,FA+(s?`?${s}`:""))}async function hb(e){const t=fetch(e).then(n=>n.text().then(mb));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}async function gb(e=ha().path){if(e=Cc(e),(await Ac()).prerendered.includes(e))return!0;const n=await kp(e);return!!n.prerender&&!n.redirect}let Ka=null;async function HA(){if(Ka)return Ka;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await mb(e.textContent||""),n=e.dataset.src?await hb(e.dataset.src):void 0;return Ka={...t,...n,...window.__NUXT__},Ka}async function mb(e){return await rA(e,De()._payloadRevivers)}function jA(e,t){De()._payloadRevivers[e]=t}const jg={NuxtError:e=>ro(e),EmptyShallowRef:e=>tn(e==="_"?void 0:e==="0n"?BigInt(0):qo(e)),EmptyRef:e=>te(e==="_"?void 0:e==="0n"?BigInt(0):qo(e)),ShallowRef:e=>tn(e),ShallowReactive:e=>sr(e),Ref:e=>te(e),Reactive:e=>gn(e)},zA=gt({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const r in jg)jA(r,jg[r]);Object.assign(e.payload,([t,n]=Hn(()=>e.runWithContext(HA)),t=await t,n(),t)),window.__NUXT__=e.payload}}),VA=[],WA=gt({name:"nuxt:head",enforce:"pre",setup(e){const t=$A({plugins:VA});xA(()=>De().vueApp._context.provides.usehead),e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await db(t)};t.hooks.hook("dom:beforeRender",s=>{s.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||r()}),e.hooks.hook("app:error",r),e.hooks.hook("app:suspense:resolve",r)}}});/*!
  * vue-router v4.4.0
  * (c) 2024 Eduardo San Martin Morote
  * @license MIT
  */const ai=typeof document<"u";function KA(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Ue=Object.assign;function vu(e,t){const n={};for(const r in t){const s=t[r];n[r]=An(s)?s.map(e):e(s)}return n}const Oo=()=>{},An=Array.isArray,_b=/#/g,GA=/&/g,qA=/\//g,YA=/=/g,JA=/\?/g,vb=/\+/g,XA=/%5B/g,ZA=/%5D/g,yb=/%5E/g,QA=/%60/g,wb=/%7B/g,eO=/%7C/g,bb=/%7D/g,tO=/%20/g;function Ip(e){return encodeURI(""+e).replace(eO,"|").replace(XA,"[").replace(ZA,"]")}function nO(e){return Ip(e).replace(wb,"{").replace(bb,"}").replace(yb,"^")}function Ud(e){return Ip(e).replace(vb,"%2B").replace(tO,"+").replace(_b,"%23").replace(GA,"%26").replace(QA,"`").replace(wb,"{").replace(bb,"}").replace(yb,"^")}function rO(e){return Ud(e).replace(YA,"%3D")}function sO(e){return Ip(e).replace(_b,"%23").replace(JA,"%3F")}function iO(e){return e==null?"":sO(e).replace(qA,"%2F")}function Yo(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const oO=/\/$/,aO=e=>e.replace(oO,"");function yu(e,t,n="/"){let r,s={},i="",o="";const a=t.indexOf("#");let l=t.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(r=t.slice(0,l),i=t.slice(l+1,a>-1?a:t.length),s=e(i)),a>-1&&(r=r||t.slice(0,a),o=t.slice(a,t.length)),r=dO(r??t,n),{fullPath:r+(i&&"?")+i+o,path:r,query:s,hash:Yo(o)}}function lO(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function zg(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function cO(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&Fi(t.matched[r],n.matched[s])&&Eb(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Fi(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Eb(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!uO(e[n],t[n]))return!1;return!0}function uO(e,t){return An(e)?Vg(e,t):An(t)?Vg(t,e):e===t}function Vg(e,t){return An(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function dO(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let i=n.length-1,o,a;for(o=0;o<r.length;o++)if(a=r[o],a!==".")if(a==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(o).join("/")}const yn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Jo;(function(e){e.pop="pop",e.push="push"})(Jo||(Jo={}));var Po;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Po||(Po={}));function fO(e){if(!e)if(ai){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),aO(e)}const pO=/^[^#]+#/;function hO(e,t){return e.replace(pO,"#")+t}function gO(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Oc=()=>({left:window.scrollX,top:window.scrollY});function mO(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=gO(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Wg(e,t){return(history.state?history.state.position-t:-1)+e}const Fd=new Map;function _O(e,t){Fd.set(e,t)}function vO(e){const t=Fd.get(e);return Fd.delete(e),t}let yO=()=>location.protocol+"//"+location.host;function Tb(e,t){const{pathname:n,search:r,hash:s}=t,i=e.indexOf("#");if(i>-1){let a=s.includes(e.slice(i))?e.slice(i).length:1,l=s.slice(a);return l[0]!=="/"&&(l="/"+l),zg(l,"")}return zg(n,e)+r+s}function wO(e,t,n,r){let s=[],i=[],o=null;const a=({state:f})=>{const p=Tb(e,location),g=n.value,v=t.value;let w=0;if(f){if(n.value=p,t.value=f,o&&o===g){o=null;return}w=v?f.position-v.position:0}else r(p);s.forEach(y=>{y(n.value,g,{delta:w,type:Jo.pop,direction:w?w>0?Po.forward:Po.back:Po.unknown})})};function l(){o=n.value}function c(f){s.push(f);const p=()=>{const g=s.indexOf(f);g>-1&&s.splice(g,1)};return i.push(p),p}function u(){const{history:f}=window;f.state&&f.replaceState(Ue({},f.state,{scroll:Oc()}),"")}function d(){for(const f of i)f();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:d}}function Kg(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?Oc():null}}function bO(e){const{history:t,location:n}=window,r={value:Tb(e,n)},s={value:t.state};s.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,c,u){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:yO()+e+l;try{t[u?"replaceState":"pushState"](c,"",f),s.value=c}catch(p){console.error(p),n[u?"replace":"assign"](f)}}function o(l,c){const u=Ue({},t.state,Kg(s.value.back,l,s.value.forward,!0),c,{position:s.value.position});i(l,u,!0),r.value=l}function a(l,c){const u=Ue({},s.value,t.state,{forward:l,scroll:Oc()});i(u.current,u,!0);const d=Ue({},Kg(r.value,l,null),{position:u.position+1},c);i(l,d,!1),r.value=l}return{location:r,state:s,push:a,replace:o}}function Sb(e){e=fO(e);const t=bO(e),n=wO(e,t.state,t.location,t.replace);function r(i,o=!0){o||n.pauseListeners(),history.go(i)}const s=Ue({location:"",base:e,go:r,createHref:hO.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function EO(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Sb(e)}function TO(e){return typeof e=="string"||e&&typeof e=="object"}function kb(e){return typeof e=="string"||typeof e=="symbol"}const Ib=Symbol("");var Gg;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Gg||(Gg={}));function Bi(e,t){return Ue(new Error,{type:e,[Ib]:!0},t)}function Xn(e,t){return e instanceof Error&&Ib in e&&(t==null||!!(e.type&t))}const qg="[^/]+?",SO={sensitive:!1,strict:!1,start:!0,end:!0},kO=/[.+*?^${}()[\]/\\]/g;function IO(e,t){const n=Ue({},SO,t),r=[];let s=n.start?"^":"";const i=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(s+="/");for(let d=0;d<c.length;d++){const f=c[d];let p=40+(n.sensitive?.25:0);if(f.type===0)d||(s+="/"),s+=f.value.replace(kO,"\\$&"),p+=40;else if(f.type===1){const{value:g,repeatable:v,optional:w,regexp:y}=f;i.push({name:g,repeatable:v,optional:w});const m=y||qg;if(m!==qg){p+=10;try{new RegExp(`(${m})`)}catch(_){throw new Error(`Invalid custom RegExp for param "${g}" (${m}): `+_.message)}}let h=v?`((?:${m})(?:/(?:${m}))*)`:`(${m})`;d||(h=w&&c.length<2?`(?:/${h})`:"/"+h),w&&(h+="?"),s+=h,p+=20,w&&(p+=-8),v&&(p+=-20),m===".*"&&(p+=-50)}u.push(p)}r.push(u)}if(n.strict&&n.end){const c=r.length-1;r[c][r[c].length-1]+=.7000000000000001}n.strict||(s+="/?"),n.end?s+="$":n.strict&&(s+="(?:/|$)");const o=new RegExp(s,n.sensitive?"":"i");function a(c){const u=c.match(o),d={};if(!u)return null;for(let f=1;f<u.length;f++){const p=u[f]||"",g=i[f-1];d[g.name]=p&&g.repeatable?p.split("/"):p}return d}function l(c){let u="",d=!1;for(const f of e){(!d||!u.endsWith("/"))&&(u+="/"),d=!1;for(const p of f)if(p.type===0)u+=p.value;else if(p.type===1){const{value:g,repeatable:v,optional:w}=p,y=g in c?c[g]:"";if(An(y)&&!v)throw new Error(`Provided param "${g}" is an array but it is not repeatable (* or + modifiers)`);const m=An(y)?y.join("/"):y;if(!m)if(w)f.length<2&&(u.endsWith("/")?u=u.slice(0,-1):d=!0);else throw new Error(`Missing required param "${g}"`);u+=m}}return u||"/"}return{re:o,score:r,keys:i,parse:a,stringify:l}}function RO(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Rb(e,t){let n=0;const r=e.score,s=t.score;for(;n<r.length&&n<s.length;){const i=RO(r[n],s[n]);if(i)return i;n++}if(Math.abs(s.length-r.length)===1){if(Yg(r))return 1;if(Yg(s))return-1}return s.length-r.length}function Yg(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const CO={type:0,value:""},AO=/[a-zA-Z0-9_]/;function OO(e){if(!e)return[[]];if(e==="/")return[[CO]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=0,r=n;const s=[];let i;function o(){i&&s.push(i),i=[]}let a=0,l,c="",u="";function d(){c&&(n===0?i.push({type:0,value:c}):n===1||n===2||n===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=l}for(;a<e.length;){if(l=e[a++],l==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:l==="/"?(c&&d(),o()):l===":"?(d(),n=1):f();break;case 4:f(),n=r;break;case 1:l==="("?n=2:AO.test(l)?f():(d(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case 2:l===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+l:n=3:u+=l;break;case 3:d(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--,u="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${c}"`),d(),o(),s}function PO(e,t,n){const r=IO(OO(e.path),n),s=Ue(r,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function LO(e,t){const n=[],r=new Map;t=Zg({strict:!1,end:!0,sensitive:!1},t);function s(d){return r.get(d)}function i(d,f,p){const g=!p,v=DO(d);v.aliasOf=p&&p.record;const w=Zg(t,d),y=[v];if("alias"in d){const _=typeof d.alias=="string"?[d.alias]:d.alias;for(const b of _)y.push(Ue({},v,{components:p?p.record.components:v.components,path:b,aliasOf:p?p.record:v}))}let m,h;for(const _ of y){const{path:b}=_;if(f&&b[0]!=="/"){const E=f.record.path,R=E[E.length-1]==="/"?"":"/";_.path=f.record.path+(b&&R+b)}if(m=PO(_,f,w),p?p.alias.push(m):(h=h||m,h!==m&&h.alias.push(m),g&&d.name&&!Xg(m)&&o(d.name)),Cb(m)&&l(m),v.children){const E=v.children;for(let R=0;R<E.length;R++)i(E[R],m,p&&p.children[R])}p=p||m}return h?()=>{o(h)}:Oo}function o(d){if(kb(d)){const f=r.get(d);f&&(r.delete(d),n.splice(n.indexOf(f),1),f.children.forEach(o),f.alias.forEach(o))}else{const f=n.indexOf(d);f>-1&&(n.splice(f,1),d.record.name&&r.delete(d.record.name),d.children.forEach(o),d.alias.forEach(o))}}function a(){return n}function l(d){const f=$O(d,n);n.splice(f,0,d),d.record.name&&!Xg(d)&&r.set(d.record.name,d)}function c(d,f){let p,g={},v,w;if("name"in d&&d.name){if(p=r.get(d.name),!p)throw Bi(1,{location:d});w=p.record.name,g=Ue(Jg(f.params,p.keys.filter(h=>!h.optional).concat(p.parent?p.parent.keys.filter(h=>h.optional):[]).map(h=>h.name)),d.params&&Jg(d.params,p.keys.map(h=>h.name))),v=p.stringify(g)}else if(d.path!=null)v=d.path,p=n.find(h=>h.re.test(v)),p&&(g=p.parse(v),w=p.record.name);else{if(p=f.name?r.get(f.name):n.find(h=>h.re.test(f.path)),!p)throw Bi(1,{location:d,currentLocation:f});w=p.record.name,g=Ue({},f.params,d.params),v=p.stringify(g)}const y=[];let m=p;for(;m;)y.unshift(m.record),m=m.parent;return{name:w,path:v,params:g,matched:y,meta:MO(y)}}e.forEach(d=>i(d));function u(){n.length=0,r.clear()}return{addRoute:i,resolve:c,removeRoute:o,clearRoutes:u,getRoutes:a,getRecordMatcher:s}}function Jg(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function DO(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:NO(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function NO(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Xg(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function MO(e){return e.reduce((t,n)=>Ue(t,n.meta),{})}function Zg(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function $O(e,t){let n=0,r=t.length;for(;n!==r;){const i=n+r>>1;Rb(e,t[i])<0?r=i:n=i+1}const s=xO(e);return s&&(r=t.lastIndexOf(s,r-1)),r}function xO(e){let t=e;for(;t=t.parent;)if(Cb(t)&&Rb(e,t)===0)return t}function Cb({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function UO(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<r.length;++s){const i=r[s].replace(vb," "),o=i.indexOf("="),a=Yo(o<0?i:i.slice(0,o)),l=o<0?null:Yo(i.slice(o+1));if(a in t){let c=t[a];An(c)||(c=t[a]=[c]),c.push(l)}else t[a]=l}return t}function Qg(e){let t="";for(let n in e){const r=e[n];if(n=rO(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(An(r)?r.map(i=>i&&Ud(i)):[r&&Ud(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function FO(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=An(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const Rp=Symbol(""),em=Symbol(""),Cp=Symbol(""),Ap=Symbol(""),Bd=Symbol("");function mo(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Ab(e,t,n){const r=()=>{e[t].delete(n)};to(r),cp(r),lp(()=>{e[t].add(n)}),e[t].add(n)}function w8(e){const t=et(Rp,{}).value;t&&Ab(t,"leaveGuards",e)}function b8(e){const t=et(Rp,{}).value;t&&Ab(t,"updateGuards",e)}function Ur(e,t,n,r,s,i=o=>o()){const o=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((a,l)=>{const c=f=>{f===!1?l(Bi(4,{from:n,to:t})):f instanceof Error?l(f):TO(f)?l(Bi(2,{from:t,to:f})):(o&&r.enterCallbacks[s]===o&&typeof f=="function"&&o.push(f),a())},u=i(()=>e.call(r&&r.instances[s],t,n,c));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch(f=>l(f))})}function wu(e,t,n,r,s=i=>i()){const i=[];for(const o of e)for(const a in o.components){let l=o.components[a];if(!(t!=="beforeRouteEnter"&&!o.instances[a]))if(BO(l)){const u=(l.__vccOpts||l)[t];u&&i.push(Ur(u,n,r,o,a,s))}else{let c=l();i.push(()=>c.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${a}" at "${o.path}"`));const d=KA(u)?u.default:u;o.components[a]=d;const p=(d.__vccOpts||d)[t];return p&&Ur(p,n,r,o,a,s)()}))}}return i}function BO(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function tm(e){const t=et(Cp),n=et(Ap),r=z(()=>{const l=O(e.to);return t.resolve(l)}),s=z(()=>{const{matched:l}=r.value,{length:c}=l,u=l[c-1],d=n.matched;if(!u||!d.length)return-1;const f=d.findIndex(Fi.bind(null,u));if(f>-1)return f;const p=nm(l[c-2]);return c>1&&nm(u)===p&&d[d.length-1].path!==p?d.findIndex(Fi.bind(null,l[c-2])):f}),i=z(()=>s.value>-1&&VO(n.params,r.value.params)),o=z(()=>s.value>-1&&s.value===n.matched.length-1&&Eb(n.params,r.value.params));function a(l={}){return zO(l)?t[O(e.replace)?"replace":"push"](O(e.to)).catch(Oo):Promise.resolve()}return{route:r,href:z(()=>r.value.href),isActive:i,isExactActive:o,navigate:a}}const HO=pe({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:tm,setup(e,{slots:t}){const n=gn(tm(e)),{options:r}=et(Cp),s=z(()=>({[rm(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[rm(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:At("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},i)}}}),jO=HO;function zO(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function VO(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!An(s)||s.length!==r.length||r.some((i,o)=>i!==s[o]))return!1}return!0}function nm(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const rm=(e,t,n)=>e??t??n,WO=pe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=et(Bd),s=z(()=>e.route||r.value),i=et(em,0),o=z(()=>{let c=O(i);const{matched:u}=s.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),a=z(()=>s.value.matched[o.value]);Wn(em,z(()=>o.value+1)),Wn(Rp,a),Wn(Bd,s);const l=te();return Se(()=>[l.value,a.value,e.name],([c,u,d],[f,p,g])=>{u&&(u.instances[d]=c,p&&p!==u&&c&&c===f&&(u.leaveGuards.size||(u.leaveGuards=p.leaveGuards),u.updateGuards.size||(u.updateGuards=p.updateGuards))),c&&u&&(!p||!Fi(u,p)||!f)&&(u.enterCallbacks[d]||[]).forEach(v=>v(c))},{flush:"post"}),()=>{const c=s.value,u=e.name,d=a.value,f=d&&d.components[u];if(!f)return sm(n.default,{Component:f,route:c});const p=d.props[u],g=p?p===!0?c.params:typeof p=="function"?p(c):p:null,w=At(f,Ue({},g,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(d.instances[u]=null)},ref:l}));return sm(n.default,{Component:w,route:c})||w}}});function sm(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Ob=WO;function KO(e){const t=LO(e.routes,e),n=e.parseQuery||UO,r=e.stringifyQuery||Qg,s=e.history,i=mo(),o=mo(),a=mo(),l=tn(yn);let c=yn;ai&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=vu.bind(null,V=>""+V),d=vu.bind(null,iO),f=vu.bind(null,Yo);function p(V,le){let ie,ue;return kb(V)?(ie=t.getRecordMatcher(V),ue=le):ue=V,t.addRoute(ue,ie)}function g(V){const le=t.getRecordMatcher(V);le&&t.removeRoute(le)}function v(){return t.getRoutes().map(V=>V.record)}function w(V){return!!t.getRecordMatcher(V)}function y(V,le){if(le=Ue({},le||l.value),typeof V=="string"){const P=yu(n,V,le.path),F=t.resolve({path:P.path},le),G=s.createHref(P.fullPath);return Ue(P,F,{params:f(F.params),hash:Yo(P.hash),redirectedFrom:void 0,href:G})}let ie;if(V.path!=null)ie=Ue({},V,{path:yu(n,V.path,le.path).path});else{const P=Ue({},V.params);for(const F in P)P[F]==null&&delete P[F];ie=Ue({},V,{params:d(P)}),le.params=d(le.params)}const ue=t.resolve(ie,le),Re=V.hash||"";ue.params=u(f(ue.params));const ze=lO(r,Ue({},V,{hash:nO(Re),path:ue.path})),C=s.createHref(ze);return Ue({fullPath:ze,hash:Re,query:r===Qg?FO(V.query):V.query||{}},ue,{redirectedFrom:void 0,href:C})}function m(V){return typeof V=="string"?yu(n,V,l.value.path):Ue({},V)}function h(V,le){if(c!==V)return Bi(8,{from:le,to:V})}function _(V){return R(V)}function b(V){return _(Ue(m(V),{replace:!0}))}function E(V){const le=V.matched[V.matched.length-1];if(le&&le.redirect){const{redirect:ie}=le;let ue=typeof ie=="function"?ie(V):ie;return typeof ue=="string"&&(ue=ue.includes("?")||ue.includes("#")?ue=m(ue):{path:ue},ue.params={}),Ue({query:V.query,hash:V.hash,params:ue.path!=null?{}:V.params},ue)}}function R(V,le){const ie=c=y(V),ue=l.value,Re=V.state,ze=V.force,C=V.replace===!0,P=E(ie);if(P)return R(Ue(m(P),{state:typeof P=="object"?Ue({},Re,P.state):Re,force:ze,replace:C}),le||ie);const F=ie;F.redirectedFrom=le;let G;return!ze&&cO(r,ue,ie)&&(G=Bi(16,{to:F,from:ue}),Je(ue,ue,!0,!1)),(G?Promise.resolve(G):D(F,ue)).catch(H=>Xn(H)?Xn(H,2)?H:nt(H):oe(H,F,ue)).then(H=>{if(H){if(Xn(H,2))return R(Ue({replace:C},m(H.to),{state:typeof H.to=="object"?Ue({},Re,H.to.state):Re,force:ze}),le||F)}else H=N(F,ue,!0,C,Re);return L(F,ue,H),H})}function S(V,le){const ie=h(V,le);return ie?Promise.reject(ie):Promise.resolve()}function A(V){const le=je.values().next().value;return le&&typeof le.runWithContext=="function"?le.runWithContext(V):V()}function D(V,le){let ie;const[ue,Re,ze]=GO(V,le);ie=wu(ue.reverse(),"beforeRouteLeave",V,le);for(const P of ue)P.leaveGuards.forEach(F=>{ie.push(Ur(F,V,le))});const C=S.bind(null,V,le);return ie.push(C),It(ie).then(()=>{ie=[];for(const P of i.list())ie.push(Ur(P,V,le));return ie.push(C),It(ie)}).then(()=>{ie=wu(Re,"beforeRouteUpdate",V,le);for(const P of Re)P.updateGuards.forEach(F=>{ie.push(Ur(F,V,le))});return ie.push(C),It(ie)}).then(()=>{ie=[];for(const P of ze)if(P.beforeEnter)if(An(P.beforeEnter))for(const F of P.beforeEnter)ie.push(Ur(F,V,le));else ie.push(Ur(P.beforeEnter,V,le));return ie.push(C),It(ie)}).then(()=>(V.matched.forEach(P=>P.enterCallbacks={}),ie=wu(ze,"beforeRouteEnter",V,le,A),ie.push(C),It(ie))).then(()=>{ie=[];for(const P of o.list())ie.push(Ur(P,V,le));return ie.push(C),It(ie)}).catch(P=>Xn(P,8)?P:Promise.reject(P))}function L(V,le,ie){a.list().forEach(ue=>A(()=>ue(V,le,ie)))}function N(V,le,ie,ue,Re){const ze=h(V,le);if(ze)return ze;const C=le===yn,P=ai?history.state:{};ie&&(ue||C?s.replace(V.fullPath,Ue({scroll:C&&P&&P.scroll},Re)):s.push(V.fullPath,Re)),l.value=V,Je(V,le,ie,C),nt()}let x;function W(){x||(x=s.listen((V,le,ie)=>{if(!bt.listening)return;const ue=y(V),Re=E(ue);if(Re){R(Ue(Re,{replace:!0}),ue).catch(Oo);return}c=ue;const ze=l.value;ai&&_O(Wg(ze.fullPath,ie.delta),Oc()),D(ue,ze).catch(C=>Xn(C,12)?C:Xn(C,2)?(R(C.to,ue).then(P=>{Xn(P,20)&&!ie.delta&&ie.type===Jo.pop&&s.go(-1,!1)}).catch(Oo),Promise.reject()):(ie.delta&&s.go(-ie.delta,!1),oe(C,ue,ze))).then(C=>{C=C||N(ue,ze,!1),C&&(ie.delta&&!Xn(C,8)?s.go(-ie.delta,!1):ie.type===Jo.pop&&Xn(C,20)&&s.go(-1,!1)),L(ue,ze,C)}).catch(Oo)}))}let ee=mo(),K=mo(),ce;function oe(V,le,ie){nt(V);const ue=K.list();return ue.length?ue.forEach(Re=>Re(V,le,ie)):console.error(V),Promise.reject(V)}function Xe(){return ce&&l.value!==yn?Promise.resolve():new Promise((V,le)=>{ee.add([V,le])})}function nt(V){return ce||(ce=!V,W(),ee.list().forEach(([le,ie])=>V?ie(V):le()),ee.reset()),V}function Je(V,le,ie,ue){const{scrollBehavior:Re}=e;if(!ai||!Re)return Promise.resolve();const ze=!ie&&vO(Wg(V.fullPath,0))||(ue||!ie)&&history.state&&history.state.scroll||null;return nn().then(()=>Re(V,le,ze)).then(C=>C&&mO(C)).catch(C=>oe(C,V,le))}const He=V=>s.go(V);let _t;const je=new Set,bt={currentRoute:l,listening:!0,addRoute:p,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:w,getRoutes:v,resolve:y,options:e,push:_,replace:b,go:He,back:()=>He(-1),forward:()=>He(1),beforeEach:i.add,beforeResolve:o.add,afterEach:a.add,onError:K.add,isReady:Xe,install(V){const le=this;V.component("RouterLink",jO),V.component("RouterView",Ob),V.config.globalProperties.$router=le,Object.defineProperty(V.config.globalProperties,"$route",{enumerable:!0,get:()=>O(l)}),ai&&!_t&&l.value===yn&&(_t=!0,_(s.location).catch(Re=>{}));const ie={};for(const Re in yn)Object.defineProperty(ie,Re,{get:()=>l.value[Re],enumerable:!0});V.provide(Cp,le),V.provide(Ap,sr(ie)),V.provide(Bd,l);const ue=V.unmount;je.add(V),V.unmount=function(){je.delete(V),je.size<1&&(c=yn,x&&x(),x=null,l.value=yn,_t=!1,ce=!1),ue()}}};function It(V){return V.reduce((le,ie)=>le.then(()=>A(ie)),Promise.resolve())}return bt}function GO(e,t){const n=[],r=[],s=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;o<i;o++){const a=t.matched[o];a&&(e.matched.find(c=>Fi(c,a))?r.push(a):n.push(a));const l=e.matched[o];l&&(t.matched.find(c=>Fi(c,l))||s.push(l))}return[n,r,s]}function qO(e){return et(Ap)}const YO=(e,t)=>t.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""}),Hd=(e,t)=>{const n=e.route.matched.find(s=>{var i;return((i=s.components)==null?void 0:i.default)===e.Component.type}),r=t??(n==null?void 0:n.meta.key)??(n&&YO(e.route,n));return typeof r=="function"?r(e.route):r},JO=(e,t)=>({default:()=>e?At(kI,e===!0?{}:e,t):t});function Op(e){return Array.isArray(e)?e:[e]}const XO="modulepreload",ZO=function(e,t){return e[0]==="."?new URL(e,t).href:e},im={},QO=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){const i=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));s=Promise.all(n.map(l=>{if(l=ZO(l,r),l in im)return;im[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(!!r)for(let p=i.length-1;p>=0;p--){const g=i[p];if(g.href===l&&(!c||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${u}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":XO,c||(f.as="script",f.crossOrigin=""),f.href=l,a&&f.setAttribute("nonce",a),document.head.appendChild(f),c)return new Promise((p,g)=>{f.addEventListener("load",p),f.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${l}`)))})}))}return s.then(()=>t()).catch(i=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i})},I=(...e)=>QO(...e).catch(t=>{const n=new Event("nuxt.preloadError");throw n.payload=t,window.dispatchEvent(n),t}),eP={middleware:["route-info"]},tP={middleware:["route-info"]},nP={middleware:["route-info"]},rP={middleware:["route-info"]},sP={middleware:["route-info"]},iP={middleware:["route-info"]},oP={middleware:["route-info"]},aP={layout:"empty"},om=[{name:"auth-login",path:"/auth/login",component:()=>I(()=>import("./Ln7rX35I.js"),__vite__mapDeps([0,1]),import.meta.url).then(e=>e.default||e)},{name:"auth-logout",path:"/auth/logout",component:()=>I(()=>import("./C0TgxKCE.js"),__vite__mapDeps([2,1]),import.meta.url).then(e=>e.default||e)},{name:"auth-silent-renew",path:"/auth/silent-renew",component:()=>I(()=>import("./D8QnjlJE.js"),__vite__mapDeps([3,1]),import.meta.url).then(e=>e.default||e)},{name:"wycieczki-fakultatywne",path:"/wycieczki-fakultatywne",meta:eP||{},component:()=>I(()=>import("./K9rVtodC.js"),__vite__mapDeps([4,5,6,7,8,9,10,11,12,13,14,15]),import.meta.url).then(e=>e.default||e)},{name:"wycieczki-fakultatywne-kierunki-panstwo-region-karta",path:"/wycieczki-fakultatywne/kierunki/:panstwo()/:region()/:karta()",meta:tP||{},component:()=>I(()=>import("./CDF-4pa3.js"),__vite__mapDeps([16,17,18,6,7,10,19,11,9,12,20,21,22,1,23]),import.meta.url).then(e=>e.default||e)},{name:"wycieczki-fakultatywne-kierunki-panstwo-region-karta-opinie",path:"/wycieczki-fakultatywne/kierunki/:panstwo()/:region()/:karta()/opinie",meta:nP||{},component:()=>I(()=>import("./CKuhdeWa.js"),__vite__mapDeps([24,17,18,6,7,10,19,25,1,20,26]),import.meta.url).then(e=>e.default||e)},{name:"wycieczki-fakultatywne-kierunki-panstwo-region",path:"/wycieczki-fakultatywne/kierunki/:panstwo()/:region()",meta:rP||{},component:()=>I(()=>import("./nAQ6bIKw.js"),__vite__mapDeps([27,28,21,6,7,11,10,9,12,22,5,8,13,18,1,25,20,29,30,14,31,32]),import.meta.url).then(e=>e.default||e)},{name:"wycieczki-fakultatywne-kierunki-panstwo",path:"/wycieczki-fakultatywne/kierunki/:panstwo()",meta:sP||{},component:()=>I(()=>import("./DFyAYypg.js"),__vite__mapDeps([33,28,21,6,7,11,10,9,12,22,5,8,13,18,1,25,20,29,30,14,31,32]),import.meta.url).then(e=>e.default||e)},{name:"wycieczki-fakultatywne-kierunki",path:"/wycieczki-fakultatywne/kierunki",meta:iP||{},component:()=>I(()=>import("./iqLXldPD.js"),__vite__mapDeps([34,28,21,6,7,11,10,9,12,22,5,8,13,18,1,25,20,29,32]),import.meta.url).then(e=>e.default||e)},{name:"wycieczki-fakultatywne-travella",path:"/wycieczki-fakultatywne/travella",meta:oP||{},component:()=>I(()=>import("./CDkFGvx8.js"),__vite__mapDeps([35,28,21,6,7,11,10,9,12,22,5,8,13,18,1,25,20,29,32]),import.meta.url).then(e=>e.default||e)},{name:"zycko",path:"/zycko",meta:aP||{},component:()=>I(()=>import("./DYpKsIdC.js"),[],import.meta.url).then(e=>e.default||e)}],Pb=(e,t,n)=>(t=t===!0?{}:t,{default:()=>{var r;return t?At(e,t,n):(r=n.default)==null?void 0:r.call(n)}});function am(e){const t=(e==null?void 0:e.meta.key)??e.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""});return typeof t=="function"?t(e):t}function lP(e,t){return e===t||t===yn?!1:am(e)!==am(t)?!0:!e.matched.every((r,s)=>{var i,o;return r.components&&r.components.default===((o=(i=t.matched[s])==null?void 0:i.components)==null?void 0:o.default)})}const cP={scrollBehavior(e,t,n){var c;const r=De(),s=((c=Ht().options)==null?void 0:c.scrollBehaviorType)??"auto";let i=n||void 0;const o=typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop;if(!i&&t&&e&&o!==!1&&lP(e,t)&&(i={left:0,top:0}),e.path===t.path)return t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:lm(e.hash),behavior:s}:!1;const a=u=>!!(u.meta.pageTransition??Ad),l=a(t)&&a(e)?"page:transition:finish":"page:finish";return new Promise(u=>{r.hooks.hookOnce(l,async()=>{await new Promise(d=>setTimeout(d,0)),e.hash&&(i={el:e.hash,top:lm(e.hash),behavior:s}),u(i)})})}};function lm(e){try{const t=document.querySelector(e);if(t)return Number.parseFloat(getComputedStyle(t).scrollMarginTop)+Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)}catch{}return 0}const uP={hashMode:!1,scrollBehaviorType:"auto"},Wt={...uP,...cP},dP=async e=>{var l;let t,n;if(!((l=e.meta)!=null&&l.validate))return;const r=De(),s=Ht();if(([t,n]=Hn(()=>Promise.resolve(e.meta.validate(e))),t=await t,n(),t)===!0)return;const o=ro({statusCode:404,statusMessage:`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}}),a=s.beforeResolve(c=>{if(a(),c===e){const u=s.afterEach(async()=>{u(),await r.runWithContext(()=>fi(o)),window.history.pushState({},"",e.fullPath)});return!1}})},fP=async e=>{let t,n;const r=([t,n]=Hn(()=>kp(e.path)),t=await t,n(),t);if(r.redirect)return Yn(r.redirect,{acceptRelative:!0})?(window.location.href=r.redirect,!1):r.redirect},pP=[dP,fP],Lo={"route-info":()=>I(()=>import("./BcwfdZtk.js"),[],import.meta.url)};function hP(e,t,n){const{pathname:r,search:s,hash:i}=t,o=e.indexOf("#");if(o>-1){const c=i.includes(e.slice(o))?e.slice(o).length:1;let u=i.slice(c);return u[0]!=="/"&&(u="/"+u),Sg(u,"")}const a=Sg(r,e),l=!n||kd(a,n,{trailingSlash:!0})?a:n;return l+(l.includes("?")?"":s)+i}const gP=gt({name:"nuxt:router",enforce:"pre",async setup(e){var w,y;let t,n,r=kt().app.baseURL;Wt.hashMode&&!r.includes("#")&&(r+="#");const s=((w=Wt.history)==null?void 0:w.call(Wt,r))??(Wt.hashMode?EO(r):Sb(r)),i=((y=Wt.routes)==null?void 0:y.call(Wt,om))??om;let o;const a=KO({...Wt,scrollBehavior:(m,h,_)=>{if(h===yn){o=_;return}if(Wt.scrollBehavior){if(a.options.scrollBehavior=Wt.scrollBehavior,"scrollRestoration"in window.history){const b=a.beforeEach(()=>{b(),window.history.scrollRestoration="manual"})}return Wt.scrollBehavior(m,yn,o||_)}},history:s,routes:i});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(a);const l=tn(a.currentRoute.value);a.afterEach((m,h)=>{l.value=h}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>l.value});const c=hP(r,window.location,e.payload.path),u=tn(a.currentRoute.value),d=()=>{u.value=a.currentRoute.value};e.hook("page:finish",d),a.afterEach((m,h)=>{var _,b,E,R;((b=(_=m.matched[0])==null?void 0:_.components)==null?void 0:b.default)===((R=(E=h.matched[0])==null?void 0:E.components)==null?void 0:R.default)&&d()});const f={};for(const m in u.value)Object.defineProperty(f,m,{get:()=>u.value[m]});e._route=sr(f),e._middleware=e._middleware||{global:[],named:{}};const p=ga();a.afterEach(async(m,h,_)=>{delete e._processingMiddleware,!e.isHydrating&&p.value&&await e.runWithContext(YC),_&&await e.callHook("page:loading:end"),m.matched.length===0&&await e.runWithContext(()=>fi(Dd({statusCode:404,fatal:!1,statusMessage:`Page not found: ${m.fullPath}`,data:{path:m.fullPath}})))});try{[t,n]=Hn(()=>a.isReady()),await t,n()}catch(m){[t,n]=Hn(()=>e.runWithContext(()=>fi(m))),await t,n()}const g=c!==a.currentRoute.value.fullPath?a.resolve(c):a.currentRoute.value;d();const v=e.payload.state._layout;return a.beforeEach(async(m,h)=>{var _;await e.callHook("page:loading:start"),m.meta=gn(m.meta),e.isHydrating&&v&&!ss(m.meta.layout)&&(m.meta.layout=v),e._processingMiddleware=!0;{const b=new Set([...pP,...e._middleware.global]);for(const E of m.matched){const R=E.meta.middleware;if(R)for(const S of Op(R))b.add(S)}{const E=await e.runWithContext(()=>kp(m.path));if(E.appMiddleware)for(const R in E.appMiddleware)E.appMiddleware[R]?b.add(R):b.delete(R)}for(const E of b){const R=typeof E=="string"?e._middleware.named[E]||await((_=Lo[E])==null?void 0:_.call(Lo).then(A=>A.default||A)):E;if(!R)throw new Error(`Unknown route middleware: '${E}'.`);const S=await e.runWithContext(()=>R(m,h));if(!e.payload.serverRendered&&e.isHydrating&&(S===!1||S instanceof Error)){const A=S||Dd({statusCode:404,statusMessage:`Page Not Found: ${c}`});return await e.runWithContext(()=>fi(A)),!1}if(S!==!0&&(S||S===!1))return S}}}),a.onError(async()=>{delete e._processingMiddleware,await e.callHook("page:loading:end")}),e.hooks.hookOnce("app:created",async()=>{try{"name"in g&&(g.name=void 0),await a.replace({...g,force:!0}),a.options.scrollBehavior=Wt.scrollBehavior}catch(m){await e.runWithContext(()=>fi(m))}}),{provide:{router:a}}}}),cm=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),E8=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),Pp=e=>{const t=De();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{cm(()=>e())}):cm(()=>e())},mP=gt({name:"nuxt:payload",setup(e){Ht().beforeResolve(async(t,n)=>{if(t.path===n.path)return;const r=await Hg(t.path);r&&Object.assign(e.static.data,r.data)}),Pp(()=>{var t;e.hooks.hook("link:prefetch",async n=>{const{hostname:r}=new URL(n,window.location.href);r===window.location.hostname&&await Hg(n)}),((t=navigator.connection)==null?void 0:t.effectiveType)!=="slow-2g"&&setTimeout(Ac,1e3)})}}),_P=gt(()=>{const e=Ht();Pp(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),vP=gt(e=>{let t;async function n(){const r=await Ac();t&&clearTimeout(t),t=setTimeout(n,Cg);try{const s=await $fetch(Tp("builds/latest.json")+`?${Date.now()}`);s.id!==r.id&&e.hooks.callHook("app:manifest:update",s)}catch{}}Pp(()=>{t=setTimeout(n,Cg)})});function yP(e={}){const t=e.path||window.location.pathname;let n={};try{n=qo(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||(n==null?void 0:n.path)!==t||(n==null?void 0:n.expires)<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:De().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}const wP=gt({name:"nuxt:chunk-reload",setup(e){const t=Ht(),n=kt(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:i})=>{r.add(i)});function s(i){const a="href"in i&&i.href[0]==="#"?n.app.baseURL+i.href:no(n.app.baseURL,i.fullPath);yP({path:a,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(s)}),t.onError((i,o)=>{r.has(i)&&s(o)})}}),bP=!1;/*!
 * pinia v2.1.7
 * (c) 2023 Eduardo San Martin Morote
 * @license MIT
 */let Lb;const ma=e=>Lb=e,Db=Symbol();function jd(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Do;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Do||(Do={}));function EP(){const e=eo(!0),t=e.run(()=>te({}));let n=[],r=[];const s=np({install(i){ma(s),s._a=i,i.provide(Db,s),i.config.globalProperties.$pinia=s,r.forEach(o=>n.push(o)),r=[]},use(i){return!this._a&&!bP?r.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const Nb=()=>{};function um(e,t,n,r=Nb){e.push(t);const s=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!n&&Vs()&&Ps(s),s}function ti(e,...t){e.slice().forEach(n=>{n(...t)})}const TP=e=>e();function zd(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],s=e[n];jd(s)&&jd(r)&&e.hasOwnProperty(n)&&!xe(r)&&!hr(r)?e[n]=zd(s,r):e[n]=r}return e}const SP=Symbol();function kP(e){return!jd(e)||!e.hasOwnProperty(SP)}const{assign:Dr}=Object;function IP(e){return!!(xe(e)&&e.effect)}function RP(e,t,n,r){const{state:s,actions:i,getters:o}=t,a=n.state.value[e];let l;function c(){a||(n.state.value[e]=s?s():{});const u=rn(n.state.value[e]);return Dr(u,i,Object.keys(o||{}).reduce((d,f)=>(d[f]=np(z(()=>{ma(n);const p=n._s.get(e);return o[f].call(p,p)})),d),{}))}return l=Mb(e,c,t,n,r,!0),l}function Mb(e,t,n={},r,s,i){let o;const a=Dr({actions:{}},n),l={deep:!0};let c,u,d=[],f=[],p;const g=r.state.value[e];!i&&!g&&(r.state.value[e]={}),te({});let v;function w(S){let A;c=u=!1,typeof S=="function"?(S(r.state.value[e]),A={type:Do.patchFunction,storeId:e,events:p}):(zd(r.state.value[e],S),A={type:Do.patchObject,payload:S,storeId:e,events:p});const D=v=Symbol();nn().then(()=>{v===D&&(c=!0)}),u=!0,ti(d,A,r.state.value[e])}const y=i?function(){const{state:A}=n,D=A?A():{};this.$patch(L=>{Dr(L,D)})}:Nb;function m(){o.stop(),d=[],f=[],r._s.delete(e)}function h(S,A){return function(){ma(r);const D=Array.from(arguments),L=[],N=[];function x(K){L.push(K)}function W(K){N.push(K)}ti(f,{args:D,name:S,store:b,after:x,onError:W});let ee;try{ee=A.apply(this&&this.$id===e?this:b,D)}catch(K){throw ti(N,K),K}return ee instanceof Promise?ee.then(K=>(ti(L,K),K)).catch(K=>(ti(N,K),Promise.reject(K))):(ti(L,ee),ee)}}const _={_p:r,$id:e,$onAction:um.bind(null,f),$patch:w,$reset:y,$subscribe(S,A={}){const D=um(d,S,A.detached,()=>L()),L=o.run(()=>Se(()=>r.state.value[e],N=>{(A.flush==="sync"?u:c)&&S({storeId:e,type:Do.direct,events:p},N)},Dr({},l,A)));return D},$dispose:m},b=gn(_);r._s.set(e,b);const R=(r._a&&r._a.runWithContext||TP)(()=>r._e.run(()=>(o=eo()).run(t)));for(const S in R){const A=R[S];if(xe(A)&&!IP(A)||hr(A))i||(g&&kP(A)&&(xe(A)?A.value=g[S]:zd(A,g[S])),r.state.value[e][S]=A);else if(typeof A=="function"){const D=h(S,A);R[S]=D,a.actions[S]=A}}return Dr(b,R),Dr(Ie(b),R),Object.defineProperty(b,"$state",{get:()=>r.state.value[e],set:S=>{w(A=>{Dr(A,S)})}}),r._p.forEach(S=>{Dr(b,o.run(()=>S({store:b,app:r._a,pinia:r,options:a})))}),g&&i&&n.hydrate&&n.hydrate(b.$state,g),c=!0,u=!0,b}function T8(e,t,n){let r,s;const i=typeof t=="function";typeof e=="string"?(r=e,s=i?n:t):(s=e,r=e.id);function o(a,l){const c=gp();return a=a||(c?et(Db,null):null),a&&ma(a),a=Lb,a._s.has(r)||(i?Mb(r,t,s,a):RP(r,s,a)),a._s.get(r)}return o.$id=r,o}function S8(e){{e=Ie(e);const t={};for(const n in e){const r=e[n];(xe(r)||hr(r))&&(t[n]=da(e,n))}return t}}const CP=e=>e==="defer"||e===!1;function dm(...e){var g;const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);let[n,r,s={}]=e;if(typeof n!="string")throw new TypeError("[nuxt] [asyncData] key must be a string.");if(typeof r!="function")throw new TypeError("[nuxt] [asyncData] handler must be a function.");const i=De(),o=r,a=()=>di.value,l=()=>i.isHydrating?i.payload.data[n]:i.static.data[n];s.server=s.server??!0,s.default=s.default??a,s.getCachedData=s.getCachedData??l,s.lazy=s.lazy??!1,s.immediate=s.immediate??!0,s.deep=s.deep??di.deep,s.dedupe=s.dedupe??"cancel";const c=()=>s.getCachedData(n,i)!=null;if(!i._asyncData[n]||!s.immediate){(g=i.payload._errors)[n]??(g[n]=di.errorValue);const v=s.deep?te:tn;i._asyncData[n]={data:v(s.getCachedData(n,i)??s.default()),pending:te(!c()),error:da(i.payload._errors,n),status:te("idle"),_default:s.default}}const u={...i._asyncData[n]};delete u._default,u.refresh=u.execute=(v={})=>{if(i._asyncDataPromises[n]){if(CP(v.dedupe??s.dedupe))return i._asyncDataPromises[n];i._asyncDataPromises[n].cancelled=!0}if((v._initial||i.isHydrating&&v._initial!==!1)&&c())return Promise.resolve(s.getCachedData(n,i));u.pending.value=!0,u.status.value="pending";const w=new Promise((y,m)=>{try{y(o(i))}catch(h){m(h)}}).then(async y=>{if(w.cancelled)return i._asyncDataPromises[n];let m=y;s.transform&&(m=await s.transform(y)),s.pick&&(m=OP(m,s.pick)),i.payload.data[n]=m,u.data.value=m,u.error.value=di.errorValue,u.status.value="success"}).catch(y=>{if(w.cancelled)return i._asyncDataPromises[n];u.error.value=ro(y),u.data.value=O(s.default()),u.status.value="error"}).finally(()=>{w.cancelled||(u.pending.value=!1,delete i._asyncDataPromises[n])});return i._asyncDataPromises[n]=w,i._asyncDataPromises[n]},u.clear=()=>AP(i,n);const d=()=>u.refresh({_initial:!0}),f=s.server!==!1&&i.payload.serverRendered;{const v=Nt();if(v&&!v._nuxtOnBeforeMountCbs){v._nuxtOnBeforeMountCbs=[];const m=v._nuxtOnBeforeMountCbs;Gy(()=>{m.forEach(h=>{h()}),m.splice(0,m.length)}),to(()=>m.splice(0,m.length))}f&&i.isHydrating&&(u.error.value||c())?(u.pending.value=!1,u.status.value=u.error.value?"error":"success"):v&&(i.payload.serverRendered&&i.isHydrating||s.lazy)&&s.immediate?v._nuxtOnBeforeMountCbs.push(d):s.immediate&&d();const w=Vs();if(s.watch){const m=Se(s.watch,()=>u.refresh());w&&Ps(m)}const y=i.hook("app:data:refresh",async m=>{(!m||m.includes(n))&&await u.refresh()});w&&Ps(y)}const p=Promise.resolve(i._asyncDataPromises[n]).then(()=>u);return Object.assign(p,u),p}function AP(e,t){t in e.payload.data&&(e.payload.data[t]=void 0),t in e.payload._errors&&(e.payload._errors[t]=di.errorValue),e._asyncData[t]&&(e._asyncData[t].data.value=void 0,e._asyncData[t].error.value=di.errorValue,e._asyncData[t].pending.value=!1,e._asyncData[t].status.value="idle"),t in e._asyncDataPromises&&(e._asyncDataPromises[t]&&(e._asyncDataPromises[t].cancelled=!0),e._asyncDataPromises[t]=void 0)}function OP(e,t){const n={};for(const r of t)n[r]=e[r];return n}const PP="$s";function Xo(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[n,r]=e;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(r!==void 0&&typeof r!="function")throw new Error("[nuxt] [useState] init must be a function: "+r);const s=PP+n,i=De(),o=da(i.payload.state,s);if(o.value===void 0&&r){const a=r();if(xe(a))return i.payload.state[s]=a,a;o.value=a}return o}function LP(e){return{}}function wn(e){if(typeof e!="object")return e;var t,n,r=Object.prototype.toString.call(e);if(r==="[object Object]"){if(e.constructor!==Object&&typeof e.constructor=="function"){n=new e.constructor;for(t in e)e.hasOwnProperty(t)&&n[t]!==e[t]&&(n[t]=wn(e[t]))}else{n={};for(t in e)t==="__proto__"?Object.defineProperty(n,t,{value:wn(e[t]),configurable:!0,enumerable:!0,writable:!0}):n[t]=wn(e[t])}return n}if(r==="[object Array]"){for(t=e.length,n=Array(t);t--;)n[t]=wn(e[t]);return n}return r==="[object Set]"?(n=new Set,e.forEach(function(s){n.add(wn(s))}),n):r==="[object Map]"?(n=new Map,e.forEach(function(s,i){n.set(wn(i),wn(s))}),n):r==="[object Date]"?new Date(+e):r==="[object RegExp]"?(n=new RegExp(e.source,e.flags),n.lastIndex=e.lastIndex,n):r==="[object DataView]"?new e.constructor(wn(e.buffer)):r==="[object ArrayBuffer]"?e.slice(0):r.slice(-6)==="Array]"?new e.constructor(e):e}const DP={path:"/",watch:!0,decode:e=>qo(decodeURIComponent(e)),encode:e=>encodeURIComponent(typeof e=="string"?e:JSON.stringify(e))},Ga=window.cookieStore;function $b(e,t){var l;const n={...DP,...t},r=fm(n)||{};let s;n.maxAge!==void 0?s=n.maxAge*1e3:n.expires&&(s=n.expires.getTime()-Date.now());const i=s!==void 0&&s<=0,o=wn(i?void 0:r[e]??((l=n.default)==null?void 0:l.call(n))),a=s&&!i?$P(o,s,n.watch&&n.watch!=="shallow"):te(o);{let c=null;try{!Ga&&typeof BroadcastChannel<"u"&&(c=new BroadcastChannel(`nuxt:cookies:${e}`))}catch{}const u=()=>{n.readonly||$C(a.value,r[e])||(MP(e,a.value,n),r[e]=wn(a.value),c==null||c.postMessage({value:n.encode(a.value)}))},d=g=>{var w;const v=g.refresh?(w=fm(n))==null?void 0:w[e]:n.decode(g.value);f=!0,a.value=v,r[e]=wn(v),nn(()=>{f=!1})};let f=!1;const p=!!Vs();if(p&&Ps(()=>{f=!0,u(),c==null||c.close()}),Ga){const g=v=>{const w=v.changed.find(y=>y.name===e);w&&d({value:w.value})};Ga.addEventListener("change",g),p&&Ps(()=>Ga.removeEventListener("change",g))}else c&&(c.onmessage=({data:g})=>d(g));n.watch?Se(a,()=>{f||u()},{deep:n.watch!=="shallow"}):u()}return a}function fm(e={}){return bC(document.cookie,e)}function NP(e,t,n={}){return t==null?Og(e,t,{...n,maxAge:-1}):Og(e,t,n)}function MP(e,t,n={}){document.cookie=NP(e,t,n)}const pm=2147483647;function $P(e,t,n){let r,s,i=0;const o=n?te(e):{value:e};return Vs()&&Ps(()=>{s==null||s(),clearTimeout(r)}),xy((a,l)=>{n&&(s=Se(o,l));function c(){i=0,clearTimeout(r);const u=t-i,d=u<pm?u:pm;r=setTimeout(()=>{if(i+=d,i<t)return c();o.value=void 0,l()},d)}return{get(){return a(),o.value},set(u){c(),o.value=u,l()}}})}const xP=Symbol.for("nuxt:client-only"),UP=pe({name:"ClientOnly",inheritAttrs:!1,props:["fallback","placeholder","placeholderTag","fallbackTag"],setup(e,{slots:t,attrs:n}){const r=te(!1);return Dt(()=>{r.value=!0}),Wn(xP,!0),s=>{var l;if(r.value)return(l=t.default)==null?void 0:l.call(t);const i=t.fallback||t.placeholder;if(i)return i();const o=s.fallback||s.placeholder||"",a=s.fallbackTag||s.placeholderTag||"span";return X(a,n,o)}}}),FP=gt(e=>{const t=EP();return e.vueApp.use(t),ma(t),e.payload&&e.payload.pinia&&(t.state.value=e.payload.pinia),{provide:{pinia:t}}}),BP=gt({name:"nuxt:global-components"}),Gr={default:()=>I(()=>import("./B-pNyxpP.js"),__vite__mapDeps([36,1,9,6,7,8,18,37]),import.meta.url).then(e=>e.default||e),empty:()=>I(()=>import("./CB1pUlGu.js"),[],import.meta.url).then(e=>e.default||e)},HP=gt({name:"nuxt:prefetch",setup(e){const t=Ht();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{var s;const r=(s=n==null?void 0:n.meta)==null?void 0:s.layout;r&&typeof Gr[r]=="function"&&await Gr[r]()})}),e.hooks.hook("link:prefetch",n=>{if(Yn(n))return;const r=t.resolve(n);if(!r)return;const s=r.meta.layout;let i=Op(r.meta.middleware);i=i.filter(o=>typeof o=="string");for(const o of i)typeof Lo[o]=="function"&&Lo[o]();s&&typeof Gr[s]=="function"&&Gr[s]()})}}),xb=Object.prototype.toString;function Ub(e){switch(xb.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return _r(e,Error)}}function so(e,t){return xb.call(e)===`[object ${t}]`}function Lp(e){return so(e,"ErrorEvent")}function hm(e){return so(e,"DOMError")}function jP(e){return so(e,"DOMException")}function Kn(e){return so(e,"String")}function Dp(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Np(e){return e===null||Dp(e)||typeof e!="object"&&typeof e!="function"}function Hi(e){return so(e,"Object")}function Pc(e){return typeof Event<"u"&&_r(e,Event)}function zP(e){return typeof Element<"u"&&_r(e,Element)}function VP(e){return so(e,"RegExp")}function Lc(e){return!!(e&&e.then&&typeof e.then=="function")}function WP(e){return Hi(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Fb(e){return typeof e=="number"&&e!==e}function _r(e,t){try{return e instanceof t}catch{return!1}}function Bb(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function Ii(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function gm(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const s=e[r];try{Bb(s)?n.push("[VueViewModel]"):n.push(String(s))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function KP(e,t,n=!1){return Kn(e)?VP(t)?t.test(e):Kn(t)?n?e===t:e.includes(t):!1:!1}function _a(e,t=[],n=!1){return t.some(r=>KP(e,r,n))}function GP(e,t,n=250,r,s,i,o){if(!i.exception||!i.exception.values||!o||!_r(o.originalException,Error))return;const a=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;a&&(i.exception.values=qP(Vd(e,t,s,o.originalException,r,i.exception.values,a,0),n))}function Vd(e,t,n,r,s,i,o,a){if(i.length>=n+1)return i;let l=[...i];if(_r(r[s],Error)){mm(o,a);const c=e(t,r[s]),u=l.length;_m(c,s,u,a),l=Vd(e,t,n,r[s],s,[c,...l],c,u)}return Array.isArray(r.errors)&&r.errors.forEach((c,u)=>{if(_r(c,Error)){mm(o,a);const d=e(t,c),f=l.length;_m(d,`errors[${u}]`,f,a),l=Vd(e,t,n,c,s,[d,...l],d,f)}}),l}function mm(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function _m(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function qP(e,t){return e.map(n=>(n.value&&(n.value=Ii(n.value,t)),n))}function qa(e){return e&&e.Math==Math?e:void 0}const Ne=typeof globalThis=="object"&&qa(globalThis)||typeof window=="object"&&qa(window)||typeof self=="object"&&qa(self)||typeof global=="object"&&qa(global)||function(){return this}()||{};function Mp(){return Ne}function Hb(e,t,n){const r=n||Ne,s=r.__SENTRY__=r.__SENTRY__||{};return s[e]||(s[e]=t())}const Ri=Mp(),YP=80;function ji(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,s=[];let i=0,o=0;const a=" > ",l=a.length;let c;const u=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||YP;for(;n&&i++<r&&(c=JP(n,u),!(c==="html"||i>1&&o+s.length*l+c.length>=d));)s.push(c),o+=c.length,n=n.parentNode;return s.reverse().join(a)}catch{return"<unknown>"}}function JP(e,t){const n=e,r=[];let s,i,o,a,l;if(!n||!n.tagName)return"";if(Ri.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const c=t&&t.length?t.filter(d=>n.getAttribute(d)).map(d=>[d,n.getAttribute(d)]):null;if(c&&c.length)c.forEach(d=>{r.push(`[${d[0]}="${d[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),s=n.className,s&&Kn(s))for(i=s.split(/\s+/),l=0;l<i.length;l++)r.push(`.${i[l]}`);const u=["aria-label","type","name","title","alt"];for(l=0;l<u.length;l++)o=u[l],a=n.getAttribute(o),a&&r.push(`[${o}="${a}"]`);return r.join("")}function XP(){try{return Ri.document.location.href}catch{return""}}function ZP(e){return Ri.document&&Ri.document.querySelector?Ri.document.querySelector(e):null}function jb(e){if(!Ri.HTMLElement)return null;let t=e;const n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}const io=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,QP="Sentry Logger ",Wd=["debug","info","warn","error","log","assert","trace"],zl={};function Ws(e){if(!("console"in Ne))return e();const t=Ne.console,n={},r=Object.keys(zl);r.forEach(s=>{const i=zl[s];n[s]=t[s],t[s]=i});try{return e()}finally{r.forEach(s=>{t[s]=n[s]})}}function eL(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return io?Wd.forEach(n=>{t[n]=(...r)=>{e&&Ws(()=>{Ne.console[n](`${QP}[${n}]:`,...r)})}}):Wd.forEach(n=>{t[n]=()=>{}}),t}const Y=eL(),tL=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function nL(e){return e==="http"||e==="https"}function oo(e,t=!1){const{host:n,path:r,pass:s,port:i,projectId:o,protocol:a,publicKey:l}=e;return`${a}://${l}${t&&s?`:${s}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${o}`}function rL(e){const t=tL.exec(e);if(!t){Ws(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,s="",i,o="",a]=t.slice(1);let l="",c=a;const u=c.split("/");if(u.length>1&&(l=u.slice(0,-1).join("/"),c=u.pop()),c){const d=c.match(/^\d+/);d&&(c=d[0])}return zb({host:i,pass:s,path:l,projectId:c,port:o,protocol:n,publicKey:r})}function zb(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function sL(e){if(!io)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(o=>e[o]?!1:(Y.error(`Invalid Sentry Dsn: ${o} missing`),!0))?!1:n.match(/^\d+$/)?nL(r)?t&&isNaN(parseInt(t,10))?(Y.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(Y.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(Y.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function iL(e){const t=typeof e=="string"?rL(e):zb(e);if(!(!t||!sL(t)))return t}class jn extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function Tt(e,t,n){if(!(t in e))return;const r=e[t],s=n(r);typeof s=="function"&&Vb(s,r),e[t]=s}function Ms(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{io&&Y.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Vb(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Ms(e,"__sentry_original__",t)}catch{}}function $p(e){return e.__sentry_original__}function oL(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function Wb(e){if(Ub(e))return{message:e.message,name:e.name,stack:e.stack,...ym(e)};if(Pc(e)){const t={type:e.type,target:vm(e.target),currentTarget:vm(e.currentTarget),...ym(e)};return typeof CustomEvent<"u"&&_r(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function vm(e){try{return zP(e)?ji(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function ym(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function aL(e,t=40){const n=Object.keys(Wb(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Ii(n[0],t);for(let r=n.length;r>0;r--){const s=n.slice(0,r).join(", ");if(!(s.length>t))return r===n.length?s:Ii(s,t)}return""}function Qt(e){return Kd(e,new Map)}function Kd(e,t){if(lL(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const s of Object.keys(e))typeof e[s]<"u"&&(r[s]=Kd(e[s],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(s=>{r.push(Kd(s,t))}),r}return e}function lL(e){if(!Hi(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const Kb=50,wm=/\(error: (.*)\)/,bm=/captureMessage|captureException/;function Gb(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const s=[],i=n.split(`
`);for(let o=r;o<i.length;o++){const a=i[o];if(a.length>1024)continue;const l=wm.test(a)?a.replace(wm,"$1"):a;if(!l.match(/\S*Error: /)){for(const c of t){const u=c(l);if(u){s.push(u);break}}if(s.length>=Kb)break}}return uL(s)}}function cL(e){return Array.isArray(e)?Gb(...e):e}function uL(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),bm.test(t[t.length-1].function||"")&&(t.pop(),bm.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,Kb).map(n=>({...n,filename:n.filename||t[t.length-1].filename,function:n.function||"?"}))}const bu="<anonymous>";function vr(e){try{return!e||typeof e!="function"?bu:e.name||bu}catch{return bu}}const _l={},Em={};function Ks(e,t){_l[e]=_l[e]||[],_l[e].push(t)}function Gs(e,t){Em[e]||(t(),Em[e]=!0)}function kn(e,t){const n=e&&_l[e];if(n)for(const r of n)try{r(t)}catch(s){io&&Y.error(`Error while triggering instrumentation handler.
Type: ${e}
Name: ${vr(r)}
Error:`,s)}}function dL(e){const t="console";Ks(t,e),Gs(t,fL)}function fL(){"console"in Ne&&Wd.forEach(function(e){e in Ne.console&&Tt(Ne.console,e,function(t){return zl[e]=t,function(...n){kn("console",{args:n,level:e});const s=zl[e];s&&s.apply(Ne.console,n)}})})}function lt(){const e=Ne,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function qb(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function jr(e){const{message:t,event_id:n}=e;if(t)return t;const r=qb(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Gd(e,t,n){const r=e.exception=e.exception||{},s=r.values=r.values||[],i=s[0]=s[0]||{};i.value||(i.value=t||""),i.type||(i.type="Error")}function Zo(e,t){const n=qb(e);if(!n)return;const r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...t},t&&"data"in t){const i={...s&&s.data,...t.data};n.mechanism.data=i}}function Tm(e){if(e&&e.__sentry_captured__)return!0;try{Ms(e,"__sentry_captured__",!0)}catch{}return!1}function xp(e){return Array.isArray(e)?e:[e]}const li=Ne,pL=1e3;let Sm,qd,Yd;function hL(e){const t="dom";Ks(t,e),Gs(t,gL)}function gL(){if(!li.document)return;const e=kn.bind(null,"dom"),t=km(e,!0);li.document.addEventListener("click",t,!1),li.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=li[n]&&li[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Tt(r,"addEventListener",function(s){return function(i,o,a){if(i==="click"||i=="keypress")try{const l=this,c=l.__sentry_instrumentation_handlers__=l.__sentry_instrumentation_handlers__||{},u=c[i]=c[i]||{refCount:0};if(!u.handler){const d=km(e);u.handler=d,s.call(this,i,d,a)}u.refCount++}catch{}return s.call(this,i,o,a)}}),Tt(r,"removeEventListener",function(s){return function(i,o,a){if(i==="click"||i=="keypress")try{const l=this,c=l.__sentry_instrumentation_handlers__||{},u=c[i];u&&(u.refCount--,u.refCount<=0&&(s.call(this,i,u.handler,a),u.handler=void 0,delete c[i]),Object.keys(c).length===0&&delete l.__sentry_instrumentation_handlers__)}catch{}return s.call(this,i,o,a)}}))})}function mL(e){if(e.type!==qd)return!1;try{if(!e.target||e.target._sentryId!==Yd)return!1}catch{}return!0}function _L(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function km(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=vL(n);if(_L(n.type,r))return;Ms(n,"_sentryCaptured",!0),r&&!r._sentryId&&Ms(r,"_sentryId",lt());const s=n.type==="keypress"?"input":n.type;mL(n)||(e({event:n,name:s,global:t}),qd=n.type,Yd=r?r._sentryId:void 0),clearTimeout(Sm),Sm=li.setTimeout(()=>{Yd=void 0,qd=void 0},pL)}}function vL(e){try{return e.target}catch{return null}}const Jd=Mp();function Yb(){if(!("fetch"in Jd))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Xd(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function yL(){if(typeof EdgeRuntime=="string")return!0;if(!Yb())return!1;if(Xd(Jd.fetch))return!0;let e=!1;const t=Jd.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=Xd(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){io&&Y.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function Jb(e){const t="fetch";Ks(t,e),Gs(t,wL)}function wL(){yL()&&Tt(Ne,"fetch",function(e){return function(...t){const{method:n,url:r}=bL(t),s={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return kn("fetch",{...s}),e.apply(Ne,t).then(i=>{const o={...s,endTimestamp:Date.now(),response:i};return kn("fetch",o),i},i=>{const o={...s,endTimestamp:Date.now(),error:i};throw kn("fetch",o),i})}})}function Zd(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Im(e){return typeof e=="string"?e:e?Zd(e,"url")?e.url:e.toString?e.toString():"":""}function bL(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:Im(n),method:Zd(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:Im(t),method:Zd(t,"method")?String(t.method).toUpperCase():"GET"}}let Ya=null;function Xb(e){const t="error";Ks(t,e),Gs(t,EL)}function EL(){Ya=Ne.onerror,Ne.onerror=function(e,t,n,r,s){return kn("error",{column:r,error:s,line:n,msg:e,url:t}),Ya&&!Ya.__SENTRY_LOADER__?Ya.apply(this,arguments):!1},Ne.onerror.__SENTRY_INSTRUMENTED__=!0}let Ja=null;function Zb(e){const t="unhandledrejection";Ks(t,e),Gs(t,TL)}function TL(){Ja=Ne.onunhandledrejection,Ne.onunhandledrejection=function(e){return kn("unhandledrejection",e),Ja&&!Ja.__SENTRY_LOADER__?Ja.apply(this,arguments):!0},Ne.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Xa=Mp();function SL(){const e=Xa.chrome,t=e&&e.app&&e.app.runtime,n="history"in Xa&&!!Xa.history.pushState&&!!Xa.history.replaceState;return!t&&n}const _o=Ne;let Za;function Up(e){const t="history";Ks(t,e),Gs(t,kL)}function kL(){if(!SL())return;const e=_o.onpopstate;_o.onpopstate=function(...n){const r=_o.location.href,s=Za;if(Za=r,kn("history",{from:s,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const s=r.length>2?r[2]:void 0;if(s){const i=Za,o=String(s);Za=o,kn("history",{from:i,to:o})}return n.apply(this,r)}}Tt(_o.history,"pushState",t),Tt(_o.history,"replaceState",t)}const IL=Ne,pi="__sentry_xhr_v3__";function Qb(e){const t="xhr";Ks(t,e),Gs(t,RL)}function RL(){if(!IL.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;Tt(e,"open",function(t){return function(...n){const r=Date.now(),s=Kn(n[0])?n[0].toUpperCase():void 0,i=CL(n[1]);if(!s||!i)return t.apply(this,n);this[pi]={method:s,url:i,request_headers:{}},s==="POST"&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const o=()=>{const a=this[pi];if(a&&this.readyState===4){try{a.status_code=this.status}catch{}const l={args:[s,i],endTimestamp:Date.now(),startTimestamp:r,xhr:this};kn("xhr",l)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?Tt(this,"onreadystatechange",function(a){return function(...l){return o(),a.apply(this,l)}}):this.addEventListener("readystatechange",o),Tt(this,"setRequestHeader",function(a){return function(...l){const[c,u]=l,d=this[pi];return d&&Kn(c)&&Kn(u)&&(d.request_headers[c.toLowerCase()]=u),a.apply(this,l)}}),t.apply(this,n)}}),Tt(e,"send",function(t){return function(...n){const r=this[pi];if(!r)return t.apply(this,n);n[0]!==void 0&&(r.body=n[0]);const s={args:[r.method,r.url],startTimestamp:Date.now(),xhr:this};return kn("xhr",s),t.apply(this,n)}})}function CL(e){if(Kn(e))return e;try{return e.toString()}catch{}}function AL(){return"npm"}function OL(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(s){if(e)return t.has(s)?!0:(t.add(s),!1);for(let i=0;i<t.length;i++)if(t[i]===s)return!0;return t.push(s),!1}function r(s){if(e)t.delete(s);else for(let i=0;i<t.length;i++)if(t[i]===s){t.splice(i,1);break}}return[n,r]}function Fr(e,t=100,n=1/0){try{return Qd("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function eE(e,t=3,n=100*1024){const r=Fr(e,t);return NL(r)>n?eE(e,t-1,n):r}function Qd(e,t,n=1/0,r=1/0,s=OL()){const[i,o]=s;if(t==null||["number","boolean","string"].includes(typeof t)&&!Fb(t))return t;const a=PL(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;const l=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(l===0)return a.replace("object ","");if(i(t))return"[Circular ~]";const c=t;if(c&&typeof c.toJSON=="function")try{const p=c.toJSON();return Qd("",p,l-1,r,s)}catch{}const u=Array.isArray(t)?[]:{};let d=0;const f=Wb(t);for(const p in f){if(!Object.prototype.hasOwnProperty.call(f,p))continue;if(d>=r){u[p]="[MaxProperties ~]";break}const g=f[p];u[p]=Qd(p,g,l-1,r,s),d++}return o(t),u}function PL(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(Bb(t))return"[VueViewModel]";if(WP(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${vr(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=LL(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function LL(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function DL(e){return~-encodeURI(e).split(/%..|./).length}function NL(e){return DL(JSON.stringify(e))}var nr;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(nr||(nr={}));function zi(e){return new Xt(t=>{t(e)})}function Fp(e){return new Xt((t,n)=>{n(e)})}class Xt{constructor(t){Xt.prototype.__init.call(this),Xt.prototype.__init2.call(this),Xt.prototype.__init3.call(this),Xt.prototype.__init4.call(this),this._state=nr.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new Xt((r,s)=>{this._handlers.push([!1,i=>{if(!t)r(i);else try{r(t(i))}catch(o){s(o)}},i=>{if(!n)s(i);else try{r(n(i))}catch(o){s(o)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new Xt((n,r)=>{let s,i;return this.then(o=>{i=!1,s=o,t&&t()},o=>{i=!0,s=o,t&&t()}).then(()=>{if(i){r(s);return}n(s)})})}__init(){this._resolve=t=>{this._setResult(nr.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(nr.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===nr.PENDING){if(Lc(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===nr.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===nr.RESOLVED&&n[1](this._value),this._state===nr.REJECTED&&n[2](this._value),n[0]=!0)})}}}function ML(e){const t=[];function n(){return e===void 0||t.length<e}function r(o){return t.splice(t.indexOf(o),1)[0]}function s(o){if(!n())return Fp(new jn("Not adding Promise because buffer limit was reached."));const a=o();return t.indexOf(a)===-1&&t.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function i(o){return new Xt((a,l)=>{let c=t.length;if(!c)return a(!0);const u=setTimeout(()=>{o&&o>0&&a(!1)},o);t.forEach(d=>{zi(d).then(()=>{--c||(clearTimeout(u),a(!0))},l)})})}return{$:t,add:s,drain:i}}function As(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const $L=["fatal","error","warning","log","info","debug"];function xL(e){return e==="warn"?"warning":$L.includes(e)?e:"log"}const tE=1e3;function va(){return Date.now()/tE}function UL(){const{performance:e}=Ne;if(!e||!e.now)return va;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/tE}const ao=UL(),mn=(()=>{const{performance:e}=Ne;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),s=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=s<t,o=e.timing&&e.timing.navigationStart,l=typeof o=="number"?Math.abs(o+n-r):t,c=l<t;return i||c?s<=l?e.timeOrigin:o:r})(),ef="baggage",nE="sentry-",FL=/^sentry-/,BL=8192;function HL(e){if(!Kn(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce((r,s)=>{const i=Rm(s);for(const o of Object.keys(i))r[o]=i[o];return r},{});else{if(!e)return;t=Rm(e)}const n=Object.entries(t).reduce((r,[s,i])=>{if(s.match(FL)){const o=s.slice(nE.length);r[o]=i}return r},{});if(Object.keys(n).length>0)return n}function rE(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,s])=>(s&&(n[`${nE}${r}`]=s),n),{});return jL(t)}function Rm(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(t[n]=r,t),{})}function jL(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],s)=>{const i=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,o=s===0?i:`${t},${i}`;return o.length>BL?(io&&Y.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):o},"")}const zL=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function VL(e){if(!e)return;const t=e.match(zL);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function WL(e,t){const n=VL(e),r=HL(t),{traceId:s,parentSpanId:i,parentSampled:o}=n||{};return n?{traceId:s||lt(),parentSpanId:i||lt().substring(16),spanId:lt().substring(16),sampled:o,dsc:r||{}}:{traceId:s||lt(),spanId:lt().substring(16)}}function Bp(e=lt(),t=lt().substring(16),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function qs(e,t=[]){return[e,t]}function KL(e,t){const[n,r]=e;return[n,[...r,t]]}function Cm(e,t){const n=e[1];for(const r of n){const s=r[0].type;if(t(r,s))return!0}return!1}function tf(e,t){return(t||new TextEncoder).encode(e)}function GL(e,t){const[n,r]=e;let s=JSON.stringify(n);function i(o){typeof s=="string"?s=typeof o=="string"?s+o:[tf(s,t),o]:s.push(typeof o=="string"?tf(o,t):o)}for(const o of r){const[a,l]=o;if(i(`
${JSON.stringify(a)}
`),typeof l=="string"||l instanceof Uint8Array)i(l);else{let c;try{c=JSON.stringify(l)}catch{c=JSON.stringify(Fr(l))}i(c)}}return typeof s=="string"?s:qL(s)}function qL(e){const t=e.reduce((s,i)=>s+i.length,0),n=new Uint8Array(t);let r=0;for(const s of e)n.set(s,r),r+=s.length;return n}function YL(e,t){const n=typeof e.data=="string"?tf(e.data,t):e.data;return[Qt({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const JL={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function Am(e){return JL[e]}function sE(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function XL(e,t,n,r){const s=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:oo(r)},...s&&{trace:Qt({...s})}}}function ZL(e,t,n){const r=[{type:"client_report"},{timestamp:va(),discarded_events:e}];return qs(t?{dsn:t}:{},[r])}const QL=60*1e3;function eD(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?QL:r-t}function tD(e,t){return e[t]||e.all||0}function nD(e,t,n=Date.now()){return tD(e,t)>n}function rD(e,{statusCode:t,headers:n},r=Date.now()){const s={...e},i=n&&n["x-sentry-rate-limits"],o=n&&n["retry-after"];if(i)for(const a of i.trim().split(",")){const[l,c,,,u]=a.split(":",5),d=parseInt(l,10),f=(isNaN(d)?60:d)*1e3;if(!c)s.all=r+f;else for(const p of c.split(";"))p==="metric_bucket"?(!u||u.split(";").includes("custom"))&&(s[p]=r+f):s[p]=r+f}else o?s.all=r+eD(o,r):t===429&&(s.all=r+60*1e3);return s}const he=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Dc="production";function Hp(){return Hb("globalEventProcessors",()=>[])}function sD(e){Hp().push(e)}function Vl(e,t,n,r=0){return new Xt((s,i)=>{const o=e[r];if(t===null||typeof o!="function")s(t);else{const a=o({...t},n);he&&o.id&&a===null&&Y.log(`Event processor "${o.id}" dropped event`),Lc(a)?a.then(l=>Vl(e,l,n,r+1).then(s)).then(null,i):Vl(e,a,n,r+1).then(s).then(null,i)}})}function iE(e){const t=ao(),n={sid:lt(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>iD(n)};return e&&$s(n,e),n}function $s(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||ao(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:lt()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function oE(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),$s(e,n)}function iD(e){return Qt({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const oD=0,aE=1;function jp(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:s,parent_span_id:i,status:o,tags:a,origin:l}=dt(e);return Qt({data:r,op:s,parent_span_id:i,span_id:t,status:o,tags:a,trace_id:n,origin:l})}function Nc(e){const{traceId:t,spanId:n}=e.spanContext(),r=zp(e);return Bp(t,n,r)}function Mc(e){return typeof e=="number"?Om(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Om(e.getTime()):ao()}function Om(e){return e>9999999999?e/1e3:e}function dt(e){return aD(e)?e.getSpanJSON():typeof e.toJSON=="function"?e.toJSON():{}}function aD(e){return typeof e.getSpanJSON=="function"}function zp(e){const{traceFlags:t}=e.spanContext();return!!(t&aE)}function lD(e,t,n,r,s,i){const{normalizeDepth:o=3,normalizeMaxBreadth:a=1e3}=e,l={...t,event_id:t.event_id||n.event_id||lt(),timestamp:t.timestamp||va()},c=n.integrations||e.integrations.map(w=>w.name);cD(l,e),fD(l,c),t.type===void 0&&uD(l,e.stackParser);const u=hD(r,n.captureContext);n.mechanism&&Zo(l,n.mechanism);const d=s&&s.getEventProcessors?s.getEventProcessors():[],f=ID().getScopeData();if(i){const w=i.getScopeData();Nm(f,w)}if(u){const w=u.getScopeData();Nm(f,w)}const p=[...n.attachments||[],...f.attachments];p.length&&(n.attachments=p),dE(l,f);const g=[...d,...Hp(),...f.eventProcessors];return Vl(g,l,n).then(w=>(w&&dD(w),typeof o=="number"&&o>0?pD(w,o,a):w))}function cD(e,t){const{environment:n,release:r,dist:s,maxValueLength:i=250}=t;"environment"in e||(e.environment="environment"in t?n:Dc),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&s!==void 0&&(e.dist=s),e.message&&(e.message=Ii(e.message,i));const o=e.exception&&e.exception.values&&e.exception.values[0];o&&o.value&&(o.value=Ii(o.value,i));const a=e.request;a&&a.url&&(a.url=Ii(a.url,i))}const Pm=new WeakMap;function uD(e,t){const n=Ne._sentryDebugIds;if(!n)return;let r;const s=Pm.get(t);s?r=s:(r=new Map,Pm.set(t,r));const i=Object.keys(n).reduce((o,a)=>{let l;const c=r.get(a);c?l=c:(l=t(a),r.set(a,l));for(let u=l.length-1;u>=0;u--){const d=l[u];if(d.filename){o[d.filename]=n[a];break}}return o},{});try{e.exception.values.forEach(o=>{o.stacktrace.frames.forEach(a=>{a.filename&&(a.debug_id=i[a.filename])})})}catch{}}function dD(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(s=>{s.debug_id&&(s.abs_path?t[s.abs_path]=s.debug_id:s.filename&&(t[s.filename]=s.debug_id),delete s.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach(r=>{n.push({type:"sourcemap",code_file:r,debug_id:t[r]})})}function fD(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function pD(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(s=>({...s,...s.data&&{data:Fr(s.data,t,n)}}))},...e.user&&{user:Fr(e.user,t,n)},...e.contexts&&{contexts:Fr(e.contexts,t,n)},...e.extra&&{extra:Fr(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Fr(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(s=>{const i=dt(s).data;return i&&(s.data=Fr(i,t,n)),s})),r}function hD(e,t){if(!t)return e;const n=e?e.clone():new gr;return n.update(t),n}function gD(e){if(e)return mD(e)?{captureContext:e}:vD(e)?{captureContext:e}:e}function mD(e){return e instanceof gr||typeof e=="function"}const _D=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function vD(e){return Object.keys(e).some(t=>_D.includes(t))}function Vp(e,t){return jt().captureException(e,gD(t))}function lE(e,t){return jt().captureEvent(e,t)}function xs(e,t){jt().addBreadcrumb(e,t)}function yD(...e){const t=jt();if(e.length===2){const[n,r]=e;return n?t.withScope(()=>(t.getStackTop().scope=n,r(n))):t.withScope(r)}return t.withScope(e[0])}function mt(){return jt().getClient()}function Pn(){return jt().getScope()}function Lm(e){const t=mt(),n=Ys(),r=Pn(),{release:s,environment:i=Dc}=t&&t.getOptions()||{},{userAgent:o}=Ne.navigator||{},a=iE({release:s,environment:i,user:r.getUser()||n.getUser(),...o&&{userAgent:o},...e}),l=n.getSession();return l&&l.status==="ok"&&$s(l,{status:"exited"}),cE(),n.setSession(a),r.setSession(a),a}function cE(){const e=Ys(),t=Pn(),n=t.getSession()||e.getSession();n&&oE(n),uE(),e.setSession(),t.setSession()}function uE(){const e=Ys(),t=Pn(),n=mt(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function Dm(e=!1){if(e){cE();return}uE()}function Wl(e){return e.transaction}function $c(e,t,n){const r=t.getOptions(),{publicKey:s}=t.getDsn()||{},{segment:i}=n&&n.getUser()||{},o=Qt({environment:r.environment||Dc,release:r.release,user_segment:i,public_key:s,trace_id:e});return t.emit&&t.emit("createDsc",o),o}function Vi(e){const t=mt();if(!t)return{};const n=$c(dt(e).trace_id||"",t,Pn()),r=Wl(e);if(!r)return n;const s=r&&r._frozenDynamicSamplingContext;if(s)return s;const{sampleRate:i,source:o}=r.metadata;i!=null&&(n.sample_rate=`${i}`);const a=dt(r);return o&&o!=="url"&&(n.transaction=a.description),n.sampled=String(zp(r)),t.emit&&t.emit("createDsc",n),n}function dE(e,t){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:i}=t;wD(e,t),r&&TD(e,r),SD(e,n),bD(e,s),ED(e,i)}function Nm(e,t){const{extra:n,tags:r,user:s,contexts:i,level:o,sdkProcessingMetadata:a,breadcrumbs:l,fingerprint:c,eventProcessors:u,attachments:d,propagationContext:f,transactionName:p,span:g}=t;vo(e,"extra",n),vo(e,"tags",r),vo(e,"user",s),vo(e,"contexts",i),vo(e,"sdkProcessingMetadata",a),o&&(e.level=o),p&&(e.transactionName=p),g&&(e.span=g),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),u.length&&(e.eventProcessors=[...e.eventProcessors,...u]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...f}}function vo(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function wD(e,t){const{extra:n,tags:r,user:s,contexts:i,level:o,transactionName:a}=t,l=Qt(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});const c=Qt(r);c&&Object.keys(c).length&&(e.tags={...c,...e.tags});const u=Qt(s);u&&Object.keys(u).length&&(e.user={...u,...e.user});const d=Qt(i);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),o&&(e.level=o),a&&(e.transaction=a)}function bD(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function ED(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function TD(e,t){e.contexts={trace:jp(t),...e.contexts};const n=Wl(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:Vi(t),...e.sdkProcessingMetadata};const r=dt(n).description;r&&(e.tags={transaction:r,...e.tags})}}function SD(e,t){e.fingerprint=e.fingerprint?xp(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}const kD=100;let Eu;class gr{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Mm()}static clone(t){return t?t.clone():new gr}clone(){const t=new gr;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&$s(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t;if(n instanceof gr){const r=n.getScopeData();this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&Object.keys(r.user).length&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint.length&&(this._fingerprint=r.fingerprint),n.getRequestSession()&&(this._requestSession=n.getRequestSession()),r.propagationContext&&(this._propagationContext=r.propagationContext)}else if(Hi(n)){const r=t;this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint&&(this._fingerprint=r.fingerprint),r.requestSession&&(this._requestSession=r.requestSession),r.propagationContext&&(this._propagationContext=r.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=Mm(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:kD;if(r<=0)return this;const s={timestamp:va(),...t},i=this._breadcrumbs;return i.push(s),this._breadcrumbs=i.length>r?i.slice(-r):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:n,_contexts:r,_tags:s,_extra:i,_user:o,_level:a,_fingerprint:l,_eventProcessors:c,_propagationContext:u,_sdkProcessingMetadata:d,_transactionName:f,_span:p}=this;return{breadcrumbs:t,attachments:n,contexts:r,tags:s,extra:i,user:o,level:a,fingerprint:l||[],eventProcessors:c,propagationContext:u,sdkProcessingMetadata:d,transactionName:f,span:p}}applyToEvent(t,n={},r=[]){dE(t,this.getScopeData());const s=[...r,...Hp(),...this._eventProcessors];return Vl(s,t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:lt();if(!this._client)return Y.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureMessage(t,n,r){const s=r&&r.event_id?r.event_id:lt();if(!this._client)return Y.warn("No client configured on scope - will not capture message!"),s;const i=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:s},this),s}captureEvent(t,n){const r=n&&n.event_id?n.event_id:lt();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(Y.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function ID(){return Eu||(Eu=new gr),Eu}function Mm(){return{traceId:lt(),spanId:lt().substring(16)}}const Qo="7.118.0",fE=parseFloat(Qo),RD=100;class pE{constructor(t,n,r,s=fE){this._version=s;let i;n?i=n:(i=new gr,i.setClient(t));let o;r?o=r:(o=new gr,o.setClient(t)),this._stack=[{scope:i}],t&&this.bindClient(t),this._isolationScope=o}isOlderThan(t){return this._version<t}bindClient(t){const n=this.getStackTop();n.client=t,n.scope.setClient(t),t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(t){const n=this.pushScope();let r;try{r=t(n)}catch(s){throw this.popScope(),s}return Lc(r)?r.then(s=>(this.popScope(),s),s=>{throw this.popScope(),s}):(this.popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:lt(),s=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:s,...n,event_id:r}),r}captureMessage(t,n,r){const s=this._lastEventId=r&&r.event_id?r.event_id:lt(),i=new Error(t);return this.getScope().captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:s}),s}captureEvent(t,n){const r=n&&n.event_id?n.event_id:lt();return t.type||(this._lastEventId=r),this.getScope().captureEvent(t,{...n,event_id:r}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:r,client:s}=this.getStackTop();if(!s)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:o=RD}=s.getOptions&&s.getOptions()||{};if(o<=0)return;const l={timestamp:va(),...t},c=i?Ws(()=>i(l,n)):l;c!==null&&(s.emit&&s.emit("beforeAddBreadcrumb",c,n),r.addBreadcrumb(c,o))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n),this.getIsolationScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n),this.getIsolationScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n),this.getIsolationScope().setContext(t,n)}configureScope(t){const{scope:n,client:r}=this.getStackTop();r&&t(n)}run(t){const n=$m(this);try{t(this)}finally{$m(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return he&&Y.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){const r=this._callExtensionMethod("startTransaction",t,n);return he&&!r&&(this.getClient()?Y.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
Sentry.addTracingExtensions();
Sentry.init({...});
`):Y.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,r=n.getSession();r&&oE(r),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:r}=this.getStackTop(),{release:s,environment:i=Dc}=r&&r.getOptions()||{},{userAgent:o}=Ne.navigator||{},a=iE({release:s,environment:i,user:n.getUser(),...o&&{userAgent:o},...t}),l=n.getSession&&n.getSession();return l&&l.status==="ok"&&$s(l,{status:"exited"}),this.endSession(),n.setSession(a),a}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop(),r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_callExtensionMethod(t,...n){const s=ya().__SENTRY__;if(s&&s.extensions&&typeof s.extensions[t]=="function")return s.extensions[t].apply(this,n);he&&Y.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function ya(){return Ne.__SENTRY__=Ne.__SENTRY__||{extensions:{},hub:void 0},Ne}function $m(e){const t=ya(),n=nf(t);return hE(t,e),n}function jt(){const e=ya();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return CD(e)}function Ys(){return jt().getIsolationScope()}function CD(e=ya()){return(!AD(e)||nf(e).isOlderThan(fE))&&hE(e,new pE),nf(e)}function AD(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function nf(e){return Hb("hub",()=>new pE,e)}function hE(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function Js(e){return jt().getScope().getTransaction()}let xm=!1;function OD(){xm||(xm=!0,Xb(rf),Zb(rf))}function rf(){const e=Js();if(e){const t="internal_error";he&&Y.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}rf.tag="sentry_tracingErrorCallback";var Um;(function(e){const t="ok";e.Ok=t;const n="deadline_exceeded";e.DeadlineExceeded=n;const r="unauthenticated";e.Unauthenticated=r;const s="permission_denied";e.PermissionDenied=s;const i="not_found";e.NotFound=i;const o="resource_exhausted";e.ResourceExhausted=o;const a="invalid_argument";e.InvalidArgument=a;const l="unimplemented";e.Unimplemented=l;const c="unavailable";e.Unavailable=c;const u="internal_error";e.InternalError=u;const d="unknown_error";e.UnknownError=d;const f="cancelled";e.Cancelled=f;const p="already_exists";e.AlreadyExists=p;const g="failed_precondition";e.FailedPrecondition=g;const v="aborted";e.Aborted=v;const w="out_of_range";e.OutOfRange=w;const y="data_loss";e.DataLoss=y})(Um||(Um={}));function PD(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}function Wp(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);const n=PD(t);n!=="unknown_error"&&e.setStatus(n)}function Xs(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=mt(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function Kl(e){if(!Xs())return;const t=DD(e),n=jt(),r=e.scope?e.scope.getSpan():ea();if(e.onlyIfParent&&!r)return;const o=(e.scope||Pn()).clone();return LD(n,{parentSpan:r,spanContext:t,forceTransaction:e.forceTransaction,scope:o})}function ea(){return Pn().getSpan()}function LD(e,{parentSpan:t,spanContext:n,forceTransaction:r,scope:s}){if(!Xs())return;const i=Ys();let o;if(t&&!r)o=t.startChild(n);else if(t){const a=Vi(t),{traceId:l,spanId:c}=t.spanContext(),u=zp(t);o=e.startTransaction({traceId:l,parentSpanId:c,parentSampled:u,...n,metadata:{dynamicSamplingContext:a,...n.metadata}})}else{const{traceId:a,dsc:l,parentSpanId:c,sampled:u}={...i.getPropagationContext(),...s.getPropagationContext()};o=e.startTransaction({traceId:a,parentSpanId:c,parentSampled:u,...n,metadata:{dynamicSamplingContext:l,...n.metadata}})}return s.setSpan(o),ND(o,s,i),o}function DD(e){if(e.startTime){const t={...e};return t.startTimestamp=Mc(e.startTime),delete t.startTime,t}return e}const gE="_sentryScope",mE="_sentryIsolationScope";function ND(e,t,n){e&&(Ms(e,mE,n),Ms(e,gE,t))}function MD(e){return{scope:e[gE],isolationScope:e[mE]}}const In="sentry.source",hi="sentry.sample_rate",Qa="sentry.op",qr="sentry.origin",$D="profile_id";class _E{constructor(t=1e3){this._maxlen=t,this.spans=[]}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class xc{constructor(t={}){this._traceId=t.traceId||lt(),this._spanId=t.spanId||lt().substring(16),this._startTime=t.startTimestamp||ao(),this.tags=t.tags?{...t.tags}:{},this.data=t.data?{...t.data}:{},this.instrumenter=t.instrumenter||"sentry",this._attributes={},this.setAttributes({[qr]:t.origin||"manual",[Qa]:t.op,...t.attributes}),this._name=t.name||t.description,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.status&&(this._status=t.status),t.endTimestamp&&(this._endTime=t.endTimestamp),t.exclusiveTime!==void 0&&(this._exclusiveTime=t.exclusiveTime),this._measurements=t.measurements?{...t.measurements}:{}}get name(){return this._name||""}set name(t){this.updateName(t)}get description(){return this._name}set description(t){this._name=t}get traceId(){return this._traceId}set traceId(t){this._traceId=t}get spanId(){return this._spanId}set spanId(t){this._spanId=t}set parentSpanId(t){this._parentSpanId=t}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(t){this._sampled=t}get attributes(){return this._attributes}set attributes(t){this._attributes=t}get startTimestamp(){return this._startTime}set startTimestamp(t){this._startTime=t}get endTimestamp(){return this._endTime}set endTimestamp(t){this._endTime=t}get status(){return this._status}set status(t){this._status=t}get op(){return this._attributes[Qa]}set op(t){this.setAttribute(Qa,t)}get origin(){return this._attributes[qr]}set origin(t){this.setAttribute(qr,t)}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?aE:oD}}startChild(t){const n=new xc({...t,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n);const r=Wl(this);if(n.transaction=r,he&&r){const s=t&&t.op||"< unknown op >",i=dt(n).description||"< unknown name >",o=r.spanContext().spanId,a=`[Tracing] Starting '${s}' span on transaction '${i}' (${o}).`;Y.log(a),this._logMessage=a}return n}setTag(t,n){return this.tags={...this.tags,[t]:n},this}setData(t,n){return this.data={...this.data,[t]:n},this}setAttribute(t,n){n===void 0?delete this._attributes[t]:this._attributes[t]=n}setAttributes(t){Object.keys(t).forEach(n=>this.setAttribute(n,t[n]))}setStatus(t){return this._status=t,this}setHttpStatus(t){return Wp(this,t),this}setName(t){this.updateName(t)}updateName(t){return this._name=t,this}isSuccess(){return this._status==="ok"}finish(t){return this.end(t)}end(t){if(this._endTime)return;const n=Wl(this);if(he&&n&&n.spanContext().spanId!==this._spanId){const r=this._logMessage;r&&Y.log(r.replace("Starting","Finishing"))}this._endTime=Mc(t)}toTraceparent(){return Nc(this)}toContext(){return Qt({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(t){return this.data=t.data||{},this._name=t.name||t.description,this._endTime=t.endTimestamp,this.op=t.op,this._parentSpanId=t.parentSpanId,this._sampled=t.sampled,this._spanId=t.spanId||this._spanId,this._startTime=t.startTimestamp||this._startTime,this._status=t.status,this.tags=t.tags||{},this._traceId=t.traceId||this._traceId,this}getTraceContext(){return jp(this)}getSpanJSON(){return Qt({data:this._getData(),description:this._name,op:this._attributes[Qa],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[qr],_metrics_summary:void 0,profile_id:this._attributes[$D],exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data:t,_attributes:n}=this,r=Object.keys(t).length>0,s=Object.keys(n).length>0;if(!(!r&&!s))return r&&s?{...t,...n}:r?t:n}}class vE extends xc{constructor(t,n){super(t),this._contexts={},this._hub=n||jt(),this._name=t.name||"",this._metadata={...t.metadata},this._trimEnd=t.trimEnd,this.transaction=this;const r=this._metadata.dynamicSamplingContext;r&&(this._frozenDynamicSamplingContext={...r})}get name(){return this._name}set name(t){this.setName(t)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[In]&&{source:this._attributes[In]},...this._attributes[hi]&&{sampleRate:this._attributes[hi]}}}set metadata(t){this._metadata=t}setName(t,n="custom"){this._name=t,this.setAttribute(In,n)}updateName(t){return this._name=t,this}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new _E(t)),this.spanRecorder.add(this)}setContext(t,n){n===null?delete this._contexts[t]:this._contexts[t]=n}setMeasurement(t,n,r=""){this._measurements[t]={value:n,unit:r}}setMetadata(t){this._metadata={...this._metadata,...t}}end(t){const n=Mc(t),r=this._finishTransaction(n);if(r)return this._hub.captureEvent(r)}toContext(){const t=super.toContext();return Qt({...t,name:this._name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this._name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){return Vi(this)}setHub(t){this._hub=t}getProfileId(){if(this._contexts!==void 0&&this._contexts.profile!==void 0)return this._contexts.profile.profile_id}_finishTransaction(t){if(this._endTime!==void 0)return;this._name||(he&&Y.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>"),super.end(t);const n=this._hub.getClient();if(n&&n.emit&&n.emit("finishTransaction",this),this._sampled!==!0){he&&Y.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),n&&n.recordDroppedEvent("sample_rate","transaction");return}const r=this.spanRecorder?this.spanRecorder.spans.filter(u=>u!==this&&dt(u).timestamp):[];if(this._trimEnd&&r.length>0){const u=r.map(d=>dt(d).timestamp).filter(Boolean);this._endTime=u.reduce((d,f)=>d>f?d:f)}const{scope:s,isolationScope:i}=MD(this),{metadata:o}=this,{source:a}=o,l={contexts:{...this._contexts,trace:jp(this)},spans:r,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...o,capturedSpanScope:s,capturedSpanIsolationScope:i,...Qt({dynamicSamplingContext:Vi(this)})},_metrics_summary:void 0,...a&&{transaction_info:{source:a}}};return Object.keys(this._measurements).length>0&&(he&&Y.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),l.measurements=this._measurements),he&&Y.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),l}}const vl={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},xD="finishReason",ni=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class UD extends _E{constructor(t,n,r,s){super(s),this._pushActivity=t,this._popActivity=n,this.transactionSpanId=r}add(t){if(t.spanContext().spanId!==this.transactionSpanId){const n=t.end;t.end=(...r)=>(this._popActivity(t.spanContext().spanId),n.apply(t,r)),dt(t).timestamp===void 0&&this._pushActivity(t.spanContext().spanId)}super.add(t)}}class FD extends vE{constructor(t,n,r=vl.idleTimeout,s=vl.finalTimeout,i=vl.heartbeatInterval,o=!1,a=!1){super(t,n),this._idleHub=n,this._idleTimeout=r,this._finalTimeout=s,this._heartbeatInterval=i,this._onScope=o,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=ni[4],this._autoFinishAllowed=!a,o&&(he&&Y.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),n.getScope().setSpan(this)),a||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=ni[3],this.end())},this._finalTimeout)}end(t){const n=Mc(t);if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setAttribute(xD,this._finishReason),this.spanRecorder){he&&Y.log("[Tracing] finishing IdleTransaction",new Date(n*1e3).toISOString(),this.op);for(const r of this._beforeFinishCallbacks)r(this,n);this.spanRecorder.spans=this.spanRecorder.spans.filter(r=>{if(r.spanContext().spanId===this.spanContext().spanId)return!0;dt(r).timestamp||(r.setStatus("cancelled"),r.end(n),he&&Y.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(r,void 0,2)));const{start_timestamp:s,timestamp:i}=dt(r),o=s&&s<n,a=(this._finalTimeout+this._idleTimeout)/1e3,l=i&&s&&i-s<a;if(he){const c=JSON.stringify(r,void 0,2);o?l||Y.log("[Tracing] discarding Span since it finished after Transaction final timeout",c):Y.log("[Tracing] discarding Span since it happened after Transaction was finished",c)}return o&&l}),he&&Y.log("[Tracing] flushing IdleTransaction")}else he&&Y.log("[Tracing] No active IdleTransaction");if(this._onScope){const r=this._idleHub.getScope();r.getTransaction()===this&&r.setSpan(void 0)}return super.end(t)}registerBeforeFinishCallback(t){this._beforeFinishCallbacks.push(t)}initSpanRecorder(t){if(!this.spanRecorder){const n=s=>{this._finished||this._pushActivity(s)},r=s=>{this._finished||this._popActivity(s)};this.spanRecorder=new UD(n,r,this.spanContext().spanId,t),he&&Y.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:n}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=n===!1,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently&&(this._finishReason=ni[5],this.end(t)))}setFinishReason(t){this._finishReason=t}sendAutoFinishSignal(){this._autoFinishAllowed||(he&&Y.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=ni[1],this.end(t))},this._idleTimeout)}_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),he&&Y.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,he&&Y.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(he&&Y.log(`[Tracing] popActivity ${t}`),delete this.activities[t],he&&Y.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){const n=ao();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=ni[5],this.end(n)):this._restartIdleTimeout(n+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?this._autoFinishAllowed&&(he&&Y.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=ni[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){he&&Y.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function yE(e,t,n){if(!Xs(t))return e.sampled=!1,e;if(e.sampled!==void 0)return e.setAttribute(hi,Number(e.sampled)),e;let r;return typeof t.tracesSampler=="function"?(r=t.tracesSampler(n),e.setAttribute(hi,Number(r))):n.parentSampled!==void 0?r=n.parentSampled:typeof t.tracesSampleRate<"u"?(r=t.tracesSampleRate,e.setAttribute(hi,Number(r))):(r=1,e.setAttribute(hi,r)),wE(r)?r?(e.sampled=Math.random()<r,e.sampled?(he&&Y.log(`[Tracing] starting ${e.op} transaction - ${dt(e).description}`),e):(he&&Y.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),e)):(he&&Y.log(`[Tracing] Discarding transaction because ${typeof t.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),e.sampled=!1,e):(he&&Y.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)}function wE(e){return Fb(e)||!(typeof e=="number"||typeof e=="boolean")?(he&&Y.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e<0||e>1?(he&&Y.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function BD(){const t=this.getScope().getSpan();return t?{"sentry-trace":Nc(t)}:{}}function HD(e,t){const n=this.getClient(),r=n&&n.getOptions()||{},s=r.instrumenter||"sentry",i=e.instrumenter||"sentry";s!==i&&(he&&Y.error(`A transaction was started with instrumenter=\`${i}\`, but the SDK is configured with the \`${s}\` instrumenter.
The transaction will not be sampled. Please use the ${s} instrumentation to start transactions.`),e.sampled=!1);let o=new vE(e,this);return o=yE(o,r,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...t}),o.isRecording()&&o.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",o),o}function bE(e,t,n,r,s,i,o,a=!1){const l=e.getClient(),c=l&&l.getOptions()||{};let u=new FD(t,e,n,r,o,s,a);return u=yE(u,c,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...i}),u.isRecording()&&u.initSpanRecorder(c._experiments&&c._experiments.maxSpans),l&&l.emit&&l.emit("startTransaction",u),u}function jD(){const e=ya();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=HD),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=BD),OD())}function zD(e,t,n){const r=Js();r&&r.setMeasurement(e,t,n)}function VD(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function WD(e,t,n,r){const s=sE(n),i={sent_at:new Date().toISOString(),...s&&{sdk:s},...!!r&&t&&{dsn:oo(t)}},o="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return qs(i,[o])}function KD(e,t,n,r){const s=sE(n),i=e.type&&e.type!=="replay_event"?e.type:"event";VD(e,n&&n.sdk);const o=XL(e,s,r,t);return delete e.sdkProcessingMetadata,qs(o,[[{type:i},e]])}const GD="7";function qD(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function YD(e){return`${qD(e)}${e.projectId}/envelope/`}function JD(e,t){return oL({sentry_key:e.publicKey,sentry_version:GD,...t&&{sentry_client:`${t.name}/${t.version}`}})}function XD(e,t={}){const n=typeof t=="string"?t:t.tunnel,r=typeof t=="string"||!t._metadata?void 0:t._metadata.sdk;return n||`${YD(e)}?${JD(e,r)}`}const Fm=[];function ZD(e){const t={};return e.forEach(n=>{const{name:r}=n,s=t[r];s&&!s.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.keys(t).map(n=>t[n])}function QD(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(o=>{o.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...t,...n]:typeof n=="function"?r=xp(n(t)):r=t;const s=ZD(r),i=tN(s,o=>o.name==="Debug");if(i!==-1){const[o]=s.splice(i,1);s.push(o)}return s}function eN(e,t){const n={};return t.forEach(r=>{r&&EE(e,r,n)}),n}function Bm(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function EE(e,t,n){if(n[t.name]){he&&Y.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,Fm.indexOf(t.name)===-1&&(t.setupOnce(sD,jt),Fm.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),e.on&&typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(s,i)=>r(s,i,e))}if(e.addEventProcessor&&typeof t.processEvent=="function"){const r=t.processEvent.bind(t),s=Object.assign((i,o)=>r(i,o,e),{id:t.name});e.addEventProcessor(s)}he&&Y.log(`Integration installed: ${t.name}`)}function tN(e,t){for(let n=0;n<e.length;n++)if(t(e[n])===!0)return n;return-1}function Sr(e,t){return Object.assign(function(...r){return t(...r)},{id:e})}function nN(e){let t="";for(const n of e){const r=Object.entries(n.tags),s=r.length>0?`|#${r.map(([i,o])=>`${i}:${o}`).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${s}|T${n.timestamp}
`}return t}function rN(e,t,n,r){const s={sent_at:new Date().toISOString()};n&&n.sdk&&(s.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(s.dsn=oo(t));const i=sN(e);return qs(s,[i])}function sN(e){const t=nN(e);return[{type:"statsd",length:t.length},t]}const Hm="Not capturing exception because it's already been captured.";class iN{constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=iL(t.dsn):he&&Y.warn("No DSN provided, client will not send events."),this._dsn){const n=XD(this._dsn,t);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){if(Tm(t)){he&&Y.log(Hm);return}let s=n&&n.event_id;return this._process(this.eventFromException(t,n).then(i=>this._captureEvent(i,n,r)).then(i=>{s=i})),s}captureMessage(t,n,r,s){let i=r&&r.event_id;const o=Dp(t)?t:String(t),a=Np(t)?this.eventFromMessage(o,n,r):this.eventFromException(t,r);return this._process(a.then(l=>this._captureEvent(l,r,s)).then(l=>{i=l})),i}captureEvent(t,n,r){if(n&&n.originalException&&Tm(n.originalException)){he&&Y.log(Hm);return}let s=n&&n.event_id;const o=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,n,o||r).then(a=>{s=a})),s}captureSession(t){typeof t.release!="string"?he&&Y.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),$s(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(s=>r&&s))):zi(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}setupIntegrations(t){(t&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(t){return this.getIntegrationByName(t)}getIntegrationByName(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch{return he&&Y.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){const n=this._integrations[t.name];EE(this,t,this._integrations),n||Bm(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=KD(t,this._dsn,this._options._metadata,this._options.tunnel);for(const i of n.attachments||[])r=KL(r,YL(i,this._options.transportOptions&&this._options.transportOptions.textEncoder));const s=this._sendEnvelope(r);s&&s.then(i=>this.emit("afterSendEvent",t,i),null)}sendSession(t){const n=WD(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const s=`${t}:${n}`;he&&Y.log(`Adding outcome: "${s}"`),this._outcomes[s]=this._outcomes[s]+1||1}}captureAggregateMetrics(t){he&&Y.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);const n=rN(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}on(t,n){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(n)}emit(t,...n){this._hooks[t]&&this._hooks[t].forEach(r=>r(...n))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=eN(this,t),Bm(this,t),this._integrationsInitialized=!0}_updateSessionFromEvent(t,n){let r=!1,s=!1;const i=n.exception&&n.exception.values;if(i){s=!0;for(const l of i){const c=l.mechanism;if(c&&c.handled===!1){r=!0;break}}}const o=t.status==="ok";(o&&t.errors===0||o&&r)&&($s(t,{...r&&{status:"crashed"},errors:t.errors||Number(s||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new Xt(n=>{let r=0;const s=1,i=setInterval(()=>{this._numProcessing==0?(clearInterval(i),n(!0)):(r+=s,t&&r>=t&&(clearInterval(i),n(!1)))},s)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,s=Ys()){const i=this.getOptions(),o=Object.keys(this._integrations);return!n.integrations&&o.length>0&&(n.integrations=o),this.emit("preprocessEvent",t,n),lD(i,t,n,r,this,s).then(a=>{if(a===null)return a;const l={...s.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(a.contexts&&a.contexts.trace)&&l){const{traceId:u,spanId:d,parentSpanId:f,dsc:p}=l;a.contexts={trace:{trace_id:u,span_id:d,parent_span_id:f},...a.contexts};const g=p||$c(u,this,r);a.sdkProcessingMetadata={dynamicSamplingContext:g,...a.sdkProcessingMetadata}}return a})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(s=>s.event_id,s=>{if(he){const i=s;i.logLevel==="log"?Y.log(i.message):Y.warn(i)}})}_processEvent(t,n,r){const s=this.getOptions(),{sampleRate:i}=s,o=SE(t),a=TE(t),l=t.type||"error",c=`before send for type \`${l}\``;if(a&&typeof i=="number"&&Math.random()>i)return this.recordDroppedEvent("sample_rate","error",t),Fp(new jn(`Discarding event because it's not included in the random sample (sampling rate = ${i})`,"log"));const u=l==="replay_event"?"replay":l,f=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,r,f).then(p=>{if(p===null)throw this.recordDroppedEvent("event_processor",u,t),new jn("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return p;const v=aN(s,p,n);return oN(v,c)}).then(p=>{if(p===null)throw this.recordDroppedEvent("before_send",u,t),new jn(`${c} returned \`null\`, will not send event.`,"log");const g=r&&r.getSession();!o&&g&&this._updateSessionFromEvent(g,p);const v=p.transaction_info;if(o&&v&&p.transaction!==t.transaction){const w="custom";p.transaction_info={...v,source:w}}return this.sendEvent(p,n),p}).then(null,p=>{throw p instanceof jn?p:(this.captureException(p,{data:{__sentry__:!0},originalException:p}),new jn(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
Reason: ${p}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,n=>{he&&Y.error("Error while sending event:",n)});he&&Y.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map(n=>{const[r,s]=n.split(":");return{reason:r,category:s,quantity:t[n]}})}}function oN(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Lc(e))return e.then(r=>{if(!Hi(r)&&r!==null)throw new jn(n);return r},r=>{throw new jn(`${t} rejected with ${r}`)});if(!Hi(e)&&e!==null)throw new jn(n);return e}function aN(e,t,n){const{beforeSend:r,beforeSendTransaction:s}=e;return TE(t)&&r?r(t,n):SE(t)&&s?s(t,n):t}function TE(e){return e.type===void 0}function SE(e){return e.type==="transaction"}function lN(e,t){t.debug===!0&&(he?Y.enable():Ws(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Pn().update(t.initialScope);const r=new e(t);cN(r),uN(r)}function cN(e){const n=jt().getStackTop();n.client=e,n.scope.setClient(e)}function uN(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}const dN=30;function kE(e,t,n=ML(e.bufferSize||dN)){let r={};const s=o=>n.drain(o);function i(o){const a=[];if(Cm(o,(d,f)=>{const p=Am(f);if(nD(r,p)){const g=jm(d,f);e.recordDroppedEvent("ratelimit_backoff",p,g)}else a.push(d)}),a.length===0)return zi();const l=qs(o[0],a),c=d=>{Cm(l,(f,p)=>{const g=jm(f,p);e.recordDroppedEvent(d,Am(p),g)})},u=()=>t({body:GL(l,e.textEncoder)}).then(d=>(d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&he&&Y.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),r=rD(r,d),d),d=>{throw c("network_error"),d});return n.add(u).then(d=>d,d=>{if(d instanceof jn)return he&&Y.error("Skipped sending event because buffer is full."),c("queue_overflow"),zi();throw d})}return i.__sentry__baseTransport__=!0,{send:i,flush:s}}function jm(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function fN(e,t){const n={sent_at:new Date().toISOString()};t&&(n.dsn=oo(t));const r=e.map(pN);return qs(n,r)}function pN(e){return[{type:"span"},e]}function hN(e,t,n=[t],r="npm"){const s=e._metadata||{};s.sdk||(s.sdk={name:`sentry.javascript.${t}`,packages:n.map(i=>({name:`${r}:@sentry/${i}`,version:Qo})),version:Qo}),e._metadata=s}const gN=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],mN=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],IE="InboundFilters",_N=(e={})=>({name:IE,setupOnce(){},processEvent(t,n,r){const s=r.getOptions(),i=vN(e,s);return yN(t,i)?null:t}}),RE=_N;Sr(IE,RE);function vN(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:gN],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:mN],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function yN(e,t){return t.ignoreInternal&&kN(e)?(he&&Y.warn(`Event dropped due to being internal Sentry Error.
Event: ${jr(e)}`),!0):wN(e,t.ignoreErrors)?(he&&Y.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
Event: ${jr(e)}`),!0):bN(e,t.ignoreTransactions)?(he&&Y.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
Event: ${jr(e)}`),!0):EN(e,t.denyUrls)?(he&&Y.warn(`Event dropped due to being matched by \`denyUrls\` option.
Event: ${jr(e)}.
Url: ${Gl(e)}`),!0):TN(e,t.allowUrls)?!1:(he&&Y.warn(`Event dropped due to not being matched by \`allowUrls\` option.
Event: ${jr(e)}.
Url: ${Gl(e)}`),!0)}function wN(e,t){return e.type||!t||!t.length?!1:SN(e).some(n=>_a(n,t))}function bN(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?_a(n,t):!1}function EN(e,t){if(!t||!t.length)return!1;const n=Gl(e);return n?_a(n,t):!1}function TN(e,t){if(!t||!t.length)return!0;const n=Gl(e);return n?_a(n,t):!0}function SN(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),he&&t.length===0&&Y.error(`Could not extract message for event ${jr(e)}`),t}function kN(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function IN(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Gl(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?IN(t):null}catch{return he&&Y.error(`Cannot extract url for event ${jr(e)}`),null}}let zm;const CE="FunctionToString",Vm=new WeakMap,RN=()=>({name:CE,setupOnce(){zm=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=$p(this),n=Vm.has(mt())&&t!==void 0?t:this;return zm.apply(n,e)}}catch{}},setup(e){Vm.set(e,!0)}}),AE=RN;Sr(CE,AE);const Qe=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,be=Ne;function CN(){be.document?be.document.addEventListener("visibilitychange",()=>{const e=Js();if(be.document.hidden&&e){const t="cancelled",{op:n,status:r}=dt(e);Qe&&Y.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${n}`),r||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.end()}}):Qe&&Y.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const wa=(e,t,n)=>{let r,s;return i=>{t.value>=0&&(i||n)&&(s=t.value-(r||0),(s||r===void 0)&&(r=t.value,t.delta=s,e(t)))}},AN=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,ON=()=>{const e=be.performance.timing,t=be.performance.navigation.type,n={entryType:"navigation",startTime:0,type:t==2?"back_forward":t===1?"reload":"navigate"};for(const r in e)r!=="navigationStart"&&r!=="toJSON"&&(n[r]=Math.max(e[r]-e.navigationStart,0));return n},Uc=()=>be.__WEB_VITALS_POLYFILL__?be.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||ON()):be.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],Kp=()=>{const e=Uc();return e&&e.activationStart||0},ba=(e,t)=>{const n=Uc();let r="navigate";return n&&(be.document&&be.document.prerendering||Kp()>0?r="prerender":r=n.type.replace(/_/g,"-")),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:AN(),navigationType:r}},lo=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(s=>{t(s.getEntries())});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},Ea=(e,t)=>{const n=r=>{(r.type==="pagehide"||be.document.visibilityState==="hidden")&&(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};be.document&&(addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0))},PN=(e,t={})=>{const n=ba("CLS",0);let r,s=0,i=[];const o=l=>{l.forEach(c=>{if(!c.hadRecentInput){const u=i[0],d=i[i.length-1];s&&i.length!==0&&c.startTime-d.startTime<1e3&&c.startTime-u.startTime<5e3?(s+=c.value,i.push(c)):(s=c.value,i=[c]),s>n.value&&(n.value=s,n.entries=i,r&&r())}})},a=lo("layout-shift",o);if(a){r=wa(e,n,t.reportAllChanges);const l=()=>{o(a.takeRecords()),r(!0)};return Ea(l),l}};let ql=-1;const LN=()=>{be.document&&be.document.visibilityState&&(ql=be.document.visibilityState==="hidden"&&!be.document.prerendering?0:1/0)},DN=()=>{Ea(({timeStamp:e})=>{ql=e},!0)},Gp=()=>(ql<0&&(LN(),DN()),{get firstHiddenTime(){return ql}}),NN=e=>{const t=Gp(),n=ba("FID");let r;const s=a=>{a.startTime<t.firstHiddenTime&&(n.value=a.processingStart-a.startTime,n.entries.push(a),r(!0))},i=a=>{a.forEach(s)},o=lo("first-input",i);r=wa(e,n),o&&Ea(()=>{i(o.takeRecords()),o.disconnect()},!0)};let OE=0,Tu=1/0,el=0;const MN=e=>{e.forEach(t=>{t.interactionId&&(Tu=Math.min(Tu,t.interactionId),el=Math.max(el,t.interactionId),OE=el?(el-Tu)/7+1:0)})};let sf;const $N=()=>sf?OE:performance.interactionCount||0,xN=()=>{"interactionCount"in performance||sf||(sf=lo("event",MN,{type:"event",buffered:!0,durationThreshold:0}))},PE=()=>$N(),Wm=10,rr=[],Su={},Km=e=>{const t=rr[rr.length-1],n=Su[e.interactionId];if(n||rr.length<Wm||e.duration>t.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{const r={id:e.interactionId,latency:e.duration,entries:[e]};Su[r.id]=r,rr.push(r)}rr.sort((r,s)=>s.latency-r.latency),rr.splice(Wm).forEach(r=>{delete Su[r.id]})}},UN=()=>{const e=Math.min(rr.length-1,Math.floor(PE()/50));return rr[e]},FN=(e,t)=>{t=t||{},xN();const n=ba("INP");let r;const s=o=>{o.forEach(l=>{l.interactionId&&Km(l),l.entryType==="first-input"&&!rr.some(u=>u.entries.some(d=>l.duration===d.duration&&l.startTime===d.startTime))&&Km(l)});const a=UN();a&&a.latency!==n.value&&(n.value=a.latency,n.entries=a.entries,r())},i=lo("event",s,{durationThreshold:t.durationThreshold||40});r=wa(e,n,t.reportAllChanges),i&&(i.observe({type:"first-input",buffered:!0}),Ea(()=>{s(i.takeRecords()),n.value<0&&PE()>0&&(n.value=0,n.entries=[]),r(!0)}))},Gm={},BN=e=>{const t=Gp(),n=ba("LCP");let r;const s=o=>{const a=o[o.length-1];if(a){const l=Math.max(a.startTime-Kp(),0);l<t.firstHiddenTime&&(n.value=l,n.entries=[a],r())}},i=lo("largest-contentful-paint",s);if(i){r=wa(e,n);const o=()=>{Gm[n.id]||(s(i.takeRecords()),i.disconnect(),Gm[n.id]=!0,r(!0))};return["keydown","click"].forEach(a=>{be.document&&addEventListener(a,o,{once:!0,capture:!0})}),Ea(o,!0),o}},of=e=>{be.document&&(be.document.prerendering?addEventListener("prerenderingchange",()=>of(e),!0):be.document.readyState!=="complete"?addEventListener("load",()=>of(e),!0):setTimeout(e,0))},HN=(e,t)=>{t=t||{};const n=ba("TTFB"),r=wa(e,n,t.reportAllChanges);of(()=>{const s=Uc();if(s){if(n.value=Math.max(s.responseStart-Kp(),0),n.value<0||n.value>performance.now())return;n.entries=[s],r(!0)}})},No={},Yl={};let LE,DE,NE,ME,$E;function jN(e,t=!1){return Ta("cls",e,GN,LE,t)}function zN(e,t=!1){return Ta("lcp",e,YN,NE,t)}function VN(e){return Ta("ttfb",e,JN,ME)}function WN(e){return Ta("fid",e,qN,DE)}function KN(e){return Ta("inp",e,XN,$E)}function ta(e,t){return xE(e,t),Yl[e]||(ZN(e),Yl[e]=!0),UE(e,t)}function co(e,t){const n=No[e];if(!(!n||!n.length))for(const r of n)try{r(t)}catch(s){Qe&&Y.error(`Error while triggering instrumentation handler.
Type: ${e}
Name: ${vr(r)}
Error:`,s)}}function GN(){return PN(e=>{co("cls",{metric:e}),LE=e},{reportAllChanges:!0})}function qN(){return NN(e=>{co("fid",{metric:e}),DE=e})}function YN(){return BN(e=>{co("lcp",{metric:e}),NE=e})}function JN(){return HN(e=>{co("ttfb",{metric:e}),ME=e})}function XN(){return FN(e=>{co("inp",{metric:e}),$E=e})}function Ta(e,t,n,r,s=!1){xE(e,t);let i;return Yl[e]||(i=n(),Yl[e]=!0),r&&t({metric:r}),UE(e,t,s?i:void 0)}function ZN(e){const t={};e==="event"&&(t.durationThreshold=0),lo(e,n=>{co(e,{entries:n})},t)}function xE(e,t){No[e]=No[e]||[],No[e].push(t)}function UE(e,t,n){return()=>{n&&n();const r=No[e];if(!r)return;const s=r.indexOf(t);s!==-1&&r.splice(s,1)}}function ku(e){return typeof e=="number"&&isFinite(e)}function Wi(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}const QN=2147483647;function ft(e){return e/1e3}function qp(){return be&&be.addEventListener&&be.performance}let qm=0,it={},$n,Mo;function e1(){const e=qp();if(e&&mn){e.mark&&be.performance.mark("sentry-tracing-init");const t=o1(),n=s1(),r=i1(),s=a1();return()=>{t(),n(),r(),s()}}return()=>{}}function t1(){ta("longtask",({entries:e})=>{for(const t of e){const n=Js();if(!n)return;const r=ft(mn+t.startTime),s=ft(t.duration);n.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+s})}})}function n1(){ta("event",({entries:e})=>{for(const t of e){const n=Js();if(!n)return;if(t.name==="click"){const r=ft(mn+t.startTime),s=ft(t.duration),i={description:ji(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+s},o=jb(t.target);o&&(i.attributes={"ui.component_name":o}),n.startChild(i)}}})}function r1(e,t){if(qp()&&mn){const r=l1(e,t);return()=>{r()}}return()=>{}}function s1(){return jN(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Qe&&Y.log("[Measurements] Adding CLS"),it.cls={value:e.value,unit:""},Mo=t)},!0)}function i1(){return zN(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Qe&&Y.log("[Measurements] Adding LCP"),it.lcp={value:e.value,unit:"millisecond"},$n=t)},!0)}function o1(){return WN(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=ft(mn),r=ft(t.startTime);Qe&&Y.log("[Measurements] Adding FID"),it.fid={value:e.value,unit:"millisecond"},it["mark.fid"]={value:n+r,unit:"second"}})}function a1(){return VN(({metric:e})=>{e.entries[e.entries.length-1]&&(Qe&&Y.log("[Measurements] Adding TTFB"),it.ttfb={value:e.value,unit:"millisecond"})})}const Ym={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function l1(e,t){return KN(({metric:n})=>{if(n.value===void 0)return;const r=n.entries.find(h=>h.duration===n.value&&Ym[h.name]!==void 0),s=mt();if(!r||!s)return;const i=Ym[r.name],o=s.getOptions(),a=ft(mn+r.startTime),l=ft(n.value),c=r.interactionId!==void 0?e[r.interactionId]:void 0;if(c===void 0)return;const{routeName:u,parentContext:d,activeTransaction:f,user:p,replayId:g}=c,v=p!==void 0?p.email||p.id||p.ip_address:void 0,w=f!==void 0?f.getProfileId():void 0,y=new xc({startTimestamp:a,endTimestamp:a+l,op:`ui.interaction.${i}`,name:ji(r.target),attributes:{release:o.release,environment:o.environment,transaction:u,...v!==void 0&&v!==""?{user:v}:{},...w!==void 0?{profile_id:w}:{},...g!==void 0?{replay_id:g}:{}},exclusiveTime:n.value,measurements:{inp:{value:n.value,unit:"millisecond"}}}),m=_1(d,o,t);if(m&&Math.random()<m){const h=y?fN([y],s.getDsn()):void 0,_=s&&s.getTransport();_&&h&&_.send(h).then(null,b=>{Qe&&Y.error("Error while sending interaction:",b)});return}})}function c1(e){const t=qp();if(!t||!be.performance.getEntries||!mn)return;Qe&&Y.log("[Tracing] Adding & adjusting spans using Performance API");const n=ft(mn),r=t.getEntries(),{op:s,start_timestamp:i}=dt(e);if(r.slice(qm).forEach(o=>{const a=ft(o.startTime),l=ft(o.duration);if(!(e.op==="navigation"&&i&&n+a<i))switch(o.entryType){case"navigation":{d1(e,o,n);break}case"mark":case"paint":case"measure":{u1(e,o,a,l,n);const c=Gp(),u=o.startTime<c.firstHiddenTime;o.name==="first-paint"&&u&&(Qe&&Y.log("[Measurements] Adding FP"),it.fp={value:o.startTime,unit:"millisecond"}),o.name==="first-contentful-paint"&&u&&(Qe&&Y.log("[Measurements] Adding FCP"),it.fcp={value:o.startTime,unit:"millisecond"});break}case"resource":{p1(e,o,o.name,a,l,n);break}}}),qm=Math.max(r.length-1,0),h1(e),s==="pageload"){m1(it),["fcp","fp","lcp"].forEach(a=>{if(!it[a]||!i||n>=i)return;const l=it[a].value,c=n+ft(l),u=Math.abs((c-i)*1e3),d=u-l;Qe&&Y.log(`[Measurements] Normalized ${a} from ${l} to ${u} (${d})`),it[a].value=u});const o=it["mark.fid"];o&&it.fid&&(Wi(e,{description:"first input delay",endTimestamp:o.value+ft(it.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:o.value}),delete it["mark.fid"]),"fcp"in it||delete it.cls,Object.keys(it).forEach(a=>{zD(a,it[a].value,it[a].unit)}),g1(e)}$n=void 0,Mo=void 0,it={}}function u1(e,t,n,r,s){const i=s+n,o=i+r;return Wi(e,{description:t.name,endTimestamp:o,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:i}),i}function d1(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{tl(e,t,r,n)}),tl(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),tl(e,t,"fetch",n,"cache","domainLookupStart"),tl(e,t,"domainLookup",n,"DNS"),f1(e,t,n)}function tl(e,t,n,r,s,i){const o=i?t[i]:t[`${n}End`],a=t[`${n}Start`];!a||!o||Wi(e,{op:"browser",origin:"auto.browser.browser.metrics",description:s||n,startTimestamp:r+ft(a),endTimestamp:r+ft(o)})}function f1(e,t,n){t.responseEnd&&(Wi(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+ft(t.requestStart),endTimestamp:n+ft(t.responseEnd)}),Wi(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+ft(t.responseStart),endTimestamp:n+ft(t.responseEnd)}))}function p1(e,t,n,r,s,i){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const o=As(n),a={};Iu(a,t,"transferSize","http.response_transfer_size"),Iu(a,t,"encodedBodySize","http.response_content_length"),Iu(a,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(a["resource.render_blocking_status"]=t.renderBlockingStatus),o.protocol&&(a["url.scheme"]=o.protocol.split(":").pop()),o.host&&(a["server.address"]=o.host),a["url.same_origin"]=n.includes(be.location.origin);const l=i+r,c=l+s;Wi(e,{description:n.replace(be.location.origin,""),endTimestamp:c,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:l,data:a})}function h1(e){const t=be.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),ku(n.rtt)&&(it["connection.rtt"]={value:n.rtt,unit:"millisecond"})),ku(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),ku(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}function g1(e){$n&&(Qe&&Y.log("[Measurements] Adding LCP Data"),$n.element&&e.setTag("lcp.element",ji($n.element)),$n.id&&e.setTag("lcp.id",$n.id),$n.url&&e.setTag("lcp.url",$n.url.trim().slice(0,200)),e.setTag("lcp.size",$n.size)),Mo&&Mo.sources&&(Qe&&Y.log("[Measurements] Adding CLS Data"),Mo.sources.forEach((t,n)=>e.setTag(`cls.source.${n+1}`,ji(t.node))))}function Iu(e,t,n,r){const s=t[n];s!=null&&s<QN&&(e[r]=s)}function m1(e){const t=Uc();if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(Qe&&Y.log("[Measurements] Adding TTFB Request Time"),e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}function _1(e,t,n){if(!Xs(t))return!1;let r;return e!==void 0&&typeof t.tracesSampler=="function"?r=t.tracesSampler({transactionContext:e,name:e.name,parentSampled:e.parentSampled,attributes:{...e.data,...e.attributes},location:be.location}):e!==void 0&&e.sampled!==void 0?r=e.sampled:typeof t.tracesSampleRate<"u"?r=t.tracesSampleRate:r=1,wE(r)?r===!0?n:r===!1?0:r*n:(Qe&&Y.warn("[Tracing] Discarding interaction span because of invalid sample rate."),!1)}function v1(e,t,n,r,s="auto.http.browser"){if(!Xs()||!e.fetchData)return;const i=t(e.fetchData.url);if(e.endTimestamp&&i){const p=e.fetchData.__span;if(!p)return;const g=r[p];g&&(b1(g,e),delete r[p]);return}const o=Pn(),a=mt(),{method:l,url:c}=e.fetchData,u=w1(c),d=u?As(u).host:void 0,f=i?Kl({name:`${l} ${c}`,onlyIfParent:!0,attributes:{url:c,type:"fetch","http.method":l,"http.url":u,"server.address":d,[qr]:s},op:"http.client"}):void 0;if(f&&(e.fetchData.__span=f.spanContext().spanId,r[f.spanContext().spanId]=f),n(e.fetchData.url)&&a){const p=e.args[0];e.args[1]=e.args[1]||{};const g=e.args[1];g.headers=y1(p,a,o,g,f)}return f}function y1(e,t,n,r,s){const i=s||n.getSpan(),o=Ys(),{traceId:a,spanId:l,sampled:c,dsc:u}={...o.getPropagationContext(),...n.getPropagationContext()},d=i?Nc(i):Bp(a,l,c),f=rE(u||(i?Vi(i):$c(a,t,n))),p=r.headers||(typeof Request<"u"&&_r(e,Request)?e.headers:void 0);if(p)if(typeof Headers<"u"&&_r(p,Headers)){const g=new Headers(p);return g.append("sentry-trace",d),f&&g.append(ef,f),g}else if(Array.isArray(p)){const g=[...p,["sentry-trace",d]];return f&&g.push([ef,f]),g}else{const g="baggage"in p?p.baggage:void 0,v=[];return Array.isArray(g)?v.push(...g):g&&v.push(g),f&&v.push(f),{...p,"sentry-trace":d,baggage:v.length>0?v.join(","):void 0}}else return{"sentry-trace":d,baggage:f}}function w1(e){try{return new URL(e).href}catch{return}}function b1(e,t){if(t.response){Wp(e,t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){const r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus("internal_error");e.end()}const af=["localhost",/^\/(?!\/)/],lf={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:af,tracePropagationTargets:af};function E1(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:s,shouldCreateSpanForRequest:i,enableHTTPTimings:o}={traceFetch:lf.traceFetch,traceXHR:lf.traceXHR,...e},a=typeof i=="function"?i:u=>!0,l=u=>I1(u,r||s),c={};t&&Jb(u=>{const d=v1(u,a,l,c);if(d){const f=FE(u.fetchData.url),p=f?As(f).host:void 0;d.setAttributes({"http.url":f,"server.address":p})}o&&d&&Jm(d)}),n&&Qb(u=>{const d=R1(u,a,l,c);o&&d&&Jm(d)})}function T1(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function Jm(e){const{url:t}=dt(e).data||{};if(!t||typeof t!="string")return;const n=ta("resource",({entries:r})=>{r.forEach(s=>{T1(s)&&s.name.endsWith(t)&&(k1(s).forEach(o=>e.setAttribute(...o)),setTimeout(n))})})}function S1(e){let t="unknown",n="unknown",r="";for(const s of e){if(s==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(s))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=s}return r===e&&(t=r),{name:t,version:n}}function Dn(e=0){return((mn||performance.timeOrigin)+e)/1e3}function k1(e){const{name:t,version:n}=S1(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),mn?[...r,["http.request.redirect_start",Dn(e.redirectStart)],["http.request.fetch_start",Dn(e.fetchStart)],["http.request.domain_lookup_start",Dn(e.domainLookupStart)],["http.request.domain_lookup_end",Dn(e.domainLookupEnd)],["http.request.connect_start",Dn(e.connectStart)],["http.request.secure_connection_start",Dn(e.secureConnectionStart)],["http.request.connection_end",Dn(e.connectEnd)],["http.request.request_start",Dn(e.requestStart)],["http.request.response_start",Dn(e.responseStart)],["http.request.response_end",Dn(e.responseEnd)]]:r}function I1(e,t){return _a(e,t||af)}function R1(e,t,n,r){const s=e.xhr,i=s&&s[pi];if(!Xs()||!s||s.__sentry_own_request__||!i)return;const o=t(i.url);if(e.endTimestamp&&o){const p=s.__sentry_xhr_span_id__;if(!p)return;const g=r[p];g&&i.status_code!==void 0&&(Wp(g,i.status_code),g.end(),delete r[p]);return}const a=Pn(),l=Ys(),c=FE(i.url),u=c?As(c).host:void 0,d=o?Kl({name:`${i.method} ${i.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":i.method,"http.url":c,url:i.url,"server.address":u,[qr]:"auto.http.browser"},op:"http.client"}):void 0;d&&(s.__sentry_xhr_span_id__=d.spanContext().spanId,r[s.__sentry_xhr_span_id__]=d);const f=mt();if(s.setRequestHeader&&n(i.url)&&f){const{traceId:p,spanId:g,sampled:v,dsc:w}={...l.getPropagationContext(),...a.getPropagationContext()},y=d?Nc(d):Bp(p,g,v),m=rE(w||(d?Vi(d):$c(p,f,a)));C1(s,y,m)}return d}function C1(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(ef,n)}catch{}}function FE(e){try{return new URL(e,be.location.origin).href}catch{return}}const A1="BrowserTracing",O1={...vl,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...lf},Xm=(e={})=>{const t=Qe?!!(e.tracePropagationTargets||e.tracingOrigins):!1;jD(),!e.tracePropagationTargets&&e.tracingOrigins&&(e.tracePropagationTargets=e.tracingOrigins);const n={...O1,...e},r=e1(),s={};n.enableInp&&r1(s,n.interactionsSampleRate),n.enableLongTask&&t1(),n._experiments.enableInteractions&&n1();const i={name:void 0,context:void 0};function o(a){const l=jt(),{beforeStartSpan:c,idleTimeout:u,finalTimeout:d,heartbeatInterval:f}=n,p=a.op==="pageload";let g;if(p){const m=p?Zm("sentry-trace"):"",h=p?Zm("baggage"):void 0,{traceId:_,dsc:b,parentSpanId:E,sampled:R}=WL(m,h);g={traceId:_,parentSpanId:E,parentSampled:R,...a,metadata:{...a.metadata,dynamicSamplingContext:b},trimEnd:!0}}else g={trimEnd:!0,...a};const v=c?c(g):g;v.metadata=v.name!==g.name?{...v.metadata,source:"custom"}:v.metadata,i.name=v.name,i.context=v,v.sampled===!1&&Qe&&Y.log(`[Tracing] Will not send ${v.op} transaction because of beforeNavigate.`),Qe&&Y.log(`[Tracing] Starting ${v.op} transaction on scope`);const{location:w}=be,y=bE(l,v,u,d,!0,{location:w},f,p);return p&&be.document&&(be.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(be.document.readyState)&&y.sendAutoFinishSignal()}),["interactive","complete"].includes(be.document.readyState)&&y.sendAutoFinishSignal()),y.registerBeforeFinishCallback(m=>{r(),c1(m)}),y}return{name:A1,setupOnce:()=>{},afterAllSetup(a){const l=a.getOptions(),{markBackgroundSpan:c,traceFetch:u,traceXHR:d,shouldCreateSpanForRequest:f,enableHTTPTimings:p,_experiments:g}=n,v=l&&l.tracePropagationTargets,w=v||n.tracePropagationTargets;Qe&&t&&v&&Y.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used.");let y,m=be.location&&be.location.href;if(a.on&&(a.on("startNavigationSpan",h=>{y&&(Qe&&Y.log(`[Tracing] Finishing current transaction with op: ${dt(y).op}`),y.end()),y=o({op:"navigation",...h})}),a.on("startPageLoadSpan",h=>{y&&(Qe&&Y.log(`[Tracing] Finishing current transaction with op: ${dt(y).op}`),y.end()),y=o({op:"pageload",...h})})),n.instrumentPageLoad&&a.emit&&be.location){const h={name:be.location.pathname,startTimestamp:mn?mn/1e3:void 0,origin:"auto.pageload.browser",attributes:{[In]:"url"}};P1(a,h)}n.instrumentNavigation&&a.emit&&be.location&&Up(({to:h,from:_})=>{if(_===void 0&&m&&m.indexOf(h)!==-1){m=void 0;return}if(_!==h){m=void 0;const b={name:be.location.pathname,origin:"auto.navigation.browser",attributes:{[In]:"url"}};BE(a,b)}}),c&&CN(),g.enableInteractions&&L1(n,i),n.enableInp&&N1(s,i),E1({traceFetch:u,traceXHR:d,tracePropagationTargets:w,shouldCreateSpanForRequest:f,enableHTTPTimings:p})},options:n}};function P1(e,t){if(!e.emit)return;e.emit("startPageLoadSpan",t);const n=ea();return(n&&dt(n).op)==="pageload"?n:void 0}function BE(e,t){if(!e.emit)return;e.emit("startNavigationSpan",t);const n=ea();return(n&&dt(n).op)==="navigation"?n:void 0}function Zm(e){const t=ZP(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function L1(e,t){let n;const r=()=>{const{idleTimeout:s,finalTimeout:i,heartbeatInterval:o}=e,a="ui.action.click",l=Js();if(l&&l.op&&["navigation","pageload"].includes(l.op)){Qe&&Y.warn(`[Tracing] Did not create ${a} transaction because a pageload or navigation transaction is in progress.`);return}if(n&&(n.setFinishReason("interactionInterrupted"),n.end(),n=void 0),!t.name){Qe&&Y.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`);return}const{location:c}=be,u={name:t.name,op:a,trimEnd:!0,data:{[In]:t.context?M1(t.context):"url"}};n=bE(jt(),u,s,i,!0,{location:c},o)};["click"].forEach(s=>{be.document&&addEventListener(s,r,{once:!1,capture:!0})})}function D1(e){return"duration"in e}const Qm=10;function N1(e,t){const n=({entries:r})=>{const s=mt(),i=s!==void 0&&s.getIntegrationByName!==void 0?s.getIntegrationByName("Replay"):void 0,o=i!==void 0?i.getReplayId():void 0,a=Js(),l=Pn(),c=l!==void 0?l.getUser():void 0;r.forEach(u=>{if(D1(u)){const d=u.interactionId;if(d===void 0)return;const f=e[d],p=u.duration,g=u.startTime,v=Object.keys(e),w=v.length>0?v.reduce((y,m)=>e[y].duration<e[m].duration?y:m):void 0;if(u.entryType==="first-input"&&v.map(m=>e[m]).some(m=>m.duration===p&&m.startTime===g)||!d)return;if(f)f.duration=Math.max(f.duration,p);else if(v.length<Qm||w===void 0||p>e[w].duration){const y=t.name,m=t.context;y&&m&&(w&&Object.keys(e).length>=Qm&&delete e[w],e[d]={routeName:y,duration:p,parentContext:m,user:c,activeTransaction:a,replayId:o,startTime:g})}}})};ta("event",n),ta("first-input",n)}function M1(e){const t=e.attributes&&e.attributes[In],n=e.data&&e.data[In],r=e.metadata&&e.metadata.source;return t||n||r}const Ge=Ne;let cf=0;function HE(){return cf>0}function $1(){cf++,setTimeout(()=>{cf--})}function Ki(e,t={},n){if(typeof e!="function")return e;try{const s=e.__sentry_wrapped__;if(s)return s;if($p(e))return e}catch{return e}const r=function(){const s=Array.prototype.slice.call(arguments);try{const i=s.map(o=>Ki(o,t));return e.apply(this,i)}catch(i){throw $1(),yD(o=>{o.addEventProcessor(a=>(t.mechanism&&(Gd(a,void 0),Zo(a,t.mechanism)),a.extra={...a.extra,arguments:s},a)),Vp(i)}),i}};try{for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s])}catch{}Vb(r,e),Ms(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const ir=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function jE(e,t){const n=Yp(e,t),r={type:t&&t.name,value:B1(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function x1(e,t,n,r){const s=mt(),i=s&&s.getOptions().normalizeDepth,o={exception:{values:[{type:Pc(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:z1(t,{isUnhandledRejection:r})}]},extra:{__serialized__:eE(t,i)}};if(n){const a=Yp(e,n);a.length&&(o.exception.values[0].stacktrace={frames:a})}return o}function Ru(e,t){return{exception:{values:[jE(e,t)]}}}function Yp(e,t){const n=t.stacktrace||t.stack||"",r=F1(t);try{return e(n,r)}catch{}return[]}const U1=/Minified React error #\d+;/i;function F1(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(U1.test(e.message))return 1}return 0}function B1(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function H1(e,t,n,r){const s=n&&n.syntheticException||void 0,i=Jp(e,t,s,r);return Zo(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),zi(i)}function j1(e,t,n="info",r,s){const i=r&&r.syntheticException||void 0,o=uf(e,t,i,s);return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),zi(o)}function Jp(e,t,n,r,s){let i;if(Lp(t)&&t.error)return Ru(e,t.error);if(hm(t)||jP(t)){const o=t;if("stack"in t)i=Ru(e,t);else{const a=o.name||(hm(o)?"DOMError":"DOMException"),l=o.message?`${a}: ${o.message}`:a;i=uf(e,l,n,r),Gd(i,l)}return"code"in o&&(i.tags={...i.tags,"DOMException.code":`${o.code}`}),i}return Ub(t)?Ru(e,t):Hi(t)||Pc(t)?(i=x1(e,t,n,s),Zo(i,{synthetic:!0}),i):(i=uf(e,t,n,r),Gd(i,`${t}`),Zo(i,{synthetic:!0}),i)}function uf(e,t,n,r){const s={};if(r&&n){const i=Yp(e,n);i.length&&(s.exception={values:[{value:t,stacktrace:{frames:i}}]})}if(Dp(t)){const{__sentry_template_string__:i,__sentry_template_values__:o}=t;return s.logentry={message:i,params:o},s}return s.message=t,s}function z1(e,{isUnhandledRejection:t}){const n=aL(e),r=t?"promise rejection":"exception";return Lp(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Pc(e)?`Event \`${V1(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function V1(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function W1(e,{metadata:t,tunnel:n,dsn:r}){const s={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:oo(r)}},i=K1(e);return qs(s,[i])}function K1(e){return[{type:"user_report"},e]}class G1 extends iN{constructor(t){const n=Ge.SENTRY_SDK_SOURCE||AL();hN(t,"browser",["browser"],n),super(t),t.sendClientReports&&Ge.document&&Ge.document.addEventListener("visibilitychange",()=>{Ge.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return H1(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return j1(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){ir&&Y.warn("SDK not enabled, will not capture user feedback.");return}const n=W1(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0){ir&&Y.log("No outcomes to send");return}if(!this._dsn){ir&&Y.log("No dsn provided, will not send outcomes");return}ir&&Y.log("Sending outcomes:",t);const n=ZL(t,this._options.tunnel&&oo(this._dsn));this._sendEnvelope(n)}}let Eo;function q1(){if(Eo)return Eo;if(Xd(Ge.fetch))return Eo=Ge.fetch.bind(Ge);const e=Ge.document;let t=Ge.fetch;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){ir&&Y.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return Eo=t.bind(Ge)}function Y1(){Eo=void 0}function J1(e,t=q1()){let n=0,r=0;function s(i){const o=i.body.length;n+=o,r++;const a={body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,a).then(l=>(n-=o,r--,{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}))}catch(l){return Y1(),n-=o,r--,Fp(l)}}return kE(e,s)}const X1=4;function Z1(e){function t(n){return new Xt((r,s)=>{const i=new XMLHttpRequest;i.onerror=s,i.onreadystatechange=()=>{i.readyState===X1&&r({statusCode:i.status,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")}})},i.open("POST",e.url);for(const o in e.headers)Object.prototype.hasOwnProperty.call(e.headers,o)&&i.setRequestHeader(o,e.headers[o]);i.send(n.body)})}return kE(e,t)}const Fc="?",Q1=30,eM=40,tM=50;function Xp(e,t,n,r){const s={filename:e,function:t,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}const nM=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,rM=/\((\S*)(?::(\d+))(?::(\d+))\)/,sM=e=>{const t=nM.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){const i=rM.exec(t[2]);i&&(t[2]=i[1],t[3]=i[2],t[4]=i[3])}const[r,s]=zE(t[1]||Fc,t[2]);return Xp(s,r,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},iM=[Q1,sM],oM=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,aM=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,lM=e=>{const t=oM.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const i=aM.exec(t[3]);i&&(t[1]=t[1]||"eval",t[3]=i[1],t[4]=i[2],t[5]="")}let r=t[3],s=t[1]||Fc;return[s,r]=zE(s,r),Xp(r,s,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},cM=[tM,lM],uM=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,dM=e=>{const t=uM.exec(e);return t?Xp(t[2],t[1]||Fc,+t[3],t[4]?+t[4]:void 0):void 0},fM=[eM,dM],pM=[iM,cM,fM],hM=Gb(...pM),zE=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:Fc,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},nl=1024,VE="Breadcrumbs",gM=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:VE,setupOnce(){},setup(n){t.console&&dL(vM(n)),t.dom&&hL(_M(n,t.dom)),t.xhr&&Qb(yM(n)),t.fetch&&Jb(wM(n)),t.history&&Up(bM(n)),t.sentry&&n.on&&n.on("beforeSendEvent",mM(n))}}},WE=gM;Sr(VE,WE);function mM(e){return function(n){mt()===e&&xs({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:jr(n)},{event:n})}}function _M(e,t){return function(r){if(mt()!==e)return;let s,i,o=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>nl&&(ir&&Y.warn(`\`dom.maxStringLength\` cannot exceed ${nl}, but a value of ${a} was configured. Sentry will use ${nl} instead.`),a=nl),typeof o=="string"&&(o=[o]);try{const c=r.event,u=EM(c)?c.target:c;s=ji(u,{keyAttrs:o,maxStringLength:a}),i=jb(u)}catch{s="<unknown>"}if(s.length===0)return;const l={category:`ui.${r.name}`,message:s};i&&(l.data={"ui.component_name":i}),xs(l,{event:r.event,name:r.name,global:r.global})}}function vM(e){return function(n){if(mt()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:xL(n.level),message:gm(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${gm(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;xs(r,{input:n.args,level:n.level})}}function yM(e){return function(n){if(mt()!==e)return;const{startTimestamp:r,endTimestamp:s}=n,i=n.xhr[pi];if(!r||!s||!i)return;const{method:o,url:a,status_code:l,body:c}=i,u={method:o,url:a,status_code:l},d={xhr:n.xhr,input:c,startTimestamp:r,endTimestamp:s};xs({category:"xhr",data:u,type:"http"},d)}}function wM(e){return function(n){if(mt()!==e)return;const{startTimestamp:r,endTimestamp:s}=n;if(s&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const i=n.fetchData,o={data:n.error,input:n.args,startTimestamp:r,endTimestamp:s};xs({category:"fetch",data:i,level:"error",type:"http"},o)}else{const i=n.response,o={...n.fetchData,status_code:i&&i.status},a={input:n.args,response:i,startTimestamp:r,endTimestamp:s};xs({category:"fetch",data:o,type:"http"},a)}}}function bM(e){return function(n){if(mt()!==e)return;let r=n.from,s=n.to;const i=As(Ge.location.href);let o=r?As(r):void 0;const a=As(s);(!o||!o.path)&&(o=i),i.protocol===a.protocol&&i.host===a.host&&(s=a.relative),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),xs({category:"navigation",data:{from:r,to:s}})}}function EM(e){return!!e&&!!e.target}const KE="Dedupe",TM=()=>{let e;return{name:KE,setupOnce(){},processEvent(t){if(t.type)return t;try{if(SM(t,e))return ir&&Y.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},GE=TM;Sr(KE,GE);function SM(e,t){return t?!!(kM(e,t)||IM(e,t)):!1}function kM(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!YE(e,t)||!qE(e,t))}function IM(e,t){const n=e_(t),r=e_(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!YE(e,t)||!qE(e,t))}function qE(e,t){let n=t_(e),r=t_(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let s=0;s<r.length;s++){const i=r[s],o=n[s];if(i.filename!==o.filename||i.lineno!==o.lineno||i.colno!==o.colno||i.function!==o.function)return!1}return!0}function YE(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function e_(e){return e.exception&&e.exception.values&&e.exception.values[0]}function t_(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch{return}}const JE="GlobalHandlers",RM=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:JE,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(CM(n),n_("onerror")),t.onunhandledrejection&&(AM(n),n_("onunhandledrejection"))}}},XE=RM;Sr(JE,XE);function CM(e){Xb(t=>{const{stackParser:n,attachStacktrace:r}=QE();if(mt()!==e||HE())return;const{msg:s,url:i,line:o,column:a,error:l}=t,c=l===void 0&&Kn(s)?LM(s,i,o,a):ZE(Jp(n,l||s,void 0,r,!1),i,o,a);c.level="error",lE(c,{originalException:l,mechanism:{handled:!1,type:"onerror"}})})}function AM(e){Zb(t=>{const{stackParser:n,attachStacktrace:r}=QE();if(mt()!==e||HE())return;const s=OM(t),i=Np(s)?PM(s):Jp(n,s,void 0,r,!0);i.level="error",lE(i,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function OM(e){if(Np(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return e}function PM(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function LM(e,t,n,r){const s=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let i=Lp(e)?e.message:e,o="Error";const a=i.match(s);return a&&(o=a[1],i=a[2]),ZE({exception:{values:[{type:o,value:i}]}},t,n,r)}function ZE(e,t,n,r){const s=e.exception=e.exception||{},i=s.values=s.values||[],o=i[0]=i[0]||{},a=o.stacktrace=o.stacktrace||{},l=a.frames=a.frames||[],c=isNaN(parseInt(r,10))?void 0:r,u=isNaN(parseInt(n,10))?void 0:n,d=Kn(t)&&t.length>0?t:XP();return l.length===0&&l.push({colno:c,filename:d,function:"?",in_app:!0,lineno:u}),e}function n_(e){ir&&Y.log(`Global Handler attached: ${e}`)}function QE(){const e=mt();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const eT="HttpContext",DM=()=>({name:eT,setupOnce(){},preprocessEvent(e){if(!Ge.navigator&&!Ge.location&&!Ge.document)return;const t=e.request&&e.request.url||Ge.location&&Ge.location.href,{referrer:n}=Ge.document||{},{userAgent:r}=Ge.navigator||{},s={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},i={...e.request,...t&&{url:t},headers:s};e.request=i}}),tT=DM;Sr(eT,tT);const NM="cause",MM=5,nT="LinkedErrors",$M=(e={})=>{const t=e.limit||MM,n=e.key||NM;return{name:nT,setupOnce(){},preprocessEvent(r,s,i){const o=i.getOptions();GP(jE,o.stackParser,o.maxValueLength,n,t,r,s)}}},rT=$M;Sr(nT,rT);const xM=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],sT="TryCatch",UM=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:sT,setupOnce(){t.setTimeout&&Tt(Ge,"setTimeout",r_),t.setInterval&&Tt(Ge,"setInterval",r_),t.requestAnimationFrame&&Tt(Ge,"requestAnimationFrame",FM),t.XMLHttpRequest&&"XMLHttpRequest"in Ge&&Tt(XMLHttpRequest.prototype,"send",BM);const n=t.eventTarget;n&&(Array.isArray(n)?n:xM).forEach(HM)}}},iT=UM;Sr(sT,iT);function r_(e){return function(...t){const n=t[0];return t[0]=Ki(n,{mechanism:{data:{function:vr(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function FM(e){return function(t){return e.apply(this,[Ki(t,{mechanism:{data:{function:"requestAnimationFrame",handler:vr(e)},handled:!1,type:"instrument"}})])}}function BM(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(s=>{s in n&&typeof n[s]=="function"&&Tt(n,s,function(i){const o={mechanism:{data:{function:s,handler:vr(i)},handled:!1,type:"instrument"}},a=$p(i);return a&&(o.mechanism.data.handler=vr(a)),Ki(i,o)})}),e.apply(this,t)}}function HM(e){const t=Ge,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Tt(n,"addEventListener",function(r){return function(s,i,o){try{typeof i.handleEvent=="function"&&(i.handleEvent=Ki(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:vr(i),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[s,Ki(i,{mechanism:{data:{function:"addEventListener",handler:vr(i),target:e},handled:!1,type:"instrument"}}),o])}}),Tt(n,"removeEventListener",function(r){return function(s,i,o){const a=i;try{const l=a&&a.__sentry_wrapped__;l&&r.call(this,s,l,o)}catch{}return r.call(this,s,a,o)}}))}const jM=[RE(),AE(),iT(),WE(),XE(),rT(),GE(),tT()];function oT(e){return[...jM]}function zM(e={}){e.defaultIntegrations===void 0&&(e.defaultIntegrations=oT()),e.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(e.release=__SENTRY_RELEASE__),Ge.SENTRY_RELEASE&&Ge.SENTRY_RELEASE.id&&(e.release=Ge.SENTRY_RELEASE.id)),e.autoSessionTracking===void 0&&(e.autoSessionTracking=!0),e.sendClientReports===void 0&&(e.sendClientReports=!0);const t={...e,stackParser:cL(e.stackParser||hM),integrations:QD(e),transport:e.transport||(Yb()?J1:Z1)};lN(G1,t),e.autoSessionTracking&&VM()}function VM(){if(typeof Ge.document>"u"){ir&&Y.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}Lm({ignoreDuration:!0}),Dm(),Up(({from:e,to:t})=>{e!==void 0&&e!==t&&(Lm({ignoreDuration:!0}),Dm())})}var fn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function k8(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const aT=["activate","mount","update"],WM=/(?:^|[-_])(\w)/g,KM=e=>e.replace(WM,t=>t.toUpperCase()).replace(/[-_]/g,""),GM="<Root>",Cu="<Anonymous>",qM=(e,t)=>e.repeat?e.repeat(t):e,$o=(e,t)=>{if(!e)return Cu;if(e.$root===e)return GM;if(!e.$options)return Cu;const n=e.$options;let r=n.name||n._componentTag;const s=n.__file;if(!r&&s){const i=s.match(/([^/\\]+)\.vue$/);i&&(r=i[1])}return(r?`<${KM(r)}>`:Cu)+(s&&t!==!1?` at ${s}`:"")},YM=e=>{if(e&&(e._isVue||e.__isVue)&&e.$parent){const t=[];let n=0;for(;e;){if(t.length>0){const s=t[t.length-1];if(s.constructor===e.constructor){n++,e=e.$parent;continue}else n>0&&(t[t.length-1]=[s,n],n=0)}t.push(e),e=e.$parent}return`

found in

${t.map((s,i)=>`${(i===0?"---> ":qM(" ",5+i*2))+(Array.isArray(s)?`${$o(s[0])}... (${s[1]} recursive calls)`:$o(s))}`).join(`
`)}`}return`

(found in ${$o(e)})`},JM=(e,t)=>{const{errorHandler:n,warnHandler:r,silent:s}=e.config;e.config.errorHandler=(i,o,a)=>{const l=$o(o,!1),c=o?YM(o):"",u={componentName:l,lifecycleHook:a,trace:c};if(t.attachProps&&o&&(o.$options&&o.$options.propsData?u.propsData=o.$options.propsData:o.$props&&(u.propsData=o.$props)),setTimeout(()=>{Vp(i,{captureContext:{contexts:{vue:u}},mechanism:{handled:!1}})}),typeof n=="function"&&n.call(e,i,o,a),t.logErrors){const d=typeof console<"u",f=`Error in ${a}: "${i&&i.toString()}"`;r?r.call(null,f,o,c):d&&!s&&Ws(()=>{console.error(`[Vue warn]: ${f}${c}`)})}}},XM=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,s_="ui.vue",ZM={activate:["activated","deactivated"],create:["beforeCreate","created"],unmount:["beforeUnmount","unmounted"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function QM(){return Pn().getTransaction()}function e$(e,t,n){e.$_sentryRootSpanTimer&&clearTimeout(e.$_sentryRootSpanTimer),e.$_sentryRootSpanTimer=setTimeout(()=>{e.$root&&e.$root.$_sentryRootSpan&&(e.$root.$_sentryRootSpan.end(t),e.$root.$_sentryRootSpan=void 0)},n)}const t$=e=>{const t=(e.hooks||[]).concat(aT).filter((r,s,i)=>i.indexOf(r)===s),n={};for(const r of t){const s=ZM[r];if(!s){XM&&Y.warn(`Unknown hook: ${r}`);continue}for(const i of s)n[i]=function(){const o=this.$root===this;o&&ea()&&(this.$_sentryRootSpan=this.$_sentryRootSpan||Kl({name:"Application Render",op:`${s_}.render`,origin:"auto.ui.vue"}));const a=$o(this,!1),l=Array.isArray(e.trackComponents)?e.trackComponents.indexOf(a)>-1:e.trackComponents;if(!(!o&&!l))if(this.$_sentrySpans=this.$_sentrySpans||{},i==s[0]){if(this.$root&&this.$root.$_sentryRootSpan||ea()){const u=this.$_sentrySpans[r];u&&u.end(),this.$_sentrySpans[r]=Kl({name:`Vue <${a}>`,op:`${s_}.${r}`,origin:"auto.ui.vue"})}}else{const c=this.$_sentrySpans[r];if(!c)return;c.end(),e$(this,ao(),e.timeout)}}}return n},n$=Ne,r$={Vue:n$.Vue,attachProps:!0,logErrors:!0,hooks:aT,timeout:2e3,trackComponents:!1},lT="Vue",s$=(e={})=>({name:lT,setupOnce(){},setup(t){i$(t,e)}}),cT=s$;Sr(lT,cT);function i$(e,t){const n={...r$,...e.getOptions(),...t};if(!n.Vue&&!n.app){Ws(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured.\nUpdate your `Sentry.init` call with an appropriate config option:\n`app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")});return}n.app?xp(n.app).forEach(s=>i_(s,n)):n.Vue&&i_(n.Vue,n)}const i_=(e,t)=>{const n=e;(n._instance&&n._instance.isMounted)===!0&&Ws(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`.")}),JM(e,t),Xs(t)&&e.mixin(t$({...t,...t.tracingOptions}))};function o$(e={}){const t={_metadata:{sdk:{name:"sentry.javascript.vue",packages:[{name:"npm:@sentry/vue",version:Qo}],version:Qo}},defaultIntegrations:[...oT(),cT()],...e};zM(t)}function a$(e,t,n){e.onError(r=>Vp(r,{mechanism:{handled:!1}})),e.beforeEach((r,s,i)=>{const o=s.name==null&&s.matched.length===0,a={[qr]:"auto.navigation.vue"};for(const u of Object.keys(r.params))a[`params.${u}`]=r.params[u];for(const u of Object.keys(r.query)){const d=r.query[u];d&&(a[`query.${u}`]=d)}let l=r.path,c="url";if(r.name&&t.routeLabel!=="path"?(l=r.name.toString(),c="custom"):r.matched[0]&&r.matched[0].path&&(l=r.matched[0].path,c="route"),t.instrumentPageLoad&&o){const u=QM();u&&((dt(u).data||{})[In]!=="custom"&&(u.updateName(l),u.setAttribute(In,c)),u.setAttributes({...a,[qr]:"auto.pageload.vue"}))}t.instrumentNavigation&&!o&&(a[In]=c,n({name:l,op:"navigation",attributes:a})),i&&i()})}function o_(e={}){if(!e.router)return Xm(e);const t=Xm({...e,instrumentNavigation:!1}),{router:n,instrumentNavigation:r=!0,instrumentPageLoad:s=!0,routeLabel:i="name"}=e;return{...t,afterAllSetup(o){t.afterAllSetup(o),a$(n,{routeLabel:i,instrumentNavigation:r,instrumentPageLoad:s},l=>{BE(o,l)})}}}const l$=e=>{const t=`${e.appName}@${e.appVersion}`,r=[e.router?o_({router:e.router}):o_()];o$({release:t,integrations:r,dsn:e.dsn,app:e.app,environment:e.environment,tracesSampleRate:e.tracesSampleRate,tracingOptions:{hooks:["mount","update","create"],timeout:2e3,trackComponents:!0},ignoreErrors:e.ignoreErrors?e.ignoreErrors:[],beforeSend:(s,i)=>{var o,a;return s.level==="info"||(a=(o=s.exception)==null?void 0:o.values)!=null&&a.find(l=>l.value==="sharedStorage is disabled")?null:e.beforeSend?e.beforeSend(s,i):s}})},c$=()=>({appName:"wycieczki-fakultatywne",appVersion:"0.8.23"}),u$=e=>{if(!e)throw new Error('Variable "sentry" is not defined. Make sure you set it in runtime config.');if(e.dsn===void 0)throw new Error('Variable "dsn" is not defined or is empty. Make sure you set it in runtime config.');if(e.tracesSampleRate===void 0)throw new Error('Variable "tracesSampleRate" is not defined. Make sure you set it in runtime config.');return{dsn:e.dsn,tracesSampleRate:e.tracesSampleRate}},d$=gt(e=>{const t=kt().public,n=t.environment||"unknown",r=t.buildId||"unknown",s=Ht(),{appName:i,appVersion:o}=c$(),{dsn:a,tracesSampleRate:l}=u$(t.sentry);if(a){const c=n==="production"?o:`${o}+${r}`;l$({app:e.vueApp,dsn:a,appName:i,appVersion:c,environment:n,tracesSampleRate:l,router:s,beforeSend:u=>{var d,f;return u.level==="info"||(f=(d=u.exception)==null?void 0:d.values)!=null&&f.find(p=>p.value==="sharedStorage is disabled")?null:(u.tags?u.tags.isClient=!0:u.tags={isClient:!0},u)}})}});var en=(e=>(e.PROD="prod",e.TEST="test",e))(en||{}),ve=(e=>(e.ARTYKULY="artykuly",e.ROUTING="routing",e.SCHOWEK="schowek",e.OPINIE="opinie",e.OPINIE_POBIERZ="opiniePobierz",e.SZCZEGOLY_WYCIECZKI="szczegolyWycieczki",e.BLOCZKI="bloczki",e.LOKALIZACJE="lokalizacje",e.BLOG="blog",e.FILMOWY_SWIAT="filmowySwiat",e.OCENY="oceny",e.ZAMOWIENIA_WYCIECZEK_FAKULTATYWNYCH="zamowienia-wycieczek-fakultatywnych",e.ZAMOWIENIA_FAKULTETY="zamowienia-fakultety",e.NEWSLETTER="newsletter",e.FOOTER="footer",e.KOSZYK="koszyk",e.WYSZUKIWARKA="wyszukiwarka",e.REZERWACJE="rezerwacje",e.FILTRY="filtry",e.INNE="inne",e.OCENY_OPINII="oceny_opinii",e.OFERTY_BEING_VIEWED="ofertyBeingViewed",e.FAKULTETY="fakultety",e.ROZKLADY="rozklady",e.CZARTERY="biletyCzarterowe",e.KIERUNKI="kierunki",e.BANERY="banery",e.UA="podstronaUkraina",e.PDF="pdfViewer",e.PRACA="praca",e.WYTYCZNE_COVID="wytyczneCovid",e.REGULAMIN_ARCHIWUM="regulaminArchiwum",e.BIURA="biura",e.REZERWACJA="rezerwacja",e.IPIFY_EXT="ipifyExt",e.SEO="seo",e.MOJE_R="mojeR",e.CLIENTS="clients",e.CDN="cdn",e.PLATNOSC="platnosc",e.IDENTITY="identity",e.IDENTITY_USER="identityUser",e))(ve||{}),Nr=(e=>(e.WYCZYSC_ULUBIONE="wyczysc-ulubione",e.POBIERZ_ULUBIONE="pobierz-ulubione",e.POBIERZ_ROZMIAR="pobierz-rozmiar-schowka",e.DODAJ_BLOCZEK="dodaj-bloczek-schowka",e.DODAJ_DO_ULUBIONYCH="dodaj-do-ulubionych",e.USUN_ELEMENT="usun-ulubione",e.MERGE="merge-ulubione",e.POROWNAJ="porownaj-ulubione",e))(Nr||{});const I8="https://static.r.pl/rpl-cdn/images",f$="v4.5",p$="v5.0",Zt={test:"https://dev.r.pl",prod:"https://r.pl"},h$="v6yeqhvwna-lm.a.run.app",g$="ckvvmm4ooa-lm.a.run.app",R8="Cena",C8="od",A8="do",O8="OcenaKlientow",P8="force",L8="t",a_={test:{DEFAULT:`${Zt.test}`,WYCIECZKI_FAKULTATYWNE:"https://wycieczki-fakultatywne-test.r.pl",REZERWACJA:"https://rezerwuj-api-test2.r.pl",OFERTY_BEING_VIEWED:"https://europe-central2-strona-rpl-test.cloudfunctions.net",BILETY_CZARTEROWE:"https://biletyczarterowe.r.pl",NOWA_REZERWACJA:"https://nowa-rezerwacja-test.r.pl",IPIFY_EXT:"https://api64.ipify.org",CDN:"https://static-test.r.pl/rpl-cdn/api",INNE:`${Zt.test}/api/inne/${p$}`},prod:{DEFAULT:`${Zt.prod}`,WYCIECZKI_FAKULTATYWNE:"https://wycieczki-fakultatywne.r.pl",REZERWACJA:"https://rezerwuj-api.r.pl",OFERTY_BEING_VIEWED:"https://europe-central2-strona-rpl.cloudfunctions.net",BILETY_CZARTEROWE:"https://biletyczarterowe.r.pl",NOWA_REZERWACJA:"https://rpl-rezerwacja-bff.rainbowtours.pl",IPIFY_EXT:"https://api64.ipify.org",CDN:"https://static.r.pl/rpl-cdn/api",INNE:`${Zt.prod}/api/${f$}/inne`}},D8="https://static.r.pl/rpl-cdn/images/no-photos.webp",N8="https://static.r.pl/rpl-cdn/images/no-photos-large.jpg",M8=1;var En=(e=>(e.SMARTPHONE="smartphone",e.TABLET="tablet",e.DESKTOP="desktop",e))(En||{}),Us=(e=>(e.MOBILE_SMALL="mobile-small",e.MOBILE="mobile",e.TABLET="tablet",e.DESKTOP="desktop",e.DESKTOP_LARGE="desktop-large",e.USER_MENU_PANEL="user-menu-panel",e.DESKTOP_STEPPER="desktop-stepper",e.DESKTOP_X_LARGE="desktop-x-large",e))(Us||{});const gi={"mobile-small":0,mobile:576,tablet:768,desktop:992,"desktop-large":1240,"user-menu-panel":1440,"desktop-stepper":1560,"desktop-x-large":1920};var Ts=(e=>(e.MOJE_R="moje-r",e.MOJE_R_ZALOGUJ="moje-r-zaloguj",e.MOJE_R_PROGRAM_LOJALNOSCIOWY="moje-r-program-lojalnosciowy",e.SG="sg",e.SZUKAJ="szukaj",e.BUMERANG_LP="bumerang-landing-page",e))(Ts||{});const Ci={[Ts.MOJE_R]:"/moje-rainbow",[Ts.MOJE_R_ZALOGUJ]:"/moje-rainbow/konto/zaloguj",[Ts.SZUKAJ]:"/szukaj",[Ts.SG]:"",[Ts.MOJE_R_PROGRAM_LOJALNOSCIOWY]:"/moje-rainbow/program-lojalnosciowy",[Ts.BUMERANG_LP]:"/bumerang"},m$=Object.keys(Ci).reduce((e,t)=>{const n=t,r=t;return{...e,[n]:Zt.test+Ci[r]}},Ci),_$=Object.keys(Ci).reduce((e,t)=>{const n=t;return{...e,[n]:Zt.prod+Ci[n]}},Ci),v$={test:m$,prod:_$},sn="v4.5",uT="v2.0",y$="v1.0",w$="v5.0",b$=`/api/${sn}/routing`,E$="/api/schowek",T$="/api/opinie",S$="/api/opinie-pobierz",k$=`/api/${sn}/szczegoly-wycieczki`,I$=`/api/${sn}/bloczki`,R$="/api/lokalizacje",C$="/api/blog",A$=`/api/${sn}/filmowy-swiat`,l_="/api/polubienia",O$="/api/newsletter",P$="/api/zamowienia-wycieczek-fakultatywnych",L$="/api/zamowienia-fakultety",D$=`/api/koszyk/${y$}`,N$="https://static.r.pl/rpl-cdn/api/stopkaV2.json",M$=`/api/${sn}/wyszukiwarka`,$$=`/api/moje-r/${uT}`,x$=`/api/${sn}/filtry`,U$="/api/fakultety",F$="/api/rozklady",B$="/api/strona-glowna",H$=`/api/${sn}/kierunki`,j$=`/api/${sn}/banery`,z$="/api/podstrona-ukraina",V$="/viewer-pdf/pobierz",W$=`/api/${sn}/praca`,K$=`/api/${sn}/wytyczne-covid`,G$=`/api/${sn}/regulamin-archiwum`,q$=`/api/${sn}/seo`,Y$=`/api/${sn}/artykuly`,J$=`/api/edycja-zamowien/${uT}`,X$="/konto/api/clients",Z$="/konto/ui/auth",Q$="/konto/ui/user",ex=`/api/biura/${w$}`,c_=e=>{const t=e===en.TEST?a_.test:a_.prod,{DEFAULT:n,WYCIECZKI_FAKULTATYWNE:r,REZERWACJA:s,OFERTY_BEING_VIEWED:i,BILETY_CZARTEROWE:o,NOWA_REZERWACJA:a,IPIFY_EXT:l,CDN:c,INNE:u}=t,d="https://r.pl";return{[ve.ARTYKULY]:d+Y$,[ve.ROUTING]:d+b$,[ve.SCHOWEK]:d+E$,[ve.OPINIE]:n+T$,[ve.SZCZEGOLY_WYCIECZKI]:d+k$,[ve.BLOCZKI]:d+I$,[ve.LOKALIZACJE]:d+R$,[ve.BLOG]:d+C$,[ve.FILMOWY_SWIAT]:d+A$,[ve.OCENY]:d+l_,[ve.OPINIE_POBIERZ]:d+S$,[ve.NEWSLETTER]:d+O$,[ve.ZAMOWIENIA_WYCIECZEK_FAKULTATYWNYCH]:r+P$,[ve.ZAMOWIENIA_FAKULTETY]:d+L$,[ve.FOOTER]:N$,[ve.KOSZYK]:n+D$,[ve.WYSZUKIWARKA]:d+M$,[ve.REZERWACJE]:s,[ve.FILTRY]:d+x$,[ve.INNE]:u,[ve.OCENY_OPINII]:d+l_,[ve.OFERTY_BEING_VIEWED]:i,[ve.FAKULTETY]:d+U$,[ve.ROZKLADY]:d+F$,[ve.CZARTERY]:o+B$,[ve.KIERUNKI]:d+H$,[ve.BANERY]:d+j$,[ve.UA]:d+z$,[ve.PDF]:d+V$,[ve.PRACA]:d+W$,[ve.WYTYCZNE_COVID]:d+K$,[ve.REGULAMIN_ARCHIWUM]:d+G$,[ve.BIURA]:n+ex,[ve.REZERWACJA]:a,[ve.IPIFY_EXT]:l,[ve.SEO]:d+q$,[ve.MOJE_R]:n+$$,[ve.CLIENTS]:n+X$,[ve.IDENTITY]:n+Z$,[ve.IDENTITY_USER]:n+Q$,[ve.PLATNOSC]:n+J$,[ve.CDN]:c}},u_={[en.PROD]:c_(en.PROD),[en.TEST]:c_(en.TEST)},tx={internal:u_,external:u_},Zp=(e,t=!1)=>{const n=t?"internal":"external";return(r,s="",i)=>{const o=tx[n][e][r]+s;if(i){const a=new URLSearchParams;for(const l in i)if(Object.prototype.hasOwnProperty.call(i,l)){const c=i[l];Array.isArray(c)?c.forEach(u=>{a.append(l,u.toString())}):c!==void 0&&a.append(l,`${c}`)}return`${o}?${a.toString()}`}return o}},nx=e=>{const t=e===en.PROD?g$:h$;return(n,r)=>{const s=`https://${n}-${t}`;if(r){const i=new URLSearchParams(r);return`${s}?${i.toString()}`}return s}},d_=Object.values(en),rx=e=>{if(!d_.includes(e))throw new Error(`Invalid value '${e}' for runtimeConfig.public.rainbowApiEnv! Allowed values are: ${d_.map(t=>JSON.stringify(t)).join(", ")}`);return e},sx=gt(()=>{const t=rx(kt().public.rainbowApiEnv),n=Zp(t,!1);return{provide:{getUrl:(...r)=>n(...r),host:Zt[t],rplApps:v$[t]}}}),ix=gt(()=>{const e=[En.DESKTOP,En.SMARTPHONE,En.TABLET],t=$b("x-mock-device"),n={isBot:!1,isDesktop:!0,isSmartphone:!1,isTablet:!1,deviceType:En.DESKTOP},r=Xo("ua",()=>{const o=LP()["x-agent-device"];if(!o)return null;try{return JSON.parse(o)}catch{return null}}),s=()=>{if(!t.value)return n;const o=t.value.split(",");return!o[0]||!e.includes(o[0])?n:{isBot:o[1]?o[1]==="bot":!1,isDesktop:o[0]===En.DESKTOP,isSmartphone:o[0]===En.SMARTPHONE,isTablet:o[0]===En.TABLET,deviceType:o[0]}};return{provide:{ua:r.value?r.value:s()}}});var ox,ax=()=>ox;function lx(e){return typeof e=="function"?e():O(e)}function df(e,t=""){if(e instanceof Promise)return e;const n=lx(e);return!e||!n?n:Array.isArray(n)?n.map(r=>df(r,t)):typeof n=="object"?Object.fromEntries(Object.entries(n).map(([r,s])=>r==="titleTemplate"||r.startsWith("on")?[r,O(s)]:[r,df(s,r)])):n}var cx=typeof window<"u",ux="usehead";function Qp(){return Nt()&&et(ux)||ax()}function dx(e,t={}){const n=Qp(),r=te(!1),s=te({});mw(()=>{s.value=r.value?{}:df(e)});const i=n.push(s.value,t);return Se(s,a=>{i.patch(a)}),Nt()&&(Tr(()=>{i.dispose()}),cp(()=>{r.value=!0}),lp(()=>{r.value=!1})),i}function fx(e,t={}){return Qp().push(e,t)}function px(e,t={}){var r;const n=Qp();if(n){const s=cx||!!((r=n.resolvedOptions)!=null&&r.document);return t.mode==="server"&&s||t.mode==="client"&&!s?void 0:s?dx(e,t):fx(e,t)}}var hx=e=>{const t={created(){var s;if(typeof((s=this.$options)==null?void 0:s.jsonld)!="function")return;const r=z(()=>this.$options.jsonld.call(this));px(()=>({script:[{type:"application/ld+json",children:r.value?JSON.stringify(r.value,null,""):void 0}]}))}},n={install(r){r.mixin(t)}};e.vueApp.use(n)},gx=gt(hx);/*!
  * shared v9.13.1
  * (c) 2024 kazuya kawaguchi
  * Released under the MIT License.
  */const Jl=typeof window<"u",us=(e,t=!1)=>t?Symbol.for(e):Symbol(e),mx=(e,t,n)=>_x({l:e,k:t,s:n}),_x=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),wt=e=>typeof e=="number"&&isFinite(e),vx=e=>fT(e)==="[object Date]",Xl=e=>fT(e)==="[object RegExp]",Bc=e=>Ae(e)&&Object.keys(e).length===0,ut=Object.assign;let f_;const eh=()=>f_||(f_=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function p_(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const yx=Object.prototype.hasOwnProperty;function Zl(e,t){return yx.call(e,t)}const ct=Array.isArray,Fe=e=>typeof e=="function",ae=e=>typeof e=="string",st=e=>typeof e=="boolean",wx=e=>typeof e=="symbol",ke=e=>e!==null&&typeof e=="object",bx=e=>ke(e)&&Fe(e.then)&&Fe(e.catch),dT=Object.prototype.toString,fT=e=>dT.call(e),Ae=e=>{if(!ke(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},Ex=e=>e==null?"":ct(e)||Ae(e)&&e.toString===dT?JSON.stringify(e,null,2):String(e);function th(e,t=""){return e.reduce((n,r,s)=>s===0?n+r:n+t+r,"")}function Hc(e){let t=e;return()=>++t}function Tx(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const rl=e=>!ke(e)||ct(e);function Os(e,t){if(rl(e)||rl(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:s}=n.pop();Object.keys(r).forEach(i=>{rl(r[i])||rl(s[i])?s[i]=r[i]:n.push({src:r[i],des:s[i]})})}}/*!
  * message-compiler v9.13.1
  * (c) 2024 kazuya kawaguchi
  * Released under the MIT License.
  */function Sx(e,t,n){return{line:e,column:t,offset:n}}function Ql(e,t,n){return{start:e,end:t}}const pT={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2};function kx(e,t,...n){const s={message:String(e),code:e};return t&&(s.location=t),s}const Me={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17};function jc(e,t,n={}){const{domain:r,messages:s,args:i}=n,o=e,a=new SyntaxError(String(o));return a.code=e,t&&(a.location=t),a.domain=r,a}function Ix(e){throw e}const Zn=" ",Rx="\r",Lt=`
`,Cx="\u2028",Ax="\u2029";function Ox(e){const t=e;let n=0,r=1,s=1,i=0;const o=R=>t[R]===Rx&&t[R+1]===Lt,a=R=>t[R]===Lt,l=R=>t[R]===Ax,c=R=>t[R]===Cx,u=R=>o(R)||a(R)||l(R)||c(R),d=()=>n,f=()=>r,p=()=>s,g=()=>i,v=R=>o(R)||l(R)||c(R)?Lt:t[R],w=()=>v(n),y=()=>v(n+i);function m(){return i=0,u(n)&&(r++,s=0),o(n)&&n++,n++,s++,t[n]}function h(){return o(n+i)&&i++,i++,t[n+i]}function _(){n=0,r=1,s=1,i=0}function b(R=0){i=R}function E(){const R=n+i;for(;R!==n;)m();i=0}return{index:d,line:f,column:p,peekOffset:g,charAt:v,currentChar:w,currentPeek:y,next:m,peek:h,reset:_,resetPeek:b,skipToPeek:E}}const Cr=void 0,Px=".",h_="'",Lx="tokenizer";function Dx(e,t={}){const n=t.location!==!1,r=Ox(e),s=()=>r.index(),i=()=>Sx(r.line(),r.column(),r.index()),o=i(),a=s(),l={currentType:14,offset:a,startLoc:o,endLoc:o,lastType:14,lastOffset:a,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:u}=t;function d(T,k,M,...j){const ne=c();if(k.column+=M,k.offset+=M,u){const q=n?Ql(ne.startLoc,k):null,U=jc(T,q,{domain:Lx,args:j});u(U)}}function f(T,k,M){T.endLoc=i(),T.currentType=k;const j={type:k};return n&&(j.loc=Ql(T.startLoc,T.endLoc)),M!=null&&(j.value=M),j}const p=T=>f(T,14);function g(T,k){return T.currentChar()===k?(T.next(),k):(d(Me.EXPECTED_TOKEN,i(),0,k),"")}function v(T){let k="";for(;T.currentPeek()===Zn||T.currentPeek()===Lt;)k+=T.currentPeek(),T.peek();return k}function w(T){const k=v(T);return T.skipToPeek(),k}function y(T){if(T===Cr)return!1;const k=T.charCodeAt(0);return k>=97&&k<=122||k>=65&&k<=90||k===95}function m(T){if(T===Cr)return!1;const k=T.charCodeAt(0);return k>=48&&k<=57}function h(T,k){const{currentType:M}=k;if(M!==2)return!1;v(T);const j=y(T.currentPeek());return T.resetPeek(),j}function _(T,k){const{currentType:M}=k;if(M!==2)return!1;v(T);const j=T.currentPeek()==="-"?T.peek():T.currentPeek(),ne=m(j);return T.resetPeek(),ne}function b(T,k){const{currentType:M}=k;if(M!==2)return!1;v(T);const j=T.currentPeek()===h_;return T.resetPeek(),j}function E(T,k){const{currentType:M}=k;if(M!==8)return!1;v(T);const j=T.currentPeek()===".";return T.resetPeek(),j}function R(T,k){const{currentType:M}=k;if(M!==9)return!1;v(T);const j=y(T.currentPeek());return T.resetPeek(),j}function S(T,k){const{currentType:M}=k;if(!(M===8||M===12))return!1;v(T);const j=T.currentPeek()===":";return T.resetPeek(),j}function A(T,k){const{currentType:M}=k;if(M!==10)return!1;const j=()=>{const q=T.currentPeek();return q==="{"?y(T.peek()):q==="@"||q==="%"||q==="|"||q===":"||q==="."||q===Zn||!q?!1:q===Lt?(T.peek(),j()):N(T,!1)},ne=j();return T.resetPeek(),ne}function D(T){v(T);const k=T.currentPeek()==="|";return T.resetPeek(),k}function L(T){const k=v(T),M=T.currentPeek()==="%"&&T.peek()==="{";return T.resetPeek(),{isModulo:M,hasSpace:k.length>0}}function N(T,k=!0){const M=(ne=!1,q="",U=!1)=>{const B=T.currentPeek();return B==="{"?q==="%"?!1:ne:B==="@"||!B?q==="%"?!0:ne:B==="%"?(T.peek(),M(ne,"%",!0)):B==="|"?q==="%"||U?!0:!(q===Zn||q===Lt):B===Zn?(T.peek(),M(!0,Zn,U)):B===Lt?(T.peek(),M(!0,Lt,U)):!0},j=M();return k&&T.resetPeek(),j}function x(T,k){const M=T.currentChar();return M===Cr?Cr:k(M)?(T.next(),M):null}function W(T){const k=T.charCodeAt(0);return k>=97&&k<=122||k>=65&&k<=90||k>=48&&k<=57||k===95||k===36}function ee(T){return x(T,W)}function K(T){const k=T.charCodeAt(0);return k>=97&&k<=122||k>=65&&k<=90||k>=48&&k<=57||k===95||k===36||k===45}function ce(T){return x(T,K)}function oe(T){const k=T.charCodeAt(0);return k>=48&&k<=57}function Xe(T){return x(T,oe)}function nt(T){const k=T.charCodeAt(0);return k>=48&&k<=57||k>=65&&k<=70||k>=97&&k<=102}function Je(T){return x(T,nt)}function He(T){let k="",M="";for(;k=Xe(T);)M+=k;return M}function _t(T){w(T);const k=T.currentChar();return k!=="%"&&d(Me.EXPECTED_TOKEN,i(),0,k),T.next(),"%"}function je(T){let k="";for(;;){const M=T.currentChar();if(M==="{"||M==="}"||M==="@"||M==="|"||!M)break;if(M==="%")if(N(T))k+=M,T.next();else break;else if(M===Zn||M===Lt)if(N(T))k+=M,T.next();else{if(D(T))break;k+=M,T.next()}else k+=M,T.next()}return k}function bt(T){w(T);let k="",M="";for(;k=ce(T);)M+=k;return T.currentChar()===Cr&&d(Me.UNTERMINATED_CLOSING_BRACE,i(),0),M}function It(T){w(T);let k="";return T.currentChar()==="-"?(T.next(),k+=`-${He(T)}`):k+=He(T),T.currentChar()===Cr&&d(Me.UNTERMINATED_CLOSING_BRACE,i(),0),k}function V(T){return T!==h_&&T!==Lt}function le(T){w(T),g(T,"'");let k="",M="";for(;k=x(T,V);)k==="\\"?M+=ie(T):M+=k;const j=T.currentChar();return j===Lt||j===Cr?(d(Me.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),j===Lt&&(T.next(),g(T,"'")),M):(g(T,"'"),M)}function ie(T){const k=T.currentChar();switch(k){case"\\":case"'":return T.next(),`\\${k}`;case"u":return ue(T,k,4);case"U":return ue(T,k,6);default:return d(Me.UNKNOWN_ESCAPE_SEQUENCE,i(),0,k),""}}function ue(T,k,M){g(T,k);let j="";for(let ne=0;ne<M;ne++){const q=Je(T);if(!q){d(Me.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${k}${j}${T.currentChar()}`);break}j+=q}return`\\${k}${j}`}function Re(T){return T!=="{"&&T!=="}"&&T!==Zn&&T!==Lt}function ze(T){w(T);let k="",M="";for(;k=x(T,Re);)M+=k;return M}function C(T){let k="",M="";for(;k=ee(T);)M+=k;return M}function P(T){const k=M=>{const j=T.currentChar();return j==="{"||j==="%"||j==="@"||j==="|"||j==="("||j===")"||!j||j===Zn?M:(M+=j,T.next(),k(M))};return k("")}function F(T){w(T);const k=g(T,"|");return w(T),k}function G(T,k){let M=null;switch(T.currentChar()){case"{":return k.braceNest>=1&&d(Me.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),T.next(),M=f(k,2,"{"),w(T),k.braceNest++,M;case"}":return k.braceNest>0&&k.currentType===2&&d(Me.EMPTY_PLACEHOLDER,i(),0),T.next(),M=f(k,3,"}"),k.braceNest--,k.braceNest>0&&w(T),k.inLinked&&k.braceNest===0&&(k.inLinked=!1),M;case"@":return k.braceNest>0&&d(Me.UNTERMINATED_CLOSING_BRACE,i(),0),M=H(T,k)||p(k),k.braceNest=0,M;default:{let ne=!0,q=!0,U=!0;if(D(T))return k.braceNest>0&&d(Me.UNTERMINATED_CLOSING_BRACE,i(),0),M=f(k,1,F(T)),k.braceNest=0,k.inLinked=!1,M;if(k.braceNest>0&&(k.currentType===5||k.currentType===6||k.currentType===7))return d(Me.UNTERMINATED_CLOSING_BRACE,i(),0),k.braceNest=0,J(T,k);if(ne=h(T,k))return M=f(k,5,bt(T)),w(T),M;if(q=_(T,k))return M=f(k,6,It(T)),w(T),M;if(U=b(T,k))return M=f(k,7,le(T)),w(T),M;if(!ne&&!q&&!U)return M=f(k,13,ze(T)),d(Me.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,M.value),w(T),M;break}}return M}function H(T,k){const{currentType:M}=k;let j=null;const ne=T.currentChar();switch((M===8||M===9||M===12||M===10)&&(ne===Lt||ne===Zn)&&d(Me.INVALID_LINKED_FORMAT,i(),0),ne){case"@":return T.next(),j=f(k,8,"@"),k.inLinked=!0,j;case".":return w(T),T.next(),f(k,9,".");case":":return w(T),T.next(),f(k,10,":");default:return D(T)?(j=f(k,1,F(T)),k.braceNest=0,k.inLinked=!1,j):E(T,k)||S(T,k)?(w(T),H(T,k)):R(T,k)?(w(T),f(k,12,C(T))):A(T,k)?(w(T),ne==="{"?G(T,k)||j:f(k,11,P(T))):(M===8&&d(Me.INVALID_LINKED_FORMAT,i(),0),k.braceNest=0,k.inLinked=!1,J(T,k))}}function J(T,k){let M={type:14};if(k.braceNest>0)return G(T,k)||p(k);if(k.inLinked)return H(T,k)||p(k);switch(T.currentChar()){case"{":return G(T,k)||p(k);case"}":return d(Me.UNBALANCED_CLOSING_BRACE,i(),0),T.next(),f(k,3,"}");case"@":return H(T,k)||p(k);default:{if(D(T))return M=f(k,1,F(T)),k.braceNest=0,k.inLinked=!1,M;const{isModulo:ne,hasSpace:q}=L(T);if(ne)return q?f(k,0,je(T)):f(k,4,_t(T));if(N(T))return f(k,0,je(T));break}}return M}function re(){const{currentType:T,offset:k,startLoc:M,endLoc:j}=l;return l.lastType=T,l.lastOffset=k,l.lastStartLoc=M,l.lastEndLoc=j,l.offset=s(),l.startLoc=i(),r.currentChar()===Cr?f(l,14):J(r,l)}return{nextToken:re,currentOffset:s,currentPosition:i,context:c}}const Nx="parser",Mx=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function $x(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function xx(e={}){const t=e.location!==!1,{onError:n,onWarn:r}=e;function s(h,_,b,E,...R){const S=h.currentPosition();if(S.offset+=E,S.column+=E,n){const A=t?Ql(b,S):null,D=jc(_,A,{domain:Nx,args:R});n(D)}}function i(h,_,b,E,...R){const S=h.currentPosition();if(S.offset+=E,S.column+=E,r){const A=t?Ql(b,S):null;r(kx(_,A,R))}}function o(h,_,b){const E={type:h};return t&&(E.start=_,E.end=_,E.loc={start:b,end:b}),E}function a(h,_,b,E){t&&(h.end=_,h.loc&&(h.loc.end=b))}function l(h,_){const b=h.context(),E=o(3,b.offset,b.startLoc);return E.value=_,a(E,h.currentOffset(),h.currentPosition()),E}function c(h,_){const b=h.context(),{lastOffset:E,lastStartLoc:R}=b,S=o(5,E,R);return S.index=parseInt(_,10),h.nextToken(),a(S,h.currentOffset(),h.currentPosition()),S}function u(h,_,b){const E=h.context(),{lastOffset:R,lastStartLoc:S}=E,A=o(4,R,S);return A.key=_,b===!0&&(A.modulo=!0),h.nextToken(),a(A,h.currentOffset(),h.currentPosition()),A}function d(h,_){const b=h.context(),{lastOffset:E,lastStartLoc:R}=b,S=o(9,E,R);return S.value=_.replace(Mx,$x),h.nextToken(),a(S,h.currentOffset(),h.currentPosition()),S}function f(h){const _=h.nextToken(),b=h.context(),{lastOffset:E,lastStartLoc:R}=b,S=o(8,E,R);return _.type!==12?(s(h,Me.UNEXPECTED_EMPTY_LINKED_MODIFIER,b.lastStartLoc,0),S.value="",a(S,E,R),{nextConsumeToken:_,node:S}):(_.value==null&&s(h,Me.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,vn(_)),S.value=_.value||"",a(S,h.currentOffset(),h.currentPosition()),{node:S})}function p(h,_){const b=h.context(),E=o(7,b.offset,b.startLoc);return E.value=_,a(E,h.currentOffset(),h.currentPosition()),E}function g(h){const _=h.context(),b=o(6,_.offset,_.startLoc);let E=h.nextToken();if(E.type===9){const R=f(h);b.modifier=R.node,E=R.nextConsumeToken||h.nextToken()}switch(E.type!==10&&s(h,Me.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,vn(E)),E=h.nextToken(),E.type===2&&(E=h.nextToken()),E.type){case 11:E.value==null&&s(h,Me.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,vn(E)),b.key=p(h,E.value||"");break;case 5:E.value==null&&s(h,Me.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,vn(E)),b.key=u(h,E.value||"");break;case 6:E.value==null&&s(h,Me.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,vn(E)),b.key=c(h,E.value||"");break;case 7:E.value==null&&s(h,Me.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,vn(E)),b.key=d(h,E.value||"");break;default:{s(h,Me.UNEXPECTED_EMPTY_LINKED_KEY,_.lastStartLoc,0);const R=h.context(),S=o(7,R.offset,R.startLoc);return S.value="",a(S,R.offset,R.startLoc),b.key=S,a(b,R.offset,R.startLoc),{nextConsumeToken:E,node:b}}}return a(b,h.currentOffset(),h.currentPosition()),{node:b}}function v(h){const _=h.context(),b=_.currentType===1?h.currentOffset():_.offset,E=_.currentType===1?_.endLoc:_.startLoc,R=o(2,b,E);R.items=[];let S=null,A=null;do{const N=S||h.nextToken();switch(S=null,N.type){case 0:N.value==null&&s(h,Me.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,vn(N)),R.items.push(l(h,N.value||""));break;case 6:N.value==null&&s(h,Me.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,vn(N)),R.items.push(c(h,N.value||""));break;case 4:A=!0;break;case 5:N.value==null&&s(h,Me.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,vn(N)),R.items.push(u(h,N.value||"",!!A)),A&&(i(h,pT.USE_MODULO_SYNTAX,_.lastStartLoc,0,vn(N)),A=null);break;case 7:N.value==null&&s(h,Me.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,vn(N)),R.items.push(d(h,N.value||""));break;case 8:{const x=g(h);R.items.push(x.node),S=x.nextConsumeToken||null;break}}}while(_.currentType!==14&&_.currentType!==1);const D=_.currentType===1?_.lastOffset:h.currentOffset(),L=_.currentType===1?_.lastEndLoc:h.currentPosition();return a(R,D,L),R}function w(h,_,b,E){const R=h.context();let S=E.items.length===0;const A=o(1,_,b);A.cases=[],A.cases.push(E);do{const D=v(h);S||(S=D.items.length===0),A.cases.push(D)}while(R.currentType!==14);return S&&s(h,Me.MUST_HAVE_MESSAGES_IN_PLURAL,b,0),a(A,h.currentOffset(),h.currentPosition()),A}function y(h){const _=h.context(),{offset:b,startLoc:E}=_,R=v(h);return _.currentType===14?R:w(h,b,E,R)}function m(h){const _=Dx(h,ut({},e)),b=_.context(),E=o(0,b.offset,b.startLoc);return t&&E.loc&&(E.loc.source=h),E.body=y(_),e.onCacheKey&&(E.cacheKey=e.onCacheKey(h)),b.currentType!==14&&s(_,Me.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,h[b.offset]||""),a(E,_.currentOffset(),_.currentPosition()),E}return{parse:m}}function vn(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Ux(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function g_(e,t){for(let n=0;n<e.length;n++)nh(e[n],t)}function nh(e,t){switch(e.type){case 1:g_(e.cases,t),t.helper("plural");break;case 2:g_(e.items,t);break;case 6:{nh(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function Fx(e,t={}){const n=Ux(e);n.helper("normalize"),e.body&&nh(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function Bx(e){const t=e.body;return t.type===2?m_(t):t.cases.forEach(n=>m_(n)),e}function m_(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=th(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}function ci(e){switch(e.t=e.type,e.type){case 0:{const t=e;ci(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let r=0;r<n.length;r++)ci(n[r]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let r=0;r<n.length;r++)ci(n[r]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;ci(t.key),t.k=t.key,delete t.key,t.modifier&&(ci(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}}delete e.type}function Hx(e,t){const{sourceMap:n,filename:r,breakLineCode:s,needIndent:i}=t,o=t.location!==!1,a={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:s,needIndent:i,indentLevel:0};o&&e.loc&&(a.source=e.loc.source);const l=()=>a;function c(w,y){a.code+=w}function u(w,y=!0){const m=y?s:"";c(i?m+"  ".repeat(w):m)}function d(w=!0){const y=++a.indentLevel;w&&u(y)}function f(w=!0){const y=--a.indentLevel;w&&u(y)}function p(){u(a.indentLevel)}return{context:l,push:c,indent:d,deindent:f,newline:p,helper:w=>`_${w}`,needIndent:()=>a.needIndent}}function jx(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Gi(e,t.key),t.modifier?(e.push(", "),Gi(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function zx(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const s=t.items.length;for(let i=0;i<s&&(Gi(e,t.items[i]),i!==s-1);i++)e.push(", ");e.deindent(r()),e.push("])")}function Vx(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const s=t.cases.length;for(let i=0;i<s&&(Gi(e,t.cases[i]),i!==s-1);i++)e.push(", ");e.deindent(r()),e.push("])")}}function Wx(e,t){t.body?Gi(e,t.body):e.push("null")}function Gi(e,t){const{helper:n}=e;switch(t.type){case 0:Wx(e,t);break;case 1:Vx(e,t);break;case 2:zx(e,t);break;case 6:jx(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break}}const Kx=(e,t={})=>{const n=ae(t.mode)?t.mode:"normal",r=ae(t.filename)?t.filename:"message.intl",s=!!t.sourceMap,i=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
`,o=t.needIndent?t.needIndent:n!=="arrow",a=e.helpers||[],l=Hx(e,{mode:n,filename:r,sourceMap:s,breakLineCode:i,needIndent:o});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(o),a.length>0&&(l.push(`const { ${th(a.map(d=>`${d}: _${d}`),", ")} } = ctx`),l.newline()),l.push("return "),Gi(l,e),l.deindent(o),l.push("}"),delete e.helpers;const{code:c,map:u}=l.context();return{ast:e,code:c,map:u?u.toJSON():void 0}};function Gx(e,t={}){const n=ut({},t),r=!!n.jit,s=!!n.minify,i=n.optimize==null?!0:n.optimize,a=xx(n).parse(e);return r?(i&&Bx(a),s&&ci(a),{ast:a,code:""}):(Fx(a,n),Kx(a,n))}/*!
  * core-base v9.13.1
  * (c) 2024 kazuya kawaguchi
  * Released under the MIT License.
  */function qx(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(eh().__INTLIFY_PROD_DEVTOOLS__=!1)}const ds=[];ds[0]={w:[0],i:[3,0],"[":[4],o:[7]};ds[1]={w:[1],".":[2],"[":[4],o:[7]};ds[2]={w:[2],i:[3,0],0:[3,0]};ds[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};ds[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};ds[5]={"'":[4,0],o:8,l:[5,0]};ds[6]={'"':[4,0],o:8,l:[6,0]};const Yx=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Jx(e){return Yx.test(e)}function Xx(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function Zx(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Qx(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Jx(t)?Xx(t):"*"+t}function eU(e){const t=[];let n=-1,r=0,s=0,i,o,a,l,c,u,d;const f=[];f[0]=()=>{o===void 0?o=a:o+=a},f[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},f[2]=()=>{f[0](),s++},f[3]=()=>{if(s>0)s--,r=4,f[0]();else{if(s=0,o===void 0||(o=Qx(o),o===!1))return!1;f[1]()}};function p(){const g=e[n+1];if(r===5&&g==="'"||r===6&&g==='"')return n++,a="\\"+g,f[0](),!0}for(;r!==null;)if(n++,i=e[n],!(i==="\\"&&p())){if(l=Zx(i),d=ds[r],c=d[l]||d.l||8,c===8||(r=c[0],c[1]!==void 0&&(u=f[c[1]],u&&(a=i,u()===!1))))return;if(r===7)return t}}const __=new Map;function tU(e,t){return ke(e)?e[t]:null}function nU(e,t){if(!ke(e))return null;let n=__.get(t);if(n||(n=eU(t),n&&__.set(t,n)),!n)return null;const r=n.length;let s=e,i=0;for(;i<r;){const o=s[n[i]];if(o===void 0||Fe(s))return null;s=o,i++}return s}const rU=e=>e,sU=e=>"",iU="text",oU=e=>e.length===0?"":th(e),aU=Ex;function v_(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function lU(e){const t=wt(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(wt(e.named.count)||wt(e.named.n))?wt(e.named.count)?e.named.count:wt(e.named.n)?e.named.n:t:t}function cU(e,t){t.count||(t.count=e),t.n||(t.n=e)}function uU(e={}){const t=e.locale,n=lU(e),r=ke(e.pluralRules)&&ae(t)&&Fe(e.pluralRules[t])?e.pluralRules[t]:v_,s=ke(e.pluralRules)&&ae(t)&&Fe(e.pluralRules[t])?v_:void 0,i=y=>y[r(n,y.length,s)],o=e.list||[],a=y=>o[y],l=e.named||{};wt(e.pluralIndex)&&cU(n,l);const c=y=>l[y];function u(y){const m=Fe(e.messages)?e.messages(y):ke(e.messages)?e.messages[y]:!1;return m||(e.parent?e.parent.message(y):sU)}const d=y=>e.modifiers?e.modifiers[y]:rU,f=Ae(e.processor)&&Fe(e.processor.normalize)?e.processor.normalize:oU,p=Ae(e.processor)&&Fe(e.processor.interpolate)?e.processor.interpolate:aU,g=Ae(e.processor)&&ae(e.processor.type)?e.processor.type:iU,w={list:a,named:c,plural:i,linked:(y,...m)=>{const[h,_]=m;let b="text",E="";m.length===1?ke(h)?(E=h.modifier||E,b=h.type||b):ae(h)&&(E=h||E):m.length===2&&(ae(h)&&(E=h||E),ae(_)&&(b=_||b));const R=u(y)(w),S=b==="vnode"&&ct(R)&&E?R[0]:R;return E?d(E)(S,b):S},message:u,type:g,interpolate:p,normalize:f,values:ut({},o,l)};return w}let na=null;function dU(e){na=e}function fU(e,t,n){na&&na.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const pU=hU("function:translate");function hU(e){return t=>na&&na.emit(e,t)}const hT=pT.__EXTEND_POINT__,vs=Hc(hT),gU={NOT_FOUND_KEY:hT,FALLBACK_TO_TRANSLATE:vs(),CANNOT_FORMAT_NUMBER:vs(),FALLBACK_TO_NUMBER_FORMAT:vs(),CANNOT_FORMAT_DATE:vs(),FALLBACK_TO_DATE_FORMAT:vs(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:vs(),__EXTEND_POINT__:vs()},gT=Me.__EXTEND_POINT__,ys=Hc(gT),Vn={INVALID_ARGUMENT:gT,INVALID_DATE_ARGUMENT:ys(),INVALID_ISO_DATE_ARGUMENT:ys(),NOT_SUPPORT_NON_STRING_MESSAGE:ys(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:ys(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:ys(),NOT_SUPPORT_LOCALE_TYPE:ys(),__EXTEND_POINT__:ys()};function or(e){return jc(e,null,void 0)}function rh(e,t){return t.locale!=null?y_(t.locale):y_(e.locale)}let Au;function y_(e){if(ae(e))return e;if(Fe(e)){if(e.resolvedOnce&&Au!=null)return Au;if(e.constructor.name==="Function"){const t=e();if(bx(t))throw or(Vn.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Au=t}else throw or(Vn.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw or(Vn.NOT_SUPPORT_LOCALE_TYPE)}function mU(e,t,n){return[...new Set([n,...ct(t)?t:ke(t)?Object.keys(t):ae(t)?[t]:[n]])]}function mT(e,t,n){const r=ae(n)?n:ec,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);let i=s.__localeChainCache.get(r);if(!i){i=[];let o=[n];for(;ct(o);)o=w_(i,o,t);const a=ct(t)||!Ae(t)?t:t.default?t.default:null;o=ae(a)?[a]:a,ct(o)&&w_(i,o,!1),s.__localeChainCache.set(r,i)}return i}function w_(e,t,n){let r=!0;for(let s=0;s<t.length&&st(r);s++){const i=t[s];ae(i)&&(r=_U(e,t[s],n))}return r}function _U(e,t,n){let r;const s=t.split("-");do{const i=s.join("-");r=vU(e,i,n),s.splice(-1,1)}while(s.length&&r===!0);return r}function vU(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const s=t.replace(/!/g,"");e.push(s),(ct(n)||Ae(n))&&n[s]&&(r=n[s])}return r}const yU="9.13.1",zc=-1,ec="en-US",b_="",E_=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function wU(){return{upper:(e,t)=>t==="text"&&ae(e)?e.toUpperCase():t==="vnode"&&ke(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&ae(e)?e.toLowerCase():t==="vnode"&&ke(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&ae(e)?E_(e):t==="vnode"&&ke(e)&&"__v_isVNode"in e?E_(e.children):e}}let _T;function bU(e){_T=e}let vT;function EU(e){vT=e}let yT;function TU(e){yT=e}let wT=null;const SU=e=>{wT=e},kU=()=>wT;let bT=null;const T_=e=>{bT=e},IU=()=>bT;let S_=0;function RU(e={}){const t=Fe(e.onWarn)?e.onWarn:Tx,n=ae(e.version)?e.version:yU,r=ae(e.locale)||Fe(e.locale)?e.locale:ec,s=Fe(r)?ec:r,i=ct(e.fallbackLocale)||Ae(e.fallbackLocale)||ae(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s,o=Ae(e.messages)?e.messages:{[s]:{}},a=Ae(e.datetimeFormats)?e.datetimeFormats:{[s]:{}},l=Ae(e.numberFormats)?e.numberFormats:{[s]:{}},c=ut({},e.modifiers||{},wU()),u=e.pluralRules||{},d=Fe(e.missing)?e.missing:null,f=st(e.missingWarn)||Xl(e.missingWarn)?e.missingWarn:!0,p=st(e.fallbackWarn)||Xl(e.fallbackWarn)?e.fallbackWarn:!0,g=!!e.fallbackFormat,v=!!e.unresolving,w=Fe(e.postTranslation)?e.postTranslation:null,y=Ae(e.processor)?e.processor:null,m=st(e.warnHtmlMessage)?e.warnHtmlMessage:!0,h=!!e.escapeParameter,_=Fe(e.messageCompiler)?e.messageCompiler:_T,b=Fe(e.messageResolver)?e.messageResolver:vT||tU,E=Fe(e.localeFallbacker)?e.localeFallbacker:yT||mU,R=ke(e.fallbackContext)?e.fallbackContext:void 0,S=e,A=ke(S.__datetimeFormatters)?S.__datetimeFormatters:new Map,D=ke(S.__numberFormatters)?S.__numberFormatters:new Map,L=ke(S.__meta)?S.__meta:{};S_++;const N={version:n,cid:S_,locale:r,fallbackLocale:i,messages:o,modifiers:c,pluralRules:u,missing:d,missingWarn:f,fallbackWarn:p,fallbackFormat:g,unresolving:v,postTranslation:w,processor:y,warnHtmlMessage:m,escapeParameter:h,messageCompiler:_,messageResolver:b,localeFallbacker:E,fallbackContext:R,onWarn:t,__meta:L};return N.datetimeFormats=a,N.numberFormats=l,N.__datetimeFormatters=A,N.__numberFormatters=D,__INTLIFY_PROD_DEVTOOLS__&&fU(N,n,L),N}function sh(e,t,n,r,s){const{missing:i,onWarn:o}=e;if(i!==null){const a=i(e,n,t,s);return ae(a)?a:t}else return t}function yo(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function CU(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function AU(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(CU(e,t[r]))return!0;return!1}function Ou(e){return n=>OU(n,e)}function OU(e,t){const n=t.b||t.body;if((n.t||n.type)===1){const r=n,s=r.c||r.cases;return e.plural(s.reduce((i,o)=>[...i,k_(e,o)],[]))}else return k_(e,n)}function k_(e,t){const n=t.s||t.static;if(n)return e.type==="text"?n:e.normalize([n]);{const r=(t.i||t.items).reduce((s,i)=>[...s,ff(e,i)],[]);return e.normalize(r)}}function ff(e,t){const n=t.t||t.type;switch(n){case 3:{const r=t;return r.v||r.value}case 9:{const r=t;return r.v||r.value}case 4:{const r=t;return e.interpolate(e.named(r.k||r.key))}case 5:{const r=t;return e.interpolate(e.list(r.i!=null?r.i:r.index))}case 6:{const r=t,s=r.m||r.modifier;return e.linked(ff(e,r.k||r.key),s?ff(e,s):void 0,e.type)}case 7:{const r=t;return r.v||r.value}case 8:{const r=t;return r.v||r.value}default:throw new Error(`unhandled node type on format message part: ${n}`)}}const PU=e=>e;let sl=Object.create(null);const qi=e=>ke(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function LU(e,t={}){let n=!1;const r=t.onError||Ix;return t.onError=s=>{n=!0,r(s)},{...Gx(e,t),detectError:n}}function DU(e,t){if(ae(e)){st(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||PU)(e),s=sl[r];if(s)return s;const{ast:i,detectError:o}=LU(e,{...t,location:!1,jit:!0}),a=Ou(i);return o?a:sl[r]=a}else{const n=e.cacheKey;if(n){const r=sl[n];return r||(sl[n]=Ou(e))}else return Ou(e)}}const I_=()=>"",ln=e=>Fe(e);function R_(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:s,messageCompiler:i,fallbackLocale:o,messages:a}=e,[l,c]=pf(...t),u=st(c.missingWarn)?c.missingWarn:e.missingWarn,d=st(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,f=st(c.escapeParameter)?c.escapeParameter:e.escapeParameter,p=!!c.resolvedMessage,g=ae(c.default)||st(c.default)?st(c.default)?i?l:()=>l:c.default:n?i?l:()=>l:"",v=n||g!=="",w=rh(e,c);f&&NU(c);let[y,m,h]=p?[l,w,a[w]||{}]:ET(e,l,w,o,d,u),_=y,b=l;if(!p&&!(ae(_)||qi(_)||ln(_))&&v&&(_=g,b=_),!p&&(!(ae(_)||qi(_)||ln(_))||!ae(m)))return s?zc:l;let E=!1;const R=()=>{E=!0},S=ln(_)?_:TT(e,l,m,_,b,R);if(E)return _;const A=xU(e,m,h,c),D=uU(A),L=MU(e,S,D),N=r?r(L,l):L;if(__INTLIFY_PROD_DEVTOOLS__){const x={timestamp:Date.now(),key:ae(l)?l:ln(_)?_.key:"",locale:m||(ln(_)?_.locale:""),format:ae(_)?_:ln(_)?_.source:"",message:N};x.meta=ut({},e.__meta,kU()||{}),pU(x)}return N}function NU(e){ct(e.list)?e.list=e.list.map(t=>ae(t)?p_(t):t):ke(e.named)&&Object.keys(e.named).forEach(t=>{ae(e.named[t])&&(e.named[t]=p_(e.named[t]))})}function ET(e,t,n,r,s,i){const{messages:o,onWarn:a,messageResolver:l,localeFallbacker:c}=e,u=c(e,r,n);let d={},f,p=null;const g="translate";for(let v=0;v<u.length&&(f=u[v],d=o[f]||{},(p=l(d,t))===null&&(p=d[t]),!(ae(p)||qi(p)||ln(p)));v++)if(!AU(f,u)){const w=sh(e,t,f,i,g);w!==t&&(p=w)}return[p,f,d]}function TT(e,t,n,r,s,i){const{messageCompiler:o,warnHtmlMessage:a}=e;if(ln(r)){const c=r;return c.locale=c.locale||n,c.key=c.key||t,c}if(o==null){const c=()=>r;return c.locale=n,c.key=t,c}const l=o(r,$U(e,n,s,r,a,i));return l.locale=n,l.key=t,l.source=r,l}function MU(e,t,n){return t(n)}function pf(...e){const[t,n,r]=e,s={};if(!ae(t)&&!wt(t)&&!ln(t)&&!qi(t))throw or(Vn.INVALID_ARGUMENT);const i=wt(t)?String(t):(ln(t),t);return wt(n)?s.plural=n:ae(n)?s.default=n:Ae(n)&&!Bc(n)?s.named=n:ct(n)&&(s.list=n),wt(r)?s.plural=r:ae(r)?s.default=r:Ae(r)&&ut(s,r),[i,s]}function $U(e,t,n,r,s,i){return{locale:t,key:n,warnHtmlMessage:s,onError:o=>{throw i&&i(o),o},onCacheKey:o=>mx(t,n,o)}}function xU(e,t,n,r){const{modifiers:s,pluralRules:i,messageResolver:o,fallbackLocale:a,fallbackWarn:l,missingWarn:c,fallbackContext:u}=e,f={locale:t,modifiers:s,pluralRules:i,messages:p=>{let g=o(n,p);if(g==null&&u){const[,,v]=ET(u,p,t,a,l,c);g=o(v,p)}if(ae(g)||qi(g)){let v=!1;const y=TT(e,p,t,g,p,()=>{v=!0});return v?I_:y}else return ln(g)?g:I_}};return e.processor&&(f.processor=e.processor),r.list&&(f.list=r.list),r.named&&(f.named=r.named),wt(r.plural)&&(f.pluralIndex=r.plural),f}function C_(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:s,onWarn:i,localeFallbacker:o}=e,{__datetimeFormatters:a}=e,[l,c,u,d]=hf(...t),f=st(u.missingWarn)?u.missingWarn:e.missingWarn;st(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,g=rh(e,u),v=o(e,s,g);if(!ae(l)||l==="")return new Intl.DateTimeFormat(g,d).format(c);let w={},y,m=null;const h="datetime format";for(let E=0;E<v.length&&(y=v[E],w=n[y]||{},m=w[l],!Ae(m));E++)sh(e,l,y,f,h);if(!Ae(m)||!ae(y))return r?zc:l;let _=`${y}__${l}`;Bc(d)||(_=`${_}__${JSON.stringify(d)}`);let b=a.get(_);return b||(b=new Intl.DateTimeFormat(y,ut({},m,d)),a.set(_,b)),p?b.formatToParts(c):b.format(c)}const ST=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function hf(...e){const[t,n,r,s]=e,i={};let o={},a;if(ae(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw or(Vn.INVALID_ISO_DATE_ARGUMENT);const c=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();a=new Date(c);try{a.toISOString()}catch{throw or(Vn.INVALID_ISO_DATE_ARGUMENT)}}else if(vx(t)){if(isNaN(t.getTime()))throw or(Vn.INVALID_DATE_ARGUMENT);a=t}else if(wt(t))a=t;else throw or(Vn.INVALID_ARGUMENT);return ae(n)?i.key=n:Ae(n)&&Object.keys(n).forEach(l=>{ST.includes(l)?o[l]=n[l]:i[l]=n[l]}),ae(r)?i.locale=r:Ae(r)&&(o=r),Ae(s)&&(o=s),[i.key||"",a,i,o]}function A_(e,t,n){const r=e;for(const s in n){const i=`${t}__${s}`;r.__datetimeFormatters.has(i)&&r.__datetimeFormatters.delete(i)}}function O_(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:s,onWarn:i,localeFallbacker:o}=e,{__numberFormatters:a}=e,[l,c,u,d]=gf(...t),f=st(u.missingWarn)?u.missingWarn:e.missingWarn;st(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,g=rh(e,u),v=o(e,s,g);if(!ae(l)||l==="")return new Intl.NumberFormat(g,d).format(c);let w={},y,m=null;const h="number format";for(let E=0;E<v.length&&(y=v[E],w=n[y]||{},m=w[l],!Ae(m));E++)sh(e,l,y,f,h);if(!Ae(m)||!ae(y))return r?zc:l;let _=`${y}__${l}`;Bc(d)||(_=`${_}__${JSON.stringify(d)}`);let b=a.get(_);return b||(b=new Intl.NumberFormat(y,ut({},m,d)),a.set(_,b)),p?b.formatToParts(c):b.format(c)}const kT=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function gf(...e){const[t,n,r,s]=e,i={};let o={};if(!wt(t))throw or(Vn.INVALID_ARGUMENT);const a=t;return ae(n)?i.key=n:Ae(n)&&Object.keys(n).forEach(l=>{kT.includes(l)?o[l]=n[l]:i[l]=n[l]}),ae(r)?i.locale=r:Ae(r)&&(o=r),Ae(s)&&(o=s),[i.key||"",a,i,o]}function P_(e,t,n){const r=e;for(const s in n){const i=`${t}__${s}`;r.__numberFormatters.has(i)&&r.__numberFormatters.delete(i)}}qx();/*!
  * vue-i18n v9.13.1
  * (c) 2024 kazuya kawaguchi
  * Released under the MIT License.
  */const UU="9.13.1";function FU(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(eh().__INTLIFY_PROD_DEVTOOLS__=!1)}const IT=gU.__EXTEND_POINT__,Qn=Hc(IT);Qn(),Qn(),Qn(),Qn(),Qn(),Qn(),Qn(),Qn(),Qn();const RT=Vn.__EXTEND_POINT__,$t=Hc(RT),_n={UNEXPECTED_RETURN_TYPE:RT,INVALID_ARGUMENT:$t(),MUST_BE_CALL_SETUP_TOP:$t(),NOT_INSTALLED:$t(),NOT_AVAILABLE_IN_LEGACY_MODE:$t(),REQUIRED_VALUE:$t(),INVALID_VALUE:$t(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:$t(),NOT_INSTALLED_WITH_PROVIDE:$t(),UNEXPECTED_ERROR:$t(),NOT_COMPATIBLE_LEGACY_VUE_I18N:$t(),BRIDGE_SUPPORT_VUE_2_ONLY:$t(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:$t(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:$t(),__EXTEND_POINT__:$t()};function On(e,...t){return jc(e,null,void 0)}const mf=us("__translateVNode"),_f=us("__datetimeParts"),vf=us("__numberParts"),BU=us("__setPluralRules"),HU=us("__injectWithOption"),yf=us("__dispose");function ra(e){if(!ke(e))return e;for(const t in e)if(Zl(e,t))if(!t.includes("."))ke(e[t])&&ra(e[t]);else{const n=t.split("."),r=n.length-1;let s=e,i=!1;for(let o=0;o<r;o++){if(n[o]in s||(s[n[o]]={}),!ke(s[n[o]])){i=!0;break}s=s[n[o]]}i||(s[n[r]]=e[t],delete e[t]),ke(s[n[r]])&&ra(s[n[r]])}return e}function CT(e,t){const{messages:n,__i18n:r,messageResolver:s,flatJson:i}=t,o=Ae(n)?n:ct(r)?{}:{[e]:{}};if(ct(r)&&r.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:c}=a;l?(o[l]=o[l]||{},Os(c,o[l])):Os(c,o)}else ae(a)&&Os(JSON.parse(a),o)}),s==null&&i)for(const a in o)Zl(o,a)&&ra(o[a]);return o}function AT(e){return e.type}function jU(e,t,n){let r=ke(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=CT(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const s=Object.keys(r);s.length&&s.forEach(i=>{e.mergeLocaleMessage(i,r[i])});{if(ke(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(ke(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function L_(e){return Q(Zr,null,e,0)}const D_="__INTLIFY_META__",N_=()=>[],zU=()=>!1;let M_=0;function $_(e){return(t,n,r,s)=>e(n,r,Nt()||void 0,s)}const VU=()=>{const e=Nt();let t=null;return e&&(t=AT(e)[D_])?{[D_]:t}:null};function OT(e={},t){const{__root:n,__injectWithOption:r}=e,s=n===void 0,i=e.flatJson,o=Jl?te:tn,a=!!e.translateExistCompatible;let l=st(e.inheritLocale)?e.inheritLocale:!0;const c=o(n&&l?n.locale.value:ae(e.locale)?e.locale:ec),u=o(n&&l?n.fallbackLocale.value:ae(e.fallbackLocale)||ct(e.fallbackLocale)||Ae(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:c.value),d=o(CT(c.value,e)),f=o(Ae(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),p=o(Ae(e.numberFormats)?e.numberFormats:{[c.value]:{}});let g=n?n.missingWarn:st(e.missingWarn)||Xl(e.missingWarn)?e.missingWarn:!0,v=n?n.fallbackWarn:st(e.fallbackWarn)||Xl(e.fallbackWarn)?e.fallbackWarn:!0,w=n?n.fallbackRoot:st(e.fallbackRoot)?e.fallbackRoot:!0,y=!!e.fallbackFormat,m=Fe(e.missing)?e.missing:null,h=Fe(e.missing)?$_(e.missing):null,_=Fe(e.postTranslation)?e.postTranslation:null,b=n?n.warnHtmlMessage:st(e.warnHtmlMessage)?e.warnHtmlMessage:!0,E=!!e.escapeParameter;const R=n?n.modifiers:Ae(e.modifiers)?e.modifiers:{};let S=e.pluralRules||n&&n.pluralRules,A;A=(()=>{s&&T_(null);const U={version:UU,locale:c.value,fallbackLocale:u.value,messages:d.value,modifiers:R,pluralRules:S,missing:h===null?void 0:h,missingWarn:g,fallbackWarn:v,fallbackFormat:y,unresolving:!0,postTranslation:_===null?void 0:_,warnHtmlMessage:b,escapeParameter:E,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};U.datetimeFormats=f.value,U.numberFormats=p.value,U.__datetimeFormatters=Ae(A)?A.__datetimeFormatters:void 0,U.__numberFormatters=Ae(A)?A.__numberFormatters:void 0;const B=RU(U);return s&&T_(B),B})(),yo(A,c.value,u.value);function L(){return[c.value,u.value,d.value,f.value,p.value]}const N=z({get:()=>c.value,set:U=>{c.value=U,A.locale=c.value}}),x=z({get:()=>u.value,set:U=>{u.value=U,A.fallbackLocale=u.value,yo(A,c.value,U)}}),W=z(()=>d.value),ee=z(()=>f.value),K=z(()=>p.value);function ce(){return Fe(_)?_:null}function oe(U){_=U,A.postTranslation=U}function Xe(){return m}function nt(U){U!==null&&(h=$_(U)),m=U,A.missing=h}const Je=(U,B,ge,_e,We,Rt)=>{L();let zt;try{__INTLIFY_PROD_DEVTOOLS__,s||(A.fallbackContext=n?IU():void 0),zt=U(A)}finally{__INTLIFY_PROD_DEVTOOLS__,s||(A.fallbackContext=void 0)}if(ge!=="translate exists"&&wt(zt)&&zt===zc||ge==="translate exists"&&!zt){const[La,Qs]=B();return n&&w?_e(n):We(La)}else{if(Rt(zt))return zt;throw On(_n.UNEXPECTED_RETURN_TYPE)}};function He(...U){return Je(B=>Reflect.apply(R_,null,[B,...U]),()=>pf(...U),"translate",B=>Reflect.apply(B.t,B,[...U]),B=>B,B=>ae(B))}function _t(...U){const[B,ge,_e]=U;if(_e&&!ke(_e))throw On(_n.INVALID_ARGUMENT);return He(B,ge,ut({resolvedMessage:!0},_e||{}))}function je(...U){return Je(B=>Reflect.apply(C_,null,[B,...U]),()=>hf(...U),"datetime format",B=>Reflect.apply(B.d,B,[...U]),()=>b_,B=>ae(B))}function bt(...U){return Je(B=>Reflect.apply(O_,null,[B,...U]),()=>gf(...U),"number format",B=>Reflect.apply(B.n,B,[...U]),()=>b_,B=>ae(B))}function It(U){return U.map(B=>ae(B)||wt(B)||st(B)?L_(String(B)):B)}const le={normalize:It,interpolate:U=>U,type:"vnode"};function ie(...U){return Je(B=>{let ge;const _e=B;try{_e.processor=le,ge=Reflect.apply(R_,null,[_e,...U])}finally{_e.processor=null}return ge},()=>pf(...U),"translate",B=>B[mf](...U),B=>[L_(B)],B=>ct(B))}function ue(...U){return Je(B=>Reflect.apply(O_,null,[B,...U]),()=>gf(...U),"number format",B=>B[vf](...U),N_,B=>ae(B)||ct(B))}function Re(...U){return Je(B=>Reflect.apply(C_,null,[B,...U]),()=>hf(...U),"datetime format",B=>B[_f](...U),N_,B=>ae(B)||ct(B))}function ze(U){S=U,A.pluralRules=S}function C(U,B){return Je(()=>{if(!U)return!1;const ge=ae(B)?B:c.value,_e=G(ge),We=A.messageResolver(_e,U);return a?We!=null:qi(We)||ln(We)||ae(We)},()=>[U],"translate exists",ge=>Reflect.apply(ge.te,ge,[U,B]),zU,ge=>st(ge))}function P(U){let B=null;const ge=mT(A,u.value,c.value);for(let _e=0;_e<ge.length;_e++){const We=d.value[ge[_e]]||{},Rt=A.messageResolver(We,U);if(Rt!=null){B=Rt;break}}return B}function F(U){const B=P(U);return B??(n?n.tm(U)||{}:{})}function G(U){return d.value[U]||{}}function H(U,B){if(i){const ge={[U]:B};for(const _e in ge)Zl(ge,_e)&&ra(ge[_e]);B=ge[U]}d.value[U]=B,A.messages=d.value}function J(U,B){d.value[U]=d.value[U]||{};const ge={[U]:B};if(i)for(const _e in ge)Zl(ge,_e)&&ra(ge[_e]);B=ge[U],Os(B,d.value[U]),A.messages=d.value}function re(U){return f.value[U]||{}}function T(U,B){f.value[U]=B,A.datetimeFormats=f.value,A_(A,U,B)}function k(U,B){f.value[U]=ut(f.value[U]||{},B),A.datetimeFormats=f.value,A_(A,U,B)}function M(U){return p.value[U]||{}}function j(U,B){p.value[U]=B,A.numberFormats=p.value,P_(A,U,B)}function ne(U,B){p.value[U]=ut(p.value[U]||{},B),A.numberFormats=p.value,P_(A,U,B)}M_++,n&&Jl&&(Se(n.locale,U=>{l&&(c.value=U,A.locale=U,yo(A,c.value,u.value))}),Se(n.fallbackLocale,U=>{l&&(u.value=U,A.fallbackLocale=U,yo(A,c.value,u.value))}));const q={id:M_,locale:N,fallbackLocale:x,get inheritLocale(){return l},set inheritLocale(U){l=U,U&&n&&(c.value=n.locale.value,u.value=n.fallbackLocale.value,yo(A,c.value,u.value))},get availableLocales(){return Object.keys(d.value).sort()},messages:W,get modifiers(){return R},get pluralRules(){return S||{}},get isGlobal(){return s},get missingWarn(){return g},set missingWarn(U){g=U,A.missingWarn=g},get fallbackWarn(){return v},set fallbackWarn(U){v=U,A.fallbackWarn=v},get fallbackRoot(){return w},set fallbackRoot(U){w=U},get fallbackFormat(){return y},set fallbackFormat(U){y=U,A.fallbackFormat=y},get warnHtmlMessage(){return b},set warnHtmlMessage(U){b=U,A.warnHtmlMessage=U},get escapeParameter(){return E},set escapeParameter(U){E=U,A.escapeParameter=U},t:He,getLocaleMessage:G,setLocaleMessage:H,mergeLocaleMessage:J,getPostTranslationHandler:ce,setPostTranslationHandler:oe,getMissingHandler:Xe,setMissingHandler:nt,[BU]:ze};return q.datetimeFormats=ee,q.numberFormats=K,q.rt=_t,q.te=C,q.tm=F,q.d=je,q.n=bt,q.getDateTimeFormat=re,q.setDateTimeFormat=T,q.mergeDateTimeFormat=k,q.getNumberFormat=M,q.setNumberFormat=j,q.mergeNumberFormat=ne,q[HU]=r,q[mf]=ie,q[_f]=Re,q[vf]=ue,q}const ih={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function WU({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,s)=>[...r,...s.type===Ce?s.children:[s]],[]):t.reduce((n,r)=>{const s=e[r];return s&&(n[r]=s()),n},{})}function PT(e){return Ce}const KU=pe({name:"i18n-t",props:ut({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>wt(e)||!isNaN(e)}},ih),setup(e,t){const{slots:n,attrs:r}=t,s=e.i18n||oh({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter(d=>d!=="_"),o={};e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=ae(e.plural)?+e.plural:e.plural);const a=WU(t,i),l=s[mf](e.keypath,a,o),c=ut({},r),u=ae(e.tag)||ke(e.tag)?e.tag:PT();return At(u,c,l)}}}),x_=KU;function GU(e){return ct(e)&&!ae(e[0])}function LT(e,t,n,r){const{slots:s,attrs:i}=t;return()=>{const o={part:!0};let a={};e.locale&&(o.locale=e.locale),ae(e.format)?o.key=e.format:ke(e.format)&&(ae(e.format.key)&&(o.key=e.format.key),a=Object.keys(e.format).reduce((f,p)=>n.includes(p)?ut({},f,{[p]:e.format[p]}):f,{}));const l=r(e.value,o,a);let c=[o.key];ct(l)?c=l.map((f,p)=>{const g=s[f.type],v=g?g({[f.type]:f.value,index:p,parts:l}):[f.value];return GU(v)&&(v[0].key=`${f.type}-${p}`),v}):ae(l)&&(c=[l]);const u=ut({},i),d=ae(e.tag)||ke(e.tag)?e.tag:PT();return At(d,u,c)}}const qU=pe({name:"i18n-n",props:ut({value:{type:Number,required:!0},format:{type:[String,Object]}},ih),setup(e,t){const n=e.i18n||oh({useScope:e.scope,__useComponent:!0});return LT(e,t,kT,(...r)=>n[vf](...r))}}),U_=qU,YU=pe({name:"i18n-d",props:ut({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},ih),setup(e,t){const n=e.i18n||oh({useScope:e.scope,__useComponent:!0});return LT(e,t,ST,(...r)=>n[_f](...r))}}),F_=YU;function JU(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function XU(e){const t=o=>{const{instance:a,modifiers:l,value:c}=o;if(!a||!a.$)throw On(_n.UNEXPECTED_ERROR);const u=JU(e,a.$),d=B_(c);return[Reflect.apply(u.t,u,[...H_(d)]),u]};return{created:(o,a)=>{const[l,c]=t(a);Jl&&e.global===c&&(o.__i18nWatcher=Se(c.locale,()=>{a.instance&&a.instance.$forceUpdate()})),o.__composer=c,o.textContent=l},unmounted:o=>{Jl&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:a})=>{if(o.__composer){const l=o.__composer,c=B_(a);o.textContent=Reflect.apply(l.t,l,[...H_(c)])}},getSSRProps:o=>{const[a]=t(o);return{textContent:a}}}}function B_(e){if(ae(e))return{path:e};if(Ae(e)){if(!("path"in e))throw On(_n.REQUIRED_VALUE,"path");return e}else throw On(_n.INVALID_VALUE)}function H_(e){const{path:t,locale:n,args:r,choice:s,plural:i}=e,o={},a=r||{};return ae(n)&&(o.locale=n),wt(s)&&(o.plural=s),wt(i)&&(o.plural=i),[t,a,o]}function ZU(e,t,...n){const r=Ae(n[0])?n[0]:{},s=!!r.useI18nComponentName;(st(r.globalInstall)?r.globalInstall:!0)&&([s?"i18n":x_.name,"I18nT"].forEach(o=>e.component(o,x_)),[U_.name,"I18nN"].forEach(o=>e.component(o,U_)),[F_.name,"I18nD"].forEach(o=>e.component(o,F_))),e.directive("t",XU(t))}const QU=us("global-vue-i18n");function eF(e={},t){const n=st(e.globalInjection)?e.globalInjection:!0,r=!0,s=new Map,[i,o]=tF(e),a=us("");function l(d){return s.get(d)||null}function c(d,f){s.set(d,f)}function u(d){s.delete(d)}{const d={get mode(){return"composition"},get allowComposition(){return r},async install(f,...p){if(f.__VUE_I18N_SYMBOL__=a,f.provide(f.__VUE_I18N_SYMBOL__,d),Ae(p[0])){const w=p[0];d.__composerExtend=w.__composerExtend,d.__vueI18nExtend=w.__vueI18nExtend}let g=null;n&&(g=cF(f,d.global)),ZU(f,d,...p);const v=f.unmount;f.unmount=()=>{g&&g(),d.dispose(),v()}},get global(){return o},dispose(){i.stop()},__instances:s,__getInstance:l,__setInstance:c,__deleteInstance:u};return d}}function oh(e={}){const t=Nt();if(t==null)throw On(_n.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw On(_n.NOT_INSTALLED);const n=nF(t),r=sF(n),s=AT(t),i=rF(e,s);if(i==="global")return jU(r,e,s),r;if(i==="parent"){let l=iF(n,t,e.__useComponent);return l==null&&(l=r),l}const o=n;let a=o.__getInstance(t);if(a==null){const l=ut({},e);"__i18n"in s&&(l.__i18n=s.__i18n),r&&(l.__root=r),a=OT(l),o.__composerExtend&&(a[yf]=o.__composerExtend(a)),aF(o,t,a),o.__setInstance(t,a)}return a}function tF(e,t,n){const r=eo();{const s=r.run(()=>OT(e));if(s==null)throw On(_n.UNEXPECTED_ERROR);return[r,s]}}function nF(e){{const t=et(e.isCE?QU:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw On(e.isCE?_n.NOT_INSTALLED_WITH_PROVIDE:_n.UNEXPECTED_ERROR);return t}}function rF(e,t){return Bc(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function sF(e){return e.mode==="composition"?e.global:e.global.__composer}function iF(e,t,n=!1){let r=null;const s=t.root;let i=oF(t,n);for(;i!=null;){const o=e;if(e.mode==="composition"&&(r=o.__getInstance(i)),r!=null||s===i)break;i=i.parent}return r}function oF(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function aF(e,t,n){Dt(()=>{},t),to(()=>{const r=n;e.__deleteInstance(t);const s=r[yf];s&&(s(),delete r[yf])},t)}const lF=["locale","fallbackLocale","availableLocales"],j_=["t","rt","d","n","tm","te"];function cF(e,t){const n=Object.create(null);return lF.forEach(s=>{const i=Object.getOwnPropertyDescriptor(t,s);if(!i)throw On(_n.UNEXPECTED_ERROR);const o=xe(i.value)?{get(){return i.value.value},set(a){i.value.value=a}}:{get(){return i.get&&i.get()}};Object.defineProperty(n,s,o)}),e.config.globalProperties.$i18n=n,j_.forEach(s=>{const i=Object.getOwnPropertyDescriptor(t,s);if(!i||!i.value)throw On(_n.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${s}`,i)}),()=>{delete e.config.globalProperties.$i18n,j_.forEach(s=>{delete e.config.globalProperties[`$${s}`]})}}FU();bU(DU);EU(nU);TU(mT);if(__INTLIFY_PROD_DEVTOOLS__){const e=eh();e.__INTLIFY__=!0,dU(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const Fs=[],tc={},uF=[()=>I(()=>import("./D4mqeFaL.js"),[],import.meta.url)],Vc=[],DT="@nuxtjs/i18n",dF=!1,fF=!1,pF="nuxtI18n",hF="i18n_redirected",z_="nuxt-i18n-slp",xo=new Map;async function gF(e,t){const n={messages:{}};for(const r of e){const{default:s}=await r(),i=typeof s=="function"?await t.runWithContext(async()=>await s()):s;Os(i,n)}return n}function NT(e,t){let n=[];if(ct(e))n=e;else if(ke(e)){const r=[...t,"default"];for(const s of r)e[s]&&(n=[...n,...e[s].filter(Boolean)])}else ae(e)&&t.every(r=>r!==e)&&n.push(e);return n}async function mF(e,t,n){const{defaultLocale:r,initialLocale:s,localeCodes:i,fallbackLocale:o,lazy:a}=n;if(a&&o){const c=NT(o,[r,s]);await Promise.all(c.map(u=>V_(u,t,e)))}const l=a?[...new Set().add(r).add(s)]:i;return await Promise.all(l.map(c=>V_(c,t,e))),e}async function _F(e,{key:t,load:n}){let r=null;try{const s=await n().then(i=>i.default||i);Fe(s)?r=await s(e):(r=s,r!=null&&xo&&xo.set(t,r))}catch(s){console.error("Failed locale loading: "+s.message)}return r}async function nc(e,t,n){const r=t[e];if(r==null){console.warn("Could not find messages for locale code: "+e);return}const s={};for(const i of r){let o=null;xo&&xo.has(i.key)&&i.cache?o=xo.get(i.key):o=await _F(e,i),o!=null&&Os(o,s)}n(e,s)}async function V_(e,t,n){await nc(e,t,(s,i)=>{const o=n[s]||{};Os(i,o),n[s]=o})}const vF=typeof window<"u";function yF(e){e=e||[];const t=[];for(const n of e)ae(n)?t.push({code:n}):t.push(n);return t}function wF(e){return e!=null&&"global"in e&&"mode"in e}function bF(e){return e!=null&&!("__composer"in e)&&"locale"in e&&xe(e.locale)}function MT(e){return e!=null&&"__composer"in e}function fs(e){return wF(e)?e.global:e}function Yi(e){const t=fs(e);return bF(t)?t:MT(t)?t.__composer:t}function Wc(e){return O(fs(e).locale)}function EF(e){return O(fs(e).locales)}function TF(e){return O(fs(e).localeCodes)}function $T(e,t){const n=fs(e);xe(n.locale)?n.locale.value=t:n.locale=t}function xT(e){return ae(e)?e:wx(e)?e.toString():"(null)"}function W_(e,t,{defaultLocale:n,strategy:r,routesNameSeparator:s,defaultLocaleRouteNameSuffix:i}){let o=xT(e)+(r==="no_prefix"?"":s+t);return t===n&&r==="prefix_and_default"&&(o+=s+i),o}function K_(e,t){return Fe(e)?e(t):e}function SF(e,t){const n=[];for(const[r,s]of t.entries()){const i=e.find(o=>o.iso.toLowerCase()===s.toLowerCase());if(i){n.push({code:i.code,score:1-r/t.length});break}}for(const[r,s]of t.entries()){const i=s.split("-")[0].toLowerCase(),o=e.find(a=>a.iso.split("-")[0].toLowerCase()===i);if(o){n.push({code:o.code,score:.999-r/t.length});break}}return n}const kF=SF;function IF(e,t){return e.score===t.score?t.code.length-e.code.length:t.score-e.score}const RF=IF;function CF(e,t,{matcher:n=kF,comparer:r=RF}={}){const s=[];for(const o of e){const{code:a}=o,l=o.iso||a;s.push({code:a,iso:l})}const i=n(s,t);return i.length>1&&i.sort(r),i.length?i[0].code:""}function rc(e){return new RegExp(`^/(${e.join("|")})(?:/|$)`,"i")}function AF(e,t){return[e.slice(0,t),e.slice(t)]}function OF(e){const{fullPath:t,query:n,hash:r,name:s,path:i,params:o,meta:a,redirectedFrom:l,matched:c}=e;return{fullPath:t,params:o,query:n,hash:r,name:s,path:i,meta:a,matched:c,redirectedFrom:l}}function PF({router:e},t,n,r){var c,u;if(n!=="prefix")return e.resolve(t);const[s,i]=AF(t.path,1),o=`${s}${r}${i===""?i:`/${i}`}`,a=(u=(c=e.options)==null?void 0:c.routes)==null?void 0:u.find(d=>d.path===o);if(a==null)return t;const l=ut({},t,a);return l.path=o,e.resolve(l)}const LF=new Set(["prefix_and_default","prefix_except_default"]);function DF(e){const{currentLocale:t,defaultLocale:n,strategy:r}=e;return!(t===n&&LF.has(r))&&r!=="no_prefix"}const NF=DF;function Ji(e,t){const{routesNameSeparator:n}=e.runtimeConfig.public.i18n,r=O(t);return r==null||!r.name?void 0:xT(r.name).split(n)[0]}function ah(e,t,n){var s;if(typeof t=="string"&&Yn(t,{acceptRelative:!0}))return t;const r=Kc(e,t,n);return r==null?"":((s=r.redirectedFrom)==null?void 0:s.fullPath)||r.fullPath}function lh(e,t,n){return Kc(e,t,n)??void 0}function MF(e,t,n){return Kc(e,t,n)??void 0}function Kc(e,t,n){const{router:r,i18n:s}=e,i=n||Wc(s),{routesNameSeparator:o,defaultLocale:a,defaultLocaleRouteNameSuffix:l,strategy:c,trailingSlash:u}=e.runtimeConfig.public.i18n,d=YF(e.runtimeConfig);let f;if(ae(t))if(t[0]==="/"){const{pathname:v,search:w,hash:y}=Id(t),m=jw(w);f={path:v,query:m,hash:y}}else f={name:t};else f=t;let p=ut({},f);if((v=>"path"in v&&!!v.path&&!("name"in v))(p)){const v=PF(e,p,c,i),w=Ji(e,v);ae(w)?(p={name:W_(w,i,{defaultLocale:a,strategy:c,routesNameSeparator:o,defaultLocaleRouteNameSuffix:l}),params:v.params,query:v.query,hash:v.hash},p.state=v.state):(d({currentLocale:i,defaultLocale:a,strategy:c})&&(p.path=`/${i}${p.path}`),p.path=u?Fl(p.path,!0):Cc(p.path,!0))}else!p.name&&!("path"in p)&&(p.name=Ji(e,r.currentRoute.value)),p.name=W_(p.name,i,{defaultLocale:a,strategy:c,routesNameSeparator:o,defaultLocaleRouteNameSuffix:l});try{const v=r.resolve(p);return v.name?v:r.resolve(t)}catch(v){if(typeof v=="object"&&"type"in v&&v.type===1)return null}}const $F=e=>e;function xF(e,t){var r;if(e.runtimeConfig.public.i18n.experimental.switchLocalePathLinkSSR)return O(e.metaState.value);const n=t.meta||{};return((r=O(n))==null?void 0:r[pF])||{}}function Xi(e,t,n){const r=n??e.router.currentRoute.value,s=Ji(e,r);if(!s)return"";const i=JF(e.runtimeConfig),o=OF(r),a=xF(e,r)[t],l={...o,name:s,params:{...o.params,...a}},c=ah(e,l,t);return i(c,t)}function UT(e,{addDirAttribute:t=!1,addSeoAttributes:n=!0,identifierAttribute:r="hid"}){const{defaultDirection:s}=kt().public.i18n,i=Yi(e.i18n),o={htmlAttrs:{},link:[],meta:[]};if(O(i.locales)==null||O(i.baseUrl)==null)return o;const a=Wc(e.i18n),l=EF(e.i18n),c=yF(l).find(f=>f.code===a)||{code:a},u=c.iso,d=c.dir||s;return t&&(o.htmlAttrs.dir=d),n&&a&&O(i.locales)&&(u&&(o.htmlAttrs.lang=u),o.link.push(...UF(e,O(l),r),...FF(e,r,n)),o.meta.push(...BF(e,r,n),...HF(c,u,r),...jF(O(l),u,r))),o}function ch(){const e=De(),t=Yi(e.$i18n);return no(O(t.baseUrl),e.$config.app.baseURL)}function UF(e,t,n){const r=ch(),{defaultLocale:s,strategy:i}=kt().public.i18n,o=[];if(i==="no_prefix")return o;const a=new Map;for(const l of t){const c=l.iso;if(!c){console.warn("Locale ISO code is required to generate alternate link");continue}const[u,d]=c.split("-");u&&d&&(l.isCatchallLocale||!a.has(u))&&a.set(u,l),a.set(c,l)}for(const[l,c]of a.entries()){const u=Xi(e,c.code);u&&o.push({[n]:`i18n-alt-${l}`,rel:"alternate",href:wf(u,r),hreflang:l})}if(s){const l=Xi(e,s);l&&o.push({[n]:"i18n-xd",rel:"alternate",href:wf(l,r),hreflang:"x-default"})}return o}function FT(e,t,n){const r=e.router.currentRoute.value,s=lh(e,{...r,path:void 0,name:Ji(e,r)});if(!s)return"";let i=wf(s.path,t);const o=ke(n)&&n.canonicalQueries||[],a=s.query,l=new URLSearchParams;for(const u of o)if(u in a){const d=a[u];ct(d)?d.forEach(f=>l.append(u,f||"")):l.append(u,d||"")}const c=l.toString();return c&&(i=`${i}?${c}`),i}function FF(e,t,n){const r=ch(),s=FT(e,r,n);return s?[{[t]:"i18n-can",rel:"canonical",href:s}]:[]}function BF(e,t,n){const r=ch(),s=FT(e,r,n);return s?[{[t]:"i18n-og-url",property:"og:url",content:s}]:[]}function HF(e,t,n){return!e||!t?[]:[{[n]:"i18n-og",property:"og:locale",content:BT(t)}]}function jF(e,t,n){return e.filter(s=>s.iso&&s.iso!==t).map(s=>({[n]:`i18n-og-alt-${s.iso}`,property:"og:locale:alternate",content:BT(s.iso)}))}function BT(e){return(e||"").replace(/-/g,"_")}function wf(e,t){return e.match(/^https?:\/\//)?e:no(t,e)}function zF(e,t){return Gc(e,"setLocaleCookie",t)}function HT(e,t,n){return Gc(e,"mergeLocaleMessage",t,n)}function VF(e,t,n,r,s){return Gc(e,"onBeforeLanguageSwitch",t,n,r,s)}function WF(e,t,n){return Gc(e,"onLanguageSwitched",t,n)}function uh(e){return{i18n:e??De().$i18n,router:Ht(),runtimeConfig:kt(),metaState:Xo("nuxt-i18n-meta",()=>({}))}}async function G_(e,t,n,r=!1){const{differentDomains:s,skipSettingLocaleOnNavigate:i,lazy:o}=n,a=Sa(n),l=De(),c=Wc(t),u=TF(t);function d(p=c){a===!1||!a.useCookie||i||zF(t,p)}if(!e||!r&&s||c===e)return d(),!1;const f=await VF(t,c,e,r,l);if(f&&u.includes(f)){if(c===f)return d(),!1;e=f}if(o){const p=ZF(t,"fallbackLocale"),g=(v,w)=>HT(t,v,w);if(p){const v=NT(p,[e]);await Promise.all(v.map(w=>nc(w,tc,g)))}await nc(e,tc,g)}return i?!1:(d(e),$T(t,e),await WF(t,c,e),!0)}function q_(e,t,n,r,s,i){const{strategy:o,defaultLocale:a,differentDomains:l}=i,c=Sa(i),u=Fe(r)?r():r,{ssg:d,callType:f,firstAccess:p,localeCookie:g}=s,{locale:v,stat:w,reason:y,from:m}=c?nB(e,n,s,u):tB;if(y==="detect_ignore_on_ssg")return u;if((m==="navigator_or_header"||m==="cookie"||m==="fallback")&&v)return v;let h=v;return h||(l?h=sB(Vc,o,e):o!=="no_prefix"?h=t(e):c||(h=u)),!h&&c&&c.useCookie&&(h=g||""),h||(h=a||""),h}function Y_({route:e,targetLocale:t,routeLocaleGetter:n,calledWithRouting:r=!1}){const s=De(),i=uh(),{strategy:o,differentDomains:a}=i.runtimeConfig.public.i18n;let l="";const{fullPath:c}=e.to;if(!a&&(r||o!=="no_prefix")&&n(e.to)!==t){const u=s.$switchLocalePath(t)||s.$localePath(c,t);ae(u)&&u&&!kd(u,c)&&!u.startsWith("//")&&(l=e.from&&e.from.fullPath===u?"":u)}if((a||fF)&&n(e.to)!==t){const u=Xi(i,t,e.to);ae(u)&&u&&!kd(u,c)&&!u.startsWith("//")&&(l=u)}return l}function KF(e){return ke(e)&&"path"in e&&"statusCode"in e}const GF=()=>Xo(DT+":redirect",()=>"");function J_(e,t){return GC(e,{redirectCode:t})}async function X_(e,{status:t=302,enableNavigate:n=!1}={}){const{nuxtApp:r,i18n:s,locale:i,route:o}=e,{rootRedirect:a,differentDomains:l,skipSettingLocaleOnNavigate:c}=r.$config.public.i18n;let{redirectPath:u}=e;if(o.path==="/"&&a)return ae(a)?u="/"+a:KF(a)&&(u="/"+a.path,t=a.statusCode),u=r.$localePath(u,i),J_(u,t);if(!(c&&(s.__pendingLocale=i,s.__pendingLocalePromise=new Promise(d=>{s.__resolvePendingLocalePromise=d}),!n))){if(l){const d=GF();d.value&&d.value!==u&&(d.value="",window.location.assign(u))}else if(u)return J_(u,t)}}function qF(e,t){ri(e,"$i18n",fs(t)),ri(e,"$getRouteBaseName",qt(Ji)),ri(e,"$localePath",qt(ah)),ri(e,"$localeRoute",qt(lh)),ri(e,"$switchLocalePath",qt(Xi)),ri(e,"$localeHead",qt(UT))}function YF(e=kt()){return t=>NF(t)&&!e.public.i18n.differentDomains}function JF(e=kt()){return(t,n)=>{if(e.public.i18n.differentDomains){const r=VT(n);return r?no(r,t):t}else return $F(t)}}function XF(){return()=>{const e=De(),{baseUrl:t,defaultLocale:n,differentDomains:r}=e.$config.public.i18n;if(Fe(t))return t(e);const s=Fe(n)?n():n;if(r&&s){const i=VT(s);if(i)return i}return t}}function jT(e){return DT+" "+e}function Gc(e,t,...n){const r=fs(e),[s,i]=[r,r[t]];return Reflect.apply(i,s,[...n])}function ZF(e,t){const n=fs(e);return O(n[t])}function ri(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function qt(e,t=uh()){return(...n)=>e(t,...n)}function zT(){let e;return navigator.languages&&(e=CF(Vc,navigator.languages)),e}function QF(){const e=Sa(),t=e&&e.cookieKey||hF,n=new Date,r={expires:new Date(n.setDate(n.getDate()+365)),path:"/",sameSite:e&&e.cookieCrossOrigin?"none":"lax",secure:e&&e.cookieCrossOrigin||e&&e.cookieSecure};return e&&e.cookieDomain&&(r.domain=e.cookieDomain),$b(t,r)}function Pu(e,t,n){if(t===!1||!t.useCookie)return;const r=e.value??void 0;if(r!=null){if(Fs.includes(r))return r;if(n)return e.value=n,n;e.value=void 0}}function eB(e,t,n){n===!1||!n.useCookie||(e.value=t)}const tB={locale:"",stat:!1,reason:"unknown",from:"unknown"};function nB(e,t,n,r=""){const{strategy:s}=kt().public.i18n,{ssg:i,callType:o,firstAccess:a,localeCookie:l}=n;if(!a)return{locale:s==="no_prefix"?r:"",stat:!1,reason:"first_access_only"};const{redirectOn:c,alwaysRedirect:u,useCookie:d,fallbackLocale:f}=Sa(),p=ae(e)?e:e.path;if(s!=="no_prefix"){if(c==="root"){if(p!=="/")return{locale:"",stat:!1,reason:"not_redirect_on_root"}}else if(c==="no prefix"&&!u&&p.match(rc(Fs)))return{locale:"",stat:!1,reason:"not_redirect_on_no_prefix"}}let g="unknown",v,w;d&&(w=v=l,g="cookie"),w||(w=zT(),g="navigator_or_header");const y=w||f;!w&&f&&(g="fallback");const m=r||t;if(y&&(!d||u||!v)){if(s==="no_prefix")return{locale:y,stat:!0,from:g};if(o==="setup"&&y!==m)return{locale:y,stat:!0,from:g};if(u){const h=p==="/",_=c==="all",b=c==="no prefix"&&!p.match(rc(Fs));if(h||_||b)return{locale:y,stat:!0,from:g}}}return i==="ssg_setup"&&y?{locale:y,stat:!0,from:g}:(g==="navigator_or_header"||g==="cookie")&&y?{locale:y,stat:!0,from:g}:{locale:"",stat:!1,reason:"not_found_match"}}function rB(){let e;return e=window.location.host,e}function sB(e,t,n){let r=rB()||"";if(r){let s;const i=e.filter(o=>{if(o&&o.domain){let a=o.domain;return Yn(o.domain)&&(a=o.domain.replace(/(http|https):\/\//,"")),a===r}return!1});if(i.length===1)s=i[0];else if(i.length>1)if(t==="no_prefix")console.warn(jT("Multiple matching domains found! This is not supported for no_prefix strategy in combination with differentDomains!")),s=i[0];else{if(n){const o=ke(n)?n.path:ae(n)?n:"";if(o&&o!==""){const a=o.match(rc(i.map(l=>l.code)));a&&a.length>1&&(s=i.find(l=>l.code===a[1]))}}s||(s=i.find(o=>o.domainDefault))}if(s)return s.code;r=""}return r}function VT(e){var i,o;const t=kt();De();const n=t.public.i18n,r=Vc.find(a=>a.code===e),s=((o=(i=n==null?void 0:n.locales)==null?void 0:i[e])==null?void 0:o.domain)??(r==null?void 0:r.domain);if(s){if(Yn(s,{strict:!0}))return s;let a;return a=new URL(window.location.origin).protocol,a+"//"+s}console.warn(jT("Could not find domain name for locale "+e))}const Sa=(e=kt().public.i18n)=>(e==null?void 0:e.detectBrowserLanguage)===!1?!1:e==null?void 0:e.detectBrowserLanguage;function iB(){return qt(Xi)}function oB(e,{locales:t=[],localeCodes:n=[],baseUrl:r="",hooks:s={},context:i={}}={}){const o=eo(),a=e.install;return e.install=(l,...c)=>{const u=cB(c[0])?ut({},c[0]):{inject:!0};u.inject==null&&(u.inject=!0);const d=u.__composerExtend;if(u.__composerExtend=v=>{const w=Yi(e);v.locales=z(()=>w.locales.value),v.localeCodes=z(()=>w.localeCodes.value),v.baseUrl=z(()=>w.baseUrl.value);let y;return Fe(d)&&(y=Reflect.apply(d,u,[v])),()=>{y&&y()}},e.mode==="legacy"){const v=u.__vueI18nExtend;u.__vueI18nExtend=w=>{Z_(w,s.onExtendVueI18n);let y;return Fe(v)&&(y=Reflect.apply(v,u,[w])),()=>{y&&y()}}}c[0]=u,Reflect.apply(a,e,[l,...c]);const f=Yi(e);o.run(()=>{aB(f,{locales:t,localeCodes:n,baseUrl:r,hooks:s,context:i}),e.mode==="legacy"&&MT(e.global)&&Z_(e.global,s.onExtendVueI18n)});const p=l,g=e.mode==="composition"?p.config.globalProperties.$i18n:null;if(g&&lB(g,f,s.onExtendExportedGlobal),u.inject){const v=uh(e);l.mixin({methods:{getRouteBaseName:qt(Ji,v),resolveRoute:qt(Kc,v),localePath:qt(ah,v),localeRoute:qt(lh,v),localeLocation:qt(MF,v),switchLocalePath:qt(Xi,v),localeHead:qt(UT,v)}})}if(p.unmount){const v=p.unmount;p.unmount=()=>{o.stop(),v()}}},o}function aB(e,t){const{locales:n,localeCodes:r,baseUrl:s,context:i}=t,o=te(n),a=te(r),l=te("");e.locales=z(()=>o.value),e.localeCodes=z(()=>a.value),e.baseUrl=z(()=>l.value),vF?Se(e.locale,()=>{l.value=K_(s,i)},{immediate:!0}):l.value=K_(s,i),t.hooks&&t.hooks.onExtendComposer&&t.hooks.onExtendComposer(e)}function WT(e,t,n){const r=[{locales:{get(){return e.locales.value}},localeCodes:{get(){return e.localeCodes.value}},baseUrl:{get(){return e.baseUrl.value}}}];n&&r.push(n(e));for(const s of r)for(const[i,o]of Object.entries(s))Object.defineProperty(t,i,o)}function lB(e,t,n){WT(t,e,n)}function Z_(e,t){const n=Yi(e);WT(n,e,t)}function cB(e){return ke(e)&&("inject"in e||"__composerExtend"in e||"__vueI18nExtend"in e)}function uB(){const{routesNameSeparator:e,defaultLocaleRouteNameSuffix:t}=kt().public.i18n,n=`(${Fs.join("|")})`,r=`(?:${e}${t})?`,s=new RegExp(`${e}${n}${r}$`,"i"),i=rc(Fs);return a=>{if(ke(a)){if(a.name){const c=(ae(a.name)?a.name:a.name.toString()).match(s);if(c&&c.length>1)return c[1]}else if(a.path){const l=a.path.match(i);if(l&&l.length>1)return l[1]}}else if(ae(a)){const l=a.match(i);if(l&&l.length>1)return l[1]}return""}}const dB=gt({name:"i18n:plugin",parallel:dF,async setup(e){let t,n;const r=ha(),{vueApp:s}=e,i=e,o={...i.$config.public.i18n};o.baseUrl=XF();const a=Sa(),l=([t,n]=Hn(()=>gF(uF,De())),t=await t,n(),t);l.messages=l.messages||{},l.fallbackLocale=l.fallbackLocale??!1;const c=uB(),u=m=>m||l.locale||"en-US",d=QF();let f=q_(r,c,l.locale,u(o.defaultLocale),{ssg:"normal",callType:"setup",firstAccess:!0,localeCookie:Pu(d,a,o.defaultLocale)},o);l.messages=([t,n]=Hn(()=>mF(l.messages,tc,{localeCodes:Fs,initialLocale:f,lazy:o.lazy,defaultLocale:o.defaultLocale,fallbackLocale:l.fallbackLocale})),t=await t,n(),t),f=u(f);const p=eF({...l,locale:f});let g=!0;const v=m=>f!==m&&g;oB(p,{locales:o.configLocales,localeCodes:Fs,baseUrl:o.baseUrl,context:i,hooks:{onExtendComposer(m){m.strategy=o.strategy,m.localeProperties=z(()=>Vc.find(h=>h.code===m.locale.value)||{code:m.locale.value}),m.setLocale=async h=>{const _=v(h);await G_(h,p,o,_)&&_&&(g=!1);const E=await i.runWithContext(()=>Y_({route:{to:r},targetLocale:h,routeLocaleGetter:c}));await i.runWithContext(async()=>await X_({nuxtApp:i,i18n:p,redirectPath:E,locale:h,route:r},{enableNavigate:!0}))},m.loadLocaleMessages=async h=>{await nc(h,tc,(b,E)=>HT(p,b,E))},m.differentDomains=o.differentDomains,m.defaultLocale=o.defaultLocale,m.getBrowserLocale=()=>zT(),m.getLocaleCookie=()=>Pu(d,a,o.defaultLocale),m.setLocaleCookie=h=>eB(d,h,a),m.onBeforeLanguageSwitch=(h,_,b,E)=>e.callHook("i18n:beforeLocaleSwitch",{oldLocale:h,newLocale:_,initialSetup:b,context:E}),m.onLanguageSwitched=(h,_)=>e.callHook("i18n:localeSwitched",{oldLocale:h,newLocale:_}),m.finalizePendingLocaleChange=async()=>{p.__pendingLocale&&($T(p,p.__pendingLocale),p.__resolvePendingLocalePromise&&await p.__resolvePendingLocalePromise(),p.__pendingLocale=void 0)},m.waitForPendingLocaleChange=async()=>{p.__pendingLocale&&p.__pendingLocalePromise&&await p.__pendingLocalePromise}},onExtendExportedGlobal(m){return{strategy:{get(){return m.strategy}},localeProperties:{get(){return m.localeProperties.value}},setLocale:{get(){return async h=>Reflect.apply(m.setLocale,m,[h])}},differentDomains:{get(){return m.differentDomains}},defaultLocale:{get(){return m.defaultLocale}},getBrowserLocale:{get(){return()=>Reflect.apply(m.getBrowserLocale,m,[])}},getLocaleCookie:{get(){return()=>Reflect.apply(m.getLocaleCookie,m,[])}},setLocaleCookie:{get(){return h=>Reflect.apply(m.setLocaleCookie,m,[h])}},onBeforeLanguageSwitch:{get(){return(h,_,b,E)=>Reflect.apply(m.onBeforeLanguageSwitch,m,[h,_,b,E])}},onLanguageSwitched:{get(){return(h,_)=>Reflect.apply(m.onLanguageSwitched,m,[h,_])}},finalizePendingLocaleChange:{get(){return()=>Reflect.apply(m.finalizePendingLocaleChange,m,[])}},waitForPendingLocaleChange:{get(){return()=>Reflect.apply(m.waitForPendingLocaleChange,m,[])}}}},onExtendVueI18n(m){return{strategy:{get(){return m.strategy}},localeProperties:{get(){return m.localeProperties.value}},setLocale:{get(){return async h=>Reflect.apply(m.setLocale,m,[h])}},loadLocaleMessages:{get(){return async h=>Reflect.apply(m.loadLocaleMessages,m,[h])}},differentDomains:{get(){return m.differentDomains}},defaultLocale:{get(){return m.defaultLocale}},getBrowserLocale:{get(){return()=>Reflect.apply(m.getBrowserLocale,m,[])}},getLocaleCookie:{get(){return()=>Reflect.apply(m.getLocaleCookie,m,[])}},setLocaleCookie:{get(){return h=>Reflect.apply(m.setLocaleCookie,m,[h])}},onBeforeLanguageSwitch:{get(){return(h,_,b,E)=>Reflect.apply(m.onBeforeLanguageSwitch,m,[h,_,b,E])}},onLanguageSwitched:{get(){return(h,_)=>Reflect.apply(m.onLanguageSwitched,m,[h,_])}},finalizePendingLocaleChange:{get(){return()=>Reflect.apply(m.finalizePendingLocaleChange,m,[])}},waitForPendingLocaleChange:{get(){return()=>Reflect.apply(m.waitForPendingLocaleChange,m,[])}}}}}});const w={__composerExtend:m=>{const h=Yi(p);return m.strategy=h.strategy,m.localeProperties=z(()=>h.localeProperties.value),m.setLocale=h.setLocale,m.differentDomains=h.differentDomains,m.getBrowserLocale=h.getBrowserLocale,m.getLocaleCookie=h.getLocaleCookie,m.setLocaleCookie=h.setLocaleCookie,m.onBeforeLanguageSwitch=h.onBeforeLanguageSwitch,m.onLanguageSwitched=h.onLanguageSwitched,m.finalizePendingLocaleChange=h.finalizePendingLocaleChange,m.waitForPendingLocaleChange=h.waitForPendingLocaleChange,()=>{}}};if(s.use(p,w),qF(i,p),o.experimental.switchLocalePathLinkSSR===!0){const m=iB(),h=new RegExp([`<!--${z_}-\\[(\\w+)\\]-->`,".+?",`<!--/${z_}-->`].join(""),"g");e.hook("app:rendered",_=>{var b;((b=_.renderResult)==null?void 0:b.html)!=null&&(_.renderResult.html=_.renderResult.html.replaceAll(h,(E,R)=>E.replace(/href="([^"]+)"/,`href="${m(R??"")}"`)))})}let y=0;WC("locale-changing",async(m,h)=>{let _,b;const E=q_(m,c,l.locale,()=>Wc(p)||u(o.defaultLocale),{ssg:"normal",callType:"routing",firstAccess:y===0,localeCookie:Pu(d,a,o.defaultLocale)},o),R=v(E);([_,b]=Hn(()=>G_(E,p,o,R)),_=await _,b(),_)&&R&&(g=!1);const A=([_,b]=Hn(()=>i.runWithContext(()=>Y_({route:{to:m,from:h},targetLocale:E,routeLocaleGetter:o.strategy==="no_prefix"?()=>E:c,calledWithRouting:!0}))),_=await _,b(),_);return y++,[_,b]=Hn(()=>i.runWithContext(async()=>X_({nuxtApp:i,i18n:p,redirectPath:A,locale:E,route:m}))),_=await _,b(),_},{global:!0})}}),fB=gt(e=>{De(),globalThis.$fetch=qw.create({onRequest({options:t,request:n}){n.toString().includes(".json")||(t.headers={...t.headers,"X-Source":"r.pl"})},onResponse({response:t}){}})}),pB=()=>{const e=et("header",te(null));let t=!1;const n=async l=>{var c;if(!t)try{t=!0,await((c=e==null?void 0:e.value)==null?void 0:c.ulubione.toggleBloczek(l))}catch{}finally{t=!1}},r=async l=>{var c;if(!t)try{t=!0,await((c=e==null?void 0:e.value)==null?void 0:c.ulubione.toggleBloczek(l))}catch{}finally{t=!1}},s=z(()=>{var l;return((l=e==null?void 0:e.value)==null?void 0:l.ulubione.schowek)||[]}),i=z(()=>l=>{var d;if(!s.value||!l)return!1;const c=(d=e==null?void 0:e.value)==null?void 0:d.ulubione.findInSchowek(l);return(c==null?void 0:c.kluczSchowka)!==void 0}),o=z(()=>l=>{var d;if(!s.value||!l)return!1;const c=(d=e==null?void 0:e.value)==null?void 0:d.ulubione.findInSchowek(l);return(c==null?void 0:c.kluczSchowka)!==void 0}),a=z(()=>{var l;return((l=e==null?void 0:e.value)==null?void 0:l.auth.userId.value)||null});return{toggleUlubione:n,toggleUlubioneKartaHotelu:r,czyWSchowku:i,czySzczegolyWSchowku:o,userId:a}},hB=404,gB=()=>{const e=ha(),t=()=>{const S=e.meta.routeInfo;return(S==null?void 0:S.Breadcrumbs)||[]},n=()=>{const S=e.meta.routeInfo;return S?{KluczSeo:S.KluczSeo,Seo:S.Seo,Route:S.Route,Klucz:S.Klucz}:{}},r=()=>e.meta.routeInfo,s=()=>{const S=e.meta.routeInfo;return S&&S.Filtr?S.Filtr.OfertySortowanie:void 0},i=()=>360,o=()=>{const S=e.meta.routeInfo;return S&&S.Filtr?S.Filtr.CzyWidgetTerminy:!1},a=()=>{const S=e.meta.routeInfo;return S&&S.Filtr?S.Filtr.AtrybutyMulti:null},l=()=>{const S=e.meta.routeInfo;return S&&S.Filtr?S.Filtr.AtrybutyMulti.Promocja:null},c=()=>{if(e.meta.status===hB)throw ro({name:"RouteNotFoundError",status:e.meta.status,message:`Cannot find route "${e.path}"`})},u=()=>{var A;return((A=e.meta.routeInfo)==null?void 0:A.Opis)||null},d=()=>{var A;return((A=e.meta.routeInfo)==null?void 0:A.PominParametry)||!1},f=z(()=>t()),p=z(()=>n()),g=z(()=>r()),v=z(()=>s()),w=z(()=>i()),y=z(()=>o()),m=z(()=>a()),h=z(()=>l()),_=z(()=>{var S;return(S=e.meta.routeInfo)==null?void 0:S.Tytul}),b=z(()=>u()),E=z(()=>d()),R=z(()=>{const S=e.meta.routeInfo;return S.Filtr&&S.Filtr.PowrotNaInneLotnisko?S.Filtr.PowrotNaInneLotnisko:!1});return Se(()=>e.meta.status,()=>{c()}),c(),{breadcrumbs:f,powrotNaInneLotnisko:R,seoData:p,routeInfo:g,tytul:_,opis:b,ofertySortowanie:v,zakresWczytywania:w,czyWidgetTerminy:y,arybutyMulti:m,arybutyMultiPromocje:h,czyPominacParametry:E}};function ps(e){return Vs()?(Ps(e),!0):!1}function Lu(){const e=new Set,t=s=>{e.delete(s)};return{on:s=>{e.add(s);const i=()=>t(s);return ps(i),{off:i}},off:t,trigger:(...s)=>Promise.all(Array.from(e).map(i=>i(...s)))}}function KT(e){let t=0,n,r;const s=()=>{t-=1,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return(...i)=>(t+=1,n||(r=eo(!0),n=r.run(()=>e(...i))),ps(s),n)}function qe(e){return typeof e=="function"?e():O(e)}const cn=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const mB=e=>e!=null,_B=Object.prototype.toString,vB=e=>_B.call(e)==="[object Object]",Rn=()=>{};function GT(e,t){function n(...r){return new Promise((s,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(s).catch(i)})}return n}function yB(e,t={}){let n,r,s=Rn;const i=a=>{clearTimeout(a),s(),s=Rn};return a=>{const l=qe(e),c=qe(t.maxWait);return n&&i(n),l<=0||c!==void 0&&c<=0?(r&&(i(r),r=null),Promise.resolve(a())):new Promise((u,d)=>{s=t.rejectOnCancel?d:u,c&&!r&&(r=setTimeout(()=>{n&&i(n),r=null,u(a())},c)),n=setTimeout(()=>{r&&i(r),r=null,u(a())},l)})}}function wB(...e){let t=0,n,r=!0,s=Rn,i,o,a,l,c;!xe(e[0])&&typeof e[0]=="object"?{delay:o,trailing:a=!0,leading:l=!0,rejectOnCancel:c=!1}=e[0]:[o,a=!0,l=!0,c=!1]=e;const u=()=>{n&&(clearTimeout(n),n=void 0,s(),s=Rn)};return f=>{const p=qe(o),g=Date.now()-t,v=()=>i=f();return u(),p<=0?(t=Date.now(),v()):(g>p&&(l||!r)?(t=Date.now(),v()):a&&(i=new Promise((w,y)=>{s=c?y:w,n=setTimeout(()=>{t=Date.now(),r=!0,w(v()),u()},Math.max(0,p-g))})),!l&&!n&&(n=setTimeout(()=>r=!0,p)),r=!1,i)}}function Q_(e,t=!1,n="Timeout"){return new Promise((r,s)=>{setTimeout(t?()=>s(n):r,e)})}function bB(e,...t){return t.some(n=>n in e)}function EB(e,t){var n;if(typeof e=="number")return e+t;const r=((n=e.match(/^-?\d+\.?\d*/))==null?void 0:n[0])||"",s=e.slice(r.length),i=Number.parseFloat(r)+t;return Number.isNaN(i)?e:i+s}function TB(e){return Nt()}function Du(...e){if(e.length!==1)return da(...e);const t=e[0];return typeof t=="function"?Ni(xy(()=>({get:t,set:Rn}))):te(t)}function SB(e,t=200,n={}){return GT(yB(t,n),e)}function kB(e,t=200,n=!1,r=!0,s=!1){return GT(wB(t,n,r,s),e)}function dh(e,t=!0,n){TB()?Dt(e,n):t?e():nn(e)}function bf(e,t=!1){function n(d,{flush:f="sync",deep:p=!1,timeout:g,throwOnTimeout:v}={}){let w=null;const m=[new Promise(h=>{w=Se(e,_=>{d(_)!==t&&(w==null||w(),h(_))},{flush:f,deep:p,immediate:!0})})];return g!=null&&m.push(Q_(g,v).then(()=>qe(e)).finally(()=>w==null?void 0:w())),Promise.race(m)}function r(d,f){if(!xe(d))return n(_=>_===d,f);const{flush:p="sync",deep:g=!1,timeout:v,throwOnTimeout:w}=f??{};let y=null;const h=[new Promise(_=>{y=Se([e,d],([b,E])=>{t!==(b===E)&&(y==null||y(),_(b))},{flush:p,deep:g,immediate:!0})})];return v!=null&&h.push(Q_(v,w).then(()=>qe(e)).finally(()=>(y==null||y(),qe(e)))),Promise.race(h)}function s(d){return n(f=>!!f,d)}function i(d){return r(null,d)}function o(d){return r(void 0,d)}function a(d){return n(Number.isNaN,d)}function l(d,f){return n(p=>{const g=Array.from(p);return g.includes(d)||g.includes(qe(d))},f)}function c(d){return u(1,d)}function u(d=1,f){let p=-1;return n(()=>(p+=1,p>=d),f)}return Array.isArray(qe(e))?{toMatch:n,toContains:l,changed:c,changedTimes:u,get not(){return bf(e,!t)}}:{toMatch:n,toBe:r,toBeTruthy:s,toBeNull:i,toBeNaN:a,toBeUndefined:o,changed:c,changedTimes:u,get not(){return bf(e,!t)}}}function IB(e){return bf(e)}function RB(e,t,n={}){const{immediate:r=!0}=n,s=te(!1);let i=null;function o(){i&&(clearTimeout(i),i=null)}function a(){s.value=!1,o()}function l(...c){o(),s.value=!0,i=setTimeout(()=>{s.value=!1,i=null,e(...c)},qe(t))}return r&&(s.value=!0,cn&&l()),ps(a),{isPending:Ni(s),start:l,stop:a}}/*!
 * cookie
 * Copyright(c) 2012-2014 Roman Shtylman
 * Copyright(c) 2015 Douglas Christopher Wilson
 * MIT Licensed
 */var qT=AB,ev=OB,CB=Object.prototype.toString,il=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function AB(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");for(var n={},r=t||{},s=r.decode||PB,i=0;i<e.length;){var o=e.indexOf("=",i);if(o===-1)break;var a=e.indexOf(";",i);if(a===-1)a=e.length;else if(a<o){i=e.lastIndexOf(";",o-1)+1;continue}var l=e.slice(i,o).trim();if(n[l]===void 0){var c=e.slice(o+1,a).trim();c.charCodeAt(0)===34&&(c=c.slice(1,-1)),n[l]=NB(c,s)}i=a+1}return n}function OB(e,t,n){var r=n||{},s=r.encode||LB;if(typeof s!="function")throw new TypeError("option encode is invalid");if(!il.test(e))throw new TypeError("argument name is invalid");var i=s(t);if(i&&!il.test(i))throw new TypeError("argument val is invalid");var o=e+"="+i;if(r.maxAge!=null){var a=r.maxAge-0;if(isNaN(a)||!isFinite(a))throw new TypeError("option maxAge is invalid");o+="; Max-Age="+Math.floor(a)}if(r.domain){if(!il.test(r.domain))throw new TypeError("option domain is invalid");o+="; Domain="+r.domain}if(r.path){if(!il.test(r.path))throw new TypeError("option path is invalid");o+="; Path="+r.path}if(r.expires){var l=r.expires;if(!DB(l)||isNaN(l.valueOf()))throw new TypeError("option expires is invalid");o+="; Expires="+l.toUTCString()}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.partitioned&&(o+="; Partitioned"),r.priority){var c=typeof r.priority=="string"?r.priority.toLowerCase():r.priority;switch(c){case"low":o+="; Priority=Low";break;case"medium":o+="; Priority=Medium";break;case"high":o+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(r.sameSite){var u=typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite;switch(u){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return o}function PB(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function LB(e){return encodeURIComponent(e)}function DB(e){return CB.call(e)==="[object Date]"||e instanceof Date}function NB(e,t){try{return t(e)}catch{return e}}function MB(){const e=typeof global>"u"?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return typeof e=="boolean"?e:typeof document=="object"&&typeof document.cookie=="string"}function $B(e){return typeof e=="string"?qT(e):typeof e=="object"&&e!==null?e:{}}function Nu(e,t={}){const n=xB(e);if(!t.doNotParse)try{return JSON.parse(n)}catch{}return e}function xB(e){return e&&e[0]==="j"&&e[1]===":"?e.substr(2):e}class UB{constructor(t,n={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const s=this.cookies;this.cookies=qT(document.cookie),this._checkChanges(s)};const r=typeof document>"u"?"":document.cookie;this.cookies=$B(t||r),this.defaultSetOptions=n,this.HAS_DOCUMENT_COOKIE=MB()}_emitChange(t){for(let n=0;n<this.changeListeners.length;++n)this.changeListeners[n](t)}_checkChanges(t){new Set(Object.keys(t).concat(Object.keys(this.cookies))).forEach(r=>{t[r]!==this.cookies[r]&&this._emitChange({name:r,value:Nu(this.cookies[r])})})}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(t,n={}){return n.doNotUpdate||this.update(),Nu(this.cookies[t],n)}getAll(t={}){t.doNotUpdate||this.update();const n={};for(let r in this.cookies)n[r]=Nu(this.cookies[r],t);return n}set(t,n,r){r?r=Object.assign(Object.assign({},this.defaultSetOptions),r):r=this.defaultSetOptions;const s=typeof n=="string"?n:JSON.stringify(n);this.cookies=Object.assign(Object.assign({},this.cookies),{[t]:s}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=ev(t,s,r)),this._emitChange({name:t,value:n,options:r})}remove(t,n){const r=n=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),n),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=ev(t,"",r)),this._emitChange({name:t,value:void 0,options:n})}addChangeListener(t){this.changeListeners.push(t),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===1&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(t){const n=this.changeListeners.indexOf(t);n>=0&&this.changeListeners.splice(n,1),this.HAS_DOCUMENT_COOKIE&&this.changeListeners.length===0&&(typeof window=="object"&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}function ka(e,{doNotParse:t=!1,autoUpdateDependencies:n=!1}={},r=new UB){const s=n?[...e||[]]:e;let i=r.getAll({doNotParse:!0});const o=te(0),a=()=>{const l=r.getAll({doNotParse:!0});FB(s||null,l,i)&&o.value++,i=l};return r.addChangeListener(a),ps(()=>{r.removeChangeListener(a)}),{get:(...l)=>(n&&s&&!s.includes(l[0])&&s.push(l[0]),o.value,r.get(l[0],{doNotParse:t,...l[1]})),getAll:(...l)=>(o.value,r.getAll({doNotParse:t,...l[0]})),set:(...l)=>r.set(...l),remove:(...l)=>r.remove(...l),addChangeListener:(...l)=>r.addChangeListener(...l),removeChangeListener:(...l)=>r.removeChangeListener(...l)}}function FB(e,t,n){if(!e)return!0;for(const r of e)if(t[r]!==n[r])return!0;return!1}function Sn(e){var t;const n=qe(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Jn=cn?window:void 0;function Ef(...e){let t,n,r,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,s]=e,t=Jn):[t,n,r,s]=e,!t)return Rn;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],o=()=>{i.forEach(u=>u()),i.length=0},a=(u,d,f,p)=>(u.addEventListener(d,f,p),()=>u.removeEventListener(d,f,p)),l=Se(()=>[Sn(t),qe(s)],([u,d])=>{if(o(),!u)return;const f=vB(d)?{...d}:d;i.push(...n.flatMap(p=>r.map(g=>a(u,p,g,f))))},{immediate:!0,flush:"post"}),c=()=>{l(),o()};return ps(c),c}function BB(){const e=te(!1),t=Nt();return t&&Dt(()=>{e.value=!0},t),e}function fh(e){const t=BB();return z(()=>(t.value,!!e()))}function ui(e,t={}){const{window:n=Jn}=t,r=fh(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let s;const i=te(!1),o=c=>{i.value=c.matches},a=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",o):s.removeListener(o))},l=mw(()=>{r.value&&(a(),s=n.matchMedia(qe(e)),"addEventListener"in s?s.addEventListener("change",o):s.addListener(o),i.value=s.matches)});return ps(()=>{l(),a(),s=void 0}),i}function HB(e,t={}){function n(u,d){let f=qe(e[qe(u)]);return d!=null&&(f=EB(f,d)),typeof f=="number"&&(f=`${f}px`),f}const{window:r=Jn,strategy:s="min-width"}=t;function i(u){return r?r.matchMedia(u).matches:!1}const o=u=>ui(()=>`(min-width: ${n(u)})`,t),a=u=>ui(()=>`(max-width: ${n(u)})`,t),l=Object.keys(e).reduce((u,d)=>(Object.defineProperty(u,d,{get:()=>s==="min-width"?o(d):a(d),enumerable:!0,configurable:!0}),u),{});function c(){const u=Object.keys(e).map(d=>[d,o(d)]);return z(()=>u.filter(([,d])=>d.value).map(([d])=>d))}return Object.assign(l,{greaterOrEqual:o,smallerOrEqual:a,greater(u){return ui(()=>`(min-width: ${n(u,.1)})`,t)},smaller(u){return ui(()=>`(max-width: ${n(u,-.1)})`,t)},between(u,d){return ui(()=>`(min-width: ${n(u)}) and (max-width: ${n(d,-.1)})`,t)},isGreater(u){return i(`(min-width: ${n(u,.1)})`)},isGreaterOrEqual(u){return i(`(min-width: ${n(u)})`)},isSmaller(u){return i(`(max-width: ${n(u,-.1)})`)},isSmallerOrEqual(u){return i(`(max-width: ${n(u)})`)},isInBetween(u,d){return i(`(min-width: ${n(u)}) and (max-width: ${n(d,-.1)})`)},current:c,active(){const u=c();return z(()=>u.value.length===0?"":u.value.at(-1))}})}function jB(e,t,n={}){const{window:r=Jn,...s}=n;let i;const o=fh(()=>r&&"ResizeObserver"in r),a=()=>{i&&(i.disconnect(),i=void 0)},l=z(()=>Array.isArray(e)?e.map(d=>Sn(d)):[Sn(e)]),c=Se(l,d=>{if(a(),o.value&&r){i=new ResizeObserver(t);for(const f of d)f&&i.observe(f,s)}},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return ps(u),{isSupported:o,stop:u}}function tv(e,t={width:0,height:0},n={}){const{window:r=Jn,box:s="content-box"}=n,i=z(()=>{var d,f;return(f=(d=Sn(e))==null?void 0:d.namespaceURI)==null?void 0:f.includes("svg")}),o=te(t.width),a=te(t.height),{stop:l}=jB(e,([d])=>{const f=s==="border-box"?d.borderBoxSize:s==="content-box"?d.contentBoxSize:d.devicePixelContentBoxSize;if(r&&i.value){const p=Sn(e);if(p){const g=p.getBoundingClientRect();o.value=g.width,a.value=g.height}}else if(f){const p=Array.isArray(f)?f:[f];o.value=p.reduce((g,{inlineSize:v})=>g+v,0),a.value=p.reduce((g,{blockSize:v})=>g+v,0)}else o.value=d.contentRect.width,a.value=d.contentRect.height},n);dh(()=>{const d=Sn(e);d&&(o.value="offsetWidth"in d?d.offsetWidth:t.width,a.value="offsetHeight"in d?d.offsetHeight:t.height)});const c=Se(()=>Sn(e),d=>{o.value=d?t.width:0,a.value=d?t.height:0});function u(){l(),c()}return{width:o,height:a,stop:u}}function zB(e,t,n={}){const{root:r,rootMargin:s="0px",threshold:i=.1,window:o=Jn,immediate:a=!0}=n,l=fh(()=>o&&"IntersectionObserver"in o),c=z(()=>{const g=qe(e);return(Array.isArray(g)?g:[g]).map(Sn).filter(mB)});let u=Rn;const d=te(a),f=l.value?Se(()=>[c.value,Sn(r),d.value],([g,v])=>{if(u(),!d.value||!g.length)return;const w=new IntersectionObserver(t,{root:Sn(v),rootMargin:s,threshold:i});g.forEach(y=>y&&w.observe(y)),u=()=>{w.disconnect(),u=Rn}},{immediate:a,flush:"post"}):Rn,p=()=>{u(),f(),d.value=!1};return ps(p),{isSupported:l,isActive:d,pause(){u(),d.value=!1},resume(){d.value=!0},stop:p}}function VB(e,t={}){const{window:n=Jn,scrollTarget:r,threshold:s=0}=t,i=te(!1);return zB(e,o=>{let a=i.value,l=0;for(const c of o)c.time>=l&&(l=c.time,a=c.isIntersecting);i.value=a},{root:r,window:n,threshold:s}),i}const WB={json:"application/json",text:"text/plain"};function sc(e){return e&&bB(e,"immediate","refetch","initialData","timeout","beforeFetch","afterFetch","onFetchError","fetch","updateDataOnError")}const KB=/^(?:[a-z][a-z\d+\-.]*:)?\/\//i;function GB(e){return KB.test(e)}function Uo(e){return typeof Headers<"u"&&e instanceof Headers?Object.fromEntries(e.entries()):e}function si(e,...t){return e==="overwrite"?async n=>{const r=t[t.length-1];return r?{...n,...await r(n)}:n}:async n=>{for(const r of t)r&&(n={...n,...await r(n)});return n}}function YT(e={}){const t=e.combination||"chain",n=e.options||{},r=e.fetchOptions||{};function s(i,...o){const a=z(()=>{const u=qe(e.baseUrl),d=qe(i);return u&&!GB(d)?YB(u,d):d});let l=n,c=r;return o.length>0&&(sc(o[0])?l={...l,...o[0],beforeFetch:si(t,n.beforeFetch,o[0].beforeFetch),afterFetch:si(t,n.afterFetch,o[0].afterFetch),onFetchError:si(t,n.onFetchError,o[0].onFetchError)}:c={...c,...o[0],headers:{...Uo(c.headers)||{},...Uo(o[0].headers)||{}}}),o.length>1&&sc(o[1])&&(l={...l,...o[1],beforeFetch:si(t,n.beforeFetch,o[1].beforeFetch),afterFetch:si(t,n.afterFetch,o[1].afterFetch),onFetchError:si(t,n.onFetchError,o[1].onFetchError)}),qB(a,c,l)}return s}function qB(e,...t){var n;const r=typeof AbortController=="function";let s={},i={immediate:!0,refetch:!1,timeout:0,updateDataOnError:!1};const o={method:"GET",type:"text",payload:void 0};t.length>0&&(sc(t[0])?i={...i,...t[0]}:s=t[0]),t.length>1&&sc(t[1])&&(i={...i,...t[1]});const{fetch:a=(n=Jn)==null?void 0:n.fetch,initialData:l,timeout:c}=i,u=Lu(),d=Lu(),f=Lu(),p=te(!1),g=te(!1),v=te(!1),w=te(null),y=tn(null),m=tn(null),h=tn(l||null),_=z(()=>r&&g.value);let b,E;const R=()=>{r&&(b==null||b.abort(),b=new AbortController,b.signal.onabort=()=>v.value=!0,s={...s,signal:b.signal})},S=K=>{g.value=K,p.value=!K};c&&(E=RB(R,c,{immediate:!1}));let A=0;const D=async(K=!1)=>{var ce,oe;R(),S(!0),m.value=null,w.value=null,v.value=!1,A+=1;const Xe=A,nt={method:o.method,headers:{}};if(o.payload){const je=Uo(nt.headers),bt=qe(o.payload);!o.payloadType&&bt&&Object.getPrototypeOf(bt)===Object.prototype&&!(bt instanceof FormData)&&(o.payloadType="json"),o.payloadType&&(je["Content-Type"]=(ce=WB[o.payloadType])!=null?ce:o.payloadType),nt.body=o.payloadType==="json"?JSON.stringify(bt):bt}let Je=!1;const He={url:qe(e),options:{...nt,...s},cancel:()=>{Je=!0}};if(i.beforeFetch&&Object.assign(He,await i.beforeFetch(He)),Je||!a)return S(!1),Promise.resolve(null);let _t=null;return E&&E.start(),a(He.url,{...nt,...He.options,headers:{...Uo(nt.headers),...Uo((oe=He.options)==null?void 0:oe.headers)}}).then(async je=>{if(y.value=je,w.value=je.status,_t=await je.clone()[o.type](),!je.ok)throw h.value=l||null,new Error(je.statusText);return i.afterFetch&&({data:_t}=await i.afterFetch({data:_t,response:je})),h.value=_t,u.trigger(je),je}).catch(async je=>{let bt=je.message||je.name;if(i.onFetchError&&({error:bt,data:_t}=await i.onFetchError({data:_t,error:je,response:y.value})),m.value=bt,i.updateDataOnError&&(h.value=_t),d.trigger(je),K)throw je;return null}).finally(()=>{Xe===A&&S(!1),E&&E.stop(),f.trigger(null)})},L=Du(i.refetch);Se([L,Du(e)],([K])=>K&&D(),{deep:!0});const N={isFinished:Ni(p),isFetching:Ni(g),statusCode:w,response:y,error:m,data:h,canAbort:_,aborted:v,abort:R,execute:D,onFetchResponse:u.on,onFetchError:d.on,onFetchFinally:f.on,get:x("GET"),put:x("PUT"),post:x("POST"),delete:x("DELETE"),patch:x("PATCH"),head:x("HEAD"),options:x("OPTIONS"),json:ee("json"),text:ee("text"),blob:ee("blob"),arrayBuffer:ee("arrayBuffer"),formData:ee("formData")};function x(K){return(ce,oe)=>{if(!g.value)return o.method=K,o.payload=ce,o.payloadType=oe,xe(o.payload)&&Se([L,Du(o.payload)],([Xe])=>Xe&&D(),{deep:!0}),{...N,then(Xe,nt){return W().then(Xe,nt)}}}}function W(){return new Promise((K,ce)=>{IB(p).toBe(!0).then(()=>K(N)).catch(oe=>ce(oe))})}function ee(K){return()=>{if(!g.value)return o.type=K,{...N,then(ce,oe){return W().then(ce,oe)}}}}return i.immediate&&Promise.resolve().then(()=>D()),{...N,then(K,ce){return W().then(K,ce)}}}function YB(e,t){return!e.endsWith("/")&&!t.startsWith("/")?`${e}/${t}`:`${e}${t}`}const nv=1;function JB(e,t={}){const{throttle:n=0,idle:r=200,onStop:s=Rn,onScroll:i=Rn,offset:o={left:0,right:0,top:0,bottom:0},eventListenerOptions:a={capture:!1,passive:!0},behavior:l="auto",window:c=Jn,onError:u=R=>{console.error(R)}}=t,d=te(0),f=te(0),p=z({get(){return d.value},set(R){v(R,void 0)}}),g=z({get(){return f.value},set(R){v(void 0,R)}});function v(R,S){var A,D,L,N;if(!c)return;const x=qe(e);if(!x)return;(L=x instanceof Document?c.document.body:x)==null||L.scrollTo({top:(A=qe(S))!=null?A:g.value,left:(D=qe(R))!=null?D:p.value,behavior:qe(l)});const W=((N=x==null?void 0:x.document)==null?void 0:N.documentElement)||(x==null?void 0:x.documentElement)||x;p!=null&&(d.value=W.scrollLeft),g!=null&&(f.value=W.scrollTop)}const w=te(!1),y=gn({left:!0,right:!1,top:!0,bottom:!1}),m=gn({left:!1,right:!1,top:!1,bottom:!1}),h=R=>{w.value&&(w.value=!1,m.left=!1,m.right=!1,m.top=!1,m.bottom=!1,s(R))},_=SB(h,n+r),b=R=>{var S;if(!c)return;const A=((S=R==null?void 0:R.document)==null?void 0:S.documentElement)||(R==null?void 0:R.documentElement)||Sn(R),{display:D,flexDirection:L}=getComputedStyle(A),N=A.scrollLeft;m.left=N<d.value,m.right=N>d.value;const x=Math.abs(N)<=(o.left||0),W=Math.abs(N)+A.clientWidth>=A.scrollWidth-(o.right||0)-nv;D==="flex"&&L==="row-reverse"?(y.left=W,y.right=x):(y.left=x,y.right=W),d.value=N;let ee=A.scrollTop;R===c.document&&!ee&&(ee=c.document.body.scrollTop),m.top=ee<f.value,m.bottom=ee>f.value;const K=Math.abs(ee)<=(o.top||0),ce=Math.abs(ee)+A.clientHeight>=A.scrollHeight-(o.bottom||0)-nv;D==="flex"&&L==="column-reverse"?(y.top=ce,y.bottom=K):(y.top=K,y.bottom=ce),f.value=ee},E=R=>{var S;if(!c)return;const A=(S=R.target.documentElement)!=null?S:R.target;b(A),w.value=!0,_(R),i(R)};return Ef(e,"scroll",n?kB(E,n,!0,!1):E,a),dh(()=>{try{const R=qe(e);if(!R)return;b(R)}catch(R){u(R)}}),Ef(e,"scrollend",h,a),{x:p,y:g,isScrolling:w,arrivedState:y,directions:m,measure(){const R=qe(e);c&&R&&b(R)}}}function XB(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function $8(e,t,n={}){var r;const{direction:s="bottom",interval:i=100,canLoadMore:o=()=>!0}=n,a=gn(JB(e,{...n,offset:{[s]:(r=n.distance)!=null?r:0,...n.offset}})),l=te(),c=z(()=>!!l.value),u=z(()=>XB(qe(e))),d=VB(u);function f(){if(a.measure(),!u.value||!d.value||!o(u.value))return;const{scrollHeight:p,clientHeight:g,scrollWidth:v,clientWidth:w}=u.value,y=s==="bottom"||s==="top"?p<=g:v<=w;(a.arrivedState[s]||y)&&(l.value||(l.value=Promise.all([t(a),new Promise(m=>setTimeout(m,i))]).finally(()=>{l.value=null,nn(()=>f())})))}return Se(()=>[a.arrivedState[s],d.value],f,{immediate:!0}),{isLoading:c}}function ZB(e={}){const{window:t=Jn,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:i=!0}=e,o=te(n),a=te(r),l=()=>{t&&(i?(o.value=t.innerWidth,a.value=t.innerHeight):(o.value=t.document.documentElement.clientWidth,a.value=t.document.documentElement.clientHeight))};if(l(),dh(l),Ef("resize",l,{passive:!0}),s){const c=ui("(orientation: portrait)");Se(c,()=>l())}return{width:o,height:a}}const QB=async()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{if(e==="y")return["8","9","a","b"][Math.floor(Math.random()*4)];const t=new Uint8Array(1);return window.crypto.getRandomValues(t),(t[0]%16).toString(16)}),eH=async(...e)=>{const t=await fetch(...e);if(!t.ok)throw new Error(`Load request (${e[0]}) failed`);const n=t.headers.get("content-type");if(n&&n.indexOf("application/json")!==-1){const r=await t.json();if(!r)throw new Error(`Load request (${e[0]}) body parse failed`);return r}else return{}},tH=KT(()=>HB(gi)),nH=KT(()=>{const{width:e,height:t}=ZB({initialWidth:0,initialHeight:0});return{width:e,height:t,greater:o=>e.value>gi[o],greaterOrEqual:o=>e.value>=gi[o],smaller:o=>e.value<gi[o],smallerOrEqual:o=>e.value<=gi[o]}}),Tf=(e=Us.DESKTOP)=>{const{greaterOrEqual:t}=tH();return{isMinWidth:t(e)}};te(new Map);const ws=YT({options:{async beforeFetch({options:e,url:t}){if(t.includes(".json"))return{options:e};const n={...e==null?void 0:e.headers,"X-Source":"r.pl"};return e={...e,headers:n},{options:e}}}});var Ut={},qc={},Yc={};Object.defineProperty(Yc,"__esModule",{value:!0});Yc.getToken=void 0;const rH=async e=>{const t=e.userId+e.key,n=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",n);return await Array.from(new Uint8Array(r)).map(o=>o.toString(16).padStart(2,"0")).join("")};Yc.getToken=rH;Object.defineProperty(qc,"__esModule",{value:!0});qc.sendStats=void 0;const sH=Yc,iH=async(e,t)=>{if(!t.userId)return;const n=await(0,sH.getToken)(t);await fetch(t.statsUrl,{headers:{Authorization:"Bearer "+n},method:"POST",body:JSON.stringify(e)})};qc.sendStats=iH;var JT={},XT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EBigQueryActionType=void 0,function(t){t.SEARCH_PARAM_SELECTED="SearchParamSelected",t.SEARCH_PARAM_REMOVED="SearchParamRemoved",t.DATE_SELECTED="DateSelected",t.KONFIGURACJA_SELECTED="KonfiguracjaSelected",t.ELEMENT_CLICKED="ElementClicked",t.DEEPLINK="Deeplink",t.PUSH_NOTIFICATION="PushNotification",t.USER_INPUT="UserInput"}(e.EBigQueryActionType||(e.EBigQueryActionType={}))})(XT);var ZT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ESearchParamSelectedGorneFiltryKlucz=void 0,function(t){t.AUTOCOMPLETE="Autocomplete",t.MIASTA_WYJAZDU="MiastaWyjazdu",t.LOKALIZACJE="Lokalizacje",t.TYP_TRANSPORTU="TypTransportu"}(e.ESearchParamSelectedGorneFiltryKlucz||(e.ESearchParamSelectedGorneFiltryKlucz={}))})(ZT);var QT={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EBigQueryElementType=void 0,function(t){t[t.BUTTON=1]="BUTTON",t[t.BANER=2]="BANER",t[t.ZOBACZ_WSZYSTKIE=3]="ZOBACZ_WSZYSTKIE",t[t.BLOCZEK=4]="BLOCZEK",t[t.KIERUNEK=5]="KIERUNEK",t[t.MENU_HEADER=6]="MENU_HEADER",t[t.MENU_FOOTER=7]="MENU_FOOTER",t[t.PIN_ON_MAP=8]="PIN_ON_MAP",t[t.BLOCZEK_MODAL_TOOLTIP=9]="BLOCZEK_MODAL_TOOLTIP"}(e.EBigQueryElementType||(e.EBigQueryElementType={}))})(QT);var eS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EBigQueryDateSelectDataMode=void 0,function(t){t[t.DZIEN=1]="DZIEN",t[t.MIESIAC=2]="MIESIAC",t[t.ZAKRES=3]="ZAKRES"}(e.EBigQueryDateSelectDataMode||(e.EBigQueryDateSelectDataMode={}))})(eS);var tS={};Object.defineProperty(tS,"__esModule",{value:!0});var nS={};Object.defineProperty(nS,"__esModule",{value:!0});var rS={};Object.defineProperty(rS,"__esModule",{value:!0});var sS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.EBigQuerySearchParamType=void 0,function(t){t[t.FILTR_GORNY=1]="FILTR_GORNY",t[t.FILTR_BOCZNY=2]="FILTR_BOCZNY",t[t.SORTOWANIE=3]="SORTOWANIE"}(e.EBigQuerySearchParamType||(e.EBigQuerySearchParamType={}))})(sS);var iS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ESearchParamRemovedLocation=void 0,function(t){t.BRAK_WYNIKOW_BOX="BrakWynikowBox",t.FILTR_GORNY="FiltrGorny",t.FILTR_BOCZNY="FiltrBoczny",t.UZYTE_FILTRY="UzyteFiltry"}(e.ESearchParamRemovedLocation||(e.ESearchParamRemovedLocation={}))})(iS);var oS={};Object.defineProperty(oS,"__esModule",{value:!0});var aS={};Object.defineProperty(aS,"__esModule",{value:!0});(function(e){var t=fn&&fn.__createBinding||(Object.create?function(r,s,i,o){o===void 0&&(o=i);var a=Object.getOwnPropertyDescriptor(s,i);(!a||("get"in a?!s.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return s[i]}}),Object.defineProperty(r,o,a)}:function(r,s,i,o){o===void 0&&(o=i),r[o]=s[i]}),n=fn&&fn.__exportStar||function(r,s){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(s,i)&&t(s,r,i)};Object.defineProperty(e,"__esModule",{value:!0}),n(XT,e),n(ZT,e),n(QT,e),n(eS,e),n(tS,e),n(nS,e),n(rS,e),n(sS,e),n(iS,e),n(oS,e),n(aS,e)})(JT);var lS={},cS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ESections=void 0,function(t){t.MENU_HEADER="Header",t.MENU_FOOTER="Footer"}(e.ESections||(e.ESections={}))})(cS);(function(e){var t=fn&&fn.__createBinding||(Object.create?function(r,s,i,o){o===void 0&&(o=i);var a=Object.getOwnPropertyDescriptor(s,i);(!a||("get"in a?!s.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return s[i]}}),Object.defineProperty(r,o,a)}:function(r,s,i,o){o===void 0&&(o=i),r[o]=s[i]}),n=fn&&fn.__exportStar||function(r,s){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(s,i)&&t(s,r,i)};Object.defineProperty(e,"__esModule",{value:!0}),n(cS,e)})(lS);(function(e){var t=fn&&fn.__createBinding||(Object.create?function(r,s,i,o){o===void 0&&(o=i);var a=Object.getOwnPropertyDescriptor(s,i);(!a||("get"in a?!s.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return s[i]}}),Object.defineProperty(r,o,a)}:function(r,s,i,o){o===void 0&&(o=i),r[o]=s[i]}),n=fn&&fn.__exportStar||function(r,s){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(s,i)&&t(s,r,i)};Object.defineProperty(e,"__esModule",{value:!0}),n(qc,e),n(JT,e),n(lS,e)})(Ut);function ph(e){const t="All inclusive";return{save:async(r,s)=>{if(!e){console.warn("BigQuery config is not defined",s);return}try{await Ut.sendStats({ActionType:r,Data:s,DeviceType:e.deviceType,Strona:e.strona,Tag:e.tag,UserId:e.userId},{key:t,statsUrl:e.url,userId:e.userId})}catch(i){console.error(i)}}}}var rv={VITE_RAUTH_AUTHORITY_TEST:"https://zaloguj-test.r.pl",VITE_DEX_APP_ID_PROD:"kubernetes",VITE_DEX_REDIRECT_URI_PROD:"https://cms.rainbowtours.pl/k8s/redirect",VITE_RECAPTCHA_KEY_PROD:"6LfJpL0pAAAAAGNg5ZjFdPyPtG5nui-zJwXRiCum",VITE_GITLAB_URL_TEST:"https://git.r.pl",VITE_MAP_API_KEY_PROD:"AIzaSyD3ALP-cPdLXnhjNB7QKG7wQ19cK-6_jMg",VITE_RAUTH_CLIENT_ID_TEST:"web.rpl_cms",VITE_DEX_APP_ID_TEST:"kubernetes",VITE_DEX_REDIRECT_URI_TEST:"https://cms-test.rainbowtours.pl/k8s/redirect",VITE_RECAPTCHA_KEY_TEST:"6Ld6o70pAAAAAI12yiliLoIu5L1_iEVsNltLnbUZ",VITE_MAP_API_KEY_TEST:"AIzaSyB350JBJeCmAWEedoMT6mL2s7UolvnusZ0",VITE_GITLAB_APP_ID_PROD:"dcf7eb95767dcfb36588e908eb938ae3526c992c9047da7872e84998440796b0",VITE_GITLAB_REDIRECT_URI_PROD:"https://cms.rainbowtours.pl/gitlab/redirect",VITE_DEX_URL_PROD:"https://c3.rainbowtours.pl:32000",VITE_BACKEND_API_PROD:"prod",VITE_RAUTH_AUTHORITY_PROD:"https://zaloguj.r.pl",VITE_GITLAB_APP_ID_TEST:"dcf7eb95767dcfb36588e908eb938ae3526c992c9047da7872e84998440796b0",VITE_GITLAB_REDIRECT_URI_TEST:"https://cms-test.rainbowtours.pl/gitlab/redirect",VITE_DEX_URL_TEST:"https://c3.rainbowtours.pl:32000",VITE_BACKEND_API_TEST:"test",VITE_GITLAB_URL_PROD:"https://git.r.pl",VITE_RAUTH_CLIENT_ID_PROD:"web.rpl_cms",BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1},cy,uy,dy;const sv=cn?(dy=(uy=(cy=window.__NUXT__)==null?void 0:cy.config)==null?void 0:uy.public)==null?void 0:dy.rainbowApiEnv:void 0;let sa;rv.VITE_BACKEND_API?sa=rv.VITE_BACKEND_API:sv&&(sa=sv);!sa&&cn&&(console.error("API environment is not set! Using test"),sa=en.TEST);const uS=sa,Fo=Zp(uS),bs=nx(uS),oH={[En.SMARTPHONE]:1,[En.TABLET]:2,[En.DESKTOP]:3},aH=gt(()=>{const{userId:e}=pB(),{$ua:t}=De(),n=oH[t.deviceType],{routeInfo:r}=gB(),s=kt();return{provide:{saveToBigQuery:async(o,a,l)=>{if(!r.value||!e.value)return;const c=l||r.value.SekcjaCache.Klucz,u={url:"/api/statystyki-filtrow",tag:`${s.public.clientName}@${s.public.clientVersion}`,strona:c,userId:e.value,deviceType:n},{save:d}=ph(u);d(o,a)}}}}),Sf="data-cilck-away-id",lH=(e,t,n)=>{const r=e.target;r&&r.parentNode!==null&&(document.body.contains(r)||r===document.documentElement)&&!(r!=null&&r.closest(`[${Sf}="${t}"]`))&&n()},cH={mounted:function(e,t){if(t.value){const n=Math.random()*1e8,r=s=>lH(s,n,t.value);setTimeout(()=>window.addEventListener("click",r),100),e.setAttribute(Sf,n.toString()),e.eventClickAway=r}},beforeUnmount:function(e){e.eventClickAway&&(window.removeEventListener("click",e.eventClickAway),e.removeAttribute(Sf))}},uH={install:e=>{e.directive("r-click-away",cH)}},dH=gt(e=>{e.vueApp.use(uH)}),fH="data-test-id",Mt=()=>{const e=et("enableDataTestId"),t=z(()=>function(r,s,i){return arguments.length===3?!i&&i!==0||i.toString().includes("undefined")||!e?null:s?`${r}:${s}:${i}`:`${r}:${i}`:arguments.length===2?!s&&s!==0||s.toString().includes("undefined")||!e?null:`${r}:${s}`:null});return{DATA_TEST_ID:fH,createDataTestId:t}};var Be=(e=>(e.RAccordionList="r-accordion-list",e.RAccordion="r-accordion",e.RAlert="r-alert",e.RAutocomplete="r-autocomplete",e.RBloczek="r-bloczek",e.RBloczekFakultety="r-bloczek-fakultety",e.RBreadcrumbs="r-breadcrumbs",e.RButton="r-button",e.RButtonCircle="r-button-circle",e.RCard="r-card",e.RCheckboxGroup="r-checkbox-group",e.RCheckboxIcon="r-checkbox-icon",e.RCheckbox="r-checkbox",e.RChevron="r-chevron",e.RChip="r-chip",e.RComponent="r-component",e.RConfirmDialog="r-confirm-dialog",e.RContainer="r-container",e.RCountPicker="r-count-picker",e.RDivider="r-divider",e.RDrawer="r-drawer",e.RFiszki="r-fiszki",e.RGaleryModalButton="r-galery-modal-button",e.RGaleryModal="r-galery-modal",e.RGalery="r-galery",e.RGwiazdki="r-gwiazdki",e.RIconClose="r-icon-close",e.RIconSerce="r-icon-serce",e.RImage="r-image",e.RInput="r-input",e.RInputDeferred="r-input-deferred",e.RInputForm="r-input-form",e.RInputButton="r-input-button",e.RLazyImageWithSkeleton="r-lazy-image-with-skeleton",e.RLink="r-link",e.RLoader="r-loader",e.RLoadingDots="r-loading-dots",e.RModal="r-modal",e.RModalCard="r-modal-card",e.RTab="r-tab",e.RTable="r-table",e.RTabs="r-tabs",e.RTextarea="r-textarea",e.RToastCard="r-toast-card",e.RToasts="r-toasts",e.RToogleButton="r-toogle-button",e.RTooltip="r-tooltip",e.RTypography="r-typography",e.RPagination="r-pagination",e.RRadio="r-radio",e.RRadioGroup="r-radio-group",e.RRadioIcon="r-radio-icon",e.RRateBar="r-rate-bar",e.RSelectButton="r-select-button",e.RSelectInput="r-select-input",e.RSelectOptions="r-select-options",e.RSelectForm="r-select-form",e.RSelect="r-select",e.RSelectableCard="r-selectable-card",e.RSkeleton="r-skeleton",e.RSpinner="r-spinner",e.RStep="r-step",e.RStepper="r-stepper",e.RSwitch="r-switch",e.RWrapper="r-wrapper",e.RBloczekCzarterMapa="r-bloczek-czarter-mapa",e))(Be||{});const pH=["innerHTML"],hH=["innerHTML"],gH=["innerHTML"],mH=["innerHTML"],_H=["innerHTML"],vH=["innerHTML"],yH=["innerHTML"],wH=["innerHTML"],bH=["innerHTML"],EH="p",at=pe({__name:"r-typography",props:{variant:{},color:{default:"black"},uppercase:{type:Boolean,default:!1},fontSize:{},fontFamily:{default:"main"},fontWeight:{default:"normal"},prettyUnderline:{type:Boolean,default:!1},tag:{},oneLineEllipsis:{type:Boolean,default:!1},getRef:{},capitalize:{type:Boolean,default:!1},rawHtml:{default:null},breakWord:{type:Boolean,default:!0},componentDti:{default:Be.RTypography},idDti:{},sectionDti:{}},setup(e){const{DATA_TEST_ID:t,createDataTestId:n}=Mt(),r=te(null),s={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h2",subtitle2:"h3",body1:"p",body2:"p",caption:"span",overline:"span"},i=e,{rawHtml:o}=rn(i),a=z(()=>i.tag?i.tag:s[i.variant]?s[i.variant]:EH),l=z(()=>i.fontFamily?`r-typography--${i.fontFamily}`:"r-typography--primary"),c=z(()=>i.fontWeight?`r-typography--${i.fontWeight}`:"r-typography--normal"),u=z(()=>i.color?`r-typography--${i.color}`:"r-typography--black"),d=z(()=>`r-typography__${i.variant}`),f=z(()=>{const g=["r-typography",l.value,c.value,u.value,d.value];return i.uppercase&&g.push("r-typography--uppercase"),i.prettyUnderline&&g.push("r-typography--pretty-underline"),i.oneLineEllipsis&&g.push("r-typography--one-line-ellipsis"),i.capitalize&&g.push("r-typography--capitalize"),i.breakWord&&g.push("r-typography--break-word"),{class:g.join(" "),style:{"font-size":i.fontSize},[t]:n.value(i.componentDti,i.sectionDti,i.idDti)}}),p=g=>(r.value=g,i.getRef&&i.getRef(g),r);return(g,v)=>O(o)?a.value==="h1"?($(),X("h1",rt({key:1,ref:p},f.value,{innerHTML:O(o)}),null,16,pH)):a.value==="h2"?($(),X("h2",rt({key:2,ref:p},f.value,{innerHTML:O(o)}),null,16,hH)):a.value==="h3"?($(),X("h3",rt({key:3,ref:p},f.value,{innerHTML:O(o)}),null,16,gH)):a.value==="h4"?($(),X("h4",rt({key:4,ref:p},f.value,{innerHTML:O(o)}),null,16,mH)):a.value==="h5"?($(),X("h5",rt({key:5,ref:p},f.value,{innerHTML:O(o)}),null,16,_H)):a.value==="h6"?($(),X("h6",rt({key:6,ref:p},f.value,{innerHTML:O(o)}),null,16,vH)):a.value==="p"?($(),X("p",rt({key:7,ref:p},f.value,{innerHTML:O(o)}),null,16,yH)):a.value==="div"?($(),X("div",rt({key:8,ref:p},f.value,{innerHTML:O(o)}),null,16,wH)):($(),X("span",rt({key:9,ref:p},f.value,{innerHTML:O(o)}),null,16,bH)):($(),se(cs(a.value),St({key:0,ref:p,style:{"font-size":g.fontSize},class:["r-typography",{[l.value]:l.value,[c.value]:c.value,[u.value]:u.value,"r-typography--uppercase":g.uppercase,"r-typography--pretty-underline":g.prettyUnderline,[d.value]:g.variant,"r-typography--one-line-ellipsis":g.oneLineEllipsis,"r-typography--capitalize":g.capitalize,"r-typography--break-word":g.breakWord}],[O(t)||""]:O(n)(g.componentDti,g.sectionDti,g.idDti)}),{default:de(()=>[Te(g.$slots,"default")]),_:3},16,["style","class"]))}});var mi=(e=>(e.ACCENT="#ffd92d",e.ACCENT_LIGHTER="#fde268",e.ACCENT_LIGHTER2="#FFF3BD",e.ACCENT_LIGHTER3="#f7d32c",e.ACCENT_DARKER="#ffbf00",e.PRIMARY="#0054a6",e.PRIMARY_DARKER="#0051a4",e.PRIMARY_MILD="#36a5cf",e.PRIMARY_LIGHTER="#76a3cf",e.PRIMARY_LIGHTER2="#d9e5f2",e.TEXT="black",e.GRAY="#f3f3f3",e.GRAY_DARKER="#dadada",e.GRAY_DARK="#b3b3b3",e.GRAY_MAX="#a7a7a7",e.GRAY_LIGHT="#F1F6FA",e.ERROR="#e14242",e.GREEN="#89c035",e.BIURA_LIGHT_BLUE="#38a8d1",e.BIURA_GRAY="#fafafa",e.WHITE="#fff",e))(mi||{});const TH=(e,t,n)=>{const r=e[t];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((s,i)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(i.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==n?". Note that variables only represent file names one level deep.":""))))})},dS={africa:{fill:!0,stroke:!1},airport:{fill:!0,stroke:!1},"all-in":{fill:!0,stroke:!1},"apple-pay":{fill:!0},"apple-fill":{fill:!0,stroke:!1},"arrow-down-fill":{fill:!0,stroke:!1},"arrow-down":{fill:!0,stroke:!1},"arrow-left-fill":{fill:!0,stroke:!1},"arrow-left":{fill:!0,stroke:!1},"arrow-right-fill":{fill:!0,stroke:!1},"arrow-right":{fill:!0,stroke:!1},"arrow-up-fill":{fill:!0,stroke:!1},"arrow-up":{fill:!0,stroke:!1},asia:{fill:!0,stroke:!1},attachement:{fill:!0,stroke:!1},"australia-and-oceania":{fill:!0,stroke:!1},bag:{fill:!0,stroke:!1},"basket-fill":{fill:!0,stroke:!1},basket:{fill:!0,stroke:!1},beach:{fill:!0,stroke:!1},bell:{fill:!0,stroke:!1},"blik-fill":{fill:!0,stroke:!1},blik:{fill:!1},book:{fill:!0,stroke:!1},"boomerang-fill-color":{fill:!1,stroke:!1},boomerang:{fill:!0,stroke:!1},bulb:{fill:!0,stroke:!1},"burger-fill":{fill:!0,stroke:!1},burger:{fill:!0,stroke:!1},bus:{fill:!0,stroke:!1},"calendar-ok":{fill:!0,stroke:!1},"calendar-time":{fill:!0,stroke:!1},calendar:{fill:!0,stroke:!1},camera:{fill:!0,stroke:!1},"cancel-reservation":{fill:!0,stroke:!1},car:{fill:!0,stroke:!1},"central-america":{fill:!0,stroke:!1},chat:{fill:!0,stroke:!1},check:{fill:!0,stroke:!1},"chevron-down-circle-fill":{fill:!0,stroke:!1},"chevron-down":{fill:!0,stroke:!1},"chevron-left-circle-fill":{fill:!0,stroke:!1},"chevron-left":{fill:!0,stroke:!1},"chevron-right-circle-fill":{fill:!0,stroke:!1},"chevron-right":{fill:!0,stroke:!1},"chevron-shadow-down":{fill:!1,stroke:!1},"chevron-shadow-left":{fill:!1,stroke:!1},"chevron-shadow-right":{fill:!1,stroke:!1},"chevron-shadow-up":{fill:!1,stroke:!1},"chevron-up-circle-fill":{fill:!0,stroke:!1},"chevron-up":{fill:!0,stroke:!1},"close-circle-fill":{fill:!0,stroke:!1},"close-circle":{fill:!0,stroke:!1},"close-fill":{fill:!0,stroke:!1},close:{fill:!0,stroke:!1},coffee:{fill:!0,stroke:!1},coins:{fill:!0,stroke:!1},compass:{fill:!0,stroke:!1},"credit-card":{fill:!0,stroke:!0},crown:{fill:!0,stroke:!1},delete:{fill:!0,stroke:!1},"diament-forbes":{fill:!0,stroke:!1},diamond:{fill:!0,stroke:!1},"discount-hand":{fill:!0,stroke:!1},discount:{fill:!0,stroke:!1},dish:{fill:!0,stroke:!1},dot:{fill:!0},"dotpay-colored":{stroke:!1},dotpay:{fill:!0,stroke:!1},download:{fill:!0,stroke:!1},dreamliner:{fill:!0,stroke:!1},edit:{fill:!0,stroke:!1},entry:{fill:!0,stroke:!1},"envelope-circle":{fill:!0,stroke:!1},envelope:{fill:!0,stroke:!1},"error-circle-fill":{fill:!0,stroke:!1},"error-circle":{fill:!0,stroke:!1},europe:{fill:!0,stroke:!1},exit:{fill:!0,stroke:!1},expand:{fill:!0,stroke:!1},"eye-fill":{fill:!0,stroke:!1},"eye-off-fill":{fill:!0,stroke:!1},"eye-off":{fill:!0,stroke:!1},eye:{fill:!0,stroke:!1},"face-baby":{fill:!0,stroke:!1},"face-happy-fill":{fill:!0,stroke:!1},"face-happy":{fill:!0,stroke:!1},"face-meh-fill":{fill:!0,stroke:!1},"face-meh":{fill:!0,stroke:!1},"facebook-circle-fill-color":{fill:!1,stroke:!1},"facebook-circle-fill":{fill:!0,stroke:!1},"facebook-square":{fill:!0},facebook:{fill:!0,stroke:!0},family:{fill:!0,stroke:!1},file:{fill:!0,stroke:!1},filters:{fill:!0,stroke:!1},"flip-flops":{fill:!0,stroke:!1},"free-cancel-reservation":{fill:!0,stroke:!1},friends:{fill:!0,stroke:!1},gamepad:{fill:!0,stroke:!1},gift:{fill:!0,stroke:!1},globe:{fill:!0,stroke:!1},"google-fill":{fill:!0,stroke:!1},"google-pay":{fill:!0},"google-play-fill-color":{fill:!1,stroke:!1},"google-play-fill":{fill:!0,stroke:!1},google:{stroke:!1},graph:{fill:!0,stroke:!1},guide:{fill:!0,stroke:!1},"heart-fill":{fill:!0,stroke:!1},heart:{fill:!0,stroke:!1},"hotel-awarded":{fill:!0,stroke:!1},"hotel-r":{fill:!0,stroke:!1},"hotel-stars":{fill:!0,stroke:!1},"hotel-wifi":{fill:!0,stroke:!1},hotel:{fill:!0,stroke:!1},hourglass:{fill:!0,stroke:!1},humidity:{fill:!0,stroke:!1},icecream:{fill:!0,stroke:!1},"info-covered":{fill:!0},info:{fill:!0,stroke:!1},"instagram-fill":{fill:!0,stroke:!1},instagram:{fill:!0},lifebuoy:{fill:!0,stroke:!1},like:{fill:!0,stroke:!1},"line-dotted":{fill:!0,stroke:!1},"line-straight":{fill:!0,stroke:!1},"list-bold":{fill:!0,stroke:!1},list:{fill:!0,stroke:!1},"lock-1":{fill:!0,stroke:!1},"lock-2":{fill:!0,stroke:!1},magazine:{fill:!0,stroke:!1},magicpen:{fill:!0,stroke:!1},"map-fill":{fill:!0,stroke:!1},map:{fill:!0,stroke:!1},mask:{fill:!0,stroke:!1},"mastercard-fill":{fill:!0,stroke:!1},meal:{fill:!0,stroke:!1},medal:{fill:!0,stroke:!1},medicine:{fill:!0,stroke:!1},megaphone:{fill:!0,stroke:!1},melt:{fill:!0,stroke:!1},"menu-more-fill":{fill:!0,stroke:!1},"menu-more":{fill:!0,stroke:!1},"message-pl":{fill:!0,stroke:!1},"message-rate":{fill:!0,stroke:!1},message:{fill:!0,stroke:!1},"middle-east":{fill:!0,stroke:!1},"minus-fill":{fill:!0,stroke:!1},minus:{fill:!0,stroke:!1},"mix-way":{fill:!0,stroke:!1},monkey:{fill:!0,stroke:!1},moon:{fill:!0,stroke:!1},mountain:{fill:!0,stroke:!1},move:{fill:!1,stroke:!0},"no-waiting":{fill:!0,stroke:!1},"north-america":{fill:!0,stroke:!1},orchid:{fill:!0,stroke:!1},"orly-wprost":{fill:!0,stroke:!1},p:{fill:!1,stroke:!1},palmtree:{fill:!0,stroke:!1},"parking-ok":{fill:!0,stroke:!1},parking:{fill:!0,stroke:!1},"passport-off":{fill:!0,stroke:!1},passport:{fill:!0,stroke:!1},"phone-circle":{fill:!0,stroke:!1},phone:{fill:!0,stroke:!1},"pin-fill":{fill:!0,stroke:!1},pin:{fill:!0,stroke:!1},pineapple:{fill:!0,stroke:!1},pit:{fill:!0,stroke:!1},place:{fill:!0,stroke:!1},plan:{fill:!0,stroke:!1},"plane-down-fill":{fill:!0,stroke:!1},"plane-down":{fill:!0,stroke:!1},"plane-fill":{fill:!0,stroke:!1},"plane-left-fill":{fill:!0,stroke:!1},"plane-left":{fill:!0,stroke:!1},"plane-move-side":{fill:!0,stroke:!1},"plane-right-fill":{fill:!0,stroke:!1},"plane-right":{fill:!0,stroke:!1},"plane-tilt-fill":{fill:!0,stroke:!1},"plane-tilt":{fill:!0,stroke:!1},"plane-top":{fill:!0},"plane-up-fill":{fill:!0,stroke:!1},"plane-up":{fill:!0,stroke:!1},plane:{fill:!0,stroke:!1},"play-circle":{fill:!0,stroke:!1},"plus-fill":{fill:!0,stroke:!1},plus:{fill:!0,stroke:!1},podium:{fill:!0,stroke:!1},pool:{fill:!0,stroke:!1},"power-switch":{fill:!0,stroke:!1},printer:{fill:!0,stroke:!1},"przelewy-white":{fill:!0,stroke:!1},przelewy:{fill:!1,stroke:!1},pzot:{fill:!0,stroke:!1},"queen-bed":{fill:!0,stroke:!1},"quick-bus":{fill:!1,stroke:!0},"r-circle":{fill:!0,stroke:!1},"r-fill":{fill:!0,stroke:!1},"r-text":{fill:!0,stroke:!1},r:{fill:!0,stroke:!1},roadsign:{fill:!0,stroke:!1},"roza-kolumba":{fill:!0},"rzetelna-firma":{fill:!0},"sand-toys":{fill:!0,stroke:!1},"search-fill":{fill:!0,stroke:!1},search:{fill:!0,stroke:!1},seat:{fill:!0,stroke:!1},"second-minute":{fill:!0,stroke:!1},send:{fill:!0,stroke:!1},"seven-plus-seven":{fill:!0,stroke:!1},"share-fill":{fill:!0,stroke:!1},share:{fill:!0,stroke:!1},"shield-ok":{fill:!0,stroke:!1},shield:{fill:!0,stroke:!1},"shopping-cart":{fill:!0,stroke:!1},ski:{fill:!0,stroke:!1},slide:{fill:!0,stroke:!1},sliders:{fill:!0,stroke:!1},sofa:{fill:!0,stroke:!1},"south-america":{fill:!0,stroke:!1},"star-fill":{fill:!0,stroke:!1},star:{fill:!0,stroke:!1},"suitcase-big":{fill:!0,stroke:!0},suitcase:{fill:!0,stroke:!1},"sun-fill":{fill:!0,stroke:!1},"sun-happy":{fill:!0,stroke:!1},sun:{fill:!0,stroke:!1},sunbed:{fill:!0,stroke:!1},sunset:{fill:!0,stroke:!1},target:{fill:!0,stroke:!1},"test-tube":{fill:!0,stroke:!1},"time-fast":{fill:!0,stroke:!1},"time-pause":{fill:!0,stroke:!1},time:{fill:!0,stroke:!1},trip:{fill:!1,stroke:!0},twitter:{fill:!0,stroke:!1},umbrella:{fill:!0,stroke:!1},"user-card":{fill:!0,stroke:!1},"user-fill":{fill:!0,stroke:!1},user:{fill:!0,stroke:!1},users:{fill:!0,stroke:!1},vaccination:{fill:!1,stroke:!0},video:{fill:!0,stroke:!1},"visa-fill":{fill:!0,stroke:!1},"voucher-tag":{fill:!0,stroke:!1},wc:{fill:!0,stroke:!1},"whatsapp-fill-color":{fill:!1,stroke:!1},"whatsapp-fill":{fill:!0,stroke:!1},world:{fill:!0,stroke:!1},"youtube-fill":{fill:!0},"zoom-fill":{fill:!0,stroke:!1},zoom:{fill:!0,stroke:!1}},SH=e=>{var t;return((t=dS[e])==null?void 0:t.fill)??!1},kH=e=>{var t;return((t=dS[e])==null?void 0:t.stroke)??!0},IH=["innerHTML"],ot=pe({__name:"RIcon",props:{icon:{},size:{default:"inherit"},color:{default:"black"},variant:{},stroke:{type:Boolean,default:void 0},fill:{type:Boolean,default:void 0}},async setup(e){let t,n;const r=e,s=et("enableDataTestId",!1),{variant:i}=rn(r),o=z(()=>({"--size":r.size,"--color":r.color})),a=z(()=>{var m;return typeof r.icon=="string"?r.icon:(m=r.icon)!=null&&m.name?r.icon.name:(console.error("Empty icon name"),"")}),l=z(()=>r.stroke!==void 0?r.stroke:kH(a.value)),c=z(()=>r.fill!==void 0?r.fill:SH(a.value)),u={dot:"icons-3__fill--dot","line-straight":"icons-3__stroke--line-straight","line-dotted":"icons-3__stroke--line-dotted"},d=z(()=>u[a.value]),f=z(()=>(i==null?void 0:i.value)==="outline"),p=z(()=>(i==null?void 0:i.value)==="fill");let g=te("");const v=m=>m.replace("<svg",`<svg data-test-id="r-icon:${a.value}"`),w=m=>s?v(m):m,y=async m=>{if(!m){g.value="";return}if(typeof m=="string")try{const h=await TH(Object.assign({"../../../icons/src/svg/africa.svg":()=>I(()=>import("./DdBuuXAU.js"),[],import.meta.url),"../../../icons/src/svg/airport.svg":()=>I(()=>import("./DZLGEbbI.js"),[],import.meta.url),"../../../icons/src/svg/all-in.svg":()=>I(()=>import("./CpDSUh48.js"),[],import.meta.url),"../../../icons/src/svg/apple-fill.svg":()=>I(()=>import("./DDmMTNYV.js"),[],import.meta.url),"../../../icons/src/svg/apple-pay.svg":()=>I(()=>import("./CMkf-gWl.js"),[],import.meta.url),"../../../icons/src/svg/arrow-down-fill.svg":()=>I(()=>import("./CERj7hrF.js"),[],import.meta.url),"../../../icons/src/svg/arrow-down.svg":()=>I(()=>import("./Dbysewp2.js"),[],import.meta.url),"../../../icons/src/svg/arrow-left-fill.svg":()=>I(()=>import("./CgGpw0S3.js"),[],import.meta.url),"../../../icons/src/svg/arrow-left.svg":()=>I(()=>import("./DEjUo3u8.js"),[],import.meta.url),"../../../icons/src/svg/arrow-right-fill.svg":()=>I(()=>import("./YZmwVOND.js"),[],import.meta.url),"../../../icons/src/svg/arrow-right.svg":()=>I(()=>import("./CRmXywPY.js"),[],import.meta.url),"../../../icons/src/svg/arrow-up-fill.svg":()=>I(()=>import("./LA8biheW.js"),[],import.meta.url),"../../../icons/src/svg/arrow-up.svg":()=>I(()=>import("./B4h4VvUw.js"),[],import.meta.url),"../../../icons/src/svg/asia.svg":()=>I(()=>import("./4y_O3-5A.js"),[],import.meta.url),"../../../icons/src/svg/attachement.svg":()=>I(()=>import("./hfy7wLaO.js"),[],import.meta.url),"../../../icons/src/svg/australia-and-oceania.svg":()=>I(()=>import("./Bet7wOAc.js"),[],import.meta.url),"../../../icons/src/svg/bag.svg":()=>I(()=>import("./Di5Sx7ei.js"),[],import.meta.url),"../../../icons/src/svg/basket-fill.svg":()=>I(()=>import("./CTUmsRwe.js"),[],import.meta.url),"../../../icons/src/svg/basket.svg":()=>I(()=>import("./CORNss2X.js"),[],import.meta.url),"../../../icons/src/svg/beach.svg":()=>I(()=>import("./C1RY8N_r.js"),[],import.meta.url),"../../../icons/src/svg/bell.svg":()=>I(()=>import("./GVMkT0E1.js"),[],import.meta.url),"../../../icons/src/svg/blik-fill.svg":()=>I(()=>import("./BkzZmTNh.js"),[],import.meta.url),"../../../icons/src/svg/blik.svg":()=>I(()=>import("./BzQX4_is.js"),[],import.meta.url),"../../../icons/src/svg/book.svg":()=>I(()=>import("./D2s85I6n.js"),[],import.meta.url),"../../../icons/src/svg/boomerang-fill-color.svg":()=>I(()=>import("./uNX2xi1e.js"),[],import.meta.url),"../../../icons/src/svg/boomerang.svg":()=>I(()=>import("./BgQQpXUh.js"),[],import.meta.url),"../../../icons/src/svg/bulb.svg":()=>I(()=>import("./TNZ3sl5Q.js"),[],import.meta.url),"../../../icons/src/svg/burger-fill.svg":()=>I(()=>import("./DRB-qr-i.js"),[],import.meta.url),"../../../icons/src/svg/burger.svg":()=>I(()=>import("./CFTkzvGs.js"),[],import.meta.url),"../../../icons/src/svg/bus.svg":()=>I(()=>import("./5MjeMTiV.js"),[],import.meta.url),"../../../icons/src/svg/calendar-ok.svg":()=>I(()=>import("./FilPeOR5.js"),[],import.meta.url),"../../../icons/src/svg/calendar-time.svg":()=>I(()=>import("./B1YxgoSU.js"),[],import.meta.url),"../../../icons/src/svg/calendar.svg":()=>I(()=>import("./Drk90tJ4.js"),[],import.meta.url),"../../../icons/src/svg/camera.svg":()=>I(()=>import("./Br6WjrQJ.js"),[],import.meta.url),"../../../icons/src/svg/cancel-reservation.svg":()=>I(()=>import("./B9oTMWa5.js"),[],import.meta.url),"../../../icons/src/svg/car.svg":()=>I(()=>import("./Daj2NI4i.js"),[],import.meta.url),"../../../icons/src/svg/central-america.svg":()=>I(()=>import("./CQu28d3Z.js"),[],import.meta.url),"../../../icons/src/svg/chat.svg":()=>I(()=>import("./BzYhcA9H.js"),[],import.meta.url),"../../../icons/src/svg/check.svg":()=>I(()=>import("./BacI6nqO.js"),[],import.meta.url),"../../../icons/src/svg/chevron-down-circle-fill.svg":()=>I(()=>import("./CWV6LQXD.js"),[],import.meta.url),"../../../icons/src/svg/chevron-down.svg":()=>I(()=>import("./CL9xShZ7.js"),[],import.meta.url),"../../../icons/src/svg/chevron-left-circle-fill.svg":()=>I(()=>import("./6g7FciMQ.js"),[],import.meta.url),"../../../icons/src/svg/chevron-left.svg":()=>I(()=>import("./COo0alYe.js"),[],import.meta.url),"../../../icons/src/svg/chevron-right-circle-fill.svg":()=>I(()=>import("./oXyETbas.js"),[],import.meta.url),"../../../icons/src/svg/chevron-right.svg":()=>I(()=>import("./gm_ma3Yk.js"),[],import.meta.url),"../../../icons/src/svg/chevron-shadow-down.svg":()=>I(()=>import("./CuH5ppWd.js"),[],import.meta.url),"../../../icons/src/svg/chevron-shadow-left.svg":()=>I(()=>import("./gd4ehi5q.js"),[],import.meta.url),"../../../icons/src/svg/chevron-shadow-right.svg":()=>I(()=>import("./OLqcAf0T.js"),[],import.meta.url),"../../../icons/src/svg/chevron-shadow-up.svg":()=>I(()=>import("./BSJiecFA.js"),[],import.meta.url),"../../../icons/src/svg/chevron-up-circle-fill.svg":()=>I(()=>import("./DOBZFuqd.js"),[],import.meta.url),"../../../icons/src/svg/chevron-up.svg":()=>I(()=>import("./CPhnol3u.js"),[],import.meta.url),"../../../icons/src/svg/close-circle-fill.svg":()=>I(()=>import("./ROn1ASZR.js"),[],import.meta.url),"../../../icons/src/svg/close-circle.svg":()=>I(()=>import("./8l6UoqVv.js"),[],import.meta.url),"../../../icons/src/svg/close-fill.svg":()=>I(()=>import("./PbINq2I4.js"),[],import.meta.url),"../../../icons/src/svg/close.svg":()=>I(()=>import("./C6OPdZOZ.js"),[],import.meta.url),"../../../icons/src/svg/coffee.svg":()=>I(()=>import("./BJWTbXAO.js"),[],import.meta.url),"../../../icons/src/svg/coins.svg":()=>I(()=>import("./CqhWUv-f.js"),[],import.meta.url),"../../../icons/src/svg/compass.svg":()=>I(()=>import("./C9vwK3Yz.js"),[],import.meta.url),"../../../icons/src/svg/credit-card.svg":()=>I(()=>import("./B1rvwYEk.js"),[],import.meta.url),"../../../icons/src/svg/crown.svg":()=>I(()=>import("./CV8t-WA6.js"),[],import.meta.url),"../../../icons/src/svg/delete.svg":()=>I(()=>import("./DG9EqMyC.js"),[],import.meta.url),"../../../icons/src/svg/diament-forbes.svg":()=>I(()=>import("./CBStdI7x.js"),[],import.meta.url),"../../../icons/src/svg/diamond.svg":()=>I(()=>import("./BOLGli0N.js"),[],import.meta.url),"../../../icons/src/svg/discount-hand.svg":()=>I(()=>import("./BJwiELjC.js"),[],import.meta.url),"../../../icons/src/svg/discount.svg":()=>I(()=>import("./Cnrgdi_3.js"),[],import.meta.url),"../../../icons/src/svg/dish.svg":()=>I(()=>import("./BJnY2Bq_.js"),[],import.meta.url),"../../../icons/src/svg/dot.svg":()=>I(()=>import("./BuCNt_A5.js"),[],import.meta.url),"../../../icons/src/svg/dotpay-colored.svg":()=>I(()=>import("./D3Ze08XL.js"),[],import.meta.url),"../../../icons/src/svg/dotpay.svg":()=>I(()=>import("./gVpQGEbc.js"),[],import.meta.url),"../../../icons/src/svg/download.svg":()=>I(()=>import("./ck_ojsgq.js"),[],import.meta.url),"../../../icons/src/svg/dreamliner.svg":()=>I(()=>import("./B5zqCoWT.js"),[],import.meta.url),"../../../icons/src/svg/edit.svg":()=>I(()=>import("./BYHLGjLr.js"),[],import.meta.url),"../../../icons/src/svg/entry.svg":()=>I(()=>import("./CBDKMeM9.js"),[],import.meta.url),"../../../icons/src/svg/envelope-circle.svg":()=>I(()=>import("./Bf2hfFpD.js"),[],import.meta.url),"../../../icons/src/svg/envelope.svg":()=>I(()=>import("./BSlf4LFu.js"),[],import.meta.url),"../../../icons/src/svg/error-circle-fill.svg":()=>I(()=>import("./2QWbxwS4.js"),[],import.meta.url),"../../../icons/src/svg/error-circle.svg":()=>I(()=>import("./9ZciQSOJ.js"),[],import.meta.url),"../../../icons/src/svg/europe.svg":()=>I(()=>import("./3tzoHJAU.js"),[],import.meta.url),"../../../icons/src/svg/exit.svg":()=>I(()=>import("./CGCWXrDX.js"),[],import.meta.url),"../../../icons/src/svg/expand.svg":()=>I(()=>import("./BOvy-mmZ.js"),[],import.meta.url),"../../../icons/src/svg/eye-fill.svg":()=>I(()=>import("./BV4JVSjr.js"),[],import.meta.url),"../../../icons/src/svg/eye-off-fill.svg":()=>I(()=>import("./Cv7zJWcH.js"),[],import.meta.url),"../../../icons/src/svg/eye-off.svg":()=>I(()=>import("./B_AAqS-m.js"),[],import.meta.url),"../../../icons/src/svg/eye.svg":()=>I(()=>import("./BgKq8RJV.js"),[],import.meta.url),"../../../icons/src/svg/face-baby.svg":()=>I(()=>import("./BG-sanHz.js"),[],import.meta.url),"../../../icons/src/svg/face-happy-fill.svg":()=>I(()=>import("./BqZcDwK7.js"),[],import.meta.url),"../../../icons/src/svg/face-happy.svg":()=>I(()=>import("./DdEbhe3H.js"),[],import.meta.url),"../../../icons/src/svg/face-meh-fill.svg":()=>I(()=>import("./CznV6uu3.js"),[],import.meta.url),"../../../icons/src/svg/face-meh.svg":()=>I(()=>import("./QQz73TpZ.js"),[],import.meta.url),"../../../icons/src/svg/facebook-circle-fill-color.svg":()=>I(()=>import("./CO6Suln9.js"),[],import.meta.url),"../../../icons/src/svg/facebook-circle-fill.svg":()=>I(()=>import("./CcufvMF6.js"),[],import.meta.url),"../../../icons/src/svg/facebook-square.svg":()=>I(()=>import("./DBqcBWlD.js"),[],import.meta.url),"../../../icons/src/svg/facebook.svg":()=>I(()=>import("./BCIoav9J.js"),[],import.meta.url),"../../../icons/src/svg/family.svg":()=>I(()=>import("./B19klOv9.js"),[],import.meta.url),"../../../icons/src/svg/file.svg":()=>I(()=>import("./8fQY-AY5.js"),[],import.meta.url),"../../../icons/src/svg/filters.svg":()=>I(()=>import("./CK4VaPOr.js"),[],import.meta.url),"../../../icons/src/svg/flip-flops.svg":()=>I(()=>import("./DfrWZP5H.js"),[],import.meta.url),"../../../icons/src/svg/free-cancel-reservation.svg":()=>I(()=>import("./CArR0-Bb.js"),[],import.meta.url),"../../../icons/src/svg/friends.svg":()=>I(()=>import("./D9yKfW8L.js"),[],import.meta.url),"../../../icons/src/svg/gamepad.svg":()=>I(()=>import("./CAhTbXOc.js"),[],import.meta.url),"../../../icons/src/svg/gift.svg":()=>I(()=>import("./C5lrSTN4.js"),[],import.meta.url),"../../../icons/src/svg/globe.svg":()=>I(()=>import("./CiFGy3Ir.js"),[],import.meta.url),"../../../icons/src/svg/google-fill.svg":()=>I(()=>import("./Cq14YZ6R.js"),[],import.meta.url),"../../../icons/src/svg/google-pay.svg":()=>I(()=>import("./BK0qaorj.js"),[],import.meta.url),"../../../icons/src/svg/google-play-fill-color.svg":()=>I(()=>import("./DrlXTGOh.js"),[],import.meta.url),"../../../icons/src/svg/google-play-fill.svg":()=>I(()=>import("./DUj-qH2Q.js"),[],import.meta.url),"../../../icons/src/svg/google.svg":()=>I(()=>import("./D36Vi8a7.js"),[],import.meta.url),"../../../icons/src/svg/graph.svg":()=>I(()=>import("./DYu7vbKV.js"),[],import.meta.url),"../../../icons/src/svg/guide.svg":()=>I(()=>import("./DU44WE1P.js"),[],import.meta.url),"../../../icons/src/svg/heart-fill.svg":()=>I(()=>import("./BW6GFySH.js"),[],import.meta.url),"../../../icons/src/svg/heart.svg":()=>I(()=>import("./CW-ne0G6.js"),[],import.meta.url),"../../../icons/src/svg/hotel-awarded.svg":()=>I(()=>import("./CNqg9Un9.js"),[],import.meta.url),"../../../icons/src/svg/hotel-r.svg":()=>I(()=>import("./CdOxAsCk.js"),[],import.meta.url),"../../../icons/src/svg/hotel-stars.svg":()=>I(()=>import("./gBczatnX.js"),[],import.meta.url),"../../../icons/src/svg/hotel-wifi.svg":()=>I(()=>import("./BSxjlmki.js"),[],import.meta.url),"../../../icons/src/svg/hotel.svg":()=>I(()=>import("./BgY_UNN4.js"),[],import.meta.url),"../../../icons/src/svg/hourglass.svg":()=>I(()=>import("./CSDVYiY5.js"),[],import.meta.url),"../../../icons/src/svg/humidity.svg":()=>I(()=>import("./CzxzBqDm.js"),[],import.meta.url),"../../../icons/src/svg/icecream.svg":()=>I(()=>import("./DNEXDQ42.js"),[],import.meta.url),"../../../icons/src/svg/info-covered.svg":()=>I(()=>import("./B7aF63r-.js"),[],import.meta.url),"../../../icons/src/svg/info.svg":()=>I(()=>import("./CXDimSr7.js"),[],import.meta.url),"../../../icons/src/svg/instagram-fill.svg":()=>I(()=>import("./CO7425f5.js"),[],import.meta.url),"../../../icons/src/svg/instagram.svg":()=>I(()=>import("./BzQzKWzW.js"),[],import.meta.url),"../../../icons/src/svg/lifebuoy.svg":()=>I(()=>import("./DQLnTKiR.js"),[],import.meta.url),"../../../icons/src/svg/like.svg":()=>I(()=>import("./BUcNMrXw.js"),[],import.meta.url),"../../../icons/src/svg/line-dotted.svg":()=>I(()=>import("./BMT2cks8.js"),[],import.meta.url),"../../../icons/src/svg/line-straight.svg":()=>I(()=>import("./BcuuU4lk.js"),[],import.meta.url),"../../../icons/src/svg/list-bold.svg":()=>I(()=>import("./C5iSEd4O.js"),[],import.meta.url),"../../../icons/src/svg/list.svg":()=>I(()=>import("./DDidHuCS.js"),[],import.meta.url),"../../../icons/src/svg/lock-1.svg":()=>I(()=>import("./DXuncbhw.js"),[],import.meta.url),"../../../icons/src/svg/lock-2.svg":()=>I(()=>import("./B7JC3gQL.js"),[],import.meta.url),"../../../icons/src/svg/magazine.svg":()=>I(()=>import("./0xy2fnMQ.js"),[],import.meta.url),"../../../icons/src/svg/magicpen.svg":()=>I(()=>import("./CAwRcQfn.js"),[],import.meta.url),"../../../icons/src/svg/map-fill.svg":()=>I(()=>import("./Cg5FNC0H.js"),[],import.meta.url),"../../../icons/src/svg/map.svg":()=>I(()=>import("./CqpSZCok.js"),[],import.meta.url),"../../../icons/src/svg/mask.svg":()=>I(()=>import("./DArXwU-d.js"),[],import.meta.url),"../../../icons/src/svg/mastercard-fill.svg":()=>I(()=>import("./DfzKASFF.js"),[],import.meta.url),"../../../icons/src/svg/meal.svg":()=>I(()=>import("./3GYaE3j1.js"),[],import.meta.url),"../../../icons/src/svg/medal.svg":()=>I(()=>import("./Bl3WMGlh.js"),[],import.meta.url),"../../../icons/src/svg/medicine.svg":()=>I(()=>import("./CP5xOhBE.js"),[],import.meta.url),"../../../icons/src/svg/megaphone.svg":()=>I(()=>import("./DYw8EskA.js"),[],import.meta.url),"../../../icons/src/svg/melt.svg":()=>I(()=>import("./IlfgqwSt.js"),[],import.meta.url),"../../../icons/src/svg/menu-more-fill.svg":()=>I(()=>import("./6f3MzbN0.js"),[],import.meta.url),"../../../icons/src/svg/menu-more.svg":()=>I(()=>import("./DPQULrfw.js"),[],import.meta.url),"../../../icons/src/svg/message-pl.svg":()=>I(()=>import("./BdP0_f9H.js"),[],import.meta.url),"../../../icons/src/svg/message-rate.svg":()=>I(()=>import("./AqziAgzZ.js"),[],import.meta.url),"../../../icons/src/svg/message.svg":()=>I(()=>import("./DCcMP20o.js"),[],import.meta.url),"../../../icons/src/svg/middle-east.svg":()=>I(()=>import("./1o6UQKtu.js"),[],import.meta.url),"../../../icons/src/svg/minus-fill.svg":()=>I(()=>import("./Dn_NsXMG.js"),[],import.meta.url),"../../../icons/src/svg/minus.svg":()=>I(()=>import("./C4LXKLej.js"),[],import.meta.url),"../../../icons/src/svg/mix-way.svg":()=>I(()=>import("./BDCiWfO4.js"),[],import.meta.url),"../../../icons/src/svg/monkey.svg":()=>I(()=>import("./Cm8akH8x.js"),[],import.meta.url),"../../../icons/src/svg/moon.svg":()=>I(()=>import("./CdzlgFe_.js"),[],import.meta.url),"../../../icons/src/svg/mountain.svg":()=>I(()=>import("./TmIWNIS7.js"),[],import.meta.url),"../../../icons/src/svg/move.svg":()=>I(()=>import("./B3BVzTVx.js"),[],import.meta.url),"../../../icons/src/svg/no-waiting.svg":()=>I(()=>import("./sfytyl92.js"),[],import.meta.url),"../../../icons/src/svg/north-america.svg":()=>I(()=>import("./DLHq5q-j.js"),[],import.meta.url),"../../../icons/src/svg/orchid.svg":()=>I(()=>import("./BCqkMS5t.js"),[],import.meta.url),"../../../icons/src/svg/orly-wprost.svg":()=>I(()=>import("./Bkq6--9Q.js"),[],import.meta.url),"../../../icons/src/svg/p.svg":()=>I(()=>import("./C5HEp8Ex.js"),[],import.meta.url),"../../../icons/src/svg/palmtree.svg":()=>I(()=>import("./Am7XemKV.js"),[],import.meta.url),"../../../icons/src/svg/parking-ok.svg":()=>I(()=>import("./BPETF3Ja.js"),[],import.meta.url),"../../../icons/src/svg/parking.svg":()=>I(()=>import("./COACXVs-.js"),[],import.meta.url),"../../../icons/src/svg/passport-off.svg":()=>I(()=>import("./B_mIY_JG.js"),[],import.meta.url),"../../../icons/src/svg/passport.svg":()=>I(()=>import("./Db9Pxz_4.js"),[],import.meta.url),"../../../icons/src/svg/phone-circle.svg":()=>I(()=>import("./DIDmVlVT.js"),[],import.meta.url),"../../../icons/src/svg/phone.svg":()=>I(()=>import("./B-MRtkGD.js"),[],import.meta.url),"../../../icons/src/svg/pin-fill.svg":()=>I(()=>import("./B_OHvN0_.js"),[],import.meta.url),"../../../icons/src/svg/pin.svg":()=>I(()=>import("./BGW46d_T.js"),[],import.meta.url),"../../../icons/src/svg/pineapple.svg":()=>I(()=>import("./DX1tuwiU.js"),[],import.meta.url),"../../../icons/src/svg/pit.svg":()=>I(()=>import("./Blru0dST.js"),[],import.meta.url),"../../../icons/src/svg/place.svg":()=>I(()=>import("./9nVj_xlc.js"),[],import.meta.url),"../../../icons/src/svg/plan.svg":()=>I(()=>import("./C8wry9YH.js"),[],import.meta.url),"../../../icons/src/svg/plane-down-fill.svg":()=>I(()=>import("./OcmRCfon.js"),[],import.meta.url),"../../../icons/src/svg/plane-down.svg":()=>I(()=>import("./OWH58VTP.js"),[],import.meta.url),"../../../icons/src/svg/plane-fill.svg":()=>I(()=>import("./Y8JkSY1Q.js"),[],import.meta.url),"../../../icons/src/svg/plane-left-fill.svg":()=>I(()=>import("./fcbn7dEz.js"),[],import.meta.url),"../../../icons/src/svg/plane-left.svg":()=>I(()=>import("./BVLuLC_d.js"),[],import.meta.url),"../../../icons/src/svg/plane-move-side.svg":()=>I(()=>import("./CvlC0Mdy.js"),[],import.meta.url),"../../../icons/src/svg/plane-move-top.svg":()=>I(()=>import("./0d_nxpSo.js"),[],import.meta.url),"../../../icons/src/svg/plane-right-fill.svg":()=>I(()=>import("./fXg5cuzX.js"),[],import.meta.url),"../../../icons/src/svg/plane-right.svg":()=>I(()=>import("./wiKQn-WD.js"),[],import.meta.url),"../../../icons/src/svg/plane-side.svg":()=>I(()=>import("./CNtCA93U.js"),[],import.meta.url),"../../../icons/src/svg/plane-tilt-fill.svg":()=>I(()=>import("./DTkgi8hj.js"),[],import.meta.url),"../../../icons/src/svg/plane-tilt.svg":()=>I(()=>import("./D9tOFv7d.js"),[],import.meta.url),"../../../icons/src/svg/plane-top.svg":()=>I(()=>import("./BWh9Twyn.js"),[],import.meta.url),"../../../icons/src/svg/plane-up-fill.svg":()=>I(()=>import("./BjIj2bmK.js"),[],import.meta.url),"../../../icons/src/svg/plane-up.svg":()=>I(()=>import("./SdtunKfP.js"),[],import.meta.url),"../../../icons/src/svg/plane.svg":()=>I(()=>import("./D2YoJCKH.js"),[],import.meta.url),"../../../icons/src/svg/play-circle.svg":()=>I(()=>import("./uuhk4O-q.js"),[],import.meta.url),"../../../icons/src/svg/plus-fill.svg":()=>I(()=>import("./C9jjr-mp.js"),[],import.meta.url),"../../../icons/src/svg/plus.svg":()=>I(()=>import("./qylcM9PI.js"),[],import.meta.url),"../../../icons/src/svg/podium.svg":()=>I(()=>import("./BLCNiHqV.js"),[],import.meta.url),"../../../icons/src/svg/pool.svg":()=>I(()=>import("./BsJRq3XX.js"),[],import.meta.url),"../../../icons/src/svg/power-switch.svg":()=>I(()=>import("./DvvCk8Ct.js"),[],import.meta.url),"../../../icons/src/svg/printer.svg":()=>I(()=>import("./DhQ9zlmb.js"),[],import.meta.url),"../../../icons/src/svg/przelewy-white.svg":()=>I(()=>import("./zeY0-9Fb.js"),[],import.meta.url),"../../../icons/src/svg/przelewy.svg":()=>I(()=>import("./DuD18T_O.js"),[],import.meta.url),"../../../icons/src/svg/pzot.svg":()=>I(()=>import("./gXJbUCBB.js"),[],import.meta.url),"../../../icons/src/svg/queen-bed.svg":()=>I(()=>import("./DsQHEfWI.js"),[],import.meta.url),"../../../icons/src/svg/quick-bus.svg":()=>I(()=>import("./DIktVsOD.js"),[],import.meta.url),"../../../icons/src/svg/r-circle.svg":()=>I(()=>import("./BTIS3K5E.js"),[],import.meta.url),"../../../icons/src/svg/r-fill.svg":()=>I(()=>import("./uU1Y4SBt.js"),[],import.meta.url),"../../../icons/src/svg/r-text.svg":()=>I(()=>import("./DmXgmr-Q.js"),[],import.meta.url),"../../../icons/src/svg/r.svg":()=>I(()=>import("./Bm52gOt5.js"),[],import.meta.url),"../../../icons/src/svg/roadsign.svg":()=>I(()=>import("./C6eDgjL8.js"),[],import.meta.url),"../../../icons/src/svg/roza-kolumba.svg":()=>I(()=>import("./Bd2UxC0w.js"),[],import.meta.url),"../../../icons/src/svg/rzetelna-firma.svg":()=>I(()=>import("./TceUjIS1.js"),[],import.meta.url),"../../../icons/src/svg/sand-toys.svg":()=>I(()=>import("./CX9zV-c8.js"),[],import.meta.url),"../../../icons/src/svg/search-fill.svg":()=>I(()=>import("./CPbrl3Tl.js"),[],import.meta.url),"../../../icons/src/svg/search.svg":()=>I(()=>import("./D7kUFQYe.js"),[],import.meta.url),"../../../icons/src/svg/seat.svg":()=>I(()=>import("./CG7dI3_z.js"),[],import.meta.url),"../../../icons/src/svg/second-minute.svg":()=>I(()=>import("./CitzWe6f.js"),[],import.meta.url),"../../../icons/src/svg/send.svg":()=>I(()=>import("./CnK4UyD1.js"),[],import.meta.url),"../../../icons/src/svg/seven-plus-seven.svg":()=>I(()=>import("./CssQvtJS.js"),[],import.meta.url),"../../../icons/src/svg/share-fill.svg":()=>I(()=>import("./rdBcILwe.js"),[],import.meta.url),"../../../icons/src/svg/share.svg":()=>I(()=>import("./Ymc7-KwV.js"),[],import.meta.url),"../../../icons/src/svg/shield-ok.svg":()=>I(()=>import("./E1xywyV1.js"),[],import.meta.url),"../../../icons/src/svg/shield.svg":()=>I(()=>import("./CYANZ1r9.js"),[],import.meta.url),"../../../icons/src/svg/shopping-cart.svg":()=>I(()=>import("./DUlCh6V9.js"),[],import.meta.url),"../../../icons/src/svg/ski.svg":()=>I(()=>import("./zkgdSj9y.js"),[],import.meta.url),"../../../icons/src/svg/slide.svg":()=>I(()=>import("./jd8zJyVG.js"),[],import.meta.url),"../../../icons/src/svg/sliders.svg":()=>I(()=>import("./DNB9NgH4.js"),[],import.meta.url),"../../../icons/src/svg/sofa.svg":()=>I(()=>import("./ByTM9alb.js"),[],import.meta.url),"../../../icons/src/svg/south-america.svg":()=>I(()=>import("./3U1EfCUg.js"),[],import.meta.url),"../../../icons/src/svg/star-fill.svg":()=>I(()=>import("./Btut2EAY.js"),[],import.meta.url),"../../../icons/src/svg/star.svg":()=>I(()=>import("./B2ErZio5.js"),[],import.meta.url),"../../../icons/src/svg/suitcase-big.svg":()=>I(()=>import("./DFbFWl95.js"),[],import.meta.url),"../../../icons/src/svg/suitcase.svg":()=>I(()=>import("./O9R0gqAU.js"),[],import.meta.url),"../../../icons/src/svg/sun-fill.svg":()=>I(()=>import("./BI_KJeVl.js"),[],import.meta.url),"../../../icons/src/svg/sun-happy.svg":()=>I(()=>import("./BqWNdpf7.js"),[],import.meta.url),"../../../icons/src/svg/sun.svg":()=>I(()=>import("./BeWaQc5x.js"),[],import.meta.url),"../../../icons/src/svg/sunbed.svg":()=>I(()=>import("./BuidNjjq.js"),[],import.meta.url),"../../../icons/src/svg/sunset.svg":()=>I(()=>import("./DKuNGdHJ.js"),[],import.meta.url),"../../../icons/src/svg/target.svg":()=>I(()=>import("./LklxCq1e.js"),[],import.meta.url),"../../../icons/src/svg/test-tube.svg":()=>I(()=>import("./nhntIWAP.js"),[],import.meta.url),"../../../icons/src/svg/time-fast.svg":()=>I(()=>import("./Dsc52nYY.js"),[],import.meta.url),"../../../icons/src/svg/time-pause.svg":()=>I(()=>import("./C70ToROl.js"),[],import.meta.url),"../../../icons/src/svg/time.svg":()=>I(()=>import("./CV5B9Ec7.js"),[],import.meta.url),"../../../icons/src/svg/trip.svg":()=>I(()=>import("./BbymofDL.js"),[],import.meta.url),"../../../icons/src/svg/twitter.svg":()=>I(()=>import("./D6WsPk_3.js"),[],import.meta.url),"../../../icons/src/svg/umbrella.svg":()=>I(()=>import("./BO0NUznP.js"),[],import.meta.url),"../../../icons/src/svg/user-card.svg":()=>I(()=>import("./KSlZs1P0.js"),[],import.meta.url),"../../../icons/src/svg/user-fill.svg":()=>I(()=>import("./jnEGxueQ.js"),[],import.meta.url),"../../../icons/src/svg/user.svg":()=>I(()=>import("./Bc7wj0ud.js"),[],import.meta.url),"../../../icons/src/svg/users.svg":()=>I(()=>import("./C78VQW5Q.js"),[],import.meta.url),"../../../icons/src/svg/vaccination.svg":()=>I(()=>import("./DJIcg_NV.js"),[],import.meta.url),"../../../icons/src/svg/video.svg":()=>I(()=>import("./DFefSIg0.js"),[],import.meta.url),"../../../icons/src/svg/visa-fill.svg":()=>I(()=>import("./D3l7JU7J.js"),[],import.meta.url),"../../../icons/src/svg/voucher-tag.svg":()=>I(()=>import("./CHK7l4kj.js"),[],import.meta.url),"../../../icons/src/svg/wc.svg":()=>I(()=>import("./DmjbLvuL.js"),[],import.meta.url),"../../../icons/src/svg/whatsapp-fill-color.svg":()=>I(()=>import("./C-KjRPNZ.js"),[],import.meta.url),"../../../icons/src/svg/whatsapp-fill.svg":()=>I(()=>import("./BvB3z2yN.js"),[],import.meta.url),"../../../icons/src/svg/world.svg":()=>I(()=>import("./BGiO6rpW.js"),[],import.meta.url),"../../../icons/src/svg/youtube-fill.svg":()=>I(()=>import("./CgE4IF7V.js"),[],import.meta.url),"../../../icons/src/svg/zoom-fill.svg":()=>I(()=>import("./BdIR-gob.js"),[],import.meta.url),"../../../icons/src/svg/zoom.svg":()=>I(()=>import("./DvUIouiF.js"),[],import.meta.url)}),`../../../icons/src/svg/${m}.svg`,7);g.value=w(h.default)}catch{console.error(`Icon ${m} not found`),g.value=""}else m!=null&&m.data?g.value=w(m.data):g.value=""};return[t,n]=Qy(()=>y(r.icon)),await t,n(),Se(()=>r.icon,y),(m,h)=>($(),X("div",{class:Ee(["icons-3__icon",{"icons-3__stroke":l.value&&!d.value,"icons-3__fill":c.value&&!d.value,[d.value]:d.value,"icons-3__variant-outline":f.value,"icons-3__variant-fill":p.value}]),style:pn(o.value),innerHTML:O(g)},null,14,IH))}}),RH=pe({__name:"r-chevron",props:{rotate:{type:Boolean},color:{default:"black"},size:{default:"medium"},rotateType:{default:"rotate"},idDti:{},sectionDti:{}},setup(e){const{DATA_TEST_ID:t,createDataTestId:n}=Mt(),r={small:"12px",medium:"17px","medium-thin":"17px","medium-bold":"17px",large:"30px"},s={primary:mi.PRIMARY,accent:mi.ACCENT,black:mi.TEXT,gray:mi.GRAY_DARKER},i=e,o=z(()=>`r-chevron--${i.rotateType}`),a=z(()=>r[i.size]),l=z(()=>s[i.color]),c=z(()=>`r-chevron--${i.size}`);return(u,d)=>($(),se(O(ot),St({class:["r-chevron",{[o.value]:u.rotate,[c.value]:a.value}],icon:"chevron-down",color:l.value,size:a.value,[O(t)||""]:O(n)(O(Be).RChevron,u.sectionDti,u.idDti)}),null,16,["color","class","size"]))}}),fS=pe({__name:"r-divider",props:{type:{},size:{default:"large"},thickness:{default:"small"},color:{default:"gray-darker"},space:{default:"large"},idDti:{},sectionDti:{}},setup(e){const{DATA_TEST_ID:t,createDataTestId:n}=Mt(),r=e,s=z(()=>r.type==="horizontal"?"h":"v"),i=z(()=>`r-divider--${s.value}`),o=z(()=>`r-divider--${s.value}-size-${r.size}`),a=z(()=>`r-divider--${s.value}-thickness-${r.thickness}`),l=z(()=>`r-divider--${s.value}-space-${r.space}`);return(c,u)=>($(),X("div",St({class:["r-divider",{[`r-divider--c-${c.color}`]:c.color,[i.value]:c.type,[o.value]:c.size,[a.value]:c.thickness,[l.value]:c.space}],[O(t)||""]:O(n)(O(Be).RDivider,c.sectionDti,c.idDti)}),null,16))}}),CH=pe({__name:"r-accordion",props:{active:{type:Boolean},activeClass:{default:""},containerTag:{default:"div"},titleTag:{default:"h4"},titleVariant:{default:"h4"},title:{default:""},headerColor:{default:"black"},titleClass:{default:""},chevronSize:{default:"medium"},contentClass:{default:""},activeUnderline:{type:Boolean,default:!1},underlindeType:{default:"horizontal"},underlindeSize:{default:"large"},underlindeThickness:{default:"small"},underlindeColor:{default:"primary"},underlindeSpace:{default:"small"},idDti:{},sectionDti:{}},emits:["toggle"],setup(e){const{DATA_TEST_ID:t,createDataTestId:n}=Mt();return(r,s)=>($(),se(cs(r.containerTag),St({class:["r-accordion",{[r.activeClass]:r.active}],[O(t)||""]:O(n)(O(Be).RAccordion,r.sectionDti,r.idDti)}),{default:de(()=>[Z("div",{class:"r-accordion__header",onClick:s[0]||(s[0]=i=>r.$emit("toggle",!r.active))},[r.$slots.header?Te(r.$slots,"header",{key:0}):($(),se(at,{key:1,class:Ee({[r.titleClass]:r.titleClass}),color:r.headerColor,variant:r.titleVariant,tag:r.titleTag,"section-dti":r.sectionDti,"id-dti":r.idDti},{default:de(()=>[Le(Ve(r.title),1)]),_:1},8,["class","color","variant","tag","section-dti","id-dti"])),Q(RH,{class:"r-accordion__chevron",color:r.headerColor,size:r.chevronSize,rotate:r.active},null,8,["color","size","rotate"])]),Z("div",{class:Ee(["r-accordion__content-wrapper",{"r-accordion__content-wrapper--active":r.active}])},[Z("div",{class:Ee(["r-accordion__content",{[r.contentClass]:r.contentClass,"r-accordion__content--active":r.active}])},[Te(r.$slots,"default")],2)],2),r.activeUnderline?($(),se(fS,{key:0,type:r.underlindeType,size:r.underlindeSize,color:r.underlindeColor,space:r.underlindeSpace,thickness:r.underlindeThickness},null,8,["type","size","color","space","thickness"])):fe("",!0)]),_:3},16,["class"]))}}),AH=b0('<div class="r-spinner-sun"></div><div class="r-spinner-element"></div><div class="r-spinner-element"></div><div class="r-spinner-element"></div><div class="r-spinner-element"></div><div class="r-spinner-element"></div><div class="r-spinner-element"></div><div class="r-spinner-element"></div><div class="r-spinner-element"></div>',9),OH=[AH],PH=pe({__name:"r-spinner",props:{size:{default:"small"},color:{default:"accent"},idDti:{},sectionDti:{}},setup(e){const{DATA_TEST_ID:t,createDataTestId:n}=Mt(),r=e,s=z(()=>`r-spinner--${r.size}`),i=z(()=>`r-spinner--${r.color}`);return(o,a)=>($(),X("div",St({class:["r-spinner",{[s.value]:o.size,[i.value]:o.color}],[O(t)||""]:O(n)(O(Be).RSpinner,o.sectionDti,o.idDti)}),OH,16))}}),Zi=pe({__name:"r-button",props:{loading:{type:Boolean,default:!1},variant:{default:"contained"},color:{default:"primary"},uppercase:{type:Boolean,default:!1},bType:{default:"only-text"},hoverEffect:{type:Boolean,default:!0},svgMarginType:{default:"left"},tag:{default:"button"},componentDti:{default:Be.RButton},idDti:{},sectionDti:{}},setup(e){const{DATA_TEST_ID:t,createDataTestId:n}=Mt(),r=e,s={left:"svg-margin-left",right:"svg-margin-right",no:"svg-no-margin"},i=z(()=>`r-button--${r.color}`),o=z(()=>`r-button--${r.variant}`),a=z(()=>`r-button--${r.bType}`),l=z(()=>r.color==="accent"?"primary":"accent"),c=z(()=>`r-button--${s[r.svgMarginType]}`);return(u,d)=>($(),se(cs(u.tag),St({class:["r-button",{"r-button--uppercase":u.uppercase,[i.value]:i.value,"r-button--hover":u.hoverEffect,[o.value]:o.value,[a.value]:a.value,"r-button--loading":u.loading,[c.value]:c.value}],[O(t)||""]:O(n)(u.componentDti,u.sectionDti,u.idDti)}),{default:de(()=>[u.loading?($(),se(PH,{key:0,size:"small",color:l.value,"section-dti":u.sectionDti,"id-dti":u.idDti},null,8,["color","section-dti","id-dti"])):($(),X(Ce,{key:1},[Te(u.$slots,"default"),Te(u.$slots,"icon",{class:"r-button__icon"})],64))]),_:3},16,["class"]))}}),LH=["tabindex"],DH=pe({__name:"r-card",props:{display:{default:"column"},border:{type:Boolean,default:!1},borderRadius:{default:"none"},imgBorderRadius:{default:"none"},headerClass:{},imgClass:{},bodyClass:{},chipsClass:{},footerClass:{},floatingButtonsClass:{},style:{type:[Boolean,null,String,Object,Array]},isFocusable:{type:Boolean,default:!1},componentDti:{default:Be.RCard},idDti:{},sectionDti:{}},emits:["getRef"],setup(e,{emit:t}){const{DATA_TEST_ID:n,createDataTestId:r}=Mt(),s=t,i=e,o=te(null),a=z(()=>`r-card--${i.display}`),l=z(()=>`r-card--border-${i.borderRadius}`),c=z(()=>`r-card__img--border-${i.imgBorderRadius}`),u=z(()=>`r-card__card-img--border-${i.borderRadius}`);return Dt(()=>{o.value&&(s("getRef",o.value),o.value.focus())}),(d,f)=>($(),X("div",St({class:["r-card",{[a.value]:d.display,[l.value]:d.borderRadius!=="none","r-card--border":d.border}],style:i.style||{},[O(n)||""]:O(r)(d.componentDti,d.sectionDti,d.idDti)}),[d.$slots.header?($(),X("div",{key:0,class:Ee(["r-card__header",{[`${d.headerClass}`]:d.headerClass}])},[Te(d.$slots,"header")],2)):fe("",!0),d.$slots.img?($(),X("div",{key:1,class:Ee(["r-card__img",{[`${d.imgClass}`]:d.imgClass,[u.value]:d.borderRadius!=="none",[c.value]:d.imgBorderRadius!=="none"}])},[Te(d.$slots,"img"),d.$slots.chips?($(),X("div",{key:0,class:Ee(["r-card__chips",{[`${d.chipsClass}`]:d.chipsClass}])},[Te(d.$slots,"chips")],2)):fe("",!0)],2)):fe("",!0),d.$slots.body?($(),X("div",{key:2,ref_key:"bodyRef",ref:o,tabindex:d.isFocusable?1:void 0,class:Ee(["r-card__body",{"r-card__body--overlay":d.display==="overlay",[`${d.bodyClass}`]:d.bodyClass}])},[Te(d.$slots,"body")],10,LH)):fe("",!0),d.$slots.footer?($(),X("div",{key:3,class:Ee(["r-card__footer",{[`${d.footerClass}`]:d.footerClass}])},[Te(d.$slots,"footer")],2)):fe("",!0),d.$slots["floating-buttons"]?($(),X("div",{key:4,name:"floating-buttons",class:Ee(["r-card__floating-buttons",{[`${d.floatingButtonsClass}`]:d.floatingButtonsClass}])},[Te(d.$slots,"floating-buttons")],2)):fe("",!0),Te(d.$slots,"default")],16))}}),kf=pe({__name:"r-icon-close",props:{size:{default:"14px"},color:{default:mi.TEXT}},setup(e){return(t,n)=>($(),se(O(ot),{icon:"close",color:t.color,size:t.size},null,8,["color","size"]))}}),pS=pe({inheritAttrs:!1,__name:"r-tooltip",props:{position:{default:"bottom-right"},variant:{default:"hover"},animation:{type:Boolean,default:!0},location:{default:"teleport"},maxWidth:{default:void 0},stopPropagation:{type:Boolean,default:!0},preventDefault:{type:Boolean,default:!1},showCloseButton:{type:Boolean,default:!0},toggleOnClick:{type:Boolean,default:!1},idDti:{},sectionDti:{}},emits:["close","tooltipShow"],setup(e,{emit:t}){const{DATA_TEST_ID:n,createDataTestId:r}=Mt(),s=te(null),i=te(null),o=te(!1),a=te(!1),l=te(!1),c=e,u=t;Se(()=>c.variant,L=>{L==="hover"?(R(),D()):(S(),A())}),Se(()=>o.value,L=>u("tooltipShow",L));const d=z(()=>`r-tooltip__element--${c.position}`),f=z(()=>`r-tooltip__element--${c.location}`),p=z(()=>`r-tooltip__element--width-${c.maxWidth}`),g=L=>{const N=L.getBoundingClientRect();return{left:N.left+window.scrollX,top:N.top+window.scrollY}},v=()=>{a.value=!0,l.value=!1},w=()=>{setTimeout(()=>{i.value&&!l.value&&m()},100)},y=()=>{o.value=!0,a.value=!1,l.value=!0,nn(()=>{i.value&&(i.value.addEventListener("mouseenter",v),i.value.addEventListener("mouseleave",w)),b()})},m=()=>{var L,N;(L=i.value)==null||L.removeEventListener("mouseenter",v),(N=i.value)==null||N.removeEventListener("mouseleave",w),o.value=!1},h=()=>{m(),u("close")},_=()=>{setTimeout(()=>{!a.value&&i.value&&m()},100)},b=()=>{if(s.value&&s.value.parentElement&&i.value&&c.location==="teleport"){const L=s.value.parentElement,N=g(L),x={left:0,top:0};switch(c.position){case"top-left":x.top=N.top,x.left=N.left;break;case"top":x.top=N.top,x.left=N.left+L.offsetWidth/2;break;case"top-right":x.top=N.top,x.left=N.left+L.offsetWidth;break;case"left":x.top=N.top+L.offsetHeight/2,x.left=N.left;break;case"right":x.top=N.top+L.offsetHeight/2,x.left=N.left+L.offsetWidth;break;case"bottom-left":x.top=N.top+L.offsetHeight,x.left=N.left;break;case"bottom":x.top=N.top+L.offsetHeight,x.left=N.left+L.offsetWidth/2;break;case"bottom-right":x.top=N.top+L.offsetHeight,x.left=N.left+L.offsetWidth;break;case"start-top-right":x.top=N.top,x.left=N.left+L.offsetWidth;break;case"start-top-left":x.top=N.top,x.left=N.left;break}i.value.style.top=`${x.top}px`,i.value.style.left=`${x.left}px`}},E=L=>{c.preventDefault&&L.preventDefault(),c.stopPropagation&&L.stopPropagation(),c.toggleOnClick?o.value=!o.value:o.value=!0,nn(()=>{b()}),b()},R=()=>{if(s.value&&s.value.parentElement){const L=s.value.parentElement;L&&(L.addEventListener("mouseenter",y),L.addEventListener("mouseleave",_))}},S=()=>{if(s.value&&s.value.parentElement){const L=s.value.parentElement;L&&(L.removeEventListener("mouseenter",y),L.removeEventListener("mouseleave",_))}},A=()=>{if(s.value&&s.value.parentElement){const L=s.value.parentElement;L&&L.addEventListener("click",E)}},D=()=>{if(s.value&&s.value.parentElement){const L=s.value.parentElement;L&&L.removeEventListener("click",E)}};return Dt(()=>{c.variant==="hover"?R():c.variant==="click"&&A()}),Tr(()=>{c.variant==="hover"?S():c.variant==="click"&&D()}),(L,N)=>{const x=fp("r-click-away");return L.variant==="click"?($(),X("div",St({key:0,ref_key:"tooltipRef",ref:s,[O(n)||""]:O(r)(O(Be).RTooltip,`${L.sectionDti}-wrapper`,L.idDti)}),[L.location==="teleport"?($(),se(Dl,{key:0,to:"body"},[Q(zn,{name:"r-tooltip-fade",appear:"",css:L.animation},{default:de(()=>[o.value?Ls(($(),X("div",rt({key:0},L.$attrs,{ref_key:"toolTipElementRef",ref:i,class:["r-tooltip__element",{[d.value]:L.position,[f.value]:L.location,[p.value]:L.maxWidth}],[O(n)||""]:O(r)(O(Be).RTooltip,`${L.sectionDti}-content`,L.idDti)}),[Te(L.$slots,"default",{close:h}),L.showCloseButton?($(),se(Zi,{key:0,class:"r-tooltip__close",variant:"text","b-type":"icon",onClick:h},{default:de(()=>[Te(L.$slots,"close")]),_:3})):fe("",!0)],16)),[[x,h]]):fe("",!0)]),_:3},8,["css"])])):fe("",!0),L.location==="absolute"?($(),se(zn,{key:1,name:"r-tooltip-fade",appear:"",css:L.animation},{default:de(()=>[o.value?Ls(($(),X("div",rt({key:0},L.$attrs,{ref_key:"toolTipElementRef",ref:i,class:["r-tooltip__element",{[d.value]:L.position,[f.value]:L.location,[p.value]:L.maxWidth}],[O(n)||""]:O(r)(O(Be).RTooltip,`${L.sectionDti}-content`,L.idDti)}),[Te(L.$slots,"default",{close:h}),L.showCloseButton?($(),se(Zi,{key:0,class:"r-tooltip__close",variant:"text","b-type":"icon",onClick:h},{default:de(()=>[Te(L.$slots,"close")]),_:3})):fe("",!0)],16)),[[x,h]]):fe("",!0)]),_:3},8,["css"])):fe("",!0)],16)):($(),X("div",St({key:1,ref_key:"tooltipRef",ref:s,class:"r-tooltip",[O(n)||""]:O(r)(O(Be).RTooltip,`${L.sectionDti}-wrapper`,L.idDti)}),[L.location==="teleport"?($(),se(Dl,{key:0,to:"body"},[Q(zn,{name:" r-tooltip-fade",appear:"",css:L.animation},{default:de(()=>[o.value?($(),X("div",rt({key:0},L.$attrs,{ref_key:"toolTipElementRef",ref:i,class:["r-tooltip__element",{[d.value]:L.position,[f.value]:L.location,[p.value]:L.maxWidth}],[O(n)||""]:O(r)(O(Be).RTooltip,`${L.sectionDti}-content`,L.idDti)}),[Te(L.$slots,"default",{close:h})],16)):fe("",!0)]),_:3},8,["css"])])):fe("",!0),L.location==="absolute"?($(),se(zn,{key:1,name:" r-tooltip-fade",appear:"",css:L.animation},{default:de(()=>[o.value?($(),X("div",rt({key:0},L.$attrs,{ref_key:"toolTipElementRef",ref:i,class:["r-tooltip__element",{[d.value]:L.position,[f.value]:L.location,[p.value]:L.maxWidth}],[O(n)||""]:O(r)(O(Be).RTooltip,`${L.sectionDti}-content`,L.idDti)}),[Te(L.$slots,"default",{close:h})],16)):fe("",!0)]),_:3},8,["css"])):fe("",!0)],16))}}}),NH="unset",MH="hidden";function hS(){let e=null;return{blockScroll:()=>{const r=window.innerWidth-document.body.clientWidth;e=document.documentElement.style.paddingRight,document.documentElement.style.overflow=MH;const s=r+"px";document.documentElement.style.paddingRight=s,document.documentElement.style.setProperty("--scroll-bar-width",s)},unblockScroll:()=>{document.documentElement.style.overflow=NH;const r=e??"";document.documentElement.style.paddingRight=r,document.documentElement.style.setProperty("--scroll-bar-width",r)}}}const gS=pe({inheritAttrs:!1,__name:"r-modal",props:{closeOnBgClick:{type:Boolean,default:!0},backdropColor:{default:"rgb(0 0 0 / 75%)"},mode:{default:"auto"},modelValue:{type:Boolean,default:!1},showModalPrevent:{type:Boolean,default:!1},breakpoint:{default:"desktop-large"},stopPropagation:{type:Boolean,default:!1},canUnblockScroll:{type:Boolean,default:!0},contentClass:{},componentDti:{default:Be.RModal},idDti:{},sectionDti:{}},emits:["update:modelValue","close"],setup(e,{emit:t}){const{DATA_TEST_ID:n,createDataTestId:r}=Mt(),s=te(null),i=te(!1),o=te(!0),a=e,l=t,{closeOnBgClick:c,backdropColor:u,mode:d,showModalPrevent:f,stopPropagation:p}=rn(a),{blockScroll:g,unblockScroll:v}=hS(),w=()=>{g()},y=()=>{a.canUnblockScroll&&v()},m=S=>{f.value&&S.preventDefault(),p.value&&S.stopPropagation(),h()},h=()=>{w(),i.value=!0},_=()=>{y(),i.value=!1},b=()=>{d.value==="auto"?_():i.value=!1,l("close")},E=()=>{if(s.value&&s.value.parentElement){const S=s.value.parentElement;S&&S.addEventListener("click",m)}},R=()=>{if(s.value&&s.value.parentElement){const S=s.value.parentElement;S&&S.removeEventListener("click",m)}};return Se(()=>a.modelValue,S=>{i.value=S,S?h():y()}),Dt(()=>{d.value==="auto"&&E(),a.modelValue?(h(),setTimeout(()=>o.value=!1,300)):o.value=!1}),Tr(()=>{y(),d.value==="auto"&&R()}),Se(()=>i.value,S=>{l("update:modelValue",S)}),(S,A)=>($(),X("div",{ref_key:"modalRef",ref:s},[($(),se(Dl,{to:"body"},[Q(zn,{name:"r-modal-fade",appear:"",css:!o.value},{default:de(()=>[i.value?($(),X("div",rt({key:0},S.$attrs,{class:`r-modal--breakpoint-${S.breakpoint} r-modal__element`,[O(n)||""]:O(r)(S.componentDti,S.sectionDti,S.idDti)}),[Z("div",{class:Ee(["r-modal__content",S.contentClass])},[Te(S.$slots,"default",{close:b})],2),Z("div",{class:"r-modal__background",style:pn({"background-color":O(u)}),onClick:A[0]||(A[0]=D=>O(c)?b():()=>{})},null,4)],16)):fe("",!0)]),_:3},8,["css"])]))],512))}}),$H=pe({__name:"r-modal-card",props:{title:{},closeable:{type:Boolean,default:!0},backdropColor:{default:"rgb(0 0 0 / 75%)"},breakpoint:{default:"desktop-large"},mode:{default:"auto"},modelValue:{type:Boolean,default:!1},showModalPrevent:{type:Boolean,default:!1},modalBorderRadius:{type:Boolean,default:!1},bodyClass:{default:""},stopPropagation:{type:Boolean,default:!1},canUnblockScroll:{type:Boolean,default:!0},isFocusable:{type:Boolean,default:!1},contentClass:{},idDti:{},sectionDti:{}},emits:["update:modelValue","close","getCardBodyRef"],setup(e,{emit:t}){const n=DI(),r=t,s=e,{closeable:i,backdropColor:o,title:a,breakpoint:l,mode:c,modelValue:u,showModalPrevent:d,modalBorderRadius:f}=rn(s);return(p,g)=>($(),se(gS,{"close-on-bg-click":O(i),"backdrop-color":O(o),mode:O(c),"model-value":O(u),"show-modal-prevent":O(d),"stop-propagation":p.stopPropagation,breakpoint:O(l),"component-dti":O(Be).RModalCard,"section-dti":p.sectionDti,"id-dti":p.idDti,"content-class":p.contentClass,"can-unblock-scroll":p.canUnblockScroll,"onUpdate:modelValue":g[1]||(g[1]=v=>p.$emit("update:modelValue",v)),onClose:g[2]||(g[2]=v=>r("close"))},{default:de(v=>[Q(DH,{class:Ee(["r-modal-card",{[`r-modal-card--breakpoint-${O(l)}`]:!0,"r-modal-card--border-radius":O(f)}]),"header-class":"r-modal-card__header","is-focusable":p.isFocusable,"body-class":`r-modal-card__body ${p.bodyClass}`,"footer-class":O(n).footer?"r-modal-card__footer":"r-modal-card__footer r-modal-card__footer--empty",onGetRef:g[0]||(g[0]=w=>r("getCardBodyRef",w))},Jy({body:de(()=>[Te(p.$slots,"default",{close:v.close})]),footer:de(()=>[Te(p.$slots,"footer",{close:v.close})]),_:2},[O(a)?{name:"header",fn:de(()=>[Q(at,{variant:"h5","font-family":"main","font-weight":"bold"},{default:de(()=>[Le(Ve(O(a)),1)]),_:1}),O(i)?($(),se(kf,{key:0,role:"button","aria-label":"Zamknij modal",tabindex:"0",class:"r-modal-card__x-icon",size:"22px",onClick:v.close},null,8,["onClick"])):fe("",!0)]),key:"0"}:void 0]),1032,["class","is-focusable","body-class","footer-class"])]),_:3},8,["close-on-bg-click","backdrop-color","mode","model-value","show-modal-prevent","stop-propagation","breakpoint","component-dti","section-dti","id-dti","content-class","can-unblock-scroll"]))}}),x8=pe({inheritAttrs:!1,__name:"r-auto-modal-tooltip",props:{modalTitle:{},breakpoint:{default:Us.DESKTOP_LARGE},modalBreakpoint:{default:"mobile-small"},showModalPrevent:{type:Boolean,default:!1},tooltipPosition:{default:"right"},tooltipVariant:{default:"hover"},modalBorderRadius:{type:Boolean,default:!1},modalBodyClass:{default:""},animation:{type:Boolean,default:!0},location:{default:"teleport"},stopPropagation:{type:Boolean,default:!0},tooltipMaxWidth:{default:void 0},contentClass:{}},emits:["close","modalInfo","tooltipInfo"],setup(e){const{greaterOrEqual:t}=nH(),n=e,{breakpoint:r,showModalPrevent:s,tooltipVariant:i,modalBorderRadius:o}=rn(n),a=l=>{i.value==="click"&&n.stopPropagation&&l.stopPropagation()};return(l,c)=>l.$slots.tooltip&&O(t)(O(r))?Te(l.$slots,"tooltip",{key:0}):O(t)(O(r))?($(),se(pS,rt({key:1,class:"r-auto-modal-tooltip__tooltip"},l.$attrs,{variant:O(i),position:l.tooltipPosition,animation:l.animation,"stop-propagation":l.stopPropagation,location:l.location,"max-width":l.tooltipMaxWidth,onClick:a,onClose:c[0]||(c[0]=u=>l.$emit("close")),onTooltipShow:c[1]||(c[1]=u=>l.$emit("tooltipInfo",u))}),{default:de(({close:u})=>[Te(l.$slots,"default",{close:u})]),close:de(()=>[Te(l.$slots,"close")]),_:3},16,["variant","position","animation","stop-propagation","location","max-width"])):l.$slots.modal?Te(l.$slots,"tooltip",{key:2}):($(),se($H,rt({key:3},l.$attrs,{class:"r-auto-modal-tooltip__modal",breakpoint:l.modalBreakpoint,title:l.modalTitle,"stop-propagation":l.stopPropagation,"show-modal-prevent":O(s),"content-class":l.contentClass,"modal-border-radius":O(o),"body-class":l.modalBodyClass,"onUpdate:modelValue":c[2]||(c[2]=u=>l.$emit("modalInfo",u)),onClose:c[3]||(c[3]=u=>l.$emit("close"))}),Jy({default:de(({close:u})=>[Te(l.$slots,"default",{close:u})]),_:2},[l.$slots.footer?{name:"footer",fn:de(({close:u})=>[Te(l.$slots,"footer",{close:u})]),key:"0"}:void 0]),1040,["breakpoint","title","stop-propagation","show-modal-prevent","content-class","modal-border-radius","body-class"]))}}),xH=e=>e.includes("?")?`${e.split("?")[0]}?class=lazyLoad`:`${e}?class=lazyLoad`;function iv(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function hh(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach(n=>{typeof e[n]>"u"?e[n]=t[n]:iv(t[n])&&iv(e[n])&&Object.keys(t[n]).length>0&&hh(e[n],t[n])})}const mS={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function uo(){const e=typeof document<"u"?document:{};return hh(e,mS),e}const UH={document:mS,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function on(){const e=typeof window<"u"?window:{};return hh(e,UH),e}function FH(e){return e===void 0&&(e=""),e.trim().split(" ").filter(t=>!!t.trim())}function BH(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function If(e,t){return t===void 0&&(t=0),setTimeout(e,t)}function ic(){return Date.now()}function HH(e){const t=on();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function jH(e,t){t===void 0&&(t="x");const n=on();let r,s,i;const o=HH(e);return n.WebKitCSSMatrix?(s=o.transform||o.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map(a=>a.replace(",",".")).join(", ")),i=new n.WebKitCSSMatrix(s==="none"?"":s)):(i=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=i.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?s=i.m41:r.length===16?s=parseFloat(r[12]):s=parseFloat(r[4])),t==="y"&&(n.WebKitCSSMatrix?s=i.m42:r.length===16?s=parseFloat(r[13]):s=parseFloat(r[5])),s||0}function ol(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function zH(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function Yt(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let n=1;n<arguments.length;n+=1){const r=n<0||arguments.length<=n?void 0:arguments[n];if(r!=null&&!zH(r)){const s=Object.keys(Object(r)).filter(i=>t.indexOf(i)<0);for(let i=0,o=s.length;i<o;i+=1){const a=s[i],l=Object.getOwnPropertyDescriptor(r,a);l!==void 0&&l.enumerable&&(ol(e[a])&&ol(r[a])?r[a].__swiper__?e[a]=r[a]:Yt(e[a],r[a]):!ol(e[a])&&ol(r[a])?(e[a]={},r[a].__swiper__?e[a]=r[a]:Yt(e[a],r[a])):e[a]=r[a])}}}return e}function al(e,t,n){e.style.setProperty(t,n)}function _S(e){let{swiper:t,targetPosition:n,side:r}=e;const s=on(),i=-t.translate;let o=null,a;const l=t.params.speed;t.wrapperEl.style.scrollSnapType="none",s.cancelAnimationFrame(t.cssModeFrameID);const c=n>i?"next":"prev",u=(f,p)=>c==="next"&&f>=p||c==="prev"&&f<=p,d=()=>{a=new Date().getTime(),o===null&&(o=a);const f=Math.max(Math.min((a-o)/l,1),0),p=.5-Math.cos(f*Math.PI)/2;let g=i+p*(n-i);if(u(g,n)&&(g=n),t.wrapperEl.scrollTo({[r]:g}),u(g,n)){t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[r]:g})}),s.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=s.requestAnimationFrame(d)};d()}function ar(e,t){return t===void 0&&(t=""),[...e.children].filter(n=>n.matches(t))}function oc(e){try{console.warn(e);return}catch{}}function Rf(e,t){t===void 0&&(t=[]);const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:FH(t)),n}function VH(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function WH(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function Yr(e,t){return on().getComputedStyle(e,null).getPropertyValue(t)}function ov(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function KH(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function av(e,t,n){const r=on();return e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom"))}function U8(e){return(Array.isArray(e)?e:[e]).filter(t=>!!t)}let Mu;function GH(){const e=on(),t=uo();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function vS(){return Mu||(Mu=GH()),Mu}let $u;function qH(e){let{userAgent:t}=e===void 0?{}:e;const n=vS(),r=on(),s=r.navigator.platform,i=t||r.navigator.userAgent,o={ios:!1,android:!1},a=r.screen.width,l=r.screen.height,c=i.match(/(Android);?[\s\/]+([\d.]+)?/);let u=i.match(/(iPad).*OS\s([\d_]+)/);const d=i.match(/(iPod)(.*OS\s([\d_]+))?/),f=!u&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p=s==="Win32";let g=s==="MacIntel";const v=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!u&&g&&n.touch&&v.indexOf(`${a}x${l}`)>=0&&(u=i.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),g=!1),c&&!p&&(o.os="android",o.android=!0),(u||f||d)&&(o.os="ios",o.ios=!0),o}function yS(e){return e===void 0&&(e={}),$u||($u=qH(e)),$u}let xu;function YH(){const e=on(),t=yS();let n=!1;function r(){const a=e.navigator.userAgent.toLowerCase();return a.indexOf("safari")>=0&&a.indexOf("chrome")<0&&a.indexOf("android")<0}if(r()){const a=String(e.navigator.userAgent);if(a.includes("Version/")){const[l,c]=a.split("Version/")[1].split(" ")[0].split(".").map(u=>Number(u));n=l<16||l===16&&c<2}}const s=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),i=r(),o=i||s&&t.ios;return{isSafari:n||i,needPerspectiveFix:n,need3dFix:o,isWebView:s}}function JH(){return xu||(xu=YH()),xu}function XH(e){let{swiper:t,on:n,emit:r}=e;const s=on();let i=null,o=null;const a=()=>{!t||t.destroyed||!t.initialized||(r("beforeResize"),r("resize"))},l=()=>{!t||t.destroyed||!t.initialized||(i=new ResizeObserver(d=>{o=s.requestAnimationFrame(()=>{const{width:f,height:p}=t;let g=f,v=p;d.forEach(w=>{let{contentBoxSize:y,contentRect:m,target:h}=w;h&&h!==t.el||(g=m?m.width:(y[0]||y).inlineSize,v=m?m.height:(y[0]||y).blockSize)}),(g!==f||v!==p)&&a()})}),i.observe(t.el))},c=()=>{o&&s.cancelAnimationFrame(o),i&&i.unobserve&&t.el&&(i.unobserve(t.el),i=null)},u=()=>{!t||t.destroyed||!t.initialized||r("orientationchange")};n("init",()=>{if(t.params.resizeObserver&&typeof s.ResizeObserver<"u"){l();return}s.addEventListener("resize",a),s.addEventListener("orientationchange",u)}),n("destroy",()=>{c(),s.removeEventListener("resize",a),s.removeEventListener("orientationchange",u)})}function ZH(e){let{swiper:t,extendParams:n,on:r,emit:s}=e;const i=[],o=on(),a=function(u,d){d===void 0&&(d={});const f=o.MutationObserver||o.WebkitMutationObserver,p=new f(g=>{if(t.__preventObserver__)return;if(g.length===1){s("observerUpdate",g[0]);return}const v=function(){s("observerUpdate",g[0])};o.requestAnimationFrame?o.requestAnimationFrame(v):o.setTimeout(v,0)});p.observe(u,{attributes:typeof d.attributes>"u"?!0:d.attributes,childList:t.isElement||(typeof d.childList>"u"?!0:d).childList,characterData:typeof d.characterData>"u"?!0:d.characterData}),i.push(p)},l=()=>{if(t.params.observer){if(t.params.observeParents){const u=KH(t.hostEl);for(let d=0;d<u.length;d+=1)a(u[d])}a(t.hostEl,{childList:t.params.observeSlideChildren}),a(t.wrapperEl,{attributes:!1})}},c=()=>{i.forEach(u=>{u.disconnect()}),i.splice(0,i.length)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",l),r("destroy",c)}var QH={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;const s=n?"unshift":"push";return e.split(" ").forEach(i=>{r.eventsListeners[i]||(r.eventsListeners[i]=[]),r.eventsListeners[i][s](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;function s(){r.off(e,s),s.__emitterProxy&&delete s.__emitterProxy;for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];t.apply(r,o)}return s.__emitterProxy=t,r.on(e,s,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach(r=>{typeof t>"u"?n.eventsListeners[r]=[]:n.eventsListeners[r]&&n.eventsListeners[r].forEach((s,i)=>{(s===t||s.__emitterProxy&&s.__emitterProxy===t)&&n.eventsListeners[r].splice(i,1)})}),n},emit(){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsListeners)return e;let t,n,r;for(var s=arguments.length,i=new Array(s),o=0;o<s;o++)i[o]=arguments[o];return typeof i[0]=="string"||Array.isArray(i[0])?(t=i[0],n=i.slice(1,i.length),r=e):(t=i[0].events,n=i[0].data,r=i[0].context||e),n.unshift(r),(Array.isArray(t)?t:t.split(" ")).forEach(l=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(c=>{c.apply(r,[l,...n])}),e.eventsListeners&&e.eventsListeners[l]&&e.eventsListeners[l].forEach(c=>{c.apply(r,n)})}),e}};function ej(){const e=this;let t,n;const r=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=r.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?n=e.params.height:n=r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(Yr(r,"padding-left")||0,10)-parseInt(Yr(r,"padding-right")||0,10),n=n-parseInt(Yr(r,"padding-top")||0,10)-parseInt(Yr(r,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function tj(){const e=this;function t(D,L){return parseFloat(D.getPropertyValue(e.getDirectionLabel(L))||0)}const n=e.params,{wrapperEl:r,slidesEl:s,size:i,rtlTranslate:o,wrongRTL:a}=e,l=e.virtual&&n.virtual.enabled,c=l?e.virtual.slides.length:e.slides.length,u=ar(s,`.${e.params.slideClass}, swiper-slide`),d=l?e.virtual.slides.length:u.length;let f=[];const p=[],g=[];let v=n.slidesOffsetBefore;typeof v=="function"&&(v=n.slidesOffsetBefore.call(e));let w=n.slidesOffsetAfter;typeof w=="function"&&(w=n.slidesOffsetAfter.call(e));const y=e.snapGrid.length,m=e.slidesGrid.length;let h=n.spaceBetween,_=-v,b=0,E=0;if(typeof i>"u")return;typeof h=="string"&&h.indexOf("%")>=0?h=parseFloat(h.replace("%",""))/100*i:typeof h=="string"&&(h=parseFloat(h)),e.virtualSize=-h,u.forEach(D=>{o?D.style.marginLeft="":D.style.marginRight="",D.style.marginBottom="",D.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(al(r,"--swiper-centered-offset-before",""),al(r,"--swiper-centered-offset-after",""));const R=n.grid&&n.grid.rows>1&&e.grid;R?e.grid.initSlides(u):e.grid&&e.grid.unsetSlides();let S;const A=n.slidesPerView==="auto"&&n.breakpoints&&Object.keys(n.breakpoints).filter(D=>typeof n.breakpoints[D].slidesPerView<"u").length>0;for(let D=0;D<d;D+=1){S=0;let L;if(u[D]&&(L=u[D]),R&&e.grid.updateSlide(D,L,u),!(u[D]&&Yr(L,"display")==="none")){if(n.slidesPerView==="auto"){A&&(u[D].style[e.getDirectionLabel("width")]="");const N=getComputedStyle(L),x=L.style.transform,W=L.style.webkitTransform;if(x&&(L.style.transform="none"),W&&(L.style.webkitTransform="none"),n.roundLengths)S=e.isHorizontal()?av(L,"width"):av(L,"height");else{const ee=t(N,"width"),K=t(N,"padding-left"),ce=t(N,"padding-right"),oe=t(N,"margin-left"),Xe=t(N,"margin-right"),nt=N.getPropertyValue("box-sizing");if(nt&&nt==="border-box")S=ee+oe+Xe;else{const{clientWidth:Je,offsetWidth:He}=L;S=ee+K+ce+oe+Xe+(He-Je)}}x&&(L.style.transform=x),W&&(L.style.webkitTransform=W),n.roundLengths&&(S=Math.floor(S))}else S=(i-(n.slidesPerView-1)*h)/n.slidesPerView,n.roundLengths&&(S=Math.floor(S)),u[D]&&(u[D].style[e.getDirectionLabel("width")]=`${S}px`);u[D]&&(u[D].swiperSlideSize=S),g.push(S),n.centeredSlides?(_=_+S/2+b/2+h,b===0&&D!==0&&(_=_-i/2-h),D===0&&(_=_-i/2-h),Math.abs(_)<1/1e3&&(_=0),n.roundLengths&&(_=Math.floor(_)),E%n.slidesPerGroup===0&&f.push(_),p.push(_)):(n.roundLengths&&(_=Math.floor(_)),(E-Math.min(e.params.slidesPerGroupSkip,E))%e.params.slidesPerGroup===0&&f.push(_),p.push(_),_=_+S+h),e.virtualSize+=S+h,b=S,E+=1}}if(e.virtualSize=Math.max(e.virtualSize,i)+w,o&&a&&(n.effect==="slide"||n.effect==="coverflow")&&(r.style.width=`${e.virtualSize+h}px`),n.setWrapperSize&&(r.style[e.getDirectionLabel("width")]=`${e.virtualSize+h}px`),R&&e.grid.updateWrapperSize(S,f),!n.centeredSlides){const D=[];for(let L=0;L<f.length;L+=1){let N=f[L];n.roundLengths&&(N=Math.floor(N)),f[L]<=e.virtualSize-i&&D.push(N)}f=D,Math.floor(e.virtualSize-i)-Math.floor(f[f.length-1])>1&&f.push(e.virtualSize-i)}if(l&&n.loop){const D=g[0]+h;if(n.slidesPerGroup>1){const L=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),N=D*n.slidesPerGroup;for(let x=0;x<L;x+=1)f.push(f[f.length-1]+N)}for(let L=0;L<e.virtual.slidesBefore+e.virtual.slidesAfter;L+=1)n.slidesPerGroup===1&&f.push(f[f.length-1]+D),p.push(p[p.length-1]+D),e.virtualSize+=D}if(f.length===0&&(f=[0]),h!==0){const D=e.isHorizontal()&&o?"marginLeft":e.getDirectionLabel("marginRight");u.filter((L,N)=>!n.cssMode||n.loop?!0:N!==u.length-1).forEach(L=>{L.style[D]=`${h}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let D=0;g.forEach(N=>{D+=N+(h||0)}),D-=h;const L=D-i;f=f.map(N=>N<=0?-v:N>L?L+w:N)}if(n.centerInsufficientSlides){let D=0;g.forEach(N=>{D+=N+(h||0)}),D-=h;const L=(n.slidesOffsetBefore||0)+(n.slidesOffsetAfter||0);if(D+L<i){const N=(i-D-L)/2;f.forEach((x,W)=>{f[W]=x-N}),p.forEach((x,W)=>{p[W]=x+N})}}if(Object.assign(e,{slides:u,snapGrid:f,slidesGrid:p,slidesSizesGrid:g}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){al(r,"--swiper-centered-offset-before",`${-f[0]}px`),al(r,"--swiper-centered-offset-after",`${e.size/2-g[g.length-1]/2}px`);const D=-e.snapGrid[0],L=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(N=>N+D),e.slidesGrid=e.slidesGrid.map(N=>N+L)}if(d!==c&&e.emit("slidesLengthChange"),f.length!==y&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),p.length!==m&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!l&&!n.cssMode&&(n.effect==="slide"||n.effect==="fade")){const D=`${n.containerModifierClass}backface-hidden`,L=e.el.classList.contains(D);d<=n.maxBackfaceHiddenSlides?L||e.el.classList.add(D):L&&e.el.classList.remove(D)}}function nj(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let s=0,i;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const o=a=>r?t.slides[t.getSlideIndexByData(a)]:t.slides[a];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(a=>{n.push(a)});else for(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){const a=t.activeIndex+i;if(a>t.slides.length&&!r)break;n.push(o(a))}else n.push(o(t.activeIndex));for(i=0;i<n.length;i+=1)if(typeof n[i]<"u"){const a=n[i].offsetHeight;s=a>s?a:s}(s||s===0)&&(t.wrapperEl.style.height=`${s}px`)}function rj(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()}const lv=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function sj(e){e===void 0&&(e=this&&this.translate||0);const t=this,n=t.params,{slides:r,rtlTranslate:s,snapGrid:i}=t;if(r.length===0)return;typeof r[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let o=-e;s&&(o=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let a=n.spaceBetween;typeof a=="string"&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*t.size:typeof a=="string"&&(a=parseFloat(a));for(let l=0;l<r.length;l+=1){const c=r[l];let u=c.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(u-=r[0].swiperSlideOffset);const d=(o+(n.centeredSlides?t.minTranslate():0)-u)/(c.swiperSlideSize+a),f=(o-i[0]+(n.centeredSlides?t.minTranslate():0)-u)/(c.swiperSlideSize+a),p=-(o-u),g=p+t.slidesSizesGrid[l],v=p>=0&&p<=t.size-t.slidesSizesGrid[l],w=p>=0&&p<t.size-1||g>1&&g<=t.size||p<=0&&g>=t.size;w&&(t.visibleSlides.push(c),t.visibleSlidesIndexes.push(l)),lv(c,w,n.slideVisibleClass),lv(c,v,n.slideFullyVisibleClass),c.progress=s?-d:d,c.originalProgress=s?-f:f}}function ij(e){const t=this;if(typeof e>"u"){const u=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*u||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:s,isBeginning:i,isEnd:o,progressLoop:a}=t;const l=i,c=o;if(r===0)s=0,i=!0,o=!0;else{s=(e-t.minTranslate())/r;const u=Math.abs(e-t.minTranslate())<1,d=Math.abs(e-t.maxTranslate())<1;i=u||s<=0,o=d||s>=1,u&&(s=0),d&&(s=1)}if(n.loop){const u=t.getSlideIndexByData(0),d=t.getSlideIndexByData(t.slides.length-1),f=t.slidesGrid[u],p=t.slidesGrid[d],g=t.slidesGrid[t.slidesGrid.length-1],v=Math.abs(e);v>=f?a=(v-f)/g:a=(v+g-p)/g,a>1&&(a-=1)}Object.assign(t,{progress:s,progressLoop:a,isBeginning:i,isEnd:o}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),i&&!l&&t.emit("reachBeginning toEdge"),o&&!c&&t.emit("reachEnd toEdge"),(l&&!i||c&&!o)&&t.emit("fromEdge"),t.emit("progress",s)}const Uu=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function oj(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:s}=e,i=e.virtual&&n.virtual.enabled,o=e.grid&&n.grid&&n.grid.rows>1,a=d=>ar(r,`.${n.slideClass}${d}, swiper-slide${d}`)[0];let l,c,u;if(i)if(n.loop){let d=s-e.virtual.slidesBefore;d<0&&(d=e.virtual.slides.length+d),d>=e.virtual.slides.length&&(d-=e.virtual.slides.length),l=a(`[data-swiper-slide-index="${d}"]`)}else l=a(`[data-swiper-slide-index="${s}"]`);else o?(l=t.filter(d=>d.column===s)[0],u=t.filter(d=>d.column===s+1)[0],c=t.filter(d=>d.column===s-1)[0]):l=t[s];l&&(o||(u=WH(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!u&&(u=t[0]),c=VH(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!c===0&&(c=t[t.length-1]))),t.forEach(d=>{Uu(d,d===l,n.slideActiveClass),Uu(d,d===u,n.slideNextClass),Uu(d,d===c,n.slidePrevClass)}),e.emitSlidesClasses()}const yl=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,r=t.closest(n());if(r){let s=r.querySelector(`.${e.params.lazyPreloaderClass}`);!s&&e.isElement&&(r.shadowRoot?s=r.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{r.shadowRoot&&(s=r.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),s&&s.remove())})),s&&s.remove()}},Fu=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},Cf=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),s=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const o=s,a=[o-t];a.push(...Array.from({length:t}).map((l,c)=>o+r+c)),e.slides.forEach((l,c)=>{a.includes(l.column)&&Fu(e,c)});return}const i=s+r-1;if(e.params.rewind||e.params.loop)for(let o=s-t;o<=i+t;o+=1){const a=(o%n+n)%n;(a<s||a>i)&&Fu(e,a)}else for(let o=Math.max(s-t,0);o<=Math.min(i+t,n-1);o+=1)o!==s&&(o>i||o<s)&&Fu(e,o)};function aj(e){const{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate;let s;for(let i=0;i<t.length;i+=1)typeof t[i+1]<"u"?r>=t[i]&&r<t[i+1]-(t[i+1]-t[i])/2?s=i:r>=t[i]&&r<t[i+1]&&(s=i+1):r>=t[i]&&(s=i);return n.normalizeSlideIndex&&(s<0||typeof s>"u")&&(s=0),s}function lj(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:s,activeIndex:i,realIndex:o,snapIndex:a}=t;let l=e,c;const u=p=>{let g=p-t.virtual.slidesBefore;return g<0&&(g=t.virtual.slides.length+g),g>=t.virtual.slides.length&&(g-=t.virtual.slides.length),g};if(typeof l>"u"&&(l=aj(t)),r.indexOf(n)>=0)c=r.indexOf(n);else{const p=Math.min(s.slidesPerGroupSkip,l);c=p+Math.floor((l-p)/s.slidesPerGroup)}if(c>=r.length&&(c=r.length-1),l===i&&!t.params.loop){c!==a&&(t.snapIndex=c,t.emit("snapIndexChange"));return}if(l===i&&t.params.loop&&t.virtual&&t.params.virtual.enabled){t.realIndex=u(l);return}const d=t.grid&&s.grid&&s.grid.rows>1;let f;if(t.virtual&&s.virtual.enabled&&s.loop)f=u(l);else if(d){const p=t.slides.filter(v=>v.column===l)[0];let g=parseInt(p.getAttribute("data-swiper-slide-index"),10);Number.isNaN(g)&&(g=Math.max(t.slides.indexOf(p),0)),f=Math.floor(g/s.grid.rows)}else if(t.slides[l]){const p=t.slides[l].getAttribute("data-swiper-slide-index");p?f=parseInt(p,10):f=l}else f=l;Object.assign(t,{previousSnapIndex:a,snapIndex:c,previousRealIndex:o,realIndex:f,previousIndex:i,activeIndex:l}),t.initialized&&Cf(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(o!==f&&t.emit("realIndexChange"),t.emit("slideChange"))}function cj(e,t){const n=this,r=n.params;let s=e.closest(`.${r.slideClass}, swiper-slide`);!s&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(a=>{!s&&a.matches&&a.matches(`.${r.slideClass}, swiper-slide`)&&(s=a)});let i=!1,o;if(s){for(let a=0;a<n.slides.length;a+=1)if(n.slides[a]===s){i=!0,o=a;break}}if(s&&i)n.clickedSlide=s,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(s.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=o;else{n.clickedSlide=void 0,n.clickedIndex=void 0;return}r.slideToClickedSlide&&n.clickedIndex!==void 0&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}var uj={updateSize:ej,updateSlides:tj,updateAutoHeight:nj,updateSlidesOffset:rj,updateSlidesProgress:sj,updateProgress:ij,updateSlidesClasses:oj,updateActiveIndex:lj,updateClickedSlide:cj};function dj(e){e===void 0&&(e=this.isHorizontal()?"x":"y");const t=this,{params:n,rtlTranslate:r,translate:s,wrapperEl:i}=t;if(n.virtualTranslate)return r?-s:s;if(n.cssMode)return s;let o=jH(i,e);return o+=t.cssOverflowAdjustment(),r&&(o=-o),o||0}function fj(e,t){const n=this,{rtlTranslate:r,params:s,wrapperEl:i,progress:o}=n;let a=0,l=0;const c=0;n.isHorizontal()?a=r?-e:e:l=e,s.roundLengths&&(a=Math.floor(a),l=Math.floor(l)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?a:l,s.cssMode?i[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-a:-l:s.virtualTranslate||(n.isHorizontal()?a-=n.cssOverflowAdjustment():l-=n.cssOverflowAdjustment(),i.style.transform=`translate3d(${a}px, ${l}px, ${c}px)`);let u;const d=n.maxTranslate()-n.minTranslate();d===0?u=0:u=(e-n.minTranslate())/d,u!==o&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)}function pj(){return-this.snapGrid[0]}function hj(){return-this.snapGrid[this.snapGrid.length-1]}function gj(e,t,n,r,s){e===void 0&&(e=0),t===void 0&&(t=this.params.speed),n===void 0&&(n=!0),r===void 0&&(r=!0);const i=this,{params:o,wrapperEl:a}=i;if(i.animating&&o.preventInteractionOnTransition)return!1;const l=i.minTranslate(),c=i.maxTranslate();let u;if(r&&e>l?u=l:r&&e<c?u=c:u=e,i.updateProgress(u),o.cssMode){const d=i.isHorizontal();if(t===0)a[d?"scrollLeft":"scrollTop"]=-u;else{if(!i.support.smoothScroll)return _S({swiper:i,targetPosition:-u,side:d?"left":"top"}),!0;a.scrollTo({[d?"left":"top"]:-u,behavior:"smooth"})}return!0}return t===0?(i.setTransition(0),i.setTranslate(u),n&&(i.emit("beforeTransitionStart",t,s),i.emit("transitionEnd"))):(i.setTransition(t),i.setTranslate(u),n&&(i.emit("beforeTransitionStart",t,s),i.emit("transitionStart")),i.animating||(i.animating=!0,i.onTranslateToWrapperTransitionEnd||(i.onTranslateToWrapperTransitionEnd=function(f){!i||i.destroyed||f.target===this&&(i.wrapperEl.removeEventListener("transitionend",i.onTranslateToWrapperTransitionEnd),i.onTranslateToWrapperTransitionEnd=null,delete i.onTranslateToWrapperTransitionEnd,i.animating=!1,n&&i.emit("transitionEnd"))}),i.wrapperEl.addEventListener("transitionend",i.onTranslateToWrapperTransitionEnd))),!0}var mj={getTranslate:dj,setTranslate:fj,minTranslate:pj,maxTranslate:hj,translateTo:gj};function _j(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`,n.wrapperEl.style.transitionDelay=e===0?"0ms":""),n.emit("setTransition",e,t)}function wS(e){let{swiper:t,runCallbacks:n,direction:r,step:s}=e;const{activeIndex:i,previousIndex:o}=t;let a=r;if(a||(i>o?a="next":i<o?a="prev":a="reset"),t.emit(`transition${s}`),n&&i!==o){if(a==="reset"){t.emit(`slideResetTransition${s}`);return}t.emit(`slideChangeTransition${s}`),a==="next"?t.emit(`slideNextTransition${s}`):t.emit(`slidePrevTransition${s}`)}}function vj(e,t){e===void 0&&(e=!0);const n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),wS({swiper:n,runCallbacks:e,direction:t,step:"Start"}))}function yj(e,t){e===void 0&&(e=!0);const n=this,{params:r}=n;n.animating=!1,!r.cssMode&&(n.setTransition(0),wS({swiper:n,runCallbacks:e,direction:t,step:"End"}))}var wj={setTransition:_j,transitionStart:vj,transitionEnd:yj};function bj(e,t,n,r,s){e===void 0&&(e=0),n===void 0&&(n=!0),typeof e=="string"&&(e=parseInt(e,10));const i=this;let o=e;o<0&&(o=0);const{params:a,snapGrid:l,slidesGrid:c,previousIndex:u,activeIndex:d,rtlTranslate:f,wrapperEl:p,enabled:g}=i;if(!g&&!r&&!s||i.destroyed||i.animating&&a.preventInteractionOnTransition)return!1;typeof t>"u"&&(t=i.params.speed);const v=Math.min(i.params.slidesPerGroupSkip,o);let w=v+Math.floor((o-v)/i.params.slidesPerGroup);w>=l.length&&(w=l.length-1);const y=-l[w];if(a.normalizeSlideIndex)for(let h=0;h<c.length;h+=1){const _=-Math.floor(y*100),b=Math.floor(c[h]*100),E=Math.floor(c[h+1]*100);typeof c[h+1]<"u"?_>=b&&_<E-(E-b)/2?o=h:_>=b&&_<E&&(o=h+1):_>=b&&(o=h)}if(i.initialized&&o!==d&&(!i.allowSlideNext&&(f?y>i.translate&&y>i.minTranslate():y<i.translate&&y<i.minTranslate())||!i.allowSlidePrev&&y>i.translate&&y>i.maxTranslate()&&(d||0)!==o))return!1;o!==(u||0)&&n&&i.emit("beforeSlideChangeStart"),i.updateProgress(y);let m;if(o>d?m="next":o<d?m="prev":m="reset",f&&-y===i.translate||!f&&y===i.translate)return i.updateActiveIndex(o),a.autoHeight&&i.updateAutoHeight(),i.updateSlidesClasses(),a.effect!=="slide"&&i.setTranslate(y),m!=="reset"&&(i.transitionStart(n,m),i.transitionEnd(n,m)),!1;if(a.cssMode){const h=i.isHorizontal(),_=f?y:-y;if(t===0){const b=i.virtual&&i.params.virtual.enabled;b&&(i.wrapperEl.style.scrollSnapType="none",i._immediateVirtual=!0),b&&!i._cssModeVirtualInitialSet&&i.params.initialSlide>0?(i._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[h?"scrollLeft":"scrollTop"]=_})):p[h?"scrollLeft":"scrollTop"]=_,b&&requestAnimationFrame(()=>{i.wrapperEl.style.scrollSnapType="",i._immediateVirtual=!1})}else{if(!i.support.smoothScroll)return _S({swiper:i,targetPosition:_,side:h?"left":"top"}),!0;p.scrollTo({[h?"left":"top"]:_,behavior:"smooth"})}return!0}return i.setTransition(t),i.setTranslate(y),i.updateActiveIndex(o),i.updateSlidesClasses(),i.emit("beforeTransitionStart",t,r),i.transitionStart(n,m),t===0?i.transitionEnd(n,m):i.animating||(i.animating=!0,i.onSlideToWrapperTransitionEnd||(i.onSlideToWrapperTransitionEnd=function(_){!i||i.destroyed||_.target===this&&(i.wrapperEl.removeEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.onSlideToWrapperTransitionEnd=null,delete i.onSlideToWrapperTransitionEnd,i.transitionEnd(n,m))}),i.wrapperEl.addEventListener("transitionend",i.onSlideToWrapperTransitionEnd)),!0}function Ej(e,t,n,r){e===void 0&&(e=0),n===void 0&&(n=!0),typeof e=="string"&&(e=parseInt(e,10));const s=this;if(s.destroyed)return;typeof t>"u"&&(t=s.params.speed);const i=s.grid&&s.params.grid&&s.params.grid.rows>1;let o=e;if(s.params.loop)if(s.virtual&&s.params.virtual.enabled)o=o+s.virtual.slidesBefore;else{let a;if(i){const f=o*s.params.grid.rows;a=s.slides.filter(p=>p.getAttribute("data-swiper-slide-index")*1===f)[0].column}else a=s.getSlideIndexByData(o);const l=i?Math.ceil(s.slides.length/s.params.grid.rows):s.slides.length,{centeredSlides:c}=s.params;let u=s.params.slidesPerView;u==="auto"?u=s.slidesPerViewDynamic():(u=Math.ceil(parseFloat(s.params.slidesPerView,10)),c&&u%2===0&&(u=u+1));let d=l-a<u;if(c&&(d=d||a<Math.ceil(u/2)),r&&c&&s.params.slidesPerView!=="auto"&&!i&&(d=!1),d){const f=c?a<s.activeIndex?"prev":"next":a-s.activeIndex-1<s.params.slidesPerView?"next":"prev";s.loopFix({direction:f,slideTo:!0,activeSlideIndex:f==="next"?a+1:a-l+1,slideRealIndex:f==="next"?s.realIndex:void 0})}if(i){const f=o*s.params.grid.rows;o=s.slides.filter(p=>p.getAttribute("data-swiper-slide-index")*1===f)[0].column}else o=s.getSlideIndexByData(o)}return requestAnimationFrame(()=>{s.slideTo(o,t,n,r)}),s}function Tj(e,t,n){t===void 0&&(t=!0);const r=this,{enabled:s,params:i,animating:o}=r;if(!s||r.destroyed)return r;typeof e>"u"&&(e=r.params.speed);let a=i.slidesPerGroup;i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(a=Math.max(r.slidesPerViewDynamic("current",!0),1));const l=r.activeIndex<i.slidesPerGroupSkip?1:a,c=r.virtual&&i.virtual.enabled;if(i.loop){if(o&&!c&&i.loopPreventsSliding)return!1;if(r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft,r.activeIndex===r.slides.length-1&&i.cssMode)return requestAnimationFrame(()=>{r.slideTo(r.activeIndex+l,e,t,n)}),!0}return i.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+l,e,t,n)}function Sj(e,t,n){t===void 0&&(t=!0);const r=this,{params:s,snapGrid:i,slidesGrid:o,rtlTranslate:a,enabled:l,animating:c}=r;if(!l||r.destroyed)return r;typeof e>"u"&&(e=r.params.speed);const u=r.virtual&&s.virtual.enabled;if(s.loop){if(c&&!u&&s.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}const d=a?r.translate:-r.translate;function f(y){return y<0?-Math.floor(Math.abs(y)):Math.floor(y)}const p=f(d),g=i.map(y=>f(y));let v=i[g.indexOf(p)-1];if(typeof v>"u"&&s.cssMode){let y;i.forEach((m,h)=>{p>=m&&(y=h)}),typeof y<"u"&&(v=i[y>0?y-1:y])}let w=0;if(typeof v<"u"&&(w=o.indexOf(v),w<0&&(w=r.activeIndex-1),s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(w=w-r.slidesPerViewDynamic("previous",!0)+1,w=Math.max(w,0))),s.rewind&&r.isBeginning){const y=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(y,e,t,n)}else if(s.loop&&r.activeIndex===0&&s.cssMode)return requestAnimationFrame(()=>{r.slideTo(w,e,t,n)}),!0;return r.slideTo(w,e,t,n)}function kj(e,t,n){t===void 0&&(t=!0);const r=this;if(!r.destroyed)return typeof e>"u"&&(e=r.params.speed),r.slideTo(r.activeIndex,e,t,n)}function Ij(e,t,n,r){t===void 0&&(t=!0),r===void 0&&(r=.5);const s=this;if(s.destroyed)return;typeof e>"u"&&(e=s.params.speed);let i=s.activeIndex;const o=Math.min(s.params.slidesPerGroupSkip,i),a=o+Math.floor((i-o)/s.params.slidesPerGroup),l=s.rtlTranslate?s.translate:-s.translate;if(l>=s.snapGrid[a]){const c=s.snapGrid[a],u=s.snapGrid[a+1];l-c>(u-c)*r&&(i+=s.params.slidesPerGroup)}else{const c=s.snapGrid[a-1],u=s.snapGrid[a];l-c<=(u-c)*r&&(i-=s.params.slidesPerGroup)}return i=Math.max(i,0),i=Math.min(i,s.slidesGrid.length-1),s.slideTo(i,e,t,n)}function Rj(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n}=e,r=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let s=e.clickedIndex,i;const o=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;i=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?s<e.loopedSlides-r/2||s>e.slides.length-e.loopedSlides+r/2?(e.loopFix(),s=e.getSlideIndex(ar(n,`${o}[data-swiper-slide-index="${i}"]`)[0]),If(()=>{e.slideTo(s)})):e.slideTo(s):s>e.slides.length-r?(e.loopFix(),s=e.getSlideIndex(ar(n,`${o}[data-swiper-slide-index="${i}"]`)[0]),If(()=>{e.slideTo(s)})):e.slideTo(s)}else e.slideTo(s)}var Cj={slideTo:bj,slideToLoop:Ej,slideNext:Tj,slidePrev:Sj,slideReset:kj,slideToClosest:Ij,slideToClickedSlide:Rj};function Aj(e){const t=this,{params:n,slidesEl:r}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;const s=()=>{ar(r,`.${n.slideClass}, swiper-slide`).forEach((d,f)=>{d.setAttribute("data-swiper-slide-index",f)})},i=t.grid&&n.grid&&n.grid.rows>1,o=n.slidesPerGroup*(i?n.grid.rows:1),a=t.slides.length%o!==0,l=i&&t.slides.length%n.grid.rows!==0,c=u=>{for(let d=0;d<u;d+=1){const f=t.isElement?Rf("swiper-slide",[n.slideBlankClass]):Rf("div",[n.slideClass,n.slideBlankClass]);t.slidesEl.append(f)}};if(a){if(n.loopAddBlankSlides){const u=o-t.slides.length%o;c(u),t.recalcSlides(),t.updateSlides()}else oc("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");s()}else if(l){if(n.loopAddBlankSlides){const u=n.grid.rows-t.slides.length%n.grid.rows;c(u),t.recalcSlides(),t.updateSlides()}else oc("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");s()}else s();t.loopFix({slideRealIndex:e,direction:n.centeredSlides?void 0:"next"})}function Oj(e){let{slideRealIndex:t,slideTo:n=!0,direction:r,setTranslate:s,activeSlideIndex:i,byController:o,byMousewheel:a}=e===void 0?{}:e;const l=this;if(!l.params.loop)return;l.emit("beforeLoopFix");const{slides:c,allowSlidePrev:u,allowSlideNext:d,slidesEl:f,params:p}=l,{centeredSlides:g}=p;if(l.allowSlidePrev=!0,l.allowSlideNext=!0,l.virtual&&p.virtual.enabled){n&&(!p.centeredSlides&&l.snapIndex===0?l.slideTo(l.virtual.slides.length,0,!1,!0):p.centeredSlides&&l.snapIndex<p.slidesPerView?l.slideTo(l.virtual.slides.length+l.snapIndex,0,!1,!0):l.snapIndex===l.snapGrid.length-1&&l.slideTo(l.virtual.slidesBefore,0,!1,!0)),l.allowSlidePrev=u,l.allowSlideNext=d,l.emit("loopFix");return}let v=p.slidesPerView;v==="auto"?v=l.slidesPerViewDynamic():(v=Math.ceil(parseFloat(p.slidesPerView,10)),g&&v%2===0&&(v=v+1));const w=p.slidesPerGroupAuto?v:p.slidesPerGroup;let y=w;y%w!==0&&(y+=w-y%w),y+=p.loopAdditionalSlides,l.loopedSlides=y;const m=l.grid&&p.grid&&p.grid.rows>1;c.length<v+y?oc("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):m&&p.grid.fill==="row"&&oc("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const h=[],_=[];let b=l.activeIndex;typeof i>"u"?i=l.getSlideIndex(c.filter(x=>x.classList.contains(p.slideActiveClass))[0]):b=i;const E=r==="next"||!r,R=r==="prev"||!r;let S=0,A=0;const D=m?Math.ceil(c.length/p.grid.rows):c.length,N=(m?c[i].column:i)+(g&&typeof s>"u"?-v/2+.5:0);if(N<y){S=Math.max(y-N,w);for(let x=0;x<y-N;x+=1){const W=x-Math.floor(x/D)*D;if(m){const ee=D-W-1;for(let K=c.length-1;K>=0;K-=1)c[K].column===ee&&h.push(K)}else h.push(D-W-1)}}else if(N+v>D-y){A=Math.max(N-(D-y*2),w);for(let x=0;x<A;x+=1){const W=x-Math.floor(x/D)*D;m?c.forEach((ee,K)=>{ee.column===W&&_.push(K)}):_.push(W)}}if(l.__preventObserver__=!0,requestAnimationFrame(()=>{l.__preventObserver__=!1}),R&&h.forEach(x=>{c[x].swiperLoopMoveDOM=!0,f.prepend(c[x]),c[x].swiperLoopMoveDOM=!1}),E&&_.forEach(x=>{c[x].swiperLoopMoveDOM=!0,f.append(c[x]),c[x].swiperLoopMoveDOM=!1}),l.recalcSlides(),p.slidesPerView==="auto"?l.updateSlides():m&&(h.length>0&&R||_.length>0&&E)&&l.slides.forEach((x,W)=>{l.grid.updateSlide(W,x,l.slides)}),p.watchSlidesProgress&&l.updateSlidesOffset(),n){if(h.length>0&&R){if(typeof t>"u"){const x=l.slidesGrid[b],ee=l.slidesGrid[b+S]-x;a?l.setTranslate(l.translate-ee):(l.slideTo(b+Math.ceil(S),0,!1,!0),s&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-ee,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-ee))}else if(s){const x=m?h.length/p.grid.rows:h.length;l.slideTo(l.activeIndex+x,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(_.length>0&&E)if(typeof t>"u"){const x=l.slidesGrid[b],ee=l.slidesGrid[b-A]-x;a?l.setTranslate(l.translate-ee):(l.slideTo(b-A,0,!1,!0),s&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-ee,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-ee))}else{const x=m?_.length/p.grid.rows:_.length;l.slideTo(l.activeIndex-x,0,!1,!0)}}if(l.allowSlidePrev=u,l.allowSlideNext=d,l.controller&&l.controller.control&&!o){const x={slideRealIndex:t,direction:r,setTranslate:s,activeSlideIndex:i,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(W=>{!W.destroyed&&W.params.loop&&W.loopFix({...x,slideTo:W.params.slidesPerView===p.slidesPerView?n:!1})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...x,slideTo:l.controller.control.params.slidesPerView===p.slidesPerView?n:!1})}l.emit("loopFix")}function Pj(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];e.slides.forEach(s=>{const i=typeof s.swiperSlideIndex>"u"?s.getAttribute("data-swiper-slide-index")*1:s.swiperSlideIndex;r[i]=s}),e.slides.forEach(s=>{s.removeAttribute("data-swiper-slide-index")}),r.forEach(s=>{n.append(s)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}var Lj={loopCreate:Aj,loopFix:Oj,loopDestroy:Pj};function Dj(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function Nj(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}var Mj={setGrabCursor:Dj,unsetGrabCursor:Nj};function $j(e,t){t===void 0&&(t=this);function n(r){if(!r||r===uo()||r===on())return null;r.assignedSlot&&(r=r.assignedSlot);const s=r.closest(e);return!s&&!r.getRootNode?null:s||n(r.getRootNode().host)}return n(t)}function cv(e,t,n){const r=on(),{params:s}=e,i=s.edgeSwipeDetection,o=s.edgeSwipeThreshold;return i&&(n<=o||n>=r.innerWidth-o)?i==="prevent"?(t.preventDefault(),!0):!1:!0}function xj(e){const t=this,n=uo();let r=e;r.originalEvent&&(r=r.originalEvent);const s=t.touchEventsData;if(r.type==="pointerdown"){if(s.pointerId!==null&&s.pointerId!==r.pointerId)return;s.pointerId=r.pointerId}else r.type==="touchstart"&&r.targetTouches.length===1&&(s.touchId=r.targetTouches[0].identifier);if(r.type==="touchstart"){cv(t,r,r.targetTouches[0].pageX);return}const{params:i,touches:o,enabled:a}=t;if(!a||!i.simulateTouch&&r.pointerType==="mouse"||t.animating&&i.preventInteractionOnTransition)return;!t.animating&&i.cssMode&&i.loop&&t.loopFix();let l=r.target;if(i.touchEventsTarget==="wrapper"&&!t.wrapperEl.contains(l)||"which"in r&&r.which===3||"button"in r&&r.button>0||s.isTouched&&s.isMoved)return;const c=!!i.noSwipingClass&&i.noSwipingClass!=="",u=r.composedPath?r.composedPath():r.path;c&&r.target&&r.target.shadowRoot&&u&&(l=u[0]);const d=i.noSwipingSelector?i.noSwipingSelector:`.${i.noSwipingClass}`,f=!!(r.target&&r.target.shadowRoot);if(i.noSwiping&&(f?$j(d,l):l.closest(d))){t.allowClick=!0;return}if(i.swipeHandler&&!l.closest(i.swipeHandler))return;o.currentX=r.pageX,o.currentY=r.pageY;const p=o.currentX,g=o.currentY;if(!cv(t,r,p))return;Object.assign(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=p,o.startY=g,s.touchStartTime=ic(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,i.threshold>0&&(s.allowThresholdMove=!1);let v=!0;l.matches(s.focusableElements)&&(v=!1,l.nodeName==="SELECT"&&(s.isTouched=!1)),n.activeElement&&n.activeElement.matches(s.focusableElements)&&n.activeElement!==l&&n.activeElement.blur();const w=v&&t.allowTouchMove&&i.touchStartPreventDefault;(i.touchStartForcePreventDefault||w)&&!l.isContentEditable&&r.preventDefault(),i.freeMode&&i.freeMode.enabled&&t.freeMode&&t.animating&&!i.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",r)}function Uj(e){const t=uo(),n=this,r=n.touchEventsData,{params:s,touches:i,rtlTranslate:o,enabled:a}=n;if(!a||!s.simulateTouch&&e.pointerType==="mouse")return;let l=e;if(l.originalEvent&&(l=l.originalEvent),l.type==="pointermove"&&(r.touchId!==null||l.pointerId!==r.pointerId))return;let c;if(l.type==="touchmove"){if(c=[...l.changedTouches].filter(E=>E.identifier===r.touchId)[0],!c||c.identifier!==r.touchId)return}else c=l;if(!r.isTouched){r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",l);return}const u=c.pageX,d=c.pageY;if(l.preventedByNestedSwiper){i.startX=u,i.startY=d;return}if(!n.allowTouchMove){l.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(i,{startX:u,startY:d,currentX:u,currentY:d}),r.touchStartTime=ic());return}if(s.touchReleaseOnEdges&&!s.loop){if(n.isVertical()){if(d<i.startY&&n.translate<=n.maxTranslate()||d>i.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(u<i.startX&&n.translate<=n.maxTranslate()||u>i.startX&&n.translate>=n.minTranslate())return}if(t.activeElement&&l.target===t.activeElement&&l.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}r.allowTouchCallbacks&&n.emit("touchMove",l),i.previousX=i.currentX,i.previousY=i.currentY,i.currentX=u,i.currentY=d;const f=i.currentX-i.startX,p=i.currentY-i.startY;if(n.params.threshold&&Math.sqrt(f**2+p**2)<n.params.threshold)return;if(typeof r.isScrolling>"u"){let E;n.isHorizontal()&&i.currentY===i.startY||n.isVertical()&&i.currentX===i.startX?r.isScrolling=!1:f*f+p*p>=25&&(E=Math.atan2(Math.abs(p),Math.abs(f))*180/Math.PI,r.isScrolling=n.isHorizontal()?E>s.touchAngle:90-E>s.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",l),typeof r.startMoving>"u"&&(i.currentX!==i.startX||i.currentY!==i.startY)&&(r.startMoving=!0),r.isScrolling||l.type==="touchmove"&&r.preventTouchMoveFromPointerMove){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!s.cssMode&&l.cancelable&&l.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&l.stopPropagation();let g=n.isHorizontal()?f:p,v=n.isHorizontal()?i.currentX-i.previousX:i.currentY-i.previousY;s.oneWayMovement&&(g=Math.abs(g)*(o?1:-1),v=Math.abs(v)*(o?1:-1)),i.diff=g,g*=s.touchRatio,o&&(g=-g,v=-v);const w=n.touchesDirection;n.swipeDirection=g>0?"prev":"next",n.touchesDirection=v>0?"prev":"next";const y=n.params.loop&&!s.cssMode,m=n.touchesDirection==="next"&&n.allowSlideNext||n.touchesDirection==="prev"&&n.allowSlidePrev;if(!r.isMoved){if(y&&m&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const E=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});n.wrapperEl.dispatchEvent(E)}r.allowMomentumBounce=!1,s.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",l)}let h;if(new Date().getTime(),r.isMoved&&r.allowThresholdMove&&w!==n.touchesDirection&&y&&m&&Math.abs(g)>=1){Object.assign(i,{startX:u,startY:d,currentX:u,currentY:d,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,r.startTranslate=r.currentTranslate;return}n.emit("sliderMove",l),r.isMoved=!0,r.currentTranslate=g+r.startTranslate;let _=!0,b=s.resistanceRatio;if(s.touchReleaseOnEdges&&(b=0),g>0?(y&&m&&!h&&r.allowThresholdMove&&r.currentTranslate>(s.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(_=!1,s.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+g)**b))):g<0&&(y&&m&&!h&&r.allowThresholdMove&&r.currentTranslate<(s.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]:n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(s.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(s.slidesPerView,10)))}),r.currentTranslate<n.maxTranslate()&&(_=!1,s.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-g)**b))),_&&(l.preventedByNestedSwiper=!0),!n.allowSlideNext&&n.swipeDirection==="next"&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&n.swipeDirection==="prev"&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),s.threshold>0)if(Math.abs(g)>s.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,i.startX=i.currentX,i.startY=i.currentY,r.currentTranslate=r.startTranslate,i.diff=n.isHorizontal()?i.currentX-i.startX:i.currentY-i.startY;return}}else{r.currentTranslate=r.startTranslate;return}!s.followFinger||s.cssMode||((s.freeMode&&s.freeMode.enabled&&n.freeMode||s.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),s.freeMode&&s.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function Fj(e){const t=this,n=t.touchEventsData;let r=e;r.originalEvent&&(r=r.originalEvent);let s;if(r.type==="touchend"||r.type==="touchcancel"){if(s=[...r.changedTouches].filter(b=>b.identifier===n.touchId)[0],!s||s.identifier!==n.touchId)return}else{if(n.touchId!==null||r.pointerId!==n.pointerId)return;s=r}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(r.type)&&!(["pointercancel","contextmenu"].includes(r.type)&&(t.browser.isSafari||t.browser.isWebView)))return;n.pointerId=null,n.touchId=null;const{params:o,touches:a,rtlTranslate:l,slidesGrid:c,enabled:u}=t;if(!u||!o.simulateTouch&&r.pointerType==="mouse")return;if(n.allowTouchCallbacks&&t.emit("touchEnd",r),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&o.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}o.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const d=ic(),f=d-n.touchStartTime;if(t.allowClick){const b=r.path||r.composedPath&&r.composedPath();t.updateClickedSlide(b&&b[0]||r.target,b),t.emit("tap click",r),f<300&&d-n.lastClickTime<300&&t.emit("doubleTap doubleClick",r)}if(n.lastClickTime=ic(),If(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||a.diff===0&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let p;if(o.followFinger?p=l?t.translate:-t.translate:p=-n.currentTranslate,o.cssMode)return;if(o.freeMode&&o.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:p});return}const g=p>=-t.maxTranslate()&&!t.params.loop;let v=0,w=t.slidesSizesGrid[0];for(let b=0;b<c.length;b+=b<o.slidesPerGroupSkip?1:o.slidesPerGroup){const E=b<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;typeof c[b+E]<"u"?(g||p>=c[b]&&p<c[b+E])&&(v=b,w=c[b+E]-c[b]):(g||p>=c[b])&&(v=b,w=c[c.length-1]-c[c.length-2])}let y=null,m=null;o.rewind&&(t.isBeginning?m=o.virtual&&o.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(y=0));const h=(p-c[v])/w,_=v<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;if(f>o.longSwipesMs){if(!o.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(h>=o.longSwipesRatio?t.slideTo(o.rewind&&t.isEnd?y:v+_):t.slideTo(v)),t.swipeDirection==="prev"&&(h>1-o.longSwipesRatio?t.slideTo(v+_):m!==null&&h<0&&Math.abs(h)>o.longSwipesRatio?t.slideTo(m):t.slideTo(v))}else{if(!o.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(r.target===t.navigation.nextEl||r.target===t.navigation.prevEl)?r.target===t.navigation.nextEl?t.slideTo(v+_):t.slideTo(v):(t.swipeDirection==="next"&&t.slideTo(y!==null?y:v+_),t.swipeDirection==="prev"&&t.slideTo(m!==null?m:v))}}function uv(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:s,snapGrid:i}=e,o=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const a=o&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!a?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!o?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=s,e.allowSlideNext=r,e.params.watchOverflow&&i!==e.snapGrid&&e.checkOverflow()}function Bj(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function Hj(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let s;const i=e.maxTranslate()-e.minTranslate();i===0?s=0:s=(e.translate-e.minTranslate())/i,s!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function jj(e){const t=this;yl(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}function zj(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const bS=(e,t)=>{const n=uo(),{params:r,el:s,wrapperEl:i,device:o}=e,a=!!r.nested,l=t==="on"?"addEventListener":"removeEventListener",c=t;!s||typeof s=="string"||(n[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:a}),s[l]("touchstart",e.onTouchStart,{passive:!1}),s[l]("pointerdown",e.onTouchStart,{passive:!1}),n[l]("touchmove",e.onTouchMove,{passive:!1,capture:a}),n[l]("pointermove",e.onTouchMove,{passive:!1,capture:a}),n[l]("touchend",e.onTouchEnd,{passive:!0}),n[l]("pointerup",e.onTouchEnd,{passive:!0}),n[l]("pointercancel",e.onTouchEnd,{passive:!0}),n[l]("touchcancel",e.onTouchEnd,{passive:!0}),n[l]("pointerout",e.onTouchEnd,{passive:!0}),n[l]("pointerleave",e.onTouchEnd,{passive:!0}),n[l]("contextmenu",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&s[l]("click",e.onClick,!0),r.cssMode&&i[l]("scroll",e.onScroll),r.updateOnWindowResize?e[c](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",uv,!0):e[c]("observerUpdate",uv,!0),s[l]("load",e.onLoad,{capture:!0}))};function Vj(){const e=this,{params:t}=e;e.onTouchStart=xj.bind(e),e.onTouchMove=Uj.bind(e),e.onTouchEnd=Fj.bind(e),e.onDocumentTouchStart=zj.bind(e),t.cssMode&&(e.onScroll=Hj.bind(e)),e.onClick=Bj.bind(e),e.onLoad=jj.bind(e),bS(e,"on")}function Wj(){bS(this,"off")}var Kj={attachEvents:Vj,detachEvents:Wj};const dv=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function Gj(){const e=this,{realIndex:t,initialized:n,params:r,el:s}=e,i=r.breakpoints;if(!i||i&&Object.keys(i).length===0)return;const o=e.getBreakpoint(i,e.params.breakpointsBase,e.el);if(!o||e.currentBreakpoint===o)return;const l=(o in i?i[o]:void 0)||e.originalParams,c=dv(e,r),u=dv(e,l),d=e.params.grabCursor,f=l.grabCursor,p=r.enabled;c&&!u?(s.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!c&&u&&(s.classList.add(`${r.containerModifierClass}grid`),(l.grid.fill&&l.grid.fill==="column"||!l.grid.fill&&r.grid.fill==="column")&&s.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),d&&!f?e.unsetGrabCursor():!d&&f&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(h=>{if(typeof l[h]>"u")return;const _=r[h]&&r[h].enabled,b=l[h]&&l[h].enabled;_&&!b&&e[h].disable(),!_&&b&&e[h].enable()});const g=l.direction&&l.direction!==r.direction,v=r.loop&&(l.slidesPerView!==r.slidesPerView||g),w=r.loop;g&&n&&e.changeDirection(),Yt(e.params,l);const y=e.params.enabled,m=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),p&&!y?e.disable():!p&&y&&e.enable(),e.currentBreakpoint=o,e.emit("_beforeBreakpoint",l),n&&(v?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!w&&m?(e.loopCreate(t),e.updateSlides()):w&&!m&&e.loopDestroy()),e.emit("breakpoint",l)}function qj(e,t,n){if(t===void 0&&(t="window"),!e||t==="container"&&!n)return;let r=!1;const s=on(),i=t==="window"?s.innerHeight:n.clientHeight,o=Object.keys(e).map(a=>{if(typeof a=="string"&&a.indexOf("@")===0){const l=parseFloat(a.substr(1));return{value:i*l,point:a}}return{value:a,point:a}});o.sort((a,l)=>parseInt(a.value,10)-parseInt(l.value,10));for(let a=0;a<o.length;a+=1){const{point:l,value:c}=o[a];t==="window"?s.matchMedia(`(min-width: ${c}px)`).matches&&(r=l):c<=n.clientWidth&&(r=l)}return r||"max"}var Yj={setBreakpoint:Gj,getBreakpoint:qj};function Jj(e,t){const n=[];return e.forEach(r=>{typeof r=="object"?Object.keys(r).forEach(s=>{r[s]&&n.push(t+s)}):typeof r=="string"&&n.push(t+r)}),n}function Xj(){const e=this,{classNames:t,params:n,rtl:r,el:s,device:i}=e,o=Jj(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:i.android},{ios:i.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...o),s.classList.add(...t),e.emitContainerClasses()}function Zj(){const e=this,{el:t,classNames:n}=e;!t||typeof t=="string"||(t.classList.remove(...n),e.emitContainerClasses())}var Qj={addClasses:Xj,removeClasses:Zj};function ez(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const s=e.slides.length-1,i=e.slidesGrid[s]+e.slidesSizesGrid[s]+r*2;e.isLocked=e.size>i}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}var tz={checkOverflow:ez},fv={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function nz(e,t){return function(r){r===void 0&&(r={});const s=Object.keys(r)[0],i=r[s];if(typeof i!="object"||i===null){Yt(t,r);return}if(e[s]===!0&&(e[s]={enabled:!0}),s==="navigation"&&e[s]&&e[s].enabled&&!e[s].prevEl&&!e[s].nextEl&&(e[s].auto=!0),["pagination","scrollbar"].indexOf(s)>=0&&e[s]&&e[s].enabled&&!e[s].el&&(e[s].auto=!0),!(s in e&&"enabled"in i)){Yt(t,r);return}typeof e[s]=="object"&&!("enabled"in e[s])&&(e[s].enabled=!0),e[s]||(e[s]={enabled:!1}),Yt(t,r)}}const Bu={eventsEmitter:QH,update:uj,translate:mj,transition:wj,slide:Cj,loop:Lj,grabCursor:Mj,events:Kj,breakpoints:Yj,checkOverflow:tz,classes:Qj},Hu={};class bn{constructor(){let t,n;for(var r=arguments.length,s=new Array(r),i=0;i<r;i++)s[i]=arguments[i];s.length===1&&s[0].constructor&&Object.prototype.toString.call(s[0]).slice(8,-1)==="Object"?n=s[0]:[t,n]=s,n||(n={}),n=Yt({},n),t&&!n.el&&(n.el=t);const o=uo();if(n.el&&typeof n.el=="string"&&o.querySelectorAll(n.el).length>1){const u=[];return o.querySelectorAll(n.el).forEach(d=>{const f=Yt({},n,{el:d});u.push(new bn(f))}),u}const a=this;a.__swiper__=!0,a.support=vS(),a.device=yS({userAgent:n.userAgent}),a.browser=JH(),a.eventsListeners={},a.eventsAnyListeners=[],a.modules=[...a.__modules__],n.modules&&Array.isArray(n.modules)&&a.modules.push(...n.modules);const l={};a.modules.forEach(u=>{u({params:n,swiper:a,extendParams:nz(n,l),on:a.on.bind(a),once:a.once.bind(a),off:a.off.bind(a),emit:a.emit.bind(a)})});const c=Yt({},fv,l);return a.params=Yt({},c,Hu,n),a.originalParams=Yt({},a.params),a.passedParams=Yt({},n),a.params&&a.params.on&&Object.keys(a.params.on).forEach(u=>{a.on(u,a.params.on[u])}),a.params&&a.params.onAny&&a.onAny(a.params.onAny),Object.assign(a,{enabled:a.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return a.params.direction==="horizontal"},isVertical(){return a.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:a.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.emit("_swiper"),a.params.init&&a.init(),a}getDirectionLabel(t){return this.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}getSlideIndex(t){const{slidesEl:n,params:r}=this,s=ar(n,`.${r.slideClass}, swiper-slide`),i=ov(s[0]);return ov(t)-i}getSlideIndexByData(t){return this.getSlideIndex(this.slides.filter(n=>n.getAttribute("data-swiper-slide-index")*1===t)[0])}recalcSlides(){const t=this,{slidesEl:n,params:r}=t;t.slides=ar(n,`.${r.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,n){const r=this;t=Math.min(Math.max(t,0),1);const s=r.minTranslate(),o=(r.maxTranslate()-s)*t+s;r.translateTo(o,typeof n>"u"?0:n),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=t.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",n.join(" "))}getSlideClasses(t){const n=this;return n.destroyed?"":t.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=[];t.slides.forEach(r=>{const s=t.getSlideClasses(r);n.push({slideEl:r,classNames:s}),t.emit("_slideClass",r,s)}),t.emit("_slideClasses",n)}slidesPerViewDynamic(t,n){t===void 0&&(t="current"),n===void 0&&(n=!1);const r=this,{params:s,slides:i,slidesGrid:o,slidesSizesGrid:a,size:l,activeIndex:c}=r;let u=1;if(typeof s.slidesPerView=="number")return s.slidesPerView;if(s.centeredSlides){let d=i[c]?Math.ceil(i[c].swiperSlideSize):0,f;for(let p=c+1;p<i.length;p+=1)i[p]&&!f&&(d+=Math.ceil(i[p].swiperSlideSize),u+=1,d>l&&(f=!0));for(let p=c-1;p>=0;p-=1)i[p]&&!f&&(d+=i[p].swiperSlideSize,u+=1,d>l&&(f=!0))}else if(t==="current")for(let d=c+1;d<i.length;d+=1)(n?o[d]+a[d]-o[c]<l:o[d]-o[c]<l)&&(u+=1);else for(let d=c-1;d>=0;d-=1)o[c]-o[d]<l&&(u+=1);return u}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:n,params:r}=t;r.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(o=>{o.complete&&yl(t,o)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function s(){const o=t.rtlTranslate?t.translate*-1:t.translate,a=Math.min(Math.max(o,t.maxTranslate()),t.minTranslate());t.setTranslate(a),t.updateActiveIndex(),t.updateSlidesClasses()}let i;if(r.freeMode&&r.freeMode.enabled&&!r.cssMode)s(),r.autoHeight&&t.updateAutoHeight();else{if((r.slidesPerView==="auto"||r.slidesPerView>1)&&t.isEnd&&!r.centeredSlides){const o=t.virtual&&r.virtual.enabled?t.virtual.slides:t.slides;i=t.slideTo(o.length-1,0,!1,!0)}else i=t.slideTo(t.activeIndex,0,!1,!0);i||s()}r.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n){n===void 0&&(n=!0);const r=this,s=r.params.direction;return t||(t=s==="horizontal"?"vertical":"horizontal"),t===s||t!=="horizontal"&&t!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${s}`),r.el.classList.add(`${r.params.containerModifierClass}${t}`),r.emitContainerClasses(),r.params.direction=t,r.slides.forEach(i=>{t==="vertical"?i.style.width="":i.style.height=""}),r.emit("changeDirection"),n&&r.update()),r}changeLanguageDirection(t){const n=this;n.rtl&&t==="rtl"||!n.rtl&&t==="ltr"||(n.rtl=t==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(t){const n=this;if(n.mounted)return!0;let r=t||n.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=n,r.parentNode&&r.parentNode.host&&r.parentNode.host.nodeName===n.params.swiperElementNodeName.toUpperCase()&&(n.isElement=!0);const s=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let o=r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(s()):ar(r,s())[0];return!o&&n.params.createElements&&(o=Rf("div",n.params.wrapperClass),r.append(o),ar(r,`.${n.params.slideClass}`).forEach(a=>{o.append(a)})),Object.assign(n,{el:r,wrapperEl:o,slidesEl:n.isElement&&!r.parentNode.host.slideSlots?r.parentNode.host:o,hostEl:n.isElement?r.parentNode.host:r,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||Yr(r,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||Yr(r,"direction")==="rtl"),wrongRTL:Yr(o,"display")==="-webkit-box"}),!0}init(t){const n=this;if(n.initialized||n.mount(t)===!1)return n;n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(),n.attachEvents();const s=[...n.el.querySelectorAll('[loading="lazy"]')];return n.isElement&&s.push(...n.hostEl.querySelectorAll('[loading="lazy"]')),s.forEach(i=>{i.complete?yl(n,i):i.addEventListener("load",o=>{yl(n,o.target)})}),Cf(n),n.initialized=!0,Cf(n),n.emit("init"),n.emit("afterInit"),n}destroy(t,n){t===void 0&&(t=!0),n===void 0&&(n=!0);const r=this,{params:s,el:i,wrapperEl:o,slides:a}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),s.loop&&r.loopDestroy(),n&&(r.removeClasses(),i&&typeof i!="string"&&i.removeAttribute("style"),o&&o.removeAttribute("style"),a&&a.length&&a.forEach(l=>{l.classList.remove(s.slideVisibleClass,s.slideFullyVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(l=>{r.off(l)}),t!==!1&&(r.el&&typeof r.el!="string"&&(r.el.swiper=null),BH(r)),r.destroyed=!0),null}static extendDefaults(t){Yt(Hu,t)}static get extendedDefaults(){return Hu}static get defaults(){return fv}static installModule(t){bn.prototype.__modules__||(bn.prototype.__modules__=[]);const n=bn.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>bn.installModule(n)),bn):(bn.installModule(t),bn)}}Object.keys(Bu).forEach(e=>{Object.keys(Bu[e]).forEach(t=>{bn.prototype[t]=Bu[e][t]})});bn.use([XH,ZH]);const rz=pe({__name:"r-skeleton",props:{idDti:{},sectionDti:{}},setup(e){const{DATA_TEST_ID:t,createDataTestId:n}=Mt();return(r,s)=>($(),X("div",St({class:"r-skeleton",[O(t)||""]:O(n)(O(Be).RSkeleton,r.sectionDti,r.idDti)}),null,16))}}),sz=["src"],iz=["alt"],oz=["src","alt"],az=pe({inheritAttrs:!1,__name:"r-lazy-image-with-skeleton",props:{url:{},alt:{},isLazy:{type:Boolean,default:!0},width:{},height:{},parentStyle:{},blockLazyCdn:{type:Boolean,default:!0},idDti:{},sectionDti:{}},setup(e){const{DATA_TEST_ID:t,createDataTestId:n}=Mt(),r=e,s=NI(),i=te(!0),o=te(!1),a=z(()=>({...s,onClick:void 0})),l=z(()=>s.class),c=z(()=>s.onClick),u=z(()=>r.url&&r.url.includes("zdjecia-cdn.r.pl")),d=z(()=>xH(r.url)),f=gn({loading:()=>{i.value=!0,o.value=!1},loaded:()=>{i.value=!1},error:()=>{i.value=!1,o.value=!0}}),p=()=>{i.value=!1},g=z(()=>r.width?`${r.width}px`:"100%"),v=z(()=>r.height?`${r.height}px`:"100%"),w=g.value&&v.value?`width: ${g.value}; height: ${v.value}`:"";return(y,m)=>{const h=fp("lazy");return $(),X("div",{class:Ee([l.value,"r-lazy-image-with-skeleton"]),style:pn(y.parentStyle),onClick:m[0]||(m[0]=(..._)=>c.value&&c.value(..._))},[i.value?($(),X(Ce,{key:0},[!u.value||y.blockLazyCdn?($(),se(rz,{key:0,class:Ee([l.value,"r-lazy-image-with-skeleton__skeleton"]),style:pn(O(w)),"section-dti":y.sectionDti,"id-dti":y.idDti},null,8,["class","style","section-dti","id-dti"])):($(),X("img",rt({key:1},a.value,{class:[l.value,"r-lazy-image-with-skeleton__skeleton r-lazy-image-with-skeleton__cdn"],style:O(w),src:d.value,[O(t)||""]:O(n)(O(Be).RLazyImageWithSkeleton,y.sectionDti,y.idDti)}),null,16,sz))],64)):fe("",!0),y.isLazy?Ls(($(),X("img",rt({key:1},a.value,{alt:y.alt,[O(t)||""]:O(n)(O(Be).RLazyImageWithSkeleton,y.sectionDti,y.idDti)}),null,16,iz)),[[h,{src:y.url,lifecycle:f}]]):($(),X("img",rt({key:2},a.value,{src:y.url,alt:y.alt,[O(t)||""]:O(n)(O(Be).RLazyImageWithSkeleton,y.sectionDti,y.idDti),onLoad:p}),null,16,oz))],6)}}}),lz=["src","alt"],cz=["alt"],uz=pe({__name:"r-image",props:{url:{},showSkeleton:{type:Boolean,default:!1},alt:{},isLazy:{type:Boolean,default:!0},skeletonWidth:{},skeletonHeight:{},parentStyle:{},blockLazyCdn:{type:Boolean,default:!0},idDti:{},sectionDti:{}},setup(e){const{DATA_TEST_ID:t,createDataTestId:n}=Mt();return(r,s)=>{const i=fp("lazy");return r.isLazy?r.showSkeleton?($(),se(az,{key:2,url:r.url,alt:r.alt,"is-lazy":r.isLazy,width:r.skeletonWidth,height:r.skeletonHeight,"parent-style":r.parentStyle,"section-dti":r.sectionDti,"id-dti":r.idDti,"block-lazy-cdn":r.blockLazyCdn},null,8,["url","alt","is-lazy","width","height","parent-style","section-dti","id-dti","block-lazy-cdn"])):Ls(($(),X("img",St({key:1,alt:r.alt,[O(t)||""]:O(n)(O(Be).RImage,r.sectionDti,r.idDti)}),null,16,cz)),[[i,r.url]]):($(),X("img",St({key:0,src:r.url,alt:r.alt,[O(t)||""]:O(n)(O(Be).RImage,r.sectionDti,r.idDti)}),null,16,lz))}}}),dz={class:"r-confirm-dialog__header"},fz={class:"r-confirm-dialog__body"},pz={class:"r-confirm-dialog__footer"};Be.RConfirmDialog;const hz=pe({__name:"r-container",props:{tag:{default:"section"},backgroundColor:{default:"none"},sidePaddings:{type:Boolean,default:!0},idDti:{},sectionDti:{}},setup(e){const{DATA_TEST_ID:t,createDataTestId:n}=Mt(),r=e,s=z(()=>r.backgroundColor!=="none"?`r-container--${r.backgroundColor}`:""),i=z(()=>r.sidePaddings?"r-container--padding":"");return(o,a)=>($(),se(cs(o.tag),St({class:["r-container",{[s.value]:o.backgroundColor,[i.value]:o.sidePaddings}],[O(t)||""]:O(n)(O(Be).RContainer,o.sectionDti,o.idDti)}),{default:de(()=>[Te(o.$slots,"default")]),_:3},16,["class"]))}});var Nn=(e=>(e.LOADING="loading",e.LOADED="loaded",e.ERROR="error",e))(Nn||{});const gz=typeof window<"u"&&window!==null,mz=wz(),_z=Object.prototype.propertyIsEnumerable,pv=Object.getOwnPropertySymbols;function Bo(e){return typeof e=="function"||toString.call(e)==="[object Object]"}function vz(e){return typeof e=="object"?e===null:typeof e!="function"}function yz(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"}function wz(){return gz&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype?("isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get(){return this.intersectionRatio>0}}),!0):!1}function bz(e,...t){if(!Bo(e))throw new TypeError("expected the first argument to be an object");if(t.length===0||typeof Symbol!="function"||typeof pv!="function")return e;for(const n of t){const r=pv(n);for(const s of r)_z.call(n,s)&&(e[s]=n[s])}return e}function ES(e,...t){let n=0;for(vz(e)&&(e=t[n++]),e||(e={});n<t.length;n++)if(Bo(t[n])){for(const r of Object.keys(t[n]))yz(r)&&(Bo(e[r])&&Bo(t[n][r])?ES(e[r],t[n][r]):e[r]=t[n][r]);bz(e,t[n])}return e}const hv="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Ez="",Tz={rootMargin:"0px",threshold:0},ii="data-lazy-timeout-id";class Sz{constructor(t){this.options={loading:hv,error:Ez,observerOptions:Tz,log:!0,lifecycle:{},logLevel:"error"},this._images=new WeakMap,this.config(t)}config(t={}){ES(this.options,t)}mount(t,n){if(!t)return;const{src:r,loading:s,error:i,lifecycle:o,delay:a}=this._valueFormatter(typeof n=="string"?n:n.value);this._lifecycle(Nn.LOADING,o,t),t.setAttribute("src",s||hv),mz||(this.loadImages(t,r,i,o),this._log(()=>{this._logger("Not support IntersectionObserver!")})),this._initIntersectionObserver(t,r,i,o,a)}update(t,n){var a;if(!t)return;(a=this._realObserver(t))==null||a.unobserve(t);const{src:r,error:s,lifecycle:i,delay:o}=this._valueFormatter(typeof n=="string"?n:n.value);this._initIntersectionObserver(t,r,s,i,o)}unmount(t){var n;t&&((n=this._realObserver(t))==null||n.unobserve(t),this._images.delete(t))}loadImages(t,n,r,s){this._setImageSrc(t,n,r,s)}_setImageSrc(t,n,r,s){t.tagName.toLowerCase()==="img"?(n&&t.getAttribute("src")!==n&&t.setAttribute("src",n),this._listenImageStatus(t,()=>{this._lifecycle(Nn.LOADED,s,t)},()=>{var i;t.onload=null,this._lifecycle(Nn.ERROR,s,t),(i=this._realObserver(t))==null||i.disconnect(),r&&t.getAttribute("src")!==r&&t.setAttribute("src",r),this._log(()=>{this._logger(`Image failed to load!And failed src was: ${n} `)})})):t.style.backgroundImage=`url('${n}')`}_initIntersectionObserver(t,n,r,s,i){var a;const o=this.options.observerOptions;this._images.set(t,new IntersectionObserver(l=>{Array.prototype.forEach.call(l,c=>{i&&i>0?this._delayedIntersectionCallback(t,c,i,n,r,s):this._intersectionCallback(t,c,n,r,s)})},o)),(a=this._realObserver(t))==null||a.observe(t)}_intersectionCallback(t,n,r,s,i){var o;n.isIntersecting&&((o=this._realObserver(t))==null||o.unobserve(n.target),this._setImageSrc(t,r,s,i))}_delayedIntersectionCallback(t,n,r,s,i,o){if(n.isIntersecting){if(n.target.hasAttribute(ii))return;const a=setTimeout(()=>{this._intersectionCallback(t,n,s,i,o),n.target.removeAttribute(ii)},r);n.target.setAttribute(ii,String(a))}else n.target.hasAttribute(ii)&&(clearTimeout(Number(n.target.getAttribute(ii))),n.target.removeAttribute(ii))}_listenImageStatus(t,n,r){t.onload=n,t.onerror=r}_valueFormatter(t){let n=t,r=this.options.loading,s=this.options.error,i=this.options.lifecycle,o=this.options.delay;return Bo(t)&&(n=t.src,r=t.loading||this.options.loading,s=t.error||this.options.error,i=t.lifecycle||this.options.lifecycle,o=t.delay||this.options.delay),{src:n,loading:r,error:s,lifecycle:i,delay:o}}_log(t){this.options.log&&t()}_lifecycle(t,n,r){switch(t){case Nn.LOADING:r==null||r.setAttribute("lazy",Nn.LOADING),n!=null&&n.loading&&n.loading(r);break;case Nn.LOADED:r==null||r.setAttribute("lazy",Nn.LOADED),n!=null&&n.loaded&&n.loaded(r);break;case Nn.ERROR:r==null||r.setAttribute("lazy",Nn.ERROR),n!=null&&n.error&&n.error(r);break}}_realObserver(t){return this._images.get(t)}_logger(t,...n){let r=console.error;switch(this.options.logLevel){case"error":r=console.error;break;case"warn":r=console.warn;break;case"info":r=console.info;break;case"debug":r=console.debug;break}r(t,n)}}const kz={install(e,t){const n=new Sz(t);e.config.globalProperties.$Lazyload=n,e.provide("Lazyload",n),e.directive("lazy",{mounted:n.mount.bind(n),updated:n.update.bind(n),unmounted:n.unmount.bind(n)})}},Iz=["tabindex"],Rz={key:0,class:"r-drawer__header"},Cz={class:"r-drawer__body r-drawer__body--seo"},gv="24px",mv="12px",Az=pe({inheritAttrs:!1,__name:"r-drawer",props:{title:{},titleTag:{default:"h3"},showHeader:{type:Boolean,default:!0},closeOnBgClick:{type:Boolean,default:!0},backdropColor:{default:"rgb(0 0 0 / 40%)"},mode:{default:"auto"},modelValue:{type:Boolean,default:!1},inHtmlSeo:{type:Boolean,default:!1},showDrawerPrevent:{type:Boolean,default:!1},position:{default:"right"},variant:{default:"unstyled"},contentClass:{default:""},headerPadding:{default:()=>({left:"32px",right:"36px"})},animation:{type:Boolean,default:!0},isFocusable:{type:Boolean,default:!0},idDti:{},sectionDti:{}},emits:["update:modelValue","close","open"],setup(e,{emit:t}){const{DATA_TEST_ID:n,createDataTestId:r}=Mt(),s=te(null),i=te(null),o=te(null),a=te(null),l=te(!1),c=te(!1),u=e,d=z(()=>u.animation?"r-drawer-fade":"no-animation"),f=z(()=>({"--padding-left":u.headerPadding.left,"--padding-right":u.headerPadding.right})),p=z(()=>u.variant?`r-drawer__content--${u.variant}`:""),g=t,{closeOnBgClick:v,backdropColor:w,mode:y,modelValue:m,showDrawerPrevent:h}=rn(u),{blockScroll:_,unblockScroll:b}=hS(),E=W=>{h.value&&W.preventDefault(),R(),g("open")},R=()=>{_(),l.value=!0},S=()=>{l.value=!1,nn(()=>{document.querySelectorAll(".r-drawer--open").length||b()})},A=()=>{y.value==="auto"?S():g("update:modelValue",!1),g("close")},D=()=>{if(i.value&&i.value.parentElement){const W=i.value.parentElement;W&&W.addEventListener("click",E)}},L=()=>{if(i.value&&i.value.parentElement){const W=i.value.parentElement;W&&W.removeEventListener("click",E)}};Se(m,W=>{l.value=W,W?R():S()}),Se(s,()=>{s.value&&u.isFocusable&&s.value.focus()}),Se(a,()=>{const{width:W}=tv(a),{width:ee}=tv(o);a.value&&W.value+52>ee.value&&(c.value=!0)}),Dt(()=>{y.value==="auto"&&D(),m.value&&R()}),Tr(()=>{b(),y.value==="auto"&&L()});const N=z(()=>u.variant==="radius"&&u.position==="bottom"?mv:gv),x={"--icon-size-large":gv,"--icon-size-small":mv};return(W,ee)=>($(),X("div",{ref_key:"drawerRef",ref:i,class:Ee(["r-drawer",{"r-drawer--open":l.value}])},[($(),se(Dl,{to:"body"},[Q(zn,{name:d.value,appear:""},{default:de(()=>[l.value?($(),X("div",rt({key:0},W.$attrs,{class:["r-drawer__element",{"r-drawer__element--open":l.value}]}),[Z("div",St({class:["r-drawer__content",`r-drawer__content--${W.position} ${W.contentClass} ${p.value}`],[O(n)||""]:O(r)(O(Be).RDrawer,W.sectionDti,W.idDti)}),[Te(W.$slots,"header",{close:A},()=>[W.showHeader?($(),X("div",{key:0,ref_key:"headerRef",ref:o,class:"r-drawer__header",style:pn(f.value)},[Q(at,{ref_key:"headerTextRef",ref:a,class:Ee(["r-drawer__header-text",{"r-drawer__header-text--wrapper":c.value}]),variant:"h5","font-family":"secondary","font-weight":"bold",tag:W.titleTag},{default:de(()=>[Le(Ve(W.title),1)]),_:1},8,["class","tag"]),Z("div",{class:"r-drawer__header-x-icon",style:x,onClick:A},[Q(kf,St({size:N.value,[O(n)||""]:O(r)(O(Be).RIconClose,W.sectionDti,W.idDti)}),null,16,["size"])])],4)):fe("",!0)]),Z("div",{ref_key:"bodyRef",ref:s,class:"r-drawer__body",tabindex:W.isFocusable?1:0},[Te(W.$slots,"body",{close:A})],8,Iz)],16),Z("div",{class:"r-drawer__background",style:pn({"background-color":O(w)}),onClick:ee[0]||(ee[0]=K=>O(v)?A():()=>{})},null,4)],16)):fe("",!0)]),_:3},8,["name"]),!l.value&&W.inHtmlSeo?($(),X("div",rt({key:0},W.$attrs,{class:"r-drawer__element r-drawer__element--translate"}),[Z("div",{class:Ee(["r-drawer__content",`r-drawer__content--${W.position} ${W.contentClass} ${p.value}`])},[Te(W.$slots,"header",{close:A},()=>[W.showHeader?($(),X("div",Rz,[Q(at,{class:"r-drawer__header-text",variant:"h5","font-family":"main","font-weight":"bold",tag:"p"},{default:de(()=>[Le(Ve(W.title),1)]),_:1}),Z("div",{class:"r-drawer__header-x-icon",style:x,onClick:A},[Q(kf,St({size:N.value,[O(n)||""]:O(r)(O(Be).RIconClose,W.sectionDti,W.idDti)}),null,16,["size"])])])):fe("",!0)]),Z("div",Cz,[Te(W.$slots,"body",{close:A})])],2),Z("div",{class:"r-drawer__background",style:pn({"background-color":O(w)}),onClick:ee[1]||(ee[1]=K=>O(v)?A():()=>{})},null,4)],16)):fe("",!0)]))],2))}}),Oz={key:0,class:"r-checkbox-icon__interior"},F8=pe({__name:"r-checkbox-icon",props:{value:{type:Boolean},animation:{type:Boolean,default:!1},color:{default:"primary"},disabled:{type:Boolean,default:!1},partiallyChecked:{type:Boolean,default:!1},componentDti:{default:Be.RCheckboxIcon},idDti:{},sectionDti:{}},setup(e){const{DATA_TEST_ID:t,createDataTestId:n}=Mt(),r=e,s=z(()=>`r-checkbox-icon--color-${r.color}`),i=z(()=>r.value?"r-checkbox-icon--selected":""),o=z(()=>r.value&&r.animation?"r-checkbox-icon--animation":""),a=z(()=>r.disabled?"r-checkbox-icon--disabled":"");return(l,c)=>($(),X("div",St({class:["r-checkbox-icon",[s.value,i.value,o.value,a.value]],[O(t)||""]:O(n)(l.componentDti,l.sectionDti,l.idDti)}),[l.partiallyChecked||l.value?($(),X("div",Oz)):fe("",!0)],16))}}),Pz=gt(e=>{e.vueApp.use(kz,{log:!1})}),Lz=[zA,WA,gP,mP,_P,vP,wP,FP,BP,HP,d$,sx,ix,gx,dB,fB,aH,dH,Pz],Dz=pe({props:{vnode:{type:Object,required:!0},route:{type:Object,required:!0},vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(e){const t=e.renderKey,n=e.route,r={};for(const s in e.route)Object.defineProperty(r,s,{get:()=>t===e.renderKey?e.route[s]:n[s]});return Wn(pa,sr(r)),()=>At(e.vnode,{ref:e.vnodeRef})}}),Nz=pe({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t,slots:n,expose:r}){const s=De(),i=te(),o=et(pa,null);let a;r({pageRef:i});const l=et(ob,null);let c;const u=s.deferHydration();if(s.isHydrating){const d=s.hooks.hookOnce("app:error",u);Ht().beforeEach(d)}return e.pageKey&&Se(()=>e.pageKey,(d,f)=>{d!==f&&s.callHook("page:loading:start")}),()=>At(Ob,{name:e.name,route:e.route,...t},{default:d=>{const f=$z(o,d.route,d.Component),p=o&&o.matched.length===d.route.matched.length;if(!d.Component){if(c&&!p)return c;u();return}if(c&&l&&!l.isCurrent(d.route))return c;if(f&&o&&(!l||l!=null&&l.isCurrent(o)))return p?c:null;const g=Hd(d,e.pageKey);!s.isHydrating&&!xz(o,d.route,d.Component)&&a===g&&s.callHook("page:loading:end"),a=g;const v=!!(e.transition??d.route.meta.pageTransition??Ad),w=v&&Mz([e.transition,d.route.meta.pageTransition,Ad,{onAfterLeave:()=>{s.callHook("page:transition:finish",d.Component)}}].filter(Boolean)),y=e.keepalive??d.route.meta.keepalive??fC;return c=Pb(zn,v&&w,JO(y,At(yp,{suspensible:!0,onPending:()=>s.callHook("page:start",d.Component),onResolve:()=>{nn(()=>s.callHook("page:finish",d.Component).then(()=>s.callHook("page:loading:end")).finally(u))}},{default:()=>{const m=At(Dz,{key:g||void 0,vnode:n.default?At(Ce,void 0,n.default(d)):d.Component,route:d.route,renderKey:g||void 0,trackRootNodes:v,vnodeRef:i});return y&&(m.type.name=d.Component.type.name||d.Component.type.__name||"RouteProvider"),m}}))).default(),c}})}});function Mz(e){const t=e.map(n=>({...n,onAfterLeave:n.onAfterLeave?Op(n.onAfterLeave):void 0}));return sb(...t)}function $z(e,t,n){if(!e)return!1;const r=t.matched.findIndex(s=>{var i;return((i=s.components)==null?void 0:i.default)===(n==null?void 0:n.type)});return!r||r===-1?!1:t.matched.slice(0,r).some((s,i)=>{var o,a,l;return((o=s.components)==null?void 0:o.default)!==((l=(a=e.matched[i])==null?void 0:a.components)==null?void 0:l.default)})||n&&Hd({route:t,Component:n})!==Hd({route:e,Component:n})}function xz(e,t,n){return e?t.matched.findIndex(s=>{var i;return((i=s.components)==null?void 0:i.default)===(n==null?void 0:n.type)})<t.matched.length-1:!1}const Uz=pe({name:"LayoutLoader",inheritAttrs:!1,props:{name:String,layoutProps:Object},async setup(e,t){const n=await Gr[e.name]().then(r=>r.default||r);return()=>At(n,e.layoutProps,t.slots)}}),Fz=pe({name:"NuxtLayout",inheritAttrs:!1,props:{name:{type:[String,Boolean,Object],default:null},fallback:{type:[String,Object],default:null}},setup(e,t){const n=De(),r=et(pa),s=r===ha()?qO():r,i=z(()=>{let l=O(e.name)??s.meta.layout??"default";return l&&!(l in Gr)&&e.fallback&&(l=O(e.fallback)),l}),o=te();t.expose({layoutRef:o});const a=n.deferHydration();if(n.isHydrating){const l=n.hooks.hookOnce("app:error",a);Ht().beforeEach(l)}return()=>{const l=i.value&&i.value in Gr,c=s.meta.layoutTransition??dC;return Pb(zn,l&&c,{default:()=>At(yp,{suspensible:!0,onResolve:()=>{nn(a)}},{default:()=>At(Bz,{layoutProps:rt(t.attrs,{ref:o}),key:i.value||void 0,name:i.value,shouldProvide:!e.name,hasTransition:!!c},t.slots)})}).default()}}}),Bz=pe({name:"NuxtLayoutProvider",inheritAttrs:!1,props:{name:{type:[String,Boolean]},layoutProps:{type:Object},hasTransition:{type:Boolean},shouldProvide:{type:Boolean}},setup(e,t){const n=e.name;return e.shouldProvide&&Wn(ob,{isCurrent:r=>n===(r.meta.layout??"default")}),()=>{var r,s;return!n||typeof n=="string"&&!(n in Gr)?(s=(r=t.slots).default)==null?void 0:s.call(r):At(Uz,{key:n,layoutProps:e.layoutProps,name:n},t.slots)}}}),Hz=pe({__name:"app",setup(e){return(t,n)=>{const r=Nz,s=Fz;return $(),X("div",null,[Q(s,null,{default:de(()=>[Q(r)]),_:1})])}}});function Jc(e,t){const{save:n}=ph(t);return{setMenuClickedElement:({Klucz:o,Nazwa:a})=>{n(Ut.EBigQueryActionType.ELEMENT_CLICKED,{Element:Ut.EBigQueryElementType.MENU_HEADER,Klucz:o,Nazwa:a,Sekcje:[Ut.ESections.MENU_HEADER,a]})},setMenuClickedElementKategoria:o=>{n(Ut.EBigQueryActionType.ELEMENT_CLICKED,{Element:Ut.EBigQueryElementType.MENU_HEADER,Klucz:`${o.Nazwa}`,Nazwa:o.Nazwa,Sekcje:[Ut.ESections.MENU_HEADER,o.Nazwa]}),e({Element:o,Type:"Kategoria"})},setMenuClickedElementPodkategoria:(o,a)=>{n(Ut.EBigQueryActionType.ELEMENT_CLICKED,{Element:Ut.EBigQueryElementType.MENU_HEADER,Klucz:`${o.Nazwa}`,Nazwa:o.Nazwa,Sekcje:[Ut.ESections.MENU_HEADER,a,o.Nazwa]}),e({Element:o,Type:"Podkategoria"})}}}const jz={class:"flex flex-col"},zz={class:"desktop:flex-row gap-s-3 flex flex-col items-center"},Vz={class:"relative"},Wz={key:0,class:"menu-item__count bg-pink-c text-white-c font-primary absolute left-2/3 top-0 rounded-3xl text-center font-bold"},lr=pe({__name:"MenuItem",props:{icon:{},iconSize:{default:"24px"},element:{},tag:{default:"a"},text:{},href:{},ilosc:{},bigQueryConfig:{},label:{}},emits:["menuElementClicked","click"],setup(e,{emit:t}){const n=t,r=e,s=a=>{n("menuElementClicked",a)},{setMenuClickedElement:i}=Jc(s,r.bigQueryConfig),o=()=>{r.element?i(r.element):n("click")};return(a,l)=>($(),se(cs(a.tag),{href:a.href,class:"desktop:flex-row gap-s-2 desktop:gap-s-3 flex cursor-pointer flex-col items-center justify-center no-underline",onClick:o},{default:de(()=>[Z("div",jz,[a.label?($(),se(O(at),{key:0,variant:"caption",tag:"p","font-family":"secondary",class:"m-b-s-1 m-0 text-center",color:"gray"},{default:de(()=>[Le(Ve(a.label),1)]),_:1})):fe("",!0),Z("div",zz,[Z("div",Vz,[Q(O(ot),{icon:a.icon,color:"black",size:a.iconSize},null,8,["icon","size"]),a.ilosc&&a.ilosc>0?($(),X("div",Wz,Ve(a.ilosc),1)):fe("",!0)]),a.text?($(),se(O(at),{key:0,variant:"h6",tag:"p","font-weight":"bold","font-family":"secondary",color:"primary",class:"m-0"},{default:de(()=>[Le(Ve(a.text),1)]),_:1})):fe("",!0)])])]),_:1},8,["href"]))}}),ju=[{key:"twoje-podroze",label:"Twoje podróże",url:"/moje-rainbow/twoje-podroze",icon:"beach",requiresAuth:!0},{key:"ustawienia-konta",label:"Ustawienia konta",url:"/moje-rainbow/ustawienia-konta",icon:"sliders",requiresAuth:!0},{key:"program-lojalnosciowy",label:"Program Bumerang",url:"/moje-rainbow/program-lojalnosciowy",icon:"boomerang-fill-color",requiresAuth:!0}];var Xc=(e=>(e.ANCHOR="a",e.ROUTER_LINK="router-link",e))(Xc||{});const Kz={class:"user-nav-list"},Af=pe({__name:"UserNavList",props:{userInfo:{},anchorTag:{},isSideNav:{type:Boolean,default:!1},isActive:{type:Boolean,default:!1}},emits:["login","logout","itemClicked"],setup(e){var s;const t=e,n=z(()=>t.userInfo?ju:ju.filter(i=>!i.requiresAuth)),r=t.anchorTag===Xc.ANCHOR&&((s=ju.find(i=>location.href.includes(i.url)))==null?void 0:s.key)||"";return(i,o)=>($(),X("div",Kz,[Z("div",{class:Ee(["flex flex-col",{"mt-s-7 mb-s-5 mx-0":i.isSideNav}])},[($(!0),X(Ce,null,dn(n.value,a=>($(),se(cs(i.anchorTag),{key:a.key,href:a.url,to:a.url,"active-class":i.isSideNav?"user-nav-list__item--active [&_h5]:font-bold":"",class:Ee(["border-gray-c hover:bg-gray-light-c flex items-center border-0 border-b border-solid font-bold no-underline",{"user-nav-list__item--active":i.isSideNav&&a.key===O(r),"user-nav-list__item--side-nav h-s-9":i.isSideNav}]),onClick:l=>i.$emit("itemClicked",a)},{default:de(()=>[Z("div",{class:Ee(["gap-s-5 flex items-center",{"p-s-5":!i.isSideNav}])},[Q(O(ot),{icon:a.icon},null,8,["icon"]),Q(O(at),{"font-family":"secondary",variant:"h5",class:"m-0"},{default:de(()=>[Le(Ve(a.label),1)]),_:2},1024)],2)]),_:2},1032,["href","to","active-class","class","onClick"]))),128)),i.userInfo?($(),X("div",{key:0,class:Ee(["hover:bg-gray-light-c flex cursor-pointer items-center",{"user-nav-list__item--side-nav h-s-9":i.isSideNav}]),onClick:o[0]||(o[0]=a=>i.$emit("logout"))},[Z("div",{class:Ee(["gap-s-5 flex items-center",{"p-s-5":!i.isSideNav}])},[Q(O(ot),{icon:"exit"}),Q(O(at),{"font-family":"secondary",variant:"h5",class:"m-0"},{default:de(()=>[Le(" Wyloguj ")]),_:1})],2)],2)):fe("",!0)],2)]))}}),TS=pe({__name:"UserNavAvatar",props:{userInfo:{},showDetails:{type:Boolean,default:!0},direction:{default:"row"},logoSize:{default:"48px"},logoFontSize:{default:"28px"}},setup(e){return(t,n)=>($(),X("div",{class:Ee(["flex gap-s-5",{"flex-col":t.direction==="column"}])},[Q(O(at),{color:"accent-darker",class:"flex shrink-0 justify-center items-center m-0 bg-primary-c rounded-r-4",variant:"h3","font-weight":"bold","font-family":"secondary",style:pn({width:t.logoSize,height:t.logoSize,fontSize:t.logoFontSize})},{default:de(()=>[Le(Ve(t.userInfo.inicjaly),1)]),_:1},8,["style"]),t.showDetails?($(),X("div",{key:0,class:Ee(["flex flex-col justify-between",{"justify-center":!t.userInfo.imie||!t.userInfo.nazwisko}])},[t.userInfo.imie||t.userInfo.nazwisko?($(),se(O(at),{key:0,class:"m-0",variant:"h4","font-weight":"bold","font-family":"secondary"},{default:de(()=>[Le(Ve([t.userInfo.imie,t.userInfo.nazwisko].join(" ")),1)]),_:1})):fe("",!0),Q(O(at),{class:Ee([{"user-nav-avatar--email-only ":!t.userInfo.imie&&!t.userInfo.nazwisko},"m-0"]),variant:"body2","font-family":"secondary"},{default:de(()=>[Le(Ve(t.userInfo.email),1)]),_:1},8,["class"])],2)):fe("",!0),Te(t.$slots,"default")],2))}}),Gz={href:"https://r.pl/","aria-label":"Strona główna biura podróży Rainbow"},qz={class:"logo__container flex items-center"},Yz={class:"m-0 p-0"},Of=pe({__name:"MenuLogo",setup(e){return(t,n)=>($(),X("a",Gz,[Z("div",qz,[Z("figure",Yz,[Q(O(ot),{icon:"r-fill",size:"36px",color:"#FFBF00"})]),Q(O(ot),{class:"logo__text ml-s-2",icon:"r-text",color:"#0054A6"})])]))}}),Jz={class:"h-menu-height border-primary-lighter2-c flex flex-row items-center justify-center border border-solid"},Xz={key:0,class:"gap-s-9 mt-auto flex flex-row items-center justify-evenly"},gh=pe({__name:"MobileDrawer",props:{title:{},showArrow:{type:Boolean,default:!0},showPaddingX:{type:Boolean,default:!0},mode:{},modelValue:{type:Boolean},fullHeight:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){const n=t,r=s=>{s&&s(),n("close")};return(s,i)=>($(),se(O(Az),{"content-class":"relative w-full tablet:w-96 desktop:w-auto",position:"left",mode:s.mode,"model-value":s.modelValue,"close-on-bg-click":!1,onClose:r},{header:de(({close:o})=>[Z("div",Jz,[s.showArrow?($(),se(O(ot),{key:0,class:"absolute left-5 cursor-pointer",size:"24px",icon:"arrow-left",onClick:a=>r(o)},null,8,["onClick"])):fe("",!0),s.title?($(),se(O(at),{key:2,variant:"h5",tag:"p","font-weight":"bold","font-family":"secondary",class:"text-center"},{default:de(()=>[Le(Ve(s.title),1)]),_:1})):($(),se(Of,{key:1})),Q(O(ot),{class:"absolute right-5 cursor-pointer",size:"24px",icon:"close",onClick:a=>r(o)},null,8,["onClick"])])]),body:de(()=>[Z("div",{class:Ee(["pt-s-6 pb-s-7 flex flex-col",{"px-s-5":s.showPaddingX,"h-full":s.fullHeight}])},[Te(s.$slots,"default"),s.$slots.footer?($(),X("div",Xz,[Te(s.$slots,"footer")])):fe("",!0)],2)]),_:3},8,["mode","model-value"]))}}),Zz={class:"w-s-6 h-s-6 rounded-r-4 text-primary-c font-secondary flex items-center justify-center bg-yellow-400 p-3 text-xs font-bold leading-3"},SS=pe({__name:"UserMenu",props:{schowekIlosc:{},userInfo:{},isUserLoaded:{type:Boolean},userNavAnchorTag:{},userMenuPosition:{},desktopFullViewport:{type:Boolean},bigQueryConfig:{}},emits:["menuElementClicked","login","logout"],setup(e,{emit:t}){const n=e,r=t,{isMinWidth:s}=Tf(Us.USER_MENU_PANEL),{isMinWidth:i}=Tf(Us.DESKTOP),o=te(!1),a=f=>{i.value||(o.value=f)},l=f=>{r("menuElementClicked",f)},{setMenuClickedElement:c}=Jc(l,n.bigQueryConfig),u=()=>{n.userInfo?r("logout"):(c({Klucz:"panel-klienta",Nazwa:"Panel klienta"}),r("login"))},d=z(()=>n.desktopFullViewport?n.userMenuPosition:s.value?"bottom":"bottom-left");return(f,p)=>!f.userInfo&&f.isUserLoaded?($(),se(lr,{key:0,tag:"div",icon:"user","big-query-config":f.bigQueryConfig,onClick:u},null,8,["big-query-config"])):f.userInfo&&f.isUserLoaded?($(),X("div",{key:1,class:"flex cursor-pointer flex-row items-center justify-center",onClick:p[4]||(p[4]=g=>a(!0))},[Z("div",Zz,Ve(f.userInfo.inicjaly),1),Q(O(pS),{position:d.value,location:"absolute",class:"desktop:block top-s-9 hidden h-fit max-h-none max-w-56 p-0"},{default:de(()=>[Q(Af,{"schowek-ilosc":f.schowekIlosc,"user-info":f.userInfo,"anchor-tag":f.userNavAnchorTag,onLogout:p[0]||(p[0]=g=>f.$emit("logout"))},null,8,["schowek-ilosc","user-info","anchor-tag"])]),_:1},8,["position"]),O(i)?fe("",!0):($(),se(gh,{key:0,mode:"model","model-value":o.value,"show-arrow":!1,"show-padding-x":!1,class:"desktop:hidden",onClose:p[3]||(p[3]=g=>o.value=!1)},{default:de(()=>[f.userInfo?($(),se(TS,{key:0,"user-info":f.userInfo,class:"ml-s-5"},null,8,["user-info"])):fe("",!0),Q(Af,{"schowek-ilosc":f.schowekIlosc,"user-info":f.userInfo,"anchor-tag":f.userNavAnchorTag,class:"mt-s-5",onLogout:p[1]||(p[1]=g=>f.$emit("logout")),onItemClicked:p[2]||(p[2]=g=>o.value=!1)},null,8,["schowek-ilosc","user-info","anchor-tag"])]),_:1},8,["model-value"]))])):fe("",!0)}}),kS="/ulubione",Qz="/moje-rainbow/koszyk",IS=pe({__name:"MenuKoszykMenu",props:{iloscElementowWKoszyku:{},userNavAnchorTag:{},bigQueryConfig:{}},emits:["menuElementClicked"],setup(e){return(t,n)=>($(),se(lr,{ilosc:t.iloscElementowWKoszyku,icon:"shopping-cart",href:O(Qz),element:{Klucz:"koszyk",Nazwa:"Koszyk"},"big-query-config":t.bigQueryConfig,onMenuElementClicked:n[0]||(n[0]=r=>t.$emit("menuElementClicked",r))},null,8,["ilosc","href","big-query-config"]))}}),eV={class:"gap-s-5 ml-auto flex items-center justify-center"},tV=pe({__name:"MenuNavigation",props:{schowekIlosc:{},panelKlienta:{type:Boolean},iloscElementowWKoszyku:{},bigQueryConfig:{},userNavAnchorTag:{},userInfo:{},isUserLoaded:{type:Boolean},kierunkowy:{},showNumber:{type:Boolean},showBiura:{type:Boolean},showUlubione:{type:Boolean},showKoszyk:{type:Boolean},phoneNumber:{},phoneLabel:{},desktopFullViewport:{type:Boolean},userMenuPosition:{}},emits:["menuElementClicked","login","logout"],setup(e,{emit:t}){const n=t;return(r,s)=>($(),X("div",eV,[r.showNumber?($(),se(lr,{key:0,href:"https://r.pl/kontakt",icon:"phone",text:`${r.kierunkowy} ${r.phoneNumber}`,element:{Klucz:"telefon",Nazwa:"Telefon"},"aria-label":`Numer telefonu ${r.phoneNumber}`,"big-query-config":r.bigQueryConfig,label:r.phoneLabel,onMenuElementClicked:s[0]||(s[0]=i=>r.$emit("menuElementClicked",i))},null,8,["text","aria-label","big-query-config","label"])):fe("",!0),r.showBiura?($(),se(lr,{key:1,href:"https://r.pl/biura",icon:"pin",element:{Klucz:"biura",Nazwa:"Biura"},"aria-label":"Salony firmowe i biura sprzedaży Rainbow","big-query-config":r.bigQueryConfig,onMenuElementClicked:s[1]||(s[1]=i=>r.$emit("menuElementClicked",i))},null,8,["big-query-config"])):fe("",!0),r.showUlubione?($(),se(lr,{key:2,href:O(kS),icon:"heart",rel:"nofollow",ilosc:r.schowekIlosc,"aria-label":`Schowek ${r.schowekIlosc}`,element:{Klucz:"schowek",Nazwa:"Schowek"},"big-query-config":r.bigQueryConfig,onMenuElementClicked:s[2]||(s[2]=i=>r.$emit("menuElementClicked",i))},null,8,["href","ilosc","aria-label","big-query-config"])):fe("",!0),r.showKoszyk&&r.iloscElementowWKoszyku>0?($(),se(IS,{key:3,"ilosc-elementow-w-koszyku":r.iloscElementowWKoszyku,"big-query-config":r.bigQueryConfig,"user-nav-anchor-tag":r.userNavAnchorTag,class:"desktop:visible invisible",onMenuElementClicked:s[3]||(s[3]=i=>r.$emit("menuElementClicked",i))},null,8,["ilosc-elementow-w-koszyku","big-query-config","user-nav-anchor-tag"])):fe("",!0),Q(SS,{"desktop-full-viewport":r.desktopFullViewport,"user-menu-position":r.userMenuPosition,"big-query-config":r.bigQueryConfig,"schowek-ilosc":r.schowekIlosc,"user-nav-anchor-tag":r.userNavAnchorTag,"is-user-loaded":r.isUserLoaded,"user-info":r.userInfo,class:"desktop:visible invisible",onLogin:s[4]||(s[4]=i=>n("login")),onLogout:s[5]||(s[5]=i=>n("logout")),onMenuElementClicked:s[6]||(s[6]=i=>r.$emit("menuElementClicked",i))},null,8,["desktop-full-viewport","user-menu-position","big-query-config","schowek-ilosc","user-nav-anchor-tag","is-user-loaded","user-info"])]))}}),nV=["innerHTML"],rV=pe({__name:"MenuIcon",props:{url:{},color:{default:"#0054A6"}},setup(e){Mw(i=>({"00d7de70":i.color}));const t=e,n=te(""),r=te(!1),s=async i=>{try{let o=null;if(o=await fetch(`${i}`,{method:"GET"}),!o.ok)throw new Error("Request response is not ok");if(o.headers.get("Content-Type")!=="image/svg+xml")throw new Error("Content-Type is other than image/svg+xml");n.value=await o.text(),n.value.includes("stroke")&&(r.value=!0)}catch{n.value=""}};return Dt(()=>{s(t.url)}),(i,o)=>($(),X("div",{class:Ee(["menu-icon",{"menu-icon--stroke":r.value}]),innerHTML:n.value},null,10,nV))}}),sV=["href","target"],iV={key:0,class:"size-s-8 rounded-r-4 bg-gray-light-c flex items-center justify-center"},_v=pe({__name:"MenuKafelekPodkategorii",props:{nazwaKategorii:{},mobile:{type:Boolean},podkategoria:{},bigQueryConfig:{},showIcon:{type:Boolean,default:!0}},emits:["menuElementClicked"],setup(e,{emit:t}){const n=e,r=t,s=o=>{r("menuElementClicked",o)},{setMenuClickedElementPodkategoria:i}=Jc(s,n.bigQueryConfig);return(o,a)=>($(),X("a",{href:o.podkategoria.Url,target:o.mobile?"_self":o.podkategoria.NoweOkno?"_blank":"_self",class:Ee(["kafelek desktop:h-auto gap-s-5 flex flex-row items-center no-underline",{"desktop:h-s-8":o.showIcon}]),onClick:a[0]||(a[0]=l=>O(i)(o.podkategoria,o.nazwaKategorii))},[o.showIcon&&o.podkategoria.IconUrl?($(),X("div",iV,[Q(rV,{url:o.podkategoria.IconUrl,class:"kafelek__icon"},null,8,["url"])])):fe("",!0),Q(O(at),{variant:"h6",tag:"p","font-weight":"bold","font-family":"secondary",class:"kafelek__text desktop:w-min desktop-large:w-auto m-0"},{default:de(()=>[Le(Ve(o.podkategoria.Nazwa),1)]),_:1})],10,sV))}}),oV={class:"podkategoria__kafelki-container desktop:grid gap-s-5 desktop:m-0 desktop:w-fit desktop:gap-x-10 flex flex-col"},aV={class:"podkategoria__kafelki-container desktop:grid gap-s-3 mt-s-6 desktop:m-0 desktop:w-fit desktop:gap-x-10 flex flex-col"},ll=pe({__name:"MenuSekcja",props:{nazwaKategorii:{},sekcja:{},mobile:{type:Boolean},bigQueryConfig:{}},emits:["menuElementClicked"],setup(e){Mw(o=>({"2252a474":i.value}));const t=e,n=te(!1),r=z(()=>t.sekcja.CzyZIkonami),s=()=>{n.value=!n.value},i=z(()=>{const{sekcja:o}=t;return o.ElementyWRzedzie>o.ListaElementow.length?o.ListaElementow.length:o.ElementyWRzedzie});return(o,a)=>($(),X(Ce,null,[Z("div",{class:Ee(["podkategoria desktop:mt-8 desktop:mb-12",{"desktop:flex desktop:flex-col gap-s-6 desktop:gap-0 hidden":!r.value}])},[o.sekcja.Nazwa.trim().length?($(),se(O(at),{key:0,tag:"p",variant:"h6","font-family":"secondary",class:"desktop:block m-0 mb-6 hidden w-fit"},{default:de(()=>[Le(Ve(o.sekcja.Nazwa),1)]),_:1})):fe("",!0),Z("div",oV,[($(!0),X(Ce,null,dn(o.sekcja.ListaElementow,(l,c)=>($(),se(_v,{key:c,podkategoria:l,"show-icon":r.value,mobile:o.mobile,"nazwa-kategorii":o.nazwaKategorii,"big-query-config":o.bigQueryConfig,onMenuElementClicked:a[0]||(a[0]=u=>o.$emit("menuElementClicked",u))},null,8,["podkategoria","show-icon","mobile","nazwa-kategorii","big-query-config"]))),128))])],2),r.value?fe("",!0):($(),se(O(CH),{key:0,title:o.sekcja.Nazwa,active:n.value,"title-class":"m-0 text-black font-secondary h-full","title-variant":"h6","chevron-size":"large","header-color":"primary",class:"desktop:hidden border-primary-lighter2-c rounded-r-1 border border-solid p-4",onToggle:s},{default:de(()=>[Z("div",aV,[($(!0),X(Ce,null,dn(o.sekcja.ListaElementow,(l,c)=>($(),se(_v,{key:c,podkategoria:l,mobile:o.mobile,"show-icon":r.value,"nazwa-kategorii":o.nazwaKategorii,"big-query-config":o.bigQueryConfig,onMenuElementClicked:a[1]||(a[1]=u=>o.$emit("menuElementClicked",u))},null,8,["podkategoria","mobile","show-icon","nazwa-kategorii","big-query-config"]))),128))])]),_:1},8,["title","active"]))],64))}}),lV={key:0,class:"menu-drawer absolute left-0 bg-white-c shadow-shadow1 rounded-none cursor-default w-full h-fit"},cV={class:"flex flex-row gap-s-9 max-w-container-m-width desktop:ml-s-6 desktop-large:m-auto"},uV={class:"flex flex-row gap-s-9 min-w-[470px]"},dV={class:"flex flex-row gap-s-9"},fV={class:"flex flex-col gap-s-5"},pV=pe({__name:"MenuDrawer",props:{nazwaKategorii:{},sekcje:{},mobile:{type:Boolean},modelValue:{type:Boolean},bigQueryConfig:{}},emits:["update:modelValue","menuElementClicked"],setup(e){const t=e,{modelValue:n}=rn(t),r=z(()=>t.sekcje.filter(i=>i.CzyZIkonami)),s=z(()=>t.sekcje.filter(i=>!i.CzyZIkonami));return(i,o)=>i.mobile?($(),se(gh,{key:1,mode:"model","model-value":O(n),title:i.nazwaKategorii,onClose:o[4]||(o[4]=a=>i.$emit("update:modelValue",!1))},{default:de(()=>[Z("div",fV,[($(!0),X(Ce,null,dn(r.value,(a,l)=>($(),se(ll,{key:l,sekcja:a,mobile:i.mobile,"nazwa-kategorii":i.nazwaKategorii,"big-query-config":i.bigQueryConfig,onMenuElementClicked:o[2]||(o[2]=c=>i.$emit("menuElementClicked",c))},null,8,["sekcja","mobile","nazwa-kategorii","big-query-config"]))),128)),($(!0),X(Ce,null,dn(s.value,(a,l)=>($(),se(ll,{key:l,sekcja:a,mobile:i.mobile,"nazwa-kategorii":i.nazwaKategorii,"big-query-config":i.bigQueryConfig,onMenuElementClicked:o[3]||(o[3]=c=>i.$emit("menuElementClicked",c))},null,8,["sekcja","mobile","nazwa-kategorii","big-query-config"]))),128))])]),_:1},8,["model-value","title"])):($(),X("div",lV,[Z("div",cV,[Z("div",uV,[($(!0),X(Ce,null,dn(r.value,(a,l)=>($(),se(ll,{key:l,sekcja:a,mobile:i.mobile,"nazwa-kategorii":i.nazwaKategorii,"big-query-config":i.bigQueryConfig,onMenuElementClicked:o[0]||(o[0]=c=>i.$emit("menuElementClicked",c))},null,8,["sekcja","mobile","nazwa-kategorii","big-query-config"]))),128))]),r.value.length&&s.value.length?($(),se(O(fS),{key:0,type:"vertical",class:"h-auto m-0 text-primary-lighter2-c"})):fe("",!0),Z("div",dV,[($(!0),X(Ce,null,dn(s.value,(a,l)=>($(),se(ll,{key:l,sekcja:a,mobile:i.mobile,"nazwa-kategorii":i.nazwaKategorii,"big-query-config":i.bigQueryConfig,onMenuElementClicked:o[1]||(o[1]=c=>i.$emit("menuElementClicked",c))},null,8,["sekcja","mobile","nazwa-kategorii","big-query-config"]))),128))])])]))}}),vv=pe({__name:"MenuKategoria",props:{kategoria:{},mobile:{type:Boolean},defaultOpenKategoria:{},bigQueryConfig:{}},emits:["menuElementClicked"],setup(e,{emit:t}){const n=t,r=e,{kategoria:s,mobile:i}=rn(r),o=te(!1),a=te(!1),l=v=>{n("menuElementClicked",v)},{setMenuClickedElementKategoria:c}=Jc(l,r.bigQueryConfig),u=v=>{i.value||g(v)},d=()=>{c(s.value),i.value&&g(!0)},f=z(()=>p.value?"desktop:hover:bg-primary-lighter2-c":"kategoria--no-podkategorie"),p=z(()=>s.value.Sekcje&&s.value.Sekcje.length),g=v=>{a.value=!0,o.value=v};return Se(()=>i.value,()=>{i.value&&(a.value=!0,o.value=i.value&&s.value.Nazwa===r.defaultOpenKategoria)}),(v,w)=>($(),X("div",{class:"kategoria desktop:h-full desktop:flex desktop:items-center desktop:w-min desktop-large:w-fit w-full cursor-pointer",onMouseleave:w[3]||(w[3]=y=>u(!1))},[($(),se(cs(O(s).Url.length&&O(s).Url!=="#"?"a":"div"),{href:O(s).Url,target:O(i)?"_self":O(s).NoweOkno?"_blank":"_self","aria-label":`${O(s).Nazwa}`,class:"desktop:px-s-2 no-underline",onClick:d,onMouseover:w[0]||(w[0]=y=>u(!0))},{default:de(()=>[Z("div",{class:Ee(["rounded-r-1 desktop:p-s-3 desktop:gap-s-1 flex flex-row items-center",f.value])},[Q(O(at),{variant:O(i)?"h4":"h6",tag:"p","font-family":"secondary",color:"primary","font-weight":"bold",class:"kategoria__text desktop-large:text-nowrap m-0"},{default:de(()=>[Le(Ve(O(s).Nazwa),1)]),_:1},8,["variant"]),p.value&&O(i)?($(),se(O(ot),{key:0,icon:"chevron-right",color:"#0054a6",size:"24px",class:"kategoria__arrow ml-auto"})):p.value?($(),se(O(ot),{key:1,icon:"chevron-up",color:"#0054a6",size:"12px",class:Ee(["kategoria__arrow origin-center",{"[&>svg]:rotate-180":!o.value}])},null,8,["class"])):fe("",!0)],2)]),_:1},40,["href","target","aria-label"])),a.value&&O(s).Sekcje.length?Ls(($(),se(pV,{key:0,modelValue:o.value,"onUpdate:modelValue":w[1]||(w[1]=y=>o.value=y),"nazwa-kategorii":O(s).Nazwa,sekcje:O(s).Sekcje,mobile:O(i),"big-query-config":v.bigQueryConfig,onMenuElementClicked:w[2]||(w[2]=y=>v.$emit("menuElementClicked",y))},null,8,["modelValue","nazwa-kategorii","sekcje","mobile","big-query-config"])),[[Dw,o.value]]):fe("",!0)],32))}});class To extends Error{}To.prototype.name="InvalidTokenError";function hV(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,n)=>{let r=n.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}function gV(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return hV(t)}catch{return atob(t)}}function mV(e,t){if(typeof e!="string")throw new To("Invalid token specified: must be a string");t||(t={});const n=t.header===!0?0:1,r=e.split(".")[n];if(typeof r!="string")throw new To(`Invalid token specified: missing part #${n+1}`);let s;try{s=gV(r)}catch(i){throw new To(`Invalid token specified: invalid base64 for part #${n+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new To(`Invalid token specified: invalid json for part #${n+1} (${i.message})`)}}var _V={debug:()=>{},info:()=>{},warn:()=>{},error:()=>{}},xn,Un,ac=(e=>(e[e.NONE=0]="NONE",e[e.ERROR=1]="ERROR",e[e.WARN=2]="WARN",e[e.INFO=3]="INFO",e[e.DEBUG=4]="DEBUG",e))(ac||{});(e=>{function t(){xn=3,Un=_V}e.reset=t;function n(s){if(!(0<=s&&s<=4))throw new Error("Invalid log level");xn=s}e.setLevel=n;function r(s){Un=s}e.setLogger=r})(ac||(ac={}));var Oe=class Mn{constructor(t){this._name=t}debug(...t){xn>=4&&Un.debug(Mn._format(this._name,this._method),...t)}info(...t){xn>=3&&Un.info(Mn._format(this._name,this._method),...t)}warn(...t){xn>=2&&Un.warn(Mn._format(this._name,this._method),...t)}error(...t){xn>=1&&Un.error(Mn._format(this._name,this._method),...t)}throw(t){throw this.error(t),t}create(t){const n=Object.create(this);return n._method=t,n.debug("begin"),n}static createStatic(t,n){const r=new Mn(`${t}.${n}`);return r.debug("begin"),r}static _format(t,n){const r=`[${t}]`;return n?`${r} ${n}:`:r}static debug(t,...n){xn>=4&&Un.debug(Mn._format(t),...n)}static info(t,...n){xn>=3&&Un.info(Mn._format(t),...n)}static warn(t,...n){xn>=2&&Un.warn(Mn._format(t),...n)}static error(t,...n){xn>=1&&Un.error(Mn._format(t),...n)}};ac.reset();var vV="10000000-1000-4000-8000-100000000000",yv=e=>btoa([...new Uint8Array(e)].map(t=>String.fromCharCode(t)).join("")),Ai=class So{static _randomWord(){const t=new Uint32Array(1);return crypto.getRandomValues(t),t[0]}static generateUUIDv4(){return vV.replace(/[018]/g,n=>(+n^So._randomWord()&15>>+n/4).toString(16)).replace(/-/g,"")}static generateCodeVerifier(){return So.generateUUIDv4()+So.generateUUIDv4()+So.generateUUIDv4()}static async generateCodeChallenge(t){if(!crypto.subtle)throw new Error("Crypto.subtle is available only in secure contexts (HTTPS).");try{const r=new TextEncoder().encode(t),s=await crypto.subtle.digest("SHA-256",r);return yv(s).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}catch(n){throw Oe.error("CryptoUtils.generateCodeChallenge",n),n}}static generateBasicAuth(t,n){const s=new TextEncoder().encode([t,n].join(":"));return yv(s)}},Br=class{constructor(t){this._name=t,this._logger=new Oe(`Event('${this._name}')`),this._callbacks=[]}addHandler(t){return this._callbacks.push(t),()=>this.removeHandler(t)}removeHandler(t){const n=this._callbacks.lastIndexOf(t);n>=0&&this._callbacks.splice(n,1)}async raise(...t){this._logger.debug("raise:",...t);for(const n of this._callbacks)await n(...t)}},Pf=class{static decode(e){try{return mV(e)}catch(t){throw Oe.error("JwtUtils.decode",t),t}}},wv=class{static center({...e}){var t,n,r;return e.width==null&&(e.width=(t=[800,720,600,480].find(s=>s<=window.outerWidth/1.618))!=null?t:360),(n=e.left)!=null||(e.left=Math.max(0,Math.round(window.screenX+(window.outerWidth-e.width)/2))),e.height!=null&&((r=e.top)!=null||(e.top=Math.max(0,Math.round(window.screenY+(window.outerHeight-e.height)/2)))),e}static serialize(e){return Object.entries(e).filter(([,t])=>t!=null).map(([t,n])=>`${t}=${typeof n!="boolean"?n:n?"yes":"no"}`).join(",")}},yr=class wl extends Br{constructor(){super(...arguments),this._logger=new Oe(`Timer('${this._name}')`),this._timerHandle=null,this._expiration=0,this._callback=()=>{const t=this._expiration-wl.getEpochTime();this._logger.debug("timer completes in",t),this._expiration<=wl.getEpochTime()&&(this.cancel(),super.raise())}}static getEpochTime(){return Math.floor(Date.now()/1e3)}init(t){const n=this._logger.create("init");t=Math.max(Math.floor(t),1);const r=wl.getEpochTime()+t;if(this.expiration===r&&this._timerHandle){n.debug("skipping since already initialized for expiration at",this.expiration);return}this.cancel(),n.debug("using duration",t),this._expiration=r;const s=Math.min(t,5);this._timerHandle=setInterval(this._callback,s*1e3)}get expiration(){return this._expiration}cancel(){this._logger.create("cancel"),this._timerHandle&&(clearInterval(this._timerHandle),this._timerHandle=null)}},Lf=class{static readParams(e,t="query"){if(!e)throw new TypeError("Invalid URL");const r=new URL(e,"http://127.0.0.1")[t==="fragment"?"hash":"search"];return new URLSearchParams(r.slice(1))}},Df=";",Bs=class extends Error{constructor(e,t){var n,r,s;if(super(e.error_description||e.error||""),this.form=t,this.name="ErrorResponse",!e.error)throw Oe.error("ErrorResponse","No error passed"),new Error("No error passed");this.error=e.error,this.error_description=(n=e.error_description)!=null?n:null,this.error_uri=(r=e.error_uri)!=null?r:null,this.state=e.userState,this.session_state=(s=e.session_state)!=null?s:null,this.url_state=e.url_state}},mh=class extends Error{constructor(e){super(e),this.name="ErrorTimeout"}},yV=class{constructor(e){this._logger=new Oe("AccessTokenEvents"),this._expiringTimer=new yr("Access token expiring"),this._expiredTimer=new yr("Access token expired"),this._expiringNotificationTimeInSeconds=e.expiringNotificationTimeInSeconds}load(e){const t=this._logger.create("load");if(e.access_token&&e.expires_in!==void 0){const n=e.expires_in;if(t.debug("access token present, remaining duration:",n),n>0){let s=n-this._expiringNotificationTimeInSeconds;s<=0&&(s=1),t.debug("registering expiring timer, raising in",s,"seconds"),this._expiringTimer.init(s)}else t.debug("canceling existing expiring timer because we're past expiration."),this._expiringTimer.cancel();const r=n+1;t.debug("registering expired timer, raising in",r,"seconds"),this._expiredTimer.init(r)}else this._expiringTimer.cancel(),this._expiredTimer.cancel()}unload(){this._logger.debug("unload: canceling existing access token timers"),this._expiringTimer.cancel(),this._expiredTimer.cancel()}addAccessTokenExpiring(e){return this._expiringTimer.addHandler(e)}removeAccessTokenExpiring(e){this._expiringTimer.removeHandler(e)}addAccessTokenExpired(e){return this._expiredTimer.addHandler(e)}removeAccessTokenExpired(e){this._expiredTimer.removeHandler(e)}},wV=class{constructor(e,t,n,r,s){this._callback=e,this._client_id=t,this._intervalInSeconds=r,this._stopOnError=s,this._logger=new Oe("CheckSessionIFrame"),this._timer=null,this._session_state=null,this._message=o=>{o.origin===this._frame_origin&&o.source===this._frame.contentWindow&&(o.data==="error"?(this._logger.error("error message from check session op iframe"),this._stopOnError&&this.stop()):o.data==="changed"?(this._logger.debug("changed message from check session op iframe"),this.stop(),this._callback()):this._logger.debug(o.data+" message from check session op iframe"))};const i=new URL(n);this._frame_origin=i.origin,this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="fixed",this._frame.style.left="-1000px",this._frame.style.top="0",this._frame.width="0",this._frame.height="0",this._frame.src=i.href}load(){return new Promise(e=>{this._frame.onload=()=>{e()},window.document.body.appendChild(this._frame),window.addEventListener("message",this._message,!1)})}start(e){if(this._session_state===e)return;this._logger.create("start"),this.stop(),this._session_state=e;const t=()=>{!this._frame.contentWindow||!this._session_state||this._frame.contentWindow.postMessage(this._client_id+" "+this._session_state,this._frame_origin)};t(),this._timer=setInterval(t,this._intervalInSeconds*1e3)}stop(){this._logger.create("stop"),this._session_state=null,this._timer&&(clearInterval(this._timer),this._timer=null)}},RS=class{constructor(){this._logger=new Oe("InMemoryWebStorage"),this._data={}}clear(){this._logger.create("clear"),this._data={}}getItem(e){return this._logger.create(`getItem('${e}')`),this._data[e]}setItem(e,t){this._logger.create(`setItem('${e}')`),this._data[e]=t}removeItem(e){this._logger.create(`removeItem('${e}')`),delete this._data[e]}get length(){return Object.getOwnPropertyNames(this._data).length}key(e){return Object.getOwnPropertyNames(this._data)[e]}},_h=class{constructor(e=[],t=null,n={}){this._jwtHandler=t,this._extraHeaders=n,this._logger=new Oe("JsonService"),this._contentTypes=[],this._contentTypes.push(...e,"application/json"),t&&this._contentTypes.push("application/jwt")}async fetchWithTimeout(e,t={}){const{timeoutInSeconds:n,...r}=t;if(!n)return await fetch(e,r);const s=new AbortController,i=setTimeout(()=>s.abort(),n*1e3);try{return await fetch(e,{...t,signal:s.signal})}catch(o){throw o instanceof DOMException&&o.name==="AbortError"?new mh("Network timed out"):o}finally{clearTimeout(i)}}async getJson(e,{token:t,credentials:n}={}){const r=this._logger.create("getJson"),s={Accept:this._contentTypes.join(", ")};t&&(r.debug("token passed, setting Authorization header"),s.Authorization="Bearer "+t),this.appendExtraHeaders(s);let i;try{r.debug("url:",e),i=await this.fetchWithTimeout(e,{method:"GET",headers:s,credentials:n})}catch(l){throw r.error("Network Error"),l}r.debug("HTTP response received, status",i.status);const o=i.headers.get("Content-Type");if(o&&!this._contentTypes.find(l=>o.startsWith(l))&&r.throw(new Error(`Invalid response Content-Type: ${o??"undefined"}, from URL: ${e}`)),i.ok&&this._jwtHandler&&(o!=null&&o.startsWith("application/jwt")))return await this._jwtHandler(await i.text());let a;try{a=await i.json()}catch(l){throw r.error("Error parsing JSON response",l),i.ok?l:new Error(`${i.statusText} (${i.status})`)}if(!i.ok)throw r.error("Error from server:",a),a.error?new Bs(a):new Error(`${i.statusText} (${i.status}): ${JSON.stringify(a)}`);return a}async postForm(e,{body:t,basicAuth:n,timeoutInSeconds:r,initCredentials:s}){const i=this._logger.create("postForm"),o={Accept:this._contentTypes.join(", "),"Content-Type":"application/x-www-form-urlencoded"};n!==void 0&&(o.Authorization="Basic "+n),this.appendExtraHeaders(o);let a;try{i.debug("url:",e),a=await this.fetchWithTimeout(e,{method:"POST",headers:o,body:t,timeoutInSeconds:r,credentials:s})}catch(d){throw i.error("Network error"),d}i.debug("HTTP response received, status",a.status);const l=a.headers.get("Content-Type");if(l&&!this._contentTypes.find(d=>l.startsWith(d)))throw new Error(`Invalid response Content-Type: ${l??"undefined"}, from URL: ${e}`);const c=await a.text();let u={};if(c)try{u=JSON.parse(c)}catch(d){throw i.error("Error parsing JSON response",d),a.ok?d:new Error(`${a.statusText} (${a.status})`)}if(!a.ok)throw i.error("Error from server:",u),u.error?new Bs(u,t):new Error(`${a.statusText} (${a.status}): ${JSON.stringify(u)}`);return u}appendExtraHeaders(e){const t=this._logger.create("appendExtraHeaders"),n=Object.keys(this._extraHeaders),r=["authorization","accept","content-type"];n.length!==0&&n.forEach(s=>{if(r.includes(s.toLocaleLowerCase())){t.warn("Protected header could not be overridden",s,r);return}const i=typeof this._extraHeaders[s]=="function"?this._extraHeaders[s]():this._extraHeaders[s];i&&i!==""&&(e[s]=i)})}},bV=class{constructor(e){this._settings=e,this._logger=new Oe("MetadataService"),this._signingKeys=null,this._metadata=null,this._metadataUrl=this._settings.metadataUrl,this._jsonService=new _h(["application/jwk-set+json"],null,this._settings.extraHeaders),this._settings.signingKeys&&(this._logger.debug("using signingKeys from settings"),this._signingKeys=this._settings.signingKeys),this._settings.metadata&&(this._logger.debug("using metadata from settings"),this._metadata=this._settings.metadata),this._settings.fetchRequestCredentials&&(this._logger.debug("using fetchRequestCredentials from settings"),this._fetchRequestCredentials=this._settings.fetchRequestCredentials)}resetSigningKeys(){this._signingKeys=null}async getMetadata(){const e=this._logger.create("getMetadata");if(this._metadata)return e.debug("using cached values"),this._metadata;if(!this._metadataUrl)throw e.throw(new Error("No authority or metadataUrl configured on settings")),null;e.debug("getting metadata from",this._metadataUrl);const t=await this._jsonService.getJson(this._metadataUrl,{credentials:this._fetchRequestCredentials});return e.debug("merging remote JSON with seed metadata"),this._metadata=Object.assign({},this._settings.metadataSeed,t),this._metadata}getIssuer(){return this._getMetadataProperty("issuer")}getAuthorizationEndpoint(){return this._getMetadataProperty("authorization_endpoint")}getUserInfoEndpoint(){return this._getMetadataProperty("userinfo_endpoint")}getTokenEndpoint(e=!0){return this._getMetadataProperty("token_endpoint",e)}getCheckSessionIframe(){return this._getMetadataProperty("check_session_iframe",!0)}getEndSessionEndpoint(){return this._getMetadataProperty("end_session_endpoint",!0)}getRevocationEndpoint(e=!0){return this._getMetadataProperty("revocation_endpoint",e)}getKeysEndpoint(e=!0){return this._getMetadataProperty("jwks_uri",e)}async _getMetadataProperty(e,t=!1){const n=this._logger.create(`_getMetadataProperty('${e}')`),r=await this.getMetadata();if(n.debug("resolved"),r[e]===void 0){if(t===!0){n.warn("Metadata does not contain optional property");return}n.throw(new Error("Metadata does not contain property "+e))}return r[e]}async getSigningKeys(){const e=this._logger.create("getSigningKeys");if(this._signingKeys)return e.debug("returning signingKeys from cache"),this._signingKeys;const t=await this.getKeysEndpoint(!1);e.debug("got jwks_uri",t);const n=await this._jsonService.getJson(t);if(e.debug("got key set",n),!Array.isArray(n.keys))throw e.throw(new Error("Missing keys on keyset")),null;return this._signingKeys=n.keys,this._signingKeys}},vh=class{constructor({prefix:e="oidc.",store:t=localStorage}={}){this._logger=new Oe("WebStorageStateStore"),this._store=t,this._prefix=e}async set(e,t){this._logger.create(`set('${e}')`),e=this._prefix+e,await this._store.setItem(e,t)}async get(e){return this._logger.create(`get('${e}')`),e=this._prefix+e,await this._store.getItem(e)}async remove(e){this._logger.create(`remove('${e}')`),e=this._prefix+e;const t=await this._store.getItem(e);return await this._store.removeItem(e),t}async getAllKeys(){this._logger.create("getAllKeys");const e=await this._store.length,t=[];for(let n=0;n<e;n++){const r=await this._store.key(n);r&&r.indexOf(this._prefix)===0&&t.push(r.substr(this._prefix.length))}return t}},EV="code",TV="openid",SV="client_secret_post",kV=60*15,Nf=class{constructor({authority:e,metadataUrl:t,metadata:n,signingKeys:r,metadataSeed:s,client_id:i,client_secret:o,response_type:a=EV,scope:l=TV,redirect_uri:c,post_logout_redirect_uri:u,client_authentication:d=SV,prompt:f,display:p,max_age:g,ui_locales:v,acr_values:w,resource:y,response_mode:m,filterProtocolClaims:h=!0,loadUserInfo:_=!1,staleStateAgeInSeconds:b=kV,mergeClaimsStrategy:E={array:"replace"},disablePKCE:R=!1,stateStore:S,revokeTokenAdditionalContentTypes:A,fetchRequestCredentials:D,refreshTokenAllowedScope:L,extraQueryParams:N={},extraTokenParams:x={},extraHeaders:W={}}){if(this.authority=e,t?this.metadataUrl=t:(this.metadataUrl=e,e&&(this.metadataUrl.endsWith("/")||(this.metadataUrl+="/"),this.metadataUrl+=".well-known/openid-configuration")),this.metadata=n,this.metadataSeed=s,this.signingKeys=r,this.client_id=i,this.client_secret=o,this.response_type=a,this.scope=l,this.redirect_uri=c,this.post_logout_redirect_uri=u,this.client_authentication=d,this.prompt=f,this.display=p,this.max_age=g,this.ui_locales=v,this.acr_values=w,this.resource=y,this.response_mode=m,this.filterProtocolClaims=h??!0,this.loadUserInfo=!!_,this.staleStateAgeInSeconds=b,this.mergeClaimsStrategy=E,this.disablePKCE=!!R,this.revokeTokenAdditionalContentTypes=A,this.fetchRequestCredentials=D||"same-origin",S)this.stateStore=S;else{const ee=typeof window<"u"?window.localStorage:new RS;this.stateStore=new vh({store:ee})}this.refreshTokenAllowedScope=L,this.extraQueryParams=N,this.extraTokenParams=x,this.extraHeaders=W}},IV=class{constructor(e,t){this._settings=e,this._metadataService=t,this._logger=new Oe("UserInfoService"),this._getClaimsFromJwt=async n=>{const r=this._logger.create("_getClaimsFromJwt");try{const s=Pf.decode(n);return r.debug("JWT decoding successful"),s}catch(s){throw r.error("Error parsing JWT response"),s}},this._jsonService=new _h(void 0,this._getClaimsFromJwt,this._settings.extraHeaders)}async getClaims(e){const t=this._logger.create("getClaims");e||this._logger.throw(new Error("No token passed"));const n=await this._metadataService.getUserInfoEndpoint();t.debug("got userinfo url",n);const r=await this._jsonService.getJson(n,{token:e,credentials:this._settings.fetchRequestCredentials});return t.debug("got claims",r),r}},CS=class{constructor(e,t){this._settings=e,this._metadataService=t,this._logger=new Oe("TokenClient"),this._jsonService=new _h(this._settings.revokeTokenAdditionalContentTypes,null,this._settings.extraHeaders)}async exchangeCode({grant_type:e="authorization_code",redirect_uri:t=this._settings.redirect_uri,client_id:n=this._settings.client_id,client_secret:r=this._settings.client_secret,...s}){const i=this._logger.create("exchangeCode");n||i.throw(new Error("A client_id is required")),t||i.throw(new Error("A redirect_uri is required")),s.code||i.throw(new Error("A code is required"));const o=new URLSearchParams({grant_type:e,redirect_uri:t});for(const[u,d]of Object.entries(s))d!=null&&o.set(u,d);let a;switch(this._settings.client_authentication){case"client_secret_basic":if(!r)throw i.throw(new Error("A client_secret is required")),null;a=Ai.generateBasicAuth(n,r);break;case"client_secret_post":o.append("client_id",n),r&&o.append("client_secret",r);break}const l=await this._metadataService.getTokenEndpoint(!1);i.debug("got token endpoint");const c=await this._jsonService.postForm(l,{body:o,basicAuth:a,initCredentials:this._settings.fetchRequestCredentials});return i.debug("got response"),c}async exchangeCredentials({grant_type:e="password",client_id:t=this._settings.client_id,client_secret:n=this._settings.client_secret,scope:r=this._settings.scope,...s}){const i=this._logger.create("exchangeCredentials");t||i.throw(new Error("A client_id is required"));const o=new URLSearchParams({grant_type:e,scope:r});for(const[u,d]of Object.entries(s))d!=null&&o.set(u,d);let a;switch(this._settings.client_authentication){case"client_secret_basic":if(!n)throw i.throw(new Error("A client_secret is required")),null;a=Ai.generateBasicAuth(t,n);break;case"client_secret_post":o.append("client_id",t),n&&o.append("client_secret",n);break}const l=await this._metadataService.getTokenEndpoint(!1);i.debug("got token endpoint");const c=await this._jsonService.postForm(l,{body:o,basicAuth:a,initCredentials:this._settings.fetchRequestCredentials});return i.debug("got response"),c}async exchangeRefreshToken({grant_type:e="refresh_token",client_id:t=this._settings.client_id,client_secret:n=this._settings.client_secret,timeoutInSeconds:r,...s}){const i=this._logger.create("exchangeRefreshToken");t||i.throw(new Error("A client_id is required")),s.refresh_token||i.throw(new Error("A refresh_token is required"));const o=new URLSearchParams({grant_type:e});for(const[u,d]of Object.entries(s))Array.isArray(d)?d.forEach(f=>o.append(u,f)):d!=null&&o.set(u,d);let a;switch(this._settings.client_authentication){case"client_secret_basic":if(!n)throw i.throw(new Error("A client_secret is required")),null;a=Ai.generateBasicAuth(t,n);break;case"client_secret_post":o.append("client_id",t),n&&o.append("client_secret",n);break}const l=await this._metadataService.getTokenEndpoint(!1);i.debug("got token endpoint");const c=await this._jsonService.postForm(l,{body:o,basicAuth:a,timeoutInSeconds:r,initCredentials:this._settings.fetchRequestCredentials});return i.debug("got response"),c}async revoke(e){var t;const n=this._logger.create("revoke");e.token||n.throw(new Error("A token is required"));const r=await this._metadataService.getRevocationEndpoint(!1);n.debug(`got revocation endpoint, revoking ${(t=e.token_type_hint)!=null?t:"default token type"}`);const s=new URLSearchParams;for(const[i,o]of Object.entries(e))o!=null&&s.set(i,o);s.set("client_id",this._settings.client_id),this._settings.client_secret&&s.set("client_secret",this._settings.client_secret),await this._jsonService.postForm(r,{body:s}),n.debug("got response")}},RV=class{constructor(e,t,n){this._settings=e,this._metadataService=t,this._claimsService=n,this._logger=new Oe("ResponseValidator"),this._userInfoService=new IV(this._settings,this._metadataService),this._tokenClient=new CS(this._settings,this._metadataService)}async validateSigninResponse(e,t){const n=this._logger.create("validateSigninResponse");this._processSigninState(e,t),n.debug("state processed"),await this._processCode(e,t),n.debug("code processed"),e.isOpenId&&this._validateIdTokenAttributes(e),n.debug("tokens validated"),await this._processClaims(e,t==null?void 0:t.skipUserInfo,e.isOpenId),n.debug("claims processed")}async validateCredentialsResponse(e,t){const n=this._logger.create("validateCredentialsResponse");e.isOpenId&&e.id_token&&this._validateIdTokenAttributes(e),n.debug("tokens validated"),await this._processClaims(e,t,e.isOpenId),n.debug("claims processed")}async validateRefreshResponse(e,t){var n,r;const s=this._logger.create("validateRefreshResponse");e.userState=t.data,(n=e.session_state)!=null||(e.session_state=t.session_state),(r=e.scope)!=null||(e.scope=t.scope),e.isOpenId&&e.id_token&&(this._validateIdTokenAttributes(e,t.id_token),s.debug("ID Token validated")),e.id_token||(e.id_token=t.id_token,e.profile=t.profile);const i=e.isOpenId&&!!e.id_token;await this._processClaims(e,!1,i),s.debug("claims processed")}validateSignoutResponse(e,t){const n=this._logger.create("validateSignoutResponse");if(t.id!==e.state&&n.throw(new Error("State does not match")),n.debug("state validated"),e.userState=t.data,e.error)throw n.warn("Response was error",e.error),new Bs(e)}_processSigninState(e,t){var n;const r=this._logger.create("_processSigninState");if(t.id!==e.state&&r.throw(new Error("State does not match")),t.client_id||r.throw(new Error("No client_id on state")),t.authority||r.throw(new Error("No authority on state")),this._settings.authority!==t.authority&&r.throw(new Error("authority mismatch on settings vs. signin state")),this._settings.client_id&&this._settings.client_id!==t.client_id&&r.throw(new Error("client_id mismatch on settings vs. signin state")),r.debug("state validated"),e.userState=t.data,e.url_state=t.url_state,(n=e.scope)!=null||(e.scope=t.scope),e.error)throw r.warn("Response was error",e.error),new Bs(e);t.code_verifier&&!e.code&&r.throw(new Error("Expected code in response"))}async _processClaims(e,t=!1,n=!0){const r=this._logger.create("_processClaims");if(e.profile=this._claimsService.filterProtocolClaims(e.profile),t||!this._settings.loadUserInfo||!e.access_token){r.debug("not loading user info");return}r.debug("loading user info");const s=await this._userInfoService.getClaims(e.access_token);r.debug("user info claims received from user info endpoint"),n&&s.sub!==e.profile.sub&&r.throw(new Error("subject from UserInfo response does not match subject in ID Token")),e.profile=this._claimsService.mergeClaims(e.profile,this._claimsService.filterProtocolClaims(s)),r.debug("user info claims received, updated profile:",e.profile)}async _processCode(e,t){const n=this._logger.create("_processCode");if(e.code){n.debug("Validating code");const r=await this._tokenClient.exchangeCode({client_id:t.client_id,client_secret:t.client_secret,code:e.code,redirect_uri:t.redirect_uri,code_verifier:t.code_verifier,...t.extraTokenParams});Object.assign(e,r)}else n.debug("No code to process")}_validateIdTokenAttributes(e,t){var n;const r=this._logger.create("_validateIdTokenAttributes");r.debug("decoding ID Token JWT");const s=Pf.decode((n=e.id_token)!=null?n:"");if(s.sub||r.throw(new Error("ID Token is missing a subject claim")),t){const i=Pf.decode(t);s.sub!==i.sub&&r.throw(new Error("sub in id_token does not match current sub")),s.auth_time&&s.auth_time!==i.auth_time&&r.throw(new Error("auth_time in id_token does not match original auth_time")),s.azp&&s.azp!==i.azp&&r.throw(new Error("azp in id_token does not match original azp")),!s.azp&&i.azp&&r.throw(new Error("azp not in id_token, but present in original id_token"))}e.profile=s}},lc=class Mf{constructor(t){this.id=t.id||Ai.generateUUIDv4(),this.data=t.data,t.created&&t.created>0?this.created=t.created:this.created=yr.getEpochTime(),this.request_type=t.request_type,this.url_state=t.url_state}toStorageString(){return new Oe("State").create("toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,url_state:this.url_state})}static fromStorageString(t){return Oe.createStatic("State","fromStorageString"),Promise.resolve(new Mf(JSON.parse(t)))}static async clearStaleState(t,n){const r=Oe.createStatic("State","clearStaleState"),s=yr.getEpochTime()-n,i=await t.getAllKeys();r.debug("got keys",i);for(let o=0;o<i.length;o++){const a=i[o],l=await t.get(a);let c=!1;if(l)try{const u=await Mf.fromStorageString(l);r.debug("got item from key:",a,u.created),u.created<=s&&(c=!0)}catch(u){r.error("Error parsing state for key:",a,u),c=!0}else r.debug("no item in storage for key:",a),c=!0;c&&(r.debug("removed item for key:",a),t.remove(a))}}},AS=class $f extends lc{constructor(t){super(t),this.code_verifier=t.code_verifier,this.code_challenge=t.code_challenge,this.authority=t.authority,this.client_id=t.client_id,this.redirect_uri=t.redirect_uri,this.scope=t.scope,this.client_secret=t.client_secret,this.extraTokenParams=t.extraTokenParams,this.response_mode=t.response_mode,this.skipUserInfo=t.skipUserInfo}static async create(t){const n=t.code_verifier===!0?Ai.generateCodeVerifier():t.code_verifier||void 0,r=n?await Ai.generateCodeChallenge(n):void 0;return new $f({...t,code_verifier:n,code_challenge:r})}toStorageString(){return new Oe("SigninState").create("toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,url_state:this.url_state,code_verifier:this.code_verifier,authority:this.authority,client_id:this.client_id,redirect_uri:this.redirect_uri,scope:this.scope,client_secret:this.client_secret,extraTokenParams:this.extraTokenParams,response_mode:this.response_mode,skipUserInfo:this.skipUserInfo})}static fromStorageString(t){Oe.createStatic("SigninState","fromStorageString");const n=JSON.parse(t);return $f.create(n)}},OS=class PS{constructor(t){this.url=t.url,this.state=t.state}static async create({url:t,authority:n,client_id:r,redirect_uri:s,response_type:i,scope:o,state_data:a,response_mode:l,request_type:c,client_secret:u,nonce:d,url_state:f,resource:p,skipUserInfo:g,extraQueryParams:v,extraTokenParams:w,disablePKCE:y,...m}){if(!t)throw this._logger.error("create: No url passed"),new Error("url");if(!r)throw this._logger.error("create: No client_id passed"),new Error("client_id");if(!s)throw this._logger.error("create: No redirect_uri passed"),new Error("redirect_uri");if(!i)throw this._logger.error("create: No response_type passed"),new Error("response_type");if(!o)throw this._logger.error("create: No scope passed"),new Error("scope");if(!n)throw this._logger.error("create: No authority passed"),new Error("authority");const h=await AS.create({data:a,request_type:c,url_state:f,code_verifier:!y,client_id:r,authority:n,redirect_uri:s,response_mode:l,client_secret:u,scope:o,extraTokenParams:w,skipUserInfo:g}),_=new URL(t);_.searchParams.append("client_id",r),_.searchParams.append("redirect_uri",s),_.searchParams.append("response_type",i),_.searchParams.append("scope",o),d&&_.searchParams.append("nonce",d);let b=h.id;f&&(b=`${b}${Df}${f}`),_.searchParams.append("state",b),h.code_challenge&&(_.searchParams.append("code_challenge",h.code_challenge),_.searchParams.append("code_challenge_method","S256")),p&&(Array.isArray(p)?p:[p]).forEach(R=>_.searchParams.append("resource",R));for(const[E,R]of Object.entries({response_mode:l,...m,...v}))R!=null&&_.searchParams.append(E,R.toString());return new PS({url:_.href,state:h})}};OS._logger=new Oe("SigninRequest");var CV=OS,AV="openid",zu=class{constructor(e){if(this.access_token="",this.token_type="",this.profile={},this.state=e.get("state"),this.session_state=e.get("session_state"),this.state){const t=decodeURIComponent(this.state).split(Df);this.state=t[0],t.length>1&&(this.url_state=t.slice(1).join(Df))}this.error=e.get("error"),this.error_description=e.get("error_description"),this.error_uri=e.get("error_uri"),this.code=e.get("code")}get expires_in(){if(this.expires_at!==void 0)return this.expires_at-yr.getEpochTime()}set expires_in(e){typeof e=="string"&&(e=Number(e)),e!==void 0&&e>=0&&(this.expires_at=Math.floor(e)+yr.getEpochTime())}get isOpenId(){var e;return((e=this.scope)==null?void 0:e.split(" ").includes(AV))||!!this.id_token}},OV=class{constructor({url:e,state_data:t,id_token_hint:n,post_logout_redirect_uri:r,extraQueryParams:s,request_type:i,client_id:o}){if(this._logger=new Oe("SignoutRequest"),!e)throw this._logger.error("ctor: No url passed"),new Error("url");const a=new URL(e);n&&a.searchParams.append("id_token_hint",n),o&&a.searchParams.append("client_id",o),r&&(a.searchParams.append("post_logout_redirect_uri",r),t&&(this.state=new lc({data:t,request_type:i}),a.searchParams.append("state",this.state.id)));for(const[l,c]of Object.entries({...s}))c!=null&&a.searchParams.append(l,c.toString());this.url=a.href}},PV=class{constructor(e){this.state=e.get("state"),this.error=e.get("error"),this.error_description=e.get("error_description"),this.error_uri=e.get("error_uri")}},LV=["nbf","jti","auth_time","nonce","acr","amr","azp","at_hash"],DV=["sub","iss","aud","exp","iat"],NV=class{constructor(e){this._settings=e,this._logger=new Oe("ClaimsService")}filterProtocolClaims(e){const t={...e};if(this._settings.filterProtocolClaims){let n;Array.isArray(this._settings.filterProtocolClaims)?n=this._settings.filterProtocolClaims:n=LV;for(const r of n)DV.includes(r)||delete t[r]}return t}mergeClaims(e,t){const n={...e};for(const[r,s]of Object.entries(t))if(n[r]!==s)if(Array.isArray(n[r])||Array.isArray(s))if(this._settings.mergeClaimsStrategy.array=="replace")n[r]=s;else{const i=Array.isArray(n[r])?n[r]:[n[r]];for(const o of Array.isArray(s)?s:[s])i.includes(o)||i.push(o);n[r]=i}else typeof n[r]=="object"&&typeof s=="object"?n[r]=this.mergeClaims(n[r],s):n[r]=s;return n}},MV=class{constructor(e,t){this._logger=new Oe("OidcClient"),this.settings=e instanceof Nf?e:new Nf(e),this.metadataService=t??new bV(this.settings),this._claimsService=new NV(this.settings),this._validator=new RV(this.settings,this.metadataService,this._claimsService),this._tokenClient=new CS(this.settings,this.metadataService)}async createSigninRequest({state:e,request:t,request_uri:n,request_type:r,id_token_hint:s,login_hint:i,skipUserInfo:o,nonce:a,url_state:l,response_type:c=this.settings.response_type,scope:u=this.settings.scope,redirect_uri:d=this.settings.redirect_uri,prompt:f=this.settings.prompt,display:p=this.settings.display,max_age:g=this.settings.max_age,ui_locales:v=this.settings.ui_locales,acr_values:w=this.settings.acr_values,resource:y=this.settings.resource,response_mode:m=this.settings.response_mode,extraQueryParams:h=this.settings.extraQueryParams,extraTokenParams:_=this.settings.extraTokenParams}){const b=this._logger.create("createSigninRequest");if(c!=="code")throw new Error("Only the Authorization Code flow (with PKCE) is supported");const E=await this.metadataService.getAuthorizationEndpoint();b.debug("Received authorization endpoint",E);const R=await CV.create({url:E,authority:this.settings.authority,client_id:this.settings.client_id,redirect_uri:d,response_type:c,scope:u,state_data:e,url_state:l,prompt:f,display:p,max_age:g,ui_locales:v,id_token_hint:s,login_hint:i,acr_values:w,resource:y,request:t,request_uri:n,extraQueryParams:h,extraTokenParams:_,request_type:r,response_mode:m,client_secret:this.settings.client_secret,skipUserInfo:o,nonce:a,disablePKCE:this.settings.disablePKCE});await this.clearStaleState();const S=R.state;return await this.settings.stateStore.set(S.id,S.toStorageString()),R}async readSigninResponseState(e,t=!1){const n=this._logger.create("readSigninResponseState"),r=new zu(Lf.readParams(e,this.settings.response_mode));if(!r.state)throw n.throw(new Error("No state in response")),null;const s=await this.settings.stateStore[t?"remove":"get"](r.state);if(!s)throw n.throw(new Error("No matching state found in storage")),null;return{state:await AS.fromStorageString(s),response:r}}async processSigninResponse(e){const t=this._logger.create("processSigninResponse"),{state:n,response:r}=await this.readSigninResponseState(e,!0);return t.debug("received state from storage; validating response"),await this._validator.validateSigninResponse(r,n),r}async processResourceOwnerPasswordCredentials({username:e,password:t,skipUserInfo:n=!1,extraTokenParams:r={}}){const s=await this._tokenClient.exchangeCredentials({username:e,password:t,...r}),i=new zu(new URLSearchParams);return Object.assign(i,s),await this._validator.validateCredentialsResponse(i,n),i}async useRefreshToken({state:e,redirect_uri:t,resource:n,timeoutInSeconds:r,extraTokenParams:s}){var i;const o=this._logger.create("useRefreshToken");let a;if(this.settings.refreshTokenAllowedScope===void 0)a=e.scope;else{const u=this.settings.refreshTokenAllowedScope.split(" ");a=(((i=e.scope)==null?void 0:i.split(" "))||[]).filter(f=>u.includes(f)).join(" ")}const l=await this._tokenClient.exchangeRefreshToken({refresh_token:e.refresh_token,scope:a,redirect_uri:t,resource:n,timeoutInSeconds:r,...s}),c=new zu(new URLSearchParams);return Object.assign(c,l),o.debug("validating response",c),await this._validator.validateRefreshResponse(c,{...e,scope:a}),c}async createSignoutRequest({state:e,id_token_hint:t,client_id:n,request_type:r,post_logout_redirect_uri:s=this.settings.post_logout_redirect_uri,extraQueryParams:i=this.settings.extraQueryParams}={}){const o=this._logger.create("createSignoutRequest"),a=await this.metadataService.getEndSessionEndpoint();if(!a)throw o.throw(new Error("No end session endpoint")),null;o.debug("Received end session endpoint",a),!n&&s&&!t&&(n=this.settings.client_id);const l=new OV({url:a,id_token_hint:t,client_id:n,post_logout_redirect_uri:s,state_data:e,extraQueryParams:i,request_type:r});await this.clearStaleState();const c=l.state;return c&&(o.debug("Signout request has state to persist"),await this.settings.stateStore.set(c.id,c.toStorageString())),l}async readSignoutResponseState(e,t=!1){const n=this._logger.create("readSignoutResponseState"),r=new PV(Lf.readParams(e,this.settings.response_mode));if(!r.state){if(n.debug("No state in response"),r.error)throw n.warn("Response was error:",r.error),new Bs(r);return{state:void 0,response:r}}const s=await this.settings.stateStore[t?"remove":"get"](r.state);if(!s)throw n.throw(new Error("No matching state found in storage")),null;return{state:await lc.fromStorageString(s),response:r}}async processSignoutResponse(e){const t=this._logger.create("processSignoutResponse"),{state:n,response:r}=await this.readSignoutResponseState(e,!0);return n?(t.debug("Received state from storage; validating response"),this._validator.validateSignoutResponse(r,n)):t.debug("No state from storage; skipping response validation"),r}clearStaleState(){return this._logger.create("clearStaleState"),lc.clearStaleState(this.settings.stateStore,this.settings.staleStateAgeInSeconds)}async revokeToken(e,t){return this._logger.create("revokeToken"),await this._tokenClient.revoke({token:e,token_type_hint:t})}},$V=class{constructor(e){this._userManager=e,this._logger=new Oe("SessionMonitor"),this._start=async t=>{const n=t.session_state;if(!n)return;const r=this._logger.create("_start");if(t.profile?(this._sub=t.profile.sub,r.debug("session_state",n,", sub",this._sub)):(this._sub=void 0,r.debug("session_state",n,", anonymous user")),this._checkSessionIFrame){this._checkSessionIFrame.start(n);return}try{const s=await this._userManager.metadataService.getCheckSessionIframe();if(s){r.debug("initializing check session iframe");const i=this._userManager.settings.client_id,o=this._userManager.settings.checkSessionIntervalInSeconds,a=this._userManager.settings.stopCheckSessionOnError,l=new wV(this._callback,i,s,o,a);await l.load(),this._checkSessionIFrame=l,l.start(n)}else r.warn("no check session iframe found in the metadata")}catch(s){r.error("Error from getCheckSessionIframe:",s instanceof Error?s.message:s)}},this._stop=()=>{const t=this._logger.create("_stop");if(this._sub=void 0,this._checkSessionIFrame&&this._checkSessionIFrame.stop(),this._userManager.settings.monitorAnonymousSession){const n=setInterval(async()=>{clearInterval(n);try{const r=await this._userManager.querySessionStatus();if(r){const s={session_state:r.session_state,profile:r.sub?{sub:r.sub}:null};this._start(s)}}catch(r){t.error("error from querySessionStatus",r instanceof Error?r.message:r)}},1e3)}},this._callback=async()=>{const t=this._logger.create("_callback");try{const n=await this._userManager.querySessionStatus();let r=!0;n&&this._checkSessionIFrame?n.sub===this._sub?(r=!1,this._checkSessionIFrame.start(n.session_state),t.debug("same sub still logged in at OP, session state has changed, restarting check session iframe; session_state",n.session_state),await this._userManager.events._raiseUserSessionChanged()):t.debug("different subject signed into OP",n.sub):t.debug("subject no longer signed into OP"),r?this._sub?await this._userManager.events._raiseUserSignedOut():await this._userManager.events._raiseUserSignedIn():t.debug("no change in session detected, no event to raise")}catch(n){this._sub&&(t.debug("Error calling queryCurrentSigninSession; raising signed out event",n),await this._userManager.events._raiseUserSignedOut())}},e||this._logger.throw(new Error("No user manager passed")),this._userManager.events.addUserLoaded(this._start),this._userManager.events.addUserUnloaded(this._stop),this._init().catch(t=>{this._logger.error(t)})}async _init(){this._logger.create("_init");const e=await this._userManager.getUser();if(e)this._start(e);else if(this._userManager.settings.monitorAnonymousSession){const t=await this._userManager.querySessionStatus();if(t){const n={session_state:t.session_state,profile:t.sub?{sub:t.sub}:null};this._start(n)}}}},Vu=class LS{constructor(t){var n;this.id_token=t.id_token,this.session_state=(n=t.session_state)!=null?n:null,this.access_token=t.access_token,this.refresh_token=t.refresh_token,this.token_type=t.token_type,this.scope=t.scope,this.profile=t.profile,this.expires_at=t.expires_at,this.state=t.userState,this.url_state=t.url_state}get expires_in(){if(this.expires_at!==void 0)return this.expires_at-yr.getEpochTime()}set expires_in(t){t!==void 0&&(this.expires_at=Math.floor(t)+yr.getEpochTime())}get expired(){const t=this.expires_in;if(t!==void 0)return t<=0}get scopes(){var t,n;return(n=(t=this.scope)==null?void 0:t.split(" "))!=null?n:[]}toStorageString(){return new Oe("User").create("toStorageString"),JSON.stringify({id_token:this.id_token,session_state:this.session_state,access_token:this.access_token,refresh_token:this.refresh_token,token_type:this.token_type,scope:this.scope,profile:this.profile,expires_at:this.expires_at})}static fromStorageString(t){return Oe.createStatic("User","fromStorageString"),new LS(JSON.parse(t))}},bv="oidc-client",DS=class{constructor(){this._abort=new Br("Window navigation aborted"),this._disposeHandlers=new Set,this._window=null}async navigate(e){const t=this._logger.create("navigate");if(!this._window)throw new Error("Attempted to navigate on a disposed window");t.debug("setting URL in window"),this._window.location.replace(e.url);const{url:n,keepOpen:r}=await new Promise((s,i)=>{const o=a=>{var l;const c=a.data,u=(l=e.scriptOrigin)!=null?l:window.location.origin;if(!(a.origin!==u||(c==null?void 0:c.source)!==bv)){try{const d=Lf.readParams(c.url,e.response_mode).get("state");if(d||t.warn("no state found in response url"),a.source!==this._window&&d!==e.state)return}catch{this._dispose(),i(new Error("Invalid response from window"))}s(c)}};window.addEventListener("message",o,!1),this._disposeHandlers.add(()=>window.removeEventListener("message",o,!1)),this._disposeHandlers.add(this._abort.addHandler(a=>{this._dispose(),i(a)}))});return t.debug("got response from window"),this._dispose(),r||this.close(),{url:n}}_dispose(){this._logger.create("_dispose");for(const e of this._disposeHandlers)e();this._disposeHandlers.clear()}static _notifyParent(e,t,n=!1,r=window.location.origin){e.postMessage({source:bv,url:t,keepOpen:n},r)}},NS={location:!1,toolbar:!1,height:640,closePopupWindowAfterInSeconds:-1},MS="_blank",xV=60,UV=2,$S=10,FV=class extends Nf{constructor(e){const{popup_redirect_uri:t=e.redirect_uri,popup_post_logout_redirect_uri:n=e.post_logout_redirect_uri,popupWindowFeatures:r=NS,popupWindowTarget:s=MS,redirectMethod:i="assign",redirectTarget:o="self",iframeNotifyParentOrigin:a=e.iframeNotifyParentOrigin,iframeScriptOrigin:l=e.iframeScriptOrigin,silent_redirect_uri:c=e.redirect_uri,silentRequestTimeoutInSeconds:u=$S,automaticSilentRenew:d=!0,validateSubOnSilentRenew:f=!0,includeIdTokenInSilentRenew:p=!1,monitorSession:g=!1,monitorAnonymousSession:v=!1,checkSessionIntervalInSeconds:w=UV,query_status_response_type:y="code",stopCheckSessionOnError:m=!0,revokeTokenTypes:h=["access_token","refresh_token"],revokeTokensOnSignout:_=!1,includeIdTokenInSilentSignout:b=!1,accessTokenExpiringNotificationTimeInSeconds:E=xV,userStore:R}=e;if(super(e),this.popup_redirect_uri=t,this.popup_post_logout_redirect_uri=n,this.popupWindowFeatures=r,this.popupWindowTarget=s,this.redirectMethod=i,this.redirectTarget=o,this.iframeNotifyParentOrigin=a,this.iframeScriptOrigin=l,this.silent_redirect_uri=c,this.silentRequestTimeoutInSeconds=u,this.automaticSilentRenew=d,this.validateSubOnSilentRenew=f,this.includeIdTokenInSilentRenew=p,this.monitorSession=g,this.monitorAnonymousSession=v,this.checkSessionIntervalInSeconds=w,this.stopCheckSessionOnError=m,this.query_status_response_type=y,this.revokeTokenTypes=h,this.revokeTokensOnSignout=_,this.includeIdTokenInSilentSignout=b,this.accessTokenExpiringNotificationTimeInSeconds=E,R)this.userStore=R;else{const S=typeof window<"u"?window.sessionStorage:new RS;this.userStore=new vh({store:S})}}},Ev=class xS extends DS{constructor({silentRequestTimeoutInSeconds:t=$S}){super(),this._logger=new Oe("IFrameWindow"),this._timeoutInSeconds=t,this._frame=xS.createHiddenIframe(),this._window=this._frame.contentWindow}static createHiddenIframe(){const t=window.document.createElement("iframe");return t.style.visibility="hidden",t.style.position="fixed",t.style.left="-1000px",t.style.top="0",t.width="0",t.height="0",window.document.body.appendChild(t),t}async navigate(t){this._logger.debug("navigate: Using timeout of:",this._timeoutInSeconds);const n=setTimeout(()=>void this._abort.raise(new mh("IFrame timed out without a response")),this._timeoutInSeconds*1e3);return this._disposeHandlers.add(()=>clearTimeout(n)),await super.navigate(t)}close(){var t;this._frame&&(this._frame.parentNode&&(this._frame.addEventListener("load",n=>{var r;const s=n.target;(r=s.parentNode)==null||r.removeChild(s),this._abort.raise(new Error("IFrame removed from DOM"))},!0),(t=this._frame.contentWindow)==null||t.location.replace("about:blank")),this._frame=null),this._window=null}static notifyParent(t,n){return super._notifyParent(window.parent,t,!1,n)}},BV=class{constructor(e){this._settings=e,this._logger=new Oe("IFrameNavigator")}async prepare({silentRequestTimeoutInSeconds:e=this._settings.silentRequestTimeoutInSeconds}){return new Ev({silentRequestTimeoutInSeconds:e})}async callback(e){this._logger.create("callback"),Ev.notifyParent(e,this._settings.iframeNotifyParentOrigin)}},HV=500,jV=1e3,Tv=class extends DS{constructor({popupWindowTarget:e=MS,popupWindowFeatures:t={}}){super(),this._logger=new Oe("PopupWindow");const n=wv.center({...NS,...t});this._window=window.open(void 0,e,wv.serialize(n)),t.closePopupWindowAfterInSeconds&&t.closePopupWindowAfterInSeconds>0&&setTimeout(()=>{if(!this._window||typeof this._window.closed!="boolean"||this._window.closed){this._abort.raise(new Error("Popup blocked by user"));return}this.close()},t.closePopupWindowAfterInSeconds*jV)}async navigate(e){var t;(t=this._window)==null||t.focus();const n=setInterval(()=>{(!this._window||this._window.closed)&&this._abort.raise(new Error("Popup closed by user"))},HV);return this._disposeHandlers.add(()=>clearInterval(n)),await super.navigate(e)}close(){this._window&&(this._window.closed||(this._window.close(),this._abort.raise(new Error("Popup closed")))),this._window=null}static notifyOpener(e,t){if(!window.opener)throw new Error("No window.opener. Can't complete notification.");return super._notifyParent(window.opener,e,t)}},zV=class{constructor(e){this._settings=e,this._logger=new Oe("PopupNavigator")}async prepare({popupWindowFeatures:e=this._settings.popupWindowFeatures,popupWindowTarget:t=this._settings.popupWindowTarget}){return new Tv({popupWindowFeatures:e,popupWindowTarget:t})}async callback(e,{keepOpen:t=!1}){this._logger.create("callback"),Tv.notifyOpener(e,t)}},VV=class{constructor(e){this._settings=e,this._logger=new Oe("RedirectNavigator")}async prepare({redirectMethod:e=this._settings.redirectMethod,redirectTarget:t=this._settings.redirectTarget}){var n;this._logger.create("prepare");let r=window.self;t==="top"&&(r=(n=window.top)!=null?n:window.self);const s=r.location[e].bind(r.location);let i;return{navigate:async o=>{this._logger.create("navigate");const a=new Promise((l,c)=>{i=c});return s(o.url),await a},close:()=>{this._logger.create("close"),i==null||i(new Error("Redirect aborted")),r.stop()}}}async callback(){}},WV=class extends yV{constructor(e){super({expiringNotificationTimeInSeconds:e.accessTokenExpiringNotificationTimeInSeconds}),this._logger=new Oe("UserManagerEvents"),this._userLoaded=new Br("User loaded"),this._userUnloaded=new Br("User unloaded"),this._silentRenewError=new Br("Silent renew error"),this._userSignedIn=new Br("User signed in"),this._userSignedOut=new Br("User signed out"),this._userSessionChanged=new Br("User session changed")}async load(e,t=!0){super.load(e),t&&await this._userLoaded.raise(e)}async unload(){super.unload(),await this._userUnloaded.raise()}addUserLoaded(e){return this._userLoaded.addHandler(e)}removeUserLoaded(e){return this._userLoaded.removeHandler(e)}addUserUnloaded(e){return this._userUnloaded.addHandler(e)}removeUserUnloaded(e){return this._userUnloaded.removeHandler(e)}addSilentRenewError(e){return this._silentRenewError.addHandler(e)}removeSilentRenewError(e){return this._silentRenewError.removeHandler(e)}async _raiseSilentRenewError(e){await this._silentRenewError.raise(e)}addUserSignedIn(e){return this._userSignedIn.addHandler(e)}removeUserSignedIn(e){this._userSignedIn.removeHandler(e)}async _raiseUserSignedIn(){await this._userSignedIn.raise()}addUserSignedOut(e){return this._userSignedOut.addHandler(e)}removeUserSignedOut(e){this._userSignedOut.removeHandler(e)}async _raiseUserSignedOut(){await this._userSignedOut.raise()}addUserSessionChanged(e){return this._userSessionChanged.addHandler(e)}removeUserSessionChanged(e){this._userSessionChanged.removeHandler(e)}async _raiseUserSessionChanged(){await this._userSessionChanged.raise()}},KV=class{constructor(e){this._userManager=e,this._logger=new Oe("SilentRenewService"),this._isStarted=!1,this._retryTimer=new yr("Retry Silent Renew"),this._tokenExpiring=async()=>{const t=this._logger.create("_tokenExpiring");try{await this._userManager.signinSilent(),t.debug("silent token renewal successful")}catch(n){if(n instanceof mh){t.warn("ErrorTimeout from signinSilent:",n,"retry in 5s"),this._retryTimer.init(5);return}t.error("Error from signinSilent:",n),await this._userManager.events._raiseSilentRenewError(n)}}}async start(){const e=this._logger.create("start");if(!this._isStarted){this._isStarted=!0,this._userManager.events.addAccessTokenExpiring(this._tokenExpiring),this._retryTimer.addHandler(this._tokenExpiring);try{await this._userManager.getUser()}catch(t){e.error("getUser error",t)}}}stop(){this._isStarted&&(this._retryTimer.cancel(),this._retryTimer.removeHandler(this._tokenExpiring),this._userManager.events.removeAccessTokenExpiring(this._tokenExpiring),this._isStarted=!1)}},GV=class{constructor(e){this.refresh_token=e.refresh_token,this.id_token=e.id_token,this.session_state=e.session_state,this.scope=e.scope,this.profile=e.profile,this.data=e.state}},qV=class{constructor(e,t,n,r){this._logger=new Oe("UserManager"),this.settings=new FV(e),this._client=new MV(e),this._redirectNavigator=t??new VV(this.settings),this._popupNavigator=n??new zV(this.settings),this._iframeNavigator=r??new BV(this.settings),this._events=new WV(this.settings),this._silentRenewService=new KV(this),this.settings.automaticSilentRenew&&this.startSilentRenew(),this._sessionMonitor=null,this.settings.monitorSession&&(this._sessionMonitor=new $V(this))}get events(){return this._events}get metadataService(){return this._client.metadataService}async getUser(){const e=this._logger.create("getUser"),t=await this._loadUser();return t?(e.info("user loaded"),await this._events.load(t,!1),t):(e.info("user not found in storage"),null)}async removeUser(){const e=this._logger.create("removeUser");await this.storeUser(null),e.info("user removed from storage"),await this._events.unload()}async signinRedirect(e={}){this._logger.create("signinRedirect");const{redirectMethod:t,...n}=e,r=await this._redirectNavigator.prepare({redirectMethod:t});await this._signinStart({request_type:"si:r",...n},r)}async signinRedirectCallback(e=window.location.href){const t=this._logger.create("signinRedirectCallback"),n=await this._signinEnd(e);return n.profile&&n.profile.sub?t.info("success, signed in subject",n.profile.sub):t.info("no subject"),n}async signinResourceOwnerCredentials({username:e,password:t,skipUserInfo:n=!1}){const r=this._logger.create("signinResourceOwnerCredential"),s=await this._client.processResourceOwnerPasswordCredentials({username:e,password:t,skipUserInfo:n,extraTokenParams:this.settings.extraTokenParams});r.debug("got signin response");const i=await this._buildUser(s);return i.profile&&i.profile.sub?r.info("success, signed in subject",i.profile.sub):r.info("no subject"),i}async signinPopup(e={}){const t=this._logger.create("signinPopup"),{popupWindowFeatures:n,popupWindowTarget:r,...s}=e,i=this.settings.popup_redirect_uri;i||t.throw(new Error("No popup_redirect_uri configured"));const o=await this._popupNavigator.prepare({popupWindowFeatures:n,popupWindowTarget:r}),a=await this._signin({request_type:"si:p",redirect_uri:i,display:"popup",...s},o);return a&&(a.profile&&a.profile.sub?t.info("success, signed in subject",a.profile.sub):t.info("no subject")),a}async signinPopupCallback(e=window.location.href,t=!1){const n=this._logger.create("signinPopupCallback");await this._popupNavigator.callback(e,{keepOpen:t}),n.info("success")}async signinSilent(e={}){var t;const n=this._logger.create("signinSilent"),{silentRequestTimeoutInSeconds:r,...s}=e;let i=await this._loadUser();if(i!=null&&i.refresh_token){n.debug("using refresh token");const c=new GV(i);return await this._useRefreshToken({state:c,redirect_uri:s.redirect_uri,resource:s.resource,extraTokenParams:s.extraTokenParams,timeoutInSeconds:r})}const o=this.settings.silent_redirect_uri;o||n.throw(new Error("No silent_redirect_uri configured"));let a;i&&this.settings.validateSubOnSilentRenew&&(n.debug("subject prior to silent renew:",i.profile.sub),a=i.profile.sub);const l=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:r});return i=await this._signin({request_type:"si:s",redirect_uri:o,prompt:"none",id_token_hint:this.settings.includeIdTokenInSilentRenew?i==null?void 0:i.id_token:void 0,...s},l,a),i&&((t=i.profile)!=null&&t.sub?n.info("success, signed in subject",i.profile.sub):n.info("no subject")),i}async _useRefreshToken(e){const t=await this._client.useRefreshToken({...e,timeoutInSeconds:this.settings.silentRequestTimeoutInSeconds}),n=new Vu({...e.state,...t});return await this.storeUser(n),await this._events.load(n),n}async signinSilentCallback(e=window.location.href){const t=this._logger.create("signinSilentCallback");await this._iframeNavigator.callback(e),t.info("success")}async signinCallback(e=window.location.href){const{state:t}=await this._client.readSigninResponseState(e);switch(t.request_type){case"si:r":return await this.signinRedirectCallback(e);case"si:p":return await this.signinPopupCallback(e);case"si:s":return await this.signinSilentCallback(e);default:throw new Error("invalid response_type in state")}}async signoutCallback(e=window.location.href,t=!1){const{state:n}=await this._client.readSignoutResponseState(e);if(n)switch(n.request_type){case"so:r":await this.signoutRedirectCallback(e);break;case"so:p":await this.signoutPopupCallback(e,t);break;case"so:s":await this.signoutSilentCallback(e);break;default:throw new Error("invalid response_type in state")}}async querySessionStatus(e={}){const t=this._logger.create("querySessionStatus"),{silentRequestTimeoutInSeconds:n,...r}=e,s=this.settings.silent_redirect_uri;s||t.throw(new Error("No silent_redirect_uri configured"));const i=await this._loadUser(),o=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:n}),a=await this._signinStart({request_type:"si:s",redirect_uri:s,prompt:"none",id_token_hint:this.settings.includeIdTokenInSilentRenew?i==null?void 0:i.id_token:void 0,response_type:this.settings.query_status_response_type,scope:"openid",skipUserInfo:!0,...r},o);try{const l=await this._client.processSigninResponse(a.url);return t.debug("got signin response"),l.session_state&&l.profile.sub?(t.info("success for subject",l.profile.sub),{session_state:l.session_state,sub:l.profile.sub}):(t.info("success, user not authenticated"),null)}catch(l){if(this.settings.monitorAnonymousSession&&l instanceof Bs)switch(l.error){case"login_required":case"consent_required":case"interaction_required":case"account_selection_required":return t.info("success for anonymous user"),{session_state:l.session_state}}throw l}}async _signin(e,t,n){const r=await this._signinStart(e,t);return await this._signinEnd(r.url,n)}async _signinStart(e,t){const n=this._logger.create("_signinStart");try{const r=await this._client.createSigninRequest(e);return n.debug("got signin request"),await t.navigate({url:r.url,state:r.state.id,response_mode:r.state.response_mode,scriptOrigin:this.settings.iframeScriptOrigin})}catch(r){throw n.debug("error after preparing navigator, closing navigator window"),t.close(),r}}async _signinEnd(e,t){const n=this._logger.create("_signinEnd"),r=await this._client.processSigninResponse(e);return n.debug("got signin response"),await this._buildUser(r,t)}async _buildUser(e,t){const n=this._logger.create("_buildUser"),r=new Vu(e);if(t){if(t!==r.profile.sub)throw n.debug("current user does not match user returned from signin. sub from signin:",r.profile.sub),new Bs({...e,error:"login_required"});n.debug("current user matches user returned from signin")}return await this.storeUser(r),n.debug("user stored"),await this._events.load(r),r}async signoutRedirect(e={}){const t=this._logger.create("signoutRedirect"),{redirectMethod:n,...r}=e,s=await this._redirectNavigator.prepare({redirectMethod:n});await this._signoutStart({request_type:"so:r",post_logout_redirect_uri:this.settings.post_logout_redirect_uri,...r},s),t.info("success")}async signoutRedirectCallback(e=window.location.href){const t=this._logger.create("signoutRedirectCallback"),n=await this._signoutEnd(e);return t.info("success"),n}async signoutPopup(e={}){const t=this._logger.create("signoutPopup"),{popupWindowFeatures:n,popupWindowTarget:r,...s}=e,i=this.settings.popup_post_logout_redirect_uri,o=await this._popupNavigator.prepare({popupWindowFeatures:n,popupWindowTarget:r});await this._signout({request_type:"so:p",post_logout_redirect_uri:i,state:i==null?void 0:{},...s},o),t.info("success")}async signoutPopupCallback(e=window.location.href,t=!1){const n=this._logger.create("signoutPopupCallback");await this._popupNavigator.callback(e,{keepOpen:t}),n.info("success")}async _signout(e,t){const n=await this._signoutStart(e,t);return await this._signoutEnd(n.url)}async _signoutStart(e={},t){var n;const r=this._logger.create("_signoutStart");try{const s=await this._loadUser();r.debug("loaded current user from storage"),this.settings.revokeTokensOnSignout&&await this._revokeInternal(s);const i=e.id_token_hint||s&&s.id_token;i&&(r.debug("setting id_token_hint in signout request"),e.id_token_hint=i),await this.removeUser(),r.debug("user removed, creating signout request");const o=await this._client.createSignoutRequest(e);return r.debug("got signout request"),await t.navigate({url:o.url,state:(n=o.state)==null?void 0:n.id,scriptOrigin:this.settings.iframeScriptOrigin})}catch(s){throw r.debug("error after preparing navigator, closing navigator window"),t.close(),s}}async _signoutEnd(e){const t=this._logger.create("_signoutEnd"),n=await this._client.processSignoutResponse(e);return t.debug("got signout response"),n}async signoutSilent(e={}){var t;const n=this._logger.create("signoutSilent"),{silentRequestTimeoutInSeconds:r,...s}=e,i=this.settings.includeIdTokenInSilentSignout?(t=await this._loadUser())==null?void 0:t.id_token:void 0,o=this.settings.popup_post_logout_redirect_uri,a=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:r});await this._signout({request_type:"so:s",post_logout_redirect_uri:o,id_token_hint:i,...s},a),n.info("success")}async signoutSilentCallback(e=window.location.href){const t=this._logger.create("signoutSilentCallback");await this._iframeNavigator.callback(e),t.info("success")}async revokeTokens(e){const t=await this._loadUser();await this._revokeInternal(t,e)}async _revokeInternal(e,t=this.settings.revokeTokenTypes){const n=this._logger.create("_revokeInternal");if(!e)return;const r=t.filter(s=>typeof e[s]=="string");if(!r.length){n.debug("no need to revoke due to no token(s)");return}for(const s of r)await this._client.revokeToken(e[s],s),n.info(`${s} revoked successfully`),s!=="access_token"&&(e[s]=null);await this.storeUser(e),n.debug("user stored"),await this._events.load(e)}startSilentRenew(){this._logger.create("startSilentRenew"),this._silentRenewService.start()}stopSilentRenew(){this._silentRenewService.stop()}get _userStoreKey(){return`user:${this.settings.authority}:${this.settings.client_id}`}async _loadUser(){const e=this._logger.create("_loadUser"),t=await this.settings.userStore.get(this._userStoreKey);return t?(e.debug("user storageString loaded"),Vu.fromStorageString(t)):(e.debug("no user storageString"),null)}async storeUser(e){const t=this._logger.create("storeUser");if(e){t.debug("storing user");const n=e.toStorageString();await this.settings.userStore.set(this._userStoreKey,n)}else this._logger.debug("removing user"),await this.settings.userStore.remove(this._userStoreKey)}async clearStaleState(){await this._client.clearStaleState()}};const YV=()=>{const e=te(null);return{userId:e,changeUserId:n=>{e.value=n}}},US={prod:{authority:"https://r.pl/konto"},test:{authority:"https://dev.r.pl/konto"}},JV=en.PROD,Ho=YT({options:{async beforeFetch({options:e,url:t}){if(t.includes(".json"))return{options:e};const{getToken:n}=Zc(JV),r=await n(),s={...e==null?void 0:e.headers,"X-Source":"r.pl",Authorization:`Bearer ${r}`};return e={...e,headers:s},{options:e}}}}),Sv=te(null),XV=()=>({pobierzStatusKlienta:async()=>{try{const t=Fo(ve.MOJE_R,"/pobierz-status-klienta"),{data:n,error:r}=await Ho(t).json();if(r.value)throw new Error(r.value);Sv.value=n.value}catch{}},statusKlienta:Sv}),ZV={brak_wycieczki:0,przed_wyjazdem:1,podczas_wakacji:2,rezerwacja_wstepna:3},QV=e=>{const{statusWyjazdu:t,bumerang:n,uid:r}=e,s=[],i=`1=${ZV[t]}`;s.push(i);const o=`2=${n?1:0}`;s.push(o);const a=`3=${r}`;return s.push(a),s.join("|")};var FS=(e=>(e.VIEW_ITEM_LIST="view_item_list",e.SELECT_ITEM="select_item",e.ADD_TO_WISHLIST="add_to_wishlist",e.VIEW_ITEM="view_item",e.VIEW_CART="view_cart",e.ADD_TO_CART="add_to_cart",e.REMOVE_FROM_CART="remove_from_cart",e.KONFIGURACJA_WYCIECZKI="konfiguracja_wycieczki",e.AI_CHATBOT="chatBotAI",e.AI_CHATBOT_SOURCE="chatBotAI_zrodlo",e.LOGIN="login",e.SIGN_IN="sign_in",e.JOIN_GROUP="join_group",e.UPSELL_PANEL="upsell_panel",e.WYSZUKIWARKA_WF_REGION="wyszukiwarka_region",e.ADD_PAYMENT_INFO="add_payment_info",e.ADD_SHIPPING_INFO="add_shipping_info",e.BEGIN_CHECKOUT="begin_checkout",e.FORMULARZ="formularz",e.FORMULARZ_ERROR="formularzError",e.PURCHASE="purchase",e.SPOSOB_REZERWCJI="sposobRezerwacji",e))(FS||{});const cc="_gtmPanelStatus",eW={path:"/",maxAge:31536e3},BS=()=>window?(window.dataLayer||(window.dataLayer=[]),window.dataLayer):[],tW=e=>{BS().push(e)},nW=()=>{const e={ecommerce:null};BS().push(e)},rW=(e,t,n=!1)=>{n&&nW();const r={event:e,...t};return tW(r),r},sW=e=>{const{set:t}=ka([cc]),n=QV(e);t(cc,n,eW)},iW=()=>{const{remove:e}=ka([cc]);e(cc,{path:"/"})},oW=e=>{const{metodaLogowania:t,statusKlienta:n}=e,{bumerang:r,statusWyjazdu:s}=n;return{funkcje:t,login_status:"zalogowany",status_wyjazdu:s,bumerang:r?"tak":"nie"}},Wu="KlientIdSchowek",aW=365*24*60*60*1e3;let Kt;const{userId:cl}=YV(),Ar=tn(void 0),Ku=tn(void 0),kv=tn(!1);let Iv=!1;const Zc=(e,t=!0)=>{const n=z(()=>{var h;return((h=Ar.value)==null?void 0:h.profile.sub)||cl.value}),r=z(()=>Ar.value!==void 0),s=ka([Wu]),{pobierzStatusKlienta:i,statusKlienta:o}=XV(),a=async()=>{const h=await QB();return h?(s.set(Wu,h,{expires:new Date(Date.now()+aW)}),h):null},l=h=>{cn&&(window.location.href=h)},c=h=>`${cn?window.location.origin:Zt[e]}/auth/${h}`;!Kt&&cn&&(Kt=new qV({authority:US[e].authority,client_id:"web.rpl",redirect_uri:c("login"),post_logout_redirect_uri:c("logout"),scope:"openid profile moje_r.web rpl_identity.web wycieczki_fakultatywne.web_klient miejsca_w_samolocie.web_klient bony.web_klient rezerwacja.web_klient koszyk.web profil_klienta.web",silent_redirect_uri:c("silent-renew"),monitorSession:!0,loadUserInfo:!0,userStore:new vh({store:localStorage,prefix:"oidc."}),checkSessionIntervalInSeconds:20}),Kt.events.addUserLoaded(h=>{Ar.value=h.expired?null:h}),Kt.events.addUserSignedOut(()=>{Ar.value=null}),Kt.events.addAccessTokenExpired(()=>{Kt.signinSilent().catch(h=>{console.error(h)})}));const u=async h=>{if(!cn)return;const _={...h};h!=null&&h.state||(_.state=window.location.href),await Kt.signinRedirect(_)},d=async()=>{if(!cn)return;const h={state:window.location.href};await Kt.signoutRedirect(h)},f=async()=>{try{const h=await Kt.signinRedirectCallback(),b=h.profile.idp==="local"?"haslo":"serwisZewnetrzny";if(await i(),o.value){const E=oW({statusKlienta:o.value,metodaLogowania:b});rW(FS.LOGIN,E),sW({...o.value,uid:h.profile.sub})}l(h.state||Zt[e])}catch{l(Zt[e])}},p=async()=>{try{const h=await Kt.signoutRedirectCallback();iW(),l(h.userState||Zt[e])}catch{l(Zt[e])}},g=async()=>{try{await Kt.signinSilentCallback()}catch{l(Zt[e])}},v=async()=>!!await y(),w=async()=>{const h=await y();return(h==null?void 0:h.access_token)??null},y=async()=>{const h=await Kt.getUser();return Ar.value=h!=null&&h.expired?null:h,Ar.value},m=async()=>{var h;try{const _=Fo(ve.MOJE_R,"/pobierz-prosty-profil-klienta"),{response:b,error:E,statusCode:R}=await Ho(_).get();if(E.value)throw new Error("Nie udało się pobrać danych użytkownika");if(R.value!==200)throw new Error("Nie udało się pobrać danych użytkownika");const S=await((h=b.value)==null?void 0:h.json());if(!S)throw new Error("Nie udało się pobrać danych użytkownika");const A=`${(S.imie||"").charAt(0).toUpperCase()}${(S.nazwisko||"").charAt(0).toUpperCase()}`||(S.email||"").charAt(0).toUpperCase()||"";Ku.value={...S,inicjaly:A}}catch{Ku.value=null,d()}};if(t&&cn&&!Iv){if(Iv=!0,!n.value){const h=s.get(Wu);h?cl.value=h:a().then(_=>{cl.value=_})}y().then(async h=>{try{h!=null&&h.profile&&await m()}finally{Ar.value=h,kv.value=!0}})}return{login:u,logout:d,loginCallback:f,logoutCallback:p,silentRenewCallback:g,isAuthorized:v,getToken:w,getUser:y,getUserBaseInfo:m,userManager:Kt,user:Ar,guestUserId:cl,userId:n,isUserLoaded:r,userBaseInfo:Ku,isUserBaseInfoLoaded:kv}};let Rv=!1;const Or=te([]),Gu=te(!1),qu=te(!1),lW=e=>{const{userId:t,isUserLoaded:n}=Zc(e),r=async()=>{var a;if(t.value)try{qu.value=!1,Gu.value=!0;const l=Fo(ve.KOSZYK,"/pobierz-koszyk",{userId:t.value}),{response:c,error:u,statusCode:d}=await Ho(l).get();if(d.value===204){Or.value=[];return}if(u.value)throw u.value;Or.value=await((a=c.value)==null?void 0:a.json())||[]}catch(l){throw qu.value=!0,l}finally{Gu.value=!1}},s=async a=>{var f;if(!t.value)return;const l=Fo(ve.KOSZYK,"/dodaj-do-koszyka",{userId:t.value}),{statusCode:c,response:u,error:d}=await Ho(l).post({klucze:a}).json();if(c.value===204){Or.value=[];return}if(d.value)throw d.value;Or.value=await((f=u.value)==null?void 0:f.json())||[]},i=async a=>{var f;if(!t.value)return;const l=Fo(ve.KOSZYK,"/usun-z-koszyka",{userId:t.value}),{statusCode:c,response:u,error:d}=await Ho(l).post({klucze:a}).json();if(c.value===204){Or.value=[];return}if(d.value)throw d.value;Or.value=await((f=u.value)==null?void 0:f.json())||[]};cn&&!Rv&&(Rv=!0,Se([t,n],([a,l])=>{if(!(!a||!l))try{r()}catch(c){console.error(c)}},{immediate:!0}));const o=z(()=>Or.value.reduce((a,l)=>l.typ==="upsell"||l.typ==="fakultet"?a+l.elementy.length:a+1,0));return{koszyk:Or,koszykLoading:Gu,koszykError:qu,iloscElementowWKoszyku:o,pobierzKoszyk:r,dodajDoKoszyka:s,usunZKoszyka:i}},yh=e=>({load:async n=>{const r=Zp(e),s=n==="menu"?ve.INNE:ve.FOOTER,o=r(s,n==="menu"?"/pobierz-menu":"");return await(await fetch(o,n==="menu"?{headers:{"X-Source":"r.pl"}}:{})).json()}}),cW=(e,t)=>{try{return!(e.BloczekId!==t.BloczekId||e.Przystanki[0].Iata!==t.Przystanki[0].Iata||e.Wyzywienia[0].URL!==t.Wyzywienia[0].URL||e.BazoweInformacje.DatyUrodzenia.join()!==t.BazoweInformacje.DatyUrodzenia.join()||e.BazoweInformacje.LiczbaPokoi!==t.BazoweInformacje.LiczbaPokoi)}catch{return!1}},Cv=(e,t)=>{try{const n=t.Params.split("+"),r=n[0],s=n[1];return!(e.BloczekId!==t.Id||e.Przystanki[0].CzySamolot&&e.Przystanki[0].Iata!==s||!e.Przystanki[0].CzySamolot&&e.Przystanki[0].MiastoURL!==s&&e.Przystanki[0].Iata!==s||e.Wyzywienia[0].URL!==r||e.BazoweInformacje.DatyUrodzenia.join()!==t.DatyUrodzenia.join()||t.LiczbaPokoi&&e.BazoweInformacje.LiczbaPokoi!==t.LiczbaPokoi)}catch{return!1}},uW=(e,t)=>{try{return!(e.Klucz!==t.Id&&e.Klucz!==t.Klucz||e.DatyUrodzenia.join()!==t.DatyUrodzenia.join()||e.PunktOdbioruId!==t.PunktOdbioruId)}catch{return!1}},dW=e=>{try{return e.TypElementu==="fakultety"||e.Id!==void 0&&e.PunktOdbioruId!==void 0&&e.DatyUrodzenia!==void 0}catch{return!1}};var Av={};/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const HS=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let s=e.charCodeAt(r);s<128?t[n++]=s:s<2048?(t[n++]=s>>6|192,t[n++]=s&63|128):(s&64512)===55296&&r+1<e.length&&(e.charCodeAt(r+1)&64512)===56320?(s=65536+((s&1023)<<10)+(e.charCodeAt(++r)&1023),t[n++]=s>>18|240,t[n++]=s>>12&63|128,t[n++]=s>>6&63|128,t[n++]=s&63|128):(t[n++]=s>>12|224,t[n++]=s>>6&63|128,t[n++]=s&63|128)}return t},fW=function(e){const t=[];let n=0,r=0;for(;n<e.length;){const s=e[n++];if(s<128)t[r++]=String.fromCharCode(s);else if(s>191&&s<224){const i=e[n++];t[r++]=String.fromCharCode((s&31)<<6|i&63)}else if(s>239&&s<365){const i=e[n++],o=e[n++],a=e[n++],l=((s&7)<<18|(i&63)<<12|(o&63)<<6|a&63)-65536;t[r++]=String.fromCharCode(55296+(l>>10)),t[r++]=String.fromCharCode(56320+(l&1023))}else{const i=e[n++],o=e[n++];t[r++]=String.fromCharCode((s&15)<<12|(i&63)<<6|o&63)}}return t.join("")},jS={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let s=0;s<e.length;s+=3){const i=e[s],o=s+1<e.length,a=o?e[s+1]:0,l=s+2<e.length,c=l?e[s+2]:0,u=i>>2,d=(i&3)<<4|a>>4;let f=(a&15)<<2|c>>6,p=c&63;l||(p=64,o||(f=64)),r.push(n[u],n[d],n[f],n[p])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(HS(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):fW(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let s=0;s<e.length;){const i=n[e.charAt(s++)],a=s<e.length?n[e.charAt(s)]:0;++s;const c=s<e.length?n[e.charAt(s)]:64;++s;const d=s<e.length?n[e.charAt(s)]:64;if(++s,i==null||a==null||c==null||d==null)throw new pW;const f=i<<2|a>>4;if(r.push(f),c!==64){const p=a<<4&240|c>>2;if(r.push(p),d!==64){const g=c<<6&192|d;r.push(g)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class pW extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const hW=function(e){const t=HS(e);return jS.encodeByteArray(t,!0)},zS=function(e){return hW(e).replace(/\./g,"")},VS=function(e){try{return jS.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};/**
 * @license
 * Copyright 2022 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function gW(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}/**
 * @license
 * Copyright 2022 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const mW=()=>gW().__FIREBASE_DEFAULTS__,_W=()=>{if(typeof process>"u"||typeof Av>"u")return;const e=Av.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},vW=()=>{if(typeof document>"u")return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const t=e&&VS(e[1]);return t&&JSON.parse(t)},wh=()=>{try{return mW()||_W()||vW()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},yW=e=>{var t,n;return(n=(t=wh())===null||t===void 0?void 0:t.emulatorHosts)===null||n===void 0?void 0:n[e]},WS=()=>{var e;return(e=wh())===null||e===void 0?void 0:e.config},KS=e=>{var t;return(t=wh())===null||t===void 0?void 0:t[`_${e}`]};/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class wW{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}wrapCallback(t){return(n,r)=>{n?this.reject(n):this.resolve(r),typeof t=="function"&&(this.promise.catch(()=>{}),t.length===1?t(n):t(n,r))}}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Ot(){return typeof navigator<"u"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function bW(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Ot())}function EW(){const e=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof e=="object"&&e.id!==void 0}function TW(){return typeof navigator=="object"&&navigator.product==="ReactNative"}function SW(){const e=Ot();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}function kW(){try{return typeof indexedDB=="object"}catch{return!1}}function IW(){return new Promise((e,t)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",s=self.indexedDB.open(r);s.onsuccess=()=>{s.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},s.onupgradeneeded=()=>{n=!1},s.onerror=()=>{var i;t(((i=s.error)===null||i===void 0?void 0:i.message)||"")}}catch(n){t(n)}})}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const RW="FirebaseError";class hs extends Error{constructor(t,n,r){super(n),this.code=t,this.customData=r,this.name=RW,Object.setPrototypeOf(this,hs.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Ia.prototype.create)}}class Ia{constructor(t,n,r){this.service=t,this.serviceName=n,this.errors=r}create(t,...n){const r=n[0]||{},s=`${this.service}/${t}`,i=this.errors[t],o=i?CW(i,r):"Error",a=`${this.serviceName}: ${o} (${s}).`;return new hs(s,a,r)}}function CW(e,t){return e.replace(AW,(n,r)=>{const s=t[r];return s!=null?String(s):`<${r}?>`})}const AW=/\{\$([^}]+)}/g;function OW(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function uc(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);for(const s of n){if(!r.includes(s))return!1;const i=e[s],o=t[s];if(Ov(i)&&Ov(o)){if(!uc(i,o))return!1}else if(i!==o)return!1}for(const s of r)if(!n.includes(s))return!1;return!0}function Ov(e){return e!==null&&typeof e=="object"}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Ra(e){const t=[];for(const[n,r]of Object.entries(e))Array.isArray(r)?r.forEach(s=>{t.push(encodeURIComponent(n)+"="+encodeURIComponent(s))}):t.push(encodeURIComponent(n)+"="+encodeURIComponent(r));return t.length?"&"+t.join("&"):""}function PW(e,t){const n=new LW(e,t);return n.subscribe.bind(n)}class LW{constructor(t,n){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=n,this.task.then(()=>{t(this)}).catch(r=>{this.error(r)})}next(t){this.forEachObserver(n=>{n.next(t)})}error(t){this.forEachObserver(n=>{n.error(t)}),this.close(t)}complete(){this.forEachObserver(t=>{t.complete()}),this.close()}subscribe(t,n,r){let s;if(t===void 0&&n===void 0&&r===void 0)throw new Error("Missing Observer.");DW(t,["next","error","complete"])?s=t:s={next:t,error:n,complete:r},s.next===void 0&&(s.next=Yu),s.error===void 0&&(s.error=Yu),s.complete===void 0&&(s.complete=Yu);const i=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?s.error(this.finalError):s.complete()}catch{}}),this.observers.push(s),i}unsubscribeOne(t){this.observers===void 0||this.observers[t]===void 0||(delete this.observers[t],this.observerCount-=1,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this))}forEachObserver(t){if(!this.finalized)for(let n=0;n<this.observers.length;n++)this.sendOne(n,t)}sendOne(t,n){this.task.then(()=>{if(this.observers!==void 0&&this.observers[t]!==void 0)try{n(this.observers[t])}catch(r){typeof console<"u"&&console.error&&console.error(r)}})}close(t){this.finalized||(this.finalized=!0,t!==void 0&&(this.finalError=t),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function DW(e,t){if(typeof e!="object"||e===null)return!1;for(const n of t)if(n in e&&typeof e[n]=="function")return!0;return!1}function Yu(){}/**
 * @license
 * Copyright 2021 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function fo(e){return e&&e._delegate?e._delegate:e}class Qi{constructor(t,n,r){this.name=t,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(t){return this.instantiationMode=t,this}setMultipleInstances(t){return this.multipleInstances=t,this}setServiceProps(t){return this.serviceProps=t,this}setInstanceCreatedCallback(t){return this.onInstanceCreated=t,this}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const Ss="[DEFAULT]";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class NW{constructor(t,n){this.name=t,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(t){const n=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(n)){const r=new wW;if(this.instancesDeferred.set(n,r),this.isInitialized(n)||this.shouldAutoInitialize())try{const s=this.getOrInitializeService({instanceIdentifier:n});s&&r.resolve(s)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(t){var n;const r=this.normalizeInstanceIdentifier(t==null?void 0:t.identifier),s=(n=t==null?void 0:t.optional)!==null&&n!==void 0?n:!1;if(this.isInitialized(r)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:r})}catch(i){if(s)return null;throw i}else{if(s)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(t){if(t.name!==this.name)throw Error(`Mismatching Component ${t.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=t,!!this.shouldAutoInitialize()){if($W(t))try{this.getOrInitializeService({instanceIdentifier:Ss})}catch{}for(const[n,r]of this.instancesDeferred.entries()){const s=this.normalizeInstanceIdentifier(n);try{const i=this.getOrInitializeService({instanceIdentifier:s});r.resolve(i)}catch{}}}}clearInstance(t=Ss){this.instancesDeferred.delete(t),this.instancesOptions.delete(t),this.instances.delete(t)}async delete(){const t=Array.from(this.instances.values());await Promise.all([...t.filter(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...t.filter(n=>"_delete"in n).map(n=>n._delete())])}isComponentSet(){return this.component!=null}isInitialized(t=Ss){return this.instances.has(t)}getOptions(t=Ss){return this.instancesOptions.get(t)||{}}initialize(t={}){const{options:n={}}=t,r=this.normalizeInstanceIdentifier(t.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const s=this.getOrInitializeService({instanceIdentifier:r,options:n});for(const[i,o]of this.instancesDeferred.entries()){const a=this.normalizeInstanceIdentifier(i);r===a&&o.resolve(s)}return s}onInit(t,n){var r;const s=this.normalizeInstanceIdentifier(n),i=(r=this.onInitCallbacks.get(s))!==null&&r!==void 0?r:new Set;i.add(t),this.onInitCallbacks.set(s,i);const o=this.instances.get(s);return o&&t(o,s),()=>{i.delete(t)}}invokeOnInitCallbacks(t,n){const r=this.onInitCallbacks.get(n);if(r)for(const s of r)try{s(t,n)}catch{}}getOrInitializeService({instanceIdentifier:t,options:n={}}){let r=this.instances.get(t);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:MW(t),options:n}),this.instances.set(t,r),this.instancesOptions.set(t,n),this.invokeOnInitCallbacks(r,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,r)}catch{}return r||null}normalizeInstanceIdentifier(t=Ss){return this.component?this.component.multipleInstances?t:Ss:t}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function MW(e){return e===Ss?void 0:e}function $W(e){return e.instantiationMode==="EAGER"}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class xW{constructor(t){this.name=t,this.providers=new Map}addComponent(t){const n=this.getProvider(t.name);if(n.isComponentSet())throw new Error(`Component ${t.name} has already been registered with ${this.name}`);n.setComponent(t)}addOrOverwriteComponent(t){this.getProvider(t.name).isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)}getProvider(t){if(this.providers.has(t))return this.providers.get(t);const n=new NW(t,this);return this.providers.set(t,n),n}getProviders(){return Array.from(this.providers.values())}}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */var Ke;(function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"})(Ke||(Ke={}));const UW={debug:Ke.DEBUG,verbose:Ke.VERBOSE,info:Ke.INFO,warn:Ke.WARN,error:Ke.ERROR,silent:Ke.SILENT},FW=Ke.INFO,BW={[Ke.DEBUG]:"log",[Ke.VERBOSE]:"log",[Ke.INFO]:"info",[Ke.WARN]:"warn",[Ke.ERROR]:"error"},HW=(e,t,...n)=>{if(t<e.logLevel)return;const r=new Date().toISOString(),s=BW[t];if(s)console[s](`[${r}]  ${e.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class GS{constructor(t){this.name=t,this._logLevel=FW,this._logHandler=HW,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(t){if(!(t in Ke))throw new TypeError(`Invalid value "${t}" assigned to \`logLevel\``);this._logLevel=t}setLogLevel(t){this._logLevel=typeof t=="string"?UW[t]:t}get logHandler(){return this._logHandler}set logHandler(t){if(typeof t!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t}get userLogHandler(){return this._userLogHandler}set userLogHandler(t){this._userLogHandler=t}debug(...t){this._userLogHandler&&this._userLogHandler(this,Ke.DEBUG,...t),this._logHandler(this,Ke.DEBUG,...t)}log(...t){this._userLogHandler&&this._userLogHandler(this,Ke.VERBOSE,...t),this._logHandler(this,Ke.VERBOSE,...t)}info(...t){this._userLogHandler&&this._userLogHandler(this,Ke.INFO,...t),this._logHandler(this,Ke.INFO,...t)}warn(...t){this._userLogHandler&&this._userLogHandler(this,Ke.WARN,...t),this._logHandler(this,Ke.WARN,...t)}error(...t){this._userLogHandler&&this._userLogHandler(this,Ke.ERROR,...t),this._logHandler(this,Ke.ERROR,...t)}}const jW=(e,t)=>t.some(n=>e instanceof n);let Pv,Lv;function zW(){return Pv||(Pv=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function VW(){return Lv||(Lv=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const qS=new WeakMap,xf=new WeakMap,YS=new WeakMap,Ju=new WeakMap,bh=new WeakMap;function WW(e){const t=new Promise((n,r)=>{const s=()=>{e.removeEventListener("success",i),e.removeEventListener("error",o)},i=()=>{n(es(e.result)),s()},o=()=>{r(e.error),s()};e.addEventListener("success",i),e.addEventListener("error",o)});return t.then(n=>{n instanceof IDBCursor&&qS.set(n,e)}).catch(()=>{}),bh.set(t,e),t}function KW(e){if(xf.has(e))return;const t=new Promise((n,r)=>{const s=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",o),e.removeEventListener("abort",o)},i=()=>{n(),s()},o=()=>{r(e.error||new DOMException("AbortError","AbortError")),s()};e.addEventListener("complete",i),e.addEventListener("error",o),e.addEventListener("abort",o)});xf.set(e,t)}let Uf={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return xf.get(e);if(t==="objectStoreNames")return e.objectStoreNames||YS.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return es(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function GW(e){Uf=e(Uf)}function qW(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){const r=e.call(Xu(this),t,...n);return YS.set(r,t.sort?t.sort():[t]),es(r)}:VW().includes(e)?function(...t){return e.apply(Xu(this),t),es(qS.get(this))}:function(...t){return es(e.apply(Xu(this),t))}}function YW(e){return typeof e=="function"?qW(e):(e instanceof IDBTransaction&&KW(e),jW(e,zW())?new Proxy(e,Uf):e)}function es(e){if(e instanceof IDBRequest)return WW(e);if(Ju.has(e))return Ju.get(e);const t=YW(e);return t!==e&&(Ju.set(e,t),bh.set(t,e)),t}const Xu=e=>bh.get(e);function JW(e,t,{blocked:n,upgrade:r,blocking:s,terminated:i}={}){const o=indexedDB.open(e,t),a=es(o);return r&&o.addEventListener("upgradeneeded",l=>{r(es(o.result),l.oldVersion,l.newVersion,es(o.transaction),l)}),n&&o.addEventListener("blocked",l=>n(l.oldVersion,l.newVersion,l)),a.then(l=>{i&&l.addEventListener("close",()=>i()),s&&l.addEventListener("versionchange",c=>s(c.oldVersion,c.newVersion,c))}).catch(()=>{}),a}const XW=["get","getKey","getAll","getAllKeys","count"],ZW=["put","add","delete","clear"],Zu=new Map;function Dv(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(Zu.get(t))return Zu.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,s=ZW.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(s||XW.includes(n)))return;const i=async function(o,...a){const l=this.transaction(o,s?"readwrite":"readonly");let c=l.store;return r&&(c=c.index(a.shift())),(await Promise.all([c[n](...a),s&&l.done]))[0]};return Zu.set(t,i),i}GW(e=>({...e,get:(t,n,r)=>Dv(t,n)||e.get(t,n,r),has:(t,n)=>!!Dv(t,n)||e.has(t,n)}));/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class QW{constructor(t){this.container=t}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(eK(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function eK(e){const t=e.getComponent();return(t==null?void 0:t.type)==="VERSION"}const Ff="@firebase/app",Nv="0.10.7";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const Hs=new GS("@firebase/app"),tK="@firebase/app-compat",nK="@firebase/analytics-compat",rK="@firebase/analytics",sK="@firebase/app-check-compat",iK="@firebase/app-check",oK="@firebase/auth",aK="@firebase/auth-compat",lK="@firebase/database",cK="@firebase/database-compat",uK="@firebase/functions",dK="@firebase/functions-compat",fK="@firebase/installations",pK="@firebase/installations-compat",hK="@firebase/messaging",gK="@firebase/messaging-compat",mK="@firebase/performance",_K="@firebase/performance-compat",vK="@firebase/remote-config",yK="@firebase/remote-config-compat",wK="@firebase/storage",bK="@firebase/storage-compat",EK="@firebase/firestore",TK="@firebase/vertexai-preview",SK="@firebase/firestore-compat",kK="firebase",IK="10.12.4";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const Bf="[DEFAULT]",RK={[Ff]:"fire-core",[tK]:"fire-core-compat",[rK]:"fire-analytics",[nK]:"fire-analytics-compat",[iK]:"fire-app-check",[sK]:"fire-app-check-compat",[oK]:"fire-auth",[aK]:"fire-auth-compat",[lK]:"fire-rtdb",[cK]:"fire-rtdb-compat",[uK]:"fire-fn",[dK]:"fire-fn-compat",[fK]:"fire-iid",[pK]:"fire-iid-compat",[hK]:"fire-fcm",[gK]:"fire-fcm-compat",[mK]:"fire-perf",[_K]:"fire-perf-compat",[vK]:"fire-rc",[yK]:"fire-rc-compat",[wK]:"fire-gcs",[bK]:"fire-gcs-compat",[EK]:"fire-fst",[SK]:"fire-fst-compat",[TK]:"fire-vertex","fire-js":"fire-js",[kK]:"fire-js-all"};/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const ia=new Map,CK=new Map,Hf=new Map;function Mv(e,t){try{e.container.addComponent(t)}catch(n){Hs.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function oa(e){const t=e.name;if(Hf.has(t))return Hs.debug(`There were multiple attempts to register component ${t}.`),!1;Hf.set(t,e);for(const n of ia.values())Mv(n,e);for(const n of CK.values())Mv(n,e);return!0}function JS(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}function cr(e){return e.settings!==void 0}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const AK={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},ts=new Ia("app","Firebase",AK);/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class OK{constructor(t,n,r){this._isDeleted=!1,this._options=Object.assign({},t),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new Qi("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(t){this.checkDestroyed(),this._automaticDataCollectionEnabled=t}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(t){this._isDeleted=t}checkDestroyed(){if(this.isDeleted)throw ts.create("app-deleted",{appName:this._name})}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const Ca=IK;function bl(e,t={}){let n=e;typeof t!="object"&&(t={name:t});const r=Object.assign({name:Bf,automaticDataCollectionEnabled:!1},t),s=r.name;if(typeof s!="string"||!s)throw ts.create("bad-app-name",{appName:String(s)});if(n||(n=WS()),!n)throw ts.create("no-options");const i=ia.get(s);if(i){if(uc(n,i.options)&&uc(r,i.config))return i;throw ts.create("duplicate-app",{appName:s})}const o=new xW(s);for(const l of Hf.values())o.addComponent(l);const a=new OK(n,r,o);return ia.set(s,a),a}function El(e=Bf){const t=ia.get(e);if(!t&&e===Bf&&WS())return bl();if(!t)throw ts.create("no-app",{appName:e});return t}function Qu(){return Array.from(ia.values())}function Oi(e,t,n){var r;let s=(r=RK[e])!==null&&r!==void 0?r:e;n&&(s+=`-${n}`);const i=s.match(/\s|\//),o=t.match(/\s|\//);if(i||o){const a=[`Unable to register library "${s}" with version "${t}":`];i&&a.push(`library name "${s}" contains illegal characters (whitespace or "/")`),i&&o&&a.push("and"),o&&a.push(`version name "${t}" contains illegal characters (whitespace or "/")`),Hs.warn(a.join(" "));return}oa(new Qi(`${s}-version`,()=>({library:s,version:t}),"VERSION"))}/**
 * @license
 * Copyright 2021 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const PK="firebase-heartbeat-database",LK=1,aa="firebase-heartbeat-store";let ed=null;function XS(){return ed||(ed=JW(PK,LK,{upgrade:(e,t)=>{switch(t){case 0:try{e.createObjectStore(aa)}catch(n){console.warn(n)}}}}).catch(e=>{throw ts.create("idb-open",{originalErrorMessage:e.message})})),ed}async function DK(e){try{const n=(await XS()).transaction(aa),r=await n.objectStore(aa).get(ZS(e));return await n.done,r}catch(t){if(t instanceof hs)Hs.warn(t.message);else{const n=ts.create("idb-get",{originalErrorMessage:t==null?void 0:t.message});Hs.warn(n.message)}}}async function $v(e,t){try{const r=(await XS()).transaction(aa,"readwrite");await r.objectStore(aa).put(t,ZS(e)),await r.done}catch(n){if(n instanceof hs)Hs.warn(n.message);else{const r=ts.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});Hs.warn(r.message)}}}function ZS(e){return`${e.name}!${e.options.appId}`}/**
 * @license
 * Copyright 2021 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const NK=1024,MK=30*24*60*60*1e3;class $K{constructor(t){this.container=t,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new UK(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}async triggerHeartbeat(){var t,n;const s=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),i=xv();if(!(((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,((n=this._heartbeatsCache)===null||n===void 0?void 0:n.heartbeats)==null))&&!(this._heartbeatsCache.lastSentHeartbeatDate===i||this._heartbeatsCache.heartbeats.some(o=>o.date===i)))return this._heartbeatsCache.heartbeats.push({date:i,agent:s}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(o=>{const a=new Date(o.date).valueOf();return Date.now()-a<=MK}),this._storage.overwrite(this._heartbeatsCache)}async getHeartbeatsHeader(){var t;if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";const n=xv(),{heartbeatsToSend:r,unsentEntries:s}=xK(this._heartbeatsCache.heartbeats),i=zS(JSON.stringify({version:2,heartbeats:r}));return this._heartbeatsCache.lastSentHeartbeatDate=n,s.length>0?(this._heartbeatsCache.heartbeats=s,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),i}}function xv(){return new Date().toISOString().substring(0,10)}function xK(e,t=NK){const n=[];let r=e.slice();for(const s of e){const i=n.find(o=>o.agent===s.agent);if(i){if(i.dates.push(s.date),Uv(n)>t){i.dates.pop();break}}else if(n.push({agent:s.agent,dates:[s.date]}),Uv(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class UK{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return kW()?IW().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await DK(this.app);return n!=null&&n.heartbeats?n:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(t){var n;if(await this._canUseIndexedDBPromise){const s=await this.read();return $v(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:s.lastSentHeartbeatDate,heartbeats:t.heartbeats})}else return}async add(t){var n;if(await this._canUseIndexedDBPromise){const s=await this.read();return $v(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:s.lastSentHeartbeatDate,heartbeats:[...s.heartbeats,...t.heartbeats]})}else return}}function Uv(e){return zS(JSON.stringify({version:2,heartbeats:e})).length}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function FK(e){oa(new Qi("platform-logger",t=>new QW(t),"PRIVATE")),oa(new Qi("heartbeat",t=>new $K(t),"PRIVATE")),Oi(Ff,Nv,e),Oi(Ff,Nv,"esm2017"),Oi("fire-js","")}FK("");function Eh(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n}function QS(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}const BK=QS,ek=new Ia("auth","Firebase",QS());/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const dc=new GS("@firebase/auth");function HK(e,...t){dc.logLevel<=Ke.WARN&&dc.warn(`Auth (${Ca}): ${e}`,...t)}function Tl(e,...t){dc.logLevel<=Ke.ERROR&&dc.error(`Auth (${Ca}): ${e}`,...t)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function wr(e,...t){throw Th(e,...t)}function Gn(e,...t){return Th(e,...t)}function tk(e,t,n){const r=Object.assign(Object.assign({},BK()),{[t]:n});return new Ia("auth","Firebase",r).create(t,{appName:e.name})}function ns(e){return tk(e,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function Th(e,...t){if(typeof e!="string"){const n=t[0],r=[...t.slice(1)];return r[0]&&(r[0].appName=e.name),e._errorFactory.create(n,...r)}return ek.create(e,...t)}function we(e,t,...n){if(!e)throw Th(t,...n)}function ur(e){const t="INTERNAL ASSERTION FAILED: "+e;throw Tl(t),new Error(t)}function br(e,t){e||ur(t)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function jf(){var e;return typeof self<"u"&&((e=self.location)===null||e===void 0?void 0:e.href)||""}function jK(){return Fv()==="http:"||Fv()==="https:"}function Fv(){var e;return typeof self<"u"&&((e=self.location)===null||e===void 0?void 0:e.protocol)||null}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function zK(){return typeof navigator<"u"&&navigator&&"onLine"in navigator&&typeof navigator.onLine=="boolean"&&(jK()||EW()||"connection"in navigator)?navigator.onLine:!0}function VK(){if(typeof navigator>"u")return null;const e=navigator;return e.languages&&e.languages[0]||e.language||null}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class Aa{constructor(t,n){this.shortDelay=t,this.longDelay=n,br(n>t,"Short delay should be less than long delay!"),this.isMobile=bW()||TW()}get(){return zK()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Sh(e,t){br(e.emulator,"Emulator should always be set here");const{url:n}=e.emulator;return t?`${n}${t.startsWith("/")?t.slice(1):t}`:n}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class nk{static initialize(t,n,r){this.fetchImpl=t,n&&(this.headersImpl=n),r&&(this.responseImpl=r)}static fetch(){if(this.fetchImpl)return this.fetchImpl;if(typeof self<"u"&&"fetch"in self)return self.fetch;if(typeof globalThis<"u"&&globalThis.fetch)return globalThis.fetch;if(typeof fetch<"u")return fetch;ur("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){if(this.headersImpl)return this.headersImpl;if(typeof self<"u"&&"Headers"in self)return self.Headers;if(typeof globalThis<"u"&&globalThis.Headers)return globalThis.Headers;if(typeof Headers<"u")return Headers;ur("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){if(this.responseImpl)return this.responseImpl;if(typeof self<"u"&&"Response"in self)return self.Response;if(typeof globalThis<"u"&&globalThis.Response)return globalThis.Response;if(typeof Response<"u")return Response;ur("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const WK={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"};/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const KK=new Aa(3e4,6e4);function Qc(e,t){return e.tenantId&&!t.tenantId?Object.assign(Object.assign({},t),{tenantId:e.tenantId}):t}async function po(e,t,n,r,s={}){return rk(e,s,async()=>{let i={},o={};r&&(t==="GET"?o=r:i={body:JSON.stringify(r)});const a=Ra(Object.assign({key:e.config.apiKey},o)).slice(1),l=await e._getAdditionalHeaders();return l["Content-Type"]="application/json",e.languageCode&&(l["X-Firebase-Locale"]=e.languageCode),nk.fetch()(ik(e,e.config.apiHost,n,a),Object.assign({method:t,headers:l,referrerPolicy:"no-referrer"},i))})}async function rk(e,t,n){e._canInitEmulator=!1;const r=Object.assign(Object.assign({},WK),t);try{const s=new GK(e),i=await Promise.race([n(),s.promise]);s.clearNetworkTimeout();const o=await i.json();if("needConfirmation"in o)throw ul(e,"account-exists-with-different-credential",o);if(i.ok&&!("errorMessage"in o))return o;{const a=i.ok?o.errorMessage:o.error.message,[l,c]=a.split(" : ");if(l==="FEDERATED_USER_ID_ALREADY_LINKED")throw ul(e,"credential-already-in-use",o);if(l==="EMAIL_EXISTS")throw ul(e,"email-already-in-use",o);if(l==="USER_DISABLED")throw ul(e,"user-disabled",o);const u=r[l]||l.toLowerCase().replace(/[_\s]+/g,"-");if(c)throw tk(e,u,c);wr(e,u)}}catch(s){if(s instanceof hs)throw s;wr(e,"network-request-failed",{message:String(s)})}}async function sk(e,t,n,r,s={}){const i=await po(e,t,n,r,s);return"mfaPendingCredential"in i&&wr(e,"multi-factor-auth-required",{_serverResponse:i}),i}function ik(e,t,n,r){const s=`${t}${n}?${r}`;return e.config.emulator?Sh(e.config,s):`${e.config.apiScheme}://${s}`}class GK{constructor(t){this.auth=t,this.timer=null,this.promise=new Promise((n,r)=>{this.timer=setTimeout(()=>r(Gn(this.auth,"network-request-failed")),KK.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function ul(e,t,n){const r={appName:e.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);const s=Gn(e,t,r);return s.customData._tokenResponse=n,s}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function qK(e,t){return po(e,"POST","/v1/accounts:delete",t)}async function ok(e,t){return po(e,"POST","/v1/accounts:lookup",t)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function jo(e){if(e)try{const t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch{}}async function YK(e,t=!1){const n=fo(e),r=await n.getIdToken(t),s=kh(r);we(s&&s.exp&&s.auth_time&&s.iat,n.auth,"internal-error");const i=typeof s.firebase=="object"?s.firebase:void 0,o=i==null?void 0:i.sign_in_provider;return{claims:s,token:r,authTime:jo(td(s.auth_time)),issuedAtTime:jo(td(s.iat)),expirationTime:jo(td(s.exp)),signInProvider:o||null,signInSecondFactor:(i==null?void 0:i.sign_in_second_factor)||null}}function td(e){return Number(e)*1e3}function kh(e){const[t,n,r]=e.split(".");if(t===void 0||n===void 0||r===void 0)return Tl("JWT malformed, contained fewer than 3 sections"),null;try{const s=VS(n);return s?JSON.parse(s):(Tl("Failed to decode base64 JWT payload"),null)}catch(s){return Tl("Caught error parsing JWT payload as JSON",s==null?void 0:s.toString()),null}}function Bv(e){const t=kh(e);return we(t,"internal-error"),we(typeof t.exp<"u","internal-error"),we(typeof t.iat<"u","internal-error"),Number(t.exp)-Number(t.iat)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function la(e,t,n=!1){if(n)return t;try{return await t}catch(r){throw r instanceof hs&&JK(r)&&e.auth.currentUser===e&&await e.auth.signOut(),r}}function JK({code:e}){return e==="auth/user-disabled"||e==="auth/user-token-expired"}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class XK{constructor(t){this.user=t,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,this.timerId!==null&&clearTimeout(this.timerId))}getInterval(t){var n;if(t){const r=this.errorBackoff;return this.errorBackoff=Math.min(this.errorBackoff*2,96e4),r}else{this.errorBackoff=3e4;const s=((n=this.user.stsTokenManager.expirationTime)!==null&&n!==void 0?n:0)-Date.now()-3e5;return Math.max(0,s)}}schedule(t=!1){if(!this.isRunning)return;const n=this.getInterval(t);this.timerId=setTimeout(async()=>{await this.iteration()},n)}async iteration(){try{await this.user.getIdToken(!0)}catch(t){(t==null?void 0:t.code)==="auth/network-request-failed"&&this.schedule(!0);return}this.schedule()}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class zf{constructor(t,n){this.createdAt=t,this.lastLoginAt=n,this._initializeTime()}_initializeTime(){this.lastSignInTime=jo(this.lastLoginAt),this.creationTime=jo(this.createdAt)}_copy(t){this.createdAt=t.createdAt,this.lastLoginAt=t.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function fc(e){var t;const n=e.auth,r=await e.getIdToken(),s=await la(e,ok(n,{idToken:r}));we(s==null?void 0:s.users.length,n,"internal-error");const i=s.users[0];e._notifyReloadListener(i);const o=!((t=i.providerUserInfo)===null||t===void 0)&&t.length?ak(i.providerUserInfo):[],a=QK(e.providerData,o),l=e.isAnonymous,c=!(e.email&&i.passwordHash)&&!(a!=null&&a.length),u=l?c:!1,d={uid:i.localId,displayName:i.displayName||null,photoURL:i.photoUrl||null,email:i.email||null,emailVerified:i.emailVerified||!1,phoneNumber:i.phoneNumber||null,tenantId:i.tenantId||null,providerData:a,metadata:new zf(i.createdAt,i.lastLoginAt),isAnonymous:u};Object.assign(e,d)}async function ZK(e){const t=fo(e);await fc(t),await t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)}function QK(e,t){return[...e.filter(r=>!t.some(s=>s.providerId===r.providerId)),...t]}function ak(e){return e.map(t=>{var{providerId:n}=t,r=Eh(t,["providerId"]);return{providerId:n,uid:r.rawId||"",displayName:r.displayName||null,email:r.email||null,phoneNumber:r.phoneNumber||null,photoURL:r.photoUrl||null}})}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function eG(e,t){const n=await rk(e,{},async()=>{const r=Ra({grant_type:"refresh_token",refresh_token:t}).slice(1),{tokenApiHost:s,apiKey:i}=e.config,o=ik(e,s,"/v1/token",`key=${i}`),a=await e._getAdditionalHeaders();return a["Content-Type"]="application/x-www-form-urlencoded",nk.fetch()(o,{method:"POST",headers:a,body:r})});return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}async function tG(e,t){return po(e,"POST","/v2/accounts:revokeToken",Qc(e,t))}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class Pi{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(t){we(t.idToken,"internal-error"),we(typeof t.idToken<"u","internal-error"),we(typeof t.refreshToken<"u","internal-error");const n="expiresIn"in t&&typeof t.expiresIn<"u"?Number(t.expiresIn):Bv(t.idToken);this.updateTokensAndExpiration(t.idToken,t.refreshToken,n)}updateFromIdToken(t){we(t.length!==0,"internal-error");const n=Bv(t);this.updateTokensAndExpiration(t,null,n)}async getToken(t,n=!1){return!n&&this.accessToken&&!this.isExpired?this.accessToken:(we(this.refreshToken,t,"user-token-expired"),this.refreshToken?(await this.refresh(t,this.refreshToken),this.accessToken):null)}clearRefreshToken(){this.refreshToken=null}async refresh(t,n){const{accessToken:r,refreshToken:s,expiresIn:i}=await eG(t,n);this.updateTokensAndExpiration(r,s,Number(i))}updateTokensAndExpiration(t,n,r){this.refreshToken=n||null,this.accessToken=t||null,this.expirationTime=Date.now()+r*1e3}static fromJSON(t,n){const{refreshToken:r,accessToken:s,expirationTime:i}=n,o=new Pi;return r&&(we(typeof r=="string","internal-error",{appName:t}),o.refreshToken=r),s&&(we(typeof s=="string","internal-error",{appName:t}),o.accessToken=s),i&&(we(typeof i=="number","internal-error",{appName:t}),o.expirationTime=i),o}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(t){this.accessToken=t.accessToken,this.refreshToken=t.refreshToken,this.expirationTime=t.expirationTime}_clone(){return Object.assign(new Pi,this.toJSON())}_performRefresh(){return ur("not implemented")}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Pr(e,t){we(typeof e=="string"||typeof e>"u","internal-error",{appName:t})}class dr{constructor(t){var{uid:n,auth:r,stsTokenManager:s}=t,i=Eh(t,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new XK(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=n,this.auth=r,this.stsTokenManager=s,this.accessToken=s.accessToken,this.displayName=i.displayName||null,this.email=i.email||null,this.emailVerified=i.emailVerified||!1,this.phoneNumber=i.phoneNumber||null,this.photoURL=i.photoURL||null,this.isAnonymous=i.isAnonymous||!1,this.tenantId=i.tenantId||null,this.providerData=i.providerData?[...i.providerData]:[],this.metadata=new zf(i.createdAt||void 0,i.lastLoginAt||void 0)}async getIdToken(t){const n=await la(this,this.stsTokenManager.getToken(this.auth,t));return we(n,this.auth,"internal-error"),this.accessToken!==n&&(this.accessToken=n,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),n}getIdTokenResult(t){return YK(this,t)}reload(){return ZK(this)}_assign(t){this!==t&&(we(this.uid===t.uid,this.auth,"internal-error"),this.displayName=t.displayName,this.photoURL=t.photoURL,this.email=t.email,this.emailVerified=t.emailVerified,this.phoneNumber=t.phoneNumber,this.isAnonymous=t.isAnonymous,this.tenantId=t.tenantId,this.providerData=t.providerData.map(n=>Object.assign({},n)),this.metadata._copy(t.metadata),this.stsTokenManager._assign(t.stsTokenManager))}_clone(t){const n=new dr(Object.assign(Object.assign({},this),{auth:t,stsTokenManager:this.stsTokenManager._clone()}));return n.metadata._copy(this.metadata),n}_onReload(t){we(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=t,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(t){this.reloadListener?this.reloadListener(t):this.reloadUserInfo=t}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(t,n=!1){let r=!1;t.idToken&&t.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(t),r=!0),n&&await fc(this),await this.auth._persistUserIfCurrent(this),r&&this.auth._notifyListenersIfCurrent(this)}async delete(){if(cr(this.auth.app))return Promise.reject(ns(this.auth));const t=await this.getIdToken();return await la(this,qK(this.auth,{idToken:t})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(t=>Object.assign({},t)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(t,n){var r,s,i,o,a,l,c,u;const d=(r=n.displayName)!==null&&r!==void 0?r:void 0,f=(s=n.email)!==null&&s!==void 0?s:void 0,p=(i=n.phoneNumber)!==null&&i!==void 0?i:void 0,g=(o=n.photoURL)!==null&&o!==void 0?o:void 0,v=(a=n.tenantId)!==null&&a!==void 0?a:void 0,w=(l=n._redirectEventId)!==null&&l!==void 0?l:void 0,y=(c=n.createdAt)!==null&&c!==void 0?c:void 0,m=(u=n.lastLoginAt)!==null&&u!==void 0?u:void 0,{uid:h,emailVerified:_,isAnonymous:b,providerData:E,stsTokenManager:R}=n;we(h&&R,t,"internal-error");const S=Pi.fromJSON(this.name,R);we(typeof h=="string",t,"internal-error"),Pr(d,t.name),Pr(f,t.name),we(typeof _=="boolean",t,"internal-error"),we(typeof b=="boolean",t,"internal-error"),Pr(p,t.name),Pr(g,t.name),Pr(v,t.name),Pr(w,t.name),Pr(y,t.name),Pr(m,t.name);const A=new dr({uid:h,auth:t,email:f,emailVerified:_,displayName:d,isAnonymous:b,photoURL:g,phoneNumber:p,tenantId:v,stsTokenManager:S,createdAt:y,lastLoginAt:m});return E&&Array.isArray(E)&&(A.providerData=E.map(D=>Object.assign({},D))),w&&(A._redirectEventId=w),A}static async _fromIdTokenResponse(t,n,r=!1){const s=new Pi;s.updateFromServerResponse(n);const i=new dr({uid:n.localId,auth:t,stsTokenManager:s,isAnonymous:r});return await fc(i),i}static async _fromGetAccountInfoResponse(t,n,r){const s=n.users[0];we(s.localId!==void 0,"internal-error");const i=s.providerUserInfo!==void 0?ak(s.providerUserInfo):[],o=!(s.email&&s.passwordHash)&&!(i!=null&&i.length),a=new Pi;a.updateFromIdToken(r);const l=new dr({uid:s.localId,auth:t,stsTokenManager:a,isAnonymous:o}),c={uid:s.localId,displayName:s.displayName||null,photoURL:s.photoUrl||null,email:s.email||null,emailVerified:s.emailVerified||!1,phoneNumber:s.phoneNumber||null,tenantId:s.tenantId||null,providerData:i,metadata:new zf(s.createdAt,s.lastLoginAt),isAnonymous:!(s.email&&s.passwordHash)&&!(i!=null&&i.length)};return Object.assign(l,c),l}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const Hv=new Map;function fr(e){br(e instanceof Function,"Expected a class definition");let t=Hv.get(e);return t?(br(t instanceof e,"Instance stored in cache mismatched with class"),t):(t=new e,Hv.set(e,t),t)}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class lk{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(t,n){this.storage[t]=n}async _get(t){const n=this.storage[t];return n===void 0?null:n}async _remove(t){delete this.storage[t]}_addListener(t,n){}_removeListener(t,n){}}lk.type="NONE";const jv=lk;/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Sl(e,t,n){return`firebase:${e}:${t}:${n}`}class Li{constructor(t,n,r){this.persistence=t,this.auth=n,this.userKey=r;const{config:s,name:i}=this.auth;this.fullUserKey=Sl(this.userKey,s.apiKey,i),this.fullPersistenceKey=Sl("persistence",s.apiKey,i),this.boundEventHandler=n._onStorageEvent.bind(n),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(t){return this.persistence._set(this.fullUserKey,t.toJSON())}async getCurrentUser(){const t=await this.persistence._get(this.fullUserKey);return t?dr._fromJSON(this.auth,t):null}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(t){if(this.persistence===t)return;const n=await this.getCurrentUser();if(await this.removeCurrentUser(),this.persistence=t,n)return this.setCurrentUser(n)}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(t,n,r="authUser"){if(!n.length)return new Li(fr(jv),t,r);const s=(await Promise.all(n.map(async c=>{if(await c._isAvailable())return c}))).filter(c=>c);let i=s[0]||fr(jv);const o=Sl(r,t.config.apiKey,t.name);let a=null;for(const c of n)try{const u=await c._get(o);if(u){const d=dr._fromJSON(t,u);c!==i&&(a=d),i=c;break}}catch{}const l=s.filter(c=>c._shouldAllowMigration);return!i._shouldAllowMigration||!l.length?new Li(i,t,r):(i=l[0],a&&await i._set(o,a.toJSON()),await Promise.all(n.map(async c=>{if(c!==i)try{await c._remove(o)}catch{}})),new Li(i,t,r))}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function zv(e){const t=e.toLowerCase();if(t.includes("opera/")||t.includes("opr/")||t.includes("opios/"))return"Opera";if(dk(t))return"IEMobile";if(t.includes("msie")||t.includes("trident/"))return"IE";if(t.includes("edge/"))return"Edge";if(ck(t))return"Firefox";if(t.includes("silk/"))return"Silk";if(pk(t))return"Blackberry";if(hk(t))return"Webos";if(Ih(t))return"Safari";if((t.includes("chrome/")||uk(t))&&!t.includes("edge/"))return"Chrome";if(fk(t))return"Android";{const n=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,r=e.match(n);if((r==null?void 0:r.length)===2)return r[1]}return"Other"}function ck(e=Ot()){return/firefox\//i.test(e)}function Ih(e=Ot()){const t=e.toLowerCase();return t.includes("safari/")&&!t.includes("chrome/")&&!t.includes("crios/")&&!t.includes("android")}function uk(e=Ot()){return/crios\//i.test(e)}function dk(e=Ot()){return/iemobile/i.test(e)}function fk(e=Ot()){return/android/i.test(e)}function pk(e=Ot()){return/blackberry/i.test(e)}function hk(e=Ot()){return/webos/i.test(e)}function eu(e=Ot()){return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function nG(e=Ot()){var t;return eu(e)&&!!(!((t=window.navigator)===null||t===void 0)&&t.standalone)}function rG(){return SW()&&document.documentMode===10}function gk(e=Ot()){return eu(e)||fk(e)||hk(e)||pk(e)||/windows phone/i.test(e)||dk(e)}function sG(){try{return!!(window&&window!==window.top)}catch{return!1}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function mk(e,t=[]){let n;switch(e){case"Browser":n=zv(Ot());break;case"Worker":n=`${zv(Ot())}-${e}`;break;default:n=e}const r=t.length?t.join(","):"FirebaseCore-web";return`${n}/JsCore/${Ca}/${r}`}/**
 * @license
 * Copyright 2022 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class iG{constructor(t){this.auth=t,this.queue=[]}pushCallback(t,n){const r=i=>new Promise((o,a)=>{try{const l=t(i);o(l)}catch(l){a(l)}});r.onAbort=n,this.queue.push(r);const s=this.queue.length-1;return()=>{this.queue[s]=()=>Promise.resolve()}}async runMiddleware(t){if(this.auth.currentUser===t)return;const n=[];try{for(const r of this.queue)await r(t),r.onAbort&&n.push(r.onAbort)}catch(r){n.reverse();for(const s of n)try{s()}catch{}throw this.auth._errorFactory.create("login-blocked",{originalMessage:r==null?void 0:r.message})}}}/**
 * @license
 * Copyright 2023 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function oG(e,t={}){return po(e,"GET","/v2/passwordPolicy",Qc(e,t))}/**
 * @license
 * Copyright 2023 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const aG=6;class lG{constructor(t){var n,r,s,i;const o=t.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=(n=o.minPasswordLength)!==null&&n!==void 0?n:aG,o.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=o.maxPasswordLength),o.containsLowercaseCharacter!==void 0&&(this.customStrengthOptions.containsLowercaseLetter=o.containsLowercaseCharacter),o.containsUppercaseCharacter!==void 0&&(this.customStrengthOptions.containsUppercaseLetter=o.containsUppercaseCharacter),o.containsNumericCharacter!==void 0&&(this.customStrengthOptions.containsNumericCharacter=o.containsNumericCharacter),o.containsNonAlphanumericCharacter!==void 0&&(this.customStrengthOptions.containsNonAlphanumericCharacter=o.containsNonAlphanumericCharacter),this.enforcementState=t.enforcementState,this.enforcementState==="ENFORCEMENT_STATE_UNSPECIFIED"&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=(s=(r=t.allowedNonAlphanumericCharacters)===null||r===void 0?void 0:r.join(""))!==null&&s!==void 0?s:"",this.forceUpgradeOnSignin=(i=t.forceUpgradeOnSignin)!==null&&i!==void 0?i:!1,this.schemaVersion=t.schemaVersion}validatePassword(t){var n,r,s,i,o,a;const l={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(t,l),this.validatePasswordCharacterOptions(t,l),l.isValid&&(l.isValid=(n=l.meetsMinPasswordLength)!==null&&n!==void 0?n:!0),l.isValid&&(l.isValid=(r=l.meetsMaxPasswordLength)!==null&&r!==void 0?r:!0),l.isValid&&(l.isValid=(s=l.containsLowercaseLetter)!==null&&s!==void 0?s:!0),l.isValid&&(l.isValid=(i=l.containsUppercaseLetter)!==null&&i!==void 0?i:!0),l.isValid&&(l.isValid=(o=l.containsNumericCharacter)!==null&&o!==void 0?o:!0),l.isValid&&(l.isValid=(a=l.containsNonAlphanumericCharacter)!==null&&a!==void 0?a:!0),l}validatePasswordLengthOptions(t,n){const r=this.customStrengthOptions.minPasswordLength,s=this.customStrengthOptions.maxPasswordLength;r&&(n.meetsMinPasswordLength=t.length>=r),s&&(n.meetsMaxPasswordLength=t.length<=s)}validatePasswordCharacterOptions(t,n){this.updatePasswordCharacterOptionsStatuses(n,!1,!1,!1,!1);let r;for(let s=0;s<t.length;s++)r=t.charAt(s),this.updatePasswordCharacterOptionsStatuses(n,r>="a"&&r<="z",r>="A"&&r<="Z",r>="0"&&r<="9",this.allowedNonAlphanumericCharacters.includes(r))}updatePasswordCharacterOptionsStatuses(t,n,r,s,i){this.customStrengthOptions.containsLowercaseLetter&&(t.containsLowercaseLetter||(t.containsLowercaseLetter=n)),this.customStrengthOptions.containsUppercaseLetter&&(t.containsUppercaseLetter||(t.containsUppercaseLetter=r)),this.customStrengthOptions.containsNumericCharacter&&(t.containsNumericCharacter||(t.containsNumericCharacter=s)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(t.containsNonAlphanumericCharacter||(t.containsNonAlphanumericCharacter=i))}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class cG{constructor(t,n,r,s){this.app=t,this.heartbeatServiceProvider=n,this.appCheckServiceProvider=r,this.config=s,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new Vv(this),this.idTokenSubscription=new Vv(this),this.beforeStateQueue=new iG(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=ek,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=t.name,this.clientVersion=s.sdkClientVersion}_initializeWithPersistence(t,n){return n&&(this._popupRedirectResolver=fr(n)),this._initializationPromise=this.queue(async()=>{var r,s;if(!this._deleted&&(this.persistenceManager=await Li.create(this,t),!this._deleted)){if(!((r=this._popupRedirectResolver)===null||r===void 0)&&r._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch{}await this.initializeCurrentUser(n),this.lastNotifiedUid=((s=this.currentUser)===null||s===void 0?void 0:s.uid)||null,!this._deleted&&(this._isInitialized=!0)}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const t=await this.assertedPersistence.getCurrentUser();if(!(!this.currentUser&&!t)){if(this.currentUser&&t&&this.currentUser.uid===t.uid){this._currentUser._assign(t),await this.currentUser.getIdToken();return}await this._updateCurrentUser(t,!0)}}async initializeCurrentUserFromIdToken(t){try{const n=await ok(this,{idToken:t}),r=await dr._fromGetAccountInfoResponse(this,n,t);await this.directlySetCurrentUser(r)}catch(n){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",n),await this.directlySetCurrentUser(null)}}async initializeCurrentUser(t){var n;if(cr(this.app)){const o=this.app.settings.authIdToken;return o?new Promise(a=>{setTimeout(()=>this.initializeCurrentUserFromIdToken(o).then(a,a))}):this.directlySetCurrentUser(null)}const r=await this.assertedPersistence.getCurrentUser();let s=r,i=!1;if(t&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const o=(n=this.redirectUser)===null||n===void 0?void 0:n._redirectEventId,a=s==null?void 0:s._redirectEventId,l=await this.tryRedirectSignIn(t);(!o||o===a)&&(l!=null&&l.user)&&(s=l.user,i=!0)}if(!s)return this.directlySetCurrentUser(null);if(!s._redirectEventId){if(i)try{await this.beforeStateQueue.runMiddleware(s)}catch(o){s=r,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(o))}return s?this.reloadAndSetCurrentUserOrClear(s):this.directlySetCurrentUser(null)}return we(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===s._redirectEventId?this.directlySetCurrentUser(s):this.reloadAndSetCurrentUserOrClear(s)}async tryRedirectSignIn(t){let n=null;try{n=await this._popupRedirectResolver._completeRedirectFn(this,t,!0)}catch{await this._setRedirectUser(null)}return n}async reloadAndSetCurrentUserOrClear(t){try{await fc(t)}catch(n){if((n==null?void 0:n.code)!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(t)}useDeviceLanguage(){this.languageCode=VK()}async _delete(){this._deleted=!0}async updateCurrentUser(t){if(cr(this.app))return Promise.reject(ns(this));const n=t?fo(t):null;return n&&we(n.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(n&&n._clone(this))}async _updateCurrentUser(t,n=!1){if(!this._deleted)return t&&we(this.tenantId===t.tenantId,this,"tenant-id-mismatch"),n||await this.beforeStateQueue.runMiddleware(t),this.queue(async()=>{await this.directlySetCurrentUser(t),this.notifyAuthListeners()})}async signOut(){return cr(this.app)?Promise.reject(ns(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(t){return cr(this.app)?Promise.reject(ns(this)):this.queue(async()=>{await this.assertedPersistence.setPersistence(fr(t))})}_getRecaptchaConfig(){return this.tenantId==null?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(t){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();const n=this._getPasswordPolicyInternal();return n.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):n.validatePassword(t)}_getPasswordPolicyInternal(){return this.tenantId===null?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){const t=await oG(this),n=new lG(t);this.tenantId===null?this._projectPasswordPolicy=n:this._tenantPasswordPolicies[this.tenantId]=n}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(t){this._errorFactory=new Ia("auth","Firebase",t())}onAuthStateChanged(t,n,r){return this.registerStateListener(this.authStateSubscription,t,n,r)}beforeAuthStateChanged(t,n){return this.beforeStateQueue.pushCallback(t,n)}onIdTokenChanged(t,n,r){return this.registerStateListener(this.idTokenSubscription,t,n,r)}authStateReady(){return new Promise((t,n)=>{if(this.currentUser)t();else{const r=this.onAuthStateChanged(()=>{r(),t()},n)}})}async revokeAccessToken(t){if(this.currentUser){const n=await this.currentUser.getIdToken(),r={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:t,idToken:n};this.tenantId!=null&&(r.tenantId=this.tenantId),await tG(this,r)}}toJSON(){var t;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:(t=this._currentUser)===null||t===void 0?void 0:t.toJSON()}}async _setRedirectUser(t,n){const r=await this.getOrInitRedirectPersistenceManager(n);return t===null?r.removeCurrentUser():r.setCurrentUser(t)}async getOrInitRedirectPersistenceManager(t){if(!this.redirectPersistenceManager){const n=t&&fr(t)||this._popupRedirectResolver;we(n,this,"argument-error"),this.redirectPersistenceManager=await Li.create(this,[fr(n._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(t){var n,r;return this._isInitialized&&await this.queue(async()=>{}),((n=this._currentUser)===null||n===void 0?void 0:n._redirectEventId)===t?this._currentUser:((r=this.redirectUser)===null||r===void 0?void 0:r._redirectEventId)===t?this.redirectUser:null}async _persistUserIfCurrent(t){if(t===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(t))}_notifyListenersIfCurrent(t){t===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var t,n;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const r=(n=(t=this.currentUser)===null||t===void 0?void 0:t.uid)!==null&&n!==void 0?n:null;this.lastNotifiedUid!==r&&(this.lastNotifiedUid=r,this.authStateSubscription.next(this.currentUser))}registerStateListener(t,n,r,s){if(this._deleted)return()=>{};const i=typeof n=="function"?n:n.next.bind(n);let o=!1;const a=this._isInitialized?Promise.resolve():this._initializationPromise;if(we(a,this,"internal-error"),a.then(()=>{o||i(this.currentUser)}),typeof n=="function"){const l=t.addObserver(n,r,s);return()=>{o=!0,l()}}else{const l=t.addObserver(n);return()=>{o=!0,l()}}}async directlySetCurrentUser(t){this.currentUser&&this.currentUser!==t&&this._currentUser._stopProactiveRefresh(),t&&this.isProactiveRefreshEnabled&&t._startProactiveRefresh(),this.currentUser=t,t?await this.assertedPersistence.setCurrentUser(t):await this.assertedPersistence.removeCurrentUser()}queue(t){return this.operations=this.operations.then(t,t),this.operations}get assertedPersistence(){return we(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(t){!t||this.frameworks.includes(t)||(this.frameworks.push(t),this.frameworks.sort(),this.clientVersion=mk(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var t;const n={"X-Client-Version":this.clientVersion};this.app.options.appId&&(n["X-Firebase-gmpid"]=this.app.options.appId);const r=await((t=this.heartbeatServiceProvider.getImmediate({optional:!0}))===null||t===void 0?void 0:t.getHeartbeatsHeader());r&&(n["X-Firebase-Client"]=r);const s=await this._getAppCheckToken();return s&&(n["X-Firebase-AppCheck"]=s),n}async _getAppCheckToken(){var t;const n=await((t=this.appCheckServiceProvider.getImmediate({optional:!0}))===null||t===void 0?void 0:t.getToken());return n!=null&&n.error&&HK(`Error while retrieving App Check token: ${n.error}`),n==null?void 0:n.token}}function tu(e){return fo(e)}class Vv{constructor(t){this.auth=t,this.observer=null,this.addObserver=PW(n=>this.observer=n)}get next(){return we(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let Rh={async loadJS(){throw new Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function uG(e){Rh=e}function dG(e){return Rh.loadJS(e)}function fG(){return Rh.gapiScript}function pG(e){return`__${e}${Math.floor(Math.random()*1e6)}`}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function hG(e,t){const n=JS(e,"auth");if(n.isInitialized()){const s=n.getImmediate(),i=n.getOptions();if(uc(i,t??{}))return s;wr(s,"already-initialized")}return n.initialize({options:t})}function gG(e,t){const n=(t==null?void 0:t.persistence)||[],r=(Array.isArray(n)?n:[n]).map(fr);t!=null&&t.errorMap&&e._updateErrorMap(t.errorMap),e._initializeWithPersistence(r,t==null?void 0:t.popupRedirectResolver)}function mG(e,t,n){const r=tu(e);we(r._canInitEmulator,r,"emulator-config-failed"),we(/^https?:\/\//.test(t),r,"invalid-emulator-scheme");const s=!1,i=_k(t),{host:o,port:a}=_G(t),l=a===null?"":`:${a}`;r.config.emulator={url:`${i}//${o}${l}/`},r.settings.appVerificationDisabledForTesting=!0,r.emulatorConfig=Object.freeze({host:o,port:a,protocol:i.replace(":",""),options:Object.freeze({disableWarnings:s})}),vG()}function _k(e){const t=e.indexOf(":");return t<0?"":e.substr(0,t+1)}function _G(e){const t=_k(e),n=/(\/\/)?([^?#/]+)/.exec(e.substr(t.length));if(!n)return{host:"",port:null};const r=n[2].split("@").pop()||"",s=/^(\[[^\]]+\])(:|$)/.exec(r);if(s){const i=s[1];return{host:i,port:Wv(r.substr(i.length+1))}}else{const[i,o]=r.split(":");return{host:i,port:Wv(o)}}}function Wv(e){if(!e)return null;const t=Number(e);return isNaN(t)?null:t}function vG(){function e(){const t=document.createElement("p"),n=t.style;t.innerText="Running in emulator mode. Do not use with production credentials.",n.position="fixed",n.width="100%",n.backgroundColor="#ffffff",n.border=".1em solid #000000",n.color="#b50000",n.bottom="0px",n.left="0px",n.margin="0px",n.zIndex="10000",n.textAlign="center",t.classList.add("firebase-emulator-warning"),document.body.appendChild(t)}typeof console<"u"&&typeof console.info=="function"&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only.  Do not use with production credentials."),typeof window<"u"&&typeof document<"u"&&(document.readyState==="loading"?window.addEventListener("DOMContentLoaded",e):e())}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class vk{constructor(t,n){this.providerId=t,this.signInMethod=n}toJSON(){return ur("not implemented")}_getIdTokenResponse(t){return ur("not implemented")}_linkToIdToken(t,n){return ur("not implemented")}_getReauthenticationResolver(t){return ur("not implemented")}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function Di(e,t){return sk(e,"POST","/v1/accounts:signInWithIdp",Qc(e,t))}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const yG="http://localhost";class js extends vk{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(t){const n=new js(t.providerId,t.signInMethod);return t.idToken||t.accessToken?(t.idToken&&(n.idToken=t.idToken),t.accessToken&&(n.accessToken=t.accessToken),t.nonce&&!t.pendingToken&&(n.nonce=t.nonce),t.pendingToken&&(n.pendingToken=t.pendingToken)):t.oauthToken&&t.oauthTokenSecret?(n.accessToken=t.oauthToken,n.secret=t.oauthTokenSecret):wr("argument-error"),n}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(t){const n=typeof t=="string"?JSON.parse(t):t,{providerId:r,signInMethod:s}=n,i=Eh(n,["providerId","signInMethod"]);if(!r||!s)return null;const o=new js(r,s);return o.idToken=i.idToken||void 0,o.accessToken=i.accessToken||void 0,o.secret=i.secret,o.nonce=i.nonce,o.pendingToken=i.pendingToken||null,o}_getIdTokenResponse(t){const n=this.buildRequest();return Di(t,n)}_linkToIdToken(t,n){const r=this.buildRequest();return r.idToken=n,Di(t,r)}_getReauthenticationResolver(t){const n=this.buildRequest();return n.autoCreate=!1,Di(t,n)}buildRequest(){const t={requestUri:yG,returnSecureToken:!0};if(this.pendingToken)t.pendingToken=this.pendingToken;else{const n={};this.idToken&&(n.id_token=this.idToken),this.accessToken&&(n.access_token=this.accessToken),this.secret&&(n.oauth_token_secret=this.secret),n.providerId=this.providerId,this.nonce&&!this.pendingToken&&(n.nonce=this.nonce),t.postBody=Ra(n)}return t}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class yk{constructor(t){this.providerId=t,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(t){this.defaultLanguageCode=t}setCustomParameters(t){return this.customParameters=t,this}getCustomParameters(){return this.customParameters}}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class Oa extends yk{constructor(){super(...arguments),this.scopes=[]}addScope(t){return this.scopes.includes(t)||this.scopes.push(t),this}getScopes(){return[...this.scopes]}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class zr extends Oa{constructor(){super("facebook.com")}static credential(t){return js._fromParams({providerId:zr.PROVIDER_ID,signInMethod:zr.FACEBOOK_SIGN_IN_METHOD,accessToken:t})}static credentialFromResult(t){return zr.credentialFromTaggedObject(t)}static credentialFromError(t){return zr.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t||!("oauthAccessToken"in t)||!t.oauthAccessToken)return null;try{return zr.credential(t.oauthAccessToken)}catch{return null}}}zr.FACEBOOK_SIGN_IN_METHOD="facebook.com";zr.PROVIDER_ID="facebook.com";/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class Vr extends Oa{constructor(){super("google.com"),this.addScope("profile")}static credential(t,n){return js._fromParams({providerId:Vr.PROVIDER_ID,signInMethod:Vr.GOOGLE_SIGN_IN_METHOD,idToken:t,accessToken:n})}static credentialFromResult(t){return Vr.credentialFromTaggedObject(t)}static credentialFromError(t){return Vr.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t)return null;const{oauthIdToken:n,oauthAccessToken:r}=t;if(!n&&!r)return null;try{return Vr.credential(n,r)}catch{return null}}}Vr.GOOGLE_SIGN_IN_METHOD="google.com";Vr.PROVIDER_ID="google.com";/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class Wr extends Oa{constructor(){super("github.com")}static credential(t){return js._fromParams({providerId:Wr.PROVIDER_ID,signInMethod:Wr.GITHUB_SIGN_IN_METHOD,accessToken:t})}static credentialFromResult(t){return Wr.credentialFromTaggedObject(t)}static credentialFromError(t){return Wr.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t||!("oauthAccessToken"in t)||!t.oauthAccessToken)return null;try{return Wr.credential(t.oauthAccessToken)}catch{return null}}}Wr.GITHUB_SIGN_IN_METHOD="github.com";Wr.PROVIDER_ID="github.com";/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class Kr extends Oa{constructor(){super("twitter.com")}static credential(t,n){return js._fromParams({providerId:Kr.PROVIDER_ID,signInMethod:Kr.TWITTER_SIGN_IN_METHOD,oauthToken:t,oauthTokenSecret:n})}static credentialFromResult(t){return Kr.credentialFromTaggedObject(t)}static credentialFromError(t){return Kr.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t)return null;const{oauthAccessToken:n,oauthTokenSecret:r}=t;if(!n||!r)return null;try{return Kr.credential(n,r)}catch{return null}}}Kr.TWITTER_SIGN_IN_METHOD="twitter.com";Kr.PROVIDER_ID="twitter.com";/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class zs{constructor(t){this.user=t.user,this.providerId=t.providerId,this._tokenResponse=t._tokenResponse,this.operationType=t.operationType}static async _fromIdTokenResponse(t,n,r,s=!1){const i=await dr._fromIdTokenResponse(t,r,s),o=Kv(r);return new zs({user:i,providerId:o,_tokenResponse:r,operationType:n})}static async _forOperation(t,n,r){await t._updateTokensIfNecessary(r,!0);const s=Kv(r);return new zs({user:t,providerId:s,_tokenResponse:r,operationType:n})}}function Kv(e){return e.providerId?e.providerId:"phoneNumber"in e?"phone":null}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class pc extends hs{constructor(t,n,r,s){var i;super(n.code,n.message),this.operationType=r,this.user=s,Object.setPrototypeOf(this,pc.prototype),this.customData={appName:t.name,tenantId:(i=t.tenantId)!==null&&i!==void 0?i:void 0,_serverResponse:n.customData._serverResponse,operationType:r}}static _fromErrorAndOperation(t,n,r,s){return new pc(t,n,r,s)}}function wk(e,t,n,r){return(t==="reauthenticate"?n._getReauthenticationResolver(e):n._getIdTokenResponse(e)).catch(i=>{throw i.code==="auth/multi-factor-auth-required"?pc._fromErrorAndOperation(e,i,t,r):i})}async function wG(e,t,n=!1){const r=await la(e,t._linkToIdToken(e.auth,await e.getIdToken()),n);return zs._forOperation(e,"link",r)}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function bG(e,t,n=!1){const{auth:r}=e;if(cr(r.app))return Promise.reject(ns(r));const s="reauthenticate";try{const i=await la(e,wk(r,s,t,e),n);we(i.idToken,r,"internal-error");const o=kh(i.idToken);we(o,r,"internal-error");const{sub:a}=o;return we(e.uid===a,r,"user-mismatch"),zs._forOperation(e,s,i)}catch(i){throw(i==null?void 0:i.code)==="auth/user-not-found"&&wr(r,"user-mismatch"),i}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function EG(e,t,n=!1){if(cr(e.app))return Promise.reject(ns(e));const r="signIn",s=await wk(e,r,t),i=await zs._fromIdTokenResponse(e,r,s);return n||await e._updateCurrentUser(i.user),i}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function TG(e,t){return sk(e,"POST","/v1/accounts:signInWithCustomToken",Qc(e,t))}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function Gv(e,t){if(cr(e.app))return Promise.reject(ns(e));const n=tu(e),r=await TG(n,{token:t,returnSecureToken:!0}),s=await zs._fromIdTokenResponse(n,"signIn",r);return await n._updateCurrentUser(s.user),s}function SG(e,t,n,r){return fo(e).onIdTokenChanged(t,n,r)}function kG(e,t,n){return fo(e).beforeAuthStateChanged(t,n)}const hc="__sak";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class bk{constructor(t,n){this.storageRetriever=t,this.type=n}_isAvailable(){try{return this.storage?(this.storage.setItem(hc,"1"),this.storage.removeItem(hc),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(t,n){return this.storage.setItem(t,JSON.stringify(n)),Promise.resolve()}_get(t){const n=this.storage.getItem(t);return Promise.resolve(n?JSON.parse(n):null)}_remove(t){return this.storage.removeItem(t),Promise.resolve()}get storage(){return this.storageRetriever()}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function IG(){const e=Ot();return Ih(e)||eu(e)}const RG=1e3,CG=10;class Ek extends bk{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(t,n)=>this.onStorageEvent(t,n),this.listeners={},this.localCache={},this.pollTimer=null,this.safariLocalStorageNotSynced=IG()&&sG(),this.fallbackToPolling=gk(),this._shouldAllowMigration=!0}forAllChangedKeys(t){for(const n of Object.keys(this.listeners)){const r=this.storage.getItem(n),s=this.localCache[n];r!==s&&t(n,s,r)}}onStorageEvent(t,n=!1){if(!t.key){this.forAllChangedKeys((o,a,l)=>{this.notifyListeners(o,l)});return}const r=t.key;if(n?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){const o=this.storage.getItem(r);if(t.newValue!==o)t.newValue!==null?this.storage.setItem(r,t.newValue):this.storage.removeItem(r);else if(this.localCache[r]===t.newValue&&!n)return}const s=()=>{const o=this.storage.getItem(r);!n&&this.localCache[r]===o||this.notifyListeners(r,o)},i=this.storage.getItem(r);rG()&&i!==t.newValue&&t.newValue!==t.oldValue?setTimeout(s,CG):s()}notifyListeners(t,n){this.localCache[t]=n;const r=this.listeners[t];if(r)for(const s of Array.from(r))s(n&&JSON.parse(n))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((t,n,r)=>{this.onStorageEvent(new StorageEvent("storage",{key:t,oldValue:n,newValue:r}),!0)})},RG)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(t,n){Object.keys(this.listeners).length===0&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[t]||(this.listeners[t]=new Set,this.localCache[t]=this.storage.getItem(t)),this.listeners[t].add(n)}_removeListener(t,n){this.listeners[t]&&(this.listeners[t].delete(n),this.listeners[t].size===0&&delete this.listeners[t]),Object.keys(this.listeners).length===0&&(this.detachListener(),this.stopPolling())}async _set(t,n){await super._set(t,n),this.localCache[t]=JSON.stringify(n)}async _get(t){const n=await super._get(t);return this.localCache[t]=JSON.stringify(n),n}async _remove(t){await super._remove(t),delete this.localCache[t]}}Ek.type="LOCAL";const AG=Ek;/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class Tk extends bk{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(t,n){}_removeListener(t,n){}}Tk.type="SESSION";const Sk=Tk;/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function OG(e){return Promise.all(e.map(async t=>{try{return{fulfilled:!0,value:await t}}catch(n){return{fulfilled:!1,reason:n}}}))}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class nu{constructor(t){this.eventTarget=t,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(t){const n=this.receivers.find(s=>s.isListeningto(t));if(n)return n;const r=new nu(t);return this.receivers.push(r),r}isListeningto(t){return this.eventTarget===t}async handleEvent(t){const n=t,{eventId:r,eventType:s,data:i}=n.data,o=this.handlersMap[s];if(!(o!=null&&o.size))return;n.ports[0].postMessage({status:"ack",eventId:r,eventType:s});const a=Array.from(o).map(async c=>c(n.origin,i)),l=await OG(a);n.ports[0].postMessage({status:"done",eventId:r,eventType:s,response:l})}_subscribe(t,n){Object.keys(this.handlersMap).length===0&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[t]||(this.handlersMap[t]=new Set),this.handlersMap[t].add(n)}_unsubscribe(t,n){this.handlersMap[t]&&n&&this.handlersMap[t].delete(n),(!n||this.handlersMap[t].size===0)&&delete this.handlersMap[t],Object.keys(this.handlersMap).length===0&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}nu.receivers=[];/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function Ch(e="",t=10){let n="";for(let r=0;r<t;r++)n+=Math.floor(Math.random()*10);return e+n}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class PG{constructor(t){this.target=t,this.handlers=new Set}removeMessageHandler(t){t.messageChannel&&(t.messageChannel.port1.removeEventListener("message",t.onMessage),t.messageChannel.port1.close()),this.handlers.delete(t)}async _send(t,n,r=50){const s=typeof MessageChannel<"u"?new MessageChannel:null;if(!s)throw new Error("connection_unavailable");let i,o;return new Promise((a,l)=>{const c=Ch("",20);s.port1.start();const u=setTimeout(()=>{l(new Error("unsupported_event"))},r);o={messageChannel:s,onMessage(d){const f=d;if(f.data.eventId===c)switch(f.data.status){case"ack":clearTimeout(u),i=setTimeout(()=>{l(new Error("timeout"))},3e3);break;case"done":clearTimeout(i),a(f.data.response);break;default:clearTimeout(u),clearTimeout(i),l(new Error("invalid_response"));break}}},this.handlers.add(o),s.port1.addEventListener("message",o.onMessage),this.target.postMessage({eventType:t,eventId:c,data:n},[s.port2])}).finally(()=>{o&&this.removeMessageHandler(o)})}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function qn(){return window}function LG(e){qn().location.href=e}/**
 * @license
 * Copyright 2020 Google LLC.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function kk(){return typeof qn().WorkerGlobalScope<"u"&&typeof qn().importScripts=="function"}async function DG(){if(!(navigator!=null&&navigator.serviceWorker))return null;try{return(await navigator.serviceWorker.ready).active}catch{return null}}function NG(){var e;return((e=navigator==null?void 0:navigator.serviceWorker)===null||e===void 0?void 0:e.controller)||null}function MG(){return kk()?self:null}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const Ik="firebaseLocalStorageDb",$G=1,gc="firebaseLocalStorage",Rk="fbase_key";class Pa{constructor(t){this.request=t}toPromise(){return new Promise((t,n)=>{this.request.addEventListener("success",()=>{t(this.request.result)}),this.request.addEventListener("error",()=>{n(this.request.error)})})}}function ru(e,t){return e.transaction([gc],t?"readwrite":"readonly").objectStore(gc)}function xG(){const e=indexedDB.deleteDatabase(Ik);return new Pa(e).toPromise()}function Vf(){const e=indexedDB.open(Ik,$G);return new Promise((t,n)=>{e.addEventListener("error",()=>{n(e.error)}),e.addEventListener("upgradeneeded",()=>{const r=e.result;try{r.createObjectStore(gc,{keyPath:Rk})}catch(s){n(s)}}),e.addEventListener("success",async()=>{const r=e.result;r.objectStoreNames.contains(gc)?t(r):(r.close(),await xG(),t(await Vf()))})})}async function qv(e,t,n){const r=ru(e,!0).put({[Rk]:t,value:n});return new Pa(r).toPromise()}async function UG(e,t){const n=ru(e,!1).get(t),r=await new Pa(n).toPromise();return r===void 0?null:r.value}function Yv(e,t){const n=ru(e,!0).delete(t);return new Pa(n).toPromise()}const FG=800,BG=3;class Ck{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}async _openDb(){return this.db?this.db:(this.db=await Vf(),this.db)}async _withRetries(t){let n=0;for(;;)try{const r=await this._openDb();return await t(r)}catch(r){if(n++>BG)throw r;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return kk()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=nu._getInstance(MG()),this.receiver._subscribe("keyChanged",async(t,n)=>({keyProcessed:(await this._poll()).includes(n.key)})),this.receiver._subscribe("ping",async(t,n)=>["keyChanged"])}async initializeSender(){var t,n;if(this.activeServiceWorker=await DG(),!this.activeServiceWorker)return;this.sender=new PG(this.activeServiceWorker);const r=await this.sender._send("ping",{},800);r&&!((t=r[0])===null||t===void 0)&&t.fulfilled&&!((n=r[0])===null||n===void 0)&&n.value.includes("keyChanged")&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(t){if(!(!this.sender||!this.activeServiceWorker||NG()!==this.activeServiceWorker))try{await this.sender._send("keyChanged",{key:t},this.serviceWorkerReceiverAvailable?800:50)}catch{}}async _isAvailable(){try{if(!indexedDB)return!1;const t=await Vf();return await qv(t,hc,"1"),await Yv(t,hc),!0}catch{}return!1}async _withPendingWrite(t){this.pendingWrites++;try{await t()}finally{this.pendingWrites--}}async _set(t,n){return this._withPendingWrite(async()=>(await this._withRetries(r=>qv(r,t,n)),this.localCache[t]=n,this.notifyServiceWorker(t)))}async _get(t){const n=await this._withRetries(r=>UG(r,t));return this.localCache[t]=n,n}async _remove(t){return this._withPendingWrite(async()=>(await this._withRetries(n=>Yv(n,t)),delete this.localCache[t],this.notifyServiceWorker(t)))}async _poll(){const t=await this._withRetries(s=>{const i=ru(s,!1).getAll();return new Pa(i).toPromise()});if(!t)return[];if(this.pendingWrites!==0)return[];const n=[],r=new Set;if(t.length!==0)for(const{fbase_key:s,value:i}of t)r.add(s),JSON.stringify(this.localCache[s])!==JSON.stringify(i)&&(this.notifyListeners(s,i),n.push(s));for(const s of Object.keys(this.localCache))this.localCache[s]&&!r.has(s)&&(this.notifyListeners(s,null),n.push(s));return n}notifyListeners(t,n){this.localCache[t]=n;const r=this.listeners[t];if(r)for(const s of Array.from(r))s(n)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),FG)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(t,n){Object.keys(this.listeners).length===0&&this.startPolling(),this.listeners[t]||(this.listeners[t]=new Set,this._get(t)),this.listeners[t].add(n)}_removeListener(t,n){this.listeners[t]&&(this.listeners[t].delete(n),this.listeners[t].size===0&&delete this.listeners[t]),Object.keys(this.listeners).length===0&&this.stopPolling()}}Ck.type="LOCAL";const HG=Ck;new Aa(3e4,6e4);/**
 * @license
 * Copyright 2021 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function jG(e,t){return t?fr(t):(we(e._popupRedirectResolver,e,"argument-error"),e._popupRedirectResolver)}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class Ah extends vk{constructor(t){super("custom","custom"),this.params=t}_getIdTokenResponse(t){return Di(t,this._buildIdpRequest())}_linkToIdToken(t,n){return Di(t,this._buildIdpRequest(n))}_getReauthenticationResolver(t){return Di(t,this._buildIdpRequest())}_buildIdpRequest(t){const n={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return t&&(n.idToken=t),n}}function zG(e){return EG(e.auth,new Ah(e),e.bypassAuthState)}function VG(e){const{auth:t,user:n}=e;return we(n,t,"internal-error"),bG(n,new Ah(e),e.bypassAuthState)}async function WG(e){const{auth:t,user:n}=e;return we(n,t,"internal-error"),wG(n,new Ah(e),e.bypassAuthState)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class Ak{constructor(t,n,r,s,i=!1){this.auth=t,this.resolver=r,this.user=s,this.bypassAuthState=i,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(n)?n:[n]}execute(){return new Promise(async(t,n)=>{this.pendingPromise={resolve:t,reject:n};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(r){this.reject(r)}})}async onAuthEvent(t){const{urlResponse:n,sessionId:r,postBody:s,tenantId:i,error:o,type:a}=t;if(o){this.reject(o);return}const l={auth:this.auth,requestUri:n,sessionId:r,tenantId:i||void 0,postBody:s||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(a)(l))}catch(c){this.reject(c)}}onError(t){this.reject(t)}getIdpTask(t){switch(t){case"signInViaPopup":case"signInViaRedirect":return zG;case"linkViaPopup":case"linkViaRedirect":return WG;case"reauthViaPopup":case"reauthViaRedirect":return VG;default:wr(this.auth,"internal-error")}}resolve(t){br(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(t),this.unregisterAndCleanUp()}reject(t){br(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(t),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const KG=new Aa(2e3,1e4);class _i extends Ak{constructor(t,n,r,s,i){super(t,n,s,i),this.provider=r,this.authWindow=null,this.pollId=null,_i.currentPopupAction&&_i.currentPopupAction.cancel(),_i.currentPopupAction=this}async executeNotNull(){const t=await this.execute();return we(t,this.auth,"internal-error"),t}async onExecution(){br(this.filter.length===1,"Popup operations only handle one event");const t=Ch();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],t),this.authWindow.associatedEvent=t,this.resolver._originValidation(this.auth).catch(n=>{this.reject(n)}),this.resolver._isIframeWebStorageSupported(this.auth,n=>{n||this.reject(Gn(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()}get eventId(){var t;return((t=this.authWindow)===null||t===void 0?void 0:t.associatedEvent)||null}cancel(){this.reject(Gn(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,_i.currentPopupAction=null}pollUserCancellation(){const t=()=>{var n,r;if(!((r=(n=this.authWindow)===null||n===void 0?void 0:n.window)===null||r===void 0)&&r.closed){this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(Gn(this.auth,"popup-closed-by-user"))},8e3);return}this.pollId=window.setTimeout(t,KG.get())};t()}}_i.currentPopupAction=null;/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const GG="pendingRedirect",kl=new Map;class qG extends Ak{constructor(t,n,r=!1){super(t,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],n,void 0,r),this.eventId=null}async execute(){let t=kl.get(this.auth._key());if(!t){try{const r=await YG(this.resolver,this.auth)?await super.execute():null;t=()=>Promise.resolve(r)}catch(n){t=()=>Promise.reject(n)}kl.set(this.auth._key(),t)}return this.bypassAuthState||kl.set(this.auth._key(),()=>Promise.resolve(null)),t()}async onAuthEvent(t){if(t.type==="signInViaRedirect")return super.onAuthEvent(t);if(t.type==="unknown"){this.resolve(null);return}if(t.eventId){const n=await this.auth._redirectUserForId(t.eventId);if(n)return this.user=n,super.onAuthEvent(t);this.resolve(null)}}async onExecution(){}cleanUp(){}}async function YG(e,t){const n=ZG(t),r=XG(e);if(!await r._isAvailable())return!1;const s=await r._get(n)==="true";return await r._remove(n),s}function JG(e,t){kl.set(e._key(),t)}function XG(e){return fr(e._redirectPersistence)}function ZG(e){return Sl(GG,e.config.apiKey,e.name)}async function QG(e,t,n=!1){if(cr(e.app))return Promise.reject(ns(e));const r=tu(e),s=jG(r,t),o=await new qG(r,s,n).execute();return o&&!n&&(delete o.user._redirectEventId,await r._persistUserIfCurrent(o.user),await r._setRedirectUser(null,t)),o}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const e3=10*60*1e3;class t3{constructor(t){this.auth=t,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(t){this.consumers.add(t),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,t)&&(this.sendToConsumer(this.queuedRedirectEvent,t),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(t){this.consumers.delete(t)}onEvent(t){if(this.hasEventBeenHandled(t))return!1;let n=!1;return this.consumers.forEach(r=>{this.isEventForConsumer(t,r)&&(n=!0,this.sendToConsumer(t,r),this.saveEventToCache(t))}),this.hasHandledPotentialRedirect||!n3(t)||(this.hasHandledPotentialRedirect=!0,n||(this.queuedRedirectEvent=t,n=!0)),n}sendToConsumer(t,n){var r;if(t.error&&!Ok(t)){const s=((r=t.error.code)===null||r===void 0?void 0:r.split("auth/")[1])||"internal-error";n.onError(Gn(this.auth,s))}else n.onAuthEvent(t)}isEventForConsumer(t,n){const r=n.eventId===null||!!t.eventId&&t.eventId===n.eventId;return n.filter.includes(t.type)&&r}hasEventBeenHandled(t){return Date.now()-this.lastProcessedEventTime>=e3&&this.cachedEventUids.clear(),this.cachedEventUids.has(Jv(t))}saveEventToCache(t){this.cachedEventUids.add(Jv(t)),this.lastProcessedEventTime=Date.now()}}function Jv(e){return[e.type,e.eventId,e.sessionId,e.tenantId].filter(t=>t).join("-")}function Ok({type:e,error:t}){return e==="unknown"&&(t==null?void 0:t.code)==="auth/no-auth-event"}function n3(e){switch(e.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return Ok(e);default:return!1}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function r3(e,t={}){return po(e,"GET","/v1/projects",t)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const s3=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,i3=/^https?/;async function o3(e){if(e.config.emulator)return;const{authorizedDomains:t}=await r3(e);for(const n of t)try{if(a3(n))return}catch{}wr(e,"unauthorized-domain")}function a3(e){const t=jf(),{protocol:n,hostname:r}=new URL(t);if(e.startsWith("chrome-extension://")){const o=new URL(e);return o.hostname===""&&r===""?n==="chrome-extension:"&&e.replace("chrome-extension://","")===t.replace("chrome-extension://",""):n==="chrome-extension:"&&o.hostname===r}if(!i3.test(n))return!1;if(s3.test(e))return r===e;const s=e.replace(/\./g,"\\.");return new RegExp("^(.+\\."+s+"|"+s+")$","i").test(r)}/**
 * @license
 * Copyright 2020 Google LLC.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const l3=new Aa(3e4,6e4);function Xv(){const e=qn().___jsl;if(e!=null&&e.H){for(const t of Object.keys(e.H))if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=[...e.H[t].L],e.CP)for(let n=0;n<e.CP.length;n++)e.CP[n]=null}}function c3(e){return new Promise((t,n)=>{var r,s,i;function o(){Xv(),gapi.load("gapi.iframes",{callback:()=>{t(gapi.iframes.getContext())},ontimeout:()=>{Xv(),n(Gn(e,"network-request-failed"))},timeout:l3.get()})}if(!((s=(r=qn().gapi)===null||r===void 0?void 0:r.iframes)===null||s===void 0)&&s.Iframe)t(gapi.iframes.getContext());else if(!((i=qn().gapi)===null||i===void 0)&&i.load)o();else{const a=pG("iframefcb");return qn()[a]=()=>{gapi.load?o():n(Gn(e,"network-request-failed"))},dG(`${fG()}?onload=${a}`).catch(l=>n(l))}}).catch(t=>{throw Il=null,t})}let Il=null;function u3(e){return Il=Il||c3(e),Il}/**
 * @license
 * Copyright 2020 Google LLC.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const d3=new Aa(5e3,15e3),f3="__/auth/iframe",p3="emulator/auth/iframe",h3={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},g3=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function m3(e){const t=e.config;we(t.authDomain,e,"auth-domain-config-required");const n=t.emulator?Sh(t,p3):`https://${e.config.authDomain}/${f3}`,r={apiKey:t.apiKey,appName:e.name,v:Ca},s=g3.get(e.config.apiHost);s&&(r.eid=s);const i=e._getFrameworks();return i.length&&(r.fw=i.join(",")),`${n}?${Ra(r).slice(1)}`}async function _3(e){const t=await u3(e),n=qn().gapi;return we(n,e,"internal-error"),t.open({where:document.body,url:m3(e),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:h3,dontclear:!0},r=>new Promise(async(s,i)=>{await r.restyle({setHideOnLeave:!1});const o=Gn(e,"network-request-failed"),a=qn().setTimeout(()=>{i(o)},d3.get());function l(){qn().clearTimeout(a),s(r)}r.ping(l).then(l,()=>{i(o)})}))}/**
 * @license
 * Copyright 2020 Google LLC.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const v3={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},y3=500,w3=600,b3="_blank",E3="http://localhost";class Zv{constructor(t){this.window=t,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}function T3(e,t,n,r=y3,s=w3){const i=Math.max((window.screen.availHeight-s)/2,0).toString(),o=Math.max((window.screen.availWidth-r)/2,0).toString();let a="";const l=Object.assign(Object.assign({},v3),{width:r.toString(),height:s.toString(),top:i,left:o}),c=Ot().toLowerCase();n&&(a=uk(c)?b3:n),ck(c)&&(t=t||E3,l.scrollbars="yes");const u=Object.entries(l).reduce((f,[p,g])=>`${f}${p}=${g},`,"");if(nG(c)&&a!=="_self")return S3(t||"",a),new Zv(null);const d=window.open(t||"",a,u);we(d,e,"popup-blocked");try{d.focus()}catch{}return new Zv(d)}function S3(e,t){const n=document.createElement("a");n.href=e,n.target=t;const r=document.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(r)}/**
 * @license
 * Copyright 2021 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const k3="__/auth/handler",I3="emulator/auth/handler",R3=encodeURIComponent("fac");async function Qv(e,t,n,r,s,i){we(e.config.authDomain,e,"auth-domain-config-required"),we(e.config.apiKey,e,"invalid-api-key");const o={apiKey:e.config.apiKey,appName:e.name,authType:n,redirectUrl:r,v:Ca,eventId:s};if(t instanceof yk){t.setDefaultLanguage(e.languageCode),o.providerId=t.providerId||"",OW(t.getCustomParameters())||(o.customParameters=JSON.stringify(t.getCustomParameters()));for(const[u,d]of Object.entries({}))o[u]=d}if(t instanceof Oa){const u=t.getScopes().filter(d=>d!=="");u.length>0&&(o.scopes=u.join(","))}e.tenantId&&(o.tid=e.tenantId);const a=o;for(const u of Object.keys(a))a[u]===void 0&&delete a[u];const l=await e._getAppCheckToken(),c=l?`#${R3}=${encodeURIComponent(l)}`:"";return`${C3(e)}?${Ra(a).slice(1)}${c}`}function C3({config:e}){return e.emulator?Sh(e,I3):`https://${e.authDomain}/${k3}`}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const nd="webStorageSupport";class A3{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=Sk,this._completeRedirectFn=QG,this._overrideRedirectResult=JG}async _openPopup(t,n,r,s){var i;br((i=this.eventManagers[t._key()])===null||i===void 0?void 0:i.manager,"_initialize() not called before _openPopup()");const o=await Qv(t,n,r,jf(),s);return T3(t,o,Ch())}async _openRedirect(t,n,r,s){await this._originValidation(t);const i=await Qv(t,n,r,jf(),s);return LG(i),new Promise(()=>{})}_initialize(t){const n=t._key();if(this.eventManagers[n]){const{manager:s,promise:i}=this.eventManagers[n];return s?Promise.resolve(s):(br(i,"If manager is not set, promise should be"),i)}const r=this.initAndGetManager(t);return this.eventManagers[n]={promise:r},r.catch(()=>{delete this.eventManagers[n]}),r}async initAndGetManager(t){const n=await _3(t),r=new t3(t);return n.register("authEvent",s=>(we(s==null?void 0:s.authEvent,t,"invalid-auth-event"),{status:r.onEvent(s.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[t._key()]={manager:r},this.iframes[t._key()]=n,r}_isIframeWebStorageSupported(t,n){this.iframes[t._key()].send(nd,{type:nd},s=>{var i;const o=(i=s==null?void 0:s[0])===null||i===void 0?void 0:i[nd];o!==void 0&&n(!!o),wr(t,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(t){const n=t._key();return this.originValidationPromises[n]||(this.originValidationPromises[n]=o3(t)),this.originValidationPromises[n]}get _shouldInitProactively(){return gk()||Ih()||eu()}}const O3=A3;var ey="@firebase/auth",ty="1.7.5";/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */class P3{constructor(t){this.auth=t,this.internalListeners=new Map}getUid(){var t;return this.assertAuthConfigured(),((t=this.auth.currentUser)===null||t===void 0?void 0:t.uid)||null}async getToken(t){return this.assertAuthConfigured(),await this.auth._initializationPromise,this.auth.currentUser?{accessToken:await this.auth.currentUser.getIdToken(t)}:null}addAuthTokenListener(t){if(this.assertAuthConfigured(),this.internalListeners.has(t))return;const n=this.auth.onIdTokenChanged(r=>{t((r==null?void 0:r.stsTokenManager.accessToken)||null)});this.internalListeners.set(t,n),this.updateProactiveRefresh()}removeAuthTokenListener(t){this.assertAuthConfigured();const n=this.internalListeners.get(t);n&&(this.internalListeners.delete(t),n(),this.updateProactiveRefresh())}assertAuthConfigured(){we(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function L3(e){switch(e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}function D3(e){oa(new Qi("auth",(t,{options:n})=>{const r=t.getProvider("app").getImmediate(),s=t.getProvider("heartbeat"),i=t.getProvider("app-check-internal"),{apiKey:o,authDomain:a}=r.options;we(o&&!o.includes(":"),"invalid-api-key",{appName:r.name});const l={apiKey:o,authDomain:a,clientPlatform:e,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:mk(e)},c=new cG(r,s,i,l);return gG(c,n),c},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((t,n,r)=>{t.getProvider("auth-internal").initialize()})),oa(new Qi("auth-internal",t=>{const n=tu(t.getProvider("auth").getImmediate());return(r=>new P3(r))(n)},"PRIVATE").setInstantiationMode("EXPLICIT")),Oi(ey,ty,L3(e)),Oi(ey,ty,"esm2017")}/**
 * @license
 * Copyright 2021 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */const N3=5*60,M3=KS("authIdTokenMaxAge")||N3;let ny=null;const $3=e=>async t=>{const n=t&&await t.getIdTokenResult(),r=n&&(new Date().getTime()-Date.parse(n.issuedAtTime))/1e3;if(r&&r>M3)return;const s=n==null?void 0:n.token;ny!==s&&(ny=s,await fetch(e,{method:s?"POST":"DELETE",headers:s?{Authorization:`Bearer ${s}`}:{}}))};function x3(e=El()){const t=JS(e,"auth");if(t.isInitialized())return t.getImmediate();const n=hG(e,{popupRedirectResolver:O3,persistence:[HG,AG,Sk]}),r=KS("authTokenSyncURL");if(r&&typeof isSecureContext=="boolean"&&isSecureContext){const i=new URL(r,location.origin);if(location.origin===i.origin){const o=$3(i.toString());kG(n,o,()=>o(n.currentUser)),SG(n,a=>o(a))}}const s=yW("auth");return s&&mG(n,`http://${s}`),n}function U3(){var e,t;return(t=(e=document.getElementsByTagName("head"))===null||e===void 0?void 0:e[0])!==null&&t!==void 0?t:document}uG({loadJS(e){return new Promise((t,n)=>{const r=document.createElement("script");r.setAttribute("src",e),r.onload=t,r.onerror=s=>{const i=Gn("internal-error");i.customData=s,n(i)},r.type="text/javascript",r.charset="UTF-8",U3().appendChild(r)})},gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="});D3("Browser");const rd="KlientIdSchowek";var F3="firebase",B3="10.12.4";/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */Oi(F3,B3,"app");const Rl="strona-rpl",H3=async e=>Qu!=null&&Qu().some(t=>t.name===Rl)?El==null?void 0:El(Rl):bl==null?void 0:bl(e,{name:Rl}),ry=async e=>{try{const t=await H3(e);return x3(t)}catch{}},sy=async(e,t)=>{try{return t?(await eH(`${US[e].authority}/api/clients/firebaseToken?projectName=${Rl}`,{headers:{Authorization:`Bearer ${t}`}})).token:void 0}catch{return}};var Pk=(e=>(e.KOSZYK="koszyk",e.FAKULTETY="fakultety",e.BLOCZKI="bloczki",e))(Pk||{});let iy=!1;const $e=te(),j3=e=>{const{userId:t,isUserLoaded:n,getToken:r}=Zc(e),s=ka([rd]),i=z(()=>{var h,_,b,E;const y=((_=(h=$e.value)==null?void 0:h.bloczki)==null?void 0:_.length)||0,m=((E=(b=$e.value)==null?void 0:b.fakultety)==null?void 0:E.length)||0;return y+m}),o=y=>({Id:y.BloczekId,Cena:y.Cena.CenaAktualna,CenaBezPromocji:y.Cena.CenaPrzedPromocja,Params:y.BazoweInformacje.Params??"",LiczbaPokoi:y.BazoweInformacje.LiczbaPokoi,DatyUrodzenia:y.BazoweInformacje.DatyUrodzenia,CenyZaOsoby:y.Cena.CenyZaPokoj}),a=async()=>{try{if(!t.value)return;const y=bs(Nr.POBIERZ_ULUBIONE,{userId:t.value,grupuj:"true"}),{data:m}=await ws(y).get().json();$e.value=m.value||{}}catch{$e.value={}}},l=async(y,m)=>{var S,A;if(!t.value)throw new Error("Cannot use schowek without klientId");const h=y,_=m==="fakultet"?"fakultety":"bloczki",b=bs(Nr.USUN_ELEMENT,{elemId:h,userId:t.value,strona:_});await ws(b).delete();let E=((S=$e.value)==null?void 0:S.bloczki)||[];E=E.filter(D=>D.KluczSchowka!==h);let R=((A=$e.value)==null?void 0:A.fakultety)||[];R=R.filter(D=>D.KluczSchowka!==h),$e.value={bloczki:E,fakultety:R}},c=async y=>{if(!y.BazoweInformacje.Params)return;const m={Id:y.BloczekId,Cena:y.Cena.CenaAktualna,CenaBezPromocji:y.Cena.CenaPrzedPromocja?y.Cena.CenaPrzedPromocja:y.Cena.CenaAktualna,CenyZaOsoby:y.Cena.CenyZaPokoj,Params:y.BazoweInformacje.Params,DatyUrodzenia:y.BazoweInformacje.DatyUrodzenia,LiczbaPokoi:y.BazoweInformacje.LiczbaPokoi,CzyCenaZaOsobe:y.CzyCenaZaOsobe};await u(m)},u=async y=>{var _;if(!t.value)throw new Error("Cannot use schowek without klientId");const m=bs(Nr.DODAJ_DO_ULUBIONYCH,{userId:t.value}),{data:h}=await ws(m,{headers:{"Content-Type":"application/json"}}).post(y).json();(_=$e.value)!=null&&_.bloczki&&h.value?$e.value.bloczki=[...$e.value.bloczki,h.value]:$e.value&&h.value&&($e.value.bloczki=[h.value]),$e.value={...$e.value}},d=async y=>{var _;if(!t.value)throw new Error("Cannot use schowek without klientId");const m=bs(Nr.DODAJ_DO_ULUBIONYCH,{userId:t.value,strona:Pk.FAKULTETY}),{data:h}=await ws(m,{headers:{"Content-Type":"application/json"}}).post(y).json();(_=$e.value)!=null&&_.fakultety&&h.value?$e.value.fakultety=[...$e.value.fakultety,h.value]:$e.value&&h.value&&($e.value.fakultety=[h.value]),$e.value={...$e.value}},f=y=>{var m,h,_,b,E,R,S;if(dW(y))return(m=$e.value)!=null&&m.fakultety?{kluczSchowka:(h=$e.value.fakultety.find(D=>uW(D,y)))==null?void 0:h.KluczSchowka,type:"fakultet"}:{kluczSchowka:void 0,type:"fakultet"};if(y.BloczekId){const A=y;return(_=$e.value)!=null&&_.bloczki?A.CzyLight?{kluczSchowka:(b=$e.value.bloczki.find(N=>Cv(N,o(y))))==null?void 0:b.KluczSchowka,type:"bloczekLight"}:{kluczSchowka:(E=$e.value.bloczki.find(L=>cW(L,y)))==null?void 0:E.KluczSchowka,type:"bloczek"}:{kluczSchowka:void 0,type:"bloczek"}}else return(R=$e.value)!=null&&R.bloczki?{kluczSchowka:(S=$e.value.bloczki.find(D=>Cv(D,y)))==null?void 0:S.KluczSchowka,type:"szczegoly"}:{kluczSchowka:void 0,type:"szczegoly"}},p=async y=>{const{kluczSchowka:m,type:h}=f(y);if(m!==void 0)await l(m,h);else if(h==="fakultet")await d(y);else if(h==="bloczek")await c(y);else if(h==="bloczekLight"){const _=o(y);await u(_)}else await u(y)},g=async y=>{var S,A;const m=s.get(rd);if(!m||m===t.value)return;const h=await r();if(!h)return;const _=await sy(e,h),b=await ry(y);if(!b||!_)return;const R=await((A=(S=(await Gv(b,_)).user)==null?void 0:S.getIdToken)==null?void 0:A.call(S));if(R){const D=bs(Nr.MERGE,{userId:m});await ws(D,{headers:{Authorization:`Bearer ${R}`}}).post(),await a()}},v=async y=>{var S,A;const m=s.get(rd);if(!m||m===t.value)return;const h=await r();if(!h)return;const _=await sy(e,h),b=await ry(y);if(!b||!_)return 0;const R=await((A=(S=(await Gv(b,_)).user)==null?void 0:S.getIdToken)==null?void 0:A.call(S));if(R){const D=bs(Nr.POROWNAJ,{userId:m}),{data:L}=await ws(D,{headers:{Authorization:`Bearer ${R}`}}).get().json();return L.value}return 0},w=async()=>{if(!t.value)return;const y=bs(Nr.WYCZYSC_ULUBIONE,{userId:t.value});await ws(y).delete(),$e.value={bloczki:[],fakultety:[]}};return cn&&!iy&&(iy=!0,Se([t,n],([y,m])=>{if(!(!y||!m))try{a()}catch{}},{immediate:!0})),{schowek:$e,schowekIlosc:i,toggleBloczek:p,removeElement:l,findInSchowek:f,mergeSchowek:g,porownajSchowek:v,flush:w}},z3=e=>{const t=te(e),n=()=>{t.value=(document==null?void 0:document.body.clientWidth)<gi[Us.DESKTOP]};return Dt(()=>{n(),window.addEventListener("resize",n)}),Tr(()=>{window.removeEventListener("resize",n)}),{czyMobile:t}},Lk="header__mobile",V3=e=>{const t=te(0),{isMinWidth:n}=Tf(Us.DESKTOP),r=()=>{const o=document.getElementById(Lk);if(!o)return;const a=window.scrollY,l=(a<=0||t.value<=0)&&!n.value;o.style.top=t.value>a||l?"0":"-54px",t.value=a},s=()=>{t.value=window.scrollY,window.addEventListener("scroll",r)},i=()=>{window.removeEventListener("scroll",r)};return Dt(()=>{e.value&&s()}),Se(e,o=>{o?s():i()}),Tr(i),null},W3=["id"],K3={key:1,class:"flex h-full flex-row"},G3={key:1,class:"relative"},q3={class:"px-s-5 gap-s-3 flex h-full flex-row items-center justify-between"},Y3={class:"gap-s-5 flex flex-1 flex-row justify-end"},J3={key:1,class:"gap-s-6 flex flex-col"},X3=pe({__name:"RHeader",props:{menu:{},showSchowek:{type:Boolean,default:!0},panelKlienta:{type:Boolean,default:!1},api:{default:en.PROD},mobile:{type:Boolean,default:!0},defaultOpenKategoria:{},bigQueryConfig:{},userNavAnchorTag:{default:Xc.ANCHOR},kierunkowy:{default:""},showNumber:{type:Boolean,default:!0},desktopFullViewport:{type:Boolean,default:!1},showHamburger:{type:Boolean,default:!0},showBiura:{type:Boolean,default:!0},showUlubione:{type:Boolean,default:!0},showKoszyk:{type:Boolean,default:!0},phoneNumber:{default:"42 680 38 51"},phoneLabel:{default:""},userMenuPosition:{default:"bottom"},menuHidden:{type:Boolean,default:!1}},emits:["update:menu","menuElementClicked"],setup(e,{expose:t,emit:n}){const r=n,s=e,{menuHidden:i}=rn(s),{load:o}=yh(s.api),{czyMobile:a}=z3(s.mobile);V3(i);const l=async()=>{try{const w=await o("menu");r("update:menu",w)}catch(w){console.error(w)}},c=te(!1),u=Zc(s.api),{isUserLoaded:d,userBaseInfo:f}=u,p=j3(en.PROD),{schowekIlosc:g}=p,v=lW(s.api);return t({auth:u,ulubione:p,koszyk:v,loadData:l,userBaseInfo:f}),(w,y)=>($(),X("div",{id:O(Lk),class:"z-1000 h-menu-height bg-white-c outline-primary-lighter2-c fixed w-full outline outline-1",style:{"padding-right":"var(--scroll-bar-width)",transition:"top 0.3s ease"}},[O(a)?($(),X("div",G3,[Z("div",q3,[w.$slots.hamburger?Te(w.$slots,"hamburger",{key:0}):w.showHamburger?($(),se(O(ot),{key:1,icon:"burger",class:"flex-1",onClick:y[2]||(y[2]=m=>c.value=!0)})):fe("",!0),Q(Of),Z("div",Y3,[w.phoneLabel.length?($(),se(lr,{key:0,href:`tel:${w.phoneNumber}`,icon:"phone","icon-size":"24px"},null,8,["href"])):fe("",!0),w.showKoszyk&&O(v).iloscElementowWKoszyku.value>0?($(),se(IS,{key:1,"ilosc-elementow-w-koszyku":O(v).iloscElementowWKoszyku.value,"big-query-config":w.bigQueryConfig,"user-nav-anchor-tag":w.userNavAnchorTag,onMenuElementClicked:y[3]||(y[3]=m=>w.$emit("menuElementClicked",m))},null,8,["ilosc-elementow-w-koszyku","big-query-config","user-nav-anchor-tag"])):fe("",!0),Q(SS,{"desktop-full-viewport":w.desktopFullViewport,"user-menu-position":w.userMenuPosition,"big-query-config":w.bigQueryConfig,"is-user-loaded":O(d),"user-nav-anchor-tag":w.userNavAnchorTag,"schowek-ilosc":O(g),"user-info":O(f),onLogin:O(u).login,onLogout:O(u).logout,onMenuElementClicked:y[4]||(y[4]=m=>w.$emit("menuElementClicked",m))},null,8,["desktop-full-viewport","user-menu-position","big-query-config","is-user-loaded","user-nav-anchor-tag","schowek-ilosc","user-info","onLogin","onLogout"])])]),c.value?($(),se(gh,{key:0,"show-arrow":!1,"full-height":!0,onClose:y[9]||(y[9]=m=>c.value=!1)},{footer:de(()=>[w.showNumber?($(),se(lr,{key:0,href:"https://r.pl/kontakt",icon:"phone","icon-size":"32px",text:`${w.kierunkowy} ${w.phoneNumber}`,element:{Klucz:"telefon",Nazwa:"Telefon"},"aria-label":`Numer telefonu ${w.phoneNumber}`,"big-query-config":w.bigQueryConfig,onMenuElementClicked:y[6]||(y[6]=m=>w.$emit("menuElementClicked",m))},null,8,["text","aria-label","big-query-config"])):fe("",!0),w.showBiura?($(),se(lr,{key:1,href:"https://r.pl/biura",text:"Biura",icon:"pin","icon-size":"32px",element:{Klucz:"biura",Nazwa:"Biura"},"aria-label":"Salony firmowe i biura sprzedaży Rainbow","big-query-config":w.bigQueryConfig,onMenuElementClicked:y[7]||(y[7]=m=>w.$emit("menuElementClicked",m))},null,8,["big-query-config"])):fe("",!0),w.showUlubione?($(),se(lr,{key:2,href:O(kS),text:"Ulubione",icon:"heart","icon-size":"32px",rel:"nofollow",ilosc:O(g),"aria-label":`Schowek ${O(g)}`,element:{Klucz:"schowek",Nazwa:"Schowek"},"big-query-config":w.bigQueryConfig,onMenuElementClicked:y[8]||(y[8]=m=>w.$emit("menuElementClicked",m))},null,8,["href","ilosc","aria-label","big-query-config"])):fe("",!0)]),default:de(()=>[w.menu?($(),X("nav",J3,[($(!0),X(Ce,null,dn(w.menu,m=>($(),se(vv,{key:m.Nazwa,mobile:O(a),"default-open-kategoria":w.defaultOpenKategoria,kategoria:m,onMenuElementClicked:y[5]||(y[5]=h=>w.$emit("menuElementClicked",h))},null,8,["mobile","default-open-kategoria","kategoria"]))),128))])):Te(w.$slots,"default",{key:0})]),_:3})):fe("",!0)])):($(),X("div",{key:0,class:Ee(["max-w-container-m-width px-s-5 desktop-large:px-0 gap-s-8 m-auto flex h-full flex-row items-center justify-center",{"desktop-large:px-s-6 max-w-none":w.desktopFullViewport}])},[Q(Of),w.menu?($(),X("nav",K3,[($(!0),X(Ce,null,dn(w.menu,m=>($(),se(vv,{key:m.Nazwa,mobile:O(a),kategoria:m,onMenuElementClicked:y[0]||(y[0]=h=>w.$emit("menuElementClicked",h))},null,8,["mobile","kategoria"]))),128))])):Te(w.$slots,"default",{key:0}),Q(tV,{"desktop-full-viewport":w.desktopFullViewport,"ilosc-elementow-w-koszyku":O(v).iloscElementowWKoszyku.value,"panel-klienta":w.panelKlienta,"user-menu-position":w.userMenuPosition,"schowek-ilosc":O(g),"big-query-config":w.bigQueryConfig,"user-nav-anchor-tag":w.userNavAnchorTag,"user-info":O(f),"is-user-loaded":O(d),kierunkowy:w.kierunkowy,"show-number":w.showNumber,"show-biura":w.showBiura,"show-ulubione":w.showUlubione,"show-koszyk":w.showKoszyk,"phone-number":w.phoneNumber,"phone-label":w.phoneLabel,onLogin:O(u).login,onLogout:O(u).logout,onMenuElementClicked:y[1]||(y[1]=m=>w.$emit("menuElementClicked",m))},null,8,["desktop-full-viewport","ilosc-elementow-w-koszyku","panel-klienta","user-menu-position","schowek-ilosc","big-query-config","user-nav-anchor-tag","user-info","is-user-loaded","kierunkowy","show-number","show-biura","show-ulubione","show-koszyk","phone-number","phone-label","onLogin","onLogout"])],2))],8,W3))}}),Oh=e=>(wc("data-v-6108350d"),e=e(),bc(),e),Z3={class:"newsletter"},Q3=Oh(()=>Z("span",{class:"newsletter__text"},"Jeśli chcesz jako pierwszy otrzymać najlepsze oferty wprost na Twoją skrzynkę,",-1)),e4=Oh(()=>Z("strong",{class:"newsletter__text--save"},"ZAPISZ SIĘ NA NEWSLETTER:",-1)),t4={class:"newsletter__add-email"},n4=Oh(()=>Z("div",{class:"newsletter__text--small"},[Z("span",{class:"newsletter__text--copy"},"Administratorem Twoich danych jest RAINBOW TOURS SA "),Z("span",{class:"newsletter__text--copy"},[Z("a",{class:"newsletter__link",href:"https://r.pl/rodo/newsletter","aria-label":"KLIKNIJ, żeby zobaczyć szczegóły o ochronie Twoich danych"}," KLIKNIJ "),Le(" i dowiedz się więcej o ochronie Twoich danych. ")])],-1)),r4=pe({__name:"FooterNewsletter",setup(e){const t=te(""),n=te(!1),r=ka(["emailclient"]),s=o=>o?/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(o).toLowerCase()):!0,i=()=>{if(s(t.value)&&t.value){window.location.href="https://r.pl/newsletter";const o=new Date;o.setFullYear(o.getFullYear()+10),r.set("emailclient",t.value,{expires:o}),n.value=!0}};return(o,a)=>($(),X("div",Z3,[Q3,e4,Z("div",t4,[Ls(Z("input",{"onUpdate:modelValue":a[0]||(a[0]=l=>t.value=l),class:Ee(["newsletter__add-email--input",{invalid:!s(t.value)}]),type:"email",placeholder:"Podaj adres e-mail"},null,2),[[tR,t.value]]),Z("button",{class:Ee(["newsletter__add-email--button",{yellow:!n.value,green:n.value}]),onClick:a[1]||(a[1]=l=>i())},Ve(n.value?"ZAPISANO":"ZAPISZ SIĘ"),3)]),n4]))}}),Zs=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},s4=Zs(r4,[["__scopeId","data-v-6108350d"]]),Ph=e=>(wc("data-v-f1be3123"),e=e(),bc(),e),i4={class:"promises__background"},o4={class:"promises"},a4={class:"promises__block"},l4=Ph(()=>Z("div",{class:"promises__text--large"},[Z("span",{class:"promises__text--large--header"},"Call center"),Z("span",{class:"promises__text--large--number"},"42 680 38 51"),Z("p",null,[Le("codziennie"),Z("br"),Le("w godz. 8:00-22:00")])],-1)),c4={class:"promises__block"},u4=Ph(()=>Z("div",{class:"promises__text--large"},[Z("span",{class:"promises__text--large--header"},"Mail"),Z("a",{href:"https://r.pl/kontakt",class:"promises__text--large--mail"},"Formularz kontakowy"),Z("p",null,"Nasi konsultanci są do Państwa dyspozycji 7 dni w tygodniu")],-1)),d4={class:"promises__block"},f4=Ph(()=>Z("div",{class:"promises__text--large"},[Z("span",{class:"promises__text--large--header"},"Biura Rainbow"),Z("p",null,[Le(" Odwiedź jedno z ponad"),Z("br"),Z("a",{class:"biura-link",href:"https://r.pl/biura","aria-label":"100 biur Rainbow i salonów firmowych"}," 100 biur Rainbow "),Le(" w całej Polsce i zarezerwuj swój wymarzony urlop ")])],-1)),p4=pe({__name:"FooterPromises",setup(e){return(t,n)=>($(),X("div",i4,[Z("div",o4,[Z("div",a4,[Q(O(ot),{icon:"phone-circle",color:"white"}),l4]),Z("div",c4,[Q(O(ot),{icon:"envelope-circle",color:"white"}),u4]),Z("div",d4,[Q(O(ot),{icon:"r-circle",color:"white"}),f4])])]))}}),h4=Zs(p4,[["__scopeId","data-v-f1be3123"]]),g4={class:"siteMap"},m4=["onClick"],_4={class:"siteMap__text--toLeft siteMap__text--header"},v4=["href","aria-label","onClick"],y4=["onClick"],w4=pe({__name:"FooterSitemap",props:{menu:{default:()=>[]},bigQueryConfig:{}},emits:["elementClick"],setup(e,{emit:t}){const n=e,{menu:r}=rn(n),s=te([]),i=t,o=et("SitemapCmpSettings",!1),a=z(()=>{if(!o)return r.value;const d=JSON.parse(JSON.stringify(r.value)),f=d.findIndex(p=>p.nazwa==="Zasady korzystania");return f!==-1&&d[f].elements.push({nazwa:"Zarządzaj zgodami",url:"",opis:"",eventName:"cmp-settings"}),d}),l=d=>{var f=s.value[d];for(let p=0;p<s.value.length;p++)s.value[p]=!1;s.value[d]=!f},{save:c}=ph(n.bigQueryConfig),u=(d,f)=>{c(Ut.EBigQueryActionType.ELEMENT_CLICKED,{Element:Ut.EBigQueryElementType.MENU_FOOTER,Klucz:f,Nazwa:f,Sekcje:[Ut.ESections.MENU_FOOTER,d,f]})};return(d,f)=>($(),X("nav",g4,[($(!0),X(Ce,null,dn(a.value,(p,g)=>($(),X("div",{key:p.nazwa,class:"siteMap__column"},[Z("div",{class:"siteMap__panel",onClick:v=>l(+g)},[Z("span",_4,Ve(p.nazwa),1),Z("span",{class:Ee([{invert:s.value[g]},"siteMap__chevron"])},null,2)],8,m4),Z("ul",{class:Ee({active:s.value[g]})},[($(!0),X(Ce,null,dn(p.elements,v=>($(),X("li",{key:v.nazwa},[v.eventName?($(),X("div",{key:1,class:"siteMap__link",onClick:w=>i("elementClick",v.eventName)},Ve(v.nazwa),9,y4)):($(),X("a",{key:0,class:"siteMap__link",href:v.url,"aria-label":v.nazwa,onClick:()=>u(p.nazwa,v.nazwa)},Ve(v.nazwa),9,v4))]))),128))],2)]))),128))]))}}),b4=Zs(w4,[["__scopeId","data-v-4384ed5f"]]),E4={},T4={class:"footer__copyrights"};function S4(e,t){return $(),X("div",T4,[Z("span",null," Wszelkie prawa zastrzeżone ©1991-"+Ve(new Date().getFullYear())+" Biuro podróży Rainbow Tours S.A. ",1)])}const k4=Zs(E4,[["render",S4],["__scopeId","data-v-28ce3c7f"]]),I4={class:"social"},R4=["aria-label","href"],C4={class:"social__container"},A4=pe({__name:"FooterSocial",props:{socials:{}},setup(e){const t=e,{socials:n}=rn(t);return(r,s)=>($(),X("div",I4,[($(!0),X(Ce,null,dn(O(n),(i,o)=>($(),X("a",{key:o,class:"social__link","aria-label":i.nazwa,href:i.url,target:"_blank",rel:"noopener noreferrer nofollow"},[Z("div",C4,[Q(O(ot),{class:"social__icon",color:"#fff",size:"24px",icon:i.nazwaIkony},null,8,["icon"])])],8,R4))),128))]))}}),O4=e=>(wc("data-v-8d8f70e6"),e=e(),bc(),e),P4={class:"kanaly-platnosci"},L4=O4(()=>Z("span",{class:"kanaly-platnosci__header"},"Kanały płatności",-1)),D4={class:"kanaly-platnosci__logo"},N4=pe({__name:"FooterPayment",setup(e){return(t,n)=>($(),X("div",P4,[L4,Z("div",D4,[Q(O(ot),{class:"kanaly-platnosci__logo--image kanaly-platnosci__logo--visa",icon:"visa-fill",color:"white"}),Q(O(ot),{class:"kanaly-platnosci__logo--image kanaly-platnosci__logo--mastercard",icon:"mastercard-fill",color:"white"}),Q(O(ot),{class:"kanaly-platnosci__logo--image kanaly-platnosci__logo--apple",icon:"apple-pay",color:"white"}),Q(O(ot),{class:"kanaly-platnosci__logo--image kanaly-platnosci__logo--google",icon:"google-pay",color:"white"}),Q(O(ot),{class:"kanaly-platnosci__logo--image kanaly-platnosci__logo--przelewy",icon:"przelewy-white",color:"white"})])]))}}),M4=Zs(N4,[["__scopeId","data-v-8d8f70e6"]]),$4=e=>(wc("data-v-68c1d987"),e=e(),bc(),e),x4={class:"footer__box-bottom--platnosc-social"},U4={class:"social-media"},F4=$4(()=>Z("span",{class:"social-media__header"},"Social media",-1)),B4=pe({__name:"FooterPaymentAndSocial",props:{socials:{}},setup(e){const t=e,{socials:n}=rn(t);return(r,s)=>($(),X("div",x4,[Q(M4),Z("div",U4,[F4,Q(A4,{socials:O(n)},null,8,["socials"])])]))}}),H4=Zs(B4,[["__scopeId","data-v-68c1d987"]]),j4={key:0,class:"footer__background"},z4={class:"footer"},V4={class:"footer__box-top"},W4={class:"footer__box-bottom"},K4=pe({__name:"RFooter",props:{footer:{},api:{default:en.PROD},bigQueryConfig:{}},emits:["update:footer","sitemapClick"],setup(e,{expose:t,emit:n}){const r=e,{load:s}=yh(r.api),i=n;return t({loadData:async()=>{try{const a=await s("footer");i("update:footer",a)}catch(a){console.error(a)}}}),(a,l)=>a.footer?($(),X("div",j4,[Z("footer",z4,[Z("div",V4,[Q(h4),Q(s4)]),Z("div",W4,[Q(b4,{menu:a.footer.Menu,"big-query-config":a.bigQueryConfig,onElementClick:l[0]||(l[0]=c=>i("sitemapClick",c))},null,8,["menu","big-query-config"]),Q(H4,{socials:a.footer.Social},null,8,["socials"])])]),Q(k4)])):fe("",!0)}}),G4=Zs(K4,[["__scopeId","data-v-6987ad0c"]]),q4={class:"flex flex-col my-s-5 gap-s-3 mx-s-5"},Y4=pe({__name:"UserNavAvatarUnauthenticated",emits:["login"],setup(e){return(t,n)=>($(),X("div",q4,[Q(O(uz),{url:"https://static.r.pl/rpl-cdn/images/moje-r/lornetka-logo-r.png",alt:"",width:"100",class:"mx-auto"}),Q(O(at),{class:"m-0 text-center",variant:"h5","font-family":"secondary","font-weight":"bold"},{default:de(()=>[Le(" Twoje wakacje zawsze pod ręką! ")]),_:1}),Q(O(at),{class:"m-0 text-center",variant:"caption","font-family":"secondary"},{default:de(()=>[Le(" Załóż konto klienta już dziś i ciesz się korzyściami! ")]),_:1}),Q(O(Zi),{uppercase:"",color:"accent",onClick:n[0]||(n[0]=r=>t.$emit("login"))},{default:de(()=>[Le(" Zaloguj się ")]),_:1}),Q(O(Zi),{tag:"a",href:"/moje-rainbow/konto/zarejestruj",variant:"outlined",uppercase:""},{default:de(()=>[Le(" Załóż konto ")]),_:1})]))}}),J4={class:"pb-s-6"};Xc.ANCHOR;const X4=e=>{const{load:t}=yh(e);return{loadHeaderData:async()=>await t("menu"),loadFooterData:async()=>await t("footer")}};var oy={};const Z4={class:"error-page"},Q4={class:"error-page__content"},e8={key:0,class:"error-page__stack"},t8={class:"error-page__error-message"},n8=["innerHTML"],r8={class:"error-page__body"},s8={class:"error-page__text"},i8={href:"https://r.pl"},o8="Sprawdź, czy adres strony został wpisany prawidłowo lub przejdź do strony głównej i zacznij od początku",a8="Wystąpił problem po stronie naszego serwera. Spróbuj ponownie lub przejdź do strony głównej i zacznij od początku",l8=pe({__name:"error",async setup(e){var y,m;let t,n;const r=kt(),s=ga(),i=Xo("namespace",()=>oy.NAMESPACE??null),o=Xo("appName",()=>oy.NAME??null);Wn("enableDataTestId",!1);const{loadHeaderData:a,loadFooterData:l}=X4(r.public.rainbowApiEnv),c=((y=s.value)==null?void 0:y.statusCode)===404?"400":"500",u=((m=s.value)==null?void 0:m.statusCode)===404?o8:a8,f=(()=>{var h,_;return((h=s.value)==null?void 0:h.statusCode)===404?!1:!!(i.value==="rpl-test"||(_=o.value)!=null&&_.includes("-stage"))})(),[{data:p},{data:g}]=([t,n]=Qy(()=>Promise.all([dm("menu",()=>a()),dm("stopka",()=>l())])),t=await t,n(),t),v=te(null),w=te(null);return Wn("header",v),(h,_)=>{const b=UP;return $(),X("div",Z4,[O(p)?($(),se(O(X3),{key:0,ref_key:"header",ref:v,menu:O(p),"onUpdate:menu":_[0]||(_[0]=E=>xe(p)?p.value=E:null),schowek:!0,mobile:!h.$ua.isDesktop,api:O(r).public.rainbowApiEnv},null,8,["menu","mobile","api"])):fe("",!0),Z("div",Q4,[Q(O(hz),{class:"error-page__container"},{default:de(()=>{var E,R,S;return[O(f)?($(),X("div",e8,[Z("pre",t8,Ve((E=O(s))==null?void 0:E.message),1),(R=O(s))!=null&&R.stack?($(),X("div",{key:0,class:"error-page__error-stack",innerHTML:(S=O(s))==null?void 0:S.stack},null,8,n8)):fe("",!0)])):fe("",!0),Z("div",r8,[Q(b,null,{default:de(()=>[Z("div",{class:Ee(["error-page__image",`error-page__image--${O(c)}`])},null,2)]),_:1}),Z("div",s8,[Q(O(at),{variant:"h2",tag:"span",color:"primary"},{default:de(()=>[Le("Wiel")]),_:1}),Q(O(at),{variant:"h2","font-weight":"bold",tag:"span",color:"primary"},{default:de(()=>{var A,D;return[Le(Ve(`Błąd${(A=O(s))!=null&&A.statusCode?` ${(D=O(s))==null?void 0:D.statusCode}`:""}`),1)]}),_:1}),Q(O(at),{variant:"body1",tag:"p",color:"primary"},{default:de(()=>[Le(Ve(O(u)),1)]),_:1}),Z("a",i8,[Q(O(at),{variant:"body1",tag:"span",color:"primary"},{default:de(()=>[Le(" r.pl ")]),_:1})])])])]}),_:1})]),Ls(Q(O(G4),{ref_key:"footer",ref:w,footer:O(g),"onUpdate:footer":_[1]||(_[1]=E=>xe(g)?g.value=E:null),nuxt:!0},null,8,["footer"]),[[Dw,O(g)]])])}}}),c8={key:0},ay={__name:"nuxt-root",setup(e){const t=()=>null,n=De(),r=n.deferHydration();if(n.isHydrating){const l=n.hooks.hookOnce("app:error",r);Ht().beforeEach(l)}const s=!1;Wn(pa,ha()),n.hooks.callHookWith(l=>l.map(c=>c()),"vue:setup");const i=ga(),o=!1;qy((l,c,u)=>{if(n.hooks.callHook("vue:error",l,c,u).catch(d=>console.error("[nuxt] Error in `vue:error` hook",d)),JC(l)&&(l.fatal||l.unhandled))return n.runWithContext(()=>fi(l)),!1});const a=!1;return(l,c)=>($(),se(yp,{onResolve:O(r)},{default:de(()=>[O(o)?($(),X("div",c8)):O(i)?($(),se(O(l8),{key:1,error:O(i)},null,8,["error"])):O(a)?($(),se(O(t),{key:2,context:O(a)},null,8,["context"])):O(s)?($(),se(cs(O(s)),{key:3})):($(),se(O(Hz),{key:4}))]),_:1},8,["onResolve"]))}};let ly;{let e;ly=async function(){var o,a;if(e)return e;const r=!!((o=window.__NUXT__)!=null&&o.serverRendered||((a=document.getElementById("__NUXT_DATA__"))==null?void 0:a.dataset.ssr)==="true")?lR(ay):aR(ay),s=mC({vueApp:r});async function i(l){await s.callHook("app:error",l),s.payload.error=s.payload.error||ro(l)}r.config.errorHandler=i;try{await yC(s,Lz)}catch(l){i(l)}try{await s.hooks.callHook("app:created",r),await s.hooks.callHook("app:beforeMount",r),r.mount(hC),await s.hooks.callHook("app:mounted",r),await nn()}catch(l){i(l)}return r.config.errorHandler===i&&(r.config.errorHandler=void 0),r},e=ly().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{$H as $,Qy as A,dm as B,ve as C,Ag as D,Us as E,Ce as F,hz as G,te as H,nH as I,pS as J,Mt as K,x8 as L,Te as M,St as N,Be as O,mi as P,PH as Q,p8 as R,fp as S,Ls as T,RH as U,zn as V,Se as W,D8 as X,xH as Y,pn as Z,ot as _,$ as a,Cc as a$,UP as a0,d8 as a1,N8 as a2,xe as a3,Xo as a4,hS as a5,ha as a6,pB as a7,gB as a8,Ht as a9,L8 as aA,M8 as aB,w8 as aC,Tr as aD,cn as aE,nn as aF,F8 as aG,h8 as aH,k8 as aI,up as aJ,Dw as aK,$8 as aL,Gy as aM,C8 as aN,A8 as aO,P8 as aP,tR as aQ,Pp as aR,cm as aS,qC as aT,E8 as aU,At as aV,jw as aW,g8 as aX,Yn as aY,no as aZ,Fl as a_,lW as aa,GC as ab,S8 as ac,rt as ad,En as ae,CH as af,Mw as ag,kf as ah,gS as ai,Jy as aj,Ni as ak,DI as al,Az as am,Zs as an,T8 as ao,fn as ap,I8 as aq,fS as ar,u8 as as,_8 as at,gn as au,m8 as av,to as aw,f8 as ax,R8 as ay,O8 as az,Q as b,b0,fv as b1,bn as b2,Wn as b3,RI as b4,et as b5,uo as b6,al as b7,ar as b8,Rf as b9,U8 as ba,av as bb,ov as bc,KH as bd,NI as be,fi as bf,cs as bg,gi as bh,v8 as bi,Hn as bj,eH as bk,X4 as bl,X3 as bm,G4 as bn,b8 as bo,Nt as bp,mw as bq,cp as br,lp as bs,Zt as bt,y8 as bu,Md as bv,Tf as bw,X as c,pe as d,O as e,kt as f,se as g,at as h,oh as i,Z as j,fe as k,Le as l,Zi as m,Ee as n,Dt as o,rW as p,FS as q,dn as r,z as s,Ve as t,Zc as u,uz as v,de as w,rn as x,DH as y,De as z};
//# sourceMappingURL=B7Ee6uH9.js.map
