From ee754b6b5d0669f3872ce2cd8362bb9cf775ae75 Mon Sep 17 00:00:00 2001 From: Jakub Zych Date: Sat, 21 Nov 2026 00:53:01 +0100 Subject: [PATCH] chore(32.2-02): rebuild embedded admin dist with the connect screen and account items --- .../{editor-DL0km8ky.js => editor-Ddqg0Ojw.js} | 2 +- modules/boardwalk/dist/assets/index-Bvfii4cZ.css | 1 - modules/boardwalk/dist/assets/index-CHYC7L7j.js | 12 ++++++++++++ modules/boardwalk/dist/assets/index-DEB8-xeq.css | 1 + modules/boardwalk/dist/assets/index-DKWSpBPg.js | 12 ------------ .../assets/{load-7hoJXD7k.js => load-DItc0Zsj.js} | 2 +- modules/boardwalk/dist/index.html | 4 ++-- 7 files changed, 17 insertions(+), 17 deletions(-) rename modules/boardwalk/dist/assets/{editor-DL0km8ky.js => editor-Ddqg0Ojw.js} (99%) delete mode 100644 modules/boardwalk/dist/assets/index-Bvfii4cZ.css create mode 100644 modules/boardwalk/dist/assets/index-CHYC7L7j.js create mode 100644 modules/boardwalk/dist/assets/index-DEB8-xeq.css delete mode 100644 modules/boardwalk/dist/assets/index-DKWSpBPg.js rename modules/boardwalk/dist/assets/{load-7hoJXD7k.js => load-DItc0Zsj.js} (78%) diff --git a/modules/boardwalk/dist/assets/editor-DL0km8ky.js b/modules/boardwalk/dist/assets/editor-Ddqg0Ojw.js similarity index 99% rename from modules/boardwalk/dist/assets/editor-DL0km8ky.js rename to modules/boardwalk/dist/assets/editor-Ddqg0Ojw.js index 63cbe7d2..c95ece57 100644 --- a/modules/boardwalk/dist/assets/editor-DL0km8ky.js +++ b/modules/boardwalk/dist/assets/editor-Ddqg0Ojw.js @@ -1,4 +1,4 @@ -import{k as du,b as fu}from"./index-Vcq4gwWv.js";import{L as hu,i as pu}from"./index-DKWSpBPg.js";var Bs=Object.defineProperty,mu=(n,e)=>{let t={};for(var r in n)Bs(t,r,{get:n[r],enumerable:!0});return Bs(t,Symbol.toStringTag,{value:"Module"}),t};function Q(n){this.content=n}Q.prototype={constructor:Q,find:function(n){for(var e=0;e>1}};Q.from=function(n){if(n instanceof Q)return n;var e=[];if(n)for(var t in n)e.push(t,n[t]);return new Q(e)};function bl(n,e,t){for(let r=0;;r++){if(r==n.childCount||r==e.childCount)return n.childCount==e.childCount?null:t;let i=n.child(r),s=e.child(r);if(i==s){t+=i.nodeSize;continue}if(!i.sameMarkup(s))return t;if(i.isText&&i.text!=s.text){let o=i.text,l=s.text,a=0;for(;o[a]==l[a];a++)t++;return a&&a0&&f>0&&c[d-1]==u[f-1];)d--,f--,t--,r--;return d&&f&&d=56320&&n<57344}function wl(n){return n>=55296&&n<56320}class k{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let r=0;re&&r(a,i+l,s||null,o)!==!1&&a.content.size){let u=l+1;a.nodesBetween(Math.max(0,e-u),Math.min(a.content.size,t-u),r,i+u)}l=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,i){let s="",o=!0;return this.nodesBetween(e,t,(l,a)=>{let c=l.isText?l.text.slice(Math.max(e,a)-a,t-a):l.isLeaf?i?typeof i=="function"?i(l):i:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&c||l.isTextblock)&&r&&(o?o=!1:s+=r),s+=c},0),s}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,i=this.content.slice(),s=0;for(t.isText&&t.sameMarkup(r)&&(i[i.length-1]=t.withText(t.text+r.text),s=1);se)for(let s=0,o=0;oe&&((ot)&&(l.isText?l=l.cut(Math.max(0,e-o),Math.min(l.text.length,t-o)):l=l.cut(Math.max(0,e-o-1),Math.min(l.content.size,t-o-1))),r.push(l),i+=l.nodeSize),o=a}return new k(r,i)}cutByIndex(e,t){return e==t?k.empty:e==0&&t==this.content.length?this:new k(this.content.slice(e,t))}replaceChild(e,t){let r=this.content[e];if(r==t)return this;let i=this.content.slice(),s=this.size+t.nodeSize-r.nodeSize;return i[e]=t,new k(i,s)}addToStart(e){return new k([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new k(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;tthis.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,r=0;;t++){let i=this.child(t),s=r+i.nodeSize;if(s>=e)return s==e?Dn(t+1,s):Dn(t,r);r=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return k.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return k.fromArray(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return k.empty;let t,r=0;for(let i=0;ithis.type.rank&&(t||(t=e.slice(0,i)),t.push(this),r=!0),t&&t.push(s)}}return t||(t=e.slice()),r||t.push(this),t}removeFromSet(e){for(let t=0;tr.type.rank-i.type.rank),t}};B.none=[];class pn extends Error{}class w{constructor(e,t,r){this.content=e,this.openStart=t,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let r=Ml(this.content,e+this.openStart,t,this.openStart+1,this.openEnd+1);return r&&new w(r,this.openStart,this.openEnd)}removeBetween(e,t){return new w(Cl(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return w.empty;let r=t.openStart||0,i=t.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new w(k.fromJSON(e,t.content),r,i)}static maxOpen(e,t=!0){let r=0,i=0;for(let s=e.firstChild;s&&!s.isLeaf&&(t||!s.type.spec.isolating);s=s.firstChild)r++;for(let s=e.lastChild;s&&!s.isLeaf&&(t||!s.type.spec.isolating);s=s.lastChild)i++;return new w(e,r,i)}}w.empty=new w(k.empty,0,0);function Cl(n,e,t){let{index:r,offset:i}=n.findIndex(e),s=n.maybeChild(r),{index:o,offset:l}=n.findIndex(t);if(i==e||s.isText){if(l!=t&&!n.child(o).isText)throw new RangeError("Removing non-flat range");return n.cut(0,e).append(n.cut(t))}if(r!=o)throw new RangeError("Removing non-flat range");return n.replaceChild(r,s.copy(Cl(s.content,e-i-1,t-i-1)))}function Ml(n,e,t,r,i,s){let{index:o,offset:l}=n.findIndex(e),a=n.maybeChild(o);if(l==e||a.isText)return s&&r<=0&&i<=0&&!s.canReplace(o,o,t)?null:n.cut(0,e).append(t).append(n.cut(e));let c=Ml(a.content,e-l-1,t,o==0?r-1:0,o==n.childCount-1?i-1:0,a);return c&&n.replaceChild(o,a.copy(c))}function gu(n,e,t){if(t.openStart>n.depth)throw new pn("Inserted content deeper than insertion position");if(n.depth-t.openStart!=e.depth-t.openEnd)throw new pn("Inconsistent open depths");return Tl(n,e,t,0)}function Tl(n,e,t,r){let i=n.index(r),s=n.node(r);if(i==e.index(r)&&r=0&&n.isText&&n.sameMarkup(e[t])?e[t]=n.withText(e[t].text+n.text):e.push(n)}function en(n,e,t,r){let i=(e||n).node(t),s=0,o=e?e.index(t):i.childCount;n&&(s=n.index(t),n.depth>t?s++:n.textOffset&&(ht(n.nodeAfter,r),s++));for(let l=s;li&&Mi(n,e,i+1),o=r.depth>i&&Mi(t,r,i+1),l=[];return en(null,n,i,l),s&&o&&e.index(i)==t.index(i)?(El(s,o),ht(pt(s,vl(n,e,t,r,i+1)),l)):(s&&ht(pt(s,Yn(n,e,i+1)),l),en(e,t,i,l),o&&ht(pt(o,Yn(t,r,i+1)),l)),en(r,null,i,l),new k(l)}function Yn(n,e,t){let r=[];if(en(null,n,t,r),n.depth>t){let i=Mi(n,e,t+1);ht(pt(i,Yn(n,e,t+1)),r)}return en(e,null,t,r),new k(r)}function yu(n,e){let t=e.depth-n.openStart,i=e.node(t).copy(n.content);for(let s=t-1;s>=0;s--)i=e.node(s).copy(k.from(i));return{start:i.resolveNoCache(n.openStart+t),end:i.resolveNoCache(i.content.size-n.openEnd-t)}}class mn{constructor(e,t,r){this.pos=e,this.path=t,this.parentOffset=r,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=e.child(t);return r?e.child(t).cut(r):i}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let r=this.path[t*3],i=t==0?0:this.path[t*3-1]+1;for(let s=0;s0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos=0;r--)if(e.pos<=this.end(r)&&(!t||t(this.node(r))))return new Xn(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let r=[],i=0,s=t;for(let o=e;;){let{index:l,offset:a}=o.content.findIndex(s),c=s-a;if(r.push(o,l,i+a),!c||(o=o.child(l),o.isText))break;s=c-1,i+=a+1}return new mn(t,r,s)}static resolveCached(e,t){let r=zs.get(e);if(r)for(let s=0;se&&this.nodesBetween(e,t,s=>(r.isInSet(s.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),Al(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,r=k.empty,i=0,s=r.childCount){let o=this.contentMatchAt(e).matchFragment(r,i,s),l=o&&o.matchFragment(this.content,t);if(!l||!l.validEnd)return!1;for(let a=i;at.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(t=>t.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let r;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=t.marks.map(e.markFromJSON)}if(t.type=="text"){if(typeof t.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(t.text,r)}let i=k.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,i,r)}};mt.prototype.text=void 0;class Qn extends mt{constructor(e,t,r,i){if(super(e,t,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Al(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Qn(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Qn(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function Al(n,e){for(let t=n.length-1;t>=0;t--)e=n[t].type.name+"("+e+")";return e}function $s(n,e,t,r){for(let i in e)if(!(i in n))throw new RangeError(`Unsupported attribute ${i} for ${t} of type ${r}`);for(let i in n)n[i].validate&&n[i].validate(e[i])}class kt{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new Su(e,t);if(r.next==null)return kt.empty;let i=Ol(r);r.next&&r.err("Unexpected trailing text");let s=Au(vu(i));return Ou(s,r),s}matchType(e){for(let t=0;tc.createAndFill()));for(let c=0;c=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(r){e.push(r);for(let i=0;i{let s=i+(r.validEnd?"*":" ")+" ";for(let o=0;o"+e.indexOf(r.next[o].next);return s}).join(` +import{k as du,b as fu}from"./index-Vcq4gwWv.js";import{L as hu,i as pu}from"./index-CHYC7L7j.js";var Bs=Object.defineProperty,mu=(n,e)=>{let t={};for(var r in n)Bs(t,r,{get:n[r],enumerable:!0});return Bs(t,Symbol.toStringTag,{value:"Module"}),t};function Q(n){this.content=n}Q.prototype={constructor:Q,find:function(n){for(var e=0;e>1}};Q.from=function(n){if(n instanceof Q)return n;var e=[];if(n)for(var t in n)e.push(t,n[t]);return new Q(e)};function bl(n,e,t){for(let r=0;;r++){if(r==n.childCount||r==e.childCount)return n.childCount==e.childCount?null:t;let i=n.child(r),s=e.child(r);if(i==s){t+=i.nodeSize;continue}if(!i.sameMarkup(s))return t;if(i.isText&&i.text!=s.text){let o=i.text,l=s.text,a=0;for(;o[a]==l[a];a++)t++;return a&&a0&&f>0&&c[d-1]==u[f-1];)d--,f--,t--,r--;return d&&f&&d=56320&&n<57344}function wl(n){return n>=55296&&n<56320}class k{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let r=0;re&&r(a,i+l,s||null,o)!==!1&&a.content.size){let u=l+1;a.nodesBetween(Math.max(0,e-u),Math.min(a.content.size,t-u),r,i+u)}l=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,i){let s="",o=!0;return this.nodesBetween(e,t,(l,a)=>{let c=l.isText?l.text.slice(Math.max(e,a)-a,t-a):l.isLeaf?i?typeof i=="function"?i(l):i:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&c||l.isTextblock)&&r&&(o?o=!1:s+=r),s+=c},0),s}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,i=this.content.slice(),s=0;for(t.isText&&t.sameMarkup(r)&&(i[i.length-1]=t.withText(t.text+r.text),s=1);se)for(let s=0,o=0;oe&&((ot)&&(l.isText?l=l.cut(Math.max(0,e-o),Math.min(l.text.length,t-o)):l=l.cut(Math.max(0,e-o-1),Math.min(l.content.size,t-o-1))),r.push(l),i+=l.nodeSize),o=a}return new k(r,i)}cutByIndex(e,t){return e==t?k.empty:e==0&&t==this.content.length?this:new k(this.content.slice(e,t))}replaceChild(e,t){let r=this.content[e];if(r==t)return this;let i=this.content.slice(),s=this.size+t.nodeSize-r.nodeSize;return i[e]=t,new k(i,s)}addToStart(e){return new k([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new k(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;tthis.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,r=0;;t++){let i=this.child(t),s=r+i.nodeSize;if(s>=e)return s==e?Dn(t+1,s):Dn(t,r);r=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return k.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return k.fromArray(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return k.empty;let t,r=0;for(let i=0;ithis.type.rank&&(t||(t=e.slice(0,i)),t.push(this),r=!0),t&&t.push(s)}}return t||(t=e.slice()),r||t.push(this),t}removeFromSet(e){for(let t=0;tr.type.rank-i.type.rank),t}};B.none=[];class pn extends Error{}class w{constructor(e,t,r){this.content=e,this.openStart=t,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let r=Ml(this.content,e+this.openStart,t,this.openStart+1,this.openEnd+1);return r&&new w(r,this.openStart,this.openEnd)}removeBetween(e,t){return new w(Cl(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return w.empty;let r=t.openStart||0,i=t.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new w(k.fromJSON(e,t.content),r,i)}static maxOpen(e,t=!0){let r=0,i=0;for(let s=e.firstChild;s&&!s.isLeaf&&(t||!s.type.spec.isolating);s=s.firstChild)r++;for(let s=e.lastChild;s&&!s.isLeaf&&(t||!s.type.spec.isolating);s=s.lastChild)i++;return new w(e,r,i)}}w.empty=new w(k.empty,0,0);function Cl(n,e,t){let{index:r,offset:i}=n.findIndex(e),s=n.maybeChild(r),{index:o,offset:l}=n.findIndex(t);if(i==e||s.isText){if(l!=t&&!n.child(o).isText)throw new RangeError("Removing non-flat range");return n.cut(0,e).append(n.cut(t))}if(r!=o)throw new RangeError("Removing non-flat range");return n.replaceChild(r,s.copy(Cl(s.content,e-i-1,t-i-1)))}function Ml(n,e,t,r,i,s){let{index:o,offset:l}=n.findIndex(e),a=n.maybeChild(o);if(l==e||a.isText)return s&&r<=0&&i<=0&&!s.canReplace(o,o,t)?null:n.cut(0,e).append(t).append(n.cut(e));let c=Ml(a.content,e-l-1,t,o==0?r-1:0,o==n.childCount-1?i-1:0,a);return c&&n.replaceChild(o,a.copy(c))}function gu(n,e,t){if(t.openStart>n.depth)throw new pn("Inserted content deeper than insertion position");if(n.depth-t.openStart!=e.depth-t.openEnd)throw new pn("Inconsistent open depths");return Tl(n,e,t,0)}function Tl(n,e,t,r){let i=n.index(r),s=n.node(r);if(i==e.index(r)&&r=0&&n.isText&&n.sameMarkup(e[t])?e[t]=n.withText(e[t].text+n.text):e.push(n)}function en(n,e,t,r){let i=(e||n).node(t),s=0,o=e?e.index(t):i.childCount;n&&(s=n.index(t),n.depth>t?s++:n.textOffset&&(ht(n.nodeAfter,r),s++));for(let l=s;li&&Mi(n,e,i+1),o=r.depth>i&&Mi(t,r,i+1),l=[];return en(null,n,i,l),s&&o&&e.index(i)==t.index(i)?(El(s,o),ht(pt(s,vl(n,e,t,r,i+1)),l)):(s&&ht(pt(s,Yn(n,e,i+1)),l),en(e,t,i,l),o&&ht(pt(o,Yn(t,r,i+1)),l)),en(r,null,i,l),new k(l)}function Yn(n,e,t){let r=[];if(en(null,n,t,r),n.depth>t){let i=Mi(n,e,t+1);ht(pt(i,Yn(n,e,t+1)),r)}return en(e,null,t,r),new k(r)}function yu(n,e){let t=e.depth-n.openStart,i=e.node(t).copy(n.content);for(let s=t-1;s>=0;s--)i=e.node(s).copy(k.from(i));return{start:i.resolveNoCache(n.openStart+t),end:i.resolveNoCache(i.content.size-n.openEnd-t)}}class mn{constructor(e,t,r){this.pos=e,this.path=t,this.parentOffset=r,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=e.child(t);return r?e.child(t).cut(r):i}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let r=this.path[t*3],i=t==0?0:this.path[t*3-1]+1;for(let s=0;s0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos=0;r--)if(e.pos<=this.end(r)&&(!t||t(this.node(r))))return new Xn(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let r=[],i=0,s=t;for(let o=e;;){let{index:l,offset:a}=o.content.findIndex(s),c=s-a;if(r.push(o,l,i+a),!c||(o=o.child(l),o.isText))break;s=c-1,i+=a+1}return new mn(t,r,s)}static resolveCached(e,t){let r=zs.get(e);if(r)for(let s=0;se&&this.nodesBetween(e,t,s=>(r.isInSet(s.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),Al(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,r=k.empty,i=0,s=r.childCount){let o=this.contentMatchAt(e).matchFragment(r,i,s),l=o&&o.matchFragment(this.content,t);if(!l||!l.validEnd)return!1;for(let a=i;at.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(t=>t.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let r;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=t.marks.map(e.markFromJSON)}if(t.type=="text"){if(typeof t.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(t.text,r)}let i=k.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,i,r)}};mt.prototype.text=void 0;class Qn extends mt{constructor(e,t,r,i){if(super(e,t,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Al(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Qn(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Qn(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function Al(n,e){for(let t=n.length-1;t>=0;t--)e=n[t].type.name+"("+e+")";return e}function $s(n,e,t,r){for(let i in e)if(!(i in n))throw new RangeError(`Unsupported attribute ${i} for ${t} of type ${r}`);for(let i in n)n[i].validate&&n[i].validate(e[i])}class kt{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new Su(e,t);if(r.next==null)return kt.empty;let i=Ol(r);r.next&&r.err("Unexpected trailing text");let s=Au(vu(i));return Ou(s,r),s}matchType(e){for(let t=0;tc.createAndFill()));for(let c=0;c=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(r){e.push(r);for(let i=0;i{let s=i+(r.validEnd?"*":" ")+" ";for(let o=0;o"+e.indexOf(r.next[o].next);return s}).join(` `)}}kt.empty=new kt(!0);class Su{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function Ol(n){let e=[];do e.push(wu(n));while(n.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function wu(n){let e=[];do e.push(Cu(n));while(n.next&&n.next!=")"&&n.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function Cu(n){let e=Eu(n);for(;;)if(n.eat("+"))e={type:"plus",expr:e};else if(n.eat("*"))e={type:"star",expr:e};else if(n.eat("?"))e={type:"opt",expr:e};else if(n.eat("{"))e=Mu(n,e);else break;return e}function Fs(n){/\D/.test(n.next)&&n.err("Expected number, got '"+n.next+"'");let e=Number(n.next);return n.pos++,e}function Mu(n,e){let t=Fs(n),r=t;return n.eat(",")&&(n.next!="}"?r=Fs(n):r=-1),n.eat("}")||n.err("Unclosed braced range"),{type:"range",min:t,max:r,expr:e}}function Tu(n,e){let t=n.nodeTypes,r=t[e];if(r)return[r];let i=[];for(let s in t){let o=t[s];o.isInGroup(e)&&i.push(o)}return i.length==0&&n.err("No node type or group '"+e+"' found"),i}function Eu(n){if(n.eat("(")){let e=Ol(n);return n.eat(")")||n.err("Missing closing paren"),e}else if(/\W/.test(n.next))n.err("Unexpected token '"+n.next+"'");else{let e=Tu(n,n.next).map(t=>(n.inline==null?n.inline=t.isInline:n.inline!=t.isInline&&n.err("Mixing inline and block content"),{type:"name",value:t}));return n.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function vu(n){let e=[[]];return i(s(n,0),t()),e;function t(){return e.push([])-1}function r(o,l,a){let c={term:a,to:l};return e[o].push(c),c}function i(o,l){o.forEach(a=>a.to=l)}function s(o,l){if(o.type=="choice")return o.exprs.reduce((a,c)=>a.concat(s(c,l)),[]);if(o.type=="seq")for(let a=0;;a++){let c=s(o.exprs[a],l);if(a==o.exprs.length-1)return c;i(c,l=t())}else if(o.type=="star"){let a=t();return r(l,a),i(s(o.expr,a),a),[r(a)]}else if(o.type=="plus"){let a=t();return i(s(o.expr,l),a),i(s(o.expr,a),a),[r(a)]}else{if(o.type=="opt")return[r(l)].concat(s(o.expr,l));if(o.type=="range"){let a=l;for(let c=0;c{n[o].forEach(({term:l,to:a})=>{if(!l)return;let c;for(let u=0;u{c||i.push([l,c=[]]),c.indexOf(u)==-1&&c.push(u)})})});let s=e[r.join(",")]=new kt(r.indexOf(n.length-1)>-1);for(let o=0;o-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:Il(this.attrs,e)}create(e=null,t,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new mt(this,this.computeAttrs(e),k.from(t),B.setFrom(r))}createChecked(e=null,t,r){return t=k.from(t),this.checkContent(t),new mt(this,this.computeAttrs(e),t,B.setFrom(r))}createAndFill(e=null,t,r){if(e=this.computeAttrs(e),t=k.from(t),t.size){let o=this.contentMatch.fillBefore(t);if(!o)return null;t=o.append(t)}let i=this.contentMatch.matchFragment(t),s=i&&i.fillBefore(k.empty,!0);return s?new mt(this,e,t.append(s),B.setFrom(r)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let r=0;r-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;tr[s]=new Ll(s,t,o));let i=t.spec.topNode||"doc";if(!r[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let s in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function Nu(n,e,t){let r=t.split("|");return i=>{let s=i===null?"null":typeof i;if(r.indexOf(s)<0)throw new RangeError(`Expected value of type ${r} for attribute ${e} on type ${n}, got ${s}`)}}class Du{constructor(e,t,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?Nu(e,t,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class Br{constructor(e,t,r,i){this.name=e,this.rank=t,this.schema=r,this.spec=i,this.attrs=Rl(e,i.attrs),this.excluded=null;let s=Dl(this.attrs);this.instance=s?new B(this,s):null}create(e=null){return!e&&this.instance?this.instance:new B(this,Il(this.attrs,e))}static compile(e,t){let r=Object.create(null),i=0;return e.forEach((s,o)=>r[s]=new Br(s,i++,t,o)),r}removeFromSet(e){for(var t=0;t-1}}class Pl{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let i in e)t[i]=e[i];t.nodes=Q.from(e.nodes),t.marks=Q.from(e.marks||{}),this.nodes=Hs.compile(this.spec.nodes,this),this.marks=Br.compile(this.spec.marks,this);let r=Object.create(null);for(let i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");let s=this.nodes[i],o=s.spec.content||"",l=s.spec.marks;if(s.contentMatch=r[o]||(r[o]=kt.parse(o,this.nodes)),s.inlineContent=s.contentMatch.inlineContent,s.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!s.isInline||!s.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=s}s.markSet=l=="_"?null:l?js(this,l.split(" ")):l==""||!s.inlineContent?[]:null}for(let i in this.marks){let s=this.marks[i],o=s.spec.excludes;s.excluded=o==null?[s]:o==""?[]:js(this,o.split(" "))}this.nodeFromJSON=i=>mt.fromJSON(this,i),this.markFromJSON=i=>B.fromJSON(this,i),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,r,i){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof Hs){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(t,r,i)}text(e,t){let r=this.nodes.text;return new Qn(r,r.defaultAttrs,e,B.setFrom(t))}mark(e,t){return typeof e=="string"&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}}function js(n,e){let t=[];for(let r=0;r-1)&&t.push(o=a)}if(!o)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return t}function Iu(n){return n.tag!=null}function Ru(n){return n.style!=null}class Ye{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let r=this.matchedStyles=[];t.forEach(i=>{if(Iu(i))this.tags.push(i);else if(Ru(i)){let s=/[^=]*/.exec(i.style)[0];r.indexOf(s)<0&&r.push(s),this.styles.push(i)}}),this.normalizeLists=!this.tags.some(i=>{if(!/^(ul|ol)\b/.test(i.tag)||!i.node)return!1;let s=e.nodes[i.node];return s.contentMatch.matchType(s)})}parse(e,t={}){let r=new Ks(this,t,!1);return r.addAll(e,B.none,t.from,t.to),r.finish()}parseSlice(e,t={}){let r=new Ks(this,t,!0);return r.addAll(e,B.none,t.from,t.to),w.maxOpen(r.finish())}matchTag(e,t,r){for(let i=r?this.tags.indexOf(r)+1:0;ie.length&&(l.charCodeAt(e.length)!=61||l.slice(e.length+1)!=t))){if(o.getAttrs){let a=o.getAttrs(t);if(a===!1)continue;o.attrs=a||void 0}return o}}}static schemaRules(e){let t=[];function r(i){let s=i.priority==null?50:i.priority,o=0;for(;o{r(o=_s(o)),o.mark||o.ignore||o.clearMark||(o.mark=i)})}for(let i in e.nodes){let s=e.nodes[i].spec.parseDOM;s&&s.forEach(o=>{r(o=_s(o)),o.node||o.ignore||o.mark||(o.node=i)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Ye(e,Ye.schemaRules(e)))}}const Bl={address:!0,article:!0,aside:!0,blockquote:!0,body:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},Lu={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},zl={ol:!0,ul:!0},gn=1,Ei=2,tn=4;function Ws(n,e,t){return e!=null?(e?gn:0)|(e==="full"?Ei:0):n&&n.whitespace=="pre"?gn|Ei:t&~tn}class In{constructor(e,t,r,i,s,o){this.type=e,this.attrs=t,this.marks=r,this.solid=i,this.options=o,this.content=[],this.activeMarks=B.none,this.match=s||(o&tn?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(k.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let r=this.type.contentMatch,i;return(i=r.findWrapping(e.type))?(this.match=r,i):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&gn)){let r=this.content[this.content.length-1],i;if(r&&r.isText&&(i=/[ \t\r\n\u000c]+$/.exec(r.text))){let s=r;r.text.length==i[0].length?this.content.pop():this.content[this.content.length-1]=s.withText(s.text.slice(0,s.text.length-i[0].length))}}let t=k.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(k.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!Bl.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class Ks{constructor(e,t,r){this.parser=e,this.options=t,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let i=t.topNode,s,o=Ws(null,t.preserveWhitespace,0)|(r?tn:0);i?s=new In(i.type,i.attrs,B.none,!0,t.topMatch||i.type.contentMatch,o):r?s=new In(null,null,B.none,!0,null,o):s=new In(e.schema.topNodeType,null,B.none,!0,null,o),this.nodes=[s],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){e.nodeType==3?this.addTextNode(e,t):e.nodeType==1&&this.addElement(e,t)}addTextNode(e,t){let r=e.nodeValue,i=this.top,s=i.options&Ei?"full":this.localPreserveWS||(i.options&gn)>0,{schema:o}=this.parser;if(s==="full"||i.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(s)if(s==="full")r=r.replace(/\r\n?/g,` `);else if(o.linebreakReplacement&&/[\r\n]/.test(r)&&this.top.findWrapping(o.linebreakReplacement.create())){let l=r.split(/\r?\n|\r/);for(let a=0;a!a.clearMark(c)):t=t.concat(this.parser.schema.marks[a.mark].create(a.attrs)),a.consuming===!1)l=a;else break}}return t}addElementByRule(e,t,r,i){let s,o;if(t.node)if(o=this.parser.schema.nodes[t.node],o.isLeaf)this.insertNode(o.create(t.attrs),r,e.nodeName=="BR")||this.leafFallback(e,r);else{let a=this.enter(o,t.attrs||null,r,t.preserveWhitespace);a&&(s=!0,r=a)}else{let a=this.parser.schema.marks[t.mark];r=r.concat(a.create(t.attrs))}let l=this.top;if(o&&o.isLeaf)this.findInside(e);else if(i)this.addElement(e,r,i);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(a=>this.insertNode(a,r,!1));else{let a=e;typeof t.contentElement=="string"?a=e.querySelector(t.contentElement):typeof t.contentElement=="function"?a=t.contentElement(e):t.contentElement&&(a=t.contentElement),this.findAround(e,a,!0),this.addAll(a,r),this.findAround(e,a,!1)}s&&this.sync(l)&&this.open--}addAll(e,t,r,i){let s=r||0;for(let o=r?e.childNodes[r]:e.firstChild,l=i==null?null:e.childNodes[i];o!=l;o=o.nextSibling,++s)this.findAtPoint(e,s),this.addDOM(o,t);this.findAtPoint(e,s)}findPlace(e,t,r){let i,s;for(let o=this.open,l=0;o>=0;o--){let a=this.nodes[o],c=a.findWrapping(e);if(c&&(!i||i.length>c.length+l)&&(i=c,s=a,!c.length))break;if(a.solid){if(r)break;l+=2}}if(!i)return null;this.sync(s);for(let o=0;o(o.type?o.type.allowsMarkType(c.type):Us(c.type,e))?(a=c.addToSet(a),!1):!0),this.nodes.push(new In(e,t,a,i,null,l)),this.open++,r}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--){if(this.nodes[t]==e)return this.open=t,!0;this.localPreserveWS&&(this.nodes[t].options|=gn)}return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let r=this.nodes[t].content;for(let i=r.length-1;i>=0;i--)e+=r[i].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let r=0;r-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),r=this.options.context,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),s=-(r?r.depth+1:0)+(i?0:1),o=(l,a)=>{for(;l>=0;l--){let c=t[l];if(c==""){if(l==t.length-1||l==0)continue;for(;a>=s;a--)if(o(l-1,a))return!0;return!1}else{let u=a>0||a==0&&i?this.nodes[a].type:r&&a>=s?r.node(a-s).type:null;if(!u||u.name!=c&&!u.isInGroup(c))return!1;a--}}return!0};return o(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let r=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let t in this.parser.schema.nodes){let r=this.parser.schema.nodes[t];if(r.isTextblock&&r.defaultAttrs)return r}}}function Pu(n){for(let e=n.firstChild,t=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&zl.hasOwnProperty(r)&&t?(t.appendChild(e),e=t):r=="li"?t=e:r&&(t=null)}}function Bu(n,e){return(n.matches||n.msMatchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector).call(n,e)}function _s(n){let e={};for(let t in n)e[t]=n[t];return e}function Us(n,e){let t=e.schema.nodes;for(let r in t){let i=t[r];if(!i.allowsMarkType(n))continue;let s=[],o=l=>{s.push(l);for(let a=0;a{if(s.length||o.marks.length){let l=0,a=0;for(;l=0;i--){let s=this.serializeMark(e.marks[i],e.isInline,t);s&&((s.contentDOM||s.dom).appendChild(r),r=s.dom)}return r}serializeMark(e,t,r={}){let i=this.marks[e.type.name];return i&&Kn(Rn(r),i(e,t),null,e.attrs)}static renderSpec(e,t,r=null,i){return typeof t=="string"?{dom:e.createTextNode(t)}:Kn(e,t,r,i)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Ct(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=qs(e.nodes);return t.text||(t.text=r=>r.text),t}static marksFromSchema(e){return qs(e.marks)}}function qs(n){let e={};for(let t in n){let r=n[t].spec.toDOM;r&&(e[t]=r)}return e}function Rn(n){return n.document||window.document}const Js=new WeakMap;function zu(n){let e=Js.get(n);return e===void 0&&Js.set(n,e=$u(n)),e}function $u(n){let e=null;function t(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")e||(e=[]),e.push(r);else for(let i=0;i-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let o=i.indexOf(" ");o>0&&(t=i.slice(0,o),i=i.slice(o+1));let l,a=t?n.createElementNS(t,i):n.createElement(i),c=e[1],u=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){u=2;for(let d in c)if(c[d]!=null){let f=d.indexOf(" ");f>0?a.setAttributeNS(d.slice(0,f),d.slice(f+1),c[d]):d=="style"&&a.style?a.style.cssText=c[d]:a.setAttribute(d,c[d])}}for(let d=u;du)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}else if(typeof f=="string")a.appendChild(n.createTextNode(f));else{let{dom:h,contentDOM:p}=Kn(n,f,t,r);if(a.appendChild(h),p){if(l)throw new RangeError("Multiple content holes");l=p}}}return{dom:a,contentDOM:l}}const $l=65535,Fl=Math.pow(2,16);function Fu(n,e){return n+e*Fl}function Gs(n){return n&$l}function Vu(n){return(n-(n&$l))/Fl}const Vl=1,Hl=2,_n=4,jl=8;class vi{constructor(e,t,r){this.pos=e,this.delInfo=t,this.recover=r}get deleted(){return(this.delInfo&jl)>0}get deletedBefore(){return(this.delInfo&(Vl|_n))>0}get deletedAfter(){return(this.delInfo&(Hl|_n))>0}get deletedAcross(){return(this.delInfo&_n)>0}}class ue{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&ue.empty)return ue.empty}recover(e){let t=0,r=Gs(e);if(!this.inverted)for(let i=0;ie)break;let c=this.ranges[l+s],u=this.ranges[l+o],d=a+c;if(e<=d){let f=c?e==a?-1:e==d?1:t:t,h=a+i+(f<0?0:u);if(r)return h;let p=e==(t<0?a:d)?null:Fu(l/3,e-a),m=0;return c&&(m|=e==a?Hl:e==d?Vl:_n,(t<0?e!=a:e!=d)&&(m|=jl)),new vi(h,m,p)}i+=u-c}return r?e+i:new vi(e+i,0,null)}touches(e,t){let r=0,i=Gs(t),s=this.inverted?2:1,o=this.inverted?1:2;for(let l=0;le)break;let c=this.ranges[l+s],u=a+c;if(e<=u&&l==i*3)return!0;r+=this.ranges[l+o]-c}return!1}forEach(e){let t=this.inverted?2:1,r=this.inverted?1:2;for(let i=0,s=0;i=0;t--){let i=e.getMirror(t);this.appendMap(e._maps[t].invert(),i!=null&&i>t?r-i-1:void 0)}}invert(){let e=new yn;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let r=this.from;rs&&a!o.isAtom||!l.type.allowsMarkType(this.mark.type)?o:o.mark(this.mark.addToSet(o.marks)),i),t.openStart,t.openEnd);return K.fromReplace(e,this.from,this.to,s)}invert(){return new we(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new Je(t.pos,r.pos,this.mark)}merge(e){return e instanceof Je&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Je(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new Je(t.from,t.to,e.markFromJSON(t.mark))}}ie.jsonID("addMark",Je);class we extends ie{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=new w(ts(t.content,i=>i.mark(this.mark.removeFromSet(i.marks)),e),t.openStart,t.openEnd);return K.fromReplace(e,this.from,this.to,r)}invert(){return new Je(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new we(t.pos,r.pos,this.mark)}merge(e){return e instanceof we&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new we(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new we(t.from,t.to,e.markFromJSON(t.mark))}}ie.jsonID("removeMark",we);class Ge extends ie{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return K.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return K.fromReplace(e,this.pos,this.pos+1,new w(k.from(r),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let r=this.mark.addToSet(t.marks);if(r.length==t.marks.length){for(let i=0;ir.pos?null:new G(t.pos,r.pos,i,s,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number"||typeof t.gapFrom!="number"||typeof t.gapTo!="number"||typeof t.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new G(t.from,t.to,t.gapFrom,t.gapTo,w.fromJSON(e,t.slice),t.insert,!!t.structure)}}ie.jsonID("replaceAround",G);function Ai(n,e,t){let r=n.resolve(e),i=t-e,s=r.depth;for(;i>0&&s>0&&r.indexAfter(s)==r.node(s).childCount;)s--,i--;if(i>0){let o=r.node(s).maybeChild(r.indexAfter(s));for(;i>0;){if(!o||o.isLeaf)return!0;o=o.firstChild,i--}}return!1}function Hu(n,e,t,r){let i=[],s=[],o,l;n.doc.nodesBetween(e,t,(a,c,u)=>{if(!a.isInline)return;let d=a.marks;if(!r.isInSet(d)&&u.type.allowsMarkType(r.type)){let f=Math.max(c,e),h=Math.min(c+a.nodeSize,t),p=r.addToSet(d);for(let m=0;mn.step(a)),s.forEach(a=>n.step(a))}function ju(n,e,t,r){let i=[],s=0;n.doc.nodesBetween(e,t,(o,l)=>{if(!o.isInline)return;s++;let a=null;if(r instanceof Br){let c=o.marks,u;for(;u=r.isInSet(c);)(a||(a=[])).push(u),c=u.removeFromSet(c)}else r?r.isInSet(o.marks)&&(a=[r]):a=o.marks;if(a&&a.length){let c=Math.min(l+o.nodeSize,t);for(let u=0;un.step(new we(o.from,o.to,o.style)))}function ns(n,e,t,r=t.contentMatch,i=!0){let s=n.doc.nodeAt(e),o=[],l=e+1;for(let a=0;a=0;a--)n.step(o[a])}function Wu(n,e,t){return(e==0||n.canReplace(e,n.childCount))&&(t==n.childCount||n.canReplace(0,t))}function Kt(n){let t=n.parent.content.cutByIndex(n.startIndex,n.endIndex);for(let r=n.depth,i=0,s=0;;--r){let o=n.$from.node(r),l=n.$from.index(r)+i,a=n.$to.indexAfter(r)-s;if(rt;p--)m||r.index(p)>0?(m=!0,u=k.from(r.node(p).copy(u)),d++):a--;let f=k.empty,h=0;for(let p=s,m=!1;p>t;p--)m||i.after(p+1)=0;o--){if(r.size){let l=t[o].type.contentMatch.matchFragment(r);if(!l||!l.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=k.from(t[o].type.create(t[o].attrs,r))}let i=e.start,s=e.end;n.step(new G(i,s,i,s,new w(r,0,0),t.length,!0))}function Ju(n,e,t,r,i){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let s=n.steps.length;n.doc.nodesBetween(e,t,(o,l)=>{let a=typeof i=="function"?i(o):i;if(o.isTextblock&&!o.hasMarkup(r,a)&&Gu(n.doc,n.mapping.slice(s).map(l),r)){let c=null;if(r.schema.linebreakReplacement){let h=r.whitespace=="pre",p=!!r.contentMatch.matchType(r.schema.linebreakReplacement);h&&!p?c=!1:!h&&p&&(c=!0)}c===!1&&Kl(n,o,l,s),ns(n,n.mapping.slice(s).map(l,1),r,void 0,c===null);let u=n.mapping.slice(s),d=u.map(l,1),f=u.map(l+o.nodeSize,1);return n.step(new G(d,f,d+1,f-1,new w(k.from(r.create(a,null,o.marks)),0,0),1,!0)),c===!0&&Wl(n,o,l,s),!1}})}function Wl(n,e,t,r){e.forEach((i,s)=>{if(i.isText){let o,l=/\r?\n|\r/g;for(;o=l.exec(i.text);){let a=n.mapping.slice(r).map(t+1+s+o.index);n.replaceWith(a,a+1,e.type.schema.linebreakReplacement.create())}}})}function Kl(n,e,t,r){e.forEach((i,s)=>{if(i.type==i.type.schema.linebreakReplacement){let o=n.mapping.slice(r).map(t+1+s);n.replaceWith(o,o+1,e.type.schema.text(` diff --git a/modules/boardwalk/dist/assets/index-Bvfii4cZ.css b/modules/boardwalk/dist/assets/index-Bvfii4cZ.css deleted file mode 100644 index a8d6575b..00000000 --- a/modules/boardwalk/dist/assets/index-Bvfii4cZ.css +++ /dev/null @@ -1 +0,0 @@ -@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:"DM Sans", ui-sans-serif, system-ui, sans-serif;--font-mono:"DM Mono", ui-monospace, monospace;--color-white:#fff;--spacing:.25rem;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--leading-tight:1.25;--ease-out:cubic-bezier(0, 0, .2, 1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-bg:var(--c-bg);--color-surface:var(--c-surface);--color-subtle:var(--c-subtle);--color-border:var(--c-border);--color-border-strong:var(--c-border-strong);--color-text:var(--c-text);--color-muted:var(--c-muted);--color-placeholder:var(--c-placeholder);--color-primary:var(--c-primary);--color-on-primary:var(--c-on-primary);--color-danger:var(--c-danger);--color-danger-soft:var(--c-danger-soft);--color-ok-bg:var(--c-ok-bg);--color-ok-text:var(--c-ok-text);--color-hover:var(--c-hover);--color-sel:var(--c-sel);--color-skel:var(--c-skel);--color-overlay:var(--c-overlay);--color-side:var(--c-side);--color-side-border:var(--c-side-border);--color-accent:#fcd34d;--color-on-accent:#1b2540;--color-accent-soft:#fcd34d24;--color-side-text:#c3cbda;--color-side-hover:#ffffff14;--radius-control:10px;--radius-card:16px;--radius-modal:20px;--radius-inner:12px;--radius-tab:9px;--radius-checkbox:5px;--radius-pager:8px;--radius-pill:999px;--spacing-button:42px;--spacing-input:44px;--spacing-header:64px;--spacing-nav:40px;--spacing-row:54px;--spacing-row-head:44px;--spacing-pager:34px;--spacing-rail:96px;--spacing-panel:224px}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}html{font-family:var(--font-sans);color:var(--c-text);background:var(--c-bg);font-size:14px;line-height:1.5}body{min-height:100vh;margin:0}a:focus-visible,button:focus-visible,[role=button]:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--c-ring);outline-offset:2px}input:focus-visible,select:focus-visible,textarea:focus-visible{border-color:var(--c-primary);box-shadow:0 0 0 3px var(--c-ring);outline:none}input::placeholder,textarea::placeholder{color:var(--c-placeholder)}}@layer components{.bg-overlay[data-state=open]{animation:.2s ease-out summer-fade-in}[data-dialog-content][data-state=open],[role=alertdialog][data-state=open]{animation:.2s ease-out summer-dialog-in}.toast-enter-active{transition:opacity .2s ease-out,scale .2s ease-out}.toast-enter-from{opacity:0;scale:.98}.summer-partial{color:var(--c-text);overflow-wrap:anywhere;font-size:14px;line-height:1.5}.summer-partial :where(p,ul,ol){margin:0 0 8px}.summer-partial :where(p,ul,ol):last-child{margin-bottom:0}.summer-partial a{color:var(--c-text);text-decoration:underline}.summer-partial a:focus-visible{outline:3px solid var(--c-ring);outline-offset:2px}.summer-markdown{color:var(--c-text);overflow-wrap:anywhere;font-size:14px;line-height:1.6}.summer-markdown :where(h1,h2,h3,h4){color:var(--c-text);margin:0 0 8px;font-weight:600;line-height:1.3}.summer-markdown :where(h1){font-size:22px}.summer-markdown :where(h2){font-size:18px}.summer-markdown :where(h3){font-size:16px}.summer-markdown :where(h4){font-size:14px}.summer-markdown :where(p,ul,ol,blockquote,pre,table){margin:0 0 10px}.summer-markdown :where(h1,h2,h3,h4,p,ul,ol,blockquote,pre,table):last-child{margin-bottom:0}.summer-markdown :where(ul){padding-left:22px;list-style:outside}.summer-markdown :where(ol){padding-left:22px;list-style:decimal}.summer-markdown :where(code){font-family:var(--font-mono);background:var(--c-subtle);border-radius:4px;padding:1px 4px;font-size:13px}.summer-markdown :where(pre){font-family:var(--font-mono);background:var(--c-subtle);white-space:pre;border-radius:8px;padding:10px 12px;font-size:13px;overflow-x:auto}.summer-markdown :where(pre code){background:0 0;padding:0}.summer-markdown :where(blockquote){border-left:3px solid var(--c-border-strong);color:var(--c-muted);padding-left:12px}.summer-markdown :where(a){color:var(--c-text);text-decoration:underline}.summer-markdown :where(a):focus-visible{outline:3px solid var(--c-ring);outline-offset:2px}.summer-markdown :where(hr){border:0;border-top:1px solid var(--c-border);margin:12px 0}.summer-markdown :where(table){border-collapse:collapse}.summer-markdown :where(th,td){border:1px solid var(--c-border);text-align:left;padding:4px 8px}.summer-markdown :where(img){max-width:100%;height:auto}.summer-stats{background:var(--c-surface);border:1px solid var(--c-border);box-shadow:var(--c-shadow-card);border-radius:16px;flex-wrap:wrap;gap:8px 32px;margin:0;padding:16px 20px;display:flex}.summer-stat{flex-direction:column-reverse;gap:4px;min-width:0;display:flex}.summer-stat__label{color:var(--c-muted);overflow-wrap:anywhere;margin:0;font-size:13px;font-weight:400;line-height:1.5}.summer-stat__value{color:var(--c-text);font-variant-numeric:tabular-nums;margin:0;font-size:20px;font-weight:600;line-height:1.2}.summer-stat__note{color:var(--c-muted);margin-top:4px;font-size:13px;font-weight:400;line-height:1.5;display:block}.summer-table-wrap{max-width:100%;overflow-x:auto}.summer-table{border-collapse:collapse;width:100%;color:var(--c-text);font-size:14px;line-height:1.5}.summer-table th{height:var(--spacing-row-head);color:var(--c-muted);text-align:start;border-bottom:1px solid var(--c-border);white-space:nowrap;padding:0 14px;font-size:12px;font-weight:600}.summer-table td{vertical-align:top;border-bottom:1px solid var(--c-border);overflow-wrap:anywhere;padding:12px 14px}.summer-table :where(th,td):first-child{padding-inline-start:0}.summer-table :where(th,td):last-child{padding-inline-end:0}.summer-table__num{text-align:end;font-variant-numeric:tabular-nums;white-space:nowrap}.summer-table__sub{color:var(--c-muted);font-size:13px;display:block}.summer-table tfoot td{border-bottom:0;padding-top:16px;font-weight:600}.summer-callout{overflow-wrap:anywhere;border-radius:12px;flex-direction:column;gap:4px;margin:0;padding:14px 18px;font-size:14px;line-height:1.5;display:flex}.summer-partial .summer-callout:not(:last-child){margin-bottom:12px}.summer-callout--warning{background:var(--c-sel);color:var(--c-text)}.summer-callout--danger{background:var(--c-danger-soft);color:var(--c-danger)}.summer-callout__title{margin:0;font-weight:600}.summer-callout__text{margin:0;font-weight:400}.summer-diff{border:1px solid var(--c-border);background:var(--c-subtle);max-height:480px;font-family:var(--font-mono);white-space:pre;color:var(--c-text);border-radius:12px;margin:0;padding:12px 16px;font-size:13px;line-height:1.5;overflow:auto}.summer-diff__add,.summer-diff__del,.summer-diff__ctx{display:block}.summer-diff__add{background:var(--c-ok-bg);color:var(--c-ok-text)}.summer-diff__del{background:var(--c-danger-soft);color:var(--c-danger)}.summer-diff__ctx{color:var(--c-text)}}@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing) * 0)}.inset-x-0{inset-inline:calc(var(--spacing) * 0)}.inset-y-px{inset-block:1px}.top-0{top:calc(var(--spacing) * 0)}.top-1{top:calc(var(--spacing) * 1)}.top-1\/2{top:50%}.top-2{top:calc(var(--spacing) * 2)}.top-3{top:calc(var(--spacing) * 3)}.top-\[3px\]{top:3px}.top-full{top:100%}.right-0{right:calc(var(--spacing) * 0)}.right-1{right:calc(var(--spacing) * 1)}.right-1\.5{right:calc(var(--spacing) * 1.5)}.right-2{right:calc(var(--spacing) * 2)}.right-3\.5{right:calc(var(--spacing) * 3.5)}.right-4{right:calc(var(--spacing) * 4)}.right-px{right:1px}.bottom-0{bottom:calc(var(--spacing) * 0)}.bottom-\[88px\]{bottom:88px}.left-1\/2{left:50%}.left-2{left:calc(var(--spacing) * 2)}.left-3{left:calc(var(--spacing) * 3)}.left-3\.5{left:calc(var(--spacing) * 3.5)}.left-\[3px\]{left:3px}.left-\[calc\(var\(--spacing-rail\)\+8px\)\]{left:calc(var(--spacing-rail) + 8px)}.left-\[var\(--shell-offset\,0px\)\]{left:var(--shell-offset,0px)}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-\[80\]{z-index:80}.z-\[90\]{z-index:90}.col-span-4{grid-column:span 4/span 4}.col-span-full{grid-column:1/-1}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.m-0{margin:calc(var(--spacing) * 0)}.mx-1{margin-inline:calc(var(--spacing) * 1)}.my-1{margin-block:calc(var(--spacing) * 1)}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-px{margin-top:1px}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-1\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-3\.5{margin-bottom:calc(var(--spacing) * 3.5)}.mb-\[18px\]{margin-bottom:18px}.ml-1{margin-left:calc(var(--spacing) * 1)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-auto{margin-left:auto}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.aspect-square{aspect-ratio:1}.size-2\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-10\!{width:calc(var(--spacing) * 10)!important;height:calc(var(--spacing) * 10)!important}.size-14{width:calc(var(--spacing) * 14);height:calc(var(--spacing) * 14)}.size-16{width:calc(var(--spacing) * 16);height:calc(var(--spacing) * 16)}.size-20{width:calc(var(--spacing) * 20);height:calc(var(--spacing) * 20)}.size-40{width:calc(var(--spacing) * 40);height:calc(var(--spacing) * 40)}.size-\[18px\]{width:18px;height:18px}.size-\[20px\]{width:20px;height:20px}.size-\[22px\]{width:22px;height:22px}.size-\[26px\]{width:26px;height:26px}.size-\[30px\]{width:30px;height:30px}.size-\[34px\]{width:34px;height:34px}.size-\[96px\]{width:96px;height:96px}.size-full{width:100%;height:100%}.size-input{width:var(--spacing-input);height:var(--spacing-input)}.h-0\.5{height:calc(var(--spacing) * .5)}.h-1{height:calc(var(--spacing) * 1)}.h-3{height:calc(var(--spacing) * 3)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-12{height:calc(var(--spacing) * 12)}.h-\[26px\]{height:26px}.h-\[30px\]{height:30px}.h-\[34px\]{height:34px}.h-\[38px\]{height:38px}.h-\[42px\]{height:42px}.h-\[44px\]{height:44px}.h-\[54px\]{height:54px}.h-\[56px\]{height:56px}.h-\[68px\]{height:68px}.h-\[80px\]{height:80px}.h-\[112px\]{height:112px}.h-\[200px\]{height:200px}.h-\[640px\]{height:640px}.h-button{height:var(--spacing-button)}.h-full{height:100%}.h-header{height:var(--spacing-header)}.h-input{height:var(--spacing-input)}.h-nav{height:var(--spacing-nav)}.h-pager{height:var(--spacing-pager)}.h-px{height:1px}.h-row{height:var(--spacing-row)}.h-row-head{height:var(--spacing-row-head)}.h-screen{height:100vh}.max-h-64{max-height:calc(var(--spacing) * 64)}.max-h-\[480px\]{max-height:480px}.max-h-\[640px\]{max-height:640px}.max-h-\[calc\(100vh-32px\)\]{max-height:calc(100vh - 32px)}.min-h-0{min-height:calc(var(--spacing) * 0)}.min-h-10{min-height:calc(var(--spacing) * 10)}.min-h-12{min-height:calc(var(--spacing) * 12)}.min-h-14{min-height:calc(var(--spacing) * 14)}.min-h-\[30px\]{min-height:30px}.min-h-\[56px\]{min-height:56px}.min-h-\[112px\]{min-height:112px}.min-h-\[160px\]{min-height:160px}.min-h-input{min-height:var(--spacing-input)}.min-h-row{min-height:var(--spacing-row)}.min-h-screen{min-height:100vh}.w-1\/2{width:50%}.w-1\/3{width:33.3333%}.w-2\/3{width:66.6667%}.w-2\/5{width:40%}.w-3\/4{width:75%}.w-3\/5{width:60%}.w-9{width:calc(var(--spacing) * 9)}.w-24{width:calc(var(--spacing) * 24)}.w-40{width:calc(var(--spacing) * 40)}.w-48{width:calc(var(--spacing) * 48)}.w-64{width:calc(var(--spacing) * 64)}.w-\[44px\]{width:44px}.w-\[52px\]{width:52px}.w-\[56px\]{width:56px}.w-\[92px\]{width:92px}.w-\[160px\]{width:160px}.w-\[220px\]{width:220px}.w-\[230px\]{width:230px}.w-\[240px\]{width:240px}.w-\[280px\]{width:280px}.w-\[284px\]{width:284px}.w-\[320px\]{width:320px}.w-\[360px\]{width:360px}.w-\[calc\(100\%-32px\)\]{width:calc(100% - 32px)}.w-full{width:100%}.w-panel{width:var(--spacing-panel)}.w-px{width:1px}.w-rail{width:var(--spacing-rail)}.max-w-\[320px\]{max-width:320px}.max-w-\[400px\]{max-width:400px}.max-w-\[420px\]{max-width:420px}.max-w-\[440px\]{max-width:440px}.max-w-\[560px\]{max-width:560px}.max-w-\[640px\]{max-width:640px}.max-w-\[720px\]{max-width:720px}.max-w-full{max-width:100%}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-5{min-width:calc(var(--spacing) * 5)}.min-w-6{min-width:calc(var(--spacing) * 6)}.min-w-\[8rem\]{min-width:8rem}.min-w-\[52px\]{min-width:52px}.min-w-\[120px\]{min-width:120px}.min-w-\[480px\]{min-width:480px}.min-w-\[640px\]{min-width:640px}.min-w-pager{min-width:var(--spacing-pager)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.basis-full{flex-basis:100%}.border-collapse{border-collapse:collapse}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-0{--tw-translate-x:calc(var(--spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-x-\[18px\]{--tw-translate-x:18px;translate:var(--tw-translate-x) var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.rotate-180{rotate:180deg}.animate-spin{animation:var(--animate-spin)}.cursor-grab{cursor:grab}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize-y{resize:vertical}.list-none{list-style-type:none}.appearance-none{appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-\[repeat\(auto-fill\,minmax\(160px\,1fr\)\)\]{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-start\!{align-items:flex-start!important}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-3\.5{gap:calc(var(--spacing) * 3.5)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-7{gap:calc(var(--spacing) * 7)}.gap-\[18px\]{gap:18px}.gap-x-4{column-gap:calc(var(--spacing) * 4)}.gap-x-6{column-gap:calc(var(--spacing) * 6)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}.gap-y-3{row-gap:calc(var(--spacing) * 3)}.gap-y-\[22px\]{row-gap:22px}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-\[4px\]{border-radius:4px}.rounded-\[6px\]{border-radius:6px}.rounded-\[14px\]{border-radius:14px}.rounded-card{border-radius:var(--radius-card)}.rounded-checkbox{border-radius:var(--radius-checkbox)}.rounded-control{border-radius:var(--radius-control)}.rounded-full{border-radius:3.40282e38px}.rounded-inner{border-radius:var(--radius-inner)}.rounded-modal{border-radius:var(--radius-modal)}.rounded-pager{border-radius:var(--radius-pager)}.rounded-pill{border-radius:var(--radius-pill)}.rounded-tab{border-radius:var(--radius-tab)}.rounded-t-inner{border-top-left-radius:var(--radius-inner);border-top-right-radius:var(--radius-inner)}.rounded-r-control{border-top-right-radius:var(--radius-control);border-bottom-right-radius:var(--radius-control)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-\[1\.5px\]{border-style:var(--tw-border-style);border-width:1.5px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-solid{--tw-border-style:solid;border-style:solid}.border-\[\#c62828\]{border-color:#c62828}.border-\[\#d2d8e2\]{border-color:#d2d8e2}.border-\[\#e0b020\]{border-color:#e0b020}.border-border{border-color:var(--color-border)}.border-border-strong{border-color:var(--color-border-strong)}.border-danger{border-color:var(--color-danger)}.border-primary{border-color:var(--color-primary)}.border-side-border{border-color:var(--color-side-border)}.border-transparent{border-color:#0000}.bg-\[\#1d2740\]{background-color:#1d2740}.bg-\[\#22304d\]{background-color:#22304d}.bg-\[\#f58a8a\]{background-color:#f58a8a}.bg-\[\#fdf0f0\]{background-color:#fdf0f0}.bg-accent{background-color:var(--color-accent)}.bg-accent-soft{background-color:var(--color-accent-soft)}.bg-bg{background-color:var(--color-bg)}.bg-border{background-color:var(--color-border)}.bg-border-strong{background-color:var(--color-border-strong)}.bg-danger{background-color:var(--color-danger)}.bg-danger-soft{background-color:var(--color-danger-soft)}.bg-hover{background-color:var(--color-hover)}.bg-ok-bg{background-color:var(--color-ok-bg)}.bg-on-primary{background-color:var(--color-on-primary)}.bg-overlay{background-color:var(--color-overlay)}.bg-primary{background-color:var(--color-primary)}.bg-sel{background-color:var(--color-sel)}.bg-side{background-color:var(--color-side)}.bg-skel{background-color:var(--color-skel)}.bg-subtle{background-color:var(--color-subtle)}.bg-surface{background-color:var(--color-surface)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:calc(var(--spacing) * 0)}.p-1{padding:calc(var(--spacing) * 1)}.p-1\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-7{padding:calc(var(--spacing) * 7)}.p-8{padding:calc(var(--spacing) * 8)}.px-0\!{padding-inline:calc(var(--spacing) * 0)!important}.px-0\.5{padding-inline:calc(var(--spacing) * .5)}.px-1{padding-inline:calc(var(--spacing) * 1)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-8{padding-inline:calc(var(--spacing) * 8)}.px-\[18px\]{padding-inline:18px}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-3\.5{padding-block:calc(var(--spacing) * 3.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-7{padding-block:calc(var(--spacing) * 7)}.py-8{padding-block:calc(var(--spacing) * 8)}.py-20{padding-block:calc(var(--spacing) * 20)}.pt-1{padding-top:calc(var(--spacing) * 1)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-3\.5{padding-top:calc(var(--spacing) * 3.5)}.pr-1{padding-right:calc(var(--spacing) * 1)}.pr-1\.5{padding-right:calc(var(--spacing) * 1.5)}.pr-2\.5{padding-right:calc(var(--spacing) * 2.5)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-3\.5{padding-right:calc(var(--spacing) * 3.5)}.pr-4{padding-right:calc(var(--spacing) * 4)}.pr-5{padding-right:calc(var(--spacing) * 5)}.pr-6{padding-right:calc(var(--spacing) * 6)}.pr-10{padding-right:calc(var(--spacing) * 10)}.pr-12{padding-right:calc(var(--spacing) * 12)}.pr-16{padding-right:calc(var(--spacing) * 16)}.pb-1{padding-bottom:calc(var(--spacing) * 1)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-6{padding-bottom:calc(var(--spacing) * 6)}.pb-24{padding-bottom:calc(var(--spacing) * 24)}.pl-1{padding-left:calc(var(--spacing) * 1)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-2\.5{padding-left:calc(var(--spacing) * 2.5)}.pl-3\.5{padding-left:calc(var(--spacing) * 3.5)}.pl-5{padding-left:calc(var(--spacing) * 5)}.pl-8{padding-left:calc(var(--spacing) * 8)}.pl-9{padding-left:calc(var(--spacing) * 9)}.pl-10{padding-left:calc(var(--spacing) * 10)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.align-\[-2px\]{vertical-align:-2px}.align-top{vertical-align:top}.font-mono{font-family:var(--font-mono)}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.text-\[13px\]\!{font-size:13px!important}.text-\[14px\]{font-size:14px}.text-\[16px\]{font-size:16px}.text-\[17px\]{font-size:17px}.text-\[18px\]{font-size:18px}.text-\[20px\]{font-size:20px}.text-\[22px\]{font-size:22px}.text-\[24px\]{font-size:24px}.text-\[26px\]{font-size:26px}.leading-\[1\.2\]{--tw-leading:1.2;line-height:1.2}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\[-0\.01em\]{--tw-tracking:-.01em;letter-spacing:-.01em}.tracking-\[-0\.02em\]{--tw-tracking:-.02em;letter-spacing:-.02em}.tracking-\[0\.02em\]{--tw-tracking:.02em;letter-spacing:.02em}.\[overflow-wrap\:anywhere\]{overflow-wrap:anywhere}.break-words{overflow-wrap:break-word}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-\[\#1d2740\]{color:#1d2740}.text-\[\#141b2d\]{color:#141b2d}.text-\[\#c3cbda\]{color:#c3cbda}.text-\[\#c62828\]{color:#c62828}.text-accent{color:var(--color-accent)}.text-danger{color:var(--color-danger)}.text-muted{color:var(--color-muted)}.text-ok-text{color:var(--color-ok-text)}.text-on-accent{color:var(--color-on-accent)}.text-on-primary{color:var(--color-on-primary)}.text-primary{color:var(--color-primary)}.text-side-text{color:var(--color-side-text)}.text-text{color:var(--color-text)}.text-white{color:var(--color-white)}.lowercase{text-transform:lowercase}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.underline{text-decoration-line:underline}.accent-primary{accent-color:var(--color-primary)}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-card{--tw-shadow:var(--c-shadow-card);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-login{--tw-shadow:0 24px 60px var(--tw-shadow-color,#00000059);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-menu{--tw-shadow:0 16px 40px var(--tw-shadow-color,#141b2d29);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-pop{--tw-shadow:0 16px 40px var(--tw-shadow-color,#141b2d2e);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-tab{--tw-shadow:0 1px 3px var(--tw-shadow-color,#141b2d1f);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-toast{--tw-shadow:0 16px 40px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.outline-2{outline-style:var(--tw-outline-style);outline-width:2px}.-outline-offset-2{outline-offset:-2px}.outline-primary{outline-color:var(--color-primary)}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-dashed{--tw-outline-style:dashed;outline-style:dashed}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.first\:border-t-0:first-child{border-top-style:var(--tw-border-style);border-top-width:0}.first\:pl-5:first-child{padding-left:calc(var(--spacing) * 5)}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.last\:pr-5:last-child{padding-right:calc(var(--spacing) * 5)}.focus-within\:border-primary:focus-within{border-color:var(--color-primary)}.focus-within\:shadow-\[0_0_0_3px_var\(--c-ring\)\]:focus-within{--tw-shadow:0 0 0 3px var(--tw-shadow-color,var(--c-ring));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}@media(hover:hover){.hover\:bg-border:hover{background-color:var(--color-border)}.hover\:bg-danger-soft:hover{background-color:var(--color-danger-soft)}.hover\:bg-hover:hover{background-color:var(--color-hover)}.hover\:bg-side-hover:hover{background-color:var(--color-side-hover)}.hover\:text-danger:hover{color:var(--color-danger)}.hover\:text-text:hover{color:var(--color-text)}.hover\:text-white:hover{color:var(--color-white)}.hover\:opacity-90:hover{opacity:.9}}.focus\:border-primary:focus{border-color:var(--color-primary)}.focus\:bg-sel:focus{background-color:var(--color-sel)}.focus\:text-text:focus{color:var(--color-text)}.focus-visible\:shadow-none:focus-visible{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-60:disabled{opacity:.6}@media(hover:hover){.disabled\:hover\:text-muted:disabled:hover{color:var(--color-muted)}}.has-\[\[data-invalid\]\]\:border-danger:has([data-invalid]){border-color:var(--color-danger)}.aria-pressed\:bg-sel[aria-pressed=true]{background-color:var(--color-sel)}.aria-pressed\:text-text[aria-pressed=true]{color:var(--color-text)}.data-\[disabled\]\:cursor-not-allowed[data-disabled]{cursor:not-allowed}.data-\[disabled\]\:text-placeholder[data-disabled]{color:var(--color-placeholder)}.data-\[disabled\]\:opacity-40[data-disabled]{opacity:.4}@media(hover:hover){.data-\[disabled\]\:hover\:bg-transparent[data-disabled]:hover{background-color:#0000}}.data-\[highlighted\]\:bg-hover[data-highlighted]{background-color:var(--color-hover)}.data-\[outside-view\]\:text-placeholder[data-outside-view],.data-\[placeholder\]\:text-placeholder[data-placeholder]{color:var(--color-placeholder)}.focus\:data-\[placeholder\]\:text-text:focus[data-placeholder]{color:var(--color-text)}.data-\[selected\]\:bg-primary[data-selected]{background-color:var(--color-primary)}.data-\[selected\]\:font-semibold[data-selected]{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.data-\[selected\]\:text-on-primary[data-selected]{color:var(--color-on-primary)}.data-\[state\=active\]\:bg-surface[data-state=active]{background-color:var(--color-surface)}.data-\[state\=active\]\:text-text[data-state=active]{color:var(--color-text)}.data-\[state\=active\]\:shadow-tab[data-state=active]{--tw-shadow:0 1px 3px var(--tw-shadow-color,#141b2d1f);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.data-\[state\=checked\]\:border-primary[data-state=checked]{border-color:var(--color-primary)}.data-\[state\=checked\]\:bg-danger-soft[data-state=checked]{background-color:var(--color-danger-soft)}.data-\[state\=checked\]\:bg-ok-bg[data-state=checked]{background-color:var(--color-ok-bg)}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:var(--color-primary)}.data-\[state\=checked\]\:bg-surface[data-state=checked]{background-color:var(--color-surface)}.data-\[state\=checked\]\:text-\[14px\][data-state=checked]{font-size:14px}.data-\[state\=checked\]\:font-semibold[data-state=checked]{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.data-\[state\=checked\]\:text-danger[data-state=checked]{color:var(--color-danger)}.data-\[state\=checked\]\:text-ok-text[data-state=checked]{color:var(--color-ok-text)}.data-\[state\=checked\]\:text-on-primary[data-state=checked]{color:var(--color-on-primary)}.data-\[state\=checked\]\:text-text[data-state=checked]{color:var(--color-text)}.data-\[state\=checked\]\:shadow-tab[data-state=checked]{--tw-shadow:0 1px 3px var(--tw-shadow-color,#141b2d1f);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.data-\[today\]\:font-semibold[data-today]{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.data-\[today\]\:shadow-\[inset_0_0_0_1px_var\(--c-border-strong\)\][data-today]{--tw-shadow:inset 0 0 0 1px var(--tw-shadow-color,var(--c-border-strong));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.data-\[unavailable\]\:cursor-not-allowed[data-unavailable]{cursor:not-allowed}.data-\[unavailable\]\:opacity-40[data-unavailable]{opacity:.4}@media not all and (min-width:1099px){.max-\[1099px\]\:hidden{display:none}}@media not all and (min-width:40rem){.max-sm\:flex-col{flex-direction:column}.max-sm\:items-start{align-items:flex-start}.max-sm\:self-start{align-self:flex-start}}@media(min-width:600px){.min-\[600px\]\:col-start-1{grid-column-start:1}.min-\[600px\]\:col-start-2{grid-column-start:2}.min-\[600px\]\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(min-width:900px){.min-\[900px\]\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(min-width:1100px){.min-\[1100px\]\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(min-width:48rem){.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}}@font-face{font-family:DM Sans;font-style:normal;font-display:swap;font-weight:400;src:url(./dm-sans-latin-ext-400-normal-BtiwyxMk.woff2)format("woff2"),url(./dm-sans-latin-ext-400-normal-BjWJ59Pq.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:DM Sans;font-style:normal;font-display:swap;font-weight:400;src:url(./dm-sans-latin-400-normal-CW0RaeGs.woff2)format("woff2"),url(./dm-sans-latin-400-normal-BwCSEQnW.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:DM Sans;font-style:normal;font-display:swap;font-weight:500;src:url(./dm-sans-latin-ext-500-normal-BJfUCQsA.woff2)format("woff2"),url(./dm-sans-latin-ext-500-normal-DR84L5F-.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:DM Sans;font-style:normal;font-display:swap;font-weight:500;src:url(./dm-sans-latin-500-normal-B9HHJjqV.woff2)format("woff2"),url(./dm-sans-latin-500-normal-Dr3UlScf.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:DM Sans;font-style:normal;font-display:swap;font-weight:600;src:url(./dm-sans-latin-ext-600-normal-4vooXBpG.woff2)format("woff2"),url(./dm-sans-latin-ext-600-normal-DRtaDpgU.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:DM Sans;font-style:normal;font-display:swap;font-weight:600;src:url(./dm-sans-latin-600-normal-Aqo67rzb.woff2)format("woff2"),url(./dm-sans-latin-600-normal-BmdmIIQ2.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:DM Sans;font-style:normal;font-display:swap;font-weight:700;src:url(./dm-sans-latin-ext-700-normal-CJIcxD6K.woff2)format("woff2"),url(./dm-sans-latin-ext-700-normal-BLI3TTWz.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:DM Sans;font-style:normal;font-display:swap;font-weight:700;src:url(./dm-sans-latin-700-normal-DvUfVpUG.woff2)format("woff2"),url(./dm-sans-latin-700-normal-CUSSCpQX.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:DM Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./dm-mono-latin-ext-400-normal-C2zvOubV.woff2)format("woff2"),url(./dm-mono-latin-ext-400-normal-1aZr6b2b.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:DM Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./dm-mono-latin-400-normal-4GdczIuU.woff2)format("woff2"),url(./dm-mono-latin-400-normal--0xN8mdc.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:DM Mono;font-style:normal;font-display:swap;font-weight:500;src:url(./dm-mono-latin-ext-500-normal-BtRyHRi6.woff2)format("woff2"),url(./dm-mono-latin-ext-500-normal-Dw3M13d8.woff)format("woff");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:DM Mono;font-style:normal;font-display:swap;font-weight:500;src:url(./dm-mono-latin-500-normal-DRMDZjhP.woff2)format("woff2"),url(./dm-mono-latin-500-normal-CN8Miw6E.woff)format("woff");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--c-bg:#f4f6f9;--c-surface:#fff;--c-subtle:#f3f5f8;--c-border:#e6e9ef;--c-border-strong:#d2d8e2;--c-text:#141b2d;--c-muted:#566175;--c-placeholder:#6b7588;--c-primary:#22304d;--c-on-primary:#fff;--c-danger:#c62828;--c-danger-soft:#fdf0f0;--c-ok-bg:#e3f4e8;--c-ok-text:#1c6b35;--c-ring:#fcc4288c;--c-hover:#f1f3f7;--c-sel:#fdf3cf;--c-skel:#eceff4;--c-overlay:#141b2d80;--c-side:#1d2740;--c-side-border:transparent;--c-shadow-card:0 1px 2px #141b2d0a, 0 4px 16px #141b2d0d}.dark{color-scheme:dark;--c-bg:#111726;--c-surface:#182033;--c-subtle:#1f283d;--c-border:#29334b;--c-border-strong:#3a4661;--c-text:#eef1f6;--c-muted:#a9b3c6;--c-placeholder:#8a95ab;--c-primary:#fcd34d;--c-on-primary:#1b2540;--c-danger:#f58a8a;--c-danger-soft:#3a1d24;--c-ok-bg:#173826;--c-ok-text:#8fdfa8;--c-ring:#fcd34d73;--c-hover:#212b42;--c-sel:#3a3622;--c-skel:#263049;--c-overlay:#050810b3;--c-side:#0d1320;--c-side-border:#222b40;--c-shadow-card:none}@keyframes summer-fade-in{0%{opacity:0}}@keyframes summer-dialog-in{0%{opacity:0;scale:.98}}@media(prefers-reduced-motion:reduce){.bg-overlay,[data-dialog-content],[role=alertdialog]{animation:none!important}.toast-enter-active{transition:none}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}} diff --git a/modules/boardwalk/dist/assets/index-CHYC7L7j.js b/modules/boardwalk/dist/assets/index-CHYC7L7j.js new file mode 100644 index 00000000..15b58a95 --- /dev/null +++ b/modules/boardwalk/dist/assets/index-CHYC7L7j.js @@ -0,0 +1,12 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./editor-Ddqg0Ojw.js","./index-Vcq4gwWv.js"])))=>i.map(i=>d[i]); +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const l of r)if(l.type==="childList")for(const o of l.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function a(r){const l={};return r.integrity&&(l.integrity=r.integrity),r.referrerPolicy&&(l.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?l.credentials="include":r.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function n(r){if(r.ep)return;r.ep=!0;const l=a(r);fetch(r.href,l)}})();function Qd(e){const t=Object.create(null);for(const a of e.split(","))t[a]=1;return a=>a in t}const wt={},Nl=[],cn=()=>{},Jh=()=>!1,tu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),au=e=>e.startsWith("onUpdate:"),Ft=Object.assign,ef=(e,t)=>{const a=e.indexOf(t);a>-1&&e.splice(a,1)},A_=Object.prototype.hasOwnProperty,bt=(e,t)=>A_.call(e,t),Je=Array.isArray,Bl=e=>gs(e)==="[object Map]",nu=e=>gs(e)==="[object Set]",zp=e=>gs(e)==="[object Date]",at=e=>typeof e=="function",St=e=>typeof e=="string",$a=e=>typeof e=="symbol",yt=e=>e!==null&&typeof e=="object",Zh=e=>(yt(e)||at(e))&&at(e.then)&&at(e.catch),Xh=Object.prototype.toString,gs=e=>Xh.call(e),T_=e=>gs(e).slice(8,-1),Qh=e=>gs(e)==="[object Object]",ru=e=>St(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Bo=Qd(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),lu=e=>{const t=Object.create(null);return(a=>t[a]||(t[a]=e(a)))},D_=/-\w/g,Zt=lu(e=>e.replace(D_,t=>t.slice(1).toUpperCase())),O_=/\B([A-Z])/g,Ar=lu(e=>e.replace(O_,"-$1").toLowerCase()),ou=lu(e=>e.charAt(0).toUpperCase()+e.slice(1)),Fo=lu(e=>e?`on${ou(e)}`:""),ln=(e,t)=>!Object.is(e,t),di=(e,...t)=>{for(let a=0;a{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:a})},tf=e=>{const t=parseFloat(e);return isNaN(t)?e:t},M_=e=>{const t=St(e)?Number(e):NaN;return isNaN(t)?e:t};let jp;const su=()=>jp||(jp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ua(e){if(Je(e)){const t={};for(let a=0;a{if(a){const n=a.split(P_);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function ve(e){let t="";if(St(e))t=e;else if(Je(e))for(let a=0;abs(a,t))}const ny=e=>!!(e&&e.__v_isRef===!0),$=e=>St(e)?e:e==null?"":Je(e)||yt(e)&&(e.toString===Xh||!at(e.toString))?ny(e)?$(e.value):JSON.stringify(e,ry,2):String(e),ry=(e,t)=>ny(t)?ry(e,t.value):Bl(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((a,[n,r],l)=>(a[ec(n,l)+" =>"]=r,a),{})}:nu(t)?{[`Set(${t.size})`]:[...t.values()].map(a=>ec(a))}:$a(t)?ec(t):yt(t)&&!Je(t)&&!Qh(t)?String(t):t,ec=(e,t="")=>{var a;return $a(e)?`Symbol(${(a=e.description)!=null?a:t})`:e};let jt;class ly{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&jt&&(jt.active?(this.parent=jt,this.index=(jt.scopes||(jt.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,a;if(this.scopes)for(t=0,a=this.scopes.length;t0&&--this._on===0){if(jt===this)jt=this.prevScope;else{let t=jt;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let a,n;for(a=0,n=this.effects.length;a0)return;if(zo){let t=zo;for(zo=void 0;t;){const a=t.next;t.next=void 0,t.flags&=-9,t=a}}let e;for(;Vo;){let t=Vo;for(Vo=void 0;t;){const a=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=a}}if(e)throw e}function dy(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function fy(e){let t,a=e.depsTail,n=a;for(;n;){const r=n.prevDep;n.version===-1?(n===a&&(a=r),lf(n),F_(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=r}e.deps=t,e.depsTail=a}function rd(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(py(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function py(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Qo)||(e.globalVersion=Qo,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!rd(e))))return;e.flags|=2;const t=e.dep,a=$t,n=Ba;$t=e,Ba=!0;try{dy(e);const r=e.fn(e._value);(t.version===0||ln(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{$t=a,Ba=n,fy(e),e.flags&=-3}}function lf(e,t=!1){const{dep:a,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),a.subs===e&&(a.subs=n,!n&&a.computed)){a.computed.flags&=-5;for(let l=a.computed.deps;l;l=l.nextDep)lf(l,!0)}!t&&!--a.sc&&a.map&&a.map.delete(a.key)}function F_(e){const{prevDep:t,nextDep:a}=e;t&&(t.nextDep=a,e.prevDep=void 0),a&&(a.prevDep=t,e.nextDep=void 0)}let Ba=!0;const vy=[];function Rn(){vy.push(Ba),Ba=!1}function qn(){const e=vy.pop();Ba=e===void 0?!0:e}function Up(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const a=$t;$t=void 0;try{t()}finally{$t=a}}}let Qo=0,V_=class{constructor(t,a){this.sub=t,this.dep=a,this.version=a.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}};class iu{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!$t||!Ba||$t===this.computed)return;let a=this.activeLink;if(a===void 0||a.sub!==$t)a=this.activeLink=new V_($t,this),$t.deps?(a.prevDep=$t.depsTail,$t.depsTail.nextDep=a,$t.depsTail=a):$t.deps=$t.depsTail=a,my(a);else if(a.version===-1&&(a.version=this.version,a.nextDep)){const n=a.nextDep;n.prevDep=a.prevDep,a.prevDep&&(a.prevDep.nextDep=n),a.prevDep=$t.depsTail,a.nextDep=void 0,$t.depsTail.nextDep=a,$t.depsTail=a,$t.deps===a&&($t.deps=n)}return a}trigger(t){this.version++,Qo++,this.notify(t)}notify(t){nf();try{for(let a=this.subs;a;a=a.prevSub)a.sub.notify()&&a.sub.dep.notify()}finally{rf()}}}function my(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)my(n)}const a=e.dep.subs;a!==e&&(e.prevSub=a,a&&(a.nextSub=e)),e.dep.subs=e}}const bi=new WeakMap,tl=Symbol(""),ld=Symbol(""),es=Symbol("");function aa(e,t,a){if(Ba&&$t){let n=bi.get(e);n||bi.set(e,n=new Map);let r=n.get(a);r||(n.set(a,r=new iu),r.map=n,r.key=a),r.track()}}function Cn(e,t,a,n,r,l){const o=bi.get(e);if(!o){Qo++;return}const i=u=>{u&&u.trigger()};if(nf(),t==="clear")o.forEach(i);else{const u=Je(e),d=u&&ru(a);if(u&&a==="length"){const c=Number(n);o.forEach((f,m)=>{(m==="length"||m===es||!$a(m)&&m>=c)&&i(f)})}else switch((a!==void 0||o.has(void 0))&&i(o.get(a)),d&&i(o.get(es)),t){case"add":u?d&&i(o.get("length")):(i(o.get(tl)),Bl(e)&&i(o.get(ld)));break;case"delete":u||(i(o.get(tl)),Bl(e)&&i(o.get(ld)));break;case"set":Bl(e)&&i(o.get(tl));break}}rf()}function z_(e,t){const a=bi.get(e);return a&&a.get(t)}function xl(e){const t=pt(e);return t===e?t:(aa(t,"iterate",es),wa(e)?t:t.map(za))}function uu(e){return aa(e=pt(e),"iterate",es),e}function nn(e,t){return Ln(e)?Jl(al(e)?za(t):t):za(t)}const j_={__proto__:null,[Symbol.iterator](){return ac(this,Symbol.iterator,e=>nn(this,e))},concat(...e){return xl(this).concat(...e.map(t=>Je(t)?xl(t):t))},entries(){return ac(this,"entries",e=>(e[1]=nn(this,e[1]),e))},every(e,t){return xn(this,"every",e,t,void 0,arguments)},filter(e,t){return xn(this,"filter",e,t,a=>a.map(n=>nn(this,n)),arguments)},find(e,t){return xn(this,"find",e,t,a=>nn(this,a),arguments)},findIndex(e,t){return xn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return xn(this,"findLast",e,t,a=>nn(this,a),arguments)},findLastIndex(e,t){return xn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return xn(this,"forEach",e,t,void 0,arguments)},includes(...e){return nc(this,"includes",e)},indexOf(...e){return nc(this,"indexOf",e)},join(e){return xl(this).join(e)},lastIndexOf(...e){return nc(this,"lastIndexOf",e)},map(e,t){return xn(this,"map",e,t,void 0,arguments)},pop(){return yo(this,"pop")},push(...e){return yo(this,"push",e)},reduce(e,...t){return Hp(this,"reduce",e,t)},reduceRight(e,...t){return Hp(this,"reduceRight",e,t)},shift(){return yo(this,"shift")},some(e,t){return xn(this,"some",e,t,void 0,arguments)},splice(...e){return yo(this,"splice",e)},toReversed(){return xl(this).toReversed()},toSorted(e){return xl(this).toSorted(e)},toSpliced(...e){return xl(this).toSpliced(...e)},unshift(...e){return yo(this,"unshift",e)},values(){return ac(this,"values",e=>nn(this,e))}};function ac(e,t,a){const n=uu(e),r=n[t]();return n!==e&&!wa(e)&&(r._next=r.next,r.next=()=>{const l=r._next();return l.done||(l.value=a(l.value)),l}),r}const U_=Array.prototype;function xn(e,t,a,n,r,l){const o=uu(e),i=o!==e&&!wa(e),u=o[t];if(u!==U_[t]){const f=u.apply(e,l);return i?za(f):f}let d=a;o!==e&&(i?d=function(f,m){return a.call(this,nn(e,f),m,e)}:a.length>2&&(d=function(f,m){return a.call(this,f,m,e)}));const c=u.call(o,d,n);return i&&r?r(c):c}function Hp(e,t,a,n){const r=uu(e),l=r!==e&&!wa(e);let o=a,i=!1;r!==e&&(l?(i=n.length===0,o=function(d,c,f){return i&&(i=!1,d=nn(e,d)),a.call(this,d,nn(e,c),f,e)}):a.length>3&&(o=function(d,c,f){return a.call(this,d,c,f,e)}));const u=r[t](o,...n);return i?nn(e,u):u}function nc(e,t,a){const n=pt(e);aa(n,"iterate",es);const r=n[t](...a);return(r===-1||r===!1)&&fu(a[0])?(a[0]=pt(a[0]),n[t](...a)):r}function yo(e,t,a=[]){Rn(),nf();const n=pt(e)[t].apply(e,a);return rf(),qn(),n}const H_=Qd("__proto__,__v_isRef,__isVue"),hy=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter($a));function K_(e){$a(e)||(e=String(e));const t=pt(this);return aa(t,"has",e),t.hasOwnProperty(e)}class yy{constructor(t=!1,a=!1){this._isReadonly=t,this._isShallow=a}get(t,a,n){if(a==="__v_skip")return t.__v_skip;const r=this._isReadonly,l=this._isShallow;if(a==="__v_isReactive")return!r;if(a==="__v_isReadonly")return r;if(a==="__v_isShallow")return l;if(a==="__v_raw")return n===(r?l?wy:ky:l?xy:_y).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=Je(t);if(!r){let u;if(o&&(u=j_[a]))return u;if(a==="hasOwnProperty")return K_}const i=Reflect.get(t,a,Dt(t)?t:n);if(($a(a)?hy.has(a):H_(a))||(r||aa(t,"get",a),l))return i;if(Dt(i)){const u=o&&ru(a)?i:i.value;return r&&yt(u)?Ct(u):u}return yt(i)?r?Ct(i):Va(i):i}}class gy extends yy{constructor(t=!1){super(!1,t)}set(t,a,n,r){let l=t[a];const o=Je(t)&&ru(a);if(!this._isShallow){const d=Ln(l);if(!wa(n)&&!Ln(n)&&(l=pt(l),n=pt(n)),!o&&Dt(l)&&!Dt(n))return d||(l.value=n),!0}const i=o?Number(a)e,Fs=e=>Reflect.getPrototypeOf(e);function Z_(e,t,a){return function(...n){const r=this.__v_raw,l=pt(r),o=Bl(l),i=e==="entries"||e===Symbol.iterator&&o,u=e==="keys"&&o,d=r[e](...n),c=a?od:t?Jl:za;return!t&&aa(l,"iterate",u?ld:tl),Ft(Object.create(d),{next(){const{value:f,done:m}=d.next();return m?{value:f,done:m}:{value:i?[c(f[0]),c(f[1])]:c(f),done:m}}})}}function Vs(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function X_(e,t){const a={get(r){const l=this.__v_raw,o=pt(l),i=pt(r);e||(ln(r,i)&&aa(o,"get",r),aa(o,"get",i));const{has:u}=Fs(o),d=t?od:e?Jl:za;if(u.call(o,r))return d(l.get(r));if(u.call(o,i))return d(l.get(i));l!==o&&l.get(r)},get size(){const r=this.__v_raw;return!e&&aa(pt(r),"iterate",tl),r.size},has(r){const l=this.__v_raw,o=pt(l),i=pt(r);return e||(ln(r,i)&&aa(o,"has",r),aa(o,"has",i)),r===i?l.has(r):l.has(r)||l.has(i)},forEach(r,l){const o=this,i=o.__v_raw,u=pt(i),d=t?od:e?Jl:za;return!e&&aa(u,"iterate",tl),i.forEach((c,f)=>r.call(l,d(c),d(f),o))}};return Ft(a,e?{add:Vs("add"),set:Vs("set"),delete:Vs("delete"),clear:Vs("clear")}:{add(r){const l=pt(this),o=Fs(l),i=pt(r),u=!t&&!wa(r)&&!Ln(r)?i:r;return o.has.call(l,u)||ln(r,u)&&o.has.call(l,r)||ln(i,u)&&o.has.call(l,i)||(l.add(u),Cn(l,"add",u,u)),this},set(r,l){!t&&!wa(l)&&!Ln(l)&&(l=pt(l));const o=pt(this),{has:i,get:u}=Fs(o);let d=i.call(o,r);d||(r=pt(r),d=i.call(o,r));const c=u.call(o,r);return o.set(r,l),d?ln(l,c)&&Cn(o,"set",r,l):Cn(o,"add",r,l),this},delete(r){const l=pt(this),{has:o,get:i}=Fs(l);let u=o.call(l,r);u||(r=pt(r),u=o.call(l,r)),i&&i.call(l,r);const d=l.delete(r);return u&&Cn(l,"delete",r,void 0),d},clear(){const r=pt(this),l=r.size!==0,o=r.clear();return l&&Cn(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{a[r]=Z_(r,e,t)}),a}function cu(e,t){const a=X_(e,t);return(n,r,l)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?n:Reflect.get(bt(a,r)&&r in n?a:n,r,l)}const Q_={get:cu(!1,!1)},ex={get:cu(!1,!0)},tx={get:cu(!0,!1)},ax={get:cu(!0,!0)},_y=new WeakMap,xy=new WeakMap,ky=new WeakMap,wy=new WeakMap;function nx(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Va(e){return Ln(e)?e:du(e,!1,W_,Q_,_y)}function $y(e){return du(e,!1,Y_,ex,xy)}function Ct(e){return du(e,!0,G_,tx,ky)}function kl(e){return du(e,!0,J_,ax,wy)}function du(e,t,a,n,r){if(!yt(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const l=r.get(e);if(l)return l;const o=nx(T_(e));if(o===0)return e;const i=new Proxy(e,o===2?n:a);return r.set(e,i),i}function al(e){return Ln(e)?al(e.__v_raw):!!(e&&e.__v_isReactive)}function Ln(e){return!!(e&&e.__v_isReadonly)}function wa(e){return!!(e&&e.__v_isShallow)}function fu(e){return e?!!e.__v_raw:!1}function pt(e){const t=e&&e.__v_raw;return t?pt(t):e}function _i(e){return!bt(e,"__v_skip")&&Object.isExtensible(e)&&ey(e,"__v_skip",!0),e}const za=e=>yt(e)?Va(e):e,Jl=e=>yt(e)?Ct(e):e;function Dt(e){return e?e.__v_isRef===!0:!1}function A(e){return Cy(e,!1)}function ul(e){return Cy(e,!0)}function Cy(e,t){return Dt(e)?e:new rx(e,t)}class rx{constructor(t,a){this.dep=new iu,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=a?t:pt(t),this._value=a?t:za(t),this.__v_isShallow=a}get value(){return this.dep.track(),this._value}set value(t){const a=this._rawValue,n=this.__v_isShallow||wa(t)||Ln(t);t=n?t:pt(t),ln(t,a)&&(this._rawValue=t,this._value=n?t:za(t),this.dep.trigger())}}function lx(e){e.dep&&e.dep.trigger()}function s(e){return Dt(e)?e.value:e}function ca(e){return at(e)?e():s(e)}const ox={get:(e,t,a)=>t==="__v_raw"?e:s(Reflect.get(e,t,a)),set:(e,t,a,n)=>{const r=e[t];return Dt(r)&&!Dt(a)?(r.value=a,!0):Reflect.set(e,t,a,n)}};function Sy(e){return al(e)?e:new Proxy(e,ox)}class sx{constructor(t){this.__v_isRef=!0,this._value=void 0;const a=this.dep=new iu,{get:n,set:r}=t(a.track.bind(a),a.trigger.bind(a));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(t){this._set(t)}}function ix(e){return new sx(e)}function Ht(e){const t=Je(e)?new Array(e.length):{};for(const a in e)t[a]=Ey(e,a);return t}class ux{constructor(t,a,n){this._object=t,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=$a(a)?a:String(a),this._raw=pt(t);let r=!0,l=t;if(!Je(t)||$a(this._key)||!ru(this._key))do r=!fu(l)||wa(l);while(r&&(l=l.__v_raw));this._shallow=r}get value(){let t=this._object[this._key];return this._shallow&&(t=s(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Dt(this._raw[this._key])){const a=this._object[this._key];if(Dt(a)){a.value=t;return}}this._object[this._key]=t}get dep(){return z_(this._raw,this._key)}}class cx{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function dx(e,t,a){return Dt(e)?e:at(e)?new cx(e):yt(e)&&arguments.length>1?Ey(e,t,a):A(e)}function Ey(e,t,a){return new ux(e,t,a)}class fx{constructor(t,a,n){this.fn=t,this.setter=a,this._value=void 0,this.dep=new iu(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Qo-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!a,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&$t!==this)return cy(this,!0),!0}get value(){const t=this.dep.track();return py(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function px(e,t,a=!1){let n,r;return at(e)?n=e:(n=e.get,r=e.set),new fx(n,r,a)}const zs={},xi=new WeakMap;let Wr;function vx(e,t=!1,a=Wr){if(a){let n=xi.get(a);n||xi.set(a,n=[]),n.push(e)}}function mx(e,t,a=wt){const{immediate:n,deep:r,once:l,scheduler:o,augmentJob:i,call:u}=a,d=O=>r?O:wa(O)||r===!1||r===0?Sn(O,1):Sn(O);let c,f,m,v,y=!1,x=!1;if(Dt(e)?(f=()=>e.value,y=wa(e)):al(e)?(f=()=>d(e),y=!0):Je(e)?(x=!0,y=e.some(O=>al(O)||wa(O)),f=()=>e.map(O=>{if(Dt(O))return O.value;if(al(O))return d(O);if(at(O))return u?u(O,2):O()})):at(e)?t?f=u?()=>u(e,2):e:f=()=>{if(m){Rn();try{m()}finally{qn()}}const O=Wr;Wr=c;try{return u?u(e,3,[v]):e(v)}finally{Wr=O}}:f=cn,t&&r){const O=f,T=r===!0?1/0:r;f=()=>Sn(O(),T)}const C=af(),k=()=>{c.stop(),C&&C.active&&ef(C.effects,c)};if(l&&t){const O=t;t=(...T)=>{O(...T),k()}}let E=x?new Array(e.length).fill(zs):zs;const B=O=>{if(!(!(c.flags&1)||!c.dirty&&!O))if(t){const T=c.run();if(r||y||(x?T.some((P,R)=>ln(P,E[R])):ln(T,E))){m&&m();const P=Wr;Wr=c;try{const R=[T,E===zs?void 0:x&&E[0]===zs?[]:E,v];E=T,u?u(t,3,R):t(...R)}finally{Wr=P}}}else c.run()};return i&&i(B),c=new iy(f),c.scheduler=o?()=>o(B,!1):B,v=O=>vx(O,!1,c),m=c.onStop=()=>{const O=xi.get(c);if(O){if(u)u(O,4);else for(const T of O)T();xi.delete(c)}},t?n?B(!0):E=c.run():o?o(B.bind(null,!0),!0):c.run(),k.pause=c.pause.bind(c),k.resume=c.resume.bind(c),k.stop=k,k}function Sn(e,t=1/0,a){if(t<=0||!yt(e)||e.__v_skip||(a=a||new Map,(a.get(e)||0)>=t))return e;if(a.set(e,t),t--,Dt(e))Sn(e.value,t,a);else if(Je(e))for(let n=0;n{Sn(n,t,a)});else if(Qh(e)){for(const n in e)Sn(e[n],t,a);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&Sn(e[n],t,a)}return e}function _s(e,t,a,n){try{return n?e(...n):e()}catch(r){pu(r,t,a)}}function Ia(e,t,a,n){if(at(e)){const r=_s(e,t,a,n);return r&&Zh(r)&&r.catch(l=>{pu(l,t,a)}),r}if(Je(e)){const r=[];for(let l=0;l>>1,r=ia[n],l=ts(r);l=ts(a)?ia.push(e):ia.splice(yx(t),0,e),e.flags|=1,Ty()}}function Ty(){ki||(ki=Ay.then(Oy))}function gx(e){Je(e)?Fl.push(...e):or&&e.id===-1?or.splice(Tl+1,0,e):e.flags&1||(Fl.push(e),e.flags|=1),Ty()}function Kp(e,t,a=tn+1){for(;ats(a)-ts(n));if(Fl.length=0,or){or.push(...t);return}for(or=t,Tl=0;Tle.id==null?e.flags&2?-1:1/0:e.id;function Oy(e){try{for(tn=0;tn{n._d&&Si(-1);const l=wi(t);let o;try{o=e(...r)}finally{wi(l),n._d&&Si(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function Pa(e,t){if(Jt===null)return e;const a=gu(Jt),n=e.dirs||(e.dirs=[]);for(let r=0;r1)return a&&at(t)?t.call(n&&n.proxy):t}}const bx=Symbol.for("v-scx"),_x=()=>it(bx);function Ca(e,t){return vu(e,null,t)}function Iy(e,t){return vu(e,null,{flush:"post"})}function Ne(e,t,a){return vu(e,t,a)}function vu(e,t,a=wt){const{immediate:n,deep:r,flush:l,once:o}=a,i=Ft({},a),u=t&&n||!t&&l!=="post";let d;if(ls){if(l==="sync"){const v=_x();d=v.__watcherHandles||(v.__watcherHandles=[])}else if(!u){const v=()=>{};return v.stop=cn,v.resume=cn,v.pause=cn,v}}const c=na;i.call=(v,y,x)=>Ia(v,c,y,x);let f=!1;l==="post"?i.scheduler=v=>{sa(v,c&&c.suspense)}:l!=="sync"&&(f=!0,i.scheduler=(v,y)=>{y?v():of(v)}),i.augmentJob=v=>{t&&(v.flags|=4),f&&(v.flags|=2,c&&(v.id=c.uid,v.i=c))};const m=mx(e,t,i);return ls&&(d?d.push(m):u&&m()),m}function xx(e,t,a){const n=this.proxy,r=St(e)?e.includes(".")?Py(n,e):()=>n[e]:e.bind(n,n);let l;at(t)?l=t:(l=t.handler,a=t);const o=xs(this),i=vu(r,l.bind(n),a);return o(),i}function Py(e,t){const a=t.split(".");return()=>{let n=e;for(let r=0;re.__isTeleport,Jr=e=>e&&(e.disabled||e.disabled===""),wx=e=>e&&(e.defer||e.defer===""),Wp=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Gp=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,sd=(e,t)=>{const a=e&&e.to;return St(a)?t?t(a):null:a},$x={name:"Teleport",__isTeleport:!0,process(e,t,a,n,r,l,o,i,u,d){const{mc:c,pc:f,pbc:m,o:{insert:v,querySelector:y,createText:x,createComment:C,parentNode:k}}=d,E=Jr(t.props);let{dynamicChildren:B}=t;const O=(R,U,S)=>{R.shapeFlag&16&&c(R.children,U,S,r,l,o,i,u)},T=(R=t)=>{const U=Jr(R.props),S=R.target=sd(R.props,y),I=id(S,R,x,v);S&&(o!=="svg"&&Wp(S)?o="svg":o!=="mathml"&&Gp(S)&&(o="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add(S),U||(O(R,S,I),Io(R,!1)))},P=R=>{const U=()=>{if(nr.get(R)===U){if(nr.delete(R),Jr(R.props)){const S=k(R.el)||a;O(R,S,R.anchor),Io(R,!0)}T(R)}};nr.set(R,U),sa(U,l)};if(e==null){const R=t.el=x(""),U=t.anchor=x("");if(v(R,a,n),v(U,a,n),wx(t.props)||l&&l.pendingBranch){P(t);return}E&&(O(t,a,U),Io(t,!0)),T()}else{t.el=e.el;const R=t.anchor=e.anchor,U=nr.get(e);if(U){U.flags|=8,nr.delete(e),P(t);return}t.targetStart=e.targetStart;const S=t.target=e.target,I=t.targetAnchor=e.targetAnchor,z=Jr(e.props),D=z?a:S,N=z?R:I;if(o==="svg"||Wp(S)?o="svg":(o==="mathml"||Gp(S))&&(o="mathml"),B?(m(e.dynamicChildren,B,D,r,l,o,i),df(e,t,!0)):u||f(e,t,D,N,r,l,o,i,!1),E)z?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):js(t,a,R,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const Z=t.target=sd(t.props,y);Z&&js(t,Z,null,d,0)}else z&&js(t,S,I,d,1);Io(t,E)}},remove(e,t,a,{um:n,o:{remove:r}},l){const{shapeFlag:o,children:i,anchor:u,targetStart:d,targetAnchor:c,target:f,props:m}=e,v=l||!Jr(m),y=nr.get(e);if(y&&(y.flags|=8,nr.delete(e)),f&&(r(d),r(c)),l&&r(u),!y&&o&16)for(let x=0;x{e.isMounted=!0}),Et(()=>{e.isUnmounting=!0}),e}const Ea=[Function,Array],Ax={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ea,onEnter:Ea,onAfterEnter:Ea,onEnterCancelled:Ea,onBeforeLeave:Ea,onLeave:Ea,onAfterLeave:Ea,onLeaveCancelled:Ea,onBeforeAppear:Ea,onAppear:Ea,onAfterAppear:Ea,onAppearCancelled:Ea};function Tx(e,t){const{leavingVNodes:a}=e;let n=a.get(t.type);return n||(n=Object.create(null),a.set(t.type,n)),n}function ud(e,t,a,n,r){const{appear:l,mode:o,persisted:i=!1,onBeforeEnter:u,onEnter:d,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:m,onLeave:v,onAfterLeave:y,onLeaveCancelled:x,onBeforeAppear:C,onAppear:k,onAfterAppear:E,onAppearCancelled:B}=t,O=String(e.key),T=Tx(a,e),P=(S,I)=>{S&&Ia(S,n,9,I)},R=(S,I)=>{const z=I[1];P(S,I),Je(S)?S.every(D=>D.length<=1)&&z():S.length<=1&&z()},U={mode:o,persisted:i,beforeEnter(S){let I=u;if(!a.isMounted)if(l)I=C||u;else return;S[an]&&S[an](!0);const z=T[O];z&&Dl(e,z)&&z.el[an]&&z.el[an](),P(I,[S])},enter(S){if(T[O]===e)return;let I=d,z=c,D=f;if(!a.isMounted)if(l)I=k||d,z=E||c,D=B||f;else return;let N=!1;S[go]=W=>{N||(N=!0,W?P(D,[S]):P(z,[S]),U.delayedLeave&&U.delayedLeave(),S[go]=void 0)};const Z=S[go].bind(null,!1);I?R(I,[S,Z]):Z()},leave(S,I){const z=String(e.key);if(S[go]&&S[go](!0),a.isUnmounting)return I();P(m,[S]);let D=!1;S[an]=Z=>{D||(D=!0,I(),Z?P(x,[S]):P(y,[S]),S[an]=void 0,T[z]===e&&delete T[z])};const N=S[an].bind(null,!1);T[z]=e,v?R(v,[S,N]):N()},clone(S){return ud(S,t,a,n)}};return U}function as(e,t){e.shapeFlag&6&&e.component?(e.transition=t,as(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function qy(e,t=!1,a){let n=[],r=0;for(let l=0;l1)for(let l=0;ljo(x,t&&(Je(t)?t[C]:t),a,n,r));return}if(Vl(n)&&!r){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&jo(e,t,a,n.component.subTree);return}const l=n.shapeFlag&4?gu(n.component):n.el,o=r?null:l,{i,r:u}=e,d=t&&t.r,c=i.refs===wt?i.refs={}:i.refs,f=i.setupState,m=pt(f),v=f===wt?Jh:x=>Yp(c,x)?!1:bt(m,x),y=(x,C)=>!(C&&Yp(c,C));if(d!=null&&d!==u){if(Jp(t),St(d))c[d]=null,v(d)&&(f[d]=null);else if(Dt(d)){const x=t;y(d,x.k)&&(d.value=null),x.k&&(c[x.k]=null)}}if(at(u))_s(u,i,12,[o,c]);else{const x=St(u),C=Dt(u);if(x||C){const k=()=>{if(e.f){const E=x?v(u)?f[u]:c[u]:y()||!e.k?u.value:c[e.k];if(r)Je(E)&&ef(E,l);else if(Je(E))E.includes(l)||E.push(l);else if(x)c[u]=[l],v(u)&&(f[u]=c[u]);else{const B=[l];y(u,e.k)&&(u.value=B),e.k&&(c[e.k]=B)}}else x?(c[u]=o,v(u)&&(f[u]=o)):C&&(y(u,e.k)&&(u.value=o),e.k&&(c[e.k]=o))};if(o){const E=()=>{k(),$i.delete(e)};E.id=-1,$i.set(e,E),sa(E,a)}else Jp(e),k()}}}function Jp(e){const t=$i.get(e);t&&(t.flags|=8,$i.delete(e))}su().requestIdleCallback;su().cancelIdleCallback;const Vl=e=>!!e.type.__asyncLoader,By=e=>e.type.__isKeepAlive;function Fy(e,t){zy(e,"a",t)}function Vy(e,t){zy(e,"da",t)}function zy(e,t,a=na){const n=e.__wdc||(e.__wdc=()=>{let r=a;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(mu(t,n,a),a){let r=a.parent;for(;r&&r.parent;)By(r.parent.vnode)&&Dx(n,t,a,r),r=r.parent}}function Dx(e,t,a,n){const r=mu(t,e,n,!0);jn(()=>{ef(n[t],r)},a)}function mu(e,t,a=na,n=!1){if(a){const r=a[e]||(a[e]=[]),l=t.__weh||(t.__weh=(...o)=>{Rn();const i=xs(a),u=Ia(t,a,e,o);return i(),qn(),u});return n?r.unshift(l):r.push(l),l}}const zn=e=>(t,a=na)=>{(!ls||e==="sp")&&mu(e,(...n)=>t(...n),a)},jy=zn("bm"),xt=zn("m"),Ox=zn("bu"),sf=zn("u"),Et=zn("bum"),jn=zn("um"),Mx=zn("sp"),Ix=zn("rtg"),Px=zn("rtc");function Rx(e,t=na){mu("ec",e,t)}const Uy="components";function qx(e,t){return Ky(Uy,e,!0,t)||e}const Hy=Symbol.for("v-ndc");function Kt(e){return St(e)?Ky(Uy,e,!1)||e:e||Hy}function Ky(e,t,a=!0,n=!1){const r=Jt||na;if(r){const l=r.type;{const i=gk(l,!1);if(i&&(i===t||i===Zt(t)||i===ou(Zt(t))))return l}const o=Zp(r[e]||l[e],t)||Zp(r.appContext[e],t);return!o&&n?l:o}}function Zp(e,t){return e&&(e[t]||e[Zt(t)]||e[ou(Zt(t))])}function Me(e,t,a,n){let r;const l=a,o=Je(e);if(o||St(e)){const i=o&&al(e);let u=!1,d=!1;i&&(u=!wa(e),d=Ln(e),e=uu(e)),r=new Array(e.length);for(let c=0,f=e.length;ct(i,u,void 0,l));else{const i=Object.keys(e);r=new Array(i.length);for(let u=0,d=i.length;u0;return t!=="default"&&(a.name=t),p(),j(me,null,[L("slot",a,n&&n())],d?-2:64)}let l=e[t];l&&l._c&&(l._d=!1),p();const o=l&&Wy(l(a)),i=a.key||o&&o.key,u=j(me,{key:(i&&!$a(i)?i:`_${t}`)+(!o&&n?"_fb":"")},o||(n?n():[]),o&&e._===1?64:-2);return u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),l&&l._c&&(l._d=!0),u}function Wy(e){return e.some(t=>rs(t)?!(t.type===ja||t.type===me&&!Wy(t.children)):!0)?e:null}function Gy(e,t){const a={};for(const n in e)a[Fo(n)]=e[n];return a}const cd=e=>e?vg(e)?gu(e):cd(e.parent):null,Uo=Ft(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=>cd(e.parent),$root:e=>cd(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Zy(e),$forceUpdate:e=>e.f||(e.f=()=>{of(e.update)}),$nextTick:e=>e.n||(e.n=He.bind(e.proxy)),$watch:e=>xx.bind(e)}),rc=(e,t)=>e!==wt&&!e.__isScriptSetup&&bt(e,t),Lx={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:a,setupState:n,data:r,props:l,accessCache:o,type:i,appContext:u}=e;if(t[0]!=="$"){const m=o[t];if(m!==void 0)switch(m){case 1:return n[t];case 2:return r[t];case 4:return a[t];case 3:return l[t]}else{if(rc(n,t))return o[t]=1,n[t];if(r!==wt&&bt(r,t))return o[t]=2,r[t];if(bt(l,t))return o[t]=3,l[t];if(a!==wt&&bt(a,t))return o[t]=4,a[t];fd&&(o[t]=0)}}const d=Uo[t];let c,f;if(d)return t==="$attrs"&&aa(e.attrs,"get",""),d(e);if((c=i.__cssModules)&&(c=c[t]))return c;if(a!==wt&&bt(a,t))return o[t]=4,a[t];if(f=u.config.globalProperties,bt(f,t))return f[t]},set({_:e},t,a){const{data:n,setupState:r,ctx:l}=e;return rc(r,t)?(r[t]=a,!0):n!==wt&&bt(n,t)?(n[t]=a,!0):bt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(l[t]=a,!0)},has({_:{data:e,setupState:t,accessCache:a,ctx:n,appContext:r,props:l,type:o}},i){let u;return!!(a[i]||e!==wt&&i[0]!=="$"&&bt(e,i)||rc(t,i)||bt(l,i)||bt(n,i)||bt(Uo,i)||bt(r.config.globalProperties,i)||(u=o.__cssModules)&&u[i])},defineProperty(e,t,a){return a.get!=null?e._.accessCache[t]=0:bt(a,"value")&&this.set(e,t,a.value,null),Reflect.defineProperty(e,t,a)}};function dd(e){return Je(e)?e.reduce((t,a)=>(t[a]=null,t),{}):e}function Yy(e,t){const a=dd(e);for(const n in t){if(n.startsWith("__skip"))continue;let r=a[n];r?Je(r)||at(r)?r=a[n]={type:r,default:t[n]}:r.default=t[n]:r===null&&(r=a[n]={default:t[n]}),r&&t[`__skip_${n}`]&&(r.skipFactory=!0)}return a}let fd=!0;function Nx(e){const t=Zy(e),a=e.proxy,n=e.ctx;fd=!1,t.beforeCreate&&Xp(t.beforeCreate,e,"bc");const{data:r,computed:l,methods:o,watch:i,provide:u,inject:d,created:c,beforeMount:f,mounted:m,beforeUpdate:v,updated:y,activated:x,deactivated:C,beforeDestroy:k,beforeUnmount:E,destroyed:B,unmounted:O,render:T,renderTracked:P,renderTriggered:R,errorCaptured:U,serverPrefetch:S,expose:I,inheritAttrs:z,components:D,directives:N,filters:Z}=t;if(d&&Bx(d,n,null),o)for(const ne in o){const oe=o[ne];at(oe)&&(n[ne]=oe.bind(a))}if(r){const ne=r.call(a,a);yt(ne)&&(e.data=Va(ne))}if(fd=!0,l)for(const ne in l){const oe=l[ne],se=at(oe)?oe.bind(a,a):at(oe.get)?oe.get.bind(a,a):cn,de=!at(oe)&&at(oe.set)?oe.set.bind(a):cn,ue=_({get:se,set:de});Object.defineProperty(n,ne,{enumerable:!0,configurable:!0,get:()=>ue.value,set:te=>ue.value=te})}if(i)for(const ne in i)Jy(i[ne],n,a,ne);if(u){const ne=at(u)?u.call(a):u;Reflect.ownKeys(ne).forEach(oe=>{vt(oe,ne[oe])})}c&&Xp(c,e,"c");function K(ne,oe){Je(oe)?oe.forEach(se=>ne(se.bind(a))):oe&&ne(oe.bind(a))}if(K(jy,f),K(xt,m),K(Ox,v),K(sf,y),K(Fy,x),K(Vy,C),K(Rx,U),K(Px,P),K(Ix,R),K(Et,E),K(jn,O),K(Mx,S),Je(I))if(I.length){const ne=e.exposed||(e.exposed={});I.forEach(oe=>{Object.defineProperty(ne,oe,{get:()=>a[oe],set:se=>a[oe]=se,enumerable:!0})})}else e.exposed||(e.exposed={});T&&e.render===cn&&(e.render=T),z!=null&&(e.inheritAttrs=z),D&&(e.components=D),N&&(e.directives=N),S&&Ny(e)}function Bx(e,t,a=cn){Je(e)&&(e=pd(e));for(const n in e){const r=e[n];let l;yt(r)?"default"in r?l=it(r.from||n,r.default,!0):l=it(r.from||n):l=it(r),Dt(l)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>l.value,set:o=>l.value=o}):t[n]=l}}function Xp(e,t,a){Ia(Je(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,a)}function Jy(e,t,a,n){let r=n.includes(".")?Py(a,n):()=>a[n];if(St(e)){const l=t[e];at(l)&&Ne(r,l)}else if(at(e))Ne(r,e.bind(a));else if(yt(e))if(Je(e))e.forEach(l=>Jy(l,t,a,n));else{const l=at(e.handler)?e.handler.bind(a):t[e.handler];at(l)&&Ne(r,l,e)}}function Zy(e){const t=e.type,{mixins:a,extends:n}=t,{mixins:r,optionsCache:l,config:{optionMergeStrategies:o}}=e.appContext,i=l.get(t);let u;return i?u=i:!r.length&&!a&&!n?u=t:(u={},r.length&&r.forEach(d=>Ci(u,d,o,!0)),Ci(u,t,o)),yt(t)&&l.set(t,u),u}function Ci(e,t,a,n=!1){const{mixins:r,extends:l}=t;l&&Ci(e,l,a,!0),r&&r.forEach(o=>Ci(e,o,a,!0));for(const o in t)if(!(n&&o==="expose")){const i=Fx[o]||a&&a[o];e[o]=i?i(e[o],t[o]):t[o]}return e}const Fx={data:Qp,props:ev,emits:ev,methods:Po,computed:Po,beforeCreate:oa,created:oa,beforeMount:oa,mounted:oa,beforeUpdate:oa,updated:oa,beforeDestroy:oa,beforeUnmount:oa,destroyed:oa,unmounted:oa,activated:oa,deactivated:oa,errorCaptured:oa,serverPrefetch:oa,components:Po,directives:Po,watch:zx,provide:Qp,inject:Vx};function Qp(e,t){return t?e?function(){return Ft(at(e)?e.call(this,this):e,at(t)?t.call(this,this):t)}:t:e}function Vx(e,t){return Po(pd(e),pd(t))}function pd(e){if(Je(e)){const t={};for(let a=0;at==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Zt(t)}Modifiers`]||e[`${Ar(t)}Modifiers`];function Kx(e,t,...a){if(e.isUnmounted)return;const n=e.vnode.props||wt;let r=a;const l=t.startsWith("update:"),o=l&&Hx(n,t.slice(7));o&&(o.trim&&(r=a.map(c=>St(c)?c.trim():c)),o.number&&(r=a.map(tf)));let i,u=n[i=Fo(t)]||n[i=Fo(Zt(t))];!u&&l&&(u=n[i=Fo(Ar(t))]),u&&Ia(u,e,6,r);const d=n[i+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[i])return;e.emitted[i]=!0,Ia(d,e,6,r)}}const Wx=new WeakMap;function Qy(e,t,a=!1){const n=a?Wx:t.emitsCache,r=n.get(e);if(r!==void 0)return r;const l=e.emits;let o={},i=!1;if(!at(e)){const u=d=>{const c=Qy(d,t,!0);c&&(i=!0,Ft(o,c))};!a&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!l&&!i?(yt(e)&&n.set(e,null),null):(Je(l)?l.forEach(u=>o[u]=null):Ft(o,l),yt(e)&&n.set(e,o),o)}function hu(e,t){return!e||!tu(t)?!1:(t=t.slice(2).replace(/Once$/,""),bt(e,t[0].toLowerCase()+t.slice(1))||bt(e,Ar(t))||bt(e,t))}function tv(e){const{type:t,vnode:a,proxy:n,withProxy:r,propsOptions:[l],slots:o,attrs:i,emit:u,render:d,renderCache:c,props:f,data:m,setupState:v,ctx:y,inheritAttrs:x}=e,C=wi(e);let k,E;try{if(a.shapeFlag&4){const O=r||n,T=O;k=rn(d.call(T,O,c,f,v,m,y)),E=i}else{const O=t;k=rn(O.length>1?O(f,{attrs:i,slots:o,emit:u}):O(f,null)),E=t.props?i:Gx(i)}}catch(O){Ho.length=0,pu(O,e,1),k=L(ja)}let B=k;if(E&&x!==!1){const O=Object.keys(E),{shapeFlag:T}=B;O.length&&T&7&&(l&&O.some(au)&&(E=Yx(E,l)),B=mr(B,E,!1,!0))}return a.dirs&&(B=mr(B,null,!1,!0),B.dirs=B.dirs?B.dirs.concat(a.dirs):a.dirs),a.transition&&as(B,a.transition),k=B,wi(C),k}const Gx=e=>{let t;for(const a in e)(a==="class"||a==="style"||tu(a))&&((t||(t={}))[a]=e[a]);return t},Yx=(e,t)=>{const a={};for(const n in e)(!au(n)||!(n.slice(9)in t))&&(a[n]=e[n]);return a};function Jx(e,t,a){const{props:n,children:r,component:l}=e,{props:o,children:i,patchFlag:u}=t,d=l.emitsOptions;if(t.dirs||t.transition)return!0;if(a&&u>=0){if(u&1024)return!0;if(u&16)return n?av(n,o,d):!!o;if(u&8){const c=t.dynamicProps;for(let f=0;fObject.create(tg),ng=e=>Object.getPrototypeOf(e)===tg;function Xx(e,t,a,n=!1){const r={},l=ag();e.propsDefaults=Object.create(null),rg(e,t,r,l);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);a?e.props=n?r:$y(r):e.type.props?e.props=r:e.props=l,e.attrs=l}function Qx(e,t,a,n){const{props:r,attrs:l,vnode:{patchFlag:o}}=e,i=pt(r),[u]=e.propsOptions;let d=!1;if((n||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f{u=!0;const[m,v]=lg(f,t,!0);Ft(o,m),v&&i.push(...v)};!a&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!l&&!u)return yt(e)&&n.set(e,Nl),Nl;if(Je(l))for(let c=0;ce==="_"||e==="_ctx"||e==="$stable",cf=e=>Je(e)?e.map(rn):[rn(e)],tk=(e,t,a)=>{if(t._n)return t;const n=F((...r)=>cf(t(...r)),a);return n._c=!1,n},og=(e,t,a)=>{const n=e._ctx;for(const r in e){if(uf(r))continue;const l=e[r];if(at(l))t[r]=tk(r,l,n);else if(l!=null){const o=cf(l);t[r]=()=>o}}},sg=(e,t)=>{const a=cf(t);e.slots.default=()=>a},ig=(e,t,a)=>{for(const n in t)(a||!uf(n))&&(e[n]=t[n])},ak=(e,t,a)=>{const n=e.slots=ag();if(e.vnode.shapeFlag&32){const r=t._;r?(ig(n,t,a),a&&ey(n,"_",r,!0)):og(t,n)}else t&&sg(e,t)},nk=(e,t,a)=>{const{vnode:n,slots:r}=e;let l=!0,o=wt;if(n.shapeFlag&32){const i=t._;i?a&&i===1?l=!1:ig(r,t,a):(l=!t.$stable,og(t,r)),o=t}else t&&(sg(e,t),o={default:1});if(l)for(const i in r)!uf(i)&&o[i]==null&&delete r[i]},sa=ik;function rk(e){return lk(e)}function lk(e,t){const a=su();a.__VUE__=!0;const{insert:n,remove:r,patchProp:l,createElement:o,createText:i,createComment:u,setText:d,setElementText:c,parentNode:f,nextSibling:m,setScopeId:v=cn,insertStaticContent:y}=e,x=(w,M,q,ie=null,ee=null,pe=null,Ee=void 0,Se=null,Te=!!M.dynamicChildren)=>{if(w===M)return;w&&!Dl(w,M)&&(ie=Y(w),te(w,ee,pe,!0),w=null),M.patchFlag===-2&&(Te=!1,M.dynamicChildren=null);const{type:fe,ref:$e,shapeFlag:xe}=M;switch(fe){case yu:C(w,M,q,ie);break;case ja:k(w,M,q,ie);break;case oc:w==null&&E(M,q,ie,Ee);break;case me:D(w,M,q,ie,ee,pe,Ee,Se,Te);break;default:xe&1?T(w,M,q,ie,ee,pe,Ee,Se,Te):xe&6?N(w,M,q,ie,ee,pe,Ee,Se,Te):(xe&64||xe&128)&&fe.process(w,M,q,ie,ee,pe,Ee,Se,Te,Q)}$e!=null&&ee?jo($e,w&&w.ref,pe,M||w,!M):$e==null&&w&&w.ref!=null&&jo(w.ref,null,pe,w,!0)},C=(w,M,q,ie)=>{if(w==null)n(M.el=i(M.children),q,ie);else{const ee=M.el=w.el;M.children!==w.children&&d(ee,M.children)}},k=(w,M,q,ie)=>{w==null?n(M.el=u(M.children||""),q,ie):M.el=w.el},E=(w,M,q,ie)=>{[w.el,w.anchor]=y(w.children,M,q,ie,w.el,w.anchor)},B=({el:w,anchor:M},q,ie)=>{let ee;for(;w&&w!==M;)ee=m(w),n(w,q,ie),w=ee;n(M,q,ie)},O=({el:w,anchor:M})=>{let q;for(;w&&w!==M;)q=m(w),r(w),w=q;r(M)},T=(w,M,q,ie,ee,pe,Ee,Se,Te)=>{if(M.type==="svg"?Ee="svg":M.type==="math"&&(Ee="mathml"),w==null)P(M,q,ie,ee,pe,Ee,Se,Te);else{const fe=w.el&&w.el._isVueCE?w.el:null;try{fe&&fe._beginPatch(),S(w,M,ee,pe,Ee,Se,Te)}finally{fe&&fe._endPatch()}}},P=(w,M,q,ie,ee,pe,Ee,Se)=>{let Te,fe;const{props:$e,shapeFlag:xe,transition:Le,dirs:Fe}=w;if(Te=w.el=o(w.type,pe,$e&&$e.is,$e),xe&8?c(Te,w.children):xe&16&&U(w.children,Te,null,ie,ee,lc(w,pe),Ee,Se),Fe&&Vr(w,null,ie,"created"),R(Te,w,w.scopeId,Ee,ie),$e){for(const tt in $e)tt!=="value"&&!Bo(tt)&&l(Te,tt,null,$e[tt],pe,ie);"value"in $e&&l(Te,"value",null,$e.value,pe),(fe=$e.onVnodeBeforeMount)&&Za(fe,ie,w)}Fe&&Vr(w,null,ie,"beforeMount");const Ke=ok(ee,Le);Ke&&Le.beforeEnter(Te),n(Te,M,q),((fe=$e&&$e.onVnodeMounted)||Ke||Fe)&&sa(()=>{fe&&Za(fe,ie,w),Ke&&Le.enter(Te),Fe&&Vr(w,null,ie,"mounted")},ee)},R=(w,M,q,ie,ee)=>{if(q&&v(w,q),ie)for(let pe=0;pe{for(let fe=Te;fe{const Se=M.el=w.el;let{patchFlag:Te,dynamicChildren:fe,dirs:$e}=M;Te|=w.patchFlag&16;const xe=w.props||wt,Le=M.props||wt;let Fe;if(q&&zr(q,!1),(Fe=Le.onVnodeBeforeUpdate)&&Za(Fe,q,M,w),$e&&Vr(M,w,q,"beforeUpdate"),q&&zr(q,!0),(xe.innerHTML&&Le.innerHTML==null||xe.textContent&&Le.textContent==null)&&c(Se,""),fe?I(w.dynamicChildren,fe,Se,q,ie,lc(M,ee),pe):Ee||oe(w,M,Se,null,q,ie,lc(M,ee),pe,!1),Te>0){if(Te&16)z(Se,xe,Le,q,ee);else if(Te&2&&xe.class!==Le.class&&l(Se,"class",null,Le.class,ee),Te&4&&l(Se,"style",xe.style,Le.style,ee),Te&8){const Ke=M.dynamicProps;for(let tt=0;tt{Fe&&Za(Fe,q,M,w),$e&&Vr(M,w,q,"updated")},ie)},I=(w,M,q,ie,ee,pe,Ee)=>{for(let Se=0;Se{if(M!==q){if(M!==wt)for(const pe in M)!Bo(pe)&&!(pe in q)&&l(w,pe,M[pe],null,ee,ie);for(const pe in q){if(Bo(pe))continue;const Ee=q[pe],Se=M[pe];Ee!==Se&&pe!=="value"&&l(w,pe,Se,Ee,ee,ie)}"value"in q&&l(w,"value",M.value,q.value,ee)}},D=(w,M,q,ie,ee,pe,Ee,Se,Te)=>{const fe=M.el=w?w.el:i(""),$e=M.anchor=w?w.anchor:i("");let{patchFlag:xe,dynamicChildren:Le,slotScopeIds:Fe}=M;Fe&&(Se=Se?Se.concat(Fe):Fe),w==null?(n(fe,q,ie),n($e,q,ie),U(M.children||[],q,$e,ee,pe,Ee,Se,Te)):xe>0&&xe&64&&Le&&w.dynamicChildren&&w.dynamicChildren.length===Le.length?(I(w.dynamicChildren,Le,q,ee,pe,Ee,Se),(M.key!=null||ee&&M===ee.subTree)&&df(w,M,!0)):oe(w,M,q,$e,ee,pe,Ee,Se,Te)},N=(w,M,q,ie,ee,pe,Ee,Se,Te)=>{M.slotScopeIds=Se,w==null?M.shapeFlag&512?ee.ctx.activate(M,q,ie,Ee,Te):Z(M,q,ie,ee,pe,Ee,Te):W(w,M,Te)},Z=(w,M,q,ie,ee,pe,Ee)=>{const Se=w.component=pk(w,ie,ee);if(By(w)&&(Se.ctx.renderer=Q),vk(Se,!1,Ee),Se.asyncDep){if(ee&&ee.registerDep(Se,K,Ee),!w.el){const Te=Se.subTree=L(ja);k(null,Te,M,q),w.placeholder=Te.el}}else K(Se,w,M,q,ee,pe,Ee)},W=(w,M,q)=>{const ie=M.component=w.component;if(Jx(w,M,q))if(ie.asyncDep&&!ie.asyncResolved){ne(ie,M,q);return}else ie.next=M,ie.update();else M.el=w.el,ie.vnode=M},K=(w,M,q,ie,ee,pe,Ee)=>{const Se=()=>{if(w.isMounted){let{next:xe,bu:Le,u:Fe,parent:Ke,vnode:tt}=w;{const Ot=ug(w);if(Ot){xe&&(xe.el=tt.el,ne(w,xe,Ee)),Ot.asyncDep.then(()=>{sa(()=>{w.isUnmounted||fe()},ee)});return}}let et=xe,ot;zr(w,!1),xe?(xe.el=tt.el,ne(w,xe,Ee)):xe=tt,Le&&di(Le),(ot=xe.props&&xe.props.onVnodeBeforeUpdate)&&Za(ot,Ke,xe,tt),zr(w,!0);const rt=tv(w),Tt=w.subTree;w.subTree=rt,x(Tt,rt,f(Tt.el),Y(Tt),w,ee,pe),xe.el=rt.el,et===null&&Zx(w,rt.el),Fe&&sa(Fe,ee),(ot=xe.props&&xe.props.onVnodeUpdated)&&sa(()=>Za(ot,Ke,xe,tt),ee)}else{let xe;const{el:Le,props:Fe}=M,{bm:Ke,m:tt,parent:et,root:ot,type:rt}=w,Tt=Vl(M);zr(w,!1),Ke&&di(Ke),!Tt&&(xe=Fe&&Fe.onVnodeBeforeMount)&&Za(xe,et,M),zr(w,!0);{ot.ce&&ot.ce._hasShadowRoot()&&ot.ce._injectChildStyle(rt,w.parent?w.parent.type:void 0);const Ot=w.subTree=tv(w);x(null,Ot,q,ie,w,ee,pe),M.el=Ot.el}if(tt&&sa(tt,ee),!Tt&&(xe=Fe&&Fe.onVnodeMounted)){const Ot=M;sa(()=>Za(xe,et,Ot),ee)}(M.shapeFlag&256||et&&Vl(et.vnode)&&et.vnode.shapeFlag&256)&&w.a&&sa(w.a,ee),w.isMounted=!0,M=q=ie=null}};w.scope.on();const Te=w.effect=new iy(Se);w.scope.off();const fe=w.update=Te.run.bind(Te),$e=w.job=Te.runIfDirty.bind(Te);$e.i=w,$e.id=w.uid,Te.scheduler=()=>of($e),zr(w,!0),fe()},ne=(w,M,q)=>{M.component=w;const ie=w.vnode.props;w.vnode=M,w.next=null,Qx(w,M.props,ie,q),nk(w,M.children,q),Rn(),Kp(w),qn()},oe=(w,M,q,ie,ee,pe,Ee,Se,Te=!1)=>{const fe=w&&w.children,$e=w?w.shapeFlag:0,xe=M.children,{patchFlag:Le,shapeFlag:Fe}=M;if(Le>0){if(Le&128){de(fe,xe,q,ie,ee,pe,Ee,Se,Te);return}else if(Le&256){se(fe,xe,q,ie,ee,pe,Ee,Se,Te);return}}Fe&8?($e&16&&_e(fe,ee,pe),xe!==fe&&c(q,xe)):$e&16?Fe&16?de(fe,xe,q,ie,ee,pe,Ee,Se,Te):_e(fe,ee,pe,!0):($e&8&&c(q,""),Fe&16&&U(xe,q,ie,ee,pe,Ee,Se,Te))},se=(w,M,q,ie,ee,pe,Ee,Se,Te)=>{w=w||Nl,M=M||Nl;const fe=w.length,$e=M.length,xe=Math.min(fe,$e);let Le;for(Le=0;Le$e?_e(w,ee,pe,!0,!1,xe):U(M,q,ie,ee,pe,Ee,Se,Te,xe)},de=(w,M,q,ie,ee,pe,Ee,Se,Te)=>{let fe=0;const $e=M.length;let xe=w.length-1,Le=$e-1;for(;fe<=xe&&fe<=Le;){const Fe=w[fe],Ke=M[fe]=Te?$n(M[fe]):rn(M[fe]);if(Dl(Fe,Ke))x(Fe,Ke,q,null,ee,pe,Ee,Se,Te);else break;fe++}for(;fe<=xe&&fe<=Le;){const Fe=w[xe],Ke=M[Le]=Te?$n(M[Le]):rn(M[Le]);if(Dl(Fe,Ke))x(Fe,Ke,q,null,ee,pe,Ee,Se,Te);else break;xe--,Le--}if(fe>xe){if(fe<=Le){const Fe=Le+1,Ke=Fe<$e?M[Fe].el:ie;for(;fe<=Le;)x(null,M[fe]=Te?$n(M[fe]):rn(M[fe]),q,Ke,ee,pe,Ee,Se,Te),fe++}}else if(fe>Le)for(;fe<=xe;)te(w[fe],ee,pe,!0),fe++;else{const Fe=fe,Ke=fe,tt=new Map;for(fe=Ke;fe<=Le;fe++){const Ve=M[fe]=Te?$n(M[fe]):rn(M[fe]);Ve.key!=null&&tt.set(Ve.key,fe)}let et,ot=0;const rt=Le-Ke+1;let Tt=!1,Ot=0;const zt=new Array(rt);for(fe=0;fe=rt){te(Ve,ee,pe,!0);continue}let We;if(Ve.key!=null)We=tt.get(Ve.key);else for(et=Ke;et<=Le;et++)if(zt[et-Ke]===0&&Dl(Ve,M[et])){We=et;break}We===void 0?te(Ve,ee,pe,!0):(zt[We-Ke]=fe+1,We>=Ot?Ot=We:Tt=!0,x(Ve,M[We],q,null,ee,pe,Ee,Se,Te),ot++)}const ze=Tt?sk(zt):Nl;for(et=ze.length-1,fe=rt-1;fe>=0;fe--){const Ve=Ke+fe,We=M[Ve],Nt=M[Ve+1],ra=Ve+1<$e?Nt.el||cg(Nt):ie;zt[fe]===0?x(null,We,q,ra,ee,pe,Ee,Se,Te):Tt&&(et<0||fe!==ze[et]?ue(We,q,ra,2):et--)}}},ue=(w,M,q,ie,ee=null)=>{const{el:pe,type:Ee,transition:Se,children:Te,shapeFlag:fe}=w;if(fe&6){ue(w.component.subTree,M,q,ie);return}if(fe&128){w.suspense.move(M,q,ie);return}if(fe&64){Ee.move(w,M,q,Q);return}if(Ee===me){n(pe,M,q);for(let xe=0;xeSe.enter(pe),ee));else{const{leave:xe,delayLeave:Le,afterLeave:Fe}=Se,Ke=()=>{w.ctx.isUnmounted?r(pe):n(pe,M,q)},tt=()=>{const et=pe._isLeaving||!!pe[an];pe._isLeaving&&pe[an](!0),Se.persisted&&!et?Ke():xe(pe,()=>{Ke(),Fe&&Fe()})};Le?Le(pe,Ke,tt):tt()}else n(pe,M,q)},te=(w,M,q,ie=!1,ee=!1)=>{const{type:pe,props:Ee,ref:Se,children:Te,dynamicChildren:fe,shapeFlag:$e,patchFlag:xe,dirs:Le,cacheIndex:Fe,memo:Ke}=w;if(xe===-2&&(ee=!1),Se!=null&&(Rn(),jo(Se,null,q,w,!0),qn()),Fe!=null&&(M.renderCache[Fe]=void 0),$e&256){M.ctx.deactivate(w);return}const tt=$e&1&&Le,et=!Vl(w);let ot;if(et&&(ot=Ee&&Ee.onVnodeBeforeUnmount)&&Za(ot,M,w),$e&6)we(w.component,q,ie);else{if($e&128){w.suspense.unmount(q,ie);return}tt&&Vr(w,null,M,"beforeUnmount"),$e&64?w.type.remove(w,M,q,Q,ie):fe&&!fe.hasOnce&&(pe!==me||xe>0&&xe&64)?_e(fe,M,q,!1,!0):(pe===me&&xe&384||!ee&&$e&16)&&_e(Te,M,q),ie&&ye(w)}const rt=Ke!=null&&Fe==null;(et&&(ot=Ee&&Ee.onVnodeUnmounted)||tt||rt)&&sa(()=>{ot&&Za(ot,M,w),tt&&Vr(w,null,M,"unmounted"),rt&&(w.el=null)},q)},ye=w=>{const{type:M,el:q,anchor:ie,transition:ee}=w;if(M===me){H(q,ie);return}if(M===oc){O(w);return}const pe=()=>{r(q),ee&&!ee.persisted&&ee.afterLeave&&ee.afterLeave()};if(w.shapeFlag&1&&ee&&!ee.persisted){const{leave:Ee,delayLeave:Se}=ee,Te=()=>Ee(q,pe);Se?Se(w.el,pe,Te):Te()}else pe()},H=(w,M)=>{let q;for(;w!==M;)q=m(w),r(w),w=q;r(M)},we=(w,M,q)=>{const{bum:ie,scope:ee,job:pe,subTree:Ee,um:Se,m:Te,a:fe}=w;rv(Te),rv(fe),ie&&di(ie),ee.stop(),pe&&(pe.flags|=8,te(Ee,w,M,q)),Se&&sa(Se,M),sa(()=>{w.isUnmounted=!0},M)},_e=(w,M,q,ie=!1,ee=!1,pe=0)=>{for(let Ee=pe;Ee{if(w.shapeFlag&6)return Y(w.component.subTree);if(w.shapeFlag&128)return w.suspense.next();const M=m(w.anchor||w.el),q=M&&M[Ry];return q?m(q):M};let he=!1;const J=(w,M,q)=>{let ie;w==null?M._vnode&&(te(M._vnode,null,null,!0),ie=M._vnode.component):x(M._vnode||null,w,M,null,null,null,q),M._vnode=w,he||(he=!0,Kp(ie),Dy(),he=!1)},Q={p:x,um:te,m:ue,r:ye,mt:Z,mc:U,pc:oe,pbc:I,n:Y,o:e};return{render:J,hydrate:void 0,createApp:Ux(J)}}function lc({type:e,props:t},a){return a==="svg"&&e==="foreignObject"||a==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:a}function zr({effect:e,job:t},a){a?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ok(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function df(e,t,a=!1){const n=e.children,r=t.children;if(Je(n)&&Je(r))for(let l=0;l>1,e[a[i]]0&&(t[n]=a[l-1]),a[l]=n)}}for(l=a.length,o=a[l-1];l-- >0;)a[l]=o,o=t[o];return a}function ug(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ug(t)}function rv(e){if(e)for(let t=0;te.__isSuspense;function ik(e,t){t&&t.pendingBranch?Je(e)?t.effects.push(...e):t.effects.push(e):gx(e)}const me=Symbol.for("v-fgt"),yu=Symbol.for("v-txt"),ja=Symbol.for("v-cmt"),oc=Symbol.for("v-stc"),Ho=[];let xa=null;function p(e=!1){Ho.push(xa=e?null:[])}function uk(){Ho.pop(),xa=Ho[Ho.length-1]||null}let ns=1;function Si(e,t=!1){ns+=e,e<0&&xa&&t&&(xa.hasOnce=!0)}function fg(e){return e.dynamicChildren=ns>0?xa||Nl:null,uk(),ns>0&&xa&&xa.push(e),e}function g(e,t,a,n,r,l){return fg(b(e,t,a,n,r,l,!0))}function j(e,t,a,n,r){return fg(L(e,t,a,n,r,!0))}function rs(e){return e?e.__v_isVNode===!0:!1}function Dl(e,t){return e.type===t.type&&e.key===t.key}const pg=({key:e})=>e??null,fi=({ref:e,ref_key:t,ref_for:a})=>(typeof e=="number"&&(e=""+e),e!=null?St(e)||Dt(e)||at(e)?{i:Jt,r:e,k:t,f:!!a}:e:null);function b(e,t=null,a=null,n=0,r=null,l=e===me?0:1,o=!1,i=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&pg(t),ref:t&&fi(t),scopeId:My,slotScopeIds:null,children:a,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:l,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Jt};return i?(ff(u,a),l&128&&e.normalize(u)):a&&(u.shapeFlag|=St(a)?8:16),ns>0&&!o&&xa&&(u.patchFlag>0||l&6)&&u.patchFlag!==32&&xa.push(u),u}const L=ck;function ck(e,t=null,a=null,n=0,r=null,l=!1){if((!e||e===Hy)&&(e=ja),rs(e)){const i=mr(e,t,!0);return a&&ff(i,a),ns>0&&!l&&xa&&(i.shapeFlag&6?xa[xa.indexOf(e)]=i:xa.push(i)),i.patchFlag=-2,i}if(bk(e)&&(e=e.__vccOpts),t){t=ut(t);let{class:i,style:u}=t;i&&!St(i)&&(t.class=ve(i)),yt(u)&&(fu(u)&&!Je(u)&&(u=Ft({},u)),t.style=ua(u))}const o=St(e)?1:dg(e)?128:kx(e)?64:yt(e)?4:at(e)?2:0;return b(e,t,a,n,r,o,l,!0)}function ut(e){return e?fu(e)||ng(e)?Ft({},e):e:null}function mr(e,t,a=!1,n=!1){const{props:r,ref:l,patchFlag:o,children:i,transition:u}=e,d=t?je(r||{},t):r,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&pg(d),ref:t&&t.ref?a&&l?Je(l)?l.concat(fi(t)):[l,fi(t)]:fi(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==me?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&mr(e.ssContent),ssFallback:e.ssFallback&&mr(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&n&&as(c,u.clone(c)),c}function ge(e=" ",t=0){return L(yu,null,e,t)}function G(e="",t=!1){return t?(p(),j(ja,null,e)):L(ja,null,e)}function rn(e){return e==null||typeof e=="boolean"?L(ja):Je(e)?L(me,null,e.slice()):rs(e)?$n(e):L(yu,null,String(e))}function $n(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:mr(e)}function ff(e,t){let a=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(Je(t))a=16;else if(typeof t=="object")if(n&65){const r=t.default;r&&(r._c&&(r._d=!1),ff(e,r()),r._c&&(r._d=!0));return}else{a=32;const r=t._;!r&&!ng(t)?t._ctx=Jt:r===3&&Jt&&(Jt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else at(t)?(t={default:t,_ctx:Jt},a=32):(t=String(t),n&64?(a=16,t=[ge(t)]):a=8);e.children=t,e.shapeFlag|=a}function je(...e){const t={};for(let a=0;ana||Jt;let Ei,md;{const e=su(),t=(a,n)=>{let r;return(r=e[a])||(r=e[a]=[]),r.push(n),l=>{r.length>1?r.forEach(o=>o(l)):r[0](l)}};Ei=t("__VUE_INSTANCE_SETTERS__",a=>na=a),md=t("__VUE_SSR_SETTERS__",a=>ls=a)}const xs=e=>{const t=na;return Ei(e),e.scope.on(),()=>{e.scope.off(),Ei(t)}},lv=()=>{na&&na.scope.off(),Ei(null)};function vg(e){return e.vnode.shapeFlag&4}let ls=!1;function vk(e,t=!1,a=!1){t&&md(t);const{props:n,children:r}=e.vnode,l=vg(e);Xx(e,n,l,t),ak(e,r,a||t);const o=l?mk(e,t):void 0;return t&&md(!1),o}function mk(e,t){const a=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Lx);const{setup:n}=a;if(n){Rn();const r=e.setupContext=n.length>1?yk(e):null,l=xs(e),o=_s(n,e,0,[e.props,r]),i=Zh(o);if(qn(),l(),(i||e.sp)&&!Vl(e)&&Ny(e),i){if(o.then(lv,lv),t)return o.then(u=>{ov(e,u)}).catch(u=>{pu(u,e,0)});e.asyncDep=o}else ov(e,o)}else mg(e)}function ov(e,t,a){at(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:yt(t)&&(e.setupState=Sy(t)),mg(e)}function mg(e,t,a){const n=e.type;e.render||(e.render=n.render||cn);{const r=xs(e);Rn();try{Nx(e)}finally{qn(),r()}}}const hk={get(e,t){return aa(e,"get",""),e[t]}};function yk(e){const t=a=>{e.exposed=a||{}};return{attrs:new Proxy(e.attrs,hk),slots:e.slots,emit:e.emit,expose:t}}function gu(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Sy(_i(e.exposed)),{get(t,a){if(a in t)return t[a];if(a in Uo)return Uo[a](e)},has(t,a){return a in t||a in Uo}})):e.proxy}function gk(e,t=!0){return at(e)?e.displayName||e.name:e.name||t&&e.__name}function bk(e){return at(e)&&"__vccOpts"in e}const _=(e,t)=>px(e,t,ls);function Ma(e,t,a){try{Si(-1);const n=arguments.length;return n===2?yt(t)&&!Je(t)?rs(t)?L(e,null,[t]):L(e,t):L(e,null,t):(n>3?a=Array.prototype.slice.call(arguments,2):n===3&&rs(a)&&(a=[a]),L(e,t,a))}finally{Si(1)}}const _k="3.5.35";let hd;const sv=typeof window<"u"&&window.trustedTypes;if(sv)try{hd=sv.createPolicy("vue",{createHTML:e=>e})}catch{}const hg=hd?e=>hd.createHTML(e):e=>e,xk="http://www.w3.org/2000/svg",kk="http://www.w3.org/1998/Math/MathML",kn=typeof document<"u"?document:null,iv=kn&&kn.createElement("template"),wk={insert:(e,t,a)=>{t.insertBefore(e,a||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,a,n)=>{const r=t==="svg"?kn.createElementNS(xk,e):t==="mathml"?kn.createElementNS(kk,e):a?kn.createElement(e,{is:a}):kn.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>kn.createTextNode(e),createComment:e=>kn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>kn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,a,n,r,l){const o=a?a.previousSibling:t.lastChild;if(r&&(r===l||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),a),!(r===l||!(r=r.nextSibling)););else{iv.innerHTML=hg(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const i=iv.content;if(n==="svg"||n==="mathml"){const u=i.firstChild;for(;u.firstChild;)i.appendChild(u.firstChild);i.removeChild(u)}t.insertBefore(i,a)}return[o?o.nextSibling:t.firstChild,a?a.previousSibling:t.lastChild]}},Xn="transition",bo="animation",Zl=Symbol("_vtc"),yg={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},$k=Ft({},Ax,yg),jr=(e,t=[])=>{Je(e)?e.forEach(a=>a(...t)):e&&e(...t)},uv=e=>e?Je(e)?e.some(t=>t.length>1):e.length>1:!1;function Ck(e){const t={};for(const D in e)D in yg||(t[D]=e[D]);if(e.css===!1)return t;const{name:a="v",type:n,duration:r,enterFromClass:l=`${a}-enter-from`,enterActiveClass:o=`${a}-enter-active`,enterToClass:i=`${a}-enter-to`,appearFromClass:u=l,appearActiveClass:d=o,appearToClass:c=i,leaveFromClass:f=`${a}-leave-from`,leaveActiveClass:m=`${a}-leave-active`,leaveToClass:v=`${a}-leave-to`}=e,y=Sk(r),x=y&&y[0],C=y&&y[1],{onBeforeEnter:k,onEnter:E,onEnterCancelled:B,onLeave:O,onLeaveCancelled:T,onBeforeAppear:P=k,onAppear:R=E,onAppearCancelled:U=B}=t,S=(D,N,Z,W)=>{D._enterCancelled=W,rr(D,N?c:i),rr(D,N?d:o),Z&&Z()},I=(D,N)=>{D._isLeaving=!1,rr(D,f),rr(D,v),rr(D,m),N&&N()},z=D=>(N,Z)=>{const W=D?R:E,K=()=>S(N,D,Z);jr(W,[N,K]),cv(()=>{rr(N,D?u:l),Qa(N,D?c:i),uv(W)||dv(N,n,x,K)})};return Ft(t,{onBeforeEnter(D){jr(k,[D]),Qa(D,l),Qa(D,o)},onBeforeAppear(D){jr(P,[D]),Qa(D,u),Qa(D,d)},onEnter:z(!1),onAppear:z(!0),onLeave(D,N){D._isLeaving=!0;const Z=()=>I(D,N);Qa(D,f),D._enterCancelled?(Qa(D,m),yd(D)):(yd(D),Qa(D,m)),cv(()=>{D._isLeaving&&(rr(D,f),Qa(D,v),uv(O)||dv(D,n,C,Z))}),jr(O,[D,Z])},onEnterCancelled(D){S(D,!1,void 0,!0),jr(B,[D])},onAppearCancelled(D){S(D,!0,void 0,!0),jr(U,[D])},onLeaveCancelled(D){I(D),jr(T,[D])}})}function Sk(e){if(e==null)return null;if(yt(e))return[sc(e.enter),sc(e.leave)];{const t=sc(e);return[t,t]}}function sc(e){return M_(e)}function Qa(e,t){t.split(/\s+/).forEach(a=>a&&e.classList.add(a)),(e[Zl]||(e[Zl]=new Set)).add(t)}function rr(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const a=e[Zl];a&&(a.delete(t),a.size||(e[Zl]=void 0))}function cv(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Ek=0;function dv(e,t,a,n){const r=e._endId=++Ek,l=()=>{r===e._endId&&n()};if(a!=null)return setTimeout(l,a);const{type:o,timeout:i,propCount:u}=gg(e,t);if(!o)return n();const d=o+"end";let c=0;const f=()=>{e.removeEventListener(d,m),l()},m=v=>{v.target===e&&++c>=u&&f()};setTimeout(()=>{c(a[y]||"").split(", "),r=n(`${Xn}Delay`),l=n(`${Xn}Duration`),o=fv(r,l),i=n(`${bo}Delay`),u=n(`${bo}Duration`),d=fv(i,u);let c=null,f=0,m=0;t===Xn?o>0&&(c=Xn,f=o,m=l.length):t===bo?d>0&&(c=bo,f=d,m=u.length):(f=Math.max(o,d),c=f>0?o>d?Xn:bo:null,m=c?c===Xn?l.length:u.length:0);const v=c===Xn&&/\b(?:transform|all)(?:,|$)/.test(n(`${Xn}Property`).toString());return{type:c,timeout:f,propCount:m,hasTransform:v}}function fv(e,t){for(;e.lengthpv(a)+pv(e[n])))}function pv(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function yd(e){return(e?e.ownerDocument:document).body.offsetHeight}function Ak(e,t,a){const n=e[Zl];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):a?e.setAttribute("class",t):e.className=t}const Ai=Symbol("_vod"),bg=Symbol("_vsh"),Ti={name:"show",beforeMount(e,{value:t},{transition:a}){e[Ai]=e.style.display==="none"?"":e.style.display,a&&t?a.beforeEnter(e):_o(e,t)},mounted(e,{value:t},{transition:a}){a&&t&&a.enter(e)},updated(e,{value:t,oldValue:a},{transition:n}){!t!=!a&&(n?t?(n.beforeEnter(e),_o(e,!0),n.enter(e)):n.leave(e,()=>{_o(e,!1)}):_o(e,t))},beforeUnmount(e,{value:t}){_o(e,t)}};function _o(e,t){e.style.display=t?e[Ai]:"none",e[bg]=!t}const Tk=Symbol(""),Dk=/(?:^|;)\s*display\s*:/;function Ok(e,t,a){const n=e.style,r=St(a);let l=!1;if(a&&!r){if(t)if(St(t))for(const o of t.split(";")){const i=o.slice(0,o.indexOf(":")).trim();a[i]==null&&Ro(n,i,"")}else for(const o in t)a[o]==null&&Ro(n,o,"");for(const o in a){o==="display"&&(l=!0);const i=a[o];i!=null?Ik(e,o,!St(t)&&t?t[o]:void 0,i)||Ro(n,o,i):Ro(n,o,"")}}else if(r){if(t!==a){const o=n[Tk];o&&(a+=";"+o),n.cssText=a,l=Dk.test(a)}}else t&&e.removeAttribute("style");Ai in e&&(e[Ai]=l?n.display:"",e[bg]&&(n.display="none"))}const vv=/\s*!important$/;function Ro(e,t,a){if(Je(a))a.forEach(n=>Ro(e,t,n));else if(a==null&&(a=""),t.startsWith("--"))e.setProperty(t,a);else{const n=Mk(e,t);vv.test(a)?e.setProperty(Ar(n),a.replace(vv,""),"important"):e[n]=a}}const mv=["Webkit","Moz","ms"],ic={};function Mk(e,t){const a=ic[t];if(a)return a;let n=Zt(t);if(n!=="filter"&&n in e)return ic[t]=n;n=ou(n);for(let r=0;ruc||(Lk.then(()=>uc=0),uc=Date.now());function Bk(e,t){const a=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=a.attached)return;const r=a.value;if(Je(r)){const l=n.stopImmediatePropagation;n.stopImmediatePropagation=()=>{l.call(n),n._stopped=!0};const o=r.slice(),i=[n];for(let u=0;ue.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Fk=(e,t,a,n,r,l)=>{const o=r==="svg";t==="class"?Ak(e,n,o):t==="style"?Ok(e,a,n):tu(t)?au(t)||Rk(e,t,a,n,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Vk(e,t,n,o))?(gv(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&yv(e,t,n,o,l,t!=="value")):e._isVueCE&&(zk(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!St(n)))?gv(e,Zt(t),n,l,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),yv(e,t,n,o))};function Vk(e,t,a,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&xv(t)&&at(a));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return xv(t)&&St(a)?!1:t in e}function zk(e,t){const a=e._def.props;if(!a)return!1;const n=Zt(t);return Array.isArray(a)?a.some(r=>Zt(r)===n):Object.keys(a).some(r=>Zt(r)===n)}const _g=new WeakMap,xg=new WeakMap,Di=Symbol("_moveCb"),kv=Symbol("_enterCb"),jk=e=>(delete e.props.mode,e),Uk=jk({name:"TransitionGroup",props:Ft({},$k,{tag:String,moveClass:String}),setup(e,{slots:t}){const a=mn(),n=Ex();let r,l;return sf(()=>{if(!r.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!Yk(r[0].el,a.vnode.el,o)){r=[];return}r.forEach(Kk),r.forEach(Wk);const i=r.filter(Gk);yd(a.vnode.el),i.forEach(u=>{const d=u.el,c=d.style;Qa(d,o),c.transform=c.webkitTransform=c.transitionDuration="";const f=d[Di]=m=>{m&&m.target!==d||(!m||m.propertyName.endsWith("transform"))&&(d.removeEventListener("transitionend",f),d[Di]=null,rr(d,o))};d.addEventListener("transitionend",f)}),r=[]}),()=>{const o=pt(e),i=Ck(o);let u=o.tag||me;if(r=[],l)for(let d=0;d{i.split(/\s+/).forEach(u=>u&&n.classList.remove(u))}),a.split(/\s+/).forEach(i=>i&&n.classList.add(i)),n.style.display="none";const l=t.nodeType===1?t:t.parentNode;l.appendChild(n);const{hasTransform:o}=gg(n);return l.removeChild(n),o}const Oi=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Je(t)?a=>di(t,a):t};function Jk(e){e.target.composing=!0}function wv(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const jl=Symbol("_assign");function $v(e,t,a){return t&&(e=e.trim()),a&&(e=tf(e)),e}const nl={created(e,{modifiers:{lazy:t,trim:a,number:n}},r){e[jl]=Oi(r);const l=n||r.props&&r.props.type==="number";Zr(e,t?"change":"input",o=>{o.target.composing||e[jl]($v(e.value,a,l))}),(a||l)&&Zr(e,"change",()=>{e.value=$v(e.value,a,l)}),t||(Zr(e,"compositionstart",Jk),Zr(e,"compositionend",wv),Zr(e,"change",wv))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:a,modifiers:{lazy:n,trim:r,number:l}},o){if(e[jl]=Oi(o),e.composing)return;const i=(l||e.type==="number")&&!/^0\d/.test(e.value)?tf(e.value):e.value,u=t??"";if(i===u)return;const d=e.getRootNode();(d instanceof Document||d instanceof ShadowRoot)&&d.activeElement===e&&e.type!=="range"&&(n&&t===a||r&&e.value.trim()===u)||(e.value=u)}},Zk={deep:!0,created(e,t,a){e[jl]=Oi(a),Zr(e,"change",()=>{const n=e._modelValue,r=Xk(e),l=e.checked,o=e[jl];if(Je(n)){const i=ay(n,r),u=i!==-1;if(l&&!u)o(n.concat(r));else if(!l&&u){const d=[...n];d.splice(i,1),o(d)}}else if(nu(n)){const i=new Set(n);l?i.add(r):i.delete(r),o(i)}else o(wg(e,l))})},mounted:Cv,beforeUpdate(e,t,a){e[jl]=Oi(a),Cv(e,t,a)}};function Cv(e,{value:t,oldValue:a},n){e._modelValue=t;let r;if(Je(t))r=ay(t,n.props.value)>-1;else if(nu(t))r=t.has(n.props.value);else{if(t===a)return;r=bs(t,wg(e,!0))}e.checked!==r&&(e.checked=r)}function Xk(e){return"_value"in e?e._value:e.value}function wg(e,t){const a=t?"_trueValue":"_falseValue";return a in e?e[a]:t}const Qk=["ctrl","shift","alt","meta"],ew={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)=>Qk.some(a=>e[`${a}Key`]&&!t.includes(a))},mt=(e,t)=>{if(!e)return e;const a=e._withMods||(e._withMods={}),n=t.join(".");return a[n]||(a[n]=((r,...l)=>{for(let o=0;o{const a=e._withKeys||(e._withKeys={}),n=t.join(".");return a[n]||(a[n]=(r=>{if(!("key"in r))return;const l=Ar(r.key);if(t.some(o=>o===l||tw[o]===l))return e(r)}))},aw=Ft({patchProp:Fk},wk);let Sv;function nw(){return Sv||(Sv=rk(aw))}const rw=((...e)=>{const t=nw().createApp(...e),{mount:a}=t;return t.mount=n=>{const r=ow(n);if(!r)return;const l=t._component;!at(l)&&!l.render&&!l.template&&(l.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=a(r,!1,lw(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t});function lw(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function ow(e){return St(e)?document.querySelector(e):e}const Ol=typeof document<"u";function $g(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function sw(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&$g(e.default)}const gt=Object.assign;function cc(e,t){const a={};for(const n in t){const r=t[n];a[n]=Ua(r)?r.map(e):e(r)}return a}const Ko=()=>{},Ua=Array.isArray;function Ev(e,t){const a={};for(const n in e)a[n]=n in t?t[n]:e[n];return a}const Cg=Symbol("");function Xl(e,t){return gt(new Error,{type:e,[Cg]:!0},t)}function en(e,t){return e instanceof Error&&Cg in e&&(t==null||!!(e.type&t))}const pf=Symbol(""),Av=Symbol(""),bu=Symbol(""),vf=Symbol(""),gd=Symbol("");function hn(){return it(bu)}function ha(e){return it(vf)}const Sg=/#/g,iw=/&/g,uw=/\//g,cw=/=/g,dw=/\?/g,Eg=/\+/g,fw=/%5B/g,pw=/%5D/g,Ag=/%5E/g,vw=/%60/g,Tg=/%7B/g,mw=/%7C/g,Dg=/%7D/g,hw=/%20/g;function mf(e){return e==null?"":encodeURI(""+e).replace(mw,"|").replace(fw,"[").replace(pw,"]")}function yw(e){return mf(e).replace(Tg,"{").replace(Dg,"}").replace(Ag,"^")}function bd(e){return mf(e).replace(Eg,"%2B").replace(hw,"+").replace(Sg,"%23").replace(iw,"%26").replace(vw,"`").replace(Tg,"{").replace(Dg,"}").replace(Ag,"^")}function gw(e){return bd(e).replace(cw,"%3D")}function bw(e){return mf(e).replace(Sg,"%23").replace(dw,"%3F")}function _w(e){return bw(e).replace(uw,"%2F")}function Mi(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const xw=/\/$/,kw=e=>e.replace(xw,"");function dc(e,t,a="/"){let n,r={},l="",o="";const i=t.indexOf("#");let u=t.indexOf("?");return u=i>=0&&u>i?-1:u,u>=0&&(n=t.slice(0,u),l=t.slice(u,i>0?i:t.length),r=e(l.slice(1))),i>=0&&(n=n||t.slice(0,i),o=t.slice(i,t.length)),n=Sw(n??t,a),{fullPath:n+l+o,path:n,query:r,hash:Mi(o)}}function ww(e,t){const a=t.query?e(t.query):"";return t.path+(a&&"?")+a+(t.hash||"")}function Tv(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function $w(e,t,a){const n=t.matched.length-1,r=a.matched.length-1;return n>-1&&n===r&&Ql(t.matched[n],a.matched[r])&&Og(t.params,a.params)&&e(t.query)===e(a.query)&&t.hash===a.hash}function Ql(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Og(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var a in e)if(!Cw(e[a],t[a]))return!1;return!0}function Cw(e,t){return Ua(e)?Dv(e,t):Ua(t)?Dv(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function Dv(e,t){return Ua(t)?e.length===t.length&&e.every((a,n)=>a===t[n]):e.length===1&&e[0]===t}function Sw(e,t){if(e.startsWith("/"))return e;if(!e)return t;const a=t.split("/"),n=e.split("/"),r=n[n.length-1];(r===".."||r===".")&&n.push("");let l=a.length-1,o,i;for(o=0;o1&&l--;else break;return a.slice(0,l).join("/")+"/"+n.slice(o).join("/")}const Qn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};function Ew(e){if(!e)if(Ol){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),kw(e)}const Aw=/^[^#]+#/;function Tw(e,t){return e.replace(Aw,"#")+t}function Dw(e,t){const a=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-a.left-(t.left||0),top:n.top-a.top-(t.top||0)}}const _u=()=>({left:window.scrollX,top:window.scrollY});function Ow(e){let t;if("el"in e){const a=e.el,n=typeof a=="string"&&a.startsWith("#"),r=typeof a=="string"?n?document.getElementById(a.slice(1)):document.querySelector(a):a;if(!r)return;t=Dw(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Ov(e,t){return(history.state?history.state.position-t:-1)+e}const _d=new Map;function Mw(e,t){_d.set(e,t)}function Iw(e){const t=_d.get(e);return _d.delete(e),t}function Pw(e){return typeof e=="string"||e&&typeof e=="object"}function Mg(e){return typeof e=="string"||typeof e=="symbol"}function Rw(e){const t={};if(e===""||e==="?")return t;const a=(e[0]==="?"?e.slice(1):e).split("&");for(let n=0;nr&&bd(r)):[n&&bd(n)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+a,r!=null&&(t+="="+r))})}return t}function qw(e){const t={};for(const a in e){const n=e[a];n!==void 0&&(t[a]=Ua(n)?n.map(r=>r==null?null:""+r):n==null?n:""+n)}return t}function xo(){let e=[];function t(n){return e.push(n),()=>{const r=e.indexOf(n);r>-1&&e.splice(r,1)}}function a(){e=[]}return{add:t,list:()=>e.slice(),reset:a}}function Ig(e,t,a){const n=e.value;if(!n)return;let r=n;const l=()=>{r[t].delete(a)};jn(l),Vy(l),Fy(()=>{const o=e.value;o&&(r=o),r[t].add(a)}),r[t].add(a)}function Pg(e){Ig(it(pf,{}),"leaveGuards",e)}function Lw(e){Ig(it(pf,{}),"updateGuards",e)}function sr(e,t,a,n,r,l=o=>o()){const o=n&&(n.enterCallbacks[r]=n.enterCallbacks[r]||[]);return()=>new Promise((i,u)=>{const d=m=>{m===!1?u(Xl(4,{from:a,to:t})):m instanceof Error?u(m):Pw(m)?u(Xl(2,{from:t,to:m})):(o&&n.enterCallbacks[r]===o&&typeof m=="function"&&o.push(m),i())},c=l(()=>e.call(n&&n.instances[r],t,a,d));let f=Promise.resolve(c);e.length<3&&(f=f.then(d)),f.catch(m=>u(m))})}function fc(e,t,a,n,r=l=>l()){const l=[];for(const o of e)for(const i in o.components){let u=o.components[i];if(!(t!=="beforeRouteEnter"&&!o.instances[i]))if($g(u)){const d=(u.__vccOpts||u)[t];d&&l.push(sr(d,a,n,o,i,r))}else{let d=u();l.push(()=>d.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${i}" at "${o.path}"`);const f=sw(c)?c.default:c;o.mods[i]=c,o.components[i]=f;const m=(f.__vccOpts||f)[t];return m&&sr(m,a,n,o,i,r)()}))}}return l}function Nw(e,t){const a=[],n=[],r=[],l=Math.max(t.matched.length,e.matched.length);for(let o=0;oQl(d,i))?n.push(i):a.push(i));const u=e.matched[o];u&&(t.matched.find(d=>Ql(d,u))||r.push(u))}return[a,n,r]}let Bw=()=>location.protocol+"//"+location.host;function Rg(e,t){const{pathname:a,search:n,hash:r}=t,l=e.indexOf("#");if(l>-1){let o=r.includes(e.slice(l))?e.slice(l).length:1,i=r.slice(o);return i[0]!=="/"&&(i="/"+i),Tv(i,"")}return Tv(a,e)+n+r}function Fw(e,t,a,n){let r=[],l=[],o=null;const i=({state:m})=>{const v=Rg(e,location),y=a.value,x=t.value;let C=0;if(m){if(a.value=v,t.value=m,o&&o===y){o=null;return}C=x?m.position-x.position:0}else n(v);r.forEach(k=>{k(a.value,y,{delta:C,type:"pop",direction:C?C>0?"forward":"back":""})})};function u(){o=a.value}function d(m){r.push(m);const v=()=>{const y=r.indexOf(m);y>-1&&r.splice(y,1)};return l.push(v),v}function c(){if(document.visibilityState==="hidden"){const{history:m}=window;if(!m.state)return;m.replaceState(gt({},m.state,{scroll:_u()}),"")}}function f(){for(const m of l)m();l=[],window.removeEventListener("popstate",i),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",i),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:u,listen:d,destroy:f}}function Iv(e,t,a,n=!1,r=!1){return{back:e,current:t,forward:a,replaced:n,position:window.history.length,scroll:r?_u():null}}function Vw(e){const{history:t,location:a}=window,n={value:Rg(e,a)},r={value:t.state};r.value||l(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function l(u,d,c){const f=e.indexOf("#"),m=f>-1?(a.host&&document.querySelector("base")?e:e.slice(f))+u:Bw()+e+u;try{t[c?"replaceState":"pushState"](d,"",m),r.value=d}catch(v){console.error(v),a[c?"replace":"assign"](m)}}function o(u,d){l(u,gt({},t.state,Iv(r.value.back,u,r.value.forward,!0),d,{position:r.value.position}),!0),n.value=u}function i(u,d){const c=gt({},r.value,t.state,{forward:u,scroll:_u()});l(c.current,c,!0),l(u,gt({},Iv(n.value,u,null),{position:c.position+1},d),!1),n.value=u}return{location:n,state:r,push:i,replace:o}}function zw(e){e=Ew(e);const t=Vw(e),a=Fw(e,t.state,t.location,t.replace);function n(l,o=!0){o||a.pauseListeners(),history.go(l)}const r=gt({location:"",base:e,go:n,createHref:Tw.bind(null,e)},t,a);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}const jw={type:0,value:""},Uw=/[a-zA-Z0-9_]/;function Hw(e){if(!e)return[[]];if(e==="/")return[[jw]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(v){throw new Error(`ERR (${a})/"${d}": ${v}`)}let a=0,n=a;const r=[];let l;function o(){l&&r.push(l),l=[]}let i=0,u,d="",c="";function f(){d&&(a===0?l.push({type:0,value:d}):a===1||a===2||a===3?(l.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),l.push({type:1,value:d,regexp:c,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),d="")}function m(){d+=u}for(;it.length?t.length===1&&t[0]===80?1:-1:0}function qg(e,t){let a=0;const n=e.score,r=t.score;for(;a0&&t[t.length-1]<0}const Jw={strict:!1,end:!0,sensitive:!1};function Zw(e,t,a){const n=Gw(Hw(e.path),a),r=gt(n,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Xw(e,t){const a=[],n=new Map;t=Ev(Jw,t);function r(f){return n.get(f)}function l(f,m,v){const y=!v,x=Lv(f);x.aliasOf=v&&v.record;const C=Ev(t,f),k=[x];if("alias"in f){const O=typeof f.alias=="string"?[f.alias]:f.alias;for(const T of O)k.push(Lv(gt({},x,{components:v?v.record.components:x.components,path:T,aliasOf:v?v.record:x})))}let E,B;for(const O of k){const{path:T}=O;if(m&&T[0]!=="/"){const P=m.record.path,R=P[P.length-1]==="/"?"":"/";O.path=m.record.path+(T&&R+T)}if(E=Zw(O,m,C),v?v.alias.push(E):(B=B||E,B!==E&&B.alias.push(E),y&&f.name&&!Nv(E)&&o(f.name)),Lg(E)&&u(E),x.children){const P=x.children;for(let R=0;R{o(B)}:Ko}function o(f){if(Mg(f)){const m=n.get(f);m&&(n.delete(f),a.splice(a.indexOf(m),1),m.children.forEach(o),m.alias.forEach(o))}else{const m=a.indexOf(f);m>-1&&(a.splice(m,1),f.record.name&&n.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function i(){return a}function u(f){const m=t2(f,a);a.splice(m,0,f),f.record.name&&!Nv(f)&&n.set(f.record.name,f)}function d(f,m){let v,y={},x,C;if("name"in f&&f.name){if(v=n.get(f.name),!v)throw Xl(1,{location:f});C=v.record.name,y=gt(qv(m.params,v.keys.filter(B=>!B.optional).concat(v.parent?v.parent.keys.filter(B=>B.optional):[]).map(B=>B.name)),f.params&&qv(f.params,v.keys.map(B=>B.name))),x=v.stringify(y)}else if(f.path!=null)x=f.path,v=a.find(B=>B.re.test(x)),v&&(y=v.parse(x),C=v.record.name,v.keys.forEach(B=>{B.optional&&!y[B.name]&&delete y[B.name]}));else{if(v=m.name?n.get(m.name):a.find(B=>B.re.test(m.path)),!v)throw Xl(1,{location:f,currentLocation:m});C=v.record.name,y=gt({},m.params,f.params),x=v.stringify(y)}const k=[];let E=v;for(;E;)k.unshift(E.record),E=E.parent;return{name:C,path:x,params:y,matched:k,meta:e2(k)}}e.forEach(f=>l(f));function c(){a.length=0,n.clear()}return{addRoute:l,resolve:d,removeRoute:o,clearRoutes:c,getRoutes:i,getRecordMatcher:r}}function qv(e,t){const a={};for(const n of t)n in e&&(a[n]=e[n]);return a}function Lv(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Qw(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Qw(e){const t={},a=e.props||!1;if("component"in e)t.default=a;else for(const n in e.components)t[n]=typeof a=="object"?a[n]:a;return t}function Nv(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function e2(e){return e.reduce((t,a)=>gt(t,a.meta),{})}function t2(e,t){let a=0,n=t.length;for(;a!==n;){const l=a+n>>1;qg(e,t[l])<0?n=l:a=l+1}const r=a2(e);return r&&(n=t.lastIndexOf(r,n-1)),n}function a2(e){let t=e;for(;t=t.parent;)if(Lg(t)&&qg(e,t)===0)return t}function Lg({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Bv(e){const t=it(bu),a=it(vf),n=_(()=>{const u=s(e.to);return t.resolve(u)}),r=_(()=>{const{matched:u}=n.value,{length:d}=u,c=u[d-1],f=a.matched;if(!c||!f.length)return-1;const m=f.findIndex(Ql.bind(null,c));if(m>-1)return m;const v=Fv(u[d-2]);return d>1&&Fv(c)===v&&f[f.length-1].path!==v?f.findIndex(Ql.bind(null,u[d-2])):m}),l=_(()=>r.value>-1&&l2(a.params,n.value.params)),o=_(()=>r.value>-1&&r.value===a.matched.length-1&&Og(a.params,n.value.params));function i(u={}){if(r2(u)){const d=t[s(e.replace)?"replace":"push"](s(e.to)).catch(Ko);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}return{route:n,href:_(()=>n.value.href),isActive:l,isExactActive:o,navigate:i}}function n2(e){return e.length===1?e[0]:e}const Ra=le({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Bv,setup(e,{slots:t}){const a=Va(Bv(e)),{options:n}=it(bu),r=_(()=>({[Vv(e.activeClass,n.linkActiveClass,"router-link-active")]:a.isActive,[Vv(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:a.isExactActive}));return()=>{const l=t.default&&n2(t.default(a));return e.custom?l:Ma("a",{"aria-current":a.isExactActive?e.ariaCurrentValue:null,href:a.href,onClick:a.navigate,class:r.value},l)}}});function r2(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function l2(e,t){for(const a in t){const n=t[a],r=e[a];if(typeof n=="string"){if(n!==r)return!1}else if(!Ua(r)||r.length!==n.length||n.some((l,o)=>l.valueOf()!==r[o].valueOf()))return!1}return!0}function Fv(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Vv=(e,t,a)=>e??t??a,o2=le({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:a}){const n=it(gd),r=_(()=>e.route||n.value),l=it(Av,0),o=_(()=>{let d=s(l);const{matched:c}=r.value;let f;for(;(f=c[d])&&!f.components;)d++;return d}),i=_(()=>r.value.matched[o.value]);vt(Av,_(()=>o.value+1)),vt(pf,i),vt(gd,r);const u=A();return Ne(()=>[u.value,i.value,e.name],([d,c,f],[m,v,y])=>{c&&(c.instances[f]=d,v&&v!==c&&d&&d===m&&(c.leaveGuards.size||(c.leaveGuards=v.leaveGuards),c.updateGuards.size||(c.updateGuards=v.updateGuards))),d&&c&&(!v||!Ql(c,v)||!m)&&(c.enterCallbacks[f]||[]).forEach(x=>x(d))},{flush:"post"}),()=>{const d=r.value,c=e.name,f=i.value,m=f&&f.components[c];if(!m)return zv(a.default,{Component:m,route:d});const v=f.props[c],y=v?v===!0?d.params:typeof v=="function"?v(d):v:null,C=Ma(m,gt({},y,t,{onVnodeUnmounted:k=>{k.component.isUnmounted&&(f.instances[c]=null)},ref:u}));return zv(a.default,{Component:C,route:d})||C}}});function zv(e,t){if(!e)return null;const a=e(t);return a.length===1?a[0]:a}const xd=o2;function s2(e){const t=Xw(e.routes,e),a=e.parseQuery||Rw,n=e.stringifyQuery||Mv,r=e.history,l=xo(),o=xo(),i=xo(),u=ul(Qn);let d=Qn;Ol&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=cc.bind(null,Y=>""+Y),f=cc.bind(null,_w),m=cc.bind(null,Mi);function v(Y,he){let J,Q;return Mg(Y)?(J=t.getRecordMatcher(Y),Q=he):Q=Y,t.addRoute(Q,J)}function y(Y){const he=t.getRecordMatcher(Y);he&&t.removeRoute(he)}function x(){return t.getRoutes().map(Y=>Y.record)}function C(Y){return!!t.getRecordMatcher(Y)}function k(Y,he){if(he=gt({},he||u.value),typeof Y=="string"){const q=dc(a,Y,he.path),ie=t.resolve({path:q.path},he),ee=r.createHref(q.fullPath);return gt(q,ie,{params:m(ie.params),redirectedFrom:void 0,href:ee})}let J;if(Y.path!=null)J=gt({},Y,{path:dc(a,Y.path,he.path).path});else{const q=gt({},Y.params);for(const ie in q)q[ie]==null&&delete q[ie];J=gt({},Y,{params:f(q)}),he.params=f(he.params)}const Q=t.resolve(J,he),ae=Y.hash||"";Q.params=c(m(Q.params));const w=ww(n,gt({},Y,{hash:yw(ae),path:Q.path})),M=r.createHref(w);return gt({fullPath:w,hash:ae,query:n===Mv?qw(Y.query):Y.query||{}},Q,{redirectedFrom:void 0,href:M})}function E(Y){return typeof Y=="string"?dc(a,Y,u.value.path):gt({},Y)}function B(Y,he){if(d!==Y)return Xl(8,{from:he,to:Y})}function O(Y){return R(Y)}function T(Y){return O(gt(E(Y),{replace:!0}))}function P(Y,he){const J=Y.matched[Y.matched.length-1];if(J&&J.redirect){const{redirect:Q}=J;let ae=typeof Q=="function"?Q(Y,he):Q;return typeof ae=="string"&&(ae=ae.includes("?")||ae.includes("#")?ae=E(ae):{path:ae},ae.params={}),gt({query:Y.query,hash:Y.hash,params:ae.path!=null?{}:Y.params},ae)}}function R(Y,he){const J=d=k(Y),Q=u.value,ae=Y.state,w=Y.force,M=Y.replace===!0,q=P(J,Q);if(q)return R(gt(E(q),{state:typeof q=="object"?gt({},ae,q.state):ae,force:w,replace:M}),he||J);const ie=J;ie.redirectedFrom=he;let ee;return!w&&$w(n,Q,J)&&(ee=Xl(16,{to:ie,from:Q}),ue(Q,Q,!0,!1)),(ee?Promise.resolve(ee):I(ie,Q)).catch(pe=>en(pe)?en(pe,2)?pe:de(pe):oe(pe,ie,Q)).then(pe=>{if(pe){if(en(pe,2))return R(gt({replace:M},E(pe.to),{state:typeof pe.to=="object"?gt({},ae,pe.to.state):ae,force:w}),he||ie)}else pe=D(ie,Q,!0,M,ae);return z(ie,Q,pe),pe})}function U(Y,he){const J=B(Y,he);return J?Promise.reject(J):Promise.resolve()}function S(Y){const he=H.values().next().value;return he&&typeof he.runWithContext=="function"?he.runWithContext(Y):Y()}function I(Y,he){let J;const[Q,ae,w]=Nw(Y,he);J=fc(Q.reverse(),"beforeRouteLeave",Y,he);for(const q of Q)q.leaveGuards.forEach(ie=>{J.push(sr(ie,Y,he))});const M=U.bind(null,Y,he);return J.push(M),_e(J).then(()=>{J=[];for(const q of l.list())J.push(sr(q,Y,he));return J.push(M),_e(J)}).then(()=>{J=fc(ae,"beforeRouteUpdate",Y,he);for(const q of ae)q.updateGuards.forEach(ie=>{J.push(sr(ie,Y,he))});return J.push(M),_e(J)}).then(()=>{J=[];for(const q of w)if(q.beforeEnter)if(Ua(q.beforeEnter))for(const ie of q.beforeEnter)J.push(sr(ie,Y,he));else J.push(sr(q.beforeEnter,Y,he));return J.push(M),_e(J)}).then(()=>(Y.matched.forEach(q=>q.enterCallbacks={}),J=fc(w,"beforeRouteEnter",Y,he,S),J.push(M),_e(J))).then(()=>{J=[];for(const q of o.list())J.push(sr(q,Y,he));return J.push(M),_e(J)}).catch(q=>en(q,8)?q:Promise.reject(q))}function z(Y,he,J){i.list().forEach(Q=>S(()=>Q(Y,he,J)))}function D(Y,he,J,Q,ae){const w=B(Y,he);if(w)return w;const M=he===Qn,q=Ol?history.state:{};J&&(Q||M?r.replace(Y.fullPath,gt({scroll:M&&q&&q.scroll},ae)):r.push(Y.fullPath,ae)),u.value=Y,ue(Y,he,J,M),de()}let N;function Z(){N||(N=r.listen((Y,he,J)=>{if(!we.listening)return;const Q=k(Y),ae=P(Q,we.currentRoute.value);if(ae){R(gt(ae,{replace:!0,force:!0}),Q).catch(Ko);return}d=Q;const w=u.value;Ol&&Mw(Ov(w.fullPath,J.delta),_u()),I(Q,w).catch(M=>en(M,12)?M:en(M,2)?(R(gt(E(M.to),{force:!0}),Q).then(q=>{en(q,20)&&!J.delta&&J.type==="pop"&&r.go(-1,!1)}).catch(Ko),Promise.reject()):(J.delta&&r.go(-J.delta,!1),oe(M,Q,w))).then(M=>{M=M||D(Q,w,!1),M&&(J.delta&&!en(M,8)?r.go(-J.delta,!1):J.type==="pop"&&en(M,20)&&r.go(-1,!1)),z(Q,w,M)}).catch(Ko)}))}let W=xo(),K=xo(),ne;function oe(Y,he,J){de(Y);const Q=K.list();return Q.length?Q.forEach(ae=>ae(Y,he,J)):console.error(Y),Promise.reject(Y)}function se(){return ne&&u.value!==Qn?Promise.resolve():new Promise((Y,he)=>{W.add([Y,he])})}function de(Y){return ne||(ne=!Y,Z(),W.list().forEach(([he,J])=>Y?J(Y):he()),W.reset()),Y}function ue(Y,he,J,Q){const{scrollBehavior:ae}=e;if(!Ol||!ae)return Promise.resolve();const w=!J&&Iw(Ov(Y.fullPath,0))||(Q||!J)&&history.state&&history.state.scroll||null;return He().then(()=>ae(Y,he,w)).then(M=>M&&Ow(M)).catch(M=>oe(M,Y,he))}const te=Y=>r.go(Y);let ye;const H=new Set,we={currentRoute:u,listening:!0,addRoute:v,removeRoute:y,clearRoutes:t.clearRoutes,hasRoute:C,getRoutes:x,resolve:k,options:e,push:O,replace:T,go:te,back:()=>te(-1),forward:()=>te(1),beforeEach:l.add,beforeResolve:o.add,afterEach:i.add,onError:K.add,isReady:se,install(Y){Y.component("RouterLink",Ra),Y.component("RouterView",xd),Y.config.globalProperties.$router=we,Object.defineProperty(Y.config.globalProperties,"$route",{enumerable:!0,get:()=>s(u)}),Ol&&!ye&&u.value===Qn&&(ye=!0,O(r.location).catch(Q=>{}));const he={};for(const Q in Qn)Object.defineProperty(he,Q,{get:()=>u.value[Q],enumerable:!0});Y.provide(bu,we),Y.provide(vf,$y(he)),Y.provide(gd,u);const J=Y.unmount;H.add(Y),Y.unmount=function(){H.delete(Y),H.size<1&&(d=Qn,N&&N(),N=null,u.value=Qn,ye=!1,ne=!1),J()}}};function _e(Y){return Y.reduce((he,J)=>he.then(()=>S(J)),Promise.resolve())}return we}const i2=/^[A-Za-z0-9_-]+$/;function xu(e){const t=e.split(".");if(t.length!==3||!t.every(l=>i2.test(l)))return null;const[a,n,r]=t;return{vendor:a,plugin:n,controller:r}}function Ha(e){const t=xu(e);return t?`/${t.vendor}/${t.plugin}/${t.controller}`:null}function ks(e){return`${e.vendor}.${e.plugin}.${e.controller}`}function ro(e){const t=e.replace(/^\/+|\/+$/g,"").split("/");if(t.length<3)return null;const a=t.slice(0,3).join(".");return xu(a)?a:null}function jv(e){const t=xu(e);return t?`${t.vendor}.${t.plugin}`:null}const u2=/\{[^{}]+\}/g,c2=()=>typeof process=="object"&&Number.parseInt(process?.versions?.node?.substring(0,2))>=18&&process.versions.undici;function d2(){return Math.random().toString(36).slice(2,11)}function f2(e){let{baseUrl:t="",Request:a=globalThis.Request,fetch:n=globalThis.fetch,querySerializer:r,bodySerializer:l,pathSerializer:o,headers:i,requestInitExt:u=void 0,...d}={...e};u=c2()?u:void 0,t=Kv(t);const c=[];async function f(m,v){const{baseUrl:y,fetch:x=n,Request:C=a,headers:k,params:E={},parseAs:B="json",querySerializer:O,bodySerializer:T=l??v2,pathSerializer:P,body:R,middleware:U=[],...S}=v||{};let I=t;y&&(I=Kv(y)??t);let z=typeof r=="function"?r:Uv(r);O&&(z=typeof O=="function"?O:Uv({...typeof r=="object"?r:{},...O}));const D=P||o||p2,N=R===void 0?void 0:T(R,Hv(i,k,E.header)),Z=Hv(N===void 0||N instanceof FormData?{}:{"Content-Type":"application/json"},i,k,E.header),W=[...c,...U],K={redirect:"follow",...d,...S,body:N,headers:Z};let ne,oe,se=new C(m2(m,{baseUrl:I,params:E,querySerializer:z,pathSerializer:D}),K),de;for(const ye in S)ye in se||(se[ye]=S[ye]);if(W.length){ne=d2(),oe=Object.freeze({baseUrl:I,fetch:x,parseAs:B,querySerializer:z,bodySerializer:T,pathSerializer:D});for(const ye of W)if(ye&&typeof ye=="object"&&typeof ye.onRequest=="function"){const H=await ye.onRequest({request:se,schemaPath:m,params:E,options:oe,id:ne});if(H)if(H instanceof C)se=H;else if(H instanceof Response){de=H;break}else throw new Error("onRequest: must return new Request() or Response() when modifying the request")}}if(!de){try{de=await x(se,u)}catch(ye){let H=ye;if(W.length)for(let we=W.length-1;we>=0;we--){const _e=W[we];if(_e&&typeof _e=="object"&&typeof _e.onError=="function"){const Y=await _e.onError({request:se,error:H,schemaPath:m,params:E,options:oe,id:ne});if(Y){if(Y instanceof Response){H=void 0,de=Y;break}if(Y instanceof Error){H=Y;continue}throw new Error("onError: must return new Response() or instance of Error")}}}if(H)throw H}if(W.length)for(let ye=W.length-1;ye>=0;ye--){const H=W[ye];if(H&&typeof H=="object"&&typeof H.onResponse=="function"){const we=await H.onResponse({request:se,response:de,schemaPath:m,params:E,options:oe,id:ne});if(we){if(!(we instanceof Response))throw new Error("onResponse: must return new Response() when modifying the response");de=we}}}}const ue=de.headers.get("Content-Length");if(de.status===204||se.method==="HEAD"||ue==="0"&&!de.headers.get("Transfer-Encoding")?.includes("chunked"))return de.ok?{data:void 0,response:de}:{error:void 0,response:de};if(de.ok)return{data:await(async()=>{if(B==="stream")return de.body;if(B==="json"&&!ue){const H=await de.text();return H?JSON.parse(H):void 0}return await de[B]()})(),response:de};let te=await de.text();try{te=JSON.parse(te)}catch{}return{error:te,response:de}}return{request(m,v,y){return f(v,{...y,method:m.toUpperCase()})},GET(m,v){return f(m,{...v,method:"GET"})},PUT(m,v){return f(m,{...v,method:"PUT"})},POST(m,v){return f(m,{...v,method:"POST"})},DELETE(m,v){return f(m,{...v,method:"DELETE"})},OPTIONS(m,v){return f(m,{...v,method:"OPTIONS"})},HEAD(m,v){return f(m,{...v,method:"HEAD"})},PATCH(m,v){return f(m,{...v,method:"PATCH"})},TRACE(m,v){return f(m,{...v,method:"TRACE"})},use(...m){for(const v of m)if(v){if(typeof v!="object"||!("onRequest"in v||"onResponse"in v||"onError"in v))throw new Error("Middleware must be an object with one of `onRequest()`, `onResponse() or `onError()`");c.push(v)}},eject(...m){for(const v of m){const y=c.indexOf(v);y!==-1&&c.splice(y,1)}}}}function ku(e,t,a){if(t==null)return"";if(typeof t=="object")throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${e}=${a?.allowReserved===!0?t:encodeURIComponent(t)}`}function Ng(e,t,a){if(!t||typeof t!="object")return"";const n=[],r={simple:",",label:".",matrix:";"}[a.style]||"&";if(a.style!=="deepObject"&&a.explode===!1){for(const i in t)n.push(i,a.allowReserved===!0?t[i]:encodeURIComponent(t[i]));const o=n.join(",");switch(a.style){case"form":return`${e}=${o}`;case"label":return`.${o}`;case"matrix":return`;${e}=${o}`;default:return o}}for(const o in t){const i=a.style==="deepObject"?`${e}[${o}]`:o;n.push(ku(i,t[o],a))}const l=n.join(r);return a.style==="label"||a.style==="matrix"?`${r}${l}`:l}function Bg(e,t,a){if(!Array.isArray(t))return"";if(a.explode===!1){const l={form:",",spaceDelimited:"%20",pipeDelimited:"|"}[a.style]||",",o=(a.allowReserved===!0?t:t.map(i=>encodeURIComponent(i))).join(l);switch(a.style){case"simple":return o;case"label":return`.${o}`;case"matrix":return`;${e}=${o}`;default:return`${e}=${o}`}}const n={simple:",",label:".",matrix:";"}[a.style]||"&",r=[];for(const l of t)a.style==="simple"||a.style==="label"?r.push(a.allowReserved===!0?l:encodeURIComponent(l)):r.push(ku(e,l,a));return a.style==="label"||a.style==="matrix"?`${n}${r.join(n)}`:r.join(n)}function Uv(e){return function(a){const n=[];if(a&&typeof a=="object")for(const r in a){const l=a[r];if(l!=null){if(Array.isArray(l)){if(l.length===0)continue;n.push(Bg(r,l,{style:"form",explode:!0,...e?.array,allowReserved:e?.allowReserved||!1}));continue}if(typeof l=="object"){n.push(Ng(r,l,{style:"deepObject",explode:!0,...e?.object,allowReserved:e?.allowReserved||!1}));continue}n.push(ku(r,l,e))}}return n.join("&")}}function p2(e,t){let a=e;for(const n of e.match(u2)??[]){let r=n.substring(1,n.length-1),l=!1,o="simple";if(r.endsWith("*")&&(l=!0,r=r.substring(0,r.length-1)),r.startsWith(".")?(o="label",r=r.substring(1)):r.startsWith(";")&&(o="matrix",r=r.substring(1)),!t||t[r]===void 0||t[r]===null)continue;const i=t[r];if(Array.isArray(i)){a=a.replace(n,Bg(r,i,{style:o,explode:l}));continue}if(typeof i=="object"){a=a.replace(n,Ng(r,i,{style:o,explode:l}));continue}if(o==="matrix"){a=a.replace(n,`;${ku(r,i)}`);continue}a=a.replace(n,o==="label"?`.${encodeURIComponent(i)}`:encodeURIComponent(i))}return a}function v2(e,t){return e instanceof FormData?e:t&&(t.get instanceof Function?t.get("Content-Type")??t.get("content-type"):t["Content-Type"]??t["content-type"])==="application/x-www-form-urlencoded"?new URLSearchParams(e).toString():JSON.stringify(e)}function m2(e,t){let a=`${t.baseUrl}${e}`;t.params?.path&&(a=t.pathSerializer(a,t.params.path));let n=t.querySerializer(t.params.query??{});return n.startsWith("?")&&(n=n.substring(1)),n&&(a+=`?${n}`),a}function Hv(...e){const t=new Headers;for(const a of e){if(!a||typeof a!="object")continue;const n=a instanceof Headers?a.entries():Object.entries(a);for(const[r,l]of n)if(l===null)t.delete(r);else if(Array.isArray(l))for(const o of l)t.append(r,o);else l!==void 0&&t.set(r,l)}return t}function Kv(e){return e.endsWith("/")?e.substring(0,e.length-1):e}const Wv="/backend",h2="__SUMMER_ADMIN_BASE__",y2="__SUMMER_ADMIN_BUILD__",g2=/^[0-9a-f]{6,64}$/;function b2(e=document){const t=e.querySelector('meta[name="summer-admin-base"]')?.content.trim()??"";if(t===""||t===h2||!t.startsWith("/"))return Wv;const a=t.replace(/\/+$/,"");return a===""?Wv:a}function _2(e=document){const t=e.querySelector('meta[name="summer-admin-build"]')?.content.trim()??"";return t===y2||!g2.test(t)?"":t}const Gv=b2(),cl={base:Gv,api:`${Gv}/api/v1`,build:_2()},Fg="XMLHttpRequest";let Ii=null,Vg=null,ko=null;const pc=new WeakMap;function x2(e){Ii=e}function k2(){Ii?.()}function w2(e){Vg=e}function $2(e){return new URL(e.url,"http://local").pathname}function Yv(e){const t=$2(e);return t.endsWith("/auth/login")||t.endsWith("/auth/refresh")}function hf(){return ko||(ko=(async()=>{try{const{data:e,response:t}=await Re.POST("/auth/refresh");if(!t.ok||!e)return!1;const a=e.data.expires_in;return Vg?.(typeof a=="number"?a:null),!0}catch{return!1}finally{ko=null}})(),ko)}const C2={onRequest({request:e}){return e.headers.set("X-Requested-With",Fg),Yv(e)||pc.set(e,e.clone()),e},async onResponse({request:e,response:t}){if(t.status!==401||Yv(e))return t;const a=pc.get(e);if(pc.delete(e),!a||!await hf())return Ii?.(),t;const n=await globalThis.fetch(a);return n.status===401&&Ii?.(),n}},Re=f2({baseUrl:cl.api,credentials:"same-origin",fetch:e=>globalThis.fetch(e)});Re.use(C2);const yf=A({}),gf=A(typeof document>"u"?"pl":document.documentElement.lang||"pl"),Ka=Ct(gf),zg=A([]),S2=Ct(zg);function E2(e,t){yf.value=e,t&&(gf.value=t,typeof document<"u"&&(document.documentElement.lang=t))}async function jg(e){const{data:t,response:a}=await Re.GET("/lang",e?{params:{query:{locale:e}}}:{});!a.ok||!t||(zg.value=Array.isArray(t.meta.locales)?[...t.meta.locales]:[],E2(t.data,t.meta.locale))}function Jv(e){const t=e.codePointAt(0);if(t===void 0)return e;const a=String.fromCodePoint(t);return a.toUpperCase()+e.slice(a.length)}function Pi(e,t={}){if(e==="")return e;const a=[];for(const[r,l]of Object.entries(t)){const o=r.replace(/^:/,"");if(o==="")continue;const i=String(l);a.push([`:${Jv(o)}`,Jv(i)]),a.push([`:${o.toUpperCase()}`,i.toUpperCase()]),a.push([`:${o}`,i])}a.sort((r,l)=>l[0].length-r[0].length);let n=e;for(const[r,l]of a)n=n.split(r).join(l);return n}const Zv=new Map;function A2(e,t=gf.value){let a=Zv.get(t);if(a===void 0){try{a=new Intl.PluralRules(t)}catch{a=null}Zv.set(t,a)}return a?a.select(e):"other"}function Ze(e,t,a={}){if(!e)return"";if(t===void 0)return Pi(e.other??"",a);const n=e[A2(t)]??e.other??"";return Pi(n,{count:t,...a})}function h(e,t={}){const a=yf.value[e]?.other;return a===void 0?e:Pi(a,t)}function rl(e,t,a={}){const n=yf.value[e];return n?Ze(n,t,a):e}const bf=A(""),qo=Ct(bf);function _f(e){bf.value=e}function xf(){bf.value=""}const Ri=A([]);async function Ug(){const{data:e,response:t}=await Re.GET("/navigation");return Ri.value=t.ok&&e?e.data:[],Ri.value}function T2(e){Ri.value=e}const qi=_(()=>Ri.value.filter(e=>e.sideMenu.length>0).map((e,t)=>({entry:e,index:t})).sort((e,t)=>e.entry.order-t.entry.order||e.index-t.index).map(({entry:e})=>e));function kf(e){for(const t of e.sideMenu){const a=Ha(t.controller);if(a)return a}return Ha(e.controller)}function ws(e,t){const a=`${e}.${t}`;return qi.value.find(n=>jv(n.controller)===a||n.sideMenu.some(r=>jv(r.controller)===a))??null}function D2(){for(const e of qi.value){const t=kf(e);if(t)return t}return null}const hr=A([]),O2=_(()=>hr.value.length>0);async function Hg(){const{data:e,response:t}=await Re.GET("/settings");return hr.value=t.ok&&e?e.data:[],hr.value}function M2(e){hr.value=e}function os(e){return hr.value.find(t=>t.code===e)??null}function wf(e){return e.path?e.path:e.controller?Ha(e.controller)??"/settings":`/settings/${encodeURIComponent(e.code)}`}function wu(e){return e?hr.value.find(t=>t.controller!==""&&t.controller===e)??null:null}function Kg(e){return hr.value.find(t=>!!t.path&&t.path===e)??null}const kd=_(()=>{const e=hr.value.map((a,n)=>({entry:a,index:n})).sort((a,n)=>a.entry.order-n.entry.order||a.index-n.index).map(({entry:a})=>a),t=[];for(const a of e){let n=t.find(r=>r.category===a.category);n||(n={category:a.category,entries:[]},t.push(n)),n.entries.push(a)}return t});function vc(e){if(!e)return null;const t=kd.value.find(a=>a.category===e.category);return!t||t.entries.length<2?null:{category:t.category,current:e,entries:t.entries}}const Xv="SummerCMS";function I2(e){if(e.name==="login")return h("backend::lang.auth.title");if(e.name==="settings")return h("backend::lang.settings.title");if(e.name==="account")return h("backend::lang.myaccount.menu_label");if(e.name==="plugins")return h("backend::lang.plugins.title");if(e.name==="connect")return h("backend::lang.mcp_connect.page_title");if(e.name==="settings-form")return os(String(e.params.code??""))?.label??String(e.params.code??"");if(e.name==="home")return h("backend::lang.nav.empty");if(e.name==="not-found")return h("backend::lang.page.not_found");const t=ws(String(e.params.vendor??""),String(e.params.plugin??"")),a=ro(e.path),r=t?.sideMenu.find(l=>l.controller===a)?.label??t?.label??wu(a)?.label??"";return(e.name==="create"||e.name==="record"||e.name==="preview")&&qo.value||r}function P2(e){const t=I2(e).trim();return t===""?Xv:`${t} | ${Xv}`}const Qv=e=>e==="";const R2=(...e)=>e.filter((t,a,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===a).join(" ").trim();const em=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const q2=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,a,n)=>n?n.toUpperCase():a.toLowerCase());const L2=e=>{const t=q2(e);return t.charAt(0).toUpperCase()+t.slice(1)};var wl={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"};const N2=Symbol("lucide-icons");function B2(){return it(N2,{})}const F2=({name:e,iconNode:t,absoluteStrokeWidth:a,"absolute-stroke-width":n,strokeWidth:r,"stroke-width":l,size:o,color:i,...u},{slots:d})=>{const{size:c,color:f,strokeWidth:m=2,absoluteStrokeWidth:v=!1,class:y=""}=B2(),x=_(()=>{const C=Qv(a)||Qv(n)||a===!0||n===!0||v===!0,k=r||l||m||wl["stroke-width"];return C?Number(k)*24/Number(o??c??wl.width):k});return Ma("svg",{...wl,...u,width:o??c??wl.width,height:o??c??wl.height,stroke:i??f??wl.stroke,"stroke-width":x.value,class:R2("lucide",y,...e?[`lucide-${em(L2(e))}-icon`,`lucide-${em(e)}`]:["lucide-icon"])},[...t.map(C=>Ma(...C)),...d.default?[d.default()]:[]])};const be=(e,t)=>(a,{slots:n,attrs:r})=>Ma(F2,{...r,...a,iconNode:t,name:e},n.default?{default:n.default}:void 0);const V2=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],z2=be("archive",V2);const j2=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],Wg=be("arrow-down",j2);const U2=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],$s=be("arrow-left",U2);const H2=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],K2=be("arrow-right",H2);const W2=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],Gg=be("arrow-up-down",W2);const G2=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Yg=be("arrow-up-right",G2);const Y2=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],Jg=be("arrow-up",Y2);const J2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]],Zg=be("ban",J2);const Z2=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],X2=be("bell",Z2);const Q2=[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]],e$=be("bold",Q2);const t$=[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]],a$=be("book",t$);const n$=[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]],r$=be("bookmark",n$);const l$=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],tm=be("bot",l$);const o$=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],s$=be("box",o$);const i$=[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]],u$=be("briefcase",i$);const c$=[["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M9 22v-3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3",key:"cabbwy"}],["rect",{x:"4",y:"2",width:"16",height:"20",rx:"2",key:"1uxh74"}]],d$=be("building",c$);const f$=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],Xg=be("calendar",f$);const p$=[["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",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],v$=be("camera",p$);const m$=[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["circle",{cx:"8",cy:"10",r:"2",key:"1xl4ub"}],["path",{d:"M8 12h8",key:"1wcyev"}],["circle",{cx:"16",cy:"10",r:"2",key:"r14t7q"}],["path",{d:"m6 20 .7-2.9A1.4 1.4 0 0 1 8.1 16h7.8a1.4 1.4 0 0 1 1.4 1l.7 3",key:"l01ucn"}]],h$=be("cassette-tape",m$);const y$=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M7 16h8",key:"srdodz"}],["path",{d:"M7 11h12",key:"127s9w"}],["path",{d:"M7 6h3",key:"w9rmul"}]],g$=be("chart-bar",y$);const b$=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],qa=be("check",b$);const _$=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],yr=be("chevron-down",_$);const x$=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],$u=be("chevron-left",x$);const k$=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Cs=be("chevron-right",k$);const w$=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Qg=be("chevron-up",w$);const $$=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],ht=be("circle-alert",$$);const C$=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 12-4-4-4 4",key:"177agl"}],["path",{d:"M12 16V8",key:"1sbj14"}]],S$=be("circle-arrow-up",C$);const E$=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],A$=be("circle-check",E$);const T$=[["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"}]],D$=be("circle-question-mark",T$);const O$=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],M$=be("circle",O$);const I$=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["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",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],P$=be("clipboard-list",I$);const R$=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],Li=be("clock",R$);const q$=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],L$=be("cloud",q$);const N$=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],eb=be("code",N$);const B$=[["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"}]],Ni=be("copy",B$);const F$=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],V$=be("credit-card",F$);const z$=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],j$=be("database",z$);const U$=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M6 12c0-1.7.7-3.2 1.8-4.2",key:"oqkarx"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M18 12c0 1.7-.7 3.2-1.8 4.2",key:"1eah9h"}]],H$=be("disc-3",U$);const K$=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],W$=be("disc",K$);const G$=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],wd=be("download",G$);const Y$=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],tb=be("external-link",Y$);const J$=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Z$=be("eye-off",J$);const X$=[["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"}]],Q$=be("eye",X$);const eC=[["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",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],ql=be("file-text",eC);const tC=[["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",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],aC=be("file",tC);const nC=[["path",{d:"M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8",key:"14sh0y"}],["path",{d:"M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z",key:"1970lx"}],["path",{d:"M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1",key:"l4dndm"}]],rC=be("files",nC);const lC=[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1jaruq"}]],oC=be("flag",lC);const sC=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],iC=be("folder",sC);const uC=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],cC=be("funnel",uC);const dC=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],fC=be("gauge",dC);const pC=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],vC=be("globe",pC);const mC=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],hC=be("graduation-cap",mC);const yC=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],Bi=be("grip-vertical",yC);const gC=[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2",key:"68ncm8"}],["path",{d:"M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2",key:"1ejuhz"}]],bC=be("heading-3",gC);const _C=[["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",key:"mvr1a0"}]],xC=be("heart",_C);const kC=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["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",key:"r6nss1"}]],wC=be("house",kC);const $C=[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["path",{d:"M10.41 10.41a2 2 0 1 1-2.83-2.83",key:"1bzlo9"}],["line",{x1:"13.5",x2:"6",y1:"13.5",y2:"21",key:"1q0aeu"}],["line",{x1:"18",x2:"21",y1:"12",y2:"15",key:"5mozeu"}],["path",{d:"M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59",key:"mmje98"}],["path",{d:"M21 15V5a2 2 0 0 0-2-2H9",key:"43el77"}]],am=be("image-off",$C);const CC=[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]],ab=be("image-plus",CC);const SC=[["path",{d:"M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10l-3.1-3.1a2 2 0 0 0-2.814.014L6 21",key:"9csbqa"}],["path",{d:"m14 19.5 3-3 3 3",key:"9vmjn0"}],["path",{d:"M17 22v-5.5",key:"1aa6fl"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]],EC=be("image-up",SC);const AC=[["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"}]],nb=be("image",AC);const TC=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],DC=be("inbox",TC);const OC=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Nn=be("info",OC);const MC=[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]],IC=be("italic",MC);const PC=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],RC=be("key-round",PC);const qC=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],LC=be("key",qC);const NC=[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]],BC=be("languages",NC);const FC=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],VC=be("layout-grid",FC);const zC=[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]],jC=be("leaf",zC);const UC=[["path",{d:"m16 6 4 14",key:"ji33uf"}],["path",{d:"M12 6v14",key:"1n7gus"}],["path",{d:"M8 8v12",key:"1gg7y9"}],["path",{d:"M4 4v16",key:"6qkkli"}]],HC=be("library",UC);const KC=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.93 4.93 4.24 4.24",key:"1ymg45"}],["path",{d:"m14.83 9.17 4.24-4.24",key:"1cb5xl"}],["path",{d:"m14.83 14.83 4.24 4.24",key:"q42g0n"}],["path",{d:"m9.17 14.83-4.24 4.24",key:"bqpfvv"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}]],WC=be("life-buoy",KC);const GC=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],rb=be("link",GC);const YC=[["path",{d:"M21 5H11",key:"us1j55"}],["path",{d:"M21 12H11",key:"wd7e0v"}],["path",{d:"M21 19H11",key:"saa85w"}],["path",{d:"m7 8-4 4 4 4",key:"o5hrat"}]],JC=be("list-indent-decrease",YC);const ZC=[["path",{d:"M21 5H11",key:"us1j55"}],["path",{d:"M21 12H11",key:"wd7e0v"}],["path",{d:"M21 19H11",key:"saa85w"}],["path",{d:"m3 8 4 4-4 4",key:"1a3j6y"}]],XC=be("list-indent-increase",ZC);const QC=[["path",{d:"M11 5h10",key:"1cz7ny"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 19h10",key:"11t30w"}],["path",{d:"M4 4h1v5",key:"10yrso"}],["path",{d:"M4 9h2",key:"r1h2o0"}],["path",{d:"M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",key:"xtkcd5"}]],lb=be("list-ordered",QC);const eS=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],ob=be("list",eS);const tS=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],On=be("loader-circle",tS);const aS=[["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"}]],ur=be("lock",aS);const nS=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],sb=be("log-out",nS);const rS=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],lS=be("mail",rS);const oS=[["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",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],sS=be("map-pin",oS);const iS=[["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",key:"1sd12s"}]],uS=be("message-circle",iS);const cS=[["path",{d:"m11 7.601-5.994 8.19a1 1 0 0 0 .1 1.298l.817.818a1 1 0 0 0 1.314.087L15.09 12",key:"80a601"}],["path",{d:"M16.5 21.174C15.5 20.5 14.372 20 13 20c-2.058 0-3.928 2.356-6 2-2.072-.356-2.775-3.369-1.5-4.5",key:"j0ngtp"}],["circle",{cx:"16",cy:"7",r:"5",key:"d08jfb"}]],dS=be("mic-vocal",cS);const fS=[["path",{d:"M5 12h14",key:"1ays0h"}]],ib=be("minus",fS);const pS=[["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",key:"kfwtm"}]],vS=be("moon",pS);const mS=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],hS=be("network",mS);const yS=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],gS=be("palette",yS);const bS=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],$f=be("panel-left-close",bS);const _S=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]],ub=be("panel-left-open",_S);const xS=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],kS=be("paperclip",xS);const wS=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],$S=be("pause",wS);const CS=[["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"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],Wo=be("pencil",CS);const SS=[["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",key:"9njp5v"}]],ES=be("phone",SS);const AS=[["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",key:"10ikf1"}]],TS=be("play",AS);const DS=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Ss=be("plus",DS);const OS=[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]],cb=be("puzzle",OS);const MS=[["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",key:"rib7q0"}],["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",key:"1ymkrd"}]],IS=be("quote",MS);const PS=[["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"}]],RS=be("redo-2",PS);const qS=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],LS=be("refresh-cw",qS);const NS=[["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"}]],pi=be("rotate-ccw",NS);const BS=[["path",{d:"m13.5 8.5-5 5",key:"1cs55j"}],["path",{d:"m8.5 8.5 5 5",key:"a8mexj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],db=be("search-x",BS);const FS=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],lo=be("search",FS);const VS=[["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",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],zS=be("send",VS);const jS=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],fb=be("settings",jS);const US=[["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",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],HS=be("shield-check",US);const KS=[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]],WS=be("shopping-cart",KS);const GS=[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]],YS=be("sliders-horizontal",GS);const JS=[["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",key:"r04s7s"}]],pb=be("star",JS);const ZS=[["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M14.837 16.385a6 6 0 1 1-7.223-7.222c.624-.147.97.66.715 1.248a4 4 0 0 0 5.26 5.259c.589-.255 1.396.09 1.248.715",key:"xlf6rm"}],["path",{d:"M16 12a4 4 0 0 0-4-4",key:"6vsxu"}],["path",{d:"m19 5-1.256 1.256",key:"1yg6a6"}],["path",{d:"M20 12h2",key:"1q8mjw"}]],XS=be("sun-moon",ZS);const QS=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],Es=be("sun",QS);const e3=[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]],t3=be("table",e3);const a3=[["path",{d:"M13.172 2a2 2 0 0 1 1.414.586l6.71 6.71a2.4 2.4 0 0 1 0 3.408l-4.592 4.592a2.4 2.4 0 0 1-3.408 0l-6.71-6.71A2 2 0 0 1 6 9.172V3a1 1 0 0 1 1-1z",key:"16rjxf"}],["path",{d:"M2 7v6.172a2 2 0 0 0 .586 1.414l6.71 6.71a2.4 2.4 0 0 0 3.191.193",key:"178nd4"}],["circle",{cx:"10.5",cy:"6.5",r:".5",fill:"currentColor",key:"12ikhr"}]],n3=be("tags",a3);const r3=[["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"}]],Tr=be("trash-2",r3);const l3=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Fi=be("triangle-alert",l3);const o3=[["path",{d:"M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978",key:"1n3hpd"}],["path",{d:"M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978",key:"rfe1zi"}],["path",{d:"M18 9h1.5a1 1 0 0 0 0-5H18",key:"7xy6bh"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6 9H4.5a1 1 0 0 1 0-5H6",key:"tex48p"}]],s3=be("trophy",o3);const i3=[["path",{d:"M6 4v6a6 6 0 0 0 12 0V4",key:"9kb039"}],["line",{x1:"4",x2:"20",y1:"20",y2:"20",key:"nun2al"}]],u3=be("underline",i3);const c3=[["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"}]],vb=be("undo-2",c3);const d3=[["path",{d:"m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71",key:"yqzxt4"}],["path",{d:"m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71",key:"4qinb0"}],["line",{x1:"8",x2:"8",y1:"2",y2:"5",key:"1041cp"}],["line",{x1:"2",x2:"5",y1:"8",y2:"8",key:"14m1p5"}],["line",{x1:"16",x2:"16",y1:"19",y2:"22",key:"rzdirn"}],["line",{x1:"19",x2:"22",y1:"16",y2:"16",key:"ox905f"}]],f3=be("unlink",d3);const p3=[["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"}]],Go=be("upload",p3);const v3=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],mb=be("user-minus",v3);const m3=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],hb=be("user-plus",m3);const h3=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],y3=be("user-round",h3);const g3=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],b3=be("user",g3);const _3=[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]],x3=be("users-round",_3);const k3=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],w3=be("users",k3);const $3=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],C3=be("wand-sparkles",$3);const S3=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],E3=be("wrench",S3);const A3=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Xt=be("x",A3),nm={archive:z2,"arrow-down":Wg,"arrow-left":$s,"arrow-right":K2,"arrow-up":Jg,"arrow-up-right":Yg,bell:X2,book:a$,bookmark:r$,box:s$,briefcase:u$,building:d$,calendar:Xg,camera:v$,"cassette-tape":h$,"chart-bar":g$,check:qa,"chevron-down":yr,"chevron-left":$u,"chevron-right":Cs,circle:M$,"circle-alert":ht,"circle-check":A$,"circle-question-mark":D$,"clipboard-list":P$,clock:Li,cloud:L$,code:eb,copy:Ni,"credit-card":V$,database:j$,disc:W$,"disc-3":H$,download:wd,"external-link":tb,file:aC,"file-text":ql,files:rC,flag:oC,folder:iC,funnel:cC,gauge:fC,globe:vC,"graduation-cap":hC,heart:xC,house:wC,image:nb,inbox:DC,info:Nn,key:LC,languages:BC,"layout-grid":VC,leaf:jC,library:HC,"life-buoy":WC,link:rb,list:ob,"list-ordered":lb,lock:ur,"log-out":sb,mail:lS,"map-pin":sS,"message-circle":uS,"mic-vocal":dS,minus:ib,network:hS,palette:gS,"panel-left-close":$f,"panel-left-open":ub,paperclip:kS,pause:$S,pencil:Wo,phone:ES,play:TS,plus:Ss,puzzle:cb,"refresh-cw":LS,search:lo,"search-x":db,settings:fb,"shield-check":HS,"shopping-cart":WS,star:pb,sun:Es,table:t3,tags:n3,"trash-2":Tr,"triangle-alert":Fi,trophy:s3,upload:Go,user:b3,"user-minus":mb,"user-plus":hb,users:w3,"users-round":x3,"wand-sparkles":C3,wrench:E3,x:Xt},T3={"icon-archive":"archive","icon-bar-chart":"chart-bar","icon-bell":"bell","icon-book":"book","icon-bookmark":"bookmark","icon-briefcase":"briefcase","icon-building":"building","icon-calendar":"calendar","icon-camera":"camera","icon-check":"check","icon-check-circle":"circle-check","icon-circle":"circle","icon-clock":"clock","icon-clock-o":"clock","icon-cloud":"cloud","icon-code":"code","icon-cog":"settings","icon-cogs":"settings","icon-comment":"message-circle","icon-comments":"message-circle","icon-comments-o":"message-circle","icon-copy":"copy","icon-credit-card":"credit-card","icon-cube":"box","icon-dashboard":"gauge","icon-database":"database","icon-download":"download","icon-edit":"pencil","icon-envelope":"mail","icon-envelope-o":"mail","icon-exclamation-triangle":"triangle-alert","icon-external-link":"external-link","icon-file":"file","icon-file-o":"file","icon-file-text":"file-text","icon-file-text-o":"file-text","icon-files-o":"files","icon-filter":"funnel","icon-flag":"flag","icon-folder":"folder","icon-folder-o":"folder","icon-globe":"globe","icon-graduation-cap":"graduation-cap","icon-group":"users","icon-heart":"heart","icon-home":"house","icon-inbox":"inbox","icon-info-circle":"info","icon-key":"key","icon-language":"languages","icon-leaf":"leaf","icon-life-ring":"life-buoy","icon-link":"link","icon-list":"list","icon-list-alt":"clipboard-list","icon-list-ol":"list-ordered","icon-list-ul":"list","icon-lock":"lock","icon-magic":"wand-sparkles","icon-map-marker":"map-pin","icon-minus":"minus","icon-paperclip":"paperclip","icon-pause":"pause","icon-pencil":"pencil","icon-phone":"phone","icon-photo":"image","icon-picture-o":"image","icon-play":"play","icon-plus":"plus","icon-question":"circle-question-mark","icon-question-circle":"circle-question-mark","icon-refresh":"refresh-cw","icon-search":"search","icon-shopping-cart":"shopping-cart","icon-sign-out":"log-out","icon-sitemap":"network","icon-star":"star","icon-table":"table","icon-tachometer":"gauge","icon-tags":"tags","icon-th":"layout-grid","icon-th-large":"layout-grid","icon-times":"x","icon-trash":"trash-2","icon-trash-o":"trash-2","icon-trophy":"trophy","icon-upload":"upload","icon-user":"user","icon-users":"users","icon-warning":"triangle-alert","icon-wrench":"wrench"},rm=Es;function mc(e,t){return Object.hasOwn(e,t)?e[t]:void 0}function As(e){if(!e)return rm;const t=e.trim();return mc(nm,t)??mc(nm,mc(T3,t)??"")??rm}const D3="(prefers-color-scheme: dark)",vi=["system","light","dark"];function yb(e){return typeof e=="string"&&vi.includes(e)}function O3(e=window,t="system"){const a=e.document.documentElement;if(t!=="system")return a.classList.toggle("dark",t==="dark"),()=>{};if(typeof e.matchMedia!="function")return a.classList.remove("dark"),()=>{};const n=e.matchMedia(D3),r=o=>{a.classList.toggle("dark",o)};r(n.matches);const l=o=>r(o.matches);return n.addEventListener("change",l),()=>n.removeEventListener("change",l)}const M3=4e3,ss=A([]),$d=new Map;let I3=1;const P3=Ct(ss);function Ie(e,t="success"){const a=I3++;return ss.value=[{id:a,text:e,tone:t},...ss.value],$d.set(a,setTimeout(()=>gb(a),M3)),a}function gb(e){const t=$d.get(e);t!==void 0&&(clearTimeout(t),$d.delete(e)),ss.value=ss.value.filter(a=>a.id!==e)}const bb="summer-admin.theme",Cf="summer-admin.locale",R3=/^[A-Za-z]{2,8}(?:[-_][A-Za-z0-9]{1,8})?$/,eo=A("system");let lm=()=>{};const om=Ct(eo),Vi=A(""),q3=Ct(Vi);function zi(){try{return typeof window>"u"?null:window.localStorage}catch{return null}}function Sf(e,t){try{t===null?zi()?.removeItem(e):zi()?.setItem(e,t)}catch{}}function Cd(e){Sf(bb,e==="system"?null:e)}function L3(){try{const e=zi()?.getItem(bb);return yb(e)?e:"system"}catch{return"system"}}function N3(){try{const e=zi()?.getItem(Cf)??"";return e.length<=16&&R3.test(e)?e:""}catch{return""}}const _b={reload(){window.location.reload()}};function ji(e){lm(),eo.value=e,lm=typeof window>"u"?()=>{}:O3(window,e)}function B3(e){const t=vi.indexOf(e);return vi[(t+1)%vi.length]??"system"}async function F3(e){const t=eo.value;ji(e),Cd(e);let a=!1;try{const{response:n}=await Re.PUT("/account/preferences",{body:{theme:e}});a=n.ok}catch{a=!1}a||(eo.value===e&&(ji(t),Cd(t)),Ie(h("backend::lang.myaccount.preferences_failed"),"danger"))}function sm(){return F3(B3(eo.value))}async function V3(e){const t=e?.preferences;t&&(yb(t.theme)&&(t.theme!==eo.value&&ji(t.theme),Cd(t.theme)),typeof t.locale=="string"&&(Vi.value=t.locale,t.locale!==""&&t.locale!==Ka.value&&await jg(t.locale).catch(()=>{}),Sf(Cf,t.locale===""?null:t.locale)))}async function z3(e){if(e===Vi.value)return;let t=!1;try{const{response:a}=await Re.PUT("/account/preferences",{body:{locale:e}});t=a.ok}catch{t=!1}if(!t){Ie(h("backend::lang.myaccount.preferences_failed"),"danger");return}Vi.value=e,Sf(Cf,e===""?null:e),_b.reload()}const xb="summer-admin.sidebar",j3="(max-width: 1099px)",Cu=A(!1),Yo=A(!1),U3=_(()=>Yo.value||Cu.value);function kb(){try{return typeof window>"u"?null:window.localStorage}catch{return null}}function H3(){try{return kb()?.getItem(xb)==="true"}catch{return!1}}function Ef(e){Cu.value=e;try{kb()?.setItem(xb,e?"true":"false")}catch{}}function K3(){if(Cu.value=H3(),typeof window>"u"||typeof window.matchMedia!="function")return Yo.value=!1,()=>{};const e=window.matchMedia(j3);Yo.value=e.matches;const t=a=>{Yo.value=a.matches};return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}function wb(){return{collapsed:U3,narrow:Ct(Yo),manual:Ct(Cu),setCollapsed:Ef,watchViewport:K3}}const W3=["id","aria-label"],G3={class:"px-2.5 pt-1 pb-2 text-[14px] font-bold","aria-hidden":"true"},Y3=le({__name:"SectionFlyout",props:{entry:{},id:{}},emits:["escape","leave","navigate"],setup(e,{expose:t,emit:a}){const n=e,r=a,l=ha(),o=A(null),i=_(()=>ro(l.path)),u=_(()=>n.entry.sideMenu.flatMap(v=>{const y=Ha(v.controller);return y?[{item:v,to:y,icon:As(v.icon),current:i.value===v.controller}]:[]}));function d(){return[...o.value?.querySelectorAll('[role="menuitem"]')??[]]}async function c(){await He(),d()[0]?.focus()}function f(v){return!!v&&!!o.value?.contains(v)}function m(v){const y=d(),x=y.indexOf(document.activeElement);switch(v.key){case"ArrowDown":v.preventDefault(),y[(x+1)%y.length]?.focus();break;case"ArrowUp":v.preventDefault(),y[(x-1+y.length)%y.length]?.focus();break;case"Home":v.preventDefault(),y[0]?.focus();break;case"End":v.preventDefault(),y[y.length-1]?.focus();break;case"Escape":v.preventDefault(),r("escape");break;case"Tab":r("leave");break}}return t({focusFirst:c,contains:f}),(v,y)=>(p(),g("div",{id:e.id,ref_key:"root",ref:o,role:"menu","data-section-flyout":"","aria-label":e.entry.label,class:"fixed top-3 left-[calc(var(--spacing-rail)+8px)] z-40 flex w-[230px] flex-col gap-0.5 rounded-[14px] border border-border bg-surface p-2 text-text shadow-pop",onKeydown:m},[b("span",G3,$(e.entry.label),1),(p(!0),g(me,null,Me(u.value,x=>(p(),j(s(Ra),{key:x.item.code,to:x.to,role:"menuitem",tabindex:"-1","aria-current":x.current?"page":void 0,class:ve([x.current?"bg-sel font-semibold text-text":"font-medium text-muted hover:bg-hover hover:text-text","flex h-[38px] items-center gap-3 rounded-tab px-2.5 no-underline transition-colors duration-150 ease-out"]),onClick:y[0]||(y[0]=C=>r("navigate"))},{default:F(()=>[(p(),j(Kt(x.icon),{size:18,"aria-hidden":"true"})),b("span",null,$(x.item.label),1)]),_:2},1032,["to","aria-current","class"]))),128))],40,W3))}}),J3=["aria-label"],Z3=["aria-label","title"],X3={class:"max-w-full [overflow-wrap:anywhere]"},Q3=["aria-label","title"],eE={class:"max-w-full [overflow-wrap:anywhere]"},tE=200,aE=le({__name:"PluginRail",setup(e){const t=ha(),{collapsed:a,narrow:n,setCollapsed:r}=wb(),l={system:{icon:XS,key:"backend::lang.nav.theme_system"},light:{icon:Es,key:"backend::lang.nav.theme_light"},dark:{icon:vS,key:"backend::lang.nav.theme_dark"}},o=_(()=>l[om.value].icon),i=_(()=>h("backend::lang.nav.theme",{mode:h(l[om.value].key)})),u=_(()=>ws(String(t.params.vendor??""),String(t.params.plugin??""))),d=_(()=>t.path==="/settings"||t.path.startsWith("/settings/")||Kg(t.path)!==null||u.value===null&&wu(ro(t.path))!==null),c=_(()=>qi.value.map(z=>({entry:z,to:kf(z)??"/",icon:As(z.icon),current:u.value?.code===z.code}))),f=A(null),m=A(null),v=_(()=>qi.value.find(z=>z.code===f.value)??null),y=new Map;let x=null,C=!1;function k(z){return`section-flyout-${z}`}function E(z,D){const N=D?.$el;N instanceof HTMLElement?y.set(z,N):y.delete(z)}function B(){x!==null&&(clearTimeout(x),x=null)}function O(){B(),f.value=null}function T(){B(),x=setTimeout(()=>{x=null;const z=document.activeElement,D=f.value;D!==null&&(y.get(D)===z||m.value?.contains(z))||(f.value=null)},tE)}function P(z){a.value&&(B(),f.value=z)}function R(z){C||P(z)}async function U(z,D){a.value&&(z.key==="Enter"||z.key==="ArrowDown"?(z.preventDefault(),P(D),await He(),await m.value?.focusFirst()):z.key==="Escape"&&f.value!==null&&(z.preventDefault(),O()))}function S(){const z=f.value;O(),z!==null&&(C=!0,y.get(z)?.focus(),C=!1)}function I(){r(!1),He(()=>document.querySelector("[data-sidebar-collapse]")?.focus())}return Ne(a,z=>{z||O()}),Et(B),(z,D)=>(p(),g("nav",{"aria-label":s(h)("backend::lang.nav.plugins"),class:"sticky top-0 flex h-screen w-rail shrink-0 flex-col items-center gap-1.5 self-start overflow-y-auto border-r border-side-border bg-side pt-3.5 pb-3"},[b("button",{type:"button","data-theme-toggle":"","aria-label":i.value,title:i.value,class:"mb-3.5 flex size-10 shrink-0 items-center justify-center rounded-inner bg-accent-soft transition-colors duration-150 ease-out hover:bg-side-hover",onClick:D[0]||(D[0]=(...N)=>s(sm)&&s(sm)(...N))},[(p(),j(Kt(o.value),{size:22,class:"text-accent","aria-hidden":"true"}))],8,Z3),(p(!0),g(me,null,Me(c.value,N=>(p(),j(s(Ra),{key:N.entry.code,ref_for:!0,ref:Z=>E(N.entry.code,Z),to:N.to,"data-rail-item":N.entry.code,"aria-current":N.current?"page":void 0,"aria-haspopup":s(a)?"menu":void 0,"aria-expanded":s(a)?f.value===N.entry.code?"true":"false":void 0,"aria-controls":s(a)&&f.value===N.entry.code?k(N.entry.code):void 0,class:ve([N.current?"bg-accent-soft font-bold text-accent":"text-side-text hover:bg-side-hover hover:text-white","flex w-[92px] flex-col items-center gap-1 rounded-inner px-1 py-2 text-center text-[11px] leading-[1.2] tracking-[-0.01em] no-underline transition-colors duration-150 ease-out"]),onMouseenter:Z=>P(N.entry.code),onMouseleave:T,onFocus:Z=>R(N.entry.code),onBlur:T,onKeydown:Z=>U(Z,N.entry.code)},{default:F(()=>[(p(),j(Kt(N.icon),{size:20,"aria-hidden":"true"})),b("span",X3,$(N.entry.label),1)]),_:2},1032,["to","data-rail-item","aria-current","aria-haspopup","aria-expanded","aria-controls","class","onMouseenter","onFocus","onKeydown"]))),128)),s(a)&&v.value?(p(),j(Y3,{key:0,id:k(v.value.code),ref_key:"flyout",ref:m,entry:v.value,onMouseenter:B,onMouseleave:T,onFocusin:B,onFocusout:T,onEscape:S,onLeave:T,onNavigate:O},null,8,["id","entry"])):G("",!0),D[1]||(D[1]=b("span",{class:"flex-1","aria-hidden":"true"},null,-1)),s(a)&&!s(n)?(p(),g("button",{key:1,type:"button","data-sidebar-expand":"","aria-label":s(h)("backend::lang.nav.expand"),title:s(h)("backend::lang.nav.expand"),class:"mb-1 flex size-10 items-center justify-center rounded-inner text-side-text transition-colors duration-150 ease-out hover:bg-side-hover hover:text-white",onClick:I},[L(s(ub),{size:20,"aria-hidden":"true"})],8,Q3)):G("",!0),s(O2)?(p(),j(s(Ra),{key:2,to:"/settings","data-rail-settings":"","aria-current":d.value?"page":void 0,class:ve([d.value?"bg-accent-soft font-bold text-accent":"text-side-text hover:bg-side-hover hover:text-white","flex w-[92px] flex-col items-center gap-1 rounded-inner px-1 py-2 text-center text-[11px] leading-[1.2] tracking-[-0.01em] no-underline transition-colors duration-150 ease-out"])},{default:F(()=>[L(s(fb),{size:20,"aria-hidden":"true"}),b("span",eE,$(s(h)("backend::lang.nav.settings")),1)]),_:1},8,["aria-current","class"])):G("",!0)],8,J3))}}),nE=["aria-label"],rE={class:"mb-3.5 flex h-10 items-center justify-between gap-2 pl-2"},lE={class:"truncate text-[16px] font-bold"},oE=["aria-label","title"],sE=le({__name:"SectionPanel",props:{entry:{}},setup(e){const t=e,a=ha(),n=_(()=>ro(a.path)),r=_(()=>t.entry.sideMenu.flatMap(o=>{const i=Ha(o.controller);return i?[{item:o,to:i,icon:As(o.icon),current:n.value===o.controller}]:[]}));function l(){Ef(!0),He(()=>document.querySelector("[data-sidebar-expand]")?.focus())}return(o,i)=>(p(),g("aside",{"aria-label":s(h)("backend::lang.nav.sections"),class:"sticky top-0 flex h-screen w-panel shrink-0 flex-col gap-0.5 self-start overflow-y-auto border-r border-border bg-surface px-3 py-3.5"},[b("div",rE,[b("span",lE,$(e.entry.label),1),b("button",{type:"button","data-sidebar-collapse":"","aria-label":s(h)("backend::lang.nav.collapse"),title:s(h)("backend::lang.nav.collapse"),class:"flex size-[30px] shrink-0 items-center justify-center rounded-tab text-muted transition-colors duration-150 ease-out hover:bg-hover hover:text-text",onClick:l},[L(s($f),{size:18,"aria-hidden":"true"})],8,oE)]),(p(!0),g(me,null,Me(r.value,u=>(p(),j(s(Ra),{key:u.item.code,to:u.to,"aria-current":u.current?"page":void 0,class:ve([u.current?"bg-sel font-semibold text-text":"font-medium text-muted hover:bg-hover hover:text-text","flex h-nav items-center gap-3 rounded-control px-3 no-underline transition-colors duration-150 ease-out"])},{default:F(()=>[(p(),j(Kt(u.icon),{size:18,"aria-hidden":"true"})),b("span",null,$(u.item.label),1)]),_:2},1032,["to","aria-current","class"]))),128))],8,nE))}}),iE=["aria-label"],uE={class:"mb-3.5 flex h-10 items-center justify-between gap-2 pl-2"},cE={class:"truncate text-[16px] font-bold"},dE=["aria-label","title"],fE=le({__name:"SettingsPanel",props:{section:{}},setup(e){function t(){Ef(!0),He(()=>document.querySelector("[data-sidebar-expand]")?.focus())}return(a,n)=>(p(),g("aside",{"data-settings-panel":"","aria-label":s(h)("backend::lang.nav.sections"),class:"sticky top-0 flex h-screen w-panel shrink-0 flex-col gap-0.5 self-start overflow-y-auto border-r border-border bg-surface px-3 py-3.5"},[b("div",uE,[b("span",cE,$(e.section.category||s(h)("backend::lang.nav.settings")),1),b("button",{type:"button","data-sidebar-collapse":"","aria-label":s(h)("backend::lang.nav.collapse"),title:s(h)("backend::lang.nav.collapse"),class:"flex size-[30px] shrink-0 items-center justify-center rounded-tab text-muted transition-colors duration-150 ease-out hover:bg-hover hover:text-text",onClick:t},[L(s($f),{size:18,"aria-hidden":"true"})],8,dE)]),(p(!0),g(me,null,Me(e.section.entries,r=>(p(),j(s(Ra),{key:r.code,to:s(wf)(r),"data-settings-panel-item":r.code,"aria-current":r.code===e.section.current.code?"page":void 0,class:ve([r.code===e.section.current.code?"bg-sel font-semibold text-text":"font-medium text-muted hover:bg-hover hover:text-text","flex h-nav items-center gap-3 rounded-control px-3 no-underline transition-colors duration-150 ease-out"])},{default:F(()=>[(p(),j(Kt(s(As)(r.icon)),{size:18,"aria-hidden":"true"})),b("span",null,$(r.label),1)]),_:2},1032,["to","data-settings-panel-item","aria-current","class"]))),128))],8,iE))}}),pE=["aria-label"],vE={class:"flex min-w-0 items-center gap-2"},mE=["aria-current"],hE=le({__name:"Breadcrumbs",setup(e){const t=ha(),a=_(()=>{if(t.name==="account")return[{label:h("backend::lang.myaccount.menu_label")}];if(t.name==="plugins")return[{label:h("backend::lang.nav.settings"),to:"/settings"},{label:h("backend::lang.plugins.title")}];if(t.name==="settings"||t.name==="settings-form"){const i=[{label:h("backend::lang.nav.settings"),to:"/settings"}],u=t.name==="settings-form"?os(String(t.params.code??"")):null;return u&&i.push({label:u.label}),i}const n=ws(String(t.params.vendor??""),String(t.params.plugin??"")),r=ro(t.path);if(!n){const i=wu(r);if(!i)return[];const u=[{label:h("backend::lang.nav.settings"),to:"/settings"},{label:i.label,to:wf(i)}];return(t.name==="record"||t.name==="create")&&qo.value!==""&&u.push({label:qo.value}),u}const l=[{label:n.label,to:kf(n)??void 0}],o=n.sideMenu.find(i=>i.controller===r)??null;return o&&l.push({label:o.label,to:Ha(o.controller)??void 0}),(t.name==="record"||t.name==="create")&&qo.value!==""&&l.push({label:qo.value}),l});return(n,r)=>(p(),g("nav",{"aria-label":s(h)("backend::lang.nav.breadcrumbs"),class:"min-w-0"},[b("ol",vE,[(p(!0),g(me,null,Me(a.value,(l,o)=>(p(),g("li",{key:o,"data-crumb":"",class:"flex min-w-0 items-center gap-2"},[o>0?(p(),j(s(Cs),{key:0,size:14,class:"shrink-0 text-muted","aria-hidden":"true"})):G("",!0),o===a.value.length-1||!l.to?(p(),g("span",{key:1,"aria-current":o===a.value.length-1?"page":void 0,class:ve([o===a.value.length-1?"font-semibold text-text":"text-muted","truncate"])},$(l.label),11,mE)):(p(),j(s(Ra),{key:2,to:l.to,class:"truncate text-muted no-underline transition-colors duration-150 ease-out hover:text-text"},{default:F(()=>[ge($(l.label),1)]),_:2},1032,["to"]))]))),128))])],8,pE))}});function im(e){return typeof e=="string"?`'${e}'`:new gE().serialize(e)}const yE=" _-,;:!?.'\"()[]{}@*/\\&#%`^+<=>|~$0123456789abcdefghijklmnopqrstuvwxyz",Us=(function(){const e=new Uint8Array(128);for(let t=0;t<69;t++)e[yE.charCodeAt(t)]=t+1;for(let t=65;t<=90;t++)e[t]=e[t+32];return e})();function hc(e,t){if(e===t)return 0;const a=Math.min(e.length,t.length);let n=0;for(let r=0;ro?-1:1)}return e.length!==t.length?e.lengththis.compare(o[0],i[0]));let l=`${a}{`;for(let o=0;othis.compare(n,r)))}`}$Map(a){return this.serializeObjectEntries("Map",a.entries())}}for(const t of["Error","RegExp","URL"])e.prototype["$"+t]=function(a){return`${t}(${a})`};for(const t of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])e.prototype["$"+t]=function(a){return`${t}[${a.join(",")}]`};for(const t of["BigInt64Array","BigUint64Array"])e.prototype["$"+t]=function(a){return`${t}[${a.join("n,")}${a.length>0?"n":""}]`};return e})();function is(e,t){return e===t||im(e)===im(t)}function Hs(e,t){let a=e;const n=t.toString(),r=n.indexOf("."),l=r>=0?n.length-r:0;if(l>0){const o=10**l;a=Math.round(a*o)/o}return a}function yc(e,t,a,n){t=Number(t),a=Number(a);const r=(e-(Number.isNaN(t)?0:t))%n;let l=Hs(Math.abs(r)*2>=n?e+Math.sign(r)*(n-Math.abs(r)):e-r,n);return Number.isNaN(t)?!Number.isNaN(a)&&l>a&&(l=Math.floor(Hs(a/n,n))*n):la&&(l=t+Math.floor(Hs((a-t)/n,n))*n),l=Hs(l,n),l}function At(e,t){const a=typeof e=="string"&&!t?`${e}Context`:t,n=Symbol(a);return[o=>{const i=it(n,o);if(i||i===null)return i;throw new Error(`Injection \`${n.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},o=>(vt(n,o),o)]}function Gt(){let e=document.activeElement;if(e==null)return null;for(;e!=null&&e.shadowRoot!=null&&e.shadowRoot.activeElement!=null;)e=e.shadowRoot.activeElement;return e}function Af(e,t,a){const n=a.originalEvent.target,r=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:a});t&&n.addEventListener(e,t,{once:!0}),n.dispatchEvent(r)}function ka(e){return e==null}function um(e,t){return ka(e)?!1:Array.isArray(e)?e.some(a=>is(a,t)):is(e,t)}function bE(e,t){var a;const n=ul();return Ca(()=>{n.value=e()},{...t,flush:(a=t?.flush)!==null&&a!==void 0?a:"sync"}),Ct(n)}function $b(e,t){return af()?(sy(e,t),!0):!1}function _E(e){let t=!1,a;const n=oy(!0);return((...r)=>(t||(a=n.run(()=>e(...r)),t=!0),a))}const Un=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const xE=e=>typeof e<"u",kE=Object.prototype.toString,wE=e=>kE.call(e)==="[object Object]",cm=$E();function $E(){var e,t,a;return Un&&!!(!((e=window)===null||e===void 0||(e=e.navigator)===null||e===void 0)&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)===null||t===void 0||(t=t.navigator)===null||t===void 0?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test((a=window)===null||a===void 0?void 0:a.navigator.userAgent))}function gc(e){return Array.isArray(e)?e:[e]}function CE(e){return mn()}function Cb(e){if(!Un)return e;let t=0,a,n;const r=()=>{t-=1,n&&t<=0&&(n.stop(),a=void 0,n=void 0)};return((...l)=>(t+=1,n||(n=oy(!0),a=n.run(()=>e(...l))),$b(r),a))}function SE(e){return Va(Dt(e)?new Proxy({},{get(t,a,n){return s(Reflect.get(e.value,a,n))},set(t,a,n){return Dt(e.value[a])&&!Dt(n)?e.value[a].value=n:e.value[a]=n,!0},deleteProperty(t,a){return Reflect.deleteProperty(e.value,a)},has(t,a){return Reflect.has(e.value,a)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}}):e)}function EE(e){return SE(_(e))}function Tf(e,...t){const a=t.flat(),n=a[0];return EE(()=>Object.fromEntries(typeof n=="function"?Object.entries(Ht(e)).filter(([r,l])=>!n(ca(l),r)):Object.entries(Ht(e)).filter(r=>!a.includes(r[0]))))}function AE(e,t=1e4){return ix((a,n)=>{let r=ca(e),l;const o=()=>setTimeout(()=>{r=ca(e),n()},ca(t));return $b(()=>{clearTimeout(l)}),{get(){return a(),r},set(i){r=i,n(),clearTimeout(l),l=o()}}})}function TE(e,t){CE()&&Et(e,t)}function DE(e,t,a){return Ne(e,t,{...a,immediate:!0})}const Df=Un?window:void 0;function dl(e){var t;const a=ca(e);return(t=a?.$el)!==null&&t!==void 0?t:a}function to(...e){const t=(n,r,l,o)=>(n.addEventListener(r,l,o),()=>n.removeEventListener(r,l,o)),a=_(()=>{const n=gc(ca(e[0])).filter(r=>r!=null);return n.every(r=>typeof r!="string")?n:void 0});return DE(()=>{var n,r;return[(n=(r=a.value)===null||r===void 0?void 0:r.map(l=>dl(l)))!==null&&n!==void 0?n:[Df].filter(l=>l!=null),gc(ca(a.value?e[1]:e[0])),gc(s(a.value?e[2]:e[1])),ca(a.value?e[3]:e[2])]},([n,r,l,o],i,u)=>{if(!n?.length||!r?.length||!l?.length)return;const d=wE(o)?{...o}:o,c=n.flatMap(f=>r.flatMap(m=>l.map(v=>t(f,m,v,d))));u(()=>{c.forEach(f=>f())})},{flush:"post"})}function OE(){const e=ul(!1),t=mn();return t&&xt(()=>{e.value=!0},t),e}function ME(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function IE(...e){let t,a,n={};e.length===3?(t=e[0],a=e[1],n=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,a=e[0],n=e[1]):(t=e[0],a=e[1]):(t=!0,a=e[0]);const{target:r=Df,eventName:l="keydown",passive:o=!1,dedupe:i=!1}=n,u=ME(t);return to(r,l,c=>{c.repeat&&ca(i)||u(c)&&a(c)},o)}function PE(e){return JSON.parse(JSON.stringify(e))}function qt(e,t,a,n={}){var r,l;const{clone:o=!1,passive:i=!1,eventName:u,deep:d=!1,defaultValue:c,shouldEmit:f}=n,m=mn(),v=a||m?.emit||(m==null||(r=m.$emit)===null||r===void 0?void 0:r.bind(m))||(m==null||(l=m.proxy)===null||l===void 0||(l=l.$emit)===null||l===void 0?void 0:l.bind(m?.proxy));let y=u;t||(t="modelValue"),y=y||`update:${t.toString()}`;const x=E=>o?typeof o=="function"?o(E):PE(E):E,C=()=>xE(e[t])?x(e[t]):c,k=E=>{f?f(E)&&v(y,E):v(y,E)};if(i){const E=A(C());let B=!1;return Ne(()=>e[t],O=>{B||(B=!0,E.value=x(O),He(()=>B=!1))}),Ne(E,O=>{!B&&(O!==e[t]||d)&&k(O)},{deep:d}),E}else return _({get(){return C()},set(E){k(E)}})}function Of(e){return e?e.flatMap(t=>t.type===me?Of(t.children):[t]):[]}const RE=["INPUT","TEXTAREA"];function dm(e,t,a,n={}){if(!t||n.enableIgnoredElement&&RE.includes(t.nodeName))return null;const{arrowKeyOptions:r="both",attributeName:l="[data-reka-collection-item]",itemsArray:o=[],loop:i=!0,dir:u="ltr",preventScroll:d=!0,focus:c=!1}=n,[f,m,v,y,x,C]=[e.key==="ArrowRight",e.key==="ArrowLeft",e.key==="ArrowUp",e.key==="ArrowDown",e.key==="Home",e.key==="End"],k=v||y,E=f||m;if(!x&&!C&&(!k&&!E||r==="vertical"&&E||r==="horizontal"&&k))return null;const B=a?Array.from(a.querySelectorAll(l)):o;if(!B.length)return null;d&&e.preventDefault();let O=null;return E||k?O=Sb(B,t,{goForward:k?y:u==="ltr"?f:m,loop:i}):x?O=B.at(0)||null:C&&(O=B.at(-1)||null),c&&O?.focus(),O}function Sb(e,t,a,n=e.includes(t)?e.length:e.length+1){if(--n===0)return null;const r=e.indexOf(t);let l;if(r===-1?l=a.goForward?0:e.length-1:l=a.goForward?r+1:r-1,!a.loop&&(l<0||l>=e.length))return null;const o=(l+e.length)%e.length,i=e[o];return i?i.hasAttribute("disabled")&&i.getAttribute("disabled")!=="false"?Sb(e,i,a,n):i:null}const[Su]=At("ConfigProvider");function bc(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function Sd(e,t,a=".",n){if(!bc(t))return Sd(e,{},a,n);const r={...t};for(const l of Object.keys(e)){if(l==="__proto__"||l==="constructor")continue;const o=e[l];o!=null&&(n&&n(r,l,o,a)||(Array.isArray(o)&&Array.isArray(r[l])?r[l]=[...o,...r[l]]:bc(o)&&bc(r[l])?r[l]=Sd(o,r[l],(a?`${a}.`:"")+l.toString(),n):r[l]=o))}return r}function qE(e){return(...t)=>t.reduce((a,n)=>Sd(a,n,"",e),{})}const Eb=qE(),LE=Cb(()=>{const e=A(new Map),t=A(),a=_(()=>{for(const o of e.value.values())if(o)return!0;return!1}),n=Su({scrollBody:A(!0)});let r=null;const l=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.documentElement.style.removeProperty("--scrollbar-width"),document.body.style.overflow=t.value??"",cm&&r?.(),t.value=void 0};return Ne(a,(o,i)=>{if(!Un)return;if(!o){i&&l();return}t.value===void 0&&(t.value=document.body.style.overflow);const u=window.innerWidth-document.documentElement.clientWidth,d={padding:u,margin:0},c=n.scrollBody?.value?typeof n.scrollBody.value=="object"?Eb({padding:n.scrollBody.value.padding===!0?u:n.scrollBody.value.padding,margin:n.scrollBody.value.margin===!0?u:n.scrollBody.value.margin},d):d:{padding:0,margin:0};u>0&&(document.body.style.paddingRight=typeof c.padding=="number"?`${c.padding}px`:String(c.padding),document.body.style.marginRight=typeof c.margin=="number"?`${c.margin}px`:String(c.margin),document.documentElement.style.setProperty("--scrollbar-width",`${u}px`),document.body.style.overflow="hidden"),cm&&(r=to(document,"touchmove",f=>NE(f),{passive:!1})),He(()=>{a.value&&(document.body.style.pointerEvents="none",document.body.style.overflow="hidden")})},{immediate:!0,flush:"sync"}),e});function Mf(e){const t=Math.random().toString(36).substring(2,7),a=LE();a.value.set(t,e??!1);const n=_({get:()=>a.value.get(t)??!1,set:r=>a.value.set(t,r)});return TE(()=>{a.value.delete(t)}),n}function Ab(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth1?!0:(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}function Ul(e,t){return e-t*Math.floor(e/t)}const Tb=1721426;function Qr(e,t,a,n){t=Ts(e,t);let r=t-1,l=-2;return a<=2?l=0:cr(t)&&(l=-1),Tb-1+365*r+Math.floor(r/4)-Math.floor(r/100)+Math.floor(r/400)+Math.floor((367*a-362)/12+l+n)}function cr(e){return e%4===0&&(e%100!==0||e%400===0)}function Ts(e,t){return e==="BC"?1-t:t}function Eu(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const BE={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class Wa{fromJulianDay(t){let a=t,n=a-Tb,r=Math.floor(n/146097),l=Ul(n,146097),o=Math.floor(l/36524),i=Ul(l,36524),u=Math.floor(i/1461),d=Ul(i,1461),c=Math.floor(d/365),f=r*400+o*100+u*4+c+(o!==4&&c!==4?1:0),[m,v]=Eu(f),y=a-Qr(m,v,1,1),x=2;a0&&t===Ga()&&!Mb())return new Date(e).getTimezoneOffset()*-6e4;let{year:a,month:n,day:r,hour:l,minute:o,second:i}=Pb(e,t);return Ib(a,n,r,l,o,i,0)-Math.floor(e/1e3)*1e3}const hm=new Map;function Pb(e,t){let a=hm.get(t);a||(a=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),hm.set(t,a));let n=a.formatToParts(new Date(e)),r={};for(let l of n)l.type!=="literal"&&(r[l.type]=l.value);return{year:r.era==="BC"||r.era==="B"?-r.year+1:+r.year,month:+r.month,day:+r.day,hour:r.hour==="24"?0:+r.hour,minute:+r.minute,second:+r.second}}const ym=864e5;function WE(e,t,a,n){return(a===n?[a]:[a,n]).filter(l=>GE(e,t,l))}function GE(e,t,a){let n=Pb(a,t);return e.year===n.year&&e.month===n.month&&e.day===n.day&&e.hour===n.hour&&e.minute===n.minute&&e.second===n.second}function En(e,t,a="compatible"){let n=fn(e);if(t==="UTC")return ao(n);if(t===Ga()&&a==="compatible"&&!Mb()){n=pa(n,new Wa);let u=new Date,d=Ts(n.era,n.year);return u.setFullYear(d,n.month-1,n.day),u.setHours(n.hour,n.minute,n.second,n.millisecond),u.getTime()}let r=ao(n),l=Ad(r-ym,t),o=Ad(r+ym,t),i=WE(n,t,r-l,r-o);if(i.length===1)return i[0];if(i.length>1)switch(a){case"compatible":case"earlier":return i[0];case"later":return i[i.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(a){case"earlier":return Math.min(r-l,r-o);case"compatible":case"later":return Math.max(r-l,r-o);case"reject":throw new RangeError("No such absolute time found")}}function Rb(e,t,a="compatible"){return new Date(En(e,t,a))}function An(e,t){let a=Ad(e,t),n=new Date(e+a),r=n.getUTCFullYear(),l=n.getUTCMonth()+1,o=n.getUTCDate(),i=n.getUTCHours(),u=n.getUTCMinutes(),d=n.getUTCSeconds(),c=n.getUTCMilliseconds();return new Bn(r<1?"BC":"AD",r<1?-r+1:r,l,o,t,a,i,u,d,c)}function YE(e){return new _t(e.calendar,e.era,e.year,e.month,e.day)}function fn(e,t){let a=0,n=0,r=0,l=0;if("timeZone"in e)({hour:a,minute:n,second:r,millisecond:l}=e);else if("hour"in e&&!t)return e;return t&&({hour:a,minute:n,second:r,millisecond:l}=t),new br(e.calendar,e.era,e.year,e.month,e.day,a,n,r,l)}function pa(e,t){if(Pf(e.calendar,t))return e;let a=t.fromJulianDay(e.calendar.toJulianDay(e)),n=e.copy();return n.calendar=t,n.era=a.era,n.year=a.year,n.month=a.month,n.day=a.day,ll(n),n}function Rf(e,t,a){if(e instanceof Bn)return e.timeZone===t?e:Tu(e,t);let n=En(e,t,a);return An(n,t)}function JE(e){let t=ao(e)-e.offset;return new Date(t)}function Tu(e,t){let a=ao(e)-e.offset;return pa(An(a,t),e.calendar)}const wo=36e5;function Du(e,t){let a=e.copy(),n="hour"in a?Bb(a,t):0;Td(a,t.years||0),a.calendar.balanceYearMonth&&a.calendar.balanceYearMonth(a,e),a.month+=t.months||0,Dd(a),qb(a),a.day+=(t.weeks||0)*7,a.day+=t.days||0,a.day+=n,ZE(a),a.calendar.balanceDate&&a.calendar.balanceDate(a),a.year<1&&(a.year=1,a.month=1,a.day=1);let r=a.calendar.getYearsInEra(a);if(a.year>r){let o=a.calendar.isInverseEra?.(a);a.year=r,a.month=o?1:a.calendar.getMonthsInYear(a),a.day=o?1:a.calendar.getDaysInMonth(a)}a.month<1&&(a.month=1,a.day=1);let l=a.calendar.getMonthsInYear(a);return a.month>l&&(a.month=l,a.day=a.calendar.getDaysInMonth(a)),a.day=Math.max(1,Math.min(a.calendar.getDaysInMonth(a),a.day)),a}function Td(e,t){e.calendar.isInverseEra?.(e)&&(t=-t),e.year+=t}function Dd(e){for(;e.month<1;)Td(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Td(e,1)}function ZE(e){for(;e.day<1;)e.month--,Dd(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Dd(e)}function qb(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function ll(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),qb(e)}function qf(e){let t={};for(let a in e)typeof e[a]=="number"&&(t[a]=-e[a]);return t}function Lb(e,t){return Du(e,qf(t))}function Lf(e,t){let a=e.copy();return t.era!=null&&(a.era=t.era),t.year!=null&&(a.year=t.year),t.month!=null&&(a.month=t.month),t.day!=null&&(a.day=t.day),ll(a),a}function us(e,t){let a=e.copy();return t.hour!=null&&(a.hour=t.hour),t.minute!=null&&(a.minute=t.minute),t.second!=null&&(a.second=t.second),t.millisecond!=null&&(a.millisecond=t.millisecond),Nb(a),a}function XE(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Ks(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Ks(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Ks(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Ks(e.hour,24),t}function Nb(e){e.millisecond=Math.max(0,Math.min(e.millisecond,999)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function Ks(e,t){let a=e%t;return a<0&&(a+=t),a}function Bb(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,XE(e)}function Fb(e,t){let a=e.copy();return Bb(a,t),a}function QE(e,t){return Fb(e,qf(t))}function Nf(e,t,a,n){let r=e.copy();switch(t){case"era":{let l=e.calendar.getEras(),o=l.indexOf(e.era);if(o<0)throw new Error("Invalid era: "+e.era);o=Tn(o,a,0,l.length-1,n?.round),r.era=l[o],ll(r);break}case"year":r.calendar.isInverseEra?.(r)&&(a=-a),r.year=Tn(e.year,a,-1/0,9999,n?.round),r.year===-1/0&&(r.year=1),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,e);break;case"month":r.month=Tn(e.month,a,1,e.calendar.getMonthsInYear(e),n?.round);break;case"day":r.day=Tn(e.day,a,1,e.calendar.getDaysInMonth(e),n?.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(r),ll(r),r}function Bf(e,t,a,n){let r=e.copy();switch(t){case"hour":{let l=e.hour,o=0,i=23;if(n?.hourCycle===12){let u=l>=12;o=u?12:0,i=u?23:11}r.hour=Tn(l,a,o,i,n?.round);break}case"minute":r.minute=Tn(e.minute,a,0,59,n?.round);break;case"second":r.second=Tn(e.second,a,0,59,n?.round);break;case"millisecond":r.millisecond=Tn(e.millisecond,a,0,999,n?.round);break;default:throw new Error("Unsupported field "+t)}return r}function Tn(e,t,a,n,r=!1){if(r){e+=Math.sign(t),e0?e=Math.ceil(e/l)*l:e=Math.floor(e/l)*l,e>n&&(e=a)}else e+=t,en&&(e=a+(e-n-1));return e}function Vb(e,t){let a;if(t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0){let r=Du(fn(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});a=En(r,e.timeZone)}else a=ao(e)-e.offset;a+=t.milliseconds||0,a+=(t.seconds||0)*1e3,a+=(t.minutes||0)*6e4,a+=(t.hours||0)*36e5;let n=An(a,e.timeZone);return pa(n,e.calendar)}function eA(e,t){return Vb(e,qf(t))}function tA(e,t,a,n){switch(t){case"hour":{let r=0,l=23;if(n?.hourCycle===12){let y=e.hour>=12;r=y?12:0,l=y?23:11}let o=fn(e),i=pa(us(o,{hour:r}),new Wa),u=[En(i,e.timeZone,"earlier"),En(i,e.timeZone,"later")].filter(y=>An(y,e.timeZone).day===i.day)[0],d=pa(us(o,{hour:l}),new Wa),c=[En(d,e.timeZone,"earlier"),En(d,e.timeZone,"later")].filter(y=>An(y,e.timeZone).day===d.day).pop(),f=ao(e)-e.offset,m=Math.floor(f/wo),v=f%wo;return f=Tn(m,a,Math.floor(u/wo),Math.floor(c/wo),n?.round)*wo+v,pa(An(f,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Bf(e,t,a,n);case"era":case"year":case"month":case"day":{let r=Nf(fn(e),t,a,n),l=En(r,e.timeZone);return pa(An(l,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function aA(e,t,a){let n=fn(e),r=us(Lf(n,t),t);if(r.compare(n)===0)return e;let l=En(r,e.timeZone,a);return pa(An(l,e.timeZone),e.calendar)}const nA=/^(\d{2})(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,rA=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,zb=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function lA(e){let t=e.match(nA);if(!t)throw new Error("Invalid ISO 8601 time string: "+e);return new on(ea(t[1],0,23),t[2]?ea(t[2],0,59):0,t[3]?ea(t[3],0,59):0,t[4]?ea(t[4],0,1/0)*1e3:0)}function jb(e){let t=e.match(rA);if(!t)throw zb.test(e)?new Error(`Invalid ISO 8601 date string: ${e}. Use parseAbsolute() instead.`):new Error("Invalid ISO 8601 date string: "+e);let a=new _t(ea(t[1],0,9999),ea(t[2],1,12),1);return a.day=ea(t[3],1,a.calendar.getDaysInMonth(a)),a}function gm(e,t){let a=e.match(zb);if(!a)throw new Error("Invalid ISO 8601 date time string: "+e);let n=ea(a[1],-9999,9999),r=n<1?"BC":"AD",l=new Bn(r,n<1?-n+1:n,ea(a[2],1,12),1,t,0,a[4]?ea(a[4],0,23):0,a[5]?ea(a[5],0,59):0,a[6]?ea(a[6],0,59):0,a[7]?ea(a[7],0,1/0)*1e3:0);return l.day=ea(a[3],0,l.calendar.getDaysInMonth(l)),a[8]&&(l.offset=ea(a[8],-23,23)*36e5+ea(a[9]??"0",0,59)*6e4),Tu(l,t)}function ea(e,t,a){let n=Number(e);if(na)throw new RangeError(`Value out of range: ${t} <= ${n} <= ${a}`);return n}function Ub(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function Hb(e){let t=pa(e,new Wa),a;return t.era==="BC"?a=t.year===1?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):a=String(t.year).padStart(4,"0"),`${a}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function Kb(e){return`${Hb(e)}T${Ub(e)}`}function oA(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let a=Math.floor(e/36e5),n=Math.floor(e%36e5/6e4),r=Math.floor(e%36e5%6e4/1e3),l=`${t}${String(a).padStart(2,"0")}:${String(n).padStart(2,"0")}`;return r!==0&&(l+=`:${String(r).padStart(2,"0")}`),l}function sA(e){return`${Kb(e)}${oA(e.offset)}[${e.timeZone}]`}function Ff(e){let t=typeof e[0]=="object"?e.shift():new Wa,a;if(typeof e[0]=="string")a=e.shift();else{let o=t.getEras();a=o[o.length-1]}let n=e.shift(),r=e.shift(),l=e.shift();return[t,a,n,r,l]}class _t{#e;constructor(...t){let[a,n,r,l,o]=Ff(t);this.calendar=a,this.era=n,this.year=r,this.month=l,this.day=o,ll(this)}copy(){return this.era?new _t(this.calendar,this.era,this.year,this.month,this.day):new _t(this.calendar,this.year,this.month,this.day)}add(t){return Du(this,t)}subtract(t){return Lb(this,t)}set(t){return Lf(this,t)}cycle(t,a,n){return Nf(this,t,a,n)}toDate(t){return Rb(this,t)}toString(){return Hb(this)}compare(t){return Db(this,t)}}class on{#e;constructor(t=0,a=0,n=0,r=0){this.hour=t,this.minute=a,this.second=n,this.millisecond=r,Nb(this)}copy(){return new on(this.hour,this.minute,this.second,this.millisecond)}add(t){return Fb(this,t)}subtract(t){return QE(this,t)}set(t){return us(this,t)}cycle(t,a,n){return Bf(this,t,a,n)}toString(){return Ub(this)}compare(t){return Ob(this,t)}}class br{#e;constructor(...t){let[a,n,r,l,o]=Ff(t);this.calendar=a,this.era=n,this.year=r,this.month=l,this.day=o,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,ll(this)}copy(){return this.era?new br(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new br(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Du(this,t)}subtract(t){return Lb(this,t)}set(t){return Lf(us(this,t),t)}cycle(t,a,n){switch(t){case"era":case"year":case"month":case"day":return Nf(this,t,a,n);default:return Bf(this,t,a,n)}}toDate(t,a){return Rb(this,t,a)}toString(){return Kb(this)}compare(t){let a=Db(this,t);return a===0?Ob(this,fn(t)):a}}class Bn{#e;constructor(...t){let[a,n,r,l,o]=Ff(t),i=t.shift(),u=t.shift();this.calendar=a,this.era=n,this.year=r,this.month=l,this.day=o,this.timeZone=i,this.offset=u,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,ll(this)}copy(){return this.era?new Bn(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new Bn(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return Vb(this,t)}subtract(t){return eA(this,t)}set(t,a){return aA(this,t,a)}cycle(t,a,n){return tA(this,t,a,n)}toDate(){return JE(this)}toString(){return sA(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-Rf(t,this.timeZone).toDate().getTime()}}const Kl=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],iA=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],mi=[1867,1911,1925,1988,2018],ir=["meiji","taisho","showa","heisei","reiwa"];function bm(e){const t=Kl.findIndex(([a,n,r])=>e.year=0){let[,r,l]=Kl[a];t.month=Math.max(r,t.month),t.month===r&&(t.day=Math.max(l,t.day))}}getEras(){return ir}getYearsInEra(t){let a=ir.indexOf(t.era),n=Kl[a],r=Kl[a+1];if(r==null)return 9999-n[0]+1;let l=r[0]-n[0];return(t.month0?["minguo",t]:["before_minguo",1-t]}class dA extends Wa{fromJulianDay(t){let a=super.fromJulianDay(t),n=Ts(a.era,a.year),[r,l]=km(n);return new _t(this,r,l,a.month,a.day)}toJulianDay(t){return super.toJulianDay(wm(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[a,n]=km(Gb(t));t.era=a,t.year=n}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(wm(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-Ui}constructor(...t){super(...t),this.identifier="roc"}}function wm(e){let[t,a]=Eu(Gb(e));return new _t(t,a,e.month,e.day)}const $m=1948320,Cm=[0,31,62,93,124,155,186,216,246,276,306,336];class fA{fromJulianDay(t){let a=t-$m,n=1+Math.floor((33*a+3)/12053),r=365*(n-1)+Math.floor((8*n+21)/33),l=a-r,o=l<216?Math.floor(l/31):Math.floor((l-6)/30),i=l-Cm[o]+1;return new _t(this,n,o+1,i)}toJulianDay(t){let a=$m-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return a+=Cm[t.month-1],a+=t.day,a}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||Ul(25*t.year+11,33)<8?30:29}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const wc=78,Sm=80;class pA extends Wa{fromJulianDay(t){let a=super.fromJulianDay(t),n=a.year-wc,r=t-Qr(a.era,a.year,1,1),l;r=8&&(o+=(t.month-7)*30),o+=t.day-1,o)}getDaysInMonth(t){return t.month===1&&cr(t.year+wc)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const Hi=1948440,Em=1948439,Ta=1300,$l=1600,vA=460322;function Ki(e,t,a,n){return n+Math.ceil(29.5*(a-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function Yb(e,t,a){let n=Math.floor((30*(a-t)+10646)/10631),r=Math.min(12,Math.ceil((a-(29+Ki(t,n,1,1)))/29.5)+1),l=a-Ki(t,n,r,1)+1;return new _t(e,n,r,l)}function Am(e){return(14+11*e)%30<11}class Vf{fromJulianDay(t){return Yb(this,Hi,t)}toJulianDay(t){return Ki(Hi,t.year,t.month,t.day)}getDaysInMonth(t){let a=29+t.month%2;return t.month===12&&Am(t.year)&&a++,a}getMonthsInYear(){return 12}getDaysInYear(t){return Am(t.year)?355:354}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class mA extends Vf{fromJulianDay(t){return Yb(this,Em,t)}toJulianDay(t){return Ki(Em,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const hA="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let Od,Wl;function hi(e){return vA+Wl[e-Ta]}function Lo(e,t){let a=e-Ta,n=1<<11-(t-1);return(Od[a]&n)===0?29:30}function Tm(e,t){let a=hi(e);for(let n=1;nt.charCodeAt(0)).buffer)),!Wl){Wl=new Uint32Array($l-Ta+1);let t=0;for(let a=Ta;a<=$l;a++){Wl[a-Ta]=t;for(let n=1;n<=12;n++)t+=Lo(a,n)}}}fromJulianDay(t){let a=t-Hi,n=hi(Ta),r=hi($l);if(ar)return super.fromJulianDay(t);{let l=Ta-1,o=1,i=1;for(;i>0;){l++,i=a-hi(l)+1;let u=Dm(l);if(i===u){o=12;break}else if(id;)i-=d,o++,d=Lo(l,o);break}}return new _t(this,l,o,a-Tm(l,o)+1)}}toJulianDay(t){return t.year$l?super.toJulianDay(t):Hi+Tm(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year$l?super.getDaysInMonth(t):Lo(t.year,t.month)}getDaysInYear(t){return t.year$l?super.getDaysInYear(t):Dm(t.year)}}const Om=347997,Jb=1080,Zb=24*Jb,gA=29,bA=12*Jb+793,_A=gA*Zb+bA;function Xr(e){return Ul(e*7+1,19)<7}function yi(e){let t=Math.floor((235*e-234)/19),a=12084+13753*t,n=t*29+Math.floor(a/25920);return Ul(3*(n+1),7)<3&&(n+=1),n}function xA(e){let t=yi(e-1),a=yi(e);return yi(e+1)-a===356?2:a-t===382?1:0}function Jo(e){return yi(e)+xA(e)}function Xb(e){return Jo(e+1)-Jo(e)}function kA(e){let t=Xb(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function Ws(e,t){if(t>=6&&!Xr(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let a=kA(e);return t===2?a===2?30:29:t===3?a===0?29:30:t===6?Xr(e)?30:0:30}class wA{fromJulianDay(t){let a=t-Om,n=a*Zb/_A,r=Math.floor((19*n+234)/235)+1,l=Jo(r),o=Math.floor(a-l);for(;o<1;)r--,l=Jo(r),o=Math.floor(a-l);let i=1,u=0;for(;u6?t.month--:!Xr(a.year)&&Xr(t.year)&&a.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const Md=1723856,Mm=1824665,Id=5500;function Zo(e,t,a,n){return e+365*t+Math.floor(t/4)+30*(a-1)+n-1}function zf(e,t){let a=Math.floor(4*(t-e)/1461);t>=Zo(e,a+1,1,1)&&a++;let n=1+Math.floor((t-Zo(e,a,1,1))/30),r=t+1-Zo(e,a,n,1);return[a,n,r]}function Qb(e){return Math.floor(e%4/3)}function e1(e,t){return t%13!==0?30:Qb(e)+5}class jf{fromJulianDay(t){let[a,n,r]=zf(Md,t),l="AM";return a<=0&&(l="AA",a+=Id),new _t(this,l,a,n,r)}toJulianDay(t){let a=t.year;return t.era==="AA"&&(a-=Id),Zo(Md,a,t.month,t.day)}getDaysInMonth(t){return e1(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+Qb(t.year)}getMaximumMonthsInYear(){return 13}getMaximumDaysInMonth(){return 30}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class $A extends jf{fromJulianDay(t){let[a,n,r]=zf(Md,t);return a+=Id,new _t(this,"AA",a,n,r)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class CA extends jf{fromJulianDay(t){let[a,n,r]=zf(Mm,t),l="CE";return a<=0&&(l="BCE",a=1-a),new _t(this,l,a,n,r)}toJulianDay(t){let a=t.year;return t.era==="BCE"&&(a=1-a),Zo(Mm,a,t.month,t.day)}getDaysInMonth(t){let a=t.year;return t.era==="BCE"&&(a=1-a),e1(a,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function SA(e){switch(e){case"buddhist":return new cA;case"ethiopic":return new jf;case"ethioaa":return new $A;case"coptic":return new CA;case"hebrew":return new wA;case"indian":return new pA;case"islamic-civil":return new Vf;case"islamic-tbla":return new mA;case"islamic-umalqura":return new yA;case"japanese":return new uA;case"persian":return new fA;case"roc":return new dA;default:return new Wa}}let $c=new Map;class Na{constructor(t,a={}){this.formatter=t1(t,a),this.options=a}format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,a){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,a);if(a= start date");return`${this.formatter.format(t)} – ${this.formatter.format(a)}`}formatRangeToParts(t,a){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,a);if(a= start date");let n=this.formatter.formatToParts(t),r=this.formatter.formatToParts(a);return[...n.map(l=>({...l,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...r.map(l=>({...l,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return TA()&&(this.resolvedHourCycle||(this.resolvedHourCycle=DA(t.locale,this.options)),t.hourCycle=this.resolvedHourCycle,t.hour12=this.resolvedHourCycle==="h11"||this.resolvedHourCycle==="h12"),t.calendar==="ethiopic-amete-alem"&&(t.calendar="ethioaa"),t}}const EA={true:{ja:"h11"},false:{}};function t1(e,t={}){if(typeof t.hour12=="boolean"&&AA()){t={...t};let r=EA[String(t.hour12)][e.split("-")[0]],l=t.hour12?"h12":"h23";t.hourCycle=r??l,delete t.hour12}let a=e+(t?Object.entries(t).sort((r,l)=>r[0]l.type==="hour").value,10),r=parseInt(a.formatToParts(new Date(2020,2,3,23)).find(l=>l.type==="hour").value,10);if(n===0&&r===23)return"h23";if(n===24&&r===23)return"h24";if(n===0&&r===11)return"h11";if(n===12&&r===11)return"h12";throw new Error("Unexpected hour cycle result")}function Da(e,t=Ga()){return cs(e)?e.toDate():e.toDate(t)}function OA(e){return e instanceof br}function cs(e){return e instanceof Bn}function Pd(e){return OA(e)||cs(e)}function vr(e){if(e instanceof Date){const t=e.getFullYear(),a=e.getMonth()+1;return new Date(t,a,0).getDate()}else return e.set({day:100}).day}function dr(e,t){return e.compare(t)<0}function Ec(e,t){return e.compare(t)>0}function MA(e,t,a){const n=Au(e,a,"sun");return t>n?e.subtract({days:n+7-t}):t===n?e:e.subtract({days:n-t})}function IA(e,t,a){const n=Au(e,a,"sun"),r=t===0?6:t-1;return n===r?e:n>r?e.add({days:7-n+r}):e.add({days:r-n})}function Uf(e){const{defaultValue:t,defaultPlaceholder:a,granularity:n="day",locale:r="en"}=e;if(Array.isArray(t)&&t.length)return t.at(-1).copy();if(t&&!Array.isArray(t))return t.copy();if(a)return a.copy();const l=new Date,o=l.getFullYear(),i=l.getMonth()+1,u=l.getDate(),d=["hour","minute","second"],c=new Na(r),f=SA(c.resolvedOptions().calendar);return d.includes(n??"day")?pa(new br(o,i,u,0,0,0),f):pa(new _t(o,i,u),f)}function PA(e){const{defaultValue:t,defaultPlaceholder:a}=e;return t?t.copy():a?a.copy():new on(0,0,0)}function RA(e,t){const a=[];for(let n=0;nt.set({day:k+1})),i=Ed(t),u=vm(t),d=MA(i,a,r),c=IA(u,a,r),f=Im(d.subtract({days:1}),i),m=Im(u,c.add({days:1})),v=f.length+o.length+m.length;if(n&&v<42){const C=42-v;let k=m.at(-1);k||(k=vm(t));const E=Array.from({length:C},(B,O)=>{const T=O+1;return k.add({days:T})});m.push(...E)}const y=f.concat(o,m),x=RA(y,7);return{value:t,cells:y,rows:x}}function Ur(e){const{numberOfMonths:t,dateObj:a,...n}=e,r=[];if(!t||t===1)return r.push(Tc({...n,dateObj:a})),r;r.push(Tc({...n,dateObj:a}));for(let l=1;l({label:u(Da(C.set({month:E}))),value:E}))}function c(C,k={}){return new Na(a.value,{...t,year:"numeric",...k}).format(C)}function f(C,k){return cs(C)?new Na(a.value,{...t,...k,timeZone:C.timeZone}).formatToParts(Da(C)):new Na(a.value,{...t,...k}).formatToParts(Da(C))}function m(C,k="narrow"){return new Na(a.value,{...t,weekday:k}).format(C)}function v(C){const E=new Na(a.value,{...t,hour:"numeric",minute:"numeric"}).formatToParts(C).find(B=>B.type==="dayPeriod")?.value;return E==="PM"||E==="pm"||E==="p.m."?"PM":"AM"}const y={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"};function x(C,k,E={}){const B={...y,...E},T=f(C,B).find(P=>P.type===k);return T?T.value:""}return{setLocale:r,getLocale:n,fullMonth:u,fullYear:c,fullMonthAndYear:i,toParts:f,custom:l,part:x,dayPeriod:v,selectedDate:o,dayOfWeek:m,getMonths:d}}function yn(e){const t=Su({dir:A("ltr")});return _(()=>e?.value||t.dir?.value||"ltr")}function fl(e){const t=mn(),a=t?.type.emits,n={};return a?.length||console.warn(`No emitted event found. Please check component: ${t?.type.__name}`),a?.forEach(r=>{n[Fo(Zt(r))]=(...l)=>e(r,...l)}),n}let Dc=0;function o1(){Ca(e=>{if(!Un)return;const t=document.querySelectorAll("[data-reka-focus-guard]");document.body.insertAdjacentElement("afterbegin",t[0]??Pm()),document.body.insertAdjacentElement("beforeend",t[1]??Pm()),Dc++,e(()=>{Dc===1&&document.querySelectorAll("[data-reka-focus-guard]").forEach(a=>a.remove()),Dc--})})}function Pm(){const e=document.createElement("span");return e.setAttribute("data-reka-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}function Kf(e){return _(()=>ca(e)?!!dl(e)?.closest("form"):!0)}function Xe(){const e=mn(),t=A(),a=_(()=>n());sf(()=>{a.value!==n()&&lx(t)});function n(){return t.value&&"$el"in t.value&&["#text","#comment"].includes(t.value.$el.nodeName)?t.value.$el.nextElementSibling:dl(t)}const r=Object.assign({},e.exposed),l={};for(const i in e.props)Object.defineProperty(l,i,{enumerable:!0,configurable:!0,get:()=>e.props[i]});if(Object.keys(r).length>0)for(const i in r)Object.defineProperty(l,i,{enumerable:!0,configurable:!0,get:()=>r[i]});Object.defineProperty(l,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=l;function o(i){if(t.value=i,!!i&&(Object.defineProperty(l,"$el",{enumerable:!0,configurable:!0,get:()=>i instanceof Element?i:i.$el}),!(i instanceof Element)&&!Object.hasOwn(i,"$el"))){const u=i.$.exposed,d=Object.assign({},l);for(const c in u)Object.defineProperty(d,c,{enumerable:!0,configurable:!0,get:()=>u[c]});e.exposed=d}}return{forwardRef:o,currentRef:t,currentElement:a}}function Ou(e){const t=mn(),a=Object.keys(t?.type.props??{}).reduce((r,l)=>{const o=(t?.type.props[l]).default;return o!==void 0&&(r[l]=o),r},{}),n=dx(e);return _(()=>{const r={},l=t?.vnode.props??{};return Object.keys(l).forEach(o=>{r[Zt(o)]=l[o]}),Object.keys({...a,...r}).reduce((o,i)=>(n.value[i]!==void 0&&(o[i]=n.value[i]),o),{})})}function gn(e,t){const a=Ou(e),n=t?fl(t):{};return _(()=>({...a.value,...n}))}var NA=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Cl=new WeakMap,Gs=new WeakMap,Ys={},Oc=0,s1=function(e){return e&&(e.host||s1(e.parentNode))},BA=function(e,t){return t.map(function(a){if(e.contains(a))return a;var n=s1(a);return n&&e.contains(n)?n:(console.error("aria-hidden",a,"in not contained inside",e,". Doing nothing"),null)}).filter(function(a){return!!a})},FA=function(e,t,a,n){var r=BA(t,Array.isArray(e)?e:[e]);Ys[a]||(Ys[a]=new WeakMap);var l=Ys[a],o=[],i=new Set,u=new Set(r),d=function(f){!f||i.has(f)||(i.add(f),d(f.parentNode))};r.forEach(d);var c=function(f){!f||u.has(f)||Array.prototype.forEach.call(f.children,function(m){if(i.has(m))c(m);else try{var v=m.getAttribute(n),y=v!==null&&v!=="false",x=(Cl.get(m)||0)+1,C=(l.get(m)||0)+1;Cl.set(m,x),l.set(m,C),o.push(m),x===1&&y&&Gs.set(m,!0),C===1&&m.setAttribute(a,"true"),y||m.setAttribute(n,"true")}catch(k){console.error("aria-hidden: cannot operate on ",m,k)}})};return c(t),i.clear(),Oc++,function(){o.forEach(function(f){var m=Cl.get(f)-1,v=l.get(f)-1;Cl.set(f,m),l.set(f,v),m||(Gs.has(f)||f.removeAttribute(n),Gs.delete(f)),v||f.removeAttribute(a)}),Oc--,Oc||(Cl=new WeakMap,Cl=new WeakMap,Gs=new WeakMap,Ys={})}},VA=function(e,t,a){a===void 0&&(a="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),r=NA(e);return r?(n.push.apply(n,Array.from(r.querySelectorAll("[aria-live], script"))),FA(n,r,a,"aria-hidden")):function(){return null}};function Wf(e){let t;Ne(()=>dl(e),a=>{let n=!1;try{n=!!a?.closest("[popover]:not(:popover-open)")}catch{}a&&!n?t=VA(a):t&&t()}),jn(()=>{t&&t()})}function Fn(e,t="reka"){let a;const n=Su({useId:void 0});return n.useId?a=n.useId():a=Ly?.(),t?`${t}-${a}`:a}function oo(){return{ALT:"Alt",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",BACKSPACE:"Backspace",CAPS_LOCK:"CapsLock",CONTROL:"Control",DELETE:"Delete",END:"End",ENTER:"Enter",ESCAPE:"Escape",F1:"F1",F10:"F10",F11:"F11",F12:"F12",F2:"F2",F3:"F3",F4:"F4",F5:"F5",F6:"F6",F7:"F7",F8:"F8",F9:"F9",HOME:"Home",META:"Meta",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",SHIFT:"Shift",SPACE:" ",TAB:"Tab",CTRL:"Control",ASTERISK:"*",SPACE_CODE:"Space"}}function Mu(e){const t=Su({locale:A("en")});return _(()=>e?.value||t.locale?.value||"en")}function zA(e){const t=A(),a=_(()=>t.value?.width??0),n=_(()=>t.value?.height??0);return xt(()=>{const r=dl(e);if(r){t.value={width:r.offsetWidth,height:r.offsetHeight};const l=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let u,d;if("borderBoxSize"in i){const c=i.borderBoxSize,f=Array.isArray(c)?c[0]:c;u=f.inlineSize,d=f.blockSize}else u=r.offsetWidth,d=r.offsetHeight;t.value={width:u,height:d}});return l.observe(r,{box:"border-box"}),()=>l.unobserve(r)}else t.value=void 0}),{width:a,height:n}}function jA(e,t){const a=A(e);function n(l){return t[a.value][l]??a.value}return{state:a,dispatch:l=>{a.value=n(l)}}}function UA(e){const t=AE("",1e3);return{search:t,handleTypeaheadSearch:(r,l)=>{t.value=t.value+r;{const o=Gt(),i=l.map(m=>({...m,textValue:m.value?.textValue??m.ref.textContent?.trim()??""})),u=i.find(m=>m.ref===o),d=i.map(m=>m.textValue),c=KA(d,t.value,u?.textValue),f=i.find(m=>m.textValue===c);return f&&f.ref.focus(),f?.ref}},resetTypeahead:()=>{t.value=""}}}function HA(e,t){return e.map((a,n)=>e[(t+n)%e.length])}function KA(e,t,a){const r=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,l=a?e.indexOf(a):-1;let o=HA(e,Math.max(l,0));r.length===1&&(o=o.filter(d=>d!==a));const u=o.find(d=>d.toLowerCase().startsWith(r.toLowerCase()));return u!==a?u:void 0}function WA(e,t){const a=A({}),n=A("none"),r=A(e),l=e.value?"mounted":"unmounted";let o;const i=t.value?.ownerDocument.defaultView??Df,{state:u,dispatch:d}=jA(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),c=C=>{if(Un){const k=new CustomEvent(C,{bubbles:!1,cancelable:!1});t.value?.dispatchEvent(k)}};Ne(e,async(C,k)=>{const E=k!==C;if(await He(),E){const B=n.value,O=Js(t.value);C?(d("MOUNT"),c("enter"),O==="none"&&c("after-enter")):O==="none"||O==="undefined"||a.value?.display==="none"?(d("UNMOUNT"),c("leave"),c("after-leave")):k&&B!==O?(d("ANIMATION_OUT"),c("leave")):(d("UNMOUNT"),c("after-leave"))}},{immediate:!0});const f=C=>{const k=Js(t.value),E=k.includes(CSS.escape(C.animationName)),B=u.value==="mounted"?"enter":"leave";if(C.target===t.value&&E&&(c(`after-${B}`),d("ANIMATION_END"),!r.value)){const O=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",o=i?.setTimeout(()=>{t.value?.style.animationFillMode==="forwards"&&(t.value.style.animationFillMode=O)})}C.target===t.value&&k==="none"&&d("ANIMATION_END")},m=C=>{C.target===t.value&&(n.value=Js(t.value))},v=Ne(t,(C,k)=>{C?(a.value=getComputedStyle(C),C.addEventListener("animationstart",m),C.addEventListener("animationcancel",f),C.addEventListener("animationend",f)):(d("ANIMATION_END"),o!==void 0&&i?.clearTimeout(o),k?.removeEventListener("animationstart",m),k?.removeEventListener("animationcancel",f),k?.removeEventListener("animationend",f))},{immediate:!0}),y=Ne(u,()=>{const C=Js(t.value);n.value=u.value==="mounted"?C:"none"});return jn(()=>{v(),y()}),{isPresent:_(()=>["mounted","unmountSuspended"].includes(u.value))}}function Js(e){return e&&getComputedStyle(e).animationName||"none"}var pl=le({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:a}){const{present:n,forceMount:r}=Ht(e),l=A(),{isPresent:o}=WA(n,l);a({present:o});let i=t.default({present:o.value});i=Of(i||[]);const u=mn();if(i&&i?.length>1){const d=u?.parent?.type.name?`<${u.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${d}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(c=>` - ${c}`).join(` +`)].join(` +`))}return()=>r.value||n.value||o.value?Ma(t.default({present:o.value})[0],{ref:d=>{const c=dl(d);return typeof c?.hasAttribute>"u"||(c?.hasAttribute("data-reka-popper-content-wrapper")?l.value=c.firstElementChild:l.value=c),c}}):null}});const Rd=le({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:a}){return()=>{if(!a.default)return null;const n=Of(a.default()),r=n.findIndex(u=>u.type!==ja);if(r===-1)return n;const l=n[r];delete l.props?.ref;const o=l.props?je(t,l.props):t,i=mr({...l,props:{}},o);return n.length===1?i:(n[r]=i,n)}}}),GA=["area","img","input"],Qe=le({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:a}){const n=e.asChild?"template":e.as;return typeof n=="string"&&GA.includes(n)?()=>Ma(n,t):n!=="template"?()=>Ma(e.as,t,{default:a.default}):()=>Ma(Rd,t,{default:a.default})}});function ol(){const e=A(),t=_(()=>["#text","#comment"].includes(e.value?.$el.nodeName)?e.value?.$el.nextElementSibling:dl(e));return{primitiveElement:e,currentElement:t}}const[Hn,YA]=At("DialogRoot");var JA=le({inheritAttrs:!1,__name:"DialogRoot",props:{open:{type:Boolean,required:!1,default:void 0},defaultOpen:{type:Boolean,required:!1,default:!1},modal:{type:Boolean,required:!1,default:!0}},emits:["update:open"],setup(e,{emit:t}){const a=e,r=qt(a,"open",t,{defaultValue:a.defaultOpen,passive:a.open===void 0}),l=A(),o=A(),{modal:i}=Ht(a);return YA({open:r,modal:i,openModal:()=>{r.value=!0},onOpenChange:u=>{r.value=u},onOpenToggle:()=>{r.value=!r.value},contentId:"",titleId:"",descriptionId:"",triggerElement:l,contentElement:o}),(u,d)=>ke(u.$slots,"default",{open:s(r),close:()=>r.value=!1})}}),Dr=JA,ZA=le({__name:"DialogClose",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e;Xe();const a=Hn();return(n,r)=>(p(),j(s(Qe),je(t,{type:n.as==="button"?"button":void 0,onClick:r[0]||(r[0]=l=>s(a).onOpenChange(!1))}),{default:F(()=>[ke(n.$slots,"default")]),_:3},16,["type"]))}}),_r=ZA;const XA="dismissableLayer.pointerDownOutside",QA="dismissableLayer.focusOutside";function i1(e,t){if(!(t instanceof Element))return!1;const a=t.closest("[data-dismissable-layer]"),n=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),r=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(a&&(n===a||r.indexOf(n){});return Ca(o=>{if(!Un||!ca(a))return;const i=async d=>{const c=d.target;if(!(!t?.value||!c)){if(i1(t.value,c)){r.value=!1;return}if(d.target&&!r.value){let m=function(){Af(XA,e,f)};const f={originalEvent:d};d.pointerType==="touch"?(n.removeEventListener("click",l.value),l.value=m,n.addEventListener("click",l.value,{once:!0})):m()}else n.removeEventListener("click",l.value);r.value=!1}},u=window.setTimeout(()=>{n.addEventListener("pointerdown",i)},0);o(()=>{window.clearTimeout(u),n.removeEventListener("pointerdown",i),n.removeEventListener("click",l.value)})}),{onPointerDownCapture:()=>{ca(a)&&(r.value=!0)}}}function t4(e,t,a=!0){const n=t?.value?.ownerDocument??globalThis?.document,r=A(!1);return Ca(l=>{if(!Un||!ca(a))return;const o=async i=>{if(!t?.value)return;await He(),await He();const u=i.target;!t.value||!u||i1(t.value,u)||i.target&&!r.value&&Af(QA,e,{originalEvent:i})};n.addEventListener("focusin",o),l(()=>n.removeEventListener("focusin",o))}),{onFocusCapture:()=>{ca(a)&&(r.value=!0)},onBlurCapture:()=>{ca(a)&&(r.value=!1)}}}const ga=Va({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,originalBodyPointerEvents:void 0,branches:new Set});var a4=le({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(e,{emit:t}){const a=e,n=t,{forwardRef:r,currentElement:l}=Xe(),o=_(()=>l.value?.ownerDocument??globalThis.document),i=_(()=>ga.layersRoot),u=_(()=>l.value?Array.from(i.value).indexOf(l.value):-1),d=_(()=>ga.layersWithOutsidePointerEventsDisabled.size>0),c=_(()=>{const v=Array.from(i.value),[y]=[...ga.layersWithOutsidePointerEventsDisabled].slice(-1),x=v.indexOf(y);return u.value>=x}),f=e4(async v=>{const y=[...ga.branches].some(x=>x?.contains(v.target));!c.value||y||(n("pointerDownOutside",v),n("interactOutside",v),await He(),v.defaultPrevented||n("dismiss"))},l),m=t4(v=>{[...ga.branches].some(x=>x?.contains(v.target))||(n("focusOutside",v),n("interactOutside",v),v.defaultPrevented||n("dismiss"))},l);return IE("Escape",v=>{u.value===i.value.size-1&&(n("escapeKeyDown",v),v.defaultPrevented||n("dismiss"))}),Ne([l,()=>a.disableOutsidePointerEvents],([v,y],x,C)=>{v&&(y&&(ga.layersWithOutsidePointerEventsDisabled.size===0&&(ga.originalBodyPointerEvents=o.value.body.style.pointerEvents,o.value.body.style.pointerEvents="none"),ga.layersWithOutsidePointerEventsDisabled.add(v),C(()=>{ga.layersWithOutsidePointerEventsDisabled.delete(v),ga.layersWithOutsidePointerEventsDisabled.size===0&&!ka(ga.originalBodyPointerEvents)&&(o.value.body.style.pointerEvents=ga.originalBodyPointerEvents)})),i.value.add(v))},{immediate:!0}),Ca(v=>{v(()=>{l.value&&(i.value.delete(l.value),ga.layersWithOutsidePointerEventsDisabled.delete(l.value))})}),(v,y)=>(p(),j(s(Qe),{ref:s(r),"as-child":v.asChild,as:v.as,"data-dismissable-layer":"",style:ua({pointerEvents:d.value?c.value?"auto":"none":void 0}),onFocusCapture:s(m).onFocusCapture,onBlurCapture:s(m).onBlurCapture,onPointerdownCapture:s(f).onPointerDownCapture},{default:F(()=>[ke(v.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),Gf=a4;const n4=_E(()=>A([]));function r4(){const e=n4();return{add(t){const a=e.value[0];t!==a&&a?.pause(),e.value=Rm(e.value,t),e.value.unshift(t)},remove(t){e.value=Rm(e.value,t),e.value[0]?.resume()}}}function Rm(e,t){const a=[...e],n=a.indexOf(t);return n!==-1&&a.splice(n,1),a}const Mc="focusScope.autoFocusOnMount",Ic="focusScope.autoFocusOnUnmount",qm={bubbles:!1,cancelable:!0};function l4(e,{select:t=!1}={}){const a=Gt();for(const n of e)if(lr(n,{select:t}),Gt()!==a)return!0}function o4(e){const t=u1(e),a=Lm(t,e),n=Lm(t.reverse(),e);return[a,n]}function u1(e){const t=[],a=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const r=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||r?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;a.nextNode();)t.push(a.currentNode);return t}function Lm(e,t){for(const a of e)if(!s4(a,{upTo:t}))return a}function s4(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function i4(e){return e instanceof HTMLInputElement&&"select"in e}function lr(e,{select:t=!1}={}){if(e&&e.focus){const a=Gt();e.focus({preventScroll:!0}),e!==a&&i4(e)&&t&&e.select()}}var u4=le({__name:"FocusScope",props:{loop:{type:Boolean,required:!1,default:!1},trapped:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["mountAutoFocus","unmountAutoFocus"],setup(e,{emit:t}){const a=e,n=t,{currentRef:r,currentElement:l}=Xe(),o=A(null),i=r4(),u=Va({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});Ca(c=>{if(!Un)return;const f=l.value;if(!a.trapped)return;function m(C){if(u.paused||!f)return;const k=C.target;f.contains(k)?o.value=k:lr(o.value,{select:!0})}function v(C){if(u.paused||!f)return;const k=C.relatedTarget;k!==null&&(f.contains(k)||lr(o.value,{select:!0}))}function y(C){const k=o.value;if(k===null||!C.some(O=>O.removedNodes.length>0))return;f.contains(k)||lr(f)}document.addEventListener("focusin",m),document.addEventListener("focusout",v);const x=new MutationObserver(y);f&&x.observe(f,{childList:!0,subtree:!0}),c(()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",v),x.disconnect()})}),Ca(async c=>{const f=l.value;if(await He(),!f)return;i.add(u);const m=Gt();if(!f.contains(m)){const y=new CustomEvent(Mc,qm);f.addEventListener(Mc,x=>n("mountAutoFocus",x)),f.dispatchEvent(y),y.defaultPrevented||(l4(u1(f),{select:!0}),Gt()===m&&lr(f))}c(()=>{f.removeEventListener(Mc,C=>n("mountAutoFocus",C));const y=new CustomEvent(Ic,qm),x=C=>{n("unmountAutoFocus",C)};f.addEventListener(Ic,x),f.dispatchEvent(y),f.setAttribute("data-focus-scope-unmounting",""),setTimeout(()=>{y.defaultPrevented||lr(m??document.body,{select:!0}),f.removeEventListener(Ic,x),i.remove(u),f.removeAttribute("data-focus-scope-unmounting")},0)})});function d(c){if(!a.loop&&!a.trapped||u.paused)return;const f=c.key==="Tab"&&!c.altKey&&!c.ctrlKey&&!c.metaKey,m=Gt();if(f&&m){const v=c.currentTarget,[y,x]=o4(v);y&&x?!c.shiftKey&&m===x?(c.preventDefault(),a.loop&&lr(y,{select:!0})):c.shiftKey&&m===y&&(c.preventDefault(),a.loop&&lr(x,{select:!0})):m===v&&c.preventDefault()}}return(c,f)=>(p(),j(s(Qe),{ref_key:"currentRef",ref:r,tabindex:"-1","as-child":c.asChild,as:c.as,onKeydown:d},{default:F(()=>[ke(c.$slots,"default")]),_:3},8,["as-child","as"]))}}),Yf=u4;const c4="menu.itemSelect",qd=["Enter"," "],d4=["ArrowDown","PageUp","Home"],c1=["ArrowUp","PageDown","End"],f4=[...d4,...c1];[...qd],[...qd];function d1(e){return e?"open":"closed"}function f1(e){return e==="indeterminate"}function p1(e){return f1(e)?"indeterminate":e?"checked":"unchecked"}function p4(e){const t=Gt();for(const a of e)if(a===t||(a.focus(),Gt()!==t))return}function v4(e,t){const{x:a,y:n}=e;let r=!1;for(let l=0,o=t.length-1;ln!=c>n&&a<(d-i)*(n-u)/(c-u)+i&&(r=!r)}return r}function m4(e,t){if(!t)return!1;const a={x:e.clientX,y:e.clientY};return v4(a,t)}function Wi(e){return e.pointerType==="mouse"}var h4=le({__name:"DialogContentImpl",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const a=e,n=t,r=Hn(),{forwardRef:l,currentElement:o}=Xe();return r.titleId||=Fn(void 0,"reka-dialog-title"),r.descriptionId||=Fn(void 0,"reka-dialog-description"),xt(()=>{r.contentElement=o,Gt()!==document.body&&(r.triggerElement.value=Gt())}),(i,u)=>(p(),j(s(Yf),{"as-child":"",loop:"",trapped:a.trapFocus,onMountAutoFocus:u[5]||(u[5]=d=>n("openAutoFocus",d)),onUnmountAutoFocus:u[6]||(u[6]=d=>n("closeAutoFocus",d))},{default:F(()=>[L(s(Gf),je({id:s(r).contentId,ref:s(l),as:i.as,"as-child":i.asChild,"disable-outside-pointer-events":i.disableOutsidePointerEvents,role:"dialog","aria-describedby":s(r).descriptionId,"aria-labelledby":s(r).titleId,"data-state":s(d1)(s(r).open.value)},i.$attrs,{onDismiss:u[0]||(u[0]=d=>s(r).onOpenChange(!1)),onEscapeKeyDown:u[1]||(u[1]=d=>n("escapeKeyDown",d)),onFocusOutside:u[2]||(u[2]=d=>n("focusOutside",d)),onInteractOutside:u[3]||(u[3]=d=>n("interactOutside",d)),onPointerDownOutside:u[4]||(u[4]=d=>n("pointerDownOutside",d))}),{default:F(()=>[ke(i.$slots,"default")]),_:3},16,["id","as","as-child","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped"]))}}),v1=h4,y4=le({__name:"DialogContentModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const a=e,n=t,r=Hn(),l=fl(n),{forwardRef:o,currentElement:i}=Xe();return Wf(i),(u,d)=>(p(),j(v1,je({...a,...s(l)},{ref:s(o),"trap-focus":s(r).open.value,"disable-outside-pointer-events":a.disableOutsidePointerEvents,onCloseAutoFocus:d[0]||(d[0]=c=>{c.defaultPrevented||(c.preventDefault(),s(r).triggerElement.value?.focus())}),onPointerDownOutside:d[1]||(d[1]=c=>{const f=c.detail.originalEvent,m=f.button===0&&f.ctrlKey===!0;(f.button===2||m)&&c.preventDefault()}),onFocusOutside:d[2]||(d[2]=c=>{c.preventDefault()})}),{default:F(()=>[ke(u.$slots,"default")]),_:3},16,["trap-focus","disable-outside-pointer-events"]))}}),g4=y4,b4=le({__name:"DialogContentNonModal",props:{forceMount:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const a=e,r=fl(t);Xe();const l=Hn(),o=A(!1),i=A(!1);return(u,d)=>(p(),j(v1,je({...a,...s(r)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:d[0]||(d[0]=c=>{c.defaultPrevented||(o.value||s(l).triggerElement.value?.focus(),c.preventDefault()),o.value=!1,i.value=!1}),onInteractOutside:d[1]||(d[1]=c=>{c.defaultPrevented||(o.value=!0,c.detail.originalEvent.type==="pointerdown"&&(i.value=!0));const f=c.target;s(l).triggerElement.value?.contains(f)&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&i.value&&c.preventDefault()})}),{default:F(()=>[ke(u.$slots,"default")]),_:3},16))}}),_4=b4,x4=le({__name:"DialogContent",props:{forceMount:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1,default:void 0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const a=e,n=t,r=Hn(),l=fl(n),{forwardRef:o}=Xe();return(i,u)=>(p(),j(s(pl),{present:i.forceMount||s(r).open.value},{default:F(()=>[s(r).modal.value?(p(),j(g4,je({key:0,ref:s(o)},{...a,...s(l),...i.$attrs}),{default:F(()=>[ke(i.$slots,"default")]),_:3},16)):(p(),j(_4,je({key:1,ref:s(o)},{...a,...s(l),...i.$attrs}),{default:F(()=>[ke(i.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),Or=x4,k4=le({__name:"DialogDescription",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"p"}},setup(e){const t=e;Xe();const a=Hn();return(n,r)=>(p(),j(s(Qe),je(t,{id:s(a).descriptionId}),{default:F(()=>[ke(n.$slots,"default")]),_:3},16,["id"]))}}),xr=k4,w4=le({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=Hn();return Mf(!0),Xe(),(a,n)=>(p(),j(s(Qe),{as:a.as,"as-child":a.asChild,"data-state":s(t).open.value?"open":"closed",style:{"pointer-events":"auto"},onPointerdown:n[0]||(n[0]=mt(()=>{},["left","self","prevent"]))},{default:F(()=>[ke(a.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),$4=w4,C4=le({__name:"DialogOverlay",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=Hn(),{forwardRef:a}=Xe();return(n,r)=>s(t)?.modal.value?(p(),j(s(pl),{key:0,present:n.forceMount||s(t).open.value},{default:F(()=>[L($4,je(n.$attrs,{ref:s(a),as:n.as,"as-child":n.asChild}),{default:F(()=>[ke(n.$slots,"default")]),_:3},16,["as","as-child"])]),_:3},8,["present"])):G("v-if",!0)}}),Mr=C4,S4=le({__name:"Teleport",props:{to:{type:null,required:!1,default:"body"},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=OE();return(a,n)=>s(t)||a.forceMount?(p(),j(Sx,{key:0,to:a.to,disabled:a.disabled,defer:a.defer},[ke(a.$slots,"default")],8,["to","disabled","defer"])):G("v-if",!0)}}),Iu=S4,E4=le({__name:"DialogPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(a,n)=>(p(),j(s(Iu),lt(ut(t)),{default:F(()=>[ke(a.$slots,"default")]),_:3},16))}}),vl=E4,A4=le({__name:"DialogTitle",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"h2"}},setup(e){const t=e,a=Hn();return Xe(),(n,r)=>(p(),j(s(Qe),je(t,{id:s(a).titleId}),{default:F(()=>[ke(n.$slots,"default")]),_:3},16,["id"]))}}),Ir=A4;const[T4,D4]=At("AlertDialogContent");var O4=le({__name:"AlertDialogContent",props:{forceMount:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const a=e,r=fl(t);Xe();const l=A();return D4({onCancelElementChange:o=>{l.value=o}}),(o,i)=>(p(),j(s(Or),je({...a,...s(r)},{role:"alertdialog",onPointerDownOutside:i[0]||(i[0]=mt(()=>{},["prevent"])),onInteractOutside:i[1]||(i[1]=mt(()=>{},["prevent"])),onOpenAutoFocus:i[2]||(i[2]=()=>{He(()=>{l.value?.focus({preventScroll:!0})})})}),{default:F(()=>[ke(o.$slots,"default")]),_:3},16))}}),M4=O4,I4=le({__name:"AlertDialogCancel",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,a=T4(),{forwardRef:n,currentElement:r}=Xe();return xt(()=>{a.onCancelElementChange(r.value)}),(l,o)=>(p(),j(s(_r),je(t,{ref:s(n)}),{default:F(()=>[ke(l.$slots,"default")]),_:3},16))}}),P4=I4,R4=le({__name:"AlertDialogDescription",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"p"}},setup(e){const t=e;return Xe(),(a,n)=>(p(),j(s(xr),lt(ut(t)),{default:F(()=>[ke(a.$slots,"default")]),_:3},16))}}),q4=R4,L4=le({__name:"AlertDialogOverlay",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return Xe(),(a,n)=>(p(),j(s(Mr),lt(ut(t)),{default:F(()=>[ke(a.$slots,"default")]),_:3},16))}}),N4=L4,B4=le({__name:"AlertDialogPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(a,n)=>(p(),j(s(Iu),lt(ut(t)),{default:F(()=>[ke(a.$slots,"default")]),_:3},16))}}),F4=B4,V4=le({__name:"AlertDialogRoot",props:{open:{type:Boolean,required:!1},defaultOpen:{type:Boolean,required:!1}},emits:["update:open"],setup(e,{emit:t}){const r=gn(e,t);return Xe(),(l,o)=>(p(),j(s(Dr),je(s(r),{modal:!0}),{default:F(i=>[ke(l.$slots,"default",lt(ut(i)))]),_:3},16))}}),z4=V4,j4=le({__name:"AlertDialogTitle",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"h2"}},setup(e){const t=e;return Xe(),(a,n)=>(p(),j(s(Ir),lt(ut(t)),{default:F(()=>[ke(a.$slots,"default")]),_:3},16))}}),U4=j4;const Nm="data-reka-collection-item";function Jf(e={}){const{key:t="",isProvider:a=!1}=e,n=`${t}CollectionProvider`;let r;a?(r={collectionRef:A(),itemMap:A(new Map)},vt(n,r)):r=it(n);const l=(c=!1)=>{const f=r.collectionRef.value;if(!f)return[];const m=Array.from(f.querySelectorAll(`[${Nm}]`)),y=Array.from(r.itemMap.value.values()).sort((x,C)=>m.indexOf(x.ref)-m.indexOf(C.ref));return c?y:y.filter(x=>x.ref.dataset.disabled!=="")},o=le({name:"CollectionSlot",inheritAttrs:!1,setup(c,{slots:f,attrs:m}){const{primitiveElement:v,currentElement:y}=ol();return Ne(y,()=>{r.collectionRef.value=y.value}),()=>Ma(Rd,{ref:v,...m},f)}}),i=le({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(c,{slots:f,attrs:m}){const{primitiveElement:v,currentElement:y}=ol();return Ca(x=>{if(y.value){const C=_i(y.value);r.itemMap.value.set(C,{ref:y.value,value:c.value}),x(()=>r.itemMap.value.delete(C))}}),()=>Ma(Rd,{...m,[Nm]:"",ref:v},f)}}),u=_(()=>Array.from(r.itemMap.value.values())),d=_(()=>r.itemMap.value.size);return{getItems:l,reactiveItems:u,itemMapSize:d,CollectionSlot:o,CollectionItem:i}}var H4=le({__name:"VisuallyHidden",props:{feature:{type:String,required:!1,default:"focusable"},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){return(t,a)=>(p(),j(s(Qe),{as:t.as,"as-child":t.asChild,"aria-hidden":t.feature==="focusable"?"true":void 0,"data-hidden":t.feature==="fully-hidden"?"":void 0,tabindex:t.feature==="fully-hidden"?"-1":void 0,style:{position:"absolute",border:0,width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",whiteSpace:"nowrap",wordWrap:"normal",top:"-1px",left:"-1px"}},{default:F(()=>[ke(t.$slots,"default")]),_:3},8,["as","as-child","aria-hidden","data-hidden","tabindex"]))}}),Zf=H4,K4=le({inheritAttrs:!1,__name:"VisuallyHiddenInputBubble",props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:"fully-hidden"}},setup(e){const t=e,{primitiveElement:a,currentElement:n}=ol(),r=_(()=>t.checked??t.value);return Ne(r,(l,o)=>{if(!n.value)return;const i=n.value,u=window.HTMLInputElement.prototype,c=Object.getOwnPropertyDescriptor(u,"value").set;if(c&&l!==o){const f=new Event("input",{bubbles:!0}),m=new Event("change",{bubbles:!0});c.call(i,l),i.dispatchEvent(f),i.dispatchEvent(m)}}),(l,o)=>(p(),j(Zf,je({ref_key:"primitiveElement",ref:a},{...t,...l.$attrs},{as:"input"}),null,16))}}),Bm=K4,W4=le({inheritAttrs:!1,__name:"VisuallyHiddenInput",props:{name:{type:String,required:!0},value:{type:null,required:!0},checked:{type:Boolean,required:!1,default:void 0},required:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},feature:{type:String,required:!1,default:"fully-hidden"}},setup(e){const t=e,a=_(()=>typeof t.value=="object"&&Array.isArray(t.value)&&t.value.length===0&&t.required),n=_(()=>typeof t.value=="string"||typeof t.value=="number"||typeof t.value=="boolean"||t.value===null||t.value===void 0?[{name:t.name,value:t.value}]:typeof t.value=="object"&&Array.isArray(t.value)?t.value.flatMap((r,l)=>typeof r=="object"?Object.entries(r).map(([o,i])=>({name:`${t.name}[${l}][${o}]`,value:i})):{name:`${t.name}[${l}]`,value:r}):t.value!==null&&typeof t.value=="object"&&!Array.isArray(t.value)?Object.entries(t.value).map(([r,l])=>({name:`${t.name}[${r}]`,value:l})):[]);return(r,l)=>(p(),g(me,null,[G(" We render single input if it's required "),a.value?(p(),j(Bm,je({key:r.name},{...t,...r.$attrs},{name:r.name,value:r.value}),null,16,["name","value"])):(p(!0),g(me,{key:1},Me(n.value,o=>(p(),j(Bm,je({key:o.name},{ref_for:!0},{...t,...r.$attrs},{name:o.name,value:o.value}),null,16,["name","value"]))),128))],2112))}}),Xf=W4;const G4="rovingFocusGroup.onEntryFocus",Y4={bubbles:!1,cancelable:!0},J4={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Z4(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function X4(e,t,a){const n=Z4(e.key,a);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return J4[n]}function m1(e,t=!1){const a=Gt();for(const n of e)if(n===a||(n.focus({preventScroll:t}),Gt()!==a))return}function Q4(e,t){return e.map((a,n)=>e[(t+n)%e.length])}const[h1,eT]=At("PopperRoot");var tT=le({inheritAttrs:!1,__name:"PopperRoot",setup(e){const t=A();return eT({anchor:t,onAnchorChange:a=>t.value=a}),(a,n)=>ke(a.$slots,"default")}}),y1=tT,aT=le({__name:"PopperAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:a,currentElement:n}=Xe(),r=h1();return Iy(()=>{r.onAnchorChange(t.reference??n.value)}),(l,o)=>(p(),j(s(Qe),{ref:s(a),as:l.as,"as-child":l.asChild},{default:F(()=>[ke(l.$slots,"default")]),_:3},8,["as","as-child"]))}}),Qf=aT;function nT(e){return e!==null}function rT(e){return{name:"transformOrigin",options:e,fn(t){const{placement:a,rects:n,middlewareData:r}=t,o=r.arrow?.centerOffset!==0,i=o?0:e.arrowWidth,u=o?0:e.arrowHeight,[d,c]=Ld(a),f={start:"0%",center:"50%",end:"100%"}[c],m=(r.arrow?.x??0)+i/2,v=(r.arrow?.y??0)+u/2;let y="",x="";return d==="bottom"?(y=o?f:`${m}px`,x=`${-u}px`):d==="top"?(y=o?f:`${m}px`,x=`${n.floating.height+u}px`):d==="right"?(y=`${-u}px`,x=o?f:`${v}px`):d==="left"&&(y=`${n.floating.width+u}px`,x=o?f:`${v}px`),{data:{x:y,y:x}}}}}function Ld(e){const[t,a="center"]=e.split("-");return[t,a]}const lT=["top","right","bottom","left"],kr=Math.min,Mn=Math.max,Gi=Math.round,Zs=Math.floor,In=e=>({x:e,y:e}),oT={left:"right",right:"left",bottom:"top",top:"bottom"};function g1(e,t,a){return Mn(e,kr(t,a))}function Vn(e,t){return typeof e=="function"?e(t):e}function wr(e){return e.split("-")[0]}function so(e){return e.split("-")[1]}function ep(e){return e==="x"?"y":"x"}function tp(e){return e==="y"?"height":"width"}function sn(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function ap(e){return ep(sn(e))}function sT(e,t,a){a===void 0&&(a=!1);const n=so(e),r=ap(e),l=tp(r);let o=r==="x"?n===(a?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(o=Yi(o)),[o,Yi(o)]}function iT(e){const t=Yi(e);return[Nd(e),t,Nd(t)]}function Nd(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Fm=["left","right"],Vm=["right","left"],uT=["top","bottom"],cT=["bottom","top"];function dT(e,t,a){switch(e){case"top":case"bottom":return a?t?Vm:Fm:t?Fm:Vm;case"left":case"right":return t?uT:cT;default:return[]}}function fT(e,t,a,n){const r=so(e);let l=dT(wr(e),a==="start",n);return r&&(l=l.map(o=>o+"-"+r),t&&(l=l.concat(l.map(Nd)))),l}function Yi(e){const t=wr(e);return oT[t]+e.slice(t.length)}function pT(e){var t,a,n,r;return{top:(t=e.top)!=null?t:0,right:(a=e.right)!=null?a:0,bottom:(n=e.bottom)!=null?n:0,left:(r=e.left)!=null?r:0}}function b1(e){return typeof e!="number"?pT(e):{top:e,right:e,bottom:e,left:e}}function Ji(e){const{x:t,y:a,width:n,height:r}=e;return{width:n,height:r,top:a,left:t,right:t+n,bottom:a+r,x:t,y:a}}function zm(e,t,a){let{reference:n,floating:r}=e;const l=sn(t),o=ap(t),i=tp(o),u=wr(t),d=l==="y",c=n.x+n.width/2-r.width/2,f=n.y+n.height/2-r.height/2,m=n[i]/2-r[i]/2;let v;switch(u){case"top":v={x:c,y:n.y-r.height};break;case"bottom":v={x:c,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y:f};break;case"left":v={x:n.x-r.width,y:f};break;default:v={x:n.x,y:n.y}}const y=so(t);return y&&(v[o]+=m*(y==="end"?1:-1)*(a&&d?-1:1)),v}async function vT(e,t){var a;t===void 0&&(t={});const{x:n,y:r,platform:l,rects:o,elements:i,strategy:u}=e,{boundary:d="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:m=!1,padding:v=0}=Vn(t,e),y=b1(v),C=i[m?f==="floating"?"reference":"floating":f],k=Ji(await l.getClippingRect({element:(a=await(l.isElement==null?void 0:l.isElement(C)))==null||a?C:C.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(i.floating)),boundary:d,rootBoundary:c,strategy:u})),E=f==="floating"?{x:n,y:r,width:o.floating.width,height:o.floating.height}:o.reference,B=await(l.getOffsetParent==null?void 0:l.getOffsetParent(i.floating)),O=await(l.isElement==null?void 0:l.isElement(B))&&await(l.getScale==null?void 0:l.getScale(B))||{x:1,y:1},T=Ji(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:E,offsetParent:B,strategy:u}):E);return{top:(k.top-T.top+y.top)/O.y,bottom:(T.bottom-k.bottom+y.bottom)/O.y,left:(k.left-T.left+y.left)/O.x,right:(T.right-k.right+y.right)/O.x}}const mT=50,hT=async(e,t,a)=>{const{placement:n="bottom",strategy:r="absolute",middleware:l=[],platform:o}=a,i=o.detectOverflow?o:{...o,detectOverflow:vT},u=await(o.isRTL==null?void 0:o.isRTL(t));let d=await o.getElementRects({reference:e,floating:t,strategy:r}),{x:c,y:f}=zm(d,n,u),m=n,v=0;const y={};for(let x=0;x({name:"arrow",options:e,async fn(t){const{x:a,y:n,placement:r,rects:l,platform:o,elements:i,middlewareData:u}=t,{element:d,padding:c=0}=Vn(e,t)||{};if(d==null)return{};const f=b1(c),m={x:a,y:n},v=ap(r),y=tp(v),x=await o.getDimensions(d),C=v==="y",k=C?"top":"left",E=C?"bottom":"right",B=C?"clientHeight":"clientWidth",O=l.reference[y]+l.reference[v]-m[v]-l.floating[y],T=m[v]-l.reference[v],P=await(o.getOffsetParent==null?void 0:o.getOffsetParent(d));let R=P?P[B]:0;(!R||!await(o.isElement==null?void 0:o.isElement(P)))&&(R=i.floating[B]||l.floating[y]);const U=O/2-T/2,S=R/2-x[y]/2-1,I=kr(f[k],S),z=kr(f[E],S),D=R-x[y]-z,N=R/2-x[y]/2+U,Z=g1(I,N,D),W=!u.arrow&&so(r)!=null&&N!==Z&&l.reference[y]/2-(NZ<=0)){var z,D;const Z=(((z=l.flip)==null?void 0:z.index)||0)+1,W=R[Z];if(W&&(!(f==="alignment"?E!==sn(W):!1)||I.every(oe=>sn(oe.placement)===E?oe.overflows[0]>0:!0)))return{data:{index:Z,overflows:I},reset:{placement:W}};let K=(D=I.filter(ne=>ne.overflows[0]<=0).sort((ne,oe)=>ne.overflows[1]-oe.overflows[1])[0])==null?void 0:D.placement;if(!K)switch(v){case"bestFit":{var N;const ne=(N=I.filter(oe=>{if(P){const se=sn(oe.placement);return se===E||se==="y"}return!0}).map(oe=>[oe.placement,oe.overflows.filter(se=>se>0).reduce((se,de)=>se+de,0)]).sort((oe,se)=>oe[1]-se[1])[0])==null?void 0:N[0];ne&&(K=ne);break}case"initialPlacement":K=i;break}if(r!==K)return{reset:{placement:K}}}return{}}}};function jm(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Um(e){return lT.some(t=>e[t]>=0)}const bT=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:a,platform:n}=t,{strategy:r="referenceHidden",...l}=Vn(e,t);switch(r){case"referenceHidden":{const o=await n.detectOverflow(t,{...l,elementContext:"reference"}),i=jm(o,a.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Um(i)}}}case"escaped":{const o=await n.detectOverflow(t,{...l,altBoundary:!0}),i=jm(o,a.floating);return{data:{escapedOffsets:i,escaped:Um(i)}}}default:return{}}}}},_1=new Set(["left","top"]);async function _T(e,t){const{placement:a,platform:n,elements:r}=e,l=await(n.isRTL==null?void 0:n.isRTL(r.floating)),o=wr(a),i=so(a),u=sn(a)==="y",d=_1.has(o)?-1:1,c=l&&u?-1:1,f=Vn(t,e);let{mainAxis:m,crossAxis:v,alignmentAxis:y}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return i&&typeof y=="number"&&(v=i==="end"?y*-1:y),u?{x:v*c,y:m*d}:{x:m*d,y:v*c}}const xT=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var a,n;const{x:r,y:l,placement:o,middlewareData:i}=t,u=await _T(t,e);return o===((a=i.offset)==null?void 0:a.placement)&&(n=i.arrow)!=null&&n.alignmentOffset?{}:{x:r+u.x,y:l+u.y,data:{...u,placement:o}}}}},kT=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:a,y:n,placement:r,platform:l}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:u={fn:E=>{let{x:B,y:O}=E;return{x:B,y:O}}},...d}=Vn(e,t),c={x:a,y:n},f=await l.detectOverflow(t,d),m=sn(r),v=ep(m);let y=c[v],x=c[m];const C=(E,B)=>g1(B+f[E==="y"?"top":"left"],B,B-f[E==="y"?"bottom":"right"]);o&&(y=C(v,y)),i&&(x=C(m,x));const k=u.fn({...t,[v]:y,[m]:x});return{...k,data:{x:k.x-a,y:k.y-n,enabled:{[v]:o,[m]:i}}}}}},wT=function(e){return e===void 0&&(e={}),{options:e,fn(t){var a,n;const{x:r,y:l,placement:o,rects:i,middlewareData:u}=t,{offset:d=0,mainAxis:c=!0,crossAxis:f=!0}=Vn(e,t),m={x:r,y:l},v=sn(o),y=ep(v);let x=m[y],C=m[v];const k=Vn(d,t),E=typeof k=="number"?{mainAxis:k,crossAxis:0}:{mainAxis:(a=k.mainAxis)!=null?a:0,crossAxis:(n=k.crossAxis)!=null?n:0};if(c){const T=y==="y"?"height":"width",P=i.reference[y]-i.floating[T]+E.mainAxis,R=i.reference[y]+i.reference[T]-E.mainAxis;xR&&(x=R)}if(f){var B,O;const T=y==="y"?"width":"height",P=_1.has(wr(o)),R=i.reference[v]-i.floating[T]+(P&&((B=u.offset)==null?void 0:B[v])||0)+(P?0:E.crossAxis),U=i.reference[v]+i.reference[T]+(P?0:((O=u.offset)==null?void 0:O[v])||0)-(P?E.crossAxis:0);CU&&(C=U)}return{[y]:x,[v]:C}}}},$T=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:a,rects:n,platform:r,elements:l}=t,{apply:o=()=>{},...i}=Vn(e,t),u=await r.detectOverflow(t,i),d=wr(a),c=so(a),f=sn(a)==="y",{width:m,height:v}=n.floating;let y,x;d==="top"||d==="bottom"?(y=d,x=c===(await(r.isRTL==null?void 0:r.isRTL(l.floating))?"start":"end")?"left":"right"):(x=d,y=c==="end"?"top":"bottom");const C=v-u.top-u.bottom,k=m-u.left-u.right,E=kr(v-u[y],C),B=kr(m-u[x],k),O=t.middlewareData.shift,T=!O;let P=E,R=B;O!=null&&O.enabled.x&&(R=k),O!=null&&O.enabled.y&&(P=C),T&&!c&&(f?R=m-2*Mn(u.left,u.right):P=v-2*Mn(u.top,u.bottom)),await o({...t,availableWidth:R,availableHeight:P});const U=await r.getDimensions(l.floating);return m!==U.width||v!==U.height?{reset:{rects:!0}}:{}}}};function Pu(){return typeof window<"u"}function ml(e){return np(e)?(e.nodeName||"").toLowerCase():"#document"}function ma(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Kn(e){var t;return(t=(np(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function np(e){return Pu()?e instanceof Node||e instanceof ma(e).Node:!1}function pn(e){return Pu()?e instanceof Element||e instanceof ma(e).Element:!1}function Pr(e){return Pu()?e instanceof HTMLElement||e instanceof ma(e).HTMLElement:!1}function Hm(e){return!Pu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ma(e).ShadowRoot}function Ru(e){const{overflow:t,overflowX:a,overflowY:n,display:r}=vn(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+a)&&r!=="inline"&&r!=="contents"}function CT(e){return/^(table|td|th)$/.test(ml(e))}function qu(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const ST=/transform|translate|scale|rotate|perspective|filter/,ET=/paint|layout|strict|content/,Hr=e=>!!e&&e!=="none";let Pc;function rp(e){const t=pn(e)?vn(e):e;return Hr(t.transform)||Hr(t.translate)||Hr(t.scale)||Hr(t.rotate)||Hr(t.perspective)||!lp()&&(Hr(t.backdropFilter)||Hr(t.filter))||ST.test(t.willChange||"")||ET.test(t.contain||"")}function AT(e){let t=sl(e);for(;Pr(t)&&!fs(t);){if(rp(t))return t;if(qu(t))return null;t=sl(t)}return null}function lp(){return Pc==null&&(Pc=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Pc}function fs(e){return/^(html|body|#document)$/.test(ml(e))}function vn(e){return ma(e).getComputedStyle(e)}function Lu(e){return pn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function sl(e){if(ml(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Hm(e)&&e.host||Kn(e);return Hm(t)?t.host:t}function x1(e){const t=sl(e);return fs(t)?(e.ownerDocument||e).body:Pr(t)&&Ru(t)?t:x1(t)}function ps(e,t,a){var n;t===void 0&&(t=[]),a===void 0&&(a=!0);const r=x1(e),l=r===((n=e.ownerDocument)==null?void 0:n.body),o=ma(r);if(l){const i=Bd(o);return t.concat(o,o.visualViewport||[],Ru(r)?r:[],i&&a?ps(i):[])}else return t.concat(r,ps(r,[],a))}function Bd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function k1(e){const t=vn(e);let a=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const r=Pr(e),l=r?e.offsetWidth:a,o=r?e.offsetHeight:n,i=Gi(a)!==l||Gi(n)!==o;return i&&(a=l,n=o),{width:a,height:n,$:i}}function op(e){return pn(e)?e:e.contextElement}function Gl(e){const t=op(e);if(!Pr(t))return In(1);const a=t.getBoundingClientRect(),{width:n,height:r,$:l}=k1(t);let o=(l?Gi(a.width):a.width)/n,i=(l?Gi(a.height):a.height)/r;return(!o||!Number.isFinite(o))&&(o=1),(!i||!Number.isFinite(i))&&(i=1),{x:o,y:i}}const TT=In(0);function w1(e){const t=ma(e);return!lp()||!t.visualViewport?TT:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function DT(e,t,a){return t===void 0&&(t=!1),!!a&&t&&a===ma(e)}function il(e,t,a,n){t===void 0&&(t=!1),a===void 0&&(a=!1);const r=e.getBoundingClientRect(),l=op(e);let o=In(1);t&&(n?pn(n)&&(o=Gl(n)):o=Gl(e));const i=DT(l,a,n)?w1(l):In(0);let u=(r.left+i.x)/o.x,d=(r.top+i.y)/o.y,c=r.width/o.x,f=r.height/o.y;if(l&&n){const m=ma(l),v=pn(n)?ma(n):n;let y=m,x=Bd(y);for(;x&&v!==y;){const C=Gl(x),k=x.getBoundingClientRect(),E=vn(x),B=k.left+(x.clientLeft+parseFloat(E.paddingLeft))*C.x,O=k.top+(x.clientTop+parseFloat(E.paddingTop))*C.y;u*=C.x,d*=C.y,c*=C.x,f*=C.y,u+=B,d+=O,y=ma(x),x=Bd(y)}}return Ji({width:c,height:f,x:u,y:d})}function Nu(e,t){const a=Lu(e).scrollLeft;return t?t.left+a:il(Kn(e)).left+a}function $1(e,t){const a=e.getBoundingClientRect(),n=a.left+t.scrollLeft-Nu(e,a),r=a.top+t.scrollTop;return{x:n,y:r}}function OT(e){let{elements:t,rect:a,offsetParent:n,strategy:r}=e;const l=r==="fixed",o=Kn(n),i=t?qu(t.floating):!1;if(n===o||i&&l)return a;let u={scrollLeft:0,scrollTop:0},d=In(1);const c=In(0),f=Pr(n);if((f||!l)&&((ml(n)!=="body"||Ru(o))&&(u=Lu(n)),f)){const v=il(n);d=Gl(n),c.x=v.x+n.clientLeft,c.y=v.y+n.clientTop}const m=o&&!f&&!l?$1(o,u):In(0);return{width:a.width*d.x,height:a.height*d.y,x:a.x*d.x-u.scrollLeft*d.x+c.x+m.x,y:a.y*d.y-u.scrollTop*d.y+c.y+m.y}}function MT(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function IT(e){const t=Lu(e),a=e.ownerDocument.body,n=Mn(e.scrollWidth,e.clientWidth,a.scrollWidth,a.clientWidth),r=Mn(e.scrollHeight,e.clientHeight,a.scrollHeight,a.clientHeight);let l=-t.scrollLeft+Nu(e);const o=-t.scrollTop;return vn(a).direction==="rtl"&&(l+=Mn(e.clientWidth,a.clientWidth)-n),{width:n,height:r,x:l,y:o}}const PT=25;function RT(e,t,a){a===void 0&&(a="viewport");const n=a==="layoutViewport",r=ma(e),l=Kn(e),o=r.visualViewport;let i=l.clientWidth,u=l.clientHeight,d=0,c=0;if(o){const m=!lp()||t==="fixed";n?m||(d=-o.offsetLeft,c=-o.offsetTop):(i=o.width,u=o.height,m&&(d=o.offsetLeft,c=o.offsetTop))}if(Nu(l)<=0){const m=l.ownerDocument,v=m.body,y=getComputedStyle(v),x=m.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,C=Math.abs(l.clientWidth-v.clientWidth-x),k=getComputedStyle(l).scrollbarGutter==="stable both-edges"?C/2:C;k<=PT&&(i-=k)}return{width:i,height:u,x:d,y:c}}function qT(e,t){const a=il(e,!0,t==="fixed"),n=a.top+e.clientTop,r=a.left+e.clientLeft,l=Gl(e),o=e.clientWidth*l.x,i=e.clientHeight*l.y,u=r*l.x,d=n*l.y;return{width:o,height:i,x:u,y:d}}function Km(e,t,a){let n;if(t==="viewport"||t==="layoutViewport")n=RT(e,a,t);else if(t==="document")n=IT(Kn(e));else if(pn(t))n=qT(t,a);else{const r=w1(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Ji(n)}function LT(e,t){const a=t.get(e);if(a)return a;let n=ps(e,[],!1).filter(i=>pn(i)&&ml(i)!=="body"),r=null;const l=vn(e).position==="fixed";let o=l?sl(e):e;for(;pn(o)&&!fs(o);){const i=vn(o),u=rp(o),d=r?r.position:l?"fixed":"";!u&&(d==="fixed"||d==="absolute"&&i.position==="static")?n=n.filter(f=>f!==o):r=i,o=sl(o)}return t.set(e,n),n}function NT(e){let{element:t,boundary:a,rootBoundary:n,strategy:r}=e;const o=[...a==="clippingAncestors"?qu(t)?[]:LT(t,this._c):[].concat(a),n],i=Km(t,o[0],r);let u=i.top,d=i.right,c=i.bottom,f=i.left;for(let m=1;m{i(!1,1e-7)},1e3)}R=!1}try{n=new IntersectionObserver(U,{...P,root:l.ownerDocument})}catch{n=new IntersectionObserver(U,P)}n.observe(e)}const u=ma(e),d=()=>i(a);return u.addEventListener("resize",d),i(!0),()=>{u.removeEventListener("resize",d),o()}}function HT(e,t,a,n){n===void 0&&(n={});const{ancestorScroll:r=!0,ancestorResize:l=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:u=!1}=n,d=op(e),c=r||l?[...d?ps(d):[],...t?ps(t):[]]:[];c.forEach(k=>{r&&k.addEventListener("scroll",a),l&&k.addEventListener("resize",a)});const f=d&&i?UT(d,a,l):null;let m=-1,v=null;o&&(v=new ResizeObserver(k=>{let[E]=k;E&&E.target===d&&v&&t&&(v.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var B;(B=v)==null||B.observe(t)})),a()}),d&&!u&&v.observe(d),t&&v.observe(t));let y,x=u?il(e):null;u&&C();function C(){const k=il(e);x&&!S1(x,k)&&a(),x=k,y=requestAnimationFrame(C)}return a(),()=>{var k;c.forEach(E=>{r&&E.removeEventListener("scroll",a),l&&E.removeEventListener("resize",a)}),f?.(),(k=v)==null||k.disconnect(),v=null,u&&cancelAnimationFrame(y)}}const KT=xT,WT=kT,Gm=gT,GT=$T,YT=bT,JT=yT,ZT=wT,XT=(e,t,a)=>{const n=new Map,r=a??{},l={...jT,...r.platform,_c:n};return hT(e,t,{...r,platform:l})};function QT(e){return e!=null&&typeof e=="object"&&"$el"in e}function Fd(e){if(QT(e)){const t=e.$el;return np(t)&&ml(t)==="#comment"?null:t}return e}function Ml(e){return typeof e=="function"?e():s(e)}function e5(e){return{name:"arrow",options:e,fn(t){const a=Fd(Ml(e.element));return a==null?{}:JT({element:a,padding:e.padding}).fn(t)}}}function E1(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ym(e,t){const a=E1(e);return Math.round(t*a)/a}function t5(e,t,a){a===void 0&&(a={});const n=a.whileElementsMounted,r=_(()=>{var R;return(R=Ml(a.open))!=null?R:!0}),l=_(()=>Ml(a.middleware)),o=_(()=>{var R;return(R=Ml(a.placement))!=null?R:"bottom"}),i=_(()=>{var R;return(R=Ml(a.strategy))!=null?R:"absolute"}),u=_(()=>{var R;return(R=Ml(a.transform))!=null?R:!0}),d=_(()=>Fd(e.value)),c=_(()=>Fd(t.value)),f=A(0),m=A(0),v=A(i.value),y=A(o.value),x=ul({}),C=A(!1),k=_(()=>{const R={position:v.value,left:"0",top:"0"};if(!c.value)return R;const U=Ym(c.value,f.value),S=Ym(c.value,m.value);return u.value?{...R,transform:"translate("+U+"px, "+S+"px)",...E1(c.value)>=1.5&&{willChange:"transform"}}:{position:v.value,left:U+"px",top:S+"px"}});let E;function B(){if(d.value==null||c.value==null)return;const R=r.value;XT(d.value,c.value,{middleware:l.value,placement:o.value,strategy:i.value}).then(U=>{f.value=U.x,m.value=U.y,v.value=U.strategy,y.value=U.placement,x.value=U.middlewareData,C.value=R!==!1})}function O(){typeof E=="function"&&(E(),E=void 0)}function T(){if(O(),n===void 0){B();return}if(d.value!=null&&c.value!=null){E=n(d.value,c.value,B);return}}function P(){r.value||(C.value=!1)}return Ne([l,o,i,r],B,{flush:"sync"}),Ne([d,c],T,{flush:"sync"}),Ne(r,P,{flush:"sync"}),af()&&sy(O),{x:kl(f),y:kl(m),strategy:kl(v),placement:kl(y),middlewareData:kl(x),isPositioned:kl(C),floatingStyles:k,update:B}}const A1={side:"bottom",sideOffset:0,sideFlip:!0,align:"center",alignOffset:0,alignFlip:!0,arrowPadding:0,hideShiftedArrow:!0,avoidCollisions:!0,collisionBoundary:()=>[],collisionPadding:0,sticky:"partial",hideWhenDetached:!1,positionStrategy:"fixed",updatePositionStrategy:"optimized",prioritizePosition:!1},[cW,a5]=At("PopperContent");var n5=le({inheritAttrs:!1,__name:"PopperContent",props:Yy({side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...A1}),emits:["placed"],setup(e,{emit:t}){const a=e,n=t,r=h1(),{forwardRef:l,currentElement:o}=Xe(),i=A(),u=A(),{width:d,height:c}=zA(u),f=_(()=>a.side+(a.align!=="center"?`-${a.align}`:"")),m=_(()=>typeof a.collisionPadding=="number"?a.collisionPadding:{top:0,right:0,bottom:0,left:0,...a.collisionPadding}),v=_(()=>Array.isArray(a.collisionBoundary)?a.collisionBoundary:[a.collisionBoundary]),y=_(()=>({padding:m.value,boundary:v.value.filter(nT),altBoundary:v.value.length>0})),x=_(()=>({mainAxis:a.sideFlip,crossAxis:a.alignFlip})),C=bE(()=>[KT({mainAxis:a.sideOffset+c.value,alignmentAxis:a.alignOffset}),a.prioritizePosition&&a.avoidCollisions&&Gm({...y.value,...x.value}),a.avoidCollisions&&WT({mainAxis:!0,crossAxis:!!a.prioritizePosition,limiter:a.sticky==="partial"?ZT():void 0,...y.value}),!a.prioritizePosition&&a.avoidCollisions&&Gm({...y.value,...x.value}),GT({...y.value,apply:({elements:D,rects:N,availableWidth:Z,availableHeight:W})=>{const{width:K,height:ne}=N.reference,oe=D.floating.style;oe.setProperty("--reka-popper-available-width",`${Z}px`),oe.setProperty("--reka-popper-available-height",`${W}px`),oe.setProperty("--reka-popper-anchor-width",`${K}px`),oe.setProperty("--reka-popper-anchor-height",`${ne}px`)}}),u.value&&e5({element:u.value,padding:a.arrowPadding}),rT({arrowWidth:d.value,arrowHeight:c.value}),a.hideWhenDetached&&YT({strategy:"referenceHidden",...y.value})]),k=_(()=>a.reference??r.anchor.value),{floatingStyles:E,placement:B,isPositioned:O,middlewareData:T}=t5(k,i,{strategy:a.positionStrategy,placement:f,whileElementsMounted:(...D)=>HT(...D,{layoutShift:!a.disableUpdateOnLayoutShift,animationFrame:a.updatePositionStrategy==="always"}),middleware:C}),P=_(()=>Ld(B.value)[0]),R=_(()=>Ld(B.value)[1]);Iy(()=>{O.value&&n("placed")});const U=_(()=>{const D=T.value.arrow?.centerOffset!==0;return a.hideShiftedArrow&&D}),S=A("");Ca(()=>{o.value&&(S.value=window.getComputedStyle(o.value).zIndex)});const I=_(()=>T.value.arrow?.x??0),z=_(()=>T.value.arrow?.y??0);return a5({placedSide:P,onArrowChange:D=>u.value=D,arrowX:I,arrowY:z,shouldHideArrow:U}),(D,N)=>(p(),g("div",{ref_key:"floatingRef",ref:i,"data-reka-popper-content-wrapper":"",style:ua({...s(E),transform:s(O)?s(E).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:S.value,"--reka-popper-transform-origin":[s(T).transformOrigin?.x,s(T).transformOrigin?.y].join(" "),...s(T).hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}})},[L(s(Qe),je({ref:s(l)},D.$attrs,{"as-child":a.asChild,as:D.as,"data-side":P.value,"data-align":R.value,style:{animation:s(O)?void 0:"none"}}),{default:F(()=>[ke(D.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4))}}),T1=n5;const sp=["day","month","year"],ip=["hour","minute","second","dayPeriod"],D1=[...sp,...ip];function r5(e){return sp.includes(e)}function O1(e){return D1.includes(e)}const l5=["ach","af","am","an","ar","ast","az","be","bg","bn","br","bs","ca","cak","ckb","cs","cy","da","de","dsb","el","en","eo","es","et","eu","fa","ff","fi","fr","fy","ga","gd","gl","he","hr","hsb","hu","ia","id","it","ja","ka","kk","kn","ko","lb","lo","lt","lv","meh","ml","ms","nl","nn","no","oc","pl","pt","rm","ro","ru","sc","scn","sk","sl","sr","sv","szl","tg","th","tr","uk","zh-CN","zh-TW"],o5=["year","month","day"],qc={ach:{year:"mwaka",month:"dwe",day:"nino"},af:{year:"jjjj",month:"mm",day:"dd"},am:{year:"ዓዓዓዓ",month:"ሚሜ",day:"ቀቀ"},an:{year:"aaaa",month:"mm",day:"dd"},ar:{year:"سنة",month:"شهر",day:"يوم"},ast:{year:"aaaa",month:"mm",day:"dd"},az:{year:"iiii",month:"aa",day:"gg"},be:{year:"гггг",month:"мм",day:"дд"},bg:{year:"гггг",month:"мм",day:"дд"},bn:{year:"yyyy",month:"মিমি",day:"dd"},br:{year:"bbbb",month:"mm",day:"dd"},bs:{year:"gggg",month:"mm",day:"dd"},ca:{year:"aaaa",month:"mm",day:"dd"},cak:{year:"jjjj",month:"ii",day:"q'q'"},ckb:{year:"ساڵ",month:"مانگ",day:"ڕۆژ"},cs:{year:"rrrr",month:"mm",day:"dd"},cy:{year:"bbbb",month:"mm",day:"dd"},da:{year:"åååå",month:"mm",day:"dd"},de:{year:"jjjj",month:"mm",day:"tt"},dsb:{year:"llll",month:"mm",day:"źź"},el:{year:"εεεε",month:"μμ",day:"ηη"},en:{year:"yyyy",month:"mm",day:"dd"},eo:{year:"jjjj",month:"mm",day:"tt"},es:{year:"aaaa",month:"mm",day:"dd"},et:{year:"aaaa",month:"kk",day:"pp"},eu:{year:"uuuu",month:"hh",day:"ee"},fa:{year:"سال",month:"ماه",day:"روز"},ff:{year:"hhhh",month:"ll",day:"ññ"},fi:{year:"vvvv",month:"kk",day:"pp"},fr:{year:"aaaa",month:"mm",day:"jj"},fy:{year:"jjjj",month:"mm",day:"dd"},ga:{year:"bbbb",month:"mm",day:"ll"},gd:{year:"bbbb",month:"mm",day:"ll"},gl:{year:"aaaa",month:"mm",day:"dd"},he:{year:"שנה",month:"חודש",day:"יום"},hr:{year:"gggg",month:"mm",day:"dd"},hsb:{year:"llll",month:"mm",day:"dd"},hu:{year:"éééé",month:"hh",day:"nn"},ia:{year:"aaaa",month:"mm",day:"dd"},id:{year:"tttt",month:"bb",day:"hh"},it:{year:"aaaa",month:"mm",day:"gg"},ja:{year:" 年 ",month:"月",day:"日"},ka:{year:"წწწწ",month:"თთ",day:"რრ"},kk:{year:"жжжж",month:"аа",day:"кк"},kn:{year:"ವವವವ",month:"ಮಿಮೀ",day:"ದಿದಿ"},ko:{year:"연도",month:"월",day:"일"},lb:{year:"jjjj",month:"mm",day:"dd"},lo:{year:"ປປປປ",month:"ດດ",day:"ວວ"},lt:{year:"mmmm",month:"mm",day:"dd"},lv:{year:"gggg",month:"mm",day:"dd"},meh:{year:"aaaa",month:"mm",day:"dd"},ml:{year:"വർഷം",month:"മാസം",day:"തീയതി"},ms:{year:"tttt",month:"mm",day:"hh"},nl:{year:"jjjj",month:"mm",day:"dd"},nn:{year:"åååå",month:"mm",day:"dd"},no:{year:"åååå",month:"mm",day:"dd"},oc:{year:"aaaa",month:"mm",day:"jj"},pl:{year:"rrrr",month:"mm",day:"dd"},pt:{year:"aaaa",month:"mm",day:"dd"},rm:{year:"oooo",month:"mm",day:"dd"},ro:{year:"aaaa",month:"ll",day:"zz"},ru:{year:"гггг",month:"мм",day:"дд"},sc:{year:"aaaa",month:"mm",day:"dd"},scn:{year:"aaaa",month:"mm",day:"jj"},sk:{year:"rrrr",month:"mm",day:"dd"},sl:{year:"llll",month:"mm",day:"dd"},sr:{year:"гггг",month:"мм",day:"дд"},sv:{year:"åååå",month:"mm",day:"dd"},szl:{year:"rrrr",month:"mm",day:"dd"},tg:{year:"сссс",month:"мм",day:"рр"},th:{year:"ปปปป",month:"ดด",day:"วว"},tr:{year:"yyyy",month:"aa",day:"gg"},uk:{year:"рррр",month:"мм",day:"дд"},"zh-CN":{year:"年",month:"月",day:"日"},"zh-TW":{year:"年",month:"月",day:"日"}};function s5(e){if(Jm(e))return qc[e];{const t=d5(e);return Jm(t)?qc[t]:qc.en}}function Lc(e,t,a){return i5(e)?s5(a)[e]:c5(e)?t:u5(e)?"––":""}function Jm(e){return l5.includes(e)}function i5(e){return o5.includes(e)}function u5(e){return e==="hour"||e==="minute"||e==="second"}function c5(e){return e==="era"||e==="dayPeriod"}function d5(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const f5=["hour","minute","second"];function Vd(e){return Object.fromEntries(ip.map(t=>t==="dayPeriod"?[t,e.formatter.dayPeriod(Da(e.value))]:[t,e.value[t]]))}function Zm(e){const{formatter:t}=e,a=sp.map(n=>[n,e.value[n]]);if("hour"in e.value){const n=Vd({value:e.value,formatter:t});return{...Object.fromEntries(a),...n}}return Object.fromEntries(a)}function p5(e){return Object.fromEntries(ip.map(t=>t==="dayPeriod"?[t,"AM"]:[t,null]).filter(([t])=>!(t==="literal"||t===null||e==="minute"&&t==="second"||e==="hour"&&(t==="second"||t==="minute"))))}function v5(e){const t=D1.map(a=>a==="dayPeriod"?[a,"AM"]:[a,null]).filter(([a])=>a==="literal"||a===null||e==="minute"&&a==="second"||e==="hour"&&(a==="second"||a==="minute")?!1:e==="day"?!f5.includes(a)&&a!=="dayPeriod":!0);return Object.fromEntries(t)}function m5(e){const{segmentValues:t,formatter:a,locale:n}=e;function r(o){if("hour"in t){const i=t[o];return i!==null?o==="day"?a.part(e.dateRef.set({[o]:i,month:t.month??1}),o,{hourCycle:ds(e.hourCycle)}):a.part(e.dateRef.set({[o]:i}),o,{hourCycle:ds(e.hourCycle)}):Lc(o,"",n.value)}else{if(r5(o)){const i=t[o];return i!==null?o==="day"?a.part(e.dateRef.set({[o]:i,month:t.month??1}),o):a.part(e.dateRef.set({[o]:i}),o):Lc(o,"",n.value)}return""}}return Object.keys(t).reduce((o,i)=>{if(!O1(i))return o;if("hour"in t&&i==="dayPeriod"){const u=t[i];u!==null?o[i]=u:o[i]=Lc(i,"AM",n.value)}else o[i]=r(i);return o},{})}function h5(e){const{granularity:t,formatter:a,contentObj:n,hideTimeZone:r,hourCycle:l,isTimeValue:o}=e;return a.toParts(e.dateRef,qA(t,l,o)).map(d=>["literal","timeZoneName",null].includes(d.type)||!O1(d.type)?{part:d.type,value:d.value}:{part:d.type,value:n[d.type]}).filter(d=>!(d.part===null||d.value===null||d.part==="timeZoneName"&&(!cs(e.dateRef)||r)||(!cs(e.dateRef)||r)&&d.part==="literal"&&["[","]"].includes(d.value.trim())))}function M1(e){const t=m5(e),a=h5({contentObj:t,...e});return{obj:t,arr:a}}function wn(e){const t=oo();return e===t.ARROW_RIGHT||e===t.ARROW_LEFT}function Gr(e){return!Number.isNaN(Number.parseInt(e))}function er(e){const t=oo();return!!([t.ENTER,t.ARROW_UP,t.ARROW_DOWN,t.ARROW_LEFT,t.ARROW_RIGHT,t.BACKSPACE,t.SPACE,"a","A","p","P"].includes(e)||Gr(e))}function Xm(e){return Array.from(e.querySelectorAll("[data-reka-date-field-segment]")).filter(t=>t.getAttribute("data-reka-date-field-segment")!=="literal")}function Qm(e){return Array.from(e.querySelectorAll("[data-reka-time-field-segment]")).filter(t=>t.getAttribute("data-reka-time-field-segment")!=="literal")}const y5=/^\d$/;function Rr(e){return{role:"spinbutton",contenteditable:!0,tabindex:e.disabled?void 0:0,spellcheck:!1,inputmode:"numeric",autocorrect:"off",enterkeyhint:"next",style:"caret-color: transparent;"}}function g5(e){const{segmentValues:t,placeholder:a}=e,n=t.day===null,r={};t.day&&(r.day=t.day),t.month&&(r.month=t.month);const l=Object.keys(r).length>0?a.set(r):a,o=l.day,i=1,u=vr(l),d=n?"Empty":`${o}`;return{...Rr(e),"aria-label":"day,","aria-valuemin":i,"aria-valuemax":u,"aria-valuenow":o,"aria-valuetext":d,"data-placeholder":n?"":void 0}}function b5(e){const{segmentValues:t,placeholder:a,formatter:n}=e,r=t.month===null,l=t.month?a.set({month:t.month}):a,o=l.month,i=1,u=12,d=r?"Empty":`${o} - ${n.fullMonth(Da(l))}`;return{...Rr(e),"aria-label":"month, ",contenteditable:!0,"aria-valuemin":i,"aria-valuemax":u,"aria-valuenow":o,"aria-valuetext":d,"data-placeholder":r?"":void 0}}function _5(e){const{segmentValues:t,placeholder:a}=e,n=t.year===null,r=t.year?a.set({year:t.year}):a,l=1,o=9999,i=r.year,u=n?"Empty":`${i}`;return{...Rr(e),"aria-label":"year, ","aria-valuemin":l,"aria-valuemax":o,"aria-valuenow":i,"aria-valuetext":u,"data-placeholder":n?"":void 0}}function x5(e){const{segmentValues:t,hourCycle:a,placeholder:n}=e;if(!("hour"in t)||!("hour"in n))return{};const r=t.hour===null,l=t.hour?n.set({hour:t.hour}):n,o=a===12?1:0,i=a===12?12:23,u=l.hour,d=r?"Empty":`${u} ${t.dayPeriod??""}`;return{...Rr(e),"aria-label":"hour, ","aria-valuemin":o,"aria-valuemax":i,"aria-valuenow":u,"aria-valuetext":d,"data-placeholder":r?"":void 0}}function k5(e){const{segmentValues:t,placeholder:a}=e;if(!("minute"in t)||!("minute"in a))return{};const n=t.minute===null,l=(t.minute?a.set({minute:t.minute}):a).minute,o=0,i=59,u=n?"Empty":`${l}`;return{...Rr(e),"aria-label":"minute, ","aria-valuemin":o,"aria-valuemax":i,"aria-valuenow":l,"aria-valuetext":u,"data-placeholder":n?"":void 0}}function w5(e){const{segmentValues:t,placeholder:a}=e;if(!("second"in t)||!("second"in a))return{};const n=t.second===null,l=(t.second?a.set({second:t.second}):a).second,o=0,i=59,u=n?"Empty":`${l}`;return{...Rr(e),"aria-label":"second, ","aria-valuemin":o,"aria-valuemax":i,"aria-valuenow":l,"aria-valuetext":u,"data-placeholder":n?"":void 0}}function $5(e){const{segmentValues:t}=e;if(!("dayPeriod"in t))return{};const a=0,n=12,r=t.hour?t.hour>12?t.hour-12:t.hour:0,l=t.dayPeriod??"AM";return{...Rr(e),inputmode:"text","aria-label":"AM/PM","aria-valuemin":a,"aria-valuemax":n,"aria-valuenow":r,"aria-valuetext":l}}function C5(e){return{"aria-hidden":!0,"data-segment":"literal"}}function S5(e){return{role:"textbox","aria-label":"timezone, ","data-readonly":!0,"data-segment":"timeZoneName",tabindex:e.disabled?void 0:0,style:"caret-color: transparent;"}}function E5(e){const{segmentValues:t,placeholder:a}=e,n=0,r=0,l=0,o="era"in t?t.era:a.era;return{...Rr(e),"aria-label":"era","aria-valuemin":n,"aria-valuemax":r,"aria-valuenow":l,"aria-valuetext":o}}const A5={day:{attrs:g5},month:{attrs:b5},year:{attrs:_5},hour:{attrs:x5},minute:{attrs:k5},second:{attrs:w5},dayPeriod:{attrs:$5},literal:{attrs:C5},timeZoneName:{attrs:S5},era:{attrs:E5}};function I1(e){const t=oo();function a({e:S,part:I,dateRef:z,prevValue:D}){const N=e.step.value[I]??1,Z=S.key===t.ARROW_UP?N:-N,W=0,K=59;if(D===null)return Z>0?W:K;const ne=[I,Z];return z.set({[I]:D}).cycle(...ne)[I]}function n(S){if(e.hasLeftFocus.value=!1,S===null)return S;const I=S.toString();return I.length===1?(e.modelValue.value=void 0,null):Number.parseInt(I.slice(0,-1))}function r({e:S,part:I,dateRef:z,prevValue:D}){const N=e.step.value[I]??1,Z=S.key===t.ARROW_UP?N:-N;if(D===null)return z[I];if(I==="hour"&&"hour"in z){const K=[I,Z];return z.set({[I]:D}).cycle(...K)[I]}const W=[I,Z];return I==="day"?z.set({[I]:D,month:e.segmentValues.value.month??1}).cycle(...W)[I]:z.set({[I]:D}).cycle(...W)[I]}function l(S,I,z){let D=!1;const N=Math.floor(S/10);if(e.hasLeftFocus.value&&(e.hasLeftFocus.value=!1,e.lastKeyZero.value=!1,z=null),z===null)return I===0?(e.lastKeyZero.value=!0,{value:null,moveToNext:D}):((e.lastKeyZero.value||I>N)&&(D=!0),e.lastKeyZero.value=!1,{value:I,moveToNext:D});const Z=z.toString().length,W=Number.parseInt(z.toString()+I.toString());return Z===2||W>S?((I>N||W>S)&&(D=!0),{value:I,moveToNext:D}):(D=!0,{value:W,moveToNext:D})}function o(S,I){let D=!1;const N=Math.floor(59/10);if(e.hasLeftFocus.value&&(e.hasLeftFocus.value=!1,e.lastKeyZero.value=!1,I=null),I===null)return S===0?(e.lastKeyZero.value=!0,{value:0,moveToNext:D}):((e.lastKeyZero.value||S>N)&&(D=!0),e.lastKeyZero.value=!1,{value:S,moveToNext:D});const Z=I.toString().length,W=Number.parseInt(I.toString()+S.toString());return Z===2||W>59?(S>N&&(D=!0),{value:S,moveToNext:D}):(D=!0,{value:W,moveToNext:D})}function i(S,I,z){let D=!1;const N=Math.floor(S/10);if(e.hasLeftFocus.value&&(e.hasLeftFocus.value=!1,e.lastKeyZero.value=!1,z=null),z===null)return I===0?(e.lastKeyZero.value=!0,{value:0,moveToNext:D}):((e.lastKeyZero.value||I>N)&&(D=!0),e.lastKeyZero.value=!1,{value:I,moveToNext:D});const Z=z.toString().length,W=Number.parseInt(z.toString()+I.toString());return Z===2||W>S?(I>N&&(D=!0),{value:I,moveToNext:D}):(D=!0,{value:W,moveToNext:D})}function u(S,I){let z=!1;if(e.hasLeftFocus.value&&(e.hasLeftFocus.value=!1,I=null),I===null)return{value:S===0?1:S,moveToNext:z};const D=I.toString()+S.toString();return D.length>4?{value:S===0?1:S,moveToNext:z}:(D.length===4&&(z=!0),{value:Number.parseInt(D),moveToNext:z})}const d=_(()=>A5[e.part]?.attrs({disabled:e.disabled.value,placeholder:e.placeholder.value,hourCycle:e.hourCycle,segmentValues:e.segmentValues.value,formatter:e.formatter})??{});function c(S){if(!er(S.key)||wn(S.key))return;const I=e.segmentValues.value.day;if(S.key===t.ARROW_DOWN||S.key===t.ARROW_UP){e.segmentValues.value.day=r({e:S,part:"day",dateRef:e.placeholder.value,prevValue:I});return}if(Gr(S.key)){const z=Number.parseInt(S.key),D=e.segmentValues.value.month,N=D?vr(e.placeholder.value.set({month:D})):31,{value:Z,moveToNext:W}=l(N,z,I);e.segmentValues.value.day=Z,W&&e.focusNext()}S.key===t.BACKSPACE&&(e.hasLeftFocus.value=!1,e.segmentValues.value.day=n(I))}function f(S){if(!er(S.key)||wn(S.key))return;const I=e.segmentValues.value.month;if(S.key===t.ARROW_DOWN||S.key===t.ARROW_UP){e.segmentValues.value.month=r({e:S,part:"month",dateRef:e.placeholder.value,prevValue:I});return}if(Gr(S.key)){const z=Number.parseInt(S.key),{value:D,moveToNext:N}=l(12,z,I);e.segmentValues.value.month=D,N&&e.focusNext()}S.key===t.BACKSPACE&&(e.hasLeftFocus.value=!1,e.segmentValues.value.month=n(I))}function m(S){if(!er(S.key)||wn(S.key))return;const I=e.segmentValues.value.year;if(S.key===t.ARROW_DOWN||S.key===t.ARROW_UP){e.segmentValues.value.year=r({e:S,part:"year",dateRef:e.placeholder.value,prevValue:I});return}if(Gr(S.key)){const z=Number.parseInt(S.key),{value:D,moveToNext:N}=u(z,I);e.segmentValues.value.year=D,N&&e.focusNext()}S.key===t.BACKSPACE&&(e.hasLeftFocus.value=!1,e.segmentValues.value.year=n(I))}function v(S){const I=new Na(S,{hour:"numeric"}).resolvedOptions().hourCycle;return I==="h11"||I==="h12"}function y(S){const I=e.placeholder.value;if(!er(S.key)||wn(S.key)||!("hour"in I)||!("hour"in e.segmentValues.value))return;const z=e.segmentValues.value.hour;if(S.key===t.ARROW_UP||S.key===t.ARROW_DOWN){const D=r({e:S,part:"hour",dateRef:e.placeholder.value,prevValue:z});e.segmentValues.value.hour=D,"dayPeriod"in e.segmentValues.value&&D!==null&&(e.segmentValues.value.dayPeriod=D>=12?"PM":"AM");return}if(Gr(S.key)){const D=Number.parseInt(S.key),N=e.hourCycle!==void 0?e.hourCycle===12:v(e.formatter.getLocale()),Z=N?12:24;let W=z;N&&z!==null&&(W=z%12===0?0:z>12?z-12:z);const{value:K,moveToNext:ne}=i(Z,D,W);let oe=K;if(N&&K!==null){const se=e.segmentValues.value.dayPeriod||"AM";K===12?oe=se==="AM"?0:12:oe=se==="PM"?K+12:K}e.segmentValues.value.hour=oe,ne&&e.focusNext()}S.key===t.BACKSPACE&&(e.hasLeftFocus.value=!1,e.segmentValues.value.hour=n(z))}function x(S){const I=e.placeholder.value;if(!er(S.key)||wn(S.key)||!("minute"in I)||!("minute"in e.segmentValues.value))return;const z=e.segmentValues.value.minute;if((S.key===t.ARROW_UP||S.key===t.ARROW_DOWN)&&(e.segmentValues.value.minute=a({e:S,part:"minute",dateRef:e.placeholder.value,prevValue:z})),Gr(S.key)){const D=Number.parseInt(S.key),{value:N,moveToNext:Z}=o(D,z);e.segmentValues.value.minute=N,Z&&e.focusNext()}S.key===t.BACKSPACE&&(e.hasLeftFocus.value=!1,e.segmentValues.value.minute=n(z))}function C(S){const I=e.placeholder.value;if(!er(S.key)||wn(S.key)||!("second"in I)||!("second"in e.segmentValues.value))return;const z=e.segmentValues.value.second;if((S.key===t.ARROW_UP||S.key===t.ARROW_DOWN)&&(e.segmentValues.value.second=a({e:S,part:"second",dateRef:e.placeholder.value,prevValue:z})),Gr(S.key)){const D=Number.parseInt(S.key),{value:N,moveToNext:Z}=o(D,z);e.segmentValues.value.second=N,Z&&e.focusNext()}S.key===t.BACKSPACE&&(e.hasLeftFocus.value=!1,e.segmentValues.value.second=n(z))}function k(S){if(!((!er(S.key)||wn(S.key))&&S.key!=="a"&&S.key!=="p"||!("hour"in e.placeholder.value)||!("dayPeriod"in e.segmentValues.value))){if(S.key===t.ARROW_UP||S.key===t.ARROW_DOWN){if(e.segmentValues.value.dayPeriod==="AM"){e.segmentValues.value.dayPeriod="PM",e.segmentValues.value.hour=e.segmentValues.value.hour+12;return}e.segmentValues.value.dayPeriod="AM",e.segmentValues.value.hour=e.segmentValues.value.hour-12;return}if(["a","A"].includes(S.key)&&e.segmentValues.value.dayPeriod!=="AM"){e.segmentValues.value.dayPeriod="AM",e.segmentValues.value.hour=e.segmentValues.value.hour-12;return}["p","P"].includes(S.key)&&e.segmentValues.value.dayPeriod!=="PM"&&(e.segmentValues.value.dayPeriod="PM",e.segmentValues.value.hour=e.segmentValues.value.hour+12)}}function E(S){e.disabled.value&&S.preventDefault()}function B(S){if(S.isComposing||S.key==="Process")return;const I=e.disabled.value,z=e.readonly.value;if(I||z)return;if(S.key!==t.TAB&&S.preventDefault(),{day:c,month:f,year:m,hour:y,minute:x,second:C,dayPeriod:k,timeZoneName:()=>{}}[e.part](S),![t.ARROW_LEFT,t.ARROW_RIGHT].includes(S.key)&&S.key!==t.TAB&&S.key!==t.SHIFT&&er(S.key)&&Object.values(e.segmentValues.value).every(N=>N!==null)){const N={...e.segmentValues.value},Z=e.placeholder.value.set(N);e.modelValue.value=Z.copy()}}function O(){if(e.stepSnapping?.value&&(e.part==="hour"&&"hour"in e.segmentValues.value&&e.segmentValues.value.hour!==null&&e.step.value.hour&&e.step.value.hour>1?(e.segmentValues.value.hour=yc(e.segmentValues.value.hour,0,23,e.step.value.hour),"dayPeriod"in e.segmentValues.value&&(e.segmentValues.value.hour<12?e.segmentValues.value.dayPeriod="AM":e.segmentValues.value.hour&&(e.segmentValues.value.dayPeriod="PM"))):e.part==="minute"&&"minute"in e.segmentValues.value&&e.segmentValues.value.minute!==null&&e.step.value.minute&&e.step.value.minute>1?e.segmentValues.value.minute=yc(e.segmentValues.value.minute,0,59,e.step.value.minute):e.part==="second"&&"second"in e.segmentValues.value&&e.segmentValues.value.second!==null&&e.step.value.second&&e.step.value.second>1&&(e.segmentValues.value.second=yc(e.segmentValues.value.second,0,59,e.step.value.second)),Object.values(e.segmentValues.value).every(S=>S!==null))){const S=e.placeholder.value.set({...e.segmentValues.value});e.modelValue.value=S.copy()}}let T=null;function P(S){S.isComposing||S.preventDefault()}function R(S){const I=S.target;T=Array.from(I.childNodes,z=>({node:z,value:z.nodeValue}))}function U(S){const I=S.target,z=T;if(T=null,z){for(const{node:N,value:Z}of z)N.nodeValue=Z;I.replaceChildren(...z.map(N=>N.node))}const D=S.data;if(D)for(const N of D){if(!y5.test(N))continue;const Z=Gt();if(!(Z instanceof HTMLElement))break;Z.dispatchEvent(new KeyboardEvent("keydown",{key:N,bubbles:!0,cancelable:!0}))}}return{handleSegmentClick:E,handleSegmentKeydown:B,handleSegmentBeforeInput:P,handleSegmentCompositionStart:R,handleSegmentCompositionEnd:U,handleSegmentFocusOut:O,attributes:d}}function T5(e){function t(l){return Array.isArray(e.date.value)?e.date.value.some(o=>gr(o,l)):e.date.value?gr(e.date.value,l):!1}const a=_(()=>{if(Array.isArray(e.date.value)){if(!e.date.value.length)return!1;for(const l of e.date.value)if(e.isDateDisabled?.(l)||e.isDateUnavailable?.(l))return!0}else{if(!e.date.value)return!1;if(e.isDateDisabled?.(e.date.value)||e.isDateUnavailable?.(e.date.value))return!0}return!1}),n=_(()=>Array.isArray(e.date.value)?e.date.value.length>0:!!e.date.value),r=_(()=>Array.isArray(e.date.value)?e.date.value.length?e.date.value.some(l=>e.isDateDisabled?.(l)):!1:e.date.value?!!e.isDateDisabled?.(e.date.value):!1);return{isDateSelected:t,isInvalid:a,hasSelectedDate:n,isSelectedDateDisabled:r}}function D5(e,t){const a=t(e),n=a.compare(e),r={};return n>=7&&(r.day=1),n>=vr(e)&&(r.month=1),a.set({...r})}function O5(e,t){const a=t(e),n=e.compare(a),r={};return n>=7&&(r.day=35),n>=vr(e)&&(r.month=13),a.set({...r})}function M5(e,t){return t(e)}function I5(e,t){return t(e)}function P5(e){const t=Hf(e.locale.value),a=_(()=>{const k={calendar:e.placeholder.value.calendar.identifier};return e.placeholder.value.calendar.identifier==="gregory"&&e.placeholder.value.era==="BC"&&(k.era="short"),k}),n=A(Ur({dateObj:e.placeholder.value,weekStartsOn:e.weekStartsOn.value,locale:e.locale.value,fixedWeeks:e.fixedWeeks.value,numberOfMonths:e.numberOfMonths.value})),r=_(()=>n.value.map(k=>k.value));function l(k){return!r.value.some(E=>fm(k,E))}const o=k=>{if(!e.maxValue.value||!n.value.length)return!1;if(e.disabled.value)return!0;const E=n.value.at(-1).value;if(!k&&!e.nextPage.value){const O=E.add({months:1}).set({day:1});return Ec(O,e.maxValue.value)}const B=D5(E,k||e.nextPage.value);return Ec(B,e.maxValue.value)},i=k=>{if(!e.minValue.value||!n.value.length)return!1;if(e.disabled.value)return!0;const E=n.value[0].value;if(!k&&!e.prevPage.value){const O=E.subtract({months:1}).set({day:35});return dr(O,e.minValue.value)}const B=O5(E,k||e.prevPage.value);return dr(B,e.minValue.value)};function u(k){return!!(e.isDateDisabled?.(k)||e.disabled.value||e.maxValue.value&&Ec(k,e.maxValue.value)||e.minValue.value&&dr(k,e.minValue.value))}const d=k=>!!e.isDateUnavailable?.(k),c=_(()=>n.value.length?n.value[0].rows[0].map(k=>t.dayOfWeek(Da(k),e.weekdayFormat.value)):[]),f=k=>{const E=n.value[0].value;if(!k&&!e.nextPage.value){const P=E.add({months:e.pagedNavigation.value?e.numberOfMonths.value:1}),R=Ur({dateObj:P,weekStartsOn:e.weekStartsOn.value,locale:e.locale.value,fixedWeeks:e.fixedWeeks.value,numberOfMonths:e.numberOfMonths.value});n.value=R,e.placeholder.value=R[0].value.set({day:1});return}const B=M5(E,k||e.nextPage.value),O=Ur({dateObj:B,weekStartsOn:e.weekStartsOn.value,locale:e.locale.value,fixedWeeks:e.fixedWeeks.value,numberOfMonths:e.numberOfMonths.value});n.value=O;const T={};if(!k){const P=O[0].value.compare(E);P>=vr(E)&&(T.day=1),P>=365&&(T.month=1)}e.placeholder.value=O[0].value.set({...T})},m=k=>{const E=n.value[0].value;if(!k&&!e.prevPage.value){const P=E.subtract({months:e.pagedNavigation.value?e.numberOfMonths.value:1}),R=Ur({dateObj:P,weekStartsOn:e.weekStartsOn.value,locale:e.locale.value,fixedWeeks:e.fixedWeeks.value,numberOfMonths:e.numberOfMonths.value});n.value=R,e.placeholder.value=R[0].value.set({day:1});return}const B=I5(E,k||e.prevPage.value),O=Ur({dateObj:B,weekStartsOn:e.weekStartsOn.value,locale:e.locale.value,fixedWeeks:e.fixedWeeks.value,numberOfMonths:e.numberOfMonths.value});n.value=O;const T={};if(!k){const P=E.compare(O[0].value);P>=vr(E)&&(T.day=1),P>=365&&(T.month=1)}e.placeholder.value=O[0].value.set({...T})};Ne(e.placeholder,k=>{r.value.some(E=>fm(E,k))||(n.value=Ur({dateObj:k,weekStartsOn:e.weekStartsOn.value,locale:e.locale.value,fixedWeeks:e.fixedWeeks.value,numberOfMonths:e.numberOfMonths.value}))}),Ne([e.locale,e.weekStartsOn,e.fixedWeeks,e.numberOfMonths],()=>{n.value=Ur({dateObj:e.placeholder.value,weekStartsOn:e.weekStartsOn.value,locale:e.locale.value,fixedWeeks:e.fixedWeeks.value,numberOfMonths:e.numberOfMonths.value})});const v=_(()=>{if(!n.value.length)return"";if(e.locale.value!==t.getLocale()&&t.setLocale(e.locale.value),n.value.length===1){const U=n.value[0].value;return`${t.fullMonthAndYear(Da(U),a.value)}`}const k=Da(n.value[0].value),E=Da(n.value.at(-1).value),B=t.fullMonth(k,a.value),O=t.fullMonth(E,a.value),T=t.fullYear(k,a.value),P=t.fullYear(E,a.value);return T===P?`${B} - ${O} ${P}`:`${B} ${T} - ${O} ${P}`}),y=_(()=>`${e.calendarLabel.value??"Event Date"}, ${v.value}`),x=_(()=>!(u(e.placeholder.value)||d(e.placeholder.value)||l(e.placeholder.value))),C=_(()=>{for(const k of n.value){if(e.minValue.value&&dr(k.value,e.minValue.value))continue;const E=vr(k.value),B=e.minValue.value&&If(e.minValue.value,k.value)?e.minValue.value.day:1;for(let O=B;O<=E;O++){const T=k.value.set({day:O});if(!(u(T)||d(T)))return T}}});return{isDateDisabled:u,isDateUnavailable:d,isNextButtonDisabled:o,isPrevButtonDisabled:i,grid:n,weekdays:c,visibleView:r,isOutsideVisibleView:l,formatter:t,nextPage:f,prevPage:m,headingValue:v,fullCalendarLabel:y,isPlaceholderFocusable:x,firstFocusableDate:C}}const R5={style:{border:"0px",clip:"rect(0px, 0px, 0px, 0px)","clip-path":"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0px",position:"absolute","white-space":"nowrap",width:"1px"}},q5={role:"heading","aria-level":"2"},[io,L5]=At("CalendarRoot");var N5=le({__name:"CalendarRoot",props:{defaultValue:{type:null,required:!1,default:void 0},defaultPlaceholder:{type:null,required:!1},placeholder:{type:null,required:!1,default:void 0},pagedNavigation:{type:Boolean,required:!1,default:!1},preventDeselect:{type:Boolean,required:!1,default:!1},weekStartsOn:{type:Number,required:!1},weekdayFormat:{type:String,required:!1,default:"narrow"},calendarLabel:{type:String,required:!1},fixedWeeks:{type:Boolean,required:!1,default:!1},maxValue:{type:null,required:!1},minValue:{type:null,required:!1},locale:{type:String,required:!1},numberOfMonths:{type:Number,required:!1,default:1},disabled:{type:Boolean,required:!1,default:!1},readonly:{type:Boolean,required:!1,default:!1},initialFocus:{type:Boolean,required:!1,default:!1},isDateDisabled:{type:Function,required:!1,default:void 0},isDateUnavailable:{type:Function,required:!1,default:void 0},dir:{type:String,required:!1},nextPage:{type:Function,required:!1},prevPage:{type:Function,required:!1},modelValue:{type:null,required:!1},multiple:{type:Boolean,required:!1,default:!1},disableDaysOutsideCurrentView:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"div"}},emits:["update:modelValue","update:placeholder"],setup(e,{emit:t}){const a=e,n=t,{disabled:r,readonly:l,initialFocus:o,pagedNavigation:i,weekdayFormat:u,fixedWeeks:d,multiple:c,minValue:f,maxValue:m,numberOfMonths:v,preventDeselect:y,isDateDisabled:x,isDateUnavailable:C,calendarLabel:k,defaultValue:E,nextPage:B,prevPage:O,dir:T,locale:P,disableDaysOutsideCurrentView:R}=Ht(a),{primitiveElement:U,currentElement:S}=ol(),I=Mu(P),z=yn(T),D=_(()=>a.weekStartsOn??l1(I.value)),N=qt(a,"modelValue",n,{defaultValue:E.value,passive:a.modelValue===void 0}),Z=Uf({defaultPlaceholder:a.placeholder,defaultValue:N.value,locale:a.locale}),W=qt(a,"placeholder",n,{defaultValue:a.defaultPlaceholder??Z.copy(),passive:a.placeholder===void 0});function K(ee){W.value=ee.copy()}const{fullCalendarLabel:ne,headingValue:oe,isDateDisabled:se,isDateUnavailable:de,isNextButtonDisabled:ue,isPrevButtonDisabled:te,weekdays:ye,isOutsideVisibleView:H,nextPage:we,prevPage:_e,formatter:Y,grid:he,isPlaceholderFocusable:J,firstFocusableDate:Q}=P5({locale:I,placeholder:W,weekStartsOn:D,fixedWeeks:d,numberOfMonths:v,minValue:f,maxValue:m,disabled:r,weekdayFormat:u,pagedNavigation:i,isDateDisabled:x.value,isDateUnavailable:C.value,calendarLabel:k,nextPage:B,prevPage:O}),{isInvalid:ae,isDateSelected:w,hasSelectedDate:M,isSelectedDateDisabled:q}=T5({date:N,isDateDisabled:se,isDateUnavailable:de});Ne(N,ee=>{if(Array.isArray(ee)&&ee.length){const pe=ee.at(-1);pe&&!Hl(W.value,pe)&&K(pe)}else!Array.isArray(ee)&&ee&&!Hl(W.value,ee)&&K(ee)});function ie(ee){if(c.value){if(!N.value)N.value=[ee.copy()];else if(Array.isArray(N.value)){if(N.value.findIndex(Ee=>gr(Ee,ee))===-1)N.value=[...N.value,ee];else if(!y.value){const Ee=N.value.filter(Se=>!gr(Se,ee));if(!Ee.length){W.value=ee.copy(),N.value=void 0;return}N.value=Ee.map(Se=>Se.copy())}}}else{if(!N.value){N.value=ee.copy();return}!y.value&&Hl(N.value,ee)?(W.value=ee.copy(),N.value=void 0):N.value=ee.copy()}}return xt(()=>{o.value&&n1(S.value)}),L5({isDateUnavailable:de,dir:z,isDateDisabled:se,locale:I,formatter:Y,modelValue:N,placeholder:W,disabled:r,initialFocus:o,pagedNavigation:i,grid:he,weekDays:ye,weekStartsOn:D,weekdayFormat:u,fixedWeeks:d,multiple:c,numberOfMonths:v,readonly:l,preventDeselect:y,fullCalendarLabel:ne,headingValue:oe,isInvalid:ae,isDateSelected:w,isNextButtonDisabled:ue,isPrevButtonDisabled:te,isOutsideVisibleView:H,nextPage:we,prevPage:_e,parentElement:S,onPlaceholderChange:K,onDateChange:ie,disableDaysOutsideCurrentView:R,minValue:f,maxValue:m,isPlaceholderFocusable:J,firstFocusableDate:Q,hasSelectedDate:M,isSelectedDateDisabled:q}),(ee,pe)=>(p(),j(s(Qe),{ref_key:"primitiveElement",ref:U,as:ee.as,"as-child":ee.asChild,"aria-label":s(ne),"data-readonly":s(l)?"":void 0,"data-disabled":s(r)?"":void 0,"data-invalid":s(ae)?"":void 0,dir:s(z)},{default:F(()=>[ke(ee.$slots,"default",{date:s(W),grid:s(he),weekDays:s(ye),weekStartsOn:D.value,locale:s(I),fixedWeeks:s(d),modelValue:s(N)}),b("div",R5,[b("div",q5,$(s(ne)),1)])]),_:3},8,["as","as-child","aria-label","data-readonly","data-disabled","data-invalid","dir"]))}}),B5=N5,F5=le({__name:"CalendarCell",props:{date:{type:null,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"td"}},setup(e){const t=io();return(a,n)=>(p(),j(s(Qe),{as:a.as,"as-child":a.asChild,role:"gridcell","aria-selected":s(t).isDateSelected(a.date)?!0:void 0,"aria-disabled":s(t).isDateDisabled(a.date)||s(t).isDateUnavailable?.(a.date)||s(t).disableDaysOutsideCurrentView.value,"data-disabled":s(t).isDateDisabled(a.date)||s(t).disableDaysOutsideCurrentView.value?"":void 0},{default:F(()=>[ke(a.$slots,"default")]),_:3},8,["as","as-child","aria-selected","aria-disabled","data-disabled"]))}}),V5=F5,z5=le({__name:"CalendarCellTrigger",props:{day:{type:null,required:!0},month:{type:null,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"div"}},setup(e){const t=e,a=oo(),n=io(),{primitiveElement:r}=ol(),l=_(()=>t.day.day.toLocaleString(n.locale.value)),o=_(()=>n.formatter.custom(Da(t.day),{weekday:"long",month:"long",day:"numeric",year:"numeric"})),i=_(()=>n.isDateUnavailable?.(t.day)??!1),u=_(()=>VE(t.day,Ga())),d=_(()=>!If(t.day,t.month)),c=_(()=>n.isOutsideVisibleView(t.day)),f=_(()=>n.isDateDisabled(t.day)||n.disableDaysOutsideCurrentView.value&&d.value),m=_(()=>d.value||f.value?!1:!n.disabled.value&&n.isPlaceholderFocusable.value&&gr(t.day,n.placeholder.value)?!0:(!n.hasSelectedDate.value||n.isSelectedDateDisabled.value)&&!n.isPlaceholderFocusable.value?n.firstFocusableDate.value&&gr(t.day,n.firstFocusableDate.value):!1),v=_(()=>n.isDateSelected(t.day));function y(k){n.readonly.value||n.isDateDisabled(k)||n.isDateUnavailable?.(k)||n.onDateChange(k)}function x(){f.value||y(t.day)}function C(k){if(f.value)return;k.preventDefault(),k.stopPropagation();const E=n.parentElement.value,B=7,O=n.dir.value==="rtl"?-1:1;switch(k.code){case a.ARROW_RIGHT:T(t.day,O);break;case a.ARROW_LEFT:T(t.day,-O);break;case a.ARROW_UP:T(t.day,-B);break;case a.ARROW_DOWN:T(t.day,B);break;case a.ENTER:case a.SPACE_CODE:y(t.day)}function T(P,R){const U=P.add({days:R});if(n.minValue.value&&U.compare(n.minValue.value)<0||n.maxValue.value&&U.compare(n.maxValue.value)>0)return;const S=E.querySelector(`[data-value='${U.toString()}']:not([data-outside-view])`);if(!S){if(R>0){if(n.isNextButtonDisabled())return;n.nextPage()}else{if(n.isPrevButtonDisabled())return;n.prevPage()}He(()=>{T(P,R)});return}if(S&&S.hasAttribute("data-disabled"))return T(U,R);n.onPlaceholderChange(U),S?.focus()}}return(k,E)=>(p(),j(s(Qe),{ref_key:"primitiveElement",ref:r,as:t.as,"as-child":t.asChild,role:"button","aria-label":o.value,"data-reka-calendar-cell-trigger":"","aria-disabled":f.value||i.value?!0:void 0,"data-selected":v.value?!0:void 0,"data-value":k.day.toString(),"data-disabled":f.value?"":void 0,"data-unavailable":i.value?"":void 0,"data-today":u.value?"":void 0,"data-outside-view":d.value?"":void 0,"data-outside-visible-view":c.value?"":void 0,"data-focused":m.value?"":void 0,tabindex:m.value?0:d.value||f.value?void 0:-1,onClick:x,onKeydown:[dn(C,["up","down","left","right","space","enter"]),E[0]||(E[0]=dn(mt(()=>{},["prevent"]),["enter"]))]},{default:F(()=>[ke(k.$slots,"default",{dayValue:l.value,disabled:f.value,today:u.value,selected:v.value,outsideView:d.value,outsideVisibleView:c.value,unavailable:i.value},()=>[ge($(l.value),1)])]),_:3},8,["as","as-child","aria-label","aria-disabled","data-selected","data-value","data-disabled","data-unavailable","data-today","data-outside-view","data-outside-visible-view","data-focused","tabindex"]))}}),j5=z5,U5=le({__name:"CalendarGrid",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"table"}},setup(e){const t=e,a=io(),n=_(()=>a.disabled.value?!0:void 0),r=_(()=>a.readonly.value?!0:void 0);return(l,o)=>(p(),j(s(Qe),je(t,{tabindex:"-1",role:"application","aria-readonly":r.value,"aria-disabled":n.value,"data-readonly":r.value&&"","data-disabled":n.value&&""}),{default:F(()=>[ke(l.$slots,"default")]),_:3},16,["aria-readonly","aria-disabled","data-readonly","data-disabled"]))}}),H5=U5,K5=le({__name:"CalendarGridBody",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"tbody"}},setup(e){const t=e;return(a,n)=>(p(),j(s(Qe),lt(ut(t)),{default:F(()=>[ke(a.$slots,"default")]),_:3},16))}}),W5=K5,G5=le({__name:"CalendarGridHead",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"thead"}},setup(e){const t=e;return(a,n)=>(p(),j(s(Qe),je(t,{"aria-hidden":"true"}),{default:F(()=>[ke(a.$slots,"default")]),_:3},16))}}),Y5=G5,J5=le({__name:"CalendarGridRow",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"tr"}},setup(e){const t=e;return(a,n)=>(p(),j(s(Qe),lt(ut(t)),{default:F(()=>[ke(a.$slots,"default")]),_:3},16))}}),Z5=J5,X5=le({__name:"CalendarHeadCell",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"th"}},setup(e){const t=e;return(a,n)=>(p(),j(s(Qe),lt(ut(t)),{default:F(()=>[ke(a.$slots,"default")]),_:3},16))}}),Q5=X5,eD=le({__name:"CalendarHeader",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"div"}},setup(e){const t=e;return(a,n)=>(p(),j(s(Qe),lt(ut(t)),{default:F(()=>[ke(a.$slots,"default")]),_:3},16))}}),tD=eD,aD=le({__name:"CalendarHeading",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"div"}},setup(e){const t=e,a=io();return(n,r)=>(p(),j(s(Qe),je(t,{"data-disabled":s(a).disabled.value?"":void 0}),{default:F(()=>[ke(n.$slots,"default",{headingValue:s(a).headingValue.value},()=>[ge($(s(a).headingValue.value),1)])]),_:3},16,["data-disabled"]))}}),nD=aD,rD=le({__name:"CalendarNext",props:{nextPage:{type:Function,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,a=_(()=>n.disabled.value||n.isNextButtonDisabled(t.nextPage)),n=io();function r(){a.value||n.nextPage(t.nextPage)}return(l,o)=>(p(),j(s(Qe),{as:t.as,"as-child":t.asChild,"aria-label":"Next page",type:t.as==="button"?"button":void 0,"aria-disabled":a.value||void 0,"data-disabled":a.value||void 0,disabled:a.value,onClick:r},{default:F(()=>[ke(l.$slots,"default",{disabled:a.value},()=>[o[0]||(o[0]=ge(" Next page "))])]),_:3},8,["as","as-child","type","aria-disabled","data-disabled","disabled"]))}}),lD=rD,oD=le({__name:"CalendarPrev",props:{prevPage:{type:Function,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,a=_(()=>n.disabled.value||n.isPrevButtonDisabled(t.prevPage)),n=io();function r(){a.value||n.prevPage(t.prevPage)}return(l,o)=>(p(),j(s(Qe),{"aria-label":"Previous page",as:t.as,"as-child":t.asChild,type:t.as==="button"?"button":void 0,"aria-disabled":a.value||void 0,"data-disabled":a.value||void 0,disabled:a.value,onClick:r},{default:F(()=>[ke(l.$slots,"default",{disabled:a.value},()=>[o[0]||(o[0]=ge(" Prev page "))])]),_:3},8,["as","as-child","type","aria-disabled","data-disabled","disabled"]))}}),sD=oD;const[iD,uD]=At("RovingFocusGroup");var cD=le({__name:"RovingFocusGroup",props:{orientation:{type:String,required:!1,default:void 0},dir:{type:String,required:!1},loop:{type:Boolean,required:!1,default:!1},currentTabStopId:{type:[String,null],required:!1},defaultCurrentTabStopId:{type:String,required:!1},preventScrollOnEntryFocus:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["entryFocus","update:currentTabStopId"],setup(e,{expose:t,emit:a}){const n=e,r=a,{loop:l,orientation:o,dir:i}=Ht(n),u=yn(i),d=qt(n,"currentTabStopId",r,{defaultValue:n.defaultCurrentTabStopId,passive:n.currentTabStopId===void 0}),c=A(!1),f=A(!1),m=A(0),{getItems:v,CollectionSlot:y}=Jf({isProvider:!0});function x(k){const E=!f.value;if(k.currentTarget&&k.target===k.currentTarget&&E&&!c.value){const B=new CustomEvent(G4,Y4);if(k.currentTarget.dispatchEvent(B),r("entryFocus",B),!B.defaultPrevented){const O=v().map(S=>S.ref).filter(S=>S.dataset.disabled!==""),T=O.find(S=>S.getAttribute("data-active")===""),P=O.find(S=>S.getAttribute("data-highlighted")===""),R=O.find(S=>S.id===d.value),U=[T,P,R,...O].filter(Boolean);m1(U,n.preventScrollOnEntryFocus)}}f.value=!1}function C(){setTimeout(()=>{f.value=!1},1)}return t({getItems:v}),uD({loop:l,dir:u,orientation:o,currentTabStopId:d,onItemFocus:k=>{d.value=k},onItemShiftTab:()=>{c.value=!0},onFocusableItemAdd:()=>{m.value++},onFocusableItemRemove:()=>{m.value--}}),(k,E)=>(p(),j(s(y),null,{default:F(()=>[L(s(Qe),{tabindex:c.value||m.value===0?-1:0,"data-orientation":s(o),as:k.as,"as-child":k.asChild,dir:s(u),style:{outline:"none"},onMousedown:E[0]||(E[0]=B=>f.value=!0),onMouseup:C,onFocus:x,onBlur:E[1]||(E[1]=B=>c.value=!1)},{default:F(()=>[ke(k.$slots,"default")]),_:3},8,["tabindex","data-orientation","as","as-child","dir"])]),_:3}))}}),Bu=cD,dD=le({__name:"RovingFocusItem",props:{tabStopId:{type:String,required:!1},focusable:{type:Boolean,required:!1,default:!0},active:{type:Boolean,required:!1},allowShiftKey:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=e,a=iD(),n=Fn(),r=_(()=>t.tabStopId||n),l=_(()=>a.currentTabStopId.value===r.value),{getItems:o,CollectionItem:i}=Jf();xt(()=>{t.focusable&&a.onFocusableItemAdd()}),jn(()=>{t.focusable&&a.onFocusableItemRemove()});function u(d){if(d.key==="Tab"&&d.shiftKey){a.onItemShiftTab();return}if(d.target!==d.currentTarget)return;const c=X4(d,a.orientation.value,a.dir.value);if(c!==void 0){if(d.metaKey||d.ctrlKey||d.altKey||!t.allowShiftKey&&d.shiftKey)return;d.preventDefault();let f=[...o().map(m=>m.ref).filter(m=>m.dataset.disabled!=="")];if(c==="last")f.reverse();else if(c==="prev"||c==="next"){c==="prev"&&f.reverse();const m=f.indexOf(d.currentTarget);f=a.loop.value?Q4(f,m+1):f.slice(m+1)}He(()=>m1(f))}}return(d,c)=>(p(),j(s(i),null,{default:F(()=>[L(s(Qe),{tabindex:l.value?0:-1,"data-orientation":s(a).orientation.value,"data-active":d.active?"":void 0,"data-disabled":d.focusable?void 0:"",as:d.as,"as-child":d.asChild,onMousedown:c[0]||(c[0]=f=>{d.focusable?s(a).onItemFocus(r.value):f.preventDefault()}),onFocus:c[1]||(c[1]=f=>s(a).onItemFocus(r.value)),onKeydown:u},{default:F(()=>[ke(d.$slots,"default")]),_:3},8,["tabindex","data-orientation","data-active","data-disabled","as","as-child"])]),_:3}))}}),Fu=dD;const[fD]=At("CheckboxGroupRoot");function up(e){return e==="indeterminate"}function P1(e){return up(e)?"indeterminate":e?"checked":"unchecked"}const[pD,vD]=At("CheckboxRoot");var mD=le({inheritAttrs:!1,__name:"CheckboxRoot",props:{defaultValue:{type:null,required:!1},modelValue:{type:null,required:!1,default:void 0},disabled:{type:Boolean,required:!1},value:{type:null,required:!1,default:"on"},id:{type:String,required:!1},trueValue:{type:null,required:!1,default:()=>!0},falseValue:{type:null,required:!1,default:()=>!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const a=e,n=t,{forwardRef:r,currentElement:l}=Xe(),o=fD(null),i=qt(a,"modelValue",n,{defaultValue:a.defaultValue??a.falseValue,passive:a.modelValue===void 0}),u=_(()=>o?.disabled.value||a.disabled),d=_(()=>is(i.value,a.trueValue)),c=_(()=>ka(o?.modelValue.value)?i.value==="indeterminate"?"indeterminate":d.value:um(o.modelValue.value,a.value));function f(){if(ka(o?.modelValue.value))i.value==="indeterminate"?i.value=a.trueValue:i.value=d.value?a.falseValue:a.trueValue;else{const y=[...o.modelValue.value||[]];if(um(y,a.value)){const x=y.findIndex(C=>is(C,a.value));y.splice(x,1)}else y.push(a.value);o.modelValue.value=y}}const m=Kf(l),v=_(()=>a.id&&l.value?document.querySelector(`[for="${a.id}"]`)?.innerText:void 0);return vD({disabled:u,state:c}),(y,x)=>(p(),j(Kt(s(o)?.rovingFocus.value?s(Fu):s(Qe)),je(y.$attrs,{id:y.id,ref:s(r),role:"checkbox","as-child":y.asChild,as:y.as,type:y.as==="button"?"button":void 0,"aria-checked":s(up)(c.value)?"mixed":c.value,"aria-required":y.required,"aria-label":y.$attrs["aria-label"]||v.value,"data-state":s(P1)(c.value),"data-disabled":u.value?"":void 0,disabled:u.value,focusable:s(o)?.rovingFocus.value?!u.value:void 0,onKeydown:dn(mt(()=>{},["prevent"]),["enter"]),onClick:f}),{default:F(()=>[ke(y.$slots,"default",{modelValue:s(i),state:c.value}),s(m)&&y.name&&!s(o)?(p(),j(s(Xf),{key:0,type:"checkbox",checked:!!c.value,name:y.name,value:y.value,disabled:u.value,required:y.required},null,8,["checked","name","value","disabled","required"])):G("v-if",!0)]),_:3},16,["id","as-child","as","type","aria-checked","aria-required","aria-label","data-state","data-disabled","disabled","focusable","onKeydown"]))}}),hD=mD,yD=le({__name:"CheckboxIndicator",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const{forwardRef:t}=Xe(),a=pD();return(n,r)=>(p(),j(s(pl),{present:n.forceMount||s(up)(s(a).state.value)||s(a).state.value===!0},{default:F(()=>[L(s(Qe),je({ref:s(t),"data-state":s(P1)(s(a).state.value),"data-disabled":s(a).disabled.value?"":void 0,style:{pointerEvents:"none"},"as-child":n.asChild,as:n.as},n.$attrs),{default:F(()=>[ke(n.$slots,"default")]),_:3},16,["data-state","data-disabled","as-child","as"])]),_:3},8,["present"]))}}),gD=yD,bD=le({__name:"MenuAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(a,n)=>(p(),j(s(Qf),lt(ut(t)),{default:F(()=>[ke(a.$slots,"default")]),_:3},16))}}),_D=bD;function xD(){const e=A(!1);return xt(()=>{to("keydown",()=>{e.value=!0},{capture:!0,passive:!0}),to(["pointerdown","pointermove"],()=>{e.value=!1},{capture:!0,passive:!0})}),e}const kD=Cb(xD),[Vu,wD]=At(["MenuRoot","MenuSub"],"MenuContext"),[cp,$D]=At("MenuRoot");var CD=le({__name:"MenuRoot",props:{open:{type:Boolean,required:!1,default:!1},dir:{type:String,required:!1},modal:{type:Boolean,required:!1,default:!0}},emits:["update:open"],setup(e,{emit:t}){const a=e,n=t,{modal:r,dir:l}=Ht(a),o=yn(l),i=qt(a,"open",n),u=A(),d=kD();return wD({open:i,onOpenChange:c=>{i.value=c},content:u,onContentChange:c=>{u.value=c}}),$D({onClose:()=>{i.value=!1},isUsingKeyboardRef:d,dir:o,modal:r}),(c,f)=>(p(),j(s(y1),null,{default:F(()=>[ke(c.$slots,"default")]),_:3}))}}),SD=CD;const[R1,ED]=At("MenuContent");var AD=le({__name:"MenuContentImpl",props:Yy({loop:{type:Boolean,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1},disableOutsideScroll:{type:Boolean,required:!1},trapFocus:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},{...A1}),emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus","dismiss"],setup(e,{emit:t}){const a=e,n=t,r=Vu(),l=cp(),{trapFocus:o,disableOutsidePointerEvents:i,loop:u}=Ht(a);o1(),Mf(i.value);const d=A(""),c=A(0),f=A(0),m=A(null),v=A("right"),y=A(0),x=A(null),C=A(),{forwardRef:k,currentElement:E}=Xe(),{handleTypeaheadSearch:B}=UA(),O=A();function T(W){const K=dm(W,O.value||Gt(),E.value,{loop:u.value,arrowKeyOptions:"vertical",dir:l?.dir.value,focus:!1,attributeName:"[data-reka-collection-item]:not([data-disabled])"});K&&(O.value=K,K.scrollIntoView({block:"nearest"}))}function P(){O.value&&O.value.click()}const R=A(),U=A();Ne(O,W=>{U.value&&(W===void 0||W!==U.value.trigger.value)&&(U.value.onOpenChange(!1),U.value=void 0)}),Ne(E,W=>{r.onContentChange(W)}),jn(()=>{window.clearTimeout(c.value)});function S(W){return v.value===m.value?.side&&m4(W,m.value?.area)}async function I(W){n("openAutoFocus",W),!W.defaultPrevented&&(W.preventDefault(),E.value?.focus({preventScroll:!0}))}function z(W){if(W.defaultPrevented)return;const K=W.target,ne=K.closest("[data-reka-menu-content]")===W.currentTarget,oe=["input","textarea"].includes(K.tagName.toLowerCase()),se=W.ctrlKey||W.altKey||W.metaKey,de=W.key.length===1,ue=dm(W,Gt(),E.value,{loop:u.value,arrowKeyOptions:"vertical",dir:l?.dir.value,focus:!0,attributeName:"[data-reka-collection-item]:not([data-disabled])"});if(ue)return ue?.focus();if(W.code==="Space")return;const te=C.value?.getItems()??[];if(ne&&(W.key==="Tab"&&W.preventDefault(),!se&&de&&!oe&&B(W.key,te)),W.target!==E.value||!f4.includes(W.key))return;W.preventDefault();const ye=[...te.map(H=>H.ref)];c1.includes(W.key)&&ye.reverse(),p4(ye)}function D(W){W?.currentTarget?.contains?.(W.target)||(window.clearTimeout(c.value),d.value="")}function N(W){if(!Wi(W))return;const K=W.target,ne=y.value!==W.clientX;if(W?.currentTarget?.contains(K)&&ne){const oe=W.clientX>y.value?"right":"left";v.value=oe,y.value=W.clientX}}function Z(W){Wi(W)&&R.value&&R.value.focus()}return ED({onItemEnter:W=>!!S(W),onItemLeave:W=>S(W)?!0:(["INPUT","TEXTAREA"].includes(Gt()?.tagName||"")||E.value?.focus(),x.value=null,!1),onTriggerLeave:W=>!!S(W),searchRef:d,highlightedElement:O,onKeydownNavigation:T,onKeydownEnter:P,filterElement:R,onFilterElementChange:W=>{R.value=W},activeSubmenuContext:U,pointerGraceTimerRef:f,onPointerGraceIntentChange:W=>{m.value=W}}),(W,K)=>(p(),j(s(Yf),{"as-child":"",trapped:s(o),onMountAutoFocus:I,onUnmountAutoFocus:K[7]||(K[7]=ne=>n("closeAutoFocus",ne))},{default:F(()=>[L(s(Gf),{"as-child":"","disable-outside-pointer-events":s(i),onEscapeKeyDown:K[2]||(K[2]=ne=>n("escapeKeyDown",ne)),onPointerDownOutside:K[3]||(K[3]=ne=>n("pointerDownOutside",ne)),onFocusOutside:K[4]||(K[4]=ne=>n("focusOutside",ne)),onInteractOutside:K[5]||(K[5]=ne=>n("interactOutside",ne)),onDismiss:K[6]||(K[6]=ne=>n("dismiss"))},{default:F(()=>[L(s(Bu),{ref_key:"rovingFocusGroupRef",ref:C,"current-tab-stop-id":x.value,"onUpdate:currentTabStopId":K[0]||(K[0]=ne=>x.value=ne),"as-child":"",orientation:"vertical",dir:s(l).dir.value,loop:s(u),onEntryFocus:K[1]||(K[1]=ne=>{n("entryFocus",ne),s(l).isUsingKeyboardRef.value||ne.preventDefault()})},{default:F(()=>[L(s(T1),{ref:s(k),role:"menu",as:W.as,"as-child":W.asChild,"aria-orientation":"vertical","data-reka-menu-content":"","data-state":s(d1)(s(r).open.value),dir:s(l).dir.value,side:W.side,"side-offset":W.sideOffset,align:W.align,"align-offset":W.alignOffset,"avoid-collisions":W.avoidCollisions,"collision-boundary":W.collisionBoundary,"collision-padding":W.collisionPadding,"arrow-padding":W.arrowPadding,"prioritize-position":W.prioritizePosition,"position-strategy":W.positionStrategy,"update-position-strategy":W.updatePositionStrategy,sticky:W.sticky,"hide-when-detached":W.hideWhenDetached,reference:W.reference,onKeydown:z,onBlur:D,onPointermove:N,onPointerenter:Z},{default:F(()=>[ke(W.$slots,"default")]),_:3},8,["as","as-child","data-state","dir","side","side-offset","align","align-offset","avoid-collisions","collision-boundary","collision-padding","arrow-padding","prioritize-position","position-strategy","update-position-strategy","sticky","hide-when-detached","reference"])]),_:3},8,["current-tab-stop-id","dir","loop"])]),_:3},8,["disable-outside-pointer-events"])]),_:3},8,["trapped"]))}}),q1=AD,TD=le({inheritAttrs:!1,__name:"MenuItemImpl",props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,a=R1(),{forwardRef:n,currentElement:r}=Xe(),{CollectionItem:l}=Jf(),o=A(!1),i=_(()=>o.value||r.value!=null&&a.highlightedElement.value===r.value);async function u(c){if(!(c.defaultPrevented||!Wi(c))){if(t.disabled)a.onItemLeave(c);else if(!a.onItemEnter(c)){const m=c.currentTarget;a.highlightedElement.value=m,["INPUT","TEXTAREA"].includes(Gt()?.tagName||"")||m.focus({preventScroll:!0})}}}async function d(c){if(await He(),c.defaultPrevented||!Wi(c)||a.highlightedElement.value!==r.value)return;!a.onItemLeave(c)&&a.highlightedElement.value===r.value&&(a.highlightedElement.value=void 0)}return(c,f)=>(p(),j(s(l),{value:{textValue:c.textValue}},{default:F(()=>[L(s(Qe),je({ref:s(n),role:"menuitem",tabindex:"-1"},c.$attrs,{as:c.as,"as-child":c.asChild,"aria-disabled":c.disabled||void 0,"data-disabled":c.disabled?"":void 0,"data-highlighted":i.value?"":void 0,onPointermove:u,onPointerleave:d,onFocus:f[0]||(f[0]=async m=>{await He(),!(m.defaultPrevented||c.disabled)&&(o.value=!0,s(a).highlightedElement.value=m.currentTarget)}),onBlur:f[1]||(f[1]=async m=>{await He(),!m.defaultPrevented&&(o.value=!1)})}),{default:F(()=>[ke(c.$slots,"default")]),_:3},16,["as","as-child","aria-disabled","data-disabled","data-highlighted"])]),_:3},8,["value"]))}}),DD=TD,OD=le({__name:"MenuItem",props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["select"],setup(e,{emit:t}){const a=e,n=t,{forwardRef:r,currentElement:l}=Xe(),o=cp(),i=R1(),u=A(!1);async function d(){const c=l.value;if(!a.disabled&&c){const f=new CustomEvent(c4,{bubbles:!0,cancelable:!0});n("select",f),await He(),f.defaultPrevented?u.value=!1:o.onClose()}}return(c,f)=>(p(),j(DD,je(a,{ref:s(r),onClick:d,onPointerdown:f[0]||(f[0]=()=>{u.value=!0}),onPointerup:f[1]||(f[1]=async m=>{await He(),!m.defaultPrevented&&(u.value||m.currentTarget?.click())}),onKeydown:f[2]||(f[2]=async m=>{const v=s(i).searchRef.value!=="";c.disabled||v&&m.key===" "||s(qd).includes(m.key)&&(m.currentTarget?.click(),m.preventDefault())})}),{default:F(()=>[ke(c.$slots,"default")]),_:3},16))}}),L1=OD;const[MD,ID]=At(["MenuCheckboxItem","MenuRadioItem"],"MenuItemIndicatorContext");var PD=le({__name:"MenuItemIndicator",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(e){const t=MD({modelValue:A(!1)});return(a,n)=>(p(),j(s(pl),{present:a.forceMount||s(f1)(s(t).modelValue.value)||s(t).modelValue.value===!0},{default:F(()=>[L(s(Qe),{as:a.as,"as-child":a.asChild,"data-state":s(p1)(s(t).modelValue.value)},{default:F(()=>[ke(a.$slots,"default")]),_:3},8,["as","as-child","data-state"])]),_:3},8,["present"]))}}),RD=PD,qD=le({__name:"MenuRootContentModal",props:{loop:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const a=e,n=t,r=gn(a,n),l=Vu(),{forwardRef:o,currentElement:i}=Xe();return Wf(i),(u,d)=>(p(),j(q1,je(s(r),{ref:s(o),"trap-focus":s(l).open.value,"disable-outside-pointer-events":s(l).open.value,"disable-outside-scroll":!0,onDismiss:d[0]||(d[0]=c=>s(l).onOpenChange(!1)),onFocusOutside:d[1]||(d[1]=mt(c=>n("focusOutside",c),["prevent"]))}),{default:F(()=>[ke(u.$slots,"default")]),_:3},16,["trap-focus","disable-outside-pointer-events"]))}}),LD=qD,ND=le({__name:"MenuRootContentNonModal",props:{loop:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const r=gn(e,t),l=Vu();return(o,i)=>(p(),j(q1,je(s(r),{"trap-focus":!1,"disable-outside-pointer-events":!1,"disable-outside-scroll":!1,onDismiss:i[0]||(i[0]=u=>s(l).onOpenChange(!1))}),{default:F(()=>[ke(o.$slots,"default")]),_:3},16))}}),BD=ND,FD=le({__name:"MenuContent",props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const r=gn(e,t),l=Vu(),o=cp();return(i,u)=>(p(),j(s(pl),{present:i.forceMount||s(l).open.value},{default:F(()=>[s(o).modal.value?(p(),j(LD,lt(je({key:0},{...i.$attrs,...s(r)})),{default:F(()=>[ke(i.$slots,"default")]),_:3},16)):(p(),j(BD,lt(je({key:1},{...i.$attrs,...s(r)})),{default:F(()=>[ke(i.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),VD=FD;const[zD,jD]=At("MenuGroup");var UD=le({__name:"MenuGroup",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,a=Fn(void 0,"reka-menu-group");return jD({id:a}),(n,r)=>(p(),j(s(Qe),je({role:"group"},t,{"aria-labelledby":s(a)}),{default:F(()=>[ke(n.$slots,"default")]),_:3},16,["aria-labelledby"]))}}),HD=UD,KD=le({__name:"MenuLabel",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"div"}},setup(e){const t=e,a=zD({id:""});return(n,r)=>(p(),j(s(Qe),je(t,{id:s(a).id||void 0}),{default:F(()=>[ke(n.$slots,"default")]),_:3},16,["id"]))}}),WD=KD,GD=le({__name:"MenuPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(a,n)=>(p(),j(s(Iu),lt(ut(t)),{default:F(()=>[ke(a.$slots,"default")]),_:3},16))}}),YD=GD;const[JD,ZD]=At("MenuRadioGroup");var XD=le({__name:"MenuRadioGroup",props:{modelValue:{type:null,required:!1,default:""},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const a=e,n=t,r=Tf(a,["modelValue"]),l=Ou(r),o=qt(a,"modelValue",n);return ZD({modelValue:o,onValueChange:i=>{o.value=i}}),(i,u)=>(p(),j(HD,lt(ut(s(l))),{default:F(()=>[ke(i.$slots,"default",{modelValue:s(o)})]),_:3},16))}}),QD=XD,eO=le({__name:"MenuRadioItem",props:{value:{type:null,required:!0},disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["select"],setup(e,{emit:t}){const a=e,n=t,r=Tf(a,["value"]),l=Ou(r),{value:o}=Ht(a),i=JD(),u=_(()=>i.modelValue.value===o?.value);return ID({modelValue:u}),(d,c)=>(p(),j(L1,je({role:"menuitemradio"},s(l),{"aria-checked":u.value,"data-state":s(p1)(u.value),onSelect:c[0]||(c[0]=async f=>{n("select",f),s(i).onValueChange(s(o))})}),{default:F(()=>[ke(d.$slots,"default")]),_:3},16,["aria-checked","data-state"]))}}),tO=eO,aO=le({__name:"MenuSeparator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(a,n)=>(p(),j(s(Qe),je(t,{role:"separator","aria-orientation":"horizontal"}),{default:F(()=>[ke(a.$slots,"default")]),_:3},16))}}),nO=aO;const[rO,lO]=At("DateFieldRoot");var oO=le({inheritAttrs:!1,__name:"DateFieldRoot",props:{defaultValue:{type:null,required:!1,default:void 0},defaultPlaceholder:{type:null,required:!1},placeholder:{type:null,required:!1,default:void 0},modelValue:{type:null,required:!1},hourCycle:{type:null,required:!1},step:{type:Object,required:!1},granularity:{type:String,required:!1},hideTimeZone:{type:Boolean,required:!1},maxValue:{type:null,required:!1},minValue:{type:null,required:!1},locale:{type:String,required:!1},disabled:{type:Boolean,required:!1,default:!1},readonly:{type:Boolean,required:!1,default:!1},isDateUnavailable:{type:Function,required:!1,default:void 0},id:{type:String,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue","update:placeholder"],setup(e,{expose:t,emit:a}){const n=e,r=a,{disabled:l,readonly:o,isDateUnavailable:i,granularity:u,defaultValue:d,dir:c,locale:f}=Ht(n),m=Mu(f),v=yn(c),y=Hf(m.value,{hourCycle:ds(n.hourCycle)}),{primitiveElement:x,currentElement:C}=ol(),k=A(new Set);xt(()=>{Xm(C.value).forEach(H=>k.value.add(H))});const E=qt(n,"modelValue",r,{defaultValue:d.value,passive:n.modelValue===void 0}),B=Uf({defaultPlaceholder:n.placeholder,granularity:u.value,defaultValue:E.value,locale:n.locale}),O=qt(n,"placeholder",r,{defaultValue:n.defaultPlaceholder??B.copy(),passive:n.placeholder===void 0}),T=_(()=>a1(n)),P=_(()=>n.granularity?Pd(O.value)?n.granularity:"day":Pd(O.value)?"minute":"day"),R=_(()=>E.value?!!(i.value?.(E.value)||n.minValue&&dr(E.value,n.minValue)||n.maxValue&&dr(n.maxValue,E.value)):!1),U=v5(P.value),S=A(E.value?{...Zm({value:E.value,formatter:y})}:{...U}),I=_(()=>M1({granularity:P.value,dateRef:O.value,formatter:y,hideTimeZone:n.hideTimeZone,hourCycle:n.hourCycle,segmentValues:S.value,locale:m})),z=_(()=>I.value.arr),D=_(()=>z.value.filter(({part:H})=>H!=="literal"));Ne(m,H=>{y.getLocale()!==H&&(y.setLocale(H),He(()=>{k.value.clear(),Xm(C.value).forEach(we=>k.value.add(we))}))}),Ne(E,H=>{!ka(H)&&O.value.compare(H)!==0&&(O.value=H.copy())}),Ne([E,m],([H])=>{ka(H)?Object.values(S.value).every(we=>we!==null)&&ka(H)&&(S.value={...U}):S.value={...Zm({value:H,formatter:y})}});const N=A(null),Z=_(()=>Array.from(k.value).findIndex(H=>H.getAttribute("data-reka-date-field-segment")===N.value?.getAttribute("data-reka-date-field-segment"))),W=_(()=>{const H=v.value==="rtl"?-1:1;return(H<0?Z.value<0:Z.value>k.value.size-1)?null:Array.from(k.value)[Z.value+H]}),K=_(()=>{const H=v.value==="rtl"?-1:1;return(H>0?Z.value<0:Z.value>k.value.size-1)?null:Array.from(k.value)[Z.value-H]}),ne=_(()=>r1(P.value)),oe=_(()=>Ac(E.value,P.value)),se=_(()=>n.maxValue?Ac(n.maxValue,P.value):void 0),de=_(()=>n.minValue?Ac(n.minValue,P.value):void 0),ue=oo();function te(H){H.isComposing||wn(H.key)&&(H.key===ue.ARROW_LEFT&&K.value?.focus(),H.key===ue.ARROW_RIGHT&&W.value?.focus())}function ye(H){N.value=H}return lO({isDateUnavailable:i.value,locale:m,modelValue:E,placeholder:O,disabled:l,formatter:y,hourCycle:n.hourCycle,step:T,readonly:o,segmentValues:S,isInvalid:R,segmentContents:D,elements:k,setFocusedElement:ye,focusNext(){W.value?.focus()}}),t({setFocusedElement:ye}),(H,we)=>(p(),j(s(Qe),je(H.$attrs,{ref_key:"primitiveElement",ref:x,role:"group","aria-disabled":s(l)?!0:void 0,"data-disabled":s(l)?"":void 0,"data-readonly":s(o)?"":void 0,"data-invalid":R.value?"":void 0,dir:s(v),onKeydown:dn(te,["left","right"])}),{default:F(()=>[ke(H.$slots,"default",{modelValue:s(E),segments:z.value,isInvalid:R.value}),L(s(Zf),{id:H.id,as:"input",type:ne.value,feature:"focusable",tabindex:"-1",value:oe.value,name:H.name,disabled:s(l),required:H.required,max:se.value,min:de.value,onFocus:we[0]||(we[0]=_e=>Array.from(k.value)?.[0]?.focus())},null,8,["id","type","value","name","disabled","required","max","min"])]),_:3},16,["aria-disabled","data-disabled","data-readonly","data-invalid","dir"]))}}),sO=oO,iO=le({__name:"DateFieldInput",props:{part:{type:null,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,a=rO(),n=A(!0),r=A(!1),{handleSegmentClick:l,handleSegmentKeydown:o,handleSegmentBeforeInput:i,handleSegmentCompositionStart:u,handleSegmentCompositionEnd:d,attributes:c}=I1({hasLeftFocus:n,lastKeyZero:r,placeholder:a.placeholder,hourCycle:a.hourCycle,step:a.step,segmentValues:a.segmentValues,formatter:a.formatter,part:t.part,disabled:a.disabled,readonly:a.readonly,focusNext:a.focusNext,modelValue:a.modelValue}),f=_(()=>a.disabled.value),m=_(()=>a.readonly.value),v=_(()=>a.isInvalid.value);return(y,x)=>(p(),j(s(Qe),je({as:y.as,"as-child":y.asChild},s(c),{contenteditable:f.value||m.value?!1:y.part!=="literal","data-reka-date-field-segment":y.part,"aria-disabled":f.value?!0:void 0,"aria-readonly":m.value?!0:void 0,"data-disabled":f.value?"":void 0,"data-invalid":v.value?"":void 0,"aria-invalid":v.value?!0:void 0},Gy(y.part!=="literal"?{mousedown:s(l),keydown:s(o),beforeinput:s(i),compositionstart:s(u),compositionend:s(d),focusout:()=>{n.value=!0},focusin:C=>{s(a).setFocusedElement(C.target)}}:{})),{default:F(()=>[ke(y.$slots,"default")]),_:3},16,["as","as-child","contenteditable","data-reka-date-field-segment","aria-disabled","aria-readonly","data-disabled","data-invalid","aria-invalid"]))}}),uO=iO;const[uo,cO]=At("PopoverRoot");var dO=le({__name:"PopoverRoot",props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},modal:{type:Boolean,required:!1,default:!1}},emits:["update:open"],setup(e,{emit:t}){const a=e,n=t,{modal:r}=Ht(a),l=qt(a,"open",n,{defaultValue:a.defaultOpen,passive:a.open===void 0});return cO({contentId:"",triggerId:"",modal:r,open:l,onOpenChange:u=>{l.value=u},onOpenToggle:()=>{l.value=!l.value},triggerElement:A(),hasCustomAnchor:A(!1)}),(u,d)=>(p(),j(s(y1),null,{default:F(()=>[ke(u.$slots,"default",{open:s(l),close:()=>l.value=!1})]),_:3}))}}),N1=dO,fO=le({__name:"PopoverAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;Xe();const a=uo();return jy(()=>{a.hasCustomAnchor.value=!0}),jn(()=>{a.hasCustomAnchor.value=!1}),(n,r)=>(p(),j(s(Qf),lt(ut(t)),{default:F(()=>[ke(n.$slots,"default")]),_:3},16))}}),pO=fO;const[dp,vO]=At("DatePickerRoot");var mO=le({inheritAttrs:!1,__name:"DatePickerRoot",props:{defaultValue:{type:null,required:!1,default:void 0},defaultPlaceholder:{type:null,required:!1},placeholder:{type:null,required:!1,default:void 0},modelValue:{type:null,required:!1},hourCycle:{type:null,required:!1},step:{type:Object,required:!1},granularity:{type:String,required:!1},hideTimeZone:{type:Boolean,required:!1},maxValue:{type:null,required:!1},minValue:{type:null,required:!1},locale:{type:String,required:!1},disabled:{type:Boolean,required:!1,default:!1},readonly:{type:Boolean,required:!1,default:!1},isDateUnavailable:{type:Function,required:!1,default:void 0},id:{type:String,required:!1},dir:{type:String,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1},defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},modal:{type:Boolean,required:!1,default:!1},isDateDisabled:{type:Function,required:!1,default:void 0},pagedNavigation:{type:Boolean,required:!1,default:!1},weekStartsOn:{type:Number,required:!1},weekdayFormat:{type:String,required:!1,default:"narrow"},fixedWeeks:{type:Boolean,required:!1,default:!1},numberOfMonths:{type:Number,required:!1,default:1},preventDeselect:{type:Boolean,required:!1,default:!1},closeOnSelect:{type:Boolean,required:!1,default:!1}},emits:["update:open","update:modelValue","update:placeholder"],setup(e,{emit:t}){const a=e,n=t,{locale:r,disabled:l,readonly:o,pagedNavigation:i,weekdayFormat:u,fixedWeeks:d,numberOfMonths:c,preventDeselect:f,isDateDisabled:m,isDateUnavailable:v,defaultOpen:y,modal:x,id:C,name:k,required:E,minValue:B,maxValue:O,granularity:T,hideTimeZone:P,hourCycle:R,defaultValue:U,dir:S,step:I,closeOnSelect:z}=Ht(a),D=yn(S),N=Mu(r),Z=_(()=>a.weekStartsOn??l1(N.value)),W=qt(a,"modelValue",n,{defaultValue:U.value,passive:a.modelValue===void 0}),K=_(()=>Uf({defaultPlaceholder:a.placeholder,granularity:a.granularity,defaultValue:W.value,locale:N.value})),ne=qt(a,"placeholder",n,{defaultValue:a.defaultPlaceholder??K.value.copy(),passive:a.placeholder===void 0}),oe=qt(a,"open",n,{defaultValue:y.value,passive:a.open===void 0}),se=A();function de(ue){return"hour"in ue?ue.set({hour:0,minute:0,second:0,millisecond:0}):ue}return Ne(W,ue=>{ue&&ue.compare(ne.value)!==0?ne.value=ue.copy():!ue&&"hour"in ne.value&&(ne.value=de(ne.value)),z.value&&(oe.value=!1)}),vO({isDateUnavailable:v.value,isDateDisabled:m.value,locale:N,disabled:l,pagedNavigation:i,weekStartsOn:Z,weekdayFormat:u,fixedWeeks:d,numberOfMonths:c,readonly:o,preventDeselect:f,modelValue:W,placeholder:ne,defaultOpen:y,modal:x,open:oe,id:C,name:k,required:E,minValue:B,maxValue:O,granularity:T,hideTimeZone:P,hourCycle:R,dateFieldRef:se,dir:D,step:I,onDateChange(ue){ue?W.value&&!f.value&&ue&&W.value.compare(ue)===0?W.value=void 0:W.value=ue.copy():W.value=void 0},onPlaceholderChange(ue){ne.value=ue.copy()},closeOnSelect:z}),(ue,te)=>(p(),j(s(N1),{open:s(oe),"onUpdate:open":te[0]||(te[0]=ye=>Dt(oe)?oe.value=ye:null),"default-open":s(y),modal:s(x)},{default:F(()=>[ke(ue.$slots,"default")]),_:3},8,["open","default-open","modal"]))}}),hO=mO,yO=le({__name:"DatePickerCalendar",setup(e){const t=dp();return(a,n)=>(p(),j(s(B5),je({isDateDisabled:s(t).isDateDisabled,isDateUnavailable:s(t).isDateUnavailable,minValue:s(t).minValue.value,maxValue:s(t).maxValue.value,locale:s(t).locale.value,disabled:s(t).disabled.value,pagedNavigation:s(t).pagedNavigation.value,weekStartsOn:s(t).weekStartsOn.value,weekdayFormat:s(t).weekdayFormat.value,fixedWeeks:s(t).fixedWeeks.value,numberOfMonths:s(t).numberOfMonths.value,readonly:s(t).readonly.value,preventDeselect:s(t).preventDeselect.value,dir:s(t).dir.value},{"model-value":s(t).modelValue.value,placeholder:s(t).placeholder.value,multiple:!1,"onUpdate:modelValue":n[0]||(n[0]=r=>{r&&s(t).modelValue.value&&s(Hl)(r,s(t).modelValue.value)||s(t).onDateChange(r)}),"onUpdate:placeholder":n[1]||(n[1]=r=>{s(Hl)(r,s(t).placeholder.value)||s(t).onPlaceholderChange(r)})}),{default:F(({weekDays:r,grid:l,date:o,weekStartsOn:i,locale:u,fixedWeeks:d})=>[ke(a.$slots,"default",{date:o,grid:l,weekDays:r,weekStartsOn:i,locale:u,fixedWeeks:d})]),_:3},16,["model-value","placeholder"]))}}),gO=yO,bO=le({__name:"DatePickerCell",props:{date:{type:null,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(a,n)=>(p(),j(s(V5),lt(ut(t)),{default:F(()=>[ke(a.$slots,"default")]),_:3},16))}}),_O=bO,xO=le({__name:"DatePickerCellTrigger",props:{day:{type:null,required:!0},month:{type:null,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(a,n)=>(p(),j(s(j5),lt(ut(t)),{default:F(r=>[ke(a.$slots,"default",lt(ut(r)))]),_:3},16))}}),kO=xO,wO=le({__name:"PopoverContentImpl",props:{trapFocus:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const a=e,n=t,r=Ou(Tf(a,"trapFocus","disableOutsidePointerEvents")),{forwardRef:l}=Xe(),o=uo();return o1(),(i,u)=>(p(),j(s(Yf),{"as-child":"",loop:"",trapped:i.trapFocus,onMountAutoFocus:u[5]||(u[5]=d=>n("openAutoFocus",d)),onUnmountAutoFocus:u[6]||(u[6]=d=>n("closeAutoFocus",d))},{default:F(()=>[L(s(Gf),{"as-child":"","disable-outside-pointer-events":i.disableOutsidePointerEvents,onPointerDownOutside:u[0]||(u[0]=d=>n("pointerDownOutside",d)),onInteractOutside:u[1]||(u[1]=d=>n("interactOutside",d)),onEscapeKeyDown:u[2]||(u[2]=d=>n("escapeKeyDown",d)),onFocusOutside:u[3]||(u[3]=d=>n("focusOutside",d)),onDismiss:u[4]||(u[4]=d=>s(o).onOpenChange(!1))},{default:F(()=>[L(s(T1),je(s(r),{id:s(o).contentId,ref:s(l),"data-state":s(o).open.value?"open":"closed","aria-labelledby":s(o).triggerId,style:{"--reka-popover-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-popover-content-available-width":"var(--reka-popper-available-width)","--reka-popover-content-available-height":"var(--reka-popper-available-height)","--reka-popover-trigger-width":"var(--reka-popper-anchor-width)","--reka-popover-trigger-height":"var(--reka-popper-anchor-height)"},role:"dialog"}),{default:F(()=>[ke(i.$slots,"default")]),_:3},16,["id","data-state","aria-labelledby"])]),_:3},8,["disable-outside-pointer-events"])]),_:3},8,["trapped"]))}}),B1=wO,$O=le({__name:"PopoverContentModal",props:{side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const a=e,n=t,r=uo(),l=A(!1);Mf(!0);const o=gn(a,n),{forwardRef:i,currentElement:u}=Xe();return Wf(u),(d,c)=>(p(),j(B1,je(s(o),{ref:s(i),"trap-focus":s(r).open.value,"disable-outside-pointer-events":"",onCloseAutoFocus:c[0]||(c[0]=mt(f=>{n("closeAutoFocus",f),l.value||s(r).triggerElement.value?.focus()},["prevent"])),onPointerDownOutside:c[1]||(c[1]=f=>{n("pointerDownOutside",f);const m=f.detail.originalEvent,v=m.button===0&&m.ctrlKey===!0,y=m.button===2||v;l.value=y}),onFocusOutside:c[2]||(c[2]=mt(()=>{},["prevent"]))}),{default:F(()=>[ke(d.$slots,"default")]),_:3},16,["trap-focus"]))}}),CO=$O,SO=le({__name:"PopoverContentNonModal",props:{side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const a=e,n=t,r=uo(),l=A(!1),o=A(!1),i=gn(a,n);return(u,d)=>(p(),j(B1,je(s(i),{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:d[0]||(d[0]=c=>{n("closeAutoFocus",c),c.defaultPrevented||(l.value||s(r).triggerElement.value?.focus(),c.preventDefault()),l.value=!1,o.value=!1}),onInteractOutside:d[1]||(d[1]=async c=>{n("interactOutside",c),c.defaultPrevented||(l.value=!0,c.detail.originalEvent.type==="pointerdown"&&(o.value=!0));const f=c.target;s(r).triggerElement.value?.contains(f)&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&o.value&&c.preventDefault()})}),{default:F(()=>[ke(u.$slots,"default")]),_:3},16))}}),EO=SO,AO=le({__name:"PopoverContent",props:{forceMount:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const a=e,n=t,r=uo(),l=gn(a,n),{forwardRef:o}=Xe();return r.contentId||=Fn(void 0,"reka-popover-content"),(i,u)=>(p(),j(s(pl),{present:i.forceMount||s(r).open.value},{default:F(()=>[s(r).modal.value?(p(),j(CO,je({key:0},s(l),{ref:s(o)}),{default:F(()=>[ke(i.$slots,"default")]),_:3},16)):(p(),j(EO,je({key:1},s(l),{ref:s(o)}),{default:F(()=>[ke(i.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),F1=AO,TO=le({__name:"PopoverPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(a,n)=>(p(),j(s(Iu),lt(ut(t)),{default:F(()=>[ke(a.$slots,"default")]),_:3},16))}}),V1=TO,DO=le({__name:"DatePickerContent",props:{portal:{type:Object,required:!1},forceMount:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const a=e,n=t,r=_(()=>({...a,portal:void 0})),l=gn(r,n);return(o,i)=>(p(),j(s(V1),lt(ut(o.portal)),{default:F(()=>[L(s(F1),je({...s(l),...o.$attrs},{onOpenAutoFocus:i[0]||(i[0]=u=>{n("openAutoFocus",u),!u.defaultPrevented&&u.target&&(s(n1)(u.target),u.preventDefault())})}),{default:F(()=>[ke(o.$slots,"default")]),_:3},16)]),_:3},16))}}),OO=DO,MO=le({__name:"DatePickerField",setup(e){const t=dp();return(a,n)=>(p(),j(s(sO),je({ref:s(t).dateFieldRef,"model-value":s(t).modelValue.value,placeholder:s(t).placeholder.value},{id:s(t).id.value,name:s(t).name.value,disabled:s(t).disabled.value,minValue:s(t).minValue.value,maxValue:s(t).maxValue.value,readonly:s(t).readonly.value,hourCycle:s(t).hourCycle.value,granularity:s(t).granularity.value,hideTimeZone:s(t).hideTimeZone.value,locale:s(t).locale.value,isDateUnavailable:s(t).isDateUnavailable,required:s(t).required.value,dir:s(t).dir.value,step:s(t).step.value},{"onUpdate:modelValue":n[0]||(n[0]=r=>{r&&s(t).modelValue.value&&r.compare(s(t).modelValue.value)===0||s(t).onDateChange(r)}),"onUpdate:placeholder":n[1]||(n[1]=r=>{r.compare(s(t).placeholder.value)!==0&&s(t).onPlaceholderChange(r)})}),{default:F(({segments:r,modelValue:l})=>[ke(a.$slots,"default",{segments:r,modelValue:l})]),_:3},16,["model-value","placeholder"]))}}),IO=MO,PO=le({__name:"DatePickerGrid",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(a,n)=>(p(),j(s(H5),lt(ut(t)),{default:F(()=>[ke(a.$slots,"default")]),_:3},16))}}),RO=PO,qO=le({__name:"DatePickerGridBody",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(a,n)=>(p(),j(s(W5),lt(ut(t)),{default:F(()=>[ke(a.$slots,"default")]),_:3},16))}}),LO=qO,NO=le({__name:"DatePickerGridHead",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(a,n)=>(p(),j(s(Y5),lt(ut(t)),{default:F(()=>[ke(a.$slots,"default")]),_:3},16))}}),BO=NO,FO=le({__name:"DatePickerGridRow",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(a,n)=>(p(),j(s(Z5),lt(ut(t)),{default:F(()=>[ke(a.$slots,"default")]),_:3},16))}}),eh=FO,VO=le({__name:"DatePickerHeadCell",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(a,n)=>(p(),j(s(Q5),lt(ut(t)),{default:F(()=>[ke(a.$slots,"default")]),_:3},16))}}),zO=VO,jO=le({__name:"DatePickerHeader",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(a,n)=>(p(),j(s(tD),lt(ut(t)),{default:F(()=>[ke(a.$slots,"default")]),_:3},16))}}),UO=jO,HO=le({__name:"DatePickerHeading",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(a,n)=>(p(),j(s(nD),lt(ut(t)),{default:F(({headingValue:r})=>[ke(a.$slots,"default",{headingValue:r},()=>[ge($(r),1)])]),_:3},16))}}),KO=HO,WO=le({__name:"DatePickerInput",props:{part:{type:null,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(a,n)=>(p(),j(s(uO),lt(ut(t)),{default:F(()=>[ke(a.$slots,"default")]),_:3},16))}}),GO=WO,YO=le({__name:"DatePickerNext",props:{nextPage:{type:Function,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(a,n)=>(p(),j(s(lD),lt(ut(t)),{default:F(r=>[ke(a.$slots,"default",lt(ut(r)))]),_:3},16))}}),JO=YO,ZO=le({__name:"DatePickerPrev",props:{prevPage:{type:Function,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(a,n)=>(p(),j(s(sD),lt(ut(t)),{default:F(r=>[ke(a.$slots,"default",lt(ut(r)))]),_:3},16))}}),XO=ZO,QO=le({__name:"PopoverTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,a=uo(),{forwardRef:n,currentElement:r}=Xe();return a.triggerId||=Fn(void 0,"reka-popover-trigger"),xt(()=>{a.triggerElement.value=r.value}),(l,o)=>(p(),j(Kt(s(a).hasCustomAnchor.value?s(Qe):s(Qf)),{"as-child":""},{default:F(()=>[L(s(Qe),{id:s(a).triggerId,ref:s(n),type:l.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":s(a).open.value,"aria-controls":s(a).contentId,"data-state":s(a).open.value?"open":"closed",as:l.as,"as-child":t.asChild,onClick:s(a).onOpenToggle},{default:F(()=>[ke(l.$slots,"default")]),_:3},8,["id","type","aria-expanded","aria-controls","data-state","as","as-child","onClick"])]),_:3}))}}),eM=QO,tM=le({__name:"DatePickerTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,a=dp();return(n,r)=>(p(),j(s(eM),je({"data-reka-date-field-segment":"trigger"},t,{disabled:s(a).disabled.value,onFocusin:r[0]||(r[0]=l=>{s(a).dateFieldRef.value?.setFocusedElement(l.target)})}),{default:F(()=>[ke(n.$slots,"default")]),_:3},16,["disabled"]))}}),aM=tM;const[z1,nM]=At("DropdownMenuRoot");var rM=le({__name:"DropdownMenuRoot",props:{defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1,default:void 0},dir:{type:String,required:!1},modal:{type:Boolean,required:!1,default:!0}},emits:["update:open"],setup(e,{emit:t}){const a=e,n=t;Xe();const r=qt(a,"open",n,{defaultValue:a.defaultOpen,passive:a.open===void 0}),l=A(),{modal:o,dir:i}=Ht(a),u=yn(i);return nM({open:r,onOpenChange:d=>{r.value=d},onOpenToggle:()=>{r.value=!r.value},triggerId:"",triggerElement:l,contentId:"",modal:o,dir:u}),(d,c)=>(p(),j(s(SD),{open:s(r),"onUpdate:open":c[0]||(c[0]=f=>Dt(r)?r.value=f:null),dir:s(u),modal:s(o)},{default:F(()=>[ke(d.$slots,"default",{open:s(r)})]),_:3},8,["open","dir","modal"]))}}),j1=rM,lM=le({__name:"DropdownMenuContent",props:{forceMount:{type:Boolean,required:!1},loop:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","closeAutoFocus"],setup(e,{emit:t}){const r=gn(e,t);Xe();const l=z1(),o=A(!1);function i(u){u.defaultPrevented||(o.value||setTimeout(()=>{l.triggerElement.value?.focus()},0),o.value=!1,u.preventDefault())}return l.contentId||=Fn(void 0,"reka-dropdown-menu-content"),(u,d)=>(p(),j(s(VD),je(s(r),{id:s(l).contentId,"aria-labelledby":s(l)?.triggerId,style:{"--reka-dropdown-menu-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-dropdown-menu-content-available-width":"var(--reka-popper-available-width)","--reka-dropdown-menu-content-available-height":"var(--reka-popper-available-height)","--reka-dropdown-menu-trigger-width":"var(--reka-popper-anchor-width)","--reka-dropdown-menu-trigger-height":"var(--reka-popper-anchor-height)"},onCloseAutoFocus:i,onInteractOutside:d[0]||(d[0]=c=>{if(c.defaultPrevented)return;const f=c.detail.originalEvent,m=f.button===0&&f.ctrlKey===!0,v=f.button===2||m;(!s(l).modal.value||v)&&(o.value=!0),s(l).triggerElement.value?.contains(c.target)&&c.preventDefault()})}),{default:F(()=>[ke(u.$slots,"default")]),_:3},16,["id","aria-labelledby"]))}}),U1=lM,oM=le({__name:"DropdownMenuItem",props:{disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["select"],setup(e,{emit:t}){const a=e,r=fl(t);return Xe(),(l,o)=>(p(),j(s(L1),lt(ut({...a,...s(r)})),{default:F(()=>[ke(l.$slots,"default")]),_:3},16))}}),zd=oM,sM=le({__name:"DropdownMenuItemIndicator",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return Xe(),(a,n)=>(p(),j(s(RD),lt(ut(t)),{default:F(()=>[ke(a.$slots,"default")]),_:3},16))}}),iM=sM,uM=le({__name:"DropdownMenuLabel",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return Xe(),(a,n)=>(p(),j(s(WD),lt(ut(t)),{default:F(()=>[ke(a.$slots,"default")]),_:3},16))}}),cM=uM,dM=le({__name:"DropdownMenuPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){const t=e;return(a,n)=>(p(),j(s(YD),lt(ut(t)),{default:F(()=>[ke(a.$slots,"default")]),_:3},16))}}),H1=dM,fM=le({__name:"DropdownMenuRadioGroup",props:{modelValue:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const a=e,r=fl(t);return Xe(),(l,o)=>(p(),j(s(QD),lt(ut({...a,...s(r)})),{default:F(()=>[ke(l.$slots,"default")]),_:3},16))}}),pM=fM,vM=le({__name:"DropdownMenuRadioItem",props:{value:{type:null,required:!0},disabled:{type:Boolean,required:!1},textValue:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["select"],setup(e,{emit:t}){const r=gn(e,t);return Xe(),(l,o)=>(p(),j(s(tO),lt(ut(s(r))),{default:F(()=>[ke(l.$slots,"default")]),_:3},16))}}),mM=vM,hM=le({__name:"DropdownMenuSeparator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return Xe(),(a,n)=>(p(),j(s(nO),lt(ut(t)),{default:F(()=>[ke(a.$slots,"default")]),_:3},16))}}),th=hM,yM=le({__name:"DropdownMenuTrigger",props:{disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,a=z1(),{forwardRef:n,currentElement:r}=Xe();return xt(()=>{a.triggerElement=r}),a.triggerId||=Fn(void 0,"reka-dropdown-menu-trigger"),(l,o)=>(p(),j(s(_D),{"as-child":""},{default:F(()=>[L(s(Qe),{id:s(a).triggerId,ref:s(n),type:l.as==="button"?"button":void 0,"as-child":t.asChild,as:l.as,"aria-haspopup":"menu","aria-expanded":s(a).open.value,"aria-controls":s(a).open.value?s(a).contentId:void 0,"data-disabled":l.disabled?"":void 0,disabled:l.disabled,"data-state":s(a).open.value?"open":"closed",onClick:o[0]||(o[0]=async i=>{!l.disabled&&i.button===0&&i.ctrlKey===!1&&(s(a)?.onOpenToggle(),await He(),s(a).open.value&&i.preventDefault())}),onKeydown:o[1]||(o[1]=dn(i=>{l.disabled||(["Enter"," "].includes(i.key)&&s(a).onOpenToggle(),i.key==="ArrowDown"&&s(a).onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())},["enter","space","arrow-down"]))},{default:F(()=>[ke(l.$slots,"default")]),_:3},8,["id","type","as-child","as","aria-expanded","aria-controls","data-disabled","disabled","data-state"])]),_:3}))}}),K1=yM;const vs=100,[gM,bM]=At("ProgressRoot"),Zi=e=>typeof e=="number";function _M(e,t){return ka(e)||Zi(e)&&!Number.isNaN(e)&&e<=t&&e>=0?e:(console.error(`Invalid prop \`value\` of value \`${e}\` supplied to \`ProgressRoot\`. The \`value\` prop must be: + - a positive number + - less than the value passed to \`max\` (or ${vs} if no \`max\` prop is set) + - \`null\` or \`undefined\` if the progress is indeterminate. + +Defaulting to \`null\`.`),null)}function xM(e){return Zi(e)&&!Number.isNaN(e)&&e>0?e:(console.error(`Invalid prop \`max\` of value \`${e}\` supplied to \`ProgressRoot\`. Only numbers greater than 0 are valid max values. Defaulting to \`${vs}\`.`),vs)}var kM=le({__name:"ProgressRoot",props:{modelValue:{type:[Number,null],required:!1},max:{type:Number,required:!1,default:vs},getValueLabel:{type:Function,required:!1,default:(e,t)=>Zi(e)?`${Math.round(e/t*vs)}%`:void 0},getValueText:{type:Function,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["update:modelValue","update:max"],setup(e,{emit:t}){const a=e,n=t;Xe();const r=qt(a,"modelValue",n,{passive:a.modelValue===void 0}),l=qt(a,"max",n,{passive:a.max===void 0});Ne(()=>r.value,async i=>{const u=_M(i,a.max);u!==i&&(await He(),r.value=u)},{immediate:!0}),Ne(()=>a.max,i=>{const u=xM(a.max);u!==i&&(l.value=u)},{immediate:!0});const o=_(()=>ka(r.value)?"indeterminate":r.value===l.value?"complete":"loading");return bM({modelValue:r,max:l,progressState:o}),(i,u)=>(p(),j(s(Qe),{"as-child":i.asChild,as:i.as,"aria-valuemax":s(l),"aria-valuemin":0,"aria-valuenow":Zi(s(r))?s(r):void 0,"aria-valuetext":i.getValueText?.(s(r),s(l)),"aria-label":i.getValueLabel(s(r),s(l)),role:"progressbar","data-state":o.value,"data-value":s(r)??void 0,"data-max":s(l)},{default:F(()=>[ke(i.$slots,"default",{modelValue:s(r)})]),_:3},8,["as-child","as","aria-valuemax","aria-valuenow","aria-valuetext","aria-label","data-state","data-value","data-max"]))}}),Nc=kM,wM=le({__name:"ProgressIndicator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,a=gM();return Xe(),(n,r)=>(p(),j(s(Qe),je(t,{"data-state":s(a).progressState.value,"data-value":s(a).modelValue?.value??void 0,"data-max":s(a).max.value}),{default:F(()=>[ke(n.$slots,"default")]),_:3},16,["data-state","data-value","data-max"]))}}),Bc=wM;const $M="radio.select";function CM(e,t,a){Af($M,a,{originalEvent:e,value:t})}var SM=le({__name:"Radio",props:{id:{type:String,required:!1},value:{type:null,required:!1},disabled:{type:Boolean,required:!1,default:!1},checked:{type:Boolean,required:!1,default:void 0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:checked","select"],setup(e,{emit:t}){const a=e,n=t,r=qt(a,"checked",n,{passive:a.checked===void 0}),{value:l}=Ht(a),{forwardRef:o,currentElement:i}=Xe(),u=Kf(i),d=_(()=>a.id&&i.value?document.querySelector(`[for="${a.id}"]`)?.innerText??a.value:void 0);function c(f){a.disabled||CM(f,a.value,m=>{n("select",m),!m?.defaultPrevented&&(r.value=!0,u.value&&m.stopPropagation())})}return(f,m)=>(p(),j(s(Qe),je(f.$attrs,{id:f.id,ref:s(o),role:"radio",type:f.as==="button"?"button":void 0,as:f.as,"aria-checked":s(r),"aria-label":d.value,"as-child":f.asChild,disabled:f.disabled?"":void 0,"data-state":s(r)?"checked":"unchecked","data-disabled":f.disabled?"":void 0,value:s(l),required:f.required,name:f.name,onClick:mt(c,["stop"])}),{default:F(()=>[ke(f.$slots,"default",{checked:s(r)}),s(u)&&f.name?(p(),j(s(Xf),{key:0,type:"radio",tabindex:"-1",value:s(l),checked:!!s(r),name:f.name,disabled:f.disabled,required:f.required},null,8,["value","checked","name","disabled","required"])):G("v-if",!0)]),_:3},16,["id","type","as","aria-checked","aria-label","as-child","disabled","data-state","data-disabled","value","required","name"]))}}),EM=SM;const[AM,TM]=At("RadioGroupRoot");var DM=le({__name:"RadioGroupRoot",props:{modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1},disabled:{type:Boolean,required:!1,default:!1},orientation:{type:String,required:!1,default:void 0},dir:{type:String,required:!1},loop:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1,default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const a=e,n=t,{forwardRef:r,currentElement:l}=Xe(),o=qt(a,"modelValue",n,{defaultValue:a.defaultValue,passive:a.modelValue===void 0}),{disabled:i,loop:u,orientation:d,name:c,required:f,dir:m}=Ht(a),v=yn(m),y=Kf(l);return TM({modelValue:o,changeModelValue:x=>{o.value=x},disabled:i,loop:u,orientation:d,name:c?.value,required:f}),(x,C)=>(p(),j(s(Bu),{"as-child":"",orientation:s(d),dir:s(v),loop:s(u)},{default:F(()=>[L(s(Qe),{ref:s(r),role:"radiogroup","data-disabled":s(i)?"":void 0,"as-child":x.asChild,as:x.as,"aria-orientation":s(d),"aria-required":s(f),dir:s(v)},{default:F(()=>[ke(x.$slots,"default",{modelValue:s(o)}),s(y)&&s(c)?(p(),j(s(Xf),{key:0,required:s(f),disabled:s(i),value:s(o),name:s(c)},null,8,["required","disabled","value","name"])):G("v-if",!0)]),_:3},8,["data-disabled","as-child","as","aria-orientation","aria-required","dir"])]),_:3},8,["orientation","dir","loop"]))}}),W1=DM;const[dW,OM]=At("RadioGroupItem");var MM=le({inheritAttrs:!1,__name:"RadioGroupItem",props:{id:{type:String,required:!1},value:{type:null,required:!1},disabled:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["select"],setup(e,{emit:t}){const a=e,n=t,{forwardRef:r,currentElement:l}=Xe(),o=AM(),i=_(()=>o.disabled.value||a.disabled),u=_(()=>o.required.value||a.required),d=_(()=>is(o.modelValue?.value,a.value));OM({disabled:i,checked:d});const c=A(!1),f=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"];to("keydown",v=>{f.includes(v.key)&&(c.value=!0)}),to("keyup",()=>{c.value=!1});function m(){setTimeout(()=>{c.value&&l.value?.click()},0)}return(v,y)=>(p(),j(s(Fu),{checked:d.value,disabled:i.value,"as-child":"",focusable:!i.value,active:d.value},{default:F(()=>[L(EM,je({...v.$attrs,...a},{ref:s(r),checked:d.value,required:u.value,disabled:i.value,"onUpdate:checked":y[0]||(y[0]=x=>s(o).changeModelValue(v.value)),onSelect:y[1]||(y[1]=x=>n("select",x)),onKeydown:y[2]||(y[2]=dn(mt(()=>{},["prevent"]),["enter"])),onFocus:m}),{default:F(()=>[ke(v.$slots,"default",{checked:d.value,required:u.value,disabled:i.value})]),_:3},16,["checked","required","disabled"])]),_:3},8,["checked","disabled","focusable","active"]))}}),G1=MM,IM=le({__name:"BaseSeparator",props:{orientation:{type:String,required:!1,default:"horizontal"},decorative:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,a=["horizontal","vertical"];function n(i){return a.includes(i)}const r=_(()=>n(t.orientation)?t.orientation:"horizontal"),l=_(()=>r.value==="vertical"?t.orientation:void 0),o=_(()=>t.decorative?{role:"none"}:{"aria-orientation":l.value,role:"separator"});return(i,u)=>(p(),j(s(Qe),je({as:i.as,"as-child":i.asChild,"data-orientation":r.value},o.value),{default:F(()=>[ke(i.$slots,"default")]),_:3},16,["as","as-child","data-orientation"]))}}),PM=IM;const[fp,RM]=At("TabsRoot");var qM=le({__name:"TabsRoot",props:{defaultValue:{type:null,required:!1},orientation:{type:String,required:!1,default:"horizontal"},dir:{type:String,required:!1},activationMode:{type:String,required:!1,default:"automatic"},modelValue:{type:null,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const a=e,n=t,{orientation:r,unmountOnHide:l,dir:o}=Ht(a),i=yn(o);Xe();const u=qt(a,"modelValue",n,{defaultValue:a.defaultValue,passive:a.modelValue===void 0}),d=A(),c=ul(new Set);return RM({modelValue:u,changeModelValue:f=>{u.value=f},orientation:r,dir:i,unmountOnHide:l,activationMode:a.activationMode,baseId:Fn(void 0,"reka-tabs"),tabsList:d,contentIds:c,registerContent:f=>{c.value=new Set([...c.value,f])},unregisterContent:f=>{const m=new Set(c.value);m.delete(f),c.value=m}}),(f,m)=>(p(),j(s(Qe),{dir:s(i),"data-orientation":s(r),"as-child":f.asChild,as:f.as},{default:F(()=>[ke(f.$slots,"default",{modelValue:s(u)})]),_:3},8,["dir","data-orientation","as-child","as"]))}}),LM=qM;function Y1(e,t){return`${e}-trigger-${t}`}function J1(e,t){return`${e}-content-${t}`}var NM=le({__name:"TabsContent",props:{value:{type:[String,Number],required:!0},forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:a}=Xe(),n=fp(),r=_(()=>Y1(n.baseId,t.value)),l=_(()=>J1(n.baseId,t.value)),o=_(()=>t.value===n.modelValue.value),i=A(o.value);return xt(()=>{n.registerContent(t.value),requestAnimationFrame(()=>{i.value=!1})}),Et(()=>{n.unregisterContent(t.value)}),(u,d)=>(p(),j(s(pl),{present:u.forceMount||o.value,"force-mount":""},{default:F(({present:c})=>[L(s(Qe),{id:l.value,ref:s(a),"as-child":u.asChild,as:u.as,role:"tabpanel","data-state":o.value?"active":"inactive","data-orientation":s(n).orientation.value,"aria-labelledby":r.value,hidden:!c,tabindex:"0",style:ua({animationDuration:i.value?"0s":void 0})},{default:F(()=>[!s(n).unmountOnHide.value||c?ke(u.$slots,"default",{key:0}):G("v-if",!0)]),_:2},1032,["id","as-child","as","data-state","data-orientation","aria-labelledby","hidden","style"])]),_:3},8,["present"]))}}),ah=NM,BM=le({__name:"TabsList",props:{loop:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{loop:a}=Ht(t),{forwardRef:n,currentElement:r}=Xe(),l=fp();return l.tabsList=r,(o,i)=>(p(),j(s(Bu),{"as-child":"",orientation:s(l).orientation.value,dir:s(l).dir.value,loop:s(a)},{default:F(()=>[L(s(Qe),{ref:s(n),role:"tablist","as-child":o.asChild,as:o.as,"aria-orientation":s(l).orientation.value},{default:F(()=>[ke(o.$slots,"default")]),_:3},8,["as-child","as","aria-orientation"])]),_:3},8,["orientation","dir","loop"]))}}),FM=BM,VM=le({__name:"TabsTrigger",props:{value:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,{forwardRef:a}=Xe(),n=fp(),r=_(()=>Y1(n.baseId,t.value)),l=_(()=>n.contentIds.value.has(t.value)?J1(n.baseId,t.value):void 0),o=_(()=>t.value===n.modelValue.value);return(i,u)=>(p(),j(s(Fu),{"as-child":"",focusable:!i.disabled,active:o.value},{default:F(()=>[L(s(Qe),{id:r.value,ref:s(a),role:"tab",type:i.as==="button"?"button":void 0,as:i.as,"as-child":i.asChild,"aria-selected":o.value?"true":"false","aria-controls":l.value,"data-state":o.value?"active":"inactive",disabled:i.disabled,"data-disabled":i.disabled?"":void 0,"data-orientation":s(n).orientation.value,onMousedown:u[0]||(u[0]=mt(d=>{!i.disabled&&d.ctrlKey===!1?s(n).changeModelValue(i.value):d.preventDefault()},["left"])),onKeydown:u[1]||(u[1]=dn(d=>s(n).changeModelValue(i.value),["enter","space"])),onFocus:u[2]||(u[2]=()=>{const d=s(n).activationMode!=="manual";!o.value&&!i.disabled&&d&&s(n).changeModelValue(i.value)})},{default:F(()=>[ke(i.$slots,"default")]),_:3},8,["id","type","as","as-child","aria-selected","aria-controls","data-state","disabled","data-disabled","data-orientation"])]),_:3},8,["focusable","active"]))}}),nh=VM;const[zM,jM]=At("TimeFieldRoot");function Xs(e,t=Ds(Ga())){return e&&"day"in e?e:fn(t,e)}var UM=le({inheritAttrs:!1,__name:"TimeFieldRoot",props:{defaultValue:{type:Object,required:!1,default:void 0},defaultPlaceholder:{type:Object,required:!1},placeholder:{type:Object,required:!1,default:void 0},modelValue:{type:[Object,null],required:!1},hourCycle:{type:null,required:!1},step:{type:Object,required:!1},stepSnapping:{type:Boolean,required:!1,default:!1},granularity:{type:String,required:!1},hideTimeZone:{type:Boolean,required:!1},maxValue:{type:Object,required:!1},minValue:{type:Object,required:!1},locale:{type:String,required:!1},disabled:{type:Boolean,required:!1,default:!1},readonly:{type:Boolean,required:!1,default:!1},id:{type:String,required:!1},dir:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:["update:modelValue","update:placeholder"],setup(e,{expose:t,emit:a}){const n=e,r=a,{disabled:l,readonly:o,granularity:i,defaultValue:u,minValue:d,maxValue:c,stepSnapping:f,dir:m,locale:v}=Ht(n),y=Mu(v),x=yn(m),C=Hf(y.value,{hourCycle:ds(n.hourCycle)}),{primitiveElement:k,currentElement:E}=ol(),B=A(new Set),O=_(()=>a1(n)),T=_(()=>d.value?Xs(d.value):void 0),P=_(()=>c.value?Xs(c.value):void 0);xt(()=>{Qm(E.value).forEach(_e=>B.value.add(_e))});const R=qt(n,"modelValue",r,{defaultValue:u.value,passive:n.modelValue===void 0}),U=_({get(){return ka(R.value)?R.value:Xs(R.value)},set(_e){return _e?R.value=R.value&&"day"in R.value?_e:new on(_e.hour,_e.minute,_e.second,R.value?.millisecond):R.value=_e,_e}}),S=PA({defaultPlaceholder:n.placeholder,defaultValue:R.value}),I=qt(n,"placeholder",r,{defaultValue:n.defaultPlaceholder??S.copy(),passive:n.placeholder===void 0}),z=_({get(){return Xs(I.value)},set(_e){return _e&&(I.value="day"in I.value?_e.copy():new on(_e.hour,_e.minute,_e.second,I.value?.millisecond)),_e}}),D=_(()=>i.value?i.value:"minute"),N=_(()=>R.value?!!(T.value&&dr(U.value,T.value)||P.value&&dr(P.value,U.value)):!1),Z=p5(D.value),W=A(R.value?{...Vd({value:U.value,formatter:C})}:{...Z}),K=_(()=>M1({granularity:D.value,dateRef:z.value,formatter:C,hideTimeZone:n.hideTimeZone,hourCycle:n.hourCycle,segmentValues:W.value,locale:y,isTimeValue:!0})),ne=_(()=>{const _e=K.value.arr;return n.hourCycle===12?_e.map(Y=>{if(Y.part==="hour"&&"hour"in W.value){const he=W.value.hour;if(he!==null){const J=he===0?12:he>12?he-12:he;return{...Y,value:J.toString()}}}return Y}):_e}),oe=_(()=>ne.value.filter(({part:_e})=>_e!=="literal"));Ne(y,_e=>{C.getLocale()!==_e&&(C.setLocale(_e),He(()=>{B.value.clear(),Qm(E.value).forEach(Y=>B.value.add(Y))}))}),Ne(U,_e=>{!ka(_e)&&(!Hl(z.value,_e)||z.value.compare(_e)!==0)&&(I.value=_e.copy())}),Ne([U,y],([_e])=>{ka(_e)?Object.values(W.value).every(Y=>Y!==null)&&ka(_e)&&(W.value={...Z}):W.value={...Vd({value:_e,formatter:C})}});const se=A(null),de=_(()=>Array.from(B.value).findIndex(_e=>_e.getAttribute("data-reka-time-field-segment")===se.value?.getAttribute("data-reka-time-field-segment"))),ue=_(()=>{const _e=x.value==="rtl"?-1:1;return(_e<0?de.value<0:de.value>B.value.size-1)?null:Array.from(B.value)[de.value+_e]}),te=_(()=>{const _e=x.value==="rtl"?-1:1;return(_e>0?de.value<0:de.value>B.value.size-1)?null:Array.from(B.value)[de.value-_e]}),ye=oo();function H(_e){_e.isComposing||wn(_e.key)&&(_e.key===ye.ARROW_LEFT&&te.value?.focus(),_e.key===ye.ARROW_RIGHT&&ue.value?.focus())}function we(_e){se.value=_e}return jM({locale:y,modelValue:U,placeholder:z,disabled:l,formatter:C,hourCycle:n.hourCycle,step:O,stepSnapping:f,readonly:o,segmentValues:W,isInvalid:N,segmentContents:oe,elements:B,setFocusedElement:we,focusNext(){ue.value?.focus()}}),t({setFocusedElement:we}),(_e,Y)=>(p(),j(s(Qe),je(_e.$attrs,{ref_key:"primitiveElement",ref:k,role:"group","aria-disabled":s(l)?!0:void 0,"data-disabled":s(l)?"":void 0,"data-readonly":s(o)?"":void 0,"data-invalid":N.value?"":void 0,dir:s(x),onKeydown:dn(H,["left","right"])}),{default:F(()=>[ke(_e.$slots,"default",{modelValue:s(R),segments:ne.value,isInvalid:N.value}),L(s(Zf),{id:_e.id,as:"input",feature:"focusable",tabindex:"-1",value:s(R)?s(R).toString():"",name:_e.name,disabled:s(l),required:_e.required,onFocus:Y[0]||(Y[0]=he=>Array.from(B.value)?.[0]?.focus())},null,8,["id","value","name","disabled","required"])]),_:3},16,["aria-disabled","data-disabled","data-readonly","data-invalid","dir"]))}}),rh=UM,HM=le({__name:"TimeFieldInput",props:{part:{type:null,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,a=zM(),n=A(!0),r=A(!1),{handleSegmentClick:l,handleSegmentKeydown:o,handleSegmentBeforeInput:i,handleSegmentCompositionStart:u,handleSegmentCompositionEnd:d,handleSegmentFocusOut:c,attributes:f}=I1({hasLeftFocus:n,lastKeyZero:r,placeholder:a.placeholder,hourCycle:a.hourCycle,step:a.step,stepSnapping:a.stepSnapping,segmentValues:a.segmentValues,formatter:a.formatter,part:t.part,disabled:a.disabled,readonly:a.readonly,focusNext:a.focusNext,modelValue:a.modelValue}),m=_(()=>a.disabled.value),v=_(()=>a.readonly.value),y=_(()=>a.isInvalid.value);return(x,C)=>(p(),j(s(Qe),je({as:x.as,"as-child":x.asChild},s(f),{contenteditable:m.value||v.value?!1:x.part!=="literal","data-reka-time-field-segment":x.part,"aria-disabled":m.value?!0:void 0,"aria-readonly":v.value?!0:void 0,"data-disabled":m.value?"":void 0,"data-invalid":y.value?"":void 0,"aria-invalid":y.value?!0:void 0},Gy(x.part!=="literal"?{mousedown:s(l),keydown:s(o),beforeinput:s(i),compositionstart:s(u),compositionend:s(d),focusout:()=>{n.value=!0,s(c)()},focusin:k=>{s(a).setFocusedElement(k.target)}}:{})),{default:F(()=>[ke(x.$slots,"default")]),_:3},16,["as","as-child","contenteditable","data-reka-time-field-segment","aria-disabled","aria-readonly","data-disabled","data-invalid","aria-invalid"]))}}),lh=HM,KM=le({__name:"ToolbarButton",props:{disabled:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,{forwardRef:a}=Xe();return(n,r)=>(p(),j(s(Fu),{"as-child":"",focusable:!n.disabled},{default:F(()=>[L(s(Qe),je({ref:s(a),type:n.as==="button"?"button":void 0},t),{default:F(()=>[ke(n.$slots,"default")]),_:3},16,["type"])]),_:3},8,["focusable"]))}}),$o=KM;const[WM,GM]=At("ToolbarRoot");var YM=le({__name:"ToolbarRoot",props:{orientation:{type:String,required:!1,default:"horizontal"},dir:{type:String,required:!1},loop:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{orientation:a,dir:n}=Ht(t),r=yn(n),{forwardRef:l}=Xe();return GM({orientation:a,dir:r}),(o,i)=>(p(),j(s(Bu),{"as-child":"",orientation:s(a),dir:s(r),loop:o.loop},{default:F(()=>[L(s(Qe),{ref:s(l),role:"toolbar","aria-orientation":s(a),"as-child":o.asChild,as:o.as},{default:F(()=>[ke(o.$slots,"default")]),_:3},8,["aria-orientation","as-child","as"])]),_:3},8,["orientation","dir","loop"]))}}),JM=YM,ZM=le({__name:"ToolbarSeparator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,a=WM();return Xe(),(n,r)=>(p(),j(PM,{orientation:s(a).orientation.value,"as-child":t.asChild,as:n.as},{default:F(()=>[ke(n.$slots,"default")]),_:3},8,["orientation","as-child","as"]))}}),Fc=ZM;const XM=/^filter\[(.+)\]$/,QM=/^[1-9]\d*$/;function Sl(e){const t=Array.isArray(e)?e[e.length-1]:e;return typeof t=="string"?t:""}function oh(e){return QM.test(e)?Number(e):void 0}function Z1(e){const t={},a=Sl(e.search).trim();a!==""&&(t.search=a);const n=Sl(e.sort).trim();if(n!==""){t.sort=n;const i=Sl(e.dir);t.dir=i==="desc"?"desc":"asc"}const r=oh(Sl(e.page));r!==void 0&&(t.page=r);const l=oh(Sl(e.per_page));l!==void 0&&(t.per_page=l);const o={};for(const i of Object.keys(e).sort()){const u=XM.exec(i)?.[1],d=Sl(e[i]);u&&d!==""&&(o[u]=d)}return Object.keys(o).length>0&&(t.filter=o),t}function Xi(e){const t={};e.search&&(t.search=e.search),e.sort&&(t.sort=e.sort,t.dir=e.dir==="desc"?"desc":"asc"),e.page!==void 0&&e.page>1&&(t.page=String(e.page)),e.per_page!==void 0&&(t.per_page=String(e.per_page));for(const a of Object.keys(e.filter??{}).sort()){const n=e.filter?.[a];n!==void 0&&n!==""&&(t[`filter[${a}]`]=n)}return t}function Ll(e){return JSON.stringify(Xi(e))}const X1="summer-admin.list:",e6=Ll({});let jd=null;function zu(){try{return typeof window>"u"?null:window.localStorage}catch{return null}}function Q1(e){return`${X1}${e}:`}function e0(e){return jd===null?null:Q1(jd)+e}function Ud(e){try{zu()?.removeItem(e)}catch{}}function sh(e){const t=zu();if(t)try{const a=[];for(let n=0;n!0);return}const a=Q1(t);sh(n=>!n.startsWith(a))}function t6(e){const t=e0(e);if(t===null)return{};let a=null;try{a=zu()?.getItem(t)??null}catch{return{}}if(a===null)return{};let n;try{n=JSON.parse(a)}catch{return Ud(t),{}}return typeof n!="object"||n===null||Array.isArray(n)||Object.getPrototypeOf(n)!==Object.prototype||!Object.values(n).every(r=>typeof r=="string")?(Ud(t),{}):Z1(n)}function Qs(e,t){const a=e0(e);if(a!==null){if(Ll(t)===e6){Ud(a);return}try{zu()?.setItem(a,JSON.stringify(Xi(t)))}catch{}}}const el=A(null),t0=A(null);let Xo=null;function a0(e){n0(),t0.value=e,!(e===null||e<=0)&&(Xo=setTimeout(()=>{Xo=null,hf()},e*800))}function n0(){Xo!==null&&(clearTimeout(Xo),Xo=null)}w2(a0);const ta=Ct(el);async function a6(e,t){const{data:a,response:n}=await Re.POST("/auth/login",{body:{login:e,password:t}});return!n.ok||!a?!1:(a0(typeof a.data.expires_in=="number"?a.data.expires_in:null),!0)}async function r0(){const{data:e,response:t}=await Re.GET("/auth/me");return el.value=t.ok&&e?e.data:null,pp(el.value?.id??null),await V3(el.value),el.value}function l0(e){if(!e)return"";const t=[e.first_name,e.last_name].map(a=>a.trim()).filter(Boolean);return t.length>0?t.slice(0,2).map(a=>a.charAt(0).toUpperCase()).join(""):e.login.slice(0,2).toUpperCase()}function Vc(e){el.value=e,pp(e.id)}function o0(){n0(),el.value=null,t0.value=null,pp(null)}function Hd(e){o0();const t=e.currentRoute.value;t.name!=="login"&&e.push({name:"login",query:{redirect:t.fullPath}}).catch(()=>{})}async function s0(e){try{await Re.POST("/auth/logout")}catch{}finally{o0(),T2([]),M2([])}e&&await e.replace({name:"login"}).catch(()=>{})}const n6=["src"],r6={key:1,class:"flex size-[34px] shrink-0 items-center justify-center rounded-full bg-accent text-[13px] font-bold text-on-accent","aria-hidden":"true","data-user-initials":""},l6={class:"flex flex-col leading-tight max-[1099px]:hidden","data-user-identity":""},o6={class:"font-semibold"},s6={key:0,class:"text-[12px] text-muted","data-user-role":""},i6={class:"flex items-center gap-3 px-2 py-2"},u6=["src"],c6={key:1,class:"flex size-10 shrink-0 items-center justify-center rounded-full bg-accent text-[14px] font-bold text-on-accent","aria-hidden":"true"},d6={class:"flex min-w-0 flex-col leading-tight"},f6={class:"truncate font-bold"},p6={class:"truncate text-[13px] text-muted"},v6={class:"flex size-[18px] items-center justify-center"},m6=le({__name:"UserMenu",setup(e){const t=hn(),a=_(()=>{const m=ta.value;if(!m)return"";const v=`${m.first_name} ${m.last_name}`.trim();return v===""?m.login:v}),n=_(()=>l0(ta.value)),r=_(()=>ta.value?.avatar?.thumb_url||ta.value?.avatar?.url||""),l=_(()=>ta.value?.role?.name??""),o=_(()=>q3.value||Ka.value);function i(m){try{const v=new Intl.DisplayNames([m],{type:"language"}).of(m);if(v&&v!==m)return v.charAt(0).toLocaleUpperCase(m)+v.slice(1)}catch{}return m.toUpperCase()}const u=_(()=>S2.value.map(m=>({code:m,name:i(m)})));function d(m){typeof m=="string"&&m!==""&&z3(m)}async function c(){await t.push({name:"account"}).catch(()=>{})}async function f(){await s0(t)}return(m,v)=>(p(),j(s(j1),{modal:!1},{default:F(()=>[L(s(K1),{"data-user-menu":"",disabled:!s(ta),"aria-label":`${s(h)("backend::lang.nav.user_menu")}: ${a.value}`,class:"flex h-input items-center gap-2.5 rounded-inner px-2 text-left transition-colors duration-150 ease-out hover:bg-hover"},{default:F(()=>[r.value?(p(),g("img",{key:0,src:r.value,alt:"","data-user-avatar":"",class:"size-[34px] shrink-0 rounded-full object-cover"},null,8,n6)):(p(),g("span",r6,$(n.value),1)),b("span",l6,[b("span",o6,$(a.value),1),l.value?(p(),g("span",s6,$(l.value),1)):G("",!0)]),L(s(yr),{size:16,class:"text-muted","aria-hidden":"true"})]),_:1},8,["disabled","aria-label"]),L(s(H1),null,{default:F(()=>[L(s(U1),{"data-user-menu-content":"",align:"end","side-offset":8,class:"z-50 flex w-[280px] flex-col rounded-[14px] border border-border bg-surface p-2 text-text shadow-menu"},{default:F(()=>[b("div",i6,[r.value?(p(),g("img",{key:0,src:r.value,alt:"","data-user-avatar":"",class:"size-10 shrink-0 rounded-full object-cover"},null,8,u6)):(p(),g("span",c6,$(n.value),1)),b("span",d6,[b("span",f6,$(a.value),1),b("span",p6,$(s(ta)?.email),1)])]),L(s(zd),{"data-action":"account",class:"flex h-10 cursor-pointer items-center gap-2.5 rounded-control px-3 font-medium outline-none transition-colors duration-150 ease-out data-[highlighted]:bg-hover",onSelect:c},{default:F(()=>[L(s(y3),{size:18,"aria-hidden":"true"}),b("span",null,$(s(h)("backend::lang.myaccount.menu_label")),1)]),_:1}),u.value.length>1?(p(),g(me,{key:0},[L(s(th),{class:"my-1 h-px bg-border"}),L(s(cM),{class:"px-3 pt-1 pb-1 text-[12px] font-semibold text-muted","data-language-label":""},{default:F(()=>[ge($(s(h)("backend::lang.nav.language")),1)]),_:1}),L(s(pM),{"model-value":o.value,"onUpdate:modelValue":d},{default:F(()=>[(p(!0),g(me,null,Me(u.value,y=>(p(),j(s(mM),{key:y.code,value:y.code,"data-locale-option":y.code,lang:y.code,class:"flex h-10 cursor-pointer items-center gap-2.5 rounded-control px-3 font-medium outline-none transition-colors duration-150 ease-out data-[highlighted]:bg-hover"},{default:F(()=>[b("span",v6,[L(s(iM),null,{default:F(()=>[L(s(qa),{size:18,"aria-hidden":"true"})]),_:1})]),b("span",null,$(y.name),1)]),_:2},1032,["value","data-locale-option","lang"]))),128))]),_:1},8,["model-value"])],64)):G("",!0),L(s(th),{class:"my-1 h-px bg-border"}),L(s(zd),{"data-action":"logout",class:"flex h-10 cursor-pointer items-center gap-2.5 rounded-control px-3 font-medium outline-none transition-colors duration-150 ease-out data-[highlighted]:bg-hover",onSelect:f},{default:F(()=>[L(s(sb),{size:18,"aria-hidden":"true"}),b("span",null,$(s(h)("backend::lang.auth.logout")),1)]),_:1})]),_:1})]),_:1})]),_:1}))}}),h6=["role","data-tone"],y6={class:"font-medium"},g6=["aria-label","onClick"],b6=le({__name:"Toast",setup(e){return(t,a)=>(p(),j(Hk,{tag:"div",name:"toast",class:"pointer-events-none fixed inset-x-0 bottom-[88px] z-50 flex flex-col items-center gap-2 px-4"},{default:F(()=>[(p(!0),g(me,null,Me(s(P3),n=>(p(),g("div",{key:n.id,role:n.tone==="danger"?"alert":"status","data-tone":n.tone,class:"pointer-events-auto flex max-w-[560px] items-center gap-3 rounded-[14px] bg-[#1d2740] py-3 pr-2.5 pl-3.5 text-white shadow-toast"},[b("span",{class:ve([n.tone==="danger"?"bg-[#f58a8a] text-[#1d2740]":"bg-accent text-on-accent","flex size-[26px] shrink-0 items-center justify-center rounded-full"]),"aria-hidden":"true"},[n.tone==="danger"?(p(),j(s(ht),{key:0,size:16})):(p(),j(s(qa),{key:1,size:16}))],2),b("span",y6,$(n.text),1),b("button",{type:"button","aria-label":s(h)("backend::lang.form.close"),class:"flex size-8 items-center justify-center rounded-pager text-[#c3cbda] transition-colors duration-150 ease-out hover:bg-side-hover hover:text-white",onClick:r=>s(gb)(n.id)},[L(s(Xt),{size:16,"aria-hidden":"true"})],8,g6)],8,h6))),128))]),_:1}))}}),_6=[{combo:"mod+s",labelKey:"backend::lang.form.save"},{combo:"mod+enter",labelKey:"backend::lang.form.save_and_close"},{combo:"mod+shift+s",labelKey:"backend::lang.form.create_and_new"},{combo:"escape",labelKey:"backend::lang.shortcuts.leave"},{combo:"/",labelKey:"backend::lang.shortcuts.search"},{combo:"?",labelKey:"backend::lang.shortcuts.help"}],x6=new Set(["mod+s","mod+enter","mod+shift+s"]);function vp(e){const t=typeof navigator>"u"?"":navigator.platform||"";return/mac|iphone|ipad|ipod/i.test(t)}function k6(e){if(/^[a-z]$/i.test(e.key))return e.key.toLowerCase();const t=/^Key([A-Z])$/.exec(e.code??"");return t?t[1].toLowerCase():""}function i0(e){if(e.isComposing)return null;if(e.ctrlKey||e.metaKey)return e.altKey?null:e.key==="Enter"?e.shiftKey?null:"mod+enter":k6(e)==="s"?e.shiftKey?"mod+shift+s":"mod+s":null;if(e.altKey)return null;switch(e.key){case"Escape":return"escape";case"/":return"/";case"?":return"?";default:return null}}function w6(e){if(!e||typeof e.closest!="function")return!1;const t=e;return t.closest('input, textarea, select, [contenteditable]:not([contenteditable="false"])')!==null?!0:t.tagName.includes("-")&&t.closest('form, [role="form"]')!==null}function $6(e){return(typeof e.composedPath=="function"?e.composedPath():[])[0]??e.target}function u0(e,t=vp()){switch(e){case"mod+s":return t?["⌘","S"]:["Ctrl","S"];case"mod+enter":return t?["⌘","↩"]:["Ctrl","Enter"];case"mod+shift+s":return t?["⇧","⌘","S"]:["Ctrl","Shift","S"];case"escape":return["Esc"];default:return[e]}}function C6(e,t=vp()){return u0(e,t).join(t?"":"+")}function Fa(e,t,a=vp()){return h("backend::lang.shortcuts.hint",{label:e,keys:C6(t,a)})}const ih={"mod+s":"Control+S Meta+S","mod+enter":"Control+Enter Meta+Enter","mod+shift+s":"Control+Shift+S Meta+Shift+S",escape:"Escape","/":"/","?":"?"};function ju(e){return e.split(/\s+/).filter(t=>t in ih).map(t=>ih[t]).join(" ")}function c0(e=document){return Array.from(e.querySelectorAll('[role="dialog"][aria-modal="true"], [role="alertdialog"]')).filter(a=>a.getAttribute("data-state")!=="closed").at(-1)??e}function mp(e,t){return t.querySelector(`[data-hotkey~="${e}"]`)}function S6(e=document){const t=c0(e);return _6.filter(a=>a.combo==="?"||mp(a.combo,t)!==null)}const hp=A(null),uh=Ct(hp);function E6(){hp.value=S6()}function d0(){hp.value=null}function f0(e){return e.disabled===!0||e.getAttribute("aria-disabled")==="true"}function ch(e){const t=i0(e);if(!t||!x6.has(t))return;t==="mod+s"&&e.preventDefault();const a=e.target?.ownerDocument??document,n=mp(t,c0(a));if(!n||(e.preventDefault(),e.stopPropagation(),e.repeat||f0(n)))return;const r=dh(a),l=r instanceof HTMLElement&&r!==n&&r!==a.body?r:null;l&&(n.focus({preventScroll:!0}),dh(a)===l&&l.blur()),n.click();const o=a.activeElement;l?.isConnected&&(o===n||o===a.body||o===null)&&l.focus({preventScroll:!0})}function dh(e=document){let t=e.activeElement;for(;t?.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t}function fh(e){const t=i0(e);if(t!=="escape"&&t!=="/"&&t!=="?"||e.defaultPrevented||w6($6(e)))return;const a=e.target?.ownerDocument??document;if(a.querySelector("[data-dismissable-layer]"))return;if(t==="?"){e.preventDefault(),E6();return}const n=mp(t,a);!n||f0(n)||(e.preventDefault(),n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement?(n.focus(),n.select()):n.click())}let ei=0;function A6(){ei===0&&(window.addEventListener("keydown",ch,!0),window.addEventListener("keydown",fh)),ei++;let e=!1;return()=>{e||(e=!0,ei--,ei===0&&(window.removeEventListener("keydown",ch,!0),window.removeEventListener("keydown",fh)))}}const T6={class:"flex items-start gap-3"},D6={class:"flex min-w-0 flex-1 flex-col gap-1"},O6={class:"flex flex-col gap-2.5"},M6=["data-shortcut"],I6={class:"flex shrink-0 items-center gap-1"},P6={class:"text-right text-muted"},R6=le({__name:"ShortcutHelpDialog",setup(e){function t(a){a||d0()}return(a,n)=>(p(),j(s(Dr),{open:s(uh)!==null,"onUpdate:open":t},{default:F(()=>[L(s(vl),null,{default:F(()=>[L(s(Mr),{"data-dialog-overlay":"",class:"fixed inset-0 z-40 bg-overlay"}),L(s(Or),{"data-shortcut-help":"","data-dialog-content":"","aria-modal":"true",class:"fixed top-1/2 left-1/2 z-50 flex max-h-[calc(100vh-32px)] w-[calc(100%-32px)] max-w-[440px] -translate-x-1/2 -translate-y-1/2 flex-col gap-4 overflow-y-auto rounded-modal bg-surface p-6 text-text shadow-pop"},{default:F(()=>[b("div",T6,[b("div",D6,[L(s(Ir),{class:"text-[20px] font-bold tracking-[-0.01em]"},{default:F(()=>[ge($(s(h)("backend::lang.shortcuts.title")),1)]),_:1}),L(s(xr),{class:"text-muted"},{default:F(()=>[ge($(s(h)("backend::lang.shortcuts.description")),1)]),_:1})]),L(s(_r),{"data-action":"close","aria-label":s(h)("backend::lang.form.close"),class:"flex size-[34px] shrink-0 items-center justify-center rounded-tab bg-subtle text-muted hover:bg-hover hover:text-text"},{default:F(()=>[L(s(Xt),{size:16,"aria-hidden":"true"})]),_:1},8,["aria-label"])]),b("dl",O6,[(p(!0),g(me,null,Me(s(uh)??[],r=>(p(),g("div",{key:r.combo,"data-shortcut":r.combo,class:"flex items-center justify-between gap-4"},[b("dt",I6,[(p(!0),g(me,null,Me(s(u0)(r.combo),l=>(p(),g("kbd",{key:l,class:"inline-flex min-w-6 items-center justify-center rounded-pager border border-border bg-subtle px-1.5 font-mono text-[13px]"},$(l),1))),128))]),b("dd",P6,$(s(h)(r.labelKey)),1)],8,M6))),128))])]),_:1})]),_:1})]),_:1},8,["open"]))}}),q6={class:"flex min-w-0 flex-1 flex-col"},L6={class:"flex h-header shrink-0 items-center justify-between gap-4 border-b border-border bg-surface pr-6 pl-8"},N6={class:"flex shrink-0 items-center gap-1"},B6=["title","aria-label"],F6={class:"min-w-0 flex-1 px-8 py-7"},V6=le({__name:"AppShell",setup(e){const t=ha(),{collapsed:a,watchViewport:n}=wb(),r=n();Et(r);const l=A6();Et(()=>{l(),d0()});const o=`${window.location.origin}/`,i=_(()=>ws(String(t.params.vendor??""),String(t.params.plugin??""))),u=_(()=>i.value?null:t.name==="settings-form"?vc(os(String(t.params.code??""))):t.name==="plugins"?vc(Kg(t.path)):vc(wu(ro(t.path)))),d=_(()=>(i.value||u.value)&&!a.value?"calc(var(--spacing-rail) + var(--spacing-panel))":"var(--spacing-rail)");return(c,f)=>(p(),g("div",{class:"flex min-h-screen bg-bg text-text",style:ua({"--shell-offset":d.value})},[L(aE),i.value&&!s(a)?(p(),j(sE,{key:0,entry:i.value},null,8,["entry"])):u.value&&!s(a)?(p(),j(fE,{key:1,section:u.value},null,8,["section"])):G("",!0),b("div",q6,[b("header",L6,[L(hE),b("div",N6,[b("a",{"data-view-site":"",href:o,target:"_blank",rel:"noopener noreferrer",title:s(h)("backend::lang.nav.view_site"),"aria-label":s(h)("backend::lang.nav.view_site"),class:"flex size-input items-center justify-center rounded-inner text-muted transition-colors duration-150 ease-out hover:bg-hover hover:text-text"},[L(s(tb),{class:"size-[18px]","aria-hidden":"true"})],8,B6),L(m6)])]),b("main",F6,[ke(c.$slots,"default")])]),L(b6),L(R6)],4))}}),z6=300*1e3,j6=30*1e3;function U6(e,t){return e!==""&&t!==""&&e!==t}async function H6(){try{const e=await globalThis.fetch(`${cl.base}/build.json`,{cache:"no-store",credentials:"same-origin"});if(!e.ok)return"";const t=await e.json();if(typeof t!="object"||t===null)return"";const a=t.build;return typeof a=="string"?a:""}catch{return""}}const yp=A(!1);let p0="",v0="";const K6=Ct(yp);function W6(e,t=cl.build){U6(t,e)&&e!==v0&&(p0=e,yp.value=!0)}function G6(){v0=p0,yp.value=!1}function Y6(e={}){const t=e.booted??cl.build;if(t==="")return()=>{};const a=e.check??H6,n=e.interval??z6,r=e.minGap??j6,l=e.win??window,o=e.doc??document,i=e.now??Date.now;let u=!1,d=Number.NEGATIVE_INFINITY;const c=async()=>{if(!(o.visibilityState==="hidden"||u||i()-d{c().catch(()=>{})};o.addEventListener("visibilitychange",f),l.addEventListener("focus",f);const m=l.setInterval(f,n);return()=>{o.removeEventListener("visibilitychange",f),l.removeEventListener("focus",f),l.clearInterval(m)}}const J6={key:0,"data-update-banner":"",role:"status","aria-live":"polite",class:"fixed right-4 bottom-[88px] z-50 flex max-w-[420px] items-center gap-3 rounded-[14px] bg-[#1d2740] py-3 pr-2.5 pl-3.5 text-white shadow-toast"},Z6={class:"font-medium"},X6=["aria-label"],Q6=le({__name:"UpdateBanner",setup(e){return(t,a)=>s(K6)?(p(),g("div",J6,[b("span",Z6,$(s(h)("backend::lang.version.available")),1),b("button",{type:"button","data-update-reload":"",class:"shrink-0 rounded-pager bg-accent px-3 py-1.5 font-medium text-on-accent transition-opacity duration-150 ease-out hover:opacity-90",onClick:a[0]||(a[0]=n=>s(_b).reload())},$(s(h)("backend::lang.version.reload")),1),b("button",{type:"button","data-update-close":"","aria-label":s(h)("backend::lang.form.close"),class:"flex size-8 shrink-0 items-center justify-center rounded-pager text-[#c3cbda] transition-colors duration-150 ease-out hover:bg-side-hover hover:text-white",onClick:a[1]||(a[1]=n=>s(G6)())},[L(s(Xt),{size:16,"aria-hidden":"true"})],8,X6)])):G("",!0)}}),m0=A(0),e8=Ct(m0);function t8(){m0.value++}const a8=le({__name:"App",setup(e){const t=ha(),a=_(()=>t.meta.shell===!0);return Ca(()=>{document.title=P2(t)}),(n,r)=>(p(),g(me,null,[a.value?(p(),j(V6,{key:0},{default:F(()=>[L(s(xd),null,{default:F(({Component:l,route:o})=>[(p(),j(Kt(l),{key:`${o.path}#${s(e8)}`}))]),_:1})]),_:1})):(p(),j(s(xd),{key:1})),L(Q6)],64))}}),n8="data-summer-controller",h0="*",zc=new Map,Kd=new Map;let y0="";function g0(){return`${cl.base}/assets/`}function b0(e){if(!e.startsWith(g0())||e.includes("\\"))return!1;for(const a of e){const n=a.codePointAt(0)??0;if(n<=32||n===127)return!1}return!(e.split(/[?#]/,1)[0]??"").split("/").some(a=>{const n=a.toLowerCase().replaceAll("%2e",".");return n==="."||n===".."})}function _0(e){if(!b0(e))return Promise.reject(new Error(`plugin script outside ${g0()}: ${e}`));const t=zc.get(e);if(t)return t;const a=new Promise((n,r)=>{const l=document.createElement("script");l.type="module",l.addEventListener("load",()=>n(),{once:!0}),l.addEventListener("error",()=>{zc.delete(e),l.remove(),r(new Error(`plugin script failed to load: ${e}`))},{once:!0}),l.src=e,document.head.appendChild(l)});return zc.set(e,a),a}function x0(e,t){for(const a of t){const n=`${e} +${a}`;if(!b0(a)||Kd.has(n))continue;const r=document.createElement("link");r.rel="stylesheet",r.setAttribute(n8,e),r.disabled=!k0(e),r.href=a,Kd.set(n,{owner:e,link:r}),document.head.appendChild(r)}}function r8(e){y0=e;for(const{owner:t,link:a}of Kd.values())a.disabled=!k0(t)}function k0(e){return e===h0||e===y0}function l8(e){x0(h0,e)}async function gp(e,t){x0(e,t?.styles??[]);const a=t?.scripts??[],n=await Promise.allSettled(a.map(r=>_0(r)));return a.filter((r,l)=>n[l]?.status==="rejected")}const w0=new Map;async function $0(){let e=[];try{const{data:t,response:a}=await Re.GET("/field-types");e=a.ok&&t?t.data:[]}catch{return[]}for(const t of e){l8(t.styles??[]);const a=t.scripts??[];w0.set(t.element,Promise.allSettled(a.map(n=>_0(n))).then(n=>a.filter((r,l)=>n[l]?.status==="rejected")))}return e}function o8(e){return w0.get(e)??Promise.resolve([])}const s8={class:"flex min-h-screen items-center justify-center px-4",style:{background:"radial-gradient(ellipse at 50% 35%, #2b3a5c 0%, #1d2740 60%)"}},i8={class:"flex w-full max-w-[400px] flex-col gap-6"},u8={class:"flex items-center justify-center gap-3"},c8={class:"flex size-[34px] items-center justify-center rounded-full bg-accent-soft"},d8={class:"text-[22px] font-bold tracking-[-0.02em]"},f8={key:0,"data-login-hint":"",class:"text-[13px] text-[#566175]"},p8={class:"flex flex-col gap-1.5"},v8={class:"font-semibold"},m8={class:"flex flex-col gap-1.5"},h8={class:"font-semibold"},y8=["aria-invalid"],g8={key:1,role:"alert",class:"flex items-center gap-2.5 rounded-control bg-[#fdf0f0] px-3.5 py-3 text-[#c62828]"},b8=["disabled"],_8=le({__name:"LoginView",setup(e){const t=ha(),a=hn(),n=A(""),r=A(""),l=A(!1),o=A(!1),i=_(()=>{const d=Xd(t.query.redirect);return d!==null&&new URL(d,"http://admin.invalid").pathname==="/connect"});async function u(){if(!o.value){o.value=!0,l.value=!1;try{if(!await a6(n.value.trim(),r.value)||!await r0()){l.value=!0;return}r.value="",await Promise.all([Ug(),Hg().catch(()=>[]),$0()]),await a.replace(Xd(t.query.redirect)??"/")}finally{o.value=!1}}}return(d,c)=>(p(),g("main",s8,[b("div",i8,[b("div",u8,[b("span",c8,[L(s(Es),{size:20,class:"text-accent","aria-hidden":"true"})]),c[2]||(c[2]=b("span",{class:"text-[18px] font-bold text-white"},[ge("Summer"),b("span",{class:"text-accent"},"CMS")],-1))]),b("form",{class:"flex flex-col gap-[18px] rounded-card bg-white p-8 text-[#141b2d] shadow-login",novalidate:"",onSubmit:mt(u,["prevent"])},[b("h1",d8,$(s(h)("backend::lang.auth.title")),1),i.value?(p(),g("p",f8,$(s(h)("backend::lang.mcp_connect.login_hint")),1)):G("",!0),b("label",p8,[b("span",v8,$(s(h)("backend::lang.auth.login")),1),Pa(b("input",{"onUpdate:modelValue":c[0]||(c[0]=f=>n.value=f),name:"login",type:"text",autocomplete:"username",required:"",class:"h-input rounded-control border border-[#d2d8e2] bg-white px-3.5"},null,512),[[nl,n.value]])]),b("label",m8,[b("span",h8,$(s(h)("backend::lang.auth.password")),1),Pa(b("input",{"onUpdate:modelValue":c[1]||(c[1]=f=>r.value=f),name:"password",type:"password",autocomplete:"current-password",required:"","aria-invalid":l.value?"true":void 0,class:ve([l.value?"border-[#c62828]":"border-[#d2d8e2]","h-input rounded-control border bg-white px-3.5"])},null,10,y8),[[nl,r.value]])]),l.value?(p(),g("div",g8,[L(s(ht),{size:18,"aria-hidden":"true"}),b("span",null,$(s(h)("backend::lang.auth.invalid")),1)])):G("",!0),b("button",{type:"submit",disabled:o.value,class:"h-input rounded-control bg-[#22304d] font-semibold text-white disabled:opacity-60"},$(s(h)("backend::lang.auth.submit")),9,b8)],32)])]))}}),ph=/^\d+$/;function C0(e,t,a){const n=xu(t),r=Ha(t);if(!n||!r)return"/";const o=((e??"").trim().split(/[?#]/,1)[0]??"").split("/").filter(c=>c!==""),i=[n.vendor,n.plugin,n.controller];if(!i.every((c,f)=>o[f]?.toLowerCase()===c.toLowerCase()))return r;const d=o.slice(i.length);if(d.length===0)return r;if(d.length===1&&d[0]==="create")return`${r}/create`;if(d.length===2&&d[0]==="update"){const c=d[1]===":id"?String(a??""):d[1]??"";return ph.test(c)?`${r}/${c}`:r}if(d.length===2&&d[0]==="preview"){const c=d[1]===":id"?String(a??""):d[1]??"";return ph.test(c)?`${r}/${c}/preview`:r}return r}const vh=/^[0-9]+$/;function x8(e,t){const a=e.replace(/[\s ]/g,"");if(a==="")return{value:null,error:null};let n=a,r=!1;n.startsWith("-")&&(r=!0,n=n.slice(1));const l=n.match(/[.,]/g)??[];if(l.length>1)return{value:null,error:"invalid"};const[o,i=""]=n.split(/[.,]/);if(!vh.test(o??"")||l.length===1&&!vh.test(i))return{value:null,error:"invalid"};if(i.replace(/0+$/,"").length>t)return{value:null,error:"too_precise"};const u=i===""?o:`${o}.${i}`;return{value:`${r?"-":""}${u}`,error:null}}function k8(e){const[t,a]=e.split(".");if(a===void 0||a.length<=2)return e;let n=a.length;for(;n>2&&a.charAt(n-1)==="0";)n-=1;return`${t}.${a.slice(0,n)}`}function w8(e){return new Intl.NumberFormat(e).formatToParts(1.1).find(a=>a.type==="decimal")?.value??"."}function S0(e,t,a,n=4){const r={minimumFractionDigits:2,maximumFractionDigits:Math.max(2,n)},l=t===""?{style:"decimal",...r}:{style:"currency",currency:t,currencyDisplay:"code",...r};let o;try{o=new Intl.NumberFormat(a,l)}catch{return`${new Intl.NumberFormat(a,{style:"decimal",...r}).format(e)} ${t}`.trim()}return o.format(e)}const $8={key:0,"data-switch":"true",class:"inline-flex h-6 items-center gap-1 rounded-pill bg-ok-bg px-2.5 text-[12px] font-semibold text-ok-text"},C8={key:1,"data-switch":"false",class:"inline-flex h-6 items-center rounded-pill border border-border-strong px-2.5 text-[12px] font-semibold text-muted"},S8={key:1,class:"text-muted","data-empty":""},E8={key:2,class:"text-[13px] text-muted tabular-nums"},A8={key:3,"data-money":"",class:"tabular-nums whitespace-nowrap"},El=le({__name:"CellValue",props:{column:{},value:{},row:{}},setup(e){const t=e;function a(v){return v==null||v===""}function n(v){return a(v)?"":Array.isArray(v)?v.map(n).filter(y=>y!=="").join(", "):typeof v=="boolean"?h(v?"backend::lang.list.column_switch_true":"backend::lang.list.column_switch_false"):typeof v=="object"?"":String(v)}function r(v){return String(v).padStart(2,"0")}function l(v){if(typeof v!="string"&&typeof v!="number")return"";const y=new Date(v);return Number.isNaN(y.getTime())?String(v):`${y.getFullYear()}-${r(y.getMonth()+1)}-${r(y.getDate())} ${r(y.getHours())}:${r(y.getMinutes())}`}function o(v){if(typeof v!="string")return"";const y=/^\d{4}-\d{2}-\d{2}/.exec(v.trim());return y?y[0]:v.trim()}function i(v){if(typeof v!="string")return"";const y=/(\d{2}):(\d{2})/.exec(v);return y?`${y[1]}:${y[2]}`:v.trim()}function u(v){return typeof v=="string"?v!==""&&v!=="0"&&v.toLowerCase()!=="false":!!v}function d(){if(t.column.currencyFrom){const v=t.row?.[t.column.currencyFrom];return typeof v=="string"?v.trim():""}return t.column.currency??""}function c(v){return typeof v!="string"||v.trim()===""?"":S0(v.trim(),d(),Ka.value,4)}const f=_(()=>t.column.type==="switch"?"switch":t.column.type==="money"?"money":t.column.type==="datetime"?"datetime":t.column.type==="date"?"date":t.column.type==="time"?"time":"text"),m=_(()=>{switch(f.value){case"datetime":return l(t.value);case"date":return o(t.value);case"time":return i(t.value);case"money":return c(t.value);default:return n(t.value)}});return(v,y)=>f.value==="switch"&&!a(e.value)?(p(),g(me,{key:0},[u(e.value)?(p(),g("span",$8,[L(s(Yg),{size:14,"aria-hidden":"true"}),ge($(s(h)("backend::lang.list.column_switch_true")),1)])):(p(),g("span",C8,$(s(h)("backend::lang.list.column_switch_false")),1))],64)):m.value===""?(p(),g("span",S8,"—")):f.value==="datetime"||f.value==="date"||f.value==="time"?(p(),g("span",E8,$(m.value),1)):f.value==="money"?(p(),g("span",A8,$(m.value),1)):(p(),g(me,{key:4},[ge($(m.value),1)],64))}}),T8={key:0,class:"flex shrink-0 gap-2"},D8=["data-row-state"],O8=le({__name:"RowStateBadges",props:{states:{},labels:{}},setup(e){const t=e,a={deleted:"border border-border-strong text-muted",negative:"bg-danger-soft text-danger",disabled:"bg-subtle text-muted",customized:"border border-border-strong text-text",outdated:"bg-sel text-text"},n=["deleted","negative","disabled","customized","outdated"],r=_(()=>n.filter(l=>t.states.includes(l)));return(l,o)=>r.value.length>0?(p(),g("span",T8,[(p(!0),g(me,null,Me(r.value,i=>(p(),g("span",{key:i,"data-row-state":i,class:ve([a[i],"inline-flex h-6 shrink-0 items-center rounded-pill px-2.5 text-[12px] font-semibold whitespace-nowrap"])},$(e.labels[i]??i),11,D8))),128))])):G("",!0)}}),M8={class:"overflow-x-auto"},I8={class:"sticky top-0 z-10"},P8={class:"h-row-head border-y border-border bg-subtle"},R8={key:0,scope:"col","data-select":"",class:"w-[52px] pl-5"},q8=["aria-checked","aria-label","disabled"],L8=["aria-sort"],N8=["data-sort","onClick"],B8={key:1,class:"w-[56px] pr-5"},F8=["aria-busy"],V8={key:0,class:"pl-5"},z8={key:1,class:"pr-5"},j8={key:1},U8=["colspan"],H8={class:"text-muted"},K8=["aria-selected","data-row-states","onClick"],W8={key:0,"data-select":"",class:"pl-5"},G8=["aria-checked","aria-label","onClick"],Y8={key:0,class:"flex items-center gap-3"},J8={"data-avatar":"",class:"flex size-[30px] shrink-0 items-center justify-center rounded-full bg-subtle text-[12px] font-bold text-text","aria-hidden":"true"},Z8=["onClick"],X8={key:1,class:"flex items-center gap-2"},Q8={key:1,"data-trailing":"",class:"w-[56px] pr-5"},E0=le({__name:"DataTable",props:{columns:{},rows:{},loading:{type:Boolean,default:!1},rowLink:{type:Function,default:void 0},selectable:{type:Boolean,default:!1},selected:{default:()=>[]},sortable:{type:Boolean,default:!1},sort:{default:null},variant:{default:"list"},openable:{type:Boolean,default:!1},trailing:{type:Boolean,default:!1},rowStates:{default:()=>({})},stateLabels:{default:()=>({})}},emits:["update:selected","sort","open"],setup(e,{emit:t}){const a=e,n=t,r=hn();function l(Z){const W=Z.id;return typeof W=="number"||typeof W=="string"?W:null}function o(Z,W){const K=l(Z);return K===null?`row-${W}`:String(K)}function i(Z){return a.rowLink?a.rowLink(Z):null}function u(Z,W){if(Z.target?.closest("a, button, input, label, select"))return;if(a.openable){const oe=Z.currentTarget?.querySelector("[data-row-open]")??null;n("open",W,oe);return}const ne=i(W);ne&&r.push(ne)}const d=_(()=>a.rows.map(l).filter(Z=>Z!==null)),c=_(()=>new Set(a.selected.map(String))),f=_(()=>{const Z=d.value,W=Z.filter(K=>c.value.has(String(K))).length;return W===0?"false":W===Z.length?"true":"mixed"});function m(Z){const W=l(Z);return W!==null&&c.value.has(String(W))}function v(){n("update:selected",f.value==="true"?[]:[...d.value])}function y(Z){const W=l(Z);W!==null&&(c.value.has(String(W))?n("update:selected",a.selected.filter(K=>String(K)!==String(W))):n("update:selected",[...a.selected,W]))}function x(Z){if(a.sort?.column===Z.key)return a.sort.dir==="desc"?"descending":"ascending"}function C(Z){return a.sortable&&Z.sortable}const k=_(()=>a.variant==="relation"),E=_(()=>k.value?"h-[56px]":"h-row"),B=_(()=>k.value?3:8);function O(Z){return(typeof Z=="string"||typeof Z=="number"?String(Z):"").split(/[\s@._-]+/).filter(Boolean).slice(0,2).map(K=>K.charAt(0).toUpperCase()).join("")}const T=["deleted","negative","disabled","customized","outdated"];function P(Z){const W=l(Z),K=W===null?void 0:a.rowStates[String(W)];return Array.isArray(K)?T.filter(ne=>K.includes(ne)):[]}function R(Z,W,K=[]){const ne=K.includes("deleted")||K.includes("disabled"),oe=U(Z);return W===0?[ne?"font-semibold text-muted":"font-semibold",oe].filter(Boolean).join(" "):[ne||k.value||Z.relation?"text-muted":"",oe].filter(Boolean).join(" ")}function U(Z){return Z.type==="money"?"text-right":""}function S(Z){return["min-w-0 truncate",Z.includes("deleted")?"line-through":"no-underline",Z.includes("negative")?"text-danger":Z.includes("deleted")||Z.includes("disabled")?"text-muted":"text-text"]}const I=_(()=>a.columns.filter(Z=>!Z.invisible)),z=_(()=>Math.max(I.value.length+(a.selectable?1:0)+(a.trailing?1:0),1));function D(Z,W){n("open",W,Z.currentTarget)}const N=["w-3/5","w-2/5","w-1/2","w-3/4","w-1/3","w-2/3","w-1/2","w-2/5"];return(Z,W)=>(p(),g("div",M8,[b("table",{class:ve([k.value?"min-w-[480px]":"min-w-[640px]","w-full border-collapse text-left"])},[b("thead",I8,[b("tr",P8,[e.selectable?(p(),g("th",R8,[b("button",{type:"button",role:"checkbox","aria-checked":f.value,"aria-label":s(h)("backend::lang.list.select_all"),disabled:e.loading||d.value.length===0,class:ve([f.value==="false"?"border-border-strong bg-surface":"border-primary bg-primary text-on-primary","flex size-[18px] items-center justify-center rounded-checkbox border disabled:opacity-60"]),onClick:v},[f.value==="mixed"?(p(),j(s(ib),{key:0,size:14,"aria-hidden":"true"})):f.value==="true"?(p(),j(s(qa),{key:1,size:14,"aria-hidden":"true"})):G("",!0)],10,q8)])):G("",!0),(p(!0),g(me,null,Me(I.value,K=>(p(),g("th",{key:K.key,scope:"col","aria-sort":C(K)?x(K)??"none":void 0,class:ve([[x(K)?"text-text":"text-muted",U(K)],"px-3.5 text-[12px] font-semibold first:pl-5 last:pr-5"])},[C(K)?(p(),g("button",{key:0,type:"button","data-sort":K.key,class:"inline-flex items-center gap-1 font-semibold",onClick:ne=>n("sort",K.key)},[ge($(K.label)+" ",1),x(K)==="ascending"?(p(),j(s(Jg),{key:0,size:14,"aria-hidden":"true"})):x(K)==="descending"?(p(),j(s(Wg),{key:1,size:14,"aria-hidden":"true"})):G("",!0)],8,N8)):(p(),g(me,{key:1},[ge($(K.label),1)],64))],10,L8))),128)),e.trailing?(p(),g("td",B8)):G("",!0)])]),b("tbody",{"aria-busy":e.loading?"true":void 0},[e.loading?(p(!0),g(me,{key:0},Me(B.value,K=>(p(),g("tr",{key:`skeleton-${K}`,"data-skeleton":"",class:ve([E.value,"border-b border-border"])},[e.selectable?(p(),g("td",V8,[...W[0]||(W[0]=[b("span",{class:"block size-[18px] rounded-checkbox bg-skel"},null,-1)])])):G("",!0),(p(!0),g(me,null,Me(I.value,ne=>(p(),g("td",{key:ne.key,class:"px-3.5 first:pl-5 last:pr-5"},[b("span",{class:ve([N[(K-1)%N.length],"block h-3 rounded-[6px] bg-skel"])},null,2)]))),128)),e.trailing?(p(),g("td",z8)):G("",!0)],2))),128)):e.rows.length===0?(p(),g("tr",j8,[b("td",{colspan:z.value,class:"px-5 py-20 text-center"},[ke(Z.$slots,"empty",{},()=>[b("span",H8,$(s(h)("backend::lang.list.no_records")),1)])],8,U8)])):(p(!0),g(me,{key:2},Me(e.rows,(K,ne)=>(p(),g("tr",{key:o(K,ne),class:ve([[E.value,m(K)?"bg-sel":i(K)||e.openable?"hover:bg-hover":"",i(K)||e.openable?"cursor-pointer":""],"border-b border-border transition-colors duration-150 ease-out"]),"aria-selected":e.selectable?m(K)?"true":"false":void 0,"data-row-states":P(K).length>0?P(K).join(" "):void 0,onClick:oe=>u(oe,K)},[e.selectable?(p(),g("td",W8,[b("button",{type:"button",role:"checkbox","aria-checked":m(K)?"true":"false","aria-label":s(h)("backend::lang.list.select_row"),class:ve([m(K)?"border-primary bg-primary text-on-primary":"border-border-strong bg-surface","flex size-[18px] items-center justify-center rounded-checkbox border"]),onClick:oe=>y(K)},[m(K)?(p(),j(s(qa),{key:0,size:14,"aria-hidden":"true"})):G("",!0)],10,G8)])):G("",!0),(p(!0),g(me,null,Me(I.value,(oe,se)=>(p(),g("td",{key:oe.key,class:ve([R(oe,se,P(K)),"px-3.5 first:pl-5 last:pr-5"])},[k.value&&se===0?(p(),g("span",Y8,[b("span",J8,$(O(K[oe.key])),1),e.openable?(p(),g("button",{key:0,type:"button","data-row-open":"",class:"min-w-0 truncate text-left font-semibold text-text",onClick:de=>D(de,K)},[L(El,{column:oe,value:K[oe.key],row:K},null,8,["column","value","row"])],8,Z8)):(p(),j(El,{key:1,column:oe,value:K[oe.key],row:K},null,8,["column","value","row"]))])):se===0&&P(K).length>0?(p(),g("span",X8,[i(K)?(p(),j(s(Ra),{key:0,to:i(K),class:ve(S(P(K)))},{default:F(()=>[L(El,{column:oe,value:K[oe.key],row:K},null,8,["column","value","row"])]),_:2},1032,["to","class"])):(p(),g("span",{key:1,class:ve(S(P(K)))},[L(El,{column:oe,value:K[oe.key],row:K},null,8,["column","value","row"])],2)),L(O8,{states:P(K),labels:e.stateLabels},null,8,["states","labels"])])):se===0&&i(K)?(p(),j(s(Ra),{key:2,to:i(K),class:"text-text no-underline"},{default:F(()=>[L(El,{column:oe,value:K[oe.key],row:K},null,8,["column","value","row"])]),_:2},1032,["to"])):(p(),j(El,{key:3,column:oe,value:K[oe.key],row:K},null,8,["column","value","row"]))],2))),128)),e.trailing?(p(),g("td",Q8,[ke(Z.$slots,"trailing",{row:K})])):G("",!0)],10,K8))),128))],8,F8)],2)]))}}),eI=["aria-label"],tI={key:0,class:"flex flex-col gap-1 text-[13px]"},aI={class:"font-semibold text-muted"},nI=["data-filter","value","onChange"],rI=["value"],lI={key:1,class:"flex flex-col gap-1 text-[13px]"},oI={class:"mb-1 font-semibold text-muted"},sI={class:"flex items-center gap-2"},iI=["data-filter","aria-label","value","onChange"],uI=["data-filter","aria-label","value","onChange"],cI={key:2,class:"flex flex-col gap-1 text-[13px]"},dI={class:"font-semibold text-muted"},fI=["data-filter","value","onChange"],pI=["value"],Co="",ti="h-button rounded-control border border-border-strong bg-surface px-3 text-text",vI=le({__name:"FilterBar",props:{filters:{},values:{},source:{}},emits:["update"],setup(e,{emit:t}){const a=e,n=t;function r(f){if(f.options&&f.options.length>0)return f.options.map(v=>({value:JSON.stringify(v.value),label:v.label}));const m=[];return f.trueValue!==void 0&&m.push({value:JSON.stringify(f.trueValue),label:h("backend::lang.list.column_switch_true")}),f.falseValue!==void 0&&m.push({value:JSON.stringify(f.falseValue),label:h("backend::lang.list.column_switch_false")}),m}const l=A({});async function o(f){const{data:m}=await Re.GET("/{vendor}/{plugin}/{controller}/filters/{scope}/options",{params:{path:{...a.source,scope:f.name}}});l.value={...l.value,[f.name]:m?.data??[]}}xt(()=>{for(const f of a.filters)f.type==="scope"&&o(f)});const i=Va({});function u(){for(const f of a.filters){if(f.type!=="daterange")continue;const[m="",v=""]=(a.values[f.name]??"").split(".."),y=i[f.name];(!y||a.values[f.name]!==void 0||y.from!==""&&y.to!=="")&&(i[f.name]={from:m,to:v})}}Ne(()=>a.values,u,{immediate:!0,deep:!0});function d(f,m,v){const y={...i[f.name]??{from:"",to:""},[m]:v};i[f.name]=y,y.from!==""&&y.to!==""?n("update",f.name,`${y.from}..${y.to}`):(y.from===""&&y.to===""||a.values[f.name]!==void 0)&&n("update",f.name,null)}function c(f,m){n("update",f.name,m===Co?null:m)}return(f,m)=>(p(),g("div",{role:"group","aria-label":s(h)("backend::lang.list.filters"),"data-filter-bar":"",class:"flex flex-wrap items-end gap-4 border-t border-border px-5 py-3.5"},[(p(!0),g(me,null,Me(e.filters,v=>(p(),g(me,{key:v.name},[v.type==="switch"?(p(),g("label",tI,[b("span",aI,$(v.label||v.name),1),b("select",{"data-filter":v.name,value:e.values[v.name]??Co,class:ve(ti),onChange:y=>c(v,y.target.value)},[b("option",{value:Co},$(s(h)("backend::lang.list.filter_all")),1),(p(!0),g(me,null,Me(r(v),y=>(p(),g("option",{key:y.value,value:y.value},$(y.label),9,rI))),128))],40,nI)])):v.type==="daterange"?(p(),g("fieldset",lI,[b("legend",oI,$(v.label||v.name),1),b("div",sI,[b("input",{type:"date","data-filter":`${v.name}-from`,"aria-label":s(h)("backend::lang.list.filter_from"),value:i[v.name]?.from??"",class:ve(ti),onChange:y=>d(v,"from",y.target.value)},null,40,iI),m[0]||(m[0]=b("span",{"aria-hidden":"true"},"–",-1)),b("input",{type:"date","data-filter":`${v.name}-to`,"aria-label":s(h)("backend::lang.list.filter_to"),value:i[v.name]?.to??"",class:ve(ti),onChange:y=>d(v,"to",y.target.value)},null,40,uI)])])):v.type==="scope"?(p(),g("label",cI,[b("span",dI,$(v.label||v.name),1),(p(),g("select",{key:`${v.name}-${l.value[v.name]?.length??-1}`,"data-filter":v.name,value:e.values[v.name]??Co,class:ve(ti),onChange:y=>c(v,y.target.value)},[b("option",{value:Co},$(s(h)("backend::lang.list.filter_all")),1),(p(!0),g(me,null,Me(l.value[v.name]??[],y=>(p(),g("option",{key:y.value,value:y.value},$(y.label),9,pI))),128))],40,fI))])):G("",!0)],64))),128))],8,eI))}}),mI=["type","disabled","data-hotkey","aria-keyshortcuts"],Ue=le({__name:"Button",props:{variant:{default:"outline"},size:{default:"md"},type:{default:"button"},disabled:{type:Boolean,default:!1},icon:{default:void 0},to:{default:void 0},hotkey:{default:void 0}},setup(e){const t=e,a={primary:"bg-primary text-on-primary hover:opacity-90",outline:"border border-border-strong bg-surface text-text hover:bg-hover",ghost:"text-muted hover:bg-hover hover:text-text",danger:"border border-danger bg-surface text-danger hover:bg-danger-soft"},n=_(()=>t.hotkey?ju(t.hotkey):void 0),r=_(()=>["inline-flex shrink-0 items-center justify-center gap-2 rounded-control px-4 font-semibold whitespace-nowrap no-underline transition-colors duration-150 ease-out disabled:cursor-not-allowed disabled:opacity-60",t.size==="sm"?"h-[38px]":"h-button",a[t.variant]]);return(l,o)=>e.to!==void 0?(p(),j(s(Ra),{key:0,to:e.to,class:ve(r.value),"data-hotkey":e.hotkey,"aria-keyshortcuts":n.value},{default:F(()=>[e.icon?(p(),j(Kt(e.icon),{key:0,size:16,"aria-hidden":"true"})):G("",!0),ke(l.$slots,"default")]),_:3},8,["to","class","data-hotkey","aria-keyshortcuts"])):(p(),g("button",{key:1,type:e.type,disabled:e.disabled,class:ve(r.value),"data-hotkey":e.hotkey,"aria-keyshortcuts":n.value},[e.icon?(p(),j(Kt(e.icon),{key:0,size:16,"aria-hidden":"true"})):G("",!0),ke(l.$slots,"default")],10,mI))}}),hI=le({__name:"BulkActionsMenu",props:{actions:{},disabled:{type:Boolean}},emits:["select"],setup(e,{expose:t,emit:a}){const n=a,r=A(null);function l(){const o=r.value?.$el;o instanceof HTMLElement&&o.focus()}return t({focus:l}),(o,i)=>(p(),j(s(j1),{modal:!1},{default:F(()=>[L(s(K1),{"as-child":"",disabled:e.disabled},{default:F(()=>[L(Ue,{ref_key:"trigger",ref:r,variant:"outline",size:"md","data-action":"bulk-actions",disabled:e.disabled},{default:F(()=>[ge($(s(h)("backend::lang.list.bulk_actions"))+" ",1),L(s(yr),{size:16,class:"text-muted","aria-hidden":"true"})]),_:1},8,["disabled"])]),_:1},8,["disabled"]),L(s(H1),null,{default:F(()=>[L(s(U1),{"data-bulk-menu":"",align:"end","side-offset":8,class:"z-50 flex w-[240px] max-w-[320px] flex-col rounded-[14px] border border-border bg-surface p-2 text-text shadow-menu"},{default:F(()=>[(p(!0),g(me,null,Me(e.actions,u=>(p(),j(s(zd),{key:u.name,"data-bulk-action":u.name,class:"flex min-h-10 cursor-pointer items-center rounded-control px-3 py-2 outline-none transition-colors duration-150 ease-out data-[highlighted]:bg-hover",onSelect:d=>n("select",u.name)},{default:F(()=>[ge($(u.label),1)]),_:2},1032,["data-bulk-action","onSelect"]))),128))]),_:1})]),_:1})]),_:1}))}}),yI={class:"flex flex-wrap items-center justify-between gap-3 px-5 py-4"},gI={key:0,class:"relative block w-[320px] max-w-full"},bI={class:"sr-only"},_I=["value","placeholder"],xI={key:1},kI={class:"flex flex-wrap items-center justify-end gap-2.5"},wI={key:0,"data-selected-pill":"",class:"inline-flex h-8 items-center gap-1.5 rounded-pill bg-sel px-3 text-[13px] font-semibold"},$I=le({__name:"ListToolbar",props:{showSearch:{type:Boolean},search:{},searchPrompt:{},buttons:{},selectedCount:{},selectedLabel:{},deleteLabel:{},actions:{default:()=>[]},busyAction:{default:null},bulkActions:{default:()=>[]},bulkBusy:{type:Boolean,default:!1}},emits:["update:search","delete","action","bulk"],setup(e,{expose:t,emit:a}){const n=e,r=a,l=_(()=>new Map(n.actions.map(u=>[u.name,u.label]))),o=A(null);function i(){o.value?.focus()}return t({focusBulk:i}),(u,d)=>(p(),g("div",yI,[e.showSearch?(p(),g("label",gI,[b("span",bI,$(s(h)("backend::lang.list.search")),1),L(s(lo),{size:18,class:"pointer-events-none absolute top-1/2 left-3.5 -translate-y-1/2 text-muted","aria-hidden":"true"}),b("input",{type:"search","data-list-search":"","data-hotkey":"/","aria-keyshortcuts":"/",value:e.search,placeholder:e.searchPrompt,class:"h-button w-full rounded-control border border-transparent bg-subtle pr-3.5 pl-10",onInput:d[0]||(d[0]=c=>r("update:search",c.target.value))},null,40,_I)])):(p(),g("span",xI)),b("div",kI,[e.selectedCount>0?(p(),g("span",wI,[L(s(qa),{size:14,"aria-hidden":"true"}),ge($(e.selectedLabel),1)])):G("",!0),e.bulkActions.length>0?(p(),j(hI,{key:1,ref_key:"bulkMenu",ref:o,actions:e.bulkActions,disabled:e.selectedCount===0||e.bulkBusy,onSelect:d[1]||(d[1]=c=>r("bulk",c))},null,8,["actions","disabled"])):G("",!0),(p(!0),g(me,null,Me(e.buttons,c=>(p(),g(me,{key:c},[c==="delete"?(p(),j(Ue,{key:0,"data-action":"delete",variant:e.selectedCount>0?"danger":"outline",icon:s(Tr),disabled:e.selectedCount===0,onClick:d[2]||(d[2]=f=>r("delete"))},{default:F(()=>[ge($(e.deleteLabel),1)]),_:1},8,["variant","icon","disabled"])):l.value.has(c)?(p(),j(Ue,{key:1,variant:"outline",size:"md","data-action":c,disabled:e.busyAction===c,"aria-busy":e.busyAction===c?"true":void 0,onClick:f=>r("action",c)},{default:F(()=>[ge($(l.value.get(c)),1)]),_:2},1032,["data-action","disabled","aria-busy","onClick"])):G("",!0)],64))),128))])]))}}),CI={class:"flex flex-wrap items-center gap-x-6 gap-y-3 border-t border-border px-5 py-3.5 text-[13px] text-muted"},SI={"data-range":""},EI={key:0,class:"flex items-center gap-2"},AI=["value"],TI=["value"],DI=["aria-label"],OI=["disabled"],MI={key:0,"aria-hidden":"true",class:"px-1"},II=["data-page","aria-current","onClick"],PI=["disabled"],jc="inline-flex h-pager min-w-pager items-center justify-center gap-1 rounded-pager border border-border px-2.5 text-[13px] text-text disabled:cursor-not-allowed disabled:opacity-60 hover:bg-hover",A0=le({__name:"Pagination",props:{meta:{},loading:{type:Boolean},perPageOptions:{},perPage:{}},emits:["page","perPage"],setup(e,{emit:t}){const a=e,n=t,r=_(()=>a.meta?.total??0),l=_(()=>a.meta?.page??1),o=_(()=>Math.max(a.meta?.last_page??1,1)),i=_(()=>{const c=a.meta;if(!c||c.total===0)return rl("backend::lang.list.results",0);const f=(c.page-1)*c.per_page+1,m=Math.min(c.page*c.per_page,c.total);return h("backend::lang.list.pagination_range",{from:f,to:m,total:c.total})}),u=_(()=>{const c=o.value,f=l.value,m=new Set([1,c,f-1,f,f+1].filter(x=>x>=1&&x<=c));f<=3&&[2,3].forEach(x=>x<=c&&m.add(x)),f>=c-2&&[c-1,c-2].forEach(x=>x>=1&&m.add(x));const v=[...m].sort((x,C)=>x-C),y=[];return v.forEach((x,C)=>{const k=v[C-1];k!==void 0&&x-k>1&&y.push(null),y.push(x)}),y});function d(c){const f=Number(c.target.value);Number.isFinite(f)&&f>0&&n("perPage",f)}return(c,f)=>(p(),g("footer",CI,[b("span",SI,$(e.loading?s(h)("backend::lang.list.loading"):i.value),1),e.perPageOptions.length>1?(p(),g("label",EI,[b("span",null,$(s(h)("backend::lang.list.records_per_page")),1),b("select",{"data-per-page":"",value:String(e.perPage),class:"h-pager rounded-pager border border-border-strong bg-surface px-2 text-text",onChange:d},[(p(!0),g(me,null,Me(e.perPageOptions,m=>(p(),g("option",{key:m,value:String(m)},$(m),9,TI))),128))],40,AI)])):G("",!0),!e.loading&&r.value>0?(p(),g("nav",{key:1,"aria-label":s(h)("backend::lang.list.pagination"),class:"ml-auto flex items-center gap-1.5"},[b("button",{type:"button","data-page":"prev",class:ve(jc),disabled:l.value<=1,onClick:f[0]||(f[0]=m=>n("page",l.value-1))},[L(s($u),{size:14,"aria-hidden":"true"}),ge($(s(h)("backend::lang.list.prev_page")),1)],8,OI),(p(!0),g(me,null,Me(u.value,(m,v)=>(p(),g(me,{key:m??`gap-${v}`},[m===null?(p(),g("span",MI,"…")):(p(),g("button",{key:1,type:"button","data-page":m,"aria-current":m===l.value?"page":void 0,class:ve([jc,m===l.value?"border-transparent bg-sel font-bold":""]),onClick:y=>m!==l.value&&n("page",m)},$(m),11,II))],64))),128)),b("button",{type:"button","data-page":"next",class:ve(jc),disabled:l.value>=o.value,onClick:f[1]||(f[1]=m=>n("page",l.value+1))},[ge($(s(h)("backend::lang.list.next_page")),1),L(s(Cs),{size:14,"aria-hidden":"true"})],8,PI)],8,DI)):G("",!0)]))}}),RI={role:"alert","data-extension-failure":"",class:"flex min-h-input items-center rounded-control border-[1.5px] border-dashed border-border-strong bg-subtle px-3.5 py-2.5 text-[13px] text-muted"},qI={class:"flex min-w-0 items-start gap-2.5"},LI={class:"min-w-0 [overflow-wrap:anywhere]"},Uu=le({__name:"ExtensionFailure",props:{text:{}},setup(e){return(t,a)=>(p(),g("div",RI,[b("span",qI,[L(s(ht),{size:16,class:"mt-0.5 shrink-0 text-danger","aria-hidden":"true"}),b("span",LI,$(e.text),1)])]))}}),NI=new Set(["div","span","p","strong","em","b","i","u","s","small","mark","code","pre","br","hr","ul","ol","li","dl","dt","dd","h2","h3","h4","h5","h6","table","thead","tbody","tfoot","tr","th","td","caption","section","header","footer","figure","figcaption","blockquote","q","abbr","time","data","meter","progress","sup","sub","a","img"]),BI=new Set(["script","style","template","iframe","object","embed","noscript","textarea","title","xmp","svg","math","form","input","button","select","link","meta","base"]),FI=32,VI=2e3,zI=new Set(["class","title","lang","dir","role"]),jI={a:new Set(["href"]),img:new Set(["src","alt","width","height"]),td:new Set(["colspan","rowspan","scope"]),th:new Set(["colspan","rowspan","scope"]),time:new Set(["datetime"]),data:new Set(["value"]),meter:new Set(["value","min","max","low","high","optimum"]),progress:new Set(["value","max"])},UI=/^(aria|data)-[a-z0-9_-]+$/;function HI(e,t){if(e==="")return!1;for(const a of e){const n=a.codePointAt(0)??0;if(n<=32||n===127)return!1}return e.startsWith("#")?t:e.startsWith("/")?e.length===1||e[1]!=="/"&&e[1]!=="\\":!1}function KI(e,t,a){return zI.has(t)||jI[e]?.has(t)===!0||UI.test(t)?e==="a"&&t==="href"||e==="img"&&t==="src"?HI(a,e==="a"):!0:!1}function WI(e,t){const a={};for(const[n,r]of Object.entries(t??{})){const l=n.toLowerCase();typeof r=="string"&&KI(e,l,r)&&(a[l]=r)}return a}function Wd(e,t,a){const n=[];for(const r of e??[]){if(a.left<=0)break;if(r.tag===void 0||r.tag===""){typeof r.text=="string"&&r.text!==""&&(a.left-=1,n.push(r.text));continue}const l=r.tag.toLowerCase();if(BI.has(l))continue;if(!NI.has(l)){n.push(...Wd(r.children,t,a));continue}if(t+1>FI)continue;a.left-=1;const o=Wd(r.children,t+1,a);n.push(Ma(l,WI(l,r.attrs),o.length>0?o:void 0))}return n}function GI(e){return Wd(e,0,{left:VI})}const YI={key:1,"data-partial-loading":"","aria-busy":"true"},JI=["data-partial","aria-busy"],bp=le({__name:"PartialHost",props:{source:{},name:{},recordId:{default:null},variant:{},reloadKey:{default:0},hint:{type:Boolean,default:!1}},setup(e){const t=e,a=A(null),n=A(!1),r=A(!1);let l=0;const o=u=>GI(u.nodes);o.props=["nodes"];async function i(){const u=++l;r.value=!0;let d=null;try{d=(await Re.GET("/{vendor}/{plugin}/{controller}/partials/{name}",{params:{path:{...t.source,name:t.name},query:t.recordId!=null?{id:t.recordId}:void 0}})).data?.data.nodes??null}catch{d=null}u===l&&(r.value=!1,n.value=d===null,a.value=d)}return Ne(()=>t.reloadKey,()=>{i()}),i(),(u,d)=>n.value?(p(),j(Uu,{key:0,"data-partial-failed":"",text:s(h)("backend::lang.extension.partial_failed")},null,8,["text"])):a.value===null?(p(),g("div",YI,[b("div",{"data-partial-skeleton":"",class:ve([e.hint?"h-[68px] w-full rounded-inner":e.variant==="header"?"h-[80px] w-full rounded-card":"h-[44px] w-full rounded-control","bg-skel"]),"aria-hidden":"true"},null,2)])):a.value.length>0?(p(),g("div",{key:2,class:"summer-partial","data-partial":e.variant,"aria-busy":r.value?"true":void 0},[L(o,{nodes:a.value},null,8,["nodes"])],8,JI)):G("",!0)}}),ZI={key:0,class:"flex flex-col gap-1.5","data-confirm-prompt":""},XI=["for"],QI=["id","maxlength","placeholder","aria-describedby","disabled","value","onKeydown"],eP=["id"],tP={class:"flex gap-2.5"},aP=["disabled","aria-busy"],qr=le({__name:"ConfirmDialog",props:{open:{type:Boolean},message:{},title:{default:void 0},confirmLabel:{default:void 0},cancelLabel:{default:void 0},danger:{type:Boolean,default:!1},busy:{type:Boolean,default:!1},prompt:{default:null},value:{default:""}},emits:["update:open","update:value","confirm","cancel"],setup(e,{emit:t}){const a=e,n=t,r=`confirm-${Ly()}`,l=A(null),o=_(()=>!!a.prompt&&a.value.trim()==="");function i(c){!c&&a.busy||(n("update:open",c),c||n("cancel"))}function u(){a.busy||o.value||(n("confirm"),n("update:open",!1))}function d(c){n("update:value",c.target.value)}return Ne(()=>a.open&&!!a.prompt,async c=>{c&&(await He(),l.value?.focus())}),(c,f)=>(p(),j(s(z4),{open:e.open,"onUpdate:open":i},{default:F(()=>[L(s(F4),null,{default:F(()=>[L(s(N4),{class:"pointer-events-auto fixed inset-0 z-[80] bg-overlay"}),L(s(M4),{"data-confirm-dialog":"",class:"pointer-events-auto fixed top-1/2 left-1/2 z-[90] flex w-[calc(100%-32px)] max-w-[440px] -translate-x-1/2 -translate-y-1/2 flex-col gap-4 rounded-modal bg-surface p-6 text-text shadow-pop"},{default:F(()=>[L(s(U4),{class:"text-[20px] font-bold tracking-[-0.01em]"},{default:F(()=>[ge($(e.title??s(h)("backend::lang.form.confirm")),1)]),_:1}),L(s(q4),{class:"text-muted [overflow-wrap:anywhere]"},{default:F(()=>[ge($(e.message),1)]),_:1}),e.prompt?(p(),g("div",ZI,[b("label",{for:`${r}-value`,class:"text-[13px] font-semibold"},$(e.prompt.label),9,XI),b("input",{id:`${r}-value`,ref_key:"promptInput",ref:l,type:"text",autocomplete:"off",maxlength:e.prompt.maxLength,placeholder:e.prompt.placeholder,"aria-describedby":e.prompt.comment?`${r}-comment`:void 0,disabled:e.busy,value:e.value,class:"h-control w-full rounded-control border border-border-strong bg-surface px-3 text-text outline-none focus:border-primary disabled:cursor-not-allowed disabled:opacity-60",onInput:d,onKeydown:dn(mt(u,["prevent"]),["enter"])},null,40,QI),e.prompt.comment?(p(),g("p",{key:0,id:`${r}-comment`,class:"text-[13px] text-muted"},$(e.prompt.comment),9,eP)):G("",!0)])):G("",!0),b("div",tP,[L(s(P4),{"data-action":"cancel",disabled:e.busy,class:"inline-flex h-button flex-1 items-center justify-center rounded-control border border-border-strong bg-surface font-semibold hover:bg-hover disabled:cursor-not-allowed disabled:opacity-60"},{default:F(()=>[ge($(e.cancelLabel??s(h)("backend::lang.form.cancel")),1)]),_:1},8,["disabled"]),b("button",{type:"button","data-action":"confirm",disabled:e.busy||o.value,"aria-busy":e.busy?"true":void 0,class:ve([e.danger?"bg-danger text-white":"bg-primary text-on-primary","inline-flex h-button flex-1 items-center justify-center gap-2 rounded-control font-semibold hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-60"]),onClick:mt(u,["prevent"])},[e.busy?(p(),j(s(On),{key:0,size:16,class:"animate-spin","aria-hidden":"true"})):G("",!0),ge(" "+$(e.confirmLabel??s(h)("backend::lang.form.confirm")),1)],10,aP)])]),_:1})]),_:1})]),_:1},8,["open"]))}});function Lr(){const e=A(null),t=A(!1),a=A("");let n=null,r=null;function l(c){const f=n;n=null,r=null,e.value=null,f?.(c)}function o(c,f){return l(!1),a.value="",e.value=c,r=f??null,new Promise(m=>{n=m})}async function i(){if(t.value||e.value?.prompt&&a.value.trim()==="")return;const c=r;if(c){t.value=!0;try{await c()}finally{t.value=!1}}l(!0)}function u(){t.value||l(!1)}function d(c){a.value=c}return{request:e,busy:t,value:a,ask:o,confirm:i,cancel:u,setValue:d}}const nP={class:"flex flex-col gap-5"},rP={class:"flex flex-wrap items-end justify-between gap-4"},lP={class:"flex flex-col"},oP={class:"text-[26px] font-bold tracking-[-0.02em]"},sP={key:0,"data-record-count":"",class:"text-muted"},iP={key:0,class:"flex items-center gap-2.5"},uP={class:"overflow-hidden rounded-card border border-border bg-surface shadow-card"},cP={key:2,"data-list-failed":"",class:"flex flex-wrap items-center justify-between gap-3 border-t border-border px-5 py-4"},dP={role:"alert",class:"text-danger"},fP={key:0,"data-empty-search":"",class:"flex flex-col items-center gap-3"},pP={class:"flex size-14 items-center justify-center rounded-full bg-subtle text-muted"},vP={class:"text-[17px] font-bold"},mP={class:"max-w-[420px] text-muted"},hP={key:1,"data-empty-list":"",class:"text-muted"},yP=300,gP=le({__name:"ListView",setup(e){const t=ha(),a=hn(),n={vendor:String(t.params.vendor??""),plugin:String(t.params.plugin??""),controller:String(t.params.controller??"")},r=ks(n),l=Ha(r)??"/",o=A(null),i=A([]),u=A(null),d=A(!0),c=A(!1),f=A(!1),m=_(()=>c.value||f.value),v=A([]),y=A(!1),x=A(0),C=Lr(),k=_(()=>Z1(t.query)),E=A(k.value.search??""),B=_(()=>o.value?.messages),O=_(()=>o.value?.title?o.value.title:ws(n.vendor,n.plugin)?.sideMenu.find($e=>$e.controller===r)?.label??r),T=_(()=>u.value?Ze(B.value?.recordCount,u.value.total):""),P=_(()=>o.value?.toolbarButtons??[]),R=_(()=>P.value.filter(fe=>fe==="create")),U=_(()=>{const fe=o.value?.reorder;if(!fe)return null;const $e=fe.partition?.column,xe=$e?o.value?.filters.find(Fe=>Fe.column===$e||Fe.name===$e):void 0,Le=xe?k.value.filter?.[xe.name]:void 0;return{path:`${l}/reorder`,query:Le!==void 0&&Le!==""?{partition:String(Le)}:{}}}),S=_(()=>o.value?.toolbarActions??[]),I=_(()=>P.value.filter(fe=>fe==="delete"||S.value.some($e=>$e.name===fe))),z=A(null),D=_(()=>u.value?.row_states??{}),N=_(()=>({deleted:Ze(B.value?.rowStateDeleted),negative:Ze(B.value?.rowStateNegative),disabled:Ze(B.value?.rowStateDisabled),customized:Ze(B.value?.rowStateCustomized),outdated:Ze(B.value?.rowStateOutdated)})),Z=_(()=>(o.value?.bulkActions??[]).filter(fe=>fe.name!=="delete")),W=A(!1),K=A(null),ne=_(()=>{const fe=o.value?.perPageOptions??[];return fe.length>0?fe:[o.value?.recordsPerPage||20]}),oe=_(()=>k.value.per_page??u.value?.per_page??o.value?.recordsPerPage??20),se=_(()=>k.value.sort?{column:k.value.sort,dir:k.value.dir==="desc"?"desc":"asc"}:null);function de(fe){const $e=o.value?.recordUrl,xe=fe.id;return!$e||typeof xe!="number"&&typeof xe!="string"?null:C0($e,r,xe)}function ue(fe){Qs(r,fe),a.replace({path:t.path,query:Xi(fe)})}const te=Ll({}),ye=_(()=>Ll(k.value)!==te);let H=0,we=null;function _e(){ue({})}async function Y(fe=!1){const $e=++H;d.value=!0,f.value=!1;let xe=null;try{xe=await J()}catch{xe=null}if($e!==H)return;if(!xe?.data&&fe){Qs(r,{}),a.replace({path:t.path,query:{}});return}if(!xe?.data&&xe?.response?.status===404&&await he($e))return;if(i.value=xe?.data?.data??[],u.value=xe?.data?.meta??null,f.value=!xe?.data,d.value=!1,xe?.response?.status===422){Qs(r,{});return}const Le=u.value?.last_page??0;Le>=1&&(u.value?.page??0)>Le&&ue({...k.value,page:Le})}async function he(fe){try{const{data:$e}=await Re.GET("/{vendor}/{plugin}/{controller}/singleton",{params:{path:n}});return fe!==H?!0:$e?(await a.replace(`${l}/${$e.data.id}`),!0):!1}catch{return!1}}function J(){return Re.GET("/{vendor}/{plugin}/{controller}",{params:{path:n,query:k.value}})}async function Q(){const fe=await Re.GET("/{vendor}/{plugin}/{controller}/schema/list",{params:{path:n}});o.value=fe.data?.data??null,c.value=!o.value,o.value&&gp(r,o.value.assets)}Q(),Ne(()=>Ll(k.value),fe=>{if(fe===te){const xe=t6(r),Le=Ll(xe);if(Le!==te){we=Le,a.replace({path:t.path,query:Xi(xe)});return}}const $e=we!==null&&we===fe;we=null,Qs(r,k.value),v.value=[],E.value=k.value.search??"",Y($e)},{immediate:!0});let ae=null;function w(fe){E.value=fe,ae!==null&&clearTimeout(ae),ae=setTimeout(()=>{ae=null;const $e=fe.trim();ue({...k.value,search:$e===""?void 0:$e,page:void 0})},yP)}Et(()=>{ae!==null&&clearTimeout(ae)});function M(){E.value="",ue({...k.value,search:void 0,page:void 0})}function q(fe){const $e=se.value;$e?.column!==fe?ue({...k.value,sort:fe,dir:"asc",page:void 0}):$e.dir==="asc"?ue({...k.value,sort:fe,dir:"desc",page:void 0}):ue({...k.value,sort:void 0,dir:void 0,page:void 0})}function ie(fe){ue({...k.value,page:fe})}function ee(fe){ue({...k.value,per_page:fe,page:void 0})}function pe(fe,$e){const xe={...k.value.filter??{}};$e===null?delete xe[fe]:xe[fe]=$e,ue({...k.value,filter:xe,page:void 0})}async function Ee(){const fe=v.value.map(Number).filter(xe=>Number.isInteger(xe)&&xe>0);if(!(fe.length===0||y.value||!await C.ask({message:Ze(B.value?.deleteConfirm,fe.length),confirmLabel:h("backend::lang.form.delete"),danger:!0}))){y.value=!0;try{const xe=await Re.POST("/{vendor}/{plugin}/{controller}/bulk-delete",{params:{path:n},body:{ids:fe}});if(xe.data){Ie(Ze(B.value?.deleted,xe.data.data.deleted)),v.value=[],await Y(),x.value+=1;return}Ie(xe.error?.error.message||h("backend::lang.list.delete_failed"),"danger")}catch{Ie(h("backend::lang.list.delete_failed"),"danger")}finally{y.value=!1}}}async function Se(fe){const $e=Z.value.find(rt=>rt.name===fe),xe=v.value.map(Number).filter(rt=>Number.isInteger(rt)&&rt>0);if(!$e||xe.length===0||W.value)return;const Le=$e.label??fe;let Fe=0,Ke=null,tt="";const et=await C.ask({message:$e.confirm||rl("backend::lang.list.bulk_confirm",xe.length,{action:Le}),confirmLabel:Le,danger:!1},async()=>{W.value=!0;try{const rt=await Re.POST("/{vendor}/{plugin}/{controller}/bulk/{action}",{params:{path:{...n,action:fe}},body:{ids:xe}});Fe=rt.response.status,Ke=rt.data?.data??null,tt=rt.error?.error.message??""}catch{Fe=0}finally{W.value=!1}});if(await new Promise(rt=>setTimeout(rt,0)),K.value?.focusBulk(),!et)return;const ot=Ke;if(ot){Ie(ot.message||rl("backend::lang.list.bulk_done",ot.affected)),v.value=[],await Y(),x.value+=1;return}if(Fe===409){Ie(h("backend::lang.list.bulk_stale"),"danger"),v.value=[],await Y();return}if(Fe===403){Ie(tt||h("backend::lang.list.action_forbidden"),"danger");return}Ie(tt||h("backend::lang.extension.action_failed"),"danger")}async function Te(fe){if(z.value===null){z.value=fe;try{const $e=await Re.POST("/{vendor}/{plugin}/{controller}/toolbar/{action}",{params:{path:{...n,action:fe}},body:{}});if($e.data){$e.data.data.message&&Ie($e.data.data.message),await Y(),x.value+=1;return}Ie($e.error?.error.message||h("backend::lang.extension.action_failed"),"danger")}catch{Ie(h("backend::lang.extension.action_failed"),"danger")}finally{z.value=null}}}return(fe,$e)=>(p(),g("section",nP,[b("header",rP,[b("div",lP,[b("h1",oP,$(O.value),1),T.value?(p(),g("p",sP,$(T.value),1)):G("",!0)]),R.value.length>0||U.value?(p(),g("div",iP,[U.value?(p(),j(Ue,{key:0,"data-action":"reorder",variant:"outline",icon:s(Gg),to:U.value},{default:F(()=>[ge($(s(h)("backend::lang.messages.list.reorder")),1)]),_:1},8,["icon","to"])):G("",!0),(p(!0),g(me,null,Me(R.value,xe=>(p(),j(Ue,{key:xe,"data-action":"create",variant:"primary",icon:s(Ss),to:`${s(l)}/create`},{default:F(()=>[ge($(s(Ze)(B.value?.create)),1)]),_:1},8,["icon","to"]))),128))])):G("",!0)]),o.value?.headerPartial?(p(),j(bp,{key:0,variant:"header",source:n,name:o.value.headerPartial,"reload-key":x.value},null,8,["name","reload-key"])):G("",!0),b("div",uP,[o.value?(p(),j($I,{key:0,ref_key:"toolbar",ref:K,"show-search":o.value.showSearch,search:E.value,"search-prompt":s(Ze)(B.value?.searchPrompt),buttons:I.value,"selected-count":v.value.length,"selected-label":s(Ze)(B.value?.selected,v.value.length),"delete-label":s(Ze)(B.value?.deleteSelected,v.value.length),actions:S.value,"busy-action":z.value,"bulk-actions":Z.value,"bulk-busy":W.value,"onUpdate:search":w,onDelete:Ee,onAction:Te,onBulk:Se},null,8,["show-search","search","search-prompt","buttons","selected-count","selected-label","delete-label","actions","busy-action","bulk-actions","bulk-busy"])):G("",!0),o.value&&o.value.filters.length>0?(p(),j(vI,{key:1,filters:o.value.filters,values:k.value.filter??{},source:n,onUpdate:pe},null,8,["filters","values"])):G("",!0),m.value&&!d.value?(p(),g("div",cP,[b("p",dP,$(s(h)("backend::lang.list.load_failed")),1),f.value&&ye.value?(p(),j(Ue,{key:0,"data-action":"reset-list",onClick:_e},{default:F(()=>[ge($(s(h)("backend::lang.list.reset_list")),1)]),_:1})):G("",!0)])):(p(),j(E0,{key:3,columns:o.value?.columns??[],rows:i.value,loading:d.value||!o.value,"row-link":de,selectable:o.value?.showCheckboxes??!1,selected:v.value,sortable:o.value?.showSorting??!1,sort:se.value,"row-states":D.value,"state-labels":N.value,"onUpdate:selected":$e[0]||($e[0]=xe=>v.value=xe),onSort:q},{empty:F(()=>[k.value.search?(p(),g("div",fP,[b("span",pP,[L(s(db),{size:24,"aria-hidden":"true"})]),b("p",vP,$(s(Ze)(B.value?.emptySearch,void 0,{term:k.value.search})),1),b("p",mP,$(s(Ze)(B.value?.emptySearchHint,void 0,{term:k.value.search})),1),L(Ue,{"data-action":"clear-search",onClick:M},{default:F(()=>[ge($(s(h)("backend::lang.list.clear_search")),1)]),_:1})])):(p(),g("p",hP,$(s(Ze)(B.value?.empty)||o.value?.noRecordsMessage||s(h)("backend::lang.list.no_records")),1))]),_:1},8,["columns","rows","loading","selectable","selected","sortable","sort","row-states","state-labels"])),L(A0,{meta:u.value,loading:d.value||!o.value,"per-page-options":ne.value,"per-page":oe.value,onPage:ie,onPerPage:ee},null,8,["meta","loading","per-page-options","per-page"])]),L(qr,{open:s(C).request.value!==null,message:s(C).request.value?.message??"","confirm-label":s(C).request.value?.confirmLabel,danger:s(C).request.value?.danger,busy:s(C).busy.value,onConfirm:s(C).confirm,onCancel:s(C).cancel},null,8,["open","message","confirm-label","danger","busy","onConfirm","onCancel"])]))}}),$r="X-Session-Key",T0="X-Child-Session-Key",bP=32;function ms(){const e=new Uint8Array(bP);globalThis.crypto.getRandomValues(e);let t="";for(const a of e)t+=String.fromCharCode(a);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}const _P="X-Upload-Id";async function fr(e){try{const t=await e();return{data:t.data?t.data.data:null,status:t.response.status,error:t.error?.error??null}}catch{return{data:null,status:0,error:null}}}async function Qi(e){try{const t=await e();return t.response.ok&&t.data instanceof Blob?t.data:null}catch{return null}}function Dn(e){return encodeURIComponent(String(e))}function D0(e){return`${cl.api}/${Dn(e.vendor)}/${Dn(e.plugin)}/${Dn(e.controller)}`}function xP(e){try{return e===""?null:JSON.parse(e)}catch{return null}}function _p(e){if(!e)return"";for(const t of Object.values(e.details??{})){const a=Array.isArray(t)?t.find(n=>typeof n=="string"&&n!==""):t;if(typeof a=="string"&&a!=="")return a}return e.message??""}function kP(e,t){const a=t;if((e===200||e===201)&&a?.data)return{ok:!0,item:a.data};const n=_p(a?.error);return e===413?{ok:!1,reason:"too_large",status:e,message:n}:e===422?{ok:!1,reason:"invalid",status:e,message:n}:e===0?{ok:!1,reason:"network",status:e,message:n}:{ok:!1,reason:"failed",status:e,message:n}}function O0(e,t,a,n,r){let l=null,o=!1;const i=()=>new Promise(d=>{const c=new XMLHttpRequest;l=c,c.open("POST",e),c.setRequestHeader("X-Requested-With",Fg),c.setRequestHeader("Accept","application/json");for(const[m,v]of Object.entries(a))c.setRequestHeader(m,v);r&&c.setRequestHeader(_P,r),c.upload.onprogress=m=>{m.lengthComputable&&n?.(m.loaded,m.total)},c.onload=()=>d({status:c.status,body:xP(c.responseText)}),c.onerror=()=>d("network"),c.ontimeout=()=>d("network"),c.onabort=()=>d("aborted");const f=new FormData;f.append("file_data",t,t.name),c.send(f)});return{promise:(async()=>{let d=await i();return typeof d=="object"&&d.status===401&&!o&&(await hf()&&(d=o?"aborted":await i()),typeof d=="object"&&d.status===401&&k2()),d==="aborted"||o?{ok:!1,reason:"aborted",status:0,message:""}:d==="network"?{ok:!1,reason:"network",status:0,message:""}:kP(d.status,d.body)})(),abort(){o=!0,l?.abort()}}}function M0(e,t,a,n){const r={...e,id:t,field:a},l={[$r]:n},o=`${D0(e)}/${Dn(t)}/files/${Dn(a)}`;return{list:()=>fr(()=>Re.GET("/{vendor}/{plugin}/{controller}/{id}/files/{field}",{params:{path:r,header:l}})),upload:(i,u,d)=>O0(o,i,{...l},u,d),update:(i,u)=>fr(()=>Re.PUT("/{vendor}/{plugin}/{controller}/{id}/files/{field}/{file}",{params:{path:{...r,file:i},header:l},body:u})),remove:i=>fr(()=>Re.DELETE("/{vendor}/{plugin}/{controller}/{id}/files/{field}/{file}",{params:{path:{...r,file:i},header:l}})),reorder:i=>fr(()=>Re.POST("/{vendor}/{plugin}/{controller}/{id}/files/{field}/reorder",{params:{path:r,header:l},body:{ids:i}})),download:i=>Qi(()=>Re.GET("/{vendor}/{plugin}/{controller}/{id}/files/{field}/{file}/download",{params:{path:{...r,file:i},header:l},parseAs:"blob"})),thumb:i=>Qi(()=>Re.GET("/{vendor}/{plugin}/{controller}/{id}/files/{field}/{file}/thumb",{params:{path:{...r,file:i},header:l},parseAs:"blob"}))}}function wP(e,t,a,n,r,l,o){const i={...e,id:t,name:a,child:n,field:r},u={[$r]:l,[T0]:o},d=`${D0(e)}/${Dn(t)}/relations/${Dn(a)}/records/${Dn(n)}/files/${Dn(r)}`;return{list:()=>fr(()=>Re.GET("/{vendor}/{plugin}/{controller}/{id}/relations/{name}/records/{child}/files/{field}",{params:{path:i,header:u}})),upload:(c,f,m)=>O0(d,c,{...u},f,m),update:(c,f)=>fr(()=>Re.PUT("/{vendor}/{plugin}/{controller}/{id}/relations/{name}/records/{child}/files/{field}/{file}",{params:{path:{...i,file:c},header:u},body:f})),remove:c=>fr(()=>Re.DELETE("/{vendor}/{plugin}/{controller}/{id}/relations/{name}/records/{child}/files/{field}/{file}",{params:{path:{...i,file:c},header:u}})),reorder:c=>fr(()=>Re.POST("/{vendor}/{plugin}/{controller}/{id}/relations/{name}/records/{child}/files/{field}/reorder",{params:{path:i,header:u},body:{ids:c}})),download:c=>Qi(()=>Re.GET("/{vendor}/{plugin}/{controller}/{id}/relations/{name}/records/{child}/files/{field}/{file}/download",{params:{path:{...i,file:c},header:u},parseAs:"blob"})),thumb:c=>Qi(()=>Re.GET("/{vendor}/{plugin}/{controller}/{id}/relations/{name}/records/{child}/files/{field}/{file}/thumb",{params:{path:{...i,file:c},header:u},parseAs:"blob"}))}}const $P=new Set(["readonly","placeholder","maxlength","minlength","min","max","step","autocomplete","spellcheck","pattern"]);function Nr(e){const t={};for(const[a,n]of Object.entries(e.attributes??{})){const r=a.toLowerCase();!$P.has(r)||n===null||n===!1||(t[r]=n)}return t}function Lt(e){return["w-full rounded-control border bg-surface px-3.5 text-text transition-colors duration-150 ease-out",e?"border-danger":"border-border-strong"].join(" ")}function Hu(e){return typeof e=="string"?e!==""&&e!=="0"&&e.toLowerCase()!=="false":!!e}function I0(e,t){return typeof e=="number"?t?1:0:t}function P0(e,t,a){const n={};if(t===null||typeof t!="object"||Array.isArray(t))return n;const r=t;for(const l of e.permissionOptions??[]){if(a?.has(l.code))continue;const o=Number(r[l.code]);(o===1||e.mode==="radio"&&o===-1)&&(n[l.code]=o)}return n}const CP=new Set(["mltext","mltextarea","mlmarkdown"]);function SP(e){return e!==void 0&&CP.has(e)}function Cr(e){return e?SP(e.type)||!!e.element&&e.translatable===!0:!1}const hs="summer:ml-locale";function EP(e){typeof window>"u"||e===""||window.dispatchEvent(new CustomEvent(hs,{detail:e}))}function un(e){const t={};if(e===null||typeof e!="object"||Array.isArray(e))return t;for(const[a,n]of Object.entries(e))typeof n=="string"&&(t[a]=n);return t}const AP={class:"flex min-w-0 flex-col"},TP=["for"],DP={key:0,class:"text-danger","aria-hidden":"true"},OP=["id"],MP=["id","name","checked","aria-invalid","aria-describedby"],IP=le({__name:"CheckboxField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const a=e,n=t,r=_(()=>Hu(a.modelValue));function l(o){n("update:modelValue",I0(a.modelValue,o.target.checked))}return(o,i)=>(p(),g("div",{class:ve([e.invalid?"border-danger":"border-border","flex items-center justify-between gap-4 rounded-inner border px-4 py-3.5"]),"data-toggle-card":""},[b("div",AP,[b("label",{for:e.controlId,class:"font-semibold"},[ge($(e.field.label||e.field.name),1),e.field.required?(p(),g("span",DP," *")):G("",!0)],8,TP),e.field.comment?(p(),g("p",{key:0,id:`${e.controlId}-comment`,class:"text-[13px] text-muted"},$(e.field.comment),9,OP)):G("",!0)]),b("input",{id:e.controlId,type:"checkbox",name:e.field.name,checked:r.value,"aria-invalid":e.invalid?"true":void 0,"aria-describedby":e.describedBy||void 0,class:"size-5 shrink-0 rounded-[6px] accent-primary",onChange:l},null,40,MP)],2))}});function PP(e){return e==="date"||e==="time"?e:"datetime"}function fa(e,t=2){return String(e).padStart(t,"0")}const RP=/(Z|[+-]\d{2}:?\d{2})$/i;function qP(e,t,a=!1){if(typeof t!="string"||t.trim()==="")return null;const n=t.trim();try{if(e==="date")return jb(n.slice(0,10));if(e==="time"){const l=/(\d{2}:\d{2}(:\d{2})?)/.exec(n.includes("T")?n.slice(n.indexOf("T")):n);return l?lA(l[1]):null}const r=RP.test(n)?n.replace(" ","T"):`${n.replace(" ","T")}Z`;return a?fn(gm(r,"UTC")):gm(r,Ga())}catch{return null}}function Uc(e){return`${fa(e.year,4)}-${fa(e.month)}-${fa(e.day)}`}function Hc(e){return`${fa(e.hour)}:${fa(e.minute)}:${fa(e.second)}`}function mh(e,t,a=!1){if(!t)return null;if(e==="time")return"hour"in t?Hc(t):null;if(!("year"in t))return null;if(e==="date")return Uc(t);if(a){const l=t instanceof Bn?fn(t):t,o="hour"in l?Hc(l):"00:00:00";return`${Uc(l)}T${o}Z`}const n=t instanceof Bn?t:Rf(t instanceof _t?fn(t):t,Ga()),r=Tu(n,"UTC");return`${Uc(r)}T${Hc(r)}Z`}const LP={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm",time:"HH:mm"},NP=/\[([^\]]*)\]|YYYY|YY|MMMM|MMM|MM|M|dddd|ddd|DD|D|HH|H|hh|h|mm|ss|A|a/g;function BP(e){return"year"in e?new _t(e.year,e.month,e.day):null}function Kc(e,t,a,n){return new Na(e,{...a,timeZone:"UTC"}).formatToParts(t.toDate("UTC")).find(l=>l.type===n)?.value??""}function FP(e,t,a,n){if(!e)return"";const r=a||LP[t],l=BP(e),o="hour"in e?e:null,i=/D/.test(r.replace(/\[[^\]]*\]/g,""));return r.replace(NP,(u,d)=>{if(d!==void 0)return d;switch(u){case"YYYY":return l?fa(l.year,4):"";case"YY":return l?fa(l.year%100):"";case"MMMM":case"MMM":{if(!l)return"";const c=u==="MMMM"?"long":"short";return i?Kc(n,l,{day:"numeric",month:c},"month"):Kc(n,l,{month:c},"month")}case"MM":return l?fa(l.month):"";case"M":return l?String(l.month):"";case"dddd":case"ddd":return l?Kc(n,l,{weekday:u==="dddd"?"long":"short"},"weekday"):"";case"DD":return l?fa(l.day):"";case"D":return l?String(l.day):"";case"HH":return o?fa(o.hour):"";case"H":return o?String(o.hour):"";case"hh":return o?fa(o.hour%12||12):"";case"h":return o?String(o.hour%12||12):"";case"mm":return o?fa(o.minute):"";case"ss":return o?fa(o.second):"";case"A":return o?o.hour<12?"AM":"PM":"";case"a":return o?o.hour<12?"am":"pm":"";default:return u}})}const VP=new _t(2026,10,4);function zP(e,t){if(typeof t=="number"&&Number.isInteger(t)&&t>=0&&t<=6)return t;try{return(7-Au(VP,e))%7}catch{return 1}}function hh(e){if(e)try{return jb(e.slice(0,10))}catch{return}}function jP(e,t=Ds(Ga())){const a=hh(e.minDate),n=hh(e.maxDate);if(a||n)return{min:a,max:n};const r=e.yearRange??[];return r.length===1&&typeof r[0]=="number"?{min:new _t(t.year-r[0],1,1),max:new _t(t.year+r[0],12,31)}:r.length===2&&typeof r[0]=="number"&&typeof r[1]=="number"?{min:new _t(r[0],1,1),max:new _t(r[1],12,31)}:{}}function Gd(e,t,a,n){if(!e||t==="time")return;if(t==="date")return e;const r=new br(e.year,e.month,e.day,n?23:0,n?59:0,n?59:0);return a?r:Tu(Rf(r,"UTC"),Ga())}function UP(e,t){const a=Ds(Ga());return Gd(a,e==="time"?"datetime":e,t,!1)??a}const HP=["id","aria-describedby"],KP={key:0},WP={key:1,class:"text-muted","data-empty":""},GP=["aria-label"],YP={class:"flex size-8 shrink-0 items-center justify-center text-muted","aria-hidden":"true"},JP=["data-mode"],ZP=["aria-label"],XP={key:0,"data-datepicker-time":"",class:"mt-3 flex items-center gap-2 border-t border-border pt-3"},So="flex size-8 shrink-0 items-center justify-center rounded-pager text-muted transition-colors duration-150 ease-out hover:bg-hover hover:text-text",QP=le({__name:"DatepickerField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const a=e,n=t,r=_(()=>PP(a.field.mode)),l=_(()=>r.value==="datetime"&&!!a.field.ignoreTimezone),o=_(()=>Ka.value||"pl"),i=_(()=>{const te=a.field.attributes?.readonly;return!!a.field.readOnly||te!=null&&te!==!1}),u=_(()=>qP(r.value,a.modelValue,l.value)),d=_(()=>r.value==="time"?null:u.value),c=_(()=>r.value==="time"?u.value:null),f=_(()=>jP(a.field)),m=_(()=>Gd(f.value.min,r.value,l.value,!1)),v=_(()=>Gd(f.value.max,r.value,l.value,!0)),y=UP(r.value,l.value),x=_(()=>zP(o.value,a.field.firstDay)),C=_(()=>a.field.twelveHour?12:24),k=_(()=>r.value==="date"?"day":"minute"),E=_(()=>FP(u.value,r.value,a.field.displayFormat,o.value)),B=_(()=>!a.field.required&&u.value!==null&&!i.value),O=_(()=>{const te=d.value;return te?!!m.value&&te.compare(m.value)<0||!!v.value&&te.compare(v.value)>0:!1}),T=new Set(["day","month","year","hour","minute","second"]),P=A(null),R=A(!1);function U(){const te=P.value;if(!te){R.value=!1;return}const ye=Array.from(te.querySelectorAll("[data-reka-date-field-segment], [data-reka-time-field-segment]")).filter(we=>T.has(we.dataset.rekaDateFieldSegment??we.dataset.rekaTimeFieldSegment??"")),H=ye.filter(we=>!we.hasAttribute("data-placeholder")).length;R.value=H>0&&H!!a.invalid||O.value||R.value),z=_(()=>mh(r.value,u.value,l.value));function D(te){const ye=mh(r.value,te??null,l.value);S(),!(ye===z.value&&(ye!==null||a.modelValue===null))&&n("update:modelValue",ye)}function N(te){if(!te||r.value!=="datetime"){D(te);return}const ye=d.value,H=K.value,we=!ye||ye.year!==te.year||ye.month!==te.month||ye.day!==te.day,_e=!("hour"in te)||te.hour!==H.hour||te.minute!==H.minute;we&&_e&&(te=ne(te,H)),W.value=te,D(te)}function Z(){n("update:modelValue",null),S()}const W=A(null);Ne(d,te=>{W.value=te},{immediate:!0});const K=_(()=>{const te=W.value??d.value;return te&&"hour"in te?new on(te.hour,te.minute):new on(0,0)});function ne(te,ye){return"hour"in te?te.set({hour:ye.hour,minute:ye.minute,second:0,millisecond:0}):new br(te.year,te.month,te.day,ye.hour,ye.minute)}function oe(te){if(!te)return;const ye=te instanceof on?te:new on(te.hour,te.minute),H=W.value??d.value??y,we=ne(H,ye);W.value=we,D(we)}function se(te){return te.charAt(0).toLocaleUpperCase(o.value)+te.slice(1)}const de=_(()=>[Lt(I.value),"h-input flex min-w-0 items-center gap-1 pl-3.5 pr-1.5","focus-within:border-primary focus-within:shadow-[0_0_0_3px_var(--c-ring)]","has-[[data-invalid]]:border-danger"]);function ue(te){return te==="literal"?"text-muted":te==="timeZoneName"?"ml-2 min-w-0 truncate text-[13px] text-muted":"rounded-[4px] px-0.5 tabular-nums outline-none focus:bg-sel focus:text-text focus-visible:outline-none data-[placeholder]:text-placeholder focus:data-[placeholder]:text-text"}return(te,ye)=>i.value?(p(),g("p",{key:0,id:e.controlId,"data-datepicker-readonly":"","aria-describedby":e.describedBy||void 0,class:"flex min-h-input items-center rounded-control border border-border bg-subtle px-3.5 tabular-nums"},[E.value!==""?(p(),g("span",KP,$(E.value),1)):(p(),g("span",WP,"—"))],8,HP)):r.value==="time"?(p(),g("div",{key:1,ref_key:"container",ref:P,"data-datepicker":"","data-mode":"time",class:ve(de.value),onKeyup:S,onFocusout:S},[L(s(rh),{id:e.controlId,"model-value":c.value,locale:o.value,"hour-cycle":C.value,granularity:"minute",name:e.field.name,required:e.field.required||void 0,"aria-invalid":I.value?"true":void 0,"aria-describedby":e.describedBy||void 0,class:"flex min-w-0 flex-1 items-center","onUpdate:modelValue":D},{default:F(({segments:H})=>[(p(!0),g(me,null,Me(H,we=>(p(),j(s(lh),{key:we.part,part:we.part,class:ve(ue(we.part))},{default:F(()=>[ge($(we.value),1)]),_:2},1032,["part","class"]))),128))]),_:1},8,["id","model-value","locale","hour-cycle","name","required","aria-invalid","aria-describedby"]),B.value?(p(),g("button",{key:0,type:"button","data-action":"clear","aria-label":s(h)("backend::lang.datepicker.clear"),class:ve(So),onClick:Z},[L(s(Xt),{size:16,"aria-hidden":"true"})],8,GP)):G("",!0),b("span",YP,[L(s(Li),{size:16})])],34)):(p(),j(s(hO),{key:2,id:e.controlId,"model-value":d.value,"default-placeholder":d.value??s(y),locale:o.value,granularity:k.value,"hour-cycle":C.value,"hide-time-zone":r.value!=="datetime"||l.value,"min-value":m.value,"max-value":v.value,"week-starts-on":x.value,name:e.field.name,required:e.field.required||void 0,"close-on-select":r.value==="date","prevent-deselect":"","onUpdate:modelValue":N},{default:F(()=>[b("div",{ref_key:"container",ref:P,"data-datepicker":"","data-mode":r.value,class:ve(de.value),onKeyup:S,onFocusout:S},[L(s(IO),{"aria-invalid":I.value?"true":void 0,"aria-describedby":e.describedBy||void 0,class:"flex min-w-0 flex-1 items-center overflow-hidden"},{default:F(({segments:H})=>[(p(!0),g(me,null,Me(H,we=>(p(),j(s(GO),{key:we.part,part:we.part,class:ve(ue(we.part))},{default:F(()=>[ge($(we.value),1)]),_:2},1032,["part","class"]))),128))]),_:1},8,["aria-invalid","aria-describedby"]),B.value?(p(),g("button",{key:0,type:"button","data-action":"clear","aria-label":s(h)("backend::lang.datepicker.clear"),class:ve(So),onClick:Z},[L(s(Xt),{size:16,"aria-hidden":"true"})],8,ZP)):G("",!0),L(s(aM),{"data-action":"open-calendar","aria-label":s(h)("backend::lang.datepicker.open_calendar"),class:ve(So)},{default:F(()=>[L(s(Xg),{size:16,"aria-hidden":"true"})]),_:1},8,["aria-label"])],42,JP),L(s(OO),{"data-datepicker-calendar":"","side-offset":4,align:"end",class:"z-50 w-[284px] rounded-inner border border-border bg-surface p-4 text-text shadow-menu"},{default:F(()=>[L(s(gO),null,{default:F(({weekDays:H,grid:we})=>[L(s(UO),{class:"flex h-9 items-center justify-between"},{default:F(()=>[L(s(XO),{"aria-label":s(h)("backend::lang.datepicker.prev_month"),class:ve(So)},{default:F(()=>[L(s($u),{size:16,"aria-hidden":"true"})]),_:1},8,["aria-label"]),L(s(KO),{class:"font-semibold"},{default:F(({headingValue:_e})=>[ge($(se(_e)),1)]),_:1}),L(s(JO),{"aria-label":s(h)("backend::lang.datepicker.next_month"),class:ve(So)},{default:F(()=>[L(s(Cs),{size:16,"aria-hidden":"true"})]),_:1},8,["aria-label"])]),_:1}),(p(!0),g(me,null,Me(we,_e=>(p(),j(s(RO),{key:_e.value.toString(),class:"mt-2 w-full border-collapse select-none"},{default:F(()=>[L(s(BO),null,{default:F(()=>[L(s(eh),{class:"flex"},{default:F(()=>[(p(!0),g(me,null,Me(H,Y=>(p(),j(s(zO),{key:Y,class:"flex h-9 w-9 items-center justify-center text-[13px] font-normal text-muted"},{default:F(()=>[ge($(Y),1)]),_:2},1024))),128))]),_:2},1024)]),_:2},1024),L(s(LO),null,{default:F(()=>[(p(!0),g(me,null,Me(_e.rows,(Y,he)=>(p(),j(s(eh),{key:`week-${he}`,class:"flex"},{default:F(()=>[(p(!0),g(me,null,Me(Y,J=>(p(),j(s(_O),{key:J.toString(),date:J,class:"p-0"},{default:F(()=>[L(s(kO),{day:J,month:_e.value,class:"flex size-9 items-center justify-center rounded-pager tabular-nums text-text transition-colors duration-150 ease-out hover:bg-hover data-[outside-view]:text-placeholder data-[today]:font-semibold data-[today]:shadow-[inset_0_0_0_1px_var(--c-border-strong)] data-[selected]:bg-primary data-[selected]:font-semibold data-[selected]:text-on-primary data-[disabled]:cursor-not-allowed data-[disabled]:text-placeholder data-[disabled]:opacity-40 data-[disabled]:hover:bg-transparent data-[unavailable]:cursor-not-allowed data-[unavailable]:opacity-40"},null,8,["day","month"])]),_:2},1032,["date"]))),128))]),_:2},1024))),128))]),_:2},1024)]),_:2},1024))),128))]),_:1}),r.value==="datetime"?(p(),g("div",XP,[L(s(Li),{size:16,class:"shrink-0 text-muted","aria-hidden":"true"}),L(s(rh),{"model-value":K.value,locale:o.value,"hour-cycle":C.value,granularity:"minute","hide-time-zone":"",class:"flex min-w-0 items-center","onUpdate:modelValue":oe},{default:F(({segments:H})=>[(p(!0),g(me,null,Me(H,we=>(p(),j(s(lh),{key:we.part,part:we.part,class:ve(ue(we.part))},{default:F(()=>[ge($(we.value),1)]),_:2},1032,["part","class"]))),128))]),_:1},8,["model-value","locale","hour-cycle"])])):G("",!0)]),_:1})]),_:1},8,["id","model-value","default-placeholder","locale","granularity","hour-cycle","hide-time-zone","min-value","max-value","week-starts-on","name","required","close-on-select"]))}}),Os=Symbol("summer.form.values"),xp=Symbol("summer.form.patch"),Ku=Symbol("summer.form.locale"),R0=Symbol("summer.form.partialReload"),eu=Symbol("summer.form.enabledLocales"),q0=Symbol("summer.form.assets");function kp(){const e=A(0);return{activeUploads:e,beginUpload(){e.value++;let t=!1;return()=>{t||(t=!0,e.value>0&&e.value--)}}}}const co=Symbol("summer.form.session"),L0=Symbol("summer.settings.secrets"),wp=Symbol("summer.form.permissionLocks"),$p=Symbol("summer.form.triggerNotes"),yh="summer-action",eR="summer-result",gh="summer-change",bh="summer-upload",tR="summer-upload-result",N0=5e3,Cp=Symbol("summer.form.feedback"),Ms=Symbol("summer.form.fieldScope"),Sp=Symbol("summer.form.rememberLabel"),B0=Symbol("summer.form.dependentCache"),aR=["data-dependent"],nR={class:"relative"},rR=["id","name","value","disabled","required","aria-required","aria-invalid","aria-busy","aria-describedby"],lR={key:0,value:"state",class:"text-muted"},oR=["value"],sR=["id"],iR={key:1,class:"flex flex-wrap items-center gap-2"},uR=["id"],ai="empty",ni="placeholder",cR=le({__name:"DropdownField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const a=e,n=t,r=" ".repeat(4),l=it(Ms,null),o=it(Cp,null),i=it(B0,null)??new Map,u=_(()=>a.field.dependsOn??""),d=_(()=>u.value!==""),c=A("waiting"),f=A([]),m=_(()=>{const K=l?.values.value[u.value];return K==null||K===""||typeof K=="object"?null:String(K)}),v=_(()=>l?.fields.value.find(K=>K.name===u.value)),y=_(()=>v.value?.label||u.value),x=_(()=>(v.value?.options??[]).find(ne=>k(ne.value,m.value))?.label??m.value??""),C=_(()=>d.value?f.value:a.field.options??[]);function k(K,ne){return K==null||ne===null||ne===void 0?K===ne||K==null&&ne==null:String(K)===String(ne)}function E(){return a.modelValue!==null&&a.modelValue!==void 0&&a.modelValue!==""}function B(){E()&&(n("update:modelValue",null),o?.announce(h("backend::lang.form.dependent_cleared",{field:a.field.label||a.field.name})))}function O(K,ne){if(!K.applies){f.value=[],c.value="unused",ne&&B();return}f.value=K.options.map(oe=>({value:oe.value,label:r.repeat(Math.max(0,oe.depth))+oe.label})),c.value=f.value.length>0?"ready":"empty",ne&&E()&&!f.value.some(oe=>k(oe.value,a.modelValue))&&B()}let T=0,P=!1;async function R(K){const ne=++T,oe=m.value;if(oe===null){f.value=[],c.value="waiting",K&&B();return}const se=l?.path(a.field.name)??a.field.name,de=`${se}\0${oe}`,ue=i.get(de);if(ue){O(ue,K);return}if(!a.source){P=K,c.value="failed";return}c.value="loading";try{const{data:te}=await Re.GET("/{vendor}/{plugin}/{controller}/fields/{field}/dependent-options",{params:{path:{...a.source,field:se},query:{[`values[${u.value}]`]:oe}}});if(ne!==T)return;if(!te){P=K,c.value="failed";return}i.set(de,te.data),O(te.data,K)}catch{ne===T&&(P=K,c.value="failed")}}function U(){R(P)}Ne(m,(K,ne)=>{d.value&&K!==ne&&R(!0)}),xt(()=>{d.value&&R(!1)}),Et(()=>{T++});const S=_(()=>{const K=C.value.findIndex(ne=>k(ne.value,a.modelValue));return K>=0?String(K):a.field.emptyOption!==void 0&&!E()?ai:ni}),I=_(()=>{switch(c.value){case"waiting":return h("backend::lang.form.dependent_waiting",{field:y.value});case"loading":return h("backend::lang.form.loading_options");case"unused":return h("backend::lang.form.dependent_not_used");case"empty":return h("backend::lang.form.dependent_empty",{type:x.value});case"failed":return h("backend::lang.form.dependent_failed");default:return""}}),z=_(()=>d.value&&c.value!=="ready"),D=_(()=>z.value||S.value===ai||S.value===ni),N=_(()=>`${a.controlId}-dependent`),Z=_(()=>[a.describedBy??"",d.value&&(c.value==="empty"||c.value==="failed")?N.value:""].filter(Boolean).join(" "));function W(K){const ne=K.target.value;if(ne===ai){n("update:modelValue",null);return}const oe=C.value[Number(ne)];oe&&n("update:modelValue",oe.value)}return(K,ne)=>(p(),g("div",{class:"flex flex-col gap-1.5","data-dependent":d.value?c.value:void 0},[b("div",nR,[b("select",{id:e.controlId,name:e.field.name,value:z.value?"state":S.value,disabled:z.value||void 0,required:e.field.required||void 0,"aria-required":e.field.required?"true":void 0,"aria-invalid":e.invalid?"true":void 0,"aria-busy":d.value&&c.value==="loading"?"true":void 0,"aria-describedby":Z.value||void 0,class:ve([[s(Lt)(e.invalid),D.value?"text-muted":""],"h-input appearance-none pr-10 disabled:cursor-not-allowed"]),onChange:W},[z.value?(p(),g("option",lR,$(I.value),1)):(p(),g(me,{key:1},[e.field.emptyOption!==void 0?(p(),g("option",{key:0,value:ai,class:"text-muted"},$(e.field.emptyOption),1)):G("",!0),S.value===ni?(p(),g("option",{key:1,value:ni,disabled:""},$(s(h)("backend::lang.form.select_placeholder")),1)):G("",!0),(p(!0),g(me,null,Me(C.value,(oe,se)=>(p(),g("option",{key:se,value:String(se),class:"text-text"},$(oe.label),9,oR))),128))],64))],42,rR),L(s(yr),{size:16,class:"pointer-events-none absolute top-1/2 right-3.5 -translate-y-1/2 text-muted","aria-hidden":"true"})]),d.value&&c.value==="empty"?(p(),g("p",{key:0,id:N.value,"data-dependent-hint":"",class:"text-[13px] text-muted"},$(I.value),9,sR)):d.value&&c.value==="failed"?(p(),g("div",iR,[b("p",{id:N.value,role:"alert",class:"flex items-center gap-1.5 text-[13px] text-danger"},[L(s(ht),{size:14,class:"shrink-0","aria-hidden":"true"}),b("span",null,$(s(h)("backend::lang.form.dependent_failed")),1)],8,uR),L(Ue,{variant:"ghost",size:"sm",icon:s(pi),"data-action":"dependent-retry",onClick:U},{default:F(()=>[ge($(s(h)("backend::lang.form.dependent_retry")),1)]),_:1},8,["icon"])])):G("",!0)],8,aR))}}),dR={class:"flex items-start gap-3"},fR={class:"flex min-w-0 flex-1 flex-col gap-1"},pR={key:0,class:"flex items-center gap-4"},vR=["src"],mR={key:1,class:"flex size-16 shrink-0 items-center justify-center rounded-inner bg-subtle","aria-hidden":"true"},hR=["title"],yR={class:"flex flex-col gap-1.5"},gR=["for"],bR=["id","disabled","aria-invalid","aria-describedby"],_R=["id"],xR={class:"flex flex-col gap-1.5"},kR=["for"],wR=["id","disabled","aria-invalid","aria-describedby"],$R=["id"],CR={class:"flex gap-2.5"},SR=["disabled"],ER=["aria-keyshortcuts","title","disabled"],AR=le({__name:"FileCaptionModal",props:{open:{type:Boolean},file:{},routes:{},preview:{},idPrefix:{}},emits:["update:open","saved","closed"],setup(e,{emit:t}){const a=e,n=t,r=A(""),l=A(""),o=A({}),i=A(!1),u=Lr();function d(C){const k={};for(const[E,B]of Object.entries(C??{})){const O=(Array.isArray(B)?B:[B]).filter(T=>typeof T=="string"&&T!=="");O.length>0&&(k[E]=O)}return k}const c=_(()=>`${a.idPrefix}-caption-title`),f=_(()=>`${a.idPrefix}-caption-description`),m=_(()=>!!a.file&&(r.value!==a.file.title||l.value!==a.file.description));Ne(()=>a.open,C=>{C&&a.file&&(r.value=a.file.title??"",l.value=a.file.description??"",o.value={},i.value=!1)},{immediate:!0});async function v(C){if(C){n("update:open",!0);return}i.value||m.value&&!await u.ask({message:h("backend::lang.form.unsaved_confirm"),confirmLabel:h("backend::lang.form.discard"),danger:!0})||n("update:open",!1)}async function y(){if(!(i.value||!a.file||!a.routes)){i.value=!0;try{const C=await a.routes.update(a.file.id,{title:r.value,description:l.value});if(C.data){o.value={},n("saved",C.data),n("update:open",!1),Ie(h("backend::lang.fileupload.details_saved"));return}if(C.status===422){o.value=d(C.error?.details),Object.keys(o.value).length===0&&(o.value={title:[_p(C.error)||h("backend::lang.form.error_generic")]});return}Ie(C.error?.message||h("backend::lang.form.error_generic"),"danger")}finally{i.value=!1}}}function x(C){C.preventDefault(),n("closed")}return(C,k)=>(p(),g(me,null,[L(s(Dr),{open:e.open,"onUpdate:open":v},{default:F(()=>[L(s(vl),null,{default:F(()=>[L(s(Mr),{"data-dialog-overlay":"",class:"fixed inset-0 z-40 bg-overlay"}),L(s(Or),{"data-caption-modal":"","data-dialog-content":"","aria-modal":"true",class:"fixed top-1/2 left-1/2 z-50 flex max-h-[calc(100vh-32px)] w-[calc(100%-32px)] max-w-[560px] -translate-x-1/2 -translate-y-1/2 flex-col gap-4 overflow-y-auto rounded-modal bg-surface p-6 text-text shadow-pop",onCloseAutoFocus:x},{default:F(()=>[b("div",dR,[b("div",fR,[L(s(Ir),{class:"text-[20px] font-bold tracking-[-0.01em]"},{default:F(()=>[ge($(s(h)("backend::lang.fileupload.attachment")),1)]),_:1}),L(s(xr),{class:"text-muted"},{default:F(()=>[ge($(s(h)("backend::lang.fileupload.help")),1)]),_:1})]),L(s(_r),{"data-action":"close","aria-label":s(h)("backend::lang.form.close"),disabled:i.value,class:"flex size-[34px] shrink-0 items-center justify-center rounded-tab bg-subtle text-muted hover:bg-hover hover:text-text"},{default:F(()=>[L(s(Xt),{size:16,"aria-hidden":"true"})]),_:1},8,["aria-label","disabled"])]),e.file?(p(),g("div",pR,[e.preview?(p(),g("img",{key:0,src:e.preview,alt:"",class:"size-16 shrink-0 rounded-inner object-cover"},null,8,vR)):(p(),g("span",mR,[L(s(ql),{size:16,class:"text-muted"})])),b("span",{class:"min-w-0 truncate text-[13px] text-muted",title:e.file.file_name},$(e.file.file_name),9,hR)])):G("",!0),b("form",{class:"flex flex-col gap-4",novalidate:"",onSubmit:mt(y,["prevent"])},[b("div",yR,[b("label",{for:c.value,class:"font-semibold"},$(s(h)("backend::lang.fileupload.title_label")),9,gR),Pa(b("input",{id:c.value,"onUpdate:modelValue":k[0]||(k[0]=E=>r.value=E),type:"text","data-caption-title":"",disabled:i.value,"aria-invalid":o.value.title?"true":void 0,"aria-describedby":o.value.title?`${c.value}-error`:void 0,class:ve([s(Lt)(!!o.value.title),"h-input"])},null,10,bR),[[nl,r.value]]),o.value.title?(p(),g("p",{key:0,id:`${c.value}-error`,class:"flex items-center gap-1.5 text-[13px] text-danger"},[L(s(ht),{size:14,class:"shrink-0","aria-hidden":"true"}),b("span",null,$(o.value.title.join(" ")),1)],8,_R)):G("",!0)]),b("div",xR,[b("label",{for:f.value,class:"font-semibold"},$(s(h)("backend::lang.fileupload.description_label")),9,kR),Pa(b("textarea",{id:f.value,"onUpdate:modelValue":k[1]||(k[1]=E=>l.value=E),rows:"3","data-caption-description":"",disabled:i.value,"aria-invalid":o.value.description?"true":void 0,"aria-describedby":o.value.description?`${f.value}-error`:void 0,class:ve([s(Lt)(!!o.value.description),"min-h-input resize-y py-2.5"])},null,10,wR),[[nl,l.value]]),o.value.description?(p(),g("p",{key:0,id:`${f.value}-error`,class:"flex items-center gap-1.5 text-[13px] text-danger"},[L(s(ht),{size:14,class:"shrink-0","aria-hidden":"true"}),b("span",null,$(o.value.description.join(" ")),1)],8,$R)):G("",!0)]),b("div",CR,[b("button",{type:"button","data-action":"cancel",disabled:i.value,class:"inline-flex h-button flex-1 items-center justify-center rounded-control border border-border-strong bg-surface font-semibold hover:bg-hover disabled:cursor-not-allowed disabled:opacity-60",onClick:k[2]||(k[2]=E=>v(!1))},$(s(h)("backend::lang.form.cancel")),9,SR),b("button",{type:"submit","data-action":"save-caption","data-hotkey":"mod+s mod+enter","aria-keyshortcuts":s(ju)("mod+s mod+enter"),title:s(Fa)(s(h)("backend::lang.fileupload.details_submit"),"mod+s"),disabled:i.value,class:"inline-flex h-button flex-1 items-center justify-center rounded-control bg-primary font-semibold text-on-primary hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-60"},$(i.value?s(h)("backend::lang.form.saving"):s(h)("backend::lang.fileupload.details_submit")),9,ER)])],32)]),_:1})]),_:1})]),_:1},8,["open"]),L(qr,{open:s(u).request.value!==null,message:s(u).request.value?.message??"","confirm-label":s(u).request.value?.confirmLabel,danger:s(u).request.value?.danger,onConfirm:s(u).confirm,onCancel:s(u).cancel},null,8,["open","message","confirm-label","danger","onConfirm","onCancel"])],64))}}),TR=["id","data-field-name","aria-labelledby","aria-describedby","aria-busy"],DR={key:0,"data-fileupload-loading":"",class:"h-[112px] rounded-control bg-skel","aria-hidden":"true"},OR={key:1,role:"alert","data-fileupload-failed":"",class:"rounded-inner bg-danger-soft px-[18px] py-3.5 text-danger"},MR={key:0,"data-fileupload-empty":"",class:"flex min-h-input items-center rounded-control border border-border bg-subtle px-3.5 text-muted"},IR={key:1,"data-fileupload-grid":"",class:"grid grid-cols-[repeat(auto-fill,minmax(160px,1fr))] gap-4"},PR=["data-file-item","data-state","onDragover","onDrop"],RR={class:"relative flex aspect-square items-center justify-center bg-subtle"},qR=["href","aria-label"],LR=["src","alt","onError"],NR=["aria-label","onClick"],BR=["src","alt"],FR={key:2,"data-preview-unavailable":"",class:"flex flex-col items-center gap-2 text-[13px] text-muted"},VR=["data-handle","aria-label","onKeydown","onDragstart"],zR={key:5,class:"absolute top-2 right-2 flex gap-1"},jR=["data-caption","aria-label","onClick"],UR=["aria-label","onClick"],HR=["aria-label","onClick"],KR={class:"flex flex-col gap-1 p-2"},WR=["title"],GR={class:"flex items-center gap-2 text-[13px] text-muted tabular-nums"},YR={key:0},JR={key:1},ZR={key:2},XR={key:3,"data-unsaved-chip":"",class:"inline-flex h-6 items-center rounded-pill bg-sel px-2 text-[13px] font-semibold text-text"},QR={key:1,"data-file-error":"",class:"text-[13px] text-danger"},eq={class:"sr-only"},tq={key:2,"data-fileupload-single":"",class:"flex flex-col gap-2"},aq=["data-file-item","data-state"],nq=["src","alt","onError"],rq={key:3,"data-preview-unavailable":"",class:"flex flex-col items-center gap-2 text-[13px] text-muted"},lq={class:"flex min-w-0 flex-1 flex-col gap-1"},oq=["title"],sq={class:"flex items-center gap-2 text-[13px] text-muted tabular-nums"},iq={key:0},uq={key:1},cq={key:2},dq={key:3,"data-unsaved-chip":"",class:"inline-flex h-6 items-center rounded-pill bg-sel px-2 text-[13px] font-semibold text-text"},fq={key:1,"data-file-error":"",class:"text-[13px] text-danger"},pq={class:"sr-only"},vq={key:2,class:"mt-1 flex flex-wrap gap-2"},mq={key:3,"data-fileupload-rows":"",class:"flex flex-col gap-2"},hq=["data-file-item","data-state","onDragover","onDrop"],yq={class:"flex items-center gap-3"},gq=["data-handle","aria-label","onKeydown","onDragstart"],bq={class:"flex size-8 shrink-0 items-center justify-center overflow-hidden rounded-pager bg-subtle"},_q=["src","onError"],xq={class:"flex min-w-0 flex-1 flex-col leading-tight"},kq=["title"],wq=["title"],$q=["title"],Cq={class:"flex shrink-0 items-center gap-2 text-[13px] text-muted tabular-nums"},Sq={key:0},Eq={key:1},Aq={key:2},Tq={key:3,"data-unsaved-chip":"",class:"inline-flex h-6 items-center rounded-pill bg-sel px-2 text-[13px] font-semibold text-text"},Dq={class:"flex shrink-0 items-center gap-1"},Oq=["href","aria-label"],Mq=["aria-label","onClick"],Iq=["data-caption","aria-label","onClick"],Pq=["aria-label","onClick"],Rq=["aria-label","onClick"],qq={key:1,"data-file-error":"",class:"text-[13px] text-danger"},Lq={class:"sr-only"},Nq=["aria-describedby"],Bq={class:"flex size-10 items-center justify-center rounded-full bg-surface","aria-hidden":"true"},Fq={class:"text-text"},Vq={key:0,"data-fileupload-limits":"",class:"text-[13px] text-muted tabular-nums"},zq={key:5,"data-fileupload-limits":"",class:"text-[13px] text-muted tabular-nums"},jq={key:6,role:"alert","data-fileupload-too-many":"",class:"flex items-center gap-1.5 text-[13px] text-danger"},Uq=["accept","multiple"],Hq={class:"sr-only","aria-live":"polite","data-fileupload-live":""},Kq=1<<20,Wq=400,Wc="inline-flex size-8 items-center justify-center rounded-pager border border-border bg-surface text-muted hover:text-text",Gq="inline-flex size-8 items-center justify-center rounded-pager border border-border bg-surface text-muted hover:bg-danger-soft hover:text-danger",Al="inline-flex size-8 shrink-0 items-center justify-center rounded-pager text-muted hover:bg-hover hover:text-text",Yq=le({__name:"FileuploadField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},setup(e){const t=e,a=it(co,null),n=["jpg","jpeg","png","gif","webp"],r=["image/jpeg","image/png","image/gif","image/webp"];let l=1;const o=A([]),i=A("loading"),u=A(!1),d=A(0),c=A(""),f=A(null),m=A(null),v=A(null),y=A(null),x=A(null),C=A(!1),k=A({}),E=A(new Set),B=A(new Set),O=new Set,T=[],P=a?a.routes(t.field.name):null;let R=null,U=null,S=!1,I=null,z=0,D=!1;const N=_(()=>{const X=t.field.attributes?.readonly;return!!t.field.readOnly||X!=null&&X!==!1}),Z=_(()=>t.field.multiple===!0),W=_(()=>t.field.mode==="image"),K=_(()=>Z.value?t.field.maxFiles:1),ne=_(()=>(a?.recordId??0)!==0),oe=_(()=>o.value.filter(X=>X.state!=="failed")),se=_(()=>{if(Z.value)return o.value;const X=oe.value,De=X[X.length-1];return o.value.filter(re=>re.state==="failed"||re===De)}),de=_(()=>se.value.filter(X=>X.state!=="failed").length),ue=_(()=>N.value||i.value!=="ready"?!1:Z.value?K.value===void 0||K.value===null||oe.value.lengthZ.value&&!N.value&&typeof K.value=="number"&&oe.value.length>=K.value),ye=_(()=>t.field.fileTypes?.length?t.field.fileTypes.map(X=>X.toLowerCase()):W.value&&!t.field.mimeTypes?.length?n:null),H=_(()=>(t.field.fileTypes?.length?t.field.fileTypes:t.field.mimeTypes??[]).join(", ")),we=_(()=>{const X=[];for(const De of t.field.fileTypes??[])X.push(`.${De.toLowerCase()}`);for(const De of t.field.mimeTypes??[])X.push(De.includes("/")?De:`.${De.toLowerCase()}`);return X.length===0&&W.value&&X.push(...r),X.length>0?X.join(","):void 0}),_e=_(()=>t.field.prompt||h(Z.value?"backend::lang.fileupload.default_prompt_many":"backend::lang.fileupload.default_prompt"));function Y(X,De){return new Intl.NumberFormat(Ka.value,{minimumFractionDigits:De,maximumFractionDigits:De}).format(X)}function he(X){const De=["B","kB","MB","GB"];let re=X,qe=0;for(;re>=1e3&&qe{const X=t.field.maxFilesize;return typeof X=="number"?`${new Intl.NumberFormat(Ka.value).format(X)} MB`:""}),Q=_(()=>{const X=[];return H.value!==""&&X.push(h("backend::lang.fileupload.limits_types",{types:H.value})),J.value!==""&&X.push(h("backend::lang.fileupload.limits_size",{size:J.value})),Z.value&&typeof K.value=="number"&&X.push(h("backend::lang.fileupload.limits_count",{current:oe.value.length,max:K.value})),X.join(" · ")});function ae(X){const De=X.lastIndexOf(".");return De<0?"":X.slice(De+1).toLowerCase()}function w(X){const De=t.field.mimeTypes??[];if(De.length===0||X.type==="")return!0;const re=X.type.toLowerCase(),qe=ae(X.name);return De.some(nt=>{const Pt=nt.toLowerCase();return Pt.includes("/")?Pt.endsWith("/*")?re.startsWith(Pt.slice(0,-1)):re===Pt:Pt===qe})}function M(X){const De=ye.value;if(De&&!De.includes(ae(X.name)))return h("backend::lang.fileupload.wrong_type",{name:X.name,types:De.join(", ")});if(!w(X))return h("backend::lang.fileupload.wrong_type",{name:X.name,types:H.value});const re=t.field.maxFilesize;return typeof re=="number"&&X.size>Math.ceil(re*Kq)?h("backend::lang.fileupload.too_large",{name:X.name,size:J.value}):""}function q(X){return Va({uid:l++,name:X.file_name,size:X.file_size,state:"done",progress:100,error:"",retryable:!1,file:X,source:null,handle:null,uploadId:""})}function ie(){return globalThis.crypto?.randomUUID?.()??`u${Date.now().toString(36)}${Math.random().toString(36).slice(2,10)}`}function ee(X,De){return Va({uid:l++,name:X.name,size:X.size,state:De===""?"queued":"failed",progress:0,error:De,retryable:!1,file:null,source:_i(X),handle:null,uploadId:ie()})}function pe(X){return o.value.find(De=>De.uid===X)}async function Ee(X){if(!P){i.value="failed";return}X&&(i.value="loading");const De=await P.list();if(D)return;if(!De.data){X&&(i.value="failed");return}const re=o.value.filter(qe=>qe.state!=="done");for(const qe of o.value)qe.state==="done"&&_n(qe.uid);o.value=[...De.data.map(q),...re],i.value="ready"}function Se(){N.value||f.value?.click()}function Te(X){if(X.length===0||N.value)return;if(d.value=0,!Z.value)for(const nt of[...o.value])nt.state!=="failed"&&(nt.state!=="done"||nt.file?.pending)&&ot(nt);let De=Z.value?typeof K.value=="number"?Math.max(K.value-oe.value.length,0):Number.POSITIVE_INFINITY:1,re=0;const qe=[];for(const nt of X.slice(0,Z.value?X.length:1)){const Pt=M(nt);if(Pt===""&&De<=0){re++;continue}Pt===""&&De--,qe.push(ee(nt,Pt))}o.value=[...o.value,...qe],d.value=re,Fe()}function fe(X){const De=X.target;Te(Array.from(De.files??[])),De.value=""}function $e(X){return v.value===null&&Array.from(X.dataTransfer?.types??[]).includes("Files")}function xe(X){$e(X)&&(X.preventDefault(),u.value=!0)}function Le(X){$e(X)&&(X.preventDefault(),u.value=!1,Te(Array.from(X.dataTransfer?.files??[])))}function Fe(){if(!P||o.value.some(De=>De.state==="uploading"))return;const X=o.value.find(De=>De.state==="queued");X&&Ke(X)}async function Ke(X){if(!P||!X.source)return;X.state="uploading",X.progress=0,X.error="",X.retryable=!1;const De=new Set(o.value.filter(qe=>qe.file).map(qe=>qe.file.id)),re=a?.beginUpload();try{const qe=P.upload(X.source,(Ya,Jn)=>{X.progress=Jn>0?Math.min(100,Math.round(Ya/Jn*100)):0},X.uploadId||void 0);X.handle=_i(qe);const nt=await qe.promise;X.handle=null;const Pt=!!pe(X.uid);if(nt.ok)!Pt||D?P.remove(nt.item.id):(X.state="done",X.progress=100,X.file=nt.item,X.name=nt.item.file_name,X.size=nt.item.file_size,a?.markDirty());else if(nt.reason==="aborted"||nt.reason==="network"){const Ya=await tt(De);if(nt.reason==="aborted"){for(const Jn of Ya)P.remove(Jn.id);o.value=o.value.filter(Jn=>Jn.uid!==X.uid),_n(X.uid)}else Pt&&Ya[0]&&Ya.length===1?(X.state="done",X.progress=100,X.file=Ya[0],X.name=Ya[0].file_name,X.size=Ya[0].file_size,a?.markDirty()):(X.state="failed",X.error=h("backend::lang.fileupload.upload_failed"),X.retryable=!0)}else if(Pt)switch(X.state="failed",nt.reason){case"too_large":X.error=J.value?h("backend::lang.fileupload.too_large",{name:X.name,size:J.value}):nt.message||h("backend::lang.fileupload.upload_failed");break;case"invalid":X.error=nt.message||h("backend::lang.fileupload.upload_failed");break;default:X.error=nt.message||h("backend::lang.fileupload.upload_failed"),X.retryable=nt.status>=500}}finally{re?.(),D||Fe()}}async function tt(X){if(!P)return[];const De=await P.list();return De.data?De.data.filter(re=>re.pending&&!X.has(re.id)):[]}function et(X){X.state!=="failed"||!X.source||(X.state="queued",X.error="",X.retryable=!1,Fe())}async function ot(X){const De=o.value.findIndex(qe=>qe.uid===X.uid);if(De<0)return;switch(o.value=o.value.filter(qe=>qe.uid!==X.uid),_n(X.uid),X.state){case"uploading":X.handle?.abort(),a?.markDirty(),Fe();return;case"queued":case"failed":return}if(!P||!X.file)return;a?.markDirty();const re=await P.remove(X.file.id);if(!re.data&&!D){const qe=[...o.value];qe.splice(Math.min(De,qe.length),0,X),o.value=qe,Ie(re.error?.message||h("backend::lang.form.error_generic"),"danger")}}function rt(){return o.value.map(X=>X.uid)}function Tt(X){const De=new Map(o.value.map(nt=>[nt.uid,nt])),re=X.map(nt=>De.get(nt)).filter(nt=>!!nt),qe=o.value.filter(nt=>!X.includes(nt.uid));o.value=[...re,...qe]}function Ot(){R!==null&&clearTimeout(R),R=setTimeout(()=>{R=null,ze()},Wq)}function zt(){return o.value.filter(X=>X.state==="done"&&X.file).map(X=>X.file.id)}async function ze(){if(!P)return;const X=zt();if(S){I=X;return}const De=U;U=null;const re=++z;S=!0;try{const qe=await P.reorder(X);if(I)return;!qe.data&&!D&&re===z&&(De&&Tt(De),Ie(h("backend::lang.fileupload.reorder_failed"),"danger"))}finally{S=!1,I&&(I=null,ze())}}function Ve(X,De){const re=o.value.findIndex(Pt=>Pt.uid===X);if(re<0||De<0||De>=o.value.length||De===re)return!1;U===null&&(U=rt());const qe=[...o.value],[nt]=qe.splice(re,1);return qe.splice(De,0,nt),o.value=qe,c.value=h("backend::lang.fileupload.moved",{name:nt.name,position:De+1,total:qe.length}),Ot(),!0}async function We(X,De){const re=o.value.findIndex(nt=>nt.uid===De.uid);let qe;switch(X.key){case"ArrowUp":case"ArrowLeft":qe=re-1;break;case"ArrowDown":case"ArrowRight":qe=re+1;break;default:return}X.preventDefault(),Ve(De.uid,qe)&&(await He(),m.value?.querySelector(`[data-handle="${De.uid}"]`)?.focus())}function Nt(X,De){v.value=De.uid,X.dataTransfer&&(X.dataTransfer.effectAllowed="move",X.dataTransfer.setData("text/plain",De.name))}function ra(X,De){v.value!==null&&(X.preventDefault(),y.value=De.uid)}function Wn(X,De){v.value!==null&&(X.preventDefault(),Ve(v.value,o.value.findIndex(re=>re.uid===De.uid)),bn())}function bn(){v.value=null,y.value=null}function La(X){const De=X.file?.content_type??X.source?.type??"";return r.includes(De.toLowerCase())}function Wt(X){return!X.file||!La(X)||E.value.has(X.uid)?null:!t.field.protected&&!B.value.has(X.uid)?X.file.thumb_url||X.file.url||null:k.value[X.uid]??null}function Gn(){return typeof URL.revokeObjectURL=="function"}function _n(X){const De=k.value[X];if(De!==void 0){Gn()&&URL.revokeObjectURL(De);const re={...k.value};delete re[X],k.value=re}if(O.delete(X),B.value.has(X)){const re=new Set(B.value);re.delete(X),B.value=re}}async function Yn(X){if(!P||!X.file||O.has(X.uid)||typeof URL.createObjectURL!="function")return;O.add(X.uid);const De=await P.thumb(X.file.id);if(!(D||!pe(X.uid)||!O.has(X.uid))){if(!De){E.value=new Set([...E.value,X.uid]);return}k.value={...k.value,[X.uid]:URL.createObjectURL(De)}}}Ne(()=>o.value.map(X=>`${X.uid}:${X.state}`).join(","),()=>{if(t.field.protected)for(const X of o.value)X.state==="done"&&La(X)&&Yn(X)});function Ce(X){if(!t.field.protected&&!B.value.has(X.uid)&&(B.value=new Set([...B.value,X.uid]),P&&typeof URL.createObjectURL=="function")){Yn(X);return}E.value=new Set([...E.value,X.uid])}async function Be(X,De){if(!P||!X.file||typeof URL.createObjectURL!="function")return;const re=await P.download(X.file.id);if(!re){Ie(h("backend::lang.form.error_generic"),"danger");return}const qe=URL.createObjectURL(re);T.push(qe);const nt=document.createElement("a");nt.href=qe,nt.rel="noopener",De?nt.download=X.file.file_name:nt.target="_blank",nt.click()}function Ge(X){return t.field.useCaption&&X.file?.title?X.file.title:X.name}function st(X){return ne.value&&!!X.file?.pending}const kt=_(()=>x.value===null?void 0:pe(x.value));function Mt(X){x.value=X.uid,C.value=!0}function Br(X){const De=kt.value;De&&(De.file=X)}function vo(){const X=x.value;x.value=null,X!==null&&m.value?.querySelector(`[data-caption="${X}"]`)?.focus()}const mo=_(()=>{const X=t.field.thumbOptions?.mode;return X==="fit"||X==="auto"?"object-contain":"object-cover"});return xt(()=>{Ee(!0)}),a&&Ne(a.revision,()=>{Ee(!1)}),Et(()=>{D=!0,R!==null&&(clearTimeout(R),R=null);for(const X of o.value)X.handle?.abort();if(Gn()){for(const X of Object.values(k.value))URL.revokeObjectURL(X);for(const X of T)URL.revokeObjectURL(X)}}),(X,De)=>(p(),g("div",{id:e.controlId,ref_key:"root",ref:m,role:"group","data-fileupload":"","data-field-name":e.field.name,"aria-labelledby":e.field.label?`${e.controlId}-label`:void 0,"aria-describedby":e.describedBy||void 0,"aria-busy":i.value==="loading"?"true":void 0,class:"flex min-w-0 flex-col gap-4"},[i.value==="loading"?(p(),g("span",DR)):i.value==="failed"?(p(),g("p",OR,$(s(h)("backend::lang.fileupload.load_failed")),1)):(p(),g(me,{key:2},[N.value&&se.value.length===0?(p(),g("p",MR,$(s(h)("backend::lang.fileupload.empty")),1)):W.value&&Z.value&&se.value.length>0?(p(),g("ul",IR,[(p(!0),g(me,null,Me(se.value,re=>(p(),g("li",{key:re.uid,"data-file-item":re.uid,"data-state":re.state,class:ve([[re.state==="failed"?"border-danger":"border-border",v.value===re.uid?"opacity-50":"",y.value===re.uid&&v.value!==re.uid?"border-2 border-dashed border-primary bg-sel":""],"relative overflow-hidden rounded-inner border bg-surface"]),onDragover:qe=>ra(qe,re),onDrop:qe=>Wn(qe,re)},[b("div",RR,[re.state==="uploading"?(p(),j(s(On),{key:0,size:20,class:"animate-spin text-muted","aria-hidden":"true"})):re.state==="failed"?(p(),j(s(ht),{key:1,size:16,class:"text-danger","aria-hidden":"true"})):re.state==="done"?(p(),g(me,{key:2},[Wt(re)&&!e.field.protected&&re.file?.url?(p(),g("a",{key:0,href:re.file.url,target:"_blank",rel:"noopener",class:"block size-full","aria-label":s(h)("backend::lang.fileupload.open_preview",{name:re.name})},[b("img",{src:Wt(re)??void 0,alt:Ge(re),class:ve([mo.value,"size-full"]),onError:qe=>Ce(re)},null,42,LR)],8,qR)):Wt(re)?(p(),g("button",{key:1,type:"button",class:"block size-full","aria-label":s(h)("backend::lang.fileupload.open_preview",{name:re.name}),onClick:qe=>Be(re,!1)},[b("img",{src:Wt(re)??void 0,alt:Ge(re),class:ve([mo.value,"size-full"])},null,10,BR)],8,NR)):E.value.has(re.uid)?(p(),g("span",FR,[L(s(am),{size:20,"aria-hidden":"true"}),ge(" "+$(s(h)("backend::lang.fileupload.preview_unavailable")),1)])):(p(),j(s(ql),{key:3,size:20,class:"text-muted","aria-hidden":"true"}))],64)):(p(),j(s(ql),{key:3,size:20,class:"text-muted","aria-hidden":"true"})),!N.value&&re.state==="done"?(p(),g("button",{key:4,type:"button",draggable:"true","data-handle":re.uid,"aria-label":s(h)("backend::lang.fileupload.move",{name:re.name}),class:ve([Wc,"absolute top-2 left-2 cursor-grab"]),onKeydown:qe=>We(qe,re),onDragstart:qe=>Nt(qe,re),onDragend:bn},[L(s(Bi),{size:16,"aria-hidden":"true"})],40,VR)):G("",!0),N.value?G("",!0):(p(),g("div",zR,[e.field.useCaption&&re.state==="done"?(p(),g("button",{key:0,type:"button","data-caption":re.uid,"aria-label":s(h)("backend::lang.fileupload.edit_details",{name:re.name}),class:ve(Wc),onClick:qe=>Mt(re)},[L(s(Wo),{size:16,"aria-hidden":"true"})],8,jR)):G("",!0),re.state==="failed"&&re.retryable?(p(),g("button",{key:1,type:"button","data-action":"retry","aria-label":s(h)("backend::lang.fileupload.retry"),class:ve(Wc),onClick:qe=>et(re)},[L(s(pi),{size:16,"aria-hidden":"true"})],8,UR)):G("",!0),b("button",{type:"button","data-action":"remove-file","aria-label":re.state==="uploading"||re.state==="queued"?s(h)("backend::lang.fileupload.cancel_upload",{name:re.name}):s(h)("backend::lang.form.remove_item",{name:re.name}),class:ve(Gq),onClick:qe=>ot(re)},[L(s(Xt),{size:16,"aria-hidden":"true"})],8,HR)]))]),b("div",KR,[b("span",{class:"truncate text-[13px]",title:Ge(re)},$(Ge(re)),9,WR),b("span",GR,[re.state==="queued"?(p(),g("span",YR,$(s(h)("backend::lang.fileupload.queued")),1)):re.state==="uploading"?(p(),g("span",JR,$(s(h)("backend::lang.fileupload.uploading",{percent:re.progress})),1)):(p(),g("span",ZR,$(he(re.size)),1)),st(re)?(p(),g("span",XR,$(s(h)("backend::lang.fileupload.unsaved")),1)):G("",!0)]),re.state==="uploading"?(p(),j(s(Nc),{key:0,"model-value":re.progress,max:100,"aria-label":s(h)("backend::lang.fileupload.uploading",{percent:re.progress}),class:"h-1 w-full overflow-hidden rounded-pill bg-subtle"},{default:F(()=>[L(s(Bc),{class:"h-full bg-primary",style:ua({width:`${re.progress}%`})},null,8,["style"])]),_:2},1032,["model-value","aria-label"])):G("",!0),re.state==="failed"?(p(),g("p",QR,[b("span",eq,$(s(h)("backend::lang.fileupload.upload_error"))+": ",1),ge($(re.error),1)])):G("",!0)])],42,PR))),128))])):W.value&&!Z.value&&se.value.length>0?(p(),g("div",tq,[(p(!0),g(me,null,Me(se.value,re=>(p(),g("div",{key:re.uid,"data-file-item":re.uid,"data-state":re.state,class:"flex items-start gap-4"},[b("div",{class:ve([re.state==="failed"?"border-danger":"border-border","flex size-40 shrink-0 items-center justify-center overflow-hidden rounded-inner border bg-subtle"])},[re.state==="uploading"?(p(),j(s(On),{key:0,size:20,class:"animate-spin text-muted","aria-hidden":"true"})):re.state==="failed"?(p(),j(s(ht),{key:1,size:16,class:"text-danger","aria-hidden":"true"})):Wt(re)?(p(),g("img",{key:2,src:Wt(re)??void 0,alt:Ge(re),class:ve([mo.value,"size-full"]),onError:qe=>Ce(re)},null,42,nq)):E.value.has(re.uid)?(p(),g("span",rq,[L(s(am),{size:20,"aria-hidden":"true"}),ge(" "+$(s(h)("backend::lang.fileupload.preview_unavailable")),1)])):(p(),j(s(ql),{key:4,size:20,class:"text-muted","aria-hidden":"true"}))],2),b("div",lq,[b("span",{class:"truncate font-semibold",title:Ge(re)},$(Ge(re)),9,oq),b("span",sq,[re.state==="queued"?(p(),g("span",iq,$(s(h)("backend::lang.fileupload.queued")),1)):re.state==="uploading"?(p(),g("span",uq,$(s(h)("backend::lang.fileupload.uploading",{percent:re.progress})),1)):(p(),g("span",cq,$(he(re.size)),1)),st(re)?(p(),g("span",dq,$(s(h)("backend::lang.fileupload.unsaved")),1)):G("",!0)]),re.state==="uploading"?(p(),j(s(Nc),{key:0,"model-value":re.progress,max:100,"aria-label":s(h)("backend::lang.fileupload.uploading",{percent:re.progress}),class:"h-1 w-full overflow-hidden rounded-pill bg-subtle"},{default:F(()=>[L(s(Bc),{class:"h-full bg-primary",style:ua({width:`${re.progress}%`})},null,8,["style"])]),_:2},1032,["model-value","aria-label"])):G("",!0),re.state==="failed"?(p(),g("p",fq,[b("span",pq,$(s(h)("backend::lang.fileupload.upload_error"))+": ",1),ge($(re.error),1)])):G("",!0),N.value?G("",!0):(p(),g("div",vq,[re.state!=="failed"?(p(),j(Ue,{key:0,size:"sm",variant:"outline","data-action":"replace-file",icon:s(Go),onClick:Se},{default:F(()=>[ge($(s(h)("backend::lang.fileupload.replace_file")),1)]),_:1},8,["icon"])):G("",!0),re.state==="failed"&&re.retryable?(p(),j(Ue,{key:1,size:"sm",variant:"outline","data-action":"retry",icon:s(pi),onClick:qe=>et(re)},{default:F(()=>[ge($(s(h)("backend::lang.fileupload.retry")),1)]),_:1},8,["icon","onClick"])):G("",!0),e.field.useCaption&&re.state==="done"?(p(),j(Ue,{key:2,size:"sm",variant:"outline","data-caption":re.uid,icon:s(Wo),onClick:qe=>Mt(re)},{default:F(()=>[ge($(s(h)("backend::lang.fileupload.details_submit")),1)]),_:1},8,["data-caption","icon","onClick"])):G("",!0),L(Ue,{size:"sm",variant:"danger","data-action":"remove-file",icon:s(Xt),onClick:qe=>ot(re)},{default:F(()=>[ge($(s(h)("backend::lang.fileupload.remove_file")),1)]),_:1},8,["icon","onClick"])]))])],8,aq))),128))])):se.value.length>0?(p(),g("ul",mq,[(p(!0),g(me,null,Me(se.value,re=>(p(),g("li",{key:re.uid,"data-file-item":re.uid,"data-state":re.state,class:ve([[re.state==="failed"?"border-danger":"border-border",v.value===re.uid?"opacity-50":"",y.value===re.uid&&v.value!==re.uid?"border-2 border-dashed border-primary bg-sel":""],"flex min-h-14 flex-col justify-center gap-1 rounded-inner border bg-surface px-3 py-2"]),onDragover:qe=>ra(qe,re),onDrop:qe=>Wn(qe,re)},[b("div",yq,[Z.value&&!N.value&&re.state==="done"?(p(),g("button",{key:0,type:"button",draggable:"true","data-handle":re.uid,"aria-label":s(h)("backend::lang.fileupload.move",{name:re.name}),class:ve([Al,"cursor-grab"]),onKeydown:qe=>We(qe,re),onDragstart:qe=>Nt(qe,re),onDragend:bn},[L(s(Bi),{size:16,"aria-hidden":"true"})],40,gq)):G("",!0),b("span",bq,[re.state==="uploading"?(p(),j(s(On),{key:0,size:16,class:"animate-spin text-muted","aria-hidden":"true"})):re.state==="failed"?(p(),j(s(ht),{key:1,size:16,class:"text-danger","aria-hidden":"true"})):Wt(re)?(p(),g("img",{key:2,src:Wt(re)??void 0,alt:"",class:"size-8 object-cover",onError:qe=>Ce(re)},null,40,_q)):(p(),j(s(ql),{key:3,size:16,class:"text-muted","aria-hidden":"true"}))]),b("span",xq,[e.field.useCaption&&re.file?.title?(p(),g(me,{key:0},[b("span",{class:"truncate font-semibold",title:re.file.title},$(re.file.title),9,kq),b("span",{class:"truncate text-[13px] text-muted",title:re.name},$(re.name),9,wq)],64)):(p(),g("span",{key:1,class:"truncate",title:re.name},$(re.name),9,$q))]),b("span",Cq,[re.state==="queued"?(p(),g("span",Sq,$(s(h)("backend::lang.fileupload.queued")),1)):re.state==="uploading"?(p(),g("span",Eq,$(s(h)("backend::lang.fileupload.uploading",{percent:re.progress})),1)):(p(),g("span",Aq,$(he(re.size)),1)),st(re)?(p(),g("span",Tq,$(s(h)("backend::lang.fileupload.unsaved")),1)):G("",!0)]),!Z.value&&!N.value&&re.state!=="failed"?(p(),j(Ue,{key:1,size:"sm",variant:"outline","data-action":"replace-file",icon:s(Go),onClick:Se},{default:F(()=>[ge($(s(h)("backend::lang.fileupload.replace_file")),1)]),_:1},8,["icon"])):G("",!0),b("span",Dq,[re.state==="done"&&re.file?(p(),g(me,{key:0},[!e.field.protected&&re.file.url?(p(),g("a",{key:0,href:re.file.url,download:"",target:"_blank",rel:"noopener","aria-label":s(h)("backend::lang.fileupload.download",{name:re.name}),class:ve(Al)},[L(s(wd),{size:16,"aria-hidden":"true"})],8,Oq)):e.field.protected?(p(),g("button",{key:1,type:"button","data-action":"download","aria-label":s(h)("backend::lang.fileupload.download",{name:re.name}),class:ve(Al),onClick:qe=>Be(re,!0)},[L(s(wd),{size:16,"aria-hidden":"true"})],8,Mq)):G("",!0),e.field.useCaption&&!N.value?(p(),g("button",{key:2,type:"button","data-caption":re.uid,"aria-label":s(h)("backend::lang.fileupload.edit_details",{name:re.name}),class:ve(Al),onClick:qe=>Mt(re)},[L(s(Wo),{size:16,"aria-hidden":"true"})],8,Iq)):G("",!0)],64)):G("",!0),re.state==="failed"&&re.retryable?(p(),g("button",{key:1,type:"button","data-action":"retry","aria-label":s(h)("backend::lang.fileupload.retry"),class:ve(Al),onClick:qe=>et(re)},[L(s(pi),{size:16,"aria-hidden":"true"})],8,Pq)):G("",!0),N.value?G("",!0):(p(),g("button",{key:2,type:"button","data-action":"remove-file","aria-label":re.state==="uploading"||re.state==="queued"?s(h)("backend::lang.fileupload.cancel_upload",{name:re.name}):s(h)("backend::lang.form.remove_item",{name:re.name}),class:ve([Al,"hover:bg-danger-soft hover:text-danger"]),onClick:qe=>ot(re)},[L(s(Xt),{size:16,"aria-hidden":"true"})],8,Rq))])]),re.state==="uploading"?(p(),j(s(Nc),{key:0,"model-value":re.progress,max:100,"aria-label":s(h)("backend::lang.fileupload.uploading",{percent:re.progress}),class:"h-1 w-full overflow-hidden rounded-pill bg-subtle"},{default:F(()=>[L(s(Bc),{class:"h-full bg-primary",style:ua({width:`${re.progress}%`})},null,8,["style"])]),_:2},1032,["model-value","aria-label"])):G("",!0),re.state==="failed"?(p(),g("p",qq,[b("span",Lq,$(s(h)("backend::lang.fileupload.upload_error"))+": ",1),ge($(re.error),1)])):G("",!0)],42,hq))),128))])):G("",!0),ue.value?(p(),g("button",{key:4,type:"button","data-fileupload-dropzone":"","aria-describedby":e.describedBy||void 0,class:ve([[u.value?"border-solid border-primary bg-sel":e.invalid?"border-dashed border-danger bg-subtle":"border-dashed border-border-strong bg-subtle"],"flex min-h-[112px] w-full flex-col items-center justify-center gap-2 rounded-control border-[1.5px] px-4 py-6 text-center transition-colors duration-150 ease-out hover:bg-hover"]),onClick:Se,onDragover:xe,onDragleave:De[0]||(De[0]=re=>u.value=!1),onDrop:Le},[b("span",Bq,[L(s(Go),{size:20,class:"text-muted"})]),b("span",Fq,$(_e.value),1),Q.value!==""?(p(),g("span",Vq,$(Q.value),1)):G("",!0)],42,Nq)):te.value&&Q.value!==""?(p(),g("p",zq,$(Q.value),1)):G("",!0),d.value>0?(p(),g("p",jq,[L(s(ht),{size:14,class:"shrink-0","aria-hidden":"true"}),b("span",null,$(s(rl)("backend::lang.fileupload.too_many",d.value,{max:K.value??0})),1)])):G("",!0)],64)),b("input",{ref_key:"input",ref:f,type:"file",hidden:"",tabindex:"-1","data-fileupload-input":"",accept:we.value,multiple:Z.value||void 0,onChange:fe},null,40,Uq),b("p",Hq,$(c.value),1),e.field.useCaption?(p(),j(AR,{key:3,open:C.value,"onUpdate:open":De[1]||(De[1]=re=>C.value=re),file:kt.value?.file??null,routes:s(P),preview:kt.value?Wt(kt.value):null,"id-prefix":e.controlId,onSaved:Br,onClosed:vo},null,8,["open","file","routes","preview","id-prefix"])):G("",!0)],8,TR))}}),Jq=["id","name","value","required","aria-required","aria-invalid","aria-describedby"],Zq=le({__name:"NumberField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const a=e,n=t,r=_(()=>a.modelValue===null||a.modelValue===void 0?"":String(a.modelValue)),l=_(()=>Nr(a.field));function o(i){const u=i.target.value.trim();if(u===""){n("update:modelValue",null);return}const d=Number(u);n("update:modelValue",Number.isFinite(d)?d:null)}return(i,u)=>(p(),g("input",je({id:e.controlId},l.value,{name:e.field.name,type:"number",inputmode:"decimal",value:r.value,required:e.field.required||void 0,"aria-required":e.field.required?"true":void 0,"aria-invalid":e.invalid?"true":void 0,"aria-describedby":e.describedBy||void 0,class:[s(Lt)(e.invalid),"h-input tabular-nums"],onInput:o}),null,16,Jq))}}),Xq=["id","aria-labelledby","aria-describedby"],Qq=le({__name:"PartialField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},setup(e){const t=e,a=it(R0,A(0));return(n,r)=>(p(),g("div",{id:e.controlId,role:"group","data-partial-field":"","aria-labelledby":t.field.label?`${e.controlId}-label`:void 0,"aria-describedby":e.describedBy||void 0},[e.source?(p(),j(bp,{key:0,variant:"field",source:e.source,name:t.field.path||t.field.name,"record-id":e.recordId??null,"reload-key":s(a)},null,8,["source","name","record-id","reload-key"])):(p(),j(Uu,{key:1,"data-partial-failed":"",text:s(h)("backend::lang.extension.partial_failed")},null,8,["text"]))],8,Xq))}}),eL={class:"flex min-w-0 flex-col gap-1.5"},tL={class:"relative"},aL=["id","name","type","value","placeholder","disabled","required","aria-required","aria-invalid","aria-describedby"],nL=["aria-pressed","aria-label","disabled"],rL=["id","data-secret-state","role"],lL={key:3},oL=le({__name:"PasswordField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const a=e,n=t,r=A(!1),l=_(()=>typeof a.modelValue=="string"?a.modelValue:""),o=_(()=>Nr(a.field)),i=it(co,null);i&&Ne(i.revision,()=>{r.value=!1});const u=it(L0,null),d=_(()=>u?.value[a.field.name]??""),c=_(()=>d.value!==""),f=_(()=>d.value==="stored"&&a.modelValue===null),m=_(()=>`${a.controlId}-secret`),v=_(()=>[a.describedBy??"",c.value?m.value:""].filter(Boolean).join(" ")),y=_(()=>{if(d.value==="stored"&&!f.value)return h("backend::lang.secret.placeholder_stored");const k=o.value.placeholder;return typeof k=="string"?k:void 0});function x(){r.value=!1,n("update:modelValue",null)}function C(){n("update:modelValue","")}return(k,E)=>(p(),g("div",eL,[b("div",tL,[b("input",je({id:e.controlId,autocomplete:"new-password",spellcheck:"false"},o.value,{name:e.field.name,type:r.value?"text":"password",value:f.value?"":l.value,placeholder:y.value,disabled:f.value||void 0,required:e.field.required||void 0,"aria-required":e.field.required?"true":void 0,"aria-invalid":e.invalid?"true":void 0,"aria-describedby":v.value||void 0,class:[s(Lt)(e.invalid),"h-input pr-12"],onInput:E[0]||(E[0]=B=>n("update:modelValue",B.target.value))}),null,16,aL),b("button",{type:"button","data-password-toggle":"","aria-pressed":r.value?"true":"false","aria-label":s(h)(r.value?"backend::lang.form.hide_password":"backend::lang.form.show_password"),disabled:f.value||void 0,class:"absolute top-1/2 right-1.5 flex size-8 -translate-y-1/2 items-center justify-center rounded-pager text-muted transition-colors duration-150 ease-out hover:bg-hover hover:text-text disabled:opacity-60",onClick:E[1]||(E[1]=B=>r.value=!r.value)},[(p(),j(Kt(r.value?s(Z$):s(Q$)),{size:16,"aria-hidden":"true"}))],8,nL)]),c.value?(p(),g("p",{key:0,id:m.value,"data-secret-state":f.value?"clearing":d.value,role:f.value?"status":void 0,class:ve([f.value?"text-danger":"text-muted","flex flex-wrap items-center gap-2 text-[13px]"])},[f.value?(p(),g(me,{key:0},[L(s(ht),{size:14,class:"shrink-0","aria-hidden":"true"}),b("span",null,$(s(h)("backend::lang.secret.clear_pending")),1),L(Ue,{variant:"ghost",size:"sm",icon:s(vb),"data-action":"secret-undo",onClick:C},{default:F(()=>[ge($(s(h)("backend::lang.secret.undo")),1)]),_:1},8,["icon"])],64)):d.value==="stored"?(p(),g(me,{key:1},[L(s(ur),{size:14,class:"shrink-0","aria-hidden":"true"}),b("span",null,$(s(h)("backend::lang.secret.stored")),1),L(Ue,{variant:"ghost",size:"sm",icon:s(Tr),"data-action":"secret-clear",onClick:x},{default:F(()=>[ge($(s(h)("backend::lang.secret.clear")),1)]),_:1},8,["icon"])],64)):d.value==="env"?(p(),g(me,{key:2},[L(s(Nn),{size:14,class:"shrink-0","aria-hidden":"true"}),b("span",null,$(s(h)("backend::lang.secret.env")),1)],64)):(p(),g("span",lL,$(s(h)("backend::lang.secret.empty")),1))],10,rL)):G("",!0)]))}}),sL=["aria-labelledby","data-ml-field"],iL={class:"flex flex-wrap items-center gap-2"},uL=["value","aria-label"],cL=["value"],Wu=le({__name:"MLField",props:{inner:{},innerType:{},mlType:{},contentLocale:{type:Boolean},field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const a=e,n=t,r=_(()=>un(a.modelValue)),l=it(eu,null),o=_(()=>{const k=l?.value;return k&&k.length>0?[...k]:[]}),i=A(o.value[0]??"en"),u=_(()=>`${a.controlId}-label`),d=_(()=>`${a.controlId}-editor`),c=_(()=>r.value[i.value]??""),f=_(()=>({...a.field,type:a.innerType})),m=_(()=>a.contentLocale?{contentLocale:i.value}:{});function v(k){k&&(i.value=k)}function y(k){const E=k.target.value;v(E),EP(E)}function x(k){n("update:modelValue",{...r.value,[i.value]:k})}function C(k){const E=k.detail;typeof E=="string"&&E!==""&&v(E)}return xt(()=>{window.addEventListener(hs,C)}),jn(()=>{window.removeEventListener(hs,C)}),(k,E)=>(p(),g("div",{class:"flex flex-col gap-1.5",role:"group","aria-labelledby":u.value,"data-ml-field":e.mlType},[b("div",iL,[b("select",{"data-ml-locale":"",class:"rounded-control border border-border-strong bg-surface px-2 py-1 text-[13px]",value:i.value,"aria-label":`Locale for ${e.field.label||e.field.name}`,onChange:y},[(p(!0),g(me,null,Me(o.value,B=>(p(),g("option",{key:B,value:B},$(B),9,cL))),128))],40,uL)]),(p(),j(Kt(e.inner),je({field:f.value,"model-value":c.value,"control-id":d.value,invalid:e.invalid,"described-by":e.describedBy,source:e.source,"record-id":e.recordId},m.value,{"onUpdate:modelValue":x}),null,16,["field","model-value","control-id","invalid","described-by","source","record-id"]))],8,sL))}}),dL=["id","aria-labelledby","aria-describedby","aria-busy"],fL={key:0,"data-plugin-field-skeleton":"",class:"h-[42px] w-full rounded-control bg-skel","aria-hidden":"true"},F0=le({__name:"PluginField",props:{contentLocale:{},field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const a=e,n=t,r=it(Ku,null),l=A("loading"),o=A(null);let i=null,u=!1;const d=_(()=>r?.value||Ka.value),c=_(()=>JSON.stringify(a.field.typeOptions??{})),f=_(()=>a.field.readOnly===!0);function m(T,P){if(Object.is(T,P))return!0;if(T===null||P===null||typeof T!="object"||typeof P!="object")return!1;try{return JSON.stringify(T)===JSON.stringify(P)}catch{return!1}}function v(T,P){m(T.value,P)||(T.value=P)}function y(T,P,R){R?T.setAttribute(P,""):T.removeAttribute(P)}function x(T){T.setAttribute("field-name",a.field.name),T.setAttribute("record-id",a.recordId==null?"":String(a.recordId)),T.setAttribute("locale",a.contentLocale??""),T.setAttribute("ui-locale",d.value),T.setAttribute("options",c.value),y(T,"disabled",f.value),y(T,"invalid",a.invalid===!0)}function C(T){let P;return{promise:new Promise((U,S)=>{P=setTimeout(()=>S(new Error("field type element was not defined in time")),T)}),cancel:()=>clearTimeout(P)}}async function k(T){const P=await o8(T);if(customElements.get(T))return;if(P.length>0)throw new Error(`plugin script failed: ${P.join(", ")}`);const R=C(N0);try{await Promise.race([customElements.whenDefined(T),R.promise])}finally{R.cancel()}}async function E(T){const P=i,R=T.detail;if(!P||R===null||typeof R!="object")return;const{id:U,file:S}=R,I=Z=>{!u&&i===P&&P.dispatchEvent(new CustomEvent(tR,{detail:{id:U,...Z}}))},z=()=>h("backend::lang.fileupload.upload_failed"),D=a.source;if(!(S instanceof Blob)||!D){I({error:z()});return}const N=S instanceof File&&S.name!==""?S.name:"upload";try{const Z=await Re.POST("/{vendor}/{plugin}/{controller}/{id}/fields/{field}/upload",{params:{path:{...D,id:a.recordId??0,field:a.field.name}},body:{file:""},bodySerializer:()=>{const K=new FormData;return K.append("file",S,N),K}});if(Z.data){I({url:Z.data.data.url});return}const W=Z.response.status===422?_p(Z.error?.error):"";I({error:W||z()})}catch{I({error:z()})}}function B(T){E(T)}function O(T){const P=T.detail;P!==null&&typeof P=="object"&&Object.hasOwn(P,"value")&&n("update:modelValue",P.value)}return xt(async()=>{const T=a.field.element??"";try{if(T==="")throw new Error("plugin field without an element");if(await k(T),u||!o.value)return;const P=document.createElement(T);x(P),v(P,a.modelValue),P.addEventListener(gh,O),P.addEventListener(bh,B),o.value.append(P),i=P,l.value="ready"}catch{u||(l.value="failed")}}),Ne(()=>[a.recordId,a.invalid,a.contentLocale,f.value,d.value,c.value],()=>{i&&x(i)}),Ne(()=>a.modelValue,T=>{i&&v(i,T)},{deep:!0}),Et(()=>{u=!0,i?.removeEventListener(gh,O),i?.removeEventListener(bh,B),i=null}),(T,P)=>l.value==="failed"?(p(),j(Uu,{key:0,id:e.controlId,"data-plugin-field-failed":"","aria-describedby":e.describedBy||void 0,text:s(h)("backend::lang.extension.widget_failed")},null,8,["id","aria-describedby","text"])):(p(),g("div",{key:1,id:e.controlId,role:"group","data-plugin-field":"","aria-labelledby":e.field.label?`${e.controlId}-label`:void 0,"aria-describedby":e.describedBy||void 0,"aria-busy":l.value==="loading"?"true":void 0,class:"flex min-h-input min-w-0 flex-col"},[l.value==="loading"?(p(),g("span",fL)):G("",!0),b("div",{ref_key:"mountPoint",ref:o,class:"contents"},null,512)],8,dL))}}),pL=le({__name:"MLPluginField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const a=e,n=t;return(r,l)=>(p(),j(Wu,je(a,{inner:F0,"inner-type":e.field.type,"ml-type":e.field.type,"content-locale":"","onUpdate:modelValue":l[0]||(l[0]=o=>n("update:modelValue",o))}),null,16,["inner-type","ml-type"]))}}),vL=["id"],mL=["id","aria-labelledby","aria-label","aria-describedby","data-mode"],hL=["aria-labelledby"],yL=["id"],gL={class:"min-w-0 [overflow-wrap:anywhere]"},bL={key:0,class:"shrink-0 text-[12px] font-semibold text-muted","aria-hidden":"true"},_L=["data-permission","data-locked","data-locked-by"],xL={class:"flex min-w-0 flex-col"},kL=["id"],wL=["id"],$L=le({__name:"PermissionEditorField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const a=e,n=t,r=it(wp,null),l=_(()=>{const O=new Map;for(const T of r?.value[a.field.name]??[])O.set(T.code,T);return O}),o=_(()=>a.field.permissionOptions??[]),i=_(()=>a.field.mode==="radio"),u=_(()=>!!a.field.readOnly||!!Nr(a.field).readonly),d=_(()=>P0(a.field,a.modelValue)),c=_(()=>{const O=[],T=[];for(const P of o.value){if(!P.tab){T.push(P);continue}let R=O.find(U=>U.label===P.tab);R||(R={key:`tab:${P.tab}`,label:P.tab,options:[]},O.push(R)),R.options.push(P)}return T.length>0&&O.push({key:"other",label:h("backend::lang.permissioneditor.other"),options:T}),O}),f=[{value:"1",label:"backend::lang.permissioneditor.allow",checked:"data-[state=checked]:bg-ok-bg data-[state=checked]:text-ok-text"},{value:"0",label:"backend::lang.permissioneditor.inherit",checked:"data-[state=checked]:bg-surface data-[state=checked]:text-text data-[state=checked]:shadow-tab"},{value:"-1",label:"backend::lang.permissioneditor.deny",checked:"data-[state=checked]:bg-danger-soft data-[state=checked]:text-danger"}],m=_(()=>`${a.controlId}-label`);function v(O,T){return`${a.controlId}-${O}-${T}`}function y(O){return l.value.get(O.code)}function x(O){return u.value||!!O.locked||y(O)!==void 0}function C(O){return(!!O.locked||y(O)!==void 0)&&!u.value}function k(O){return y(O)?.note||h("backend::lang.permissioneditor.locked")}function E(O){const T=y(O);return T?T.value===1||i.value&&T.value===-1?T.value:0:d.value[O.code]??0}function B(O,T){if(x(O))return;const P={...d.value};T===1||i.value&&T===-1?P[O.code]=T:delete P[O.code],n("update:modelValue",P)}return(O,T)=>o.value.length===0?(p(),g("div",{key:0,id:e.controlId,"data-permission-empty":"",class:"flex min-h-input items-center rounded-control border border-border bg-subtle px-3.5 text-muted"},$(s(h)("backend::lang.permissioneditor.empty")),9,vL)):(p(),g("div",{key:1,id:e.controlId,role:"group","aria-labelledby":e.field.label?m.value:void 0,"aria-label":e.field.label?void 0:e.field.name,"aria-describedby":e.describedBy||void 0,class:ve([e.invalid?"border-danger":"border-border","overflow-hidden rounded-inner border"]),"data-permission-editor":"","data-mode":i.value?"radio":"checkbox"},[(p(!0),g(me,null,Me(c.value,(P,R)=>(p(),g("div",{key:P.key,role:"group","aria-labelledby":`${e.controlId}-section-${R}`,"data-permission-section":""},[b("h3",{id:`${e.controlId}-section-${R}`,class:ve([R>0?"border-t border-border":"","flex h-row-head items-center justify-between gap-4 bg-subtle px-4 font-semibold"])},[b("span",gL,$(P.label),1),i.value?G("",!0):(p(),g("span",bL,$(s(h)("backend::lang.permissioneditor.allow")),1))],10,yL),(p(!0),g(me,null,Me(P.options,(U,S)=>(p(),g("div",{key:U.code,"data-permission":U.code,"data-locked":C(U)?"":void 0,"data-locked-by":C(U)&&y(U)?"record":void 0,class:"flex min-h-[56px] items-center justify-between gap-x-4 gap-y-2 border-t border-border px-4 py-3 max-sm:flex-col max-sm:items-start"},[b("div",xL,[(p(),j(Kt(i.value?"span":"label"),{id:`${v(R,S)}-label`,for:i.value?void 0:v(R,S),class:"[overflow-wrap:anywhere]"},{default:F(()=>[ge($(U.label||U.code)+" ",1),C(U)?(p(),j(s(ur),{key:0,size:14,class:"ml-1 inline-block align-[-2px] text-muted","aria-hidden":"true"})):G("",!0)]),_:2},1032,["id","for"])),C(U)?(p(),g("p",{key:0,id:`${v(R,S)}-note`,class:"text-[13px] text-muted [overflow-wrap:anywhere]","data-permission-locked":""},$(k(U)),9,kL)):U.comment?(p(),g("p",{key:1,id:`${v(R,S)}-note`,class:"text-[13px] text-muted [overflow-wrap:anywhere]"},$(U.comment),9,wL)):G("",!0)]),i.value?(p(),j(s(W1),{key:0,orientation:"horizontal","model-value":String(E(U)),disabled:x(U),"aria-disabled":x(U)?"true":void 0,"aria-labelledby":`${v(R,S)}-label`,"aria-describedby":C(U)||U.comment?`${v(R,S)}-note`:void 0,class:"inline-flex shrink-0 gap-1 rounded-inner border border-border bg-subtle p-1","onUpdate:modelValue":I=>B(U,Number(I))},{default:F(()=>[(p(),g(me,null,Me(f,I=>L(s(G1),{key:I.value,value:I.value,"data-segment":I.value,class:ve([I.checked,"inline-flex h-pager items-center rounded-tab px-4 text-[13px] whitespace-nowrap text-muted transition-colors duration-150 ease-out hover:text-text disabled:cursor-not-allowed disabled:hover:text-muted data-[state=checked]:text-[14px] data-[state=checked]:font-semibold"])},{default:F(()=>[ge($(s(h)(I.label)),1)]),_:2},1032,["value","data-segment","class"])),64))]),_:1},8,["model-value","disabled","aria-disabled","aria-labelledby","aria-describedby","onUpdate:modelValue"])):(p(),j(s(hD),{key:1,id:v(R,S),"model-value":E(U)===1,disabled:x(U),"aria-disabled":x(U)?"true":void 0,"aria-labelledby":`${v(R,S)}-label`,"aria-describedby":C(U)||U.comment?`${v(R,S)}-note`:void 0,class:"flex size-[18px] shrink-0 items-center justify-center rounded-checkbox border border-border-strong bg-surface disabled:cursor-not-allowed disabled:opacity-60 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-on-primary","onUpdate:modelValue":I=>B(U,I===!0?1:0)},{default:F(()=>[L(s(gD),null,{default:F(()=>[L(s(qa),{size:14,"aria-hidden":"true"})]),_:1})]),_:1},8,["id","model-value","disabled","aria-disabled","aria-labelledby","aria-describedby","onUpdate:modelValue"]))],8,_L))),128))],8,hL))),128))],10,mL))}}),CL=le({__name:"FieldRenderer",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const a=e,n=t,r=_(()=>r_(a.field));return(l,o)=>(p(),j(Kt(r.value),{field:e.field,"model-value":e.modelValue,"control-id":e.controlId,invalid:e.invalid,"described-by":e.describedBy,labels:e.labels,source:e.source,"record-id":e.recordId,"onUpdate:modelValue":o[0]||(o[0]=i=>n("update:modelValue",i))},null,8,["field","model-value","control-id","invalid","described-by","labels","source","record-id"]))}}),SL=["data-field"],EL=["id"],AL={key:0,class:"text-danger","aria-hidden":"true"},TL=["id","for"],DL={key:0,class:"text-danger","aria-hidden":"true"},OL=["id"],ML=["id"],IL=["id"],PL=["id"],RL=le({__name:"FormField",props:{field:{},modelValue:{},errors:{},notices:{},labels:{},source:{},recordId:{},idPrefix:{}},emits:["update:modelValue"],setup(e,{emit:t}){const a=e,n=t,r=_(()=>`${a.idPrefix??"field"}-${a.field.name}`),l=_(()=>r.value),o=_(()=>`${r.value}-comment`),i=_(()=>`${r.value}-error`),u=_(()=>`${r.value}-notice`),d=_(()=>`${r.value}-trigger`),c=it(Ms,null),f=it($p,null),m=_(()=>f?.value[c?c.path(a.field.name):a.field.name]??""),v=_(()=>(a.errors?.length??0)>0),y=_(()=>(a.notices?.length??0)>0),x=_(()=>d7(a.field.type)),C=_(()=>f7(a.field.type)||Yu(a.field)),k=_(()=>!x.value&&!!a.field.comment),E=_(()=>[m.value!==""?d.value:"",k.value||x.value&&a.field.comment?o.value:"",v.value?i.value:"",y.value?u.value:""].filter(Boolean).join(" "));return(B,O)=>(p(),g("div",{class:"flex min-w-0 flex-col gap-1.5","data-field":e.field.name},[C.value&&e.field.label?(p(),g("span",{key:0,id:`${l.value}-label`,class:"font-semibold"},[ge($(e.field.label),1),e.field.required?(p(),g("span",AL," *")):G("",!0)],8,EL)):!x.value&&!C.value?(p(),g("label",{key:1,id:`${l.value}-label`,for:l.value,class:"font-semibold"},[ge($(e.field.label||e.field.name),1),e.field.required?(p(),g("span",DL," *")):G("",!0)],8,TL)):G("",!0),m.value!==""?(p(),g("p",{key:2,id:d.value,"data-trigger-note":"",class:"flex items-center gap-2 text-[13px] text-muted"},[L(s(Nn),{size:14,class:"shrink-0","aria-hidden":"true"}),b("span",null,$(m.value),1)],8,OL)):G("",!0),L(CL,{field:e.field,"model-value":e.modelValue,"control-id":l.value,invalid:v.value,"described-by":E.value,labels:e.labels,source:e.source,"record-id":e.recordId,"onUpdate:modelValue":O[0]||(O[0]=T=>n("update:modelValue",T))},null,8,["field","model-value","control-id","invalid","described-by","labels","source","record-id"]),k.value?(p(),g("p",{key:3,id:o.value,class:"text-[13px] text-muted"},$(e.field.comment),9,ML)):G("",!0),y.value?(p(),g("div",{key:4,id:u.value,role:"status","data-field-notice":"",class:"summer-callout summer-callout--warning text-[13px]!"},[(p(!0),g(me,null,Me(e.notices,(T,P)=>(p(),g("p",{key:P,class:"summer-callout__text"},$(T),1))),128))],8,IL)):G("",!0),v.value?(p(),g("div",{key:5,id:i.value,class:"flex flex-col gap-0.5 text-[13px] text-danger"},[(p(!0),g(me,null,Me(e.errors,(T,P)=>(p(),g("p",{key:P,class:"flex items-center gap-1.5"},[L(s(ht),{size:14,class:"shrink-0","aria-hidden":"true"}),b("span",null,$(T),1)]))),128))],8,PL)):G("",!0)],8,SL))}}),qL={class:"grid grid-cols-1 gap-x-6 gap-y-[22px] min-[600px]:grid-cols-2"},fo=le({__name:"FormGrid",props:{fields:{},values:{},errors:{},notices:{},labels:{},source:{},recordId:{},idPrefix:{},scopePath:{}},emits:["update"],setup(e,{emit:t}){const a=e,n=t;vt(Ms,{fields:_(()=>a.fields),values:_(()=>a.values),path:l=>a.scopePath?`${a.scopePath}.${l}`:l});function r(l){if(l.type===hl)return"col-span-full";switch(l.span){case"left":return"min-[600px]:col-start-1";case"right":return"min-[600px]:col-start-2";case"auto":case"row":return"";default:return"col-span-full"}}return(l,o)=>(p(),g("div",qL,[(p(!0),g(me,null,Me(e.fields,i=>(p(),j(RL,{key:i.name,class:ve(r(i)),field:i,"model-value":e.values[i.name],errors:e.errors[i.name],notices:e.notices?.[i.name],labels:e.labels?.[i.name],source:e.source,"record-id":e.recordId,"id-prefix":e.idPrefix,"onUpdate:modelValue":u=>n("update",i.name,u)},null,8,["class","field","model-value","errors","notices","labels","source","record-id","id-prefix","onUpdate:modelValue"]))),128))]))}}),LL=["data-preview-field"],NL=["id"],BL={class:"m-0 min-w-0"},FL={key:0,"data-switch":"true",class:"inline-flex h-6 items-center rounded-pill bg-ok-bg px-2.5 text-[12px] font-semibold text-ok-text"},VL={key:1,"data-switch":"false",class:"inline-flex h-6 items-center rounded-pill border border-border-strong px-2.5 text-[12px] font-semibold text-muted"},zL={class:"flex size-[22px] shrink-0 items-center justify-center rounded-full bg-primary text-[10px] font-bold text-on-primary","aria-hidden":"true"},jL={class:"font-semibold"},UL={key:0,class:"px-2 text-muted","data-empty":""},HL={key:0},KL={key:1,class:"text-muted","data-empty":""},WL={key:0},GL={key:1,class:"text-muted","data-empty":""},Gc="flex min-h-input items-center rounded-control border border-border bg-subtle px-3.5 [overflow-wrap:anywhere]",V0=le({__name:"PreviewField",props:{field:{},value:{},labels:{},source:{},recordId:{},idPrefix:{}},setup(e){const t=e,a=new Set(["datepicker","fileupload","partial","permissioneditor","richeditor","repeater","money","taglist"]),n=_(()=>`${t.idPrefix??"preview"}-${t.field.name}`),r=_(()=>`${n.value}-label`),l=_(()=>{const v=t.field.type;return a.has(v)||Yu(t.field)?"control":v==="checkbox"||v==="switch"?"toggle":v==="relation"?t.field.multiple?"chips":"relation":v==="textarea"?"textarea":"text"}),o=_(()=>({...t.field,readOnly:!0})),i=_(()=>r_(t.field));function u(v){return v==null||v===""}const d=_(()=>{const v=t.value;if(u(v)||typeof v=="object")return"";if(t.field.type==="dropdown"){const y=(t.field.options??[]).find(x=>String(x.value)===String(v));return y?y.label:String(v)}return String(v)}),c=_(()=>t.labels?.[0]?.label??""),f=_(()=>Array.isArray(t.value)?t.labels??[]:[]);function m(v){return v.trim().split(/\s+/).filter(Boolean).slice(0,2).map(x=>x.charAt(0).toUpperCase()).join("")}return(v,y)=>(p(),g("div",{class:"flex min-w-0 flex-col gap-1.5","data-preview-field":e.field.name},[b("dt",{id:r.value,class:"font-semibold"},$(e.field.label||e.field.name),9,NL),b("dd",BL,[l.value==="control"?(p(),j(Kt(i.value),{key:0,field:o.value,"model-value":e.value,"control-id":n.value,labels:e.labels,source:e.source,"record-id":e.recordId},null,8,["field","model-value","control-id","labels","source","record-id"])):l.value==="toggle"?(p(),g(me,{key:1},[s(Hu)(e.value)?(p(),g("span",FL,$(s(h)("backend::lang.list.column_switch_true")),1)):(p(),g("span",VL,$(s(h)("backend::lang.list.column_switch_false")),1))],64)):l.value==="chips"?(p(),g("div",{key:2,"data-preview-value":"",class:ve([Gc,"flex-wrap gap-1.5 p-1.5"])},[(p(!0),g(me,null,Me(f.value,x=>(p(),g("span",{key:String(x.value),"data-chip":"",class:"inline-flex min-h-[30px] items-center gap-1.5 rounded-pill bg-surface pr-3 pl-1"},[b("span",zL,$(m(x.label)),1),b("span",jL,$(x.label),1)]))),128)),f.value.length===0?(p(),g("span",UL,$(s(h)("backend::lang.list.empty_value")),1)):G("",!0)])):l.value==="relation"?(p(),g("div",{key:3,"data-preview-value":"",class:ve(Gc)},[c.value!==""?(p(),g("span",HL,$(c.value),1)):(p(),g("span",KL,$(e.field.emptyOption||s(h)("backend::lang.list.empty_value")),1))])):(p(),g("div",{key:4,"data-preview-value":"",class:ve([Gc,l.value==="textarea"?"items-start! py-3 whitespace-pre-wrap":""])},[d.value!==""?(p(),g("span",WL,$(d.value),1)):(p(),g("span",GL,$(s(h)("backend::lang.list.empty_value")),1))],2))])],8,LL))}}),z0=new Set(["p","br","strong","b","em","i","u","s","h3","ul","ol","li","blockquote","a","div","span"]);function j0(e){const t=document.createElement("template");return t.innerHTML=e,t.content}function YL(e){if(e==="")return[];const t=new Set;for(const a of Array.from(j0(e).querySelectorAll("*")))t.add(a.localName.toLowerCase());return[...t]}function _h(e){return YL(e).some(t=>!z0.has(t))}const JL=["aria-labelledby","aria-describedby","data-repeater"],ZL={key:0,"data-repeater-empty":"",class:"flex flex-col items-center gap-2 rounded-inner border border-dashed border-border-strong px-6 py-8 text-center"},XL={class:"font-semibold"},QL={key:0,class:"max-w-[420px] text-[13px] text-muted"},e9={key:0,"data-repeater-slot":"",class:"h-12 rounded-inner border-2 border-dashed border-primary bg-sel"},t9=["data-repeater-row","data-repeater-key","onDragover"],a9=["data-repeater-handle","aria-label","onKeydown","onDragstart"],n9={class:"text-[13px] text-muted tabular-nums"},r9=["title"],l9={key:1,"data-repeater-errors":"",class:"inline-flex h-6 items-center rounded-pill bg-danger-soft px-2.5 text-[13px] font-semibold text-danger"},o9={key:2,class:"flex gap-1"},s9=["aria-label","disabled","onClick"],i9=["aria-label","disabled","onClick"],u9=["aria-label","aria-expanded","aria-controls","onClick"],c9=["aria-label","disabled","onClick"],d9=["id"],f9={key:0,class:"m-0 grid grid-cols-1 gap-x-6 gap-y-[22px] min-[600px]:grid-cols-2"},p9={key:2,class:"flex flex-wrap items-center gap-4"},v9={key:0,"data-repeater-count":"",class:"text-[13px] text-muted tabular-nums"},Eo="inline-flex size-8 shrink-0 items-center justify-center rounded-pager text-muted transition-colors duration-150 ease-out hover:bg-hover hover:text-text disabled:cursor-not-allowed disabled:opacity-40",m9=le({__name:"RepeaterField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const a=e,n=t,r=it(Cp,null),l=_(()=>a.field.form?.fields??[]),o=_(()=>!!a.field.readOnly),i=_(()=>Array.isArray(a.modelValue)?a.modelValue.map(J=>J!==null&&typeof J=="object"&&!Array.isArray(J)?J:{}):[]),u=_(()=>typeof a.field.maxItems=="number"?a.field.maxItems:null),d=_(()=>typeof a.field.minItems=="number"?a.field.minItems:0),c=_(()=>a.field.prompt||h("backend::lang.repeater.add")),f=_(()=>`${a.controlId}-label`);let m=0;const v=A([]),y=A(new Set);let x;function C(){return m+=1,`r${m}`}Ne(()=>a.modelValue,J=>{J===x&&v.value.length===i.value.length||v.value.length!==i.value.length&&(v.value=i.value.map(()=>C()),y.value=new Set)},{immediate:!0});function k(J,Q){v.value=Q,x=J,n("update:modelValue",J)}function E(J){return J==null||J===""||J===!1||Array.isArray(J)&&J.length===0}function B(){const J={};for(const Q of l.value)Q.default!==void 0?J[Q.name]=Q.default:Q.type==="checkbox"||Q.type==="switch"?J[Q.name]=!1:J[Q.name]=null;return J}function O(J){return l.value.some(Q=>{const ae=J[Q.name];return E(ae)?!1:Q.default===void 0||String(Q.default)!==String(ae)})}function T(J){return(j0(J).textContent??"").replace(/\s+/g," ").trim()}function P(J){const Q=i.value[J]??{},ae=l.value.find(q=>q.name===a.field.titleFrom),w=ae?Q[ae.name]:void 0;let M="";return ae&&!E(w)&&typeof w!="object"&&(ae.type==="dropdown"?M=(ae.options??[]).find(q=>String(q.value)===String(w))?.label??String(w):ae.type==="richeditor"?M=T(String(w)):M=String(w).trim()),M!==""?M:h("backend::lang.repeater.untitled",{n:J+1})}function R(J,Q){const ae=`${a.field.name}.${Q}.`,w={};for(const[M,q]of Object.entries(J??{}))M.startsWith(ae)&&M.length>ae.length&&(w[M.slice(ae.length)]=q);return w}const U=_(()=>i.value.map((J,Q)=>R(r?.errors.value,Q))),S=_(()=>i.value.map((J,Q)=>R(r?.notices.value,Q))),I=J=>Object.keys(U.value[J]??{}).length;Ne(U,J=>{const Q=J.flatMap((ae,w)=>Object.keys(ae).length>0?[v.value[w]]:[]);if(Q.length>0){const ae=new Set(y.value);for(const w of Q)ae.delete(w);y.value=ae}});function z(J){return o.value||!y.value.has(J)}function D(J,Q){const ae=new Set(y.value);Q?ae.delete(J):ae.add(J),y.value=ae}const N=_(()=>v.value.some(J=>!y.value.has(J)));function Z(){y.value=N.value?new Set(v.value):new Set}const W=A(null),K=A(null);function ne(J){return W.value?.querySelector(`[data-repeater-handle="${J}"]`)??null}function oe(J,Q,ae){const w=i.value.map((M,q)=>q===J?{...M,[Q]:ae}:M);k(w,[...v.value]),r?.clearError(`${a.field.name}.${J}.${Q}`)}async function se(){if(o.value||u.value!==null&&i.value.length>=u.value)return;const J=C();k([...i.value,B()],[...v.value,J]),await He(),W.value?.querySelector(`[data-repeater-key="${J}"]`)?.querySelector('[data-repeater-body] input, [data-repeater-body] select, [data-repeater-body] textarea, [data-repeater-body] [contenteditable="true"]')?.focus()}async function de(J){const Q=i.value[J];if(!Q||o.value||i.value.length<=d.value)return;if(O(Q)&&r){const q=P(J);if(!await r.confirm({message:h("backend::lang.repeater.remove_confirm",{title:q}),confirmLabel:h("backend::lang.repeater.remove"),danger:!0}))return}const ae=v.value.filter((q,ie)=>ie!==J);k(i.value.filter((q,ie)=>ie!==J),ae),await He();const w=ae[J]??ae[J-1],M=w?ne(w):null;M?M.focus():K.value?.$el.focus()}async function ue(J,Q){const ae=i.value.length;if(o.value||J===Q||J<0||Q<0||J>=ae||Q>=ae)return;const w=[...i.value],M=[...v.value],[q]=w.splice(J,1),[ie]=M.splice(J,1);w.splice(Q,0,q),M.splice(Q,0,ie),k(w,M),await He(),ne(ie)?.focus(),r?.announce(h("backend::lang.repeater.moved",{title:P(Q),position:Q+1,total:ae}))}function te(J,Q){(J.key==="ArrowUp"||J.key==="ArrowDown")&&(J.preventDefault(),ue(Q,J.key==="ArrowUp"?Q-1:Q+1))}const ye=A(null),H=A(null);function we(J,Q){ye.value=Q,H.value=null,J.dataTransfer?.setData("text/plain",v.value[Q]??""),J.dataTransfer&&(J.dataTransfer.effectAllowed="move")}function _e(J,Q){if(ye.value===null)return;J.preventDefault();const w=J.currentTarget.getBoundingClientRect();H.value=J.clientY>w.top+w.height/2?Q+1:Q}function Y(J){if(ye.value===null||H.value===null)return;J.preventDefault();const Q=ye.value,ae=H.value>Q?H.value-1:H.value;he(),ue(Q,ae)}function he(){ye.value=null,H.value=null}return(J,Q)=>(p(),g("div",{ref_key:"root",ref:W,role:"group","aria-labelledby":f.value,"aria-describedby":e.describedBy||void 0,"data-repeater":e.field.name,class:"flex flex-col gap-4"},[i.value.length===0?(p(),g("div",ZL,[b("p",XL,$(s(h)("backend::lang.repeater.empty")),1),o.value?G("",!0):(p(),g("p",QL,$(s(h)("backend::lang.repeater.empty_hint",{prompt:c.value})),1))])):G("",!0),(p(!0),g(me,null,Me(i.value,(ae,w)=>(p(),g(me,{key:v.value[w]},[ye.value!==null&&H.value===w&&H.value!==ye.value&&H.value!==ye.value+1?(p(),g("div",e9)):G("",!0),b("div",{"data-repeater-row":w,"data-repeater-key":v.value[w],class:ve([[I(w)>0?"border-danger":"border-border",ye.value===w?"opacity-50":""],"rounded-inner border bg-surface"]),onDragover:M=>_e(M,w),onDrop:Y},[b("div",{class:ve([z(v.value[w])?"rounded-t-inner border-b border-border":"rounded-inner","flex min-h-12 items-center gap-2 bg-subtle px-2"])},[o.value?G("",!0):(p(),g("button",{key:0,type:"button",draggable:"true","data-repeater-handle":v.value[w],"aria-label":s(h)("backend::lang.repeater.move",{title:P(w)}),class:ve([Eo,"cursor-grab"]),onKeydown:M=>te(M,w),onDragstart:M=>we(M,w),onDragend:he},[L(s(Bi),{size:16,"aria-hidden":"true"})],40,a9)),b("span",n9,$(w+1)+".",1),b("span",{"data-repeater-title":"",class:"min-w-0 flex-1 truncate font-semibold",title:P(w)},$(P(w)),9,r9),I(w)>0?(p(),g("span",l9,$(s(rl)("backend::lang.form.tab_errors",I(w))),1)):G("",!0),o.value?G("",!0):(p(),g("div",o9,[b("button",{type:"button","data-action":"repeater-up","aria-label":s(h)("backend::lang.repeater.move_up",{title:P(w)}),disabled:w===0,class:ve(Eo),onClick:M=>ue(w,w-1)},[L(s(Qg),{size:16,"aria-hidden":"true"})],8,s9),b("button",{type:"button","data-action":"repeater-down","aria-label":s(h)("backend::lang.repeater.move_down",{title:P(w)}),disabled:w===i.value.length-1,class:ve(Eo),onClick:M=>ue(w,w+1)},[L(s(yr),{size:16,"aria-hidden":"true"})],8,i9),b("button",{type:"button","data-action":"repeater-toggle","aria-label":s(h)(z(v.value[w])?"backend::lang.repeater.collapse":"backend::lang.repeater.expand",{title:P(w)}),"aria-expanded":z(v.value[w])?"true":"false","aria-controls":`${e.controlId}-${v.value[w]}-body`,class:ve(Eo),onClick:M=>D(v.value[w],!z(v.value[w]))},[L(s(yr),{size:16,class:ve([z(v.value[w])?"rotate-180":"","transition-transform duration-150"]),"aria-hidden":"true"},null,8,["class"])],8,u9),b("button",{type:"button","data-action":"repeater-remove","aria-label":s(h)("backend::lang.repeater.remove_named",{title:P(w)}),disabled:i.value.length<=d.value,class:ve([Eo,"hover:bg-danger-soft hover:text-danger"]),onClick:M=>de(w)},[L(s(Tr),{size:16,"aria-hidden":"true"})],8,c9)]))],2),z(v.value[w])?(p(),g("div",{key:0,id:`${e.controlId}-${v.value[w]}-body`,"data-repeater-body":"",class:"p-4"},[o.value?(p(),g("dl",f9,[(p(!0),g(me,null,Me(l.value,M=>(p(),j(V0,{key:M.name,class:ve(M.span==="left"?"min-[600px]:col-start-1":M.span==="right"?"min-[600px]:col-start-2":"col-span-full"),field:{...M,readOnly:!0},value:ae[M.name],source:e.source,"record-id":e.recordId,"id-prefix":`${e.controlId}-${v.value[w]}`},null,8,["class","field","value","source","record-id","id-prefix"]))),128))])):(p(),j(fo,{key:1,fields:l.value,values:ae,errors:U.value[w]??{},notices:S.value[w],source:e.source,"record-id":e.recordId,"id-prefix":`${e.controlId}-${v.value[w]}`,"scope-path":e.field.name,onUpdate:(M,q)=>oe(w,M,q)},null,8,["fields","values","errors","notices","source","record-id","id-prefix","scope-path","onUpdate"]))],8,d9)):G("",!0)],42,t9)],64))),128)),ye.value!==null&&H.value===i.value.length&&H.value!==ye.value+1?(p(),g("div",{key:1,"data-repeater-slot":"",class:"h-12 rounded-inner border-2 border-dashed border-primary bg-sel",onDragover:Q[0]||(Q[0]=mt(()=>{},["prevent"])),onDrop:Y},null,32)):G("",!0),o.value?G("",!0):(p(),g("div",p9,[L(Ue,{ref_key:"addButton",ref:K,variant:"outline",size:"sm",icon:s(Ss),"data-action":"repeater-add",disabled:u.value!==null&&i.value.length>=u.value,onClick:se},{default:F(()=>[ge($(c.value),1)]),_:1},8,["icon","disabled"]),u.value!==null?(p(),g("span",v9,$(s(h)("backend::lang.repeater.count",{current:i.value.length,max:u.value})),1)):G("",!0),i.value.length>1?(p(),j(Ue,{key:1,variant:"ghost",size:"sm",class:"ml-auto","data-action":"repeater-toggle-all",onClick:Z},{default:F(()=>[ge($(s(h)(N.value?"backend::lang.repeater.collapse_all":"backend::lang.repeater.expand_all")),1)]),_:1})):G("",!0)]))],8,JL))}}),h9="modulepreload",y9=function(e,t){return new URL(e,t).href},xh={},U0=function(t,a,n){let r=Promise.resolve();if(a&&a.length>0){let d=function(c){return Promise.all(c.map(f=>Promise.resolve(f).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};const o=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),u=i?.nonce||i?.getAttribute("nonce");r=d(a.map(c=>{if(c=y9(c,n),c in xh)return;xh[c]=!0;const f=c.endsWith(".css"),m=f?'[rel="stylesheet"]':"";if(n)for(let y=o.length-1;y>=0;y--){const x=o[y];if(x.href===c&&(!f||x.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${m}`))return;const v=document.createElement("link");if(v.rel=f?"stylesheet":h9,f||(v.as="script"),v.crossOrigin="",v.href=c,u&&v.setAttribute("nonce",u),document.head.appendChild(v),f)return new Promise((y,x)=>{v.addEventListener("load",y),v.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${c}`)))})}))}function l(o){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o}return r.then(o=>{for(const i of o||[])i.status==="rejected"&&l(i.reason);return t().catch(l)})};function kh(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,n=Array(t);a2?n-2:0),l=2;l1?a-1:0),r=1;r"u"?null:Vt(BigInt.prototype.toString),Ah=typeof Symbol>"u"?null:Vt(Symbol.prototype.toString),da=Vt(Object.prototype.hasOwnProperty),Do=Vt(Object.prototype.toString),Qt=Vt(RegExp.prototype.test),tr=O9(TypeError);function Vt(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var a=arguments.length,n=new Array(a>1?a-1:0),r=1;r2&&arguments[2]!==void 0?arguments[2]:No;if(wh&&wh(e,null),!Yl(t))return e;let n=t.length;for(;n--;){let r=t[n];if(typeof r=="string"){const l=a(r);l!==r&&(w9(t)||(t[n]=l),r=l)}e[r]=!0}return e}function M9(e){for(let t=0;t/g),B9=Yt(/\${[\w\W]*/g),F9=Yt(/^data-[\-\w.\u00B7-\uFFFF]+$/),V9=Yt(/^aria-[\-\w]+$/),Ih=Yt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),z9=Yt(/^(?:\w+script|data):/i),j9=Yt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),U9=Yt(/^html$/i),H9=Yt(/^[a-z][.\w]*(-[.\w]+)+$/i),Ph=Yt(/<[/\w!]/g),Rh=Yt(/<[/\w]/g),K9=Yt(/<\/no(script|embed|frames)/i),W9=Yt(/\/>/i),ba={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},W0=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],G9=Ut(ft({},W0)),Y9=(function(){const e={};return Yr(W0,t=>{e[t]=Yt(new RegExp("])","i"))}),Ut(e)})(),J9=function(){return typeof window>"u"?null:window},Z9=function(t,a){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const r="data-tt-policy-suffix";a&&a.hasAttribute(r)&&(n=a.getAttribute(r));const l="dompurify"+(n?"#"+n:"");try{return t.createPolicy(l,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+l+" could not be created."),null}},qh=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},ar=function(t,a,n,r){return da(t,a)&&Yl(t[a])?ft(r.base?_a(r.base):{},t[a],r.transform):n},ed=function(t,a,n){const r=da(t,a)?t[a]:void 0;return r&&typeof r=="object"?_a(r):n()};function G0(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:J9();const t=Oe=>G0(Oe);if(t.version="3.4.16",t.removed=[],!e||!e.document||e.document.nodeType!==ba.document||!e.Element)return t.isSupported=!1,t;let a=e.document;const n=a,r=n.currentScript;e.DocumentFragment;const l=e.HTMLTemplateElement,o=e.Node,i=e.Element,u=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const d=e.DOMParser,c=e.trustedTypes,f=i.prototype,m=Aa(f,"cloneNode"),v=Aa(f,"remove"),y=Aa(f,"removeAttributeNode"),x=Aa(f,"nextSibling"),C=Aa(f,"childNodes"),k=Aa(f,"parentNode"),E=Aa(f,"shadowRoot"),B=Aa(f,"attributes"),O=o&&o.prototype?Aa(o.prototype,"nodeType"):null,T=o&&o.prototype?Aa(o.prototype,"nodeName"):null,P=o&&o.prototype?Aa(o.prototype,"ownerDocument"):null,R=function(V){return O?O(V):V.nodeType},U=function(V){return T?T(V):V.nodeName};if(typeof l=="function"){const Oe=a.createElement("template");Oe.content&&Oe.content.ownerDocument&&(a=Oe.content.ownerDocument)}let S,I="",z,D=!1,N=0;const Z=function(){if(N>0)throw tr('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},W=function(V){Z(),N++;try{return S.createHTML(V)}finally{N--}},K=function(V){Z(),N++;try{return S.createScriptURL(V)}finally{N--}},ne=function(){return D||(z=Z9(c,r),D=!0),z},oe=a,se=oe.implementation,de=oe.createNodeIterator,ue=oe.createDocumentFragment,te=oe.getElementsByTagName,ye=n.importNode;let H=qh();t.isSupported=typeof H0=="function"&&typeof k=="function"&&se&&se.createHTMLDocument!==void 0;const we=L9,_e=N9,Y=B9,he=F9,J=V9,Q=z9,ae=j9,w=H9;let M=Ih,q=null;const ie=ft({},[...Th,...Jc,...Zc,...Xc,...Dh]);let ee=null;const pe=ft({},[...Oh,...Qc,...Mh,...ri]);let Ee=Object.seal(Il(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Se=null,Te=null;const fe=Object.seal(Il(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let $e=!0,xe=!0,Le=!1,Fe=!0,Ke=!1,tt=!0,et=!1,ot=!1,rt=null,Tt=null,Ot=!1,zt=!1,ze=!1,Ve=!1,We=!0,Nt=!1;const ra="user-content-";let Wn=!0,bn=!1,La={},Wt=null;const Gn=ft({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let _n=null;const Yn=ft({},["audio","video","img","source","image","track"]);let Ce=null;const Be=ft({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ge="http://www.w3.org/1998/Math/MathML",st="http://www.w3.org/2000/svg",kt="http://www.w3.org/1999/xhtml";let Mt=kt,Br=!1,vo=null;const mo=ft({},[Ge,st,kt],Yc),X=Ut(["mi","mo","mn","ms","mtext"]);let De=ft({},X);const re=Ut(["annotation-xml"]);let qe=ft({},re);const nt=ft({},["title","style","font","a","script"]);let Pt=null;const Ya=["application/xhtml+xml","text/html"],Jn="text/html";let Rt=null,yl=null;const h_=a.createElement("form"),Tp=function(V){return V instanceof RegExp||V instanceof Function},Ju=function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(yl&&yl===V)return;(!V||typeof V!="object")&&(V={}),V=_a(V),Pt=Ya.indexOf(V.PARSER_MEDIA_TYPE)===-1?Jn:V.PARSER_MEDIA_TYPE,Rt=Pt==="application/xhtml+xml"?Yc:No,q=ar(V,"ALLOWED_TAGS",ie,{transform:Rt}),ee=ar(V,"ALLOWED_ATTR",pe,{transform:Rt}),vo=ar(V,"ALLOWED_NAMESPACES",mo,{transform:Yc}),Ce=ar(V,"ADD_URI_SAFE_ATTR",Be,{transform:Rt,base:Be}),_n=ar(V,"ADD_DATA_URI_TAGS",Yn,{transform:Rt,base:Yn}),Wt=ar(V,"FORBID_CONTENTS",Gn,{transform:Rt}),Se=ar(V,"FORBID_TAGS",_a({}),{transform:Rt}),Te=ar(V,"FORBID_ATTR",_a({}),{transform:Rt}),La=da(V,"USE_PROFILES")?V.USE_PROFILES&&typeof V.USE_PROFILES=="object"?_a(V.USE_PROFILES):V.USE_PROFILES:!1,$e=V.ALLOW_ARIA_ATTR!==!1,xe=V.ALLOW_DATA_ATTR!==!1,Le=V.ALLOW_UNKNOWN_PROTOCOLS||!1,Fe=V.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ke=V.SAFE_FOR_TEMPLATES||!1,tt=V.SAFE_FOR_XML!==!1,et=V.WHOLE_DOCUMENT||!1,zt=V.RETURN_DOM||!1,ze=V.RETURN_DOM_FRAGMENT||!1,Ve=V.RETURN_TRUSTED_TYPE||!1,Ot=V.FORCE_BODY||!1,We=V.SANITIZE_DOM!==!1,Nt=V.SANITIZE_NAMED_PROPS||!1,Wn=V.KEEP_CONTENT!==!1,bn=V.IN_PLACE||!1,M=P9(V.ALLOWED_URI_REGEXP)?V.ALLOWED_URI_REGEXP:Ih,Mt=typeof V.NAMESPACE=="string"?V.NAMESPACE:kt,De=ed(V,"MATHML_TEXT_INTEGRATION_POINTS",()=>ft({},X)),qe=ed(V,"HTML_INTEGRATION_POINTS",()=>ft({},re));const ce=ed(V,"CUSTOM_ELEMENT_HANDLING",()=>Il(null));if(Ee=Il(null),da(ce,"tagNameCheck")&&Tp(ce.tagNameCheck)&&(Ee.tagNameCheck=ce.tagNameCheck),da(ce,"attributeNameCheck")&&Tp(ce.attributeNameCheck)&&(Ee.attributeNameCheck=ce.attributeNameCheck),da(ce,"allowCustomizedBuiltInElements")&&typeof ce.allowCustomizedBuiltInElements=="boolean"&&(Ee.allowCustomizedBuiltInElements=ce.allowCustomizedBuiltInElements),Yt(Ee),Ke&&(xe=!1),ze&&(zt=!0),La&&(q=ft({},Dh),ee=Il(null),La.html===!0&&(ft(q,Th),ft(ee,Oh)),La.svg===!0&&(ft(q,Jc),ft(ee,Qc),ft(ee,ri)),La.svgFilters===!0&&(ft(q,Zc),ft(ee,Qc),ft(ee,ri)),La.mathMl===!0&&(ft(q,Xc),ft(ee,Mh),ft(ee,ri))),fe.tagCheck=null,fe.attributeCheck=null,da(V,"ADD_TAGS")&&(typeof V.ADD_TAGS=="function"?fe.tagCheck=V.ADD_TAGS:Yl(V.ADD_TAGS)&&(q===ie&&(q=_a(q)),ft(q,V.ADD_TAGS,Rt))),da(V,"ADD_ATTR")&&(typeof V.ADD_ATTR=="function"?fe.attributeCheck=V.ADD_ATTR:Yl(V.ADD_ATTR)&&(ee===pe&&(ee=_a(ee)),ft(ee,V.ADD_ATTR,Rt))),da(V,"ADD_FORBID_CONTENTS")&&Yl(V.ADD_FORBID_CONTENTS)&&(Wt===Gn&&(Wt=_a(Wt)),ft(Wt,V.ADD_FORBID_CONTENTS,Rt)),Wn&&(q["#text"]=!0),et&&ft(q,["html","head","body"]),q.table&&(ft(q,["tbody"]),delete Se.tbody),V.TRUSTED_TYPES_POLICY){if(typeof V.TRUSTED_TYPES_POLICY.createHTML!="function")throw tr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof V.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw tr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const Ae=S;S=V.TRUSTED_TYPES_POLICY;try{I=W("")}catch(Pe){throw S=Ae,Pe}}else V.TRUSTED_TYPES_POLICY===null?(S=void 0,I=""):(S===void 0&&(S=ne()),S&&typeof I=="string"&&(I=W("")));Ut&&Ut(V),yl=V},Dp=ft({},[...Jc,...Zc,...R9]),Op=ft({},[...Xc,...q9]),y_=function(V,ce,Ae){return ce.namespaceURI===kt?V==="svg":ce.namespaceURI===Ge?V==="svg"&&(Ae==="annotation-xml"||De[Ae]):!!Dp[V]},g_=function(V,ce,Ae){return ce.namespaceURI===kt?V==="math":ce.namespaceURI===st?V==="math"&&qe[Ae]:!!Op[V]},b_=function(V,ce,Ae){return ce.namespaceURI===st&&!qe[Ae]||ce.namespaceURI===Ge&&!De[Ae]?!1:!Op[V]&&(nt[V]||!Dp[V])},__=function(V){let ce=k(V);(!ce||!ce.tagName)&&(ce={namespaceURI:Mt,tagName:"template"});const Ae=No(V.tagName),Pe=No(ce.tagName);return vo[V.namespaceURI]?V.namespaceURI===st?y_(Ae,ce,Pe):V.namespaceURI===Ge?g_(Ae,ce,Pe):V.namespaceURI===kt?b_(Ae,ce,Pe):!!(Pt==="application/xhtml+xml"&&vo[V.namespaceURI]):!1},Zn=function(V){Ao(t.removed,{element:V});try{k(V).removeChild(V)}catch{if(v(V),!k(V))throw tr("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Mp=function(V,ce,Ae){try{y(V,ce)}catch{try{V.removeAttribute(Ae)}catch{}}},Ps=function(V){Rs(V);const ce=C(V);if(ce){const Pe=[];Yr(ce,Ye=>{Ao(Pe,Ye)}),Yr(Pe,Ye=>{try{v(Ye)}catch{}})}const Ae=B(V);if(Ae)for(let Pe=Ae.length-1;Pe>=0;--Pe){const Ye=Ae[Pe],ct=Ye&&Ye.name;typeof ct=="string"&&Mp(V,Ye,ct)}},Fr=function(V,ce,Ae){if(!Ae)try{Ae=ce.getAttributeNode(V)}catch{Ae=null}Ao(t.removed,{attribute:Ae||null,from:ce});try{Ae?y(ce,Ae):ce.removeAttribute(V)}catch{try{ce.removeAttribute(V)}catch{}}if(V==="is")if(zt||ze)try{Zn(ce)}catch{}else try{ce.setAttribute(V,"")}catch{}},x_=function(V){const ce=B(V);if(ce)for(let Ae=ce.length-1;Ae>=0;--Ae){const Pe=ce[Ae],Ye=Pe&&Pe.name;typeof Ye!="string"||ee[Rt(Ye)]||Mp(V,Pe,Ye)}},Rs=function(V){const ce=[V];for(;ce.length>0;){const Ae=ce.pop();R(Ae)===ba.element&&x_(Ae);const Pe=C(Ae);if(Pe)for(let Ye=Pe.length-1;Ye>=0;--Ye)ce.push(Pe[Ye])}},Ip=function(V,ce){return tt?V==="patchsrc"?!0:V==="for"&&ce!=="label"&&ce!=="output":!1},k_=function(V){if(!tt)return;const ce=[V];for(;ce.length>0;){const Ae=ce.pop(),Pe=R(Ae);if(Pe===ba.processingInstruction||Pe===ba.comment&&Qt(Rh,Ae.data)){try{v(Ae)}catch{}continue}if(Pe===ba.element){const ct=Ae,dt=Rt(U(Ae));try{ct.hasAttribute&&ct.hasAttribute("patchsrc")&&ct.removeAttribute("patchsrc"),ct.hasAttribute&&ct.hasAttribute("for")&&Ip("for",dt)&&ct.removeAttribute("for")}catch{}}const Ye=C(Ae);if(Ye)for(let ct=Ye.length-1;ct>=0;--ct)ce.push(Ye[ct])}},Pp=function(V){let ce=null,Ae=null;if(Ot)V=""+V;else{const ct=Ch(V,/^[\r\n\t ]+/);Ae=ct&&ct[0]}Pt==="application/xhtml+xml"&&Mt===kt&&(V=''+V+"");const Pe=S?W(V):V;if(Mt===kt)try{ce=new d().parseFromString(Pe,Pt)}catch{}if(!ce||!ce.documentElement){ce=se.createDocument(Mt,"template",null);try{ce.documentElement.innerHTML=Br?I:Pe}catch{}}const Ye=ce.body||ce.documentElement;return V&&Ae&&Ye.insertBefore(a.createTextNode(Ae),Ye.childNodes[0]||null),Mt===kt?te.call(ce,et?"html":"body")[0]:et?ce.documentElement:Ye},Rp=function(V){const ce=P?P(V):V.ownerDocument;return de.call(ce||V,V,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},qs=function(V){return V=To(V,we," "),V=To(V,_e," "),V=To(V,Y," "),V},Zu=function(V){var ce;V.normalize();const Ae=P?P(V):V.ownerDocument,Pe=de.call(Ae||V,V,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null);let Ye=Pe.nextNode();for(;Ye;)Ye.data=qs(Ye.data),Ye=Pe.nextNode();const ct=(ce=V.querySelectorAll)===null||ce===void 0?void 0:ce.call(V,"template");ct&&Yr(ct,dt=>{gl(dt.content)&&Zu(dt.content)})},Ls=function(V){const ce=T?T(V):null;return typeof ce!="string"||Rt(ce)!=="form"?!1:typeof V.nodeName!="string"||typeof V.textContent!="string"||typeof V.removeChild!="function"||V.attributes!==B(V)||typeof V.removeAttribute!="function"||typeof V.removeAttributeNode!="function"||typeof V.getAttributeNode!="function"||typeof V.setAttribute!="function"||typeof V.namespaceURI!="string"||typeof V.insertBefore!="function"||typeof V.hasChildNodes!="function"||V.nodeType!==O(V)||V.childNodes!==C(V)},gl=function(V){if(!O||typeof V!="object"||V===null)return!1;try{return O(V)===ba.documentFragment}catch{return!1}},ho=function(V){if(!O||typeof V!="object"||V===null)return!1;try{return typeof O(V)=="number"}catch{return!1}};function Ja(Oe,V,ce){Oe.length!==0&&Yr(Oe,Ae=>{Ae.call(t,V,ce,yl)})}const w_=function(V,ce){return!!(tt&&V.hasChildNodes()&&!ho(V.firstElementChild)&&Qt(Ph,V.textContent)&&Qt(Ph,V.innerHTML)||tt&&V.namespaceURI===kt&&G9[ce]&&(ho(V.firstElementChild)||typeof V.textContent=="string"&&Qt(Y9[ce],V.textContent))||V.nodeType===ba.processingInstruction||tt&&V.nodeType===ba.comment&&Qt(Rh,V.data))},Ns=function(V,ce){if(V instanceof RegExp)return Qt(V,ce);if(V instanceof Function){for(var Ae=arguments.length,Pe=new Array(Ae>2?Ae-2:0),Ye=2;Ye=0;--dt){const It=V===Ae?m(Ye[dt],!0):Ye[dt];Pe.insertBefore(It,x(V))}}}return Zn(V),!0},qp=function(V,ce,Ae,Pe){return V.length===0?ce:ce===Ae||ce===Pe?_a(ce):ce},bl=function(V,ce){return V===ce||k(V)!==null?!1:(bn&&Rs(V),!0)},Lp=function(V,ce){if(Ja(H.beforeSanitizeElements,V,null),bl(V,ce))return!0;if(Ls(V))return Zn(V),!0;const Ae=Rt(U(V));if(q=qp(H.uponSanitizeElement,q,ie,rt),Ja(H.uponSanitizeElement,V,{tagName:Ae,allowedTags:q}),bl(V,ce))return!0;if(w_(V,Ae))return Zn(V),!0;if(Se[Ae]||!(fe.tagCheck instanceof Function&&fe.tagCheck(Ae))&&!q[Ae]){const Pe=$_(V,Ae,ce);return Pe===!1&&(Ja(H.afterSanitizeElements,V,null),bl(V,ce))?!0:Pe}if(R(V)===ba.element&&!__(V)||(Ae==="noscript"||Ae==="noembed"||Ae==="noframes")&&Qt(K9,V.innerHTML))return Zn(V),!0;if(Ke&&V.nodeType===ba.text){const Pe=qs(V.textContent);V.textContent!==Pe&&(Ao(t.removed,{element:V.cloneNode()}),V.textContent=Pe)}return Ja(H.afterSanitizeElements,V,null),bl(V,ce)},Np=function(V,ce,Ae){if(Te[ce]||Ip(ce,V)||We&&(ce==="id"||ce==="name")&&(Ae in a||Ae in h_))return!1;const Pe=ee[ce]||fe.attributeCheck instanceof Function&&fe.attributeCheck(ce,V);return xe&&Qt(he,ce)||$e&&Qt(J,ce)?!0:Pe?Ce[ce]||Qt(M,To(Ae,ae,""))||(ce==="src"||ce==="xlink:href"||ce==="href")&&V!=="script"&&Sh(Ae,"data:")===0&&_n[V]||Le&&!Qt(Q,To(Ae,ae,""))?!0:!Ae:Bp(V)&&Ns(Ee.tagNameCheck,V)&&Ns(Ee.attributeNameCheck,ce,V)||ce==="is"&&Ee.allowCustomizedBuiltInElements&&Ns(Ee.tagNameCheck,Ae)},C_=ft({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Bp=function(V){return!C_[No(V)]&&Qt(w,V)},S_=function(V,ce,Ae,Pe){if(S&&typeof c=="object"&&typeof c.getAttributeType=="function"&&!Ae)switch(c.getAttributeType(V,ce)){case"TrustedHTML":return W(Pe);case"TrustedScriptURL":return K(Pe)}return Pe},E_=function(V,ce,Ae,Pe){try{return Ae?V.setAttributeNS(Ae,ce,Pe):V.setAttribute(ce,Pe),Ls(V)?(Zn(V),!1):!0}catch{return Fr(ce,V),!1}},Fp=function(V,ce){if(Ja(H.beforeSanitizeAttributes,V,null),bl(V,ce))return;const Ae=V.attributes;if(!Ae||Ls(V))return;ee=qp(H.uponSanitizeAttribute,ee,pe,Tt);const Pe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ee,forceKeepAttr:void 0};let Ye=Ae.length;const ct=Rt(V.nodeName);for(;Ye--;){const dt=Ae[Ye],It=dt.name,Sa=dt.namespaceURI,ya=dt.value,_l=Rt(It),Qu=ya;let la=It==="value"?Qu:A9(Qu),Vp=!1;if(Pe.attrName=_l,Pe.attrValue=la,Pe.keepAttr=!0,Pe.forceKeepAttr=void 0,Ja(H.uponSanitizeAttribute,V,Pe),la=Pe.attrValue,Nt&&(_l==="id"||_l==="name")&&Sh(la,ra)!==0&&(Fr(It,V,dt),la=ra+la,Vp=!0),tt&&Qt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,la)){Fr(It,V,dt);continue}if(_l==="attributename"&&Ch(la,"href")){Fr(It,V,dt);continue}if(!Pe.forceKeepAttr){if(!Pe.keepAttr){Fr(It,V,dt);continue}if(!Fe&&Qt(W9,la)){Fr(It,V,dt);continue}if(Ke&&(la=qs(la)),!Np(ct,_l,la)){Fr(It,V,dt);continue}la=S_(ct,_l,Sa,la),la!==Qu&&E_(V,It,Sa,la)&&Vp&&$h(t.removed)}}Ja(H.afterSanitizeAttributes,V,null),bl(V,ce)},Bs=function(V){let ce=null;const Ae=Rp(V);for(Ja(H.beforeSanitizeShadowDOM,V,null);ce=Ae.nextNode();)if(Ja(H.uponSanitizeShadowNode,ce,null),Lp(ce,V),Fp(ce,V),gl(ce.content)&&Bs(ce.content),R(ce)===ba.element){const Pe=E(ce);gl(Pe)&&(Xu(Pe),Bs(Pe))}Ja(H.afterSanitizeShadowDOM,V,null)},Xu=function(V){const ce=[{node:V,shadow:null}];for(;ce.length>0;){const Ae=ce.pop();if(Ae.shadow){Bs(Ae.shadow);continue}const Pe=Ae.node,Ye=R(Pe)===ba.element,ct=C(Pe);if(ct)for(let dt=ct.length-1;dt>=0;--dt)ce.push({node:ct[dt],shadow:null});if(Ye){const dt=T?T(Pe):null;if(typeof dt=="string"&&Rt(dt)==="template"){const It=Pe.content;gl(It)&&ce.push({node:It,shadow:null})}}if(Ye){const dt=E(Pe);gl(dt)&&ce.push({node:null,shadow:dt},{node:dt,shadow:null})}}};return t.sanitize=function(Oe){let V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ce=null,Ae=null,Pe=null,Ye=null;if(Br=!Oe,Br&&(Oe=""),typeof Oe!="string"&&!ho(Oe)&&(Oe=I9(Oe),typeof Oe!="string"))throw tr("dirty is not a string, aborting");if(!t.isSupported)return Oe;ot?(q=rt,ee=Tt):Ju(V),(H.uponSanitizeElement.length>0||H.uponSanitizeAttribute.length>0)&&(q=_a(q)),H.uponSanitizeAttribute.length>0&&(ee=_a(ee)),t.removed=[];const ct=bn&&typeof Oe!="string"&&ho(Oe);if(ct){k_(Oe);const Sa=U(Oe);if(typeof Sa=="string"){const ya=Rt(Sa);if(!q[ya]||Se[ya])throw Ps(Oe),tr("root node is forbidden and cannot be sanitized in-place")}if(Ls(Oe))throw Ps(Oe),tr("root node is clobbered and cannot be sanitized in-place");try{Xu(Oe)}catch(ya){throw Ps(Oe),ya}}else if(ho(Oe))ce=Pp(""),Ae=ce.ownerDocument.importNode(Oe,!0),Ae.nodeType===ba.element&&Ae.nodeName==="BODY"||Ae.nodeName==="HTML"?ce=Ae:ce.appendChild(Ae),Xu(ce);else{if(!zt&&!Ke&&!et&&Oe.indexOf("<")===-1)return S&&Ve?W(Oe):Oe;if(ce=Pp(Oe),!ce)return zt?null:Ve?I:""}ce&&Ot&&Zn(ce.firstChild);const dt=ct?Oe:ce;try{const Sa=Rp(dt);for(;Pe=Sa.nextNode();)Lp(Pe,dt),Fp(Pe,dt),gl(Pe.content)&&Bs(Pe.content)}catch(Sa){throw ct&&(Ps(Oe),Yr(t.removed,ya=>{ya.element&&Rs(ya.element)})),Sa}if(ct){let Sa=!1;if(Yr(t.removed,ya=>{ya.element&&(ya.element===Oe&&(Sa=!0),Rs(ya.element))}),Sa)throw tr("a node selected for removal could not be safely returned; refusing to sanitize in place");return Ke&&Zu(Oe),Oe}if(zt){if(Ke&&Zu(ce),ze)for(Ye=ue.call(ce.ownerDocument);ce.firstChild;)Ye.appendChild(ce.firstChild);else Ye=ce;return(ee.shadowroot||ee.shadowrootmode)&&(Ye=ye.call(n,Ye,!0)),Ye}let It=et?ce.outerHTML:ce.innerHTML;return et&&q["!doctype"]&&ce.ownerDocument&&ce.ownerDocument.doctype&&ce.ownerDocument.doctype.name&&Qt(U9,ce.ownerDocument.doctype.name)&&(It=" +`+It),Ke&&(It=qs(It)),S&&Ve?W(It):It},t.setConfig=function(){let Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ju(Oe),ot=!0,rt=q,Tt=ee},t.clearConfig=function(){yl=null,ot=!1,rt=null,Tt=null,S=z,I=""},t.isValidAttribute=function(Oe,V,ce){yl||Ju({});const Ae=Rt(Oe),Pe=Rt(V);return Np(Ae,Pe,ce)},t.addHook=function(Oe,V){typeof V=="function"&&da(H,Oe)&&Ao(H[Oe],V)},t.removeHook=function(Oe,V){if(da(H,Oe)){if(V!==void 0){const ce=S9(H[Oe],V);return ce===-1?void 0:E9(H[Oe],ce,1)[0]}return $h(H[Oe])}},t.removeHooks=function(Oe){da(H,Oe)&&(H[Oe]=[])},t.removeAllHooks=function(){H=qh()},t}var X9=G0();const Q9=["http","https","mailto","tel"],eN=/[\x00-\x20\x7f]+/g,tN=/^([a-z][a-z0-9+.-]*):/i;function Y0(e){if(e==null)return!1;const t=e.replace(eN,"");if(t==="")return!1;const a=tN.exec(t);if(a)return Q9.includes(a[1].toLowerCase());try{return new URL(t,"https://admin.invalid/"),!0}catch{return!1}}const aN=["script","style","template","noscript","iframe","frame","frameset","object","embed","applet","svg","math","title","head","meta","link","base"],J0=Object.freeze({ALLOWED_TAGS:[...z0],ALLOWED_ATTR:["href"],ALLOW_DATA_ATTR:!1,ALLOW_ARIA_ATTR:!1,ADD_FORBID_CONTENTS:[...aN],KEEP_CONTENT:!0,RETURN_TRUSTED_TYPE:!1}),nN='

a - + +