@skylivellc/lienzo-editor 0.13.2 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  // @__NO_SIDE_EFFECTS__
2
- function e(e){let t=/* @__PURE__ */ Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var t={},n=[],r=()=>{},i=()=>!1,a=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),o=e=>e.startsWith(`onUpdate:`),s=Object.assign,c=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},l=Object.prototype.hasOwnProperty,u=(e,t)=>l.call(e,t),d=Array.isArray,f=e=>te(e)===`[object Map]`,p=e=>te(e)===`[object Set]`,m=e=>te(e)===`[object Date]`,h=e=>typeof e==`function`,g=e=>typeof e==`string`,_=e=>typeof e==`symbol`,v=e=>typeof e==`object`&&!!e,ee=e=>(v(e)||h(e))&&h(e.then)&&h(e.catch),y=Object.prototype.toString,te=e=>y.call(e),ne=e=>te(e).slice(8,-1),re=e=>te(e)===`[object Object]`,ie=e=>g(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,ae=/* @__PURE__ */ e(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),oe=e=>{let t=/* @__PURE__ */ Object.create(null);return(n=>t[n]||(t[n]=e(n)))},se=/-\w/g,b=oe(e=>e.replace(se,e=>e.slice(1).toUpperCase())),ce=/\B([A-Z])/g,le=oe(e=>e.replace(ce,`-$1`).toLowerCase()),ue=oe(e=>e.charAt(0).toUpperCase()+e.slice(1)),de=oe(e=>e?`on${ue(e)}`:``),fe=(e,t)=>!Object.is(e,t),pe=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},me=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},he=e=>{let t=parseFloat(e);return isNaN(t)?e:t},ge=e=>{let t=g(e)?Number(e):NaN;return isNaN(t)?e:t},_e,ve=()=>_e||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function x(e){if(d(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=g(r)?Se(r):x(r);if(i)for(let e in i)t[e]=i[e]}return t}if(g(e)||v(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 Ce(e){let t=``;if(g(e))t=e;else if(d(e))for(let n=0;n<e.length;n++){let r=Ce(e[n]);r&&(t+=r+` `)}else if(v(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}var we=`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`,Te=/* @__PURE__ */ e(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=f(e),i=f(t);if(r||i||(r=p(e),i=p(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=e.hasOwnProperty(r),a=t.hasOwnProperty(r);if(i&&!a||!i&&a||!je(e[r],t[r],n))return!1}return String(e)===String(t)}function Ae(e,t,n,r){n||=[/* @__PURE__ */ new Map,/* @__PURE__ */ 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=m(e),i=m(t);return r||i?r&&i?e.getTime()===t.getTime():!1:(r=_(e),i=_(t),r||i?e===t:(r=d(e),i=d(t),r||i?r&&i?Ae(e,t,n,De):!1:(r=v(e),i=v(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))}var Ne=e=>!!(e&&e.__v_isRef===!0),S=e=>g(e)?e:e==null?``:d(e)||v(e)&&(e.toString===y||!h(e.toString))?Ne(e)?S(e.value):JSON.stringify(e,Pe,2):String(e),Pe=(e,t)=>Ne(t)?Pe(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Fe(t,r)+` =>`]=n,e),{})}:p(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Fe(e))}:_(t)?Fe(t):v(t)&&!d(t)&&!re(t)?String(t):t,Fe=(e,t=``)=>_(e)?`Symbol(${e.description??t})`:e,Ie,Le=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&&Ie&&(Ie.active?(this.parent=Ie,this.index=(Ie.scopes||(Ie.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=Ie;try{return Ie=this,e()}finally{Ie=t}}}on(){++this._on===1&&(this.prevScope=Ie,Ie=this)}off(){if(this._on>0&&--this._on===0){if(Ie===this)Ie=this.prevScope;else{let e=Ie;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 Re(){return Ie}var ze,Be=/* @__PURE__ */ new WeakSet,Ve=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,Ie&&(Ie.active?Ie.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Be.has(this)&&(Be.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Ge(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,it(this),Je(this);let e=ze,t=et;ze=this,et=!0;try{return this.fn()}finally{Ye(this),ze=e,et=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Qe(e);this.deps=this.depsTail=void 0,it(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Be.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Xe(this)&&this.run()}get dirty(){return Xe(this)}},He=0,Ue,We;function Ge(e,t=!1){if(e.flags|=8,t){e.next=We,We=e;return}e.next=Ue,Ue=e}function Ke(){He++}function qe(){if(--He>0)return;if(We){let e=We;for(We=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Ue;){let t=Ue;for(Ue=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 Je(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ye(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),Qe(r),$e(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Xe(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ze(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ze(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===at)||(e.globalVersion=at,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Xe(e))))return;e.flags|=2;let t=e.dep,n=ze,r=et;ze=e,et=!0;try{Je(e);let n=e.fn(e._value);(t.version===0||fe(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{ze=n,et=r,Ye(e),e.flags&=-3}}function Qe(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)Qe(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function $e(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var et=!0,tt=[];function nt(){tt.push(et),et=!1}function rt(){let e=tt.pop();et=e===void 0||e}function it(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=ze;ze=void 0;try{t()}finally{ze=e}}}var at=0,ot=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}},st=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(!ze||!et||ze===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==ze)t=this.activeLink=new ot(ze,this),ze.deps?(t.prevDep=ze.depsTail,ze.depsTail.nextDep=t,ze.depsTail=t):ze.deps=ze.depsTail=t,ct(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=ze.depsTail,t.nextDep=void 0,ze.depsTail.nextDep=t,ze.depsTail=t,ze.deps===t&&(ze.deps=e)}return t}trigger(e){this.version++,at++,this.notify(e)}notify(e){Ke();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{qe()}}};function ct(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)ct(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var lt=/* @__PURE__ */ new WeakMap,ut=/* @__PURE__ */ Symbol(``),dt=/* @__PURE__ */ Symbol(``),ft=/* @__PURE__ */ Symbol(``);function pt(e,t,n){if(et&&ze){let t=lt.get(e);t||lt.set(e,t=/* @__PURE__ */ new Map);let r=t.get(n);r||(t.set(n,r=new st),r.map=t,r.key=n),r.track()}}function mt(e,t,n,r,i,a){let o=lt.get(e);if(!o){at++;return}let s=e=>{e&&e.trigger()};if(Ke(),t===`clear`)o.forEach(s);else{let i=d(e),a=i&&ie(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===ft||!_(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(ft)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(ut)),f(e)&&s(o.get(dt)));break;case`delete`:i||(s(o.get(ut)),f(e)&&s(o.get(dt)));break;case`set`:f(e)&&s(o.get(ut))}}qe()}function ht(e){let t=/* @__PURE__ */ C(e);return t===e||(pt(t,`iterate`,ft),/* @__PURE__ */ en(e))?t:/* @__PURE__ */ $t(e)?/* @__PURE__ */ Qt(e)?t.map(e=>an(rn(e))):t.map(an):t.map(rn)}function gt(e){return pt(e=/* @__PURE__ */ C(e),`iterate`,ft),e}function _t(e,t){return/* @__PURE__ */ $t(e)?an(/* @__PURE__ */ Qt(e)?rn(t):t):rn(t)}var vt={__proto__:null,[Symbol.iterator](){return yt(this,Symbol.iterator,e=>_t(this,e))},concat(...e){return ht(this).concat(...e.map(e=>d(e)?ht(e):e))},entries(){return yt(this,`entries`,e=>(e[1]=_t(this,e[1]),e))},every(e,t){return xt(this,`every`,e,t,void 0,arguments)},filter(e,t){return xt(this,`filter`,e,t,e=>e.map(e=>_t(this,e)),arguments)},find(e,t){return xt(this,`find`,e,t,e=>_t(this,e),arguments)},findIndex(e,t){return xt(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return xt(this,`findLast`,e,t,e=>_t(this,e),arguments)},findLastIndex(e,t){return xt(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return xt(this,`forEach`,e,t,void 0,arguments)},includes(...e){return Ct(this,`includes`,e)},indexOf(...e){return Ct(this,`indexOf`,e)},join(e){return ht(this).join(e)},lastIndexOf(...e){return Ct(this,`lastIndexOf`,e)},map(e,t){return xt(this,`map`,e,t,void 0,arguments)},pop(){return wt(this,`pop`)},push(...e){return wt(this,`push`,e)},reduce(e,...t){return St(this,`reduce`,e,t)},reduceRight(e,...t){return St(this,`reduceRight`,e,t)},shift(){return wt(this,`shift`)},some(e,t){return xt(this,`some`,e,t,void 0,arguments)},splice(...e){return wt(this,`splice`,e)},toReversed(){return ht(this).toReversed()},toSorted(e){return ht(this).toSorted(e)},toSpliced(...e){return ht(this).toSpliced(...e)},unshift(...e){return wt(this,`unshift`,e)},values(){return yt(this,`values`,e=>_t(this,e))}};function yt(e,t,n){let r=gt(e),i=r[t]();return r!==e&&!/* @__PURE__ */ en(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var bt=Array.prototype;function xt(e,t,n,r,i,a){let o=gt(e),s=o!==e&&!/* @__PURE__ */ en(e),c=o[t];if(c!==bt[t]){let t=c.apply(e,a);return s?rn(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,_t(e,t),r,e)}: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 St(e,t,n,r){let i=gt(e),a=i!==e&&!/* @__PURE__ */ en(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=_t(e,t)),n.call(this,t,_t(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?_t(e,c):c}function Ct(e,t,n){let r=/* @__PURE__ */ C(e);pt(r,`iterate`,ft);let i=r[t](...n);return(i===-1||i===!1)&&/* @__PURE__ */ tn(n[0])?(n[0]=/* @__PURE__ */ C(n[0]),r[t](...n)):i}function wt(e,t,n=[]){nt(),Ke();let r=(/* @__PURE__ */ C(e))[t].apply(e,n);return qe(),rt(),r}var Tt=/* @__PURE__ */ e(`__proto__,__v_isRef,__isVue`),Et=new Set(/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(_));function Dt(e){_(e)||(e=String(e));let t=/* @__PURE__ */ C(this);return pt(t,`has`,e),t.hasOwnProperty(e)}var Ot=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?Kt:Gt:i?Wt:Ut).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=d(e);if(!r){let e;if(a&&(e=vt[t]))return e;if(t===`hasOwnProperty`)return Dt}let o=Reflect.get(e,t,/* @__PURE__ */ on(e)?e:n);if((_(t)?Et.has(t):Tt(t))||(r||pt(e,`get`,t),i))return o;if(/* @__PURE__ */ on(o)){let e=a&&ie(t)?o:o.value;return r&&v(e)?/* @__PURE__ */ Xt(e):e}return v(o)?r?/* @__PURE__ */ Xt(o):/* @__PURE__ */ Jt(o):o}},kt=class extends Ot{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=d(e)&&ie(t);if(!this._isShallow){let e=/* @__PURE__ */ $t(i);if(!/* @__PURE__ */ en(n)&&!/* @__PURE__ */ $t(n)&&(i=/* @__PURE__ */ C(i),n=/* @__PURE__ */ C(n)),!a&&/* @__PURE__ */ on(i)&&!/* @__PURE__ */ on(n))return e||(i.value=n),!0}let o=a?Number(t)<e.length:u(e,t),s=Reflect.set(e,t,n,/* @__PURE__ */ on(e)?e:r);return e===/* @__PURE__ */ C(r)&&s&&(o?fe(n,i)&&mt(e,`set`,t,n,i):mt(e,`add`,t,n)),s}deleteProperty(e,t){let n=u(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&mt(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!_(t)||!Et.has(t))&&pt(e,`has`,t),n}ownKeys(e){return pt(e,`iterate`,d(e)?`length`:ut),Reflect.ownKeys(e)}},At=class extends Ot{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},jt=/* @__PURE__ */ new kt,Mt=/* @__PURE__ */ new At,Nt=/* @__PURE__ */ new kt(!0),Pt=e=>e,Ft=e=>Reflect.getPrototypeOf(e);function It(e,t,n){return function(...r){let i=this.__v_raw,a=/* @__PURE__ */ C(i),o=f(a),c=e===`entries`||e===Symbol.iterator&&o,l=e===`keys`&&o,u=i[e](...r),d=n?Pt:t?an:rn;return!t&&pt(a,`iterate`,l?dt:ut),s(Object.create(u),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:c?[d(e[0]),d(e[1])]:d(e),done:t}}})}}function Lt(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function Rt(e,t){let n={get(n){let r=this.__v_raw,i=/* @__PURE__ */ C(r),a=/* @__PURE__ */ C(n);e||(fe(n,a)&&pt(i,`get`,n),pt(i,`get`,a));let{has:o}=Ft(i),s=t?Pt:e?an:rn;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&&pt(/* @__PURE__ */ C(t),`iterate`,ut),t.size},has(t){let n=this.__v_raw,r=/* @__PURE__ */ C(n),i=/* @__PURE__ */ C(t);return e||(fe(t,i)&&pt(r,`has`,t),pt(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=/* @__PURE__ */ C(a),s=t?Pt:e?an:rn;return!e&&pt(o,`iterate`,ut),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return s(n,e?{add:Lt(`add`),set:Lt(`set`),delete:Lt(`delete`),clear:Lt(`clear`)}:{add(e){let n=/* @__PURE__ */ C(this),r=Ft(n),i=/* @__PURE__ */ C(e),a=!t&&!/* @__PURE__ */ en(e)&&!/* @__PURE__ */ $t(e)?i:e;return r.has.call(n,a)||fe(e,a)&&r.has.call(n,e)||fe(i,a)&&r.has.call(n,i)||(n.add(a),mt(n,`add`,a,a)),this},set(e,n){!t&&!/* @__PURE__ */ en(n)&&!/* @__PURE__ */ $t(n)&&(n=/* @__PURE__ */ C(n));let r=/* @__PURE__ */ C(this),{has:i,get:a}=Ft(r),o=i.call(r,e);o||=(e=/* @__PURE__ */ C(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?fe(n,s)&&mt(r,`set`,e,n,s):mt(r,`add`,e,n),this},delete(e){let t=/* @__PURE__ */ C(this),{has:n,get:r}=Ft(t),i=n.call(t,e);i||=(e=/* @__PURE__ */ C(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&mt(t,`delete`,e,void 0,a),o},clear(){let e=/* @__PURE__ */ C(this),t=e.size!==0,n=e.clear();return t&&mt(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=It(r,e,t)}),n}function zt(e,t){let n=Rt(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(u(n,r)&&r in t?n:t,r,i)}var Bt={get:/* @__PURE__ */ zt(!1,!1)},Vt={get:/* @__PURE__ */ zt(!1,!0)},Ht={get:/* @__PURE__ */ zt(!0,!1)},Ut=/* @__PURE__ */ new WeakMap,Wt=/* @__PURE__ */ new WeakMap,Gt=/* @__PURE__ */ new WeakMap,Kt=/* @__PURE__ */ new WeakMap;function qt(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}// @__NO_SIDE_EFFECTS__
2
+ function e(e){let t=/* @__PURE__ */ Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var t={},n=[],r=()=>{},i=()=>!1,a=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),o=e=>e.startsWith(`onUpdate:`),s=Object.assign,c=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},l=Object.prototype.hasOwnProperty,u=(e,t)=>l.call(e,t),d=Array.isArray,f=e=>te(e)===`[object Map]`,p=e=>te(e)===`[object Set]`,m=e=>te(e)===`[object Date]`,h=e=>typeof e==`function`,g=e=>typeof e==`string`,_=e=>typeof e==`symbol`,v=e=>typeof e==`object`&&!!e,ee=e=>(v(e)||h(e))&&h(e.then)&&h(e.catch),y=Object.prototype.toString,te=e=>y.call(e),ne=e=>te(e).slice(8,-1),re=e=>te(e)===`[object Object]`,ie=e=>g(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,ae=/* @__PURE__ */ e(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),oe=e=>{let t=/* @__PURE__ */ Object.create(null);return(n=>t[n]||(t[n]=e(n)))},se=/-\w/g,ce=oe(e=>e.replace(se,e=>e.slice(1).toUpperCase())),le=/\B([A-Z])/g,b=oe(e=>e.replace(le,`-$1`).toLowerCase()),ue=oe(e=>e.charAt(0).toUpperCase()+e.slice(1)),de=oe(e=>e?`on${ue(e)}`:``),fe=(e,t)=>!Object.is(e,t),pe=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},me=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},he=e=>{let t=parseFloat(e);return isNaN(t)?e:t},ge=e=>{let t=g(e)?Number(e):NaN;return isNaN(t)?e:t},_e,ve=()=>_e||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function x(e){if(d(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=g(r)?Se(r):x(r);if(i)for(let e in i)t[e]=i[e]}return t}if(g(e)||v(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 Ce(e){let t=``;if(g(e))t=e;else if(d(e))for(let n=0;n<e.length;n++){let r=Ce(e[n]);r&&(t+=r+` `)}else if(v(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}var we=`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`,Te=/* @__PURE__ */ e(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=f(e),i=f(t);if(r||i||(r=p(e),i=p(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=e.hasOwnProperty(r),a=t.hasOwnProperty(r);if(i&&!a||!i&&a||!je(e[r],t[r],n))return!1}return String(e)===String(t)}function Ae(e,t,n,r){n||=[/* @__PURE__ */ new Map,/* @__PURE__ */ 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=m(e),i=m(t);return r||i?r&&i?e.getTime()===t.getTime():!1:(r=_(e),i=_(t),r||i?e===t:(r=d(e),i=d(t),r||i?r&&i?Ae(e,t,n,De):!1:(r=v(e),i=v(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))}var Ne=e=>!!(e&&e.__v_isRef===!0),S=e=>g(e)?e:e==null?``:d(e)||v(e)&&(e.toString===y||!h(e.toString))?Ne(e)?S(e.value):JSON.stringify(e,Pe,2):String(e),Pe=(e,t)=>Ne(t)?Pe(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Fe(t,r)+` =>`]=n,e),{})}:p(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Fe(e))}:_(t)?Fe(t):v(t)&&!d(t)&&!re(t)?String(t):t,Fe=(e,t=``)=>_(e)?`Symbol(${e.description??t})`:e,Ie,Le=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&&Ie&&(Ie.active?(this.parent=Ie,this.index=(Ie.scopes||(Ie.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=Ie;try{return Ie=this,e()}finally{Ie=t}}}on(){++this._on===1&&(this.prevScope=Ie,Ie=this)}off(){if(this._on>0&&--this._on===0){if(Ie===this)Ie=this.prevScope;else{let e=Ie;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 Re(){return Ie}var ze,Be=/* @__PURE__ */ new WeakSet,Ve=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,Ie&&(Ie.active?Ie.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Be.has(this)&&(Be.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Ge(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,it(this),Je(this);let e=ze,t=et;ze=this,et=!0;try{return this.fn()}finally{Ye(this),ze=e,et=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Qe(e);this.deps=this.depsTail=void 0,it(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Be.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Xe(this)&&this.run()}get dirty(){return Xe(this)}},He=0,Ue,We;function Ge(e,t=!1){if(e.flags|=8,t){e.next=We,We=e;return}e.next=Ue,Ue=e}function Ke(){He++}function qe(){if(--He>0)return;if(We){let e=We;for(We=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Ue;){let t=Ue;for(Ue=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 Je(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ye(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),Qe(r),$e(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Xe(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ze(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ze(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===at)||(e.globalVersion=at,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Xe(e))))return;e.flags|=2;let t=e.dep,n=ze,r=et;ze=e,et=!0;try{Je(e);let n=e.fn(e._value);(t.version===0||fe(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{ze=n,et=r,Ye(e),e.flags&=-3}}function Qe(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)Qe(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function $e(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var et=!0,tt=[];function nt(){tt.push(et),et=!1}function rt(){let e=tt.pop();et=e===void 0||e}function it(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=ze;ze=void 0;try{t()}finally{ze=e}}}var at=0,ot=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}},st=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(!ze||!et||ze===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==ze)t=this.activeLink=new ot(ze,this),ze.deps?(t.prevDep=ze.depsTail,ze.depsTail.nextDep=t,ze.depsTail=t):ze.deps=ze.depsTail=t,ct(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=ze.depsTail,t.nextDep=void 0,ze.depsTail.nextDep=t,ze.depsTail=t,ze.deps===t&&(ze.deps=e)}return t}trigger(e){this.version++,at++,this.notify(e)}notify(e){Ke();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{qe()}}};function ct(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)ct(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var lt=/* @__PURE__ */ new WeakMap,ut=/* @__PURE__ */ Symbol(``),dt=/* @__PURE__ */ Symbol(``),ft=/* @__PURE__ */ Symbol(``);function pt(e,t,n){if(et&&ze){let t=lt.get(e);t||lt.set(e,t=/* @__PURE__ */ new Map);let r=t.get(n);r||(t.set(n,r=new st),r.map=t,r.key=n),r.track()}}function mt(e,t,n,r,i,a){let o=lt.get(e);if(!o){at++;return}let s=e=>{e&&e.trigger()};if(Ke(),t===`clear`)o.forEach(s);else{let i=d(e),a=i&&ie(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===ft||!_(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(ft)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(ut)),f(e)&&s(o.get(dt)));break;case`delete`:i||(s(o.get(ut)),f(e)&&s(o.get(dt)));break;case`set`:f(e)&&s(o.get(ut))}}qe()}function ht(e){let t=/* @__PURE__ */ C(e);return t===e||(pt(t,`iterate`,ft),/* @__PURE__ */ en(e))?t:/* @__PURE__ */ $t(e)?/* @__PURE__ */ Qt(e)?t.map(e=>an(rn(e))):t.map(an):t.map(rn)}function gt(e){return pt(e=/* @__PURE__ */ C(e),`iterate`,ft),e}function _t(e,t){return/* @__PURE__ */ $t(e)?an(/* @__PURE__ */ Qt(e)?rn(t):t):rn(t)}var vt={__proto__:null,[Symbol.iterator](){return yt(this,Symbol.iterator,e=>_t(this,e))},concat(...e){return ht(this).concat(...e.map(e=>d(e)?ht(e):e))},entries(){return yt(this,`entries`,e=>(e[1]=_t(this,e[1]),e))},every(e,t){return xt(this,`every`,e,t,void 0,arguments)},filter(e,t){return xt(this,`filter`,e,t,e=>e.map(e=>_t(this,e)),arguments)},find(e,t){return xt(this,`find`,e,t,e=>_t(this,e),arguments)},findIndex(e,t){return xt(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return xt(this,`findLast`,e,t,e=>_t(this,e),arguments)},findLastIndex(e,t){return xt(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return xt(this,`forEach`,e,t,void 0,arguments)},includes(...e){return Ct(this,`includes`,e)},indexOf(...e){return Ct(this,`indexOf`,e)},join(e){return ht(this).join(e)},lastIndexOf(...e){return Ct(this,`lastIndexOf`,e)},map(e,t){return xt(this,`map`,e,t,void 0,arguments)},pop(){return wt(this,`pop`)},push(...e){return wt(this,`push`,e)},reduce(e,...t){return St(this,`reduce`,e,t)},reduceRight(e,...t){return St(this,`reduceRight`,e,t)},shift(){return wt(this,`shift`)},some(e,t){return xt(this,`some`,e,t,void 0,arguments)},splice(...e){return wt(this,`splice`,e)},toReversed(){return ht(this).toReversed()},toSorted(e){return ht(this).toSorted(e)},toSpliced(...e){return ht(this).toSpliced(...e)},unshift(...e){return wt(this,`unshift`,e)},values(){return yt(this,`values`,e=>_t(this,e))}};function yt(e,t,n){let r=gt(e),i=r[t]();return r!==e&&!/* @__PURE__ */ en(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var bt=Array.prototype;function xt(e,t,n,r,i,a){let o=gt(e),s=o!==e&&!/* @__PURE__ */ en(e),c=o[t];if(c!==bt[t]){let t=c.apply(e,a);return s?rn(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,_t(e,t),r,e)}: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 St(e,t,n,r){let i=gt(e),a=i!==e&&!/* @__PURE__ */ en(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=_t(e,t)),n.call(this,t,_t(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?_t(e,c):c}function Ct(e,t,n){let r=/* @__PURE__ */ C(e);pt(r,`iterate`,ft);let i=r[t](...n);return(i===-1||i===!1)&&/* @__PURE__ */ tn(n[0])?(n[0]=/* @__PURE__ */ C(n[0]),r[t](...n)):i}function wt(e,t,n=[]){nt(),Ke();let r=(/* @__PURE__ */ C(e))[t].apply(e,n);return qe(),rt(),r}var Tt=/* @__PURE__ */ e(`__proto__,__v_isRef,__isVue`),Et=new Set(/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(_));function Dt(e){_(e)||(e=String(e));let t=/* @__PURE__ */ C(this);return pt(t,`has`,e),t.hasOwnProperty(e)}var Ot=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?Kt:Gt:i?Wt:Ut).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=d(e);if(!r){let e;if(a&&(e=vt[t]))return e;if(t===`hasOwnProperty`)return Dt}let o=Reflect.get(e,t,/* @__PURE__ */ on(e)?e:n);if((_(t)?Et.has(t):Tt(t))||(r||pt(e,`get`,t),i))return o;if(/* @__PURE__ */ on(o)){let e=a&&ie(t)?o:o.value;return r&&v(e)?/* @__PURE__ */ Xt(e):e}return v(o)?r?/* @__PURE__ */ Xt(o):/* @__PURE__ */ Jt(o):o}},kt=class extends Ot{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=d(e)&&ie(t);if(!this._isShallow){let e=/* @__PURE__ */ $t(i);if(!/* @__PURE__ */ en(n)&&!/* @__PURE__ */ $t(n)&&(i=/* @__PURE__ */ C(i),n=/* @__PURE__ */ C(n)),!a&&/* @__PURE__ */ on(i)&&!/* @__PURE__ */ on(n))return e||(i.value=n),!0}let o=a?Number(t)<e.length:u(e,t),s=Reflect.set(e,t,n,/* @__PURE__ */ on(e)?e:r);return e===/* @__PURE__ */ C(r)&&s&&(o?fe(n,i)&&mt(e,`set`,t,n,i):mt(e,`add`,t,n)),s}deleteProperty(e,t){let n=u(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&mt(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!_(t)||!Et.has(t))&&pt(e,`has`,t),n}ownKeys(e){return pt(e,`iterate`,d(e)?`length`:ut),Reflect.ownKeys(e)}},At=class extends Ot{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},jt=/* @__PURE__ */ new kt,Mt=/* @__PURE__ */ new At,Nt=/* @__PURE__ */ new kt(!0),Pt=e=>e,Ft=e=>Reflect.getPrototypeOf(e);function It(e,t,n){return function(...r){let i=this.__v_raw,a=/* @__PURE__ */ C(i),o=f(a),c=e===`entries`||e===Symbol.iterator&&o,l=e===`keys`&&o,u=i[e](...r),d=n?Pt:t?an:rn;return!t&&pt(a,`iterate`,l?dt:ut),s(Object.create(u),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:c?[d(e[0]),d(e[1])]:d(e),done:t}}})}}function Lt(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function Rt(e,t){let n={get(n){let r=this.__v_raw,i=/* @__PURE__ */ C(r),a=/* @__PURE__ */ C(n);e||(fe(n,a)&&pt(i,`get`,n),pt(i,`get`,a));let{has:o}=Ft(i),s=t?Pt:e?an:rn;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&&pt(/* @__PURE__ */ C(t),`iterate`,ut),t.size},has(t){let n=this.__v_raw,r=/* @__PURE__ */ C(n),i=/* @__PURE__ */ C(t);return e||(fe(t,i)&&pt(r,`has`,t),pt(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=/* @__PURE__ */ C(a),s=t?Pt:e?an:rn;return!e&&pt(o,`iterate`,ut),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return s(n,e?{add:Lt(`add`),set:Lt(`set`),delete:Lt(`delete`),clear:Lt(`clear`)}:{add(e){let n=/* @__PURE__ */ C(this),r=Ft(n),i=/* @__PURE__ */ C(e),a=!t&&!/* @__PURE__ */ en(e)&&!/* @__PURE__ */ $t(e)?i:e;return r.has.call(n,a)||fe(e,a)&&r.has.call(n,e)||fe(i,a)&&r.has.call(n,i)||(n.add(a),mt(n,`add`,a,a)),this},set(e,n){!t&&!/* @__PURE__ */ en(n)&&!/* @__PURE__ */ $t(n)&&(n=/* @__PURE__ */ C(n));let r=/* @__PURE__ */ C(this),{has:i,get:a}=Ft(r),o=i.call(r,e);o||=(e=/* @__PURE__ */ C(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?fe(n,s)&&mt(r,`set`,e,n,s):mt(r,`add`,e,n),this},delete(e){let t=/* @__PURE__ */ C(this),{has:n,get:r}=Ft(t),i=n.call(t,e);i||=(e=/* @__PURE__ */ C(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&mt(t,`delete`,e,void 0,a),o},clear(){let e=/* @__PURE__ */ C(this),t=e.size!==0,n=e.clear();return t&&mt(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=It(r,e,t)}),n}function zt(e,t){let n=Rt(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(u(n,r)&&r in t?n:t,r,i)}var Bt={get:/* @__PURE__ */ zt(!1,!1)},Vt={get:/* @__PURE__ */ zt(!1,!0)},Ht={get:/* @__PURE__ */ zt(!0,!1)},Ut=/* @__PURE__ */ new WeakMap,Wt=/* @__PURE__ */ new WeakMap,Gt=/* @__PURE__ */ new WeakMap,Kt=/* @__PURE__ */ new WeakMap;function qt(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}// @__NO_SIDE_EFFECTS__
3
3
  function Jt(e){return/* @__PURE__ */ $t(e)?e:Zt(e,!1,jt,Bt,Ut)}// @__NO_SIDE_EFFECTS__
4
4
  function Yt(e){return Zt(e,!1,Nt,Vt,Wt)}// @__NO_SIDE_EFFECTS__
5
5
  function Xt(e){return Zt(e,!0,Mt,Ht,Gt)}function Zt(e,t,n,r,i){if(!v(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=qt(ne(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}// @__NO_SIDE_EFFECTS__
@@ -12,8 +12,8 @@ function on(e){return e?e.__v_isRef===!0:!1}// @__NO_SIDE_EFFECTS__
12
12
  function w(e){return cn(e,!1)}// @__NO_SIDE_EFFECTS__
13
13
  function sn(e){return cn(e,!0)}function cn(e,t){return/* @__PURE__ */ on(e)?e:new ln(e,t)}var ln=class{constructor(e,t){this.dep=new st,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:/* @__PURE__ */ C(e),this._value=t?e:rn(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||/* @__PURE__ */ en(e)||/* @__PURE__ */ $t(e);e=n?e:/* @__PURE__ */ C(e),fe(e,t)&&(this._rawValue=e,this._value=n?e:rn(e),this.dep.trigger())}};function T(e){return/* @__PURE__ */ on(e)?e.value:e}var un={get:(e,t,n)=>t===`__v_raw`?e:T(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return/* @__PURE__ */ on(i)&&!/* @__PURE__ */ on(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function dn(e){return/* @__PURE__ */ Qt(e)?e:new Proxy(e,un)}var fn=class{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new st,{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 pn(e){return new fn(e)}var mn=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new st(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=at-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&ze!==this)return Ge(this,!0),!0}get value(){let e=this.dep.track();return Ze(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};// @__NO_SIDE_EFFECTS__
14
14
  function hn(e,t,n=!1){let r,i;return h(e)?r=e:(r=e.get,i=e.set),new mn(r,i,n)}var gn={},_n=/* @__PURE__ */ new WeakMap,vn=void 0;function yn(e,t=!1,n=vn){if(n){let t=_n.get(n);t||_n.set(n,t=[]),t.push(e)}}function bn(e,n,i=t){let{immediate:a,deep:o,once:s,scheduler:l,augmentJob:u,call:f}=i,p=e=>o?e:/* @__PURE__ */ en(e)||o===!1||o===0?xn(e,1):xn(e),m,g,_,v,ee=!1,y=!1;if(/* @__PURE__ */ on(e)?(g=()=>e.value,ee=/* @__PURE__ */ en(e)):/* @__PURE__ */ Qt(e)?(g=()=>p(e),ee=!0):d(e)?(y=!0,ee=e.some(e=>/* @__PURE__ */ Qt(e)||/* @__PURE__ */ en(e)),g=()=>e.map(e=>{if(/* @__PURE__ */ on(e))return e.value;if(/* @__PURE__ */ Qt(e))return p(e);if(h(e))return f?f(e,2):e()})):g=h(e)?n?f?()=>f(e,2):e:()=>{if(_){nt();try{_()}finally{rt()}}let t=vn;vn=m;try{return f?f(e,3,[v]):e(v)}finally{vn=t}}:r,n&&o){let e=g,t=o===!0?1/0:o;g=()=>xn(e(),t)}let te=Re(),ne=()=>{m.stop(),te&&te.active&&c(te.effects,m)};if(s&&n){let e=n;n=(...t)=>{let n=e(...t);return ne(),n}}let re=y?Array(e.length).fill(gn):gn,ie=e=>{if(m.flags&1&&(m.dirty||e)){if(n){let t=m.run();if(e||o||ee||(y?t.some((e,t)=>fe(e,re[t])):fe(t,re))){_&&_();let e=vn;vn=m;try{let e=[t,re===gn?void 0:y&&re[0]===gn?[]:re,v];re=t,f?f(n,3,e):n(...e)}finally{vn=e}}}else m.run()}};return u&&u(ie),m=new Ve(g),m.scheduler=l?()=>l(ie,!1):ie,v=e=>yn(e,!1,m),_=m.onStop=()=>{let e=_n.get(m);if(e){if(f)f(e,4);else for(let t of e)t();_n.delete(m)}},n?a?ie(!0):re=m.run():l?l(ie.bind(null,!0),!0):m.run(),ne.pause=m.pause.bind(m),ne.resume=m.resume.bind(m),ne.stop=ne,ne}function xn(e,t=1/0,n){if(t<=0||!v(e)||e.__v_skip||(n||=/* @__PURE__ */ new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,/* @__PURE__ */ on(e))xn(e.value,t,n);else if(d(e))for(let r=0;r<e.length;r++)xn(e[r],t,n);else if(p(e)||f(e))e.forEach(e=>{xn(e,t,n)});else if(re(e)){for(let r in e)xn(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&xn(e[r],t,n)}return e}function Sn(e,t,n,r){try{return r?e(...r):e()}catch(e){wn(e,t,n)}}function Cn(e,t,n,r){if(h(e)){let i=Sn(e,t,n,r);return i&&ee(i)&&i.catch(e=>{wn(e,t,n)}),i}if(d(e)){let i=[];for(let a=0;a<e.length;a++)i.push(Cn(e[a],t,n,r));return i}}function wn(e,n,r,i=!0){let a=n?n.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:s}=n&&n.appContext.config||t;if(n){let t=n.parent,i=n.proxy,a=`https://vuejs.org/error-reference/#runtime-${r}`;for(;t;){let n=t.ec;if(n){for(let t=0;t<n.length;t++)if(n[t](e,i,a)===!1)return}t=t.parent}if(o){nt(),Sn(o,null,10,[e,i,a]),rt();return}}Tn(e,r,a,i,s)}function Tn(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}var En=[],Dn=-1,On=[],kn=null,An=0,jn=/* @__PURE__ */ Promise.resolve(),Mn=null;function Nn(e){let t=Mn||jn;return e?t.then(this?e.bind(this):e):t}function Pn(e){let t=Dn+1,n=En.length;for(;t<n;){let r=t+n>>>1,i=En[r],a=Bn(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function Fn(e){if(!(e.flags&1)){let t=Bn(e),n=En[En.length-1];!n||!(e.flags&2)&&t>=Bn(n)?En.push(e):En.splice(Pn(t),0,e),e.flags|=1,In()}}function In(){Mn||=jn.then(Vn)}function Ln(e){if(!d(e))kn&&e.id===-1?kn.splice(An+1,0,e):e.flags&1||(On.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)On.push(e[t]);In()}function Rn(e,t,n=Dn+1){for(;n<En.length;n++){let t=En[n];if(t&&t.flags&2){if(e&&t.id!==e.uid)continue;En.splice(n,1),n--,t.flags&4&&(t.flags&=-2),t(),t.flags&4||(t.flags&=-2)}}}function zn(e){if(On.length){let e=[...new Set(On)].sort((e,t)=>Bn(e)-Bn(t));if(On.length=0,kn){for(let t=0;t<e.length;t++)kn.push(e[t]);return}for(kn=e,An=0;An<kn.length;An++){let e=kn[An];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}kn=null,An=0}}var Bn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Vn(e){try{for(Dn=0;Dn<En.length;Dn++){let e=En[Dn];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),Sn(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;Dn<En.length;Dn++){let e=En[Dn];e&&(e.flags&=-2)}Dn=-1,En.length=0,zn(e),Mn=null,(En.length||On.length)&&Vn(e)}}var Hn=null,Un=null;function Wn(e){let t=Hn;return Hn=e,Un=e&&e.type.__scopeId||null,t}function E(e,t=Hn,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&sa(-1);let i=Wn(t),a=ra.length,o;try{o=e(...n)}finally{for(let e=ra.length;e>a;e--)aa();Wn(i),r._d&&sa(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Gn(e,n){if(Hn===null)return e;let r=Ra(Hn),i=e.dirs||=[];for(let e=0;e<n.length;e++){let[a,o,s,c=t]=n[e];a&&(h(a)&&(a={mounted:a,updated:a}),a.deep&&xn(o),i.push({dir:a,instance:r,value:o,oldValue:void 0,arg:s,modifiers:c}))}return e}function Kn(e,t,n,r){let i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){let s=i[o];a&&(s.oldValue=a[o].value);let c=s.dir[r];c&&(nt(),Cn(c,n,8,[e.el,s,e,t]),rt())}}function qn(e,t){if(wa){let n=wa.provides,r=wa.parent&&wa.parent.provides;r===n&&(n=wa.provides=Object.create(r)),n[e]=t}}function Jn(e,t,n=!1){let r=Ta();if(r||li){let i=li?li._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&&h(t)?t.call(r&&r.proxy):t}}var Yn=/* @__PURE__ */ Symbol.for(`v-scx`),Xn=()=>Jn(Yn);function Zn(e,t){return er(e,null,t)}function Qn(e,t){return er(e,null,{flush:`sync`})}function $n(e,t,n){return er(e,t,n)}function er(e,n,i=t){let{immediate:a,deep:o,flush:c,once:l}=i,u=s({},i),d=n&&a||!n&&c!==`post`,f;if(ja){if(c===`sync`){let e=Xn();f=e.__watcherHandles||=[]}else if(!d){let e=()=>{};return e.stop=r,e.resume=r,e.pause=r,e}}let p=wa;u.call=(e,t,n)=>Cn(e,p,t,n);let m=!1;c===`post`?u.scheduler=e=>{Vi(e,p&&p.suspense)}:c!==`sync`&&(m=!0,u.scheduler=(e,t)=>{t?e():Fn(e)}),u.augmentJob=e=>{n&&(e.flags|=4),m&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let h=bn(e,n,u);return ja&&(f?f.push(h):d&&h()),h}function tr(e,t,n){let r=this.proxy,i=g(e)?e.includes(`.`)?nr(r,e):()=>r[e]:e.bind(r,r),a;h(t)?a=t:(a=t.handler,n=t);let o=Oa(this),s=er(i,a.bind(r),n);return o(),s}function nr(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=/* @__PURE__ */ Symbol(`_vte`),ir=e=>e.__isTeleport,ar=/* @__PURE__ */ Symbol(`_leaveCb`);function or(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==ta){t=n;break}}return t}function sr(e){if(!hr(e))return ir(e.type)&&e.children?or(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&&h(n.default))return n.default()}}function cr(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let n=e.component.subTree;cr(ir(n.type)&&sr(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}// @__NO_SIDE_EFFECTS__
15
- function D(e,t){return h(e)?/* @__PURE__ */ s({name:e.name},t,{setup:e}):e}function O(){let e=Ta();return e?(e.appContext.config.idPrefix||`v`)+`-`+e.ids[0]+e.ids[1]++:``}function lr(e){e.ids=[e.ids[0]+e.ids[2]+++`-`,0,0]}function ur(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var dr=/* @__PURE__ */ new WeakMap;function fr(e,n,r,a,o=!1){if(d(e)){e.forEach((e,t)=>fr(e,n&&(d(n)?n[t]:n),r,a,o));return}if(mr(a)&&!o){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&fr(e,n,r,a.component.subTree);return}let s=a.shapeFlag&4?Ra(a.component):a.el,l=o?null:s,{i:f,r:p}=e,m=n&&n.r,_=f.refs===t?f.refs={}:f.refs,v=f.setupState,ee=/* @__PURE__ */ C(v),y=v===t?i:e=>!ur(_,e)&&u(ee,e),te=(e,t)=>!(t&&ur(_,t));if(m!=null&&m!==p){if(pr(n),g(m))_[m]=null,y(m)&&(v[m]=null);else if(/* @__PURE__ */ on(m)){let e=n;te(m,e.k)&&(m.value=null),e.k&&(_[e.k]=null)}}if(h(p))Sn(p,f,12,[l,_]);else{let t=g(p),n=/* @__PURE__ */ on(p);if(t||n){let i=()=>{if(e.f){let n=t?y(p)?v[p]:_[p]:te(p)||!e.k?p.value:_[e.k];if(o)d(n)&&c(n,s);else if(d(n))n.includes(s)||n.push(s);else if(t)_[p]=[s],y(p)&&(v[p]=_[p]);else{let t=[s];te(p,e.k)&&(p.value=t),e.k&&(_[e.k]=t)}}else t?(_[p]=l,y(p)&&(v[p]=l)):n&&(te(p,e.k)&&(p.value=l),e.k&&(_[e.k]=l))};if(l){let t=()=>{i(),dr.delete(e)};t.id=-1,dr.set(e,t),Vi(t,r)}else pr(e),i()}}}function pr(e){let t=dr.get(e);t&&(t.flags|=8,dr.delete(e))}ve().requestIdleCallback,ve().cancelIdleCallback;var mr=e=>!!e.type.__asyncLoader,hr=e=>e.type.__isKeepAlive;function gr(e,t){vr(e,`a`,t)}function _r(e,t){vr(e,`da`,t)}function vr(e,t,n=wa){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(br(t,r,n),n){let e=n.parent;for(;e&&e.parent;)hr(e.parent.vnode)&&yr(r,t,n,e),e=e.parent}}function yr(e,t,n,r){let i=br(t,e,r,!0);Dr(()=>{c(r[t],i)},n)}function br(e,t,n=wa,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{nt();let i=Oa(n),a=Cn(t,n,e,r);return i(),rt(),a};return r?i.unshift(a):i.push(a),a}}var xr=e=>(t,n=wa)=>{(!ja||e===`sp`)&&br(e,(...e)=>t(...e),n)},Sr=xr(`bm`),Cr=xr(`m`),wr=xr(`bu`),Tr=xr(`u`),Er=xr(`bum`),Dr=xr(`um`),Or=xr(`sp`),kr=xr(`rtg`),Ar=xr(`rtc`);function jr(e,t=wa){br(`ec`,e,t)}var Mr=`components`,Nr=/* @__PURE__ */ Symbol.for(`v-ndc`);function Pr(e){return g(e)?Fr(Mr,e,!1)||e:e||Nr}function Fr(e,t,n=!0,r=!1){let i=Hn||wa;if(i){let n=i.type;if(e===Mr){let e=za(n,!1);if(e&&(e===t||e===b(t)||e===ue(b(t))))return n}let a=Ir(i[e]||n[e],t)||Ir(i.appContext[e],t);return!a&&r?n:a}}function Ir(e,t){return e&&(e[t]||e[b(t)]||e[ue(b(t))])}function k(e,t,n,r){let i,a=n&&n[r],o=d(e);if(o||g(e)){let n=o&&/* @__PURE__ */ Qt(e),r=!1,s=!1;n&&(r=!/* @__PURE__ */ en(e),s=/* @__PURE__ */ $t(e),e=gt(e)),i=Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(r?s?an(rn(e[n])):rn(e[n]):e[n],n,void 0,a&&a[n])}else if(typeof e==`number`){i=Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,a&&a[n])}else if(v(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 Lr(e,t,n,r,i,a){if(n??={},Hn.ce||Hn.parent&&mr(Hn.parent)&&Hn.parent.ce){let e=a!=null&&n.key==null?s({},n,{key:a}):n,i=Object.keys(e).length>0;return t!=="default"&&(e.name=t),j(),N(A,null,[F(`slot`,e,r&&r())],i?-2:64)}let o=e[t];o&&o._c&&(o._d=!1);let c=ra.length;j();let l;try{let i=o&&Rr(o(n)),s=n.key||a||i&&i.key;l=N(A,{key:(s&&!_(s)?s:`_${t}`)+(!i&&r?`_fb`:``)},i||(r?r():[]),i&&e._===1?64:-2)}catch(e){for(let e=ra.length;e>c;e--)aa();throw e}finally{o&&o._c&&(o._d=!0)}return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+`-s`]),l}function Rr(e){return e.some(e=>!la(e)||!(e.type===ta||e.type===A&&!Rr(e.children)))?e:null}var zr=e=>e?Aa(e)?Ra(e):zr(e.parent):null,Br=/* @__PURE__ */ s(/* @__PURE__ */ 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=>zr(e.parent),$root:e=>zr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Xr(e),$forceUpdate:e=>e.f||=()=>{Fn(e.update)},$nextTick:e=>e.n||=Nn.bind(e.proxy),$watch:e=>tr.bind(e)}),Vr=(e,n)=>e!==t&&!e.__isScriptSetup&&u(e,n),Hr={get({_:e},n){if(n===`__v_skip`)return!0;let{ctx:r,setupState:i,data:a,props:o,accessCache:s,type:c,appContext:l}=e;if(n[0]!==`$`){let e=s[n];if(e!==void 0)switch(e){case 1:return i[n];case 2:return a[n];case 4:return r[n];case 3:return o[n]}else if(Vr(i,n))return s[n]=1,i[n];else if(a!==t&&u(a,n))return s[n]=2,a[n];else if(u(o,n))return s[n]=3,o[n];else if(r!==t&&u(r,n))return s[n]=4,r[n];else Gr&&(s[n]=0)}let d=Br[n],f,p;if(d)return n===`$attrs`&&pt(e.attrs,`get`,``),d(e);if((f=c.__cssModules)&&(f=f[n]))return f;if(r!==t&&u(r,n))return s[n]=4,r[n];if(p=l.config.globalProperties,u(p,n))return p[n]},set({_:e},n,r){let{data:i,setupState:a,ctx:o}=e;return Vr(a,n)?(a[n]=r,!0):i!==t&&u(i,n)?(i[n]=r,!0):u(e.props,n)||n[0]===`$`&&n.slice(1)in e?!1:(o[n]=r,!0)},has({_:{data:e,setupState:n,accessCache:r,ctx:i,appContext:a,props:o,type:s}},c){let l;return!!(r[c]||e!==t&&c[0]!==`$`&&u(e,c)||Vr(n,c)||u(o,c)||u(i,c)||u(Br,c)||u(a.config.globalProperties,c)||(l=s.__cssModules)&&l[c])},defineProperty(e,t,n){return n.get==null?u(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}};function Ur(e){return d(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function Wr(e,t){return!e||!t?e||t:d(e)&&d(t)?e.concat(t):s({},Ur(e),Ur(t))}var Gr=!0;function Kr(e){let t=Xr(e),n=e.proxy,i=e.ctx;Gr=!1,t.beforeCreate&&Jr(t.beforeCreate,e,`bc`);let{data:a,computed:o,methods:s,watch:c,provide:l,inject:u,created:f,beforeMount:p,mounted:m,beforeUpdate:g,updated:_,activated:ee,deactivated:y,beforeDestroy:te,beforeUnmount:ne,destroyed:re,unmounted:ie,render:ae,renderTracked:oe,renderTriggered:se,errorCaptured:b,serverPrefetch:ce,expose:le,inheritAttrs:ue,components:de,directives:fe,filters:pe}=t;if(u&&qr(u,i,null),s)for(let e in s){let t=s[e];h(t)&&(i[e]=t.bind(n))}if(a){let t=a.call(n,n);v(t)&&(e.data=/* @__PURE__ */ Jt(t))}if(Gr=!0,o)for(let e in o){let t=o[e],a=R({get:h(t)?t.bind(n,n):h(t.get)?t.get.bind(n,n):r,set:!h(t)&&h(t.set)?t.set.bind(n):r});Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(c)for(let e in c)Yr(c[e],i,n,e);if(l){let e=h(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{qn(t,e[t])})}f&&Jr(f,e,`c`);function me(e,t){d(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(me(Sr,p),me(Cr,m),me(wr,g),me(Tr,_),me(gr,ee),me(_r,y),me(jr,b),me(Ar,oe),me(kr,se),me(Er,ne),me(Dr,ie),me(Or,ce),d(le)){if(le.length){let t=e.exposed||={};le.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={}}ae&&e.render===r&&(e.render=ae),ue!=null&&(e.inheritAttrs=ue),de&&(e.components=de),fe&&(e.directives=fe),ce&&lr(e)}function qr(e,t,n=r){d(e)&&(e=ti(e));for(let n in e){let r=e[n],i;i=v(r)?`default`in r?Jn(r.from||n,r.default,!0):Jn(r.from||n):Jn(r),/* @__PURE__ */ on(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function Jr(e,t,n){Cn(d(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Yr(e,t,n,r){let i=r.includes(`.`)?nr(n,r):()=>n[r];if(g(e)){let n=t[e];h(n)&&$n(i,n)}else if(h(e))$n(i,e.bind(n));else if(v(e)){if(d(e))e.forEach(e=>Yr(e,t,n,r));else{let r=h(e.handler)?e.handler.bind(n):t[e.handler];h(r)&&$n(i,r,e)}}}function Xr(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=>Zr(c,e,o,!0)),Zr(c,t,o)),v(t)&&a.set(t,c),c}function Zr(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&Zr(e,a,n,!0),i&&i.forEach(t=>Zr(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=Qr[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var Qr={data:$r,props:ii,emits:ii,methods:ri,computed:ri,beforeCreate:ni,created:ni,beforeMount:ni,mounted:ni,beforeUpdate:ni,updated:ni,beforeDestroy:ni,beforeUnmount:ni,destroyed:ni,unmounted:ni,activated:ni,deactivated:ni,errorCaptured:ni,serverPrefetch:ni,components:ri,directives:ri,watch:ai,provide:$r,inject:ei};function $r(e,t){return t?e?function(){return s(h(e)?e.call(this,this):e,h(t)?t.call(this,this):t)}:t:e}function ei(e,t){return ri(ti(e),ti(t))}function ti(e){if(d(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ni(e,t){return e?[...new Set([].concat(e,t))]:t}function ri(e,t){return e?s(/* @__PURE__ */ Object.create(null),e,t):t}function ii(e,t){return e?d(e)&&d(t)?[.../* @__PURE__ */ new Set([...e,...t])]:s(/* @__PURE__ */ Object.create(null),Ur(e),Ur(t??{})):t}function ai(e,t){if(!e)return t;if(!t)return e;let n=s(/* @__PURE__ */ Object.create(null),e);for(let r in t)n[r]=ni(e[r],t[r]);return n}function oi(){return{app:null,config:{isNativeTag:i,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:/* @__PURE__ */ Object.create(null),optionsCache:/* @__PURE__ */ new WeakMap,propsCache:/* @__PURE__ */ new WeakMap,emitsCache:/* @__PURE__ */ new WeakMap}}var si=0;function ci(e,t){return function(n,r=null){h(n)||(n=s({},n)),r!=null&&!v(r)&&(r=null);let i=oi(),a=/* @__PURE__ */ new WeakSet,o=[],c=!1,l=i.app={_uid:si++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:Ha,get config(){return i.config},set config(e){},use(e,...t){return a.has(e)||(e&&h(e.install)?(a.add(e),e.install(l,...t)):h(e)&&(a.add(e),e(l,...t))),l},mixin(e){return i.mixins.includes(e)||i.mixins.push(e),l},component(e,t){return t?(i.components[e]=t,l):i.components[e]},directive(e,t){return t?(i.directives[e]=t,l):i.directives[e]},mount(a,o,s){if(!c){let u=l._ceVNode||F(n,r);return u.appContext=i,s===!0?s=`svg`:s===!1&&(s=void 0),o&&t?t(u,a):e(u,a,s),c=!0,l._container=a,a.__vue_app__=l,Ra(u.component)}},onUnmount(e){o.push(e)},unmount(){c&&(Cn(o,l._instance,16),e(null,l._container),delete l._container.__vue_app__)},provide(e,t){return i.provides[e]=t,l},runWithContext(e){let t=li;li=l;try{return e()}finally{li=t}}};return l}}var li=null;function ui(e,n,r=t){let i=Ta(),a=b(n),o=le(n),s=di(e,a),c=pn((s,c)=>{let l,u=t,d;return Qn(()=>{let t=e[a];fe(l,t)&&(l=t,c())}),{get(){return s(),r.get?r.get(l):l},set(e){let s=r.set?r.set(e):e;if(!fe(s,l)&&!(u!==t&&fe(e,u)))return;let f=i.vnode.props,p=!!(f&&(n in f||a in f||o in f)&&(`onUpdate:${n}`in f||`onUpdate:${a}`in f||`onUpdate:${o}`in f));p||(l=e,c()),i.emit(`update:${n}`,s),fe(e,u)&&(fe(e,s)&&!fe(s,d)||p&&u!==t&&!fe(s,l))&&c(),u=e,d=s}}});return c[Symbol.iterator]=()=>{let e=0;return{next(){return e<2?{value:e++?s||t:c,done:!1}:{done:!0}}}},c}var di=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${b(t)}Modifiers`]||e[`${le(t)}Modifiers`];function fi(e,n,...r){if(e.isUnmounted)return;let i=e.vnode.props||t,a=r,o=n.startsWith(`update:`),s=o&&di(i,n.slice(7));s&&(s.trim&&(a=r.map(e=>g(e)?e.trim():e)),s.number&&(a=a.map(he)));let c,l=i[c=de(n)]||i[c=de(b(n))];!l&&o&&(l=i[c=de(le(n))]),l&&Cn(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,Cn(u,e,6,a)}}var pi=/* @__PURE__ */ new WeakMap;function mi(e,t,n=!1){let r=n?pi:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},c=!1;if(!h(e)){let r=e=>{let n=mi(e,t,!0);n&&(c=!0,s(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!c?(v(e)&&r.set(e,null),null):(d(a)?a.forEach(e=>o[e]=null):s(o,a),v(e)&&r.set(e,o),o)}function hi(e,t){return!e||!a(t)?!1:(t=t.slice(2),t=t===`Once`?t:t.replace(/Once$/,``),u(e,t[0].toLowerCase()+t.slice(1))||u(e,le(t))||u(e,t))}function gi(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:s,attrs:c,emit:l,render:u,renderCache:d,props:f,data:p,setupState:m,ctx:h,inheritAttrs:g}=e,_=Wn(e),v,ee;try{if(n.shapeFlag&4){let e=i||r,t=e;v=ga(u.call(t,e,d,f,m,p,h)),ee=c}else{let e=t;v=ga(e.length>1?e(f,{attrs:c,slots:s,emit:l}):e(f,null)),ee=t.props?c:_i(c)}}catch(t){ra.length=0,wn(t,e,1),v=F(ta)}let y=v;if(ee&&g!==!1){let e=Object.keys(ee),{shapeFlag:t}=y;e.length&&t&7&&(a&&e.some(o)&&(ee=vi(ee,a)),y=ha(y,ee,!1,!0))}return n.dirs&&(y=ha(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&cr(ir(y.type)&&sr(y)||y,n.transition),v=y,Wn(_),v}var _i=e=>{let t;for(let n in e)(n===`class`||n===`style`||a(n))&&((t||={})[n]=e[n]);return t},vi=(e,t)=>{let n={};for(let r in e)(!o(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function yi(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?bi(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(xi(o,r,n)&&!hi(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?!o||bi(r,o,l):!!o;return!1}function bi(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(xi(t,e,a)&&!hi(n,a))return!0}return!1}function xi(e,t,n){let r=e[n],i=t[n];return n===`style`&&v(r)&&v(i)?!je(r,i):r!==i}function Si({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 Ci={},wi=()=>Object.create(Ci),Ti=e=>Object.getPrototypeOf(e)===Ci;function Ei(e,t,n,r=!1){let i={},a=wi();e.propsDefaults=/* @__PURE__ */ Object.create(null),Oi(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);e.props=n?r?i:/* @__PURE__ */ Yt(i):e.type.props?i:a,e.attrs=a}function Di(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=/* @__PURE__ */ C(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(hi(e.emitsOptions,o))continue;let d=t[o];if(c){if(u(a,o))d!==a[o]&&(a[o]=d,l=!0);else{let t=b(o);i[t]=ki(c,s,t,d,e,!1)}}else d!==a[o]&&(a[o]=d,l=!0)}}}else{Oi(e,t,i,a)&&(l=!0);let r;for(let a in s)(!t||!u(t,a)&&((r=le(a))===a||!u(t,r)))&&(c?n&&(n[a]!==void 0||n[r]!==void 0)&&(i[a]=ki(c,s,a,void 0,e,!0)):delete i[a]);if(a!==s)for(let e in a)(!t||!u(t,e))&&(delete a[e],l=!0)}l&&mt(e.attrs,`set`,``)}function Oi(e,n,r,i){let[a,o]=e.propsOptions,s=!1,c;if(n)for(let t in n){if(ae(t))continue;let l=n[t],d;a&&u(a,d=b(t))?!o||!o.includes(d)?r[d]=l:(c||={})[d]=l:hi(e.emitsOptions,t)||(!(t in i)||l!==i[t])&&(i[t]=l,s=!0)}if(o){let n=/* @__PURE__ */ C(r),i=c||t;for(let t=0;t<o.length;t++){let s=o[t];r[s]=ki(a,n,s,i[s],e,!u(i,s))}}return s}function ki(e,t,n,r,i,a){let o=e[n];if(o!=null){let e=u(o,`default`);if(e&&r===void 0){let e=o.default;if(o.type!==Function&&!o.skipFactory&&h(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let o=Oa(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===le(n))&&(r=!0))}return r}var Ai=/* @__PURE__ */ new WeakMap;function ji(e,r,i=!1){let a=i?Ai:r.propsCache,o=a.get(e);if(o)return o;let c=e.props,l={},f=[],p=!1;if(!h(e)){let t=e=>{p=!0;let[t,n]=ji(e,r,!0);s(l,t),n&&f.push(...n)};!i&&r.mixins.length&&r.mixins.forEach(t),e.extends&&t(e.extends),e.mixins&&e.mixins.forEach(t)}if(!c&&!p)return v(e)&&a.set(e,n),n;if(d(c))for(let e=0;e<c.length;e++){let n=b(c[e]);Mi(n)&&(l[n]=t)}else if(c)for(let e in c){let t=b(e);if(Mi(t)){let n=c[e],r=l[t]=d(n)||h(n)?{type:n}:s({},n),i=r.type,a=!1,o=!0;if(d(i))for(let e=0;e<i.length;++e){let t=i[e],n=h(t)&&t.name;if(n===`Boolean`){a=!0;break}n===`String`&&(o=!1)}else a=h(i)&&i.name===`Boolean`;r[0]=a,r[1]=o,(a||u(r,`default`))&&f.push(t)}}let m=[l,f];return v(e)&&a.set(e,m),m}function Mi(e){return e[0]!==`$`&&!ae(e)}var Ni=e=>e===`_`||e===`_ctx`||e===`$stable`,Pi=e=>d(e)?e.map(ga):[ga(e)],Fi=(e,t,n)=>{if(t._n)return t;let r=E((...e)=>Pi(t(...e)),n);return r._c=!1,r},Ii=(e,t,n)=>{let r=e._ctx;for(let n in e){if(Ni(n))continue;let i=e[n];if(h(i))t[n]=Fi(n,i,r);else if(i!=null){let e=Pi(i);t[n]=()=>e}}},Li=(e,t)=>{let n=Pi(t);e.slots.default=()=>n},Ri=(e,t,n)=>{for(let r in t)(n||!Ni(r))&&(e[r]=t[r])},zi=(e,t,n)=>{let r=e.slots=wi();if(e.vnode.shapeFlag&32){let e=t._;e?(Ri(r,t,n),n&&me(r,`_`,e,!0)):Ii(t,r)}else t&&Li(e,t)},Bi=(e,n,r)=>{let{vnode:i,slots:a}=e,o=!0,s=t;if(i.shapeFlag&32){let e=n._;e?r&&e===1?o=!1:Ri(a,n,r):(o=!n.$stable,Ii(n,a)),s=n}else n&&(Li(e,n),s={default:1});if(o)for(let e in a)!Ni(e)&&s[e]==null&&delete a[e]},Vi=$i;function Hi(e){return Ui(e)}function Ui(e,i){let a=ve();a.__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=r,insertStaticContent:_}=e,v=(e,t,r,i=null,a=null,o=null,s=void 0,c=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!ua(e,t)&&(i=De(e),Se(e,a,o,!0),e=null),t.patchFlag===-2&&(l=!1,t.dynamicChildren=null),t.dynamicChildren&&e&&e.dynamicChildren&&e.dynamicChildren.hasOnce&&(t.dynamicChildren===n&&(t.dynamicChildren=[]),t.dynamicChildren.hasOnce=!0);let{type:u,ref:d,shapeFlag:f}=t;switch(u){case ea:ee(e,t,r,i);break;case ta:y(e,t,r,i);break;case na:e??te(t,r,i,s);break;case A:de(e,t,r,i,a,o,s,c,l);break;default:f&1?ie(e,t,r,i,a,o,s,c,l):f&6?fe(e,t,r,i,a,o,s,c,l):(f&64||f&128)&&u.process(e,t,r,i,a,o,s,c,l,Ae)}d!=null&&a?fr(d,e&&e.ref,o,t||e,!t):d==null&&e&&e.ref!=null&&fr(e.ref,null,o,e,!0)},ee=(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)}},y=(e,t,n,r)=>{e==null?o(t.el=d(t.children||``),n,r):t.el=e.el},te=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},ne=({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)},re=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),s(e),e=n;s(t)},ie=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)oe(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),ce(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},oe=(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&&b(e.children,d,null,r,i,Wi(e,a),s,u),_&&Kn(e,null,r,`created`),se(d,e,e.scopeId,s,r),m){for(let e in m)e!==`value`&&!ae(e)&&c(d,e,null,m[e],a,r);`value`in m&&c(d,`value`,null,m.value,a),(f=m.onVnodeBeforeMount)&&ba(f,r,e)}_&&Kn(e,null,r,`beforeMount`);let v=Ki(i,g);v&&g.beforeEnter(d),o(d,t,n),((f=m&&m.onVnodeMounted)||v||_)&&Vi(()=>{try{f&&ba(f,r,e),v&&g.enter(d),_&&Kn(e,null,r,`mounted`)}finally{}},i)},se=(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||Qi(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;se(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},b=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++){let c=e[l]=s?_a(e[l]):ga(e[l]);v(null,c,t,n,r,i,a,o,s)}},ce=(e,n,r,i,a,o,s)=>{let l=n.el=e.el,{patchFlag:u,dynamicChildren:d,dirs:f}=n;u|=e.patchFlag&16;let m=e.props||t,h=n.props||t,g;if(r&&Gi(r,!1),(g=h.onVnodeBeforeUpdate)&&ba(g,r,n,e),f&&Kn(n,e,r,`beforeUpdate`),r&&Gi(r,!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?le(e.dynamicChildren,d,l,r,i,Wi(n,a),o):s||x(e,n,l,null,r,i,Wi(n,a),o,!1),u>0){if(u&16)ue(l,m,h,r,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=n.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t],i=m[n],o=h[n];(o!==i||n===`value`)&&c(l,n,i,o,a,r)}}u&1&&e.children!==n.children&&p(l,n.children)}else!s&&d==null&&ue(l,m,h,r,a);((g=h.onVnodeUpdated)||f)&&Vi(()=>{g&&ba(g,r,n,e),f&&Kn(n,e,r,`updated`)},i)},le=(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&&(c.type===A||!ua(c,l)||c.shapeFlag&198)?m(c.el):n;v(c,l,u,null,r,i,a,o,!0)}},ue=(e,n,r,i,a)=>{if(n!==r){if(n!==t)for(let t in n)!ae(t)&&!(t in r)&&c(e,t,n[t],null,a,i);for(let t in r){if(ae(t))continue;let o=r[t],s=n[t];o!==s&&t!==`value`&&c(e,t,s,o,a,i)}`value`in r&&c(e,`value`,n.value,r.value,a)}},de=(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),b(t.children||[],n,f,i,a,s,c,l)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(le(e.dynamicChildren,m,n,i,a,s,c),(t.key!=null||i&&t===i.subTree)&&qi(e,t,!0)):x(e,t,n,f,i,a,s,c,l)},fe=(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):me(t,n,r,i,a,o,c):he(e,t,c)},me=(e,t,n,r,i,a,o)=>{let s=e.component=Ca(e,r,i);if(hr(e)&&(s.ctx.renderer=Ae),Ma(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,ge,o),!e.el){let r=s.subTree=F(ta);y(null,r,t,n),e.placeholder=r.el}}else ge(s,e,t,n,i,a,o)},he=(e,t,n)=>{let r=t.component=e.component;if(yi(e,t,n)){if(r.asyncDep&&!r.asyncResolved){t.el=e.el,_e(r,t,n);return}r.next=t,r.update()}else t.el=e.el,r.vnode=t},ge=(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=Yi(e);if(n){t&&(t.el=c.el,_e(e,t,o)),n.asyncDep.then(()=>{Vi(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;Gi(e,!1),t?(t.el=c.el,_e(e,t,o)):t=c,n&&pe(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&ba(d,s,t,c),Gi(e,!0);let f=gi(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),De(p),e,i,a),t.el=f.el,u===null&&Si(e,f.el),r&&Vi(r,i),(d=t.props&&t.props.onVnodeUpdated)&&Vi(()=>ba(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=mr(t);if(Gi(e,!1),l&&pe(l),!m&&(o=c&&c.onVnodeBeforeMount)&&ba(o,d,t),Gi(e,!0),s&&Me){let t=()=>{e.subTree=gi(e),Me(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=gi(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&Vi(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;Vi(()=>ba(o,d,e),i)}(t.shapeFlag&256||d&&mr(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&Vi(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new Ve(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=()=>Fn(u),Gi(e,!0),l()},_e=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,Di(e,t.props,r,n),Bi(e,t.children,n),nt(),Rn(e),rt()},x=(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){be(l,d,n,r,i,a,o,s,c);return}if(f&256){ye(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&Ee(l,i,a),d!==l&&p(n,d)):u&16?m&16?be(l,d,n,r,i,a,o,s,c):Ee(l,i,a,!0):(u&8&&p(n,``),m&16&&b(d,n,r,i,a,o,s,c))},ye=(e,t,r,i,a,o,s,c,l)=>{e||=n,t||=n;let u=e.length,d=t.length,f=Math.min(u,d),p=0;for(;p<f;p++){let n=t[p]=l?_a(t[p]):ga(t[p]);v(e[p],n,r,null,a,o,s,c,l)}u>d?Ee(e,a,o,!0,!1,f):b(t,r,i,a,o,s,c,l,f)},be=(e,t,r,i,a,o,s,c,l)=>{let u=0,d=t.length,f=e.length-1,p=d-1;for(;u<=f&&u<=p;){let n=e[u],i=t[u]=l?_a(t[u]):ga(t[u]);if(ua(n,i))v(n,i,r,null,a,o,s,c,l);else break;u++}for(;u<=f&&u<=p;){let n=e[f],i=t[p]=l?_a(t[p]):ga(t[p]);if(ua(n,i))v(n,i,r,null,a,o,s,c,l);else break;f--,p--}if(u>f){if(u<=p){let e=p+1,n=e<d?t[e].el:i;for(;u<=p;)v(null,t[u]=l?_a(t[u]):ga(t[u]),r,n,a,o,s,c,l),u++}}else if(u>p)for(;u<=f;)Se(e[u],a,o,!0),u++;else{let m=u,h=u,g=/* @__PURE__ */ new Map;for(u=h;u<=p;u++){let e=t[u]=l?_a(t[u]):ga(t[u]);e.key!=null&&g.set(e.key,u)}let _,ee=0,y=p-h+1,te=!1,ne=0,re=Array(y);for(u=0;u<y;u++)re[u]=0;for(u=m;u<=f;u++){let n=e[u];if(ee>=y){Se(n,a,o,!0);continue}let i;if(n.key!=null)i=g.get(n.key);else for(_=h;_<=p;_++)if(re[_-h]===0&&ua(n,t[_])){i=_;break}i===void 0?Se(n,a,o,!0):(re[i-h]=u+1,i>=ne?ne=i:te=!0,v(n,t[i],r,null,a,o,s,c,l),ee++)}let ie=te?Ji(re):n;for(_=ie.length-1,u=y-1;u>=0;u--){let e=h+u,n=t[e],f=t[e+1],p=e+1<d?f.el||Zi(f):i;re[u]===0?v(null,n,r,p,a,o,s,c,l):te&&(_<0||u!==ie[_]?xe(n,r,p,2):_--)}}},xe=(e,t,n,r,i=null)=>{let{el:a,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){xe(e.component.subTree,t,n,r);return}if(d&128){e.suspense.move(t,n,r);return}if(d&64){c.move(e,t,n,Ae);return}if(c===A){o(a,t,n);for(let e=0;e<u.length;e++)xe(u[e],t,n,r);o(e.anchor,t,n);return}if(c===na){ne(e,t,n);return}if(r!==2&&d&1&&l){if(r===0)l.persisted&&!a[ar]?o(a,t,n):(l.beforeEnter(a),o(a,t,n),Vi(()=>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[ar];a._isLeaving&&a[ar](!0),l.persisted&&!e?u():r(a,()=>{u(),c&&c()})};i?i(a,u,d):d()}}else o(a,t,n)},Se=(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&&(nt(),fr(s,null,n,e,!0),rt()),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=!mr(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&ba(_,t,e),u&6)Te(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&Kn(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,Ae,r):l&&!l.hasOnce&&(a!==A||d>0&&d&64)?Ee(l,t,n,!1,!0):(a===A&&d&384||!i&&u&16)&&Ee(c,t,n),r&&Ce(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&Vi(()=>{_&&ba(_,t,e),h&&Kn(e,null,t,`unmounted`),v&&(e.el=null)},n)},Ce=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===A){we(n,r);return}if(t===na){re(e),i&&!i.persisted&&i.afterLeave&&i.afterLeave();return}let a=()=>{s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(e.shapeFlag&1&&i&&!i.persisted){let{leave:t,delayLeave:r}=i,o=()=>t(n,a);r?r(e.el,a,o):o()}else a()},we=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},Te=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;Xi(c),Xi(l),r&&pe(r),i.stop(),a?(a.flags|=8,Se(o,e,t,n)):e.vnode.el&&o&&(o.transition=e.vnode.transition,Se(o,e,t,n)),s&&Vi(s,t),Vi(()=>{e.isUnmounted=!0},t)},Ee=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)Se(e[o],t,n,r,i)},De=e=>{if(e.shapeFlag&6)return De(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[rr];return n?h(n):t},Oe=!1,ke=(e,t,n)=>{let r;e==null?t._vnode&&(Se(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,Oe||=(Oe=!0,Rn(r),zn(),!1)},Ae={p:v,um:Se,m:xe,r:Ce,mt:me,mc:b,pc:x,pbc:le,n:De,o:e},je,Me;return i&&([je,Me]=i(Ae)),{render:ke,hydrate:je,createApp:ci(ke,je)}}function Wi({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 Gi({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ki(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function qi(e,t,n=!1){let r=e.children,i=t.children;if(d(r)&&d(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]=_a(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&qi(t,a)),a.type===ea&&(a.patchFlag===-1&&(a=i[e]=_a(a)),a.el=t.el),a.type===ta&&!a.el&&(a.el=t.el)}}function Ji(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 Yi(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Yi(t)}function Xi(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Zi(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?Zi(t.subTree):null}var Qi=e=>e.__isSuspense;function $i(e,t){t&&t.pendingBranch?d(e)?t.effects.push(...e):t.effects.push(e):Ln(e)}var A=/* @__PURE__ */ Symbol.for(`v-fgt`),ea=/* @__PURE__ */ Symbol.for(`v-txt`),ta=/* @__PURE__ */ Symbol.for(`v-cmt`),na=/* @__PURE__ */ Symbol.for(`v-stc`),ra=[],ia=null;function j(e=!1){ra.push(ia=e?null:[])}function aa(){ra.pop(),ia=ra[ra.length-1]||null}var oa=1;function sa(e,t=!1){oa+=e,e<0&&ia&&t&&(ia.hasOnce=!0)}function ca(e){return e.dynamicChildren=oa>0?ia||n:null,aa(),oa>0&&ia&&ia.push(e),e}function M(e,t,n,r,i,a){return ca(P(e,t,n,r,i,a,!0))}function N(e,t,n,r,i){return ca(F(e,t,n,r,i,!0))}function la(e){return e?e.__v_isVNode===!0:!1}function ua(e,t){return e.type===t.type&&e.key===t.key}var da=({key:e})=>e??null,fa=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:g(e)||/* @__PURE__ */ on(e)||h(e)?{i:Hn,r:e,k:t,f:!!n}:e);function P(e,t=null,n=null,r=0,i=null,a=e===A?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&da(t),ref:t&&fa(t),scopeId:Un,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:Hn};return s?(va(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=g(n)?8:16),oa>0&&!o&&ia&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&ia.push(c),c}var F=pa;function pa(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===Nr)&&(e=ta),la(e)){let r=ha(e,t,!0);return n&&va(r,n),oa>0&&!a&&ia&&(r.shapeFlag&6?ia[ia.indexOf(e)]=r:ia.push(r)),r.patchFlag=-2,r}if(Ba(e)&&(e=e.__vccOpts),t){t=ma(t);let{class:e,style:n}=t;e&&!g(e)&&(t.class=Ce(e)),v(n)&&(/* @__PURE__ */ tn(n)&&!d(n)&&(n=s({},n)),t.style=x(n))}let o=g(e)?1:Qi(e)?128:ir(e)?64:v(e)?4:h(e)?2:0;return P(e,t,n,r,i,o,a,!0)}function ma(e){return e?/* @__PURE__ */ tn(e)||Ti(e)?s({},e):e:null}function ha(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?ya(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&da(l),ref:t&&t.ref?n&&a?d(a)?a.concat(fa(t)):[a,fa(t)]:fa(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!==A?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&&ha(e.ssContent),ssFallback:e.ssFallback&&ha(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return c&&r&&cr(u,c.clone(u)),u}function I(e=` `,t=0){return F(ea,null,e,t)}function L(e=``,t=!1){return t?(j(),N(ta,null,e)):F(ta,null,e)}function ga(e){return e==null||typeof e==`boolean`?F(ta):d(e)?F(A,null,e.slice()):la(e)?_a(e):F(ea,null,String(e))}function _a(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ha(e)}function va(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(d(t))n=16;else if(typeof t==`object`){if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),va(e,n()),n._c&&(n._d=!0));return}{n=32;let r=t._;!r&&!Ti(t)?t._ctx=Hn:r===3&&Hn&&(Hn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}}else if(h(t)){if(r&65){va(e,{default:t});return}t={default:t,_ctx:Hn},n=32}else t=String(t),r&64?(n=16,t=[I(t)]):n=8;e.children=t,e.shapeFlag|=n}function ya(...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=Ce([t.class,r.class]));else if(e===`style`)t.style=x([t.style,r.style]);else if(a(e)){let n=t[e],i=r[e];i&&n!==i&&!(d(n)&&n.includes(i))?t[e]=n?[].concat(n,i):i:i==null&&n==null&&!o(e)&&(t[e]=i)}else e!==``&&(t[e]=r[e])}return t}function ba(e,t,n,r=null){Cn(e,t,7,[n,r])}var xa=oi(),Sa=0;function Ca(e,n,r){let i=e.type,a=(n?n.appContext:e.appContext)||xa,o={uid:Sa++,vnode:e,type:i,parent:n,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Le(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:n?n.provides:Object.create(a.provides),ids:n?n.ids:[``,0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ji(i,a),emitsOptions:mi(i,a),emit:null,emitted:null,propsDefaults:t,inheritAttrs:i.inheritAttrs,ctx:t,data:t,props:t,attrs:t,slots:t,refs:t,setupState:t,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=n?n.root:o,o.emit=fi.bind(null,o),e.ce&&e.ce(o),o}var wa=null,Ta=()=>wa||Hn,Ea,Da;{let e=ve(),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)}};Ea=t(`__VUE_INSTANCE_SETTERS__`,e=>wa=e),Da=t(`__VUE_SSR_SETTERS__`,e=>ja=e)}var Oa=e=>{let t=wa;return Ea(e),e.scope.on(),()=>{e.scope.off(),Ea(t)}},ka=()=>{wa&&wa.scope.off(),Ea(null)};function Aa(e){return e.vnode.shapeFlag&4}var ja=!1;function Ma(e,t=!1,n=!1){t&&Da(t);let{props:r,children:i}=e.vnode,a=Aa(e);Ei(e,r,a,t),zi(e,i,n||t);let o=a?Na(e,t):void 0;return t&&Da(!1),o}function Na(e,t){let n=e.type;e.accessCache=/* @__PURE__ */ Object.create(null),e.proxy=new Proxy(e.ctx,Hr);let{setup:r}=n;if(r){nt();let n=e.setupContext=r.length>1?La(e):null,i=Oa(e),a=Sn(r,e,0,[e.props,n]),o=ee(a);if(rt(),i(),(o||e.sp)&&!mr(e)&&lr(e),o){if(a.then(ka,ka),t)return a.then(n=>{Da(!0);try{Pa(e,n,t)}finally{Da(!1)}}).catch(t=>{wn(t,e,0)});e.asyncDep=a}else Pa(e,a,t)}else Fa(e,t)}function Pa(e,t,n){h(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:v(t)&&(e.setupState=dn(t)),Fa(e,n)}function Fa(e,t,n){let i=e.type;e.render||=i.render||r;{let t=Oa(e);nt();try{Kr(e)}finally{rt(),t()}}}var Ia={get(e,t){return pt(e,`get`,``),e[t]}};function La(e){return{attrs:new Proxy(e.attrs,Ia),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Ra(e){return e.exposed?e.exposeProxy||=new Proxy(dn(nn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Br)return Br[n](e)},has(e,t){return t in e||t in Br}}):e.proxy}function za(e,t=!0){return h(e)?e.displayName||e.name:e.name||t&&e.__name}function Ba(e){return h(e)&&`__vccOpts`in e}var R=(e,t)=>/* @__PURE__ */ hn(e,t,ja);function Va(e,t,n){try{sa(-1);let r=arguments.length;return r===2?v(t)&&!d(t)?la(t)?F(e,null,[t]):F(e,t):F(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&la(n)&&(n=[n]),F(e,t,n))}finally{sa(1)}}var Ha=`3.5.43`,Ua=void 0,Wa=typeof window<`u`&&window.trustedTypes;if(Wa)try{Ua=/* @__PURE__ */ Wa.createPolicy(`vue`,{createHTML:e=>e})}catch{}var Ga=Ua?e=>Ua.createHTML(e):e=>e,Ka=`http://www.w3.org/2000/svg`,qa=`http://www.w3.org/1998/Math/MathML`,Ja=typeof document<`u`?document:null,Ya=Ja&&/* @__PURE__ */ Ja.createElement(`template`),Xa={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`?Ja.createElementNS(Ka,e):t===`mathml`?Ja.createElementNS(qa,e):n?Ja.createElement(e,{is:n}):Ja.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>Ja.createTextNode(e),createComment:e=>Ja.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ja.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{Ya.innerHTML=Ga(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=Ya.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]}},Za=/* @__PURE__ */ Symbol(`_vtc`);function Qa(e,t,n){let r=e[Za];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var $a=/* @__PURE__ */ Symbol(`_vod`),eo=/* @__PURE__ */ Symbol(`_vsh`),to={name:`show`,beforeMount(e,{value:t},{transition:n}){e[$a]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):no(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),no(e,!0),r.enter(e)):r.leave(e,()=>{no(e,!1)}):no(e,t))},beforeUnmount(e,{value:t}){no(e,t)}};function no(e,t){e.style.display=t?e[$a]:`none`,e[eo]=!t}var ro=/* @__PURE__ */ Symbol(``),io=/(?:^|;)\s*display\s*:/;function ao(e,t,n){let r=e.style,i=g(n),a=!1;if(n&&!i){if(t){if(g(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??so(r,t,``)}else for(let e in t)n[e]??so(r,e,``)}for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?so(r,i,``):fo(e,i,!g(t)&&t?t[i]:void 0,o)||so(r,i,o)}}else if(i){if(t!==n){let e=r[ro];e&&(n+=`;`+e),r.cssText=n,a=io.test(n)}}else t&&e.removeAttribute(`style`);$a in e&&(e[$a]=a?r.display:``,e[eo]&&(r.display=`none`))}var oo=/\s*!important$/;function so(e,t,n){if(d(n))n.forEach(n=>so(e,t,n));else if(n??=``,t.startsWith(`--`))oo.test(n)?e.setProperty(t,n.replace(oo,``),`important`):e.setProperty(t,n);else{let r=uo(e,t);oo.test(n)?e.setProperty(le(r),n.replace(oo,``),`important`):e[r]=n}}var co=[`Webkit`,`Moz`,`ms`],lo={};function uo(e,t){let n=lo[t];if(n)return n;let r=b(t);if(r!==`filter`&&r in e)return lo[t]=r;r=ue(r);for(let n=0;n<co.length;n++){let i=co[n]+r;if(i in e)return lo[t]=i}return t}function fo(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&g(r)&&n===r}var po=`http://www.w3.org/1999/xlink`;function mo(e,t,n,r,i,a=Te(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(po,t.slice(6,t.length)):e.setAttributeNS(po,t,n):n==null||a&&!Ee(n)?e.removeAttribute(t):e.setAttribute(t,a?``:_(n)?String(n):n)}function ho(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?Ga(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 go(e,t,n,r){e.addEventListener(t,n,r)}function _o(e,t,n,r){e.removeEventListener(t,n,r)}var vo=/* @__PURE__ */ Symbol(`_vei`);function yo(e,t,n,r,i=null){let a=e[vo]||(e[vo]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=So(t);r?go(e,n,a[t]=Eo(r,i),s):o&&(_o(e,n,o,s),a[t]=void 0)}}var bo=/(Once|Passive|Capture)$/,xo=/^on:?(?:Once|Passive|Capture)$/;function So(e){let t,n;for(;(n=e.match(bo))&&!xo.test(e);)t||={},e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===`:`?e.slice(3):le(e.slice(2)),t]}var Co=0,wo=/* @__PURE__ */ Promise.resolve(),To=()=>Co||=(wo.then(()=>Co=0),Date.now());function Eo(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(d(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&&Cn(e,t,5,a)}}else Cn(r,t,5,[e])};return n.value=e,n.attached=To(),n}var Do=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Oo=(e,t,n,r,i,s)=>{let c=i===`svg`;t===`class`?Qa(e,r,c):t===`style`?ao(e,n,r):a(t)?o(t)||yo(e,t,n,r,s):(t[0]===`.`?(t=t.slice(1),1):t[0]===`^`?(t=t.slice(1),0):ko(e,t,r,c))?(ho(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&mo(e,t,r,c,s,t!==`value`)):e._isVueCE&&(Ao(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!g(r)))?ho(e,b(t),r,s,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),mo(e,t,r,c))};function ko(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&Do(t)&&h(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 Do(t)&&g(n)?!1:t in e}function Ao(e,t){let n=e._def.props;if(!n)return!1;let r=b(t);return Array.isArray(n)?n.some(e=>b(e)===r):Object.keys(n).some(e=>b(e)===r)}var jo={};// @__NO_SIDE_EFFECTS__
16
- function Mo(e,t,n){let r=/* @__PURE__ */ D(e,t);re(r)&&(r=s({},r,t));class i extends Po{constructor(e){super(r,e,n)}}return i.def=r,i}var No=typeof HTMLElement<`u`?HTMLElement:class{},Po=class e extends No{constructor(e,t={},n=os){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=/* @__PURE__ */ new WeakSet,this._styleAnchors=/* @__PURE__ */ new WeakMap,this._ob=null,this.shadowRoot&&n!==os?this._root=this.shadowRoot:e.shadowRoot===!1?this._root=this:(this.attachShadow(s({},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,Nn(()=>{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&&!d(n))for(let e in n){let t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=ge(this._props[e])),(i||=/* @__PURE__ */ Object.create(null))[b(e)]=!0)}this._numberProps=i,this._resolveProps(e),this.shadowRoot&&this._applyStyles(r),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)u(this,e)||Object.defineProperty(this,e,{get:()=>T(t[e])})}_resolveProps(e){let{props:t}=e,n=d(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(b))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):jo,r=b(e);t&&this._numberProps&&this._numberProps[r]&&(n=ge(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===jo?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(le(e),``):typeof t==`string`||typeof t==`number`?this.setAttribute(le(e),t+``):t||this.removeAttribute(le(e)),n&&n.observe(this,{attributes:!0})}}_update(){let e=this._createVNode();this._app&&(e.appContext=this._app._context),as(e,this._root)}_createVNode(){let e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));let t=F(this._def,s(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,re(t[0])?s({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),le(e)!==e&&t(le(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=/* @__PURE__ */ 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){}},Fo=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return d(t)?e=>pe(t,e):t};function Io(e){e.target.composing=!0}function Lo(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var Ro=/* @__PURE__ */ Symbol(`_assign`),zo=/* @__PURE__ */ Symbol(`_initialValue`);function Bo(e,t,n){return t&&(e=e.trim()),n&&(e=he(e)),e}var Vo={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e.parentNode&&(e.type===`text`?e[zo]=e.defaultValue.replace(/[\r\n]/g,``):e.type===`textarea`&&(e[zo]=e.defaultValue.replace(/\r\n?/g,`
15
+ function D(e,t){return h(e)?/* @__PURE__ */ s({name:e.name},t,{setup:e}):e}function O(){let e=Ta();return e?(e.appContext.config.idPrefix||`v`)+`-`+e.ids[0]+e.ids[1]++:``}function lr(e){e.ids=[e.ids[0]+e.ids[2]+++`-`,0,0]}function ur(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var dr=/* @__PURE__ */ new WeakMap;function fr(e,n,r,a,o=!1){if(d(e)){e.forEach((e,t)=>fr(e,n&&(d(n)?n[t]:n),r,a,o));return}if(mr(a)&&!o){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&fr(e,n,r,a.component.subTree);return}let s=a.shapeFlag&4?Ra(a.component):a.el,l=o?null:s,{i:f,r:p}=e,m=n&&n.r,_=f.refs===t?f.refs={}:f.refs,v=f.setupState,ee=/* @__PURE__ */ C(v),y=v===t?i:e=>!ur(_,e)&&u(ee,e),te=(e,t)=>!(t&&ur(_,t));if(m!=null&&m!==p){if(pr(n),g(m))_[m]=null,y(m)&&(v[m]=null);else if(/* @__PURE__ */ on(m)){let e=n;te(m,e.k)&&(m.value=null),e.k&&(_[e.k]=null)}}if(h(p))Sn(p,f,12,[l,_]);else{let t=g(p),n=/* @__PURE__ */ on(p);if(t||n){let i=()=>{if(e.f){let n=t?y(p)?v[p]:_[p]:te(p)||!e.k?p.value:_[e.k];if(o)d(n)&&c(n,s);else if(d(n))n.includes(s)||n.push(s);else if(t)_[p]=[s],y(p)&&(v[p]=_[p]);else{let t=[s];te(p,e.k)&&(p.value=t),e.k&&(_[e.k]=t)}}else t?(_[p]=l,y(p)&&(v[p]=l)):n&&(te(p,e.k)&&(p.value=l),e.k&&(_[e.k]=l))};if(l){let t=()=>{i(),dr.delete(e)};t.id=-1,dr.set(e,t),Vi(t,r)}else pr(e),i()}}}function pr(e){let t=dr.get(e);t&&(t.flags|=8,dr.delete(e))}ve().requestIdleCallback,ve().cancelIdleCallback;var mr=e=>!!e.type.__asyncLoader,hr=e=>e.type.__isKeepAlive;function gr(e,t){vr(e,`a`,t)}function _r(e,t){vr(e,`da`,t)}function vr(e,t,n=wa){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(br(t,r,n),n){let e=n.parent;for(;e&&e.parent;)hr(e.parent.vnode)&&yr(r,t,n,e),e=e.parent}}function yr(e,t,n,r){let i=br(t,e,r,!0);Dr(()=>{c(r[t],i)},n)}function br(e,t,n=wa,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{nt();let i=Oa(n),a=Cn(t,n,e,r);return i(),rt(),a};return r?i.unshift(a):i.push(a),a}}var xr=e=>(t,n=wa)=>{(!ja||e===`sp`)&&br(e,(...e)=>t(...e),n)},Sr=xr(`bm`),Cr=xr(`m`),wr=xr(`bu`),Tr=xr(`u`),Er=xr(`bum`),Dr=xr(`um`),Or=xr(`sp`),kr=xr(`rtg`),Ar=xr(`rtc`);function jr(e,t=wa){br(`ec`,e,t)}var Mr=`components`,Nr=/* @__PURE__ */ Symbol.for(`v-ndc`);function Pr(e){return g(e)?Fr(Mr,e,!1)||e:e||Nr}function Fr(e,t,n=!0,r=!1){let i=Hn||wa;if(i){let n=i.type;if(e===Mr){let e=za(n,!1);if(e&&(e===t||e===ce(t)||e===ue(ce(t))))return n}let a=Ir(i[e]||n[e],t)||Ir(i.appContext[e],t);return!a&&r?n:a}}function Ir(e,t){return e&&(e[t]||e[ce(t)]||e[ue(ce(t))])}function k(e,t,n,r){let i,a=n&&n[r],o=d(e);if(o||g(e)){let n=o&&/* @__PURE__ */ Qt(e),r=!1,s=!1;n&&(r=!/* @__PURE__ */ en(e),s=/* @__PURE__ */ $t(e),e=gt(e)),i=Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(r?s?an(rn(e[n])):rn(e[n]):e[n],n,void 0,a&&a[n])}else if(typeof e==`number`){i=Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,a&&a[n])}else if(v(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 Lr(e,t,n,r,i,a){if(n??={},Hn.ce||Hn.parent&&mr(Hn.parent)&&Hn.parent.ce){let e=a!=null&&n.key==null?s({},n,{key:a}):n,i=Object.keys(e).length>0;return t!=="default"&&(e.name=t),j(),N(A,null,[F(`slot`,e,r&&r())],i?-2:64)}let o=e[t];o&&o._c&&(o._d=!1);let c=ra.length;j();let l;try{let i=o&&Rr(o(n)),s=n.key||a||i&&i.key;l=N(A,{key:(s&&!_(s)?s:`_${t}`)+(!i&&r?`_fb`:``)},i||(r?r():[]),i&&e._===1?64:-2)}catch(e){for(let e=ra.length;e>c;e--)aa();throw e}finally{o&&o._c&&(o._d=!0)}return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+`-s`]),l}function Rr(e){return e.some(e=>!la(e)||!(e.type===ta||e.type===A&&!Rr(e.children)))?e:null}var zr=e=>e?Aa(e)?Ra(e):zr(e.parent):null,Br=/* @__PURE__ */ s(/* @__PURE__ */ 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=>zr(e.parent),$root:e=>zr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Xr(e),$forceUpdate:e=>e.f||=()=>{Fn(e.update)},$nextTick:e=>e.n||=Nn.bind(e.proxy),$watch:e=>tr.bind(e)}),Vr=(e,n)=>e!==t&&!e.__isScriptSetup&&u(e,n),Hr={get({_:e},n){if(n===`__v_skip`)return!0;let{ctx:r,setupState:i,data:a,props:o,accessCache:s,type:c,appContext:l}=e;if(n[0]!==`$`){let e=s[n];if(e!==void 0)switch(e){case 1:return i[n];case 2:return a[n];case 4:return r[n];case 3:return o[n]}else if(Vr(i,n))return s[n]=1,i[n];else if(a!==t&&u(a,n))return s[n]=2,a[n];else if(u(o,n))return s[n]=3,o[n];else if(r!==t&&u(r,n))return s[n]=4,r[n];else Gr&&(s[n]=0)}let d=Br[n],f,p;if(d)return n===`$attrs`&&pt(e.attrs,`get`,``),d(e);if((f=c.__cssModules)&&(f=f[n]))return f;if(r!==t&&u(r,n))return s[n]=4,r[n];if(p=l.config.globalProperties,u(p,n))return p[n]},set({_:e},n,r){let{data:i,setupState:a,ctx:o}=e;return Vr(a,n)?(a[n]=r,!0):i!==t&&u(i,n)?(i[n]=r,!0):u(e.props,n)||n[0]===`$`&&n.slice(1)in e?!1:(o[n]=r,!0)},has({_:{data:e,setupState:n,accessCache:r,ctx:i,appContext:a,props:o,type:s}},c){let l;return!!(r[c]||e!==t&&c[0]!==`$`&&u(e,c)||Vr(n,c)||u(o,c)||u(i,c)||u(Br,c)||u(a.config.globalProperties,c)||(l=s.__cssModules)&&l[c])},defineProperty(e,t,n){return n.get==null?u(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}};function Ur(e){return d(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function Wr(e,t){return!e||!t?e||t:d(e)&&d(t)?e.concat(t):s({},Ur(e),Ur(t))}var Gr=!0;function Kr(e){let t=Xr(e),n=e.proxy,i=e.ctx;Gr=!1,t.beforeCreate&&Jr(t.beforeCreate,e,`bc`);let{data:a,computed:o,methods:s,watch:c,provide:l,inject:u,created:f,beforeMount:p,mounted:m,beforeUpdate:g,updated:_,activated:ee,deactivated:y,beforeDestroy:te,beforeUnmount:ne,destroyed:re,unmounted:ie,render:ae,renderTracked:oe,renderTriggered:se,errorCaptured:ce,serverPrefetch:le,expose:b,inheritAttrs:ue,components:de,directives:fe,filters:pe}=t;if(u&&qr(u,i,null),s)for(let e in s){let t=s[e];h(t)&&(i[e]=t.bind(n))}if(a){let t=a.call(n,n);v(t)&&(e.data=/* @__PURE__ */ Jt(t))}if(Gr=!0,o)for(let e in o){let t=o[e],a=R({get:h(t)?t.bind(n,n):h(t.get)?t.get.bind(n,n):r,set:!h(t)&&h(t.set)?t.set.bind(n):r});Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(c)for(let e in c)Yr(c[e],i,n,e);if(l){let e=h(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{qn(t,e[t])})}f&&Jr(f,e,`c`);function me(e,t){d(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(me(Sr,p),me(Cr,m),me(wr,g),me(Tr,_),me(gr,ee),me(_r,y),me(jr,ce),me(Ar,oe),me(kr,se),me(Er,ne),me(Dr,ie),me(Or,le),d(b)){if(b.length){let t=e.exposed||={};b.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={}}ae&&e.render===r&&(e.render=ae),ue!=null&&(e.inheritAttrs=ue),de&&(e.components=de),fe&&(e.directives=fe),le&&lr(e)}function qr(e,t,n=r){d(e)&&(e=ti(e));for(let n in e){let r=e[n],i;i=v(r)?`default`in r?Jn(r.from||n,r.default,!0):Jn(r.from||n):Jn(r),/* @__PURE__ */ on(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function Jr(e,t,n){Cn(d(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Yr(e,t,n,r){let i=r.includes(`.`)?nr(n,r):()=>n[r];if(g(e)){let n=t[e];h(n)&&$n(i,n)}else if(h(e))$n(i,e.bind(n));else if(v(e)){if(d(e))e.forEach(e=>Yr(e,t,n,r));else{let r=h(e.handler)?e.handler.bind(n):t[e.handler];h(r)&&$n(i,r,e)}}}function Xr(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=>Zr(c,e,o,!0)),Zr(c,t,o)),v(t)&&a.set(t,c),c}function Zr(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&Zr(e,a,n,!0),i&&i.forEach(t=>Zr(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=Qr[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var Qr={data:$r,props:ii,emits:ii,methods:ri,computed:ri,beforeCreate:ni,created:ni,beforeMount:ni,mounted:ni,beforeUpdate:ni,updated:ni,beforeDestroy:ni,beforeUnmount:ni,destroyed:ni,unmounted:ni,activated:ni,deactivated:ni,errorCaptured:ni,serverPrefetch:ni,components:ri,directives:ri,watch:ai,provide:$r,inject:ei};function $r(e,t){return t?e?function(){return s(h(e)?e.call(this,this):e,h(t)?t.call(this,this):t)}:t:e}function ei(e,t){return ri(ti(e),ti(t))}function ti(e){if(d(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ni(e,t){return e?[...new Set([].concat(e,t))]:t}function ri(e,t){return e?s(/* @__PURE__ */ Object.create(null),e,t):t}function ii(e,t){return e?d(e)&&d(t)?[.../* @__PURE__ */ new Set([...e,...t])]:s(/* @__PURE__ */ Object.create(null),Ur(e),Ur(t??{})):t}function ai(e,t){if(!e)return t;if(!t)return e;let n=s(/* @__PURE__ */ Object.create(null),e);for(let r in t)n[r]=ni(e[r],t[r]);return n}function oi(){return{app:null,config:{isNativeTag:i,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:/* @__PURE__ */ Object.create(null),optionsCache:/* @__PURE__ */ new WeakMap,propsCache:/* @__PURE__ */ new WeakMap,emitsCache:/* @__PURE__ */ new WeakMap}}var si=0;function ci(e,t){return function(n,r=null){h(n)||(n=s({},n)),r!=null&&!v(r)&&(r=null);let i=oi(),a=/* @__PURE__ */ new WeakSet,o=[],c=!1,l=i.app={_uid:si++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:Ha,get config(){return i.config},set config(e){},use(e,...t){return a.has(e)||(e&&h(e.install)?(a.add(e),e.install(l,...t)):h(e)&&(a.add(e),e(l,...t))),l},mixin(e){return i.mixins.includes(e)||i.mixins.push(e),l},component(e,t){return t?(i.components[e]=t,l):i.components[e]},directive(e,t){return t?(i.directives[e]=t,l):i.directives[e]},mount(a,o,s){if(!c){let u=l._ceVNode||F(n,r);return u.appContext=i,s===!0?s=`svg`:s===!1&&(s=void 0),o&&t?t(u,a):e(u,a,s),c=!0,l._container=a,a.__vue_app__=l,Ra(u.component)}},onUnmount(e){o.push(e)},unmount(){c&&(Cn(o,l._instance,16),e(null,l._container),delete l._container.__vue_app__)},provide(e,t){return i.provides[e]=t,l},runWithContext(e){let t=li;li=l;try{return e()}finally{li=t}}};return l}}var li=null;function ui(e,n,r=t){let i=Ta(),a=ce(n),o=b(n),s=di(e,a),c=pn((s,c)=>{let l,u=t,d;return Qn(()=>{let t=e[a];fe(l,t)&&(l=t,c())}),{get(){return s(),r.get?r.get(l):l},set(e){let s=r.set?r.set(e):e;if(!fe(s,l)&&!(u!==t&&fe(e,u)))return;let f=i.vnode.props,p=!!(f&&(n in f||a in f||o in f)&&(`onUpdate:${n}`in f||`onUpdate:${a}`in f||`onUpdate:${o}`in f));p||(l=e,c()),i.emit(`update:${n}`,s),fe(e,u)&&(fe(e,s)&&!fe(s,d)||p&&u!==t&&!fe(s,l))&&c(),u=e,d=s}}});return c[Symbol.iterator]=()=>{let e=0;return{next(){return e<2?{value:e++?s||t:c,done:!1}:{done:!0}}}},c}var di=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${ce(t)}Modifiers`]||e[`${b(t)}Modifiers`];function fi(e,n,...r){if(e.isUnmounted)return;let i=e.vnode.props||t,a=r,o=n.startsWith(`update:`),s=o&&di(i,n.slice(7));s&&(s.trim&&(a=r.map(e=>g(e)?e.trim():e)),s.number&&(a=a.map(he)));let c,l=i[c=de(n)]||i[c=de(ce(n))];!l&&o&&(l=i[c=de(b(n))]),l&&Cn(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,Cn(u,e,6,a)}}var pi=/* @__PURE__ */ new WeakMap;function mi(e,t,n=!1){let r=n?pi:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},c=!1;if(!h(e)){let r=e=>{let n=mi(e,t,!0);n&&(c=!0,s(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!c?(v(e)&&r.set(e,null),null):(d(a)?a.forEach(e=>o[e]=null):s(o,a),v(e)&&r.set(e,o),o)}function hi(e,t){return!e||!a(t)?!1:(t=t.slice(2),t=t===`Once`?t:t.replace(/Once$/,``),u(e,t[0].toLowerCase()+t.slice(1))||u(e,b(t))||u(e,t))}function gi(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:s,attrs:c,emit:l,render:u,renderCache:d,props:f,data:p,setupState:m,ctx:h,inheritAttrs:g}=e,_=Wn(e),v,ee;try{if(n.shapeFlag&4){let e=i||r,t=e;v=ga(u.call(t,e,d,f,m,p,h)),ee=c}else{let e=t;v=ga(e.length>1?e(f,{attrs:c,slots:s,emit:l}):e(f,null)),ee=t.props?c:_i(c)}}catch(t){ra.length=0,wn(t,e,1),v=F(ta)}let y=v;if(ee&&g!==!1){let e=Object.keys(ee),{shapeFlag:t}=y;e.length&&t&7&&(a&&e.some(o)&&(ee=vi(ee,a)),y=ha(y,ee,!1,!0))}return n.dirs&&(y=ha(y,null,!1,!0),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&cr(ir(y.type)&&sr(y)||y,n.transition),v=y,Wn(_),v}var _i=e=>{let t;for(let n in e)(n===`class`||n===`style`||a(n))&&((t||={})[n]=e[n]);return t},vi=(e,t)=>{let n={};for(let r in e)(!o(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function yi(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?bi(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(xi(o,r,n)&&!hi(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?!o||bi(r,o,l):!!o;return!1}function bi(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(xi(t,e,a)&&!hi(n,a))return!0}return!1}function xi(e,t,n){let r=e[n],i=t[n];return n===`style`&&v(r)&&v(i)?!je(r,i):r!==i}function Si({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 Ci={},wi=()=>Object.create(Ci),Ti=e=>Object.getPrototypeOf(e)===Ci;function Ei(e,t,n,r=!1){let i={},a=wi();e.propsDefaults=/* @__PURE__ */ Object.create(null),Oi(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);e.props=n?r?i:/* @__PURE__ */ Yt(i):e.type.props?i:a,e.attrs=a}function Di(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=/* @__PURE__ */ C(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(hi(e.emitsOptions,o))continue;let d=t[o];if(c){if(u(a,o))d!==a[o]&&(a[o]=d,l=!0);else{let t=ce(o);i[t]=ki(c,s,t,d,e,!1)}}else d!==a[o]&&(a[o]=d,l=!0)}}}else{Oi(e,t,i,a)&&(l=!0);let r;for(let a in s)(!t||!u(t,a)&&((r=b(a))===a||!u(t,r)))&&(c?n&&(n[a]!==void 0||n[r]!==void 0)&&(i[a]=ki(c,s,a,void 0,e,!0)):delete i[a]);if(a!==s)for(let e in a)(!t||!u(t,e))&&(delete a[e],l=!0)}l&&mt(e.attrs,`set`,``)}function Oi(e,n,r,i){let[a,o]=e.propsOptions,s=!1,c;if(n)for(let t in n){if(ae(t))continue;let l=n[t],d;a&&u(a,d=ce(t))?!o||!o.includes(d)?r[d]=l:(c||={})[d]=l:hi(e.emitsOptions,t)||(!(t in i)||l!==i[t])&&(i[t]=l,s=!0)}if(o){let n=/* @__PURE__ */ C(r),i=c||t;for(let t=0;t<o.length;t++){let s=o[t];r[s]=ki(a,n,s,i[s],e,!u(i,s))}}return s}function ki(e,t,n,r,i,a){let o=e[n];if(o!=null){let e=u(o,`default`);if(e&&r===void 0){let e=o.default;if(o.type!==Function&&!o.skipFactory&&h(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let o=Oa(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===b(n))&&(r=!0))}return r}var Ai=/* @__PURE__ */ new WeakMap;function ji(e,r,i=!1){let a=i?Ai:r.propsCache,o=a.get(e);if(o)return o;let c=e.props,l={},f=[],p=!1;if(!h(e)){let t=e=>{p=!0;let[t,n]=ji(e,r,!0);s(l,t),n&&f.push(...n)};!i&&r.mixins.length&&r.mixins.forEach(t),e.extends&&t(e.extends),e.mixins&&e.mixins.forEach(t)}if(!c&&!p)return v(e)&&a.set(e,n),n;if(d(c))for(let e=0;e<c.length;e++){let n=ce(c[e]);Mi(n)&&(l[n]=t)}else if(c)for(let e in c){let t=ce(e);if(Mi(t)){let n=c[e],r=l[t]=d(n)||h(n)?{type:n}:s({},n),i=r.type,a=!1,o=!0;if(d(i))for(let e=0;e<i.length;++e){let t=i[e],n=h(t)&&t.name;if(n===`Boolean`){a=!0;break}n===`String`&&(o=!1)}else a=h(i)&&i.name===`Boolean`;r[0]=a,r[1]=o,(a||u(r,`default`))&&f.push(t)}}let m=[l,f];return v(e)&&a.set(e,m),m}function Mi(e){return e[0]!==`$`&&!ae(e)}var Ni=e=>e===`_`||e===`_ctx`||e===`$stable`,Pi=e=>d(e)?e.map(ga):[ga(e)],Fi=(e,t,n)=>{if(t._n)return t;let r=E((...e)=>Pi(t(...e)),n);return r._c=!1,r},Ii=(e,t,n)=>{let r=e._ctx;for(let n in e){if(Ni(n))continue;let i=e[n];if(h(i))t[n]=Fi(n,i,r);else if(i!=null){let e=Pi(i);t[n]=()=>e}}},Li=(e,t)=>{let n=Pi(t);e.slots.default=()=>n},Ri=(e,t,n)=>{for(let r in t)(n||!Ni(r))&&(e[r]=t[r])},zi=(e,t,n)=>{let r=e.slots=wi();if(e.vnode.shapeFlag&32){let e=t._;e?(Ri(r,t,n),n&&me(r,`_`,e,!0)):Ii(t,r)}else t&&Li(e,t)},Bi=(e,n,r)=>{let{vnode:i,slots:a}=e,o=!0,s=t;if(i.shapeFlag&32){let e=n._;e?r&&e===1?o=!1:Ri(a,n,r):(o=!n.$stable,Ii(n,a)),s=n}else n&&(Li(e,n),s={default:1});if(o)for(let e in a)!Ni(e)&&s[e]==null&&delete a[e]},Vi=$i;function Hi(e){return Ui(e)}function Ui(e,i){let a=ve();a.__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=r,insertStaticContent:_}=e,v=(e,t,r,i=null,a=null,o=null,s=void 0,c=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!ua(e,t)&&(i=De(e),Se(e,a,o,!0),e=null),t.patchFlag===-2&&(l=!1,t.dynamicChildren=null),t.dynamicChildren&&e&&e.dynamicChildren&&e.dynamicChildren.hasOnce&&(t.dynamicChildren===n&&(t.dynamicChildren=[]),t.dynamicChildren.hasOnce=!0);let{type:u,ref:d,shapeFlag:f}=t;switch(u){case ea:ee(e,t,r,i);break;case ta:y(e,t,r,i);break;case na:e??te(t,r,i,s);break;case A:de(e,t,r,i,a,o,s,c,l);break;default:f&1?ie(e,t,r,i,a,o,s,c,l):f&6?fe(e,t,r,i,a,o,s,c,l):(f&64||f&128)&&u.process(e,t,r,i,a,o,s,c,l,Ae)}d!=null&&a?fr(d,e&&e.ref,o,t||e,!t):d==null&&e&&e.ref!=null&&fr(e.ref,null,o,e,!0)},ee=(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)}},y=(e,t,n,r)=>{e==null?o(t.el=d(t.children||``),n,r):t.el=e.el},te=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},ne=({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)},re=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),s(e),e=n;s(t)},ie=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)oe(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),le(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},oe=(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&&ce(e.children,d,null,r,i,Wi(e,a),s,u),_&&Kn(e,null,r,`created`),se(d,e,e.scopeId,s,r),m){for(let e in m)e!==`value`&&!ae(e)&&c(d,e,null,m[e],a,r);`value`in m&&c(d,`value`,null,m.value,a),(f=m.onVnodeBeforeMount)&&ba(f,r,e)}_&&Kn(e,null,r,`beforeMount`);let v=Ki(i,g);v&&g.beforeEnter(d),o(d,t,n),((f=m&&m.onVnodeMounted)||v||_)&&Vi(()=>{try{f&&ba(f,r,e),v&&g.enter(d),_&&Kn(e,null,r,`mounted`)}finally{}},i)},se=(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||Qi(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;se(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},ce=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++){let c=e[l]=s?_a(e[l]):ga(e[l]);v(null,c,t,n,r,i,a,o,s)}},le=(e,n,r,i,a,o,s)=>{let l=n.el=e.el,{patchFlag:u,dynamicChildren:d,dirs:f}=n;u|=e.patchFlag&16;let m=e.props||t,h=n.props||t,g;if(r&&Gi(r,!1),(g=h.onVnodeBeforeUpdate)&&ba(g,r,n,e),f&&Kn(n,e,r,`beforeUpdate`),r&&Gi(r,!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?b(e.dynamicChildren,d,l,r,i,Wi(n,a),o):s||x(e,n,l,null,r,i,Wi(n,a),o,!1),u>0){if(u&16)ue(l,m,h,r,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=n.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t],i=m[n],o=h[n];(o!==i||n===`value`)&&c(l,n,i,o,a,r)}}u&1&&e.children!==n.children&&p(l,n.children)}else!s&&d==null&&ue(l,m,h,r,a);((g=h.onVnodeUpdated)||f)&&Vi(()=>{g&&ba(g,r,n,e),f&&Kn(n,e,r,`updated`)},i)},b=(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&&(c.type===A||!ua(c,l)||c.shapeFlag&198)?m(c.el):n;v(c,l,u,null,r,i,a,o,!0)}},ue=(e,n,r,i,a)=>{if(n!==r){if(n!==t)for(let t in n)!ae(t)&&!(t in r)&&c(e,t,n[t],null,a,i);for(let t in r){if(ae(t))continue;let o=r[t],s=n[t];o!==s&&t!==`value`&&c(e,t,s,o,a,i)}`value`in r&&c(e,`value`,n.value,r.value,a)}},de=(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),ce(t.children||[],n,f,i,a,s,c,l)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(b(e.dynamicChildren,m,n,i,a,s,c),(t.key!=null||i&&t===i.subTree)&&qi(e,t,!0)):x(e,t,n,f,i,a,s,c,l)},fe=(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):me(t,n,r,i,a,o,c):he(e,t,c)},me=(e,t,n,r,i,a,o)=>{let s=e.component=Ca(e,r,i);if(hr(e)&&(s.ctx.renderer=Ae),Ma(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,ge,o),!e.el){let r=s.subTree=F(ta);y(null,r,t,n),e.placeholder=r.el}}else ge(s,e,t,n,i,a,o)},he=(e,t,n)=>{let r=t.component=e.component;if(yi(e,t,n)){if(r.asyncDep&&!r.asyncResolved){t.el=e.el,_e(r,t,n);return}r.next=t,r.update()}else t.el=e.el,r.vnode=t},ge=(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=Yi(e);if(n){t&&(t.el=c.el,_e(e,t,o)),n.asyncDep.then(()=>{Vi(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;Gi(e,!1),t?(t.el=c.el,_e(e,t,o)):t=c,n&&pe(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&ba(d,s,t,c),Gi(e,!0);let f=gi(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),De(p),e,i,a),t.el=f.el,u===null&&Si(e,f.el),r&&Vi(r,i),(d=t.props&&t.props.onVnodeUpdated)&&Vi(()=>ba(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=mr(t);if(Gi(e,!1),l&&pe(l),!m&&(o=c&&c.onVnodeBeforeMount)&&ba(o,d,t),Gi(e,!0),s&&Me){let t=()=>{e.subTree=gi(e),Me(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=gi(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&Vi(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;Vi(()=>ba(o,d,e),i)}(t.shapeFlag&256||d&&mr(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&Vi(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new Ve(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=()=>Fn(u),Gi(e,!0),l()},_e=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,Di(e,t.props,r,n),Bi(e,t.children,n),nt(),Rn(e),rt()},x=(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){be(l,d,n,r,i,a,o,s,c);return}if(f&256){ye(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&Ee(l,i,a),d!==l&&p(n,d)):u&16?m&16?be(l,d,n,r,i,a,o,s,c):Ee(l,i,a,!0):(u&8&&p(n,``),m&16&&ce(d,n,r,i,a,o,s,c))},ye=(e,t,r,i,a,o,s,c,l)=>{e||=n,t||=n;let u=e.length,d=t.length,f=Math.min(u,d),p=0;for(;p<f;p++){let n=t[p]=l?_a(t[p]):ga(t[p]);v(e[p],n,r,null,a,o,s,c,l)}u>d?Ee(e,a,o,!0,!1,f):ce(t,r,i,a,o,s,c,l,f)},be=(e,t,r,i,a,o,s,c,l)=>{let u=0,d=t.length,f=e.length-1,p=d-1;for(;u<=f&&u<=p;){let n=e[u],i=t[u]=l?_a(t[u]):ga(t[u]);if(ua(n,i))v(n,i,r,null,a,o,s,c,l);else break;u++}for(;u<=f&&u<=p;){let n=e[f],i=t[p]=l?_a(t[p]):ga(t[p]);if(ua(n,i))v(n,i,r,null,a,o,s,c,l);else break;f--,p--}if(u>f){if(u<=p){let e=p+1,n=e<d?t[e].el:i;for(;u<=p;)v(null,t[u]=l?_a(t[u]):ga(t[u]),r,n,a,o,s,c,l),u++}}else if(u>p)for(;u<=f;)Se(e[u],a,o,!0),u++;else{let m=u,h=u,g=/* @__PURE__ */ new Map;for(u=h;u<=p;u++){let e=t[u]=l?_a(t[u]):ga(t[u]);e.key!=null&&g.set(e.key,u)}let _,ee=0,y=p-h+1,te=!1,ne=0,re=Array(y);for(u=0;u<y;u++)re[u]=0;for(u=m;u<=f;u++){let n=e[u];if(ee>=y){Se(n,a,o,!0);continue}let i;if(n.key!=null)i=g.get(n.key);else for(_=h;_<=p;_++)if(re[_-h]===0&&ua(n,t[_])){i=_;break}i===void 0?Se(n,a,o,!0):(re[i-h]=u+1,i>=ne?ne=i:te=!0,v(n,t[i],r,null,a,o,s,c,l),ee++)}let ie=te?Ji(re):n;for(_=ie.length-1,u=y-1;u>=0;u--){let e=h+u,n=t[e],f=t[e+1],p=e+1<d?f.el||Zi(f):i;re[u]===0?v(null,n,r,p,a,o,s,c,l):te&&(_<0||u!==ie[_]?xe(n,r,p,2):_--)}}},xe=(e,t,n,r,i=null)=>{let{el:a,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){xe(e.component.subTree,t,n,r);return}if(d&128){e.suspense.move(t,n,r);return}if(d&64){c.move(e,t,n,Ae);return}if(c===A){o(a,t,n);for(let e=0;e<u.length;e++)xe(u[e],t,n,r);o(e.anchor,t,n);return}if(c===na){ne(e,t,n);return}if(r!==2&&d&1&&l){if(r===0)l.persisted&&!a[ar]?o(a,t,n):(l.beforeEnter(a),o(a,t,n),Vi(()=>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[ar];a._isLeaving&&a[ar](!0),l.persisted&&!e?u():r(a,()=>{u(),c&&c()})};i?i(a,u,d):d()}}else o(a,t,n)},Se=(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&&(nt(),fr(s,null,n,e,!0),rt()),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=!mr(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&ba(_,t,e),u&6)Te(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&Kn(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,Ae,r):l&&!l.hasOnce&&(a!==A||d>0&&d&64)?Ee(l,t,n,!1,!0):(a===A&&d&384||!i&&u&16)&&Ee(c,t,n),r&&Ce(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&Vi(()=>{_&&ba(_,t,e),h&&Kn(e,null,t,`unmounted`),v&&(e.el=null)},n)},Ce=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===A){we(n,r);return}if(t===na){re(e),i&&!i.persisted&&i.afterLeave&&i.afterLeave();return}let a=()=>{s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(e.shapeFlag&1&&i&&!i.persisted){let{leave:t,delayLeave:r}=i,o=()=>t(n,a);r?r(e.el,a,o):o()}else a()},we=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},Te=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;Xi(c),Xi(l),r&&pe(r),i.stop(),a?(a.flags|=8,Se(o,e,t,n)):e.vnode.el&&o&&(o.transition=e.vnode.transition,Se(o,e,t,n)),s&&Vi(s,t),Vi(()=>{e.isUnmounted=!0},t)},Ee=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)Se(e[o],t,n,r,i)},De=e=>{if(e.shapeFlag&6)return De(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[rr];return n?h(n):t},Oe=!1,ke=(e,t,n)=>{let r;e==null?t._vnode&&(Se(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,Oe||=(Oe=!0,Rn(r),zn(),!1)},Ae={p:v,um:Se,m:xe,r:Ce,mt:me,mc:ce,pc:x,pbc:b,n:De,o:e},je,Me;return i&&([je,Me]=i(Ae)),{render:ke,hydrate:je,createApp:ci(ke,je)}}function Wi({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 Gi({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ki(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function qi(e,t,n=!1){let r=e.children,i=t.children;if(d(r)&&d(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]=_a(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&qi(t,a)),a.type===ea&&(a.patchFlag===-1&&(a=i[e]=_a(a)),a.el=t.el),a.type===ta&&!a.el&&(a.el=t.el)}}function Ji(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 Yi(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Yi(t)}function Xi(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Zi(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?Zi(t.subTree):null}var Qi=e=>e.__isSuspense;function $i(e,t){t&&t.pendingBranch?d(e)?t.effects.push(...e):t.effects.push(e):Ln(e)}var A=/* @__PURE__ */ Symbol.for(`v-fgt`),ea=/* @__PURE__ */ Symbol.for(`v-txt`),ta=/* @__PURE__ */ Symbol.for(`v-cmt`),na=/* @__PURE__ */ Symbol.for(`v-stc`),ra=[],ia=null;function j(e=!1){ra.push(ia=e?null:[])}function aa(){ra.pop(),ia=ra[ra.length-1]||null}var oa=1;function sa(e,t=!1){oa+=e,e<0&&ia&&t&&(ia.hasOnce=!0)}function ca(e){return e.dynamicChildren=oa>0?ia||n:null,aa(),oa>0&&ia&&ia.push(e),e}function M(e,t,n,r,i,a){return ca(P(e,t,n,r,i,a,!0))}function N(e,t,n,r,i){return ca(F(e,t,n,r,i,!0))}function la(e){return e?e.__v_isVNode===!0:!1}function ua(e,t){return e.type===t.type&&e.key===t.key}var da=({key:e})=>e??null,fa=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:g(e)||/* @__PURE__ */ on(e)||h(e)?{i:Hn,r:e,k:t,f:!!n}:e);function P(e,t=null,n=null,r=0,i=null,a=e===A?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&da(t),ref:t&&fa(t),scopeId:Un,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:Hn};return s?(va(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=g(n)?8:16),oa>0&&!o&&ia&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&ia.push(c),c}var F=pa;function pa(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===Nr)&&(e=ta),la(e)){let r=ha(e,t,!0);return n&&va(r,n),oa>0&&!a&&ia&&(r.shapeFlag&6?ia[ia.indexOf(e)]=r:ia.push(r)),r.patchFlag=-2,r}if(Ba(e)&&(e=e.__vccOpts),t){t=ma(t);let{class:e,style:n}=t;e&&!g(e)&&(t.class=Ce(e)),v(n)&&(/* @__PURE__ */ tn(n)&&!d(n)&&(n=s({},n)),t.style=x(n))}let o=g(e)?1:Qi(e)?128:ir(e)?64:v(e)?4:h(e)?2:0;return P(e,t,n,r,i,o,a,!0)}function ma(e){return e?/* @__PURE__ */ tn(e)||Ti(e)?s({},e):e:null}function ha(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?ya(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&da(l),ref:t&&t.ref?n&&a?d(a)?a.concat(fa(t)):[a,fa(t)]:fa(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!==A?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&&ha(e.ssContent),ssFallback:e.ssFallback&&ha(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return c&&r&&cr(u,c.clone(u)),u}function I(e=` `,t=0){return F(ea,null,e,t)}function L(e=``,t=!1){return t?(j(),N(ta,null,e)):F(ta,null,e)}function ga(e){return e==null||typeof e==`boolean`?F(ta):d(e)?F(A,null,e.slice()):la(e)?_a(e):F(ea,null,String(e))}function _a(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ha(e)}function va(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(d(t))n=16;else if(typeof t==`object`){if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),va(e,n()),n._c&&(n._d=!0));return}{n=32;let r=t._;!r&&!Ti(t)?t._ctx=Hn:r===3&&Hn&&(Hn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}}else if(h(t)){if(r&65){va(e,{default:t});return}t={default:t,_ctx:Hn},n=32}else t=String(t),r&64?(n=16,t=[I(t)]):n=8;e.children=t,e.shapeFlag|=n}function ya(...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=Ce([t.class,r.class]));else if(e===`style`)t.style=x([t.style,r.style]);else if(a(e)){let n=t[e],i=r[e];i&&n!==i&&!(d(n)&&n.includes(i))?t[e]=n?[].concat(n,i):i:i==null&&n==null&&!o(e)&&(t[e]=i)}else e!==``&&(t[e]=r[e])}return t}function ba(e,t,n,r=null){Cn(e,t,7,[n,r])}var xa=oi(),Sa=0;function Ca(e,n,r){let i=e.type,a=(n?n.appContext:e.appContext)||xa,o={uid:Sa++,vnode:e,type:i,parent:n,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Le(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:n?n.provides:Object.create(a.provides),ids:n?n.ids:[``,0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ji(i,a),emitsOptions:mi(i,a),emit:null,emitted:null,propsDefaults:t,inheritAttrs:i.inheritAttrs,ctx:t,data:t,props:t,attrs:t,slots:t,refs:t,setupState:t,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=n?n.root:o,o.emit=fi.bind(null,o),e.ce&&e.ce(o),o}var wa=null,Ta=()=>wa||Hn,Ea,Da;{let e=ve(),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)}};Ea=t(`__VUE_INSTANCE_SETTERS__`,e=>wa=e),Da=t(`__VUE_SSR_SETTERS__`,e=>ja=e)}var Oa=e=>{let t=wa;return Ea(e),e.scope.on(),()=>{e.scope.off(),Ea(t)}},ka=()=>{wa&&wa.scope.off(),Ea(null)};function Aa(e){return e.vnode.shapeFlag&4}var ja=!1;function Ma(e,t=!1,n=!1){t&&Da(t);let{props:r,children:i}=e.vnode,a=Aa(e);Ei(e,r,a,t),zi(e,i,n||t);let o=a?Na(e,t):void 0;return t&&Da(!1),o}function Na(e,t){let n=e.type;e.accessCache=/* @__PURE__ */ Object.create(null),e.proxy=new Proxy(e.ctx,Hr);let{setup:r}=n;if(r){nt();let n=e.setupContext=r.length>1?La(e):null,i=Oa(e),a=Sn(r,e,0,[e.props,n]),o=ee(a);if(rt(),i(),(o||e.sp)&&!mr(e)&&lr(e),o){if(a.then(ka,ka),t)return a.then(n=>{Da(!0);try{Pa(e,n,t)}finally{Da(!1)}}).catch(t=>{wn(t,e,0)});e.asyncDep=a}else Pa(e,a,t)}else Fa(e,t)}function Pa(e,t,n){h(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:v(t)&&(e.setupState=dn(t)),Fa(e,n)}function Fa(e,t,n){let i=e.type;e.render||=i.render||r;{let t=Oa(e);nt();try{Kr(e)}finally{rt(),t()}}}var Ia={get(e,t){return pt(e,`get`,``),e[t]}};function La(e){return{attrs:new Proxy(e.attrs,Ia),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Ra(e){return e.exposed?e.exposeProxy||=new Proxy(dn(nn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Br)return Br[n](e)},has(e,t){return t in e||t in Br}}):e.proxy}function za(e,t=!0){return h(e)?e.displayName||e.name:e.name||t&&e.__name}function Ba(e){return h(e)&&`__vccOpts`in e}var R=(e,t)=>/* @__PURE__ */ hn(e,t,ja);function Va(e,t,n){try{sa(-1);let r=arguments.length;return r===2?v(t)&&!d(t)?la(t)?F(e,null,[t]):F(e,t):F(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&la(n)&&(n=[n]),F(e,t,n))}finally{sa(1)}}var Ha=`3.5.43`,Ua=void 0,Wa=typeof window<`u`&&window.trustedTypes;if(Wa)try{Ua=/* @__PURE__ */ Wa.createPolicy(`vue`,{createHTML:e=>e})}catch{}var Ga=Ua?e=>Ua.createHTML(e):e=>e,Ka=`http://www.w3.org/2000/svg`,qa=`http://www.w3.org/1998/Math/MathML`,Ja=typeof document<`u`?document:null,Ya=Ja&&/* @__PURE__ */ Ja.createElement(`template`),Xa={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`?Ja.createElementNS(Ka,e):t===`mathml`?Ja.createElementNS(qa,e):n?Ja.createElement(e,{is:n}):Ja.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>Ja.createTextNode(e),createComment:e=>Ja.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ja.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{Ya.innerHTML=Ga(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=Ya.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]}},Za=/* @__PURE__ */ Symbol(`_vtc`);function Qa(e,t,n){let r=e[Za];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var $a=/* @__PURE__ */ Symbol(`_vod`),eo=/* @__PURE__ */ Symbol(`_vsh`),to={name:`show`,beforeMount(e,{value:t},{transition:n}){e[$a]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):no(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),no(e,!0),r.enter(e)):r.leave(e,()=>{no(e,!1)}):no(e,t))},beforeUnmount(e,{value:t}){no(e,t)}};function no(e,t){e.style.display=t?e[$a]:`none`,e[eo]=!t}var ro=/* @__PURE__ */ Symbol(``),io=/(?:^|;)\s*display\s*:/;function ao(e,t,n){let r=e.style,i=g(n),a=!1;if(n&&!i){if(t){if(g(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??so(r,t,``)}else for(let e in t)n[e]??so(r,e,``)}for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?so(r,i,``):fo(e,i,!g(t)&&t?t[i]:void 0,o)||so(r,i,o)}}else if(i){if(t!==n){let e=r[ro];e&&(n+=`;`+e),r.cssText=n,a=io.test(n)}}else t&&e.removeAttribute(`style`);$a in e&&(e[$a]=a?r.display:``,e[eo]&&(r.display=`none`))}var oo=/\s*!important$/;function so(e,t,n){if(d(n))n.forEach(n=>so(e,t,n));else if(n??=``,t.startsWith(`--`))oo.test(n)?e.setProperty(t,n.replace(oo,``),`important`):e.setProperty(t,n);else{let r=uo(e,t);oo.test(n)?e.setProperty(b(r),n.replace(oo,``),`important`):e[r]=n}}var co=[`Webkit`,`Moz`,`ms`],lo={};function uo(e,t){let n=lo[t];if(n)return n;let r=ce(t);if(r!==`filter`&&r in e)return lo[t]=r;r=ue(r);for(let n=0;n<co.length;n++){let i=co[n]+r;if(i in e)return lo[t]=i}return t}function fo(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&g(r)&&n===r}var po=`http://www.w3.org/1999/xlink`;function mo(e,t,n,r,i,a=Te(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(po,t.slice(6,t.length)):e.setAttributeNS(po,t,n):n==null||a&&!Ee(n)?e.removeAttribute(t):e.setAttribute(t,a?``:_(n)?String(n):n)}function ho(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?Ga(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 go(e,t,n,r){e.addEventListener(t,n,r)}function _o(e,t,n,r){e.removeEventListener(t,n,r)}var vo=/* @__PURE__ */ Symbol(`_vei`);function yo(e,t,n,r,i=null){let a=e[vo]||(e[vo]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=So(t);r?go(e,n,a[t]=Eo(r,i),s):o&&(_o(e,n,o,s),a[t]=void 0)}}var bo=/(Once|Passive|Capture)$/,xo=/^on:?(?:Once|Passive|Capture)$/;function So(e){let t,n;for(;(n=e.match(bo))&&!xo.test(e);)t||={},e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===`:`?e.slice(3):b(e.slice(2)),t]}var Co=0,wo=/* @__PURE__ */ Promise.resolve(),To=()=>Co||=(wo.then(()=>Co=0),Date.now());function Eo(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(d(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&&Cn(e,t,5,a)}}else Cn(r,t,5,[e])};return n.value=e,n.attached=To(),n}var Do=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Oo=(e,t,n,r,i,s)=>{let c=i===`svg`;t===`class`?Qa(e,r,c):t===`style`?ao(e,n,r):a(t)?o(t)||yo(e,t,n,r,s):(t[0]===`.`?(t=t.slice(1),1):t[0]===`^`?(t=t.slice(1),0):ko(e,t,r,c))?(ho(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&mo(e,t,r,c,s,t!==`value`)):e._isVueCE&&(Ao(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!g(r)))?ho(e,ce(t),r,s,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),mo(e,t,r,c))};function ko(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&Do(t)&&h(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 Do(t)&&g(n)?!1:t in e}function Ao(e,t){let n=e._def.props;if(!n)return!1;let r=ce(t);return Array.isArray(n)?n.some(e=>ce(e)===r):Object.keys(n).some(e=>ce(e)===r)}var jo={};// @__NO_SIDE_EFFECTS__
16
+ function Mo(e,t,n){let r=/* @__PURE__ */ D(e,t);re(r)&&(r=s({},r,t));class i extends Po{constructor(e){super(r,e,n)}}return i.def=r,i}var No=typeof HTMLElement<`u`?HTMLElement:class{},Po=class e extends No{constructor(e,t={},n=os){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=/* @__PURE__ */ new WeakSet,this._styleAnchors=/* @__PURE__ */ new WeakMap,this._ob=null,this.shadowRoot&&n!==os?this._root=this.shadowRoot:e.shadowRoot===!1?this._root=this:(this.attachShadow(s({},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,Nn(()=>{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&&!d(n))for(let e in n){let t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=ge(this._props[e])),(i||=/* @__PURE__ */ Object.create(null))[ce(e)]=!0)}this._numberProps=i,this._resolveProps(e),this.shadowRoot&&this._applyStyles(r),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)u(this,e)||Object.defineProperty(this,e,{get:()=>T(t[e])})}_resolveProps(e){let{props:t}=e,n=d(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(ce))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):jo,r=ce(e);t&&this._numberProps&&this._numberProps[r]&&(n=ge(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===jo?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(b(e),``):typeof t==`string`||typeof t==`number`?this.setAttribute(b(e),t+``):t||this.removeAttribute(b(e)),n&&n.observe(this,{attributes:!0})}}_update(){let e=this._createVNode();this._app&&(e.appContext=this._app._context),as(e,this._root)}_createVNode(){let e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));let t=F(this._def,s(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,re(t[0])?s({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),b(e)!==e&&t(b(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=/* @__PURE__ */ 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){}},Fo=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return d(t)?e=>pe(t,e):t};function Io(e){e.target.composing=!0}function Lo(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var Ro=/* @__PURE__ */ Symbol(`_assign`),zo=/* @__PURE__ */ Symbol(`_initialValue`);function Bo(e,t,n){return t&&(e=e.trim()),n&&(e=he(e)),e}var Vo={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e.parentNode&&(e.type===`text`?e[zo]=e.defaultValue.replace(/[\r\n]/g,``):e.type===`textarea`&&(e[zo]=e.defaultValue.replace(/\r\n?/g,`
17
17
  `))),e[Ro]=Fo(i);let a=r||i.props&&i.props.type===`number`;go(e,t?`change`:`input`,t=>{t.target.composing||e[Ro](Bo(e.value,n,a))}),(n||a)&&go(e,`change`,()=>{e.value=Bo(e.value,n,a)}),t||(go(e,`compositionstart`,Io),go(e,`compositionend`,Lo),go(e,`change`,Lo))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){let i=t??``,a=e[zo];delete e[zo],a!==void 0&&(e.type===`text`||e.type===`textarea`)&&e.value!==a?e[Ro](Bo(e.value,n,r)):e.value=i},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[Ro]=Fo(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?he(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)}},Ho={deep:!0,created(e,t,n){e[Ro]=Fo(n),go(e,`change`,()=>{let t=e._modelValue,n=Jo(e),r=e.checked,i=e[Ro];if(d(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(p(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(Yo(e,r))})},mounted:Uo,beforeUpdate(e,t,n){e[Ro]=Fo(n),Uo(e,t,n)}};function Uo(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(d(t))i=Me(t,r.props.value)>-1;else if(p(t))i=t.has(r.props.value);else{if(t===n)return;i=je(t,Yo(e,!0))}e.checked!==i&&(e.checked=i)}var Wo={created(e,{value:t},n){e.checked=je(t,n.props.value),e[Ro]=Fo(n),go(e,`change`,()=>{e[Ro](Jo(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Ro]=Fo(r),t!==n&&(e.checked=je(t,r.props.value))}},Go={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,go(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?he(Jo(e)):Jo(e)),r=e.multiple,i=r?p(e._modelValue)?new Set(t):t:t[0],a=e._pendingValue=[r,r?d(i)?t.slice():t:i];try{e[Ro](i)}finally{Nn(()=>{e._pendingValue===a&&(e._pendingValue=void 0)})}}),e[Ro]=Fo(r)},mounted(e,{value:t}){qo(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[Ro]=Fo(n)},updated(e,{value:t}){let n=e._pendingValue;e._pendingValue=void 0,(!n||n[0]!==e.multiple||!Ko(t,n[1],n[0]))&&qo(e,t)}};function Ko(e,t,n){if(!n||d(e))return je(e,t);if(p(e)){if(e.size!==t.length)return!1;for(let n of t)if(!e.has(n))return!1;return!0}return!1}function qo(e,t){let n=e.multiple,r=d(t);if(!n||r||p(t)){for(let i=0,a=e.options.length;i<a;i++){let a=e.options[i],o=Jo(a);if(n){if(r){let e=typeof o;a.selected=e===`string`||e===`number`?t.some(e=>String(e)===String(o)):Me(t,o)>-1}else a.selected=t.has(o)}else if(je(Jo(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Jo(e){return`_value`in e?e._value:e.value}function Yo(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var Xo={created(e,t,n){Qo(e,t,n,null,`created`)},mounted(e,t,n){Qo(e,t,n,null,`mounted`)},beforeUpdate(e,t,n,r){Qo(e,t,n,r,`beforeUpdate`)},updated(e,t,n,r){Qo(e,t,n,r,`updated`)}};function Zo(e,t){switch(e){case`SELECT`:return Go;case`TEXTAREA`:return Vo;default:switch(t){case`checkbox`:return Ho;case`radio`:return Wo;default:return Vo}}}function Qo(e,t,n,r,i){let a=Zo(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}var $o=[`ctrl`,`shift`,`alt`,`meta`],es={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)=>$o.some(n=>e[`${n}Key`]&&!t.includes(n))},ts=(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=es[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},ns=/* @__PURE__ */ s({patchProp:Oo},Xa),rs;function is(){return rs||=Hi(ns)}var as=((...e)=>{is().render(...e)}),os=((...e)=>{let t=is().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=cs(e);if(!r)return;let i=t._component;!h(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,ss(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function ss(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function cs(e){return g(e)?document.querySelector(e):e}var ls=[`heading`,`text`,`image`,`button`,`divider`,`video`,`shape`,`icon`,`navbar`,`gallery`,`slider`,`box`,`input`,`textarea`,`select`,`checkbox`],us=new Set(ls),ds=e=>us.has(e),fs=e=>`title`in e;function ps(e){return[...e.sections,...e.modals??[]]}function ms(e,t){return ps(e).find(e=>e.id===t)}function hs(e,t){return t===`desktop`?e.layout.desktop:e.layout.mobile??e.layout.desktop}function gs(e,t,n){t===`desktop`?e.layout.desktop=n:e.layout.mobile=n}function _s(e,t){return t===`desktop`?e.height.desktop:e.height.mobile}var vs=e=>e.elements.some(e=>!e.layout.mobile);function ys(e){return`${e}-${Math.random().toString(36).slice(2,9)}`}function bs(e,t=24){let n=xs(e);return{...n,id:ys(n.type),layout:{...n.layout,desktop:{...n.layout.desktop,y:n.layout.desktop.y+t}}}}function xs(e){return JSON.parse(JSON.stringify(e))}function Ss(){return{id:ys(`section`),height:{desktop:520,mobile:560},background:{type:`color`,color:`background`,overlay:0},elements:[]}}var Cs=[{key:`sm`,width:420},{key:`md`,width:560},{key:`lg`,width:760},{key:`xl`,width:960},{key:`full`,width:1200}];function ws(e){return{id:ys(`modal`),title:e,size:`md`,show_title:!0,width:Cs[1].width,height:{desktop:320,mobile:420},background:{type:`color`,color:`background`},elements:[]}}var Ts=[`nw`,`n`,`ne`,`e`,`se`,`s`,`sw`,`w`],Es=[`left`,`hcenter`,`right`,`top`,`vmiddle`,`bottom`],Ds=(e,t,n)=>Math.min(n,Math.max(t,e)),Os=(e,t=4)=>Math.round(e/t)*t,ks=e=>({x:Ds(e.x,-10,110),y:Ds(e.y,-400,3e3),w:Ds(e.w,.5,100),h:Ds(e.h,1,3e3)});function As(e,t,n,r){let i=e=>e/r*100,a={...e};return n===null?(a.x=Os(e.x+i(t.x),.5),a.y=Os(e.y+t.y)):(n.includes(`e`)&&(a.w=e.w+i(t.x)),n.includes(`s`)&&(a.h=Os(e.h+t.y)),n.includes(`w`)&&(a.x=Os(e.x+i(t.x),.5),a.w=e.w-i(t.x)),n.includes(`n`)&&(a.y=Os(e.y+t.y),a.h=Os(e.h-t.y)),a.w=Os(a.w,.5)),ks(a)}function js(e,t,n){let r=[0,t/2,t],i=[0,n/2,n];for(let n of e){let e=n.x/100*t,a=n.w/100*t;r.push(e,e+a/2,e+a),i.push(n.y,n.y+n.h/2,n.y+n.h)}return{x:r,y:i}}function Ms(e,t,n){let r=null;for(let i of e)for(let e of t){let t=e-i;Math.abs(t)<=n&&(!r||Math.abs(t)<Math.abs(r.shift))&&(r={shift:t,line:e})}return r}function Ns(e,t,n,r,i){let a={...e},o=e.x/100*n,s=e.w/100*n,c={x:[],y:[]},l=i?i.includes(`e`)?[o+s]:i.includes(`w`)?[o]:[]:[o,o+s/2,o+s],u=i?i.includes(`s`)?[e.y+e.h]:i.includes(`n`)?[e.y]:[]:[e.y,e.y+e.h/2,e.y+e.h],d=Ms(l,t.x,r.x),f=Ms(u,t.y,r.y);if(d){let e=d.shift/n*100;c.x.push(d.line),i?i.includes(`e`)?a.w+=e:(a.x+=e,a.w-=e):a.x+=e}return f&&(c.y.push(f.line),i?i.includes(`s`)?a.h+=f.shift:(a.y+=f.shift,a.h-=f.shift):a.y+=f.shift),{box:a,guides:c}}function Ps(e,t,n){switch(t){case`left`:return{...e,x:0};case`hcenter`:return{...e,x:Math.round((100-e.w)/2*2)/2};case`right`:return{...e,x:100-e.w};case`top`:return{...e,y:0};case`vmiddle`:return{...e,y:Os((n-e.h)/2)};case`bottom`:return{...e,y:Os(n-e.h)}}}function Fs(e,t){let n=Math.min(...e.map(e=>e.x)),r=Math.max(...e.map(e=>e.x+e.w)),i=Math.min(...e.map(e=>e.y)),a=Math.max(...e.map(e=>e.y+e.h));return e.map(e=>{switch(t){case`left`:return{...e,x:n};case`hcenter`:return{...e,x:(n+r)/2-e.w/2};case`right`:return{...e,x:r-e.w};case`top`:return{...e,y:i};case`vmiddle`:return{...e,y:Os((i+a)/2-e.h/2)};case`bottom`:return{...e,y:Os(a-e.h)}}})}function Is(e,t){if(e.length<3)return[...e];let n=e.map((e,t)=>({box:e,index:t})).sort((e,n)=>e.box[t]-n.box[t]),r=n[0].box[t],i=(n[n.length-1].box[t]-r)/(n.length-1),a=[...e];return n.forEach(({box:e,index:o},s)=>{if(s>0&&s<n.length-1){let n=r+i*s;a[o]={...e,[t]:t===`x`?n:Os(n)}}}),a}function Ls(e){return Math.min(999,Math.max(0,...e)+1)}function Rs(e){return Math.max(0,Math.min(1,...e)-1)}function zs(e){let t=e.reduce((e,t)=>Math.max(e,t.y+t.h),0);return Math.max(80,Os(t+64))}function Bs(e,t,n){let r=e.map((e,t)=>({...e,index:t})).sort((e,t)=>e.desktop.y-t.desktop.y||e.desktop.x-t.desktop.x),i=Array(e.length),a=32;for(let e of r){let r=92/100*n/(e.desktop.w/100*t),o=Ds(Os(e.desktop.h*(e.text?Math.max(1,r):r)),24,3e3);i[e.index]={x:4,y:Os(a),w:92,h:o},a+=o+20}return{boxes:i,height:Ds(Os(a+12),200,4e3)}}var Vs=[`primary`,`secondary`,`background`,`surface`,`text`,`muted`],Hs=new Set(Vs),Us=e=>typeof e==`string`&&Hs.has(e),Ws=[{name:`palette.blue`,colors:{primary:`#2563eb`,secondary:`#0f172a`,background:`#ffffff`,surface:`#f8fafc`,text:`#0f172a`,muted:`#64748b`}},{name:`palette.mint`,colors:{primary:`#0d9488`,secondary:`#134e4a`,background:`#ffffff`,surface:`#f0fdfa`,text:`#134e4a`,muted:`#5f7470`}},{name:`palette.sand`,colors:{primary:`#b45309`,secondary:`#1c1917`,background:`#fffbf5`,surface:`#f5eee4`,text:`#1c1917`,muted:`#78716c`}},{name:`palette.indigo`,colors:{primary:`#4f46e5`,secondary:`#1e1b4b`,background:`#ffffff`,surface:`#f5f3ff`,text:`#1e1b4b`,muted:`#6b7280`}},{name:`palette.graphite`,colors:{primary:`#111827`,secondary:`#374151`,background:`#ffffff`,surface:`#f3f4f6`,text:`#111827`,muted:`#6b7280`}}],Gs=[`Inter`,`Poppins`,`Montserrat`,`DM Sans`,`Work Sans`,`Nunito`,`Lora`,`Playfair Display`,`Merriweather`,`Source Sans 3`],Ks=e=>`font.${e}`,qs=[1080,1200,1320,1440],Js=e=>`theme.width.${e}`,Ys=[{name:`gradient.preset.primary`,gradient:{type:`linear`,from:`primary`,to:`secondary`,angle:135}},{name:`gradient.preset.soft`,gradient:{type:`linear`,from:`surface`,to:`background`,angle:160}},{name:`gradient.preset.halo`,gradient:{type:`radial`,from:`primary`,to:`background`,angle:0}},{name:`gradient.preset.night`,gradient:{type:`linear`,from:`secondary`,to:`primary`,angle:200}}],Xs=(e,t)=>e?Us(e)?t[e]:e:`transparent`;function Zs(e,t){let n=Xs(e.from,t),r=Xs(e.to,t);return e.type===`radial`?`radial-gradient(circle at 50% 50%, ${n}, ${r})`:`linear-gradient(${e.angle??135}deg, ${n}, ${r})`}function Qs(e,t){let n=e=>[1,3,5].map(t=>parseInt(e.slice(t,t+2),16)),[r=0,i=0,a=0]=n(e),[o=0,s=0,c=0]=n(t);return(r-o)**2+(i-s)**2+(a-c)**2}function $s(e,t){return/^#[0-9a-fA-F]{6}$/.test(e)?[...Vs].sort((n,r)=>Qs(e.toLowerCase(),t[n].toLowerCase())-Qs(e.toLowerCase(),t[r].toLowerCase()))[0]??`text`:`text`}function ec(e,t){for(let n of ps(e)){let e=n.background.color;e&&!Us(e)&&(n.background.color=$s(e,t));for(let e of n.elements)for(let n of[`color`,`background`]){let r=e.style[n];r&&!Us(r)&&(e.style[n]=$s(r,t))}}}function tc(e){return`https://fonts.googleapis.com/css2?${[...new Set(e)].map(e=>`family=${e.replaceAll(` `,`+`)}:wght@300;400;500;600;700;800`).join(`&`)}&display=swap`}function nc(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function rc(e,t=`|`){return e.map(e=>Oc(e)).join(t)}function ic(e,t){return typeof t==`bigint`?t.toString():t}var ac=class{constructor(e){this._getter=e,this._value=void 0}get value(){let e=this._getter;return e!==void 0&&(this._value=e(),this._getter=void 0),this._value}};function oc(e){return new ac(e)}function sc(e){return e==null}function cc(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function lc(e,t){let n=e/t,r=Math.round(n),i=4*2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}function uc(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function dc(e){let t=Object.getOwnPropertyDescriptor(e,`shape`);return t?.get?t.get.raw:t?.value}function fc(e){return dc(e._zod.def)??e._zod.def.shape}function pc(e,t,n){Object.defineProperty(e,t,{get(){let e=n();return uc(this,t,e),e},enumerable:!0,configurable:!0})}function mc(e,t,n){t in e?uc(e,t,n):e[t]=n}function hc(e,t,n,r){let i=fc(t);for(let a of n){let n=Object.getOwnPropertyDescriptor(i,a);n.enumerable&&(n.get?pc(e,a,()=>{let e=t._zod.def.shape[a];return r?r(e,a):e}):mc(e,a,r?r(n.value,a):n.value))}}function gc(e,t){for(let n of Reflect.ownKeys(t)){let r=Object.getOwnPropertyDescriptor(t,n);r.enumerable&&(r.get?pc(e,n,()=>t[n]):mc(e,n,r.value))}}function _c(...e){let t={};for(let n of e){let e=Object.getOwnPropertyDescriptors(n);Object.assign(t,e)}return Object.defineProperties({},t)}function vc(e){return JSON.stringify(e)}function yc(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var bc=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function xc(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var Sc=/* @__PURE__*/ oc(()=>{if(gl.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function Cc(e){if(xc(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return xc(n)!==!1&&Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)!==!1}function wc(e){return Cc(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var Tc=/* @__PURE__*/ new Set([`string`,`number`,`symbol`]);function Ec(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function Dc(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function z(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function Oc(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function kc(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout===`optional`)}var Ac={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},jc={int64:[/* @__PURE__*/ BigInt(`-9223372036854775808`),/* @__PURE__*/ BigInt(`9223372036854775807`)],uint64:[/* @__PURE__*/ BigInt(0),/* @__PURE__*/ BigInt(`18446744073709551615`)]};function Mc(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);let i={};return hc(i,e,Nc(e,t)),Dc(e,_c(n,{shape:i,checks:[]}))}function Nc(e,t){let n=fc(e),r=[];for(let e of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(n,e)?.enumerable)throw Error(`Unrecognized key: "${String(e)}"`);t[e]&&r.push(e)}return r}function Pc(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);let i=new Set(Nc(e,t)),a={};return hc(a,e,Reflect.ownKeys(fc(e)).filter(e=>!i.has(e))),Dc(e,_c(n,{shape:a,checks:[]}))}function Fc(e,t){if(!Cc(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=fc(e);for(let e of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return Dc(e,_c(e._zod.def,{shape:Ic(e,t)}))}function Ic(e,t){let n={};return hc(n,e,Reflect.ownKeys(fc(e))),gc(n,t),n}function Lc(e,t){if(!Cc(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return Dc(e,_c(e._zod.def,{shape:Ic(e,t)}))}function Rc(e,t){if(!t?._zod?.def)throw Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);let n={};return hc(n,e,Reflect.ownKeys(fc(e))),hc(n,t,Reflect.ownKeys(fc(t))),Dc(e,_c(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function zc(e,t,n,r=`partial`){let i=t._zod.def.checks;if(i&&i.length>0)throw Error(`.${r}() cannot be used on object schemas containing refinements`);let a=n?new Set(Nc(t,n)):void 0,o={};return hc(o,t,Reflect.ownKeys(fc(t)),e&&((t,n)=>a&&!a.has(n)?t:new e({type:`optional`,innerType:t}))),Dc(t,_c(t._zod.def,{shape:o,checks:[]}))}function Bc(e,t,n){let r=n?new Set(Nc(t,n)):void 0,i={};return hc(i,t,Reflect.ownKeys(fc(t)),(t,n)=>r&&!r.has(n)?t:new e({type:`nonoptional`,innerType:t})),Dc(t,_c(t._zod.def,{shape:i}))}function Vc(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Hc(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function Uc(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function Wc(e){return typeof e==`string`?e:e?.message}function Gc(e,t,n){var r;for(let i=t;i<e.length;i++)(r=e[i]).schema??(r.schema=n)}function Kc(e,t,n){var r;let i=e.inst?._zod?.traits;i?.has(`$ZodType`)&&(i.has(`$ZodCheck`)?(r=e).schema??(r.schema=e.inst):e.schema=e.inst);let a=e.schema===e.inst?void 0:e.schema?._zod.def?.error,o=e.message?e.message:Wc(e.inst?._zod.def?.error?.(e))??Wc(a?.(e))??Wc(t?.error?.(e))??Wc(n.customError?.(e))??Wc(n.localeError?.(e))??`Invalid input`,s={};for(let t of Object.keys(e))t!==`inst`&&t!==`schema`&&t!==`continue`&&t!==`input`&&t!==`__proto__`&&(s[t]=e[t]);return s.path??=[],s.message=o,t?.reportInput&&(s.input=e.input),s}var qc=/[\uD800-\uDBFF]/;function Jc(e){let t=e.length;if(!qc.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(e.charCodeAt(r)&64512)==55296&&(e.charCodeAt(r+1)&64512)==56320&&(n--,r++);return n}function Yc(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function Xc(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function Zc(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function Qc(e,t){for(let n in t){let r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):nl(e,n,r.value)}}function $c(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function el(e,t,n){return $c(e,t,n,!1)}function tl(e,t){for(let n in e){let r=e[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get(){return $c(this,n,r(this))},set(e){$c(this,n,e)}})}return t}function nl(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:$c(this,t,n.bind(this))},set(e){$c(this,t,e)}})}function rl(e,t){let n=Object.getPrototypeOf(e);return t in n?void 0:n}var il,al=!1,ol={configurable:!0,get(){al=!0}};function B(e,t,n){let r=Object.getPrototypeOf(e._zod);if(t in r&&il!==e._zod){il=void 0;return}il=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,ol);let e=al;al=!1;try{let r=n(this);return al?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r}),al||=e,r}catch(n){throw delete this[t],al||=e,n}},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}function sl(e,t,n,r){let i=rl(e,t);i&&Object.defineProperty(i,t,{configurable:!0,get(){let e={configurable:!0,writable:!0,enumerable:r,value:void 0};return Object.defineProperty(this,t,e),e.value=n(this),Object.defineProperty(this,t,e),e.value},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:r,value:e})}})}var cl=`~constantCatch`;function ll(e){let t=()=>e;return t[cl]=!0,t}var ul,dl={value:void 0,enumerable:!1},fl=`captureStackTrace`in Error?Error:null;function pl(e){let t=fl;if(t){let n=t.stackTraceLimit;if(typeof n==`number`){try{t.stackTraceLimit=0}catch{return fl=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function V(e,t,n,r){let i={};function a(e){this.def=e,this.constr=d,this.traits=/* @__PURE__ */ new Set}a.prototype=i;let o=n,s=o&&/* @__PURE__ */ new WeakSet;function c(n,r){if(!n._zod){dl.value=new a(r);try{Object.defineProperty(n,"_zod",dl)}finally{dl.value=void 0}}else if(n._zod.traits.has(e))return;if(n._zod.traits.add(e),t(n,r),s){let e=Object.getPrototypeOf(n),t=n._zod.constr.prototype,r=e;for(;r&&r!==t;)r=Object.getPrototypeOf(r);let i=r??e;s.has(i)||(s.add(i),Qc(i,o))}let i=d.prototype;for(let e in i)Object.prototype.hasOwnProperty.call(i,e)&&(e in n||(n[e]=i[e].bind(n)))}let l=r?.Parent??Object;class u extends l{}Object.defineProperty(u,"name",{value:e});function d(e){let t=r?.Parent?pl(u):this;c(t,e);let n=t._zod.deferred;if(n){for(let e of n)e();t._zod.deferred=void 0}let i=globalThis.__zod_globalConfig?.postProcessor;return i&&i(t),t}return Object.defineProperty(d,"init",{value:c}),Object.defineProperty(d,Symbol.hasInstance,{value:t=>r?.Parent&&t instanceof r.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(d,"name",{value:e}),d}var ml=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},hl=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(ul=globalThis).__zod_globalConfig??(ul.__zod_globalConfig={});var gl=globalThis.__zod_globalConfig;function _l(e){return e&&Object.assign(gl,e),gl}function vl(){let e=this._zod;return e.message??=JSON.stringify(e.def,ic,2),e.message}function yl(e){this._zod.message=e}var bl={get:vl,set:yl,enumerable:!0,configurable:!0},xl={value:void 0,enumerable:!1},Sl=/* @__PURE__ */ new WeakSet([Object.prototype,Error.prototype]),Cl=(e,t)=>{e.name=`$ZodError`,xl.value=t,Object.defineProperty(e,"issues",xl),xl.value=void 0,Object.defineProperty(e,"message",bl);let n=Object.getPrototypeOf(e);Sl.has(n)||(Sl.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let e=()=>this.message;return Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0})}}))},wl=V(`$ZodError`,Cl);V(`$ZodError`,Cl,void 0,{Parent:Error});function Tl(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t===`__proto__`?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}function El(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?Tl(n,i.path[0],()=>[]).push(t(i)):r.push(t(i));return{formErrors:r,fieldErrors:n}}function Dl(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i<e.length;){let n=e[i],o=i===e.length-1;if(n===`_errors`){o&&r._errors.push(t(a)),i++;continue}Object.prototype.hasOwnProperty.call(r,n)||Object.defineProperty(r,n,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let s=r[n];o&&s._errors.push(t(a)),r=s,i++}}}};return r(e),n}function Ol(e,t){return{callee:t?.callee??e,Err:t?.Err}}var kl=e=>{let t=(n,r,i,a)=>{let o=i?{...i,async:!1}:{async:!1},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new ml;if(s.issues.length){let n=new((a?.Err)??e)(s.issues.map(e=>Kc(e,o,_l())));throw bc(n,a?.callee??t),n}return s.value};return t},Al=e=>{let t=async(n,r,i,a)=>{let o=i?{...i,async:!0}:{async:!0},s=n._zod.run({value:r,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){let n=new((a?.Err)??e)(s.issues.map(e=>Kc(e,o,_l())));throw bc(n,a?.callee??t),n}return s.value};return t},jl=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new ml;return a.issues.length?Ml(e,a.issues,i):{success:!0,data:a.value}};function Ml(e,t,n){let r;return{success:!1,get error(){return r||(r=new e(t.map(e=>Kc(e,n,_l()))),t=void 0,n=void 0),r},set error(e){r=e,t=void 0,n=void 0}}}var Nl=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?Ml(e,a.issues,i):{success:!0,data:a.value}},Pl=/* @__PURE__ */ Symbol.for(`zod.compile.invalid`),Fl=/* @__PURE__ */ Symbol.for(`zod.compile.fallback`),Il=((e,t,n)=>{let r=e._zod.bag.validator;if(r!==void 0){if(r(t)!==Pl)return!0;if(r.definite===!0&&n===void 0)return!1}return Ll(e,t,n)});function Ll(e,t,n){let r=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},i=e._zod.bag.fallbackRun,a;if(i?(r[Fl]=!0,a=i({value:t,issues:[]},r)):a=e._zod.run({value:t,issues:[]},r),a instanceof Promise)throw new ml;return a.issues.length===0}var Rl=async(e,t,n)=>{let r=n?{...n,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},i=e._zod.run({value:t,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length===0},zl=e=>{let t=kl(e),n=(e,r,i,a)=>{let o=i?{...i,direction:`backward`}:{direction:`backward`};return t(e,r,o,Ol(n,a))};return n},Bl=e=>{let t=kl(e),n=(e,r,i,a)=>t(e,r,i,Ol(n,a));return n},Vl=e=>{let t=Al(e),n=async(e,r,i,a)=>{let o=i?{...i,direction:`backward`}:{direction:`backward`};return await t(e,r,o,Ol(n,a))};return n},Hl=e=>{let t=Al(e),n=async(e,r,i,a)=>await t(e,r,i,Ol(n,a));return n},Ul=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return jl(e)(t,n,i)},Wl=e=>(t,n,r)=>jl(e)(t,n,r),Gl=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Nl(e)(t,n,i)},Kl=e=>async(t,n,r)=>Nl(e)(t,n,r),ql=/^[cC][0-9a-z]{6,}$/,Jl=/^[0-9a-z]+$/,Yl=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,Xl=/^[0-9a-vA-V]{20}$/,Zl=/^[A-Za-z0-9]{27}$/,Ql=/^[a-zA-Z0-9_-]{21}$/;function $l(e){return RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var eu=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,tu=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,nu=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,ru=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,iu=`^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$`;function au(){return new RegExp(iu,`u`)}var ou=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,su=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,cu=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,lu=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,uu=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,du=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,fu=/^https?$/,pu=/^\+[1-9]\d{6,14}$/,mu=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;function hu(e){return RegExp(`^${e}$`)}var gu=/*@__PURE__*/ hu(mu);function _u(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function vu(e){return RegExp(`^${_u(e)}$`)}function yu(e){let t=[`Z`];e.offset&&t.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let n=`${_u({precision:e.precision,seconds:!0})}(?:${t.join(`|`)})`,r=e.local?`${n}|${_u({precision:e.precision})}`:n;return RegExp(`^${mu}T(?:${r})$`)}var bu=/^[\s\S]{0,}$/,xu=/^-?\d+$/,Su=/^-?\d+(?:\.\d+)?$/,Cu=/^(?:true|false)$/i,wu=/^[^A-Z]*$/,Tu=/^[^a-z]*$/,Eu=/*@__PURE__*/ V(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Du=e=>{let t=e.value;return!sc(t)&&t.length!==void 0},Ou={number:`number`,bigint:`bigint`,object:`date`},ku=/*@__PURE__*/ V(`$ZodCheckLessThan`,(e,t)=>{Eu.init(e,t);let n=Ou[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:Ou[typeof r.value]??n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Au=/*@__PURE__*/ V(`$ZodCheckGreaterThan`,(e,t)=>{Eu.init(e,t);let n=Ou[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:Ou[typeof r.value]??n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ju=/*@__PURE__*/ V(`$ZodCheckMultipleOf`,(e,t)=>{Eu.init(e,t),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?t.value!==BigInt(0)&&n.value%t.value===BigInt(0):lc(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Mu=/*@__PURE__*/ V(`$ZodCheckNumberFormat`,(e,t)=>{Eu.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=Ac[t.format];e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),Nu=/*@__PURE__*/ V(`$ZodCheckMaxLength`,(e,t)=>{var n;Eu.init(e,t),(n=e._zod.def).when??(n.when=Du),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>t.maximum?Jc(r):i)<=t.maximum)return;let a=Yc(r);n.issues.push({origin:a,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Pu=/*@__PURE__*/ V(`$ZodCheckMinLength`,(e,t)=>{var n;Eu.init(e,t),(n=e._zod.def).when??(n.when=Du),e._zod.check=n=>{let r=n.value,i=r.length;if((typeof r==`string`&&i>=t.minimum&&i<t.minimum*2?Jc(r):i)>=t.minimum)return;let a=Yc(r);n.issues.push({origin:a,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Fu=/*@__PURE__*/ V(`$ZodCheckLengthEquals`,(e,t)=>{var n;Eu.init(e,t),(n=e._zod.def).when??(n.when=Du),e._zod.check=n=>{let r=n.value,i=r.length,a=typeof r==`string`&&i>=t.length&&i<=t.length*2?Jc(r):i;if(a===t.length)return;let o=Yc(r),s=a>t.length;n.issues.push({origin:o,...s?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Iu=/*@__PURE__*/ V(`$ZodCheckStringFormat`,(e,t)=>{var n,r;Eu.init(e,t),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Lu=/*@__PURE__*/ V(`$ZodCheckRegex`,(e,t)=>{Iu.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Ru=/*@__PURE__*/ V(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=wu,Iu.init(e,t)}),zu=/*@__PURE__*/ V(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=Tu,Iu.init(e,t)}),Bu=/*@__PURE__*/ V(`$ZodCheckIncludes`,(e,t)=>{Eu.init(e,t);let n=Ec(t.includes);t.pattern=new RegExp(typeof t.position==`number`?`^.{${t.position},}${n}`:n),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Vu=/*@__PURE__*/ V(`$ZodCheckStartsWith`,(e,t)=>{Eu.init(e,t);let n=RegExp(`^${Ec(t.prefix)}.*`);t.pattern??=n,e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),Hu=/*@__PURE__*/ V(`$ZodCheckEndsWith`,(e,t)=>{Eu.init(e,t);let n=RegExp(`.*${Ec(t.suffix)}$`);t.pattern??=n,e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),Uu=/*@__PURE__*/ V(`$ZodCheckOverwrite`,(e,t)=>{Eu.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),Wu=class{constructor(e=[],t={}){this.content=[],this.indent=0,this.args=e,this.closed=t}indented(e){this.indent+=1;try{e(this)}finally{--this.indent}}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
18
18
  `).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.content??[``];return new e(...Object.keys(this.closed),`return function (${this.args.join(`, `)}) {\n${t.join(`
19
19
  `)}\n};`)(...Object.values(this.closed))}},Gu={major:4,minor:6,patch:5},Ku=/*@__PURE__*/ V(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Gu;let r=e._zod.def.checks,i=e._zod.traits.has(`$ZodCheck`)?[e,...r??[]]:r?.length?[...r]:[];for(let t of i)for(let n of t._zod.onattach)n(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(t,n,r)=>{if(t.memo)return t;let i=Vc(t),a;for(let o of n){if(o._zod.def.when){if(Hc(t)||!o._zod.def.when(t))continue}else if(i)continue;let n=t.issues.length,s=o._zod.check(t);if(s instanceof Promise&&r?.async===!1)throw new ml;if(a||s instanceof Promise)a=(a??Promise.resolve()).then(async()=>{await s,t.issues.length!==n&&(Gc(t.issues,n,e),i||=Vc(t,n))});else{if(t.issues.length===n)continue;Gc(t.issues,n,e),i||=Vc(t,n)}}return a?a.then(()=>t):t},n=(n,r,a)=>{if(Vc(n))return n.aborted=!0,n;let o=t(r,i,a);if(o instanceof Promise){if(a.async===!1)throw new ml;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(r,a)=>{if(a.skipChecks)return e._zod.parse(r,a);if(a.direction===`backward`){let t=e._zod.parse({value:r.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,r,a)):n(t,r,a)}let o=e._zod.parse(r,a);if(o instanceof Promise){if(a.async===!1)throw new ml;return o.then(e=>t(e,i,a))}return t(o,i,a)}}},{get"~standard"(){return el(this,`~standard`,Yu(this))},set"~standard"(e){$c(this,`~standard`,e)}}),qu=(e,t)=>e.issues.length?{issues:e.issues.map(e=>Kc(e,t,_l()))}:{value:e.value};async function Ju(e,t){let n={async:!0};return qu(await e._zod.run({value:t,issues:[]},n),n)}function Yu(e){return{validate:t=>{let n={async:!1};try{let r=e._zod.run({value:t,issues:[]},n);if(!(r instanceof Promise))return qu(r,n)}catch{}return Ju(e,t)},vendor:`zod`,version:1}}var Xu=/*@__PURE__*/ V(`$ZodString`,(e,t)=>{Ku.init(e,t),e._zod.pattern=t.pattern??bu,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),Zu=/*@__PURE__*/ V(`$ZodStringFormat`,(e,t)=>{Iu.init(e,t),Xu.init(e,t)}),Qu=/*@__PURE__*/ V(`$ZodGUID`,(e,t)=>{t.pattern??=tu,Zu.init(e,t)}),$u=/*@__PURE__*/ V(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=nu(e)}else t.pattern??=nu();Zu.init(e,t)}),ed=/*@__PURE__*/ V(`$ZodEmail`,(e,t)=>{t.pattern??=ru,Zu.init(e,t)});function td(e){try{return typeof URL<`u`&&typeof URL.canParse==`function`?URL.canParse(e):(new URL(e),!0)}catch{return!1}}function nd(e,t){return!(`normalize`in t)&&!(`hostname`in t)&&!(`protocol`in t)?td(e)||2:rd(e,t)}function rd(e,t){if(!t.normalize&&t.protocol?.source===fu.source&&!/^https?:\/\//i.test(e))return 1;try{if(typeof URL<`u`){let t=URL;if(typeof t.parse==`function`)return t.parse(e)??2}return new URL(e)}catch{return 2}}var id=/[\t\n\r]/g;function ad(e){return e.replace(id,``)}function od(e,t){return t.lastIndex=0,t.test(e.hostname)}function sd(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(`:`)?e.protocol.slice(0,-1):e.protocol)}var cd=/*@__PURE__*/ V(`$ZodURL`,(e,t)=>{Zu.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=nd(r,t);if(i===1){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}if(i===2){n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort});return}if(i===!0){n.value=ad(r);return}t.hostname&&!od(i,t.hostname)&&n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort}),t.protocol&&!sd(i,t.protocol)&&n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort}),n.value=t.normalize?i.href:ad(r);return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),ld=/*@__PURE__*/ V(`$ZodEmoji`,(e,t)=>{t.pattern??=au(),Zu.init(e,t)}),ud=/*@__PURE__*/ V(`$ZodNanoID`,(e,t)=>{if(t.length!==void 0&&(!Number.isInteger(t.length)||t.length<1))throw Error(`Invalid nanoid length: ${t.length}`);t.pattern??=t.length===void 0?Ql:$l(t.length),Zu.init(e,t)}),dd=/*@__PURE__*/ V(`$ZodCUID`,(e,t)=>{t.pattern??=ql,Zu.init(e,t)}),fd=/*@__PURE__*/ V(`$ZodCUID2`,(e,t)=>{t.pattern??=Jl,Zu.init(e,t)}),pd=/*@__PURE__*/ V(`$ZodULID`,(e,t)=>{t.pattern??=Yl,Zu.init(e,t)}),md=/*@__PURE__*/ V(`$ZodXID`,(e,t)=>{t.pattern??=Xl,Zu.init(e,t)}),hd=/*@__PURE__*/ V(`$ZodKSUID`,(e,t)=>{t.pattern??=Zl,Zu.init(e,t)}),gd=/*@__PURE__*/ V(`$ZodISODateTime`,(e,t)=>{t.pattern??=yu(t),Zu.init(e,t)}),_d=/*@__PURE__*/ V(`$ZodISODate`,(e,t)=>{t.pattern??=gu,Zu.init(e,t)}),vd=/*@__PURE__*/ V(`$ZodISOTime`,(e,t)=>{t.pattern??=vu(t),Zu.init(e,t)}),yd=/*@__PURE__*/ V(`$ZodISODuration`,(e,t)=>{t.pattern??=eu,Zu.init(e,t)}),bd=/*@__PURE__*/ V(`$ZodIPv4`,(e,t)=>{t.pattern??=ou,Zu.init(e,t)}),xd=/^[0-9a-fA-F:.]+$/;function Sd(e){return xd.test(e)?td(`http://[${e}]`):!1}var Cd=/*@__PURE__*/ V(`$ZodIPv6`,(e,t)=>{t.pattern??=su,Zu.init(e,t),e._zod.check=n=>{Sd(n.value)||n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}),wd=/*@__PURE__*/ V(`$ZodCIDRv4`,(e,t)=>{t.pattern??=cu,Zu.init(e,t)});function Td(e){let t=e.split(`/`);if(t.length!==2)return!1;let[n,r]=t;if(!r)return!1;let i=Number(r);return`${i}`!==r||i<0||i>128?!1:Sd(n)}var Ed=/*@__PURE__*/ V(`$ZodCIDRv6`,(e,t)=>{t.pattern??=lu,Zu.init(e,t),e._zod.check=n=>{Td(n.value)||n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}});function Dd(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var Od=/^[0-9a-zA-Z+/]*={0,2}$/,kd=/*@__PURE__*/ V(`$ZodBase64`,(e,t)=>{t.pattern??=Od,Zu.init(e,t),e._zod.check=n=>{Dd(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}}),Ad=/^[A-Za-z0-9_-]*$/;function jd(e){if(!Ad.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return Dd(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var Md=/*@__PURE__*/ V(`$ZodBase64URL`,(e,t)=>{t.pattern??=Ad,Zu.init(e,t),e._zod.check=n=>{jd(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),Nd=/*@__PURE__*/ V(`$ZodE164`,(e,t)=>{t.pattern??=pu,Zu.init(e,t)});function Pd(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var Fd=/*@__PURE__*/ V(`$ZodJWT`,(e,t)=>{Zu.init(e,t),e._zod.check=n=>{Pd(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),Id=/*@__PURE__*/ V(`$ZodNumber`,(e,t)=>{Ku.init(e,t),e._zod.pattern=Su,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:String(i):void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),Ld=/*@__PURE__*/ V(`$ZodNumberFormat`,(e,t)=>{Mu.init(e,t),Id.init(e,t)}),Rd=/*@__PURE__*/ V(`$ZodBoolean`,(e,t)=>{Ku.init(e,t),e._zod.pattern=Cu,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),zd=/*@__PURE__*/ V(`$ZodUnknown`,(e,t)=>{Ku.init(e,t),e._zod.parse=e=>e}),Bd=/*@__PURE__*/ V(`$ZodNever`,(e,t)=>{Ku.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function Vd(e,t,n){e.issues.length&&t.issues.push(...Uc(n,e.issues)),t.value[n]=e.value}var Hd=/*@__PURE__*/ V(`$ZodArray`,(e,t)=>{Ku.init(e,t);let n=gl.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({expected:`array`,code:`invalid_type`,input:a,inst:e}),r;r.value=n?n.alloc(e,r,Array(a.length),i):Array(a.length);let o=[],s=i?.abortEarly;for(let e=0;e<a.length;e++){let n=a[e],c=t.element._zod.run({value:n,issues:[]},i);if(c instanceof Promise)o.push(c.then(t=>Vd(t,r,e)));else if(Vd(c,r,e),s&&c.issues.length!==0&&Vc(c))break}return o.length?Promise.all(o).then(()=>r):r}});function Ud(e,t,n,r,i,a){let o=n in r,s=a===`optional`;if(o||!s||i!==`optional`){if(e.issues.length){if(i!==void 0&&s&&!o)return;t.issues.push(...Uc(n,e.issues))}if(!o&&i===void 0){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?(o||i===`defaulted`&&!s)&&(t.value[n]=void 0):t.value[n]=e.value}}var Wd=[];function Gd(e){let t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),r=n.length?n:Wd,i=r.length?[...t,...r]:t;for(let t of i)if(!e.shape?.[t]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${String(t)}": expected a Zod schema`);let a=kc(e.shape);return{...e,allKeys:i,symbolKeys:r,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(a)}}function Kd(e,t,n,r,i,a,o){let s=[],c=i.keySet,l=i.catchall._zod,u=l.def.type,d=l.optin,f=l.optout,p=0;for(let i in t){if(o&&n.issues.length!==p){if(Vc(n,p))break;p=n.issues.length}if(c.has(i))continue;if(i===`__proto__`){u===`never`&&s.push(i);continue}if(u===`never`){s.push(i);continue}let a=l.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>Ud(e,n,i,t,d,f))):Ud(a,n,i,t,d,f)}return s.length&&n.issues.push({code:`unrecognized_keys`,keys:s,input:t,inst:a,continue:!0}),e.length?Promise.all(e).then(()=>n):n}var qd=/*@__PURE__*/ V(`$ZodObject`,(e,t)=>{Ku.init(e,t);let n=Object.getOwnPropertyDescriptor(t,`shape`),r=n?.get?n.get.raw:t.shape??{};if(r){let e=()=>{let n={...r};return Object.defineProperty(t,"shape",{value:n}),e.raw=n,n};e.raw=r,Object.defineProperty(t,"shape",{get:e})}let i=oc(()=>Gd(t));B(e,`propValues`,e=>{let t=e.def.shape,n={};for(let e in t){let r=t[e]._zod;if(r.values){Object.prototype.hasOwnProperty.call(n,e)||uc(n,e,/* @__PURE__ */ new Set);for(let t of r.values)n[e].add(t);r.optin!==void 0&&n[e].add(void 0)}}return n});let a=xc,o=t.catchall,s,c=gl.memoizer;c?.attach(e),e._zod.parse=(t,n)=>{s??=i.value;let r=t.value;if(!a(r))return t.issues.push({expected:`object`,code:`invalid_type`,input:r,inst:e}),t;t.value=c?c.alloc(e,t,{},n):{};let l=[],u=s.shape,d=n?.abortEarly,f=t.issues.length;for(let e of s.allKeys){if(d&&t.issues.length!==f){if(Vc(t,f))break;f=t.issues.length}if(e===`__proto__`)continue;let i=u[e],a=i._zod.optin,o=i._zod.optout,s=i._zod.run({value:r[e],issues:[]},n);s instanceof Promise?l.push(s.then(n=>Ud(n,t,e,r,a,o))):Ud(s,t,e,r,a,o)}return o?Kd(l,r,t,n,i.value,e,d===!0):l.length?Promise.all(l).then(()=>t):t}}),Jd=/*@__PURE__*/ V(`$ZodObjectJIT`,(e,t)=>{qd.init(e,t);let n=e._zod.parse,r=oc(()=>Gd(t)),i=gl.memoizer,a=t=>{let n=r.value,a=n.symbolKeys,o=new Wu([`payload`,`ctx`],{shape:t,inst:e,memo:i,syms:a}),s=e=>`shape[${e}]._zod.run({ value: input[${e}], issues: [] }, ctx)`,c=(e,t)=>`
@@ -300,16 +300,16 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
300
300
  `,Qv=/^(-?\d+(\.\d+)?|#[0-9a-fA-F]{6}|var\(--(primary|secondary|background|surface|text|muted)\))$/;async function $v(e){let{document:t,site:n,page:r,host:i}=e,a={input:e,t:Hv(n.locale),rules:[],appTypes:/* @__PURE__ */ new Set},o=await ey(H_(t.sections),e=>oy(e,a)),s=await ey(t.modals??[],e=>ly(e,a)),c=i.form?.notice,l=av([c?G(`p`,{class:`lz-notice`,role:`status`},[tv(c)]):null,...o,...s]),u=[ry(e),...a.rules,...iy(e.catalog,a.appTypes)].join(`
301
301
  `)+`
302
302
  `,d=ty(r.seo.title)??ty(n.seo.title)??n.name,f=ty(r.seo.description)??ty(n.seo.description),p=ny(n.og_image,i)?.url??null,m=ny(n.favicon,i)?.url??null,h=[.../* @__PURE__ */ new Set([n.theme.heading_font,n.theme.body_font])].map(e=>`family=${e.replaceAll(` `,`+`)}:wght@300;400;500;600;700;800`).join(`&`),g=[...f?[{name:`description`,content:f}]:[],{property:`og:title`,content:d},{property:`og:type`,content:`website`},{property:`og:url`,content:r.url},{property:`og:site_name`,content:n.name},...f?[{property:`og:description`,content:f}]:[],...p?[{property:`og:image`,content:p},{name:`twitter:card`,content:`summary_large_image`},{name:`twitter:image`,content:p}]:[]],_=[...m?[{rel:`icon`,href:m},{rel:`apple-touch-icon`,href:m}]:[],{rel:`canonical`,href:r.url},{rel:`preconnect`,href:`https://fonts.googleapis.com`},{rel:`preconnect`,href:`https://fonts.gstatic.com`,crossorigin:!0},{rel:`stylesheet`,href:`https://fonts.googleapis.com/css2?${h}&display=swap`}],v=i.nonce?` nonce="${ev(i.nonce)}"`:``,ee=`<!DOCTYPE html><html lang="${ev(n.locale)}"><head>`+G(`meta`,{charset:`utf-8`})+G(`meta`,{name:`viewport`,content:`width=device-width, initial-scale=1`})+`<title>${ev(d)}</title>`+g.map(e=>G(`meta`,e)).join(``)+_.map(e=>G(`link`,e)).join(``)+`<style${v}>\n${Zv}${u}</style>`+(i.head??``)+`</head><body class="lz-page">${l}`+(e.mode===`public`?`<script${v}>\n${Uv}<\/script>`:``)+`</body></html>
303
- `;return{lang:n.locale,title:d,meta:g,links:_,css:u,body:l,head:i.head??null,html:ee}}async function ey(e,t){let n=[];for(let[r,i]of e.entries())n.push(await t(i,r));return n}var ty=e=>e&&e.trim()!==``?e:null;function ny(e,t){return e?e.startsWith(`media:`)?t.media(e):{url:e,thumb:null,width:null,height:null}:null}function ry({document:e,site:t}){let{theme:n}=t,r=Math.max(0,...e.sections.flatMap(e=>e.elements).filter(e=>S_(e)&&e.type===`navbar`&&e.props.sticky).map(e=>Math.trunc(e.layout.desktop.h)+24));return`.lz-page{--primary:${n.primary};--secondary:${n.secondary};--background:${n.background};--surface:${n.surface};--text:${n.text};--muted:${n.muted};--radius:${n.radius}px;--max-width:${n.max_width}px;--ref:${n.max_width};--font-heading:'${n.heading_font}', system-ui, sans-serif;--font-body:'${n.body_font}', system-ui, sans-serif`+(r>0?`;--sticky:${r}`:``)+`}`}function iy(e,t){return e.elements.filter(e=>t.has(e.type)&&e.css).map(e=>{if(/<\/style/i.test(e.css??``))throw Error(`Refusing CSS for app element ${e.type}: it closes the style tag`);return`.lz-el[data-type="${e.type}"]{${e.css}}`})}function ay(e,t){for(let[e,n]of t)if(!Qv.test(n))throw Error(`Refusing --${e}:${n}`);return`${e}{${t.map(([e,t])=>`--${e}:${t}`).join(`;`)}}`}async function oy(e,t){if(e.kind===`single`)return sy(e.section,t,q_(e.section)?`form`:null);let n=J_(e),r=await ey(e.sections,async(e,r)=>G(`div`,{class:`lz-stack-panel`,"data-panel":r,"data-on":r===0},[await sy(e,t,q_(e)?n?`div`:`form`:null)])),i=e.type===`steps`?t.t.step:t.t.tab,a=G(`nav`,{class:`lz-stack-nav`,"aria-label":t.t.sections},e.sections.map((t,n)=>G(`button`,{type:`button`,"data-go":n,"aria-pressed":n===0?`true`:`false`},[e.type===`steps`?G(`i`,{},[tv(String(n+1))]):null,tv(ty(t.group?.label)??i.replace(`{n}`,String(n+1)))]))),o={class:`lz-stack`,id:`g-${U_(e.id)}`,"data-group":e.type};return n?uy(o,e.id,t,[a,G(`div`,{class:`lz-stack-panels`},r)]):G(`div`,o,[a,G(`div`,{class:`lz-stack-panels`},r)])}async function sy(e,t,n){let r=U_(e.id),{background:i}=e,a=i.type===`image`||i.type===`video`?ny(i.image,t.input.host):null,o=i.type===`gradient`&&i.gradient?.from&&i.gradient.to?i.gradient:null,s=[[`fh`,cv(e.height.desktop)],[`fmh`,cv(e.height.mobile)]];dy(e)!==null&&s.push([`fg`,cv(e.flow_gap??24)]),o?(s.push([`sg1`,Gv(o.from??``)],[`sg2`,Gv(o.to??``)]),o.angle!==null&&o.angle!==void 0&&s.push([`sga`,cv(o.angle)])):!(i.type===`image`&&i.image)&&i.color&&s.push([`sbg`,Gv(i.color)]);let c=i.parallax===!0,l=i.overlay??0;l>0&&s.push([`ov`,cv(l)]),t.rules.push(ay(`#s-${r}`,s));let u=await fy(e,t),d=u.flatMap((e,t)=>t===0?[e]:[tv(` `),e]),f=i.type===`video`?i.video??null:null;return G(`section`,{id:`s-${r}`,class:`lz-section`,"data-fill":o?o.type??`linear`:null,"data-wide":e.wide===!0},[f!==null&&cy(G(`video`,{class:`lz-bg`,src:f,poster:a?.url??null,autoplay:!0,loop:!0,muted:!0,playsinline:!0,preload:`metadata`}),c),f===null&&a&&cy(G(`img`,{class:`lz-bg`,src:a.url,alt:``,decoding:`async`}),c),l>0&&G(`div`,{class:`lz-overlay`}),G(`div`,{class:`lz-frame`,"data-stack":Y_(e),"data-flow":dy(e),"data-flow-align":dy(e)===null?null:e.flow_align??`start`},[n===`form`?uy({},e.id,t,d):n===`div`?G(`div`,{},d):av(u)])])}var cy=(e,t)=>t?G(`div`,{class:`lz-parallax`},[e]):e;async function ly(e,t){let n=U_(e.id),{form:r}=t.input.host;t.rules.push(ay(`#m-${n}`,[[`dw`,cv(e.width)],[`dbg`,Gv(e.background.color??`background`)],[`fh`,cv(e.height.desktop)],[`fmh`,cv(e.height.mobile)]]));let i=G(`div`,{class:`lz-frame`,"data-stack":Y_(e)},await fy(e,t));return G(`dialog`,{id:`m-${n}`,class:`lz-modal`,"aria-label":e.title,"data-size":e.size,"data-open":r!==null&&r.old(`source`)===e.id},[G(`div`,{class:`lz-modal-bar`},[e.show_title?G(`h2`,{class:`lz-modal-title`},[tv(e.title)]):null,G(`button`,{type:`button`,class:`lz-modal-close`,"data-close":!0,"aria-label":t.t.close},[tv(`×`)])]),q_(e)?uy({},e.id,t,[i]):i])}function uy(e,t,n,r){let{host:i,page:a}=n.input;return i.form===null?G(`form`,e,r):G(`form`,{...e,method:`post`,action:i.form.action},[i.form.csrf&&G(`input`,{type:`hidden`,name:i.form.csrf.name,value:i.form.csrf.value}),G(`input`,{type:`hidden`,name:`slug`,value:a.slug}),G(`input`,{type:`hidden`,name:`source`,value:t}),G(`input`,{type:`text`,name:`website`,tabindex:`-1`,autocomplete:`off`,hidden:!0}),...r])}var dy=e=>`flow`in e&&e.flow&&e.flow!==`free`?e.flow:null;async function fy(e,t){let n=Y_(e)||dy(e)!==null?X_(e.elements):null,r=py(t,q_(e)&&t.input.host.form!==null?t.input.host.form:null);return ey(e.elements,e=>hy(e,n?.get(e)??null,r,t))}function py(e,t){let{input:n}=e,r=new Set(n.catalog.actions.map(e=>e.type));return{t:e.t,media:e=>ny(e,n.host),action:e=>pv(e,n.base,e=>r.has(e.type)?n.host.action(e):null),form:t}}var my=(e,t)=>!S_(e)&&t.elements.some(t=>t.type===e.type);async function hy(e,t,n,r){let{input:i}=r,a=S_(e)?Bv[e.type](e,n):my(e,i.catalog)?{tag:`div`,attrs:{"data-type":e.type},children:[await i.host.appElement(e)]}:i.mode===`edit`?{tag:`div`,class:`lz-placeholder`,attrs:{"data-type":e.type},children:[tv(r.t.unavailable)]}:null;if(a===null)return Z_(``);S_(e)||r.appTypes.add(e.type);let o=U_(e.id),{desktop:s,mobile:c}=e.layout,{vars:l,attrs:u}=Kv(e.style),d=[[`x`,cv(s.x)],[`y`,cv(s.y)],[`w`,cv(s.w)],[`h`,cv(s.h)]];t===null?c&&d.push([`mx`,cv(c.x)],[`my`,cv(c.y)],[`mw`,cv(c.w)],[`mh`,cv(c.h)]):d.push([`ord`,cv(t)]),e.props.flow_gap!==void 0&&e.props.flow_gap!==null&&S_(e)&&d.push([`fg`,cv(e.props.flow_gap)]),d.push([`z`,cv(e.z)]),r.rules.push(ay(`#e-${o}`,[...d,...l])),i.mode===`edit`&&delete u[`data-anim`];let f=e.children===void 0||e.children===null?a.children:await ey(e.children,e=>hy(e,null,n,r));return G(a.tag,{...a.attrs,...u,id:`e-${o}`,class:a.class?`lz-el ${a.class}`:`lz-el`},f)}var gy=[`fill`,`text`,`border`,`effects`,`motion`],_y=[`fill`,`border`,`effects`,`motion`],vy=e=>t=>({box:{x:10,w:40,h:e===`textarea`?120:e===`checkbox`?32:76},props:{label:t(e===`checkbox`?`default.checkbox`:`default.field`),placeholder:e===`select`?``:t(`default.fieldPlaceholder`),required:e!==`select`,input_type:`text`,options:e===`select`?[t(`default.option`,{n:1}),t(`default.option`,{n:2})]:[]},style:{color:`text`,background:`surface`,border_color:`muted`,border_width:1,font:`body`,size:15,align:`left`,radius:10,padding:10}}),yy={heading:{label:`type.heading`,group:`content`,styles:gy,inline:`text`,create:e=>({box:{x:10,w:40,h:80},props:{text:e(`default.heading`),level:1},style:{color:`text`,font:`heading`,size:44,weight:700,align:`left`,line_height:1.1}})},text:{label:`type.text`,group:`content`,styles:gy,inline:`text`,create:e=>({box:{x:10,w:40,h:96},props:{text:e(`default.text`)},style:{color:`muted`,font:`body`,size:18,weight:400,align:`left`,line_height:1.6}})},image:{label:`type.image`,group:`content`,styles:_y,inline:null,create:()=>({box:{x:55,w:35,h:260},props:{src:``,alt:``},style:{radius:16,object_fit:`cover`}})},button:{label:`type.button`,group:`content`,styles:gy,inline:`label`,create:e=>({box:{x:10,w:18,h:52},props:{label:e(`default.button`),action:{type:`url`,value:``}},style:{background:`primary`,color:`background`,font:`body`,size:16,weight:600,align:`center`,radius:12}})},divider:{label:`type.divider`,group:`content`,styles:_y,inline:null,create:()=>({box:{x:10,w:80,h:2},props:{},style:{color:`muted`}})},video:{label:`type.video`,group:`content`,styles:gy,inline:null,create:e=>({box:{x:30,w:40,h:260},props:{url:``,alt:e(`default.video`)},style:{radius:16}})},shape:{label:`type.shape`,group:`content`,styles:gy,inline:null,create:()=>({box:{x:10,w:20,h:160},props:{shape:`rectangle`},style:{background:`primary`,radius:16,opacity:1}})},icon:{label:`type.icon`,group:`content`,styles:gy,inline:null,create:()=>({box:{x:10,w:5,h:56},props:{icon:`heart`,stroke:2},style:{color:`primary`}})},navbar:{label:`type.navbar`,group:`content`,styles:gy,inline:null,create:e=>({box:{x:0,w:100,h:72},...by(e)[0]})},gallery:{label:`type.gallery`,group:`content`,styles:gy,inline:null,create:()=>({box:{x:6,w:88,h:320},props:{images:[],layout:`grid`,columns:3},style:{radius:8}})},slider:{label:`type.slider`,group:`content`,styles:gy,inline:null,create:()=>({box:{x:6,w:88,h:380},props:{images:[],arrows:!0,dots:!0,autoplay:!1,interval:5},style:{radius:8}})},box:{label:`type.box`,group:`content`,styles:gy,inline:null,create:()=>({box:{x:6,w:88,h:240},props:{flow:`column`,flow_gap:16,flow_align:`start`},style:{padding:24,radius:16}})},input:{label:`type.input`,group:`form`,styles:gy,inline:null,create:vy(`input`)},textarea:{label:`type.textarea`,group:`form`,styles:gy,inline:null,create:vy(`textarea`)},select:{label:`type.select`,group:`form`,styles:gy,inline:null,create:vy(`select`)},checkbox:{label:`type.checkbox`,group:`form`,styles:gy,inline:null,create:vy(`checkbox`)}};function by(e){let t=t=>({label:e(t),action:{type:`anchor`,value:``}});return[{name:`navbar.preset.split`,props:{brand:e(`default.brand`),layout:`split`,links:[t(`default.link.features`),t(`default.link.about`),t(`default.link.contact`)]},style:{background:`background`,color:`text`,font:`body`,size:16,weight:600,padding:20}},{name:`navbar.preset.center`,props:{brand:``,layout:`center`,links:[t(`default.link.home`),t(`default.link.features`),t(`default.link.about`),t(`default.link.contact`)]},style:{background:`surface`,color:`text`,font:`body`,size:16,weight:500,padding:18}},{name:`navbar.preset.dark`,props:{brand:e(`default.brand`),layout:`split`,links:[t(`default.link.features`),{label:e(`default.link.start`),action:{type:`anchor`,value:``}}]},style:{background:`secondary`,color:`background`,font:`heading`,size:16,weight:600,padding:20}},{name:`navbar.preset.pill`,props:{brand:e(`default.brand`),layout:`split`,template:`pill`,links:[t(`default.link.features`),t(`default.link.about`),t(`default.link.contact`)]},style:{background:`surface`,color:`text`,font:`body`,size:15,weight:600,padding:16}},{name:`navbar.preset.card`,props:{brand:e(`default.brand`),layout:`split`,template:`card`,links:[t(`default.link.home`),t(`default.link.features`),t(`default.link.contact`)]},style:{background:`background`,color:`text`,font:`heading`,size:16,weight:600,padding:18}},{name:`navbar.preset.underline`,props:{brand:e(`default.brand`),layout:`split`,template:`underline`,links:[t(`default.link.home`),t(`default.link.features`),t(`default.link.about`),t(`default.link.contact`)]},style:{background:`background`,color:`text`,font:`body`,size:16,weight:500,padding:20}},{name:`navbar.preset.divided`,props:{brand:``,layout:`center`,template:`divided`,links:[t(`default.link.home`),t(`default.link.features`),t(`default.link.about`),t(`default.link.contact`)]},style:{background:`surface`,color:`text`,font:`body`,size:15,weight:500,padding:16}}]}function xy(e,t){if(ds(e.type))return{kind:`core`,element:e,spec:yy[e.type]};let n=t.elements.find(t=>t.type===e.type);return n?{kind:`app`,element:e,spec:n}:{kind:`opaque`,element:e}}function Sy(e,t,n){let r=e.kind===`core`?yy[e.type].create(n):Cy(e.spec),i=e.kind===`core`?e.type:e.spec.type;return{id:ys(i),type:i,z:1,layout:{desktop:{...r.box,y:Os(t)},mobile:null},props:r.props,style:r.style}}function Cy(e){let t={};for(let n of e.fields)n.kind!==`image`&&n.kind!==`action`&&n.default!==void 0&&(t[n.key]=n.default);return{box:{x:10,w:e.size.w,h:e.size.h},props:t,style:{}}}function wy(e,t){let n=e.props,r=[n.text,n.label,n.brand].find(e=>typeof e==`string`&&e.trim()!==``);return r?r.trim().slice(0,28):t}function Ty(e,t=50){let n=[e],r=0,i=e=>{let t=r+e;return t<0||t>=n.length?null:(r=t,n[r]??null)};return{push(e){return e!==n[r]&&(n=[...n.slice(0,r+1),e].slice(-t),r=n.length-1,!0)},undo:()=>i(-1),redo:()=>i(1),reset(e){n=[e],r=0},get canUndo(){return r>0},get canRedo(){return r<n.length-1}}}var Ey={"load.loading":`Loading the editor…`,"load.failed":`Couldn't load the editor: {message}`,"load.retry":`Try again`,"load.invalidDraft":`This page's draft can't be read ({issue}).`,"load.offline":`You seem to be offline.`,"toolbar.pageSelect":`Page being edited`,"toolbar.newPage":`Page`,"toolbar.newPageHint":`Create another page`,"toolbar.desktop":`Desktop`,"toolbar.mobile":`Phone`,"toolbar.device":`Device`,"toolbar.undo":`Undo (Ctrl+Z)`,"toolbar.redo":`Redo (Ctrl+Shift+Z)`,"toolbar.preview":`Preview`,"toolbar.previewHint":`See the page without the editor guides`,"toolbar.edit":`Edit`,"toolbar.editHint":`Back to editing`,"toolbar.versions":`Versions`,"toolbar.versionsHint":`Go back to a published version`,"toolbar.theme":`Theme`,"toolbar.site":`Site`,"toolbar.siteHint":`Search engines, sharing and site details`,"toolbar.viewSite":`View site`,"toolbar.publish":`Publish`,"toolbar.publishing":`Publishing…`,"status.published":`Published`,"status.unpublished":`Not published`,"save.idle":`Changes save automatically`,"save.pending":`Unsaved changes`,"save.saving":`Saving…`,"save.saved":`Draft saved {time}`,"save.offline":`You're offline. Changes will save when the connection is back.`,"save.failed":`Couldn't save: {message}`,"save.retry":`Retry`,"save.invalid":`Some values are not valid ({issue}). Fix them to keep saving.`,"save.conflict":`This page was changed somewhere else`,"conflict.title":`This page changed somewhere else`,"conflict.body":`Someone saved a newer version of this page, maybe you in another tab. Reload it to keep editing. Changes made here since the last save will be lost.`,"conflict.reload":`Reload the page`,"common.duplicate":`Duplicate`,"common.delete":`Delete`,"common.cancel":`Cancel`,"common.close":`Close`,"common.remove":`Remove`,"common.choose":`Choose`,"common.add":`Add`,"common.new":`New`,"tabs.elements":`Elements`,"tabs.blocks":`Blocks`,"tabs.layers":`Layers`,"tabs.modals":`Modals`,"tabs.media":`Media`,"elements.addHint":`Click to add it, or drag it onto the canvas`,"elements.app":`From your app`,"elements.appHint":`These elements show live data from your app.`,"elements.sectionsHint":`A whole section, ready to edit. It lands at the end of the page.`,"elements.sections":`Ready-made sections`,"elements.form":`Form`,"elements.formHint":`Fields are sent by a button whose action is "Submit the form". They must be in the same section or modal as the button.`,"layers.count":`{n} sections`,"layers.modal":`Modal {title}`,"layers.section":`Section {n}`,"layers.expand":`Expand section`,"layers.collapse":`Collapse section`,"layers.up":`Move section up`,"layers.down":`Move section down`,"layers.lock":`Lock`,"layers.unlock":`Unlock`,"layers.empty":`No elements`,"modals.hint":`A button with the "Open a modal" action opens them`,"modals.defaultTitle":`More information`,"modals.titleLabel":`Modal title`,"modals.delete":`Delete modal`,"modals.elements":`{n} elements`,"modals.edit":`Edit content`,"modals.empty":`No modals yet.`,"media.hint":`Drag an image onto the canvas or click to add it`,"media.upload":`Upload`,"media.empty":`You haven't uploaded any images yet.`,"type.heading":`Heading`,"type.text":`Text`,"type.image":`Image`,"type.button":`Button`,"type.divider":`Divider`,"type.video":`Video`,"type.shape":`Shape`,"type.icon":`Icon`,"type.box":`Box`,"el.boxFlow":`It lays them out`,"el.boxFlow.column":`One under the other`,"el.boxFlow.row":`Side by side`,"el.boxEmpty":`Empty. Select it and add elements, or group what you already placed.`,"el.boxHolds":`It holds {n}. They follow the box, so they are not dragged.`,"el.group":`Group into a box`,"el.groupHint":`A box lays out what it holds, so nothing inside it is dragged any more.`,"el.ungroup":`Take out of the box`,"type.gallery":`Gallery`,"type.slider":`Slider`,"el.galleryItem":`Picture {n}`,"el.gallery":`Pictures`,"el.galleryAdd":`Add a picture`,"el.sliderArrows":`Arrows to move it`,"el.sliderDots":`Dots under it`,"el.sliderAutoplay":`Move by itself`,"el.sliderInterval":`Seconds on each picture`,"el.galleryHint":`They are shown in this order; the first one leads.`,"el.galleryLayout":`Shown as`,"el.gallery.grid":`Grid`,"el.gallery.strip":`Strip that scrolls`,"el.galleryColumns":`Columns`,"el.galleryRemove":`Remove`,"type.navbar":`Navigation bar`,"type.input":`Text field`,"type.textarea":`Long text field`,"type.select":`Dropdown`,"type.checkbox":`Checkbox`,"type.unknown":`Unavailable element`,"menu.copy":`Copy`,"menu.paste":`Paste`,"menu.lock":`Lock`,"menu.unlock":`Unlock`,"zoom.label":`Zoom`,"zoom.in":`Zoom in`,"zoom.out":`Zoom out`,"zoom.fit":`Fit to the window`,"zoom.actual":`Actual size`,"canvas.title":`Page canvas`,"canvas.editingModal":`Editing the modal "{title}"`,"canvas.backToPage":`Back to the page`,"canvas.emptyPage":`Add a heading, a text and a button from the left panel, and arrange them by dragging.`,"canvas.emptyModal":`Drag elements or fields here: this is the content of the modal.`,"canvas.toolbar":`Element actions`,"canvas.front":`Bring to front`,"canvas.back":`Send to back`,"canvas.radius":`Round the corners, now {n} px`,"canvas.rotate":`Rotate, now {n}°. With Shift, in steps of 15°`,"canvas.resize":`Resize ({handle})`,"canvas.corners":`Corners {n} px`,"canvas.sticky":`Sticky on scroll`,"canvas.emptyImage":`Choose an image`,"canvas.emptyVideo":`Paste a YouTube or Vimeo link`,"canvas.stacked":`On phones this section stacks its elements by itself.`,"canvas.loadingPreview":`Loading preview…`,"canvas.previewFailed":`Couldn't load the preview`,"canvas.invalid":`The canvas shows the last valid version: {issue}`,"canvas.locked":`Locked`,"panel.design":`Design`,"panel.page":`Page`,"panel.nothing":`Select a section or an element on the canvas.`,"multi.count":`{n} elements selected`,"multi.align":`Align`,"multi.distribute":`Distribute`,"multi.distributeX":`Distribute horizontally`,"multi.distributeY":`Distribute vertically`,"multi.distributeHint":`Distributing needs three or more elements.`,"multi.group":`Group`,"multi.ungroup":`Ungroup`,"multi.lock":`Lock or unlock`,"multi.menuHint":`Right-click the selection to group, lock, reorder, duplicate or delete it.`,"multi.hint":`Shift-click adds or removes elements from the selection. Grouped elements are selected together.`,"align.left":`Align left`,"align.hcenter":`Center horizontally`,"align.right":`Align right`,"align.top":`Align top`,"align.vmiddle":`Center vertically`,"align.bottom":`Align bottom`,"modal.heading":`Modal`,"modal.title":`Title`,"modal.showTitle":`Show it at the top of the modal`,"modal.showTitleHint":`Hidden, it still names the modal and screen readers still read it.`,"modal.size":`Size`,"modal.size.sm":`Small`,"modal.size.md":`Medium`,"modal.size.lg":`Large`,"modal.size.xl":`Extra large`,"modal.size.full":`Full screen`,"modal.width":`Custom width`,"modal.fullHint":`At full screen the modal fills the browser and is designed on 1200 px.`,"modal.background":`Background color`,"section.heading":`Section`,"section.addAfter":`Add a section below`,"section.duplicate":`Duplicate section`,"canvas.emptySection":`This section is empty: drag an element here.`,"section.delete":`Delete section`,"section.shownAs":`Shown as`,"section.alone":`Regular section`,"section.tab":`Tab of the previous group`,"section.step":`Step of the previous group`,"section.groupLabel":`Name of the tab or step`,"section.groupHint":`Consecutive sections of the same group show one at a time, with a bar of tabs or steps.`,"section.stepLabel":`Step {n}`,"section.anchor":`Anchor id`,"section.anchorHint":`Links with the "Go to a section" action use it.`,"section.fitHeight":`Fit height to content`,"section.generateMobile":`Generate phone layout`,"section.heightDesktop":`Desktop height`,"section.heightMobile":`Phone height`,"fill.video":`Video`,"section.video":`Video address`,"section.videoHint":`An https link to an .mp4 or .webm file. It plays muted and on a loop.`,"section.poster":`Image while the video loads`,"section.flow":`Lay it out`,"section.flowHint":`On its own, the section places its elements one after another and grows with them.`,"section.flow.free":`By hand`,"section.flow.column":`One under the other`,"section.flow.row":`Side by side`,"section.flowGap":`Space between`,"section.flowAlign":`Alignment`,"section.align.start":`To the start`,"section.align.center":`Centred`,"section.align.end":`To the end`,"section.align.between":`Spread out`,"section.wide":`Edge to edge`,"section.wideHint":`The section spans the screen instead of the theme's width.`,"section.background":`Background`,"section.color":`Section color`,"section.image":`Background image`,"section.chooseImage":`Choose image`,"section.parallax":`Parallax effect on scroll`,"section.overlay":`Darken the image`,"fill.color":`Color`,"fill.gradient":`Gradient`,"fill.image":`Image`,"gradient.from":`From`,"gradient.to":`To`,"gradient.shape":`Shape`,"gradient.linear":`Linear`,"gradient.radial":`Radial`,"gradient.angle":`Angle`,"gradient.preset.primary":`Primary`,"gradient.preset.soft":`Soft`,"gradient.preset.halo":`Halo`,"gradient.preset.night":`Night`,"page.title":`Page title`,"page.address":`Address`,"page.home":`Home page`,"page.saveAddress":`Save address`,"page.addressSaved":`Address saved.`,"page.delete":`Delete page`,"page.deleteConfirm":`Delete the page "{title}"? This cannot be undone.`,"page.deleted":`Page deleted.`,"page.templates":`Start from a template`,"page.seoTitle":`Title for search engines`,"page.seoTitleHint":`It's what shows in the browser tab and on search engines.`,"page.description":`Description`,"page.shortcuts":`Shortcuts`,"page.shortcutUndo":`Ctrl+Z undoes, Ctrl+Shift+Z redoes`,"page.shortcutSave":`Ctrl+S saves the draft`,"page.shortcutCopy":`Ctrl+C, Ctrl+V and Ctrl+D copy, paste and duplicate`,"page.shortcutNudge":`Arrow keys nudge the selection, with Shift they move it further`,"newPage.title":`New page`,"newPage.description":`Each page lives at its own address on your site.`,"newPage.titleLabel":`Title`,"newPage.slug":`Address`,"newPage.slugPlaceholder":`services`,"newPage.at":`It will be at {url}`,"newPage.create":`Create page`,"toolbar.submissions":`Messages`,"toolbar.submissionsHint":`What visitors sent through your forms`,"submissions.title":`Form messages`,"submissions.description":`What visitors sent through the forms on your pages, newest first.`,"submissions.empty":`No messages yet.`,"submissions.more":`Load more`,"submissions.from":`/{page} · {source}`,"submissions.failed":`Couldn't load the messages: {message}`,"submissions.checked":`Yes`,"submissions.unchecked":`No`,"versions.title":`Published versions`,"versions.description":`Every publish keeps the previous one. Restoring brings it back to the draft without touching what visitors see until you publish.`,"versions.by":`Published by {name}`,"versions.restore":`Restore`,"versions.restored":`Version restored to the draft.`,"versions.empty":`Nothing has been published yet.`,"publish.done":`Published.`,"publish.failed":`Couldn't publish: {message}`,"theme.title":`Site theme`,"theme.description":`Colors and fonts that every page uses.`,"theme.palettes":`Palettes`,"theme.colors":`Colors`,"theme.link":`Link the elements to this palette`,"theme.linkHint":`Elements with their own color don't follow the palette. This button moves them to the closest theme color.`,"theme.headingFont":`Heading font`,"theme.bodyFont":`Body font`,"theme.radius":`Corners`,"theme.maxWidth":`Content max width`,"theme.width.1080":`Narrow, 1080 px`,"theme.width.1200":`Standard, 1200 px`,"theme.width.1320":`Wide, 1320 px`,"theme.width.1440":`Extra wide, 1440 px`,"theme.previewLabel":`Theme preview`,"theme.previewHeading":`Pages that look cared for`,"theme.previewText":`This is how headings and text will look on your site.`,"theme.previewButton":`Get started`,"theme.save":`Save theme`,"theme.saved":`Theme saved.`,"palette.blue":`Classic blue`,"palette.mint":`Mint`,"palette.sand":`Sand`,"palette.indigo":`Indigo`,"palette.graphite":`Graphite`,"token.primary":`Primary`,"token.secondary":`Secondary`,"token.background":`Background`,"token.surface":`Surface`,"token.text":`Text`,"token.muted":`Muted text`,"font.Inter":`Neutral and modern`,"font.Poppins":`Geometric and friendly`,"font.Montserrat":`Wide, good for headings`,"font.DM Sans":`Clean and compact`,"font.Work Sans":`Sober, very legible`,"font.Nunito":`Rounded and warm`,"font.Lora":`Classic serif`,"font.Playfair Display":`Elegant serif`,"font.Merriweather":`Sturdy serif`,"font.Source Sans 3":`Institutional`,"site.title":`Site settings`,"site.description":`What search engines and social networks see, and details about your site.`,"site.seoTitle":`Default title for search engines`,"site.seoDescription":`Default description`,"site.shareImage":`Share image`,"site.shareImageHint":`Shown when the link is pasted in a chat or a social network.`,"site.favicon":`Browser icon`,"site.locale":`Language of the published pages`,"site.details":`Details`,"site.save":`Save settings`,"site.saved":`Settings saved.`,"library.title":`Images`,"library.description":`Photos and graphics, ready to use on any page.`,"library.upload":`Upload image`,"library.uploading":`Uploading…`,"library.formats":`JPG, PNG, WebP, AVIF or SVG`,"library.use":`Use {name}`,"library.delete":`Delete {name}`,"library.uploadFailed":`Couldn't upload the image: {message}`,"library.deleteFailed":`Couldn't delete the image: {message}`,"library.quota":`{used} of {limit} used`,"el.text":`Text`,"el.accent":`Part in another color`,"el.accentPlaceholder":`Type the words to highlight`,"el.accentColor":`Highlight color`,"el.level":`Hierarchy`,"el.level.1":`Main title`,"el.level.2":`Section title`,"el.level.3":`Subtitle`,"el.level.4":`Small subtitle`,"el.image":`Image`,"el.chooseFromLibrary":`Choose from the library`,"el.imageUrl":`or paste an https:// address`,"el.alt":`Alternative text`,"el.altPlaceholder":`What's in the image`,"el.fit":`Fit`,"el.fit.cover":`Crop to fill`,"el.fit.contain":`Show it whole`,"el.crop":`Crop`,"el.shape":`Shape`,"el.opacity":`Opacity`,"shape.rectangle":`Rectangle`,"shape.ellipse":`Circle`,"shape.triangle":`Triangle`,"shape.blob":`Blob`,"shape.arch":`Arch`,"shape.diagonal":`Diagonal`,"shape.dots":`Dot pattern`,"shape.grid":`Grid pattern`,"el.videoUrl":`Video link`,"el.videoHint":`YouTube and Vimeo links work. The video loads only when the visitor reaches it.`,"el.buttonLabel":`Button text`,"el.action":`Action`,"action.none":`No action`,"action.whatsapp":`WhatsApp`,"action.phone":`Call`,"action.email":`Email`,"action.url":`External link`,"action.anchor":`Go to a section`,"action.modal":`Open a modal`,"action.submit":`Submit the form`,"action.page":`Go to another page`,"action.top":`Back to top`,"action.back":`Go back`,"action.step_next":`Next step`,"action.step_prev":`Previous step`,"action.chooseModal":`Select a modal`,"action.choosePage":`Select a page`,"action.placeholder.whatsapp":`+15551234567`,"action.placeholder.phone":`+15551234567`,"action.placeholder.email":`hello@example.com`,"action.placeholder.anchor":`Section id`,"action.placeholder.url":`https://…`,"action.submitHint":`Sends the fields in this same section or modal.`,"el.presets":`Presets`,"navbar.preset.split":`Brand and links`,"navbar.preset.center":`Centered`,"navbar.preset.dark":`Dark`,"navbar.preset.pill":`Pill`,"navbar.preset.card":`Card`,"navbar.preset.underline":`Underline`,"navbar.preset.divided":`Divided`,"el.navbarTemplate":`Template`,"el.navbarTemplate.plain":`Plain`,"el.navbarTemplate.pill":`Pill`,"el.navbarTemplate.card":`Card`,"el.navbarTemplate.underline":`Underline`,"el.navbarTemplate.divided":`Divided`,"el.brand":`Brand`,"el.brandPlaceholder":`Your brand name`,"el.sticky":`Stick to the top on scroll`,"el.scrollStyle":`When scrolling`,"el.scroll.same":`Stays the same`,"el.scroll.shadow":`Gains a shadow`,"el.scroll.solid":`Solid background and shadow`,"el.scroll.compact":`Shrinks, solid and with a shadow`,"el.scrollBackground":`Background once it scrolls`,"el.scrollColor":`Text once it scrolls`,"el.scrollColorsHint":`A bar that starts transparent over a photo needs its own colors once the page moves, or it turns invisible.`,"el.notSticky":`Not sticky: the menu stays where you put it and scrolls away with the page.`,"el.layout":`Layout`,"el.layout.split":`Brand and links on each side`,"el.layout.left":`All to the left`,"el.layout.center":`All centered`,"el.links":`Links`,"el.linkLabel":`Link text`,"el.removeLink":`Remove link`,"el.linksHint":`On phones the links fold into a dropdown menu.`,"el.icon":`Icon`,"el.iconSearch":`Search: heart, calendar, phone…`,"el.noResults":`No results.`,"el.stroke":`Stroke width`,"el.fieldLabel":`Label`,"el.inputType":`Data type`,"el.inputType.text":`Text`,"el.inputType.email":`Email`,"el.inputType.tel":`Phone`,"el.inputType.number":`Number`,"el.inputType.date":`Date`,"el.options":`Options`,"el.optionsHint":`One option per line.`,"el.placeholder":`Help text`,"el.multiple":`Several answers`,"el.required":`Required`,"el.unknown":`This element comes from a plugin that is not installed. It is kept as it is and cannot be edited.`,"style.fill":`Color and fill`,"style.color":`Color`,"style.background":`Background`,"style.backgroundType":`Background type`,"style.backgroundColor":`Background color`,"style.transparency":`Transparency`,"style.glass":`Glass`,"style.glassHint":`Blurs what is behind. With a see-through background it gives a glass effect.`,"style.text":`Text`,"style.fontHeading":`Headings`,"style.fontBody":`Body`,"style.size":`Size`,"style.weight":`Font weight`,"style.weight.300":`Light`,"style.weight.400":`Regular`,"style.weight.500":`Medium`,"style.weight.600":`Semibold`,"style.weight.700":`Bold`,"style.weight.800":`Extra bold`,"style.align.left":`Left`,"style.align.center":`Center`,"style.align.right":`Right`,"style.sizeMobile":`Size on phones`,"style.tracking":`Letter spacing`,"style.case":`Letters`,"style.case.none":`As written`,"style.case.upper":`UPPERCASE`,"style.case.lower":`lowercase`,"style.case.title":`Title Case`,"style.face":`Face`,"style.face.solid":`Solid`,"style.face.outline":`Hollow`,"style.face.glow":`Glowing`,"style.autoHeight":`Grow with the text`,"style.autoHeightHint":`The box takes the height its text needs, so a longer line never gets cropped.`,"style.lineHeight":`Line height`,"style.frame":`Frame`,"style.radius":`Corners`,"style.padding":`Padding`,"style.border":`Border`,"style.layer":`Layer`,"style.borderColor":`Border color`,"style.finish":`Finish`,"style.finish.flat":`Flat`,"style.finish.glass":`Frosted glass`,"style.finish.soft":`Soft relief`,"style.finish.pressed":`Pressed in`,"style.finish.glassHint":`Glass blurs whatever is behind it, so it needs a see-through fill and something under it.`,"style.shadow":`Shadow`,"style.shadow.none":`No shadow`,"style.shadow.sm":`Subtle`,"style.shadow.md":`Medium`,"style.shadow.lg":`Strong`,"style.shadow.custom":`Custom`,"style.customShadow":`Custom shadow`,"style.shadowBlur":`Blur`,"style.shadowSpread":`Spread`,"style.shadowColor":`Shadow color`,"style.shadowOpacity":`Intensity`,"style.transform":`Transform`,"style.rotate":`Rotation`,"style.straighten":`Straighten`,"style.flipX":`Flip horizontally`,"style.flipY":`Flip vertically`,"style.overflow":`Content that overflows`,"style.overflow.visible":`Fully visible`,"style.overflow.hidden":`Clipped`,"style.overflow.scroll-x":`Scrolls sideways`,"style.overflow.scroll-y":`Scrolls down`,"style.visibleOn":`Shown on`,"style.visible.all":`All devices`,"style.visible.desktop":`Desktop only`,"style.visible.mobile":`Phone only`,"style.transformHint":`On the canvas, rotate with the handle below the bottom corner and round the corners with the dot at the top. With Shift, rotation goes in steps of 15°.`,"style.motion":`Motion`,"style.entrance":`On appear`,"style.anim.none":`No animation`,"style.anim.fade":`Fade in`,"style.anim.up":`Rise`,"style.anim.down":`Drop`,"style.anim.left":`Enter from the left`,"style.anim.right":`Enter from the right`,"style.anim.zoom":`Zoom in`,"style.delay":`Delay`,"style.duration":`Duration`,"style.anim.blur":`Come into focus`,"style.anim.reveal":`Wipe across`,"style.hover.sink":`Press in`,"style.hover.tilt":`Tilt`,"style.hover.glow":`Glow`,"style.scroll":`With the scroll`,"style.scrollHint":`Moves while it crosses the screen, where the browser supports it.`,"style.scroll.none":`Still`,"style.scroll.rise":`Rise`,"style.scroll.drift":`Drift sideways`,"style.scroll.zoom":`Zoom in`,"el.navbarTemplate.floating":`Floating`,"el.navbarTemplate.boxed":`Boxed links`,"el.navbarTemplate.ribbon":`Ribbon`,"el.navbarTemplate.outline":`Outlined`,"el.navbarTemplate.minimal":`Minimal`,"el.navbarTemplate.stack":`Brand above the links`,"el.navbarTemplate.rail":`Rail down the side`,"el.navbarPosition":`Where it sticks`,"el.navbarPosition.top":`Top of the screen`,"el.navbarPosition.bottom":`Bottom of the screen`,"el.layout.right":`Links first`,"el.navbarTemplate.tracked":`Spaced out`,"style.hover":`On hover`,"style.hover.none":`Nothing`,"style.hover.lift":`Lift`,"style.hover.grow":`Grow`,"style.hover.fade":`Dim`,"style.motionHint":`Animations play in the preview and on the published site.`,"position.title":`Position on {device}`,"position.desktop":`desktop`,"position.mobile":`phone`,"position.width":`W`,"position.height":`H`,"position.pinned":`Fixed while scrolling`,"position.pinnedHint":`It stays in place on the screen while the page scrolls, like a floating button or a bar.`,"position.own":`Own position on phones.`,"position.inherit":`Use the desktop position again`,"position.inherited":`Uses the desktop position. Moving it here gives it its own; while any element uses the desktop one, the section stacks on phones.`,"color.custom":`Custom`,"color.customLabel":`{label}, custom color`,"toast.copied":`Element copied.`,"toast.copiedMany":`{n} elements copied.`,"toast.copyFailed":`Couldn't copy in this browser.`,"toast.pasted":`Pasted into this section.`,"toast.mobileGenerated":`Phone layout generated. Adjust whatever you like.`,"toast.pageCreated":`Page created.`,"toast.failed":`Something went wrong: {message}`,"toast.dismiss":`Dismiss`,"default.heading":`A heading that invites people in`,"default.text":`Say in one sentence what makes you different.`,"default.button":`Get started`,"default.video":`Video`,"default.field":`Name`,"default.fieldPlaceholder":`Type here`,"default.checkbox":`I agree to the processing of my data`,"default.option":`Option {n}`,"default.brand":`Your brand`,"default.link":`Link`,"default.link.home":`Home`,"default.link.features":`Features`,"default.link.about":`About`,"default.link.contact":`Contact`,"default.link.start":`Get started`,"template.group.open":`Open the page`,"template.group.tell":`Tell it`,"template.group.convince":`Back it up`,"template.group.close":`Close it`,"template.heroCentered":`Centered opening`,"template.heroSlider":`Opening with a slider`,"template.steps":`How it works`,"template.gallery":`Gallery`,"template.faq":`Questions`,"template.logos":`Logos`,"template.testimonial":`What they said`,"template.stats":`Numbers`,"template.team":`Team`,"template.pricing":`Plans`,"template.newsletter":`Sign up for news`,"template.footerBig":`Footer with columns`,"template.hero":`Hero`,"template.features":`Features`,"template.about":`About`,"template.cta":`Call to action`,"template.contact":`Contact form`,"template.footer":`Footer`,"pageTemplate.full":`Complete page`,"pageTemplate.full.note":`Hero, features, about, call to action and footer`,"pageTemplate.simple":`Direct`,"pageTemplate.simple.note":`Hero, features and a contact form`,"pageTemplate.landing":`Single offer`,"pageTemplate.landing.note":`Hero, call to action and a form`,"position.x":`X`,"position.y":`Y`,"style.font":`Font`,"style.align":`Text alignment`,"gradient.presets":`Suggested gradients`,"action.target":`Destination`,"action.unknown":`Unavailable action ({type})`,"el.linkN":`Link {n}`,"el.videoPlaceholder":`https://youtu.be/…`,"el.iconOptions":`Available icons`,"page.homeHint":`The home page lives at the root of the site, so its address doesn't change and it can't be deleted.`,"section.anchorInvalid":`Use letters, numbers, - or _, and an id no other section or modal has.`,"newPage.slugFallback":`address`,"theme.hex":`{label}, hex code`,"site.localeHint":`Two letters, optionally with the country: en, es, pt-BR.`},Dy={en:Ey,es:{"load.loading":`Cargando el editor...`,"load.failed":`No se pudo cargar el editor: {message}`,"load.retry":`Intentar de nuevo`,"load.invalidDraft":`No se puede leer el borrador de esta página ({issue}).`,"load.offline":`Parece que no hay conexión.`,"toolbar.pageSelect":`Página que se edita`,"toolbar.newPage":`Página`,"toolbar.newPageHint":`Crear otra página`,"toolbar.desktop":`Escritorio`,"toolbar.mobile":`Celular`,"toolbar.device":`Dispositivo`,"toolbar.undo":`Deshacer, Ctrl+Z`,"toolbar.redo":`Rehacer, Ctrl+Shift+Z`,"toolbar.preview":`Vista previa`,"toolbar.previewHint":`Ver la página sin las guías del editor`,"toolbar.edit":`Editar`,"toolbar.editHint":`Volver a editar`,"toolbar.versions":`Versiones`,"toolbar.versionsHint":`Volver a una versión publicada`,"toolbar.theme":`Tema`,"toolbar.site":`Sitio`,"toolbar.siteHint":`Datos para buscadores, redes y el sitio`,"toolbar.viewSite":`Ver sitio`,"toolbar.publish":`Publicar`,"toolbar.publishing":`Publicando...`,"status.published":`Publicado`,"status.unpublished":`Sin publicar`,"save.idle":`Los cambios se guardan solos`,"save.pending":`Cambios sin guardar`,"save.saving":`Guardando...`,"save.saved":`Borrador guardado {time}`,"save.offline":`Sin conexión. Los cambios se guardarán cuando vuelva.`,"save.failed":`No se pudo guardar: {message}`,"save.retry":`Reintentar`,"save.invalid":`Hay valores no válidos ({issue}). Corrígelos para seguir guardando.`,"save.conflict":`Esta página se cambió en otro lugar`,"conflict.title":`Esta página cambió en otro lugar`,"conflict.body":`Alguien guardó una versión más nueva de esta página, quizá tú en otra pestaña. Recárgala para seguir editando. Lo que cambiaste aquí desde el último guardado se perderá.`,"conflict.reload":`Recargar la página`,"common.duplicate":`Duplicar`,"common.delete":`Eliminar`,"common.cancel":`Cancelar`,"common.close":`Cerrar`,"common.remove":`Quitar`,"common.choose":`Elegir`,"common.add":`Agregar`,"common.new":`Nueva`,"tabs.elements":`Elementos`,"tabs.blocks":`Bloques`,"tabs.layers":`Capas`,"tabs.modals":`Ventanas`,"tabs.media":`Medios`,"elements.addHint":`Haz clic para agregarlo, o arrástralo al lienzo`,"elements.app":`De tu aplicación`,"elements.appHint":`Estos elementos muestran datos vivos de tu aplicación.`,"elements.sectionsHint":`Una sección entera, lista para editar. Entra al final de la página.`,"elements.sections":`Secciones listas`,"elements.form":`Formulario`,"elements.formHint":`Los campos se envían con un botón cuya acción sea «Enviar el formulario». Deben estar en la misma sección o ventana que el botón.`,"layers.count":`{n} secciones`,"layers.modal":`Ventana {title}`,"layers.section":`Sección {n}`,"layers.expand":`Desplegar sección`,"layers.collapse":`Plegar sección`,"layers.up":`Subir sección`,"layers.down":`Bajar sección`,"layers.lock":`Bloquear`,"layers.unlock":`Desbloquear`,"layers.empty":`Sin elementos`,"modals.hint":`Las abre un botón con la acción «Abrir una ventana»`,"modals.defaultTitle":`Más información`,"modals.titleLabel":`Título de la ventana`,"modals.delete":`Eliminar ventana`,"modals.elements":`{n} elementos`,"modals.edit":`Editar contenido`,"modals.empty":`Todavía no hay ventanas.`,"media.hint":`Arrastra una imagen al lienzo o haz clic para agregarla`,"media.upload":`Subir`,"media.empty":`Todavía no has subido imágenes.`,"type.heading":`Título`,"type.text":`Texto`,"type.image":`Imagen`,"type.button":`Botón`,"type.divider":`Separador`,"type.video":`Video`,"type.shape":`Figura`,"type.icon":`Icono`,"type.box":`Caja`,"el.boxFlow":`Los acomoda`,"el.boxFlow.column":`Uno debajo del otro`,"el.boxFlow.row":`Uno al lado del otro`,"el.boxEmpty":`Vacía. Selecciónala y agrega elementos, o agrupa lo que ya pusiste.`,"el.boxHolds":`Lleva {n} dentro. Los acomoda ella, así que no se arrastran.`,"el.group":`Agrupar en una caja`,"el.groupHint":`La caja acomoda lo que lleva dentro, así que ya nada de eso se arrastra.`,"el.ungroup":`Sacar de la caja`,"type.gallery":`Galería`,"type.slider":`Deslizador`,"el.galleryItem":`Imagen {n}`,"el.gallery":`Imágenes`,"el.galleryAdd":`Agregar una imagen`,"el.sliderArrows":`Flechas para moverlo`,"el.sliderDots":`Puntos debajo`,"el.sliderAutoplay":`Que se mueva solo`,"el.sliderInterval":`Segundos en cada imagen`,"el.galleryHint":`Se muestran en este orden; la primera abre.`,"el.galleryLayout":`Se muestra como`,"el.gallery.grid":`Cuadrícula`,"el.gallery.strip":`Tira que se desliza`,"el.galleryColumns":`Columnas`,"el.galleryRemove":`Quitar`,"type.navbar":`Menú de navegación`,"type.input":`Campo de texto`,"type.textarea":`Campo largo`,"type.select":`Lista desplegable`,"type.checkbox":`Casilla`,"type.unknown":`Elemento no disponible`,"menu.copy":`Copiar`,"menu.paste":`Pegar`,"menu.lock":`Bloquear`,"menu.unlock":`Desbloquear`,"zoom.label":`Zoom`,"zoom.in":`Acercar`,"zoom.out":`Alejar`,"zoom.fit":`Ajustar a la ventana`,"zoom.actual":`Tamaño real`,"canvas.title":`Lienzo de la página`,"canvas.editingModal":`Editando la ventana «{title}»`,"canvas.backToPage":`Volver a la página`,"canvas.emptyPage":`Agrega un título, un texto y un botón desde el panel izquierdo, y acomódalos arrastrando.`,"canvas.emptyModal":`Arrastra elementos o campos aquí: es el contenido de la ventana.`,"canvas.toolbar":`Acciones del elemento`,"canvas.front":`Traer al frente`,"canvas.back":`Enviar atrás`,"canvas.radius":`Redondear esquinas, ahora {n} px`,"canvas.rotate":`Girar, ahora {n}°. Con Mayús, de 15 en 15`,"canvas.resize":`Redimensionar ({handle})`,"canvas.corners":`Esquinas {n} px`,"canvas.sticky":`Fijo al bajar`,"canvas.emptyImage":`Elige una imagen`,"canvas.emptyVideo":`Pega el enlace de YouTube o Vimeo`,"canvas.stacked":`En celular esta sección apila sus elementos sola.`,"canvas.loadingPreview":`Cargando vista previa...`,"canvas.previewFailed":`No se pudo cargar la vista previa`,"canvas.invalid":`El lienzo muestra la última versión válida: {issue}`,"canvas.locked":`Bloqueado`,"panel.design":`Diseño`,"panel.page":`Página`,"panel.nothing":`Selecciona una sección o un elemento del lienzo.`,"multi.count":`{n} elementos seleccionados`,"multi.align":`Alinear`,"multi.distribute":`Repartir`,"multi.distributeX":`Repartir en horizontal`,"multi.distributeY":`Repartir en vertical`,"multi.distributeHint":`Repartir necesita tres elementos o más.`,"multi.group":`Agrupar`,"multi.ungroup":`Desagrupar`,"multi.lock":`Bloquear o desbloquear`,"multi.menuHint":`Haz clic derecho en la selección para agrupar, bloquear, reordenar, duplicar o eliminar.`,"multi.hint":`Mayús y clic agrega o quita elementos de la selección. Los agrupados se seleccionan juntos.`,"align.left":`Alinear a la izquierda`,"align.hcenter":`Centrar horizontalmente`,"align.right":`Alinear a la derecha`,"align.top":`Alinear arriba`,"align.vmiddle":`Centrar verticalmente`,"align.bottom":`Alinear abajo`,"modal.heading":`Ventana`,"modal.title":`Título`,"modal.showTitle":`Mostrarlo arriba de la ventana`,"modal.showTitleHint":`Si lo ocultas sigue sirviendo para reconocer la ventana y para los lectores de pantalla.`,"modal.size":`Tamaño`,"modal.size.sm":`Pequeña`,"modal.size.md":`Mediana`,"modal.size.lg":`Grande`,"modal.size.xl":`Muy grande`,"modal.size.full":`Pantalla completa`,"modal.width":`Ancho a medida`,"modal.fullHint":`A pantalla completa la ventana ocupa todo el navegador y el diseño se hace sobre 1200 px.`,"modal.background":`Color de fondo`,"section.heading":`Sección`,"section.addAfter":`Agregar una sección debajo`,"section.duplicate":`Duplicar la sección`,"canvas.emptySection":`Esta sección está vacía: arrastra un elemento aquí.`,"section.delete":`Eliminar sección`,"section.shownAs":`Se muestra como`,"section.alone":`Sección normal`,"section.tab":`Pestaña del grupo anterior`,"section.step":`Paso del grupo anterior`,"section.groupLabel":`Nombre de la pestaña o del paso`,"section.groupHint":`Las secciones seguidas del mismo grupo se ven de a una, con su barra de pestañas o de pasos.`,"section.stepLabel":`Paso {n}`,"section.anchor":`Identificador para anclas`,"section.anchorHint":`Lo usan los enlaces con la acción «Ir a una sección».`,"section.fitHeight":`Ajustar alto al contenido`,"section.generateMobile":`Generar vista de celular`,"section.heightDesktop":`Alto escritorio`,"section.heightMobile":`Alto celular`,"fill.video":`Video`,"section.video":`Dirección del video`,"section.videoHint":`Un enlace https a un archivo .mp4 o .webm. Se reproduce en silencio y en bucle.`,"section.poster":`Imagen mientras carga el video`,"section.flow":`Acomodar`,"section.flowHint":`Sola, la sección pone sus elementos uno tras otro y crece con ellos.`,"section.flow.free":`A mano`,"section.flow.column":`Uno debajo del otro`,"section.flow.row":`Uno al lado del otro`,"section.flowGap":`Separación`,"section.flowAlign":`Alineación`,"section.align.start":`Al inicio`,"section.align.center":`Centrados`,"section.align.end":`Al final`,"section.align.between":`Repartidos`,"section.wide":`De borde a borde`,"section.wideHint":`La sección ocupa toda la pantalla en vez del ancho del tema.`,"section.background":`Fondo`,"section.color":`Color de la sección`,"section.image":`Imagen de fondo`,"section.chooseImage":`Elegir imagen`,"section.parallax":`Efecto parallax al bajar`,"section.overlay":`Oscurecer la imagen`,"fill.color":`Color`,"fill.gradient":`Degradado`,"fill.image":`Imagen`,"gradient.from":`Desde`,"gradient.to":`Hasta`,"gradient.shape":`Forma`,"gradient.linear":`Lineal`,"gradient.radial":`Circular`,"gradient.angle":`Ángulo`,"gradient.preset.primary":`Principal`,"gradient.preset.soft":`Suave`,"gradient.preset.halo":`Halo`,"gradient.preset.night":`Noche`,"page.title":`Título de la página`,"page.address":`Dirección`,"page.home":`Página de inicio`,"page.saveAddress":`Guardar dirección`,"page.addressSaved":`Dirección guardada.`,"page.delete":`Borrar página`,"page.deleteConfirm":`¿Borrar la página «{title}»? No se puede deshacer.`,"page.deleted":`Página borrada.`,"page.templates":`Empezar con una plantilla`,"page.seoTitle":`Título para buscadores`,"page.seoTitleHint":`Es lo que se lee en la pestaña del navegador y en los buscadores.`,"page.description":`Descripción`,"page.shortcuts":`Atajos`,"page.shortcutUndo":`Ctrl+Z deshace, Ctrl+Shift+Z rehace`,"page.shortcutSave":`Ctrl+S guarda el borrador`,"page.shortcutCopy":`Ctrl+C, Ctrl+V y Ctrl+D copian, pegan y duplican`,"page.shortcutNudge":`Las flechas mueven la selección, con Mayús la mueven más`,"newPage.title":`Nueva página`,"newPage.description":`Cada página vive en su propia dirección dentro del sitio.`,"newPage.titleLabel":`Título`,"newPage.slug":`Dirección`,"newPage.slugPlaceholder":`servicios`,"newPage.at":`Quedará en {url}`,"newPage.create":`Crear página`,"toolbar.submissions":`Mensajes`,"toolbar.submissionsHint":`Lo que los visitantes enviaron con tus formularios`,"submissions.title":`Mensajes de formularios`,"submissions.description":`Lo que los visitantes enviaron con los formularios de tus páginas, los más nuevos primero.`,"submissions.empty":`Todavía no hay mensajes.`,"submissions.more":`Cargar más`,"submissions.from":`/{page} · {source}`,"submissions.failed":`No se pudieron cargar los mensajes: {message}`,"submissions.checked":`Sí`,"submissions.unchecked":`No`,"versions.title":`Versiones publicadas`,"versions.description":`Cada publicación guarda la anterior. Restaurar la trae al borrador, sin tocar lo que ven los visitantes hasta que publiques.`,"versions.by":`Publicó {name}`,"versions.restore":`Restaurar`,"versions.restored":`Versión restaurada en el borrador.`,"versions.empty":`Todavía no se ha publicado nada.`,"publish.done":`Publicado.`,"publish.failed":`No se pudo publicar: {message}`,"theme.title":`Tema del sitio`,"theme.description":`Colores y tipografías que usan todas las páginas.`,"theme.palettes":`Paletas`,"theme.colors":`Colores`,"theme.link":`Enlazar los elementos a esta paleta`,"theme.linkHint":`Los elementos con color propio no cambian al cambiar la paleta. Ese botón los pasa al color del tema más parecido.`,"theme.headingFont":`Tipografía de títulos`,"theme.bodyFont":`Tipografía de textos`,"theme.radius":`Esquinas`,"theme.maxWidth":`Ancho máximo del contenido`,"theme.width.1080":`Angosto, 1080 px`,"theme.width.1200":`Estándar, 1200 px`,"theme.width.1320":`Amplio, 1320 px`,"theme.width.1440":`Muy amplio, 1440 px`,"theme.previewLabel":`Vista previa del tema`,"theme.previewHeading":`Páginas que se ven cuidadas`,"theme.previewText":`Así se verán los títulos y los textos de tu sitio.`,"theme.previewButton":`Empezar`,"theme.save":`Guardar tema`,"theme.saved":`Tema guardado.`,"palette.blue":`Azul clásico`,"palette.mint":`Menta`,"palette.sand":`Arena`,"palette.indigo":`Índigo`,"palette.graphite":`Grafito`,"token.primary":`Principal`,"token.secondary":`Secundario`,"token.background":`Fondo`,"token.surface":`Superficie`,"token.text":`Texto`,"token.muted":`Texto suave`,"font.Inter":`Neutra y moderna`,"font.Poppins":`Geométrica y amable`,"font.Montserrat":`Amplia, buena para títulos`,"font.DM Sans":`Limpia y compacta`,"font.Work Sans":`Sobria, muy legible`,"font.Nunito":`Redondeada y cercana`,"font.Lora":`Serif clásica`,"font.Playfair Display":`Serif elegante`,"font.Merriweather":`Serif firme`,"font.Source Sans 3":`Institucional`,"site.title":`Ajustes del sitio`,"site.description":`Lo que ven buscadores y redes, y los datos de tu sitio.`,"site.seoTitle":`Título por defecto para buscadores`,"site.seoDescription":`Descripción por defecto`,"site.shareImage":`Imagen al compartir`,"site.shareImageHint":`Es la que se ve al pegar el enlace en un chat o una red social.`,"site.favicon":`Icono del navegador`,"site.locale":`Idioma de las páginas publicadas`,"site.details":`Datos`,"site.save":`Guardar ajustes`,"site.saved":`Ajustes guardados.`,"library.title":`Imágenes`,"library.description":`Las fotos y gráficos, listos para usar en cualquier página.`,"library.upload":`Subir imagen`,"library.uploading":`Subiendo...`,"library.formats":`JPG, PNG, WebP, AVIF o SVG`,"library.use":`Usar {name}`,"library.delete":`Borrar {name}`,"library.uploadFailed":`No se pudo subir la imagen: {message}`,"library.deleteFailed":`No se pudo borrar la imagen: {message}`,"library.quota":`{used} de {limit} usados`,"el.text":`Texto`,"el.accent":`Parte en otro color`,"el.accentPlaceholder":`Escribe aquí las palabras a resaltar`,"el.accentColor":`Color del resalte`,"el.level":`Jerarquía`,"el.level.1":`Título principal`,"el.level.2":`Título de sección`,"el.level.3":`Subtítulo`,"el.level.4":`Subtítulo pequeño`,"el.image":`Imagen`,"el.chooseFromLibrary":`Elegir de la biblioteca`,"el.imageUrl":`o pega una dirección https://`,"el.alt":`Texto alternativo`,"el.altPlaceholder":`Qué se ve en la imagen`,"el.fit":`Ajuste`,"el.fit.cover":`Recortar para llenar`,"el.fit.contain":`Mostrar completa`,"el.crop":`Recorte`,"el.shape":`Figura`,"el.opacity":`Opacidad`,"shape.rectangle":`Rectángulo`,"shape.ellipse":`Círculo`,"shape.triangle":`Triángulo`,"shape.blob":`Mancha`,"shape.arch":`Arco`,"shape.diagonal":`Diagonal`,"shape.dots":`Trama de puntos`,"shape.grid":`Trama de rejilla`,"el.videoUrl":`Enlace del video`,"el.videoHint":`Acepta YouTube y Vimeo. El video se carga solo cuando el visitante llega a esa parte.`,"el.buttonLabel":`Texto del botón`,"el.action":`Acción`,"action.none":`Sin acción`,"action.whatsapp":`WhatsApp`,"action.phone":`Llamar`,"action.email":`Correo`,"action.url":`Enlace externo`,"action.anchor":`Ir a una sección`,"action.modal":`Abrir una ventana`,"action.submit":`Enviar el formulario`,"action.page":`Ir a otra página`,"action.top":`Volver arriba`,"action.back":`Volver atrás`,"action.step_next":`Paso siguiente`,"action.step_prev":`Paso anterior`,"action.chooseModal":`Selecciona una ventana`,"action.choosePage":`Selecciona una página`,"action.placeholder.whatsapp":`+573001112233`,"action.placeholder.phone":`+573001112233`,"action.placeholder.email":`hola@ejemplo.com`,"action.placeholder.anchor":`id de la sección`,"action.placeholder.url":`https://...`,"action.submitHint":`Envía los campos que estén en esta misma sección o ventana.`,"el.presets":`Prediseñados`,"navbar.preset.split":`Marca y enlaces`,"navbar.preset.center":`Centrado`,"navbar.preset.dark":`Oscuro`,"navbar.preset.pill":`Pastilla`,"navbar.preset.card":`Tarjeta`,"navbar.preset.underline":`Subrayado`,"navbar.preset.divided":`Dividido`,"el.navbarTemplate":`Plantilla`,"el.navbarTemplate.plain":`Simple`,"el.navbarTemplate.pill":`Pastilla`,"el.navbarTemplate.card":`Tarjeta`,"el.navbarTemplate.underline":`Subrayado`,"el.navbarTemplate.divided":`Dividido`,"el.brand":`Marca`,"el.brandPlaceholder":`Nombre de tu marca`,"el.sticky":`Fijar arriba al bajar la página`,"el.scrollStyle":`Al bajar la página`,"el.scroll.same":`Se queda igual`,"el.scroll.shadow":`Gana sombra`,"el.scroll.solid":`Fondo sólido y sombra`,"el.scroll.compact":`Se encoge, sólido y con sombra`,"el.scrollBackground":`Fondo al bajar`,"el.scrollColor":`Texto al bajar`,"el.scrollColorsHint":`Una barra que empieza transparente sobre una foto necesita sus propios colores al bajar, o se vuelve invisible.`,"el.notSticky":`Sin fijar, el menú se queda donde lo pusiste y se va con el desplazamiento.`,"el.layout":`Distribución`,"el.layout.split":`Marca y enlaces a los lados`,"el.layout.left":`Todo a la izquierda`,"el.layout.center":`Todo centrado`,"el.links":`Enlaces`,"el.linkLabel":`Texto del enlace`,"el.removeLink":`Quitar enlace`,"el.linksHint":`En celular los enlaces se recogen en un menú desplegable.`,"el.icon":`Icono`,"el.iconSearch":`Buscar: heart, calendar, phone...`,"el.noResults":`Sin resultados.`,"el.stroke":`Grosor del trazo`,"el.fieldLabel":`Etiqueta`,"el.inputType":`Tipo de dato`,"el.inputType.text":`Texto`,"el.inputType.email":`Correo`,"el.inputType.tel":`Teléfono`,"el.inputType.number":`Número`,"el.inputType.date":`Fecha`,"el.options":`Opciones`,"el.optionsHint":`Una opción por línea.`,"el.placeholder":`Texto de ayuda`,"el.multiple":`Varias respuestas`,"el.required":`Obligatorio`,"el.unknown":`Este elemento viene de un complemento que no está instalado. Se conserva tal cual y no se puede editar.`,"style.fill":`Color y fondo`,"style.color":`Color`,"style.background":`Fondo`,"style.backgroundType":`Tipo de fondo`,"style.backgroundColor":`Color de fondo`,"style.transparency":`Transparencia`,"style.glass":`Vidrio`,"style.glassHint":`Desenfoca lo que queda detrás. Con el fondo semitransparente da el efecto de vidrio.`,"style.text":`Texto`,"style.fontHeading":`Títulos`,"style.fontBody":`Texto`,"style.size":`Tamaño`,"style.weight":`Grosor de la letra`,"style.weight.300":`Ligero`,"style.weight.400":`Normal`,"style.weight.500":`Medio`,"style.weight.600":`Semi negrita`,"style.weight.700":`Negrita`,"style.weight.800":`Extra negrita`,"style.align.left":`Izquierda`,"style.align.center":`Centro`,"style.align.right":`Derecha`,"style.sizeMobile":`Tamaño en celular`,"style.tracking":`Espacio entre letras`,"style.case":`Letras`,"style.case.none":`Como se escribió`,"style.case.upper":`MAYÚSCULAS`,"style.case.lower":`minúsculas`,"style.case.title":`Tipo Título`,"style.face":`Trazo`,"style.face.solid":`Lleno`,"style.face.outline":`Hueco`,"style.face.glow":`Con resplandor`,"style.autoHeight":`Crecer con el texto`,"style.autoHeightHint":`La caja toma el alto que su texto necesita, así una línea larga nunca se corta.`,"style.lineHeight":`Interlineado`,"style.frame":`Marco`,"style.radius":`Esquinas`,"style.padding":`Relleno`,"style.border":`Borde`,"style.layer":`Capa`,"style.borderColor":`Color del borde`,"style.finish":`Acabado`,"style.finish.flat":`Plano`,"style.finish.glass":`Vidrio esmerilado`,"style.finish.soft":`Relieve suave`,"style.finish.pressed":`Hundido`,"style.finish.glassHint":`El vidrio difumina lo que tiene detrás, así que necesita un relleno que deje pasar y algo debajo.`,"style.shadow":`Sombra`,"style.shadow.none":`Sin sombra`,"style.shadow.sm":`Sutil`,"style.shadow.md":`Media`,"style.shadow.lg":`Marcada`,"style.shadow.custom":`A medida`,"style.customShadow":`Sombra a medida`,"style.shadowBlur":`Difuminado`,"style.shadowSpread":`Extensión`,"style.shadowColor":`Color de la sombra`,"style.shadowOpacity":`Intensidad`,"style.transform":`Transformar`,"style.rotate":`Giro`,"style.straighten":`Enderezar`,"style.flipX":`Voltear en horizontal`,"style.flipY":`Voltear en vertical`,"style.overflow":`Contenido que se sale`,"style.overflow.visible":`Se ve completo`,"style.overflow.hidden":`Se recorta`,"style.overflow.scroll-x":`Se desliza a los lados`,"style.overflow.scroll-y":`Se desliza hacia abajo`,"style.visibleOn":`Se ve en`,"style.visible.all":`Todos los dispositivos`,"style.visible.desktop":`Solo escritorio`,"style.visible.mobile":`Solo celular`,"style.transformHint":`En el lienzo giras con el tirador de la esquina de abajo y redondeas con el punto de arriba. Con Mayús el giro va de 15 en 15.`,"style.motion":`Movimiento`,"style.entrance":`Al aparecer`,"style.anim.none":`Sin animación`,"style.anim.fade":`Aparecer`,"style.anim.up":`Subir`,"style.anim.down":`Bajar`,"style.anim.left":`Entrar desde la izquierda`,"style.anim.right":`Entrar desde la derecha`,"style.anim.zoom":`Acercarse`,"style.delay":`Espera`,"style.duration":`Duración`,"style.anim.blur":`Enfocarse`,"style.anim.reveal":`Barrido`,"style.hover.sink":`Hundir`,"style.hover.tilt":`Inclinar`,"style.hover.glow":`Resplandor`,"style.scroll":`Con el scroll`,"style.scrollHint":`Se mueve mientras cruza la pantalla, donde el navegador lo permita.`,"style.scroll.none":`Quieto`,"style.scroll.rise":`Subir`,"style.scroll.drift":`Derivar de lado`,"style.scroll.zoom":`Acercarse`,"el.navbarTemplate.floating":`Flotante`,"el.navbarTemplate.boxed":`Enlaces en caja`,"el.navbarTemplate.ribbon":`Cinta`,"el.navbarTemplate.outline":`Con contorno`,"el.navbarTemplate.minimal":`Mínima`,"el.navbarTemplate.stack":`Marca sobre los enlaces`,"el.navbarTemplate.rail":`Columna al costado`,"el.navbarPosition":`Dónde se queda fija`,"el.navbarPosition.top":`Arriba de la pantalla`,"el.navbarPosition.bottom":`Abajo de la pantalla`,"el.layout.right":`Enlaces primero`,"el.navbarTemplate.tracked":`Espaciado`,"style.hover":`Al pasar el cursor`,"style.hover.none":`Nada`,"style.hover.lift":`Levantar`,"style.hover.grow":`Agrandar`,"style.hover.fade":`Atenuar`,"style.motionHint":`La animación se ve en la vista previa y en el sitio publicado.`,"position.title":`Posición en {device}`,"position.desktop":`escritorio`,"position.mobile":`celular`,"position.width":`An`,"position.height":`Al`,"position.pinned":`Fijo al desplazar`,"position.pinnedHint":`Se queda en su sitio en la pantalla mientras la página se desplaza, como un botón flotante o una barra.`,"position.own":`Posición propia en celular.`,"position.inherit":`Volver a heredar de escritorio`,"position.inherited":`Hereda la posición de escritorio. Al moverlo aquí toma una propia; mientras alguno herede, la sección se apila en celular.`,"color.custom":`Propio`,"color.customLabel":`{label}, color propio`,"toast.copied":`Elemento copiado.`,"toast.copiedMany":`{n} elementos copiados.`,"toast.copyFailed":`No se pudo copiar en este navegador.`,"toast.pasted":`Pegado en esta sección.`,"toast.mobileGenerated":`Vista de celular generada. Ajusta lo que quieras.`,"toast.pageCreated":`Página creada.`,"toast.failed":`Algo salió mal: {message}`,"toast.dismiss":`Descartar`,"default.heading":`Un título que invite a quedarse`,"default.text":`Cuenta en una frase qué te hace distinto.`,"default.button":`Empezar`,"default.video":`Video`,"default.field":`Nombre`,"default.fieldPlaceholder":`Escribe aquí`,"default.checkbox":`Acepto el tratamiento de mis datos`,"default.option":`Opción {n}`,"default.brand":`Tu marca`,"default.link":`Enlace`,"default.link.home":`Inicio`,"default.link.features":`Características`,"default.link.about":`Nosotros`,"default.link.contact":`Contacto`,"default.link.start":`Empezar`,"template.group.open":`Abrir la página`,"template.group.tell":`Contarlo`,"template.group.convince":`Respaldarlo`,"template.group.close":`Cerrarlo`,"template.heroCentered":`Portada centrada`,"template.heroSlider":`Portada con deslizador`,"template.steps":`Cómo funciona`,"template.gallery":`Galería`,"template.faq":`Preguntas`,"template.logos":`Logos`,"template.testimonial":`Lo que dijeron`,"template.stats":`Números`,"template.team":`Equipo`,"template.pricing":`Planes`,"template.newsletter":`Suscripción`,"template.footerBig":`Pie con columnas`,"template.hero":`Portada`,"template.features":`Características`,"template.about":`Nosotros`,"template.cta":`Llamada a la acción`,"template.contact":`Formulario de contacto`,"template.footer":`Pie de página`,"pageTemplate.full":`Página completa`,"pageTemplate.full.note":`Portada, características, nosotros, llamada a la acción y pie`,"pageTemplate.simple":`Directa`,"pageTemplate.simple.note":`Portada, características y formulario de contacto`,"pageTemplate.landing":`Una sola oferta`,"pageTemplate.landing.note":`Portada, llamada a la acción y formulario`,"position.x":`X`,"position.y":`Y`,"style.font":`Tipografía`,"style.align":`Alineación del texto`,"gradient.presets":`Degradados sugeridos`,"action.target":`Destino`,"action.unknown":`Acción no disponible ({type})`,"el.linkN":`Enlace {n}`,"el.videoPlaceholder":`https://youtu.be/…`,"el.iconOptions":`Iconos disponibles`,"page.homeHint":`La página de inicio vive en la raíz del sitio: su dirección no cambia y no se puede borrar.`,"section.anchorInvalid":`Usa letras, números, - o _, y un identificador que no tenga otra sección o ventana.`,"newPage.slugFallback":`direccion`,"theme.hex":`{label}, código hex`,"site.localeHint":`Dos letras, y si quieres el país: en, es, pt-BR.`}};function Oy(e,t={}){let n=e.split(`-`)[0]??e,r=[t[e]??{},Dy[e]??{},t[n]??{},Dy[n]??{},t.en??{}],i=e=>r.find(t=>t[e]!==void 0)?.[e]??Ey[e];return{locale:e,t:(e,t)=>ky(i(e),t),localized:t=>t[e]??t[n]??t.en}}function ky(e,t){return t?e.replace(/\{(\w+)\}/g,(e,n)=>n in t?String(t[n]):e):e}var Ay=Oy(`en`).t;function jy(e,t,n){return{id:ys(`section`),height:{desktop:e,mobile:Math.round(e*1.3)},background:t,elements:n.map((e,t)=>{let n=yy[e.type].create(Ay);return{id:ys(e.type),type:e.type,z:t+1,layout:{desktop:{...e.box},mobile:null},props:{...n.props,...e.props},style:{...n.style,...e.style}}})}}var My=e=>({type:`color`,color:e}),Ny={color:`secondary`,background:`background`,border_width:1,border_color:`muted`,radius:12,padding:12},Py=(e,t,n,r)=>[{type:`icon`,box:{x:43,y:e+2,w:3.5,h:40},props:{icon:t,stroke:2},style:{color:`primary`}},{type:`heading`,box:{x:49,y:e,w:42,h:30},props:{text:n,level:3},style:{color:`secondary`,font:`heading`,size:20,weight:700,line_height:1.3}},{type:`text`,box:{x:49,y:e+32,w:42,h:44},props:{text:r},style:{color:`muted`,size:15,line_height:1.5}}],Fy=(e,t,n,r,i)=>[{type:`shape`,box:{x:e-1.5,y:150,w:29,h:330},props:{shape:`rectangle`},style:{background:i?`secondary`:`surface`,radius:18}},{type:`heading`,box:{x:e,y:182,w:26,h:34},props:{text:t,level:3},style:{color:i?`background`:`secondary`,font:`heading`,size:19,weight:700}},{type:`heading`,box:{x:e,y:220,w:26,h:56},props:{text:n,level:3},style:{color:i?`background`:`secondary`,font:`heading`,size:40,weight:700}},{type:`text`,box:{x:e,y:288,w:26,h:120},props:{text:r},style:{color:i?`background`:`muted`,size:15,line_height:1.8,opacity:i?.85:1}},{type:`button`,box:{x:e,y:414,w:26,h:48},props:{label:`Choose this one`,action:{type:`anchor`,value:``}},style:{background:i?`background`:`primary`,color:i?`secondary`:`background`,radius:12,weight:600,size:15}}],Iy=(e,t,n,r)=>[{type:`heading`,box:{x:e,y:150,w:26,h:60},props:{text:t,level:3},style:{color:`primary`,font:`heading`,size:46,weight:700}},{type:`heading`,box:{x:e,y:216,w:26,h:34},props:{text:n,level:3},style:{color:`secondary`,font:`heading`,size:19,weight:700}},{type:`text`,box:{x:e,y:254,w:26,h:90},props:{text:r},style:{color:`muted`,size:15,line_height:1.6}}],Ly=(e,t,n)=>[{type:`image`,box:{x:e,y:150,w:20,h:200},props:{src:``,alt:t},style:{radius:16,object_fit:`cover`}},{type:`heading`,box:{x:e,y:362,w:20,h:30},props:{text:t,level:3},style:{color:`secondary`,font:`heading`,size:17,weight:700}},{type:`text`,box:{x:e,y:394,w:20,h:28},props:{text:n},style:{color:`muted`,size:14}}],Ry=(e,t,n)=>[{type:`heading`,box:{x:6,y:e,w:42,h:32},props:{text:t,level:3},style:{color:`secondary`,font:`heading`,size:18,weight:700}},{type:`text`,box:{x:52,y:e,w:42,h:76},props:{text:n},style:{color:`muted`,size:15,line_height:1.6}},{type:`divider`,box:{x:6,y:e+88,w:88,h:2},props:{},style:{color:`muted`,opacity:.25}}],zy={hero:()=>jy(680,My(`background`),[{type:`shape`,box:{x:52,y:120,w:42,h:400},props:{shape:`blob`},style:{background:`surface`}},{type:`image`,box:{x:50,y:96,w:40,h:380},props:{src:``,alt:`Product photo`},style:{radius:22,object_fit:`cover`,shadow:`lg`}},{type:`heading`,box:{x:6,y:140,w:40,h:180},props:{text:`Build something people remember`,level:1},style:{color:`secondary`,font:`heading`,size:48,weight:700,line_height:1.1}},{type:`text`,box:{x:6,y:336,w:36,h:90},props:{text:`Tell visitors what you offer, who it is for and what happens next, in two short lines.`},style:{color:`muted`,size:18,line_height:1.6}},{type:`button`,box:{x:6,y:456,w:16,h:54},props:{label:`Get started`,action:{type:`anchor`,value:``}},style:{background:`primary`,color:`background`,radius:14,weight:600}}]),features:()=>jy(460,My(`surface`),[{type:`shape`,box:{x:39,y:72,w:56,h:316},props:{shape:`rectangle`},style:{background:`background`,radius:24,shadow:`sm`}},{type:`heading`,box:{x:6,y:92,w:30,h:70},props:{text:`What we do`,level:2},style:{color:`secondary`,font:`heading`,size:38,weight:700}},{type:`text`,box:{x:6,y:172,w:28,h:110},props:{text:`Three reasons people choose us, each in a single sentence.`},style:{color:`muted`,size:17,line_height:1.6}},...Py(100,`star`,`Clear from the start`,`You know what you get and what it costs before anything begins.`),...Py(190,`clock`,`On time`,`We agree on dates up front and keep you posted at every step.`),...Py(280,`heart`,`Here afterwards`,`Questions after the work is done get the same attention.`)]),about:()=>jy(480,My(`background`),[{type:`image`,box:{x:6,y:80,w:32,h:320},props:{src:``,alt:`Our team`},style:{radius:22,object_fit:`cover`}},{type:`heading`,box:{x:44,y:90,w:40,h:70},props:{text:`Who we are`,level:2},style:{color:`secondary`,font:`heading`,size:38,weight:700}},{type:`text`,box:{x:44,y:172,w:40,h:80},props:{text:`A small team that cares about the details. The same people follow your project from the first call to the last.`},style:{color:`muted`,size:17,line_height:1.6}},{type:`heading`,box:{x:44,y:284,w:20,h:50},props:{text:`12 years`,level:3},style:{color:`primary`,font:`heading`,size:32,weight:700}},{type:`text`,box:{x:44,y:336,w:20,h:40},props:{text:`in business`},style:{color:`muted`,size:15}},{type:`heading`,box:{x:66,y:284,w:24,h:50},props:{text:`1,200+`,level:3},style:{color:`primary`,font:`heading`,size:32,weight:700}},{type:`text`,box:{x:66,y:336,w:24,h:40},props:{text:`happy customers`},style:{color:`muted`,size:15}}]),cta:()=>jy(300,My(`primary`),[{type:`heading`,box:{x:6,y:80,w:48,h:110},props:{text:`Ready to get started?`,level:2},style:{color:`background`,font:`heading`,size:34,weight:700,line_height:1.15}},{type:`text`,box:{x:6,y:196,w:40,h:56},props:{text:`It takes two minutes to tell us what you need, and we answer the same day.`},style:{color:`background`,size:16,line_height:1.6,opacity:.9}},{type:`button`,box:{x:66,y:110,w:28,h:56},props:{label:`Contact us`,action:{type:`anchor`,value:``}},style:{background:`background`,color:`primary`,radius:14,weight:700}}]),contact:()=>jy(520,My(`surface`),[{type:`heading`,box:{x:6,y:80,w:32,h:120},props:{text:`Get in touch`,level:2},style:{color:`secondary`,font:`heading`,size:38,weight:700}},{type:`text`,box:{x:6,y:190,w:30,h:110},props:{text:`Leave your details and we'll get back to you within one business day.`},style:{color:`muted`,size:17,line_height:1.6}},{type:`input`,box:{x:44,y:80,w:24,h:78},props:{label:`Name`,placeholder:`Your name`,required:!0,input_type:`text`},style:Ny},{type:`input`,box:{x:70,y:80,w:24,h:78},props:{label:`Email`,placeholder:`you@example.com`,required:!0,input_type:`email`},style:Ny},{type:`select`,box:{x:44,y:172,w:50,h:78},props:{label:`Topic`,placeholder:``,required:!0,options:[`General question`,`Pricing`,`Support`,`Other`]},style:Ny},{type:`textarea`,box:{x:44,y:264,w:50,h:110},props:{label:`Message`,placeholder:`Optional`,required:!1},style:Ny},{type:`checkbox`,box:{x:44,y:388,w:50,h:34},props:{label:`I agree to be contacted about my request`,required:!0},style:{color:`muted`,size:14}},{type:`button`,box:{x:44,y:434,w:50,h:54},props:{label:`Send`,action:{type:`submit`,value:``}},style:{background:`primary`,color:`background`,radius:14,weight:700,size:17}}]),footer:()=>jy(280,My(`secondary`),[{type:`heading`,box:{x:6,y:64,w:26,h:50},props:{text:`Your brand`,level:3},style:{color:`background`,font:`heading`,size:24,weight:700}},{type:`text`,box:{x:6,y:122,w:26,h:100},props:{text:`Street and number
303
+ `;return{lang:n.locale,title:d,meta:g,links:_,css:u,body:l,head:i.head??null,html:ee}}async function ey(e,t){let n=[];for(let[r,i]of e.entries())n.push(await t(i,r));return n}var ty=e=>e&&e.trim()!==``?e:null;function ny(e,t){return e?e.startsWith(`media:`)?t.media(e):{url:e,thumb:null,width:null,height:null}:null}function ry({document:e,site:t}){let{theme:n}=t,r=Math.max(0,...e.sections.flatMap(e=>e.elements).filter(e=>S_(e)&&e.type===`navbar`&&e.props.sticky).map(e=>Math.trunc(e.layout.desktop.h)+24));return`.lz-page{--primary:${n.primary};--secondary:${n.secondary};--background:${n.background};--surface:${n.surface};--text:${n.text};--muted:${n.muted};--radius:${n.radius}px;--max-width:${n.max_width}px;--ref:${n.max_width};--font-heading:'${n.heading_font}', system-ui, sans-serif;--font-body:'${n.body_font}', system-ui, sans-serif`+(r>0?`;--sticky:${r}`:``)+`}`}function iy(e,t){return e.elements.filter(e=>t.has(e.type)&&e.css).map(e=>{if(/<\/style/i.test(e.css??``))throw Error(`Refusing CSS for app element ${e.type}: it closes the style tag`);return`.lz-el[data-type="${e.type}"]{${e.css}}`})}function ay(e,t){for(let[e,n]of t)if(!Qv.test(n))throw Error(`Refusing --${e}:${n}`);return`${e}{${t.map(([e,t])=>`--${e}:${t}`).join(`;`)}}`}async function oy(e,t){if(e.kind===`single`)return sy(e.section,t,q_(e.section)?`form`:null);let n=J_(e),r=await ey(e.sections,async(e,r)=>G(`div`,{class:`lz-stack-panel`,"data-panel":r,"data-on":r===0},[await sy(e,t,q_(e)?n?`div`:`form`:null)])),i=e.type===`steps`?t.t.step:t.t.tab,a=G(`nav`,{class:`lz-stack-nav`,"aria-label":t.t.sections},e.sections.map((t,n)=>G(`button`,{type:`button`,"data-go":n,"aria-pressed":n===0?`true`:`false`},[e.type===`steps`?G(`i`,{},[tv(String(n+1))]):null,tv(ty(t.group?.label)??i.replace(`{n}`,String(n+1)))]))),o={class:`lz-stack`,id:`g-${U_(e.id)}`,"data-group":e.type};return n?uy(o,e.id,t,[a,G(`div`,{class:`lz-stack-panels`},r)]):G(`div`,o,[a,G(`div`,{class:`lz-stack-panels`},r)])}async function sy(e,t,n){let r=U_(e.id),{background:i}=e,a=i.type===`image`||i.type===`video`?ny(i.image,t.input.host):null,o=i.type===`gradient`&&i.gradient?.from&&i.gradient.to?i.gradient:null,s=[[`fh`,cv(e.height.desktop)],[`fmh`,cv(e.height.mobile)]];dy(e)!==null&&s.push([`fg`,cv(e.flow_gap??24)]),o?(s.push([`sg1`,Gv(o.from??``)],[`sg2`,Gv(o.to??``)]),o.angle!==null&&o.angle!==void 0&&s.push([`sga`,cv(o.angle)])):!(i.type===`image`&&i.image)&&i.color&&s.push([`sbg`,Gv(i.color)]);let c=i.parallax===!0,l=i.overlay??0;l>0&&s.push([`ov`,cv(l)]),t.rules.push(ay(`#s-${r}`,s));let u=await fy(e,t),d=u.flatMap((e,t)=>t===0?[e]:[tv(` `),e]),f=i.type===`video`?i.video??null:null;return G(`section`,{id:`s-${r}`,class:`lz-section`,"data-fill":o?o.type??`linear`:null,"data-wide":e.wide===!0},[f!==null&&cy(G(`video`,{class:`lz-bg`,src:f,poster:a?.url??null,autoplay:!0,loop:!0,muted:!0,playsinline:!0,preload:`metadata`}),c),f===null&&a&&cy(G(`img`,{class:`lz-bg`,src:a.url,alt:``,decoding:`async`}),c),l>0&&G(`div`,{class:`lz-overlay`}),G(`div`,{class:`lz-frame`,"data-stack":Y_(e),"data-flow":dy(e),"data-flow-align":dy(e)===null?null:e.flow_align??`start`},[n===`form`?uy({},e.id,t,d):n===`div`?G(`div`,{},d):av(u)])])}var cy=(e,t)=>t?G(`div`,{class:`lz-parallax`},[e]):e;async function ly(e,t){let n=U_(e.id),{form:r}=t.input.host;t.rules.push(ay(`#m-${n}`,[[`dw`,cv(e.width)],[`dbg`,Gv(e.background.color??`background`)],[`fh`,cv(e.height.desktop)],[`fmh`,cv(e.height.mobile)]]));let i=G(`div`,{class:`lz-frame`,"data-stack":Y_(e)},await fy(e,t));return G(`dialog`,{id:`m-${n}`,class:`lz-modal`,"aria-label":e.title,"data-size":e.size,"data-open":r!==null&&r.old(`source`)===e.id},[G(`div`,{class:`lz-modal-bar`},[e.show_title?G(`h2`,{class:`lz-modal-title`},[tv(e.title)]):null,G(`button`,{type:`button`,class:`lz-modal-close`,"data-close":!0,"aria-label":t.t.close},[tv(`×`)])]),q_(e)?uy({},e.id,t,[i]):i])}function uy(e,t,n,r){let{host:i,page:a}=n.input;return i.form===null?G(`form`,e,r):G(`form`,{...e,method:`post`,action:i.form.action},[i.form.csrf&&G(`input`,{type:`hidden`,name:i.form.csrf.name,value:i.form.csrf.value}),G(`input`,{type:`hidden`,name:`slug`,value:a.slug}),G(`input`,{type:`hidden`,name:`source`,value:t}),G(`input`,{type:`text`,name:`website`,tabindex:`-1`,autocomplete:`off`,hidden:!0}),...r])}var dy=e=>`flow`in e&&e.flow&&e.flow!==`free`?e.flow:null;async function fy(e,t){let n=Y_(e)||dy(e)!==null?X_(e.elements):null,r=py(t,q_(e)&&t.input.host.form!==null?t.input.host.form:null);return ey(e.elements,e=>hy(e,n?.get(e)??null,r,t))}function py(e,t){let{input:n}=e,r=new Set(n.catalog.actions.map(e=>e.type));return{t:e.t,media:e=>ny(e,n.host),action:e=>pv(e,n.base,e=>r.has(e.type)?n.host.action(e):null),form:t}}var my=(e,t)=>!S_(e)&&t.elements.some(t=>t.type===e.type);async function hy(e,t,n,r){let{input:i}=r,a=S_(e)?Bv[e.type](e,n):my(e,i.catalog)?{tag:`div`,attrs:{"data-type":e.type},children:[await i.host.appElement(e)]}:i.mode===`edit`?{tag:`div`,class:`lz-placeholder`,attrs:{"data-type":e.type},children:[tv(r.t.unavailable)]}:null;if(a===null)return Z_(``);S_(e)||r.appTypes.add(e.type);let o=U_(e.id),{desktop:s,mobile:c}=e.layout,{vars:l,attrs:u}=Kv(e.style),d=[[`x`,cv(s.x)],[`y`,cv(s.y)],[`w`,cv(s.w)],[`h`,cv(s.h)]];t===null?c&&d.push([`mx`,cv(c.x)],[`my`,cv(c.y)],[`mw`,cv(c.w)],[`mh`,cv(c.h)]):d.push([`ord`,cv(t)]),e.props.flow_gap!==void 0&&e.props.flow_gap!==null&&S_(e)&&d.push([`fg`,cv(e.props.flow_gap)]),d.push([`z`,cv(e.z)]),r.rules.push(ay(`#e-${o}`,[...d,...l])),i.mode===`edit`&&delete u[`data-anim`];let f=e.children===void 0||e.children===null?a.children:await ey(e.children,e=>hy(e,null,n,r));return G(a.tag,{...a.attrs,...u,id:`e-${o}`,class:a.class?`lz-el ${a.class}`:`lz-el`},f)}function gy({endpoint:e,headers:t={},fetch:n=globalThis.fetch.bind(globalThis)}){let r=e.replace(/\/+$/,``);return async(e,...i)=>{let[a=`GET`,o=`/`]=e.split(` `),[s,c]=o.includes(`:`)?[Sy(i[0])?i[0]:{},i[1]]:[{},i[0]],l=o.replace(/:([a-z]+)/g,(e,t)=>encodeURIComponent(String(s[t]??``))),u=typeof FormData<`u`&&c instanceof FormData?c:null,d=a===`GET`&&c&&typeof c==`object`&&!u?yy(c):``,f=c===void 0||a===`GET`?void 0:u??JSON.stringify(c),p={method:a,credentials:`same-origin`,headers:{Accept:`application/json`,...typeof f==`string`?{"Content-Type":`application/json`}:{},...by(),...t},...f===void 0?{}:{body:f},keepalive:typeof f==`string`&&_y(f)},m;try{m=await n(`${r}${l===`/`?``:l}${d}`,p)}catch{return{ok:!1,failure:{kind:`offline`}}}let h=m.status===204?null:await m.json().catch(()=>null);return m.ok?{ok:!0,value:h}:{ok:!1,failure:vy(m.status,h)}}}var _y=e=>new TextEncoder().encode(e).byteLength<6e4;function vy(e,t){let n=Sy(t)&&typeof t.message==`string`?t.message:`HTTP ${e}`;return e===409&&Sy(t)&&typeof t.revision==`number`?{kind:`conflict`,message:n,revision:t.revision}:e===422?{kind:`invalid`,message:n,issues:Sy(t)&&Array.isArray(t.issues)?t.issues.filter(xy):[]}:{kind:`http`,status:e,message:n}}function yy(e){let t=Object.entries(e).filter(([,e])=>e!=null);return t.length===0?``:`?${new URLSearchParams(t.map(([e,t])=>[e,String(t)]))}`}function by(){let e=typeof document>`u`?null:/(?:^|;\s*)XSRF-TOKEN=([^;]+)/.exec(document.cookie);return e?.[1]?{"X-XSRF-TOKEN":decodeURIComponent(e[1])}:{}}var xy=e=>Sy(e)&&typeof e.path==`string`&&typeof e.message==`string`&&typeof e.code==`string`,Sy=e=>typeof e==`object`&&!!e&&!Array.isArray(e),Cy=[`fill`,`text`,`border`,`effects`,`motion`],wy=[`fill`,`border`,`effects`,`motion`],Ty=e=>t=>({box:{x:10,w:40,h:e===`textarea`?120:e===`checkbox`?32:76},props:{label:t(e===`checkbox`?`default.checkbox`:`default.field`),placeholder:e===`select`?``:t(`default.fieldPlaceholder`),required:e!==`select`,input_type:`text`,options:e===`select`?[t(`default.option`,{n:1}),t(`default.option`,{n:2})]:[]},style:{color:`text`,background:`surface`,border_color:`muted`,border_width:1,font:`body`,size:15,align:`left`,radius:10,padding:10}}),Ey={heading:{label:`type.heading`,group:`content`,styles:Cy,inline:`text`,create:e=>({box:{x:10,w:40,h:80},props:{text:e(`default.heading`),level:1},style:{color:`text`,font:`heading`,size:44,weight:700,align:`left`,line_height:1.1}})},text:{label:`type.text`,group:`content`,styles:Cy,inline:`text`,create:e=>({box:{x:10,w:40,h:96},props:{text:e(`default.text`)},style:{color:`muted`,font:`body`,size:18,weight:400,align:`left`,line_height:1.6}})},image:{label:`type.image`,group:`content`,styles:wy,inline:null,create:()=>({box:{x:55,w:35,h:260},props:{src:``,alt:``},style:{radius:16,object_fit:`cover`}})},button:{label:`type.button`,group:`content`,styles:Cy,inline:`label`,create:e=>({box:{x:10,w:18,h:52},props:{label:e(`default.button`),action:{type:`url`,value:``}},style:{background:`primary`,color:`background`,font:`body`,size:16,weight:600,align:`center`,radius:12}})},divider:{label:`type.divider`,group:`content`,styles:wy,inline:null,create:()=>({box:{x:10,w:80,h:2},props:{},style:{color:`muted`}})},video:{label:`type.video`,group:`content`,styles:Cy,inline:null,create:e=>({box:{x:30,w:40,h:260},props:{url:``,alt:e(`default.video`)},style:{radius:16}})},shape:{label:`type.shape`,group:`content`,styles:Cy,inline:null,create:()=>({box:{x:10,w:20,h:160},props:{shape:`rectangle`},style:{background:`primary`,radius:16,opacity:1}})},icon:{label:`type.icon`,group:`content`,styles:Cy,inline:null,create:()=>({box:{x:10,w:5,h:56},props:{icon:`heart`,stroke:2},style:{color:`primary`}})},navbar:{label:`type.navbar`,group:`content`,styles:Cy,inline:null,create:e=>({box:{x:0,w:100,h:72},...Dy(e)[0]})},gallery:{label:`type.gallery`,group:`content`,styles:Cy,inline:null,create:()=>({box:{x:6,w:88,h:320},props:{images:[],layout:`grid`,columns:3},style:{radius:8}})},slider:{label:`type.slider`,group:`content`,styles:Cy,inline:null,create:()=>({box:{x:6,w:88,h:380},props:{images:[],arrows:!0,dots:!0,autoplay:!1,interval:5},style:{radius:8}})},box:{label:`type.box`,group:`content`,styles:Cy,inline:null,create:()=>({box:{x:6,w:88,h:240},props:{flow:`column`,flow_gap:16,flow_align:`start`},style:{padding:24,radius:16}})},input:{label:`type.input`,group:`form`,styles:Cy,inline:null,create:Ty(`input`)},textarea:{label:`type.textarea`,group:`form`,styles:Cy,inline:null,create:Ty(`textarea`)},select:{label:`type.select`,group:`form`,styles:Cy,inline:null,create:Ty(`select`)},checkbox:{label:`type.checkbox`,group:`form`,styles:Cy,inline:null,create:Ty(`checkbox`)}};function Dy(e){let t=t=>({label:e(t),action:{type:`anchor`,value:``}});return[{name:`navbar.preset.split`,props:{brand:e(`default.brand`),layout:`split`,links:[t(`default.link.features`),t(`default.link.about`),t(`default.link.contact`)]},style:{background:`background`,color:`text`,font:`body`,size:16,weight:600,padding:20}},{name:`navbar.preset.center`,props:{brand:``,layout:`center`,links:[t(`default.link.home`),t(`default.link.features`),t(`default.link.about`),t(`default.link.contact`)]},style:{background:`surface`,color:`text`,font:`body`,size:16,weight:500,padding:18}},{name:`navbar.preset.dark`,props:{brand:e(`default.brand`),layout:`split`,links:[t(`default.link.features`),{label:e(`default.link.start`),action:{type:`anchor`,value:``}}]},style:{background:`secondary`,color:`background`,font:`heading`,size:16,weight:600,padding:20}},{name:`navbar.preset.pill`,props:{brand:e(`default.brand`),layout:`split`,template:`pill`,links:[t(`default.link.features`),t(`default.link.about`),t(`default.link.contact`)]},style:{background:`surface`,color:`text`,font:`body`,size:15,weight:600,padding:16}},{name:`navbar.preset.card`,props:{brand:e(`default.brand`),layout:`split`,template:`card`,links:[t(`default.link.home`),t(`default.link.features`),t(`default.link.contact`)]},style:{background:`background`,color:`text`,font:`heading`,size:16,weight:600,padding:18}},{name:`navbar.preset.underline`,props:{brand:e(`default.brand`),layout:`split`,template:`underline`,links:[t(`default.link.home`),t(`default.link.features`),t(`default.link.about`),t(`default.link.contact`)]},style:{background:`background`,color:`text`,font:`body`,size:16,weight:500,padding:20}},{name:`navbar.preset.divided`,props:{brand:``,layout:`center`,template:`divided`,links:[t(`default.link.home`),t(`default.link.features`),t(`default.link.about`),t(`default.link.contact`)]},style:{background:`surface`,color:`text`,font:`body`,size:15,weight:500,padding:16}}]}function Oy(e,t){if(ds(e.type))return{kind:`core`,element:e,spec:Ey[e.type]};let n=t.elements.find(t=>t.type===e.type);return n?{kind:`app`,element:e,spec:n}:{kind:`opaque`,element:e}}function ky(e,t,n){let r=e.kind===`core`?Ey[e.type].create(n):Ay(e.spec),i=e.kind===`core`?e.type:e.spec.type;return{id:ys(i),type:i,z:1,layout:{desktop:{...r.box,y:Os(t)},mobile:null},props:r.props,style:r.style}}function Ay(e){let t={};for(let n of e.fields)n.kind!==`image`&&n.kind!==`action`&&n.default!==void 0&&(t[n.key]=n.default);return{box:{x:10,w:e.size.w,h:e.size.h},props:t,style:{}}}function jy(e,t){let n=e.props,r=[n.text,n.label,n.brand].find(e=>typeof e==`string`&&e.trim()!==``);return r?r.trim().slice(0,28):t}function My(e,t=50){let n=[e],r=0,i=e=>{let t=r+e;return t<0||t>=n.length?null:(r=t,n[r]??null)};return{push(e){return e!==n[r]&&(n=[...n.slice(0,r+1),e].slice(-t),r=n.length-1,!0)},undo:()=>i(-1),redo:()=>i(1),reset(e){n=[e],r=0},get canUndo(){return r>0},get canRedo(){return r<n.length-1}}}var Ny={"load.loading":`Loading the editor…`,"load.failed":`Couldn't load the editor: {message}`,"load.retry":`Try again`,"load.invalidDraft":`This page's draft can't be read ({issue}).`,"load.offline":`You seem to be offline.`,"toolbar.pageSelect":`Page being edited`,"toolbar.newPage":`Page`,"toolbar.newPageHint":`Create another page`,"toolbar.desktop":`Desktop`,"toolbar.mobile":`Phone`,"toolbar.device":`Device`,"toolbar.undo":`Undo (Ctrl+Z)`,"toolbar.redo":`Redo (Ctrl+Shift+Z)`,"toolbar.preview":`Preview`,"toolbar.previewHint":`See the page without the editor guides`,"toolbar.edit":`Edit`,"toolbar.editHint":`Back to editing`,"toolbar.versions":`Versions`,"toolbar.versionsHint":`Go back to a published version`,"toolbar.theme":`Theme`,"toolbar.site":`Site`,"toolbar.siteHint":`Search engines, sharing and site details`,"toolbar.viewSite":`View site`,"toolbar.publish":`Publish`,"toolbar.publishing":`Publishing…`,"status.published":`Published`,"status.unpublished":`Not published`,"save.idle":`Changes save automatically`,"save.pending":`Unsaved changes`,"save.saving":`Saving…`,"save.saved":`Draft saved {time}`,"save.offline":`You're offline. Changes will save when the connection is back.`,"save.failed":`Couldn't save: {message}`,"save.retry":`Retry`,"save.invalid":`Some values are not valid ({issue}). Fix them to keep saving.`,"save.conflict":`This page was changed somewhere else`,"conflict.title":`This page changed somewhere else`,"conflict.body":`Someone saved a newer version of this page, maybe you in another tab. Reload it to keep editing. Changes made here since the last save will be lost.`,"conflict.reload":`Reload the page`,"common.duplicate":`Duplicate`,"common.delete":`Delete`,"common.cancel":`Cancel`,"common.close":`Close`,"common.remove":`Remove`,"common.choose":`Choose`,"common.add":`Add`,"common.new":`New`,"tabs.elements":`Elements`,"tabs.blocks":`Blocks`,"tabs.layers":`Layers`,"tabs.modals":`Modals`,"tabs.media":`Media`,"elements.addHint":`Click to add it, or drag it onto the canvas`,"elements.app":`From your app`,"elements.appHint":`These elements show live data from your app.`,"elements.sectionsHint":`A whole section, ready to edit. It lands at the end of the page.`,"elements.sections":`Ready-made sections`,"elements.form":`Form`,"elements.formHint":`Fields are sent by a button whose action is "Submit the form". They must be in the same section or modal as the button.`,"layers.count":`{n} sections`,"layers.modal":`Modal {title}`,"layers.section":`Section {n}`,"layers.expand":`Expand section`,"layers.collapse":`Collapse section`,"layers.up":`Move section up`,"layers.down":`Move section down`,"layers.lock":`Lock`,"layers.unlock":`Unlock`,"layers.empty":`No elements`,"modals.hint":`A button with the "Open a modal" action opens them`,"modals.defaultTitle":`More information`,"modals.titleLabel":`Modal title`,"modals.delete":`Delete modal`,"modals.elements":`{n} elements`,"modals.edit":`Edit content`,"modals.empty":`No modals yet.`,"media.hint":`Drag an image onto the canvas or click to add it`,"media.upload":`Upload`,"media.empty":`You haven't uploaded any images yet.`,"type.heading":`Heading`,"type.text":`Text`,"type.image":`Image`,"type.button":`Button`,"type.divider":`Divider`,"type.video":`Video`,"type.shape":`Shape`,"type.icon":`Icon`,"type.box":`Box`,"el.boxFlow":`It lays them out`,"el.boxFlow.column":`One under the other`,"el.boxFlow.row":`Side by side`,"el.boxEmpty":`Empty. Select it and add elements, or group what you already placed.`,"el.boxHolds":`It holds {n}. They follow the box, so they are not dragged.`,"el.group":`Group into a box`,"el.groupHint":`A box lays out what it holds, so nothing inside it is dragged any more.`,"el.ungroup":`Take out of the box`,"type.gallery":`Gallery`,"type.slider":`Slider`,"el.galleryItem":`Picture {n}`,"el.gallery":`Pictures`,"el.galleryAdd":`Add a picture`,"el.sliderArrows":`Arrows to move it`,"el.sliderDots":`Dots under it`,"el.sliderAutoplay":`Move by itself`,"el.sliderInterval":`Seconds on each picture`,"el.galleryHint":`They are shown in this order; the first one leads.`,"el.galleryLayout":`Shown as`,"el.gallery.grid":`Grid`,"el.gallery.strip":`Strip that scrolls`,"el.galleryColumns":`Columns`,"el.galleryRemove":`Remove`,"type.navbar":`Navigation bar`,"type.input":`Text field`,"type.textarea":`Long text field`,"type.select":`Dropdown`,"type.checkbox":`Checkbox`,"type.unknown":`Unavailable element`,"menu.copy":`Copy`,"menu.paste":`Paste`,"menu.lock":`Lock`,"menu.unlock":`Unlock`,"zoom.label":`Zoom`,"zoom.in":`Zoom in`,"zoom.out":`Zoom out`,"zoom.fit":`Fit to the window`,"zoom.actual":`Actual size`,"canvas.title":`Page canvas`,"canvas.editingModal":`Editing the modal "{title}"`,"canvas.backToPage":`Back to the page`,"canvas.emptyPage":`Add a heading, a text and a button from the left panel, and arrange them by dragging.`,"canvas.emptyModal":`Drag elements or fields here: this is the content of the modal.`,"canvas.toolbar":`Element actions`,"canvas.front":`Bring to front`,"canvas.back":`Send to back`,"canvas.radius":`Round the corners, now {n} px`,"canvas.rotate":`Rotate, now {n}°. With Shift, in steps of 15°`,"canvas.resize":`Resize ({handle})`,"canvas.corners":`Corners {n} px`,"canvas.sticky":`Sticky on scroll`,"canvas.emptyImage":`Choose an image`,"canvas.emptyVideo":`Paste a YouTube or Vimeo link`,"canvas.stacked":`On phones this section stacks its elements by itself.`,"canvas.loadingPreview":`Loading preview…`,"canvas.previewFailed":`Couldn't load the preview`,"canvas.invalid":`The canvas shows the last valid version: {issue}`,"canvas.locked":`Locked`,"panel.design":`Design`,"panel.page":`Page`,"panel.nothing":`Select a section or an element on the canvas.`,"multi.count":`{n} elements selected`,"multi.align":`Align`,"multi.distribute":`Distribute`,"multi.distributeX":`Distribute horizontally`,"multi.distributeY":`Distribute vertically`,"multi.distributeHint":`Distributing needs three or more elements.`,"multi.group":`Group`,"multi.ungroup":`Ungroup`,"multi.lock":`Lock or unlock`,"multi.menuHint":`Right-click the selection to group, lock, reorder, duplicate or delete it.`,"multi.hint":`Shift-click adds or removes elements from the selection. Grouped elements are selected together.`,"align.left":`Align left`,"align.hcenter":`Center horizontally`,"align.right":`Align right`,"align.top":`Align top`,"align.vmiddle":`Center vertically`,"align.bottom":`Align bottom`,"modal.heading":`Modal`,"modal.title":`Title`,"modal.showTitle":`Show it at the top of the modal`,"modal.showTitleHint":`Hidden, it still names the modal and screen readers still read it.`,"modal.size":`Size`,"modal.size.sm":`Small`,"modal.size.md":`Medium`,"modal.size.lg":`Large`,"modal.size.xl":`Extra large`,"modal.size.full":`Full screen`,"modal.width":`Custom width`,"modal.fullHint":`At full screen the modal fills the browser and is designed on 1200 px.`,"modal.background":`Background color`,"section.heading":`Section`,"section.addAfter":`Add a section below`,"section.duplicate":`Duplicate section`,"canvas.emptySection":`This section is empty: drag an element here.`,"section.delete":`Delete section`,"section.shownAs":`Shown as`,"section.alone":`Regular section`,"section.tab":`Tab of the previous group`,"section.step":`Step of the previous group`,"section.groupLabel":`Name of the tab or step`,"section.groupHint":`Consecutive sections of the same group show one at a time, with a bar of tabs or steps.`,"section.stepLabel":`Step {n}`,"section.anchor":`Anchor id`,"section.anchorHint":`Links with the "Go to a section" action use it.`,"section.fitHeight":`Fit height to content`,"section.generateMobile":`Generate phone layout`,"section.heightDesktop":`Desktop height`,"section.heightMobile":`Phone height`,"fill.video":`Video`,"section.video":`Video address`,"section.videoHint":`An https link to an .mp4 or .webm file. It plays muted and on a loop.`,"section.poster":`Image while the video loads`,"section.flow":`Lay it out`,"section.flowHint":`On its own, the section places its elements one after another and grows with them.`,"section.flow.free":`By hand`,"section.flow.column":`One under the other`,"section.flow.row":`Side by side`,"section.flowGap":`Space between`,"section.flowAlign":`Alignment`,"section.align.start":`To the start`,"section.align.center":`Centred`,"section.align.end":`To the end`,"section.align.between":`Spread out`,"section.wide":`Edge to edge`,"section.wideHint":`The section spans the screen instead of the theme's width.`,"section.background":`Background`,"section.color":`Section color`,"section.image":`Background image`,"section.chooseImage":`Choose image`,"section.parallax":`Parallax effect on scroll`,"section.overlay":`Darken the image`,"fill.color":`Color`,"fill.gradient":`Gradient`,"fill.image":`Image`,"gradient.from":`From`,"gradient.to":`To`,"gradient.shape":`Shape`,"gradient.linear":`Linear`,"gradient.radial":`Radial`,"gradient.angle":`Angle`,"gradient.preset.primary":`Primary`,"gradient.preset.soft":`Soft`,"gradient.preset.halo":`Halo`,"gradient.preset.night":`Night`,"page.title":`Page title`,"page.address":`Address`,"page.home":`Home page`,"page.saveAddress":`Save address`,"page.addressSaved":`Address saved.`,"page.delete":`Delete page`,"page.deleteConfirm":`Delete the page "{title}"? This cannot be undone.`,"page.deleted":`Page deleted.`,"page.templates":`Start from a template`,"page.seoTitle":`Title for search engines`,"page.seoTitleHint":`It's what shows in the browser tab and on search engines.`,"page.description":`Description`,"page.shortcuts":`Shortcuts`,"page.shortcutUndo":`Ctrl+Z undoes, Ctrl+Shift+Z redoes`,"page.shortcutSave":`Ctrl+S saves the draft`,"page.shortcutCopy":`Ctrl+C, Ctrl+V and Ctrl+D copy, paste and duplicate`,"page.shortcutNudge":`Arrow keys nudge the selection, with Shift they move it further`,"newPage.title":`New page`,"newPage.description":`Each page lives at its own address on your site.`,"newPage.titleLabel":`Title`,"newPage.slug":`Address`,"newPage.slugPlaceholder":`services`,"newPage.at":`It will be at {url}`,"newPage.create":`Create page`,"toolbar.submissions":`Messages`,"toolbar.submissionsHint":`What visitors sent through your forms`,"submissions.title":`Form messages`,"submissions.description":`What visitors sent through the forms on your pages, newest first.`,"submissions.empty":`No messages yet.`,"submissions.more":`Load more`,"submissions.from":`/{page} · {source}`,"submissions.failed":`Couldn't load the messages: {message}`,"submissions.checked":`Yes`,"submissions.unchecked":`No`,"versions.title":`Published versions`,"versions.description":`Every publish keeps the previous one. Restoring brings it back to the draft without touching what visitors see until you publish.`,"versions.by":`Published by {name}`,"versions.restore":`Restore`,"versions.restored":`Version restored to the draft.`,"versions.empty":`Nothing has been published yet.`,"publish.done":`Published.`,"publish.failed":`Couldn't publish: {message}`,"theme.title":`Site theme`,"theme.description":`Colors and fonts that every page uses.`,"theme.palettes":`Palettes`,"theme.colors":`Colors`,"theme.link":`Link the elements to this palette`,"theme.linkHint":`Elements with their own color don't follow the palette. This button moves them to the closest theme color.`,"theme.headingFont":`Heading font`,"theme.bodyFont":`Body font`,"theme.radius":`Corners`,"theme.maxWidth":`Content max width`,"theme.width.1080":`Narrow, 1080 px`,"theme.width.1200":`Standard, 1200 px`,"theme.width.1320":`Wide, 1320 px`,"theme.width.1440":`Extra wide, 1440 px`,"theme.previewLabel":`Theme preview`,"theme.previewHeading":`Pages that look cared for`,"theme.previewText":`This is how headings and text will look on your site.`,"theme.previewButton":`Get started`,"theme.save":`Save theme`,"theme.saved":`Theme saved.`,"palette.blue":`Classic blue`,"palette.mint":`Mint`,"palette.sand":`Sand`,"palette.indigo":`Indigo`,"palette.graphite":`Graphite`,"token.primary":`Primary`,"token.secondary":`Secondary`,"token.background":`Background`,"token.surface":`Surface`,"token.text":`Text`,"token.muted":`Muted text`,"font.Inter":`Neutral and modern`,"font.Poppins":`Geometric and friendly`,"font.Montserrat":`Wide, good for headings`,"font.DM Sans":`Clean and compact`,"font.Work Sans":`Sober, very legible`,"font.Nunito":`Rounded and warm`,"font.Lora":`Classic serif`,"font.Playfair Display":`Elegant serif`,"font.Merriweather":`Sturdy serif`,"font.Source Sans 3":`Institutional`,"site.title":`Site settings`,"site.description":`What search engines and social networks see, and details about your site.`,"site.seoTitle":`Default title for search engines`,"site.seoDescription":`Default description`,"site.shareImage":`Share image`,"site.shareImageHint":`Shown when the link is pasted in a chat or a social network.`,"site.favicon":`Browser icon`,"site.locale":`Language of the published pages`,"site.details":`Details`,"site.save":`Save settings`,"site.saved":`Settings saved.`,"library.title":`Images`,"library.description":`Photos and graphics, ready to use on any page.`,"library.upload":`Upload image`,"library.uploading":`Uploading…`,"library.formats":`JPG, PNG, WebP, AVIF or SVG`,"library.use":`Use {name}`,"library.delete":`Delete {name}`,"library.uploadFailed":`Couldn't upload the image: {message}`,"library.deleteFailed":`Couldn't delete the image: {message}`,"library.quota":`{used} of {limit} used`,"el.text":`Text`,"el.accent":`Part in another color`,"el.accentPlaceholder":`Type the words to highlight`,"el.accentColor":`Highlight color`,"el.level":`Hierarchy`,"el.level.1":`Main title`,"el.level.2":`Section title`,"el.level.3":`Subtitle`,"el.level.4":`Small subtitle`,"el.image":`Image`,"el.chooseFromLibrary":`Choose from the library`,"el.imageUrl":`or paste an https:// address`,"el.alt":`Alternative text`,"el.altPlaceholder":`What's in the image`,"el.fit":`Fit`,"el.fit.cover":`Crop to fill`,"el.fit.contain":`Show it whole`,"el.crop":`Crop`,"el.shape":`Shape`,"el.opacity":`Opacity`,"shape.rectangle":`Rectangle`,"shape.ellipse":`Circle`,"shape.triangle":`Triangle`,"shape.blob":`Blob`,"shape.arch":`Arch`,"shape.diagonal":`Diagonal`,"shape.dots":`Dot pattern`,"shape.grid":`Grid pattern`,"el.videoUrl":`Video link`,"el.videoHint":`YouTube and Vimeo links work. The video loads only when the visitor reaches it.`,"el.buttonLabel":`Button text`,"el.action":`Action`,"action.none":`No action`,"action.whatsapp":`WhatsApp`,"action.phone":`Call`,"action.email":`Email`,"action.url":`External link`,"action.anchor":`Go to a section`,"action.modal":`Open a modal`,"action.submit":`Submit the form`,"action.page":`Go to another page`,"action.top":`Back to top`,"action.back":`Go back`,"action.step_next":`Next step`,"action.step_prev":`Previous step`,"action.chooseModal":`Select a modal`,"action.choosePage":`Select a page`,"action.placeholder.whatsapp":`+15551234567`,"action.placeholder.phone":`+15551234567`,"action.placeholder.email":`hello@example.com`,"action.placeholder.anchor":`Section id`,"action.placeholder.url":`https://…`,"action.submitHint":`Sends the fields in this same section or modal.`,"el.presets":`Presets`,"navbar.preset.split":`Brand and links`,"navbar.preset.center":`Centered`,"navbar.preset.dark":`Dark`,"navbar.preset.pill":`Pill`,"navbar.preset.card":`Card`,"navbar.preset.underline":`Underline`,"navbar.preset.divided":`Divided`,"el.navbarTemplate":`Template`,"el.navbarTemplate.plain":`Plain`,"el.navbarTemplate.pill":`Pill`,"el.navbarTemplate.card":`Card`,"el.navbarTemplate.underline":`Underline`,"el.navbarTemplate.divided":`Divided`,"el.brand":`Brand`,"el.brandPlaceholder":`Your brand name`,"el.sticky":`Stick to the top on scroll`,"el.scrollStyle":`When scrolling`,"el.scroll.same":`Stays the same`,"el.scroll.shadow":`Gains a shadow`,"el.scroll.solid":`Solid background and shadow`,"el.scroll.compact":`Shrinks, solid and with a shadow`,"el.scrollBackground":`Background once it scrolls`,"el.scrollColor":`Text once it scrolls`,"el.scrollColorsHint":`A bar that starts transparent over a photo needs its own colors once the page moves, or it turns invisible.`,"el.notSticky":`Not sticky: the menu stays where you put it and scrolls away with the page.`,"el.layout":`Layout`,"el.layout.split":`Brand and links on each side`,"el.layout.left":`All to the left`,"el.layout.center":`All centered`,"el.links":`Links`,"el.linkLabel":`Link text`,"el.removeLink":`Remove link`,"el.linksHint":`On phones the links fold into a dropdown menu.`,"el.icon":`Icon`,"el.iconSearch":`Search: heart, calendar, phone…`,"el.noResults":`No results.`,"el.stroke":`Stroke width`,"el.fieldLabel":`Label`,"el.inputType":`Data type`,"el.inputType.text":`Text`,"el.inputType.email":`Email`,"el.inputType.tel":`Phone`,"el.inputType.number":`Number`,"el.inputType.date":`Date`,"el.options":`Options`,"el.optionsHint":`One option per line.`,"el.placeholder":`Help text`,"el.multiple":`Several answers`,"el.required":`Required`,"el.unknown":`This element comes from a plugin that is not installed. It is kept as it is and cannot be edited.`,"style.fill":`Color and fill`,"style.color":`Color`,"style.background":`Background`,"style.backgroundType":`Background type`,"style.backgroundColor":`Background color`,"style.transparency":`Transparency`,"style.glass":`Glass`,"style.glassHint":`Blurs what is behind. With a see-through background it gives a glass effect.`,"style.text":`Text`,"style.fontHeading":`Headings`,"style.fontBody":`Body`,"style.size":`Size`,"style.weight":`Font weight`,"style.weight.300":`Light`,"style.weight.400":`Regular`,"style.weight.500":`Medium`,"style.weight.600":`Semibold`,"style.weight.700":`Bold`,"style.weight.800":`Extra bold`,"style.align.left":`Left`,"style.align.center":`Center`,"style.align.right":`Right`,"style.sizeMobile":`Size on phones`,"style.tracking":`Letter spacing`,"style.case":`Letters`,"style.case.none":`As written`,"style.case.upper":`UPPERCASE`,"style.case.lower":`lowercase`,"style.case.title":`Title Case`,"style.face":`Face`,"style.face.solid":`Solid`,"style.face.outline":`Hollow`,"style.face.glow":`Glowing`,"style.autoHeight":`Grow with the text`,"style.autoHeightHint":`The box takes the height its text needs, so a longer line never gets cropped.`,"style.lineHeight":`Line height`,"style.frame":`Frame`,"style.radius":`Corners`,"style.padding":`Padding`,"style.border":`Border`,"style.layer":`Layer`,"style.borderColor":`Border color`,"style.finish":`Finish`,"style.finish.flat":`Flat`,"style.finish.glass":`Frosted glass`,"style.finish.soft":`Soft relief`,"style.finish.pressed":`Pressed in`,"style.finish.glassHint":`Glass blurs whatever is behind it, so it needs a see-through fill and something under it.`,"style.shadow":`Shadow`,"style.shadow.none":`No shadow`,"style.shadow.sm":`Subtle`,"style.shadow.md":`Medium`,"style.shadow.lg":`Strong`,"style.shadow.custom":`Custom`,"style.customShadow":`Custom shadow`,"style.shadowBlur":`Blur`,"style.shadowSpread":`Spread`,"style.shadowColor":`Shadow color`,"style.shadowOpacity":`Intensity`,"style.transform":`Transform`,"style.rotate":`Rotation`,"style.straighten":`Straighten`,"style.flipX":`Flip horizontally`,"style.flipY":`Flip vertically`,"style.overflow":`Content that overflows`,"style.overflow.visible":`Fully visible`,"style.overflow.hidden":`Clipped`,"style.overflow.scroll-x":`Scrolls sideways`,"style.overflow.scroll-y":`Scrolls down`,"style.visibleOn":`Shown on`,"style.visible.all":`All devices`,"style.visible.desktop":`Desktop only`,"style.visible.mobile":`Phone only`,"style.transformHint":`On the canvas, rotate with the handle below the bottom corner and round the corners with the dot at the top. With Shift, rotation goes in steps of 15°.`,"style.motion":`Motion`,"style.entrance":`On appear`,"style.anim.none":`No animation`,"style.anim.fade":`Fade in`,"style.anim.up":`Rise`,"style.anim.down":`Drop`,"style.anim.left":`Enter from the left`,"style.anim.right":`Enter from the right`,"style.anim.zoom":`Zoom in`,"style.delay":`Delay`,"style.duration":`Duration`,"style.anim.blur":`Come into focus`,"style.anim.reveal":`Wipe across`,"style.hover.sink":`Press in`,"style.hover.tilt":`Tilt`,"style.hover.glow":`Glow`,"style.scroll":`With the scroll`,"style.scrollHint":`Moves while it crosses the screen, where the browser supports it.`,"style.scroll.none":`Still`,"style.scroll.rise":`Rise`,"style.scroll.drift":`Drift sideways`,"style.scroll.zoom":`Zoom in`,"el.navbarTemplate.floating":`Floating`,"el.navbarTemplate.boxed":`Boxed links`,"el.navbarTemplate.ribbon":`Ribbon`,"el.navbarTemplate.outline":`Outlined`,"el.navbarTemplate.minimal":`Minimal`,"el.navbarTemplate.stack":`Brand above the links`,"el.navbarTemplate.rail":`Rail down the side`,"el.navbarPosition":`Where it sticks`,"el.navbarPosition.top":`Top of the screen`,"el.navbarPosition.bottom":`Bottom of the screen`,"el.layout.right":`Links first`,"el.navbarTemplate.tracked":`Spaced out`,"style.hover":`On hover`,"style.hover.none":`Nothing`,"style.hover.lift":`Lift`,"style.hover.grow":`Grow`,"style.hover.fade":`Dim`,"style.motionHint":`Animations play in the preview and on the published site.`,"position.title":`Position on {device}`,"position.desktop":`desktop`,"position.mobile":`phone`,"position.width":`W`,"position.height":`H`,"position.pinned":`Fixed while scrolling`,"position.pinnedHint":`It stays in place on the screen while the page scrolls, like a floating button or a bar.`,"position.own":`Own position on phones.`,"position.inherit":`Use the desktop position again`,"position.inherited":`Uses the desktop position. Moving it here gives it its own; while any element uses the desktop one, the section stacks on phones.`,"color.custom":`Custom`,"color.customLabel":`{label}, custom color`,"toast.copied":`Element copied.`,"toast.copiedMany":`{n} elements copied.`,"toast.copyFailed":`Couldn't copy in this browser.`,"toast.pasted":`Pasted into this section.`,"toast.mobileGenerated":`Phone layout generated. Adjust whatever you like.`,"toast.pageCreated":`Page created.`,"toast.failed":`Something went wrong: {message}`,"toast.dismiss":`Dismiss`,"default.heading":`A heading that invites people in`,"default.text":`Say in one sentence what makes you different.`,"default.button":`Get started`,"default.video":`Video`,"default.field":`Name`,"default.fieldPlaceholder":`Type here`,"default.checkbox":`I agree to the processing of my data`,"default.option":`Option {n}`,"default.brand":`Your brand`,"default.link":`Link`,"default.link.home":`Home`,"default.link.features":`Features`,"default.link.about":`About`,"default.link.contact":`Contact`,"default.link.start":`Get started`,"template.group.open":`Open the page`,"template.group.tell":`Tell it`,"template.group.convince":`Back it up`,"template.group.close":`Close it`,"template.heroCentered":`Centered opening`,"template.heroSlider":`Opening with a slider`,"template.steps":`How it works`,"template.gallery":`Gallery`,"template.faq":`Questions`,"template.logos":`Logos`,"template.testimonial":`What they said`,"template.stats":`Numbers`,"template.team":`Team`,"template.pricing":`Plans`,"template.newsletter":`Sign up for news`,"template.footerBig":`Footer with columns`,"template.hero":`Hero`,"template.features":`Features`,"template.about":`About`,"template.cta":`Call to action`,"template.contact":`Contact form`,"template.footer":`Footer`,"pageTemplate.full":`Complete page`,"pageTemplate.full.note":`Hero, features, about, call to action and footer`,"pageTemplate.simple":`Direct`,"pageTemplate.simple.note":`Hero, features and a contact form`,"pageTemplate.landing":`Single offer`,"pageTemplate.landing.note":`Hero, call to action and a form`,"position.x":`X`,"position.y":`Y`,"style.font":`Font`,"style.align":`Text alignment`,"gradient.presets":`Suggested gradients`,"action.target":`Destination`,"action.unknown":`Unavailable action ({type})`,"el.linkN":`Link {n}`,"el.videoPlaceholder":`https://youtu.be/…`,"el.iconOptions":`Available icons`,"page.homeHint":`The home page lives at the root of the site, so its address doesn't change and it can't be deleted.`,"section.anchorInvalid":`Use letters, numbers, - or _, and an id no other section or modal has.`,"newPage.slugFallback":`address`,"theme.hex":`{label}, hex code`,"site.localeHint":`Two letters, optionally with the country: en, es, pt-BR.`},Py={en:Ny,es:{"load.loading":`Cargando el editor...`,"load.failed":`No se pudo cargar el editor: {message}`,"load.retry":`Intentar de nuevo`,"load.invalidDraft":`No se puede leer el borrador de esta página ({issue}).`,"load.offline":`Parece que no hay conexión.`,"toolbar.pageSelect":`Página que se edita`,"toolbar.newPage":`Página`,"toolbar.newPageHint":`Crear otra página`,"toolbar.desktop":`Escritorio`,"toolbar.mobile":`Celular`,"toolbar.device":`Dispositivo`,"toolbar.undo":`Deshacer, Ctrl+Z`,"toolbar.redo":`Rehacer, Ctrl+Shift+Z`,"toolbar.preview":`Vista previa`,"toolbar.previewHint":`Ver la página sin las guías del editor`,"toolbar.edit":`Editar`,"toolbar.editHint":`Volver a editar`,"toolbar.versions":`Versiones`,"toolbar.versionsHint":`Volver a una versión publicada`,"toolbar.theme":`Tema`,"toolbar.site":`Sitio`,"toolbar.siteHint":`Datos para buscadores, redes y el sitio`,"toolbar.viewSite":`Ver sitio`,"toolbar.publish":`Publicar`,"toolbar.publishing":`Publicando...`,"status.published":`Publicado`,"status.unpublished":`Sin publicar`,"save.idle":`Los cambios se guardan solos`,"save.pending":`Cambios sin guardar`,"save.saving":`Guardando...`,"save.saved":`Borrador guardado {time}`,"save.offline":`Sin conexión. Los cambios se guardarán cuando vuelva.`,"save.failed":`No se pudo guardar: {message}`,"save.retry":`Reintentar`,"save.invalid":`Hay valores no válidos ({issue}). Corrígelos para seguir guardando.`,"save.conflict":`Esta página se cambió en otro lugar`,"conflict.title":`Esta página cambió en otro lugar`,"conflict.body":`Alguien guardó una versión más nueva de esta página, quizá tú en otra pestaña. Recárgala para seguir editando. Lo que cambiaste aquí desde el último guardado se perderá.`,"conflict.reload":`Recargar la página`,"common.duplicate":`Duplicar`,"common.delete":`Eliminar`,"common.cancel":`Cancelar`,"common.close":`Cerrar`,"common.remove":`Quitar`,"common.choose":`Elegir`,"common.add":`Agregar`,"common.new":`Nueva`,"tabs.elements":`Elementos`,"tabs.blocks":`Bloques`,"tabs.layers":`Capas`,"tabs.modals":`Ventanas`,"tabs.media":`Medios`,"elements.addHint":`Haz clic para agregarlo, o arrástralo al lienzo`,"elements.app":`De tu aplicación`,"elements.appHint":`Estos elementos muestran datos vivos de tu aplicación.`,"elements.sectionsHint":`Una sección entera, lista para editar. Entra al final de la página.`,"elements.sections":`Secciones listas`,"elements.form":`Formulario`,"elements.formHint":`Los campos se envían con un botón cuya acción sea «Enviar el formulario». Deben estar en la misma sección o ventana que el botón.`,"layers.count":`{n} secciones`,"layers.modal":`Ventana {title}`,"layers.section":`Sección {n}`,"layers.expand":`Desplegar sección`,"layers.collapse":`Plegar sección`,"layers.up":`Subir sección`,"layers.down":`Bajar sección`,"layers.lock":`Bloquear`,"layers.unlock":`Desbloquear`,"layers.empty":`Sin elementos`,"modals.hint":`Las abre un botón con la acción «Abrir una ventana»`,"modals.defaultTitle":`Más información`,"modals.titleLabel":`Título de la ventana`,"modals.delete":`Eliminar ventana`,"modals.elements":`{n} elementos`,"modals.edit":`Editar contenido`,"modals.empty":`Todavía no hay ventanas.`,"media.hint":`Arrastra una imagen al lienzo o haz clic para agregarla`,"media.upload":`Subir`,"media.empty":`Todavía no has subido imágenes.`,"type.heading":`Título`,"type.text":`Texto`,"type.image":`Imagen`,"type.button":`Botón`,"type.divider":`Separador`,"type.video":`Video`,"type.shape":`Figura`,"type.icon":`Icono`,"type.box":`Caja`,"el.boxFlow":`Los acomoda`,"el.boxFlow.column":`Uno debajo del otro`,"el.boxFlow.row":`Uno al lado del otro`,"el.boxEmpty":`Vacía. Selecciónala y agrega elementos, o agrupa lo que ya pusiste.`,"el.boxHolds":`Lleva {n} dentro. Los acomoda ella, así que no se arrastran.`,"el.group":`Agrupar en una caja`,"el.groupHint":`La caja acomoda lo que lleva dentro, así que ya nada de eso se arrastra.`,"el.ungroup":`Sacar de la caja`,"type.gallery":`Galería`,"type.slider":`Deslizador`,"el.galleryItem":`Imagen {n}`,"el.gallery":`Imágenes`,"el.galleryAdd":`Agregar una imagen`,"el.sliderArrows":`Flechas para moverlo`,"el.sliderDots":`Puntos debajo`,"el.sliderAutoplay":`Que se mueva solo`,"el.sliderInterval":`Segundos en cada imagen`,"el.galleryHint":`Se muestran en este orden; la primera abre.`,"el.galleryLayout":`Se muestra como`,"el.gallery.grid":`Cuadrícula`,"el.gallery.strip":`Tira que se desliza`,"el.galleryColumns":`Columnas`,"el.galleryRemove":`Quitar`,"type.navbar":`Menú de navegación`,"type.input":`Campo de texto`,"type.textarea":`Campo largo`,"type.select":`Lista desplegable`,"type.checkbox":`Casilla`,"type.unknown":`Elemento no disponible`,"menu.copy":`Copiar`,"menu.paste":`Pegar`,"menu.lock":`Bloquear`,"menu.unlock":`Desbloquear`,"zoom.label":`Zoom`,"zoom.in":`Acercar`,"zoom.out":`Alejar`,"zoom.fit":`Ajustar a la ventana`,"zoom.actual":`Tamaño real`,"canvas.title":`Lienzo de la página`,"canvas.editingModal":`Editando la ventana «{title}»`,"canvas.backToPage":`Volver a la página`,"canvas.emptyPage":`Agrega un título, un texto y un botón desde el panel izquierdo, y acomódalos arrastrando.`,"canvas.emptyModal":`Arrastra elementos o campos aquí: es el contenido de la ventana.`,"canvas.toolbar":`Acciones del elemento`,"canvas.front":`Traer al frente`,"canvas.back":`Enviar atrás`,"canvas.radius":`Redondear esquinas, ahora {n} px`,"canvas.rotate":`Girar, ahora {n}°. Con Mayús, de 15 en 15`,"canvas.resize":`Redimensionar ({handle})`,"canvas.corners":`Esquinas {n} px`,"canvas.sticky":`Fijo al bajar`,"canvas.emptyImage":`Elige una imagen`,"canvas.emptyVideo":`Pega el enlace de YouTube o Vimeo`,"canvas.stacked":`En celular esta sección apila sus elementos sola.`,"canvas.loadingPreview":`Cargando vista previa...`,"canvas.previewFailed":`No se pudo cargar la vista previa`,"canvas.invalid":`El lienzo muestra la última versión válida: {issue}`,"canvas.locked":`Bloqueado`,"panel.design":`Diseño`,"panel.page":`Página`,"panel.nothing":`Selecciona una sección o un elemento del lienzo.`,"multi.count":`{n} elementos seleccionados`,"multi.align":`Alinear`,"multi.distribute":`Repartir`,"multi.distributeX":`Repartir en horizontal`,"multi.distributeY":`Repartir en vertical`,"multi.distributeHint":`Repartir necesita tres elementos o más.`,"multi.group":`Agrupar`,"multi.ungroup":`Desagrupar`,"multi.lock":`Bloquear o desbloquear`,"multi.menuHint":`Haz clic derecho en la selección para agrupar, bloquear, reordenar, duplicar o eliminar.`,"multi.hint":`Mayús y clic agrega o quita elementos de la selección. Los agrupados se seleccionan juntos.`,"align.left":`Alinear a la izquierda`,"align.hcenter":`Centrar horizontalmente`,"align.right":`Alinear a la derecha`,"align.top":`Alinear arriba`,"align.vmiddle":`Centrar verticalmente`,"align.bottom":`Alinear abajo`,"modal.heading":`Ventana`,"modal.title":`Título`,"modal.showTitle":`Mostrarlo arriba de la ventana`,"modal.showTitleHint":`Si lo ocultas sigue sirviendo para reconocer la ventana y para los lectores de pantalla.`,"modal.size":`Tamaño`,"modal.size.sm":`Pequeña`,"modal.size.md":`Mediana`,"modal.size.lg":`Grande`,"modal.size.xl":`Muy grande`,"modal.size.full":`Pantalla completa`,"modal.width":`Ancho a medida`,"modal.fullHint":`A pantalla completa la ventana ocupa todo el navegador y el diseño se hace sobre 1200 px.`,"modal.background":`Color de fondo`,"section.heading":`Sección`,"section.addAfter":`Agregar una sección debajo`,"section.duplicate":`Duplicar la sección`,"canvas.emptySection":`Esta sección está vacía: arrastra un elemento aquí.`,"section.delete":`Eliminar sección`,"section.shownAs":`Se muestra como`,"section.alone":`Sección normal`,"section.tab":`Pestaña del grupo anterior`,"section.step":`Paso del grupo anterior`,"section.groupLabel":`Nombre de la pestaña o del paso`,"section.groupHint":`Las secciones seguidas del mismo grupo se ven de a una, con su barra de pestañas o de pasos.`,"section.stepLabel":`Paso {n}`,"section.anchor":`Identificador para anclas`,"section.anchorHint":`Lo usan los enlaces con la acción «Ir a una sección».`,"section.fitHeight":`Ajustar alto al contenido`,"section.generateMobile":`Generar vista de celular`,"section.heightDesktop":`Alto escritorio`,"section.heightMobile":`Alto celular`,"fill.video":`Video`,"section.video":`Dirección del video`,"section.videoHint":`Un enlace https a un archivo .mp4 o .webm. Se reproduce en silencio y en bucle.`,"section.poster":`Imagen mientras carga el video`,"section.flow":`Acomodar`,"section.flowHint":`Sola, la sección pone sus elementos uno tras otro y crece con ellos.`,"section.flow.free":`A mano`,"section.flow.column":`Uno debajo del otro`,"section.flow.row":`Uno al lado del otro`,"section.flowGap":`Separación`,"section.flowAlign":`Alineación`,"section.align.start":`Al inicio`,"section.align.center":`Centrados`,"section.align.end":`Al final`,"section.align.between":`Repartidos`,"section.wide":`De borde a borde`,"section.wideHint":`La sección ocupa toda la pantalla en vez del ancho del tema.`,"section.background":`Fondo`,"section.color":`Color de la sección`,"section.image":`Imagen de fondo`,"section.chooseImage":`Elegir imagen`,"section.parallax":`Efecto parallax al bajar`,"section.overlay":`Oscurecer la imagen`,"fill.color":`Color`,"fill.gradient":`Degradado`,"fill.image":`Imagen`,"gradient.from":`Desde`,"gradient.to":`Hasta`,"gradient.shape":`Forma`,"gradient.linear":`Lineal`,"gradient.radial":`Circular`,"gradient.angle":`Ángulo`,"gradient.preset.primary":`Principal`,"gradient.preset.soft":`Suave`,"gradient.preset.halo":`Halo`,"gradient.preset.night":`Noche`,"page.title":`Título de la página`,"page.address":`Dirección`,"page.home":`Página de inicio`,"page.saveAddress":`Guardar dirección`,"page.addressSaved":`Dirección guardada.`,"page.delete":`Borrar página`,"page.deleteConfirm":`¿Borrar la página «{title}»? No se puede deshacer.`,"page.deleted":`Página borrada.`,"page.templates":`Empezar con una plantilla`,"page.seoTitle":`Título para buscadores`,"page.seoTitleHint":`Es lo que se lee en la pestaña del navegador y en los buscadores.`,"page.description":`Descripción`,"page.shortcuts":`Atajos`,"page.shortcutUndo":`Ctrl+Z deshace, Ctrl+Shift+Z rehace`,"page.shortcutSave":`Ctrl+S guarda el borrador`,"page.shortcutCopy":`Ctrl+C, Ctrl+V y Ctrl+D copian, pegan y duplican`,"page.shortcutNudge":`Las flechas mueven la selección, con Mayús la mueven más`,"newPage.title":`Nueva página`,"newPage.description":`Cada página vive en su propia dirección dentro del sitio.`,"newPage.titleLabel":`Título`,"newPage.slug":`Dirección`,"newPage.slugPlaceholder":`servicios`,"newPage.at":`Quedará en {url}`,"newPage.create":`Crear página`,"toolbar.submissions":`Mensajes`,"toolbar.submissionsHint":`Lo que los visitantes enviaron con tus formularios`,"submissions.title":`Mensajes de formularios`,"submissions.description":`Lo que los visitantes enviaron con los formularios de tus páginas, los más nuevos primero.`,"submissions.empty":`Todavía no hay mensajes.`,"submissions.more":`Cargar más`,"submissions.from":`/{page} · {source}`,"submissions.failed":`No se pudieron cargar los mensajes: {message}`,"submissions.checked":`Sí`,"submissions.unchecked":`No`,"versions.title":`Versiones publicadas`,"versions.description":`Cada publicación guarda la anterior. Restaurar la trae al borrador, sin tocar lo que ven los visitantes hasta que publiques.`,"versions.by":`Publicó {name}`,"versions.restore":`Restaurar`,"versions.restored":`Versión restaurada en el borrador.`,"versions.empty":`Todavía no se ha publicado nada.`,"publish.done":`Publicado.`,"publish.failed":`No se pudo publicar: {message}`,"theme.title":`Tema del sitio`,"theme.description":`Colores y tipografías que usan todas las páginas.`,"theme.palettes":`Paletas`,"theme.colors":`Colores`,"theme.link":`Enlazar los elementos a esta paleta`,"theme.linkHint":`Los elementos con color propio no cambian al cambiar la paleta. Ese botón los pasa al color del tema más parecido.`,"theme.headingFont":`Tipografía de títulos`,"theme.bodyFont":`Tipografía de textos`,"theme.radius":`Esquinas`,"theme.maxWidth":`Ancho máximo del contenido`,"theme.width.1080":`Angosto, 1080 px`,"theme.width.1200":`Estándar, 1200 px`,"theme.width.1320":`Amplio, 1320 px`,"theme.width.1440":`Muy amplio, 1440 px`,"theme.previewLabel":`Vista previa del tema`,"theme.previewHeading":`Páginas que se ven cuidadas`,"theme.previewText":`Así se verán los títulos y los textos de tu sitio.`,"theme.previewButton":`Empezar`,"theme.save":`Guardar tema`,"theme.saved":`Tema guardado.`,"palette.blue":`Azul clásico`,"palette.mint":`Menta`,"palette.sand":`Arena`,"palette.indigo":`Índigo`,"palette.graphite":`Grafito`,"token.primary":`Principal`,"token.secondary":`Secundario`,"token.background":`Fondo`,"token.surface":`Superficie`,"token.text":`Texto`,"token.muted":`Texto suave`,"font.Inter":`Neutra y moderna`,"font.Poppins":`Geométrica y amable`,"font.Montserrat":`Amplia, buena para títulos`,"font.DM Sans":`Limpia y compacta`,"font.Work Sans":`Sobria, muy legible`,"font.Nunito":`Redondeada y cercana`,"font.Lora":`Serif clásica`,"font.Playfair Display":`Serif elegante`,"font.Merriweather":`Serif firme`,"font.Source Sans 3":`Institucional`,"site.title":`Ajustes del sitio`,"site.description":`Lo que ven buscadores y redes, y los datos de tu sitio.`,"site.seoTitle":`Título por defecto para buscadores`,"site.seoDescription":`Descripción por defecto`,"site.shareImage":`Imagen al compartir`,"site.shareImageHint":`Es la que se ve al pegar el enlace en un chat o una red social.`,"site.favicon":`Icono del navegador`,"site.locale":`Idioma de las páginas publicadas`,"site.details":`Datos`,"site.save":`Guardar ajustes`,"site.saved":`Ajustes guardados.`,"library.title":`Imágenes`,"library.description":`Las fotos y gráficos, listos para usar en cualquier página.`,"library.upload":`Subir imagen`,"library.uploading":`Subiendo...`,"library.formats":`JPG, PNG, WebP, AVIF o SVG`,"library.use":`Usar {name}`,"library.delete":`Borrar {name}`,"library.uploadFailed":`No se pudo subir la imagen: {message}`,"library.deleteFailed":`No se pudo borrar la imagen: {message}`,"library.quota":`{used} de {limit} usados`,"el.text":`Texto`,"el.accent":`Parte en otro color`,"el.accentPlaceholder":`Escribe aquí las palabras a resaltar`,"el.accentColor":`Color del resalte`,"el.level":`Jerarquía`,"el.level.1":`Título principal`,"el.level.2":`Título de sección`,"el.level.3":`Subtítulo`,"el.level.4":`Subtítulo pequeño`,"el.image":`Imagen`,"el.chooseFromLibrary":`Elegir de la biblioteca`,"el.imageUrl":`o pega una dirección https://`,"el.alt":`Texto alternativo`,"el.altPlaceholder":`Qué se ve en la imagen`,"el.fit":`Ajuste`,"el.fit.cover":`Recortar para llenar`,"el.fit.contain":`Mostrar completa`,"el.crop":`Recorte`,"el.shape":`Figura`,"el.opacity":`Opacidad`,"shape.rectangle":`Rectángulo`,"shape.ellipse":`Círculo`,"shape.triangle":`Triángulo`,"shape.blob":`Mancha`,"shape.arch":`Arco`,"shape.diagonal":`Diagonal`,"shape.dots":`Trama de puntos`,"shape.grid":`Trama de rejilla`,"el.videoUrl":`Enlace del video`,"el.videoHint":`Acepta YouTube y Vimeo. El video se carga solo cuando el visitante llega a esa parte.`,"el.buttonLabel":`Texto del botón`,"el.action":`Acción`,"action.none":`Sin acción`,"action.whatsapp":`WhatsApp`,"action.phone":`Llamar`,"action.email":`Correo`,"action.url":`Enlace externo`,"action.anchor":`Ir a una sección`,"action.modal":`Abrir una ventana`,"action.submit":`Enviar el formulario`,"action.page":`Ir a otra página`,"action.top":`Volver arriba`,"action.back":`Volver atrás`,"action.step_next":`Paso siguiente`,"action.step_prev":`Paso anterior`,"action.chooseModal":`Selecciona una ventana`,"action.choosePage":`Selecciona una página`,"action.placeholder.whatsapp":`+573001112233`,"action.placeholder.phone":`+573001112233`,"action.placeholder.email":`hola@ejemplo.com`,"action.placeholder.anchor":`id de la sección`,"action.placeholder.url":`https://...`,"action.submitHint":`Envía los campos que estén en esta misma sección o ventana.`,"el.presets":`Prediseñados`,"navbar.preset.split":`Marca y enlaces`,"navbar.preset.center":`Centrado`,"navbar.preset.dark":`Oscuro`,"navbar.preset.pill":`Pastilla`,"navbar.preset.card":`Tarjeta`,"navbar.preset.underline":`Subrayado`,"navbar.preset.divided":`Dividido`,"el.navbarTemplate":`Plantilla`,"el.navbarTemplate.plain":`Simple`,"el.navbarTemplate.pill":`Pastilla`,"el.navbarTemplate.card":`Tarjeta`,"el.navbarTemplate.underline":`Subrayado`,"el.navbarTemplate.divided":`Dividido`,"el.brand":`Marca`,"el.brandPlaceholder":`Nombre de tu marca`,"el.sticky":`Fijar arriba al bajar la página`,"el.scrollStyle":`Al bajar la página`,"el.scroll.same":`Se queda igual`,"el.scroll.shadow":`Gana sombra`,"el.scroll.solid":`Fondo sólido y sombra`,"el.scroll.compact":`Se encoge, sólido y con sombra`,"el.scrollBackground":`Fondo al bajar`,"el.scrollColor":`Texto al bajar`,"el.scrollColorsHint":`Una barra que empieza transparente sobre una foto necesita sus propios colores al bajar, o se vuelve invisible.`,"el.notSticky":`Sin fijar, el menú se queda donde lo pusiste y se va con el desplazamiento.`,"el.layout":`Distribución`,"el.layout.split":`Marca y enlaces a los lados`,"el.layout.left":`Todo a la izquierda`,"el.layout.center":`Todo centrado`,"el.links":`Enlaces`,"el.linkLabel":`Texto del enlace`,"el.removeLink":`Quitar enlace`,"el.linksHint":`En celular los enlaces se recogen en un menú desplegable.`,"el.icon":`Icono`,"el.iconSearch":`Buscar: heart, calendar, phone...`,"el.noResults":`Sin resultados.`,"el.stroke":`Grosor del trazo`,"el.fieldLabel":`Etiqueta`,"el.inputType":`Tipo de dato`,"el.inputType.text":`Texto`,"el.inputType.email":`Correo`,"el.inputType.tel":`Teléfono`,"el.inputType.number":`Número`,"el.inputType.date":`Fecha`,"el.options":`Opciones`,"el.optionsHint":`Una opción por línea.`,"el.placeholder":`Texto de ayuda`,"el.multiple":`Varias respuestas`,"el.required":`Obligatorio`,"el.unknown":`Este elemento viene de un complemento que no está instalado. Se conserva tal cual y no se puede editar.`,"style.fill":`Color y fondo`,"style.color":`Color`,"style.background":`Fondo`,"style.backgroundType":`Tipo de fondo`,"style.backgroundColor":`Color de fondo`,"style.transparency":`Transparencia`,"style.glass":`Vidrio`,"style.glassHint":`Desenfoca lo que queda detrás. Con el fondo semitransparente da el efecto de vidrio.`,"style.text":`Texto`,"style.fontHeading":`Títulos`,"style.fontBody":`Texto`,"style.size":`Tamaño`,"style.weight":`Grosor de la letra`,"style.weight.300":`Ligero`,"style.weight.400":`Normal`,"style.weight.500":`Medio`,"style.weight.600":`Semi negrita`,"style.weight.700":`Negrita`,"style.weight.800":`Extra negrita`,"style.align.left":`Izquierda`,"style.align.center":`Centro`,"style.align.right":`Derecha`,"style.sizeMobile":`Tamaño en celular`,"style.tracking":`Espacio entre letras`,"style.case":`Letras`,"style.case.none":`Como se escribió`,"style.case.upper":`MAYÚSCULAS`,"style.case.lower":`minúsculas`,"style.case.title":`Tipo Título`,"style.face":`Trazo`,"style.face.solid":`Lleno`,"style.face.outline":`Hueco`,"style.face.glow":`Con resplandor`,"style.autoHeight":`Crecer con el texto`,"style.autoHeightHint":`La caja toma el alto que su texto necesita, así una línea larga nunca se corta.`,"style.lineHeight":`Interlineado`,"style.frame":`Marco`,"style.radius":`Esquinas`,"style.padding":`Relleno`,"style.border":`Borde`,"style.layer":`Capa`,"style.borderColor":`Color del borde`,"style.finish":`Acabado`,"style.finish.flat":`Plano`,"style.finish.glass":`Vidrio esmerilado`,"style.finish.soft":`Relieve suave`,"style.finish.pressed":`Hundido`,"style.finish.glassHint":`El vidrio difumina lo que tiene detrás, así que necesita un relleno que deje pasar y algo debajo.`,"style.shadow":`Sombra`,"style.shadow.none":`Sin sombra`,"style.shadow.sm":`Sutil`,"style.shadow.md":`Media`,"style.shadow.lg":`Marcada`,"style.shadow.custom":`A medida`,"style.customShadow":`Sombra a medida`,"style.shadowBlur":`Difuminado`,"style.shadowSpread":`Extensión`,"style.shadowColor":`Color de la sombra`,"style.shadowOpacity":`Intensidad`,"style.transform":`Transformar`,"style.rotate":`Giro`,"style.straighten":`Enderezar`,"style.flipX":`Voltear en horizontal`,"style.flipY":`Voltear en vertical`,"style.overflow":`Contenido que se sale`,"style.overflow.visible":`Se ve completo`,"style.overflow.hidden":`Se recorta`,"style.overflow.scroll-x":`Se desliza a los lados`,"style.overflow.scroll-y":`Se desliza hacia abajo`,"style.visibleOn":`Se ve en`,"style.visible.all":`Todos los dispositivos`,"style.visible.desktop":`Solo escritorio`,"style.visible.mobile":`Solo celular`,"style.transformHint":`En el lienzo giras con el tirador de la esquina de abajo y redondeas con el punto de arriba. Con Mayús el giro va de 15 en 15.`,"style.motion":`Movimiento`,"style.entrance":`Al aparecer`,"style.anim.none":`Sin animación`,"style.anim.fade":`Aparecer`,"style.anim.up":`Subir`,"style.anim.down":`Bajar`,"style.anim.left":`Entrar desde la izquierda`,"style.anim.right":`Entrar desde la derecha`,"style.anim.zoom":`Acercarse`,"style.delay":`Espera`,"style.duration":`Duración`,"style.anim.blur":`Enfocarse`,"style.anim.reveal":`Barrido`,"style.hover.sink":`Hundir`,"style.hover.tilt":`Inclinar`,"style.hover.glow":`Resplandor`,"style.scroll":`Con el scroll`,"style.scrollHint":`Se mueve mientras cruza la pantalla, donde el navegador lo permita.`,"style.scroll.none":`Quieto`,"style.scroll.rise":`Subir`,"style.scroll.drift":`Derivar de lado`,"style.scroll.zoom":`Acercarse`,"el.navbarTemplate.floating":`Flotante`,"el.navbarTemplate.boxed":`Enlaces en caja`,"el.navbarTemplate.ribbon":`Cinta`,"el.navbarTemplate.outline":`Con contorno`,"el.navbarTemplate.minimal":`Mínima`,"el.navbarTemplate.stack":`Marca sobre los enlaces`,"el.navbarTemplate.rail":`Columna al costado`,"el.navbarPosition":`Dónde se queda fija`,"el.navbarPosition.top":`Arriba de la pantalla`,"el.navbarPosition.bottom":`Abajo de la pantalla`,"el.layout.right":`Enlaces primero`,"el.navbarTemplate.tracked":`Espaciado`,"style.hover":`Al pasar el cursor`,"style.hover.none":`Nada`,"style.hover.lift":`Levantar`,"style.hover.grow":`Agrandar`,"style.hover.fade":`Atenuar`,"style.motionHint":`La animación se ve en la vista previa y en el sitio publicado.`,"position.title":`Posición en {device}`,"position.desktop":`escritorio`,"position.mobile":`celular`,"position.width":`An`,"position.height":`Al`,"position.pinned":`Fijo al desplazar`,"position.pinnedHint":`Se queda en su sitio en la pantalla mientras la página se desplaza, como un botón flotante o una barra.`,"position.own":`Posición propia en celular.`,"position.inherit":`Volver a heredar de escritorio`,"position.inherited":`Hereda la posición de escritorio. Al moverlo aquí toma una propia; mientras alguno herede, la sección se apila en celular.`,"color.custom":`Propio`,"color.customLabel":`{label}, color propio`,"toast.copied":`Elemento copiado.`,"toast.copiedMany":`{n} elementos copiados.`,"toast.copyFailed":`No se pudo copiar en este navegador.`,"toast.pasted":`Pegado en esta sección.`,"toast.mobileGenerated":`Vista de celular generada. Ajusta lo que quieras.`,"toast.pageCreated":`Página creada.`,"toast.failed":`Algo salió mal: {message}`,"toast.dismiss":`Descartar`,"default.heading":`Un título que invite a quedarse`,"default.text":`Cuenta en una frase qué te hace distinto.`,"default.button":`Empezar`,"default.video":`Video`,"default.field":`Nombre`,"default.fieldPlaceholder":`Escribe aquí`,"default.checkbox":`Acepto el tratamiento de mis datos`,"default.option":`Opción {n}`,"default.brand":`Tu marca`,"default.link":`Enlace`,"default.link.home":`Inicio`,"default.link.features":`Características`,"default.link.about":`Nosotros`,"default.link.contact":`Contacto`,"default.link.start":`Empezar`,"template.group.open":`Abrir la página`,"template.group.tell":`Contarlo`,"template.group.convince":`Respaldarlo`,"template.group.close":`Cerrarlo`,"template.heroCentered":`Portada centrada`,"template.heroSlider":`Portada con deslizador`,"template.steps":`Cómo funciona`,"template.gallery":`Galería`,"template.faq":`Preguntas`,"template.logos":`Logos`,"template.testimonial":`Lo que dijeron`,"template.stats":`Números`,"template.team":`Equipo`,"template.pricing":`Planes`,"template.newsletter":`Suscripción`,"template.footerBig":`Pie con columnas`,"template.hero":`Portada`,"template.features":`Características`,"template.about":`Nosotros`,"template.cta":`Llamada a la acción`,"template.contact":`Formulario de contacto`,"template.footer":`Pie de página`,"pageTemplate.full":`Página completa`,"pageTemplate.full.note":`Portada, características, nosotros, llamada a la acción y pie`,"pageTemplate.simple":`Directa`,"pageTemplate.simple.note":`Portada, características y formulario de contacto`,"pageTemplate.landing":`Una sola oferta`,"pageTemplate.landing.note":`Portada, llamada a la acción y formulario`,"position.x":`X`,"position.y":`Y`,"style.font":`Tipografía`,"style.align":`Alineación del texto`,"gradient.presets":`Degradados sugeridos`,"action.target":`Destino`,"action.unknown":`Acción no disponible ({type})`,"el.linkN":`Enlace {n}`,"el.videoPlaceholder":`https://youtu.be/…`,"el.iconOptions":`Iconos disponibles`,"page.homeHint":`La página de inicio vive en la raíz del sitio: su dirección no cambia y no se puede borrar.`,"section.anchorInvalid":`Usa letras, números, - o _, y un identificador que no tenga otra sección o ventana.`,"newPage.slugFallback":`direccion`,"theme.hex":`{label}, código hex`,"site.localeHint":`Dos letras, y si quieres el país: en, es, pt-BR.`}};function Fy(e,t={}){let n=e.split(`-`)[0]??e,r=[t[e]??{},Py[e]??{},t[n]??{},Py[n]??{},t.en??{}],i=e=>r.find(t=>t[e]!==void 0)?.[e]??Ny[e];return{locale:e,t:(e,t)=>Iy(i(e),t),localized:t=>t[e]??t[n]??t.en}}function Iy(e,t){return t?e.replace(/\{(\w+)\}/g,(e,n)=>n in t?String(t[n]):e):e}var Ly=Fy(`en`).t;function Ry(e,t,n){return{id:ys(`section`),height:{desktop:e,mobile:Math.round(e*1.3)},background:t,elements:n.map((e,t)=>{let n=Ey[e.type].create(Ly);return{id:ys(e.type),type:e.type,z:t+1,layout:{desktop:{...e.box},mobile:null},props:{...n.props,...e.props},style:{...n.style,...e.style}}})}}var zy=e=>({type:`color`,color:e}),By={color:`secondary`,background:`background`,border_width:1,border_color:`muted`,radius:12,padding:12},Vy=(e,t,n,r)=>[{type:`icon`,box:{x:43,y:e+2,w:3.5,h:40},props:{icon:t,stroke:2},style:{color:`primary`}},{type:`heading`,box:{x:49,y:e,w:42,h:30},props:{text:n,level:3},style:{color:`secondary`,font:`heading`,size:20,weight:700,line_height:1.3}},{type:`text`,box:{x:49,y:e+32,w:42,h:44},props:{text:r},style:{color:`muted`,size:15,line_height:1.5}}],Hy=(e,t,n,r,i)=>[{type:`shape`,box:{x:e-1.5,y:150,w:29,h:330},props:{shape:`rectangle`},style:{background:i?`secondary`:`surface`,radius:18}},{type:`heading`,box:{x:e,y:182,w:26,h:34},props:{text:t,level:3},style:{color:i?`background`:`secondary`,font:`heading`,size:19,weight:700}},{type:`heading`,box:{x:e,y:220,w:26,h:56},props:{text:n,level:3},style:{color:i?`background`:`secondary`,font:`heading`,size:40,weight:700}},{type:`text`,box:{x:e,y:288,w:26,h:120},props:{text:r},style:{color:i?`background`:`muted`,size:15,line_height:1.8,opacity:i?.85:1}},{type:`button`,box:{x:e,y:414,w:26,h:48},props:{label:`Choose this one`,action:{type:`anchor`,value:``}},style:{background:i?`background`:`primary`,color:i?`secondary`:`background`,radius:12,weight:600,size:15}}],Uy=(e,t,n,r)=>[{type:`heading`,box:{x:e,y:150,w:26,h:60},props:{text:t,level:3},style:{color:`primary`,font:`heading`,size:46,weight:700}},{type:`heading`,box:{x:e,y:216,w:26,h:34},props:{text:n,level:3},style:{color:`secondary`,font:`heading`,size:19,weight:700}},{type:`text`,box:{x:e,y:254,w:26,h:90},props:{text:r},style:{color:`muted`,size:15,line_height:1.6}}],Wy=(e,t,n)=>[{type:`image`,box:{x:e,y:150,w:20,h:200},props:{src:``,alt:t},style:{radius:16,object_fit:`cover`}},{type:`heading`,box:{x:e,y:362,w:20,h:30},props:{text:t,level:3},style:{color:`secondary`,font:`heading`,size:17,weight:700}},{type:`text`,box:{x:e,y:394,w:20,h:28},props:{text:n},style:{color:`muted`,size:14}}],Gy=(e,t,n)=>[{type:`heading`,box:{x:6,y:e,w:42,h:32},props:{text:t,level:3},style:{color:`secondary`,font:`heading`,size:18,weight:700}},{type:`text`,box:{x:52,y:e,w:42,h:76},props:{text:n},style:{color:`muted`,size:15,line_height:1.6}},{type:`divider`,box:{x:6,y:e+88,w:88,h:2},props:{},style:{color:`muted`,opacity:.25}}],Ky={hero:()=>Ry(680,zy(`background`),[{type:`shape`,box:{x:52,y:120,w:42,h:400},props:{shape:`blob`},style:{background:`surface`}},{type:`image`,box:{x:50,y:96,w:40,h:380},props:{src:``,alt:`Product photo`},style:{radius:22,object_fit:`cover`,shadow:`lg`}},{type:`heading`,box:{x:6,y:140,w:40,h:180},props:{text:`Build something people remember`,level:1},style:{color:`secondary`,font:`heading`,size:48,weight:700,line_height:1.1}},{type:`text`,box:{x:6,y:336,w:36,h:90},props:{text:`Tell visitors what you offer, who it is for and what happens next, in two short lines.`},style:{color:`muted`,size:18,line_height:1.6}},{type:`button`,box:{x:6,y:456,w:16,h:54},props:{label:`Get started`,action:{type:`anchor`,value:``}},style:{background:`primary`,color:`background`,radius:14,weight:600}}]),features:()=>Ry(460,zy(`surface`),[{type:`shape`,box:{x:39,y:72,w:56,h:316},props:{shape:`rectangle`},style:{background:`background`,radius:24,shadow:`sm`}},{type:`heading`,box:{x:6,y:92,w:30,h:70},props:{text:`What we do`,level:2},style:{color:`secondary`,font:`heading`,size:38,weight:700}},{type:`text`,box:{x:6,y:172,w:28,h:110},props:{text:`Three reasons people choose us, each in a single sentence.`},style:{color:`muted`,size:17,line_height:1.6}},...Vy(100,`star`,`Clear from the start`,`You know what you get and what it costs before anything begins.`),...Vy(190,`clock`,`On time`,`We agree on dates up front and keep you posted at every step.`),...Vy(280,`heart`,`Here afterwards`,`Questions after the work is done get the same attention.`)]),about:()=>Ry(480,zy(`background`),[{type:`image`,box:{x:6,y:80,w:32,h:320},props:{src:``,alt:`Our team`},style:{radius:22,object_fit:`cover`}},{type:`heading`,box:{x:44,y:90,w:40,h:70},props:{text:`Who we are`,level:2},style:{color:`secondary`,font:`heading`,size:38,weight:700}},{type:`text`,box:{x:44,y:172,w:40,h:80},props:{text:`A small team that cares about the details. The same people follow your project from the first call to the last.`},style:{color:`muted`,size:17,line_height:1.6}},{type:`heading`,box:{x:44,y:284,w:20,h:50},props:{text:`12 years`,level:3},style:{color:`primary`,font:`heading`,size:32,weight:700}},{type:`text`,box:{x:44,y:336,w:20,h:40},props:{text:`in business`},style:{color:`muted`,size:15}},{type:`heading`,box:{x:66,y:284,w:24,h:50},props:{text:`1,200+`,level:3},style:{color:`primary`,font:`heading`,size:32,weight:700}},{type:`text`,box:{x:66,y:336,w:24,h:40},props:{text:`happy customers`},style:{color:`muted`,size:15}}]),cta:()=>Ry(300,zy(`primary`),[{type:`heading`,box:{x:6,y:80,w:48,h:110},props:{text:`Ready to get started?`,level:2},style:{color:`background`,font:`heading`,size:34,weight:700,line_height:1.15}},{type:`text`,box:{x:6,y:196,w:40,h:56},props:{text:`It takes two minutes to tell us what you need, and we answer the same day.`},style:{color:`background`,size:16,line_height:1.6,opacity:.9}},{type:`button`,box:{x:66,y:110,w:28,h:56},props:{label:`Contact us`,action:{type:`anchor`,value:``}},style:{background:`background`,color:`primary`,radius:14,weight:700}}]),contact:()=>Ry(520,zy(`surface`),[{type:`heading`,box:{x:6,y:80,w:32,h:120},props:{text:`Get in touch`,level:2},style:{color:`secondary`,font:`heading`,size:38,weight:700}},{type:`text`,box:{x:6,y:190,w:30,h:110},props:{text:`Leave your details and we'll get back to you within one business day.`},style:{color:`muted`,size:17,line_height:1.6}},{type:`input`,box:{x:44,y:80,w:24,h:78},props:{label:`Name`,placeholder:`Your name`,required:!0,input_type:`text`},style:By},{type:`input`,box:{x:70,y:80,w:24,h:78},props:{label:`Email`,placeholder:`you@example.com`,required:!0,input_type:`email`},style:By},{type:`select`,box:{x:44,y:172,w:50,h:78},props:{label:`Topic`,placeholder:``,required:!0,options:[`General question`,`Pricing`,`Support`,`Other`]},style:By},{type:`textarea`,box:{x:44,y:264,w:50,h:110},props:{label:`Message`,placeholder:`Optional`,required:!1},style:By},{type:`checkbox`,box:{x:44,y:388,w:50,h:34},props:{label:`I agree to be contacted about my request`,required:!0},style:{color:`muted`,size:14}},{type:`button`,box:{x:44,y:434,w:50,h:54},props:{label:`Send`,action:{type:`submit`,value:``}},style:{background:`primary`,color:`background`,radius:14,weight:700,size:17}}]),footer:()=>Ry(280,zy(`secondary`),[{type:`heading`,box:{x:6,y:64,w:26,h:50},props:{text:`Your brand`,level:3},style:{color:`background`,font:`heading`,size:24,weight:700}},{type:`text`,box:{x:6,y:122,w:26,h:100},props:{text:`Street and number
304
304
  City, Country`},style:{color:`background`,size:15,line_height:1.7,opacity:.75}},{type:`text`,box:{x:38,y:64,w:26,h:160},props:{text:`Hours
305
305
  Monday to Friday, 9:00 to 18:00
306
- Saturday, 9:00 to 13:00`},style:{color:`background`,size:15,line_height:1.8,opacity:.75}},{type:`button`,box:{x:70,y:64,w:24,h:48},props:{label:`Contact us`,action:{type:`anchor`,value:``}},style:{background:`primary`,color:`background`,radius:12,weight:600}}]),heroCentered:()=>jy(620,My(`background`),[{type:`heading`,box:{x:18,y:170,w:64,h:150},props:{text:`One line that says what you do`,level:1},style:{color:`secondary`,font:`heading`,size:52,weight:700,align:`center`,line_height:1.1}},{type:`text`,box:{x:26,y:336,w:48,h:80},props:{text:`A second line for who it is for and what they get.`},style:{color:`muted`,size:18,align:`center`,line_height:1.6}},{type:`button`,box:{x:34,y:440,w:15,h:54},props:{label:`Get started`,action:{type:`anchor`,value:``}},style:{background:`primary`,color:`background`,radius:14,weight:700,size:16}},{type:`button`,box:{x:51,y:440,w:15,h:54},props:{label:`See how it works`,action:{type:`anchor`,value:``}},style:{background:``,color:`secondary`,border_width:1,border_color:`muted`,radius:14,weight:600,size:16}}]),heroSlider:()=>jy(640,My(`surface`),[{type:`heading`,box:{x:6,y:180,w:38,h:160},props:{text:`Show the work, not a promise`,level:1},style:{color:`secondary`,font:`heading`,size:46,weight:700,line_height:1.1}},{type:`text`,box:{x:6,y:356,w:32,h:80},props:{text:`Pictures move by themselves, or the reader moves them.`},style:{color:`muted`,size:17,line_height:1.6}},{type:`slider`,box:{x:46,y:120,w:48,h:400},props:{images:[],autoplay:!0,interval:5},style:{radius:20,object_fit:`cover`}}]),logos:()=>jy(300,My(`background`),[{type:`text`,box:{x:6,y:72,w:88,h:34},props:{text:`Teams that work with us`},style:{color:`muted`,size:15,align:`center`}},{type:`gallery`,box:{x:6,y:128,w:88,h:110},props:{images:[],layout:`strip`},style:{radius:8}}]),testimonial:()=>jy(460,My(`secondary`),[{type:`heading`,box:{x:12,y:130,w:76,h:170},props:{text:`"They shipped in three weeks what we had been postponing for a year."`,level:2},style:{color:`background`,font:`heading`,size:36,weight:700,align:`center`,line_height:1.3}},{type:`text`,box:{x:26,y:326,w:48,h:60},props:{text:`Name Surname, role at Company`},style:{color:`background`,size:15,align:`center`,opacity:.75}}]),stats:()=>({...jy(340,My(`surface`),[{type:`heading`,box:{x:6,y:0,w:100,h:44},props:{text:`Three numbers worth knowing`,level:2},style:{color:`secondary`,font:`heading`,size:30,weight:700}},{type:`heading`,box:{x:6,y:80,w:28,h:80},props:{text:`600`,level:3},style:{color:`primary`,font:`heading`,size:54,weight:700}},{type:`heading`,box:{x:36,y:80,w:28,h:80},props:{text:`23 %`,level:3},style:{color:`primary`,font:`heading`,size:54,weight:700}},{type:`heading`,box:{x:66,y:80,w:28,h:80},props:{text:`0`,level:3},style:{color:`primary`,font:`heading`,size:54,weight:700}}]),flow:`row`,flow_gap:32,flow_align:`between`}),gallery:()=>({...jy(520,My(`background`),[{type:`heading`,box:{x:6,y:0,w:60,h:46},props:{text:`A look at the work`,level:2},style:{color:`secondary`,font:`heading`,size:32,weight:700}},{type:`gallery`,box:{x:6,y:80,w:88,h:320},props:{images:[],layout:`grid`,columns:3},style:{radius:12}}]),flow:`column`,flow_gap:24}),steps:()=>jy(440,My(`background`),[{type:`heading`,box:{x:6,y:72,w:60,h:46},props:{text:`How it works`,level:2},style:{color:`secondary`,font:`heading`,size:32,weight:700}},...Iy(6,`1`,`You write to us`,`Tell us what you need and when you need it.`),...Iy(37,`2`,`We answer with a plan`,`A date, a price and what is included.`),...Iy(68,`3`,`We start`,`You see progress every week, not at the end.`)]),pricing:()=>jy(560,My(`background`),[{type:`heading`,box:{x:6,y:72,w:60,h:46},props:{text:`Plans`,level:2},style:{color:`secondary`,font:`heading`,size:32,weight:700}},...Fy(8,`Start`,`$19`,`One site
306
+ Saturday, 9:00 to 13:00`},style:{color:`background`,size:15,line_height:1.8,opacity:.75}},{type:`button`,box:{x:70,y:64,w:24,h:48},props:{label:`Contact us`,action:{type:`anchor`,value:``}},style:{background:`primary`,color:`background`,radius:12,weight:600}}]),heroCentered:()=>Ry(620,zy(`background`),[{type:`heading`,box:{x:18,y:170,w:64,h:150},props:{text:`One line that says what you do`,level:1},style:{color:`secondary`,font:`heading`,size:52,weight:700,align:`center`,line_height:1.1}},{type:`text`,box:{x:26,y:336,w:48,h:80},props:{text:`A second line for who it is for and what they get.`},style:{color:`muted`,size:18,align:`center`,line_height:1.6}},{type:`button`,box:{x:34,y:440,w:15,h:54},props:{label:`Get started`,action:{type:`anchor`,value:``}},style:{background:`primary`,color:`background`,radius:14,weight:700,size:16}},{type:`button`,box:{x:51,y:440,w:15,h:54},props:{label:`See how it works`,action:{type:`anchor`,value:``}},style:{background:``,color:`secondary`,border_width:1,border_color:`muted`,radius:14,weight:600,size:16}}]),heroSlider:()=>Ry(640,zy(`surface`),[{type:`heading`,box:{x:6,y:180,w:38,h:160},props:{text:`Show the work, not a promise`,level:1},style:{color:`secondary`,font:`heading`,size:46,weight:700,line_height:1.1}},{type:`text`,box:{x:6,y:356,w:32,h:80},props:{text:`Pictures move by themselves, or the reader moves them.`},style:{color:`muted`,size:17,line_height:1.6}},{type:`slider`,box:{x:46,y:120,w:48,h:400},props:{images:[],autoplay:!0,interval:5},style:{radius:20,object_fit:`cover`}}]),logos:()=>Ry(300,zy(`background`),[{type:`text`,box:{x:6,y:72,w:88,h:34},props:{text:`Teams that work with us`},style:{color:`muted`,size:15,align:`center`}},{type:`gallery`,box:{x:6,y:128,w:88,h:110},props:{images:[],layout:`strip`},style:{radius:8}}]),testimonial:()=>Ry(460,zy(`secondary`),[{type:`heading`,box:{x:12,y:130,w:76,h:170},props:{text:`"They shipped in three weeks what we had been postponing for a year."`,level:2},style:{color:`background`,font:`heading`,size:36,weight:700,align:`center`,line_height:1.3}},{type:`text`,box:{x:26,y:326,w:48,h:60},props:{text:`Name Surname, role at Company`},style:{color:`background`,size:15,align:`center`,opacity:.75}}]),stats:()=>({...Ry(340,zy(`surface`),[{type:`heading`,box:{x:6,y:0,w:100,h:44},props:{text:`Three numbers worth knowing`,level:2},style:{color:`secondary`,font:`heading`,size:30,weight:700}},{type:`heading`,box:{x:6,y:80,w:28,h:80},props:{text:`600`,level:3},style:{color:`primary`,font:`heading`,size:54,weight:700}},{type:`heading`,box:{x:36,y:80,w:28,h:80},props:{text:`23 %`,level:3},style:{color:`primary`,font:`heading`,size:54,weight:700}},{type:`heading`,box:{x:66,y:80,w:28,h:80},props:{text:`0`,level:3},style:{color:`primary`,font:`heading`,size:54,weight:700}}]),flow:`row`,flow_gap:32,flow_align:`between`}),gallery:()=>({...Ry(520,zy(`background`),[{type:`heading`,box:{x:6,y:0,w:60,h:46},props:{text:`A look at the work`,level:2},style:{color:`secondary`,font:`heading`,size:32,weight:700}},{type:`gallery`,box:{x:6,y:80,w:88,h:320},props:{images:[],layout:`grid`,columns:3},style:{radius:12}}]),flow:`column`,flow_gap:24}),steps:()=>Ry(440,zy(`background`),[{type:`heading`,box:{x:6,y:72,w:60,h:46},props:{text:`How it works`,level:2},style:{color:`secondary`,font:`heading`,size:32,weight:700}},...Uy(6,`1`,`You write to us`,`Tell us what you need and when you need it.`),...Uy(37,`2`,`We answer with a plan`,`A date, a price and what is included.`),...Uy(68,`3`,`We start`,`You see progress every week, not at the end.`)]),pricing:()=>Ry(560,zy(`background`),[{type:`heading`,box:{x:6,y:72,w:60,h:46},props:{text:`Plans`,level:2},style:{color:`secondary`,font:`heading`,size:32,weight:700}},...Hy(8,`Start`,`$19`,`One site
307
307
  One editor
308
- Email support`,!1),...Fy(38,`Studio`,`$49`,`Five sites
308
+ Email support`,!1),...Hy(38,`Studio`,`$49`,`Five sites
309
309
  Five editors
310
- Support in a day`,!0),...Fy(68,`Agency`,`$99`,`Sites without a limit
310
+ Support in a day`,!0),...Hy(68,`Agency`,`$99`,`Sites without a limit
311
311
  Your own domain
312
- Support in an hour`,!1)]),team:()=>jy(500,My(`surface`),[{type:`heading`,box:{x:6,y:72,w:60,h:46},props:{text:`Who you will work with`,level:2},style:{color:`secondary`,font:`heading`,size:32,weight:700}},...Ly(6,`Name Surname`,`What they do`),...Ly(29,`Name Surname`,`What they do`),...Ly(52,`Name Surname`,`What they do`),...Ly(75,`Name Surname`,`What they do`)]),faq:()=>jy(620,My(`background`),[{type:`heading`,box:{x:6,y:72,w:60,h:46},props:{text:`Questions people ask`,level:2},style:{color:`secondary`,font:`heading`,size:32,weight:700}},...Ry(160,`How long does it take?`,`Two to four weeks, counted from the day the content is ready.`),...Ry(270,`What do you need from me?`,`Texts, pictures and someone who can decide.`),...Ry(380,`Can I edit it later?`,`Yes. The site is yours and it is edited here, without us.`),...Ry(490,`What if I do not like it?`,`You see it before it is published, and we change it.`)]),newsletter:()=>jy(360,My(`primary`),[{type:`heading`,box:{x:6,y:110,w:42,h:90},props:{text:`News, once a month`,level:2},style:{color:`background`,font:`heading`,size:34,weight:700,line_height:1.2}},{type:`text`,box:{x:6,y:208,w:36,h:60},props:{text:`What we made, what we learned. Nothing else.`},style:{color:`background`,size:16,opacity:.85}},{type:`input`,box:{x:52,y:140,w:28,h:78},props:{label:`Email`,placeholder:`you@example.com`,required:!0,input_type:`email`},style:{color:`background`,background:``,border_width:1,border_color:`background`,radius:12,padding:14}},{type:`button`,box:{x:82,y:156,w:12,h:50},props:{label:`Sign up`,action:{type:`submit`,value:``}},style:{background:`background`,color:`primary`,radius:12,weight:700,size:15}}]),footerBig:()=>jy(420,My(`secondary`),[{type:`heading`,box:{x:6,y:72,w:24,h:46},props:{text:`Your brand`,level:3},style:{color:`background`,font:`heading`,size:26,weight:700}},{type:`text`,box:{x:6,y:128,w:24,h:90},props:{text:`One line about what you do and where you are.`},style:{color:`background`,size:15,line_height:1.6,opacity:.7}},{type:`text`,box:{x:38,y:72,w:18,h:150},props:{text:`Site
312
+ Support in an hour`,!1)]),team:()=>Ry(500,zy(`surface`),[{type:`heading`,box:{x:6,y:72,w:60,h:46},props:{text:`Who you will work with`,level:2},style:{color:`secondary`,font:`heading`,size:32,weight:700}},...Wy(6,`Name Surname`,`What they do`),...Wy(29,`Name Surname`,`What they do`),...Wy(52,`Name Surname`,`What they do`),...Wy(75,`Name Surname`,`What they do`)]),faq:()=>Ry(620,zy(`background`),[{type:`heading`,box:{x:6,y:72,w:60,h:46},props:{text:`Questions people ask`,level:2},style:{color:`secondary`,font:`heading`,size:32,weight:700}},...Gy(160,`How long does it take?`,`Two to four weeks, counted from the day the content is ready.`),...Gy(270,`What do you need from me?`,`Texts, pictures and someone who can decide.`),...Gy(380,`Can I edit it later?`,`Yes. The site is yours and it is edited here, without us.`),...Gy(490,`What if I do not like it?`,`You see it before it is published, and we change it.`)]),newsletter:()=>Ry(360,zy(`primary`),[{type:`heading`,box:{x:6,y:110,w:42,h:90},props:{text:`News, once a month`,level:2},style:{color:`background`,font:`heading`,size:34,weight:700,line_height:1.2}},{type:`text`,box:{x:6,y:208,w:36,h:60},props:{text:`What we made, what we learned. Nothing else.`},style:{color:`background`,size:16,opacity:.85}},{type:`input`,box:{x:52,y:140,w:28,h:78},props:{label:`Email`,placeholder:`you@example.com`,required:!0,input_type:`email`},style:{color:`background`,background:``,border_width:1,border_color:`background`,radius:12,padding:14}},{type:`button`,box:{x:82,y:156,w:12,h:50},props:{label:`Sign up`,action:{type:`submit`,value:``}},style:{background:`background`,color:`primary`,radius:12,weight:700,size:15}}]),footerBig:()=>Ry(420,zy(`secondary`),[{type:`heading`,box:{x:6,y:72,w:24,h:46},props:{text:`Your brand`,level:3},style:{color:`background`,font:`heading`,size:26,weight:700}},{type:`text`,box:{x:6,y:128,w:24,h:90},props:{text:`One line about what you do and where you are.`},style:{color:`background`,size:15,line_height:1.6,opacity:.7}},{type:`text`,box:{x:38,y:72,w:18,h:150},props:{text:`Site
313
313
  Home
314
314
  Work
315
315
  Prices
@@ -318,7 +318,7 @@ About us
318
318
  Team
319
319
  News`},style:{color:`background`,size:15,line_height:2,opacity:.8}},{type:`text`,box:{x:78,y:72,w:18,h:150},props:{text:`Write to us
320
320
  hello@example.com
321
- +00 000 000 0000`},style:{color:`background`,size:15,line_height:2,opacity:.8}},{type:`divider`,box:{x:6,y:300,w:88,h:2},props:{},style:{color:`background`,opacity:.25}},{type:`text`,box:{x:6,y:324,w:50,h:40},props:{text:`All rights reserved`},style:{color:`background`,size:13,opacity:.6}}])},By=[{key:`hero`,name:`template.hero`,group:`open`},{key:`heroCentered`,name:`template.heroCentered`,group:`open`},{key:`heroSlider`,name:`template.heroSlider`,group:`open`},{key:`features`,name:`template.features`,group:`tell`},{key:`about`,name:`template.about`,group:`tell`},{key:`steps`,name:`template.steps`,group:`tell`},{key:`gallery`,name:`template.gallery`,group:`tell`},{key:`faq`,name:`template.faq`,group:`tell`},{key:`logos`,name:`template.logos`,group:`convince`},{key:`testimonial`,name:`template.testimonial`,group:`convince`},{key:`stats`,name:`template.stats`,group:`convince`},{key:`team`,name:`template.team`,group:`convince`},{key:`pricing`,name:`template.pricing`,group:`convince`},{key:`cta`,name:`template.cta`,group:`close`},{key:`newsletter`,name:`template.newsletter`,group:`close`},{key:`contact`,name:`template.contact`,group:`close`},{key:`footer`,name:`template.footer`,group:`close`},{key:`footerBig`,name:`template.footerBig`,group:`close`}],Vy=[{key:`open`,name:`template.group.open`},{key:`tell`,name:`template.group.tell`},{key:`convince`,name:`template.group.convince`},{key:`close`,name:`template.group.close`}],Hy={full:[`hero`,`features`,`about`,`cta`,`footer`],simple:[`hero`,`features`,`contact`,`footer`],landing:[`hero`,`cta`,`contact`,`footer`]},Uy=[{key:`full`,name:`pageTemplate.full`,note:`pageTemplate.full.note`},{key:`simple`,name:`pageTemplate.simple`,note:`pageTemplate.simple.note`},{key:`landing`,name:`pageTemplate.landing`,note:`pageTemplate.landing.note`}],Wy=e=>zy[e](),Gy=e=>Hy[e].map(e=>zy[e]());function Ky({read:e,save:t,delay:n=1500,offlineRetry:r=5e3}){let i=/* @__PURE__ */ sn({kind:`saved`,at:null}),a=()=>JSON.stringify(e()),o=a(),s=0,c,l=null,u=e=>{clearTimeout(c),c=setTimeout(()=>void d(),e)};async function d(){for(clearTimeout(c);l;)await l;if(i.value.kind===`conflict`)return!1;let d=e(),f=JSON.stringify(d);if(f===o)return i.value.kind!==`saved`&&(i.value={kind:`saved`,at:/* @__PURE__ */ new Date}),!0;i.value={kind:`saving`};let p=s,m=t(d);l=m;let h=await m.finally(()=>{l=null});return p===s?h.ok?(o=f,a()===o?(i.value={kind:`saved`,at:/* @__PURE__ */ new Date},!0):(i.value={kind:`pending`},u(n),!1)):(i.value=qy(h.failure),i.value.kind===`offline`&&u(r),!1):!1}let f=()=>{i.value.kind===`offline`&&d()};return typeof window<`u`&&window.addEventListener(`online`,f),{state:i,changed(){if(i.value.kind!==`conflict`&&i.value.kind!==`saving`){if(a()===o){clearTimeout(c),i.value.kind!==`saved`&&(i.value={kind:`saved`,at:/* @__PURE__ */ new Date});return}i.value.kind!==`offline`&&(i.value={kind:`pending`}),u(n)}},flush:d,async exclusive(e){for(await d();l;)await l;let t=e();l=t;try{return await t}finally{l=null}},reset(){clearTimeout(c),s++,o=a(),i.value={kind:`saved`,at:null}},dispose(){clearTimeout(c),typeof window<`u`&&window.removeEventListener(`online`,f)}}}function qy(e){switch(e.kind){case`offline`:return{kind:`offline`};case`conflict`:return{kind:`conflict`};case`invalid`:return{kind:`invalid`,issues:e.issues,message:e.message};case`http`:return{kind:`failed`,message:e.message}}}function Jy(e,t=250){let n=/* @__PURE__ */ new Map,r=/* @__PURE__ */ new Map,i=/* @__PURE__ */ sn(0),a;async function o(){let t=[...r.entries()];r.clear();let a=await e(`POST /preview`,{elements:t.map(([,e])=>e)});for(let[e,r]of t){let t=a.ok?a.value[r.id]:void 0;n.set(e,t===void 0?{status:`failed`}:{status:`ready`,html:t})}i.value++}return{version:i,get(e){let i=Yy(e);return n.get(i)||(n.set(i,{status:`loading`}),r.set(i,{id:e.id,type:e.type,props:{...e.props}}),clearTimeout(a),a=setTimeout(()=>void o(),t),{status:`loading`})}}}function Yy(e){let t=Object.keys(e.props).sort().map(t=>[t,e.props[t]]);return JSON.stringify([e.type,t])}var Xy=`lienzo-editor-clipboard`,Zy=Symbol(`lienzo-editor`);function Y(){let e=Jn(Zy);if(!e)throw Error(`useEditor() outside <LienzoEditor>`);return e}function Qy({client:e,i18n:t}){let n=t.t,r=/* @__PURE__ */ Jt({load:{kind:`loading`},workspace:{site:z_({name:`Lienzo`}),meta:{},publicUrl:null,pages:[],catalog:{elements:[],actions:[]},assets:[],quota:{used:0,limit:0}},page:null,draft:{sections:[]},revision:0,device:`desktop`,view:{kind:`page`},selection:{kind:`none`},previewing:!1,dialog:null,library:null,themeDraft:null,panels:{},zoom:null,renderIssues:[],publishing:!1,toasts:[]}),i=Ty(``),a=/* @__PURE__ */ sn(0),o=Jy(e),s=Ky({read:()=>xs({page:r.page?.id??null,title:r.page?.title??``,seo:r.page?.seo??{title:``,description:``},draft:r.draft}),async save(t){if(t.page===null)return{ok:!0};let n=await e(`PUT /pages/:id`,{id:t.page},{baseRevision:r.revision,title:t.title,seo:eb(t.seo),draft:t.draft});return r.page?.id===t.page?n.ok?(r.revision=n.value.revision,{ok:!0}):(n.failure.kind===`conflict`&&(r.dialog=`conflict`),n):{ok:!0}}});$n(()=>[r.page?.title,r.page?.seo,r.draft],()=>s.changed(),{deep:!0}),$n(()=>r.page?.title,ie);let c=R(()=>r.workspace.catalog),l=R(e=>{try{return z_({...r.workspace.site,theme:r.themeDraft??r.workspace.site.theme})}catch(t){if(t instanceof C_&&e)return e;throw t}}),u=R(()=>l.value.theme),d=R(()=>{if(r.view.kind===`modal`){let e=r.draft.modals?.find(e=>e.id===(r.view.kind===`modal`?r.view.id:``));return e?[e]:[]}return r.draft.sections}),f=R(()=>{let e=r.view;return e.kind===`modal`?r.draft.modals?.find(t=>t.id===e.id)??null:null}),p=R(()=>{let e=r.selection;return(e.kind===`none`?null:ms(r.draft,e.canvas))??d.value[0]??null}),m=R(()=>{let e=r.selection;if(e.kind!==`elements`)return[];let t=ms(r.draft,e.canvas);return t?K_(t.elements).filter(t=>e.ids.includes(t.id)):[]}),h=R(()=>{let e=r.selection;return e.kind===`elements`?m.value.find(t=>t.id===e.active)??null:null}),g=R(()=>{let e=f.value;return r.device===`mobile`?390:e?e.width+(e.size===`full`?0:32):u.value.max_width}),_=0;function v(e,t=`info`){let n={id:++_,tone:t,text:e};r.toasts.push(n),setTimeout(()=>ee(n.id),t===`error`?8e3:3500)}function ee(e){r.toasts=r.toasts.filter(t=>t.id!==e)}let y=e=>e.kind===`offline`?n(`load.offline`):e.message;async function te(){r.load={kind:`loading`};let t=await e(`GET /`);if(!t.ok){r.load={kind:`failed`,message:y(t.failure)};return}try{z_(t.value.site)}catch(e){if(e instanceof C_){r.load={kind:`failed`,message:$y(e.issues[0])};return}throw e}r.workspace=t.value;let n=t.value.pages[0];if(!n){r.load={kind:`empty`},r.dialog=`newPage`;return}await ae(n.id)}async function ne(t){let n=await e(`GET /pages/:id`,{id:t});return n.ok?re(n.value):(r.load={kind:`failed`,message:y(n.failure)},!1)}function re(e){let t;try{t=xs(E_(e.draft,c.value))}catch(e){if(e instanceof C_)return r.load={kind:`failed`,message:n(`load.invalidDraft`,{issue:$y(e.issues[0])})},!1;throw e}return r.page={id:e.id,slug:e.slug,title:e.title,publishedAt:e.publishedAt,seo:{title:e.seo.title??``,description:e.seo.description??``},versions:e.versions},r.draft=t,r.revision=e.revision,r.view={kind:`page`},r.selection=t.sections[0]?{kind:`canvas`,canvas:t.sections[0].id}:{kind:`none`},r.panels={},r.load={kind:`ready`},i.reset(JSON.stringify(t)),a.value++,s.reset(),ie(),!0}function ie(){let e=r.page;e&&(r.workspace.pages=r.workspace.pages.map(t=>t.id===e.id?{id:e.id,slug:e.slug,title:e.title,publishedAt:e.publishedAt}:t))}async function ae(e){if(r.page?.id!==e){if(r.page&&!await s.flush()){v(n(`save.failed`,{message:oe()}),`error`);return}await ne(e)}}function oe(){let e=s.state.value;switch(e.kind){case`offline`:return n(`load.offline`);case`failed`:case`invalid`:return e.message;case`conflict`:return n(`save.conflict`);default:return``}}async function se(){r.page&&(r.dialog=null,await ne(r.page.id))}function b(){i.push(JSON.stringify(r.draft))&&a.value++}function ce(e){e!==null&&(r.draft=JSON.parse(e),a.value++,de())}let le=R(()=>a.value>=0&&i.canUndo),ue=R(()=>a.value>=0&&i.canRedo);function de(){let e=r.selection;if(e.kind===`none`)return;let t=ms(r.draft,e.canvas);if(!t)r.selection={kind:`none`};else if(e.kind===`elements`){let n=e.ids.filter(e=>K_(t.elements).some(t=>t.id===e));r.selection=n.length===0?{kind:`canvas`,canvas:t.id}:{kind:`elements`,canvas:t.id,ids:n,active:n.includes(e.active)?e.active:n[0]}}r.view.kind===`modal`&&!f.value&&(r.view={kind:`page`})}function fe(e){r.selection={kind:`canvas`,canvas:e},he(e)}function pe(e,t,n=!1){let i=ms(r.draft,e),a=i?K_(i.elements).find(e=>e.id===t):void 0;if(!i||!a)return;let o=a.group?K_(i.elements).filter(e=>e.group===a.group).map(e=>e.id):[t],s=r.selection.kind===`elements`&&r.selection.canvas===e?r.selection.ids:[],c=n?s.includes(t)?s.filter(e=>!o.includes(e)):[.../* @__PURE__ */ new Set([...s,...o])]:o;r.selection=c.length===0?{kind:`canvas`,canvas:e}:{kind:`elements`,canvas:e,ids:c,active:c.includes(t)?t:c[0]},he(e)}function me(){let e=r.selection;r.selection=e.kind===`elements`?{kind:`canvas`,canvas:e.canvas}:e}function he(e){let t=r.draft.sections,n=t.findIndex(t=>t.id===e),i=t[n]?.group?.id;if(n<0||!i)return;let a=n;for(;a>0&&t[a-1]?.group?.id===i;)a--;r.panels={...r.panels,[i]:n-a}}function ge(e,t){return e?.elements.find(e=>(e.children??[]).some(e=>e.id===t))}function _e(e){let t=r.selection;return t.kind===`elements`&&ge(ms(r.draft,t.canvas),e)!==void 0}function ve(e){let t=r.selection;if(t.kind!==`elements`||t.active===null)return;let n=K_(e.elements).find(e=>e.id===t.active);return n?.type===`box`?n:ge(e,t.active)}function x(e,t,i){let a=t?ms(r.draft,t.canvas):p.value;if(!a)return;let o=Sy(e,t?t.y:a.elements.length*24+40,n);i&&(o.props={...o.props,src:i});let s=t?void 0:ve(a);if(s&&o.type!==`box`){o.layout.desktop={...o.layout.desktop,x:0,y:0,w:s.props.flow===`row`?48:100},o.z=(s.children?.length??0)+1,s.children=[...s.children??[],o],r.selection={kind:`elements`,canvas:a.id,ids:[o.id],active:o.id},b();return}t&&(o.layout.desktop={...o.layout.desktop,x:Math.round(t.x*2)/2,y:Os(t.y)}),o.z=a.elements.length+1,a.elements.push(o),r.selection={kind:`elements`,canvas:a.id,ids:[o.id],active:o.id},b()}function ye(){let e=r.selection,t=e.kind===`elements`?ms(r.draft,e.canvas):void 0,n=t?.elements.filter(t=>e.kind===`elements`&&e.ids.includes(t.id))??[];if(!t||n.length===0||n.some(e=>e.type===`box`||e.children))return;let i=n.map(e=>e.layout.desktop),a=Math.min(...i.map(e=>e.x)),o=Math.min(...i.map(e=>e.y)),s=Math.max(...i.map(e=>e.x+e.w)),c=Math.max(...i.map(e=>e.y+e.h)),l=s-a>60&&c-o<200,u=[...n].sort((e,t)=>e.layout.desktop.y-t.layout.desktop.y||e.layout.desktop.x-t.layout.desktop.x),d={id:ys(`box`),type:`box`,z:Math.max(...n.map(e=>e.z)),layout:{desktop:{x:a,y:o,w:Math.min(100-a,s-a),h:c-o},mobile:null},props:{flow:l?`row`:`column`,flow_gap:16,flow_align:`start`},style:{},children:u.map((e,t)=>({...e,z:t+1,layout:{desktop:{...e.layout.desktop,x:0,y:0,w:Math.min(100,e.layout.desktop.w/Math.max(s-a,1)*100)},mobile:null}}))},f=new Set(n.map(e=>e.id));t.elements=[...t.elements.filter(e=>!f.has(e.id)),d],r.selection={kind:`elements`,canvas:t.id,ids:[d.id],active:d.id},b()}function be(){let e=r.selection,t=e.kind===`elements`?ms(r.draft,e.canvas):void 0,n=t?.elements.find(t=>e.kind===`elements`&&t.id===e.active&&t.type===`box`);if(!t||!n||!n.children||n.children.length===0)return;let i=n.layout.desktop,a=n.children.map((e,t)=>({...e,z:n.z+t,layout:{desktop:{x:i.x,y:i.y+t*80,w:Math.min(100-i.x,i.w),h:e.layout.desktop.h},mobile:null}}));t.elements=[...t.elements.filter(e=>e.id!==n.id),...a];let o=a[0];o&&(r.selection={kind:`elements`,canvas:t.id,ids:a.map(e=>e.id),active:o.id}),b()}function xe(){let e=r.selection;if(e.kind!==`elements`)return;let t=ms(r.draft,e.canvas);if(t){let n=t=>!e.ids.includes(t.id)||t.locked===!0;t.elements=t.elements.filter(n).map(e=>e.children?{...e,children:e.children.filter(n)}:e),r.selection={kind:`canvas`,canvas:t.id},b()}}function Se(){let e=r.selection,t=e.kind===`elements`?ms(r.draft,e.canvas):void 0;t&&m.value.length!==0&&Ce(t,m.value)}function Ce(e,t){let n=/* @__PURE__ */ new Map,i=Math.max(0,...e.elements.map(e=>e.z)),a=t.map((e,t)=>{let r=bs(e),a=r.group?n.get(r.group)??n.set(r.group,ys(`group`)).get(r.group):null;return{...r,group:a,z:Math.min(999,i+t+1)}});e.elements.push(...a),r.selection={kind:`elements`,canvas:e.id,ids:a.map(e=>e.id),active:a[0].id},b()}function we(){let e=m.value;if(e.length!==0)try{window.localStorage.setItem(Xy,JSON.stringify(e)),v(e.length===1?n(`toast.copied`):n(`toast.copiedMany`,{n:e.length}))}catch{v(n(`toast.copyFailed`),`error`)}}function Te(){let e=p.value,t=[];try{let e=JSON.parse(window.localStorage.getItem(Xy)??`[]`);t=Array.isArray(e)?e.filter(e=>tb(e,c.value)):[]}catch{t=[]}e&&t.length!==0&&(Ce(e,t),v(n(`toast.pasted`)))}function Ee(e){let t=m.value,n=p.value;if(t.length===0||!n)return;let r=new Set(t.map(e=>e.id)),i=n.elements.filter(e=>!r.has(e.id)).map(e=>e.z),a=[...t].sort((e,t)=>e.z-t.z);a.forEach((t,n)=>{t.z=e===`front`?Ls(i)+n:Rs(i)-(a.length-1-n)}),b()}function De(e){let t=m.value,n=p.value;t.length!==0&&n&&(t.length===1?gs(t[0],r.device,Ps(hs(t[0],r.device),e,_s(n,r.device))):Fs(t.map(e=>hs(e,r.device)),e).forEach((e,n)=>gs(t[n],r.device,e)),b())}function Oe(e){let t=m.value;Is(t.map(e=>hs(e,r.device)),e).forEach((e,n)=>gs(t[n],r.device,e)),b()}function ke(){let e=m.value,t=h.value??e[0]??null;if(!t||e.length<2)return t;let n=n=>new Proxy(t[n],{set(t,r,i){return e.forEach(e=>Reflect.set(e[n],r,i)),!0},deleteProperty(t,r){return e.forEach(e=>Reflect.deleteProperty(e[n],r)),!0}}),r=n(`style`),i=n(`props`);return new Proxy(t,{get:(e,t)=>t===`style`?r:t===`props`?i:Reflect.get(e,t),set(t,n,r){return e.forEach(e=>Reflect.set(e,n,r)),!0}})}function Ae(){let e=ys(`group`);m.value.forEach(t=>t.group=e),b()}function je(){m.value.forEach(e=>e.group=null),b()}function Me(){let e=m.value,t=e.some(e=>!e.locked);e.forEach(e=>e.locked=t),b()}function Ne(e,t){let n=p.value;if(!n||r.device===`mobile`&&vs(n))return;let i=m.value.filter(e=>!e.locked);for(let n of i){let i=hs(n,r.device);gs(n,r.device,ks({...i,x:i.x+e*.5,y:i.y+t}))}i.length>0&&b()}function S(e){let t=p.value;for(let{id:n,box:i}of e){let e=t?K_(t.elements).find(e=>e.id===n):void 0;e&&gs(e,r.device,i)}b()}function Pe(e=Ss(),t){let n=t===void 0?-1:r.draft.sections.findIndex(e=>e.id===t);n===-1?r.draft.sections.push(e):r.draft.sections.splice(n+1,0,e),r.view={kind:`page`},r.selection={kind:`canvas`,canvas:e.id},b()}function Fe(e){let t=Gy(e);r.draft.sections=t,r.selection={kind:`canvas`,canvas:t[0].id},b()}function Ie(e){let t=r.draft.sections.find(t=>t.id===e);t&&Pe({...structuredClone(/* @__PURE__ */ C(t)),id:ys(`section`),elements:structuredClone(/* @__PURE__ */ C(t.elements)).map(e=>({...e,id:ys(e.type)}))},e)}function Le(e){r.draft.sections.length<=1||(r.draft.sections=r.draft.sections.filter(t=>t.id!==e),r.selection={kind:`canvas`,canvas:r.draft.sections[0].id},b())}function Re(e,t){let n=r.draft.sections,i=e+t,[a,o]=[n[e],n[i]];a&&o&&(n.splice(e,1,o),n.splice(i,1,a),b())}function ze(e,t){let n=r.draft.sections,i=n.indexOf(e);if(t===`alone`){e.group=null,b();return}let a=n[i-1],o=a?.group?.id||ys(`group`);a&&!a.group?.id&&(a.group={id:o,type:t,label:``}),e.group={id:o,type:t,label:e.group?.id===o?e.group.label??``:``},n.filter(e=>e.group?.id===o).forEach(e=>{e.group={...e.group,id:o,type:t}}),b()}function Be(e){e.height.desktop=Math.min(fs(e)?2e3:3e3,zs(e.elements.map(e=>e.layout.desktop))),b()}function Ve(e){let t=fs(e)?e.width:u.value.max_width,{boxes:r,height:i}=Bs(e.elements.map(e=>({desktop:e.layout.desktop,text:e.type===`text`})),t,390);e.elements.forEach((e,t)=>e.layout.mobile=r[t]??null),e.height.mobile=Math.min(fs(e)?2400:4e3,i),b(),v(n(`toast.mobileGenerated`))}function He(){let e=ws(n(`modals.defaultTitle`));r.draft.modals=[...r.draft.modals??[],e],b(),Ue(e.id)}function Ue(e){r.view=e?{kind:`modal`,id:e}:{kind:`page`},r.selection=e?{kind:`canvas`,canvas:e}:r.draft.sections[0]?{kind:`canvas`,canvas:r.draft.sections[0].id}:{kind:`none`}}function We(e){r.draft.modals=(r.draft.modals??[]).filter(t=>t.id!==e),r.view.kind===`modal`&&r.view.id===e&&Ue(null),b()}let Ge=()=>ce(i.undo()),Ke=()=>ce(i.redo());async function qe(){await s.flush()}async function Je(){let t=r.page;if(t&&!r.publishing){r.publishing=!0;try{if(!await s.flush()){v(n(`publish.failed`,{message:oe()}),`error`);return}let i=await s.exclusive(async()=>{let n=await e(`POST /pages/:id/publish`,{id:t.id},{revision:r.revision});return n.ok&&(t.publishedAt=n.value.publishedAt,t.versions=n.value.versions),n});if(!i.ok){i.failure.kind===`conflict`?r.dialog=`conflict`:v(n(`publish.failed`,{message:y(i.failure)}),`error`);return}ie(),v(n(`publish.done`))}finally{r.publishing=!1}}}async function Ye(t){let i=r.page;if(!i)return;let a=await s.exclusive(async()=>{let n=await e(`POST /pages/:id/versions/:version/restore`,{id:i.id,version:t});if(!n.ok)return y(n.failure);try{r.draft=xs(E_(n.value.draft,c.value))}catch(e){if(e instanceof C_)return $y(e.issues[0]);throw e}return r.revision=n.value.revision,i.versions=n.value.versions,s.reset(),null});if(a!==null){v(n(`toast.failed`,{message:a}),`error`);return}b(),de(),r.dialog=null,v(n(`versions.restored`))}async function Xe(t,i){if(r.page&&!await s.flush())return[{path:`title`,code:`type`,message:oe()}];let a=await e(`POST /pages`,{title:t,slug:i});return a.ok?(r.workspace.pages=[...r.workspace.pages,{id:a.value.id,slug:a.value.slug,title:a.value.title,publishedAt:a.value.publishedAt}],re(a.value),r.dialog=null,v(n(`toast.pageCreated`)),[]):a.failure.kind===`invalid`?a.failure.issues:[{path:`title`,code:`type`,message:y(a.failure)}]}async function Ze(t){let i=r.page;if(!i)return[];let a=await s.exclusive(async()=>{let n=await e(`PUT /pages/:id`,{id:i.id},{baseRevision:r.revision,title:i.title,slug:t});return n.ok&&(r.revision=n.value.revision,i.slug=t),n});return a.ok?(ie(),v(n(`page.addressSaved`)),[]):(a.failure.kind===`conflict`&&(r.dialog=`conflict`),a.failure.kind===`invalid`?a.failure.issues:[{path:`slug`,code:`type`,message:y(a.failure)}])}async function Qe(){let t=r.page;if(!t)return;let i=await s.exclusive(async()=>{let n=await e(`DELETE /pages/:id`,{id:t.id});return n.ok&&(r.page=null),n});if(!i.ok){v(n(`toast.failed`,{message:y(i.failure)}),`error`);return}r.workspace.pages=r.workspace.pages.filter(e=>e.id!==t.id),v(n(`page.deleted`));let a=r.workspace.pages[0];a?await ne(a.id):r.load={kind:`empty`}}async function $e(t){let n=await e(`PUT /site`,t);return n.ok?(r.workspace={...n.value,pages:r.workspace.pages},[]):n.failure.kind===`invalid`?n.failure.issues:[{path:``,code:`type`,message:y(n.failure)}]}async function et(t){let i=new FormData;i.append(`file`,t);let a=await e(`POST /assets`,i);return a.ok?(r.workspace.assets=[a.value,...r.workspace.assets],nt(),a.value):(v(n(`library.uploadFailed`,{message:y(a.failure)}),`error`),null)}async function tt(t){let i=await e(`DELETE /assets/:id`,{id:t.id});if(!i.ok){v(n(`library.deleteFailed`,{message:y(i.failure)}),`error`);return}r.workspace.assets=r.workspace.assets.filter(e=>e.id!==t.id),nt()}async function nt(){let t=await e(`GET /`);t.ok&&(r.workspace.quota=t.value.quota)}function rt(e){return R({get:()=>r.dialog===e,set:t=>{t?r.dialog=e:r.dialog===e&&(r.dialog=null)}})}function it(e=null){r.library={onPick:e}}return{state:r,i18n:t,t:n,client:e,previews:o,saveState:s.state,catalog:c,site:l,theme:u,canvases:d,activeModal:f,currentCanvas:p,selectedElements:m,activeElement:h,frameWidth:g,canUndo:le,canRedo:ue,kindOf:e=>xy(e,c.value),notify:v,failureText:y,dismiss:ee,load:te,openPage:ae,reloadPage:se,commit:b,undo:Ge,redo:Ke,select:pe,selectCanvas:fe,clearSelection:me,addElement:x,groupIntoBox:ye,ungroupBox:be,isInsideBox:_e,removeSelected:xe,duplicateSelected:Se,copySelected:we,paste:Te,layer:Ee,align:De,distributeSelected:Oe,sharedTarget:ke,groupSelected:Ae,ungroupSelected:je,toggleLock:Me,nudge:Ne,placeElements:S,addSection:Pe,duplicateSection:Ie,applyPageTemplate:Fe,removeSection:Le,moveSection:Re,setSectionGroup:ze,fitCanvas:Be,generateMobile:Ve,addModal:He,openModal:Ue,removeModal:We,saveNow:qe,publish:Je,restoreVersion:Ye,createPage:Xe,renamePage:Ze,deletePage:Qe,updateSite:$e,uploadAsset:et,deleteAsset:tt,openLibrary:it,dialogModel:rt,dispose:()=>s.dispose()}}var $y=e=>e?`${e.path}: ${e.message}`:``,eb=e=>({title:e.title.trim()===``?null:e.title,description:e.description.trim()===``?null:e.description});function tb(e,t){try{return E_({sections:[{...Ss(),elements:[e]}]},t),!0}catch(e){if(e instanceof C_)return!1;throw e}}var nb=/* @__PURE__ */ new Set([`INPUT`,`TEXTAREA`,`SELECT`]);function rb(e){let t=e.composedPath()[0];if(!t||typeof t.tagName!=`string`)return!1;let n=t;return nb.has(n.tagName)||n.isContentEditable}function ib(e,t){if(rb(t)||e.state.dialog!==null||e.state.library!==null||e.state.previewing)return;let n=e.state.selection.kind===`elements`,r=t.metaKey||t.ctrlKey,i=t.key.toLowerCase();if(!r)switch(t.key){case`Escape`:e.clearSelection();return;case`Delete`:case`Backspace`:if(!n)return;t.preventDefault(),e.removeSelected();return;case`ArrowLeft`:case`ArrowRight`:case`ArrowUp`:case`ArrowDown`:{if(!n)return;let r=t.shiftKey?10:1;t.preventDefault(),e.nudge(t.key===`ArrowLeft`?-r:t.key===`ArrowRight`?r:0,t.key===`ArrowUp`?-r:t.key===`ArrowDown`?r:0);return}default:return}switch(i){case`c`:e.copySelected();return;case`v`:e.paste();return;case`d`:t.preventDefault(),e.duplicateSelected();return;case`z`:t.preventDefault(),t.shiftKey?e.redo():e.undo();return;case`y`:t.preventDefault(),e.redo();return;case`s`:t.preventDefault(),e.saveNow();return;default:return}}var ab=`.lz-page,.lz-page *{box-sizing:border-box}
321
+ +00 000 000 0000`},style:{color:`background`,size:15,line_height:2,opacity:.8}},{type:`divider`,box:{x:6,y:300,w:88,h:2},props:{},style:{color:`background`,opacity:.25}},{type:`text`,box:{x:6,y:324,w:50,h:40},props:{text:`All rights reserved`},style:{color:`background`,size:13,opacity:.6}}])},qy=[{key:`hero`,name:`template.hero`,group:`open`},{key:`heroCentered`,name:`template.heroCentered`,group:`open`},{key:`heroSlider`,name:`template.heroSlider`,group:`open`},{key:`features`,name:`template.features`,group:`tell`},{key:`about`,name:`template.about`,group:`tell`},{key:`steps`,name:`template.steps`,group:`tell`},{key:`gallery`,name:`template.gallery`,group:`tell`},{key:`faq`,name:`template.faq`,group:`tell`},{key:`logos`,name:`template.logos`,group:`convince`},{key:`testimonial`,name:`template.testimonial`,group:`convince`},{key:`stats`,name:`template.stats`,group:`convince`},{key:`team`,name:`template.team`,group:`convince`},{key:`pricing`,name:`template.pricing`,group:`convince`},{key:`cta`,name:`template.cta`,group:`close`},{key:`newsletter`,name:`template.newsletter`,group:`close`},{key:`contact`,name:`template.contact`,group:`close`},{key:`footer`,name:`template.footer`,group:`close`},{key:`footerBig`,name:`template.footerBig`,group:`close`}],Jy=[{key:`open`,name:`template.group.open`},{key:`tell`,name:`template.group.tell`},{key:`convince`,name:`template.group.convince`},{key:`close`,name:`template.group.close`}],Yy={full:[`hero`,`features`,`about`,`cta`,`footer`],simple:[`hero`,`features`,`contact`,`footer`],landing:[`hero`,`cta`,`contact`,`footer`]},Xy=[{key:`full`,name:`pageTemplate.full`,note:`pageTemplate.full.note`},{key:`simple`,name:`pageTemplate.simple`,note:`pageTemplate.simple.note`},{key:`landing`,name:`pageTemplate.landing`,note:`pageTemplate.landing.note`}],Zy=e=>Ky[e](),Qy=e=>Yy[e].map(e=>Ky[e]());function $y({read:e,save:t,delay:n=1500,offlineRetry:r=5e3}){let i=/* @__PURE__ */ sn({kind:`saved`,at:null}),a=()=>JSON.stringify(e()),o=a(),s=0,c,l=null,u=!1,d=e=>{clearTimeout(c),u||(c=setTimeout(()=>void f(),e))};async function f(){for(clearTimeout(c);l;)await l;if(i.value.kind===`conflict`)return!1;let u=e(),f=JSON.stringify(u);if(f===o)return i.value.kind!==`saved`&&(i.value={kind:`saved`,at:/* @__PURE__ */ new Date}),!0;i.value={kind:`saving`};let p=s,m=t(u);l=m;let h=await m.finally(()=>{l=null});return p===s?h.ok?(o=f,a()===o?(i.value={kind:`saved`,at:/* @__PURE__ */ new Date},!0):(i.value={kind:`pending`},d(n),!1)):(i.value=eb(h.failure),i.value.kind===`offline`&&d(r),!1):!1}let p=()=>{i.value.kind===`offline`&&f()};return typeof window<`u`&&window.addEventListener(`online`,p),{state:i,changed(){if(i.value.kind!==`conflict`&&i.value.kind!==`saving`){if(a()===o){clearTimeout(c),i.value.kind!==`saved`&&(i.value={kind:`saved`,at:/* @__PURE__ */ new Date});return}i.value.kind!==`offline`&&(i.value={kind:`pending`}),d(n)}},flush:f,async exclusive(e){for(await f();l;)await l;let t=e();l=t;try{return await t}finally{l=null}},reset(){clearTimeout(c),s++,o=a(),i.value={kind:`saved`,at:null}},dispose(){u=!0,typeof window<`u`&&window.removeEventListener(`online`,p),f()}}}function eb(e){switch(e.kind){case`offline`:return{kind:`offline`};case`conflict`:return{kind:`conflict`};case`invalid`:return{kind:`invalid`,issues:e.issues,message:e.message};case`http`:return{kind:`failed`,message:e.message}}}function tb(e,t=250){let n=/* @__PURE__ */ new Map,r=/* @__PURE__ */ new Map,i=/* @__PURE__ */ sn(0),a;async function o(){let t=[...r.entries()];r.clear();let a=await e(`POST /preview`,{elements:t.map(([,e])=>e)});for(let[e,r]of t){let t=a.ok?a.value[r.id]:void 0;n.set(e,t===void 0?{status:`failed`}:{status:`ready`,html:t})}i.value++}return{version:i,get(e){let i=nb(e);return n.get(i)||(n.set(i,{status:`loading`}),r.set(i,{id:e.id,type:e.type,props:{...e.props}}),clearTimeout(a),a=setTimeout(()=>void o(),t),{status:`loading`})}}}function nb(e){let t=Object.keys(e.props).sort().map(t=>[t,e.props[t]]);return JSON.stringify([e.type,t])}var rb=`lienzo-editor-clipboard`,ib=Symbol(`lienzo-editor`);function Y(){let e=Jn(ib);if(!e)throw Error(`useEditor() outside <LienzoEditor>`);return e}function ab({client:e,i18n:t}){let n=t.t,r=/* @__PURE__ */ Jt({load:{kind:`loading`},workspace:{site:z_({name:`Lienzo`}),meta:{},publicUrl:null,pages:[],catalog:{elements:[],actions:[]},assets:[],quota:{used:0,limit:0}},page:null,draft:{sections:[]},revision:0,device:`desktop`,view:{kind:`page`},selection:{kind:`none`},previewing:!1,dialog:null,library:null,themeDraft:null,panels:{},zoom:null,renderIssues:[],publishing:!1,toasts:[]}),i=My(``),a=/* @__PURE__ */ sn(0),o=tb(e),s=()=>xs({page:r.page?.id??null,title:r.page?.title??``,seo:r.page?.seo??{title:``,description:``},draft:r.draft}),c=e=>({baseRevision:r.revision,title:e.title,seo:sb(e.seo),draft:e.draft}),l=$y({read:s,async save(t){if(t.page===null)return{ok:!0};let n=await e(`PUT /pages/:id`,{id:t.page},c(t));return r.page?.id===t.page?n.ok?(r.revision=n.value.revision,{ok:!0}):(n.failure.kind===`conflict`&&(r.dialog=`conflict`),n):{ok:!0}}});$n(()=>[r.page?.title,r.page?.seo,r.draft],()=>l.changed(),{deep:!0}),$n(()=>r.page?.title,oe);let u=R(()=>r.workspace.catalog),d=R(e=>{try{return z_({...r.workspace.site,theme:r.themeDraft??r.workspace.site.theme})}catch(t){if(t instanceof C_&&e)return e;throw t}}),f=R(()=>d.value.theme),p=R(()=>{if(r.view.kind===`modal`){let e=r.draft.modals?.find(e=>e.id===(r.view.kind===`modal`?r.view.id:``));return e?[e]:[]}return r.draft.sections}),m=R(()=>{let e=r.view;return e.kind===`modal`?r.draft.modals?.find(t=>t.id===e.id)??null:null}),h=R(()=>{let e=r.selection;return(e.kind===`none`?null:ms(r.draft,e.canvas))??p.value[0]??null}),g=R(()=>{let e=r.selection;if(e.kind!==`elements`)return[];let t=ms(r.draft,e.canvas);return t?K_(t.elements).filter(t=>e.ids.includes(t.id)):[]}),_=R(()=>{let e=r.selection;return e.kind===`elements`?g.value.find(t=>t.id===e.active)??null:null}),v=R(()=>{let e=m.value;return r.device===`mobile`?390:e?e.width+(e.size===`full`?0:32):f.value.max_width}),ee=0;function y(e,t=`info`){let n={id:++ee,tone:t,text:e};r.toasts.push(n),setTimeout(()=>te(n.id),t===`error`?8e3:3500)}function te(e){r.toasts=r.toasts.filter(t=>t.id!==e)}let ne=e=>e.kind===`offline`?n(`load.offline`):e.message;async function re(){r.load={kind:`loading`};let t=await e(`GET /`);if(!t.ok){r.load={kind:`failed`,message:ne(t.failure)};return}try{z_(t.value.site)}catch(e){if(e instanceof C_){r.load={kind:`failed`,message:ob(e.issues[0])};return}throw e}r.workspace=t.value;let n=t.value.pages[0];if(!n){r.load={kind:`empty`},r.dialog=`newPage`;return}await se(n.id)}async function ie(t){let n=await e(`GET /pages/:id`,{id:t});return n.ok?ae(n.value):(r.load={kind:`failed`,message:ne(n.failure)},!1)}function ae(e){let t;try{t=xs(E_(e.draft,u.value))}catch(e){if(e instanceof C_)return r.load={kind:`failed`,message:n(`load.invalidDraft`,{issue:ob(e.issues[0])})},!1;throw e}return r.page={id:e.id,slug:e.slug,title:e.title,publishedAt:e.publishedAt,seo:{title:e.seo.title??``,description:e.seo.description??``},versions:e.versions},r.draft=t,r.revision=e.revision,r.view={kind:`page`},r.selection=t.sections[0]?{kind:`canvas`,canvas:t.sections[0].id}:{kind:`none`},r.panels={},r.load={kind:`ready`},i.reset(JSON.stringify(t)),a.value++,l.reset(),oe(),!0}function oe(){let e=r.page;e&&(r.workspace.pages=r.workspace.pages.map(t=>t.id===e.id?{id:e.id,slug:e.slug,title:e.title,publishedAt:e.publishedAt}:t))}async function se(e){if(r.page?.id!==e){if(r.page&&!await l.flush()){y(n(`save.failed`,{message:ce()}),`error`);return}await ie(e)}}function ce(){let e=l.state.value;switch(e.kind){case`offline`:return n(`load.offline`);case`failed`:case`invalid`:return e.message;case`conflict`:return n(`save.conflict`);default:return``}}async function le(){r.page&&(r.dialog=null,await ie(r.page.id))}function b(){i.push(JSON.stringify(r.draft))&&a.value++}function ue(e){e!==null&&(r.draft=JSON.parse(e),a.value++,pe())}let de=R(()=>a.value>=0&&i.canUndo),fe=R(()=>a.value>=0&&i.canRedo);function pe(){let e=r.selection;if(e.kind===`none`)return;let t=ms(r.draft,e.canvas);if(!t)r.selection={kind:`none`};else if(e.kind===`elements`){let n=e.ids.filter(e=>K_(t.elements).some(t=>t.id===e));r.selection=n.length===0?{kind:`canvas`,canvas:t.id}:{kind:`elements`,canvas:t.id,ids:n,active:n.includes(e.active)?e.active:n[0]}}r.view.kind===`modal`&&!m.value&&(r.view={kind:`page`})}function me(e){r.selection={kind:`canvas`,canvas:e},_e(e)}function he(e,t,n=!1){let i=ms(r.draft,e),a=i?K_(i.elements).find(e=>e.id===t):void 0;if(!i||!a)return;let o=a.group?K_(i.elements).filter(e=>e.group===a.group).map(e=>e.id):[t],s=r.selection.kind===`elements`&&r.selection.canvas===e?r.selection.ids:[],c=n?s.includes(t)?s.filter(e=>!o.includes(e)):[.../* @__PURE__ */ new Set([...s,...o])]:o;r.selection=c.length===0?{kind:`canvas`,canvas:e}:{kind:`elements`,canvas:e,ids:c,active:c.includes(t)?t:c[0]},_e(e)}function ge(){let e=r.selection;r.selection=e.kind===`elements`?{kind:`canvas`,canvas:e.canvas}:e}function _e(e){let t=r.draft.sections,n=t.findIndex(t=>t.id===e),i=t[n]?.group?.id;if(n<0||!i)return;let a=n;for(;a>0&&t[a-1]?.group?.id===i;)a--;r.panels={...r.panels,[i]:n-a}}function ve(e,t){return e?.elements.find(e=>(e.children??[]).some(e=>e.id===t))}function x(e){let t=r.selection;return t.kind===`elements`&&ve(ms(r.draft,t.canvas),e)!==void 0}function ye(e){let t=r.selection;if(t.kind!==`elements`||t.active===null)return;let n=K_(e.elements).find(e=>e.id===t.active);return n?.type===`box`?n:ve(e,t.active)}function be(e,t,i){let a=t?ms(r.draft,t.canvas):h.value;if(!a)return;let o=ky(e,t?t.y:a.elements.length*24+40,n);i&&(o.props={...o.props,src:i});let s=t?void 0:ye(a);if(s&&o.type!==`box`){o.layout.desktop={...o.layout.desktop,x:0,y:0,w:s.props.flow===`row`?48:100},o.z=(s.children?.length??0)+1,s.children=[...s.children??[],o],r.selection={kind:`elements`,canvas:a.id,ids:[o.id],active:o.id},b();return}t&&(o.layout.desktop={...o.layout.desktop,x:Math.round(t.x*2)/2,y:Os(t.y)}),o.z=a.elements.length+1,a.elements.push(o),r.selection={kind:`elements`,canvas:a.id,ids:[o.id],active:o.id},b()}function xe(){let e=r.selection,t=e.kind===`elements`?ms(r.draft,e.canvas):void 0,n=t?.elements.filter(t=>e.kind===`elements`&&e.ids.includes(t.id))??[];if(!t||n.length===0||n.some(e=>e.type===`box`||e.children))return;let i=n.map(e=>e.layout.desktop),a=Math.min(...i.map(e=>e.x)),o=Math.min(...i.map(e=>e.y)),s=Math.max(...i.map(e=>e.x+e.w)),c=Math.max(...i.map(e=>e.y+e.h)),l=s-a>60&&c-o<200,u=[...n].sort((e,t)=>e.layout.desktop.y-t.layout.desktop.y||e.layout.desktop.x-t.layout.desktop.x),d={id:ys(`box`),type:`box`,z:Math.max(...n.map(e=>e.z)),layout:{desktop:{x:a,y:o,w:Math.min(100-a,s-a),h:c-o},mobile:null},props:{flow:l?`row`:`column`,flow_gap:16,flow_align:`start`},style:{},children:u.map((e,t)=>({...e,z:t+1,layout:{desktop:{...e.layout.desktop,x:0,y:0,w:Math.min(100,e.layout.desktop.w/Math.max(s-a,1)*100)},mobile:null}}))},f=new Set(n.map(e=>e.id));t.elements=[...t.elements.filter(e=>!f.has(e.id)),d],r.selection={kind:`elements`,canvas:t.id,ids:[d.id],active:d.id},b()}function Se(){let e=r.selection,t=e.kind===`elements`?ms(r.draft,e.canvas):void 0,n=t?.elements.find(t=>e.kind===`elements`&&t.id===e.active&&t.type===`box`);if(!t||!n||!n.children||n.children.length===0)return;let i=n.layout.desktop,a=n.children.map((e,t)=>({...e,z:n.z+t,layout:{desktop:{x:i.x,y:i.y+t*80,w:Math.min(100-i.x,i.w),h:e.layout.desktop.h},mobile:null}}));t.elements=[...t.elements.filter(e=>e.id!==n.id),...a];let o=a[0];o&&(r.selection={kind:`elements`,canvas:t.id,ids:a.map(e=>e.id),active:o.id}),b()}function Ce(){let e=r.selection;if(e.kind!==`elements`)return;let t=ms(r.draft,e.canvas);if(t){let n=t=>!e.ids.includes(t.id)||t.locked===!0;t.elements=t.elements.filter(n).map(e=>e.children?{...e,children:e.children.filter(n)}:e),r.selection={kind:`canvas`,canvas:t.id},b()}}function we(){let e=r.selection,t=e.kind===`elements`?ms(r.draft,e.canvas):void 0;t&&g.value.length!==0&&Te(t,g.value)}function Te(e,t){let n=/* @__PURE__ */ new Map,i=Math.max(0,...e.elements.map(e=>e.z)),a=t.map((e,t)=>{let r=bs(e),a=r.group?n.get(r.group)??n.set(r.group,ys(`group`)).get(r.group):null;return{...r,group:a,z:Math.min(999,i+t+1)}});e.elements.push(...a),r.selection={kind:`elements`,canvas:e.id,ids:a.map(e=>e.id),active:a[0].id},b()}function Ee(){let e=g.value;if(e.length!==0)try{window.localStorage.setItem(rb,JSON.stringify(e)),y(e.length===1?n(`toast.copied`):n(`toast.copiedMany`,{n:e.length}))}catch{y(n(`toast.copyFailed`),`error`)}}function De(){let e=h.value,t=[];try{let e=JSON.parse(window.localStorage.getItem(rb)??`[]`);t=Array.isArray(e)?e.filter(e=>cb(e,u.value)):[]}catch{t=[]}e&&t.length!==0&&(Te(e,t),y(n(`toast.pasted`)))}function Oe(e){let t=g.value,n=h.value;if(t.length===0||!n)return;let r=new Set(t.map(e=>e.id)),i=n.elements.filter(e=>!r.has(e.id)).map(e=>e.z),a=[...t].sort((e,t)=>e.z-t.z);a.forEach((t,n)=>{t.z=e===`front`?Ls(i)+n:Rs(i)-(a.length-1-n)}),b()}function ke(e){let t=g.value,n=h.value;t.length!==0&&n&&(t.length===1?gs(t[0],r.device,Ps(hs(t[0],r.device),e,_s(n,r.device))):Fs(t.map(e=>hs(e,r.device)),e).forEach((e,n)=>gs(t[n],r.device,e)),b())}function Ae(e){let t=g.value;Is(t.map(e=>hs(e,r.device)),e).forEach((e,n)=>gs(t[n],r.device,e)),b()}function je(){let e=g.value,t=_.value??e[0]??null;if(!t||e.length<2)return t;let n=n=>new Proxy(t[n],{set(t,r,i){return e.forEach(e=>Reflect.set(e[n],r,i)),!0},deleteProperty(t,r){return e.forEach(e=>Reflect.deleteProperty(e[n],r)),!0}}),r=n(`style`),i=n(`props`);return new Proxy(t,{get:(e,t)=>t===`style`?r:t===`props`?i:Reflect.get(e,t),set(t,n,r){return e.forEach(e=>Reflect.set(e,n,r)),!0}})}function Me(){let e=ys(`group`);g.value.forEach(t=>t.group=e),b()}function Ne(){g.value.forEach(e=>e.group=null),b()}function S(){let e=g.value,t=e.some(e=>!e.locked);e.forEach(e=>e.locked=t),b()}function Pe(e,t){let n=h.value;if(!n||r.device===`mobile`&&vs(n))return;let i=g.value.filter(e=>!e.locked);for(let n of i){let i=hs(n,r.device);gs(n,r.device,ks({...i,x:i.x+e*.5,y:i.y+t}))}i.length>0&&b()}function Fe(e){let t=h.value;for(let{id:n,box:i}of e){let e=t?K_(t.elements).find(e=>e.id===n):void 0;e&&gs(e,r.device,i)}b()}function Ie(e=Ss(),t){let n=t===void 0?-1:r.draft.sections.findIndex(e=>e.id===t);n===-1?r.draft.sections.push(e):r.draft.sections.splice(n+1,0,e),r.view={kind:`page`},r.selection={kind:`canvas`,canvas:e.id},b()}function Le(e){let t=Qy(e);r.draft.sections=t,r.selection={kind:`canvas`,canvas:t[0].id},b()}function Re(e){let t=r.draft.sections.find(t=>t.id===e);t&&Ie({...structuredClone(/* @__PURE__ */ C(t)),id:ys(`section`),elements:structuredClone(/* @__PURE__ */ C(t.elements)).map(e=>({...e,id:ys(e.type)}))},e)}function ze(e){r.draft.sections.length<=1||(r.draft.sections=r.draft.sections.filter(t=>t.id!==e),r.selection={kind:`canvas`,canvas:r.draft.sections[0].id},b())}function Be(e,t){let n=r.draft.sections,i=e+t,[a,o]=[n[e],n[i]];a&&o&&(n.splice(e,1,o),n.splice(i,1,a),b())}function Ve(e,t){let n=r.draft.sections,i=n.indexOf(e);if(t===`alone`){e.group=null,b();return}let a=n[i-1],o=a?.group?.id||ys(`group`);a&&!a.group?.id&&(a.group={id:o,type:t,label:``}),e.group={id:o,type:t,label:e.group?.id===o?e.group.label??``:``},n.filter(e=>e.group?.id===o).forEach(e=>{e.group={...e.group,id:o,type:t}}),b()}function He(e){e.height.desktop=Math.min(fs(e)?2e3:3e3,zs(e.elements.map(e=>e.layout.desktop))),b()}function Ue(e){let t=fs(e)?e.width:f.value.max_width,{boxes:r,height:i}=Bs(e.elements.map(e=>({desktop:e.layout.desktop,text:e.type===`text`})),t,390);e.elements.forEach((e,t)=>e.layout.mobile=r[t]??null),e.height.mobile=Math.min(fs(e)?2400:4e3,i),b(),y(n(`toast.mobileGenerated`))}function We(){let e=ws(n(`modals.defaultTitle`));r.draft.modals=[...r.draft.modals??[],e],b(),Ge(e.id)}function Ge(e){r.view=e?{kind:`modal`,id:e}:{kind:`page`},r.selection=e?{kind:`canvas`,canvas:e}:r.draft.sections[0]?{kind:`canvas`,canvas:r.draft.sections[0].id}:{kind:`none`}}function Ke(e){r.draft.modals=(r.draft.modals??[]).filter(t=>t.id!==e),r.view.kind===`modal`&&r.view.id===e&&Ge(null),b()}let qe=()=>ue(i.undo()),Je=()=>ue(i.redo());async function Ye(){await l.flush()}function Xe(){let e=s();return l.state.value.kind!==`saved`&&e.page!==null&&!_y(JSON.stringify(c(e)))}async function Ze(){let t=r.page;if(t&&!r.publishing){r.publishing=!0;try{if(!await l.flush()){y(n(`publish.failed`,{message:ce()}),`error`);return}let i=await l.exclusive(async()=>{let n=await e(`POST /pages/:id/publish`,{id:t.id},{revision:r.revision});return n.ok&&(t.publishedAt=n.value.publishedAt,t.versions=n.value.versions),n});if(!i.ok){i.failure.kind===`conflict`?r.dialog=`conflict`:y(n(`publish.failed`,{message:ne(i.failure)}),`error`);return}oe(),y(n(`publish.done`))}finally{r.publishing=!1}}}async function Qe(t){let i=r.page;if(!i)return;let a=await l.exclusive(async()=>{let n=await e(`POST /pages/:id/versions/:version/restore`,{id:i.id,version:t});if(!n.ok)return ne(n.failure);try{r.draft=xs(E_(n.value.draft,u.value))}catch(e){if(e instanceof C_)return ob(e.issues[0]);throw e}return r.revision=n.value.revision,i.versions=n.value.versions,l.reset(),null});if(a!==null){y(n(`toast.failed`,{message:a}),`error`);return}b(),pe(),r.dialog=null,y(n(`versions.restored`))}async function $e(t,i){if(r.page&&!await l.flush())return[{path:`title`,code:`type`,message:ce()}];let a=await e(`POST /pages`,{title:t,slug:i});return a.ok?(r.workspace.pages=[...r.workspace.pages,{id:a.value.id,slug:a.value.slug,title:a.value.title,publishedAt:a.value.publishedAt}],ae(a.value),r.dialog=null,y(n(`toast.pageCreated`)),[]):a.failure.kind===`invalid`?a.failure.issues:[{path:`title`,code:`type`,message:ne(a.failure)}]}async function et(t){let i=r.page;if(!i)return[];let a=await l.exclusive(async()=>{let n=await e(`PUT /pages/:id`,{id:i.id},{baseRevision:r.revision,title:i.title,slug:t});return n.ok&&(r.revision=n.value.revision,i.slug=t),n});return a.ok?(oe(),y(n(`page.addressSaved`)),[]):(a.failure.kind===`conflict`&&(r.dialog=`conflict`),a.failure.kind===`invalid`?a.failure.issues:[{path:`slug`,code:`type`,message:ne(a.failure)}])}async function tt(){let t=r.page;if(!t)return;let i=await l.exclusive(async()=>{let n=await e(`DELETE /pages/:id`,{id:t.id});return n.ok&&(r.page=null),n});if(!i.ok){y(n(`toast.failed`,{message:ne(i.failure)}),`error`);return}r.workspace.pages=r.workspace.pages.filter(e=>e.id!==t.id),y(n(`page.deleted`));let a=r.workspace.pages[0];a?await ie(a.id):r.load={kind:`empty`}}async function nt(t){let n=await e(`PUT /site`,t);return n.ok?(r.workspace={...n.value,pages:r.workspace.pages},[]):n.failure.kind===`invalid`?n.failure.issues:[{path:``,code:`type`,message:ne(n.failure)}]}async function rt(t){let i=new FormData;i.append(`file`,t);let a=await e(`POST /assets`,i);return a.ok?(r.workspace.assets=[a.value,...r.workspace.assets],at(),a.value):(y(n(`library.uploadFailed`,{message:ne(a.failure)}),`error`),null)}async function it(t){let i=await e(`DELETE /assets/:id`,{id:t.id});if(!i.ok){y(n(`library.deleteFailed`,{message:ne(i.failure)}),`error`);return}r.workspace.assets=r.workspace.assets.filter(e=>e.id!==t.id),at()}async function at(){let t=await e(`GET /`);t.ok&&(r.workspace.quota=t.value.quota)}function ot(e){return R({get:()=>r.dialog===e,set:t=>{t?r.dialog=e:r.dialog===e&&(r.dialog=null)}})}function st(e=null){r.library={onPick:e}}return{state:r,i18n:t,t:n,client:e,previews:o,saveState:l.state,catalog:u,site:d,theme:f,canvases:p,activeModal:m,currentCanvas:h,selectedElements:g,activeElement:_,frameWidth:v,canUndo:de,canRedo:fe,kindOf:e=>Oy(e,u.value),notify:y,failureText:ne,dismiss:te,load:re,openPage:se,reloadPage:le,commit:b,undo:qe,redo:Je,select:he,selectCanvas:me,clearSelection:ge,addElement:be,groupIntoBox:xe,ungroupBox:Se,isInsideBox:x,removeSelected:Ce,duplicateSelected:we,copySelected:Ee,paste:De,layer:Oe,align:ke,distributeSelected:Ae,sharedTarget:je,groupSelected:Me,ungroupSelected:Ne,toggleLock:S,nudge:Pe,placeElements:Fe,addSection:Ie,duplicateSection:Re,applyPageTemplate:Le,removeSection:ze,moveSection:Be,setSectionGroup:Ve,fitCanvas:He,generateMobile:Ue,addModal:We,openModal:Ge,removeModal:Ke,saveNow:Ye,leavingLosesEdits:Xe,publish:Ze,restoreVersion:Qe,createPage:$e,renamePage:et,deletePage:tt,updateSite:nt,uploadAsset:rt,deleteAsset:it,openLibrary:st,dialogModel:ot,dispose:()=>l.dispose()}}var ob=e=>e?`${e.path}: ${e.message}`:``,sb=e=>({title:e.title.trim()===``?null:e.title,description:e.description.trim()===``?null:e.description});function cb(e,t){try{return E_({sections:[{...Ss(),elements:[e]}]},t),!0}catch(e){if(e instanceof C_)return!1;throw e}}var lb=/* @__PURE__ */ new Set([`INPUT`,`TEXTAREA`,`SELECT`]);function ub(e){let t=e.composedPath()[0];if(!t||typeof t.tagName!=`string`)return!1;let n=t;return lb.has(n.tagName)||n.isContentEditable}function db(e,t){if(ub(t)||e.state.dialog!==null||e.state.library!==null||e.state.previewing)return;let n=e.state.selection.kind===`elements`,r=t.metaKey||t.ctrlKey,i=t.key.toLowerCase();if(!r)switch(t.key){case`Escape`:e.clearSelection();return;case`Delete`:case`Backspace`:if(!n)return;t.preventDefault(),e.removeSelected();return;case`ArrowLeft`:case`ArrowRight`:case`ArrowUp`:case`ArrowDown`:{if(!n)return;let r=t.shiftKey?10:1;t.preventDefault(),e.nudge(t.key===`ArrowLeft`?-r:t.key===`ArrowRight`?r:0,t.key===`ArrowUp`?-r:t.key===`ArrowDown`?r:0);return}default:return}switch(i){case`c`:e.copySelected();return;case`v`:e.paste();return;case`d`:t.preventDefault(),e.duplicateSelected();return;case`z`:t.preventDefault(),t.shiftKey?e.redo():e.undo();return;case`y`:t.preventDefault(),e.redo();return;case`s`:t.preventDefault(),e.saveNow();return;default:return}}var fb=`.lz-page,.lz-page *{box-sizing:border-box}
322
322
  html:has(.lz-page){scroll-behavior:smooth}
323
323
  @media (prefers-reduced-motion:reduce){html:has(.lz-page){scroll-behavior:auto}}
324
324
  .lz-page{margin:0;container:lz/inline-size;background:var(--background);color:var(--text);font-family:var(--font-body)}
@@ -509,7 +509,7 @@ button.lz-el{cursor:pointer;padding:var(--_p,1px 6px)}
509
509
  .lz-modal-close:hover{opacity:.8}
510
510
  .lz-placeholder{display:grid;place-items:center;padding:8px;border:1px dashed currentColor;font:12px/1.3 system-ui,sans-serif;opacity:.6}
511
511
  @container lz (max-width:640px){.lz-section>.lz-frame{--u:calc(min(100cqw,390px) / 390)}.lz-frame{height:calc(var(--fmh) * var(--u))}.lz-frame[data-stack]{height:auto;padding:32px 20px;display:flex;flex-direction:column;gap:20px}.lz-frame:not([data-stack]) .lz-el{position:absolute;left:calc(var(--mx) * 1%);top:calc(var(--my) * var(--u));width:calc(var(--mw) * 1%);height:calc(var(--mh) * var(--u))}.lz-el{font-size:calc(var(--fms,var(--fs)) * var(--u))}.lz-frame:not([data-stack]) .lz-el[data-auto]{height:auto}.lz-frame[data-stack] .lz-el{position:static;width:auto;height:auto;order:var(--ord)}.lz-frame[data-flow]{height:auto;min-height:calc(var(--fmh) * var(--u));flex-direction:column;padding:32px 20px}.lz-frame[data-flow] .lz-el{position:static;width:auto;height:auto;order:var(--ord)}.lz-frame .lz-box{flex-direction:column;height:auto;min-height:calc(var(--mh,var(--h)) * var(--u))}.lz-frame:not([data-stack]) .lz-box>.lz-el{position:static;width:calc(var(--w) * 1%);height:auto;min-height:calc(var(--h) * var(--u))}.lz-frame:not([data-stack]) .lz-box>.lz-el[data-auto]{min-height:0}.lz-frame:not([data-stack]) .lz-box[data-flow=row]>.lz-el{width:100%}.lz-frame[data-stack] .lz-box>.lz-el{position:static;width:100%;height:auto}.lz-el[data-visible=desktop]{display:none}.lz-parallax>.lz-bg{position:absolute}.lz-frame:not([data-stack]) .lz-navbar[data-sticky]{position:fixed;left:50%;translate:-50% 0;width:min(100%,var(--max-width))}.lz-navbar-links{display:none}.lz-navbar-menu{display:block}.lz-el{max-width:100%;min-width:0}img.lz-el{height:auto}.lz-icon{width:max-content}.lz-icon svg{width:calc(36 * var(--u));height:calc(36 * var(--u))}}
512
- `,ob=`
512
+ `,pb=`
513
513
  html,body{margin:0}
514
514
  body{overflow:hidden}
515
515
  .lz-el{cursor:default;user-select:none;-webkit-user-select:none}
@@ -532,8 +532,8 @@ img.lz-el[src=""]::before{content:var(--lze-empty-image)}
532
532
  body[data-lze-modal] .lz-section,body[data-lze-modal] .lz-stack,body[data-lze-modal] .lz-notice{display:none}
533
533
  body[data-lze-modal] dialog.lz-modal[data-lze-open]{display:block;position:static;margin:16px auto;max-height:none;overflow:visible;box-shadow:0 12px 40px rgba(15,23,42,.18)}
534
534
  body[data-lze-modal] dialog.lz-modal[data-lze-open][data-size=full]{margin:0}
535
- `;function sb(e){return{catalog:e.catalog.value,site:e.site.value,assets:e.state.workspace.assets,slug:e.state.page?.slug??``,publicUrl:e.state.workspace.publicUrl,preview:t=>e.previews.get(t),labels:{loading:e.t(`canvas.loadingPreview`),failed:e.t(`canvas.previewFailed`)}}}async function cb(e,t,n){let r;try{r=E_(e,t.catalog)}catch(e){if(e instanceof C_)return{ok:!1,issues:e.issues};throw e}return{ok:!0,page:await $v({document:r,catalog:t.catalog,site:t.site,page:{slug:t.slug,seo:{},url:new URL(t.slug,t.publicUrl??`https://example.invalid/`).href},base:``,mode:n,host:{media:e=>{let n=t.assets.find(t=>t.ref===e);return n?{url:n.url,thumb:n.thumb,width:n.width,height:n.height}:null},action:()=>`#`,appElement:e=>{let n=t.preview(e);return n.status===`ready`?Z_(n.html):Z_(`<div class="lze-app-placeholder" data-status="${n.status}">${ub(n.status===`loading`?t.labels.loading:t.labels.failed)}</div>`)},form:null}})}}var lb={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#039;`},ub=e=>e.replace(/[&<>"']/g,e=>lb[e]??e),db=e=>e.replace(/[^A-Za-z0-9_-]/g,``)||`x`;function fb(e){let t=e.contentDocument;if(!t)throw Error(`The canvas iframe has no document`);let n=t;n.open(),n.write(`<!DOCTYPE html><html><head><meta charset="utf-8"></head><body class="lz-page"></body></html>`),n.close();let r=n.defaultView?.CSSStyleSheet??CSSStyleSheet,i=e=>{let t=new r;return t.replaceSync(e),t},a=i(``);n.adoptedStyleSheets=[i(ab),a,i(ob)];let o=n.createElement(`link`);o.rel=`stylesheet`,n.head.append(o);let s=n.body,c=/* @__PURE__ */ new Map,l={canvases:/* @__PURE__ */ new Map,elements:/* @__PURE__ */ new Map};function u(e,t,n,r){a.replaceSync(t),o.href!==r.fontsHref&&(o.href=r.fontsHref),s.style.setProperty(`--lze-empty-image`,JSON.stringify(r.emptyImage)),s.style.setProperty(`--lze-empty-video`,JSON.stringify(r.emptyVideo)),d(e),l=p(n),s.toggleAttribute(`data-lze-modal`,r.modal!==null),s.querySelectorAll(`dialog.lz-modal`).forEach(e=>{e.toggleAttribute(`data-lze-open`,r.modal!==null&&e.id===`m-${db(r.modal)}`)}),s.querySelectorAll(`.lz-stack`).forEach(e=>{let t=f(e.id,n),i=t===null?0:r.panels[t]??0;e.querySelectorAll(`:scope > .lz-stack-panels > .lz-stack-panel`).forEach((e,t)=>e.toggleAttribute(`data-on`,t===i)),e.querySelectorAll(`:scope > .lz-stack-nav > button`).forEach((e,t)=>e.setAttribute(`aria-pressed`,String(t===i)))})}function d(e){let t=n.createElement(`template`);t.innerHTML=e;let r=new Map([...s.children].map(e=>[e.id,e])),i=/* @__PURE__ */ new Map,a=[...t.content.children].map(e=>{let t=e.outerHTML,a=r.get(e.id),o=a!==void 0&&e.id!==``&&c.get(e.id)===t;return i.set(e.id,t),o?a:n.importNode(e,!0)});for(a.forEach((e,t)=>{s.children[t]!==e&&s.insertBefore(e,s.children[t]??null)});s.children.length>a.length;)s.lastElementChild?.remove();s.querySelectorAll(`.lz-el[style]`).forEach(e=>e.removeAttribute(`style`)),c=i}function f(e,t){return t.sections.find(t=>t.group?.id&&`g-${db(t.group.id)}`===e)?.group?.id??null}function p(e){let t={canvases:/* @__PURE__ */ new Map,elements:/* @__PURE__ */ new Map};for(let n of ps(e)){t.canvases.set(db(n.id),n.id);for(let e of n.elements)t.elements.set(db(e.id),{canvas:n.id,element:e.id})}return t}let m=e=>n.getElementById(`e-${db(e)}`),h=e=>n.getElementById(`s-${db(e)}`)??n.getElementById(`m-${db(e)}`),g=e=>h(e)?.querySelector(`.lz-frame`)??null;function _(e){let t=pb(e)?e.nodeType===1?e:e.parentElement:null,n=t?.closest(`.lz-el`),r=n?l.elements.get(n.id.slice(2)):void 0;if(n&&r)return{canvas:r.canvas,element:r.element,node:n};let i=t?.closest(`.lz-section, dialog.lz-modal`),a=i?l.canvases.get(i.id.slice(2)):void 0;return i&&a?{canvas:a,element:null,node:i}:null}let v=e=>{let t=e.getBoundingClientRect();return{x:t.left+n.documentElement.scrollLeft,y:t.top+n.documentElement.scrollTop,w:t.width,h:t.height}};function ee(e,t){let n=/* @__PURE__ */ new Map,r=/* @__PURE__ */ new Map;for(let i of ps(e)){let e=h(i.id),a=g(i.id);if(!e||!a||a.offsetParent===null)continue;let o=v(a),s=t===`desktop`?i.height.desktop:i.height.mobile;n.set(i.id,{frame:o,unit:a.hasAttribute(`data-stack`)&&t===`mobile`?o.w/390:o.h/s,outer:v(e)});for(let e of i.elements){let t=m(e.id);t&&t.offsetParent!==null&&r.set(e.id,{x:o.x+t.offsetLeft,y:o.y+t.offsetTop,w:t.offsetWidth,h:t.offsetHeight})}}return{canvases:n,elements:r}}function y(e,t,n){let r=m(e),[i,a,o,s]=t===`desktop`?[`--x`,`--y`,`--w`,`--h`]:[`--mx`,`--my`,`--mw`,`--mh`];r?.style.setProperty(i,String(n.x)),r?.style.setProperty(a,String(n.y)),r?.style.setProperty(o,String(n.w)),r?.style.setProperty(s,String(n.h))}return{doc:n,update:u,measure:ee,hit:_,preview:y,previewVar:(e,t,n)=>m(e)?.style.setProperty(t,String(n)),contentHeight:()=>n.documentElement.scrollHeight}}var pb=e=>e!==null&&typeof e.nodeType==`number`,mb={class:`lze-context-label`},hb={class:`lze-context-row`},gb=[`title`,`aria-label`,`onClick`],_b=[`data-align`],vb=/* @__PURE__ */ D({__name:`ContextMenu`,props:{at:{}},emits:[`close`],setup(e,{emit:t}){let n=e,r=t,i=Y(),a=i.t,o=/* @__PURE__ */ w(),s=/* @__PURE__ */ w({...n.at}),c=R(()=>i.selectedElements.value),l=R(()=>c.value.length>1),u=R(()=>c.value.some(e=>e.group)),d=R(()=>c.value.some(e=>e.locked));function f(e){e(),r(`close`)}async function p(){await Nn();let e=o.value?.getBoundingClientRect();e&&(s.value={x:Math.min(n.at.x,window.innerWidth-e.width-8),y:Math.min(n.at.y,window.innerHeight-e.height-8)})}$n(()=>n.at,p,{immediate:!0});function m(e){o.value?.contains(e.target)||r(`close`)}let h=e=>e.key===`Escape`&&r(`close`);return Cr(()=>{window.addEventListener(`pointerdown`,m,!0),window.addEventListener(`keydown`,h),window.addEventListener(`resize`,()=>r(`close`)),o.value?.focus()}),Er(()=>{window.removeEventListener(`pointerdown`,m,!0),window.removeEventListener(`keydown`,h)}),(e,t)=>(j(),M(`div`,{ref_key:`menu`,ref:o,class:`lze-context`,role:`menu`,tabindex:`-1`,style:x({left:`${s.value.x}px`,top:`${s.value.y}px`}),onContextmenu:t[14]||=ts(()=>{},[`prevent`])},[c.value.length?(j(),M(A,{key:0},[P(`button`,{type:`button`,role:`menuitem`,onClick:t[0]||=e=>f(T(i).copySelected)},[I(S(T(a)(`menu.copy`)),1),t[15]||=P(`kbd`,null,`⌘C`,-1)]),P(`button`,{type:`button`,role:`menuitem`,onClick:t[1]||=e=>f(T(i).duplicateSelected)},[I(S(T(a)(`common.duplicate`)),1),t[16]||=P(`kbd`,null,`⌘D`,-1)]),P(`button`,{type:`button`,role:`menuitem`,onClick:t[2]||=e=>f(T(i).paste)},[I(S(T(a)(`menu.paste`)),1),t[17]||=P(`kbd`,null,`⌘V`,-1)]),t[21]||=P(`hr`,null,null,-1),P(`button`,{type:`button`,role:`menuitem`,onClick:t[3]||=e=>f(()=>T(i).layer(`front`))},S(T(a)(`canvas.front`)),1),P(`button`,{type:`button`,role:`menuitem`,onClick:t[4]||=e=>f(()=>T(i).layer(`back`))},S(T(a)(`canvas.back`)),1),t[22]||=P(`hr`,null,null,-1),l.value?(j(),M(`button`,{key:0,type:`button`,role:`menuitem`,onClick:t[5]||=e=>f(T(i).groupSelected)},[I(S(T(a)(`multi.group`)),1),t[18]||=P(`kbd`,null,`⌘G`,-1)])):L(``,!0),u.value?(j(),M(`button`,{key:1,type:`button`,role:`menuitem`,onClick:t[6]||=e=>f(T(i).ungroupSelected)},S(T(a)(`multi.ungroup`)),1)):L(``,!0),P(`button`,{type:`button`,role:`menuitem`,onClick:t[7]||=e=>f(T(i).toggleLock)},S(d.value?T(a)(`menu.unlock`):T(a)(`menu.lock`)),1),l.value?(j(),M(A,{key:2},[t[19]||=P(`hr`,null,null,-1),P(`p`,mb,S(T(a)(`multi.align`)),1),P(`div`,hb,[(j(!0),M(A,null,k(T(Es),e=>(j(),M(`button`,{key:e,type:`button`,role:`menuitem`,title:T(a)(`align.${e}`),"aria-label":T(a)(`align.${e}`),onClick:t=>f(()=>T(i).align(e))},[P(`span`,{class:`lze-context-align`,"data-align":e,"aria-hidden":`true`},null,8,_b)],8,gb))),128))]),c.value.length>2?(j(),M(A,{key:0},[P(`button`,{type:`button`,role:`menuitem`,onClick:t[8]||=e=>f(()=>T(i).distributeSelected(`x`))},S(T(a)(`multi.distributeX`)),1),P(`button`,{type:`button`,role:`menuitem`,onClick:t[9]||=e=>f(()=>T(i).distributeSelected(`y`))},S(T(a)(`multi.distributeY`)),1)],64)):L(``,!0)],64)):L(``,!0),t[23]||=P(`hr`,null,null,-1),P(`button`,{type:`button`,role:`menuitem`,class:`lze-context-danger`,onClick:t[10]||=e=>f(T(i).removeSelected)},[I(S(T(a)(`common.delete`)),1),t[20]||=P(`kbd`,null,`⌫`,-1)])],64)):(j(),M(A,{key:1},[P(`button`,{type:`button`,role:`menuitem`,onClick:t[11]||=e=>f(T(i).paste)},[I(S(T(a)(`menu.paste`)),1),t[24]||=P(`kbd`,null,`⌘V`,-1)]),P(`button`,{type:`button`,role:`menuitem`,onClick:t[12]||=e=>f(()=>T(i).state.zoom=null)},S(T(a)(`zoom.fit`)),1),P(`button`,{type:`button`,role:`menuitem`,onClick:t[13]||=e=>f(()=>T(i).state.zoom=1)},S(T(a)(`zoom.actual`)),1)],64))],36))}}),yb={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`},bb=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim();function xb(e){return e!=null}function Sb(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??yb.width,a=e.size??e.height??yb.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?bb(...c):bb(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??yb[`stroke-width`])*Number(e.size??e.width??yb.width)/Number(t.size??t.width??yb.width):t.strokeWidth??yb[`stroke-width`];return[`svg`,{...Object.entries(yb).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&xb(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&xb(t.width)&&{[r(`width`)]:t.width},...`height`in t&&xb(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}var Cb=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},wb=e=>e===``,Tb=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),Eb=/* @__PURE__ */ Symbol(`lucide-icons`);function Db(){return Jn(Eb,{})}var Ob=({name:e,iconNode:t,"icon-node":n,icon:r={name:e&&Tb(e),node:t??n??[],size:24,aliases:[]},absoluteStrokeWidth:i,"absolute-stroke-width":a,nonScalingStroke:o,"non-scaling-stroke":s,strokeWidth:c,"stroke-width":l,size:u,width:d=u,height:f=u,color:p,...m},{slots:h})=>{let{size:g,color:_,strokeWidth:v=2,absoluteStrokeWidth:ee=!1,nonScalingStroke:y=!1,class:te=``}=Db(),ne=wb(i)||wb(a)||i===!0||a===!0||ee===!0,re=wb(o)||wb(s)||o===!0||s===!0||y===!0;delete m.class;let ie=h.default?.(),[,ae,oe=[]]=Sb(r,{color:p??_,width:d??u??g,height:f??u??g,strokeWidth:c??l??v,absoluteStrokeWidth:ne,nonScalingStroke:re,className:te,hasA11yProp:ie!=null&&ie.length>0||Cb(m),attributes:m});return Va(`svg`,ae,[...oe.map(([e,t])=>Va(e,t)),...ie??[]])};function X(e,t=[]){let n=typeof e==`string`?{name:e,node:t}:e;return(e,{slots:t})=>Va(Ob,{...e,icon:n},t.default?{default:t.default}:void 0)}var kb=X({name:`align-center-horizontal`,size:24,node:[[`path`,{d:`M2 12h20`,key:`9i4pu4`}],[`path`,{d:`M10 16v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-4`,key:`11f1s0`}],[`path`,{d:`M10 8V4a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v4`,key:`t14dx9`}],[`path`,{d:`M20 16v1a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2v-1`,key:`1w07xs`}],[`path`,{d:`M14 8V7c0-1.1.9-2 2-2h2a2 2 0 0 1 2 2v1`,key:`1apec2`}]]}),Ab=X({name:`align-center-vertical`,size:24,node:[[`path`,{d:`M12 2v20`,key:`t6zp3m`}],[`path`,{d:`M8 10H4a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h4`,key:`14d6g8`}],[`path`,{d:`M16 10h4a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-4`,key:`1e2lrw`}],[`path`,{d:`M8 20H7a2 2 0 0 1-2-2v-2c0-1.1.9-2 2-2h1`,key:`1fkdwx`}],[`path`,{d:`M16 14h1a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-1`,key:`1euafb`}]]}),jb=X({name:`align-end-horizontal`,size:24,node:[[`rect`,{width:`6`,height:`16`,x:`4`,y:`2`,rx:`2`,key:`z5wdxg`}],[`rect`,{width:`6`,height:`9`,x:`14`,y:`9`,rx:`2`,key:`um7a8w`}],[`path`,{d:`M22 22H2`,key:`19qnx5`}]]}),Mb=X({name:`align-end-vertical`,size:24,node:[[`rect`,{width:`16`,height:`6`,x:`2`,y:`4`,rx:`2`,key:`10wcwx`}],[`rect`,{width:`9`,height:`6`,x:`9`,y:`14`,rx:`2`,key:`4p5bwg`}],[`path`,{d:`M22 22V2`,key:`12ipfv`}]]}),Nb=X({name:`align-horizontal-distribute-center`,size:24,node:[[`rect`,{width:`6`,height:`14`,x:`4`,y:`5`,rx:`2`,key:`1wwnby`}],[`rect`,{width:`6`,height:`10`,x:`14`,y:`7`,rx:`2`,key:`1fe6j6`}],[`path`,{d:`M17 22v-5`,key:`4b6g73`}],[`path`,{d:`M17 7V2`,key:`hnrr36`}],[`path`,{d:`M7 22v-3`,key:`1r4jpn`}],[`path`,{d:`M7 5V2`,key:`liy1u9`}]]}),Pb=X({name:`align-start-horizontal`,size:24,node:[[`rect`,{width:`6`,height:`16`,x:`4`,y:`6`,rx:`2`,key:`1n4dg1`}],[`rect`,{width:`6`,height:`9`,x:`14`,y:`6`,rx:`2`,key:`17khns`}],[`path`,{d:`M22 2H2`,key:`fhrpnj`}]]}),Fb=X({name:`align-start-vertical`,size:24,node:[[`rect`,{width:`9`,height:`6`,x:`6`,y:`14`,rx:`2`,key:`lpm2y7`}],[`rect`,{width:`16`,height:`6`,x:`6`,y:`4`,rx:`2`,key:`rdj6ps`}],[`path`,{d:`M2 2v20`,key:`1ivd8o`}]]}),Ib=X({name:`align-vertical-distribute-center`,size:24,node:[[`path`,{d:`M22 17h-3`,key:`1lwga1`}],[`path`,{d:`M22 7h-5`,key:`o2endc`}],[`path`,{d:`M5 17H2`,key:`1gx9xc`}],[`path`,{d:`M7 7H2`,key:`6bq26l`}],[`rect`,{x:`5`,y:`14`,width:`14`,height:`6`,rx:`2`,key:`1qrzuf`}],[`rect`,{x:`7`,y:`4`,width:`10`,height:`6`,rx:`2`,key:`we8e9z`}]]}),Lb=X({name:`arrow-down-to-line`,size:24,node:[[`path`,{d:`M12 17V3`,key:`1cwfxf`}],[`path`,{d:`m6 11 6 6 6-6`,key:`12ii2o`}],[`path`,{d:`M19 21H5`,key:`150jfl`}]]}),Rb=X({name:`arrow-up-to-line`,size:24,node:[[`path`,{d:`M5 3h14`,key:`7usisc`}],[`path`,{d:`m18 13-6-6-6 6`,key:`1kf1n9`}],[`path`,{d:`M12 7v14`,key:`1akyts`}]]}),zb=X({name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]}),Bb=X({name:`chevron-up`,size:24,node:[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]}),Vb=X({name:`circle-question-mark`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`help-circle`,`circle-help`]}),Hb=X({name:`columns-3`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]],aliases:[`panels-left-right`]}),Ub=X({name:`copy-plus`,size:24,node:[[`line`,{x1:`15`,x2:`15`,y1:`12`,y2:`18`,key:`1p7wdc`}],[`line`,{x1:`12`,x2:`18`,y1:`15`,y2:`15`,key:`1nscbv`}],[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]}),Wb=X({name:`copy`,size:24,node:[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]}),Gb=X({name:`eye`,size:24,node:[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]}),Kb=X({name:`fold-horizontal`,size:24,node:[[`path`,{d:`M2 12h6`,key:`1wqiqv`}],[`path`,{d:`M22 12h-6`,key:`1eg9hc`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 8v2`,key:`1woqiv`}],[`path`,{d:`M12 14v2`,key:`8jcxud`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m19 9-3 3 3 3`,key:`12ol22`}],[`path`,{d:`m5 15 3-3-3-3`,key:`1kdhjc`}]]}),qb=X({name:`fold-vertical`,size:24,node:[[`path`,{d:`M12 22v-6`,key:`6o8u61`}],[`path`,{d:`M12 8V2`,key:`1wkif3`}],[`path`,{d:`M4 12H2`,key:`rhcxmi`}],[`path`,{d:`M10 12H8`,key:`s88cx1`}],[`path`,{d:`M16 12h-2`,key:`10asgb`}],[`path`,{d:`M22 12h-2`,key:`14jgyd`}],[`path`,{d:`m15 19-3-3-3 3`,key:`e37ymu`}],[`path`,{d:`m15 5-3 3-3-3`,key:`19d6lf`}]]}),Jb=X({name:`frame`,size:24,node:[[`line`,{x1:`22`,x2:`2`,y1:`6`,y2:`6`,key:`15w7dq`}],[`line`,{x1:`22`,x2:`2`,y1:`18`,y2:`18`,key:`1ip48p`}],[`line`,{x1:`6`,x2:`6`,y1:`2`,y2:`22`,key:`a2lnyx`}],[`line`,{x1:`18`,x2:`18`,y1:`2`,y2:`22`,key:`8vb6jd`}]]}),Yb=X({name:`gallery-horizontal-end`,size:24,node:[[`path`,{d:`M2 7v10`,key:`a2pl2d`}],[`path`,{d:`M6 5v14`,key:`1kq3d7`}],[`rect`,{width:`12`,height:`18`,x:`10`,y:`3`,rx:`2`,key:`13i7bc`}]]}),Xb=X({name:`image`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]}),Zb=X({name:`images`,size:24,node:[[`path`,{d:`m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16`,key:`9kzy35`}],[`path`,{d:`M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2`,key:`1t0f0t`}],[`circle`,{cx:`13`,cy:`7`,r:`1`,fill:`currentColor`,key:`1obus6`}],[`rect`,{x:`8`,y:`2`,width:`14`,height:`14`,rx:`2`,key:`1gvhby`}]]}),Qb=X({name:`layers`,size:24,node:[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]],aliases:[`layers-3`]}),$b=X({name:`layout-template`,size:24,node:[[`rect`,{width:`18`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`f1a2em`}],[`rect`,{width:`9`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`jqznyg`}],[`rect`,{width:`5`,height:`7`,x:`16`,y:`14`,rx:`1`,key:`q5h2i8`}]]}),ex=X({name:`list-filter`,size:24,node:[[`path`,{d:`M2 5h20`,key:`1fs1ex`}],[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`path`,{d:`M9 19h6`,key:`456am0`}]]}),tx=X({name:`lock-open`,size:24,node:[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 9.9-1`,key:`1mm8w8`}]],aliases:[`unlock`]}),nx=X({name:`lock`,size:24,node:[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]}),rx=X({name:`menu`,size:24,node:[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]}),ix=X({name:`minus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]}),ax=X({name:`monitor`,size:24,node:[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]}),ox=X({name:`mouse-pointer-click`,size:24,node:[[`path`,{d:`M14 4.1 12 6`,key:`ita8i4`}],[`path`,{d:`m5.1 8-2.9-.8`,key:`1go3kf`}],[`path`,{d:`m6 12-1.9 2`,key:`mnht97`}],[`path`,{d:`M7.2 2.2 8 5.1`,key:`1cfko1`}],[`path`,{d:`M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z`,key:`s0h3yz`}]]}),sx=X({name:`panel-top`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}]]}),cx=X({name:`pencil-line`,size:24,node:[[`path`,{d:`M13 21h8`,key:`1jsn5i`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]}),lx=X({name:`pilcrow`,size:24,node:[[`path`,{d:`M13 4v16`,key:`8vvj80`}],[`path`,{d:`M17 4v16`,key:`7dpous`}],[`path`,{d:`M19 4H9.5a4.5 4.5 0 0 0 0 9H13`,key:`sh4n9v`}]]}),ux=X({name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]}),dx=X({name:`redo-2`,size:24,node:[[`path`,{d:`m15 14 5-5-5-5`,key:`12vg1m`}],[`path`,{d:`M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13`,key:`6uklza`}]]}),fx=X({name:`rotate-ccw-clock`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`path`,{d:`M12 7v5l4 2`,key:`1fdv2h`}]],aliases:[`history`]}),px=X({name:`rotate-ccw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]}),mx=X({name:`rotate-cw`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8`,key:`1p45f6`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}]]}),hx=X({name:`smartphone`,size:24,node:[[`rect`,{width:`14`,height:`20`,x:`5`,y:`2`,rx:`2`,ry:`2`,key:`1yt0o3`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}]]}),gx=X({name:`sparkles`,size:24,node:[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]],aliases:[`stars`]}),_x=X({name:`square-check`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-square-2`]}),vx=X({name:`square`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]}),yx=X({name:`text-align-end`,size:24,node:[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M21 19H7`,key:`4cu937`}]],aliases:[`align-right`]}),bx=X({name:`text-align-center`,size:24,node:[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M17 12H7`,key:`16if0g`}],[`path`,{d:`M19 19H5`,key:`vjpgq2`}]],aliases:[`align-center`]}),xx=X({name:`text-align-start`,size:24,node:[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M17 19H3`,key:`z6ezky`}]],aliases:[`text`,`align-left`]}),Sx=X({name:`text-cursor-input`,size:24,node:[[`path`,{d:`M12 20h-1a2 2 0 0 1-2-2 2 2 0 0 1-2 2H6`,key:`1528k5`}],[`path`,{d:`M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7`,key:`13ksps`}],[`path`,{d:`M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1`,key:`1n9rhb`}],[`path`,{d:`M6 4h1a2 2 0 0 1 2 2 2 2 0 0 1 2-2h1`,key:`1mj8rg`}],[`path`,{d:`M9 6v12`,key:`velyjx`}]]}),Cx=X({name:`trash`,size:24,node:[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]],aliases:[`trash-2`]}),wx=X({name:`type`,size:24,node:[[`path`,{d:`M12 4v16`,key:`1654pz`}],[`path`,{d:`M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2`,key:`e0r10z`}],[`path`,{d:`M9 20h6`,key:`s66wpe`}]]}),Tx=X({name:`undo-2`,size:24,node:[[`path`,{d:`M9 14 4 9l5-5`,key:`102s5s`}],[`path`,{d:`M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11`,key:`f3b9sd`}]]}),Ex=X({name:`upload`,size:24,node:[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]}),Dx=X({name:`video`,size:24,node:[[`path`,{d:`m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5`,key:`ftymec`}],[`rect`,{x:`2`,y:`6`,width:`14`,height:`12`,rx:`2`,key:`158x01`}]]}),Ox=X({name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]}),kx=[`onClick`],Ax=[`data-current`,`onClick`],jx=[`title`,`aria-label`,`onClick`],Mx=[`title`,`aria-label`,`onClick`],Nx=[`title`,`aria-label`,`onClick`],Px=[`data-locked`],Fx=[`data-handle`,`aria-label`,`onPointerdown`],Ix=[`title`,`aria-label`],Lx=[`title`,`aria-label`],Rx=[`aria-label`,`data-below`],zx=[`title`,`aria-label`],Bx=[`title`,`aria-label`],Vx=[`title`,`aria-label`],Hx=[`title`,`aria-label`],Ux=/* @__PURE__ */ D({__name:`Overlay`,props:{layout:{},scale:{},hovered:{},guides:{},live:{},frozen:{},rotation:{}},emits:[`resize`,`rotate`,`radius`,`generateMobile`],setup(e,{emit:t}){let n=e,r=t,i=Y(),a=i.t,o=e=>n.live.get(e)??n.layout.elements.get(e),s=R(()=>i.selectedElements.value.flatMap(e=>{let t=o(e.id);return t?[{element:e,rect:t,rotate:n.rotation?.id===e.id?n.rotation.value:e.style.rotate??0}]:[]})),c=R(()=>{let e=s.value.length===1?s.value[0]:void 0,t=i.state.selection;return!e||e.element.locked||t.kind!==`elements`||n.frozen.has(t.canvas)||i.kindOf(e.element).kind===`opaque`||i.isInsideBox(e.element.id)?null:e}),l=R(()=>{let e=i.activeElement.value,t=e?o(e.id):void 0;return e&&t?{element:e,rect:t}:null}),u=R(()=>{let e=i.selectedElements.value.some(e=>e.id===n.hovered);return n.hovered&&!e?n.layout.elements.get(n.hovered)??null:null}),d=R(()=>{let e=i.state.selection;return e.kind===`canvas`?n.layout.canvases.get(e.canvas)??null:null}),f=R(()=>n.guides?n.layout.canvases.get(n.guides.canvas)??null:null),p=R(()=>i.canvases.value.flatMap(e=>e.elements.filter(e=>e.type===`navbar`&&e.props.sticky===!0).flatMap(e=>{let t=n.layout.elements.get(e.id);return t?[{id:e.id,rect:t}]:[]}))),m=R(()=>[...n.frozen].flatMap(e=>{let t=n.layout.canvases.get(e);return t?[{id:e,rect:t.outer}]:[]})),h=R(()=>i.activeModal.value?[]:i.state.draft.sections.flatMap(e=>{let t=n.layout.canvases.get(e.id);return t?[{id:e.id,rect:t.outer,label:(e.group?.label??``).trim()||`#${e.id}`,empty:e.elements.length===0}]:[]})),g=e=>({left:`${e.x}px`,top:`${e.y}px`,width:`${e.w}px`,height:`${e.h}px`});return(t,n)=>(j(),M(`div`,{class:`lze-overlay`,style:x({"--inv":String(1/e.scale)})},[d.value?(j(),M(`div`,{key:0,class:`lze-canvas-outline`,style:x(g(d.value.outer))},null,4)):L(``,!0),u.value?(j(),M(`div`,{key:1,class:`lze-hover`,style:x(g(u.value))},null,4)):L(``,!0),(j(!0),M(A,null,k(p.value,e=>(j(),M(`div`,{key:e.id,class:`lze-badge`,style:x({left:`${e.rect.x}px`,top:`${e.rect.y}px`})},S(T(a)(`canvas.sticky`)),5))),128)),(j(!0),M(A,null,k(m.value,e=>(j(),M(`div`,{key:e.id,class:`lze-stacked`,style:x({left:`${e.rect.x}px`,top:`${e.rect.y}px`})},[P(`span`,null,S(T(a)(`canvas.stacked`)),1),P(`button`,{type:`button`,class:`lze-btn`,onPointerdown:n[0]||=ts(()=>{},[`stop`]),onClick:t=>r(`generateMobile`,e.id)},S(T(a)(`section.generateMobile`)),41,kx)],4))),128)),(j(!0),M(A,null,k(h.value,e=>(j(),M(`button`,{key:`chip-${e.id}`,type:`button`,class:`lze-section-chip`,"data-current":T(i).state.selection.kind===`canvas`&&T(i).state.selection.canvas===e.id,style:x({left:`${e.rect.x}px`,top:`${e.rect.y}px`}),onPointerdown:n[1]||=ts(()=>{},[`stop`]),onClick:t=>T(i).selectCanvas(e.id)},S(e.label),45,Ax))),128)),(j(!0),M(A,null,k(h.value.filter(e=>e.empty),e=>(j(),M(`p`,{key:`empty-${e.id}`,class:`lze-section-empty`,style:x({left:`${e.rect.x+e.rect.w/2}px`,top:`${e.rect.y+e.rect.h/2}px`})},S(T(a)(`canvas.emptySection`)),5))),128)),(j(!0),M(A,null,k(h.value,e=>(j(),M(`div`,{key:`edge-${e.id}`,class:`lze-edge`,style:x({left:`${e.rect.x+e.rect.w/2}px`,top:`${e.rect.y+e.rect.h}px`}),onPointerdown:n[2]||=ts(()=>{},[`stop`])},[P(`button`,{type:`button`,class:`lze-icon-btn`,title:T(a)(`section.addAfter`),"aria-label":T(a)(`section.addAfter`),onClick:t=>T(i).addSection(void 0,e.id)},[F(T(ux),{size:15,"aria-hidden":`true`})],8,jx),P(`button`,{type:`button`,class:`lze-icon-btn`,title:T(a)(`section.duplicate`),"aria-label":T(a)(`section.duplicate`),onClick:t=>T(i).duplicateSection(e.id)},[F(T(Ub),{size:15,"aria-hidden":`true`})],8,Mx),T(i).state.draft.sections.length>1?(j(),M(`button`,{key:0,type:`button`,class:`lze-icon-btn`,"data-tone":`danger`,title:T(a)(`section.delete`),"aria-label":T(a)(`section.delete`),onClick:t=>T(i).removeSection(e.id)},[F(T(Cx),{size:15,"aria-hidden":`true`})],8,Nx)):L(``,!0)],36))),128)),e.guides&&f.value?(j(),M(A,{key:2},[(j(!0),M(A,null,k(e.guides.lines.x,e=>(j(),M(`div`,{key:`x${e}`,class:`lze-guide`,"data-axis":`x`,style:x({left:`${f.value.frame.x+e}px`,top:`${f.value.frame.y}px`,height:`${f.value.frame.h}px`})},null,4))),128)),(j(!0),M(A,null,k(e.guides.lines.y,e=>(j(),M(`div`,{key:`y${e}`,class:`lze-guide`,"data-axis":`y`,style:x({top:`${f.value.frame.y+e*f.value.unit}px`,left:`${f.value.frame.x}px`,width:`${f.value.frame.w}px`})},null,4))),128))],64)):L(``,!0),(j(!0),M(A,null,k(s.value,e=>(j(),M(`div`,{key:e.element.id,class:`lze-selection`,"data-locked":e.element.locked===!0,style:x({...g(e.rect),transform:e.rotate?`rotate(${e.rotate}deg)`:void 0})},[e.element.locked?(j(),N(T(nx),{key:0,class:`lze-lock`,size:12,"aria-hidden":`true`})):L(``,!0)],12,Px))),128)),c.value?(j(),M(`div`,{key:3,class:`lze-handles`,style:x({...g(c.value.rect),transform:c.value.rotate?`rotate(${c.value.rotate}deg)`:void 0})},[(j(!0),M(A,null,k(T(Ts),e=>(j(),M(`button`,{key:e,type:`button`,class:`lze-handle`,"data-handle":e,"aria-label":T(a)(`canvas.resize`,{handle:e}),tabindex:`-1`,onPointerdown:ts(t=>r(`resize`,t,e),[`stop`,`prevent`])},null,40,Fx))),128)),c.value.element.type===`divider`?L(``,!0):(j(),M(`button`,{key:0,type:`button`,class:`lze-radius`,title:T(a)(`canvas.radius`,{n:c.value.element.style.radius??0}),"aria-label":T(a)(`canvas.radius`,{n:c.value.element.style.radius??0}),onPointerdown:n[3]||=ts(e=>r(`radius`,e),[`stop`,`prevent`])},null,40,Ix)),P(`button`,{type:`button`,class:`lze-rotate`,title:T(a)(`canvas.rotate`,{n:c.value.element.style.rotate??0}),"aria-label":T(a)(`canvas.rotate`,{n:c.value.element.style.rotate??0}),onPointerdown:n[4]||=ts(e=>r(`rotate`,e),[`stop`,`prevent`])},[F(T(mx),{size:13,"aria-hidden":`true`})],40,Lx)],4)):L(``,!0),l.value&&e.live.size===0?(j(),M(`div`,{key:4,class:`lze-element-bar`,role:`toolbar`,"aria-label":T(a)(`canvas.toolbar`),"data-below":l.value.rect.y<56/e.scale,style:x({left:`${l.value.rect.x}px`,top:`${l.value.rect.y<56/e.scale?l.value.rect.y+l.value.rect.h:l.value.rect.y}px`}),onPointerdown:n[9]||=ts(()=>{},[`stop`])},[P(`button`,{type:`button`,class:`lze-icon-btn`,title:T(a)(`common.duplicate`),"aria-label":T(a)(`common.duplicate`),onClick:n[5]||=e=>T(i).duplicateSelected()},[F(T(Wb),{size:16,"aria-hidden":`true`})],8,zx),P(`button`,{type:`button`,class:`lze-icon-btn`,title:T(a)(`canvas.front`),"aria-label":T(a)(`canvas.front`),onClick:n[6]||=e=>T(i).layer(`front`)},[F(T(Rb),{size:16,"aria-hidden":`true`})],8,Bx),P(`button`,{type:`button`,class:`lze-icon-btn`,title:T(a)(`canvas.back`),"aria-label":T(a)(`canvas.back`),onClick:n[7]||=e=>T(i).layer(`back`)},[F(T(Lb),{size:16,"aria-hidden":`true`})],8,Vx),n[10]||=P(`span`,{class:`lze-divider`,"aria-hidden":`true`},null,-1),P(`button`,{type:`button`,class:`lze-icon-btn`,"data-tone":`danger`,title:T(a)(`common.delete`),"aria-label":T(a)(`common.delete`),onClick:n[8]||=e=>T(i).removeSelected()},[F(T(Cx),{size:16,"aria-hidden":`true`})],8,Hx)],44,Rx)):L(``,!0)],4))}}),Wx=[`data-space`],Gx={key:0,class:`lze-render-issue`,role:`alert`},Kx={key:1,class:`lze-modal-banner`},qx=[`data-device`,`aria-label`],Jx=[`title`],Yx={key:2,class:`lze-empty-hint`},Xx={key:3,class:`lze-hint-bubble`,"aria-live":`polite`},Zx=[`aria-label`],Qx=[`title`,`aria-label`],$x=[`title`],eS=[`title`,`aria-label`],tS=[`title`,`aria-label`],nS=.1,rS=4,iS=/* @__PURE__ */ D({__name:`Canvas`,setup(e,{expose:t}){let n=Y(),r=n.t,i=/* @__PURE__ */ w(),a=/* @__PURE__ */ w(),o=/* @__PURE__ */ w(),s=/* @__PURE__ */ w(),c=/* @__PURE__ */ w(0),l=/* @__PURE__ */ w(320),u=/* @__PURE__ */ sn({canvases:/* @__PURE__ */ new Map,elements:/* @__PURE__ */ new Map}),d=/* @__PURE__ */ w(null),f=/* @__PURE__ */ sn(null),p=/* @__PURE__ */ sn(/* @__PURE__ */ new Map),m=/* @__PURE__ */ sn(null),h=/* @__PURE__ */ w(null),g=null,_=R(()=>Ds((c.value-48)/n.frameWidth.value,nS,1)),v=R(()=>n.state.zoom??_.value),ee=R(()=>Math.round(v.value*100));async function y(e,t){let r=i.value,o=a.value,s=Ds(e,nS,rS);if(!r||!o){n.state.zoom=s;return}let c=r.getBoundingClientRect(),l=t??{x:c.left+c.width/2,y:c.top+c.height/2},u=o.getBoundingClientRect(),d=(l.x-u.left)/v.value,f=(l.y-u.top)/v.value;n.state.zoom=s,await Nn();let p=o.getBoundingClientRect();r.scrollLeft+=p.left+d*s-l.x,r.scrollTop+=p.top+f*s-l.y}let te=(e,t)=>y(v.value*e,t),ne=()=>n.state.zoom=null;function re(e){(e.ctrlKey||e.metaKey)&&(e.preventDefault(),te(Math.exp(-e.deltaY/400),{x:e.clientX,y:e.clientY}))}function ie(e){let t=s.value?.getBoundingClientRect();(e.ctrlKey||e.metaKey)&&t&&(e.preventDefault(),te(Math.exp(-e.deltaY/400),{x:t.left+e.clientX*v.value,y:t.top+e.clientY*v.value}))}let ae=/* @__PURE__ */ w(!1),oe=/* @__PURE__ */ w(!1),se=null;function b(e,t=1){let n=i.value;return!n||!ae.value&&e.button!==1?!1:(e.preventDefault(),se={pointer:e.pointerId,x:e.clientX*t,y:e.clientY*t,left:n.scrollLeft,top:n.scrollTop,factor:t},oe.value=!0,e.currentTarget?.setPointerCapture?.(e.pointerId),!0)}function ce(e){let t=i.value;se&&t&&se.pointer===e.pointerId&&(t.scrollLeft=se.left-(e.clientX*se.factor-se.x),t.scrollTop=se.top-(e.clientY*se.factor-se.y))}function le(e){se&&se.pointer===e.pointerId&&(se=null,oe.value=!1)}function ue(e){if(e.code===`Space`&&!ae.value){if(e.target?.closest(`input, textarea, select, [contenteditable="true"]`))return;ae.value=!0,e.preventDefault()}}let de=e=>{e.code===`Space`&&(ae.value=!1)},fe=()=>{ae.value=!1};function pe(e){me(e)||ue(e)}function me(e){if(!e.ctrlKey&&!e.metaKey)return!1;if(e.key===`+`||e.key===`=`)te(1.25);else if(e.key===`-`)te(.8);else if(e.key===`0`)ne();else if(e.key===`1`)y(1);else return!1;return e.preventDefault(),!0}let he=R(()=>new Set(n.canvases.value.filter(e=>`flow`in e&&e.flow&&e.flow!==`free`||n.state.device===`mobile`&&vs(e)).map(e=>e.id))),ge=R(()=>n.canvases.value.every(e=>e.elements.length===0)),_e=0,ve=!1,ye=!1;function be(){_e||=requestAnimationFrame(()=>{_e=0,xe()})}async function xe(){if(!g||ve||Pe||Ce){ye=!0;return}ve=!0;try{let e=/* @__PURE__ */ C(n.state.draft),t=await cb(e,sb(n),`edit`);if(!t.ok){n.state.renderIssues=t.issues;return}n.state.renderIssues=[],g.update(t.page.body,t.page.css,e,{modal:n.state.view.kind===`modal`?n.state.view.id:null,panels:n.state.panels,fontsHref:tc([n.theme.value.heading_font,n.theme.value.body_font]),emptyImage:r(`canvas.emptyImage`),emptyVideo:r(`canvas.emptyVideo`)}),Se()}finally{ve=!1,ye&&(ye=!1,be())}}function Se(){g&&(l.value=g.contentHeight(),u.value=g.measure(n.state.draft,n.state.device))}$n(()=>n.state.draft,be,{deep:!0}),$n([n.site,()=>n.state.workspace.assets,n.previews.version,()=>n.state.view,()=>n.state.panels],be),$n([()=>n.state.device,()=>n.frameWidth.value],()=>Nn(Se));let Ce=null,we=null;function Te(e,t){e.setPointerCapture(t.pointerId);let n=e=>De(e),r=()=>Oe(),i=[`pointerup`,`pointercancel`,`lostpointercapture`];e.addEventListener(`pointermove`,n),i.forEach(t=>e.addEventListener(t,r)),we=()=>{e.removeEventListener(`pointermove`,n),i.forEach(t=>e.removeEventListener(t,r))}}function Ee(e,t,r,i){let a=n.state.selection;if(a.kind!==`elements`||he.value.has(a.canvas))return;let o=ms(n.state.draft,a.canvas),s=u.value.canvases.get(a.canvas),c=n.state.device,l=n.activeElement.value;if(!o||!s||!l||l.locked||n.kindOf(l).kind===`opaque`||n.isInsideBox(l.id))return;let d=r?[l]:n.selectedElements.value.filter(e=>!e.locked),f=new Set(d.map(e=>e.id));Ce={kind:`box`,handle:r,canvas:o.id,origin:{x:e.clientX,y:e.clientY},factor:i,metrics:s,anchors:js(o.elements.filter(e=>!f.has(e.id)).map(e=>hs(e,c)),s.frame.w,_s(o,c)),target:{id:l.id,start:{...hs(l,c)}},others:d.filter(e=>e.id!==l.id).map(e=>({id:e.id,start:{...hs(e,c)}})),boxes:/* @__PURE__ */ new Map},Te(t,e)}function De(e){let t=Ce;if(!t||!g)return;if(t.kind===`rotate`){let n=t.from+(Ae(t.center,e)-t.startAngle);t.value=Ds(e.shiftKey?Math.round(n/15)*15:Math.round(n),-180,180),g.previewVar(t.id,`--rot`,t.value),m.value={id:t.id,value:t.value},h.value=`${t.value}°`;return}if(t.kind===`radius`){let n=(e.clientX-t.origin)*t.factor/t.unit;t.value=Math.round(Ds(t.from+n,0,200)),g.previewVar(t.id,`--r`,t.value),h.value=r(`canvas.corners`,{n:t.value});return}let{metrics:i,handle:a,target:o}=t,s=(e.clientX-t.origin.x)*t.factor,c=(e.clientY-t.origin.y)*t.factor/i.unit,l=As(o.start,{x:s,y:c},a,i.frame.w),u={x:6/v.value,y:6/(v.value*i.unit)},d=Ns(l,t.anchors,i.frame.w,u,a),_=n.state.device,ee=/* @__PURE__ */ new Map,y=(e,n)=>{t.boxes.set(e,n),g?.preview(e,_,n),ee.set(e,{x:i.frame.x+n.x/100*i.frame.w,y:i.frame.y+n.y*i.unit,w:n.w/100*i.frame.w,h:n.h*i.unit})};y(o.id,d.box);for(let e of t.others)y(e.id,ks({...e.start,x:e.start.x+d.box.x-o.start.x,y:e.start.y+d.box.y-o.start.y}));p.value=ee,f.value=d.guides.x.length||d.guides.y.length?{canvas:t.canvas,lines:d.guides}:null,h.value=a?`${Math.round(d.box.w*i.frame.w/100)} × ${Math.round(d.box.h)} px`:`x ${d.box.x.toFixed(1)}% · y ${Math.round(d.box.y)} px`}function Oe(){let e=Ce;if(Ce=null,we?.(),we=null,h.value=null,f.value=null,e?.kind===`box`&&e.boxes.size>0)n.placeElements([...e.boxes].map(([e,t])=>({id:e,box:t})));else if(e&&e.kind!==`box`&&e.value!==e.from){let t=ke(e.id);t&&(t.style[e.kind===`rotate`?`rotate`:`radius`]=e.value,n.commit())}p.value=/* @__PURE__ */ new Map,m.value=null,be()}function ke(e){return n.selectedElements.value.find(t=>t.id===e)}let Ae=(e,t)=>Math.atan2(t.clientY-e.y,t.clientX-e.x)*180/Math.PI;function je(e,t){Ee(e,e.currentTarget,t,1/v.value)}function Me(e){let t=n.activeElement.value,r=t?u.value.elements.get(t.id):void 0,i=o.value?.getBoundingClientRect();if(!t||!r||!i)return;let a={x:i.left+(r.x+r.w/2)*v.value,y:i.top+(r.y+r.h/2)*v.value},s=t.style.rotate??0;Ce={kind:`rotate`,id:t.id,center:a,startAngle:Ae(a,e),from:s,value:s},Te(e.currentTarget,e)}function Ne(e){let t=n.activeElement.value,r=n.state.selection,i=r.kind===`elements`?u.value.canvases.get(r.canvas):void 0;if(!t||!i)return;let a=t.style.radius??0;Ce={kind:`radius`,id:t.id,origin:e.clientX,factor:1/v.value,unit:i.unit,from:a,value:a},Te(e.currentTarget,e)}let Pe=null;function Fe(e){let t=e?.closest?.(`.lz-stack-nav > button[data-go]`),r=t?.closest(`.lz-stack`),i=Number(t?.getAttribute(`data-go`)),a=r?n.state.draft.sections.find(e=>e.group?.id&&`g-${db(e.group.id)}`===r.id):void 0;return!a?.group?.id||!Number.isInteger(i)?!1:(n.state.panels={...n.state.panels,[a.group.id]:i},!0)}function Ie(e){if(b(e,v.value)||!g||e.button!==0||Pe&&Pe.node.contains(e.target)||(Re(),Fe(e.target)))return;let t=g.hit(e.target);if(!t){n.clearSelection();return}if(t.element===null){n.selectCanvas(t.canvas);return}e.preventDefault(),n.select(t.canvas,t.element,e.shiftKey);let r=n.state.selection;r.kind===`elements`&&r.ids.includes(t.element)&&!e.shiftKey&&Ee(e,t.node,null,1)}function Le(e){let t=g?.hit(e.target),r=t?.element?ms(n.state.draft,t.canvas)?.elements.find(e=>e.id===t.element):void 0,i=r?n.kindOf(r):null;if(!t||!r||i?.kind!==`core`||!i.spec.inline||r.locked||n.state.previewing)return;let a=t.node;Pe={node:a,canvas:t.canvas,id:r.id,prop:i.spec.inline},a.setAttribute(`contenteditable`,`plaintext-only`),a.focus(),a.ownerDocument.getSelection()?.selectAllChildren(a),a.addEventListener(`blur`,Re,{once:!0})}function Re(){let e=Pe;if(!e)return;Pe=null;let t=e.node.innerText.trim();e.node.removeAttribute(`contenteditable`);let r=ms(n.state.draft,e.canvas)?.elements.find(t=>t.id===e.id);r&&(r.props[e.prop]=t,n.commit()),be()}function ze(e){if(Pe){(e.key===`Enter`&&!e.shiftKey||e.key===`Escape`)&&(e.preventDefault(),Pe.node.blur());return}me(e)||ib(n,e)}let Be=/* @__PURE__ */ w(null);function Ve(e,t){let r=t?g?.hit(e.target):null;if(t){let e=n.state.selection.kind===`elements`?n.state.selection.ids:[];r?.element&&!e.includes(r.element)?n.select(r.canvas,r.element,!1):r&&!r.element&&n.selectCanvas(r.canvas)}e.preventDefault();let i=t?s.value?.getBoundingClientRect():null;Be.value=i?{x:i.left+e.clientX*v.value,y:i.top+e.clientY*v.value}:{x:e.clientX,y:e.clientY}}function He(e){let t=g?.hit(e.target);d.value=t?.element??null}let Ue=e=>{Pe||e.preventDefault()};function We(e,t){let n=s.value?.getBoundingClientRect();if(!g||!n||e<n.left||e>n.right||t<n.top||t>n.bottom)return null;let r=(e-n.left)/v.value,i=(t-n.top)/v.value,a=g.hit(g.doc.elementFromPoint(r,i)),o=a?u.value.canvases.get(a.canvas):void 0;return!a||!o?null:{canvas:a.canvas,x:Ds((r-o.frame.x)/o.frame.w*100,0,90),y:Ds((i-o.frame.y)/o.unit,0,3e3)}}t({dropPoint:We});let Ge=null,Ke=null;Cr(()=>{if(!s.value||!i.value)return;g=fb(s.value);let e=g.doc;e.addEventListener(`pointerdown`,Ie),e.addEventListener(`dblclick`,Le),e.addEventListener(`keydown`,ze),e.addEventListener(`pointerover`,He),e.addEventListener(`contextmenu`,e=>Ve(e,!0)),e.addEventListener(`wheel`,ie,{passive:!1}),e.addEventListener(`pointermove`,ce),e.addEventListener(`pointerup`,le),e.addEventListener(`pointercancel`,le),e.documentElement.addEventListener(`pointerleave`,()=>d.value=null),e.addEventListener(`click`,Ue,!0),e.addEventListener(`submit`,Ue,!0);let t=new((e.defaultView?.ResizeObserver)??ResizeObserver)(()=>Se());t.observe(e.body),Ke=t,e.addEventListener(`keyup`,de),Ge=new ResizeObserver(([e])=>{c.value=e?.contentRect.width??0}),Ge.observe(i.value),window.addEventListener(`keydown`,pe),window.addEventListener(`keyup`,de),window.addEventListener(`blur`,fe),be()}),Er(()=>{window.removeEventListener(`keydown`,pe),window.removeEventListener(`keyup`,de),window.removeEventListener(`blur`,fe),cancelAnimationFrame(_e),Ge?.disconnect(),Ke?.disconnect(),we?.()});function qe(e){let t=ms(n.state.draft,e);t&&n.generateMobile(t)}let Je=e=>r(e===`desktop`?`toolbar.desktop`:`toolbar.mobile`);return(e,t)=>(j(),M(`div`,{ref_key:`stage`,ref:i,class:`lze-stage`,"data-space":oe.value?`panning`:ae.value?`on`:void 0,onPointerdown:[t[6]||=e=>b(e),t[7]||=ts(e=>T(n).clearSelection(),[`self`])],onPointermove:ce,onPointerup:le,onPointercancel:le,onWheel:re,onContextmenu:t[8]||=e=>Ve(e,!1)},[T(n).state.renderIssues.length?(j(),M(`p`,Gx,S(T(r)(`canvas.invalid`,{issue:T($y)(T(n).state.renderIssues[0])})),1)):L(``,!0),T(n).activeModal.value?(j(),M(`div`,Kx,[P(`span`,null,S(T(r)(`canvas.editingModal`,{title:T(n).activeModal.value.title})),1),P(`button`,{type:`button`,class:`lze-btn`,onClick:t[0]||=e=>T(n).openModal(null)},S(T(r)(`canvas.backToPage`)),1)])):L(``,!0),P(`div`,{ref_key:`sheet`,ref:a,class:`lze-sheet`,"data-device":T(n).state.device,"aria-label":Je(T(n).state.device),style:x({width:`${T(n).frameWidth.value*v.value}px`,height:`${l.value*v.value}px`})},[P(`div`,{ref_key:`scaler`,ref:o,class:`lze-scaler`,style:x({width:`${T(n).frameWidth.value}px`,transform:`scale(${v.value})`})},[P(`iframe`,{ref_key:`iframe`,ref:s,class:`lze-frame`,title:T(r)(`canvas.title`),style:x({width:`${T(n).frameWidth.value}px`,height:`${l.value}px`})},null,12,Jx),F(Ux,{layout:u.value,scale:v.value,hovered:d.value,guides:f.value,live:p.value,rotation:m.value,frozen:he.value,onResize:je,onRotate:Me,onRadius:Ne,onGenerateMobile:qe},null,8,[`layout`,`scale`,`hovered`,`guides`,`live`,`rotation`,`frozen`])],4)],12,qx),ge.value?(j(),M(`p`,Yx,S(T(n).activeModal.value?T(r)(`canvas.emptyModal`):T(r)(`canvas.emptyPage`)),1)):L(``,!0),h.value?(j(),M(`p`,Xx,S(h.value),1)):L(``,!0),Be.value?(j(),N(vb,{key:4,at:Be.value,onClose:t[1]||=e=>Be.value=null},null,8,[`at`])):L(``,!0),P(`div`,{class:`lze-zoom`,role:`group`,"aria-label":T(r)(`zoom.label`)},[P(`button`,{type:`button`,class:`lze-zoom-btn`,title:T(r)(`zoom.out`),"aria-label":T(r)(`zoom.out`),onClick:t[2]||=e=>te(.8)},`−`,8,Qx),P(`button`,{type:`button`,class:`lze-zoom-value`,title:T(r)(`zoom.fit`),onClick:t[3]||=e=>ne()},S(ee.value)+`%`,9,$x),P(`button`,{type:`button`,class:`lze-zoom-btn`,title:T(r)(`zoom.in`),"aria-label":T(r)(`zoom.in`),onClick:t[4]||=e=>te(1.25)},`+`,8,eS),P(`button`,{type:`button`,class:`lze-zoom-btn`,title:T(r)(`zoom.actual`),"aria-label":T(r)(`zoom.actual`),onClick:t[5]||=e=>y(1)},`1:1`,8,tS)],8,Zx)],40,Wx))}}),aS=[`title`,`srcdoc`],oS=/* @__PURE__ */ D({__name:`Preview`,setup(e){let t=Y(),n=/* @__PURE__ */ w(),r=/* @__PURE__ */ sn(``),i=/* @__PURE__ */ w({width:0,height:0}),a=null;async function o(){let e=await cb(/* @__PURE__ */ C(t.state.draft),sb(t),`public`);e.ok&&(r.value=e.page.html)}$n([()=>t.state.draft,t.previews.version],o,{deep:!0,immediate:!0}),Cr(()=>{a=new ResizeObserver(([e])=>{i.value={width:e?.contentRect.width??0,height:e?.contentRect.height??0}}),n.value&&a.observe(n.value)}),Er(()=>a?.disconnect());let s=()=>Ds((i.value.width-48)/t.frameWidth.value,.1,1);return(e,a)=>(j(),M(`div`,{ref_key:`stage`,ref:n,class:`lze-stage lze-preview`},[P(`div`,{class:`lze-sheet`,style:x({width:`${T(t).frameWidth.value*s()}px`,height:`${i.value.height-48}px`})},[P(`iframe`,{class:`lze-frame`,title:T(t).t(`toolbar.preview`),srcdoc:r.value,style:x({width:`${T(t).frameWidth.value}px`,height:`${(i.value.height-48)/s()}px`,transform:`scale(${s()})`})},null,12,aS)],4)],512))}});function sS({endpoint:e,headers:t={},fetch:n=globalThis.fetch.bind(globalThis)}){let r=e.replace(/\/+$/,``);return async(e,...i)=>{let[a=`GET`,o=`/`]=e.split(` `),[s,c]=o.includes(`:`)?[fS(i[0])?i[0]:{},i[1]]:[{},i[0]],l=o.replace(/:([a-z]+)/g,(e,t)=>encodeURIComponent(String(s[t]??``))),u=typeof FormData<`u`&&c instanceof FormData,d=a===`GET`&&c&&typeof c==`object`&&!u?lS(c):``,f={method:a,credentials:`same-origin`,headers:{Accept:`application/json`,...c!==void 0&&a!==`GET`&&!u?{"Content-Type":`application/json`}:{},...uS(),...t},...c!==void 0&&a!==`GET`?{body:u?c:JSON.stringify(c)}:{}},p;try{p=await n(`${r}${l===`/`?``:l}${d}`,f)}catch{return{ok:!1,failure:{kind:`offline`}}}let m=p.status===204?null:await p.json().catch(()=>null);return p.ok?{ok:!0,value:m}:{ok:!1,failure:cS(p.status,m)}}}function cS(e,t){let n=fS(t)&&typeof t.message==`string`?t.message:`HTTP ${e}`;return e===409&&fS(t)&&typeof t.revision==`number`?{kind:`conflict`,message:n,revision:t.revision}:e===422?{kind:`invalid`,message:n,issues:fS(t)&&Array.isArray(t.issues)?t.issues.filter(dS):[]}:{kind:`http`,status:e,message:n}}function lS(e){let t=Object.entries(e).filter(([,e])=>e!=null);return t.length===0?``:`?${new URLSearchParams(t.map(([e,t])=>[e,String(t)]))}`}function uS(){let e=typeof document>`u`?null:/(?:^|;\s*)XSRF-TOKEN=([^;]+)/.exec(document.cookie);return e?.[1]?{"X-XSRF-TOKEN":decodeURIComponent(e[1])}:{}}var dS=e=>fS(e)&&typeof e.path==`string`&&typeof e.message==`string`&&typeof e.code==`string`,fS=e=>typeof e==`object`&&!!e&&!Array.isArray(e),pS=[`data-variant`,`data-size`,`disabled`,`title`],Z=/* @__PURE__ */ D({__name:`Button`,props:{variant:{default:`outline`},size:{default:`sm`},disabled:{type:Boolean,default:!1},title:{default:void 0}},setup(e){return(t,n)=>(j(),M(`button`,{type:`button`,class:`lze-btn`,"data-variant":e.variant,"data-size":e.size,disabled:e.disabled,title:e.title},[Lr(t.$slots,`default`)],8,pS))}}),mS=[`data-size`,`aria-labelledby`],hS={class:`lze-dialog-body`},gS={class:`lze-dialog-head`},_S=[`id`],vS={key:0,class:`lze-hint`},yS=[`aria-label`],bS=/* @__PURE__ */ D({__name:`Dialog`,props:/*@__PURE__*/ Wr({title:{},description:{default:void 0},size:{default:`md`}},{open:{type:Boolean,required:!0},openModifiers:{}}),emits:[`update:open`],setup(e){let t=ui(e,`open`),n=/* @__PURE__ */ w(),r=O(),{t:i}=Y();function a(){t.value&&!n.value?.open?n.value?.showModal():!t.value&&n.value?.open&&n.value.close()}$n(t,a);let o=!1,s=e=>o=e.target===e.currentTarget,c=e=>{o&&e.target===e.currentTarget&&(t.value=!1)};return Cr(a),(a,o)=>(j(),M(`dialog`,{ref_key:`dialog`,ref:n,class:`lze-dialog`,"data-size":e.size,"aria-labelledby":T(r),onClose:o[1]||=e=>t.value=!1,onPointerdown:s,onClick:c},[P(`div`,hS,[P(`header`,gS,[P(`div`,null,[P(`h2`,{id:T(r)},S(e.title),9,_S),e.description?(j(),M(`p`,vS,S(e.description),1)):L(``,!0)]),P(`button`,{type:`button`,class:`lze-icon-btn`,"aria-label":T(i)(`common.close`),onClick:o[0]||=e=>t.value=!1},[F(T(Ox),{size:16,"aria-hidden":`true`})],8,yS)]),t.value?Lr(a.$slots,`default`,{},void 0,void 0,0):L(``,!0)])],40,mS))}}),xS={class:`lze-dialog-actions`},SS=/* @__PURE__ */ D({__name:`ConflictDialog`,setup(e){let t=Y(),n=t.dialogModel(`conflict`);return(e,r)=>(j(),N(bS,{open:T(n),"onUpdate:open":r[2]||=e=>/* @__PURE__ */ on(n)?n.value=e:null,title:T(t).t(`conflict.title`),description:T(t).t(`conflict.body`)},{default:E(()=>[P(`div`,xS,[F(Z,{variant:`primary`,size:`md`,onClick:r[0]||=e=>T(t).reloadPage()},{default:E(()=>[I(S(T(t).t(`conflict.reload`)),1)]),_:1}),F(Z,{size:`md`,onClick:r[1]||=e=>n.value=!1},{default:E(()=>[I(S(T(t).t(`common.close`)),1)]),_:1})])]),_:1},8,[`open`,`title`,`description`]))}}),CS=[`data-tone`,`title`,`aria-label`,`aria-pressed`,`disabled`],wS=/* @__PURE__ */ D({__name:`IconButton`,props:{label:{},active:{type:Boolean,default:void 0},disabled:{type:Boolean,default:!1},tone:{default:`default`}},setup(e){return(t,n)=>(j(),M(`button`,{type:`button`,class:`lze-icon-btn`,"data-tone":e.tone,title:e.label,"aria-label":e.label,"aria-pressed":e.active,disabled:e.disabled},[Lr(t.$slots,`default`)],8,CS))}}),TS={class:`lze-asset-grid`},ES=[`disabled`],DS={class:`lze-hint`},OS=[`aria-label`,`onClick`],kS=[`src`,`alt`],AS={key:0,class:`lze-hint`},jS={key:1,class:`lze-hint`},MS=/* @__PURE__ */ D({__name:`MediaLibrary`,setup(e){let t=Y(),n=t.t,r=/* @__PURE__ */ w(),i=/* @__PURE__ */ w(!1),a=R({get:()=>t.state.library!==null,set:e=>{e||(t.state.library=null)}}),o=[`byte`,`kilobyte`,`megabyte`,`gigabyte`];function s(e){let n=Math.min(o.length-1,Math.max(0,Math.floor(Math.log(Math.max(e,1))/Math.log(1024))));return new Intl.NumberFormat(t.i18n.locale,{style:`unit`,unit:o[n],unitDisplay:`short`,maximumFractionDigits:1}).format(e/1024**n)}let c=R(()=>{let{used:e,limit:r}=t.state.workspace.quota;return r>0?n(`library.quota`,{used:s(e),limit:s(r)}):null});async function l(e){let n=e.target.files?.[0];n&&(i.value=!0,await t.uploadAsset(n),i.value=!1,r.value&&(r.value.value=``))}function u(e){let n=t.state.library?.onPick;n?n(e.ref):t.addElement({kind:`core`,type:`image`},void 0,e.ref),a.value=!1}return(e,o)=>(j(),N(bS,{open:a.value,"onUpdate:open":o[1]||=e=>a.value=e,title:T(n)(`library.title`),description:T(n)(`library.description`),size:`lg`},{default:E(()=>[P(`div`,TS,[P(`button`,{type:`button`,class:`lze-upload-tile`,disabled:i.value,onClick:o[0]||=e=>r.value?.click()},[F(T(Ex),{size:20,"aria-hidden":`true`}),P(`strong`,null,S(i.value?T(n)(`library.uploading`):T(n)(`library.upload`)),1),P(`span`,DS,S(T(n)(`library.formats`)),1)],8,ES),P(`input`,{ref_key:`input`,ref:r,type:`file`,class:`lze-file-input`,tabindex:`-1`,"aria-hidden":`true`,accept:`.jpg,.jpeg,.png,.webp,.avif,.svg`,onChange:l},null,544),(j(!0),M(A,null,k(T(t).state.workspace.assets,e=>(j(),M(`figure`,{key:e.id,class:`lze-asset`},[P(`button`,{type:`button`,class:`lze-asset-use`,"aria-label":T(n)(`library.use`,{name:e.name}),onClick:t=>u(e)},[P(`img`,{src:e.thumb,alt:e.name,loading:`lazy`},null,8,kS),P(`figcaption`,null,S(e.name),1)],8,OS),F(wS,{class:`lze-asset-delete`,tone:`danger`,label:T(n)(`library.delete`,{name:e.name}),onClick:n=>T(t).deleteAsset(e)},{default:E(()=>[F(T(Cx),{size:14,"aria-hidden":`true`})]),_:1},8,[`label`,`onClick`])]))),128))]),T(t).state.workspace.assets.length===0?(j(),M(`p`,AS,S(T(n)(`media.empty`)),1)):L(``,!0),c.value?(j(),M(`p`,jS,S(c.value),1)):L(``,!0)]),_:1},8,[`open`,`title`,`description`]))}}),NS={class:`lze-field`},PS=[`for`],FS={key:1,class:`lze-label`},IS={key:2,class:`lze-error`,role:`alert`},LS={key:3,class:`lze-hint`},Q=/* @__PURE__ */ D({__name:`Field`,props:{label:{},id:{},hint:{},error:{}},setup(e){return(t,n)=>(j(),M(`div`,NS,[e.id?(j(),M(`label`,{key:0,class:`lze-label`,for:e.id},[I(S(e.label),1),Lr(t.$slots,`aside`)],8,PS)):(j(),M(`span`,FS,[I(S(e.label),1),Lr(t.$slots,`aside`)])),Lr(t.$slots,`default`),e.error?(j(),M(`p`,IS,S(e.error),1)):e.hint?(j(),M(`p`,LS,S(e.hint),1)):L(``,!0)]))}}),RS=[`id`,`rows`,`maxlength`,`placeholder`,`aria-label`],zS=[`id`,`type`,`maxlength`,`placeholder`,`aria-label`],BS=/* @__PURE__ */ D({__name:`TextInput`,props:/*@__PURE__*/ Wr({id:{default:void 0},placeholder:{default:void 0},maxlength:{default:void 0},rows:{default:0},label:{default:void 0},type:{default:`text`}},{modelValue:{required:!0},modelModifiers:{}}),emits:/*@__PURE__*/ Wr([`commit`],[`update:modelValue`]),setup(e,{emit:t}){let n=ui(e,`modelValue`),r=t;return(t,i)=>e.rows>0?Gn((j(),M(`textarea`,{key:0,id:e.id,"onUpdate:modelValue":i[0]||=e=>n.value=e,class:`lze-input`,rows:e.rows,maxlength:e.maxlength,placeholder:e.placeholder,"aria-label":e.label,onChange:i[1]||=e=>r(`commit`)},null,40,RS)),[[Vo,n.value]]):Gn((j(),M(`input`,{key:1,id:e.id,"onUpdate:modelValue":i[2]||=e=>n.value=e,class:`lze-input`,type:e.type,maxlength:e.maxlength,placeholder:e.placeholder,"aria-label":e.label,onChange:i[3]||=e=>r(`commit`)},null,40,zS)),[[Xo,n.value]])}}),VS={class:`lze-dialog-actions`},HS=/* @__PURE__ */ D({__name:`NewPageDialog`,setup(e){let t=Y(),n=t.t,r={title:O(),slug:O()},i=t.dialogModel(`newPage`),a=/* @__PURE__ */ Jt({title:``,slug:``,issues:[],creating:!1});$n(i,e=>{e&&Object.assign(a,{title:``,slug:``,issues:[],creating:!1})});let o=R(()=>{let e=a.slug.trim()||n(`newPage.slugFallback`);return t.state.workspace.publicUrl?new URL(e,t.state.workspace.publicUrl).href:`/${e}`}),s=e=>a.issues.filter(t=>t.path===e).map(e=>e.message).join(` `)||null,c=R(()=>a.issues.filter(e=>e.path!==`title`&&e.path!==`slug`));async function l(){a.creating=!0,a.issues=await t.createPage(a.title.trim(),a.slug.trim()),a.creating=!1}return(e,t)=>(j(),N(bS,{open:T(i),"onUpdate:open":t[3]||=e=>/* @__PURE__ */ on(i)?i.value=e:null,title:T(n)(`newPage.title`),description:T(n)(`newPage.description`)},{default:E(()=>[P(`form`,{class:`lze-stack`,novalidate:``,onSubmit:ts(l,[`prevent`])},[F(Q,{id:r.title,label:T(n)(`newPage.titleLabel`),error:s(`title`)},{default:E(()=>[F(BS,{id:r.title,modelValue:a.title,"onUpdate:modelValue":t[0]||=e=>a.title=e,maxlength:120},null,8,[`id`,`modelValue`])]),_:1},8,[`id`,`label`,`error`]),F(Q,{id:r.slug,label:T(n)(`newPage.slug`),error:s(`slug`),hint:T(n)(`newPage.at`,{url:o.value})},{default:E(()=>[F(BS,{id:r.slug,modelValue:a.slug,"onUpdate:modelValue":t[1]||=e=>a.slug=e,maxlength:120,placeholder:T(n)(`newPage.slugPlaceholder`)},null,8,[`id`,`modelValue`,`placeholder`])]),_:1},8,[`id`,`label`,`error`,`hint`]),(j(!0),M(A,null,k(c.value,e=>(j(),M(`p`,{key:e.path+e.message,class:`lze-error`,role:`alert`},S(e.message),1))),128)),P(`div`,VS,[F(Z,{variant:`primary`,size:`md`,type:`submit`,disabled:a.creating},{default:E(()=>[I(S(T(n)(`newPage.create`)),1)]),_:1},8,[`disabled`]),F(Z,{size:`md`,onClick:t[2]||=e=>i.value=!1},{default:E(()=>[I(S(T(n)(`common.cancel`)),1)]),_:1})])],32)]),_:1},8,[`open`,`title`,`description`]))}}),US=[`aria-label`],WS={class:`lze-label`},GS=[`data-thumb`],KS=[`src`],qS={class:`lze-row`},JS=/* @__PURE__ */ D({__name:`ImageField`,props:/*@__PURE__*/ Wr({label:{},url:{type:Boolean,default:!1},choose:{default:void 0},thumb:{default:`wide`}},{modelValue:{required:!0},modelModifiers:{}}),emits:/*@__PURE__*/ Wr([`commit`],[`update:modelValue`]),setup(e,{emit:t}){let n=ui(e,`modelValue`),r=e,i=t,a=Y(),o=R(()=>{let e=n.value;return e?e.startsWith(`media:`)?a.state.workspace.assets.find(t=>t.ref===e)?.thumb??null:e:null}),s=R(()=>n.value&&!n.value.startsWith(`media:`)?n.value:``);function c(){a.openLibrary(e=>{n.value=e,i(`commit`)})}function l(){n.value=null,i(`commit`)}return(t,u)=>(j(),M(`div`,{class:`lze-field`,role:`group`,"aria-label":r.label},[P(`span`,WS,S(r.label),1),o.value?(j(),M(`div`,{key:0,class:`lze-image-preview`,"data-thumb":e.thumb},[P(`img`,{src:o.value,alt:``},null,8,KS)],8,GS)):L(``,!0),P(`div`,qS,[F(Z,{onClick:c},{default:E(()=>[I(S(e.choose??T(a).t(`el.chooseFromLibrary`)),1)]),_:1}),n.value?(j(),N(Z,{key:0,variant:`ghost`,onClick:l},{default:E(()=>[I(S(T(a).t(`common.remove`)),1)]),_:1})):L(``,!0)]),e.url?(j(),N(BS,{key:1,"model-value":s.value,type:`url`,maxlength:500,placeholder:T(a).t(`el.imageUrl`),label:T(a).t(`el.imageUrl`),"onUpdate:modelValue":u[0]||=e=>n.value=e,onCommit:u[1]||=e=>i(`commit`)},null,8,[`model-value`,`placeholder`,`label`])):L(``,!0)],8,US))}}),YS={class:`lze-number`},XS={class:`lze-number-label`},ZS=[`value`,`min`,`max`,`step`,`disabled`],QS={key:0,class:`lze-number-suffix`},$S=/* @__PURE__ */ D({__name:`NumberInput`,props:/*@__PURE__*/ Wr({label:{},min:{},max:{},step:{},suffix:{},disabled:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:/*@__PURE__*/ Wr([`commit`],[`update:modelValue`]),setup(e,{emit:t}){let n=ui(e,`modelValue`),r=e,i=t;function a(e){let t=e.target.value,i=Number(t);t===``?n.value=void 0:Number.isFinite(i)&&(n.value=Math.min(r.max??1/0,Math.max(r.min??-1/0,i)))}return(t,r)=>(j(),M(`label`,YS,[P(`span`,XS,S(e.label),1),P(`input`,{type:`number`,value:n.value??``,min:e.min,max:e.max,step:e.step,disabled:e.disabled,onInput:a,onChange:r[0]||=e=>i(`commit`)},null,40,ZS),e.suffix?(j(),M(`span`,QS,S(e.suffix),1)):L(``,!0)]))}}),eC=[`id`,`data-compact`,`aria-label`],tC=[`selected`],nC=[`selected`],$=/* @__PURE__ */ D({__name:`SelectInput`,props:/*@__PURE__*/ Wr({options:{},id:{},label:{},placeholder:{},compact:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:/*@__PURE__*/ Wr([`commit`],[`update:modelValue`]),setup(e,{emit:t}){let n=ui(e,`modelValue`),r=e,i=t;function a(e){let t=e.target.selectedIndex-+!!r.placeholder,a=r.options[t];a&&(n.value=a.value,i(`commit`))}return(t,r)=>(j(),M(`select`,{id:e.id,class:`lze-select`,"data-compact":e.compact,"aria-label":e.label,onChange:a},[e.placeholder?(j(),M(`option`,{key:0,value:``,disabled:``,selected:n.value===null||n.value===void 0||n.value===``},S(e.placeholder),9,tC)):L(``,!0),(j(!0),M(A,null,k(e.options,e=>(j(),M(`option`,{key:e.value,selected:e.value===n.value},S(e.label),9,nC))),128))],40,eC))}}),rC={class:`lze-toggle`},iC=[`checked`],aC=/* @__PURE__ */ D({__name:`Toggle`,props:/*@__PURE__*/ Wr({label:{}},{modelValue:{type:[Boolean,null],required:!0},modelModifiers:{}}),emits:/*@__PURE__*/ Wr([`commit`],[`update:modelValue`]),setup(e,{emit:t}){let n=ui(e,`modelValue`),r=t;return(t,i)=>(j(),M(`label`,rC,[P(`input`,{type:`checkbox`,checked:n.value===!0,onChange:i[0]||=e=>{n.value=e.target.checked,r(`commit`)}},null,40,iC),P(`span`,null,S(e.label),1)]))}}),oC={none:{kind:`none`},whatsapp:{kind:`text`,placeholder:`action.placeholder.whatsapp`},phone:{kind:`text`,placeholder:`action.placeholder.phone`},email:{kind:`text`,placeholder:`action.placeholder.email`},url:{kind:`text`,placeholder:`action.placeholder.url`},anchor:{kind:`anchor`},modal:{kind:`modal`},submit:{kind:`submit`},page:{kind:`page`},top:{kind:`none`},back:{kind:`none`},step_next:{kind:`none`},step_prev:{kind:`none`}},sC=e=>Object.hasOwn(oC,e);function cC(e){return!e||e.kind===`image`||e.default===void 0?``:String(e.default)}var lC={class:`lze-field`},uC=[`id`],dC=[`value`],fC={key:4,class:`lze-hint`},pC=/* @__PURE__ */ D({__name:`ActionPicker`,props:{modelValue:{},label:{}},emits:[`update:modelValue`,`commit`],setup(e,{emit:t}){let n=e,r=t,i=Y(),a=i.t,o=O(),s=R(()=>n.modelValue?.type||`none`),c=R(()=>n.modelValue?.value??``),l=R(()=>i.catalog.value.actions.find(e=>e.type===s.value)??null),u=R(()=>sC(s.value)?oC[s.value]:null),d=R(()=>{let e=[...Jg.map(e=>({value:e,label:a(`action.${e}`)})),...i.catalog.value.actions.map(e=>({value:e.type,label:i.i18n.localized(e.label)}))];return e.some(e=>e.value===s.value)?e:[...e,{value:s.value,label:a(`action.unknown`,{type:s.value})}]}),f=R(()=>(i.state.draft.modals??[]).map(e=>({value:e.id,label:e.title}))),p=R(()=>i.state.workspace.pages.map(e=>({value:e.slug||`/`,label:e.slug?`${e.title} /${e.slug}`:e.title})));function m(e){let t=i.catalog.value.actions.find(t=>t.type===e);r(`update:modelValue`,{type:e,value:t?cC(t.value):c.value}),r(`commit`)}function h(e){r(`update:modelValue`,{type:s.value,value:e==null||typeof e==`object`?``:String(e)})}let g=R(()=>{let e=l.value?.value;return e?.kind===`number`?c.value===``?e.default:Number(c.value):e?.kind===`toggle`?c.value===``?e.default:c.value===`true`:c.value});return(t,n)=>(j(),M(`div`,lC,[F($,{"model-value":s.value,options:d.value,label:e.label,"onUpdate:modelValue":n[0]||=e=>m(String(e??`none`))},null,8,[`model-value`,`options`,`label`]),u.value?(j(),M(A,{key:0},[u.value.kind===`text`?(j(),N(BS,{key:0,"model-value":c.value,maxlength:300,placeholder:T(a)(u.value.placeholder),label:T(a)(`action.target`),"onUpdate:modelValue":n[1]||=e=>h(e),onCommit:n[2]||=e=>r(`commit`)},null,8,[`model-value`,`placeholder`,`label`])):u.value.kind===`anchor`?(j(),M(A,{key:1},[F(BS,{"model-value":c.value,maxlength:300,placeholder:T(a)(`action.placeholder.anchor`),label:T(a)(`action.placeholder.anchor`),list:T(o),"onUpdate:modelValue":n[3]||=e=>h(e),onCommit:n[4]||=e=>r(`commit`)},null,8,[`model-value`,`placeholder`,`label`,`list`]),P(`datalist`,{id:T(o)},[(j(!0),M(A,null,k(T(i).state.draft.sections,e=>(j(),M(`option`,{key:e.id,value:e.id},null,8,dC))),128))],8,uC)],64)):u.value.kind===`modal`?(j(),N($,{key:2,"model-value":c.value,options:f.value,label:T(a)(`action.chooseModal`),placeholder:T(a)(`action.chooseModal`),"onUpdate:modelValue":n[5]||=e=>h(e),onCommit:n[6]||=e=>r(`commit`)},null,8,[`model-value`,`options`,`label`,`placeholder`])):u.value.kind===`page`?(j(),N($,{key:3,"model-value":c.value,options:p.value,label:T(a)(`action.choosePage`),placeholder:T(a)(`action.choosePage`),"onUpdate:modelValue":n[7]||=e=>h(e),onCommit:n[8]||=e=>r(`commit`)},null,8,[`model-value`,`options`,`label`,`placeholder`])):u.value.kind===`submit`?(j(),M(`p`,fC,S(T(a)(`action.submitHint`)),1)):L(``,!0)],64)):l.value?.value?(j(),N(hC,{key:1,field:l.value.value,"model-value":g.value,"onUpdate:modelValue":n[9]||=e=>h(e),onCommit:n[10]||=e=>r(`commit`)},null,8,[`field`,`model-value`])):L(``,!0)]))}}),mC={class:`lze-choices`},hC=/* @__PURE__ */ D({__name:`FieldControl`,props:{field:{},modelValue:{type:[String,Number,Boolean,Array,null]}},emits:[`update:modelValue`,`commit`],setup(e,{emit:t}){let n=e,r=t,i=Y(),a=O(),o=R(()=>i.i18n.localized(n.field.label)),s=e=>typeof e==`object`&&!!e,c=R(()=>{let e=n.field,t=n.modelValue;switch(e.kind){case`text`:return{kind:`text`,field:e,value:typeof t==`string`?t:e.default??``};case`number`:return{kind:`number`,field:e,value:typeof t==`number`?t:e.default};case`toggle`:return{kind:`toggle`,field:e,value:typeof t==`boolean`?t:e.default};case`choice`:return e.multiple===!0?{kind:`choices`,field:e,value:(Array.isArray(t)?t:Array.isArray(e.default)?e.default:[]).filter(t=>e.options.some(e=>e.value===t))}:{kind:`choice`,field:e,value:typeof t==`string`?t:typeof e.default==`string`?e.default:``};case`image`:return{kind:`image`,field:e,value:typeof t==`string`&&t!==``?t:null};case`action`:return{kind:`action`,field:e,value:s(t)?t:null};default:return e}});function l(e,t,n,r){let i=r?[...t,n]:t.filter(e=>e!==n);u(e.options.map(e=>e.value).filter(e=>i.includes(e)))}function u(e){e!==void 0&&r(`update:modelValue`,e)}return(e,t)=>c.value.kind===`text`?(j(),N(Q,{key:0,id:T(a),label:o.value},{default:E(()=>[F(BS,{id:T(a),"model-value":c.value.value,maxlength:c.value.field.max,rows:c.value.field.multiline?4:0,"onUpdate:modelValue":t[0]||=e=>u(e??``),onCommit:t[1]||=e=>r(`commit`)},null,8,[`id`,`model-value`,`maxlength`,`rows`])]),_:1},8,[`id`,`label`])):c.value.kind===`number`?(j(),N($S,{key:1,"model-value":c.value.value,label:o.value,min:c.value.field.min,max:c.value.field.max,step:c.value.field.step,"onUpdate:modelValue":t[2]||=e=>u(e??void 0),onCommit:t[3]||=e=>r(`commit`)},null,8,[`model-value`,`label`,`min`,`max`,`step`])):c.value.kind===`toggle`?(j(),N(aC,{key:2,"model-value":c.value.value,label:o.value,"onUpdate:modelValue":t[4]||=e=>u(e===!0),onCommit:t[5]||=e=>r(`commit`)},null,8,[`model-value`,`label`])):c.value.kind===`choice`?(j(),N(Q,{key:3,id:T(a),label:o.value},{default:E(()=>[F($,{id:T(a),"model-value":c.value.value,options:c.value.field.options.map(e=>({value:e.value,label:T(i).i18n.localized(e.label)})),"onUpdate:modelValue":t[6]||=e=>u(e??void 0),onCommit:t[7]||=e=>r(`commit`)},null,8,[`id`,`model-value`,`options`])]),_:1},8,[`id`,`label`])):c.value.kind===`choices`?(j(),N(Q,{key:4,label:o.value},{default:E(()=>[P(`div`,mC,[(j(!0),M(A,null,k(c.value.field.options,e=>(j(),N(aC,{key:e.value,"model-value":c.value.value.includes(e.value),label:T(i).i18n.localized(e.label),"onUpdate:modelValue":t=>l(c.value.field,c.value.value,e.value,t===!0),onCommit:t[8]||=e=>r(`commit`)},null,8,[`model-value`,`label`,`onUpdate:modelValue`]))),128))])]),_:1},8,[`label`])):c.value.kind===`image`?(j(),N(JS,{key:5,"model-value":c.value.value,label:o.value,url:``,"onUpdate:modelValue":t[9]||=e=>u(e??null),onCommit:t[10]||=e=>r(`commit`)},null,8,[`model-value`,`label`])):(j(),N(Q,{key:6,label:o.value},{default:E(()=>[F(pC,{"model-value":c.value.value,label:o.value,"onUpdate:modelValue":t[11]||=e=>u(e),onCommit:t[12]||=e=>r(`commit`)},null,8,[`model-value`,`label`])]),_:1},8,[`label`]))}}),gC={class:`lze-grid-2`},_C={class:`lze-field`},vC={key:0,class:`lze-error`,role:`alert`},yC={key:1,class:`lze-hint`},bC={class:`lze-field`},xC={key:0,class:`lze-error`,role:`alert`},SC={key:0,class:`lze-stack lze-divided`},CC={class:`lze-label`},wC={key:0,class:`lze-error`,role:`alert`},TC={class:`lze-dialog-actions`},EC=/* @__PURE__ */ D({__name:`SiteDialog`,setup(e){let t=Y(),n=t.t,r={seoTitle:O(),seoDescription:O(),locale:O()},i=t.dialogModel(`site`),a=()=>{let e=t.state.workspace.site;return{seoTitle:e.seo.title??``,seoDescription:e.seo.description??``,ogImage:e.og_image,favicon:e.favicon,locale:e.locale,meta:xs(t.state.workspace.meta),issues:[],saving:!1}},o=/* @__PURE__ */ Jt(a());$n(i,e=>e&&Object.assign(o,a()));let s=R(()=>t.catalog.value.siteFields??[]),c=e=>e&&e.trim()!==``?e:null,l=[`seo.title`,`seo.description`,`og_image`,`favicon`,`locale`],u=e=>o.issues.filter(t=>t.path===e).map(e=>e.message).join(` `)||null,d=R(()=>o.issues.filter(e=>!l.includes(e.path)&&!e.path.startsWith(`meta.`)));function f(e,t){o.meta={...o.meta,[e]:t}}async function p(){o.saving=!0,o.issues=await t.updateSite({seo:{title:c(o.seoTitle),description:c(o.seoDescription)},og_image:c(o.ogImage),favicon:c(o.favicon),locale:o.locale.trim(),meta:o.meta}),o.saving=!1,o.issues.length===0&&(i.value=!1,t.notify(n(`site.saved`)))}return(e,t)=>(j(),N(bS,{open:T(i),"onUpdate:open":t[6]||=e=>/* @__PURE__ */ on(i)?i.value=e:null,title:T(n)(`site.title`),description:T(n)(`site.description`),size:`lg`},{default:E(()=>[P(`form`,{class:`lze-stack`,novalidate:``,onSubmit:ts(p,[`prevent`])},[F(Q,{id:r.seoTitle,label:T(n)(`site.seoTitle`),error:u(`seo.title`)},{default:E(()=>[F(BS,{id:r.seoTitle,modelValue:o.seoTitle,"onUpdate:modelValue":t[0]||=e=>o.seoTitle=e,maxlength:120},null,8,[`id`,`modelValue`])]),_:1},8,[`id`,`label`,`error`]),F(Q,{id:r.seoDescription,label:T(n)(`site.seoDescription`),error:u(`seo.description`)},{default:E(()=>[F(BS,{id:r.seoDescription,modelValue:o.seoDescription,"onUpdate:modelValue":t[1]||=e=>o.seoDescription=e,rows:3,maxlength:300},null,8,[`id`,`modelValue`])]),_:1},8,[`id`,`label`,`error`]),P(`div`,gC,[P(`div`,_C,[F(JS,{modelValue:o.ogImage,"onUpdate:modelValue":t[2]||=e=>o.ogImage=e,label:T(n)(`site.shareImage`),choose:T(n)(`common.choose`)},null,8,[`modelValue`,`label`,`choose`]),u(`og_image`)?(j(),M(`p`,vC,S(u(`og_image`)),1)):(j(),M(`p`,yC,S(T(n)(`site.shareImageHint`)),1))]),P(`div`,bC,[F(JS,{modelValue:o.favicon,"onUpdate:modelValue":t[3]||=e=>o.favicon=e,label:T(n)(`site.favicon`),choose:T(n)(`common.choose`),thumb:`icon`},null,8,[`modelValue`,`label`,`choose`]),u(`favicon`)?(j(),M(`p`,xC,S(u(`favicon`)),1)):L(``,!0)])]),F(Q,{id:r.locale,label:T(n)(`site.locale`),hint:T(n)(`site.localeHint`),error:u(`locale`)},{default:E(()=>[F(BS,{id:r.locale,modelValue:o.locale,"onUpdate:modelValue":t[4]||=e=>o.locale=e,maxlength:5,placeholder:`en`},null,8,[`id`,`modelValue`])]),_:1},8,[`id`,`label`,`hint`,`error`]),s.value.length>0?(j(),M(`section`,SC,[P(`h3`,CC,S(T(n)(`site.details`)),1),(j(!0),M(A,null,k(s.value,e=>(j(),M(`div`,{key:e.key,class:`lze-field`},[F(hC,{field:e,"model-value":o.meta[e.key],"onUpdate:modelValue":t=>f(e.key,t)},null,8,[`field`,`model-value`,`onUpdate:modelValue`]),u(`meta.${e.key}`)?(j(),M(`p`,wC,S(u(`meta.${e.key}`)),1)):L(``,!0)]))),128))])):L(``,!0),(j(!0),M(A,null,k(d.value,e=>(j(),M(`p`,{key:e.path+e.message,class:`lze-error`,role:`alert`},S(e.path?`${e.path}: `:``)+S(e.message),1))),128)),P(`div`,TC,[F(Z,{variant:`primary`,size:`md`,type:`submit`,disabled:o.saving},{default:E(()=>[I(S(T(n)(`site.save`)),1)]),_:1},8,[`disabled`]),F(Z,{size:`md`,onClick:t[5]||=e=>i.value=!1},{default:E(()=>[I(S(T(n)(`common.cancel`)),1)]),_:1})])],32)]),_:1},8,[`open`,`title`,`description`]))}}),DC={key:0,class:`lze-rows`},OC={class:`lze-hint`},kC={key:1,class:`lze-hint`},AC={key:2,class:`lze-dialog-actions`},jC=/* @__PURE__ */ D({__name:`SubmissionsDialog`,setup(e){let t=Y(),n=t.t,r=t.dialogModel(`submissions`),i=/* @__PURE__ */ w([]),a=/* @__PURE__ */ w(null),o=/* @__PURE__ */ w(!1),s=new Intl.DateTimeFormat(t.i18n.locale,{dateStyle:`medium`,timeStyle:`short`});async function c(e){o.value=!0;let r=await t.client(`GET /submissions`,e?{cursor:e}:void 0);if(o.value=!1,!r.ok){t.notify(n(`submissions.failed`,{message:t.failureText(r.failure)}),`error`);return}i.value=e?[...i.value,...r.value.data]:r.value.data,a.value=r.value.next}$n(r,e=>{e&&c(null)});let l=R(()=>new Map(ps(t.state.draft).flatMap(e=>e.elements).flatMap(e=>{let t=e.props.label;return typeof t==`string`&&t.trim()!==``?[[db(e.id),t.trim()]]:[]})));return(e,t)=>(j(),N(bS,{open:T(r),"onUpdate:open":t[1]||=e=>/* @__PURE__ */ on(r)?r.value=e:null,title:T(n)(`submissions.title`),description:T(n)(`submissions.description`),size:`lg`},{default:E(()=>[i.value.length>0?(j(),M(`ul`,DC,[(j(!0),M(A,null,k(i.value,e=>(j(),M(`li`,{key:e.id,class:`lze-submission`},[P(`p`,OC,S(T(s).format(new Date(e.createdAt)))+` · `+S(T(n)(`submissions.from`,{page:e.page,source:e.source})),1),P(`dl`,null,[(j(!0),M(A,null,k(e.fields,(e,t)=>(j(),M(A,{key:t},[P(`dt`,null,S(l.value.get(String(t))??t),1),P(`dd`,null,S(typeof e==`boolean`?T(n)(e?`submissions.checked`:`submissions.unchecked`):e),1)],64))),128))])]))),128))])):o.value?L(``,!0):(j(),M(`p`,kC,S(T(n)(`submissions.empty`)),1)),a.value?(j(),M(`div`,AC,[F(Z,{disabled:o.value,onClick:t[0]||=e=>c(a.value)},{default:E(()=>[I(S(T(n)(`submissions.more`)),1)]),_:1},8,[`disabled`])])):L(``,!0)]),_:1},8,[`open`,`title`,`description`]))}}),MC={class:`lze-range`},NC={class:`lze-label`},PC={class:`lze-muted`},FC=[`min`,`max`,`step`,`value`],IC=/* @__PURE__ */ D({__name:`RangeInput`,props:/*@__PURE__*/ Wr({label:{},min:{},max:{},step:{default:1},fallback:{default:0},format:{type:Function,default:e=>String(e)}},{modelValue:{required:!0},modelModifiers:{}}),emits:/*@__PURE__*/ Wr([`commit`],[`update:modelValue`]),setup(e,{emit:t}){let n=ui(e,`modelValue`),r=t;return(t,i)=>(j(),M(`label`,MC,[P(`span`,NC,[I(S(e.label)+` `,1),P(`span`,PC,S(e.format(n.value??e.fallback)),1)]),P(`input`,{type:`range`,min:e.min,max:e.max,step:e.step,value:n.value??e.fallback,onInput:i[0]||=e=>n.value=Number(e.target.value),onChange:i[1]||=e=>r(`commit`)},null,40,FC)]))}}),LC=[`href`],RC={class:`lze-field`},zC={class:`lze-label`},BC={class:`lze-row`},VC=[`onClick`],HC={class:`lze-row`,"aria-hidden":`true`},UC={class:`lze-field`},WC={class:`lze-heading`},GC={class:`lze-label`},KC={class:`lze-hint`},qC={class:`lze-theme-colors`},JC=[`onUpdate:modelValue`,`aria-label`],YC=[`value`,`aria-label`,`onInput`],XC={class:`lze-grid-2`},ZC={class:`lze-grid-2`},QC=[`aria-label`],$C={class:`lze-dialog-actions`},ew=/* @__PURE__ */ D({__name:`ThemeDialog`,setup(e){let t=Y(),n=t.t,r={heading:O(),body:O(),width:O()},i=/^#[0-9a-fA-F]{6}$/,a=t.dialogModel(`theme`),o=/* @__PURE__ */ Jt(xs(t.state.workspace.site.theme)),s=/* @__PURE__ */ w([]),c=/* @__PURE__ */ w(!1),l=R(()=>{let e=t.state.workspace.site.theme,n=Object.fromEntries(Vs.map(t=>[t,i.test(o[t])?o[t]:e[t]]));return{...o,...n}});$n(a,e=>{e&&(Object.assign(o,xs(t.state.workspace.site.theme)),s.value=[]),t.state.themeDraft=e?xs(l.value):null},{immediate:!0}),$n(l,e=>{a.value&&(t.state.themeDraft=xs(e))});let u=Gs.map(e=>({value:e,label:`${e} · ${n(Ks(e))}`})),d=qs.map(e=>({value:e,label:n(Js(e))}));function f(e){Object.assign(o,e)}function p(){ec(t.state.draft,l.value),t.commit()}async function m(){c.value=!0,s.value=await t.updateSite({theme:l.value}),c.value=!1,s.value.length===0&&(a.value=!1,t.notify(n(`theme.saved`)))}let h=e=>l.value[e];return(e,t)=>(j(),N(bS,{open:T(a),"onUpdate:open":t[5]||=e=>/* @__PURE__ */ on(a)?a.value=e:null,title:T(n)(`theme.title`),description:T(n)(`theme.description`),size:`xl`},{default:E(()=>[P(`link`,{rel:`stylesheet`,href:T(tc)([l.value.heading_font,l.value.body_font])},null,8,LC),P(`form`,{class:`lze-stack`,novalidate:``,onSubmit:ts(m,[`prevent`])},[P(`section`,RC,[P(`h3`,zC,S(T(n)(`theme.palettes`)),1),P(`div`,BC,[(j(!0),M(A,null,k(T(Ws),e=>(j(),M(`button`,{key:e.name,type:`button`,class:`lze-palette-choice`,onClick:t=>f(e.colors)},[P(`span`,HC,[(j(),M(A,null,k([`primary`,`secondary`,`surface`],t=>P(`span`,{key:t,class:`lze-dot`,style:x({background:e.colors[t]})},null,4)),64))]),I(` `+S(T(n)(e.name)),1)],8,VC))),128))])]),P(`section`,UC,[P(`div`,WC,[P(`h3`,GC,S(T(n)(`theme.colors`)),1),F(Z,{onClick:p},{default:E(()=>[I(S(T(n)(`theme.link`)),1)]),_:1})]),P(`p`,KC,S(T(n)(`theme.linkHint`)),1),P(`div`,qC,[(j(!0),M(A,null,k(T(Vs),e=>(j(),M(`div`,{key:e,class:`lze-theme-color`},[P(`span`,null,S(T(n)(`token.${e}`)),1),Gn(P(`input`,{"onUpdate:modelValue":t=>o[e]=t,class:`lze-input lze-hex`,maxlength:`7`,spellcheck:`false`,"aria-label":T(n)(`theme.hex`,{label:T(n)(`token.${e}`)})},null,8,JC),[[Vo,o[e]]]),P(`input`,{type:`color`,value:h(e),"aria-label":T(n)(`token.${e}`),onInput:t=>o[e]=t.target.value},null,40,YC)]))),128))])]),P(`section`,XC,[F(Q,{id:r.heading,label:T(n)(`theme.headingFont`)},{default:E(()=>[F($,{id:r.heading,"model-value":o.heading_font,options:T(u),"onUpdate:modelValue":t[0]||=e=>o.heading_font=e??o.heading_font},null,8,[`id`,`model-value`,`options`])]),_:1},8,[`id`,`label`]),F(Q,{id:r.body,label:T(n)(`theme.bodyFont`)},{default:E(()=>[F($,{id:r.body,"model-value":o.body_font,options:T(u),"onUpdate:modelValue":t[1]||=e=>o.body_font=e??o.body_font},null,8,[`id`,`model-value`,`options`])]),_:1},8,[`id`,`label`])]),P(`section`,ZC,[F(IC,{"model-value":o.radius,label:T(n)(`theme.radius`),min:0,max:40,step:2,format:e=>`${e} px`,"onUpdate:modelValue":t[2]||=e=>o.radius=e??o.radius},null,8,[`model-value`,`label`,`format`]),F(Q,{id:r.width,label:T(n)(`theme.maxWidth`)},{default:E(()=>[F($,{id:r.width,"model-value":o.max_width,options:T(d),"onUpdate:modelValue":t[3]||=e=>o.max_width=e??o.max_width},null,8,[`id`,`model-value`,`options`])]),_:1},8,[`id`,`label`])]),P(`section`,{class:`lze-theme-preview`,"aria-label":T(n)(`theme.previewLabel`),style:x({background:l.value.surface,color:l.value.text,borderRadius:`${l.value.radius}px`})},[P(`p`,{class:`lze-theme-preview-heading`,style:x({fontFamily:`'${l.value.heading_font}', sans-serif`})},S(T(n)(`theme.previewHeading`)),5),P(`p`,{style:x({fontFamily:`'${l.value.body_font}', sans-serif`,color:l.value.muted})},S(T(n)(`theme.previewText`)),5),P(`span`,{class:`lze-theme-preview-button`,style:x({background:l.value.primary,color:l.value.background,borderRadius:`${l.value.radius}px`,fontFamily:`'${l.value.body_font}', sans-serif`})},S(T(n)(`theme.previewButton`)),5)],12,QC),(j(!0),M(A,null,k(s.value,e=>(j(),M(`p`,{key:e.path+e.message,class:`lze-error`,role:`alert`},S(e.path?`${e.path}: `:``)+S(e.message),1))),128)),P(`div`,$C,[F(Z,{variant:`primary`,size:`md`,type:`submit`,disabled:c.value},{default:E(()=>[I(S(T(n)(`theme.save`)),1)]),_:1},8,[`disabled`]),F(Z,{size:`md`,onClick:t[4]||=e=>a.value=!1},{default:E(()=>[I(S(T(n)(`common.cancel`)),1)]),_:1})])],32)]),_:1},8,[`open`,`title`,`description`]))}}),tw={key:0,class:`lze-rows`},nw={key:0,class:`lze-hint`},rw={key:1,class:`lze-hint`},iw=/* @__PURE__ */ D({__name:`VersionsDialog`,setup(e){let t=Y(),n=t.t,r=t.dialogModel(`versions`),i=R(()=>t.state.page?.versions??[]),a=new Intl.DateTimeFormat(t.i18n.locale,{dateStyle:`medium`,timeStyle:`short`});return(e,o)=>(j(),N(bS,{open:T(r),"onUpdate:open":o[0]||=e=>/* @__PURE__ */ on(r)?r.value=e:null,title:T(n)(`versions.title`),description:T(n)(`versions.description`),size:`lg`},{default:E(()=>[i.value.length>0?(j(),M(`ul`,tw,[(j(!0),M(A,null,k(i.value,e=>(j(),M(`li`,{key:e.id,class:`lze-row-item`},[P(`div`,null,[P(`p`,null,S(T(a).format(new Date(e.createdAt))),1),e.by?(j(),M(`p`,nw,S(T(n)(`versions.by`,{name:e.by})),1)):L(``,!0)]),F(Z,{onClick:n=>T(t).restoreVersion(e.id)},{default:E(()=>[I(S(T(n)(`versions.restore`)),1)]),_:1},8,[`onClick`])]))),128))])):(j(),M(`p`,rw,S(T(n)(`versions.empty`)),1))]),_:1},8,[`open`,`title`,`description`]))}}),aw=/*#__PURE__*/ JSON.parse(`{"activity":[["path",{"d":"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2"}]],"arrow-right":[["path",{"d":"M5 12h14"}],["path",{"d":"m12 5 7 7-7 7"}]],"arrow-up-right":[["path",{"d":"M7 7h10v10"}],["path",{"d":"M7 17 17 7"}]],"award":[["path",{"d":"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526"}],["circle",{"cx":"12","cy":"8","r":"6"}]],"badge-check":[["path",{"d":"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z"}],["path",{"d":"m16 9-5.5 5.5L8 12"}]],"baby":[["path",{"d":"M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5"}],["path",{"d":"M15 12h.01"}],["path",{"d":"M19.38 6.813A9 9 0 0 1 20.8 10.2a2 2 0 0 1 0 3.6 9 9 0 0 1-17.6 0 2 2 0 0 1 0-3.6A9 9 0 0 1 12 3c2 0 3.5 1.1 3.5 2.5s-.9 2.5-2 2.5c-.8 0-1.5-.4-1.5-1"}],["path",{"d":"M9 12h.01"}]],"banknote":[["rect",{"width":"20","height":"12","x":"2","y":"6","rx":"2"}],["circle",{"cx":"12","cy":"12","r":"2"}],["path",{"d":"M6 12h.01M18 12h.01"}]],"bone":[["path",{"d":"M17 10c.7-.7 1.69 0 2.5 0a2.5 2.5 0 1 0 0-5 .5.5 0 0 1-.5-.5 2.5 2.5 0 1 0-5 0c0 .81.7 1.8 0 2.5l-7 7c-.7.7-1.69 0-2.5 0a2.5 2.5 0 0 0 0 5c.28 0 .5.22.5.5a2.5 2.5 0 1 0 5 0c0-.81-.7-1.8 0-2.5Z"}]],"brush":[["path",{"d":"m11 10 3 3"}],["path",{"d":"M6.5 21A3.5 3.5 0 1 0 3 17.5a2.62 2.62 0 0 1-.708 1.792A1 1 0 0 0 3 21z"}],["path",{"d":"M9.969 17.031 21.378 5.624a1 1 0 0 0-3.002-3.002L6.967 14.031"}]],"bus":[["path",{"d":"M8 6v6"}],["path",{"d":"M15 6v6"}],["path",{"d":"M2 12h19.6"}],["path",{"d":"M18 18h3s.5-1.7.8-2.8c.1-.4.2-.8.2-1.2 0-.4-.1-.8-.2-1.2l-1.4-5C20.1 6.8 19.1 6 18 6H4a2 2 0 0 0-2 2v10h3"}],["circle",{"cx":"7","cy":"18","r":"2"}],["path",{"d":"M9 18h5"}],["circle",{"cx":"16","cy":"18","r":"2"}]],"calendar":[["path",{"d":"M8 2v3"}],["path",{"d":"M16 2v3"}],["rect",{"x":"3","y":"3","width":"18","height":"18","rx":"2"}],["path",{"d":"M3 9h18"}]],"calendar-check":[["path",{"d":"M8 2v3"}],["path",{"d":"M16 2v3"}],["rect",{"x":"3","y":"3","width":"18","height":"18","rx":"2"}],["path",{"d":"M3 9h18"}],["path",{"d":"m9 15 2 2 4-4"}]],"calendar-days":[["path",{"d":"M8 2v3"}],["path",{"d":"M16 2v3"}],["rect",{"x":"3","y":"3","width":"18","height":"18","rx":"2"}],["path",{"d":"M3 9h18"}],["path",{"d":"M8 13h.01"}],["path",{"d":"M12 13h.01"}],["path",{"d":"M16 13h.01"}],["path",{"d":"M8 17h.01"}],["path",{"d":"M12 17h.01"}],["path",{"d":"M16 17h.01"}]],"camera":[["path",{"d":"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z"}],["circle",{"cx":"12","cy":"13","r":"3"}]],"car":[["path",{"d":"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2"}],["circle",{"cx":"7","cy":"17","r":"2"}],["path",{"d":"M9 17h6"}],["circle",{"cx":"17","cy":"17","r":"2"}]],"check":[["path",{"d":"M20 6 9 17l-5-5"}]],"chevron-right":[["path",{"d":"m9 18 6-6-6-6"}]],"circle-check":[["circle",{"cx":"12","cy":"12","r":"10"}],["path",{"d":"m16 9-5.5 5.5L8 12"}]],"clipboard-list":[["rect",{"width":"8","height":"4","x":"8","y":"2","rx":"1","ry":"1"}],["path",{"d":"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"}],["path",{"d":"M12 11h4"}],["path",{"d":"M12 16h4"}],["path",{"d":"M8 11h.01"}],["path",{"d":"M8 16h.01"}]],"clock":[["circle",{"cx":"12","cy":"12","r":"10"}],["path",{"d":"M12 6v6l4 2"}]],"coffee":[["path",{"d":"M10 2v2"}],["path",{"d":"M14 2v2"}],["path",{"d":"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1"}],["path",{"d":"M6 2v2"}]],"credit-card":[["rect",{"width":"20","height":"14","x":"2","y":"5","rx":"2"}],["line",{"x1":"2","x2":"22","y1":"10","y2":"10"}],["path",{"d":"M6 14h2"}]],"droplet":[["path",{"d":"M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z"}]],"file-text":[["path",{"d":"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"}],["path",{"d":"M14 2v5a1 1 0 0 0 1 1h5"}],["path",{"d":"M10 9H8"}],["path",{"d":"M16 13H8"}],["path",{"d":"M16 17H8"}]],"gift":[["path",{"d":"M12 7v14"}],["path",{"d":"M20 11v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8"}],["path",{"d":"M7.5 7a1 1 0 0 1 0-5A4.8 8 0 0 1 12 7a4.8 8 0 0 1 4.5-5 1 1 0 0 1 0 5"}],["rect",{"x":"3","y":"7","width":"18","height":"4","rx":"1"}]],"globe":[["circle",{"cx":"12","cy":"12","r":"10"}],["path",{"d":"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"}],["path",{"d":"M2 12h20"}]],"hand-heart":[["path",{"d":"M11 14h2a2 2 0 0 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 16"}],["path",{"d":"m14.45 13.39 5.05-4.694C20.196 8 21 6.85 21 5.75a2.75 2.75 0 0 0-4.797-1.837.276.276 0 0 1-.406 0A2.75 2.75 0 0 0 11 5.75c0 1.2.802 2.248 1.5 2.946L16 11.95"}],["path",{"d":"m2 15 6 6"}],["path",{"d":"m7 20 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a1 1 0 0 0-2.75-2.91"}]],"heart":[["path",{"d":"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5"}]],"heart-pulse":[["path",{"d":"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5"}],["path",{"d":"M3.22 13H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27"}]],"house":[["path",{"d":"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"}],["path",{"d":"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"}]],"image":[["rect",{"width":"18","height":"18","x":"3","y":"3","rx":"2","ry":"2"}],["circle",{"cx":"9","cy":"9","r":"2"}],["path",{"d":"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"}]],"leaf":[["path",{"d":"M11 20a10 10 0 0010-10 25.9 25.9 0 00-1.04-7.281 1 1 0 00-1.755-.325C15.833 5.5 13 5.5 9.8 6.1A7 7 0 0011 20"}],["path",{"d":"M2 21a5 5 0 012.911-4.544C7.613 15.212 8.351 15.24 11 13"}]],"lightbulb":[["path",{"d":"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"}],["path",{"d":"M9 18h6"}],["path",{"d":"M10 22h4"}]],"mail":[["path",{"d":"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7"}],["rect",{"x":"2","y":"4","width":"20","height":"16","rx":"2"}]],"map-pin":[["path",{"d":"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0"}],["circle",{"cx":"12","cy":"10","r":"3"}]],"message-circle":[["path",{"d":"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719"}]],"microscope":[["path",{"d":"M6 18h8"}],["path",{"d":"M3 22h18"}],["path",{"d":"M14 22a7 7 0 1 0 0-14h-1"}],["path",{"d":"M9 14h2"}],["path",{"d":"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z"}],["path",{"d":"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3"}]],"moon":[["path",{"d":"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401"}]],"percent":[["line",{"x1":"19","x2":"5","y1":"5","y2":"19"}],["circle",{"cx":"6.5","cy":"6.5","r":"2.5"}],["circle",{"cx":"17.5","cy":"17.5","r":"2.5"}]],"phone":[["path",{"d":"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384"}]],"pill":[["path",{"d":"m10.5 20.5 10-10a4.95 4.95 0 1 0-7-7l-10 10a4.95 4.95 0 1 0 7 7Z"}],["path",{"d":"m8.5 8.5 7 7"}]],"play":[["path",{"d":"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z"}]],"quote":[["path",{"d":"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z"}],["path",{"d":"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z"}]],"scissors":[["circle",{"cx":"6","cy":"6","r":"3"}],["path",{"d":"M8.12 8.12 12 12"}],["path",{"d":"M20 4 8.12 15.88"}],["circle",{"cx":"6","cy":"18","r":"3"}],["path",{"d":"M14.8 14.8 20 20"}]],"send":[["path",{"d":"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z"}],["path",{"d":"m21.854 2.147-10.94 10.939"}]],"share-2":[["circle",{"cx":"18","cy":"5","r":"3"}],["circle",{"cx":"6","cy":"12","r":"3"}],["circle",{"cx":"18","cy":"19","r":"3"}],["line",{"x1":"8.59","x2":"15.42","y1":"13.51","y2":"17.49"}],["line",{"x1":"15.41","x2":"8.59","y1":"6.51","y2":"10.49"}]],"shield-check":[["path",{"d":"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"}],["path",{"d":"m9 12 2 2 4-4"}]],"sparkles":[["path",{"d":"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z"}],["path",{"d":"M20 2v4"}],["path",{"d":"M22 4h-4"}],["circle",{"cx":"4","cy":"20","r":"2"}]],"star":[["path",{"d":"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z"}]],"stethoscope":[["path",{"d":"M11 2v2"}],["path",{"d":"M5 2v2"}],["path",{"d":"M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1"}],["path",{"d":"M8 15a6 6 0 0 0 12 0v-3"}],["circle",{"cx":"20","cy":"10","r":"2"}]],"sun":[["circle",{"cx":"12","cy":"12","r":"4"}],["path",{"d":"M12 2v2"}],["path",{"d":"M12 20v2"}],["path",{"d":"m4.93 4.93 1.41 1.41"}],["path",{"d":"m17.66 17.66 1.41 1.41"}],["path",{"d":"M2 12h2"}],["path",{"d":"M20 12h2"}],["path",{"d":"m6.34 17.66-1.41 1.41"}],["path",{"d":"m19.07 4.93-1.41 1.41"}]],"syringe":[["path",{"d":"m18 2 4 4"}],["path",{"d":"m17 7 3-3"}],["path",{"d":"M19 9 8.7 19.3c-1 1-2.5 1-3.4 0l-.6-.6c-1-1-1-2.5 0-3.4L15 5"}],["path",{"d":"m9 11 4 4"}],["path",{"d":"m5 19-3 3"}],["path",{"d":"m14 4 6 6"}]],"thumbs-up":[["path",{"d":"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z"}],["path",{"d":"M7 10v12"}]],"timer":[["line",{"x1":"10","x2":"14","y1":"2","y2":"2"}],["line",{"x1":"12","x2":"15","y1":"14","y2":"11"}],["circle",{"cx":"12","cy":"14","r":"8"}]],"user":[["path",{"d":"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}],["circle",{"cx":"12","cy":"7","r":"4"}]],"users":[["path",{"d":"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"}],["path",{"d":"M16 3.128a4 4 0 0 1 0 7.744"}],["path",{"d":"M22 21v-2a4 4 0 0 0-3-3.87"}],["circle",{"cx":"9","cy":"7","r":"4"}]],"video":[["path",{"d":"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5"}],["rect",{"x":"2","y":"6","width":"14","height":"12","rx":"2"}]],"wallet":[["path",{"d":"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1"}],["path",{"d":"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4"}]],"wifi":[["path",{"d":"M12 20h.01"}],["path",{"d":"M2 8.82a15 15 0 0 1 20 0"}],["path",{"d":"M5 12.859a10 10 0 0 1 14 0"}],["path",{"d":"M8.5 16.429a5 5 0 0 1 7 0"}]],"at-sign":[["circle",{"cx":"12","cy":"12","r":"4"}],["path",{"d":"M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8"}]]}`),ow=/* @__PURE__ */ new Set([`path`,`circle`,`rect`,`line`]),sw=e=>Array.isArray(e)&&e.length===2&&typeof e[0]==`string`&&ow.has(e[0])&&typeof e[1]==`object`&&e[1]!==null&&Object.values(e[1]).every(e=>typeof e==`string`);function cw(e){let t=typeof e==`object`&&e?Object.entries(e):[];return new Map(t.flatMap(([e,t])=>Array.isArray(t)&&t.every(sw)?[[e,t]]:[]))}var lw=cw(aw),uw=[...lw.keys()],dw=[`width`,`height`,`stroke-width`],fw=/* @__PURE__ */ D({__name:`CatalogIcon`,props:{name:{},size:{default:18},stroke:{default:2}},setup(e){let t=e,n=R(()=>lw.get(t.name)??[]);return(t,r)=>(j(),M(`svg`,{width:e.size,height:e.size,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":e.stroke,"stroke-linecap":`round`,"stroke-linejoin":`round`,"aria-hidden":`true`},[(j(!0),M(A,null,k(n.value,(e,t)=>(j(),N(Pr(e[0]),ya({key:t},{ref_for:!0},e[1]),null,16))),128))],8,dw))}}),pw={heading:wx,text:xx,image:Xb,button:ox,divider:ix,video:Dx,shape:vx,icon:gx,navbar:rx,box:Hb,gallery:Zb,slider:Yb,input:Sx,textarea:lx,select:ex,checkbox:_x},mw=/* @__PURE__ */ D({__name:`ElementIcon`,props:{element:{},size:{default:14}},setup(e){let t=e,n=Y(),r=R(()=>n.kindOf(t.element));return(t,n)=>r.value.kind===`core`?(j(),N(Pr(T(pw)[r.value.element.type]),{key:0,size:e.size,"aria-hidden":`true`},null,8,[`size`])):r.value.kind===`app`?(j(),N(fw,{key:1,name:r.value.spec.icon,size:e.size},null,8,[`name`,`size`])):(j(),N(T(Vb),{key:2,size:e.size,"aria-hidden":`true`},null,8,[`size`]))}}),hw={class:`lze-sidebar lze-left`},gw={class:`lze-tabs`,role:`tablist`},_w=[`aria-selected`,`onClick`],vw={key:0,class:`lze-scroll lze-stack`,role:`tabpanel`},yw={class:`lze-palette`},bw=[`title`,`onPointerdown`,`onClick`],xw={class:`lze-group-title`},Sw={class:`lze-palette`},Cw=[`title`,`onPointerdown`,`onClick`],ww={class:`lze-hint`},Tw={class:`lze-group-title`},Ew={class:`lze-palette`},Dw=[`title`,`onPointerdown`,`onClick`],Ow={class:`lze-hint`},kw={key:1,class:`lze-scroll lze-stack`,role:`tabpanel`},Aw={class:`lze-hint`},jw={class:`lze-group-label`},Mw=[`onClick`],Nw={key:2,class:`lze-scroll`,role:`tabpanel`},Pw={class:`lze-heading lze-pad`},Fw={class:`lze-muted`},Iw=[`data-selected`],Lw=[`aria-label`,`onClick`],Rw=[`onClick`],zw={class:`lze-muted`},Bw={key:0,class:`lze-layer-actions`},Vw=[`aria-label`,`disabled`,`onClick`],Hw=[`aria-label`,`disabled`,`onClick`],Uw={class:`lze-layer-children`},Ww=[`data-selected`],Gw=[`onClick`],Kw=[`data-locked`,`title`,`aria-label`,`onClick`],qw={key:0,class:`lze-layer-children`},Jw=[`data-selected`],Yw=[`onClick`],Xw={key:0,class:`lze-hint lze-pad`},Zw={key:3,class:`lze-scroll`,role:`tabpanel`},Qw={class:`lze-heading lze-pad`},$w={class:`lze-hint`},eT={class:`lze-stack lze-pad`},tT=[`data-active`],nT={class:`lze-row`},rT=[`onUpdate:modelValue`,`aria-label`],iT=[`aria-label`,`onClick`],aT={class:`lze-heading`},oT={class:`lze-muted`},sT=[`onClick`],cT={key:0,class:`lze-hint`},lT={key:4,class:`lze-scroll`,role:`tabpanel`},uT={class:`lze-heading lze-pad`},dT={class:`lze-hint`},fT={class:`lze-media-grid lze-pad`},pT=[`title`,`onPointerdown`,`onClick`],mT=[`src`,`alt`],hT={key:0,class:`lze-hint`},gT=/* @__PURE__ */ D({__name:`LeftSidebar`,props:{dropPoint:{type:Function}},setup(e){let t=e,n=Y(),r=n.t,i=/* @__PURE__ */ w(`elements`),a=[{key:`elements`,label:`tabs.elements`,icon:ux},{key:`blocks`,label:`tabs.blocks`,icon:$b},{key:`layers`,label:`tabs.layers`,icon:Qb},{key:`modals`,label:`tabs.modals`,icon:sx},{key:`media`,label:`tabs.media`,icon:Xb}],o=ls.filter(e=>yy[e].group===`content`),s=ls.filter(e=>yy[e].group===`form`),c=/* @__PURE__ */ w(null);function l(e,t,n,r){e.button===0&&(c.value={insertable:t,src:r,label:n,x:e.clientX,y:e.clientY,moved:!1},e.currentTarget.setPointerCapture(e.pointerId))}function u(e){let t=c.value;if(t){let n=t.moved||Math.hypot(e.clientX-t.x,e.clientY-t.y)>4;c.value={...t,x:e.clientX,y:e.clientY,moved:n}}}function d(e){let r=c.value;if(c.value=null,!r)return;let i=r.moved?t.dropPoint(e.clientX,e.clientY):null;(!r.moved||i)&&n.addElement(r.insertable,i??void 0,r.src)}function f(e,t,r){e.detail===0&&n.addElement(t,void 0,r)}let p=e=>r(yy[e].label),m=/* @__PURE__ */ w([]);function h(e){m.value=m.value.includes(e)?m.value.filter(t=>t!==e):[...m.value,e]}let g=R(()=>n.state.selection.kind===`elements`?n.state.selection.ids:[]),_=e=>n.state.selection.kind===`canvas`&&n.state.selection.canvas===e;function v(e){let t=n.kindOf(e);return wy(e,t.kind===`core`?r(t.spec.label):t.kind===`app`?n.i18n.localized(t.spec.label):r(`type.unknown`))}function ee(e){e.locked=!e.locked,n.commit()}let y=R(()=>n.state.draft.modals??[]);return(e,t)=>(j(),M(`aside`,hw,[P(`div`,gw,[(j(),M(A,null,k(a,e=>P(`button`,{key:e.key,type:`button`,role:`tab`,"aria-selected":i.value===e.key,onClick:t=>i.value=e.key},[(j(),N(Pr(e.icon),{size:16,"aria-hidden":`true`})),I(S(T(r)(e.label)),1)],8,_w)),64))]),i.value===`elements`?(j(),M(`div`,vw,[P(`div`,yw,[(j(!0),M(A,null,k(T(o),e=>(j(),M(`button`,{key:e,type:`button`,class:`lze-palette-item`,title:T(r)(`elements.addHint`),onPointerdown:t=>l(t,{kind:`core`,type:e},p(e)),onClick:t=>f(t,{kind:`core`,type:e}),onPointermove:u,onPointerup:d,onPointercancel:t[0]||=e=>c.value=null},[(j(),N(Pr(T(pw)[e]),{size:16,"aria-hidden":`true`})),I(S(p(e)),1)],40,bw))),128))]),T(n).catalog.value.elements.length?(j(),M(A,{key:0},[P(`p`,xw,S(T(r)(`elements.app`)),1),P(`div`,Sw,[(j(!0),M(A,null,k(T(n).catalog.value.elements,e=>(j(),M(`button`,{key:e.type,type:`button`,class:`lze-palette-item`,title:T(r)(`elements.addHint`),onPointerdown:t=>l(t,{kind:`app`,spec:e},T(n).i18n.localized(e.label)),onClick:t=>f(t,{kind:`app`,spec:e}),onPointermove:u,onPointerup:d,onPointercancel:t[1]||=e=>c.value=null},[F(fw,{name:e.icon,size:16},null,8,[`name`]),I(S(T(n).i18n.localized(e.label)),1)],40,Cw))),128))]),P(`p`,ww,S(T(r)(`elements.appHint`)),1)],64)):L(``,!0),P(`p`,Tw,S(T(r)(`elements.form`)),1),P(`div`,Ew,[(j(!0),M(A,null,k(T(s),e=>(j(),M(`button`,{key:e,type:`button`,class:`lze-palette-item`,title:T(r)(`elements.addHint`),onPointerdown:t=>l(t,{kind:`core`,type:e},p(e)),onClick:t=>f(t,{kind:`core`,type:e}),onPointermove:u,onPointerup:d,onPointercancel:t[2]||=e=>c.value=null},[(j(),N(Pr(T(pw)[e]),{size:16,"aria-hidden":`true`})),I(S(p(e)),1)],40,Dw))),128))]),P(`p`,Ow,S(T(r)(`elements.formHint`)),1)])):i.value===`blocks`?(j(),M(`div`,kw,[P(`p`,Aw,S(T(r)(`elements.sectionsHint`)),1),(j(!0),M(A,null,k(T(Vy),e=>(j(),M(`div`,{key:e.key,class:`lze-list`},[P(`p`,jw,S(T(r)(e.name)),1),(j(!0),M(A,null,k(T(By).filter(t=>t.group===e.key),e=>(j(),M(`button`,{key:e.key,type:`button`,class:`lze-list-item`,onClick:t=>T(n).addSection(T(Wy)(e.key))},S(T(r)(e.name)),9,Mw))),128))]))),128))])):i.value===`layers`?(j(),M(`div`,Nw,[P(`div`,Pw,[P(`span`,Fw,S(T(n).activeModal.value?T(r)(`layers.modal`,{title:T(n).activeModal.value.title}):T(r)(`layers.count`,{n:T(n).state.draft.sections.length})),1),T(n).activeModal.value?L(``,!0):(j(),M(`button`,{key:0,type:`button`,class:`lze-btn`,"data-variant":`ghost`,onClick:t[3]||=e=>T(n).addSection()},[F(T(ux),{size:14,"aria-hidden":`true`}),I(S(T(r)(`common.new`)),1)]))]),(j(!0),M(A,null,k(T(n).canvases.value,(e,t)=>(j(),M(`div`,{key:e.id,class:`lze-layer-group`},[P(`div`,{class:`lze-layer-row`,"data-selected":_(e.id)},[P(`button`,{type:`button`,class:`lze-icon-btn`,"aria-label":m.value.includes(e.id)?T(r)(`layers.expand`):T(r)(`layers.collapse`),onClick:t=>h(e.id)},[F(T(zb),{size:14,style:x({transform:m.value.includes(e.id)?`rotate(-90deg)`:void 0}),"aria-hidden":`true`},null,8,[`style`])],8,Lw),P(`button`,{type:`button`,class:`lze-layer-name`,onClick:t=>T(n).selectCanvas(e.id)},[F(T(Jb),{size:14,"aria-hidden":`true`}),P(`span`,null,S(T(fs)(e)?e.title:T(r)(`layers.section`,{n:t+1})),1),P(`span`,zw,S(e.elements.length),1)],8,Rw),T(fs)(e)?L(``,!0):(j(),M(`span`,Bw,[P(`button`,{type:`button`,class:`lze-icon-btn`,"aria-label":T(r)(`layers.up`),disabled:t===0,onClick:e=>T(n).moveSection(t,-1)},[F(T(Bb),{size:14,"aria-hidden":`true`})],8,Vw),P(`button`,{type:`button`,class:`lze-icon-btn`,"aria-label":T(r)(`layers.down`),disabled:t===T(n).canvases.value.length-1,onClick:e=>T(n).moveSection(t,1)},[F(T(zb),{size:14,"aria-hidden":`true`})],8,Hw)]))],8,Iw),Gn(P(`div`,Uw,[(j(!0),M(A,null,k(e.elements,t=>(j(),M(A,{key:t.id},[P(`div`,{class:`lze-layer-row`,"data-selected":g.value.includes(t.id)},[P(`button`,{type:`button`,class:`lze-layer-name`,onClick:r=>T(n).select(e.id,t.id,r.shiftKey)},[F(mw,{element:t},null,8,[`element`]),P(`span`,null,S(v(t)),1)],8,Gw),P(`button`,{type:`button`,class:`lze-icon-btn lze-lock-toggle`,"data-locked":t.locked===!0,title:t.locked?T(r)(`layers.unlock`):T(r)(`layers.lock`),"aria-label":t.locked?T(r)(`layers.unlock`):T(r)(`layers.lock`),onClick:e=>ee(t)},[t.locked?(j(),N(T(nx),{key:0,size:12,"aria-hidden":`true`})):(j(),N(T(tx),{key:1,size:12,"aria-hidden":`true`}))],8,Kw)],8,Ww),t.children?.length?(j(),M(`div`,qw,[(j(!0),M(A,null,k(t.children,t=>(j(),M(`div`,{key:t.id,class:`lze-layer-row`,"data-selected":g.value.includes(t.id)},[P(`button`,{type:`button`,class:`lze-layer-name`,onClick:r=>T(n).select(e.id,t.id,r.shiftKey)},[F(mw,{element:t},null,8,[`element`]),P(`span`,null,S(v(t)),1)],8,Yw)],8,Jw))),128))])):L(``,!0)],64))),128)),e.elements.length===0?(j(),M(`p`,Xw,S(T(r)(`layers.empty`)),1)):L(``,!0)],512),[[to,!m.value.includes(e.id)]])]))),128))])):i.value===`modals`?(j(),M(`div`,Zw,[P(`div`,Qw,[P(`span`,$w,S(T(r)(`modals.hint`)),1),P(`button`,{type:`button`,class:`lze-btn`,"data-variant":`ghost`,onClick:t[4]||=e=>T(n).addModal()},[F(T(ux),{size:14,"aria-hidden":`true`}),I(S(T(r)(`common.new`)),1)])]),P(`div`,eT,[(j(!0),M(A,null,k(y.value,e=>(j(),M(`div`,{key:e.id,class:`lze-card`,"data-active":T(n).state.view.kind===`modal`&&T(n).state.view.id===e.id},[P(`div`,nT,[Gn(P(`input`,{"onUpdate:modelValue":t=>e.title=t,class:`lze-input`,maxlength:`120`,"aria-label":T(r)(`modals.titleLabel`),onChange:t[5]||=e=>T(n).commit()},null,40,rT),[[Vo,e.title]]),P(`button`,{type:`button`,class:`lze-icon-btn`,"data-tone":`danger`,"aria-label":T(r)(`modals.delete`),onClick:t=>T(n).removeModal(e.id)},[F(T(Cx),{size:14,"aria-hidden":`true`})],8,iT)]),P(`div`,aT,[P(`span`,oT,S(T(r)(`modals.elements`,{n:e.elements.length})),1),P(`button`,{type:`button`,class:`lze-btn`,onClick:t=>T(n).openModal(T(n).state.view.kind===`modal`&&T(n).state.view.id===e.id?null:e.id)},S(T(n).state.view.kind===`modal`&&T(n).state.view.id===e.id?T(r)(`common.close`):T(r)(`modals.edit`)),9,sT)])],8,tT))),128)),y.value.length===0?(j(),M(`p`,cT,S(T(r)(`modals.empty`)),1)):L(``,!0)])])):(j(),M(`div`,lT,[P(`div`,uT,[P(`span`,dT,S(T(r)(`media.hint`)),1),P(`button`,{type:`button`,class:`lze-btn`,"data-variant":`ghost`,onClick:t[6]||=e=>T(n).openLibrary()},[F(T(ux),{size:14,"aria-hidden":`true`}),I(S(T(r)(`media.upload`)),1)])]),P(`div`,fT,[(j(!0),M(A,null,k(T(n).state.workspace.assets,e=>(j(),M(`button`,{key:e.id,type:`button`,class:`lze-media-item`,title:e.name,onPointerdown:t=>l(t,{kind:`core`,type:`image`},e.name,e.ref),onClick:t=>f(t,{kind:`core`,type:`image`},e.ref),onPointermove:u,onPointerup:d,onPointercancel:t[7]||=e=>c.value=null},[P(`img`,{src:e.thumb,alt:e.name,loading:`lazy`,draggable:`false`},null,8,mT)],40,pT))),128)),T(n).state.workspace.assets.length===0?(j(),M(`p`,hT,S(T(r)(`media.empty`)),1)):L(``,!0)])])),c.value?.moved?(j(),M(`p`,{key:5,class:`lze-drag-ghost`,style:x({left:`${c.value.x+12}px`,top:`${c.value.y+12}px`})},S(c.value.label),5)):L(``,!0)]))}}),_T=/* @__PURE__ */ D({__name:`AppContent`,props:{element:{},spec:{}},setup(e){let t=e,n=Y();function r(e,n){t.element.props={...t.element.props,[e]:n}}return(t,i)=>(j(!0),M(A,null,k(e.spec.fields,t=>(j(),N(hC,{key:t.key,field:t,"model-value":e.element.props[t.key],"onUpdate:modelValue":e=>r(t.key,e),onCommit:i[0]||=e=>T(n).commit()},null,8,[`field`,`model-value`,`onUpdate:modelValue`]))),128))}}),vT=/* @__PURE__ */ D({__name:`ButtonContent`,props:{element:{}},setup(e){let t=Y(),n=t.t,r=O();return(i,a)=>(j(),M(A,null,[F(Q,{id:T(r),label:T(n)(`el.buttonLabel`)},{default:E(()=>[F(BS,{id:T(r),modelValue:e.element.props.label,"onUpdate:modelValue":a[0]||=t=>e.element.props.label=t,maxlength:80,onCommit:a[1]||=e=>T(t).commit()},null,8,[`id`,`modelValue`])]),_:1},8,[`id`,`label`]),F(Q,{label:T(n)(`el.action`)},{default:E(()=>[F(pC,{modelValue:e.element.props.action,"onUpdate:modelValue":a[2]||=t=>e.element.props.action=t,label:T(n)(`el.action`),onCommit:a[3]||=e=>T(t).commit()},null,8,[`modelValue`,`label`])]),_:1},8,[`label`])],64))}}),yT=30,bT=/* @__PURE__ */ D({__name:`FormFieldContent`,props:{element:{}},setup(e){let t=e,n=Y(),r=n.t,i={label:O(),type:O(),options:O(),placeholder:O()},a=[`text`,`email`,`tel`,`number`,`date`].map(e=>({value:e,label:r(`el.inputType.${e}`)})),o=/* @__PURE__ */ w((t.element.props.options??[]).join(`
535
+ `;function mb(e){return{catalog:e.catalog.value,site:e.site.value,assets:e.state.workspace.assets,slug:e.state.page?.slug??``,publicUrl:e.state.workspace.publicUrl,preview:t=>e.previews.get(t),labels:{loading:e.t(`canvas.loadingPreview`),failed:e.t(`canvas.previewFailed`)}}}async function hb(e,t,n){let r;try{r=E_(e,t.catalog)}catch(e){if(e instanceof C_)return{ok:!1,issues:e.issues};throw e}return{ok:!0,page:await $v({document:r,catalog:t.catalog,site:t.site,page:{slug:t.slug,seo:{},url:new URL(t.slug,t.publicUrl??`https://example.invalid/`).href},base:``,mode:n,host:{media:e=>{let n=t.assets.find(t=>t.ref===e);return n?{url:n.url,thumb:n.thumb,width:n.width,height:n.height}:null},action:()=>`#`,appElement:e=>{let n=t.preview(e);return n.status===`ready`?Z_(n.html):Z_(`<div class="lze-app-placeholder" data-status="${n.status}">${_b(n.status===`loading`?t.labels.loading:t.labels.failed)}</div>`)},form:null}})}}var gb={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#039;`},_b=e=>e.replace(/[&<>"']/g,e=>gb[e]??e),vb=e=>e.replace(/[^A-Za-z0-9_-]/g,``)||`x`;function yb(e){let t=e.contentDocument;if(!t)throw Error(`The canvas iframe has no document`);let n=t;n.open(),n.write(`<!DOCTYPE html><html><head><meta charset="utf-8"></head><body class="lz-page"></body></html>`),n.close();let r=n.defaultView?.CSSStyleSheet??CSSStyleSheet,i=e=>{let t=new r;return t.replaceSync(e),t},a=i(``);n.adoptedStyleSheets=[i(fb),a,i(pb)];let o=n.createElement(`link`);o.rel=`stylesheet`,n.head.append(o);let s=n.body,c=/* @__PURE__ */ new Map,l={canvases:/* @__PURE__ */ new Map,elements:/* @__PURE__ */ new Map};function u(e,t,n,r){a.replaceSync(t),o.href!==r.fontsHref&&(o.href=r.fontsHref),s.style.setProperty(`--lze-empty-image`,JSON.stringify(r.emptyImage)),s.style.setProperty(`--lze-empty-video`,JSON.stringify(r.emptyVideo)),d(e),l=p(n),s.toggleAttribute(`data-lze-modal`,r.modal!==null),s.querySelectorAll(`dialog.lz-modal`).forEach(e=>{e.toggleAttribute(`data-lze-open`,r.modal!==null&&e.id===`m-${vb(r.modal)}`)}),s.querySelectorAll(`.lz-stack`).forEach(e=>{let t=f(e.id,n),i=t===null?0:r.panels[t]??0;e.querySelectorAll(`:scope > .lz-stack-panels > .lz-stack-panel`).forEach((e,t)=>e.toggleAttribute(`data-on`,t===i)),e.querySelectorAll(`:scope > .lz-stack-nav > button`).forEach((e,t)=>e.setAttribute(`aria-pressed`,String(t===i)))})}function d(e){let t=n.createElement(`template`);t.innerHTML=e;let r=new Map([...s.children].map(e=>[e.id,e])),i=/* @__PURE__ */ new Map,a=[...t.content.children].map(e=>{let t=e.outerHTML,a=r.get(e.id),o=a!==void 0&&e.id!==``&&c.get(e.id)===t;return i.set(e.id,t),o?a:n.importNode(e,!0)});for(a.forEach((e,t)=>{s.children[t]!==e&&s.insertBefore(e,s.children[t]??null)});s.children.length>a.length;)s.lastElementChild?.remove();s.querySelectorAll(`.lz-el[style]`).forEach(e=>e.removeAttribute(`style`)),c=i}function f(e,t){return t.sections.find(t=>t.group?.id&&`g-${vb(t.group.id)}`===e)?.group?.id??null}function p(e){let t={canvases:/* @__PURE__ */ new Map,elements:/* @__PURE__ */ new Map};for(let n of ps(e)){t.canvases.set(vb(n.id),n.id);for(let e of n.elements)t.elements.set(vb(e.id),{canvas:n.id,element:e.id})}return t}let m=e=>n.getElementById(`e-${vb(e)}`),h=e=>n.getElementById(`s-${vb(e)}`)??n.getElementById(`m-${vb(e)}`),g=e=>h(e)?.querySelector(`.lz-frame`)??null;function _(e){let t=bb(e)?e.nodeType===1?e:e.parentElement:null,n=t?.closest(`.lz-el`),r=n?l.elements.get(n.id.slice(2)):void 0;if(n&&r)return{canvas:r.canvas,element:r.element,node:n};let i=t?.closest(`.lz-section, dialog.lz-modal`),a=i?l.canvases.get(i.id.slice(2)):void 0;return i&&a?{canvas:a,element:null,node:i}:null}let v=e=>{let t=e.getBoundingClientRect();return{x:t.left+n.documentElement.scrollLeft,y:t.top+n.documentElement.scrollTop,w:t.width,h:t.height}};function ee(e,t){let n=/* @__PURE__ */ new Map,r=/* @__PURE__ */ new Map;for(let i of ps(e)){let e=h(i.id),a=g(i.id);if(!e||!a||a.offsetParent===null)continue;let o=v(a),s=t===`desktop`?i.height.desktop:i.height.mobile;n.set(i.id,{frame:o,unit:a.hasAttribute(`data-stack`)&&t===`mobile`?o.w/390:o.h/s,outer:v(e)});for(let e of i.elements){let t=m(e.id);t&&t.offsetParent!==null&&r.set(e.id,{x:o.x+t.offsetLeft,y:o.y+t.offsetTop,w:t.offsetWidth,h:t.offsetHeight})}}return{canvases:n,elements:r}}function y(e,t,n){let r=m(e),[i,a,o,s]=t===`desktop`?[`--x`,`--y`,`--w`,`--h`]:[`--mx`,`--my`,`--mw`,`--mh`];r?.style.setProperty(i,String(n.x)),r?.style.setProperty(a,String(n.y)),r?.style.setProperty(o,String(n.w)),r?.style.setProperty(s,String(n.h))}return{doc:n,update:u,measure:ee,hit:_,preview:y,previewVar:(e,t,n)=>m(e)?.style.setProperty(t,String(n)),contentHeight:()=>n.documentElement.scrollHeight}}var bb=e=>e!==null&&typeof e.nodeType==`number`,xb={class:`lze-context-label`},Sb={class:`lze-context-row`},Cb=[`title`,`aria-label`,`onClick`],wb=[`data-align`],Tb=/* @__PURE__ */ D({__name:`ContextMenu`,props:{at:{}},emits:[`close`],setup(e,{emit:t}){let n=e,r=t,i=Y(),a=i.t,o=/* @__PURE__ */ w(),s=/* @__PURE__ */ w({...n.at}),c=R(()=>i.selectedElements.value),l=R(()=>c.value.length>1),u=R(()=>c.value.some(e=>e.group)),d=R(()=>c.value.some(e=>e.locked));function f(e){e(),r(`close`)}async function p(){await Nn();let e=o.value?.getBoundingClientRect();e&&(s.value={x:Math.min(n.at.x,window.innerWidth-e.width-8),y:Math.min(n.at.y,window.innerHeight-e.height-8)})}$n(()=>n.at,p,{immediate:!0});function m(e){o.value?.contains(e.target)||r(`close`)}let h=e=>e.key===`Escape`&&r(`close`);return Cr(()=>{window.addEventListener(`pointerdown`,m,!0),window.addEventListener(`keydown`,h),window.addEventListener(`resize`,()=>r(`close`)),o.value?.focus()}),Er(()=>{window.removeEventListener(`pointerdown`,m,!0),window.removeEventListener(`keydown`,h)}),(e,t)=>(j(),M(`div`,{ref_key:`menu`,ref:o,class:`lze-context`,role:`menu`,tabindex:`-1`,style:x({left:`${s.value.x}px`,top:`${s.value.y}px`}),onContextmenu:t[14]||=ts(()=>{},[`prevent`])},[c.value.length?(j(),M(A,{key:0},[P(`button`,{type:`button`,role:`menuitem`,onClick:t[0]||=e=>f(T(i).copySelected)},[I(S(T(a)(`menu.copy`)),1),t[15]||=P(`kbd`,null,`⌘C`,-1)]),P(`button`,{type:`button`,role:`menuitem`,onClick:t[1]||=e=>f(T(i).duplicateSelected)},[I(S(T(a)(`common.duplicate`)),1),t[16]||=P(`kbd`,null,`⌘D`,-1)]),P(`button`,{type:`button`,role:`menuitem`,onClick:t[2]||=e=>f(T(i).paste)},[I(S(T(a)(`menu.paste`)),1),t[17]||=P(`kbd`,null,`⌘V`,-1)]),t[21]||=P(`hr`,null,null,-1),P(`button`,{type:`button`,role:`menuitem`,onClick:t[3]||=e=>f(()=>T(i).layer(`front`))},S(T(a)(`canvas.front`)),1),P(`button`,{type:`button`,role:`menuitem`,onClick:t[4]||=e=>f(()=>T(i).layer(`back`))},S(T(a)(`canvas.back`)),1),t[22]||=P(`hr`,null,null,-1),l.value?(j(),M(`button`,{key:0,type:`button`,role:`menuitem`,onClick:t[5]||=e=>f(T(i).groupSelected)},[I(S(T(a)(`multi.group`)),1),t[18]||=P(`kbd`,null,`⌘G`,-1)])):L(``,!0),u.value?(j(),M(`button`,{key:1,type:`button`,role:`menuitem`,onClick:t[6]||=e=>f(T(i).ungroupSelected)},S(T(a)(`multi.ungroup`)),1)):L(``,!0),P(`button`,{type:`button`,role:`menuitem`,onClick:t[7]||=e=>f(T(i).toggleLock)},S(d.value?T(a)(`menu.unlock`):T(a)(`menu.lock`)),1),l.value?(j(),M(A,{key:2},[t[19]||=P(`hr`,null,null,-1),P(`p`,xb,S(T(a)(`multi.align`)),1),P(`div`,Sb,[(j(!0),M(A,null,k(T(Es),e=>(j(),M(`button`,{key:e,type:`button`,role:`menuitem`,title:T(a)(`align.${e}`),"aria-label":T(a)(`align.${e}`),onClick:t=>f(()=>T(i).align(e))},[P(`span`,{class:`lze-context-align`,"data-align":e,"aria-hidden":`true`},null,8,wb)],8,Cb))),128))]),c.value.length>2?(j(),M(A,{key:0},[P(`button`,{type:`button`,role:`menuitem`,onClick:t[8]||=e=>f(()=>T(i).distributeSelected(`x`))},S(T(a)(`multi.distributeX`)),1),P(`button`,{type:`button`,role:`menuitem`,onClick:t[9]||=e=>f(()=>T(i).distributeSelected(`y`))},S(T(a)(`multi.distributeY`)),1)],64)):L(``,!0)],64)):L(``,!0),t[23]||=P(`hr`,null,null,-1),P(`button`,{type:`button`,role:`menuitem`,class:`lze-context-danger`,onClick:t[10]||=e=>f(T(i).removeSelected)},[I(S(T(a)(`common.delete`)),1),t[20]||=P(`kbd`,null,`⌫`,-1)])],64)):(j(),M(A,{key:1},[P(`button`,{type:`button`,role:`menuitem`,onClick:t[11]||=e=>f(T(i).paste)},[I(S(T(a)(`menu.paste`)),1),t[24]||=P(`kbd`,null,`⌘V`,-1)]),P(`button`,{type:`button`,role:`menuitem`,onClick:t[12]||=e=>f(()=>T(i).state.zoom=null)},S(T(a)(`zoom.fit`)),1),P(`button`,{type:`button`,role:`menuitem`,onClick:t[13]||=e=>f(()=>T(i).state.zoom=1)},S(T(a)(`zoom.actual`)),1)],64))],36))}}),Eb={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`},Db=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim();function Ob(e){return e!=null}function kb(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??Eb.width,a=e.size??e.height??Eb.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?Db(...c):Db(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??Eb[`stroke-width`])*Number(e.size??e.width??Eb.width)/Number(t.size??t.width??Eb.width):t.strokeWidth??Eb[`stroke-width`];return[`svg`,{...Object.entries(Eb).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&Ob(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&Ob(t.width)&&{[r(`width`)]:t.width},...`height`in t&&Ob(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}var Ab=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},jb=e=>e===``,Mb=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),Nb=/* @__PURE__ */ Symbol(`lucide-icons`);function Pb(){return Jn(Nb,{})}var Fb=({name:e,iconNode:t,"icon-node":n,icon:r={name:e&&Mb(e),node:t??n??[],size:24,aliases:[]},absoluteStrokeWidth:i,"absolute-stroke-width":a,nonScalingStroke:o,"non-scaling-stroke":s,strokeWidth:c,"stroke-width":l,size:u,width:d=u,height:f=u,color:p,...m},{slots:h})=>{let{size:g,color:_,strokeWidth:v=2,absoluteStrokeWidth:ee=!1,nonScalingStroke:y=!1,class:te=``}=Pb(),ne=jb(i)||jb(a)||i===!0||a===!0||ee===!0,re=jb(o)||jb(s)||o===!0||s===!0||y===!0;delete m.class;let ie=h.default?.(),[,ae,oe=[]]=kb(r,{color:p??_,width:d??u??g,height:f??u??g,strokeWidth:c??l??v,absoluteStrokeWidth:ne,nonScalingStroke:re,className:te,hasA11yProp:ie!=null&&ie.length>0||Ab(m),attributes:m});return Va(`svg`,ae,[...oe.map(([e,t])=>Va(e,t)),...ie??[]])};function X(e,t=[]){let n=typeof e==`string`?{name:e,node:t}:e;return(e,{slots:t})=>Va(Fb,{...e,icon:n},t.default?{default:t.default}:void 0)}var Ib=X({name:`align-center-horizontal`,size:24,node:[[`path`,{d:`M2 12h20`,key:`9i4pu4`}],[`path`,{d:`M10 16v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-4`,key:`11f1s0`}],[`path`,{d:`M10 8V4a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v4`,key:`t14dx9`}],[`path`,{d:`M20 16v1a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2v-1`,key:`1w07xs`}],[`path`,{d:`M14 8V7c0-1.1.9-2 2-2h2a2 2 0 0 1 2 2v1`,key:`1apec2`}]]}),Lb=X({name:`align-center-vertical`,size:24,node:[[`path`,{d:`M12 2v20`,key:`t6zp3m`}],[`path`,{d:`M8 10H4a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h4`,key:`14d6g8`}],[`path`,{d:`M16 10h4a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-4`,key:`1e2lrw`}],[`path`,{d:`M8 20H7a2 2 0 0 1-2-2v-2c0-1.1.9-2 2-2h1`,key:`1fkdwx`}],[`path`,{d:`M16 14h1a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-1`,key:`1euafb`}]]}),Rb=X({name:`align-end-horizontal`,size:24,node:[[`rect`,{width:`6`,height:`16`,x:`4`,y:`2`,rx:`2`,key:`z5wdxg`}],[`rect`,{width:`6`,height:`9`,x:`14`,y:`9`,rx:`2`,key:`um7a8w`}],[`path`,{d:`M22 22H2`,key:`19qnx5`}]]}),zb=X({name:`align-end-vertical`,size:24,node:[[`rect`,{width:`16`,height:`6`,x:`2`,y:`4`,rx:`2`,key:`10wcwx`}],[`rect`,{width:`9`,height:`6`,x:`9`,y:`14`,rx:`2`,key:`4p5bwg`}],[`path`,{d:`M22 22V2`,key:`12ipfv`}]]}),Bb=X({name:`align-horizontal-distribute-center`,size:24,node:[[`rect`,{width:`6`,height:`14`,x:`4`,y:`5`,rx:`2`,key:`1wwnby`}],[`rect`,{width:`6`,height:`10`,x:`14`,y:`7`,rx:`2`,key:`1fe6j6`}],[`path`,{d:`M17 22v-5`,key:`4b6g73`}],[`path`,{d:`M17 7V2`,key:`hnrr36`}],[`path`,{d:`M7 22v-3`,key:`1r4jpn`}],[`path`,{d:`M7 5V2`,key:`liy1u9`}]]}),Vb=X({name:`align-start-horizontal`,size:24,node:[[`rect`,{width:`6`,height:`16`,x:`4`,y:`6`,rx:`2`,key:`1n4dg1`}],[`rect`,{width:`6`,height:`9`,x:`14`,y:`6`,rx:`2`,key:`17khns`}],[`path`,{d:`M22 2H2`,key:`fhrpnj`}]]}),Hb=X({name:`align-start-vertical`,size:24,node:[[`rect`,{width:`9`,height:`6`,x:`6`,y:`14`,rx:`2`,key:`lpm2y7`}],[`rect`,{width:`16`,height:`6`,x:`6`,y:`4`,rx:`2`,key:`rdj6ps`}],[`path`,{d:`M2 2v20`,key:`1ivd8o`}]]}),Ub=X({name:`align-vertical-distribute-center`,size:24,node:[[`path`,{d:`M22 17h-3`,key:`1lwga1`}],[`path`,{d:`M22 7h-5`,key:`o2endc`}],[`path`,{d:`M5 17H2`,key:`1gx9xc`}],[`path`,{d:`M7 7H2`,key:`6bq26l`}],[`rect`,{x:`5`,y:`14`,width:`14`,height:`6`,rx:`2`,key:`1qrzuf`}],[`rect`,{x:`7`,y:`4`,width:`10`,height:`6`,rx:`2`,key:`we8e9z`}]]}),Wb=X({name:`arrow-down-to-line`,size:24,node:[[`path`,{d:`M12 17V3`,key:`1cwfxf`}],[`path`,{d:`m6 11 6 6 6-6`,key:`12ii2o`}],[`path`,{d:`M19 21H5`,key:`150jfl`}]]}),Gb=X({name:`arrow-up-to-line`,size:24,node:[[`path`,{d:`M5 3h14`,key:`7usisc`}],[`path`,{d:`m18 13-6-6-6 6`,key:`1kf1n9`}],[`path`,{d:`M12 7v14`,key:`1akyts`}]]}),Kb=X({name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]}),qb=X({name:`chevron-up`,size:24,node:[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]}),Jb=X({name:`circle-question-mark`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`help-circle`,`circle-help`]}),Yb=X({name:`columns-3`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]],aliases:[`panels-left-right`]}),Xb=X({name:`copy-plus`,size:24,node:[[`line`,{x1:`15`,x2:`15`,y1:`12`,y2:`18`,key:`1p7wdc`}],[`line`,{x1:`12`,x2:`18`,y1:`15`,y2:`15`,key:`1nscbv`}],[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]}),Zb=X({name:`copy`,size:24,node:[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]}),Qb=X({name:`eye`,size:24,node:[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]}),$b=X({name:`fold-horizontal`,size:24,node:[[`path`,{d:`M2 12h6`,key:`1wqiqv`}],[`path`,{d:`M22 12h-6`,key:`1eg9hc`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 8v2`,key:`1woqiv`}],[`path`,{d:`M12 14v2`,key:`8jcxud`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m19 9-3 3 3 3`,key:`12ol22`}],[`path`,{d:`m5 15 3-3-3-3`,key:`1kdhjc`}]]}),ex=X({name:`fold-vertical`,size:24,node:[[`path`,{d:`M12 22v-6`,key:`6o8u61`}],[`path`,{d:`M12 8V2`,key:`1wkif3`}],[`path`,{d:`M4 12H2`,key:`rhcxmi`}],[`path`,{d:`M10 12H8`,key:`s88cx1`}],[`path`,{d:`M16 12h-2`,key:`10asgb`}],[`path`,{d:`M22 12h-2`,key:`14jgyd`}],[`path`,{d:`m15 19-3-3-3 3`,key:`e37ymu`}],[`path`,{d:`m15 5-3 3-3-3`,key:`19d6lf`}]]}),tx=X({name:`frame`,size:24,node:[[`line`,{x1:`22`,x2:`2`,y1:`6`,y2:`6`,key:`15w7dq`}],[`line`,{x1:`22`,x2:`2`,y1:`18`,y2:`18`,key:`1ip48p`}],[`line`,{x1:`6`,x2:`6`,y1:`2`,y2:`22`,key:`a2lnyx`}],[`line`,{x1:`18`,x2:`18`,y1:`2`,y2:`22`,key:`8vb6jd`}]]}),nx=X({name:`gallery-horizontal-end`,size:24,node:[[`path`,{d:`M2 7v10`,key:`a2pl2d`}],[`path`,{d:`M6 5v14`,key:`1kq3d7`}],[`rect`,{width:`12`,height:`18`,x:`10`,y:`3`,rx:`2`,key:`13i7bc`}]]}),rx=X({name:`image`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]}),ix=X({name:`images`,size:24,node:[[`path`,{d:`m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16`,key:`9kzy35`}],[`path`,{d:`M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2`,key:`1t0f0t`}],[`circle`,{cx:`13`,cy:`7`,r:`1`,fill:`currentColor`,key:`1obus6`}],[`rect`,{x:`8`,y:`2`,width:`14`,height:`14`,rx:`2`,key:`1gvhby`}]]}),ax=X({name:`layers`,size:24,node:[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]],aliases:[`layers-3`]}),ox=X({name:`layout-template`,size:24,node:[[`rect`,{width:`18`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`f1a2em`}],[`rect`,{width:`9`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`jqznyg`}],[`rect`,{width:`5`,height:`7`,x:`16`,y:`14`,rx:`1`,key:`q5h2i8`}]]}),sx=X({name:`list-filter`,size:24,node:[[`path`,{d:`M2 5h20`,key:`1fs1ex`}],[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`path`,{d:`M9 19h6`,key:`456am0`}]]}),cx=X({name:`lock-open`,size:24,node:[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 9.9-1`,key:`1mm8w8`}]],aliases:[`unlock`]}),lx=X({name:`lock`,size:24,node:[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]}),ux=X({name:`menu`,size:24,node:[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]}),dx=X({name:`minus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]}),fx=X({name:`monitor`,size:24,node:[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]}),px=X({name:`mouse-pointer-click`,size:24,node:[[`path`,{d:`M14 4.1 12 6`,key:`ita8i4`}],[`path`,{d:`m5.1 8-2.9-.8`,key:`1go3kf`}],[`path`,{d:`m6 12-1.9 2`,key:`mnht97`}],[`path`,{d:`M7.2 2.2 8 5.1`,key:`1cfko1`}],[`path`,{d:`M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z`,key:`s0h3yz`}]]}),mx=X({name:`panel-top`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}]]}),hx=X({name:`pencil-line`,size:24,node:[[`path`,{d:`M13 21h8`,key:`1jsn5i`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]}),gx=X({name:`pilcrow`,size:24,node:[[`path`,{d:`M13 4v16`,key:`8vvj80`}],[`path`,{d:`M17 4v16`,key:`7dpous`}],[`path`,{d:`M19 4H9.5a4.5 4.5 0 0 0 0 9H13`,key:`sh4n9v`}]]}),_x=X({name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]}),vx=X({name:`redo-2`,size:24,node:[[`path`,{d:`m15 14 5-5-5-5`,key:`12vg1m`}],[`path`,{d:`M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13`,key:`6uklza`}]]}),yx=X({name:`rotate-ccw-clock`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`path`,{d:`M12 7v5l4 2`,key:`1fdv2h`}]],aliases:[`history`]}),bx=X({name:`rotate-ccw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]}),xx=X({name:`rotate-cw`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8`,key:`1p45f6`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}]]}),Sx=X({name:`smartphone`,size:24,node:[[`rect`,{width:`14`,height:`20`,x:`5`,y:`2`,rx:`2`,ry:`2`,key:`1yt0o3`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}]]}),Cx=X({name:`sparkles`,size:24,node:[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]],aliases:[`stars`]}),wx=X({name:`square-check`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-square-2`]}),Tx=X({name:`square`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]}),Ex=X({name:`text-align-end`,size:24,node:[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M21 19H7`,key:`4cu937`}]],aliases:[`align-right`]}),Dx=X({name:`text-align-center`,size:24,node:[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M17 12H7`,key:`16if0g`}],[`path`,{d:`M19 19H5`,key:`vjpgq2`}]],aliases:[`align-center`]}),Ox=X({name:`text-align-start`,size:24,node:[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M17 19H3`,key:`z6ezky`}]],aliases:[`text`,`align-left`]}),kx=X({name:`text-cursor-input`,size:24,node:[[`path`,{d:`M12 20h-1a2 2 0 0 1-2-2 2 2 0 0 1-2 2H6`,key:`1528k5`}],[`path`,{d:`M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7`,key:`13ksps`}],[`path`,{d:`M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1`,key:`1n9rhb`}],[`path`,{d:`M6 4h1a2 2 0 0 1 2 2 2 2 0 0 1 2-2h1`,key:`1mj8rg`}],[`path`,{d:`M9 6v12`,key:`velyjx`}]]}),Ax=X({name:`trash`,size:24,node:[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]],aliases:[`trash-2`]}),jx=X({name:`type`,size:24,node:[[`path`,{d:`M12 4v16`,key:`1654pz`}],[`path`,{d:`M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2`,key:`e0r10z`}],[`path`,{d:`M9 20h6`,key:`s66wpe`}]]}),Mx=X({name:`undo-2`,size:24,node:[[`path`,{d:`M9 14 4 9l5-5`,key:`102s5s`}],[`path`,{d:`M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11`,key:`f3b9sd`}]]}),Nx=X({name:`upload`,size:24,node:[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]}),Px=X({name:`video`,size:24,node:[[`path`,{d:`m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5`,key:`ftymec`}],[`rect`,{x:`2`,y:`6`,width:`14`,height:`12`,rx:`2`,key:`158x01`}]]}),Fx=X({name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]}),Ix=[`onClick`],Lx=[`data-current`,`onClick`],Rx=[`title`,`aria-label`,`onClick`],zx=[`title`,`aria-label`,`onClick`],Bx=[`title`,`aria-label`,`onClick`],Vx=[`data-locked`],Hx=[`data-handle`,`aria-label`,`onPointerdown`],Ux=[`title`,`aria-label`],Wx=[`title`,`aria-label`],Gx=[`aria-label`,`data-below`],Kx=[`title`,`aria-label`],qx=[`title`,`aria-label`],Jx=[`title`,`aria-label`],Yx=[`title`,`aria-label`],Xx=/* @__PURE__ */ D({__name:`Overlay`,props:{layout:{},scale:{},hovered:{},guides:{},live:{},frozen:{},rotation:{}},emits:[`resize`,`rotate`,`radius`,`generateMobile`],setup(e,{emit:t}){let n=e,r=t,i=Y(),a=i.t,o=e=>n.live.get(e)??n.layout.elements.get(e),s=R(()=>i.selectedElements.value.flatMap(e=>{let t=o(e.id);return t?[{element:e,rect:t,rotate:n.rotation?.id===e.id?n.rotation.value:e.style.rotate??0}]:[]})),c=R(()=>{let e=s.value.length===1?s.value[0]:void 0,t=i.state.selection;return!e||e.element.locked||t.kind!==`elements`||n.frozen.has(t.canvas)||i.kindOf(e.element).kind===`opaque`||i.isInsideBox(e.element.id)?null:e}),l=R(()=>{let e=i.activeElement.value,t=e?o(e.id):void 0;return e&&t?{element:e,rect:t}:null}),u=R(()=>{let e=i.selectedElements.value.some(e=>e.id===n.hovered);return n.hovered&&!e?n.layout.elements.get(n.hovered)??null:null}),d=R(()=>{let e=i.state.selection;return e.kind===`canvas`?n.layout.canvases.get(e.canvas)??null:null}),f=R(()=>n.guides?n.layout.canvases.get(n.guides.canvas)??null:null),p=R(()=>i.canvases.value.flatMap(e=>e.elements.filter(e=>e.type===`navbar`&&e.props.sticky===!0).flatMap(e=>{let t=n.layout.elements.get(e.id);return t?[{id:e.id,rect:t}]:[]}))),m=R(()=>[...n.frozen].flatMap(e=>{let t=n.layout.canvases.get(e);return t?[{id:e,rect:t.outer}]:[]})),h=R(()=>i.activeModal.value?[]:i.state.draft.sections.flatMap(e=>{let t=n.layout.canvases.get(e.id);return t?[{id:e.id,rect:t.outer,label:(e.group?.label??``).trim()||`#${e.id}`,empty:e.elements.length===0}]:[]})),g=e=>({left:`${e.x}px`,top:`${e.y}px`,width:`${e.w}px`,height:`${e.h}px`});return(t,n)=>(j(),M(`div`,{class:`lze-overlay`,style:x({"--inv":String(1/e.scale)})},[d.value?(j(),M(`div`,{key:0,class:`lze-canvas-outline`,style:x(g(d.value.outer))},null,4)):L(``,!0),u.value?(j(),M(`div`,{key:1,class:`lze-hover`,style:x(g(u.value))},null,4)):L(``,!0),(j(!0),M(A,null,k(p.value,e=>(j(),M(`div`,{key:e.id,class:`lze-badge`,style:x({left:`${e.rect.x}px`,top:`${e.rect.y}px`})},S(T(a)(`canvas.sticky`)),5))),128)),(j(!0),M(A,null,k(m.value,e=>(j(),M(`div`,{key:e.id,class:`lze-stacked`,style:x({left:`${e.rect.x}px`,top:`${e.rect.y}px`})},[P(`span`,null,S(T(a)(`canvas.stacked`)),1),P(`button`,{type:`button`,class:`lze-btn`,onPointerdown:n[0]||=ts(()=>{},[`stop`]),onClick:t=>r(`generateMobile`,e.id)},S(T(a)(`section.generateMobile`)),41,Ix)],4))),128)),(j(!0),M(A,null,k(h.value,e=>(j(),M(`button`,{key:`chip-${e.id}`,type:`button`,class:`lze-section-chip`,"data-current":T(i).state.selection.kind===`canvas`&&T(i).state.selection.canvas===e.id,style:x({left:`${e.rect.x}px`,top:`${e.rect.y}px`}),onPointerdown:n[1]||=ts(()=>{},[`stop`]),onClick:t=>T(i).selectCanvas(e.id)},S(e.label),45,Lx))),128)),(j(!0),M(A,null,k(h.value.filter(e=>e.empty),e=>(j(),M(`p`,{key:`empty-${e.id}`,class:`lze-section-empty`,style:x({left:`${e.rect.x+e.rect.w/2}px`,top:`${e.rect.y+e.rect.h/2}px`})},S(T(a)(`canvas.emptySection`)),5))),128)),(j(!0),M(A,null,k(h.value,e=>(j(),M(`div`,{key:`edge-${e.id}`,class:`lze-edge`,style:x({left:`${e.rect.x+e.rect.w/2}px`,top:`${e.rect.y+e.rect.h}px`}),onPointerdown:n[2]||=ts(()=>{},[`stop`])},[P(`button`,{type:`button`,class:`lze-icon-btn`,title:T(a)(`section.addAfter`),"aria-label":T(a)(`section.addAfter`),onClick:t=>T(i).addSection(void 0,e.id)},[F(T(_x),{size:15,"aria-hidden":`true`})],8,Rx),P(`button`,{type:`button`,class:`lze-icon-btn`,title:T(a)(`section.duplicate`),"aria-label":T(a)(`section.duplicate`),onClick:t=>T(i).duplicateSection(e.id)},[F(T(Xb),{size:15,"aria-hidden":`true`})],8,zx),T(i).state.draft.sections.length>1?(j(),M(`button`,{key:0,type:`button`,class:`lze-icon-btn`,"data-tone":`danger`,title:T(a)(`section.delete`),"aria-label":T(a)(`section.delete`),onClick:t=>T(i).removeSection(e.id)},[F(T(Ax),{size:15,"aria-hidden":`true`})],8,Bx)):L(``,!0)],36))),128)),e.guides&&f.value?(j(),M(A,{key:2},[(j(!0),M(A,null,k(e.guides.lines.x,e=>(j(),M(`div`,{key:`x${e}`,class:`lze-guide`,"data-axis":`x`,style:x({left:`${f.value.frame.x+e}px`,top:`${f.value.frame.y}px`,height:`${f.value.frame.h}px`})},null,4))),128)),(j(!0),M(A,null,k(e.guides.lines.y,e=>(j(),M(`div`,{key:`y${e}`,class:`lze-guide`,"data-axis":`y`,style:x({top:`${f.value.frame.y+e*f.value.unit}px`,left:`${f.value.frame.x}px`,width:`${f.value.frame.w}px`})},null,4))),128))],64)):L(``,!0),(j(!0),M(A,null,k(s.value,e=>(j(),M(`div`,{key:e.element.id,class:`lze-selection`,"data-locked":e.element.locked===!0,style:x({...g(e.rect),transform:e.rotate?`rotate(${e.rotate}deg)`:void 0})},[e.element.locked?(j(),N(T(lx),{key:0,class:`lze-lock`,size:12,"aria-hidden":`true`})):L(``,!0)],12,Vx))),128)),c.value?(j(),M(`div`,{key:3,class:`lze-handles`,style:x({...g(c.value.rect),transform:c.value.rotate?`rotate(${c.value.rotate}deg)`:void 0})},[(j(!0),M(A,null,k(T(Ts),e=>(j(),M(`button`,{key:e,type:`button`,class:`lze-handle`,"data-handle":e,"aria-label":T(a)(`canvas.resize`,{handle:e}),tabindex:`-1`,onPointerdown:ts(t=>r(`resize`,t,e),[`stop`,`prevent`])},null,40,Hx))),128)),c.value.element.type===`divider`?L(``,!0):(j(),M(`button`,{key:0,type:`button`,class:`lze-radius`,title:T(a)(`canvas.radius`,{n:c.value.element.style.radius??0}),"aria-label":T(a)(`canvas.radius`,{n:c.value.element.style.radius??0}),onPointerdown:n[3]||=ts(e=>r(`radius`,e),[`stop`,`prevent`])},null,40,Ux)),P(`button`,{type:`button`,class:`lze-rotate`,title:T(a)(`canvas.rotate`,{n:c.value.element.style.rotate??0}),"aria-label":T(a)(`canvas.rotate`,{n:c.value.element.style.rotate??0}),onPointerdown:n[4]||=ts(e=>r(`rotate`,e),[`stop`,`prevent`])},[F(T(xx),{size:13,"aria-hidden":`true`})],40,Wx)],4)):L(``,!0),l.value&&e.live.size===0?(j(),M(`div`,{key:4,class:`lze-element-bar`,role:`toolbar`,"aria-label":T(a)(`canvas.toolbar`),"data-below":l.value.rect.y<56/e.scale,style:x({left:`${l.value.rect.x}px`,top:`${l.value.rect.y<56/e.scale?l.value.rect.y+l.value.rect.h:l.value.rect.y}px`}),onPointerdown:n[9]||=ts(()=>{},[`stop`])},[P(`button`,{type:`button`,class:`lze-icon-btn`,title:T(a)(`common.duplicate`),"aria-label":T(a)(`common.duplicate`),onClick:n[5]||=e=>T(i).duplicateSelected()},[F(T(Zb),{size:16,"aria-hidden":`true`})],8,Kx),P(`button`,{type:`button`,class:`lze-icon-btn`,title:T(a)(`canvas.front`),"aria-label":T(a)(`canvas.front`),onClick:n[6]||=e=>T(i).layer(`front`)},[F(T(Gb),{size:16,"aria-hidden":`true`})],8,qx),P(`button`,{type:`button`,class:`lze-icon-btn`,title:T(a)(`canvas.back`),"aria-label":T(a)(`canvas.back`),onClick:n[7]||=e=>T(i).layer(`back`)},[F(T(Wb),{size:16,"aria-hidden":`true`})],8,Jx),n[10]||=P(`span`,{class:`lze-divider`,"aria-hidden":`true`},null,-1),P(`button`,{type:`button`,class:`lze-icon-btn`,"data-tone":`danger`,title:T(a)(`common.delete`),"aria-label":T(a)(`common.delete`),onClick:n[8]||=e=>T(i).removeSelected()},[F(T(Ax),{size:16,"aria-hidden":`true`})],8,Yx)],44,Gx)):L(``,!0)],4))}}),Zx=[`data-space`],Qx={key:0,class:`lze-render-issue`,role:`alert`},$x={key:1,class:`lze-modal-banner`},eS=[`data-device`,`aria-label`],tS=[`title`],nS={key:2,class:`lze-empty-hint`},rS={key:3,class:`lze-hint-bubble`,"aria-live":`polite`},iS=[`aria-label`],aS=[`title`,`aria-label`],oS=[`title`],sS=[`title`,`aria-label`],cS=[`title`,`aria-label`],lS=.1,uS=4,dS=/* @__PURE__ */ D({__name:`Canvas`,setup(e,{expose:t}){let n=Y(),r=n.t,i=/* @__PURE__ */ w(),a=/* @__PURE__ */ w(),o=/* @__PURE__ */ w(),s=/* @__PURE__ */ w(),c=/* @__PURE__ */ w(0),l=/* @__PURE__ */ w(320),u=/* @__PURE__ */ sn({canvases:/* @__PURE__ */ new Map,elements:/* @__PURE__ */ new Map}),d=/* @__PURE__ */ w(null),f=/* @__PURE__ */ sn(null),p=/* @__PURE__ */ sn(/* @__PURE__ */ new Map),m=/* @__PURE__ */ sn(null),h=/* @__PURE__ */ w(null),g=null,_=R(()=>Ds((c.value-48)/n.frameWidth.value,lS,1)),v=R(()=>n.state.zoom??_.value),ee=R(()=>Math.round(v.value*100));async function y(e,t){let r=i.value,o=a.value,s=Ds(e,lS,uS);if(!r||!o){n.state.zoom=s;return}let c=r.getBoundingClientRect(),l=t??{x:c.left+c.width/2,y:c.top+c.height/2},u=o.getBoundingClientRect(),d=(l.x-u.left)/v.value,f=(l.y-u.top)/v.value;n.state.zoom=s,await Nn();let p=o.getBoundingClientRect();r.scrollLeft+=p.left+d*s-l.x,r.scrollTop+=p.top+f*s-l.y}let te=(e,t)=>y(v.value*e,t),ne=()=>n.state.zoom=null;function re(e){(e.ctrlKey||e.metaKey)&&(e.preventDefault(),te(Math.exp(-e.deltaY/400),{x:e.clientX,y:e.clientY}))}function ie(e){let t=s.value?.getBoundingClientRect();(e.ctrlKey||e.metaKey)&&t&&(e.preventDefault(),te(Math.exp(-e.deltaY/400),{x:t.left+e.clientX*v.value,y:t.top+e.clientY*v.value}))}let ae=/* @__PURE__ */ w(!1),oe=/* @__PURE__ */ w(!1),se=null;function ce(e,t=1){let n=i.value;return!n||!ae.value&&e.button!==1?!1:(e.preventDefault(),se={pointer:e.pointerId,x:e.clientX*t,y:e.clientY*t,left:n.scrollLeft,top:n.scrollTop,factor:t},oe.value=!0,e.currentTarget?.setPointerCapture?.(e.pointerId),!0)}function le(e){let t=i.value;se&&t&&se.pointer===e.pointerId&&(t.scrollLeft=se.left-(e.clientX*se.factor-se.x),t.scrollTop=se.top-(e.clientY*se.factor-se.y))}function b(e){se&&se.pointer===e.pointerId&&(se=null,oe.value=!1)}function ue(e){if(e.code===`Space`&&!ae.value){if(e.target?.closest(`input, textarea, select, [contenteditable="true"]`))return;ae.value=!0,e.preventDefault()}}let de=e=>{e.code===`Space`&&(ae.value=!1)},fe=()=>{ae.value=!1};function pe(e){me(e)||ue(e)}function me(e){if(!e.ctrlKey&&!e.metaKey)return!1;if(e.key===`+`||e.key===`=`)te(1.25);else if(e.key===`-`)te(.8);else if(e.key===`0`)ne();else if(e.key===`1`)y(1);else return!1;return e.preventDefault(),!0}let he=R(()=>new Set(n.canvases.value.filter(e=>`flow`in e&&e.flow&&e.flow!==`free`||n.state.device===`mobile`&&vs(e)).map(e=>e.id))),ge=R(()=>n.canvases.value.every(e=>e.elements.length===0)),_e=0,ve=!1,ye=!1;function be(){_e||=requestAnimationFrame(()=>{_e=0,xe()})}async function xe(){if(!g||ve||Pe||Ce){ye=!0;return}ve=!0;try{let e=/* @__PURE__ */ C(n.state.draft),t=await hb(e,mb(n),`edit`);if(!t.ok){n.state.renderIssues=t.issues;return}n.state.renderIssues=[],g.update(t.page.body,t.page.css,e,{modal:n.state.view.kind===`modal`?n.state.view.id:null,panels:n.state.panels,fontsHref:tc([n.theme.value.heading_font,n.theme.value.body_font]),emptyImage:r(`canvas.emptyImage`),emptyVideo:r(`canvas.emptyVideo`)}),Se()}finally{ve=!1,ye&&(ye=!1,be())}}function Se(){g&&(l.value=g.contentHeight(),u.value=g.measure(n.state.draft,n.state.device))}$n(()=>n.state.draft,be,{deep:!0}),$n([n.site,()=>n.state.workspace.assets,n.previews.version,()=>n.state.view,()=>n.state.panels],be),$n([()=>n.state.device,()=>n.frameWidth.value],()=>Nn(Se));let Ce=null,we=null;function Te(e,t){e.setPointerCapture(t.pointerId);let n=e=>De(e),r=()=>Oe(),i=[`pointerup`,`pointercancel`,`lostpointercapture`];e.addEventListener(`pointermove`,n),i.forEach(t=>e.addEventListener(t,r)),we=()=>{e.removeEventListener(`pointermove`,n),i.forEach(t=>e.removeEventListener(t,r))}}function Ee(e,t,r,i){let a=n.state.selection;if(a.kind!==`elements`||he.value.has(a.canvas))return;let o=ms(n.state.draft,a.canvas),s=u.value.canvases.get(a.canvas),c=n.state.device,l=n.activeElement.value;if(!o||!s||!l||l.locked||n.kindOf(l).kind===`opaque`||n.isInsideBox(l.id))return;let d=r?[l]:n.selectedElements.value.filter(e=>!e.locked),f=new Set(d.map(e=>e.id));Ce={kind:`box`,handle:r,canvas:o.id,origin:{x:e.clientX,y:e.clientY},factor:i,metrics:s,anchors:js(o.elements.filter(e=>!f.has(e.id)).map(e=>hs(e,c)),s.frame.w,_s(o,c)),target:{id:l.id,start:{...hs(l,c)}},others:d.filter(e=>e.id!==l.id).map(e=>({id:e.id,start:{...hs(e,c)}})),boxes:/* @__PURE__ */ new Map},Te(t,e)}function De(e){let t=Ce;if(!t||!g)return;if(t.kind===`rotate`){let n=t.from+(Ae(t.center,e)-t.startAngle);t.value=Ds(e.shiftKey?Math.round(n/15)*15:Math.round(n),-180,180),g.previewVar(t.id,`--rot`,t.value),m.value={id:t.id,value:t.value},h.value=`${t.value}°`;return}if(t.kind===`radius`){let n=(e.clientX-t.origin)*t.factor/t.unit;t.value=Math.round(Ds(t.from+n,0,200)),g.previewVar(t.id,`--r`,t.value),h.value=r(`canvas.corners`,{n:t.value});return}let{metrics:i,handle:a,target:o}=t,s=(e.clientX-t.origin.x)*t.factor,c=(e.clientY-t.origin.y)*t.factor/i.unit,l=As(o.start,{x:s,y:c},a,i.frame.w),u={x:6/v.value,y:6/(v.value*i.unit)},d=Ns(l,t.anchors,i.frame.w,u,a),_=n.state.device,ee=/* @__PURE__ */ new Map,y=(e,n)=>{t.boxes.set(e,n),g?.preview(e,_,n),ee.set(e,{x:i.frame.x+n.x/100*i.frame.w,y:i.frame.y+n.y*i.unit,w:n.w/100*i.frame.w,h:n.h*i.unit})};y(o.id,d.box);for(let e of t.others)y(e.id,ks({...e.start,x:e.start.x+d.box.x-o.start.x,y:e.start.y+d.box.y-o.start.y}));p.value=ee,f.value=d.guides.x.length||d.guides.y.length?{canvas:t.canvas,lines:d.guides}:null,h.value=a?`${Math.round(d.box.w*i.frame.w/100)} × ${Math.round(d.box.h)} px`:`x ${d.box.x.toFixed(1)}% · y ${Math.round(d.box.y)} px`}function Oe(){let e=Ce;if(Ce=null,we?.(),we=null,h.value=null,f.value=null,e?.kind===`box`&&e.boxes.size>0)n.placeElements([...e.boxes].map(([e,t])=>({id:e,box:t})));else if(e&&e.kind!==`box`&&e.value!==e.from){let t=ke(e.id);t&&(t.style[e.kind===`rotate`?`rotate`:`radius`]=e.value,n.commit())}p.value=/* @__PURE__ */ new Map,m.value=null,be()}function ke(e){return n.selectedElements.value.find(t=>t.id===e)}let Ae=(e,t)=>Math.atan2(t.clientY-e.y,t.clientX-e.x)*180/Math.PI;function je(e,t){Ee(e,e.currentTarget,t,1/v.value)}function Me(e){let t=n.activeElement.value,r=t?u.value.elements.get(t.id):void 0,i=o.value?.getBoundingClientRect();if(!t||!r||!i)return;let a={x:i.left+(r.x+r.w/2)*v.value,y:i.top+(r.y+r.h/2)*v.value},s=t.style.rotate??0;Ce={kind:`rotate`,id:t.id,center:a,startAngle:Ae(a,e),from:s,value:s},Te(e.currentTarget,e)}function Ne(e){let t=n.activeElement.value,r=n.state.selection,i=r.kind===`elements`?u.value.canvases.get(r.canvas):void 0;if(!t||!i)return;let a=t.style.radius??0;Ce={kind:`radius`,id:t.id,origin:e.clientX,factor:1/v.value,unit:i.unit,from:a,value:a},Te(e.currentTarget,e)}let Pe=null;function Fe(e){let t=e?.closest?.(`.lz-stack-nav > button[data-go]`),r=t?.closest(`.lz-stack`),i=Number(t?.getAttribute(`data-go`)),a=r?n.state.draft.sections.find(e=>e.group?.id&&`g-${vb(e.group.id)}`===r.id):void 0;return!a?.group?.id||!Number.isInteger(i)?!1:(n.state.panels={...n.state.panels,[a.group.id]:i},!0)}function Ie(e){if(ce(e,v.value)||!g||e.button!==0||Pe&&Pe.node.contains(e.target)||(Re(),Fe(e.target)))return;let t=g.hit(e.target);if(!t){n.clearSelection();return}if(t.element===null){n.selectCanvas(t.canvas);return}e.preventDefault(),n.select(t.canvas,t.element,e.shiftKey);let r=n.state.selection;r.kind===`elements`&&r.ids.includes(t.element)&&!e.shiftKey&&Ee(e,t.node,null,1)}function Le(e){let t=g?.hit(e.target),r=t?.element?ms(n.state.draft,t.canvas)?.elements.find(e=>e.id===t.element):void 0,i=r?n.kindOf(r):null;if(!t||!r||i?.kind!==`core`||!i.spec.inline||r.locked||n.state.previewing)return;let a=t.node;Pe={node:a,canvas:t.canvas,id:r.id,prop:i.spec.inline},a.setAttribute(`contenteditable`,`plaintext-only`),a.focus(),a.ownerDocument.getSelection()?.selectAllChildren(a),a.addEventListener(`blur`,Re,{once:!0})}function Re(){let e=Pe;if(!e)return;Pe=null;let t=e.node.innerText.trim();e.node.removeAttribute(`contenteditable`);let r=ms(n.state.draft,e.canvas)?.elements.find(t=>t.id===e.id);r&&(r.props[e.prop]=t,n.commit()),be()}function ze(e){if(Pe){(e.key===`Enter`&&!e.shiftKey||e.key===`Escape`)&&(e.preventDefault(),Pe.node.blur());return}me(e)||db(n,e)}let Be=/* @__PURE__ */ w(null);function Ve(e,t){let r=t?g?.hit(e.target):null;if(t){let e=n.state.selection.kind===`elements`?n.state.selection.ids:[];r?.element&&!e.includes(r.element)?n.select(r.canvas,r.element,!1):r&&!r.element&&n.selectCanvas(r.canvas)}e.preventDefault();let i=t?s.value?.getBoundingClientRect():null;Be.value=i?{x:i.left+e.clientX*v.value,y:i.top+e.clientY*v.value}:{x:e.clientX,y:e.clientY}}function He(e){let t=g?.hit(e.target);d.value=t?.element??null}let Ue=e=>{Pe||e.preventDefault()};function We(e,t){let n=s.value?.getBoundingClientRect();if(!g||!n||e<n.left||e>n.right||t<n.top||t>n.bottom)return null;let r=(e-n.left)/v.value,i=(t-n.top)/v.value,a=g.hit(g.doc.elementFromPoint(r,i)),o=a?u.value.canvases.get(a.canvas):void 0;return!a||!o?null:{canvas:a.canvas,x:Ds((r-o.frame.x)/o.frame.w*100,0,90),y:Ds((i-o.frame.y)/o.unit,0,3e3)}}t({dropPoint:We});let Ge=null,Ke=null;Cr(()=>{if(!s.value||!i.value)return;g=yb(s.value);let e=g.doc;e.addEventListener(`pointerdown`,Ie),e.addEventListener(`dblclick`,Le),e.addEventListener(`keydown`,ze),e.addEventListener(`pointerover`,He),e.addEventListener(`contextmenu`,e=>Ve(e,!0)),e.addEventListener(`wheel`,ie,{passive:!1}),e.addEventListener(`pointermove`,le),e.addEventListener(`pointerup`,b),e.addEventListener(`pointercancel`,b),e.documentElement.addEventListener(`pointerleave`,()=>d.value=null),e.addEventListener(`click`,Ue,!0),e.addEventListener(`submit`,Ue,!0);let t=new((e.defaultView?.ResizeObserver)??ResizeObserver)(()=>Se());t.observe(e.body),Ke=t,e.addEventListener(`keyup`,de),Ge=new ResizeObserver(([e])=>{c.value=e?.contentRect.width??0}),Ge.observe(i.value),window.addEventListener(`keydown`,pe),window.addEventListener(`keyup`,de),window.addEventListener(`blur`,fe),be()}),Er(()=>{window.removeEventListener(`keydown`,pe),window.removeEventListener(`keyup`,de),window.removeEventListener(`blur`,fe),cancelAnimationFrame(_e),Ge?.disconnect(),Ke?.disconnect(),we?.()});function qe(e){let t=ms(n.state.draft,e);t&&n.generateMobile(t)}let Je=e=>r(e===`desktop`?`toolbar.desktop`:`toolbar.mobile`);return(e,t)=>(j(),M(`div`,{ref_key:`stage`,ref:i,class:`lze-stage`,"data-space":oe.value?`panning`:ae.value?`on`:void 0,onPointerdown:[t[6]||=e=>ce(e),t[7]||=ts(e=>T(n).clearSelection(),[`self`])],onPointermove:le,onPointerup:b,onPointercancel:b,onWheel:re,onContextmenu:t[8]||=e=>Ve(e,!1)},[T(n).state.renderIssues.length?(j(),M(`p`,Qx,S(T(r)(`canvas.invalid`,{issue:T(ob)(T(n).state.renderIssues[0])})),1)):L(``,!0),T(n).activeModal.value?(j(),M(`div`,$x,[P(`span`,null,S(T(r)(`canvas.editingModal`,{title:T(n).activeModal.value.title})),1),P(`button`,{type:`button`,class:`lze-btn`,onClick:t[0]||=e=>T(n).openModal(null)},S(T(r)(`canvas.backToPage`)),1)])):L(``,!0),P(`div`,{ref_key:`sheet`,ref:a,class:`lze-sheet`,"data-device":T(n).state.device,"aria-label":Je(T(n).state.device),style:x({width:`${T(n).frameWidth.value*v.value}px`,height:`${l.value*v.value}px`})},[P(`div`,{ref_key:`scaler`,ref:o,class:`lze-scaler`,style:x({width:`${T(n).frameWidth.value}px`,transform:`scale(${v.value})`})},[P(`iframe`,{ref_key:`iframe`,ref:s,class:`lze-frame`,title:T(r)(`canvas.title`),style:x({width:`${T(n).frameWidth.value}px`,height:`${l.value}px`})},null,12,tS),F(Xx,{layout:u.value,scale:v.value,hovered:d.value,guides:f.value,live:p.value,rotation:m.value,frozen:he.value,onResize:je,onRotate:Me,onRadius:Ne,onGenerateMobile:qe},null,8,[`layout`,`scale`,`hovered`,`guides`,`live`,`rotation`,`frozen`])],4)],12,eS),ge.value?(j(),M(`p`,nS,S(T(n).activeModal.value?T(r)(`canvas.emptyModal`):T(r)(`canvas.emptyPage`)),1)):L(``,!0),h.value?(j(),M(`p`,rS,S(h.value),1)):L(``,!0),Be.value?(j(),N(Tb,{key:4,at:Be.value,onClose:t[1]||=e=>Be.value=null},null,8,[`at`])):L(``,!0),P(`div`,{class:`lze-zoom`,role:`group`,"aria-label":T(r)(`zoom.label`)},[P(`button`,{type:`button`,class:`lze-zoom-btn`,title:T(r)(`zoom.out`),"aria-label":T(r)(`zoom.out`),onClick:t[2]||=e=>te(.8)},`−`,8,aS),P(`button`,{type:`button`,class:`lze-zoom-value`,title:T(r)(`zoom.fit`),onClick:t[3]||=e=>ne()},S(ee.value)+`%`,9,oS),P(`button`,{type:`button`,class:`lze-zoom-btn`,title:T(r)(`zoom.in`),"aria-label":T(r)(`zoom.in`),onClick:t[4]||=e=>te(1.25)},`+`,8,sS),P(`button`,{type:`button`,class:`lze-zoom-btn`,title:T(r)(`zoom.actual`),"aria-label":T(r)(`zoom.actual`),onClick:t[5]||=e=>y(1)},`1:1`,8,cS)],8,iS)],40,Zx))}}),fS=[`title`,`srcdoc`],pS=/* @__PURE__ */ D({__name:`Preview`,setup(e){let t=Y(),n=/* @__PURE__ */ w(),r=/* @__PURE__ */ sn(``),i=/* @__PURE__ */ w({width:0,height:0}),a=null;async function o(){let e=await hb(/* @__PURE__ */ C(t.state.draft),mb(t),`public`);e.ok&&(r.value=e.page.html)}$n([()=>t.state.draft,t.previews.version],o,{deep:!0,immediate:!0}),Cr(()=>{a=new ResizeObserver(([e])=>{i.value={width:e?.contentRect.width??0,height:e?.contentRect.height??0}}),n.value&&a.observe(n.value)}),Er(()=>a?.disconnect());let s=()=>Ds((i.value.width-48)/t.frameWidth.value,.1,1);return(e,a)=>(j(),M(`div`,{ref_key:`stage`,ref:n,class:`lze-stage lze-preview`},[P(`div`,{class:`lze-sheet`,style:x({width:`${T(t).frameWidth.value*s()}px`,height:`${i.value.height-48}px`})},[P(`iframe`,{class:`lze-frame`,title:T(t).t(`toolbar.preview`),srcdoc:r.value,style:x({width:`${T(t).frameWidth.value}px`,height:`${(i.value.height-48)/s()}px`,transform:`scale(${s()})`})},null,12,fS)],4)],512))}}),mS=[`data-variant`,`data-size`,`disabled`,`title`],Z=/* @__PURE__ */ D({__name:`Button`,props:{variant:{default:`outline`},size:{default:`sm`},disabled:{type:Boolean,default:!1},title:{default:void 0}},setup(e){return(t,n)=>(j(),M(`button`,{type:`button`,class:`lze-btn`,"data-variant":e.variant,"data-size":e.size,disabled:e.disabled,title:e.title},[Lr(t.$slots,`default`)],8,mS))}}),hS=[`data-size`,`aria-labelledby`],gS={class:`lze-dialog-body`},_S={class:`lze-dialog-head`},vS=[`id`],yS={key:0,class:`lze-hint`},bS=[`aria-label`],xS=/* @__PURE__ */ D({__name:`Dialog`,props:/*@__PURE__*/ Wr({title:{},description:{default:void 0},size:{default:`md`}},{open:{type:Boolean,required:!0},openModifiers:{}}),emits:[`update:open`],setup(e){let t=ui(e,`open`),n=/* @__PURE__ */ w(),r=O(),{t:i}=Y();function a(){t.value&&!n.value?.open?n.value?.showModal():!t.value&&n.value?.open&&n.value.close()}$n(t,a);let o=!1,s=e=>o=e.target===e.currentTarget,c=e=>{o&&e.target===e.currentTarget&&(t.value=!1)};return Cr(a),(a,o)=>(j(),M(`dialog`,{ref_key:`dialog`,ref:n,class:`lze-dialog`,"data-size":e.size,"aria-labelledby":T(r),onClose:o[1]||=e=>t.value=!1,onPointerdown:s,onClick:c},[P(`div`,gS,[P(`header`,_S,[P(`div`,null,[P(`h2`,{id:T(r)},S(e.title),9,vS),e.description?(j(),M(`p`,yS,S(e.description),1)):L(``,!0)]),P(`button`,{type:`button`,class:`lze-icon-btn`,"aria-label":T(i)(`common.close`),onClick:o[0]||=e=>t.value=!1},[F(T(Fx),{size:16,"aria-hidden":`true`})],8,bS)]),t.value?Lr(a.$slots,`default`,{},void 0,void 0,0):L(``,!0)])],40,hS))}}),SS={class:`lze-dialog-actions`},CS=/* @__PURE__ */ D({__name:`ConflictDialog`,setup(e){let t=Y(),n=t.dialogModel(`conflict`);return(e,r)=>(j(),N(xS,{open:T(n),"onUpdate:open":r[2]||=e=>/* @__PURE__ */ on(n)?n.value=e:null,title:T(t).t(`conflict.title`),description:T(t).t(`conflict.body`)},{default:E(()=>[P(`div`,SS,[F(Z,{variant:`primary`,size:`md`,onClick:r[0]||=e=>T(t).reloadPage()},{default:E(()=>[I(S(T(t).t(`conflict.reload`)),1)]),_:1}),F(Z,{size:`md`,onClick:r[1]||=e=>n.value=!1},{default:E(()=>[I(S(T(t).t(`common.close`)),1)]),_:1})])]),_:1},8,[`open`,`title`,`description`]))}}),wS=[`data-tone`,`title`,`aria-label`,`aria-pressed`,`disabled`],TS=/* @__PURE__ */ D({__name:`IconButton`,props:{label:{},active:{type:Boolean,default:void 0},disabled:{type:Boolean,default:!1},tone:{default:`default`}},setup(e){return(t,n)=>(j(),M(`button`,{type:`button`,class:`lze-icon-btn`,"data-tone":e.tone,title:e.label,"aria-label":e.label,"aria-pressed":e.active,disabled:e.disabled},[Lr(t.$slots,`default`)],8,wS))}}),ES={class:`lze-asset-grid`},DS=[`disabled`],OS={class:`lze-hint`},kS=[`aria-label`,`onClick`],AS=[`src`,`alt`],jS={key:0,class:`lze-hint`},MS={key:1,class:`lze-hint`},NS=/* @__PURE__ */ D({__name:`MediaLibrary`,setup(e){let t=Y(),n=t.t,r=/* @__PURE__ */ w(),i=/* @__PURE__ */ w(!1),a=R({get:()=>t.state.library!==null,set:e=>{e||(t.state.library=null)}}),o=[`byte`,`kilobyte`,`megabyte`,`gigabyte`];function s(e){let n=Math.min(o.length-1,Math.max(0,Math.floor(Math.log(Math.max(e,1))/Math.log(1024))));return new Intl.NumberFormat(t.i18n.locale,{style:`unit`,unit:o[n],unitDisplay:`short`,maximumFractionDigits:1}).format(e/1024**n)}let c=R(()=>{let{used:e,limit:r}=t.state.workspace.quota;return r>0?n(`library.quota`,{used:s(e),limit:s(r)}):null});async function l(e){let n=e.target.files?.[0];n&&(i.value=!0,await t.uploadAsset(n),i.value=!1,r.value&&(r.value.value=``))}function u(e){let n=t.state.library?.onPick;n?n(e.ref):t.addElement({kind:`core`,type:`image`},void 0,e.ref),a.value=!1}return(e,o)=>(j(),N(xS,{open:a.value,"onUpdate:open":o[1]||=e=>a.value=e,title:T(n)(`library.title`),description:T(n)(`library.description`),size:`lg`},{default:E(()=>[P(`div`,ES,[P(`button`,{type:`button`,class:`lze-upload-tile`,disabled:i.value,onClick:o[0]||=e=>r.value?.click()},[F(T(Nx),{size:20,"aria-hidden":`true`}),P(`strong`,null,S(i.value?T(n)(`library.uploading`):T(n)(`library.upload`)),1),P(`span`,OS,S(T(n)(`library.formats`)),1)],8,DS),P(`input`,{ref_key:`input`,ref:r,type:`file`,class:`lze-file-input`,tabindex:`-1`,"aria-hidden":`true`,accept:`.jpg,.jpeg,.png,.webp,.avif,.svg`,onChange:l},null,544),(j(!0),M(A,null,k(T(t).state.workspace.assets,e=>(j(),M(`figure`,{key:e.id,class:`lze-asset`},[P(`button`,{type:`button`,class:`lze-asset-use`,"aria-label":T(n)(`library.use`,{name:e.name}),onClick:t=>u(e)},[P(`img`,{src:e.thumb,alt:e.name,loading:`lazy`},null,8,AS),P(`figcaption`,null,S(e.name),1)],8,kS),F(TS,{class:`lze-asset-delete`,tone:`danger`,label:T(n)(`library.delete`,{name:e.name}),onClick:n=>T(t).deleteAsset(e)},{default:E(()=>[F(T(Ax),{size:14,"aria-hidden":`true`})]),_:1},8,[`label`,`onClick`])]))),128))]),T(t).state.workspace.assets.length===0?(j(),M(`p`,jS,S(T(n)(`media.empty`)),1)):L(``,!0),c.value?(j(),M(`p`,MS,S(c.value),1)):L(``,!0)]),_:1},8,[`open`,`title`,`description`]))}}),PS={class:`lze-field`},FS=[`for`],IS={key:1,class:`lze-label`},LS={key:2,class:`lze-error`,role:`alert`},RS={key:3,class:`lze-hint`},Q=/* @__PURE__ */ D({__name:`Field`,props:{label:{},id:{},hint:{},error:{}},setup(e){return(t,n)=>(j(),M(`div`,PS,[e.id?(j(),M(`label`,{key:0,class:`lze-label`,for:e.id},[I(S(e.label),1),Lr(t.$slots,`aside`)],8,FS)):(j(),M(`span`,IS,[I(S(e.label),1),Lr(t.$slots,`aside`)])),Lr(t.$slots,`default`),e.error?(j(),M(`p`,LS,S(e.error),1)):e.hint?(j(),M(`p`,RS,S(e.hint),1)):L(``,!0)]))}}),zS=[`id`,`rows`,`maxlength`,`placeholder`,`aria-label`],BS=[`id`,`type`,`maxlength`,`placeholder`,`aria-label`],VS=/* @__PURE__ */ D({__name:`TextInput`,props:/*@__PURE__*/ Wr({id:{default:void 0},placeholder:{default:void 0},maxlength:{default:void 0},rows:{default:0},label:{default:void 0},type:{default:`text`}},{modelValue:{required:!0},modelModifiers:{}}),emits:/*@__PURE__*/ Wr([`commit`],[`update:modelValue`]),setup(e,{emit:t}){let n=ui(e,`modelValue`),r=t;return(t,i)=>e.rows>0?Gn((j(),M(`textarea`,{key:0,id:e.id,"onUpdate:modelValue":i[0]||=e=>n.value=e,class:`lze-input`,rows:e.rows,maxlength:e.maxlength,placeholder:e.placeholder,"aria-label":e.label,onChange:i[1]||=e=>r(`commit`)},null,40,zS)),[[Vo,n.value]]):Gn((j(),M(`input`,{key:1,id:e.id,"onUpdate:modelValue":i[2]||=e=>n.value=e,class:`lze-input`,type:e.type,maxlength:e.maxlength,placeholder:e.placeholder,"aria-label":e.label,onChange:i[3]||=e=>r(`commit`)},null,40,BS)),[[Xo,n.value]])}}),HS={class:`lze-dialog-actions`},US=/* @__PURE__ */ D({__name:`NewPageDialog`,setup(e){let t=Y(),n=t.t,r={title:O(),slug:O()},i=t.dialogModel(`newPage`),a=/* @__PURE__ */ Jt({title:``,slug:``,issues:[],creating:!1});$n(i,e=>{e&&Object.assign(a,{title:``,slug:``,issues:[],creating:!1})});let o=R(()=>{let e=a.slug.trim()||n(`newPage.slugFallback`);return t.state.workspace.publicUrl?new URL(e,t.state.workspace.publicUrl).href:`/${e}`}),s=e=>a.issues.filter(t=>t.path===e).map(e=>e.message).join(` `)||null,c=R(()=>a.issues.filter(e=>e.path!==`title`&&e.path!==`slug`));async function l(){a.creating=!0,a.issues=await t.createPage(a.title.trim(),a.slug.trim()),a.creating=!1}return(e,t)=>(j(),N(xS,{open:T(i),"onUpdate:open":t[3]||=e=>/* @__PURE__ */ on(i)?i.value=e:null,title:T(n)(`newPage.title`),description:T(n)(`newPage.description`)},{default:E(()=>[P(`form`,{class:`lze-stack`,novalidate:``,onSubmit:ts(l,[`prevent`])},[F(Q,{id:r.title,label:T(n)(`newPage.titleLabel`),error:s(`title`)},{default:E(()=>[F(VS,{id:r.title,modelValue:a.title,"onUpdate:modelValue":t[0]||=e=>a.title=e,maxlength:120},null,8,[`id`,`modelValue`])]),_:1},8,[`id`,`label`,`error`]),F(Q,{id:r.slug,label:T(n)(`newPage.slug`),error:s(`slug`),hint:T(n)(`newPage.at`,{url:o.value})},{default:E(()=>[F(VS,{id:r.slug,modelValue:a.slug,"onUpdate:modelValue":t[1]||=e=>a.slug=e,maxlength:120,placeholder:T(n)(`newPage.slugPlaceholder`)},null,8,[`id`,`modelValue`,`placeholder`])]),_:1},8,[`id`,`label`,`error`,`hint`]),(j(!0),M(A,null,k(c.value,e=>(j(),M(`p`,{key:e.path+e.message,class:`lze-error`,role:`alert`},S(e.message),1))),128)),P(`div`,HS,[F(Z,{variant:`primary`,size:`md`,type:`submit`,disabled:a.creating},{default:E(()=>[I(S(T(n)(`newPage.create`)),1)]),_:1},8,[`disabled`]),F(Z,{size:`md`,onClick:t[2]||=e=>i.value=!1},{default:E(()=>[I(S(T(n)(`common.cancel`)),1)]),_:1})])],32)]),_:1},8,[`open`,`title`,`description`]))}}),WS=[`aria-label`],GS={class:`lze-label`},KS=[`data-thumb`],qS=[`src`],JS={class:`lze-row`},YS=/* @__PURE__ */ D({__name:`ImageField`,props:/*@__PURE__*/ Wr({label:{},url:{type:Boolean,default:!1},choose:{default:void 0},thumb:{default:`wide`}},{modelValue:{required:!0},modelModifiers:{}}),emits:/*@__PURE__*/ Wr([`commit`],[`update:modelValue`]),setup(e,{emit:t}){let n=ui(e,`modelValue`),r=e,i=t,a=Y(),o=R(()=>{let e=n.value;return e?e.startsWith(`media:`)?a.state.workspace.assets.find(t=>t.ref===e)?.thumb??null:e:null}),s=R(()=>n.value&&!n.value.startsWith(`media:`)?n.value:``);function c(){a.openLibrary(e=>{n.value=e,i(`commit`)})}function l(){n.value=null,i(`commit`)}return(t,u)=>(j(),M(`div`,{class:`lze-field`,role:`group`,"aria-label":r.label},[P(`span`,GS,S(r.label),1),o.value?(j(),M(`div`,{key:0,class:`lze-image-preview`,"data-thumb":e.thumb},[P(`img`,{src:o.value,alt:``},null,8,qS)],8,KS)):L(``,!0),P(`div`,JS,[F(Z,{onClick:c},{default:E(()=>[I(S(e.choose??T(a).t(`el.chooseFromLibrary`)),1)]),_:1}),n.value?(j(),N(Z,{key:0,variant:`ghost`,onClick:l},{default:E(()=>[I(S(T(a).t(`common.remove`)),1)]),_:1})):L(``,!0)]),e.url?(j(),N(VS,{key:1,"model-value":s.value,type:`url`,maxlength:500,placeholder:T(a).t(`el.imageUrl`),label:T(a).t(`el.imageUrl`),"onUpdate:modelValue":u[0]||=e=>n.value=e,onCommit:u[1]||=e=>i(`commit`)},null,8,[`model-value`,`placeholder`,`label`])):L(``,!0)],8,WS))}}),XS={class:`lze-number`},ZS={class:`lze-number-label`},QS=[`value`,`min`,`max`,`step`,`disabled`],$S={key:0,class:`lze-number-suffix`},eC=/* @__PURE__ */ D({__name:`NumberInput`,props:/*@__PURE__*/ Wr({label:{},min:{},max:{},step:{},suffix:{},disabled:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:/*@__PURE__*/ Wr([`commit`],[`update:modelValue`]),setup(e,{emit:t}){let n=ui(e,`modelValue`),r=e,i=t;function a(e){let t=e.target.value,i=Number(t);t===``?n.value=void 0:Number.isFinite(i)&&(n.value=Math.min(r.max??1/0,Math.max(r.min??-1/0,i)))}return(t,r)=>(j(),M(`label`,XS,[P(`span`,ZS,S(e.label),1),P(`input`,{type:`number`,value:n.value??``,min:e.min,max:e.max,step:e.step,disabled:e.disabled,onInput:a,onChange:r[0]||=e=>i(`commit`)},null,40,QS),e.suffix?(j(),M(`span`,$S,S(e.suffix),1)):L(``,!0)]))}}),tC=[`id`,`data-compact`,`aria-label`],nC=[`selected`],rC=[`selected`],$=/* @__PURE__ */ D({__name:`SelectInput`,props:/*@__PURE__*/ Wr({options:{},id:{},label:{},placeholder:{},compact:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:/*@__PURE__*/ Wr([`commit`],[`update:modelValue`]),setup(e,{emit:t}){let n=ui(e,`modelValue`),r=e,i=t;function a(e){let t=e.target.selectedIndex-+!!r.placeholder,a=r.options[t];a&&(n.value=a.value,i(`commit`))}return(t,r)=>(j(),M(`select`,{id:e.id,class:`lze-select`,"data-compact":e.compact,"aria-label":e.label,onChange:a},[e.placeholder?(j(),M(`option`,{key:0,value:``,disabled:``,selected:n.value===null||n.value===void 0||n.value===``},S(e.placeholder),9,nC)):L(``,!0),(j(!0),M(A,null,k(e.options,e=>(j(),M(`option`,{key:e.value,selected:e.value===n.value},S(e.label),9,rC))),128))],40,tC))}}),iC={class:`lze-toggle`},aC=[`checked`],oC=/* @__PURE__ */ D({__name:`Toggle`,props:/*@__PURE__*/ Wr({label:{}},{modelValue:{type:[Boolean,null],required:!0},modelModifiers:{}}),emits:/*@__PURE__*/ Wr([`commit`],[`update:modelValue`]),setup(e,{emit:t}){let n=ui(e,`modelValue`),r=t;return(t,i)=>(j(),M(`label`,iC,[P(`input`,{type:`checkbox`,checked:n.value===!0,onChange:i[0]||=e=>{n.value=e.target.checked,r(`commit`)}},null,40,aC),P(`span`,null,S(e.label),1)]))}}),sC={none:{kind:`none`},whatsapp:{kind:`text`,placeholder:`action.placeholder.whatsapp`},phone:{kind:`text`,placeholder:`action.placeholder.phone`},email:{kind:`text`,placeholder:`action.placeholder.email`},url:{kind:`text`,placeholder:`action.placeholder.url`},anchor:{kind:`anchor`},modal:{kind:`modal`},submit:{kind:`submit`},page:{kind:`page`},top:{kind:`none`},back:{kind:`none`},step_next:{kind:`none`},step_prev:{kind:`none`}},cC=e=>Object.hasOwn(sC,e);function lC(e){return!e||e.kind===`image`||e.default===void 0?``:String(e.default)}var uC={class:`lze-field`},dC=[`id`],fC=[`value`],pC={key:4,class:`lze-hint`},mC=/* @__PURE__ */ D({__name:`ActionPicker`,props:{modelValue:{},label:{}},emits:[`update:modelValue`,`commit`],setup(e,{emit:t}){let n=e,r=t,i=Y(),a=i.t,o=O(),s=R(()=>n.modelValue?.type||`none`),c=R(()=>n.modelValue?.value??``),l=R(()=>i.catalog.value.actions.find(e=>e.type===s.value)??null),u=R(()=>cC(s.value)?sC[s.value]:null),d=R(()=>{let e=[...Jg.map(e=>({value:e,label:a(`action.${e}`)})),...i.catalog.value.actions.map(e=>({value:e.type,label:i.i18n.localized(e.label)}))];return e.some(e=>e.value===s.value)?e:[...e,{value:s.value,label:a(`action.unknown`,{type:s.value})}]}),f=R(()=>(i.state.draft.modals??[]).map(e=>({value:e.id,label:e.title}))),p=R(()=>i.state.workspace.pages.map(e=>({value:e.slug||`/`,label:e.slug?`${e.title} /${e.slug}`:e.title})));function m(e){let t=i.catalog.value.actions.find(t=>t.type===e);r(`update:modelValue`,{type:e,value:t?lC(t.value):c.value}),r(`commit`)}function h(e){r(`update:modelValue`,{type:s.value,value:e==null||typeof e==`object`?``:String(e)})}let g=R(()=>{let e=l.value?.value;return e?.kind===`number`?c.value===``?e.default:Number(c.value):e?.kind===`toggle`?c.value===``?e.default:c.value===`true`:c.value});return(t,n)=>(j(),M(`div`,uC,[F($,{"model-value":s.value,options:d.value,label:e.label,"onUpdate:modelValue":n[0]||=e=>m(String(e??`none`))},null,8,[`model-value`,`options`,`label`]),u.value?(j(),M(A,{key:0},[u.value.kind===`text`?(j(),N(VS,{key:0,"model-value":c.value,maxlength:300,placeholder:T(a)(u.value.placeholder),label:T(a)(`action.target`),"onUpdate:modelValue":n[1]||=e=>h(e),onCommit:n[2]||=e=>r(`commit`)},null,8,[`model-value`,`placeholder`,`label`])):u.value.kind===`anchor`?(j(),M(A,{key:1},[F(VS,{"model-value":c.value,maxlength:300,placeholder:T(a)(`action.placeholder.anchor`),label:T(a)(`action.placeholder.anchor`),list:T(o),"onUpdate:modelValue":n[3]||=e=>h(e),onCommit:n[4]||=e=>r(`commit`)},null,8,[`model-value`,`placeholder`,`label`,`list`]),P(`datalist`,{id:T(o)},[(j(!0),M(A,null,k(T(i).state.draft.sections,e=>(j(),M(`option`,{key:e.id,value:e.id},null,8,fC))),128))],8,dC)],64)):u.value.kind===`modal`?(j(),N($,{key:2,"model-value":c.value,options:f.value,label:T(a)(`action.chooseModal`),placeholder:T(a)(`action.chooseModal`),"onUpdate:modelValue":n[5]||=e=>h(e),onCommit:n[6]||=e=>r(`commit`)},null,8,[`model-value`,`options`,`label`,`placeholder`])):u.value.kind===`page`?(j(),N($,{key:3,"model-value":c.value,options:p.value,label:T(a)(`action.choosePage`),placeholder:T(a)(`action.choosePage`),"onUpdate:modelValue":n[7]||=e=>h(e),onCommit:n[8]||=e=>r(`commit`)},null,8,[`model-value`,`options`,`label`,`placeholder`])):u.value.kind===`submit`?(j(),M(`p`,pC,S(T(a)(`action.submitHint`)),1)):L(``,!0)],64)):l.value?.value?(j(),N(gC,{key:1,field:l.value.value,"model-value":g.value,"onUpdate:modelValue":n[9]||=e=>h(e),onCommit:n[10]||=e=>r(`commit`)},null,8,[`field`,`model-value`])):L(``,!0)]))}}),hC={class:`lze-choices`},gC=/* @__PURE__ */ D({__name:`FieldControl`,props:{field:{},modelValue:{type:[String,Number,Boolean,Array,null]}},emits:[`update:modelValue`,`commit`],setup(e,{emit:t}){let n=e,r=t,i=Y(),a=O(),o=R(()=>i.i18n.localized(n.field.label)),s=e=>typeof e==`object`&&!!e,c=R(()=>{let e=n.field,t=n.modelValue;switch(e.kind){case`text`:return{kind:`text`,field:e,value:typeof t==`string`?t:e.default??``};case`number`:return{kind:`number`,field:e,value:typeof t==`number`?t:e.default};case`toggle`:return{kind:`toggle`,field:e,value:typeof t==`boolean`?t:e.default};case`choice`:return e.multiple===!0?{kind:`choices`,field:e,value:(Array.isArray(t)?t:Array.isArray(e.default)?e.default:[]).filter(t=>e.options.some(e=>e.value===t))}:{kind:`choice`,field:e,value:typeof t==`string`?t:typeof e.default==`string`?e.default:``};case`image`:return{kind:`image`,field:e,value:typeof t==`string`&&t!==``?t:null};case`action`:return{kind:`action`,field:e,value:s(t)?t:null};default:return e}});function l(e,t,n,r){let i=r?[...t,n]:t.filter(e=>e!==n);u(e.options.map(e=>e.value).filter(e=>i.includes(e)))}function u(e){e!==void 0&&r(`update:modelValue`,e)}return(e,t)=>c.value.kind===`text`?(j(),N(Q,{key:0,id:T(a),label:o.value},{default:E(()=>[F(VS,{id:T(a),"model-value":c.value.value,maxlength:c.value.field.max,rows:c.value.field.multiline?4:0,"onUpdate:modelValue":t[0]||=e=>u(e??``),onCommit:t[1]||=e=>r(`commit`)},null,8,[`id`,`model-value`,`maxlength`,`rows`])]),_:1},8,[`id`,`label`])):c.value.kind===`number`?(j(),N(eC,{key:1,"model-value":c.value.value,label:o.value,min:c.value.field.min,max:c.value.field.max,step:c.value.field.step,"onUpdate:modelValue":t[2]||=e=>u(e??void 0),onCommit:t[3]||=e=>r(`commit`)},null,8,[`model-value`,`label`,`min`,`max`,`step`])):c.value.kind===`toggle`?(j(),N(oC,{key:2,"model-value":c.value.value,label:o.value,"onUpdate:modelValue":t[4]||=e=>u(e===!0),onCommit:t[5]||=e=>r(`commit`)},null,8,[`model-value`,`label`])):c.value.kind===`choice`?(j(),N(Q,{key:3,id:T(a),label:o.value},{default:E(()=>[F($,{id:T(a),"model-value":c.value.value,options:c.value.field.options.map(e=>({value:e.value,label:T(i).i18n.localized(e.label)})),"onUpdate:modelValue":t[6]||=e=>u(e??void 0),onCommit:t[7]||=e=>r(`commit`)},null,8,[`id`,`model-value`,`options`])]),_:1},8,[`id`,`label`])):c.value.kind===`choices`?(j(),N(Q,{key:4,label:o.value},{default:E(()=>[P(`div`,hC,[(j(!0),M(A,null,k(c.value.field.options,e=>(j(),N(oC,{key:e.value,"model-value":c.value.value.includes(e.value),label:T(i).i18n.localized(e.label),"onUpdate:modelValue":t=>l(c.value.field,c.value.value,e.value,t===!0),onCommit:t[8]||=e=>r(`commit`)},null,8,[`model-value`,`label`,`onUpdate:modelValue`]))),128))])]),_:1},8,[`label`])):c.value.kind===`image`?(j(),N(YS,{key:5,"model-value":c.value.value,label:o.value,url:``,"onUpdate:modelValue":t[9]||=e=>u(e??null),onCommit:t[10]||=e=>r(`commit`)},null,8,[`model-value`,`label`])):(j(),N(Q,{key:6,label:o.value},{default:E(()=>[F(mC,{"model-value":c.value.value,label:o.value,"onUpdate:modelValue":t[11]||=e=>u(e),onCommit:t[12]||=e=>r(`commit`)},null,8,[`model-value`,`label`])]),_:1},8,[`label`]))}}),_C={class:`lze-grid-2`},vC={class:`lze-field`},yC={key:0,class:`lze-error`,role:`alert`},bC={key:1,class:`lze-hint`},xC={class:`lze-field`},SC={key:0,class:`lze-error`,role:`alert`},CC={key:0,class:`lze-stack lze-divided`},wC={class:`lze-label`},TC={key:0,class:`lze-error`,role:`alert`},EC={class:`lze-dialog-actions`},DC=/* @__PURE__ */ D({__name:`SiteDialog`,setup(e){let t=Y(),n=t.t,r={seoTitle:O(),seoDescription:O(),locale:O()},i=t.dialogModel(`site`),a=()=>{let e=t.state.workspace.site;return{seoTitle:e.seo.title??``,seoDescription:e.seo.description??``,ogImage:e.og_image,favicon:e.favicon,locale:e.locale,meta:xs(t.state.workspace.meta),issues:[],saving:!1}},o=/* @__PURE__ */ Jt(a());$n(i,e=>e&&Object.assign(o,a()));let s=R(()=>t.catalog.value.siteFields??[]),c=e=>e&&e.trim()!==``?e:null,l=[`seo.title`,`seo.description`,`og_image`,`favicon`,`locale`],u=e=>o.issues.filter(t=>t.path===e).map(e=>e.message).join(` `)||null,d=R(()=>o.issues.filter(e=>!l.includes(e.path)&&!e.path.startsWith(`meta.`)));function f(e,t){o.meta={...o.meta,[e]:t}}async function p(){o.saving=!0,o.issues=await t.updateSite({seo:{title:c(o.seoTitle),description:c(o.seoDescription)},og_image:c(o.ogImage),favicon:c(o.favicon),locale:o.locale.trim(),meta:o.meta}),o.saving=!1,o.issues.length===0&&(i.value=!1,t.notify(n(`site.saved`)))}return(e,t)=>(j(),N(xS,{open:T(i),"onUpdate:open":t[6]||=e=>/* @__PURE__ */ on(i)?i.value=e:null,title:T(n)(`site.title`),description:T(n)(`site.description`),size:`lg`},{default:E(()=>[P(`form`,{class:`lze-stack`,novalidate:``,onSubmit:ts(p,[`prevent`])},[F(Q,{id:r.seoTitle,label:T(n)(`site.seoTitle`),error:u(`seo.title`)},{default:E(()=>[F(VS,{id:r.seoTitle,modelValue:o.seoTitle,"onUpdate:modelValue":t[0]||=e=>o.seoTitle=e,maxlength:120},null,8,[`id`,`modelValue`])]),_:1},8,[`id`,`label`,`error`]),F(Q,{id:r.seoDescription,label:T(n)(`site.seoDescription`),error:u(`seo.description`)},{default:E(()=>[F(VS,{id:r.seoDescription,modelValue:o.seoDescription,"onUpdate:modelValue":t[1]||=e=>o.seoDescription=e,rows:3,maxlength:300},null,8,[`id`,`modelValue`])]),_:1},8,[`id`,`label`,`error`]),P(`div`,_C,[P(`div`,vC,[F(YS,{modelValue:o.ogImage,"onUpdate:modelValue":t[2]||=e=>o.ogImage=e,label:T(n)(`site.shareImage`),choose:T(n)(`common.choose`)},null,8,[`modelValue`,`label`,`choose`]),u(`og_image`)?(j(),M(`p`,yC,S(u(`og_image`)),1)):(j(),M(`p`,bC,S(T(n)(`site.shareImageHint`)),1))]),P(`div`,xC,[F(YS,{modelValue:o.favicon,"onUpdate:modelValue":t[3]||=e=>o.favicon=e,label:T(n)(`site.favicon`),choose:T(n)(`common.choose`),thumb:`icon`},null,8,[`modelValue`,`label`,`choose`]),u(`favicon`)?(j(),M(`p`,SC,S(u(`favicon`)),1)):L(``,!0)])]),F(Q,{id:r.locale,label:T(n)(`site.locale`),hint:T(n)(`site.localeHint`),error:u(`locale`)},{default:E(()=>[F(VS,{id:r.locale,modelValue:o.locale,"onUpdate:modelValue":t[4]||=e=>o.locale=e,maxlength:5,placeholder:`en`},null,8,[`id`,`modelValue`])]),_:1},8,[`id`,`label`,`hint`,`error`]),s.value.length>0?(j(),M(`section`,CC,[P(`h3`,wC,S(T(n)(`site.details`)),1),(j(!0),M(A,null,k(s.value,e=>(j(),M(`div`,{key:e.key,class:`lze-field`},[F(gC,{field:e,"model-value":o.meta[e.key],"onUpdate:modelValue":t=>f(e.key,t)},null,8,[`field`,`model-value`,`onUpdate:modelValue`]),u(`meta.${e.key}`)?(j(),M(`p`,TC,S(u(`meta.${e.key}`)),1)):L(``,!0)]))),128))])):L(``,!0),(j(!0),M(A,null,k(d.value,e=>(j(),M(`p`,{key:e.path+e.message,class:`lze-error`,role:`alert`},S(e.path?`${e.path}: `:``)+S(e.message),1))),128)),P(`div`,EC,[F(Z,{variant:`primary`,size:`md`,type:`submit`,disabled:o.saving},{default:E(()=>[I(S(T(n)(`site.save`)),1)]),_:1},8,[`disabled`]),F(Z,{size:`md`,onClick:t[5]||=e=>i.value=!1},{default:E(()=>[I(S(T(n)(`common.cancel`)),1)]),_:1})])],32)]),_:1},8,[`open`,`title`,`description`]))}}),OC={key:0,class:`lze-rows`},kC={class:`lze-hint`},AC={key:1,class:`lze-hint`},jC={key:2,class:`lze-dialog-actions`},MC=/* @__PURE__ */ D({__name:`SubmissionsDialog`,setup(e){let t=Y(),n=t.t,r=t.dialogModel(`submissions`),i=/* @__PURE__ */ w([]),a=/* @__PURE__ */ w(null),o=/* @__PURE__ */ w(!1),s=new Intl.DateTimeFormat(t.i18n.locale,{dateStyle:`medium`,timeStyle:`short`});async function c(e){o.value=!0;let r=await t.client(`GET /submissions`,e?{cursor:e}:void 0);if(o.value=!1,!r.ok){t.notify(n(`submissions.failed`,{message:t.failureText(r.failure)}),`error`);return}i.value=e?[...i.value,...r.value.data]:r.value.data,a.value=r.value.next}$n(r,e=>{e&&c(null)});let l=R(()=>new Map(ps(t.state.draft).flatMap(e=>e.elements).flatMap(e=>{let t=e.props.label;return typeof t==`string`&&t.trim()!==``?[[vb(e.id),t.trim()]]:[]})));return(e,t)=>(j(),N(xS,{open:T(r),"onUpdate:open":t[1]||=e=>/* @__PURE__ */ on(r)?r.value=e:null,title:T(n)(`submissions.title`),description:T(n)(`submissions.description`),size:`lg`},{default:E(()=>[i.value.length>0?(j(),M(`ul`,OC,[(j(!0),M(A,null,k(i.value,e=>(j(),M(`li`,{key:e.id,class:`lze-submission`},[P(`p`,kC,S(T(s).format(new Date(e.createdAt)))+` · `+S(T(n)(`submissions.from`,{page:e.page,source:e.source})),1),P(`dl`,null,[(j(!0),M(A,null,k(e.fields,(e,t)=>(j(),M(A,{key:t},[P(`dt`,null,S(l.value.get(String(t))??t),1),P(`dd`,null,S(typeof e==`boolean`?T(n)(e?`submissions.checked`:`submissions.unchecked`):e),1)],64))),128))])]))),128))])):o.value?L(``,!0):(j(),M(`p`,AC,S(T(n)(`submissions.empty`)),1)),a.value?(j(),M(`div`,jC,[F(Z,{disabled:o.value,onClick:t[0]||=e=>c(a.value)},{default:E(()=>[I(S(T(n)(`submissions.more`)),1)]),_:1},8,[`disabled`])])):L(``,!0)]),_:1},8,[`open`,`title`,`description`]))}}),NC={class:`lze-range`},PC={class:`lze-label`},FC={class:`lze-muted`},IC=[`min`,`max`,`step`,`value`],LC=/* @__PURE__ */ D({__name:`RangeInput`,props:/*@__PURE__*/ Wr({label:{},min:{},max:{},step:{default:1},fallback:{default:0},format:{type:Function,default:e=>String(e)}},{modelValue:{required:!0},modelModifiers:{}}),emits:/*@__PURE__*/ Wr([`commit`],[`update:modelValue`]),setup(e,{emit:t}){let n=ui(e,`modelValue`),r=t;return(t,i)=>(j(),M(`label`,NC,[P(`span`,PC,[I(S(e.label)+` `,1),P(`span`,FC,S(e.format(n.value??e.fallback)),1)]),P(`input`,{type:`range`,min:e.min,max:e.max,step:e.step,value:n.value??e.fallback,onInput:i[0]||=e=>n.value=Number(e.target.value),onChange:i[1]||=e=>r(`commit`)},null,40,IC)]))}}),RC=[`href`],zC={class:`lze-field`},BC={class:`lze-label`},VC={class:`lze-row`},HC=[`onClick`],UC={class:`lze-row`,"aria-hidden":`true`},WC={class:`lze-field`},GC={class:`lze-heading`},KC={class:`lze-label`},qC={class:`lze-hint`},JC={class:`lze-theme-colors`},YC=[`onUpdate:modelValue`,`aria-label`],XC=[`value`,`aria-label`,`onInput`],ZC={class:`lze-grid-2`},QC={class:`lze-grid-2`},$C=[`aria-label`],ew={class:`lze-dialog-actions`},tw=/* @__PURE__ */ D({__name:`ThemeDialog`,setup(e){let t=Y(),n=t.t,r={heading:O(),body:O(),width:O()},i=/^#[0-9a-fA-F]{6}$/,a=t.dialogModel(`theme`),o=/* @__PURE__ */ Jt(xs(t.state.workspace.site.theme)),s=/* @__PURE__ */ w([]),c=/* @__PURE__ */ w(!1),l=R(()=>{let e=t.state.workspace.site.theme,n=Object.fromEntries(Vs.map(t=>[t,i.test(o[t])?o[t]:e[t]]));return{...o,...n}});$n(a,e=>{e&&(Object.assign(o,xs(t.state.workspace.site.theme)),s.value=[]),t.state.themeDraft=e?xs(l.value):null},{immediate:!0}),$n(l,e=>{a.value&&(t.state.themeDraft=xs(e))});let u=Gs.map(e=>({value:e,label:`${e} · ${n(Ks(e))}`})),d=qs.map(e=>({value:e,label:n(Js(e))}));function f(e){Object.assign(o,e)}function p(){ec(t.state.draft,l.value),t.commit()}async function m(){c.value=!0,s.value=await t.updateSite({theme:l.value}),c.value=!1,s.value.length===0&&(a.value=!1,t.notify(n(`theme.saved`)))}let h=e=>l.value[e];return(e,t)=>(j(),N(xS,{open:T(a),"onUpdate:open":t[5]||=e=>/* @__PURE__ */ on(a)?a.value=e:null,title:T(n)(`theme.title`),description:T(n)(`theme.description`),size:`xl`},{default:E(()=>[P(`link`,{rel:`stylesheet`,href:T(tc)([l.value.heading_font,l.value.body_font])},null,8,RC),P(`form`,{class:`lze-stack`,novalidate:``,onSubmit:ts(m,[`prevent`])},[P(`section`,zC,[P(`h3`,BC,S(T(n)(`theme.palettes`)),1),P(`div`,VC,[(j(!0),M(A,null,k(T(Ws),e=>(j(),M(`button`,{key:e.name,type:`button`,class:`lze-palette-choice`,onClick:t=>f(e.colors)},[P(`span`,UC,[(j(),M(A,null,k([`primary`,`secondary`,`surface`],t=>P(`span`,{key:t,class:`lze-dot`,style:x({background:e.colors[t]})},null,4)),64))]),I(` `+S(T(n)(e.name)),1)],8,HC))),128))])]),P(`section`,WC,[P(`div`,GC,[P(`h3`,KC,S(T(n)(`theme.colors`)),1),F(Z,{onClick:p},{default:E(()=>[I(S(T(n)(`theme.link`)),1)]),_:1})]),P(`p`,qC,S(T(n)(`theme.linkHint`)),1),P(`div`,JC,[(j(!0),M(A,null,k(T(Vs),e=>(j(),M(`div`,{key:e,class:`lze-theme-color`},[P(`span`,null,S(T(n)(`token.${e}`)),1),Gn(P(`input`,{"onUpdate:modelValue":t=>o[e]=t,class:`lze-input lze-hex`,maxlength:`7`,spellcheck:`false`,"aria-label":T(n)(`theme.hex`,{label:T(n)(`token.${e}`)})},null,8,YC),[[Vo,o[e]]]),P(`input`,{type:`color`,value:h(e),"aria-label":T(n)(`token.${e}`),onInput:t=>o[e]=t.target.value},null,40,XC)]))),128))])]),P(`section`,ZC,[F(Q,{id:r.heading,label:T(n)(`theme.headingFont`)},{default:E(()=>[F($,{id:r.heading,"model-value":o.heading_font,options:T(u),"onUpdate:modelValue":t[0]||=e=>o.heading_font=e??o.heading_font},null,8,[`id`,`model-value`,`options`])]),_:1},8,[`id`,`label`]),F(Q,{id:r.body,label:T(n)(`theme.bodyFont`)},{default:E(()=>[F($,{id:r.body,"model-value":o.body_font,options:T(u),"onUpdate:modelValue":t[1]||=e=>o.body_font=e??o.body_font},null,8,[`id`,`model-value`,`options`])]),_:1},8,[`id`,`label`])]),P(`section`,QC,[F(LC,{"model-value":o.radius,label:T(n)(`theme.radius`),min:0,max:40,step:2,format:e=>`${e} px`,"onUpdate:modelValue":t[2]||=e=>o.radius=e??o.radius},null,8,[`model-value`,`label`,`format`]),F(Q,{id:r.width,label:T(n)(`theme.maxWidth`)},{default:E(()=>[F($,{id:r.width,"model-value":o.max_width,options:T(d),"onUpdate:modelValue":t[3]||=e=>o.max_width=e??o.max_width},null,8,[`id`,`model-value`,`options`])]),_:1},8,[`id`,`label`])]),P(`section`,{class:`lze-theme-preview`,"aria-label":T(n)(`theme.previewLabel`),style:x({background:l.value.surface,color:l.value.text,borderRadius:`${l.value.radius}px`})},[P(`p`,{class:`lze-theme-preview-heading`,style:x({fontFamily:`'${l.value.heading_font}', sans-serif`})},S(T(n)(`theme.previewHeading`)),5),P(`p`,{style:x({fontFamily:`'${l.value.body_font}', sans-serif`,color:l.value.muted})},S(T(n)(`theme.previewText`)),5),P(`span`,{class:`lze-theme-preview-button`,style:x({background:l.value.primary,color:l.value.background,borderRadius:`${l.value.radius}px`,fontFamily:`'${l.value.body_font}', sans-serif`})},S(T(n)(`theme.previewButton`)),5)],12,$C),(j(!0),M(A,null,k(s.value,e=>(j(),M(`p`,{key:e.path+e.message,class:`lze-error`,role:`alert`},S(e.path?`${e.path}: `:``)+S(e.message),1))),128)),P(`div`,ew,[F(Z,{variant:`primary`,size:`md`,type:`submit`,disabled:c.value},{default:E(()=>[I(S(T(n)(`theme.save`)),1)]),_:1},8,[`disabled`]),F(Z,{size:`md`,onClick:t[4]||=e=>a.value=!1},{default:E(()=>[I(S(T(n)(`common.cancel`)),1)]),_:1})])],32)]),_:1},8,[`open`,`title`,`description`]))}}),nw={key:0,class:`lze-rows`},rw={key:0,class:`lze-hint`},iw={key:1,class:`lze-hint`},aw=/* @__PURE__ */ D({__name:`VersionsDialog`,setup(e){let t=Y(),n=t.t,r=t.dialogModel(`versions`),i=R(()=>t.state.page?.versions??[]),a=new Intl.DateTimeFormat(t.i18n.locale,{dateStyle:`medium`,timeStyle:`short`});return(e,o)=>(j(),N(xS,{open:T(r),"onUpdate:open":o[0]||=e=>/* @__PURE__ */ on(r)?r.value=e:null,title:T(n)(`versions.title`),description:T(n)(`versions.description`),size:`lg`},{default:E(()=>[i.value.length>0?(j(),M(`ul`,nw,[(j(!0),M(A,null,k(i.value,e=>(j(),M(`li`,{key:e.id,class:`lze-row-item`},[P(`div`,null,[P(`p`,null,S(T(a).format(new Date(e.createdAt))),1),e.by?(j(),M(`p`,rw,S(T(n)(`versions.by`,{name:e.by})),1)):L(``,!0)]),F(Z,{onClick:n=>T(t).restoreVersion(e.id)},{default:E(()=>[I(S(T(n)(`versions.restore`)),1)]),_:1},8,[`onClick`])]))),128))])):(j(),M(`p`,iw,S(T(n)(`versions.empty`)),1))]),_:1},8,[`open`,`title`,`description`]))}}),ow=/*#__PURE__*/ JSON.parse(`{"activity":[["path",{"d":"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2"}]],"arrow-right":[["path",{"d":"M5 12h14"}],["path",{"d":"m12 5 7 7-7 7"}]],"arrow-up-right":[["path",{"d":"M7 7h10v10"}],["path",{"d":"M7 17 17 7"}]],"award":[["path",{"d":"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526"}],["circle",{"cx":"12","cy":"8","r":"6"}]],"badge-check":[["path",{"d":"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z"}],["path",{"d":"m16 9-5.5 5.5L8 12"}]],"baby":[["path",{"d":"M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5"}],["path",{"d":"M15 12h.01"}],["path",{"d":"M19.38 6.813A9 9 0 0 1 20.8 10.2a2 2 0 0 1 0 3.6 9 9 0 0 1-17.6 0 2 2 0 0 1 0-3.6A9 9 0 0 1 12 3c2 0 3.5 1.1 3.5 2.5s-.9 2.5-2 2.5c-.8 0-1.5-.4-1.5-1"}],["path",{"d":"M9 12h.01"}]],"banknote":[["rect",{"width":"20","height":"12","x":"2","y":"6","rx":"2"}],["circle",{"cx":"12","cy":"12","r":"2"}],["path",{"d":"M6 12h.01M18 12h.01"}]],"bone":[["path",{"d":"M17 10c.7-.7 1.69 0 2.5 0a2.5 2.5 0 1 0 0-5 .5.5 0 0 1-.5-.5 2.5 2.5 0 1 0-5 0c0 .81.7 1.8 0 2.5l-7 7c-.7.7-1.69 0-2.5 0a2.5 2.5 0 0 0 0 5c.28 0 .5.22.5.5a2.5 2.5 0 1 0 5 0c0-.81-.7-1.8 0-2.5Z"}]],"brush":[["path",{"d":"m11 10 3 3"}],["path",{"d":"M6.5 21A3.5 3.5 0 1 0 3 17.5a2.62 2.62 0 0 1-.708 1.792A1 1 0 0 0 3 21z"}],["path",{"d":"M9.969 17.031 21.378 5.624a1 1 0 0 0-3.002-3.002L6.967 14.031"}]],"bus":[["path",{"d":"M8 6v6"}],["path",{"d":"M15 6v6"}],["path",{"d":"M2 12h19.6"}],["path",{"d":"M18 18h3s.5-1.7.8-2.8c.1-.4.2-.8.2-1.2 0-.4-.1-.8-.2-1.2l-1.4-5C20.1 6.8 19.1 6 18 6H4a2 2 0 0 0-2 2v10h3"}],["circle",{"cx":"7","cy":"18","r":"2"}],["path",{"d":"M9 18h5"}],["circle",{"cx":"16","cy":"18","r":"2"}]],"calendar":[["path",{"d":"M8 2v3"}],["path",{"d":"M16 2v3"}],["rect",{"x":"3","y":"3","width":"18","height":"18","rx":"2"}],["path",{"d":"M3 9h18"}]],"calendar-check":[["path",{"d":"M8 2v3"}],["path",{"d":"M16 2v3"}],["rect",{"x":"3","y":"3","width":"18","height":"18","rx":"2"}],["path",{"d":"M3 9h18"}],["path",{"d":"m9 15 2 2 4-4"}]],"calendar-days":[["path",{"d":"M8 2v3"}],["path",{"d":"M16 2v3"}],["rect",{"x":"3","y":"3","width":"18","height":"18","rx":"2"}],["path",{"d":"M3 9h18"}],["path",{"d":"M8 13h.01"}],["path",{"d":"M12 13h.01"}],["path",{"d":"M16 13h.01"}],["path",{"d":"M8 17h.01"}],["path",{"d":"M12 17h.01"}],["path",{"d":"M16 17h.01"}]],"camera":[["path",{"d":"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z"}],["circle",{"cx":"12","cy":"13","r":"3"}]],"car":[["path",{"d":"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2"}],["circle",{"cx":"7","cy":"17","r":"2"}],["path",{"d":"M9 17h6"}],["circle",{"cx":"17","cy":"17","r":"2"}]],"check":[["path",{"d":"M20 6 9 17l-5-5"}]],"chevron-right":[["path",{"d":"m9 18 6-6-6-6"}]],"circle-check":[["circle",{"cx":"12","cy":"12","r":"10"}],["path",{"d":"m16 9-5.5 5.5L8 12"}]],"clipboard-list":[["rect",{"width":"8","height":"4","x":"8","y":"2","rx":"1","ry":"1"}],["path",{"d":"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"}],["path",{"d":"M12 11h4"}],["path",{"d":"M12 16h4"}],["path",{"d":"M8 11h.01"}],["path",{"d":"M8 16h.01"}]],"clock":[["circle",{"cx":"12","cy":"12","r":"10"}],["path",{"d":"M12 6v6l4 2"}]],"coffee":[["path",{"d":"M10 2v2"}],["path",{"d":"M14 2v2"}],["path",{"d":"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1"}],["path",{"d":"M6 2v2"}]],"credit-card":[["rect",{"width":"20","height":"14","x":"2","y":"5","rx":"2"}],["line",{"x1":"2","x2":"22","y1":"10","y2":"10"}],["path",{"d":"M6 14h2"}]],"droplet":[["path",{"d":"M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z"}]],"file-text":[["path",{"d":"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"}],["path",{"d":"M14 2v5a1 1 0 0 0 1 1h5"}],["path",{"d":"M10 9H8"}],["path",{"d":"M16 13H8"}],["path",{"d":"M16 17H8"}]],"gift":[["path",{"d":"M12 7v14"}],["path",{"d":"M20 11v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8"}],["path",{"d":"M7.5 7a1 1 0 0 1 0-5A4.8 8 0 0 1 12 7a4.8 8 0 0 1 4.5-5 1 1 0 0 1 0 5"}],["rect",{"x":"3","y":"7","width":"18","height":"4","rx":"1"}]],"globe":[["circle",{"cx":"12","cy":"12","r":"10"}],["path",{"d":"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"}],["path",{"d":"M2 12h20"}]],"hand-heart":[["path",{"d":"M11 14h2a2 2 0 0 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 16"}],["path",{"d":"m14.45 13.39 5.05-4.694C20.196 8 21 6.85 21 5.75a2.75 2.75 0 0 0-4.797-1.837.276.276 0 0 1-.406 0A2.75 2.75 0 0 0 11 5.75c0 1.2.802 2.248 1.5 2.946L16 11.95"}],["path",{"d":"m2 15 6 6"}],["path",{"d":"m7 20 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a1 1 0 0 0-2.75-2.91"}]],"heart":[["path",{"d":"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5"}]],"heart-pulse":[["path",{"d":"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5"}],["path",{"d":"M3.22 13H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27"}]],"house":[["path",{"d":"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"}],["path",{"d":"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"}]],"image":[["rect",{"width":"18","height":"18","x":"3","y":"3","rx":"2","ry":"2"}],["circle",{"cx":"9","cy":"9","r":"2"}],["path",{"d":"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"}]],"leaf":[["path",{"d":"M11 20a10 10 0 0010-10 25.9 25.9 0 00-1.04-7.281 1 1 0 00-1.755-.325C15.833 5.5 13 5.5 9.8 6.1A7 7 0 0011 20"}],["path",{"d":"M2 21a5 5 0 012.911-4.544C7.613 15.212 8.351 15.24 11 13"}]],"lightbulb":[["path",{"d":"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"}],["path",{"d":"M9 18h6"}],["path",{"d":"M10 22h4"}]],"mail":[["path",{"d":"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7"}],["rect",{"x":"2","y":"4","width":"20","height":"16","rx":"2"}]],"map-pin":[["path",{"d":"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0"}],["circle",{"cx":"12","cy":"10","r":"3"}]],"message-circle":[["path",{"d":"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719"}]],"microscope":[["path",{"d":"M6 18h8"}],["path",{"d":"M3 22h18"}],["path",{"d":"M14 22a7 7 0 1 0 0-14h-1"}],["path",{"d":"M9 14h2"}],["path",{"d":"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z"}],["path",{"d":"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3"}]],"moon":[["path",{"d":"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401"}]],"percent":[["line",{"x1":"19","x2":"5","y1":"5","y2":"19"}],["circle",{"cx":"6.5","cy":"6.5","r":"2.5"}],["circle",{"cx":"17.5","cy":"17.5","r":"2.5"}]],"phone":[["path",{"d":"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384"}]],"pill":[["path",{"d":"m10.5 20.5 10-10a4.95 4.95 0 1 0-7-7l-10 10a4.95 4.95 0 1 0 7 7Z"}],["path",{"d":"m8.5 8.5 7 7"}]],"play":[["path",{"d":"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z"}]],"quote":[["path",{"d":"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z"}],["path",{"d":"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z"}]],"scissors":[["circle",{"cx":"6","cy":"6","r":"3"}],["path",{"d":"M8.12 8.12 12 12"}],["path",{"d":"M20 4 8.12 15.88"}],["circle",{"cx":"6","cy":"18","r":"3"}],["path",{"d":"M14.8 14.8 20 20"}]],"send":[["path",{"d":"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z"}],["path",{"d":"m21.854 2.147-10.94 10.939"}]],"share-2":[["circle",{"cx":"18","cy":"5","r":"3"}],["circle",{"cx":"6","cy":"12","r":"3"}],["circle",{"cx":"18","cy":"19","r":"3"}],["line",{"x1":"8.59","x2":"15.42","y1":"13.51","y2":"17.49"}],["line",{"x1":"15.41","x2":"8.59","y1":"6.51","y2":"10.49"}]],"shield-check":[["path",{"d":"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"}],["path",{"d":"m9 12 2 2 4-4"}]],"sparkles":[["path",{"d":"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z"}],["path",{"d":"M20 2v4"}],["path",{"d":"M22 4h-4"}],["circle",{"cx":"4","cy":"20","r":"2"}]],"star":[["path",{"d":"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z"}]],"stethoscope":[["path",{"d":"M11 2v2"}],["path",{"d":"M5 2v2"}],["path",{"d":"M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1"}],["path",{"d":"M8 15a6 6 0 0 0 12 0v-3"}],["circle",{"cx":"20","cy":"10","r":"2"}]],"sun":[["circle",{"cx":"12","cy":"12","r":"4"}],["path",{"d":"M12 2v2"}],["path",{"d":"M12 20v2"}],["path",{"d":"m4.93 4.93 1.41 1.41"}],["path",{"d":"m17.66 17.66 1.41 1.41"}],["path",{"d":"M2 12h2"}],["path",{"d":"M20 12h2"}],["path",{"d":"m6.34 17.66-1.41 1.41"}],["path",{"d":"m19.07 4.93-1.41 1.41"}]],"syringe":[["path",{"d":"m18 2 4 4"}],["path",{"d":"m17 7 3-3"}],["path",{"d":"M19 9 8.7 19.3c-1 1-2.5 1-3.4 0l-.6-.6c-1-1-1-2.5 0-3.4L15 5"}],["path",{"d":"m9 11 4 4"}],["path",{"d":"m5 19-3 3"}],["path",{"d":"m14 4 6 6"}]],"thumbs-up":[["path",{"d":"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z"}],["path",{"d":"M7 10v12"}]],"timer":[["line",{"x1":"10","x2":"14","y1":"2","y2":"2"}],["line",{"x1":"12","x2":"15","y1":"14","y2":"11"}],["circle",{"cx":"12","cy":"14","r":"8"}]],"user":[["path",{"d":"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}],["circle",{"cx":"12","cy":"7","r":"4"}]],"users":[["path",{"d":"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"}],["path",{"d":"M16 3.128a4 4 0 0 1 0 7.744"}],["path",{"d":"M22 21v-2a4 4 0 0 0-3-3.87"}],["circle",{"cx":"9","cy":"7","r":"4"}]],"video":[["path",{"d":"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5"}],["rect",{"x":"2","y":"6","width":"14","height":"12","rx":"2"}]],"wallet":[["path",{"d":"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1"}],["path",{"d":"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4"}]],"wifi":[["path",{"d":"M12 20h.01"}],["path",{"d":"M2 8.82a15 15 0 0 1 20 0"}],["path",{"d":"M5 12.859a10 10 0 0 1 14 0"}],["path",{"d":"M8.5 16.429a5 5 0 0 1 7 0"}]],"at-sign":[["circle",{"cx":"12","cy":"12","r":"4"}],["path",{"d":"M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8"}]]}`),sw=/* @__PURE__ */ new Set([`path`,`circle`,`rect`,`line`]),cw=e=>Array.isArray(e)&&e.length===2&&typeof e[0]==`string`&&sw.has(e[0])&&typeof e[1]==`object`&&e[1]!==null&&Object.values(e[1]).every(e=>typeof e==`string`);function lw(e){let t=typeof e==`object`&&e?Object.entries(e):[];return new Map(t.flatMap(([e,t])=>Array.isArray(t)&&t.every(cw)?[[e,t]]:[]))}var uw=lw(ow),dw=[...uw.keys()],fw=[`width`,`height`,`stroke-width`],pw=/* @__PURE__ */ D({__name:`CatalogIcon`,props:{name:{},size:{default:18},stroke:{default:2}},setup(e){let t=e,n=R(()=>uw.get(t.name)??[]);return(t,r)=>(j(),M(`svg`,{width:e.size,height:e.size,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":e.stroke,"stroke-linecap":`round`,"stroke-linejoin":`round`,"aria-hidden":`true`},[(j(!0),M(A,null,k(n.value,(e,t)=>(j(),N(Pr(e[0]),ya({key:t},{ref_for:!0},e[1]),null,16))),128))],8,fw))}}),mw={heading:jx,text:Ox,image:rx,button:px,divider:dx,video:Px,shape:Tx,icon:Cx,navbar:ux,box:Yb,gallery:ix,slider:nx,input:kx,textarea:gx,select:sx,checkbox:wx},hw=/* @__PURE__ */ D({__name:`ElementIcon`,props:{element:{},size:{default:14}},setup(e){let t=e,n=Y(),r=R(()=>n.kindOf(t.element));return(t,n)=>r.value.kind===`core`?(j(),N(Pr(T(mw)[r.value.element.type]),{key:0,size:e.size,"aria-hidden":`true`},null,8,[`size`])):r.value.kind===`app`?(j(),N(pw,{key:1,name:r.value.spec.icon,size:e.size},null,8,[`name`,`size`])):(j(),N(T(Jb),{key:2,size:e.size,"aria-hidden":`true`},null,8,[`size`]))}}),gw={class:`lze-sidebar lze-left`},_w={class:`lze-tabs`,role:`tablist`},vw=[`aria-selected`,`onClick`],yw={key:0,class:`lze-scroll lze-stack`,role:`tabpanel`},bw={class:`lze-palette`},xw=[`title`,`onPointerdown`,`onClick`],Sw={class:`lze-group-title`},Cw={class:`lze-palette`},ww=[`title`,`onPointerdown`,`onClick`],Tw={class:`lze-hint`},Ew={class:`lze-group-title`},Dw={class:`lze-palette`},Ow=[`title`,`onPointerdown`,`onClick`],kw={class:`lze-hint`},Aw={key:1,class:`lze-scroll lze-stack`,role:`tabpanel`},jw={class:`lze-hint`},Mw={class:`lze-group-label`},Nw=[`onClick`],Pw={key:2,class:`lze-scroll`,role:`tabpanel`},Fw={class:`lze-heading lze-pad`},Iw={class:`lze-muted`},Lw=[`data-selected`],Rw=[`aria-label`,`onClick`],zw=[`onClick`],Bw={class:`lze-muted`},Vw={key:0,class:`lze-layer-actions`},Hw=[`aria-label`,`disabled`,`onClick`],Uw=[`aria-label`,`disabled`,`onClick`],Ww={class:`lze-layer-children`},Gw=[`data-selected`],Kw=[`onClick`],qw=[`data-locked`,`title`,`aria-label`,`onClick`],Jw={key:0,class:`lze-layer-children`},Yw=[`data-selected`],Xw=[`onClick`],Zw={key:0,class:`lze-hint lze-pad`},Qw={key:3,class:`lze-scroll`,role:`tabpanel`},$w={class:`lze-heading lze-pad`},eT={class:`lze-hint`},tT={class:`lze-stack lze-pad`},nT=[`data-active`],rT={class:`lze-row`},iT=[`onUpdate:modelValue`,`aria-label`],aT=[`aria-label`,`onClick`],oT={class:`lze-heading`},sT={class:`lze-muted`},cT=[`onClick`],lT={key:0,class:`lze-hint`},uT={key:4,class:`lze-scroll`,role:`tabpanel`},dT={class:`lze-heading lze-pad`},fT={class:`lze-hint`},pT={class:`lze-media-grid lze-pad`},mT=[`title`,`onPointerdown`,`onClick`],hT=[`src`,`alt`],gT={key:0,class:`lze-hint`},_T=/* @__PURE__ */ D({__name:`LeftSidebar`,props:{dropPoint:{type:Function}},setup(e){let t=e,n=Y(),r=n.t,i=/* @__PURE__ */ w(`elements`),a=[{key:`elements`,label:`tabs.elements`,icon:_x},{key:`blocks`,label:`tabs.blocks`,icon:ox},{key:`layers`,label:`tabs.layers`,icon:ax},{key:`modals`,label:`tabs.modals`,icon:mx},{key:`media`,label:`tabs.media`,icon:rx}],o=ls.filter(e=>Ey[e].group===`content`),s=ls.filter(e=>Ey[e].group===`form`),c=/* @__PURE__ */ w(null);function l(e,t,n,r){e.button===0&&(c.value={insertable:t,src:r,label:n,x:e.clientX,y:e.clientY,moved:!1},e.currentTarget.setPointerCapture(e.pointerId))}function u(e){let t=c.value;if(t){let n=t.moved||Math.hypot(e.clientX-t.x,e.clientY-t.y)>4;c.value={...t,x:e.clientX,y:e.clientY,moved:n}}}function d(e){let r=c.value;if(c.value=null,!r)return;let i=r.moved?t.dropPoint(e.clientX,e.clientY):null;(!r.moved||i)&&n.addElement(r.insertable,i??void 0,r.src)}function f(e,t,r){e.detail===0&&n.addElement(t,void 0,r)}let p=e=>r(Ey[e].label),m=/* @__PURE__ */ w([]);function h(e){m.value=m.value.includes(e)?m.value.filter(t=>t!==e):[...m.value,e]}let g=R(()=>n.state.selection.kind===`elements`?n.state.selection.ids:[]),_=e=>n.state.selection.kind===`canvas`&&n.state.selection.canvas===e;function v(e){let t=n.kindOf(e);return jy(e,t.kind===`core`?r(t.spec.label):t.kind===`app`?n.i18n.localized(t.spec.label):r(`type.unknown`))}function ee(e){e.locked=!e.locked,n.commit()}let y=R(()=>n.state.draft.modals??[]);return(e,t)=>(j(),M(`aside`,gw,[P(`div`,_w,[(j(),M(A,null,k(a,e=>P(`button`,{key:e.key,type:`button`,role:`tab`,"aria-selected":i.value===e.key,onClick:t=>i.value=e.key},[(j(),N(Pr(e.icon),{size:16,"aria-hidden":`true`})),I(S(T(r)(e.label)),1)],8,vw)),64))]),i.value===`elements`?(j(),M(`div`,yw,[P(`div`,bw,[(j(!0),M(A,null,k(T(o),e=>(j(),M(`button`,{key:e,type:`button`,class:`lze-palette-item`,title:T(r)(`elements.addHint`),onPointerdown:t=>l(t,{kind:`core`,type:e},p(e)),onClick:t=>f(t,{kind:`core`,type:e}),onPointermove:u,onPointerup:d,onPointercancel:t[0]||=e=>c.value=null},[(j(),N(Pr(T(mw)[e]),{size:16,"aria-hidden":`true`})),I(S(p(e)),1)],40,xw))),128))]),T(n).catalog.value.elements.length?(j(),M(A,{key:0},[P(`p`,Sw,S(T(r)(`elements.app`)),1),P(`div`,Cw,[(j(!0),M(A,null,k(T(n).catalog.value.elements,e=>(j(),M(`button`,{key:e.type,type:`button`,class:`lze-palette-item`,title:T(r)(`elements.addHint`),onPointerdown:t=>l(t,{kind:`app`,spec:e},T(n).i18n.localized(e.label)),onClick:t=>f(t,{kind:`app`,spec:e}),onPointermove:u,onPointerup:d,onPointercancel:t[1]||=e=>c.value=null},[F(pw,{name:e.icon,size:16},null,8,[`name`]),I(S(T(n).i18n.localized(e.label)),1)],40,ww))),128))]),P(`p`,Tw,S(T(r)(`elements.appHint`)),1)],64)):L(``,!0),P(`p`,Ew,S(T(r)(`elements.form`)),1),P(`div`,Dw,[(j(!0),M(A,null,k(T(s),e=>(j(),M(`button`,{key:e,type:`button`,class:`lze-palette-item`,title:T(r)(`elements.addHint`),onPointerdown:t=>l(t,{kind:`core`,type:e},p(e)),onClick:t=>f(t,{kind:`core`,type:e}),onPointermove:u,onPointerup:d,onPointercancel:t[2]||=e=>c.value=null},[(j(),N(Pr(T(mw)[e]),{size:16,"aria-hidden":`true`})),I(S(p(e)),1)],40,Ow))),128))]),P(`p`,kw,S(T(r)(`elements.formHint`)),1)])):i.value===`blocks`?(j(),M(`div`,Aw,[P(`p`,jw,S(T(r)(`elements.sectionsHint`)),1),(j(!0),M(A,null,k(T(Jy),e=>(j(),M(`div`,{key:e.key,class:`lze-list`},[P(`p`,Mw,S(T(r)(e.name)),1),(j(!0),M(A,null,k(T(qy).filter(t=>t.group===e.key),e=>(j(),M(`button`,{key:e.key,type:`button`,class:`lze-list-item`,onClick:t=>T(n).addSection(T(Zy)(e.key))},S(T(r)(e.name)),9,Nw))),128))]))),128))])):i.value===`layers`?(j(),M(`div`,Pw,[P(`div`,Fw,[P(`span`,Iw,S(T(n).activeModal.value?T(r)(`layers.modal`,{title:T(n).activeModal.value.title}):T(r)(`layers.count`,{n:T(n).state.draft.sections.length})),1),T(n).activeModal.value?L(``,!0):(j(),M(`button`,{key:0,type:`button`,class:`lze-btn`,"data-variant":`ghost`,onClick:t[3]||=e=>T(n).addSection()},[F(T(_x),{size:14,"aria-hidden":`true`}),I(S(T(r)(`common.new`)),1)]))]),(j(!0),M(A,null,k(T(n).canvases.value,(e,t)=>(j(),M(`div`,{key:e.id,class:`lze-layer-group`},[P(`div`,{class:`lze-layer-row`,"data-selected":_(e.id)},[P(`button`,{type:`button`,class:`lze-icon-btn`,"aria-label":m.value.includes(e.id)?T(r)(`layers.expand`):T(r)(`layers.collapse`),onClick:t=>h(e.id)},[F(T(Kb),{size:14,style:x({transform:m.value.includes(e.id)?`rotate(-90deg)`:void 0}),"aria-hidden":`true`},null,8,[`style`])],8,Rw),P(`button`,{type:`button`,class:`lze-layer-name`,onClick:t=>T(n).selectCanvas(e.id)},[F(T(tx),{size:14,"aria-hidden":`true`}),P(`span`,null,S(T(fs)(e)?e.title:T(r)(`layers.section`,{n:t+1})),1),P(`span`,Bw,S(e.elements.length),1)],8,zw),T(fs)(e)?L(``,!0):(j(),M(`span`,Vw,[P(`button`,{type:`button`,class:`lze-icon-btn`,"aria-label":T(r)(`layers.up`),disabled:t===0,onClick:e=>T(n).moveSection(t,-1)},[F(T(qb),{size:14,"aria-hidden":`true`})],8,Hw),P(`button`,{type:`button`,class:`lze-icon-btn`,"aria-label":T(r)(`layers.down`),disabled:t===T(n).canvases.value.length-1,onClick:e=>T(n).moveSection(t,1)},[F(T(Kb),{size:14,"aria-hidden":`true`})],8,Uw)]))],8,Lw),Gn(P(`div`,Ww,[(j(!0),M(A,null,k(e.elements,t=>(j(),M(A,{key:t.id},[P(`div`,{class:`lze-layer-row`,"data-selected":g.value.includes(t.id)},[P(`button`,{type:`button`,class:`lze-layer-name`,onClick:r=>T(n).select(e.id,t.id,r.shiftKey)},[F(hw,{element:t},null,8,[`element`]),P(`span`,null,S(v(t)),1)],8,Kw),P(`button`,{type:`button`,class:`lze-icon-btn lze-lock-toggle`,"data-locked":t.locked===!0,title:t.locked?T(r)(`layers.unlock`):T(r)(`layers.lock`),"aria-label":t.locked?T(r)(`layers.unlock`):T(r)(`layers.lock`),onClick:e=>ee(t)},[t.locked?(j(),N(T(lx),{key:0,size:12,"aria-hidden":`true`})):(j(),N(T(cx),{key:1,size:12,"aria-hidden":`true`}))],8,qw)],8,Gw),t.children?.length?(j(),M(`div`,Jw,[(j(!0),M(A,null,k(t.children,t=>(j(),M(`div`,{key:t.id,class:`lze-layer-row`,"data-selected":g.value.includes(t.id)},[P(`button`,{type:`button`,class:`lze-layer-name`,onClick:r=>T(n).select(e.id,t.id,r.shiftKey)},[F(hw,{element:t},null,8,[`element`]),P(`span`,null,S(v(t)),1)],8,Xw)],8,Yw))),128))])):L(``,!0)],64))),128)),e.elements.length===0?(j(),M(`p`,Zw,S(T(r)(`layers.empty`)),1)):L(``,!0)],512),[[to,!m.value.includes(e.id)]])]))),128))])):i.value===`modals`?(j(),M(`div`,Qw,[P(`div`,$w,[P(`span`,eT,S(T(r)(`modals.hint`)),1),P(`button`,{type:`button`,class:`lze-btn`,"data-variant":`ghost`,onClick:t[4]||=e=>T(n).addModal()},[F(T(_x),{size:14,"aria-hidden":`true`}),I(S(T(r)(`common.new`)),1)])]),P(`div`,tT,[(j(!0),M(A,null,k(y.value,e=>(j(),M(`div`,{key:e.id,class:`lze-card`,"data-active":T(n).state.view.kind===`modal`&&T(n).state.view.id===e.id},[P(`div`,rT,[Gn(P(`input`,{"onUpdate:modelValue":t=>e.title=t,class:`lze-input`,maxlength:`120`,"aria-label":T(r)(`modals.titleLabel`),onChange:t[5]||=e=>T(n).commit()},null,40,iT),[[Vo,e.title]]),P(`button`,{type:`button`,class:`lze-icon-btn`,"data-tone":`danger`,"aria-label":T(r)(`modals.delete`),onClick:t=>T(n).removeModal(e.id)},[F(T(Ax),{size:14,"aria-hidden":`true`})],8,aT)]),P(`div`,oT,[P(`span`,sT,S(T(r)(`modals.elements`,{n:e.elements.length})),1),P(`button`,{type:`button`,class:`lze-btn`,onClick:t=>T(n).openModal(T(n).state.view.kind===`modal`&&T(n).state.view.id===e.id?null:e.id)},S(T(n).state.view.kind===`modal`&&T(n).state.view.id===e.id?T(r)(`common.close`):T(r)(`modals.edit`)),9,cT)])],8,nT))),128)),y.value.length===0?(j(),M(`p`,lT,S(T(r)(`modals.empty`)),1)):L(``,!0)])])):(j(),M(`div`,uT,[P(`div`,dT,[P(`span`,fT,S(T(r)(`media.hint`)),1),P(`button`,{type:`button`,class:`lze-btn`,"data-variant":`ghost`,onClick:t[6]||=e=>T(n).openLibrary()},[F(T(_x),{size:14,"aria-hidden":`true`}),I(S(T(r)(`media.upload`)),1)])]),P(`div`,pT,[(j(!0),M(A,null,k(T(n).state.workspace.assets,e=>(j(),M(`button`,{key:e.id,type:`button`,class:`lze-media-item`,title:e.name,onPointerdown:t=>l(t,{kind:`core`,type:`image`},e.name,e.ref),onClick:t=>f(t,{kind:`core`,type:`image`},e.ref),onPointermove:u,onPointerup:d,onPointercancel:t[7]||=e=>c.value=null},[P(`img`,{src:e.thumb,alt:e.name,loading:`lazy`,draggable:`false`},null,8,hT)],40,mT))),128)),T(n).state.workspace.assets.length===0?(j(),M(`p`,gT,S(T(r)(`media.empty`)),1)):L(``,!0)])])),c.value?.moved?(j(),M(`p`,{key:5,class:`lze-drag-ghost`,style:x({left:`${c.value.x+12}px`,top:`${c.value.y+12}px`})},S(c.value.label),5)):L(``,!0)]))}}),vT=/* @__PURE__ */ D({__name:`AppContent`,props:{element:{},spec:{}},setup(e){let t=e,n=Y();function r(e,n){t.element.props={...t.element.props,[e]:n}}return(t,i)=>(j(!0),M(A,null,k(e.spec.fields,t=>(j(),N(gC,{key:t.key,field:t,"model-value":e.element.props[t.key],"onUpdate:modelValue":e=>r(t.key,e),onCommit:i[0]||=e=>T(n).commit()},null,8,[`field`,`model-value`,`onUpdate:modelValue`]))),128))}}),yT=/* @__PURE__ */ D({__name:`ButtonContent`,props:{element:{}},setup(e){let t=Y(),n=t.t,r=O();return(i,a)=>(j(),M(A,null,[F(Q,{id:T(r),label:T(n)(`el.buttonLabel`)},{default:E(()=>[F(VS,{id:T(r),modelValue:e.element.props.label,"onUpdate:modelValue":a[0]||=t=>e.element.props.label=t,maxlength:80,onCommit:a[1]||=e=>T(t).commit()},null,8,[`id`,`modelValue`])]),_:1},8,[`id`,`label`]),F(Q,{label:T(n)(`el.action`)},{default:E(()=>[F(mC,{modelValue:e.element.props.action,"onUpdate:modelValue":a[2]||=t=>e.element.props.action=t,label:T(n)(`el.action`),onCommit:a[3]||=e=>T(t).commit()},null,8,[`modelValue`,`label`])]),_:1},8,[`label`])],64))}}),bT=30,xT=/* @__PURE__ */ D({__name:`FormFieldContent`,props:{element:{}},setup(e){let t=e,n=Y(),r=n.t,i={label:O(),type:O(),options:O(),placeholder:O()},a=[`text`,`email`,`tel`,`number`,`date`].map(e=>({value:e,label:r(`el.inputType.${e}`)})),o=/* @__PURE__ */ w((t.element.props.options??[]).join(`
536
536
  `));function s(e){o.value=e??``,t.element.props.options=o.value.split(`
537
- `).map(e=>e.trim()).filter(Boolean).slice(0,yT)}return(t,c)=>(j(),M(A,null,[F(Q,{id:i.label,label:T(r)(`el.fieldLabel`)},{default:E(()=>[F(BS,{id:i.label,modelValue:e.element.props.label,"onUpdate:modelValue":c[0]||=t=>e.element.props.label=t,maxlength:120,onCommit:c[1]||=e=>T(n).commit()},null,8,[`id`,`modelValue`])]),_:1},8,[`id`,`label`]),e.element.type===`input`?(j(),N(Q,{key:0,id:i.type,label:T(r)(`el.inputType`)},{default:E(()=>[F($,{id:i.type,"model-value":e.element.props.input_type??`text`,options:T(a),"onUpdate:modelValue":c[2]||=t=>e.element.props.input_type=t,onCommit:c[3]||=e=>T(n).commit()},null,8,[`id`,`model-value`,`options`])]),_:1},8,[`id`,`label`])):L(``,!0),e.element.type===`select`?(j(),N(Q,{key:1,id:i.options,label:T(r)(`el.options`),hint:T(r)(`el.optionsHint`)},{default:E(()=>[F(BS,{id:i.options,"model-value":o.value,rows:4,"onUpdate:modelValue":s,onCommit:c[4]||=e=>T(n).commit()},null,8,[`id`,`model-value`])]),_:1},8,[`id`,`label`,`hint`])):L(``,!0),e.element.type===`select`?(j(),N(aC,{key:2,modelValue:e.element.props.multiple,"onUpdate:modelValue":c[5]||=t=>e.element.props.multiple=t,label:T(r)(`el.multiple`),onCommit:c[6]||=e=>T(n).commit()},null,8,[`modelValue`,`label`])):L(``,!0),e.element.type!==`checkbox`&&!(e.element.type===`select`&&e.element.props.multiple)?(j(),N(Q,{key:3,id:i.placeholder,label:T(r)(`el.placeholder`)},{default:E(()=>[F(BS,{id:i.placeholder,modelValue:e.element.props.placeholder,"onUpdate:modelValue":c[7]||=t=>e.element.props.placeholder=t,maxlength:120,onCommit:c[8]||=e=>T(n).commit()},null,8,[`id`,`modelValue`])]),_:1},8,[`id`,`label`])):L(``,!0),F(aC,{modelValue:e.element.props.required,"onUpdate:modelValue":c[9]||=t=>e.element.props.required=t,label:T(r)(`el.required`),onCommit:c[10]||=e=>T(n).commit()},null,8,[`modelValue`,`label`])],64))}}),xT=[`aria-label`],ST=[`title`,`aria-label`,`aria-pressed`,`onClick`],CT={key:0,class:`lze-hint`},wT=/* @__PURE__ */ D({__name:`IconContent`,props:{element:{}},setup(e){let t=e,n=Y(),r=n.t,i=O(),a=/* @__PURE__ */ w(``),o=R(()=>{let e=a.value.trim().toLowerCase();return e?uw.filter(t=>t.includes(e)):uw});function s(e){t.element.props.icon=e,n.commit()}return(t,c)=>(j(),M(A,null,[F(Q,{id:T(i),label:T(r)(`el.icon`)},{default:E(()=>[F(BS,{id:T(i),modelValue:a.value,"onUpdate:modelValue":c[0]||=e=>a.value=e,type:`search`,placeholder:T(r)(`el.iconSearch`)},null,8,[`id`,`modelValue`,`placeholder`]),P(`div`,{class:`lze-icon-grid`,role:`group`,"aria-label":T(r)(`el.iconOptions`)},[(j(!0),M(A,null,k(o.value,t=>(j(),M(`button`,{key:t,type:`button`,class:`lze-icon-choice`,title:t,"aria-label":t,"aria-pressed":e.element.props.icon===t,onClick:e=>s(t)},[F(fw,{name:t,size:20},null,8,[`name`])],8,ST))),128)),o.value.length===0?(j(),M(`p`,CT,S(T(r)(`el.noResults`)),1)):L(``,!0)],8,xT)]),_:1},8,[`id`,`label`]),F(IC,{modelValue:e.element.props.stroke,"onUpdate:modelValue":c[1]||=t=>e.element.props.stroke=t,label:T(r)(`el.stroke`),min:.5,max:4,step:.25,fallback:2,onCommit:c[2]||=e=>T(n).commit()},null,8,[`modelValue`,`label`])],64))}}),TT=[`rectangle`,`ellipse`,`triangle`,`blob`,`arch`,`diagonal`,`dots`,`grid`],ET=e=>TT.map(t=>({value:t,label:e(`shape.${t}`)})),DT=/* @__PURE__ */ D({__name:`ImageContent`,props:{element:{}},setup(e){let t=Y(),n=t.t,r={alt:O(),fit:O(),crop:O()},i=[`cover`,`contain`].map(e=>({value:e,label:n(`el.fit.${e}`)}));return(a,o)=>(j(),M(A,null,[F(JS,{modelValue:e.element.props.src,"onUpdate:modelValue":o[0]||=t=>e.element.props.src=t,label:T(n)(`el.image`),url:``,onCommit:o[1]||=e=>T(t).commit()},null,8,[`modelValue`,`label`]),F(Q,{id:r.alt,label:T(n)(`el.alt`)},{default:E(()=>[F(BS,{id:r.alt,modelValue:e.element.props.alt,"onUpdate:modelValue":o[2]||=t=>e.element.props.alt=t,maxlength:200,placeholder:T(n)(`el.altPlaceholder`),onCommit:o[3]||=e=>T(t).commit()},null,8,[`id`,`modelValue`,`placeholder`])]),_:1},8,[`id`,`label`]),F(Q,{id:r.fit,label:T(n)(`el.fit`)},{default:E(()=>[F($,{id:r.fit,modelValue:e.element.style.object_fit,"onUpdate:modelValue":o[4]||=t=>e.element.style.object_fit=t,options:T(i),onCommit:o[5]||=e=>T(t).commit()},null,8,[`id`,`modelValue`,`options`])]),_:1},8,[`id`,`label`]),F(Q,{id:r.crop,label:T(n)(`el.crop`)},{default:E(()=>[F($,{id:r.crop,modelValue:e.element.props.shape,"onUpdate:modelValue":o[6]||=t=>e.element.props.shape=t,options:T(ET)(T(n)),onCommit:o[7]||=e=>T(t).commit()},null,8,[`id`,`modelValue`,`options`])]),_:1},8,[`id`,`label`])],64))}}),OT={class:`lze-hint`},kT=/* @__PURE__ */ D({__name:`BoxContent`,props:{element:{}},setup(e){let t=e,n=Y(),r=n.t,i={flow:O(),align:O()},a=[`column`,`row`].map(e=>({value:e,label:r(`el.boxFlow.${e}`)})),o=[`start`,`center`,`end`,`between`].map(e=>({value:e,label:r(`section.align.${e}`)})),s=()=>t.element.children?.length??0;return(t,c)=>(j(),M(A,null,[F(Q,{id:i.flow,label:T(r)(`el.boxFlow`)},{default:E(()=>[F($,{id:i.flow,"model-value":e.element.props.flow??`column`,options:T(a),"onUpdate:modelValue":c[0]||=t=>e.element.props.flow=t,onCommit:c[1]||=e=>T(n).commit()},null,8,[`id`,`model-value`,`options`])]),_:1},8,[`id`,`label`]),F($S,{"model-value":e.element.props.flow_gap??16,label:T(r)(`section.flowGap`),min:0,max:160,suffix:`px`,"onUpdate:modelValue":c[2]||=t=>e.element.props.flow_gap=t??16,onCommit:c[3]||=e=>T(n).commit()},null,8,[`model-value`,`label`]),F(Q,{id:i.align,label:T(r)(`section.flowAlign`)},{default:E(()=>[F($,{id:i.align,"model-value":e.element.props.flow_align??`start`,options:T(o),"onUpdate:modelValue":c[4]||=t=>e.element.props.flow_align=t,onCommit:c[5]||=e=>T(n).commit()},null,8,[`id`,`model-value`,`options`])]),_:1},8,[`id`,`label`]),P(`p`,OT,S(s()===0?T(r)(`el.boxEmpty`):T(r)(`el.boxHolds`,{n:s()})),1)],64))}}),AT={class:`lze-field`},jT={class:`lze-heading`},MT={class:`lze-label`},NT={class:`lze-hint`},PT=24,FT=/* @__PURE__ */ D({__name:`PictureList`,props:{element:{}},setup(e){let t=e,n=Y(),r=n.t,i=R(()=>t.element.props.images??[]);function a(e,n){t.element.props.images=i.value.map((t,r)=>r===e?n??``:t)}function o(){t.element.props.images=[...i.value,``],n.commit()}function s(e){t.element.props.images=i.value.filter((t,n)=>n!==e),n.commit()}return(e,t)=>(j(),M(`div`,AT,[P(`div`,jT,[P(`span`,MT,S(T(r)(`el.gallery`)),1),F(Z,{disabled:i.value.length>=PT,onClick:o},{default:E(()=>[I(S(T(r)(`el.galleryAdd`)),1)]),_:1},8,[`disabled`])]),(j(!0),M(A,null,k(i.value,(e,i)=>(j(),M(`div`,{key:i,class:`lze-row lze-nowrap`},[F(JS,{"model-value":e,label:T(r)(`el.galleryItem`,{n:i+1}),url:``,class:`lze-grow`,"onUpdate:modelValue":e=>a(i,e),onCommit:t[0]||=e=>T(n).commit()},null,8,[`model-value`,`label`,`onUpdate:modelValue`]),F(Z,{variant:`danger`,onClick:e=>s(i)},{default:E(()=>[I(S(T(r)(`el.galleryRemove`)),1)]),_:1},8,[`onClick`])]))),128)),P(`p`,NT,S(T(r)(`el.galleryHint`)),1)]))}}),IT=/* @__PURE__ */ D({__name:`GalleryContent`,props:{element:{}},setup(e){let t=Y(),n=t.t,r={layout:O(),alt:O()},i=[`grid`,`strip`].map(e=>({value:e,label:n(`el.gallery.${e}`)}));return(a,o)=>(j(),M(A,null,[F(Q,{id:r.layout,label:T(n)(`el.galleryLayout`)},{default:E(()=>[F($,{id:r.layout,"model-value":e.element.props.layout??`grid`,options:T(i),"onUpdate:modelValue":o[0]||=t=>e.element.props.layout=t,onCommit:o[1]||=e=>T(t).commit()},null,8,[`id`,`model-value`,`options`])]),_:1},8,[`id`,`label`]),(e.element.props.layout??`grid`)===`grid`?(j(),N($S,{key:0,"model-value":e.element.props.columns??3,label:T(n)(`el.galleryColumns`),min:1,max:6,"onUpdate:modelValue":o[2]||=t=>e.element.props.columns=t??3,onCommit:o[3]||=e=>T(t).commit()},null,8,[`model-value`,`label`])):L(``,!0),F(FT,{element:e.element},null,8,[`element`]),F(Q,{id:r.alt,label:T(n)(`el.alt`)},{default:E(()=>[F(BS,{id:r.alt,modelValue:e.element.props.alt,"onUpdate:modelValue":o[4]||=t=>e.element.props.alt=t,maxlength:200,placeholder:T(n)(`el.altPlaceholder`),onCommit:o[5]||=e=>T(t).commit()},null,8,[`id`,`modelValue`,`placeholder`])]),_:1},8,[`id`,`label`])],64))}}),LT=/* @__PURE__ */ D({__name:`SliderContent`,props:{element:{}},setup(e){let t=Y(),n=t.t,r={alt:O()};return(i,a)=>(j(),M(A,null,[F(FT,{element:e.element},null,8,[`element`]),F(aC,{"model-value":e.element.props.arrows!==!1,label:T(n)(`el.sliderArrows`),"onUpdate:modelValue":a[0]||=n=>{e.element.props.arrows=n,T(t).commit()}},null,8,[`model-value`,`label`]),F(aC,{"model-value":e.element.props.dots!==!1,label:T(n)(`el.sliderDots`),"onUpdate:modelValue":a[1]||=n=>{e.element.props.dots=n,T(t).commit()}},null,8,[`model-value`,`label`]),F(aC,{"model-value":e.element.props.autoplay===!0,label:T(n)(`el.sliderAutoplay`),"onUpdate:modelValue":a[2]||=n=>{e.element.props.autoplay=n,T(t).commit()}},null,8,[`model-value`,`label`]),e.element.props.autoplay===!0?(j(),N($S,{key:0,"model-value":e.element.props.interval??5,label:T(n)(`el.sliderInterval`),min:2,max:12,"onUpdate:modelValue":a[3]||=t=>e.element.props.interval=t??5,onCommit:a[4]||=e=>T(t).commit()},null,8,[`model-value`,`label`])):L(``,!0),F(Q,{id:r.alt,label:T(n)(`el.alt`)},{default:E(()=>[F(BS,{id:r.alt,modelValue:e.element.props.alt,"onUpdate:modelValue":a[5]||=t=>e.element.props.alt=t,maxlength:200,placeholder:T(n)(`el.altPlaceholder`),onCommit:a[6]||=e=>T(t).commit()},null,8,[`id`,`modelValue`,`placeholder`])]),_:1},8,[`id`,`label`])],64))}}),RT={class:`lze-field`},zT={class:`lze-label`},BT=[`aria-label`],VT=[`title`,`aria-label`,`aria-pressed`,`onClick`],HT=[`data-active`,`title`],UT=[`value`,`aria-label`],WT=/* @__PURE__ */ D({__name:`ColorPicker`,props:/*@__PURE__*/ Wr({label:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:/*@__PURE__*/ Wr([`commit`],[`update:modelValue`]),setup(e,{emit:t}){let n=ui(e,`modelValue`),r=t,i=Y(),a=R(()=>n.value&&!Us(n.value)?n.value:`#2563eb`);function o(e){n.value=e,r(`commit`)}return(t,s)=>(j(),M(`div`,RT,[P(`span`,zT,S(e.label),1),P(`div`,{class:`lze-swatches`,role:`group`,"aria-label":e.label},[(j(!0),M(A,null,k(T(Vs),e=>(j(),M(`button`,{key:e,type:`button`,class:`lze-swatch`,style:x({background:T(Xs)(e,T(i).theme.value)}),title:T(i).t(`token.${e}`),"aria-label":T(i).t(`token.${e}`),"aria-pressed":n.value===e,onClick:t=>o(e)},null,12,VT))),128)),P(`label`,{class:`lze-swatch-custom`,"data-active":!!n.value&&!T(Us)(n.value),title:T(i).t(`color.custom`)},[P(`input`,{type:`color`,value:a.value,"aria-label":T(i).t(`color.customLabel`,{label:e.label}),onInput:s[0]||=e=>n.value=e.target.value,onChange:s[1]||=e=>r(`commit`)},null,40,UT),I(` `+S(T(i).t(`color.custom`)),1)],8,HT)],8,BT)]))}}),GT={class:`lze-field`},KT={class:`lze-label`},qT={class:`lze-row`},JT={class:`lze-hint`},YT={key:2,class:`lze-hint`},XT={class:`lze-field`},ZT={class:`lze-heading`},QT={class:`lze-label`},$T={class:`lze-row lze-nowrap`},eE={class:`lze-hint`},tE=8,nE=/* @__PURE__ */ D({__name:`NavbarContent`,props:{element:{}},setup(e){let t=e,n=Y(),r=n.t,i={brand:O(),scroll:O(),layout:O(),template:O(),position:O()},a=by(r),o=[`same`,`shadow`,`solid`,`compact`].map(e=>({value:e,label:r(`el.scroll.${e}`)})),s=[`plain`,`pill`,`card`,`underline`,`divided`,`floating`,`boxed`,`tracked`,`ribbon`,`outline`,`minimal`,`stack`,`rail`].map(e=>({value:e,label:r(`el.navbarTemplate.${e}`)})),c=[`split`,`left`,`center`,`right`].map(e=>({value:e,label:r(`el.layout.${e}`)})),l=[`top`,`bottom`].map(e=>({value:e,label:r(`el.navbarPosition.${e}`)})),u=R(()=>t.element.props.links??[]);function d(e){t.element.props={...t.element.props,...xs(e.props)},t.element.style={...t.element.style,...xs(e.style)},n.commit()}function f(){t.element.props.links=[...u.value,{label:r(`default.link`),action:{type:`anchor`,value:``}}],n.commit()}function p(e){t.element.props.links=u.value.filter((t,n)=>n!==e),n.commit()}return(t,m)=>(j(),M(A,null,[P(`div`,GT,[P(`span`,KT,S(T(r)(`el.presets`)),1),P(`div`,qT,[(j(!0),M(A,null,k(T(a),e=>(j(),N(Z,{key:e.name,onClick:t=>d(e)},{default:E(()=>[I(S(T(r)(e.name)),1)]),_:2},1032,[`onClick`]))),128))])]),F(Q,{id:i.brand,label:T(r)(`el.brand`)},{default:E(()=>[F(BS,{id:i.brand,modelValue:e.element.props.brand,"onUpdate:modelValue":m[0]||=t=>e.element.props.brand=t,maxlength:60,placeholder:T(r)(`el.brandPlaceholder`),onCommit:m[1]||=e=>T(n).commit()},null,8,[`id`,`modelValue`,`placeholder`])]),_:1},8,[`id`,`label`]),F(aC,{modelValue:e.element.props.sticky,"onUpdate:modelValue":m[2]||=t=>e.element.props.sticky=t,label:T(r)(`el.sticky`),onCommit:m[3]||=e=>T(n).commit()},null,8,[`modelValue`,`label`]),e.element.props.sticky?(j(),N(Q,{key:0,id:i.scroll,label:T(r)(`el.scrollStyle`)},{default:E(()=>[F($,{id:i.scroll,"model-value":e.element.props.scroll_style??`same`,options:T(o),"onUpdate:modelValue":m[4]||=t=>e.element.props.scroll_style=t,onCommit:m[5]||=e=>T(n).commit()},null,8,[`id`,`model-value`,`options`])]),_:1},8,[`id`,`label`])):L(``,!0),e.element.props.sticky?(j(),M(A,{key:1},[F(Q,{id:i.position,label:T(r)(`el.navbarPosition`)},{default:E(()=>[F($,{id:i.position,"model-value":e.element.props.position??`top`,options:T(l),"onUpdate:modelValue":m[6]||=t=>e.element.props.position=t,onCommit:m[7]||=e=>T(n).commit()},null,8,[`id`,`model-value`,`options`])]),_:1},8,[`id`,`label`]),F(WT,{modelValue:e.element.style.scroll_background,"onUpdate:modelValue":m[8]||=t=>e.element.style.scroll_background=t,label:T(r)(`el.scrollBackground`),onCommit:m[9]||=e=>T(n).commit()},null,8,[`modelValue`,`label`]),F(WT,{modelValue:e.element.style.scroll_color,"onUpdate:modelValue":m[10]||=t=>e.element.style.scroll_color=t,label:T(r)(`el.scrollColor`),onCommit:m[11]||=e=>T(n).commit()},null,8,[`modelValue`,`label`]),P(`p`,JT,S(T(r)(`el.scrollColorsHint`)),1)],64)):(j(),M(`p`,YT,S(T(r)(`el.notSticky`)),1)),F(Q,{id:i.layout,label:T(r)(`el.layout`)},{default:E(()=>[F($,{id:i.layout,"model-value":e.element.props.layout??`split`,options:T(c),"onUpdate:modelValue":m[12]||=t=>e.element.props.layout=t,onCommit:m[13]||=e=>T(n).commit()},null,8,[`id`,`model-value`,`options`])]),_:1},8,[`id`,`label`]),F(Q,{id:i.template,label:T(r)(`el.navbarTemplate`)},{default:E(()=>[F($,{id:i.template,"model-value":e.element.props.template??`plain`,options:T(s),"onUpdate:modelValue":m[14]||=t=>e.element.props.template=t,onCommit:m[15]||=e=>T(n).commit()},null,8,[`id`,`model-value`,`options`])]),_:1},8,[`id`,`label`]),P(`div`,XT,[P(`div`,ZT,[P(`span`,QT,S(T(r)(`el.links`)),1),F(Z,{disabled:u.value.length>=tE,onClick:f},{default:E(()=>[I(S(T(r)(`common.add`)),1)]),_:1},8,[`disabled`])]),(j(!0),M(A,null,k(u.value,(e,t)=>(j(),M(`fieldset`,{key:t,class:`lze-link-card`},[P(`legend`,null,S(T(r)(`el.linkN`,{n:t+1})),1),P(`div`,$T,[F(BS,{modelValue:e.label,"onUpdate:modelValue":t=>e.label=t,maxlength:40,label:T(r)(`el.linkLabel`),onCommit:m[16]||=e=>T(n).commit()},null,8,[`modelValue`,`onUpdate:modelValue`,`label`]),F(Z,{variant:`danger`,onClick:e=>p(t)},{default:E(()=>[I(S(T(r)(`el.removeLink`)),1)]),_:1},8,[`onClick`])]),F(pC,{modelValue:e.action,"onUpdate:modelValue":t=>e.action=t,label:T(r)(`el.action`),onCommit:m[17]||=e=>T(n).commit()},null,8,[`modelValue`,`onUpdate:modelValue`,`label`])]))),128)),P(`p`,eE,S(T(r)(`el.linksHint`)),1)])],64))}}),rE=/* @__PURE__ */ D({__name:`ShapeContent`,props:{element:{}},setup(e){let t=Y(),n=t.t,r=O();return(i,a)=>(j(),M(A,null,[F(Q,{id:T(r),label:T(n)(`el.shape`)},{default:E(()=>[F($,{id:T(r),modelValue:e.element.props.shape,"onUpdate:modelValue":a[0]||=t=>e.element.props.shape=t,options:T(ET)(T(n)),onCommit:a[1]||=e=>T(t).commit()},null,8,[`id`,`modelValue`,`options`])]),_:1},8,[`id`,`label`]),F(IC,{modelValue:e.element.style.opacity,"onUpdate:modelValue":a[2]||=t=>e.element.style.opacity=t,label:T(n)(`el.opacity`),min:.1,max:1,step:.05,fallback:1,format:e=>`${Math.round(e*100)}%`,onCommit:a[3]||=e=>T(t).commit()},null,8,[`modelValue`,`label`,`format`])],64))}}),iE=/* @__PURE__ */ D({__name:`TextContent`,props:{element:{}},setup(e){let t=Y(),n=t.t,r={text:O(),accent:O(),level:O()},i=[1,2,3,4].map(e=>({value:e,label:n(`el.level.${e}`)}));return(a,o)=>(j(),M(A,null,[F(Q,{id:r.text,label:T(n)(`el.text`)},{default:E(()=>[F(BS,{id:r.text,modelValue:e.element.props.text,"onUpdate:modelValue":o[0]||=t=>e.element.props.text=t,rows:3,maxlength:2e3,onCommit:o[1]||=e=>T(t).commit()},null,8,[`id`,`modelValue`])]),_:1},8,[`id`,`label`]),F(Q,{id:r.accent,label:T(n)(`el.accent`)},{default:E(()=>[F(BS,{id:r.accent,modelValue:e.element.props.accent,"onUpdate:modelValue":o[2]||=t=>e.element.props.accent=t,maxlength:120,placeholder:T(n)(`el.accentPlaceholder`),onCommit:o[3]||=e=>T(t).commit()},null,8,[`id`,`modelValue`,`placeholder`])]),_:1},8,[`id`,`label`]),e.element.props.accent?(j(),N(WT,{key:0,modelValue:e.element.style.accent_color,"onUpdate:modelValue":o[4]||=t=>e.element.style.accent_color=t,label:T(n)(`el.accentColor`),onCommit:o[5]||=e=>T(t).commit()},null,8,[`modelValue`,`label`])):L(``,!0),e.element.type===`heading`?(j(),N(Q,{key:1,id:r.level,label:T(n)(`el.level`)},{default:E(()=>[F($,{id:r.level,modelValue:e.element.props.level,"onUpdate:modelValue":o[6]||=t=>e.element.props.level=t,options:T(i),onCommit:o[7]||=e=>T(t).commit()},null,8,[`id`,`modelValue`,`options`])]),_:1},8,[`id`,`label`])):L(``,!0)],64))}}),aE=/* @__PURE__ */ D({__name:`VideoContent`,props:{element:{}},setup(e){let t=Y(),n=t.t,r=O();return(i,a)=>(j(),N(Q,{id:T(r),label:T(n)(`el.videoUrl`),hint:T(n)(`el.videoHint`)},{default:E(()=>[F(BS,{id:T(r),modelValue:e.element.props.url,"onUpdate:modelValue":a[0]||=t=>e.element.props.url=t,type:`url`,maxlength:500,placeholder:T(n)(`el.videoPlaceholder`),onCommit:a[1]||=e=>T(t).commit()},null,8,[`id`,`modelValue`,`placeholder`])]),_:1},8,[`id`,`label`,`hint`]))}}),oE=[`open`],sE={class:`lze-panel-body`},cE=/* @__PURE__ */ D({__name:`PanelSection`,props:{title:{},open:{type:Boolean,default:!0}},setup(e){return(t,n)=>(j(),M(`details`,{class:`lze-panel-section`,open:e.open},[P(`summary`,null,[I(S(e.title),1),F(T(zb),{size:14,"aria-hidden":`true`})]),P(`div`,sE,[Lr(t.$slots,`default`)])],8,oE))}}),lE={class:`lze-stack`},uE=[`aria-label`],dE=[`title`,`aria-label`,`onClick`],fE={class:`lze-grid-2`},pE=/* @__PURE__ */ D({__name:`GradientEditor`,props:{modelValue:{required:!0},modelModifiers:{}},emits:/*@__PURE__*/ Wr([`commit`],[`update:modelValue`]),setup(e,{emit:t}){let n=ui(e,`modelValue`),r=t,i=Y(),a=i.t,o=O(),s={type:`linear`,from:`primary`,to:`secondary`,angle:135},c=R(()=>({...s,...n.value}));function l(e,t){n.value={...c.value,[e]:t}}function u(e){n.value={...e},r(`commit`)}return(e,t)=>(j(),M(`div`,lE,[P(`div`,{class:`lze-gradient-presets`,role:`group`,"aria-label":T(a)(`gradient.presets`)},[(j(!0),M(A,null,k(T(Ys),e=>(j(),M(`button`,{key:e.name,type:`button`,class:`lze-gradient-preset`,style:x({background:T(Zs)(e.gradient,T(i).theme.value)}),title:T(a)(e.name),"aria-label":T(a)(e.name),onClick:t=>u(e.gradient)},null,12,dE))),128))],8,uE),F(WT,{"model-value":c.value.from,label:T(a)(`gradient.from`),"onUpdate:modelValue":t[0]||=e=>l(`from`,e),onCommit:t[1]||=e=>r(`commit`)},null,8,[`model-value`,`label`]),F(WT,{"model-value":c.value.to,label:T(a)(`gradient.to`),"onUpdate:modelValue":t[2]||=e=>l(`to`,e),onCommit:t[3]||=e=>r(`commit`)},null,8,[`model-value`,`label`]),P(`div`,fE,[F(Q,{id:T(o),label:T(a)(`gradient.shape`)},{default:E(()=>[F($,{id:T(o),"model-value":c.value.type,options:[{value:`linear`,label:T(a)(`gradient.linear`)},{value:`radial`,label:T(a)(`gradient.radial`)}],"onUpdate:modelValue":t[4]||=e=>l(`type`,e),onCommit:t[5]||=e=>r(`commit`)},null,8,[`id`,`model-value`,`options`])]),_:1},8,[`id`,`label`]),c.value.type===`linear`?(j(),N(IC,{key:0,"model-value":c.value.angle,label:T(a)(`gradient.angle`),min:0,max:360,step:5,fallback:135,format:e=>`${e}°`,"onUpdate:modelValue":t[6]||=e=>l(`angle`,e),onCommit:t[7]||=e=>r(`commit`)},null,8,[`model-value`,`label`,`format`])):L(``,!0)])]))}}),mE={class:`lze-heading`},hE={class:`lze-label`},gE={class:`lze-grid-2`},_E={key:2,class:`lze-hint`},vE=/* @__PURE__ */ D({__name:`FillStyle`,props:{element:{}},setup(e){let t=e,n=Y(),r=n.t,i=e=>`${Math.round(e*100)}%`,a=R(()=>t.element.style.gradient?`gradient`:`color`);function o(e){let r=t.element.style;r.gradient=e===`gradient`?r.gradient??{type:`linear`,from:r.background??`primary`,to:`secondary`,angle:135}:null,n.commit()}return(t,s)=>(j(),N(cE,{title:T(r)(`style.fill`)},{default:E(()=>[F(WT,{modelValue:e.element.style.color,"onUpdate:modelValue":s[0]||=t=>e.element.style.color=t,label:T(r)(`style.color`),onCommit:s[1]||=e=>T(n).commit()},null,8,[`modelValue`,`label`]),P(`div`,mE,[P(`span`,hE,S(T(r)(`style.background`)),1),F($,{"model-value":a.value,compact:``,label:T(r)(`style.backgroundType`),options:[{value:`color`,label:T(r)(`fill.color`)},{value:`gradient`,label:T(r)(`fill.gradient`)}],"onUpdate:modelValue":o},null,8,[`model-value`,`label`,`options`])]),a.value===`color`?(j(),N(WT,{key:0,modelValue:e.element.style.background,"onUpdate:modelValue":s[2]||=t=>e.element.style.background=t,label:T(r)(`style.backgroundColor`),onCommit:s[3]||=e=>T(n).commit()},null,8,[`modelValue`,`label`])):(j(),N(pE,{key:1,modelValue:e.element.style.gradient,"onUpdate:modelValue":s[4]||=t=>e.element.style.gradient=t,onCommit:s[5]||=e=>T(n).commit()},null,8,[`modelValue`])),P(`div`,gE,[F(IC,{modelValue:e.element.style.background_opacity,"onUpdate:modelValue":s[6]||=t=>e.element.style.background_opacity=t,label:T(r)(`style.transparency`),min:0,max:1,step:.05,fallback:1,format:i,onCommit:s[7]||=e=>T(n).commit()},null,8,[`modelValue`,`label`]),F(IC,{modelValue:e.element.style.blur,"onUpdate:modelValue":s[8]||=t=>e.element.style.blur=t,label:T(r)(`style.glass`),min:0,max:40,format:e=>`${e} px`,onCommit:s[9]||=e=>T(n).commit()},null,8,[`modelValue`,`label`,`format`])]),e.element.style.blur?(j(),M(`p`,_E,S(T(r)(`style.glassHint`)),1)):L(``,!0)]),_:1},8,[`title`]))}}),yE={class:`lze-grid-2`},bE={key:1,class:`lze-hint`},xE={class:`lze-grid-2`},SE=/* @__PURE__ */ D({__name:`FrameStyle`,props:{element:{}},setup(e){let t=e,n=Y(),r=n.t,i={shadow:O(),finish:O()},a=[`none`,`sm`,`md`,`lg`,`custom`].map(e=>({value:e,label:r(`style.shadow.${e}`)})),o=[`flat`,`glass`,`soft`,`pressed`].map(e=>({value:e,label:r(`style.finish.${e}`)}));function s(e){t.element.style.finish=e,e===`glass`&&(t.element.style.background_opacity??1)>.8&&(t.element.style.background_opacity=.55),n.commit()}let c={x:0,y:12,blur:32,spread:0,color:`secondary`,opacity:.2},l=R(()=>({...c,...t.element.style.shadow_custom}));function u(e,n){t.element.style.shadow_custom={...l.value,[e]:n}}return(t,c)=>(j(),M(A,null,[F(cE,{title:T(r)(`style.frame`)},{default:E(()=>[P(`div`,yE,[F($S,{modelValue:e.element.style.radius,"onUpdate:modelValue":c[0]||=t=>e.element.style.radius=t,label:T(r)(`style.radius`),min:0,max:999,suffix:`px`,onCommit:c[1]||=e=>T(n).commit()},null,8,[`modelValue`,`label`]),F($S,{modelValue:e.element.style.padding,"onUpdate:modelValue":c[2]||=t=>e.element.style.padding=t,label:T(r)(`style.padding`),min:0,max:80,suffix:`px`,onCommit:c[3]||=e=>T(n).commit()},null,8,[`modelValue`,`label`]),F($S,{modelValue:e.element.style.border_width,"onUpdate:modelValue":c[4]||=t=>e.element.style.border_width=t,label:T(r)(`style.border`),min:0,max:12,suffix:`px`,onCommit:c[5]||=e=>T(n).commit()},null,8,[`modelValue`,`label`]),F($S,{"model-value":e.element.z,label:T(r)(`style.layer`),min:0,max:999,"onUpdate:modelValue":c[6]||=t=>e.element.z=t??e.element.z,onCommit:c[7]||=e=>T(n).commit()},null,8,[`model-value`,`label`])]),e.element.style.border_width?(j(),N(WT,{key:0,modelValue:e.element.style.border_color,"onUpdate:modelValue":c[8]||=t=>e.element.style.border_color=t,label:T(r)(`style.borderColor`),onCommit:c[9]||=e=>T(n).commit()},null,8,[`modelValue`,`label`])):L(``,!0),F(Q,{id:i.shadow,label:T(r)(`style.shadow`)},{default:E(()=>[F($,{id:i.shadow,"model-value":e.element.style.shadow??`none`,options:T(a),"onUpdate:modelValue":c[10]||=t=>e.element.style.shadow=t,onCommit:c[11]||=e=>T(n).commit()},null,8,[`id`,`model-value`,`options`])]),_:1},8,[`id`,`label`]),F(Q,{id:i.finish,label:T(r)(`style.finish`)},{default:E(()=>[F($,{id:i.finish,"model-value":e.element.style.finish??`flat`,options:T(o),"onUpdate:modelValue":c[12]||=e=>s(e)},null,8,[`id`,`model-value`,`options`])]),_:1},8,[`id`,`label`]),e.element.style.finish===`glass`?(j(),M(`p`,bE,S(T(r)(`style.finish.glassHint`)),1)):L(``,!0)]),_:1},8,[`title`]),e.element.style.shadow===`custom`?(j(),N(cE,{key:0,title:T(r)(`style.customShadow`)},{default:E(()=>[P(`div`,xE,[F($S,{"model-value":l.value.x,label:T(r)(`position.x`),min:-100,max:100,suffix:`px`,"onUpdate:modelValue":c[13]||=e=>u(`x`,e),onCommit:c[14]||=e=>T(n).commit()},null,8,[`model-value`,`label`]),F($S,{"model-value":l.value.y,label:T(r)(`position.y`),min:-100,max:100,suffix:`px`,"onUpdate:modelValue":c[15]||=e=>u(`y`,e),onCommit:c[16]||=e=>T(n).commit()},null,8,[`model-value`,`label`]),F($S,{"model-value":l.value.blur,label:T(r)(`style.shadowBlur`),min:0,max:200,suffix:`px`,"onUpdate:modelValue":c[17]||=e=>u(`blur`,e),onCommit:c[18]||=e=>T(n).commit()},null,8,[`model-value`,`label`]),F($S,{"model-value":l.value.spread,label:T(r)(`style.shadowSpread`),min:-50,max:100,suffix:`px`,"onUpdate:modelValue":c[19]||=e=>u(`spread`,e),onCommit:c[20]||=e=>T(n).commit()},null,8,[`model-value`,`label`])]),F(WT,{"model-value":l.value.color,label:T(r)(`style.shadowColor`),"onUpdate:modelValue":c[21]||=e=>u(`color`,e),onCommit:c[22]||=e=>T(n).commit()},null,8,[`model-value`,`label`]),F(IC,{"model-value":l.value.opacity,label:T(r)(`style.shadowOpacity`),min:0,max:1,step:.05,format:e=>`${Math.round(e*100)}%`,"onUpdate:modelValue":c[23]||=e=>u(`opacity`,e),onCommit:c[24]||=e=>T(n).commit()},null,8,[`model-value`,`label`,`format`])]),_:1},8,[`title`])):L(``,!0)],64))}}),CE={key:0,class:`lze-grid-2`},wE={class:`lze-hint`},TE=/* @__PURE__ */ D({__name:`MotionStyle`,props:{element:{}},setup(e){let t=e,n=Y(),r=n.t,i={entrance:O(),hover:O(),scroll:O()},a=[`none`,`fade`,`up`,`down`,`left`,`right`,`zoom`,`blur`,`reveal`].map(e=>({value:e,label:r(`style.anim.${e}`)})),o=[`none`,`rise`,`drift`,`zoom`].map(e=>({value:e,label:r(`style.scroll.${e}`)})),s=[`none`,`lift`,`grow`,`fade`,`sink`,`tilt`,`glow`].map(e=>({value:e,label:r(`style.hover.${e}`)})),c=e=>`${e} s`,l={type:`none`,delay:0,duration:.7},u=R(()=>({...l,...t.element.style.animation}));function d(e,n){t.element.style.animation={...u.value,[e]:n}}return(t,l)=>(j(),N(cE,{title:T(r)(`style.motion`),open:!1},{default:E(()=>[F(Q,{id:i.entrance,label:T(r)(`style.entrance`)},{default:E(()=>[F($,{id:i.entrance,"model-value":u.value.type,options:T(a),"onUpdate:modelValue":l[0]||=e=>d(`type`,e),onCommit:l[1]||=e=>T(n).commit()},null,8,[`id`,`model-value`,`options`])]),_:1},8,[`id`,`label`]),u.value.type===`none`?L(``,!0):(j(),M(`div`,CE,[F(IC,{"model-value":u.value.delay,label:T(r)(`style.delay`),min:0,max:2,step:.1,format:c,"onUpdate:modelValue":l[2]||=e=>d(`delay`,e),onCommit:l[3]||=e=>T(n).commit()},null,8,[`model-value`,`label`]),F(IC,{"model-value":u.value.duration,label:T(r)(`style.duration`),min:.2,max:2,step:.1,fallback:.7,format:c,"onUpdate:modelValue":l[4]||=e=>d(`duration`,e),onCommit:l[5]||=e=>T(n).commit()},null,8,[`model-value`,`label`])])),F(Q,{id:i.scroll,label:T(r)(`style.scroll`),hint:T(r)(`style.scrollHint`)},{default:E(()=>[F($,{id:i.scroll,"model-value":e.element.style.scroll??`none`,options:T(o),"onUpdate:modelValue":l[6]||=t=>e.element.style.scroll=t,onCommit:l[7]||=e=>T(n).commit()},null,8,[`id`,`model-value`,`options`])]),_:1},8,[`id`,`label`,`hint`]),F(Q,{id:i.hover,label:T(r)(`style.hover`)},{default:E(()=>[F($,{id:i.hover,"model-value":e.element.style.hover??`none`,options:T(s),"onUpdate:modelValue":l[8]||=t=>e.element.style.hover=t,onCommit:l[9]||=e=>T(n).commit()},null,8,[`id`,`model-value`,`options`])]),_:1},8,[`id`,`label`]),P(`p`,wE,S(T(r)(`style.motionHint`)),1)]),_:1},8,[`title`]))}}),EE=[`aria-label`],DE=/* @__PURE__ */ D({__name:`AlignButtons`,setup(e){let t=Y(),n={left:Fb,hcenter:Ab,right:Mb,top:Pb,vmiddle:kb,bottom:jb};return(e,r)=>(j(),M(`div`,{class:`lze-row`,role:`group`,"aria-label":T(t).t(`multi.align`)},[(j(!0),M(A,null,k(T(Es),e=>(j(),N(wS,{key:e,label:T(t).t(`align.${e}`),onClick:n=>T(t).align(e)},{default:E(()=>[(j(),N(Pr(n[e]),{size:16,"aria-hidden":`true`}))]),_:2},1032,[`label`,`onClick`]))),128))],8,EE))}}),OE={class:`lze-grid-2`},kE={class:`lze-hint`},AE={key:0,class:`lze-hint`},jE=/* @__PURE__ */ D({__name:`PositionSection`,props:{element:{}},setup(e){let t=e,n=Y(),r=n.t,i=R(()=>n.state.device),a=R(()=>hs(t.element,i.value));function o(e,n){typeof n==`number`&&gs(t.element,i.value,ks({...a.value,[e]:n}))}function s(){t.element.layout.mobile=null,n.commit()}return(t,c)=>(j(),N(cE,{title:T(r)(`position.title`,{device:T(r)(i.value===`desktop`?`position.desktop`:`position.mobile`)}),open:!1},{default:E(()=>[F(DE),P(`div`,OE,[F($S,{"model-value":a.value.x,label:T(r)(`position.x`),suffix:`%`,step:.5,"onUpdate:modelValue":c[0]||=e=>o(`x`,e),onCommit:c[1]||=e=>T(n).commit()},null,8,[`model-value`,`label`]),F($S,{"model-value":a.value.y,label:T(r)(`position.y`),"onUpdate:modelValue":c[2]||=e=>o(`y`,e),onCommit:c[3]||=e=>T(n).commit()},null,8,[`model-value`,`label`]),F($S,{"model-value":a.value.w,label:T(r)(`position.width`),suffix:`%`,step:.5,"onUpdate:modelValue":c[4]||=e=>o(`w`,e),onCommit:c[5]||=e=>T(n).commit()},null,8,[`model-value`,`label`]),F($S,{"model-value":a.value.h,label:T(r)(`position.height`),"onUpdate:modelValue":c[6]||=e=>o(`h`,e),onCommit:c[7]||=e=>T(n).commit()},null,8,[`model-value`,`label`])]),F(aC,{modelValue:e.element.style.pinned,"onUpdate:modelValue":c[8]||=t=>e.element.style.pinned=t,label:T(r)(`position.pinned`),onCommit:c[9]||=e=>T(n).commit()},null,8,[`modelValue`,`label`]),P(`p`,kE,S(T(r)(`position.pinnedHint`)),1),i.value===`mobile`?(j(),M(`p`,AE,[e.element.layout.mobile?(j(),M(A,{key:0},[I(S(T(r)(`position.own`))+` `,1),P(`button`,{type:`button`,class:`lze-link`,onClick:s},S(T(r)(`position.inherit`)),1)],64)):(j(),M(A,{key:1},[I(S(T(r)(`position.inherited`)),1)],64))])):L(``,!0)]),_:1},8,[`title`]))}}),ME=[`aria-label`],NE=[`aria-pressed`,`onClick`],PE={class:`lze-grid-2`},FE={class:`lze-grid-2`},IE={class:`lze-grid-2`},LE={class:`lze-row`},RE=[`aria-label`],zE={class:`lze-hint`},BE=/* @__PURE__ */ D({__name:`TextStyle`,props:{element:{}},setup(e){let t=e,n=Y(),r=n.t,i=[{value:`heading`,label:`style.fontHeading`},{value:`body`,label:`style.fontBody`}],a=[{value:`left`,label:`style.align.left`,icon:xx},{value:`center`,label:`style.align.center`,icon:bx},{value:`right`,label:`style.align.right`,icon:yx}],o=[300,400,500,600,700,800].map(e=>({value:e,label:r(`style.weight.${e}`)})),s=[`none`,`upper`,`lower`,`title`].map(e=>({value:e,label:r(`style.case.${e}`)})),c=[`solid`,`outline`,`glow`].map(e=>({value:e,label:r(`style.face.${e}`)}));function l(e,r){t.element.style[e]=r,n.commit()}return(t,u)=>(j(),N(cE,{title:T(r)(`style.text`)},{default:E(()=>[P(`div`,{class:`lze-tabs-inline`,role:`group`,"aria-label":T(r)(`style.font`)},[(j(),M(A,null,k(i,t=>P(`button`,{key:t.value,type:`button`,"aria-pressed":(e.element.style.font??`body`)===t.value,onClick:e=>l(`font`,t.value)},S(T(r)(t.label)),9,NE)),64))],8,ME),P(`div`,PE,[F($S,{modelValue:e.element.style.size,"onUpdate:modelValue":u[0]||=t=>e.element.style.size=t,label:T(r)(`style.size`),min:8,max:240,suffix:`px`,onCommit:u[1]||=e=>T(n).commit()},null,8,[`modelValue`,`label`]),F($,{modelValue:e.element.style.weight,"onUpdate:modelValue":u[2]||=t=>e.element.style.weight=t,options:T(o),label:T(r)(`style.weight`),placeholder:T(r)(`style.weight`),onCommit:u[3]||=e=>T(n).commit()},null,8,[`modelValue`,`options`,`label`,`placeholder`])]),P(`div`,FE,[F($S,{modelValue:e.element.style.size_mobile,"onUpdate:modelValue":u[4]||=t=>e.element.style.size_mobile=t,label:T(r)(`style.sizeMobile`),min:8,max:240,suffix:`px`,placeholder:String(e.element.style.size??``),onCommit:u[5]||=e=>T(n).commit()},null,8,[`modelValue`,`label`,`placeholder`]),F($S,{modelValue:e.element.style.tracking,"onUpdate:modelValue":u[6]||=t=>e.element.style.tracking=t,label:T(r)(`style.tracking`),min:-.05,max:.5,step:.01,onCommit:u[7]||=e=>T(n).commit()},null,8,[`modelValue`,`label`])]),P(`div`,IE,[F($,{modelValue:e.element.style.text_case,"onUpdate:modelValue":u[8]||=t=>e.element.style.text_case=t,options:T(s),label:T(r)(`style.case`),onCommit:u[9]||=e=>T(n).commit()},null,8,[`modelValue`,`options`,`label`]),F($,{modelValue:e.element.style.text_style,"onUpdate:modelValue":u[10]||=t=>e.element.style.text_style=t,options:T(c),label:T(r)(`style.face`),onCommit:u[11]||=e=>T(n).commit()},null,8,[`modelValue`,`options`,`label`])]),P(`div`,LE,[P(`div`,{class:`lze-row`,role:`group`,"aria-label":T(r)(`style.align`)},[(j(),M(A,null,k(a,t=>F(wS,{key:t.value,label:T(r)(t.label),active:(e.element.style.align??`left`)===t.value,onClick:e=>l(`align`,t.value)},{default:E(()=>[(j(),N(Pr(t.icon),{size:16,"aria-hidden":`true`}))]),_:2},1032,[`label`,`active`,`onClick`])),64))],8,RE),F($S,{modelValue:e.element.style.line_height,"onUpdate:modelValue":u[12]||=t=>e.element.style.line_height=t,class:`lze-grow`,label:T(r)(`style.lineHeight`),min:.8,max:3,step:.05,onCommit:u[13]||=e=>T(n).commit()},null,8,[`modelValue`,`label`])]),F(aC,{modelValue:e.element.style.auto_height,"onUpdate:modelValue":u[14]||=t=>e.element.style.auto_height=t,label:T(r)(`style.autoHeight`),onCommit:u[15]||=e=>T(n).commit()},null,8,[`modelValue`,`label`]),P(`p`,zE,S(T(r)(`style.autoHeightHint`)),1)]),_:1},8,[`title`]))}}),VE={class:`lze-row`},HE={class:`lze-grid-2`},UE={class:`lze-hint`},WE=/* @__PURE__ */ D({__name:`TransformStyle`,props:{element:{}},setup(e){let t=e,n=Y(),r=n.t,i={overflow:O(),visible:O()},a=[`visible`,`hidden`,`scroll-x`,`scroll-y`].map(e=>({value:e,label:r(`style.overflow.${e}`)})),o=[`all`,`desktop`,`mobile`].map(e=>({value:e,label:r(`style.visible.${e}`)}));function s(e,r){t.element.style[e]=r,n.commit()}return(t,c)=>(j(),N(cE,{title:T(r)(`style.transform`),open:!1},{default:E(()=>[P(`div`,VE,[F($S,{modelValue:e.element.style.rotate,"onUpdate:modelValue":c[0]||=t=>e.element.style.rotate=t,class:`lze-grow`,label:T(r)(`style.rotate`),min:-180,max:180,suffix:`°`,onCommit:c[1]||=e=>T(n).commit()},null,8,[`modelValue`,`label`]),F(wS,{label:T(r)(`style.straighten`),onClick:c[2]||=e=>s(`rotate`,0)},{default:E(()=>[F(T(px),{size:16,"aria-hidden":`true`})]),_:1},8,[`label`]),F(wS,{label:T(r)(`style.flipX`),active:e.element.style.flip_x===!0,onClick:c[3]||=t=>s(`flip_x`,!e.element.style.flip_x)},{default:E(()=>[F(T(Kb),{size:16,"aria-hidden":`true`})]),_:1},8,[`label`,`active`]),F(wS,{label:T(r)(`style.flipY`),active:e.element.style.flip_y===!0,onClick:c[4]||=t=>s(`flip_y`,!e.element.style.flip_y)},{default:E(()=>[F(T(qb),{size:16,"aria-hidden":`true`})]),_:1},8,[`label`,`active`])]),P(`div`,HE,[F(Q,{id:i.overflow,label:T(r)(`style.overflow`)},{default:E(()=>[F($,{id:i.overflow,"model-value":e.element.style.overflow??(e.element.style.clip?`hidden`:`visible`),options:T(a),"onUpdate:modelValue":c[5]||=t=>e.element.style.overflow=t,onCommit:c[6]||=e=>T(n).commit()},null,8,[`id`,`model-value`,`options`])]),_:1},8,[`id`,`label`]),F(Q,{id:i.visible,label:T(r)(`style.visibleOn`)},{default:E(()=>[F($,{id:i.visible,"model-value":e.element.style.visible_on??`all`,options:T(o),"onUpdate:modelValue":c[7]||=t=>e.element.style.visible_on=t,onCommit:c[8]||=e=>T(n).commit()},null,8,[`id`,`model-value`,`options`])]),_:1},8,[`id`,`label`])]),P(`p`,UE,S(T(r)(`style.transformHint`)),1)]),_:1},8,[`title`]))}}),GE={class:`lze-stack`},KE={class:`lze-heading`},qE={class:`lze-panel-title`},JE={class:`lze-row lze-nowrap`},YE={class:`lze-row`},XE={key:0,class:`lze-hint`},ZE=/* @__PURE__ */ D({__name:`ElementPanel`,props:{element:{}},setup(e){let t=e,n=Y(),r=n.t,i={heading:iE,text:iE,image:DT,button:vT,divider:null,video:aE,shape:rE,icon:wT,navbar:nE,box:kT,gallery:IT,slider:LT,input:bT,textarea:bT,select:bT,checkbox:bT},a={fill:vE,text:BE,border:SE,effects:WE,motion:TE},o=R(()=>n.kindOf(t.element)),s=R(()=>{let e=o.value;return e.kind===`core`?r(e.spec.label):e.kind===`app`?n.i18n.localized(e.spec.label):r(`type.unknown`)}),c=R(()=>{let e=o.value,t=e.kind===`opaque`?[]:e.spec.styles;return Object.keys(a).filter(e=>t.includes(e)).map(e=>({group:e,panel:a[e]}))});return(t,a)=>(j(),M(`div`,GE,[P(`div`,KE,[P(`h2`,qE,S(s.value),1),P(`div`,JE,[o.value.kind===`opaque`?L(``,!0):(j(),N(Z,{key:0,onClick:a[0]||=e=>T(n).duplicateSelected()},{default:E(()=>[I(S(T(r)(`common.duplicate`)),1)]),_:1})),F(Z,{variant:`danger`,onClick:a[1]||=e=>T(n).removeSelected()},{default:E(()=>[I(S(T(r)(`common.delete`)),1)]),_:1})])]),P(`div`,YE,[e.element.type===`box`?(j(),N(Z,{key:0,onClick:a[2]||=e=>T(n).ungroupBox()},{default:E(()=>[I(S(T(r)(`el.ungroup`)),1)]),_:1})):T(n).isInsideBox(e.element.id)?L(``,!0):(j(),N(Z,{key:1,onClick:a[3]||=e=>T(n).groupIntoBox()},{default:E(()=>[I(S(T(r)(`el.group`)),1)]),_:1}))]),o.value.kind===`opaque`?(j(),M(`p`,XE,S(T(r)(`el.unknown`)),1)):(j(),M(A,{key:1},[o.value.kind===`core`&&i[o.value.element.type]?(j(),N(Pr(i[o.value.element.type]),{key:0,element:o.value.element},null,8,[`element`])):o.value.kind===`app`?(j(),N(_T,{key:1,element:o.value.element,spec:o.value.spec},null,8,[`element`,`spec`])):L(``,!0),(j(!0),M(A,null,k(c.value,t=>(j(),N(Pr(t.panel),{key:t.group,element:e.element},null,8,[`element`]))),128)),F(jE,{element:e.element},null,8,[`element`])],64))]))}}),QE={class:`lze-stack`},$E={class:`lze-panel-title`},eD={class:`lze-hint`},tD={class:`lze-field`},nD={class:`lze-label`},rD=[`aria-label`],iD={class:`lze-field`},aD={key:0,class:`lze-hint`},oD={class:`lze-field`},sD=/* @__PURE__ */ D({__name:`ModalPanel`,props:{modal:{}},setup(e){let t=e,n=Y(),r=n.t,i=O();function a(e){t.modal.size=e.key,t.modal.width=e.width,n.commit()}function o(e){typeof e==`number`&&(t.modal.width=e,t.modal.size=`custom`)}return(t,s)=>(j(),M(`div`,QE,[P(`h2`,$E,S(T(r)(`modal.heading`)),1),F(Q,{id:T(i),label:T(r)(`modal.title`)},{default:E(()=>[F(BS,{id:T(i),modelValue:e.modal.title,"onUpdate:modelValue":s[0]||=t=>e.modal.title=t,maxlength:120,onCommit:s[1]||=e=>T(n).commit()},null,8,[`id`,`modelValue`]),F(aC,{modelValue:e.modal.show_title,"onUpdate:modelValue":s[2]||=t=>e.modal.show_title=t,label:T(r)(`modal.showTitle`),onCommit:s[3]||=e=>T(n).commit()},null,8,[`modelValue`,`label`]),P(`p`,eD,S(T(r)(`modal.showTitleHint`)),1)]),_:1},8,[`id`,`label`]),P(`div`,tD,[P(`span`,nD,S(T(r)(`modal.size`)),1),P(`div`,{class:`lze-row`,role:`group`,"aria-label":T(r)(`modal.size`)},[(j(!0),M(A,null,k(T(Cs),t=>(j(),N(Z,{key:t.key,variant:e.modal.size===t.key?`primary`:`outline`,"aria-pressed":e.modal.size===t.key,onClick:e=>a(t)},{default:E(()=>[I(S(T(r)(`modal.size.${t.key}`)),1)]),_:2},1032,[`variant`,`aria-pressed`,`onClick`]))),128))],8,rD)]),P(`div`,iD,[F($S,{"model-value":e.modal.width,label:T(r)(`modal.width`),min:280,max:1200,suffix:`px`,disabled:e.modal.size===`full`,"onUpdate:modelValue":o,onCommit:s[4]||=e=>T(n).commit()},null,8,[`model-value`,`label`,`disabled`]),e.modal.size===`full`?(j(),M(`p`,aD,S(T(r)(`modal.fullHint`)),1)):L(``,!0)]),F(Z,{onClick:s[5]||=t=>T(n).fitCanvas(e.modal)},{default:E(()=>[I(S(T(r)(`section.fitHeight`)),1)]),_:1}),P(`div`,oD,[F($S,{"model-value":e.modal.height.desktop,label:T(r)(`section.heightDesktop`),min:80,max:2e3,"onUpdate:modelValue":s[6]||=t=>e.modal.height.desktop=t??e.modal.height.desktop,onCommit:s[7]||=e=>T(n).commit()},null,8,[`model-value`,`label`]),F($S,{"model-value":e.modal.height.mobile,label:T(r)(`section.heightMobile`),min:80,max:2400,"onUpdate:modelValue":s[8]||=t=>e.modal.height.mobile=t??e.modal.height.mobile,onCommit:s[9]||=e=>T(n).commit()},null,8,[`model-value`,`label`])]),F(WT,{modelValue:e.modal.background.color,"onUpdate:modelValue":s[10]||=t=>e.modal.background.color=t,label:T(r)(`modal.background`),onCommit:s[11]||=e=>T(n).commit()},null,8,[`modelValue`,`label`]),F(Z,{onClick:s[12]||=e=>T(n).openModal(null)},{default:E(()=>[I(S(T(r)(`canvas.backToPage`)),1)]),_:1})]))}}),cD={class:`lze-stack`},lD={class:`lze-panel-title`},uD={class:`lze-row`},dD={class:`lze-hint`},fD={class:`lze-field`},pD={class:`lze-label`},mD={class:`lze-field`},hD={class:`lze-label`},gD={class:`lze-row`},_D={class:`lze-hint`},vD={class:`lze-hint`},yD={class:`lze-hint`},bD=/* @__PURE__ */ D({__name:`MultiPanel`,setup(e){let t=Y(),n=t.t,r=R(()=>t.selectedElements.value.length),i={fill:vE,text:BE,border:SE,effects:WE,motion:TE},a=R(()=>{let e=t.selectedElements.value.map(e=>{let n=t.kindOf(e);return n.kind===`opaque`?[]:n.spec.styles});return Object.keys(i).filter(t=>e.length>0&&e.every(e=>e.includes(t))).map(e=>({group:e,panel:i[e]}))}),o=R(()=>t.sharedTarget());return(e,i)=>(j(),M(`div`,cD,[P(`h2`,lD,S(T(n)(`multi.count`,{n:r.value})),1),P(`div`,uD,[F(Z,{onClick:i[0]||=e=>T(t).groupIntoBox()},{default:E(()=>[I(S(T(n)(`el.group`)),1)]),_:1})]),P(`p`,dD,S(T(n)(`el.groupHint`)),1),P(`div`,fD,[P(`span`,pD,S(T(n)(`multi.align`)),1),F(DE)]),P(`div`,mD,[P(`span`,hD,S(T(n)(`multi.distribute`)),1),P(`div`,gD,[F(wS,{label:T(n)(`multi.distributeX`),disabled:r.value<3,onClick:i[1]||=e=>T(t).distributeSelected(`x`)},{default:E(()=>[F(T(Nb),{size:16,"aria-hidden":`true`})]),_:1},8,[`label`,`disabled`]),F(wS,{label:T(n)(`multi.distributeY`),disabled:r.value<3,onClick:i[2]||=e=>T(t).distributeSelected(`y`)},{default:E(()=>[F(T(Ib),{size:16,"aria-hidden":`true`})]),_:1},8,[`label`,`disabled`])]),P(`p`,_D,S(T(n)(`multi.distributeHint`)),1)]),o.value?(j(!0),M(A,{key:0},k(a.value,e=>(j(),N(Pr(e.panel),{key:e.group,element:o.value},null,8,[`element`]))),128)):L(``,!0),P(`p`,vD,S(T(n)(`multi.menuHint`)),1),P(`p`,yD,S(T(n)(`multi.hint`)),1)]))}}),xD={class:`lze-stack`},SD={class:`lze-heading`},CD={class:`lze-panel-title`},wD={class:`lze-row`},TD={class:`lze-field`},ED={key:0,class:`lze-grid-2`},DD={class:`lze-hint`},OD=/* @__PURE__ */ D({__name:`SectionPanel`,props:{section:{}},setup(e){let t=e,n=Y(),r=n.t,i={group:O(),label:O(),anchor:O(),background:O(),video:O(),flow:O()},a=[{value:`alone`,label:r(`section.alone`)},{value:`tabs`,label:r(`section.tab`)},{value:`steps`,label:r(`section.step`)}],o=[`free`,`column`,`row`].map(e=>({value:e,label:r(`section.flow.${e}`)})),s=[`start`,`center`,`end`,`between`].map(e=>({value:e,label:r(`section.align.${e}`)})),c=R(()=>(t.section.flow??`free`)!==`free`),l=[`color`,`gradient`,`image`,`video`].map(e=>({value:e,label:r(`fill.${e}`)})),u=/* @__PURE__ */ w(t.section.id),d=/* @__PURE__ */ w(!1);$n(()=>t.section.id,e=>u.value=e);function f(){let e=u.value.trim(),r=e!==t.section.id&&ms(n.state.draft,e)!==void 0;d.value=!/^[a-zA-Z0-9_-]{1,40}$/.test(e)||r,!(d.value||e===t.section.id)&&(t.section.id=e,n.selectCanvas(e),n.commit())}function p(e){let r=t.section.background;e&&(r.type=e,e===`gradient`&&(r.gradient??={type:`linear`,from:`primary`,to:`secondary`,angle:135}),n.commit())}function m(e){t.section.background.image=e??null,t.section.background.type!==`video`&&(t.section.background.type=e?`image`:`color`)}return(t,h)=>(j(),M(`div`,xD,[P(`div`,SD,[P(`h2`,CD,S(T(r)(`section.heading`)),1),T(n).state.draft.sections.length>1?(j(),N(wS,{key:0,label:T(r)(`section.delete`),tone:`danger`,onClick:h[0]||=t=>T(n).removeSection(e.section.id)},{default:E(()=>[F(T(Cx),{size:16,"aria-hidden":`true`})]),_:1},8,[`label`])):L(``,!0)]),F(Q,{id:i.group,label:T(r)(`section.shownAs`),hint:T(r)(`section.groupHint`)},{default:E(()=>[F($,{id:i.group,"model-value":e.section.group?.type??`alone`,options:a,"onUpdate:modelValue":h[1]||=t=>T(n).setSectionGroup(e.section,t??`alone`)},null,8,[`id`,`model-value`]),e.section.group?(j(),N(BS,{key:0,modelValue:e.section.group.label,"onUpdate:modelValue":h[2]||=t=>e.section.group.label=t,maxlength:60,placeholder:T(r)(`section.groupLabel`),label:T(r)(`section.groupLabel`),onCommit:h[3]||=e=>T(n).commit()},null,8,[`modelValue`,`placeholder`,`label`])):L(``,!0)]),_:1},8,[`id`,`label`,`hint`]),F(Q,{id:i.anchor,label:T(r)(`section.anchor`),hint:T(r)(`section.anchorHint`),error:d.value?T(r)(`section.anchorInvalid`):null},{default:E(()=>[F(BS,{id:i.anchor,modelValue:u.value,"onUpdate:modelValue":h[4]||=e=>u.value=e,maxlength:40,onCommit:f},null,8,[`id`,`modelValue`])]),_:1},8,[`id`,`label`,`hint`,`error`]),P(`div`,wD,[F(Z,{onClick:h[5]||=t=>T(n).fitCanvas(e.section)},{default:E(()=>[I(S(T(r)(`section.fitHeight`)),1)]),_:1}),F(Z,{onClick:h[6]||=t=>T(n).generateMobile(e.section)},{default:E(()=>[I(S(T(r)(`section.generateMobile`)),1)]),_:1})]),P(`div`,TD,[F($S,{"model-value":e.section.height.desktop,label:T(r)(`section.heightDesktop`),min:80,max:3e3,"onUpdate:modelValue":h[7]||=t=>e.section.height.desktop=t??e.section.height.desktop,onCommit:h[8]||=e=>T(n).commit()},null,8,[`model-value`,`label`]),F($S,{"model-value":e.section.height.mobile,label:T(r)(`section.heightMobile`),min:80,max:4e3,"onUpdate:modelValue":h[9]||=t=>e.section.height.mobile=t??e.section.height.mobile,onCommit:h[10]||=e=>T(n).commit()},null,8,[`model-value`,`label`])]),F(Q,{id:i.flow,label:T(r)(`section.flow`),hint:T(r)(`section.flowHint`)},{default:E(()=>[F($,{id:i.flow,"model-value":e.section.flow??`free`,options:T(o),"onUpdate:modelValue":h[11]||=t=>e.section.flow=t,onCommit:h[12]||=e=>T(n).commit()},null,8,[`id`,`model-value`,`options`])]),_:1},8,[`id`,`label`,`hint`]),c.value?(j(),M(`div`,ED,[F($S,{"model-value":e.section.flow_gap??24,label:T(r)(`section.flowGap`),min:0,max:160,suffix:`px`,"onUpdate:modelValue":h[13]||=t=>e.section.flow_gap=t??24,onCommit:h[14]||=e=>T(n).commit()},null,8,[`model-value`,`label`]),F($,{"model-value":e.section.flow_align??`start`,options:T(s),label:T(r)(`section.flowAlign`),"onUpdate:modelValue":h[15]||=t=>e.section.flow_align=t,onCommit:h[16]||=e=>T(n).commit()},null,8,[`model-value`,`options`,`label`])])):L(``,!0),F(aC,{modelValue:e.section.wide,"onUpdate:modelValue":h[17]||=t=>e.section.wide=t,label:T(r)(`section.wide`),onCommit:h[18]||=e=>T(n).commit()},null,8,[`modelValue`,`label`]),P(`p`,DD,S(T(r)(`section.wideHint`)),1),F(Q,{id:i.background,label:T(r)(`section.background`)},{default:E(()=>[F($,{id:i.background,"model-value":e.section.background.type,options:T(l),"onUpdate:modelValue":p},null,8,[`id`,`model-value`,`options`])]),_:1},8,[`id`,`label`]),e.section.background.type===`color`?(j(),N(WT,{key:1,modelValue:e.section.background.color,"onUpdate:modelValue":h[19]||=t=>e.section.background.color=t,label:T(r)(`section.color`),onCommit:h[20]||=e=>T(n).commit()},null,8,[`modelValue`,`label`])):e.section.background.type===`gradient`?(j(),N(pE,{key:2,modelValue:e.section.background.gradient,"onUpdate:modelValue":h[21]||=t=>e.section.background.gradient=t,onCommit:h[22]||=e=>T(n).commit()},null,8,[`modelValue`])):(j(),M(A,{key:3},[e.section.background.type===`video`?(j(),N(Q,{key:0,id:i.video,label:T(r)(`section.video`),hint:T(r)(`section.videoHint`)},{default:E(()=>[F(BS,{id:i.video,modelValue:e.section.background.video,"onUpdate:modelValue":h[23]||=t=>e.section.background.video=t,maxlength:500,placeholder:`https://…/video.mp4`,onCommit:h[24]||=e=>T(n).commit()},null,8,[`id`,`modelValue`])]),_:1},8,[`id`,`label`,`hint`])):L(``,!0),F(JS,{"model-value":e.section.background.image,label:e.section.background.type===`video`?T(r)(`section.poster`):T(r)(`section.image`),choose:T(r)(`section.chooseImage`),"onUpdate:modelValue":m,onCommit:h[25]||=e=>T(n).commit()},null,8,[`model-value`,`label`,`choose`]),F(aC,{modelValue:e.section.background.parallax,"onUpdate:modelValue":h[26]||=t=>e.section.background.parallax=t,label:T(r)(`section.parallax`),onCommit:h[27]||=e=>T(n).commit()},null,8,[`modelValue`,`label`]),F(IC,{modelValue:e.section.background.overlay,"onUpdate:modelValue":h[28]||=t=>e.section.background.overlay=t,label:T(r)(`section.overlay`),min:0,max:.8,step:.05,format:e=>`${Math.round(e*100)}%`,onCommit:h[29]||=e=>T(n).commit()},null,8,[`modelValue`,`label`,`format`])],64))]))}}),kD={key:4,class:`lze-hint`},AD=/* @__PURE__ */ D({__name:`DesignPanel`,setup(e){let t=Y(),n=R(()=>{let e=t.state.selection;if(e.kind===`elements`){let e=t.activeElement.value;return t.selectedElements.value.length>1?{kind:`multi`}:e?{kind:`element`,element:e}:{kind:`none`}}let n=e.kind===`canvas`?ms(t.state.draft,e.canvas):void 0;return n?fs(n)?{kind:`modal`,modal:n}:{kind:`section`,section:n}:{kind:`none`}});return(e,r)=>n.value.kind===`multi`?(j(),N(bD,{key:0})):n.value.kind===`element`?(j(),N(ZE,{key:n.value.element.id,element:n.value.element},null,8,[`element`])):n.value.kind===`modal`?(j(),N(sD,{key:n.value.modal.id,modal:n.value.modal},null,8,[`modal`])):n.value.kind===`section`?(j(),N(OD,{key:n.value.section.id,section:n.value.section},null,8,[`section`])):(j(),M(`p`,kD,S(T(t).t(`panel.nothing`)),1))}}),jD={key:0,class:`lze-stack`},MD={class:`lze-slug-static`},ND={class:`lze-slug`},PD={class:`lze-row`},FD={key:2,class:`lze-field lze-divided`},ID={class:`lze-label`},LD=[`onClick`],RD={class:`lze-hint`},zD={class:`lze-field lze-divided`},BD={class:`lze-label`},VD={class:`lze-shortcuts lze-hint`},HD=/* @__PURE__ */ D({__name:`PagePanel`,setup(e){let t=Y(),n=t.t,r={title:O(),slug:O(),seoTitle:O(),description:O()},i=R(()=>t.state.page),a=/* @__PURE__ */ w(i.value?.slug??``),o=/* @__PURE__ */ w([]),s=/* @__PURE__ */ w(!1);$n(()=>i.value?.id,()=>{a.value=i.value?.slug??``,o.value=[]});let c=R(()=>t.state.draft.sections.every(e=>e.elements.length===0));async function l(){s.value=!0,o.value=await t.renamePage(a.value.trim()),s.value=!1}function u(){i.value&&window.confirm(n(`page.deleteConfirm`,{title:i.value.title}))&&t.deletePage()}return(e,d)=>i.value?(j(),M(`div`,jD,[F(Q,{id:r.title,label:T(n)(`page.title`)},{default:E(()=>[F(BS,{id:r.title,modelValue:i.value.title,"onUpdate:modelValue":d[0]||=e=>i.value.title=e,maxlength:120},null,8,[`id`,`modelValue`])]),_:1},8,[`id`,`label`]),i.value.slug===``?(j(),N(Q,{key:0,label:T(n)(`page.address`),hint:T(n)(`page.homeHint`)},{default:E(()=>[P(`p`,MD,[d[4]||=P(`span`,{class:`lze-slug-root`,"aria-hidden":`true`},`/`,-1),I(S(T(n)(`page.home`)),1)])]),_:1},8,[`label`,`hint`])):(j(),M(A,{key:1},[F(Q,{id:r.slug,label:T(n)(`page.address`),error:o.value.map(e=>e.message).join(` `)||null},{default:E(()=>[P(`div`,ND,[d[5]||=P(`span`,{"aria-hidden":`true`},`/`,-1),F(BS,{id:r.slug,modelValue:a.value,"onUpdate:modelValue":d[1]||=e=>a.value=e,maxlength:120,placeholder:T(n)(`newPage.slugPlaceholder`)},null,8,[`id`,`modelValue`,`placeholder`])])]),_:1},8,[`id`,`label`,`error`]),P(`div`,PD,[F(Z,{disabled:s.value||a.value.trim()===i.value.slug,onClick:l},{default:E(()=>[I(S(T(n)(`page.saveAddress`)),1)]),_:1},8,[`disabled`]),F(Z,{variant:`danger`,onClick:u},{default:E(()=>[I(S(T(n)(`page.delete`)),1)]),_:1})])],64)),c.value?(j(),M(`div`,FD,[P(`span`,ID,S(T(n)(`page.templates`)),1),(j(!0),M(A,null,k(T(Uy),e=>(j(),M(`button`,{key:e.key,type:`button`,class:`lze-choice`,onClick:n=>T(t).applyPageTemplate(e.key)},[P(`strong`,null,S(T(n)(e.name)),1),P(`span`,RD,S(T(n)(e.note)),1)],8,LD))),128))])):L(``,!0),F(Q,{id:r.seoTitle,label:T(n)(`page.seoTitle`),hint:T(n)(`page.seoTitleHint`)},{default:E(()=>[F(BS,{id:r.seoTitle,modelValue:i.value.seo.title,"onUpdate:modelValue":d[2]||=e=>i.value.seo.title=e,maxlength:120},null,8,[`id`,`modelValue`])]),_:1},8,[`id`,`label`,`hint`]),F(Q,{id:r.description,label:T(n)(`page.description`)},{default:E(()=>[F(BS,{id:r.description,modelValue:i.value.seo.description,"onUpdate:modelValue":d[3]||=e=>i.value.seo.description=e,rows:3,maxlength:300},null,8,[`id`,`modelValue`])]),_:1},8,[`id`,`label`]),P(`div`,zD,[P(`span`,BD,S(T(n)(`page.shortcuts`)),1),P(`ul`,VD,[P(`li`,null,S(T(n)(`page.shortcutUndo`)),1),P(`li`,null,S(T(n)(`page.shortcutSave`)),1),P(`li`,null,S(T(n)(`page.shortcutCopy`)),1),P(`li`,null,S(T(n)(`page.shortcutNudge`)),1)])])])):L(``,!0)}}),UD={class:`lze-sidebar lze-right`},WD={class:`lze-tabs`,role:`tablist`},GD=[`aria-selected`],KD=[`aria-selected`],qD={class:`lze-scroll lze-pad`,role:`tabpanel`},JD=/* @__PURE__ */ D({__name:`RightPanel`,setup(e){let t=Y(),n=/* @__PURE__ */ w(`design`);return(e,r)=>(j(),M(`aside`,UD,[P(`div`,WD,[P(`button`,{type:`button`,role:`tab`,"aria-selected":n.value===`design`,onClick:r[0]||=e=>n.value=`design`},S(T(t).t(`panel.design`)),9,GD),P(`button`,{type:`button`,role:`tab`,"aria-selected":n.value===`page`,onClick:r[1]||=e=>n.value=`page`},S(T(t).t(`panel.page`)),9,KD)]),P(`div`,qD,[n.value===`design`?(j(),N(AD,{key:0})):(j(),N(HD,{key:1}))])]))}}),YD={class:`lze-toolbar`},XD={class:`lze-toolbar-group`},ZD={class:`lze-site-name`},QD=[`aria-label`,`value`],$D=[`value`],eO=[`data-published`],tO=[`data-tone`],nO={class:`lze-toolbar-group`},rO=[`aria-label`],iO=[`title`,`aria-label`,`aria-pressed`,`onClick`],aO=[`title`,`aria-label`,`disabled`],oO=[`title`,`aria-label`,`disabled`],sO=[`href`],cO=/* @__PURE__ */ D({__name:`Toolbar`,setup(e){let t=Y(),n=t.t,r=R(()=>t.state.page),i=new Intl.DateTimeFormat(t.i18n.locale,{hour:`2-digit`,minute:`2-digit`}),a=R(()=>{let e=t.saveState.value;switch(e.kind){case`saved`:return{text:e.at?n(`save.saved`,{time:i.format(e.at)}):n(`save.idle`),tone:`muted`,retry:!1};case`pending`:return{text:n(`save.pending`),tone:`muted`,retry:!1};case`saving`:return{text:n(`save.saving`),tone:`muted`,retry:!1};case`offline`:return{text:n(`save.offline`),tone:`warning`,retry:!0};case`failed`:return{text:n(`save.failed`,{message:e.message}),tone:`danger`,retry:!0};case`invalid`:return{text:n(`save.invalid`,{issue:$y(e.issues[0])||e.message}),tone:`danger`,retry:!1};case`conflict`:return{text:n(`save.conflict`),tone:`danger`,retry:!1}}}),o=R(()=>{let e=t.state.workspace.publicUrl;return e&&r.value?new URL(r.value.slug,e.endsWith(`/`)?e:`${e}/`).href:null});async function s(e){let n=e.target;await t.openPage(Number(n.value)),n.value=String(t.state.page?.id??``)}return(e,i)=>(j(),M(`header`,YD,[P(`div`,XD,[P(`strong`,ZD,S(T(t).state.workspace.site.name),1),r.value?(j(),M(`select`,{key:0,class:`lze-select lze-page-select`,"aria-label":T(n)(`toolbar.pageSelect`),value:r.value.id,onChange:s},[(j(!0),M(A,null,k(T(t).state.workspace.pages,e=>(j(),M(`option`,{key:e.id,value:e.id},S(e.title)+S(e.slug?` /${e.slug}`:``),9,$D))),128))],40,QD)):L(``,!0),F(Z,{variant:`ghost`,title:T(n)(`toolbar.newPageHint`),onClick:i[0]||=e=>T(t).state.dialog=`newPage`},{default:E(()=>[F(T(ux),{size:16,"aria-hidden":`true`}),I(S(T(n)(`toolbar.newPage`)),1)]),_:1},8,[`title`]),r.value?(j(),M(`span`,{key:1,class:`lze-badge-status`,"data-published":r.value.publishedAt!==null},S(r.value.publishedAt?T(n)(`status.published`):T(n)(`status.unpublished`)),9,eO)):L(``,!0),P(`span`,{class:`lze-save-status`,"data-tone":a.value.tone,"data-testid":`save-status`,"aria-live":`polite`},S(a.value.text),9,tO),a.value.retry?(j(),N(Z,{key:2,variant:`ghost`,onClick:i[1]||=e=>T(t).saveNow()},{default:E(()=>[I(S(T(n)(`save.retry`)),1)]),_:1})):L(``,!0),T(t).saveState.value.kind===`conflict`?(j(),N(Z,{key:3,variant:`primary`,onClick:i[2]||=e=>T(t).reloadPage()},{default:E(()=>[I(S(T(n)(`conflict.reload`)),1)]),_:1})):L(``,!0)]),P(`div`,nO,[P(`div`,{class:`lze-segmented`,role:`group`,"aria-label":T(n)(`toolbar.device`)},[(j(),M(A,null,k([`desktop`,`mobile`],e=>P(`button`,{key:e,type:`button`,title:e===`desktop`?T(n)(`toolbar.desktop`):T(n)(`toolbar.mobile`),"aria-label":e===`desktop`?T(n)(`toolbar.desktop`):T(n)(`toolbar.mobile`),"aria-pressed":T(t).state.device===e,onClick:n=>T(t).state.device=e},[e===`desktop`?(j(),N(T(ax),{key:0,size:16,"aria-hidden":`true`})):(j(),N(T(hx),{key:1,size:16,"aria-hidden":`true`}))],8,iO)),64))],8,rO),P(`button`,{type:`button`,class:`lze-icon-btn`,title:T(n)(`toolbar.undo`),"aria-label":T(n)(`toolbar.undo`),disabled:!T(t).canUndo.value,onClick:i[3]||=e=>T(t).undo()},[F(T(Tx),{size:16,"aria-hidden":`true`})],8,aO),P(`button`,{type:`button`,class:`lze-icon-btn`,title:T(n)(`toolbar.redo`),"aria-label":T(n)(`toolbar.redo`),disabled:!T(t).canRedo.value,onClick:i[4]||=e=>T(t).redo()},[F(T(dx),{size:16,"aria-hidden":`true`})],8,oO),F(Z,{variant:`ghost`,title:T(t).state.previewing?T(n)(`toolbar.editHint`):T(n)(`toolbar.previewHint`),onClick:i[5]||=e=>T(t).state.previewing=!T(t).state.previewing},{default:E(()=>[T(t).state.previewing?(j(),N(T(cx),{key:0,size:16,"aria-hidden":`true`})):(j(),N(T(Gb),{key:1,size:16,"aria-hidden":`true`})),I(` `+S(T(t).state.previewing?T(n)(`toolbar.edit`):T(n)(`toolbar.preview`)),1)]),_:1},8,[`title`]),r.value?.versions.length?(j(),N(Z,{key:0,variant:`ghost`,title:T(n)(`toolbar.versionsHint`),onClick:i[6]||=e=>T(t).state.dialog=`versions`},{default:E(()=>[F(T(fx),{size:16,"aria-hidden":`true`}),I(S(T(n)(`toolbar.versions`)),1)]),_:1},8,[`title`])):L(``,!0),F(Z,{variant:`ghost`,title:T(n)(`toolbar.submissionsHint`),onClick:i[7]||=e=>T(t).state.dialog=`submissions`},{default:E(()=>[I(S(T(n)(`toolbar.submissions`)),1)]),_:1},8,[`title`]),F(Z,{variant:`ghost`,onClick:i[8]||=e=>T(t).state.dialog=`theme`},{default:E(()=>[I(S(T(n)(`toolbar.theme`)),1)]),_:1}),F(Z,{variant:`ghost`,title:T(n)(`toolbar.siteHint`),onClick:i[9]||=e=>T(t).state.dialog=`site`},{default:E(()=>[I(S(T(n)(`toolbar.site`)),1)]),_:1},8,[`title`]),o.value?(j(),M(`a`,{key:1,class:`lze-btn`,href:o.value,target:`_blank`,rel:`noopener noreferrer`},S(T(n)(`toolbar.viewSite`)),9,sO)):L(``,!0),F(Z,{variant:`primary`,disabled:T(t).state.publishing||!r.value,onClick:i[10]||=e=>T(t).publish()},{default:E(()=>[I(S(T(t).state.publishing?T(n)(`toolbar.publishing`):T(n)(`toolbar.publish`)),1)]),_:1},8,[`disabled`])])]))}}),lO=[`.lze-root{--lze-bg:#f3f4f6;--lze-panel:#fff;--lze-fg:#0f172a;--lze-muted:#64748b;--lze-border:#e2e8f0;--lze-hover:#f1f5f9;--lze-active:#e8eefc;--lze-accent:#2563eb;--lze-accent-fg:#fff;--lze-danger:#dc2626;--lze-success:#15803d;--lze-warning:#b45309;--lze-radius:8px;--lze-font:ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;--lze-select:#2563eb;--lze-guide:#ec4899;all:initial;box-sizing:border-box;background:var(--lze-bg);height:100%;min-height:480px;color:var(--lze-fg);font:13px/1.45 var(--lze-font);-webkit-font-smoothing:antialiased;grid-template-rows:auto minmax(0,1fr);display:grid}.lze-root :where(:not(svg,svg *)){all:revert;box-sizing:border-box}.lze-root :where(){box-sizing:border-box}.lze-root :where(h1,h2,h3,p,figure){margin:0}.lze-root :where(button,input,select,textarea){font:inherit;color:inherit}.lze-root :focus-visible{outline:2px solid var(--lze-accent);outline-offset:1px}.lze-muted,.lze-hint{color:var(--lze-muted)}.lze-hint{font-size:12px}.lze-error{color:var(--lze-danger);font-size:12px}.lze-btn{border-radius:var(--lze-radius);border:1px solid var(--lze-border);background:var(--lze-panel);height:32px;color:var(--lze-fg);white-space:nowrap;cursor:pointer;justify-content:center;align-items:center;gap:6px;padding:0 12px;font-weight:500;text-decoration:none;display:inline-flex}.lze-btn[data-size=md]{height:36px;padding:0 14px}.lze-btn:hover:not(:disabled){background:var(--lze-hover)}.lze-btn:disabled{opacity:.5;cursor:default}.lze-btn[data-variant=primary]{background:var(--lze-accent);border-color:var(--lze-accent);color:var(--lze-accent-fg)}.lze-btn[data-variant=primary]:hover:not(:disabled){background:color-mix(in srgb, var(--lze-accent) 88%, black)}.lze-btn[data-variant=ghost]{background:0 0;border-color:#0000}.lze-btn[data-variant=danger]{color:var(--lze-danger)}.lze-icon-btn{border-radius:var(--lze-radius);width:32px;height:32px;color:var(--lze-muted);cursor:pointer;background:0 0;border:1px solid #0000;flex:none;place-items:center;padding:0;display:inline-grid}.lze-icon-btn:hover:not(:disabled){background:var(--lze-hover);color:var(--lze-fg)}.lze-icon-btn[aria-pressed=true]{border-color:var(--lze-fg);background:var(--lze-active);color:var(--lze-fg)}.lze-icon-btn[data-tone=danger]{color:var(--lze-danger)}.lze-icon-btn:disabled{opacity:.4;cursor:default}.lze-field{gap:7px;display:grid}.lze-label{color:var(--lze-fg);font-size:12px;font-weight:600}.lze-input,.lze-select{border:1px solid var(--lze-border);background:var(--lze-panel);width:100%;min-height:32px;color:var(--lze-fg);border-radius:6px;padding:6px 8px}.lze-input:focus,.lze-select:focus{border-color:var(--lze-accent);box-shadow:0 0 0 2px color-mix(in srgb, var(--lze-accent) 20%, transparent);outline:none}textarea.lze-input{resize:vertical;line-height:1.4}.lze-select[data-compact=true]{width:auto;min-height:26px;padding:2px 6px;font-size:12px}.lze-number{border:1px solid var(--lze-border);background:var(--lze-panel);border-radius:6px;align-items:center;gap:6px;height:32px;padding:0 8px;display:flex}.lze-number:focus-within{border-color:var(--lze-accent)}.lze-number input{text-align:right;background:0 0;border:0;outline:none;width:100%;min-width:0}.lze-number-label,.lze-number-suffix{color:var(--lze-muted);flex:none;font-size:11px}.lze-toggle{cursor:pointer;align-items:center;gap:8px;display:flex}.lze-toggle input{width:16px;height:16px;accent-color:var(--lze-fg);margin:0}.lze-range{gap:4px;display:grid}.lze-range input{width:100%;accent-color:var(--lze-fg)}.lze-swatches{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.lze-swatch{cursor:pointer;border:1px solid #0f172a1f;border-radius:999px;width:26px;height:26px;padding:0}.lze-swatch[aria-pressed=true]{outline:2px solid var(--lze-fg);outline-offset:2px}.lze-swatch-custom{border:1px solid var(--lze-border);color:var(--lze-muted);cursor:pointer;border-radius:999px;align-items:center;gap:4px;padding:2px 8px 2px 3px;font-size:12px;display:inline-flex}.lze-swatch-custom[data-active=true]{outline:2px solid var(--lze-fg);outline-offset:2px}.lze-swatch-custom input{cursor:pointer;background:0 0;border:0;border-radius:999px;width:20px;height:20px;padding:0}.lze-panel-section{border-top:1px solid var(--lze-border);padding-top:4px}.lze-panel-section>summary{color:var(--lze-muted);cursor:pointer;-webkit-user-select:none;user-select:none;justify-content:space-between;align-items:center;padding:8px 0;font-size:12px;font-weight:600;list-style:none;display:flex}.lze-panel-section>summary::-webkit-details-marker{display:none}.lze-panel-section>summary:hover{color:var(--lze-fg)}.lze-panel-section[open]>summary svg{transform:rotate(180deg)}.lze-panel-body{gap:10px;padding:2px 0 12px;display:grid}.lze-dialog{border:1px solid var(--lze-border);background:var(--lze-panel);width:min(520px,100vw - 32px);max-height:calc(100dvh - 48px);color:var(--lze-fg);font:13px/1.45 var(--lze-font);border-radius:12px;padding:0;box-shadow:0 24px 64px #0f172a3d}.lze-dialog[data-size=lg]{width:min(720px,100vw - 32px)}.lze-dialog[data-size=xl]{width:min(880px,100vw - 32px)}.lze-dialog::backdrop{background:#0f172a73}.lze-dialog-body{gap:16px;padding:20px;display:grid}.lze-dialog-head{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.lze-dialog-head h2{font-size:16px;font-weight:650}.lze-dialog-actions{flex-wrap:wrap;gap:8px;display:flex}.lze-toasts{z-index:2147483000;gap:8px;max-width:min(420px,100vw - 32px);display:grid;position:fixed;bottom:16px;right:16px}.lze-toast{background:var(--lze-fg);color:var(--lze-panel);border-radius:10px;align-items:center;gap:8px;padding:8px 8px 8px 14px;display:flex;box-shadow:0 12px 32px #0f172a3d}.lze-toast[data-tone=error]{background:var(--lze-danger)}.lze-toast span{flex:1}.lze-toast .lze-icon-btn{color:inherit;width:26px;height:26px}.lze-toast .lze-icon-btn:hover{color:inherit;background:#ffffff26}.lze-grid-2{grid-template-columns:1fr 1fr;gap:10px;display:grid}.lze-grid-4{grid-template-columns:repeat(4,1fr);gap:6px;display:grid}.lze-row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.lze-stack{gap:16px;display:grid}.lze-heading{justify-content:space-between;align-items:center;gap:8px;font-size:13px;font-weight:650;display:flex}.lze-link{color:inherit;cursor:pointer;background:0 0;border:0;padding:0;text-decoration:underline}`,`.lze-center{text-align:center;color:var(--lze-muted);grid-row:1/-1;place-content:center;justify-items:center;gap:12px;padding:32px;display:grid}.lze-toolbar{border-bottom:1px solid var(--lze-border);background:var(--lze-panel);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:8px 12px;display:flex}.lze-toolbar-group{flex-wrap:wrap;align-items:center;gap:6px;min-width:0;display:flex}.lze-site-name{text-overflow:ellipsis;white-space:nowrap;max-width:180px;font-size:14px;overflow:hidden}.lze-page-select{width:auto;max-width:220px}.lze-badge-status{color:var(--lze-warning);background:#fef3c7;border-radius:999px;padding:2px 8px;font-size:11px;font-weight:600}.lze-badge-status[data-published=true]{color:var(--lze-success);background:#dcfce7}.lze-save-status{color:var(--lze-muted);max-width:360px;font-size:12px}.lze-save-status[data-tone=warning]{color:var(--lze-warning)}.lze-save-status[data-tone=danger]{color:var(--lze-danger)}.lze-segmented{border:1px solid var(--lze-border);border-radius:var(--lze-radius);background:var(--lze-bg);padding:2px;display:inline-flex}.lze-segmented button{width:32px;height:26px;color:var(--lze-muted);cursor:pointer;background:0 0;border:0;border-radius:6px;place-items:center;display:grid}.lze-segmented button[aria-pressed=true]{background:var(--lze-panel);color:var(--lze-fg);box-shadow:0 1px 2px #0f172a14}.lze-body{grid-template-columns:clamp(272px,19vw,352px) minmax(0,1fr) clamp(312px,22vw,408px);min-height:0;display:grid}.lze-main{min-width:0;min-height:0;display:grid;position:relative}.lze-sidebar{background:var(--lze-panel);flex-direction:column;min-height:0;display:flex}.lze-left{border-right:1px solid var(--lze-border)}.lze-right{border-left:1px solid var(--lze-border)}.lze-scroll{flex:1;min-height:0;overflow-y:auto}.lze-pad{padding:16px}.lze-left>.lze-scroll.lze-stack{align-content:start;padding:16px}.lze-tabs{border-bottom:1px solid var(--lze-border);gap:2px;padding:10px 8px;display:flex}.lze-tabs button{min-width:0;color:var(--lze-muted);cursor:pointer;background:0 0;border:0;border-radius:6px;flex-direction:column;flex:1;align-items:center;gap:2px;padding:6px 2px;font-size:11px;font-weight:600;display:flex}.lze-tabs button span,.lze-tabs button{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.lze-right .lze-tabs button{flex-direction:row;justify-content:center;font-size:13px}.lze-tabs button:hover{color:var(--lze-fg)}.lze-tabs button[aria-selected=true]{background:var(--lze-hover);color:var(--lze-fg)}.lze-group-title{color:var(--lze-muted);margin-top:4px;font-size:12px;font-weight:600}.lze-palette{grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:8px;display:grid}.lze-palette-item{border:1px solid var(--lze-border);border-radius:var(--lze-radius);background:var(--lze-panel);min-width:0;color:var(--lze-muted);text-align:left;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;align-items:center;gap:10px;padding:11px 12px;font-size:13px;font-weight:500;display:flex}.lze-palette-item:hover{border-color:var(--lze-fg);color:var(--lze-fg);background:var(--lze-hover)}.lze-palette-item svg{flex:none}.lze-list{gap:6px;display:grid}.lze-group-label{letter-spacing:.06em;text-transform:uppercase;color:var(--lze-muted);margin:10px 0 2px;font-size:11px;font-weight:700}.lze-group-label:first-child{margin-top:0}.lze-list-item{border:1px solid var(--lze-border);border-radius:var(--lze-radius);background:var(--lze-panel);color:var(--lze-muted);text-align:left;cursor:pointer;padding:11px 12px;font-size:13px;font-weight:500}.lze-list-item:hover{border-color:var(--lze-fg);color:var(--lze-fg)}.lze-drag-ghost{z-index:2147483000;pointer-events:none;border:1px solid var(--lze-fg);border-radius:var(--lze-radius);background:var(--lze-panel);padding:6px 10px;font-size:12px;font-weight:600;position:fixed;box-shadow:0 8px 24px #0f172a2e}.lze-layer-group{padding:0 8px 2px}.lze-layer-row{color:var(--lze-muted);border-radius:6px;align-items:center;gap:2px;display:flex}.lze-layer-row:hover{background:var(--lze-hover)}.lze-layer-row[data-selected=true]{background:var(--lze-active);color:var(--lze-fg)}.lze-layer-row .lze-icon-btn{width:24px;height:24px}.lze-layer-name{min-width:0;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;flex:1;align-items:center;gap:8px;padding:6px 4px;display:flex}.lze-layer-name span:first-of-type{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.lze-layer-actions{opacity:0;display:flex}.lze-layer-row:hover .lze-layer-actions,.lze-layer-row:focus-within .lze-layer-actions{opacity:1}.lze-layer-children{border-left:1px solid var(--lze-border);margin-left:16px;padding-left:4px}.lze-lock-toggle{opacity:0}.lze-lock-toggle[data-locked=true],.lze-layer-row:hover .lze-lock-toggle,.lze-lock-toggle:focus-visible{opacity:1}.lze-card{border:1px solid var(--lze-border);border-radius:var(--lze-radius);gap:10px;padding:12px;display:grid}.lze-card[data-active=true]{border-color:var(--lze-fg);background:var(--lze-hover)}.lze-media-grid{grid-template-columns:1fr 1fr;align-content:start;gap:8px;display:grid}.lze-media-item{border:1px solid var(--lze-border);border-radius:var(--lze-radius);background:var(--lze-bg);cursor:grab;touch-action:none;height:96px;padding:0;overflow:hidden}.lze-media-item:hover{border-color:var(--lze-fg)}.lze-media-item img{object-fit:contain;width:100%;height:100%}@media (width<=1100px){.lze-body{grid-template-columns:236px minmax(0,1fr) 292px}}`,`.lze-stage{overscroll-behavior:contain;padding:24px;position:relative;overflow:auto}.lze-stage[data-space],.lze-stage[data-space] *{cursor:grab!important}.lze-stage[data-space=panning],.lze-stage[data-space=panning] *{cursor:grabbing!important}.lze-context{z-index:2147483100;border:1px solid var(--lze-border);background:var(--lze-panel);border-radius:10px;min-width:208px;padding:6px;font-size:13px;position:fixed;box-shadow:0 12px 32px #0f172a2e}.lze-context:focus{outline:none}.lze-context>button{width:100%;color:var(--lze-fg);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:6px;justify-content:space-between;align-items:center;gap:16px;padding:7px 10px;display:flex}.lze-context>button:hover,.lze-context>button:focus-visible{background:var(--lze-hover)}.lze-context .lze-context-danger{color:var(--lze-danger)}.lze-context kbd{color:var(--lze-muted);font:inherit;font-size:11px}.lze-context hr{border:0;border-top:1px solid var(--lze-border);margin:5px 6px}.lze-context-label{color:var(--lze-muted);margin:6px 10px 2px;font-size:11px}.lze-context-row{gap:2px;padding:0 6px 4px;display:flex}.lze-context-row button{width:32px;height:28px;color:var(--lze-fg);cursor:pointer;background:0 0;border:0;border-radius:6px;place-items:center;display:grid}.lze-context-row button:hover{background:var(--lze-hover)}.lze-context-align{width:16px;height:16px;display:block;position:relative}.lze-context-align:before{content:"";background:var(--lze-fg);position:absolute}.lze-context-align:after{content:"";background:var(--lze-muted);border-radius:1px;position:absolute}.lze-context-align[data-align=left]:before{width:1.5px;top:0;bottom:0;left:0}.lze-context-align[data-align=left]:after{width:11px;height:8px;top:4px;left:3px}.lze-context-align[data-align=hcenter]:before{width:1.5px;top:0;bottom:0;left:7.25px}.lze-context-align[data-align=hcenter]:after{width:11px;height:8px;top:4px;left:2.5px}.lze-context-align[data-align=right]:before{width:1.5px;top:0;bottom:0;right:0}.lze-context-align[data-align=right]:after{width:11px;height:8px;top:4px;right:3px}.lze-context-align[data-align=top]:before{height:1.5px;top:0;left:0;right:0}.lze-context-align[data-align=top]:after{width:8px;height:11px;top:3px;left:4px}.lze-context-align[data-align=vmiddle]:before{height:1.5px;top:7.25px;left:0;right:0}.lze-context-align[data-align=vmiddle]:after{width:8px;height:11px;top:2.5px;left:4px}.lze-context-align[data-align=bottom]:before{height:1.5px;bottom:0;left:0;right:0}.lze-context-align[data-align=bottom]:after{width:8px;height:11px;bottom:3px;left:4px}.lze-zoom{z-index:25;float:right;border:1px solid var(--lze-border);background:var(--lze-panel);border-radius:999px;align-items:center;gap:2px;margin-top:12px;padding:4px;display:inline-flex;position:sticky;bottom:0;box-shadow:0 6px 18px #0f172a1f}.lze-zoom button{color:var(--lze-fg);cursor:pointer;font:inherit;background:0 0;border:0;border-radius:999px}.lze-zoom-btn{width:28px;height:28px;font-size:15px;line-height:1}.lze-zoom-value{font-variant-numeric:tabular-nums;min-width:54px;height:28px;font-size:12px;font-weight:600}.lze-zoom button:hover{background:var(--lze-hover)}.lze-sheet{background:var(--lze-panel);border-radius:10px;margin:0 auto;position:relative;box-shadow:0 1px 3px #0f172a14,0 12px 40px #0f172a14}.lze-sheet[data-device=mobile]{border-radius:18px}.lze-scaler{transform-origin:0 0;position:absolute;top:0;left:0}.lze-frame{background:0 0;border:0;display:block}.lze-preview .lze-sheet{overflow:hidden}.lze-preview .lze-frame{transform-origin:0 0}.lze-empty-hint{text-align:center;max-width:520px;color:var(--lze-muted);margin:16px auto 0}.lze-hint-bubble{z-index:2147483000;background:var(--lze-fg);color:var(--lze-panel);font-variant-numeric:tabular-nums;pointer-events:none;border-radius:6px;padding:4px 10px;font-size:12px;font-weight:600;position:fixed;bottom:24px;left:50%;transform:translate(-50%)}.lze-render-issue,.lze-modal-banner{border:1px solid var(--lze-border);border-radius:var(--lze-radius);background:var(--lze-panel);justify-content:space-between;align-items:center;gap:8px;max-width:900px;margin:0 auto 12px;padding:8px 12px;display:flex}.lze-render-issue{border-color:var(--lze-danger);color:var(--lze-danger)}.lze-modal-banner{border-color:var(--lze-fg);font-weight:600}.lze-overlay{pointer-events:none;--line:calc(1px * var(--inv));position:absolute;inset:0}.lze-overlay>*{position:absolute}.lze-canvas-outline{outline:calc(2px * var(--inv)) solid var(--lze-select);outline-offset:calc(-2px * var(--inv));box-shadow:inset 0 0 0 calc(4px * var(--inv)) #ffffffb3}.lze-hover{outline:var(--line) solid var(--lze-select)}.lze-selection{outline:calc(2px * var(--inv)) solid var(--lze-select);outline-offset:var(--line);box-shadow:0 0 0 calc(4px * var(--inv)) #ffffffb3}.lze-selection[data-locked=true]{outline-style:dashed}.lze-lock{top:calc(-18px * var(--inv));width:calc(12px * var(--inv));height:calc(12px * var(--inv));color:var(--lze-select);position:absolute;right:0}.lze-handles{pointer-events:none}.lze-handle,.lze-radius,.lze-rotate{pointer-events:auto;touch-action:none;padding:0;position:absolute}.lze-handle{width:calc(11px * var(--inv));height:calc(11px * var(--inv));margin:calc(-5.5px * var(--inv));border:var(--line) solid #fff;background:var(--lze-select);border-radius:999px}.lze-handle[data-handle^=n]{top:0}.lze-handle[data-handle^=s]{top:100%}.lze-handle[data-handle=e],.lze-handle[data-handle=w]{top:50%}.lze-handle[data-handle$=w]{left:0}.lze-handle[data-handle$=e]{left:100%}.lze-handle[data-handle=n],.lze-handle[data-handle=s]{left:50%}.lze-handle[data-handle=nw],.lze-handle[data-handle=se]{cursor:nwse-resize}.lze-handle[data-handle=ne],.lze-handle[data-handle=sw]{cursor:nesw-resize}.lze-handle[data-handle=n],.lze-handle[data-handle=s]{cursor:ns-resize}.lze-handle[data-handle=e],.lze-handle[data-handle=w]{cursor:ew-resize}.lze-radius{top:calc(10px * var(--inv));left:calc(10px * var(--inv));width:calc(14px * var(--inv));height:calc(14px * var(--inv));border:calc(2px * var(--inv)) solid var(--lze-select);cursor:ew-resize;background:#fff;border-radius:999px}.lze-rotate{top:calc(100% + 10px * var(--inv));left:calc(100% + 10px * var(--inv));width:calc(24px * var(--inv));height:calc(24px * var(--inv));border:var(--line) solid var(--lze-select);color:var(--lze-select);cursor:grab;background:#fff;border-radius:999px;place-items:center;display:grid}.lze-rotate svg{width:calc(13px * var(--inv));height:calc(13px * var(--inv))}.lze-guide{background:var(--lze-guide)}.lze-guide[data-axis=x]{width:var(--line)}.lze-guide[data-axis=y]{height:var(--line)}.lze-badge{transform:translateY(-100%) scale(var(--inv));transform-origin:0 100%;background:var(--lze-select);color:#fff;white-space:nowrap;border-radius:4px;margin-top:-4px;padding:2px 6px;font-size:11px;font-weight:600}.lze-section-chip{z-index:5;transform:scale(var(--inv)) translateY(-100%);transform-origin:0 100%;border:1px solid var(--lze-border);background:var(--lze-panel);color:var(--lze-muted);font:600 11px/1.6 var(--lze-font);white-space:nowrap;cursor:pointer;pointer-events:auto;opacity:.5;border-radius:999px;margin-top:-4px;padding:2px 8px;transition:opacity .15s;position:absolute}.lze-section-chip:hover,.lze-section-chip[data-current=true]{opacity:1;color:var(--lze-fg)}.lze-section-chip[data-current=true]{border-color:var(--lze-select);color:var(--lze-select)}.lze-section-empty{z-index:4;transform:scale(var(--inv)) translate(-50%, -50%);transform-origin:0 0;color:var(--lze-muted);font:500 12px/1.4 var(--lze-font);white-space:nowrap;background:#ffffffd1;border-radius:999px;margin:0;padding:6px 14px;position:absolute}.lze-edge{z-index:6;transform:scale(var(--inv)) translate(-50%, -50%);transform-origin:0 0;border:1px solid var(--lze-border);background:var(--lze-surface);pointer-events:auto;opacity:.22;border-radius:999px;gap:4px;padding:3px;transition:opacity .15s;display:flex;position:absolute;box-shadow:0 6px 18px #0f172a24}.lze-edge:hover,.lze-edge:focus-within{opacity:1}.lze-stacked{pointer-events:auto;transform:scale(var(--inv));transform-origin:0 0;border-bottom:1px solid var(--lze-border);max-width:none;color:var(--lze-fg);background:#fffffff2;justify-content:space-between;align-items:center;gap:8px;padding:6px 8px;font-size:12px;display:flex;width:auto!important}.lze-element-bar{pointer-events:auto;transform-origin:0 0;transform:scale(var(--inv)) translateY(calc(-100% - 10px));border:1px solid var(--lze-border);background:var(--lze-panel);border-radius:10px;align-items:center;gap:2px;padding:3px;display:flex;box-shadow:0 8px 24px #0f172a24}.lze-element-bar[data-below=true]{transform:scale(var(--inv)) translateY(14px)}.lze-divider{background:var(--lze-border);width:1px;height:20px;margin:0 2px}`,`.lze-panel-title{font-size:13px;font-weight:650}.lze-grow{flex:1;min-width:0}.lze-nowrap{flex-wrap:nowrap}.lze-divided{border-top:1px solid var(--lze-border);padding-top:12px}.lze-image-preview{border:1px solid var(--lze-border);border-radius:var(--lze-radius);background:var(--lze-bg);overflow:hidden}.lze-image-preview img{object-fit:contain;width:100%;height:96px;display:block}.lze-image-preview[data-thumb=icon]{width:fit-content;padding:6px}.lze-image-preview[data-thumb=icon] img{width:40px;height:40px}.lze-tabs-inline{border-radius:var(--lze-radius);background:var(--lze-bg);gap:4px;padding:3px;display:flex}.lze-tabs-inline button{color:var(--lze-muted);cursor:pointer;background:0 0;border:0;border-radius:6px;flex:1;padding:5px 8px;font-size:12px;font-weight:500}.lze-tabs-inline button:hover{color:var(--lze-fg)}.lze-tabs-inline button[aria-pressed=true]{background:var(--lze-panel);color:var(--lze-fg);box-shadow:0 1px 2px #0f172a14}.lze-gradient-presets{flex-wrap:wrap;gap:6px;display:flex}.lze-gradient-preset{cursor:pointer;border:1px solid #0f172a1f;border-radius:6px;width:48px;height:28px;padding:0}.lze-gradient-preset:hover{outline:2px solid var(--lze-fg);outline-offset:1px}.lze-link-card{border:1px solid var(--lze-border);border-radius:var(--lze-radius);gap:8px;margin:0;padding:8px;display:grid}.lze-link-card legend{color:var(--lze-muted);padding:0 4px;font-size:11px}.lze-icon-grid{border:1px solid var(--lze-border);border-radius:var(--lze-radius);grid-template-columns:repeat(6,1fr);gap:4px;max-height:192px;padding:6px;display:grid;overflow-y:auto}.lze-icon-grid .lze-hint{text-align:center;grid-column:1/-1;padding:8px 0}.lze-icon-choice{aspect-ratio:1;color:var(--lze-muted);cursor:pointer;background:0 0;border:0;border-radius:6px;place-items:center;padding:0;display:grid}.lze-icon-choice:hover{background:var(--lze-hover);color:var(--lze-fg)}.lze-icon-choice[aria-pressed=true]{background:var(--lze-active);color:var(--lze-fg)}.lze-slug{color:var(--lze-muted);align-items:center;gap:6px;font-family:ui-monospace,monospace;display:flex}.lze-slug-static{border:1px solid var(--lze-border);color:var(--lze-muted);border-radius:6px;gap:6px;padding:6px 8px;display:flex}.lze-slug-root{font-family:ui-monospace,monospace}.lze-choice{border:1px solid var(--lze-border);border-radius:var(--lze-radius);background:var(--lze-panel);color:inherit;text-align:left;cursor:pointer;gap:2px;padding:8px 10px;display:grid}.lze-choice:hover{border-color:var(--lze-fg);background:var(--lze-hover)}.lze-shortcuts{gap:4px;margin:0;padding-left:16px;display:grid}.lze-rows{gap:8px;margin:0;padding:0;list-style:none;display:grid}.lze-row-item{border:1px solid var(--lze-border);border-radius:var(--lze-radius);justify-content:space-between;align-items:center;gap:12px;padding:8px 12px;display:flex}.lze-palette-choice{border:1px solid var(--lze-border);border-radius:var(--lze-radius);background:var(--lze-panel);color:inherit;cursor:pointer;align-items:center;gap:8px;padding:6px 12px;display:inline-flex}.lze-palette-choice:hover{border-color:var(--lze-fg);background:var(--lze-hover)}.lze-palette-choice .lze-row{gap:3px}.lze-dot{border:1px solid #0f172a1f;border-radius:999px;width:14px;height:14px}.lze-theme-colors{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px;display:grid}.lze-theme-color{border:1px solid var(--lze-border);border-radius:var(--lze-radius);align-items:center;gap:8px;padding:6px 10px;display:flex}.lze-theme-color span{flex:1}.lze-theme-color .lze-hex{width:84px;min-height:28px;padding:3px 6px;font-family:ui-monospace,monospace;font-size:12px}.lze-theme-color input[type=color]{border:1px solid var(--lze-border);cursor:pointer;background:0 0;border-radius:6px;width:32px;height:32px;padding:0}.lze-theme-preview{border:1px solid var(--lze-border);gap:10px;padding:20px;display:grid}.lze-theme-preview-heading{font-size:24px;font-weight:700;line-height:1.2}.lze-theme-preview-button{width:fit-content;padding:8px 16px;font-weight:600}.lze-file-input{display:none}.lze-asset-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;display:grid}.lze-upload-tile{border:2px dashed var(--lze-border);border-radius:var(--lze-radius);background:var(--lze-panel);height:128px;color:var(--lze-muted);text-align:center;cursor:pointer;align-content:center;place-items:center;gap:4px;padding:8px;display:grid}.lze-upload-tile:hover:not(:disabled){border-color:var(--lze-fg);color:var(--lze-fg)}.lze-upload-tile:disabled{cursor:progress}.lze-asset{border:1px solid var(--lze-border);border-radius:var(--lze-radius);height:128px;margin:0;position:relative;overflow:hidden}.lze-asset:hover{border-color:var(--lze-fg)}.lze-asset-use{background:var(--lze-bg);width:100%;height:100%;color:inherit;cursor:pointer;border:0;flex-direction:column;padding:0;display:flex}.lze-asset-use img{object-fit:contain;flex:1;width:100%;min-height:0}.lze-asset-use figcaption{background:var(--lze-panel);color:var(--lze-muted);text-align:left;white-space:nowrap;text-overflow:ellipsis;padding:4px 8px;font-size:11px;overflow:hidden}.lze-asset .lze-asset-delete{opacity:0;background:#ffffffeb;width:28px;height:28px;position:absolute;top:6px;right:6px}.lze-asset:hover .lze-asset-delete,.lze-asset .lze-asset-delete:focus-visible{opacity:1}.lze-submission{border-bottom:1px solid var(--lze-border);gap:6px;padding:10px 0;display:grid}.lze-submission dl{grid-template-columns:minmax(96px,max-content) 1fr;gap:4px 12px;margin:0;display:grid}.lze-submission dt{color:var(--lze-muted)}.lze-submission dd{white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.lze-choices{gap:6px;display:grid}`].join(`
538
- `),uO=/* @__PURE__ */ new WeakMap;function dO(e){let t=e.getRootNode();if(!(t instanceof Document||t instanceof ShadowRoot)||uO.has(t))return;let n=new CSSStyleSheet;n.replaceSync(lO),uO.set(t,n),t.adoptedStyleSheets=[...t.adoptedStyleSheets,n]}var fO={class:`lze-toasts`},pO=[`data-tone`,`role`],mO=[`aria-label`,`onClick`],hO=/* @__PURE__ */ D({__name:`Toasts`,setup(e){let t=Y();return(e,n)=>(j(),M(`div`,fO,[(j(!0),M(A,null,k(T(t).state.toasts,e=>(j(),M(`div`,{key:e.id,class:`lze-toast`,"data-tone":e.tone,role:e.tone===`error`?`alert`:`status`},[P(`span`,null,S(e.text),1),P(`button`,{type:`button`,class:`lze-icon-btn`,"aria-label":T(t).t(`toast.dismiss`),onClick:n=>T(t).dismiss(e.id)},[F(T(Ox),{size:14,"aria-hidden":`true`})],8,mO)],8,pO))),128))]))}}),gO=[`lang`],_O={key:0,class:`lze-center`},vO={key:1,class:`lze-center`,role:`alert`},yO={key:2,class:`lze-center`},bO={class:`lze-body`},xO={class:`lze-main`},SO=/* @__PURE__ */ Mo(/* @__PURE__ */ D({inheritAttrs:!1,__name:`LienzoEditor`,props:{endpoint:{},locale:{},messages:{},headers:{},fetch:{}},setup(e){let t=e,n=Oy(t.locale??`en`,t.messages),r=Qy({client:sS({endpoint:t.endpoint,headers:t.headers,fetch:t.fetch}),i18n:n});qn(Zy,r);let i=/* @__PURE__ */ w(),a=/* @__PURE__ */ w(),o=(e,t)=>a.value?.dropPoint(e,t)??null;function s(e){let t=e.composedPath().some(e=>e===i.value),n=e.target===document.body||e.target===document.documentElement;(t||n)&&r.state.load.kind===`ready`&&ib(r,e)}let c=null;return Zn(()=>{let e=r.theme.value;r.state.load.kind===`ready`&&typeof document<`u`&&(c??=document.head.appendChild(Object.assign(document.createElement(`link`),{rel:`stylesheet`})),c.href=tc([e.heading_font,e.body_font]))}),Cr(()=>{i.value&&dO(i.value),window.addEventListener(`keydown`,s),r.load()}),Er(()=>{window.removeEventListener(`keydown`,s),c?.remove(),r.dispose()}),(e,t)=>(j(),M(`div`,{ref_key:`root`,ref:i,class:`lze-root`,lang:T(n).locale},[T(r).state.load.kind===`loading`?(j(),M(`div`,_O,S(T(r).t(`load.loading`)),1)):T(r).state.load.kind===`failed`?(j(),M(`div`,vO,[P(`p`,null,S(T(r).t(`load.failed`,{message:T(r).state.load.message})),1),F(Z,{onClick:t[0]||=e=>T(r).load()},{default:E(()=>[I(S(T(r).t(`load.retry`)),1)]),_:1})])):T(r).state.load.kind===`empty`?(j(),M(`div`,yO,[F(Z,{variant:`primary`,onClick:t[1]||=e=>T(r).state.dialog=`newPage`},{default:E(()=>[I(S(T(r).t(`newPage.title`)),1)]),_:1})])):(j(),M(A,{key:3},[F(cO),P(`div`,bO,[F(gT,{"drop-point":o}),P(`main`,xO,[T(r).state.previewing?(j(),N(oS,{key:0})):(j(),N(iS,{key:1,ref_key:`canvas`,ref:a},null,512))]),F(JD)])],64)),F(HS),F(iw),F(ew),F(EC),F(jC),F(SS),F(MS),F(hO)],8,gO))}}),{shadowRoot:!0});function CO(e=`lienzo-editor`){customElements.get(e)||customElements.define(e,SO)}CO();export{SO as LienzoEditorElement,CO as defineLienzoEditor};
537
+ `).map(e=>e.trim()).filter(Boolean).slice(0,bT)}return(t,c)=>(j(),M(A,null,[F(Q,{id:i.label,label:T(r)(`el.fieldLabel`)},{default:E(()=>[F(VS,{id:i.label,modelValue:e.element.props.label,"onUpdate:modelValue":c[0]||=t=>e.element.props.label=t,maxlength:120,onCommit:c[1]||=e=>T(n).commit()},null,8,[`id`,`modelValue`])]),_:1},8,[`id`,`label`]),e.element.type===`input`?(j(),N(Q,{key:0,id:i.type,label:T(r)(`el.inputType`)},{default:E(()=>[F($,{id:i.type,"model-value":e.element.props.input_type??`text`,options:T(a),"onUpdate:modelValue":c[2]||=t=>e.element.props.input_type=t,onCommit:c[3]||=e=>T(n).commit()},null,8,[`id`,`model-value`,`options`])]),_:1},8,[`id`,`label`])):L(``,!0),e.element.type===`select`?(j(),N(Q,{key:1,id:i.options,label:T(r)(`el.options`),hint:T(r)(`el.optionsHint`)},{default:E(()=>[F(VS,{id:i.options,"model-value":o.value,rows:4,"onUpdate:modelValue":s,onCommit:c[4]||=e=>T(n).commit()},null,8,[`id`,`model-value`])]),_:1},8,[`id`,`label`,`hint`])):L(``,!0),e.element.type===`select`?(j(),N(oC,{key:2,modelValue:e.element.props.multiple,"onUpdate:modelValue":c[5]||=t=>e.element.props.multiple=t,label:T(r)(`el.multiple`),onCommit:c[6]||=e=>T(n).commit()},null,8,[`modelValue`,`label`])):L(``,!0),e.element.type!==`checkbox`&&!(e.element.type===`select`&&e.element.props.multiple)?(j(),N(Q,{key:3,id:i.placeholder,label:T(r)(`el.placeholder`)},{default:E(()=>[F(VS,{id:i.placeholder,modelValue:e.element.props.placeholder,"onUpdate:modelValue":c[7]||=t=>e.element.props.placeholder=t,maxlength:120,onCommit:c[8]||=e=>T(n).commit()},null,8,[`id`,`modelValue`])]),_:1},8,[`id`,`label`])):L(``,!0),F(oC,{modelValue:e.element.props.required,"onUpdate:modelValue":c[9]||=t=>e.element.props.required=t,label:T(r)(`el.required`),onCommit:c[10]||=e=>T(n).commit()},null,8,[`modelValue`,`label`])],64))}}),ST=[`aria-label`],CT=[`title`,`aria-label`,`aria-pressed`,`onClick`],wT={key:0,class:`lze-hint`},TT=/* @__PURE__ */ D({__name:`IconContent`,props:{element:{}},setup(e){let t=e,n=Y(),r=n.t,i=O(),a=/* @__PURE__ */ w(``),o=R(()=>{let e=a.value.trim().toLowerCase();return e?dw.filter(t=>t.includes(e)):dw});function s(e){t.element.props.icon=e,n.commit()}return(t,c)=>(j(),M(A,null,[F(Q,{id:T(i),label:T(r)(`el.icon`)},{default:E(()=>[F(VS,{id:T(i),modelValue:a.value,"onUpdate:modelValue":c[0]||=e=>a.value=e,type:`search`,placeholder:T(r)(`el.iconSearch`)},null,8,[`id`,`modelValue`,`placeholder`]),P(`div`,{class:`lze-icon-grid`,role:`group`,"aria-label":T(r)(`el.iconOptions`)},[(j(!0),M(A,null,k(o.value,t=>(j(),M(`button`,{key:t,type:`button`,class:`lze-icon-choice`,title:t,"aria-label":t,"aria-pressed":e.element.props.icon===t,onClick:e=>s(t)},[F(pw,{name:t,size:20},null,8,[`name`])],8,CT))),128)),o.value.length===0?(j(),M(`p`,wT,S(T(r)(`el.noResults`)),1)):L(``,!0)],8,ST)]),_:1},8,[`id`,`label`]),F(LC,{modelValue:e.element.props.stroke,"onUpdate:modelValue":c[1]||=t=>e.element.props.stroke=t,label:T(r)(`el.stroke`),min:.5,max:4,step:.25,fallback:2,onCommit:c[2]||=e=>T(n).commit()},null,8,[`modelValue`,`label`])],64))}}),ET=[`rectangle`,`ellipse`,`triangle`,`blob`,`arch`,`diagonal`,`dots`,`grid`],DT=e=>ET.map(t=>({value:t,label:e(`shape.${t}`)})),OT=/* @__PURE__ */ D({__name:`ImageContent`,props:{element:{}},setup(e){let t=Y(),n=t.t,r={alt:O(),fit:O(),crop:O()},i=[`cover`,`contain`].map(e=>({value:e,label:n(`el.fit.${e}`)}));return(a,o)=>(j(),M(A,null,[F(YS,{modelValue:e.element.props.src,"onUpdate:modelValue":o[0]||=t=>e.element.props.src=t,label:T(n)(`el.image`),url:``,onCommit:o[1]||=e=>T(t).commit()},null,8,[`modelValue`,`label`]),F(Q,{id:r.alt,label:T(n)(`el.alt`)},{default:E(()=>[F(VS,{id:r.alt,modelValue:e.element.props.alt,"onUpdate:modelValue":o[2]||=t=>e.element.props.alt=t,maxlength:200,placeholder:T(n)(`el.altPlaceholder`),onCommit:o[3]||=e=>T(t).commit()},null,8,[`id`,`modelValue`,`placeholder`])]),_:1},8,[`id`,`label`]),F(Q,{id:r.fit,label:T(n)(`el.fit`)},{default:E(()=>[F($,{id:r.fit,modelValue:e.element.style.object_fit,"onUpdate:modelValue":o[4]||=t=>e.element.style.object_fit=t,options:T(i),onCommit:o[5]||=e=>T(t).commit()},null,8,[`id`,`modelValue`,`options`])]),_:1},8,[`id`,`label`]),F(Q,{id:r.crop,label:T(n)(`el.crop`)},{default:E(()=>[F($,{id:r.crop,modelValue:e.element.props.shape,"onUpdate:modelValue":o[6]||=t=>e.element.props.shape=t,options:T(DT)(T(n)),onCommit:o[7]||=e=>T(t).commit()},null,8,[`id`,`modelValue`,`options`])]),_:1},8,[`id`,`label`])],64))}}),kT={class:`lze-hint`},AT=/* @__PURE__ */ D({__name:`BoxContent`,props:{element:{}},setup(e){let t=e,n=Y(),r=n.t,i={flow:O(),align:O()},a=[`column`,`row`].map(e=>({value:e,label:r(`el.boxFlow.${e}`)})),o=[`start`,`center`,`end`,`between`].map(e=>({value:e,label:r(`section.align.${e}`)})),s=()=>t.element.children?.length??0;return(t,c)=>(j(),M(A,null,[F(Q,{id:i.flow,label:T(r)(`el.boxFlow`)},{default:E(()=>[F($,{id:i.flow,"model-value":e.element.props.flow??`column`,options:T(a),"onUpdate:modelValue":c[0]||=t=>e.element.props.flow=t,onCommit:c[1]||=e=>T(n).commit()},null,8,[`id`,`model-value`,`options`])]),_:1},8,[`id`,`label`]),F(eC,{"model-value":e.element.props.flow_gap??16,label:T(r)(`section.flowGap`),min:0,max:160,suffix:`px`,"onUpdate:modelValue":c[2]||=t=>e.element.props.flow_gap=t??16,onCommit:c[3]||=e=>T(n).commit()},null,8,[`model-value`,`label`]),F(Q,{id:i.align,label:T(r)(`section.flowAlign`)},{default:E(()=>[F($,{id:i.align,"model-value":e.element.props.flow_align??`start`,options:T(o),"onUpdate:modelValue":c[4]||=t=>e.element.props.flow_align=t,onCommit:c[5]||=e=>T(n).commit()},null,8,[`id`,`model-value`,`options`])]),_:1},8,[`id`,`label`]),P(`p`,kT,S(s()===0?T(r)(`el.boxEmpty`):T(r)(`el.boxHolds`,{n:s()})),1)],64))}}),jT={class:`lze-field`},MT={class:`lze-heading`},NT={class:`lze-label`},PT={class:`lze-hint`},FT=24,IT=/* @__PURE__ */ D({__name:`PictureList`,props:{element:{}},setup(e){let t=e,n=Y(),r=n.t,i=R(()=>t.element.props.images??[]);function a(e,n){t.element.props.images=i.value.map((t,r)=>r===e?n??``:t)}function o(){t.element.props.images=[...i.value,``],n.commit()}function s(e){t.element.props.images=i.value.filter((t,n)=>n!==e),n.commit()}return(e,t)=>(j(),M(`div`,jT,[P(`div`,MT,[P(`span`,NT,S(T(r)(`el.gallery`)),1),F(Z,{disabled:i.value.length>=FT,onClick:o},{default:E(()=>[I(S(T(r)(`el.galleryAdd`)),1)]),_:1},8,[`disabled`])]),(j(!0),M(A,null,k(i.value,(e,i)=>(j(),M(`div`,{key:i,class:`lze-row lze-nowrap`},[F(YS,{"model-value":e,label:T(r)(`el.galleryItem`,{n:i+1}),url:``,class:`lze-grow`,"onUpdate:modelValue":e=>a(i,e),onCommit:t[0]||=e=>T(n).commit()},null,8,[`model-value`,`label`,`onUpdate:modelValue`]),F(Z,{variant:`danger`,onClick:e=>s(i)},{default:E(()=>[I(S(T(r)(`el.galleryRemove`)),1)]),_:1},8,[`onClick`])]))),128)),P(`p`,PT,S(T(r)(`el.galleryHint`)),1)]))}}),LT=/* @__PURE__ */ D({__name:`GalleryContent`,props:{element:{}},setup(e){let t=Y(),n=t.t,r={layout:O(),alt:O()},i=[`grid`,`strip`].map(e=>({value:e,label:n(`el.gallery.${e}`)}));return(a,o)=>(j(),M(A,null,[F(Q,{id:r.layout,label:T(n)(`el.galleryLayout`)},{default:E(()=>[F($,{id:r.layout,"model-value":e.element.props.layout??`grid`,options:T(i),"onUpdate:modelValue":o[0]||=t=>e.element.props.layout=t,onCommit:o[1]||=e=>T(t).commit()},null,8,[`id`,`model-value`,`options`])]),_:1},8,[`id`,`label`]),(e.element.props.layout??`grid`)===`grid`?(j(),N(eC,{key:0,"model-value":e.element.props.columns??3,label:T(n)(`el.galleryColumns`),min:1,max:6,"onUpdate:modelValue":o[2]||=t=>e.element.props.columns=t??3,onCommit:o[3]||=e=>T(t).commit()},null,8,[`model-value`,`label`])):L(``,!0),F(IT,{element:e.element},null,8,[`element`]),F(Q,{id:r.alt,label:T(n)(`el.alt`)},{default:E(()=>[F(VS,{id:r.alt,modelValue:e.element.props.alt,"onUpdate:modelValue":o[4]||=t=>e.element.props.alt=t,maxlength:200,placeholder:T(n)(`el.altPlaceholder`),onCommit:o[5]||=e=>T(t).commit()},null,8,[`id`,`modelValue`,`placeholder`])]),_:1},8,[`id`,`label`])],64))}}),RT=/* @__PURE__ */ D({__name:`SliderContent`,props:{element:{}},setup(e){let t=Y(),n=t.t,r={alt:O()};return(i,a)=>(j(),M(A,null,[F(IT,{element:e.element},null,8,[`element`]),F(oC,{"model-value":e.element.props.arrows!==!1,label:T(n)(`el.sliderArrows`),"onUpdate:modelValue":a[0]||=n=>{e.element.props.arrows=n,T(t).commit()}},null,8,[`model-value`,`label`]),F(oC,{"model-value":e.element.props.dots!==!1,label:T(n)(`el.sliderDots`),"onUpdate:modelValue":a[1]||=n=>{e.element.props.dots=n,T(t).commit()}},null,8,[`model-value`,`label`]),F(oC,{"model-value":e.element.props.autoplay===!0,label:T(n)(`el.sliderAutoplay`),"onUpdate:modelValue":a[2]||=n=>{e.element.props.autoplay=n,T(t).commit()}},null,8,[`model-value`,`label`]),e.element.props.autoplay===!0?(j(),N(eC,{key:0,"model-value":e.element.props.interval??5,label:T(n)(`el.sliderInterval`),min:2,max:12,"onUpdate:modelValue":a[3]||=t=>e.element.props.interval=t??5,onCommit:a[4]||=e=>T(t).commit()},null,8,[`model-value`,`label`])):L(``,!0),F(Q,{id:r.alt,label:T(n)(`el.alt`)},{default:E(()=>[F(VS,{id:r.alt,modelValue:e.element.props.alt,"onUpdate:modelValue":a[5]||=t=>e.element.props.alt=t,maxlength:200,placeholder:T(n)(`el.altPlaceholder`),onCommit:a[6]||=e=>T(t).commit()},null,8,[`id`,`modelValue`,`placeholder`])]),_:1},8,[`id`,`label`])],64))}}),zT={class:`lze-field`},BT={class:`lze-label`},VT=[`aria-label`],HT=[`title`,`aria-label`,`aria-pressed`,`onClick`],UT=[`data-active`,`title`],WT=[`value`,`aria-label`],GT=/* @__PURE__ */ D({__name:`ColorPicker`,props:/*@__PURE__*/ Wr({label:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:/*@__PURE__*/ Wr([`commit`],[`update:modelValue`]),setup(e,{emit:t}){let n=ui(e,`modelValue`),r=t,i=Y(),a=R(()=>n.value&&!Us(n.value)?n.value:`#2563eb`);function o(e){n.value=e,r(`commit`)}return(t,s)=>(j(),M(`div`,zT,[P(`span`,BT,S(e.label),1),P(`div`,{class:`lze-swatches`,role:`group`,"aria-label":e.label},[(j(!0),M(A,null,k(T(Vs),e=>(j(),M(`button`,{key:e,type:`button`,class:`lze-swatch`,style:x({background:T(Xs)(e,T(i).theme.value)}),title:T(i).t(`token.${e}`),"aria-label":T(i).t(`token.${e}`),"aria-pressed":n.value===e,onClick:t=>o(e)},null,12,HT))),128)),P(`label`,{class:`lze-swatch-custom`,"data-active":!!n.value&&!T(Us)(n.value),title:T(i).t(`color.custom`)},[P(`input`,{type:`color`,value:a.value,"aria-label":T(i).t(`color.customLabel`,{label:e.label}),onInput:s[0]||=e=>n.value=e.target.value,onChange:s[1]||=e=>r(`commit`)},null,40,WT),I(` `+S(T(i).t(`color.custom`)),1)],8,UT)],8,VT)]))}}),KT={class:`lze-field`},qT={class:`lze-label`},JT={class:`lze-row`},YT={class:`lze-hint`},XT={key:2,class:`lze-hint`},ZT={class:`lze-field`},QT={class:`lze-heading`},$T={class:`lze-label`},eE={class:`lze-row lze-nowrap`},tE={class:`lze-hint`},nE=8,rE=/* @__PURE__ */ D({__name:`NavbarContent`,props:{element:{}},setup(e){let t=e,n=Y(),r=n.t,i={brand:O(),scroll:O(),layout:O(),template:O(),position:O()},a=Dy(r),o=[`same`,`shadow`,`solid`,`compact`].map(e=>({value:e,label:r(`el.scroll.${e}`)})),s=[`plain`,`pill`,`card`,`underline`,`divided`,`floating`,`boxed`,`tracked`,`ribbon`,`outline`,`minimal`,`stack`,`rail`].map(e=>({value:e,label:r(`el.navbarTemplate.${e}`)})),c=[`split`,`left`,`center`,`right`].map(e=>({value:e,label:r(`el.layout.${e}`)})),l=[`top`,`bottom`].map(e=>({value:e,label:r(`el.navbarPosition.${e}`)})),u=R(()=>t.element.props.links??[]);function d(e){t.element.props={...t.element.props,...xs(e.props)},t.element.style={...t.element.style,...xs(e.style)},n.commit()}function f(){t.element.props.links=[...u.value,{label:r(`default.link`),action:{type:`anchor`,value:``}}],n.commit()}function p(e){t.element.props.links=u.value.filter((t,n)=>n!==e),n.commit()}return(t,m)=>(j(),M(A,null,[P(`div`,KT,[P(`span`,qT,S(T(r)(`el.presets`)),1),P(`div`,JT,[(j(!0),M(A,null,k(T(a),e=>(j(),N(Z,{key:e.name,onClick:t=>d(e)},{default:E(()=>[I(S(T(r)(e.name)),1)]),_:2},1032,[`onClick`]))),128))])]),F(Q,{id:i.brand,label:T(r)(`el.brand`)},{default:E(()=>[F(VS,{id:i.brand,modelValue:e.element.props.brand,"onUpdate:modelValue":m[0]||=t=>e.element.props.brand=t,maxlength:60,placeholder:T(r)(`el.brandPlaceholder`),onCommit:m[1]||=e=>T(n).commit()},null,8,[`id`,`modelValue`,`placeholder`])]),_:1},8,[`id`,`label`]),F(oC,{modelValue:e.element.props.sticky,"onUpdate:modelValue":m[2]||=t=>e.element.props.sticky=t,label:T(r)(`el.sticky`),onCommit:m[3]||=e=>T(n).commit()},null,8,[`modelValue`,`label`]),e.element.props.sticky?(j(),N(Q,{key:0,id:i.scroll,label:T(r)(`el.scrollStyle`)},{default:E(()=>[F($,{id:i.scroll,"model-value":e.element.props.scroll_style??`same`,options:T(o),"onUpdate:modelValue":m[4]||=t=>e.element.props.scroll_style=t,onCommit:m[5]||=e=>T(n).commit()},null,8,[`id`,`model-value`,`options`])]),_:1},8,[`id`,`label`])):L(``,!0),e.element.props.sticky?(j(),M(A,{key:1},[F(Q,{id:i.position,label:T(r)(`el.navbarPosition`)},{default:E(()=>[F($,{id:i.position,"model-value":e.element.props.position??`top`,options:T(l),"onUpdate:modelValue":m[6]||=t=>e.element.props.position=t,onCommit:m[7]||=e=>T(n).commit()},null,8,[`id`,`model-value`,`options`])]),_:1},8,[`id`,`label`]),F(GT,{modelValue:e.element.style.scroll_background,"onUpdate:modelValue":m[8]||=t=>e.element.style.scroll_background=t,label:T(r)(`el.scrollBackground`),onCommit:m[9]||=e=>T(n).commit()},null,8,[`modelValue`,`label`]),F(GT,{modelValue:e.element.style.scroll_color,"onUpdate:modelValue":m[10]||=t=>e.element.style.scroll_color=t,label:T(r)(`el.scrollColor`),onCommit:m[11]||=e=>T(n).commit()},null,8,[`modelValue`,`label`]),P(`p`,YT,S(T(r)(`el.scrollColorsHint`)),1)],64)):(j(),M(`p`,XT,S(T(r)(`el.notSticky`)),1)),F(Q,{id:i.layout,label:T(r)(`el.layout`)},{default:E(()=>[F($,{id:i.layout,"model-value":e.element.props.layout??`split`,options:T(c),"onUpdate:modelValue":m[12]||=t=>e.element.props.layout=t,onCommit:m[13]||=e=>T(n).commit()},null,8,[`id`,`model-value`,`options`])]),_:1},8,[`id`,`label`]),F(Q,{id:i.template,label:T(r)(`el.navbarTemplate`)},{default:E(()=>[F($,{id:i.template,"model-value":e.element.props.template??`plain`,options:T(s),"onUpdate:modelValue":m[14]||=t=>e.element.props.template=t,onCommit:m[15]||=e=>T(n).commit()},null,8,[`id`,`model-value`,`options`])]),_:1},8,[`id`,`label`]),P(`div`,ZT,[P(`div`,QT,[P(`span`,$T,S(T(r)(`el.links`)),1),F(Z,{disabled:u.value.length>=nE,onClick:f},{default:E(()=>[I(S(T(r)(`common.add`)),1)]),_:1},8,[`disabled`])]),(j(!0),M(A,null,k(u.value,(e,t)=>(j(),M(`fieldset`,{key:t,class:`lze-link-card`},[P(`legend`,null,S(T(r)(`el.linkN`,{n:t+1})),1),P(`div`,eE,[F(VS,{modelValue:e.label,"onUpdate:modelValue":t=>e.label=t,maxlength:40,label:T(r)(`el.linkLabel`),onCommit:m[16]||=e=>T(n).commit()},null,8,[`modelValue`,`onUpdate:modelValue`,`label`]),F(Z,{variant:`danger`,onClick:e=>p(t)},{default:E(()=>[I(S(T(r)(`el.removeLink`)),1)]),_:1},8,[`onClick`])]),F(mC,{modelValue:e.action,"onUpdate:modelValue":t=>e.action=t,label:T(r)(`el.action`),onCommit:m[17]||=e=>T(n).commit()},null,8,[`modelValue`,`onUpdate:modelValue`,`label`])]))),128)),P(`p`,tE,S(T(r)(`el.linksHint`)),1)])],64))}}),iE=/* @__PURE__ */ D({__name:`ShapeContent`,props:{element:{}},setup(e){let t=Y(),n=t.t,r=O();return(i,a)=>(j(),M(A,null,[F(Q,{id:T(r),label:T(n)(`el.shape`)},{default:E(()=>[F($,{id:T(r),modelValue:e.element.props.shape,"onUpdate:modelValue":a[0]||=t=>e.element.props.shape=t,options:T(DT)(T(n)),onCommit:a[1]||=e=>T(t).commit()},null,8,[`id`,`modelValue`,`options`])]),_:1},8,[`id`,`label`]),F(LC,{modelValue:e.element.style.opacity,"onUpdate:modelValue":a[2]||=t=>e.element.style.opacity=t,label:T(n)(`el.opacity`),min:.1,max:1,step:.05,fallback:1,format:e=>`${Math.round(e*100)}%`,onCommit:a[3]||=e=>T(t).commit()},null,8,[`modelValue`,`label`,`format`])],64))}}),aE=/* @__PURE__ */ D({__name:`TextContent`,props:{element:{}},setup(e){let t=Y(),n=t.t,r={text:O(),accent:O(),level:O()},i=[1,2,3,4].map(e=>({value:e,label:n(`el.level.${e}`)}));return(a,o)=>(j(),M(A,null,[F(Q,{id:r.text,label:T(n)(`el.text`)},{default:E(()=>[F(VS,{id:r.text,modelValue:e.element.props.text,"onUpdate:modelValue":o[0]||=t=>e.element.props.text=t,rows:3,maxlength:2e3,onCommit:o[1]||=e=>T(t).commit()},null,8,[`id`,`modelValue`])]),_:1},8,[`id`,`label`]),F(Q,{id:r.accent,label:T(n)(`el.accent`)},{default:E(()=>[F(VS,{id:r.accent,modelValue:e.element.props.accent,"onUpdate:modelValue":o[2]||=t=>e.element.props.accent=t,maxlength:120,placeholder:T(n)(`el.accentPlaceholder`),onCommit:o[3]||=e=>T(t).commit()},null,8,[`id`,`modelValue`,`placeholder`])]),_:1},8,[`id`,`label`]),e.element.props.accent?(j(),N(GT,{key:0,modelValue:e.element.style.accent_color,"onUpdate:modelValue":o[4]||=t=>e.element.style.accent_color=t,label:T(n)(`el.accentColor`),onCommit:o[5]||=e=>T(t).commit()},null,8,[`modelValue`,`label`])):L(``,!0),e.element.type===`heading`?(j(),N(Q,{key:1,id:r.level,label:T(n)(`el.level`)},{default:E(()=>[F($,{id:r.level,modelValue:e.element.props.level,"onUpdate:modelValue":o[6]||=t=>e.element.props.level=t,options:T(i),onCommit:o[7]||=e=>T(t).commit()},null,8,[`id`,`modelValue`,`options`])]),_:1},8,[`id`,`label`])):L(``,!0)],64))}}),oE=/* @__PURE__ */ D({__name:`VideoContent`,props:{element:{}},setup(e){let t=Y(),n=t.t,r=O();return(i,a)=>(j(),N(Q,{id:T(r),label:T(n)(`el.videoUrl`),hint:T(n)(`el.videoHint`)},{default:E(()=>[F(VS,{id:T(r),modelValue:e.element.props.url,"onUpdate:modelValue":a[0]||=t=>e.element.props.url=t,type:`url`,maxlength:500,placeholder:T(n)(`el.videoPlaceholder`),onCommit:a[1]||=e=>T(t).commit()},null,8,[`id`,`modelValue`,`placeholder`])]),_:1},8,[`id`,`label`,`hint`]))}}),sE=[`open`],cE={class:`lze-panel-body`},lE=/* @__PURE__ */ D({__name:`PanelSection`,props:{title:{},open:{type:Boolean,default:!0}},setup(e){return(t,n)=>(j(),M(`details`,{class:`lze-panel-section`,open:e.open},[P(`summary`,null,[I(S(e.title),1),F(T(Kb),{size:14,"aria-hidden":`true`})]),P(`div`,cE,[Lr(t.$slots,`default`)])],8,sE))}}),uE={class:`lze-stack`},dE=[`aria-label`],fE=[`title`,`aria-label`,`onClick`],pE={class:`lze-grid-2`},mE=/* @__PURE__ */ D({__name:`GradientEditor`,props:{modelValue:{required:!0},modelModifiers:{}},emits:/*@__PURE__*/ Wr([`commit`],[`update:modelValue`]),setup(e,{emit:t}){let n=ui(e,`modelValue`),r=t,i=Y(),a=i.t,o=O(),s={type:`linear`,from:`primary`,to:`secondary`,angle:135},c=R(()=>({...s,...n.value}));function l(e,t){n.value={...c.value,[e]:t}}function u(e){n.value={...e},r(`commit`)}return(e,t)=>(j(),M(`div`,uE,[P(`div`,{class:`lze-gradient-presets`,role:`group`,"aria-label":T(a)(`gradient.presets`)},[(j(!0),M(A,null,k(T(Ys),e=>(j(),M(`button`,{key:e.name,type:`button`,class:`lze-gradient-preset`,style:x({background:T(Zs)(e.gradient,T(i).theme.value)}),title:T(a)(e.name),"aria-label":T(a)(e.name),onClick:t=>u(e.gradient)},null,12,fE))),128))],8,dE),F(GT,{"model-value":c.value.from,label:T(a)(`gradient.from`),"onUpdate:modelValue":t[0]||=e=>l(`from`,e),onCommit:t[1]||=e=>r(`commit`)},null,8,[`model-value`,`label`]),F(GT,{"model-value":c.value.to,label:T(a)(`gradient.to`),"onUpdate:modelValue":t[2]||=e=>l(`to`,e),onCommit:t[3]||=e=>r(`commit`)},null,8,[`model-value`,`label`]),P(`div`,pE,[F(Q,{id:T(o),label:T(a)(`gradient.shape`)},{default:E(()=>[F($,{id:T(o),"model-value":c.value.type,options:[{value:`linear`,label:T(a)(`gradient.linear`)},{value:`radial`,label:T(a)(`gradient.radial`)}],"onUpdate:modelValue":t[4]||=e=>l(`type`,e),onCommit:t[5]||=e=>r(`commit`)},null,8,[`id`,`model-value`,`options`])]),_:1},8,[`id`,`label`]),c.value.type===`linear`?(j(),N(LC,{key:0,"model-value":c.value.angle,label:T(a)(`gradient.angle`),min:0,max:360,step:5,fallback:135,format:e=>`${e}°`,"onUpdate:modelValue":t[6]||=e=>l(`angle`,e),onCommit:t[7]||=e=>r(`commit`)},null,8,[`model-value`,`label`,`format`])):L(``,!0)])]))}}),hE={class:`lze-heading`},gE={class:`lze-label`},_E={class:`lze-grid-2`},vE={key:2,class:`lze-hint`},yE=/* @__PURE__ */ D({__name:`FillStyle`,props:{element:{}},setup(e){let t=e,n=Y(),r=n.t,i=e=>`${Math.round(e*100)}%`,a=R(()=>t.element.style.gradient?`gradient`:`color`);function o(e){let r=t.element.style;r.gradient=e===`gradient`?r.gradient??{type:`linear`,from:r.background??`primary`,to:`secondary`,angle:135}:null,n.commit()}return(t,s)=>(j(),N(lE,{title:T(r)(`style.fill`)},{default:E(()=>[F(GT,{modelValue:e.element.style.color,"onUpdate:modelValue":s[0]||=t=>e.element.style.color=t,label:T(r)(`style.color`),onCommit:s[1]||=e=>T(n).commit()},null,8,[`modelValue`,`label`]),P(`div`,hE,[P(`span`,gE,S(T(r)(`style.background`)),1),F($,{"model-value":a.value,compact:``,label:T(r)(`style.backgroundType`),options:[{value:`color`,label:T(r)(`fill.color`)},{value:`gradient`,label:T(r)(`fill.gradient`)}],"onUpdate:modelValue":o},null,8,[`model-value`,`label`,`options`])]),a.value===`color`?(j(),N(GT,{key:0,modelValue:e.element.style.background,"onUpdate:modelValue":s[2]||=t=>e.element.style.background=t,label:T(r)(`style.backgroundColor`),onCommit:s[3]||=e=>T(n).commit()},null,8,[`modelValue`,`label`])):(j(),N(mE,{key:1,modelValue:e.element.style.gradient,"onUpdate:modelValue":s[4]||=t=>e.element.style.gradient=t,onCommit:s[5]||=e=>T(n).commit()},null,8,[`modelValue`])),P(`div`,_E,[F(LC,{modelValue:e.element.style.background_opacity,"onUpdate:modelValue":s[6]||=t=>e.element.style.background_opacity=t,label:T(r)(`style.transparency`),min:0,max:1,step:.05,fallback:1,format:i,onCommit:s[7]||=e=>T(n).commit()},null,8,[`modelValue`,`label`]),F(LC,{modelValue:e.element.style.blur,"onUpdate:modelValue":s[8]||=t=>e.element.style.blur=t,label:T(r)(`style.glass`),min:0,max:40,format:e=>`${e} px`,onCommit:s[9]||=e=>T(n).commit()},null,8,[`modelValue`,`label`,`format`])]),e.element.style.blur?(j(),M(`p`,vE,S(T(r)(`style.glassHint`)),1)):L(``,!0)]),_:1},8,[`title`]))}}),bE={class:`lze-grid-2`},xE={key:1,class:`lze-hint`},SE={class:`lze-grid-2`},CE=/* @__PURE__ */ D({__name:`FrameStyle`,props:{element:{}},setup(e){let t=e,n=Y(),r=n.t,i={shadow:O(),finish:O()},a=[`none`,`sm`,`md`,`lg`,`custom`].map(e=>({value:e,label:r(`style.shadow.${e}`)})),o=[`flat`,`glass`,`soft`,`pressed`].map(e=>({value:e,label:r(`style.finish.${e}`)}));function s(e){t.element.style.finish=e,e===`glass`&&(t.element.style.background_opacity??1)>.8&&(t.element.style.background_opacity=.55),n.commit()}let c={x:0,y:12,blur:32,spread:0,color:`secondary`,opacity:.2},l=R(()=>({...c,...t.element.style.shadow_custom}));function u(e,n){t.element.style.shadow_custom={...l.value,[e]:n}}return(t,c)=>(j(),M(A,null,[F(lE,{title:T(r)(`style.frame`)},{default:E(()=>[P(`div`,bE,[F(eC,{modelValue:e.element.style.radius,"onUpdate:modelValue":c[0]||=t=>e.element.style.radius=t,label:T(r)(`style.radius`),min:0,max:999,suffix:`px`,onCommit:c[1]||=e=>T(n).commit()},null,8,[`modelValue`,`label`]),F(eC,{modelValue:e.element.style.padding,"onUpdate:modelValue":c[2]||=t=>e.element.style.padding=t,label:T(r)(`style.padding`),min:0,max:80,suffix:`px`,onCommit:c[3]||=e=>T(n).commit()},null,8,[`modelValue`,`label`]),F(eC,{modelValue:e.element.style.border_width,"onUpdate:modelValue":c[4]||=t=>e.element.style.border_width=t,label:T(r)(`style.border`),min:0,max:12,suffix:`px`,onCommit:c[5]||=e=>T(n).commit()},null,8,[`modelValue`,`label`]),F(eC,{"model-value":e.element.z,label:T(r)(`style.layer`),min:0,max:999,"onUpdate:modelValue":c[6]||=t=>e.element.z=t??e.element.z,onCommit:c[7]||=e=>T(n).commit()},null,8,[`model-value`,`label`])]),e.element.style.border_width?(j(),N(GT,{key:0,modelValue:e.element.style.border_color,"onUpdate:modelValue":c[8]||=t=>e.element.style.border_color=t,label:T(r)(`style.borderColor`),onCommit:c[9]||=e=>T(n).commit()},null,8,[`modelValue`,`label`])):L(``,!0),F(Q,{id:i.shadow,label:T(r)(`style.shadow`)},{default:E(()=>[F($,{id:i.shadow,"model-value":e.element.style.shadow??`none`,options:T(a),"onUpdate:modelValue":c[10]||=t=>e.element.style.shadow=t,onCommit:c[11]||=e=>T(n).commit()},null,8,[`id`,`model-value`,`options`])]),_:1},8,[`id`,`label`]),F(Q,{id:i.finish,label:T(r)(`style.finish`)},{default:E(()=>[F($,{id:i.finish,"model-value":e.element.style.finish??`flat`,options:T(o),"onUpdate:modelValue":c[12]||=e=>s(e)},null,8,[`id`,`model-value`,`options`])]),_:1},8,[`id`,`label`]),e.element.style.finish===`glass`?(j(),M(`p`,xE,S(T(r)(`style.finish.glassHint`)),1)):L(``,!0)]),_:1},8,[`title`]),e.element.style.shadow===`custom`?(j(),N(lE,{key:0,title:T(r)(`style.customShadow`)},{default:E(()=>[P(`div`,SE,[F(eC,{"model-value":l.value.x,label:T(r)(`position.x`),min:-100,max:100,suffix:`px`,"onUpdate:modelValue":c[13]||=e=>u(`x`,e),onCommit:c[14]||=e=>T(n).commit()},null,8,[`model-value`,`label`]),F(eC,{"model-value":l.value.y,label:T(r)(`position.y`),min:-100,max:100,suffix:`px`,"onUpdate:modelValue":c[15]||=e=>u(`y`,e),onCommit:c[16]||=e=>T(n).commit()},null,8,[`model-value`,`label`]),F(eC,{"model-value":l.value.blur,label:T(r)(`style.shadowBlur`),min:0,max:200,suffix:`px`,"onUpdate:modelValue":c[17]||=e=>u(`blur`,e),onCommit:c[18]||=e=>T(n).commit()},null,8,[`model-value`,`label`]),F(eC,{"model-value":l.value.spread,label:T(r)(`style.shadowSpread`),min:-50,max:100,suffix:`px`,"onUpdate:modelValue":c[19]||=e=>u(`spread`,e),onCommit:c[20]||=e=>T(n).commit()},null,8,[`model-value`,`label`])]),F(GT,{"model-value":l.value.color,label:T(r)(`style.shadowColor`),"onUpdate:modelValue":c[21]||=e=>u(`color`,e),onCommit:c[22]||=e=>T(n).commit()},null,8,[`model-value`,`label`]),F(LC,{"model-value":l.value.opacity,label:T(r)(`style.shadowOpacity`),min:0,max:1,step:.05,format:e=>`${Math.round(e*100)}%`,"onUpdate:modelValue":c[23]||=e=>u(`opacity`,e),onCommit:c[24]||=e=>T(n).commit()},null,8,[`model-value`,`label`,`format`])]),_:1},8,[`title`])):L(``,!0)],64))}}),wE={key:0,class:`lze-grid-2`},TE={class:`lze-hint`},EE=/* @__PURE__ */ D({__name:`MotionStyle`,props:{element:{}},setup(e){let t=e,n=Y(),r=n.t,i={entrance:O(),hover:O(),scroll:O()},a=[`none`,`fade`,`up`,`down`,`left`,`right`,`zoom`,`blur`,`reveal`].map(e=>({value:e,label:r(`style.anim.${e}`)})),o=[`none`,`rise`,`drift`,`zoom`].map(e=>({value:e,label:r(`style.scroll.${e}`)})),s=[`none`,`lift`,`grow`,`fade`,`sink`,`tilt`,`glow`].map(e=>({value:e,label:r(`style.hover.${e}`)})),c=e=>`${e} s`,l={type:`none`,delay:0,duration:.7},u=R(()=>({...l,...t.element.style.animation}));function d(e,n){t.element.style.animation={...u.value,[e]:n}}return(t,l)=>(j(),N(lE,{title:T(r)(`style.motion`),open:!1},{default:E(()=>[F(Q,{id:i.entrance,label:T(r)(`style.entrance`)},{default:E(()=>[F($,{id:i.entrance,"model-value":u.value.type,options:T(a),"onUpdate:modelValue":l[0]||=e=>d(`type`,e),onCommit:l[1]||=e=>T(n).commit()},null,8,[`id`,`model-value`,`options`])]),_:1},8,[`id`,`label`]),u.value.type===`none`?L(``,!0):(j(),M(`div`,wE,[F(LC,{"model-value":u.value.delay,label:T(r)(`style.delay`),min:0,max:2,step:.1,format:c,"onUpdate:modelValue":l[2]||=e=>d(`delay`,e),onCommit:l[3]||=e=>T(n).commit()},null,8,[`model-value`,`label`]),F(LC,{"model-value":u.value.duration,label:T(r)(`style.duration`),min:.2,max:2,step:.1,fallback:.7,format:c,"onUpdate:modelValue":l[4]||=e=>d(`duration`,e),onCommit:l[5]||=e=>T(n).commit()},null,8,[`model-value`,`label`])])),F(Q,{id:i.scroll,label:T(r)(`style.scroll`),hint:T(r)(`style.scrollHint`)},{default:E(()=>[F($,{id:i.scroll,"model-value":e.element.style.scroll??`none`,options:T(o),"onUpdate:modelValue":l[6]||=t=>e.element.style.scroll=t,onCommit:l[7]||=e=>T(n).commit()},null,8,[`id`,`model-value`,`options`])]),_:1},8,[`id`,`label`,`hint`]),F(Q,{id:i.hover,label:T(r)(`style.hover`)},{default:E(()=>[F($,{id:i.hover,"model-value":e.element.style.hover??`none`,options:T(s),"onUpdate:modelValue":l[8]||=t=>e.element.style.hover=t,onCommit:l[9]||=e=>T(n).commit()},null,8,[`id`,`model-value`,`options`])]),_:1},8,[`id`,`label`]),P(`p`,TE,S(T(r)(`style.motionHint`)),1)]),_:1},8,[`title`]))}}),DE=[`aria-label`],OE=/* @__PURE__ */ D({__name:`AlignButtons`,setup(e){let t=Y(),n={left:Hb,hcenter:Lb,right:zb,top:Vb,vmiddle:Ib,bottom:Rb};return(e,r)=>(j(),M(`div`,{class:`lze-row`,role:`group`,"aria-label":T(t).t(`multi.align`)},[(j(!0),M(A,null,k(T(Es),e=>(j(),N(TS,{key:e,label:T(t).t(`align.${e}`),onClick:n=>T(t).align(e)},{default:E(()=>[(j(),N(Pr(n[e]),{size:16,"aria-hidden":`true`}))]),_:2},1032,[`label`,`onClick`]))),128))],8,DE))}}),kE={class:`lze-grid-2`},AE={class:`lze-hint`},jE={key:0,class:`lze-hint`},ME=/* @__PURE__ */ D({__name:`PositionSection`,props:{element:{}},setup(e){let t=e,n=Y(),r=n.t,i=R(()=>n.state.device),a=R(()=>hs(t.element,i.value));function o(e,n){typeof n==`number`&&gs(t.element,i.value,ks({...a.value,[e]:n}))}function s(){t.element.layout.mobile=null,n.commit()}return(t,c)=>(j(),N(lE,{title:T(r)(`position.title`,{device:T(r)(i.value===`desktop`?`position.desktop`:`position.mobile`)}),open:!1},{default:E(()=>[F(OE),P(`div`,kE,[F(eC,{"model-value":a.value.x,label:T(r)(`position.x`),suffix:`%`,step:.5,"onUpdate:modelValue":c[0]||=e=>o(`x`,e),onCommit:c[1]||=e=>T(n).commit()},null,8,[`model-value`,`label`]),F(eC,{"model-value":a.value.y,label:T(r)(`position.y`),"onUpdate:modelValue":c[2]||=e=>o(`y`,e),onCommit:c[3]||=e=>T(n).commit()},null,8,[`model-value`,`label`]),F(eC,{"model-value":a.value.w,label:T(r)(`position.width`),suffix:`%`,step:.5,"onUpdate:modelValue":c[4]||=e=>o(`w`,e),onCommit:c[5]||=e=>T(n).commit()},null,8,[`model-value`,`label`]),F(eC,{"model-value":a.value.h,label:T(r)(`position.height`),"onUpdate:modelValue":c[6]||=e=>o(`h`,e),onCommit:c[7]||=e=>T(n).commit()},null,8,[`model-value`,`label`])]),F(oC,{modelValue:e.element.style.pinned,"onUpdate:modelValue":c[8]||=t=>e.element.style.pinned=t,label:T(r)(`position.pinned`),onCommit:c[9]||=e=>T(n).commit()},null,8,[`modelValue`,`label`]),P(`p`,AE,S(T(r)(`position.pinnedHint`)),1),i.value===`mobile`?(j(),M(`p`,jE,[e.element.layout.mobile?(j(),M(A,{key:0},[I(S(T(r)(`position.own`))+` `,1),P(`button`,{type:`button`,class:`lze-link`,onClick:s},S(T(r)(`position.inherit`)),1)],64)):(j(),M(A,{key:1},[I(S(T(r)(`position.inherited`)),1)],64))])):L(``,!0)]),_:1},8,[`title`]))}}),NE=[`aria-label`],PE=[`aria-pressed`,`onClick`],FE={class:`lze-grid-2`},IE={class:`lze-grid-2`},LE={class:`lze-grid-2`},RE={class:`lze-row`},zE=[`aria-label`],BE={class:`lze-hint`},VE=/* @__PURE__ */ D({__name:`TextStyle`,props:{element:{}},setup(e){let t=e,n=Y(),r=n.t,i=[{value:`heading`,label:`style.fontHeading`},{value:`body`,label:`style.fontBody`}],a=[{value:`left`,label:`style.align.left`,icon:Ox},{value:`center`,label:`style.align.center`,icon:Dx},{value:`right`,label:`style.align.right`,icon:Ex}],o=[300,400,500,600,700,800].map(e=>({value:e,label:r(`style.weight.${e}`)})),s=[`none`,`upper`,`lower`,`title`].map(e=>({value:e,label:r(`style.case.${e}`)})),c=[`solid`,`outline`,`glow`].map(e=>({value:e,label:r(`style.face.${e}`)}));function l(e,r){t.element.style[e]=r,n.commit()}return(t,u)=>(j(),N(lE,{title:T(r)(`style.text`)},{default:E(()=>[P(`div`,{class:`lze-tabs-inline`,role:`group`,"aria-label":T(r)(`style.font`)},[(j(),M(A,null,k(i,t=>P(`button`,{key:t.value,type:`button`,"aria-pressed":(e.element.style.font??`body`)===t.value,onClick:e=>l(`font`,t.value)},S(T(r)(t.label)),9,PE)),64))],8,NE),P(`div`,FE,[F(eC,{modelValue:e.element.style.size,"onUpdate:modelValue":u[0]||=t=>e.element.style.size=t,label:T(r)(`style.size`),min:8,max:240,suffix:`px`,onCommit:u[1]||=e=>T(n).commit()},null,8,[`modelValue`,`label`]),F($,{modelValue:e.element.style.weight,"onUpdate:modelValue":u[2]||=t=>e.element.style.weight=t,options:T(o),label:T(r)(`style.weight`),placeholder:T(r)(`style.weight`),onCommit:u[3]||=e=>T(n).commit()},null,8,[`modelValue`,`options`,`label`,`placeholder`])]),P(`div`,IE,[F(eC,{modelValue:e.element.style.size_mobile,"onUpdate:modelValue":u[4]||=t=>e.element.style.size_mobile=t,label:T(r)(`style.sizeMobile`),min:8,max:240,suffix:`px`,placeholder:String(e.element.style.size??``),onCommit:u[5]||=e=>T(n).commit()},null,8,[`modelValue`,`label`,`placeholder`]),F(eC,{modelValue:e.element.style.tracking,"onUpdate:modelValue":u[6]||=t=>e.element.style.tracking=t,label:T(r)(`style.tracking`),min:-.05,max:.5,step:.01,onCommit:u[7]||=e=>T(n).commit()},null,8,[`modelValue`,`label`])]),P(`div`,LE,[F($,{modelValue:e.element.style.text_case,"onUpdate:modelValue":u[8]||=t=>e.element.style.text_case=t,options:T(s),label:T(r)(`style.case`),onCommit:u[9]||=e=>T(n).commit()},null,8,[`modelValue`,`options`,`label`]),F($,{modelValue:e.element.style.text_style,"onUpdate:modelValue":u[10]||=t=>e.element.style.text_style=t,options:T(c),label:T(r)(`style.face`),onCommit:u[11]||=e=>T(n).commit()},null,8,[`modelValue`,`options`,`label`])]),P(`div`,RE,[P(`div`,{class:`lze-row`,role:`group`,"aria-label":T(r)(`style.align`)},[(j(),M(A,null,k(a,t=>F(TS,{key:t.value,label:T(r)(t.label),active:(e.element.style.align??`left`)===t.value,onClick:e=>l(`align`,t.value)},{default:E(()=>[(j(),N(Pr(t.icon),{size:16,"aria-hidden":`true`}))]),_:2},1032,[`label`,`active`,`onClick`])),64))],8,zE),F(eC,{modelValue:e.element.style.line_height,"onUpdate:modelValue":u[12]||=t=>e.element.style.line_height=t,class:`lze-grow`,label:T(r)(`style.lineHeight`),min:.8,max:3,step:.05,onCommit:u[13]||=e=>T(n).commit()},null,8,[`modelValue`,`label`])]),F(oC,{modelValue:e.element.style.auto_height,"onUpdate:modelValue":u[14]||=t=>e.element.style.auto_height=t,label:T(r)(`style.autoHeight`),onCommit:u[15]||=e=>T(n).commit()},null,8,[`modelValue`,`label`]),P(`p`,BE,S(T(r)(`style.autoHeightHint`)),1)]),_:1},8,[`title`]))}}),HE={class:`lze-row`},UE={class:`lze-grid-2`},WE={class:`lze-hint`},GE=/* @__PURE__ */ D({__name:`TransformStyle`,props:{element:{}},setup(e){let t=e,n=Y(),r=n.t,i={overflow:O(),visible:O()},a=[`visible`,`hidden`,`scroll-x`,`scroll-y`].map(e=>({value:e,label:r(`style.overflow.${e}`)})),o=[`all`,`desktop`,`mobile`].map(e=>({value:e,label:r(`style.visible.${e}`)}));function s(e,r){t.element.style[e]=r,n.commit()}return(t,c)=>(j(),N(lE,{title:T(r)(`style.transform`),open:!1},{default:E(()=>[P(`div`,HE,[F(eC,{modelValue:e.element.style.rotate,"onUpdate:modelValue":c[0]||=t=>e.element.style.rotate=t,class:`lze-grow`,label:T(r)(`style.rotate`),min:-180,max:180,suffix:`°`,onCommit:c[1]||=e=>T(n).commit()},null,8,[`modelValue`,`label`]),F(TS,{label:T(r)(`style.straighten`),onClick:c[2]||=e=>s(`rotate`,0)},{default:E(()=>[F(T(bx),{size:16,"aria-hidden":`true`})]),_:1},8,[`label`]),F(TS,{label:T(r)(`style.flipX`),active:e.element.style.flip_x===!0,onClick:c[3]||=t=>s(`flip_x`,!e.element.style.flip_x)},{default:E(()=>[F(T($b),{size:16,"aria-hidden":`true`})]),_:1},8,[`label`,`active`]),F(TS,{label:T(r)(`style.flipY`),active:e.element.style.flip_y===!0,onClick:c[4]||=t=>s(`flip_y`,!e.element.style.flip_y)},{default:E(()=>[F(T(ex),{size:16,"aria-hidden":`true`})]),_:1},8,[`label`,`active`])]),P(`div`,UE,[F(Q,{id:i.overflow,label:T(r)(`style.overflow`)},{default:E(()=>[F($,{id:i.overflow,"model-value":e.element.style.overflow??(e.element.style.clip?`hidden`:`visible`),options:T(a),"onUpdate:modelValue":c[5]||=t=>e.element.style.overflow=t,onCommit:c[6]||=e=>T(n).commit()},null,8,[`id`,`model-value`,`options`])]),_:1},8,[`id`,`label`]),F(Q,{id:i.visible,label:T(r)(`style.visibleOn`)},{default:E(()=>[F($,{id:i.visible,"model-value":e.element.style.visible_on??`all`,options:T(o),"onUpdate:modelValue":c[7]||=t=>e.element.style.visible_on=t,onCommit:c[8]||=e=>T(n).commit()},null,8,[`id`,`model-value`,`options`])]),_:1},8,[`id`,`label`])]),P(`p`,WE,S(T(r)(`style.transformHint`)),1)]),_:1},8,[`title`]))}}),KE={class:`lze-stack`},qE={class:`lze-heading`},JE={class:`lze-panel-title`},YE={class:`lze-row lze-nowrap`},XE={class:`lze-row`},ZE={key:0,class:`lze-hint`},QE=/* @__PURE__ */ D({__name:`ElementPanel`,props:{element:{}},setup(e){let t=e,n=Y(),r=n.t,i={heading:aE,text:aE,image:OT,button:yT,divider:null,video:oE,shape:iE,icon:TT,navbar:rE,box:AT,gallery:LT,slider:RT,input:xT,textarea:xT,select:xT,checkbox:xT},a={fill:yE,text:VE,border:CE,effects:GE,motion:EE},o=R(()=>n.kindOf(t.element)),s=R(()=>{let e=o.value;return e.kind===`core`?r(e.spec.label):e.kind===`app`?n.i18n.localized(e.spec.label):r(`type.unknown`)}),c=R(()=>{let e=o.value,t=e.kind===`opaque`?[]:e.spec.styles;return Object.keys(a).filter(e=>t.includes(e)).map(e=>({group:e,panel:a[e]}))});return(t,a)=>(j(),M(`div`,KE,[P(`div`,qE,[P(`h2`,JE,S(s.value),1),P(`div`,YE,[o.value.kind===`opaque`?L(``,!0):(j(),N(Z,{key:0,onClick:a[0]||=e=>T(n).duplicateSelected()},{default:E(()=>[I(S(T(r)(`common.duplicate`)),1)]),_:1})),F(Z,{variant:`danger`,onClick:a[1]||=e=>T(n).removeSelected()},{default:E(()=>[I(S(T(r)(`common.delete`)),1)]),_:1})])]),P(`div`,XE,[e.element.type===`box`?(j(),N(Z,{key:0,onClick:a[2]||=e=>T(n).ungroupBox()},{default:E(()=>[I(S(T(r)(`el.ungroup`)),1)]),_:1})):T(n).isInsideBox(e.element.id)?L(``,!0):(j(),N(Z,{key:1,onClick:a[3]||=e=>T(n).groupIntoBox()},{default:E(()=>[I(S(T(r)(`el.group`)),1)]),_:1}))]),o.value.kind===`opaque`?(j(),M(`p`,ZE,S(T(r)(`el.unknown`)),1)):(j(),M(A,{key:1},[o.value.kind===`core`&&i[o.value.element.type]?(j(),N(Pr(i[o.value.element.type]),{key:0,element:o.value.element},null,8,[`element`])):o.value.kind===`app`?(j(),N(vT,{key:1,element:o.value.element,spec:o.value.spec},null,8,[`element`,`spec`])):L(``,!0),(j(!0),M(A,null,k(c.value,t=>(j(),N(Pr(t.panel),{key:t.group,element:e.element},null,8,[`element`]))),128)),F(ME,{element:e.element},null,8,[`element`])],64))]))}}),$E={class:`lze-stack`},eD={class:`lze-panel-title`},tD={class:`lze-hint`},nD={class:`lze-field`},rD={class:`lze-label`},iD=[`aria-label`],aD={class:`lze-field`},oD={key:0,class:`lze-hint`},sD={class:`lze-field`},cD=/* @__PURE__ */ D({__name:`ModalPanel`,props:{modal:{}},setup(e){let t=e,n=Y(),r=n.t,i=O();function a(e){t.modal.size=e.key,t.modal.width=e.width,n.commit()}function o(e){typeof e==`number`&&(t.modal.width=e,t.modal.size=`custom`)}return(t,s)=>(j(),M(`div`,$E,[P(`h2`,eD,S(T(r)(`modal.heading`)),1),F(Q,{id:T(i),label:T(r)(`modal.title`)},{default:E(()=>[F(VS,{id:T(i),modelValue:e.modal.title,"onUpdate:modelValue":s[0]||=t=>e.modal.title=t,maxlength:120,onCommit:s[1]||=e=>T(n).commit()},null,8,[`id`,`modelValue`]),F(oC,{modelValue:e.modal.show_title,"onUpdate:modelValue":s[2]||=t=>e.modal.show_title=t,label:T(r)(`modal.showTitle`),onCommit:s[3]||=e=>T(n).commit()},null,8,[`modelValue`,`label`]),P(`p`,tD,S(T(r)(`modal.showTitleHint`)),1)]),_:1},8,[`id`,`label`]),P(`div`,nD,[P(`span`,rD,S(T(r)(`modal.size`)),1),P(`div`,{class:`lze-row`,role:`group`,"aria-label":T(r)(`modal.size`)},[(j(!0),M(A,null,k(T(Cs),t=>(j(),N(Z,{key:t.key,variant:e.modal.size===t.key?`primary`:`outline`,"aria-pressed":e.modal.size===t.key,onClick:e=>a(t)},{default:E(()=>[I(S(T(r)(`modal.size.${t.key}`)),1)]),_:2},1032,[`variant`,`aria-pressed`,`onClick`]))),128))],8,iD)]),P(`div`,aD,[F(eC,{"model-value":e.modal.width,label:T(r)(`modal.width`),min:280,max:1200,suffix:`px`,disabled:e.modal.size===`full`,"onUpdate:modelValue":o,onCommit:s[4]||=e=>T(n).commit()},null,8,[`model-value`,`label`,`disabled`]),e.modal.size===`full`?(j(),M(`p`,oD,S(T(r)(`modal.fullHint`)),1)):L(``,!0)]),F(Z,{onClick:s[5]||=t=>T(n).fitCanvas(e.modal)},{default:E(()=>[I(S(T(r)(`section.fitHeight`)),1)]),_:1}),P(`div`,sD,[F(eC,{"model-value":e.modal.height.desktop,label:T(r)(`section.heightDesktop`),min:80,max:2e3,"onUpdate:modelValue":s[6]||=t=>e.modal.height.desktop=t??e.modal.height.desktop,onCommit:s[7]||=e=>T(n).commit()},null,8,[`model-value`,`label`]),F(eC,{"model-value":e.modal.height.mobile,label:T(r)(`section.heightMobile`),min:80,max:2400,"onUpdate:modelValue":s[8]||=t=>e.modal.height.mobile=t??e.modal.height.mobile,onCommit:s[9]||=e=>T(n).commit()},null,8,[`model-value`,`label`])]),F(GT,{modelValue:e.modal.background.color,"onUpdate:modelValue":s[10]||=t=>e.modal.background.color=t,label:T(r)(`modal.background`),onCommit:s[11]||=e=>T(n).commit()},null,8,[`modelValue`,`label`]),F(Z,{onClick:s[12]||=e=>T(n).openModal(null)},{default:E(()=>[I(S(T(r)(`canvas.backToPage`)),1)]),_:1})]))}}),lD={class:`lze-stack`},uD={class:`lze-panel-title`},dD={class:`lze-row`},fD={class:`lze-hint`},pD={class:`lze-field`},mD={class:`lze-label`},hD={class:`lze-field`},gD={class:`lze-label`},_D={class:`lze-row`},vD={class:`lze-hint`},yD={class:`lze-hint`},bD={class:`lze-hint`},xD=/* @__PURE__ */ D({__name:`MultiPanel`,setup(e){let t=Y(),n=t.t,r=R(()=>t.selectedElements.value.length),i={fill:yE,text:VE,border:CE,effects:GE,motion:EE},a=R(()=>{let e=t.selectedElements.value.map(e=>{let n=t.kindOf(e);return n.kind===`opaque`?[]:n.spec.styles});return Object.keys(i).filter(t=>e.length>0&&e.every(e=>e.includes(t))).map(e=>({group:e,panel:i[e]}))}),o=R(()=>t.sharedTarget());return(e,i)=>(j(),M(`div`,lD,[P(`h2`,uD,S(T(n)(`multi.count`,{n:r.value})),1),P(`div`,dD,[F(Z,{onClick:i[0]||=e=>T(t).groupIntoBox()},{default:E(()=>[I(S(T(n)(`el.group`)),1)]),_:1})]),P(`p`,fD,S(T(n)(`el.groupHint`)),1),P(`div`,pD,[P(`span`,mD,S(T(n)(`multi.align`)),1),F(OE)]),P(`div`,hD,[P(`span`,gD,S(T(n)(`multi.distribute`)),1),P(`div`,_D,[F(TS,{label:T(n)(`multi.distributeX`),disabled:r.value<3,onClick:i[1]||=e=>T(t).distributeSelected(`x`)},{default:E(()=>[F(T(Bb),{size:16,"aria-hidden":`true`})]),_:1},8,[`label`,`disabled`]),F(TS,{label:T(n)(`multi.distributeY`),disabled:r.value<3,onClick:i[2]||=e=>T(t).distributeSelected(`y`)},{default:E(()=>[F(T(Ub),{size:16,"aria-hidden":`true`})]),_:1},8,[`label`,`disabled`])]),P(`p`,vD,S(T(n)(`multi.distributeHint`)),1)]),o.value?(j(!0),M(A,{key:0},k(a.value,e=>(j(),N(Pr(e.panel),{key:e.group,element:o.value},null,8,[`element`]))),128)):L(``,!0),P(`p`,yD,S(T(n)(`multi.menuHint`)),1),P(`p`,bD,S(T(n)(`multi.hint`)),1)]))}}),SD={class:`lze-stack`},CD={class:`lze-heading`},wD={class:`lze-panel-title`},TD={class:`lze-row`},ED={class:`lze-field`},DD={key:0,class:`lze-grid-2`},OD={class:`lze-hint`},kD=/* @__PURE__ */ D({__name:`SectionPanel`,props:{section:{}},setup(e){let t=e,n=Y(),r=n.t,i={group:O(),label:O(),anchor:O(),background:O(),video:O(),flow:O()},a=[{value:`alone`,label:r(`section.alone`)},{value:`tabs`,label:r(`section.tab`)},{value:`steps`,label:r(`section.step`)}],o=[`free`,`column`,`row`].map(e=>({value:e,label:r(`section.flow.${e}`)})),s=[`start`,`center`,`end`,`between`].map(e=>({value:e,label:r(`section.align.${e}`)})),c=R(()=>(t.section.flow??`free`)!==`free`),l=[`color`,`gradient`,`image`,`video`].map(e=>({value:e,label:r(`fill.${e}`)})),u=/* @__PURE__ */ w(t.section.id),d=/* @__PURE__ */ w(!1);$n(()=>t.section.id,e=>u.value=e);function f(){let e=u.value.trim(),r=e!==t.section.id&&ms(n.state.draft,e)!==void 0;d.value=!/^[a-zA-Z0-9_-]{1,40}$/.test(e)||r,!(d.value||e===t.section.id)&&(t.section.id=e,n.selectCanvas(e),n.commit())}function p(e){let r=t.section.background;e&&(r.type=e,e===`gradient`&&(r.gradient??={type:`linear`,from:`primary`,to:`secondary`,angle:135}),n.commit())}function m(e){t.section.background.image=e??null,t.section.background.type!==`video`&&(t.section.background.type=e?`image`:`color`)}return(t,h)=>(j(),M(`div`,SD,[P(`div`,CD,[P(`h2`,wD,S(T(r)(`section.heading`)),1),T(n).state.draft.sections.length>1?(j(),N(TS,{key:0,label:T(r)(`section.delete`),tone:`danger`,onClick:h[0]||=t=>T(n).removeSection(e.section.id)},{default:E(()=>[F(T(Ax),{size:16,"aria-hidden":`true`})]),_:1},8,[`label`])):L(``,!0)]),F(Q,{id:i.group,label:T(r)(`section.shownAs`),hint:T(r)(`section.groupHint`)},{default:E(()=>[F($,{id:i.group,"model-value":e.section.group?.type??`alone`,options:a,"onUpdate:modelValue":h[1]||=t=>T(n).setSectionGroup(e.section,t??`alone`)},null,8,[`id`,`model-value`]),e.section.group?(j(),N(VS,{key:0,modelValue:e.section.group.label,"onUpdate:modelValue":h[2]||=t=>e.section.group.label=t,maxlength:60,placeholder:T(r)(`section.groupLabel`),label:T(r)(`section.groupLabel`),onCommit:h[3]||=e=>T(n).commit()},null,8,[`modelValue`,`placeholder`,`label`])):L(``,!0)]),_:1},8,[`id`,`label`,`hint`]),F(Q,{id:i.anchor,label:T(r)(`section.anchor`),hint:T(r)(`section.anchorHint`),error:d.value?T(r)(`section.anchorInvalid`):null},{default:E(()=>[F(VS,{id:i.anchor,modelValue:u.value,"onUpdate:modelValue":h[4]||=e=>u.value=e,maxlength:40,onCommit:f},null,8,[`id`,`modelValue`])]),_:1},8,[`id`,`label`,`hint`,`error`]),P(`div`,TD,[F(Z,{onClick:h[5]||=t=>T(n).fitCanvas(e.section)},{default:E(()=>[I(S(T(r)(`section.fitHeight`)),1)]),_:1}),F(Z,{onClick:h[6]||=t=>T(n).generateMobile(e.section)},{default:E(()=>[I(S(T(r)(`section.generateMobile`)),1)]),_:1})]),P(`div`,ED,[F(eC,{"model-value":e.section.height.desktop,label:T(r)(`section.heightDesktop`),min:80,max:3e3,"onUpdate:modelValue":h[7]||=t=>e.section.height.desktop=t??e.section.height.desktop,onCommit:h[8]||=e=>T(n).commit()},null,8,[`model-value`,`label`]),F(eC,{"model-value":e.section.height.mobile,label:T(r)(`section.heightMobile`),min:80,max:4e3,"onUpdate:modelValue":h[9]||=t=>e.section.height.mobile=t??e.section.height.mobile,onCommit:h[10]||=e=>T(n).commit()},null,8,[`model-value`,`label`])]),F(Q,{id:i.flow,label:T(r)(`section.flow`),hint:T(r)(`section.flowHint`)},{default:E(()=>[F($,{id:i.flow,"model-value":e.section.flow??`free`,options:T(o),"onUpdate:modelValue":h[11]||=t=>e.section.flow=t,onCommit:h[12]||=e=>T(n).commit()},null,8,[`id`,`model-value`,`options`])]),_:1},8,[`id`,`label`,`hint`]),c.value?(j(),M(`div`,DD,[F(eC,{"model-value":e.section.flow_gap??24,label:T(r)(`section.flowGap`),min:0,max:160,suffix:`px`,"onUpdate:modelValue":h[13]||=t=>e.section.flow_gap=t??24,onCommit:h[14]||=e=>T(n).commit()},null,8,[`model-value`,`label`]),F($,{"model-value":e.section.flow_align??`start`,options:T(s),label:T(r)(`section.flowAlign`),"onUpdate:modelValue":h[15]||=t=>e.section.flow_align=t,onCommit:h[16]||=e=>T(n).commit()},null,8,[`model-value`,`options`,`label`])])):L(``,!0),F(oC,{modelValue:e.section.wide,"onUpdate:modelValue":h[17]||=t=>e.section.wide=t,label:T(r)(`section.wide`),onCommit:h[18]||=e=>T(n).commit()},null,8,[`modelValue`,`label`]),P(`p`,OD,S(T(r)(`section.wideHint`)),1),F(Q,{id:i.background,label:T(r)(`section.background`)},{default:E(()=>[F($,{id:i.background,"model-value":e.section.background.type,options:T(l),"onUpdate:modelValue":p},null,8,[`id`,`model-value`,`options`])]),_:1},8,[`id`,`label`]),e.section.background.type===`color`?(j(),N(GT,{key:1,modelValue:e.section.background.color,"onUpdate:modelValue":h[19]||=t=>e.section.background.color=t,label:T(r)(`section.color`),onCommit:h[20]||=e=>T(n).commit()},null,8,[`modelValue`,`label`])):e.section.background.type===`gradient`?(j(),N(mE,{key:2,modelValue:e.section.background.gradient,"onUpdate:modelValue":h[21]||=t=>e.section.background.gradient=t,onCommit:h[22]||=e=>T(n).commit()},null,8,[`modelValue`])):(j(),M(A,{key:3},[e.section.background.type===`video`?(j(),N(Q,{key:0,id:i.video,label:T(r)(`section.video`),hint:T(r)(`section.videoHint`)},{default:E(()=>[F(VS,{id:i.video,modelValue:e.section.background.video,"onUpdate:modelValue":h[23]||=t=>e.section.background.video=t,maxlength:500,placeholder:`https://…/video.mp4`,onCommit:h[24]||=e=>T(n).commit()},null,8,[`id`,`modelValue`])]),_:1},8,[`id`,`label`,`hint`])):L(``,!0),F(YS,{"model-value":e.section.background.image,label:e.section.background.type===`video`?T(r)(`section.poster`):T(r)(`section.image`),choose:T(r)(`section.chooseImage`),"onUpdate:modelValue":m,onCommit:h[25]||=e=>T(n).commit()},null,8,[`model-value`,`label`,`choose`]),F(oC,{modelValue:e.section.background.parallax,"onUpdate:modelValue":h[26]||=t=>e.section.background.parallax=t,label:T(r)(`section.parallax`),onCommit:h[27]||=e=>T(n).commit()},null,8,[`modelValue`,`label`]),F(LC,{modelValue:e.section.background.overlay,"onUpdate:modelValue":h[28]||=t=>e.section.background.overlay=t,label:T(r)(`section.overlay`),min:0,max:.8,step:.05,format:e=>`${Math.round(e*100)}%`,onCommit:h[29]||=e=>T(n).commit()},null,8,[`modelValue`,`label`,`format`])],64))]))}}),AD={key:4,class:`lze-hint`},jD=/* @__PURE__ */ D({__name:`DesignPanel`,setup(e){let t=Y(),n=R(()=>{let e=t.state.selection;if(e.kind===`elements`){let e=t.activeElement.value;return t.selectedElements.value.length>1?{kind:`multi`}:e?{kind:`element`,element:e}:{kind:`none`}}let n=e.kind===`canvas`?ms(t.state.draft,e.canvas):void 0;return n?fs(n)?{kind:`modal`,modal:n}:{kind:`section`,section:n}:{kind:`none`}});return(e,r)=>n.value.kind===`multi`?(j(),N(xD,{key:0})):n.value.kind===`element`?(j(),N(QE,{key:n.value.element.id,element:n.value.element},null,8,[`element`])):n.value.kind===`modal`?(j(),N(cD,{key:n.value.modal.id,modal:n.value.modal},null,8,[`modal`])):n.value.kind===`section`?(j(),N(kD,{key:n.value.section.id,section:n.value.section},null,8,[`section`])):(j(),M(`p`,AD,S(T(t).t(`panel.nothing`)),1))}}),MD={key:0,class:`lze-stack`},ND={class:`lze-slug-static`},PD={class:`lze-slug`},FD={class:`lze-row`},ID={key:2,class:`lze-field lze-divided`},LD={class:`lze-label`},RD=[`onClick`],zD={class:`lze-hint`},BD={class:`lze-field lze-divided`},VD={class:`lze-label`},HD={class:`lze-shortcuts lze-hint`},UD=/* @__PURE__ */ D({__name:`PagePanel`,setup(e){let t=Y(),n=t.t,r={title:O(),slug:O(),seoTitle:O(),description:O()},i=R(()=>t.state.page),a=/* @__PURE__ */ w(i.value?.slug??``),o=/* @__PURE__ */ w([]),s=/* @__PURE__ */ w(!1);$n(()=>i.value?.id,()=>{a.value=i.value?.slug??``,o.value=[]});let c=R(()=>t.state.draft.sections.every(e=>e.elements.length===0));async function l(){s.value=!0,o.value=await t.renamePage(a.value.trim()),s.value=!1}function u(){i.value&&window.confirm(n(`page.deleteConfirm`,{title:i.value.title}))&&t.deletePage()}return(e,d)=>i.value?(j(),M(`div`,MD,[F(Q,{id:r.title,label:T(n)(`page.title`)},{default:E(()=>[F(VS,{id:r.title,modelValue:i.value.title,"onUpdate:modelValue":d[0]||=e=>i.value.title=e,maxlength:120},null,8,[`id`,`modelValue`])]),_:1},8,[`id`,`label`]),i.value.slug===``?(j(),N(Q,{key:0,label:T(n)(`page.address`),hint:T(n)(`page.homeHint`)},{default:E(()=>[P(`p`,ND,[d[4]||=P(`span`,{class:`lze-slug-root`,"aria-hidden":`true`},`/`,-1),I(S(T(n)(`page.home`)),1)])]),_:1},8,[`label`,`hint`])):(j(),M(A,{key:1},[F(Q,{id:r.slug,label:T(n)(`page.address`),error:o.value.map(e=>e.message).join(` `)||null},{default:E(()=>[P(`div`,PD,[d[5]||=P(`span`,{"aria-hidden":`true`},`/`,-1),F(VS,{id:r.slug,modelValue:a.value,"onUpdate:modelValue":d[1]||=e=>a.value=e,maxlength:120,placeholder:T(n)(`newPage.slugPlaceholder`)},null,8,[`id`,`modelValue`,`placeholder`])])]),_:1},8,[`id`,`label`,`error`]),P(`div`,FD,[F(Z,{disabled:s.value||a.value.trim()===i.value.slug,onClick:l},{default:E(()=>[I(S(T(n)(`page.saveAddress`)),1)]),_:1},8,[`disabled`]),F(Z,{variant:`danger`,onClick:u},{default:E(()=>[I(S(T(n)(`page.delete`)),1)]),_:1})])],64)),c.value?(j(),M(`div`,ID,[P(`span`,LD,S(T(n)(`page.templates`)),1),(j(!0),M(A,null,k(T(Xy),e=>(j(),M(`button`,{key:e.key,type:`button`,class:`lze-choice`,onClick:n=>T(t).applyPageTemplate(e.key)},[P(`strong`,null,S(T(n)(e.name)),1),P(`span`,zD,S(T(n)(e.note)),1)],8,RD))),128))])):L(``,!0),F(Q,{id:r.seoTitle,label:T(n)(`page.seoTitle`),hint:T(n)(`page.seoTitleHint`)},{default:E(()=>[F(VS,{id:r.seoTitle,modelValue:i.value.seo.title,"onUpdate:modelValue":d[2]||=e=>i.value.seo.title=e,maxlength:120},null,8,[`id`,`modelValue`])]),_:1},8,[`id`,`label`,`hint`]),F(Q,{id:r.description,label:T(n)(`page.description`)},{default:E(()=>[F(VS,{id:r.description,modelValue:i.value.seo.description,"onUpdate:modelValue":d[3]||=e=>i.value.seo.description=e,rows:3,maxlength:300},null,8,[`id`,`modelValue`])]),_:1},8,[`id`,`label`]),P(`div`,BD,[P(`span`,VD,S(T(n)(`page.shortcuts`)),1),P(`ul`,HD,[P(`li`,null,S(T(n)(`page.shortcutUndo`)),1),P(`li`,null,S(T(n)(`page.shortcutSave`)),1),P(`li`,null,S(T(n)(`page.shortcutCopy`)),1),P(`li`,null,S(T(n)(`page.shortcutNudge`)),1)])])])):L(``,!0)}}),WD={class:`lze-sidebar lze-right`},GD={class:`lze-tabs`,role:`tablist`},KD=[`aria-selected`],qD=[`aria-selected`],JD={class:`lze-scroll lze-pad`,role:`tabpanel`},YD=/* @__PURE__ */ D({__name:`RightPanel`,setup(e){let t=Y(),n=/* @__PURE__ */ w(`design`);return(e,r)=>(j(),M(`aside`,WD,[P(`div`,GD,[P(`button`,{type:`button`,role:`tab`,"aria-selected":n.value===`design`,onClick:r[0]||=e=>n.value=`design`},S(T(t).t(`panel.design`)),9,KD),P(`button`,{type:`button`,role:`tab`,"aria-selected":n.value===`page`,onClick:r[1]||=e=>n.value=`page`},S(T(t).t(`panel.page`)),9,qD)]),P(`div`,JD,[n.value===`design`?(j(),N(jD,{key:0})):(j(),N(UD,{key:1}))])]))}}),XD={class:`lze-toolbar`},ZD={class:`lze-toolbar-group`},QD={class:`lze-site-name`},$D=[`aria-label`,`value`],eO=[`value`],tO=[`data-published`],nO=[`data-tone`],rO={class:`lze-toolbar-group`},iO=[`aria-label`],aO=[`title`,`aria-label`,`aria-pressed`,`onClick`],oO=[`title`,`aria-label`,`disabled`],sO=[`title`,`aria-label`,`disabled`],cO=[`href`],lO=/* @__PURE__ */ D({__name:`Toolbar`,setup(e){let t=Y(),n=t.t,r=R(()=>t.state.page),i=new Intl.DateTimeFormat(t.i18n.locale,{hour:`2-digit`,minute:`2-digit`}),a=R(()=>{let e=t.saveState.value;switch(e.kind){case`saved`:return{text:e.at?n(`save.saved`,{time:i.format(e.at)}):n(`save.idle`),tone:`muted`,retry:!1};case`pending`:return{text:n(`save.pending`),tone:`muted`,retry:!1};case`saving`:return{text:n(`save.saving`),tone:`muted`,retry:!1};case`offline`:return{text:n(`save.offline`),tone:`warning`,retry:!0};case`failed`:return{text:n(`save.failed`,{message:e.message}),tone:`danger`,retry:!0};case`invalid`:return{text:n(`save.invalid`,{issue:ob(e.issues[0])||e.message}),tone:`danger`,retry:!1};case`conflict`:return{text:n(`save.conflict`),tone:`danger`,retry:!1}}}),o=R(()=>{let e=t.state.workspace.publicUrl;return e&&r.value?new URL(r.value.slug,e.endsWith(`/`)?e:`${e}/`).href:null});async function s(e){let n=e.target;await t.openPage(Number(n.value)),n.value=String(t.state.page?.id??``)}return(e,i)=>(j(),M(`header`,XD,[P(`div`,ZD,[Lr(e.$slots,`start`),P(`strong`,QD,S(T(t).state.workspace.site.name),1),r.value?(j(),M(`select`,{key:0,class:`lze-select lze-page-select`,"aria-label":T(n)(`toolbar.pageSelect`),value:r.value.id,onChange:s},[(j(!0),M(A,null,k(T(t).state.workspace.pages,e=>(j(),M(`option`,{key:e.id,value:e.id},S(e.title)+S(e.slug?` /${e.slug}`:``),9,eO))),128))],40,$D)):L(``,!0),F(Z,{variant:`ghost`,title:T(n)(`toolbar.newPageHint`),onClick:i[0]||=e=>T(t).state.dialog=`newPage`},{default:E(()=>[F(T(_x),{size:16,"aria-hidden":`true`}),I(S(T(n)(`toolbar.newPage`)),1)]),_:1},8,[`title`]),r.value?(j(),M(`span`,{key:1,class:`lze-badge-status`,"data-published":r.value.publishedAt!==null},S(r.value.publishedAt?T(n)(`status.published`):T(n)(`status.unpublished`)),9,tO)):L(``,!0),P(`span`,{class:`lze-save-status`,"data-tone":a.value.tone,"data-testid":`save-status`,"aria-live":`polite`},S(a.value.text),9,nO),a.value.retry?(j(),N(Z,{key:2,variant:`ghost`,onClick:i[1]||=e=>T(t).saveNow()},{default:E(()=>[I(S(T(n)(`save.retry`)),1)]),_:1})):L(``,!0),T(t).saveState.value.kind===`conflict`?(j(),N(Z,{key:3,variant:`primary`,onClick:i[2]||=e=>T(t).reloadPage()},{default:E(()=>[I(S(T(n)(`conflict.reload`)),1)]),_:1})):L(``,!0)]),P(`div`,rO,[P(`div`,{class:`lze-segmented`,role:`group`,"aria-label":T(n)(`toolbar.device`)},[(j(),M(A,null,k([`desktop`,`mobile`],e=>P(`button`,{key:e,type:`button`,title:e===`desktop`?T(n)(`toolbar.desktop`):T(n)(`toolbar.mobile`),"aria-label":e===`desktop`?T(n)(`toolbar.desktop`):T(n)(`toolbar.mobile`),"aria-pressed":T(t).state.device===e,onClick:n=>T(t).state.device=e},[e===`desktop`?(j(),N(T(fx),{key:0,size:16,"aria-hidden":`true`})):(j(),N(T(Sx),{key:1,size:16,"aria-hidden":`true`}))],8,aO)),64))],8,iO),P(`button`,{type:`button`,class:`lze-icon-btn`,title:T(n)(`toolbar.undo`),"aria-label":T(n)(`toolbar.undo`),disabled:!T(t).canUndo.value,onClick:i[3]||=e=>T(t).undo()},[F(T(Mx),{size:16,"aria-hidden":`true`})],8,oO),P(`button`,{type:`button`,class:`lze-icon-btn`,title:T(n)(`toolbar.redo`),"aria-label":T(n)(`toolbar.redo`),disabled:!T(t).canRedo.value,onClick:i[4]||=e=>T(t).redo()},[F(T(vx),{size:16,"aria-hidden":`true`})],8,sO),F(Z,{variant:`ghost`,title:T(t).state.previewing?T(n)(`toolbar.editHint`):T(n)(`toolbar.previewHint`),onClick:i[5]||=e=>T(t).state.previewing=!T(t).state.previewing},{default:E(()=>[T(t).state.previewing?(j(),N(T(hx),{key:0,size:16,"aria-hidden":`true`})):(j(),N(T(Qb),{key:1,size:16,"aria-hidden":`true`})),I(` `+S(T(t).state.previewing?T(n)(`toolbar.edit`):T(n)(`toolbar.preview`)),1)]),_:1},8,[`title`]),r.value?.versions.length?(j(),N(Z,{key:0,variant:`ghost`,title:T(n)(`toolbar.versionsHint`),onClick:i[6]||=e=>T(t).state.dialog=`versions`},{default:E(()=>[F(T(yx),{size:16,"aria-hidden":`true`}),I(S(T(n)(`toolbar.versions`)),1)]),_:1},8,[`title`])):L(``,!0),F(Z,{variant:`ghost`,title:T(n)(`toolbar.submissionsHint`),onClick:i[7]||=e=>T(t).state.dialog=`submissions`},{default:E(()=>[I(S(T(n)(`toolbar.submissions`)),1)]),_:1},8,[`title`]),F(Z,{variant:`ghost`,onClick:i[8]||=e=>T(t).state.dialog=`theme`},{default:E(()=>[I(S(T(n)(`toolbar.theme`)),1)]),_:1}),F(Z,{variant:`ghost`,title:T(n)(`toolbar.siteHint`),onClick:i[9]||=e=>T(t).state.dialog=`site`},{default:E(()=>[I(S(T(n)(`toolbar.site`)),1)]),_:1},8,[`title`]),o.value?(j(),M(`a`,{key:1,class:`lze-btn`,href:o.value,target:`_blank`,rel:`noopener noreferrer`},S(T(n)(`toolbar.viewSite`)),9,cO)):L(``,!0),F(Z,{variant:`primary`,disabled:T(t).state.publishing||!r.value,onClick:i[10]||=e=>T(t).publish()},{default:E(()=>[I(S(T(t).state.publishing?T(n)(`toolbar.publishing`):T(n)(`toolbar.publish`)),1)]),_:1},8,[`disabled`])])]))}}),uO=[`.lze-root{--lze-bg:#f3f4f6;--lze-panel:#fff;--lze-fg:#0f172a;--lze-muted:#64748b;--lze-border:#e2e8f0;--lze-hover:#f1f5f9;--lze-active:#e8eefc;--lze-accent:#2563eb;--lze-accent-fg:#fff;--lze-danger:#dc2626;--lze-success:#15803d;--lze-warning:#b45309;--lze-radius:8px;--lze-font:ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;--lze-select:#2563eb;--lze-guide:#ec4899;all:initial;box-sizing:border-box;background:var(--lze-bg);height:100%;min-height:480px;color:var(--lze-fg);font:13px/1.45 var(--lze-font);-webkit-font-smoothing:antialiased;grid-template-rows:auto minmax(0,1fr);display:grid}.lze-root :where(:not(svg,svg *)){all:revert;box-sizing:border-box}.lze-root :where(){box-sizing:border-box}.lze-root :where(h1,h2,h3,p,figure){margin:0}.lze-root :where(button,input,select,textarea){font:inherit;color:inherit}.lze-root :focus-visible{outline:2px solid var(--lze-accent);outline-offset:1px}.lze-muted,.lze-hint{color:var(--lze-muted)}.lze-hint{font-size:12px}.lze-error{color:var(--lze-danger);font-size:12px}.lze-btn{border-radius:var(--lze-radius);border:1px solid var(--lze-border);background:var(--lze-panel);height:32px;color:var(--lze-fg);white-space:nowrap;cursor:pointer;justify-content:center;align-items:center;gap:6px;padding:0 12px;font-weight:500;text-decoration:none;display:inline-flex}.lze-btn[data-size=md]{height:36px;padding:0 14px}.lze-btn:hover:not(:disabled){background:var(--lze-hover)}.lze-btn:disabled{opacity:.5;cursor:default}.lze-btn[data-variant=primary]{background:var(--lze-accent);border-color:var(--lze-accent);color:var(--lze-accent-fg)}.lze-btn[data-variant=primary]:hover:not(:disabled){background:color-mix(in srgb, var(--lze-accent) 88%, black)}.lze-btn[data-variant=ghost]{background:0 0;border-color:#0000}.lze-btn[data-variant=danger]{color:var(--lze-danger)}.lze-icon-btn{border-radius:var(--lze-radius);width:32px;height:32px;color:var(--lze-muted);cursor:pointer;background:0 0;border:1px solid #0000;flex:none;place-items:center;padding:0;display:inline-grid}.lze-icon-btn:hover:not(:disabled){background:var(--lze-hover);color:var(--lze-fg)}.lze-icon-btn[aria-pressed=true]{border-color:var(--lze-fg);background:var(--lze-active);color:var(--lze-fg)}.lze-icon-btn[data-tone=danger]{color:var(--lze-danger)}.lze-icon-btn:disabled{opacity:.4;cursor:default}.lze-field{gap:7px;display:grid}.lze-label{color:var(--lze-fg);font-size:12px;font-weight:600}.lze-input,.lze-select{border:1px solid var(--lze-border);background:var(--lze-panel);width:100%;min-height:32px;color:var(--lze-fg);border-radius:6px;padding:6px 8px}.lze-input:focus,.lze-select:focus{border-color:var(--lze-accent);box-shadow:0 0 0 2px color-mix(in srgb, var(--lze-accent) 20%, transparent);outline:none}textarea.lze-input{resize:vertical;line-height:1.4}.lze-select[data-compact=true]{width:auto;min-height:26px;padding:2px 6px;font-size:12px}.lze-number{border:1px solid var(--lze-border);background:var(--lze-panel);border-radius:6px;align-items:center;gap:6px;height:32px;padding:0 8px;display:flex}.lze-number:focus-within{border-color:var(--lze-accent)}.lze-number input{text-align:right;background:0 0;border:0;outline:none;width:100%;min-width:0}.lze-number-label,.lze-number-suffix{color:var(--lze-muted);flex:none;font-size:11px}.lze-toggle{cursor:pointer;align-items:center;gap:8px;display:flex}.lze-toggle input{width:16px;height:16px;accent-color:var(--lze-fg);margin:0}.lze-range{gap:4px;display:grid}.lze-range input{width:100%;accent-color:var(--lze-fg)}.lze-swatches{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.lze-swatch{cursor:pointer;border:1px solid #0f172a1f;border-radius:999px;width:26px;height:26px;padding:0}.lze-swatch[aria-pressed=true]{outline:2px solid var(--lze-fg);outline-offset:2px}.lze-swatch-custom{border:1px solid var(--lze-border);color:var(--lze-muted);cursor:pointer;border-radius:999px;align-items:center;gap:4px;padding:2px 8px 2px 3px;font-size:12px;display:inline-flex}.lze-swatch-custom[data-active=true]{outline:2px solid var(--lze-fg);outline-offset:2px}.lze-swatch-custom input{cursor:pointer;background:0 0;border:0;border-radius:999px;width:20px;height:20px;padding:0}.lze-panel-section{border-top:1px solid var(--lze-border);padding-top:4px}.lze-panel-section>summary{color:var(--lze-muted);cursor:pointer;-webkit-user-select:none;user-select:none;justify-content:space-between;align-items:center;padding:8px 0;font-size:12px;font-weight:600;list-style:none;display:flex}.lze-panel-section>summary::-webkit-details-marker{display:none}.lze-panel-section>summary:hover{color:var(--lze-fg)}.lze-panel-section[open]>summary svg{transform:rotate(180deg)}.lze-panel-body{gap:10px;padding:2px 0 12px;display:grid}.lze-dialog{border:1px solid var(--lze-border);background:var(--lze-panel);width:min(520px,100vw - 32px);max-height:calc(100dvh - 48px);color:var(--lze-fg);font:13px/1.45 var(--lze-font);border-radius:12px;padding:0;box-shadow:0 24px 64px #0f172a3d}.lze-dialog[data-size=lg]{width:min(720px,100vw - 32px)}.lze-dialog[data-size=xl]{width:min(880px,100vw - 32px)}.lze-dialog::backdrop{background:#0f172a73}.lze-dialog-body{gap:16px;padding:20px;display:grid}.lze-dialog-head{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.lze-dialog-head h2{font-size:16px;font-weight:650}.lze-dialog-actions{flex-wrap:wrap;gap:8px;display:flex}.lze-toasts{z-index:2147483000;gap:8px;max-width:min(420px,100vw - 32px);display:grid;position:fixed;bottom:16px;right:16px}.lze-toast{background:var(--lze-fg);color:var(--lze-panel);border-radius:10px;align-items:center;gap:8px;padding:8px 8px 8px 14px;display:flex;box-shadow:0 12px 32px #0f172a3d}.lze-toast[data-tone=error]{background:var(--lze-danger)}.lze-toast span{flex:1}.lze-toast .lze-icon-btn{color:inherit;width:26px;height:26px}.lze-toast .lze-icon-btn:hover{color:inherit;background:#ffffff26}.lze-grid-2{grid-template-columns:1fr 1fr;gap:10px;display:grid}.lze-grid-4{grid-template-columns:repeat(4,1fr);gap:6px;display:grid}.lze-row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.lze-stack{gap:16px;display:grid}.lze-heading{justify-content:space-between;align-items:center;gap:8px;font-size:13px;font-weight:650;display:flex}.lze-link{color:inherit;cursor:pointer;background:0 0;border:0;padding:0;text-decoration:underline}`,`.lze-center{text-align:center;color:var(--lze-muted);grid-area:1/1/-1;place-content:center;justify-items:center;gap:12px;padding:32px;display:grid}.lze-toolbar{border-bottom:1px solid var(--lze-border);background:var(--lze-panel);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:8px 12px;display:flex}.lze-toolbar-group{flex-wrap:wrap;align-items:center;gap:6px;min-width:0;display:flex}.lze-toolbar-start{z-index:1;grid-area:1/1;justify-self:start;align-items:center;gap:6px;padding:8px 12px;display:flex}.lze-site-name{text-overflow:ellipsis;white-space:nowrap;max-width:180px;font-size:14px;overflow:hidden}.lze-page-select{width:auto;max-width:220px}.lze-badge-status{color:var(--lze-warning);background:#fef3c7;border-radius:999px;padding:2px 8px;font-size:11px;font-weight:600}.lze-badge-status[data-published=true]{color:var(--lze-success);background:#dcfce7}.lze-save-status{color:var(--lze-muted);max-width:360px;font-size:12px}.lze-save-status[data-tone=warning]{color:var(--lze-warning)}.lze-save-status[data-tone=danger]{color:var(--lze-danger)}.lze-segmented{border:1px solid var(--lze-border);border-radius:var(--lze-radius);background:var(--lze-bg);padding:2px;display:inline-flex}.lze-segmented button{width:32px;height:26px;color:var(--lze-muted);cursor:pointer;background:0 0;border:0;border-radius:6px;place-items:center;display:grid}.lze-segmented button[aria-pressed=true]{background:var(--lze-panel);color:var(--lze-fg);box-shadow:0 1px 2px #0f172a14}.lze-body{grid-template-columns:clamp(272px,19vw,352px) minmax(0,1fr) clamp(312px,22vw,408px);min-height:0;display:grid}.lze-main{min-width:0;min-height:0;display:grid;position:relative}.lze-sidebar{background:var(--lze-panel);flex-direction:column;min-height:0;display:flex}.lze-left{border-right:1px solid var(--lze-border)}.lze-right{border-left:1px solid var(--lze-border)}.lze-scroll{flex:1;min-height:0;overflow-y:auto}.lze-pad{padding:16px}.lze-left>.lze-scroll.lze-stack{align-content:start;padding:16px}.lze-tabs{border-bottom:1px solid var(--lze-border);gap:2px;padding:10px 8px;display:flex}.lze-tabs button{min-width:0;color:var(--lze-muted);cursor:pointer;background:0 0;border:0;border-radius:6px;flex-direction:column;flex:1;align-items:center;gap:2px;padding:6px 2px;font-size:11px;font-weight:600;display:flex}.lze-tabs button span,.lze-tabs button{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.lze-right .lze-tabs button{flex-direction:row;justify-content:center;font-size:13px}.lze-tabs button:hover{color:var(--lze-fg)}.lze-tabs button[aria-selected=true]{background:var(--lze-hover);color:var(--lze-fg)}.lze-group-title{color:var(--lze-muted);margin-top:4px;font-size:12px;font-weight:600}.lze-palette{grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:8px;display:grid}.lze-palette-item{border:1px solid var(--lze-border);border-radius:var(--lze-radius);background:var(--lze-panel);min-width:0;color:var(--lze-muted);text-align:left;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;align-items:center;gap:10px;padding:11px 12px;font-size:13px;font-weight:500;display:flex}.lze-palette-item:hover{border-color:var(--lze-fg);color:var(--lze-fg);background:var(--lze-hover)}.lze-palette-item svg{flex:none}.lze-list{gap:6px;display:grid}.lze-group-label{letter-spacing:.06em;text-transform:uppercase;color:var(--lze-muted);margin:10px 0 2px;font-size:11px;font-weight:700}.lze-group-label:first-child{margin-top:0}.lze-list-item{border:1px solid var(--lze-border);border-radius:var(--lze-radius);background:var(--lze-panel);color:var(--lze-muted);text-align:left;cursor:pointer;padding:11px 12px;font-size:13px;font-weight:500}.lze-list-item:hover{border-color:var(--lze-fg);color:var(--lze-fg)}.lze-drag-ghost{z-index:2147483000;pointer-events:none;border:1px solid var(--lze-fg);border-radius:var(--lze-radius);background:var(--lze-panel);padding:6px 10px;font-size:12px;font-weight:600;position:fixed;box-shadow:0 8px 24px #0f172a2e}.lze-layer-group{padding:0 8px 2px}.lze-layer-row{color:var(--lze-muted);border-radius:6px;align-items:center;gap:2px;display:flex}.lze-layer-row:hover{background:var(--lze-hover)}.lze-layer-row[data-selected=true]{background:var(--lze-active);color:var(--lze-fg)}.lze-layer-row .lze-icon-btn{width:24px;height:24px}.lze-layer-name{min-width:0;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;flex:1;align-items:center;gap:8px;padding:6px 4px;display:flex}.lze-layer-name span:first-of-type{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.lze-layer-actions{opacity:0;display:flex}.lze-layer-row:hover .lze-layer-actions,.lze-layer-row:focus-within .lze-layer-actions{opacity:1}.lze-layer-children{border-left:1px solid var(--lze-border);margin-left:16px;padding-left:4px}.lze-lock-toggle{opacity:0}.lze-lock-toggle[data-locked=true],.lze-layer-row:hover .lze-lock-toggle,.lze-lock-toggle:focus-visible{opacity:1}.lze-card{border:1px solid var(--lze-border);border-radius:var(--lze-radius);gap:10px;padding:12px;display:grid}.lze-card[data-active=true]{border-color:var(--lze-fg);background:var(--lze-hover)}.lze-media-grid{grid-template-columns:1fr 1fr;align-content:start;gap:8px;display:grid}.lze-media-item{border:1px solid var(--lze-border);border-radius:var(--lze-radius);background:var(--lze-bg);cursor:grab;touch-action:none;height:96px;padding:0;overflow:hidden}.lze-media-item:hover{border-color:var(--lze-fg)}.lze-media-item img{object-fit:contain;width:100%;height:100%}@media (width<=1100px){.lze-body{grid-template-columns:236px minmax(0,1fr) 292px}}`,`.lze-stage{overscroll-behavior:contain;padding:24px;position:relative;overflow:auto}.lze-stage[data-space],.lze-stage[data-space] *{cursor:grab!important}.lze-stage[data-space=panning],.lze-stage[data-space=panning] *{cursor:grabbing!important}.lze-context{z-index:2147483100;border:1px solid var(--lze-border);background:var(--lze-panel);border-radius:10px;min-width:208px;padding:6px;font-size:13px;position:fixed;box-shadow:0 12px 32px #0f172a2e}.lze-context:focus{outline:none}.lze-context>button{width:100%;color:var(--lze-fg);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:6px;justify-content:space-between;align-items:center;gap:16px;padding:7px 10px;display:flex}.lze-context>button:hover,.lze-context>button:focus-visible{background:var(--lze-hover)}.lze-context .lze-context-danger{color:var(--lze-danger)}.lze-context kbd{color:var(--lze-muted);font:inherit;font-size:11px}.lze-context hr{border:0;border-top:1px solid var(--lze-border);margin:5px 6px}.lze-context-label{color:var(--lze-muted);margin:6px 10px 2px;font-size:11px}.lze-context-row{gap:2px;padding:0 6px 4px;display:flex}.lze-context-row button{width:32px;height:28px;color:var(--lze-fg);cursor:pointer;background:0 0;border:0;border-radius:6px;place-items:center;display:grid}.lze-context-row button:hover{background:var(--lze-hover)}.lze-context-align{width:16px;height:16px;display:block;position:relative}.lze-context-align:before{content:"";background:var(--lze-fg);position:absolute}.lze-context-align:after{content:"";background:var(--lze-muted);border-radius:1px;position:absolute}.lze-context-align[data-align=left]:before{width:1.5px;top:0;bottom:0;left:0}.lze-context-align[data-align=left]:after{width:11px;height:8px;top:4px;left:3px}.lze-context-align[data-align=hcenter]:before{width:1.5px;top:0;bottom:0;left:7.25px}.lze-context-align[data-align=hcenter]:after{width:11px;height:8px;top:4px;left:2.5px}.lze-context-align[data-align=right]:before{width:1.5px;top:0;bottom:0;right:0}.lze-context-align[data-align=right]:after{width:11px;height:8px;top:4px;right:3px}.lze-context-align[data-align=top]:before{height:1.5px;top:0;left:0;right:0}.lze-context-align[data-align=top]:after{width:8px;height:11px;top:3px;left:4px}.lze-context-align[data-align=vmiddle]:before{height:1.5px;top:7.25px;left:0;right:0}.lze-context-align[data-align=vmiddle]:after{width:8px;height:11px;top:2.5px;left:4px}.lze-context-align[data-align=bottom]:before{height:1.5px;bottom:0;left:0;right:0}.lze-context-align[data-align=bottom]:after{width:8px;height:11px;bottom:3px;left:4px}.lze-zoom{z-index:25;float:right;border:1px solid var(--lze-border);background:var(--lze-panel);border-radius:999px;align-items:center;gap:2px;margin-top:12px;padding:4px;display:inline-flex;position:sticky;bottom:0;box-shadow:0 6px 18px #0f172a1f}.lze-zoom button{color:var(--lze-fg);cursor:pointer;font:inherit;background:0 0;border:0;border-radius:999px}.lze-zoom-btn{width:28px;height:28px;font-size:15px;line-height:1}.lze-zoom-value{font-variant-numeric:tabular-nums;min-width:54px;height:28px;font-size:12px;font-weight:600}.lze-zoom button:hover{background:var(--lze-hover)}.lze-sheet{background:var(--lze-panel);border-radius:10px;margin:0 auto;position:relative;box-shadow:0 1px 3px #0f172a14,0 12px 40px #0f172a14}.lze-sheet[data-device=mobile]{border-radius:18px}.lze-scaler{transform-origin:0 0;position:absolute;top:0;left:0}.lze-frame{background:0 0;border:0;display:block}.lze-preview .lze-sheet{overflow:hidden}.lze-preview .lze-frame{transform-origin:0 0}.lze-empty-hint{text-align:center;max-width:520px;color:var(--lze-muted);margin:16px auto 0}.lze-hint-bubble{z-index:2147483000;background:var(--lze-fg);color:var(--lze-panel);font-variant-numeric:tabular-nums;pointer-events:none;border-radius:6px;padding:4px 10px;font-size:12px;font-weight:600;position:fixed;bottom:24px;left:50%;transform:translate(-50%)}.lze-render-issue,.lze-modal-banner{border:1px solid var(--lze-border);border-radius:var(--lze-radius);background:var(--lze-panel);justify-content:space-between;align-items:center;gap:8px;max-width:900px;margin:0 auto 12px;padding:8px 12px;display:flex}.lze-render-issue{border-color:var(--lze-danger);color:var(--lze-danger)}.lze-modal-banner{border-color:var(--lze-fg);font-weight:600}.lze-overlay{pointer-events:none;--line:calc(1px * var(--inv));position:absolute;inset:0}.lze-overlay>*{position:absolute}.lze-canvas-outline{outline:calc(2px * var(--inv)) solid var(--lze-select);outline-offset:calc(-2px * var(--inv));box-shadow:inset 0 0 0 calc(4px * var(--inv)) #ffffffb3}.lze-hover{outline:var(--line) solid var(--lze-select)}.lze-selection{outline:calc(2px * var(--inv)) solid var(--lze-select);outline-offset:var(--line);box-shadow:0 0 0 calc(4px * var(--inv)) #ffffffb3}.lze-selection[data-locked=true]{outline-style:dashed}.lze-lock{top:calc(-18px * var(--inv));width:calc(12px * var(--inv));height:calc(12px * var(--inv));color:var(--lze-select);position:absolute;right:0}.lze-handles{pointer-events:none}.lze-handle,.lze-radius,.lze-rotate{pointer-events:auto;touch-action:none;padding:0;position:absolute}.lze-handle{width:calc(11px * var(--inv));height:calc(11px * var(--inv));margin:calc(-5.5px * var(--inv));border:var(--line) solid #fff;background:var(--lze-select);border-radius:999px}.lze-handle[data-handle^=n]{top:0}.lze-handle[data-handle^=s]{top:100%}.lze-handle[data-handle=e],.lze-handle[data-handle=w]{top:50%}.lze-handle[data-handle$=w]{left:0}.lze-handle[data-handle$=e]{left:100%}.lze-handle[data-handle=n],.lze-handle[data-handle=s]{left:50%}.lze-handle[data-handle=nw],.lze-handle[data-handle=se]{cursor:nwse-resize}.lze-handle[data-handle=ne],.lze-handle[data-handle=sw]{cursor:nesw-resize}.lze-handle[data-handle=n],.lze-handle[data-handle=s]{cursor:ns-resize}.lze-handle[data-handle=e],.lze-handle[data-handle=w]{cursor:ew-resize}.lze-radius{top:calc(10px * var(--inv));left:calc(10px * var(--inv));width:calc(14px * var(--inv));height:calc(14px * var(--inv));border:calc(2px * var(--inv)) solid var(--lze-select);cursor:ew-resize;background:#fff;border-radius:999px}.lze-rotate{top:calc(100% + 10px * var(--inv));left:calc(100% + 10px * var(--inv));width:calc(24px * var(--inv));height:calc(24px * var(--inv));border:var(--line) solid var(--lze-select);color:var(--lze-select);cursor:grab;background:#fff;border-radius:999px;place-items:center;display:grid}.lze-rotate svg{width:calc(13px * var(--inv));height:calc(13px * var(--inv))}.lze-guide{background:var(--lze-guide)}.lze-guide[data-axis=x]{width:var(--line)}.lze-guide[data-axis=y]{height:var(--line)}.lze-badge{transform:translateY(-100%) scale(var(--inv));transform-origin:0 100%;background:var(--lze-select);color:#fff;white-space:nowrap;border-radius:4px;margin-top:-4px;padding:2px 6px;font-size:11px;font-weight:600}.lze-section-chip{z-index:5;transform:scale(var(--inv)) translateY(-100%);transform-origin:0 100%;border:1px solid var(--lze-border);background:var(--lze-panel);color:var(--lze-muted);font:600 11px/1.6 var(--lze-font);white-space:nowrap;cursor:pointer;pointer-events:auto;opacity:.5;border-radius:999px;margin-top:-4px;padding:2px 8px;transition:opacity .15s;position:absolute}.lze-section-chip:hover,.lze-section-chip[data-current=true]{opacity:1;color:var(--lze-fg)}.lze-section-chip[data-current=true]{border-color:var(--lze-select);color:var(--lze-select)}.lze-section-empty{z-index:4;transform:scale(var(--inv)) translate(-50%, -50%);transform-origin:0 0;color:var(--lze-muted);font:500 12px/1.4 var(--lze-font);white-space:nowrap;background:#ffffffd1;border-radius:999px;margin:0;padding:6px 14px;position:absolute}.lze-edge{z-index:6;transform:scale(var(--inv)) translate(-50%, -50%);transform-origin:0 0;border:1px solid var(--lze-border);background:var(--lze-surface);pointer-events:auto;opacity:.22;border-radius:999px;gap:4px;padding:3px;transition:opacity .15s;display:flex;position:absolute;box-shadow:0 6px 18px #0f172a24}.lze-edge:hover,.lze-edge:focus-within{opacity:1}.lze-stacked{pointer-events:auto;transform:scale(var(--inv));transform-origin:0 0;border-bottom:1px solid var(--lze-border);max-width:none;color:var(--lze-fg);background:#fffffff2;justify-content:space-between;align-items:center;gap:8px;padding:6px 8px;font-size:12px;display:flex;width:auto!important}.lze-element-bar{pointer-events:auto;transform-origin:0 0;transform:scale(var(--inv)) translateY(calc(-100% - 10px));border:1px solid var(--lze-border);background:var(--lze-panel);border-radius:10px;align-items:center;gap:2px;padding:3px;display:flex;box-shadow:0 8px 24px #0f172a24}.lze-element-bar[data-below=true]{transform:scale(var(--inv)) translateY(14px)}.lze-divider{background:var(--lze-border);width:1px;height:20px;margin:0 2px}`,`.lze-panel-title{font-size:13px;font-weight:650}.lze-grow{flex:1;min-width:0}.lze-nowrap{flex-wrap:nowrap}.lze-divided{border-top:1px solid var(--lze-border);padding-top:12px}.lze-image-preview{border:1px solid var(--lze-border);border-radius:var(--lze-radius);background:var(--lze-bg);overflow:hidden}.lze-image-preview img{object-fit:contain;width:100%;height:96px;display:block}.lze-image-preview[data-thumb=icon]{width:fit-content;padding:6px}.lze-image-preview[data-thumb=icon] img{width:40px;height:40px}.lze-tabs-inline{border-radius:var(--lze-radius);background:var(--lze-bg);gap:4px;padding:3px;display:flex}.lze-tabs-inline button{color:var(--lze-muted);cursor:pointer;background:0 0;border:0;border-radius:6px;flex:1;padding:5px 8px;font-size:12px;font-weight:500}.lze-tabs-inline button:hover{color:var(--lze-fg)}.lze-tabs-inline button[aria-pressed=true]{background:var(--lze-panel);color:var(--lze-fg);box-shadow:0 1px 2px #0f172a14}.lze-gradient-presets{flex-wrap:wrap;gap:6px;display:flex}.lze-gradient-preset{cursor:pointer;border:1px solid #0f172a1f;border-radius:6px;width:48px;height:28px;padding:0}.lze-gradient-preset:hover{outline:2px solid var(--lze-fg);outline-offset:1px}.lze-link-card{border:1px solid var(--lze-border);border-radius:var(--lze-radius);gap:8px;margin:0;padding:8px;display:grid}.lze-link-card legend{color:var(--lze-muted);padding:0 4px;font-size:11px}.lze-icon-grid{border:1px solid var(--lze-border);border-radius:var(--lze-radius);grid-template-columns:repeat(6,1fr);gap:4px;max-height:192px;padding:6px;display:grid;overflow-y:auto}.lze-icon-grid .lze-hint{text-align:center;grid-column:1/-1;padding:8px 0}.lze-icon-choice{aspect-ratio:1;color:var(--lze-muted);cursor:pointer;background:0 0;border:0;border-radius:6px;place-items:center;padding:0;display:grid}.lze-icon-choice:hover{background:var(--lze-hover);color:var(--lze-fg)}.lze-icon-choice[aria-pressed=true]{background:var(--lze-active);color:var(--lze-fg)}.lze-slug{color:var(--lze-muted);align-items:center;gap:6px;font-family:ui-monospace,monospace;display:flex}.lze-slug-static{border:1px solid var(--lze-border);color:var(--lze-muted);border-radius:6px;gap:6px;padding:6px 8px;display:flex}.lze-slug-root{font-family:ui-monospace,monospace}.lze-choice{border:1px solid var(--lze-border);border-radius:var(--lze-radius);background:var(--lze-panel);color:inherit;text-align:left;cursor:pointer;gap:2px;padding:8px 10px;display:grid}.lze-choice:hover{border-color:var(--lze-fg);background:var(--lze-hover)}.lze-shortcuts{gap:4px;margin:0;padding-left:16px;display:grid}.lze-rows{gap:8px;margin:0;padding:0;list-style:none;display:grid}.lze-row-item{border:1px solid var(--lze-border);border-radius:var(--lze-radius);justify-content:space-between;align-items:center;gap:12px;padding:8px 12px;display:flex}.lze-palette-choice{border:1px solid var(--lze-border);border-radius:var(--lze-radius);background:var(--lze-panel);color:inherit;cursor:pointer;align-items:center;gap:8px;padding:6px 12px;display:inline-flex}.lze-palette-choice:hover{border-color:var(--lze-fg);background:var(--lze-hover)}.lze-palette-choice .lze-row{gap:3px}.lze-dot{border:1px solid #0f172a1f;border-radius:999px;width:14px;height:14px}.lze-theme-colors{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px;display:grid}.lze-theme-color{border:1px solid var(--lze-border);border-radius:var(--lze-radius);align-items:center;gap:8px;padding:6px 10px;display:flex}.lze-theme-color span{flex:1}.lze-theme-color .lze-hex{width:84px;min-height:28px;padding:3px 6px;font-family:ui-monospace,monospace;font-size:12px}.lze-theme-color input[type=color]{border:1px solid var(--lze-border);cursor:pointer;background:0 0;border-radius:6px;width:32px;height:32px;padding:0}.lze-theme-preview{border:1px solid var(--lze-border);gap:10px;padding:20px;display:grid}.lze-theme-preview-heading{font-size:24px;font-weight:700;line-height:1.2}.lze-theme-preview-button{width:fit-content;padding:8px 16px;font-weight:600}.lze-file-input{display:none}.lze-asset-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;display:grid}.lze-upload-tile{border:2px dashed var(--lze-border);border-radius:var(--lze-radius);background:var(--lze-panel);height:128px;color:var(--lze-muted);text-align:center;cursor:pointer;align-content:center;place-items:center;gap:4px;padding:8px;display:grid}.lze-upload-tile:hover:not(:disabled){border-color:var(--lze-fg);color:var(--lze-fg)}.lze-upload-tile:disabled{cursor:progress}.lze-asset{border:1px solid var(--lze-border);border-radius:var(--lze-radius);height:128px;margin:0;position:relative;overflow:hidden}.lze-asset:hover{border-color:var(--lze-fg)}.lze-asset-use{background:var(--lze-bg);width:100%;height:100%;color:inherit;cursor:pointer;border:0;flex-direction:column;padding:0;display:flex}.lze-asset-use img{object-fit:contain;flex:1;width:100%;min-height:0}.lze-asset-use figcaption{background:var(--lze-panel);color:var(--lze-muted);text-align:left;white-space:nowrap;text-overflow:ellipsis;padding:4px 8px;font-size:11px;overflow:hidden}.lze-asset .lze-asset-delete{opacity:0;background:#ffffffeb;width:28px;height:28px;position:absolute;top:6px;right:6px}.lze-asset:hover .lze-asset-delete,.lze-asset .lze-asset-delete:focus-visible{opacity:1}.lze-submission{border-bottom:1px solid var(--lze-border);gap:6px;padding:10px 0;display:grid}.lze-submission dl{grid-template-columns:minmax(96px,max-content) 1fr;gap:4px 12px;margin:0;display:grid}.lze-submission dt{color:var(--lze-muted)}.lze-submission dd{white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.lze-choices{gap:6px;display:grid}`].join(`
538
+ `),dO=/* @__PURE__ */ new WeakMap;function fO(e){let t=e.getRootNode();if(!(t instanceof Document||t instanceof ShadowRoot)||dO.has(t))return;let n=new CSSStyleSheet;n.replaceSync(uO),dO.set(t,n),t.adoptedStyleSheets=[...t.adoptedStyleSheets,n]}var pO={class:`lze-toasts`},mO=[`data-tone`,`role`],hO=[`aria-label`,`onClick`],gO=/* @__PURE__ */ D({__name:`Toasts`,setup(e){let t=Y();return(e,n)=>(j(),M(`div`,pO,[(j(!0),M(A,null,k(T(t).state.toasts,e=>(j(),M(`div`,{key:e.id,class:`lze-toast`,"data-tone":e.tone,role:e.tone===`error`?`alert`:`status`},[P(`span`,null,S(e.text),1),P(`button`,{type:`button`,class:`lze-icon-btn`,"aria-label":T(t).t(`toast.dismiss`),onClick:n=>T(t).dismiss(e.id)},[F(T(Fx),{size:14,"aria-hidden":`true`})],8,hO)],8,mO))),128))]))}}),_O=[`lang`],vO={key:0,class:`lze-toolbar-start`},yO={key:1,class:`lze-center`},bO={key:2,class:`lze-center`,role:`alert`},xO={key:3,class:`lze-center`},SO={class:`lze-body`},CO={class:`lze-main`},wO=/* @__PURE__ */ Mo(/* @__PURE__ */ D({inheritAttrs:!1,__name:`LienzoEditor`,props:{endpoint:{},locale:{},messages:{},headers:{},fetch:{}},setup(e){let t=e,n=Fy(t.locale??`en`,t.messages),r=ab({client:gy({endpoint:t.endpoint,headers:t.headers,fetch:t.fetch}),i18n:n});qn(ib,r);let i=/* @__PURE__ */ w(),a=/* @__PURE__ */ w(),o=(e,t)=>a.value?.dropPoint(e,t)??null;function s(e){let t=e.composedPath().some(e=>e===i.value),n=e.target===document.body||e.target===document.documentElement;(t||n)&&r.state.load.kind===`ready`&&db(r,e)}let c=null;Zn(()=>{let e=r.theme.value;r.state.load.kind===`ready`&&typeof document<`u`&&(c??=document.head.appendChild(Object.assign(document.createElement(`link`),{rel:`stylesheet`})),c.href=tc([e.heading_font,e.body_font]))});let l=()=>void r.saveNow();function u(e){r.leavingLosesEdits()&&e.preventDefault()}return Cr(()=>{i.value&&fO(i.value),window.addEventListener(`keydown`,s),window.addEventListener(`pagehide`,l),window.addEventListener(`beforeunload`,u),r.load()}),Er(()=>{window.removeEventListener(`keydown`,s),window.removeEventListener(`pagehide`,l),window.removeEventListener(`beforeunload`,u),c?.remove(),r.dispose()}),(e,t)=>(j(),M(`div`,{ref_key:`root`,ref:i,class:`lze-root`,lang:T(n).locale},[T(r).state.load.kind===`ready`?L(``,!0):(j(),M(`div`,vO,[Lr(e.$slots,`toolbar-start`)])),T(r).state.load.kind===`loading`?(j(),M(`div`,yO,S(T(r).t(`load.loading`)),1)):T(r).state.load.kind===`failed`?(j(),M(`div`,bO,[P(`p`,null,S(T(r).t(`load.failed`,{message:T(r).state.load.message})),1),F(Z,{onClick:t[0]||=e=>T(r).load()},{default:E(()=>[I(S(T(r).t(`load.retry`)),1)]),_:1})])):T(r).state.load.kind===`empty`?(j(),M(`div`,xO,[F(Z,{variant:`primary`,onClick:t[1]||=e=>T(r).state.dialog=`newPage`},{default:E(()=>[I(S(T(r).t(`newPage.title`)),1)]),_:1})])):(j(),M(A,{key:4},[F(lO,null,{start:E(()=>[Lr(e.$slots,`toolbar-start`)]),_:3}),P(`div`,SO,[F(_T,{"drop-point":o}),P(`main`,CO,[T(r).state.previewing?(j(),N(pS,{key:0})):(j(),N(dS,{key:1,ref_key:`canvas`,ref:a},null,512))]),F(YD)])],64)),F(US),F(aw),F(tw),F(DC),F(MC),F(CS),F(NS),F(gO)],8,_O))}}),{shadowRoot:!0});function TO(e=`lienzo-editor`){customElements.get(e)||customElements.define(e,wO)}TO();export{wO as LienzoEditorElement,TO as defineLienzoEditor};
539
539
  //# sourceMappingURL=lienzo-editor.js.map