Files
sm-bm-plugin/public/assets/index-CcIbRcGw.js
2026-11-08 11:58:11 +01:00

6 lines
173 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LoginView-CoN6lc_t.js","assets/forms-S3v1cAC8.js","assets/oauth-zzthF4BZ.js","assets/RegisterView-DlWwK2ym.js","assets/ForgotView-YqrAf5BQ.js","assets/OAuthCallbackView-y44BGUaG.js","assets/OAuthRegisterView-C57lMCYc.js","assets/ResetView-no-hGF62.js","assets/DashboardView-8OqO7zsP.js","assets/PageHead.vue_vue_type_script_setup_true_lang-D514yUH-.js","assets/LoadState.vue_vue_type_script_setup_true_lang-CDuAEvCu.js","assets/ElectiveBar.vue_vue_type_script_setup_true_lang-uXXHXoAS.js","assets/markdown-CbtkjRI4.js","assets/ScheduleView-CbOVsdAH.js","assets/scrollToHash-9hW3Jv9D.js","assets/DeadlinesView-C9TVsPTA.js","assets/CoursesView-BlxTiwsR.js","assets/CourseView-CifcK3RZ.js","assets/ReadingItem.vue_vue_type_script_setup_true_lang-BVaBtpBQ.js","assets/ReadingsView-B298cfEB.js","assets/MaterialsView-Bju7BgTE.js","assets/MaterialView-BDKa-Qqe.js","assets/_plugin-vue_export-helper-DlAUqK2U.js","assets/MaterialView-D1GOdXKk.css","assets/ChecklistsView-JSiJ-dWC.js","assets/ChecklistView-CJlmAMf2.js","assets/presentations-_-GUnwH1.js","assets/SyllabiView-DLojIIhe.js","assets/QuizzesView-Cs6t-sCk.js","assets/quizzes-VJQgAI9c.js","assets/QuizView-8We_oNnM.js","assets/MoreView-BlBbue-L.js","assets/ProfileView-CU0Ytgzj.js","assets/MyPresentationsView-RIclp9xd.js","assets/PresentationSpeakerView-BWlQPu2Z.js","assets/DeckViewer.vue_vue_type_style_index_0_lang-CHvNiP0G.js","assets/engine-DDeQk6Ow.js","assets/engine-D54I7Duj.css","assets/DeckViewer-44NpA3H-.css","assets/clock-4r1aA6KU.js","assets/remote-aOKX75Mt.js","assets/PresentationSpeakerView-B_k_BZvQ.css","assets/PresentationRemoteView-BNZeCGj2.js","assets/log-Xlt5jeld.js","assets/PresentationRemoteView-DupVcsnc.css","assets/PresentationPublicView-jQN9Dnyg.js","assets/PresentationPublicView-BA_OfOyJ.css","assets/CastReceiverView-DP6r90Jy.js","assets/CastReceiverView-guIBZout.css","assets/NotFoundView-CXmp6-H0.js"])))=>i.map(i=>d[i]);
var eu=Object.defineProperty;var tu=(e,t,n)=>t in e?eu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Rn=(e,t,n)=>tu(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();function To(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const we={},pn=[],Ot=()=>{},El=()=>!1,er=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),tr=e=>e.startsWith("onUpdate:"),Fe=Object.assign,Ro=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},nu=Object.prototype.hasOwnProperty,ye=(e,t)=>nu.call(e,t),Z=Array.isArray,sn=e=>ys(e)==="[object Map]",Bt=e=>ys(e)==="[object Set]",ii=e=>ys(e)==="[object Date]",se=e=>typeof e=="function",Me=e=>typeof e=="string",lt=e=>typeof e=="symbol",be=e=>e!==null&&typeof e=="object",Sl=e=>(be(e)||se(e))&&se(e.then)&&se(e.catch),Tl=Object.prototype.toString,ys=e=>Tl.call(e),su=e=>ys(e).slice(8,-1),Rl=e=>ys(e)==="[object Object]",nr=e=>Me(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Xn=To(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),sr=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},ru=/-\w/g,tt=sr(e=>e.replace(ru,t=>t.slice(1).toUpperCase())),ou=/\B([A-Z])/g,ln=sr(e=>e.replace(ou,"-$1").toLowerCase()),rr=sr(e=>e.charAt(0).toUpperCase()+e.slice(1)),Pr=sr(e=>e?`on${rr(e)}`:""),At=(e,t)=>!Object.is(e,t),js=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Al=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},or=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let li;const ir=()=>li||(li=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ao(e){if(Z(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=Me(s)?cu(s):Ao(s);if(r)for(const o in r)t[o]=r[o]}return t}else if(Me(e)||be(e))return e}const iu=/;(?![^(]*\))/g,lu=/:([^]+)/,au=/"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;function cu(e){const t={};return e.replace(au,n=>n.startsWith("/*")?"":n).split(iu).forEach(n=>{if(n){const s=n.split(lu);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Ln(e){let t="";if(Me(e))t=e;else if(Z(e))for(let n=0;n<e.length;n++){const s=Ln(e[n]);s&&(t+=s+" ")}else if(be(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const uu="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",fu=To(uu);function xl(e){return!!e||e===""}function du(e,t,n){if(e.length!==t.length)return!1;let s=!0;for(let r=0;s&&r<e.length;r++)s=Ut(e[r],t[r],n);return s}function ai(e,t,n){if(e.size!==t.size)return!1;const s=Array.from(t),r=new Uint8Array(s.length);for(const o of e){let i=-1;for(let l=0;l<s.length;l++)if(!r[l]&&Ut(o,s[l],n)){i=l;break}if(i<0)return!1;r[i]=1}return!0}function hu(e,t,n){let s=sn(e),r=sn(t);if(s||r||(s=Bt(e),r=Bt(t),s||r))return s&&r?ai(e,t,n):!1;const o=Object.keys(e).length,i=Object.keys(t).length;if(o!==i)return!1;for(const l in e){const a=e.hasOwnProperty(l),c=t.hasOwnProperty(l);if(a&&!c||!a&&c||!Ut(e[l],t[l],n))return!1}return String(e)===String(t)}function ci(e,t,n,s){n||(n=[new Map,new Map]);const[r,o]=n;if(r.has(e)||o.has(t))return r.get(e)===t&&o.get(t)===e;r.set(e,t),o.set(t,e);const i=s(e,t,n);return r.delete(e),o.delete(t),i}function Ut(e,t,n){if(e===t)return!0;let s=ii(e),r=ii(t);return s||r?s&&r?e.getTime()===t.getTime():!1:(s=lt(e),r=lt(t),s||r?e===t:(s=Z(e),r=Z(t),s||r?s&&r?ci(e,t,n,du):!1:(s=be(e),r=be(t),s||r?!s||!r?!1:ci(e,t,n,hu):String(e)===String(t))))}function xo(e,t){return e.findIndex(n=>Ut(n,t))}const Cl=e=>!!(e&&e.__v_isRef===!0),Jt=e=>Me(e)?e:e==null?"":Z(e)||be(e)&&(e.toString===Tl||!se(e.toString))?Cl(e)?Jt(e.value):JSON.stringify(e,Ol,2):String(e),Ol=(e,t)=>Cl(t)?Ol(e,t.value):sn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[Mr(s,o)+" =>"]=r,n),{})}:Bt(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Mr(n))}:lt(t)?Mr(t):be(t)&&!Z(t)&&!Rl(t)?String(t):t,Mr=(e,t="")=>{var n;return lt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let ze;class Pl{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&ze&&(ze.active?(this.parent=ze,this.index=(ze.scopes||(ze.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes){const s=this.scopes.slice();for(t=0,n=s.length;t<n;t++)s[t].pause()}for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes){const r=this.scopes.slice();for(t=0,n=r.length;t<n;t++)r[t].resume()}const s=this.effects.slice();for(t=0,n=s.length;t<n;t++)s[t].resume()}}run(t){if(this._active){const n=ze;try{return ze=this,t()}finally{ze=n}}}on(){++this._on===1&&(this.prevScope=ze,ze=this)}off(){if(this._on>0&&--this._on===0){if(ze===this)ze=this.prevScope;else{let t=ze;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){const r=this.scopes.slice();for(n=0,s=r.length;n<s;n++)r[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function Ml(e){return new Pl(e)}function kl(){return ze}function pu(e,t=!1){ze&&ze.cleanups.push(e)}let Re;const kr=new WeakSet;class Il{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ze&&(ze.active?ze.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,kr.has(this)&&(kr.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Dl(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ui(this),Nl(this);const t=Re,n=pt;Re=this,pt=!0;try{return this.fn()}finally{jl(this),Re=t,pt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Po(t);this.deps=this.depsTail=void 0,ui(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?kr.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Qr(this)&&this.run()}get dirty(){return Qr(this)}}let Ll=0,es,ts;function Dl(e,t=!1){if(e.flags|=8,t){e.next=ts,ts=e;return}e.next=es,es=e}function Co(){Ll++}function Oo(){if(--Ll>0)return;if(ts){let t=ts;for(ts=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;es;){let t=es;for(es=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function Nl(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function jl(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),Po(s),mu(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function Qr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&($l(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function $l(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ls)||(e.globalVersion=ls,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Qr(e))))return;e.flags|=2;const t=e.dep,n=Re,s=pt;Re=e,pt=!0;try{Nl(e);const r=e.fn(e._value);(t.version===0||At(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{Re=n,pt=s,jl(e),e.flags&=-3}}function Po(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)Po(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function mu(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let pt=!0;const zl=[];function qt(){zl.push(pt),pt=!1}function Ht(){const e=zl.pop();pt=e===void 0?!0:e}function ui(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Re;Re=void 0;try{t()}finally{Re=n}}}let ls=0;class gu{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Mo{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Re||!pt||Re===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Re)n=this.activeLink=new gu(Re,this),Re.deps?(n.prevDep=Re.depsTail,Re.depsTail.nextDep=n,Re.depsTail=n):Re.deps=Re.depsTail=n,Vl(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=Re.depsTail,n.nextDep=void 0,Re.depsTail.nextDep=n,Re.depsTail=n,Re.deps===n&&(Re.deps=s)}return n}trigger(t){this.version++,ls++,this.notify(t)}notify(t){Co();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Oo()}}}function Vl(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)Vl(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Bs=new WeakMap,yn=Symbol(""),Xr=Symbol(""),as=Symbol("");function Ge(e,t,n){if(pt&&Re){let s=Bs.get(e);s||Bs.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new Mo),r.map=s,r.key=n),r.track()}}function $t(e,t,n,s,r,o){const i=Bs.get(e);if(!i){ls++;return}const l=a=>{a&&a.trigger()};if(Co(),t==="clear")i.forEach(l);else{const a=Z(e),c=a&&nr(n);if(a&&n==="length"){const u=Number(s);i.forEach((f,p)=>{(p==="length"||p===as||!lt(p)&&p>=u)&&l(f)})}else switch((n!==void 0||i.has(void 0))&&l(i.get(n)),c&&l(i.get(as)),t){case"add":a?c&&l(i.get("length")):(l(i.get(yn)),sn(e)&&l(i.get(Xr)));break;case"delete":a||(l(i.get(yn)),sn(e)&&l(i.get(Xr)));break;case"set":sn(e)&&l(i.get(yn));break}}Oo()}function yu(e,t){const n=Bs.get(e);return n&&n.get(t)}function An(e){const t=de(e);return t===e||(Ge(t,"iterate",as),it(e))?t:Mt(e)?Pt(e)?t.map(n=>on(ht(n))):t.map(on):t.map(ht)}function lr(e){return Ge(e=de(e),"iterate",as),e}function Tt(e,t){return Mt(e)?on(Pt(e)?ht(t):t):ht(t)}const vu={__proto__:null,[Symbol.iterator](){return Ir(this,Symbol.iterator,e=>Tt(this,e))},concat(...e){return An(this).concat(...e.map(t=>Z(t)?An(t):t))},entries(){return Ir(this,"entries",e=>(e[1]=Tt(this,e[1]),e))},every(e,t){return It(this,"every",e,t,void 0,arguments)},filter(e,t){return It(this,"filter",e,t,n=>n.map(s=>Tt(this,s)),arguments)},find(e,t){return It(this,"find",e,t,n=>Tt(this,n),arguments)},findIndex(e,t){return It(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return It(this,"findLast",e,t,n=>Tt(this,n),arguments)},findLastIndex(e,t){return It(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return It(this,"forEach",e,t,void 0,arguments)},includes(...e){return Lr(this,"includes",e)},indexOf(...e){return Lr(this,"indexOf",e)},join(e){return An(this).join(e)},lastIndexOf(...e){return Lr(this,"lastIndexOf",e)},map(e,t){return It(this,"map",e,t,void 0,arguments)},pop(){return Hn(this,"pop")},push(...e){return Hn(this,"push",e)},reduce(e,...t){return fi(this,"reduce",e,t)},reduceRight(e,...t){return fi(this,"reduceRight",e,t)},shift(){return Hn(this,"shift")},some(e,t){return It(this,"some",e,t,void 0,arguments)},splice(...e){return Hn(this,"splice",e)},toReversed(){return An(this).toReversed()},toSorted(e){return An(this).toSorted(e)},toSpliced(...e){return An(this).toSpliced(...e)},unshift(...e){return Hn(this,"unshift",e)},values(){return Ir(this,"values",e=>Tt(this,e))}};function Ir(e,t,n){const s=lr(e),r=s[t]();return s!==e&&!it(e)&&(r._next=r.next,r.next=()=>{const o=r._next();return o.done||(o.value=n(o.value)),o}),r}const _u=Array.prototype;function It(e,t,n,s,r,o){const i=lr(e),l=i!==e&&!it(e),a=i[t];if(a!==_u[t]){const f=a.apply(e,o);return l?ht(f):f}let c=n;i!==e&&(l?c=function(f,p){return n.call(this,Tt(e,f),p,e)}:n.length>2&&(c=function(f,p){return n.call(this,f,p,e)}));const u=a.call(i,c,s);return l&&r?r(u):u}function fi(e,t,n,s){const r=lr(e),o=r!==e&&!it(e);let i=n,l=!1;r!==e&&(o?(l=s.length===0,i=function(c,u,f){return l&&(l=!1,c=Tt(e,c)),n.call(this,c,Tt(e,u),f,e)}):n.length>3&&(i=function(c,u,f){return n.call(this,c,u,f,e)}));const a=r[t](i,...s);return l?Tt(e,a):a}function Lr(e,t,n){const s=de(e);Ge(s,"iterate",as);const r=s[t](...n);return(r===-1||r===!1)&&ar(n[0])?(n[0]=de(n[0]),s[t](...n)):r}function Hn(e,t,n=[]){qt(),Co();const s=de(e)[t].apply(e,n);return Oo(),Ht(),s}const bu=To("__proto__,__v_isRef,__isVue"),Fl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(lt));function wu(e){lt(e)||(e=String(e));const t=de(this);return Ge(t,"has",e),t.hasOwnProperty(e)}class Bl{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(r?o?Mu:Kl:o?Hl:ql).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=Z(t);if(!r){let a;if(i&&(a=vu[n]))return a;if(n==="hasOwnProperty")return wu}const l=Reflect.get(t,n,De(t)?t:s);if((lt(n)?Fl.has(n):bu(n))||(r||Ge(t,"get",n),o))return l;if(De(l)){const a=i&&nr(n)?l:l.value;return r&&be(a)?to(a):a}return be(l)?r?to(l):vs(l):l}}class Ul extends Bl{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];const i=Z(t)&&nr(n);if(!this._isShallow){const c=Mt(o);if(!it(s)&&!Mt(s)&&(o=de(o),s=de(s)),!i&&De(o)&&!De(s))return c||(o.value=s),!0}const l=i?Number(n)<t.length:ye(t,n),a=Reflect.set(t,n,s,De(t)?t:r);return t===de(r)&&a&&(l?At(s,o)&&$t(t,"set",n,s):$t(t,"add",n,s)),a}deleteProperty(t,n){const s=ye(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&s&&$t(t,"delete",n,void 0),r}has(t,n){const s=Reflect.has(t,n);return(!lt(n)||!Fl.has(n))&&Ge(t,"has",n),s}ownKeys(t){return Ge(t,"iterate",Z(t)?"length":yn),Reflect.ownKeys(t)}}class Eu extends Bl{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Su=new Ul,Tu=new Eu,Ru=new Ul(!0);const eo=e=>e,xs=e=>Reflect.getPrototypeOf(e);function Au(e,t,n){return function(...s){const r=this.__v_raw,o=de(r),i=sn(o),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,c=r[e](...s),u=n?eo:t?on:ht;return!t&&Ge(o,"iterate",a?Xr:yn),Fe(Object.create(c),{next(){const{value:f,done:p}=c.next();return p?{value:f,done:p}:{value:l?[u(f[0]),u(f[1])]:u(f),done:p}}})}}function Cs(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function xu(e,t){const n={get(r){const o=this.__v_raw,i=de(o),l=de(r);e||(At(r,l)&&Ge(i,"get",r),Ge(i,"get",l));const{has:a}=xs(i),c=t?eo:e?on:ht;if(a.call(i,r))return c(o.get(r));if(a.call(i,l))return c(o.get(l));o!==i&&o.get(r)},get size(){const r=this.__v_raw;return!e&&Ge(de(r),"iterate",yn),r.size},has(r){const o=this.__v_raw,i=de(o),l=de(r);return e||(At(r,l)&&Ge(i,"has",r),Ge(i,"has",l)),r===l?o.has(r):o.has(r)||o.has(l)},forEach(r,o){const i=this,l=i.__v_raw,a=de(l),c=t?eo:e?on:ht;return!e&&Ge(a,"iterate",yn),l.forEach((u,f)=>r.call(o,c(u),c(f),i))}};return Fe(n,e?{add:Cs("add"),set:Cs("set"),delete:Cs("delete"),clear:Cs("clear")}:{add(r){const o=de(this),i=xs(o),l=de(r),a=!t&&!it(r)&&!Mt(r)?l:r;return i.has.call(o,a)||At(r,a)&&i.has.call(o,r)||At(l,a)&&i.has.call(o,l)||(o.add(a),$t(o,"add",a,a)),this},set(r,o){!t&&!it(o)&&!Mt(o)&&(o=de(o));const i=de(this),{has:l,get:a}=xs(i);let c=l.call(i,r);c||(r=de(r),c=l.call(i,r));const u=a.call(i,r);return i.set(r,o),c?At(o,u)&&$t(i,"set",r,o):$t(i,"add",r,o),this},delete(r){const o=de(this),{has:i,get:l}=xs(o);let a=i.call(o,r);a||(r=de(r),a=i.call(o,r)),l&&l.call(o,r);const c=o.delete(r);return a&&$t(o,"delete",r,void 0),c},clear(){const r=de(this),o=r.size!==0,i=r.clear();return o&&$t(r,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=Au(r,e,t)}),n}function ko(e,t){const n=xu(e,t);return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(ye(n,r)&&r in s?n:s,r,o)}const Cu={get:ko(!1,!1)},Ou={get:ko(!1,!0)},Pu={get:ko(!0,!1)};const ql=new WeakMap,Hl=new WeakMap,Kl=new WeakMap,Mu=new WeakMap;function ku(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function vs(e){return Mt(e)?e:Io(e,!1,Su,Cu,ql)}function Gl(e){return Io(e,!1,Ru,Ou,Hl)}function to(e){return Io(e,!0,Tu,Pu,Kl)}function Io(e,t,n,s,r){if(!be(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const o=r.get(e);if(o)return o;const i=ku(su(e));if(i===0)return e;const l=new Proxy(e,i===2?s:n);return r.set(e,l),l}function Pt(e){return Mt(e)?Pt(e.__v_raw):!!(e&&e.__v_isReactive)}function Mt(e){return!!(e&&e.__v_isReadonly)}function it(e){return!!(e&&e.__v_isShallow)}function ar(e){return e?!!e.__v_raw:!1}function de(e){const t=e&&e.__v_raw;return t?de(t):e}function Lo(e){return!ye(e,"__v_skip")&&Object.isExtensible(e)&&Al(e,"__v_skip",!0),e}const ht=e=>be(e)?vs(e):e,on=e=>be(e)?to(e):e;function De(e){return e?e.__v_isRef===!0:!1}function X(e){return Wl(e,!1)}function jn(e){return Wl(e,!0)}function Wl(e,t){return De(e)?e:new Iu(e,t)}class Iu{constructor(t,n){this.dep=new Mo,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:de(t),this._value=n?t:ht(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||it(t)||Mt(t);t=s?t:de(t),At(t,n)&&(this._rawValue=t,this._value=s?t:ht(t),this.dep.trigger())}}function Pe(e){return De(e)?e.value:e}function Jm(e){return se(e)?e():Pe(e)}const Lu={get:(e,t,n)=>t==="__v_raw"?e:Pe(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return De(r)&&!De(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Jl(e){return Pt(e)?e:new Proxy(e,Lu)}function Du(e){const t=Z(e)?new Array(e.length):{};for(const n in e)t[n]=ju(e,n);return t}class Nu{constructor(t,n,s){this._object=t,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._key=lt(n)?n:String(n),this._raw=de(t);let r=!0,o=t;if(!Z(t)||lt(this._key)||!nr(this._key))do r=!ar(o)||it(o);while(r&&(o=o.__v_raw));this._shallow=r}get value(){let t=this._object[this._key];return this._shallow&&(t=Pe(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&De(this._raw[this._key])){const n=this._object[this._key];if(De(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return yu(this._raw,this._key)}}function ju(e,t,n){return new Nu(e,t,n)}class $u{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Mo(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ls-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&Re!==this)return Dl(this,!0),!0}get value(){const t=this.dep.track();return $l(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function zu(e,t,n=!1){let s,r;return se(e)?s=e:(s=e.get,r=e.set),new $u(s,r,n)}const Os={},Us=new WeakMap;let dn;function Vu(e,t=!1,n=dn){if(n){let s=Us.get(n);s||Us.set(n,s=[]),s.push(e)}}function Fu(e,t,n=we){const{immediate:s,deep:r,once:o,scheduler:i,augmentJob:l,call:a}=n,c=P=>r?P:it(P)||r===!1||r===0?zt(P,1):zt(P);let u,f,p,g,_=!1,w=!1;if(De(e)?(f=()=>e.value,_=it(e)):Pt(e)?(f=()=>c(e),_=!0):Z(e)?(w=!0,_=e.some(P=>Pt(P)||it(P)),f=()=>e.map(P=>{if(De(P))return P.value;if(Pt(P))return c(P);if(se(P))return a?a(P,2):P()})):se(e)?t?f=a?()=>a(e,2):e:f=()=>{if(p){qt();try{p()}finally{Ht()}}const P=dn;dn=u;try{return a?a(e,3,[g]):e(g)}finally{dn=P}}:f=Ot,t&&r){const P=f,N=r===!0?1/0:r;f=()=>zt(P(),N)}const S=kl(),E=()=>{u.stop(),S&&S.active&&Ro(S.effects,u)};if(o&&t){const P=t;t=(...N)=>{const Q=P(...N);return E(),Q}}let y=w?new Array(e.length).fill(Os):Os;const C=P=>{if(!(!(u.flags&1)||!u.dirty&&!P))if(t){const N=u.run();if(P||r||_||(w?N.some((Q,j)=>At(Q,y[j])):At(N,y))){p&&p();const Q=dn;dn=u;try{const j=[N,y===Os?void 0:w&&y[0]===Os?[]:y,g];y=N,a?a(t,3,j):t(...j)}finally{dn=Q}}}else u.run()};return l&&l(C),u=new Il(f),u.scheduler=i?()=>i(C,!1):C,g=P=>Vu(P,!1,u),p=u.onStop=()=>{const P=Us.get(u);if(P){if(a)a(P,4);else for(const N of P)N();Us.delete(u)}},t?s?C(!0):y=u.run():i?i(C.bind(null,!0),!0):u.run(),E.pause=u.pause.bind(u),E.resume=u.resume.bind(u),E.stop=E,E}function zt(e,t=1/0,n){if(t<=0||!be(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,De(e))zt(e.value,t,n);else if(Z(e))for(let s=0;s<e.length;s++)zt(e[s],t,n);else if(Bt(e)||sn(e))e.forEach(s=>{zt(s,t,n)});else if(Rl(e)){for(const s in e)zt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&zt(e[s],t,n)}return e}function _s(e,t,n,s){try{return s?e(...s):e()}catch(r){bs(r,t,n)}}function mt(e,t,n,s){if(se(e)){const r=_s(e,t,n,s);return r&&Sl(r)&&r.catch(o=>{bs(o,t,n)}),r}if(Z(e)){const r=[];for(let o=0;o<e.length;o++)r.push(mt(e[o],t,n,s));return r}}function bs(e,t,n,s=!0){const r=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||we;if(t){let l=t.parent;const a=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const u=l.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](e,a,c)===!1)return}l=l.parent}if(o){qt(),_s(o,null,10,[e,a,c]),Ht();return}}Bu(e,n,r,s,i)}function Bu(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}const et=[];let Et=-1;const Dn=[];let Xt=null,Pn=0;const Yl=Promise.resolve();let qs=null;function cr(e){const t=qs||Yl;return e?t.then(this?e.bind(this):e):t}function Uu(e){let t=Et+1,n=et.length;for(;t<n;){const s=t+n>>>1,r=et[s],o=cs(r);o<e||o===e&&r.flags&2?t=s+1:n=s}return t}function Do(e){if(!(e.flags&1)){const t=cs(e),n=et[et.length-1];!n||!(e.flags&2)&&t>=cs(n)?et.push(e):et.splice(Uu(t),0,e),e.flags|=1,Zl()}}function Zl(){qs||(qs=Yl.then(Xl))}function qu(e){if(!Z(e))Xt&&e.id===-1?Xt.splice(Pn+1,0,e):e.flags&1||(Dn.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)Dn.push(e[t]);Zl()}function di(e,t,n=Et+1){for(;n<et.length;n++){const s=et[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;et.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function Ql(e){if(Dn.length){const t=[...new Set(Dn)].sort((n,s)=>cs(n)-cs(s));if(Dn.length=0,Xt){for(let n=0;n<t.length;n++)Xt.push(t[n]);return}for(Xt=t,Pn=0;Pn<Xt.length;Pn++){const n=Xt[Pn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Xt=null,Pn=0}}const cs=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Xl(e){try{for(Et=0;Et<et.length;Et++){const t=et[Et];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),_s(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Et<et.length;Et++){const t=et[Et];t&&(t.flags&=-2)}Et=-1,et.length=0,Ql(),qs=null,(et.length||Dn.length)&&Xl()}}let Ue=null,ea=null;function Hs(e){const t=Ue;return Ue=e,ea=e&&e.type.__scopeId||null,t}function In(e,t=Ue,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Ws(-1);const o=Hs(t),i=Ft.length;let l;try{l=e(...r)}finally{for(let a=Ft.length;a>i;a--)Bo();Hs(o),s._d&&Ws(1)}return l};return s._n=!0,s._c=!0,s._d=!0,s}function Hu(e,t){if(Ue===null)return e;const n=mr(Ue),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[o,i,l,a=we]=t[r];o&&(se(o)&&(o={mounted:o,updated:o}),o.deep&&zt(i),s.push({dir:o,instance:n,value:i,oldValue:void 0,arg:l,modifiers:a}))}return e}function cn(e,t,n,s){const r=e.dirs,o=t&&t.dirs;for(let i=0;i<r.length;i++){const l=r[i];o&&(l.oldValue=o[i].value);let a=l.dir[s];a&&(qt(),mt(a,n,8,[e.el,l,e,t]),Ht())}}function $s(e,t){if(Be){let n=Be.provides;const s=Be.parent&&Be.parent.provides;s===n&&(n=Be.provides=Object.create(s)),n[e]=t}}function dt(e,t,n=!1){const s=Uo();if(s||_n){let r=_n?_n._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&se(t)?t.call(s&&s.proxy):t}}function Ku(){return!!(Uo()||_n)}const Gu=Symbol.for("v-scx"),Wu=()=>dt(Gu);function vn(e,t,n){return ta(e,t,n)}function ta(e,t,n=we){const{immediate:s,deep:r,flush:o,once:i}=n,l=Fe({},n),a=t&&s||!t&&o!=="post";let c;if(zn){if(o==="sync"){const g=Wu();c=g.__watcherHandles||(g.__watcherHandles=[])}else if(!a){const g=()=>{};return g.stop=Ot,g.resume=Ot,g.pause=Ot,g}}const u=Be;l.call=(g,_,w)=>mt(g,u,_,w);let f=!1;o==="post"?l.scheduler=g=>{Ze(g,u&&u.suspense)}:o!=="sync"&&(f=!0,l.scheduler=(g,_)=>{_?g():Do(g)}),l.augmentJob=g=>{t&&(g.flags|=4),f&&(g.flags|=2,u&&(g.id=u.uid,g.i=u))};const p=Fu(e,t,l);return zn&&(c?c.push(p):a&&p()),p}function Ju(e,t,n){const s=this.proxy,r=Me(e)?e.includes(".")?na(s,e):()=>s[e]:e.bind(s,s);let o;se(t)?o=t:(o=t.handler,n=t);const i=ws(this),l=ta(r,o.bind(s),n);return i(),l}function na(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}const Yt=new WeakMap,sa=Symbol("_vte"),ur=e=>e.__isTeleport,hn=e=>e&&(e.disabled||e.disabled===""),Yu=e=>e&&(e.defer||e.defer===""),hi=e=>typeof SVGElement<"u"&&e instanceof SVGElement,pi=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,no=(e,t)=>{const n=e&&e.to;return Me(n)?t?t(n):null:n},Zu={name:"Teleport",__isTeleport:!0,process(e,t,n,s,r,o,i,l,a,c){const{mc:u,pc:f,pbc:p,o:{insert:g,querySelector:_,createText:w,createComment:S,parentNode:E}}=c,y=hn(t.props);let{dynamicChildren:C}=t;const P=(j,F,B)=>{j.shapeFlag&16&&u(j.children,F,B,r,o,i,l,a)},N=(j=t)=>{const F=hn(j.props),B=j.target=no(j.props,_),ie=so(B,j,w,g);B&&(i!=="svg"&&hi(B)?i="svg":i!=="mathml"&&pi(B)&&(i="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add(B),F||(P(j,B,ie),Yn(j,!1)))},Q=j=>{const F=()=>{if(Yt.get(j)===F){if(Yt.delete(j),hn(j.props)){const B=E(j.el)||n;P(j,B,j.anchor),Yn(j,!0)}N(j)}};Yt.set(j,F),Ze(F,o)};if(e==null){const j=t.el=w(""),F=t.anchor=w("");if(g(j,n,s),g(F,n,s),Yu(t.props)||o&&o.pendingBranch){Q(t);return}y&&(P(t,n,F),Yn(t,!0)),N()}else{t.el=e.el;const j=t.anchor=e.anchor,F=Yt.get(e);if(F){F.flags|=8,Yt.delete(e),Q(t);return}t.targetStart=e.targetStart;const B=t.target=e.target,ie=t.targetAnchor=e.targetAnchor,L=hn(e.props),xe=L?n:B,Ce=L?j:ie;if(i==="svg"||hi(B)?i="svg":(i==="mathml"||pi(B))&&(i="mathml"),C?(p(e.dynamicChildren,C,xe,r,o,i,l),Fo(e,t,!0)):a||f(e,t,xe,Ce,r,o,i,l,!1),y)L?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Ps(t,n,j,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const q=no(t.props,_);q&&(t.target=q,Ps(t,q,null,c,0))}else L&&Ps(t,B,ie,c,1);Yn(t,y)}},remove(e,t,n,{um:s,o:{remove:r}},o){const{shapeFlag:i,children:l,anchor:a,targetStart:c,targetAnchor:u,target:f,props:p}=e,g=hn(p),_=o||!g,w=Yt.get(e);if(w&&(w.flags|=8,Yt.delete(e)),f&&(r(c),r(u)),o&&r(a),!w&&(g||f)&&i&16)for(let S=0;S<l.length;S++){const E=l[S];s(E,t,n,_,!!E.dynamicChildren)}},move:Ps,hydrate:Qu};function Ps(e,t,n,{o:{insert:s},m:r},o=2){o===0&&s(e.targetAnchor,t,n);const{el:i,anchor:l,shapeFlag:a,children:c,props:u}=e,f=o===2;if(f&&s(i,t,n),!Yt.has(e)&&(!f||hn(u))&&a&16)for(let p=0;p<c.length;p++)r(c[p],t,n,2);f&&s(l,t,n)}function Qu(e,t,n,s,r,o,{o:{nextSibling:i,parentNode:l,querySelector:a,insert:c,createText:u}},f){function p(S,E){let y=E;for(;y;){if(y&&y.nodeType===8){if(y.data==="teleport start anchor")t.targetStart=y;else if(y.data==="teleport anchor"){t.targetAnchor=y,S._lpa=t.targetAnchor&&i(t.targetAnchor);break}}y=i(y)}}function g(S,E){E.anchor=f(i(S),E,l(S),n,s,r,o)}const _=t.target=no(t.props,a),w=hn(t.props);if(_){const S=_._lpa||_.firstChild;t.shapeFlag&16&&(w?(g(e,t),p(_,S),t.targetAnchor||so(_,t,u,c,l(e)===_?e:null)):(t.anchor=i(e),p(_,S),t.targetAnchor||so(_,t,u,c),f(S&&i(S),t,_,n,s,r,o))),Yn(t,w)}else w&&t.shapeFlag&16&&(g(e,t),t.targetStart=e,t.targetAnchor=i(e));return t.anchor&&i(t.anchor)}const Ym=Zu;function Yn(e,t){const n=e.ctx;if(n&&n.ut){let s,r;for(t?(s=e.el,r=e.anchor):(s=e.targetStart,r=e.targetAnchor);s&&s!==r;)s.nodeType===1&&s.setAttribute("data-v-owner",n.uid),s=s.nextSibling;n.ut()}}function so(e,t,n,s,r=null){const o=t.targetStart=n(""),i=t.targetAnchor=n("");return o[sa]=i,e&&(s(o,e,r),s(i,e,r)),i}const Dr=Symbol("_leaveCb");function Xu(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==kt){t=n;break}}return t}function ra(e){if(!fr(e))return ur(e.type)&&e.children?Xu(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&se(n.default))return n.default()}}function No(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const n=e.component.subTree;No(ur(n.type)&&ra(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function En(e,t){return se(e)?Fe({name:e.name},t,{setup:e}):e}function Zm(){const e=Uo();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function jo(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function mi(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Ks=new WeakMap;function ns(e,t,n,s,r=!1){if(Z(e)){e.forEach((w,S)=>ns(w,t&&(Z(t)?t[S]:t),n,s,r));return}if(Nn(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&ns(e,t,n,s.component.subTree);return}const o=s.shapeFlag&4?mr(s.component):s.el,i=r?null:o,{i:l,r:a}=e,c=t&&t.r,u=l.refs===we?l.refs={}:l.refs,f=l.setupState,p=de(f),g=f===we?El:w=>mi(u,w)?!1:ye(p,w),_=(w,S)=>!(S&&mi(u,S));if(c!=null&&c!==a){if(gi(t),Me(c))u[c]=null,g(c)&&(f[c]=null);else if(De(c)){const w=t;_(c,w.k)&&(c.value=null),w.k&&(u[w.k]=null)}}if(se(a))_s(a,l,12,[i,u]);else{const w=Me(a),S=De(a);if(w||S){const E=()=>{if(e.f){const y=w?g(a)?f[a]:u[a]:_()||!e.k?a.value:u[e.k];if(r)Z(y)&&Ro(y,o);else if(Z(y))y.includes(o)||y.push(o);else if(w)u[a]=[o],g(a)&&(f[a]=u[a]);else{const C=[o];_(a,e.k)&&(a.value=C),e.k&&(u[e.k]=C)}}else w?(u[a]=i,g(a)&&(f[a]=i)):S&&(_(a,e.k)&&(a.value=i),e.k&&(u[e.k]=i))};if(i){const y=()=>{E(),Ks.delete(e)};y.id=-1,Ks.set(e,y),Ze(y,n)}else gi(e),E()}}}function gi(e){const t=Ks.get(e);t&&(t.flags|=8,Ks.delete(e))}const yi=e=>e.nodeType===8;ir().requestIdleCallback;ir().cancelIdleCallback;function ef(e,t){if(yi(e)&&e.data==="["){let n=1,s=e.nextSibling;for(;s;){if(s.nodeType===1){if(t(s)===!1)break}else if(yi(s))if(s.data==="]"){if(--n===0)break}else s.data==="["&&n++;s=s.nextSibling}}else t(e)}const Nn=e=>!!e.type.__asyncLoader;function Qm(e){se(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:s,delay:r=200,hydrate:o,timeout:i,suspensible:l=!0,onError:a}=e;let c=null,u,f=0;const p=()=>(f++,c=null,g()),g=()=>{let _;return c||(_=c=t().catch(w=>{if(w=w instanceof Error?w:new Error(String(w)),a)return new Promise((S,E)=>{a(w,()=>S(p()),()=>E(w),f+1)});throw w}).then(w=>_!==c&&c?c:(w&&(w.__esModule||w[Symbol.toStringTag]==="Module")&&(w=w.default),u=w,w)))};return En({name:"AsyncComponentWrapper",__asyncLoader:g,__asyncHydrate(_,w,S){const E=_.isConnected;let y=!1;(w.bu||(w.bu=[])).push(()=>y=!0);const C=()=>{y||!_.parentNode||E&&!_.isConnected||S()},P=o?()=>{const N=o(C,Q=>ef(_,Q));N&&(w.bum||(w.bum=[])).push(N)}:C;u?P():g().then(()=>!w.isUnmounted&&P())},get __asyncResolved(){return u},setup(){const _=Be;if(jo(_),u)return()=>Ms(u,_);const w=N=>{c=null,bs(N,_,13,!s)};if(l&&_.suspense||zn)return g().then(N=>()=>Ms(N,_)).catch(N=>(w(N),()=>s?Ee(s,{error:N}):null));const S=X(!1),E=X(),y=X(!!r);let C,P;return $o(()=>{C!=null&&clearTimeout(C),P!=null&&clearTimeout(P)}),r&&(P=setTimeout(()=>{_.isUnmounted||(y.value=!1)},r)),i!=null&&(C=setTimeout(()=>{if(!_.isUnmounted&&!S.value&&!E.value){const N=new Error(`Async component timed out after ${i}ms.`);w(N),E.value=N}},i)),g().then(()=>{_.isUnmounted||(S.value=!0,_.parent&&fr(_.parent.vnode)&&_.parent.update())}).catch(N=>{if(_.isUnmounted){c=null;return}w(N),E.value=N}),()=>{if(S.value&&u)return Ms(u,_);if(E.value&&s)return Ee(s,{error:E.value});if(n&&!y.value)return Ms(n,_)}}})}function Ms(e,t){const{ref:n,props:s,children:r,ce:o}=t.vnode,i=Ee(e,s,r);return i.ref=n,i.ce=o,delete t.vnode.ce,i}const fr=e=>e.type.__isKeepAlive;function tf(e,t){oa(e,"a",t)}function nf(e,t){oa(e,"da",t)}function oa(e,t,n=Be){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(dr(t,s,n),n){let r=n.parent;for(;r&&r.parent;)fr(r.parent.vnode)&&sf(s,t,n,r),r=r.parent}}function sf(e,t,n,s){const r=dr(t,e,s,!0);$o(()=>{Ro(s[t],r)},n)}function dr(e,t,n=Be,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{qt();const l=ws(n),a=mt(t,n,e,i);return l(),Ht(),a});return s?r.unshift(o):r.push(o),o}}const Kt=e=>(t,n=Be)=>{(!zn||e==="sp")&&dr(e,(...s)=>t(...s),n)},rf=Kt("bm"),of=Kt("m"),lf=Kt("bu"),af=Kt("u"),cf=Kt("bum"),$o=Kt("um"),uf=Kt("sp"),ff=Kt("rtg"),df=Kt("rtc");function hf(e,t=Be){dr("ec",e,t)}const pf="components";function ia(e,t){return gf(pf,e,!0,t)||e}const mf=Symbol.for("v-ndc");function gf(e,t,n=!0,s=!1){const r=Ue||Be;if(r){const o=r.type;{const l=ed(o,!1);if(l&&(l===t||l===tt(t)||l===rr(tt(t))))return o}const i=vi(r[e]||o[e],t)||vi(r.appContext[e],t);return!i&&s?o:i}}function vi(e,t){return e&&(e[t]||e[tt(t)]||e[rr(tt(t))])}function _i(e,t,n,s){let r;const o=n,i=Z(e);if(i||Me(e)){const l=i&&Pt(e);let a=!1,c=!1;l&&(a=!it(e),c=Mt(e),e=lr(e)),r=new Array(e.length);for(let u=0,f=e.length;u<f;u++)r[u]=t(a?c?on(ht(e[u])):ht(e[u]):e[u],u,void 0,o)}else if(typeof e=="number"){r=new Array(e);for(let l=0;l<e;l++)r[l]=t(l+1,l,void 0,o)}else if(be(e))if(e[Symbol.iterator])r=Array.from(e,(l,a)=>t(l,a,void 0,o));else{const l=Object.keys(e);r=new Array(l.length);for(let a=0,c=l.length;a<c;a++){const u=l[a];r[a]=t(e[u],u,a,o)}}else r=[];return r}function yf(e,t,n,s,r,o){if(n==null&&(n={}),Ue.ce||Ue.parent&&Nn(Ue.parent)&&Ue.parent.ce){const c=o!=null&&n.key==null?Fe({},n,{key:o}):n,u=Object.keys(c).length>0;return t!=="default"&&(c.name=t),Xe(),fs(nt,null,[Ee("slot",c,s)],u?-2:64)}let i=e[t];i&&i._c&&(i._d=!1);const l=Ft.length;Xe();let a;try{const c=i&&la(i(n)),u=n.key||o||c&&c.key;a=fs(nt,{key:(u&&!lt(u)?u:`_${t}`)+(!c&&s?"_fb":"")},c||(s?s():[]),c&&e._===1?64:-2)}catch(c){for(let u=Ft.length;u>l;u--)Bo();throw c}finally{i&&i._c&&(i._d=!0)}return a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),a}function la(e){return e.some(t=>ds(t)?!(t.type===kt||t.type===nt&&!la(t.children)):!0)?e:null}const ro=e=>e?Aa(e)?mr(e):ro(e.parent):null,ss=Fe(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=>ro(e.parent),$root:e=>ro(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ca(e),$forceUpdate:e=>e.f||(e.f=()=>{Do(e.update)}),$nextTick:e=>e.n||(e.n=cr.bind(e.proxy)),$watch:e=>Ju.bind(e)}),Nr=(e,t)=>e!==we&&!e.__isScriptSetup&&ye(e,t),vf={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:l,appContext:a}=e;if(t[0]!=="$"){const p=i[t];if(p!==void 0)switch(p){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(Nr(s,t))return i[t]=1,s[t];if(r!==we&&ye(r,t))return i[t]=2,r[t];if(ye(o,t))return i[t]=3,o[t];if(n!==we&&ye(n,t))return i[t]=4,n[t];oo&&(i[t]=0)}}const c=ss[t];let u,f;if(c)return t==="$attrs"&&Ge(e.attrs,"get",""),c(e);if((u=l.__cssModules)&&(u=u[t]))return u;if(n!==we&&ye(n,t))return i[t]=4,n[t];if(f=a.config.globalProperties,ye(f,t))return f[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return Nr(r,t)?(r[t]=n,!0):s!==we&&ye(s,t)?(s[t]=n,!0):ye(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,props:o,type:i}},l){let a;return!!(n[l]||e!==we&&l[0]!=="$"&&ye(e,l)||Nr(t,l)||ye(o,l)||ye(s,l)||ye(ss,l)||ye(r.config.globalProperties,l)||(a=i.__cssModules)&&a[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ye(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function bi(e){return Z(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let oo=!0;function _f(e){const t=ca(e),n=e.proxy,s=e.ctx;oo=!1,t.beforeCreate&&wi(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:l,provide:a,inject:c,created:u,beforeMount:f,mounted:p,beforeUpdate:g,updated:_,activated:w,deactivated:S,beforeDestroy:E,beforeUnmount:y,destroyed:C,unmounted:P,render:N,renderTracked:Q,renderTriggered:j,errorCaptured:F,serverPrefetch:B,expose:ie,inheritAttrs:L,components:xe,directives:Ce,filters:q}=t;if(c&&bf(c,s,null),i)for(const G in i){const re=i[G];se(re)&&(s[G]=re.bind(n))}if(r){const G=r.call(n,n);be(G)&&(e.data=vs(G))}if(oo=!0,o)for(const G in o){const re=o[G],Ne=se(re)?re.bind(n,n):se(re.get)?re.get.bind(n,n):Ot,pe=!se(re)&&se(re.set)?re.set.bind(n):Ot,Te=ne({get:Ne,set:pe});Object.defineProperty(s,G,{enumerable:!0,configurable:!0,get:()=>Te.value,set:ke=>Te.value=ke})}if(l)for(const G in l)aa(l[G],s,n,G);if(a){const G=se(a)?a.call(n):a;Reflect.ownKeys(G).forEach(re=>{$s(re,G[re])})}u&&wi(u,e,"c");function ee(G,re){Z(re)?re.forEach(Ne=>G(Ne.bind(n))):re&&G(re.bind(n))}if(ee(rf,f),ee(of,p),ee(lf,g),ee(af,_),ee(tf,w),ee(nf,S),ee(hf,F),ee(df,Q),ee(ff,j),ee(cf,y),ee($o,P),ee(uf,B),Z(ie))if(ie.length){const G=e.exposed||(e.exposed={});ie.forEach(re=>{Object.defineProperty(G,re,{get:()=>n[re],set:Ne=>n[re]=Ne,enumerable:!0})})}else e.exposed||(e.exposed={});N&&e.render===Ot&&(e.render=N),L!=null&&(e.inheritAttrs=L),xe&&(e.components=xe),Ce&&(e.directives=Ce),B&&jo(e)}function bf(e,t,n=Ot){Z(e)&&(e=io(e));for(const s in e){const r=e[s];let o;be(r)?"default"in r?o=dt(r.from||s,r.default,!0):o=dt(r.from||s):o=dt(r),De(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o}}function wi(e,t,n){mt(Z(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function aa(e,t,n,s){let r=s.includes(".")?na(n,s):()=>n[s];if(Me(e)){const o=t[e];se(o)&&vn(r,o)}else if(se(e))vn(r,e.bind(n));else if(be(e))if(Z(e))e.forEach(o=>aa(o,t,n,s));else{const o=se(e.handler)?e.handler.bind(n):t[e.handler];se(o)&&vn(r,o,e)}}function ca(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let a;return l?a=l:!r.length&&!n&&!s?a=t:(a={},r.length&&r.forEach(c=>Gs(a,c,i,!0)),Gs(a,t,i)),be(t)&&o.set(t,a),a}function Gs(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&Gs(e,o,n,!0),r&&r.forEach(i=>Gs(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=wf[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const wf={data:Ei,props:Si,emits:Si,methods:Zn,computed:Zn,beforeCreate:Ye,created:Ye,beforeMount:Ye,mounted:Ye,beforeUpdate:Ye,updated:Ye,beforeDestroy:Ye,beforeUnmount:Ye,destroyed:Ye,unmounted:Ye,activated:Ye,deactivated:Ye,errorCaptured:Ye,serverPrefetch:Ye,components:Zn,directives:Zn,watch:Sf,provide:Ei,inject:Ef};function Ei(e,t){return t?e?function(){return Fe(se(e)?e.call(this,this):e,se(t)?t.call(this,this):t)}:t:e}function Ef(e,t){return Zn(io(e),io(t))}function io(e){if(Z(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ye(e,t){return e?[...new Set([].concat(e,t))]:t}function Zn(e,t){return e?Fe(Object.create(null),e,t):t}function Si(e,t){return e?Z(e)&&Z(t)?[...new Set([...e,...t])]:Fe(Object.create(null),bi(e),bi(t??{})):t}function Sf(e,t){if(!e)return t;if(!t)return e;const n=Fe(Object.create(null),e);for(const s in t)n[s]=Ye(e[s],t[s]);return n}function ua(){return{app:null,config:{isNativeTag:El,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 Tf=0;function Rf(e,t){return function(s,r=null){se(s)||(s=Fe({},s)),r!=null&&!be(r)&&(r=null);const o=ua(),i=new WeakSet,l=[];let a=!1;const c=o.app={_uid:Tf++,_component:s,_props:r,_container:null,_context:o,_instance:null,version:nd,get config(){return o.config},set config(u){},use(u,...f){return i.has(u)||(u&&se(u.install)?(i.add(u),u.install(c,...f)):se(u)&&(i.add(u),u(c,...f))),c},mixin(u){return o.mixins.includes(u)||o.mixins.push(u),c},component(u,f){return f?(o.components[u]=f,c):o.components[u]},directive(u,f){return f?(o.directives[u]=f,c):o.directives[u]},mount(u,f,p){if(!a){const g=c._ceVNode||Ee(s,r);return g.appContext=o,p===!0?p="svg":p===!1&&(p=void 0),e(g,u,p),a=!0,c._container=u,u.__vue_app__=c,mr(g.component)}},onUnmount(u){l.push(u)},unmount(){a&&(mt(l,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,f){return o.provides[u]=f,c},runWithContext(u){const f=_n;_n=c;try{return u()}finally{_n=f}}};return c}}let _n=null;const Af=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${tt(t)}Modifiers`]||e[`${ln(t)}Modifiers`];function xf(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||we;let r=n;const o=t.startsWith("update:"),i=o&&Af(s,t.slice(7));i&&(i.trim&&(r=n.map(u=>Me(u)?u.trim():u)),i.number&&(r=r.map(or)));let l,a=s[l=Pr(t)]||s[l=Pr(tt(t))];!a&&o&&(a=s[l=Pr(ln(t))]),a&&mt(a,e,6,r);const c=s[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,mt(c,e,6,r)}}const Cf=new WeakMap;function fa(e,t,n=!1){const s=n?Cf:t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},l=!1;if(!se(e)){const a=c=>{const u=fa(c,t,!0);u&&(l=!0,Fe(i,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!o&&!l?(be(e)&&s.set(e,null),null):(Z(o)?o.forEach(a=>i[a]=null):Fe(i,o),be(e)&&s.set(e,i),i)}function hr(e,t){return!e||!er(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),ye(e,t[0].toLowerCase()+t.slice(1))||ye(e,ln(t))||ye(e,t))}function Ti(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:i,attrs:l,emit:a,render:c,renderCache:u,props:f,data:p,setupState:g,ctx:_,inheritAttrs:w}=e,S=Hs(e);let E,y;try{if(n.shapeFlag&4){const P=r||s,N=P;E=Rt(c.call(N,P,u,f,g,p,_)),y=l}else{const P=t;E=Rt(P.length>1?P(f,{attrs:l,slots:i,emit:a}):P(f,null)),y=t.props?l:Of(l)}}catch(P){Ft.length=0,bs(P,e,1),E=Ee(kt)}let C=E;if(y&&w!==!1){const P=Object.keys(y),{shapeFlag:N}=C;P.length&&N&7&&(o&&P.some(tr)&&(y=Pf(y,o)),C=$n(C,y,!1,!0))}if(n.dirs&&(C=$n(C,null,!1,!0),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition){const P=ur(C.type)&&ra(C)||C;No(P,n.transition)}return E=C,Hs(S),E}const Of=e=>{let t;for(const n in e)(n==="class"||n==="style"||er(n))&&((t||(t={}))[n]=e[n]);return t},Pf=(e,t)=>{const n={};for(const s in e)(!tr(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Mf(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:l,patchFlag:a}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return s?Ri(s,i,c):!!i;if(a&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const p=u[f];if(da(i,s,p)&&!hr(c,p))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:s===i?!1:s?i?Ri(s,i,c):!0:!!i;return!1}function Ri(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const o=s[r];if(da(t,e,o)&&!hr(n,o))return!0}return!1}function da(e,t,n){const s=e[n],r=t[n];return n==="style"&&be(s)&&be(r)?!Ut(s,r):s!==r}function kf({vnode:e,parent:t,suspense:n},s){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.suspense.vnode.el=r.el=s,e=r),r===e)(e=t.vnode).el=s,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=s)}const ha={},pa=()=>Object.create(ha),ma=e=>Object.getPrototypeOf(e)===ha;function If(e,t,n,s=!1){const r={},o=pa();e.propsDefaults=Object.create(null),ga(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:Gl(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function Lf(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,l=de(r),[a]=e.propsOptions;let c=!1;if((s||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let p=u[f];if(hr(e.emitsOptions,p))continue;const g=t[p];if(a)if(ye(o,p))g!==o[p]&&(o[p]=g,c=!0);else{const _=tt(p);r[_]=lo(a,l,_,g,e,!1)}else g!==o[p]&&(o[p]=g,c=!0)}}}else{ga(e,t,r,o)&&(c=!0);let u;for(const f in l)(!t||!ye(t,f)&&((u=ln(f))===f||!ye(t,u)))&&(a?n&&(n[f]!==void 0||n[u]!==void 0)&&(r[f]=lo(a,l,f,void 0,e,!0)):delete r[f]);if(o!==l)for(const f in o)(!t||!ye(t,f))&&(delete o[f],c=!0)}c&&$t(e.attrs,"set","")}function ga(e,t,n,s){const[r,o]=e.propsOptions;let i=!1,l;if(t)for(let a in t){if(Xn(a))continue;const c=t[a];let u;r&&ye(r,u=tt(a))?!o||!o.includes(u)?n[u]=c:(l||(l={}))[u]=c:hr(e.emitsOptions,a)||(!(a in s)||c!==s[a])&&(s[a]=c,i=!0)}if(o){const a=de(n),c=l||we;for(let u=0;u<o.length;u++){const f=o[u];n[f]=lo(r,a,f,c[f],e,!ye(c,f))}}return i}function lo(e,t,n,s,r,o){const i=e[n];if(i!=null){const l=ye(i,"default");if(l&&s===void 0){const a=i.default;if(i.type!==Function&&!i.skipFactory&&se(a)){const{propsDefaults:c}=r;if(n in c)s=c[n];else{const u=ws(r);s=c[n]=a.call(null,t),u()}}else s=a;r.ce&&r.ce._setProp(n,s)}i[0]&&(o&&!l?s=!1:i[1]&&(s===""||s===ln(n))&&(s=!0))}return s}const Df=new WeakMap;function ya(e,t,n=!1){const s=n?Df:t.propsCache,r=s.get(e);if(r)return r;const o=e.props,i={},l=[];let a=!1;if(!se(e)){const u=f=>{a=!0;const[p,g]=ya(f,t,!0);Fe(i,p),g&&l.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!a)return be(e)&&s.set(e,pn),pn;if(Z(o))for(let u=0;u<o.length;u++){const f=tt(o[u]);Ai(f)&&(i[f]=we)}else if(o)for(const u in o){const f=tt(u);if(Ai(f)){const p=o[u],g=i[f]=Z(p)||se(p)?{type:p}:Fe({},p),_=g.type;let w=!1,S=!0;if(Z(_))for(let E=0;E<_.length;++E){const y=_[E],C=se(y)&&y.name;if(C==="Boolean"){w=!0;break}else C==="String"&&(S=!1)}else w=se(_)&&_.name==="Boolean";g[0]=w,g[1]=S,(w||ye(g,"default"))&&l.push(f)}}const c=[i,l];return be(e)&&s.set(e,c),c}function Ai(e){return e[0]!=="$"&&!Xn(e)}const zo=e=>e==="_"||e==="_ctx"||e==="$stable",Vo=e=>Z(e)?e.map(Rt):[Rt(e)],Nf=(e,t,n)=>{if(t._n)return t;const s=In((...r)=>Vo(t(...r)),n);return s._c=!1,s},va=(e,t,n)=>{const s=e._ctx;for(const r in e){if(zo(r))continue;const o=e[r];if(se(o))t[r]=Nf(r,o,s);else if(o!=null){const i=Vo(o);t[r]=()=>i}}},_a=(e,t)=>{const n=Vo(t);e.slots.default=()=>n},ba=(e,t,n)=>{for(const s in t)(n||!zo(s))&&(e[s]=t[s])},jf=(e,t,n)=>{const s=e.slots=pa();if(e.vnode.shapeFlag&32){const r=t._;r?(ba(s,t,n),n&&Al(s,"_",r,!0)):va(t,s)}else t&&_a(e,t)},$f=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=we;if(s.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:ba(r,t,n):(o=!t.$stable,va(t,r)),i=t}else t&&(_a(e,t),i={default:1});if(o)for(const l in r)!zo(l)&&i[l]==null&&delete r[l]},Ze=Uf;function zf(e){return Vf(e)}function Vf(e,t){const n=ir();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:l,createComment:a,setText:c,setElementText:u,parentNode:f,nextSibling:p,setScopeId:g=Ot,insertStaticContent:_}=e,w=(h,m,v,A=null,x=null,T=null,$=void 0,I=null,D=!!m.dynamicChildren)=>{if(h===m)return;h&&!Kn(h,m)&&(A=O(h),ke(h,x,T,!0),h=null),m.patchFlag===-2&&(D=!1,m.dynamicChildren=null),m.dynamicChildren&&h&&h.dynamicChildren&&h.dynamicChildren.hasOnce&&(m.dynamicChildren===pn&&(m.dynamicChildren=[]),m.dynamicChildren.hasOnce=!0);const{type:M,ref:Y,shapeFlag:V}=m;switch(M){case pr:S(h,m,v,A);break;case kt:E(h,m,v,A);break;case $r:h==null&&y(m,v,A,$);break;case nt:xe(h,m,v,A,x,T,$,I,D);break;default:V&1?N(h,m,v,A,x,T,$,I,D):V&6?Ce(h,m,v,A,x,T,$,I,D):(V&64||V&128)&&M.process(h,m,v,A,x,T,$,I,D,K)}Y!=null&&x?ns(Y,h&&h.ref,T,m||h,!m):Y==null&&h&&h.ref!=null&&ns(h.ref,null,T,h,!0)},S=(h,m,v,A)=>{if(h==null)s(m.el=l(m.children),v,A);else{const x=m.el=h.el;m.children!==h.children&&c(x,m.children)}},E=(h,m,v,A)=>{h==null?s(m.el=a(m.children||""),v,A):m.el=h.el},y=(h,m,v,A)=>{[h.el,h.anchor]=_(h.children,m,v,A,h.el,h.anchor)},C=({el:h,anchor:m},v,A)=>{let x;for(;h&&h!==m;)x=p(h),s(h,v,A),h=x;s(m,v,A)},P=({el:h,anchor:m})=>{let v;for(;h&&h!==m;)v=p(h),r(h),h=v;r(m)},N=(h,m,v,A,x,T,$,I,D)=>{if(m.type==="svg"?$="svg":m.type==="math"&&($="mathml"),h==null)Q(m,v,A,x,T,$,I,D);else{const M=h.el&&h.el._isVueCE?h.el:null;try{M&&M._beginPatch(),B(h,m,x,T,$,I,D)}finally{M&&M._endPatch()}}},Q=(h,m,v,A,x,T,$,I)=>{let D,M;const{props:Y,shapeFlag:V,transition:W,dirs:te}=h;if(D=h.el=i(h.type,T,Y&&Y.is,Y),V&8?u(D,h.children):V&16&&F(h.children,D,null,A,x,jr(h,T),$,I),te&&cn(h,null,A,"created"),j(D,h,h.scopeId,$,A),Y){for(const he in Y)he!=="value"&&!Xn(he)&&o(D,he,null,Y[he],T,A);"value"in Y&&o(D,"value",null,Y.value,T),(M=Y.onVnodeBeforeMount)&&wt(M,A,h)}te&&cn(h,null,A,"beforeMount");const ae=Ff(x,W);ae&&W.beforeEnter(D),s(D,m,v),((M=Y&&Y.onVnodeMounted)||ae||te)&&Ze(()=>{M&&wt(M,A,h),ae&&W.enter(D),te&&cn(h,null,A,"mounted")},x)},j=(h,m,v,A,x)=>{if(v&&g(h,v),A)for(let T=0;T<A.length;T++)g(h,A[T]);if(x){let T=x.subTree;if(m===T||Sa(T.type)&&(T.ssContent===m||T.ssFallback===m)){const $=x.vnode;j(h,$,$.scopeId,$.slotScopeIds,x.parent)}}},F=(h,m,v,A,x,T,$,I,D=0)=>{for(let M=D;M<h.length;M++){const Y=h[M]=I?jt(h[M]):Rt(h[M]);w(null,Y,m,v,A,x,T,$,I)}},B=(h,m,v,A,x,T,$)=>{const I=m.el=h.el;let{patchFlag:D,dynamicChildren:M,dirs:Y}=m;D|=h.patchFlag&16;const V=h.props||we,W=m.props||we;let te;if(v&&un(v,!1),(te=W.onVnodeBeforeUpdate)&&wt(te,v,m,h),Y&&cn(m,h,v,"beforeUpdate"),v&&un(v,!0),M&&(!h.dynamicChildren||h.dynamicChildren.length!==M.length)&&(D=0,$=!1,M=null),(V.innerHTML&&W.innerHTML==null||V.textContent&&W.textContent==null)&&u(I,""),M?ie(h.dynamicChildren,M,I,v,A,jr(m,x),T):$||re(h,m,I,null,v,A,jr(m,x),T,!1),D>0){if(D&16)L(I,V,W,v,x);else if(D&2&&V.class!==W.class&&o(I,"class",null,W.class,x),D&4&&o(I,"style",V.style,W.style,x),D&8){const ae=m.dynamicProps;for(let he=0;he<ae.length;he++){const me=ae[he],Ie=V[me],je=W[me];(je!==Ie||me==="value")&&o(I,me,Ie,je,x,v)}}D&1&&h.children!==m.children&&u(I,m.children)}else!$&&M==null&&L(I,V,W,v,x);((te=W.onVnodeUpdated)||Y)&&Ze(()=>{te&&wt(te,v,m,h),Y&&cn(m,h,v,"updated")},A)},ie=(h,m,v,A,x,T,$)=>{for(let I=0;I<m.length;I++){const D=h[I],M=m[I],Y=D.el&&(D.type===nt||!Kn(D,M)||D.shapeFlag&198)?f(D.el):v;w(D,M,Y,null,A,x,T,$,!0)}},L=(h,m,v,A,x)=>{if(m!==v){if(m!==we)for(const T in m)!Xn(T)&&!(T in v)&&o(h,T,m[T],null,x,A);for(const T in v){if(Xn(T))continue;const $=v[T],I=m[T];$!==I&&T!=="value"&&o(h,T,I,$,x,A)}"value"in v&&o(h,"value",m.value,v.value,x)}},xe=(h,m,v,A,x,T,$,I,D)=>{const M=m.el=h?h.el:l(""),Y=m.anchor=h?h.anchor:l("");let{patchFlag:V,dynamicChildren:W,slotScopeIds:te}=m;te&&(I=I?I.concat(te):te),h==null?(s(M,v,A),s(Y,v,A),F(m.children||[],v,Y,x,T,$,I,D)):V>0&&V&64&&W&&h.dynamicChildren&&h.dynamicChildren.length===W.length?(ie(h.dynamicChildren,W,v,x,T,$,I),(m.key!=null||x&&m===x.subTree)&&Fo(h,m,!0)):re(h,m,v,Y,x,T,$,I,D)},Ce=(h,m,v,A,x,T,$,I,D)=>{m.slotScopeIds=I,h==null?m.shapeFlag&512?x.ctx.activate(m,v,A,$,D):q(m,v,A,x,T,$,D):Se(h,m,D)},q=(h,m,v,A,x,T,$)=>{const I=h.component=Jf(h,A,x);if(fr(h)&&(I.ctx.renderer=K),Yf(I,!1,$),I.asyncDep){if(x&&x.registerDep(I,ee,$),!h.el){const D=I.subTree=Ee(kt);E(null,D,m,v),h.placeholder=D.el}}else ee(I,h,m,v,x,T,$)},Se=(h,m,v)=>{const A=m.component=h.component;if(Mf(h,m,v))if(A.asyncDep&&!A.asyncResolved){m.el=h.el,G(A,m,v);return}else A.next=m,A.update();else m.el=h.el,A.vnode=m},ee=(h,m,v,A,x,T,$)=>{const I=()=>{if(h.isMounted){let{next:V,bu:W,u:te,parent:ae,vnode:he}=h;{const ct=wa(h);if(ct){V&&(V.el=he.el,G(h,V,$)),ct.asyncDep.then(()=>{Ze(()=>{h.isUnmounted||M()},x)});return}}let me=V,Ie;un(h,!1),V?(V.el=he.el,G(h,V,$)):V=he,W&&js(W),(Ie=V.props&&V.props.onVnodeBeforeUpdate)&&wt(Ie,ae,V,he),un(h,!0);const je=Ti(h),at=h.subTree;h.subTree=je,w(at,je,f(at.el),O(at),h,x,T),V.el=je.el,me===null&&kf(h,je.el),te&&Ze(te,x),(Ie=V.props&&V.props.onVnodeUpdated)&&Ze(()=>wt(Ie,ae,V,he),x)}else{let V;const{el:W,props:te}=m,{bm:ae,m:he,parent:me,root:Ie,type:je}=h,at=Nn(m);un(h,!1),ae&&js(ae),!at&&(V=te&&te.onVnodeBeforeMount)&&wt(V,me,m),un(h,!0);{Ie.ce&&Ie.ce._hasShadowRoot()&&Ie.ce._injectChildStyle(je,h.parent?h.parent.type:void 0);const ct=h.subTree=Ti(h);w(null,ct,v,A,h,x,T),m.el=ct.el}if(he&&Ze(he,x),!at&&(V=te&&te.onVnodeMounted)){const ct=m;Ze(()=>wt(V,me,ct),x)}(m.shapeFlag&256||me&&Nn(me.vnode)&&me.vnode.shapeFlag&256)&&h.a&&Ze(h.a,x),h.isMounted=!0,m=v=A=null}};h.scope.on();const D=h.effect=new Il(I);h.scope.off();const M=h.update=D.run.bind(D),Y=h.job=D.runIfDirty.bind(D);Y.i=h,Y.id=h.uid,D.scheduler=()=>Do(Y),un(h,!0),M()},G=(h,m,v)=>{m.component=h;const A=h.vnode.props;h.vnode=m,h.next=null,Lf(h,m.props,A,v),$f(h,m.children,v),qt(),di(h),Ht()},re=(h,m,v,A,x,T,$,I,D=!1)=>{const M=h&&h.children,Y=h?h.shapeFlag:0,V=m.children,{patchFlag:W,shapeFlag:te}=m;if(W>0){if(W&128){pe(M,V,v,A,x,T,$,I,D);return}else if(W&256){Ne(M,V,v,A,x,T,$,I,D);return}}te&8?(Y&16&&qe(M,x,T),V!==M&&u(v,V)):Y&16?te&16?pe(M,V,v,A,x,T,$,I,D):qe(M,x,T,!0):(Y&8&&u(v,""),te&16&&F(V,v,A,x,T,$,I,D))},Ne=(h,m,v,A,x,T,$,I,D)=>{h=h||pn,m=m||pn;const M=h.length,Y=m.length,V=Math.min(M,Y);let W;for(W=0;W<V;W++){const te=m[W]=D?jt(m[W]):Rt(m[W]);w(h[W],te,v,null,x,T,$,I,D)}M>Y?qe(h,x,T,!0,!1,V):F(m,v,A,x,T,$,I,D,V)},pe=(h,m,v,A,x,T,$,I,D)=>{let M=0;const Y=m.length;let V=h.length-1,W=Y-1;for(;M<=V&&M<=W;){const te=h[M],ae=m[M]=D?jt(m[M]):Rt(m[M]);if(Kn(te,ae))w(te,ae,v,null,x,T,$,I,D);else break;M++}for(;M<=V&&M<=W;){const te=h[V],ae=m[W]=D?jt(m[W]):Rt(m[W]);if(Kn(te,ae))w(te,ae,v,null,x,T,$,I,D);else break;V--,W--}if(M>V){if(M<=W){const te=W+1,ae=te<Y?m[te].el:A;for(;M<=W;)w(null,m[M]=D?jt(m[M]):Rt(m[M]),v,ae,x,T,$,I,D),M++}}else if(M>W)for(;M<=V;)ke(h[M],x,T,!0),M++;else{const te=M,ae=M,he=new Map;for(M=ae;M<=W;M++){const He=m[M]=D?jt(m[M]):Rt(m[M]);He.key!=null&&he.set(He.key,M)}let me,Ie=0;const je=W-ae+1;let at=!1,ct=0;const _t=new Array(je);for(M=0;M<je;M++)_t[M]=0;for(M=te;M<=V;M++){const He=h[M];if(Ie>=je){ke(He,x,T,!0);continue}let Je;if(He.key!=null)Je=he.get(He.key);else for(me=ae;me<=W;me++)if(_t[me-ae]===0&&Kn(He,m[me])){Je=me;break}Je===void 0?ke(He,x,T,!0):(_t[Je-ae]=M+1,Je>=ct?ct=Je:at=!0,w(He,m[Je],v,null,x,T,$,I,D),Ie++)}const Es=at?Bf(_t):pn;for(me=Es.length-1,M=je-1;M>=0;M--){const He=ae+M,Je=m[He],Sn=m[He+1],Ss=He+1<Y?Sn.el||Ea(Sn):A;_t[M]===0?w(null,Je,v,Ss,x,T,$,I,D):at&&(me<0||M!==Es[me]?Te(Je,v,Ss,2):me--)}}},Te=(h,m,v,A,x=null)=>{const{el:T,type:$,transition:I,children:D,shapeFlag:M}=h;if(M&6){Te(h.component.subTree,m,v,A);return}if(M&128){h.suspense.move(m,v,A);return}if(M&64){$.move(h,m,v,K);return}if($===nt){s(T,m,v);for(let V=0;V<D.length;V++)Te(D[V],m,v,A);s(h.anchor,m,v);return}if($===$r){C(h,m,v);return}if(A!==2&&M&1&&I)if(A===0)I.persisted&&!T[Dr]?s(T,m,v):(I.beforeEnter(T),s(T,m,v),Ze(()=>I.enter(T),x));else{const{leave:V,delayLeave:W,afterLeave:te}=I,ae=()=>{h.ctx.isUnmounted?r(T):s(T,m,v)},he=()=>{const me=T._isLeaving||!!T[Dr];T._isLeaving&&T[Dr](!0),I.persisted&&!me?ae():V(T,()=>{ae(),te&&te()})};W?W(T,ae,he):he()}else s(T,m,v)},ke=(h,m,v,A=!1,x=!1)=>{const{type:T,props:$,ref:I,children:D,dynamicChildren:M,shapeFlag:Y,patchFlag:V,dirs:W,cacheIndex:te,memo:ae}=h;if((V===-2||M&&M.hasOnce)&&(x=!1),I!=null&&(qt(),ns(I,null,v,h,!0),Ht()),te!=null&&(!h.ctx||h.ctx===m)&&(m.renderCache[te]=void 0),Y&256){m.ctx.deactivate(h);return}const he=Y&1&&W,me=!Nn(h);let Ie;if(me&&(Ie=$&&$.onVnodeBeforeUnmount)&&wt(Ie,m,h),Y&6)st(h.component,v,A);else{if(Y&128){h.suspense.unmount(v,A);return}he&&cn(h,null,m,"beforeUnmount"),Y&64?h.type.remove(h,m,v,K,A):M&&!M.hasOnce&&(T!==nt||V>0&&V&64)?qe(M,m,v,!1,!0):(T===nt&&V&384||!x&&Y&16)&&qe(D,m,v),A&&yt(h)}const je=ae!=null&&te==null;(me&&(Ie=$&&$.onVnodeUnmounted)||he||je)&&Ze(()=>{Ie&&wt(Ie,m,h),he&&cn(h,null,m,"unmounted"),je&&(h.el=null)},v)},yt=h=>{const{type:m,el:v,anchor:A,transition:x}=h;if(m===nt){vt(v,A);return}if(m===$r){P(h),x&&!x.persisted&&x.afterLeave&&x.afterLeave();return}const T=()=>{r(v),x&&!x.persisted&&x.afterLeave&&x.afterLeave()};if(h.shapeFlag&1&&x&&!x.persisted){const{leave:$,delayLeave:I}=x,D=()=>$(v,T);I?I(h.el,T,D):D()}else T()},vt=(h,m)=>{let v;for(;h!==m;)v=p(h),r(h),h=v;r(m)},st=(h,m,v)=>{const{bum:A,scope:x,job:T,subTree:$,um:I,m:D,a:M}=h;xi(D),xi(M),A&&js(A),x.stop(),T?(T.flags|=8,ke($,h,m,v)):h.vnode.el&&$&&($.transition=h.vnode.transition,ke($,h,m,v)),I&&Ze(I,m),Ze(()=>{h.isUnmounted=!0},m)},qe=(h,m,v,A=!1,x=!1,T=0)=>{for(let $=T;$<h.length;$++)ke(h[$],m,v,A,x)},O=h=>{if(h.shapeFlag&6)return O(h.component.subTree);if(h.shapeFlag&128)return h.suspense.next();const m=p(h.anchor||h.el),v=m&&m[sa];return v?p(v):m};let U=!1;const z=(h,m,v)=>{let A;h==null?m._vnode&&(ke(m._vnode,null,null,!0),A=m._vnode.component):w(m._vnode||null,h,m,null,null,null,v),m._vnode=h,U||(U=!0,di(A),Ql(),U=!1)},K={p:w,um:ke,m:Te,r:yt,mt:q,mc:F,pc:re,pbc:ie,n:O,o:e};return{render:z,hydrate:void 0,createApp:Rf(z)}}function jr({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 un({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ff(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Fo(e,t,n=!1){const s=e.children,r=t.children;if(Z(s)&&Z(r))for(let o=0;o<s.length;o++){const i=s[o];let l=r[o];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[o]=jt(r[o]),l.el=i.el),!n&&l.patchFlag!==-2&&Fo(i,l)),l.type===pr&&(l.patchFlag===-1&&(l=r[o]=jt(l)),l.el=i.el),l.type===kt&&!l.el&&(l.el=i.el)}}function Bf(e){const t=e.slice(),n=[0];let s,r,o,i,l;const a=e.length;for(s=0;s<a;s++){const c=e[s];if(c!==0){if(r=n[n.length-1],e[r]<c){t[s]=r,n.push(s);continue}for(o=0,i=n.length-1;o<i;)l=o+i>>1,e[n[l]]<c?o=l+1:i=l;c<e[n[o]]&&(o>0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function wa(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:wa(t)}function xi(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Ea(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Ea(t.subTree):null}const Sa=e=>e.__isSuspense;function Uf(e,t){t&&t.pendingBranch?Z(e)?t.effects.push(...e):t.effects.push(e):qu(e)}const nt=Symbol.for("v-fgt"),pr=Symbol.for("v-txt"),kt=Symbol.for("v-cmt"),$r=Symbol.for("v-stc"),Ft=[];let ot=null;function Xe(e=!1){Ft.push(ot=e?null:[])}function Bo(){Ft.pop(),ot=Ft[Ft.length-1]||null}let us=1;function Ws(e,t=!1){us+=e,e<0&&ot&&t&&(ot.hasOnce=!0)}function Ta(e){return e.dynamicChildren=us>0?ot||pn:null,Bo(),us>0&&ot&&ot.push(e),e}function St(e,t,n,s,r,o){return Ta(Oe(e,t,n,s,r,o,!0))}function fs(e,t,n,s,r){return Ta(Ee(e,t,n,s,r,!0))}function ds(e){return e?e.__v_isVNode===!0:!1}function Kn(e,t){return e.type===t.type&&e.key===t.key}const Ra=({key:e})=>e??null,zs=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Me(e)||De(e)||se(e)?{i:Ue,r:e,k:t,f:!!n}:e:null);function Oe(e,t=null,n=null,s=0,r=null,o=e===nt?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ra(t),ref:t&&zs(t),scopeId:ea,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Ue};return l?(Js(a,n),o&128&&e.normalize(a)):n&&(a.shapeFlag|=Me(n)?8:16),us>0&&!i&&ot&&(a.patchFlag>0||o&6)&&a.patchFlag!==32&&ot.push(a),a}const Ee=qf;function qf(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===mf)&&(e=kt),ds(e)){const l=$n(e,t,!0);return n&&Js(l,n),us>0&&!o&&ot&&(l.shapeFlag&6?ot[ot.indexOf(e)]=l:ot.push(l)),l.patchFlag=-2,l}if(td(e)&&(e=e.__vccOpts),t){t=Hf(t);let{class:l,style:a}=t;l&&!Me(l)&&(t.class=Ln(l)),be(a)&&(ar(a)&&!Z(a)&&(a=Fe({},a)),t.style=Ao(a))}const i=Me(e)?1:Sa(e)?128:ur(e)?64:be(e)?4:se(e)?2:0;return Oe(e,t,n,s,r,i,o,!0)}function Hf(e){return e?ar(e)||ma(e)?Fe({},e):e:null}function $n(e,t,n=!1,s=!1){const{props:r,ref:o,patchFlag:i,children:l,transition:a}=e,c=t?Kf(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Ra(c),ref:t&&t.ref?n&&o?Z(o)?o.concat(zs(t)):[o,zs(t)]:zs(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==nt?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&$n(e.ssContent),ssFallback:e.ssFallback&&$n(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return a&&s&&No(u,a.clone(u)),u}function ao(e=" ",t=0){return Ee(pr,null,e,t)}function Gn(e="",t=!1){return t?(Xe(),fs(kt,null,e)):Ee(kt,null,e)}function Rt(e){return e==null||typeof e=="boolean"?Ee(kt):Z(e)?Ee(nt,null,e.slice()):ds(e)?jt(e):Ee(pr,null,String(e))}function jt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:$n(e)}function Js(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(Z(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),Js(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!ma(t)?t._ctx=Ue:r===3&&Ue&&(Ue.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(se(t)){if(s&65){Js(e,{default:t});return}t={default:t,_ctx:Ue},n=32}else t=String(t),s&64?(n=16,t=[ao(t)]):n=8;e.children=t,e.shapeFlag|=n}function Kf(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=Ln([t.class,s.class]));else if(r==="style")t.style=Ao([t.style,s.style]);else if(er(r)){const o=t[r],i=s[r];i&&o!==i&&!(Z(o)&&o.includes(i))?t[r]=o?[].concat(o,i):i:i==null&&o==null&&!tr(r)&&(t[r]=i)}else r!==""&&(t[r]=s[r])}return t}function wt(e,t,n,s=null){mt(e,t,7,[n,s])}const Gf=ua();let Wf=0;function Jf(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||Gf,o={uid:Wf++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Pl(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ya(s,r),emitsOptions:fa(s,r),emit:null,emitted:null,propsDefaults:we,inheritAttrs:s.inheritAttrs,ctx:we,data:we,props:we,attrs:we,slots:we,refs:we,setupState:we,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=xf.bind(null,o),e.ce&&e.ce(o),o}let Be=null;const Uo=()=>Be||Ue;let Ys,hs;{const e=ir(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),o=>{r.length>1?r.forEach(i=>i(o)):r[0](o)}};Ys=t("__VUE_INSTANCE_SETTERS__",n=>Be=n),hs=t("__VUE_SSR_SETTERS__",n=>zn=n)}const ws=e=>{const t=Be;return Ys(e),e.scope.on(),()=>{e.scope.off(),Ys(t)}},Ci=()=>{Be&&Be.scope.off(),Ys(null)};function Aa(e){return e.vnode.shapeFlag&4}let zn=!1;function Yf(e,t=!1,n=!1){t&&hs(t);const{props:s,children:r}=e.vnode,o=Aa(e);If(e,s,o,t),jf(e,r,n||t);const i=o?Zf(e,t):void 0;return t&&hs(!1),i}function Zf(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,vf);const{setup:s}=n;if(s){qt();const r=e.setupContext=s.length>1?Xf(e):null,o=ws(e),i=_s(s,e,0,[e.props,r]),l=Sl(i);if(Ht(),o(),(l||e.sp)&&!Nn(e)&&jo(e),l){if(i.then(Ci,Ci),t)return i.then(a=>{hs(!0);try{Oi(e,a,t)}finally{hs(!1)}}).catch(a=>{bs(a,e,0)});e.asyncDep=i}else Oi(e,i)}else xa(e)}function Oi(e,t,n){se(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:be(t)&&(e.setupState=Jl(t)),xa(e)}function xa(e,t,n){const s=e.type;e.render||(e.render=s.render||Ot);{const r=ws(e);qt();try{_f(e)}finally{Ht(),r()}}}const Qf={get(e,t){return Ge(e,"get",""),e[t]}};function Xf(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Qf),slots:e.slots,emit:e.emit,expose:t}}function mr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Jl(Lo(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ss)return ss[n](e)},has(t,n){return n in t||n in ss}})):e.proxy}function ed(e,t=!0){return se(e)?e.displayName||e.name:e.name||t&&e.__name}function td(e){return se(e)&&"__vccOpts"in e}const ne=(e,t)=>zu(e,t,zn);function Ca(e,t,n){try{Ws(-1);const s=arguments.length;return s===2?be(t)&&!Z(t)?ds(t)?Ee(e,null,[t]):Ee(e,t):Ee(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&ds(n)&&(n=[n]),Ee(e,t,n))}finally{Ws(1)}}const nd="3.5.43";let co;const Pi=typeof window<"u"&&window.trustedTypes;if(Pi)try{co=Pi.createPolicy("vue",{createHTML:e=>e})}catch{}const Oa=co?e=>co.createHTML(e):e=>e,sd="http://www.w3.org/2000/svg",rd="http://www.w3.org/1998/Math/MathML",Nt=typeof document<"u"?document:null,Mi=Nt&&Nt.createElement("template"),od={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?Nt.createElementNS(sd,e):t==="mathml"?Nt.createElementNS(rd,e):n?Nt.createElement(e,{is:n}):Nt.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Nt.createTextNode(e),createComment:e=>Nt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Nt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{Mi.innerHTML=Oa(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=Mi.content;if(s==="svg"||s==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},id=Symbol("_vtc");function ld(e,t,n){const s=e[id];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Zs=Symbol("_vod"),Pa=Symbol("_vsh"),ad={name:"show",beforeMount(e,{value:t},{transition:n}){e[Zs]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Wn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Wn(e,!0),s.enter(e)):s.leave(e,()=>{Wn(e,!1)}):Wn(e,t))},beforeUnmount(e,{value:t}){Wn(e,t)}};function Wn(e,t){e.style.display=t?e[Zs]:"none",e[Pa]=!t}const cd=Symbol(""),ud=/(?:^|;)\s*display\s*:/;function fd(e,t,n){const s=e.style,r=Me(n);let o=!1;if(n&&!r){if(t)if(Me(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&Qn(s,l,"")}else for(const i in t)n[i]==null&&Qn(s,i,"");for(const i in n){i==="display"&&(o=!0);const l=n[i];l!=null?hd(e,i,!Me(t)&&t?t[i]:void 0,l)||Qn(s,i,l):Qn(s,i,"")}}else if(r){if(t!==n){const i=s[cd];i&&(n+=";"+i),s.cssText=n,o=ud.test(n)}}else t&&e.removeAttribute("style");Zs in e&&(e[Zs]=o?s.display:"",e[Pa]&&(s.display="none"))}const ks=/\s*!important$/;function Qn(e,t,n){if(Z(n))n.forEach(s=>Qn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))ks.test(n)?e.setProperty(t,n.replace(ks,""),"important"):e.setProperty(t,n);else{const s=dd(e,t);ks.test(n)?e.setProperty(ln(s),n.replace(ks,""),"important"):e[s]=n}}const ki=["Webkit","Moz","ms"],zr={};function dd(e,t){const n=zr[t];if(n)return n;let s=tt(t);if(s!=="filter"&&s in e)return zr[t]=s;s=rr(s);for(let r=0;r<ki.length;r++){const o=ki[r]+s;if(o in e)return zr[t]=o}return t}function hd(e,t,n,s){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&Me(s)&&n===s}const Ii="http://www.w3.org/1999/xlink";function Li(e,t,n,s,r,o=fu(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Ii,t.slice(6,t.length)):e.setAttributeNS(Ii,t,n):n==null||o&&!xl(n)?e.removeAttribute(t):e.setAttribute(t,o?"":lt(n)?String(n):n)}function Di(e,t,n,s,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Oa(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const l=o==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(l!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=xl(n):n==null&&l==="string"?(n="",i=!0):l==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(r||t)}function nn(e,t,n,s){e.addEventListener(t,n,s)}function pd(e,t,n,s){e.removeEventListener(t,n,s)}const Ni=Symbol("_vei");function md(e,t,n,s,r=null){const o=e[Ni]||(e[Ni]={}),i=o[t];if(s&&i)i.value=s;else{const[l,a]=vd(t);if(s){const c=o[t]=wd(s,r);nn(e,l,c,a)}else i&&(pd(e,l,i,a),o[t]=void 0)}}const gd=/(Once|Passive|Capture)$/,yd=/^on:?(?:Once|Passive|Capture)$/;function vd(e){let t,n;for(;(n=e.match(gd))&&!yd.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):ln(e.slice(2)),t]}let Vr=0;const _d=Promise.resolve(),bd=()=>Vr||(_d.then(()=>Vr=0),Vr=Date.now());function wd(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;const r=n.value;if(Z(r)){const o=s.stopImmediatePropagation;s.stopImmediatePropagation=()=>{o.call(s),s._stopped=!0};const i=r.slice(),l=[s];for(let a=0;a<i.length&&!s._stopped;a++){const c=i[a];c&&mt(c,t,5,l)}}else mt(r,t,5,[s])};return n.value=e,n.attached=bd(),n}const ji=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ed=(e,t,n,s,r,o)=>{const i=r==="svg";t==="class"?ld(e,s,i):t==="style"?fd(e,n,s):er(t)?tr(t)||md(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Sd(e,t,s,i))?(Di(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Li(e,t,s,i,o,t!=="value")):e._isVueCE&&(Td(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Me(s)))?Di(e,tt(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Li(e,t,s,i))};function Sd(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&ji(t)&&se(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return ji(t)&&Me(n)?!1:t in e}function Td(e,t){const n=e._def.props;if(!n)return!1;const s=tt(t);return Array.isArray(n)?n.some(r=>tt(r)===s):Object.keys(n).some(r=>tt(r)===s)}const Vn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Z(t)?n=>js(t,n):t};function Rd(e){e.target.composing=!0}function $i(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const xt=Symbol("_assign"),Is=Symbol("_initialValue");function Fr(e,t,n){return t&&(e=e.trim()),n&&(e=or(e)),e}const Xm={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e.parentNode&&(e.type==="text"?e[Is]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[Is]=e.defaultValue.replace(/\r\n?/g,`
`))),e[xt]=Vn(r);const o=s||r.props&&r.props.type==="number";nn(e,t?"change":"input",i=>{i.target.composing||e[xt](Fr(e.value,n,o))}),(n||o)&&nn(e,"change",()=>{e.value=Fr(e.value,n,o)}),t||(nn(e,"compositionstart",Rd),nn(e,"compositionend",$i),nn(e,"change",$i))},mounted(e,{value:t,modifiers:{trim:n,number:s}}){const r=t??"",o=e[Is];delete e[Is],o!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==o?e[xt](Fr(e.value,n,s)):e.value=r},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:o}},i){if(e[xt]=Vn(i),e.composing)return;const l=(o||e.type==="number")&&!/^0\d/.test(e.value)?or(e.value):e.value,a=t??"";if(l===a)return;const c=e.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===a)||(e.value=a)}},eg={deep:!0,created(e,t,n){e[xt]=Vn(n),nn(e,"change",()=>{const s=e._modelValue,r=ps(e),o=e.checked,i=e[xt];if(Z(s)){const l=xo(s,r),a=l!==-1;if(o&&!a)i(s.concat(r));else if(!o&&a){const c=[...s];c.splice(l,1),i(c)}}else if(Bt(s)){const l=new Set(s);o?l.add(r):l.delete(r),i(l)}else i(Ma(e,o))})},mounted:zi,beforeUpdate(e,t,n){e[xt]=Vn(n),zi(e,t,n)}};function zi(e,{value:t,oldValue:n},s){e._modelValue=t;let r;if(Z(t))r=xo(t,s.props.value)>-1;else if(Bt(t))r=t.has(s.props.value);else{if(t===n)return;r=Ut(t,Ma(e,!0))}e.checked!==r&&(e.checked=r)}const tg={deep:!0,created(e,{value:t,modifiers:{number:n}},s){e._modelValue=t,nn(e,"change",()=>{const r=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>n?or(ps(a)):ps(a)),o=e.multiple,i=o?Bt(e._modelValue)?new Set(r):r:r[0],l=e._pendingValue=[o,o?Z(i)?r.slice():r:i];try{e[xt](i)}finally{cr(()=>{e._pendingValue===l&&(e._pendingValue=void 0)})}}),e[xt]=Vn(s)},mounted(e,{value:t}){Vi(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[xt]=Vn(n)},updated(e,{value:t}){const n=e._pendingValue;e._pendingValue=void 0,(!n||n[0]!==e.multiple||!Ad(t,n[1],n[0]))&&Vi(e,t)}};function Ad(e,t,n){if(!n||Z(e))return Ut(e,t);if(Bt(e)){if(e.size!==t.length)return!1;for(const s of t)if(!e.has(s))return!1;return!0}return!1}function Vi(e,t){const n=e.multiple,s=Z(t);if(!(n&&!s&&!Bt(t))){for(let r=0,o=e.options.length;r<o;r++){const i=e.options[r],l=ps(i);if(n)if(s){const a=typeof l;a==="string"||a==="number"?i.selected=t.some(c=>String(c)===String(l)):i.selected=xo(t,l)>-1}else i.selected=t.has(l);else if(Ut(ps(i),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ps(e){return"_value"in e?e._value:e.value}function Ma(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const xd=["ctrl","shift","alt","meta"],Cd={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)=>xd.some(n=>e[`${n}Key`]&&!t.includes(n))},ng=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=((r,...o)=>{for(let i=0;i<t.length;i++){const l=Cd[t[i]];if(l&&l(r,t))return}return e(r,...o)}))},Od={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},sg=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=(r=>{if(!("key"in r))return;const o=ln(r.key);if(t.some(i=>i===o||Od[i]===o))return e(r)}))},Pd=Fe({patchProp:Ed},od);let Fi;function Md(){return Fi||(Fi=zf(Pd))}const kd=((...e)=>{const t=Md().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Ld(s);if(!r)return;const o=t._component;!se(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const i=n(r,!1,Id(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t});function Id(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Ld(e){return Me(e)?document.querySelector(e):e}let ka;const gr=e=>ka=e,Ia=Symbol();function uo(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var rs;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(rs||(rs={}));function Dd(){const e=Ml(!0),t=e.run(()=>X({}));let n=[],s=[];const r=Lo({install(o){gr(r),r._a=o,o.provide(Ia,r),o.config.globalProperties.$pinia=r,s.forEach(i=>n.push(i)),s=[]},use(o){return this._a?n.push(o):s.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const La=()=>{};function Bi(e,t,n,s=La){e.add(t);const r=()=>{e.delete(t)&&s()};return!n&&kl()&&pu(r),r}function xn(e,...t){e.forEach(n=>{n(...t)})}const Nd=e=>e(),Ui=Symbol(),Br=Symbol();function fo(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,s)=>e.set(s,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],r=e[n];uo(r)&&uo(s)&&e.hasOwnProperty(n)&&!De(s)&&!Pt(s)?e[n]=fo(r,s):e[n]=s}return e}const jd=Symbol();function $d(e){return!uo(e)||!Object.prototype.hasOwnProperty.call(e,jd)}const{assign:Zt}=Object;function zd(e){return!!(De(e)&&e.effect)}function Vd(e,t,n,s){const{state:r,actions:o,getters:i}=t,l=n.state.value[e];let a;function c(){l||(n.state.value[e]=r?r():{});const u=Du(n.state.value[e]);return Zt(u,o,Object.keys(i||{}).reduce((f,p)=>(f[p]=Lo(ne(()=>{gr(n);const g=n._s.get(e);return i[p].call(g,g)})),f),{}))}return a=Da(e,c,t,n,s,!0),a}function Da(e,t,n={},s,r,o){let i;const l=Zt({actions:{}},n),a={deep:!0};let c,u,f=new Set,p=new Set,g;const _=s.state.value[e];!o&&!_&&(s.state.value[e]={});let w;function S(F){let B;c=u=!1,typeof F=="function"?(F(s.state.value[e]),B={type:rs.patchFunction,storeId:e,events:g}):(fo(s.state.value[e],F),B={type:rs.patchObject,payload:F,storeId:e,events:g});const ie=w=Symbol();cr().then(()=>{w===ie&&(c=!0)}),u=!0,xn(f,B,s.state.value[e])}const E=o?function(){const{state:B}=n,ie=B?B():{};this.$patch(L=>{Zt(L,ie)})}:La;function y(){i.stop(),f.clear(),p.clear(),s._s.delete(e)}const C=(F,B="")=>{if(Ui in F)return F[Br]=B,F;const ie=function(){gr(s);const L=Array.from(arguments),xe=new Set,Ce=new Set;function q(G){xe.add(G)}function Se(G){Ce.add(G)}xn(p,{args:L,name:ie[Br],store:N,after:q,onError:Se});let ee;try{ee=F.apply(this&&this.$id===e?this:N,L)}catch(G){throw xn(Ce,G),G}return ee instanceof Promise?ee.then(G=>(xn(xe,G),G)).catch(G=>(xn(Ce,G),Promise.reject(G))):(xn(xe,ee),ee)};return ie[Ui]=!0,ie[Br]=B,ie},P={_p:s,$id:e,$onAction:Bi.bind(null,p),$patch:S,$reset:E,$subscribe(F,B={}){const ie=Bi(f,F,B.detached,()=>L()),L=i.run(()=>vn(()=>s.state.value[e],xe=>{(B.flush==="sync"?u:c)&&F({storeId:e,type:rs.direct,events:g},xe)},Zt({},a,B)));return ie},$dispose:y},N=vs(P);s._s.set(e,N);const j=(s._a&&s._a.runWithContext||Nd)(()=>s._e.run(()=>(i=Ml()).run(()=>t({action:C}))));for(const F in j){const B=j[F];if(De(B)&&!zd(B)||Pt(B))o||(_&&$d(B)&&(De(B)?B.value=_[F]:fo(B,_[F])),s.state.value[e][F]=B);else if(typeof B=="function"){const ie=C(B,F);j[F]=ie,l.actions[F]=B}}return Zt(N,j),Zt(de(N),j),Object.defineProperty(N,"$state",{get:()=>s.state.value[e],set:F=>{S(B=>{Zt(B,F)})}}),s._p.forEach(F=>{Zt(N,i.run(()=>F({store:N,app:s._a,pinia:s,options:l})))}),_&&o&&n.hydrate&&n.hydrate(N.$state,_),c=!0,u=!0,N}function Gt(e,t,n){let s;const r=typeof t=="function";s=r?n:t;function o(i,l){const a=Ku();return i=i||(a?dt(Ia,null):null),i&&gr(i),i=ka,i._s.has(e)||(r?Da(e,t,s,i):Vd(e,s,i)),i._s.get(e)}return o.$id=e,o}const rg=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),og=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),ig=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),lg=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),ag=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),cg=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));const Mn=typeof document<"u";function Na(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Fd(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Na(e.default)}const ge=Object.assign;function Ur(e,t){const n={};for(const s in t){const r=t[s];n[s]=gt(r)?r.map(e):e(r)}return n}const os=()=>{},gt=Array.isArray;function qi(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const ja=/#/g,Bd=/&/g,Ud=/\//g,qd=/=/g,Hd=/\?/g,$a=/\+/g,Kd=/%5B/g,Gd=/%5D/g,za=/%5E/g,Wd=/%60/g,Va=/%7B/g,Jd=/%7C/g,Fa=/%7D/g,Yd=/%20/g;function qo(e){return e==null?"":encodeURI(""+e).replace(Jd,"|").replace(Kd,"[").replace(Gd,"]")}function Zd(e){return qo(e).replace(Va,"{").replace(Fa,"}").replace(za,"^")}function ho(e){return qo(e).replace($a,"%2B").replace(Yd,"+").replace(ja,"%23").replace(Bd,"%26").replace(Wd,"`").replace(Va,"{").replace(Fa,"}").replace(za,"^")}function Qd(e){return ho(e).replace(qd,"%3D")}function Xd(e){return qo(e).replace(ja,"%23").replace(Hd,"%3F")}function eh(e){return Xd(e).replace(Ud,"%2F")}function ms(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const th=/\/$/,nh=e=>e.replace(th,"");function qr(e,t,n="/"){let s,r={},o="",i="";const l=t.indexOf("#");let a=t.indexOf("?");return a=l>=0&&a>l?-1:a,a>=0&&(s=t.slice(0,a),o=t.slice(a,l>0?l:t.length),r=e(o.slice(1))),l>=0&&(s=s||t.slice(0,l),i=t.slice(l,t.length)),s=ih(s??t,n),{fullPath:s+o+i,path:s,query:r,hash:ms(i)}}function sh(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Hi(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function rh(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&Fn(t.matched[s],n.matched[r])&&Ba(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Fn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ba(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!oh(e[n],t[n]))return!1;return!0}function oh(e,t){return gt(e)?Ki(e,t):gt(t)?Ki(t,e):e?.valueOf()===t?.valueOf()}function Ki(e,t){return gt(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function ih(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let o=n.length-1,i,l;for(i=0;i<s.length;i++)if(l=s[i],l!==".")if(l==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(i).join("/")}const Wt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let po=(function(e){return e.pop="pop",e.push="push",e})({}),Hr=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function lh(e){if(!e)if(Mn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),nh(e)}const ah=/^[^#]+#/;function ch(e,t){return e.replace(ah,"#")+t}function uh(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const yr=()=>({left:window.scrollX,top:window.scrollY});function fh(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=uh(r,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 Gi(e,t){return(history.state?history.state.position-t:-1)+e}const mo=new Map;function dh(e,t){mo.set(e,t)}function hh(e){const t=mo.get(e);return mo.delete(e),t}function ph(e){return typeof e=="string"||e&&typeof e=="object"}function Ua(e){return typeof e=="string"||typeof e=="symbol"}let Le=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const qa=Symbol("");Le.MATCHER_NOT_FOUND+"",Le.NAVIGATION_GUARD_REDIRECT+"",Le.NAVIGATION_ABORTED+"",Le.NAVIGATION_CANCELLED+"",Le.NAVIGATION_DUPLICATED+"";function Bn(e,t){return ge(new Error,{type:e,[qa]:!0},t)}function Lt(e,t){return e instanceof Error&&qa in e&&(t==null||!!(e.type&t))}const mh=["params","query","hash"];function gh(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of mh)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function yh(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<n.length;++s){const r=n[s].replace($a," "),o=r.indexOf("="),i=ms(o<0?r:r.slice(0,o)),l=o<0?null:ms(r.slice(o+1));if(i in t){let a=t[i];gt(a)||(a=t[i]=[a]),a.push(l)}else t[i]=l}return t}function Wi(e){let t="";for(let n in e){const s=e[n];if(n=Qd(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(gt(s)?s.map(r=>r&&ho(r)):[s&&ho(s)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function vh(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=gt(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const _h=Symbol(""),Ji=Symbol(""),vr=Symbol(""),Ho=Symbol(""),go=Symbol("");function Jn(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function en(e,t,n,s,r,o=i=>i()){const i=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((l,a)=>{const c=p=>{p===!1?a(Bn(Le.NAVIGATION_ABORTED,{from:n,to:t})):p instanceof Error?a(p):ph(p)?a(Bn(Le.NAVIGATION_GUARD_REDIRECT,{from:t,to:p})):(i&&s.enterCallbacks[r]===i&&typeof p=="function"&&i.push(p),l())},u=o(()=>e.call(s&&s.instances[r],t,n,c));let f=Promise.resolve(u);e.length<3&&(f=f.then(c)),f.catch(p=>a(p))})}function Kr(e,t,n,s,r=o=>o()){const o=[];for(const i of e)for(const l in i.components){let a=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(Na(a)){const c=(a.__vccOpts||a)[t];c&&o.push(en(c,n,s,i,l,r))}else{let c=a();o.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${l}" at "${i.path}"`);const f=Fd(u)?u.default:u;i.mods[l]=u,i.components[l]=f;const p=(f.__vccOpts||f)[t];return p&&en(p,n,s,i,l,r)()}))}}return o}function bh(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;i<o;i++){const l=t.matched[i];l&&(e.matched.find(c=>Fn(c,l))?s.push(l):n.push(l));const a=e.matched[i];a&&(t.matched.find(c=>Fn(c,a))||r.push(a))}return[n,s,r]}let wh=()=>location.protocol+"//"+location.host;function Ha(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let i=r.includes(e.slice(o))?e.slice(o).length:1,l=r.slice(i);return l[0]!=="/"&&(l="/"+l),Hi(l,"")}return Hi(n,e)+s+r}function Eh(e,t,n,s){let r=[],o=[],i=null;const l=({state:p})=>{const g=Ha(e,location),_=n.value,w=t.value;let S=0;if(p){if(n.value=g,t.value=p,i&&i===_){i=null;return}S=w?p.position-w.position:0}else s(g);r.forEach(E=>{E(n.value,_,{delta:S,type:po.pop,direction:S?S>0?Hr.forward:Hr.back:Hr.unknown})})};function a(){i=n.value}function c(p){r.push(p);const g=()=>{const _=r.indexOf(p);_>-1&&r.splice(_,1)};return o.push(g),g}function u(){if(document.visibilityState==="hidden"){const{history:p}=window;if(!p.state)return;p.replaceState(ge({},p.state,{scroll:yr()}),"")}}function f(){for(const p of o)p();o=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",u),document.removeEventListener("visibilitychange",u)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",u),document.addEventListener("visibilitychange",u),{pauseListeners:a,listen:c,destroy:f}}function Yi(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?yr():null}}function Sh(e){const{history:t,location:n}=window,s={value:Ha(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(a,c,u){const f=e.indexOf("#"),p=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+a:wh()+e+a;try{t[u?"replaceState":"pushState"](c,"",p),r.value=c}catch(g){console.error(g),n[u?"replace":"assign"](p)}}function i(a,c){o(a,ge({},t.state,Yi(r.value.back,a,r.value.forward,!0),c,{position:r.value.position}),!0),s.value=a}function l(a,c){const u=ge({},r.value,t.state,{forward:a,scroll:yr()});o(u.current,u,!0),o(a,ge({},Yi(s.value,a,null),{position:u.position+1},c),!1),s.value=a}return{location:s,state:r,push:l,replace:i}}function Th(e){e=lh(e);const t=Sh(e),n=Eh(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=ge({location:"",base:e,go:s,createHref:ch.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}let mn=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var $e=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})($e||{});const Rh={type:mn.Static,value:""},Ah=/[a-zA-Z0-9_]/;function xh(e){if(!e)return[[]];if(e==="/")return[[Rh]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${c}": ${g}`)}let n=$e.Static,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let l=0,a,c="",u="";function f(){c&&(n===$e.Static?o.push({type:mn.Static,value:c}):n===$e.Param||n===$e.ParamRegExp||n===$e.ParamRegExpEnd?(o.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:mn.Param,value:c,regexp:u,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),c="")}function p(){c+=a}for(;l<e.length;){if(a=e[l++],a==="\\"&&n!==$e.ParamRegExp){s=n,n=$e.EscapeNext;continue}switch(n){case $e.Static:a==="/"?(c&&f(),i()):a===":"?(f(),n=$e.Param):p();break;case $e.EscapeNext:p(),n=s;break;case $e.Param:a==="("?n=$e.ParamRegExp:Ah.test(a)?p():(f(),n=$e.Static,a!=="*"&&a!=="?"&&a!=="+"&&l--);break;case $e.ParamRegExp:a===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+a:n=$e.ParamRegExpEnd:u+=a;break;case $e.ParamRegExpEnd:f(),n=$e.Static,a!=="*"&&a!=="?"&&a!=="+"&&l--,u="";break;default:t("Unknown state");break}}return n===$e.ParamRegExp&&t(`Unfinished custom RegExp for param "${c}"`),f(),i(),r}const Zi="[^/]+?",Ch={sensitive:!1,strict:!1,start:!0,end:!0};var Qe=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(Qe||{});const Oh=/[.+*?^${}()[\]/\\]/g;function Ph(e,t){const n=ge({},Ch,t),s=[];let r=n.start?"^":"";const o=[];for(const c of e){const u=c.length?[]:[Qe.Root];n.strict&&!c.length&&(r+="/");for(let f=0;f<c.length;f++){const p=c[f];let g=Qe.Segment+(n.sensitive?Qe.BonusCaseSensitive:0);if(p.type===mn.Static)f||(r+="/"),r+=p.value.replace(Oh,"\\$&"),g+=Qe.Static;else if(p.type===mn.Param){const{value:_,repeatable:w,optional:S,regexp:E}=p;o.push({name:_,repeatable:w,optional:S});const y=E||Zi;if(y!==Zi){g+=Qe.BonusCustomRegExp;try{`${y}`}catch(P){throw new Error(`Invalid custom RegExp for param "${_}" (${y}): `+P.message)}}let C=w?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;f||(C=S&&c.length<2?`(?:/${C})`:"/"+C),S&&(C+="?"),r+=C,g+=Qe.Dynamic,S&&(g+=Qe.BonusOptional),w&&(g+=Qe.BonusRepeatable),y===".*"&&(g+=Qe.BonusWildcard)}u.push(g)}s.push(u)}if(n.strict&&n.end){const c=s.length-1;s[c][s[c].length-1]+=Qe.BonusStrict}n.strict||(r+="/?"),n.end?r+="$":n.strict&&!r.endsWith("/")&&(r+="(?:/|$)");const i=new RegExp(r,n.sensitive?"":"i");function l(c){const u=c.match(i),f={};if(!u)return null;for(let p=1;p<u.length;p++){const g=u[p]||"",_=o[p-1];f[_.name]=g&&_.repeatable?g.split("/"):g}return f}function a(c){let u="",f=!1;for(const p of e){(!f||!u.endsWith("/"))&&(u+="/"),f=!1;for(const g of p)if(g.type===mn.Static)u+=g.value;else if(g.type===mn.Param){const{value:_,repeatable:w,optional:S}=g,E=_ in c?c[_]:"";if(gt(E)&&!w)throw new Error(`Provided param "${_}" is an array but it is not repeatable (* or + modifiers)`);const y=gt(E)?E.join("/"):E;if(!y)if(S)p.length<2&&(u.endsWith("/")?u=u.slice(0,-1):f=!0);else throw new Error(`Missing required param "${_}"`);u+=y}}return u||"/"}return{re:i,score:s,keys:o,parse:l,stringify:a}}function Mh(e,t){let n=0;for(;n<e.length&&n<t.length;){const s=t[n]-e[n];if(s)return s;n++}return e.length<t.length?e.length===1&&e[0]===Qe.Static+Qe.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Qe.Static+Qe.Segment?1:-1:0}function Ka(e,t){let n=0;const s=e.score,r=t.score;for(;n<s.length&&n<r.length;){const o=Mh(s[n],r[n]);if(o)return o;n++}if(Math.abs(r.length-s.length)===1){if(Qi(s))return 1;if(Qi(r))return-1}return r.length-s.length}function Qi(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const kh={strict:!1,end:!0,sensitive:!1};function Ih(e,t,n){const s=Ph(xh(e.path),n),r=ge(s,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Lh(e,t){const n=[],s=new Map;t=qi(kh,t);function r(f){return s.get(f)}function o(f,p,g){const _=!g,w=el(f);w.aliasOf=g&&g.record;const S=qi(t,f),E=[w];if("alias"in f){const P=typeof f.alias=="string"?[f.alias]:f.alias;for(const N of P)E.push(el(ge({},w,{components:g?g.record.components:w.components,path:N,aliasOf:g?g.record:w})))}let y,C;for(const P of E){const{path:N}=P;if(p&&N[0]!=="/"){const Q=p.record.path,j=Q[Q.length-1]==="/"?"":"/";P.path=p.record.path+(N&&j+N)}if(y=Ih(P,p,S),g?g.alias.push(y):(C=C||y,C!==y&&C.alias.push(y),_&&f.name&&!tl(y)&&i(f.name)),Ga(y)&&a(y),w.children){const Q=w.children;for(let j=0;j<Q.length;j++)o(Q[j],y,g&&g.children[j])}g=g||y}return C?()=>{i(C)}:os}function i(f){if(Ua(f)){const p=s.get(f);p&&(s.delete(f),n.splice(n.indexOf(p),1),p.children.forEach(i),p.alias.forEach(i))}else{const p=n.indexOf(f);p>-1&&(n.splice(p,1),f.record.name&&s.delete(f.record.name),f.children.forEach(i),f.alias.forEach(i))}}function l(){return n}function a(f){const p=jh(f,n);n.splice(p,0,f),f.record.name&&!tl(f)&&s.set(f.record.name,f)}function c(f,p){let g,_={},w,S;if("name"in f&&f.name){if(g=s.get(f.name),!g)throw Bn(Le.MATCHER_NOT_FOUND,{location:f});S=g.record.name,_=ge(Xi(p.params,g.keys.filter(C=>!C.optional).concat(g.parent?g.parent.keys.filter(C=>C.optional):[]).map(C=>C.name)),f.params&&Xi(f.params,g.keys.map(C=>C.name))),w=g.stringify(_)}else if(f.path!=null)w=f.path,g=n.find(C=>C.re.test(w)),g&&(_=g.parse(w),S=g.record.name);else{if(g=p.name?s.get(p.name):n.find(C=>C.re.test(p.path)),!g)throw Bn(Le.MATCHER_NOT_FOUND,{location:f,currentLocation:p});S=g.record.name,_=ge({},p.params,f.params),w=g.stringify(_)}const E=[];let y=g;for(;y;)E.unshift(y.record),y=y.parent;return{name:S,path:w,params:_,matched:E,meta:Nh(E)}}e.forEach(f=>o(f));function u(){n.length=0,s.clear()}return{addRoute:o,resolve:c,removeRoute:i,clearRoutes:u,getRoutes:l,getRecordMatcher:r}}function Xi(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function el(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Dh(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Dh(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function tl(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Nh(e){return e.reduce((t,n)=>ge(t,n.meta),{})}function jh(e,t){let n=0,s=t.length;for(;n!==s;){const o=n+s>>1;Ka(e,t[o])<0?s=o:n=o+1}const r=$h(e);return r&&(s=t.lastIndexOf(r,s-1)),s}function $h(e){let t=e;for(;t=t.parent;)if(Ga(t)&&Ka(e,t)===0)return t}function Ga({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function nl(e){const t=dt(vr),n=dt(Ho),s=ne(()=>{const a=Pe(e.to);return t.resolve(a)}),r=ne(()=>{const{matched:a}=s.value,{length:c}=a,u=a[c-1],f=n.matched;if(!u||!f.length)return-1;const p=f.findIndex(Fn.bind(null,u));if(p>-1)return p;const g=sl(a[c-2]);return c>1&&sl(u)===g&&f[f.length-1].path!==g?f.findIndex(Fn.bind(null,a[c-2])):p}),o=ne(()=>r.value>-1&&Uh(n.params,s.value.params)),i=ne(()=>r.value>-1&&r.value===n.matched.length-1&&Ba(n.params,s.value.params));function l(a={}){if(Bh(a)){const c=t[Pe(e.replace)?"replace":"push"](Pe(e.to)).catch(os);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:s,href:ne(()=>s.value.href),isActive:o,isExactActive:i,navigate:l}}function zh(e){return e.length===1?e[0]:e}const Vh=En({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:nl,setup(e,{slots:t}){const n=vs(nl(e)),{options:s}=dt(vr),r=ne(()=>({[rl(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[rl(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&zh(t.default(n));return e.custom?o:Ca("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),Fh=Vh;function Bh(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 Uh(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!gt(r)||r.length!==s.length||s.some((o,i)=>o.valueOf()!==r[i].valueOf()))return!1}return!0}function sl(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const rl=(e,t,n)=>e??t??n,qh=En({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=dt(go),r=ne(()=>e.route||s.value),o=dt(Ji,0),i=ne(()=>{let c=Pe(o);const{matched:u}=r.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),l=ne(()=>r.value.matched[i.value]);$s(Ji,ne(()=>i.value+1)),$s(_h,l),$s(go,r);const a=X();return vn(()=>[a.value,l.value,e.name],([c,u,f],[p,g,_])=>{u&&(u.instances[f]=c,g&&g!==u&&c&&c===p&&(u.leaveGuards.size||(u.leaveGuards=g.leaveGuards),u.updateGuards.size||(u.updateGuards=g.updateGuards))),c&&u&&(!g||!Fn(u,g)||!p)&&(u.enterCallbacks[f]||[]).forEach(w=>w(c))},{flush:"post"}),()=>{const c=r.value,u=e.name,f=l.value,p=f&&f.components[u];if(!p)return ol(n.default,{Component:p,route:c});const g=f.props[u],_=g?g===!0?c.params:typeof g=="function"?g(c):g:null,S=Ca(p,ge({},_,t,{onVnodeUnmounted:E=>{E.component.isUnmounted&&(f.instances[u]=null)},ref:a}));return ol(n.default,{Component:S,route:c})||S}}});function ol(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Hh=qh;function Kh(e){const t=Lh(e.routes,e),n=e.parseQuery||yh,s=e.stringifyQuery||Wi,r=e.history,o=Jn(),i=Jn(),l=Jn(),a=jn(Wt);let c=Wt;Mn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Ur.bind(null,O=>""+O),f=Ur.bind(null,eh),p=Ur.bind(null,ms);function g(O,U){let z,K;return Ua(O)?(z=t.getRecordMatcher(O),K=U):K=O,t.addRoute(K,z)}function _(O){const U=t.getRecordMatcher(O);U&&t.removeRoute(U)}function w(){return t.getRoutes().map(O=>O.record)}function S(O){return!!t.getRecordMatcher(O)}function E(O,U){if(U=ge({},U||a.value),typeof O=="string"){const v=qr(n,O,U.path),A=t.resolve({path:v.path},U),x=r.createHref(v.fullPath);return ge(v,A,{params:p(A.params),hash:ms(v.hash),redirectedFrom:void 0,href:x})}let z;if(O.path!=null)z=ge({},O,{path:qr(n,O.path,U.path).path});else{const v=ge({},O.params);for(const A in v)v[A]==null&&delete v[A];z=ge({},O,{params:f(v)}),U.params=f(U.params)}const K=t.resolve(z,U),oe=O.hash||"";K.params=u(p(K.params));const h=sh(s,ge({},O,{hash:Zd(oe),path:K.path})),m=r.createHref(h);return ge({fullPath:h,hash:oe,query:s===Wi?vh(O.query):O.query||{}},K,{redirectedFrom:void 0,href:m})}function y(O){return typeof O=="string"?qr(n,O,a.value.path):ge({},O)}function C(O,U){if(c!==O)return Bn(Le.NAVIGATION_CANCELLED,{from:U,to:O})}function P(O){return j(O)}function N(O){return P(ge(y(O),{replace:!0}))}function Q(O,U){const z=O.matched[O.matched.length-1];if(z&&z.redirect){const{redirect:K}=z;let oe=typeof K=="function"?K(O,U):K;return typeof oe=="string"&&(oe=oe.includes("?")||oe.includes("#")?oe=y(oe):{path:oe},oe.params={}),ge({query:O.query,hash:O.hash,params:oe.path!=null?{}:O.params},oe)}}function j(O,U){const z=c=E(O),K=a.value,oe=O.state,h=O.force,m=O.replace===!0,v=Q(z,K);if(v)return j(ge(y(v),{state:typeof v=="object"?ge({},oe,v.state):oe,force:h,replace:m}),U||z);const A=z;A.redirectedFrom=U;let x;return!h&&rh(s,K,z)&&(x=Bn(Le.NAVIGATION_DUPLICATED,{to:A,from:K}),Te(K,K,!0,!1)),(x?Promise.resolve(x):ie(A,K)).catch(T=>Lt(T)?Lt(T,Le.NAVIGATION_GUARD_REDIRECT)?T:pe(T):re(T,A,K)).then(T=>{if(T){if(Lt(T,Le.NAVIGATION_GUARD_REDIRECT))return j(ge({replace:m},y(T.to),{state:typeof T.to=="object"?ge({},oe,T.to.state):oe,force:h}),U||A)}else T=xe(A,K,!0,m,oe);return L(A,K,T),T})}function F(O,U){const z=C(O,U);return z?Promise.reject(z):Promise.resolve()}function B(O){const U=vt.values().next().value;return U&&typeof U.runWithContext=="function"?U.runWithContext(O):O()}function ie(O,U){let z;const[K,oe,h]=bh(O,U);z=Kr(K.reverse(),"beforeRouteLeave",O,U);for(const v of K)v.leaveGuards.forEach(A=>{z.push(en(A,O,U))});const m=F.bind(null,O,U);return z.push(m),qe(z).then(()=>{z=[];for(const v of o.list())z.push(en(v,O,U));return z.push(m),qe(z)}).then(()=>{z=Kr(oe,"beforeRouteUpdate",O,U);for(const v of oe)v.updateGuards.forEach(A=>{z.push(en(A,O,U))});return z.push(m),qe(z)}).then(()=>{z=[];for(const v of h)if(v.beforeEnter)if(gt(v.beforeEnter))for(const A of v.beforeEnter)z.push(en(A,O,U));else z.push(en(v.beforeEnter,O,U));return z.push(m),qe(z)}).then(()=>(O.matched.forEach(v=>v.enterCallbacks={}),z=Kr(h,"beforeRouteEnter",O,U,B),z.push(m),qe(z))).then(()=>{z=[];for(const v of i.list())z.push(en(v,O,U));return z.push(m),qe(z)}).catch(v=>Lt(v,Le.NAVIGATION_CANCELLED)?v:Promise.reject(v))}function L(O,U,z){l.list().forEach(K=>B(()=>K(O,U,z)))}function xe(O,U,z,K,oe){const h=C(O,U);if(h)return h;const m=U===Wt,v=Mn?history.state:{};z&&(K||m?r.replace(O.fullPath,ge({scroll:m&&v&&v.scroll},oe)):r.push(O.fullPath,oe)),a.value=O,Te(O,U,z,m),pe()}let Ce;function q(){Ce||(Ce=r.listen((O,U,z)=>{if(!st.listening)return;const K=E(O),oe=Q(K,st.currentRoute.value);if(oe){j(ge(oe,{replace:!0,force:!0}),K).catch(os);return}c=K;const h=a.value;Mn&&dh(Gi(h.fullPath,z.delta),yr()),ie(K,h).catch(m=>Lt(m,Le.NAVIGATION_ABORTED|Le.NAVIGATION_CANCELLED)?m:Lt(m,Le.NAVIGATION_GUARD_REDIRECT)?(j(ge(y(m.to),{force:!0}),K).then(v=>{Lt(v,Le.NAVIGATION_ABORTED|Le.NAVIGATION_DUPLICATED)&&!z.delta&&z.type===po.pop&&r.go(-1,!1)}).catch(os),Promise.reject()):(z.delta&&r.go(-z.delta,!1),re(m,K,h))).then(m=>{m=m||xe(K,h,!1),m&&(z.delta&&!Lt(m,Le.NAVIGATION_CANCELLED)?r.go(-z.delta,!1):z.type===po.pop&&Lt(m,Le.NAVIGATION_ABORTED|Le.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),L(K,h,m)}).catch(os)}))}let Se=Jn(),ee=Jn(),G;function re(O,U,z){pe(O);const K=ee.list();return K.length?K.forEach(oe=>oe(O,U,z)):console.error(O),Promise.reject(O)}function Ne(){return G&&a.value!==Wt?Promise.resolve():new Promise((O,U)=>{Se.add([O,U])})}function pe(O){return G||(G=!O,q(),Se.list().forEach(([U,z])=>O?z(O):U()),Se.reset()),O}function Te(O,U,z,K){const{scrollBehavior:oe}=e;if(!Mn||!oe)return Promise.resolve();const h=!z&&hh(Gi(O.fullPath,0))||(K||!z)&&history.state&&history.state.scroll||null;return cr().then(()=>oe(O,U,h)).then(m=>m&&fh(m)).catch(m=>re(m,O,U))}const ke=O=>r.go(O);let yt;const vt=new Set,st={currentRoute:a,listening:!0,addRoute:g,removeRoute:_,clearRoutes:t.clearRoutes,hasRoute:S,getRoutes:w,resolve:E,options:e,push:P,replace:N,go:ke,back:()=>ke(-1),forward:()=>ke(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:ee.add,isReady:Ne,install(O){O.component("RouterLink",Fh),O.component("RouterView",Hh),O.config.globalProperties.$router=st,Object.defineProperty(O.config.globalProperties,"$route",{enumerable:!0,get:()=>Pe(a)}),Mn&&!yt&&a.value===Wt&&(yt=!0,P(r.location).catch(K=>{}));const U={};for(const K in Wt)Object.defineProperty(U,K,{get:()=>a.value[K],enumerable:!0});O.provide(vr,st),O.provide(Ho,Gl(U)),O.provide(go,a);const z=O.unmount;vt.add(O),O.unmount=function(){vt.delete(O),vt.size<1&&(c=Wt,Ce&&Ce(),Ce=null,a.value=Wt,yt=!1,G=!1),z()}}};function qe(O){return O.reduce((U,z)=>U.then(()=>B(z)),Promise.resolve())}return st}function ug(){return dt(vr)}function Wa(e){return dt(Ho)}const Gh={viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},Wh=["d"],yo=En({__name:"Icon",props:{name:{}},setup(e){const t=e,n={home:"M3 11l9-8 9 8M5 10v10h5v-6h4v6h5V10",calendar:"M4 6h16v14H4zM4 10h16M8 3v5M16 3v5",book:"M5 4h10a3 3 0 013 3v13H8a3 3 0 01-3-3zM5 17a3 3 0 013-3h10",quiz:"M12 21a9 9 0 100-18 9 9 0 000 18zM9.5 9.5a2.5 2.5 0 114 2c-.9.6-1.5 1-1.5 2M12 17h.01",more:"M5 12h.01M12 12h.01M19 12h.01",flag:"M5 21V4M5 4h11l-2 4 2 4H5",grad:"M2 9l10-5 10 5-10 5zM6 11.5V16c0 1.5 3 3 6 3s6-1.5 6-3v-4.5",file:"M7 3h7l5 5v13H7zM14 3v5h5M10 13h6M10 17h6",slides:"M3 4h18v12H3zM12 16v4M8 20h8",user:"M12 12a4 4 0 100-8 4 4 0 000 8zM4 21c0-4 4-6 8-6s8 2 8 6",out:"M10 4H5v16h5M15 8l4 4-4 4M19 12H9",chevron:"M9 6l6 6-6 6","arrow-left":"M19 12H5M11 6l-6 6 6 6","arrow-right":"M5 12h14M13 6l6 6-6 6",paperclip:"M20 11.5l-8.5 8.5a5 5 0 01-7-7L13 4.5a3.5 3.5 0 015 5L9.5 18a2 2 0 01-3-3L14 7.5",at:"M12 16a4 4 0 100-8 4 4 0 000 8zM16 12v1.5a2.5 2.5 0 005 0V12a9 9 0 10-3.5 7.1","arrow-up":"M12 19V5M5 12l7-7 7 7","arrow-down":"M12 5v14M5 12l7 7 7-7",smile:"M12 21a9 9 0 100-18 9 9 0 000 18zM8.5 14.5c1 1.2 2.2 1.8 3.5 1.8s2.5-.6 3.5-1.8M9 9.5h.01M15 9.5h.01",pencil:"M4 20h4L19 9l-4-4L4 16zM13.5 6.5l4 4",trash:"M4 7h16M10 11v6M14 11v6M6 7l1 13h10l1-13M9 7V4h6v3",close:"M6 6l12 12M18 6L6 18",plus:"M12 5v14M5 12h14",checklist:"M4 6l2 2 3-3M4 13l2 2 3-3M12 7h8M12 14h8M4 19h.01M12 19h8",cast:"M2 16.1A5 5 0 015.9 20M2 12.05A9 9 0 019.95 20M2 8V6a2 2 0 012-2h16a2 2 0 012 2v12a2 2 0 01-2 2h-6M2 20h.01",sun:"M12 16a4 4 0 100-8 4 4 0 000 8zM12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4",moon:"M21 12.8A9 9 0 1111.2 3a7 7 0 009.8 9.8z"};return(s,r)=>(Xe(),St("svg",Gh,[Oe("path",{d:n[t.name]??""},null,8,Wh)]))}}),Jh="bm.theme",Yh="dark",Zh={light:"#f3f4f1",dark:"#141917"},Qh=/(?:^|;\s*)bm\.theme=(light|dark)(?:;|$)/;function Xh(e){const t=Qh.exec(e);return t?t[1]:Yh}function ep(e,t){return`${Jh}=${e}; Path=/; Max-Age=31536000; SameSite=Lax${t?"; Secure":""}`}function tp(){return Xh(document.cookie)}function np(e){document.cookie=ep(e,location.protocol==="https:")}function sp(e){document.documentElement.dataset.theme=e;const t=document.getElementById("bm-theme-color");t&&t.setAttribute("content",Zh[e])}const rp=Gt("theme",()=>{const e=X(tp()),t=ne(()=>e.value==="dark");function n(r){e.value=r,np(r),sp(r)}function s(){n(e.value==="dark"?"light":"dark")}return{theme:e,dark:t,set:n,toggle:s}}),op=["aria-label","title"],il=En({__name:"ThemeToggle",setup(e){const t=rp(),n=ne(()=>t.dark?"Tryb jasny":"Tryb ciemny");return(s,r)=>(Xe(),St("button",{type:"button",class:"icon-btn theme-toggle","aria-label":n.value,title:n.value,onClick:r[0]||(r[0]=o=>Pe(t).toggle())},[Ee(yo,{name:Pe(t).dark?"sun":"moon"},null,8,["name"])],8,op))}});class We extends Error{constructor(n,s,r={}){super(s);Rn(this,"status");Rn(this,"errors");this.name="ApiError",this.status=n,this.errors=r}}const Gr="bm.token";class ip{constructor(t,n){Rn(this,"local");Rn(this,"session");Rn(this,"memory",null);this.local=t,this.session=n}read(t){try{return t?.getItem(Gr)??null}catch{return null}}get(){return this.read(this.local)??this.read(this.session)??this.memory}get remembered(){return this.read(this.local)!==null}set(t,n){this.clear();try{(n?this.local:this.session)?.setItem(Gr,t)}catch{}this.get()===null&&(this.memory=t)}replace(t){this.set(t,this.remembered)}clear(){this.memory=null;for(const t of[this.local,this.session])try{t?.removeItem(Gr)}catch{}}}function lp(e){const t=e.fetch??((...g)=>fetch(...g)),{tokens:n}=e;let s=null;function r(g,_){if(!_)return g;const w=new URLSearchParams;for(const[E,y]of Object.entries(_))y!=null&&y!==""&&w.set(E,String(y));const S=w.toString();return S?`${g}?${S}`:g}async function o(g,_){const w={Accept:"application/json"};if(_.headers)for(const[y,C]of Object.entries(_.headers))y.toLowerCase()!=="authorization"&&(w[y]=C);const S=n.get();_.auth!==!1&&S&&(w.Authorization=`Bearer ${S}`);let E;return _.body!==void 0&&(w["Content-Type"]="application/json",E=JSON.stringify(_.body)),t(r(g,_.query),{method:_.method??"GET",headers:w,body:E})}function i(){return s||(s=(async()=>{try{const g=await o("/_user/api/v1/refresh",{method:"POST"});if(!g.ok)return!1;const _=await g.json(),w=_.token??_.data?.token;return w?(n.replace(w),!0):!1}catch{return!1}finally{queueMicrotask(()=>{s=null})}})()),s}async function l(g){const _=await g.text();if(!_)return null;try{return JSON.parse(_)}catch{return null}}function a(g,_){const w=_??{},S=typeof w.error=="string"&&w.error||typeof w.message=="string"&&w.message||(g.status>=500?"Błąd serwera. Spróbuj ponownie za chwilę.":`Błąd ${g.status}`);return new We(g.status,S,w.errors??{})}async function c(g,_){let w;const S=n.get();try{w=await o(g,_)}catch{throw new We(0,"Brak połączenia z serwerem.")}if(w.status===401&&_.auth!==!1&&S){const E=n.get();if(E!==null&&E!==S?!0:await i())try{w=await o(g,_)}catch{throw new We(0,"Brak połączenia z serwerem.")}w.status===401&&(n.clear(),e.onUnauthorized?.())}return w}async function u(g,_={}){const w=await c(g,_),S=await l(w);if(!w.ok)throw a(w,S);return S}async function f(g,_={}){const w=await c(g,_);if(!w.ok){const S=await l(w);throw a(w,S)}return w.blob()}async function p(g,_={}){const w=await u(g,_);return w&&typeof w=="object"&&"data"in w?w.data:w}return{request:p,raw:u,blob:f}}function ll(e){try{return e()}catch{return null}}const ft=new ip(ll(()=>window.localStorage),ll(()=>window.sessionStorage));let Ja=()=>{};function ap(e){Ja=e}const H=lp({tokens:ft,onUnauthorized:()=>Ja()}),ut="/_user/api/v1",fn={login:e=>H.request(`${ut}/login`,{method:"POST",body:e,auth:!1}),register:e=>H.request(`${ut}/register`,{method:"POST",body:e,auth:!1}),fetch:()=>H.request(`${ut}/fetch`),logout:()=>H.request(`${ut}/logout`,{method:"POST"}),forgotPassword:e=>H.request(`${ut}/forgot-password`,{method:"POST",body:{email:e},auth:!1}),resetPassword:e=>H.request(`${ut}/reset-password`,{method:"POST",body:e,auth:!1}),update:e=>H.request(`${ut}/update`,{method:"POST",body:e}),changePassword:e=>H.request(`${ut}/change-password`,{method:"POST",body:e}),oauthProviders:()=>H.request(`${ut}/oauth-providers`,{auth:!1}),oauthComplete:e=>H.request(`${ut}/oauth-complete?code=${encodeURIComponent(e)}`,{auth:!1}),oauthRegisterComplete:e=>H.request(`${ut}/oauth-register-complete`,{method:"POST",body:e,auth:!1}),oauthLinkTicket:()=>H.request(`${ut}/oauth-link-ticket`,{method:"POST"})},cp="modulepreload",up=function(e){return"/"+e},al={},_e=function(t,n,s){let r=Promise.resolve();if(n&&n.length>0){let a=function(c){return Promise.all(c.map(u=>Promise.resolve(u).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),l=i?.nonce||i?.getAttribute("nonce");r=a(n.map(c=>{if(c=up(c),c in al)return;al[c]=!0;const u=c.endsWith(".css"),f=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${f}`))return;const p=document.createElement("link");if(p.rel=u?"stylesheet":cp,u||(p.as="script"),p.crossOrigin="",p.href=c,l&&p.setAttribute("nonce",l),document.head.appendChild(p),u)return new Promise((g,_)=>{p.addEventListener("load",g),p.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(i){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=i,window.dispatchEvent(l),!l.defaultPrevented)throw i}return r.then(i=>{for(const l of i||[])l.status==="rejected"&&o(l.reason);return t().catch(o)})},Qs="bm.lastPilot";function _r(){try{return window.localStorage}catch{return null}}function Ya(e){return typeof e=="string"&&e.trim()!==""&&e.length<=255&&!e.includes("/")}function fg(e,t=_r()){if(!(!t||!Ya(e)))try{t.setItem(Qs,e)}catch{}}function fp(e=_r()){if(!e)return null;try{const t=e.getItem(Qs);return Ya(t)?t:null}catch{return null}}function dg(e,t=_r()){if(t)try{t.getItem(Qs)===e&&t.removeItem(Qs)}catch{}}function dp(e=_r()){const t=fp(e);return t?{name:"presentation-remote",params:{slug:t}}:{name:"my-presentations"}}const gn=Kh({history:Th("/"),scrollBehavior:(e,t,n)=>e.meta.bare?!1:n??(e.hash?{el:e.hash,top:12}:e.path===t.path?void 0:{top:0}),routes:[{path:"/logowanie",name:"login",component:()=>_e(()=>import("./LoginView-CoN6lc_t.js"),__vite__mapDeps([0,1,2])),meta:{public:!0,guest:!0,title:"Logowanie"}},{path:"/rejestracja",name:"register",component:()=>_e(()=>import("./RegisterView-DlWwK2ym.js"),__vite__mapDeps([3,1])),meta:{public:!0,guest:!0,title:"Rejestracja"}},{path:"/przypomnij-haslo",name:"forgot",component:()=>_e(()=>import("./ForgotView-YqrAf5BQ.js"),__vite__mapDeps([4,1])),meta:{public:!0,title:"Przypomnienie hasła"}},{path:"/auth/oauth/callback",name:"oauth-callback",component:()=>_e(()=>import("./OAuthCallbackView-y44BGUaG.js"),__vite__mapDeps([5,1,2])),meta:{public:!0,title:"Logowanie"}},{path:"/auth/oauth/rejestracja",name:"oauth-register",component:()=>_e(()=>import("./OAuthRegisterView-C57lMCYc.js"),__vite__mapDeps([6,1])),meta:{public:!0,title:"Rejestracja"}},{path:"/reset-password",alias:"/reset-hasla",name:"reset",component:()=>_e(()=>import("./ResetView-no-hGF62.js"),__vite__mapDeps([7,1])),meta:{public:!0,title:"Nowe hasło"}},{path:"/",name:"dashboard",component:()=>_e(()=>import("./DashboardView-8OqO7zsP.js"),__vite__mapDeps([8,9,10,11,12])),meta:{title:"Pulpit",wide:!0}},{path:"/plan",name:"schedule",component:()=>_e(()=>import("./ScheduleView-CbOVsdAH.js"),__vite__mapDeps([13,9,10,11,14])),meta:{title:"Plan zajęć"}},{path:"/terminarz",name:"deadlines",component:()=>_e(()=>import("./DeadlinesView-C9TVsPTA.js"),__vite__mapDeps([15,9,10,11,14])),meta:{title:"Terminarz"}},{path:"/przedmioty",name:"courses",component:()=>_e(()=>import("./CoursesView-BlxTiwsR.js"),__vite__mapDeps([16,9,10,11])),meta:{title:"Przedmioty"}},{path:"/przedmioty/:id(\\d+)",name:"course",component:()=>_e(()=>import("./CourseView-CifcK3RZ.js"),__vite__mapDeps([17,9,10,18])),props:!0,meta:{title:"Przedmiot"}},{path:"/lektury",name:"readings",component:()=>_e(()=>import("./ReadingsView-B298cfEB.js"),__vite__mapDeps([19,9,10,11,18,14])),meta:{title:"Lektury"}},{path:"/materialy",name:"materials",component:()=>_e(()=>import("./MaterialsView-Bju7BgTE.js"),__vite__mapDeps([20,9])),meta:{title:"Materiały"}},{path:"/materialy/:id(\\d+)",name:"material",component:()=>_e(()=>import("./MaterialView-BDKa-Qqe.js"),__vite__mapDeps([21,9,10,12,22,23])),props:!0,meta:{title:"Materiał"}},{path:"/checklisty",name:"checklists",component:()=>_e(()=>import("./ChecklistsView-JSiJ-dWC.js"),__vite__mapDeps([24,9,10,1])),meta:{title:"Checklisty"}},{path:"/checklisty/:id(\\d+)",name:"checklist",component:()=>_e(()=>import("./ChecklistView-CJlmAMf2.js"),__vite__mapDeps([25,9,10,26,1])),props:!0,meta:{title:"Checklista"}},{path:"/sylabusy",name:"syllabi",component:()=>_e(()=>import("./SyllabiView-DLojIIhe.js"),__vite__mapDeps([27,9])),meta:{title:"Sylabusy"}},{path:"/quiz",redirect:"/quizy/powtorka-1-zjazd"},{path:"/quizy",name:"quizzes",component:()=>_e(()=>import("./QuizzesView-Cs6t-sCk.js"),__vite__mapDeps([28,9,10,29])),meta:{title:"Quizy"}},{path:"/quizy/:slug",name:"quiz",component:()=>_e(()=>import("./QuizView-8We_oNnM.js"),__vite__mapDeps([30,9,10,29])),props:!0,meta:{title:"Quiz"}},{path:"/wiecej",name:"more",component:()=>_e(()=>import("./MoreView-BlBbue-L.js"),__vite__mapDeps([31,9])),meta:{title:"Więcej"}},{path:"/profil",name:"profile",component:()=>_e(()=>import("./ProfileView-CU0Ytgzj.js"),__vite__mapDeps([32,9,1,2])),meta:{title:"Profil"}},{path:"/moje-prezentacje",name:"my-presentations",component:()=>_e(()=>import("./MyPresentationsView-RIclp9xd.js"),__vite__mapDeps([33,9,10,26])),meta:{title:"Moje prezentacje"}},{path:"/moje-prezentacje/:slug",name:"presentation-speaker",component:()=>_e(()=>import("./PresentationSpeakerView-BWlQPu2Z.js"),__vite__mapDeps([34,26,35,36,37,38,39,40,41])),props:!0,meta:{bare:!0,title:"Prezentacja"}},{path:"/moje-prezentacje/:slug/pilot",name:"presentation-remote",component:()=>_e(()=>import("./PresentationRemoteView-BNZeCGj2.js"),__vite__mapDeps([42,36,37,26,22,40,43,39,44])),props:!0,meta:{bare:!0,title:"Pilot"}},{path:"/pilot",name:"pilot",redirect:()=>dp()},{path:"/prezentacje/:slugHash",name:"presentation-public",component:()=>_e(()=>import("./PresentationPublicView-jQN9Dnyg.js"),__vite__mapDeps([45,26,35,36,37,38,46])),props:!0,meta:{public:!0,bare:!0,title:"Prezentacja"}},{path:"/connect",name:"connect",component:()=>_e(()=>import("./ConnectView-DUhAVL2o.js"),[]),meta:{title:"Połącz aplikację"}},{path:"/cast",name:"cast",component:()=>_e(()=>import("./CastReceiverView-DP6r90Jy.js"),__vite__mapDeps([47,36,37,26,35,38,43,40,48])),meta:{public:!0,bare:!0,cast:!0,title:"BM · TV"}},{path:"/:rest(.*)*",name:"notfound",component:()=>_e(()=>import("./NotFoundView-CXmp6-H0.js"),__vite__mapDeps([49,22])),meta:{title:"Nie znaleziono"}}]});gn.beforeEach(async e=>{const t=mc();return e.meta.cast===!0&&ft.clear(),t.ready||await t.restore(e),!e.meta.public&&!t.loggedIn?{name:"login",query:e.fullPath==="/"?{}:{redirect:e.fullPath}}:e.meta.guest&&t.loggedIn?{name:"dashboard"}:!0});gn.afterEach(e=>{const t=e.meta.title;document.title=t?`${t} · BM II°`:"BM II°"});const ve="/_bm/api/v1",Ae={dashboard:()=>H.request(`${ve}/dashboard`),courses:e=>H.request(`${ve}/courses`,{query:{semester:e}}),course:e=>H.request(`${ve}/courses/${e}`),schedule:(e,t)=>H.request(`${ve}/schedule`,{query:{from:e,to:t}}),meetings:()=>H.request(`${ve}/meetings`),deadlines:(e,t)=>H.request(`${ve}/deadlines`,{query:{from:e,to:t}}),readings:e=>H.request(`${ve}/readings`,{query:{course:e}}),markRead:e=>H.request(`${ve}/readings/${e}/progress`,{method:"PUT"}),unmarkRead:e=>H.request(`${ve}/readings/${e}/progress`,{method:"DELETE"}),markOwned:e=>H.request(`${ve}/readings/${e}/owned`,{method:"PUT"}),unmarkOwned:e=>H.request(`${ve}/readings/${e}/owned`,{method:"DELETE"}),materials:(e={})=>H.raw(`${ve}/materials`,{query:{...e}}),material:e=>H.request(`${ve}/materials/${e}`),materialAccess:e=>H.request(`${ve}/materials/${e}/access`),saveMaterialAccess:(e,t)=>H.request(`${ve}/materials/${e}/access`,{method:"PUT",body:t}),calendarFeed:()=>H.request(`${ve}/calendar-feed`),saveCalendarFeed:e=>H.request(`${ve}/calendar-feed`,{method:"PUT",body:e}),rotateCalendarFeed:()=>H.request(`${ve}/calendar-feed/rotate`,{method:"POST"}),deleteCalendarFeed:()=>H.request(`${ve}/calendar-feed`,{method:"DELETE"}),checklists:e=>H.request(`${ve}/checklists`,{query:{meeting:e}}),checklist:e=>H.request(`${ve}/checklists/${e}`),createChecklist:e=>H.request(`${ve}/checklists`,{method:"POST",body:e}),updateChecklist:(e,t)=>H.request(`${ve}/checklists/${e}`,{method:"PATCH",body:t}),deleteChecklist:e=>H.request(`${ve}/checklists/${e}`,{method:"DELETE"}),addChecklistItem:(e,t)=>H.request(`${ve}/checklists/${e}/items`,{method:"POST",body:t}),updateChecklistItem:(e,t)=>H.request(`${ve}/checklist-items/${e}`,{method:"PATCH",body:t}),deleteChecklistItem:e=>H.request(`${ve}/checklist-items/${e}`,{method:"DELETE"}),markChecklistItem:e=>H.request(`${ve}/checklist-items/${e}/done`,{method:"PUT"}),unmarkChecklistItem:e=>H.request(`${ve}/checklist-items/${e}/done`,{method:"DELETE"})},hp={"historia-koncepcje":"Historia / koncepcje wojny i pokoju",specjalnosc:"Specjalność"};function hg(e){return hp[e]??e}function Ko(e){const t=new Map;for(const n of e){if(!n.elective_group)continue;const s=t.get(n.elective_group)??[];s.includes(n.name)||s.push(n.name),t.set(n.elective_group,s)}return[...t].map(([n,s])=>({code:n,options:s}))}function pp(e,t){const n={};for(const s of Ko(e)){const r=t[s.code];r&&s.options.includes(r)&&(n[s.code]=r)}return n}function mp(e,t){if(!e.elective_group)return!1;const n=t[e.elective_group];return n!==void 0&&n!==e.name}function Za(e,t,n=!1){const s=new Set;if(n)return s;for(const r of e)mp(r,t)&&s.add(r.id);return s}function Wr(e,t){return t.size===0?e:e.filter(n=>n.course_id===null||!t.has(n.course_id))}function gp(e,t){return Ko(e).filter(n=>n.options.length>1&&!t[n.code])}function pg(e,t){return!!e.elective_group&&!t[e.elective_group]}const cl="bm.showAllElectives";function ul(e){try{return localStorage.getItem(e)}catch{return null}}function fl(e,t){try{localStorage.setItem(e,t)}catch{}}const is=Gt("electives",()=>{const e=X({}),t=X(ul(cl)==="1"),n=X(null),s=()=>n.value===null?null:`bm.electives.${n.value}`,r=()=>{const f=s();f&&fl(f,JSON.stringify(e.value))};function o(f){n.value=f;try{const p=JSON.parse(ul(`bm.electives.${f}`)??"{}");e.value=p&&typeof p=="object"?p:{}}catch{e.value={}}}const i=ne(()=>Object.keys(e.value).length>0);function l(f,p){const g={...e.value};p===null?delete g[f]:g[f]=p,e.value=g,r()}function a(f){t.value=f,fl(cl,f?"1":"0")}function c(f){const p=pp(f,e.value);Object.keys(p).length!==Object.keys(e.value).length&&(e.value=p,r())}function u(){e.value={},n.value=null}return{choices:e,showAll:t,userId:n,hasChoices:i,load:o,choose:l,setShowAll:a,prune:c,reset:u}}),wn=Gt("toast",()=>{const e=X("");let t;function n(r,o=4e3){e.value=r,clearTimeout(t),t=setTimeout(()=>e.value="",o)}function s(){e.value=""}return{message:e,show:n,clear:s}});function Ct(e){return e instanceof We?e.message:"Nie udało się wczytać danych."}function Cn(e){const t=jn(null),n=X(!1),s=X("");let r=null;function o(l=!1){return r||(t.value!==null&&!l?Promise.resolve():(n.value=!0,s.value="",r=e().then(a=>{t.value=a}).catch(a=>{s.value=Ct(a)}).finally(()=>{n.value=!1,r=null}),r))}function i(){t.value=null,s.value="",n.value=!1,r=null}return{data:t,loading:n,error:s,load:o,reset:i}}const dl="2000-01-01",Go=Gt("bm",()=>{const e=Cn(()=>Ae.courses()),t=Cn(()=>Ae.meetings()),n=Cn(()=>Ae.schedule(dl)),s=Cn(()=>Ae.deadlines(dl)),r=Cn(()=>Ae.readings()),o=Cn(()=>Ae.dashboard()),i=ne(()=>e.data.value),l=ne(()=>t.data.value),a=ne(()=>o.data.value),c=is(),u=ne(()=>Ko(i.value??[])),f=ne(()=>gp(i.value??[],c.choices)),p=ne(()=>Za(i.value??[],c.choices,c.showAll)),g=ne(()=>Wr(n.data.value??[],p.value)),_=ne(()=>Wr(s.data.value??[],p.value)),w=ne(()=>Wr(r.data.value??[],p.value)),S=ne(()=>r.data.value??[]),E=ne(()=>(i.value??[]).filter(q=>!p.value.has(q.id))),y=ne(()=>{const q=w.value,Se=q.filter(ee=>ee.is_required);return{total:q.length,read:q.filter(ee=>ee.read_at).length,requiredTotal:Se.length,requiredRead:Se.filter(ee=>ee.read_at).length}}),C=ne(()=>new Map((i.value??[]).map(q=>[q.id,q])));async function P(q=!1){await e.load(q),e.data.value&&c.prune(e.data.value)}async function N(q,Se){const ee=r.data.value,G=ee?.find(pe=>pe.id===q);if(!ee||!G)return;const re=G.read_at,Ne=pe=>{r.data.value=ee.map(Te=>Te.id===q?{...Te,read_at:pe}:Te)};Ne(Se?new Date().toISOString():null);try{const pe=Se?await Ae.markRead(q):await Ae.unmarkRead(q);Ne(pe.read_at)}catch(pe){Ne(re),wn().show(`Nie udało się zapisać zmiany. ${Ct(pe)}`)}}function Q(q,Se){const ee=r.data.value;ee&&(r.data.value=ee.map(G=>G.id===q?{...G,read_at:Se}:G))}async function j(q,Se){const ee=r.data.value,G=ee?.find(pe=>pe.id===q);if(!ee||!G)return;const re=G.owned_at,Ne=pe=>{r.data.value=ee.map(Te=>Te.id===q?{...Te,owned_at:pe}:Te)};Ne(Se?new Date().toISOString():null);try{const pe=Se?await Ae.markOwned(q):await Ae.unmarkOwned(q);Ne(pe.owned_at)}catch(pe){Ne(re),wn().show(`Nie udało się zapisać zmiany. ${Ct(pe)}`)}}const F=[e,t,n,s,r,o],B=ne(()=>F.some(q=>q.loading.value)),ie=ne(()=>F.find(q=>q.error.value)?.error.value??""),L=ne(()=>({courses:e.data.value!==null,meetings:t.data.value!==null,schedule:n.data.value!==null,deadlines:s.data.value!==null,readings:r.data.value!==null,dashboard:o.data.value!==null}));function xe(){for(const q of F)q.error.value&&q.load(!0)}function Ce(){for(const q of F)q.reset()}return{courses:i,electiveGroups:u,pendingElectives:f,hidden:p,meetings:l,dashboard:a,schedule:g,deadlines:_,readings:w,allReadings:S,visibleCourses:E,readingStats:y,courseById:C,loading:B,error:ie,loaded:L,retry:xe,loadCourses:P,loadMeetings:(q=!1)=>t.load(q),loadSchedule:(q=!1)=>n.load(q),loadDeadlines:(q=!1)=>s.load(q),loadReadings:(q=!1)=>r.load(q),loadDashboard:(q=!1)=>o.load(q),toggleReading:N,toggleOwned:j,setReadAt:Q,reset:Ce}}),yp={lektura:"Lektura",artykul:"Artykuł",ksiazka:"Książka",prezentacja:"Prezentacja",zadanie:"Zadanie",inne:"Inne"},mg=Object.keys(yp);function vp(e){const t=Math.floor(e/60),n=e%60;return t?n?`${t} h ${n} min`:`${t} h`:`${n} min`}function _p(e){const t={total:0,done:0,percent:0,minutes_total:0,minutes_done:0,minutes_left:0};for(const n of e){const s=n.estimate_minutes??0;t.total++,t.minutes_total+=s,n.done?(t.done++,t.minutes_done+=s):t.minutes_left+=s}return t.minutes_total?t.percent=Math.floor(t.minutes_done*100/t.minutes_total):t.percent=t.total?Math.floor(t.done*100/t.total):0,t}function gg(e){const t=`${e.done} z ${e.total}`;return e.minutes_left?`${t} · zostało ${vp(e.minutes_left)}`:t}function yg(e){const t=new Map;for(const s of e){const r=s.course?`c${s.course.id}`:"none";let o=t.get(r);o||(o={key:r,label:s.course?.name??"Ogólne",items:[]},t.set(r,o)),o.items.push(s)}const n=t.get("none");return t.delete("none"),n?[...t.values(),n]:[...t.values()]}function vg(e){if(!e)return"";const t=new Date(e),n=s=>String(s).padStart(2,"0");return`${t.getFullYear()}-${n(t.getMonth()+1)}-${n(t.getDate())}T${n(t.getHours())}:${n(t.getMinutes())}`}function _g(e){return e?e.replace("T"," "):null}const bp=Gt("checklists",()=>{const e=X(null),t=X(""),n=X({}),s=X("");async function r(){t.value="";try{e.value=await Ae.checklists()}catch(y){t.value=Ct(y)}}async function o(y){s.value="";try{i(await Ae.checklist(y))}catch(C){s.value=Ct(C)}}function i(y){y.items||(y={...y,items:n.value[y.id]?.items??[]}),n.value={...n.value,[y.id]:y};const C={...y,items:void 0};e.value&&(e.value=e.value.some(P=>P.id===y.id)?e.value.map(P=>P.id===y.id?C:P):[...e.value,C])}function l(y,C){const P=n.value[y];P&&i({...P,items:C,progress:_p(C)})}async function a(y){const C=await Ae.createChecklist(y);return i(C),C}async function c(y,C){i(await Ae.updateChecklist(y,C))}async function u(y){await Ae.deleteChecklist(y);const{[y]:C,...P}=n.value;n.value=P,e.value&&(e.value=e.value.filter(N=>N.id!==y))}function f(y,C){for(const P of Object.values(n.value))P.items?.some(N=>N.reading_id===y)&&l(P.id,P.items.map(N=>N.reading_id===y?{...N,done:C!==null,done_at:C}:N))}async function p(y,C){const P=n.value[y.checklist_id];if(!P?.items)return;const N=P.items,Q=j=>{if(y.reading_id!==null)f(y.reading_id,j);else{const F=n.value[y.checklist_id]?.items??N;l(y.checklist_id,F.map(B=>B.id===y.id?{...B,done:j!==null,done_at:j}:B))}};Q(C?new Date().toISOString():null);try{const j=C?await Ae.markChecklistItem(y.id):await Ae.unmarkChecklistItem(y.id);Q(j.done_at),y.reading_id!==null&&Go().setReadAt(y.reading_id,j.done_at)}catch(j){l(y.checklist_id,N),wn().show(`Nie udało się zapisać zmiany. ${Ct(j)}`)}}async function g(y,C){const P=await Ae.addChecklistItem(y,C),N=n.value[y];return N?.items&&l(y,[...N.items,P]),P}async function _(y,C){const P=await Ae.updateChecklistItem(y.id,C);if(P.checklist_id!==y.checklist_id){const Q=n.value[y.checklist_id];return Q?.items&&l(y.checklist_id,Q.items.filter(j=>j.id!==y.id)),o(P.checklist_id),r(),P}const N=n.value[y.checklist_id];if(N?.items){const Q=N.items.map(j=>j.id===y.id?P:j);l(y.checklist_id,Q.sort((j,F)=>j.sort_order-F.sort_order||j.id-F.id))}return P}async function w(y){await Ae.deleteChecklistItem(y.id);const C=n.value[y.checklist_id];C?.items&&l(y.checklist_id,C.items.filter(P=>P.id!==y.id))}async function S(y,C){const P=n.value[y.checklist_id]?.items;if(!P)return;const N=P.findIndex(B=>B.id===y.id),Q=P[N+C];if(!Q)return;const j=Q.sort_order===y.sort_order?N+C:Q.sort_order,F=Q.sort_order===y.sort_order?N:y.sort_order;try{await Promise.all([_(y,{sort_order:j}),_(Q,{sort_order:F})])}catch(B){wn().show(`Nie udało się zmienić kolejności. ${Ct(B)}`),o(y.checklist_id)}}function E(){e.value=null,n.value={},t.value="",s.value=""}return{list:e,listError:t,details:n,detailError:s,loadList:r,loadOne:o,create:a,update:c,remove:u,toggle:p,syncReading:f,addItem:g,updateItem:_,removeItem:w,move:S,reset:E}});function wp(e,t){return[...Za(e,t,!1)].sort((n,s)=>n-s)}function Ep(e,t){if(e.length!==t.length)return!1;const n=[...e].sort((r,o)=>r-o),s=[...t].sort((r,o)=>r-o);return n.every((r,o)=>r===s[o])}async function bg(e){try{if(navigator.clipboard&&window.isSecureContext)return await navigator.clipboard.writeText(e),!0}catch{}try{const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.top="-1000px",document.body.appendChild(t),t.select();const n=document.execCommand("copy");return document.body.removeChild(t),n}catch{return!1}}const Qa=Gt("calendarFeed",()=>{const e=X(void 0),t=X(!1),n=X(!1),s=X(""),r=Go(),o=is();let i=Promise.resolve();function l(E){const y=i.then(E,E);return i=y.catch(()=>{}),y}async function a(E=!1){if(!(e.value!==void 0&&!E)){t.value=!0,s.value="";try{e.value=await Ae.calendarFeed()}catch(y){s.value=Ct(y)}finally{t.value=!1}}}async function c(){await r.loadCourses();const E=r.courses;return E?wp(E,o.choices):null}async function u(E){n.value=!0,s.value="";try{await l(E)}catch(y){s.value=Ct(y)}finally{n.value=!1}}function f(){return u(async()=>{const E=await c();e.value=await Ae.saveCalendarFeed(E?{excluded_course_ids:E}:{})})}function p(E){return u(async()=>{e.value=await Ae.saveCalendarFeed(E)})}function g(){return u(async()=>{e.value=await Ae.rotateCalendarFeed()})}function _(){return u(async()=>{await Ae.deleteCalendarFeed(),e.value=null})}function w(){return l(async()=>{e.value===void 0&&await a();const E=e.value;if(!E)return;const y=await c();if(!(!y||Ep(y,E.excluded_course_ids)))try{e.value=await Ae.saveCalendarFeed({excluded_course_ids:y})}catch(C){wn().show(`Nie udało się zaktualizować kalendarza. ${Ct(C)}`)}})}vn(()=>o.choices,()=>{o.userId!==null&&w()});function S(){e.value=void 0,s.value="",t.value=!1,n.value=!1}return{feed:e,loading:t,busy:n,error:s,load:a,create:f,save:p,rotate:g,remove:_,sync:w,reset:S}}),Ls="/_bm/api/v1",rt="/_chat/api/v1";function hl(e,t,n){return new Promise((s,r)=>{const o=new XMLHttpRequest;o.open("POST",`${rt}/attachments`),o.setRequestHeader("Accept","application/json");const i=ft.get();if(i&&o.setRequestHeader("Authorization",`Bearer ${i}`),o.upload.onprogress=a=>{a.lengthComputable&&a.total>0&&t?.(Math.min(100,Math.round(a.loaded/a.total*100)))},o.onload=()=>{let a=null;try{a=o.responseText?JSON.parse(o.responseText):null}catch{a=null}const c=a&&typeof a=="object"&&"data"in a?a.data:a;if(o.status>=200&&o.status<300&&c&&typeof c.id=="number"){s({id:c.id,filename:String(c.filename??e.name),size:Number(c.size??e.size)});return}const u=a??{};r(new We(o.status,typeof u.error=="string"?u.error:`Błąd ${o.status}`,u.errors??{}))},o.onerror=()=>r(new We(0,"Brak połączenia z serwerem.")),o.onabort=()=>r(new We(0,"Przerwano wysyłanie.")),n){if(n.aborted){r(new We(0,"Przerwano wysyłanie."));return}n.addEventListener("abort",()=>o.abort(),{once:!0})}const l=new FormData;l.append("file",e,e.name),o.send(l)})}async function Sp(e,t,n){const s=ft.get();try{return await hl(e,t,n)}catch(r){if(!(r instanceof We)||r.status!==401||!s||n?.aborted)throw r;await H.request("/_user/api/v1/fetch").catch(()=>null);const o=ft.get();if(!o||o===s)throw r;return t?.(0),hl(e,t,n)}}async function Tp(e,t,n){const s=await H.blob(`${rt}/attachments/${e}/${t}`),r=URL.createObjectURL(new Blob([s],{type:"application/octet-stream"})),o=document.createElement("a");o.href=r,o.download=n||"plik",o.rel="noopener",o.style.display="none",document.body.appendChild(o),o.click(),o.remove(),setTimeout(()=>URL.revokeObjectURL(r),3e4)}const Ve={bootstrap:()=>H.request(`${Ls}/chat`),members:()=>H.request(`${Ls}/chat/members`),messages:(e,{limit:t=50,before:n}={})=>H.request(`${rt}/conversations/${e}/messages`,{query:{limit:t,before:n}}),send:(e,t)=>H.request(`${rt}/conversations/${e}/messages`,{method:"POST",body:t}),message:e=>H.request(`${rt}/messages/${e}`),markRead:e=>H.request(`${rt}/conversations/${e}/read`,{method:"POST"}),typing:e=>H.request(`${rt}/conversations/${e}/typing`,{method:"POST"}),edit:(e,t)=>H.request(`${rt}/messages/${e}`,{method:"PUT",body:{content:t}}),remove:e=>H.request(`${rt}/messages/${e}`,{method:"DELETE"}),reactions:()=>H.request(`${rt}/reactions`),addReaction:(e,t)=>H.request(`${rt}/messages/${e}/reactions`,{method:"POST",body:{key:t}}),removeReaction:(e,t)=>H.request(`${rt}/messages/${e}/reactions/${encodeURIComponent(t)}`,{method:"DELETE"}),embeds:(e,t="")=>H.request(`${Ls}/chat/embeds`,{query:{type:e,q:t.trim()}}),resolveEmbeds:e=>H.request(`${Ls}/chat/embeds/resolve`,{method:"POST",body:{refs:e}}),upload:Sp,download:Tp,startDm:e=>H.request(`${rt}/contexts/bm/1/dm`,{method:"POST",body:{user_id:e}})};function Dt(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Ke(e){return typeof e=="number"&&Number.isInteger(e)&&e>0?e:null}function Rp(e){return Dt(e)?Ke(e.id)!==null&&Ke(e.conversation_id)!==null&&Ke(e.sender_id)!==null&&typeof e.created_at=="string"&&(e.content===null||typeof e.content=="string")&&Array.isArray(e.attachments):!1}function Ap(e){if(!Dt(e)||typeof e.event!="string")return null;const t=e.payload;switch(e.event){case"created.chat.message":{if(!Dt(t))return null;const n=Ke(t.id),s=Ke(t.conversation_id),r=Ke(t.sender_id);return n===null||s===null||r===null?null:{kind:"created",id:n,conversationId:s,senderId:r}}case"chat:message":{if(!Dt(t)||!Rp(t.message))return null;const n=Ke(t.conversation_id);return n===null||n!==t.message.conversation_id?null:{kind:"chatMessage",conversationId:n,message:t.message}}case"typing.chat.message":{if(!Dt(t)||t.action!=="typing-start")return null;const n=Ke(t.conversation_id),s=Ke(t.user_id);return n===null||s===null?null:{kind:"typing",conversationId:n,userId:s}}case"chat:read":{if(!Dt(t))return null;const n=Ke(t.conversation_id),s=Ke(t.user_id);return n===null||s===null?null:{kind:"read",conversationId:n,userId:s}}case"chat:unread":return!Dt(t)||typeof t.count!="number"||!Number.isInteger(t.count)||t.count<0?null:{kind:"unread",count:t.count};case"mentions.changed":return{kind:"mentions"};case"reacted.chat.message":{if(!Dt(t))return null;const n=Ke(t.id),s=Ke(t.conversation_id),r=Ke(t.user_id);return n===null||s===null||r===null||typeof t.key!="string"||t.key===""||t.action!=="added"&&t.action!=="removed"?null:{kind:"reacted",id:n,conversationId:s,userId:r,key:t.key,added:t.action==="added"}}case"updated.chat.message":case"deleted.chat.message":{if(!Dt(t))return null;const n=Ke(t.id),s=Ke(t.conversation_id);return n===null||s===null?null:{kind:e.event==="updated.chat.message"?"updated":"deleted",id:n,conversationId:s}}default:return null}}function xp(e,t){if(e.kind!=="created")return!1;const n=t[e.conversationId];return!!n&&!n.some(s=>s.id===e.id)}function Cp(e,t,{seen:n}){const s={id:t.id,sender_id:t.sender_id,content:t.content??"",created_at:t.created_at},r=e.findIndex(a=>a.id===t.conversation_id);if(r===-1)return[{id:t.conversation_id,type:"dm",other_user_id:t.sender_id,unread:n?0:1,last_message:s},...e];const o=e[r];if(o.last_message&&o.last_message.id===t.id)return e;const i=!o.last_message||Date.parse(t.created_at)>=Date.parse(o.last_message.created_at),l={...o,unread:n?o.unread:o.unread+1,last_message:i?s:o.last_message};return e.map((a,c)=>c===r?l:a)}function Jr(e,t,n,s,r=[]){const o=e?[...e]:[],i=o.findIndex(c=>c.key===t),l=i>=0&&o[i].user_ids.includes(n);if(s===l)return e||o;if(s){if(i>=0)return o[i]={...o[i],count:o[i].count+1,user_ids:[...o[i].user_ids,n]},o;const c={key:t,count:1,user_ids:[n]},u=p=>{const g=r.indexOf(p);return g<0?r.length:g};let f=o.length;return r.includes(t)&&(f=o.findIndex(p=>u(p.key)>u(t)),f<0&&(f=o.length)),o.splice(f,0,c),o}const a=o[i].user_ids.filter(c=>c!==n);return a.length===0?o.splice(i,1):o[i]={...o[i],count:Math.max(0,o[i].count-1),user_ids:a},o}const Op=["svg","svgz","html","htm","xhtml","xml"],Pp=["image/svg+xml","text/html","application/xhtml+xml","text/xml","application/xml"];function pl(e){const t=e/1048576;return Number.isInteger(t)?String(t):(Math.floor(t*10)/10).toFixed(1).replace(".",",")}function Mp(e){const t=e.name.lastIndexOf("."),n=(t>=0?e.name.slice(t+1):e.name).toLowerCase();if(Op.includes(n))return!0;const s=(e.type||"").split(";")[0].trim().toLowerCase();return Pp.includes(s)}function kp(e,t,n,s=0){const r=[],o=[];let i=!1,l=!1,a=!1,c=s;for(const u of e){if(Mp(u)){i=!0;continue}if(t.max_bytes>0&&u.size>t.max_bytes){o.push(`Plik „${u.name}” jest za duży. Limit to ${pl(t.max_bytes)} MB.`);continue}if(n+r.length>=t.max_files){l=!0;continue}if(t.max_bytes>0&&c+u.size>t.max_bytes){a=!0;continue}c+=u.size,r.push(u)}return a&&o.unshift(`Załączniki jednej wiadomości mogą mieć razem najwyżej ${pl(t.max_bytes)} MB.`),i&&o.unshift("Plików SVG, HTML i XML nie można wysyłać na czacie."),l&&o.unshift(`Możesz dołączyć najwyżej ${t.max_files} plików do jednej wiadomości.`),{accepted:r,errors:o}}const Xa="Europe/Warsaw",Ip="pl-PL";function ec(e,t,n,s){const r=Math.abs(e);if(r===1)return t;const o=r%10,i=r%100;return o>=2&&o<=4&&!(i>=12&&i<=14)?n:s}function vo(e,t,n,s){return`${e} ${ec(e,t,n,s)}`}const Un=(e,t=Xa)=>new Intl.DateTimeFormat(Ip,{timeZone:t,...e}),Lp=Un({hour:"2-digit",minute:"2-digit",hourCycle:"h23"}),Dp=Un({weekday:"long",day:"numeric",month:"long"}),Np=Un({day:"numeric",month:"long",year:"numeric"}),jp=Un({day:"numeric",month:"short"});Un({weekday:"long"});const $p=new Intl.DateTimeFormat("sv-SE",{timeZone:Xa,year:"numeric",month:"2-digit",day:"2-digit"});function Ds(e){return new Date(`${e}T12:00:00Z`)}const Ns=e=>Un(e,"UTC"),_o=e=>Lp.format(new Date(e)),zp=e=>Dp.format(new Date(e)),Vp=e=>Np.format(new Date(e)),wg=e=>jp.format(new Date(e)),Fp=e=>`${Vp(e)}, ${_o(e)}`,tc=e=>$p.format(typeof e=="string"?new Date(e):e),Bp=(e=new Date)=>tc(e);function nc(e,t=new Date){const n=Date.parse(`${Bp(t)}T00:00:00Z`),s=Date.parse(`${tc(e)}T00:00:00Z`);return Math.round((s-n)/864e5)}function Up(e,t=new Date){const n=nc(e,t);return n===0?"dzisiaj":n===1?"jutro":n===-1?"wczoraj":n>1?`za ${vo(n,"dzień","dni","dni")}`:`${vo(-n,"dzień","dni","dni")} temu`}function Eg(e,t){if(e===t)return Ns({day:"numeric",month:"long",year:"numeric"}).format(Ds(e));const[n,s]=e.split("-"),[r,o]=t.split("-"),i=c=>Ns({day:"numeric"}).format(Ds(c)),l=c=>Ns({day:"numeric",month:"long"}).format(Ds(c)),a=c=>Ns({year:"numeric"}).format(Ds(c));return n===r&&s===o?`${i(e)}–${l(t)} ${a(t)}`:n===r?`${l(e)} – ${l(t)} ${a(t)}`:`${l(e)} ${a(e)} – ${l(t)} ${a(t)}`}function Sg(e){return e?/online/i.test(e)?"online":/stacjonarn/i.test(e)?"stacjonarny":null:null}function Tg(e){return e?e.trim().toLowerCase()==="online"?"":e.trim():""}const qp={wyklad:"wykład",cwiczenia:"ćwiczenia",konwersatorium:"konwersatorium",seminarium:"seminarium",inne:"zajęcia"},Hp={zaliczenie:"zaliczenie",egzamin:"egzamin",praca:"praca",organizacyjne:"organizacyjne",inne:"inne"},Rg={pdf:"PDF",notatka:"notatka",link:"link",inne:"inne"};function Ag(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(0)} KB`:`${(e/1024/1024).toFixed(1).replace(".",",")} MB`}const Kp=["deadline","class","reading"],bo=3,xg={deadline:"Termin",class:"Zajęcia",reading:"Lektura"};function tn(e){return`${e.type}:${e.id}`}function Gp(e){return typeof e=="string"&&Kp.includes(e)}function sc(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>0}function Wp(e){if(!e||typeof e!="object")return!1;const t=e;return Gp(t.type)&&sc(t.id)}function Jp(e,t=bo){const n=e?.metadata?.embeds;if(!Array.isArray(n))return[];const s=[],r=new Set;for(const o of n){if(s.length>=t)break;if(!Wp(o))continue;const i={type:o.type,id:o.id},l=tn(i);r.has(l)||(r.add(l),s.push(i))}return s}function rc(e){switch(e.type){case"deadline":return`/terminarz#termin-${e.id}`;case"class":return`/plan#zajecia-${e.id}`;case"reading":return`/lektury#lektura-${e.id}`}}function Yp(e,t=""){return e.map(n=>t+rc(n)).join(`
`)}function Cg(e,t){if(!e||!t.length)return!1;const n=e.trim().split(`
`);return n.length!==t.length?!1:n.every((s,r)=>{const o=rc(t[r]);return s===o?!0:s.endsWith(o)?/^https?:\/\/[^/\s]+$/i.test(s.slice(0,s.length-o.length)):!1})}function Og(e){switch(e.type){case"deadline":return e.deadline.title;case"class":return e.session.course?.name??"";case"reading":return e.reading.title}}function Pg(e){switch(e.type){case"deadline":return`/terminarz#termin-${e.id}`;case"class":{const t=e.session;return t.meeting_number?`/plan?zjazd=${t.meeting_number}#zajecia-${e.id}`:`/przedmioty/${t.course_id}`}case"reading":return`/lektury#lektura-${e.id}`}}function Mg(e){switch(e.type){case"deadline":{const t=e.deadline,n=[Fp(t.due_at),Hp[t.kind]??t.kind];return t.course?.name&&n.push(t.course.name),n.join(" · ")}case"class":{const t=e.session,n=[`${zp(t.starts_at)}, ${_o(t.starts_at)}–${_o(t.ends_at)}`];return t.course?.form&&n.push(qp[t.course.form]??t.course.form),t.is_online?n.push("online"):t.room&&n.push(`sala ${t.room}`),n.join(" · ")}case"reading":{const t=e.reading;return[t.author,t.course?.name].filter(n=>!!n).join(" · ")}}}function ml(e,t){const n=nc(e,t);return{text:Up(e,t),warn:n>=0&&n<=14}}function kg(e,t=new Date){switch(e.type){case"deadline":return ml(e.deadline.due_at,t);case"class":return ml(e.session.starts_at,t);case"reading":return e.reading.is_required?{text:"obowiązkowa",warn:!1}:null}}const Zp=[{path:"/terminarz",hash:/^#termin-([1-9]\d{0,15})$/,type:"deadline"},{path:"/plan",hash:/^#zajecia-([1-9]\d{0,15})$/,type:"class"},{path:"/lektury",hash:/^#lektura-([1-9]\d{0,15})$/,type:"reading"}];function oc(e,t){const n=e.trim();if(!n||!/^https?:\/\//i.test(n)&&(!n.startsWith("/")||n.startsWith("//")))return null;let r;try{r=new URL(n,t)}catch{return null}if(r.origin!==t)return null;for(const o of Zp){if(r.pathname!==o.path)continue;const i=o.hash.exec(r.hash);if(!i)return null;const l=Number(i[1]);return sc(l)?{type:o.type,id:l}:null}return null}const Qp=/https?:\/\/[^\s<>"'`]+|(?<![^\s(\[{"'„«])\/[^\s<>"'`]+/gi;function Xp(e,t){const n=[],s=new Set;for(const r of e.matchAll(Qp)){const o=r[0].replace(/[.,;:!?)\]}"'”»]+$/,""),i=oc(o,t);if(!i)continue;const l=tn(i);s.has(l)||(s.add(l),n.push(i))}return n}function Ig(e,t){const n=Xp(e,t);return n.length?{insertText:e.trim().split(/\s+/).every(o=>oc(o,t)!==null)?"":e,refs:n}:{insertText:e,refs:n}}const em="/ws",tm="/api/realtime/token",nm=new Set([401,403,404]);function ic(e){return nm.has(e)}const sm=1;function rm(e=window.location){return`${e.protocol==="https:"?"wss":"ws"}://${e.host}${em}`}function om(e){const t=String(e);return t==="connected"||t==="connecting"?t:"disconnected"}function wo(e){if(!e||typeof e.client!="string")return null;const t=Number(e.user);return!Number.isInteger(t)||t<=0?null:{client:e.client,user:t}}let Vt=null,kn=null,gs="disconnected",br=!1,Xs=null,Eo=null,bn=0;const rn=new Map,So=new Set,Vs=new Set;function lc(e){gs=e;for(const t of[...So])t(e)}function im(){br=!0;for(const e of[...Vs])e()}function Lg(e){Xs=e}function lm(e,t){return e instanceof We&&ic(e.status)&&Eo?new Eo(t):e}function ac(e){return So.add(e),()=>{So.delete(e)}}function cc(e){return Vs.add(e),br&&queueMicrotask(()=>Vs.has(e)&&e()),()=>{Vs.delete(e)}}function am(){if(Vt)return gs==="disconnected"&&!br&&Vt.connect(),Promise.resolve(Vt);if(kn)return kn;const e=bn;return kn=(async()=>{try{const{Centrifuge:t,UnauthorizedError:n}=await _e(async()=>{const{Centrifuge:r,UnauthorizedError:o}=await import("./index-B53bcf0x.js");return{Centrifuge:r,UnauthorizedError:o}},[]);if(e!==bn)throw new Error("realtime: disconnected while loading");Eo=n;const s=new t(rm(),{minReconnectDelay:500,maxReconnectDelay:1e4,getToken:async()=>{try{const r=Xs;let o;if(r?o=await r.connection():o=(await H.request(tm))?.token,typeof o!="string"||o==="")throw new Error("realtime: empty token");return o}catch(r){throw r instanceof We&&ic(r.status)?(im(),new n("realtime unavailable")):r}}});return s.on("state",r=>{Vt===s&&lc(om(r.newState))}),Vt=s,s.connect(),s}finally{e===bn&&(kn=null)}})(),kn}function On(e,t){for(const n of[...e.hooks])t(n)}function cm(e,t){return Xs?.subscription?e.newSubscription(t,{getToken:async()=>{const n=Xs;if(!n?.subscription)throw new Error("realtime: no subscription token source");try{const s=await n.subscription(t);if(typeof s!="string"||s==="")throw new Error("realtime: empty subscription token");return s}catch(s){throw lm(s,"subscription refused")}}}):e.newSubscription(t)}function um(e,t,n){let s=rn.get(t);if(s)String(s.sub.state)==="subscribed"&&queueMicrotask(()=>s?.hooks.has(n)&&n.onSubscribed?.());else{const r=e.getSubscription(t)??cm(e,t),o={sub:r,hooks:new Set};r.on("publication",i=>On(o,l=>l.onPublication?.(i.data))),r.on("subscribed",()=>On(o,i=>i.onSubscribed?.())),r.on("unsubscribed",i=>{i.code>=400?On(o,l=>l.onDenied?.(i.code)):i.code===sm&&On(o,l=>l.onDenied?.(401))}),r.on("join",i=>{const l=wo(i.info);l&&On(o,a=>a.onJoin?.(l))}),r.on("leave",i=>{const l=wo(i.info);l&&On(o,a=>a.onLeave?.(l))}),rn.set(t,o),r.subscribe(),s=o}return s.hooks.add(n),s}function uc(e,t){t.sub.removeAllListeners(),t.sub.unsubscribe(),Vt?.removeSubscription(t.sub),rn.delete(e)}async function Fs(e,t){const n=await am(),s={...t},r=bn;um(n,e,s);let o=!1;return{close(){if(o)return;o=!0;const i=rn.get(e);r!==bn||!i||!i.hooks.delete(s)||i.hooks.size>0||(uc(e,i),rn.size===0&&Vt===n&&n.disconnect())},resubscribe(){o||r!==bn||rn.get(e)?.sub.subscribe()}}}async function fm(e){const t=rn.get(e);if(!t)return null;try{const n=await t.sub.presence();return Object.values(n.clients??{}).map(s=>wo(s)).filter(s=>s!==null)}catch{return null}}function dm(){bn++,kn=null;for(const[t,n]of[...rn])uc(t,n);const e=Vt;Vt=null,br=!1,e&&(e.disconnect(),e.removeAllListeners()),gs!=="disconnected"&&lc("disconnected")}async function Dg(e,t){const n=ac(i=>t.onConnection?.(i)),s=cc(()=>t.onUnavailable?.());let r;try{r=await Fs(e,{onPublication:i=>t.onPublication(i),onSubscribed:()=>t.onSubscribed?.(),onDenied:i=>t.onDenied?.(i)})}catch(i){throw n(),s(),i}gs==="connected"&&t.onConnection?.(gs);let o=!1;return{close(){o||(o=!0,n(),s(),r.close())},resubscribe(){o||r.resubscribe()}}}const hm={max_files:5,max_bytes:62914560};function pm(e){return`Nie udało się wysłać pliku „${e}”.`}const mm=Object.freeze({text:"",error:"",sending:!1,embeds:Object.freeze([]),files:Object.freeze([])}),gl=50;function gm(){return typeof window<"u"&&window.location?window.location.origin:""}function ym(e){const t=e instanceof We?e.status:-1;return t===0?"Nie wysłano: brak połączenia z internetem. Spróbuj ponownie.":t===429?"Za dużo wiadomości w krótkim czasie. Odczekaj chwilę i wyślij ponownie.":t===403||t===404?"Nie masz już dostępu do tej rozmowy.":t===400||t===422?"Tej wiadomości nie da się wysłać. Sprawdź treść i załączniki.":"Nie wysłano wiadomości. Spróbuj ponownie."}function vm(e){return e instanceof We&&e.status===429?"Za dużo nowych rozmów w krótkim czasie. Odczekaj minutę i spróbuj ponownie.":e instanceof We&&e.status===0?"Brak połączenia z internetem. Spróbuj ponownie.":"Nie udało się rozpocząć rozmowy. Spróbuj ponownie."}const _m=15e3,bm=6e4,wm=500,Qt=50,Em="Nie udało się wczytać starszych wiadomości.",Sm=3e3,Tm=6e3,yl={add:"Nie udało się dodać reakcji.",remove:"Nie udało się cofnąć reakcji."},vl="Nie udało się zapisać zmian. Spróbuj ponownie.",Rm="Nie udało się usunąć wiadomości. Spróbuj ponownie.";function fc(e){e.deleted_at=e.deleted_at??new Date().toISOString(),e.content=null,e.reactions=[],e.attachments=[],e.metadata=void 0}function Am(e,t,n){const s=new Set(t.map(o=>o.id)),r=t.length<Qt?0:t[0]?.id??1/0;for(const o of e)o.deleted_at||s.has(o.id)||o.id<r||o.id>n||fc(o)}const _l=e=>`chat:conversation:${e}`;function xm(){return typeof document>"u"||typeof document.hasFocus!="function"||document.hasFocus()}function bl(e,t){if(e.some(s=>s.id===t.id))return!1;let n=e.length;for(;n>0&&e[n-1].id>t.id;)n--;return e.splice(n,0,t),!0}const dc=e=>`bm.chat.member.${e}`;function hc(){try{return globalThis.localStorage??null}catch{return null}}function Cm(e){try{const t=hc()?.getItem(dc(e));return t==="1"?!0:t==="0"?!1:void 0}catch{return}}function Om(e,t){try{hc()?.setItem(dc(e),t?"1":"0")}catch{}}const pc=Gt("chat",()=>{const e=X(null),t=X(void 0),n=X(!1),s=X(null),r=X([]),o=X(null),i=X(null),l=X("general"),a=X(""),c=X({}),u=X({}),f=X({}),p=X({}),g=X({}),_=jn(new Map),w=X("idle"),S=X("idle"),E=X("idle"),y=X(!1),C=X({}),P=X({}),N=X({}),Q=jn(new Map),j=X(!1),F=X({}),B=X(null),ie=X({});let L=0,xe=null,Ce=null,q=null;const Se=new Map,ee=new Map,G=new Set;let re=null,Ne=0;const pe=new Map,Te=new Map;let ke=!1,yt=null,vt=null,st=null,qe=null,O=0,U=[],z=null,K=null;const oe=new Set,h=new Map,m=new Map,v=new Map,A=new Set;let x=null;const T=new Map,$=new Map,I=ne(()=>s.value?.conversation_id??null);function D(d){return d===I.value?s.value?.unread??0:r.value.find(b=>b.id===d)?.unread??0}function M(d){return d===I.value?s.value?.mentions??0:0}const Y=ne(()=>r.value.reduce((d,b)=>d+(b.unread>0?b.unread:0),0)),V=ne(()=>t.value?Math.max(0,s.value?.unread??0)+Y.value:0),W=ne(()=>t.value?Math.max(0,s.value?.mentions??0):0),te=ne(()=>{const d=new Map;for(const b of _.value.values())b.handle&&d.set(b.handle,b);return d}),ae=ne(()=>e.value!==null?_.value.get(e.value)?.handle??null:null),he=ne(()=>[...new Set(Q.value.values())].filter(d=>d!==e.value).sort((d,b)=>d-b)),me=ne(()=>he.value.length+1);function Ie(d){return j.value&&he.value.includes(d)}function je(d){return E.value==="unavailable"?[]:F.value[d]??[]}const at=ne(()=>[...r.value].sort((d,b)=>{const R=d.last_message?Date.parse(d.last_message.created_at):-1/0;return(b.last_message?Date.parse(b.last_message.created_at):-1/0)-R||b.id-d.id}));function ct(d){if(!d.member){ri(),t.value=!1,n.value=!1,s.value=null,r.value=[],o.value=null,i.value=null,l.value="general",c.value={};return}t.value=!0,n.value=d.moderator,s.value=d.general,r.value=(d.conversations??[]).map(R=>({...R})),o.value=d.limits;for(const R of[...v.keys(),...A])Wo(R);i.value!==null&&(i.value===d.general.conversation_id||r.value.some(R=>R.id===i.value))||(i.value=d.general.conversation_id,l.value==="dm"&&(l.value="general"))}function _t(){if(xe)return xe;const d=L,b=S.value==="ready";return b||(S.value="loading"),xe=(async()=>{try{const R=await Ve.bootstrap();if(d!==L)return;ct(R),e.value!==null&&Om(e.value,R.member),S.value="ready"}catch{d===L&&!b&&(S.value="error")}finally{d===L&&(xe=null)}})(),xe}async function Es(d){e.value!==d&&(oi(),e.value=d),t.value===void 0&&(t.value=Cm(d));const b=L;await _t(),!(b!==L||!t.value)&&(Xo(),ei(),bc(),Xc(),i.value!==null&&l.value!=="dms"&&await Je(i.value))}async function He(d){const b=L;u.value[d]=!0,f.value[d]="";try{const R=await Ve.messages(d,{limit:Qt});if(b!==L)return;c.value[d]=R,C.value[d]=R.length<Qt,D(d)===0&&M(d)===0&&m.set(d,R.at(-1)?.id??0)}catch{b===L&&(f.value[d]="Nie udało się wczytać wiadomości. Sprawdź połączenie z internetem i spróbuj ponownie.")}finally{b===L&&(u.value[d]=!1)}}async function Je(d){i.value=d,Or(),c.value[d]===void 0&&!u.value[d]&&await He(d)}function Sn(d){const b=h.get(d);if(b)return b;const R=L,k=(async()=>{try{const J=c.value[d]?.at(-1)?.id??0,ce=await Ve.messages(d,{limit:Qt});if(R!==L)return;const fe=c.value[d],le=fe?.at(-1)?.id??0;if(!fe||ce.length>=Qt&&ce[0].id>le){c.value[d]=ce,f.value[d]="",C.value[d]=ce.length<Qt;return}Am(fe,ce,J);const ue=new Map(fe.map(bt=>[bt.id,bt]));for(const bt of ce)ue.set(bt.id,bt);c.value[d]=[...ue.values()].sort((bt,an)=>bt.id-an.id)}catch{}finally{R===L&&h.delete(d)}})();return h.set(d,k),k}async function Ss(d){const b=c.value[d];if(!b?.length||P.value[d]||C.value[d])return;const R=L;P.value[d]=!0,N.value[d]="";try{const k=await Ve.messages(d,{limit:Qt,before:b[0].id});if(R!==L)return;const J=c.value[d]??[],ce=new Set(J.map(fe=>fe.id));c.value[d]=[...k.filter(fe=>!ce.has(fe.id)),...J],C.value[d]=k.length<Qt}catch{R===L&&(N.value[d]=Em)}finally{R===L&&(P.value[d]=!1)}}function Wo(d){if(d===I.value){s.value&&(s.value.unread=0,s.value.mentions=0);return}const b=r.value.find(R=>R.id===d);b&&(b.unread=0)}function _c(d){const b=c.value[d]?.at(-1)?.id??0;if(!(D(d)>0||M(d)>0||b>(m.get(d)??0))||(Wo(d),m.set(d,b),v.has(d)))return;const k=L;v.set(d,setTimeout(()=>{v.delete(d),k===L&&(A.add(d),Ve.markRead(d).catch(()=>{}).finally(()=>{k===L&&A.delete(d)}))},wm))}function bc(){x||typeof document>"u"||(x=()=>{document.visibilityState==="visible"&&t.value&&qn()},document.addEventListener("visibilitychange",x))}function Jo(){return l.value==="dms"?null:i.value}function wc(d){return i.value===d&&l.value!=="dms"&&y.value&&xm()}function Yo(d){const b=c.value[d.conversation_id];b&&bl(b,d);const R=r.value.find(k=>k.id===d.conversation_id);R&&(!R.last_message||Date.parse(d.created_at)>=Date.parse(R.last_message.created_at))&&(R.last_message={id:d.id,sender_id:d.sender_id,content:d.content??"",created_at:d.created_at})}async function Ec(){l.value="general",I.value!==null&&await Je(I.value)}function Sc(){l.value="dms",a.value="",Or()}async function wr(d){l.value="dm",await Je(d)}function Zo(d){return r.value.find(b=>b.other_user_id===d)}async function Tc(d){a.value="";const b=Zo(d);if(b)return await wr(b.id),b.id;const R=L;try{const k=await Ve.startDm(d);return R!==L?null:(r.value.some(J=>J.id===k.id)||r.value.unshift({id:k.id,type:k.type||"dm",other_user_id:d,unread:0,last_message:null}),await wr(k.id),k.id)}catch(k){return R===L&&(a.value=vm(k)),null}}function Er(d){return d!==null&&p.value[d]||mm}function Ts(d){return p.value[d]||(p.value[d]={text:"",error:"",sending:!1,embeds:[],files:[]}),p.value[d]}function Sr(d){return Er(d).files.some(b=>b.state==="uploading")}function Rc(d){const b=Er(d);return b.sending||Sr(d)?!1:b.text.trim()!==""||b.embeds.length>0||b.files.some(R=>R.state==="done")}function Qo(d,b){const R=pe.get(b),k=p.value[d]?.files.find(le=>le.localId===b);if(!R||!k)return;k.state="uploading",k.progress=0,k.id=null;const J=new AbortController;Te.set(b,J);const ce=L,fe=()=>p.value[d]?.files.find(le=>le.localId===b);Ve.upload(R,le=>{const ue=fe();ce===L&&ue&&ue.state==="uploading"&&(ue.progress=le)},J.signal).then(le=>{const ue=fe();ce!==L||!ue||J.signal.aborted||(ue.state="done",ue.progress=100,ue.id=le.id)}).catch(()=>{const le=fe();if(ce!==L||!le||J.signal.aborted)return;le.state="failed";const ue=p.value[d];ue&&(ue.error=pm(le.name))}).finally(()=>{Te.get(b)===J&&Te.delete(b)})}function Ac(d,b){const R=Ts(d),k=R.files.reduce((fe,le)=>fe+le.size,0),{accepted:J,errors:ce}=kp(b,o.value??hm,R.files.length,k);R.error=ce.join(" ");for(const fe of J){const le=++Ne;pe.set(le,fe),R.files.push({localId:le,name:fe.name,size:fe.size,progress:0,state:"uploading",id:null}),Qo(d,le)}return ce}function xc(d,b){const R=p.value[d]?.files.find(J=>J.localId===b);if(!R||R.state!=="failed")return;const k=p.value[d];k&&(k.error=""),Qo(d,b)}function Cc(d,b){Te.get(b)?.abort(),Te.delete(b),pe.delete(b);const R=p.value[d];R&&(R.files=R.files.filter(k=>k.localId!==b))}const Rs=ne(()=>Math.min(o.value?.max_embeds||bo,bo));function Oc(d,b,R){const k=Ts(d),J=tn(b);return k.embeds.some(ce=>tn(ce)===J)||k.embeds.length>=Rs.value?!1:(k.embeds.push({type:b.type,id:b.id}),k.error="",R?ie.value[J]=R:Tr([b]),!0)}function Pc(d,b){const R=p.value[d];if(!R)return;const k=tn(b);R.embeds=R.embeds.filter(J=>tn(J)!==k)}function Mc(d){return ie.value[tn(d)]}function Tr(d,b=!1){for(const R of d){const k=tn(R);G.has(k)||ee.has(k)||!b&&k in ie.value||ee.set(k,{type:R.type,id:R.id})}if(!ee.size)return re??Promise.resolve();if(!re){const R=L;re=Promise.resolve().then(async()=>{const k=[...ee.entries()];ee.clear(),re=null;for(const[J]of k)G.add(J);for(let J=0;J<k.length;J+=gl){const ce=k.slice(J,J+gl);try{const fe=await Ve.resolveEmbeds(ce.map(([,le])=>le));if(R!==L)return;for(const[le]of ce){const ue=fe&&typeof fe=="object"?fe[le]:void 0;ie.value[le]=ue??null}}catch{}finally{if(R===L)for(const[fe]of ce)G.delete(fe)}}})}return re}function kc(d,b=!1){const R=[];for(const k of d??[])k.deleted_at||R.push(...Jp(k,Rs.value));return Tr(R,b)}function Ic(d,b){const R=Ts(d);R.text=b,R.error=""}async function Lc(d=i.value){if(d===null)return!1;const b=Ts(d),R=b.embeds.slice(0,Rs.value),k=b.files.filter(ue=>ue.state==="done"&&ue.id!==null),J=k.map(ue=>ue.id);let ce=b.text.trim();if(!ce&&!R.length&&!J.length||b.sending||Sr(d))return!1;!ce&&!J.length&&(ce=Yp(R,gm()));const fe={content:ce};J.length&&(fe.attachment_ids=J),R.length&&(fe.metadata={embeds:R.map(ue=>({type:ue.type,id:ue.id}))}),b.sending=!0,b.error="";const le=L;try{const ue=await Ve.send(d,fe);if(le!==L)return!1;Yo(ue),b.text="",b.embeds=[];const bt=new Set(k.map(an=>an.localId));for(const an of bt)pe.delete(an);return b.files=b.files.filter(an=>!bt.has(an.localId)),!0}catch(ue){return le!==L||(b.error=ym(ue),ue instanceof We&&(ue.status===403||ue.status===404)&&_t()),!1}finally{b.sending=!1}}function Dc(d,b){g.value[d]={...b}}function Nc(d){return g.value[d]??null}function Xo(d=!1){if(Ce)return Ce;if(w.value==="ready"&&!d)return Promise.resolve();const b=L;return w.value="loading",Ce=(async()=>{try{const R=await Ve.members();if(b!==L)return;_.value=new Map(R.map(k=>[k.id,k])),w.value="ready"}catch{b===L&&(w.value="error")}finally{b===L&&(Ce=null)}})(),Ce}function ei(){if(B.value!==null)return Promise.resolve();if(q)return q;const d=L;return q=(async()=>{try{const b=await Ve.reactions();d===L&&(B.value=Array.isArray(b)?b.filter(R=>typeof R=="string"&&R!==""):[])}catch{}finally{d===L&&(q=null)}})(),q}function Tn(d,b){return c.value[d]?.find(R=>R.id===b)}async function jc(d,b){const R=e.value,k=Tn(d.conversation_id,d.id);if(R===null||!k||k.deleted_at)return;const J=!(k.reactions??[]).some(le=>le.key===b&&le.user_ids.includes(R));k.reactions=Jr(k.reactions,b,R,J,B.value??[]);const ce=(Se.get(k.id)??0)+1;Se.set(k.id,ce);const fe=L;try{const le=J?await Ve.addReaction(k.id,b):await Ve.removeReaction(k.id,b);if(fe!==L||Se.get(k.id)!==ce)return;const ue=Tn(d.conversation_id,d.id);ue&&!ue.deleted_at&&(ue.reactions=le.reactions??[])}catch{if(fe!==L)return;const le=Tn(d.conversation_id,d.id);le&&(le.reactions=Jr(le.reactions,b,R,!J,B.value??[])),wn().show(J?yl.add:yl.remove)}finally{fe===L&&Se.get(k.id)===ce&&Se.delete(k.id)}}function $c(d){return e.value!==null&&d.sender_id===e.value&&!d.deleted_at&&d.type==="text"}function zc(d){return e.value===null||d.deleted_at?!1:d.sender_id===e.value?!0:n.value&&I.value!==null&&d.conversation_id===I.value}function ti(d){const b=c.value[d.conversation_id],R=b?b.findIndex(J=>J.id===d.id):-1;b&&R>=0&&(b[R]=d);const k=r.value.find(J=>J.id===d.conversation_id);k?.last_message?.id===d.id&&(k.last_message={...k.last_message,content:d.content??""})}function As(d,b){const R=Tn(d,b);R&&fc(R);const k=r.value.find(J=>J.id===d);k?.last_message?.id===b&&(k.last_message={...k.last_message,content:""})}async function Vc(d,b){const R=b.trim();if(R===(d.content??"").trim())return null;if(!R)return vl;const k=L;try{const J=await Ve.edit(d.id,R);return k===L&&ti(J),null}catch{return vl}}async function Fc(d){const b=L;try{return await Ve.remove(d.id),b===L&&As(d.conversation_id,d.id),null}catch(R){return R instanceof We&&R.status===404?(b===L&&As(d.conversation_id,d.id),null):Rm}}async function Bc(d,b){if(!Tn(d,b))return;const R=L;try{const k=await Ve.message(b);if(R!==L)return;k.deleted_at?As(d,b):ti(k)}catch{}}function qn(){return _t()}async function Uc(d){if(oe.has(d))return;oe.add(d);const b=L;try{const R=await Ve.message(d);b===L&&Yo(R)}catch{}finally{b===L&&oe.delete(d)}}function qc(d){const b=d.conversation_id;xr(b,d.sender_id);const R=wc(b),k=c.value[b];if(k&&bl(k,d),b===I.value){s.value&&!R&&(s.value.unread+=1);return}r.value=Cp(r.value,d,{seen:R})}function Hc(d){switch(d.kind){case"created":xr(d.conversationId,d.senderId),xp(d,c.value)&&Uc(d.id);return;case"typing":Wc(d.conversationId,d.userId);return;case"chatMessage":qc(d.message);return;case"mentions":qn();return;case"updated":Bc(d.conversationId,d.id);return;case"deleted":As(d.conversationId,d.id);return;case"reacted":{const b=Tn(d.conversationId,d.id);b&&!b.deleted_at&&(b.reactions=Jr(b.reactions,d.key,d.userId,d.added,B.value??[]));return}default:return}}function Rr(d){const b=Ap(d);b&&Hc(b)}function Ar(){const d=Jo();d!==null&&c.value[d]!==void 0&&Sn(d),qn()}function Kc(d){if(!(E.value==="idle"||E.value==="unavailable")){if(d==="connected"){E.value="connected";return}j.value=!1,Cr(),E.value=E.value==="connected"||E.value==="reconnecting"?"reconnecting":"connecting"}}function Gc(){ni(),z=setInterval(()=>{const d=Jo();d!==null&&Sn(d)},_m),K=setInterval(()=>{qn()},bm)}function ni(){z&&clearInterval(z),K&&clearInterval(K),z=null,K=null}function si(){!ke||E.value==="unavailable"||(E.value="unavailable",j.value=!1,Cr(),Gc())}function Wc(d,b){if(b===e.value||E.value==="unavailable")return;const R=F.value[d]??[];R.includes(b)||(F.value[d]=[...R,b]);const k=`${d}:${b}`,J=T.get(k);J&&clearTimeout(J),T.set(k,setTimeout(()=>xr(d,b),Tm))}function xr(d,b){const R=`${d}:${b}`,k=T.get(R);k&&clearTimeout(k),T.delete(R);const J=F.value[d];J?.includes(b)&&(F.value[d]=J.filter(ce=>ce!==b))}function Cr(){for(const d of T.values())clearTimeout(d);T.clear(),F.value={}}function Jc(d,b){if(!b.trim()||E.value==="idle"||E.value==="unavailable")return;const R=Date.now(),k=$.get(d);k!==void 0&&R-k<Sm||($.set(d,R),Ve.typing(d).catch(()=>{}))}async function Yc(d){const b=L,R=await fm(d);if(!(b!==L||E.value==="unavailable")){if(R===null){j.value=!1;return}Q.value=new Map(R.map(k=>[k.client,k.user])),j.value=!0}}function Zc(d){const b=new Map(Q.value);b.set(d.client,d.user),Q.value=b}function Qc(d){if(!Q.value.has(d.client))return;const b=new Map(Q.value);b.delete(d.client),Q.value=b}async function Xc(){if(ke||e.value===null||I.value===null)return;ke=!0;const d=L,b=e.value,R=I.value;E.value="connecting",U.push(ac(Kc),cc(si));try{const k=await Fs(`user:${b}`,{onPublication:Rr,onSubscribed:Ar});if(d!==L)return k.close();yt=k;const J=_l(R),ce=await Fs(J,{onPublication:Rr,onSubscribed:()=>{Ar(),Yc(J)},onJoin:Zc,onLeave:Qc});if(d!==L)return ce.close();vt=ce,await Or()}catch{d===L&&si()}}async function Or(){if(!ke)return;const d=l.value==="dm"?i.value:null;if(d===qe)return;const b=++O;if(st?.close(),st=null,qe=d,d===null)return;const R=L;try{const k=await Fs(_l(d),{onPublication:Rr,onSubscribed:Ar});if(R!==L||b!==O)return k.close();st=k}catch{}}function ri(){for(const b of U)b();U=[],yt?.close(),vt?.close(),st?.close(),yt=vt=st=null,qe=null,O++,ni();const d=ke;return ke=!1,E.value="idle",j.value=!1,Q.value=new Map,Cr(),$.clear(),d}function oi(){(ri()||e.value!==null)&&dm(),oe.clear(),h.clear();for(const d of v.values())clearTimeout(d);v.clear(),A.clear(),m.clear(),x&&typeof document<"u"&&document.removeEventListener("visibilitychange",x),x=null,L++,xe=null,Ce=null,q=null,Se.clear(),B.value=null;for(const d of Te.values())d.abort();Te.clear(),pe.clear(),ee.clear(),G.clear(),re=null,ie.value={},e.value=null,t.value=void 0,n.value=!1,s.value=null,r.value=[],o.value=null,i.value=null,l.value="general",a.value="",c.value={},u.value={},f.value={},p.value={},g.value={},C.value={},P.value={},N.value={},_.value=new Map,w.value="idle",S.value="idle"}return{userId:e,member:t,moderator:n,general:s,generalId:I,conversations:r,limits:o,activeId:i,view:l,dmError:a,dmRows:at,messages:c,loading:u,errors:f,drafts:p,anchors:g,members:_,membersByHandle:te,myHandle:ae,membersState:w,bootstrapState:S,connection:E,panelVisible:y,reachedStart:C,olderLoading:P,olderError:N,dmUnread:Y,totalUnread:V,totalMentions:W,unreadOf:D,mentionsOf:M,markRead:_c,loadOlder:Ss,presenceAvailable:j,othersOnline:he,onlineCount:me,isOnline:Ie,typing:F,typingIn:je,emitTyping:Jc,init:Es,bootstrap:_t,open:Je,showGeneral:Ec,showDms:Sc,openDm:wr,dmWith:Zo,startDm:Tc,loadLatest:He,refreshLatest:Sn,refetchCounts:qn,draft:Er,setDraftText:Ic,send:Lc,maxEmbeds:Rs,uploading:Sr,canSend:Rc,uploadFiles:Ac,retryUpload:xc,removeFile:Cc,stageEmbed:Oc,unstageEmbed:Pc,embedItems:ie,embedItem:Mc,resolveRefs:Tr,resolveFor:kc,saveAnchor:Dc,anchorFor:Nc,loadMembers:Xo,allowedReactions:B,loadReactions:ei,toggleReaction:jc,canEdit:$c,canDelete:zc,edit:Vc,remove:Fc,reset:oi}});let Yr=null;const mc=Gt("auth",()=>{const e=X(null),t=X(ft.get()),n=X(!1),s=ne(()=>t.value!==null),r=ne(()=>{const S=e.value;return S?[S.name,S.surname].filter(Boolean).join(" ")||S.email:""});function o(S,E,y){ft.set(S,y),t.value=ft.get(),E&&(e.value=E,is().load(E.id))}function i(){ft.clear(),t.value=null,e.value=null,Go().reset(),bp().reset(),is().reset(),Qa().reset(),pc().reset()}async function l(S){S&&(Yr={public:S.meta.public===!0,fullPath:S.fullPath});try{if(ft.get())try{const E=await fn.fetch();e.value=E.user,t.value=ft.get(),is().load(E.user.id)}catch{ft.get()||i()}n.value=!0}finally{Yr=null}}async function a(S,E,y){const C=await fn.login({email:S,password:E});o(C.token,C.user,y)}async function c(S,E){const y=await fn.register(S);return y.token?(o(y.token,y.user,E),{signedIn:!0,message:""}):{signedIn:!1,message:y.message??""}}function u(S){return o(S.token,S.user,!0),{action:S.action,returnTo:S.return_to}}async function f(S){return u(await fn.oauthComplete(S))}async function p(S){return u(await fn.oauthRegisterComplete(S))}async function g(){try{await fn.logout()}catch{}i(),await gn.push({name:"login"})}async function _(S){const E=await fn.update(S);e.value=E.user}function w(){const S=Yr??{public:gn.currentRoute.value.meta.public===!0,fullPath:gn.currentRoute.value.fullPath},E=s.value||e.value!==null;i(),E&&!S.public&&gn.push({name:"login",query:{redirect:S.fullPath,expired:"1"}})}return ap(w),{user:e,token:t,ready:n,loggedIn:s,displayName:r,restore:l,login:a,register:c,completeOAuth:f,completeOAuthRegistration:p,logout:g,updateProfile:_}});function Ng({active:e,visible:t,focused:n,atBottom:s}){return e&&t&&n&&s}function Pm(e){return e>0?e>99?"99+":String(e):""}function wl(e){return vo(e,"nieprzeczytana wiadomość","nieprzeczytane wiadomości","nieprzeczytanych wiadomości")}function jg(e){return e===1?"wzmianka o Tobie":`${e} ${ec(e,"wzmianka","wzmianki","wzmianek")} o Tobie`}function $g(e,t,n){if(!(t>0))return null;let s=t,r=null;for(let o=e.length-1;o>=0&&s>0;o--){const i=e[o];i.sender_id!==n&&(r=i.id,s--)}return r}function zg(e){return e.length===0?"":e.length===1?`${e[0]} pisze…`:e.length===2?`${e[0]} i ${e[1]} piszą…`:"Kilka osób pisze…"}let Zr=!1;const gc=Gt("pwa",()=>{const e=X(!1),t=jn(null),n=jn(null);let s=!1;const r=ne(()=>!e.value&&t.value!==null),o=ne(()=>n.value!==null);function i(){s||typeof window>"u"||(s=!0,e.value=window.matchMedia?.("(display-mode: standalone)").matches===!0||navigator.standalone===!0,window.addEventListener("beforeinstallprompt",f=>{f.preventDefault(),t.value=f}),window.addEventListener("appinstalled",()=>{e.value=!0,t.value=null}),"serviceWorker"in navigator&&(document.readyState==="complete"?l():window.addEventListener("load",l,{once:!0})))}async function l(){const f=navigator.serviceWorker;f.addEventListener("controllerchange",()=>{Zr&&(Zr=!1,window.location.reload())});try{const p=await f.register("/sw.js",{scope:"/",updateViaCache:"none"});p.waiting&&f.controller&&(n.value=p.waiting),p.addEventListener("updatefound",()=>{const g=p.installing;g&&g.addEventListener("statechange",()=>{g.state==="installed"&&f.controller&&(n.value=g)})}),document.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&p.update().catch(()=>{})})}catch{}}async function a(){const f=t.value;if(f){t.value=null;try{await f.prompt(),(await f.userChoice).outcome==="accepted"&&(e.value=!0)}catch{}}}function c(){const f=n.value;f&&(Zr=!0,f.postMessage({type:"SKIP_WAITING"}))}function u(){n.value=null}return{installed:e,deferred:t,waiting:n,canInstall:r,updateReady:o,start:i,install:a,applyUpdate:c,dismissUpdate:u}}),Mm={class:"shell"},km={class:"sidebar"},Im={class:"side-head"},Lm={"aria-label":"Główna nawigacja"},Dm={key:0,class:"unread-badge nav-badge"},Nm={"aria-hidden":"true"},jm={class:"sr-only"},$m={class:"who"},zm={class:"muted"},Vm={class:"topbar"},Fm={class:"tabbar","aria-label":"Nawigacja"},Bm={class:"nav-icon"},Um={key:0,class:"nav-dot","aria-hidden":"true"},qm={key:0,class:"sr-only"},Hm={key:0,class:"update-bar",role:"status","aria-live":"polite"},Km=En({__name:"AppShell",setup(e){const t=mc(),n=wn(),s=gc(),r=Wa();Qa();const o=pc();vn(()=>t.user?.id,f=>{f?o.init(f):o.reset()},{immediate:!0});const i=[{to:"/",label:"Pulpit",icon:"home",match:["dashboard"]},{to:"/plan",label:"Plan zajęć",icon:"calendar",match:["schedule"]},{to:"/terminarz",label:"Terminarz",icon:"flag",match:["deadlines"]},{to:"/przedmioty",label:"Przedmioty",icon:"grad",match:["courses","course"]},{to:"/lektury",label:"Lektury",icon:"book",match:["readings"]},{to:"/materialy",label:"Materiały",icon:"file",match:["materials","material"]},{to:"/checklisty",label:"Checklisty",icon:"checklist",match:["checklists","checklist"]},{to:"/sylabusy",label:"Sylabusy",icon:"file",match:["syllabi"]},{to:"/quizy",label:"Quizy",icon:"quiz",match:["quizzes","quiz"]},{to:"/moje-prezentacje",label:"Moje prezentacje",icon:"slides",match:["my-presentations"]},{to:"/profil",label:"Profil",icon:"user",match:["profile"]}],l=[{to:"/",label:"Pulpit",icon:"home",match:["dashboard"]},{to:"/plan",label:"Plan zajęć",icon:"calendar",match:["schedule"]},{to:"/materialy",label:"Materiały",icon:"file",match:["materials","material"]},{to:"/checklisty",label:"Checklisty",icon:"checklist",match:["checklists","checklist"]},{to:"/wiecej",label:"Więcej",icon:"more",match:["more","deadlines","courses","course","readings","quizzes","quiz","syllabi","my-presentations","profile"]}],a=ne(()=>String(r.name??"")),c=ne(()=>a.value!=="dashboard"&&o.totalUnread>0?o.totalUnread:0),u=f=>f.includes(a.value);return(f,p)=>{const g=ia("router-link");return Xe(),St("div",Mm,[Oe("aside",km,[Oe("div",Im,[Ee(g,{to:"/",class:"brand"},{default:In(()=>[...p[4]||(p[4]=[Oe("span",{class:"eyebrow"},"UWr · ISMiB",-1),Oe("b",null,"BM II°",-1)])]),_:1}),Ee(il)]),Oe("nav",Lm,[(Xe(),St(nt,null,_i(i,_=>Ee(g,{key:_.to,to:_.to,class:Ln({active:u(_.match)}),"aria-current":u(_.match)?"page":void 0},{default:In(()=>[Ee(yo,{name:_.icon},null,8,["name"]),ao(Jt(_.label)+" ",1),_.to==="/"&&c.value?(Xe(),St("span",Dm,[Oe("span",Nm,Jt(Pe(Pm)(c.value)),1),Oe("span",jm,", "+Jt(Pe(wl)(c.value)),1)])):Gn("",!0)]),_:2},1032,["to","class","aria-current"])),64))]),Oe("div",$m,[Oe("span",zm,Jt(Pe(t).displayName),1),Pe(s).canInstall?(Xe(),St("button",{key:0,class:"btn small",type:"button",onClick:p[0]||(p[0]=_=>Pe(s).install())},"Zainstaluj aplikację")):Gn("",!0),Oe("button",{class:"btn small ghost",type:"button",onClick:p[1]||(p[1]=_=>Pe(t).logout())},"Wyloguj")])]),Oe("header",Vm,[Ee(g,{to:"/",class:"topbar-brand"},{default:In(()=>[...p[5]||(p[5]=[Oe("span",{class:"eyebrow"},"UWr · ISMiB",-1),Oe("b",null,"BM II°",-1)])]),_:1}),Ee(il)]),Oe("main",{class:Ln(["main",{wide:Pe(r).meta.wide===!0}]),id:"main"},[yf(f.$slots,"default")],2),Oe("nav",Fm,[(Xe(),St(nt,null,_i(l,_=>Ee(g,{key:_.to,to:_.to,class:Ln({active:u(_.match)}),"aria-current":u(_.match)?"page":void 0},{default:In(()=>[Oe("span",Bm,[Ee(yo,{name:_.icon},null,8,["name"]),_.to==="/"&&c.value?(Xe(),St("span",Um)):Gn("",!0)]),ao(Jt(_.label)+" ",1),_.to==="/"&&c.value?(Xe(),St("span",qm,", "+Jt(Pe(wl)(c.value)),1)):Gn("",!0)]),_:2},1032,["to","class","aria-current"])),64))]),Hu(Oe("div",{class:"toast",role:"status","aria-live":"polite"},Jt(Pe(n).message),513),[[ad,Pe(n).message]]),Pe(s).updateReady?(Xe(),St("div",Hm,[p[6]||(p[6]=Oe("span",null,"Dostępna jest nowa wersja aplikacji.",-1)),Oe("button",{class:"btn small",type:"button",onClick:p[2]||(p[2]=_=>Pe(s).applyUpdate())},"Odśwież"),Oe("button",{class:"btn small ghost",type:"button",onClick:p[3]||(p[3]=_=>Pe(s).dismissUpdate())},"Później")])):Gn("",!0)])}}});function yc(e){return e==="/cast"||e==="/cast/"}const Gm=En({__name:"App",setup(e){const t=Wa(),n=yc(window.location.pathname),s=ne(()=>t.meta.public===!0||t.meta.bare===!0||n&&t.matched.length===0);return(r,o)=>{const i=ia("router-view");return s.value?(Xe(),fs(i,{key:0})):(Xe(),fs(Km,{key:1},{default:In(()=>[Ee(i)]),_:1}))}}}),vc=Dd();kd(Gm).use(vc).use(gn).mount("#app");yc(window.location.pathname)||gc(vc).start();export{tn as $,We as A,ec as B,Ln as C,Eg as D,_i as E,nt as F,gg as G,Ao as H,Sg as I,Tg as J,zp as K,kl as L,pu as M,xg as N,Og as O,Mg as P,kg as Q,Fh as R,Pg as S,Rg as T,vn as U,cf as V,sg as W,Zm as X,Ve as Y,cr as Z,yo as _,fn as a,pc as a0,Ag as a1,Ig as a2,jg as a3,Pm as a4,wl as a5,_o as a6,wg as a7,Fp as a8,Jp as a9,H as aA,gc as aB,fp as aC,Qa as aD,bg as aE,hg as aF,yf as aG,$o as aH,fg as aI,dg as aJ,Qm as aK,_e as aL,Dg as aM,dm as aN,jn as aO,Lg as aP,sp as aQ,tp as aR,Ym as aS,ft as aT,ad as aU,rg as aV,og as aW,ig as aX,lg as aY,ag as aZ,cg as a_,Cg as aa,$g as ab,Ng as ac,zg as ad,Go as ae,bp as af,vo as ag,qp as ah,Up as ai,Hp as aj,Wr as ak,Ae as al,Bp as am,is as an,pg as ao,Ct as ap,Jm as aq,Vp as ar,tg as as,vs as at,vg as au,yp as av,mg as aw,_g as ax,vp as ay,yg as az,Oe as b,St as c,En as d,Pe as e,Gn as f,eg as g,ng as h,Ee as i,In as j,Wa as k,ia as l,ug as m,Xe as n,of as o,ao as p,wn as q,X as r,fs as s,Jt as t,mc as u,Xm as v,Hu as w,ne as x,tc as y,nc as z};