(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))s(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();function Ks(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ce={},qt=[],pt=()=>{},mo=()=>!1,Zn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),es=e=>e.startsWith("onUpdate:"),$e=Object.assign,Gs=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Br=Object.prototype.hasOwnProperty,oe=(e,t)=>Br.call(e,t),K=Array.isArray,Nt=e=>On(e)==="[object Map]",xt=e=>On(e)==="[object Set]",gl=e=>On(e)==="[object Date]",z=e=>typeof e=="function",ve=e=>typeof e=="string",ht=e=>typeof e=="symbol",re=e=>e!==null&&typeof e=="object",vo=e=>(re(e)||z(e))&&z(e.then)&&z(e.catch),go=Object.prototype.toString,On=e=>go.call(e),Hr=e=>On(e).slice(8,-1),_o=e=>On(e)==="[object Object]",Ws=e=>ve(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,mn=Ks(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ts=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},qr=/-\w/g,Ne=ts(e=>e.replace(qr,t=>t.slice(1).toUpperCase())),Kr=/\B([A-Z])/g,zt=ts(e=>e.replace(Kr,"-$1").toLowerCase()),ns=ts(e=>e.charAt(0).toUpperCase()+e.slice(1)),ms=ts(e=>e?`on${ns(e)}`:""),ft=(e,t)=>!Object.is(e,t),jn=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},ss=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let _l;const ls=()=>_l||(_l=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Tn(e){if(K(e)){const t={};for(let n=0;nn.startsWith("/*")?"":n).split(Gr).forEach(n=>{if(n){const s=n.split(Wr);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function xe(e){let t="";if(ve(e))t=e;else if(K(e))for(let n=0;nSt(n,t))}const wo=e=>!!(e&&e.__v_isRef===!0),_=e=>ve(e)?e:e==null?"":K(e)||re(e)&&(e.toString===go||!z(e.toString))?wo(e)?_(e.value):JSON.stringify(e,Co,2):String(e),Co=(e,t)=>wo(t)?Co(e,t.value):Nt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,l],o)=>(n[vs(s,o)+" =>"]=l,n),{})}:xt(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>vs(n))}:ht(t)?vs(t):re(t)&&!K(t)&&!_o(t)?String(t):t,vs=(e,t="")=>{var n;return ht(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let Re;class xo{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Re&&(Re.active?(this.parent=Re,this.index=(Re.scopes||(Re.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes){const s=this.scopes.slice();for(t=0,n=s.length;t0&&--this._on===0){if(Re===this)Re=this.prevScope;else{let t=Re;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n0)return;if(gn){let t=gn;for(gn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;vn;){let t=vn;for(vn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function $o(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ao(e){let t,n=e.depsTail,s=n;for(;s;){const l=s.prevDep;s.version===-1?(s===n&&(n=l),Qs(s),ni(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=l}e.deps=t,e.depsTail=n}function Ps(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ko(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ko(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Cn)||(e.globalVersion=Cn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ps(e))))return;e.flags|=2;const t=e.dep,n=de,s=Ye;de=e,Ye=!0;try{$o(e);const l=e.fn(e._value);(t.version===0||ft(l,e._value))&&(e.flags|=128,e._value=l,t.version++)}catch(l){throw t.version++,l}finally{de=n,Ye=s,Ao(e),e.flags&=-3}}function Qs(e,t=!1){const{dep:n,prevSub:s,nextSub:l}=e;if(s&&(s.nextSub=l,e.prevSub=void 0),l&&(l.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)Qs(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function ni(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ye=!0;const Po=[];function Et(){Po.push(Ye),Ye=!1}function Rt(){const e=Po.pop();Ye=e===void 0?!0:e}function wl(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=de;de=void 0;try{t()}finally{de=n}}}let Cn=0;class si{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Xs{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!de||!Ye||de===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==de)n=this.activeLink=new si(de,this),de.deps?(n.prevDep=de.depsTail,de.depsTail.nextDep=n,de.depsTail=n):de.deps=de.depsTail=n,Oo(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=de.depsTail,n.nextDep=void 0,de.depsTail.nextDep=n,de.depsTail=n,de.deps===n&&(de.deps=s)}return n}trigger(t){this.version++,Cn++,this.notify(t)}notify(t){Ys();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Js()}}}function Oo(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)Oo(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Os=new WeakMap,Gt=Symbol(""),Ts=Symbol(""),xn=Symbol("");function Ae(e,t,n){if(Ye&&de){let s=Os.get(e);s||Os.set(e,s=new Map);let l=s.get(n);l||(s.set(n,l=new Xs),l.map=s,l.key=n),l.track()}}function wt(e,t,n,s,l,o){const i=Os.get(e);if(!i){Cn++;return}const a=u=>{u&&u.trigger()};if(Ys(),t==="clear")i.forEach(a);else{const u=K(e),p=u&&Ws(n);if(u&&n==="length"){const f=Number(s);i.forEach((c,d)=>{(d==="length"||d===xn||!ht(d)&&d>=f)&&a(c)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),p&&a(i.get(xn)),t){case"add":u?p&&a(i.get("length")):(a(i.get(Gt)),Nt(e)&&a(i.get(Ts)));break;case"delete":u||(a(i.get(Gt)),Nt(e)&&a(i.get(Ts)));break;case"set":Nt(e)&&a(i.get(Gt));break}}Js()}function Xt(e){const t=le(e);return t===e||(Ae(t,"iterate",xn),We(e))?t:mt(e)?Dt(e)?t.map(n=>Ft(ze(n))):t.map(Ft):t.map(ze)}function os(e){return Ae(e=le(e),"iterate",xn),e}function ut(e,t){return mt(e)?Ft(Dt(e)?ze(t):t):ze(t)}const li={__proto__:null,[Symbol.iterator](){return _s(this,Symbol.iterator,e=>ut(this,e))},concat(...e){return Xt(this).concat(...e.map(t=>K(t)?Xt(t):t))},entries(){return _s(this,"entries",e=>(e[1]=ut(this,e[1]),e))},every(e,t){return gt(this,"every",e,t,void 0,arguments)},filter(e,t){return gt(this,"filter",e,t,n=>n.map(s=>ut(this,s)),arguments)},find(e,t){return gt(this,"find",e,t,n=>ut(this,n),arguments)},findIndex(e,t){return gt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return gt(this,"findLast",e,t,n=>ut(this,n),arguments)},findLastIndex(e,t){return gt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return gt(this,"forEach",e,t,void 0,arguments)},includes(...e){return ys(this,"includes",e)},indexOf(...e){return ys(this,"indexOf",e)},join(e){return Xt(this).join(e)},lastIndexOf(...e){return ys(this,"lastIndexOf",e)},map(e,t){return gt(this,"map",e,t,void 0,arguments)},pop(){return un(this,"pop")},push(...e){return un(this,"push",e)},reduce(e,...t){return Cl(this,"reduce",e,t)},reduceRight(e,...t){return Cl(this,"reduceRight",e,t)},shift(){return un(this,"shift")},some(e,t){return gt(this,"some",e,t,void 0,arguments)},splice(...e){return un(this,"splice",e)},toReversed(){return Xt(this).toReversed()},toSorted(e){return Xt(this).toSorted(e)},toSpliced(...e){return Xt(this).toSpliced(...e)},unshift(...e){return un(this,"unshift",e)},values(){return _s(this,"values",e=>ut(this,e))}};function _s(e,t,n){const s=os(e),l=s[t]();return s!==e&&!We(e)&&(l._next=l.next,l.next=()=>{const o=l._next();return o.done||(o.value=n(o.value)),o}),l}const oi=Array.prototype;function gt(e,t,n,s,l,o){const i=os(e),a=i!==e&&!We(e),u=i[t];if(u!==oi[t]){const c=u.apply(e,o);return a?ze(c):c}let p=n;i!==e&&(a?p=function(c,d){return n.call(this,ut(e,c),d,e)}:n.length>2&&(p=function(c,d){return n.call(this,c,d,e)}));const f=u.call(i,p,s);return a&&l?l(f):f}function Cl(e,t,n,s){const l=os(e),o=l!==e&&!We(e);let i=n,a=!1;l!==e&&(o?(a=s.length===0,i=function(p,f,c){return a&&(a=!1,p=ut(e,p)),n.call(this,p,ut(e,f),c,e)}):n.length>3&&(i=function(p,f,c){return n.call(this,p,f,c,e)}));const u=l[t](i,...s);return a?ut(e,u):u}function ys(e,t,n){const s=le(e);Ae(s,"iterate",xn);const l=s[t](...n);return(l===-1||l===!1)&&tl(n[0])?(n[0]=le(n[0]),s[t](...n)):l}function un(e,t,n=[]){Et(),Ys();const s=le(e)[t].apply(e,n);return Js(),Rt(),s}const ri=Ks("__proto__,__v_isRef,__isVue"),To=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ht));function ii(e){ht(e)||(e=String(e));const t=le(this);return Ae(t,"has",e),t.hasOwnProperty(e)}class Mo{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const l=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!l;if(n==="__v_isReadonly")return l;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(l?o?gi:Vo:o?Do:No).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=K(t);if(!l){let u;if(i&&(u=li[n]))return u;if(n==="hasOwnProperty")return ii}const a=Reflect.get(t,n,Pe(t)?t:s);if((ht(n)?To.has(n):ri(n))||(l||Ae(t,"get",n),o))return a;if(Pe(a)){const u=i&&Ws(n)?a:a.value;return l&&re(u)?Is(u):u}return re(a)?l?Is(a):rs(a):a}}class Io extends Mo{constructor(t=!1){super(!1,t)}set(t,n,s,l){let o=t[n];const i=K(t)&&Ws(n);if(!this._isShallow){const p=mt(o);if(!We(s)&&!mt(s)&&(o=le(o),s=le(s)),!i&&Pe(o)&&!Pe(s))return p||(o.value=s),!0}const a=i?Number(n)e,Nn=e=>Reflect.getPrototypeOf(e);function di(e,t,n){return function(...s){const l=this.__v_raw,o=le(l),i=Nt(o),a=e==="entries"||e===Symbol.iterator&&i,u=e==="keys"&&i,p=l[e](...s),f=n?Ms:t?Ft:ze;return!t&&Ae(o,"iterate",u?Ts:Gt),$e(Object.create(p),{next(){const{value:c,done:d}=p.next();return d?{value:c,done:d}:{value:a?[f(c[0]),f(c[1])]:f(c),done:d}}})}}function Dn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function pi(e,t){const n={get(l){const o=this.__v_raw,i=le(o),a=le(l);e||(ft(l,a)&&Ae(i,"get",l),Ae(i,"get",a));const{has:u}=Nn(i),p=t?Ms:e?Ft:ze;if(u.call(i,l))return p(o.get(l));if(u.call(i,a))return p(o.get(a));o!==i&&o.get(l)},get size(){const l=this.__v_raw;return!e&&Ae(le(l),"iterate",Gt),l.size},has(l){const o=this.__v_raw,i=le(o),a=le(l);return e||(ft(l,a)&&Ae(i,"has",l),Ae(i,"has",a)),l===a?o.has(l):o.has(l)||o.has(a)},forEach(l,o){const i=this,a=i.__v_raw,u=le(a),p=t?Ms:e?Ft:ze;return!e&&Ae(u,"iterate",Gt),a.forEach((f,c)=>l.call(o,p(f),p(c),i))}};return $e(n,e?{add:Dn("add"),set:Dn("set"),delete:Dn("delete"),clear:Dn("clear")}:{add(l){const o=le(this),i=Nn(o),a=le(l),u=!t&&!We(l)&&!mt(l)?a:l;return i.has.call(o,u)||ft(l,u)&&i.has.call(o,l)||ft(a,u)&&i.has.call(o,a)||(o.add(u),wt(o,"add",u,u)),this},set(l,o){!t&&!We(o)&&!mt(o)&&(o=le(o));const i=le(this),{has:a,get:u}=Nn(i);let p=a.call(i,l);p||(l=le(l),p=a.call(i,l));const f=u.call(i,l);return i.set(l,o),p?ft(o,f)&&wt(i,"set",l,o):wt(i,"add",l,o),this},delete(l){const o=le(this),{has:i,get:a}=Nn(o);let u=i.call(o,l);u||(l=le(l),u=i.call(o,l)),a&&a.call(o,l);const p=o.delete(l);return u&&wt(o,"delete",l,void 0),p},clear(){const l=le(this),o=l.size!==0,i=l.clear();return o&&wt(l,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(l=>{n[l]=di(l,e,t)}),n}function Zs(e,t){const n=pi(e,t);return(s,l,o)=>l==="__v_isReactive"?!e:l==="__v_isReadonly"?e:l==="__v_raw"?s:Reflect.get(oe(n,l)&&l in s?n:s,l,o)}const hi={get:Zs(!1,!1)},mi={get:Zs(!1,!0)},vi={get:Zs(!0,!1)};const No=new WeakMap,Do=new WeakMap,Vo=new WeakMap,gi=new WeakMap;function _i(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function rs(e){return mt(e)?e:el(e,!1,ui,hi,No)}function Fo(e){return el(e,!1,fi,mi,Do)}function Is(e){return el(e,!0,ci,vi,Vo)}function el(e,t,n,s,l){if(!re(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const o=l.get(e);if(o)return o;const i=_i(Hr(e));if(i===0)return e;const a=new Proxy(e,i===2?s:n);return l.set(e,a),a}function Dt(e){return mt(e)?Dt(e.__v_raw):!!(e&&e.__v_isReactive)}function mt(e){return!!(e&&e.__v_isReadonly)}function We(e){return!!(e&&e.__v_isShallow)}function tl(e){return e?!!e.__v_raw:!1}function le(e){const t=e&&e.__v_raw;return t?le(t):e}function Lo(e){return!oe(e,"__v_skip")&&Object.isExtensible(e)&&yo(e,"__v_skip",!0),e}const ze=e=>re(e)?rs(e):e,Ft=e=>re(e)?Is(e):e;function Pe(e){return e?e.__v_isRef===!0:!1}function A(e){return jo(e,!1)}function yi(e){return jo(e,!0)}function jo(e,t){return Pe(e)?e:new bi(e,t)}class bi{constructor(t,n){this.dep=new Xs,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:le(t),this._value=n?t:ze(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||We(t)||mt(t);t=s?t:le(t),ft(t,n)&&(this._rawValue=t,this._value=s?t:ze(t),this.dep.trigger())}}function F(e){return Pe(e)?e.value:e}const wi={get:(e,t,n)=>t==="__v_raw"?e:F(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const l=e[t];return Pe(l)&&!Pe(n)?(l.value=n,!0):Reflect.set(e,t,n,s)}};function Uo(e){return Dt(e)?e:new Proxy(e,wi)}class Ci{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Xs(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Cn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&de!==this)return Ro(this,!0),!0}get value(){const t=this.dep.track();return ko(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function xi(e,t,n=!1){let s,l;return z(e)?s=e:(s=e.get,l=e.set),new Ci(s,l,n)}const Vn={},qn=new WeakMap;let Ht;function Si(e,t=!1,n=Ht){if(n){let s=qn.get(n);s||qn.set(n,s=[]),s.push(e)}}function Ei(e,t,n=ce){const{immediate:s,deep:l,once:o,scheduler:i,augmentJob:a,call:u}=n,p=D=>l?D:We(D)||l===!1||l===0?Ct(D,1):Ct(D);let f,c,d,m,C=!1,y=!1;if(Pe(e)?(c=()=>e.value,C=We(e)):Dt(e)?(c=()=>p(e),C=!0):K(e)?(y=!0,C=e.some(D=>Dt(D)||We(D)),c=()=>e.map(D=>{if(Pe(D))return D.value;if(Dt(D))return p(D);if(z(D))return u?u(D,2):D()})):z(e)?t?c=u?()=>u(e,2):e:c=()=>{if(d){Et();try{d()}finally{Rt()}}const D=Ht;Ht=f;try{return u?u(e,3,[m]):e(m)}finally{Ht=D}}:c=pt,t&&l){const D=c,J=l===!0?1/0:l;c=()=>Ct(D(),J)}const T=ti(),j=()=>{f.stop(),T&&T.active&&Gs(T.effects,f)};if(o&&t){const D=t;t=(...J)=>{const fe=D(...J);return j(),fe}}let k=y?new Array(e.length).fill(Vn):Vn;const V=D=>{if(!(!(f.flags&1)||!f.dirty&&!D))if(t){const J=f.run();if(D||l||C||(y?J.some((fe,ae)=>ft(fe,k[ae])):ft(J,k))){d&&d();const fe=Ht;Ht=f;try{const ae=[J,k===Vn?void 0:y&&k[0]===Vn?[]:k,m];k=J,u?u(t,3,ae):t(...ae)}finally{Ht=fe}}}else f.run()};return a&&a(V),f=new So(c),f.scheduler=i?()=>i(V,!1):V,m=D=>Si(D,!1,f),d=f.onStop=()=>{const D=qn.get(f);if(D){if(u)u(D,4);else for(const J of D)J();qn.delete(f)}},t?s?V(!0):k=f.run():i?i(V.bind(null,!0),!0):f.run(),j.pause=f.pause.bind(f),j.resume=f.resume.bind(f),j.stop=j,j}function Ct(e,t=1/0,n){if(t<=0||!re(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Pe(e))Ct(e.value,t,n);else if(K(e))for(let s=0;s{Ct(s,t,n)});else if(_o(e)){for(const s in e)Ct(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Ct(e[s],t,n)}return e}function Mn(e,t,n,s){try{return s?e(...s):e()}catch(l){is(l,t,n)}}function Qe(e,t,n,s){if(z(e)){const l=Mn(e,t,n,s);return l&&vo(l)&&l.catch(o=>{is(o,t,n)}),l}if(K(e)){const l=[];for(let o=0;o>>1,l=Ie[s],o=Sn(l);o=Sn(n)?Ie.push(e):Ie.splice($i(t),0,e),e.flags|=1,Ho()}}function Ho(){Kn||(Kn=Bo.then(Ko))}function Ai(e){if(!K(e))Ot&&e.id===-1?Ot.splice(Zt+1,0,e):e.flags&1||(tn.push(e),e.flags|=1);else for(let t=0;tSn(n)-Sn(s));if(tn.length=0,Ot){for(let n=0;ne.id==null?e.flags&2?-1:1/0:e.id;function Ko(e){try{for(at=0;at{s._d&&Yn(-1);const o=Gn(t),i=Wt.length;let a;try{a=e(...l)}finally{for(let u=Wt.length;u>i;u--)_r();Gn(o),s._d&&Yn(1)}return a};return s._n=!0,s._c=!0,s._d=!0,s}function he(e,t){if(Be===null)return e;const n=ds(Be),s=e.dirs||(e.dirs=[]);for(let l=0;l1)return n&&z(t)?t.call(s&&s.proxy):t}}const ki=Symbol.for("v-scx"),Pi=()=>Je(ki);function Vt(e,t,n){return zo(e,t,n)}function zo(e,t,n=ce){const{immediate:s,deep:l,flush:o,once:i}=n,a=$e({},n),u=t&&s||!t&&o!=="post";let p;if($n){if(o==="sync"){const m=Pi();p=m.__watcherHandles||(m.__watcherHandles=[])}else if(!u){const m=()=>{};return m.stop=pt,m.resume=pt,m.pause=pt,m}}const f=ke;a.call=(m,C,y)=>Qe(m,f,C,y);let c=!1;o==="post"?a.scheduler=m=>{Fe(m,f&&f.suspense)}:o!=="sync"&&(c=!0,a.scheduler=(m,C)=>{C?m():sl(m)}),a.augmentJob=m=>{t&&(m.flags|=4),c&&(m.flags|=2,f&&(m.id=f.uid,m.i=f))};const d=Ei(e,t,a);return $n&&(p?p.push(d):u&&d()),d}function Oi(e,t,n){const s=this.proxy,l=ve(e)?e.includes(".")?Yo(s,e):()=>s[e]:e.bind(s,s);let o;z(t)?o=t:(o=t.handler,n=t);const i=In(this),a=zo(l,o.bind(s),n);return i(),a}function Yo(e,t){const n=t.split(".");return()=>{let s=e;for(let l=0;le.__isTeleport,bs=Symbol("_leaveCb");function Mi(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==$t){t=n;break}}return t}function Jo(e){if(!ol(e))return as(e.type)&&e.children?Mi(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&z(n.default))return n.default()}}function ll(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const n=e.component.subTree;ll(as(n.type)&&Jo(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Qo(e,t){return z(e)?$e({name:e.name},t,{setup:e}):e}function Xo(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Sl(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Wn=new WeakMap;function _n(e,t,n,s,l=!1){if(K(e)){e.forEach((y,T)=>_n(y,t&&(K(t)?t[T]:t),n,s,l));return}if(yn(s)&&!l){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&_n(e,t,n,s.component.subTree);return}const o=s.shapeFlag&4?ds(s.component):s.el,i=l?null:o,{i:a,r:u}=e,p=t&&t.r,f=a.refs===ce?a.refs={}:a.refs,c=a.setupState,d=le(c),m=c===ce?mo:y=>Sl(f,y)?!1:oe(d,y),C=(y,T)=>!(T&&Sl(f,T));if(p!=null&&p!==u){if(El(t),ve(p))f[p]=null,m(p)&&(c[p]=null);else if(Pe(p)){const y=t;C(p,y.k)&&(p.value=null),y.k&&(f[y.k]=null)}}if(z(u))Mn(u,a,12,[i,f]);else{const y=ve(u),T=Pe(u);if(y||T){const j=()=>{if(e.f){const k=y?m(u)?c[u]:f[u]:C()||!e.k?u.value:f[e.k];if(l)K(k)&&Gs(k,o);else if(K(k))k.includes(o)||k.push(o);else if(y)f[u]=[o],m(u)&&(c[u]=f[u]);else{const V=[o];C(u,e.k)&&(u.value=V),e.k&&(f[e.k]=V)}}else y?(f[u]=i,m(u)&&(c[u]=i)):T&&(C(u,e.k)&&(u.value=i),e.k&&(f[e.k]=i))};if(i){const k=()=>{j(),Wn.delete(e)};k.id=-1,Wn.set(e,k),Fe(k,n)}else El(e),j()}}}function El(e){const t=Wn.get(e);t&&(t.flags|=8,Wn.delete(e))}ls().requestIdleCallback;ls().cancelIdleCallback;const yn=e=>!!e.type.__asyncLoader,ol=e=>e.type.__isKeepAlive;function Ii(e,t){Zo(e,"a",t)}function Ni(e,t){Zo(e,"da",t)}function Zo(e,t,n=ke){const s=e.__wdc||(e.__wdc=()=>{let l=n;for(;l;){if(l.isDeactivated)return;l=l.parent}return e()});if(us(t,s,n),n){let l=n.parent;for(;l&&l.parent;)ol(l.parent.vnode)&&Di(s,t,n,l),l=l.parent}}function Di(e,t,n,s){const l=us(t,e,s,!0);rl(()=>{Gs(s[t],l)},n)}function us(e,t,n=ke,s=!1){if(n){const l=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{Et();const a=In(n),u=Qe(t,n,e,i);return a(),Rt(),u});return s?l.unshift(o):l.push(o),o}}const At=e=>(t,n=ke)=>{(!$n||e==="sp")&&us(e,(...s)=>t(...s),n)},Vi=At("bm"),Ze=At("m"),Fi=At("bu"),Li=At("u"),er=At("bum"),rl=At("um"),ji=At("sp"),Ui=At("rtg"),Bi=At("rtc");function Hi(e,t=ke){us("ec",e,t)}const qi="components";function Ns(e,t){return Gi(qi,e,!0,t)||e}const Ki=Symbol.for("v-ndc");function Gi(e,t,n=!0,s=!1){const l=Be||ke;if(l){const o=l.type;{const a=Pa(o,!1);if(a&&(a===t||a===Ne(t)||a===ns(Ne(t))))return o}const i=Rl(l[e]||o[e],t)||Rl(l.appContext[e],t);return!i&&s?o:i}}function Rl(e,t){return e&&(e[t]||e[Ne(t)]||e[ns(Ne(t))])}function be(e,t,n,s){let l;const o=n,i=K(e);if(i||ve(e)){const a=i&&Dt(e);let u=!1,p=!1;a&&(u=!We(e),p=mt(e),e=os(e)),l=new Array(e.length);for(let f=0,c=e.length;ft(a,u,void 0,o));else{const a=Object.keys(e);l=new Array(a.length);for(let u=0,p=a.length;ue?Cr(e)?ds(e):Ds(e.parent):null,bn=$e(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=>Ds(e.parent),$root:e=>Ds(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>nr(e),$forceUpdate:e=>e.f||(e.f=()=>{sl(e.update)}),$nextTick:e=>e.n||(e.n=nl.bind(e.proxy)),$watch:e=>Oi.bind(e)}),ws=(e,t)=>e!==ce&&!e.__isScriptSetup&&oe(e,t),Wi={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:l,props:o,accessCache:i,type:a,appContext:u}=e;if(t[0]!=="$"){const d=i[t];if(d!==void 0)switch(d){case 1:return s[t];case 2:return l[t];case 4:return n[t];case 3:return o[t]}else{if(ws(s,t))return i[t]=1,s[t];if(l!==ce&&oe(l,t))return i[t]=2,l[t];if(oe(o,t))return i[t]=3,o[t];if(n!==ce&&oe(n,t))return i[t]=4,n[t];Vs&&(i[t]=0)}}const p=bn[t];let f,c;if(p)return t==="$attrs"&&Ae(e.attrs,"get",""),p(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==ce&&oe(n,t))return i[t]=4,n[t];if(c=u.config.globalProperties,oe(c,t))return c[t]},set({_:e},t,n){const{data:s,setupState:l,ctx:o}=e;return ws(l,t)?(l[t]=n,!0):s!==ce&&oe(s,t)?(s[t]=n,!0):oe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:l,props:o,type:i}},a){let u;return!!(n[a]||e!==ce&&a[0]!=="$"&&oe(e,a)||ws(t,a)||oe(o,a)||oe(s,a)||oe(bn,a)||oe(l.config.globalProperties,a)||(u=i.__cssModules)&&u[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:oe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function $l(e){return K(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Vs=!0;function zi(e){const t=nr(e),n=e.proxy,s=e.ctx;Vs=!1,t.beforeCreate&&Al(t.beforeCreate,e,"bc");const{data:l,computed:o,methods:i,watch:a,provide:u,inject:p,created:f,beforeMount:c,mounted:d,beforeUpdate:m,updated:C,activated:y,deactivated:T,beforeDestroy:j,beforeUnmount:k,destroyed:V,unmounted:D,render:J,renderTracked:fe,renderTriggered:ae,errorCaptured:Ve,serverPrefetch:et,expose:qe,inheritAttrs:tt,components:nt,directives:Ke,filters:Lt}=t;if(p&&Yi(p,s,null),i)for(const B in i){const te=i[B];z(te)&&(s[B]=te.bind(n))}if(l){const B=l.call(n,n);re(B)&&(e.data=rs(B))}if(Vs=!0,o)for(const B in o){const te=o[B],vt=z(te)?te.bind(n,n):z(te.get)?te.get.bind(n,n):pt,kt=!z(te)&&z(te.set)?te.set.bind(n):pt,st=Ce({get:vt,set:kt});Object.defineProperty(s,B,{enumerable:!0,configurable:!0,get:()=>st.value,set:Oe=>st.value=Oe})}if(a)for(const B in a)tr(a[B],s,n,B);if(u){const B=z(u)?u.call(n):u;Reflect.ownKeys(B).forEach(te=>{Un(te,B[te])})}f&&Al(f,e,"c");function U(B,te){K(te)?te.forEach(vt=>B(vt.bind(n))):te&&B(te.bind(n))}if(U(Vi,c),U(Ze,d),U(Fi,m),U(Li,C),U(Ii,y),U(Ni,T),U(Hi,Ve),U(Bi,fe),U(Ui,ae),U(er,k),U(rl,D),U(ji,et),K(qe))if(qe.length){const B=e.exposed||(e.exposed={});qe.forEach(te=>{Object.defineProperty(B,te,{get:()=>n[te],set:vt=>n[te]=vt,enumerable:!0})})}else e.exposed||(e.exposed={});J&&e.render===pt&&(e.render=J),tt!=null&&(e.inheritAttrs=tt),nt&&(e.components=nt),Ke&&(e.directives=Ke),et&&Xo(e)}function Yi(e,t,n=pt){K(e)&&(e=Fs(e));for(const s in e){const l=e[s];let o;re(l)?"default"in l?o=Je(l.from||s,l.default,!0):o=Je(l.from||s):o=Je(l),Pe(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o}}function Al(e,t,n){Qe(K(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function tr(e,t,n,s){let l=s.includes(".")?Yo(n,s):()=>n[s];if(ve(e)){const o=t[e];z(o)&&Vt(l,o)}else if(z(e))Vt(l,e.bind(n));else if(re(e))if(K(e))e.forEach(o=>tr(o,t,n,s));else{const o=z(e.handler)?e.handler.bind(n):t[e.handler];z(o)&&Vt(l,o,e)}}function nr(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:l,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,a=o.get(t);let u;return a?u=a:!l.length&&!n&&!s?u=t:(u={},l.length&&l.forEach(p=>zn(u,p,i,!0)),zn(u,t,i)),re(t)&&o.set(t,u),u}function zn(e,t,n,s=!1){const{mixins:l,extends:o}=t;o&&zn(e,o,n,!0),l&&l.forEach(i=>zn(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const a=Ji[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Ji={data:kl,props:Pl,emits:Pl,methods:dn,computed:dn,beforeCreate:Te,created:Te,beforeMount:Te,mounted:Te,beforeUpdate:Te,updated:Te,beforeDestroy:Te,beforeUnmount:Te,destroyed:Te,unmounted:Te,activated:Te,deactivated:Te,errorCaptured:Te,serverPrefetch:Te,components:dn,directives:dn,watch:Xi,provide:kl,inject:Qi};function kl(e,t){return t?e?function(){return $e(z(e)?e.call(this,this):e,z(t)?t.call(this,this):t)}:t:e}function Qi(e,t){return dn(Fs(e),Fs(t))}function Fs(e){if(K(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ne(t)}Modifiers`]||e[`${zt(t)}Modifiers`];function na(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||ce;let l=n;const o=t.startsWith("update:"),i=o&&ta(s,t.slice(7));i&&(i.trim&&(l=n.map(f=>ve(f)?f.trim():f)),i.number&&(l=l.map(ss)));let a,u=s[a=ms(t)]||s[a=ms(Ne(t))];!u&&o&&(u=s[a=ms(zt(t))]),u&&Qe(u,e,6,l);const p=s[a+"Once"];if(p){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Qe(p,e,6,l)}}const sa=new WeakMap;function lr(e,t,n=!1){const s=n?sa:t.emitsCache,l=s.get(e);if(l!==void 0)return l;const o=e.emits;let i={},a=!1;if(!z(e)){const u=p=>{const f=lr(p,t,!0);f&&(a=!0,$e(i,f))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!o&&!a?(re(e)&&s.set(e,null),null):(K(o)?o.forEach(u=>i[u]=null):$e(i,o),re(e)&&s.set(e,i),i)}function cs(e,t){return!e||!Zn(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),oe(e,t[0].toLowerCase()+t.slice(1))||oe(e,zt(t))||oe(e,t))}function Ol(e){const{type:t,vnode:n,proxy:s,withProxy:l,propsOptions:[o],slots:i,attrs:a,emit:u,render:p,renderCache:f,props:c,data:d,setupState:m,ctx:C,inheritAttrs:y}=e,T=Gn(e);let j,k;try{if(n.shapeFlag&4){const D=l||s,J=D;j=ct(p.call(J,D,f,c,m,d,C)),k=a}else{const D=t;j=ct(D.length>1?D(c,{attrs:a,slots:i,emit:u}):D(c,null)),k=t.props?a:la(a)}}catch(D){Wt.length=0,is(D,e,1),j=ne($t)}let V=j;if(k&&y!==!1){const D=Object.keys(k),{shapeFlag:J}=V;D.length&&J&7&&(o&&D.some(es)&&(k=oa(k,o)),V=sn(V,k,!1,!0))}if(n.dirs&&(V=sn(V,null,!1,!0),V.dirs=V.dirs?V.dirs.concat(n.dirs):n.dirs),n.transition){const D=as(V.type)&&Jo(V)||V;ll(D,n.transition)}return j=V,Gn(T),j}const la=e=>{let t;for(const n in e)(n==="class"||n==="style"||Zn(n))&&((t||(t={}))[n]=e[n]);return t},oa=(e,t)=>{const n={};for(const s in e)(!es(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function ra(e,t,n){const{props:s,children:l,component:o}=e,{props:i,children:a,patchFlag:u}=t,p=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return s?Tl(s,i,p):!!i;if(u&8){const f=t.dynamicProps;for(let c=0;cObject.create(rr),ar=e=>Object.getPrototypeOf(e)===rr;function aa(e,t,n,s=!1){const l={},o=ir();e.propsDefaults=Object.create(null),ur(e,t,l,o);for(const i in e.propsOptions[0])i in l||(l[i]=void 0);n?e.props=s?l:Fo(l):e.type.props?e.props=l:e.props=o,e.attrs=o}function ua(e,t,n,s){const{props:l,attrs:o,vnode:{patchFlag:i}}=e,a=le(l),[u]=e.propsOptions;let p=!1;if((s||i>0)&&!(i&16)){if(i&8){const f=e.vnode.dynamicProps;for(let c=0;c{u=!0;const[d,m]=cr(c,t,!0);$e(i,d),m&&a.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!o&&!u)return re(e)&&s.set(e,qt),qt;if(K(o))for(let f=0;fe==="_"||e==="_ctx"||e==="$stable",al=e=>K(e)?e.map(ct):[ct(e)],fa=(e,t,n)=>{if(t._n)return t;const s=Wo((...l)=>al(t(...l)),n);return s._c=!1,s},fr=(e,t,n)=>{const s=e._ctx;for(const l in e){if(il(l))continue;const o=e[l];if(z(o))t[l]=fa(l,o,s);else if(o!=null){const i=al(o);t[l]=()=>i}}},dr=(e,t)=>{const n=al(t);e.slots.default=()=>n},pr=(e,t,n)=>{for(const s in t)(n||!il(s))&&(e[s]=t[s])},da=(e,t,n)=>{const s=e.slots=ir();if(e.vnode.shapeFlag&32){const l=t._;l?(pr(s,t,n),n&&yo(s,"_",l,!0)):fr(t,s)}else t&&dr(e,t)},pa=(e,t,n)=>{const{vnode:s,slots:l}=e;let o=!0,i=ce;if(s.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:pr(l,t,n):(o=!t.$stable,fr(t,l)),i=t}else t&&(dr(e,t),i={default:1});if(o)for(const a in l)!il(a)&&i[a]==null&&delete l[a]},Fe=_a;function ha(e){return ma(e)}function ma(e,t){const n=ls();n.__VUE__=!0;const{insert:s,remove:l,patchProp:o,createElement:i,createText:a,createComment:u,setText:p,setElementText:f,parentNode:c,nextSibling:d,setScopeId:m=pt,insertStaticContent:C}=e,y=(h,v,g,w=null,S=null,b=null,M=void 0,O=null,P=!!v.dynamicChildren)=>{if(h===v)return;h&&!cn(h,v)&&(w=x(h),Oe(h,S,b,!0),h=null),v.patchFlag===-2&&(P=!1,v.dynamicChildren=null),v.dynamicChildren&&h&&h.dynamicChildren&&h.dynamicChildren.hasOnce&&(v.dynamicChildren===qt&&(v.dynamicChildren=[]),v.dynamicChildren.hasOnce=!0);const{type:$,ref:G,shapeFlag:N}=v;switch($){case fs:T(h,v,g,w);break;case $t:j(h,v,g,w);break;case Bn:h==null&&k(v,g,w,M);break;case Y:nt(h,v,g,w,S,b,M,O,P);break;default:N&1?J(h,v,g,w,S,b,M,O,P):N&6?Ke(h,v,g,w,S,b,M,O,P):(N&64||N&128)&&$.process(h,v,g,w,S,b,M,O,P,H)}G!=null&&S?_n(G,h&&h.ref,b,v||h,!v):G==null&&h&&h.ref!=null&&_n(h.ref,null,b,h,!0)},T=(h,v,g,w)=>{if(h==null)s(v.el=a(v.children),g,w);else{const S=v.el=h.el;v.children!==h.children&&p(S,v.children)}},j=(h,v,g,w)=>{h==null?s(v.el=u(v.children||""),g,w):v.el=h.el},k=(h,v,g,w)=>{[h.el,h.anchor]=C(h.children,v,g,w,h.el,h.anchor)},V=({el:h,anchor:v},g,w)=>{let S;for(;h&&h!==v;)S=d(h),s(h,g,w),h=S;s(v,g,w)},D=({el:h,anchor:v})=>{let g;for(;h&&h!==v;)g=d(h),l(h),h=g;l(v)},J=(h,v,g,w,S,b,M,O,P)=>{if(v.type==="svg"?M="svg":v.type==="math"&&(M="mathml"),h==null)fe(v,g,w,S,b,M,O,P);else{const $=h.el&&h.el._isVueCE?h.el:null;try{$&&$._beginPatch(),et(h,v,S,b,M,O,P)}finally{$&&$._endPatch()}}},fe=(h,v,g,w,S,b,M,O)=>{let P,$;const{props:G,shapeFlag:N,transition:q,dirs:W}=h;if(P=h.el=i(h.type,b,G&&G.is,G),N&8?f(P,h.children):N&16&&Ve(h.children,P,null,w,S,Cs(h,b),M,O),W&&Ut(h,null,w,"created"),ae(P,h,h.scopeId,M,w),G){for(const ue in G)ue!=="value"&&!mn(ue)&&o(P,ue,null,G[ue],b,w);"value"in G&&o(P,"value",null,G.value,b),($=G.onVnodeBeforeMount)&&it($,w,h)}W&&Ut(h,null,w,"beforeMount");const ee=va(S,q);ee&&q.beforeEnter(P),s(P,v,g),(($=G&&G.onVnodeMounted)||ee||W)&&Fe(()=>{$&&it($,w,h),ee&&q.enter(P),W&&Ut(h,null,w,"mounted")},S)},ae=(h,v,g,w,S)=>{if(g&&m(h,g),w)for(let b=0;b{for(let $=P;${const O=v.el=h.el;let{patchFlag:P,dynamicChildren:$,dirs:G}=v;P|=h.patchFlag&16;const N=h.props||ce,q=v.props||ce;let W;if(g&&Bt(g,!1),(W=q.onVnodeBeforeUpdate)&&it(W,g,v,h),G&&Ut(v,h,g,"beforeUpdate"),g&&Bt(g,!0),$&&(!h.dynamicChildren||h.dynamicChildren.length!==$.length)&&(P=0,M=!1,$=null),(N.innerHTML&&q.innerHTML==null||N.textContent&&q.textContent==null)&&f(O,""),$?qe(h.dynamicChildren,$,O,g,w,Cs(v,S),b):M||te(h,v,O,null,g,w,Cs(v,S),b,!1),P>0){if(P&16)tt(O,N,q,g,S);else if(P&2&&N.class!==q.class&&o(O,"class",null,q.class,S),P&4&&o(O,"style",N.style,q.style,S),P&8){const ee=v.dynamicProps;for(let ue=0;ue{W&&it(W,g,v,h),G&&Ut(v,h,g,"updated")},w)},qe=(h,v,g,w,S,b,M)=>{for(let O=0;O{if(v!==g){if(v!==ce)for(const b in v)!mn(b)&&!(b in g)&&o(h,b,v[b],null,S,w);for(const b in g){if(mn(b))continue;const M=g[b],O=v[b];M!==O&&b!=="value"&&o(h,b,O,M,S,w)}"value"in g&&o(h,"value",v.value,g.value,S)}},nt=(h,v,g,w,S,b,M,O,P)=>{const $=v.el=h?h.el:a(""),G=v.anchor=h?h.anchor:a("");let{patchFlag:N,dynamicChildren:q,slotScopeIds:W}=v;W&&(O=O?O.concat(W):W),h==null?(s($,g,w),s(G,g,w),Ve(v.children||[],g,G,S,b,M,O,P)):N>0&&N&64&&q&&h.dynamicChildren&&h.dynamicChildren.length===q.length?(qe(h.dynamicChildren,q,g,S,b,M,O),(v.key!=null||S&&v===S.subTree)&&hr(h,v,!0)):te(h,v,g,G,S,b,M,O,P)},Ke=(h,v,g,w,S,b,M,O,P)=>{v.slotScopeIds=O,h==null?v.shapeFlag&512?S.ctx.activate(v,g,w,M,P):Lt(v,g,w,S,b,M,P):Q(h,v,P)},Lt=(h,v,g,w,S,b,M)=>{const O=h.component=Sa(h,w,S);if(ol(h)&&(O.ctx.renderer=H),Ra(O,!1,M),O.asyncDep){if(S&&S.registerDep(O,U,M),!h.el){const P=O.subTree=ne($t);j(null,P,v,g),h.placeholder=P.el}}else U(O,h,v,g,S,b,M)},Q=(h,v,g)=>{const w=v.component=h.component;if(ra(h,v,g))if(w.asyncDep&&!w.asyncResolved){v.el=h.el,B(w,v,g);return}else w.next=v,w.update();else v.el=h.el,w.vnode=v},U=(h,v,g,w,S,b,M)=>{const O=()=>{if(h.isMounted){let{next:N,bu:q,u:W,parent:ee,vnode:ue}=h;{const ot=mr(h);if(ot){N&&(N.el=ue.el,B(h,N,M)),ot.asyncDep.then(()=>{Fe(()=>{h.isUnmounted||$()},S)});return}}let ie=N,ye;Bt(h,!1),N?(N.el=ue.el,B(h,N,M)):N=ue,q&&jn(q),(ye=N.props&&N.props.onVnodeBeforeUpdate)&&it(ye,ee,N,ue),Bt(h,!0);const Ee=Ol(h),lt=h.subTree;h.subTree=Ee,y(lt,Ee,c(lt.el),x(lt),h,S,b),N.el=Ee.el,ie===null&&ia(h,Ee.el),W&&Fe(W,S),(ye=N.props&&N.props.onVnodeUpdated)&&Fe(()=>it(ye,ee,N,ue),S)}else{let N;const{el:q,props:W}=v,{bm:ee,m:ue,parent:ie,root:ye,type:Ee}=h,lt=yn(v);Bt(h,!1),ee&&jn(ee),!lt&&(N=W&&W.onVnodeBeforeMount)&&it(N,ie,v),Bt(h,!0);{ye.ce&&ye.ce._hasShadowRoot()&&ye.ce._injectChildStyle(Ee,h.parent?h.parent.type:void 0);const ot=h.subTree=Ol(h);y(null,ot,g,w,h,S,b),v.el=ot.el}if(ue&&Fe(ue,S),!lt&&(N=W&&W.onVnodeMounted)){const ot=v;Fe(()=>it(N,ie,ot),S)}(v.shapeFlag&256||ie&&yn(ie.vnode)&&ie.vnode.shapeFlag&256)&&h.a&&Fe(h.a,S),h.isMounted=!0,v=g=w=null}};h.scope.on();const P=h.effect=new So(O);h.scope.off();const $=h.update=P.run.bind(P),G=h.job=P.runIfDirty.bind(P);G.i=h,G.id=h.uid,P.scheduler=()=>sl(G),Bt(h,!0),$()},B=(h,v,g)=>{v.component=h;const w=h.vnode.props;h.vnode=v,h.next=null,ua(h,v.props,w,g),pa(h,v.children,g),Et(),xl(h),Rt()},te=(h,v,g,w,S,b,M,O,P=!1)=>{const $=h&&h.children,G=h?h.shapeFlag:0,N=v.children,{patchFlag:q,shapeFlag:W}=v;if(q>0){if(q&128){kt($,N,g,w,S,b,M,O,P);return}else if(q&256){vt($,N,g,w,S,b,M,O,P);return}}W&8?(G&16&&Ge($,S,b),N!==$&&f(g,N)):G&16?W&16?kt($,N,g,w,S,b,M,O,P):Ge($,S,b,!0):(G&8&&f(g,""),W&16&&Ve(N,g,w,S,b,M,O,P))},vt=(h,v,g,w,S,b,M,O,P)=>{h=h||qt,v=v||qt;const $=h.length,G=v.length,N=Math.min($,G);let q;for(q=0;qG?Ge(h,S,b,!0,!1,N):Ve(v,g,w,S,b,M,O,P,N)},kt=(h,v,g,w,S,b,M,O,P)=>{let $=0;const G=v.length;let N=h.length-1,q=G-1;for(;$<=N&&$<=q;){const W=h[$],ee=v[$]=P?bt(v[$]):ct(v[$]);if(cn(W,ee))y(W,ee,g,null,S,b,M,O,P);else break;$++}for(;$<=N&&$<=q;){const W=h[N],ee=v[q]=P?bt(v[q]):ct(v[q]);if(cn(W,ee))y(W,ee,g,null,S,b,M,O,P);else break;N--,q--}if($>N){if($<=q){const W=q+1,ee=Wq)for(;$<=N;)Oe(h[$],S,b,!0),$++;else{const W=$,ee=$,ue=new Map;for($=ee;$<=q;$++){const Ue=v[$]=P?bt(v[$]):ct(v[$]);Ue.key!=null&&ue.set(Ue.key,$)}let ie,ye=0;const Ee=q-ee+1;let lt=!1,ot=0;const an=new Array(Ee);for($=0;$=Ee){Oe(Ue,S,b,!0);continue}let rt;if(Ue.key!=null)rt=ue.get(Ue.key);else for(ie=ee;ie<=q;ie++)if(an[ie-ee]===0&&cn(Ue,v[ie])){rt=ie;break}rt===void 0?Oe(Ue,S,b,!0):(an[rt-ee]=$+1,rt>=ot?ot=rt:lt=!0,y(Ue,v[rt],g,null,S,b,M,O,P),ye++)}const hl=lt?ga(an):qt;for(ie=hl.length-1,$=Ee-1;$>=0;$--){const Ue=ee+$,rt=v[Ue],ml=v[Ue+1],vl=Ue+1{const{el:b,type:M,transition:O,children:P,shapeFlag:$}=h;if($&6){st(h.component.subTree,v,g,w);return}if($&128){h.suspense.move(v,g,w);return}if($&64){M.move(h,v,g,H);return}if(M===Y){s(b,v,g);for(let N=0;NO.enter(b),S));else{const{leave:N,delayLeave:q,afterLeave:W}=O,ee=()=>{h.ctx.isUnmounted?l(b):s(b,v,g)},ue=()=>{const ie=b._isLeaving||!!b[bs];b._isLeaving&&b[bs](!0),O.persisted&&!ie?ee():N(b,()=>{ee(),W&&W()})};q?q(b,ee,ue):ue()}else s(b,v,g)},Oe=(h,v,g,w=!1,S=!1)=>{const{type:b,props:M,ref:O,children:P,dynamicChildren:$,shapeFlag:G,patchFlag:N,dirs:q,cacheIndex:W,memo:ee}=h;if((N===-2||$&&$.hasOnce)&&(S=!1),O!=null&&(Et(),_n(O,null,g,h,!0),Rt()),W!=null&&(!h.ctx||h.ctx===v)&&(v.renderCache[W]=void 0),G&256){v.ctx.deactivate(h);return}const ue=G&1&&q,ie=!yn(h);let ye;if(ie&&(ye=M&&M.onVnodeBeforeUnmount)&&it(ye,v,h),G&6)jt(h.component,g,w);else{if(G&128){h.suspense.unmount(g,w);return}ue&&Ut(h,null,v,"beforeUnmount"),G&64?h.type.remove(h,v,g,H,w):$&&!$.hasOnce&&(b!==Y||N>0&&N&64)?Ge($,v,g,!1,!0):(b===Y&&N&384||!S&&G&16)&&Ge(P,v,g),w&&Jt(h)}const Ee=ee!=null&&W==null;(ie&&(ye=M&&M.onVnodeUnmounted)||ue||Ee)&&Fe(()=>{ye&&it(ye,v,h),ue&&Ut(h,null,v,"unmounted"),Ee&&(h.el=null)},g)},Jt=h=>{const{type:v,el:g,anchor:w,transition:S}=h;if(v===Y){Qt(g,w);return}if(v===Bn){D(h),S&&!S.persisted&&S.afterLeave&&S.afterLeave();return}const b=()=>{l(g),S&&!S.persisted&&S.afterLeave&&S.afterLeave()};if(h.shapeFlag&1&&S&&!S.persisted){const{leave:M,delayLeave:O}=S,P=()=>M(g,b);O?O(h.el,b,P):P()}else b()},Qt=(h,v)=>{let g;for(;h!==v;)g=d(h),l(h),h=g;l(v)},jt=(h,v,g)=>{const{bum:w,scope:S,job:b,subTree:M,um:O,m:P,a:$}=h;Il(P),Il($),w&&jn(w),S.stop(),b?(b.flags|=8,Oe(M,h,v,g)):h.vnode.el&&M&&(M.transition=h.vnode.transition,Oe(M,h,v,g)),O&&Fe(O,v),Fe(()=>{h.isUnmounted=!0},v)},Ge=(h,v,g,w=!1,S=!1,b=0)=>{for(let M=b;M{if(h.shapeFlag&6)return x(h.component.subTree);if(h.shapeFlag&128)return h.suspense.next();const v=d(h.anchor||h.el),g=v&&v[Ti];return g?d(g):v};let L=!1;const I=(h,v,g)=>{let w;h==null?v._vnode&&(Oe(v._vnode,null,null,!0),w=v._vnode.component):y(v._vnode||null,h,v,null,null,null,g),v._vnode=h,L||(L=!0,xl(w),qo(),L=!1)},H={p:y,um:Oe,m:st,r:Jt,mt:Lt,mc:Ve,pc:te,pbc:qe,n:x,o:e};return{render:I,hydrate:void 0,createApp:ea(I)}}function Cs({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Bt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function va(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function hr(e,t,n=!1){const s=e.children,l=t.children;if(K(s)&&K(l))for(let o=0;o>1,e[n[a]]0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function mr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:mr(t)}function Il(e){if(e)for(let t=0;te.__isSuspense;function _a(e,t){t&&t.pendingBranch?K(e)?t.effects.push(...e):t.effects.push(e):Ai(e)}const Y=Symbol.for("v-fgt"),fs=Symbol.for("v-txt"),$t=Symbol.for("v-cmt"),Bn=Symbol.for("v-stc"),Wt=[];let He=null;function E(e=!1){Wt.push(He=e?null:[])}function _r(){Wt.pop(),He=Wt[Wt.length-1]||null}let En=1;function Yn(e,t=!1){En+=e,e<0&&He&&t&&(He.hasOnce=!0)}function yr(e){return e.dynamicChildren=En>0?He||qt:null,_r(),En>0&&He&&He.push(e),e}function R(e,t,n,s,l,o){return yr(r(e,t,n,s,l,o,!0))}function br(e,t,n,s,l){return yr(ne(e,t,n,s,l,!0))}function Jn(e){return e?e.__v_isVNode===!0:!1}function cn(e,t){return e.type===t.type&&e.key===t.key}const wr=({key:e})=>e??null,Hn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ve(e)||Pe(e)||z(e)?{i:Be,r:e,k:t,f:!!n}:e:null);function r(e,t=null,n=null,s=0,l=null,o=e===Y?0:1,i=!1,a=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&wr(t),ref:t&&Hn(t),scopeId:Go,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:Be};return a?(Qn(u,n),o&128&&e.normalize(u)):n&&(u.shapeFlag|=ve(n)?8:16),En>0&&!i&&He&&(u.patchFlag>0||o&6)&&u.patchFlag!==32&&He.push(u),u}const ne=ya;function ya(e,t=null,n=null,s=0,l=null,o=!1){if((!e||e===Ki)&&(e=$t),Jn(e)){const a=sn(e,t,!0);return n&&Qn(a,n),En>0&&!o&&He&&(a.shapeFlag&6?He[He.indexOf(e)]=a:He.push(a)),a.patchFlag=-2,a}if(Oa(e)&&(e=e.__vccOpts),t){t=ba(t);let{class:a,style:u}=t;a&&!ve(a)&&(t.class=xe(a)),re(u)&&(tl(u)&&!K(u)&&(u=$e({},u)),t.style=Tn(u))}const i=ve(e)?1:gr(e)?128:as(e)?64:re(e)?4:z(e)?2:0;return r(e,t,n,s,l,i,o,!0)}function ba(e){return e?tl(e)||ar(e)?$e({},e):e:null}function sn(e,t,n=!1,s=!1){const{props:l,ref:o,patchFlag:i,children:a,transition:u}=e,p=t?wa(l||{},t):l,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:p,key:p&&wr(p),ref:t&&t.ref?n&&o?K(o)?o.concat(Hn(t)):[o,Hn(t)]:Hn(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!==Y?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&sn(e.ssContent),ssFallback:e.ssFallback&&sn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return u&&s&&ll(f,u.clone(f)),f}function It(e=" ",t=0){return ne(fs,null,e,t)}function pn(e,t){const n=ne(Bn,null,e);return n.staticCount=t,n}function Z(e="",t=!1){return t?(E(),br($t,null,e)):ne($t,null,e)}function ct(e){return e==null||typeof e=="boolean"?ne($t):K(e)?ne(Y,null,e.slice()):Jn(e)?bt(e):ne(fs,null,String(e))}function bt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:sn(e)}function Qn(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(K(t))n=16;else if(typeof t=="object")if(s&65){const l=t.default;l&&(l._c&&(l._d=!1),Qn(e,l()),l._c&&(l._d=!0));return}else{n=32;const l=t._;!l&&!ar(t)?t._ctx=Be:l===3&&Be&&(Be.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(z(t)){if(s&65){Qn(e,{default:t});return}t={default:t,_ctx:Be},n=32}else t=String(t),s&64?(n=16,t=[It(t)]):n=8;e.children=t,e.shapeFlag|=n}function wa(...e){const t={};for(let n=0;nke||Be;let Xn,Rn;{const e=ls(),t=(n,s)=>{let l;return(l=e[n])||(l=e[n]=[]),l.push(s),o=>{l.length>1?l.forEach(i=>i(o)):l[0](o)}};Xn=t("__VUE_INSTANCE_SETTERS__",n=>ke=n),Rn=t("__VUE_SSR_SETTERS__",n=>$n=n)}const In=e=>{const t=ke;return Xn(e),e.scope.on(),()=>{e.scope.off(),Xn(t)}},Nl=()=>{ke&&ke.scope.off(),Xn(null)};function Cr(e){return e.vnode.shapeFlag&4}let $n=!1;function Ra(e,t=!1,n=!1){t&&Rn(t);const{props:s,children:l}=e.vnode,o=Cr(e);aa(e,s,o,t),da(e,l,n||t);const i=o?$a(e,t):void 0;return t&&Rn(!1),i}function $a(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Wi);const{setup:s}=n;if(s){Et();const l=e.setupContext=s.length>1?ka(e):null,o=In(e),i=Mn(s,e,0,[e.props,l]),a=vo(i);if(Rt(),o(),(a||e.sp)&&!yn(e)&&Xo(e),a){if(i.then(Nl,Nl),t)return i.then(u=>{Rn(!0);try{Dl(e,u,t)}finally{Rn(!1)}}).catch(u=>{is(u,e,0)});e.asyncDep=i}else Dl(e,i)}else xr(e)}function Dl(e,t,n){z(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:re(t)&&(e.setupState=Uo(t)),xr(e)}function xr(e,t,n){const s=e.type;e.render||(e.render=s.render||pt);{const l=In(e);Et();try{zi(e)}finally{Rt(),l()}}}const Aa={get(e,t){return Ae(e,"get",""),e[t]}};function ka(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Aa),slots:e.slots,emit:e.emit,expose:t}}function ds(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Uo(Lo(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in bn)return bn[n](e)},has(t,n){return n in t||n in bn}})):e.proxy}function Pa(e,t=!0){return z(e)?e.displayName||e.name:e.name||t&&e.__name}function Oa(e){return z(e)&&"__vccOpts"in e}const Ce=(e,t)=>xi(e,t,$n);function Sr(e,t,n){try{Yn(-1);const s=arguments.length;return s===2?re(t)&&!K(t)?Jn(t)?ne(e,null,[t]):ne(e,t):ne(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Jn(n)&&(n=[n]),ne(e,t,n))}finally{Yn(1)}}const Ta="3.5.43";let js;const Vl=typeof window<"u"&&window.trustedTypes;if(Vl)try{js=Vl.createPolicy("vue",{createHTML:e=>e})}catch{}const Er=js?e=>js.createHTML(e):e=>e,Ma="http://www.w3.org/2000/svg",Ia="http://www.w3.org/1998/Math/MathML",yt=typeof document<"u"?document:null,Fl=yt&&yt.createElement("template"),Na={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const l=t==="svg"?yt.createElementNS(Ma,e):t==="mathml"?yt.createElementNS(Ia,e):n?yt.createElement(e,{is:n}):yt.createElement(e);return e==="select"&&s&&s.multiple!=null&&l.setAttribute("multiple",s.multiple),l},createText:e=>yt.createTextNode(e),createComment:e=>yt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>yt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,l,o){const i=n?n.previousSibling:t.lastChild;if(l&&(l===o||l.nextSibling))for(;t.insertBefore(l.cloneNode(!0),n),!(l===o||!(l=l.nextSibling)););else{Fl.innerHTML=Er(s==="svg"?`${e}`:s==="mathml"?`${e}`:e);const a=Fl.content;if(s==="svg"||s==="mathml"){const u=a.firstChild;for(;u.firstChild;)a.appendChild(u.firstChild);a.removeChild(u)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Da=Symbol("_vtc");function Va(e,t,n){const s=e[Da];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ll=Symbol("_vod"),Fa=Symbol("_vsh"),La=Symbol(""),ja=/(?:^|;)\s*display\s*:/;function Ua(e,t,n){const s=e.style,l=ve(n);let o=!1;if(n&&!l){if(t)if(ve(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&hn(s,a,"")}else for(const i in t)n[i]==null&&hn(s,i,"");for(const i in n){i==="display"&&(o=!0);const a=n[i];a!=null?Ha(e,i,!ve(t)&&t?t[i]:void 0,a)||hn(s,i,a):hn(s,i,"")}}else if(l){if(t!==n){const i=s[La];i&&(n+=";"+i),s.cssText=n,o=ja.test(n)}}else t&&e.removeAttribute("style");Ll in e&&(e[Ll]=o?s.display:"",e[Fa]&&(s.display="none"))}const Fn=/\s*!important$/;function hn(e,t,n){if(K(n))n.forEach(s=>hn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))Fn.test(n)?e.setProperty(t,n.replace(Fn,""),"important"):e.setProperty(t,n);else{const s=Ba(e,t);Fn.test(n)?e.setProperty(zt(s),n.replace(Fn,""),"important"):e[s]=n}}const jl=["Webkit","Moz","ms"],xs={};function Ba(e,t){const n=xs[t];if(n)return n;let s=Ne(t);if(s!=="filter"&&s in e)return xs[t]=s;s=ns(s);for(let l=0;lSs||(Ya.then(()=>Ss=0),Ss=Date.now());function Qa(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;const l=n.value;if(K(l)){const o=s.stopImmediatePropagation;s.stopImmediatePropagation=()=>{o.call(s),s._stopped=!0};const i=l.slice(),a=[s];for(let u=0;ue.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Xa=(e,t,n,s,l,o)=>{const i=l==="svg";t==="class"?Va(e,s,i):t==="style"?Ua(e,n,s):Zn(t)?es(t)||Ka(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Za(e,t,s,i))?(Hl(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Bl(e,t,s,i,o,t!=="value")):e._isVueCE&&(eu(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ve(s)))?Hl(e,Ne(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Bl(e,t,s,i))};function Za(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Kl(t)&&z(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const l=e.tagName;if(l==="IMG"||l==="VIDEO"||l==="CANVAS"||l==="SOURCE")return!1}return Kl(t)&&ve(n)?!1:t in e}function eu(e,t){const n=e._def.props;if(!n)return!1;const s=Ne(t);return Array.isArray(n)?n.some(l=>Ne(l)===s):Object.keys(n).some(l=>Ne(l)===s)}const ln=e=>{const t=e.props["onUpdate:modelValue"]||!1;return K(t)?n=>jn(t,n):t};function tu(e){e.target.composing=!0}function Gl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const dt=Symbol("_assign"),Ln=Symbol("_initialValue");function Es(e,t,n){return t&&(e=e.trim()),n&&(e=ss(e)),e}const Se={created(e,{modifiers:{lazy:t,trim:n,number:s}},l){e.parentNode&&(e.type==="text"?e[Ln]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[Ln]=e.defaultValue.replace(/\r\n?/g,` `))),e[dt]=ln(l);const o=s||l.props&&l.props.type==="number";Mt(e,t?"change":"input",i=>{i.target.composing||e[dt](Es(e.value,n,o))}),(n||o)&&Mt(e,"change",()=>{e.value=Es(e.value,n,o)}),t||(Mt(e,"compositionstart",tu),Mt(e,"compositionend",Gl),Mt(e,"change",Gl))},mounted(e,{value:t,modifiers:{trim:n,number:s}}){const l=t??"",o=e[Ln];delete e[Ln],o!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==o?e[dt](Es(e.value,n,s)):e.value=l},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:l,number:o}},i){if(e[dt]=ln(i),e.composing)return;const a=(o||e.type==="number")&&!/^0\d/.test(e.value)?ss(e.value):e.value,u=t??"";if(a===u)return;const p=e.getRootNode();(p instanceof Document||p instanceof ShadowRoot)&&p.activeElement===e&&e.type!=="range"&&(s&&t===n||l&&e.value.trim()===u)||(e.value=u)}},nu={deep:!0,created(e,t,n){e[dt]=ln(n),Mt(e,"change",()=>{const s=e._modelValue,l=kn(e),o=e.checked,i=e[dt];if(K(s)){const a=zs(s,l),u=a!==-1;if(o&&!u)i(s.concat(l));else if(!o&&u){const p=[...s];p.splice(a,1),i(p)}}else if(xt(s)){const a=new Set(s);o?a.add(l):a.delete(l),i(a)}else i(Rr(e,o))})},mounted:Wl,beforeUpdate(e,t,n){e[dt]=ln(n),Wl(e,t,n)}};function Wl(e,{value:t,oldValue:n},s){e._modelValue=t;let l;if(K(t))l=zs(t,s.props.value)>-1;else if(xt(t))l=t.has(s.props.value);else{if(t===n)return;l=St(t,Rr(e,!0))}e.checked!==l&&(e.checked=l)}const An={deep:!0,created(e,{value:t,modifiers:{number:n}},s){e._modelValue=t,Mt(e,"change",()=>{const l=Array.prototype.filter.call(e.options,u=>u.selected).map(u=>n?ss(kn(u)):kn(u)),o=e.multiple,i=o?xt(e._modelValue)?new Set(l):l:l[0],a=e._pendingValue=[o,o?K(i)?l.slice():l:i];try{e[dt](i)}finally{nl(()=>{e._pendingValue===a&&(e._pendingValue=void 0)})}}),e[dt]=ln(s)},mounted(e,{value:t}){zl(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[dt]=ln(n)},updated(e,{value:t}){const n=e._pendingValue;e._pendingValue=void 0,(!n||n[0]!==e.multiple||!su(t,n[1],n[0]))&&zl(e,t)}};function su(e,t,n){if(!n||K(e))return St(e,t);if(xt(e)){if(e.size!==t.length)return!1;for(const s of t)if(!e.has(s))return!1;return!0}return!1}function zl(e,t){const n=e.multiple,s=K(t);if(!(n&&!s&&!xt(t))){for(let l=0,o=e.options.length;lString(p)===String(a)):i.selected=zs(t,a)>-1}else i.selected=t.has(a);else if(St(kn(i),t)){e.selectedIndex!==l&&(e.selectedIndex=l);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function kn(e){return"_value"in e?e._value:e.value}function Rr(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const lu=["ctrl","shift","alt","meta"],ou={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)=>lu.some(n=>e[`${n}Key`]&&!t.includes(n))},je=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=((l,...o)=>{for(let i=0;i{const t=iu().createApp(...e),{mount:n}=t;return t.mount=s=>{const l=cu(s);if(!l)return;const o=t._component;!z(o)&&!o.render&&!o.template&&(o.template=l.innerHTML),l.nodeType===1&&(l.textContent="");const i=n(l,!1,uu(l));return l instanceof Element&&(l.removeAttribute("v-cloak"),l.setAttribute("data-v-app","")),i},t});function uu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function cu(e){return ve(e)?document.querySelector(e):e}const fu=Symbol();var Jl;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Jl||(Jl={}));function du(){const e=ei(!0),t=e.run(()=>A({}));let n=[],s=[];const l=Lo({install(o){l._a=o,o.provide(fu,l),o.config.globalProperties.$pinia=l,s.forEach(i=>n.push(i)),s=[]},use(o){return this._a?n.push(o):s.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return l}const $r=(e,t)=>{const n=e.__vccOpts||e;for(const[s,l]of t)n[s]=l;return n},pu={};function hu(e,t){const n=Ns("router-view");return E(),br(n)}const mu=$r(pu,[["render",hu]]);const en=typeof document<"u";function Ar(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function vu(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Ar(e.default)}const se=Object.assign;function Rs(e,t){const n={};for(const s in t){const l=t[s];n[s]=Xe(l)?l.map(e):e(l)}return n}const wn=()=>{},Xe=Array.isArray;function Ql(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const kr=/#/g,gu=/&/g,_u=/\//g,yu=/=/g,bu=/\?/g,Pr=/\+/g,wu=/%5B/g,Cu=/%5D/g,Or=/%5E/g,xu=/%60/g,Tr=/%7B/g,Su=/%7C/g,Mr=/%7D/g,Eu=/%20/g;function ul(e){return e==null?"":encodeURI(""+e).replace(Su,"|").replace(wu,"[").replace(Cu,"]")}function Ru(e){return ul(e).replace(Tr,"{").replace(Mr,"}").replace(Or,"^")}function Us(e){return ul(e).replace(Pr,"%2B").replace(Eu,"+").replace(kr,"%23").replace(gu,"%26").replace(xu,"`").replace(Tr,"{").replace(Mr,"}").replace(Or,"^")}function $u(e){return Us(e).replace(yu,"%3D")}function Au(e){return ul(e).replace(kr,"%23").replace(bu,"%3F")}function ku(e){return Au(e).replace(_u,"%2F")}function Pn(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Pu=/\/$/,Ou=e=>e.replace(Pu,"");function $s(e,t,n="/"){let s,l={},o="",i="";const a=t.indexOf("#");let u=t.indexOf("?");return u=a>=0&&u>a?-1:u,u>=0&&(s=t.slice(0,u),o=t.slice(u,a>0?a:t.length),l=e(o.slice(1))),a>=0&&(s=s||t.slice(0,a),i=t.slice(a,t.length)),s=Nu(s??t,n),{fullPath:s+o+i,path:s,query:l,hash:Pn(i)}}function Tu(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Xl(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Mu(e,t,n){const s=t.matched.length-1,l=n.matched.length-1;return s>-1&&s===l&&on(t.matched[s],n.matched[l])&&Ir(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function on(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ir(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Iu(e[n],t[n]))return!1;return!0}function Iu(e,t){return Xe(e)?Zl(e,t):Xe(t)?Zl(t,e):e?.valueOf()===t?.valueOf()}function Zl(e,t){return Xe(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function Nu(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),l=s[s.length-1];(l===".."||l===".")&&s.push("");let o=n.length-1,i,a;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(i).join("/")}const Pt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Bs=(function(e){return e.pop="pop",e.push="push",e})({}),As=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function Du(e){if(!e)if(en){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Ou(e)}const Vu=/^[^#]+#/;function Fu(e,t){return e.replace(Vu,"#")+t}function Lu(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const ps=()=>({left:window.scrollX,top:window.scrollY});function ju(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),l=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!l)return;t=Lu(l,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 eo(e,t){return(history.state?history.state.position-t:-1)+e}const Hs=new Map;function Uu(e,t){Hs.set(e,t)}function Bu(e){const t=Hs.get(e);return Hs.delete(e),t}function Hu(e){return typeof e=="string"||e&&typeof e=="object"}function Nr(e){return typeof e=="string"||typeof e=="symbol"}let me=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const Dr=Symbol("");me.MATCHER_NOT_FOUND+"",me.NAVIGATION_GUARD_REDIRECT+"",me.NAVIGATION_ABORTED+"",me.NAVIGATION_CANCELLED+"",me.NAVIGATION_DUPLICATED+"";function rn(e,t){return se(new Error,{type:e,[Dr]:!0},t)}function _t(e,t){return e instanceof Error&&Dr in e&&(t==null||!!(e.type&t))}const qu=["params","query","hash"];function Ku(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of qu)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Gu(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;sl&&Us(l)):[s&&Us(s)]).forEach(l=>{l!==void 0&&(t+=(t.length?"&":"")+n,l!=null&&(t+="="+l))})}return t}function Wu(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Xe(s)?s.map(l=>l==null?null:""+l):s==null?s:""+s)}return t}const zu=Symbol(""),no=Symbol(""),hs=Symbol(""),cl=Symbol(""),qs=Symbol("");function fn(){let e=[];function t(s){return e.push(s),()=>{const l=e.indexOf(s);l>-1&&e.splice(l,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Tt(e,t,n,s,l,o=i=>i()){const i=s&&(s.enterCallbacks[l]=s.enterCallbacks[l]||[]);return()=>new Promise((a,u)=>{const p=d=>{d===!1?u(rn(me.NAVIGATION_ABORTED,{from:n,to:t})):d instanceof Error?u(d):Hu(d)?u(rn(me.NAVIGATION_GUARD_REDIRECT,{from:t,to:d})):(i&&s.enterCallbacks[l]===i&&typeof d=="function"&&i.push(d),a())},f=o(()=>e.call(s&&s.instances[l],t,n,p));let c=Promise.resolve(f);e.length<3&&(c=c.then(p)),c.catch(d=>u(d))})}function ks(e,t,n,s,l=o=>o()){const o=[];for(const i of e)for(const a in i.components){let u=i.components[a];if(!(t!=="beforeRouteEnter"&&!i.instances[a]))if(Ar(u)){const p=(u.__vccOpts||u)[t];p&&o.push(Tt(p,n,s,i,a,l))}else{let p=u();o.push(()=>p.then(f=>{if(!f)throw new Error(`Couldn't resolve component "${a}" at "${i.path}"`);const c=vu(f)?f.default:f;i.mods[a]=f,i.components[a]=c;const d=(c.__vccOpts||c)[t];return d&&Tt(d,n,s,i,a,l)()}))}}return o}function Yu(e,t){const n=[],s=[],l=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;ion(p,a))?s.push(a):n.push(a));const u=e.matched[i];u&&(t.matched.find(p=>on(p,u))||l.push(u))}return[n,s,l]}let Ju=()=>location.protocol+"//"+location.host;function Vr(e,t){const{pathname:n,search:s,hash:l}=t,o=e.indexOf("#");if(o>-1){let i=l.includes(e.slice(o))?e.slice(o).length:1,a=l.slice(i);return a[0]!=="/"&&(a="/"+a),Xl(a,"")}return Xl(n,e)+s+l}function Qu(e,t,n,s){let l=[],o=[],i=null;const a=({state:d})=>{const m=Vr(e,location),C=n.value,y=t.value;let T=0;if(d){if(n.value=m,t.value=d,i&&i===C){i=null;return}T=y?d.position-y.position:0}else s(m);l.forEach(j=>{j(n.value,C,{delta:T,type:Bs.pop,direction:T?T>0?As.forward:As.back:As.unknown})})};function u(){i=n.value}function p(d){l.push(d);const m=()=>{const C=l.indexOf(d);C>-1&&l.splice(C,1)};return o.push(m),m}function f(){if(document.visibilityState==="hidden"){const{history:d}=window;if(!d.state)return;d.replaceState(se({},d.state,{scroll:ps()}),"")}}function c(){for(const d of o)d();o=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",f),document.removeEventListener("visibilitychange",f)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",f),document.addEventListener("visibilitychange",f),{pauseListeners:u,listen:p,destroy:c}}function so(e,t,n,s=!1,l=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:l?ps():null}}function Xu(e){const{history:t,location:n}=window,s={value:Vr(e,n)},l={value:t.state};l.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(u,p,f){const c=e.indexOf("#"),d=c>-1?(n.host&&document.querySelector("base")?e:e.slice(c))+u:Ju()+e+u;try{t[f?"replaceState":"pushState"](p,"",d),l.value=p}catch(m){console.error(m),n[f?"replace":"assign"](d)}}function i(u,p){o(u,se({},t.state,so(l.value.back,u,l.value.forward,!0),p,{position:l.value.position}),!0),s.value=u}function a(u,p){const f=se({},l.value,t.state,{forward:u,scroll:ps()});o(f.current,f,!0),o(u,se({},so(s.value,u,null),{position:f.position+1},p),!1),s.value=u}return{location:s,state:l,push:a,replace:i}}function Zu(e){e=Du(e);const t=Xu(e),n=Qu(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const l=se({location:"",base:e,go:s,createHref:Fu.bind(null,e)},t,n);return Object.defineProperty(l,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(l,"state",{enumerable:!0,get:()=>t.state.value}),l}let Kt=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var we=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(we||{});const ec={type:Kt.Static,value:""},tc=/[a-zA-Z0-9_]/;function nc(e){if(!e)return[[]];if(e==="/")return[[ec]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${p}": ${m}`)}let n=we.Static,s=n;const l=[];let o;function i(){o&&l.push(o),o=[]}let a=0,u,p="",f="";function c(){p&&(n===we.Static?o.push({type:Kt.Static,value:p}):n===we.Param||n===we.ParamRegExp||n===we.ParamRegExpEnd?(o.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),o.push({type:Kt.Param,value:p,regexp:f,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),p="")}function d(){p+=u}for(;at.length?t.length===1&&t[0]===Me.Static+Me.Segment?1:-1:0}function Fr(e,t){let n=0;const s=e.score,l=t.score;for(;n0&&t[t.length-1]<0}const ic={strict:!1,end:!0,sensitive:!1};function ac(e,t,n){const s=oc(nc(e.path),n),l=se(s,{record:e,parent:t,children:[],alias:[]});return t&&!l.record.aliasOf==!t.record.aliasOf&&t.children.push(l),l}function uc(e,t){const n=[],s=new Map;t=Ql(ic,t);function l(c){return s.get(c)}function o(c,d,m){const C=!m,y=io(c);y.aliasOf=m&&m.record;const T=Ql(t,c),j=[y];if("alias"in c){const D=typeof c.alias=="string"?[c.alias]:c.alias;for(const J of D)j.push(io(se({},y,{components:m?m.record.components:y.components,path:J,aliasOf:m?m.record:y})))}let k,V;for(const D of j){const{path:J}=D;if(d&&J[0]!=="/"){const fe=d.record.path,ae=fe[fe.length-1]==="/"?"":"/";D.path=d.record.path+(J&&ae+J)}if(k=ac(D,d,T),m?m.alias.push(k):(V=V||k,V!==k&&V.alias.push(k),C&&c.name&&!ao(k)&&i(c.name)),Lr(k)&&u(k),y.children){const fe=y.children;for(let ae=0;ae{i(V)}:wn}function i(c){if(Nr(c)){const d=s.get(c);d&&(s.delete(c),n.splice(n.indexOf(d),1),d.children.forEach(i),d.alias.forEach(i))}else{const d=n.indexOf(c);d>-1&&(n.splice(d,1),c.record.name&&s.delete(c.record.name),c.children.forEach(i),c.alias.forEach(i))}}function a(){return n}function u(c){const d=dc(c,n);n.splice(d,0,c),c.record.name&&!ao(c)&&s.set(c.record.name,c)}function p(c,d){let m,C={},y,T;if("name"in c&&c.name){if(m=s.get(c.name),!m)throw rn(me.MATCHER_NOT_FOUND,{location:c});T=m.record.name,C=se(ro(d.params,m.keys.filter(V=>!V.optional).concat(m.parent?m.parent.keys.filter(V=>V.optional):[]).map(V=>V.name)),c.params&&ro(c.params,m.keys.map(V=>V.name))),y=m.stringify(C)}else if(c.path!=null)y=c.path,m=n.find(V=>V.re.test(y)),m&&(C=m.parse(y),T=m.record.name);else{if(m=d.name?s.get(d.name):n.find(V=>V.re.test(d.path)),!m)throw rn(me.MATCHER_NOT_FOUND,{location:c,currentLocation:d});T=m.record.name,C=se({},d.params,c.params),y=m.stringify(C)}const j=[];let k=m;for(;k;)j.unshift(k.record),k=k.parent;return{name:T,path:y,params:C,matched:j,meta:fc(j)}}e.forEach(c=>o(c));function f(){n.length=0,s.clear()}return{addRoute:o,resolve:p,removeRoute:i,clearRoutes:f,getRoutes:a,getRecordMatcher:l}}function ro(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function io(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:cc(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 cc(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function ao(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function fc(e){return e.reduce((t,n)=>se(t,n.meta),{})}function dc(e,t){let n=0,s=t.length;for(;n!==s;){const o=n+s>>1;Fr(e,t[o])<0?s=o:n=o+1}const l=pc(e);return l&&(s=t.lastIndexOf(l,s-1)),s}function pc(e){let t=e;for(;t=t.parent;)if(Lr(t)&&Fr(e,t)===0)return t}function Lr({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function uo(e){const t=Je(hs),n=Je(cl),s=Ce(()=>{const u=F(e.to);return t.resolve(u)}),l=Ce(()=>{const{matched:u}=s.value,{length:p}=u,f=u[p-1],c=n.matched;if(!f||!c.length)return-1;const d=c.findIndex(on.bind(null,f));if(d>-1)return d;const m=co(u[p-2]);return p>1&&co(f)===m&&c[c.length-1].path!==m?c.findIndex(on.bind(null,u[p-2])):d}),o=Ce(()=>l.value>-1&&_c(n.params,s.value.params)),i=Ce(()=>l.value>-1&&l.value===n.matched.length-1&&Ir(n.params,s.value.params));function a(u={}){if(gc(u)){const p=t[F(e.replace)?"replace":"push"](F(e.to)).catch(wn);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>p),p}return Promise.resolve()}return{route:s,href:Ce(()=>s.value.href),isActive:o,isExactActive:i,navigate:a}}function hc(e){return e.length===1?e[0]:e}const mc=Qo({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:uo,setup(e,{slots:t}){const n=rs(uo(e)),{options:s}=Je(hs),l=Ce(()=>({[fo(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[fo(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&hc(t.default(n));return e.custom?o:Sr("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:l.value},o)}}}),vc=mc;function gc(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 _c(e,t){for(const n in t){const s=t[n],l=e[n];if(typeof s=="string"){if(s!==l)return!1}else if(!Xe(l)||l.length!==s.length||s.some((o,i)=>o.valueOf()!==l[i].valueOf()))return!1}return!0}function co(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const fo=(e,t,n)=>e??t??n,yc=Qo({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Je(qs),l=Ce(()=>e.route||s.value),o=Je(no,0),i=Ce(()=>{let p=F(o);const{matched:f}=l.value;let c;for(;(c=f[p])&&!c.components;)p++;return p}),a=Ce(()=>l.value.matched[i.value]);Un(no,Ce(()=>i.value+1)),Un(zu,a),Un(qs,l);const u=A();return Vt(()=>[u.value,a.value,e.name],([p,f,c],[d,m,C])=>{f&&(f.instances[c]=p,m&&m!==f&&p&&p===d&&(f.leaveGuards.size||(f.leaveGuards=m.leaveGuards),f.updateGuards.size||(f.updateGuards=m.updateGuards))),p&&f&&(!m||!on(f,m)||!d)&&(f.enterCallbacks[c]||[]).forEach(y=>y(p))},{flush:"post"}),()=>{const p=l.value,f=e.name,c=a.value,d=c&&c.components[f];if(!d)return po(n.default,{Component:d,route:p});const m=c.props[f],C=m?m===!0?p.params:typeof m=="function"?m(p):m:null,T=Sr(d,se({},C,t,{onVnodeUnmounted:j=>{j.component.isUnmounted&&(c.instances[f]=null)},ref:u}));return po(n.default,{Component:T,route:p})||T}}});function po(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const bc=yc;function wc(e){const t=uc(e.routes,e),n=e.parseQuery||Gu,s=e.stringifyQuery||to,l=e.history,o=fn(),i=fn(),a=fn(),u=yi(Pt);let p=Pt;en&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=Rs.bind(null,x=>""+x),c=Rs.bind(null,ku),d=Rs.bind(null,Pn);function m(x,L){let I,H;return Nr(x)?(I=t.getRecordMatcher(x),H=L):H=x,t.addRoute(H,I)}function C(x){const L=t.getRecordMatcher(x);L&&t.removeRoute(L)}function y(){return t.getRoutes().map(x=>x.record)}function T(x){return!!t.getRecordMatcher(x)}function j(x,L){if(L=se({},L||u.value),typeof x=="string"){const g=$s(n,x,L.path),w=t.resolve({path:g.path},L),S=l.createHref(g.fullPath);return se(g,w,{params:d(w.params),hash:Pn(g.hash),redirectedFrom:void 0,href:S})}let I;if(x.path!=null)I=se({},x,{path:$s(n,x.path,L.path).path});else{const g=se({},x.params);for(const w in g)g[w]==null&&delete g[w];I=se({},x,{params:c(g)}),L.params=c(L.params)}const H=t.resolve(I,L),X=x.hash||"";H.params=f(d(H.params));const h=Tu(s,se({},x,{hash:Ru(X),path:H.path})),v=l.createHref(h);return se({fullPath:h,hash:X,query:s===to?Wu(x.query):x.query||{}},H,{redirectedFrom:void 0,href:v})}function k(x){return typeof x=="string"?$s(n,x,u.value.path):se({},x)}function V(x,L){if(p!==x)return rn(me.NAVIGATION_CANCELLED,{from:L,to:x})}function D(x){return ae(x)}function J(x){return D(se(k(x),{replace:!0}))}function fe(x,L){const I=x.matched[x.matched.length-1];if(I&&I.redirect){const{redirect:H}=I;let X=typeof H=="function"?H(x,L):H;return typeof X=="string"&&(X=X.includes("?")||X.includes("#")?X=k(X):{path:X},X.params={}),se({query:x.query,hash:x.hash,params:X.path!=null?{}:x.params},X)}}function ae(x,L){const I=p=j(x),H=u.value,X=x.state,h=x.force,v=x.replace===!0,g=fe(I,H);if(g)return ae(se(k(g),{state:typeof g=="object"?se({},X,g.state):X,force:h,replace:v}),L||I);const w=I;w.redirectedFrom=L;let S;return!h&&Mu(s,H,I)&&(S=rn(me.NAVIGATION_DUPLICATED,{to:w,from:H}),st(H,H,!0,!1)),(S?Promise.resolve(S):qe(w,H)).catch(b=>_t(b)?_t(b,me.NAVIGATION_GUARD_REDIRECT)?b:kt(b):te(b,w,H)).then(b=>{if(b){if(_t(b,me.NAVIGATION_GUARD_REDIRECT))return ae(se({replace:v},k(b.to),{state:typeof b.to=="object"?se({},X,b.to.state):X,force:h}),L||w)}else b=nt(w,H,!0,v,X);return tt(w,H,b),b})}function Ve(x,L){const I=V(x,L);return I?Promise.reject(I):Promise.resolve()}function et(x){const L=Qt.values().next().value;return L&&typeof L.runWithContext=="function"?L.runWithContext(x):x()}function qe(x,L){let I;const[H,X,h]=Yu(x,L);I=ks(H.reverse(),"beforeRouteLeave",x,L);for(const g of H)g.leaveGuards.forEach(w=>{I.push(Tt(w,x,L))});const v=Ve.bind(null,x,L);return I.push(v),Ge(I).then(()=>{I=[];for(const g of o.list())I.push(Tt(g,x,L));return I.push(v),Ge(I)}).then(()=>{I=ks(X,"beforeRouteUpdate",x,L);for(const g of X)g.updateGuards.forEach(w=>{I.push(Tt(w,x,L))});return I.push(v),Ge(I)}).then(()=>{I=[];for(const g of h)if(g.beforeEnter)if(Xe(g.beforeEnter))for(const w of g.beforeEnter)I.push(Tt(w,x,L));else I.push(Tt(g.beforeEnter,x,L));return I.push(v),Ge(I)}).then(()=>(x.matched.forEach(g=>g.enterCallbacks={}),I=ks(h,"beforeRouteEnter",x,L,et),I.push(v),Ge(I))).then(()=>{I=[];for(const g of i.list())I.push(Tt(g,x,L));return I.push(v),Ge(I)}).catch(g=>_t(g,me.NAVIGATION_CANCELLED)?g:Promise.reject(g))}function tt(x,L,I){a.list().forEach(H=>et(()=>H(x,L,I)))}function nt(x,L,I,H,X){const h=V(x,L);if(h)return h;const v=L===Pt,g=en?history.state:{};I&&(H||v?l.replace(x.fullPath,se({scroll:v&&g&&g.scroll},X)):l.push(x.fullPath,X)),u.value=x,st(x,L,I,v),kt()}let Ke;function Lt(){Ke||(Ke=l.listen((x,L,I)=>{if(!jt.listening)return;const H=j(x),X=fe(H,jt.currentRoute.value);if(X){ae(se(X,{replace:!0,force:!0}),H).catch(wn);return}p=H;const h=u.value;en&&Uu(eo(h.fullPath,I.delta),ps()),qe(H,h).catch(v=>_t(v,me.NAVIGATION_ABORTED|me.NAVIGATION_CANCELLED)?v:_t(v,me.NAVIGATION_GUARD_REDIRECT)?(ae(se(k(v.to),{force:!0}),H).then(g=>{_t(g,me.NAVIGATION_ABORTED|me.NAVIGATION_DUPLICATED)&&!I.delta&&I.type===Bs.pop&&l.go(-1,!1)}).catch(wn),Promise.reject()):(I.delta&&l.go(-I.delta,!1),te(v,H,h))).then(v=>{v=v||nt(H,h,!1),v&&(I.delta&&!_t(v,me.NAVIGATION_CANCELLED)?l.go(-I.delta,!1):I.type===Bs.pop&&_t(v,me.NAVIGATION_ABORTED|me.NAVIGATION_DUPLICATED)&&l.go(-1,!1)),tt(H,h,v)}).catch(wn)}))}let Q=fn(),U=fn(),B;function te(x,L,I){kt(x);const H=U.list();return H.length?H.forEach(X=>X(x,L,I)):console.error(x),Promise.reject(x)}function vt(){return B&&u.value!==Pt?Promise.resolve():new Promise((x,L)=>{Q.add([x,L])})}function kt(x){return B||(B=!x,Lt(),Q.list().forEach(([L,I])=>x?I(x):L()),Q.reset()),x}function st(x,L,I,H){const{scrollBehavior:X}=e;if(!en||!X)return Promise.resolve();const h=!I&&Bu(eo(x.fullPath,0))||(H||!I)&&history.state&&history.state.scroll||null;return nl().then(()=>X(x,L,h)).then(v=>v&&ju(v)).catch(v=>te(v,x,L))}const Oe=x=>l.go(x);let Jt;const Qt=new Set,jt={currentRoute:u,listening:!0,addRoute:m,removeRoute:C,clearRoutes:t.clearRoutes,hasRoute:T,getRoutes:y,resolve:j,options:e,push:D,replace:J,go:Oe,back:()=>Oe(-1),forward:()=>Oe(1),beforeEach:o.add,beforeResolve:i.add,afterEach:a.add,onError:U.add,isReady:vt,install(x){x.component("RouterLink",vc),x.component("RouterView",bc),x.config.globalProperties.$router=jt,Object.defineProperty(x.config.globalProperties,"$route",{enumerable:!0,get:()=>F(u)}),en&&!Jt&&u.value===Pt&&(Jt=!0,D(l.location).catch(H=>{}));const L={};for(const H in Pt)Object.defineProperty(L,H,{get:()=>u.value[H],enumerable:!0});x.provide(hs,jt),x.provide(cl,Fo(L)),x.provide(qs,u);const I=x.unmount;Qt.add(x),x.unmount=function(){Qt.delete(x),Qt.size<1&&(p=Pt,Ke&&Ke(),Ke=null,u.value=Pt,Jt=!1,B=!1),I()}}};function Ge(x){return x.reduce((L,I)=>L.then(()=>et(I)),Promise.resolve())}return jt}function fl(){return Je(hs)}function jr(e){return Je(cl)}const Cc="/api/v1";async function ge(e,{method:t="GET",body:n,auth:s=!0,query:l}={}){const o={Accept:"application/json"};n!==void 0&&(o["Content-Type"]="application/json");const i=localStorage.getItem("yemo_admin_token");s&&i&&(o.Authorization=`Bearer ${i}`);const a=`${Cc}${e}`,u=a.startsWith("http"),p=u?new URL(a):new URL(a,window.location.origin);l&&Object.entries(l).forEach(([d,m])=>{m!=null&&m!==""&&p.searchParams.set(d,m)});const f=await fetch(u?p.toString():p.pathname+p.search,{method:t,headers:o,body:n!==void 0?JSON.stringify(n):void 0}),c=await f.json().catch(()=>null);if(f.status===401&&s&&(localStorage.removeItem("yemo_admin_token"),localStorage.removeItem("yemo_admin_user"),window.location.pathname.startsWith("/login")||window.location.assign("/login")),!f.ok||!c?.data)throw new Error(c?.error?.message||"Le serveur n’a pas pu répondre.");return c.data}async function xc(e){const t=localStorage.getItem("yemo_admin_token"),n=await fetch(`/api/v1${e}`,{headers:{Accept:"*/*",...t?{Authorization:`Bearer ${t}`}:{}}});if(n.status===401&&(localStorage.removeItem("yemo_admin_token"),localStorage.removeItem("yemo_admin_user"),window.location.pathname.startsWith("/login")||window.location.assign("/login")),!n.ok)throw new Error("Document inaccessible.");return URL.createObjectURL(await n.blob())}const Sc={deposit:"Recharge",withdrawal:"Retrait",transfer:"Transfert",payment:"Paiement",posted:"Comptabilisé",pending:"En attente",approved:"Approuvée",rejected:"Refusée",paid:"Payé",active:"Actif",locked:"Bloqué",failed:"Échoué",credit:"Crédit",debit:"Débit",customer:"Client",admin:"Admin",recorded:"Enregistré"};function _e(e){return Sc[e]||e||"—"}function pe(e){return`${new Intl.NumberFormat("fr-FR").format(Number(e||0))} FCFA`}function De(e){return e?new Intl.DateTimeFormat("fr-FR",{day:"2-digit",month:"short",hour:"2-digit",minute:"2-digit"}).format(new Date(e)):"—"}function Ec(e){return String(e||"Yemo").trim().split(/\s+/).slice(0,2).map(n=>n[0]?.toUpperCase()||"").join("")||"Y"}function Le(e){return e?e.name||e.phone_number||`Compte ${e.id}`:"—"}const Rc={class:"sidebar"},$c={class:"nav"},Ac={viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round"},kc=["d"],Pc={class:"nav-text"},Oc={class:"main"},Tc={class:"topbar"},Mc={class:"page-title"},Ic={class:"profile"},Nc={class:"avatar"},Dc={class:"profile-copy"},Vc={key:0,class:"menu"},Fc={class:"content"},Lc={__name:"AdminLayout",setup(e){const t=jr(),n=fl(),s=A(!1),l=A(localStorage.getItem("yemo_admin_collapsed")==="1"),o=A(!1),i=A(t.query.q||""),a=A(window.matchMedia("(min-width: 1024px)").matches),u=A(JSON.parse(localStorage.getItem("yemo_admin_user")||"null")),p=[["/","Tableau de bord","M3 4h7v7H3zm11 0h7v7h-7zM3 15h7v7H3zm11 0h7v7h-7z"],["/frais","Frais","M19 5L5 19M9 8h.01M16 15h.01"],["/plafonds","Plafonds","M4 7h16M4 12h10M4 17h6"],["/demandes-plafond","Demandes","M7 3h7l5 5v13H7zM10 13h6M10 17h4"],["/transactions","Transactions","M4 7h16M4 12h16M4 17h10"],["/recharges","Recharges","M12 5v14M5 12h14"],["/retraits","Retraits","M5 12h14"],["/comptes","Comptes","M16 19v-1a4 4 0 0 0-4-4H7a4 4 0 0 0-4 4v1M9.5 11a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM20 19v-1a3.5 3.5 0 0 0-2.6-3.4"],["/portefeuilles","Portefeuilles","M3 8a2 2 0 0 1 2-2h14v12H5a2 2 0 0 1-2-2zm14 4h3"],["/liens","Liens de paiement","M10 13a5 5 0 0 0 7.1.1l2-2a5 5 0 0 0-7.1-7.1l-1.1 1.1M14 11a5 5 0 0 0-7.1-.1l-2 2a5 5 0 0 0 7.1 7.1l1.1-1.1"],["/journaux","Journaux","M6 4h9l3 3v13H6zM9 12h6M9 16h6"],["/notifications","Notifications","M15 17h5l-1.4-1.4A2 2 0 0 1 18 14.2V11a6 6 0 1 0-12 0v3.2c0 .5-.2 1-.6 1.4L4 17h5m6 0a3 3 0 0 1-6 0"]],f=Ce(()=>t.meta.title||"Yemo"),c=Ce(()=>Ec(u.value?.name));function d(){if(a.value){l.value=!l.value,localStorage.setItem("yemo_admin_collapsed",l.value?"1":"0");return}s.value=!s.value}function m(){a.value=window.matchMedia("(min-width: 1024px)").matches,a.value&&(s.value=!1)}function C(j){j.target.closest(".profile")||(o.value=!1)}function y(){n.push({name:"transactions",query:i.value?{q:i.value}:{}})}async function T(){try{await ge("/admin/auth/logout",{method:"POST"})}catch{}localStorage.removeItem("yemo_admin_token"),localStorage.removeItem("yemo_admin_user"),n.push({name:"login"})}return Vt(()=>t.fullPath,()=>{s.value=!1}),Ze(()=>{window.addEventListener("resize",m),document.addEventListener("click",C)}),rl(()=>{window.removeEventListener("resize",m),document.removeEventListener("click",C)}),(j,k)=>{const V=Ns("router-link"),D=Ns("router-view");return E(),R("div",{class:xe(["shell",{"nav-open":s.value,collapsed:l.value}])},[s.value&&!a.value?(E(),R("button",{key:0,class:"backdrop","aria-label":"Fermer le menu",onClick:k[0]||(k[0]=J=>s.value=!1)})):Z("",!0),r("aside",Rc,[k[3]||(k[3]=r("div",{class:"brand"},[r("div",{class:"mark"},"Y"),r("div",{class:"brand-copy"},[r("strong",null,"Yemo"),r("small",null,"Finance admin")])],-1)),k[4]||(k[4]=r("div",{class:"nav-label-group"},"Pilotage",-1)),r("nav",$c,[(E(),R(Y,null,be(p,([J,fe,ae])=>ne(V,{key:J,to:J,title:fe},{default:Wo(()=>[(E(),R("svg",Ac,[r("path",{d:ae},null,8,kc)])),r("span",Pc,_(fe),1)]),_:2},1032,["to","title"])),64))]),k[5]||(k[5]=r("div",{class:"sidebar-foot"},"Montants en FCFA · grand livre",-1))]),r("div",Oc,[r("header",Tc,[r("button",{class:"icon-btn","aria-label":"Afficher ou masquer la barre latérale",onClick:d},[...k[6]||(k[6]=[r("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8"},[r("path",{d:"M4 7h16M4 12h16M4 17h16"})],-1)])]),r("h1",Mc,[It(_(f.value),1),k[7]||(k[7]=r("span",null,"Console Yemo",-1))]),r("form",{class:"search",onSubmit:je(y,["prevent"])},[k[8]||(k[8]=r("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8"},[r("circle",{cx:"11",cy:"11",r:"7"}),r("path",{d:"M20 20l-3-3"})],-1)),he(r("input",{"onUpdate:modelValue":k[1]||(k[1]=J=>i.value=J),type:"search",placeholder:"Référence, téléphone, nom","aria-label":"Rechercher une transaction"},null,512),[[Se,i.value]])],32),r("div",Ic,[r("button",{class:"profile-btn",onClick:k[2]||(k[2]=je(J=>o.value=!o.value,["stop"]))},[r("span",Nc,_(c.value),1),r("span",Dc,[r("strong",null,_(u.value?.name||"Admin"),1),k[9]||(k[9]=r("small",null,"Administrateur",-1))])]),o.value?(E(),R("div",Vc,[r("p",null,_(u.value?.email),1),r("button",{onClick:T},"Se déconnecter")])):Z("",!0)])]),r("main",Fc,[ne(D)])])],2)}}},jc={class:"chart",viewBox:"0 0 640 220",role:"img","aria-label":"Évolution sur 14 jours"},Uc=["id"],Bc=["stop-color"],Hc=["stop-color"],qc=["d","fill"],Kc=["points","stroke"],Gc={__name:"AreaChart",props:{series:{type:Array,default:()=>[]},metric:{type:String,default:"volume"}},setup(e){const t=e,n={volume:"#0240F7",deposit:"#B54708",transfer:"#067647",withdrawal:"#D92D20",fees:"#0F766E"},s=Ce(()=>n[t.metric]||n.volume),l=Ce(()=>t.series.map(i=>t.metric==="fees"?i.fees:t.metric==="deposit"?i.deposit:t.metric==="withdrawal"?i.withdrawal:t.metric==="transfer"?i.transfer+i.payment:i.deposit+i.withdrawal+i.transfer+i.payment)),o=Ce(()=>{const p=Math.max(1,...l.value),f=l.value.map((m,C)=>{const y=18+C/Math.max(l.value.length-1,1)*604,T=202-m/p*184;return[y,T]}),c=f.map(m=>m.join(",")).join(" "),d=f.length?`M ${f[0][0]} 202 L ${f.map(m=>m.join(" ")).join(" L ")} L ${f.at(-1)[0]} 202 Z`:"";return{line:c,area:d}});return(i,a)=>(E(),R("svg",jc,[r("defs",null,[r("linearGradient",{id:`yemo-area-${e.metric}`,x1:"0",y1:"0",x2:"0",y2:"1"},[r("stop",{offset:"0%","stop-color":s.value,"stop-opacity":"0.34"},null,8,Bc),r("stop",{offset:"100%","stop-color":s.value,"stop-opacity":"0.02"},null,8,Hc)],8,Uc)]),r("path",{d:o.value.area,fill:`url(#yemo-area-${e.metric})`},null,8,qc),r("polyline",{points:o.value.line,fill:"none",stroke:s.value,"stroke-width":"3","stroke-linejoin":"round","stroke-linecap":"round"},null,8,Kc)]))}},Wc={key:0,class:"drawer-root"},zc={class:"drawer"},Yc={class:"drawer-hero"},Jc={class:"amount"},Qc={class:"muted"},Xc={key:0,class:"muted"},Zc={class:"meta-grid"},ef={class:"kv"},tf={key:0},nf={key:1},sf={class:"muted"},lf={class:"muted"},dl={__name:"DetailDrawer",props:{open:Boolean,loading:Boolean,item:{type:Object,default:null}},emits:["close"],setup(e){function t(n){return Object.entries(n||{}).map(([s,l])=>({key:s,value:l===null||l===""?"—":String(l)}))}return(n,s)=>e.open?(E(),R("div",Wc,[r("button",{class:"drawer-backdrop","aria-label":"Fermer le détail",onClick:s[0]||(s[0]=l=>n.$emit("close"))}),r("aside",zc,[r("div",Yc,[r("div",null,[r("span",{class:xe(["pill",e.item?.type])},_(F(_e)(e.item?.type)),3),r("div",Jc,_(e.item?F(pe)(e.item.amount_cents):"…"),1),r("p",Qc,_(e.item?.id),1)]),r("button",{class:"icon-btn","aria-label":"Fermer",onClick:s[1]||(s[1]=l=>n.$emit("close"))},"×")]),e.loading?(E(),R("p",Xc,"Chargement du détail…")):e.item?(E(),R(Y,{key:1},[r("div",Zc,[r("div",null,[s[2]||(s[2]=r("span",null,"Statut",-1)),r("strong",null,_(F(_e)(e.item.status)),1)]),r("div",null,[s[3]||(s[3]=r("span",null,"Date",-1)),r("strong",null,_(F(De)(e.item.created_at)),1)]),r("div",null,[s[4]||(s[4]=r("span",null,"Initiateur",-1)),r("strong",null,_(F(Le)(e.item.user)),1),r("small",null,_(e.item.user?.phone_number),1)]),r("div",null,[s[5]||(s[5]=r("span",null,"Contrepartie",-1)),r("strong",null,_(e.item.counterparty?.name||"—"),1),r("small",null,_(e.item.counterparty?.phone),1)]),r("div",null,[s[6]||(s[6]=r("span",null,"Canal",-1)),r("strong",null,_(e.item.channel),1)]),r("div",null,[s[7]||(s[7]=r("span",null,"Frais",-1)),r("strong",null,_(F(pe)(e.item.fee_cents)),1)]),r("div",null,[s[8]||(s[8]=r("span",null,"Net reçu",-1)),r("strong",null,_(e.item.net_cents==null?"—":F(pe)(e.item.net_cents)),1)]),r("div",null,[s[9]||(s[9]=r("span",null,"Devise",-1)),r("strong",null,_(e.item.currency),1)])]),s[12]||(s[12]=r("h3",null,"Métadonnées",-1)),r("div",ef,[(E(!0),R(Y,null,be(t(e.item.metadata),l=>(E(),R("div",{key:l.key},[r("span",null,_(l.key),1),r("strong",null,_(l.value),1)]))),128)),t(e.item.metadata).length?Z("",!0):(E(),R("div",tf,[...s[10]||(s[10]=[r("span",null,"metadata",-1),r("strong",null,"Aucune",-1)])])),e.item.idempotency_key?(E(),R("div",nf,[s[11]||(s[11]=r("span",null,"idempotency_key",-1)),r("strong",null,_(e.item.idempotency_key),1)])):Z("",!0)]),s[13]||(s[13]=r("h3",null,"Écritures du grand livre",-1)),(E(!0),R(Y,null,be(e.item.entries||[],l=>(E(),R("div",{key:l.id,class:"entry"},[r("div",null,[r("strong",null,_(F(_e)(l.direction)),1),r("div",sf,_(F(Le)(l.wallet?.user))+" · wallet "+_(l.wallet?.id),1),r("div",lf,_(l.description),1)]),r("strong",null,_(F(pe)(l.amount_cents)),1)]))),128))],64)):Z("",!0)])])):Z("",!0)}},of={class:"mix"},rf={viewBox:"0 0 120 120",width:"160",height:"160",role:"img","aria-label":"Répartition des opérations"},af=["stroke","stroke-dasharray","stroke-dashoffset"],uf={class:"legend"},cf={key:0,class:"muted"},ff={__name:"DonutChart",props:{mix:{type:Array,default:()=>[]}},setup(e){const t=e,n={deposit:"#0240F7",withdrawal:"#D92D20",transfer:"#067647",payment:"#6941C6"},s=Ce(()=>{const l=t.mix.reduce((i,a)=>i+a.count,0)||1;let o=0;return t.mix.map(i=>{const a=i.count/l,u={...i,color:n[i.type]||"#667085",dash:`${a*100} ${100-a*100}`,offset:25-o*100};return o+=a,u})});return(l,o)=>(E(),R("div",of,[(E(),R("svg",rf,[o[0]||(o[0]=r("circle",{cx:"60",cy:"60",r:"42",fill:"none",stroke:"#E6EAF2","stroke-width":"14"},null,-1)),(E(!0),R(Y,null,be(s.value,i=>(E(),R("circle",{key:i.type,cx:"60",cy:"60",r:"42",fill:"none",stroke:i.color,"stroke-width":"14",pathLength:"100","stroke-dasharray":i.dash,"stroke-dashoffset":i.offset,"stroke-linecap":"butt"},null,8,af))),128))])),r("div",uf,[(E(!0),R(Y,null,be(s.value,i=>(E(),R("div",{key:i.type},[r("span",null,[r("i",{class:"swatch",style:Tn({background:i.color})},null,4),It(_(F(_e)(i.type)),1)]),r("span",null,_(i.count)+" · "+_(F(pe)(i.amount_cents)),1)]))),128)),s.value.length?Z("",!0):(E(),R("p",cf,"Aucune opération sur 30 jours."))])]))}},df={key:0,class:"error-banner"},pf={key:1,class:"card empty"},hf={class:"kpis"},mf={class:"card kpi tone-navy"},vf={class:"card kpi tone-sky"},gf={class:"card kpi tone-mint"},_f={class:"card kpi tone-sand"},yf={class:"split"},bf={class:"card panel"},wf={class:"panel-head"},Cf={class:"muted"},xf={class:"chips"},Sf=["data-metric","onClick"],Ef={class:"chart-labels"},Rf={class:"card panel"},$f={class:"card panel"},Af={class:"table-wrap"},kf=["onClick"],Pf={"data-label":"Date"},Of={"data-label":"Type"},Tf={"data-label":"Client"},Mf={class:"stack"},If={"data-label":"Canal"},Nf={"data-label":"Montant"},Df={"data-label":"Frais"},Vf={key:0,class:"empty"},Ff={__name:"DashboardView",setup(e){const t=fl(),n=A(null),s=A(""),l=A("volume"),o=A(!1),i=A(null),a=A(!1),u=[["volume","Volume"],["deposit","Recharges"],["transfer","Transferts"],["withdrawal","Retraits"],["fees","Frais"]];Ze(async()=>{try{n.value=await ge("/admin/overview")}catch(c){s.value=c.message}});function p(){t.push({name:"transactions"})}async function f(c){o.value=!0,i.value=c,a.value=!0;try{i.value=await ge(`/admin/transactions/${c.id}`)}catch(d){s.value=d.message}finally{a.value=!1}}return(c,d)=>s.value?(E(),R("p",df,_(s.value),1)):n.value?(E(),R(Y,{key:2},[r("section",hf,[r("article",mf,[d[1]||(d[1]=pn('
Encours
',1)),r("strong",null,_(F(pe)(n.value.kpis.float_cents)),1),r("em",null,_(n.value.kpis.wallets)+" portefeuille"+_(n.value.kpis.wallets>1?"s":"")+" actif"+_(n.value.kpis.wallets>1?"s":""),1)]),r("article",vf,[d[2]||(d[2]=pn('
Volume 30 j
',1)),r("strong",null,_(F(pe)(n.value.kpis.volume_30d_cents)),1),r("em",null,_(n.value.kpis.transactions_30d)+" opération"+_(n.value.kpis.transactions_30d>1?"s":""),1)]),r("article",gf,[d[3]||(d[3]=pn('
Frais encaissés
',1)),r("strong",null,_(F(pe)(n.value.kpis.fees_30d_cents)),1),d[4]||(d[4]=r("em",null,"Selon le barème",-1))]),r("article",_f,[d[5]||(d[5]=pn('
Recharges 30 j
',1)),r("strong",null,_(F(pe)(n.value.kpis.deposits_30d_cents)),1),r("em",null,_(n.value.kpis.customers)+" client"+_(n.value.kpis.customers>1?"s":""),1)])]),r("section",yf,[r("article",bf,[r("div",wf,[r("div",null,[d[6]||(d[6]=r("h2",null,"Flux sur 14 jours",-1)),r("p",Cf,_(n.value.kpis.posted_today)+" opération"+_(n.value.kpis.posted_today>1?"s":"")+" aujourd’hui",1)]),r("div",xf,[(E(),R(Y,null,be(u,([m,C])=>r("button",{key:m,"data-metric":m,class:xe({active:l.value===m}),onClick:y=>l.value=m},_(C),11,Sf)),64))])]),ne(Gc,{series:n.value.series,metric:l.value},null,8,["series","metric"]),r("div",Ef,[r("span",null,_(n.value.series[0]?.date),1),r("span",null,_(n.value.series.at(-1)?.date),1)])]),r("article",Rf,[d[7]||(d[7]=r("h2",null,"Mix 30 jours",-1)),ne(ff,{mix:n.value.mix},null,8,["mix"])])]),r("article",$f,[r("div",{class:"panel-head"},[d[8]||(d[8]=r("h2",null,"Dernières opérations",-1)),r("button",{class:"ghost-btn",onClick:p},"Tout voir")]),d[10]||(d[10]=r("p",{class:"muted table-hint"},"Cliquez une ligne pour ouvrir le détail.",-1)),r("div",Af,[r("table",null,[d[9]||(d[9]=r("thead",null,[r("tr",null,[r("th",null,"Date"),r("th",null,"Type"),r("th",null,"Client"),r("th",null,"Canal"),r("th",null,"Montant"),r("th",null,"Frais")])],-1)),r("tbody",null,[(E(!0),R(Y,null,be(n.value.recent,m=>(E(),R("tr",{key:m.id,class:"clickable",onClick:C=>f(m)},[r("td",Pf,_(F(De)(m.created_at)),1),r("td",Of,[r("span",{class:xe(["pill",m.type])},_(F(_e)(m.type)),3)]),r("td",Tf,[r("div",Mf,[r("strong",null,_(F(Le)(m.user)),1),r("small",null,_(m.user?.phone_number),1)])]),r("td",If,_(m.channel),1),r("td",Nf,[r("strong",null,_(F(pe)(m.amount_cents)),1)]),r("td",Df,_(F(pe)(m.fee_cents)),1)],8,kf))),128))])]),n.value.recent.length?Z("",!0):(E(),R("p",Vf,"Aucune opération pour le moment."))])]),ne(dl,{open:o.value,loading:a.value,item:i.value,onClose:d[0]||(d[0]=m=>o.value=!1)},null,8,["open","loading","item"])],64)):(E(),R("section",pf,"Chargement du tableau de bord…"))}},Lf={key:0,class:"error-banner"},jf={key:1,class:"card empty"},Uf={class:"kpi-top"},Bf={class:"fee-field"},Hf=["onUpdate:modelValue","aria-label"],qf={class:"fee-actions"},Kf={key:0,class:"fee-saved"},Gf=["disabled"],Wf=1e4,zf={__name:"FeesView",setup(e){const t=A(null),n=A(""),s=A(""),l=A(!1),o=A({transfer_national_percent:1,transfer_international_percent:1.5,deposit_percent:1.5,withdrawal_percent:1.5,payment_percent:0}),i=[["transfer_national_percent","Transfert national","Même pays. Déduit du montant reçu.","tone-sky"],["transfer_international_percent","Transfert international","Autre pays. Déduit du montant reçu.","tone-navy"],["deposit_percent","Recharge","Déduit du montant crédité sur le portefeuille.","tone-sand"],["withdrawal_percent","Retrait","Déduit du montant envoyé vers Mobile Money.","tone-mint"],["payment_percent","Lien de paiement","Déduit du montant reçu par le marchand.","tone-sky"]];function a(c){const d=Math.round(Number(c||0)*100),m=Math.floor((Wf*d+5e3)/1e4);return new Intl.NumberFormat("fr-FR").format(m)}const u=Ce(()=>t.value&&i.some(([c])=>Number(o.value[c])!==Number(t.value[c])));async function p(){n.value="";try{t.value=await ge("/admin/fees"),o.value={transfer_national_percent:t.value.transfer_national_percent,transfer_international_percent:t.value.transfer_international_percent,deposit_percent:t.value.deposit_percent,withdrawal_percent:t.value.withdrawal_percent,payment_percent:t.value.payment_percent}}catch(c){n.value=c.message}}async function f(){l.value=!0,s.value="",n.value="";try{t.value=await ge("/admin/fees",{method:"PUT",body:o.value}),s.value="Barème enregistré. Les prochaines opérations l’utilisent."}catch(c){n.value=c.message}finally{l.value=!1}}return Ze(p),(c,d)=>n.value?(E(),R("p",Lf,_(n.value),1)):t.value?(E(),R("form",{key:2,class:"fee-grid",onSubmit:je(f,["prevent"])},[(E(),R(Y,null,be(i,([m,C,y,T])=>r("article",{key:m,class:xe(["card kpi",T])},[r("div",Uf,[r("span",null,_(C),1)]),r("label",Bf,[he(r("input",{"onUpdate:modelValue":j=>o.value[m]=j,type:"number",min:"0",max:"20",step:"0.01","aria-label":C,required:""},null,8,Hf),[[Se,o.value[m],void 0,{number:!0}]]),d[0]||(d[0]=r("b",null,"%",-1))]),r("em",null,_(y)+" Sur 10 000 FCFA : "+_(a(o.value[m]))+" FCFA.",1)],2)),64)),r("div",qf,[s.value?(E(),R("p",Kf,_(s.value),1)):Z("",!0),r("button",{class:"primary-btn",disabled:l.value||!u.value},_(l.value?"Enregistrement…":"Enregistrer le barème"),9,Gf)])],32)):(E(),R("section",jf,"Chargement du barème…"))}},Yf={key:0,class:"error-banner"},Jf={key:1,class:"card empty"},Qf={class:"kpi-top"},Xf={class:"fee-field"},Zf=["onUpdate:modelValue","aria-label"],ed={class:"fee-actions"},td={key:0,class:"fee-saved"},nd=["disabled"],sd={__name:"LimitsView",setup(e){const t=A(null),n=A(""),s=A(""),l=A(!1),o=A({daily_send_limit_cents:5e5,max_balance_cents:1e6}),i=[["daily_send_limit_cents","Envoi par jour","Montant maximum qu’un compte peut envoyer sur une journée.","tone-sky"],["max_balance_cents","Solde maximum","Montant maximum qu’un portefeuille peut détenir.","tone-navy"]],a=Ce(()=>t.value&&i.some(([c])=>Number(o.value[c])!==Number(t.value[c])));function u(c){return new Intl.NumberFormat("fr-FR").format(Number(c||0))}async function p(){n.value="";try{t.value=await ge("/admin/limits"),o.value={daily_send_limit_cents:t.value.daily_send_limit_cents,max_balance_cents:t.value.max_balance_cents}}catch(c){n.value=c.message}}async function f(){l.value=!0,s.value="",n.value="";try{t.value=await ge("/admin/limits",{method:"PUT",body:o.value}),s.value="Plafonds enregistrés. L’application les applique aux prochaines opérations."}catch(c){n.value=c.message}finally{l.value=!1}}return Ze(p),(c,d)=>n.value?(E(),R("p",Yf,_(n.value),1)):t.value?(E(),R("form",{key:2,class:"fee-grid",onSubmit:je(f,["prevent"])},[(E(),R(Y,null,be(i,([m,C,y,T])=>r("article",{key:m,class:xe(["card kpi",T])},[r("div",Qf,[r("span",null,_(C),1)]),r("label",Xf,[he(r("input",{"onUpdate:modelValue":j=>o.value[m]=j,type:"number",min:"200",max:"100000000",step:"1","aria-label":C,required:""},null,8,Zf),[[Se,o.value[m],void 0,{number:!0}]]),d[0]||(d[0]=r("b",null,"FCFA",-1))]),r("em",null,_(y)+" Actuel : "+_(u(o.value[m]))+" FCFA.",1)],2)),64)),r("div",ed,[s.value?(E(),R("p",td,_(s.value),1)):Z("",!0),r("button",{class:"primary-btn",disabled:l.value||!a.value},_(l.value?"Enregistrement…":"Enregistrer les plafonds"),9,nd)])],32)):(E(),R("section",Jf,"Chargement des plafonds…"))}},ld={key:0,class:"pager"},od={class:"muted"},rd={class:"chips"},id=["disabled"],ad=["disabled"],Yt={__name:"Pager",props:{pagination:{type:Object,default:null}},emits:["page"],setup(e){return(t,n)=>e.pagination?(E(),R("div",ld,[r("span",od,_(e.pagination.total)+" résultat"+_(e.pagination.total>1?"s":""),1),r("div",rd,[r("button",{class:"ghost-btn",disabled:e.pagination.current_page<=1,onClick:n[0]||(n[0]=s=>t.$emit("page",e.pagination.current_page-1))},"Précédent",8,id),r("button",{class:"ghost-btn",disabled:e.pagination.current_page>=e.pagination.last_page,onClick:n[1]||(n[1]=s=>t.$emit("page",e.pagination.current_page+1))},"Suivant",8,ad)])])):Z("",!0)}},ud={class:"card panel"},cd={key:0,class:"error-banner"},fd={class:"table-wrap"},dd=["onClick"],pd={"data-label":"Client"},hd={"data-label":"Téléphone"},md={"data-label":"Demandé"},vd={"data-label":"Statut"},gd={"data-label":"Date"},_d={key:0,class:"empty"},yd={key:1,class:"empty"},bd={key:0,class:"review"},wd={class:"review-card"},Cd={class:"docs"},xd=["onClick"],Sd=["src","alt"],Ed={key:0,class:"decision"},Rd={class:"wide"},$d={class:"actions"},Ad=["disabled"],kd=["disabled"],Pd={key:1},Od={class:"viewer-bar"},Td=["src","alt"],Md={__name:"LimitRequestsView",setup(e){const t=A([]),n=A(null),s=A(!1),l=A(""),o=A("pending"),i=A(1),a=A(null),u=A([]),p=A(null),f=A(1),c=A({x:0,y:0}),d=A(!1),m=A({x:0,y:0}),C=A(0),y=A(0),T=A(""),j=A(!1),k={id_front:"Recto de la pièce",id_back:"Verso de la pièce",selfie:"Selfie"};async function V(){s.value=!0,l.value="";try{const Q=await ge("/admin/limit-requests",{query:{status:o.value,page:i.value}});t.value=Q.items,n.value=Q.pagination}catch(Q){l.value=Q.message}finally{s.value=!1}}function D(){u.value.forEach(Q=>URL.revokeObjectURL(Q.url)),u.value=[]}async function J(Q){D(),p.value=null,a.value=await ge(`/admin/limit-requests/${Q.id}`),C.value=a.value.desired_daily_send_limit_cents,y.value=Math.max(a.value.desired_daily_send_limit_cents,1e6),T.value="",u.value=await Promise.all(a.value.documents.map(async U=>({...U,label:k[U.kind]||U.kind,url:await xc(`/admin/limit-requests/${Q.id}/documents/${U.id}`)})))}function fe(){D(),a.value=null,p.value=null}function ae(Q){p.value=Q,f.value=1,c.value={x:0,y:0}}function Ve(Q){f.value=Math.min(5,Math.max(1,Math.round((f.value+Q)*100)/100)),f.value===1&&(c.value={x:0,y:0})}function et(Q){Ve(Q.deltaY<0?.2:-.2)}function qe(Q){f.value<=1||(d.value=!0,m.value={x:Q.clientX-c.value.x,y:Q.clientY-c.value.y},Q.currentTarget.setPointerCapture?.(Q.pointerId))}function tt(Q){d.value&&(c.value={x:Q.clientX-m.value.x,y:Q.clientY-m.value.y})}function nt(){d.value=!1}async function Ke(){if(a.value){j.value=!0,l.value="";try{await ge(`/admin/limit-requests/${a.value.id}/approve`,{method:"POST",body:{daily_send_limit_cents:Number(C.value),max_balance_cents:Number(y.value)}}),fe(),await V()}catch(Q){l.value=Q.message}finally{j.value=!1}}}async function Lt(){if(a.value){j.value=!0,l.value="";try{await ge(`/admin/limit-requests/${a.value.id}/reject`,{method:"POST",body:{admin_note:T.value}}),fe(),await V()}catch(Q){l.value=Q.message}finally{j.value=!1}}}return Ze(V),er(D),(Q,U)=>(E(),R(Y,null,[r("section",ud,[r("form",{class:"filters",onSubmit:U[2]||(U[2]=je(B=>{i.value=1,V()},["prevent"]))},[he(r("select",{"onUpdate:modelValue":U[0]||(U[0]=B=>o.value=B),"aria-label":"Statut",onChange:U[1]||(U[1]=B=>{i.value=1,V()})},[...U[11]||(U[11]=[r("option",{value:""},"Tous les statuts",-1),r("option",{value:"pending"},"En attente",-1),r("option",{value:"approved"},"Approuvées",-1),r("option",{value:"rejected"},"Refusées",-1)])],544),[[An,o.value]])],32),l.value?(E(),R("p",cd,_(l.value),1)):Z("",!0),U[13]||(U[13]=r("p",{class:"muted table-hint"},"Ouvrez une demande pour voir les documents, zoomer, puis élargir le compte.",-1)),r("div",fd,[r("table",null,[U[12]||(U[12]=r("thead",null,[r("tr",null,[r("th",null,"Client"),r("th",null,"Téléphone"),r("th",null,"Demandé"),r("th",null,"Statut"),r("th",null,"Date")])],-1)),r("tbody",null,[(E(!0),R(Y,null,be(t.value,B=>(E(),R("tr",{key:B.id,class:"clickable",onClick:te=>J(B)},[r("td",pd,[r("strong",null,_(B.user?.name||"Sans nom"),1)]),r("td",hd,_(B.user?.phone_number||"—"),1),r("td",md,_(F(pe)(B.desired_daily_send_limit_cents)),1),r("td",vd,[r("span",{class:xe(["pill",B.status])},_(F(_e)(B.status)),3)]),r("td",gd,_(F(De)(B.created_at)),1)],8,dd))),128))])]),s.value?(E(),R("p",_d,"Chargement…")):t.value.length?Z("",!0):(E(),R("p",yd,"Aucune demande."))]),ne(Yt,{pagination:n.value,onPage:U[3]||(U[3]=B=>{i.value=B,V()})},null,8,["pagination"])]),a.value?(E(),R("div",bd,[r("div",wd,[r("header",null,[r("div",null,[r("strong",null,_(a.value.user?.name||"Client"),1),r("small",null,_(a.value.user?.phone_number)+" · "+_(a.value.user?.country_iso),1)]),r("button",{class:"ghost-btn",type:"button",onClick:fe},"Fermer")]),r("p",null,[U[14]||(U[14]=It("Plafond journalier demandé : ",-1)),r("strong",null,_(F(pe)(a.value.desired_daily_send_limit_cents)),1)]),r("div",Cd,[(E(!0),R(Y,null,be(u.value,B=>(E(),R("button",{key:B.id,type:"button",class:"doc",onClick:te=>ae(B)},[r("img",{src:B.url,alt:B.label},null,8,Sd),r("span",null,_(B.label),1)],8,xd))),128))]),a.value.status==="pending"?(E(),R("div",Ed,[r("label",null,[U[15]||(U[15]=It(" Nouveau plafond journalier ",-1)),he(r("input",{"onUpdate:modelValue":U[4]||(U[4]=B=>C.value=B),type:"number",min:"200",step:"100"},null,512),[[Se,C.value,void 0,{number:!0}]])]),r("label",null,[U[16]||(U[16]=It(" Nouveau solde maximum ",-1)),he(r("input",{"onUpdate:modelValue":U[5]||(U[5]=B=>y.value=B),type:"number",min:"200",step:"100"},null,512),[[Se,y.value,void 0,{number:!0}]])]),r("label",Rd,[U[17]||(U[17]=It(" Motif en cas de refus ",-1)),he(r("input",{"onUpdate:modelValue":U[6]||(U[6]=B=>T.value=B),type:"text",maxlength:"300",placeholder:"Facultatif"},null,512),[[Se,T.value]])]),r("div",$d,[r("button",{class:"primary-btn",type:"button",disabled:j.value,onClick:Ke},"Élargir le compte",8,Ad),r("button",{class:"ghost-btn",type:"button",disabled:j.value,onClick:Lt},"Refuser",8,kd)])])):(E(),R("p",Pd,"Demande "+_(F(_e)(a.value.status).toLowerCase())+".",1))])])):Z("",!0),p.value?(E(),R("div",{key:1,class:"viewer",onWheel:je(et,["prevent"])},[r("div",Od,[r("strong",null,_(p.value.label),1),r("button",{type:"button",onClick:U[7]||(U[7]=B=>Ve(-.25))},"−"),r("button",{type:"button",onClick:U[8]||(U[8]=B=>{f.value=1,c.value={x:0,y:0}})},_(Math.round(f.value*100))+" %",1),r("button",{type:"button",onClick:U[9]||(U[9]=B=>Ve(.25))},"+"),r("button",{type:"button",onClick:U[10]||(U[10]=B=>p.value=null)},"Fermer")]),r("div",{class:"stage",onPointerdown:qe,onPointermove:tt,onPointerup:nt,onPointercancel:nt},[r("img",{src:p.value.url,alt:p.value.label,draggable:"false",style:Tn({transform:`translate(${c.value.x}px, ${c.value.y}px) scale(${f.value})`})},null,12,Td)],32)],32)):Z("",!0)],64))}},Id=$r(Md,[["__scopeId","data-v-d112071c"]]),Nd={key:0,class:"drawer-root"},Dd={class:"drawer",role:"dialog","aria-modal":"true"},Vd={class:"drawer-hero"},Fd={key:0,class:"muted"},Ld={class:"kv"},pl={__name:"InfoDrawer",props:{open:Boolean,title:{type:String,default:""},subtitle:{type:String,default:""},rows:{type:Array,default:()=>[]}},emits:["close"],setup(e){return(t,n)=>e.open?(E(),R("div",Nd,[r("button",{class:"drawer-backdrop","aria-label":"Fermer le détail",onClick:n[0]||(n[0]=s=>t.$emit("close"))}),r("aside",Dd,[r("div",Vd,[r("div",null,[r("h2",null,_(e.title),1),e.subtitle?(E(),R("p",Fd,_(e.subtitle),1)):Z("",!0)]),r("button",{class:"icon-btn","aria-label":"Fermer",onClick:n[1]||(n[1]=s=>t.$emit("close"))},"×")]),r("div",Ld,[(E(!0),R(Y,null,be(e.rows,s=>(E(),R("div",{key:s.label},[r("span",null,_(s.label),1),r("strong",null,_(s.value||"—"),1)]))),128))])])])):Z("",!0)}},jd={class:"card panel"},Ud={key:0,class:"error-banner"},Bd={class:"table-wrap"},Hd=["onClick"],qd={"data-label":"Code"},Kd={"data-label":"Marchand"},Gd={"data-label":"Description"},Wd={"data-label":"Montant"},zd={"data-label":"Payeur"},Yd={"data-label":"Statut"},Jd={"data-label":"Créé"},Qd={key:0,class:"empty"},Xd={key:1,class:"empty"},Zd={__name:"LinksView",setup(e){const t=A([]),n=A(null),s=A(!1),l=A(""),o=A(""),i=A(""),a=A(1),u=A(null);function p(){const c=u.value;return c?[{label:"Code",value:c.code},{label:"Description",value:c.description},{label:"Montant",value:pe(c.amount_cents)},{label:"Devise",value:c.currency},{label:"Statut",value:_e(c.status)},{label:"Marchand",value:Le(c.merchant)},{label:"Téléphone marchand",value:c.merchant?.phone_number||"—"},{label:"Payeur",value:Le(c.payer)},{label:"Téléphone payeur",value:c.payer?.phone_number||"—"},{label:"Payé le",value:De(c.paid_at)},{label:"Créé le",value:De(c.created_at)},{label:"Identifiant",value:c.id}]:[]}async function f(){s.value=!0,l.value="";try{const c=await ge("/admin/payment-links",{query:{q:o.value,status:i.value,page:a.value}});t.value=c.items,n.value=c.pagination}catch(c){l.value=c.message}finally{s.value=!1}}return Ze(f),(c,d)=>(E(),R(Y,null,[r("section",jd,[r("form",{class:"filters",onSubmit:d[3]||(d[3]=je(m=>{a.value=1,f()},["prevent"]))},[he(r("input",{"onUpdate:modelValue":d[0]||(d[0]=m=>o.value=m),placeholder:"Code ou description","aria-label":"Recherche de lien"},null,512),[[Se,o.value]]),he(r("select",{"onUpdate:modelValue":d[1]||(d[1]=m=>i.value=m),"aria-label":"Statut",onChange:d[2]||(d[2]=m=>{a.value=1,f()})},[...d[6]||(d[6]=[r("option",{value:""},"Tous",-1),r("option",{value:"pending"},"En attente",-1),r("option",{value:"paid"},"Payé",-1)])],544),[[An,i.value]])],32),l.value?(E(),R("p",Ud,_(l.value),1)):Z("",!0),d[8]||(d[8]=r("p",{class:"muted table-hint"},"Cliquez une ligne pour ouvrir la facture.",-1)),r("div",Bd,[r("table",null,[d[7]||(d[7]=r("thead",null,[r("tr",null,[r("th",null,"Code"),r("th",null,"Marchand"),r("th",null,"Description"),r("th",null,"Montant"),r("th",null,"Payeur"),r("th",null,"Statut"),r("th",null,"Créé")])],-1)),r("tbody",null,[(E(!0),R(Y,null,be(t.value,m=>(E(),R("tr",{key:m.id,class:"clickable",onClick:C=>u.value=m},[r("td",qd,[r("strong",null,_(m.code),1)]),r("td",Kd,_(F(Le)(m.merchant)),1),r("td",Gd,_(m.description),1),r("td",Wd,[r("strong",null,_(F(pe)(m.amount_cents)),1)]),r("td",zd,_(F(Le)(m.payer)),1),r("td",Yd,[r("span",{class:xe(["pill",m.status])},_(F(_e)(m.status)),3)]),r("td",Jd,_(F(De)(m.paid_at||m.created_at)),1)],8,Hd))),128))])]),s.value?(E(),R("p",Qd,"Chargement…")):t.value.length?Z("",!0):(E(),R("p",Xd,"Aucun lien de paiement."))]),ne(Yt,{pagination:n.value,onPage:d[4]||(d[4]=m=>{a.value=m,f()})},null,8,["pagination"])]),ne(pl,{open:!!u.value,title:u.value?.code||"Lien",subtitle:u.value?.description||"",rows:p(),onClose:d[5]||(d[5]=m=>u.value=null)},null,8,["open","title","subtitle","rows"])],64))}},ep={class:"login"},tp={key:0,class:"alert"},np={class:"field"},sp={class:"field"},lp=["disabled"],op={__name:"LoginView",setup(e){const t=fl(),n=A("admin@yemo.app"),s=A(""),l=A(""),o=A(!1);async function i(){o.value=!0,l.value="";try{const a=await ge("/admin/auth/login",{method:"POST",auth:!1,body:{email:n.value,password:s.value}});localStorage.setItem("yemo_admin_token",a.access_token),localStorage.setItem("yemo_admin_user",JSON.stringify(a.user)),t.push({name:"dashboard"})}catch(a){l.value=a.message}finally{o.value=!1}}return(a,u)=>(E(),R("main",ep,[u[7]||(u[7]=r("section",{class:"login-panel"},[r("div",null,[r("div",{class:"mark"},"Y"),r("h2",null,"Le grand livre Yemo, lisible en un coup d’œil."),r("p",null,"Volume, frais, recharges, transferts et journaux d’écritures.")]),r("small",null,"Console réservée à l’administration.")],-1)),r("form",{class:"login-card",onSubmit:je(i,["prevent"])},[u[4]||(u[4]=r("div",{class:"mark"},"Y",-1)),u[5]||(u[5]=r("h1",null,"Connexion admin",-1)),u[6]||(u[6]=r("p",{class:"muted"},"Utilisez le compte administrateur Yemo.",-1)),l.value?(E(),R("p",tp,_(l.value),1)):Z("",!0),r("label",np,[u[2]||(u[2]=r("span",null,"E-mail",-1)),he(r("input",{"onUpdate:modelValue":u[0]||(u[0]=p=>n.value=p),type:"email",autocomplete:"username",required:""},null,512),[[Se,n.value]])]),r("label",sp,[u[3]||(u[3]=r("span",null,"Mot de passe",-1)),he(r("input",{"onUpdate:modelValue":u[1]||(u[1]=p=>s.value=p),type:"password",autocomplete:"current-password",required:""},null,512),[[Se,s.value]])]),r("button",{class:"primary-btn",disabled:o.value},_(o.value?"Connexion…":"Entrer dans la console"),9,lp)],32)]))}},rp={class:"card panel"},ip={class:"panel-head"},ap={class:"tabs"},up={key:0,class:"error-banner"},cp={key:1,class:"table-wrap"},fp=["onClick"],dp={"data-label":"Date"},pp={"data-label":"Sens"},hp={"data-label":"Portefeuille"},mp={class:"stack"},vp={"data-label":"Transaction"},gp={class:"stack"},_p={"data-label":"Description"},yp={"data-label":"Montant"},bp={key:2,class:"table-wrap"},wp=["onClick"],Cp={"data-label":"Date"},xp={"data-label":"Sévérité"},Sp={class:"pill error"},Ep={"data-label":"Route"},Rp={class:"stack"},$p={"data-label":"Code"},Ap={"data-label":"Message"},kp={"data-label":"Compte"},Pp={key:3,class:"empty"},Op={key:4,class:"empty"},Tp={key:0,class:"drawer-root"},Mp={class:"drawer"},Ip={class:"drawer-hero"},Np={class:"kv"},Dp={__name:"LogsView",setup(e){const t=A("ledger"),n=A([]),s=A(null),l=A(!1),o=A(""),i=A(""),a=A(1),u=A(null);async function p(){l.value=!0,o.value="",u.value=null;try{const f=t.value==="ledger"?"/admin/logs/ledger":"/admin/logs/errors",c=await ge(f,{query:{q:i.value,page:a.value}});n.value=c.items,s.value=c.pagination}catch(f){o.value=f.message}finally{l.value=!1}}return Vt(t,()=>{a.value=1,i.value="",p()},{immediate:!0}),(f,c)=>(E(),R(Y,null,[r("section",rp,[r("div",ip,[r("div",ap,[r("button",{class:xe({active:t.value==="ledger"}),onClick:c[0]||(c[0]=d=>t.value="ledger")},"Écritures",2),r("button",{class:xe({active:t.value==="errors"}),onClick:c[1]||(c[1]=d=>t.value="errors")},"Erreurs système",2)]),r("form",{onSubmit:c[3]||(c[3]=je(d=>{a.value=1,p()},["prevent"]))},[he(r("input",{"onUpdate:modelValue":c[2]||(c[2]=d=>i.value=d),placeholder:"Référence, route, message","aria-label":"Recherche dans les journaux"},null,512),[[Se,i.value]])],32)]),o.value?(E(),R("p",up,_(o.value),1)):Z("",!0),c[9]||(c[9]=r("p",{class:"muted table-hint"},"Cliquez une ligne pour ouvrir le journal complet.",-1)),t.value==="ledger"?(E(),R("div",cp,[r("table",null,[c[7]||(c[7]=r("thead",null,[r("tr",null,[r("th",null,"Date"),r("th",null,"Sens"),r("th",null,"Portefeuille"),r("th",null,"Transaction"),r("th",null,"Description"),r("th",null,"Montant")])],-1)),r("tbody",null,[(E(!0),R(Y,null,be(n.value,d=>(E(),R("tr",{key:d.id,class:"clickable",onClick:m=>u.value=d},[r("td",dp,_(F(De)(d.created_at)),1),r("td",pp,[r("span",{class:xe(["pill",d.direction])},_(F(_e)(d.direction)),3)]),r("td",hp,[r("div",mp,[r("strong",null,_(F(Le)(d.wallet?.user)),1),r("small",null,"#"+_(d.wallet?.id),1)])]),r("td",vp,[r("div",gp,[r("strong",null,_(F(_e)(d.transaction?.type)),1),r("small",null,_(d.transaction?.id),1)])]),r("td",_p,_(d.description||"—"),1),r("td",yp,[r("strong",null,_(F(pe)(d.amount_cents)),1)])],8,fp))),128))])])])):(E(),R("div",bp,[r("table",null,[c[8]||(c[8]=r("thead",null,[r("tr",null,[r("th",null,"Date"),r("th",null,"Sévérité"),r("th",null,"Route"),r("th",null,"Code"),r("th",null,"Message"),r("th",null,"Compte")])],-1)),r("tbody",null,[(E(!0),R(Y,null,be(n.value,d=>(E(),R("tr",{key:d.id,class:"clickable",onClick:m=>u.value=d},[r("td",Cp,_(F(De)(d.created_at)),1),r("td",xp,[r("span",Sp,_(d.severity),1)]),r("td",Ep,[r("div",Rp,[r("strong",null,_(d.http_method)+" "+_(d.status_code),1),r("small",null,_(d.route_name||"—"),1)])]),r("td",$p,_(d.exception_code||"—"),1),r("td",Ap,_(d.message),1),r("td",kp,_(F(Le)(d.user)),1)],8,wp))),128))])])])),l.value?(E(),R("p",Pp,"Chargement…")):n.value.length?Z("",!0):(E(),R("p",Op,"Journal vide.")),ne(Yt,{pagination:s.value,onPage:c[4]||(c[4]=d=>{a.value=d,p()})},null,8,["pagination"])]),u.value?(E(),R("div",Tp,[r("button",{class:"drawer-backdrop","aria-label":"Fermer",onClick:c[5]||(c[5]=d=>u.value=null)}),r("aside",Mp,[r("div",Ip,[r("h2",null,_(t.value==="ledger"?"Écriture #"+u.value.id:"Erreur #"+u.value.id),1),r("button",{class:"icon-btn",onClick:c[6]||(c[6]=d=>u.value=null)},"×")]),r("div",Np,[(E(!0),R(Y,null,be(u.value,(d,m)=>(E(),R("div",{key:m},[r("span",null,_(m),1),r("strong",null,_(typeof d=="object"?JSON.stringify(d):d),1)]))),128))])])])):Z("",!0)],64))}},Vp={key:0,class:"error-banner"},Fp={key:1,class:"fee-saved"},Lp={class:"field"},jp={class:"field"},Up={class:"check-line"},Bp={key:0,class:"field"},Hp=["disabled"],qp={__name:"NotificationsView",setup(e){const t=A(""),n=A(""),s=A(!0),l=A(""),o=A(""),i=A(""),a=A(!1);async function u(){a.value=!0,o.value="",i.value="";try{const p=await ge("/admin/notifications",{method:"POST",body:{title:t.value.trim(),body:n.value.trim(),phone_number:s.value?"":l.value.trim()}});i.value=`${p.devices} appareil(s) sur ${p.accounts} compte(s).`,t.value="",n.value=""}catch(p){o.value=p.message}finally{a.value=!1}}return(p,f)=>(E(),R(Y,null,[o.value?(E(),R("p",Vp,_(o.value),1)):Z("",!0),i.value?(E(),R("p",Fp,_(i.value),1)):Z("",!0),r("form",{class:"card notice-form",onSubmit:je(u,["prevent"])},[r("label",Lp,[f[4]||(f[4]=r("span",null,"Titre",-1)),he(r("input",{"onUpdate:modelValue":f[0]||(f[0]=c=>t.value=c),maxlength:"80",required:"",placeholder:"Information Yemo"},null,512),[[Se,t.value]])]),r("label",jp,[f[5]||(f[5]=r("span",null,"Texte",-1)),he(r("textarea",{"onUpdate:modelValue":f[1]||(f[1]=c=>n.value=c),maxlength:"300",required:"",placeholder:"Le message affiché sur les téléphones"},null,512),[[Se,n.value]])]),r("label",Up,[he(r("input",{"onUpdate:modelValue":f[2]||(f[2]=c=>s.value=c),type:"checkbox"},null,512),[[nu,s.value]]),f[6]||(f[6]=It(" Tous les comptes ",-1))]),s.value?Z("",!0):(E(),R("label",Bp,[f[7]||(f[7]=r("span",null,"Numéro du compte",-1)),he(r("input",{"onUpdate:modelValue":f[3]||(f[3]=c=>l.value=c),required:"",placeholder:"+22890000000"},null,512),[[Se,l.value]])])),r("button",{class:"primary-btn",disabled:a.value},_(a.value?"Envoi…":"Envoyer"),9,Hp)],32)],64))}},Kp={class:"card panel"},Gp={class:"panel-head"},Wp={key:0,class:"error-banner"},zp={class:"table-wrap"},Yp=["onClick"],Jp={"data-label":"Date"},Qp={"data-label":"Client"},Xp={"data-label":"Opérateur"},Zp={"data-label":"Numéro"},eh={"data-label":"Brut"},th={"data-label":"Frais"},nh={"data-label":"Net"},sh={"data-label":"Règlement"},lh={key:0,class:"empty"},oh={key:1,class:"empty"},ho={__name:"OperationsView",props:{kind:{type:String,required:!0}},setup(e){const t=e,n={deposit:"Recharges Mobile Money",withdrawal:"Retraits Mobile Money"},s=A([]),l=A(null),o=A(!1),i=A(""),a=A(""),u=A(1),p=A(!1),f=A(null),c=A(!1);async function d(){o.value=!0,i.value="";try{const C=await ge("/admin/transactions",{query:{type:t.kind,q:a.value,page:u.value}});s.value=C.items,l.value=C.pagination}catch(C){i.value=C.message}finally{o.value=!1}}async function m(C){p.value=!0,f.value=C,c.value=!0;try{f.value=await ge(`/admin/transactions/${C.id}`)}catch(y){i.value=y.message}finally{c.value=!1}}return Vt(()=>t.kind,()=>{u.value=1,d()}),Ze(d),(C,y)=>(E(),R(Y,null,[r("section",Kp,[r("div",Gp,[r("div",null,[r("h2",null,_(n[e.kind]),1),y[4]||(y[4]=r("p",{class:"muted"},"Opérateur, numéro, frais, net et métadonnées de règlement.",-1))]),r("form",{onSubmit:y[1]||(y[1]=je(T=>{u.value=1,d()},["prevent"]))},[he(r("input",{"onUpdate:modelValue":y[0]||(y[0]=T=>a.value=T),placeholder:"Téléphone ou client","aria-label":"Recherche"},null,512),[[Se,a.value]])],32)]),i.value?(E(),R("p",Wp,_(i.value),1)):Z("",!0),y[6]||(y[6]=r("p",{class:"muted table-hint"},"Cliquez une ligne pour ouvrir le détail et les métadonnées.",-1)),r("div",zp,[r("table",null,[y[5]||(y[5]=r("thead",null,[r("tr",null,[r("th",null,"Date"),r("th",null,"Client"),r("th",null,"Opérateur"),r("th",null,"Numéro"),r("th",null,"Brut"),r("th",null,"Frais"),r("th",null,"Net"),r("th",null,"Règlement")])],-1)),r("tbody",null,[(E(!0),R(Y,null,be(s.value,T=>(E(),R("tr",{key:T.id,class:"clickable",onClick:j=>m(T)},[r("td",Jp,_(F(De)(T.created_at)),1),r("td",Qp,_(F(Le)(T.user)),1),r("td",Xp,_(T.metadata?.provider||"—"),1),r("td",Zp,_(T.metadata?.phone_number||"—"),1),r("td",eh,[r("strong",null,_(F(pe)(T.amount_cents)),1)]),r("td",th,_(F(pe)(T.fee_cents)),1),r("td",nh,_(T.net_cents==null?"—":F(pe)(T.net_cents)),1),r("td",sh,[r("span",{class:xe(["pill",T.status])},_(F(_e)(T.metadata?.settlement||T.status)),3)])],8,Yp))),128))])]),o.value?(E(),R("p",lh,"Chargement…")):s.value.length?Z("",!0):(E(),R("p",oh,"Aucune opération de ce type."))]),ne(Yt,{pagination:l.value,onPage:y[2]||(y[2]=T=>{u.value=T,d()})},null,8,["pagination"])]),ne(dl,{open:p.value,loading:c.value,item:f.value,onClose:y[3]||(y[3]=T=>p.value=!1)},null,8,["open","loading","item"])],64))}},rh={class:"card panel"},ih={key:0,class:"error-banner"},ah={class:"table-wrap"},uh=["onClick"],ch={"data-label":"Date"},fh={"data-label":"Type"},dh={"data-label":"Client"},ph={class:"stack"},hh={"data-label":"Contrepartie"},mh={class:"stack"},vh={"data-label":"Montant"},gh={"data-label":"Frais"},_h={"data-label":"Statut"},yh={key:0,class:"empty"},bh={key:1,class:"empty"},wh={__name:"TransactionsView",setup(e){const t=jr(),n=A([]),s=A(null),l=A(!1),o=A(""),i=A({q:t.query.q||"",type:"",status:"",from:"",to:"",page:1}),a=A(!1),u=A(null),p=A(!1);async function f(){l.value=!0,o.value="";try{const m=await ge("/admin/transactions",{query:i.value});n.value=m.items,s.value=m.pagination}catch(m){o.value=m.message}finally{l.value=!1}}async function c(m){a.value=!0,u.value=m,p.value=!0;try{u.value=await ge(`/admin/transactions/${m.id}`)}catch(C){o.value=C.message}finally{p.value=!1}}function d(){i.value.page=1,f()}return Vt(()=>t.query.q,m=>{i.value.q=m||"",d()}),Ze(f),(m,C)=>(E(),R(Y,null,[r("section",rh,[r("form",{class:"filters",onSubmit:je(d,["prevent"])},[he(r("input",{"onUpdate:modelValue":C[0]||(C[0]=y=>i.value.q=y),placeholder:"Référence, nom, téléphone","aria-label":"Recherche"},null,512),[[Se,i.value.q]]),he(r("select",{"onUpdate:modelValue":C[1]||(C[1]=y=>i.value.type=y),"aria-label":"Type",onChange:d},[...C[6]||(C[6]=[pn('',5)])],544),[[An,i.value.type]]),he(r("select",{"onUpdate:modelValue":C[2]||(C[2]=y=>i.value.status=y),"aria-label":"Statut",onChange:d},[...C[7]||(C[7]=[r("option",{value:""},"Tous les statuts",-1),r("option",{value:"posted"},"Comptabilisé",-1),r("option",{value:"pending"},"En attente",-1)])],544),[[An,i.value.status]]),he(r("input",{"onUpdate:modelValue":C[3]||(C[3]=y=>i.value.from=y),type:"date","aria-label":"Depuis",onChange:d},null,544),[[Se,i.value.from]])],32),o.value?(E(),R("p",ih,_(o.value),1)):Z("",!0),C[9]||(C[9]=r("p",{class:"muted table-hint"},"Cliquez une ligne pour ouvrir le détail et les métadonnées.",-1)),r("div",ah,[r("table",null,[C[8]||(C[8]=r("thead",null,[r("tr",null,[r("th",null,"Date"),r("th",null,"Type"),r("th",null,"Client"),r("th",null,"Contrepartie"),r("th",null,"Montant"),r("th",null,"Frais"),r("th",null,"Statut")])],-1)),r("tbody",null,[(E(!0),R(Y,null,be(n.value,y=>(E(),R("tr",{key:y.id,class:"clickable",onClick:T=>c(y)},[r("td",ch,_(F(De)(y.created_at)),1),r("td",fh,[r("span",{class:xe(["pill",y.type])},_(F(_e)(y.type)),3)]),r("td",dh,[r("div",ph,[r("strong",null,_(F(Le)(y.user)),1),r("small",null,_(y.user?.phone_number),1)])]),r("td",hh,[r("div",mh,[r("strong",null,_(y.counterparty?.name||"—"),1),r("small",null,_(y.channel),1)])]),r("td",vh,[r("strong",null,_(F(pe)(y.amount_cents)),1)]),r("td",gh,_(F(pe)(y.fee_cents)),1),r("td",_h,[r("span",{class:xe(["pill",y.status])},_(F(_e)(y.status)),3)])],8,uh))),128))])]),l.value?(E(),R("p",yh,"Chargement…")):n.value.length?Z("",!0):(E(),R("p",bh,"Aucune transaction ne correspond à ces filtres."))]),ne(Yt,{pagination:s.value,onPage:C[4]||(C[4]=y=>{i.value.page=y,f()})},null,8,["pagination"])]),ne(dl,{open:a.value,loading:p.value,item:u.value,onClose:C[5]||(C[5]=y=>a.value=!1)},null,8,["open","loading","item"])],64))}},Ch={class:"card panel"},xh={key:0,class:"error-banner"},Sh={class:"table-wrap"},Eh=["onClick"],Rh={"data-label":"Compte"},$h={class:"stack"},Ah={"data-label":"Téléphone"},kh={"data-label":"Pays"},Ph={"data-label":"Rôle"},Oh={class:"pill"},Th={"data-label":"Statut"},Mh={"data-label":"Solde"},Ih={"data-label":"Créé"},Nh={key:0,class:"empty"},Dh={key:1,class:"empty"},Vh={__name:"UsersView",setup(e){const t=A([]),n=A(null),s=A(!1),l=A(""),o=A(""),i=A(""),a=A(1),u=A(null),p=()=>{const c=u.value;return c?[{label:"Identifiant",value:String(c.id)},{label:"Nom",value:c.name||"Sans nom"},{label:"E-mail",value:c.email||"—"},{label:"Téléphone",value:c.phone_number||"—"},{label:"Pays",value:c.country_iso||"—"},{label:"Devise",value:c.currency},{label:"Rôle",value:_e(c.role)},{label:"Statut",value:_e(c.status)},{label:"Téléphone vérifié",value:De(c.phone_verified_at)},{label:"Portefeuilles",value:String(c.wallets_count??0)},{label:"Solde",value:pe(c.balance_cents)},{label:"Créé le",value:De(c.created_at)}]:[]};async function f(){s.value=!0,l.value="";try{const c=await ge("/admin/users",{query:{q:o.value,role:i.value,page:a.value}});t.value=c.items,n.value=c.pagination}catch(c){l.value=c.message}finally{s.value=!1}}return Ze(f),(c,d)=>(E(),R(Y,null,[r("section",Ch,[r("form",{class:"filters",onSubmit:d[3]||(d[3]=je(m=>{a.value=1,f()},["prevent"]))},[he(r("input",{"onUpdate:modelValue":d[0]||(d[0]=m=>o.value=m),placeholder:"Nom, téléphone, e-mail","aria-label":"Recherche de compte"},null,512),[[Se,o.value]]),he(r("select",{"onUpdate:modelValue":d[1]||(d[1]=m=>i.value=m),"aria-label":"Rôle",onChange:d[2]||(d[2]=m=>{a.value=1,f()})},[...d[6]||(d[6]=[r("option",{value:""},"Tous les rôles",-1),r("option",{value:"customer"},"Clients",-1),r("option",{value:"admin"},"Admins",-1)])],544),[[An,i.value]])],32),l.value?(E(),R("p",xh,_(l.value),1)):Z("",!0),d[8]||(d[8]=r("p",{class:"muted table-hint"},"Cliquez une ligne pour ouvrir la fiche.",-1)),r("div",Sh,[r("table",null,[d[7]||(d[7]=r("thead",null,[r("tr",null,[r("th",null,"Compte"),r("th",null,"Téléphone"),r("th",null,"Pays"),r("th",null,"Rôle"),r("th",null,"Statut"),r("th",null,"Solde"),r("th",null,"Créé")])],-1)),r("tbody",null,[(E(!0),R(Y,null,be(t.value,m=>(E(),R("tr",{key:m.id,class:"clickable",onClick:C=>u.value=m},[r("td",Rh,[r("div",$h,[r("strong",null,_(m.name||"Sans nom"),1),r("small",null,_(m.email||"sans e-mail"),1)])]),r("td",Ah,_(m.phone_number||"—"),1),r("td",kh,_(m.country_iso||"—"),1),r("td",Ph,[r("span",Oh,_(F(_e)(m.role)),1)]),r("td",Th,[r("span",{class:xe(["pill",m.status])},_(F(_e)(m.status)),3)]),r("td",Mh,[r("strong",null,_(F(pe)(m.balance_cents)),1)]),r("td",Ih,_(F(De)(m.created_at)),1)],8,Eh))),128))])]),s.value?(E(),R("p",Nh,"Chargement…")):t.value.length?Z("",!0):(E(),R("p",Dh,"Aucun compte."))]),ne(Yt,{pagination:n.value,onPage:d[4]||(d[4]=m=>{a.value=m,f()})},null,8,["pagination"])]),ne(pl,{open:!!u.value,title:u.value?.name||"Compte",subtitle:u.value?.phone_number||u.value?.email||"",rows:p(),onClose:d[5]||(d[5]=m=>u.value=null)},null,8,["open","title","subtitle","rows"])],64))}},Fh={class:"card panel"},Lh={key:0,class:"error-banner"},jh={class:"table-wrap"},Uh=["onClick"],Bh={"data-label":"Portefeuille"},Hh={"data-label":"Titulaire"},qh={class:"stack"},Kh={"data-label":"Pays"},Gh={"data-label":"Devise"},Wh={"data-label":"Solde"},zh={"data-label":"Statut"},Yh={"data-label":"Ouvert"},Jh={key:0,class:"empty"},Qh={key:1,class:"empty"},Xh={__name:"WalletsView",setup(e){const t=A([]),n=A(null),s=A(!1),l=A(""),o=A(""),i=A(1),a=A(null);function u(){const f=a.value;return f?[{label:"Portefeuille",value:`#${f.id}`},{label:"Titulaire",value:Le(f.user)},{label:"Téléphone",value:f.user?.phone_number||"—"},{label:"Pays",value:f.user?.country_iso||"—"},{label:"Statut du compte",value:_e(f.user?.status)},{label:"Devise",value:f.currency},{label:"Solde",value:pe(f.balance_cents)},{label:"Statut",value:_e(f.status)},{label:"Ouvert le",value:De(f.created_at)}]:[]}async function p(){s.value=!0,l.value="";try{const f=await ge("/admin/wallets",{query:{q:o.value,page:i.value}});t.value=f.items,n.value=f.pagination}catch(f){l.value=f.message}finally{s.value=!1}}return Ze(p),(f,c)=>(E(),R(Y,null,[r("section",Fh,[r("form",{class:"filters",onSubmit:c[1]||(c[1]=je(d=>{i.value=1,p()},["prevent"]))},[he(r("input",{"onUpdate:modelValue":c[0]||(c[0]=d=>o.value=d),placeholder:"Titulaire ou devise","aria-label":"Recherche de portefeuille"},null,512),[[Se,o.value]])],32),l.value?(E(),R("p",Lh,_(l.value),1)):Z("",!0),c[5]||(c[5]=r("p",{class:"muted table-hint"},"Cliquez une ligne pour ouvrir la fiche.",-1)),r("div",jh,[r("table",null,[c[4]||(c[4]=r("thead",null,[r("tr",null,[r("th",null,"Portefeuille"),r("th",null,"Titulaire"),r("th",null,"Pays"),r("th",null,"Devise"),r("th",null,"Solde"),r("th",null,"Statut"),r("th",null,"Ouvert")])],-1)),r("tbody",null,[(E(!0),R(Y,null,be(t.value,d=>(E(),R("tr",{key:d.id,class:"clickable",onClick:m=>a.value=d},[r("td",Bh,"#"+_(d.id),1),r("td",Hh,[r("div",qh,[r("strong",null,_(F(Le)(d.user)),1),r("small",null,_(d.user?.phone_number),1)])]),r("td",Kh,_(d.user?.country_iso||"—"),1),r("td",Gh,_(d.currency),1),r("td",Wh,[r("strong",null,_(F(pe)(d.balance_cents)),1)]),r("td",zh,[r("span",{class:xe(["pill",d.status])},_(F(_e)(d.status)),3)]),r("td",Yh,_(F(De)(d.created_at)),1)],8,Uh))),128))])]),s.value?(E(),R("p",Jh,"Chargement…")):t.value.length?Z("",!0):(E(),R("p",Qh,"Aucun portefeuille."))]),ne(Yt,{pagination:n.value,onPage:c[2]||(c[2]=d=>{i.value=d,p()})},null,8,["pagination"])]),ne(pl,{open:!!a.value,title:`Portefeuille #${a.value?.id||""}`,subtitle:F(Le)(a.value?.user),rows:u(),onClose:c[3]||(c[3]=d=>a.value=null)},null,8,["open","title","subtitle","rows"])],64))}},Ur=wc({history:Zu(),routes:[{path:"/login",name:"login",component:op,meta:{guest:!0}},{path:"/",component:Lc,children:[{path:"",name:"dashboard",component:Ff,meta:{title:"Tableau de bord"}},{path:"frais",name:"fees",component:zf,meta:{title:"Frais"}},{path:"plafonds",name:"limits",component:sd,meta:{title:"Plafonds"}},{path:"demandes-plafond",name:"limit-requests",component:Id,meta:{title:"Demandes de plafond"}},{path:"transactions",name:"transactions",component:wh,meta:{title:"Transactions"}},{path:"recharges",name:"deposits",component:ho,props:{kind:"deposit"},meta:{title:"Recharges"}},{path:"retraits",name:"withdrawals",component:ho,props:{kind:"withdrawal"},meta:{title:"Retraits"}},{path:"comptes",name:"users",component:Vh,meta:{title:"Comptes"}},{path:"portefeuilles",name:"wallets",component:Xh,meta:{title:"Portefeuilles"}},{path:"liens",name:"links",component:Zd,meta:{title:"Liens de paiement"}},{path:"journaux",name:"logs",component:Dp,meta:{title:"Journaux"}},{path:"notifications",name:"notifications",component:qp,meta:{title:"Notifications"}}]}]});Ur.beforeEach(e=>{const t=localStorage.getItem("yemo_admin_token");return!e.meta.guest&&!t?{name:"login"}:e.name==="login"&&t?{name:"dashboard"}:!0});au(mu).use(du()).use(Ur).mount("#app");