var e=Object.defineProperty,t=(t,n)=>{let r=Object.setPrototypeOf({},null);for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n&1||e(r,Symbol.toStringTag,{value:`Module`}),n&2?r:Object.preventExtensions(r)};function n(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var r={},i=[],a=()=>{},o=()=>!1,s=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),c=e=>e.startsWith(`onUpdate:`),l=Object.assign,u=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},d=Object.prototype.hasOwnProperty,f=(e,t)=>d.call(e,t),p=Array.isArray,m=e=>C(e)===`[object Map]`,h=e=>C(e)===`[object Set]`,g=e=>C(e)===`[object Date]`,_=e=>C(e)===`[object RegExp]`,v=e=>typeof e==`function`,y=e=>typeof e==`string`,b=e=>typeof e==`symbol`,x=e=>typeof e==`object`&&!!e,S=e=>(x(e)||v(e))&&v(e.then)&&v(e.catch),ee=Object.prototype.toString,C=e=>ee.call(e),te=e=>C(e).slice(8,-1),w=e=>C(e)===`[object Object]`,T=e=>y(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,ne=n(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),re=1e4,ie=e=>{let t=Object.create(null),n=0;return(r=>{let i=t[r];return i===void 0?(++n>re&&(t=Object.create(null),n=1),t[r]=e(r)):i})},ae=/-\w/g,E=ie(e=>e.replace(ae,e=>e.slice(1).toUpperCase())),oe=/\B([A-Z])/g,se=ie(e=>e.replace(oe,`-$1`).toLowerCase()),ce=ie(e=>e.charAt(0).toUpperCase()+e.slice(1)),le=ie(e=>e?`on${ce(e)}`:``),ue=(e,t)=>!Object.is(e,t),de=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},pe=e=>{let t=parseFloat(e);return isNaN(t)?e:t},me=e=>{let t=y(e)?Number(e):NaN;return isNaN(t)?e:t},he,ge=()=>he||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{},_e=n(`Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol`);function ve(e){if(p(e)){let t={};for(let n=0;ne.startsWith(`/*`)?``:e).split(ye).forEach(e=>{if(e){let n=e.split(be);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function D(e){let t=``;if(y(e))t=e;else if(p(e))for(let n=0;nje(e,t))}function Ne(e){return Object.getPrototypeOf(e)===null&&e[Symbol.toPrimitive]==null&&typeof e.toString!=`function`&&typeof e.valueOf!=`function`?C(e):String(e)}var Pe=e=>!!(e&&e.__v_isRef===!0),O=e=>y(e)?e:e==null?``:p(e)||x(e)&&(e.toString===ee||!v(e.toString))?Pe(e)?O(e.value):JSON.stringify(e,Fe,2):String(e),Fe=(e,t)=>Pe(t)?Fe(e,t.value):m(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Ie(t,r)+` =>`]=n,e),{})}:h(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Ie(e))}:b(t)?Ie(t):x(t)&&!p(t)&&!w(t)?String(t):t,Ie=(e,t=``)=>b(e)?`Symbol(${e.description??t})`:e;function Le(e){return e==null?`initial`:typeof e==`string`?e===``?` `:e:String(e)}var Re,ze=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&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 e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e0&&--this._on===0){if(Re===this)Re=this.prevScope;else{let e=Re;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t0)return;if(qe){let e=qe;for(qe=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Ke;){let t=Ke;for(Ke=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function Ze(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Qe(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),tt(r),nt(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function $e(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(et(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function et(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ut)||(e.globalVersion=ut,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!$e(e))))return;e.flags|=2;let t=e.dep,n=k,r=at;k=e,at=!0;try{Ze(e);let n=e.fn(e._value);(t.version===0||ue(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{k=n,at=r,Qe(e),e.flags&=-3}}function tt(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)tt(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function nt(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function rt(e,t){e.effect instanceof We&&(e=e.effect.fn);let n=new We(e);t&&l(n,t);try{n.run()}catch(e){throw n.stop(),e}let r=n.run.bind(n);return r.effect=n,r}function it(e){e.effect.stop()}var at=!0,ot=[];function st(){ot.push(at),at=!1}function ct(){let e=ot.pop();at=e===void 0||e}function lt(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=k;k=void 0;try{t()}finally{k=e}}}var ut=0,dt=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},ft=class{constructor(e){this.computed=e,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(e){if(!k||!at||k===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==k)t=this.activeLink=new dt(k,this),k.deps?(t.prevDep=k.depsTail,k.depsTail.nextDep=t,k.depsTail=t):k.deps=k.depsTail=t,pt(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=k.depsTail,t.nextDep=void 0,k.depsTail.nextDep=t,k.depsTail=t,k.deps===t&&(k.deps=e)}return t}trigger(e){this.version++,ut++,this.notify(e)}notify(e){Ye();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Xe()}}};function pt(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)pt(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var mt=new WeakMap,ht=Symbol(``),gt=Symbol(``),_t=Symbol(``);function vt(e,t,n){if(at&&k){let t=mt.get(e);t||mt.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new ft),r.map=t,r.key=n),r.track()}}function yt(e,t,n,r,i,a){let o=mt.get(e);if(!o){ut++;return}let s=e=>{e&&e.trigger()};if(Ye(),t===`clear`)o.forEach(s);else{let i=p(e),a=i&&T(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===_t||!b(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(_t)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(ht)),m(e)&&s(o.get(gt)));break;case`delete`:i||(s(o.get(ht)),m(e)&&s(o.get(gt)));break;case`set`:m(e)&&s(o.get(ht))}}Xe()}function bt(e,t){let n=mt.get(e);return n&&n.get(t)}function xt(e){let t=A(e);return t===e||(vt(t,`iterate`,_t),fn(e))?t:dn(e)?un(e)?t.map(e=>gn(hn(e))):t.map(gn):t.map(hn)}function St(e){return vt(e=A(e),`iterate`,_t),e}var Ct=e=>gn(hn(e));function wt(e){return dn(e)?un(e)?Ct:gn:hn}var Tt={__proto__:null,[Symbol.iterator](){return Et(this,Symbol.iterator,wt(this))},concat(...e){return xt(this).concat(...e.map(e=>p(e)?xt(e):e))},entries(){let e=wt(this);return Et(this,`entries`,t=>(t[1]=e(t[1]),t))},every(e,t){return kt(this,`every`,e,t,void 0,arguments)},filter(e,t){return kt(this,`filter`,e,t,e=>e.map(wt(this)),arguments)},find(e,t){return kt(this,`find`,e,t,e=>wt(this)(e),arguments)},findIndex(e,t){return kt(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return kt(this,`findLast`,e,t,e=>wt(this)(e),arguments)},findLastIndex(e,t){return kt(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return kt(this,`forEach`,e,t,void 0,arguments)},includes(...e){return jt(this,`includes`,e)},indexOf(...e){return jt(this,`indexOf`,e)},join(e){return xt(this).join(e)},lastIndexOf(...e){return jt(this,`lastIndexOf`,e)},map(e,t){return kt(this,`map`,e,t,void 0,arguments)},pop(){return Mt(this,`pop`)},push(...e){return Mt(this,`push`,e)},reduce(e,...t){return At(this,`reduce`,e,t)},reduceRight(e,...t){return At(this,`reduceRight`,e,t)},shift(){return Mt(this,`shift`)},some(e,t){return kt(this,`some`,e,t,void 0,arguments)},splice(...e){return Mt(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 Mt(this,`unshift`,e)},values(){return Et(this,`values`,wt(this))}};function Et(e,t,n){let r=St(e),i=r[t],a=i.call(r);if(r!==e&&!fn(e)){if(a[Symbol.toStringTag]===`Array Iterator`){let e=Object.create(Object.getPrototypeOf(a));return e.next=()=>Dt(a.next(),n),i!==Ot[t]&&Object.defineProperties(e,{return:{get(){let e=a.return;return typeof e==`function`?e.bind(a):e}},throw:{get(){let e=a.throw;return typeof e==`function`?e.bind(a):e}}}),e}a._next=a.next,a.next=()=>Dt(a._next(),n)}return a}function Dt(e,t){return e.done||(e.value=t(e.value)),e}var Ot=Array.prototype;function kt(e,t,n,r,i,a){let o=St(e),s=o!==e&&!fn(e),c=o[t];if(c!==Ot[t]){let t=c.apply(e,a);return s?hn(t):t}let l=n;if(o!==e){if(s){let t=wt(e);l=function(r,i){return n.call(this,t(r),i,e)}}else n.length>2&&(l=function(t,r){return n.call(this,t,r,e)})}let u=c.call(o,l,r);return s&&i?i(u):u}function At(e,t,n,r){let i=St(e),a=i!==e&&!fn(e),o=n,s=!1;if(i!==e){if(a){let t=wt(e);s=r.length===0,o=function(r,i,a){return s&&(s=!1,r=t(r)),n.call(this,r,t(i),a,e)}}else n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)})}let c=i[t](o,...r);return s?wt(e)(c):c}function jt(e,t,n){let r=A(e);vt(r,`iterate`,_t);let i=r[t](...n);return(i===-1||i===!1)&&pn(n[0])?(n[0]=A(n[0]),r[t](...n)):i}function Mt(e,t,n=[]){st(),Ye();let r=A(e)[t].apply(e,n);return Xe(),ct(),r}var Nt=n(`__proto__,__v_isRef,__isVue`),Pt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(b));function Ft(e){b(e)||(e=String(e));let t=A(this);return vt(t,`has`,e),t.hasOwnProperty(e)}var It=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?nn:tn:i?en:$t).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=p(e);if(!r){let e;if(a&&(e=Tt[t]))return e;if(t===`hasOwnProperty`)return Ft}let o=Reflect.get(e,t,j(e)?e:n);if((b(t)?Pt.has(t):Nt(t))||(r||vt(e,`get`,t),i))return o;if(j(o)){let e=a&&T(t)?o:o.value;return r&&x(e)?sn(e):e}return x(o)?r?sn(o):an(o):o}},Lt=class extends It{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=p(e)&&T(t);if(!this._isShallow){let e=dn(i);if(!fn(n)&&!dn(n)&&(i=A(i),n=A(n)),!a&&j(i)&&!j(n))return e||(i.value=n),!0}let o=a?Number(t)e,Wt=e=>Reflect.getPrototypeOf(e);function Gt(e,t,n){return function(...r){let i=this.__v_raw,a=A(i),o=m(a),s=e===`entries`||e===Symbol.iterator&&o,c=e===`keys`&&o,u=i[e](...r),d=n?Ut:t?gn:hn;return!t&&vt(a,`iterate`,c?gt:ht),l(Object.create(u),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:s?[d(e[0]),d(e[1])]:d(e),done:t}}})}}function Kt(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function qt(e,t){let n={get(n){let r=this.__v_raw,i=A(r),a=A(n);e||(ue(n,a)&&vt(i,`get`,n),vt(i,`get`,a));let{has:o}=Wt(i),s=t?Ut:e?gn:hn;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&vt(A(t),`iterate`,ht),t.size},has(t){let n=this.__v_raw,r=A(n),i=A(t);return e||(ue(t,i)&&vt(r,`has`,t),vt(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=A(a),s=t?Ut:e?gn:hn;return!e&&vt(o,`iterate`,ht),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return l(n,e?{add:Kt(`add`),set:Kt(`set`),delete:Kt(`delete`),clear:Kt(`clear`)}:{add(e){let n=A(this),r=Wt(n),i=A(e),a=!t&&!fn(e)&&!dn(e)?i:e;return r.has.call(n,a)||ue(e,a)&&r.has.call(n,e)||ue(i,a)&&r.has.call(n,i)||(n.add(a),yt(n,`add`,a,a)),this},set(e,n){t||fn(n)||dn(n)||(n=A(n));let r=A(this),{has:i,get:a}=Wt(r),o=i.call(r,e);o||=(e=A(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?ue(n,s)&&yt(r,`set`,e,n,s):yt(r,`add`,e,n),this},delete(e){let t=A(this),{has:n,get:r}=Wt(t),i=n.call(t,e);i||=(e=A(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&yt(t,`delete`,e,void 0,a),o},clear(){let e=A(this),t=e.size!==0,n=e.clear();return t&&yt(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=Gt(r,e,t)}),n}function Jt(e,t){let n=qt(e,t);return(r,i,a)=>i===`__v_isReactive`?!e:i===`__v_isReadonly`?e:i===`__v_isShallow`?t:i===`__v_raw`?r:Reflect.get(f(n,i)&&i in r?n:r,i,a)}var Yt={get:Jt(!1,!1)},Xt={get:Jt(!1,!0)},Zt={get:Jt(!0,!1)},Qt={get:Jt(!0,!0)},$t=new WeakMap,en=new WeakMap,tn=new WeakMap,nn=new WeakMap;function rn(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function an(e){return dn(e)?e:ln(e,!1,zt,Yt,$t)}function on(e){return ln(e,!1,Vt,Xt,en)}function sn(e){return ln(e,!0,Bt,Zt,tn)}function cn(e){return ln(e,!0,Ht,Qt,nn)}function ln(e,t,n,r,i){if(!x(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let a=i.get(e);if(a)return a;let o=rn(te(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function un(e){return dn(e)?un(e.__v_raw):!!(e&&e.__v_isReactive)}function dn(e){return!!(e&&e.__v_isReadonly)}function fn(e){return!!(e&&e.__v_isShallow)}function pn(e){return e?!!e.__v_raw:!1}function A(e){let t=e&&e.__v_raw;return t?A(t):e}function mn(e){return!f(e,`__v_skip`)&&Object.isExtensible(e)&&fe(e,`__v_skip`,!0),e}var hn=e=>x(e)?an(e):e,gn=e=>x(e)?sn(e):e;function j(e){return e?e.__v_isRef===!0:!1}function M(e){return vn(e,!1)}function _n(e){return vn(e,!0)}function vn(e,t){return j(e)?e:new yn(e,t)}var yn=class{constructor(e,t){this.dep=new ft,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:A(e),this._value=t?e:hn(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||fn(e)||dn(e);e=n?e:A(e),ue(e,t)&&(this._rawValue=e,this._value=n?e:hn(e),this.dep.trigger())}};function bn(e){e.dep&&e.dep.trigger()}function N(e){return j(e)?e.value:e}function xn(e){return v(e)?e():N(e)}var Sn={get:(e,t,n)=>t===`__v_raw`?e:N(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return j(i)&&!j(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Cn(e){return un(e)?e:new Proxy(e,Sn)}var wn=class{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new ft,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}};function Tn(e){return new wn(e)}function En(e){let t=p(e)?Array(e.length):{};for(let n in e)t[n]=An(e,n);return t}var Dn=class{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=b(t)?t:String(t),this._raw=A(e);let r=!0,i=e;if(!p(e)||b(this._key)||!T(this._key))do r=!pn(i)||fn(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=N(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&j(this._raw[this._key])){let t=this._object[this._key];if(j(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return bt(this._raw,this._key)}},On=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function kn(e,t,n){return j(e)?e:v(e)?new On(e):x(e)&&arguments.length>1?An(e,t,n):M(e)}function An(e,t,n){return new Dn(e,t,n)}var jn=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new ft(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ut-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&k!==this)return Je(this,!0),!0}get value(){let e=this.dep.track();return et(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function Mn(e,t,n=!1){let r,i;return v(e)?r=e:(r=e.get,i=e.set),new jn(r,i,n)}var Nn={GET:`get`,HAS:`has`,ITERATE:`iterate`},Pn={SET:`set`,ADD:`add`,DELETE:`delete`,CLEAR:`clear`},Fn={},In=new WeakMap,Ln=void 0;function Rn(){return Ln}function zn(e,t=!1,n=Ln){if(n){let t=In.get(n);t||In.set(n,t=[]),t.push(e)}}function Bn(e,t,n=r){let{immediate:i,deep:o,once:s,scheduler:c,augmentJob:l,call:d,onStop:f}=n,m=e=>o?e:fn(e)||o===!1||o===0?Vn(e,1):Vn(e),h,g,_,y,b=!1,x=!1;if(j(e)?(g=()=>e.value,b=fn(e)):un(e)?(g=()=>m(e),b=!0):p(e)?(x=!0,b=e.some(e=>un(e)||fn(e)),g=()=>e.map(e=>{if(j(e))return e.value;if(un(e))return m(e);if(v(e))return d?d(e,2):e()})):g=v(e)?t?d?()=>d(e,2):e:()=>{if(_){st();try{_()}finally{ct()}}let t=Ln;Ln=h;try{return d?d(e,3,[y]):e(y)}finally{Ln=t}}:a,t&&o){let e=g,t=o===!0?1/0:o;g=()=>Vn(e(),x?t+1:t)}let S=Ve(),ee=()=>{h.stop(),S&&S.active&&u(S.effects,h)},C=!1;if(s&&t){let e=t;t=(...t)=>{C=!0;try{return e(...t)}finally{ee()}}}let te=x?Array(e.length).fill(Fn):Fn,w=e=>{if(!C&&h.flags&1&&(h.dirty||e)){if(t){let n=h.run();if(e||o||b||(x?n.some((e,t)=>ue(e,te[t])):ue(n,te))){let e=Ln;st();try{_&&_(),Ln=h;let e=[n,te===Fn?void 0:x&&te[0]===Fn?[]:te,y];te=n,d?d(t,3,e):t(...e)}finally{Ln=e,ct()}}}else h.run()}};return l&&l(w),h=new We(g),h.scheduler=c?()=>c(w,!1):w,y=e=>zn(e,!1,h),_=h.onStop=()=>{let e=In.get(h);if(e){if(d)d(e,4);else for(let t of e)t();In.delete(h)}},f&&(h.onStop=()=>{_(),f()}),t?i?w(!0):te=h.run():c?c(w.bind(null,!0),!0):h.run(),ee.pause=h.pause.bind(h),ee.resume=h.resume.bind(h),ee.stop=ee,ee}function Vn(e,t=1/0,n){if(t<=0||!x(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,j(e))Vn(e.value,t,n);else if(p(e)){if(un(e)&&!dn(e)&&!fn(e)){let r=A(e);vt(r,`iterate`,_t);for(let e=0;e{Vn(e,t,n)});else if(w(e)){for(let r in e)Vn(e[r],t,n);let r=A(e);for(let i of Object.getOwnPropertySymbols(r))Object.prototype.propertyIsEnumerable.call(r,i)&&Vn(e[i],t,n)}return e}var Hn=[];function Un(e){Hn.push(e)}function Wn(){Hn.pop()}function Gn(e,t){}var Kn={SETUP_FUNCTION:0,0:`SETUP_FUNCTION`,RENDER_FUNCTION:1,1:`RENDER_FUNCTION`,NATIVE_EVENT_HANDLER:5,5:`NATIVE_EVENT_HANDLER`,COMPONENT_EVENT_HANDLER:6,6:`COMPONENT_EVENT_HANDLER`,VNODE_HOOK:7,7:`VNODE_HOOK`,DIRECTIVE_HOOK:8,8:`DIRECTIVE_HOOK`,TRANSITION_HOOK:9,9:`TRANSITION_HOOK`,APP_ERROR_HANDLER:10,10:`APP_ERROR_HANDLER`,APP_WARN_HANDLER:11,11:`APP_WARN_HANDLER`,FUNCTION_REF:12,12:`FUNCTION_REF`,ASYNC_COMPONENT_LOADER:13,13:`ASYNC_COMPONENT_LOADER`,SCHEDULER:14,14:`SCHEDULER`,COMPONENT_UPDATE:15,15:`COMPONENT_UPDATE`,APP_UNMOUNT_CLEANUP:16,16:`APP_UNMOUNT_CLEANUP`},qn={sp:`serverPrefetch hook`,bc:`beforeCreate hook`,c:`created hook`,bm:`beforeMount hook`,m:`mounted hook`,bu:`beforeUpdate hook`,u:`updated`,bum:`beforeUnmount hook`,um:`unmounted hook`,a:`activated hook`,da:`deactivated hook`,ec:`errorCaptured hook`,rtc:`renderTracked hook`,rtg:`renderTriggered hook`,0:`setup function`,1:`render function`,2:`watcher getter`,3:`watcher callback`,4:`watcher cleanup function`,5:`native event handler`,6:`component event handler`,7:`vnode hook`,8:`directive hook`,9:`transition hook`,10:`app errorHandler`,11:`app warnHandler`,12:`ref function`,13:`async component loader`,14:`scheduler flush`,15:`component update`,16:`app unmount cleanup function`};function Jn(e,t,n,r){try{return r?e(...r):e()}catch(e){Xn(e,t,n)}}function Yn(e,t,n,r){if(v(e)){let i=Jn(e,t,n,r);return i&&S(i)&&i.catch(e=>{Xn(e,t,n,void 0,!0)}),i}if(p(e)){let i=[];for(let a=0;a>>1,i=Qn[r],a=mr(i);a=mr(n)?Qn.push(e):Qn.splice(or(t),0,e),e.flags|=1,cr()}}function cr(){ir||=rr.then(hr)}function lr(e){if(!p(e))tr&&e.id===-1?tr.splice(nr+1,0,e):e.flags&1||(er.push(e),e.flags|=1);else for(let t=0;t=t))continue;Qn.splice(r,1),r=e?r-1:$n,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function dr(e,t,n=0){if(er.length){let e=er,r=0;if(t){e=[];for(let i=0;imr(e)-mr(t));if(er.length=r,tr){for(let e=0;ee.id==null?e.flags&2?-1:1/0:e.id;function hr(e){try{for($n=0;$ngr.emit(e,...t)),_r=[]):typeof window<`u`&&window.HTMLElement&&!(window.navigator?.userAgent)?.includes(`jsdom`)?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(e=>{vr(e,t)}),setTimeout(()=>{gr||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,_r=[])},3e3)):_r=[]}var yr=null,br=null;function xr(e){let t=yr;return yr=e,br=e&&e.type.__scopeId||null,t}function Sr(e){br=e}function Cr(){br=null}var wr=e=>P;function P(e,t=yr,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&Ts(-1);let i=xr(t),a=xs.length,o;try{o=e(...n)}finally{for(let e=xs.length;e>a;e--)Cs();xr(i),r._d&&Ts(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function F(e,t){if(yr===null)return e;let n=uc(yr),i=e.dirs||=[];for(let e=0;e1)return n&&v(t)?t.call(r&&r.proxy):t}}function Or(){return!!(Ks()||uo)}var kr=Symbol.for(`v-scx`),Ar=()=>Dr(kr);function jr(e,t){return Fr(e,null,t)}function Mr(e,t){return Fr(e,null,{flush:`post`})}function Nr(e,t){return Fr(e,null,{flush:`sync`})}function Pr(e,t,n){return Fr(e,t,n)}function Fr(e,t,n=r){let{immediate:i,deep:o,flush:s,once:c}=n,u=l({},n),d=t&&i||!t&&s!==`post`,f;if(Qs){if(s===`sync`){let e=Ar();f=e.__watcherHandles||=[]}else if(!d){let e=()=>{};return e.stop=a,e.resume=a,e.pause=a,e}}let p=Gs,m;if(p&&Ve()!==p.scope){if(p.scope.active){let e=p.scope.run(()=>new ze);e.run(()=>He(()=>Promise.resolve().then(()=>{p=null,m&&(m.i=null)}))),u.onStop=()=>e.stop()}else p=null}u.call=(e,t,n)=>Yn(e,p,t,n);let h=!1;s===`post`?u.scheduler=e=>{e.i=p,Wo(e,p&&p.suspense)}:s!==`sync`&&(h=!0,u.scheduler=(e,t)=>{t?e():sr(e)}),u.augmentJob=e=>{m=e,t&&(e.flags|=4),h&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let g=Bn(e,t,u);return Qs&&(f?f.push(g):d&&g()),g}function Ir(e,t,n){let r=this.proxy,i=y(e)?e.includes(`.`)?Lr(r,e):()=>r[e]:e.bind(r,r),a;v(t)?a=t:(a=t.handler,n=t);let o=Ys(this),s=Fr(i,a.bind(r),n);return o(),s}function Lr(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;ee.__isTeleport,Vr=e=>e&&(e.disabled||e.disabled===``),Hr=e=>e&&(e.defer||e.defer===``),Ur=e=>typeof SVGElement<`u`&&e instanceof SVGElement,Wr=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,Gr=(e,t)=>{let n=e&&e.to;return y(n)?t?t(n):null:n},Kr={name:`Teleport`,__isTeleport:!0,process(e,t,n,r,i,a,o,s,c,l){let{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:h,createComment:g,parentNode:_}}=l,v=Vr(t.props),{dynamicChildren:y}=t,b=(e,t,n)=>{e.shapeFlag&16&&u(e.children,t,n,i,a,o,s,c)},x=(e=t)=>{let n=Vr(e.props),r=e.target=Gr(e.props,m),a=Zr(r,e,h,p);r&&(o!==`svg`&&Ur(r)?o=`svg`:o!==`mathml`&&Wr(r)&&(o=`mathml`),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(r),n||(b(e,r,a),Xr(e,!1)))},S=e=>{let t=()=>{if(Rr.get(e)===t){if(Rr.delete(e),Vr(e.props)){let t=_(e.el)||n;b(e,t,e.anchor),Xr(e,!0)}x(e)}};Rr.set(e,t),Wo(t,a)};if(e==null){let e=t.el=h(``),i=t.anchor=h(``);if(p(e,n,r),p(i,n,r),Hr(t.props)||a&&a.pendingBranch){S(t);return}v&&(b(t,n,i),Xr(t,!0)),x()}else{t.el=e.el;let r=t.anchor=e.anchor,u=Rr.get(e);if(u){u.flags|=8,Rr.delete(e),S(t);return}t.targetStart=e.targetStart;let p=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=Vr(e.props),_=g?n:p,b=g?r:h;if(o===`svg`||Ur(p)?o=`svg`:(o===`mathml`||Wr(p))&&(o=`mathml`),y?(f(e.dynamicChildren,y,_,i,a,o,s),Zo(e,t,!0)):c||d(e,t,_,b,i,a,o,s,!1),v)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):qr(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=Gr(t.props,m);e&&(t.target=e,qr(t,e,null,l,0))}else g&&qr(t,p,h,l,1);Xr(t,v)}},remove(e,t,n,{um:r,o:{remove:i}},a){let{shapeFlag:o,children:s,anchor:c,targetStart:l,targetAnchor:u,target:d,props:f}=e,p=Vr(f),m=a||!p,h=Rr.get(e);if(h&&(h.flags|=8,Rr.delete(e)),d&&(i(l),i(u)),a&&i(c),!h&&(p||d)&&o&16)for(let e=0;e{e.isMounted=!0}),ca(()=>{e.isUnmounting=!0}),e}var ti=[Function,Array],ni={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ti,onEnter:ti,onAfterEnter:ti,onEnterCancelled:ti,onBeforeLeave:ti,onLeave:ti,onAfterLeave:ti,onLeaveCancelled:ti,onBeforeAppear:ti,onAppear:ti,onAfterAppear:ti,onAppearCancelled:ti},ri={name:`BaseTransition`,props:ni,setup(e,{slots:t}){let n=Ks(),r=ei();return()=>{let i=t.default&&di(t.default(),!0),a=i&&i.length?ii(i):n.subTree?K():void 0;if(!a)return;let o=A(e),{mode:s}=o;if(r.isLeaving)return ci(a);let c=li(a);if(!c)return ci(a);let l=si(c,o,r,n);c.type!==z&&ui(c,l);let u=n.subTree&&li(n.subTree);if(u&&u.type!==z&&!Os(u,c)&&fi(n.subTree)){let e=si(u,o,r,n);if(ui(u,e),s===`out-in`&&c.type!==z)return r.isLeaving=!0,e.afterLeave=()=>{if(r.isLeaving=!1,!(n.job.flags&8)){if(n.effect.flags&2){let e=()=>{n.job.flags&8||n.update()};e.i=n,sr(e)}else n.update()}delete e.afterLeave,u=void 0},ci(a);s===`in-out`&&c.type!==z?e.delayLeave=(t,n,i)=>{let a=oi(r,u);a[String(u.key)]=u,t[Qr]=()=>{n(),t[Qr]=void 0,delete l.delayedLeave,delete e.delayLeave,u=void 0},l.delayedLeave=()=>{i(),delete l.delayedLeave,delete e.delayLeave,u=void 0}}:u=void 0}else u&&=void 0;return a}}};function ii(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==z){t=n;break}}return t}var ai=ri;function oi(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function si(e,t,n,r){let{appear:i,mode:a,persisted:o=!1,onBeforeEnter:s,onEnter:c,onAfterEnter:l,onEnterCancelled:u,onBeforeLeave:d,onLeave:f,onAfterLeave:m,onLeaveCancelled:h,onBeforeAppear:g,onAppear:_,onAfterAppear:v,onAppearCancelled:y}=t,b=String(e.key),x=oi(n,e),S=(e,t)=>{e&&Yn(e,r,9,t)},ee=(e,t)=>{let n=t[1];S(e,t),p(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},C={mode:a,persisted:o,beforeEnter(t){let r=s;if(!n.isMounted){if(i)r=g||s;else return}t[Qr]&&t[Qr](!0);let a=x[b];if(a&&Os(e,a)){let e=a.el[Qr];if(!e){let t=fi(a);e=t&&t.el[Qr]}e&&e()}S(r,[t])},enter(e){if(e[Qr]){C.delayedLeave&&C.delayedLeave();return}let t=c,r=l,a=u;if(!n.isMounted){if(i)t=_||c,r=v||l,a=y||u;else return}let o=!1;e[$r]=t=>{o||(o=!0,S(t?a:r,[e]),C.delayedLeave&&C.delayedLeave(),e[$r]=void 0)};let s=e[$r].bind(null,!1);t?ee(t,[e,s]):s()},leave(t,r){let i=String(e.key);if(t[$r]&&t[$r](!0),n.isUnmounting)return r();S(d,[t]);let a=!1;t[Qr]=n=>{a||(a=!0,r(),S(n?h:m,[t]),t[Qr]=void 0,x[i]===e&&delete x[i])};let o=t[Qr].bind(null,!1);x[i]=e,f?ee(f,[t,o]):o()},clone(e){let i=si(e,t,n,r);return i.afterLeave=()=>{C.afterLeave&&C.afterLeave()},i.delayLeave=(e,t,n)=>{C.delayLeave?C.delayLeave(e,t,n):n()},i.delayedLeave=()=>{C.delayedLeave&&C.delayedLeave()},i}};return C}function ci(e){if(qi(e))return e=Ps(e),e.children=null,e}function li(e){if(!qi(e))return Br(e.type)&&e.children?ii(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&v(n.default))return n.default()}}function ui(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let n=e.component.subTree;ui(Br(n.type)&&li(n)||n,t)}else if(e.shapeFlag&128){let n=e.suspense;if(n){let e=n.isHydrating?n.pendingBranch:n.activeBranch;e&&ui(e,t.clone(e))}else e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)}else if(e.transition=t,e.type===R&&p(e.children)){let n=yo(e.children,!1);n&&ui(n,t)}}function di(e,t=!1,n){let r=[],i=0;for(let a=0;a1)for(let e=0;en.value,set:e=>n.value=e})}return n}function gi(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var _i=new WeakMap;function vi(e,t,n,i,a=!1){if(p(e)){e.forEach((e,r)=>vi(e,t&&(p(t)?t[r]:t),n,i,a));return}if(Wi(i)&&!a){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&vi(e,t,n,i.component.subTree);return}let s=i.shapeFlag&4?uc(i.component):i.el,c=a?null:s,{i:l,r:d}=e,m=t&&t.r,h=l.refs===r?l.refs={}:l.refs,g=l.setupState,_=A(g),b=g===r?o:e=>!gi(h,e)&&f(_,e),x=(e,t)=>!(t&&gi(h,t));if(m!=null&&m!==d){if(yi(t),y(m))h[m]=null,b(m)&&(g[m]=null);else if(j(m)){let e=t;x(m,e.k)&&(m.value=null),e.k&&(h[e.k]=null)}}if(v(d))Jn(d,l,12,[c,h]);else{let t=y(d),r=j(d);if(t||r){let i=()=>{if(e.f){let n=t?b(d)?g[d]:h[d]:x(d)||!e.k?d.value:h[e.k];if(a)p(n)&&u(n,s);else if(p(n))n.includes(s)||n.push(s);else if(t)h[d]=[s],b(d)&&(g[d]=h[d]);else{let t=[s];x(d,e.k)&&(d.value=t),e.k&&(h[e.k]=t)}}else t?(h[d]=c,b(d)&&(g[d]=c)):r&&(x(d,e.k)&&(d.value=c),e.k&&(h[e.k]=c))};if(c){let t=()=>{i(),_i.delete(e)};t.id=-1,_i.set(e,t),Wo(t,n)}else yi(e),i()}}}function yi(e){let t=_i.get(e);t&&(t.flags|=8,_i.delete(e))}var bi=!1,xi=()=>{bi||=(console.error(`Hydration completed but contains mismatches.`),!0)},Si=e=>e.namespaceURI.includes(`svg`)&&e.tagName!==`foreignObject`,Ci=e=>e.namespaceURI.includes(`MathML`),wi=e=>{if(e.nodeType===1){if(Si(e))return`svg`;if(Ci(e))return`mathml`}},Ti=e=>e.nodeType===8;function Ei(e){let{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:a,parentNode:o,remove:c,insert:l,createComment:u}}=e,d=(e,t)=>{t.hasChildNodes()?(f(t.firstChild,e,null,null,null),dr(),t._vnode=e):(n(null,e,t),dr(),t._vnode=e)},f=(n,r,s,c,u,d=!1)=>{d||=!!r.dynamicChildren;let b=Ti(n)&&n.data===`[`,x=()=>g(n,r,s,c,u,b),{type:S,ref:ee,shapeFlag:C,patchFlag:te}=r,w=n.nodeType;r.el=n,te===-2&&(d=!1,r.dynamicChildren=null);let T=null;switch(S){case ys:w===3?(n.data!==r.children&&(xi(),n.data=r.children),T=a(n)):r.children===``?(l(r.el=i(``),o(n),n),T=n):T=x();break;case z:y(n)?(T=a(n),v(r.el=n.content.firstChild,n,s)):T=w!==8||b?x():a(n);break;case bs:if(b&&(n=a(n),w=n.nodeType),w===1||w===3){T=n;let e=!r.children.length;for(let t=0;t{o||=!!t.dynamicChildren;let{type:l,dynamicProps:u,props:d,patchFlag:f,shapeFlag:p,dirs:h,transition:g}=t,_=l===`input`||l===`option`,b=!!u;if(_||b||f!==-1||g&&l!==`template`&&y(e)){h&&Tr(t,null,n,`created`);let l=!1;if(y(e)){l=Xo(null,g)&&n&&n.vnode.props&&n.vnode.props.appear;let r=e.content.firstChild;if(l){let e=r.getAttribute(`class`);e&&(r.$cls=e),g.beforeEnter(r)}v(r,e,n),t.el=e=r}if(p&16&&!(d&&(d.innerHTML||d.textContent))){let r=m(e.firstChild,t,e,n,i,a,o);for(r&&!ji(e,1)&&xi();r;){let e=r;r=r.nextSibling,c(e)}}else if(p&8){let n=t.children;n[0]===` `&&(e.tagName===`PRE`||e.tagName===`TEXTAREA`)&&(n=n.slice(1));let{textContent:r}=e;r!==n&&r!==n.replace(/\r\n|\r/g,` `)&&(ji(e,0)||xi(),e.textContent=t.children)}if(d){if(_||b||!o||f&48){let t=e.tagName.includes(`-`),i=e.namespaceURI.includes(`svg`)?`svg`:e.namespaceURI.includes(`MathML`)?`mathml`:void 0;for(let a in d)if(_&&(a.endsWith(`value`)||a===`indeterminate`)||s(a)&&!ne(a)||a[0]===`.`||t&&!ne(a)||u&&u.includes(a)){if(Oi(e,a,d[a]))continue;r(e,a,null,d[a],i,n)}}else if(d.onClick)r(e,`onClick`,null,d.onClick,void 0,n);else if(f&4&&un(d.style))for(let e in d.style)d.style[e]}let x;(x=d&&d.onVnodeBeforeMount)&&Bs(x,n,t),h&&Tr(t,null,n,`beforeMount`),((x=d&&d.onVnodeMounted)||h||l)&&gs(()=>{x&&Bs(x,n,t),l&&g.enter(e),h&&Tr(t,null,n,`mounted`)},i)}return e.nextSibling},m=(e,t,r,o,s,c,u,d)=>{u||=!!t.dynamicChildren;let p=t.children,m=p.length,h=t.type===R,g=!1;for(let t=0;t{let{slotScopeIds:c}=t;c&&(i=i?i.concat(c):c);let d=o(e),f=m(a(e),t,d,n,r,i,s);return f&&Ti(f)&&f.data===`]`?a(t.anchor=f):(xi(),l(t.anchor=u(`]`),d,f),f)},g=(e,t,r,i,s,l)=>{if(Ni(e,t)||xi(),t.el=null,l){let t=_(e);for(;;){let n=a(e);if(n&&n!==t)c(n);else break}}let u=a(e),d=o(e);return c(e),n(null,t,d,u,r,i,wi(d),s),r&&r.vnode.el===e&&(r.vnode.el=t.el,To(r,t.el)),u},_=(e,t=`[`,n=`]`)=>{let r=0;for(;e;)if(e=a(e),e&&Ti(e)&&(e.data===t&&r++,e.data===n)){if(r===0)return a(e);r--}return e},v=(e,t,n)=>{let r=t.parentNode;r&&r.replaceChild(e,t);let i=n;for(;i;)i.vnode.el===t&&(i.vnode.el=i.subTree.el=e),i=i.parent},y=e=>e.nodeType===1&&e.tagName===`TEMPLATE`;return[d,f]}var Di=new Set([`src`,`srcset`,`href`,`poster`]);function Oi(e,t,n){return Di.has(t)?e.getAttribute(t)===(n==null?null:`${n}`):!1}var ki=`data-allow-mismatch`,Ai={0:`text`,1:`children`,2:`class`,3:`style`,4:`attribute`};function ji(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(ki);)e=e.parentElement;return Mi(e&&e.getAttribute(ki),t)}function Mi(e,t){if(e==null)return!1;if(e===``)return!0;{let n=e.split(`,`);return t===0&&n.includes(`children`)?!0:n.includes(Ai[t])}}function Ni(e,t){return ji(e.parentElement,1)||Pi(e)||Fi(t)}function Pi(e){return e.nodeType===1&&Mi(e.getAttribute(ki),1)}function Fi({props:e}){let t=e&&e[ki];return typeof t==`string`&&Mi(t,1)}var Ii=ge().requestIdleCallback||(e=>setTimeout(e,1)),Li=ge().cancelIdleCallback||(e=>clearTimeout(e)),Ri=(e=1e4)=>t=>{let n=Ii(t,{timeout:e});return()=>Li(n)};function zi(e){let{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=window;return(t>0&&t0&&r0&&n0&&i(t,n)=>{let r=new IntersectionObserver(e=>{for(let n of e)if(n.isIntersecting){r.disconnect(),t();break}},e),i=e=>{if(zi(e))return t(),r.disconnect(),!1;if(getComputedStyle(e).display===`contents`){for(let t=0;t{if(e instanceof Element)return i(e)}),()=>r.disconnect()},Vi=e=>t=>{if(e){let n=matchMedia(e);if(n.matches)t();else return n.addEventListener(`change`,t,{once:!0}),()=>n.removeEventListener(`change`,t)}},Hi=(e=[])=>(t,n)=>{y(e)&&(e=[e]);let r=!1,i=e=>{r||(r=!0,a(),t(),e.target.dispatchEvent(new e.constructor(e.type,e)))},a=()=>{n(t=>{for(let n of e)t.removeEventListener(n,i)})};return n(t=>{for(let n of e)t.addEventListener(n,i,{once:!0})}),a};function Ui(e,t){if(Ti(e)&&e.data===`[`){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(Ti(r)){if(r.data===`]`){if(--n===0)break}else r.data===`[`&&n++}r=r.nextSibling}}else t(e)}var Wi=e=>!!e.type.__asyncLoader;function Gi(e){v(e)&&(e={loader:e});let{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:a,timeout:o,suspensible:s=!0,onError:c}=e,l=null,u,d=0,f=()=>(d++,l=null,p()),p=()=>{let e;return l||(e=l=t().catch(e=>{if(e=e instanceof Error?e:Error(String(e)),c)return new Promise((t,n)=>{c(e,()=>t(f()),()=>n(e),d+1)});throw e}).then(t=>e!==l&&l?l:(t&&(t.__esModule||t[Symbol.toStringTag]===`Module`)&&(t=t.default),u=t,t)))};return I({name:`AsyncComponentWrapper`,__asyncLoader:p,__asyncHydrate(e,t,n){let r=e.isConnected,i=!1;(t.bu||=[]).push(()=>i=!0);let o=()=>{i||!e.parentNode||r&&!e.isConnected||n()},s=a?()=>{let n=a(o,t=>Ui(e,t));n&&(t.bum||=[]).push(n)}:o;u?s():p().then(()=>!t.isUnmounted&&s())},get __asyncResolved(){return u},setup(){let e=Gs;if(mi(e),u)return()=>Ki(u,e);let t=t=>{l=null,Xn(t,e,13,!r,!0)};if(s&&e.suspense||Qs)return p().then(t=>()=>Ki(t,e)).catch(e=>(t(e),()=>r?W(r,{error:e}):null));let a=M(!1),c=M(),d=M(!!i),f,m;return He(()=>{f!=null&&clearTimeout(f),m!=null&&clearTimeout(m)}),i&&(m=setTimeout(()=>{e.isUnmounted||(d.value=!1)},i)),o!=null&&(f=setTimeout(()=>{if(!e.isUnmounted&&!a.value&&!c.value){let e=Error(`Async component timed out after ${o}ms.`);t(e),c.value=e}},o)),p().then(()=>{e.isUnmounted||(a.value=!0,e.parent&&qi(e.parent.vnode)&&e.parent.update())}).catch(n=>{e.isUnmounted?l=null:(t(n),c.value=n)}),()=>{if(a.value&&u)return Ki(u,e);if(c.value&&r)return W(r,{error:c.value});if(n&&!d.value)return Ki(n,e)}}})}function Ki(e,t){let{ref:n,props:r,children:i,ce:a}=t.vnode,o=W(e,r,i);return o.ref=n,o.ce=a,delete t.vnode.ce,o}var qi=e=>e.type.__isKeepAlive,Ji={name:`KeepAlive`,__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){let n=Ks(),r=n.ctx;if(!r.renderer)return()=>{let e=t.default&&t.default();return e&&e.length===1?e[0]:e};let i=new Map,a=new Set,o=null,s=n.suspense,{renderer:{p:c,m:l,um:u,o:{createElement:d}}}=r,f=d(`div`);r.activate=(e,t,n,r,i)=>{let a=e.component;l(e,t,n,0,s),c(a.vnode,e,t,n,a,s,r,e.slotScopeIds,i),Wo(()=>{a.isDeactivated=!1,a.a&&de(a.a);let t=e.props&&e.props.onVnodeMounted;t&&Bs(t,a.parent,e)},s)},r.deactivate=e=>{let t=i.get(e.key==null?e.type:e.key);if(!t||t.component!==e.component)return!1;let n=e.component;return es(n.m),es(n.a),l(e,f,null,1,s),Wo(()=>{n.da&&de(n.da);let t=e.props&&e.props.onVnodeUnmounted;t&&Bs(t,n.parent,e),n.isDeactivated=!0},s),!0};function p(e){ea(e),u(e,n,s,!0)}function m(e){i.forEach((t,n)=>{let r=dc(Wi(t)?t.type.__asyncResolved||{}:t.type);r&&!e(r)&&h(n)})}function h(e){let t=i.get(e);t&&(!o||!Os(t,o))?p(t):o&&(o.key==null?o.type:o.key)===e&&(ea(o),t&&ea(t)),i.delete(e),a.delete(e)}Pr(()=>[e.include,e.exclude],([e,t])=>{e&&m(t=>Yi(e,t)),t&&m(e=>!Yi(t,e))},{flush:`post`,deep:!0});let g=null,_=()=>{if(g!=null){if(ns(n.subTree.type)){let e=()=>{let e=ta(n.subTree);e.component&&i.set(g,e)};n.subTree.suspense.pendingBranch?Wo(e,n.subTree.suspense):e()}else i.set(g,ta(n.subTree))}};return aa(_),sa(_),ca(()=>{i.forEach(e=>{let{subTree:t,suspense:r}=n,i=ta(t);if(e.type===i.type&&e.key===i.key){ea(i);let e=i.component.da;e&&Wo(e,r)}else p(e)})}),()=>{if(g=null,!t.default)return o=null;let n=t.default(),r=n[0];if(n.length>1)return o=null,n;if(!Ds(r)||!(r.shapeFlag&4)&&!(r.shapeFlag&128))return o=null,r;let s=ta(r);if(s.type===z)return o=null,s;let c=s.type,l=dc(Wi(s)?s.type.__asyncResolved||{}:c),{include:u,exclude:d,max:f}=e;if(u&&(!l||!Yi(u,l))||d&&l&&Yi(d,l))return s.shapeFlag&=-257,o=s,r;let p=s.key==null?c:s.key,m=i.get(p);return s.el&&(s=Ps(s),r.shapeFlag&128&&(r.ssContent=s)),g=p,m?(s.el=m.el,s.component=m.component,s.transition&&ui(s,s.transition),s.shapeFlag|=512,a.delete(p),a.add(p)):(a.add(p),f&&a.size>parseInt(f,10)&&h(a.values().next().value)),s.shapeFlag|=256,o=s,ns(r.type)?r:s}}};function Yi(e,t){return p(e)?e.some(e=>Yi(e,t)):y(e)?e.split(`,`).includes(t):_(e)?(e.lastIndex=0,e.test(t)):!1}function Xi(e,t){Qi(e,`a`,t)}function Zi(e,t){Qi(e,`da`,t)}function Qi(e,t,n=Gs){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(na(t,r,n),n){let e=n.parent;for(;e&&e.parent;)qi(e.parent.vnode)&&$i(r,t,n,e),e=e.parent}}function $i(e,t,n,r){let i=na(t,e,r,!0),a=na(`um`,()=>u(r[t],i),n);a.flags=16}function ea(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function ta(e){return e.shapeFlag&128?e.ssContent:e}function na(e,t,n=Gs,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{st();let i=Ys(n),a=Yn(t,n,e,r);return i(),ct(),a};return r?i.unshift(a):i.push(a),a}}var ra=e=>(t,n=Gs)=>{Qs&&e!==`sp`||na(e,(...e)=>t(...e),n)},ia=ra(`bm`),aa=ra(`m`),oa=ra(`bu`),sa=ra(`u`),ca=ra(`bum`),la=ra(`um`),ua=ra(`sp`),da=ra(`rtg`),fa=ra(`rtc`);function pa(e,t=Gs){na(`ec`,e,t)}var ma=`components`,ha=`directives`;function ga(e,t){return ba(ma,e,!0,t)||e}var _a=Symbol.for(`v-ndc`);function va(e){return y(e)?ba(ma,e,!1)||e:e||_a}function ya(e){return ba(ha,e)}function ba(e,t,n=!0,r=!1){let i=yr||Gs;if(i){let n=i.type;if(e===ma){let e=dc(n,!1);if(e&&(e===t||e===E(t)||e===ce(E(t))))return n}let a=xa(i[e]||n[e],t)||xa(i.appContext[e],t);return!a&&r?n:a}}function xa(e,t){return e&&(e[t]||e[E(t)]||e[ce(E(t))])}function L(e,t,n,r){let i,a=n&&n[r],o=p(e);if(o||y(e)){let n=o&&un(e),r=!1,s=!1;n&&(r=!fn(e),s=dn(e),e=St(e)),i=Array(e.length);for(let n=0,o=e.length;nt(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r{let t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function Ca(e,t,n,r,i,a){if(n??={},yr.ce||yr.parent&&Wi(yr.parent)&&yr.parent.ce){let e=a!=null&&n.key==null?l({},n,{key:a}):n,i=Object.keys(e).length>0;return t!=="default"&&(e.name=t),B(),H(R,null,[W(`slot`,e,r&&r())],i?-2:64)}let o=e[t];o&&o._c&&(o._d=!1);let s=xs.length;B();let c;try{let i=o&&wa(o(n)),s=n.key||a||i&&i.key;c=H(R,{key:(s&&!b(s)?s:`_${t}`)+(!i&&r?`_fb`:``)},i||(r?r():[]),i&&e._===1?64:-2)}catch(e){for(let e=xs.length;e>s;e--)Cs();throw e}finally{o&&o._c&&(o._d=!0)}return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+`-s`]),c}function wa(e){return e.some(e=>!Ds(e)||!(e.type===z||e.type===R&&!wa(e.children)))?e:null}function Ta(e,t){let n={};for(let r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:le(r)]=e[r];return n}var Ea=e=>e?Zs(e)?uc(e):Ea(e.parent):null,Da=l(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=>Ea(e.parent),$root:e=>Ea(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Za(e),$forceUpdate:e=>e.f||=()=>{sr(e.update)},$nextTick:e=>e.n||=ar.bind(e.proxy),$watch:e=>Ir.bind(e)}),Oa=(e,t)=>e!==r&&!e.__isScriptSetup&&f(e,t),ka={get({_:e},t){if(t===`__v_skip`)return!0;let{ctx:n,setupState:i,data:a,props:o,accessCache:s,type:c,appContext:l}=e;if(t[0]!==`$`){let e=s[t];if(e!==void 0)switch(e){case 1:return i[t];case 2:return a[t];case 4:return n[t];case 3:return o[t]}else if(Oa(i,t))return s[t]=1,i[t];else if(a!==r&&f(a,t))return s[t]=2,a[t];else if(f(o,t))return s[t]=3,o[t];else if(n!==r&&f(n,t))return s[t]=4,n[t];else Ka&&(s[t]=0)}let u=Da[t],d,p;if(u)return t===`$attrs`&&vt(e.attrs,`get`,``),u(e);if((d=c.__cssModules)&&(d=d[t]))return d;if(n!==r&&f(n,t))return s[t]=4,n[t];if(p=l.config.globalProperties,f(p,t))return p[t]},set({_:e},t,n){let{data:i,setupState:a,ctx:o}=e;return Oa(a,t)?(a[t]=n,!0):i!==r&&f(i,t)?(i[t]=n,!0):f(e.props,t)||t[0]===`$`&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:a,props:o,type:s}},c){let l;return!!(n[c]||e!==r&&c[0]!==`$`&&f(e,c)||Oa(t,c)||f(o,c)||f(i,c)||f(Da,c)||f(a.config.globalProperties,c)||(l=s.__cssModules)&&l[c])},defineProperty(e,t,n){return n.get==null?f(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}},Aa=l({},ka,{get(e,t){if(t!==Symbol.unscopables)return ka.get(e,t,e)},has(e,t){return t[0]!==`_`&&!_e(t)}});function ja(){return null}function Ma(){return null}function Na(e){}function Pa(e){}function Fa(){return null}function Ia(){}function La(e,t){return null}function Ra(){return Ba(`useSlots`).slots}function za(){return Ba(`useAttrs`).attrs}function Ba(e){let t=Ks();return t.setupContext||=lc(t)}function Va(e){return p(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function Ha(e,t){let n=Va(e);for(let e in t){if(e.startsWith(`__skip`))continue;let r=n[e];r?p(r)||v(r)?r=n[e]={type:r,default:t[e]}:r.default=t[e]:r===null&&(r=n[e]={default:t[e]}),r&&t[`__skip_${e}`]&&(r.skipFactory=!0)}return n}function Ua(e,t){return!e||!t?e||t:p(e)&&p(t)?e.concat(t):l({},Va(e),Va(t))}function Wa(e,t){let n={};for(let r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function Ga(e){let t=Ks(),n=Qs,r=e();Xs(),n&&Js(!1);let i=()=>{Ys(t),n&&Js(!0)},a=()=>{Ks()!==t&&t.scope.off(),Xs(),n&&Js(!1)};return S(r)&&(r=r.catch(e=>{throw i(),Promise.resolve().then(()=>Promise.resolve().then(a)),e})),[r,()=>{i(),Promise.resolve().then(a)}]}var Ka=!0;function qa(e){let t=Za(e),n=e.proxy,r=e.ctx;Ka=!1,t.beforeCreate&&Ya(t.beforeCreate,e,`bc`);let{data:i,computed:o,methods:s,watch:c,provide:l,inject:u,created:d,beforeMount:f,mounted:m,beforeUpdate:h,updated:g,activated:_,deactivated:y,beforeDestroy:b,beforeUnmount:S,destroyed:ee,unmounted:C,render:te,renderTracked:w,renderTriggered:T,errorCaptured:ne,serverPrefetch:re,expose:ie,inheritAttrs:ae,components:E,directives:oe,filters:se}=t;if(u&&Ja(u,r,null),s)for(let e in s){let t=s[e];v(t)&&(r[e]=t.bind(n))}if(i){let t=i.call(n,n);x(t)&&(e.data=an(t))}if(Ka=!0,o)for(let e in o){let t=o[e],i=pc({get:v(t)?t.bind(n,n):v(t.get)?t.get.bind(n,n):a,set:!v(t)&&v(t.set)?t.set.bind(n):a});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e})}if(c)for(let e in c)Xa(c[e],r,n,e);if(l){let e=v(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{Er(t,e[t])})}d&&Ya(d,e,`c`);function ce(e,t){p(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(ce(ia,f),ce(aa,m),ce(oa,h),ce(sa,g),ce(Xi,_),ce(Zi,y),ce(pa,ne),ce(fa,w),ce(da,T),ce(ca,S),ce(la,C),ce(ua,re),p(ie)){if(ie.length){let t=e.exposed||={};ie.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={}}te&&e.render===a&&(e.render=te),ae!=null&&(e.inheritAttrs=ae),E&&(e.components=E),oe&&(e.directives=oe),re&&mi(e)}function Ja(e,t,n=a){p(e)&&(e=no(e));for(let n in e){let r=e[n],i;i=x(r)?`default`in r?Dr(r.from||n,r.default,!0):Dr(r.from||n):Dr(r),j(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function Ya(e,t,n){Yn(p(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Xa(e,t,n,r){let i=r.includes(`.`)?Lr(n,r):()=>n[r];if(y(e)){let n=t[e];v(n)&&Pr(i,n)}else if(v(e))Pr(i,e.bind(n));else if(x(e)){if(p(e))e.forEach(e=>Xa(e,t,n,r));else{let r=v(e.handler)?e.handler.bind(n):t[e.handler];v(r)&&Pr(i,r,e)}}}function Za(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>Qa(c,e,o,!0)),Qa(c,t,o)),x(t)&&a.set(t,c),c}function Qa(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&Qa(e,a,n,!0),i&&i.forEach(t=>Qa(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=$a[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var $a={data:eo,props:ao,emits:ao,methods:io,computed:io,beforeCreate:ro,created:ro,beforeMount:ro,mounted:ro,beforeUpdate:ro,updated:ro,beforeDestroy:ro,beforeUnmount:ro,destroyed:ro,unmounted:ro,activated:ro,deactivated:ro,errorCaptured:ro,serverPrefetch:ro,components:io,directives:io,watch:oo,provide:eo,inject:to};function eo(e,t){return t?e?function(){return l(v(e)?e.call(this,this):e,v(t)?t.call(this,this):t)}:t:e}function to(e,t){return io(no(e),no(t))}function no(e){if(p(e)){let t={};for(let n=0;n{let l,u=r,d;return Nr(()=>{let t=e[a];ue(l,t)&&(l=t,c())}),{get(){return s(),n.get?n.get(l):l},set(e){let s=n.set?n.set(e):e;if(!ue(s,l)&&!(u!==r&&ue(e,u)))return;let f=i.vnode.props,p=!!(f&&(t in f||a in f||o in f)&&(`onUpdate:${t}`in f||`onUpdate:${a}`in f||`onUpdate:${o}`in f));p||(l=e,c()),i.emit(`update:${t}`,s),ue(e,u)&&(ue(e,s)&&!ue(s,d)||p&&u!==r&&!ue(s,l))&&c(),u=e,d=s}}});return c[Symbol.iterator]=()=>{let e=0;return{next(){return e<2?{value:e++?s||r:c,done:!1}:{done:!0}}}},c}var po=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${E(t)}Modifiers`]||e[`${se(t)}Modifiers`];function mo(e,t,...n){if(e.isUnmounted)return;let i=e.vnode.props||r,a=n,o=t.startsWith(`update:`),s=o&&po(i,t.slice(7));s&&(s.trim&&(a=n.map(e=>y(e)?e.trim():e)),s.number&&(a=a.map(pe)));let c,l=i[c=le(t)]||i[c=le(E(t))];!l&&o&&(l=i[c=le(se(t))]),l&&Yn(l,e,6,a);let u=i[c+`Once`];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,Yn(u,e,6,a)}}var ho=new WeakMap;function go(e,t,n=!1){let r=n?ho:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},s=!1;if(!v(e)){let r=e=>{let n=go(e,t,!0);n&&(s=!0,l(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!s?(x(e)&&r.set(e,null),null):(p(a)?a.forEach(e=>o[e]=null):l(o,a),x(e)&&r.set(e,o),o)}function _o(e,t){return!e||!s(t)?!1:(t=t.slice(2),t=t===`Once`?t:t.replace(/Once$/,``),f(e,t[0].toLowerCase()+t.slice(1))||f(e,se(t))||f(e,t))}function vo(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:l,render:u,renderCache:d,props:f,data:p,setupState:m,ctx:h,inheritAttrs:g}=e,_=xr(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=Is(u.call(t,e,d,f,m,p,h)),y=s}else{let e=t;v=Is(e.length>1?e(f,{attrs:s,slots:o,emit:l}):e(f,null)),y=t.props?s:bo(s)}}catch(t){xs.length=0,Xn(t,e,1),v=W(z)}let b=v;if(y&&g!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(c)&&(y=xo(y,a)),b=Ps(b,y,!1,!0))}return n.dirs&&(b=Ps(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&ui(Br(b.type)&&li(b)||b,n.transition),v=b,xr(_),v}function yo(e,t=!0){let n;for(let t=0;t{let t;for(let n in e)(n===`class`||n===`style`||s(n))&&((t||={})[n]=e[n]);return t},xo=(e,t)=>{let n={};for(let r in e)c(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function So(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Co(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;tObject.create(Eo),Oo=e=>Object.getPrototypeOf(e)===Eo;function ko(e,t,n,r=!1){let i={},a=Do();e.propsDefaults=Object.create(null),jo(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);e.props=n?r?i:on(i):e.type.props?i:a,e.attrs=a}function Ao(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=A(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r{d=!0;let[n,r]=Po(e,t,!0);l(c,n),r&&u.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!s&&!d)return x(e)&&a.set(e,i),i;if(p(s))for(let e=0;ee===`_`||e===`_ctx`||e===`$stable`,Lo=e=>p(e)?e.map(Is):[Is(e)],Ro=(e,t,n)=>{if(t._n)return t;let r=P((...e)=>Lo(t(...e)),n);return r._c=!1,r},zo=(e,t,n)=>{let r=e._ctx;for(let n in e){if(Io(n))continue;let i=e[n];if(v(i))t[n]=Ro(n,i,r);else if(i!=null){let e=Lo(i);t[n]=()=>e}}},Bo=(e,t)=>{let n=Lo(t);e.slots.default=()=>n},Vo=(e,t,n)=>{for(let r in t)(n||!Io(r))&&(e[r]=t[r])},Ho=(e,t,n)=>{let r=e.slots=Do();if(e.vnode.shapeFlag&32){let e=t._;e?(Vo(r,t,n),n&&fe(r,`_`,e,!0)):zo(t,r)}else t&&Bo(e,t)},Uo=(e,t,n)=>{let{vnode:i,slots:a}=e,o=!0,s=r;if(i.shapeFlag&32){let e=t._;e?n&&e===1?o=!1:Vo(a,t,n):(o=!t.$stable,zo(t,a)),s=t}else t&&(Bo(e,t),s={default:1});if(o)for(let e in a)!Io(e)&&s[e]==null&&delete a[e]},Wo=gs;function Go(e){return qo(e)}function Ko(e){return qo(e,Ei)}function qo(e,t){let n=ge();n.__VUE__=!0;let{insert:o,remove:s,patchProp:c,createElement:l,createText:u,createComment:d,setText:f,setElementText:p,parentNode:m,nextSibling:h,setScopeId:g=a,insertStaticContent:_}=e,v=(e,t,n,r=null,a=null,o=null,s=void 0,c=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!Os(e,t)&&(r=Se(e),_e(e,a,o,!0),e=null),t.patchFlag===-2&&(l=!1,t.dynamicChildren=null),t.dynamicChildren&&e&&e.dynamicChildren&&e.dynamicChildren.hasOnce&&(t.dynamicChildren===i&&(t.dynamicChildren=[]),t.dynamicChildren.hasOnce=!0);let{type:u,ref:d,shapeFlag:f}=t;switch(u){case ys:y(e,t,n,r);break;case z:b(e,t,n,r);break;case bs:e??x(t,n,r,s);break;case R:E(e,t,n,r,a,o,s,c,l);break;default:f&1?C(e,t,n,r,a,o,s,c,l):f&6?oe(e,t,n,r,a,o,s,c,l):(f&64||f&128)&&u.process(e,t,n,r,a,o,s,c,l,Ce)}d!=null&&a?vi(d,e&&e.ref,o,t||e,!t):d==null&&e&&e.ref!=null&&vi(e.ref,null,o,e,!0)},y=(e,t,n,r)=>{if(e==null)o(t.el=u(t.children),n,r);else{let n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},b=(e,t,n,r)=>{e==null?o(t.el=d(t.children||``),n,r):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=h(e),o(e,n,r),e=i;o(t,n,r)},ee=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),s(e),e=n;s(t)},C=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)te(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),re(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},te=(e,t,n,r,i,a,s,u)=>{let d,f,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(d=e.el=l(e.type,a,m&&m.is,m),h&8?p(d,e.children):h&16&&T(e.children,d,null,r,i,Jo(e,a),s,u),_&&Tr(e,null,r,`created`),w(d,e,e.scopeId,s,r),m){for(let e in m)e!==`value`&&!ne(e)&&c(d,e,null,m[e],a,r);`value`in m&&c(d,`value`,null,m.value,a),(f=m.onVnodeBeforeMount)&&Bs(f,r,e)}_&&Tr(e,null,r,`beforeMount`);let v=Xo(i,g);v?g.beforeEnter(d):g&&!g.persisted&&(d[is]=!0),o(d,t,n),((f=m&&m.onVnodeMounted)||v||_)&&Wo(()=>{try{f&&Bs(f,r,e),v&&g.enter(d),_&&Tr(e,null,r,`mounted`)}finally{}},i)},w=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t{for(let l=c;l{let l=t.el=e.el,{patchFlag:u,dynamicChildren:d,dirs:f}=t;u|=e.patchFlag&16;let m=e.props||r,h=t.props||r,g;if(n&&Yo(n,!1),(g=h.onVnodeBeforeUpdate)&&Bs(g,n,t,e),f&&Tr(t,e,n,`beforeUpdate`),n&&Yo(n,!0),d&&(!e.dynamicChildren||e.dynamicChildren.length!==d.length)&&(u=0,s=!1,d=null),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&p(l,``),d?ie(e.dynamicChildren,d,l,n,i,Jo(t,a),o):s||fe(e,t,l,null,n,i,Jo(t,a),o,!1),u>0){if(u&16)ae(l,m,h,n,a);else if(u&2&&m.class!==h.class&&c(l,`class`,null,h.class,a),u&4&&c(l,`style`,m.style,h.style,a),u&8){let e=t.dynamicProps;for(let t=0;t{g&&Bs(g,n,t,e),f&&Tr(t,e,n,`updated`)},i)},ie=(e,t,n,r,i,a,o)=>{for(let s=0;s{if(t!==n){if(t!==r)for(let r in t)!ne(r)&&!(r in n)&&c(e,r,t[r],null,a,i);for(let r in n){if(ne(r))continue;let o=n[r],s=t[r];o!==s&&r!==`value`&&c(e,r,s,o,a,i)}`value`in n&&c(e,`value`,t.value,n.value,a)}},E=(e,t,n,r,i,a,s,c,l)=>{let d=t.el=e?e.el:u(``),f=t.anchor=e?e.anchor:u(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(c=c?c.concat(h):h),e==null?(o(d,n,r),o(f,n,r),T(t.children||[],n,f,i,a,s,c,l)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(ie(e.dynamicChildren,m,n,i,a,s,c),(t.key!=null||i&&t===i.subTree)&&Zo(e,t,!0)):fe(e,t,n,f,i,a,s,c,l)},oe=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):se(t,n,r,i,a,o,c):ce(e,t,c)},se=(e,t,n,r,i,a,o)=>{let s=e.component=Ws(e,r,i);if(qi(e)&&(s.ctx.renderer=Ce),$s(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,le,o,a),!e.el){let r=s.subTree=W(z);b(null,r,t,n),e.placeholder=r.el}}else le(s,e,t,n,i,a,o)},ce=(e,t,n)=>{let r=t.component=e.component;if(So(e,t,n)){if(r.asyncDep&&!r.asyncResolved){t.el=e.el,t.placeholder=e.placeholder,ue(r,t,n);return}r.next=t,r.update()}else t.el=e.el,t.placeholder=e.placeholder,r.vnode=t},le=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=$o(e);if(n){t&&(t.el=c.el,ue(e,t,o)),n.asyncDep.then(()=>{let t=()=>{e.job.flags&8||(i&&i.pendingBranch?Wo(t,i):l())};t.flags=48,Wo(t,i)});return}}let u=t,d;Yo(e,!1),t?(t.el=c.el,ue(e,t,o)):t=c,n&&de(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&Bs(d,s,t,c),Yo(e,!0);let f=vo(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el||ts(p)),Se(p),e,i,a),t.el=f.el,u===null&&To(e,f.el),r&&Wo(r,i),(d=t.props&&t.props.onVnodeUpdated)&&Wo(()=>Bs(d,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=Wi(t);if(Yo(e,!1),l&&de(l),!m&&(o=c&&c.onVnodeBeforeMount)&&Bs(o,d,t),Yo(e,!0),s&&Te){let t=()=>{e.subTree=vo(e),Te(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=vo(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&Wo(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;Wo(()=>Bs(o,d,e),i)}(t.shapeFlag&256||d&&Wi(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&Wo(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new We(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>sr(u),Yo(e,!0),l()},ue=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,Ao(e,t.props,r,n),Uo(e,t.children,n),st(),ur(e),ct()},fe=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:m}=t;if(f>0){if(f&128){me(l,d,n,r,i,a,o,s,c);return}if(f&256){pe(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&xe(l,i,a),d!==l&&p(n,d)):u&16?m&16?me(l,d,n,r,i,a,o,s,c):xe(l,i,a,!0):(u&8&&p(n,``),m&16&&T(d,n,r,i,a,o,s,c))},pe=(e,t,n,r,a,o,s,c,l)=>{e||=i,t||=i;let u=e.length,d=t.length,f=Math.min(u,d),p=0;for(;pd?xe(e,a,o,!0,!1,f):T(t,n,r,a,o,s,c,l,f)},me=(e,t,n,r,a,o,s,c,l)=>{let u=0,d=t.length,f=e.length-1,p=d-1;for(;u<=f&&u<=p;){let r=e[u],i=t[u]=l?Ls(t[u]):Is(t[u]);if(Os(r,i))v(r,i,n,null,a,o,s,c,l);else break;u++}for(;u<=f&&u<=p;){let r=e[f],i=t[p]=l?Ls(t[p]):Is(t[p]);if(Os(r,i))v(r,i,n,null,a,o,s,c,l);else break;f--,p--}if(u>f){if(u<=p){let e=p+1,i=ep)for(;u<=f;)_e(e[u],a,o,!0),u++;else{let m=u,h=u,g=new Map;for(u=h;u<=p;u++){let e=t[u]=l?Ls(t[u]):Is(t[u]);e.key!=null&&g.set(e.key,u)}let _,y=0,b=p-h+1,x=!1,S=0,ee=Array(b);for(u=0;u=b){_e(r,a,o,!0);continue}let i;if(r.key!=null)i=g.get(r.key);else for(_=h;_<=p;_++)if(ee[_-h]===0&&Os(r,t[_])){i=_;break}i===void 0?_e(r,a,o,!0):(ee[i-h]=u+1,i>=S?S=i:x=!0,v(r,t[i],n,null,a,o,s,c,l),y++)}let C=x?Qo(ee):i;for(_=C.length-1,u=b-1;u>=0;u--){let e=h+u,i=t[e],f=t[e+1],p=e+1{let{el:a,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6)he(e.component.subTree,t,n,r);else if(d&128)e.suspense.move(t,n,r);else if(d&64)c.move(e,t,n,Ce);else if(c===R){o(a,t,n);for(let e=0;el.enter(a),i));else{let{leave:r,delayLeave:i,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?s(a):o(a,t,n)},d=()=>{let e=a._isLeaving||!!a[Qr];a._isLeaving&&a[Qr](!0),l.persisted&&!e?u():r(a,()=>{u(),c&&c()})};i?i(a,u,d):d()}}else o(a,t,n)},_e=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if((d===-2||l&&l.hasOnce)&&(i=!1),s!=null&&(st(),vi(s,null,n,e,!0),ct()),p==null||e.ctx&&e.ctx!==t||(t.renderCache[p]=void 0),u&256&&t.ctx.deactivate(e))return;let h=u&1&&f,g=!Wi(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&Bs(_,t,e),u&6)be(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&Tr(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,Ce,r):l&&!l.hasOnce&&(a!==R||d>0&&d&64)?xe(l,t,n,!1,!0):(a===R&&d&384||!i&&u&16)&&xe(c,t,n),r&&ve(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&Wo(()=>{_&&Bs(_,t,e),h&&Tr(e,null,t,`unmounted`),v&&(e.el=null)},n)},ve=e=>{let{type:t,el:n,anchor:r,transition:i}=e,a=t===R;if(a&&!i){ye(n,r);return}if(t===bs){ee(e),i&&!i.persisted&&i.afterLeave&&i.afterLeave();return}let o=a?fi(e):e,c=()=>{a?m(n)&&ye(n,r):s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(o&&o.shapeFlag&1&&i&&!i.persisted){let{leave:e,delayLeave:t}=i,n=o.el,r=()=>e(n,c);t?t(n,c,r):r()}else c()},ye=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},be=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;es(c),es(l),r&&de(r),i.stop(),a?(a.flags|=8,_e(o,e,t,n)):o&&(o.transition=e.vnode.transition,_e(o,e,t,n)),s&&Wo(s,t);let u=()=>{e.isUnmounted=!0};u.flags=16,Wo(u,t)},xe=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o{if(e.shapeFlag&6)return Se(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[zr];return n?h(n):t},D=(e,t,n)=>{pr(()=>{e==null?t._vnode&&_e(t._vnode,null,null,!0):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e},e&&t._vnode?void 0:e&&e.component?e.component.uid:Us())},Ce={p:v,um:_e,m:he,r:ve,mt:se,mc:T,pc:fe,pbc:ie,n:Se,o:e},we,Te;return t&&([we,Te]=t(Ce)),{render:D,hydrate:we,createApp:lo(D,we)}}function Jo({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 Yo({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Xo(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Zo(e,t,n=!1){let r=e.children,i=t.children;if(p(r)&&p(i))for(let e=0;e>1,e[n[s]]0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-->0;)n[a]=o,o=t[o];return n}function $o(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:$o(t)}function es(e){if(e)for(let t=0;te.__isSuspense,rs=0,is=Symbol(`_deferredEnter`),as={name:`Suspense`,__isSuspense:!0,process(e,t,n,r,i,a,o,s,c,l){if(e==null)ls(t,n,r,i,a,o,s,c,l);else{let u=e.suspense;if(a&&a.deps>0&&!a.isHydrating){let n=u.parentComponent;if(n&&n.suspense===a&&n.suspenseId!==a.pendingId?a.pendingBranch&&!Os(t.ssContent,u.pendingBranch||u.activeBranch):!u.isInFallback){t.suspense=u,u.vnode=t,t.el=e.el;return}}us(e,t,n,r,i,o,s,c,l)}},hydrate:fs,normalize:ps};function os(e,t){let n=e.props&&e.props[t];v(n)&&n()}function ss(e){let t=[];cs(e,t,!0),t.length&&lr(t)}function cs(e,t,n){let{el:r,transition:i,children:a,shapeFlag:o}=e;if(o&6)cs(e.component.subTree,t,n);else if(!(o&192)&&(o&1&&(!n&&r&&r[is]&&(r[is]=void 0,i&&!i.persisted&&(i.beforeEnter(r),t.push(()=>i.enter(r)))),n=!1),o&16))for(let e=0;e0?(os(e,`onPending`),os(e,`onFallback`),l(null,e.ssFallback,t,n,r,null,a,o),_s(f,e.ssFallback)):f.resolve(!1,!0)}function us(e,t,n,r,i,a,o,s,{p:c,um:l,o:{createElement:u}}){let d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;let f=t.ssContent,p=t.ssFallback,{activeBranch:m,pendingBranch:h,isInFallback:g,isHydrating:_}=d;if(h)d.pendingBranch=f,Os(h,f)?(d.deps++,c(h,f,_?n:d.hiddenContainer,null,i,d,a,o,s),d.deps--,d.deps<=0?d.resolve():g&&!_&&!d.isFallbackMountPending&&(c(m,p,n,r,i,null,a,o,s),_s(d,p))):(d.pendingId=rs++,_?(d.isHydrating=!1,d.activeBranch=h):l(h,i,d),d.deps=0,hs(d),d.hiddenContainer=u(`div`),g?(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():d.isFallbackMountPending||(c(m,p,n,r,i,null,a,o,s),_s(d,p))):m&&Os(m,f)?(c(m,f,n,r,i,d,a,o,s),d.resolve(!0),d.pendingId=rs++,d.deps=0):(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0&&d.resolve()));else if(m&&Os(m,f))c(m,f,n,r,i,d,a,o,s),_s(d,f);else if(os(t,`onPending`),d.pendingBranch=f,d.pendingId=rs++,c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0)d.resolve();else{let{timeout:e}=d;e>0?d.timeoutTimer=setTimeout(()=>{d.timeoutTimer=void 0,d.fallback(d.vnode.ssFallback)},e):e===0&&d.fallback(p)}}function ds(e,t,n,r,i,a,o,s,c,l,u=!1){let{p:d,m:f,um:p,n:m,o:{parentNode:h,remove:g}}=l,_,v=vs(e);v&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);let y=e.props?me(e.props.timeout):void 0,b=a,x={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:i,deps:0,pendingId:rs++,timeout:typeof y==`number`?y:-1,timeoutTimer:void 0,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){let{vnode:r,activeBranch:i,pendingBranch:o,pendingId:s,effects:c,parentComponent:l,container:u,isInFallback:d}=x,g=x.parent;for(;g&&!g.pendingBranch;)g=g.parent;let y=!1;if(x.isHydrating)x.isHydrating=!1;else if(!e){y=i&&o.transition&&o.transition.mode===`out-in`;let e=!1;y&&(i.transition.afterLeave=()=>{if(s===x.pendingId&&!x.isUnmounted){ss(o),f(o,u,a===b&&!e?m(i):a,0);let t=!1;if(g){let e=u,n;for(;n=h(e);)e=n;t=e===g.hiddenContainer}t||lr(c),d&&r.ssFallback&&(r.ssFallback.el=null)}}),i&&!x.isFallbackMountPending&&(h(i.el||ts(i))===u&&(a=m(i),e=!0),p(i,l,x,!0),!y&&d&&r.ssFallback&&Wo(()=>r.ssFallback.el=null,x)),y||(ss(o),f(o,u,a,0))}clearTimeout(x.timeoutTimer),x.timeoutTimer=void 0,x.isFallbackMountPending=!1,_s(x,o),x.pendingBranch=null,x.isInFallback=!1;let S=0;for(let e=0;e{if(x.isFallbackMountPending=!1,x.isUnmounted||!x.isInFallback)return;let e=x.vnode.ssFallback;d(null,e,i,o,r,null,a,s,c),_s(x,e)},u=e.transition&&e.transition.mode===`out-in`;u&&(x.isFallbackMountPending=!0,n.transition.afterLeave=l),x.isInFallback=!0,p(n,r,null,!0),u||l()},move(e,t,n){x.activeBranch&&f(x.activeBranch,e,t,n),x.container=e},next(){return x.activeBranch&&m(x.activeBranch)},registerDep(e,t,n,r){let i=!!x.pendingBranch;i&&x.deps++;let a=e.vnode.el,o=i=>{e.asyncResolved=!0;let{vnode:o}=e;tc(e,i,!1),a&&(o.el=a);let s=!a&&e.subTree.el;t(e,o,h(a||e.subTree.el),a?null:m(e.subTree),x,r,n),s&&(o.placeholder=null,g(s)),To(e,o.el)};e.asyncDep.catch(t=>(e.scope.active&&Xn(t,e,0,!1,!0),()=>null)).then(t=>{if(e.isUnmounted||x.isUnmounted)return;let n=i&&x.pendingId===e.suspenseId;if(Xs(),!e.scope.active)n&&--x.deps===0&&x.resolve();else if(!n&&x.pendingBranch){let n=()=>{e.isUnmounted||x.isUnmounted||!e.scope.active||(x.pendingBranch?gs(n,x):o(t))};n.flags=48,gs(n,x)}else o(t),n&&--x.deps===0&&x.resolve()})},unmount(e,t){if(x.isUnmounted=!0,clearTimeout(x.timeoutTimer),x.timeoutTimer=void 0,_!==void 0){let e=x.parent,t=_;_=void 0,lr(()=>{e.pendingId===t&&!e.isUnmounted&&--e.deps===0&&e.resolve()})}x.activeBranch&&p(x.activeBranch,n,e,t),x.pendingBranch&&(p(x.pendingBranch,n,x,t),hs(x))}};return x}function fs(e,t,n,r,i,a,o,s,c){let l=t.suspense=ds(t,r,n,e.parentNode,document.createElement(`div`),null,i,a,o,s,!0),u=c(e,l.pendingBranch=t.ssContent,n,l,a,o);return l.deps===0&&l.resolve(!1,!0),u}function ps(e){let{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=ms(r?n.default:n),e.ssFallback=r?ms(n.fallback):W(z)}function ms(e){let t;if(v(e)){let n=ws&&e._c;n&&(e._d=!1,B()),e=e(),n&&(e._d=!0,t=Ss,Cs())}return p(e)&&(e=yo(e)),e=Is(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function hs(e){let{effects:t}=e;for(let e=0;e0?Ss||i:null,Cs(),ws>0&&Ss&&Ss.push(e),e}function V(e,t,n,r,i,a){return Es(U(e,t,n,r,i,a,!0))}function H(e,t,n,r,i){return Es(W(e,t,n,r,i,!0))}function Ds(e){return e?e.__v_isVNode===!0:!1}function Os(e,t){return e.type===t.type&&e.key===t.key}function ks(e){}var As=({key:e})=>e??null,js=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:y(e)||j(e)||v(e)?{i:yr,r:e,k:t,f:!!n}:e);function U(e,t=null,n=null,r=0,i=null,a=e===R?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&As(t),ref:t&&js(t),scopeId:br,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:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:yr};return s?(Rs(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=y(n)?8:16),ws>0&&!o&&Ss&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&Ss.push(c),c}var W=Ms;function Ms(e,t=null,n=null,r=0,i=null,a=!1){if(e&&e!==_a||(e=z),Ds(e)){let r=Ps(e,t,!0);return n&&Rs(r,n),ws>0&&!a&&Ss&&(r.shapeFlag&6?Ss[Ss.indexOf(e)]=r:Ss.push(r)),r.patchFlag=-2,r}if(fc(e)&&(e=e.__vccOpts),t){t=Ns(t);let{class:e,style:n}=t;e&&!y(e)&&(t.class=D(e)),x(n)&&(pn(n)&&!p(n)&&(n=l({},n)),t.style=ve(n))}let o=y(e)?1:ns(e)?128:Br(e)?64:x(e)?4:v(e)?2:0;return U(e,t,n,r,i,o,a,!0)}function Ns(e){return e?pn(e)?l({},e):Oo(e)?l({},e[sc]||e):e:null}function Ps(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?zs(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&As(l),ref:t&&t.ref?n&&a?p(a)?a.concat(js(t)):[a,js(t)]:js(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==R?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ps(e.ssContent),ssFallback:e.ssFallback&&Ps(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return c&&r&&ui(u,c.clone(u)),u}function G(e=` `,t=0){return W(ys,null,e,t)}function Fs(e,t){let n=W(bs,null,e);return n.staticCount=t,n}function K(e=``,t=!1){return t?(B(),H(z,null,e)):W(z,null,e)}function Is(e){return e==null||typeof e==`boolean`?W(z):p(e)?W(R,null,e.slice()):Ds(e)?Ls(e):W(ys,null,String(e))}function Ls(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ps(e)}function Rs(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(p(t))n=16;else if(typeof t==`object`){if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),Rs(e,n()),n._c&&(n._d=!0));return}{n=32;let r=t._;!r&&!Oo(t)?t._ctx=yr:r===3&&yr&&(yr.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}}else if(v(t)){if(r&65){Rs(e,{default:t});return}t={default:t,_ctx:yr},n=32}else t=String(t),r&64?(n=16,t=[G(t)]):n=8;e.children=t,e.shapeFlag|=n}function zs(...e){let t={};for(let n=0;nGs||yr,qs,Js;{let e=ge(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};qs=t(`__VUE_INSTANCE_SETTERS__`,e=>Gs=e),Js=t(`__VUE_SSR_SETTERS__`,e=>Qs=e)}var Ys=e=>{let t=Gs;return qs(e),e.scope.on(),()=>{e.scope.off(),qs(t)}},Xs=()=>{Gs&&Gs.scope.off(),qs(null)};function Zs(e){return e.vnode.shapeFlag&4}var Qs=!1;function $s(e,t=!1,n=!1){t&&Js(t);let{props:r,children:i}=e.vnode,a=Zs(e);ko(e,r,a,t),Ho(e,i,n||t);let o=a?ec(e,t):void 0;return t&&Js(!1),o}function ec(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ka);let{setup:r}=n;if(r){st();let n=e.setupContext=r.length>1?lc(e):null,i=Ys(e),a=Jn(r,e,0,[e.props,n]),o=S(a);if(ct(),i(),(o||e.sp)&&!Wi(e)&&mi(e),o){if(a.then(Xs,Xs),t)return a.then(n=>{Js(!0);try{tc(e,n,t)}finally{Js(!1)}}).catch(t=>{Xn(t,e,0,void 0,!0),e.ssrRender=(e,t)=>t(``)});e.asyncDep=a}else tc(e,a,t)}else oc(e,t)}function tc(e,t,n){v(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:x(t)&&(e.setupState=Cn(t)),oc(e,n)}var nc,rc;function ic(e){nc=e,rc=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,Aa))}}var ac=()=>!nc;function oc(e,t,n){let r=e.type;if(!e.render){if(!t&&nc&&!r.render){let t=r.template||Za(e).template;if(t){let{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:o}=r,s=l(l({isCustomElement:n,delimiters:a},i),o);r.render=nc(t,s)}}e.render=r.render||a,rc&&rc(e)}{let t=Ys(e);st();try{qa(e)}finally{ct(),t()}}}var sc=Symbol(),cc={get(e,t){return vt(e,`get`,``),t===sc?e:e[t]}};function lc(e){return{attrs:new Proxy(e.attrs,cc),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function uc(e){return e.exposed?e.exposeProxy||=new Proxy(Cn(mn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Da)return Da[n](e)},has(e,t){return t in e||t in Da}}):e.proxy}function dc(e,t=!0){return v(e)?e.displayName||e.name:e.name||t&&e.__name}function fc(e){return v(e)&&`__vccOpts`in e}var pc=(e,t)=>Mn(e,t,Qs);function mc(e,t,n){try{Ts(-1);let r=arguments.length;return r===2?x(t)&&!p(t)?Ds(t)?W(e,null,[t]):W(e,t):W(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ds(n)&&(n=[n]),W(e,t,n))}finally{Ts(1)}}function hc(){}function gc(e,t,n,r){let i=n[r];if(i&&_c(i,e))return i;let a=t();return a.memo=e.slice(),a.cacheIndex=r,n[r]=a}function _c(e,t){let n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&Ss&&Ss.push(e),!0}var vc=`3.5.47`,yc=a,bc=qn,xc=gr,Sc=vr,Cc={createComponentInstance:Ws,setupComponent:$s,renderComponentRoot:vo,setCurrentRenderingInstance:xr,isVNode:Ds,normalizeVNode:Is,getComponentPublicInstance:uc,ensureValidVNode:wa,pushWarningContext:Un,popWarningContext:Wn},wc=void 0,Tc=typeof window<`u`&&window.trustedTypes;if(Tc)try{wc=Tc.createPolicy(`vue`,{createHTML:e=>e})}catch{}var Ec=wc?e=>wc.createHTML(e):e=>e,Dc=`http://www.w3.org/2000/svg`,Oc=`http://www.w3.org/1998/Math/MathML`,kc=typeof document<`u`?document:null,Ac=kc&&kc.createElement(`template`),jc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?kc.createElementNS(Dc,e):t===`mathml`?kc.createElementNS(Oc,e):n?kc.createElement(e,{is:n}):kc.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>kc.createTextNode(e),createComment:e=>kc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>kc.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==a&&(i=i.nextSibling););else{Ac.innerHTML=Ec(r===`svg`?`${e}`:r===`mathml`?`${e}`:e);let i=Ac.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Mc=`transition`,Nc=`animation`,Pc=Symbol(`_vtc`),Fc={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Ic=l({},ni,Fc),Lc=(e=>(e.displayName=`Transition`,e.props=Ic,e))((e,{slots:t})=>mc(ai,Bc(e),t)),Rc=(e,t=[])=>{p(e)?e.forEach(e=>e(...t)):e&&e(...t)},zc=e=>e?p(e)?e.some(e=>e.length>1):e.length>1:!1;function Bc(e){let t={};for(let n in e)n in Fc||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:u=o,appearToClass:d=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,h=Vc(i),g=h&&h[0],_=h&&h[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:b,onLeave:x,onLeaveCancelled:S,onBeforeAppear:ee=v,onAppear:C=y,onAppearCancelled:te=b}=t,w=(e,t,n,r)=>{e._enterResolve=void 0,e._enterCancelled=r,Wc(e,t?d:s),Wc(e,t?u:o),n&&n()},T=(e,t)=>{e._leaveResolve=void 0,e._isLeaving=!1,Wc(e,f),Wc(e,m),Wc(e,p),t&&t()},ne=e=>(t,n)=>{let i=e?C:y,o=()=>{t._enterResolve===o&&w(t,e,n)};t._enterResolve=o,Rc(i,[t,o]),Gc(()=>{Wc(t,e?c:a),t._enterResolve===o&&(Uc(t,e?d:s),zc(i)||qc(t,r,g,o))})};return l(t,{onBeforeEnter(e){Rc(v,[e]),Uc(e,a),Uc(e,o)},onBeforeAppear(e){Rc(ee,[e]),Uc(e,c),Uc(e,u)},onEnter:ne(!1),onAppear:ne(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>{e._leaveResolve===n&&T(e,t)};e._leaveResolve=n,Uc(e,f),e._enterCancelled?(Uc(e,p),Zc(e)):(Zc(e),Uc(e,p)),Gc(()=>{e._leaveResolve===n&&(Wc(e,f),Uc(e,m),zc(x)||qc(e,r,_,n))}),Rc(x,[e,n])},onEnterCancelled(e){w(e,!1,void 0,!0),Rc(b,[e])},onAppearCancelled(e){w(e,!0,void 0,!0),Rc(te,[e])},onLeaveCancelled(e){T(e),Rc(S,[e])}})}function Vc(e){if(e==null)return null;if(x(e))return[Hc(e.enter),Hc(e.leave)];{let t=Hc(e);return[t,t]}}function Hc(e){return me(e)}function Uc(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[Pc]||(e[Pc]=new Set)).add(t)}function Wc(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[Pc];n&&(n.delete(t),n.size||(e[Pc]=void 0))}function Gc(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var Kc=0;function qc(e,t,n,r){let i=e._endId=++Kc,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=Jc(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u(n[e]||``).split(`, `),i=r(`${Mc}Delay`),a=r(`${Mc}Duration`),o=Yc(i,a),s=r(`${Nc}Delay`),c=r(`${Nc}Duration`),l=Yc(s,c),u=null,d=0,f=0;t===Mc?o>0&&(u=Mc,d=o,f=a.length):t===Nc?l>0&&(u=Nc,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?Mc:Nc:null,f=u?u===Mc?a.length:c.length:0);let p=u===Mc&&/\b(?:transform|all)(?:,|$)/.test(r(`${Mc}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function Yc(e,t){for(;e.lengthXc(t)+Xc(e[n])))}function Xc(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function Zc(e){return(e?e.ownerDocument:document).body.offsetHeight}function Qc(e,t,n){let r=e[Pc];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var $c=Symbol(`_vod`),el=Symbol(`_vsh`),tl={name:`show`,beforeMount(e,{value:t},{transition:n}){e[$c]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):nl(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),nl(e,!0),r.enter(e)):r.leave(e,()=>{nl(e,!1)}):nl(e,t))},beforeUnmount(e,{value:t}){nl(e,t)}};function nl(e,t){e.style.display=t?e[$c]:`none`,e[el]=!t}function rl(){tl.getSSRProps=({value:e})=>{if(!e)return{style:{display:`none`}}}}var il=Symbol(``);function al(e){let t=Ks();if(!t)return;let n=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(e=>dl(e,n))},r={uid:String(t.uid),update:n};He(()=>r.update=void 0),t.ut=(e,t)=>{e&&(e[ol]=[t,r],cl(e),sl(e)),n()};let i=()=>{let r=e(t.proxy);t.ce?dl(t.ce,r):ul(t.subTree,r),n(r)};oa(()=>{lr(i)}),aa(()=>{Pr(i,a,{flush:`post`});let e=new MutationObserver(i);e.observe(t.subTree.el.parentNode,{childList:!0}),la(()=>e.disconnect())})}var ol=Symbol(``);function sl(e,t){let[n,r]=e[ol],i;if(r.update)for(let a=e;a&&a!==n;a=a.nextSibling)a.nodeType===1&&(!t||(t===!0||t.has(a))&&(a.getAttribute(`data-v-owner`)||r.uid)===r.uid)&&(a.setAttribute(`data-v-owner`,r.uid),i=r.update);return i}function cl(e){let t=e.parentNode;if(t){let n=t[ol];n||(n=t[ol]=new Set,new MutationObserver(ll).observe(t,{childList:!0})),n.add(e)}}function ll(e,t){let n=e[0].target,r=n[ol],i=new Set;for(let{addedNodes:t}of e)t.forEach(e=>i.add(e));let a=new Set;r.forEach(e=>{e.parentNode===n?i.size&&a.add(sl(e,i)):(r.delete(e),cl(e),a.add(sl(e,!0)))}),a.forEach(e=>e&&e()),r.size||(t.disconnect(),n[ol]=void 0)}function ul(e,t){if(e.shapeFlag&128){let n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{ul(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)dl(e.el,t);else if(e.type===R)e.children.forEach(e=>ul(e,t));else if(e.type===bs){let{el:n,anchor:r}=e;for(;n&&(dl(n,t),n!==r);)n=n.nextSibling}}function dl(e,t){if(e.nodeType===1){let n=e.style,r=``;for(let e in t){let i=Le(t[e]);n.setProperty(`--${e}`,i),r+=`--${e}: ${i};`}n[il]=r}}var fl=/(?:^|;)\s*display\s*:/;function pl(e,t,n){let r=e.style,i=y(n),a=!1;if(n&&!i){if(t){if(y(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??hl(r,t,``)}else for(let e in t)n[e]??hl(r,e,``)}for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?hl(r,i,``):yl(e,i,!y(t)&&t?t[i]:void 0,o)||hl(r,i,o)}}else if(i){if(t!==n){let e=r[il];e&&(n+=`;`+e),r.cssText=n,a=fl.test(n)}}else t&&e.removeAttribute(`style`);$c in e&&(i&&t===n||(e[$c]=a?r.display:``),e[el]&&(r.display=`none`))}var ml=/\s*!important$/;function hl(e,t,n){if(p(n))n.forEach(n=>hl(e,t,n));else if(n??=``,t.startsWith(`--`))ml.test(n)?e.setProperty(t,n.replace(ml,``),`important`):e.setProperty(t,n);else{let r=vl(e,t);ml.test(n)?e.setProperty(se(r),n.replace(ml,``),`important`):e[r]=n}}var gl=[`Webkit`,`Moz`,`ms`],_l={};function vl(e,t){let n=_l[t];if(n)return n;let r=E(t);if(r!==`filter`&&r in e)return _l[t]=r;r=ce(r);for(let n=0;nAl||=(jl.then(()=>Al=0),Date.now());function Nl(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(p(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;ne.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Fl=(e,t,n,r,i,a)=>{let o=i===`svg`;t===`class`?Qc(e,r,o):t===`style`?pl(e,n,r):s(t)?c(t)||El(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),1):t[0]===`^`?(t=t.slice(1),0):Il(e,t,r,o))?(Sl(e,t,r),e.tagName.includes(`-`)||t!==`value`&&t!==`checked`&&t!==`selected`||xl(e,t,r,o,a,t!==`value`)):e._isVueCE&&(Ll(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!y(r)))?Sl(e,E(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),xl(e,t,r,o))};function Il(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&Pl(t)&&v(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`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return Pl(t)&&y(n)?!1:t in e}function Ll(e,t){let n=e._def.props;if(!n)return!1;let r=E(t);return Array.isArray(n)?n.some(e=>E(e)===r):Object.keys(n).some(e=>E(e)===r)}var Rl={};function zl(e,t,n){let r=I(e,t);w(r)&&(r=l({},r,t));class i extends Hl{constructor(e){super(r,e,n)}}return i.def=r,i}var Bl=((e,t)=>zl(e,t,Ru)),Vl=typeof HTMLElement<`u`?HTMLElement:class{},Hl=class e extends Vl{constructor(e,t={},n=Lu){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&n!==Lu?this._root=this.shadowRoot:e.shadowRoot===!1?this._root=this:(this.attachShadow(l({},e.shadowRootOptions,{mode:`open`})),this._root=this.shadowRoot)}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t&&=t.assignedSlot||t.parentNode||t.host;)if(t instanceof e){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{if(this._pendingResolve=void 0,this.isConnected)return this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,ar(()=>{this._connected||(this._ob&&=(this._ob.disconnect(),null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&=(this._teleportTargets.clear(),void 0))})}_processMutations(e){for(let t of e)this._setAttr(t.attributeName)}_resolveDef(){if(this._pendingResolve)return this._pendingResolve;for(let e=0;e{this._resolved=!0,this._pendingResolve=void 0;let{props:n,styles:r}=e,i;if(n&&!p(n))for(let e in n){let t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=me(this._props[e])),(i||=Object.create(null))[E(e)]=!0)}this._numberProps=i,this._resolveProps(e),this.shadowRoot&&this._applyStyles(r),this._connected&&this._mount(e)},t=this._def.__asyncLoader;if(t)return this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!0)}),this._pendingResolve;e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);let t=this._instance&&this._instance.exposed;if(t)for(let e in t)f(this,e)||Object.defineProperty(this,e,{get:()=>N(t[e])})}_resolveProps(e){let{props:t}=e,n=p(t)?t:Object.keys(t||{});for(let e of Object.keys(this))e[0]!==`_`&&n.includes(e)&&this._setProp(e,this[e]);for(let e of n.map(E))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t,!0,!this._patching)}})}_setAttr(e){if(e.startsWith(`data-v-`))return;let t=this.hasAttribute(e),n=t?this.getAttribute(e):Rl,r=E(e);t&&this._numberProps&&this._numberProps[r]&&(n=me(n)),this._setProp(r,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!1){if(t!==this._props[e]&&(this._dirty=!0,t===Rl?delete this._props[e]:(this._props[e]=t,e===`key`&&this._app&&(this._app._ceVNode.key=t)),r&&this._instance&&this._update(),n)){let n=this._ob;n&&(this._processMutations(n.takeRecords()),n.disconnect()),t===!0?this.setAttribute(se(e),``):typeof t==`string`||typeof t==`number`?this.setAttribute(se(e),t+``):t||this.removeAttribute(se(e)),n&&n.observe(this,{attributes:!0})}}_update(){let e=this._createVNode();this._app&&(e.appContext=this._app._context),Fu(e,this._root)}_createVNode(){let e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));let t=W(this._def,l(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;let t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,w(t[0])?l({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),se(e)!==e&&t(se(e),n)},this._setParent()}),t}_applyStyles(e,t,n){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}let r=this._nonce,i=this.shadowRoot,a=n?this._getStyleAnchor(n)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(i),o=null;for(let s=e.length-1;s>=0;s--){let c=document.createElement(`style`);r&&c.setAttribute(`nonce`,r),c.textContent=e[s],i.insertBefore(c,o||a),o=c,s===0&&(n||this._styleAnchors.set(this._def,c),t&&this._styleAnchors.set(t,c))}}_getStyleAnchor(e){if(!e)return null;let t=this._styleAnchors.get(e);return t&&t.parentNode===this.shadowRoot?t:(t&&this._styleAnchors.delete(e),null)}_getRootStyleInsertionAnchor(e){for(let t=0;t(delete e.props.mode,e))({name:`TransitionGroup`,props:l({},Ic,{tag:String,moveClass:String}),setup(e,{slots:t}){let n=Ks(),r=ei(),i,a,o,s,c=()=>(s===void 0&&(s=i.length>0&&ou(i[0].el,n.vnode.el,$l(e))),s);return sa(()=>{if(Xl.delete(n),!c()){i=[],o=void 0;return}let t=$l(e);i.forEach(Ql);let r=o&&au(o,n.vnode.el);o=void 0,i.forEach(e=>eu(e,r));let a=i.filter(tu);Zc(n.vnode.el),a.forEach(e=>{let n=e.el,r=n.style;Uc(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[Jl]=e=>{e&&e.target!==n||(!e||e.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[Jl]=null,Wc(n,t))};n.addEventListener(`transitionend`,i)}),i=[]}),()=>{let l=A(e),u=Bc(l),d=l.tag||R;if(i=[],s=void 0,a)for(let e=0;ee.willMove()&&e.item.contains(t));return n&&nu(n.item,n)}function ou(e,t,n){let r=e.cloneNode(),i=e[Pc];i&&i.forEach(e=>{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display=`none`;let a=t.nodeType===1?t:t.parentNode;a.appendChild(r);let{hasTransform:o}=Jc(r);return a.removeChild(r),o}var su=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return p(t)?e=>de(t,e):t};function cu(e){e.target.composing=!0}function lu(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var uu=Symbol(`_assign`),du=Symbol(`_initialValue`);function fu(e,t,n){return t&&(e=e.trim()),n&&(e=pe(e)),e}var q={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e.parentNode&&(e.type===`text`?e[du]=e.defaultValue.replace(/[\r\n]/g,``):e.type===`textarea`&&(e[du]=e.defaultValue.replace(/\r\n?/g,` `))),e[uu]=su(i);let a=r||i.props&&i.props.type===`number`;Cl(e,t?`change`:`input`,t=>{t.target.composing||e[uu](fu(e.value,n,a))}),(n||a)&&Cl(e,`change`,()=>{e.value=fu(e.value,n,a)}),t||(Cl(e,`compositionstart`,cu),Cl(e,`compositionend`,lu),Cl(e,`change`,lu))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){let i=t??``,a=e[du];delete e[du],a!==void 0&&(e.type===`text`||e.type===`textarea`)&&e.value!==a?e[uu](fu(e.value,n,r)):e.value=i},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[uu]=su(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?pe(e.value):e.value,c=t??``;if(s===c)return;let l=e.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c)}},pu={deep:!0,created(e,t,n){e[uu]=su(n),Cl(e,`change`,()=>{let t=e._modelValue,n=yu(e),r=e.checked,i=e[uu];if(p(t)){let e=Me(t,n),a=e!==-1;if(r&&!a)i(t.concat(n));else if(!r&&a){let n=[...t];n.splice(e,1),i(n)}}else if(h(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(bu(e,r))})},mounted:mu,beforeUpdate(e,t,n){e[uu]=su(n),mu(e,t,n)}};function mu(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(p(t))i=Me(t,r.props.value)>-1;else if(h(t))i=t.has(r.props.value);else{if(t===n)return;i=je(t,bu(e,!0))}e.checked!==i&&(e.checked=i)}var hu={created(e,{value:t},n){e.checked=je(t,n.props.value),e[uu]=su(n),Cl(e,`change`,()=>{e[uu](yu(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[uu]=su(r),t!==n&&(e.checked=je(t,r.props.value))}},gu={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,Cl(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?pe(yu(e)):yu(e)),r=e.multiple,i=r?h(e._modelValue)?new Set(t):t:t[0],a=e._pendingValue=[r,r?p(i)?t.slice():t:i];try{e[uu](i)}finally{ar(()=>{e._pendingValue===a&&(e._pendingValue=void 0)})}}),e[uu]=su(r)},mounted(e,{value:t,modifiers:{number:n}}){vu(e,t,n)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[uu]=su(n)},updated(e,{value:t,modifiers:{number:n}}){let r=e._pendingValue;e._pendingValue=void 0,r&&r[0]===e.multiple&&_u(t,r[1],r[0])||vu(e,t,n)}};function _u(e,t,n){if(!n||p(e))return je(e,t);if(h(e)){if(e.size!==t.length)return!1;for(let n of t)if(!e.has(n))return!1;return!0}return!1}function vu(e,t,n=!1){let r=e.multiple,i=p(t);if(!r||i||h(t)){for(let a=0,o=e.options.length;aString(e)===String(s)):Me(t,s)>-1}else o.selected=t.has(s)||n&&typeof s==`string`&&t.has(pe(s))}else if(je(yu(o),t)){e.selectedIndex!==a&&(e.selectedIndex=a);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function yu(e){return`_value`in e?e._value:e.value}function bu(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var xu={created(e,t,n){Cu(e,t,n,null,`created`)},mounted(e,t,n){Cu(e,t,n,null,`mounted`)},beforeUpdate(e,t,n,r){Cu(e,t,n,r,`beforeUpdate`)},updated(e,t,n,r){Cu(e,t,n,r,`updated`)}};function Su(e,t){switch(e){case`SELECT`:return gu;case`TEXTAREA`:return q;default:switch(t){case`checkbox`:return pu;case`radio`:return hu;default:return q}}}function Cu(e,t,n,r,i){let a=Su(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}function wu(){q.getSSRProps=({value:e})=>({value:e}),hu.getSSRProps=({value:e},t)=>{if(t.props&&je(t.props.value,e))return{checked:!0}},pu.getSSRProps=({value:e},t)=>{if(p(e)){if(t.props&&Me(e,t.props.value)>-1)return{checked:!0}}else if(h(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},xu.getSSRProps=(e,t)=>{if(typeof t.type!=`string`)return;let n=Su(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}var Tu=[`ctrl`,`shift`,`alt`,`meta`],Eu={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)=>Tu.some(n=>e[`${n}Key`]&&!t.includes(n))},Du=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e{let n=e._withKeys||={},r=t.join(`.`),i=n[r];if(i)return i;let a=t.some(e=>e===`left`||e===`right`);return n[r]=(n=>{if(!(`key`in n))return a?e(n):void 0;let r=se(n.key);if(t.some(e=>e===r||Ou[e]===r))return e(n)})},Au=l({patchProp:Fl},jc),ju,Mu=!1;function Nu(){return ju||=Go(Au)}function Pu(){return ju=Mu?ju:Ko(Au),Mu=!0,ju}var Fu=((...e)=>{Nu().render(...e)}),Iu=((...e)=>{Pu().hydrate(...e)}),Lu=((...e)=>{let t=Nu().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=Bu(e);if(!r)return;let i=t._component;v(i)||i.render||i.template||(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,zu(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t}),Ru=((...e)=>{let t=Pu().createApp(...e),{mount:n}=t;return t.mount=e=>{let t=Bu(e);if(t)return n(t,!0,zu(t))},t});function zu(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function Bu(e){return y(e)?document.querySelector(e):e}var Vu=!1,Hu=()=>{Vu||(Vu=!0,wu(),rl())},Uu=t({BaseTransition:()=>ai,BaseTransitionPropsValidators:()=>ni,Comment:()=>z,DeprecationTypes:()=>null,EffectScope:()=>ze,ErrorCodes:()=>Kn,ErrorTypeStrings:()=>bc,Fragment:()=>R,KeepAlive:()=>Ji,ReactiveEffect:()=>We,Static:()=>bs,Suspense:()=>as,Teleport:()=>Yr,Text:()=>ys,TrackOpTypes:()=>Nn,Transition:()=>Lc,TransitionGroup:()=>Zl,TriggerOpTypes:()=>Pn,VueElement:()=>Hl,assertNumber:()=>Gn,callWithAsyncErrorHandling:()=>Yn,callWithErrorHandling:()=>Jn,camelize:()=>E,capitalize:()=>ce,cloneVNode:()=>Ps,compatUtils:()=>null,compile:()=>Wu,computed:()=>pc,createApp:()=>Lu,createBlock:()=>H,createCommentVNode:()=>K,createElementBlock:()=>V,createElementVNode:()=>U,createHydrationRenderer:()=>Ko,createPropsRestProxy:()=>Wa,createRenderer:()=>Go,createSSRApp:()=>Ru,createSlots:()=>Sa,createStaticVNode:()=>Fs,createTextVNode:()=>G,createVNode:()=>W,customRef:()=>Tn,defineAsyncComponent:()=>Gi,defineComponent:()=>I,defineCustomElement:()=>zl,defineEmits:()=>Ma,defineExpose:()=>Na,defineModel:()=>Ia,defineOptions:()=>Pa,defineProps:()=>ja,defineSSRCustomElement:()=>Bl,defineSlots:()=>Fa,devtools:()=>xc,effect:()=>rt,effectScope:()=>Be,getCurrentInstance:()=>Ks,getCurrentScope:()=>Ve,getCurrentWatcher:()=>Rn,getTransitionRawChildren:()=>di,guardReactiveProps:()=>Ns,h:()=>mc,handleError:()=>Xn,hasInjectionContext:()=>Or,hydrate:()=>Iu,hydrateOnIdle:()=>Ri,hydrateOnInteraction:()=>Hi,hydrateOnMediaQuery:()=>Vi,hydrateOnVisible:()=>Bi,initCustomFormatter:()=>hc,initDirectivesForSSR:()=>Hu,inject:()=>Dr,isMemoSame:()=>_c,isProxy:()=>pn,isReactive:()=>un,isReadonly:()=>dn,isRef:()=>j,isRuntimeOnly:()=>ac,isShallow:()=>fn,isVNode:()=>Ds,markRaw:()=>mn,mergeDefaults:()=>Ha,mergeModels:()=>Ua,mergeProps:()=>zs,nextTick:()=>ar,nodeOps:()=>jc,normalizeClass:()=>D,normalizeProps:()=>Ce,normalizeStyle:()=>ve,onActivated:()=>Xi,onBeforeMount:()=>ia,onBeforeUnmount:()=>ca,onBeforeUpdate:()=>oa,onDeactivated:()=>Zi,onErrorCaptured:()=>pa,onMounted:()=>aa,onRenderTracked:()=>fa,onRenderTriggered:()=>da,onScopeDispose:()=>He,onServerPrefetch:()=>ua,onUnmounted:()=>la,onUpdated:()=>sa,onWatcherCleanup:()=>zn,openBlock:()=>B,patchProp:()=>Fl,popScopeId:()=>Cr,provide:()=>Er,proxyRefs:()=>Cn,pushScopeId:()=>Sr,queuePostFlushCb:()=>lr,reactive:()=>an,readonly:()=>sn,ref:()=>M,registerRuntimeCompiler:()=>ic,render:()=>Fu,renderList:()=>L,renderSlot:()=>Ca,resolveComponent:()=>ga,resolveDirective:()=>ya,resolveDynamicComponent:()=>va,resolveFilter:()=>null,resolveTransitionHooks:()=>si,setBlockTracking:()=>Ts,setDevtoolsHook:()=>Sc,setTransitionHooks:()=>ui,shallowReactive:()=>on,shallowReadonly:()=>cn,shallowRef:()=>_n,ssrContextKey:()=>kr,ssrUtils:()=>Cc,stop:()=>it,toDisplayString:()=>O,toHandlerKey:()=>le,toHandlers:()=>Ta,toRaw:()=>A,toRef:()=>kn,toRefs:()=>En,toValue:()=>xn,transformVNodeArgs:()=>ks,triggerRef:()=>bn,unref:()=>N,useAttrs:()=>za,useCssModule:()=>Gl,useCssVars:()=>al,useHost:()=>Ul,useId:()=>pi,useModel:()=>fo,useSSRContext:()=>Ar,useShadowRoot:()=>Wl,useSlots:()=>Ra,useTemplateRef:()=>hi,useTransitionState:()=>ei,vModelCheckbox:()=>pu,vModelDynamic:()=>xu,vModelRadio:()=>hu,vModelSelect:()=>gu,vModelText:()=>q,vShow:()=>tl,version:()=>vc,warn:()=>yc,watch:()=>Pr,watchEffect:()=>jr,watchPostEffect:()=>Mr,watchSyncEffect:()=>Nr,withAsyncContext:()=>Ga,withCtx:()=>P,withDefaults:()=>La,withDirectives:()=>F,withKeys:()=>ku,withMemo:()=>gc,withModifiers:()=>Du,withScopeId:()=>wr}),Wu=()=>{},Gu=class extends Error{status;body;constructor(e,t){super(t?.message??`HTTP ${e}`),this.status=e,this.body=t}get errors(){return Object.fromEntries(Object.entries(this.body?.errors??{}).map(([e,t])=>[e,t[0]]))}},J=JSON.parse(document.getElementById(`manager-boot`).textContent);function Ku(){let e=document.cookie.match(/(?:^|; )XSRF-TOKEN=([^;]+)/);return e?decodeURIComponent(e[1]):``}async function qu(e,t,n){let r=await fetch(t,{method:e,credentials:`same-origin`,headers:{Accept:`application/json`,"X-Requested-With":`XMLHttpRequest`,"X-XSRF-TOKEN":Ku(),...n===void 0?{}:{"Content-Type":`application/json`}},body:n===void 0?void 0:JSON.stringify(n)}),i=r.status===204?null:await r.json().catch(()=>null);if(!r.ok)throw new Gu(r.status,i);return i}async function Ju(e,t){let n=await fetch(e,{method:`POST`,credentials:`same-origin`,headers:{Accept:`application/json`,"X-Requested-With":`XMLHttpRequest`,"X-XSRF-TOKEN":Ku()},body:t}),r=await n.json().catch(()=>null);if(!n.ok)throw new Gu(n.status,r);return r}var Y={get:e=>qu(`GET`,e),post:(e,t={})=>qu(`POST`,e,t),put:(e,t={})=>qu(`PUT`,e,t),delete:(e,t)=>qu(`DELETE`,e,t)};function Yu(e){let t=an({values:{...e},errors:{},busy:!1,async send(e,n){t.busy=!0,t.errors={};try{return await Y[e](n,t.values)}catch(e){if(e instanceof Gu&&e.status===422)return t.errors=e.errors,null;throw e}finally{t.busy=!1}}});return t}var Xu={Dashboard:`Dashboard`,"Log in":`Inloggen`,"Log out":`Uitloggen`,Email:`E-mailadres`,Password:`Wachtwoord`,"Keep me logged in":`Ingelogd blijven`,"Logging in…":`Bezig met inloggen…`,"Log in to manage the site.":`Log in om de site te beheren.`,"My account":`Mijn account`,Name:`Naam`,"Email address":`E-mailadres`,"What you may do":`Wat je mag`,"Super admin: everything":`Super admin: alles`,"Not in a group yet":`Nog in geen groep`,"New password":`Nieuw wachtwoord`,"Leave empty to keep the password you have.":`Laat leeg om je wachtwoord te houden.`,"Current password":`Huidig wachtwoord`,"At least 12 characters.":`Minstens 12 tekens.`,"New password, once more":`Nieuw wachtwoord, nogmaals`,Save:`Opslaan`,"Saving…":`Bezig met opslaan…`,"Saved.":`Opgeslagen.`,Look:`Uiterlijk`,Theme:`Thema`,Posts:`Berichten`,"New post":`Nieuw bericht`,Title:`Titel`,Status:`Status`,Category:`Categorie`,Edit:`Bewerken`,Delete:`Verwijderen`,"Put online":`Online zetten`,"Take offline":`Offline halen`,Draft:`Concept`,Scheduled:`Ingepland`,Published:`Gepubliceerd`,"Are you sure?":`Weet je het zeker?`,"No posts yet.":`Nog geen berichten.`,"Address (slug)":`Adres (slug)`,Summary:`Samenvatting`,"Text (Markdown)":`Tekst (Markdown)`,"Cover image":`Omslagafbeelding`,"Tags (comma separated)":`Tags (met komma's)`,Featured:`Uitgelicht`,Publish:`Publiceren`,"Publish at":`Publiceren op`,Menu:`Menu`,"Click the part of the picture that must stay in view.":`Klik op het deel van de foto dat in beeld moet blijven.`,"Focus point":`Scherpstelpunt`,Clear:`Wissen`,Formatting:`Opmaak`,Bold:`Vet`,Italic:`Cursief`,Heading:`Kop`,List:`Lijst`,Quote:`Citaat`,Link:`Link`,bold:`vet`,italic:`cursief`,text:`tekst`,Photo:`Foto`,Write:`Schrijven`,Preview:`Voorbeeld`,History:`Geschiedenis`,Now:`Nu`,"Put back":`Terugzetten`,"Put this version back? The text now is kept in the history.":`Deze versie terugzetten? De tekst van nu blijft bewaard in de geschiedenis.`,"The earlier version is back.":`De eerdere versie is terug.`,New:`Nieuw`,"New page":`Nieuwe pagina`,"Description for search engines":`Omschrijving voor zoekmachines`,"One per line.":`Eén per regel.`,"Show everything":`Alles tonen`,"Simple view":`Simpele weergave`,"Loading…":`Laden…`,"You may not open this page.":`Je mag deze pagina niet openen.`,"Something went wrong. Try again.":`Er ging iets mis. Probeer het opnieuw.`,"This page has no screen in the manager yet.":`Deze pagina heeft nog geen scherm in de manager.`,"Go to the dashboard":`Naar het dashboard`,"The page expired. Reload it and try again.":`De pagina is verlopen. Laad hem opnieuw en probeer het nog eens.`,Back:`Terug`,"Start screen":`Startscherm`,"The dashboard":`Het dashboard`,Primary:`Primair`,"Primary group":`Primaire groep`,"Where accounts with this as their primary group land when they open the manager.":`Waar accounts met dit als primaire groep landen als ze de manager openen.`,"The primary group is the label of the account and sets its start screen. What it may do is everything its groups allow together.":`De primaire groep is het label van het account en bepaalt het startscherm. Wat het account mag, is alles wat al zijn groepen samen toestaan.`,Settings:`Instellingen`,"Refresh now":`Nu verversen`,"Try it":`Proberen`,"Trying…":`Bezig met proberen…`,"Save first: it tries what is saved.":`Sla eerst op: er wordt geprobeerd met wat is opgeslagen.`,"The check could not be run.":`De controle kon niet worden uitgevoerd.`,"Refreshed.":`Ververst.`,"These parts need new tables:":`Deze onderdelen hebben nieuwe tabellen nodig:`,"Run php artisan migrate on the server.":`Draai php artisan migrate op de server.`,"The changes are saved, but the file that makes them work at once could not be written (bootstrap/cache). They work after Refresh now, or when that folder may be written.":`De wijzigingen zijn opgeslagen, maar het bestand dat ze direct laat werken kon niet geschreven worden (bootstrap/cache). Ze werken na Nu verversen, of als die map beschreven mag worden.`,"A change works at once and is kept in the database.":`Een wijziging werkt direct en wordt in de database bewaard.`,"It is also written into the .env file.":`Hij wordt ook in het .env-bestand geschreven.`,"The .env file may not be written here, so only the database is used.":`Het .env-bestand mag hier niet beschreven worden, dus alleen de database wordt gebruikt.`,"Set. Type to replace it.":`Ingesteld. Typ om te vervangen.`,"Keep what is saved":`Bewaar wat is opgeslagen`,"Back to what the config says":`Terug naar wat de config zegt`,"Your password":`Je wachtwoord`,"Keys, passwords and addresses of integrations are only changed after you type your own password.":`Sleutels, wachtwoorden en adressen van koppelingen worden alleen gewijzigd nadat je je eigen wachtwoord typt.`,Accounts:`Accounts`,"New account":`Nieuw account`,you:`jij`,"Super admin":`Super admin`,Groups:`Groepen`,Cancel:`Annuleren`,"New group":`Nieuwe groep`,Description:`Omschrijving`,accounts:`accounts`,"Categories and tags":`Categorieën en tags`,Categories:`Categorieën`,Tags:`Tags`,Add:`Toevoegen`,Rename:`Hernoemen`,"New name":`Nieuwe naam`,Pages:`Pagina's`,Reviews:`Reviews`,"Nothing here yet.":`Hier is nog niets.`,Previous:`Vorige`,Next:`Volgende`,Media:`Media`,"Choose an image":`Kies een afbeelding`,"No images yet.":`Nog geen afbeeldingen.`,"Uploaded.":`Geüpload.`,Upload:`Uploaden`,"Uploading…":`Bezig met uploaden…`,"This file is in use. Delete it anyway?":`Dit bestand is in gebruik. Toch verwijderen?`,"Largest file":`Grootste bestand`,"Alternative text":`Alternatieve tekst`,Used:`Gebruikt`,"No files yet.":`Nog geen bestanden.`,Choose:`Kiezen`,"Audit log":`Auditlog`,"Addresses banned":`Geblokkeerde adressen`,"Logins (24 h)":`Logins (24 u)`,"Failed logins (24 h)":`Mislukte logins (24 u)`,"Refused (24 h)":`Geweigerd (24 u)`,all:`alles`,logins:`logins`,failed:`mislukt`,actions:`acties`,viewed:`bekeken`,refused:`geweigerd`,bans:`blokkades`,Search:`Zoeken`,Account:`Account`,Everyone:`Iedereen`,Filter:`Filteren`,Someone:`Iemand`,banned:`geblokkeerd`,Ban:`Blokkeren`,Bans:`Blokkades`,"Minutes (0 = until lifted)":`Minuten (0 = tot opgeheven)`,Reason:`Reden`,"Whole site":`Hele site`,"No bans.":`Geen blokkades.`,automatic:`automatisch`,"whole site":`hele site`,hits:`pogingen`,Lift:`Opheffen`,Rules:`Regels`,"until lifted":`tot opgeheven`,"Ban an address by itself after too many failed logins":`Een adres zelf blokkeren na te veel mislukte logins`,"Failed logins":`Mislukte logins`,"Within minutes":`Binnen minuten`,"Ban for minutes (0 = until lifted)":`Blokkeren voor minuten (0 = tot opgeheven)`,"Keep the log (days)":`Log bewaren (dagen)`,"Notes about addresses":`Notities over adressen`,Group:`Groep`,Note:`Notitie`,Statistics:`Statistieken`,"compared with":`vergeleken met`,Visitors:`Bezoekers`,Visits:`Bezoeken`,"Page views":`Paginaweergaven`,"Average time":`Gemiddelde tijd`,"Bounce rate":`Bouncepercentage`,Channels:`Kanalen`,Sources:`Bronnen`,Countries:`Landen`,Devices:`Apparaten`,Browsers:`Browsers`,Systems:`Systemen`,Direct:`Direct`,"When people visit":`Wanneer mensen komen`,Programs:`Programma's`,Download:`Downloaden`,Sharing:`Delen`,"Posts are shared for real.":`Berichten worden echt gedeeld.`,'Dry run: nothing is sent to the networks. Turn on "Post for real" under Settings when the site is live.':`Proefrun: er wordt niets naar de netwerken gestuurd. Zet "Echt posten" aan bij Instellingen als de site live is.`,Connected:`Gekoppeld`,"Not connected":`Niet gekoppeld`,"Fill in under Settings:":`Vul in bij Instellingen:`,"Return address for the app":`Terugkeeradres voor de app`,Connect:`Koppel`,"Connect again":`Koppel opnieuw`,Disconnect:`Ontkoppel`,"Recently shared":`Onlangs gedeeld`,"Nothing has been shared yet.":`Er is nog niets gedeeld.`,"Dry run":`Proefrun`,Shared:`Gedeeld`,Failed:`Mislukt`,"The account is connected.":`Het account is gekoppeld.`,"The network did not give permission, or it was cancelled.":`Het netwerk gaf geen toestemming, of het is afgebroken.`,"Connecting did not complete. Try again.":`Koppelen is niet gelukt. Probeer het opnieuw.`,"The account is disconnected. What was shared stays where it is.":`Het account is ontkoppeld. Wat gedeeld is, blijft staan.`,Share:`Delen`,"Share now":`Nu delen`,"Dry run: nothing was sent.":`Proefrun: er is niets verstuurd.`,"Shared.":`Gedeeld.`,View:`Bekijk`,"Dry run: nothing is sent to the networks.":`Proefrun: er wordt niets naar de netwerken gestuurd.`,"Name of the service":`Naam van de dienst`,'What you call it, for example "Roof extensions".':`Hoe je het noemt, bijvoorbeeld "Dakkapellen".`,"Short description":`Korte beschrijving`,"One sentence that shows under the name.":`Eén zin die onder de naam staat.`,"The full story":`Het hele verhaal`,"What you do and how you work. This is the text on the page of this service.":`Wat je doet en hoe je werkt. Dit is de tekst op de pagina van deze dienst.`,"Main photo":`Hoofdfoto`,"What you do":`Wat je doet`,"Short lines, one per line.":`Korte regels, één per regel.`,"Questions people ask":`Vragen die mensen stellen`,"Add the questions you hear often, with your answer.":`Zet hier de vragen die je vaak hoort, met je antwoord.`,"Show this on my website":`Laat dit zien op mijn website`,"Name of the job":`Naam van de klus`,'For example "New kitchen in a farmhouse".':`Bijvoorbeeld "Nieuwe keuken in een boerderij".`,"What kind of work was it?":`Wat voor werk was het?`,Town:`Plaats`,"The town only, never the street.":`Alleen de plaats, nooit de straat.`,"Year it was finished":`Jaar waarin het klaar was`,"What happened":`Wat er gebeurd is`,"A few sentences about the job. Leave an empty line between paragraphs.":`Een paar zinnen over de klus. Laat een lege regel tussen alinea's.`,"The customer said these photos may be on the website":`De klant heeft gezegd dat deze foto's op de website mogen`,"Show this on the home page":`Laat dit zien op de voorpagina`,"Who said it":`Wie het zei`,"Where they live or what they do":`Waar ze wonen of wat ze doen`,'For example "Utrecht" or "owner of a bakery".':`Bijvoorbeeld "Utrecht" of "eigenaar van een bakkerij".`,"What they said":`Wat ze zeiden`,"Their words, as they gave them.":`Hun woorden, zoals ze ze gaven.`,"What the button says":`Wat er op de knop staat`,"Where it goes":`Waar het naartoe gaat`,"A page of your website, like /contact, or a full web address.":`Een pagina van je website, zoals /contact, of een volledig webadres.`,"Open it in a new tab":`Open het in een nieuw tabblad`,'For example "Facebook".':`Bijvoorbeeld "Facebook".`,"Web address of your page":`Webadres van je pagina`,"Name of your business":`Naam van je bedrijf`,"Your first name":`Je voornaam`,'Used on buttons such as "Call Alex".':`Staat op knoppen zoals "Bel Alex".`,"Your phone number":`Je telefoonnummer`,"As you want people to read it. It shows on every page, and behind the Call button.":`Zoals je wilt dat mensen het lezen. Het staat op elke pagina en achter de knop Bel.`,"Your WhatsApp number":`Je nummer voor WhatsApp`,"Leave it empty and there are no WhatsApp buttons on the website.":`Laat je het leeg, dan staan er geen WhatsApp-knoppen op de website.`,"Your mail address":`Je mailadres`,"It is never printed on the website, so spammers cannot find it. A visitor gets it by pressing a button.":`Het staat nergens leesbaar op de website, zodat spammers het niet vinden. Een bezoeker krijgt het door op een knop te drukken.`,"Street and number":`Straat en huisnummer`,"Chamber of Commerce number":`KvK-nummer`,"VAT number":`Btw-nummer`,"As on your invoices. Not sure? Leave it empty.":`Zoals op je facturen. Niet zeker? Laat het leeg.`,"When people can reach you":`Wanneer mensen je kunnen bereiken`,"One line per day or group of days, as you want it read.":`Eén regel per dag of groep dagen, zoals je het wilt laten lezen.`,"Towns where you work":`Plaatsen waar je werkt`,"One town per line.":`Eén plaats per regel.`,"What customers say":`Wat klanten zeggen`,"Customer review":`Review van een klant`,"Our jobs":`Onze klussen`,Job:`Klus`,"Buttons at the top":`Knoppen bovenaan`,Button:`Knop`,"Your pages on other sites":`Je pagina's op andere sites`,"About your business":`Over je bedrijf`,"What it cost":`Wat het kostte`,"What was built, and what it cost":`Wat er gebouwd is, en wat het kostte`,"The work":`Het werk`,"The AI model":`Het AI-model`,Hosting:`Hosting`,":hours hours at :rate an hour":`:hours uur à :rate per uur`,":count tokens":`:count tokens`,":amount a year, from :day":`:amount per jaar, vanaf :day`,Total:`Totaal`,":percent% discount on the work, until :day":`:percent% korting op het werk, tot :day`,"To pay":`Te betalen`,":count pieces of work have no hours yet.":`Bij :count stukken werk staan nog geen uren.`,":count pieces of work could not be priced yet.":`Voor :count stukken werk was nog geen prijs te bepalen.`,"No work has been recorded yet.":`Er is nog geen werk vastgelegd.`,"Not released yet":`Nog niet uitgebracht`,"Priced with the fixed rates of the site.":`Geprijsd met de vaste tarieven van de site.`,"Priced with the price of each day, and for some rows with the fixed rates of the site.":`Geprijsd met de prijs van elke dag, en voor een deel met de vaste tarieven van de site.`,"Priced with the price list and the euro rate of the day of each row.":`Geprijsd met de prijslijst en de eurokoers van de dag van elke regel.`,Numbers:`Cijfers`,Period:`Periode`,"The same as :period.":`Evenveel als :period.`,":count more than :period.":`:count meer dan :period.`,":count fewer than :period.":`:count minder dan :period.`,"Nothing has been counted in this period yet. As soon as people visit the site, you will see it here.":`In deze periode is er nog niets geteld. Zodra mensen de site bezoeken, zie je het hier.`,"Together they looked at :count pages.":`Samen bekeken ze :count pagina's.`,"Requests through the site":`Aanvragen via de site`,":count became a job.":`:count werd een klus.`,":count still wait for an answer.":`:count wachten nog op antwoord.`,"To the requests":`Naar de aanvragen`,"Taps on Call":`Tikken op Bel`,"Taps on WhatsApp":`Tikken op WhatsApp`,"Visitors per month":`Bezoekers per maand`,"Visitors per day":`Bezoekers per dag`,"Busiest: :when, with :count visitors.":`Het drukst: :when, met :count bezoekers.`,"Most viewed pages":`Meest bekeken pagina's`,":count times":`:count keer`,"How people find you":`Hoe mensen je vinden`,"What the requests were about":`Waar de aanvragen over gingen`,"Most read articles":`Meest gelezen artikelen`,":count messages of spam or advertising were kept away from you.":`:count berichten van spam of reclame zijn bij je weggehouden.`,"Visitors are counted without cookies. Search robots, and you yourself when you are logged in, are not counted.":`Bezoekers worden geteld zonder cookies. Zoekrobots en jijzelf, als je bent ingelogd, tellen niet mee.`,"Need help? Message :name":`Hulp nodig? App :name`,"Need help?":`Hulp nodig?`,"View the site":`Bekijk de site`,Updates:`Updates`,"What changed on your website":`Wat er op je website veranderd is`,"No changes recorded yet.":`Er is nog niets bijgehouden.`,Requests:`Aanvragen`,Waiting:`Wachtend`,Handled:`Afgehandeld`,Other:`Overig`,Spam:`Spam`,"Note saved.":`Notitie bewaard.`,"Moved.":`Verplaatst.`,"Blocked.":`Geblokkeerd.`,"The block is lifted.":`De blokkade is opgeheven.`,"This could not be done.":`Dit kon niet worden gedaan.`,"The mail about this request could not be sent.":`De mail over deze aanvraag kon niet worden verstuurd.`,Where:`Waar`,Call:`Bel`,Mail:`Mail`,"Back to waiting":`Terug naar wachtend`,"It became a job":`Het is een klus geworden`,"No job":`Geen klus`,"A note for yourself":`Een notitie voor jezelf`,Screening:`Screening`,"It is a real request":`Dit is een echte aanvraag`,"This is not a request":`Dit is geen aanvraag`,"Block this address":`Blokkeer dit e-mailadres`,"Block its domain":`Blokkeer het domein`,"Block this number":`Blokkeer dit nummer`,"Block the sender address":`Blokkeer het adres van de afzender`,"Blocked senders":`Geblokkeerde afzenders`,until:`tot`,"What it brought in":`Wat het opleverde`,"The last :days days":`De laatste :days dagen`,requests:`aanvragen`,"became a job":`werden een klus`,"kept away by the screening":`tegengehouden door de screening`,"Ways in":`Manieren om binnen te komen`,About:`Waarover`,"Where the buttons are pressed":`Waar op de knoppen wordt gedrukt`,Remove:`Verwijderen`,"Add a picture":`Een foto toevoegen`,Open:`Openen`,"Created.":`Aangemaakt.`,"Deleted.":`Verwijderd.`,Language:`Taal`,"What this account sees":`Wat dit account ziet`,"What its rights give":`Wat zijn rechten geven`,"The simple manager":`De simpele manager`,"The whole manager":`De hele manager`,"Hi :name!":`Hoi :name!`,"What would you like to do today? Take your time and pick one.":`Wat wil je vandaag doen? Neem je tijd en kies er één.`,"Show the tour the next time this account opens the manager":`Toon de rondleiding de volgende keer dat dit account de manager opent`,"Hi :name! Welcome!":`Hoi :name! Welkom!`,"I will show you around in a few small steps. Looking around cannot break anything, and you can stop whenever you like: press the cross.":`Ik laat je in een paar kleine stapjes zien waar alles staat. Rondkijken kan niks stuk maken, en je kunt altijd stoppen: druk op het kruisje.`,"This is the menu":`Dit is het menu`,"Everything you can do lives here. Press a name and you are there.":`Alles wat je kunt doen staat hier. Druk op een naam en je bent er.`,"Your start page":`Je startpagina`,"Lost? Press Dashboard, at the top of the menu, and you are back here. Nice and calm.":`Even kwijt? Druk op Dashboard, bovenaan het menu, en je bent weer hier. Lekker rustig.`,"Write news":`Nieuws schrijven`,"Here you write articles and news for your website. Keep it as a draft until you are happy, then put it online.":`Hier schrijf je berichten en nieuws voor je website. Laat het een concept tot je tevreden bent, en zet het dan online.`,"Your photos":`Je foto's`,"All photos and files live here. Upload them once and use them in posts and pages.":`Alle foto's en bestanden staan hier. Upload ze één keer en gebruik ze in berichten en pagina's.`,"Your pages":`Je pagina's`,"Change the texts and photos of the pages of your website here.":`Pas hier de teksten en foto's van de pagina's van je website aan.`,"Changed your mind?":`Bedacht je het anders?`,"Every time you save a post or a page I keep the old version. You can always put an earlier one back.":`Elke keer dat je een bericht of pagina bewaart, bewaar ik de oude versie. Je kunt altijd een eerdere terugzetten.`,"Something went wrong?":`Gaat er iets mis?`,"A message tells you what. Read it, fix it and try again. Nothing is deleted without asking you first.":`Een melding vertelt wat. Lees hem, los het op en probeer het nog eens. Er wordt niks verwijderd zonder dat ik het eerst vraag.`,"Your own corner":`Je eigen hoekje`,"Here you choose your language and your colours, and change your password.":`Hier kies je je taal en je kleuren, en verander je je wachtwoord.`,"That is it!":`Dat was het!`,"Want to see this again? Press Show the tour in the menu. Have fun!":`Wil je dit nog eens zien? Druk op Rondleiding tonen in het menu. Veel plezier!`,"Stop the tour":`Rondleiding stoppen`,Tour:`Rondleiding`,"The tour":`De rondleiding`,"Show the tour":`Rondleiding tonen`,Done:`Klaar`},Zu={};function Qu(e){Zu=e.toLowerCase().startsWith(`nl`)?Xu:{}}function X(e,t){let n=Zu[e]??e;return t?n.replace(/:(\w+)/g,(e,n)=>n in t?String(t[n]):e):n}var $u=[`d`],ed=I({__name:`Icon`,props:{name:{},big:{type:Boolean}},setup(e){let t={home:`M3 11l9-8 9 8v9a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z`,file:`M7 3h7l5 5v13H7zM14 3v5h5`,image:`M4 5h16v14H4zM4 16l5-5 4 4 3-3 4 4M9 9h.01`,users:`M16 20v-1a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v1M10 11a3 3 0 1 0 0-6 3 3 0 0 0 0 6M20 20v-1a3 3 0 0 0-2-2.8M16 5.2a3 3 0 0 1 0 5.6`,group:`M3 7h18v12H3zM8 7V5h8v2`,chart:`M4 20V10M10 20V4M16 20v-8M22 20H2`,shield:`M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z`,star:`M12 3l2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1L3.2 9.5l6.1-.9z`,tag:`M3 12V4h8l10 10-8 8zM7.5 8h.01`,link:`M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1`,cog:`M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6M19 12a7 7 0 0 0-.1-1.2l2-1.5-2-3.4-2.3.9a7 7 0 0 0-2-1.2L14.2 3h-4l-.4 2.6a7 7 0 0 0-2 1.2l-2.3-.9-2 3.4 2 1.5A7 7 0 0 0 5 12c0 .4 0 .8.1 1.2l-2 1.5 2 3.4 2.3-.9a7 7 0 0 0 2 1.2l.4 2.6h4l.4-2.6a7 7 0 0 0 2-1.2l2.3.9 2-3.4-2-1.5c.1-.4.1-.8.1-1.2`};return(n,r)=>e.name&&t[e.name]?(B(),V(`svg`,{key:0,class:D(e.big?`h-8 w-8 shrink-0`:`h-4 w-4 shrink-0`),viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.8`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"aria-hidden":`true`},[U(`path`,{d:t[e.name]},null,8,$u)],2)):K(``,!0)}}),td=[`href`],Z=I({__name:`Link`,props:{href:{}},setup(e){function t(e,t){e.metaKey||e.ctrlKey||e.shiftKey||e.button!==0||(e.preventDefault(),c4(t))}return(n,r)=>(B(),V(`a`,{href:e.href,onClick:r[0]||=n=>t(n,e.href)},[Ca(n.$slots,`default`)],8,td))}}),nd={key:0,class:`mx-auto max-w-3xl pt-4`},rd={class:`font-display text-3xl font-bold`},id={class:`mb-8 mt-2 text-lg text-muted`},ad={class:`grid gap-4 sm:grid-cols-2`},od={class:`flex items-start justify-between`},sd={key:0,class:`m-badge`,"aria-hidden":`true`},cd={class:`text-xl font-bold`},ld={key:0,class:`text-muted`},ud={key:1,class:`text-muted`},dd={key:0,class:`mt-8 flex flex-wrap items-center gap-3`},fd=[`href`],pd=[`href`],md={class:`font-display mb-6 text-2xl font-bold`},hd={class:`mb-4 text-muted`},gd={class:`grid gap-3 sm:grid-cols-2 lg:grid-cols-3`},_d=I({__name:`Dashboard`,props:{navigation:{},facts:{},help:{},site:{}},setup(e){function t(e){return e.icon?e.icon:e.href.endsWith(`/media`)?`image`:e.href.endsWith(`/posts`)||e.href.endsWith(`/pages`)?`file`:`star`}let n=J.view===`simple`,r=(J.user?.name??``).split(` `)[0];return(i,a)=>n?(B(),V(`div`,nd,[U(`h1`,rd,O(N(X)(`Hi :name!`,{name:N(r)})),1),U(`p`,id,O(N(X)(`What would you like to do today? Take your time and pick one.`)),1),U(`div`,ad,[(B(!0),V(R,null,L(e.navigation,n=>(B(),H(Z,{key:n.href,href:n.href,class:`m-card m-tile`},{default:P(()=>[U(`span`,od,[W(ed,{name:t(n),big:``,class:`text-brand`},null,8,[`name`]),e.facts?.[n.href]?.badge?(B(),V(`span`,sd,O(e.facts[n.href].badge),1)):K(``,!0)]),U(`span`,cd,O(N(X)(n.label)),1),e.facts?.[n.href]?.summary?(B(),V(`span`,ld,O(e.facts[n.href].summary),1)):n.hint?(B(),V(`span`,ud,O(N(X)(n.hint)),1)):K(``,!0)]),_:2},1032,[`href`]))),128))]),e.help||e.site?(B(),V(`div`,dd,[e.help?(B(),V(`a`,{key:0,href:e.help.link,target:`_blank`,rel:`noopener`,class:`m-btn m-btn-secondary`},O(e.help.name?N(X)(`Need help? Message :name`,{name:e.help.name}):N(X)(`Need help?`)),9,fd)):K(``,!0),e.site?(B(),V(`a`,{key:1,href:e.site,target:`_blank`,rel:`noopener`,class:`m-btn m-btn-secondary`},O(N(X)(`View the site`)),9,pd)):K(``,!0)])):K(``,!0)])):(B(),V(R,{key:1},[U(`h1`,md,O(N(X)(`Dashboard`)),1),U(`p`,hd,O(N(J).user?.name),1),U(`div`,gd,[(B(!0),V(R,null,L(e.navigation,e=>(B(),H(Z,{key:e.href,href:e.href,class:`m-card block p-5 font-semibold transition hover:border-brand`},{default:P(()=>[G(O(N(X)(e.label)),1)]),_:2},1032,[`href`]))),128))])],64))}}),vd={class:`m-card max-w-xl p-6`},yd={class:`text-sm`},bd=I({__name:`Fallback`,setup(e){return(e,t)=>(B(),V(`div`,vd,[U(`p`,yd,O(N(X)(`This page has no screen in the manager yet.`)),1),W(Z,{href:N(J).base,class:`m-btn m-btn-secondary mt-4`},{default:P(()=>[G(O(N(X)(`Go to the dashboard`)),1)]),_:1},8,[`href`])]))}}),xd={class:`grid min-h-screen place-items-center px-4`},Sd=[`src`],Cd={class:`font-display text-2xl font-bold`},wd={class:`mt-1 text-sm text-muted`},Td={class:`mt-6`},Ed={for:`email`,class:`m-label`},Dd={key:0,class:`m-error`},Od={class:`mt-4`},kd={for:`password`,class:`m-label`},Ad={key:0,class:`m-error`},jd={key:0,class:`mt-4`},Md={key:0,class:`m-error`},Nd={key:1,class:`mt-4`},Pd=[`for`],Fd=[`id`,`onUpdate:modelValue`,`type`,`autocomplete`,`required`],Id={key:0,class:`m-error`},Ld={class:`mt-4 flex items-center gap-2 text-sm text-muted`},Rd=[`disabled`],zd=I({__name:`Login`,setup(e){let t=J.login_fields??[],n=Yu({email:``,password:``,remember:!1,...Object.fromEntries(t.map(e=>[e.name,``]))}),r=M(null),i;aa(()=>{let e=t.find(e=>e.type===`turnstile`);if(!e)return;let a=()=>{i=window.turnstile.render(r.value,{sitekey:e.site_key,callback:t=>n.values[e.name]=t})};if(window.turnstile)a();else{let e=document.createElement(`script`);e.src=`https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit`,e.async=!0,e.onload=a,document.head.appendChild(e)}});async function a(){let e=await n.send(`post`,J.base+`/login`);e?window.location.assign(e.redirect):(n.values.password=``,i!==void 0&&window.turnstile.reset(i),t.filter(e=>e.type===`turnstile`).forEach(e=>n.values[e.name]=``))}return(e,i)=>(B(),V(`div`,xd,[U(`form`,{class:`m-card w-full max-w-sm p-7`,onSubmit:Du(a,[`prevent`])},[N(J).logo?(B(),V(`img`,{key:0,src:N(J).logo,alt:``,class:`mb-4 h-9 w-auto`},null,8,Sd)):K(``,!0),U(`h1`,Cd,O(N(J).name),1),U(`p`,wd,O(N(X)(`Log in to manage the site.`)),1),U(`div`,Td,[U(`label`,Ed,O(N(X)(`Email`)),1),F(U(`input`,{id:`email`,"onUpdate:modelValue":i[0]||=e=>N(n).values.email=e,type:`email`,autocomplete:`username`,required:``,autofocus:``,class:`m-input`},null,512),[[q,N(n).values.email]]),N(n).errors.email?(B(),V(`p`,Dd,O(N(n).errors.email),1)):K(``,!0)]),U(`div`,Od,[U(`label`,kd,O(N(X)(`Password`)),1),F(U(`input`,{id:`password`,"onUpdate:modelValue":i[1]||=e=>N(n).values.password=e,type:`password`,autocomplete:`current-password`,required:``,class:`m-input`},null,512),[[q,N(n).values.password]]),N(n).errors.password?(B(),V(`p`,Ad,O(N(n).errors.password),1)):K(``,!0)]),(B(!0),V(R,null,L(N(t),e=>(B(),V(R,{key:e.name},[e.type===`turnstile`?(B(),V(`div`,jd,[U(`div`,{ref_for:!0,ref:e=>r.value=e},null,512),N(n).errors[e.name]?(B(),V(`p`,Md,O(N(n).errors[e.name]),1)):K(``,!0)])):(B(),V(`div`,Nd,[U(`label`,{for:`login-`+e.name,class:`m-label`},O(N(X)(e.label??e.name)),9,Pd),F(U(`input`,{id:`login-`+e.name,"onUpdate:modelValue":t=>N(n).values[e.name]=t,type:e.type===`password`||e.type===`number`?e.type:`text`,autocomplete:e.autocomplete,required:e.required,class:`m-input`},null,8,Fd),[[xu,N(n).values[e.name]]]),N(n).errors[e.name]?(B(),V(`p`,Id,O(N(n).errors[e.name]),1)):K(``,!0)]))],64))),128)),U(`label`,Ld,[F(U(`input`,{"onUpdate:modelValue":i[2]||=e=>N(n).values.remember=e,type:`checkbox`},null,512),[[pu,N(n).values.remember]]),G(` `+O(N(X)(`Keep me logged in`)),1)]),U(`button`,{type:`submit`,class:`m-btn m-btn-primary mt-6 w-full justify-center`,disabled:N(n).busy},O(N(n).busy?N(X)(`Logging in…`):N(X)(`Log in`)),9,Rd)],32)]))}}),Bd={class:`m-card max-h-[85vh] w-full max-w-3xl overflow-y-auto p-5`,role:`dialog`,"aria-modal":`true`},Vd={class:`mb-4 flex items-center justify-between`},Hd={class:`font-display text-lg font-bold`},Ud={key:0,class:`text-sm text-muted`},Wd={key:1,class:`text-sm text-muted`},Gd={key:2,class:`grid grid-cols-2 gap-3 sm:grid-cols-3 md:grid-cols-4`},Kd=[`onClick`],qd=[`src`,`alt`],Jd={class:`block truncate px-2 py-1 text-xs`},Yd=I({__name:`MediaPicker`,emits:[`pick`,`close`],setup(e,{emit:t}){let n=t,r=M([]),i=M(!0);return aa(async()=>{try{r.value=(await Y.get(`${J.base}/media/items`)).items.filter(e=>e.is_image)}finally{i.value=!1}}),(e,t)=>(B(),V(`div`,{class:`fixed inset-0 z-50 grid place-items-center bg-black/60 p-4`,onClick:t[1]||=Du(e=>n(`close`),[`self`])},[U(`div`,Bd,[U(`div`,Vd,[U(`h2`,Hd,O(N(X)(`Choose an image`)),1),U(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:t[0]||=e=>n(`close`)},O(N(X)(`Cancel`)),1)]),i.value?(B(),V(`p`,Ud,O(N(X)(`Loading…`)),1)):r.value.length?(B(),V(`div`,Gd,[(B(!0),V(R,null,L(r.value,e=>(B(),V(`button`,{key:e.id,type:`button`,class:`overflow-hidden rounded-lg border border-line text-left hover:border-brand`,onClick:t=>n(`pick`,e.url,e)},[U(`img`,{src:e.url,alt:e.name,loading:`lazy`,class:`aspect-square w-full object-cover`},null,8,qd),U(`span`,Jd,O(e.name),1)],8,Kd))),128))])):(B(),V(`p`,Wd,O(N(X)(`No images yet.`)),1))])]))}}),Xd=[`aria-label`],Zd=[`disabled`,`title`],Qd=[`disabled`,`title`],$d=[`disabled`,`title`],ef=[`disabled`,`title`],tf=[`disabled`,`title`],nf=[`disabled`,`title`],rf=[`disabled`],af={class:`ml-auto flex gap-1`},of=[`id`,`value`,`rows`,`required`,`maxlength`],sf={key:0,class:`m-input min-h-40 overflow-auto`},cf={key:0,class:`text-sm text-muted`},lf=[`innerHTML`],uf=I({__name:`MarkdownEditor`,props:{modelValue:{},id:{},rows:{},required:{type:Boolean},maxlength:{}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,i=M(null),a=M(`write`),o=M(``),s=M(!1),c=M(!1),l=J.permissions.includes(`media.view`);function u(e,t=e,a=``){let o=i.value,s=o.selectionStart,c=o.selectionEnd,l=n.modelValue.slice(s,c)||a,u=n.modelValue.slice(0,s)+e+l+t+n.modelValue.slice(c);r(`update:modelValue`,u),requestAnimationFrame(()=>{o.focus(),o.setSelectionRange(s+e.length,s+e.length+l.length)})}function d(e){let t=i.value,a=n.modelValue.lastIndexOf(` `,t.selectionStart-1)+1,o=t.selectionEnd,s=n.modelValue.slice(a,o).split(` `).map(t=>e+t).join(` `);r(`update:modelValue`,n.modelValue.slice(0,a)+s+n.modelValue.slice(o)),requestAnimationFrame(()=>t.focus())}function f(e,t){c.value=!1;let a=(t?.alt||t?.name||``).replace(/[[\]]/g,``),o=i.value,s=o.selectionStart,l=`![${a}](${e})`;r(`update:modelValue`,n.modelValue.slice(0,s)+l+n.modelValue.slice(o.selectionEnd)),requestAnimationFrame(()=>{o.focus(),o.setSelectionRange(s+l.length,s+l.length)})}async function p(e){if(a.value=e,e===`preview`){s.value=!0;try{o.value=(await Y.post(`${J.base}/markdown`,{text:n.modelValue})).html}finally{s.value=!1}}}return(t,n)=>(B(),V(`div`,null,[U(`div`,{class:`mb-2 flex flex-wrap items-center gap-1`,role:`toolbar`,"aria-label":N(X)(`Formatting`)},[U(`button`,{type:`button`,class:`m-btn m-btn-secondary !px-2 !py-1 font-bold`,disabled:a.value===`preview`,title:N(X)(`Bold`),onClick:n[0]||=e=>u(`**`,`**`,N(X)(`bold`))},`B`,8,Zd),U(`button`,{type:`button`,class:`m-btn m-btn-secondary !px-2 !py-1 italic`,disabled:a.value===`preview`,title:N(X)(`Italic`),onClick:n[1]||=e=>u(`*`,`*`,N(X)(`italic`))},`I`,8,Qd),U(`button`,{type:`button`,class:`m-btn m-btn-secondary !px-2 !py-1`,disabled:a.value===`preview`,title:N(X)(`Heading`),onClick:n[2]||=e=>d(`## `)},`H`,8,$d),U(`button`,{type:`button`,class:`m-btn m-btn-secondary !px-2 !py-1`,disabled:a.value===`preview`,title:N(X)(`List`),onClick:n[3]||=e=>d(`- `)},`•`,8,ef),U(`button`,{type:`button`,class:`m-btn m-btn-secondary !px-2 !py-1`,disabled:a.value===`preview`,title:N(X)(`Quote`),onClick:n[4]||=e=>d(`> `)},`”`,8,tf),U(`button`,{type:`button`,class:`m-btn m-btn-secondary !px-2 !py-1`,disabled:a.value===`preview`,title:N(X)(`Link`),onClick:n[5]||=e=>u(`[`,`](https://)`,N(X)(`text`))},`🔗`,8,nf),N(l)?(B(),V(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary !px-2 !py-1`,disabled:a.value===`preview`,onClick:n[6]||=e=>c.value=!0},O(N(X)(`Photo`)),9,rf)):K(``,!0),U(`span`,af,[U(`button`,{type:`button`,class:D([`m-btn !px-3 !py-1`,a.value===`write`?`m-btn-primary`:`m-btn-secondary`]),onClick:n[7]||=e=>p(`write`)},O(N(X)(`Write`)),3),U(`button`,{type:`button`,class:D([`m-btn !px-3 !py-1`,a.value===`preview`?`m-btn-primary`:`m-btn-secondary`]),onClick:n[8]||=e=>p(`preview`)},O(N(X)(`Preview`)),3)])],8,Xd),F(U(`textarea`,{id:e.id,ref_key:`area`,ref:i,value:e.modelValue,rows:e.rows??14,required:e.required,maxlength:e.maxlength,class:`m-input font-mono`,onInput:n[9]||=e=>r(`update:modelValue`,e.target.value)},null,40,of),[[tl,a.value===`write`]]),a.value===`preview`?(B(),V(`div`,sf,[s.value?(B(),V(`p`,cf,O(N(X)(`Loading…`)),1)):(B(),V(`div`,{key:1,class:`m-prose`,innerHTML:o.value},null,8,lf))])):K(``,!0),c.value?(B(),H(Yd,{key:1,onPick:f,onClose:n[10]||=e=>c.value=!1})):K(``,!0)]))}}),df={class:`m-card mt-6 max-w-3xl p-5`},ff={class:`font-display text-lg font-bold`},pf={key:0,class:`mt-2 text-sm text-muted`},mf={key:1,class:`mt-2 text-sm text-muted`},hf={key:2,class:`mt-3 divide-y divide-line`},gf={class:`flex flex-wrap items-center justify-between gap-2`},_f=[`aria-expanded`,`onClick`],vf={class:`font-semibold`},yf={key:0,class:`text-muted`},bf={key:1,class:`m-badge ml-2`},xf={class:`block text-xs text-muted`},Sf=[`onClick`],Cf={key:0,class:`mt-2 space-y-2 text-sm`},wf={class:`text-xs font-semibold uppercase tracking-wide text-muted`},Tf={class:`whitespace-pre-wrap break-words`},Ef=I({__name:`RevisionsPanel`,props:{type:{},id:{}},setup(e){let t=e,n=M([]),r=M(!1),i=M(null),a=M(!0),o=`${J.base}/revisions/${t.type}/${t.id}`;aa(async()=>{try{let e=await Y.get(o);n.value=e.revisions,r.value=e.can_restore}finally{a.value=!1}});async function s(e){window.confirm(X(`Put this version back? The text now is kept in the history.`))&&(await Y.post(`${o}/${e.id}/restore`),$(X(`The earlier version is back.`)),await l4())}let c=e=>new Date(e).toLocaleString(J.locale||void 0);return(e,t)=>(B(),V(`section`,df,[U(`h2`,ff,O(N(X)(`History`)),1),a.value?(B(),V(`p`,pf,O(N(X)(`Loading…`)),1)):n.value.length?(B(),V(`ul`,hf,[(B(!0),V(R,null,L(n.value,e=>(B(),V(`li`,{key:e.id,class:`py-3`},[U(`div`,gf,[U(`button`,{type:`button`,class:`text-left text-sm`,"aria-expanded":i.value===e.id,onClick:t=>i.value=i.value===e.id?null:e.id},[U(`span`,vf,O(c(e.created_at)),1),e.user?(B(),V(`span`,yf,` · `+O(e.user),1)):K(``,!0),e.current?(B(),V(`span`,bf,O(N(X)(`Now`)),1)):K(``,!0),U(`span`,xf,O(e.changed.join(`, `)),1)],8,_f),r.value&&!e.current?(B(),V(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary`,onClick:t=>s(e)},O(N(X)(`Put back`)),9,Sf)):K(``,!0)]),i.value===e.id?(B(),V(`dl`,Cf,[(B(!0),V(R,null,L(e.values,(e,t)=>(B(),V(`div`,{key:t},[U(`dt`,wf,O(t),1),U(`dd`,Tf,O(e),1)]))),128))])):K(``,!0)]))),128))])):(B(),V(`p`,mf,O(N(X)(`Nothing here yet.`)),1))]))}}),Df={key:0,class:`m-card mt-6 p-4`},Of={class:`mb-3 font-semibold`},kf={key:0,class:`mb-3 text-xs text-muted`},Af={class:`flex items-center justify-between gap-3`},jf={class:`font-medium`},Mf=[`disabled`,`onClick`],Nf={class:`mt-1 text-xs text-muted`},Pf={key:0,class:`mt-1 text-xs`},Ff=[`href`],If=I({__name:`SharePanel`,props:{id:{}},setup(e){let t=e,n=M([]),r=M(!1),i=M(``);async function a(){let e=await Y.get(`${J.base}/posts/${t.id}/sharing`);n.value=e.platforms,r.value=e.live}async function o(e){i.value=e.platform;try{$((await Y.post(`${J.base}/posts/${t.id}/share`,{platform:e.platform})).dry_run?X(`Dry run: nothing was sent.`):X(`Shared.`))}catch(e){if(!(e instanceof Gu)||e.status!==422)throw e;$(e.body?.message??X(`This could not be done.`),!0)}finally{i.value=``,await a()}}return aa(a),(e,t)=>n.value.length?(B(),V(`section`,Df,[U(`h2`,Of,O(N(X)(`Share`)),1),r.value?K(``,!0):(B(),V(`p`,kf,O(N(X)(`Dry run: nothing is sent to the networks.`)),1)),(B(!0),V(R,null,L(n.value,e=>(B(),V(`div`,{key:e.platform,class:`mb-3 border-t border-line pt-3 first:border-0 first:pt-0`},[U(`div`,Af,[U(`p`,jf,O(e.label),1),U(`button`,{type:`button`,class:`m-btn m-btn-secondary`,disabled:!e.connected||i.value===e.platform,onClick:t=>o(e)},O(e.connected?N(X)(`Share now`):N(X)(`Not connected`)),9,Mf)]),U(`p`,Nf,O(e.preview),1),e.last?(B(),V(`p`,Pf,[e.last.status===`failed`?(B(),V(R,{key:0},[G(O(N(X)(`Failed`))+`: `+O(e.last.error),1)],64)):(B(),V(R,{key:1},[G(O(e.last.dry_run?N(X)(`Dry run`):N(X)(`Shared`))+` · `+O(e.last.shared_at),1)],64)),e.last.url?(B(),V(`a`,{key:2,href:e.last.url,target:`_blank`,rel:`noopener`,class:`ml-2 underline`},O(N(X)(`View`)),9,Ff)):K(``,!0)])):K(``,!0)]))),128))])):K(``,!0)}}),Lf={class:`mb-6 flex items-center justify-between gap-3`},Rf={class:`font-display text-2xl font-bold`},zf={for:`title`,class:`m-label`},Bf={key:0,class:`m-error`},Vf={class:`grid gap-5 sm:grid-cols-2`},Hf={for:`slug`,class:`m-label`},Uf={key:0,class:`m-error`},Wf={for:`category`,class:`m-label`},Gf={id:`categories`},Kf=[`value`],qf={for:`excerpt`,class:`m-label`},Jf={key:0,class:`m-error`},Yf={for:`body`,class:`m-label`},Xf={key:0,class:`m-error`},Zf={class:`grid gap-5 sm:grid-cols-2`},Qf={for:`cover`,class:`m-label`},$f={class:`flex gap-2`},ep={for:`tags`,class:`m-label`},tp={id:`known-tags`},np=[`value`],rp={class:`flex flex-wrap items-center gap-6`},ip={class:`flex items-center gap-2 text-sm`},ap={key:0,class:`flex items-center gap-2 text-sm`},op={key:1},sp={for:`at`,class:`m-label`},cp=[`disabled`],lp=I({__name:`PostForm`,props:{post:{},categories:{},known_tags:{}},setup(e){let t=e.post,n=Yu({title:t?.title??``,slug:t?.slug??``,excerpt:t?.excerpt??``,body:t?.body??``,cover_image:t?.cover_image??``,category:t?.category??``,tags:t?.tags??[],is_featured:t?.is_featured??!1,is_published:t?.is_published??!1,published_at:t?.published_at??``}),r=M(!1),i=(t?.tags??[]).join(`, `);async function a(){n.values.tags=i.split(`,`).map(e=>e.trim()).filter(Boolean),(t?await n.send(`put`,`${J.base}/posts/${t.id}`):await n.send(`post`,`${J.base}/posts`))&&($(X(t?`Saved.`:`Created.`)),c4(`${J.base}/posts`))}return(o,s)=>(B(),V(R,null,[U(`div`,Lf,[U(`h1`,Rf,O(N(t)?N(t).title:N(X)(`New post`)),1),W(Z,{href:N(J).base+`/posts`,class:`m-btn m-btn-secondary`},{default:P(()=>[G(O(N(X)(`Back`)),1)]),_:1},8,[`href`])]),U(`form`,{class:`m-card max-w-3xl space-y-5 p-5`,onSubmit:Du(a,[`prevent`])},[U(`div`,null,[U(`label`,zf,O(N(X)(`Title`)),1),F(U(`input`,{id:`title`,"onUpdate:modelValue":s[0]||=e=>N(n).values.title=e,required:``,maxlength:`255`,class:`m-input`},null,512),[[q,N(n).values.title]]),N(n).errors.title?(B(),V(`p`,Bf,O(N(n).errors.title),1)):K(``,!0)]),U(`div`,Vf,[U(`div`,null,[U(`label`,Hf,O(N(X)(`Address (slug)`)),1),F(U(`input`,{id:`slug`,"onUpdate:modelValue":s[1]||=e=>N(n).values.slug=e,maxlength:`255`,class:`m-input`},null,512),[[q,N(n).values.slug]]),N(n).errors.slug?(B(),V(`p`,Uf,O(N(n).errors.slug),1)):K(``,!0)]),U(`div`,null,[U(`label`,Wf,O(N(X)(`Category`)),1),F(U(`input`,{id:`category`,"onUpdate:modelValue":s[2]||=e=>N(n).values.category=e,list:`categories`,maxlength:`60`,class:`m-input`},null,512),[[q,N(n).values.category]]),U(`datalist`,Gf,[(B(!0),V(R,null,L(e.categories,e=>(B(),V(`option`,{key:e,value:e},null,8,Kf))),128))])])]),U(`div`,null,[U(`label`,qf,O(N(X)(`Summary`)),1),F(U(`textarea`,{id:`excerpt`,"onUpdate:modelValue":s[3]||=e=>N(n).values.excerpt=e,rows:`2`,maxlength:`500`,class:`m-input`},null,512),[[q,N(n).values.excerpt]]),N(n).errors.excerpt?(B(),V(`p`,Jf,O(N(n).errors.excerpt),1)):K(``,!0)]),U(`div`,null,[U(`label`,Yf,O(N(X)(`Text (Markdown)`)),1),W(uf,{id:`body`,modelValue:N(n).values.body,"onUpdate:modelValue":s[4]||=e=>N(n).values.body=e,required:``},null,8,[`modelValue`]),N(n).errors.body?(B(),V(`p`,Xf,O(N(n).errors.body),1)):K(``,!0)]),U(`div`,Zf,[U(`div`,null,[U(`label`,Qf,O(N(X)(`Cover image`)),1),U(`div`,$f,[F(U(`input`,{id:`cover`,"onUpdate:modelValue":s[5]||=e=>N(n).values.cover_image=e,maxlength:`2048`,class:`m-input`},null,512),[[q,N(n).values.cover_image]]),N(J).permissions.includes(`media.view`)?(B(),V(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary shrink-0`,onClick:s[6]||=e=>r.value=!0},O(N(X)(`Choose`)),1)):K(``,!0)])]),U(`div`,null,[U(`label`,ep,O(N(X)(`Tags (comma separated)`)),1),F(U(`input`,{id:`tags`,"onUpdate:modelValue":s[7]||=e=>j(i)?i.value=e:i=e,list:`known-tags`,class:`m-input`},null,512),[[q,N(i)]]),U(`datalist`,tp,[(B(!0),V(R,null,L(e.known_tags,e=>(B(),V(`option`,{key:e,value:e},null,8,np))),128))])])]),U(`div`,rp,[U(`label`,ip,[F(U(`input`,{"onUpdate:modelValue":s[8]||=e=>N(n).values.is_featured=e,type:`checkbox`},null,512),[[pu,N(n).values.is_featured]]),G(` `+O(N(X)(`Featured`)),1)]),N(J).permissions.includes(`posts.publish`)?(B(),V(`label`,ap,[F(U(`input`,{"onUpdate:modelValue":s[9]||=e=>N(n).values.is_published=e,type:`checkbox`},null,512),[[pu,N(n).values.is_published]]),G(` `+O(N(X)(`Publish`)),1)])):K(``,!0),N(n).values.is_published?(B(),V(`div`,op,[U(`label`,sp,O(N(X)(`Publish at`)),1),F(U(`input`,{id:`at`,"onUpdate:modelValue":s[10]||=e=>N(n).values.published_at=e,type:`datetime-local`,class:`m-input`},null,512),[[q,N(n).values.published_at]])])):K(``,!0)]),U(`button`,{type:`submit`,class:`m-btn m-btn-primary`,disabled:N(n).busy},O(N(n).busy?N(X)(`Saving…`):N(X)(`Save`)),9,cp)],32),N(t)&&N(J).permissions.includes(`sharing.publish`)?(B(),H(If,{key:0,id:N(t).id},null,8,[`id`])):K(``,!0),N(t)&&N(J).permissions.includes(`revisions.view`)?(B(),H(Ef,{key:1,type:`posts`,id:N(t).id},null,8,[`id`])):K(``,!0),r.value?(B(),H(Yd,{key:2,onPick:s[11]||=e=>{N(n).values.cover_image=e,r.value=!1},onClose:s[12]||=e=>r.value=!1})):K(``,!0)],64))}}),up={class:`mb-6 flex flex-wrap items-center justify-between gap-3`},dp={class:`font-display text-2xl font-bold`},fp={key:0,class:`m-card p-5 text-sm text-muted`},pp={key:1,class:`m-card divide-y divide-line`},mp={class:`min-w-0`},hp={class:`truncate font-semibold`},gp={class:`mt-1 flex items-center gap-2 text-xs text-muted`},_p={class:`m-badge`},vp={key:0},yp={class:`flex gap-2`},bp=[`onClick`],xp=[`onClick`],Sp=I({__name:`PostsIndex`,props:{posts:{}},setup(e){let t={draft:`Draft`,scheduled:`Scheduled`,published:`Published`};async function n(e){await Y.put(`${J.base}/posts/${e.id}/online`,{online:e.status!==`published`}),await l4()}async function r(e){window.confirm(X(`Are you sure?`))&&(await Y.delete(`${J.base}/posts/${e.id}`),$(X(`Deleted.`)),await l4())}return(i,a)=>(B(),V(R,null,[U(`div`,up,[U(`h1`,dp,O(N(X)(`Posts`)),1),N(J).permissions.includes(`posts.write`)?(B(),H(Z,{key:0,href:N(J).base+`/posts/create`,class:`m-btn m-btn-primary`},{default:P(()=>[G(O(N(X)(`New post`)),1)]),_:1},8,[`href`])):K(``,!0)]),e.posts.length?(B(),V(`ul`,pp,[(B(!0),V(R,null,L(e.posts,e=>(B(),V(`li`,{key:e.id,class:`flex flex-wrap items-center justify-between gap-3 p-4`},[U(`div`,mp,[U(`p`,hp,O(e.title),1),U(`p`,gp,[U(`span`,_p,O(N(X)(t[e.status])),1),e.category?(B(),V(`span`,vp,O(e.category),1)):K(``,!0)])]),U(`div`,yp,[N(J).permissions.includes(`posts.publish`)&&e.can_change?(B(),V(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary`,onClick:t=>n(e)},O(e.status===`published`?N(X)(`Take offline`):N(X)(`Put online`)),9,bp)):K(``,!0),e.can_change?(B(),H(Z,{key:1,href:`${N(J).base}/posts/${e.id}/edit`,class:`m-btn m-btn-secondary`},{default:P(()=>[G(O(N(X)(`Edit`)),1)]),_:1},8,[`href`])):K(``,!0),e.can_delete?(B(),V(`button`,{key:2,type:`button`,class:`m-btn m-btn-danger`,onClick:t=>r(e)},O(N(X)(`Delete`)),9,xp)):K(``,!0)])]))),128))])):(B(),V(`p`,fp,O(N(X)(`No posts yet.`)),1))],64))}}),Cp=[`src`],wp=I({__name:`Mascot`,props:{name:{},flip:{type:Boolean},size:{}},setup(e){return(t,n)=>(B(),V(`img`,{src:N(J).mascot+e.name,alt:``,class:D([`m-mascot select-none object-contain`,e.flip?`-scale-x-100`:``]),style:ve({width:(e.size??112)+`px`,height:(e.size??112)+`px`}),draggable:`false`},null,14,Cp))}}),Tp={class:`font-display mb-6 text-2xl font-bold`},Ep={for:`name`,class:`m-label`},Dp={key:0,class:`m-error`},Op={class:`m-label`},kp={class:`text-sm`},Ap={class:`m-label`},jp={class:`flex flex-wrap gap-1.5`},Mp={key:0,class:`m-badge`},Np={key:0,class:`m-badge`},Pp={key:0,class:`rounded-lg border border-line p-4`},Fp={class:`px-1.5 text-sm font-semibold`},Ip={class:`mt-1 flex flex-wrap gap-3`},Lp=[`onUpdate:modelValue`,`value`],Rp={class:`flex`},zp={key:0,class:`m-error`},Bp={key:1,class:`rounded-lg border border-line p-4`},Vp={class:`px-1.5 text-sm font-semibold`},Hp={class:`mt-1 flex flex-wrap gap-3`},Up=[`onUpdate:modelValue`,`value`],Wp={key:0,class:`m-error`},Gp={class:`space-y-4 rounded-lg border border-line p-4`},Kp={class:`px-1.5 text-sm font-semibold`},qp={class:`m-help`},Jp={for:`current_password`,class:`m-label`},Yp={key:0,class:`m-error`},Xp={for:`password`,class:`m-label`},Zp={class:`m-help`},Qp={key:0,class:`m-error`},$p={for:`password_confirmation`,class:`m-label`},em={key:2,class:`flex items-center gap-3 rounded-lg border border-line p-4`},tm={class:`text-sm font-semibold`},nm=[`disabled`],rm=I({__name:`Profile`,props:{profile:{}},setup(e){let t=e,n=Yu({name:t.profile.name,theme:t.profile.theme,locale:t.profile.locale,current_password:``,password:``,password_confirmation:``});async function r(){await n.send(`put`,J.base+`/profile`)&&($(X(`Saved.`)),(n.values.theme!==J.theme||n.values.locale!==J.locale)&&window.location.reload(),n.values.current_password=n.values.password=n.values.password_confirmation=``)}return(t,i)=>(B(),V(R,null,[U(`h1`,Tp,O(N(X)(`My account`)),1),U(`form`,{class:`m-card max-w-xl space-y-5 p-5`,onSubmit:Du(r,[`prevent`])},[U(`div`,null,[U(`label`,Ep,O(N(X)(`Name`)),1),F(U(`input`,{id:`name`,"onUpdate:modelValue":i[0]||=e=>N(n).values.name=e,type:`text`,required:``,maxlength:`255`,class:`m-input`,autocomplete:`name`},null,512),[[q,N(n).values.name]]),N(n).errors.name?(B(),V(`p`,Dp,O(N(n).errors.name),1)):K(``,!0)]),U(`div`,null,[U(`span`,Op,O(N(X)(`Email address`)),1),U(`p`,kp,O(e.profile.email),1)]),U(`div`,null,[U(`span`,Ap,O(N(X)(`What you may do`)),1),U(`p`,jp,[e.profile.is_super_admin?(B(),V(`span`,Mp,O(N(X)(`Super admin: everything`)),1)):(B(),V(R,{key:1},[(B(!0),V(R,null,L(e.profile.groups,e=>(B(),V(`span`,{key:e,class:`m-badge`},O(e),1))),128)),e.profile.groups.length?K(``,!0):(B(),V(`span`,Np,O(N(X)(`Not in a group yet`)),1))],64))])]),e.profile.themes.length?(B(),V(`fieldset`,Pp,[U(`legend`,Fp,O(N(X)(`Look`)),1),U(`div`,Ip,[(B(!0),V(R,null,L(e.profile.themes,e=>(B(),V(`label`,{key:e.key,class:D([`flex cursor-pointer items-center gap-2 rounded-lg border px-3 py-2 text-sm`,N(n).values.theme===e.key?`border-brand`:`border-line`])},[F(U(`input`,{"onUpdate:modelValue":e=>N(n).values.theme=e,type:`radio`,name:`theme`,value:e.key,class:`sr-only`},null,8,Lp),[[hu,N(n).values.theme]]),U(`span`,Rp,[(B(),V(R,null,L([`ink`,`panel`,`brand`],t=>U(`span`,{key:t,class:`h-4 w-4 border border-line`,style:ve({background:e.colors[t]})},null,4)),64))]),G(` `+O(e.label),1)],2))),128))]),N(n).errors.theme?(B(),V(`p`,zp,O(N(n).errors.theme),1)):K(``,!0)])):K(``,!0),e.profile.locales.length?(B(),V(`fieldset`,Bp,[U(`legend`,Vp,O(N(X)(`Language`)),1),U(`div`,Hp,[(B(!0),V(R,null,L(e.profile.locales,e=>(B(),V(`label`,{key:e,class:D([`flex cursor-pointer items-center gap-2 rounded-lg border px-3 py-2 text-sm`,N(n).values.locale===e?`border-brand`:`border-line`])},[F(U(`input`,{"onUpdate:modelValue":e=>N(n).values.locale=e,type:`radio`,name:`locale`,value:e,class:`sr-only`},null,8,Up),[[hu,N(n).values.locale]]),G(` `+O(e===`nl`?`Nederlands`:`English`),1)],2))),128))]),N(n).errors.locale?(B(),V(`p`,Wp,O(N(n).errors.locale),1)):K(``,!0)])):K(``,!0),U(`fieldset`,Gp,[U(`legend`,Kp,O(N(X)(`New password`)),1),U(`p`,qp,O(N(X)(`Leave empty to keep the password you have.`)),1),U(`div`,null,[U(`label`,Jp,O(N(X)(`Current password`)),1),F(U(`input`,{id:`current_password`,"onUpdate:modelValue":i[1]||=e=>N(n).values.current_password=e,type:`password`,class:`m-input`,autocomplete:`current-password`},null,512),[[q,N(n).values.current_password]]),N(n).errors.current_password?(B(),V(`p`,Yp,O(N(n).errors.current_password),1)):K(``,!0)]),U(`div`,null,[U(`label`,Xp,O(N(X)(`New password`)),1),F(U(`input`,{id:`password`,"onUpdate:modelValue":i[2]||=e=>N(n).values.password=e,type:`password`,minlength:`12`,maxlength:`200`,class:`m-input`,autocomplete:`new-password`},null,512),[[q,N(n).values.password]]),U(`p`,Zp,O(N(X)(`At least 12 characters.`)),1),N(n).errors.password?(B(),V(`p`,Qp,O(N(n).errors.password),1)):K(``,!0)]),U(`div`,null,[U(`label`,$p,O(N(X)(`New password, once more`)),1),F(U(`input`,{id:`password_confirmation`,"onUpdate:modelValue":i[3]||=e=>N(n).values.password_confirmation=e,type:`password`,maxlength:`200`,class:`m-input`,autocomplete:`new-password`},null,512),[[q,N(n).values.password_confirmation]])])]),N(J).tutorial_state?(B(),V(`div`,em,[W(wp,{name:`peek`,size:64}),U(`div`,null,[U(`p`,tm,O(N(X)(`The tour`)),1),U(`button`,{type:`button`,class:`text-sm text-brand underline`,onClick:i[4]||=e=>N(Q).tour=!0},O(N(X)(`Show the tour`)),1)])])):K(``,!0),U(`button`,{type:`submit`,class:`m-btn m-btn-primary`,disabled:N(n).busy},O(N(n).busy?N(X)(`Saving…`):N(X)(`Save`)),9,nm)],32)],64))}}),im={class:`mb-6 flex flex-wrap items-center justify-between gap-3`},am={class:`font-display text-2xl font-bold`},om={class:`grid gap-4 sm:grid-cols-2`},sm={class:`m-label`,for:`a-name`},cm={key:0,class:`m-error`},lm={class:`m-label`,for:`a-email`},um={key:0,class:`m-error`},dm={class:`m-label`,for:`a-pass`},fm=[`required`],pm={class:`m-help`},mm={key:0,class:`m-error`},hm={key:0},gm={class:`m-label`},_m=[`value`,`disabled`],vm={key:0,class:`ml-auto flex items-center gap-1 text-xs text-muted`},ym=[`value`],bm={class:`m-help`},xm={key:1},Sm={class:`m-label`},Cm={class:`flex items-center gap-2 py-0.5 text-sm`},wm={class:`flex items-center gap-2 py-0.5 text-sm`},Tm={class:`flex items-center gap-2 py-0.5 text-sm`},Em={class:`flex items-center gap-2 text-sm`},Dm={class:`flex gap-2`},Om=[`disabled`],km={class:`m-card divide-y divide-line`},Am={class:`min-w-0`},jm={class:`truncate font-semibold`},Mm={key:0,class:`text-xs font-normal text-muted`},Nm={class:`truncate text-xs text-muted`},Pm={class:`mt-1 flex flex-wrap gap-1`},Fm={key:0,class:`m-badge`},Im=[`title`],Lm={class:`flex gap-2`},Rm=[`onClick`],zm=[`onClick`],Bm=I({__name:`AccountsIndex`,props:{accounts:{},groups:{}},setup(e){let t=M(null),n=Yu({name:``,email:``,password:``,groups:[],primary_group:0,view:``,tutorial:!1});function r(e){t.value=e,n.errors={},n.values.name=e===`new`?``:e.name,n.values.email=e===`new`?``:e.email,n.values.password=``,n.values.groups=e===`new`?[]:e.groups.map(e=>e.id),n.values.primary_group=e===`new`?0:e.groups.find(e=>e.primary)?.id??0,n.values.view=e===`new`?``:e.view??``,n.values.tutorial=e!==`new`&&e.tutorial===`pending`}async function i(){let e=t.value;(e===`new`?await n.send(`post`,`${J.base}/accounts`):await n.send(`put`,`${J.base}/accounts/${e.id}`))&&($(X(`Saved.`)),t.value=null,await l4())}async function a(e){window.confirm(X(`Are you sure?`))&&(await Y.delete(`${J.base}/accounts/${e.id}`),$(X(`Deleted.`)),await l4())}return(o,s)=>(B(),V(R,null,[U(`div`,im,[U(`h1`,am,O(N(X)(`Accounts`)),1),U(`button`,{type:`button`,class:`m-btn m-btn-primary`,onClick:s[0]||=e=>r(`new`)},O(N(X)(`New account`)),1)]),t.value?(B(),V(`form`,{key:0,class:`m-card mb-6 max-w-2xl space-y-4 p-5`,onSubmit:Du(i,[`prevent`])},[U(`div`,om,[U(`div`,null,[U(`label`,sm,O(N(X)(`Name`)),1),F(U(`input`,{id:`a-name`,"onUpdate:modelValue":s[1]||=e=>N(n).values.name=e,required:``,maxlength:`255`,class:`m-input`},null,512),[[q,N(n).values.name]]),N(n).errors.name?(B(),V(`p`,cm,O(N(n).errors.name),1)):K(``,!0)]),U(`div`,null,[U(`label`,lm,O(N(X)(`Email address`)),1),F(U(`input`,{id:`a-email`,"onUpdate:modelValue":s[2]||=e=>N(n).values.email=e,type:`email`,required:``,maxlength:`255`,class:`m-input`},null,512),[[q,N(n).values.email]]),N(n).errors.email?(B(),V(`p`,um,O(N(n).errors.email),1)):K(``,!0)])]),U(`div`,null,[U(`label`,dm,O(N(X)(`Password`)),1),F(U(`input`,{id:`a-pass`,"onUpdate:modelValue":s[3]||=e=>N(n).values.password=e,type:`password`,minlength:`12`,maxlength:`200`,required:t.value===`new`,class:`m-input`,autocomplete:`new-password`},null,8,fm),[[q,N(n).values.password]]),U(`p`,pm,O(t.value===`new`?N(X)(`At least 12 characters.`):N(X)(`Leave empty to keep the password you have.`)),1),N(n).errors.password?(B(),V(`p`,mm,O(N(n).errors.password),1)):K(``,!0)]),e.groups.length?(B(),V(`fieldset`,hm,[U(`legend`,gm,O(N(X)(`Groups`)),1),(B(!0),V(R,null,L(e.groups,e=>(B(),V(`label`,{key:e.id,class:D([`flex items-center gap-2 py-0.5 text-sm`,e.can_give?``:`opacity-50`])},[F(U(`input`,{"onUpdate:modelValue":s[4]||=e=>N(n).values.groups=e,type:`checkbox`,value:e.id,disabled:!e.can_give},null,8,_m),[[pu,N(n).values.groups]]),G(` `+O(e.name)+` `,1),N(n).values.groups.includes(e.id)&&N(n).values.groups.length>1?(B(),V(`label`,vm,[F(U(`input`,{"onUpdate:modelValue":s[5]||=e=>N(n).values.primary_group=e,type:`radio`,value:e.id},null,8,ym),[[hu,N(n).values.primary_group]]),G(` `+O(N(X)(`Primary`)),1)])):K(``,!0)],2))),128)),U(`p`,bm,O(N(X)(`The primary group is the label of the account and sets its start screen. What it may do is everything its groups allow together.`)),1)])):K(``,!0),N(J).simple_view?(B(),V(`fieldset`,xm,[U(`legend`,Sm,O(N(X)(`What this account sees`)),1),U(`label`,Cm,[F(U(`input`,{"onUpdate:modelValue":s[6]||=e=>N(n).values.view=e,type:`radio`,value:``},null,512),[[hu,N(n).values.view]]),G(` `+O(N(X)(`What its rights give`)),1)]),U(`label`,wm,[F(U(`input`,{"onUpdate:modelValue":s[7]||=e=>N(n).values.view=e,type:`radio`,value:`simple`},null,512),[[hu,N(n).values.view]]),G(` `+O(N(X)(`The simple manager`)),1)]),U(`label`,Tm,[F(U(`input`,{"onUpdate:modelValue":s[8]||=e=>N(n).values.view=e,type:`radio`,value:`full`},null,512),[[hu,N(n).values.view]]),G(` `+O(N(X)(`The whole manager`)),1)])])):K(``,!0),U(`label`,Em,[F(U(`input`,{"onUpdate:modelValue":s[9]||=e=>N(n).values.tutorial=e,type:`checkbox`},null,512),[[pu,N(n).values.tutorial]]),G(` `+O(N(X)(`Show the tour the next time this account opens the manager`)),1)]),U(`div`,Dm,[U(`button`,{type:`submit`,class:`m-btn m-btn-primary`,disabled:N(n).busy},O(N(n).busy?N(X)(`Saving…`):N(X)(`Save`)),9,Om),U(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:s[10]||=e=>t.value=null},O(N(X)(`Cancel`)),1)])],32)):K(``,!0),U(`ul`,km,[(B(!0),V(R,null,L(e.accounts,e=>(B(),V(`li`,{key:e.id,class:`flex flex-wrap items-center justify-between gap-3 p-4`},[U(`div`,Am,[U(`p`,jm,[G(O(e.name)+` `,1),e.is_you?(B(),V(`span`,Mm,`(`+O(N(X)(`you`))+`)`,1)):K(``,!0)]),U(`p`,Nm,O(e.email),1),U(`p`,Pm,[e.is_super_admin?(B(),V(`span`,Fm,O(N(X)(`Super admin`)),1)):K(``,!0),(B(!0),V(R,null,L(e.groups,t=>(B(),V(`span`,{key:t.id,class:D([`m-badge`,t.primary&&e.groups.length>1?`font-bold`:``]),title:t.primary&&e.groups.length>1?N(X)(`Primary group`):``},O(t.name),11,Im))),128))])]),U(`div`,Lm,[e.can_change?(B(),V(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary`,onClick:t=>r(e)},O(N(X)(`Edit`)),9,Rm)):K(``,!0),e.can_delete?(B(),V(`button`,{key:1,type:`button`,class:`m-btn m-btn-danger`,onClick:t=>a(e)},O(N(X)(`Delete`)),9,zm)):K(``,!0)])]))),128))])],64))}}),Vm={class:`mb-6 flex flex-wrap items-center justify-between gap-3`},Hm={class:`font-display text-2xl font-bold`},Um={class:`m-label`,for:`g-name`},Wm={key:0,class:`m-error`},Gm={class:`m-label`,for:`g-desc`},Km={class:`m-label`,for:`g-start`},qm={value:``},Jm=[`value`],Ym={class:`m-help`},Xm={class:`px-1 text-sm font-semibold`},Zm=[`value`,`onChange`],Qm={class:`flex gap-2`},$m=[`disabled`],eh={key:1,class:`m-card p-5 text-sm text-muted`},th={key:2,class:`m-card divide-y divide-line`},nh={class:`min-w-0`},rh={class:`font-semibold`},ih={class:`text-xs font-normal text-muted`},ah={key:0,class:`text-xs text-muted`},oh={class:`flex gap-2`},sh=[`onClick`],ch=[`onClick`],lh=I({__name:`GroupsIndex`,props:{groups:{},catalogue:{}},setup(e){let t=e,n=M(null),r=Yu({name:``,description:``,start:``,permissions:[]}),i=J.navigation.filter(e=>e.href.startsWith(J.base+`/`)&&!e.new_tab).map(e=>({label:e.label,value:e.href.slice(J.base.length)})),a=t.catalogue.flatMap(e=>e.permissions);function o(e){n.value=e,r.errors={},r.values.name=e===`new`?``:e.name,r.values.description=e===`new`?``:e.description??``,r.values.start=e===`new`?``:e.start??``,r.values.permissions=e===`new`?[]:[...e.permissions]}function s(e){r.values.permissions.includes(e.value)?r.values.permissions=[...new Set([...r.values.permissions,...e.needs])]:r.values.permissions=r.values.permissions.filter(t=>!a.find(e=>e.value===t)?.needs.includes(e.value))}async function c(){let e=n.value;(e===`new`?await r.send(`post`,`${J.base}/groups`):await r.send(`put`,`${J.base}/groups/${e.id}`))&&($(X(`Saved.`)),n.value=null,await l4())}async function l(e){window.confirm(X(`Are you sure?`))&&(await Y.delete(`${J.base}/groups/${e.id}`),$(X(`Deleted.`)),await l4())}return(t,a)=>(B(),V(R,null,[U(`div`,Vm,[U(`h1`,Hm,O(N(X)(`Groups`)),1),U(`button`,{type:`button`,class:`m-btn m-btn-primary`,onClick:a[0]||=e=>o(`new`)},O(N(X)(`New group`)),1)]),n.value?(B(),V(`form`,{key:0,class:`m-card mb-6 max-w-3xl space-y-4 p-5`,onSubmit:Du(c,[`prevent`])},[U(`div`,null,[U(`label`,Um,O(N(X)(`Name`)),1),F(U(`input`,{id:`g-name`,"onUpdate:modelValue":a[1]||=e=>N(r).values.name=e,required:``,maxlength:`60`,class:`m-input`},null,512),[[q,N(r).values.name]]),N(r).errors.name?(B(),V(`p`,Wm,O(N(r).errors.name),1)):K(``,!0)]),U(`div`,null,[U(`label`,Gm,O(N(X)(`Description`)),1),F(U(`textarea`,{id:`g-desc`,"onUpdate:modelValue":a[2]||=e=>N(r).values.description=e,rows:`2`,maxlength:`500`,class:`m-input`},null,512),[[q,N(r).values.description]])]),U(`div`,null,[U(`label`,Km,O(N(X)(`Start screen`)),1),F(U(`select`,{id:`g-start`,"onUpdate:modelValue":a[3]||=e=>N(r).values.start=e,class:`m-input`},[U(`option`,qm,O(N(X)(`The dashboard`)),1),(B(!0),V(R,null,L(N(i),e=>(B(),V(`option`,{key:e.value,value:e.value},O(e.label),9,Jm))),128))],512),[[gu,N(r).values.start]]),U(`p`,Ym,O(N(X)(`Where accounts with this as their primary group land when they open the manager.`)),1)]),(B(!0),V(R,null,L(e.catalogue,e=>(B(),V(`fieldset`,{key:e.section,class:`rounded-lg border border-line p-3`},[U(`legend`,Xm,O(e.section),1),(B(!0),V(R,null,L(e.permissions,e=>(B(),V(`label`,{key:e.value,class:`flex items-center gap-2 py-0.5 text-sm`},[F(U(`input`,{"onUpdate:modelValue":a[4]||=e=>N(r).values.permissions=e,type:`checkbox`,value:e.value,onChange:t=>s(e)},null,40,Zm),[[pu,N(r).values.permissions]]),G(` `+O(e.label),1)]))),128))]))),128)),U(`div`,Qm,[U(`button`,{type:`submit`,class:`m-btn m-btn-primary`,disabled:N(r).busy},O(N(r).busy?N(X)(`Saving…`):N(X)(`Save`)),9,$m),U(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:a[5]||=e=>n.value=null},O(N(X)(`Cancel`)),1)])],32)):K(``,!0),e.groups.length?(B(),V(`ul`,th,[(B(!0),V(R,null,L(e.groups,e=>(B(),V(`li`,{key:e.id,class:`flex flex-wrap items-center justify-between gap-3 p-4`},[U(`div`,nh,[U(`p`,rh,[G(O(e.name)+` `,1),U(`span`,ih,`· `+O(e.accounts)+` `+O(N(X)(`accounts`)),1)]),e.description?(B(),V(`p`,ah,O(e.description),1)):K(``,!0)]),U(`div`,oh,[U(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:t=>o(e)},O(N(X)(`Edit`)),9,sh),U(`button`,{type:`button`,class:`m-btn m-btn-danger`,onClick:t=>l(e)},O(N(X)(`Delete`)),9,ch)])]))),128))])):(B(),V(`p`,eh,O(N(X)(`Nothing here yet.`)),1))],64))}}),uh={class:`font-display mb-6 text-2xl font-bold`},dh={key:0,class:`m-error mb-4`},fh={class:`grid gap-6 md:grid-cols-2`},ph={class:`mb-3 font-semibold`},mh=[`onSubmit`],hh=[`onUpdate:modelValue`,`aria-label`],gh={type:`submit`,class:`m-btn m-btn-primary`},_h={class:`divide-y divide-line`},vh={class:`min-w-0 truncate`},yh={class:`text-xs text-muted`},bh={class:`flex gap-1`},xh=[`onClick`],Sh=[`onClick`],Ch=I({__name:`LabelsIndex`,props:{categories:{},tags:{}},setup(e){let t=[{type:`category`,title:`Categories`},{type:`tag`,title:`Tags`}],n=M({category:``,tag:``}),r=M(``);async function i(e){r.value=``;try{await e(),await l4()}catch(e){if(e instanceof Gu&&e.status===422)r.value=Object.values(e.errors)[0]??e.message;else throw e}}let a=e=>i(async()=>{await Y.post(`${J.base}/labels`,{type:e,name:n.value[e]}),n.value[e]=``,$(X(`Created.`))}),o=(e,t)=>{let n=window.prompt(X(`New name`),t);return n&&n!==t?i(()=>Y.put(`${J.base}/labels`,{type:e,name:t,new_name:n})):void 0},s=(e,t)=>window.confirm(X(`Are you sure?`))?i(()=>Y.delete(`${J.base}/labels`,{type:e,name:t})):void 0;return(i,c)=>(B(),V(R,null,[U(`h1`,uh,O(N(X)(`Categories and tags`)),1),r.value?(B(),V(`p`,dh,O(r.value),1)):K(``,!0),U(`div`,fh,[(B(),V(R,null,L(t,t=>U(`section`,{key:t.type,class:`m-card p-4`},[U(`h2`,ph,O(N(X)(t.title)),1),U(`form`,{class:`mb-3 flex gap-2`,onSubmit:Du(e=>a(t.type),[`prevent`])},[F(U(`input`,{"onUpdate:modelValue":e=>n.value[t.type]=e,required:``,maxlength:`60`,class:`m-input`,"aria-label":N(X)(t.title)},null,8,hh),[[q,n.value[t.type]]]),U(`button`,gh,O(N(X)(`Add`)),1)],40,mh),U(`ul`,_h,[(B(!0),V(R,null,L(t.type===`category`?e.categories:e.tags,e=>(B(),V(`li`,{key:e.name,class:`flex items-center justify-between gap-2 py-2 text-sm`},[U(`span`,vh,[G(O(e.name)+` `,1),U(`span`,yh,`· `+O(e.posts),1)]),U(`span`,bh,[U(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:n=>o(t.type,e.name)},O(N(X)(`Rename`)),9,xh),U(`button`,{type:`button`,class:`m-btn m-btn-danger`,onClick:n=>s(t.type,e.name)},O(N(X)(`Delete`)),9,Sh)])]))),128))])])),64))])],64))}}),wh={class:`mb-6 flex flex-wrap items-center justify-between gap-3`},Th={class:`font-display text-2xl font-bold`},Eh=[`accept`,`disabled`],Dh=[`title`],Oh={class:`h-2 overflow-hidden rounded-full bg-panel-2`},kh={class:`m-help`},Ah={key:0,class:`w-full shrink-0 sm:w-64`},jh=[`src`,`alt`],Mh={class:`m-help`},Nh={class:`mt-2 flex items-center gap-2`},Ph=[`src`],Fh={class:`min-w-0 flex-1 space-y-3`},Ih={class:`m-label`,for:`m-name`},Lh=[`disabled`],Rh={key:0,class:`m-error`},zh={key:0},Bh={class:`m-label`,for:`m-alt`},Vh=[`disabled`],Hh={class:`m-help`},Uh={key:0},Wh={key:1},Gh={class:`m-help break-all`},Kh={class:`flex gap-2`},qh=[`disabled`],Jh={key:1,class:`m-card p-5 text-sm text-muted`},Yh={key:2,class:`grid grid-cols-2 gap-3 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5`},Xh=[`onClick`],Zh=[`src`,`alt`],Qh={key:1,class:`grid aspect-square w-full place-items-center text-xs text-muted`},$h={class:`block truncate px-2 py-1.5 text-xs`},eg=I({__name:`MediaLibrary`,props:{items:{},max_file_mb:{},extensions:{},storage:{}},setup(e){let t=e=>J.permissions.includes(e),n=M(!1),r=M(null),i=Yu({name:``,alt:``,focus_x:null,focus_y:null}),a=e=>e>1e6?`${(e/1e6).toFixed(1)} MB`:`${Math.max(1,Math.round(e/1e3))} kB`;function o(e){r.value=e,i.errors={},i.values.name=e.name,i.values.alt=e.alt??``,i.values.focus_x=e.focus_x,i.values.focus_y=e.focus_y}function s(e){if(!t(`media.edit`))return;let n=e.currentTarget.getBoundingClientRect();i.values.focus_x=Math.round(Math.min(1,Math.max(0,(e.clientX-n.left)/n.width))*1e3)/1e3,i.values.focus_y=Math.round(Math.min(1,Math.max(0,(e.clientY-n.top)/n.height))*1e3)/1e3}let c=(e,t)=>`${(e??.5)*100}% ${(t??.5)*100}%`;async function l(e){let t=e.target;n.value=!0;try{for(let e of Array.from(t.files??[])){let t=new FormData;t.append(`file`,e),await Ju(`${J.base}/media`,t)}$(X(`Uploaded.`)),await l4()}catch(e){$(e instanceof Gu?Object.values(e.errors)[0]??e.message:X(`Something went wrong. Try again.`),!0)}finally{n.value=!1,t.value=``}}async function u(){r.value&&await i.send(`put`,`${J.base}/media/${r.value.id}`)&&($(X(`Saved.`)),r.value=null,await l4())}async function d(e){let t=e.usage_count>0?X(`This file is in use. Delete it anyway?`):X(`Are you sure?`);window.confirm(t)&&(await Y.delete(`${J.base}/media/${e.id}`),r.value=null,$(X(`Deleted.`)),await l4())}return(f,p)=>(B(),V(R,null,[U(`div`,wh,[U(`h1`,Th,O(N(X)(`Media`)),1),t(`media.upload`)?(B(),V(`label`,{key:0,class:D([`m-btn m-btn-primary cursor-pointer`,n.value?`opacity-50`:``])},[G(O(n.value?N(X)(`Uploading…`):N(X)(`Upload`))+` `,1),U(`input`,{type:`file`,multiple:``,class:`sr-only`,accept:e.extensions.map(e=>`.`+e).join(`,`),disabled:n.value,onChange:l},null,40,Eh)],2)):K(``,!0)]),U(`div`,{class:`mb-6 max-w-md`,title:`${a(e.storage.used)} / ${a(e.storage.limit)}`},[U(`div`,Oh,[U(`div`,{class:`h-full bg-brand`,style:ve({width:Math.min(100,e.storage.used/Math.max(1,e.storage.limit)*100)+`%`})},null,4)]),U(`p`,kh,O(a(e.storage.used))+` / `+O(a(e.storage.limit))+` · `+O(N(X)(`Largest file`))+`: `+O(e.max_file_mb)+` MB`,1)],8,Dh),r.value?(B(),V(`form`,{key:0,class:`m-card mb-6 flex max-w-3xl flex-wrap gap-5 p-5`,onSubmit:Du(u,[`prevent`])},[r.value.is_image?(B(),V(`div`,Ah,[U(`div`,{class:D([`relative`,t(`media.edit`)?`cursor-crosshair`:``]),onClick:s},[U(`img`,{src:r.value.url,alt:r.value.alt??``,class:`w-full rounded-lg`,draggable:`false`},null,8,jh),N(i).values.focus_x===null?K(``,!0):(B(),V(`span`,{key:0,class:`pointer-events-none absolute h-5 w-5 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-white bg-brand/60 shadow`,style:ve({left:(N(i).values.focus_x??0)*100+`%`,top:(N(i).values.focus_y??0)*100+`%`})},null,4))],2),U(`p`,Mh,O(t(`media.edit`)?N(X)(`Click the part of the picture that must stay in view.`):N(X)(`Focus point`)),1),U(`div`,Nh,[U(`img`,{src:r.value.url,alt:``,class:`h-16 w-16 rounded-lg object-cover`,style:ve({objectPosition:c(N(i).values.focus_x,N(i).values.focus_y)})},null,12,Ph),t(`media.edit`)&&N(i).values.focus_x!==null?(B(),V(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary`,onClick:p[0]||=e=>N(i).values.focus_x=N(i).values.focus_y=null},O(N(X)(`Clear`)),1)):K(``,!0)])])):K(``,!0),U(`div`,Fh,[U(`div`,null,[U(`label`,Ih,O(N(X)(`Name`)),1),F(U(`input`,{id:`m-name`,"onUpdate:modelValue":p[1]||=e=>N(i).values.name=e,required:``,maxlength:`250`,class:`m-input`,disabled:!t(`media.edit`)},null,8,Lh),[[q,N(i).values.name]]),N(i).errors.name?(B(),V(`p`,Rh,O(N(i).errors.name),1)):K(``,!0)]),r.value.is_image?(B(),V(`div`,zh,[U(`label`,Bh,O(N(X)(`Alternative text`)),1),F(U(`input`,{id:`m-alt`,"onUpdate:modelValue":p[2]||=e=>N(i).values.alt=e,maxlength:`500`,class:`m-input`,disabled:!t(`media.edit`)},null,8,Vh),[[q,N(i).values.alt]])])):K(``,!0),U(`p`,Hh,[G(O(r.value.mime_type)+` · `+O(a(r.value.size)),1),r.value.width?(B(),V(`span`,Uh,` · `+O(r.value.width)+`×`+O(r.value.height),1)):K(``,!0),G(` · `+O(N(X)(`Used`))+`: `+O(r.value.usage_count),1),r.value.uploaded_by?(B(),V(`span`,Wh,` · `+O(r.value.uploaded_by),1)):K(``,!0)]),U(`p`,Gh,O(r.value.url),1),U(`div`,Kh,[t(`media.edit`)?(B(),V(`button`,{key:0,type:`submit`,class:`m-btn m-btn-primary`,disabled:N(i).busy},O(N(X)(`Save`)),9,qh)):K(``,!0),t(`media.delete`)?(B(),V(`button`,{key:1,type:`button`,class:`m-btn m-btn-danger`,onClick:p[3]||=e=>d(r.value)},O(N(X)(`Delete`)),1)):K(``,!0),U(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:p[4]||=e=>r.value=null},O(N(X)(`Cancel`)),1)])])],32)):K(``,!0),e.items.length?(B(),V(`div`,Yh,[(B(!0),V(R,null,L(e.items,e=>(B(),V(`button`,{key:e.id,type:`button`,class:D([`m-card overflow-hidden text-left transition hover:border-brand`,r.value?.id===e.id?`border-brand`:``]),onClick:t=>o(e)},[e.is_image?(B(),V(`img`,{key:0,src:e.url,alt:e.alt??``,loading:`lazy`,class:`aspect-square w-full object-cover`},null,8,Zh)):(B(),V(`span`,Qh,O(e.mime_type),1)),U(`span`,$h,O(e.name),1)],10,Xh))),128))])):(B(),V(`p`,Jh,O(N(X)(`No files yet.`)),1))],64))}}),tg={class:`font-display mb-6 text-2xl font-bold`},ng={class:`mb-6 grid grid-cols-2 gap-3 md:grid-cols-4`},rg={class:`text-2xl font-bold`},ig={class:`m-help`},ag={class:`mb-4 flex flex-wrap gap-2`},og=[`onClick`],sg=[`placeholder`,`aria-label`],cg=[`aria-label`],lg={value:``},ug=[`value`],dg={type:`submit`,class:`m-btn m-btn-secondary`},fg={key:0,class:`m-card p-5 text-sm text-muted`},pg={key:1,class:`m-card divide-y divide-line`},mg={class:`min-w-0`},hg={class:`font-semibold`},gg={key:1},_g={class:`text-xs text-muted`},vg={class:`flex gap-2`},yg={key:0,class:`m-badge`},bg=[`onClick`],xg={key:2,class:`mt-4 flex items-center gap-2`},Sg={class:`text-sm text-muted`},Cg={class:`font-display mb-3 mt-10 text-xl font-bold`},wg={class:`m-label`,for:`b-min`},Tg={class:`min-w-[10rem] flex-1`},Eg={class:`m-label`,for:`b-why`},Dg={key:0,class:`flex items-center gap-2 text-sm`},Og={type:`submit`,class:`m-btn m-btn-danger`},kg={key:1,class:`m-error w-full`},Ag={key:4,class:`text-sm text-muted`},jg={key:5,class:`m-card divide-y divide-line`},Mg={class:`font-semibold`},Ng={key:0,class:`m-badge`},Pg={key:1,class:`m-badge`},Fg={class:`text-xs text-muted`},Ig=[`onClick`],Lg={class:`font-display mb-3 mt-10 text-xl font-bold`},Rg={class:`flex items-center gap-2 text-sm sm:col-span-2`},zg={class:`m-label`,for:`r-max`},Bg={class:`m-label`,for:`r-win`},Vg={class:`m-label`,for:`r-ban`},Hg={class:`m-label`,for:`r-keep`},Ug=[`max`],Wg={class:`m-help`},Gg={class:`sm:col-span-2`},Kg=[`disabled`],qg={class:`font-display mb-3 mt-10 text-xl font-bold`},Jg={class:`m-label`,for:`n-group`},Yg={class:`min-w-[10rem] flex-1`},Xg={class:`m-label`,for:`n-note`},Zg={type:`submit`,class:`m-btn m-btn-secondary`},Qg={key:0,class:`m-error w-full`},$g={key:0,class:`m-card divide-y divide-line text-sm`},e_={key:0,class:`m-badge`},t_=I({__name:`AuditLog`,props:{entries:{},pagination:{},filters:{},accounts:{},summary:{},bans:{},notes:{},settings:{},max_keep_days:{},can_manage:{type:Boolean},my_ip:{},never_banned:{},whole_site_bans:{type:Boolean}},setup(e){let t=e,n=[`all`,`logins`,`failed`,`actions`,`viewed`,`refused`,`bans`],r=an({q:t.filters.q,ip:t.filters.ip,user:t.filters.user??``}),i=e=>new Date(e).toLocaleString();function a(e){let n=new URLSearchParams,i={show:t.filters.show,q:r.q,ip:r.ip,user:r.user,...e};for(let[e,t]of Object.entries(i))t!==``&&t!==`all`&&t!==1&&n.set(e,String(t));c4(`${J.base}/audit${n.size?`?`+n:``}`)}let o=Yu({ip:``,minutes:1440,reason:``,whole_site:!1});async function s(e){e&&(o.values.ip=e);let t=await o.send(`post`,`${J.base}/audit/bans`);t&&($(t.message),o.values.ip=o.values.reason=``,await l4())}async function c(e){$((await Y.delete(`${J.base}/audit/bans/${e.id}`)).message),await l4()}let l=Yu({...t.settings});async function u(){await l.send(`put`,`${J.base}/audit/settings`)&&($(X(`Saved.`)),await l4())}let d=Yu({ip:``,group:``,note:``});async function f(){await d.send(`put`,`${J.base}/audit/notes`)&&($(X(`Saved.`)),d.values.ip=d.values.group=d.values.note=``,await l4())}let p=e=>e.expires_at?i(e.expires_at):X(`until lifted`);return(t,m)=>(B(),V(R,null,[U(`h1`,tg,O(N(X)(`Audit log`)),1),U(`div`,ng,[(B(!0),V(R,null,L(e.summary,(e,t)=>(B(),V(`div`,{key:t,class:`m-card p-4`},[U(`p`,rg,O(e),1),U(`p`,ig,O(N(X)(t===`banned`?`Addresses banned`:t===`logins`?`Logins (24 h)`:t===`failed`?`Failed logins (24 h)`:`Refused (24 h)`)),1)]))),128))]),U(`nav`,ag,[(B(),V(R,null,L(n,t=>U(`button`,{key:t,type:`button`,class:D([`m-btn`,e.filters.show===t?`m-btn-primary`:`m-btn-secondary`]),onClick:e=>a({show:t,page:1})},O(N(X)(t)),11,og)),64))]),U(`form`,{class:`mb-4 flex flex-wrap gap-2`,onSubmit:m[3]||=Du(e=>a({page:1}),[`prevent`])},[F(U(`input`,{"onUpdate:modelValue":m[0]||=e=>r.q=e,class:`m-input max-w-xs`,placeholder:N(X)(`Search`),"aria-label":N(X)(`Search`)},null,8,sg),[[q,r.q]]),F(U(`input`,{"onUpdate:modelValue":m[1]||=e=>r.ip=e,class:`m-input max-w-[12rem]`,placeholder:`IP`,"aria-label":`IP`},null,512),[[q,r.ip]]),F(U(`select`,{"onUpdate:modelValue":m[2]||=e=>r.user=e,class:`m-input max-w-[12rem]`,"aria-label":N(X)(`Account`)},[U(`option`,lg,O(N(X)(`Everyone`)),1),(B(!0),V(R,null,L(e.accounts,e=>(B(),V(`option`,{key:e.id,value:e.id},O(e.name),9,ug))),128))],8,cg),[[gu,r.user]]),U(`button`,dg,O(N(X)(`Filter`)),1)],32),e.entries.length?(B(),V(`ul`,pg,[(B(!0),V(R,null,L(e.entries,t=>(B(),V(`li`,{key:t.id,class:`flex flex-wrap items-start justify-between gap-3 p-4 text-sm`},[U(`div`,mg,[U(`p`,hg,[G(O(t.summary)+` `,1),t.subject?(B(),V(R,{key:0},[m[19]||=G(` · `,-1),t.subject.url?(B(),H(Z,{key:0,href:t.subject.url,class:`underline`},{default:P(()=>[G(O(t.subject.label),1)]),_:2},1032,[`href`])):(B(),V(`span`,gg,O(t.subject.label),1))],64)):K(``,!0)]),U(`p`,_g,O(i(t.at))+` · `+O(t.who??t.email??N(X)(`Someone`))+` · `+O(t.ip)+` · `+O(t.browser),1)]),U(`span`,vg,[t.banned?(B(),V(`span`,yg,O(N(X)(`banned`)),1)):K(``,!0),e.can_manage&&t.ip&&!t.banned&&!t.never_banned&&t.ip!==e.my_ip?(B(),V(`button`,{key:1,type:`button`,class:`m-btn m-btn-danger`,onClick:e=>s(t.ip)},O(N(X)(`Ban`)),9,bg)):K(``,!0)])]))),128))])):(B(),V(`p`,fg,O(N(X)(`Nothing here yet.`)),1)),e.pagination.pages>1?(B(),V(`nav`,xg,[e.pagination.page>1?(B(),V(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary`,onClick:m[4]||=t=>a({page:e.pagination.page-1})},O(N(X)(`Previous`)),1)):K(``,!0),U(`span`,Sg,O(e.pagination.page)+` / `+O(e.pagination.pages),1),e.pagination.pagea({page:e.pagination.page+1})},O(N(X)(`Next`)),1)):K(``,!0)])):K(``,!0),U(`h2`,Cg,O(N(X)(`Bans`)),1),e.can_manage?(B(),V(`form`,{key:3,class:`m-card mb-4 flex max-w-3xl flex-wrap items-end gap-3 p-4`,onSubmit:m[10]||=Du(e=>s(),[`prevent`])},[U(`div`,null,[m[20]||=U(`label`,{class:`m-label`,for:`b-ip`},`IP`,-1),F(U(`input`,{id:`b-ip`,"onUpdate:modelValue":m[6]||=e=>N(o).values.ip=e,required:``,class:`m-input`},null,512),[[q,N(o).values.ip]])]),U(`div`,null,[U(`label`,wg,O(N(X)(`Minutes (0 = until lifted)`)),1),F(U(`input`,{id:`b-min`,"onUpdate:modelValue":m[7]||=e=>N(o).values.minutes=e,type:`number`,min:`0`,class:`m-input w-32`},null,512),[[q,N(o).values.minutes,void 0,{number:!0}]])]),U(`div`,Tg,[U(`label`,Eg,O(N(X)(`Reason`)),1),F(U(`input`,{id:`b-why`,"onUpdate:modelValue":m[8]||=e=>N(o).values.reason=e,maxlength:`200`,class:`m-input`},null,512),[[q,N(o).values.reason]])]),e.whole_site_bans?(B(),V(`label`,Dg,[F(U(`input`,{"onUpdate:modelValue":m[9]||=e=>N(o).values.whole_site=e,type:`checkbox`},null,512),[[pu,N(o).values.whole_site]]),G(` `+O(N(X)(`Whole site`)),1)])):K(``,!0),U(`button`,Og,O(N(X)(`Ban`)),1),N(o).errors.ip?(B(),V(`p`,kg,O(N(o).errors.ip),1)):K(``,!0)],32)):K(``,!0),e.bans.length?(B(),V(`ul`,jg,[(B(!0),V(R,null,L(e.bans,t=>(B(),V(`li`,{key:t.id,class:D([`flex flex-wrap items-center justify-between gap-3 p-4 text-sm`,t.active?``:`opacity-50`])},[U(`div`,null,[U(`p`,Mg,[G(O(t.ip)+` `,1),t.automatic?(B(),V(`span`,Ng,O(N(X)(`automatic`)),1)):K(``,!0),m[21]||=G(),t.whole_site?(B(),V(`span`,Pg,O(N(X)(`whole site`)),1)):K(``,!0)]),U(`p`,Fg,O(t.reason)+` · `+O(p(t))+` · `+O(t.hits)+` `+O(N(X)(`hits`)),1)]),e.can_manage&&t.active?(B(),V(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary`,onClick:e=>c(t)},O(N(X)(`Lift`)),9,Ig)):K(``,!0)],2))),128))])):(B(),V(`p`,Ag,O(N(X)(`No bans.`)),1)),e.can_manage?(B(),V(R,{key:6},[U(`h2`,Lg,O(N(X)(`Rules`)),1),U(`form`,{class:`m-card grid max-w-3xl gap-4 p-5 sm:grid-cols-2`,onSubmit:Du(u,[`prevent`])},[U(`label`,Rg,[F(U(`input`,{"onUpdate:modelValue":m[11]||=e=>N(l).values.auto_ban=e,type:`checkbox`},null,512),[[pu,N(l).values.auto_ban]]),G(` `+O(N(X)(`Ban an address by itself after too many failed logins`)),1)]),U(`div`,null,[U(`label`,zg,O(N(X)(`Failed logins`)),1),F(U(`input`,{id:`r-max`,"onUpdate:modelValue":m[12]||=e=>N(l).values.max_failures=e,type:`number`,min:`3`,max:`100`,class:`m-input`},null,512),[[q,N(l).values.max_failures,void 0,{number:!0}]])]),U(`div`,null,[U(`label`,Bg,O(N(X)(`Within minutes`)),1),F(U(`input`,{id:`r-win`,"onUpdate:modelValue":m[13]||=e=>N(l).values.window_minutes=e,type:`number`,min:`1`,max:`1440`,class:`m-input`},null,512),[[q,N(l).values.window_minutes,void 0,{number:!0}]])]),U(`div`,null,[U(`label`,Vg,O(N(X)(`Ban for minutes (0 = until lifted)`)),1),F(U(`input`,{id:`r-ban`,"onUpdate:modelValue":m[14]||=e=>N(l).values.ban_minutes=e,type:`number`,min:`0`,class:`m-input`},null,512),[[q,N(l).values.ban_minutes,void 0,{number:!0}]])]),U(`div`,null,[U(`label`,Hg,O(N(X)(`Keep the log (days)`)),1),F(U(`input`,{id:`r-keep`,"onUpdate:modelValue":m[15]||=e=>N(l).values.keep_days=e,type:`number`,min:`7`,max:e.max_keep_days,class:`m-input`},null,8,Ug),[[q,N(l).values.keep_days,void 0,{number:!0}]]),U(`p`,Wg,`≤ `+O(e.max_keep_days),1)]),U(`div`,Gg,[U(`button`,{type:`submit`,class:`m-btn m-btn-primary`,disabled:N(l).busy},O(N(X)(`Save`)),9,Kg)]),(B(!0),V(R,null,L(N(l).errors,(e,t)=>(B(),V(`p`,{key:t,class:`m-error sm:col-span-2`},O(e),1))),128))],32),U(`h2`,qg,O(N(X)(`Notes about addresses`)),1),U(`form`,{class:`m-card mb-4 flex max-w-3xl flex-wrap items-end gap-3 p-4`,onSubmit:Du(f,[`prevent`])},[U(`div`,null,[m[22]||=U(`label`,{class:`m-label`,for:`n-ip`},`IP`,-1),F(U(`input`,{id:`n-ip`,"onUpdate:modelValue":m[16]||=e=>N(d).values.ip=e,required:``,class:`m-input`},null,512),[[q,N(d).values.ip]])]),U(`div`,null,[U(`label`,Jg,O(N(X)(`Group`)),1),F(U(`input`,{id:`n-group`,"onUpdate:modelValue":m[17]||=e=>N(d).values.group=e,maxlength:`60`,class:`m-input`},null,512),[[q,N(d).values.group]])]),U(`div`,Yg,[U(`label`,Xg,O(N(X)(`Note`)),1),F(U(`input`,{id:`n-note`,"onUpdate:modelValue":m[18]||=e=>N(d).values.note=e,maxlength:`2000`,class:`m-input`},null,512),[[q,N(d).values.note]])]),U(`button`,Zg,O(N(X)(`Save`)),1),N(d).errors.ip?(B(),V(`p`,Qg,O(N(d).errors.ip),1)):K(``,!0)],32),e.notes.length?(B(),V(`ul`,$g,[(B(!0),V(R,null,L(e.notes,e=>(B(),V(`li`,{key:e.ip,class:`p-3`},[U(`b`,null,O(e.ip),1),m[23]||=G(),e.group?(B(),V(`span`,e_,O(e.group),1)):K(``,!0),G(` `+O(e.note),1)]))),128))])):K(``,!0)],64)):K(``,!0)],64))}}),n_={class:`mb-6 flex flex-wrap items-center justify-between gap-3`},r_={class:`font-display text-2xl font-bold`},i_={key:0,class:`m-card mb-4 p-4 text-sm`},a_={key:1,class:`m-card mb-4 p-4 text-sm`},o_={class:`mb-4 max-w-3xl text-sm text-muted`},s_={class:`px-1 text-sm font-semibold`},c_={key:0,class:`flex items-center justify-between gap-3 text-sm`},l_=[`checked`,`disabled`,`onChange`],u_=[`for`],d_=[`id`,`value`,`onChange`],f_=[`value`],p_=[`id`,`type`,`value`,`placeholder`,`autocomplete`,`disabled`,`onInput`],m_={key:2,class:`m-help`},h_={key:3,class:`m-error`},g_=[`onClick`],__={key:0,class:`flex flex-wrap items-center gap-3`},v_=[`disabled`,`onClick`],y_={key:0,class:`m-help`},b_={key:0,class:`m-card p-5`},x_={class:`m-label`,for:`s-password`},S_={class:`m-help`},C_={key:0,class:`m-error`},w_=[`disabled`],T_=I({__name:`Settings`,props:{groups:{},write_env:{type:Boolean},env_writable:{type:Boolean},config_cached:{type:Boolean}},setup(e){let t=e,n=an({}),r=M([]),i=M(``),a=M({}),o=M(!1),s=M(null),c=pc(()=>t.groups.flatMap(e=>e.items)),l=e=>e.key in n?n[e.key]:e.value,u=pc(()=>Object.keys(n).length>0||r.value.length>0),d=pc(()=>c.value.some(e=>e.sensitive&&(e.key in n||r.value.includes(e.key))));function f(e,t){e.type===`secret`&&(t===``||t===null)||t===e.value&&e.type!==`secret`?delete n[e.key]:n[e.key]=t}function p(e){delete n[e.key],r.value=r.value.includes(e.key)?r.value.filter(t=>t!==e.key):[...r.value,e.key]}async function m(){o.value=!0,a.value={};try{let e=await Y.put(`${J.base}/settings`,{values:{...n},reset:r.value,password:i.value});s.value={migrate:e.migrate??[],file:e.file_written,env:e.env_written},$(X(`Saved.`)),Object.keys(n).forEach(e=>delete n[e]),r.value=[],i.value=``,await l4()}catch(e){if(e instanceof Gu&&e.status===422)a.value=e.errors;else throw e}finally{o.value=!1}}let h=M({});async function g(e){h.value[e]=`busy`;try{h.value[e]=await Y.post(`${J.base}/settings/check`,{group:e})}catch{h.value[e]={ok:!1,message:X(`The check could not be run.`)}}}async function _(){await Y.post(`${J.base}/settings/refresh`),$(X(`Refreshed.`))}return(t,c)=>(B(),V(R,null,[U(`div`,n_,[U(`h1`,r_,O(N(X)(`Settings`)),1),U(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:_},O(N(X)(`Refresh now`)),1)]),s.value?.migrate.length?(B(),V(`p`,i_,[G(O(N(X)(`These parts need new tables:`))+` `,1),U(`strong`,null,O(s.value.migrate.join(`, `)),1),G(`. `+O(N(X)(`Run php artisan migrate on the server.`)),1)])):K(``,!0),s.value&&!s.value.file?(B(),V(`p`,a_,O(N(X)(`The changes are saved, but the file that makes them work at once could not be written (bootstrap/cache). They work after Refresh now, or when that folder may be written.`)),1)):K(``,!0),U(`p`,o_,[G(O(N(X)(`A change works at once and is kept in the database.`))+` `,1),e.write_env?(B(),V(R,{key:0},[G(O(e.env_writable?N(X)(`It is also written into the .env file.`):N(X)(`The .env file may not be written here, so only the database is used.`)),1)],64)):K(``,!0)]),U(`form`,{class:`max-w-3xl space-y-6`,onSubmit:Du(m,[`prevent`])},[(B(!0),V(R,null,L(e.groups,e=>(B(),V(`fieldset`,{key:e.name,class:`m-card space-y-4 p-5`},[U(`legend`,s_,O(e.name),1),(B(!0),V(R,null,L(e.items,e=>(B(),V(`div`,{key:e.key},[e.type===`toggle`?(B(),V(`label`,c_,[U(`span`,null,O(e.label),1),U(`input`,{type:`checkbox`,checked:!!l(e),disabled:r.value.includes(e.key),onChange:t=>f(e,t.target.checked)},null,40,l_)])):(B(),V(R,{key:1},[U(`label`,{class:`m-label`,for:`s-`+e.key},O(e.label),9,u_),e.type===`select`?(B(),V(`select`,{key:0,id:`s-`+e.key,class:`m-input`,value:l(e),onChange:t=>f(e,t.target.value)},[(B(!0),V(R,null,L(e.options,(e,t)=>(B(),V(`option`,{key:t,value:t},O(e),9,f_))),128))],40,d_)):(B(),V(`input`,{key:1,id:`s-`+e.key,class:`m-input`,type:e.type===`secret`?`password`:e.type===`number`?`number`:`text`,value:e.type===`secret`?n[e.key]??``:l(e)??``,placeholder:e.type===`secret`&&e.set?N(X)(`Set. Type to replace it.`):``,autocomplete:e.type===`secret`?`new-password`:`off`,disabled:r.value.includes(e.key),onInput:t=>f(e,t.target.value)},null,40,p_))],64)),e.help?(B(),V(`p`,m_,O(e.help),1)):K(``,!0),a.value[`values.`+e.key]?(B(),V(`p`,h_,O(a.value[`values.`+e.key]),1)):K(``,!0),e.saved||r.value.includes(e.key)?(B(),V(`button`,{key:4,type:`button`,class:`mt-1 text-xs text-muted underline hover:text-text`,onClick:t=>p(e)},O(r.value.includes(e.key)?N(X)(`Keep what is saved`):N(X)(`Back to what the config says`)),9,g_)):K(``,!0)]))),128)),e.check?(B(),V(`div`,__,[U(`button`,{type:`button`,class:`m-btn m-btn-secondary`,disabled:u.value||h.value[e.name]===`busy`,onClick:t=>g(e.name)},O(h.value[e.name]===`busy`?N(X)(`Trying…`):N(X)(`Try it`)),9,v_),u.value?(B(),V(`span`,y_,O(N(X)(`Save first: it tries what is saved.`)),1)):h.value[e.name]&&h.value[e.name]!==`busy`?(B(),V(`span`,{key:1,class:D(h.value[e.name].ok?`text-sm`:`m-error`),role:`status`},O(h.value[e.name].ok?`✓`:`✗`)+` `+O(h.value[e.name].message),3)):K(``,!0)])):K(``,!0)]))),128)),d.value?(B(),V(`div`,b_,[U(`label`,x_,O(N(X)(`Your password`)),1),F(U(`input`,{id:`s-password`,"onUpdate:modelValue":c[0]||=e=>i.value=e,type:`password`,class:`m-input`,autocomplete:`current-password`,required:``},null,512),[[q,i.value]]),U(`p`,S_,O(N(X)(`Keys, passwords and addresses of integrations are only changed after you type your own password.`)),1),a.value.password?(B(),V(`p`,C_,O(a.value.password),1)):K(``,!0)])):K(``,!0),U(`button`,{type:`submit`,class:`m-btn m-btn-primary`,disabled:o.value||!u.value},O(o.value?N(X)(`Saving…`):N(X)(`Save`)),9,w_)],32)],64))}}),E_={class:`mb-6 flex flex-wrap items-center justify-between gap-3`},D_={class:`font-display text-2xl font-bold`},O_={class:`text-sm text-muted`},k_={key:0},A_={class:`mb-6 flex flex-wrap gap-2`},j_={class:`mb-6 grid grid-cols-2 gap-3 md:grid-cols-5`},M_={class:`text-2xl font-bold`},N_={class:`m-help`},P_={class:`m-card mb-6 p-4`},F_={class:`mb-3 font-semibold`},I_=[`aria-label`],L_=[`title`],R_={class:`mb-6 grid gap-6 md:grid-cols-2`},z_={class:`m-card p-4`},B_={class:`mb-3 font-semibold`},V_={key:0,class:`text-sm text-muted`},H_={class:`divide-y divide-line text-sm`},U_={class:`truncate`},W_={class:`text-muted`},G_={class:`m-card p-4`},K_={class:`mb-3 font-semibold`},q_={key:0,class:`text-sm text-muted`},J_={class:`divide-y divide-line text-sm`},Y_={class:`truncate`},X_={class:`text-muted`},Z_={class:`mb-3 font-semibold`},Q_={key:0,class:`text-sm text-muted`},$_={class:`divide-y divide-line text-sm`},e1={class:`truncate`},t1={class:`text-muted`},n1={class:`m-card mb-6 overflow-x-auto p-4`},r1={class:`mb-3 font-semibold`},i1={class:`space-y-0.5 text-xs`},a1={class:`w-9 shrink-0 text-muted`},o1=[`title`],s1={class:`m-card mb-6 p-4`},c1={class:`mb-3 font-semibold`},l1={class:`text-sm font-normal text-muted`},u1={key:0,class:`text-sm text-muted`},d1={class:`divide-y divide-line text-sm`},f1={class:`text-xs text-muted`},p1={class:`text-muted`},m1={class:`flex flex-wrap items-center gap-2 text-sm`},h1={class:`text-muted`},g1=[`href`],_1=I({__name:`StatisticsReport`,props:{range:{},ranges:{},exports:{},totals:{},previous:{},series:{},pages:{},posts:{},channels:{},sources:{},countries:{},devices:{},browsers:{},systems:{},heatmap:{},bots:{}},setup(e){let t=e,n=pc(()=>[[`Visitors`,`visitors`],[`Visits`,`visits`],[`Page views`,`page_views`],[`Average time`,`average_seconds`],[`Bounce rate`,`bounce_rate`]]),r=(e,t)=>e===`average_seconds`?`${Math.floor(t/60)}:${String(t%60).padStart(2,`0`)}`:e===`bounce_rate`?`${t}%`:t.toLocaleString(),i=e=>{let n=t.previous?.[e];return n?Math.round((t.totals[e]-n)/n*100):null},a=pc(()=>Math.max(1,...t.series.map(e=>e.visits))),o=pc(()=>Math.max(1,...t.heatmap.flatMap(e=>e.hours))),s=pc(()=>[[`Channels`,t.channels],[`Sources`,t.sources],[`Countries`,t.countries],[`Devices`,t.devices],[`Browsers`,t.browsers],[`Systems`,t.systems]]),c=e=>`${J.base}/statistics?range=${e}`,l=e=>`${J.base}/statistics/export?sheet=${e}&range=${new URLSearchParams(Q.path.split(`?`)[1]??``).get(`range`)??t.range.key}`;return(t,u)=>(B(),V(R,null,[U(`div`,E_,[U(`h1`,D_,O(N(X)(`Statistics`)),1),U(`p`,O_,[G(O(e.range.from)+` → `+O(e.range.to),1),e.range.compared_to?(B(),V(`span`,k_,` · `+O(N(X)(`compared with`))+` `+O(e.range.compared_to),1)):K(``,!0)])]),U(`nav`,A_,[(B(!0),V(R,null,L(e.ranges,t=>(B(),H(Z,{key:t.key,href:c(t.key),class:D([`m-btn`,e.range.key===t.key?`m-btn-primary`:`m-btn-secondary`])},{default:P(()=>[G(O(t.label),1)]),_:2},1032,[`href`,`class`]))),128))]),U(`div`,j_,[(B(!0),V(R,null,L(n.value,([t,n])=>(B(),V(`div`,{key:n,class:`m-card p-4`},[U(`p`,M_,O(r(n,e.totals[n])),1),U(`p`,N_,[G(O(N(X)(t)),1),i(n)===null?K(``,!0):(B(),V(`span`,{key:0,class:D((i(n)??0)>=0?`text-emerald-500`:`text-red-500`)},O((i(n)??0)>0?`+`:``)+O(i(n))+`%`,3))])]))),128))]),U(`section`,P_,[U(`h2`,F_,O(N(X)(`Visits`)),1),U(`div`,{class:`flex h-40 items-end gap-px`,role:`img`,"aria-label":N(X)(`Visits`)},[(B(!0),V(R,null,L(e.series,e=>(B(),V(`div`,{key:e.key,class:`min-w-px flex-1 rounded-t bg-brand`,style:ve({height:Math.max(2,e.visits/a.value*100)+`%`}),title:`${e.label}: ${e.visits}`},null,12,L_))),128))],8,I_)]),U(`div`,R_,[U(`section`,z_,[U(`h2`,B_,O(N(X)(`Pages`)),1),e.pages.length?K(``,!0):(B(),V(`p`,V_,O(N(X)(`Nothing here yet.`)),1)),U(`ul`,H_,[(B(!0),V(R,null,L(e.pages,e=>(B(),V(`li`,{key:e.path,class:`flex justify-between gap-3 py-1.5`},[U(`span`,U_,O(e.title??e.path),1),U(`span`,W_,O(e.views),1)]))),128))])]),U(`section`,G_,[U(`h2`,K_,O(N(X)(`Posts`)),1),e.posts.length?K(``,!0):(B(),V(`p`,q_,O(N(X)(`Nothing here yet.`)),1)),U(`ul`,J_,[(B(!0),V(R,null,L(e.posts,e=>(B(),V(`li`,{key:e.slug,class:`flex justify-between gap-3 py-1.5`},[U(`span`,Y_,O(e.title),1),U(`span`,X_,O(e.views),1)]))),128))])]),(B(!0),V(R,null,L(s.value,([e,t])=>(B(),V(`section`,{key:e,class:`m-card p-4`},[U(`h2`,Z_,O(N(X)(e)),1),t.length?K(``,!0):(B(),V(`p`,Q_,O(N(X)(`Nothing here yet.`)),1)),U(`ul`,$_,[(B(!0),V(R,null,L(t,e=>(B(),V(`li`,{key:e.name+(e.channel??``),class:`flex justify-between gap-3 py-1.5`},[U(`span`,e1,O(e.name||N(X)(`Direct`)),1),U(`span`,t1,O(e.visits),1)]))),128))])]))),128))]),U(`section`,n1,[U(`h2`,r1,O(N(X)(`When people visit`)),1),U(`div`,i1,[(B(!0),V(R,null,L(e.heatmap,e=>(B(),V(`div`,{key:e.day,class:`flex items-center gap-0.5`},[U(`span`,a1,O(e.day),1),(B(!0),V(R,null,L(e.hours,(t,n)=>(B(),V(`span`,{key:n,class:`block h-5 min-w-3 flex-1 rounded-sm border border-line`,title:`${e.day} ${n}:00 · ${t}`,style:ve({background:`color-mix(in srgb, var(--m-brand) ${Math.round(t/o.value*100)}%, var(--m-panel-2))`})},null,12,o1))),128))]))),128))])]),U(`section`,s1,[U(`h2`,c1,[G(O(N(X)(`Programs`))+` `,1),U(`span`,l1,`· `+O(e.bots.total),1)]),e.bots.names.length?K(``,!0):(B(),V(`p`,u1,O(N(X)(`Nothing here yet.`)),1)),U(`ul`,d1,[(B(!0),V(R,null,L(e.bots.names,e=>(B(),V(`li`,{key:e.name,class:`flex justify-between gap-3 py-1.5`},[U(`span`,null,[G(O(e.name)+` `,1),U(`span`,f1,O(e.kind),1)]),U(`span`,p1,O(e.hits),1)]))),128))])]),U(`p`,m1,[U(`span`,h1,O(N(X)(`Download`))+`:`,1),(B(!0),V(R,null,L(e.exports,(e,t)=>(B(),V(`a`,{key:t,href:l(String(t)),class:`m-btn m-btn-secondary`},O(e)+` (CSV)`,9,g1))),128))])],64))}}),v1={class:`font-display mb-6 text-2xl font-bold`},y1={key:0,class:`m-card p-5 text-sm text-muted`},b1={key:1,class:`m-card divide-y divide-line`},x1={class:`min-w-0`},S1={class:`truncate font-semibold`},C1={class:`truncate text-xs text-muted`},w1={class:`m-badge`},T1={key:2,class:`mt-4 flex gap-2`},E1=I({__name:`ListPage`,props:{data:{},current_page:{},last_page:{},path:{}},setup(e){let t=e,n=pc(()=>Q.path.includes(`/reviews`)?`reviews`:`pages`),r=pc(()=>n.value===`reviews`?`Reviews`:`Pages`),i=e=>n.value===`reviews`?e.author:e.title,a=e=>n.value===`reviews`?e.rating?`★`.repeat(e.rating):``:e.slug,o=e=>n.value===`reviews`?e.is_visible:e.is_published,s=e=>`${Q.path.split(`?`)[0]}?page=${e}`;return(e,n)=>(B(),V(R,null,[U(`h1`,v1,O(N(X)(r.value)),1),t.data.length?(B(),V(`ul`,b1,[(B(!0),V(R,null,L(t.data,e=>(B(),V(`li`,{key:e.id,class:`flex items-center justify-between gap-3 p-4`},[U(`div`,x1,[U(`p`,S1,O(i(e)),1),U(`p`,C1,O(a(e)),1)]),U(`span`,w1,O(o(e)?N(X)(`Published`):N(X)(`Draft`)),1)]))),128))])):(B(),V(`p`,y1,O(N(X)(`Nothing here yet.`)),1)),t.last_page>1?(B(),V(`nav`,T1,[t.current_page>1?(B(),H(Z,{key:0,href:s(t.current_page-1),class:`m-btn m-btn-secondary`},{default:P(()=>[G(O(N(X)(`Previous`)),1)]),_:1},8,[`href`])):K(``,!0),t.current_page[G(O(N(X)(`Next`)),1)]),_:1},8,[`href`])):K(``,!0)])):K(``,!0)],64))}}),D1={class:`space-y-5`},O1={key:0,class:`flex items-center gap-2 text-sm`},k1=[`onUpdate:modelValue`],A1=[`for`],j1={key:0,class:`text-muted`},M1=[`id`,`onUpdate:modelValue`],N1={key:0,value:``},P1=[`value`],F1=[`id`,`onUpdate:modelValue`,`rows`,`maxlength`,`required`],I1={key:3,class:`flex gap-2`},L1=[`id`,`onUpdate:modelValue`],R1=[`onClick`],z1=[`id`,`value`,`onInput`],B1={key:5,class:`space-y-2`},V1=[`src`],H1=[`onUpdate:modelValue`,`aria-label`],U1=[`onClick`],W1=[`onClick`],G1={key:6,class:`space-y-3`},K1=[`for`],q1=[`id`,`onUpdate:modelValue`],J1=[`id`,`onUpdate:modelValue`],Y1=[`onClick`],X1=[`onClick`],Z1=[`id`,`onUpdate:modelValue`,`type`,`maxlength`,`required`],Q1=[`src`],$1={key:2,class:`mt-1 text-xs text-muted`},e0={key:3,class:`m-help`},t0={key:4,class:`m-error`},n0=I({__name:`FormFields`,props:{fields:{},values:{},errors:{},prefix:{}},setup(e){let t=e,n=pc(()=>t.fields.filter(e=>!(e.advanced&&J.view===`simple`))),r=e=>J.view===`simple`&&e.simple_label||e.label,i=e=>J.view===`simple`&&e.simple_help||e.help,a=M(null),o=M(null),s=e=>t.values[e]=Array.isArray(t.values[e])?t.values[e]:[],c=e=>s(e).join(` `),l=(e,n)=>t.values[e]=n.split(` `),u=e=>Object.values(e.items??{}),d=e=>s(e.key).push(Object.fromEntries(u(e).map(e=>[e.key,``]))),f=J.permissions.includes(`media.view`);return(t,p)=>(B(),V(`div`,D1,[(B(!0),V(R,null,L(n.value,t=>(B(),V(`div`,{key:t.key},[t.type===`toggle`?(B(),V(`label`,O1,[F(U(`input`,{"onUpdate:modelValue":n=>e.values[t.key]=n,type:`checkbox`},null,8,k1),[[pu,e.values[t.key]]]),G(` `+O(N(X)(r(t))),1)])):(B(),V(R,{key:1},[U(`label`,{for:`f-`+t.key,class:`m-label`},[G(O(N(X)(r(t))),1),t.required?(B(),V(`span`,j1,` *`)):K(``,!0)],8,A1),t.type===`select`?F((B(),V(`select`,{key:0,id:`f-`+t.key,"onUpdate:modelValue":n=>e.values[t.key]=n,class:`m-input`},[t.required?K(``,!0):(B(),V(`option`,N1)),(B(!0),V(R,null,L(t.options,(e,t)=>(B(),V(`option`,{key:t,value:t},O(e),9,P1))),128))],8,M1)),[[gu,e.values[t.key]]]):t.type===`markdown`?(B(),H(uf,{key:1,id:`f-`+t.key,modelValue:e.values[t.key],"onUpdate:modelValue":n=>e.values[t.key]=n,required:t.required,maxlength:t.max??void 0},null,8,[`id`,`modelValue`,`onUpdate:modelValue`,`required`,`maxlength`])):t.type===`textarea`||t.type===`lines`?F((B(),V(`textarea`,{key:2,id:`f-`+t.key,"onUpdate:modelValue":n=>e.values[t.key]=n,rows:t.type===`lines`?5:4,maxlength:t.max??void 0,required:t.required,class:`m-input`},null,8,F1)),[[q,e.values[t.key]]]):t.type===`media`?(B(),V(`div`,I1,[F(U(`input`,{id:`f-`+t.key,"onUpdate:modelValue":n=>e.values[t.key]=n,maxlength:`2048`,class:`m-input`},null,8,L1),[[q,e.values[t.key]]]),N(f)?(B(),V(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary shrink-0`,onClick:e=>a.value=t.key},O(N(X)(`Choose`)),9,R1)):K(``,!0)])):t.type===`list`?(B(),V(`textarea`,{key:4,id:`f-`+t.key,value:c(t.key),rows:`5`,class:`m-input`,onInput:e=>l(t.key,e.target.value)},null,40,z1)):t.type===`media_list`?(B(),V(`div`,B1,[(B(!0),V(R,null,L(s(t.key),(n,i)=>(B(),V(`div`,{key:i,class:`flex items-center gap-2`},[U(`img`,{src:n,alt:``,class:`h-12 w-12 rounded border border-line object-cover`},null,8,V1),F(U(`input`,{"onUpdate:modelValue":n=>e.values[t.key][i]=n,maxlength:`2048`,class:`m-input`,"aria-label":N(X)(r(t))},null,8,H1),[[q,e.values[t.key][i]]]),U(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:n=>e.values[t.key].splice(i,1)},O(N(X)(`Remove`)),9,U1)]))),128)),N(f)?(B(),V(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary`,onClick:e=>o.value=t.key},O(N(X)(`Add a picture`)),9,W1)):K(``,!0)])):t.type===`repeater`?(B(),V(`div`,G1,[(B(!0),V(R,null,L(s(t.key),(n,r)=>(B(),V(`div`,{key:r,class:`m-card space-y-2 p-3`},[(B(!0),V(R,null,L(u(t),e=>(B(),V(`div`,{key:e.key},[U(`label`,{class:`m-label`,for:`f-${t.key}-${r}-${e.key}`},O(N(X)(e.label)),9,K1),e.type===`textarea`?F((B(),V(`textarea`,{key:0,id:`f-${t.key}-${r}-${e.key}`,"onUpdate:modelValue":t=>n[e.key]=t,rows:`3`,class:`m-input`},null,8,q1)),[[q,n[e.key]]]):F((B(),V(`input`,{key:1,id:`f-${t.key}-${r}-${e.key}`,"onUpdate:modelValue":t=>n[e.key]=t,class:`m-input`},null,8,J1)),[[q,n[e.key]]])]))),128)),U(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:n=>e.values[t.key].splice(r,1)},O(N(X)(`Remove`)),9,Y1)]))),128)),U(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:e=>d(t)},O(N(X)(`Add`)),9,X1)])):F((B(),V(`input`,{key:7,id:`f-`+t.key,"onUpdate:modelValue":n=>e.values[t.key]=n,type:t.type===`number`?`number`:t.type===`date`?`date`:`text`,maxlength:t.max??void 0,required:t.required,class:`m-input`},null,8,Z1)),[[xu,e.values[t.key]]]),t.type===`media`&&e.values[t.key]?(B(),V(`img`,{key:8,src:e.values[t.key],alt:``,class:`mt-2 h-24 w-auto rounded-lg border border-line object-cover`},null,8,Q1)):K(``,!0)],64)),t.type===`lines`||t.type===`list`?(B(),V(`p`,$1,O(N(X)(`One per line.`)),1)):K(``,!0),i(t)?(B(),V(`p`,e0,O(N(X)(i(t))),1)):K(``,!0),e.errors?.[(e.prefix??``)+t.key]?(B(),V(`p`,t0,O(e.errors[(e.prefix??``)+t.key]),1)):K(``,!0)]))),128)),a.value?(B(),H(Yd,{key:0,onPick:p[0]||=t=>{e.values[a.value]=t,a.value=null},onClose:p[1]||=e=>a.value=null})):K(``,!0),o.value?(B(),H(Yd,{key:1,onPick:p[2]||=e=>{s(o.value).push(e),o.value=null},onClose:p[3]||=e=>o.value=null})):K(``,!0)]))}}),r0=(e,t)=>J.view===`simple`&&t?t:e,i0={class:`mb-6 flex items-center justify-between gap-3`},a0={class:`font-display text-2xl font-bold`},o0=[`disabled`],s0=I({__name:`RecordForm`,props:{resource:{},record:{}},setup(e){let t=e,n=`${J.base}/records/${t.resource.key}`,r=Yu({...t.record.values});async function i(){(t.record.id===null?await r.send(`post`,n):await r.send(`put`,`${n}/${t.record.id}`))&&($(X(`Saved.`)),c4(n))}return(t,a)=>(B(),V(R,null,[U(`div`,i0,[U(`h1`,a0,O(e.record.id===null?N(X)(`New`)+`: `+N(X)(N(r0)(e.resource.singular,e.resource.simple_singular)):N(X)(N(r0)(e.resource.singular,e.resource.simple_singular))),1),W(Z,{href:n,class:`m-btn m-btn-secondary`},{default:P(()=>[G(O(N(X)(`Back`)),1)]),_:1})]),U(`form`,{class:`m-card max-w-3xl space-y-5 p-5`,onSubmit:Du(i,[`prevent`])},[W(n0,{fields:e.resource.fields,values:N(r).values,errors:N(r).errors},null,8,[`fields`,`values`,`errors`]),U(`button`,{type:`submit`,class:`m-btn m-btn-primary`,disabled:N(r).busy},O(N(r).busy?N(X)(`Saving…`):N(X)(`Save`)),9,o0)],32)],64))}}),c0={class:`mb-4 font-display text-2xl font-bold`},l0={class:`mb-4 flex flex-wrap gap-2`,role:`tablist`},u0=[`aria-selected`,`onClick`],d0={class:`ml-1 text-xs opacity-75`},f0={key:0,class:`m-error mb-3`,role:`alert`},p0={key:1,class:`m-card p-5 text-sm text-muted`},m0={key:2,class:`space-y-3`},h0=[`aria-expanded`,`onClick`],g0=[`title`],_0={class:`min-w-0 flex-1`},v0={class:`block truncate font-semibold`},y0={class:`font-normal text-muted`},b0={class:`block truncate text-sm text-muted`},x0={class:`shrink-0 text-xs text-muted`},S0={key:0,class:`space-y-4 border-t border-line p-4 text-sm`},C0={key:0,class:`m-error`},w0={key:1,class:`whitespace-pre-line`},T0={key:2,class:`grid gap-1`},E0={class:`inline text-muted`},D0={class:`inline font-medium`},O0={key:0},k0={class:`inline text-muted`},A0={class:`inline font-medium`},j0={class:`flex flex-wrap gap-2`},M0=[`href`],N0=[`href`],P0=[`href`],F0=[`onClick`],I0=[`onClick`],L0=[`disabled`,`onClick`],R0=[`disabled`,`onClick`],z0={key:3,class:`space-y-1`},B0={class:`text-xs text-muted`},V0=[`onSubmit`],H0=[`onUpdate:modelValue`,`placeholder`,`aria-label`],U0=[`disabled`],W0={key:5,class:`space-y-2 border-t border-line pt-3`},G0={class:`text-xs text-muted`},K0={key:0,class:`list-disc pl-5 text-xs text-muted`},q0={class:`flex flex-wrap gap-2`},J0=[`onClick`],Y0=[`onClick`],X0=[`onClick`],Z0=[`onClick`],Q0=[`onClick`],$0=[`onClick`],ev=[`onClick`],tv={key:3,class:`m-card mt-8 p-4`},nv={class:`mb-1 font-semibold`},rv={class:`mb-3 text-sm text-muted`},iv={class:`grid gap-6 text-sm sm:grid-cols-2`},av={class:`mb-1 font-medium`},ov={class:`mb-1 font-medium`},sv={class:`truncate`},cv={class:`shrink-0`},lv={key:0,class:`text-muted`},uv={key:0,class:`text-muted`},dv={key:0},fv={class:`mb-1 font-medium`},pv={class:`truncate`},mv={key:4,class:`m-card mt-8 p-4`},hv={class:`mb-2 font-semibold`},gv={class:`divide-y divide-line text-sm`},_v={key:0,class:`text-muted`},vv=[`onClick`],yv=I({__name:`LeadsInbox`,props:{view:{},items:{},counts:{},open:{},blocks:{},can:{},report:{}},setup(e){let t=e,n=`${J.base}/leads`,r=M(t.open),i=an({}),a=M(``),o=pc(()=>[[`waiting`,X(`Waiting`)],[`handled`,X(`Handled`)],...t.can.manage?[[`other`,X(`Other`)],[`spam`,X(`Spam`)]]:[]]),s=e=>new Date(e).toLocaleString(J.locale===`nl`?`nl-NL`:`en-GB`,{dateStyle:`medium`,timeStyle:`short`});async function c(e){r.value=r.value===e.id?null:e.id,r.value===e.id&&e.is_new&&(await Y.post(`${n}/${e.id}/opened`),e.is_new=!1)}async function l(e,t){a.value=``;try{await e(),t&&$(t),await l4()}catch(e){if(e instanceof Gu&&e.status===422)a.value=e.errors?.message??Object.values(e.errors??{})[0]??X(`This could not be done.`);else throw e}}let u=(e,t)=>l(()=>Y.put(`${n}/${e.id}/handled`,{handled:!e.handled||!!t,outcome:t}),X(`Saved.`)),d=e=>l(async()=>{await Y.post(`${n}/${e.id}/notes`,{text:i[e.id]}),i[e.id]=``},X(`Note saved.`)),f=(e,t)=>l(()=>Y.put(`${n}/${e.id}/folder`,{folder:t}),X(`Moved.`)),p=(e,t)=>l(()=>Y.post(`${n}/${e.id}/block`,{type:t}),X(`Blocked.`)),m=e=>l(()=>Y.delete(`${n}/blocks/${e.id}`),X(`The block is lifted.`)),h=e=>window.confirm(X(`Are you sure?`))&&l(()=>Y.delete(`${n}/${e.id}`),X(`Deleted.`)),g=e=>c4(`${n}${e===`waiting`?``:`?view=`+e}`);return(t,n)=>(B(),V(R,null,[U(`h1`,c0,O(N(X)(`Requests`)),1),U(`div`,l0,[(B(!0),V(R,null,L(o.value,([t,n])=>(B(),V(`button`,{key:t,type:`button`,role:`tab`,"aria-selected":e.view===t,class:D([`m-btn`,e.view===t?`m-btn-primary`:`m-btn-secondary`]),onClick:e=>g(t)},[G(O(n)+` `,1),U(`span`,d0,O(e.counts[t]),1)],10,u0))),128))]),a.value?(B(),V(`p`,f0,O(a.value),1)):K(``,!0),e.items.length?(B(),V(`ul`,m0,[(B(!0),V(R,null,L(e.items,t=>(B(),V(`li`,{key:t.id,class:`m-card`},[U(`button`,{type:`button`,class:`flex w-full items-center gap-3 p-4 text-left`,"aria-expanded":r.value===t.id,onClick:e=>c(t)},[t.is_new?(B(),V(`span`,{key:0,class:`h-2.5 w-2.5 shrink-0 rounded-full bg-accent`,title:N(X)(`New`)},null,8,g0)):K(``,!0),U(`span`,_0,[U(`span`,v0,[G(O(t.name)+` `,1),U(`span`,y0,`· `+O(t.subject),1)]),U(`span`,b0,O(t.message??t.kind),1)]),U(`span`,x0,O(s(t.created_at)),1)],8,h0),r.value===t.id?(B(),V(`div`,S0,[t.notify_failed?(B(),V(`p`,C0,O(N(X)(`The mail about this request could not be sent.`)),1)):K(``,!0),t.message?(B(),V(`p`,w0,O(t.message),1)):K(``,!0),Object.keys(t.answers).length||t.location?(B(),V(`dl`,T0,[(B(!0),V(R,null,L(t.answers,(e,t)=>(B(),V(`div`,{key:t},[U(`dt`,E0,O(t)+`: `,1),U(`dd`,D0,O(e),1)]))),128)),t.location?(B(),V(`div`,O0,[U(`dt`,k0,O(N(X)(`Where`))+`: `,1),U(`dd`,A0,O(t.location),1)])):K(``,!0)])):K(``,!0),U(`div`,j0,[t.call_link?(B(),V(`a`,{key:0,href:t.call_link,class:`m-btn m-btn-primary`},O(N(X)(`Call`)),9,M0)):K(``,!0),t.whatsapp_link?(B(),V(`a`,{key:1,href:t.whatsapp_link,target:`_blank`,rel:`noopener`,class:`m-btn m-btn-secondary`},`WhatsApp`,8,N0)):K(``,!0),t.mail_link?(B(),V(`a`,{key:2,href:t.mail_link,class:`m-btn m-btn-secondary`},O(N(X)(`Mail`)),9,P0)):K(``,!0),e.can.handle&&!t.handled&&t.folder!==`spam`?(B(),V(`button`,{key:3,type:`button`,class:`m-btn m-btn-secondary`,onClick:e=>u(t)},O(N(X)(`Handled`)),9,F0)):K(``,!0),e.can.handle&&t.handled?(B(),V(R,{key:4},[U(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:e=>u(t)},O(N(X)(`Back to waiting`)),9,I0),U(`button`,{type:`button`,class:`m-btn m-btn-secondary`,disabled:t.outcome===`won`,onClick:e=>u(t,`won`)},O(N(X)(`It became a job`)),9,L0),U(`button`,{type:`button`,class:`m-btn m-btn-secondary`,disabled:t.outcome===`lost`,onClick:e=>u(t,`lost`)},O(N(X)(`No job`)),9,R0)],64)):K(``,!0)]),t.notes.length?(B(),V(`div`,z0,[(B(!0),V(R,null,L(t.notes,(e,t)=>(B(),V(`p`,{key:t,class:`rounded bg-surface-2 p-2`},[U(`span`,B0,O(e.at)+` · `+O(e.by),1),n[0]||=U(`br`,null,null,-1),G(O(e.text),1)]))),128))])):K(``,!0),e.can.handle?(B(),V(`form`,{key:4,class:`flex gap-2`,onSubmit:Du(e=>d(t),[`prevent`])},[F(U(`input`,{"onUpdate:modelValue":e=>i[t.id]=e,class:`m-input`,placeholder:N(X)(`A note for yourself`),"aria-label":N(X)(`A note for yourself`),maxlength:`2000`},null,8,H0),[[q,i[t.id]]]),U(`button`,{type:`submit`,class:`m-btn m-btn-secondary`,disabled:!i[t.id]},O(N(X)(`Add`)),9,U0)],40,V0)):K(``,!0),e.can.manage?(B(),V(`div`,W0,[U(`p`,G0,[G(O(N(X)(`Screening`))+`: `+O(t.folder),1),t.source?(B(),V(R,{key:0},[G(` · `+O(t.source),1)],64)):K(``,!0),t.ip?(B(),V(R,{key:1},[G(` · `+O(t.ip),1)],64)):K(``,!0)]),t.reasons?.length?(B(),V(`ul`,K0,[(B(!0),V(R,null,L(t.reasons,(e,t)=>(B(),V(`li`,{key:t},O(e),1))),128))])):K(``,!0),U(`div`,q0,[t.folder===`inbox`?K(``,!0):(B(),V(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary`,onClick:e=>f(t,`inbox`)},O(N(X)(`It is a real request`)),9,J0)),t.folder===`inbox`?(B(),V(`button`,{key:1,type:`button`,class:`m-btn m-btn-secondary`,onClick:e=>f(t,`other`)},O(N(X)(`This is not a request`)),9,Y0)):K(``,!0),t.email?(B(),V(`button`,{key:2,type:`button`,class:`m-btn m-btn-secondary`,onClick:e=>p(t,`email`)},O(N(X)(`Block this address`)),9,X0)):K(``,!0),t.email?(B(),V(`button`,{key:3,type:`button`,class:`m-btn m-btn-secondary`,onClick:e=>p(t,`domain`)},O(N(X)(`Block its domain`)),9,Z0)):K(``,!0),t.phone?(B(),V(`button`,{key:4,type:`button`,class:`m-btn m-btn-secondary`,onClick:e=>p(t,`phone`)},O(N(X)(`Block this number`)),9,Q0)):K(``,!0),t.ip?(B(),V(`button`,{key:5,type:`button`,class:`m-btn m-btn-secondary`,onClick:e=>p(t,`ip`)},O(N(X)(`Block the sender address`)),9,$0)):K(``,!0)])])):K(``,!0),e.can.delete?(B(),V(`button`,{key:6,type:`button`,class:`m-btn m-btn-danger`,onClick:e=>h(t)},O(N(X)(`Delete`)),9,ev)):K(``,!0)])):K(``,!0)]))),128))])):(B(),V(`p`,p0,O(N(X)(`Nothing here yet.`)),1)),e.report?(B(),V(`section`,tv,[U(`h2`,nv,O(N(X)(`What it brought in`)),1),U(`p`,rv,O(N(X)(`The last :days days`,{days:e.report.days}))+`: `+O(e.report.requests)+` `+O(N(X)(`requests`))+`, `+O(e.report.won)+` `+O(N(X)(`became a job`))+`, `+O(e.report.kept_away.other+e.report.kept_away.spam)+` `+O(N(X)(`kept away by the screening`))+`. `,1),U(`div`,iv,[U(`div`,null,[U(`h3`,av,O(N(X)(`Ways in`)),1),U(`ul`,null,[(B(!0),V(R,null,L(e.report.ways,e=>(B(),V(`li`,{key:e.name,class:`flex justify-between`},[U(`span`,null,O(e.name),1),U(`strong`,null,O(e.count),1)]))),128))])]),(B(!0),V(R,null,L([[N(X)(`Pages`),e.report.pages],[N(X)(`Sources`),e.report.sources],[N(X)(`About`),e.report.subjects]],([e,t])=>(B(),V(`div`,{key:e},[U(`h3`,ov,O(e),1),U(`ul`,null,[(B(!0),V(R,null,L(t,e=>(B(),V(`li`,{key:e.name,class:`flex justify-between gap-3`},[U(`span`,sv,O(e.name),1),U(`span`,cv,[U(`strong`,null,O(e.count),1),e.won?(B(),V(`span`,lv,` (`+O(e.won)+` ✓)`,1)):K(``,!0)])]))),128)),t.length?K(``,!0):(B(),V(`li`,uv,`—`))])]))),128)),e.report.tap_pages.length?(B(),V(`div`,dv,[U(`h3`,fv,O(N(X)(`Where the buttons are pressed`)),1),U(`ul`,null,[(B(!0),V(R,null,L(e.report.tap_pages,e=>(B(),V(`li`,{key:e.name,class:`flex justify-between gap-3`},[U(`span`,pv,O(e.name),1),U(`strong`,null,O(e.count),1)]))),128))])])):K(``,!0)])])):K(``,!0),e.blocks?.length?(B(),V(`section`,mv,[U(`h2`,hv,O(N(X)(`Blocked senders`)),1),U(`ul`,gv,[(B(!0),V(R,null,L(e.blocks,e=>(B(),V(`li`,{key:e.id,class:`flex items-center justify-between gap-3 py-2`},[U(`span`,null,[G(O(e.type)+`: `,1),U(`strong`,null,O(e.value),1),e.expires_at?(B(),V(`span`,_v,` · `+O(N(X)(`until`))+` `+O(s(e.expires_at)),1)):K(``,!0)]),U(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:t=>m(e)},O(N(X)(`Lift`)),9,vv)]))),128))])])):K(``,!0)],64))}}),bv={class:`font-display mb-2 text-2xl font-bold`},xv={class:`mb-6 text-sm text-muted`},Sv={key:0,class:`m-card p-5 text-sm text-muted`},Cv={key:1,class:`space-y-4`},wv={class:`font-display text-lg font-bold`},Tv={key:0,class:`ml-2 text-sm font-normal text-muted`},Ev={key:0,class:`text-sm font-semibold`},Dv={class:`mt-1 list-disc space-y-1 pl-5 text-sm`},Ov=I({__name:`UpdatesList`,props:{releases:{}},setup(e){let t=e;return(e,n)=>(B(),V(R,null,[U(`h1`,bv,O(N(X)(`Updates`)),1),U(`p`,xv,O(N(X)(`What changed on your website`)),1),t.releases.length?(B(),V(`div`,Cv,[(B(!0),V(R,null,L(t.releases,e=>(B(),V(`section`,{key:e.version,class:`m-card p-5`},[U(`h2`,wv,[G(O(e.version)+` `,1),e.date?(B(),V(`span`,Tv,O(e.date),1)):K(``,!0)]),(B(!0),V(R,null,L(e.sections,(e,t)=>(B(),V(`div`,{key:t,class:`mt-3`},[e.title?(B(),V(`h3`,Ev,O(e.title),1)):K(``,!0),U(`ul`,Dv,[(B(!0),V(R,null,L(e.items,(e,t)=>(B(),V(`li`,{key:t},O(e),1))),128))])]))),128))]))),128))])):(B(),V(`p`,Sv,O(N(X)(`No changes recorded yet.`)),1))],64))}}),kv={class:`font-display mb-2 text-2xl font-bold`},Av={class:`mb-6 text-sm text-muted`},jv={class:`m-card mb-6 divide-y divide-line`},Mv={class:`font-semibold`},Nv={class:`text-xs text-muted`},Pv={class:`text-xs text-muted`},Fv={key:0,class:`flex gap-2`},Iv=[`onClick`],Lv=[`onClick`],Rv={class:`mb-3 font-semibold`},zv={key:0,class:`m-card p-5 text-sm text-muted`},Bv={key:1,class:`m-card divide-y divide-line`},Vv={class:`min-w-0`},Hv={class:`truncate font-semibold`},Uv={class:`truncate text-xs text-muted`},Wv={class:`m-badge`},Gv=I({__name:`SharingPage`,props:{live:{type:Boolean},platforms:{},shares:{},notice:{}},setup(e){let t=e,n={connected:[`The account is connected.`,!1],denied:[`The network did not give permission, or it was cancelled.`,!0],failed:[`Connecting did not complete. Try again.`,!0],state:[`Connecting did not complete. Try again.`,!0]};aa(()=>{t.notice&&n[t.notice]&&$(X(n[t.notice][0]),n[t.notice][1])});let r=e=>window.location.assign(`${J.base}/sharing/${e}/connect`);async function i(e){window.confirm(X(`Are you sure?`))&&(await Y.delete(`${J.base}/sharing/${e}`),$(X(`The account is disconnected. What was shared stays where it is.`)),await l4())}return(e,n)=>(B(),V(R,null,[U(`h1`,kv,O(N(X)(`Sharing`)),1),U(`p`,Av,O(t.live?N(X)(`Posts are shared for real.`):N(X)(`Dry run: nothing is sent to the networks. Turn on "Post for real" under Settings when the site is live.`)),1),U(`section`,jv,[(B(!0),V(R,null,L(t.platforms,e=>(B(),V(`div`,{key:e.platform,class:`flex flex-wrap items-center justify-between gap-3 p-4`},[U(`div`,null,[U(`p`,Mv,O(e.label),1),U(`p`,Nv,[e.connected?(B(),V(R,{key:0},[G(O(N(X)(`Connected`))+O(e.account?` · `+e.account:``),1)],64)):e.can_connect?(B(),V(R,{key:1},[G(O(N(X)(`Not connected`)),1)],64)):(B(),V(R,{key:2},[G(O(N(X)(`Fill in under Settings:`))+` `+O(e.missing),1)],64))]),U(`p`,Pv,[G(O(N(X)(`Return address for the app`))+`: `,1),U(`code`,null,O(e.callback_url),1)])]),N(J).permissions.includes(`sharing.manage`)?(B(),V(`div`,Fv,[e.can_connect?(B(),V(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary`,onClick:t=>r(e.platform)},O(e.connected?N(X)(`Connect again`):N(X)(`Connect`)),9,Iv)):K(``,!0),e.connected?(B(),V(`button`,{key:1,type:`button`,class:`m-btn m-btn-secondary`,onClick:t=>i(e.platform)},O(N(X)(`Disconnect`)),9,Lv)):K(``,!0)])):K(``,!0)]))),128))]),U(`h2`,Rv,O(N(X)(`Recently shared`)),1),t.shares.length?(B(),V(`ul`,Bv,[(B(!0),V(R,null,L(t.shares,e=>(B(),V(`li`,{key:e.id,class:`flex items-center justify-between gap-3 p-4 text-sm`},[U(`div`,Vv,[U(`p`,Hv,O(e.post_title),1),U(`p`,Uv,[G(O(e.platform)+` · `+O(e.at),1),e.error?(B(),V(R,{key:0},[G(` · `+O(e.error),1)],64)):K(``,!0)])]),U(`span`,Wv,O(e.dry_run?N(X)(`Dry run`):e.status===`shared`?N(X)(`Shared`):N(X)(`Failed`)),1)]))),128))])):(B(),V(`p`,zv,O(N(X)(`Nothing has been shared yet.`)),1))],64))}}),Kv={class:`font-display mb-2 text-2xl font-bold`},qv={class:`mb-6 text-sm text-muted`},Jv={class:`grid gap-3 sm:grid-cols-3`},Yv={class:`m-card p-4`},Xv={class:`text-muted`},Zv={class:`text-2xl font-bold`},Qv={class:`text-sm text-muted`},$v={class:`m-card p-4`},ey={class:`text-muted`},ty={class:`text-2xl font-bold`},ny={class:`text-sm text-muted`},ry={class:`m-card p-4`},iy={class:`text-muted`},ay={class:`text-2xl font-bold`},oy={key:0,class:`text-sm text-muted`},sy={class:`m-card mt-3 p-4`},cy={class:`flex justify-between`},ly={key:0,class:`flex justify-between text-muted`},uy={class:`mt-1 flex justify-between text-lg`},dy={key:0,class:`mt-2 text-sm text-muted`},fy={key:1,class:`mt-1 text-sm text-muted`},py={key:2,class:`m-card mt-6 p-5 text-sm text-muted`},my={class:`font-display text-lg font-bold`},hy={key:0,class:`ml-2 text-sm font-normal text-muted`},gy={class:`float-right text-base`},_y={class:`mt-3 divide-y divide-line text-sm`},vy={class:`min-w-0`},yy={class:`text-muted`},by={class:`shrink-0 text-muted`},xy={class:`mt-6 text-xs text-muted`},Sy=I({__name:`CostsView`,props:{groups:{},costs:{},totals:{},source:{}},setup(e){let t=e=>e===null?`—`:new Intl.NumberFormat(void 0,{style:`currency`,currency:`EUR`}).format(e),n=e=>new Intl.NumberFormat().format(e);return(r,i)=>(B(),V(R,null,[U(`h1`,Kv,O(N(X)(`What it cost`)),1),U(`p`,qv,O(N(X)(`What was built, and what it cost`)),1),U(`div`,Jv,[U(`div`,Yv,[U(`p`,Xv,O(N(X)(`The work`)),1),U(`p`,Zv,O(t(e.costs.work_eur)),1),U(`p`,Qv,O(N(X)(`:hours hours at :rate an hour`,{hours:e.costs.hours,rate:t(e.costs.hourly_rate)})),1)]),U(`div`,$v,[U(`p`,ey,O(N(X)(`The AI model`)),1),U(`p`,ty,O(t(e.costs.ai_eur)),1),U(`p`,ny,O(N(X)(`:count tokens`,{count:n(e.totals.tokens)})),1)]),U(`div`,ry,[U(`p`,iy,O(N(X)(`Hosting`)),1),U(`p`,ay,O(t(e.costs.hosting.eur)),1),e.costs.hosting.from?(B(),V(`p`,oy,O(N(X)(`:amount a year, from :day`,{amount:t(e.costs.hosting.per_year),day:e.costs.hosting.from})),1)):K(``,!0)])]),U(`div`,sy,[U(`p`,cy,[U(`span`,null,O(N(X)(`Total`)),1),U(`b`,null,O(t(e.costs.total_eur)),1)]),e.costs.discount?(B(),V(`p`,ly,[U(`span`,null,O(N(X)(`:percent% discount on the work, until :day`,{percent:e.costs.discount.percent,day:e.costs.discount.until})),1),U(`span`,null,`− `+O(t(e.costs.discount.eur)),1)])):K(``,!0),U(`p`,uy,[U(`span`,null,O(N(X)(`To pay`)),1),U(`b`,null,O(t(e.costs.due_eur)),1)])]),e.costs.without_hours?(B(),V(`p`,dy,O(N(X)(`:count pieces of work have no hours yet.`,{count:e.costs.without_hours})),1)):K(``,!0),e.totals.unpriced?(B(),V(`p`,fy,O(N(X)(`:count pieces of work could not be priced yet.`,{count:e.totals.unpriced})),1)):K(``,!0),e.groups.length?K(``,!0):(B(),V(`p`,py,O(N(X)(`No work has been recorded yet.`)),1)),(B(!0),V(R,null,L(e.groups,e=>(B(),V(`section`,{key:e.version??`open`,class:`m-card mt-4 p-5`},[U(`h2`,my,[G(O(e.version??N(X)(`Not released yet`))+` `,1),e.date?(B(),V(`span`,hy,O(e.date),1)):K(``,!0),U(`span`,gy,O(t(e.eur+e.work_eur)),1)]),U(`ul`,_y,[(B(!0),V(R,null,L(e.items,(e,n)=>(B(),V(`li`,{key:n,class:`flex items-baseline justify-between gap-3 py-2`},[U(`span`,vy,[U(`span`,yy,O(e.date),1),G(` `+O(e.name),1)]),U(`span`,by,O(t((e.eur??0)+(e.work_eur??0))),1)]))),128))])]))),128)),U(`p`,xy,O(e.source===`config`?N(X)(`Priced with the fixed rates of the site.`):e.source===`mixed`?N(X)(`Priced with the price of each day, and for some rows with the fixed rates of the site.`):N(X)(`Priced with the price list and the euro rate of the day of each row.`)),1)],64))}}),Cy={class:`font-display mb-4 text-2xl font-bold`},wy=[`aria-label`],Ty={class:`mb-3 text-lg font-bold`},Ey={key:0,class:`m-card mb-5 p-4 text-muted`},Dy={class:`grid grid-cols-2 gap-3`},Oy={class:`m-card col-span-2 p-4`},ky={class:`text-muted`},Ay={class:`text-4xl font-bold`},jy={key:0,class:`text-muted`},My={class:`text-muted`},Ny={key:0,class:`m-card col-span-2 p-4`},Py={class:`text-muted`},Fy={class:`text-4xl font-bold`},Iy={key:0,class:`text-muted`},Ly={class:`m-card p-4`},Ry={class:`text-muted`},zy={class:`text-3xl font-bold`},By={class:`m-card p-4`},Vy={class:`text-muted`},Hy={class:`text-3xl font-bold`},Uy={key:1,class:`mt-8`},Wy={class:`mb-1 text-lg font-bold`},Gy={key:0,class:`mb-3 text-muted`},Ky={class:`m-card p-4`},qy=[`aria-label`],Jy=[`title`],Yy={class:`mt-2 flex justify-between text-sm text-muted`},Xy={key:2,class:`mt-8`},Zy={class:`mb-3 text-lg font-bold`},Qy={class:`m-card divide-y divide-line`},$y={class:`flex items-baseline justify-between gap-3`},e2={class:`min-w-0 break-words font-semibold`},t2={class:`shrink-0 text-muted`},n2={key:3,class:`mt-8`},r2={class:`mb-3 text-lg font-bold`},i2={class:`m-card divide-y divide-line`},a2={class:`flex items-baseline justify-between gap-3`},o2={class:`min-w-0 font-semibold`},s2={class:`shrink-0 text-muted`},c2={key:4,class:`mt-8`},l2={class:`mb-3 text-lg font-bold`},u2={class:`m-card divide-y divide-line`},d2={class:`min-w-0 font-semibold`},f2={class:`shrink-0 text-muted`},p2={key:5,class:`mt-8`},m2={class:`mb-3 text-lg font-bold`},h2={class:`m-card divide-y divide-line`},g2={class:`min-w-0 font-semibold`},_2={class:`shrink-0 text-muted`},v2={class:`mt-8 text-sm text-muted`},y2=I({__name:`NumbersView`,props:{period:{},periods:{},visitors:{},visitors_before:{},page_views:{},steps:{},pages:{},found:{},articles:{},contact:{},requests:{}},setup(e){let t=e,n=pc(()=>{if(t.visitors_before===null)return``;let e=t.visitors-t.visitors_before;return e===0?X(`The same as :period.`,{period:t.period.before}):X(e>0?`:count more than :period.`:`:count fewer than :period.`,{count:Math.abs(e),period:t.period.before})}),r=pc(()=>Math.max(1,...t.steps.map(e=>e.visitors))),i=pc(()=>t.steps.reduce((e,t)=>e===null||t.visitors>e.visitors?t:e,null)),a=(e,t)=>`${Math.round(e/Math.max(1,...t)*100)}%`,o=pc(()=>t.visitors===0&&(t.contact?.calls??0)===0&&(t.contact?.whatsapp??0)===0&&(t.requests?.count??0)===0);return(t,s)=>(B(),V(R,null,[U(`h1`,Cy,O(N(X)(`Numbers`)),1),U(`nav`,{class:`mb-5 flex flex-wrap gap-2`,"aria-label":N(X)(`Period`)},[(B(!0),V(R,null,L(e.periods,t=>(B(),H(Z,{key:t.key,href:`${N(J).base}/numbers?range=${t.key}`,class:D([`m-btn`,t.key===e.period.key?`m-btn-primary`:`m-btn-secondary`]),"aria-current":t.key===e.period.key?`true`:void 0},{default:P(()=>[G(O(t.button),1)]),_:2},1032,[`href`,`class`,`aria-current`]))),128))],8,wy),U(`h2`,Ty,O(e.period.label),1),o.value?(B(),V(`p`,Ey,O(N(X)(`Nothing has been counted in this period yet. As soon as people visit the site, you will see it here.`)),1)):K(``,!0),U(`div`,Dy,[U(`div`,Oy,[U(`p`,ky,O(N(X)(`Visitors`)),1),U(`p`,Ay,O(e.visitors),1),n.value?(B(),V(`p`,jy,O(n.value),1)):K(``,!0),U(`p`,My,O(N(X)(`Together they looked at :count pages.`,{count:e.page_views})),1)]),e.requests?(B(),V(`div`,Ny,[U(`p`,Py,O(N(X)(`Requests through the site`)),1),U(`p`,Fy,O(e.requests.count),1),e.requests.count?(B(),V(`p`,Iy,[e.requests.won?(B(),V(R,{key:0},[G(O(N(X)(`:count became a job.`,{count:e.requests.won})),1)],64)):K(``,!0),e.requests.waiting?(B(),V(R,{key:1},[G(O(N(X)(`:count still wait for an answer.`,{count:e.requests.waiting})),1)],64)):K(``,!0)])):K(``,!0),e.requests.waiting?(B(),H(Z,{key:1,href:`${N(J).base}/leads`,class:`m-btn m-btn-secondary mt-3`},{default:P(()=>[G(O(N(X)(`To the requests`)),1)]),_:1},8,[`href`])):K(``,!0)])):K(``,!0),e.contact?(B(),V(R,{key:1},[U(`div`,Ly,[U(`p`,Ry,O(N(X)(`Taps on Call`)),1),U(`p`,zy,O(e.contact.calls),1)]),U(`div`,By,[U(`p`,Vy,O(N(X)(`Taps on WhatsApp`)),1),U(`p`,Hy,O(e.contact.whatsapp),1)])],64)):K(``,!0)]),e.visitors>0?(B(),V(`section`,Uy,[U(`h2`,Wy,O(e.period.key===`12m`?N(X)(`Visitors per month`):N(X)(`Visitors per day`)),1),i.value&&i.value.visitors>0?(B(),V(`p`,Gy,O(N(X)(`Busiest: :when, with :count visitors.`,{when:i.value.label,count:i.value.visitors})),1)):K(``,!0),U(`div`,Ky,[U(`div`,{class:`flex h-36 items-end gap-px`,role:`img`,"aria-label":N(X)(`Visitors`)},[(B(!0),V(R,null,L(e.steps,(e,t)=>(B(),V(`div`,{key:t,class:`min-w-0 flex-1 rounded-t bg-brand`,style:ve({height:e.visitors>0?`${Math.max(4,Math.round(e.visitors/r.value*100))}%`:`2px`,opacity:e.visitors>0?1:.35}),title:`${e.label}: ${e.visitors}`},null,12,Jy))),128))],8,qy),U(`div`,Yy,[U(`span`,null,O(e.steps[0]?.label),1),U(`span`,null,O(e.steps[e.steps.length-1]?.label),1)])])])):K(``,!0),e.pages.length?(B(),V(`section`,Xy,[U(`h2`,Zy,O(N(X)(`Most viewed pages`)),1),U(`ul`,Qy,[(B(!0),V(R,null,L(e.pages,t=>(B(),V(`li`,{key:t.path,class:`p-4`},[U(`div`,$y,[U(`span`,e2,O(t.name),1),U(`span`,t2,O(N(X)(`:count times`,{count:t.views})),1)]),U(`div`,{class:`mt-2 h-1.5 rounded-full bg-brand`,style:ve({width:a(t.views,e.pages.map(e=>e.views))}),"aria-hidden":`true`},null,4)]))),128))])])):K(``,!0),e.found.length?(B(),V(`section`,n2,[U(`h2`,r2,O(N(X)(`How people find you`)),1),U(`ul`,i2,[(B(!0),V(R,null,L(e.found,t=>(B(),V(`li`,{key:t.name,class:`p-4`},[U(`div`,a2,[U(`span`,o2,O(t.name),1),U(`span`,s2,O(N(X)(`:count times`,{count:t.visits})),1)]),U(`div`,{class:`mt-2 h-1.5 rounded-full bg-brand`,style:ve({width:a(t.visits,e.found.map(e=>e.visits))}),"aria-hidden":`true`},null,4)]))),128))])])):K(``,!0),e.requests&&e.requests.subjects.length?(B(),V(`section`,c2,[U(`h2`,l2,O(N(X)(`What the requests were about`)),1),U(`ul`,u2,[(B(!0),V(R,null,L(e.requests.subjects,e=>(B(),V(`li`,{key:e.name,class:`flex items-baseline justify-between gap-3 p-4`},[U(`span`,d2,O(e.name),1),U(`span`,f2,O(e.count),1)]))),128))])])):K(``,!0),e.articles.length?(B(),V(`section`,p2,[U(`h2`,m2,O(N(X)(`Most read articles`)),1),U(`ul`,h2,[(B(!0),V(R,null,L(e.articles,e=>(B(),V(`li`,{key:e.title,class:`flex items-baseline justify-between gap-3 p-4`},[U(`span`,g2,O(e.title),1),U(`span`,_2,O(N(X)(`:count times`,{count:e.views})),1)]))),128))])])):K(``,!0),U(`p`,v2,[e.requests&&e.requests.kept_away?(B(),V(R,{key:0},[G(O(N(X)(`:count messages of spam or advertising were kept away from you.`,{count:e.requests.kept_away})),1)],64)):K(``,!0),G(` `+O(N(X)(`Visitors are counted without cookies. Search robots, and you yourself when you are logged in, are not counted.`)),1)])],64))}}),b2={class:`mb-6 flex items-center justify-between gap-3`},x2={class:`font-display text-2xl font-bold`},S2={key:0,class:`m-card p-5 text-sm text-muted`},C2={key:1,class:`m-card overflow-x-auto`},w2={class:`w-full text-left text-sm`},T2={class:`border-b border-line text-xs uppercase tracking-wide text-muted`},E2={key:0,class:`px-4 py-3`},D2={class:`divide-y divide-line`},O2={key:0,class:`flex justify-end gap-2 px-4 py-2`},k2=[`onClick`],A2={key:2,class:`mt-4 flex gap-2`},j2=I({__name:`RecordsIndex`,props:{resource:{},rows:{},current_page:{},last_page:{}},setup(e){let t=e,n=`${J.base}/records/${t.resource.key}`,r=e=>{let n=t.resource.fields.find(t=>t.key===e);return n?r0(n.label,n.simple_label):e};function i(e,n){let r=e.values[n],i=t.resource.fields.find(e=>e.key===n);return i?.type===`toggle`?r?`✓`:``:i?.type===`select`?i.options[r]??r:String(r??``)}async function a(e){window.confirm(X(`Are you sure?`))&&(await Y.delete(`${n}/${e.id}`),await l4())}return(t,o)=>(B(),V(R,null,[U(`div`,b2,[U(`h1`,x2,O(N(X)(N(r0)(e.resource.label,e.resource.simple_label))),1),e.resource.can_manage?(B(),H(Z,{key:0,href:n+`/create`,class:`m-btn m-btn-primary`},{default:P(()=>[G(O(N(X)(`Add`)),1)]),_:1},8,[`href`])):K(``,!0)]),e.rows.length?(B(),V(`div`,C2,[U(`table`,w2,[U(`thead`,T2,[U(`tr`,null,[(B(!0),V(R,null,L(e.resource.columns,e=>(B(),V(`th`,{key:e,class:`px-4 py-3 font-semibold`},O(N(X)(r(e))),1))),128)),e.resource.can_manage?(B(),V(`th`,E2)):K(``,!0)])]),U(`tbody`,D2,[(B(!0),V(R,null,L(e.rows,t=>(B(),V(`tr`,{key:t.id},[(B(!0),V(R,null,L(e.resource.columns,e=>(B(),V(`td`,{key:e,class:`max-w-xs truncate px-4 py-3`},O(i(t,e)),1))),128)),e.resource.can_manage?(B(),V(`td`,O2,[W(Z,{href:`${n}/${t.id}/edit`,class:`m-btn m-btn-secondary`},{default:P(()=>[G(O(N(X)(`Edit`)),1)]),_:1},8,[`href`]),U(`button`,{type:`button`,class:`m-btn m-btn-danger`,onClick:e=>a(t)},O(N(X)(`Delete`)),9,k2)])):K(``,!0)]))),128))])])])):(B(),V(`p`,S2,O(N(X)(`Nothing here yet.`)),1)),e.last_page>1?(B(),V(`nav`,A2,[e.current_page>1?(B(),H(Z,{key:0,href:`${n}?page=${e.current_page-1}`,class:`m-btn m-btn-secondary`},{default:P(()=>[G(O(N(X)(`Previous`)),1)]),_:1},8,[`href`])):K(``,!0),e.current_page[G(O(N(X)(`Next`)),1)]),_:1},8,[`href`])):K(``,!0)])):K(``,!0)],64))}}),M2={class:`mb-6 flex items-center justify-between gap-3`},N2={class:`font-display text-2xl font-bold`},P2={for:`title`,class:`m-label`},F2={key:0,class:`m-error`},I2={for:`meta`,class:`m-label`},L2={key:0,class:`m-error`},R2={for:`body`,class:`m-label`},z2={key:0,class:`m-error`},B2={class:`flex items-center gap-2 text-sm`},V2={class:`flex gap-3`},H2=[`disabled`],U2=I({__name:`PageForm`,props:{page:{}},setup(e){let t=e.page,n=Yu({title:t.title,meta_description:t.meta_description??``,...t.defined?{content:{...t.content}}:{body:t.body??``,is_published:t.is_published??!1}});async function r(){await n.send(`put`,`${J.base}/pages/${t.slug}`)&&$(X(`Saved.`))}async function i(){window.confirm(X(`Are you sure?`))&&(await Y.delete(`${J.base}/pages/${t.slug}`),c4(`${J.base}/pages`))}return(e,a)=>(B(),V(R,null,[U(`div`,M2,[U(`h1`,N2,O(N(r0)(N(t).title,N(t).simple_title)),1),W(Z,{href:N(J).base+`/pages`,class:`m-btn m-btn-secondary`},{default:P(()=>[G(O(N(X)(`Back`)),1)]),_:1},8,[`href`])]),U(`form`,{class:`m-card max-w-3xl space-y-5 p-5`,onSubmit:Du(r,[`prevent`])},[U(`div`,null,[U(`label`,P2,O(N(X)(`Title`)),1),F(U(`input`,{id:`title`,"onUpdate:modelValue":a[0]||=e=>N(n).values.title=e,required:``,maxlength:`255`,class:`m-input`},null,512),[[q,N(n).values.title]]),N(n).errors.title?(B(),V(`p`,F2,O(N(n).errors.title),1)):K(``,!0)]),U(`div`,null,[U(`label`,I2,O(N(X)(`Description for search engines`)),1),F(U(`input`,{id:`meta`,"onUpdate:modelValue":a[1]||=e=>N(n).values.meta_description=e,maxlength:`255`,class:`m-input`},null,512),[[q,N(n).values.meta_description]]),N(n).errors.meta_description?(B(),V(`p`,L2,O(N(n).errors.meta_description),1)):K(``,!0)]),N(t).defined?(B(),H(n0,{key:0,fields:N(t).fields,values:N(n).values.content,errors:N(n).errors,prefix:`content.`},null,8,[`fields`,`values`,`errors`])):(B(),V(R,{key:1},[U(`div`,null,[U(`label`,R2,O(N(X)(`Text (Markdown)`)),1),W(uf,{id:`body`,modelValue:N(n).values.body,"onUpdate:modelValue":a[2]||=e=>N(n).values.body=e},null,8,[`modelValue`]),N(n).errors.body?(B(),V(`p`,z2,O(N(n).errors.body),1)):K(``,!0)]),U(`label`,B2,[F(U(`input`,{"onUpdate:modelValue":a[3]||=e=>N(n).values.is_published=e,type:`checkbox`},null,512),[[pu,N(n).values.is_published]]),G(` `+O(N(X)(`Publish`)),1)])],64)),U(`div`,V2,[U(`button`,{type:`submit`,class:`m-btn m-btn-primary`,disabled:N(n).busy},O(N(n).busy?N(X)(`Saving…`):N(X)(`Save`)),9,H2),N(t).defined?K(``,!0):(B(),V(`button`,{key:0,type:`button`,class:`m-btn m-btn-danger`,onClick:i},O(N(X)(`Delete`)),1))])],32),N(t).id&&N(J).permissions.includes(`revisions.view`)?(B(),H(Ef,{key:0,type:`pages`,id:N(t).id},null,8,[`id`])):K(``,!0)],64))}}),W2={class:`font-display mb-6 text-2xl font-bold`},G2={class:`m-card divide-y divide-line`},K2={class:`min-w-0`},q2={class:`truncate font-semibold`},J2={class:`truncate text-xs text-muted`},Y2={class:`flex items-center gap-2`},X2={key:0,class:`m-badge`},Z2={key:0,class:`p-4 text-sm text-muted`},Q2={for:`new-title`,class:`m-label`},$2={key:0,class:`m-error`},e4={for:`new-slug`,class:`m-label`},t4={key:0,class:`m-error`},n4=[`disabled`],r4=[{pattern:/^\/?$/,component:_d,data:!0},{pattern:/^\/login$/,component:zd,guest:!0},{pattern:/^\/profile$/,component:rm,data:!0},{pattern:/^\/posts$/,component:Sp,data:!0},{pattern:/^\/posts\/create$/,component:lp,data:!0},{pattern:/^\/posts\/\d+\/edit$/,component:lp,data:!0},{pattern:/^\/media$/,component:eg,data:!0,source:`/media/items`},{pattern:/^\/audit$/,component:t_,data:!0},{pattern:/^\/settings$/,component:T_,data:!0},{pattern:/^\/leads$/,component:yv,data:!0},{pattern:/^\/updates$/,component:Ov,data:!0},{pattern:/^\/sharing$/,component:Gv,data:!0},{pattern:/^\/costs$/,component:Sy,data:!0},{pattern:/^\/numbers$/,component:y2,data:!0},{pattern:/^\/statistics$/,component:_1,data:!0},{pattern:/^\/accounts$/,component:Bm,data:!0},{pattern:/^\/groups$/,component:lh,data:!0},{pattern:/^\/labels$/,component:Ch,data:!0},{pattern:/^\/pages$/,component:I({__name:`PagesIndex`,props:{pages:{}},setup(e){let t=Yu({slug:``,title:``});async function n(){await t.send(`post`,`${J.base}/pages`)&&c4(`${J.base}/pages/${t.values.slug}`)}return(r,i)=>(B(),V(R,null,[U(`h1`,W2,O(N(X)(`Pages`)),1),U(`ul`,G2,[(B(!0),V(R,null,L(e.pages,e=>(B(),V(`li`,{key:e.slug,class:`flex items-center justify-between gap-3 p-4`},[U(`div`,K2,[U(`p`,q2,O(N(r0)(e.title,e.simple_title)),1),U(`p`,J2,`/`+O(e.slug),1)]),U(`div`,Y2,[e.defined?K(``,!0):(B(),V(`span`,X2,O(e.is_published?N(X)(`Published`):N(X)(`Draft`)),1)),W(Z,{href:`${N(J).base}/pages/${e.slug}`,class:`m-btn m-btn-secondary`},{default:P(()=>[G(O(N(X)(`Edit`)),1)]),_:1},8,[`href`])])]))),128)),e.pages.length?K(``,!0):(B(),V(`li`,Z2,O(N(X)(`Nothing here yet.`)),1))]),U(`form`,{class:`m-card mt-6 grid max-w-3xl gap-4 p-5 sm:grid-cols-[1fr_1fr_auto] sm:items-end`,onSubmit:Du(n,[`prevent`])},[U(`div`,null,[U(`label`,Q2,O(N(X)(`Title`)),1),F(U(`input`,{id:`new-title`,"onUpdate:modelValue":i[0]||=e=>N(t).values.title=e,required:``,maxlength:`255`,class:`m-input`},null,512),[[q,N(t).values.title]]),N(t).errors.title?(B(),V(`p`,$2,O(N(t).errors.title),1)):K(``,!0)]),U(`div`,null,[U(`label`,e4,O(N(X)(`Address (slug)`)),1),F(U(`input`,{id:`new-slug`,"onUpdate:modelValue":i[1]||=e=>N(t).values.slug=e,required:``,maxlength:`120`,class:`m-input`},null,512),[[q,N(t).values.slug]]),N(t).errors.slug?(B(),V(`p`,t4,O(N(t).errors.slug),1)):K(``,!0)]),U(`button`,{type:`submit`,class:`m-btn m-btn-primary`,disabled:N(t).busy},O(N(X)(`New page`)),9,n4)],32)],64))}}),data:!0},{pattern:/^\/pages\/[a-z0-9]+(?:-[a-z0-9]+)*$/,component:U2,data:!0},{pattern:/^\/records\/[a-z][a-z0-9_]*$/,component:j2,data:!0},{pattern:/^\/records\/[a-z][a-z0-9_]*\/(create|\d+\/edit)$/,component:s0,data:!0},{pattern:/^\/reviews$/,component:E1,data:!0}];function i4(e,t,n={}){r4.unshift({pattern:new RegExp(e),component:t,data:n.data,source:n.source})}var Q=an({path:``,component:null,props:{},loading:!0,forbidden:!1,tour:J.tutorial,toast:null}),a4;function $(e,t=!1){Q.toast={text:e,error:t},window.clearTimeout(a4),a4=window.setTimeout(()=>Q.toast=null,4e3)}function o4(e){return e.split(`?`)[0].slice(J.base.length)||`/`}async function s4(e){let t=r4.find(t=>t.pattern.test(o4(e)));if(!J.user&&!t?.guest)window.location.assign(J.base+`/login`);else{if(J.user&&t?.guest)return c4(J.base,!0);Q.loading=!0,Q.forbidden=!1,Q.path=e,Q.component=t?.component??bd,Q.props={};try{Q.props=t?.data?await Y.get(t.source?J.base+t.source:e):{}}catch(e){e instanceof Gu&&e.status===401?window.location.assign(J.base+`/login`):e instanceof Gu&&e.status===403?Q.forbidden=!0:$(X(`Something went wrong. Try again.`),!0)}finally{Q.loading=!1}}}function c4(e,t=!1){return window.history[t?`replaceState`:`pushState`]({},``,e),window.scrollTo(0,0),s4(e)}function l4(){return s4(Q.path)}function u4(){window.addEventListener(`popstate`,()=>s4(window.location.pathname+window.location.search));let e=window.location.pathname.replace(/\/+$/,``);J.user&&J.start&&e===J.base&&!window.sessionStorage.getItem(`manager-start`)?(window.sessionStorage.setItem(`manager-start`,`1`),c4(J.start,!0)):s4(window.location.pathname+window.location.search)}var d4=[`aria-label`],f4={key:0,class:`absolute inset-0 bg-black/60`},p4=[`aria-label`],m4={class:`flex items-start gap-3`},h4={class:`m-bob m-glow -ml-1 shrink-0 rounded-full`},g4={class:`min-w-0 pr-6`,"aria-live":`polite`},_4={class:`font-display text-lg font-bold leading-snug`},v4={class:`mt-1.5 text-sm leading-relaxed text-muted`},y4={class:`mt-4 flex items-center justify-between gap-2`},b4={class:`flex gap-1`,"aria-hidden":`true`},x4={class:`text-xs text-muted`},S4={class:`mt-4 flex flex-wrap items-center gap-2`},C4=I({__name:`Tutorial`,setup(e){let t=(J.user?.name??``).split(` `)[0],n=e=>J.navigation.some(t=>t.href.endsWith(e)),r=()=>window.matchMedia(`(min-width: 768px)`).matches;function i(e){if(!(e instanceof HTMLElement))return null;let t=e.getBoundingClientRect();return t.width>0&&t.height>0&&t.left>=0&&t.right<=window.innerWidth&&t.top>=0&&t.bottom<=window.innerHeight?e:null}let a=e=>()=>i(document.querySelector(`nav[aria-label="Manager"] a[href$="${e}"]`));function o(){let e=[{id:`welcome`,image:`welcome`,title:X(`Hi :name! Welcome!`,{name:t}),text:X(`I will show you around in a few small steps. Looking around cannot break anything, and you can stop whenever you like: press the cross.`)},{id:`menu`,image:`point`,title:X(`This is the menu`),text:X(`Everything you can do lives here. Press a name and you are there.`),target:()=>i(r()?document.querySelector(`nav[aria-label="Manager"]`):document.querySelector(`header button`))},{id:`start`,image:`calm`,title:X(`Your start page`),text:X(`Lost? Press Dashboard, at the top of the menu, and you are back here. Nice and calm.`),target:a(`/manager`)}];n(`/posts`)&&e.push({id:`posts`,image:`write`,title:X(`Write news`),text:X(`Here you write articles and news for your website. Keep it as a draft until you are happy, then put it online.`),target:a(`/posts`)}),n(`/media`)&&e.push({id:`media`,image:`photos`,title:X(`Your photos`),text:X(`All photos and files live here. Upload them once and use them in posts and pages.`),target:a(`/media`)}),n(`/pages`)&&e.push({id:`pages`,image:`pages`,title:X(`Your pages`),text:X(`Change the texts and photos of the pages of your website here.`),target:a(`/pages`)});for(let[t,n]of(J.tutorial_steps??[]).entries())e.push({id:`module-`+t,image:n.image??`point`,title:X(n.title),text:X(n.text),target:n.href?a(n.href):void 0});return J.permissions.includes(`revisions.view`)&&(n(`/posts`)||n(`/pages`))&&e.push({id:`undo`,image:`undo`,title:X(`Changed your mind?`),text:X(`Every time you save a post or a page I keep the old version. You can always put an earlier one back.`)}),e.push({id:`oops`,image:`oops`,title:X(`Something went wrong?`),text:X(`A message tells you what. Read it, fix it and try again. Nothing is deleted without asking you first.`)}),e.push({id:`profile`,image:`profile`,title:X(`Your own corner`),text:X(`Here you choose your language and your colours, and change your password.`),target:()=>i(document.querySelector(`a[href="${J.base}/profile"]`))}),e.push({id:`party`,image:`party`,title:X(`That is it!`),text:X(`Want to see this again? Press Show the tour in the menu. Have fun!`)}),e}let s=o(),c=M(0),l=pc(()=>s[c.value]),u=pc(()=>c.value===s.length-1),d=M(null),f=M(null),p=M(null),m=M(null),h=M(!1);async function g(){await ar();let e=l.value.target?.()??null;if(!e){p.value=null,m.value=null,h.value=!1,f.value?.focus();return}let t=e.getBoundingClientRect(),n=d.value?.offsetHeight??320,i=d.value?.offsetWidth??380;if(p.value={top:t.top-6,left:t.left-6,width:t.width+12,height:t.height+12},!r()){m.value=null,h.value=!1,f.value?.focus();return}let a=t.right+28;m.value={left:a+ivoid 0)}function v(e){let t=c.value+e;if(t>=s.length)return _(!0);c.value=Math.max(0,t),g()}function y(e){e.key===`Escape`?_(!1):e.key===`ArrowRight`?v(1):e.key===`ArrowLeft`&&c.value>0&&v(-1)}return aa(()=>{window.addEventListener(`keydown`,y),window.addEventListener(`resize`,g),g()}),ca(()=>{window.removeEventListener(`keydown`,y),window.removeEventListener(`resize`,g)}),(e,t)=>(B(),V(`div`,{class:`fixed inset-0 z-50`,role:`dialog`,"aria-modal":`true`,"aria-label":N(X)(`Tour`)},[p.value?(B(),V(`div`,{key:1,class:`m-spot pointer-events-none absolute rounded-xl`,style:ve({top:p.value.top+`px`,left:p.value.left+`px`,width:p.value.width+`px`,height:p.value.height+`px`})},null,4)):(B(),V(`div`,f4)),U(`div`,{ref_key:`card`,ref:d,class:D([`m-card absolute w-[min(24rem,calc(100vw-2rem))] p-5 shadow-2xl`,m.value?``:`bottom-4 left-1/2 -translate-x-1/2 md:bottom-auto md:top-1/2 md:-translate-y-1/2`]),style:ve(m.value?{top:m.value.top+`px`,left:m.value.left+`px`}:void 0)},[U(`button`,{type:`button`,class:`absolute right-3 top-3 rounded-lg p-1.5 text-muted hover:bg-text/10 hover:text-text`,"aria-label":N(X)(`Stop the tour`),onClick:t[0]||=e=>_(!1)},[...t[4]||=[U(`svg`,{class:`h-5 w-5`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"aria-hidden":`true`},[U(`path`,{d:`M6 6l12 12M18 6L6 18`})],-1)]],8,p4),U(`div`,m4,[U(`div`,h4,[(B(),H(wp,{key:l.value.image,name:l.value.image,flip:h.value,size:128},null,8,[`name`,`flip`]))]),U(`div`,g4,[U(`h2`,_4,O(l.value.title),1),U(`p`,v4,O(l.value.text),1)])]),U(`div`,y4,[U(`span`,b4,[(B(!0),V(R,null,L(N(s),(e,t)=>(B(),V(`span`,{key:t,class:D([`h-1.5 w-1.5 rounded-full`,t===c.value?`bg-brand`:`bg-line`])},null,2))),128))]),U(`span`,x4,O(c.value+1)+` / `+O(N(s).length),1)]),U(`div`,S4,[U(`button`,{type:`button`,class:`text-sm text-muted underline hover:text-text`,onClick:t[1]||=e=>_(!1)},O(N(X)(`Stop the tour`)),1),t[5]||=U(`span`,{class:`flex-1`},null,-1),c.value>0?(B(),V(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary`,onClick:t[2]||=e=>v(-1)},O(N(X)(`Back`)),1)):K(``,!0),U(`button`,{ref_key:`next`,ref:f,type:`button`,class:`m-btn m-btn-primary`,onClick:t[3]||=e=>v(1)},O(u.value?N(X)(`Done`):N(X)(`Next`)),513)])],6)],8,d4))}}),w4={class:`min-h-screen`},T4={class:`fixed inset-x-0 top-0 z-40 flex h-14 items-center justify-between border-b border-line bg-panel px-4 md:hidden`},E4={class:`font-display font-bold`},D4=[`aria-expanded`],O4={class:`hidden h-16 items-center gap-2 px-5 md:flex`},k4=[`src`],A4={class:`font-display text-lg font-bold`},j4={class:`flex-1 space-y-0.5 overflow-y-auto px-3 py-3`,"aria-label":`Manager`},M4={key:0,class:`my-3 border-line`},N4={key:1,class:`px-3 pb-1 pt-4 text-xs font-semibold uppercase tracking-wide text-muted`},P4=[`href`],F4={class:`border-t border-line p-4`},I4={class:`truncate text-sm font-semibold group-hover:text-brand`},L4={class:`truncate text-xs text-muted`},R4={key:0,class:`truncate text-xs text-muted`},z4={class:`px-4 pb-16 pt-20 md:ml-60 md:px-8 md:pt-8`},B4={class:`mx-auto max-w-5xl`},V4=I({__name:`Layout`,setup(e){let t=M(!1),n=pc(()=>{let e=[];for(let t of[{label:`Dashboard`,href:J.base,icon:`home`},...J.navigation]){let n=t.section??``,r=e[e.length-1];r&&r.title===n?r.items.push(t):e.push({title:n,items:[t]})}return e}),r=M(J.view);async function i(){await Y.put(J.base+`/profile/view`,{view:r.value===`simple`?`full`:`simple`}),window.location.assign(J.base)}function a(e){let t=Q.path.split(`?`)[0];return e===J.base?t===e:t===e||t.startsWith(e+`/`)}async function o(){let{redirect:e}=await Y.post(J.base+`/logout`);window.location.assign(e)}return Pr(()=>Q.path,()=>t.value=!1),(e,s)=>(B(),V(`div`,w4,[U(`header`,T4,[U(`span`,E4,O(N(J).name),1),U(`button`,{type:`button`,class:`m-btn m-btn-secondary`,"aria-expanded":t.value,onClick:s[0]||=e=>t.value=!t.value},O(N(X)(`Menu`)),9,D4)]),U(`aside`,{class:D([`fixed inset-y-0 left-0 z-30 flex w-60 flex-col border-r border-line bg-panel pt-14 transition-transform md:translate-x-0 md:pt-0`,t.value?`translate-x-0`:`-translate-x-full`])},[U(`div`,O4,[N(J).logo?(B(),V(`img`,{key:0,src:N(J).logo,alt:``,class:`h-7 w-auto`},null,8,k4)):K(``,!0),U(`span`,A4,O(N(J).name),1)]),U(`nav`,j4,[(B(!0),V(R,null,L(n.value,(e,t)=>(B(),V(R,{key:e.title+t},[!e.title&&t>0?(B(),V(`hr`,M4)):K(``,!0),e.title?(B(),V(`p`,N4,O(N(X)(e.title)),1)):K(``,!0),(B(!0),V(R,null,L(e.items,e=>(B(),V(R,{key:e.href},[e.new_tab?(B(),V(`a`,{key:0,href:e.href,target:`_blank`,rel:`noopener`,class:`flex items-center gap-2 rounded-lg px-3 py-2 text-sm font-medium text-muted transition hover:bg-text/5 hover:text-text`},[W(ed,{name:e.icon},null,8,[`name`]),G(O(N(X)(e.label)),1)],8,P4)):(B(),H(Z,{key:1,href:e.href,class:D([`flex items-center gap-2 rounded-lg px-3 py-2 text-sm font-medium transition`,a(e.href)?`bg-brand/15 text-text`:`text-muted hover:bg-text/5 hover:text-text`]),"aria-current":a(e.href)?`page`:void 0},{default:P(()=>[W(ed,{name:e.icon},null,8,[`name`]),G(O(N(X)(e.label)),1)]),_:2},1032,[`href`,`class`,`aria-current`]))],64))),128))],64))),128))]),U(`div`,F4,[W(Z,{href:N(J).base+`/profile`,class:`group block`},{default:P(()=>[U(`p`,I4,O(N(J).user?.name),1),U(`p`,L4,O(N(J).user?.email),1),N(J).user?.group?(B(),V(`p`,R4,O(N(J).user.group),1)):K(``,!0)]),_:1},8,[`href`]),N(J).tutorial_state?(B(),V(`button`,{key:0,type:`button`,class:`mt-2 block text-xs text-muted underline hover:text-text`,onClick:s[1]||=e=>N(Q).tour=!0},O(N(X)(`Show the tour`)),1)):K(``,!0),N(J).can_switch?(B(),V(`button`,{key:1,type:`button`,class:`m-btn m-btn-secondary mt-3 w-full justify-center`,onClick:i},O(r.value===`simple`?N(X)(`Show everything`):N(X)(`Simple view`)),1)):K(``,!0),U(`button`,{type:`button`,class:`m-btn m-btn-secondary mt-3 w-full justify-center`,onClick:o},O(N(X)(`Log out`)),1)])],2),t.value?(B(),V(`div`,{key:0,class:`fixed inset-0 z-20 bg-black/60 md:hidden`,onClick:s[2]||=e=>t.value=!1})):K(``,!0),N(Q).tour?(B(),H(C4,{key:1})):K(``,!0),U(`main`,z4,[U(`div`,B4,[Ca(e.$slots,`default`)])])]))}}),H4={key:0,class:`m-card p-5 text-sm`},U4={key:1,class:`text-sm text-muted`},W4=I({__name:`App`,setup(e){return(e,t)=>(B(),V(R,null,[N(Q).component&&!N(J).user?(B(),H(va(N(Q).component),{key:0})):N(Q).component?(B(),H(V4,{key:1},{default:P(()=>[N(Q).forbidden?(B(),V(`p`,H4,O(N(X)(`You may not open this page.`)),1)):N(Q).loading?(B(),V(`p`,U4,O(N(X)(`Loading…`)),1)):(B(),H(va(N(Q).component),Ce(zs({key:2},N(Q).props)),null,16))]),_:1})):K(``,!0),N(Q).toast?(B(),V(`div`,{key:2,role:`status`,class:D([`fixed bottom-5 right-5 z-50 rounded-lg border border-l-4 border-line bg-panel px-4 py-3 text-sm font-medium text-text shadow-xl`,N(Q).toast.error?`border-l-red-500`:`border-l-emerald-500`])},O(N(Q).toast.text),3)):K(``,!0)],64))}});Qu(J.locale),J.view===`simple`&&document.documentElement.classList.add(`is-simple`),window.IriksManager={Vue:Uu,boot:J,api:Y,t:X,flash:$,navigate:c4,register:i4,components:{Link:Z,FormFields:n0,Icon:ed,MediaPicker:Yd}};async function G4(){for(let e of J.extensions??[])try{await import(e)}catch(t){console.error(`Manager extension ${e} did not load`,t)}Lu(W4).mount(`#manager`),u4()}G4();