Files
2026-12-04 15:10:03 +00:00

9 lines
275 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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<e.length;n++)e[n](...t)},fe=(e,t,n,r=!1)=>{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;n<e.length;n++){let r=e[n],i=y(r)?Se(r):ve(r);if(i)for(let e in i)t[e]=i[e]}return t}if(y(e)||x(e))return e}var ye=/;(?![^(]*\))/g,be=/:([^]+)/,xe=/"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;function Se(e){let t={};return e.replace(xe,e=>e.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;n<e.length;n++){let r=D(e[n]);r&&(t+=r+` `)}else if(x(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}function Ce(e){if(!e)return null;let{class:t,style:n}=e;return t&&!y(t)&&(e.class=D(t)),n&&(e.style=ve(n)),e}var we=`itemscope,allowfullscreen,disablepictureinpicture,disableremoteplayback,formnovalidate,ismap,nomodule,novalidate,playsinline,readonly`,Te=n(we);we+``;function Ee(e){return!!e||e===``}function De(e,t,n){if(e.length!==t.length)return!1;let r=!0;for(let i=0;r&&i<e.length;i++)r=je(e[i],t[i],n);return r}function Oe(e,t,n){if(e.size!==t.size)return!1;let r=Array.from(t),i=new Uint8Array(r.length);for(let t of e){let e=-1;for(let a=0;a<r.length;a++)if(!i[a]&&je(t,r[a],n)){e=a;break}if(e<0)return!1;i[e]=1}return!0}function ke(e,t,n){let r=m(e),i=m(t);if(r||i||(r=h(e),i=h(t),r||i))return r&&i?Oe(e,t,n):!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e){let i=f(e,r),a=f(t,r);if(i&&!a||!i&&a||!je(e[r],t[r],n))return!1}return Ne(e)===Ne(t)}function Ae(e,t,n,r){n||=[new Map,new Map];let[i,a]=n;if(i.has(e)||a.has(t))return i.get(e)===t&&a.get(t)===e;i.set(e,t),a.set(t,e);let o=r(e,t,n);return i.delete(e),a.delete(t),o}function je(e,t,n){if(e===t)return!0;let r=g(e),i=g(t);return r||i?r&&i?e.getTime()===t.getTime():!1:(r=b(e),i=b(t),r||i?e===t:(r=p(e),i=p(t),r||i?r&&i?Ae(e,t,n,De):!1:(r=x(e),i=x(t),r||i?!r||!i?!1:Ae(e,t,n,ke):String(e)===String(t))))}function Me(e,t){return e.findIndex(e=>je(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;e<t;e++)n[e].pause()}for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}let n=this.effects.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}}run(e){if(this._active){let t=Re;try{return Re=this,e()}finally{Re=t}}}on(){++this._on===1&&(this.prevScope=Re,Re=this)}off(){if(this._on>0&&--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;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){let e=this.scopes.slice();for(t=0,n=e.length;t<n;t++)e[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}};function Be(e){return new ze(e)}function Ve(){return Re}function He(e,t=!1){Re&&(Re.active?Re.cleanups.push(e):e())}var k,Ue=new WeakSet,We=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Re&&(Re.active?Re.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ue.has(this)&&(Ue.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Je(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,lt(this),Ze(this);let e=k,t=at;k=this,at=!0;try{return this.fn()}finally{Qe(this),k=e,at=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)tt(e);this.deps=this.depsTail=void 0,lt(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ue.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){$e(this)&&this.run()}get dirty(){return $e(this)}},Ge=0,Ke,qe;function Je(e,t=!1){e.flags|=8,t?(e.next=qe,qe=e):(e.next=Ke,Ke=e)}function Ye(){Ge++}function Xe(){if(--Ge>0)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.length:f(e,t),s=Reflect.set(e,t,n,j(e)?e:r);return e===A(r)&&s&&(o?ue(n,i)&&yt(e,`set`,t,n,i):yt(e,`add`,t,n)),s}deleteProperty(e,t){let n=f(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&yt(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return b(t)&&Pt.has(t)||vt(e,`has`,t),n}ownKeys(e){return vt(e,`iterate`,p(e)?`length`:ht),Reflect.ownKeys(e)}},Rt=class extends It{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},zt=new Lt,Bt=new Rt,Vt=new Lt(!0),Ht=new Rt(!0),Ut=e=>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<r.length;e++){let i=r[e];Vn(j(i)?i:hn(i),t,n)}}else for(let r=0;r<e.length;r++)Vn(e[r],t,n)}else if(h(e)||m(e))e.forEach(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<e.length;a++)i.push(Yn(e[a],t,n,r));return i}}function Xn(e,t,n,i=!0,a=!1){let o=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:c}=t&&t.appContext.config||r;if(t){let r=t.parent,i=t.proxy,o=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){let t=r.ec;if(t&&!r.isUnmounted&&(!a||r.scope.active)){for(let n=0;n<t.length;n++)if(t[n](e,i,o)===!1)return}r=r.parent}if(s){st(),Jn(s,null,10,[e,i,o]),ct();return}}Zn(e,n,o,i,c)}function Zn(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}var Qn=[],$n=-1,er=[],tr=null,nr=0,rr=Promise.resolve(),ir=null;function ar(e){let t=ir||rr;return e?t.then(this?e.bind(this):e):t}function or(e){let t=$n+1,n=Qn.length;for(;t<n;){let r=t+n>>>1,i=Qn[r],a=mr(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function sr(e){if(!(e.flags&1)){let t=mr(e),n=Qn[Qn.length-1];!n||!(e.flags&2)&&t>=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<e.length;t++)er.push(e[t]);cr()}function ur(e,t,n,r=$n+1){for(;r<Qn.length;r++){let n=Qn[r];if(n&&n.flags&2){if(e&&n.id!==e.uid||t!==void 0&&!(n.id>=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;i<er.length;i++){let a=er[i];(a.i===void 0?t.has(a):!a.i||a.i.uid<n)?er[r++]=a:e.push(a)}}let i=[...new Set(e)].sort((e,t)=>mr(e)-mr(t));if(er.length=r,tr){for(let e=0;e<i.length;e++)tr.push(i[e]);return}for(tr=i,nr=0;nr<tr.length;nr++){let e=tr[nr];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}tr=null,nr=0}}var fr=!1;function pr(e,t){if(fr){e();return}let n=t===void 0?void 0:new Set(er);e(),fr=!0;try{ur(void 0,t),dr(void 0,n,t)}finally{fr=!1}}var mr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function hr(e){try{for($n=0;$n<Qn.length;$n++){let e=Qn[$n];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),Jn(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;$n<Qn.length;$n++){let e=Qn[$n];e&&(e.flags&=-2)}$n=-1,Qn.length=0,dr(e),ir=null,(Qn.length||er.length)&&hr(e)}}var gr,_r=[];function vr(e,t){gr=e,gr?(gr.enabled=!0,_r.forEach(({event:e,args:t})=>gr.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;e<t.length;e++){let[a,o,s,c=r]=t[e];a&&(v(a)&&(a={mounted:a,updated:a}),a.deep&&Vn(o),i.push({dir:a,instance:n,value:o,oldValue:void 0,arg:s,modifiers:c}))}return e}function Tr(e,t,n,r){let i=e;if(r===`beforeMount`)e._mount=e;else if(r===`beforeUpdate`){let n=t&&t._mount;n&&(n._latest=e,e._mount=n)}else if(r===`mounted`){let t=e._latest;e._mount=e._latest=void 0,t&&(i=t,t._mount=void 0)}let a=i.dirs,o=t&&t.dirs;for(let s=0;s<a.length;s++){let c=a[s];o?c.oldValue=o[s].value:r===`mounted`&&c.oldValue!==void 0&&(c=l({},c,{oldValue:void 0}));let u=c.dir[r];u&&(st(),Yn(u,n,8,[e.el,c,i,t]),ct())}}function Er(e,t){if(Gs){let n=Gs.provides,r=Gs.parent&&Gs.parent.provides;r===n&&(n=Gs.provides=Object.create(r)),n[e]=t}}function Dr(e,t,n=!1){let r=Ks();if(r||uo){let i=uo?uo._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)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;e<n.length&&t;e++)t=t[n[e]];return t}}var Rr=new WeakMap,zr=Symbol(`_vte`),Br=e=>e.__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<s.length;e++){let i=s[e];r(i,t,n,m,!!i.dynamicChildren)}},move:qr,hydrate:Jr};function qr(e,t,n,{o:{insert:r},m:i},a=2){a===0&&(e.targetStart&&r(e.targetStart,t,n),r(e.targetAnchor,t,n),n=e.targetAnchor);let{el:o,anchor:s,shapeFlag:c,children:l,props:u}=e,d=a===2;if(d&&r(o,t,n),!Rr.has(e)&&(!d||Vr(u))&&c&16)for(let e=0;e<l.length;e++)i(l[e],t,n,2);d&&r(s,t,n)}function Jr(e,t,n,r,i,a,{o:{nextSibling:o,parentNode:s,querySelector:c,insert:l,createText:u}},d){function f(e,n){let r=n;for(;r;){if(r&&r.nodeType===8){if(r.data===`teleport start anchor`)t.targetStart=r;else if(r.data===`teleport anchor`){t.targetAnchor=r,e._lpa=t.targetAnchor&&o(t.targetAnchor);break}}r=o(r)}}function p(e,t){t.anchor=d(o(e),t,s(e),n,r,i,a)}let m=t.target=Gr(t.props,c),h=Vr(t.props);if(m){let c=m._lpa||m.firstChild;if(t.shapeFlag&16){if(h)f(m,c),p(e,t),t.targetAnchor||Zr(m,t,u,l,s(e)===m?e:null);else{t.anchor=o(e),f(m,c);let s=!!t.targetAnchor;s||Zr(m,t,u,l),d(s?c&&o(c):null,t,m,n,r,i,a,t.targetAnchor)}}Xr(t,h)}else h&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}var Yr=Kr;function Xr(e,t){let n=e.ctx;n&&n.ut&&(t?n.ut(e.el,e.anchor):n.ut(e.targetStart,e.targetAnchor))}function Zr(e,t,n,r,i=null){let a=t.targetStart=n(``),o=t.targetAnchor=n(``);return a[zr]=o,e&&(r(a,e,i),r(o,e,i)),o}var Qr=Symbol(`_leaveCb`),$r=Symbol(`_enterCb`);function ei(){let e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return aa(()=>{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;a<e.length;a++){let o=e[a],s=n==null?o.key:String(n)+String(o.key==null?a:o.key);o.type===R?(o.patchFlag&128&&i++,r=r.concat(di(o.children,t,s))):(t||o.type!==z)&&r.push(s==null?o:Ps(o,{key:s}))}if(i>1)for(let e=0;e<r.length;e++)r[e].patchFlag=-2;return r}function fi(e){if(e.component)return fi(e.component.subTree);if(e.type===R){let t=p(e.children)&&yo(e.children,!1);return t?fi(t):void 0}if(e.type!==z)return e}function I(e,t){return v(e)?l({name:e.name},t,{setup:e}):e}function pi(){let e=Ks();return e?(e.appContext.config.idPrefix||`v`)+`-`+e.ids[0]+e.ids[1]++:``}function mi(e){e.ids=[e.ids[0]+e.ids[2]+++`-`,0,0]}function hi(e){let t=Ks(),n=_n(null);if(t){let i=t.refs===r?t.refs={}:t.refs;Object.defineProperty(i,e,{enumerable:!0,get:()=>n.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<r.staticCount;t++)e&&(r.children+=T.nodeType===1?T.outerHTML:T.data),t===r.staticCount-1&&(r.anchor=T),T=a(T);return b?a(T):T}T=x();break;case R:T=b?h(n,r,s,c,u,d):x();break;default:if(C&1)T=(w!==1||r.type.toLowerCase()!==n.tagName.toLowerCase())&&!y(n)?x():p(n,r,s,c,u,d);else if(C&6){r.slotScopeIds=u;let e=o(n);if(T=b?_(n):Ti(n)&&n.data===`teleport start`?_(n,n.data,`teleport end`):a(n),t(r,e,null,s,c,wi(e),d),(Wi(r)||r.component.asyncDep)&&!r.component.subTree){let t;b?(t=W(bs),t.anchor=T?T.previousSibling:e.lastChild):t=n.nodeType===3?G(``):W(n.nodeType===8?z:`div`),t.el=n,r.component.subTree=t}}else C&64?T=w===8?r.type.hydrate(n,r,s,c,u,d,e,m):x():C&128&&(T=r.type.hydrate(n,r,s,c,wi(o(n)),u,d,e,f))}return ee!=null&&vi(ee,null,c,r),T},p=(e,t,n,i,a,o)=>{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<m;t++){let _=u?p[t]:p[t]=Is(p[t]),v=_.type===ys;h&&e&&Ti(e)&&e.data===`]`&&(d=e),e&&e!==d?(v&&!u&&t+1<m&&Is(p[t+1]).type===ys&&(l(i(e.data.slice(_.children.length)),r,a(e)),e.data=_.children),e=f(e,_,o,s,c,u)):v&&!_.children?l(_.el=i(``),r,d):(g||(g=!0,ji(r,1)||xi()),n(null,_,r,d,o,s,wi(r),c))}return e},h=(e,t,n,r,i,s)=>{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&&t<a||r>0&&r<a)&&(n>0&&n<o||i>0&&i<o)}var Bi=e=>(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<e.children.length;t++)if(i(e.children[t])===!1)return!1}r.observe(e)};return n(e=>{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;n<o;n++)i[n]=t(r?s?gn(hn(e[n])):hn(e[n]):e[n],n,void 0,a&&a[n])}else if(typeof e==`number`){if(!Number.isInteger(e)||e<0)i=[];else{i=Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,a&&a[n])}}else if(x(e)){if(e[Symbol.iterator])i=Array.from(e,(e,n)=>t(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<o;r++){let o=n[r];i[r]=t(e[o],o,r,a&&a[r])}}}else i=[];return n&&(n[r]=i),i}function Sa(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(p(r))for(let t=0;t<r.length;t++)e[r[t].name]=r[t].fn;else r&&(e[r.name]=r.key?(...e)=>{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<e.length;n++)t[e[n]]=e[n];return t}return e}function ro(e,t){return e?[...new Set([].concat(e,t))]:t}function io(e,t){return e?l(Object.create(null),e,t):t}function ao(e,t){return e?p(e)&&p(t)?[...new Set([...e,...t])]:l(Object.create(null),Va(e),Va(t??{})):t}function oo(e,t){if(!e)return t;if(!t)return e;let n=l(Object.create(null),e);for(let r in t)n[r]=ro(e[r],t[r]);return n}function so(){return{app:null,config:{isNativeTag:o,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var co=0;function lo(e,t){return function(n,r=null){v(n)||(n=l({},n)),r!=null&&!x(r)&&(r=null);let i=so(),a=new WeakSet,o=[],s=!1,c=i.app={_uid:co++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:vc,get config(){return i.config},set config(e){},use(e,...t){return a.has(e)||(e&&v(e.install)?(a.add(e),e.install(c,...t)):v(e)&&(a.add(e),e(c,...t))),c},mixin(e){return i.mixins.includes(e)||i.mixins.push(e),c},component(e,t){return t?(i.components[e]=t,c):i.components[e]},directive(e,t){return t?(i.directives[e]=t,c):i.directives[e]},mount(a,o,l){if(!s){let u=c._ceVNode||W(n,r);return u.appContext=i,l===!0?l=`svg`:l===!1&&(l=void 0),o&&t?t(u,a):e(u,a,l),s=!0,c._container=a,a.__vue_app__=c,uc(u.component)}},onUnmount(e){o.push(e)},unmount(){s&&(Yn(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(e,t){return i.provides[e]=t,c},runWithContext(e){let t=uo;uo=c;try{return e()}finally{uo=t}}};return c}}var uo=null;function fo(e,t,n=r){let i=Ks(),a=E(t),o=se(t),s=po(e,a),c=Tn((s,c)=>{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<e.length;t++){let r=e[t];if(Ds(r)){if(r.type!==z||r.children===`v-if`){if(n)return;n=r}}else return}return n}var bo=e=>{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;t<e.length;t++){let n=e[t];if(wo(o,r,n)&&!_o(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?!o||Co(r,o,l):!!o;return!1}function Co(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){let a=r[i];if(!f(e,a)||wo(t,e,a)&&!_o(n,a))return!0}return!1}function wo(e,t,n){let r=e[n],i=t[n];return n===`style`&&x(r)&&x(i)?!je(r,i):r!==i}function To({vnode:e,parent:t,suspense:n},r){for(;t;){let n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=r,e=n),n===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}var Eo={},Do=()=>Object.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<n.length;r++){let o=n[r];if(_o(e.emitsOptions,o))continue;let u=t[o];if(c){if(f(a,o))u!==a[o]&&(a[o]=u,l=!0);else{let t=E(o);i[t]=Mo(c,s,t,u,e,!1)}}else u!==a[o]&&(a[o]=u,l=!0)}}}else{jo(e,t,i,a)&&(l=!0);let r;for(let a in s)t&&(f(t,a)||(r=se(a))!==a&&f(t,r))||(c?n&&(n[a]!==void 0||n[r]!==void 0)&&(i[a]=Mo(c,s,a,void 0,e,!0)):delete i[a]);if(a!==s)for(let e in a)t&&f(t,e)||(delete a[e],l=!0)}l&&yt(e.attrs,`set`,``)}function jo(e,t,n,i){let[a,o]=e.propsOptions,s=!1,c;if(t)for(let r in t){if(ne(r))continue;let l=t[r],u;a&&f(a,u=E(r))?!o||!o.includes(u)?n[u]=l:(c||={})[u]=l:_o(e.emitsOptions,r)||r in i&&l===i[r]||(i[r]=l,s=!0)}if(o){let t=A(n),i=c||r;for(let r=0;r<o.length;r++){let s=o[r];n[s]=Mo(a,t,s,i[s],e,!f(i,s))}}return s}function Mo(e,t,n,r,i,a){let o=e[n];if(o!=null){let e=f(o,`default`);if(e&&r===void 0){let e=o.default;if(o.type!==Function&&!o.skipFactory&&v(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let o=Ys(i);r=a[n]=e.call(null,t),o()}}else r=e;i.ce&&i.ce._setProp(n,r)}o[0]&&(a&&!e?r=!1:o[1]&&(r===``||r===se(n))&&(r=!0))}return r}var No=new WeakMap;function Po(e,t,n=!1){let a=n?No:t.propsCache,o=a.get(e);if(o)return o;let s=e.props,c={},u=[],d=!1;if(!v(e)){let r=e=>{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;e<s.length;e++){let t=E(s[e]);Fo(t)&&(c[t]=r)}else if(s)for(let e in s){let t=E(e);if(Fo(t)){let n=s[e],r=c[t]=p(n)||v(n)?{type:n}:l({},n),i=r.type,a=!1,o=!0;if(p(i))for(let e=0;e<i.length;++e){let t=i[e],n=v(t)&&t.name;if(n===`Boolean`){a=!0;break}n===`String`&&(o=!1)}else a=v(i)&&i.name===`Boolean`;r[0]=a,r[1]=o,(a||f(r,`default`))&&u.push(t)}}let m=[c,u];return x(e)&&a.set(e,m),m}function Fo(e){return e[0]!==`$`&&!ne(e)}var Io=e=>e===`_`||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<r.length;t++)g(e,r[t]);if(i){let n=i.subTree;if(t===n||ns(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;w(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},T=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++){let c=e[l]=s?Ls(e[l]):Is(e[l]);v(null,c,t,n,r,i,a,o,s)}},re=(e,t,n,i,a,o,s)=>{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<e.length;t++){let r=e[t],i=m[r],o=h[r];(o!==i||r===`value`)&&c(l,r,i,o,a,n)}}u&1&&e.children!==t.children&&p(l,t.children)}else!s&&d==null&&ae(l,m,h,n,a);((g=h.onVnodeUpdated)||f)&&Wo(()=>{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<t.length;s++){let c=e[s],l=t[s],u=c.el||ts(c),d=u&&(c.type===R||!Os(c,l)||c.shapeFlag&198)?m(u):n;v(c,l,d,null,r,i,a,o,!0)}},ae=(e,t,n,i,a)=>{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(;p<f;p++){let r=t[p]=l?Ls(t[p]):Is(t[p]);v(e[p],r,n,null,a,o,s,c,l)}u>d?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=e<d?t[e].el:r;for(;u<=p;)v(null,t[u]=l?Ls(t[u]):Is(t[u]),n,i,a,o,s,c,l),u++}}else if(u>p)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;u++)ee[u]=0;for(u=m;u<=f;u++){let r=e[u];if(y>=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<d?f.el||ts(f):r;ee[u]===0?v(null,i,n,p,a,o,s,c,l):x&&(_<0||u!==C[_]?he(i,n,p,2):_--)}}},he=(e,t,n,r,i=null)=>{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;e<u.length;e++)he(u[e],t,n,r);o(e.anchor,t,n)}else if(c===bs)S(e,t,n);else if(r!==2&&d&1&&l){if(r===0)l.persisted&&!a[Qr]?o(a,t,n):(l.beforeEnter(a),o(a,t,n),Wo(()=>l.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<e.length;o++)_e(e[o],t,n,r,i)},Se=e=>{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<r.length;e++){let t=r[e],a=i[e];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[e]=Ls(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&Zo(t,a)),a.type===ys&&(a.patchFlag===-1&&(a=i[e]=Ls(a)),a.el=t.el),a.type===z&&!a.el&&(a.el=t.el)}}function Qo(e){let t=e.slice(),n=[0],r,i,a,o,s,c=e.length;for(r=0;r<c;r++){let c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,e[n[s]]<c?a=s+1:o=s;c<e[n[a]]&&(a>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;t<e.length;t++)e[t].flags|=8}function ts(e){if(e.placeholder)return e.placeholder;let t=e.component;if(t)return ts(t.subTree);let n=e.suspense;return n&&n.activeBranch?ts(n.activeBranch):null}var ns=e=>e.__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;e<a.length;e++)cs(a[e],t,n)}function ls(e,t,n,r,i,a,o,s,c){let{p:l,o:{createElement:u}}=c,d=u(`div`),f=e.suspense=ds(e,i,r,t,d,n,a,o,s,c);l(null,f.pendingBranch=e.ssContent,d,null,r,f,a,o),f.deps>0?(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<c.length;e++){let t=c[e];t.flags&32?lr(t):c[S++]=t}if(c.length=S,g)for(let e=0;e<c.length;e++)g.effects.push(c[e]);else y||lr(c);x.effects=[],v&&t&&t.pendingBranch&&_===t.pendingId&&(_=void 0,t.deps--,t.deps===0&&!n&&t.resolve()),os(r,`onResolve`)},fallback(e){if(x.isUnmounted||!x.pendingBranch)return;let{vnode:t,activeBranch:n,parentComponent:r,container:i,namespace:a}=x;os(t,`onFallback`);let o=m(n),l=()=>{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;e<t.length;e++){let n=t[e];n.flags&16&&lr(n)}t.length=0}function gs(e,t){t&&t.pendingBranch?p(e)?t.effects.push(...e):t.effects.push(e):lr(e)}function _s(e,t){e.activeBranch=t;let{vnode:n,parentComponent:r}=e,i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,To(r,i))}function vs(e){let t=e.props&&e.props.suspensible;return t!=null&&t!==!1}var R=Symbol.for(`v-fgt`),ys=Symbol.for(`v-txt`),z=Symbol.for(`v-cmt`),bs=Symbol.for(`v-stc`),xs=[],Ss=null;function B(e=!1){xs.push(Ss=e?null:[])}function Cs(){xs.pop(),Ss=xs[xs.length-1]||null}var ws=1;function Ts(e,t=!1){ws+=e,e<0&&Ss&&t&&(Ss.hasOnce=!0)}function Es(e){return e.dynamicChildren=ws>0?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;n<e.length;n++){let r=e[n];for(let e in r)if(e===`class`)t.class!==r.class&&(t.class=D([t.class,r.class]));else if(e===`style`)t.style=ve([t.style,r.style]);else if(s(e)){let n=t[e],i=r[e];i&&n!==i&&!(p(n)&&n.includes(i))?t[e]=n?[].concat(n,i):i:i==null&&n==null&&!c(e)&&(t[e]=i)}else e!==``&&(t[e]=r[e])}return t}function Bs(e,t,n,r=null){Yn(e,t,7,[n,r])}var Vs=so(),Hs=0;function Us(){return Hs}function Ws(e,t,n){let i=e.type,a=(t?t.appContext:e.appContext)||Vs,o={uid:Hs++,vnode:e,type:i,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ze(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),ids:t?t.ids:[``,0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Po(i,a),emitsOptions:go(i,a),emit:null,emitted:null,propsDefaults:r,inheritAttrs:i.inheritAttrs,ctx:r,data:r,props:r,attrs:r,slots:r,refs:r,setupState:r,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=mo.bind(null,o),e.ce&&e.ce(o),o}var Gs=null,Ks=()=>Gs||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;e<n.length;e++)if(ue(n[e],t[e]))return!1;return ws>0&&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`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`: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<c&&d()},s+1),e.addEventListener(l,f)}function Jc(e,t){let n=window.getComputedStyle(e),r=e=>(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.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>Xc(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;n<gl.length;n++){let i=gl[n]+r;if(i in e)return _l[t]=i}return t}function yl(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&y(r)&&n===r}var bl=`http://www.w3.org/1999/xlink`;function xl(e,t,n,r,i,a=Te(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(bl,t.slice(6,t.length)):e.setAttributeNS(bl,t,n):n==null||a&&!Ee(n)?e.removeAttribute(t):e.setAttribute(t,a?``:b(n)?String(n):n)}function Sl(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?Ec(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);r===i&&`_value`in e||(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=Ee(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function Cl(e,t,n,r){e.addEventListener(t,n,r)}function wl(e,t,n,r){e.removeEventListener(t,n,r)}var Tl=Symbol(`_vei`);function El(e,t,n,r,i=null){let a=e[Tl]||(e[Tl]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=kl(t);r?Cl(e,n,a[t]=Nl(r,i),s):o&&(wl(e,n,o,s),a[t]=void 0)}}var Dl=/(Once|Passive|Capture)$/,Ol=/^on:?(?:Once|Passive|Capture)$/;function kl(e){let t,n;for(;(n=e.match(Dl))&&!Ol.test(e);)t||={},e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===`:`?e.slice(3):se(e.slice(2)),t]}var Al=0,jl=Promise.resolve(),Ml=()=>Al||=(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;n<i.length&&!e._stopped;n++){let e=i[n];e&&Yn(e,t,5,a)}}else Yn(r,t,5,[e])};return n.value=e,n.attached=Ml(),n}var Pl=e=>e.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.attributes.length;e++)this._setAttr(this.attributes[e].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});let e=(e,t=!1)=>{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<e.childNodes.length;t++){let n=e.childNodes[t];if(!(n instanceof HTMLStyleElement))return n}return null}_parseSlots(){let e=this._slots={},t;for(;t=this.firstChild;){let n=t.nodeType===1&&t.getAttribute(`slot`)||`default`;(e[n]||(e[n]=[])).push(t),this.removeChild(t)}}_renderSlots(){let e=this._getSlots(),t=this._instance.type.__scopeId;for(let n=0;n<e.length;n++){let r=e[n],i=r.getAttribute(`name`)||`default`,a=this._slots[i],o=r.parentNode;if(a)for(let e of a){if(t&&e.nodeType===1){let n=t+`-s`,r=document.createTreeWalker(e,1);e.setAttribute(n,``);let i;for(;i=r.nextNode();)i.setAttribute(n,``)}o.insertBefore(e,r)}else for(;r.firstChild;)o.insertBefore(r.firstChild,r);o.removeChild(r)}}_getSlots(){let e=[this];this._teleportTargets&&e.push(...this._teleportTargets);let t=new Set;for(let n of e){let e=n.querySelectorAll(`slot`);for(let n=0;n<e.length;n++)t.add(e[n])}return Array.from(t)}_injectChildStyle(e,t){this._applyStyles(e.styles,e,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return this._def.shadowRoot!==!1}_removeChildStyle(e){}};function Ul(e){let t=Ks();return t&&t.ce||null}function Wl(){let e=Ul();return e&&e.shadowRoot}function Gl(e=`$style`){{let t=Ks();if(!t)return r;let n=t.type.__cssModules;return n&&n[e]||r}}var Kl=new WeakMap,ql=new WeakMap,Jl=Symbol(`_moveCb`),Yl=Symbol(`_enterCb`),Xl=new WeakMap,Zl=(e=>(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;e<a.length;e++){let t=a[e];t.el&&t.el instanceof Element&&!t.el[el]&&(i.push(t),ui(t,si(t,u,r,n)),Kl.set(t,nu(t.el)))}a=t.default?di(t.default()):[];for(let e=0;e<a.length;e++){let t=a[e];t.key!=null&&ui(t,si(t,u,r,n))}return i.length&&(o=ru(n),Xl.set(n,c)),W(d,null,a)}}});function Ql(e){let t=e.el;t[Jl]&&t[Jl](),t[Yl]&&t[Yl]()}function $l(e){return e.moveClass||`${e.name||`v`}-move`}function eu(e,t){ql.set(e,nu(e.el,t))}function tu(e){let t=Kl.get(e),n=ql.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){let t=e.el,n=t.style,a=t.getBoundingClientRect(),o=1,s=1;return t.offsetWidth&&(o=a.width/t.offsetWidth),t.offsetHeight&&(s=a.height/t.offsetHeight),Number.isFinite(o)&&o!==0||(o=1),Number.isFinite(s)&&s!==0||(s=1),Math.abs(o-1)<.01&&(o=1),Math.abs(s-1)<.01&&(s=1),n.transform=n.webkitTransform=`translate(${r/o}px,${i/s}px)`,n.transitionDuration=`0s`,e}}function nu(e,t){let n=e.getBoundingClientRect();return{left:n.left-(t?t.left:0),top:n.top-(t?t.top:0)}}function ru(e){let t;for(let n=e.parent;n;n=n.parent){let r=Xl.get(n);if(r){let i=iu(n.vnode.el,e.vnode.el);i&&(t||=[]).push(l(nu(i),{item:i,willMove:r}))}}return t}function iu(e,t){let n=e.nodeType===1?e:e.parentNode;for(;t&&t.parentNode!==n;)t=t.parentNode;if(t&&t.nodeType===1)return t}function au(e,t){let n=e.find(e=>e.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;a<o;a++){let o=e.options[a],s=yu(o);if(r){if(i){let e=typeof s;o.selected=e===`string`||e===`number`?t.some(e=>String(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<t.length;e++){let r=Eu[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},Ou={esc:`escape`,space:` `,up:`arrow-up`,left:`arrow-left`,right:`arrow-right`,down:`arrow-down`,delete:`backspace`},ku=(e,t)=>{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`,"Preview of the page":`Voorbeeld van de pagina`,"Width of the preview":`Breedte van het voorbeeld`,Phone:`Telefoon`,Tablet:`Tablet`,Desktop:`Bureaublad`,"Open the preview in a new tab":`Voorbeeld in een nieuw tabblad openen`,"View the page":`Bekijk de pagina`,"The preview could not be made.":`Het voorbeeld kon niet worden gemaakt.`,"Making the preview…":`Het voorbeeld wordt gemaakt…`,"No blocks yet.":`Nog geen blokken.`,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`,"Page layout":`Pagina-indeling`,"Page layout of :name":`Pagina-indeling van :name`,"The page every :name gets. Write {record.field} in a text to fill in a field of the record, for example {record.title}.":`De pagina die elke :name krijgt. Schrijf {record.veld} in een tekst om een veld van het item in te vullen, bijvoorbeeld {record.title}.`,"Fields you can fill in":`Velden die je kunt invullen`,Blocks:`Blokken`,"Add a block":`Blok toevoegen`,"Choose a block":`Kies een blok`,":name added":`:name toegevoegd`,"Moved to place :place of :total":`Verplaatst naar plek :place van :total`,"Block removed":`Blok verwijderd`,"Drag to reorder":`Sleep om de volgorde te veranderen`,"Edit :name":`:name bewerken`,"Alt + arrow up or down moves the block":`Alt + pijl omhoog of omlaag verplaatst het blok`,Hidden:`Verborgen`,"Move up":`Omhoog`,"Move down":`Omlaag`,Duplicate:`Dupliceren`,Show:`Tonen`,Hide:`Verbergen`,"No blocks yet. Add one to start.":`Nog geen blokken. Voeg er een toe om te beginnen.`,Opening:`Opening`,Content:`Inhoud`,"From lists":`Uit lijsten`,Action:`Actie`,Layout:`Indeling`,Site:`Site`,Background:`Achtergrond`,Width:`Breedte`,Spacing:`Ruimte`,Align:`Uitlijning`,Height:`Hoogte`,Side:`Kant`,Columns:`Kolommen`,None:`Geen`,Light:`Licht`,Dark:`Donker`,"Brand colour":`Merkkleur`,Normal:`Normaal`,Wide:`Breed`,"Full width":`Volle breedte`,Small:`Klein`,Medium:`Middel`,Large:`Groot`,Left:`Links`,Centred:`Gecentreerd`,Tall:`Hoog`,"Picture on the right":`Afbeelding rechts`,"Picture on the left":`Afbeelding links`,Cards:`Kaarten`,Tiles:`Tegels`,Hero:`Opening met foto`,"Page title":`Paginatitel`,Text:`Tekst`,"Text with picture":`Tekst met afbeelding`,Picture:`Afbeelding`,"Box with points":`Kader met punten`,Gallery:`Galerij`,"Before and after":`Voor en na`,"Questions and answers":`Vragen en antwoorden`,"Cards from a list":`Kaarten uit een lijst`,"Call to action":`Oproep tot actie`,"Request form":`Aanvraagformulier`,Line:`Lijn`,Space:`Ruimte`,"The big opening of the page":`De grote opening van de pagina`,"A piece of text":`Een stuk tekst`,"A text with a picture next to it":`Een tekst met een afbeelding ernaast`,"One picture":`Eén afbeelding`,"Several pictures":`Meerdere afbeeldingen`,"Your services, projects or reviews":`Je diensten, projecten of reviews`,"A banner that asks the visitor to act":`Een balk die de bezoeker iets laat doen`,"A form for visitors":`Een formulier voor bezoekers`,"Line above the title":`Regel boven de titel`,"The big title":`De grote titel`,"A few words under the title":`Een paar woorden onder de titel`,"Text under the title":`Tekst onder de titel`,"Words that follow each other":`Woorden die elkaar afwisselen`,Buttons:`Knoppen`,Main:`Hoofd`,Second:`Tweede`,Caption:`Onderschrift`,Points:`Punten`,Pictures:`Afbeeldingen`,Before:`Voor`,After:`Na`,Number:`Getal`,"After the number":`Achter het getal`,"What it is":`Wat het is`,Questions:`Vragen`,Question:`Vraag`,Answer:`Antwoord`,"Which list":`Welke lijst`,"How many":`Hoeveel`,"Text of the button":`Tekst van de knop`,"Address of the button":`Adres van de knop`,"Show the phone and WhatsApp buttons":`De knoppen voor bellen en WhatsApp tonen`,"Which form":`Welk formulier`,"Call me back":`Bel mij terug`,"A question":`Een vraag`,"A quote":`Een offerte`,"A message":`Een bericht`,"Place or function":`Plaats of functie`,"Use another photo":`Andere foto kiezen`,"Choose a photo":`Kies een foto`,"Take it away":`Weghalen`,"Add photos":`Foto's erbij`,"Choose a photo from this phone or computer":`Kies een foto van deze telefoon of computer`,"Choose photos from this phone or computer":`Kies foto's van deze telefoon of computer`,"Busy with :count…":`Bezig met :count…`,"Or use a photo that is already there:":`Of gebruik een foto die er al is:`,"On a phone you can also take a new photo. It is made smaller by itself, so a big photo is fine.":`Op een telefoon kun je ook een nieuwe foto maken. Hij wordt vanzelf kleiner gemaakt, dus een grote foto is prima.`,"Not every photo worked. Try those again, or ask the person who looks after your website.":`Niet alle foto's zijn gelukt. Probeer die nog een keer, of vraag het aan wie je website beheert.`,"The parts of your page":`De onderdelen van je pagina`,"Add something to the page":`Iets toevoegen aan de pagina`,'Nothing on this page yet. Press "Add something to the page" to start.':`Er staat nog niets op deze pagina. Druk op "Iets toevoegen aan de pagina" om te beginnen.`,"Press a part to change it. The arrows move it up or down. Nothing is lost: a part you take off the site can be put back.":`Druk op een onderdeel om het te veranderen. Met de pijltjes zet je het hoger of lager. Er gaat niets verloren: wat je van de site haalt, kun je terugzetten.`,"Put it back on the site":`Zet het terug op de site`,"Take it off the site":`Haal het van de site`,"Change how it looks":`Verander hoe het eruitziet`,"A title for the page":`Een titel voor de pagina`,"A box with a short list":`Een kader met een kort lijstje`,"Two photos: before and after":`Twee foto's: voor en na`,"What someone said about you":`Wat iemand over je zei`,"A few big numbers":`Een paar grote cijfers`,"A row of short words":`Een rij korte woorden`,"A line between two parts":`Een lijn tussen twee delen`,"Some empty room":`Wat lege ruimte`,"Wide (landscape), at least 1600 pixels across; it is cut to fit, so keep what matters in the middle.":`Breed (liggend), minstens 1600 pixels breed; hij wordt bijgesneden, dus houd wat belangrijk is in het midden.`,"Hold your phone sideways when you take it, and keep what matters in the middle: the edges can be cut off.":`Houd je telefoon liggend als je hem maakt en houd wat belangrijk is in het midden: de randen kunnen wegvallen.`,"Landscape or square, at least 1000 pixels across.":`Liggend of vierkant, minstens 1000 pixels breed.`,"Any photo will do, as long as it is sharp.":`Elke foto is goed, als hij maar scherp is.`,"At least 1200 pixels across; it is shown as wide as the block allows.":`Minstens 1200 pixels breed; hij wordt zo breed getoond als het onderdeel toelaat.`,"Any sharp photo will do. A photo from your phone is fine.":`Elke scherpe foto is goed. Een foto van je telefoon is prima.`,"At least 800 pixels across each; they are shown as squares or in a grid, so keep what matters in the middle.":`Elk minstens 800 pixels breed; ze worden als vierkantjes of in een raster getoond, dus houd wat belangrijk is in het midden.`,"Pick as many as you like, in one go. The first one comes first on the page.":`Kies er zoveel je wilt, in één keer. De eerste staat vooraan op de pagina.`,"Take both from the same spot and the same side, so they can be compared.":`Maak ze allebei vanaf dezelfde plek en kant, zodat ze te vergelijken zijn.`,"Take both photos from the same spot, then they fit together.":`Maak allebei de foto's vanaf dezelfde plek, dan passen ze bij elkaar.`,"The same size and angle as the photo before.":`Dezelfde maat en hoek als de foto van ervoor.`,"The same spot as the photo before.":`Dezelfde plek als de foto van ervoor.`},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(),D3(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=(e,t)=>J.view===`simple`&&t?t:e,Vd={class:`m-card max-h-[85vh] w-full max-w-3xl overflow-y-auto p-5`,role:`dialog`,"aria-modal":`true`},Hd={class:`mb-4 flex items-center justify-between gap-3`},Ud={class:`font-display text-lg font-bold`},Wd={key:0,class:`mb-4`},Gd=[`multiple`,`disabled`],Kd={key:0},qd={key:1},Jd={class:`m-help`},Yd={key:0,class:`m-error`,role:`alert`},Xd={key:1,class:`text-sm text-muted`},Zd={key:2,class:`text-sm text-muted`},Qd={key:0,class:`mb-2 text-sm text-muted`},$d={class:`grid grid-cols-2 gap-3 sm:grid-cols-3 md:grid-cols-4`},ef=[`onClick`],tf=[`src`,`alt`],nf={key:0,class:`block truncate px-2 py-1 text-xs`},rf=2400,af=I({__name:`MediaPicker`,props:{many:{type:Boolean}},emits:[`pick`,`many`,`close`],setup(e,{emit:t}){let n=e,r=t,i=M([]),a=M(!0),o=M(0),s=M(null),c=J.permissions.includes(`media.upload`),l=J.view===`simple`;async function u(e){try{let t=await createImageBitmap(e,{imageOrientation:`from-image`}),n=Math.min(1,rf/Math.max(t.width,t.height)),r=document.createElement(`canvas`);r.width=Math.round(t.width*n),r.height=Math.round(t.height*n),r.getContext(`2d`)?.drawImage(t,0,0,r.width,r.height),t.close();let i=await new Promise((e,t)=>r.toBlob(n=>n?e(n):t(Error(`no image`)),`image/jpeg`,.86));return new File([i],e.name.replace(/\.[^.]+$/,``)+`.jpg`,{type:`image/jpeg`})}catch{return e}}async function d(){try{i.value=(await Y.get(`${J.base}/media/items`)).items.filter(e=>e.is_image)}finally{a.value=!1}}async function f(e){let t=e.target,i=Array.from(t.files??[]).slice(0,n.many?40:1),a=[],c=null;s.value=null,o.value=i.length;for(let e of i){try{let t=new FormData;t.append(`file`,await u(e));let n=await Ju(`${J.base}/media`,t);a.push(n.item.url),c??=n.item}catch(e){s.value=e instanceof Gu&&e.status===422&&e.errors?.file?String(Object.values(e.errors)[0]):X(`Not every photo worked. Try those again, or ask the person who looks after your website.`)}o.value--}t.value=``,a.length&&(n.many?r(`many`,a):r(`pick`,a[0],c))}return aa(d),(t,n)=>(B(),V(`div`,{class:`fixed inset-0 z-50 grid place-items-center bg-black/60 p-4`,onClick:n[1]||=Du(e=>r(`close`),[`self`])},[U(`div`,Vd,[U(`div`,Hd,[U(`h2`,Ud,O(N(Bd)(N(X)(`Choose an image`),N(X)(`Choose a photo`))),1),U(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:n[0]||=e=>r(`close`)},O(N(X)(`Cancel`)),1)]),N(c)?(B(),V(`div`,Wd,[U(`label`,{class:D([`m-btn m-btn-primary cursor-pointer`,{"opacity-60":o.value>0}])},[U(`input`,{type:`file`,accept:`image/jpeg,image/png,image/webp`,multiple:e.many,class:`sr-only`,disabled:o.value>0,onChange:f},null,40,Gd),o.value>0?(B(),V(`span`,Kd,O(N(X)(`Busy with :count…`,{count:o.value})),1)):(B(),V(`span`,qd,O(e.many?N(X)(`Choose photos from this phone or computer`):N(X)(`Choose a photo from this phone or computer`)),1))],2),U(`p`,Jd,O(N(X)(`On a phone you can also take a new photo. It is made smaller by itself, so a big photo is fine.`)),1),s.value?(B(),V(`p`,Yd,O(s.value),1)):K(``,!0)])):K(``,!0),a.value?(B(),V(`p`,Xd,O(N(X)(`Loading…`)),1)):i.value.length?(B(),V(R,{key:3},[l?(B(),V(`p`,Qd,O(N(X)(`Or use a photo that is already there:`)),1)):K(``,!0),U(`div`,$d,[(B(!0),V(R,null,L(i.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=>r(`pick`,e.url,e)},[U(`img`,{src:e.url,alt:e.name,loading:`lazy`,class:`aspect-square w-full object-cover`},null,8,tf),l?K(``,!0):(B(),V(`span`,nf,O(e.name),1))],8,ef))),128))])],64)):(B(),V(`p`,Zd,O(N(X)(`No images yet.`)),1))])]))}}),of=[`aria-label`],sf=[`disabled`,`title`],cf=[`disabled`,`title`],lf=[`disabled`,`title`],uf=[`disabled`,`title`],df=[`disabled`,`title`],ff=[`disabled`,`title`],pf=[`disabled`],mf={class:`ml-auto flex gap-1`},hf=[`id`,`value`,`rows`,`required`,`maxlength`],gf={key:0,class:`m-input min-h-40 overflow-auto`},_f={key:0,class:`text-sm text-muted`},vf=[`innerHTML`],yf=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,sf),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,cf),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,lf),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,uf),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,df),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,ff),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,pf)):K(``,!0),U(`span`,mf,[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,of),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,hf),[[tl,a.value===`write`]]),a.value===`preview`?(B(),V(`div`,gf,[s.value?(B(),V(`p`,_f,O(N(X)(`Loading…`)),1)):(B(),V(`div`,{key:1,class:`m-prose`,innerHTML:o.value},null,8,vf))])):K(``,!0),c.value?(B(),H(af,{key:1,onPick:f,onClose:n[10]||=e=>c.value=!1})):K(``,!0)]))}}),bf={class:`m-card mt-6 max-w-3xl p-5`},xf={class:`font-display text-lg font-bold`},Sf={key:0,class:`mt-2 text-sm text-muted`},Cf={key:1,class:`mt-2 text-sm text-muted`},wf={key:2,class:`mt-3 divide-y divide-line`},Tf={class:`flex flex-wrap items-center justify-between gap-2`},Ef=[`aria-expanded`,`onClick`],Df={class:`font-semibold`},Of={key:0,class:`text-muted`},kf={key:1,class:`m-badge ml-2`},Af={class:`block text-xs text-muted`},jf=[`onClick`],Mf={key:0,class:`mt-2 space-y-2 text-sm`},Nf={class:`text-xs font-semibold uppercase tracking-wide text-muted`},Pf={class:`whitespace-pre-wrap break-words`},Ff=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 O3())}let c=e=>new Date(e).toLocaleString(J.locale||void 0);return(e,t)=>(B(),V(`section`,bf,[U(`h2`,xf,O(N(X)(`History`)),1),a.value?(B(),V(`p`,Sf,O(N(X)(`Loading…`)),1)):n.value.length?(B(),V(`ul`,wf,[(B(!0),V(R,null,L(n.value,e=>(B(),V(`li`,{key:e.id,class:`py-3`},[U(`div`,Tf,[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`,Df,O(c(e.created_at)),1),e.user?(B(),V(`span`,Of,` · `+O(e.user),1)):K(``,!0),e.current?(B(),V(`span`,kf,O(N(X)(`Now`)),1)):K(``,!0),U(`span`,Af,O(e.changed.join(`, `)),1)],8,Ef),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,jf)):K(``,!0)]),i.value===e.id?(B(),V(`dl`,Mf,[(B(!0),V(R,null,L(e.values,(e,t)=>(B(),V(`div`,{key:t},[U(`dt`,Nf,O(t),1),U(`dd`,Pf,O(e),1)]))),128))])):K(``,!0)]))),128))])):(B(),V(`p`,Cf,O(N(X)(`Nothing here yet.`)),1))]))}}),If={key:0,class:`m-card mt-6 p-4`},Lf={class:`mb-3 font-semibold`},Rf={key:0,class:`mb-3 text-xs text-muted`},zf={class:`flex items-center justify-between gap-3`},Bf={class:`font-medium`},Vf=[`disabled`,`onClick`],Hf={class:`mt-1 text-xs text-muted`},Uf={key:0,class:`mt-1 text-xs`},Wf=[`href`],Gf=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`,If,[U(`h2`,Lf,O(N(X)(`Share`)),1),r.value?K(``,!0):(B(),V(`p`,Rf,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`,zf,[U(`p`,Bf,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,Vf)]),U(`p`,Hf,O(e.preview),1),e.last?(B(),V(`p`,Uf,[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,Wf)):K(``,!0)])):K(``,!0)]))),128))])):K(``,!0)}}),Kf={class:`mb-6 flex items-center justify-between gap-3`},qf={class:`font-display text-2xl font-bold`},Jf={for:`title`,class:`m-label`},Yf={key:0,class:`m-error`},Xf={class:`grid gap-5 sm:grid-cols-2`},Zf={for:`slug`,class:`m-label`},Qf={key:0,class:`m-error`},$f={for:`category`,class:`m-label`},ep={id:`categories`},tp=[`value`],np={for:`excerpt`,class:`m-label`},rp={key:0,class:`m-error`},ip={for:`body`,class:`m-label`},ap={key:0,class:`m-error`},op={class:`grid gap-5 sm:grid-cols-2`},sp={for:`cover`,class:`m-label`},cp={class:`flex gap-2`},lp={for:`tags`,class:`m-label`},up={id:`known-tags`},dp=[`value`],fp={class:`flex flex-wrap items-center gap-6`},pp={class:`flex items-center gap-2 text-sm`},mp={key:0,class:`flex items-center gap-2 text-sm`},hp={key:1},gp={for:`at`,class:`m-label`},_p=[`disabled`],vp=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.`)),D3(`${J.base}/posts`))}return(o,s)=>(B(),V(R,null,[U(`div`,Kf,[U(`h1`,qf,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`,Jf,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`,Yf,O(N(n).errors.title),1)):K(``,!0)]),U(`div`,Xf,[U(`div`,null,[U(`label`,Zf,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`,Qf,O(N(n).errors.slug),1)):K(``,!0)]),U(`div`,null,[U(`label`,$f,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`,ep,[(B(!0),V(R,null,L(e.categories,e=>(B(),V(`option`,{key:e,value:e},null,8,tp))),128))])])]),U(`div`,null,[U(`label`,np,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`,rp,O(N(n).errors.excerpt),1)):K(``,!0)]),U(`div`,null,[U(`label`,ip,O(N(X)(`Text (Markdown)`)),1),W(yf,{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`,ap,O(N(n).errors.body),1)):K(``,!0)]),U(`div`,op,[U(`div`,null,[U(`label`,sp,O(N(X)(`Cover image`)),1),U(`div`,cp,[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`,lp,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`,up,[(B(!0),V(R,null,L(e.known_tags,e=>(B(),V(`option`,{key:e,value:e},null,8,dp))),128))])])]),U(`div`,fp,[U(`label`,pp,[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`,mp,[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`,hp,[U(`label`,gp,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,_p)],32),N(t)&&N(J).permissions.includes(`sharing.publish`)?(B(),H(Gf,{key:0,id:N(t).id},null,8,[`id`])):K(``,!0),N(t)&&N(J).permissions.includes(`revisions.view`)?(B(),H(Ff,{key:1,type:`posts`,id:N(t).id},null,8,[`id`])):K(``,!0),r.value?(B(),H(af,{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))}}),yp={class:`mb-6 flex flex-wrap items-center justify-between gap-3`},bp={class:`font-display text-2xl font-bold`},xp={key:0,class:`m-card p-5 text-sm text-muted`},Sp={key:1,class:`m-card divide-y divide-line`},Cp={class:`min-w-0`},wp={class:`truncate font-semibold`},Tp={class:`mt-1 flex items-center gap-2 text-xs text-muted`},Ep={class:`m-badge`},Dp={key:0},Op={class:`flex gap-2`},kp=[`onClick`],Ap=[`onClick`],jp=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 O3()}async function r(e){window.confirm(X(`Are you sure?`))&&(await Y.delete(`${J.base}/posts/${e.id}`),$(X(`Deleted.`)),await O3())}return(i,a)=>(B(),V(R,null,[U(`div`,yp,[U(`h1`,bp,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`,Sp,[(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`,Cp,[U(`p`,wp,O(e.title),1),U(`p`,Tp,[U(`span`,Ep,O(N(X)(t[e.status])),1),e.category?(B(),V(`span`,Dp,O(e.category),1)):K(``,!0)])]),U(`div`,Op,[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,kp)):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,Ap)):K(``,!0)])]))),128))])):(B(),V(`p`,xp,O(N(X)(`No posts yet.`)),1))],64))}}),Mp=[`src`],Np=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,Mp))}}),Pp={class:`font-display mb-6 text-2xl font-bold`},Fp={for:`name`,class:`m-label`},Ip={key:0,class:`m-error`},Lp={class:`m-label`},Rp={class:`text-sm`},zp={class:`m-label`},Bp={class:`flex flex-wrap gap-1.5`},Vp={key:0,class:`m-badge`},Hp={key:0,class:`m-badge`},Up={key:0,class:`rounded-lg border border-line p-4`},Wp={class:`px-1.5 text-sm font-semibold`},Gp={class:`mt-1 flex flex-wrap gap-3`},Kp=[`onUpdate:modelValue`,`value`],qp={class:`flex`},Jp={key:0,class:`m-error`},Yp={key:1,class:`rounded-lg border border-line p-4`},Xp={class:`px-1.5 text-sm font-semibold`},Zp={class:`mt-1 flex flex-wrap gap-3`},Qp=[`onUpdate:modelValue`,`value`],$p={key:0,class:`m-error`},em={class:`space-y-4 rounded-lg border border-line p-4`},tm={class:`px-1.5 text-sm font-semibold`},nm={class:`m-help`},rm={for:`current_password`,class:`m-label`},im={key:0,class:`m-error`},am={for:`password`,class:`m-label`},om={class:`m-help`},sm={key:0,class:`m-error`},cm={for:`password_confirmation`,class:`m-label`},lm={key:2,class:`flex items-center gap-3 rounded-lg border border-line p-4`},um={class:`text-sm font-semibold`},dm=[`disabled`],fm=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`,Pp,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`,Fp,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`,Ip,O(N(n).errors.name),1)):K(``,!0)]),U(`div`,null,[U(`span`,Lp,O(N(X)(`Email address`)),1),U(`p`,Rp,O(e.profile.email),1)]),U(`div`,null,[U(`span`,zp,O(N(X)(`What you may do`)),1),U(`p`,Bp,[e.profile.is_super_admin?(B(),V(`span`,Vp,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`,Hp,O(N(X)(`Not in a group yet`)),1))],64))])]),e.profile.themes.length?(B(),V(`fieldset`,Up,[U(`legend`,Wp,O(N(X)(`Look`)),1),U(`div`,Gp,[(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,Kp),[[hu,N(n).values.theme]]),U(`span`,qp,[(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`,Jp,O(N(n).errors.theme),1)):K(``,!0)])):K(``,!0),e.profile.locales.length?(B(),V(`fieldset`,Yp,[U(`legend`,Xp,O(N(X)(`Language`)),1),U(`div`,Zp,[(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,Qp),[[hu,N(n).values.locale]]),G(` `+O(e===`nl`?`Nederlands`:`English`),1)],2))),128))]),N(n).errors.locale?(B(),V(`p`,$p,O(N(n).errors.locale),1)):K(``,!0)])):K(``,!0),U(`fieldset`,em,[U(`legend`,tm,O(N(X)(`New password`)),1),U(`p`,nm,O(N(X)(`Leave empty to keep the password you have.`)),1),U(`div`,null,[U(`label`,rm,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`,im,O(N(n).errors.current_password),1)):K(``,!0)]),U(`div`,null,[U(`label`,am,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`,om,O(N(X)(`At least 12 characters.`)),1),N(n).errors.password?(B(),V(`p`,sm,O(N(n).errors.password),1)):K(``,!0)]),U(`div`,null,[U(`label`,cm,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`,lm,[W(Np,{name:`peek`,size:64}),U(`div`,null,[U(`p`,um,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,dm)],32)],64))}}),pm={class:`mb-6 flex flex-wrap items-center justify-between gap-3`},mm={class:`font-display text-2xl font-bold`},hm={class:`grid gap-4 sm:grid-cols-2`},gm={class:`m-label`,for:`a-name`},_m={key:0,class:`m-error`},vm={class:`m-label`,for:`a-email`},ym={key:0,class:`m-error`},bm={class:`m-label`,for:`a-pass`},xm=[`required`],Sm={class:`m-help`},Cm={key:0,class:`m-error`},wm={key:0},Tm={class:`m-label`},Em=[`value`,`disabled`],Dm={key:0,class:`ml-auto flex items-center gap-1 text-xs text-muted`},Om=[`value`],km={class:`m-help`},Am={key:1},jm={class:`m-label`},Mm={class:`flex items-center gap-2 py-0.5 text-sm`},Nm={class:`flex items-center gap-2 py-0.5 text-sm`},Pm={class:`flex items-center gap-2 py-0.5 text-sm`},Fm={class:`flex items-center gap-2 text-sm`},Im={class:`flex gap-2`},Lm=[`disabled`],Rm={class:`m-card divide-y divide-line`},zm={class:`min-w-0`},Bm={class:`truncate font-semibold`},Vm={key:0,class:`text-xs font-normal text-muted`},Hm={class:`truncate text-xs text-muted`},Um={class:`mt-1 flex flex-wrap gap-1`},Wm={key:0,class:`m-badge`},Gm=[`title`],Km={class:`flex gap-2`},qm=[`onClick`],Jm=[`onClick`],Ym=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 O3())}async function a(e){window.confirm(X(`Are you sure?`))&&(await Y.delete(`${J.base}/accounts/${e.id}`),$(X(`Deleted.`)),await O3())}return(o,s)=>(B(),V(R,null,[U(`div`,pm,[U(`h1`,mm,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`,hm,[U(`div`,null,[U(`label`,gm,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`,_m,O(N(n).errors.name),1)):K(``,!0)]),U(`div`,null,[U(`label`,vm,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`,ym,O(N(n).errors.email),1)):K(``,!0)])]),U(`div`,null,[U(`label`,bm,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,xm),[[q,N(n).values.password]]),U(`p`,Sm,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`,Cm,O(N(n).errors.password),1)):K(``,!0)]),e.groups.length?(B(),V(`fieldset`,wm,[U(`legend`,Tm,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,Em),[[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`,Dm,[F(U(`input`,{"onUpdate:modelValue":s[5]||=e=>N(n).values.primary_group=e,type:`radio`,value:e.id},null,8,Om),[[hu,N(n).values.primary_group]]),G(` `+O(N(X)(`Primary`)),1)])):K(``,!0)],2))),128)),U(`p`,km,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`,Am,[U(`legend`,jm,O(N(X)(`What this account sees`)),1),U(`label`,Mm,[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`,Nm,[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`,Pm,[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`,Fm,[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`,Im,[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,Lm),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`,Rm,[(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`,zm,[U(`p`,Bm,[G(O(e.name)+` `,1),e.is_you?(B(),V(`span`,Vm,`(`+O(N(X)(`you`))+`)`,1)):K(``,!0)]),U(`p`,Hm,O(e.email),1),U(`p`,Um,[e.is_super_admin?(B(),V(`span`,Wm,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,Gm))),128))])]),U(`div`,Km,[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,qm)):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,Jm)):K(``,!0)])]))),128))])],64))}}),Xm={class:`mb-6 flex flex-wrap items-center justify-between gap-3`},Zm={class:`font-display text-2xl font-bold`},Qm={class:`m-label`,for:`g-name`},$m={key:0,class:`m-error`},eh={class:`m-label`,for:`g-desc`},th={class:`m-label`,for:`g-start`},nh={value:``},rh=[`value`],ih={class:`m-help`},ah={class:`px-1 text-sm font-semibold`},oh=[`value`,`onChange`],sh={class:`flex gap-2`},ch=[`disabled`],lh={key:1,class:`m-card p-5 text-sm text-muted`},uh={key:2,class:`m-card divide-y divide-line`},dh={class:`min-w-0`},fh={class:`font-semibold`},ph={class:`text-xs font-normal text-muted`},mh={key:0,class:`text-xs text-muted`},hh={class:`flex gap-2`},gh=[`onClick`],_h=[`onClick`],vh=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 O3())}async function l(e){window.confirm(X(`Are you sure?`))&&(await Y.delete(`${J.base}/groups/${e.id}`),$(X(`Deleted.`)),await O3())}return(t,a)=>(B(),V(R,null,[U(`div`,Xm,[U(`h1`,Zm,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`,Qm,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`,$m,O(N(r).errors.name),1)):K(``,!0)]),U(`div`,null,[U(`label`,eh,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`,th,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`,nh,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,rh))),128))],512),[[gu,N(r).values.start]]),U(`p`,ih,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`,ah,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,oh),[[pu,N(r).values.permissions]]),G(` `+O(e.label),1)]))),128))]))),128)),U(`div`,sh,[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,ch),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`,uh,[(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`,dh,[U(`p`,fh,[G(O(e.name)+` `,1),U(`span`,ph,`· `+O(e.accounts)+` `+O(N(X)(`accounts`)),1)]),e.description?(B(),V(`p`,mh,O(e.description),1)):K(``,!0)]),U(`div`,hh,[U(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:t=>o(e)},O(N(X)(`Edit`)),9,gh),U(`button`,{type:`button`,class:`m-btn m-btn-danger`,onClick:t=>l(e)},O(N(X)(`Delete`)),9,_h)])]))),128))])):(B(),V(`p`,lh,O(N(X)(`Nothing here yet.`)),1))],64))}}),yh={class:`font-display mb-6 text-2xl font-bold`},bh={key:0,class:`m-error mb-4`},xh={class:`grid gap-6 md:grid-cols-2`},Sh={class:`mb-3 font-semibold`},Ch=[`onSubmit`],wh=[`onUpdate:modelValue`,`aria-label`],Th={type:`submit`,class:`m-btn m-btn-primary`},Eh={class:`divide-y divide-line`},Dh={class:`min-w-0 truncate`},Oh={class:`text-xs text-muted`},kh={class:`flex gap-1`},Ah=[`onClick`],jh=[`onClick`],Mh=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 O3()}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`,yh,O(N(X)(`Categories and tags`)),1),r.value?(B(),V(`p`,bh,O(r.value),1)):K(``,!0),U(`div`,xh,[(B(),V(R,null,L(t,t=>U(`section`,{key:t.type,class:`m-card p-4`},[U(`h2`,Sh,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,wh),[[q,n.value[t.type]]]),U(`button`,Th,O(N(X)(`Add`)),1)],40,Ch),U(`ul`,Eh,[(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`,Dh,[G(O(e.name)+` `,1),U(`span`,Oh,`· `+O(e.posts),1)]),U(`span`,kh,[U(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:n=>o(t.type,e.name)},O(N(X)(`Rename`)),9,Ah),U(`button`,{type:`button`,class:`m-btn m-btn-danger`,onClick:n=>s(t.type,e.name)},O(N(X)(`Delete`)),9,jh)])]))),128))])])),64))])],64))}}),Nh={class:`mb-6 flex flex-wrap items-center justify-between gap-3`},Ph={class:`font-display text-2xl font-bold`},Fh=[`accept`,`disabled`],Ih=[`title`],Lh={class:`h-2 overflow-hidden rounded-full bg-panel-2`},Rh={class:`m-help`},zh={key:0,class:`w-full shrink-0 sm:w-64`},Bh=[`src`,`alt`],Vh={class:`m-help`},Hh={class:`mt-2 flex items-center gap-2`},Uh=[`src`],Wh={class:`min-w-0 flex-1 space-y-3`},Gh={class:`m-label`,for:`m-name`},Kh=[`disabled`],qh={key:0,class:`m-error`},Jh={key:0},Yh={class:`m-label`,for:`m-alt`},Xh=[`disabled`],Zh={class:`m-help`},Qh={key:0},$h={key:1},eg={class:`m-help break-all`},tg={class:`flex gap-2`},ng=[`disabled`],rg={key:1,class:`m-card p-5 text-sm text-muted`},ig={key:2,class:`grid grid-cols-2 gap-3 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5`},ag=[`onClick`],og=[`src`,`alt`],sg={key:1,class:`grid aspect-square w-full place-items-center text-xs text-muted`},cg={class:`block truncate px-2 py-1.5 text-xs`},lg=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 O3()}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 O3())}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 O3())}return(f,p)=>(B(),V(R,null,[U(`div`,Nh,[U(`h1`,Ph,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,Fh)],2)):K(``,!0)]),U(`div`,{class:`mb-6 max-w-md`,title:`${a(e.storage.used)} / ${a(e.storage.limit)}`},[U(`div`,Lh,[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`,Rh,O(a(e.storage.used))+` / `+O(a(e.storage.limit))+` · `+O(N(X)(`Largest file`))+`: `+O(e.max_file_mb)+` MB`,1)],8,Ih),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`,zh,[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,Bh),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`,Vh,O(t(`media.edit`)?N(X)(`Click the part of the picture that must stay in view.`):N(X)(`Focus point`)),1),U(`div`,Hh,[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,Uh),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`,Wh,[U(`div`,null,[U(`label`,Gh,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,Kh),[[q,N(i).values.name]]),N(i).errors.name?(B(),V(`p`,qh,O(N(i).errors.name),1)):K(``,!0)]),r.value.is_image?(B(),V(`div`,Jh,[U(`label`,Yh,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,Xh),[[q,N(i).values.alt]])])):K(``,!0),U(`p`,Zh,[G(O(r.value.mime_type)+` · `+O(a(r.value.size)),1),r.value.width?(B(),V(`span`,Qh,` · `+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`,$h,` · `+O(r.value.uploaded_by),1)):K(``,!0)]),U(`p`,eg,O(r.value.url),1),U(`div`,tg,[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,ng)):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`,ig,[(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,og)):(B(),V(`span`,sg,O(e.mime_type),1)),U(`span`,cg,O(e.name),1)],10,ag))),128))])):(B(),V(`p`,rg,O(N(X)(`No files yet.`)),1))],64))}}),ug={class:`font-display mb-6 text-2xl font-bold`},dg={class:`mb-6 grid grid-cols-2 gap-3 md:grid-cols-4`},fg={class:`text-2xl font-bold`},pg={class:`m-help`},mg={class:`mb-4 flex flex-wrap gap-2`},hg=[`onClick`],gg=[`placeholder`,`aria-label`],_g=[`aria-label`],vg={value:``},yg=[`value`],bg={type:`submit`,class:`m-btn m-btn-secondary`},xg={key:0,class:`m-card p-5 text-sm text-muted`},Sg={key:1,class:`m-card divide-y divide-line`},Cg={class:`min-w-0`},wg={class:`font-semibold`},Tg={key:1},Eg={class:`text-xs text-muted`},Dg={class:`flex gap-2`},Og={key:0,class:`m-badge`},kg=[`onClick`],Ag={key:2,class:`mt-4 flex items-center gap-2`},jg={class:`text-sm text-muted`},Mg={class:`font-display mb-3 mt-10 text-xl font-bold`},Ng={class:`m-label`,for:`b-min`},Pg={class:`min-w-[10rem] flex-1`},Fg={class:`m-label`,for:`b-why`},Ig={key:0,class:`flex items-center gap-2 text-sm`},Lg={type:`submit`,class:`m-btn m-btn-danger`},Rg={key:1,class:`m-error w-full`},zg={key:4,class:`text-sm text-muted`},Bg={key:5,class:`m-card divide-y divide-line`},Vg={class:`font-semibold`},Hg={key:0,class:`m-badge`},Ug={key:1,class:`m-badge`},Wg={class:`text-xs text-muted`},Gg=[`onClick`],Kg={class:`font-display mb-3 mt-10 text-xl font-bold`},qg={class:`flex items-center gap-2 text-sm sm:col-span-2`},Jg={class:`m-label`,for:`r-max`},Yg={class:`m-label`,for:`r-win`},Xg={class:`m-label`,for:`r-ban`},Zg={class:`m-label`,for:`r-keep`},Qg=[`max`],$g={class:`m-help`},e_={class:`sm:col-span-2`},t_=[`disabled`],n_={class:`font-display mb-3 mt-10 text-xl font-bold`},r_={class:`m-label`,for:`n-group`},i_={class:`min-w-[10rem] flex-1`},a_={class:`m-label`,for:`n-note`},o_={type:`submit`,class:`m-btn m-btn-secondary`},s_={key:0,class:`m-error w-full`},c_={key:0,class:`m-card divide-y divide-line text-sm`},l_={key:0,class:`m-badge`},u_=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));D3(`${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 O3())}async function c(e){$((await Y.delete(`${J.base}/audit/bans/${e.id}`)).message),await O3()}let l=Yu({...t.settings});async function u(){await l.send(`put`,`${J.base}/audit/settings`)&&($(X(`Saved.`)),await O3())}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 O3())}let p=e=>e.expires_at?i(e.expires_at):X(`until lifted`);return(t,m)=>(B(),V(R,null,[U(`h1`,ug,O(N(X)(`Audit log`)),1),U(`div`,dg,[(B(!0),V(R,null,L(e.summary,(e,t)=>(B(),V(`div`,{key:t,class:`m-card p-4`},[U(`p`,fg,O(e),1),U(`p`,pg,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`,mg,[(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,hg)),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,gg),[[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`,vg,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,yg))),128))],8,_g),[[gu,r.user]]),U(`button`,bg,O(N(X)(`Filter`)),1)],32),e.entries.length?(B(),V(`ul`,Sg,[(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`,Cg,[U(`p`,wg,[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`,Tg,O(t.subject.label),1))],64)):K(``,!0)]),U(`p`,Eg,O(i(t.at))+` · `+O(t.who??t.email??N(X)(`Someone`))+` · `+O(t.ip)+` · `+O(t.browser),1)]),U(`span`,Dg,[t.banned?(B(),V(`span`,Og,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,kg)):K(``,!0)])]))),128))])):(B(),V(`p`,xg,O(N(X)(`Nothing here yet.`)),1)),e.pagination.pages>1?(B(),V(`nav`,Ag,[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`,jg,O(e.pagination.page)+` / `+O(e.pagination.pages),1),e.pagination.page<e.pagination.pages?(B(),V(`button`,{key:1,type:`button`,class:`m-btn m-btn-secondary`,onClick:m[5]||=t=>a({page:e.pagination.page+1})},O(N(X)(`Next`)),1)):K(``,!0)])):K(``,!0),U(`h2`,Mg,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`,Ng,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`,Pg,[U(`label`,Fg,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`,Ig,[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`,Lg,O(N(X)(`Ban`)),1),N(o).errors.ip?(B(),V(`p`,Rg,O(N(o).errors.ip),1)):K(``,!0)],32)):K(``,!0),e.bans.length?(B(),V(`ul`,Bg,[(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`,Vg,[G(O(t.ip)+` `,1),t.automatic?(B(),V(`span`,Hg,O(N(X)(`automatic`)),1)):K(``,!0),m[21]||=G(),t.whole_site?(B(),V(`span`,Ug,O(N(X)(`whole site`)),1)):K(``,!0)]),U(`p`,Wg,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,Gg)):K(``,!0)],2))),128))])):(B(),V(`p`,zg,O(N(X)(`No bans.`)),1)),e.can_manage?(B(),V(R,{key:6},[U(`h2`,Kg,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`,qg,[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`,Jg,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`,Yg,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`,Xg,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`,Zg,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,Qg),[[q,N(l).values.keep_days,void 0,{number:!0}]]),U(`p`,$g,`≤ `+O(e.max_keep_days),1)]),U(`div`,e_,[U(`button`,{type:`submit`,class:`m-btn m-btn-primary`,disabled:N(l).busy},O(N(X)(`Save`)),9,t_)]),(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`,n_,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`,r_,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`,i_,[U(`label`,a_,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`,o_,O(N(X)(`Save`)),1),N(d).errors.ip?(B(),V(`p`,s_,O(N(d).errors.ip),1)):K(``,!0)],32),e.notes.length?(B(),V(`ul`,c_,[(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`,l_,O(e.group),1)):K(``,!0),G(` `+O(e.note),1)]))),128))])):K(``,!0)],64)):K(``,!0)],64))}}),d_={class:`mb-6 flex flex-wrap items-center justify-between gap-3`},f_={class:`font-display text-2xl font-bold`},p_={key:0,class:`m-card mb-4 p-4 text-sm`},m_={key:1,class:`m-card mb-4 p-4 text-sm`},h_={class:`mb-4 max-w-3xl text-sm text-muted`},g_={class:`px-1 text-sm font-semibold`},__={key:0,class:`flex items-center justify-between gap-3 text-sm`},v_=[`checked`,`disabled`,`onChange`],y_=[`for`],b_=[`id`,`value`,`onChange`],x_=[`value`],S_=[`id`,`type`,`value`,`placeholder`,`autocomplete`,`disabled`,`onInput`],C_={key:2,class:`m-help`},w_={key:3,class:`m-error`},T_=[`onClick`],E_={key:0,class:`flex flex-wrap items-center gap-3`},D_=[`disabled`,`onClick`],O_={key:0,class:`m-help`},k_={key:0,class:`m-card p-5`},A_={class:`m-label`,for:`s-password`},j_={class:`m-help`},M_={key:0,class:`m-error`},N_=[`disabled`],P_=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 O3()}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`,d_,[U(`h1`,f_,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`,p_,[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`,m_,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`,h_,[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`,g_,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`,__,[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,v_)])):(B(),V(R,{key:1},[U(`label`,{class:`m-label`,for:`s-`+e.key},O(e.label),9,y_),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,x_))),128))],40,b_)):(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,S_))],64)),e.help?(B(),V(`p`,C_,O(e.help),1)):K(``,!0),a.value[`values.`+e.key]?(B(),V(`p`,w_,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,T_)):K(``,!0)]))),128)),e.check?(B(),V(`div`,E_,[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,D_),u.value?(B(),V(`span`,O_,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`,k_,[U(`label`,A_,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`,j_,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`,M_,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,N_)],32)],64))}}),F_={class:`mb-6 flex flex-wrap items-center justify-between gap-3`},I_={class:`font-display text-2xl font-bold`},L_={class:`text-sm text-muted`},R_={key:0},z_={class:`mb-6 flex flex-wrap gap-2`},B_={class:`mb-6 grid grid-cols-2 gap-3 md:grid-cols-5`},V_={class:`text-2xl font-bold`},H_={class:`m-help`},U_={class:`m-card mb-6 p-4`},W_={class:`mb-3 font-semibold`},G_=[`aria-label`],K_=[`title`],q_={class:`mb-6 grid gap-6 md:grid-cols-2`},J_={class:`m-card p-4`},Y_={class:`mb-3 font-semibold`},X_={key:0,class:`text-sm text-muted`},Z_={class:`divide-y divide-line text-sm`},Q_={class:`truncate`},$_={class:`text-muted`},e1={class:`m-card p-4`},t1={class:`mb-3 font-semibold`},n1={key:0,class:`text-sm text-muted`},r1={class:`divide-y divide-line text-sm`},i1={class:`truncate`},a1={class:`text-muted`},o1={class:`mb-3 font-semibold`},s1={key:0,class:`text-sm text-muted`},c1={class:`divide-y divide-line text-sm`},l1={class:`truncate`},u1={class:`text-muted`},d1={class:`m-card mb-6 overflow-x-auto p-4`},f1={class:`mb-3 font-semibold`},p1={class:`space-y-0.5 text-xs`},m1={class:`w-9 shrink-0 text-muted`},h1=[`title`],g1={class:`m-card mb-6 p-4`},_1={class:`mb-3 font-semibold`},v1={class:`text-sm font-normal text-muted`},y1={key:0,class:`text-sm text-muted`},b1={class:`divide-y divide-line text-sm`},x1={class:`text-xs text-muted`},S1={class:`text-muted`},C1={class:`flex flex-wrap items-center gap-2 text-sm`},w1={class:`text-muted`},T1=[`href`],E1=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`,F_,[U(`h1`,I_,O(N(X)(`Statistics`)),1),U(`p`,L_,[G(O(e.range.from)+` → `+O(e.range.to),1),e.range.compared_to?(B(),V(`span`,R_,` · `+O(N(X)(`compared with`))+` `+O(e.range.compared_to),1)):K(``,!0)])]),U(`nav`,z_,[(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`,B_,[(B(!0),V(R,null,L(n.value,([t,n])=>(B(),V(`div`,{key:n,class:`m-card p-4`},[U(`p`,V_,O(r(n,e.totals[n])),1),U(`p`,H_,[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`,U_,[U(`h2`,W_,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,K_))),128))],8,G_)]),U(`div`,q_,[U(`section`,J_,[U(`h2`,Y_,O(N(X)(`Pages`)),1),e.pages.length?K(``,!0):(B(),V(`p`,X_,O(N(X)(`Nothing here yet.`)),1)),U(`ul`,Z_,[(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`,Q_,O(e.title??e.path),1),U(`span`,$_,O(e.views),1)]))),128))])]),U(`section`,e1,[U(`h2`,t1,O(N(X)(`Posts`)),1),e.posts.length?K(``,!0):(B(),V(`p`,n1,O(N(X)(`Nothing here yet.`)),1)),U(`ul`,r1,[(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`,i1,O(e.title),1),U(`span`,a1,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`,o1,O(N(X)(e)),1),t.length?K(``,!0):(B(),V(`p`,s1,O(N(X)(`Nothing here yet.`)),1)),U(`ul`,c1,[(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`,l1,O(e.name||N(X)(`Direct`)),1),U(`span`,u1,O(e.visits),1)]))),128))])]))),128))]),U(`section`,d1,[U(`h2`,f1,O(N(X)(`When people visit`)),1),U(`div`,p1,[(B(!0),V(R,null,L(e.heatmap,e=>(B(),V(`div`,{key:e.day,class:`flex items-center gap-0.5`},[U(`span`,m1,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,h1))),128))]))),128))])]),U(`section`,g1,[U(`h2`,_1,[G(O(N(X)(`Programs`))+` `,1),U(`span`,v1,`· `+O(e.bots.total),1)]),e.bots.names.length?K(``,!0):(B(),V(`p`,y1,O(N(X)(`Nothing here yet.`)),1)),U(`ul`,b1,[(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`,x1,O(e.kind),1)]),U(`span`,S1,O(e.hits),1)]))),128))])]),U(`p`,C1,[U(`span`,w1,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,T1))),128))])],64))}}),D1={class:`font-display mb-6 text-2xl font-bold`},O1={key:0,class:`m-card p-5 text-sm text-muted`},k1={key:1,class:`m-card divide-y divide-line`},A1={class:`min-w-0`},j1={class:`truncate font-semibold`},M1={class:`truncate text-xs text-muted`},N1={class:`m-badge`},P1={key:2,class:`mt-4 flex gap-2`},F1=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`,D1,O(N(X)(r.value)),1),t.data.length?(B(),V(`ul`,k1,[(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`,A1,[U(`p`,j1,O(i(e)),1),U(`p`,M1,O(a(e)),1)]),U(`span`,N1,O(o(e)?N(X)(`Published`):N(X)(`Draft`)),1)]))),128))])):(B(),V(`p`,O1,O(N(X)(`Nothing here yet.`)),1)),t.last_page>1?(B(),V(`nav`,P1,[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<t.last_page?(B(),H(Z,{key:1,href:s(t.current_page+1),class:`m-btn m-btn-secondary`},{default:P(()=>[G(O(N(X)(`Next`)),1)]),_:1},8,[`href`])):K(``,!0)])):K(``,!0)],64))}}),I1={class:`space-y-5`},L1={key:0,class:`flex items-center gap-2 text-sm`},R1=[`onUpdate:modelValue`],z1=[`for`],B1={key:0,class:`text-muted`},V1=[`id`,`onUpdate:modelValue`],H1={key:0,value:``},U1=[`value`],W1=[`id`,`onUpdate:modelValue`,`rows`,`maxlength`,`required`],G1={key:3,class:`flex flex-wrap items-center gap-3`},K1=[`src`],q1=[`id`,`onClick`],J1=[`onClick`],Y1={key:4,class:`flex gap-2`},X1=[`id`,`onUpdate:modelValue`],Z1=[`onClick`],Q1=[`id`,`value`,`onInput`],$1={key:6,class:`space-y-2`},e0=[`src`],t0=[`onUpdate:modelValue`,`aria-label`],n0=[`onClick`],r0=[`onClick`],i0={key:7,class:`space-y-3`},a0=[`for`],o0=[`id`,`onUpdate:modelValue`],s0=[`id`,`onUpdate:modelValue`],c0=[`onClick`],l0=[`onClick`],u0=[`id`,`onUpdate:modelValue`,`type`,`maxlength`,`required`],d0=[`src`],f0={key:2,class:`mt-1 text-xs text-muted`},p0={key:3,class:`m-help`},m0={key:4,class:`m-error`},h0=I({__name:`FormFields`,props:{fields:{},values:{},errors:{},prefix:{},idPrefix:{}},setup(e){let t=e,n=e=>(t.idPrefix??`f-`)+e.key,r=pc(()=>t.fields.filter(e=>!(e.advanced&&J.view===`simple`))),i=e=>J.view===`simple`&&e.simple_label||e.label,a=e=>J.view===`simple`&&e.simple_help||e.help,o=M(null),s=M(null),c=e=>t.values[e]=Array.isArray(t.values[e])?t.values[e]:[],l=e=>c(e).join(`
`),u=(e,n)=>t.values[e]=n.split(`
`),d=e=>Object.values(e.items??{}),f=e=>c(e.key).push(Object.fromEntries(d(e).map(e=>[e.key,``]))),p=J.permissions.includes(`media.view`),m=J.view===`simple`;return(t,h)=>(B(),V(`div`,I1,[(B(!0),V(R,null,L(r.value,t=>(B(),V(`div`,{key:t.key},[t.type===`toggle`?(B(),V(`label`,L1,[F(U(`input`,{"onUpdate:modelValue":n=>e.values[t.key]=n,type:`checkbox`},null,8,R1),[[pu,e.values[t.key]]]),G(` `+O(N(X)(i(t))),1)])):(B(),V(R,{key:1},[U(`label`,{for:n(t),class:`m-label`},[G(O(N(X)(i(t))),1),t.required?(B(),V(`span`,B1,` *`)):K(``,!0)],8,z1),t.type===`select`?F((B(),V(`select`,{key:0,id:n(t),"onUpdate:modelValue":n=>e.values[t.key]=n,class:`m-input`},[t.required?K(``,!0):(B(),V(`option`,H1)),(B(!0),V(R,null,L(t.options,(e,t)=>(B(),V(`option`,{key:t,value:t},O(e),9,U1))),128))],8,V1)),[[gu,e.values[t.key]]]):t.type===`markdown`?(B(),H(yf,{key:1,id:n(t),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:n(t),"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,W1)),[[q,e.values[t.key]]]):t.type===`media`&&m?(B(),V(`div`,G1,[e.values[t.key]?(B(),V(`img`,{key:0,src:e.values[t.key],alt:``,class:`h-28 w-auto max-w-full rounded-lg border border-line object-cover`},null,8,K1)):K(``,!0),N(p)?(B(),V(`button`,{key:1,id:n(t),type:`button`,class:`m-btn m-btn-primary`,onClick:e=>o.value=t.key},O(e.values[t.key]?N(X)(`Use another photo`):N(X)(`Choose a photo`)),9,q1)):K(``,!0),e.values[t.key]?(B(),V(`button`,{key:2,type:`button`,class:`m-btn m-btn-secondary`,onClick:n=>e.values[t.key]=``},O(N(X)(`Take it away`)),9,J1)):K(``,!0)])):t.type===`media`?(B(),V(`div`,Y1,[F(U(`input`,{id:n(t),"onUpdate:modelValue":n=>e.values[t.key]=n,maxlength:`2048`,class:`m-input`},null,8,X1),[[q,e.values[t.key]]]),N(p)?(B(),V(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary shrink-0`,onClick:e=>o.value=t.key},O(N(X)(`Choose`)),9,Z1)):K(``,!0)])):t.type===`list`?(B(),V(`textarea`,{key:5,id:n(t),value:l(t.key),rows:`5`,class:`m-input`,onInput:e=>u(t.key,e.target.value)},null,40,Q1)):t.type===`media_list`?(B(),V(`div`,$1,[(B(!0),V(R,null,L(c(t.key),(n,r)=>(B(),V(`div`,{key:r,class:`flex items-center gap-2`},[U(`img`,{src:n,alt:``,class:D([`rounded border border-line object-cover`,m?`h-20 w-20`:`h-12 w-12`])},null,10,e0),m?K(``,!0):F((B(),V(`input`,{key:0,"onUpdate:modelValue":n=>e.values[t.key][r]=n,maxlength:`2048`,class:`m-input`,"aria-label":N(X)(i(t))},null,8,t0)),[[q,e.values[t.key][r]]]),U(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:n=>e.values[t.key].splice(r,1)},O(m?N(X)(`Take it away`):N(X)(`Remove`)),9,n0)]))),128)),N(p)?(B(),V(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary`,onClick:e=>s.value=t.key},O(m?N(X)(`Add photos`):N(X)(`Add a picture`)),9,r0)):K(``,!0)])):t.type===`repeater`?(B(),V(`div`,i0,[(B(!0),V(R,null,L(c(t.key),(n,r)=>(B(),V(`div`,{key:r,class:`m-card space-y-2 p-3`},[(B(!0),V(R,null,L(d(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,a0),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,o0)),[[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,s0)),[[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,c0)]))),128)),U(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:e=>f(t)},O(N(X)(`Add`)),9,l0)])):F((B(),V(`input`,{key:8,id:n(t),"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,u0)),[[xu,e.values[t.key]]]),t.type===`media`&&e.values[t.key]&&!m?(B(),V(`img`,{key:9,src:e.values[t.key],alt:``,class:`mt-2 h-24 w-auto rounded-lg border border-line object-cover`},null,8,d0)):K(``,!0)],64)),t.type===`lines`||t.type===`list`?(B(),V(`p`,f0,O(N(X)(`One per line.`)),1)):K(``,!0),a(t)?(B(),V(`p`,p0,O(N(X)(a(t))),1)):K(``,!0),e.errors?.[(e.prefix??``)+t.key]?(B(),V(`p`,m0,O(e.errors[(e.prefix??``)+t.key]),1)):K(``,!0)]))),128)),o.value?(B(),H(af,{key:0,onPick:h[0]||=t=>{e.values[o.value]=t,o.value=null},onClose:h[1]||=e=>o.value=null})):K(``,!0),s.value?(B(),H(af,{key:1,many:``,onPick:h[2]||=e=>{c(s.value).push(e),s.value=null},onMany:h[3]||=e=>{c(s.value).push(...e),s.value=null},onClose:h[4]||=e=>s.value=null})):K(``,!0)]))}}),g0=[`aria-label`],_0={class:`flex items-center justify-between gap-3`},v0={class:`font-display text-lg font-bold`},y0=[`aria-expanded`],b0={class:`sr-only`,role:`status`,"aria-live":`polite`},x0=[`aria-label`],S0={class:`m-label`},C0={class:`flex flex-wrap gap-2`},w0=[`title`,`onClick`],T0={key:1,class:`text-sm text-muted`},E0={key:2,class:`m-card p-4 text-sm text-muted`},D0={key:3,class:`space-y-2`},O0=[`id`,`draggable`,`onDragstart`,`onDragover`,`onDragleave`,`onDrop`],k0={class:`flex items-center gap-2 p-3`},A0=[`title`],j0=[`id`,`aria-expanded`,`aria-label`,`title`,`onClick`,`onKeydown`],M0={class:`font-semibold`},N0={key:0,class:`ml-2 truncate text-sm text-muted`},P0={key:1,class:`m-badge ml-2`},F0={class:`flex shrink-0 gap-1`},I0=[`disabled`,`aria-label`,`onClick`],L0=[`disabled`,`aria-label`,`onClick`],R0=[`aria-label`,`onClick`],z0=[`aria-pressed`,`aria-label`,`onClick`],B0=[`aria-label`,`onClick`],V0={key:0,class:`space-y-4 border-t border-line p-4`},H0={key:0,class:`rounded-lg border border-line p-3`},U0={class:`cursor-pointer text-sm font-semibold`},W0={class:`mt-3 grid gap-3 sm:grid-cols-2`},G0=[`for`],K0=[`id`,`onUpdate:modelValue`],q0=[`value`],J0={key:1,class:`grid gap-3 sm:grid-cols-2`},Y0=[`for`],X0=[`id`,`onUpdate:modelValue`],Z0=[`value`],Q0=0,$0=e=>({...e,_key:e.id??`new-${++Q0}`}),ev=I({__name:`BlocksEditor`,props:{modelValue:{},types:{},errors:{},layout:{type:Boolean,default:!0}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,i=pc(()=>n.modelValue),a=J.view===`simple`,o=e=>n.types.find(t=>t.key===e),s=e=>X(Bd(e.label,e.simple_label)),c={image:`image`,gallery:`image`,hero:`image`,"image-text":`image`,compare:`image`,text:`file`,title:`file`,quote:`file`,faq:`file`,list:`file`,cards:`group`,stats:`chart`,tags:`tag`,cta:`link`,form:`link`},l=e=>c[e.icon]??void 0,u=M(null),d=M(!1),f=M(null),p=M(null),m=M(``),h=pc(()=>{let e={};return n.types.forEach(t=>(e[t.group]??=[]).push(t)),Object.entries(e)}),g=e=>r(`update:modelValue`,e),_=e=>e._key??e.id??``;function v(e){for(let t of Object.values(e.data))if(typeof t==`string`&&t.trim()!==``&&!/^https?:|^\//.test(t))return t.trim().replace(/\s+/g,` `).slice(0,80);return``}function y(e){let t={};return e.fields.forEach(e=>{t[e.key]=e.default??(e.type===`toggle`?!1:[`list`,`media_list`,`repeater`].includes(e.type)?[]:``)}),$0({type:e.key,data:t,style:Object.fromEntries(e.style.map(e=>[e.key,e.default])),hidden:!1})}function b(e){let t=y(e);g([...i.value,t]),u.value=_(t),d.value=!1,m.value=X(`:name added`,{name:s(e)}),ar(()=>document.getElementById(`block-`+_(t))?.scrollIntoView({block:`nearest`}))}function x(e,t){if(t<0||t>=i.value.length||e===t)return;let n=[...i.value];n.splice(t,0,n.splice(e,1)[0]),g(n),m.value=X(`Moved to place :place of :total`,{place:t+1,total:n.length}),ar(()=>document.getElementById(`move-${_(n[t])}`)?.focus())}function S(e){let t=i.value[e],n=$0({...JSON.parse(JSON.stringify(t)),id:void 0,_key:void 0}),r=[...i.value];r.splice(e+1,0,n),g(r),u.value=_(n)}function ee(e){let t=[...i.value];t[e]={...t[e],hidden:!t[e].hidden},g(t)}function C(e){if(!window.confirm(X(`Are you sure?`)))return;let t=i.value.filter((t,n)=>n!==e);g(t),m.value=X(`Block removed`)}function te(e){f.value!==null&&x(f.value,e),f.value=p.value=null}function w(e,t){n.layout&&e.altKey&&(e.key===`ArrowUp`||e.key===`ArrowDown`)&&(e.preventDefault(),x(t,t+(e.key===`ArrowUp`?-1:1)))}return(t,r)=>(B(),V(`section`,{class:`space-y-3`,"aria-label":N(X)(`Blocks`)},[U(`div`,_0,[U(`h2`,v0,O(N(Bd)(N(X)(`Blocks`),N(X)(`The parts of your page`))),1),n.layout?(B(),V(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary`,"aria-expanded":d.value,onClick:r[0]||=e=>d.value=!d.value},O(N(Bd)(N(X)(`Add a block`),N(X)(`Add something to the page`))),9,y0)):K(``,!0)]),U(`p`,b0,O(m.value),1),d.value&&n.layout?(B(),V(`div`,{key:0,class:`m-card space-y-4 p-4`,role:`group`,"aria-label":N(X)(`Choose a block`)},[(B(!0),V(R,null,L(h.value,([e,t])=>(B(),V(`div`,{key:e},[U(`p`,S0,O(N(X)(e)),1),U(`div`,C0,[(B(!0),V(R,null,L(t,e=>(B(),V(`button`,{key:e.key,type:`button`,class:`m-btn m-btn-secondary`,title:e.icon,onClick:t=>b(e)},[W(ed,{name:l(e)},null,8,[`name`]),G(` `+O(s(e)),1)],8,w0))),128))])]))),128))],8,x0)):K(``,!0),a&&i.value.length&&n.layout?(B(),V(`p`,T0,O(N(X)(`Press a part to change it. The arrows move it up or down. Nothing is lost: a part you take off the site can be put back.`)),1)):K(``,!0),i.value.length?(B(),V(`ol`,D0,[(B(!0),V(R,null,L(i.value,(t,c)=>(B(),V(`li`,{id:`block-`+_(t),key:_(t),class:D([`m-card`,[p.value===c&&f.value!==c?`ring-2 ring-brand`:``,t.hidden?`opacity-70`:``]]),draggable:n.layout,onDragstart:e=>f.value=c,onDragover:Du(e=>p.value=c,[`prevent`]),onDragleave:e=>p.value=p.value===c?null:p.value,onDrop:Du(e=>te(c),[`prevent`]),onDragend:r[1]||=e=>f.value=p.value=null},[U(`div`,k0,[n.layout&&!a?(B(),V(`span`,{key:0,class:`cursor-grab select-none text-muted`,"aria-hidden":`true`,title:N(X)(`Drag to reorder`)},`⠿`,8,A0)):K(``,!0),U(`button`,{id:`move-`+_(t),type:`button`,class:`min-w-0 flex-1 text-left`,"aria-expanded":u.value===_(t),"aria-label":N(X)(`Edit :name`,{name:o(t.type)?s(o(t.type)):t.type})+(v(t)?`: `+v(t):``),title:N(X)(`Alt + arrow up or down moves the block`),onClick:e=>u.value=u.value===_(t)?null:_(t),onKeydown:e=>w(e,c)},[U(`span`,M0,O(o(t.type)?s(o(t.type)):t.type),1),v(t)?(B(),V(`span`,N0,O(v(t)),1)):K(``,!0),t.hidden?(B(),V(`span`,P0,O(N(X)(`Hidden`)),1)):K(``,!0)],40,j0),U(`div`,F0,[n.layout?(B(),V(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary`,disabled:c===0,"aria-label":N(X)(`Move up`),onClick:e=>x(c,c-1)},`↑`,8,I0)):K(``,!0),n.layout?(B(),V(`button`,{key:1,type:`button`,class:`m-btn m-btn-secondary`,disabled:c===i.value.length-1,"aria-label":N(X)(`Move down`),onClick:e=>x(c,c+1)},`↓`,8,L0)):K(``,!0),n.layout&&!a?(B(),V(`button`,{key:2,type:`button`,class:`m-btn m-btn-secondary`,"aria-label":N(X)(`Duplicate`),onClick:e=>S(c)},`⧉`,8,R0)):K(``,!0),n.layout?(B(),V(`button`,{key:3,type:`button`,class:`m-btn m-btn-secondary`,"aria-pressed":t.hidden,"aria-label":t.hidden?N(X)(`Show`):N(X)(`Hide`),onClick:e=>ee(c)},O(t.hidden?a?N(X)(`Put it back on the site`):N(X)(`Show`):a?N(X)(`Take it off the site`):N(X)(`Hide`)),9,z0)):K(``,!0),n.layout&&!a?(B(),V(`button`,{key:4,type:`button`,class:`m-btn m-btn-danger`,"aria-label":N(X)(`Delete`),onClick:e=>C(c)},`✕`,8,B0)):K(``,!0)])]),u.value===_(t)&&o(t.type)?(B(),V(`div`,V0,[W(h0,{fields:o(t.type).fields,values:t.data,errors:e.errors,prefix:`blocks.${c}.data.`,"id-prefix":`b-${_(t)}-`},null,8,[`fields`,`values`,`errors`,`prefix`,`id-prefix`]),a&&o(t.type).style.length?(B(),V(`details`,H0,[U(`summary`,U0,O(N(X)(`Change how it looks`)),1),U(`div`,W0,[(B(!0),V(R,null,L(o(t.type).style,e=>(B(),V(`div`,{key:e.key},[U(`label`,{for:`s-${_(t)}-${e.key}`,class:`m-label`},O(N(X)(e.key.charAt(0).toUpperCase()+e.key.slice(1))),9,G0),F(U(`select`,{id:`s-${_(t)}-${e.key}`,"onUpdate:modelValue":n=>t.style[e.key]=n,class:`m-input`},[(B(!0),V(R,null,L(e.options,(e,t)=>(B(),V(`option`,{key:t,value:t},O(N(X)(e)),9,q0))),128))],8,K0),[[gu,t.style[e.key]]])]))),128))])])):o(t.type).style.length?(B(),V(`div`,J0,[(B(!0),V(R,null,L(o(t.type).style,e=>(B(),V(`div`,{key:e.key},[U(`label`,{for:`s-${_(t)}-${e.key}`,class:`m-label`},O(N(X)(e.key.charAt(0).toUpperCase()+e.key.slice(1))),9,Y0),F(U(`select`,{id:`s-${_(t)}-${e.key}`,"onUpdate:modelValue":n=>t.style[e.key]=n,class:`m-input`},[(B(!0),V(R,null,L(e.options,(e,t)=>(B(),V(`option`,{key:t,value:t},O(N(X)(e)),9,Z0))),128))],8,X0),[[gu,t.style[e.key]]])]))),128))])):K(``,!0)])):K(``,!0)],42,O0))),128))])):(B(),V(`p`,E0,O(n.layout?N(Bd)(N(X)(`No blocks yet. Add one to start.`),N(X)(`Nothing on this page yet. Press "Add something to the page" to start.`)):N(X)(`No blocks yet.`)),1))],8,g0))}}),tv={class:`mb-6 flex items-center justify-between gap-3`},nv={class:`font-display text-2xl font-bold`},rv={class:`text-sm opacity-80`},iv={class:`text-sm`},av=[`disabled`],ov=I({__name:`RecordTemplate`,props:{resource:{},record_fields:{},blocks:{},block_types:{}},setup(e){let t=e,n=X(Bd(t.resource.label,t.resource.simple_label)),r=Yu({blocks:t.blocks.map($0)});async function i(){await r.send(`put`,`${J.base}/records/${t.resource.key}/template`)&&$(X(`Saved.`))}return(t,a)=>(B(),V(R,null,[U(`div`,tv,[U(`h1`,nv,O(N(X)(`Page layout of :name`,{name:N(n)})),1),W(Z,{href:`${N(J).base}/records/${e.resource.key}`,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(i,[`prevent`])},[U(`p`,rv,O(N(X)(`The page every :name gets. Write {record.field} in a text to fill in a field of the record, for example {record.title}.`,{name:N(Bd)(e.resource.singular,e.resource.simple_singular)})),1),U(`p`,iv,[U(`strong`,null,O(N(X)(`Fields you can fill in`))+`:`,1),a[1]||=G(),(B(!0),V(R,null,L(e.record_fields,e=>(B(),V(`code`,{key:e.key,class:`mr-2`},O(`{record.`+e.key+`}`),1))),128))]),W(ev,{modelValue:N(r).values.blocks,"onUpdate:modelValue":a[0]||=e=>N(r).values.blocks=e,types:e.block_types,errors:N(r).errors},null,8,[`modelValue`,`types`,`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,av)],32)],64))}}),sv={class:`mb-6 flex items-center justify-between gap-3`},cv={class:`font-display text-2xl font-bold`},lv=[`disabled`],uv=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.`)),D3(n))}return(t,a)=>(B(),V(R,null,[U(`div`,sv,[U(`h1`,cv,O(e.record.id===null?N(X)(`New`)+`: `+N(X)(N(Bd)(e.resource.singular,e.resource.simple_singular)):N(X)(N(Bd)(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(h0,{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,lv)],32)],64))}}),dv={class:`mb-4 font-display text-2xl font-bold`},fv={class:`mb-4 flex flex-wrap gap-2`,role:`tablist`},pv=[`aria-selected`,`onClick`],mv={class:`ml-1 text-xs opacity-75`},hv={key:0,class:`m-error mb-3`,role:`alert`},gv={key:1,class:`m-card p-5 text-sm text-muted`},_v={key:2,class:`space-y-3`},vv=[`aria-expanded`,`onClick`],yv=[`title`],bv={class:`min-w-0 flex-1`},xv={class:`block truncate font-semibold`},Sv={class:`font-normal text-muted`},Cv={class:`block truncate text-sm text-muted`},wv={class:`shrink-0 text-xs text-muted`},Tv={key:0,class:`space-y-4 border-t border-line p-4 text-sm`},Ev={key:0,class:`m-error`},Dv={key:1,class:`whitespace-pre-line`},Ov={key:2,class:`grid gap-1`},kv={class:`inline text-muted`},Av={class:`inline font-medium`},jv={key:0},Mv={class:`inline text-muted`},Nv={class:`inline font-medium`},Pv={class:`flex flex-wrap gap-2`},Fv=[`href`],Iv=[`href`],Lv=[`href`],Rv=[`onClick`],zv=[`onClick`],Bv=[`disabled`,`onClick`],Vv=[`disabled`,`onClick`],Hv={key:3,class:`space-y-1`},Uv={class:`text-xs text-muted`},Wv=[`onSubmit`],Gv=[`onUpdate:modelValue`,`placeholder`,`aria-label`],Kv=[`disabled`],qv={key:5,class:`space-y-2 border-t border-line pt-3`},Jv={class:`text-xs text-muted`},Yv={key:0,class:`list-disc pl-5 text-xs text-muted`},Xv={class:`flex flex-wrap gap-2`},Zv=[`onClick`],Qv=[`onClick`],$v=[`onClick`],ey=[`onClick`],ty=[`onClick`],ny=[`onClick`],ry=[`onClick`],iy={key:3,class:`m-card mt-8 p-4`},ay={class:`mb-1 font-semibold`},oy={class:`mb-3 text-sm text-muted`},sy={class:`grid gap-6 text-sm sm:grid-cols-2`},cy={class:`mb-1 font-medium`},ly={class:`mb-1 font-medium`},uy={class:`truncate`},dy={class:`shrink-0`},fy={key:0,class:`text-muted`},py={key:0,class:`text-muted`},my={key:0},hy={class:`mb-1 font-medium`},gy={class:`truncate`},_y={key:4,class:`m-card mt-8 p-4`},vy={class:`mb-2 font-semibold`},yy={class:`divide-y divide-line text-sm`},by={key:0,class:`text-muted`},xy=[`onClick`],Sy=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 O3()}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=>D3(`${n}${e===`waiting`?``:`?view=`+e}`);return(t,n)=>(B(),V(R,null,[U(`h1`,dv,O(N(X)(`Requests`)),1),U(`div`,fv,[(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`,mv,O(e.counts[t]),1)],10,pv))),128))]),a.value?(B(),V(`p`,hv,O(a.value),1)):K(``,!0),e.items.length?(B(),V(`ul`,_v,[(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,yv)):K(``,!0),U(`span`,bv,[U(`span`,xv,[G(O(t.name)+` `,1),U(`span`,Sv,`· `+O(t.subject),1)]),U(`span`,Cv,O(t.message??t.kind),1)]),U(`span`,wv,O(s(t.created_at)),1)],8,vv),r.value===t.id?(B(),V(`div`,Tv,[t.notify_failed?(B(),V(`p`,Ev,O(N(X)(`The mail about this request could not be sent.`)),1)):K(``,!0),t.message?(B(),V(`p`,Dv,O(t.message),1)):K(``,!0),Object.keys(t.answers).length||t.location?(B(),V(`dl`,Ov,[(B(!0),V(R,null,L(t.answers,(e,t)=>(B(),V(`div`,{key:t},[U(`dt`,kv,O(t)+`: `,1),U(`dd`,Av,O(e),1)]))),128)),t.location?(B(),V(`div`,jv,[U(`dt`,Mv,O(N(X)(`Where`))+`: `,1),U(`dd`,Nv,O(t.location),1)])):K(``,!0)])):K(``,!0),U(`div`,Pv,[t.call_link?(B(),V(`a`,{key:0,href:t.call_link,class:`m-btn m-btn-primary`},O(N(X)(`Call`)),9,Fv)):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,Iv)):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,Lv)):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,Rv)):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,zv),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,Bv),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,Vv)],64)):K(``,!0)]),t.notes.length?(B(),V(`div`,Hv,[(B(!0),V(R,null,L(t.notes,(e,t)=>(B(),V(`p`,{key:t,class:`rounded bg-surface-2 p-2`},[U(`span`,Uv,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,Gv),[[q,i[t.id]]]),U(`button`,{type:`submit`,class:`m-btn m-btn-secondary`,disabled:!i[t.id]},O(N(X)(`Add`)),9,Kv)],40,Wv)):K(``,!0),e.can.manage?(B(),V(`div`,qv,[U(`p`,Jv,[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`,Yv,[(B(!0),V(R,null,L(t.reasons,(e,t)=>(B(),V(`li`,{key:t},O(e),1))),128))])):K(``,!0),U(`div`,Xv,[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,Zv)),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,Qv)):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,$v)):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,ey)):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,ty)):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,ny)):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,ry)):K(``,!0)])):K(``,!0)]))),128))])):(B(),V(`p`,gv,O(N(X)(`Nothing here yet.`)),1)),e.report?(B(),V(`section`,iy,[U(`h2`,ay,O(N(X)(`What it brought in`)),1),U(`p`,oy,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`,sy,[U(`div`,null,[U(`h3`,cy,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`,ly,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`,uy,O(e.name),1),U(`span`,dy,[U(`strong`,null,O(e.count),1),e.won?(B(),V(`span`,fy,` (`+O(e.won)+` ✓)`,1)):K(``,!0)])]))),128)),t.length?K(``,!0):(B(),V(`li`,py,`—`))])]))),128)),e.report.tap_pages.length?(B(),V(`div`,my,[U(`h3`,hy,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`,gy,O(e.name),1),U(`strong`,null,O(e.count),1)]))),128))])])):K(``,!0)])])):K(``,!0),e.blocks?.length?(B(),V(`section`,_y,[U(`h2`,vy,O(N(X)(`Blocked senders`)),1),U(`ul`,yy,[(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`,by,` · `+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,xy)]))),128))])])):K(``,!0)],64))}}),Cy={class:`font-display mb-2 text-2xl font-bold`},wy={class:`mb-6 text-sm text-muted`},Ty={key:0,class:`m-card p-5 text-sm text-muted`},Ey={key:1,class:`space-y-4`},Dy={class:`font-display text-lg font-bold`},Oy={key:0,class:`ml-2 text-sm font-normal text-muted`},ky={key:0,class:`text-sm font-semibold`},Ay={class:`mt-1 list-disc space-y-1 pl-5 text-sm`},jy=I({__name:`UpdatesList`,props:{releases:{}},setup(e){let t=e;return(e,n)=>(B(),V(R,null,[U(`h1`,Cy,O(N(X)(`Updates`)),1),U(`p`,wy,O(N(X)(`What changed on your website`)),1),t.releases.length?(B(),V(`div`,Ey,[(B(!0),V(R,null,L(t.releases,e=>(B(),V(`section`,{key:e.version,class:`m-card p-5`},[U(`h2`,Dy,[G(O(e.version)+` `,1),e.date?(B(),V(`span`,Oy,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`,ky,O(e.title),1)):K(``,!0),U(`ul`,Ay,[(B(!0),V(R,null,L(e.items,(e,t)=>(B(),V(`li`,{key:t},O(e),1))),128))])]))),128))]))),128))])):(B(),V(`p`,Ty,O(N(X)(`No changes recorded yet.`)),1))],64))}}),My={class:`font-display mb-2 text-2xl font-bold`},Ny={class:`mb-6 text-sm text-muted`},Py={class:`m-card mb-6 divide-y divide-line`},Fy={class:`font-semibold`},Iy={class:`text-xs text-muted`},Ly={class:`text-xs text-muted`},Ry={key:0,class:`flex gap-2`},zy=[`onClick`],By=[`onClick`],Vy={class:`mb-3 font-semibold`},Hy={key:0,class:`m-card p-5 text-sm text-muted`},Uy={key:1,class:`m-card divide-y divide-line`},Wy={class:`min-w-0`},Gy={class:`truncate font-semibold`},Ky={class:`truncate text-xs text-muted`},qy={class:`m-badge`},Jy=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 O3())}return(e,n)=>(B(),V(R,null,[U(`h1`,My,O(N(X)(`Sharing`)),1),U(`p`,Ny,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`,Py,[(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`,Fy,O(e.label),1),U(`p`,Iy,[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`,Ly,[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`,Ry,[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,zy)):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,By)):K(``,!0)])):K(``,!0)]))),128))]),U(`h2`,Vy,O(N(X)(`Recently shared`)),1),t.shares.length?(B(),V(`ul`,Uy,[(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`,Wy,[U(`p`,Gy,O(e.post_title),1),U(`p`,Ky,[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`,qy,O(e.dry_run?N(X)(`Dry run`):e.status===`shared`?N(X)(`Shared`):N(X)(`Failed`)),1)]))),128))])):(B(),V(`p`,Hy,O(N(X)(`Nothing has been shared yet.`)),1))],64))}}),Yy={class:`font-display mb-2 text-2xl font-bold`},Xy={class:`mb-6 text-sm text-muted`},Zy={class:`grid gap-3 sm:grid-cols-3`},Qy={class:`m-card p-4`},$y={class:`text-muted`},e2={class:`text-2xl font-bold`},t2={class:`text-sm text-muted`},n2={class:`m-card p-4`},r2={class:`text-muted`},i2={class:`text-2xl font-bold`},a2={class:`text-sm text-muted`},o2={class:`m-card p-4`},s2={class:`text-muted`},c2={class:`text-2xl font-bold`},l2={key:0,class:`text-sm text-muted`},u2={class:`m-card mt-3 p-4`},d2={class:`flex justify-between`},f2={key:0,class:`flex justify-between text-muted`},p2={class:`mt-1 flex justify-between text-lg`},m2={key:0,class:`mt-2 text-sm text-muted`},h2={key:1,class:`mt-1 text-sm text-muted`},g2={key:2,class:`m-card mt-6 p-5 text-sm text-muted`},_2={class:`font-display text-lg font-bold`},v2={key:0,class:`ml-2 text-sm font-normal text-muted`},y2={class:`float-right text-base`},b2={class:`mt-3 divide-y divide-line text-sm`},x2={class:`min-w-0`},S2={class:`text-muted`},C2={class:`shrink-0 text-muted`},w2={class:`mt-6 text-xs text-muted`},T2=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`,Yy,O(N(X)(`What it cost`)),1),U(`p`,Xy,O(N(X)(`What was built, and what it cost`)),1),U(`div`,Zy,[U(`div`,Qy,[U(`p`,$y,O(N(X)(`The work`)),1),U(`p`,e2,O(t(e.costs.work_eur)),1),U(`p`,t2,O(N(X)(`:hours hours at :rate an hour`,{hours:e.costs.hours,rate:t(e.costs.hourly_rate)})),1)]),U(`div`,n2,[U(`p`,r2,O(N(X)(`The AI model`)),1),U(`p`,i2,O(t(e.costs.ai_eur)),1),U(`p`,a2,O(N(X)(`:count tokens`,{count:n(e.totals.tokens)})),1)]),U(`div`,o2,[U(`p`,s2,O(N(X)(`Hosting`)),1),U(`p`,c2,O(t(e.costs.hosting.eur)),1),e.costs.hosting.from?(B(),V(`p`,l2,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`,u2,[U(`p`,d2,[U(`span`,null,O(N(X)(`Total`)),1),U(`b`,null,O(t(e.costs.total_eur)),1)]),e.costs.discount?(B(),V(`p`,f2,[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`,p2,[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`,m2,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`,h2,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`,g2,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`,_2,[G(O(e.version??N(X)(`Not released yet`))+` `,1),e.date?(B(),V(`span`,v2,O(e.date),1)):K(``,!0),U(`span`,y2,O(t(e.eur+e.work_eur)),1)]),U(`ul`,b2,[(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`,x2,[U(`span`,S2,O(e.date),1),G(` `+O(e.name),1)]),U(`span`,C2,O(t((e.eur??0)+(e.work_eur??0))),1)]))),128))])]))),128)),U(`p`,w2,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))}}),E2={class:`font-display mb-4 text-2xl font-bold`},D2=[`aria-label`],O2={class:`mb-3 text-lg font-bold`},k2={key:0,class:`m-card mb-5 p-4 text-muted`},A2={class:`grid grid-cols-2 gap-3`},j2={class:`m-card col-span-2 p-4`},M2={class:`text-muted`},N2={class:`text-4xl font-bold`},P2={key:0,class:`text-muted`},F2={class:`text-muted`},I2={key:0,class:`m-card col-span-2 p-4`},L2={class:`text-muted`},R2={class:`text-4xl font-bold`},z2={key:0,class:`text-muted`},B2={class:`m-card p-4`},V2={class:`text-muted`},H2={class:`text-3xl font-bold`},U2={class:`m-card p-4`},W2={class:`text-muted`},G2={class:`text-3xl font-bold`},K2={key:1,class:`mt-8`},q2={class:`mb-1 text-lg font-bold`},J2={key:0,class:`mb-3 text-muted`},Y2={class:`m-card p-4`},X2=[`aria-label`],Z2=[`title`],Q2={class:`mt-2 flex justify-between text-sm text-muted`},$2={key:2,class:`mt-8`},e4={class:`mb-3 text-lg font-bold`},t4={class:`m-card divide-y divide-line`},n4={class:`flex items-baseline justify-between gap-3`},r4={class:`min-w-0 break-words font-semibold`},i4={class:`shrink-0 text-muted`},a4={key:3,class:`mt-8`},o4={class:`mb-3 text-lg font-bold`},s4={class:`m-card divide-y divide-line`},c4={class:`flex items-baseline justify-between gap-3`},l4={class:`min-w-0 font-semibold`},u4={class:`shrink-0 text-muted`},d4={key:4,class:`mt-8`},f4={class:`mb-3 text-lg font-bold`},p4={class:`m-card divide-y divide-line`},m4={class:`min-w-0 font-semibold`},h4={class:`shrink-0 text-muted`},g4={key:5,class:`mt-8`},_4={class:`mb-3 text-lg font-bold`},v4={class:`m-card divide-y divide-line`},y4={class:`min-w-0 font-semibold`},b4={class:`shrink-0 text-muted`},x4={class:`mt-8 text-sm text-muted`},S4=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`,E2,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,D2),U(`h2`,O2,O(e.period.label),1),o.value?(B(),V(`p`,k2,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`,A2,[U(`div`,j2,[U(`p`,M2,O(N(X)(`Visitors`)),1),U(`p`,N2,O(e.visitors),1),n.value?(B(),V(`p`,P2,O(n.value),1)):K(``,!0),U(`p`,F2,O(N(X)(`Together they looked at :count pages.`,{count:e.page_views})),1)]),e.requests?(B(),V(`div`,I2,[U(`p`,L2,O(N(X)(`Requests through the site`)),1),U(`p`,R2,O(e.requests.count),1),e.requests.count?(B(),V(`p`,z2,[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`,B2,[U(`p`,V2,O(N(X)(`Taps on Call`)),1),U(`p`,H2,O(e.contact.calls),1)]),U(`div`,U2,[U(`p`,W2,O(N(X)(`Taps on WhatsApp`)),1),U(`p`,G2,O(e.contact.whatsapp),1)])],64)):K(``,!0)]),e.visitors>0?(B(),V(`section`,K2,[U(`h2`,q2,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`,J2,O(N(X)(`Busiest: :when, with :count visitors.`,{when:i.value.label,count:i.value.visitors})),1)):K(``,!0),U(`div`,Y2,[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,Z2))),128))],8,X2),U(`div`,Q2,[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`,$2,[U(`h2`,e4,O(N(X)(`Most viewed pages`)),1),U(`ul`,t4,[(B(!0),V(R,null,L(e.pages,t=>(B(),V(`li`,{key:t.path,class:`p-4`},[U(`div`,n4,[U(`span`,r4,O(t.name),1),U(`span`,i4,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`,a4,[U(`h2`,o4,O(N(X)(`How people find you`)),1),U(`ul`,s4,[(B(!0),V(R,null,L(e.found,t=>(B(),V(`li`,{key:t.name,class:`p-4`},[U(`div`,c4,[U(`span`,l4,O(t.name),1),U(`span`,u4,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`,d4,[U(`h2`,f4,O(N(X)(`What the requests were about`)),1),U(`ul`,p4,[(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`,m4,O(e.name),1),U(`span`,h4,O(e.count),1)]))),128))])])):K(``,!0),e.articles.length?(B(),V(`section`,g4,[U(`h2`,_4,O(N(X)(`Most read articles`)),1),U(`ul`,v4,[(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`,y4,O(e.title),1),U(`span`,b4,O(N(X)(`:count times`,{count:e.views})),1)]))),128))])])):K(``,!0),U(`p`,x4,[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))}}),C4={class:`mb-6 flex items-center justify-between gap-3`},w4={class:`font-display text-2xl font-bold`},T4={class:`flex gap-2`},E4={key:0,class:`m-card p-5 text-sm text-muted`},D4={key:1,class:`m-card overflow-x-auto`},O4={class:`w-full text-left text-sm`},k4={class:`border-b border-line text-xs uppercase tracking-wide text-muted`},A4={key:0,class:`px-4 py-3`},j4={class:`divide-y divide-line`},M4={key:0,class:`flex justify-end gap-2 px-4 py-2`},N4=[`onClick`],P4={key:2,class:`mt-4 flex gap-2`},F4=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?Bd(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 O3())}return(t,o)=>(B(),V(R,null,[U(`div`,C4,[U(`h1`,w4,O(N(X)(N(Bd)(e.resource.label,e.resource.simple_label))),1),U(`div`,T4,[e.resource.can_manage&&e.resource.has_template?(B(),H(Z,{key:0,href:n+`/template`,class:`m-btn m-btn-secondary`},{default:P(()=>[G(O(N(X)(`Page layout`)),1)]),_:1},8,[`href`])):K(``,!0),e.resource.can_manage?(B(),H(Z,{key:1,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`,D4,[U(`table`,O4,[U(`thead`,k4,[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`,A4)):K(``,!0)])]),U(`tbody`,j4,[(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`,M4,[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,N4)])):K(``,!0)]))),128))])])])):(B(),V(`p`,E4,O(N(X)(`Nothing here yet.`)),1)),e.last_page>1?(B(),V(`nav`,P4,[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<e.last_page?(B(),H(Z,{key:1,href:`${n}?page=${e.current_page+1}`,class:`m-btn m-btn-secondary`},{default:P(()=>[G(O(N(X)(`Next`)),1)]),_:1},8,[`href`])):K(``,!0)])):K(``,!0)],64))}}),I4=[`aria-label`],L4={class:`flex flex-wrap items-center justify-between gap-2`},R4={class:`font-display text-lg font-bold`},z4={class:`flex flex-wrap items-center gap-2`},B4=[`aria-label`],V4=[`aria-pressed`,`onClick`],H4=[`href`],U4={key:0,class:`m-error`,role:`alert`},W4={class:`overflow-auto rounded border border-line bg-white`,style:{height:`70vh`}},G4=[`src`,`title`],K4={key:1,class:`p-4 text-sm text-muted`},q4=I({__name:`PagePreview`,props:{slug:{},blocks:{}},setup(e){let t=e,n=[{key:`phone`,label:`Phone`,width:`390px`},{key:`tablet`,label:`Tablet`,width:`768px`},{key:`desktop`,label:`Desktop`,width:`100%`}],r=M(`desktop`),i=M(``),a=M(!1),o,s=0,c=()=>n.find(e=>e.key===r.value).width;async function l(){let e=++s;try{let n=t.blocks.map(({_key:e,...t})=>t),r=await Y.post(`${J.base}/pages/${t.slug}/preview`,{blocks:n});e===s&&(i.value=r.url,a.value=!1)}catch{a.value=!0}}return Pr(()=>t.blocks,()=>{clearTimeout(o),o=setTimeout(()=>void l(),700)},{deep:!0}),aa(()=>void l()),ca(()=>clearTimeout(o)),(e,t)=>(B(),V(`aside`,{class:`m-card space-y-3 p-3`,"aria-label":N(X)(`Preview of the page`)},[U(`div`,L4,[U(`h2`,R4,O(N(X)(`Preview`)),1),U(`div`,z4,[U(`div`,{class:`flex gap-1`,role:`group`,"aria-label":N(X)(`Width of the preview`)},[(B(),V(R,null,L(n,e=>U(`button`,{key:e.key,type:`button`,class:`m-btn m-btn-secondary`,"aria-pressed":r.value===e.key,onClick:t=>r.value=e.key},O(N(X)(e.label)),9,V4)),64))],8,B4),i.value?(B(),V(`a`,{key:0,href:i.value,target:`_blank`,rel:`noopener`,class:`m-btn m-btn-secondary`},O(N(X)(`Open the preview in a new tab`)),9,H4)):K(``,!0)])]),a.value?(B(),V(`p`,U4,O(N(X)(`The preview could not be made.`)),1)):K(``,!0),U(`div`,W4,[i.value?(B(),V(`iframe`,{key:0,src:i.value,title:N(X)(`Preview of the page`),class:`mx-auto block h-full border-0`,style:ve({width:c(),maxWidth:`100%`})},null,12,G4)):(B(),V(`p`,K4,O(N(X)(`Making the preview…`)),1))])],8,I4))}}),J4={class:`mb-6 flex items-center justify-between gap-3`},Y4={class:`font-display text-2xl font-bold`},X4={class:`flex gap-2`},Z4=[`href`],Q4={for:`title`,class:`m-label`},$4={key:0,class:`m-error`},e3={for:`meta`,class:`m-label`},t3={key:0,class:`m-error`},n3={for:`body`,class:`m-label`},r3={key:0,class:`m-error`},i3={class:`flex items-center gap-2 text-sm`},a3={class:`flex gap-3`},o3=[`disabled`],s3={key:0,class:`xl:sticky xl:top-4`},c3=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},...t.blocks&&t.block_types?{blocks:t.blocks.map($0)}:{}});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}`),D3(`${J.base}/pages`))}return(e,a)=>(B(),V(R,null,[U(`div`,J4,[U(`h1`,Y4,O(N(Bd)(N(t).title,N(t).simple_title)),1),U(`div`,X4,[N(t).view_url?(B(),V(`a`,{key:0,href:N(t).view_url,target:`_blank`,rel:`noopener`,class:`m-btn m-btn-secondary`},O(N(X)(`View the page`)),9,Z4)):K(``,!0),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(`div`,{class:D(N(t).preview&&N(n).values.blocks?`grid items-start gap-6 xl:grid-cols-2`:``)},[U(`form`,{class:D([`m-card space-y-5 p-5`,N(t).preview&&N(n).values.blocks?``:`max-w-3xl`]),onSubmit:Du(r,[`prevent`])},[U(`div`,null,[U(`label`,Q4,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`,$4,O(N(n).errors.title),1)):K(``,!0)]),U(`div`,null,[U(`label`,e3,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`,t3,O(N(n).errors.meta_description),1)):K(``,!0)]),N(t).defined?(B(),H(h0,{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`,n3,O(N(X)(`Text (Markdown)`)),1),W(yf,{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`,r3,O(N(n).errors.body),1)):K(``,!0)]),U(`label`,i3,[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)),N(t).blocks&&N(t).block_types?(B(),H(ev,{key:2,modelValue:N(n).values.blocks,"onUpdate:modelValue":a[4]||=e=>N(n).values.blocks=e,types:N(t).block_types,errors:N(n).errors,layout:N(t).can_layout!==!1},null,8,[`modelValue`,`types`,`errors`,`layout`])):K(``,!0),U(`div`,a3,[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,o3),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))])],34),N(t).preview&&N(n).values.blocks?(B(),V(`div`,s3,[W(q4,{slug:N(t).slug,blocks:N(n).values.blocks},null,8,[`slug`,`blocks`])])):K(``,!0)],2),N(t).id&&N(J).permissions.includes(`revisions.view`)?(B(),H(Ff,{key:0,type:`pages`,id:N(t).id},null,8,[`id`])):K(``,!0)],64))}}),l3={class:`font-display mb-6 text-2xl font-bold`},u3={class:`m-card divide-y divide-line`},d3={class:`min-w-0`},f3={class:`truncate font-semibold`},p3={class:`truncate text-xs text-muted`},m3={class:`flex items-center gap-2`},h3={key:0,class:`m-badge`},g3={key:0,class:`p-4 text-sm text-muted`},_3={for:`new-title`,class:`m-label`},v3={key:0,class:`m-error`},y3={for:`new-slug`,class:`m-label`},b3={key:0,class:`m-error`},x3=[`disabled`],S3=[{pattern:/^\/?$/,component:_d,data:!0},{pattern:/^\/login$/,component:zd,guest:!0},{pattern:/^\/profile$/,component:fm,data:!0},{pattern:/^\/posts$/,component:jp,data:!0},{pattern:/^\/posts\/create$/,component:vp,data:!0},{pattern:/^\/posts\/\d+\/edit$/,component:vp,data:!0},{pattern:/^\/media$/,component:lg,data:!0,source:`/media/items`},{pattern:/^\/audit$/,component:u_,data:!0},{pattern:/^\/settings$/,component:P_,data:!0},{pattern:/^\/leads$/,component:Sy,data:!0},{pattern:/^\/updates$/,component:jy,data:!0},{pattern:/^\/sharing$/,component:Jy,data:!0},{pattern:/^\/costs$/,component:T2,data:!0},{pattern:/^\/numbers$/,component:S4,data:!0},{pattern:/^\/statistics$/,component:E1,data:!0},{pattern:/^\/accounts$/,component:Ym,data:!0},{pattern:/^\/groups$/,component:vh,data:!0},{pattern:/^\/labels$/,component:Mh,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`)&&D3(`${J.base}/pages/${t.values.slug}`)}return(r,i)=>(B(),V(R,null,[U(`h1`,l3,O(N(X)(`Pages`)),1),U(`ul`,u3,[(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`,d3,[U(`p`,f3,O(N(Bd)(e.title,e.simple_title)),1),U(`p`,p3,`/`+O(e.slug),1)]),U(`div`,m3,[e.defined?K(``,!0):(B(),V(`span`,h3,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`,g3,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`,_3,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`,v3,O(N(t).errors.title),1)):K(``,!0)]),U(`div`,null,[U(`label`,y3,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`,b3,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,x3)],32)],64))}}),data:!0},{pattern:/^\/pages\/[a-z0-9]+(?:-[a-z0-9]+)*$/,component:c3,data:!0},{pattern:/^\/records\/[a-z][a-z0-9_]*$/,component:F4,data:!0},{pattern:/^\/records\/[a-z][a-z0-9_]*\/template$/,component:ov,data:!0},{pattern:/^\/records\/[a-z][a-z0-9_]*\/(create|\d+\/edit)$/,component:uv,data:!0},{pattern:/^\/reviews$/,component:F1,data:!0}];function C3(e,t,n={}){S3.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}),w3;function $(e,t=!1){Q.toast={text:e,error:t},window.clearTimeout(w3),w3=window.setTimeout(()=>Q.toast=null,4e3)}function T3(e){return e.split(`?`)[0].slice(J.base.length)||`/`}async function E3(e){let t=S3.find(t=>t.pattern.test(T3(e)));if(!J.user&&!t?.guest)window.location.assign(J.base+`/login`);else{if(J.user&&t?.guest)return D3(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 D3(e,t=!1){return window.history[t?`replaceState`:`pushState`]({},``,e),window.scrollTo(0,0),E3(e)}function O3(){return E3(Q.path)}function k3(){window.addEventListener(`popstate`,()=>E3(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`),D3(J.start,!0)):E3(window.location.pathname+window.location.search)}var A3=[`aria-label`],j3={key:0,class:`absolute inset-0 bg-black/60`},M3=[`aria-label`],N3={class:`flex items-start gap-3`},P3={class:`m-bob m-glow -ml-1 shrink-0 rounded-full`},F3={class:`min-w-0 pr-6`,"aria-live":`polite`},I3={class:`font-display text-lg font-bold leading-snug`},L3={class:`mt-1.5 text-sm leading-relaxed text-muted`},R3={class:`mt-4 flex items-center justify-between gap-2`},z3={class:`flex gap-1`,"aria-hidden":`true`},B3={class:`text-xs text-muted`},V3={class:`mt-4 flex flex-wrap items-center gap-2`},H3=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+i<window.innerWidth?a:Math.max(16,t.left-i-28),top:Math.min(Math.max(16,t.top+t.height/2-n/2),window.innerHeight-n-16)},h.value=m.value.left<t.left,f.value?.focus()}function _(e){Q.tour=!1,J.tutorial=!1,Y.put(J.base+`/profile/tutorial`,{state:e?`done`:`skipped`}).catch(()=>void 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`,j3)),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,M3),U(`div`,N3,[U(`div`,P3,[(B(),H(Np,{key:l.value.image,name:l.value.image,flip:h.value,size:128},null,8,[`name`,`flip`]))]),U(`div`,F3,[U(`h2`,I3,O(l.value.title),1),U(`p`,L3,O(l.value.text),1)])]),U(`div`,R3,[U(`span`,z3,[(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`,B3,O(c.value+1)+` / `+O(N(s).length),1)]),U(`div`,V3,[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,A3))}}),U3={class:`min-h-screen`},W3={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`},G3={class:`font-display font-bold`},K3=[`aria-expanded`],q3={class:`hidden h-16 items-center gap-2 px-5 md:flex`},J3=[`src`],Y3={class:`font-display text-lg font-bold`},X3={class:`flex-1 space-y-0.5 overflow-y-auto px-3 py-3`,"aria-label":`Manager`},Z3={key:0,class:`my-3 border-line`},Q3={key:1,class:`px-3 pb-1 pt-4 text-xs font-semibold uppercase tracking-wide text-muted`},$3=[`href`],e6={class:`border-t border-line p-4`},t6={class:`truncate text-sm font-semibold group-hover:text-brand`},n6={class:`truncate text-xs text-muted`},r6={key:0,class:`truncate text-xs text-muted`},i6={class:`px-4 pb-16 pt-20 md:ml-60 md:px-8 md:pt-8`},a6={class:`mx-auto max-w-5xl`},o6=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`,U3,[U(`header`,W3,[U(`span`,G3,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,K3)]),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`,q3,[N(J).logo?(B(),V(`img`,{key:0,src:N(J).logo,alt:``,class:`h-7 w-auto`},null,8,J3)):K(``,!0),U(`span`,Y3,O(N(J).name),1)]),U(`nav`,X3,[(B(!0),V(R,null,L(n.value,(e,t)=>(B(),V(R,{key:e.title+t},[!e.title&&t>0?(B(),V(`hr`,Z3)):K(``,!0),e.title?(B(),V(`p`,Q3,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,$3)):(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`,e6,[W(Z,{href:N(J).base+`/profile`,class:`group block`},{default:P(()=>[U(`p`,t6,O(N(J).user?.name),1),U(`p`,n6,O(N(J).user?.email),1),N(J).user?.group?(B(),V(`p`,r6,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(H3,{key:1})):K(``,!0),U(`main`,i6,[U(`div`,a6,[Ca(e.$slots,`default`)])])]))}}),s6={key:0,class:`m-card p-5 text-sm`},c6={key:1,class:`text-sm text-muted`},l6=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(o6,{key:1},{default:P(()=>[N(Q).forbidden?(B(),V(`p`,s6,O(N(X)(`You may not open this page.`)),1)):N(Q).loading?(B(),V(`p`,c6,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:D3,register:C3,components:{Link:Z,FormFields:h0,Icon:ed,MediaPicker:af}};async function u6(){for(let e of J.extensions??[])try{await import(e)}catch(t){console.error(`Manager extension ${e} did not load`,t)}Lu(l6).mount(`#manager`),k3()}u6();