Файловый менеджер - Редактировать - /home/gqdcvggs/.trash/index-DsfbZ8rP.js
Назад
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(s){if(s.ep)return;s.ep=!0;const o=r(s);fetch(s.href,o)}})();/** * @vue/shared v3.4.38 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **//*! #__NO_SIDE_EFFECTS__ */function Us(e,t){const r=new Set(e.split(","));return n=>r.has(n)}const de={},tr=[],Ge=()=>{},zl=()=>!1,_n=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),qs=e=>e.startsWith("onUpdate:"),Pe=Object.assign,Fs=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},Wl=Object.prototype.hasOwnProperty,re=(e,t)=>Wl.call(e,t),V=Array.isArray,rr=e=>xn(e)==="[object Map]",Fi=e=>xn(e)==="[object Set]",K=e=>typeof e=="function",xe=e=>typeof e=="string",Lt=e=>typeof e=="symbol",he=e=>e!==null&&typeof e=="object",Di=e=>(he(e)||K(e))&&K(e.then)&&K(e.catch),ji=Object.prototype.toString,xn=e=>ji.call(e),Kl=e=>xn(e).slice(8,-1),Hi=e=>xn(e)==="[object Object]",Ds=e=>xe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Sr=Us(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),En=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},Jl=/-(\w)/g,st=En(e=>e.replace(Jl,(t,r)=>r?r.toUpperCase():"")),Yl=/\B([A-Z])/g,$t=En(e=>e.replace(Yl,"-$1").toLowerCase()),Sn=En(e=>e.charAt(0).toUpperCase()+e.slice(1)),zn=En(e=>e?`on${Sn(e)}`:""),Nt=(e,t)=>!Object.is(e,t),Zr=(e,...t)=>{for(let r=0;r<e.length;r++)e[r](...t)},Vi=(e,t,r,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:r})},cs=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let _o;const zi=()=>_o||(_o=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function js(e){if(V(e)){const t={};for(let r=0;r<e.length;r++){const n=e[r],s=xe(n)?Zl(n):js(n);if(s)for(const o in s)t[o]=s[o]}return t}else if(xe(e)||he(e))return e}const Gl=/;(?![^(]*\))/g,Xl=/:([^]+)/,Ql=/\/\*[^]*?\*\//g;function Zl(e){const t={};return e.replace(Ql,"").split(Gl).forEach(r=>{if(r){const n=r.split(Xl);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Ve(e){let t="";if(xe(e))t=e;else if(V(e))for(let r=0;r<e.length;r++){const n=Ve(e[r]);n&&(t+=n+" ")}else if(he(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}const ec="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",tc=Us(ec);function Wi(e){return!!e||e===""}const Ki=e=>!!(e&&e.__v_isRef===!0),ge=e=>xe(e)?e:e==null?"":V(e)||he(e)&&(e.toString===ji||!K(e.toString))?Ki(e)?ge(e.value):JSON.stringify(e,Ji,2):String(e),Ji=(e,t)=>Ki(t)?Ji(e,t.value):rr(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,s],o)=>(r[Wn(n,o)+" =>"]=s,r),{})}:Fi(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>Wn(r))}:Lt(t)?Wn(t):he(t)&&!V(t)&&!Hi(t)?String(t):t,Wn=(e,t="")=>{var r;return Lt(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/** * @vue/reactivity v3.4.38 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let et;class rc{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=et,!t&&et&&(this.index=(et.scopes||(et.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const r=et;try{return et=this,t()}finally{et=r}}}on(){et=this}off(){et=this.parent}stop(t){if(this._active){let r,n;for(r=0,n=this.effects.length;r<n;r++)this.effects[r].stop();for(r=0,n=this.cleanups.length;r<n;r++)this.cleanups[r]();if(this.scopes)for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].stop(!0);if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0,this._active=!1}}}function nc(e,t=et){t&&t.active&&t.effects.push(e)}function sc(){return et}let Ht;class Hs{constructor(t,r,n,s){this.fn=t,this.trigger=r,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,nc(this,s)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,Bt();for(let t=0;t<this._depsLength;t++){const r=this.deps[t];if(r.computed&&(oc(r.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Mt()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Pt,r=Ht;try{return Pt=!0,Ht=this,this._runnings++,xo(this),this.fn()}finally{Eo(this),this._runnings--,Ht=r,Pt=t}}stop(){this.active&&(xo(this),Eo(this),this.onStop&&this.onStop(),this.active=!1)}}function oc(e){return e.value}function xo(e){e._trackId++,e._depsLength=0}function Eo(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Yi(e.deps[t],e);e.deps.length=e._depsLength}}function Yi(e,t){const r=e.get(t);r!==void 0&&t._trackId!==r&&(e.delete(t),e.size===0&&e.cleanup())}let Pt=!0,us=0;const Gi=[];function Bt(){Gi.push(Pt),Pt=!1}function Mt(){const e=Gi.pop();Pt=e===void 0?!0:e}function Vs(){us++}function zs(){for(us--;!us&&fs.length;)fs.shift()()}function Xi(e,t,r){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&Yi(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const fs=[];function Qi(e,t,r){Vs();for(const n of e.keys()){let s;n._dirtyLevel<t&&(s??(s=e.get(n)===n._trackId))&&(n._shouldSchedule||(n._shouldSchedule=n._dirtyLevel===0),n._dirtyLevel=t),n._shouldSchedule&&(s??(s=e.get(n)===n._trackId))&&(n.trigger(),(!n._runnings||n.allowRecurse)&&n._dirtyLevel!==2&&(n._shouldSchedule=!1,n.scheduler&&fs.push(n.scheduler)))}zs()}const Zi=(e,t)=>{const r=new Map;return r.cleanup=e,r.computed=t,r},ds=new WeakMap,Vt=Symbol(""),hs=Symbol("");function Me(e,t,r){if(Pt&&Ht){let n=ds.get(e);n||ds.set(e,n=new Map);let s=n.get(r);s||n.set(r,s=Zi(()=>n.delete(r))),Xi(Ht,s)}}function wt(e,t,r,n,s,o){const i=ds.get(e);if(!i)return;let a=[];if(t==="clear")a=[...i.values()];else if(r==="length"&&V(e)){const l=Number(n);i.forEach((c,u)=>{(u==="length"||!Lt(u)&&u>=l)&&a.push(c)})}else switch(r!==void 0&&a.push(i.get(r)),t){case"add":V(e)?Ds(r)&&a.push(i.get("length")):(a.push(i.get(Vt)),rr(e)&&a.push(i.get(hs)));break;case"delete":V(e)||(a.push(i.get(Vt)),rr(e)&&a.push(i.get(hs)));break;case"set":rr(e)&&a.push(i.get(Vt));break}Vs();for(const l of a)l&&Qi(l,4);zs()}const ic=Us("__proto__,__v_isRef,__isVue"),ea=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Lt)),So=ac();function ac(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const n=ie(this);for(let o=0,i=this.length;o<i;o++)Me(n,"get",o+"");const s=n[t](...r);return s===-1||s===!1?n[t](...r.map(ie)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...r){Bt(),Vs();const n=ie(this)[t].apply(this,r);return zs(),Mt(),n}}),e}function lc(e){Lt(e)||(e=String(e));const t=ie(this);return Me(t,"has",e),t.hasOwnProperty(e)}class ta{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,n){const s=this._isReadonly,o=this._isShallow;if(r==="__v_isReactive")return!s;if(r==="__v_isReadonly")return s;if(r==="__v_isShallow")return o;if(r==="__v_raw")return n===(s?o?_c:oa:o?sa:na).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const i=V(t);if(!s){if(i&&re(So,r))return Reflect.get(So,r,n);if(r==="hasOwnProperty")return lc}const a=Reflect.get(t,r,n);return(Lt(r)?ea.has(r):ic(r))||(s||Me(t,"get",r),o)?a:Ue(a)?i&&Ds(r)?a:a.value:he(a)?s?aa(a):Tn(a):a}}class ra extends ta{constructor(t=!1){super(!1,t)}set(t,r,n,s){let o=t[r];if(!this._isShallow){const l=Wt(o);if(!ir(n)&&!Wt(n)&&(o=ie(o),n=ie(n)),!V(t)&&Ue(o)&&!Ue(n))return l?!1:(o.value=n,!0)}const i=V(t)&&Ds(r)?Number(r)<t.length:re(t,r),a=Reflect.set(t,r,n,s);return t===ie(s)&&(i?Nt(n,o)&&wt(t,"set",r,n):wt(t,"add",r,n)),a}deleteProperty(t,r){const n=re(t,r);t[r];const s=Reflect.deleteProperty(t,r);return s&&n&&wt(t,"delete",r,void 0),s}has(t,r){const n=Reflect.has(t,r);return(!Lt(r)||!ea.has(r))&&Me(t,"has",r),n}ownKeys(t){return Me(t,"iterate",V(t)?"length":Vt),Reflect.ownKeys(t)}}class cc extends ta{constructor(t=!1){super(!0,t)}set(t,r){return!0}deleteProperty(t,r){return!0}}const uc=new ra,fc=new cc,dc=new ra(!0);const Ws=e=>e,Rn=e=>Reflect.getPrototypeOf(e);function jr(e,t,r=!1,n=!1){e=e.__v_raw;const s=ie(e),o=ie(t);r||(Nt(t,o)&&Me(s,"get",t),Me(s,"get",o));const{has:i}=Rn(s),a=n?Ws:r?Ys:Or;if(i.call(s,t))return a(e.get(t));if(i.call(s,o))return a(e.get(o));e!==s&&e.get(t)}function Hr(e,t=!1){const r=this.__v_raw,n=ie(r),s=ie(e);return t||(Nt(e,s)&&Me(n,"has",e),Me(n,"has",s)),e===s?r.has(e):r.has(e)||r.has(s)}function Vr(e,t=!1){return e=e.__v_raw,!t&&Me(ie(e),"iterate",Vt),Reflect.get(e,"size",e)}function Ro(e,t=!1){!t&&!ir(e)&&!Wt(e)&&(e=ie(e));const r=ie(this);return Rn(r).has.call(r,e)||(r.add(e),wt(r,"add",e,e)),this}function To(e,t,r=!1){!r&&!ir(t)&&!Wt(t)&&(t=ie(t));const n=ie(this),{has:s,get:o}=Rn(n);let i=s.call(n,e);i||(e=ie(e),i=s.call(n,e));const a=o.call(n,e);return n.set(e,t),i?Nt(t,a)&&wt(n,"set",e,t):wt(n,"add",e,t),this}function Ao(e){const t=ie(this),{has:r,get:n}=Rn(t);let s=r.call(t,e);s||(e=ie(e),s=r.call(t,e)),n&&n.call(t,e);const o=t.delete(e);return s&&wt(t,"delete",e,void 0),o}function Co(){const e=ie(this),t=e.size!==0,r=e.clear();return t&&wt(e,"clear",void 0,void 0),r}function zr(e,t){return function(n,s){const o=this,i=o.__v_raw,a=ie(i),l=t?Ws:e?Ys:Or;return!e&&Me(a,"iterate",Vt),i.forEach((c,u)=>n.call(s,l(c),l(u),o))}}function Wr(e,t,r){return function(...n){const s=this.__v_raw,o=ie(s),i=rr(o),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,c=s[e](...n),u=r?Ws:t?Ys:Or;return!t&&Me(o,"iterate",l?hs:Vt),{next(){const{value:d,done:p}=c.next();return p?{value:d,done:p}:{value:a?[u(d[0]),u(d[1])]:u(d),done:p}},[Symbol.iterator](){return this}}}}function xt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function hc(){const e={get(o){return jr(this,o)},get size(){return Vr(this)},has:Hr,add:Ro,set:To,delete:Ao,clear:Co,forEach:zr(!1,!1)},t={get(o){return jr(this,o,!1,!0)},get size(){return Vr(this)},has:Hr,add(o){return Ro.call(this,o,!0)},set(o,i){return To.call(this,o,i,!0)},delete:Ao,clear:Co,forEach:zr(!1,!0)},r={get(o){return jr(this,o,!0)},get size(){return Vr(this,!0)},has(o){return Hr.call(this,o,!0)},add:xt("add"),set:xt("set"),delete:xt("delete"),clear:xt("clear"),forEach:zr(!0,!1)},n={get(o){return jr(this,o,!0,!0)},get size(){return Vr(this,!0)},has(o){return Hr.call(this,o,!0)},add:xt("add"),set:xt("set"),delete:xt("delete"),clear:xt("clear"),forEach:zr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Wr(o,!1,!1),r[o]=Wr(o,!0,!1),t[o]=Wr(o,!1,!0),n[o]=Wr(o,!0,!0)}),[e,r,t,n]}const[pc,mc,gc,yc]=hc();function Ks(e,t){const r=t?e?yc:gc:e?mc:pc;return(n,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?n:Reflect.get(re(r,s)&&s in n?r:n,s,o)}const bc={get:Ks(!1,!1)},vc={get:Ks(!1,!0)},wc={get:Ks(!0,!1)};const na=new WeakMap,sa=new WeakMap,oa=new WeakMap,_c=new WeakMap;function xc(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ec(e){return e.__v_skip||!Object.isExtensible(e)?0:xc(Kl(e))}function Tn(e){return Wt(e)?e:Js(e,!1,uc,bc,na)}function ia(e){return Js(e,!1,dc,vc,sa)}function aa(e){return Js(e,!0,fc,wc,oa)}function Js(e,t,r,n,s){if(!he(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=s.get(e);if(o)return o;const i=Ec(e);if(i===0)return e;const a=new Proxy(e,i===2?n:r);return s.set(e,a),a}function Rr(e){return Wt(e)?Rr(e.__v_raw):!!(e&&e.__v_isReactive)}function Wt(e){return!!(e&&e.__v_isReadonly)}function ir(e){return!!(e&&e.__v_isShallow)}function la(e){return e?!!e.__v_raw:!1}function ie(e){const t=e&&e.__v_raw;return t?ie(t):e}function Sc(e){return Object.isExtensible(e)&&Vi(e,"__v_skip",!0),e}const Or=e=>he(e)?Tn(e):e,Ys=e=>he(e)?aa(e):e;class ca{constructor(t,r,n,s){this.getter=t,this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Hs(()=>t(this._value),()=>en(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=n}get value(){const t=ie(this);return(!t._cacheable||t.effect.dirty)&&Nt(t._value,t._value=t.effect.run())&&en(t,4),ua(t),t.effect._dirtyLevel>=2&&en(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Rc(e,t,r=!1){let n,s;const o=K(e);return o?(n=e,s=Ge):(n=e.get,s=e.set),new ca(n,s,o||!s,r)}function ua(e){var t;Pt&&Ht&&(e=ie(e),Xi(Ht,(t=e.dep)!=null?t:e.dep=Zi(()=>e.dep=void 0,e instanceof ca?e:void 0)))}function en(e,t=4,r,n){e=ie(e);const s=e.dep;s&&Qi(s,t)}function Ue(e){return!!(e&&e.__v_isRef===!0)}function pe(e){return fa(e,!1)}function Tc(e){return fa(e,!0)}function fa(e,t){return Ue(e)?e:new Ac(e,t)}class Ac{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:ie(t),this._value=r?t:Or(t)}get value(){return ua(this),this._value}set value(t){const r=this.__v_isShallow||ir(t)||Wt(t);t=r?t:ie(t),Nt(t,this._rawValue)&&(this._rawValue,this._rawValue=t,this._value=r?t:Or(t),en(this,4))}}function Ae(e){return Ue(e)?e.value:e}const Cc={get:(e,t,r)=>Ae(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const s=e[t];return Ue(s)&&!Ue(r)?(s.value=r,!0):Reflect.set(e,t,r,n)}};function da(e){return Rr(e)?e:new Proxy(e,Cc)}/** * @vue/runtime-core v3.4.38 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function Ot(e,t,r,n){try{return n?e(...n):e()}catch(s){An(s,t,r)}}function rt(e,t,r,n){if(K(e)){const s=Ot(e,t,r,n);return s&&Di(s)&&s.catch(o=>{An(o,t,r)}),s}if(V(e)){const s=[];for(let o=0;o<e.length;o++)s.push(rt(e[o],t,r,n));return s}}function An(e,t,r,n=!0){const s=t?t.vnode:null;if(t){let o=t.parent;const i=t.proxy,a=`https://vuejs.org/error-reference/#runtime-${r}`;for(;o;){const c=o.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,i,a)===!1)return}o=o.parent}const l=t.appContext.config.errorHandler;if(l){Bt(),Ot(l,null,10,[e,i,a]),Mt();return}}kc(e,r,s,n)}function kc(e,t,r,n=!0){console.error(e)}let Ir=!1,ps=!1;const Ce=[];let dt=0;const nr=[];let Rt=null,Dt=0;const ha=Promise.resolve();let Gs=null;function pa(e){const t=Gs||ha;return e?t.then(this?e.bind(this):e):t}function Pc(e){let t=dt+1,r=Ce.length;for(;t<r;){const n=t+r>>>1,s=Ce[n],o=Nr(s);o<e||o===e&&s.pre?t=n+1:r=n}return t}function Xs(e){(!Ce.length||!Ce.includes(e,Ir&&e.allowRecurse?dt+1:dt))&&(e.id==null?Ce.push(e):Ce.splice(Pc(e.id),0,e),ma())}function ma(){!Ir&&!ps&&(ps=!0,Gs=ha.then(ya))}function Oc(e){const t=Ce.indexOf(e);t>dt&&Ce.splice(t,1)}function Ic(e){V(e)?nr.push(...e):(!Rt||!Rt.includes(e,e.allowRecurse?Dt+1:Dt))&&nr.push(e),ma()}function ko(e,t,r=Ir?dt+1:0){for(;r<Ce.length;r++){const n=Ce[r];if(n&&n.pre){if(e&&n.id!==e.uid)continue;Ce.splice(r,1),r--,n()}}}function ga(e){if(nr.length){const t=[...new Set(nr)].sort((r,n)=>Nr(r)-Nr(n));if(nr.length=0,Rt){Rt.push(...t);return}for(Rt=t,Dt=0;Dt<Rt.length;Dt++){const r=Rt[Dt];r.active!==!1&&r()}Rt=null,Dt=0}}const Nr=e=>e.id==null?1/0:e.id,Nc=(e,t)=>{const r=Nr(e)-Nr(t);if(r===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return r};function ya(e){ps=!1,Ir=!0,Ce.sort(Nc);try{for(dt=0;dt<Ce.length;dt++){const t=Ce[dt];t&&t.active!==!1&&Ot(t,t.i,t.i?15:14)}}finally{dt=0,Ce.length=0,ga(),Ir=!1,Gs=null,(Ce.length||nr.length)&&ya()}}let ze=null,Cn=null;function mn(e){const t=ze;return ze=e,Cn=e&&e.type.__scopeId||null,t}function Yt(e){Cn=e}function Gt(){Cn=null}function Ie(e,t=ze,r){if(!t||e._n)return e;const n=(...s)=>{n._d&&Uo(-1);const o=mn(t);let i;try{i=e(...s)}finally{mn(o),n._d&&Uo(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}function Se(e,t){if(ze===null)return e;const r=Ln(ze),n=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[o,i,a,l=de]=t[s];o&&(K(o)&&(o={mounted:o,updated:o}),o.deep&&Ct(i),n.push({dir:o,instance:r,value:i,oldValue:void 0,arg:a,modifiers:l}))}return e}function qt(e,t,r,n){const s=e.dirs,o=t&&t.dirs;for(let i=0;i<s.length;i++){const a=s[i];o&&(a.oldValue=o[i].value);let l=a.dir[n];l&&(Bt(),rt(l,r,8,[e.el,a,e,t]),Mt())}}function ba(e,t){e.shapeFlag&6&&e.component?ba(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function va(e,t){return K(e)?Pe({name:e.name},t,{setup:e}):e}const tn=e=>!!e.type.__asyncLoader,wa=e=>e.type.__isKeepAlive;function Lc(e,t){_a(e,"a",t)}function $c(e,t){_a(e,"da",t)}function _a(e,t,r=ke){const n=e.__wdc||(e.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(kn(t,n,r),r){let s=r.parent;for(;s&&s.parent;)wa(s.parent.vnode)&&Bc(n,t,r,s),s=s.parent}}function Bc(e,t,r,n){const s=kn(t,e,n,!0);Ea(()=>{Fs(n[t],s)},r)}function kn(e,t,r=ke,n=!1){if(r){const s=r[e]||(r[e]=[]),o=t.__weh||(t.__weh=(...i)=>{Bt();const a=Ur(r),l=rt(t,r,e,i);return a(),Mt(),l});return n?s.unshift(o):s.push(o),o}}const _t=e=>(t,r=ke)=>{(!Nn||e==="sp")&&kn(e,(...n)=>t(...n),r)},Mc=_t("bm"),ur=_t("m"),Uc=_t("bu"),xa=_t("u"),qc=_t("bum"),Ea=_t("um"),Fc=_t("sp"),Dc=_t("rtg"),jc=_t("rtc");function Hc(e,t=ke){kn("ec",e,t)}const Vc="components";function fr(e,t){return Wc(Vc,e,!0,t)||e}const zc=Symbol.for("v-ndc");function Wc(e,t,r=!0,n=!1){const s=ze||ke;if(s){const o=s.type;{const a=$u(o,!1);if(a&&(a===t||a===st(t)||a===Sn(st(t))))return o}const i=Po(s[e]||o[e],t)||Po(s.appContext[e],t);return!i&&n?o:i}}function Po(e,t){return e&&(e[t]||e[st(t)]||e[Sn(st(t))])}function rn(e,t,r,n){let s;const o=r;if(V(e)||xe(e)){s=new Array(e.length);for(let i=0,a=e.length;i<a;i++)s[i]=t(e[i],i,void 0,o)}else if(typeof e=="number"){s=new Array(e);for(let i=0;i<e;i++)s[i]=t(i+1,i,void 0,o)}else if(he(e))if(e[Symbol.iterator])s=Array.from(e,(i,a)=>t(i,a,void 0,o));else{const i=Object.keys(e);s=new Array(i.length);for(let a=0,l=i.length;a<l;a++){const c=i[a];s[a]=t(e[c],c,a,o)}}else s=[];return s}const ms=e=>e?ja(e)?Ln(e):ms(e.parent):null,Tr=Pe(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=>ms(e.parent),$root:e=>ms(e.root),$emit:e=>e.emit,$options:e=>Qs(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Xs(e.update)}),$nextTick:e=>e.n||(e.n=pa.bind(e.proxy)),$watch:e=>mu.bind(e)}),Kn=(e,t)=>e!==de&&!e.__isScriptSetup&&re(e,t),Kc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:n,data:s,props:o,accessCache:i,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const g=i[t];if(g!==void 0)switch(g){case 1:return n[t];case 2:return s[t];case 4:return r[t];case 3:return o[t]}else{if(Kn(n,t))return i[t]=1,n[t];if(s!==de&&re(s,t))return i[t]=2,s[t];if((c=e.propsOptions[0])&&re(c,t))return i[t]=3,o[t];if(r!==de&&re(r,t))return i[t]=4,r[t];gs&&(i[t]=0)}}const u=Tr[t];let d,p;if(u)return t==="$attrs"&&Me(e.attrs,"get",""),u(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(r!==de&&re(r,t))return i[t]=4,r[t];if(p=l.config.globalProperties,re(p,t))return p[t]},set({_:e},t,r){const{data:n,setupState:s,ctx:o}=e;return Kn(s,t)?(s[t]=r,!0):n!==de&&re(n,t)?(n[t]=r,!0):re(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:s,propsOptions:o}},i){let a;return!!r[i]||e!==de&&re(e,i)||Kn(t,i)||(a=o[0])&&re(a,i)||re(n,i)||re(Tr,i)||re(s.config.globalProperties,i)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:re(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function Oo(e){return V(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}let gs=!0;function Jc(e){const t=Qs(e),r=e.proxy,n=e.ctx;gs=!1,t.beforeCreate&&Io(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:i,watch:a,provide:l,inject:c,created:u,beforeMount:d,mounted:p,beforeUpdate:g,updated:v,activated:E,deactivated:R,beforeDestroy:L,beforeUnmount:O,destroyed:C,unmounted:J,render:D,renderTracked:F,renderTriggered:Z,errorCaptured:ae,serverPrefetch:Je,expose:qe,inheritAttrs:Fe,components:mt,directives:De,filters:je}=t;if(c&&Yc(c,n,null),i)for(const se in i){const te=i[se];K(te)&&(n[se]=te.bind(r))}if(s){const se=s.call(r,r);he(se)&&(e.data=Tn(se))}if(gs=!0,o)for(const se in o){const te=o[se],Qe=K(te)?te.bind(r,r):K(te.get)?te.get.bind(r,r):Ge,lt=!K(te)&&K(te.set)?te.set.bind(r):Ge,j=Le({get:Qe,set:lt});Object.defineProperty(n,se,{enumerable:!0,configurable:!0,get:()=>j.value,set:z=>j.value=z})}if(a)for(const se in a)Sa(a[se],n,r,se);if(l){const se=K(l)?l.call(r):l;Reflect.ownKeys(se).forEach(te=>{nn(te,se[te])})}u&&Io(u,e,"c");function ye(se,te){V(te)?te.forEach(Qe=>se(Qe.bind(r))):te&&se(te.bind(r))}if(ye(Mc,d),ye(ur,p),ye(Uc,g),ye(xa,v),ye(Lc,E),ye($c,R),ye(Hc,ae),ye(jc,F),ye(Dc,Z),ye(qc,O),ye(Ea,J),ye(Fc,Je),V(qe))if(qe.length){const se=e.exposed||(e.exposed={});qe.forEach(te=>{Object.defineProperty(se,te,{get:()=>r[te],set:Qe=>r[te]=Qe})})}else e.exposed||(e.exposed={});D&&e.render===Ge&&(e.render=D),Fe!=null&&(e.inheritAttrs=Fe),mt&&(e.components=mt),De&&(e.directives=De)}function Yc(e,t,r=Ge){V(e)&&(e=ys(e));for(const n in e){const s=e[n];let o;he(s)?"default"in s?o=nt(s.from||n,s.default,!0):o=nt(s.from||n):o=nt(s),Ue(o)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[n]=o}}function Io(e,t,r){rt(V(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function Sa(e,t,r,n){const s=n.includes(".")?Ua(r,n):()=>r[n];if(xe(e)){const o=t[e];K(o)&&Ar(s,o)}else if(K(e))Ar(s,e.bind(r));else if(he(e))if(V(e))e.forEach(o=>Sa(o,t,r,n));else{const o=K(e.handler)?e.handler.bind(r):t[e.handler];K(o)&&Ar(s,o,e)}}function Qs(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,a=o.get(t);let l;return a?l=a:!s.length&&!r&&!n?l=t:(l={},s.length&&s.forEach(c=>gn(l,c,i,!0)),gn(l,t,i)),he(t)&&o.set(t,l),l}function gn(e,t,r,n=!1){const{mixins:s,extends:o}=t;o&&gn(e,o,r,!0),s&&s.forEach(i=>gn(e,i,r,!0));for(const i in t)if(!(n&&i==="expose")){const a=Gc[i]||r&&r[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Gc={data:No,props:Lo,emits:Lo,methods:xr,computed:xr,beforeCreate:Oe,created:Oe,beforeMount:Oe,mounted:Oe,beforeUpdate:Oe,updated:Oe,beforeDestroy:Oe,beforeUnmount:Oe,destroyed:Oe,unmounted:Oe,activated:Oe,deactivated:Oe,errorCaptured:Oe,serverPrefetch:Oe,components:xr,directives:xr,watch:Qc,provide:No,inject:Xc};function No(e,t){return t?e?function(){return Pe(K(e)?e.call(this,this):e,K(t)?t.call(this,this):t)}:t:e}function Xc(e,t){return xr(ys(e),ys(t))}function ys(e){if(V(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function Oe(e,t){return e?[...new Set([].concat(e,t))]:t}function xr(e,t){return e?Pe(Object.create(null),e,t):t}function Lo(e,t){return e?V(e)&&V(t)?[...new Set([...e,...t])]:Pe(Object.create(null),Oo(e),Oo(t??{})):t}function Qc(e,t){if(!e)return t;if(!t)return e;const r=Pe(Object.create(null),e);for(const n in t)r[n]=Oe(e[n],t[n]);return r}function Ra(){return{app:null,config:{isNativeTag:zl,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 Zc=0;function eu(e,t){return function(n,s=null){K(n)||(n=Pe({},n)),s!=null&&!he(s)&&(s=null);const o=Ra(),i=new WeakSet;let a=!1;const l=o.app={_uid:Zc++,_component:n,_props:s,_container:null,_context:o,_instance:null,version:Mu,get config(){return o.config},set config(c){},use(c,...u){return i.has(c)||(c&&K(c.install)?(i.add(c),c.install(l,...u)):K(c)&&(i.add(c),c(l,...u))),l},mixin(c){return o.mixins.includes(c)||o.mixins.push(c),l},component(c,u){return u?(o.components[c]=u,l):o.components[c]},directive(c,u){return u?(o.directives[c]=u,l):o.directives[c]},mount(c,u,d){if(!a){const p=ne(n,s);return p.appContext=o,d===!0?d="svg":d===!1&&(d=void 0),u&&t?t(p,c):e(p,c,d),a=!0,l._container=c,c.__vue_app__=l,Ln(p.component)}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(c,u){return o.provides[c]=u,l},runWithContext(c){const u=sr;sr=l;try{return c()}finally{sr=u}}};return l}}let sr=null;function nn(e,t){if(ke){let r=ke.provides;const n=ke.parent&&ke.parent.provides;n===r&&(r=ke.provides=Object.create(n)),r[e]=t}}function nt(e,t,r=!1){const n=ke||ze;if(n||sr){const s=sr?sr._context.provides:n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return r&&K(t)?t.call(n&&n.proxy):t}}const Ta={},Aa=()=>Object.create(Ta),Ca=e=>Object.getPrototypeOf(e)===Ta;function tu(e,t,r,n=!1){const s={},o=Aa();e.propsDefaults=Object.create(null),ka(e,t,s,o);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);r?e.props=n?s:ia(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function ru(e,t,r,n){const{props:s,attrs:o,vnode:{patchFlag:i}}=e,a=ie(s),[l]=e.propsOptions;let c=!1;if((n||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let p=u[d];if(Pn(e.emitsOptions,p))continue;const g=t[p];if(l)if(re(o,p))g!==o[p]&&(o[p]=g,c=!0);else{const v=st(p);s[v]=bs(l,a,v,g,e,!1)}else g!==o[p]&&(o[p]=g,c=!0)}}}else{ka(e,t,s,o)&&(c=!0);let u;for(const d in a)(!t||!re(t,d)&&((u=$t(d))===d||!re(t,u)))&&(l?r&&(r[d]!==void 0||r[u]!==void 0)&&(s[d]=bs(l,a,d,void 0,e,!0)):delete s[d]);if(o!==a)for(const d in o)(!t||!re(t,d))&&(delete o[d],c=!0)}c&&wt(e.attrs,"set","")}function ka(e,t,r,n){const[s,o]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(Sr(l))continue;const c=t[l];let u;s&&re(s,u=st(l))?!o||!o.includes(u)?r[u]=c:(a||(a={}))[u]=c:Pn(e.emitsOptions,l)||(!(l in n)||c!==n[l])&&(n[l]=c,i=!0)}if(o){const l=ie(r),c=a||de;for(let u=0;u<o.length;u++){const d=o[u];r[d]=bs(s,l,d,c[d],e,!re(c,d))}}return i}function bs(e,t,r,n,s,o){const i=e[r];if(i!=null){const a=re(i,"default");if(a&&n===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&K(l)){const{propsDefaults:c}=s;if(r in c)n=c[r];else{const u=Ur(s);n=c[r]=l.call(null,t),u()}}else n=l}i[0]&&(o&&!a?n=!1:i[1]&&(n===""||n===$t(r))&&(n=!0))}return n}const nu=new WeakMap;function Pa(e,t,r=!1){const n=r?nu:t.propsCache,s=n.get(e);if(s)return s;const o=e.props,i={},a=[];let l=!1;if(!K(e)){const u=d=>{l=!0;const[p,g]=Pa(d,t,!0);Pe(i,p),g&&a.push(...g)};!r&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!l)return he(e)&&n.set(e,tr),tr;if(V(o))for(let u=0;u<o.length;u++){const d=st(o[u]);$o(d)&&(i[d]=de)}else if(o)for(const u in o){const d=st(u);if($o(d)){const p=o[u],g=i[d]=V(p)||K(p)?{type:p}:Pe({},p),v=g.type;let E=!1,R=!0;if(V(v))for(let L=0;L<v.length;++L){const O=v[L],C=K(O)&&O.name;if(C==="Boolean"){E=!0;break}else C==="String"&&(R=!1)}else E=K(v)&&v.name==="Boolean";g[0]=E,g[1]=R,(E||re(g,"default"))&&a.push(d)}}const c=[i,a];return he(e)&&n.set(e,c),c}function $o(e){return e[0]!=="$"&&!Sr(e)}const Oa=e=>e[0]==="_"||e==="$stable",Zs=e=>V(e)?e.map(ft):[ft(e)],su=(e,t,r)=>{if(t._n)return t;const n=Ie((...s)=>Zs(t(...s)),r);return n._c=!1,n},Ia=(e,t,r)=>{const n=e._ctx;for(const s in e){if(Oa(s))continue;const o=e[s];if(K(o))t[s]=su(s,o,n);else if(o!=null){const i=Zs(o);t[s]=()=>i}}},Na=(e,t)=>{const r=Zs(t);e.slots.default=()=>r},La=(e,t,r)=>{for(const n in t)(r||n!=="_")&&(e[n]=t[n])},ou=(e,t,r)=>{const n=e.slots=Aa();if(e.vnode.shapeFlag&32){const s=t._;s?(La(n,t,r),r&&Vi(n,"_",s,!0)):Ia(t,n)}else t&&Na(e,t)},iu=(e,t,r)=>{const{vnode:n,slots:s}=e;let o=!0,i=de;if(n.shapeFlag&32){const a=t._;a?r&&a===1?o=!1:La(s,t,r):(o=!t.$stable,Ia(t,s)),i=t}else t&&(Na(e,t),i={default:1});if(o)for(const a in s)!Oa(a)&&i[a]==null&&delete s[a]};function vs(e,t,r,n,s=!1){if(V(e)){e.forEach((p,g)=>vs(p,t&&(V(t)?t[g]:t),r,n,s));return}if(tn(n)&&!s)return;const o=n.shapeFlag&4?Ln(n.component):n.el,i=s?null:o,{i:a,r:l}=e,c=t&&t.r,u=a.refs===de?a.refs={}:a.refs,d=a.setupState;if(c!=null&&c!==l&&(xe(c)?(u[c]=null,re(d,c)&&(d[c]=null)):Ue(c)&&(c.value=null)),K(l))Ot(l,a,12,[i,u]);else{const p=xe(l),g=Ue(l);if(p||g){const v=()=>{if(e.f){const E=p?re(d,l)?d[l]:u[l]:l.value;s?V(E)&&Fs(E,o):V(E)?E.includes(o)||E.push(o):p?(u[l]=[o],re(d,l)&&(d[l]=u[l])):(l.value=[o],e.k&&(u[e.k]=l.value))}else p?(u[l]=i,re(d,l)&&(d[l]=i)):g&&(l.value=i,e.k&&(u[e.k]=i))};i?(v.id=-1,Ne(v,r)):v()}}}const au=Symbol("_vte"),lu=e=>e.__isTeleport,Ne=Eu;function cu(e){return uu(e)}function uu(e,t){const r=zi();r.__VUE__=!0;const{insert:n,remove:s,patchProp:o,createElement:i,createText:a,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:p,setScopeId:g=Ge,insertStaticContent:v}=e,E=(f,h,y,S=null,x=null,A=null,N=void 0,k=null,P=!!h.dynamicChildren)=>{if(f===h)return;f&&!gr(f,h)&&(S=w(f),z(f,x,A,!0),f=null),h.patchFlag===-2&&(P=!1,h.dynamicChildren=null);const{type:T,ref:B,shapeFlag:U}=h;switch(T){case On:R(f,h,y,S);break;case Kt:L(f,h,y,S);break;case sn:f==null&&O(h,y,S,N);break;case _e:mt(f,h,y,S,x,A,N,k,P);break;default:U&1?D(f,h,y,S,x,A,N,k,P):U&6?De(f,h,y,S,x,A,N,k,P):(U&64||U&128)&&T.process(f,h,y,S,x,A,N,k,P,$)}B!=null&&x&&vs(B,f&&f.ref,A,h||f,!h)},R=(f,h,y,S)=>{if(f==null)n(h.el=a(h.children),y,S);else{const x=h.el=f.el;h.children!==f.children&&c(x,h.children)}},L=(f,h,y,S)=>{f==null?n(h.el=l(h.children||""),y,S):h.el=f.el},O=(f,h,y,S)=>{[f.el,f.anchor]=v(f.children,h,y,S,f.el,f.anchor)},C=({el:f,anchor:h},y,S)=>{let x;for(;f&&f!==h;)x=p(f),n(f,y,S),f=x;n(h,y,S)},J=({el:f,anchor:h})=>{let y;for(;f&&f!==h;)y=p(f),s(f),f=y;s(h)},D=(f,h,y,S,x,A,N,k,P)=>{h.type==="svg"?N="svg":h.type==="math"&&(N="mathml"),f==null?F(h,y,S,x,A,N,k,P):Je(f,h,x,A,N,k,P)},F=(f,h,y,S,x,A,N,k)=>{let P,T;const{props:B,shapeFlag:U,transition:M,dirs:W}=f;if(P=f.el=i(f.type,A,B&&B.is,B),U&8?u(P,f.children):U&16&&ae(f.children,P,null,S,x,Jn(f,A),N,k),W&&qt(f,null,S,"created"),Z(P,f,f.scopeId,N,S),B){for(const fe in B)fe!=="value"&&!Sr(fe)&&o(P,fe,null,B[fe],A,S);"value"in B&&o(P,"value",null,B.value,A),(T=B.onVnodeBeforeMount)&&ut(T,S,f)}W&&qt(f,null,S,"beforeMount");const G=fu(x,M);G&&M.beforeEnter(P),n(P,h,y),((T=B&&B.onVnodeMounted)||G||W)&&Ne(()=>{T&&ut(T,S,f),G&&M.enter(P),W&&qt(f,null,S,"mounted")},x)},Z=(f,h,y,S,x)=>{if(y&&g(f,y),S)for(let A=0;A<S.length;A++)g(f,S[A]);if(x){let A=x.subTree;if(h===A){const N=x.vnode;Z(f,N,N.scopeId,N.slotScopeIds,x.parent)}}},ae=(f,h,y,S,x,A,N,k,P=0)=>{for(let T=P;T<f.length;T++){const B=f[T]=k?Tt(f[T]):ft(f[T]);E(null,B,h,y,S,x,A,N,k)}},Je=(f,h,y,S,x,A,N)=>{const k=h.el=f.el;let{patchFlag:P,dynamicChildren:T,dirs:B}=h;P|=f.patchFlag&16;const U=f.props||de,M=h.props||de;let W;if(y&&Ft(y,!1),(W=M.onVnodeBeforeUpdate)&&ut(W,y,h,f),B&&qt(h,f,y,"beforeUpdate"),y&&Ft(y,!0),(U.innerHTML&&M.innerHTML==null||U.textContent&&M.textContent==null)&&u(k,""),T?qe(f.dynamicChildren,T,k,y,S,Jn(h,x),A):N||te(f,h,k,null,y,S,Jn(h,x),A,!1),P>0){if(P&16)Fe(k,U,M,y,x);else if(P&2&&U.class!==M.class&&o(k,"class",null,M.class,x),P&4&&o(k,"style",U.style,M.style,x),P&8){const G=h.dynamicProps;for(let fe=0;fe<G.length;fe++){const oe=G[fe],Ee=U[oe],Ze=M[oe];(Ze!==Ee||oe==="value")&&o(k,oe,Ee,Ze,x,y)}}P&1&&f.children!==h.children&&u(k,h.children)}else!N&&T==null&&Fe(k,U,M,y,x);((W=M.onVnodeUpdated)||B)&&Ne(()=>{W&&ut(W,y,h,f),B&&qt(h,f,y,"updated")},S)},qe=(f,h,y,S,x,A,N)=>{for(let k=0;k<h.length;k++){const P=f[k],T=h[k],B=P.el&&(P.type===_e||!gr(P,T)||P.shapeFlag&70)?d(P.el):y;E(P,T,B,null,S,x,A,N,!0)}},Fe=(f,h,y,S,x)=>{if(h!==y){if(h!==de)for(const A in h)!Sr(A)&&!(A in y)&&o(f,A,h[A],null,x,S);for(const A in y){if(Sr(A))continue;const N=y[A],k=h[A];N!==k&&A!=="value"&&o(f,A,k,N,x,S)}"value"in y&&o(f,"value",h.value,y.value,x)}},mt=(f,h,y,S,x,A,N,k,P)=>{const T=h.el=f?f.el:a(""),B=h.anchor=f?f.anchor:a("");let{patchFlag:U,dynamicChildren:M,slotScopeIds:W}=h;W&&(k=k?k.concat(W):W),f==null?(n(T,y,S),n(B,y,S),ae(h.children||[],y,B,x,A,N,k,P)):U>0&&U&64&&M&&f.dynamicChildren?(qe(f.dynamicChildren,M,y,x,A,N,k),(h.key!=null||x&&h===x.subTree)&&$a(f,h,!0)):te(f,h,y,B,x,A,N,k,P)},De=(f,h,y,S,x,A,N,k,P)=>{h.slotScopeIds=k,f==null?h.shapeFlag&512?x.ctx.activate(h,y,S,N,P):je(h,y,S,x,A,N,P):gt(f,h,P)},je=(f,h,y,S,x,A,N)=>{const k=f.component=Pu(f,S,x);if(wa(f)&&(k.ctx.renderer=$),Ou(k,!1,N),k.asyncDep){if(x&&x.registerDep(k,ye,N),!f.el){const P=k.subTree=ne(Kt);L(null,P,h,y)}}else ye(k,f,h,y,x,A,N)},gt=(f,h,y)=>{const S=h.component=f.component;if(wu(f,h,y))if(S.asyncDep&&!S.asyncResolved){se(S,h,y);return}else S.next=h,Oc(S.update),S.effect.dirty=!0,S.update();else h.el=f.el,S.vnode=h},ye=(f,h,y,S,x,A,N)=>{const k=()=>{if(f.isMounted){let{next:B,bu:U,u:M,parent:W,vnode:G}=f;{const Qt=Ba(f);if(Qt){B&&(B.el=G.el,se(f,B,N)),Qt.asyncDep.then(()=>{f.isUnmounted||k()});return}}let fe=B,oe;Ft(f,!1),B?(B.el=G.el,se(f,B,N)):B=G,U&&Zr(U),(oe=B.props&&B.props.onVnodeBeforeUpdate)&&ut(oe,W,B,G),Ft(f,!0);const Ee=Yn(f),Ze=f.subTree;f.subTree=Ee,E(Ze,Ee,d(Ze.el),w(Ze),f,x,A),B.el=Ee.el,fe===null&&_u(f,Ee.el),M&&Ne(M,x),(oe=B.props&&B.props.onVnodeUpdated)&&Ne(()=>ut(oe,W,B,G),x)}else{let B;const{el:U,props:M}=h,{bm:W,m:G,parent:fe}=f,oe=tn(h);if(Ft(f,!1),W&&Zr(W),!oe&&(B=M&&M.onVnodeBeforeMount)&&ut(B,fe,h),Ft(f,!0),U&&le){const Ee=()=>{f.subTree=Yn(f),le(U,f.subTree,f,x,null)};oe?h.type.__asyncLoader().then(()=>!f.isUnmounted&&Ee()):Ee()}else{const Ee=f.subTree=Yn(f);E(null,Ee,y,S,f,x,A),h.el=Ee.el}if(G&&Ne(G,x),!oe&&(B=M&&M.onVnodeMounted)){const Ee=h;Ne(()=>ut(B,fe,Ee),x)}(h.shapeFlag&256||fe&&tn(fe.vnode)&&fe.vnode.shapeFlag&256)&&f.a&&Ne(f.a,x),f.isMounted=!0,h=y=S=null}},P=f.effect=new Hs(k,Ge,()=>Xs(T),f.scope),T=f.update=()=>{P.dirty&&P.run()};T.i=f,T.id=f.uid,Ft(f,!0),T()},se=(f,h,y)=>{h.component=f;const S=f.vnode.props;f.vnode=h,f.next=null,ru(f,h.props,S,y),iu(f,h.children,y),Bt(),ko(f),Mt()},te=(f,h,y,S,x,A,N,k,P=!1)=>{const T=f&&f.children,B=f?f.shapeFlag:0,U=h.children,{patchFlag:M,shapeFlag:W}=h;if(M>0){if(M&128){lt(T,U,y,S,x,A,N,k,P);return}else if(M&256){Qe(T,U,y,S,x,A,N,k,P);return}}W&8?(B&16&&we(T,x,A),U!==T&&u(y,U)):B&16?W&16?lt(T,U,y,S,x,A,N,k,P):we(T,x,A,!0):(B&8&&u(y,""),W&16&&ae(U,y,S,x,A,N,k,P))},Qe=(f,h,y,S,x,A,N,k,P)=>{f=f||tr,h=h||tr;const T=f.length,B=h.length,U=Math.min(T,B);let M;for(M=0;M<U;M++){const W=h[M]=P?Tt(h[M]):ft(h[M]);E(f[M],W,y,null,x,A,N,k,P)}T>B?we(f,x,A,!0,!1,U):ae(h,y,S,x,A,N,k,P,U)},lt=(f,h,y,S,x,A,N,k,P)=>{let T=0;const B=h.length;let U=f.length-1,M=B-1;for(;T<=U&&T<=M;){const W=f[T],G=h[T]=P?Tt(h[T]):ft(h[T]);if(gr(W,G))E(W,G,y,null,x,A,N,k,P);else break;T++}for(;T<=U&&T<=M;){const W=f[U],G=h[M]=P?Tt(h[M]):ft(h[M]);if(gr(W,G))E(W,G,y,null,x,A,N,k,P);else break;U--,M--}if(T>U){if(T<=M){const W=M+1,G=W<B?h[W].el:S;for(;T<=M;)E(null,h[T]=P?Tt(h[T]):ft(h[T]),y,G,x,A,N,k,P),T++}}else if(T>M)for(;T<=U;)z(f[T],x,A,!0),T++;else{const W=T,G=T,fe=new Map;for(T=G;T<=M;T++){const He=h[T]=P?Tt(h[T]):ft(h[T]);He.key!=null&&fe.set(He.key,T)}let oe,Ee=0;const Ze=M-G+1;let Qt=!1,bo=0;const mr=new Array(Ze);for(T=0;T<Ze;T++)mr[T]=0;for(T=W;T<=U;T++){const He=f[T];if(Ee>=Ze){z(He,x,A,!0);continue}let ct;if(He.key!=null)ct=fe.get(He.key);else for(oe=G;oe<=M;oe++)if(mr[oe-G]===0&&gr(He,h[oe])){ct=oe;break}ct===void 0?z(He,x,A,!0):(mr[ct-G]=T+1,ct>=bo?bo=ct:Qt=!0,E(He,h[ct],y,null,x,A,N,k,P),Ee++)}const vo=Qt?du(mr):tr;for(oe=vo.length-1,T=Ze-1;T>=0;T--){const He=G+T,ct=h[He],wo=He+1<B?h[He+1].el:S;mr[T]===0?E(null,ct,y,wo,x,A,N,k,P):Qt&&(oe<0||T!==vo[oe]?j(ct,y,wo,2):oe--)}}},j=(f,h,y,S,x=null)=>{const{el:A,type:N,transition:k,children:P,shapeFlag:T}=f;if(T&6){j(f.component.subTree,h,y,S);return}if(T&128){f.suspense.move(h,y,S);return}if(T&64){N.move(f,h,y,$);return}if(N===_e){n(A,h,y);for(let U=0;U<P.length;U++)j(P[U],h,y,S);n(f.anchor,h,y);return}if(N===sn){C(f,h,y);return}if(S!==2&&T&1&&k)if(S===0)k.beforeEnter(A),n(A,h,y),Ne(()=>k.enter(A),x);else{const{leave:U,delayLeave:M,afterLeave:W}=k,G=()=>n(A,h,y),fe=()=>{U(A,()=>{G(),W&&W()})};M?M(A,G,fe):fe()}else n(A,h,y)},z=(f,h,y,S=!1,x=!1)=>{const{type:A,props:N,ref:k,children:P,dynamicChildren:T,shapeFlag:B,patchFlag:U,dirs:M,cacheIndex:W}=f;if(U===-2&&(x=!1),k!=null&&vs(k,null,y,f,!0),W!=null&&(h.renderCache[W]=void 0),B&256){h.ctx.deactivate(f);return}const G=B&1&&M,fe=!tn(f);let oe;if(fe&&(oe=N&&N.onVnodeBeforeUnmount)&&ut(oe,h,f),B&6)yt(f.component,y,S);else{if(B&128){f.suspense.unmount(y,S);return}G&&qt(f,null,h,"beforeUnmount"),B&64?f.type.remove(f,h,y,$,S):T&&!T.hasOnce&&(A!==_e||U>0&&U&64)?we(T,h,y,!1,!0):(A===_e&&U&384||!x&&B&16)&&we(P,h,y),S&&ue(f)}(fe&&(oe=N&&N.onVnodeUnmounted)||G)&&Ne(()=>{oe&&ut(oe,h,f),G&&qt(f,null,h,"unmounted")},y)},ue=f=>{const{type:h,el:y,anchor:S,transition:x}=f;if(h===_e){be(y,S);return}if(h===sn){J(f);return}const A=()=>{s(y),x&&!x.persisted&&x.afterLeave&&x.afterLeave()};if(f.shapeFlag&1&&x&&!x.persisted){const{leave:N,delayLeave:k}=x,P=()=>N(y,A);k?k(f.el,A,P):P()}else A()},be=(f,h)=>{let y;for(;f!==h;)y=p(f),s(f),f=y;s(h)},yt=(f,h,y)=>{const{bum:S,scope:x,update:A,subTree:N,um:k,m:P,a:T}=f;Bo(P),Bo(T),S&&Zr(S),x.stop(),A&&(A.active=!1,z(N,f,h,y)),k&&Ne(k,h),Ne(()=>{f.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve())},we=(f,h,y,S=!1,x=!1,A=0)=>{for(let N=A;N<f.length;N++)z(f[N],h,y,S,x)},w=f=>{if(f.shapeFlag&6)return w(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const h=p(f.anchor||f.el),y=h&&h[au];return y?p(y):h};let I=!1;const _=(f,h,y)=>{f==null?h._vnode&&z(h._vnode,null,null,!0):E(h._vnode||null,f,h,null,null,null,y),h._vnode=f,I||(I=!0,ko(),ga(),I=!1)},$={p:E,um:z,m:j,r:ue,mt:je,mc:ae,pc:te,pbc:qe,n:w,o:e};let X,le;return{render:_,hydrate:X,createApp:eu(_,X)}}function Jn({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function Ft({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function fu(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function $a(e,t,r=!1){const n=e.children,s=t.children;if(V(n)&&V(s))for(let o=0;o<n.length;o++){const i=n[o];let a=s[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=s[o]=Tt(s[o]),a.el=i.el),!r&&a.patchFlag!==-2&&$a(i,a)),a.type===On&&(a.el=i.el)}}function du(e){const t=e.slice(),r=[0];let n,s,o,i,a;const l=e.length;for(n=0;n<l;n++){const c=e[n];if(c!==0){if(s=r[r.length-1],e[s]<c){t[n]=s,r.push(n);continue}for(o=0,i=r.length-1;o<i;)a=o+i>>1,e[r[a]]<c?o=a+1:i=a;c<e[r[o]]&&(o>0&&(t[n]=r[o-1]),r[o]=n)}}for(o=r.length,i=r[o-1];o-- >0;)r[o]=i,i=t[i];return r}function Ba(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ba(t)}function Bo(e){if(e)for(let t=0;t<e.length;t++)e[t].active=!1}const hu=Symbol.for("v-scx"),pu=()=>nt(hu),Kr={};function Ar(e,t,r){return Ma(e,t,r)}function Ma(e,t,{immediate:r,deep:n,flush:s,once:o,onTrack:i,onTrigger:a}=de){if(t&&o){const F=t;t=(...Z)=>{F(...Z),D()}}const l=ke,c=F=>n===!0?F:Ct(F,n===!1?1:void 0);let u,d=!1,p=!1;if(Ue(e)?(u=()=>e.value,d=ir(e)):Rr(e)?(u=()=>c(e),d=!0):V(e)?(p=!0,d=e.some(F=>Rr(F)||ir(F)),u=()=>e.map(F=>{if(Ue(F))return F.value;if(Rr(F))return c(F);if(K(F))return Ot(F,l,2)})):K(e)?t?u=()=>Ot(e,l,2):u=()=>(g&&g(),rt(e,l,3,[v])):u=Ge,t&&n){const F=u;u=()=>Ct(F())}let g,v=F=>{g=C.onStop=()=>{Ot(F,l,4),g=C.onStop=void 0}},E;if(Nn)if(v=Ge,t?r&&rt(t,l,3,[u(),p?[]:void 0,v]):u(),s==="sync"){const F=pu();E=F.__watcherHandles||(F.__watcherHandles=[])}else return Ge;let R=p?new Array(e.length).fill(Kr):Kr;const L=()=>{if(!(!C.active||!C.dirty))if(t){const F=C.run();(n||d||(p?F.some((Z,ae)=>Nt(Z,R[ae])):Nt(F,R)))&&(g&&g(),rt(t,l,3,[F,R===Kr?void 0:p&&R[0]===Kr?[]:R,v]),R=F)}else C.run()};L.allowRecurse=!!t;let O;s==="sync"?O=L:s==="post"?O=()=>Ne(L,l&&l.suspense):(L.pre=!0,l&&(L.id=l.uid),O=()=>Xs(L));const C=new Hs(u,Ge,O),J=sc(),D=()=>{C.stop(),J&&Fs(J.effects,C)};return t?r?L():R=C.run():s==="post"?Ne(C.run.bind(C),l&&l.suspense):C.run(),E&&E.push(D),D}function mu(e,t,r){const n=this.proxy,s=xe(e)?e.includes(".")?Ua(n,e):()=>n[e]:e.bind(n,n);let o;K(t)?o=t:(o=t.handler,r=t);const i=Ur(this),a=Ma(s,o.bind(n),r);return i(),a}function Ua(e,t){const r=t.split(".");return()=>{let n=e;for(let s=0;s<r.length&&n;s++)n=n[r[s]];return n}}function Ct(e,t=1/0,r){if(t<=0||!he(e)||e.__v_skip||(r=r||new Set,r.has(e)))return e;if(r.add(e),t--,Ue(e))Ct(e.value,t,r);else if(V(e))for(let n=0;n<e.length;n++)Ct(e[n],t,r);else if(Fi(e)||rr(e))e.forEach(n=>{Ct(n,t,r)});else if(Hi(e)){for(const n in e)Ct(e[n],t,r);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&Ct(e[n],t,r)}return e}const gu=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${st(t)}Modifiers`]||e[`${$t(t)}Modifiers`];function yu(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||de;let s=r;const o=t.startsWith("update:"),i=o&&gu(n,t.slice(7));i&&(i.trim&&(s=r.map(u=>xe(u)?u.trim():u)),i.number&&(s=r.map(cs)));let a,l=n[a=zn(t)]||n[a=zn(st(t))];!l&&o&&(l=n[a=zn($t(t))]),l&&rt(l,e,6,s);const c=n[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,rt(c,e,6,s)}}function qa(e,t,r=!1){const n=t.emitsCache,s=n.get(e);if(s!==void 0)return s;const o=e.emits;let i={},a=!1;if(!K(e)){const l=c=>{const u=qa(c,t,!0);u&&(a=!0,Pe(i,u))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(he(e)&&n.set(e,null),null):(V(o)?o.forEach(l=>i[l]=null):Pe(i,o),he(e)&&n.set(e,i),i)}function Pn(e,t){return!e||!_n(t)?!1:(t=t.slice(2).replace(/Once$/,""),re(e,t[0].toLowerCase()+t.slice(1))||re(e,$t(t))||re(e,t))}function Yn(e){const{type:t,vnode:r,proxy:n,withProxy:s,propsOptions:[o],slots:i,attrs:a,emit:l,render:c,renderCache:u,props:d,data:p,setupState:g,ctx:v,inheritAttrs:E}=e,R=mn(e);let L,O;try{if(r.shapeFlag&4){const J=s||n,D=J;L=ft(c.call(D,J,u,d,g,p,v)),O=a}else{const J=t;L=ft(J.length>1?J(d,{attrs:a,slots:i,emit:l}):J(d,null)),O=t.props?a:bu(a)}}catch(J){Cr.length=0,An(J,e,1),L=ne(Kt)}let C=L;if(O&&E!==!1){const J=Object.keys(O),{shapeFlag:D}=C;J.length&&D&7&&(o&&J.some(qs)&&(O=vu(O,o)),C=ar(C,O,!1,!0))}return r.dirs&&(C=ar(C,null,!1,!0),C.dirs=C.dirs?C.dirs.concat(r.dirs):r.dirs),r.transition&&(C.transition=r.transition),L=C,mn(R),L}const bu=e=>{let t;for(const r in e)(r==="class"||r==="style"||_n(r))&&((t||(t={}))[r]=e[r]);return t},vu=(e,t)=>{const r={};for(const n in e)(!qs(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function wu(e,t,r){const{props:n,children:s,component:o}=e,{props:i,children:a,patchFlag:l}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?Mo(n,i,c):!!i;if(l&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const p=u[d];if(i[p]!==n[p]&&!Pn(c,p))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:n===i?!1:n?i?Mo(n,i,c):!0:!!i;return!1}function Mo(e,t,r){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let s=0;s<n.length;s++){const o=n[s];if(t[o]!==e[o]&&!Pn(r,o))return!0}return!1}function _u({vnode:e,parent:t},r){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=r,t=t.parent;else break}}const xu=e=>e.__isSuspense;function Eu(e,t){t&&t.pendingBranch?V(e)?t.effects.push(...e):t.effects.push(e):Ic(e)}const _e=Symbol.for("v-fgt"),On=Symbol.for("v-txt"),Kt=Symbol.for("v-cmt"),sn=Symbol.for("v-stc"),Cr=[];let We=null;function q(e=!1){Cr.push(We=e?null:[])}function Su(){Cr.pop(),We=Cr[Cr.length-1]||null}let Lr=1;function Uo(e){Lr+=e,e<0&&We&&(We.hasOnce=!0)}function Fa(e){return e.dynamicChildren=Lr>0?We||tr:null,Su(),Lr>0&&We&&We.push(e),e}function H(e,t,r,n,s,o){return Fa(m(e,t,r,n,s,o,!0))}function kt(e,t,r,n,s){return Fa(ne(e,t,r,n,s,!0))}function ws(e){return e?e.__v_isVNode===!0:!1}function gr(e,t){return e.type===t.type&&e.key===t.key}const Da=({key:e})=>e??null,on=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?xe(e)||Ue(e)||K(e)?{i:ze,r:e,k:t,f:!!r}:e:null);function m(e,t=null,r=null,n=0,s=null,o=e===_e?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Da(t),ref:t&&on(t),scopeId:Cn,slotScopeIds:null,children:r,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:n,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:ze};return a?(eo(l,r),o&128&&e.normalize(l)):r&&(l.shapeFlag|=xe(r)?8:16),Lr>0&&!i&&We&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&We.push(l),l}const ne=Ru;function Ru(e,t=null,r=null,n=0,s=null,o=!1){if((!e||e===zc)&&(e=Kt),ws(e)){const a=ar(e,t,!0);return r&&eo(a,r),Lr>0&&!o&&We&&(a.shapeFlag&6?We[We.indexOf(e)]=a:We.push(a)),a.patchFlag=-2,a}if(Bu(e)&&(e=e.__vccOpts),t){t=Tu(t);let{class:a,style:l}=t;a&&!xe(a)&&(t.class=Ve(a)),he(l)&&(la(l)&&!V(l)&&(l=Pe({},l)),t.style=js(l))}const i=xe(e)?1:xu(e)?128:lu(e)?64:he(e)?4:K(e)?2:0;return m(e,t,r,n,s,i,o,!0)}function Tu(e){return e?la(e)||Ca(e)?Pe({},e):e:null}function ar(e,t,r=!1,n=!1){const{props:s,ref:o,patchFlag:i,children:a,transition:l}=e,c=t?Au(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Da(c),ref:t&&t.ref?r&&o?V(o)?o.concat(on(t)):[o,on(t)]:on(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==_e?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ar(e.ssContent),ssFallback:e.ssFallback&&ar(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&n&&ba(u,l.clone(u)),u}function Te(e=" ",t=0){return ne(On,null,e,t)}function In(e,t){const r=ne(sn,null,e);return r.staticCount=t,r}function me(e="",t=!1){return t?(q(),kt(Kt,null,e)):ne(Kt,null,e)}function ft(e){return e==null||typeof e=="boolean"?ne(Kt):V(e)?ne(_e,null,e.slice()):typeof e=="object"?Tt(e):ne(On,null,String(e))}function Tt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ar(e)}function eo(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(V(t))r=16;else if(typeof t=="object")if(n&65){const s=t.default;s&&(s._c&&(s._d=!1),eo(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!Ca(t)?t._ctx=ze:s===3&&ze&&(ze.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else K(t)?(t={default:t,_ctx:ze},r=32):(t=String(t),n&64?(r=16,t=[Te(t)]):r=8);e.children=t,e.shapeFlag|=r}function Au(...e){const t={};for(let r=0;r<e.length;r++){const n=e[r];for(const s in n)if(s==="class")t.class!==n.class&&(t.class=Ve([t.class,n.class]));else if(s==="style")t.style=js([t.style,n.style]);else if(_n(s)){const o=t[s],i=n[s];i&&o!==i&&!(V(o)&&o.includes(i))&&(t[s]=o?[].concat(o,i):i)}else s!==""&&(t[s]=n[s])}return t}function ut(e,t,r,n=null){rt(e,t,7,[r,n])}const Cu=Ra();let ku=0;function Pu(e,t,r){const n=e.type,s=(t?t.appContext:e.appContext)||Cu,o={uid:ku++,vnode:e,type:n,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new rc(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Pa(n,s),emitsOptions:qa(n,s),emit:null,emitted:null,propsDefaults:de,inheritAttrs:n.inheritAttrs,ctx:de,data:de,props:de,attrs:de,slots:de,refs:de,setupState:de,setupContext:null,suspense:r,suspenseId:r?r.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=yu.bind(null,o),e.ce&&e.ce(o),o}let ke=null,yn,_s;{const e=zi(),t=(r,n)=>{let s;return(s=e[r])||(s=e[r]=[]),s.push(n),o=>{s.length>1?s.forEach(i=>i(o)):s[0](o)}};yn=t("__VUE_INSTANCE_SETTERS__",r=>ke=r),_s=t("__VUE_SSR_SETTERS__",r=>Nn=r)}const Ur=e=>{const t=ke;return yn(e),e.scope.on(),()=>{e.scope.off(),yn(t)}},qo=()=>{ke&&ke.scope.off(),yn(null)};function ja(e){return e.vnode.shapeFlag&4}let Nn=!1;function Ou(e,t=!1,r=!1){t&&_s(t);const{props:n,children:s}=e.vnode,o=ja(e);tu(e,n,o,t),ou(e,s,r);const i=o?Iu(e,t):void 0;return t&&_s(!1),i}function Iu(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Kc);const{setup:n}=r;if(n){const s=e.setupContext=n.length>1?Lu(e):null,o=Ur(e);Bt();const i=Ot(n,e,0,[e.props,s]);if(Mt(),o(),Di(i)){if(i.then(qo,qo),t)return i.then(a=>{Fo(e,a,t)}).catch(a=>{An(a,e,0)});e.asyncDep=i}else Fo(e,i,t)}else Ha(e,t)}function Fo(e,t,r){K(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:he(t)&&(e.setupState=da(t)),Ha(e,r)}let Do;function Ha(e,t,r){const n=e.type;if(!e.render){if(!t&&Do&&!n.render){const s=n.template||Qs(e).template;if(s){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:l}=n,c=Pe(Pe({isCustomElement:o,delimiters:a},i),l);n.render=Do(s,c)}}e.render=n.render||Ge}{const s=Ur(e);Bt();try{Jc(e)}finally{Mt(),s()}}}const Nu={get(e,t){return Me(e,"get",""),e[t]}};function Lu(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,Nu),slots:e.slots,emit:e.emit,expose:t}}function Ln(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(da(Sc(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Tr)return Tr[r](e)},has(t,r){return r in t||r in Tr}})):e.proxy}function $u(e,t=!0){return K(e)?e.displayName||e.name:e.name||t&&e.__name}function Bu(e){return K(e)&&"__vccOpts"in e}const Le=(e,t)=>Rc(e,t,Nn);function Va(e,t,r){const n=arguments.length;return n===2?he(t)&&!V(t)?ws(t)?ne(e,null,[t]):ne(e,t):ne(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&ws(r)&&(r=[r]),ne(e,t,r))}const Mu="3.4.38";/** * @vue/runtime-dom v3.4.38 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const Uu="http://www.w3.org/2000/svg",qu="http://www.w3.org/1998/Math/MathML",vt=typeof document<"u"?document:null,jo=vt&&vt.createElement("template"),Fu={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const s=t==="svg"?vt.createElementNS(Uu,e):t==="mathml"?vt.createElementNS(qu,e):r?vt.createElement(e,{is:r}):vt.createElement(e);return e==="select"&&n&&n.multiple!=null&&s.setAttribute("multiple",n.multiple),s},createText:e=>vt.createTextNode(e),createComment:e=>vt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>vt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,s,o){const i=r?r.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),r),!(s===o||!(s=s.nextSibling)););else{jo.innerHTML=n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e;const a=jo.content;if(n==="svg"||n==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,r)}return[i?i.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},Du=Symbol("_vtc");function ju(e,t,r){const n=e[Du];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const Ho=Symbol("_vod"),Hu=Symbol("_vsh"),Vu=Symbol(""),zu=/(^|;)\s*display\s*:/;function Wu(e,t,r){const n=e.style,s=xe(r);let o=!1;if(r&&!s){if(t)if(xe(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();r[a]==null&&an(n,a,"")}else for(const i in t)r[i]==null&&an(n,i,"");for(const i in r)i==="display"&&(o=!0),an(n,i,r[i])}else if(s){if(t!==r){const i=n[Vu];i&&(r+=";"+i),n.cssText=r,o=zu.test(r)}}else t&&e.removeAttribute("style");Ho in e&&(e[Ho]=o?n.display:"",e[Hu]&&(n.display="none"))}const Vo=/\s*!important$/;function an(e,t,r){if(V(r))r.forEach(n=>an(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=Ku(e,t);Vo.test(r)?e.setProperty($t(n),r.replace(Vo,""),"important"):e[n]=r}}const zo=["Webkit","Moz","ms"],Gn={};function Ku(e,t){const r=Gn[t];if(r)return r;let n=st(t);if(n!=="filter"&&n in e)return Gn[t]=n;n=Sn(n);for(let s=0;s<zo.length;s++){const o=zo[s]+n;if(o in e)return Gn[t]=o}return t}const Wo="http://www.w3.org/1999/xlink";function Ko(e,t,r,n,s,o=tc(t)){n&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(Wo,t.slice(6,t.length)):e.setAttributeNS(Wo,t,r):r==null||o&&!Wi(r)?e.removeAttribute(t):e.setAttribute(t,o?"":Lt(r)?String(r):r)}function Ju(e,t,r,n){if(t==="innerHTML"||t==="textContent"){if(r==null)return;e[t]=r;return}const s=e.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){const i=s==="OPTION"?e.getAttribute("value")||"":e.value,a=r==null?"":String(r);(i!==a||!("_value"in e))&&(e.value=a),r==null&&e.removeAttribute(t),e._value=r;return}let o=!1;if(r===""||r==null){const i=typeof e[t];i==="boolean"?r=Wi(r):r==null&&i==="string"?(r="",o=!0):i==="number"&&(r=0,o=!0)}try{e[t]=r}catch{}o&&e.removeAttribute(t)}function Zt(e,t,r,n){e.addEventListener(t,r,n)}function Yu(e,t,r,n){e.removeEventListener(t,r,n)}const Jo=Symbol("_vei");function Gu(e,t,r,n,s=null){const o=e[Jo]||(e[Jo]={}),i=o[t];if(n&&i)i.value=n;else{const[a,l]=Xu(t);if(n){const c=o[t]=ef(n,s);Zt(e,a,c,l)}else i&&(Yu(e,a,i,l),o[t]=void 0)}}const Yo=/(?:Once|Passive|Capture)$/;function Xu(e){let t;if(Yo.test(e)){t={};let n;for(;n=e.match(Yo);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):$t(e.slice(2)),t]}let Xn=0;const Qu=Promise.resolve(),Zu=()=>Xn||(Qu.then(()=>Xn=0),Xn=Date.now());function ef(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;rt(tf(n,r.value),t,5,[n])};return r.value=e,r.attached=Zu(),r}function tf(e,t){if(V(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>s=>!s._stopped&&n&&n(s))}else return t}const Go=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,rf=(e,t,r,n,s,o)=>{const i=s==="svg";t==="class"?ju(e,n,i):t==="style"?Wu(e,r,n):_n(t)?qs(t)||Gu(e,t,r,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):nf(e,t,n,i))?(Ju(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ko(e,t,n,i,o,t!=="value")):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Ko(e,t,n,i))};function nf(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Go(t)&&K(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Go(t)&&xe(r)?!1:t in e}const Xo=e=>{const t=e.props["onUpdate:modelValue"]||!1;return V(t)?r=>Zr(t,r):t};function sf(e){e.target.composing=!0}function Qo(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Qn=Symbol("_assign"),Re={created(e,{modifiers:{lazy:t,trim:r,number:n}},s){e[Qn]=Xo(s);const o=n||s.props&&s.props.type==="number";Zt(e,t?"change":"input",i=>{if(i.target.composing)return;let a=e.value;r&&(a=a.trim()),o&&(a=cs(a)),e[Qn](a)}),r&&Zt(e,"change",()=>{e.value=e.value.trim()}),t||(Zt(e,"compositionstart",sf),Zt(e,"compositionend",Qo),Zt(e,"change",Qo))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:n,trim:s,number:o}},i){if(e[Qn]=Xo(i),e.composing)return;const a=(o||e.type==="number")&&!/^0\d/.test(e.value)?cs(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(n&&t===r||s&&e.value.trim()===l)||(e.value=l))}},of=["ctrl","shift","alt","meta"],af={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)=>of.some(r=>e[`${r}Key`]&&!t.includes(r))},bn=(e,t)=>{const r=e._withMods||(e._withMods={}),n=t.join(".");return r[n]||(r[n]=(s,...o)=>{for(let i=0;i<t.length;i++){const a=af[t[i]];if(a&&a(s,t))return}return e(s,...o)})},lf={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},cf=(e,t)=>{const r=e._withKeys||(e._withKeys={}),n=t.join(".");return r[n]||(r[n]=s=>{if(!("key"in s))return;const o=$t(s.key);if(t.some(i=>i===o||lf[i]===o))return e(s)})},uf=Pe({patchProp:rf},Fu);let Zo;function ff(){return Zo||(Zo=cu(uf))}const df=(...e)=>{const t=ff().createApp(...e),{mount:r}=t;return t.mount=n=>{const s=pf(n);if(!s)return;const o=t._component;!K(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.innerHTML="";const i=r(s,!1,hf(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t};function hf(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function pf(e){return xe(e)?document.querySelector(e):e}const to="/assets/logo_academ-R-3v1nom.png",pt=(e,t)=>{const r=e.__vccOpts||e;for(const[n,s]of t)r[n]=s;return r},mf={name:"Footer"},gf={class:"footer bg-darkgrey text-white pt-8 z-50"},yf={class:"container flex p-12 md:flex-col border-b border-bordergray md:items-center md:text-center justify-between gap-8"},bf={class:"footer-logo flex flex-col items-center md:items-start"},vf=m("img",{src:to,alt:"Logo",class:"w-32"},null,-1),wf={class:"footer-nav"},_f=m("h3",{class:"text-lg font-semibold mb-4"},"Navigation",-1),xf={class:"flex flex-col gap-2"},Ef=In('<div class="footer-contact"><h3 class="text-lg font-semibold mb-4">Contactez-nous</h3><ul class="flex flex-col gap-2"><li>Email : <a href="mailto:contact@imators.com" class="hover:text-lightgrey">contact@imators.com</a></li></ul></div><div class="footer-social"><h3 class="text-lg font-semibold mb-4">Suivez-nous</h3><div class="flex gap-4 justify-center"><a href="https://www.instagram.com/this.is.imators" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" class="hover:text-lightgrey cursor-pointer" width="32" height="32" viewBox="0 0 24 24"><path fill="currentColor" d="M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8C4 18.39 5.61 20 7.6 20h8.8a3.6 3.6 0 0 0 3.6-3.6V7.6C20 5.61 18.39 4 16.4 4zm9.65 1.5a1.25 1.25 0 0 1 1.25 1.25A1.25 1.25 0 0 1 17.25 8A1.25 1.25 0 0 1 16 6.75a1.25 1.25 0 0 1 1.25-1.25M12 7a5 5 0 0 1 5 5a5 5 0 0 1-5 5a5 5 0 0 1-5-5a5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3a3 3 0 0 0 3 3a3 3 0 0 0 3-3a3 3 0 0 0-3-3"></path></svg></a></div></div>',2),Sf=m("div",{class:"footer-bottom text-center text-sm text-lightgrey my-8"},[Te(" © 2024 Imators. Tous droits réservés | "),m("a",{href:"https://valentin-renaudin.com",target:"_blank"},"By Valentin Renaudin"),m("p",null,"Imators is a registered LLC (Limited Liability Company). All our products, whether technologically physical or simply online, are subject to our rules, which you can access.")],-1);function Rf(e,t,r,n,s,o){const i=fr("router-link");return q(),H("div",gf,[m("div",yf,[m("div",bf,[ne(i,{to:"/"},{default:Ie(()=>[vf]),_:1})]),m("div",wf,[_f,m("ul",xf,[m("li",null,[ne(i,{to:"/privacyPolicy",class:"hover:text-lightgrey"},{default:Ie(()=>[Te("Politique de confidentialité")]),_:1})]),m("li",null,[ne(i,{to:"/termsOfUse",class:"hover:text-lightgrey"},{default:Ie(()=>[Te("Conditions d'utilisation")]),_:1})]),m("li",null,[ne(i,{to:"/",class:"hover:text-lightgrey"},{default:Ie(()=>[Te("Conversation")]),_:1})])])]),Ef]),Sf])}const Tf=pt(mf,[["render",Rf]]),Af={class:"app min-h-screen font-quicksand overflow-y-hidden md:overflow-y-auto"},Cf={__name:"App",setup(e){return(t,r)=>{const n=fr("router-view");return q(),H("div",Af,[ne(n),ne(Tf)])}}};/*! * vue-router v4.4.5 * (c) 2024 Eduardo San Martin Morote * @license MIT */const er=typeof document<"u";function za(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function kf(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&za(e.default)}const ce=Object.assign;function Zn(e,t){const r={};for(const n in t){const s=t[n];r[n]=ot(s)?s.map(e):e(s)}return r}const kr=()=>{},ot=Array.isArray,Wa=/#/g,Pf=/&/g,Of=/\//g,If=/=/g,Nf=/\?/g,Ka=/\+/g,Lf=/%5B/g,$f=/%5D/g,Ja=/%5E/g,Bf=/%60/g,Ya=/%7B/g,Mf=/%7C/g,Ga=/%7D/g,Uf=/%20/g;function ro(e){return encodeURI(""+e).replace(Mf,"|").replace(Lf,"[").replace($f,"]")}function qf(e){return ro(e).replace(Ya,"{").replace(Ga,"}").replace(Ja,"^")}function xs(e){return ro(e).replace(Ka,"%2B").replace(Uf,"+").replace(Wa,"%23").replace(Pf,"%26").replace(Bf,"`").replace(Ya,"{").replace(Ga,"}").replace(Ja,"^")}function Ff(e){return xs(e).replace(If,"%3D")}function Df(e){return ro(e).replace(Wa,"%23").replace(Nf,"%3F")}function jf(e){return e==null?"":Df(e).replace(Of,"%2F")}function $r(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Hf=/\/$/,Vf=e=>e.replace(Hf,"");function es(e,t,r="/"){let n,s={},o="",i="";const a=t.indexOf("#");let l=t.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(n=t.slice(0,l),o=t.slice(l+1,a>-1?a:t.length),s=e(o)),a>-1&&(n=n||t.slice(0,a),i=t.slice(a,t.length)),n=Jf(n??t,r),{fullPath:n+(o&&"?")+o+i,path:n,query:s,hash:$r(i)}}function zf(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function ei(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Wf(e,t,r){const n=t.matched.length-1,s=r.matched.length-1;return n>-1&&n===s&&lr(t.matched[n],r.matched[s])&&Xa(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function lr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Xa(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!Kf(e[r],t[r]))return!1;return!0}function Kf(e,t){return ot(e)?ti(e,t):ot(t)?ti(t,e):e===t}function ti(e,t){return ot(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function Jf(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/"),s=n[n.length-1];(s===".."||s===".")&&n.push("");let o=r.length-1,i,a;for(i=0;i<n.length;i++)if(a=n[i],a!==".")if(a==="..")o>1&&o--;else break;return r.slice(0,o).join("/")+"/"+n.slice(i).join("/")}const Et={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Br;(function(e){e.pop="pop",e.push="push"})(Br||(Br={}));var Pr;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Pr||(Pr={}));function Yf(e){if(!e)if(er){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Vf(e)}const Gf=/^[^#]+#/;function Xf(e,t){return e.replace(Gf,"#")+t}function Qf(e,t){const r=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-r.left-(t.left||0),top:n.top-r.top-(t.top||0)}}const $n=()=>({left:window.scrollX,top:window.scrollY});function Zf(e){let t;if("el"in e){const r=e.el,n=typeof r=="string"&&r.startsWith("#"),s=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!s)return;t=Qf(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function ri(e,t){return(history.state?history.state.position-t:-1)+e}const Es=new Map;function ed(e,t){Es.set(e,t)}function td(e){const t=Es.get(e);return Es.delete(e),t}let rd=()=>location.protocol+"//"+location.host;function Qa(e,t){const{pathname:r,search:n,hash:s}=t,o=e.indexOf("#");if(o>-1){let a=s.includes(e.slice(o))?e.slice(o).length:1,l=s.slice(a);return l[0]!=="/"&&(l="/"+l),ei(l,"")}return ei(r,e)+n+s}function nd(e,t,r,n){let s=[],o=[],i=null;const a=({state:p})=>{const g=Qa(e,location),v=r.value,E=t.value;let R=0;if(p){if(r.value=g,t.value=p,i&&i===v){i=null;return}R=E?p.position-E.position:0}else n(g);s.forEach(L=>{L(r.value,v,{delta:R,type:Br.pop,direction:R?R>0?Pr.forward:Pr.back:Pr.unknown})})};function l(){i=r.value}function c(p){s.push(p);const g=()=>{const v=s.indexOf(p);v>-1&&s.splice(v,1)};return o.push(g),g}function u(){const{history:p}=window;p.state&&p.replaceState(ce({},p.state,{scroll:$n()}),"")}function d(){for(const p of o)p();o=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:d}}function ni(e,t,r,n=!1,s=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:s?$n():null}}function sd(e){const{history:t,location:r}=window,n={value:Qa(e,r)},s={value:t.state};s.value||o(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,c,u){const d=e.indexOf("#"),p=d>-1?(r.host&&document.querySelector("base")?e:e.slice(d))+l:rd()+e+l;try{t[u?"replaceState":"pushState"](c,"",p),s.value=c}catch(g){console.error(g),r[u?"replace":"assign"](p)}}function i(l,c){const u=ce({},t.state,ni(s.value.back,l,s.value.forward,!0),c,{position:s.value.position});o(l,u,!0),n.value=l}function a(l,c){const u=ce({},s.value,t.state,{forward:l,scroll:$n()});o(u.current,u,!0);const d=ce({},ni(n.value,l,null),{position:u.position+1},c);o(l,d,!1),n.value=l}return{location:n,state:s,push:a,replace:i}}function od(e){e=Yf(e);const t=sd(e),r=nd(e,t.state,t.location,t.replace);function n(o,i=!0){i||r.pauseListeners(),history.go(o)}const s=ce({location:"",base:e,go:n,createHref:Xf.bind(null,e)},t,r);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function id(e){return typeof e=="string"||e&&typeof e=="object"}function Za(e){return typeof e=="string"||typeof e=="symbol"}const el=Symbol("");var si;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(si||(si={}));function cr(e,t){return ce(new Error,{type:e,[el]:!0},t)}function bt(e,t){return e instanceof Error&&el in e&&(t==null||!!(e.type&t))}const oi="[^/]+?",ad={sensitive:!1,strict:!1,start:!0,end:!0},ld=/[.+*?^${}()[\]/\\]/g;function cd(e,t){const r=ce({},ad,t),n=[];let s=r.start?"^":"";const o=[];for(const c of e){const u=c.length?[]:[90];r.strict&&!c.length&&(s+="/");for(let d=0;d<c.length;d++){const p=c[d];let g=40+(r.sensitive?.25:0);if(p.type===0)d||(s+="/"),s+=p.value.replace(ld,"\\$&"),g+=40;else if(p.type===1){const{value:v,repeatable:E,optional:R,regexp:L}=p;o.push({name:v,repeatable:E,optional:R});const O=L||oi;if(O!==oi){g+=10;try{new RegExp(`(${O})`)}catch(J){throw new Error(`Invalid custom RegExp for param "${v}" (${O}): `+J.message)}}let C=E?`((?:${O})(?:/(?:${O}))*)`:`(${O})`;d||(C=R&&c.length<2?`(?:/${C})`:"/"+C),R&&(C+="?"),s+=C,g+=20,R&&(g+=-8),E&&(g+=-20),O===".*"&&(g+=-50)}u.push(g)}n.push(u)}if(r.strict&&r.end){const c=n.length-1;n[c][n[c].length-1]+=.7000000000000001}r.strict||(s+="/?"),r.end?s+="$":r.strict&&(s+="(?:/|$)");const i=new RegExp(s,r.sensitive?"":"i");function a(c){const u=c.match(i),d={};if(!u)return null;for(let p=1;p<u.length;p++){const g=u[p]||"",v=o[p-1];d[v.name]=g&&v.repeatable?g.split("/"):g}return d}function l(c){let u="",d=!1;for(const p of e){(!d||!u.endsWith("/"))&&(u+="/"),d=!1;for(const g of p)if(g.type===0)u+=g.value;else if(g.type===1){const{value:v,repeatable:E,optional:R}=g,L=v in c?c[v]:"";if(ot(L)&&!E)throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);const O=ot(L)?L.join("/"):L;if(!O)if(R)p.length<2&&(u.endsWith("/")?u=u.slice(0,-1):d=!0);else throw new Error(`Missing required param "${v}"`);u+=O}}return u||"/"}return{re:i,score:n,keys:o,parse:a,stringify:l}}function ud(e,t){let r=0;for(;r<e.length&&r<t.length;){const n=t[r]-e[r];if(n)return n;r++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function tl(e,t){let r=0;const n=e.score,s=t.score;for(;r<n.length&&r<s.length;){const o=ud(n[r],s[r]);if(o)return o;r++}if(Math.abs(s.length-n.length)===1){if(ii(n))return 1;if(ii(s))return-1}return s.length-n.length}function ii(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const fd={type:0,value:""},dd=/[a-zA-Z0-9_]/;function hd(e){if(!e)return[[]];if(e==="/")return[[fd]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${r})/"${c}": ${g}`)}let r=0,n=r;const s=[];let o;function i(){o&&s.push(o),o=[]}let a=0,l,c="",u="";function d(){c&&(r===0?o.push({type:0,value:c}):r===1||r===2||r===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function p(){c+=l}for(;a<e.length;){if(l=e[a++],l==="\\"&&r!==2){n=r,r=4;continue}switch(r){case 0:l==="/"?(c&&d(),i()):l===":"?(d(),r=1):p();break;case 4:p(),r=n;break;case 1:l==="("?r=2:dd.test(l)?p():(d(),r=0,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case 2:l===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+l:r=3:u+=l;break;case 3:d(),r=0,l!=="*"&&l!=="?"&&l!=="+"&&a--,u="";break;default:t("Unknown state");break}}return r===2&&t(`Unfinished custom RegExp for param "${c}"`),d(),i(),s}function pd(e,t,r){const n=cd(hd(e.path),r),s=ce(n,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function md(e,t){const r=[],n=new Map;t=ui({strict:!1,end:!0,sensitive:!1},t);function s(d){return n.get(d)}function o(d,p,g){const v=!g,E=li(d);E.aliasOf=g&&g.record;const R=ui(t,d),L=[E];if("alias"in d){const J=typeof d.alias=="string"?[d.alias]:d.alias;for(const D of J)L.push(li(ce({},E,{components:g?g.record.components:E.components,path:D,aliasOf:g?g.record:E})))}let O,C;for(const J of L){const{path:D}=J;if(p&&D[0]!=="/"){const F=p.record.path,Z=F[F.length-1]==="/"?"":"/";J.path=p.record.path+(D&&Z+D)}if(O=pd(J,p,R),g?g.alias.push(O):(C=C||O,C!==O&&C.alias.push(O),v&&d.name&&!ci(O)&&i(d.name)),rl(O)&&l(O),E.children){const F=E.children;for(let Z=0;Z<F.length;Z++)o(F[Z],O,g&&g.children[Z])}g=g||O}return C?()=>{i(C)}:kr}function i(d){if(Za(d)){const p=n.get(d);p&&(n.delete(d),r.splice(r.indexOf(p),1),p.children.forEach(i),p.alias.forEach(i))}else{const p=r.indexOf(d);p>-1&&(r.splice(p,1),d.record.name&&n.delete(d.record.name),d.children.forEach(i),d.alias.forEach(i))}}function a(){return r}function l(d){const p=bd(d,r);r.splice(p,0,d),d.record.name&&!ci(d)&&n.set(d.record.name,d)}function c(d,p){let g,v={},E,R;if("name"in d&&d.name){if(g=n.get(d.name),!g)throw cr(1,{location:d});R=g.record.name,v=ce(ai(p.params,g.keys.filter(C=>!C.optional).concat(g.parent?g.parent.keys.filter(C=>C.optional):[]).map(C=>C.name)),d.params&&ai(d.params,g.keys.map(C=>C.name))),E=g.stringify(v)}else if(d.path!=null)E=d.path,g=r.find(C=>C.re.test(E)),g&&(v=g.parse(E),R=g.record.name);else{if(g=p.name?n.get(p.name):r.find(C=>C.re.test(p.path)),!g)throw cr(1,{location:d,currentLocation:p});R=g.record.name,v=ce({},p.params,d.params),E=g.stringify(v)}const L=[];let O=g;for(;O;)L.unshift(O.record),O=O.parent;return{name:R,path:E,params:v,matched:L,meta:yd(L)}}e.forEach(d=>o(d));function u(){r.length=0,n.clear()}return{addRoute:o,resolve:c,removeRoute:i,clearRoutes:u,getRoutes:a,getRecordMatcher:s}}function ai(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function li(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:gd(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 gd(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const n in e.components)t[n]=typeof r=="object"?r[n]:r;return t}function ci(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function yd(e){return e.reduce((t,r)=>ce(t,r.meta),{})}function ui(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}function bd(e,t){let r=0,n=t.length;for(;r!==n;){const o=r+n>>1;tl(e,t[o])<0?n=o:r=o+1}const s=vd(e);return s&&(n=t.lastIndexOf(s,n-1)),n}function vd(e){let t=e;for(;t=t.parent;)if(rl(t)&&tl(e,t)===0)return t}function rl({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function wd(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 o=n[s].replace(Ka," "),i=o.indexOf("="),a=$r(i<0?o:o.slice(0,i)),l=i<0?null:$r(o.slice(i+1));if(a in t){let c=t[a];ot(c)||(c=t[a]=[c]),c.push(l)}else t[a]=l}return t}function fi(e){let t="";for(let r in e){const n=e[r];if(r=Ff(r),n==null){n!==void 0&&(t+=(t.length?"&":"")+r);continue}(ot(n)?n.map(o=>o&&xs(o)):[n&&xs(n)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+r,o!=null&&(t+="="+o))})}return t}function _d(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=ot(n)?n.map(s=>s==null?null:""+s):n==null?n:""+n)}return t}const xd=Symbol(""),di=Symbol(""),Bn=Symbol(""),no=Symbol(""),Ss=Symbol("");function yr(){let e=[];function t(n){return e.push(n),()=>{const s=e.indexOf(n);s>-1&&e.splice(s,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function At(e,t,r,n,s,o=i=>i()){const i=n&&(n.enterCallbacks[s]=n.enterCallbacks[s]||[]);return()=>new Promise((a,l)=>{const c=p=>{p===!1?l(cr(4,{from:r,to:t})):p instanceof Error?l(p):id(p)?l(cr(2,{from:t,to:p})):(i&&n.enterCallbacks[s]===i&&typeof p=="function"&&i.push(p),a())},u=o(()=>e.call(n&&n.instances[s],t,r,c));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch(p=>l(p))})}function ts(e,t,r,n,s=o=>o()){const o=[];for(const i of e)for(const a in i.components){let l=i.components[a];if(!(t!=="beforeRouteEnter"&&!i.instances[a]))if(za(l)){const u=(l.__vccOpts||l)[t];u&&o.push(At(u,r,n,i,a,s))}else{let c=l();o.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${i.path}"`);const d=kf(u)?u.default:u;i.mods[a]=u,i.components[a]=d;const g=(d.__vccOpts||d)[t];return g&&At(g,r,n,i,a,s)()}))}}return o}function hi(e){const t=nt(Bn),r=nt(no),n=Le(()=>{const l=Ae(e.to);return t.resolve(l)}),s=Le(()=>{const{matched:l}=n.value,{length:c}=l,u=l[c-1],d=r.matched;if(!u||!d.length)return-1;const p=d.findIndex(lr.bind(null,u));if(p>-1)return p;const g=pi(l[c-2]);return c>1&&pi(u)===g&&d[d.length-1].path!==g?d.findIndex(lr.bind(null,l[c-2])):p}),o=Le(()=>s.value>-1&&Td(r.params,n.value.params)),i=Le(()=>s.value>-1&&s.value===r.matched.length-1&&Xa(r.params,n.value.params));function a(l={}){return Rd(l)?t[Ae(e.replace)?"replace":"push"](Ae(e.to)).catch(kr):Promise.resolve()}return{route:n,href:Le(()=>n.value.href),isActive:o,isExactActive:i,navigate:a}}const Ed=va({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:hi,setup(e,{slots:t}){const r=Tn(hi(e)),{options:n}=nt(Bn),s=Le(()=>({[mi(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[mi(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const o=t.default&&t.default(r);return e.custom?o:Va("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},o)}}}),Sd=Ed;function Rd(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 Td(e,t){for(const r in t){const n=t[r],s=e[r];if(typeof n=="string"){if(n!==s)return!1}else if(!ot(s)||s.length!==n.length||n.some((o,i)=>o!==s[i]))return!1}return!0}function pi(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const mi=(e,t,r)=>e??t??r,Ad=va({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=nt(Ss),s=Le(()=>e.route||n.value),o=nt(di,0),i=Le(()=>{let c=Ae(o);const{matched:u}=s.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),a=Le(()=>s.value.matched[i.value]);nn(di,Le(()=>i.value+1)),nn(xd,a),nn(Ss,s);const l=pe();return Ar(()=>[l.value,a.value,e.name],([c,u,d],[p,g,v])=>{u&&(u.instances[d]=c,g&&g!==u&&c&&c===p&&(u.leaveGuards.size||(u.leaveGuards=g.leaveGuards),u.updateGuards.size||(u.updateGuards=g.updateGuards))),c&&u&&(!g||!lr(u,g)||!p)&&(u.enterCallbacks[d]||[]).forEach(E=>E(c))},{flush:"post"}),()=>{const c=s.value,u=e.name,d=a.value,p=d&&d.components[u];if(!p)return gi(r.default,{Component:p,route:c});const g=d.props[u],v=g?g===!0?c.params:typeof g=="function"?g(c):g:null,R=Va(p,ce({},v,t,{onVnodeUnmounted:L=>{L.component.isUnmounted&&(d.instances[u]=null)},ref:l}));return gi(r.default,{Component:R,route:c})||R}}});function gi(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const Cd=Ad;function kd(e){const t=md(e.routes,e),r=e.parseQuery||wd,n=e.stringifyQuery||fi,s=e.history,o=yr(),i=yr(),a=yr(),l=Tc(Et);let c=Et;er&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Zn.bind(null,w=>""+w),d=Zn.bind(null,jf),p=Zn.bind(null,$r);function g(w,I){let _,$;return Za(w)?(_=t.getRecordMatcher(w),$=I):$=w,t.addRoute($,_)}function v(w){const I=t.getRecordMatcher(w);I&&t.removeRoute(I)}function E(){return t.getRoutes().map(w=>w.record)}function R(w){return!!t.getRecordMatcher(w)}function L(w,I){if(I=ce({},I||l.value),typeof w=="string"){const h=es(r,w,I.path),y=t.resolve({path:h.path},I),S=s.createHref(h.fullPath);return ce(h,y,{params:p(y.params),hash:$r(h.hash),redirectedFrom:void 0,href:S})}let _;if(w.path!=null)_=ce({},w,{path:es(r,w.path,I.path).path});else{const h=ce({},w.params);for(const y in h)h[y]==null&&delete h[y];_=ce({},w,{params:d(h)}),I.params=d(I.params)}const $=t.resolve(_,I),X=w.hash||"";$.params=u(p($.params));const le=zf(n,ce({},w,{hash:qf(X),path:$.path})),f=s.createHref(le);return ce({fullPath:le,hash:X,query:n===fi?_d(w.query):w.query||{}},$,{redirectedFrom:void 0,href:f})}function O(w){return typeof w=="string"?es(r,w,l.value.path):ce({},w)}function C(w,I){if(c!==w)return cr(8,{from:I,to:w})}function J(w){return Z(w)}function D(w){return J(ce(O(w),{replace:!0}))}function F(w){const I=w.matched[w.matched.length-1];if(I&&I.redirect){const{redirect:_}=I;let $=typeof _=="function"?_(w):_;return typeof $=="string"&&($=$.includes("?")||$.includes("#")?$=O($):{path:$},$.params={}),ce({query:w.query,hash:w.hash,params:$.path!=null?{}:w.params},$)}}function Z(w,I){const _=c=L(w),$=l.value,X=w.state,le=w.force,f=w.replace===!0,h=F(_);if(h)return Z(ce(O(h),{state:typeof h=="object"?ce({},X,h.state):X,force:le,replace:f}),I||_);const y=_;y.redirectedFrom=I;let S;return!le&&Wf(n,$,_)&&(S=cr(16,{to:y,from:$}),j($,$,!0,!1)),(S?Promise.resolve(S):qe(y,$)).catch(x=>bt(x)?bt(x,2)?x:lt(x):te(x,y,$)).then(x=>{if(x){if(bt(x,2))return Z(ce({replace:f},O(x.to),{state:typeof x.to=="object"?ce({},X,x.to.state):X,force:le}),I||y)}else x=mt(y,$,!0,f,X);return Fe(y,$,x),x})}function ae(w,I){const _=C(w,I);return _?Promise.reject(_):Promise.resolve()}function Je(w){const I=be.values().next().value;return I&&typeof I.runWithContext=="function"?I.runWithContext(w):w()}function qe(w,I){let _;const[$,X,le]=Pd(w,I);_=ts($.reverse(),"beforeRouteLeave",w,I);for(const h of $)h.leaveGuards.forEach(y=>{_.push(At(y,w,I))});const f=ae.bind(null,w,I);return _.push(f),we(_).then(()=>{_=[];for(const h of o.list())_.push(At(h,w,I));return _.push(f),we(_)}).then(()=>{_=ts(X,"beforeRouteUpdate",w,I);for(const h of X)h.updateGuards.forEach(y=>{_.push(At(y,w,I))});return _.push(f),we(_)}).then(()=>{_=[];for(const h of le)if(h.beforeEnter)if(ot(h.beforeEnter))for(const y of h.beforeEnter)_.push(At(y,w,I));else _.push(At(h.beforeEnter,w,I));return _.push(f),we(_)}).then(()=>(w.matched.forEach(h=>h.enterCallbacks={}),_=ts(le,"beforeRouteEnter",w,I,Je),_.push(f),we(_))).then(()=>{_=[];for(const h of i.list())_.push(At(h,w,I));return _.push(f),we(_)}).catch(h=>bt(h,8)?h:Promise.reject(h))}function Fe(w,I,_){a.list().forEach($=>Je(()=>$(w,I,_)))}function mt(w,I,_,$,X){const le=C(w,I);if(le)return le;const f=I===Et,h=er?history.state:{};_&&($||f?s.replace(w.fullPath,ce({scroll:f&&h&&h.scroll},X)):s.push(w.fullPath,X)),l.value=w,j(w,I,_,f),lt()}let De;function je(){De||(De=s.listen((w,I,_)=>{if(!yt.listening)return;const $=L(w),X=F($);if(X){Z(ce(X,{replace:!0}),$).catch(kr);return}c=$;const le=l.value;er&&ed(ri(le.fullPath,_.delta),$n()),qe($,le).catch(f=>bt(f,12)?f:bt(f,2)?(Z(f.to,$).then(h=>{bt(h,20)&&!_.delta&&_.type===Br.pop&&s.go(-1,!1)}).catch(kr),Promise.reject()):(_.delta&&s.go(-_.delta,!1),te(f,$,le))).then(f=>{f=f||mt($,le,!1),f&&(_.delta&&!bt(f,8)?s.go(-_.delta,!1):_.type===Br.pop&&bt(f,20)&&s.go(-1,!1)),Fe($,le,f)}).catch(kr)}))}let gt=yr(),ye=yr(),se;function te(w,I,_){lt(w);const $=ye.list();return $.length?$.forEach(X=>X(w,I,_)):console.error(w),Promise.reject(w)}function Qe(){return se&&l.value!==Et?Promise.resolve():new Promise((w,I)=>{gt.add([w,I])})}function lt(w){return se||(se=!w,je(),gt.list().forEach(([I,_])=>w?_(w):I()),gt.reset()),w}function j(w,I,_,$){const{scrollBehavior:X}=e;if(!er||!X)return Promise.resolve();const le=!_&&td(ri(w.fullPath,0))||($||!_)&&history.state&&history.state.scroll||null;return pa().then(()=>X(w,I,le)).then(f=>f&&Zf(f)).catch(f=>te(f,w,I))}const z=w=>s.go(w);let ue;const be=new Set,yt={currentRoute:l,listening:!0,addRoute:g,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:R,getRoutes:E,resolve:L,options:e,push:J,replace:D,go:z,back:()=>z(-1),forward:()=>z(1),beforeEach:o.add,beforeResolve:i.add,afterEach:a.add,onError:ye.add,isReady:Qe,install(w){const I=this;w.component("RouterLink",Sd),w.component("RouterView",Cd),w.config.globalProperties.$router=I,Object.defineProperty(w.config.globalProperties,"$route",{enumerable:!0,get:()=>Ae(l)}),er&&!ue&&l.value===Et&&(ue=!0,J(s.location).catch(X=>{}));const _={};for(const X in Et)Object.defineProperty(_,X,{get:()=>l.value[X],enumerable:!0});w.provide(Bn,I),w.provide(no,ia(_)),w.provide(Ss,l);const $=w.unmount;be.add(w),w.unmount=function(){be.delete(w),be.size<1&&(c=Et,De&&De(),De=null,l.value=Et,ue=!1,se=!1),$()}}};function we(w){return w.reduce((I,_)=>I.then(()=>Je(_)),Promise.resolve())}return yt}function Pd(e,t){const r=[],n=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;i<o;i++){const a=t.matched[i];a&&(e.matched.find(c=>lr(c,a))?n.push(a):r.push(a));const l=e.matched[i];l&&(t.matched.find(c=>lr(c,l))||s.push(l))}return[r,n,s]}function nl(){return nt(Bn)}function Od(e){return nt(no)}function sl(e,t){return function(){return e.apply(t,arguments)}}const{toString:Id}=Object.prototype,{getPrototypeOf:so}=Object,Mn=(e=>t=>{const r=Id.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),it=e=>(e=e.toLowerCase(),t=>Mn(t)===e),Un=e=>t=>typeof t===e,{isArray:dr}=Array,Mr=Un("undefined");function Nd(e){return e!==null&&!Mr(e)&&e.constructor!==null&&!Mr(e.constructor)&&Ke(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ol=it("ArrayBuffer");function Ld(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ol(e.buffer),t}const $d=Un("string"),Ke=Un("function"),il=Un("number"),qn=e=>e!==null&&typeof e=="object",Bd=e=>e===!0||e===!1,ln=e=>{if(Mn(e)!=="object")return!1;const t=so(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Md=it("Date"),Ud=it("File"),qd=it("Blob"),Fd=it("FileList"),Dd=e=>qn(e)&&Ke(e.pipe),jd=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ke(e.append)&&((t=Mn(e))==="formdata"||t==="object"&&Ke(e.toString)&&e.toString()==="[object FormData]"))},Hd=it("URLSearchParams"),[Vd,zd,Wd,Kd]=["ReadableStream","Request","Response","Headers"].map(it),Jd=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function qr(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),dr(e))for(n=0,s=e.length;n<s;n++)t.call(null,e[n],n,e);else{const o=r?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(n=0;n<i;n++)a=o[n],t.call(null,e[a],a,e)}}function al(e,t){t=t.toLowerCase();const r=Object.keys(e);let n=r.length,s;for(;n-- >0;)if(s=r[n],t===s.toLowerCase())return s;return null}const jt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ll=e=>!Mr(e)&&e!==jt;function Rs(){const{caseless:e}=ll(this)&&this||{},t={},r=(n,s)=>{const o=e&&al(t,s)||s;ln(t[o])&&ln(n)?t[o]=Rs(t[o],n):ln(n)?t[o]=Rs({},n):dr(n)?t[o]=n.slice():t[o]=n};for(let n=0,s=arguments.length;n<s;n++)arguments[n]&&qr(arguments[n],r);return t}const Yd=(e,t,r,{allOwnKeys:n}={})=>(qr(t,(s,o)=>{r&&Ke(s)?e[o]=sl(s,r):e[o]=s},{allOwnKeys:n}),e),Gd=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Xd=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Qd=(e,t,r,n)=>{let s,o,i;const a={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!n||n(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=r!==!1&&so(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Zd=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},eh=e=>{if(!e)return null;if(dr(e))return e;let t=e.length;if(!il(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},th=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&so(Uint8Array)),rh=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=n.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},nh=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},sh=it("HTMLFormElement"),oh=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,s){return n.toUpperCase()+s}),yi=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),ih=it("RegExp"),cl=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};qr(r,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(n[o]=i||s)}),Object.defineProperties(e,n)},ah=e=>{cl(e,(t,r)=>{if(Ke(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Ke(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},lh=(e,t)=>{const r={},n=s=>{s.forEach(o=>{r[o]=!0})};return dr(e)?n(e):n(String(e).split(t)),r},ch=()=>{},uh=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,rs="abcdefghijklmnopqrstuvwxyz",bi="0123456789",ul={DIGIT:bi,ALPHA:rs,ALPHA_DIGIT:rs+rs.toUpperCase()+bi},fh=(e=16,t=ul.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function dh(e){return!!(e&&Ke(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const hh=e=>{const t=new Array(10),r=(n,s)=>{if(qn(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[s]=n;const o=dr(n)?[]:{};return qr(n,(i,a)=>{const l=r(i,s+1);!Mr(l)&&(o[a]=l)}),t[s]=void 0,o}}return n};return r(e,0)},ph=it("AsyncFunction"),mh=e=>e&&(qn(e)||Ke(e))&&Ke(e.then)&&Ke(e.catch),fl=((e,t)=>e?setImmediate:t?((r,n)=>(jt.addEventListener("message",({source:s,data:o})=>{s===jt&&o===r&&n.length&&n.shift()()},!1),s=>{n.push(s),jt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Ke(jt.postMessage)),gh=typeof queueMicrotask<"u"?queueMicrotask.bind(jt):typeof process<"u"&&process.nextTick||fl,b={isArray:dr,isArrayBuffer:ol,isBuffer:Nd,isFormData:jd,isArrayBufferView:Ld,isString:$d,isNumber:il,isBoolean:Bd,isObject:qn,isPlainObject:ln,isReadableStream:Vd,isRequest:zd,isResponse:Wd,isHeaders:Kd,isUndefined:Mr,isDate:Md,isFile:Ud,isBlob:qd,isRegExp:ih,isFunction:Ke,isStream:Dd,isURLSearchParams:Hd,isTypedArray:th,isFileList:Fd,forEach:qr,merge:Rs,extend:Yd,trim:Jd,stripBOM:Gd,inherits:Xd,toFlatObject:Qd,kindOf:Mn,kindOfTest:it,endsWith:Zd,toArray:eh,forEachEntry:rh,matchAll:nh,isHTMLForm:sh,hasOwnProperty:yi,hasOwnProp:yi,reduceDescriptors:cl,freezeMethods:ah,toObjectSet:lh,toCamelCase:oh,noop:ch,toFiniteNumber:uh,findKey:al,global:jt,isContextDefined:ll,ALPHABET:ul,generateString:fh,isSpecCompliantForm:dh,toJSONObject:hh,isAsyncFn:ph,isThenable:mh,setImmediate:fl,asap:gh};function Y(e,t,r,n,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),s&&(this.response=s,this.status=s.status?s.status:null)}b.inherits(Y,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:b.toJSONObject(this.config),code:this.code,status:this.status}}});const dl=Y.prototype,hl={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{hl[e]={value:e}});Object.defineProperties(Y,hl);Object.defineProperty(dl,"isAxiosError",{value:!0});Y.from=(e,t,r,n,s,o)=>{const i=Object.create(dl);return b.toFlatObject(e,i,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),Y.call(i,e.message,t,r,n,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const yh=null;function Ts(e){return b.isPlainObject(e)||b.isArray(e)}function pl(e){return b.endsWith(e,"[]")?e.slice(0,-2):e}function vi(e,t,r){return e?e.concat(t).map(function(s,o){return s=pl(s),!r&&o?"["+s+"]":s}).join(r?".":""):t}function bh(e){return b.isArray(e)&&!e.some(Ts)}const vh=b.toFlatObject(b,{},null,function(t){return/^is[A-Z]/.test(t)});function Fn(e,t,r){if(!b.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=b.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,R){return!b.isUndefined(R[E])});const n=r.metaTokens,s=r.visitor||u,o=r.dots,i=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&b.isSpecCompliantForm(t);if(!b.isFunction(s))throw new TypeError("visitor must be a function");function c(v){if(v===null)return"";if(b.isDate(v))return v.toISOString();if(!l&&b.isBlob(v))throw new Y("Blob is not supported. Use a Buffer instead.");return b.isArrayBuffer(v)||b.isTypedArray(v)?l&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function u(v,E,R){let L=v;if(v&&!R&&typeof v=="object"){if(b.endsWith(E,"{}"))E=n?E:E.slice(0,-2),v=JSON.stringify(v);else if(b.isArray(v)&&bh(v)||(b.isFileList(v)||b.endsWith(E,"[]"))&&(L=b.toArray(v)))return E=pl(E),L.forEach(function(C,J){!(b.isUndefined(C)||C===null)&&t.append(i===!0?vi([E],J,o):i===null?E:E+"[]",c(C))}),!1}return Ts(v)?!0:(t.append(vi(R,E,o),c(v)),!1)}const d=[],p=Object.assign(vh,{defaultVisitor:u,convertValue:c,isVisitable:Ts});function g(v,E){if(!b.isUndefined(v)){if(d.indexOf(v)!==-1)throw Error("Circular reference detected in "+E.join("."));d.push(v),b.forEach(v,function(L,O){(!(b.isUndefined(L)||L===null)&&s.call(t,L,b.isString(O)?O.trim():O,E,p))===!0&&g(L,E?E.concat(O):[O])}),d.pop()}}if(!b.isObject(e))throw new TypeError("data must be an object");return g(e),t}function wi(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function oo(e,t){this._pairs=[],e&&Fn(e,this,t)}const ml=oo.prototype;ml.append=function(t,r){this._pairs.push([t,r])};ml.toString=function(t){const r=t?function(n){return t.call(this,n,wi)}:wi;return this._pairs.map(function(s){return r(s[0])+"="+r(s[1])},"").join("&")};function wh(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function gl(e,t,r){if(!t)return e;const n=r&&r.encode||wh,s=r&&r.serialize;let o;if(s?o=s(t,r):o=b.isURLSearchParams(t)?t.toString():new oo(t,r).toString(n),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class _i{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){b.forEach(this.handlers,function(n){n!==null&&t(n)})}}const yl={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},_h=typeof URLSearchParams<"u"?URLSearchParams:oo,xh=typeof FormData<"u"?FormData:null,Eh=typeof Blob<"u"?Blob:null,Sh={isBrowser:!0,classes:{URLSearchParams:_h,FormData:xh,Blob:Eh},protocols:["http","https","file","blob","url","data"]},io=typeof window<"u"&&typeof document<"u",As=typeof navigator=="object"&&navigator||void 0,Rh=io&&(!As||["ReactNative","NativeScript","NS"].indexOf(As.product)<0),Th=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ah=io&&window.location.href||"http://localhost",Ch=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:io,hasStandardBrowserEnv:Rh,hasStandardBrowserWebWorkerEnv:Th,navigator:As,origin:Ah},Symbol.toStringTag,{value:"Module"})),$e={...Ch,...Sh};function kh(e,t){return Fn(e,new $e.classes.URLSearchParams,Object.assign({visitor:function(r,n,s,o){return $e.isNode&&b.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Ph(e){return b.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Oh(e){const t={},r=Object.keys(e);let n;const s=r.length;let o;for(n=0;n<s;n++)o=r[n],t[o]=e[o];return t}function bl(e){function t(r,n,s,o){let i=r[o++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),l=o>=r.length;return i=!i&&b.isArray(s)?s.length:i,l?(b.hasOwnProp(s,i)?s[i]=[s[i],n]:s[i]=n,!a):((!s[i]||!b.isObject(s[i]))&&(s[i]=[]),t(r,n,s[i],o)&&b.isArray(s[i])&&(s[i]=Oh(s[i])),!a)}if(b.isFormData(e)&&b.isFunction(e.entries)){const r={};return b.forEachEntry(e,(n,s)=>{t(Ph(n),s,r,0)}),r}return null}function Ih(e,t,r){if(b.isString(e))try{return(t||JSON.parse)(e),b.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(0,JSON.stringify)(e)}const Fr={transitional:yl,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",s=n.indexOf("application/json")>-1,o=b.isObject(t);if(o&&b.isHTMLForm(t)&&(t=new FormData(t)),b.isFormData(t))return s?JSON.stringify(bl(t)):t;if(b.isArrayBuffer(t)||b.isBuffer(t)||b.isStream(t)||b.isFile(t)||b.isBlob(t)||b.isReadableStream(t))return t;if(b.isArrayBufferView(t))return t.buffer;if(b.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return kh(t,this.formSerializer).toString();if((a=b.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Fn(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||s?(r.setContentType("application/json",!1),Ih(t)):t}],transformResponse:[function(t){const r=this.transitional||Fr.transitional,n=r&&r.forcedJSONParsing,s=this.responseType==="json";if(b.isResponse(t)||b.isReadableStream(t))return t;if(t&&b.isString(t)&&(n&&!this.responseType||s)){const i=!(r&&r.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(a){if(i)throw a.name==="SyntaxError"?Y.from(a,Y.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:$e.classes.FormData,Blob:$e.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};b.forEach(["delete","get","head","post","put","patch"],e=>{Fr.headers[e]={}});const Nh=b.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Lh=e=>{const t={};let r,n,s;return e&&e.split(` `).forEach(function(i){s=i.indexOf(":"),r=i.substring(0,s).trim().toLowerCase(),n=i.substring(s+1).trim(),!(!r||t[r]&&Nh[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},xi=Symbol("internals");function br(e){return e&&String(e).trim().toLowerCase()}function cn(e){return e===!1||e==null?e:b.isArray(e)?e.map(cn):String(e)}function $h(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const Bh=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ns(e,t,r,n,s){if(b.isFunction(n))return n.call(this,t,r);if(s&&(t=r),!!b.isString(t)){if(b.isString(n))return t.indexOf(n)!==-1;if(b.isRegExp(n))return n.test(t)}}function Mh(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Uh(e,t){const r=b.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(s,o,i){return this[n].call(this,t,s,o,i)},configurable:!0})})}class Be{constructor(t){t&&this.set(t)}set(t,r,n){const s=this;function o(a,l,c){const u=br(l);if(!u)throw new Error("header name must be a non-empty string");const d=b.findKey(s,u);(!d||s[d]===void 0||c===!0||c===void 0&&s[d]!==!1)&&(s[d||l]=cn(a))}const i=(a,l)=>b.forEach(a,(c,u)=>o(c,u,l));if(b.isPlainObject(t)||t instanceof this.constructor)i(t,r);else if(b.isString(t)&&(t=t.trim())&&!Bh(t))i(Lh(t),r);else if(b.isHeaders(t))for(const[a,l]of t.entries())o(l,a,n);else t!=null&&o(r,t,n);return this}get(t,r){if(t=br(t),t){const n=b.findKey(this,t);if(n){const s=this[n];if(!r)return s;if(r===!0)return $h(s);if(b.isFunction(r))return r.call(this,s,n);if(b.isRegExp(r))return r.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=br(t),t){const n=b.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||ns(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let s=!1;function o(i){if(i=br(i),i){const a=b.findKey(n,i);a&&(!r||ns(n,n[a],a,r))&&(delete n[a],s=!0)}}return b.isArray(t)?t.forEach(o):o(t),s}clear(t){const r=Object.keys(this);let n=r.length,s=!1;for(;n--;){const o=r[n];(!t||ns(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const r=this,n={};return b.forEach(this,(s,o)=>{const i=b.findKey(n,o);if(i){r[i]=cn(s),delete r[o];return}const a=t?Mh(o):String(o).trim();a!==o&&delete r[o],r[a]=cn(s),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return b.forEach(this,(n,s)=>{n!=null&&n!==!1&&(r[s]=t&&b.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(s=>n.set(s)),n}static accessor(t){const n=(this[xi]=this[xi]={accessors:{}}).accessors,s=this.prototype;function o(i){const a=br(i);n[a]||(Uh(s,i),n[a]=!0)}return b.isArray(t)?t.forEach(o):o(t),this}}Be.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);b.reduceDescriptors(Be.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});b.freezeMethods(Be);function ss(e,t){const r=this||Fr,n=t||r,s=Be.from(n.headers);let o=n.data;return b.forEach(e,function(a){o=a.call(r,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function vl(e){return!!(e&&e.__CANCEL__)}function hr(e,t,r){Y.call(this,e??"canceled",Y.ERR_CANCELED,t,r),this.name="CanceledError"}b.inherits(hr,Y,{__CANCEL__:!0});function wl(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Y("Request failed with status code "+r.status,[Y.ERR_BAD_REQUEST,Y.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function qh(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Fh(e,t){e=e||10;const r=new Array(e),n=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=n[o];i||(i=c),r[s]=l,n[s]=c;let d=o,p=0;for(;d!==s;)p+=r[d++],d=d%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),c-i<t)return;const g=u&&c-u;return g?Math.round(p*1e3/g):void 0}}function Dh(e,t){let r=0,n=1e3/t,s,o;const i=(c,u=Date.now())=>{r=u,s=null,o&&(clearTimeout(o),o=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),d=u-r;d>=n?i(c,u):(s=c,o||(o=setTimeout(()=>{o=null,i(s)},n-d)))},()=>s&&i(s)]}const vn=(e,t,r=3)=>{let n=0;const s=Fh(50,250);return Dh(o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,l=i-n,c=s(l),u=i<=a;n=i;const d={loaded:i,total:a,progress:a?i/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&u?(a-i)/c:void 0,event:o,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(d)},r)},Ei=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Si=e=>(...t)=>b.asap(()=>e(...t)),jh=$e.hasStandardBrowserEnv?function(){const t=$e.navigator&&/(msie|trident)/i.test($e.navigator.userAgent),r=document.createElement("a");let n;function s(o){let i=o;return t&&(r.setAttribute("href",i),i=r.href),r.setAttribute("href",i),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=s(window.location.href),function(i){const a=b.isString(i)?s(i):i;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}(),Hh=$e.hasStandardBrowserEnv?{write(e,t,r,n,s,o){const i=[e+"="+encodeURIComponent(t)];b.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),b.isString(n)&&i.push("path="+n),b.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Vh(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function zh(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function _l(e,t){return e&&!Vh(t)?zh(e,t):t}const Ri=e=>e instanceof Be?{...e}:e;function Jt(e,t){t=t||{};const r={};function n(c,u,d){return b.isPlainObject(c)&&b.isPlainObject(u)?b.merge.call({caseless:d},c,u):b.isPlainObject(u)?b.merge({},u):b.isArray(u)?u.slice():u}function s(c,u,d){if(b.isUndefined(u)){if(!b.isUndefined(c))return n(void 0,c,d)}else return n(c,u,d)}function o(c,u){if(!b.isUndefined(u))return n(void 0,u)}function i(c,u){if(b.isUndefined(u)){if(!b.isUndefined(c))return n(void 0,c)}else return n(void 0,u)}function a(c,u,d){if(d in t)return n(c,u);if(d in e)return n(void 0,c)}const l={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(c,u)=>s(Ri(c),Ri(u),!0)};return b.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=l[u]||s,p=d(e[u],t[u],u);b.isUndefined(p)&&d!==a||(r[u]=p)}),r}const xl=e=>{const t=Jt({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:a}=t;t.headers=i=Be.from(i),t.url=gl(_l(t.baseURL,t.url),e.params,e.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(b.isFormData(r)){if($e.hasStandardBrowserEnv||$e.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((l=i.getContentType())!==!1){const[c,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];i.setContentType([c||"multipart/form-data",...u].join("; "))}}if($e.hasStandardBrowserEnv&&(n&&b.isFunction(n)&&(n=n(t)),n||n!==!1&&jh(t.url))){const c=s&&o&&Hh.read(o);c&&i.set(s,c)}return t},Wh=typeof XMLHttpRequest<"u",Kh=Wh&&function(e){return new Promise(function(r,n){const s=xl(e);let o=s.data;const i=Be.from(s.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=s,u,d,p,g,v;function E(){g&&g(),v&&v(),s.cancelToken&&s.cancelToken.unsubscribe(u),s.signal&&s.signal.removeEventListener("abort",u)}let R=new XMLHttpRequest;R.open(s.method.toUpperCase(),s.url,!0),R.timeout=s.timeout;function L(){if(!R)return;const C=Be.from("getAllResponseHeaders"in R&&R.getAllResponseHeaders()),D={data:!a||a==="text"||a==="json"?R.responseText:R.response,status:R.status,statusText:R.statusText,headers:C,config:e,request:R};wl(function(Z){r(Z),E()},function(Z){n(Z),E()},D),R=null}"onloadend"in R?R.onloadend=L:R.onreadystatechange=function(){!R||R.readyState!==4||R.status===0&&!(R.responseURL&&R.responseURL.indexOf("file:")===0)||setTimeout(L)},R.onabort=function(){R&&(n(new Y("Request aborted",Y.ECONNABORTED,e,R)),R=null)},R.onerror=function(){n(new Y("Network Error",Y.ERR_NETWORK,e,R)),R=null},R.ontimeout=function(){let J=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const D=s.transitional||yl;s.timeoutErrorMessage&&(J=s.timeoutErrorMessage),n(new Y(J,D.clarifyTimeoutError?Y.ETIMEDOUT:Y.ECONNABORTED,e,R)),R=null},o===void 0&&i.setContentType(null),"setRequestHeader"in R&&b.forEach(i.toJSON(),function(J,D){R.setRequestHeader(D,J)}),b.isUndefined(s.withCredentials)||(R.withCredentials=!!s.withCredentials),a&&a!=="json"&&(R.responseType=s.responseType),c&&([p,v]=vn(c,!0),R.addEventListener("progress",p)),l&&R.upload&&([d,g]=vn(l),R.upload.addEventListener("progress",d),R.upload.addEventListener("loadend",g)),(s.cancelToken||s.signal)&&(u=C=>{R&&(n(!C||C.type?new hr(null,e,R):C),R.abort(),R=null)},s.cancelToken&&s.cancelToken.subscribe(u),s.signal&&(s.signal.aborted?u():s.signal.addEventListener("abort",u)));const O=qh(s.url);if(O&&$e.protocols.indexOf(O)===-1){n(new Y("Unsupported protocol "+O+":",Y.ERR_BAD_REQUEST,e));return}R.send(o||null)})},Jh=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,s;const o=function(c){if(!s){s=!0,a();const u=c instanceof Error?c:this.reason;n.abort(u instanceof Y?u:new hr(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,o(new Y(`timeout ${t} of ms exceeded`,Y.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o));const{signal:l}=n;return l.unsubscribe=()=>b.asap(a),l}},Yh=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,s;for(;n<r;)s=n+t,yield e.slice(n,s),n=s},Gh=async function*(e,t){for await(const r of Xh(e))yield*Yh(r,t)},Xh=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},Ti=(e,t,r,n)=>{const s=Gh(e,t);let o=0,i,a=l=>{i||(i=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await s.next();if(c){a(),l.close();return}let d=u.byteLength;if(r){let p=o+=d;r(p)}l.enqueue(new Uint8Array(u))}catch(c){throw a(c),c}},cancel(l){return a(l),s.return()}},{highWaterMark:2})},Dn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",El=Dn&&typeof ReadableStream=="function",Qh=Dn&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Sl=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Zh=El&&Sl(()=>{let e=!1;const t=new Request($e.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ai=64*1024,Cs=El&&Sl(()=>b.isReadableStream(new Response("").body)),wn={stream:Cs&&(e=>e.body)};Dn&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!wn[t]&&(wn[t]=b.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new Y(`Response type '${t}' is not supported`,Y.ERR_NOT_SUPPORT,n)})})})(new Response);const ep=async e=>{if(e==null)return 0;if(b.isBlob(e))return e.size;if(b.isSpecCompliantForm(e))return(await new Request($e.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(b.isArrayBufferView(e)||b.isArrayBuffer(e))return e.byteLength;if(b.isURLSearchParams(e)&&(e=e+""),b.isString(e))return(await Qh(e)).byteLength},tp=async(e,t)=>{const r=b.toFiniteNumber(e.getContentLength());return r??ep(t)},rp=Dn&&(async e=>{let{url:t,method:r,data:n,signal:s,cancelToken:o,timeout:i,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:p}=xl(e);c=c?(c+"").toLowerCase():"text";let g=Jh([s,o&&o.toAbortSignal()],i),v;const E=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let R;try{if(l&&Zh&&r!=="get"&&r!=="head"&&(R=await tp(u,n))!==0){let D=new Request(t,{method:"POST",body:n,duplex:"half"}),F;if(b.isFormData(n)&&(F=D.headers.get("content-type"))&&u.setContentType(F),D.body){const[Z,ae]=Ei(R,vn(Si(l)));n=Ti(D.body,Ai,Z,ae)}}b.isString(d)||(d=d?"include":"omit");const L="credentials"in Request.prototype;v=new Request(t,{...p,signal:g,method:r.toUpperCase(),headers:u.normalize().toJSON(),body:n,duplex:"half",credentials:L?d:void 0});let O=await fetch(v);const C=Cs&&(c==="stream"||c==="response");if(Cs&&(a||C&&E)){const D={};["status","statusText","headers"].forEach(Je=>{D[Je]=O[Je]});const F=b.toFiniteNumber(O.headers.get("content-length")),[Z,ae]=a&&Ei(F,vn(Si(a),!0))||[];O=new Response(Ti(O.body,Ai,Z,()=>{ae&&ae(),E&&E()}),D)}c=c||"text";let J=await wn[b.findKey(wn,c)||"text"](O,e);return!C&&E&&E(),await new Promise((D,F)=>{wl(D,F,{data:J,headers:Be.from(O.headers),status:O.status,statusText:O.statusText,config:e,request:v})})}catch(L){throw E&&E(),L&&L.name==="TypeError"&&/fetch/i.test(L.message)?Object.assign(new Y("Network Error",Y.ERR_NETWORK,e,v),{cause:L.cause||L}):Y.from(L,L&&L.code,e,v)}}),ks={http:yh,xhr:Kh,fetch:rp};b.forEach(ks,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ci=e=>`- ${e}`,np=e=>b.isFunction(e)||e===null||e===!1,Rl={getAdapter:e=>{e=b.isArray(e)?e:[e];const{length:t}=e;let r,n;const s={};for(let o=0;o<t;o++){r=e[o];let i;if(n=r,!np(r)&&(n=ks[(i=String(r)).toLowerCase()],n===void 0))throw new Y(`Unknown adapter '${i}'`);if(n)break;s[i||"#"+o]=n}if(!n){const o=Object.entries(s).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since : `+o.map(Ci).join(` `):" "+Ci(o[0]):"as no adapter specified";throw new Y("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return n},adapters:ks};function os(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new hr(null,e)}function ki(e){return os(e),e.headers=Be.from(e.headers),e.data=ss.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Rl.getAdapter(e.adapter||Fr.adapter)(e).then(function(n){return os(e),n.data=ss.call(e,e.transformResponse,n),n.headers=Be.from(n.headers),n},function(n){return vl(n)||(os(e),n&&n.response&&(n.response.data=ss.call(e,e.transformResponse,n.response),n.response.headers=Be.from(n.response.headers))),Promise.reject(n)})}const Tl="1.7.7",ao={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ao[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Pi={};ao.transitional=function(t,r,n){function s(o,i){return"[Axios v"+Tl+"] Transitional option '"+o+"'"+i+(n?". "+n:"")}return(o,i,a)=>{if(t===!1)throw new Y(s(i," has been removed"+(r?" in "+r:"")),Y.ERR_DEPRECATED);return r&&!Pi[i]&&(Pi[i]=!0,console.warn(s(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,i,a):!0}};function sp(e,t,r){if(typeof e!="object")throw new Y("options must be an object",Y.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const o=n[s],i=t[o];if(i){const a=e[o],l=a===void 0||i(a,o,e);if(l!==!0)throw new Y("option "+o+" must be "+l,Y.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Y("Unknown option "+o,Y.ERR_BAD_OPTION)}}const Ps={assertOptions:sp,validators:ao},St=Ps.validators;class zt{constructor(t){this.defaults=t,this.interceptors={request:new _i,response:new _i}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{n.stack?o&&!String(n.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(n.stack+=` `+o):n.stack=o}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Jt(this.defaults,r);const{transitional:n,paramsSerializer:s,headers:o}=r;n!==void 0&&Ps.assertOptions(n,{silentJSONParsing:St.transitional(St.boolean),forcedJSONParsing:St.transitional(St.boolean),clarifyTimeoutError:St.transitional(St.boolean)},!1),s!=null&&(b.isFunction(s)?r.paramsSerializer={serialize:s}:Ps.assertOptions(s,{encode:St.function,serialize:St.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=o&&b.merge(o.common,o[r.method]);o&&b.forEach(["delete","get","head","post","put","patch","common"],v=>{delete o[v]}),r.headers=Be.concat(i,o);const a=[];let l=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(r)===!1||(l=l&&E.synchronous,a.unshift(E.fulfilled,E.rejected))});const c=[];this.interceptors.response.forEach(function(E){c.push(E.fulfilled,E.rejected)});let u,d=0,p;if(!l){const v=[ki.bind(this),void 0];for(v.unshift.apply(v,a),v.push.apply(v,c),p=v.length,u=Promise.resolve(r);d<p;)u=u.then(v[d++],v[d++]);return u}p=a.length;let g=r;for(d=0;d<p;){const v=a[d++],E=a[d++];try{g=v(g)}catch(R){E.call(this,R);break}}try{u=ki.call(this,g)}catch(v){return Promise.reject(v)}for(d=0,p=c.length;d<p;)u=u.then(c[d++],c[d++]);return u}getUri(t){t=Jt(this.defaults,t);const r=_l(t.baseURL,t.url);return gl(r,t.params,t.paramsSerializer)}}b.forEach(["delete","get","head","options"],function(t){zt.prototype[t]=function(r,n){return this.request(Jt(n||{},{method:t,url:r,data:(n||{}).data}))}});b.forEach(["post","put","patch"],function(t){function r(n){return function(o,i,a){return this.request(Jt(a||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}zt.prototype[t]=r(),zt.prototype[t+"Form"]=r(!0)});class lo{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(o){r=o});const n=this;this.promise.then(s=>{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](s);n._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(a=>{n.subscribe(a),o=a}).then(s);return i.cancel=function(){n.unsubscribe(o)},i},t(function(o,i,a){n.reason||(n.reason=new hr(o,i,a),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new lo(function(s){t=s}),cancel:t}}}function op(e){return function(r){return e.apply(null,r)}}function ip(e){return b.isObject(e)&&e.isAxiosError===!0}const Os={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Os).forEach(([e,t])=>{Os[t]=e});function Al(e){const t=new zt(e),r=sl(zt.prototype.request,t);return b.extend(r,zt.prototype,t,{allOwnKeys:!0}),b.extend(r,t,null,{allOwnKeys:!0}),r.create=function(s){return Al(Jt(e,s))},r}const ee=Al(Fr);ee.Axios=zt;ee.CanceledError=hr;ee.CancelToken=lo;ee.isCancel=vl;ee.VERSION=Tl;ee.toFormData=Fn;ee.AxiosError=Y;ee.Cancel=ee.CanceledError;ee.all=function(t){return Promise.all(t)};ee.spread=op;ee.isAxiosError=ip;ee.mergeConfig=Jt;ee.AxiosHeaders=Be;ee.formToJSON=e=>bl(b.isHTMLForm(e)?new FormData(e):e);ee.getAdapter=Rl.getAdapter;ee.HttpStatusCode=Os;ee.default=ee;const Oi="https://app.academ.my:5000",ap={data(){return{isMobileMenuOpen:!1,isProfileMenuOpen:!1,isAuthenticated:!1,userProfilePicture:"",userRole:""}},mounted(){this.checkAuthStatus(),this.setUserRole()},methods:{checkAuthStatus(){const e=localStorage.getItem("token");e&&(this.isAuthenticated=!0,ee.get(`${Oi}/api/users/profile`,{headers:{Authorization:`Bearer ${e}`}}).then(t=>{this.userProfilePicture=`${Oi}/uploads/${t.data.profilePicture}`}).catch(()=>{this.userProfilePicture="default-profile-pic-url.jpg"}))},setUserRole(){var t;const e=localStorage.getItem("token");if(e){const r=this.decodeJwt(e);this.userRole=((t=r==null?void 0:r.user)==null?void 0:t.role)||""}},decodeJwt(e){try{const r=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/");return JSON.parse(atob(r))}catch{return null}},toggleProfileMenu(){this.isProfileMenuOpen=!this.isProfileMenuOpen},goToLogin(){this.$router.push({name:"auth"})},goToSignup(){this.$router.push({name:"signup"})},logout(){localStorage.removeItem("token"),this.isAuthenticated=!1,this.isProfileMenuOpen=!1,this.$router.push({name:"auth"})}}},co=e=>(Yt("data-v-34ce379f"),e=e(),Gt(),e),lp={class:"navbar text-white mb-4 shadow-lg"},cp={class:"container mx-auto px-4 sm:px-6 lg:px-8"},up={class:"flex justify-between items-center h-16"},fp={class:"flex-shrink-0 flex items-center"},dp=co(()=>m("img",{src:to,alt:"Logo",class:"w-[40px]"},null,-1)),hp={class:"flex md:hidden space-x-8 font-medium text-lg"},pp={class:"md:hidden items-center space-x-4"},mp={key:0,class:"relative profil-container flex items-center"},gp=["src"],yp=co(()=>m("path",{d:"m12 15.4l-6-6L7.4 8l4.6 4.6L16.6 8L18 9.4z"},null,-1)),bp=[yp],vp={key:0,class:"dropdown-menu bg-darkblue absolute right-0 mt-36 w-48 border rounded-lg shadow-lg z-20"},wp={class:"py-2 text-sm text-gray-200"},_p={class:"hidden md:flex items-center"},xp=co(()=>m("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[m("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h16"})],-1)),Ep=[xp],Sp={key:0,class:"mobileNavbar border-t border-gray-700"},Rp={class:"py-2 space-y-1"},Tp={key:0,class:"py-3 border-t border-gray-700"},Ap={key:1,class:"py-3 border-t border-gray-700"};function Cp(e,t,r,n,s,o){const i=fr("router-link");return q(),H("nav",lp,[m("div",cp,[m("div",up,[m("div",fp,[ne(i,{to:"/",class:"text-2xl font-bold bg-gradient-to-r from-purple-500 to-pink-500 bg-clip-text text-transparent"},{default:Ie(()=>[dp]),_:1})]),m("div",hp,[s.userRole==="admin"?(q(),kt(i,{key:0,to:"/adminPage",class:Ve(["hover:text-purple-400 transition",{"underline decoration-2 decoration-purple-500":e.$route.path==="/adminPage"}])},{default:Ie(()=>[Te(" Admin ")]),_:1},8,["class"])):me("",!0),ne(i,{to:"/",class:Ve(["hover:text-purple-400 transition",{"underline decoration-2 decoration-purple-500":e.$route.path==="/"}])},{default:Ie(()=>[Te(" Conversations ")]),_:1},8,["class"]),s.userRole!=="professor"?(q(),kt(i,{key:1,to:"/professors",class:Ve(["hover:text-purple-400 transition",{"underline decoration-2 decoration-purple-500":e.$route.path==="/professors"}])},{default:Ie(()=>[Te(" Professeurs ")]),_:1},8,["class"])):me("",!0)]),m("div",pp,[s.isAuthenticated?(q(),H("div",mp,[m("img",{src:s.userProfilePicture,alt:"Profile",class:"w-10 h-10 rounded-full border border-gray-600 cursor-pointer",onClick:t[0]||(t[0]=(...a)=>o.toggleProfileMenu&&o.toggleProfileMenu(...a))},null,8,gp),(q(),H("svg",{xmlns:"http://www.w3.org/2000/svg",class:Ve(["w-6 h-6 ml-2 text-gray-300 cursor-pointer transform transition-transform duration-200",{"rotate-180":s.isProfileMenuOpen}]),onClick:t[1]||(t[1]=(...a)=>o.toggleProfileMenu&&o.toggleProfileMenu(...a)),fill:"currentColor",viewBox:"0 0 24 24"},bp,2)),s.isProfileMenuOpen?(q(),H("div",vp,[m("ul",wp,[m("li",null,[ne(i,{to:"/profileParameter",class:"block px-4 py-2 hover:bg-gray-800 rounded-lg transition"},{default:Ie(()=>[Te(" Mon Profil ")]),_:1})]),m("li",null,[m("a",{onClick:t[2]||(t[2]=(...a)=>o.logout&&o.logout(...a)),class:"block px-4 py-2 hover:bg-gray-800 rounded-lg transition cursor-pointer"}," Se déconnecter ")])])])):me("",!0)])):(q(),H("button",{key:1,onClick:t[3]||(t[3]=(...a)=>o.goToLogin&&o.goToLogin(...a)),class:"text-purple-500 border border-purple-500 px-4 py-2 rounded-lg hover:bg-purple-500 hover:text-white transition"}," Se connecter | S'inscrire "))]),m("div",_p,[m("button",{onClick:t[4]||(t[4]=a=>s.isMobileMenuOpen=!s.isMobileMenuOpen),class:"text-gray-500 hover:text-gray-300 focus:outline-none transition"},Ep)])])]),s.isMobileMenuOpen?(q(),H("div",Sp,[m("div",Rp,[ne(i,{to:"/",class:Ve(["block px-4 py-2 text-gray-300 hover:bg-darkblue rounded-lg transition",{"bg-darkblue":e.$route.path==="/"}])},{default:Ie(()=>[Te(" Conversations ")]),_:1},8,["class"]),s.userRole!=="professor"?(q(),kt(i,{key:0,to:"/professors",class:Ve(["block px-4 py-2 text-gray-300 hover:bg-darkblue rounded-lg transition",{"bg-darkblue":e.$route.path==="/professors"}])},{default:Ie(()=>[Te(" Professeurs ")]),_:1},8,["class"])):me("",!0),s.userRole==="admin"?(q(),kt(i,{key:1,to:"/adminPage",class:Ve(["block px-4 py-2 text-gray-300 hover:bg-darkblue rounded-lg transition",{"bg-darkblue":e.$route.path==="/adminPage"}])},{default:Ie(()=>[Te(" Admin ")]),_:1},8,["class"])):me("",!0),s.isAuthenticated?(q(),kt(i,{key:2,to:"/profileParameter",class:"block px-4 py-2 text-gray-300 hover:bg-darkblue rounded-lg transition"},{default:Ie(()=>[Te(" Mon Profil ")]),_:1})):me("",!0)]),s.isAuthenticated?(q(),H("div",Tp,[m("button",{onClick:t[5]||(t[5]=(...a)=>o.logout&&o.logout(...a)),class:"block w-full text-left px-4 py-2 text-gray-300 hover:bg-darkblue transition"}," Se déconnecter ")])):(q(),H("div",Ap,[m("button",{onClick:t[6]||(t[6]=(...a)=>o.goToLogin&&o.goToLogin(...a)),class:"block w-full text-left px-4 py-2 text-gray-300 hover:bg-darkblue transition"}," Se connecter "),m("button",{onClick:t[7]||(t[7]=(...a)=>o.goToSignup&&o.goToSignup(...a)),class:"block w-full text-left px-4 py-2 bg-purple-500 text-white hover:bg-purple-600 transition rounded-lg"}," S'inscrire ")]))])):me("",!0)])}const Xt=pt(ap,[["render",Cp],["__scopeId","data-v-34ce379f"]]),Jr="https://app.academ.my:5000",kp={name:"AdminDashboard",data(){return{name:"",email:"",password:"",subject:"",bio:"",totalAppointments:0,totalUsers:0,totalConversations:0}},methods:{async fetchStats(){var e;try{const t=localStorage.getItem("token");if(!t){alert("Vous devez être connecté pour consulter les statistiques.");return}const[r,n,s]=await Promise.all([ee.get(`${Jr}/api/statistics/appointments`,{headers:{Authorization:`Bearer ${t}`}}),ee.get(`${Jr}/api/statistics/users`,{headers:{Authorization:`Bearer ${t}`}}),ee.get(`${Jr}/api/statistics/conversations`,{headers:{Authorization:`Bearer ${t}`}})]);this.totalAppointments=r.data.total,this.totalUsers=n.data.total,this.totalConversations=s.data.total}catch(t){console.error("Erreur lors de la récupération des statistiques:",((e=t.response)==null?void 0:e.data)||t.message),alert("Erreur lors de la récupération des statistiques.")}},async createProfessor(){var e;try{const t=localStorage.getItem("token");if(!t){alert("Vous devez être connecté pour effectuer cette action.");return}const r=await ee.post(`${Jr}/api/users/createProfessor`,{name:this.name,email:this.email,password:this.password,subject:this.subject,bio:this.bio},{headers:{Authorization:`Bearer ${t}`}});this.name="",this.email="",this.password="",this.subject="",this.bio="",alert("Professeur créé avec succès !"),this.fetchStats()}catch(t){console.error("Erreur lors de la création du professeur:",((e=t.response)==null?void 0:e.data)||t.message),alert("Erreur lors de la création du professeur. Veuillez réessayer.")}}},mounted(){this.fetchStats()}},Xe=e=>(Yt("data-v-9105ca6d"),e=e(),Gt(),e),Pp={class:"admin-dashboard p-8 min-h-screen text-white"},Op=Xe(()=>m("header",{class:"mb-8"},[m("h1",{class:"text-3xl font-bold bg-gradient-to-r from-purple-500 to-pink-500 bg-clip-text text-transparent"}," Tableau de Bord Administrateur "),m("p",{class:"text-gray-400"},"Vision d'ensemble et gestion des professeurs.")],-1)),Ip={class:"dashboard-content grid grid-cols-2 gap-8 md:grid-cols-1"},Np={class:"stats bg-gray-800 p-6 rounded-lg shadow-lg"},Lp=Xe(()=>m("h2",{class:"text-2xl font-bold bg-gradient-to-r from-purple-500 to-pink-500 bg-clip-text text-transparent mb-4"}," Statistiques ",-1)),$p={class:"stat-item mb-4"},Bp=Xe(()=>m("h3",{class:"text-xl font-semibold text-gray-300"},"Nombre de rendez-vous",-1)),Mp={class:"text-4xl font-bold text-purple-500"},Up={class:"stat-item mb-4"},qp=Xe(()=>m("h3",{class:"text-xl font-semibold text-gray-300"},"Nombre d'utilisateurs",-1)),Fp={class:"text-4xl font-bold text-purple-500"},Dp={class:"stat-item"},jp=Xe(()=>m("h3",{class:"text-xl font-semibold text-gray-300"},"Nombre de conversations",-1)),Hp={class:"text-4xl font-bold text-purple-500"},Vp={class:"create-professor p-6 rounded-lg shadow-lg w-full"},zp=Xe(()=>m("h2",{class:"text-2xl font-bold bg-gradient-to-r from-purple-500 to-pink-500 bg-clip-text text-transparent mb-4"}," Créer un nouveau professeur ",-1)),Wp={class:"mb-4"},Kp=Xe(()=>m("label",{for:"name",class:"block text-sm font-medium text-gray-300"},"Nom",-1)),Jp={class:"mb-4"},Yp=Xe(()=>m("label",{for:"email",class:"block text-sm font-medium text-gray-300"},"Email",-1)),Gp={class:"mb-4"},Xp=Xe(()=>m("label",{for:"password",class:"block text-sm font-medium text-gray-300"},"Mot de passe",-1)),Qp={class:"mb-4"},Zp=Xe(()=>m("label",{for:"subject",class:"block text-sm font-medium text-gray-300"},"Matière enseignée",-1)),em={class:"mb-4"},tm=Xe(()=>m("label",{for:"bio",class:"block text-sm font-medium text-gray-300"},"Biographie",-1)),rm=Xe(()=>m("button",{type:"submit",class:"w-full bg-gradient-to-r from-purple-500 to-pink-500 text-white py-3 rounded-lg shadow-md hover:shadow-lg transition"}," Créer le professeur ",-1));function nm(e,t,r,n,s,o){return q(),H("div",Pp,[Op,m("div",Ip,[m("div",Np,[Lp,m("div",$p,[Bp,m("p",Mp,ge(s.totalAppointments),1)]),m("div",Up,[qp,m("p",Fp,ge(s.totalUsers),1)]),m("div",Dp,[jp,m("p",Hp,ge(s.totalConversations),1)])]),m("div",Vp,[zp,m("form",{onSubmit:t[5]||(t[5]=bn((...i)=>o.createProfessor&&o.createProfessor(...i),["prevent"]))},[m("div",Wp,[Kp,Se(m("input",{"onUpdate:modelValue":t[0]||(t[0]=i=>s.name=i),type:"text",id:"name",class:"mt-2 p-3 w-full border border-gray-600 rounded-lg bg-transparent text-white focus:ring-2 focus:ring-purple-500 focus:outline-none",placeholder:"Nom du professeur",required:""},null,512),[[Re,s.name]])]),m("div",Jp,[Yp,Se(m("input",{"onUpdate:modelValue":t[1]||(t[1]=i=>s.email=i),type:"email",id:"email",class:"mt-2 p-3 w-full border border-gray-600 rounded-lg bg-transparent text-white focus:ring-2 focus:ring-purple-500 focus:outline-none",placeholder:"Email du professeur",required:""},null,512),[[Re,s.email]])]),m("div",Gp,[Xp,Se(m("input",{"onUpdate:modelValue":t[2]||(t[2]=i=>s.password=i),type:"password",id:"password",class:"mt-2 p-3 w-full border border-gray-600 rounded-lg bg-transparent text-white focus:ring-2 focus:ring-purple-500 focus:outline-none",placeholder:"Mot de passe du professeur",required:""},null,512),[[Re,s.password]])]),m("div",Qp,[Zp,Se(m("input",{"onUpdate:modelValue":t[3]||(t[3]=i=>s.subject=i),type:"text",id:"subject",class:"mt-2 p-3 w-full border border-gray-600 rounded-lg bg-transparent text-white focus:ring-2 focus:ring-purple-500 focus:outline-none",placeholder:"Matière enseignée",required:""},null,512),[[Re,s.subject]])]),m("div",em,[tm,Se(m("textarea",{"onUpdate:modelValue":t[4]||(t[4]=i=>s.bio=i),id:"bio",class:"mt-2 p-3 w-full border border-gray-600 rounded-lg bg-transparent text-white focus:ring-2 focus:ring-purple-500 focus:outline-none",placeholder:"Biographie du professeur",rows:"4",required:""},null,512),[[Re,s.bio]])]),rm],32)])])])}const sm=pt(kp,[["render",nm],["__scopeId","data-v-9105ca6d"]]),uo=e=>{if(!e)throw new Error("No token provided");const r=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),n=decodeURIComponent(atob(r).split("").map(function(s){return"%"+("00"+s.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(n)},om=()=>{const e=localStorage.getItem("token");if(e)try{const t=uo(e);return t&&t.user&&t.user.role?t.user.role:(console.warn("Le rôle n'est pas défini dans le token JWT."),null)}catch(t){return console.error("Erreur lors du décodage du token JWT:",t),null}else return console.warn("Aucun token JWT trouvé."),null},im={class:"home-container"},am={key:1},lm={__name:"AdminPage",setup(e){const t=pe("");return ur(()=>{const r=om();r?t.value=r:console.warn("Rôle non trouvé ou utilisateur non authentifié.")}),(r,n)=>(q(),H("div",im,[ne(Xt),t.value==="admin"?(q(),kt(sm,{key:0})):me("",!0),t.value?me("",!0):(q(),H("p",am,"Aucun rôle défini ou utilisateur non authentifié."))]))}},Ii="https://app.academ.my:5000",cm={data(){return{email:"",name:"",password:"",confirmPassword:"",error:"",isLogin:!0}},methods:{async login(){try{const e=await ee.post(`${Ii}/api/auth/login`,{email:this.email,password:this.password});localStorage.setItem("token",e.data.token),this.$router.push({name:"conversations"})}catch{this.error="Mot de passe ou Email incorrecte. Veuillez réessayer."}},async register(){if(this.password!==this.confirmPassword){this.error="Les mots de passe ne correspondent pas";return}try{const e=await ee.post(`${Ii}/api/auth/register`,{email:this.email,name:this.name,password:this.password});this.isLogin=!0,this.error=""}catch{this.error="Erreur lors de l'inscription. Veuillez réessayer."}}}},Dr=e=>(Yt("data-v-78f60703"),e=e(),Gt(),e),um={class:"auth-container flex justify-center items-center min-h-[100vh] text-gray-800"},fm={class:"auth-card p-4 rounded-lg w-full max-w-[400px] text-center"},dm=Dr(()=>m("img",{class:"w-1/5 mb-8 mx-auto",src:to,alt:"Logo"},null,-1)),hm={class:"mb-2 text-2xl font-semibold"},pm={class:"form-group"},mm=Dr(()=>m("label",{class:"label-form text-gray-600"},"Email:",-1)),gm={key:0,class:"form-group"},ym=Dr(()=>m("label",{class:"label-form text-gray-600"},"Pseudo:",-1)),bm={class:"form-group"},vm=Dr(()=>m("label",{class:"label-form text-gray-600"},"Mot de passe:",-1)),wm={key:1,class:"form-group"},_m=Dr(()=>m("label",{class:"label-form"},"Confirmer le mot de passe:",-1)),xm={type:"submit",class:"auth-button bg-purplee hover:bg-bluee text-white font-semibold p-2 w-full border-none rounded-lg cursor-pointer"},Em={key:0,class:"error text-red mt-1"},Sm={class:"toggle-auth mt-8"};function Rm(e,t,r,n,s,o){return q(),H("div",um,[m("div",fm,[dm,m("h2",hm,ge(s.isLogin?"CONNEXION":"INSCRIPTION"),1),m("form",{onSubmit:t[4]||(t[4]=bn(i=>s.isLogin?o.login():o.register(),["prevent"]))},[m("div",pm,[mm,Se(m("input",{type:"email","onUpdate:modelValue":t[0]||(t[0]=i=>s.email=i),class:"bg-transparent",placeholder:"Entrez votre email",required:""},null,512),[[Re,s.email]])]),s.isLogin?me("",!0):(q(),H("div",gm,[ym,Se(m("input",{type:"text","onUpdate:modelValue":t[1]||(t[1]=i=>s.name=i),class:"bg-transparent",placeholder:"Entrez votre pseudo",required:""},null,512),[[Re,s.name]])])),m("div",bm,[vm,Se(m("input",{type:"password","onUpdate:modelValue":t[2]||(t[2]=i=>s.password=i),class:"bg-transparent",placeholder:"Entrez votre mot de passe",required:""},null,512),[[Re,s.password]])]),s.isLogin?me("",!0):(q(),H("div",wm,[_m,Se(m("input",{type:"password","onUpdate:modelValue":t[3]||(t[3]=i=>s.confirmPassword=i),class:"bg-transparent",placeholder:"Confirmez votre mot de passe",required:""},null,512),[[Re,s.confirmPassword]])])),m("button",xm,ge(s.isLogin?"Se connecter":"S'inscrire"),1)],32),s.error?(q(),H("p",Em,ge(s.error),1)):me("",!0),m("p",Sm,[Te(ge(s.isLogin?"Pas de compte ?":"Déjà un compte ?")+" ",1),m("a",{class:"text-fuchsia-400 hover:underline",href:"#",onClick:t[5]||(t[5]=bn(i=>s.isLogin=!s.isLogin,["prevent"]))},ge(s.isLogin?"S'inscrire":"Se connecter"),1)])])])}const Tm=pt(cm,[["render",Rm],["__scopeId","data-v-78f60703"]]),Am="https://app.academ.my:5000",Cm=async()=>{try{return(await ee.get(`${Am}/api/users/professors`)).data}catch(e){throw console.error("Erreur lors de la récupération des professeurs :",e),e}},jn=e=>(Yt("data-v-24f3bd5a"),e=e(),Gt(),e),km={class:"professors-container p-8 m-4 rounded-lg min-h-screen border-3 border-darkgray"},Pm=jn(()=>m("h1",{class:"text-3xl font-bold bg-gradient-to-r from-purple-500 to-pink-500 bg-clip-text text-transparent mb-8"},"Trouvez votre professeur",-1)),Om={class:"mb-8"},Im={key:0,class:"flex justify-center w-full h-full flex-wrap gap-6"},Nm={class:"flex items-center gap-3"},Lm=["src"],$m={class:"text-3xl font-bold bg-gradient-to-r from-purple-500 to-pink-500 bg-clip-text text-transparent"},Bm={class:"biography-container flex items-begin gap-2"},Mm=jn(()=>m("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[m("path",{fill:"#a464d4",d:"M18 22.116q-1.671 0-2.835-1.165Q14 19.787 14 18.116t1.165-2.836T18 14.116t2.836 1.164T22 18.116q0 1.67-1.164 2.835Q19.67 22.116 18 22.116M7.5 8.73h9v-1h-9zM11.521 20H5.616q-.672 0-1.144-.472T4 18.385V5.615q0-.67.472-1.143Q4.944 4 5.616 4h12.769q.67 0 1.143.472q.472.472.472 1.144v5.95q-.494-.158-.991-.247q-.498-.088-1.009-.088q-.506 0-.984.08q-.477.08-.939.226V11.5H7.5v1h6.587q-.758.521-1.332 1.223t-.945 1.546H7.5v1h3.96q-.108.423-.169.853q-.06.43-.06.878q0 .46.054 1.009t.236.991M18 18.116q.625 0 1.063-.438t.437-1.062t-.437-1.063T18 15.116t-1.062.437t-.438 1.063t.438 1.062t1.062.438m0 3q.75 0 1.4-.35t1.075-.975q-.575-.35-1.2-.513T18 19.116t-1.275.162t-1.2.513q.425.624 1.075.974t1.4.35"})],-1)),Um={class:"text-white inline-block max-w-[70%] break-words truncate"},qm={class:"biography-container flex items-begin gap-2"},Fm=jn(()=>m("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[m("path",{fill:"#a464d4",d:"M8 12h8v-2H8zm0-4h8V6H8zm11.95 12.475L15.9 15.2q-.425-.575-1.05-.887T13.5 14H4V4q0-.825.588-1.412T6 2h12q.825 0 1.413.588T20 4v16q0 .125-.012.238t-.038.237M6 22q-.825 0-1.412-.587T4 20v-4h9.5q.25 0 .463.113t.362.312l4.2 5.5q-.125.05-.262.063T18 22z"})],-1)),Dm={class:"text-white"},jm=["onClick"],Hm={key:1,class:"text-white"},Vm=jn(()=>m("p",null,"Aucun professeur trouvé.",-1)),zm=[Vm],Wm={__name:"Professors",setup(e){const t="https://app.academ.my:5000",r=pe([]),n=pe(""),s=pe(null),o=nl();ur(async()=>{try{const c=await Cm();r.value=c}catch{s.value="Erreur lors de la récupération des professeurs"}});const a=Le(()=>r.value.filter(c=>{const u=n.value.toLowerCase();return c.name.toLowerCase().includes(u)||c.subject.toLowerCase().includes(u)})),l=c=>{o.push({name:"professorDetail",params:{id:c}})};return(c,u)=>(q(),H(_e,null,[ne(Xt),m("div",km,[Pm,m("div",Om,[Se(m("input",{"onUpdate:modelValue":u[0]||(u[0]=d=>n.value=d),type:"text",placeholder:"Rechercher par nom ou matière",class:"p-3 w-full border border-lightgray bg-transparent rounded-md focus:outline-none focus:ring-2 focus:darkgray text-white"},null,512),[[Re,n.value]])]),a.value.length>0?(q(),H("div",Im,[(q(!0),H(_e,null,rn(a.value,d=>(q(),H("div",{key:d._id,class:"professor-card gradient relative flex flex-col gap-3 p-4 w-[400px] h-[200px] rounded-lg shadow-md hover:shadow-lg transition-shadow duration-200"},[m("div",Nm,[m("img",{src:d.profilePicture?`${Ae(t)}/uploads/${d.profilePicture}`:"../assets/profil/default.webp",alt:"ProfileProfessor",class:"w-10 h-10 rounded-full border border-gray-300"},null,8,Lm),m("h2",$m,ge(d.name),1)]),m("div",Bm,[Mm,m("p",Um,ge(d.bio),1)]),m("div",qm,[Fm,m("p",Dm,ge(d.subject),1)]),m("button",{onClick:p=>l(d._id),class:"p-1 w-fit absolute right-2 bottom-2 bg-gradient-to-r from-purple-500 to-pink-500 text-white px-6 py-2 rounded-lg shadow-md hover:shadow-lg transition"},"Voir le détail",8,jm)]))),128))])):(q(),H("div",Hm,zm))])],64))}},Km=pt(Wm,[["__scopeId","data-v-24f3bd5a"]]),fo=e=>(Yt("data-v-bbe7fcd9"),e=e(),Gt(),e),Jm={class:"min-h-screen"},Ym={key:0,class:"professor-detail bg-gray-900 p-8 rounded-lg shadow-lg relative max-w-2xl mx-auto text-white pb-16"},Gm=fo(()=>m("path",{fill:"currentColor",d:"m7.825 13l4.9 4.9q.3.3.288.7t-.313.7q-.3.275-.7.288t-.7-.288l-6.6-6.6q-.15-.15-.213-.325T4.426 12t.063-.375t.212-.325l6.6-6.6q.275-.275.688-.275t.712.275q.3.3.3.713t-.3.712L7.825 11H19q.425 0 .713.288T20 12t-.288.713T19 13z"},null,-1)),Xm=[Gm],Qm={class:"text-2xl font-bold bg-gradient-to-r from-purple-500 to-pink-500 bg-clip-text text-transparent mb-4"},Zm={class:"mb-2"},eg=fo(()=>m("strong",{class:"text-purple-500"},"Matière :",-1)),tg={class:"mb-2 w-fit"},rg=fo(()=>m("strong",{class:"text-purple-500"},[Te("Biographie : "),m("br")],-1)),ng={class:"inline-block max-w-[70%] break-words"},sg={__name:"professorDetail",setup(e){var d,p;const t=localStorage.getItem("token");let r=null,n=null;if(t){const g=uo(t);r=(d=g==null?void 0:g.user)==null?void 0:d.id,n=(p=g==null?void 0:g.user)==null?void 0:p.role,console.log("User ID récupéré depuis le token:",r),console.log("User Role récupéré depuis le token:",n)}else console.error("Aucun token JWT trouvé.");const s=Od(),o=nl(),i=s.params.id,a=pe(null),l="https://app.academ.my:5000";ur(async()=>{try{const g=await ee.get(`${l}/api/users/${i}`);console.log("Données du professeur récupérées :",g.data),a.value=g.data}catch(g){console.error("Erreur lors de la récupération du professeur:",g)}console.log("Professeur ID :",i)});const c=()=>{o.push({name:"professors"})},u=async g=>{if(!r||!g){alert("Utilisateur ou professeur non trouvé.");return}console.log("User ID:",r),console.log("Professor ID:",g);try{const v=await ee.post(`${l}/api/conversations`,{participants:[r,g]});o.push({name:"conversations"})}catch(v){console.error("Erreur lors de la création de la conversation:",v),alert("Erreur lors de la création de la conversation")}};return(g,v)=>(q(),H(_e,null,[ne(Xt),m("div",Jm,[a.value?(q(),H("div",Ym,[(q(),H("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:c,class:"mb-4 text-gray-400 cursor-pointer hover:text-gray-300 transition",width:"32",height:"32",viewBox:"0 0 24 24"},Xm)),m("h2",Qm,ge(a.value.name),1),m("p",Zm,[eg,Te(" "+ge(a.value.subject),1)]),m("p",tg,[rg,m("span",ng,ge(a.value.bio),1)]),a.value&&Ae(n)!=="professor"?(q(),H("button",{key:0,onClick:v[0]||(v[0]=E=>u(a.value._id)),class:"absolute bottom-4 right-4 bg-gradient-to-r from-purple-500 to-pink-500 text-white px-6 py-2 rounded-lg shadow-md hover:shadow-lg transition"}," Contacter ")):me("",!0)])):me("",!0)])],64))}},og=pt(sg,[["__scopeId","data-v-bbe7fcd9"]]);var Cl="https://js.stripe.com/v3",ig=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,Ni="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",ag=function(){for(var t=document.querySelectorAll('script[src^="'.concat(Cl,'"]')),r=0;r<t.length;r++){var n=t[r];if(ig.test(n.src))return n}return null},Li=function(t){var r="",n=document.createElement("script");n.src="".concat(Cl).concat(r);var s=document.head||document.body;if(!s)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return s.appendChild(n),n},lg=function(t,r){!t||!t._registerWrapper||t._registerWrapper({name:"stripe-js",version:"4.8.0",startTime:r})},vr=null,Yr=null,Gr=null,cg=function(t){return function(){t(new Error("Failed to load Stripe.js"))}},ug=function(t,r){return function(){window.Stripe?t(window.Stripe):r(new Error("Stripe.js not available"))}},fg=function(t){return vr!==null?vr:(vr=new Promise(function(r,n){if(typeof window>"u"||typeof document>"u"){r(null);return}if(window.Stripe&&t&&console.warn(Ni),window.Stripe){r(window.Stripe);return}try{var s=ag();if(s&&t)console.warn(Ni);else if(!s)s=Li(t);else if(s&&Gr!==null&&Yr!==null){var o;s.removeEventListener("load",Gr),s.removeEventListener("error",Yr),(o=s.parentNode)===null||o===void 0||o.removeChild(s),s=Li(t)}Gr=ug(r,n),Yr=cg(n),s.addEventListener("load",Gr),s.addEventListener("error",Yr)}catch(i){n(i);return}}),vr.catch(function(r){return vr=null,Promise.reject(r)}))},dg=function(t,r,n){if(t===null)return null;var s=t.apply(void 0,r);return lg(s,n),s},wr,kl=!1,Pl=function(){return wr||(wr=fg(null).catch(function(t){return wr=null,Promise.reject(t)}),wr)};Promise.resolve().then(function(){return Pl()}).catch(function(e){kl||console.warn(e)});var hg=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];kl=!0;var s=Date.now();return Pl().then(function(o){return dg(o,r,s)})};const ht=Object.create(null);ht.open="0";ht.close="1";ht.ping="2";ht.pong="3";ht.message="4";ht.upgrade="5";ht.noop="6";const un=Object.create(null);Object.keys(ht).forEach(e=>{un[ht[e]]=e});const Is={type:"error",data:"parser error"},Ol=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Il=typeof ArrayBuffer=="function",Nl=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,ho=({type:e,data:t},r,n)=>Ol&&t instanceof Blob?r?n(t):$i(t,n):Il&&(t instanceof ArrayBuffer||Nl(t))?r?n(t):$i(new Blob([t]),n):n(ht[e]+(t||"")),$i=(e,t)=>{const r=new FileReader;return r.onload=function(){const n=r.result.split(",")[1];t("b"+(n||""))},r.readAsDataURL(e)};function Bi(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let is;function pg(e,t){if(Ol&&e.data instanceof Blob)return e.data.arrayBuffer().then(Bi).then(t);if(Il&&(e.data instanceof ArrayBuffer||Nl(e.data)))return t(Bi(e.data));ho(e,!1,r=>{is||(is=new TextEncoder),t(is.encode(r))})}const Mi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Er=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<Mi.length;e++)Er[Mi.charCodeAt(e)]=e;const mg=e=>{let t=e.length*.75,r=e.length,n,s=0,o,i,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const c=new ArrayBuffer(t),u=new Uint8Array(c);for(n=0;n<r;n+=4)o=Er[e.charCodeAt(n)],i=Er[e.charCodeAt(n+1)],a=Er[e.charCodeAt(n+2)],l=Er[e.charCodeAt(n+3)],u[s++]=o<<2|i>>4,u[s++]=(i&15)<<4|a>>2,u[s++]=(a&3)<<6|l&63;return c},gg=typeof ArrayBuffer=="function",po=(e,t)=>{if(typeof e!="string")return{type:"message",data:Ll(e,t)};const r=e.charAt(0);return r==="b"?{type:"message",data:yg(e.substring(1),t)}:un[r]?e.length>1?{type:un[r],data:e.substring(1)}:{type:un[r]}:Is},yg=(e,t)=>{if(gg){const r=mg(e);return Ll(r,t)}else return{base64:!0,data:e}},Ll=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},$l="",bg=(e,t)=>{const r=e.length,n=new Array(r);let s=0;e.forEach((o,i)=>{ho(o,!1,a=>{n[i]=a,++s===r&&t(n.join($l))})})},vg=(e,t)=>{const r=e.split($l),n=[];for(let s=0;s<r.length;s++){const o=po(r[s],t);if(n.push(o),o.type==="error")break}return n};function wg(){return new TransformStream({transform(e,t){pg(e,r=>{const n=r.length;let s;if(n<126)s=new Uint8Array(1),new DataView(s.buffer).setUint8(0,n);else if(n<65536){s=new Uint8Array(3);const o=new DataView(s.buffer);o.setUint8(0,126),o.setUint16(1,n)}else{s=new Uint8Array(9);const o=new DataView(s.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(n))}e.data&&typeof e.data!="string"&&(s[0]|=128),t.enqueue(s),t.enqueue(r)})}})}let as;function Xr(e){return e.reduce((t,r)=>t+r.length,0)}function Qr(e,t){if(e[0].length===t)return e.shift();const r=new Uint8Array(t);let n=0;for(let s=0;s<t;s++)r[s]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),r}function _g(e,t){as||(as=new TextDecoder);const r=[];let n=0,s=-1,o=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if(Xr(r)<1)break;const l=Qr(r,1);o=(l[0]&128)===128,s=l[0]&127,s<126?n=3:s===126?n=1:n=2}else if(n===1){if(Xr(r)<2)break;const l=Qr(r,2);s=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),n=3}else if(n===2){if(Xr(r)<8)break;const l=Qr(r,8),c=new DataView(l.buffer,l.byteOffset,l.length),u=c.getUint32(0);if(u>Math.pow(2,21)-1){a.enqueue(Is);break}s=u*Math.pow(2,32)+c.getUint32(4),n=3}else{if(Xr(r)<s)break;const l=Qr(r,s);a.enqueue(po(o?l:as.decode(l),t)),n=0}if(s===0||s>e){a.enqueue(Is);break}}}})}const Bl=4;function ve(e){if(e)return xg(e)}function xg(e){for(var t in ve.prototype)e[t]=ve.prototype[t];return e}ve.prototype.on=ve.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};ve.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};ve.prototype.off=ve.prototype.removeListener=ve.prototype.removeAllListeners=ve.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var n,s=0;s<r.length;s++)if(n=r[s],n===t||n.fn===t){r.splice(s,1);break}return r.length===0&&delete this._callbacks["$"+e],this};ve.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,s=r.length;n<s;++n)r[n].apply(this,t)}return this};ve.prototype.emitReserved=ve.prototype.emit;ve.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};ve.prototype.hasListeners=function(e){return!!this.listeners(e).length};const Hn=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,r)=>r(t,0),Ye=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Eg="arraybuffer";function Ml(e,...t){return t.reduce((r,n)=>(e.hasOwnProperty(n)&&(r[n]=e[n]),r),{})}const Sg=Ye.setTimeout,Rg=Ye.clearTimeout;function Vn(e,t){t.useNativeTimers?(e.setTimeoutFn=Sg.bind(Ye),e.clearTimeoutFn=Rg.bind(Ye)):(e.setTimeoutFn=Ye.setTimeout.bind(Ye),e.clearTimeoutFn=Ye.clearTimeout.bind(Ye))}const Tg=1.33;function Ag(e){return typeof e=="string"?Cg(e):Math.ceil((e.byteLength||e.size)*Tg)}function Cg(e){let t=0,r=0;for(let n=0,s=e.length;n<s;n++)t=e.charCodeAt(n),t<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(n++,r+=4);return r}function Ul(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function kg(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function Pg(e){let t={},r=e.split("&");for(let n=0,s=r.length;n<s;n++){let o=r[n].split("=");t[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return t}class Og extends Error{constructor(t,r,n){super(t),this.description=r,this.context=n,this.type="TransportError"}}class mo extends ve{constructor(t){super(),this.writable=!1,Vn(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,r,n){return super.emitReserved("error",new Og(t,r,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const r=po(t,this.socket.binaryType);this.onPacket(r)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,r={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const r=kg(t);return r.length?"?"+r:""}}class Ig extends mo{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const r=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let n=0;this._polling&&(n++,this.once("pollComplete",function(){--n||r()})),this.writable||(n++,this.once("drain",function(){--n||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const r=n=>{if(this.readyState==="opening"&&n.type==="open"&&this.onOpen(),n.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(n)};vg(t,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,bg(t,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=Ul()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(t,r)}}let ql=!1;try{ql=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Ng=ql;function Lg(){}class $g extends Ig{constructor(t){if(super(t),typeof location<"u"){const r=location.protocol==="https:";let n=location.port;n||(n=r?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||n!==t.port}}doWrite(t,r){const n=this.request({method:"POST",data:t});n.on("success",r),n.on("error",(s,o)=>{this.onError("xhr post error",s,o)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(r,n)=>{this.onError("xhr poll error",r,n)}),this.pollXhr=t}}let or=class fn extends ve{constructor(t,r,n){super(),this.createRequest=t,Vn(this,n),this._opts=n,this._method=n.method||"GET",this._uri=r,this._data=n.data!==void 0?n.data:null,this._create()}_create(){var t;const r=Ml(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;const n=this._xhr=this.createRequest(r);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let s in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(s)&&n.setRequestHeader(s,this._opts.extraHeaders[s])}}catch{}if(this._method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var s;n.readyState===3&&((s=this._opts.cookieJar)===null||s===void 0||s.parseCookies(n.getResponseHeader("set-cookie"))),n.readyState===4&&(n.status===200||n.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof n.status=="number"?n.status:0)},0))},n.send(this._data)}catch(s){this.setTimeoutFn(()=>{this._onError(s)},0);return}typeof document<"u"&&(this._index=fn.requestsCount++,fn.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=Lg,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete fn.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};or.requestsCount=0;or.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Ui);else if(typeof addEventListener=="function"){const e="onpagehide"in Ye?"pagehide":"unload";addEventListener(e,Ui,!1)}}function Ui(){for(let e in or.requests)or.requests.hasOwnProperty(e)&&or.requests[e].abort()}const Bg=function(){const e=Fl({xdomain:!1});return e&&e.responseType!==null}();class Mg extends $g{constructor(t){super(t);const r=t&&t.forceBase64;this.supportsBinary=Bg&&!r}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new or(Fl,this.uri(),t)}}function Fl(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||Ng))return new XMLHttpRequest}catch{}if(!t)try{return new Ye[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Dl=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Ug extends mo{get name(){return"websocket"}doOpen(){const t=this.uri(),r=this.opts.protocols,n=Dl?{}:Ml(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,r,n)}catch(s){return this.emitReserved("error",s)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let r=0;r<t.length;r++){const n=t[r],s=r===t.length-1;ho(n,this.supportsBinary,o=>{try{this.doWrite(n,o)}catch{}s&&Hn(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=Ul()),this.supportsBinary||(r.b64=1),this.createUri(t,r)}}const ls=Ye.WebSocket||Ye.MozWebSocket;class qg extends Ug{createSocket(t,r,n){return Dl?new ls(t,r,n):r?new ls(t,r):new ls(t)}doWrite(t,r){this.ws.send(r)}}class Fg extends mo{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const r=_g(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=t.readable.pipeThrough(r).getReader(),s=wg();s.readable.pipeTo(t.writable),this._writer=s.writable.getWriter();const o=()=>{n.read().then(({done:a,value:l})=>{a||(this.onPacket(l),o())}).catch(a=>{})};o();const i={type:"open"};this.query.sid&&(i.data=`{"sid":"${this.query.sid}"}`),this._writer.write(i).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let r=0;r<t.length;r++){const n=t[r],s=r===t.length-1;this._writer.write(n).then(()=>{s&&Hn(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}}const Dg={websocket:qg,webtransport:Fg,polling:Mg},jg=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Hg=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Ns(e){if(e.length>8e3)throw"URI too long";const t=e,r=e.indexOf("["),n=e.indexOf("]");r!=-1&&n!=-1&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let s=jg.exec(e||""),o={},i=14;for(;i--;)o[Hg[i]]=s[i]||"";return r!=-1&&n!=-1&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=Vg(o,o.path),o.queryKey=zg(o,o.query),o}function Vg(e,t){const r=/\/{2,9}/g,n=t.replace(r,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&n.splice(0,1),t.slice(-1)=="/"&&n.splice(n.length-1,1),n}function zg(e,t){const r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,s,o){s&&(r[s]=o)}),r}const Ls=typeof addEventListener=="function"&&typeof removeEventListener=="function",dn=[];Ls&&addEventListener("offline",()=>{dn.forEach(e=>e())},!1);class It extends ve{constructor(t,r){if(super(),this.binaryType=Eg,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(r=t,t=null),t){const n=Ns(t);r.hostname=n.host,r.secure=n.protocol==="https"||n.protocol==="wss",r.port=n.port,n.query&&(r.query=n.query)}else r.host&&(r.hostname=Ns(r.host).host);Vn(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(n=>{const s=n.prototype.name;this.transports.push(s),this._transportsByName[s]=n}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Pg(this.opts.query)),Ls&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},dn.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){const r=Object.assign({},this.opts.query);r.EIO=Bl,r.transport=t,this.id&&(r.sid=this.id);const n=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const t=this.opts.rememberUpgrade&&It.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const r=this.createTransport(t);r.open(),this.setTransport(r)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",It.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const r=new Error("server error");r.code=t.data,this._onError(r);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let n=0;n<this.writeBuffer.length;n++){const s=this.writeBuffer[n].data;if(s&&(r+=Ag(s)),n>0&&r>this._maxPayload)return this.writeBuffer.slice(0,n);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,Hn(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,r,n){return this._sendPacket("message",t,r,n),this}send(t,r,n){return this._sendPacket("message",t,r,n),this}_sendPacket(t,r,n,s){if(typeof r=="function"&&(s=r,r=void 0),typeof n=="function"&&(s=n,n=null),this.readyState==="closing"||this.readyState==="closed")return;n=n||{},n.compress=n.compress!==!1;const o={type:t,data:r,options:n};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),s&&this.once("flush",s),this.flush()}close(){const t=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),t()},n=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():t()}):this.upgrading?n():t()),this}_onError(t){if(It.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Ls&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const n=dn.indexOf(this._offlineEventListener);n!==-1&&dn.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this._prevBufferLen=0}}}It.protocol=Bl;class Wg extends It{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let r=this.createTransport(t),n=!1;It.priorWebsocketSuccess=!1;const s=()=>{n||(r.send([{type:"ping",data:"probe"}]),r.once("packet",d=>{if(!n)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;It.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{n||this.readyState!=="closed"&&(u(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{const p=new Error("probe error");p.transport=r.name,this.emitReserved("upgradeError",p)}}))};function o(){n||(n=!0,u(),r.close(),r=null)}const i=d=>{const p=new Error("probe error: "+d);p.transport=r.name,o(),this.emitReserved("upgradeError",p)};function a(){i("transport closed")}function l(){i("socket closed")}function c(d){r&&d.name!==r.name&&o()}const u=()=>{r.removeListener("open",s),r.removeListener("error",i),r.removeListener("close",a),this.off("close",l),this.off("upgrading",c)};r.once("open",s),r.once("error",i),r.once("close",a),this.once("close",l),this.once("upgrading",c),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{n||r.open()},200):r.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const r=[];for(let n=0;n<t.length;n++)~this.transports.indexOf(t[n])&&r.push(t[n]);return r}}let Kg=class extends Wg{constructor(t,r={}){const n=typeof t=="object"?t:r;(!n.transports||n.transports&&typeof n.transports[0]=="string")&&(n.transports=(n.transports||["polling","websocket","webtransport"]).map(s=>Dg[s]).filter(s=>!!s)),super(t,n)}};function Jg(e,t="",r){let n=e;r=r||typeof location<"u"&&location,e==null&&(e=r.protocol+"//"+r.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=r.protocol+e:e=r.host+e),/^(https?|wss?):\/\//.test(e)||(typeof r<"u"?e=r.protocol+"//"+e:e="https://"+e),n=Ns(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";const o=n.host.indexOf(":")!==-1?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+o+":"+n.port+t,n.href=n.protocol+"://"+o+(r&&r.port===n.port?"":":"+n.port),n}const Yg=typeof ArrayBuffer=="function",Gg=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,jl=Object.prototype.toString,Xg=typeof Blob=="function"||typeof Blob<"u"&&jl.call(Blob)==="[object BlobConstructor]",Qg=typeof File=="function"||typeof File<"u"&&jl.call(File)==="[object FileConstructor]";function go(e){return Yg&&(e instanceof ArrayBuffer||Gg(e))||Xg&&e instanceof Blob||Qg&&e instanceof File}function hn(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,n=e.length;r<n;r++)if(hn(e[r]))return!0;return!1}if(go(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return hn(e.toJSON(),!0);for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&hn(e[r]))return!0;return!1}function Zg(e){const t=[],r=e.data,n=e;return n.data=$s(r,t),n.attachments=t.length,{packet:n,buffers:t}}function $s(e,t){if(!e)return e;if(go(e)){const r={_placeholder:!0,num:t.length};return t.push(e),r}else if(Array.isArray(e)){const r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=$s(e[n],t);return r}else if(typeof e=="object"&&!(e instanceof Date)){const r={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=$s(e[n],t));return r}return e}function ey(e,t){return e.data=Bs(e.data,t),delete e.attachments,e}function Bs(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=Bs(e[r],t);else if(typeof e=="object")for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=Bs(e[r],t));return e}const ty=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],ry=5;var Q;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(Q||(Q={}));class ny{constructor(t){this.replacer=t}encode(t){return(t.type===Q.EVENT||t.type===Q.ACK)&&hn(t)?this.encodeAsBinary({type:t.type===Q.EVENT?Q.BINARY_EVENT:Q.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let r=""+t.type;return(t.type===Q.BINARY_EVENT||t.type===Q.BINARY_ACK)&&(r+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(r+=t.nsp+","),t.id!=null&&(r+=t.id),t.data!=null&&(r+=JSON.stringify(t.data,this.replacer)),r}encodeAsBinary(t){const r=Zg(t),n=this.encodeAsString(r.packet),s=r.buffers;return s.unshift(n),s}}function qi(e){return Object.prototype.toString.call(e)==="[object Object]"}class yo extends ve{constructor(t){super(),this.reviver=t}add(t){let r;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(t);const n=r.type===Q.BINARY_EVENT;n||r.type===Q.BINARY_ACK?(r.type=n?Q.EVENT:Q.ACK,this.reconstructor=new sy(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(go(t)||t.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(t),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let r=0;const n={type:Number(t.charAt(0))};if(Q[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===Q.BINARY_EVENT||n.type===Q.BINARY_ACK){const o=r+1;for(;t.charAt(++r)!=="-"&&r!=t.length;);const i=t.substring(o,r);if(i!=Number(i)||t.charAt(r)!=="-")throw new Error("Illegal attachments");n.attachments=Number(i)}if(t.charAt(r+1)==="/"){const o=r+1;for(;++r&&!(t.charAt(r)===","||r===t.length););n.nsp=t.substring(o,r)}else n.nsp="/";const s=t.charAt(r+1);if(s!==""&&Number(s)==s){const o=r+1;for(;++r;){const i=t.charAt(r);if(i==null||Number(i)!=i){--r;break}if(r===t.length)break}n.id=Number(t.substring(o,r+1))}if(t.charAt(++r)){const o=this.tryParse(t.substr(r));if(yo.isPayloadValid(n.type,o))n.data=o;else throw new Error("invalid payload")}return n}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,r){switch(t){case Q.CONNECT:return qi(r);case Q.DISCONNECT:return r===void 0;case Q.CONNECT_ERROR:return typeof r=="string"||qi(r);case Q.EVENT:case Q.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&ty.indexOf(r[0])===-1);case Q.ACK:case Q.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class sy{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const r=ey(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const oy=Object.freeze(Object.defineProperty({__proto__:null,Decoder:yo,Encoder:ny,get PacketType(){return Q},protocol:ry},Symbol.toStringTag,{value:"Module"}));function tt(e,t,r){return e.on(t,r),function(){e.off(t,r)}}const iy=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Hl extends ve{constructor(t,r,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=r,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[tt(t,"open",this.onopen.bind(this)),tt(t,"packet",this.onpacket.bind(this)),tt(t,"error",this.onerror.bind(this)),tt(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...r){var n,s,o;if(iy.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(r.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;const i={type:Q.EVENT,data:r};if(i.options={},i.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){const u=this.ids++,d=r.pop();this._registerAckCallback(u,d),i.id=u}const a=(s=(n=this.io.engine)===null||n===void 0?void 0:n.transport)===null||s===void 0?void 0:s.writable,l=this.connected&&!(!((o=this.io.engine)===null||o===void 0)&&o._hasPingExpired());return this.flags.volatile&&!a||(l?(this.notifyOutgoingListeners(i),this.packet(i)):this.sendBuffer.push(i)),this.flags={},this}_registerAckCallback(t,r){var n;const s=(n=this.flags.timeout)!==null&&n!==void 0?n:this._opts.ackTimeout;if(s===void 0){this.acks[t]=r;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===t&&this.sendBuffer.splice(a,1);r.call(this,new Error("operation has timed out"))},s),i=(...a)=>{this.io.clearTimeoutFn(o),r.apply(this,a)};i.withError=!0,this.acks[t]=i}emitWithAck(t,...r){return new Promise((n,s)=>{const o=(i,a)=>i?s(i):n(a);o.withError=!0,r.push(o),this.emit(t,...r)})}_addToQueue(t){let r;typeof t[t.length-1]=="function"&&(r=t.pop());const n={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((s,...o)=>n!==this._queue[0]?void 0:(s!==null?n.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(s)):(this._queue.shift(),r&&r(null,...o)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const r=this._queue[0];r.pending&&!t||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:Q.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(n=>String(n.id)===t)){const n=this.acks[t];delete this.acks[t],n.withError&&n.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case Q.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Q.EVENT:case Q.BINARY_EVENT:this.onevent(t);break;case Q.ACK:case Q.BINARY_ACK:this.onack(t);break;case Q.DISCONNECT:this.ondisconnect();break;case Q.CONNECT_ERROR:this.destroy();const n=new Error(t.data.message);n.data=t.data.data,this.emitReserved("connect_error",n);break}}onevent(t){const r=t.data||[];t.id!=null&&r.push(this.ack(t.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const r=this._anyListeners.slice();for(const n of r)n.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const r=this;let n=!1;return function(...s){n||(n=!0,r.packet({type:Q.ACK,id:t,data:s}))}}onack(t){const r=this.acks[t.id];typeof r=="function"&&(delete this.acks[t.id],r.withError&&t.data.unshift(null),r.apply(this,t.data))}onconnect(t,r){this.id=t,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Q.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const r=this._anyListeners;for(let n=0;n<r.length;n++)if(t===r[n])return r.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const r=this._anyOutgoingListeners;for(let n=0;n<r.length;n++)if(t===r[n])return r.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const r=this._anyOutgoingListeners.slice();for(const n of r)n.apply(this,t.data)}}}function pr(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}pr.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+r:e-r}return Math.min(e,this.max)|0};pr.prototype.reset=function(){this.attempts=0};pr.prototype.setMin=function(e){this.ms=e};pr.prototype.setMax=function(e){this.max=e};pr.prototype.setJitter=function(e){this.jitter=e};class Ms extends ve{constructor(t,r){var n;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(r=t,t=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,Vn(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((n=r.randomizationFactor)!==null&&n!==void 0?n:.5),this.backoff=new pr({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=t;const s=r.parser||oy;this.encoder=new s.Encoder,this.decoder=new s.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var r;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(r=this.backoff)===null||r===void 0||r.setMin(t),this)}randomizationFactor(t){var r;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(r=this.backoff)===null||r===void 0||r.setJitter(t),this)}reconnectionDelayMax(t){var r;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(r=this.backoff)===null||r===void 0||r.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new Kg(this.uri,this.opts);const r=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const s=tt(r,"open",function(){n.onopen(),t&&t()}),o=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},i=tt(r,"error",o);if(this._timeout!==!1){const a=this._timeout,l=this.setTimeoutFn(()=>{s(),o(new Error("timeout")),r.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(s),this.subs.push(i),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(tt(t,"ping",this.onping.bind(this)),tt(t,"data",this.ondata.bind(this)),tt(t,"error",this.onerror.bind(this)),tt(t,"close",this.onclose.bind(this)),tt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(r){this.onclose("parse error",r)}}ondecoded(t){Hn(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,r){let n=this.nsps[t];return n?this._autoConnect&&!n.active&&n.connect():(n=new Hl(this,t,r),this.nsps[t]=n),n}_destroy(t){const r=Object.keys(this.nsps);for(const n of r)if(this.nsps[n].active)return;this._close()}_packet(t){const r=this.encoder.encode(t);for(let n=0;n<r.length;n++)this.engine.write(r[n],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,r){var n;this.cleanup(),(n=this.engine)===null||n===void 0||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const r=this.backoff.duration();this._reconnecting=!0;const n=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(s=>{s?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",s)):t.onreconnect()}))},r);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const _r={};function pn(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const r=Jg(e,t.path||"/socket.io"),n=r.source,s=r.id,o=r.path,i=_r[s]&&o in _r[s].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||i;let l;return a?l=new Ms(n,t):(_r[s]||(_r[s]=new Ms(n,t)),l=_r[s]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(pn,{Manager:Ms,Socket:Hl,io:pn,connect:pn});const at=e=>(Yt("data-v-c36dc24c"),e=e(),Gt(),e),ay={class:"messenger-layout h-full flex text-white overflow-y-hidden mt-4 mx-4 gap-4 md:flex-col"},ly={class:"conversations-list w-1/4 p-4 rounded-lg h-[89.5vh] shadow-lg md:w-full md:h-fit md:max-h-[50vh] overflow-y-auto"},cy={class:"top-conversations-list-container flex items-center justify-between h-fit mb-4"},uy=at(()=>m("h1",{class:"text-2xl font-bold bg-gradient-to-r from-purple-500 to-pink-500 bg-clip-text text-transparent"}," Conversations ",-1)),fy=at(()=>m("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",class:"cursor-pointer text-gray-300 hover:text-purple-500 transition",viewBox:"0 0 21 21"},[m("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round"},[m("path",{d:"M10 4.5H5.5a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V11"}),m("path",{d:"M17.5 3.467a1.46 1.46 0 0 1-.017 2.05L10.5 12.5l-3 1l1-3l6.987-7.046a1.41 1.41 0 0 1 1.885-.104zm-2 2.033l.953 1"})])],-1)),dy=["onClick"],hy={class:"flex items-center gap-3"},py=["src"],my={class:"font-semibold text-white"},gy={class:"text-sm text-gray-400 truncate"},yy={key:0,class:"top-conversation-detail flex sticky top-0 items-center gap-3 p-4 border-b border-gray-700"},by=["src"],vy={class:"text-lg font-bold text-white"},wy={key:1,class:"flex-1 flex flex-col h-full"},_y={class:"messages-container flex-1 p-4 space-y-4"},xy=["src"],Ey={key:0,class:"typing-indicator text-gray-400 italic ml-5 flex items-end"},Sy=In('<svg xmlns="http://www.w3.org/2000/svg" class="text-gray-400 p t-1" width="20" height="20" viewBox="0 0 24 24" data-v-c36dc24c><circle cx="18" cy="12" r="0" fill="currentColor" data-v-c36dc24c><animate attributeName="r" begin=".67" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0" data-v-c36dc24c></animate></circle><circle cx="12" cy="12" r="0" fill="currentColor" data-v-c36dc24c><animate attributeName="r" begin=".33" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0" data-v-c36dc24c></animate></circle><circle cx="6" cy="12" r="0" fill="currentColor" data-v-c36dc24c><animate attributeName="r" begin="0" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0" data-v-c36dc24c></animate></circle></svg>',1),Ry={class:"message-input flex items-center gap-4 p-4"},Ty=at(()=>m("path",{fill:"currentColor",d:"M21.243 12.437a.5.5 0 0 0 0-.874l-2.282-1.268A75.5 75.5 0 0 0 4.813 4.231l-.665-.208A.5.5 0 0 0 3.5 4.5v5.75a.5.5 0 0 0 .474.5l1.01.053a44.4 44.4 0 0 1 7.314.998l.238.053c.053.011.076.033.089.05a.16.16 0 0 1 .029.096c0 .04-.013.074-.029.096c-.013.017-.036.039-.089.05l-.238.053a44.5 44.5 0 0 1-7.315.999l-1.01.053a.5.5 0 0 0-.473.499v5.75a.5.5 0 0 0 .65.477l.664-.208a75.5 75.5 0 0 0 14.147-6.064z"},null,-1)),Ay=[Ty],Cy={key:2,class:"flex-1 flex items-center justify-center text-gray-400"},ky=at(()=>m("p",null,"Sélectionnez une conversation pour commencer à discuter.",-1)),Py=[ky],Oy={key:0,class:"fixed inset-0 backdrop-blur-sm flex justify-center items-center z-50"},Iy={class:"modal-container border border-bordergray shadow-xl text-white p-6 rounded-lg w-96"},Ny=at(()=>m("h2",{class:"text-xl font-bold mb-4"},"Réserver une session",-1)),Ly=at(()=>m("p",{class:"mb-4 text-gray-300"},"Le paiement s'effectuera automatiquement une heure après le début du cours.",-1)),$y=at(()=>m("label",{class:"block mb-2"},"Date:",-1)),By=at(()=>m("label",{class:"block mb-2"},"Heure:",-1)),My={class:"custom-select"},Uy={key:0,class:"options-list -mt-[1.2rem] bg-darkgray shadow-lg max-h-48 overflow-y-auto"},qy=["onClick"],Fy=at(()=>m("label",{class:"block mb-2"},"Montant (€):",-1)),Dy=at(()=>m("label",{class:"block mb-2 text-white"},"Coordonnées bancaires:",-1)),jy=at(()=>m("div",{id:"card-element",class:"text-white mb-4"},null,-1)),Hy={__name:"Conversations",setup(e){const t="https://app.academ.my:5000",r="pk_test_51LmhGsHQanXHoJn0wBK5v2yQyHFdQ4KlSXSXZobDhxFPCrhVwWtCwWXvNIxjOQdi65riR24NEgQyY6Ck1UZkPqq800jtbOgNU8",n=pn(t),s=hg(r);let o;const i=pe(!1),a=pe(""),l=pe([]),c=pe(""),u=pe(null),d=pe(!1),p=pe(""),g=pe(""),v=pe(0);let E=!1;const R=pe(""),L={base:{color:"#ffffff",fontFamily:'"Helvetica Neue", Helvetica, sans-serif',fontSize:"16px","::placeholder":{color:"#d1d1d1"}},invalid:{color:"red",iconColor:"red"}},O=pe(!1),C=()=>{O.value=!O.value},J=j=>{g.value=j,O.value=!1};let D=null;const F=pe([...Array(24).keys()].flatMap(j=>[`${String(j).padStart(2,"0")}:00`,`${String(j).padStart(2,"0")}:30`])),Z=Le(()=>l.value.sort((j,z)=>new Date(z.updatedAt)-new Date(j.updatedAt))),ae=Le(()=>l.value.find(j=>j._id===u.value)),Je=pe(null),qe=pe(null),Fe=()=>{const j=qe.value;j&&(j.scrollTop=j.scrollHeight)},mt=async()=>{const j=localStorage.getItem("token");if(!j)return;const z=uo(j);D=z.user.id,a.value=z.user.role;try{const ue=await ee.get(`${t}/api/conversations/${D}`);l.value=ue.data.map(be=>{if(be.messages){const yt=be.messages.reduce((we,w)=>(we.some(I=>{var _,$;return I.text===w.text&&((_=I.sender)==null?void 0:_._id)===(($=w.sender)==null?void 0:$._id)&&I.createdAt===w.createdAt})||we.push(w),we),[]);be.messages=yt}return be}),Z.value.length>0&&De(Z.value[0]._id)}catch(ue){console.error("Erreur lors du chargement des conversations",ue)}},De=j=>{u.value=j;const z=l.value.find(ue=>ue._id===j);if(z){const ue=je(z.participants);ue&&(Je.value=ue,R.value=ue.stripeAccountId)}n.emit("join-conversation",j)},je=j=>j.find(z=>z._id!==D),gt=async()=>{if(c.value.trim()===""||!ae.value||E)return;E=!0;const j=c.value.trim();c.value="";try{const ue=(await ee.post(`${t}/api/conversations/${u.value}/message`,{senderId:D,text:j})).data;ae.value.messages.some(be=>be._id===ue._id)||ae.value.messages.push(ue),n.emit("new-message",{conversationId:u.value,message:ue}),Fe()}catch(z){console.error("Erreur lors de l'envoi du message",z)}finally{E=!1}},ye=async()=>{try{const j=await s;d.value=!0,setTimeout(()=>{o||(o=j.elements()),document.getElementById("card-element").children.length||o.create("card",{style:L}).mount("#card-element")},100)}catch(j){console.error("Erreur lors de l'ouverture de la modale de paiement :",j)}},se=async()=>{var j;try{if(!v.value||isNaN(v.value)||v.value<=0){alert("Veuillez entrer un montant valide.");return}const z={bookingDate:p.value,bookingTime:g.value,amount:Math.round(v.value*100),currency:"eur",professorStripeAccountId:R.value},ue=await ee.post(`${t}/api/booking/schedule-payment`,z);alert(ue.data.message),te()}catch(z){console.error("Erreur lors de la réservation :",((j=z.response)==null?void 0:j.data)||z.message),alert("Erreur lors de la réservation. Consultez la console pour plus de détails.")}},te=()=>{d.value=!1},Qe=()=>{u.value&&n.emit("typing",{conversationId:u.value,userId:D})},lt=()=>{u.value&&n.emit("stop-typing",{conversationId:u.value,userId:D})};return ur(()=>{mt(),Fe(),n.on("user-typing",j=>{j!==D&&(i.value=!0)}),n.on("user-stopped-typing",j=>{j!==D&&(i.value=!1)}),n.on("message-received",({conversationId:j,message:z})=>{const ue=l.value.find(be=>be._id===j);ue&&(ue.messages.some(be=>be._id===z._id)||ue.messages.push(z))})}),Ar([u,l],()=>{Fe()}),xa(()=>{Fe()}),(j,z)=>{var be,yt,we,w,I;const ue=fr("router-link");return q(),H(_e,null,[ne(Xt),m("div",ay,[m("div",ly,[m("div",cy,[uy,a.value!="professor"?(q(),kt(ue,{key:0,to:"professors"},{default:Ie(()=>[fy]),_:1})):me("",!0)]),(q(!0),H(_e,null,rn(Z.value,_=>{var $,X,le,f;return q(),H("div",{key:_==null?void 0:_._id,class:Ve(["conversation-item p-3 mb-3 rounded-lg cursor-pointer back hover:bg-darkblue transition",{"bg-gray-700":u.value===_._id}]),onClick:h=>De(_._id)},[m("div",hy,[m("img",{src:($=je(_==null?void 0:_.participants))!=null&&$.profilePicture?`${Ae(t)}/uploads/${je(_.participants).profilePicture}`:"../../assets/profil/default.webp",alt:"Profile",class:"w-10 h-10 rounded-full border border-gray-600"},null,8,py),m("h3",my,ge(je(_==null?void 0:_.participants).name),1)]),m("p",gy,ge((f=(le=_==null?void 0:_.messages)==null?void 0:le[((X=_==null?void 0:_.messages)==null?void 0:X.length)-1])==null?void 0:f.text),1)],10,dy)}),128))]),m("div",{ref_key:"messagesContainer",ref:qe,class:"conversation-detail w-3/4 rounded-lg relative h-[89.5vh] shadow-lg flex flex-col md:w-full"},[ae.value?(q(),H("div",yy,[m("img",{src:(yt=je((be=ae.value)==null?void 0:be.participants))!=null&&yt.profilePicture?`${Ae(t)}/uploads/${je((we=ae.value)==null?void 0:we.participants).profilePicture}`:"../../assets/profil/default.webp",alt:"Profile",class:"w-12 h-12 rounded-full border border-gray-600"},null,8,by),m("h2",vy,ge(je((w=ae.value)==null?void 0:w.participants).name),1),ae.value&&ae.value.messages.length>=15&&a.value!=="professor"?(q(),H("button",{key:0,onClick:ye,class:"ml-auto bg-gradient-to-r from-purple-500 to-pink-500 text-white px-4 py-2 rounded-lg shadow-md hover:shadow-lg transition"}," Réserver ")):me("",!0)])):me("",!0),ae.value?(q(),H("div",wy,[m("div",_y,[(q(!0),H(_e,null,rn((I=ae.value)==null?void 0:I.messages,_=>{var $,X,le,f,h,y,S;return q(),H("div",{key:_._id,class:Ve([{"justify-start":(($=_.sender)==null?void 0:$._id)!==Ae(D),"justify-end":((X=_.sender)==null?void 0:X._id)===Ae(D)},"flex items-center space-x-3"])},[((le=_.sender)==null?void 0:le._id)!==Ae(D)?(q(),H("img",{key:0,src:(f=_.sender)!=null&&f.profilePicture?`${Ae(t)}/uploads/${(h=_.sender)==null?void 0:h.profilePicture}`:"../../assets/profil/default.webp",alt:"Profile",class:"w-8 h-8 rounded-full border border-gray-600"},null,8,xy)):me("",!0),m("p",{class:Ve([{"back text-white p-3 rounded-lg":((y=_.sender)==null?void 0:y._id)!==Ae(D),"bg-gradient-to-r from-purple-500 to-pink-500 text-white p-3 rounded-lg":((S=_.sender)==null?void 0:S._id)===Ae(D)},"max-w-md break-words"])},ge(_==null?void 0:_.text),3)],2)}),128))]),i.value&&u.value?(q(),H("div",Ey,[Te(" L'autre utilisateur est en train d'écrire "),Sy])):me("",!0),m("div",Ry,[Se(m("input",{"onUpdate:modelValue":z[0]||(z[0]=_=>c.value=_),type:"text",placeholder:"Aa",class:"flex-1 back text-white p-3 rounded-lg focus:ring-2 focus:ring-purple-500 mb-0",onInput:Qe,onBlur:lt,onKeydown:cf(gt,["enter"])},null,544),[[Re,c.value]]),(q(),H("svg",{xmlns:"http://www.w3.org/2000/svg",onClick:gt,class:"cursor-pointer text-gray-400 hover:text-purple-500 transition",width:"35",height:"35",viewBox:"0 0 24 24"},Ay))])])):(q(),H("div",Cy,Py))],512),d.value?(q(),H("div",Oy,[m("div",Iy,[Ny,Ly,$y,Se(m("input",{type:"date","onUpdate:modelValue":z[1]||(z[1]=_=>p.value=_),class:"w-full p-2 mb-4 border rounded-md"},null,512),[[Re,p.value]]),By,m("div",My,[m("div",{class:"selected-option cursor-pointer",onClick:C},ge(g.value||"Sélectionnez une heure"),1),O.value?(q(),H("ul",Uy,[(q(!0),H(_e,null,rn(F.value,_=>(q(),H("li",{class:"option p-2 hover:bg-gray cursor-pointer",key:_,onClick:$=>J(_)},ge(_),9,qy))),128))])):me("",!0)]),Fy,Se(m("input",{type:"number","onUpdate:modelValue":z[2]||(z[2]=_=>v.value=_),class:"w-full p-2 mb-4 border rounded-md",min:"1",placeholder:"Entrer le montant"},null,512),[[Re,v.value,void 0,{number:!0}]]),Dy,jy,m("div",{class:"flex justify-end space-x-4"},[m("button",{onClick:te,class:"px-4 py-2 bg-gray-700 rounded hover:bg-gray-900"},"Annuler"),m("button",{onClick:se,class:"ml-auto bg-gradient-to-r from-purple-500 to-pink-500 text-white px-4 py-2 rounded-lg shadow-md hover:shadow-lg transition"},"Confirmer")])])])):me("",!0)])],64)}}},Vy=pt(Hy,[["__scopeId","data-v-c36dc24c"]]),Ut=e=>(Yt("data-v-72f1aaf5"),e=e(),Gt(),e),zy={class:"p-8 text-white"},Wy=Ut(()=>m("h1",{class:"text-3xl font-bold bg-gradient-to-r from-purple-500 to-pink-500 bg-clip-text text-transparent mb-8"}," Modifier le profil ",-1)),Ky={class:"form-group mb-6"},Jy=Ut(()=>m("label",{for:"name",class:"block text-sm font-medium text-gray-300"},"Nom",-1)),Yy={class:"form-group mb-6"},Gy=Ut(()=>m("label",{for:"email",class:"block text-sm font-medium text-gray-300"},"Email",-1)),Xy={class:"form-group mb-6"},Qy=Ut(()=>m("label",{for:"role",class:"block text-sm font-medium text-gray-300"},"Rôle",-1)),Zy={class:"form-group mb-6"},eb=Ut(()=>m("label",{for:"idStripe",class:"block text-sm font-medium text-gray-300"},"ID du compte Stripe",-1)),tb={class:"form-group mb-6"},rb=Ut(()=>m("label",{for:"password",class:"block text-sm font-medium text-gray-300"},"Mot de passe",-1)),nb={class:"form-group mb-6"},sb=Ut(()=>m("label",{for:"profilePicture",class:"block text-sm font-medium text-gray-300"},"Photo de profil",-1)),ob={key:0,class:"mb-6"},ib=["src"],ab=Ut(()=>m("button",{type:"submit",class:"w-full bg-gradient-to-r from-purple-500 to-pink-500 text-white py-3 rounded-lg shadow-md hover:shadow-lg transition"}," Mettre à jour le profil ",-1)),lb={__name:"profileParameter",setup(e){const t="https://app.academ.my:5000",r=pe({name:"",email:"",idstripe:"",password:""}),n=pe(null),s=pe(null),o=a=>{const l=a.target.files[0];if(l){n.value=l;const c=new FileReader;c.onload=u=>{s.value=u.target.result},c.readAsDataURL(l)}};ur(async()=>{try{const a=localStorage.getItem("token"),l=await ee.get(`${t}/api/users/profile`,{headers:{Authorization:`Bearer ${a}`}});l.data?(r.value.name=l.data.name||"",r.value.email=l.data.email||"",r.value.idstripe=l.data.stripeAccountId||"",r.value.role=l.data.role||"",s.value=l.data.profilePicture?`${t}/uploads/${l.data.profilePicture}`:"default-profile.png"):console.error("Aucune donnée utilisateur reçue.")}catch(a){console.error("Erreur lors de la récupération du profil utilisateur",a)}});const i=async()=>{const a=new FormData;a.append("name",r.value.name),a.append("email",r.value.email),r.value.password&&a.append("password",r.value.password),n.value&&a.append("profilePicture",n.value);try{const l=localStorage.getItem("token"),c=await ee.post(`${t}/api/users/updateProfile`,a,{headers:{"Content-Type":"multipart/form-data",Authorization:`Bearer ${l}`}});alert("Profil mis à jour avec succès")}catch(l){console.error("Erreur lors de la mise à jour du profil",l),alert("Erreur lors de la mise à jour du profil")}};return(a,l)=>(q(),H(_e,null,[ne(Xt),m("div",zy,[Wy,m("form",{onSubmit:bn(i,["prevent"]),class:"update-container p-6 rounded-lg shadow-lg max-w-xl mx-auto"},[m("div",Ky,[Jy,Se(m("input",{type:"text",id:"name","onUpdate:modelValue":l[0]||(l[0]=c=>r.value.name=c),class:"mt-2 p-3 w-full border border-gray-600 rounded-lg bg-transparent text-white focus:ring-2 focus:ring-purple-500 focus:outline-none"},null,512),[[Re,r.value.name]])]),m("div",Yy,[Gy,Se(m("input",{type:"email",id:"email","onUpdate:modelValue":l[1]||(l[1]=c=>r.value.email=c),class:"mt-2 p-3 w-full border border-gray-600 rounded-lg bg-transparent text-white focus:ring-2 focus:ring-purple-500 focus:outline-none"},null,512),[[Re,r.value.email]])]),m("div",Xy,[Qy,Se(m("input",{type:"text",id:"role","onUpdate:modelValue":l[2]||(l[2]=c=>r.value.role=c),readonly:"",class:"mt-2 p-3 w-full border border-gray-600 rounded-lg bg-transparent text-gray-400 focus:ring-2 focus:ring-purple-500 focus:outline-none cursor-not-allowed"},null,512),[[Re,r.value.role]])]),m("div",Zy,[eb,Se(m("input",{type:"text",id:"idStripe","onUpdate:modelValue":l[3]||(l[3]=c=>r.value.idstripe=c),readonly:"",class:"mt-2 p-3 w-full border border-gray-600 rounded-lg bg-transparent text-gray-400 focus:ring-2 focus:ring-purple-500 focus:outline-none cursor-not-allowed"},null,512),[[Re,r.value.idstripe]])]),m("div",tb,[rb,Se(m("input",{type:"password",id:"password","onUpdate:modelValue":l[4]||(l[4]=c=>r.value.password=c),placeholder:"Laissez vide pour ne pas changer",class:"mt-2 p-3 w-full border border-gray-600 rounded-lg bg-transparent text-white focus:ring-2 focus:ring-purple-500 focus:outline-none"},null,512),[[Re,r.value.password]])]),m("div",nb,[sb,m("input",{type:"file",id:"profilePicture",onChange:o,class:"mt-2 text-gray-300"},null,32)]),s.value?(q(),H("div",ob,[m("img",{src:s.value,alt:"Prévisualisation",class:"w-24 h-24 rounded-full mx-auto border-2 border-purple-500"},null,8,ib)])):me("",!0),ab],32)])],64))}},cb=pt(lb,[["__scopeId","data-v-72f1aaf5"]]),ub={components:{Navbar:Xt}},fb=In('<div class="privacyPolicy-container text-white p-24" data-v-faa7f2e8><h1 data-v-faa7f2e8>Privacy Policy</h1> At Imators, we are committed to protecting the privacy and security of our users. This Privacy Policy outlines the types of information we collect, how we use it, and the measures we take to safeguard your personal data. <h2 data-v-faa7f2e8>Data collection</h2> During any verification process, such as logging into your account or otherwise, we will be required to examine your IP address in order to track the location where the connection/action was performed. Our applications and services collect similar but more extensive information, such as e-mail address, surname, first name and age. This information, which complies with the GDPR and respects your privacy, is never shared with third-party services for commercial, sales or marketing purposes. Our services collect your information securely and delete it permanently each time you log off via the device you used to access our platforms, site or applications. <h2 data-v-faa7f2e8>How We Use Your Information</h2> We use the information we collect in a variety of ways to improve our services and provide an optimal user experience. Here is a detailed explanation of how we use your information: <ul data-v-faa7f2e8><li data-v-faa7f2e8>Service customization</li> One of the main advantages of collecting your IP address is that we can personalize the services we offer you. By knowing your IP address, we can identify your approximate geographical location and redirect you to services or pages that are most relevant to you. For example, if you're in a specific region, we may show you promotions or services that are available in your area. This personalization ensures that you see content that is relevant and useful to you, enhancing your overall user experience. <li data-v-faa7f2e8>Account creation and management</li> When you create a customer account with Imators, we associate your e-mail address and password with your IP address. This association enables us to offer you centralized management of all the devices connected to your account. This means you can easily track and control the connections of your various devices, ensuring enhanced security and simplified management. For example, if you connect from a new device, we can check whether the IP address matches the one we have registered and, if there is a discrepancy, alert you to any suspicious activity. <li data-v-faa7f2e8>Security and Fraud Prevention</li> Collecting your IP address also plays a crucial role in the security of your account. By monitoring IP addresses attempting to connect to your account, we are able to detect suspicious or unauthorized activity. For example, if we see attempts to connect from IP addresses in geographic regions that are unusual for your profile, we may take steps to protect your account, such as blocking access or requesting further verification. This continuous monitoring helps us to prevent fraud and proactively protect your personal information. <li data-v-faa7f2e8>Improving our Services</li> The information we collect is not only used to analyze customer visits or personalize services, but is also essential for the continuous improvement of our services. By studying browsing data and users' interactions with our site, we can identify which features are working well and which need adjustment. For example, if we find that a particular page has a high bounce rate, we can investigate to understand why users are leaving that page and make any necessary changes to improve its content or usability. <li data-v-faa7f2e8>Communication with Users</li> We also use your information to communicate directly with you. For example, we may send you e-mails to confirm your registration, inform you of important updates to our services, or send you promotions and special offers that may be of interest to you. Your e-mail address, combined with your IP address, enables us to personalize these communications and ensure that they are relevant to you. If you have any questions or concerns, you can contact us at any time, and we will use your information to provide you with the assistance you need. <li data-v-faa7f2e8>Compliance with Legal Obligations</li> Finally, we may need to share your information to comply with applicable laws and regulations. For example, if we receive a legal request to disclose your information from the relevant authorities, we may be obliged to provide this information. We are committed to respecting your rights and privacy while complying with legal and regulatory obligations. </ul><h2 data-v-faa7f2e8>Sharing Your Personal Information</h2> We share your personal information with third parties to help us use them effectively, as described above. This sharing allows us to improve our services and provide you with a better user experience. Here are some detailed examples of how and why we share your personal information: We use Google Analytics, a web analysis service provided by Google, to help us understand how our customers use our site. Google Analytics collects information such as the frequency of your visits to our site, the pages you view and the sites you visited before coming to our site. This information helps us analyze trends, administer the site, track users' movements around the site and gather demographic information about our user base as a whole. By learning more about our users' behavior, we can adjust our content and services to better meet your needs and preferences. We also share your personal information with third-party service providers who perform services on our behalf, such as processing payments, sending marketing emails, hosting our website, and analyzing data. These third-party service providers have access to your personal information only to the extent necessary to perform these tasks on our behalf and are contractually bound not to disclose or use your information for any other purpose. Finally, we may also share your personal information to comply with applicable laws and regulations. For example, we may disclose your personal information in response to a subpoena, search warrant or other lawful request for information that we receive from the appropriate authorities. We may also share your personal information to protect our rights, property or safety, as well as those of our users or third parties. In certain situations, it may be necessary to share your personal information to protect our rights and security and that of our users. For example, if we have reason to believe that you have violated our terms of use or committed fraud, we may share your information with the appropriate authorities or other relevant third parties to investigate such violations and take appropriate action. We may also share your personal information with our subsidiaries and affiliates in the course of our business operations. These entities use your information in the same way we do, in accordance with this Privacy Policy. This allows us to streamline our operations and ensure a consistent and integrated user experience across all our platforms and services. As part of our ongoing development, we may sell, buy, merge or reorganize our business or assets. As part of these transactions, users' personal information may be transferred as a business asset. In such cases, we will ensure that your personal information remains protected in accordance with this Privacy Policy and applicable laws. Occasionally, we may share aggregated or anonymous information with third parties for marketing, advertising, research or other purposes. This information does not identify you personally and is used to analyze trends, conduct demographic research and improve our services. In conclusion, the sharing of your personal information with third parties is done responsibly and only for legitimate reasons that aim to improve your user experience, comply with legal obligations and protect our rights and those of our users. We are committed to protecting your personal information and using it in a transparent and secure manner. <h2 data-v-faa7f2e8>Your Rights</h2> You have several rights regarding your personal information. We are committed to respecting and facilitating the exercise of these rights to ensure transparency and the protection of your data. Here is a detailed description of your rights and how you can exercise them: Access rights: You have the right to request access to the personal information we hold about you. This includes the right to receive a copy of this information and to know how it is used, processed, and shared. To exercise this right, you can contact us through the means provided below, and we will provide you with a copy of your personal information in a comprehensible and accessible format. Right of rectification: If you find that the personal information we hold about you is incorrect, incomplete, or outdated, you have the right to request its rectification. You can provide us with the necessary details to correct or complete this information, and we will ensure our records are updated accordingly. Right to erasure (Right to be forgotten): In certain circumstances, you have the right to request the deletion of your personal information. This includes situations where the data is no longer necessary for the purposes for which it was collected, where you withdraw your consent on which the processing is based, or where you object to the processing of your data and there are no overriding legitimate grounds for the processing. If you wish to exercise this right, please contact us, and we will take the necessary steps to delete your personal information from our systems. Right to Restrict Processing: You also have the right to request the restriction of the processing of your personal information in certain situations. This means you can ask us to suspend the use of your data, for example, if you contest the accuracy of the information or if you object to its processing. While we review your request, we will limit the processing of your personal information to specific purposes. Right to Data Portability: The right to data portability allows you to receive your personal information in a structured, commonly used, and machine-readable format and to transmit it to another data controller. This applies only to data that you have provided to us and that is processed by automated means based on your consent or the performance of a contract. If you wish to exercise this right, we will provide your personal information in a compatible format and facilitate its transfer to another data controller if technically possible. Right to object: You have the right to object to the processing of your personal information in certain circumstances. This includes cases where we process your data for legitimate interests or for direct marketing purposes. If you object to the processing of your data for legitimate interests, we will cease the processing unless we can demonstrate compelling legitimate grounds for the processing that override your rights and freedoms. If you object to processing for direct marketing purposes, we will immediately stop processing your data for these purposes. Right to Withdraw Consent: If the processing of your personal information is based on your consent, you have the right to withdraw this consent at any time. Withdrawing your consent does not affect the lawfulness of the processing based on consent before its withdrawal. To withdraw your consent, you can contact us via the means provided below, and we will stop processing your personal information accordingly. Right to file a complaint: If you believe your data protection rights have been violated, you have the right to file a complaint with the competent data protection authority. However, we encourage you to contact us first to resolve any concerns you may have. We take your concerns very seriously and will strive to resolve them fairly and promptly. <h2 data-v-faa7f2e8>Changes</h2> We may update this privacy policy from time to time in order to reflect, for example, changes to our practices or for other operational, legal, or regulatory reasons. You will be informed by e-mail if you have a customer account with us. <h2 data-v-faa7f2e8>Contact Us</h2> Questions about this privacy policy? <a class="cursor-pointer text-[#dfa8ff]" href="mailto:contact@imators.com" target="_blank" data-v-faa7f2e8>Contact us</a> for more ways to reach us. </div>',1);function db(e,t,r,n,s,o){const i=fr("Navbar");return q(),H(_e,null,[ne(i),fb],64)}const hb=pt(ub,[["render",db],["__scopeId","data-v-faa7f2e8"]]),pb={components:{Navbar:Xt}},mb=In('<div class="termsofUse-container text-white p-24" data-v-de3ea441><h1 data-v-de3ea441>Terms of Use</h1> Welcome to Imators! These Terms of Use ("Terms") govern your access to and use of our services, including our websites, applications, and other offerings (collectively, the "Services"). By accessing or using our Services, you agree to be bound by these Terms. If you do not agree to these Terms, you must not use our Services. <h2 data-v-de3ea441>About Us</h2> At the dawn of a new technological era, Imators is positioning itself as a true pioneer, with the firm ambition of revolutionizing the world of technology. Founded on a forward-looking vision, our mission is to transcend today's boundaries of innovation to design tomorrow's solutions. At Imators, we firmly believe that technology has the power to reshape our daily lives, to provide concrete answers to societal and environmental challenges, and to open the way to hitherto unexplored possibilities. Our aim is not just to innovate, but to do so responsibly and sustainably. We are committed to developing technologies that respect the environment, promote inclusion, and guarantee user security and privacy. In this quest for excellence, Imators focuses on artificial intelligence, big data, augmented reality, and blockchain, convinced that these key technologies are driving a revolution that will redefine the way we live, work, and interact. <h2 data-v-de3ea441>Imators System</h2> The Imators System is a long-standing system managed by Imators that allows our various platforms to operate under a single core. This system is activated when information such as legal documents, name, surname, and date of birth are requested. In such cases, the system operates using the E.S.P. (Ephemeral Storage Protocol), which consists of saving your data for 5 minutes while the verification, validation, and storage procedures for legal purposes (of name, surname, and IP address) are executed during this time. After this period, your data will be marked as "expired," and encryption will render the text unreadable before permanently deleting it to ensure optimal confidentiality and prevent your information from being accessed later in its entirety. A backup protocol, exclusively held by our company, is available to revive the file if a valid justification is present (follow-up procedure, legal proceedings, etc.). The Imators System is used on a partner site or other platform when a banner displaying "Powered by Imators System" is shown. This system is robust and ensures the highest level of data protection and efficiency. <h2 data-v-de3ea441>Account Registration and Security</h2> To access certain features of our Services, you may need to create an account. You agree to: <ul data-v-de3ea441><li data-v-de3ea441>Provide accurate, current, and complete information during the registration process.</li><li data-v-de3ea441>Maintain and promptly update your account information to keep it accurate, current, and complete.</li><li data-v-de3ea441>Maintain the security and confidentiality of your login credentials and restrict access to your account.</li><li data-v-de3ea441>Notify us immediately of any unauthorized use of your account or any other breach of security.</li> You are responsible for all activities that occur under your account, whether or not you know about them. </ul><h2 data-v-de3ea441>User Conduct</h2> You agree to use our Services only for lawful purposes and in accordance with these Terms. You agree not to: <li data-v-de3ea441>Use the Services in any way that violates any applicable federal, state, local, or international law or regulation.</li><li data-v-de3ea441>Engage in any conduct that restricts or inhibits anyone's use or enjoyment of the Services, or which, as determined by us, may harm Imators or users of the Services.</li><li data-v-de3ea441>Use the Services in any manner that could disable, overburden, damage, or impair the site or interfere with any other party's use of the Services.</li><li data-v-de3ea441>Use any robot, spider, or other automatic device, process, or means to access the Services for any purpose, including monitoring or copying any of the material on the Services.</li><li data-v-de3ea441>Introduce any viruses, Trojan horses, worms, logic bombs, or other material which is malicious or technologically harmful.</li><li data-v-de3ea441>Attempt to gain unauthorized access to, interfere with, damage, or disrupt any parts of the Services, the server on which the Services are stored, or any server, computer, or database connected to the Services.</li><h2 data-v-de3ea441>Content and Intellectual Property</h2> All content provided through our Services, including text, graphics, logos, icons, images, audio clips, digital downloads, data compilations, and software, is the property of Imators or its content suppliers and is protected by international copyright, trademark, patent, trade secret, and other intellectual property or proprietary rights laws. You are granted a limited, non-exclusive, non-transferable, and revocable license to access and use the Services and the content for your personal, non-commercial use. This license does not include any resale or commercial use of any Service or its contents; any collection and use of any product listings, descriptions, or prices; any derivative use of any Service or its contents; any downloading or copying of account information for the benefit of another merchant; or any use of data mining, robots, or similar data gathering and extraction tools. <h2 data-v-de3ea441>User-Generated Content</h2> If you post, upload, or otherwise make available any content on or through our Services, you grant Imators a worldwide, non-exclusive, perpetual, irrevocable, royalty-free, fully paid, sublicensable, and transferable license to use, reproduce, distribute, prepare derivative works of, display, and perform the content in connection with the Services and Imators' business, including for promoting and redistributing part or all of the Services (and derivative works thereof) in any media formats and through any media channels. You represent and warrant that you own or have the necessary licenses, rights, consents, and permissions to grant the above license to Imators. You agree not to post content that is illegal, offensive, or infringes on the rights of others. <h2 data-v-de3ea441>Refund Policy</h2> We strive to ensure your satisfaction with our products. If you are not satisfied with a product purchased from Imators, you may request a refund within 7 days of purchase. Refunds will be granted only for valid reasons such as receiving a damaged product or if the product does not function as expected. To request a refund, please contact our customer support team with your order details and reason for the refund request. <h2 data-v-de3ea441>Privacy Policy</h2> Your privacy is important to us. Our Privacy Policy outlines how we collect, use, and protect your personal information. By using our Services, you consent to the collection and use of your information as described in the Privacy Policy. <h2 data-v-de3ea441>Limitation of Liability</h2> To the fullest extent permitted by applicable law, Imators shall not be liable for any indirect, incidental, special, consequential, or punitive damages, or any loss of profits or revenues, whether incurred directly or indirectly, or any loss of data, use, goodwill, or other intangible losses, resulting from: <li data-v-de3ea441>Your use or inability to use the Services;</li><li data-v-de3ea441>Any unauthorized access to or use of our servers and/or any personal information stored therein;</li><li data-v-de3ea441>Any interruption or cessation of transmission to or from the Services;</li><li data-v-de3ea441>Any bugs, viruses, Trojan horses, or the like that may be transmitted to or through our Services by any third party;</li><li data-v-de3ea441>Any errors or omissions in any content or for any loss or damage incurred as a result of the use of any content posted, emailed, transmitted, or otherwise made available through the Services.</li> In no event shall Imators' total liability to you for all claims arising out of or related to the Services exceed the amount you paid to Imators for the Services. <h2 data-v-de3ea441>Modifications to Terms</h2> Imators reserves the right to modify these Terms at any time. If we make material changes to these Terms, we will notify you by email or by posting a notice on our website prior to the effective date of the changes. By continuing to access or use the Services after the changes become effective, you agree to be bound by the revised Terms. <h2 data-v-de3ea441>Governing Law and Dispute Resolution</h2> These Terms and any disputes arising out of or related to them or the Services will be governed by and construed in accordance with the laws of the jurisdiction in which Imators is headquartered, without regard to its conflict of law principles. Any legal suit, action, or proceeding arising out of or related to these Terms or the Services shall be instituted exclusively in the federal or state courts located in that jurisdiction. <h2 data-v-de3ea441>Data Protection and Security</h2> At Imators, we take data protection and security very seriously. We implement state-of-the-art security measures to protect your personal information and ensure the integrity of our systems. These measures include: <li data-v-de3ea441>End-to-end encryption for all data transmissions</li><li data-v-de3ea441>Regular security audits and penetration testing</li><li data-v-de3ea441>Multi-factor authentication for user accounts</li><li data-v-de3ea441>Strict access controls and monitoring for our internal systems</li><li data-v-de3ea441>Compliance with international data protection regulations, including GDPR and CCPA</li> We are committed to maintaining the highest standards of data protection and continuously updating our security protocols to address emerging threats. <h2 data-v-de3ea441>Termination of Services</h2> Imators reserves the right to terminate or suspend your account and access to the Services at any time, without prior notice or liability, for any reason, including, without limitation, if you breach these Terms. Upon termination, your right to use the Services will immediately cease. All provisions of the Terms which by their nature should survive termination shall survive termination, including, without limitation, ownership provisions, warranty disclaimers, indemnity, and limitations of liability. <h2 data-v-de3ea441>Disclaimer of Warranties</h2> Your use of the Services is at your sole risk. The Services are provided on an "AS IS" and "AS AVAILABLE" basis. Imators expressly disclaims all warranties of any kind, whether express or implied, including, but not limited to the implied warranties of merchantability, fitness for a particular purpose, and non-infringement. Imators makes no warranty that: <li data-v-de3ea441>The Services will meet your requirements;</li><li data-v-de3ea441>The Services will be uninterrupted, timely, secure, or error-free;</li><li data-v-de3ea441>The results that may be obtained from the use of the Services will be accurate or reliable;</li><li data-v-de3ea441>The quality of any products, services, information, or other material purchased or obtained by you through the Services will meet your expectations;</li><li data-v-de3ea441>Any errors in the Services will be corrected.</li><h2 data-v-de3ea441>Third-Party Links and Content</h2> The Services may contain links to third-party websites or services that are not owned or controlled by Imators. Imators has no control over, and assumes no responsibility for, the content, privacy policies, or practices of any third-party websites or services. You further acknowledge and agree that Imators shall not be responsible or liable, directly or indirectly, for any damage or loss caused or alleged to be caused by or in connection with the use of or reliance on any such content, goods, or services available on or through any such websites or services. We strongly advise you to read the terms and conditions and privacy policies of any third-party websites or services that you visit. <h2 data-v-de3ea441>Indemnification</h2> You agree to defend, indemnify, and hold harmless Imators and its licensee and licensors, and their employees, contractors, agents, officers, and directors, from and against any and all claims, damages, obligations, losses, liabilities, costs or debt, and expenses (including but not limited to attorney's fees), resulting from or arising out of: <li data-v-de3ea441>Your use and access of the Services, by you or any person using your account and password;</li><li data-v-de3ea441>A breach of these Terms;</li><li data-v-de3ea441>Content posted on the Services;</li><li data-v-de3ea441>Your violation of any term of these Terms;</li><li data-v-de3ea441>Your violation of any third-party right, including without limitation any copyright, property, or privacy right;</li><li data-v-de3ea441>Any claim that your content caused damage to a third party.</li><h2 data-v-de3ea441>User Data</h2> We will maintain certain data that you transmit to the Services for the purpose of managing the performance of the Services, as well as data relating to your use of the Services. Although we perform regular routine backups of data, you are solely responsible for all data that you transmit or that relates to any activity you have undertaken using the Services. You agree that we shall have no liability to you for any loss or corruption of any such data, and you hereby waive any right of action against us arising from any such loss or corruption of such data. <h2 data-v-de3ea441>Electronic Communications, Transactions, and Signatures</h2> Visiting the Services, sending us emails, and completing online forms constitute electronic communications. You consent to receive electronic communications, and you agree that all agreements, notices, disclosures, and other communications we provide to you electronically, via email and on the Services, satisfy any legal requirement that such communication be in writing. You hereby agree to the use of electronic signatures, contracts, orders, and other records, and to electronic delivery of notices, policies, and records of transactions initiated or completed by us or via the Services. <h2 data-v-de3ea441>California Users and Residents</h2> If any complaint with us is not satisfactorily resolved, you can contact the Complaint Assistance Unit of the Division of Consumer Services of the California Department of Consumer Affairs in writing at 1625 North Market Blvd., Suite N 112, Sacramento, California 95834 or by telephone at (800) 952-5210 or (916) 445-1254. <h2 data-v-de3ea441>Miscellaneous</h2> These Terms and any policies or operating rules posted by us on the Services or in respect to the Services constitute the entire agreement and understanding between you and us. Our failure to exercise or enforce any right or provision of these Terms shall not operate as a waiver of such right or provision. These Terms operate to the fullest extent permissible by law. We may assign any or all of our rights and obligations to others at any time. We shall not be responsible or liable for any loss, damage, delay, or failure to act caused by any cause beyond our reasonable control. If any provision or part of a provision of these Terms is determined to be unlawful, void, or unenforceable, that provision or part of the provision is deemed severable from these Terms and does not affect the validity and enforceability of any remaining provisions. </div>',1);function gb(e,t,r,n,s,o){const i=fr("Navbar");return q(),H(_e,null,[ne(i),mb],64)}const yb=pt(pb,[["render",gb],["__scopeId","data-v-de3ea441"]]),Vl=kd({history:od(),routes:[{path:"/adminPage",name:"adminPage",component:lm},{path:"/auth",name:"auth",component:Tm},{path:"/professors",name:"professors",component:Km,meta:{}},{path:"/professor/:id",name:"professorDetail",component:og},{path:"/",name:"conversations",component:Vy},{path:"/profileParameter",name:"profileParameter",component:cb},{path:"/privacyPolicy",name:"privacyPolicy",component:hb},{path:"/termsOfUse",name:"termsOfUse",component:yb}],scrollBehavior(e,t,r){return r||{left:0,top:0}}});Vl.beforeEach((e,t,r)=>{e.matched.some(n=>n.meta.requiresAuth)?localStorage.getItem("token")?r():r({name:"auth"}):r()});df(Cf).use(Vl).mount("#app");
| ver. 1.6 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка