From 27bb13b4cbd6f73f2cb1283f2acc223dc6f8a006 Mon Sep 17 00:00:00 2001 From: Jakub Zych Date: Mon, 12 Oct 2026 21:43:44 +0200 Subject: [PATCH] build(17): rebuild admin dist with the reorder save queue and singleton list redirect (WR-02, WR-07) --- .../assets/{editor-DCmXDzSQ.js => editor-uegcluyM.js} | 2 +- modules/boardwalk/dist/assets/index-CA2BvkGR.js | 11 ----------- modules/boardwalk/dist/assets/index-DzfknjJw.js | 11 +++++++++++ modules/boardwalk/dist/index.html | 2 +- 4 files changed, 13 insertions(+), 13 deletions(-) rename modules/boardwalk/dist/assets/{editor-DCmXDzSQ.js => editor-uegcluyM.js} (99%) delete mode 100644 modules/boardwalk/dist/assets/index-CA2BvkGR.js create mode 100644 modules/boardwalk/dist/assets/index-DzfknjJw.js diff --git a/modules/boardwalk/dist/assets/editor-DCmXDzSQ.js b/modules/boardwalk/dist/assets/editor-uegcluyM.js similarity index 99% rename from modules/boardwalk/dist/assets/editor-DCmXDzSQ.js rename to modules/boardwalk/dist/assets/editor-uegcluyM.js index 67fc9c2..b5b2fb2 100644 --- a/modules/boardwalk/dist/assets/editor-DCmXDzSQ.js +++ b/modules/boardwalk/dist/assets/editor-uegcluyM.js @@ -1,4 +1,4 @@ -import{L as mu,i as gu}from"./index-CA2BvkGR.js";var Vs=Object.defineProperty,yu=(n,e)=>{let t={};for(var r in n)Vs(t,r,{get:n[r],enumerable:!0});return Vs(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 Cl(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 El(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?Rn(t+1,s):Rn(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 gn 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=Al(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(vl(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 vl(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(vl(s.content,e-i-1,t-i-1)))}function Al(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=Al(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 ku(n,e,t){if(t.openStart>n.depth)throw new gn("Inserted content deeper than insertion position");if(n.depth-t.openStart!=e.depth-t.openEnd)throw new gn("Inconsistent open depths");return Ol(n,e,t,0)}function Ol(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 nn(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&&(mt(n.nodeAfter,r),s++));for(let l=s;li&&Ai(n,e,i+1),o=r.depth>i&&Ai(t,r,i+1),l=[];return nn(null,n,i,l),s&&o&&e.index(i)==t.index(i)?(Nl(s,o),mt(gt(s,Dl(n,e,t,r,i+1)),l)):(s&&mt(gt(s,Qn(n,e,i+1)),l),nn(e,t,i,l),o&&mt(gt(o,Qn(t,r,i+1)),l)),nn(r,null,i,l),new k(l)}function Qn(n,e,t){let r=[];if(nn(null,n,t,r),n.depth>t){let i=Ai(n,e,t+1);mt(gt(i,Qn(n,e,t+1)),r)}return nn(e,null,t,r),new k(r)}function bu(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 yn{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 Zn(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 yn(t,r,s)}static resolveCached(e,t){let r=Hs.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()+")"),Il(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)}};yt.prototype.text=void 0;class er extends yt{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):Il(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 er(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new er(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 Il(n,e){for(let t=n.length-1;t>=0;t--)e=n[t].type.name+"("+e+")";return e}function js(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 xt{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new Cu(e,t);if(r.next==null)return xt.empty;let i=Rl(r);r.next&&r.err("Unexpected trailing text");let s=Nu(Ou(i));return Du(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{L as mu,i as gu}from"./index-DzfknjJw.js";var Vs=Object.defineProperty,yu=(n,e)=>{let t={};for(var r in n)Vs(t,r,{get:n[r],enumerable:!0});return Vs(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 Cl(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 El(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?Rn(t+1,s):Rn(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 gn 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=Al(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(vl(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 vl(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(vl(s.content,e-i-1,t-i-1)))}function Al(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=Al(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 ku(n,e,t){if(t.openStart>n.depth)throw new gn("Inserted content deeper than insertion position");if(n.depth-t.openStart!=e.depth-t.openEnd)throw new gn("Inconsistent open depths");return Ol(n,e,t,0)}function Ol(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 nn(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&&(mt(n.nodeAfter,r),s++));for(let l=s;li&&Ai(n,e,i+1),o=r.depth>i&&Ai(t,r,i+1),l=[];return nn(null,n,i,l),s&&o&&e.index(i)==t.index(i)?(Nl(s,o),mt(gt(s,Dl(n,e,t,r,i+1)),l)):(s&&mt(gt(s,Qn(n,e,i+1)),l),nn(e,t,i,l),o&&mt(gt(o,Qn(t,r,i+1)),l)),nn(r,null,i,l),new k(l)}function Qn(n,e,t){let r=[];if(nn(null,n,t,r),n.depth>t){let i=Ai(n,e,t+1);mt(gt(i,Qn(n,e,t+1)),r)}return nn(e,null,t,r),new k(r)}function bu(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 yn{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 Zn(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 yn(t,r,s)}static resolveCached(e,t){let r=Hs.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()+")"),Il(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)}};yt.prototype.text=void 0;class er extends yt{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):Il(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 er(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new er(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 Il(n,e){for(let t=n.length-1;t>=0;t--)e=n[t].type.name+"("+e+")";return e}function js(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 xt{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new Cu(e,t);if(r.next==null)return xt.empty;let i=Rl(r);r.next&&r.err("Unexpected trailing text");let s=Nu(Ou(i));return Du(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(` `)}}xt.empty=new xt(!0);class Cu{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 Rl(n){let e=[];do e.push(Mu(n));while(n.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function Mu(n){let e=[];do e.push(Tu(n));while(n.next&&n.next!=")"&&n.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function Tu(n){let e=Au(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=Eu(n,e);else break;return e}function Ws(n){/\D/.test(n.next)&&n.err("Expected number, got '"+n.next+"'");let e=Number(n.next);return n.pos++,e}function Eu(n,e){let t=Ws(n),r=t;return n.eat(",")&&(n.next!="}"?r=Ws(n):r=-1),n.eat("}")||n.err("Unclosed braced range"),{type:"range",min:t,max:r,expr:e}}function vu(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 Au(n){if(n.eat("(")){let e=Rl(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=vu(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 Ou(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 xt(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:Bl(this.attrs,e)}create(e=null,t,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new yt(this,this.computeAttrs(e),k.from(t),B.setFrom(r))}createChecked(e=null,t,r){return t=k.from(t),this.checkContent(t),new yt(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 yt(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 $l(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 Iu(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 Ru{constructor(e,t,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?Iu(e,t,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class Fr{constructor(e,t,r,i){this.name=e,this.rank=t,this.schema=r,this.spec=i,this.attrs=zl(e,i.attrs),this.excluded=null;let s=Pl(this.attrs);this.instance=s?new B(this,s):null}create(e=null){return!e&&this.instance?this.instance:new B(this,Bl(this.attrs,e))}static compile(e,t){let r=Object.create(null),i=0;return e.forEach((s,o)=>r[s]=new Fr(s,i++,t,o)),r}removeFromSet(e){for(var t=0;t-1}}class Fl{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=Us.compile(this.spec.nodes,this),this.marks=Fr.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]=xt.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?_s(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==""?[]:_s(this,o.split(" "))}this.nodeFromJSON=i=>yt.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 Us){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 er(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 _s(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 Lu(n){return n.tag!=null}function Pu(n){return n.style!=null}class Xe{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let r=this.matchedStyles=[];t.forEach(i=>{if(Lu(i))this.tags.push(i);else if(Pu(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 Js(this,t,!1);return r.addAll(e,B.none,t.from,t.to),r.finish()}parseSlice(e,t={}){let r=new Js(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=Gs(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=Gs(o)),o.node||o.ignore||o.mark||(o.node=i)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Xe(e,Xe.schemaRules(e)))}}const Vl={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},Bu={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Hl={ol:!0,ul:!0},kn=1,Ni=2,rn=4;function qs(n,e,t){return e!=null?(e?kn:0)|(e==="full"?Ni:0):n&&n.whitespace=="pre"?kn|Ni:t&~rn}class Ln{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&rn?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&kn)){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&&!Vl.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class Js{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=qs(null,t.preserveWhitespace,0)|(r?rn:0);i?s=new Ln(i.type,i.attrs,B.none,!0,t.topMatch||i.type.contentMatch,o):r?s=new Ln(null,null,B.none,!0,null,o):s=new Ln(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&Ni?"full":this.localPreserveWS||(i.options&kn)>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):Ys(c.type,e))?(a=c.addToSet(a),!1):!0),this.nodes.push(new Ln(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|=kn)}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 zu(n){for(let e=n.firstChild,t=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&Hl.hasOwnProperty(r)&&t?(t.appendChild(e),e=t):r=="li"?t=e:r&&(t=null)}}function $u(n,e){return(n.matches||n.msMatchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector).call(n,e)}function Gs(n){let e={};for(let t in n)e[t]=n[t];return e}function Ys(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&&_n(Pn(r),i(e,t),null,e.attrs)}static renderSpec(e,t,r=null,i){return typeof t=="string"?{dom:e.createTextNode(t)}:_n(e,t,r,i)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Tt(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=Xs(e.nodes);return t.text||(t.text=r=>r.text),t}static marksFromSchema(e){return Xs(e.marks)}}function Xs(n){let e={};for(let t in n){let r=n[t].spec.toDOM;r&&(e[t]=r)}return e}function Pn(n){return n.document||window.document}const Qs=new WeakMap;function Fu(n){let e=Qs.get(n);return e===void 0&&Qs.set(n,e=Vu(n)),e}function Vu(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}=_n(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 jl=65535,Wl=Math.pow(2,16);function Hu(n,e){return n+e*Wl}function Zs(n){return n&jl}function ju(n){return(n-(n&jl))/Wl}const Kl=1,Ul=2,qn=4,_l=8;class Di{constructor(e,t,r){this.pos=e,this.delInfo=t,this.recover=r}get deleted(){return(this.delInfo&_l)>0}get deletedBefore(){return(this.delInfo&(Kl|qn))>0}get deletedAfter(){return(this.delInfo&(Ul|qn))>0}get deletedAcross(){return(this.delInfo&qn)>0}}class de{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&de.empty)return de.empty}recover(e){let t=0,r=Zs(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:Hu(l/3,e-a),m=0;return c&&(m|=e==a?Ul:e==d?Kl:qn,(t<0?e!=a:e!=d)&&(m|=_l)),new Di(h,m,p)}i+=u-c}return r?e+i:new Di(e+i,0,null)}touches(e,t){let r=0,i=Zs(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 bn;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 Ce(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 Ge(t.pos,r.pos,this.mark)}merge(e){return e instanceof Ge&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Ge(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 Ge(t.from,t.to,e.markFromJSON(t.mark))}}se.jsonID("addMark",Ge);class Ce extends se{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(ss(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 Ge(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 Ce(t.pos,r.pos,this.mark)}merge(e){return e instanceof Ce&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Ce(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 Ce(t.from,t.to,e.markFromJSON(t.mark))}}se.jsonID("removeMark",Ce);class Ye extends se{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)}}se.jsonID("replaceAround",G);function Ii(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 Wu(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 Ku(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 Fr){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 Ce(o.from,o.to,o.style)))}function ls(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 Uu(n,e,t){return(e==0||n.canReplace(e,n.childCount))&&(t==n.childCount||n.canReplace(0,t))}function _t(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 Yu(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)&&Xu(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&&Jl(n,o,l,s),ls(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&&ql(n,o,l,s),!1}})}function ql(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 Jl(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-CA2BvkGR.js b/modules/boardwalk/dist/assets/index-CA2BvkGR.js deleted file mode 100644 index cbd238a..0000000 --- a/modules/boardwalk/dist/assets/index-CA2BvkGR.js +++ /dev/null @@ -1,11 +0,0 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))a(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"&&a(o)}).observe(document,{childList:!0,subtree:!0});function n(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 a(r){if(r.ep)return;r.ep=!0;const l=n(r);fetch(r.href,l)}})();function bd(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ht={},bl=[],Xn=()=>{},Ym=()=>!1,Es=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),As=e=>e.startsWith("onUpdate:"),Et=Object.assign,_d=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Q1=Object.prototype.hasOwnProperty,pt=(e,t)=>Q1.call(e,t),Ge=Array.isArray,_l=e=>ti(e)==="[object Map]",Jm=e=>ti(e)==="[object Set]",tp=e=>ti(e)==="[object Date]",Qe=e=>typeof e=="function",gt=e=>typeof e=="string",yn=e=>typeof e=="symbol",dt=e=>e!==null&&typeof e=="object",Zm=e=>(dt(e)||Qe(e))&&Qe(e.then)&&Qe(e.catch),Xm=Object.prototype.toString,ti=e=>Xm.call(e),e0=e=>ti(e).slice(8,-1),Qm=e=>ti(e)==="[object Object]",Ts=e=>gt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,$o=bd(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ds=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},t0=/-\w/g,Ft=Ds(e=>e.replace(t0,t=>t.slice(1).toUpperCase())),n0=/\B([A-Z])/g,fr=Ds(e=>e.replace(n0,"-$1").toLowerCase()),Os=Ds(e=>e.charAt(0).toUpperCase()+e.slice(1)),Co=Ds(e=>e?`on${Os(e)}`:""),Kn=(e,t)=>!Object.is(e,t),Hi=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:a,value:n})},xd=e=>{const t=parseFloat(e);return isNaN(t)?e:t},a0=e=>{const t=gt(e)?Number(e):NaN;return isNaN(t)?e:t};let np;const Ms=()=>np||(np=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Tn(e){if(Ge(e)){const t={};for(let n=0;n{if(n){const a=n.split(l0);a.length>1&&(t[a[0].trim()]=a[1].trim())}}),t}function ye(e){let t="";if(gt(e))t=e;else if(Ge(e))for(let n=0;n!!(e&&e.__v_isRef===!0),T=e=>gt(e)?e:e==null?"":Ge(e)||dt(e)&&(e.toString===Xm||!Qe(e.toString))?nh(e)?T(e.value):JSON.stringify(e,ah,2):String(e),ah=(e,t)=>nh(t)?ah(e,t.value):_l(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[a,r],l)=>(n[wu(a,l)+" =>"]=r,n),{})}:Jm(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>wu(n))}:yn(t)?wu(t):dt(t)&&!Ge(t)&&!Qm(t)?String(t):t,wu=(e,t="")=>{var n;return yn(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let Dt;class rh{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&&Dt&&(Dt.active?(this.parent=Dt,this.index=(Dt.scopes||(Dt.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0){if(Dt===this)Dt=this.prevScope;else{let t=Dt;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,a;for(n=0,a=this.effects.length;n0)return;if(Eo){let t=Eo;for(Eo=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;So;){let t=So;for(So=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(a){e||(e=a)}t=n}}if(e)throw e}function ch(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function dh(e){let t,n=e.depsTail,a=n;for(;a;){const r=a.prevDep;a.version===-1?(a===n&&(n=r),Sd(a),d0(a)):t=a,a.dep.activeLink=a.prevActiveLink,a.prevActiveLink=void 0,a=r}e.deps=t,e.depsTail=n}function Sc(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(fh(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function fh(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===No)||(e.globalVersion=No,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Sc(e))))return;e.flags|=2;const t=e.dep,n=yt,a=Dn;yt=e,Dn=!0;try{ch(e);const r=e.fn(e._value);(t.version===0||Kn(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{yt=n,Dn=a,dh(e),e.flags&=-3}}function Sd(e,t=!1){const{dep:n,prevSub:a,nextSub:r}=e;if(a&&(a.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=a,e.nextSub=void 0),n.subs===e&&(n.subs=a,!a&&n.computed)){n.computed.flags&=-5;for(let l=n.computed.deps;l;l=l.nextDep)Sd(l,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function d0(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Dn=!0;const ph=[];function xa(){ph.push(Dn),Dn=!1}function ka(){const e=ph.pop();Dn=e===void 0?!0:e}function ap(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=yt;yt=void 0;try{t()}finally{yt=n}}}let No=0,f0=class{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}};class Ps{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(!yt||!Dn||yt===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==yt)n=this.activeLink=new f0(yt,this),yt.deps?(n.prevDep=yt.depsTail,yt.depsTail.nextDep=n,yt.depsTail=n):yt.deps=yt.depsTail=n,vh(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const a=n.nextDep;a.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=a),n.prevDep=yt.depsTail,n.nextDep=void 0,yt.depsTail.nextDep=n,yt.depsTail=n,yt.deps===n&&(yt.deps=a)}return n}trigger(t){this.version++,No++,this.notify(t)}notify(t){$d();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Cd()}}}function vh(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let a=t.deps;a;a=a.nextDep)vh(a)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Xi=new WeakMap,Rr=Symbol(""),Ec=Symbol(""),Lo=Symbol("");function Wt(e,t,n){if(Dn&&yt){let a=Xi.get(e);a||Xi.set(e,a=new Map);let r=a.get(n);r||(a.set(n,r=new Ps),r.map=a,r.key=n),r.track()}}function fa(e,t,n,a,r,l){const o=Xi.get(e);if(!o){No++;return}const i=s=>{s&&s.trigger()};if($d(),t==="clear")o.forEach(i);else{const s=Ge(e),c=s&&Ts(n);if(s&&n==="length"){const d=Number(a);o.forEach((f,m)=>{(m==="length"||m===Lo||!yn(m)&&m>=d)&&i(f)})}else switch((n!==void 0||o.has(void 0))&&i(o.get(n)),c&&i(o.get(Lo)),t){case"add":s?c&&i(o.get("length")):(i(o.get(Rr)),_l(e)&&i(o.get(Ec)));break;case"delete":s||(i(o.get(Rr)),_l(e)&&i(o.get(Ec)));break;case"set":_l(e)&&i(o.get(Rr));break}}Cd()}function p0(e,t){const n=Xi.get(e);return n&&n.get(t)}function tl(e){const t=ut(e);return t===e?t:(Wt(t,"iterate",Lo),mn(e)?t:t.map(Mn))}function Rs(e){return Wt(e=ut(e),"iterate",Lo),e}function Hn(e,t){return wa(e)?Ml(Ir(e)?Mn(t):t):Mn(t)}const v0={__proto__:null,[Symbol.iterator](){return Cu(this,Symbol.iterator,e=>Hn(this,e))},concat(...e){return tl(this).concat(...e.map(t=>Ge(t)?tl(t):t))},entries(){return Cu(this,"entries",e=>(e[1]=Hn(this,e[1]),e))},every(e,t){return ia(this,"every",e,t,void 0,arguments)},filter(e,t){return ia(this,"filter",e,t,n=>n.map(a=>Hn(this,a)),arguments)},find(e,t){return ia(this,"find",e,t,n=>Hn(this,n),arguments)},findIndex(e,t){return ia(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ia(this,"findLast",e,t,n=>Hn(this,n),arguments)},findLastIndex(e,t){return ia(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ia(this,"forEach",e,t,void 0,arguments)},includes(...e){return Su(this,"includes",e)},indexOf(...e){return Su(this,"indexOf",e)},join(e){return tl(this).join(e)},lastIndexOf(...e){return Su(this,"lastIndexOf",e)},map(e,t){return ia(this,"map",e,t,void 0,arguments)},pop(){return ao(this,"pop")},push(...e){return ao(this,"push",e)},reduce(e,...t){return rp(this,"reduce",e,t)},reduceRight(e,...t){return rp(this,"reduceRight",e,t)},shift(){return ao(this,"shift")},some(e,t){return ia(this,"some",e,t,void 0,arguments)},splice(...e){return ao(this,"splice",e)},toReversed(){return tl(this).toReversed()},toSorted(e){return tl(this).toSorted(e)},toSpliced(...e){return tl(this).toSpliced(...e)},unshift(...e){return ao(this,"unshift",e)},values(){return Cu(this,"values",e=>Hn(this,e))}};function Cu(e,t,n){const a=Rs(e),r=a[t]();return a!==e&&!mn(e)&&(r._next=r.next,r.next=()=>{const l=r._next();return l.done||(l.value=n(l.value)),l}),r}const m0=Array.prototype;function ia(e,t,n,a,r,l){const o=Rs(e),i=o!==e&&!mn(e),s=o[t];if(s!==m0[t]){const f=s.apply(e,l);return i?Mn(f):f}let c=n;o!==e&&(i?c=function(f,m){return n.call(this,Hn(e,f),m,e)}:n.length>2&&(c=function(f,m){return n.call(this,f,m,e)}));const d=s.call(o,c,a);return i&&r?r(d):d}function rp(e,t,n,a){const r=Rs(e),l=r!==e&&!mn(e);let o=n,i=!1;r!==e&&(l?(i=a.length===0,o=function(c,d,f){return i&&(i=!1,c=Hn(e,c)),n.call(this,c,Hn(e,d),f,e)}):n.length>3&&(o=function(c,d,f){return n.call(this,c,d,f,e)}));const s=r[t](o,...a);return i?Hn(e,s):s}function Su(e,t,n){const a=ut(e);Wt(a,"iterate",Lo);const r=a[t](...n);return(r===-1||r===!1)&&Ns(n[0])?(n[0]=ut(n[0]),a[t](...n)):r}function ao(e,t,n=[]){xa(),$d();const a=ut(e)[t].apply(e,n);return Cd(),ka(),a}const h0=bd("__proto__,__v_isRef,__isVue"),mh=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(yn));function y0(e){yn(e)||(e=String(e));const t=ut(this);return Wt(t,"has",e),t.hasOwnProperty(e)}class hh{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,a){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,l=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return l;if(n==="__v_raw")return a===(r?l?kh:xh:l?_h:bh).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(a)?t:void 0;const o=Ge(t);if(!r){let s;if(o&&(s=v0[n]))return s;if(n==="hasOwnProperty")return y0}const i=Reflect.get(t,n,_t(t)?t:a);if((yn(n)?mh.has(n):h0(n))||(r||Wt(t,"get",n),l))return i;if(_t(i)){const s=o&&Ts(n)?i:i.value;return r&&dt(s)?Mt(s):s}return dt(i)?r?Mt(i):On(i):i}}class yh extends hh{constructor(t=!1){super(!1,t)}set(t,n,a,r){let l=t[n];const o=Ge(t)&&Ts(n);if(!this._isShallow){const c=wa(l);if(!mn(a)&&!wa(a)&&(l=ut(l),a=ut(a)),!o&&_t(l)&&!_t(a))return c||(l.value=a),!0}const i=o?Number(n)e,wi=e=>Reflect.getPrototypeOf(e);function k0(e,t,n){return function(...a){const r=this.__v_raw,l=ut(r),o=_l(l),i=e==="entries"||e===Symbol.iterator&&o,s=e==="keys"&&o,c=r[e](...a),d=n?Ac:t?Ml:Mn;return!t&&Wt(l,"iterate",s?Ec:Rr),Et(Object.create(c),{next(){const{value:f,done:m}=c.next();return m?{value:f,done:m}:{value:i?[d(f[0]),d(f[1])]:d(f),done:m}}})}}function $i(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function w0(e,t){const n={get(r){const l=this.__v_raw,o=ut(l),i=ut(r);e||(Kn(r,i)&&Wt(o,"get",r),Wt(o,"get",i));const{has:s}=wi(o),c=t?Ac:e?Ml:Mn;if(s.call(o,r))return c(l.get(r));if(s.call(o,i))return c(l.get(i));l!==o&&l.get(r)},get size(){const r=this.__v_raw;return!e&&Wt(ut(r),"iterate",Rr),r.size},has(r){const l=this.__v_raw,o=ut(l),i=ut(r);return e||(Kn(r,i)&&Wt(o,"has",r),Wt(o,"has",i)),r===i?l.has(r):l.has(r)||l.has(i)},forEach(r,l){const o=this,i=o.__v_raw,s=ut(i),c=t?Ac:e?Ml:Mn;return!e&&Wt(s,"iterate",Rr),i.forEach((d,f)=>r.call(l,c(d),c(f),o))}};return Et(n,e?{add:$i("add"),set:$i("set"),delete:$i("delete"),clear:$i("clear")}:{add(r){const l=ut(this),o=wi(l),i=ut(r),s=!t&&!mn(r)&&!wa(r)?i:r;return o.has.call(l,s)||Kn(r,s)&&o.has.call(l,r)||Kn(i,s)&&o.has.call(l,i)||(l.add(s),fa(l,"add",s,s)),this},set(r,l){!t&&!mn(l)&&!wa(l)&&(l=ut(l));const o=ut(this),{has:i,get:s}=wi(o);let c=i.call(o,r);c||(r=ut(r),c=i.call(o,r));const d=s.call(o,r);return o.set(r,l),c?Kn(l,d)&&fa(o,"set",r,l):fa(o,"add",r,l),this},delete(r){const l=ut(this),{has:o,get:i}=wi(l);let s=o.call(l,r);s||(r=ut(r),s=o.call(l,r)),i&&i.call(l,r);const c=l.delete(r);return s&&fa(l,"delete",r,void 0),c},clear(){const r=ut(this),l=r.size!==0,o=r.clear();return l&&fa(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=k0(r,e,t)}),n}function Is(e,t){const n=w0(e,t);return(a,r,l)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?a:Reflect.get(pt(n,r)&&r in a?n:a,r,l)}const $0={get:Is(!1,!1)},C0={get:Is(!1,!0)},S0={get:Is(!0,!1)},E0={get:Is(!0,!0)},bh=new WeakMap,_h=new WeakMap,xh=new WeakMap,kh=new WeakMap;function A0(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function On(e){return wa(e)?e:qs(e,!1,g0,$0,bh)}function wh(e){return qs(e,!1,_0,C0,_h)}function Mt(e){return qs(e,!0,b0,S0,xh)}function nl(e){return qs(e,!0,x0,E0,kh)}function qs(e,t,n,a,r){if(!dt(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=A0(e0(e));if(o===0)return e;const i=new Proxy(e,o===2?a:n);return r.set(e,i),i}function Ir(e){return wa(e)?Ir(e.__v_raw):!!(e&&e.__v_isReactive)}function wa(e){return!!(e&&e.__v_isReadonly)}function mn(e){return!!(e&&e.__v_isShallow)}function Ns(e){return e?!!e.__v_raw:!1}function ut(e){const t=e&&e.__v_raw;return t?ut(t):e}function Qi(e){return!pt(e,"__v_skip")&&Object.isExtensible(e)&&eh(e,"__v_skip",!0),e}const Mn=e=>dt(e)?On(e):e,Ml=e=>dt(e)?Mt(e):e;function _t(e){return e?e.__v_isRef===!0:!1}function P(e){return $h(e,!1)}function ni(e){return $h(e,!0)}function $h(e,t){return _t(e)?e:new T0(e,t)}class T0{constructor(t,n){this.dep=new Ps,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ut(t),this._value=n?t:Mn(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,a=this.__v_isShallow||mn(t)||wa(t);t=a?t:ut(t),Kn(t,n)&&(this._rawValue=t,this._value=a?t:Mn(t),this.dep.trigger())}}function D0(e){e.dep&&e.dep.trigger()}function u(e){return _t(e)?e.value:e}function en(e){return Qe(e)?e():u(e)}const O0={get:(e,t,n)=>t==="__v_raw"?e:u(Reflect.get(e,t,n)),set:(e,t,n,a)=>{const r=e[t];return _t(r)&&!_t(n)?(r.value=n,!0):Reflect.set(e,t,n,a)}};function Ch(e){return Ir(e)?e:new Proxy(e,O0)}class M0{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Ps,{get:a,set:r}=t(n.track.bind(n),n.trigger.bind(n));this._get=a,this._set=r}get value(){return this._value=this._get()}set value(t){this._set(t)}}function P0(e){return new M0(e)}function Gt(e){const t=Ge(e)?new Array(e.length):{};for(const n in e)t[n]=Sh(e,n);return t}class R0{constructor(t,n,a){this._object=t,this._defaultValue=a,this.__v_isRef=!0,this._value=void 0,this._key=yn(n)?n:String(n),this._raw=ut(t);let r=!0,l=t;if(!Ge(t)||yn(this._key)||!Ts(this._key))do r=!Ns(l)||mn(l);while(r&&(l=l.__v_raw));this._shallow=r}get value(){let t=this._object[this._key];return this._shallow&&(t=u(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&_t(this._raw[this._key])){const n=this._object[this._key];if(_t(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return p0(this._raw,this._key)}}class I0{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 q0(e,t,n){return _t(e)?e:Qe(e)?new I0(e):dt(e)&&arguments.length>1?Sh(e,t,n):P(e)}function Sh(e,t,n){return new R0(e,t,n)}class N0{constructor(t,n,a){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Ps(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=No-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=a}notify(){if(this.flags|=16,!(this.flags&8)&&yt!==this)return uh(this,!0),!0}get value(){const t=this.dep.track();return fh(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function L0(e,t,n=!1){let a,r;return Qe(e)?a=e:(a=e.get,r=e.set),new N0(a,r,n)}const Ci={},es=new WeakMap;let Sr;function B0(e,t=!1,n=Sr){if(n){let a=es.get(n);a||es.set(n,a=[]),a.push(e)}}function F0(e,t,n=ht){const{immediate:a,deep:r,once:l,scheduler:o,augmentJob:i,call:s}=n,c=O=>r?O:mn(O)||r===!1||r===0?pa(O,1):pa(O);let d,f,m,p,h=!1,x=!1;if(_t(e)?(f=()=>e.value,h=mn(e)):Ir(e)?(f=()=>c(e),h=!0):Ge(e)?(x=!0,h=e.some(O=>Ir(O)||mn(O)),f=()=>e.map(O=>{if(_t(O))return O.value;if(Ir(O))return c(O);if(Qe(O))return s?s(O,2):O()})):Qe(e)?t?f=s?()=>s(e,2):e:f=()=>{if(m){xa();try{m()}finally{ka()}}const O=Sr;Sr=d;try{return s?s(e,3,[p]):e(p)}finally{Sr=O}}:f=Xn,t&&r){const O=f,M=r===!0?1/0:r;f=()=>pa(O(),M)}const k=wd(),y=()=>{d.stop(),k&&k.active&&_d(k.effects,d)};if(l&&t){const O=t;t=(...M)=>{O(...M),y()}}let $=x?new Array(e.length).fill(Ci):Ci;const E=O=>{if(!(!(d.flags&1)||!d.dirty&&!O))if(t){const M=d.run();if(r||h||(x?M.some((B,z)=>Kn(B,$[z])):Kn(M,$))){m&&m();const B=Sr;Sr=d;try{const z=[M,$===Ci?void 0:x&&$[0]===Ci?[]:$,p];$=M,s?s(t,3,z):t(...z)}finally{Sr=B}}}else d.run()};return i&&i(E),d=new ih(f),d.scheduler=o?()=>o(E,!1):E,p=O=>B0(O,!1,d),m=d.onStop=()=>{const O=es.get(d);if(O){if(s)s(O,4);else for(const M of O)M();es.delete(d)}},t?a?E(!0):$=d.run():o?o(E.bind(null,!0),!0):d.run(),y.pause=d.pause.bind(d),y.resume=d.resume.bind(d),y.stop=y,y}function pa(e,t=1/0,n){if(t<=0||!dt(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,_t(e))pa(e.value,t,n);else if(Ge(e))for(let a=0;a{pa(a,t,n)});else if(Qm(e)){for(const a in e)pa(e[a],t,n);for(const a of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,a)&&pa(e[a],t,n)}return e}function ai(e,t,n,a){try{return a?e(...a):e()}catch(r){Ls(r,t,n)}}function Sn(e,t,n,a){if(Qe(e)){const r=ai(e,t,n,a);return r&&Zm(r)&&r.catch(l=>{Ls(l,t,n)}),r}if(Ge(e)){const r=[];for(let l=0;l>>1,r=Xt[a],l=Bo(r);l=Bo(n)?Xt.push(e):Xt.splice(z0(t),0,e),e.flags|=1,Ah()}}function Ah(){ts||(ts=Eh.then(Dh))}function j0(e){Ge(e)?xl.push(...e):Wa&&e.id===-1?Wa.splice(cl+1,0,e):e.flags&1||(xl.push(e),e.flags|=1),Ah()}function lp(e,t,n=jn+1){for(;nBo(n)-Bo(a));if(xl.length=0,Wa){Wa.push(...t);return}for(Wa=t,cl=0;cle.id==null?e.flags&2?-1:1/0:e.id;function Dh(e){try{for(jn=0;jn{a._d&&ls(-1);const l=ns(t);let o;try{o=e(...r)}finally{ns(l),a._d&&ls(1)}return o};return a._n=!0,a._c=!0,a._d=!0,a}function Qn(e,t){if(Bt===null)return e;const n=js(Bt),a=e.dirs||(e.dirs=[]);for(let r=0;r1)return n&&Qe(t)?t.call(a&&a.proxy):t}}const U0=Symbol.for("v-scx"),H0=()=>ct(U0);function gn(e,t){return Bs(e,null,t)}function Mh(e,t){return Bs(e,null,{flush:"post"})}function ze(e,t,n){return Bs(e,t,n)}function Bs(e,t,n=ht){const{immediate:a,deep:r,flush:l,once:o}=n,i=Et({},n),s=t&&a||!t&&l!=="post";let c;if(jo){if(l==="sync"){const p=H0();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!s){const p=()=>{};return p.stop=Xn,p.resume=Xn,p.pause=Xn,p}}const d=Kt;i.call=(p,h,x)=>Sn(p,d,h,x);let f=!1;l==="post"?i.scheduler=p=>{Zt(p,d&&d.suspense)}:l!=="sync"&&(f=!0,i.scheduler=(p,h)=>{h?p():Ed(p)}),i.augmentJob=p=>{t&&(p.flags|=4),f&&(p.flags|=2,d&&(p.id=d.uid,p.i=d))};const m=F0(e,t,i);return jo&&(c?c.push(m):s&&m()),m}function W0(e,t,n){const a=this.proxy,r=gt(e)?e.includes(".")?Ph(a,e):()=>a[e]:e.bind(a,a);let l;Qe(t)?l=t:(l=t.handler,n=t);const o=ri(this),i=Bs(r,l.bind(a),n);return o(),i}function Ph(e,t){const n=t.split(".");return()=>{let a=e;for(let r=0;re.__isTeleport,Dr=e=>e&&(e.disabled||e.disabled===""),G0=e=>e&&(e.defer||e.defer===""),op=e=>typeof SVGElement<"u"&&e instanceof SVGElement,ip=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Tc=(e,t)=>{const n=e&&e.to;return gt(n)?t?t(n):null:n},Y0={name:"Teleport",__isTeleport:!0,process(e,t,n,a,r,l,o,i,s,c){const{mc:d,pc:f,pbc:m,o:{insert:p,querySelector:h,createText:x,createComment:k,parentNode:y}}=c,$=Dr(t.props);let{dynamicChildren:E}=t;const O=(z,H,S)=>{z.shapeFlag&16&&d(z.children,H,S,r,l,o,i,s)},M=(z=t)=>{const H=Dr(z.props),S=z.target=Tc(z.props,h),N=Dc(S,z,x,p);S&&(o!=="svg"&&op(S)?o="svg":o!=="mathml"&&ip(S)&&(o="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add(S),H||(O(z,S,N),go(z,!1)))},B=z=>{const H=()=>{if(ja.get(z)===H){if(ja.delete(z),Dr(z.props)){const S=y(z.el)||n;O(z,S,z.anchor),go(z,!0)}M(z)}};ja.set(z,H),Zt(H,l)};if(e==null){const z=t.el=x(""),H=t.anchor=x("");if(p(z,n,a),p(H,n,a),G0(t.props)||l&&l.pendingBranch){B(t);return}$&&(O(t,n,H),go(t,!0)),M()}else{t.el=e.el;const z=t.anchor=e.anchor,H=ja.get(e);if(H){H.flags|=8,ja.delete(e),B(t);return}t.targetStart=e.targetStart;const S=t.target=e.target,N=t.targetAnchor=e.targetAnchor,Y=Dr(e.props),R=Y?n:S,U=Y?z:N;if(o==="svg"||op(S)?o="svg":(o==="mathml"||ip(S))&&(o="mathml"),E?(m(e.dynamicChildren,E,R,r,l,o,i),Od(e,t,!0)):s||f(e,t,R,U,r,l,o,i,!1),$)Y?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Si(t,n,z,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const Q=t.target=Tc(t.props,h);Q&&Si(t,Q,null,c,0)}else Y&&Si(t,S,N,c,1);go(t,$)}},remove(e,t,n,{um:a,o:{remove:r}},l){const{shapeFlag:o,children:i,anchor:s,targetStart:c,targetAnchor:d,target:f,props:m}=e,p=l||!Dr(m),h=ja.get(e);if(h&&(h.flags|=8,ja.delete(e)),f&&(r(c),r(d)),l&&r(s),!h&&o&16)for(let x=0;x{e.isMounted=!0}),At(()=>{e.isUnmounting=!0}),e}const _n=[Function,Array],Q0={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:_n,onEnter:_n,onAfterEnter:_n,onEnterCancelled:_n,onBeforeLeave:_n,onLeave:_n,onAfterLeave:_n,onLeaveCancelled:_n,onBeforeAppear:_n,onAppear:_n,onAfterAppear:_n,onAppearCancelled:_n};function e_(e,t){const{leavingVNodes:n}=e;let a=n.get(t.type);return a||(a=Object.create(null),n.set(t.type,a)),a}function Oc(e,t,n,a,r){const{appear:l,mode:o,persisted:i=!1,onBeforeEnter:s,onEnter:c,onAfterEnter:d,onEnterCancelled:f,onBeforeLeave:m,onLeave:p,onAfterLeave:h,onLeaveCancelled:x,onBeforeAppear:k,onAppear:y,onAfterAppear:$,onAppearCancelled:E}=t,O=String(e.key),M=e_(n,e),B=(S,N)=>{S&&Sn(S,a,9,N)},z=(S,N)=>{const Y=N[1];B(S,N),Ge(S)?S.every(R=>R.length<=1)&&Y():S.length<=1&&Y()},H={mode:o,persisted:i,beforeEnter(S){let N=s;if(!n.isMounted)if(l)N=k||s;else return;S[Un]&&S[Un](!0);const Y=M[O];Y&&dl(e,Y)&&Y.el[Un]&&Y.el[Un](),B(N,[S])},enter(S){if(M[O]===e)return;let N=c,Y=d,R=f;if(!n.isMounted)if(l)N=y||c,Y=$||d,R=E||f;else return;let U=!1;S[ro]=q=>{U||(U=!0,q?B(R,[S]):B(Y,[S]),H.delayedLeave&&H.delayedLeave(),S[ro]=void 0)};const Q=S[ro].bind(null,!1);N?z(N,[S,Q]):Q()},leave(S,N){const Y=String(e.key);if(S[ro]&&S[ro](!0),n.isUnmounting)return N();B(m,[S]);let R=!1;S[Un]=Q=>{R||(R=!0,N(),Q?B(x,[S]):B(h,[S]),S[Un]=void 0,M[Y]===e&&delete M[Y])};const U=S[Un].bind(null,!1);M[Y]=e,p?z(p,[S,U]):U()},clone(S){return Oc(S,t,n,a)}};return H}function Fo(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Fo(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 Ih(e,t=!1,n){let a=[],r=0;for(let l=0;l1)for(let l=0;lAo(x,t&&(Ge(t)?t[k]:t),n,a,r));return}if(kl(a)&&!r){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&Ao(e,t,n,a.component.subTree);return}const l=a.shapeFlag&4?js(a.component):a.el,o=r?null:l,{i,r:s}=e,c=t&&t.r,d=i.refs===ht?i.refs={}:i.refs,f=i.setupState,m=ut(f),p=f===ht?Ym:x=>sp(d,x)?!1:pt(m,x),h=(x,k)=>!(k&&sp(d,k));if(c!=null&&c!==s){if(up(t),gt(c))d[c]=null,p(c)&&(f[c]=null);else if(_t(c)){const x=t;h(c,x.k)&&(c.value=null),x.k&&(d[x.k]=null)}}if(Qe(s))ai(s,i,12,[o,d]);else{const x=gt(s),k=_t(s);if(x||k){const y=()=>{if(e.f){const $=x?p(s)?f[s]:d[s]:h()||!e.k?s.value:d[e.k];if(r)Ge($)&&_d($,l);else if(Ge($))$.includes(l)||$.push(l);else if(x)d[s]=[l],p(s)&&(f[s]=d[s]);else{const E=[l];h(s,e.k)&&(s.value=E),e.k&&(d[e.k]=E)}}else x?(d[s]=o,p(s)&&(f[s]=o)):k&&(h(s,e.k)&&(s.value=o),e.k&&(d[e.k]=o))};if(o){const $=()=>{y(),as.delete(e)};$.id=-1,as.set(e,$),Zt($,n)}else up(e),y()}}}function up(e){const t=as.get(e);t&&(t.flags|=8,as.delete(e))}Ms().requestIdleCallback;Ms().cancelIdleCallback;const kl=e=>!!e.type.__asyncLoader,Nh=e=>e.type.__isKeepAlive;function Lh(e,t){Fh(e,"a",t)}function Bh(e,t){Fh(e,"da",t)}function Fh(e,t,n=Kt){const a=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Fs(t,a,n),n){let r=n.parent;for(;r&&r.parent;)Nh(r.parent.vnode)&&n_(a,t,n,r),r=r.parent}}function n_(e,t,n,a){const r=Fs(t,e,a,!0);Ea(()=>{_d(a[t],r)},n)}function Fs(e,t,n=Kt,a=!1){if(n){const r=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=(...o)=>{xa();const i=ri(n),s=Sn(t,n,e,o);return i(),ka(),s});return a?r.unshift(l):r.push(l),l}}const Sa=e=>(t,n=Kt)=>{(!jo||e==="sp")&&Fs(e,(...a)=>t(...a),n)},Vh=Sa("bm"),kt=Sa("m"),a_=Sa("bu"),Ad=Sa("u"),At=Sa("bum"),Ea=Sa("um"),r_=Sa("sp"),l_=Sa("rtg"),o_=Sa("rtc");function i_(e,t=Kt){Fs("ec",e,t)}const zh="components";function s_(e,t){return Uh(zh,e,!0,t)||e}const jh=Symbol.for("v-ndc");function zt(e){return gt(e)?Uh(zh,e,!1)||e:e||jh}function Uh(e,t,n=!0,a=!1){const r=Bt||Kt;if(r){const l=r.type;{const i=U_(l,!1);if(i&&(i===t||i===Ft(t)||i===Os(Ft(t))))return l}const o=cp(r[e]||l[e],t)||cp(r.appContext[e],t);return!o&&a?l:o}}function cp(e,t){return e&&(e[t]||e[Ft(t)]||e[Os(Ft(t))])}function qe(e,t,n,a){let r;const l=n,o=Ge(e);if(o||gt(e)){const i=o&&Ir(e);let s=!1,c=!1;i&&(s=!mn(e),c=wa(e),e=Rs(e)),r=new Array(e.length);for(let d=0,f=e.length;dt(i,s,void 0,l));else{const i=Object.keys(e);r=new Array(i.length);for(let s=0,c=i.length;s0;return t!=="default"&&(n.name=t),v(),j(he,null,[V("slot",n,a&&a())],c?-2:64)}let l=e[t];l&&l._c&&(l._d=!1),v();const o=l&&Hh(l(n)),i=n.key||o&&o.key,s=j(he,{key:(i&&!yn(i)?i:`_${t}`)+(!o&&a?"_fb":"")},o||(a?a():[]),o&&e._===1?64:-2);return s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),l&&l._c&&(l._d=!0),s}function Hh(e){return e.some(t=>zo(t)?!(t.type===Pn||t.type===he&&!Hh(t.children)):!0)?e:null}function Wh(e,t){const n={};for(const a in e)n[Co(a)]=e[a];return n}const Mc=e=>e?fy(e)?js(e):Mc(e.parent):null,To=Et(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=>Mc(e.parent),$root:e=>Mc(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Yh(e),$forceUpdate:e=>e.f||(e.f=()=>{Ed(e.update)}),$nextTick:e=>e.n||(e.n=Ze.bind(e.proxy)),$watch:e=>W0.bind(e)}),Eu=(e,t)=>e!==ht&&!e.__isScriptSetup&&pt(e,t),u_={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:a,data:r,props:l,accessCache:o,type:i,appContext:s}=e;if(t[0]!=="$"){const m=o[t];if(m!==void 0)switch(m){case 1:return a[t];case 2:return r[t];case 4:return n[t];case 3:return l[t]}else{if(Eu(a,t))return o[t]=1,a[t];if(r!==ht&&pt(r,t))return o[t]=2,r[t];if(pt(l,t))return o[t]=3,l[t];if(n!==ht&&pt(n,t))return o[t]=4,n[t];Rc&&(o[t]=0)}}const c=To[t];let d,f;if(c)return t==="$attrs"&&Wt(e.attrs,"get",""),c(e);if((d=i.__cssModules)&&(d=d[t]))return d;if(n!==ht&&pt(n,t))return o[t]=4,n[t];if(f=s.config.globalProperties,pt(f,t))return f[t]},set({_:e},t,n){const{data:a,setupState:r,ctx:l}=e;return Eu(r,t)?(r[t]=n,!0):a!==ht&&pt(a,t)?(a[t]=n,!0):pt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(l[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:a,appContext:r,props:l,type:o}},i){let s;return!!(n[i]||e!==ht&&i[0]!=="$"&&pt(e,i)||Eu(t,i)||pt(l,i)||pt(a,i)||pt(To,i)||pt(r.config.globalProperties,i)||(s=o.__cssModules)&&s[i])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:pt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Pc(e){return Ge(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Kh(e,t){const n=Pc(e);for(const a in t){if(a.startsWith("__skip"))continue;let r=n[a];r?Ge(r)||Qe(r)?r=n[a]={type:r,default:t[a]}:r.default=t[a]:r===null&&(r=n[a]={default:t[a]}),r&&t[`__skip_${a}`]&&(r.skipFactory=!0)}return n}let Rc=!0;function c_(e){const t=Yh(e),n=e.proxy,a=e.ctx;Rc=!1,t.beforeCreate&&dp(t.beforeCreate,e,"bc");const{data:r,computed:l,methods:o,watch:i,provide:s,inject:c,created:d,beforeMount:f,mounted:m,beforeUpdate:p,updated:h,activated:x,deactivated:k,beforeDestroy:y,beforeUnmount:$,destroyed:E,unmounted:O,render:M,renderTracked:B,renderTriggered:z,errorCaptured:H,serverPrefetch:S,expose:N,inheritAttrs:Y,components:R,directives:U,filters:Q}=t;if(c&&d_(c,a,null),o)for(const ne in o){const fe=o[ne];Qe(fe)&&(a[ne]=fe.bind(n))}if(r){const ne=r.call(n,n);dt(ne)&&(e.data=On(ne))}if(Rc=!0,l)for(const ne in l){const fe=l[ne],ge=Qe(fe)?fe.bind(n,n):Qe(fe.get)?fe.get.bind(n,n):Xn,Ee=!Qe(fe)&&Qe(fe.set)?fe.set.bind(n):Xn,be=_({get:ge,set:Ee});Object.defineProperty(a,ne,{enumerable:!0,configurable:!0,get:()=>be.value,set:ve=>be.value=ve})}if(i)for(const ne in i)Gh(i[ne],a,n,ne);if(s){const ne=Qe(s)?s.call(n):s;Reflect.ownKeys(ne).forEach(fe=>{$t(fe,ne[fe])})}d&&dp(d,e,"c");function ee(ne,fe){Ge(fe)?fe.forEach(ge=>ne(ge.bind(n))):fe&&ne(fe.bind(n))}if(ee(Vh,f),ee(kt,m),ee(a_,p),ee(Ad,h),ee(Lh,x),ee(Bh,k),ee(i_,H),ee(o_,B),ee(l_,z),ee(At,$),ee(Ea,O),ee(r_,S),Ge(N))if(N.length){const ne=e.exposed||(e.exposed={});N.forEach(fe=>{Object.defineProperty(ne,fe,{get:()=>n[fe],set:ge=>n[fe]=ge,enumerable:!0})})}else e.exposed||(e.exposed={});M&&e.render===Xn&&(e.render=M),Y!=null&&(e.inheritAttrs=Y),R&&(e.components=R),U&&(e.directives=U),S&&qh(e)}function d_(e,t,n=Xn){Ge(e)&&(e=Ic(e));for(const a in e){const r=e[a];let l;dt(r)?"default"in r?l=ct(r.from||a,r.default,!0):l=ct(r.from||a):l=ct(r),_t(l)?Object.defineProperty(t,a,{enumerable:!0,configurable:!0,get:()=>l.value,set:o=>l.value=o}):t[a]=l}}function dp(e,t,n){Sn(Ge(e)?e.map(a=>a.bind(t.proxy)):e.bind(t.proxy),t,n)}function Gh(e,t,n,a){let r=a.includes(".")?Ph(n,a):()=>n[a];if(gt(e)){const l=t[e];Qe(l)&&ze(r,l)}else if(Qe(e))ze(r,e.bind(n));else if(dt(e))if(Ge(e))e.forEach(l=>Gh(l,t,n,a));else{const l=Qe(e.handler)?e.handler.bind(n):t[e.handler];Qe(l)&&ze(r,l,e)}}function Yh(e){const t=e.type,{mixins:n,extends:a}=t,{mixins:r,optionsCache:l,config:{optionMergeStrategies:o}}=e.appContext,i=l.get(t);let s;return i?s=i:!r.length&&!n&&!a?s=t:(s={},r.length&&r.forEach(c=>rs(s,c,o,!0)),rs(s,t,o)),dt(t)&&l.set(t,s),s}function rs(e,t,n,a=!1){const{mixins:r,extends:l}=t;l&&rs(e,l,n,!0),r&&r.forEach(o=>rs(e,o,n,!0));for(const o in t)if(!(a&&o==="expose")){const i=f_[o]||n&&n[o];e[o]=i?i(e[o],t[o]):t[o]}return e}const f_={data:fp,props:pp,emits:pp,methods:bo,computed:bo,beforeCreate:Jt,created:Jt,beforeMount:Jt,mounted:Jt,beforeUpdate:Jt,updated:Jt,beforeDestroy:Jt,beforeUnmount:Jt,destroyed:Jt,unmounted:Jt,activated:Jt,deactivated:Jt,errorCaptured:Jt,serverPrefetch:Jt,components:bo,directives:bo,watch:v_,provide:fp,inject:p_};function fp(e,t){return t?e?function(){return Et(Qe(e)?e.call(this,this):e,Qe(t)?t.call(this,this):t)}:t:e}function p_(e,t){return bo(Ic(e),Ic(t))}function Ic(e){if(Ge(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ft(t)}Modifiers`]||e[`${fr(t)}Modifiers`];function g_(e,t,...n){if(e.isUnmounted)return;const a=e.vnode.props||ht;let r=n;const l=t.startsWith("update:"),o=l&&y_(a,t.slice(7));o&&(o.trim&&(r=n.map(d=>gt(d)?d.trim():d)),o.number&&(r=n.map(xd)));let i,s=a[i=Co(t)]||a[i=Co(Ft(t))];!s&&l&&(s=a[i=Co(fr(t))]),s&&Sn(s,e,6,r);const c=a[i+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[i])return;e.emitted[i]=!0,Sn(c,e,6,r)}}const b_=new WeakMap;function Zh(e,t,n=!1){const a=n?b_:t.emitsCache,r=a.get(e);if(r!==void 0)return r;const l=e.emits;let o={},i=!1;if(!Qe(e)){const s=c=>{const d=Zh(c,t,!0);d&&(i=!0,Et(o,d))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!l&&!i?(dt(e)&&a.set(e,null),null):(Ge(l)?l.forEach(s=>o[s]=null):Et(o,l),dt(e)&&a.set(e,o),o)}function Vs(e,t){return!e||!Es(t)?!1:(t=t.slice(2).replace(/Once$/,""),pt(e,t[0].toLowerCase()+t.slice(1))||pt(e,fr(t))||pt(e,t))}function vp(e){const{type:t,vnode:n,proxy:a,withProxy:r,propsOptions:[l],slots:o,attrs:i,emit:s,render:c,renderCache:d,props:f,data:m,setupState:p,ctx:h,inheritAttrs:x}=e,k=ns(e);let y,$;try{if(n.shapeFlag&4){const O=r||a,M=O;y=Wn(c.call(M,O,d,f,p,m,h)),$=i}else{const O=t;y=Wn(O.length>1?O(f,{attrs:i,slots:o,emit:s}):O(f,null)),$=t.props?i:__(i)}}catch(O){Do.length=0,Ls(O,e,1),y=V(Pn)}let E=y;if($&&x!==!1){const O=Object.keys($),{shapeFlag:M}=E;O.length&&M&7&&(l&&O.some(As)&&($=x_($,l)),E=er(E,$,!1,!0))}return n.dirs&&(E=er(E,null,!1,!0),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&Fo(E,n.transition),y=E,ns(k),y}const __=e=>{let t;for(const n in e)(n==="class"||n==="style"||Es(n))&&((t||(t={}))[n]=e[n]);return t},x_=(e,t)=>{const n={};for(const a in e)(!As(a)||!(a.slice(9)in t))&&(n[a]=e[a]);return n};function k_(e,t,n){const{props:a,children:r,component:l}=e,{props:o,children:i,patchFlag:s}=t,c=l.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&s>=0){if(s&1024)return!0;if(s&16)return a?mp(a,o,c):!!o;if(s&8){const d=t.dynamicProps;for(let f=0;fObject.create(Qh),ty=e=>Object.getPrototypeOf(e)===Qh;function $_(e,t,n,a=!1){const r={},l=ey();e.propsDefaults=Object.create(null),ny(e,t,r,l);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);n?e.props=a?r:wh(r):e.type.props?e.props=r:e.props=l,e.attrs=l}function C_(e,t,n,a){const{props:r,attrs:l,vnode:{patchFlag:o}}=e,i=ut(r),[s]=e.propsOptions;let c=!1;if((a||o>0)&&!(o&16)){if(o&8){const d=e.vnode.dynamicProps;for(let f=0;f{s=!0;const[m,p]=ay(f,t,!0);Et(o,m),p&&i.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!l&&!s)return dt(e)&&a.set(e,bl),bl;if(Ge(l))for(let d=0;de==="_"||e==="_ctx"||e==="$stable",Dd=e=>Ge(e)?e.map(Wn):[Wn(e)],E_=(e,t,n)=>{if(t._n)return t;const a=F((...r)=>Dd(t(...r)),n);return a._c=!1,a},ry=(e,t,n)=>{const a=e._ctx;for(const r in e){if(Td(r))continue;const l=e[r];if(Qe(l))t[r]=E_(r,l,a);else if(l!=null){const o=Dd(l);t[r]=()=>o}}},ly=(e,t)=>{const n=Dd(t);e.slots.default=()=>n},oy=(e,t,n)=>{for(const a in t)(n||!Td(a))&&(e[a]=t[a])},A_=(e,t,n)=>{const a=e.slots=ey();if(e.vnode.shapeFlag&32){const r=t._;r?(oy(a,t,n),n&&eh(a,"_",r,!0)):ry(t,a)}else t&&ly(e,t)},T_=(e,t,n)=>{const{vnode:a,slots:r}=e;let l=!0,o=ht;if(a.shapeFlag&32){const i=t._;i?n&&i===1?l=!1:oy(r,t,n):(l=!t.$stable,ry(t,r)),o=t}else t&&(ly(e,t),o={default:1});if(l)for(const i in r)!Td(i)&&o[i]==null&&delete r[i]},Zt=R_;function D_(e){return O_(e)}function O_(e,t){const n=Ms();n.__VUE__=!0;const{insert:a,remove:r,patchProp:l,createElement:o,createText:i,createComment:s,setText:c,setElementText:d,parentNode:f,nextSibling:m,setScopeId:p=Xn,insertStaticContent:h}=e,x=(g,A,D,re=null,J=null,ue=null,$e=void 0,Se=null,de=!!A.dynamicChildren)=>{if(g===A)return;g&&!dl(g,A)&&(re=K(g),ve(g,J,ue,!0),g=null),A.patchFlag===-2&&(de=!1,A.dynamicChildren=null);const{type:se,ref:Te,shapeFlag:De}=A;switch(se){case zs:k(g,A,D,re);break;case Pn:y(g,A,D,re);break;case Tu:g==null&&$(A,D,re,$e);break;case he:R(g,A,D,re,J,ue,$e,Se,de);break;default:De&1?M(g,A,D,re,J,ue,$e,Se,de):De&6?U(g,A,D,re,J,ue,$e,Se,de):(De&64||De&128)&&se.process(g,A,D,re,J,ue,$e,Se,de,te)}Te!=null&&J?Ao(Te,g&&g.ref,ue,A||g,!A):Te==null&&g&&g.ref!=null&&Ao(g.ref,null,ue,g,!0)},k=(g,A,D,re)=>{if(g==null)a(A.el=i(A.children),D,re);else{const J=A.el=g.el;A.children!==g.children&&c(J,A.children)}},y=(g,A,D,re)=>{g==null?a(A.el=s(A.children||""),D,re):A.el=g.el},$=(g,A,D,re)=>{[g.el,g.anchor]=h(g.children,A,D,re,g.el,g.anchor)},E=({el:g,anchor:A},D,re)=>{let J;for(;g&&g!==A;)J=m(g),a(g,D,re),g=J;a(A,D,re)},O=({el:g,anchor:A})=>{let D;for(;g&&g!==A;)D=m(g),r(g),g=D;r(A)},M=(g,A,D,re,J,ue,$e,Se,de)=>{if(A.type==="svg"?$e="svg":A.type==="math"&&($e="mathml"),g==null)B(A,D,re,J,ue,$e,Se,de);else{const se=g.el&&g.el._isVueCE?g.el:null;try{se&&se._beginPatch(),S(g,A,J,ue,$e,Se,de)}finally{se&&se._endPatch()}}},B=(g,A,D,re,J,ue,$e,Se)=>{let de,se;const{props:Te,shapeFlag:De,transition:Ie,dirs:je}=g;if(de=g.el=o(g.type,ue,Te&&Te.is,Te),De&8?d(de,g.children):De&16&&H(g.children,de,null,re,J,Au(g,ue),$e,Se),je&&xr(g,null,re,"created"),z(de,g,g.scopeId,$e,re),Te){for(const _e in Te)_e!=="value"&&!$o(_e)&&l(de,_e,null,Te[_e],ue,re);"value"in Te&&l(de,"value",null,Te.value,ue),(se=Te.onVnodeBeforeMount)&&Fn(se,re,g)}je&&xr(g,null,re,"beforeMount");const We=M_(J,Ie);We&&Ie.beforeEnter(de),a(de,A,D),((se=Te&&Te.onVnodeMounted)||We||je)&&Zt(()=>{se&&Fn(se,re,g),We&&Ie.enter(de),je&&xr(g,null,re,"mounted")},J)},z=(g,A,D,re,J)=>{if(D&&p(g,D),re)for(let ue=0;ue{for(let se=de;se{const Se=A.el=g.el;let{patchFlag:de,dynamicChildren:se,dirs:Te}=A;de|=g.patchFlag&16;const De=g.props||ht,Ie=A.props||ht;let je;if(D&&kr(D,!1),(je=Ie.onVnodeBeforeUpdate)&&Fn(je,D,A,g),Te&&xr(A,g,D,"beforeUpdate"),D&&kr(D,!0),(De.innerHTML&&Ie.innerHTML==null||De.textContent&&Ie.textContent==null)&&d(Se,""),se?N(g.dynamicChildren,se,Se,D,re,Au(A,J),ue):$e||fe(g,A,Se,null,D,re,Au(A,J),ue,!1),de>0){if(de&16)Y(Se,De,Ie,D,J);else if(de&2&&De.class!==Ie.class&&l(Se,"class",null,Ie.class,J),de&4&&l(Se,"style",De.style,Ie.style,J),de&8){const We=A.dynamicProps;for(let _e=0;_e{je&&Fn(je,D,A,g),Te&&xr(A,g,D,"updated")},re)},N=(g,A,D,re,J,ue,$e)=>{for(let Se=0;Se{if(A!==D){if(A!==ht)for(const ue in A)!$o(ue)&&!(ue in D)&&l(g,ue,A[ue],null,J,re);for(const ue in D){if($o(ue))continue;const $e=D[ue],Se=A[ue];$e!==Se&&ue!=="value"&&l(g,ue,Se,$e,J,re)}"value"in D&&l(g,"value",A.value,D.value,J)}},R=(g,A,D,re,J,ue,$e,Se,de)=>{const se=A.el=g?g.el:i(""),Te=A.anchor=g?g.anchor:i("");let{patchFlag:De,dynamicChildren:Ie,slotScopeIds:je}=A;je&&(Se=Se?Se.concat(je):je),g==null?(a(se,D,re),a(Te,D,re),H(A.children||[],D,Te,J,ue,$e,Se,de)):De>0&&De&64&&Ie&&g.dynamicChildren&&g.dynamicChildren.length===Ie.length?(N(g.dynamicChildren,Ie,D,J,ue,$e,Se),(A.key!=null||J&&A===J.subTree)&&Od(g,A,!0)):fe(g,A,D,Te,J,ue,$e,Se,de)},U=(g,A,D,re,J,ue,$e,Se,de)=>{A.slotScopeIds=Se,g==null?A.shapeFlag&512?J.ctx.activate(A,D,re,$e,de):Q(A,D,re,J,ue,$e,de):q(g,A,de)},Q=(g,A,D,re,J,ue,$e)=>{const Se=g.component=B_(g,re,J);if(Nh(g)&&(Se.ctx.renderer=te),F_(Se,!1,$e),Se.asyncDep){if(J&&J.registerDep(Se,ee,$e),!g.el){const de=Se.subTree=V(Pn);y(null,de,A,D),g.placeholder=de.el}}else ee(Se,g,A,D,J,ue,$e)},q=(g,A,D)=>{const re=A.component=g.component;if(k_(g,A,D))if(re.asyncDep&&!re.asyncResolved){ne(re,A,D);return}else re.next=A,re.update();else A.el=g.el,re.vnode=A},ee=(g,A,D,re,J,ue,$e)=>{const Se=()=>{if(g.isMounted){let{next:De,bu:Ie,u:je,parent:We,vnode:_e}=g;{const St=iy(g);if(St){De&&(De.el=_e.el,ne(g,De,$e)),St.asyncDep.then(()=>{Zt(()=>{g.isUnmounted||se()},J)});return}}let ke=De,Ne;kr(g,!1),De?(De.el=_e.el,ne(g,De,$e)):De=_e,Ie&&Hi(Ie),(Ne=De.props&&De.props.onVnodeBeforeUpdate)&&Fn(Ne,We,De,_e),kr(g,!0);const Ye=vp(g),rt=g.subTree;g.subTree=Ye,x(rt,Ye,f(rt.el),K(rt),g,J,ue),De.el=Ye.el,ke===null&&w_(g,Ye.el),je&&Zt(je,J),(Ne=De.props&&De.props.onVnodeUpdated)&&Zt(()=>Fn(Ne,We,De,_e),J)}else{let De;const{el:Ie,props:je}=A,{bm:We,m:_e,parent:ke,root:Ne,type:Ye}=g,rt=kl(A);kr(g,!1),We&&Hi(We),!rt&&(De=je&&je.onVnodeBeforeMount)&&Fn(De,ke,A),kr(g,!0);{Ne.ce&&Ne.ce._hasShadowRoot()&&Ne.ce._injectChildStyle(Ye,g.parent?g.parent.type:void 0);const St=g.subTree=vp(g);x(null,St,D,re,g,J,ue),A.el=St.el}if(_e&&Zt(_e,J),!rt&&(De=je&&je.onVnodeMounted)){const St=A;Zt(()=>Fn(De,ke,St),J)}(A.shapeFlag&256||ke&&kl(ke.vnode)&&ke.vnode.shapeFlag&256)&&g.a&&Zt(g.a,J),g.isMounted=!0,A=D=re=null}};g.scope.on();const de=g.effect=new ih(Se);g.scope.off();const se=g.update=de.run.bind(de),Te=g.job=de.runIfDirty.bind(de);Te.i=g,Te.id=g.uid,de.scheduler=()=>Ed(Te),kr(g,!0),se()},ne=(g,A,D)=>{A.component=g;const re=g.vnode.props;g.vnode=A,g.next=null,C_(g,A.props,re,D),T_(g,A.children,D),xa(),lp(g),ka()},fe=(g,A,D,re,J,ue,$e,Se,de=!1)=>{const se=g&&g.children,Te=g?g.shapeFlag:0,De=A.children,{patchFlag:Ie,shapeFlag:je}=A;if(Ie>0){if(Ie&128){Ee(se,De,D,re,J,ue,$e,Se,de);return}else if(Ie&256){ge(se,De,D,re,J,ue,$e,Se,de);return}}je&8?(Te&16&&G(se,J,ue),De!==se&&d(D,De)):Te&16?je&16?Ee(se,De,D,re,J,ue,$e,Se,de):G(se,J,ue,!0):(Te&8&&d(D,""),je&16&&H(De,D,re,J,ue,$e,Se,de))},ge=(g,A,D,re,J,ue,$e,Se,de)=>{g=g||bl,A=A||bl;const se=g.length,Te=A.length,De=Math.min(se,Te);let Ie;for(Ie=0;IeTe?G(g,J,ue,!0,!1,De):H(A,D,re,J,ue,$e,Se,de,De)},Ee=(g,A,D,re,J,ue,$e,Se,de)=>{let se=0;const Te=A.length;let De=g.length-1,Ie=Te-1;for(;se<=De&&se<=Ie;){const je=g[se],We=A[se]=de?da(A[se]):Wn(A[se]);if(dl(je,We))x(je,We,D,null,J,ue,$e,Se,de);else break;se++}for(;se<=De&&se<=Ie;){const je=g[De],We=A[Ie]=de?da(A[Ie]):Wn(A[Ie]);if(dl(je,We))x(je,We,D,null,J,ue,$e,Se,de);else break;De--,Ie--}if(se>De){if(se<=Ie){const je=Ie+1,We=jeIe)for(;se<=De;)ve(g[se],J,ue,!0),se++;else{const je=se,We=se,_e=new Map;for(se=We;se<=Ie;se++){const Fe=A[se]=de?da(A[se]):Wn(A[se]);Fe.key!=null&&_e.set(Fe.key,se)}let ke,Ne=0;const Ye=Ie-We+1;let rt=!1,St=0;const Nt=new Array(Ye);for(se=0;se=Ye){ve(Fe,J,ue,!0);continue}let Ke;if(Fe.key!=null)Ke=_e.get(Fe.key);else for(ke=We;ke<=Ie;ke++)if(Nt[ke-We]===0&&dl(Fe,A[ke])){Ke=ke;break}Ke===void 0?ve(Fe,J,ue,!0):(Nt[Ke-We]=se+1,Ke>=St?St=Ke:rt=!0,x(Fe,A[Ke],D,null,J,ue,$e,Se,de),Ne++)}const Ve=rt?P_(Nt):bl;for(ke=Ve.length-1,se=Ye-1;se>=0;se--){const Fe=We+se,Ke=A[Fe],Rt=A[Fe+1],Pa=Fe+1{const{el:ue,type:$e,transition:Se,children:de,shapeFlag:se}=g;if(se&6){be(g.component.subTree,A,D,re);return}if(se&128){g.suspense.move(A,D,re);return}if(se&64){$e.move(g,A,D,te);return}if($e===he){a(ue,A,D);for(let De=0;DeSe.enter(ue),J));else{const{leave:De,delayLeave:Ie,afterLeave:je}=Se,We=()=>{g.ctx.isUnmounted?r(ue):a(ue,A,D)},_e=()=>{const ke=ue._isLeaving||!!ue[Un];ue._isLeaving&&ue[Un](!0),Se.persisted&&!ke?We():De(ue,()=>{We(),je&&je()})};Ie?Ie(ue,We,_e):_e()}else a(ue,A,D)},ve=(g,A,D,re=!1,J=!1)=>{const{type:ue,props:$e,ref:Se,children:de,dynamicChildren:se,shapeFlag:Te,patchFlag:De,dirs:Ie,cacheIndex:je,memo:We}=g;if(De===-2&&(J=!1),Se!=null&&(xa(),Ao(Se,null,D,g,!0),ka()),je!=null&&(A.renderCache[je]=void 0),Te&256){A.ctx.deactivate(g);return}const _e=Te&1&&Ie,ke=!kl(g);let Ne;if(ke&&(Ne=$e&&$e.onVnodeBeforeUnmount)&&Fn(Ne,A,g),Te&6)pe(g.component,D,re);else{if(Te&128){g.suspense.unmount(D,re);return}_e&&xr(g,null,A,"beforeUnmount"),Te&64?g.type.remove(g,A,D,te,re):se&&!se.hasOnce&&(ue!==he||De>0&&De&64)?G(se,A,D,!1,!0):(ue===he&&De&384||!J&&Te&16)&&G(de,A,D),re&&Ae(g)}const Ye=We!=null&&je==null;(ke&&(Ne=$e&&$e.onVnodeUnmounted)||_e||Ye)&&Zt(()=>{Ne&&Fn(Ne,A,g),_e&&xr(g,null,A,"unmounted"),Ye&&(g.el=null)},D)},Ae=g=>{const{type:A,el:D,anchor:re,transition:J}=g;if(A===he){L(D,re);return}if(A===Tu){O(g);return}const ue=()=>{r(D),J&&!J.persisted&&J.afterLeave&&J.afterLeave()};if(g.shapeFlag&1&&J&&!J.persisted){const{leave:$e,delayLeave:Se}=J,de=()=>$e(D,ue);Se?Se(g.el,ue,de):de()}else ue()},L=(g,A)=>{let D;for(;g!==A;)D=m(g),r(g),g=D;r(A)},pe=(g,A,D)=>{const{bum:re,scope:J,job:ue,subTree:$e,um:Se,m:de,a:se}=g;yp(de),yp(se),re&&Hi(re),J.stop(),ue&&(ue.flags|=8,ve($e,g,A,D)),Se&&Zt(Se,A),Zt(()=>{g.isUnmounted=!0},A)},G=(g,A,D,re=!1,J=!1,ue=0)=>{for(let $e=ue;$e{if(g.shapeFlag&6)return K(g.component.subTree);if(g.shapeFlag&128)return g.suspense.next();const A=m(g.anchor||g.el),D=A&&A[Rh];return D?m(D):A};let ie=!1;const Z=(g,A,D)=>{let re;g==null?A._vnode&&(ve(A._vnode,null,null,!0),re=A._vnode.component):x(A._vnode||null,g,A,null,null,null,D),A._vnode=g,ie||(ie=!0,lp(re),Th(),ie=!1)},te={p:x,um:ve,m:be,r:Ae,mt:Q,mc:H,pc:fe,pbc:N,n:K,o:e};return{render:Z,hydrate:void 0,createApp:h_(Z)}}function Au({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function kr({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function M_(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Od(e,t,n=!1){const a=e.children,r=t.children;if(Ge(a)&&Ge(r))for(let l=0;l>1,e[n[i]]0&&(t[a]=n[l-1]),n[l]=a)}}for(l=n.length,o=n[l-1];l-- >0;)n[l]=o,o=t[o];return n}function iy(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:iy(t)}function yp(e){if(e)for(let t=0;te.__isSuspense;function R_(e,t){t&&t.pendingBranch?Ge(e)?t.effects.push(...e):t.effects.push(e):j0(e)}const he=Symbol.for("v-fgt"),zs=Symbol.for("v-txt"),Pn=Symbol.for("v-cmt"),Tu=Symbol.for("v-stc"),Do=[];let pn=null;function v(e=!1){Do.push(pn=e?null:[])}function I_(){Do.pop(),pn=Do[Do.length-1]||null}let Vo=1;function ls(e,t=!1){Vo+=e,e<0&&pn&&t&&(pn.hasOnce=!0)}function cy(e){return e.dynamicChildren=Vo>0?pn||bl:null,I_(),Vo>0&&pn&&pn.push(e),e}function b(e,t,n,a,r,l){return cy(C(e,t,n,a,r,l,!0))}function j(e,t,n,a,r){return cy(V(e,t,n,a,r,!0))}function zo(e){return e?e.__v_isVNode===!0:!1}function dl(e,t){return e.type===t.type&&e.key===t.key}const dy=({key:e})=>e??null,Wi=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?gt(e)||_t(e)||Qe(e)?{i:Bt,r:e,k:t,f:!!n}:e:null);function C(e,t=null,n=null,a=0,r=null,l=e===he?0:1,o=!1,i=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&dy(t),ref:t&&Wi(t),scopeId:Oh,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:a,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Bt};return i?(Md(s,n),l&128&&e.normalize(s)):n&&(s.shapeFlag|=gt(n)?8:16),Vo>0&&!o&&pn&&(s.patchFlag>0||l&6)&&s.patchFlag!==32&&pn.push(s),s}const V=q_;function q_(e,t=null,n=null,a=0,r=null,l=!1){if((!e||e===jh)&&(e=Pn),zo(e)){const i=er(e,t,!0);return n&&Md(i,n),Vo>0&&!l&&pn&&(i.shapeFlag&6?pn[pn.indexOf(e)]=i:pn.push(i)),i.patchFlag=-2,i}if(H_(e)&&(e=e.__vccOpts),t){t=it(t);let{class:i,style:s}=t;i&&!gt(i)&&(t.class=ye(i)),dt(s)&&(Ns(s)&&!Ge(s)&&(s=Et({},s)),t.style=Tn(s))}const o=gt(e)?1:uy(e)?128:K0(e)?64:dt(e)?4:Qe(e)?2:0;return C(e,t,n,a,r,o,l,!0)}function it(e){return e?Ns(e)||ty(e)?Et({},e):e:null}function er(e,t,n=!1,a=!1){const{props:r,ref:l,patchFlag:o,children:i,transition:s}=e,c=t?Ue(r||{},t):r,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&dy(c),ref:t&&t.ref?n&&l?Ge(l)?l.concat(Wi(t)):[l,Wi(t)]:Wi(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!==he?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:s,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&er(e.ssContent),ssFallback:e.ssFallback&&er(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return s&&a&&Fo(d,s.clone(d)),d}function we(e=" ",t=0){return V(zs,null,e,t)}function ae(e="",t=!1){return t?(v(),j(Pn,null,e)):V(Pn,null,e)}function Wn(e){return e==null||typeof e=="boolean"?V(Pn):Ge(e)?V(he,null,e.slice()):zo(e)?da(e):V(zs,null,String(e))}function da(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:er(e)}function Md(e,t){let n=0;const{shapeFlag:a}=e;if(t==null)t=null;else if(Ge(t))n=16;else if(typeof t=="object")if(a&65){const r=t.default;r&&(r._c&&(r._d=!1),Md(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!ty(t)?t._ctx=Bt:r===3&&Bt&&(Bt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Qe(t)?(t={default:t,_ctx:Bt},n=32):(t=String(t),a&64?(n=16,t=[we(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ue(...e){const t={};for(let n=0;nKt||Bt;let os,Nc;{const e=Ms(),t=(n,a)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(a),l=>{r.length>1?r.forEach(o=>o(l)):r[0](l)}};os=t("__VUE_INSTANCE_SETTERS__",n=>Kt=n),Nc=t("__VUE_SSR_SETTERS__",n=>jo=n)}const ri=e=>{const t=Kt;return os(e),e.scope.on(),()=>{e.scope.off(),os(t)}},gp=()=>{Kt&&Kt.scope.off(),os(null)};function fy(e){return e.vnode.shapeFlag&4}let jo=!1;function F_(e,t=!1,n=!1){t&&Nc(t);const{props:a,children:r}=e.vnode,l=fy(e);$_(e,a,l,t),A_(e,r,n||t);const o=l?V_(e,t):void 0;return t&&Nc(!1),o}function V_(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,u_);const{setup:a}=n;if(a){xa();const r=e.setupContext=a.length>1?j_(e):null,l=ri(e),o=ai(a,e,0,[e.props,r]),i=Zm(o);if(ka(),l(),(i||e.sp)&&!kl(e)&&qh(e),i){if(o.then(gp,gp),t)return o.then(s=>{bp(e,s)}).catch(s=>{Ls(s,e,0)});e.asyncDep=o}else bp(e,o)}else py(e)}function bp(e,t,n){Qe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:dt(t)&&(e.setupState=Ch(t)),py(e)}function py(e,t,n){const a=e.type;e.render||(e.render=a.render||Xn);{const r=ri(e);xa();try{c_(e)}finally{ka(),r()}}}const z_={get(e,t){return Wt(e,"get",""),e[t]}};function j_(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,z_),slots:e.slots,emit:e.emit,expose:t}}function js(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ch(Qi(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in To)return To[n](e)},has(t,n){return n in t||n in To}})):e.proxy}function U_(e,t=!0){return Qe(e)?e.displayName||e.name:e.name||t&&e.__name}function H_(e){return Qe(e)&&"__vccOpts"in e}const _=(e,t)=>L0(e,t,jo);function Cn(e,t,n){try{ls(-1);const a=arguments.length;return a===2?dt(t)&&!Ge(t)?zo(t)?V(e,null,[t]):V(e,t):V(e,null,t):(a>3?n=Array.prototype.slice.call(arguments,2):a===3&&zo(n)&&(n=[n]),V(e,t,n))}finally{ls(1)}}const W_="3.5.35";let Lc;const _p=typeof window<"u"&&window.trustedTypes;if(_p)try{Lc=_p.createPolicy("vue",{createHTML:e=>e})}catch{}const vy=Lc?e=>Lc.createHTML(e):e=>e,K_="http://www.w3.org/2000/svg",G_="http://www.w3.org/1998/Math/MathML",ua=typeof document<"u"?document:null,xp=ua&&ua.createElement("template"),Y_={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,a)=>{const r=t==="svg"?ua.createElementNS(K_,e):t==="mathml"?ua.createElementNS(G_,e):n?ua.createElement(e,{is:n}):ua.createElement(e);return e==="select"&&a&&a.multiple!=null&&r.setAttribute("multiple",a.multiple),r},createText:e=>ua.createTextNode(e),createComment:e=>ua.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ua.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,a,r,l){const o=n?n.previousSibling:t.lastChild;if(r&&(r===l||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===l||!(r=r.nextSibling)););else{xp.innerHTML=vy(a==="svg"?`${e}`:a==="mathml"?`${e}`:e);const i=xp.content;if(a==="svg"||a==="mathml"){const s=i.firstChild;for(;s.firstChild;)i.appendChild(s.firstChild);i.removeChild(s)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},La="transition",lo="animation",Pl=Symbol("_vtc"),my={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},J_=Et({},Q0,my),wr=(e,t=[])=>{Ge(e)?e.forEach(n=>n(...t)):e&&e(...t)},kp=e=>e?Ge(e)?e.some(t=>t.length>1):e.length>1:!1;function Z_(e){const t={};for(const R in e)R in my||(t[R]=e[R]);if(e.css===!1)return t;const{name:n="v",type:a,duration:r,enterFromClass:l=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:i=`${n}-enter-to`,appearFromClass:s=l,appearActiveClass:c=o,appearToClass:d=i,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,h=X_(r),x=h&&h[0],k=h&&h[1],{onBeforeEnter:y,onEnter:$,onEnterCancelled:E,onLeave:O,onLeaveCancelled:M,onBeforeAppear:B=y,onAppear:z=$,onAppearCancelled:H=E}=t,S=(R,U,Q,q)=>{R._enterCancelled=q,Ua(R,U?d:i),Ua(R,U?c:o),Q&&Q()},N=(R,U)=>{R._isLeaving=!1,Ua(R,f),Ua(R,p),Ua(R,m),U&&U()},Y=R=>(U,Q)=>{const q=R?z:$,ee=()=>S(U,R,Q);wr(q,[U,ee]),wp(()=>{Ua(U,R?s:l),zn(U,R?d:i),kp(q)||$p(U,a,x,ee)})};return Et(t,{onBeforeEnter(R){wr(y,[R]),zn(R,l),zn(R,o)},onBeforeAppear(R){wr(B,[R]),zn(R,s),zn(R,c)},onEnter:Y(!1),onAppear:Y(!0),onLeave(R,U){R._isLeaving=!0;const Q=()=>N(R,U);zn(R,f),R._enterCancelled?(zn(R,m),Bc(R)):(Bc(R),zn(R,m)),wp(()=>{R._isLeaving&&(Ua(R,f),zn(R,p),kp(O)||$p(R,a,k,Q))}),wr(O,[R,Q])},onEnterCancelled(R){S(R,!1,void 0,!0),wr(E,[R])},onAppearCancelled(R){S(R,!0,void 0,!0),wr(H,[R])},onLeaveCancelled(R){N(R),wr(M,[R])}})}function X_(e){if(e==null)return null;if(dt(e))return[Du(e.enter),Du(e.leave)];{const t=Du(e);return[t,t]}}function Du(e){return a0(e)}function zn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Pl]||(e[Pl]=new Set)).add(t)}function Ua(e,t){t.split(/\s+/).forEach(a=>a&&e.classList.remove(a));const n=e[Pl];n&&(n.delete(t),n.size||(e[Pl]=void 0))}function wp(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Q_=0;function $p(e,t,n,a){const r=e._endId=++Q_,l=()=>{r===e._endId&&a()};if(n!=null)return setTimeout(l,n);const{type:o,timeout:i,propCount:s}=hy(e,t);if(!o)return a();const c=o+"end";let d=0;const f=()=>{e.removeEventListener(c,m),l()},m=p=>{p.target===e&&++d>=s&&f()};setTimeout(()=>{d(n[h]||"").split(", "),r=a(`${La}Delay`),l=a(`${La}Duration`),o=Cp(r,l),i=a(`${lo}Delay`),s=a(`${lo}Duration`),c=Cp(i,s);let d=null,f=0,m=0;t===La?o>0&&(d=La,f=o,m=l.length):t===lo?c>0&&(d=lo,f=c,m=s.length):(f=Math.max(o,c),d=f>0?o>c?La:lo:null,m=d?d===La?l.length:s.length:0);const p=d===La&&/\b(?:transform|all)(?:,|$)/.test(a(`${La}Property`).toString());return{type:d,timeout:f,propCount:m,hasTransform:p}}function Cp(e,t){for(;e.lengthSp(n)+Sp(e[a])))}function Sp(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Bc(e){return(e?e.ownerDocument:document).body.offsetHeight}function ex(e,t,n){const a=e[Pl];a&&(t=(t?[t,...a]:[...a]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const is=Symbol("_vod"),yy=Symbol("_vsh"),ss={name:"show",beforeMount(e,{value:t},{transition:n}){e[is]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):oo(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:a}){!t!=!n&&(a?t?(a.beforeEnter(e),oo(e,!0),a.enter(e)):a.leave(e,()=>{oo(e,!1)}):oo(e,t))},beforeUnmount(e,{value:t}){oo(e,t)}};function oo(e,t){e.style.display=t?e[is]:"none",e[yy]=!t}const tx=Symbol(""),nx=/(?:^|;)\s*display\s*:/;function ax(e,t,n){const a=e.style,r=gt(n);let l=!1;if(n&&!r){if(t)if(gt(t))for(const o of t.split(";")){const i=o.slice(0,o.indexOf(":")).trim();n[i]==null&&_o(a,i,"")}else for(const o in t)n[o]==null&&_o(a,o,"");for(const o in n){o==="display"&&(l=!0);const i=n[o];i!=null?lx(e,o,!gt(t)&&t?t[o]:void 0,i)||_o(a,o,i):_o(a,o,"")}}else if(r){if(t!==n){const o=a[tx];o&&(n+=";"+o),a.cssText=n,l=nx.test(n)}}else t&&e.removeAttribute("style");is in e&&(e[is]=l?a.display:"",e[yy]&&(a.display="none"))}const Ep=/\s*!important$/;function _o(e,t,n){if(Ge(n))n.forEach(a=>_o(e,t,a));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const a=rx(e,t);Ep.test(n)?e.setProperty(fr(a),n.replace(Ep,""),"important"):e[a]=n}}const Ap=["Webkit","Moz","ms"],Ou={};function rx(e,t){const n=Ou[t];if(n)return n;let a=Ft(t);if(a!=="filter"&&a in e)return Ou[t]=a;a=Os(a);for(let r=0;rMu||(ux.then(()=>Mu=0),Mu=Date.now());function dx(e,t){const n=a=>{if(!a._vts)a._vts=Date.now();else if(a._vts<=n.attached)return;const r=n.value;if(Ge(r)){const l=a.stopImmediatePropagation;a.stopImmediatePropagation=()=>{l.call(a),a._stopped=!0};const o=r.slice(),i=[a];for(let s=0;se.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,fx=(e,t,n,a,r,l)=>{const o=r==="svg";t==="class"?ex(e,a,o):t==="style"?ax(e,n,a):Es(t)?As(t)||ix(e,t,n,a,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):px(e,t,a,o))?(Op(e,t,a),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Dp(e,t,a,o,l,t!=="value")):e._isVueCE&&(vx(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!gt(a)))?Op(e,Ft(t),a,l,t):(t==="true-value"?e._trueValue=a:t==="false-value"&&(e._falseValue=a),Dp(e,t,a,o))};function px(e,t,n,a){if(a)return!!(t==="innerHTML"||t==="textContent"||t in e&&Rp(t)&&Qe(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Rp(t)&>(n)?!1:t in e}function vx(e,t){const n=e._def.props;if(!n)return!1;const a=Ft(t);return Array.isArray(n)?n.some(r=>Ft(r)===a):Object.keys(n).some(r=>Ft(r)===a)}const gy=new WeakMap,by=new WeakMap,us=Symbol("_moveCb"),Ip=Symbol("_enterCb"),mx=e=>(delete e.props.mode,e),hx=mx({name:"TransitionGroup",props:Et({},J_,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=ra(),a=X0();let r,l;return Ad(()=>{if(!r.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!xx(r[0].el,n.vnode.el,o)){r=[];return}r.forEach(gx),r.forEach(bx);const i=r.filter(_x);Bc(n.vnode.el),i.forEach(s=>{const c=s.el,d=c.style;zn(c,o),d.transform=d.webkitTransform=d.transitionDuration="";const f=c[us]=m=>{m&&m.target!==c||(!m||m.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",f),c[us]=null,Ua(c,o))};c.addEventListener("transitionend",f)}),r=[]}),()=>{const o=ut(e),i=Z_(o);let s=o.tag||he;if(r=[],l)for(let c=0;c{i.split(/\s+/).forEach(s=>s&&a.classList.remove(s))}),n.split(/\s+/).forEach(i=>i&&a.classList.add(i)),a.style.display="none";const l=t.nodeType===1?t:t.parentNode;l.appendChild(a);const{hasTransform:o}=hy(a);return l.removeChild(a),o}const qp=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ge(t)?n=>Hi(t,n):t};function kx(e){e.target.composing=!0}function Np(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Pu=Symbol("_assign");function Lp(e,t,n){return t&&(e=e.trim()),n&&(e=xd(e)),e}const Rl={created(e,{modifiers:{lazy:t,trim:n,number:a}},r){e[Pu]=qp(r);const l=a||r.props&&r.props.type==="number";fl(e,t?"change":"input",o=>{o.target.composing||e[Pu](Lp(e.value,n,l))}),(n||l)&&fl(e,"change",()=>{e.value=Lp(e.value,n,l)}),t||(fl(e,"compositionstart",kx),fl(e,"compositionend",Np),fl(e,"change",Np))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:a,trim:r,number:l}},o){if(e[Pu]=qp(o),e.composing)return;const i=(l||e.type==="number")&&!/^0\d/.test(e.value)?xd(e.value):e.value,s=t??"";if(i===s)return;const c=e.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===e&&e.type!=="range"&&(a&&t===n||r&&e.value.trim()===s)||(e.value=s)}},wx=["ctrl","shift","alt","meta"],$x={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)=>wx.some(n=>e[`${n}Key`]&&!t.includes(n))},vt=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),a=t.join(".");return n[a]||(n[a]=((r,...l)=>{for(let o=0;o{const n=e._withKeys||(e._withKeys={}),a=t.join(".");return n[a]||(n[a]=(r=>{if(!("key"in r))return;const l=fr(r.key);if(t.some(o=>o===l||Cx[o]===l))return e(r)}))},Sx=Et({patchProp:fx},Y_);let Bp;function Ex(){return Bp||(Bp=D_(Sx))}const Ax=((...e)=>{const t=Ex().createApp(...e),{mount:n}=t;return t.mount=a=>{const r=Dx(a);if(!r)return;const l=t._component;!Qe(l)&&!l.render&&!l.template&&(l.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=n(r,!1,Tx(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t});function Tx(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Dx(e){return gt(e)?document.querySelector(e):e}const pl=typeof document<"u";function xy(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Ox(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&xy(e.default)}const ft=Object.assign;function Ru(e,t){const n={};for(const a in t){const r=t[a];n[a]=Rn(r)?r.map(e):e(r)}return n}const Oo=()=>{},Rn=Array.isArray;function Fp(e,t){const n={};for(const a in e)n[a]=a in t?t[a]:e[a];return n}const ky=Symbol("");function Il(e,t){return ft(new Error,{type:e,[ky]:!0},t)}function sa(e,t){return e instanceof Error&&ky in e&&(t==null||!!(e.type&t))}const Pd=Symbol(""),Vp=Symbol(""),Us=Symbol(""),Rd=Symbol(""),Fc=Symbol("");function pr(){return ct(Us)}function En(e){return ct(Rd)}const wy=/#/g,Mx=/&/g,Px=/\//g,Rx=/=/g,Ix=/\?/g,$y=/\+/g,qx=/%5B/g,Nx=/%5D/g,Cy=/%5E/g,Lx=/%60/g,Sy=/%7B/g,Bx=/%7C/g,Ey=/%7D/g,Fx=/%20/g;function Id(e){return e==null?"":encodeURI(""+e).replace(Bx,"|").replace(qx,"[").replace(Nx,"]")}function Vx(e){return Id(e).replace(Sy,"{").replace(Ey,"}").replace(Cy,"^")}function Vc(e){return Id(e).replace($y,"%2B").replace(Fx,"+").replace(wy,"%23").replace(Mx,"%26").replace(Lx,"`").replace(Sy,"{").replace(Ey,"}").replace(Cy,"^")}function zx(e){return Vc(e).replace(Rx,"%3D")}function jx(e){return Id(e).replace(wy,"%23").replace(Ix,"%3F")}function Ux(e){return jx(e).replace(Px,"%2F")}function cs(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Hx=/\/$/,Wx=e=>e.replace(Hx,"");function Iu(e,t,n="/"){let a,r={},l="",o="";const i=t.indexOf("#");let s=t.indexOf("?");return s=i>=0&&s>i?-1:s,s>=0&&(a=t.slice(0,s),l=t.slice(s,i>0?i:t.length),r=e(l.slice(1))),i>=0&&(a=a||t.slice(0,i),o=t.slice(i,t.length)),a=Jx(a??t,n),{fullPath:a+l+o,path:a,query:r,hash:cs(o)}}function Kx(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function zp(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Gx(e,t,n){const a=t.matched.length-1,r=n.matched.length-1;return a>-1&&a===r&&ql(t.matched[a],n.matched[r])&&Ay(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function ql(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ay(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Yx(e[n],t[n]))return!1;return!0}function Yx(e,t){return Rn(e)?jp(e,t):Rn(t)?jp(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function jp(e,t){return Rn(t)?e.length===t.length&&e.every((n,a)=>n===t[a]):e.length===1&&e[0]===t}function Jx(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),a=e.split("/"),r=a[a.length-1];(r===".."||r===".")&&a.push("");let l=n.length-1,o,i;for(o=0;o1&&l--;else break;return n.slice(0,l).join("/")+"/"+a.slice(o).join("/")}const Ba={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};function Zx(e){if(!e)if(pl){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Wx(e)}const Xx=/^[^#]+#/;function Qx(e,t){return e.replace(Xx,"#")+t}function ek(e,t){const n=document.documentElement.getBoundingClientRect(),a=e.getBoundingClientRect();return{behavior:t.behavior,left:a.left-n.left-(t.left||0),top:a.top-n.top-(t.top||0)}}const Hs=()=>({left:window.scrollX,top:window.scrollY});function tk(e){let t;if("el"in e){const n=e.el,a=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?a?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=ek(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 Up(e,t){return(history.state?history.state.position-t:-1)+e}const zc=new Map;function nk(e,t){zc.set(e,t)}function ak(e){const t=zc.get(e);return zc.delete(e),t}function rk(e){return typeof e=="string"||e&&typeof e=="object"}function Ty(e){return typeof e=="string"||typeof e=="symbol"}function lk(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let a=0;ar&&Vc(r)):[a&&Vc(a)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function ok(e){const t={};for(const n in e){const a=e[n];a!==void 0&&(t[n]=Rn(a)?a.map(r=>r==null?null:""+r):a==null?a:""+a)}return t}function io(){let e=[];function t(a){return e.push(a),()=>{const r=e.indexOf(a);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Dy(e,t,n){const a=e.value;if(!a)return;let r=a;const l=()=>{r[t].delete(n)};Ea(l),Bh(l),Lh(()=>{const o=e.value;o&&(r=o),r[t].add(n)}),r[t].add(n)}function Oy(e){Dy(ct(Pd,{}),"leaveGuards",e)}function ik(e){Dy(ct(Pd,{}),"updateGuards",e)}function Ka(e,t,n,a,r,l=o=>o()){const o=a&&(a.enterCallbacks[r]=a.enterCallbacks[r]||[]);return()=>new Promise((i,s)=>{const c=m=>{m===!1?s(Il(4,{from:n,to:t})):m instanceof Error?s(m):rk(m)?s(Il(2,{from:t,to:m})):(o&&a.enterCallbacks[r]===o&&typeof m=="function"&&o.push(m),i())},d=l(()=>e.call(a&&a.instances[r],t,n,c));let f=Promise.resolve(d);e.length<3&&(f=f.then(c)),f.catch(m=>s(m))})}function qu(e,t,n,a,r=l=>l()){const l=[];for(const o of e)for(const i in o.components){let s=o.components[i];if(!(t!=="beforeRouteEnter"&&!o.instances[i]))if(xy(s)){const c=(s.__vccOpts||s)[t];c&&l.push(Ka(c,n,a,o,i,r))}else{let c=s();l.push(()=>c.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${i}" at "${o.path}"`);const f=Ox(d)?d.default:d;o.mods[i]=d,o.components[i]=f;const m=(f.__vccOpts||f)[t];return m&&Ka(m,n,a,o,i,r)()}))}}return l}function sk(e,t){const n=[],a=[],r=[],l=Math.max(t.matched.length,e.matched.length);for(let o=0;oql(c,i))?a.push(i):n.push(i));const s=e.matched[o];s&&(t.matched.find(c=>ql(c,s))||r.push(s))}return[n,a,r]}let uk=()=>location.protocol+"//"+location.host;function My(e,t){const{pathname:n,search:a,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),zp(i,"")}return zp(n,e)+a+r}function ck(e,t,n,a){let r=[],l=[],o=null;const i=({state:m})=>{const p=My(e,location),h=n.value,x=t.value;let k=0;if(m){if(n.value=p,t.value=m,o&&o===h){o=null;return}k=x?m.position-x.position:0}else a(p);r.forEach(y=>{y(n.value,h,{delta:k,type:"pop",direction:k?k>0?"forward":"back":""})})};function s(){o=n.value}function c(m){r.push(m);const p=()=>{const h=r.indexOf(m);h>-1&&r.splice(h,1)};return l.push(p),p}function d(){if(document.visibilityState==="hidden"){const{history:m}=window;if(!m.state)return;m.replaceState(ft({},m.state,{scroll:Hs()}),"")}}function f(){for(const m of l)m();l=[],window.removeEventListener("popstate",i),window.removeEventListener("pagehide",d),document.removeEventListener("visibilitychange",d)}return window.addEventListener("popstate",i),window.addEventListener("pagehide",d),document.addEventListener("visibilitychange",d),{pauseListeners:s,listen:c,destroy:f}}function Wp(e,t,n,a=!1,r=!1){return{back:e,current:t,forward:n,replaced:a,position:window.history.length,scroll:r?Hs():null}}function dk(e){const{history:t,location:n}=window,a={value:My(e,n)},r={value:t.state};r.value||l(a.value,{back:null,current:a.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function l(s,c,d){const f=e.indexOf("#"),m=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+s:uk()+e+s;try{t[d?"replaceState":"pushState"](c,"",m),r.value=c}catch(p){console.error(p),n[d?"replace":"assign"](m)}}function o(s,c){l(s,ft({},t.state,Wp(r.value.back,s,r.value.forward,!0),c,{position:r.value.position}),!0),a.value=s}function i(s,c){const d=ft({},r.value,t.state,{forward:s,scroll:Hs()});l(d.current,d,!0),l(s,ft({},Wp(a.value,s,null),{position:d.position+1},c),!1),a.value=s}return{location:a,state:r,push:i,replace:o}}function fk(e){e=Zx(e);const t=dk(e),n=ck(e,t.state,t.location,t.replace);function a(l,o=!0){o||n.pauseListeners(),history.go(l)}const r=ft({location:"",base:e,go:a,createHref:Qx.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}const pk={type:0,value:""},vk=/[a-zA-Z0-9_]/;function mk(e){if(!e)return[[]];if(e==="/")return[[pk]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=0,a=n;const r=[];let l;function o(){l&&r.push(l),l=[]}let i=0,s,c="",d="";function f(){c&&(n===0?l.push({type:0,value:c}):n===1||n===2||n===3?(l.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),l.push({type:1,value:c,regexp:d,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),c="")}function m(){c+=s}for(;it.length?t.length===1&&t[0]===80?1:-1:0}function Py(e,t){let n=0;const a=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const _k={strict:!1,end:!0,sensitive:!1};function xk(e,t,n){const a=gk(mk(e.path),n),r=ft(a,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function kk(e,t){const n=[],a=new Map;t=Fp(_k,t);function r(f){return a.get(f)}function l(f,m,p){const h=!p,x=Jp(f);x.aliasOf=p&&p.record;const k=Fp(t,f),y=[x];if("alias"in f){const O=typeof f.alias=="string"?[f.alias]:f.alias;for(const M of O)y.push(Jp(ft({},x,{components:p?p.record.components:x.components,path:M,aliasOf:p?p.record:x})))}let $,E;for(const O of y){const{path:M}=O;if(m&&M[0]!=="/"){const B=m.record.path,z=B[B.length-1]==="/"?"":"/";O.path=m.record.path+(M&&z+M)}if($=xk(O,m,k),p?p.alias.push($):(E=E||$,E!==$&&E.alias.push($),h&&f.name&&!Zp($)&&o(f.name)),Ry($)&&s($),x.children){const B=x.children;for(let z=0;z{o(E)}:Oo}function o(f){if(Ty(f)){const m=a.get(f);m&&(a.delete(f),n.splice(n.indexOf(m),1),m.children.forEach(o),m.alias.forEach(o))}else{const m=n.indexOf(f);m>-1&&(n.splice(m,1),f.record.name&&a.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function i(){return n}function s(f){const m=Ck(f,n);n.splice(m,0,f),f.record.name&&!Zp(f)&&a.set(f.record.name,f)}function c(f,m){let p,h={},x,k;if("name"in f&&f.name){if(p=a.get(f.name),!p)throw Il(1,{location:f});k=p.record.name,h=ft(Yp(m.params,p.keys.filter(E=>!E.optional).concat(p.parent?p.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),f.params&&Yp(f.params,p.keys.map(E=>E.name))),x=p.stringify(h)}else if(f.path!=null)x=f.path,p=n.find(E=>E.re.test(x)),p&&(h=p.parse(x),k=p.record.name,p.keys.forEach(E=>{E.optional&&!h[E.name]&&delete h[E.name]}));else{if(p=m.name?a.get(m.name):n.find(E=>E.re.test(m.path)),!p)throw Il(1,{location:f,currentLocation:m});k=p.record.name,h=ft({},m.params,f.params),x=p.stringify(h)}const y=[];let $=p;for(;$;)y.unshift($.record),$=$.parent;return{name:k,path:x,params:h,matched:y,meta:$k(y)}}e.forEach(f=>l(f));function d(){n.length=0,a.clear()}return{addRoute:l,resolve:c,removeRoute:o,clearRoutes:d,getRoutes:i,getRecordMatcher:r}}function Yp(e,t){const n={};for(const a of t)a in e&&(n[a]=e[a]);return n}function Jp(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:wk(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 wk(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const a in e.components)t[a]=typeof n=="object"?n[a]:n;return t}function Zp(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function $k(e){return e.reduce((t,n)=>ft(t,n.meta),{})}function Ck(e,t){let n=0,a=t.length;for(;n!==a;){const l=n+a>>1;Py(e,t[l])<0?a=l:n=l+1}const r=Sk(e);return r&&(a=t.lastIndexOf(r,a-1)),a}function Sk(e){let t=e;for(;t=t.parent;)if(Ry(t)&&Py(e,t)===0)return t}function Ry({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Xp(e){const t=ct(Us),n=ct(Rd),a=_(()=>{const s=u(e.to);return t.resolve(s)}),r=_(()=>{const{matched:s}=a.value,{length:c}=s,d=s[c-1],f=n.matched;if(!d||!f.length)return-1;const m=f.findIndex(ql.bind(null,d));if(m>-1)return m;const p=Qp(s[c-2]);return c>1&&Qp(d)===p&&f[f.length-1].path!==p?f.findIndex(ql.bind(null,s[c-2])):m}),l=_(()=>r.value>-1&&Tk(n.params,a.value.params)),o=_(()=>r.value>-1&&r.value===n.matched.length-1&&Ay(n.params,a.value.params));function i(s={}){if(Ak(s)){const c=t[u(e.replace)?"replace":"push"](u(e.to)).catch(Oo);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:a,href:_(()=>a.value.href),isActive:l,isExactActive:o,navigate:i}}function Ek(e){return e.length===1?e[0]:e}const ea=oe({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:Xp,setup(e,{slots:t}){const n=On(Xp(e)),{options:a}=ct(Us),r=_(()=>({[ev(e.activeClass,a.linkActiveClass,"router-link-active")]:n.isActive,[ev(e.exactActiveClass,a.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const l=t.default&&Ek(t.default(n));return e.custom?l:Cn("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},l)}}});function Ak(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 Tk(e,t){for(const n in t){const a=t[n],r=e[n];if(typeof a=="string"){if(a!==r)return!1}else if(!Rn(r)||r.length!==a.length||a.some((l,o)=>l.valueOf()!==r[o].valueOf()))return!1}return!0}function Qp(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ev=(e,t,n)=>e??t??n,Dk=oe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const a=ct(Fc),r=_(()=>e.route||a.value),l=ct(Vp,0),o=_(()=>{let c=u(l);const{matched:d}=r.value;let f;for(;(f=d[c])&&!f.components;)c++;return c}),i=_(()=>r.value.matched[o.value]);$t(Vp,_(()=>o.value+1)),$t(Pd,i),$t(Fc,r);const s=P();return ze(()=>[s.value,i.value,e.name],([c,d,f],[m,p,h])=>{d&&(d.instances[f]=c,p&&p!==d&&c&&c===m&&(d.leaveGuards.size||(d.leaveGuards=p.leaveGuards),d.updateGuards.size||(d.updateGuards=p.updateGuards))),c&&d&&(!p||!ql(d,p)||!m)&&(d.enterCallbacks[f]||[]).forEach(x=>x(c))},{flush:"post"}),()=>{const c=r.value,d=e.name,f=i.value,m=f&&f.components[d];if(!m)return tv(n.default,{Component:m,route:c});const p=f.props[d],h=p?p===!0?c.params:typeof p=="function"?p(c):p:null,k=Cn(m,ft({},h,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(f.instances[d]=null)},ref:s}));return tv(n.default,{Component:k,route:c})||k}}});function tv(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const jc=Dk;function Ok(e){const t=kk(e.routes,e),n=e.parseQuery||lk,a=e.stringifyQuery||Hp,r=e.history,l=io(),o=io(),i=io(),s=ni(Ba);let c=Ba;pl&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=Ru.bind(null,K=>""+K),f=Ru.bind(null,Ux),m=Ru.bind(null,cs);function p(K,ie){let Z,te;return Ty(K)?(Z=t.getRecordMatcher(K),te=ie):te=K,t.addRoute(te,Z)}function h(K){const ie=t.getRecordMatcher(K);ie&&t.removeRoute(ie)}function x(){return t.getRoutes().map(K=>K.record)}function k(K){return!!t.getRecordMatcher(K)}function y(K,ie){if(ie=ft({},ie||s.value),typeof K=="string"){const D=Iu(n,K,ie.path),re=t.resolve({path:D.path},ie),J=r.createHref(D.fullPath);return ft(D,re,{params:m(re.params),redirectedFrom:void 0,href:J})}let Z;if(K.path!=null)Z=ft({},K,{path:Iu(n,K.path,ie.path).path});else{const D=ft({},K.params);for(const re in D)D[re]==null&&delete D[re];Z=ft({},K,{params:f(D)}),ie.params=f(ie.params)}const te=t.resolve(Z,ie),ce=K.hash||"";te.params=d(m(te.params));const g=Kx(a,ft({},K,{hash:Vx(ce),path:te.path})),A=r.createHref(g);return ft({fullPath:g,hash:ce,query:a===Hp?ok(K.query):K.query||{}},te,{redirectedFrom:void 0,href:A})}function $(K){return typeof K=="string"?Iu(n,K,s.value.path):ft({},K)}function E(K,ie){if(c!==K)return Il(8,{from:ie,to:K})}function O(K){return z(K)}function M(K){return O(ft($(K),{replace:!0}))}function B(K,ie){const Z=K.matched[K.matched.length-1];if(Z&&Z.redirect){const{redirect:te}=Z;let ce=typeof te=="function"?te(K,ie):te;return typeof ce=="string"&&(ce=ce.includes("?")||ce.includes("#")?ce=$(ce):{path:ce},ce.params={}),ft({query:K.query,hash:K.hash,params:ce.path!=null?{}:K.params},ce)}}function z(K,ie){const Z=c=y(K),te=s.value,ce=K.state,g=K.force,A=K.replace===!0,D=B(Z,te);if(D)return z(ft($(D),{state:typeof D=="object"?ft({},ce,D.state):ce,force:g,replace:A}),ie||Z);const re=Z;re.redirectedFrom=ie;let J;return!g&&Gx(a,te,Z)&&(J=Il(16,{to:re,from:te}),be(te,te,!0,!1)),(J?Promise.resolve(J):N(re,te)).catch(ue=>sa(ue)?sa(ue,2)?ue:Ee(ue):fe(ue,re,te)).then(ue=>{if(ue){if(sa(ue,2))return z(ft({replace:A},$(ue.to),{state:typeof ue.to=="object"?ft({},ce,ue.to.state):ce,force:g}),ie||re)}else ue=R(re,te,!0,A,ce);return Y(re,te,ue),ue})}function H(K,ie){const Z=E(K,ie);return Z?Promise.reject(Z):Promise.resolve()}function S(K){const ie=L.values().next().value;return ie&&typeof ie.runWithContext=="function"?ie.runWithContext(K):K()}function N(K,ie){let Z;const[te,ce,g]=sk(K,ie);Z=qu(te.reverse(),"beforeRouteLeave",K,ie);for(const D of te)D.leaveGuards.forEach(re=>{Z.push(Ka(re,K,ie))});const A=H.bind(null,K,ie);return Z.push(A),G(Z).then(()=>{Z=[];for(const D of l.list())Z.push(Ka(D,K,ie));return Z.push(A),G(Z)}).then(()=>{Z=qu(ce,"beforeRouteUpdate",K,ie);for(const D of ce)D.updateGuards.forEach(re=>{Z.push(Ka(re,K,ie))});return Z.push(A),G(Z)}).then(()=>{Z=[];for(const D of g)if(D.beforeEnter)if(Rn(D.beforeEnter))for(const re of D.beforeEnter)Z.push(Ka(re,K,ie));else Z.push(Ka(D.beforeEnter,K,ie));return Z.push(A),G(Z)}).then(()=>(K.matched.forEach(D=>D.enterCallbacks={}),Z=qu(g,"beforeRouteEnter",K,ie,S),Z.push(A),G(Z))).then(()=>{Z=[];for(const D of o.list())Z.push(Ka(D,K,ie));return Z.push(A),G(Z)}).catch(D=>sa(D,8)?D:Promise.reject(D))}function Y(K,ie,Z){i.list().forEach(te=>S(()=>te(K,ie,Z)))}function R(K,ie,Z,te,ce){const g=E(K,ie);if(g)return g;const A=ie===Ba,D=pl?history.state:{};Z&&(te||A?r.replace(K.fullPath,ft({scroll:A&&D&&D.scroll},ce)):r.push(K.fullPath,ce)),s.value=K,be(K,ie,Z,A),Ee()}let U;function Q(){U||(U=r.listen((K,ie,Z)=>{if(!pe.listening)return;const te=y(K),ce=B(te,pe.currentRoute.value);if(ce){z(ft(ce,{replace:!0,force:!0}),te).catch(Oo);return}c=te;const g=s.value;pl&&nk(Up(g.fullPath,Z.delta),Hs()),N(te,g).catch(A=>sa(A,12)?A:sa(A,2)?(z(ft($(A.to),{force:!0}),te).then(D=>{sa(D,20)&&!Z.delta&&Z.type==="pop"&&r.go(-1,!1)}).catch(Oo),Promise.reject()):(Z.delta&&r.go(-Z.delta,!1),fe(A,te,g))).then(A=>{A=A||R(te,g,!1),A&&(Z.delta&&!sa(A,8)?r.go(-Z.delta,!1):Z.type==="pop"&&sa(A,20)&&r.go(-1,!1)),Y(te,g,A)}).catch(Oo)}))}let q=io(),ee=io(),ne;function fe(K,ie,Z){Ee(K);const te=ee.list();return te.length?te.forEach(ce=>ce(K,ie,Z)):console.error(K),Promise.reject(K)}function ge(){return ne&&s.value!==Ba?Promise.resolve():new Promise((K,ie)=>{q.add([K,ie])})}function Ee(K){return ne||(ne=!K,Q(),q.list().forEach(([ie,Z])=>K?Z(K):ie()),q.reset()),K}function be(K,ie,Z,te){const{scrollBehavior:ce}=e;if(!pl||!ce)return Promise.resolve();const g=!Z&&ak(Up(K.fullPath,0))||(te||!Z)&&history.state&&history.state.scroll||null;return Ze().then(()=>ce(K,ie,g)).then(A=>A&&tk(A)).catch(A=>fe(A,K,ie))}const ve=K=>r.go(K);let Ae;const L=new Set,pe={currentRoute:s,listening:!0,addRoute:p,removeRoute:h,clearRoutes:t.clearRoutes,hasRoute:k,getRoutes:x,resolve:y,options:e,push:O,replace:M,go:ve,back:()=>ve(-1),forward:()=>ve(1),beforeEach:l.add,beforeResolve:o.add,afterEach:i.add,onError:ee.add,isReady:ge,install(K){K.component("RouterLink",ea),K.component("RouterView",jc),K.config.globalProperties.$router=pe,Object.defineProperty(K.config.globalProperties,"$route",{enumerable:!0,get:()=>u(s)}),pl&&!Ae&&s.value===Ba&&(Ae=!0,O(r.location).catch(te=>{}));const ie={};for(const te in Ba)Object.defineProperty(ie,te,{get:()=>s.value[te],enumerable:!0});K.provide(Us,pe),K.provide(Rd,wh(ie)),K.provide(Fc,s);const Z=K.unmount;L.add(K),K.unmount=function(){L.delete(K),L.size<1&&(c=Ba,U&&U(),U=null,s.value=Ba,Ae=!1,ne=!1),Z()}}};function G(K){return K.reduce((ie,Z)=>ie.then(()=>S(Z)),Promise.resolve())}return pe}const Mk=/^[A-Za-z0-9_-]+$/;function li(e){const t=e.split(".");if(t.length!==3||!t.every(l=>Mk.test(l)))return null;const[n,a,r]=t;return{vendor:n,plugin:a,controller:r}}function In(e){const t=li(e);return t?`/${t.vendor}/${t.plugin}/${t.controller}`:null}function oi(e){return`${e.vendor}.${e.plugin}.${e.controller}`}function ii(e){const t=e.replace(/^\/+|\/+$/g,"").split("/");if(t.length<3)return null;const n=t.slice(0,3).join(".");return li(n)?n:null}function nv(e){const t=li(e);return t?`${t.vendor}.${t.plugin}`:null}const Pk=/\{[^{}]+\}/g,Rk=()=>typeof process=="object"&&Number.parseInt(process?.versions?.node?.substring(0,2))>=18&&process.versions.undici;function Ik(){return Math.random().toString(36).slice(2,11)}function qk(e){let{baseUrl:t="",Request:n=globalThis.Request,fetch:a=globalThis.fetch,querySerializer:r,bodySerializer:l,pathSerializer:o,headers:i,requestInitExt:s=void 0,...c}={...e};s=Rk()?s:void 0,t=lv(t);const d=[];async function f(m,p){const{baseUrl:h,fetch:x=a,Request:k=n,headers:y,params:$={},parseAs:E="json",querySerializer:O,bodySerializer:M=l??Lk,pathSerializer:B,body:z,middleware:H=[],...S}=p||{};let N=t;h&&(N=lv(h)??t);let Y=typeof r=="function"?r:av(r);O&&(Y=typeof O=="function"?O:av({...typeof r=="object"?r:{},...O}));const R=B||o||Nk,U=z===void 0?void 0:M(z,rv(i,y,$.header)),Q=rv(U===void 0||U instanceof FormData?{}:{"Content-Type":"application/json"},i,y,$.header),q=[...d,...H],ee={redirect:"follow",...c,...S,body:U,headers:Q};let ne,fe,ge=new k(Bk(m,{baseUrl:N,params:$,querySerializer:Y,pathSerializer:R}),ee),Ee;for(const Ae in S)Ae in ge||(ge[Ae]=S[Ae]);if(q.length){ne=Ik(),fe=Object.freeze({baseUrl:N,fetch:x,parseAs:E,querySerializer:Y,bodySerializer:M,pathSerializer:R});for(const Ae of q)if(Ae&&typeof Ae=="object"&&typeof Ae.onRequest=="function"){const L=await Ae.onRequest({request:ge,schemaPath:m,params:$,options:fe,id:ne});if(L)if(L instanceof k)ge=L;else if(L instanceof Response){Ee=L;break}else throw new Error("onRequest: must return new Request() or Response() when modifying the request")}}if(!Ee){try{Ee=await x(ge,s)}catch(Ae){let L=Ae;if(q.length)for(let pe=q.length-1;pe>=0;pe--){const G=q[pe];if(G&&typeof G=="object"&&typeof G.onError=="function"){const K=await G.onError({request:ge,error:L,schemaPath:m,params:$,options:fe,id:ne});if(K){if(K instanceof Response){L=void 0,Ee=K;break}if(K instanceof Error){L=K;continue}throw new Error("onError: must return new Response() or instance of Error")}}}if(L)throw L}if(q.length)for(let Ae=q.length-1;Ae>=0;Ae--){const L=q[Ae];if(L&&typeof L=="object"&&typeof L.onResponse=="function"){const pe=await L.onResponse({request:ge,response:Ee,schemaPath:m,params:$,options:fe,id:ne});if(pe){if(!(pe instanceof Response))throw new Error("onResponse: must return new Response() when modifying the response");Ee=pe}}}}const be=Ee.headers.get("Content-Length");if(Ee.status===204||ge.method==="HEAD"||be==="0"&&!Ee.headers.get("Transfer-Encoding")?.includes("chunked"))return Ee.ok?{data:void 0,response:Ee}:{error:void 0,response:Ee};if(Ee.ok)return{data:await(async()=>{if(E==="stream")return Ee.body;if(E==="json"&&!be){const L=await Ee.text();return L?JSON.parse(L):void 0}return await Ee[E]()})(),response:Ee};let ve=await Ee.text();try{ve=JSON.parse(ve)}catch{}return{error:ve,response:Ee}}return{request(m,p,h){return f(p,{...h,method:m.toUpperCase()})},GET(m,p){return f(m,{...p,method:"GET"})},PUT(m,p){return f(m,{...p,method:"PUT"})},POST(m,p){return f(m,{...p,method:"POST"})},DELETE(m,p){return f(m,{...p,method:"DELETE"})},OPTIONS(m,p){return f(m,{...p,method:"OPTIONS"})},HEAD(m,p){return f(m,{...p,method:"HEAD"})},PATCH(m,p){return f(m,{...p,method:"PATCH"})},TRACE(m,p){return f(m,{...p,method:"TRACE"})},use(...m){for(const p of m)if(p){if(typeof p!="object"||!("onRequest"in p||"onResponse"in p||"onError"in p))throw new Error("Middleware must be an object with one of `onRequest()`, `onResponse() or `onError()`");d.push(p)}},eject(...m){for(const p of m){const h=d.indexOf(p);h!==-1&&d.splice(h,1)}}}}function Ws(e,t,n){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}=${n?.allowReserved===!0?t:encodeURIComponent(t)}`}function Iy(e,t,n){if(!t||typeof t!="object")return"";const a=[],r={simple:",",label:".",matrix:";"}[n.style]||"&";if(n.style!=="deepObject"&&n.explode===!1){for(const i in t)a.push(i,n.allowReserved===!0?t[i]:encodeURIComponent(t[i]));const o=a.join(",");switch(n.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=n.style==="deepObject"?`${e}[${o}]`:o;a.push(Ws(i,t[o],n))}const l=a.join(r);return n.style==="label"||n.style==="matrix"?`${r}${l}`:l}function qy(e,t,n){if(!Array.isArray(t))return"";if(n.explode===!1){const l={form:",",spaceDelimited:"%20",pipeDelimited:"|"}[n.style]||",",o=(n.allowReserved===!0?t:t.map(i=>encodeURIComponent(i))).join(l);switch(n.style){case"simple":return o;case"label":return`.${o}`;case"matrix":return`;${e}=${o}`;default:return`${e}=${o}`}}const a={simple:",",label:".",matrix:";"}[n.style]||"&",r=[];for(const l of t)n.style==="simple"||n.style==="label"?r.push(n.allowReserved===!0?l:encodeURIComponent(l)):r.push(Ws(e,l,n));return n.style==="label"||n.style==="matrix"?`${a}${r.join(a)}`:r.join(a)}function av(e){return function(n){const a=[];if(n&&typeof n=="object")for(const r in n){const l=n[r];if(l!=null){if(Array.isArray(l)){if(l.length===0)continue;a.push(qy(r,l,{style:"form",explode:!0,...e?.array,allowReserved:e?.allowReserved||!1}));continue}if(typeof l=="object"){a.push(Iy(r,l,{style:"deepObject",explode:!0,...e?.object,allowReserved:e?.allowReserved||!1}));continue}a.push(Ws(r,l,e))}}return a.join("&")}}function Nk(e,t){let n=e;for(const a of e.match(Pk)??[]){let r=a.substring(1,a.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)){n=n.replace(a,qy(r,i,{style:o,explode:l}));continue}if(typeof i=="object"){n=n.replace(a,Iy(r,i,{style:o,explode:l}));continue}if(o==="matrix"){n=n.replace(a,`;${Ws(r,i)}`);continue}n=n.replace(a,o==="label"?`.${encodeURIComponent(i)}`:encodeURIComponent(i))}return n}function Lk(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 Bk(e,t){let n=`${t.baseUrl}${e}`;t.params?.path&&(n=t.pathSerializer(n,t.params.path));let a=t.querySerializer(t.params.query??{});return a.startsWith("?")&&(a=a.substring(1)),a&&(n+=`?${a}`),n}function rv(...e){const t=new Headers;for(const n of e){if(!n||typeof n!="object")continue;const a=n instanceof Headers?n.entries():Object.entries(n);for(const[r,l]of a)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 lv(e){return e.endsWith("/")?e.substring(0,e.length-1):e}const ov="/backend",Fk="__SUMMER_ADMIN_BASE__";function Vk(e=document){const t=e.querySelector('meta[name="summer-admin-base"]')?.content.trim()??"";if(t===""||t===Fk||!t.startsWith("/"))return ov;const n=t.replace(/\/+$/,"");return n===""?ov:n}const iv=Vk(),Ks={base:iv,api:`${iv}/api/v1`},Ny="XMLHttpRequest";let ds=null,Ly=null,so=null;const Nu=new WeakMap;function zk(e){ds=e}function jk(){ds?.()}function Uk(e){Ly=e}function Hk(e){return new URL(e.url,"http://local").pathname}function sv(e){const t=Hk(e);return t.endsWith("/auth/login")||t.endsWith("/auth/refresh")}function qd(){return so||(so=(async()=>{try{const{data:e,response:t}=await Be.POST("/auth/refresh");if(!t.ok||!e)return!1;const n=e.data.expires_in;return Ly?.(typeof n=="number"?n:null),!0}catch{return!1}finally{so=null}})(),so)}const Wk={onRequest({request:e}){return e.headers.set("X-Requested-With",Ny),sv(e)||Nu.set(e,e.clone()),e},async onResponse({request:e,response:t}){if(t.status!==401||sv(e))return t;const n=Nu.get(e);if(Nu.delete(e),!n||!await qd())return ds?.(),t;const a=await globalThis.fetch(n);return a.status===401&&ds?.(),a}},Be=qk({baseUrl:Ks.api,credentials:"same-origin",fetch:e=>globalThis.fetch(e)});Be.use(Wk);const Nd=P({}),Ld=P(typeof document>"u"?"pl":document.documentElement.lang||"pl"),Nl=Mt(Ld);function Kk(e,t){Nd.value=e,t&&(Ld.value=t,typeof document<"u"&&(document.documentElement.lang=t))}async function Gk(){const{data:e,response:t}=await Be.GET("/lang");!t.ok||!e||Kk(e.data,e.meta.locale)}function uv(e){const t=e.codePointAt(0);if(t===void 0)return e;const n=String.fromCodePoint(t);return n.toUpperCase()+e.slice(n.length)}function Uc(e,t={}){if(e==="")return e;const n=[];for(const[r,l]of Object.entries(t)){const o=r.replace(/^:/,"");if(o==="")continue;const i=String(l);n.push([`:${uv(o)}`,uv(i)]),n.push([`:${o.toUpperCase()}`,i.toUpperCase()]),n.push([`:${o}`,i])}n.sort((r,l)=>l[0].length-r[0].length);let a=e;for(const[r,l]of n)a=a.split(r).join(l);return a}const cv=new Map;function Yk(e,t=Ld.value){let n=cv.get(t);if(n===void 0){try{n=new Intl.PluralRules(t)}catch{n=null}cv.set(t,n)}return n?n.select(e):"other"}function Je(e,t,n={}){if(!e)return"";if(t===void 0)return Uc(e.other??"",n);const a=e[Yk(t)]??e.other??"";return Uc(a,{count:t,...n})}function w(e,t={}){const n=Nd.value[e]?.other;return n===void 0?e:Uc(n,t)}function qr(e,t,n={}){const a=Nd.value[e];return a?Je(a,t,n):e}const Bd=P(""),xo=Mt(Bd);function Fd(e){Bd.value=e}function Vd(){Bd.value=""}const fs=P([]);async function By(){const{data:e,response:t}=await Be.GET("/navigation");return fs.value=t.ok&&e?e.data:[],fs.value}function Jk(e){fs.value=e}const ps=_(()=>fs.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 zd(e){for(const t of e.sideMenu){const n=In(t.controller);if(n)return n}return In(e.controller)}function si(e,t){const n=`${e}.${t}`;return ps.value.find(a=>nv(a.controller)===n||a.sideMenu.some(r=>nv(r.controller)===n))??null}function Zk(){for(const e of ps.value){const t=zd(e);if(t)return t}return null}const Nr=P([]),Xk=_(()=>Nr.value.length>0);async function Fy(){const{data:e,response:t}=await Be.GET("/settings");return Nr.value=t.ok&&e?e.data:[],Nr.value}function Qk(e){Nr.value=e}function vs(e){return Nr.value.find(t=>t.code===e)??null}function Hc(e){return e.controller?In(e.controller)??"/settings":`/settings/${encodeURIComponent(e.code)}`}function jd(e){return e?Nr.value.find(t=>t.controller!==""&&t.controller===e)??null:null}const dv=_(()=>{const e=Nr.value.map((n,a)=>({entry:n,index:a})).sort((n,a)=>n.entry.order-a.entry.order||n.index-a.index).map(({entry:n})=>n),t=[];for(const n of e){let a=t.find(r=>r.category===n.category);a||(a={category:n.category,entries:[]},t.push(a)),a.entries.push(n)}return t}),fv="SummerCMS";function ew(e){if(e.name==="login")return w("backend::lang.auth.title");if(e.name==="settings")return w("backend::lang.settings.title");if(e.name==="account")return w("backend::lang.myaccount.menu_label");if(e.name==="settings-form")return vs(String(e.params.code??""))?.label??String(e.params.code??"");if(e.name==="home")return w("backend::lang.nav.empty");if(e.name==="not-found")return w("backend::lang.page.not_found");const t=si(String(e.params.vendor??""),String(e.params.plugin??"")),n=ii(e.path),r=t?.sideMenu.find(l=>l.controller===n)?.label??t?.label??jd(n)?.label??"";return(e.name==="create"||e.name==="record"||e.name==="preview")&&xo.value||r}function tw(e){const t=ew(e).trim();return t===""?fv:`${t} | ${fv}`}const pv=e=>e==="";const nw=(...e)=>e.filter((t,n,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===n).join(" ").trim();const vv=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const aw=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,a)=>a?a.toUpperCase():n.toLowerCase());const rw=e=>{const t=aw(e);return t.charAt(0).toUpperCase()+t.slice(1)};var al={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 lw=Symbol("lucide-icons");function ow(){return ct(lw,{})}const iw=({name:e,iconNode:t,absoluteStrokeWidth:n,"absolute-stroke-width":a,strokeWidth:r,"stroke-width":l,size:o,color:i,...s},{slots:c})=>{const{size:d,color:f,strokeWidth:m=2,absoluteStrokeWidth:p=!1,class:h=""}=ow(),x=_(()=>{const k=pv(n)||pv(a)||n===!0||a===!0||p===!0,y=r||l||m||al["stroke-width"];return k?Number(y)*24/Number(o??d??al.width):y});return Cn("svg",{...al,...s,width:o??d??al.width,height:o??d??al.height,stroke:i??f??al.stroke,"stroke-width":x.value,class:nw("lucide",h,...e?[`lucide-${vv(rw(e))}-icon`,`lucide-${vv(e)}`]:["lucide-icon"])},[...t.map(k=>Cn(...k)),...c.default?[c.default()]:[]])};const me=(e,t)=>(n,{slots:a,attrs:r})=>Cn(iw,{...r,...n,iconNode:t,name:e},a.default?{default:a.default}:void 0);const sw=[["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"}]],uw=me("archive",sw);const cw=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],Vy=me("arrow-down",cw);const dw=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],ui=me("arrow-left",dw);const fw=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],pw=me("arrow-right",fw);const vw=[["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"}]],zy=me("arrow-up-down",vw);const mw=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],jy=me("arrow-up-right",mw);const hw=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],Uy=me("arrow-up",hw);const yw=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]],gw=me("ban",yw);const bw=[["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"}]],_w=me("bell",bw);const xw=[["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"}]],kw=me("bold",xw);const ww=[["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"}]],$w=me("book",ww);const Cw=[["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"}]],Sw=me("bookmark",Cw);const Ew=[["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"}]],Aw=me("box",Ew);const Tw=[["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"}]],Dw=me("briefcase",Tw);const Ow=[["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"}]],Mw=me("building",Ow);const Pw=[["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"}]],Hy=me("calendar",Pw);const Rw=[["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"}]],Iw=me("camera",Rw);const qw=[["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"}]],Nw=me("cassette-tape",qw);const Lw=[["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"}]],Bw=me("chart-bar",Lw);const Fw=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],nr=me("check",Fw);const Vw=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ar=me("chevron-down",Vw);const zw=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Gs=me("chevron-left",zw);const jw=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ci=me("chevron-right",jw);const Uw=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Wy=me("chevron-up",Uw);const Hw=[["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"}]],bt=me("circle-alert",Hw);const Ww=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Kw=me("circle-check",Ww);const Gw=[["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"}]],Yw=me("circle-question-mark",Gw);const Jw=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Zw=me("circle",Jw);const Xw=[["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"}]],Qw=me("clipboard-list",Xw);const e2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],Wc=me("clock",e2);const t2=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],n2=me("cloud",t2);const a2=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],Ky=me("code",a2);const r2=[["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"}]],Gy=me("copy",r2);const l2=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],o2=me("credit-card",l2);const i2=[["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"}]],s2=me("database",i2);const u2=[["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"}]],c2=me("disc-3",u2);const d2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],f2=me("disc",d2);const p2=[["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"}]],Kc=me("download",p2);const v2=[["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"}]],Yy=me("external-link",v2);const m2=[["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"}]],h2=me("eye-off",m2);const y2=[["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"}]],g2=me("eye",y2);const b2=[["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"}]],yl=me("file-text",b2);const _2=[["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"}]],x2=me("file",_2);const k2=[["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"}]],w2=me("files",k2);const $2=[["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"}]],C2=me("flag",$2);const S2=[["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"}]],E2=me("folder",S2);const A2=[["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"}]],T2=me("funnel",A2);const D2=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],O2=me("gauge",D2);const M2=[["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"}]],P2=me("globe",M2);const R2=[["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"}]],I2=me("graduation-cap",R2);const q2=[["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"}]],ms=me("grip-vertical",q2);const N2=[["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"}]],L2=me("heading-3",N2);const B2=[["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"}]],F2=me("heart",B2);const V2=[["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"}]],z2=me("house",V2);const j2=[["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"}]],mv=me("image-off",j2);const U2=[["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"}]],H2=me("image-up",U2);const W2=[["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"}]],K2=me("image",W2);const G2=[["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"}]],Y2=me("inbox",G2);const J2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Ys=me("info",J2);const Z2=[["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"}]],X2=me("italic",Z2);const Q2=[["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"}]],e$=me("key-round",Q2);const t$=[["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"}]],n$=me("key",t$);const a$=[["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"}]],r$=me("languages",a$);const l$=[["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"}]],o$=me("layout-grid",l$);const i$=[["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"}]],s$=me("leaf",i$);const u$=[["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"}]],c$=me("library",u$);const d$=[["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"}]],f$=me("life-buoy",d$);const p$=[["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"}]],Jy=me("link",p$);const v$=[["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"}]],m$=me("list-indent-decrease",v$);const h$=[["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"}]],y$=me("list-indent-increase",h$);const g$=[["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"}]],Zy=me("list-ordered",g$);const b$=[["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"}]],Xy=me("list",b$);const _$=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],$l=me("loader-circle",_$);const x$=[["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"}]],Or=me("lock",x$);const k$=[["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"}]],Qy=me("log-out",k$);const w$=[["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"}]],$$=me("mail",w$);const C$=[["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"}]],S$=me("map-pin",C$);const E$=[["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"}]],A$=me("message-circle",E$);const T$=[["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"}]],D$=me("mic-vocal",T$);const O$=[["path",{d:"M5 12h14",key:"1ays0h"}]],eg=me("minus",O$);const M$=[["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"}]],P$=me("network",M$);const R$=[["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"}]],I$=me("palette",R$);const q$=[["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"}]],tg=me("panel-left-close",q$);const N$=[["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"}]],ng=me("panel-left-open",N$);const L$=[["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"}]],B$=me("paperclip",L$);const F$=[["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"}]],V$=me("pause",F$);const z$=[["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"}]],Mo=me("pencil",z$);const j$=[["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"}]],U$=me("phone",j$);const H$=[["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"}]],W$=me("play",H$);const K$=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],di=me("plus",K$);const G$=[["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"}]],ag=me("puzzle",G$);const Y$=[["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"}]],J$=me("quote",Y$);const Z$=[["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"}]],X$=me("redo-2",Z$);const Q$=[["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"}]],eC=me("refresh-cw",Q$);const tC=[["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"}]],Ki=me("rotate-ccw",tC);const nC=[["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"}]],rg=me("search-x",nC);const aC=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Js=me("search",aC);const rC=[["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"}]],lg=me("settings",rC);const lC=[["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"}]],oC=me("shield-check",lC);const iC=[["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"}]],sC=me("shopping-cart",iC);const uC=[["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"}]],cC=me("sliders-horizontal",uC);const dC=[["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"}]],fC=me("star",dC);const pC=[["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"}]],Zs=me("sun",pC);const vC=[["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"}]],mC=me("table",vC);const hC=[["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"}]],yC=me("tags",hC);const gC=[["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"}]],Ur=me("trash-2",gC);const bC=[["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"}]],og=me("triangle-alert",bC);const _C=[["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"}]],xC=me("trophy",_C);const kC=[["path",{d:"M6 4v6a6 6 0 0 0 12 0V4",key:"9kb039"}],["line",{x1:"4",x2:"20",y1:"20",y2:"20",key:"nun2al"}]],wC=me("underline",kC);const $C=[["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"}]],CC=me("undo-2",$C);const SC=[["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"}]],EC=me("unlink",SC);const AC=[["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"}]],Gi=me("upload",AC);const TC=[["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"}]],ig=me("user-minus",TC);const DC=[["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"}]],sg=me("user-plus",DC);const OC=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],MC=me("user-round",OC);const PC=[["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"}]],RC=me("user",PC);const IC=[["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"}]],qC=me("users-round",IC);const NC=[["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"}]],LC=me("users",NC);const BC=[["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"}]],FC=me("wand-sparkles",BC);const VC=[["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"}]],zC=me("wrench",VC);const jC=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],hn=me("x",jC),hv={archive:uw,"arrow-down":Vy,"arrow-left":ui,"arrow-right":pw,"arrow-up":Uy,"arrow-up-right":jy,bell:_w,book:$w,bookmark:Sw,box:Aw,briefcase:Dw,building:Mw,calendar:Hy,camera:Iw,"cassette-tape":Nw,"chart-bar":Bw,check:nr,"chevron-down":ar,"chevron-left":Gs,"chevron-right":ci,circle:Zw,"circle-alert":bt,"circle-check":Kw,"circle-question-mark":Yw,"clipboard-list":Qw,clock:Wc,cloud:n2,code:Ky,copy:Gy,"credit-card":o2,database:s2,disc:f2,"disc-3":c2,download:Kc,"external-link":Yy,file:x2,"file-text":yl,files:w2,flag:C2,folder:E2,funnel:T2,gauge:O2,globe:P2,"graduation-cap":I2,heart:F2,house:z2,image:K2,inbox:Y2,info:Ys,key:n$,languages:r$,"layout-grid":o$,leaf:s$,library:c$,"life-buoy":f$,link:Jy,list:Xy,"list-ordered":Zy,lock:Or,"log-out":Qy,mail:$$,"map-pin":S$,"message-circle":A$,"mic-vocal":D$,minus:eg,network:P$,palette:I$,"panel-left-close":tg,"panel-left-open":ng,paperclip:B$,pause:V$,pencil:Mo,phone:U$,play:W$,plus:di,puzzle:ag,"refresh-cw":eC,search:Js,"search-x":rg,settings:lg,"shield-check":oC,"shopping-cart":sC,star:fC,sun:Zs,table:mC,tags:yC,"trash-2":Ur,"triangle-alert":og,trophy:xC,upload:Gi,user:RC,"user-minus":ig,"user-plus":sg,users:LC,"users-round":qC,"wand-sparkles":FC,wrench:zC,x:hn},UC={"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"},yv=Zs;function Lu(e,t){return Object.hasOwn(e,t)?e[t]:void 0}function Xs(e){if(!e)return yv;const t=e.trim();return Lu(hv,t)??Lu(hv,Lu(UC,t)??"")??yv}const ug="summer-admin.sidebar",HC="(max-width: 1099px)",Qs=P(!1),Po=P(!1),WC=_(()=>Po.value||Qs.value);function cg(){try{return typeof window>"u"?null:window.localStorage}catch{return null}}function KC(){try{return cg()?.getItem(ug)==="true"}catch{return!1}}function dg(e){Qs.value=e;try{cg()?.setItem(ug,e?"true":"false")}catch{}}function GC(){if(Qs.value=KC(),typeof window>"u"||typeof window.matchMedia!="function")return Po.value=!1,()=>{};const e=window.matchMedia(HC);Po.value=e.matches;const t=n=>{Po.value=n.matches};return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}function fg(){return{collapsed:WC,narrow:Mt(Po),manual:Mt(Qs),setCollapsed:dg,watchViewport:GC}}const YC=["id","aria-label"],JC={class:"px-2.5 pt-1 pb-2 text-[14px] font-bold","aria-hidden":"true"},ZC=oe({__name:"SectionFlyout",props:{entry:{},id:{}},emits:["escape","leave","navigate"],setup(e,{expose:t,emit:n}){const a=e,r=n,l=En(),o=P(null),i=_(()=>ii(l.path)),s=_(()=>a.entry.sideMenu.flatMap(p=>{const h=In(p.controller);return h?[{item:p,to:h,icon:Xs(p.icon),current:i.value===p.controller}]:[]}));function c(){return[...o.value?.querySelectorAll('[role="menuitem"]')??[]]}async function d(){await Ze(),c()[0]?.focus()}function f(p){return!!p&&!!o.value?.contains(p)}function m(p){const h=c(),x=h.indexOf(document.activeElement);switch(p.key){case"ArrowDown":p.preventDefault(),h[(x+1)%h.length]?.focus();break;case"ArrowUp":p.preventDefault(),h[(x-1+h.length)%h.length]?.focus();break;case"Home":p.preventDefault(),h[0]?.focus();break;case"End":p.preventDefault(),h[h.length-1]?.focus();break;case"Escape":p.preventDefault(),r("escape");break;case"Tab":r("leave");break}}return t({focusFirst:d,contains:f}),(p,h)=>(v(),b("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},[C("span",JC,T(e.entry.label),1),(v(!0),b(he,null,qe(s.value,x=>(v(),j(u(ea),{key:x.item.code,to:x.to,role:"menuitem",tabindex:"-1","aria-current":x.current?"page":void 0,class:ye([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:h[0]||(h[0]=k=>r("navigate"))},{default:F(()=>[(v(),j(zt(x.icon),{size:18,"aria-hidden":"true"})),C("span",null,T(x.item.label),1)]),_:2},1032,["to","aria-current","class"]))),128))],40,YC))}}),XC=["aria-label"],QC={class:"mb-3.5 flex size-10 items-center justify-center rounded-inner bg-accent-soft",title:"SummerCMS"},eS={class:"max-w-full [overflow-wrap:anywhere]"},tS=["aria-label","title"],nS={class:"max-w-full [overflow-wrap:anywhere]"},aS=200,rS=oe({__name:"PluginRail",setup(e){const t=En(),{collapsed:n,narrow:a,setCollapsed:r}=fg(),l=_(()=>si(String(t.params.vendor??""),String(t.params.plugin??""))),o=_(()=>t.path==="/settings"||t.path.startsWith("/settings/")||l.value===null&&jd(ii(t.path))!==null),i=_(()=>ps.value.map(H=>({entry:H,to:zd(H)??"/",icon:Xs(H.icon),current:l.value?.code===H.code}))),s=P(null),c=P(null),d=_(()=>ps.value.find(H=>H.code===s.value)??null),f=new Map;let m=null,p=!1;function h(H){return`section-flyout-${H}`}function x(H,S){const N=S?.$el;N instanceof HTMLElement?f.set(H,N):f.delete(H)}function k(){m!==null&&(clearTimeout(m),m=null)}function y(){k(),s.value=null}function $(){k(),m=setTimeout(()=>{m=null;const H=document.activeElement,S=s.value;S!==null&&(f.get(S)===H||c.value?.contains(H))||(s.value=null)},aS)}function E(H){n.value&&(k(),s.value=H)}function O(H){p||E(H)}async function M(H,S){n.value&&(H.key==="Enter"||H.key==="ArrowDown"?(H.preventDefault(),E(S),await Ze(),await c.value?.focusFirst()):H.key==="Escape"&&s.value!==null&&(H.preventDefault(),y()))}function B(){const H=s.value;y(),H!==null&&(p=!0,f.get(H)?.focus(),p=!1)}function z(){r(!1),Ze(()=>document.querySelector("[data-sidebar-collapse]")?.focus())}return ze(n,H=>{H||y()}),At(k),(H,S)=>(v(),b("nav",{"aria-label":u(w)("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"},[C("span",QC,[V(u(Zs),{size:22,class:"text-accent","aria-hidden":"true"})]),(v(!0),b(he,null,qe(i.value,N=>(v(),j(u(ea),{key:N.entry.code,ref_for:!0,ref:Y=>x(N.entry.code,Y),to:N.to,"data-rail-item":N.entry.code,"aria-current":N.current?"page":void 0,"aria-haspopup":u(n)?"menu":void 0,"aria-expanded":u(n)?s.value===N.entry.code?"true":"false":void 0,"aria-controls":u(n)&&s.value===N.entry.code?h(N.entry.code):void 0,class:ye([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:Y=>E(N.entry.code),onMouseleave:$,onFocus:Y=>O(N.entry.code),onBlur:$,onKeydown:Y=>M(Y,N.entry.code)},{default:F(()=>[(v(),j(zt(N.icon),{size:20,"aria-hidden":"true"})),C("span",eS,T(N.entry.label),1)]),_:2},1032,["to","data-rail-item","aria-current","aria-haspopup","aria-expanded","aria-controls","class","onMouseenter","onFocus","onKeydown"]))),128)),u(n)&&d.value?(v(),j(ZC,{key:0,id:h(d.value.code),ref_key:"flyout",ref:c,entry:d.value,onMouseenter:k,onMouseleave:$,onFocusin:k,onFocusout:$,onEscape:B,onLeave:$,onNavigate:y},null,8,["id","entry"])):ae("",!0),S[0]||(S[0]=C("span",{class:"flex-1","aria-hidden":"true"},null,-1)),u(n)&&!u(a)?(v(),b("button",{key:1,type:"button","data-sidebar-expand":"","aria-label":u(w)("backend::lang.nav.expand"),title:u(w)("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:z},[V(u(ng),{size:20,"aria-hidden":"true"})],8,tS)):ae("",!0),u(Xk)?(v(),j(u(ea),{key:2,to:"/settings","data-rail-settings":"","aria-current":o.value?"page":void 0,class:ye([o.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(()=>[V(u(lg),{size:20,"aria-hidden":"true"}),C("span",nS,T(u(w)("backend::lang.nav.settings")),1)]),_:1},8,["aria-current","class"])):ae("",!0)],8,XC))}}),lS=["aria-label"],oS={class:"mb-3.5 flex h-10 items-center justify-between gap-2 pl-2"},iS={class:"truncate text-[16px] font-bold"},sS=["aria-label","title"],uS=oe({__name:"SectionPanel",props:{entry:{}},setup(e){const t=e,n=En(),a=_(()=>ii(n.path)),r=_(()=>t.entry.sideMenu.flatMap(o=>{const i=In(o.controller);return i?[{item:o,to:i,icon:Xs(o.icon),current:a.value===o.controller}]:[]}));function l(){dg(!0),Ze(()=>document.querySelector("[data-sidebar-expand]")?.focus())}return(o,i)=>(v(),b("aside",{"aria-label":u(w)("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"},[C("div",oS,[C("span",iS,T(e.entry.label),1),C("button",{type:"button","data-sidebar-collapse":"","aria-label":u(w)("backend::lang.nav.collapse"),title:u(w)("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},[V(u(tg),{size:18,"aria-hidden":"true"})],8,sS)]),(v(!0),b(he,null,qe(r.value,s=>(v(),j(u(ea),{key:s.item.code,to:s.to,"aria-current":s.current?"page":void 0,class:ye([s.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(()=>[(v(),j(zt(s.icon),{size:18,"aria-hidden":"true"})),C("span",null,T(s.item.label),1)]),_:2},1032,["to","aria-current","class"]))),128))],8,lS))}}),cS=["aria-label"],dS={class:"flex min-w-0 items-center gap-2"},fS=["aria-current"],pS=oe({__name:"Breadcrumbs",setup(e){const t=En(),n=_(()=>{if(t.name==="account")return[{label:w("backend::lang.myaccount.menu_label")}];if(t.name==="settings"||t.name==="settings-form"){const i=[{label:w("backend::lang.nav.settings"),to:"/settings"}],s=t.name==="settings-form"?vs(String(t.params.code??"")):null;return s&&i.push({label:s.label}),i}const a=si(String(t.params.vendor??""),String(t.params.plugin??"")),r=ii(t.path);if(!a){const i=jd(r);if(!i)return[];const s=[{label:w("backend::lang.nav.settings"),to:"/settings"},{label:i.label,to:Hc(i)}];return(t.name==="record"||t.name==="create")&&xo.value!==""&&s.push({label:xo.value}),s}const l=[{label:a.label,to:zd(a)??void 0}],o=a.sideMenu.find(i=>i.controller===r)??null;return o&&l.push({label:o.label,to:In(o.controller)??void 0}),(t.name==="record"||t.name==="create")&&xo.value!==""&&l.push({label:xo.value}),l});return(a,r)=>(v(),b("nav",{"aria-label":u(w)("backend::lang.nav.breadcrumbs"),class:"min-w-0"},[C("ol",dS,[(v(!0),b(he,null,qe(n.value,(l,o)=>(v(),b("li",{key:o,"data-crumb":"",class:"flex min-w-0 items-center gap-2"},[o>0?(v(),j(u(ci),{key:0,size:14,class:"shrink-0 text-muted","aria-hidden":"true"})):ae("",!0),o===n.value.length-1||!l.to?(v(),b("span",{key:1,"aria-current":o===n.value.length-1?"page":void 0,class:ye([o===n.value.length-1?"font-semibold text-text":"text-muted","truncate"])},T(l.label),11,fS)):(v(),j(u(ea),{key:2,to:l.to,class:"truncate text-muted no-underline transition-colors duration-150 ease-out hover:text-text"},{default:F(()=>[we(T(l.label),1)]),_:2},1032,["to"]))]))),128))])],8,cS))}});function gv(e){return typeof e=="string"?`'${e}'`:new mS().serialize(e)}const vS=" _-,;:!?.'\"()[]{}@*/\\&#%`^+<=>|~$0123456789abcdefghijklmnopqrstuvwxyz",Ei=(function(){const e=new Uint8Array(128);for(let t=0;t<69;t++)e[vS.charCodeAt(t)]=t+1;for(let t=65;t<=90;t++)e[t]=e[t+32];return e})();function Bu(e,t){if(e===t)return 0;const n=Math.min(e.length,t.length);let a=0;for(let r=0;ro?-1:1)}return e.length!==t.length?e.lengththis.compare(o[0],i[0]));let l=`${n}{`;for(let o=0;othis.compare(a,r)))}`}$Map(n){return this.serializeObjectEntries("Map",n.entries())}}for(const t of["Error","RegExp","URL"])e.prototype["$"+t]=function(n){return`${t}(${n})`};for(const t of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])e.prototype["$"+t]=function(n){return`${t}[${n.join(",")}]`};for(const t of["BigInt64Array","BigUint64Array"])e.prototype["$"+t]=function(n){return`${t}[${n.join("n,")}${n.length>0?"n":""}]`};return e})();function Uo(e,t){return e===t||gv(e)===gv(t)}function Ai(e,t){let n=e;const a=t.toString(),r=a.indexOf("."),l=r>=0?a.length-r:0;if(l>0){const o=10**l;n=Math.round(n*o)/o}return n}function Fu(e,t,n,a){t=Number(t),n=Number(n);const r=(e-(Number.isNaN(t)?0:t))%a;let l=Ai(Math.abs(r)*2>=a?e+Math.sign(r)*(a-Math.abs(r)):e-r,a);return Number.isNaN(t)?!Number.isNaN(n)&&l>n&&(l=Math.floor(Ai(n/a,a))*a):ln&&(l=t+Math.floor(Ai((n-t)/a,a))*a),l=Ai(l,a),l}function Ct(e,t){const n=typeof e=="string"&&!t?`${e}Context`:t,a=Symbol(n);return[o=>{const i=ct(a,o);if(i||i===null)return i;throw new Error(`Injection \`${a.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},o=>($t(a,o),o)]}function It(){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 Ud(e,t,n){const a=n.originalEvent.target,r=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),a.dispatchEvent(r)}function vn(e){return e==null}function bv(e,t){return vn(e)?!1:Array.isArray(e)?e.some(n=>Uo(n,t)):Uo(e,t)}function hS(e,t){var n;const a=ni();return gn(()=>{a.value=e()},{...t,flush:(n=t?.flush)!==null&&n!==void 0?n:"sync"}),Mt(a)}function pg(e,t){return wd()?(oh(e,t),!0):!1}function yS(e){let t=!1,n;const a=lh(!0);return((...r)=>(t||(n=a.run(()=>e(...r)),t=!0),n))}const Aa=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const gS=e=>typeof e<"u",bS=Object.prototype.toString,_S=e=>bS.call(e)==="[object Object]",_v=xS();function xS(){var e,t,n;return Aa&&!!(!((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((n=window)===null||n===void 0?void 0:n.navigator.userAgent))}function Vu(e){return Array.isArray(e)?e:[e]}function kS(e){return ra()}function vg(e){if(!Aa)return e;let t=0,n,a;const r=()=>{t-=1,a&&t<=0&&(a.stop(),n=void 0,a=void 0)};return((...l)=>(t+=1,a||(a=lh(!0),n=a.run(()=>e(...l))),pg(r),n))}function wS(e){return On(_t(e)?new Proxy({},{get(t,n,a){return u(Reflect.get(e.value,n,a))},set(t,n,a){return _t(e.value[n])&&!_t(a)?e.value[n].value=a:e.value[n]=a,!0},deleteProperty(t,n){return Reflect.deleteProperty(e.value,n)},has(t,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}}):e)}function $S(e){return wS(_(e))}function CS(e,...t){const n=t.flat(),a=n[0];return $S(()=>Object.fromEntries(typeof a=="function"?Object.entries(Gt(e)).filter(([r,l])=>!a(en(l),r)):Object.entries(Gt(e)).filter(r=>!n.includes(r[0]))))}function SS(e,t=1e4){return P0((n,a)=>{let r=en(e),l;const o=()=>setTimeout(()=>{r=en(e),a()},en(t));return pg(()=>{clearTimeout(l)}),{get(){return n(),r},set(i){r=i,a(),clearTimeout(l),l=o()}}})}function ES(e,t){kS()&&At(e,t)}function AS(e,t,n){return ze(e,t,{...n,immediate:!0})}const Hd=Aa?window:void 0;function Hr(e){var t;const n=en(e);return(t=n?.$el)!==null&&t!==void 0?t:n}function Ll(...e){const t=(a,r,l,o)=>(a.addEventListener(r,l,o),()=>a.removeEventListener(r,l,o)),n=_(()=>{const a=Vu(en(e[0])).filter(r=>r!=null);return a.every(r=>typeof r!="string")?a:void 0});return AS(()=>{var a,r;return[(a=(r=n.value)===null||r===void 0?void 0:r.map(l=>Hr(l)))!==null&&a!==void 0?a:[Hd].filter(l=>l!=null),Vu(en(n.value?e[1]:e[0])),Vu(u(n.value?e[2]:e[1])),en(n.value?e[3]:e[2])]},([a,r,l,o],i,s)=>{if(!a?.length||!r?.length||!l?.length)return;const c=_S(o)?{...o}:o,d=a.flatMap(f=>r.flatMap(m=>l.map(p=>t(f,m,p,c))));s(()=>{d.forEach(f=>f())})},{flush:"post"})}function TS(){const e=ni(!1),t=ra();return t&&kt(()=>{e.value=!0},t),e}function DS(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function OS(...e){let t,n,a={};e.length===3?(t=e[0],n=e[1],a=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],a=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:r=Hd,eventName:l="keydown",passive:o=!1,dedupe:i=!1}=a,s=DS(t);return Ll(r,l,d=>{d.repeat&&en(i)||s(d)&&n(d)},o)}function MS(e){return JSON.parse(JSON.stringify(e))}function Pt(e,t,n,a={}){var r,l;const{clone:o=!1,passive:i=!1,eventName:s,deep:c=!1,defaultValue:d,shouldEmit:f}=a,m=ra(),p=n||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 h=s;t||(t="modelValue"),h=h||`update:${t.toString()}`;const x=$=>o?typeof o=="function"?o($):MS($):$,k=()=>gS(e[t])?x(e[t]):d,y=$=>{f?f($)&&p(h,$):p(h,$)};if(i){const $=P(k());let E=!1;return ze(()=>e[t],O=>{E||(E=!0,$.value=x(O),Ze(()=>E=!1))}),ze($,O=>{!E&&(O!==e[t]||c)&&y(O)},{deep:c}),$}else return _({get(){return k()},set($){y($)}})}function Wd(e){return e?e.flatMap(t=>t.type===he?Wd(t.children):[t]):[]}const PS=["INPUT","TEXTAREA"];function xv(e,t,n,a={}){if(!t||a.enableIgnoredElement&&PS.includes(t.nodeName))return null;const{arrowKeyOptions:r="both",attributeName:l="[data-reka-collection-item]",itemsArray:o=[],loop:i=!0,dir:s="ltr",preventScroll:c=!0,focus:d=!1}=a,[f,m,p,h,x,k]=[e.key==="ArrowRight",e.key==="ArrowLeft",e.key==="ArrowUp",e.key==="ArrowDown",e.key==="Home",e.key==="End"],y=p||h,$=f||m;if(!x&&!k&&(!y&&!$||r==="vertical"&&$||r==="horizontal"&&y))return null;const E=n?Array.from(n.querySelectorAll(l)):o;if(!E.length)return null;c&&e.preventDefault();let O=null;return $||y?O=mg(E,t,{goForward:y?h:s==="ltr"?f:m,loop:i}):x?O=E.at(0)||null:k&&(O=E.at(-1)||null),d&&O?.focus(),O}function mg(e,t,n,a=e.includes(t)?e.length:e.length+1){if(--a===0)return null;const r=e.indexOf(t);let l;if(r===-1?l=n.goForward?0:e.length-1:l=n.goForward?r+1:r-1,!n.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"?mg(e,i,n,a):i:null}const[eu]=Ct("ConfigProvider");function zu(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 Gc(e,t,n=".",a){if(!zu(t))return Gc(e,{},n,a);const r={...t};for(const l of Object.keys(e)){if(l==="__proto__"||l==="constructor")continue;const o=e[l];o!=null&&(a&&a(r,l,o,n)||(Array.isArray(o)&&Array.isArray(r[l])?r[l]=[...o,...r[l]]:zu(o)&&zu(r[l])?r[l]=Gc(o,r[l],(n?`${n}.`:"")+l.toString(),a):r[l]=o))}return r}function RS(e){return(...t)=>t.reduce((n,a)=>Gc(n,a,"",e),{})}const hg=RS(),IS=vg(()=>{const e=P(new Map),t=P(),n=_(()=>{for(const o of e.value.values())if(o)return!0;return!1}),a=eu({scrollBody:P(!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??"",_v&&r?.(),t.value=void 0};return ze(n,(o,i)=>{if(!Aa)return;if(!o){i&&l();return}t.value===void 0&&(t.value=document.body.style.overflow);const s=window.innerWidth-document.documentElement.clientWidth,c={padding:s,margin:0},d=a.scrollBody?.value?typeof a.scrollBody.value=="object"?hg({padding:a.scrollBody.value.padding===!0?s:a.scrollBody.value.padding,margin:a.scrollBody.value.margin===!0?s:a.scrollBody.value.margin},c):c:{padding:0,margin:0};s>0&&(document.body.style.paddingRight=typeof d.padding=="number"?`${d.padding}px`:String(d.padding),document.body.style.marginRight=typeof d.margin=="number"?`${d.margin}px`:String(d.margin),document.documentElement.style.setProperty("--scrollbar-width",`${s}px`),document.body.style.overflow="hidden"),_v&&(r=Ll(document,"touchmove",f=>qS(f),{passive:!1})),Ze(()=>{n.value&&(document.body.style.pointerEvents="none",document.body.style.overflow="hidden")})},{immediate:!0,flush:"sync"}),e});function Kd(e){const t=Math.random().toString(36).substring(2,7),n=IS();n.value.set(t,e??!1);const a=_({get:()=>n.value.get(t)??!1,set:r=>n.value.set(t,r)});return ES(()=>{n.value.delete(t)}),a}function yg(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 Cl(e,t){return e-t*Math.floor(e/t)}const gg=1721426;function Pr(e,t,n,a){t=fi(e,t);let r=t-1,l=-2;return n<=2?l=0:Ya(t)&&(l=-1),gg-1+365*r+Math.floor(r/4)-Math.floor(r/100)+Math.floor(r/400)+Math.floor((367*n-362)/12+l+a)}function Ya(e){return e%4===0&&(e%100!==0||e%400===0)}function fi(e,t){return e==="BC"?1-t:t}function tu(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const NS={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 qn{fromJulianDay(t){let n=t,a=n-gg,r=Math.floor(a/146097),l=Cl(a,146097),o=Math.floor(l/36524),i=Cl(l,36524),s=Math.floor(i/1461),c=Cl(i,1461),d=Math.floor(c/365),f=r*400+o*100+s*4+d+(o!==4&&d!==4?1:0),[m,p]=tu(f),h=n-Pr(m,p,1,1),x=2;n0&&t===Nn()&&!xg())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:a,day:r,hour:l,minute:o,second:i}=wg(e,t);return kg(n,a,r,l,o,i,0)-Math.floor(e/1e3)*1e3}const Sv=new Map;function wg(e,t){let n=Sv.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),Sv.set(t,n));let a=n.formatToParts(new Date(e)),r={};for(let l of a)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 Ev=864e5;function HS(e,t,n,a){return(n===a?[n]:[n,a]).filter(l=>WS(e,t,l))}function WS(e,t,n){let a=wg(n,t);return e.year===a.year&&e.month===a.month&&e.day===a.day&&e.hour===a.hour&&e.minute===a.minute&&e.second===a.second}function va(e,t,n="compatible"){let a=ta(e);if(t==="UTC")return Bl(a);if(t===Nn()&&n==="compatible"&&!xg()){a=on(a,new qn);let s=new Date,c=fi(a.era,a.year);return s.setFullYear(c,a.month-1,a.day),s.setHours(a.hour,a.minute,a.second,a.millisecond),s.getTime()}let r=Bl(a),l=Jc(r-Ev,t),o=Jc(r+Ev,t),i=HS(a,t,r-l,r-o);if(i.length===1)return i[0];if(i.length>1)switch(n){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(n){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 $g(e,t,n="compatible"){return new Date(va(e,t,n))}function ma(e,t){let n=Jc(e,t),a=new Date(e+n),r=a.getUTCFullYear(),l=a.getUTCMonth()+1,o=a.getUTCDate(),i=a.getUTCHours(),s=a.getUTCMinutes(),c=a.getUTCSeconds(),d=a.getUTCMilliseconds();return new $a(r<1?"BC":"AD",r<1?-r+1:r,l,o,t,n,i,s,c,d)}function KS(e){return new mt(e.calendar,e.era,e.year,e.month,e.day)}function ta(e,t){let n=0,a=0,r=0,l=0;if("timeZone"in e)({hour:n,minute:a,second:r,millisecond:l}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:a,second:r,millisecond:l}=t),new lr(e.calendar,e.era,e.year,e.month,e.day,n,a,r,l)}function on(e,t){if(Yd(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),a=e.copy();return a.calendar=t,a.era=n.era,a.year=n.year,a.month=n.month,a.day=n.day,Lr(a),a}function Jd(e,t,n){if(e instanceof $a)return e.timeZone===t?e:au(e,t);let a=va(e,t,n);return ma(a,t)}function GS(e){let t=Bl(e)-e.offset;return new Date(t)}function au(e,t){let n=Bl(e)-e.offset;return on(ma(n,t),e.calendar)}const uo=36e5;function ru(e,t){let n=e.copy(),a="hour"in n?Ag(n,t):0;Zc(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,Xc(n),Cg(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=a,YS(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let r=n.calendar.getYearsInEra(n);if(n.year>r){let o=n.calendar.isInverseEra?.(n);n.year=r,n.month=o?1:n.calendar.getMonthsInYear(n),n.day=o?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let l=n.calendar.getMonthsInYear(n);return n.month>l&&(n.month=l,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function Zc(e,t){e.calendar.isInverseEra?.(e)&&(t=-t),e.year+=t}function Xc(e){for(;e.month<1;)Zc(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,Zc(e,1)}function YS(e){for(;e.day<1;)e.month--,Xc(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,Xc(e)}function Cg(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 Lr(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),Cg(e)}function Zd(e){let t={};for(let n in e)typeof e[n]=="number"&&(t[n]=-e[n]);return t}function Sg(e,t){return ru(e,Zd(t))}function Xd(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),Lr(n),n}function Ho(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),Eg(n),n}function JS(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=Ti(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=Ti(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=Ti(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=Ti(e.hour,24),t}function Eg(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 Ti(e,t){let n=e%t;return n<0&&(n+=t),n}function Ag(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,JS(e)}function Tg(e,t){let n=e.copy();return Ag(n,t),n}function ZS(e,t){return Tg(e,Zd(t))}function Qd(e,t,n,a){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=ha(o,n,0,l.length-1,a?.round),r.era=l[o],Lr(r);break}case"year":r.calendar.isInverseEra?.(r)&&(n=-n),r.year=ha(e.year,n,-1/0,9999,a?.round),r.year===-1/0&&(r.year=1),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,e);break;case"month":r.month=ha(e.month,n,1,e.calendar.getMonthsInYear(e),a?.round);break;case"day":r.day=ha(e.day,n,1,e.calendar.getDaysInMonth(e),a?.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(r),Lr(r),r}function ef(e,t,n,a){let r=e.copy();switch(t){case"hour":{let l=e.hour,o=0,i=23;if(a?.hourCycle===12){let s=l>=12;o=s?12:0,i=s?23:11}r.hour=ha(l,n,o,i,a?.round);break}case"minute":r.minute=ha(e.minute,n,0,59,a?.round);break;case"second":r.second=ha(e.second,n,0,59,a?.round);break;case"millisecond":r.millisecond=ha(e.millisecond,n,0,999,a?.round);break;default:throw new Error("Unsupported field "+t)}return r}function ha(e,t,n,a,r=!1){if(r){e+=Math.sign(t),e0?e=Math.ceil(e/l)*l:e=Math.floor(e/l)*l,e>a&&(e=n)}else e+=t,ea&&(e=n+(e-a-1));return e}function Dg(e,t){let n;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=ru(ta(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days});n=va(r,e.timeZone)}else n=Bl(e)-e.offset;n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5;let a=ma(n,e.timeZone);return on(a,e.calendar)}function XS(e,t){return Dg(e,Zd(t))}function QS(e,t,n,a){switch(t){case"hour":{let r=0,l=23;if(a?.hourCycle===12){let h=e.hour>=12;r=h?12:0,l=h?23:11}let o=ta(e),i=on(Ho(o,{hour:r}),new qn),s=[va(i,e.timeZone,"earlier"),va(i,e.timeZone,"later")].filter(h=>ma(h,e.timeZone).day===i.day)[0],c=on(Ho(o,{hour:l}),new qn),d=[va(c,e.timeZone,"earlier"),va(c,e.timeZone,"later")].filter(h=>ma(h,e.timeZone).day===c.day).pop(),f=Bl(e)-e.offset,m=Math.floor(f/uo),p=f%uo;return f=ha(m,n,Math.floor(s/uo),Math.floor(d/uo),a?.round)*uo+p,on(ma(f,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return ef(e,t,n,a);case"era":case"year":case"month":case"day":{let r=Qd(ta(e),t,n,a),l=va(r,e.timeZone);return on(ma(l,e.timeZone),e.calendar)}default:throw new Error("Unsupported field "+t)}}function eE(e,t,n){let a=ta(e),r=Ho(Xd(a,t),t);if(r.compare(a)===0)return e;let l=va(r,e.timeZone,n);return on(ma(l,e.timeZone),e.calendar)}const tE=/^(\d{2})(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,nE=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,Og=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function aE(e){let t=e.match(tE);if(!t)throw new Error("Invalid ISO 8601 time string: "+e);return new Gn(Ht(t[1],0,23),t[2]?Ht(t[2],0,59):0,t[3]?Ht(t[3],0,59):0,t[4]?Ht(t[4],0,1/0)*1e3:0)}function Mg(e){let t=e.match(nE);if(!t)throw Og.test(e)?new Error(`Invalid ISO 8601 date string: ${e}. Use parseAbsolute() instead.`):new Error("Invalid ISO 8601 date string: "+e);let n=new mt(Ht(t[1],0,9999),Ht(t[2],1,12),1);return n.day=Ht(t[3],1,n.calendar.getDaysInMonth(n)),n}function Av(e,t){let n=e.match(Og);if(!n)throw new Error("Invalid ISO 8601 date time string: "+e);let a=Ht(n[1],-9999,9999),r=a<1?"BC":"AD",l=new $a(r,a<1?-a+1:a,Ht(n[2],1,12),1,t,0,n[4]?Ht(n[4],0,23):0,n[5]?Ht(n[5],0,59):0,n[6]?Ht(n[6],0,59):0,n[7]?Ht(n[7],0,1/0)*1e3:0);return l.day=Ht(n[3],0,l.calendar.getDaysInMonth(l)),n[8]&&(l.offset=Ht(n[8],-23,23)*36e5+Ht(n[9]??"0",0,59)*6e4),au(l,t)}function Ht(e,t,n){let a=Number(e);if(an)throw new RangeError(`Value out of range: ${t} <= ${a} <= ${n}`);return a}function Pg(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 Rg(e){let t=on(e,new qn),n;return t.era==="BC"?n=t.year===1?"0000":"-"+String(Math.abs(1-t.year)).padStart(6,"00"):n=String(t.year).padStart(4,"0"),`${n}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function Ig(e){return`${Rg(e)}T${Pg(e)}`}function rE(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),a=Math.floor(e%36e5/6e4),r=Math.floor(e%36e5%6e4/1e3),l=`${t}${String(n).padStart(2,"0")}:${String(a).padStart(2,"0")}`;return r!==0&&(l+=`:${String(r).padStart(2,"0")}`),l}function lE(e){return`${Ig(e)}${rE(e.offset)}[${e.timeZone}]`}function tf(e){let t=typeof e[0]=="object"?e.shift():new qn,n;if(typeof e[0]=="string")n=e.shift();else{let o=t.getEras();n=o[o.length-1]}let a=e.shift(),r=e.shift(),l=e.shift();return[t,n,a,r,l]}class mt{#e;constructor(...t){let[n,a,r,l,o]=tf(t);this.calendar=n,this.era=a,this.year=r,this.month=l,this.day=o,Lr(this)}copy(){return this.era?new mt(this.calendar,this.era,this.year,this.month,this.day):new mt(this.calendar,this.year,this.month,this.day)}add(t){return ru(this,t)}subtract(t){return Sg(this,t)}set(t){return Xd(this,t)}cycle(t,n,a){return Qd(this,t,n,a)}toDate(t){return $g(this,t)}toString(){return Rg(this)}compare(t){return bg(this,t)}}class Gn{#e;constructor(t=0,n=0,a=0,r=0){this.hour=t,this.minute=n,this.second=a,this.millisecond=r,Eg(this)}copy(){return new Gn(this.hour,this.minute,this.second,this.millisecond)}add(t){return Tg(this,t)}subtract(t){return ZS(this,t)}set(t){return Ho(this,t)}cycle(t,n,a){return ef(this,t,n,a)}toString(){return Pg(this)}compare(t){return _g(this,t)}}class lr{#e;constructor(...t){let[n,a,r,l,o]=tf(t);this.calendar=n,this.era=a,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,Lr(this)}copy(){return this.era?new lr(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new lr(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return ru(this,t)}subtract(t){return Sg(this,t)}set(t){return Xd(Ho(this,t),t)}cycle(t,n,a){switch(t){case"era":case"year":case"month":case"day":return Qd(this,t,n,a);default:return ef(this,t,n,a)}}toDate(t,n){return $g(this,t,n)}toString(){return Ig(this)}compare(t){let n=bg(this,t);return n===0?_g(this,ta(t)):n}}class $a{#e;constructor(...t){let[n,a,r,l,o]=tf(t),i=t.shift(),s=t.shift();this.calendar=n,this.era=a,this.year=r,this.month=l,this.day=o,this.timeZone=i,this.offset=s,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,Lr(this)}copy(){return this.era?new $a(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new $a(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(t){return Dg(this,t)}subtract(t){return XS(this,t)}set(t,n){return eE(this,t,n)}cycle(t,n,a){return QS(this,t,n,a)}toDate(){return GS(this)}toString(){return lE(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(t){return this.toDate().getTime()-Jd(t,this.timeZone).toDate().getTime()}}const El=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],oE=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Yi=[1867,1911,1925,1988,2018],Ga=["meiji","taisho","showa","heisei","reiwa"];function Tv(e){const t=El.findIndex(([n,a,r])=>e.year=0){let[,r,l]=El[n];t.month=Math.max(r,t.month),t.month===r&&(t.day=Math.max(l,t.day))}}getEras(){return Ga}getYearsInEra(t){let n=Ga.indexOf(t.era),a=El[n],r=El[n+1];if(r==null)return 9999-a[0]+1;let l=r[0]-a[0];return(t.month0?["minguo",t]:["before_minguo",1-t]}class uE extends qn{fromJulianDay(t){let n=super.fromJulianDay(t),a=fi(n.era,n.year),[r,l]=Mv(a);return new mt(this,r,l,n.month,n.day)}toJulianDay(t){return super.toJulianDay(Pv(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[n,a]=Mv(Ng(t));t.era=n,t.year=a}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(Pv(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-hs}constructor(...t){super(...t),this.identifier="roc"}}function Pv(e){let[t,n]=tu(Ng(e));return new mt(t,n,e.month,e.day)}const Rv=1948320,Iv=[0,31,62,93,124,155,186,216,246,276,306,336];class cE{fromJulianDay(t){let n=t-Rv,a=1+Math.floor((33*n+3)/12053),r=365*(a-1)+Math.floor((8*a+21)/33),l=n-r,o=l<216?Math.floor(l/31):Math.floor((l-6)/30),i=l-Iv[o]+1;return new mt(this,a,o+1,i)}toJulianDay(t){let n=Rv-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return n+=Iv[t.month-1],n+=t.day,n}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||Cl(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 Wu=78,qv=80;class dE extends qn{fromJulianDay(t){let n=super.fromJulianDay(t),a=n.year-Wu,r=t-Pr(n.era,n.year,1,1),l;r=8&&(o+=(t.month-7)*30),o+=t.day-1,o)}getDaysInMonth(t){return t.month===1&&Ya(t.year+Wu)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const ys=1948440,Nv=1948439,kn=1300,rl=1600,fE=460322;function gs(e,t,n,a){return a+Math.ceil(29.5*(n-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function Lg(e,t,n){let a=Math.floor((30*(n-t)+10646)/10631),r=Math.min(12,Math.ceil((n-(29+gs(t,a,1,1)))/29.5)+1),l=n-gs(t,a,r,1)+1;return new mt(e,a,r,l)}function Lv(e){return(14+11*e)%30<11}class nf{fromJulianDay(t){return Lg(this,ys,t)}toJulianDay(t){return gs(ys,t.year,t.month,t.day)}getDaysInMonth(t){let n=29+t.month%2;return t.month===12&&Lv(t.year)&&n++,n}getMonthsInYear(){return 12}getDaysInYear(t){return Lv(t.year)?355:354}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 30}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class pE extends nf{fromJulianDay(t){return Lg(this,Nv,t)}toJulianDay(t){return gs(Nv,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const vE="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let Qc,Al;function Ji(e){return fE+Al[e-kn]}function ko(e,t){let n=e-kn,a=1<<11-(t-1);return(Qc[n]&a)===0?29:30}function Bv(e,t){let n=Ji(e);for(let a=1;at.charCodeAt(0)).buffer)),!Al){Al=new Uint32Array(rl-kn+1);let t=0;for(let n=kn;n<=rl;n++){Al[n-kn]=t;for(let a=1;a<=12;a++)t+=ko(n,a)}}}fromJulianDay(t){let n=t-ys,a=Ji(kn),r=Ji(rl);if(nr)return super.fromJulianDay(t);{let l=kn-1,o=1,i=1;for(;i>0;){l++,i=n-Ji(l)+1;let s=Fv(l);if(i===s){o=12;break}else if(ic;)i-=c,o++,c=ko(l,o);break}}return new mt(this,l,o,n-Bv(l,o)+1)}}toJulianDay(t){return t.yearrl?super.toJulianDay(t):ys+Bv(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.yearrl?super.getDaysInMonth(t):ko(t.year,t.month)}getDaysInYear(t){return t.yearrl?super.getDaysInYear(t):Fv(t.year)}}const Vv=347997,Bg=1080,Fg=24*Bg,hE=29,yE=12*Bg+793,gE=hE*Fg+yE;function Mr(e){return Cl(e*7+1,19)<7}function Zi(e){let t=Math.floor((235*e-234)/19),n=12084+13753*t,a=t*29+Math.floor(n/25920);return Cl(3*(a+1),7)<3&&(a+=1),a}function bE(e){let t=Zi(e-1),n=Zi(e);return Zi(e+1)-n===356?2:n-t===382?1:0}function Ro(e){return Zi(e)+bE(e)}function Vg(e){return Ro(e+1)-Ro(e)}function _E(e){let t=Vg(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function Di(e,t){if(t>=6&&!Mr(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let n=_E(e);return t===2?n===2?30:29:t===3?n===0?29:30:t===6?Mr(e)?30:0:30}class xE{fromJulianDay(t){let n=t-Vv,a=n*Fg/gE,r=Math.floor((19*a+234)/235)+1,l=Ro(r),o=Math.floor(n-l);for(;o<1;)r--,l=Ro(r),o=Math.floor(n-l);let i=1,s=0;for(;s6?t.month--:!Mr(n.year)&&Mr(t.year)&&n.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const ed=1723856,zv=1824665,td=5500;function Io(e,t,n,a){return e+365*t+Math.floor(t/4)+30*(n-1)+a-1}function af(e,t){let n=Math.floor(4*(t-e)/1461);t>=Io(e,n+1,1,1)&&n++;let a=1+Math.floor((t-Io(e,n,1,1))/30),r=t+1-Io(e,n,a,1);return[n,a,r]}function zg(e){return Math.floor(e%4/3)}function jg(e,t){return t%13!==0?30:zg(e)+5}class rf{fromJulianDay(t){let[n,a,r]=af(ed,t),l="AM";return n<=0&&(l="AA",n+=td),new mt(this,l,n,a,r)}toJulianDay(t){let n=t.year;return t.era==="AA"&&(n-=td),Io(ed,n,t.month,t.day)}getDaysInMonth(t){return jg(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+zg(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 kE extends rf{fromJulianDay(t){let[n,a,r]=af(ed,t);return n+=td,new mt(this,"AA",n,a,r)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class wE extends rf{fromJulianDay(t){let[n,a,r]=af(zv,t),l="CE";return n<=0&&(l="BCE",n=1-n),new mt(this,l,n,a,r)}toJulianDay(t){let n=t.year;return t.era==="BCE"&&(n=1-n),Io(zv,n,t.month,t.day)}getDaysInMonth(t){let n=t.year;return t.era==="BCE"&&(n=1-n),jg(n,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 $E(e){switch(e){case"buddhist":return new sE;case"ethiopic":return new rf;case"ethioaa":return new kE;case"coptic":return new wE;case"hebrew":return new xE;case"indian":return new dE;case"islamic-civil":return new nf;case"islamic-tbla":return new pE;case"islamic-umalqura":return new mE;case"japanese":return new iE;case"persian":return new cE;case"roc":return new uE;default:return new qn}}let Ku=new Map;class An{constructor(t,n={}){this.formatter=Ug(t,n),this.options=n}format(t){return this.formatter.format(t)}formatToParts(t){return this.formatter.formatToParts(t)}formatRange(t,n){if(typeof this.formatter.formatRange=="function")return this.formatter.formatRange(t,n);if(n= start date");return`${this.formatter.format(t)} – ${this.formatter.format(n)}`}formatRangeToParts(t,n){if(typeof this.formatter.formatRangeToParts=="function")return this.formatter.formatRangeToParts(t,n);if(n= start date");let a=this.formatter.formatToParts(t),r=this.formatter.formatToParts(n);return[...a.map(l=>({...l,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...r.map(l=>({...l,source:"endRange"}))]}resolvedOptions(){let t=this.formatter.resolvedOptions();return EE()&&(this.resolvedHourCycle||(this.resolvedHourCycle=AE(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 CE={true:{ja:"h11"},false:{}};function Ug(e,t={}){if(typeof t.hour12=="boolean"&&SE()){t={...t};let r=CE[String(t.hour12)][e.split("-")[0]],l=t.hour12?"h12":"h23";t.hourCycle=r??l,delete t.hour12}let n=e+(t?Object.entries(t).sort((r,l)=>r[0]l.type==="hour").value,10),r=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(l=>l.type==="hour").value,10);if(a===0&&r===23)return"h23";if(a===24&&r===23)return"h24";if(a===0&&r===11)return"h11";if(a===12&&r===11)return"h12";throw new Error("Unexpected hour cycle result")}function wn(e,t=Nn()){return Wo(e)?e.toDate():e.toDate(t)}function TE(e){return e instanceof lr}function Wo(e){return e instanceof $a}function nd(e){return TE(e)||Wo(e)}function Qa(e){if(e instanceof Date){const t=e.getFullYear(),n=e.getMonth()+1;return new Date(t,n,0).getDate()}else return e.set({day:100}).day}function Ja(e,t){return e.compare(t)<0}function Ju(e,t){return e.compare(t)>0}function DE(e,t,n){const a=nu(e,n,"sun");return t>a?e.subtract({days:a+7-t}):t===a?e:e.subtract({days:a-t})}function OE(e,t,n){const a=nu(e,n,"sun"),r=t===0?6:t-1;return a===r?e:a>r?e.add({days:7-a+r}):e.add({days:r-a})}function lf(e){const{defaultValue:t,defaultPlaceholder:n,granularity:a="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(n)return n.copy();const l=new Date,o=l.getFullYear(),i=l.getMonth()+1,s=l.getDate(),c=["hour","minute","second"],d=new An(r),f=$E(d.resolvedOptions().calendar);return c.includes(a??"day")?on(new lr(o,i,s,0,0,0),f):on(new mt(o,i,s),f)}function ME(e){const{defaultValue:t,defaultPlaceholder:n}=e;return t?t.copy():n?n.copy():new Gn(0,0,0)}function PE(e,t){const n=[];for(let a=0;at.set({day:y+1})),i=Yc(t),s=$v(t),c=DE(i,n,r),d=OE(s,n,r),f=jv(c.subtract({days:1}),i),m=jv(s,d.add({days:1})),p=f.length+o.length+m.length;if(a&&p<42){const k=42-p;let y=m.at(-1);y||(y=$v(t));const $=Array.from({length:k},(E,O)=>{const M=O+1;return y.add({days:M})});m.push(...$)}const h=f.concat(o,m),x=PE(h,7);return{value:t,cells:h,rows:x}}function $r(e){const{numberOfMonths:t,dateObj:n,...a}=e,r=[];if(!t||t===1)return r.push(Xu({...a,dateObj:n})),r;r.push(Xu({...a,dateObj:n}));for(let l=1;l({label:s(wn(k.set({month:$}))),value:$}))}function d(k,y={}){return new An(n.value,{...t,year:"numeric",...y}).format(k)}function f(k,y){return Wo(k)?new An(n.value,{...t,...y,timeZone:k.timeZone}).formatToParts(wn(k)):new An(n.value,{...t,...y}).formatToParts(wn(k))}function m(k,y="narrow"){return new An(n.value,{...t,weekday:y}).format(k)}function p(k){const $=new An(n.value,{...t,hour:"numeric",minute:"numeric"}).formatToParts(k).find(E=>E.type==="dayPeriod")?.value;return $==="PM"||$==="pm"||$==="p.m."?"PM":"AM"}const h={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"};function x(k,y,$={}){const E={...h,...$},M=f(k,E).find(B=>B.type===y);return M?M.value:""}return{setLocale:r,getLocale:a,fullMonth:s,fullYear:d,fullMonthAndYear:i,toParts:f,custom:l,part:x,dayPeriod:p,selectedDate:o,dayOfWeek:m,getMonths:c}}function Ta(e){const t=eu({dir:P("ltr")});return _(()=>e?.value||t.dir?.value||"ltr")}function Vl(e){const t=ra(),n=t?.type.emits,a={};return n?.length||console.warn(`No emitted event found. Please check component: ${t?.type.__name}`),n?.forEach(r=>{a[Co(Ft(r))]=(...l)=>e(r,...l)}),a}let Qu=0;function Yg(){gn(e=>{if(!Aa)return;const t=document.querySelectorAll("[data-reka-focus-guard]");document.body.insertAdjacentElement("afterbegin",t[0]??Uv()),document.body.insertAdjacentElement("beforeend",t[1]??Uv()),Qu++,e(()=>{Qu===1&&document.querySelectorAll("[data-reka-focus-guard]").forEach(n=>n.remove()),Qu--})})}function Uv(){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 sf(e){return _(()=>en(e)?!!Hr(e)?.closest("form"):!0)}function tt(){const e=ra(),t=P(),n=_(()=>a());Ad(()=>{n.value!==a()&&D0(t)});function a(){return t.value&&"$el"in t.value&&["#text","#comment"].includes(t.value.$el.nodeName)?t.value.$el.nextElementSibling:Hr(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 s=i.$.exposed,c=Object.assign({},l);for(const d in s)Object.defineProperty(c,d,{enumerable:!0,configurable:!0,get:()=>s[d]});e.exposed=c}}return{forwardRef:o,currentRef:t,currentElement:n}}function Jg(e){const t=ra(),n=Object.keys(t?.type.props??{}).reduce((r,l)=>{const o=(t?.type.props[l]).default;return o!==void 0&&(r[l]=o),r},{}),a=q0(e);return _(()=>{const r={},l=t?.vnode.props??{};return Object.keys(l).forEach(o=>{r[Ft(o)]=l[o]}),Object.keys({...n,...r}).reduce((o,i)=>(a.value[i]!==void 0&&(o[i]=a.value[i]),o),{})})}function Da(e,t){const n=Jg(e),a=t?Vl(t):{};return _(()=>({...n.value,...a}))}var qE=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ll=new WeakMap,Oi=new WeakMap,Mi={},ec=0,Zg=function(e){return e&&(e.host||Zg(e.parentNode))},NE=function(e,t){return t.map(function(n){if(e.contains(n))return n;var a=Zg(n);return a&&e.contains(a)?a:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},LE=function(e,t,n,a){var r=NE(t,Array.isArray(e)?e:[e]);Mi[n]||(Mi[n]=new WeakMap);var l=Mi[n],o=[],i=new Set,s=new Set(r),c=function(f){!f||i.has(f)||(i.add(f),c(f.parentNode))};r.forEach(c);var d=function(f){!f||s.has(f)||Array.prototype.forEach.call(f.children,function(m){if(i.has(m))d(m);else try{var p=m.getAttribute(a),h=p!==null&&p!=="false",x=(ll.get(m)||0)+1,k=(l.get(m)||0)+1;ll.set(m,x),l.set(m,k),o.push(m),x===1&&h&&Oi.set(m,!0),k===1&&m.setAttribute(n,"true"),h||m.setAttribute(a,"true")}catch(y){console.error("aria-hidden: cannot operate on ",m,y)}})};return d(t),i.clear(),ec++,function(){o.forEach(function(f){var m=ll.get(f)-1,p=l.get(f)-1;ll.set(f,m),l.set(f,p),m||(Oi.has(f)||f.removeAttribute(a),Oi.delete(f)),p||f.removeAttribute(n)}),ec--,ec||(ll=new WeakMap,ll=new WeakMap,Oi=new WeakMap,Mi={})}},BE=function(e,t,n){n===void 0&&(n="data-aria-hidden");var a=Array.from(Array.isArray(e)?e:[e]),r=qE(e);return r?(a.push.apply(a,Array.from(r.querySelectorAll("[aria-live], script"))),LE(a,r,n,"aria-hidden")):function(){return null}};function uf(e){let t;ze(()=>Hr(e),n=>{let a=!1;try{a=!!n?.closest("[popover]:not(:popover-open)")}catch{}n&&!a?t=BE(n):t&&t()}),Ea(()=>{t&&t()})}function Br(e,t="reka"){let n;const a=eu({useId:void 0});return a.useId?n=a.useId():n=t_?.(),t?`${t}-${n}`:n}function zl(){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 lu(e){const t=eu({locale:P("en")});return _(()=>e?.value||t.locale?.value||"en")}function FE(e){const t=P(),n=_(()=>t.value?.width??0),a=_(()=>t.value?.height??0);return kt(()=>{const r=Hr(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 s,c;if("borderBoxSize"in i){const d=i.borderBoxSize,f=Array.isArray(d)?d[0]:d;s=f.inlineSize,c=f.blockSize}else s=r.offsetWidth,c=r.offsetHeight;t.value={width:s,height:c}});return l.observe(r,{box:"border-box"}),()=>l.unobserve(r)}else t.value=void 0}),{width:n,height:a}}function VE(e,t){const n=P(e);function a(l){return t[n.value][l]??n.value}return{state:n,dispatch:l=>{n.value=a(l)}}}function zE(e){const t=SS("",1e3);return{search:t,handleTypeaheadSearch:(r,l)=>{t.value=t.value+r;{const o=It(),i=l.map(m=>({...m,textValue:m.value?.textValue??m.ref.textContent?.trim()??""})),s=i.find(m=>m.ref===o),c=i.map(m=>m.textValue),d=UE(c,t.value,s?.textValue),f=i.find(m=>m.textValue===d);return f&&f.ref.focus(),f?.ref}},resetTypeahead:()=>{t.value=""}}}function jE(e,t){return e.map((n,a)=>e[(t+a)%e.length])}function UE(e,t,n){const r=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,l=n?e.indexOf(n):-1;let o=jE(e,Math.max(l,0));r.length===1&&(o=o.filter(c=>c!==n));const s=o.find(c=>c.toLowerCase().startsWith(r.toLowerCase()));return s!==n?s:void 0}function HE(e,t){const n=P({}),a=P("none"),r=P(e),l=e.value?"mounted":"unmounted";let o;const i=t.value?.ownerDocument.defaultView??Hd,{state:s,dispatch:c}=VE(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),d=k=>{if(Aa){const y=new CustomEvent(k,{bubbles:!1,cancelable:!1});t.value?.dispatchEvent(y)}};ze(e,async(k,y)=>{const $=y!==k;if(await Ze(),$){const E=a.value,O=Pi(t.value);k?(c("MOUNT"),d("enter"),O==="none"&&d("after-enter")):O==="none"||O==="undefined"||n.value?.display==="none"?(c("UNMOUNT"),d("leave"),d("after-leave")):y&&E!==O?(c("ANIMATION_OUT"),d("leave")):(c("UNMOUNT"),d("after-leave"))}},{immediate:!0});const f=k=>{const y=Pi(t.value),$=y.includes(CSS.escape(k.animationName)),E=s.value==="mounted"?"enter":"leave";if(k.target===t.value&&$&&(d(`after-${E}`),c("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)})}k.target===t.value&&y==="none"&&c("ANIMATION_END")},m=k=>{k.target===t.value&&(a.value=Pi(t.value))},p=ze(t,(k,y)=>{k?(n.value=getComputedStyle(k),k.addEventListener("animationstart",m),k.addEventListener("animationcancel",f),k.addEventListener("animationend",f)):(c("ANIMATION_END"),o!==void 0&&i?.clearTimeout(o),y?.removeEventListener("animationstart",m),y?.removeEventListener("animationcancel",f),y?.removeEventListener("animationend",f))},{immediate:!0}),h=ze(s,()=>{const k=Pi(t.value);a.value=s.value==="mounted"?k:"none"});return Ea(()=>{p(),h()}),{isPresent:_(()=>["mounted","unmountSuspended"].includes(s.value))}}function Pi(e){return e&&getComputedStyle(e).animationName||"none"}var vi=oe({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){const{present:a,forceMount:r}=Gt(e),l=P(),{isPresent:o}=HE(a,l);n({present:o});let i=t.default({present:o.value});i=Wd(i||[]);const s=ra();if(i&&i?.length>1){const c=s?.parent?.type.name?`<${s.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${c}\` 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(d=>` - ${d}`).join(` -`)].join(` -`))}return()=>r.value||a.value||o.value?Cn(t.default({present:o.value})[0],{ref:c=>{const d=Hr(c);return typeof d?.hasAttribute>"u"||(d?.hasAttribute("data-reka-popper-content-wrapper")?l.value=d.firstElementChild:l.value=d),d}}):null}});const ad=oe({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{if(!n.default)return null;const a=Wd(n.default()),r=a.findIndex(s=>s.type!==Pn);if(r===-1)return a;const l=a[r];delete l.props?.ref;const o=l.props?Ue(t,l.props):t,i=er({...l,props:{}},o);return a.length===1?i:(a[r]=i,a)}}}),WE=["area","img","input"],nt=oe({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:n}){const a=e.asChild?"template":e.as;return typeof a=="string"&&WE.includes(a)?()=>Cn(a,t):a!=="template"?()=>Cn(e.as,t,{default:n.default}):()=>Cn(ad,t,{default:n.default})}});function Fr(){const e=P(),t=_(()=>["#text","#comment"].includes(e.value?.$el.nodeName)?e.value?.$el.nextElementSibling:Hr(e));return{primitiveElement:e,currentElement:t}}const[Oa,KE]=Ct("DialogRoot");var GE=oe({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 n=e,r=Pt(n,"open",t,{defaultValue:n.defaultOpen,passive:n.open===void 0}),l=P(),o=P(),{modal:i}=Gt(n);return KE({open:r,modal:i,openModal:()=>{r.value=!0},onOpenChange:s=>{r.value=s},onOpenToggle:()=>{r.value=!r.value},contentId:"",titleId:"",descriptionId:"",triggerElement:l,contentElement:o}),(s,c)=>xe(s.$slots,"default",{open:u(r),close:()=>r.value=!1})}}),jl=GE,YE=oe({__name:"DialogClose",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e;tt();const n=Oa();return(a,r)=>(v(),j(u(nt),Ue(t,{type:a.as==="button"?"button":void 0,onClick:r[0]||(r[0]=l=>u(n).onOpenChange(!1))}),{default:F(()=>[xe(a.$slots,"default")]),_:3},16,["type"]))}}),Fl=YE;const JE="dismissableLayer.pointerDownOutside",ZE="dismissableLayer.focusOutside";function Xg(e,t){if(!(t instanceof Element))return!1;const n=t.closest("[data-dismissable-layer]"),a=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),r=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(n&&(a===n||r.indexOf(a){});return gn(o=>{if(!Aa||!en(n))return;const i=async c=>{const d=c.target;if(!(!t?.value||!d)){if(Xg(t.value,d)){r.value=!1;return}if(c.target&&!r.value){let m=function(){Ud(JE,e,f)};const f={originalEvent:c};c.pointerType==="touch"?(a.removeEventListener("click",l.value),l.value=m,a.addEventListener("click",l.value,{once:!0})):m()}else a.removeEventListener("click",l.value);r.value=!1}},s=window.setTimeout(()=>{a.addEventListener("pointerdown",i)},0);o(()=>{window.clearTimeout(s),a.removeEventListener("pointerdown",i),a.removeEventListener("click",l.value)})}),{onPointerDownCapture:()=>{en(n)&&(r.value=!0)}}}function QE(e,t,n=!0){const a=t?.value?.ownerDocument??globalThis?.document,r=P(!1);return gn(l=>{if(!Aa||!en(n))return;const o=async i=>{if(!t?.value)return;await Ze(),await Ze();const s=i.target;!t.value||!s||Xg(t.value,s)||i.target&&!r.value&&Ud(ZE,e,{originalEvent:i})};a.addEventListener("focusin",o),l(()=>a.removeEventListener("focusin",o))}),{onFocusCapture:()=>{en(n)&&(r.value=!0)},onBlurCapture:()=>{en(n)&&(r.value=!1)}}}const cn=On({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,originalBodyPointerEvents:void 0,branches:new Set});var eA=oe({__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 n=e,a=t,{forwardRef:r,currentElement:l}=tt(),o=_(()=>l.value?.ownerDocument??globalThis.document),i=_(()=>cn.layersRoot),s=_(()=>l.value?Array.from(i.value).indexOf(l.value):-1),c=_(()=>cn.layersWithOutsidePointerEventsDisabled.size>0),d=_(()=>{const p=Array.from(i.value),[h]=[...cn.layersWithOutsidePointerEventsDisabled].slice(-1),x=p.indexOf(h);return s.value>=x}),f=XE(async p=>{const h=[...cn.branches].some(x=>x?.contains(p.target));!d.value||h||(a("pointerDownOutside",p),a("interactOutside",p),await Ze(),p.defaultPrevented||a("dismiss"))},l),m=QE(p=>{[...cn.branches].some(x=>x?.contains(p.target))||(a("focusOutside",p),a("interactOutside",p),p.defaultPrevented||a("dismiss"))},l);return OS("Escape",p=>{s.value===i.value.size-1&&(a("escapeKeyDown",p),p.defaultPrevented||a("dismiss"))}),ze([l,()=>n.disableOutsidePointerEvents],([p,h],x,k)=>{p&&(h&&(cn.layersWithOutsidePointerEventsDisabled.size===0&&(cn.originalBodyPointerEvents=o.value.body.style.pointerEvents,o.value.body.style.pointerEvents="none"),cn.layersWithOutsidePointerEventsDisabled.add(p),k(()=>{cn.layersWithOutsidePointerEventsDisabled.delete(p),cn.layersWithOutsidePointerEventsDisabled.size===0&&!vn(cn.originalBodyPointerEvents)&&(o.value.body.style.pointerEvents=cn.originalBodyPointerEvents)})),i.value.add(p))},{immediate:!0}),gn(p=>{p(()=>{l.value&&(i.value.delete(l.value),cn.layersWithOutsidePointerEventsDisabled.delete(l.value))})}),(p,h)=>(v(),j(u(nt),{ref:u(r),"as-child":p.asChild,as:p.as,"data-dismissable-layer":"",style:Tn({pointerEvents:c.value?d.value?"auto":"none":void 0}),onFocusCapture:u(m).onFocusCapture,onBlurCapture:u(m).onBlurCapture,onPointerdownCapture:u(f).onPointerDownCapture},{default:F(()=>[xe(p.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),cf=eA;const tA=yS(()=>P([]));function nA(){const e=tA();return{add(t){const n=e.value[0];t!==n&&n?.pause(),e.value=Hv(e.value,t),e.value.unshift(t)},remove(t){e.value=Hv(e.value,t),e.value[0]?.resume()}}}function Hv(e,t){const n=[...e],a=n.indexOf(t);return a!==-1&&n.splice(a,1),n}const tc="focusScope.autoFocusOnMount",nc="focusScope.autoFocusOnUnmount",Wv={bubbles:!1,cancelable:!0};function aA(e,{select:t=!1}={}){const n=It();for(const a of e)if(Ha(a,{select:t}),It()!==n)return!0}function rA(e){const t=Qg(e),n=Kv(t,e),a=Kv(t.reverse(),e);return[n,a]}function Qg(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const r=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||r?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Kv(e,t){for(const n of e)if(!lA(n,{upTo:t}))return n}function lA(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 oA(e){return e instanceof HTMLInputElement&&"select"in e}function Ha(e,{select:t=!1}={}){if(e&&e.focus){const n=It();e.focus({preventScroll:!0}),e!==n&&oA(e)&&t&&e.select()}}var iA=oe({__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 n=e,a=t,{currentRef:r,currentElement:l}=tt(),o=P(null),i=nA(),s=On({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});gn(d=>{if(!Aa)return;const f=l.value;if(!n.trapped)return;function m(k){if(s.paused||!f)return;const y=k.target;f.contains(y)?o.value=y:Ha(o.value,{select:!0})}function p(k){if(s.paused||!f)return;const y=k.relatedTarget;y!==null&&(f.contains(y)||Ha(o.value,{select:!0}))}function h(k){const y=o.value;if(y===null||!k.some(O=>O.removedNodes.length>0))return;f.contains(y)||Ha(f)}document.addEventListener("focusin",m),document.addEventListener("focusout",p);const x=new MutationObserver(h);f&&x.observe(f,{childList:!0,subtree:!0}),d(()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",p),x.disconnect()})}),gn(async d=>{const f=l.value;if(await Ze(),!f)return;i.add(s);const m=It();if(!f.contains(m)){const h=new CustomEvent(tc,Wv);f.addEventListener(tc,x=>a("mountAutoFocus",x)),f.dispatchEvent(h),h.defaultPrevented||(aA(Qg(f),{select:!0}),It()===m&&Ha(f))}d(()=>{f.removeEventListener(tc,k=>a("mountAutoFocus",k));const h=new CustomEvent(nc,Wv),x=k=>{a("unmountAutoFocus",k)};f.addEventListener(nc,x),f.dispatchEvent(h),f.setAttribute("data-focus-scope-unmounting",""),setTimeout(()=>{h.defaultPrevented||Ha(m??document.body,{select:!0}),f.removeEventListener(nc,x),i.remove(s),f.removeAttribute("data-focus-scope-unmounting")},0)})});function c(d){if(!n.loop&&!n.trapped||s.paused)return;const f=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,m=It();if(f&&m){const p=d.currentTarget,[h,x]=rA(p);h&&x?!d.shiftKey&&m===x?(d.preventDefault(),n.loop&&Ha(h,{select:!0})):d.shiftKey&&m===h&&(d.preventDefault(),n.loop&&Ha(x,{select:!0})):m===p&&d.preventDefault()}}return(d,f)=>(v(),j(u(nt),{ref_key:"currentRef",ref:r,tabindex:"-1","as-child":d.asChild,as:d.as,onKeydown:c},{default:F(()=>[xe(d.$slots,"default")]),_:3},8,["as-child","as"]))}}),df=iA;const sA="menu.itemSelect",rd=["Enter"," "],uA=["ArrowDown","PageUp","Home"],eb=["ArrowUp","PageDown","End"],cA=[...uA,...eb];[...rd],[...rd];function tb(e){return e?"open":"closed"}function dA(e){const t=It();for(const n of e)if(n===t||(n.focus(),It()!==t))return}function fA(e,t){const{x:n,y:a}=e;let r=!1;for(let l=0,o=t.length-1;la!=d>a&&n<(c-i)*(a-s)/(d-s)+i&&(r=!r)}return r}function pA(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return fA(n,t)}function bs(e){return e.pointerType==="mouse"}var vA=oe({__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 n=e,a=t,r=Oa(),{forwardRef:l,currentElement:o}=tt();return r.titleId||=Br(void 0,"reka-dialog-title"),r.descriptionId||=Br(void 0,"reka-dialog-description"),kt(()=>{r.contentElement=o,It()!==document.body&&(r.triggerElement.value=It())}),(i,s)=>(v(),j(u(df),{"as-child":"",loop:"",trapped:n.trapFocus,onMountAutoFocus:s[5]||(s[5]=c=>a("openAutoFocus",c)),onUnmountAutoFocus:s[6]||(s[6]=c=>a("closeAutoFocus",c))},{default:F(()=>[V(u(cf),Ue({id:u(r).contentId,ref:u(l),as:i.as,"as-child":i.asChild,"disable-outside-pointer-events":i.disableOutsidePointerEvents,role:"dialog","aria-describedby":u(r).descriptionId,"aria-labelledby":u(r).titleId,"data-state":u(tb)(u(r).open.value)},i.$attrs,{onDismiss:s[0]||(s[0]=c=>u(r).onOpenChange(!1)),onEscapeKeyDown:s[1]||(s[1]=c=>a("escapeKeyDown",c)),onFocusOutside:s[2]||(s[2]=c=>a("focusOutside",c)),onInteractOutside:s[3]||(s[3]=c=>a("interactOutside",c)),onPointerDownOutside:s[4]||(s[4]=c=>a("pointerDownOutside",c))}),{default:F(()=>[xe(i.$slots,"default")]),_:3},16,["id","as","as-child","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped"]))}}),nb=vA,mA=oe({__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 n=e,a=t,r=Oa(),l=Vl(a),{forwardRef:o,currentElement:i}=tt();return uf(i),(s,c)=>(v(),j(nb,Ue({...n,...u(l)},{ref:u(o),"trap-focus":u(r).open.value,"disable-outside-pointer-events":n.disableOutsidePointerEvents,onCloseAutoFocus:c[0]||(c[0]=d=>{d.defaultPrevented||(d.preventDefault(),u(r).triggerElement.value?.focus())}),onPointerDownOutside:c[1]||(c[1]=d=>{const f=d.detail.originalEvent,m=f.button===0&&f.ctrlKey===!0;(f.button===2||m)&&d.preventDefault()}),onFocusOutside:c[2]||(c[2]=d=>{d.preventDefault()})}),{default:F(()=>[xe(s.$slots,"default")]),_:3},16,["trap-focus","disable-outside-pointer-events"]))}}),hA=mA,yA=oe({__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 n=e,r=Vl(t);tt();const l=Oa(),o=P(!1),i=P(!1);return(s,c)=>(v(),j(nb,Ue({...n,...u(r)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:c[0]||(c[0]=d=>{d.defaultPrevented||(o.value||u(l).triggerElement.value?.focus(),d.preventDefault()),o.value=!1,i.value=!1}),onInteractOutside:c[1]||(c[1]=d=>{d.defaultPrevented||(o.value=!0,d.detail.originalEvent.type==="pointerdown"&&(i.value=!0));const f=d.target;u(l).triggerElement.value?.contains(f)&&d.preventDefault(),d.detail.originalEvent.type==="focusin"&&i.value&&d.preventDefault()})}),{default:F(()=>[xe(s.$slots,"default")]),_:3},16))}}),gA=yA,bA=oe({__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 n=e,a=t,r=Oa(),l=Vl(a),{forwardRef:o}=tt();return(i,s)=>(v(),j(u(vi),{present:i.forceMount||u(r).open.value},{default:F(()=>[u(r).modal.value?(v(),j(hA,Ue({key:0,ref:u(o)},{...n,...u(l),...i.$attrs}),{default:F(()=>[xe(i.$slots,"default")]),_:3},16)):(v(),j(gA,Ue({key:1,ref:u(o)},{...n,...u(l),...i.$attrs}),{default:F(()=>[xe(i.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),Ul=bA,_A=oe({__name:"DialogDescription",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"p"}},setup(e){const t=e;tt();const n=Oa();return(a,r)=>(v(),j(u(nt),Ue(t,{id:u(n).descriptionId}),{default:F(()=>[xe(a.$slots,"default")]),_:3},16,["id"]))}}),Vr=_A,xA=oe({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=Oa();return Kd(!0),tt(),(n,a)=>(v(),j(u(nt),{as:n.as,"as-child":n.asChild,"data-state":u(t).open.value?"open":"closed",style:{"pointer-events":"auto"},onPointerdown:a[0]||(a[0]=vt(()=>{},["left","self","prevent"]))},{default:F(()=>[xe(n.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),kA=xA,wA=oe({__name:"DialogOverlay",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=Oa(),{forwardRef:n}=tt();return(a,r)=>u(t)?.modal.value?(v(),j(u(vi),{key:0,present:a.forceMount||u(t).open.value},{default:F(()=>[V(kA,Ue(a.$attrs,{ref:u(n),as:a.as,"as-child":a.asChild}),{default:F(()=>[xe(a.$slots,"default")]),_:3},16,["as","as-child"])]),_:3},8,["present"])):ae("v-if",!0)}}),Hl=wA,$A=oe({__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=TS();return(n,a)=>u(t)||n.forceMount?(v(),j(Z0,{key:0,to:n.to,disabled:n.disabled,defer:n.defer},[xe(n.$slots,"default")],8,["to","disabled","defer"])):ae("v-if",!0)}}),ou=$A,CA=oe({__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(n,a)=>(v(),j(u(ou),lt(it(t)),{default:F(()=>[xe(n.$slots,"default")]),_:3},16))}}),mi=CA,SA=oe({__name:"DialogTitle",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"h2"}},setup(e){const t=e,n=Oa();return tt(),(a,r)=>(v(),j(u(nt),Ue(t,{id:u(n).titleId}),{default:F(()=>[xe(a.$slots,"default")]),_:3},16,["id"]))}}),Wl=SA;const[EA,AA]=Ct("AlertDialogContent");var TA=oe({__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 n=e,r=Vl(t);tt();const l=P();return AA({onCancelElementChange:o=>{l.value=o}}),(o,i)=>(v(),j(u(Ul),Ue({...n,...u(r)},{role:"alertdialog",onPointerDownOutside:i[0]||(i[0]=vt(()=>{},["prevent"])),onInteractOutside:i[1]||(i[1]=vt(()=>{},["prevent"])),onOpenAutoFocus:i[2]||(i[2]=()=>{Ze(()=>{l.value?.focus({preventScroll:!0})})})}),{default:F(()=>[xe(o.$slots,"default")]),_:3},16))}}),DA=TA,OA=oe({__name:"AlertDialogCancel",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=EA(),{forwardRef:a,currentElement:r}=tt();return kt(()=>{n.onCancelElementChange(r.value)}),(l,o)=>(v(),j(u(Fl),Ue(t,{ref:u(a)}),{default:F(()=>[xe(l.$slots,"default")]),_:3},16))}}),MA=OA,PA=oe({__name:"AlertDialogDescription",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"p"}},setup(e){const t=e;return tt(),(n,a)=>(v(),j(u(Vr),lt(it(t)),{default:F(()=>[xe(n.$slots,"default")]),_:3},16))}}),RA=PA,IA=oe({__name:"AlertDialogOverlay",props:{forceMount:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return tt(),(n,a)=>(v(),j(u(Hl),lt(it(t)),{default:F(()=>[xe(n.$slots,"default")]),_:3},16))}}),qA=IA,NA=oe({__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(n,a)=>(v(),j(u(ou),lt(it(t)),{default:F(()=>[xe(n.$slots,"default")]),_:3},16))}}),LA=NA,BA=oe({__name:"AlertDialogRoot",props:{open:{type:Boolean,required:!1},defaultOpen:{type:Boolean,required:!1}},emits:["update:open"],setup(e,{emit:t}){const r=Da(e,t);return tt(),(l,o)=>(v(),j(u(jl),Ue(u(r),{modal:!0}),{default:F(i=>[xe(l.$slots,"default",lt(it(i)))]),_:3},16))}}),FA=BA,VA=oe({__name:"AlertDialogTitle",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"h2"}},setup(e){const t=e;return tt(),(n,a)=>(v(),j(u(Wl),lt(it(t)),{default:F(()=>[xe(n.$slots,"default")]),_:3},16))}}),zA=VA;const Gv="data-reka-collection-item";function ff(e={}){const{key:t="",isProvider:n=!1}=e,a=`${t}CollectionProvider`;let r;n?(r={collectionRef:P(),itemMap:P(new Map)},$t(a,r)):r=ct(a);const l=(d=!1)=>{const f=r.collectionRef.value;if(!f)return[];const m=Array.from(f.querySelectorAll(`[${Gv}]`)),h=Array.from(r.itemMap.value.values()).sort((x,k)=>m.indexOf(x.ref)-m.indexOf(k.ref));return d?h:h.filter(x=>x.ref.dataset.disabled!=="")},o=oe({name:"CollectionSlot",inheritAttrs:!1,setup(d,{slots:f,attrs:m}){const{primitiveElement:p,currentElement:h}=Fr();return ze(h,()=>{r.collectionRef.value=h.value}),()=>Cn(ad,{ref:p,...m},f)}}),i=oe({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(d,{slots:f,attrs:m}){const{primitiveElement:p,currentElement:h}=Fr();return gn(x=>{if(h.value){const k=Qi(h.value);r.itemMap.value.set(k,{ref:h.value,value:d.value}),x(()=>r.itemMap.value.delete(k))}}),()=>Cn(ad,{...m,[Gv]:"",ref:p},f)}}),s=_(()=>Array.from(r.itemMap.value.values())),c=_(()=>r.itemMap.value.size);return{getItems:l,reactiveItems:s,itemMapSize:c,CollectionSlot:o,CollectionItem:i}}var jA=oe({__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,n)=>(v(),j(u(nt),{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(()=>[xe(t.$slots,"default")]),_:3},8,["as","as-child","aria-hidden","data-hidden","tabindex"]))}}),pf=jA,UA=oe({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:n,currentElement:a}=Fr(),r=_(()=>t.checked??t.value);return ze(r,(l,o)=>{if(!a.value)return;const i=a.value,s=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(s,"value").set;if(d&&l!==o){const f=new Event("input",{bubbles:!0}),m=new Event("change",{bubbles:!0});d.call(i,l),i.dispatchEvent(f),i.dispatchEvent(m)}}),(l,o)=>(v(),j(pf,Ue({ref_key:"primitiveElement",ref:n},{...t,...l.$attrs},{as:"input"}),null,16))}}),Yv=UA,HA=oe({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,n=_(()=>typeof t.value=="object"&&Array.isArray(t.value)&&t.value.length===0&&t.required),a=_(()=>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)=>(v(),b(he,null,[ae(" We render single input if it's required "),n.value?(v(),j(Yv,Ue({key:r.name},{...t,...r.$attrs},{name:r.name,value:r.value}),null,16,["name","value"])):(v(!0),b(he,{key:1},qe(a.value,o=>(v(),j(Yv,Ue({key:o.name},{ref_for:!0},{...t,...r.$attrs},{name:o.name,value:o.value}),null,16,["name","value"]))),128))],2112))}}),vf=HA;const WA="rovingFocusGroup.onEntryFocus",KA={bubbles:!1,cancelable:!0},GA={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function YA(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function JA(e,t,n){const a=YA(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(a))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(a)))return GA[a]}function ab(e,t=!1){const n=It();for(const a of e)if(a===n||(a.focus({preventScroll:t}),It()!==n))return}function ZA(e,t){return e.map((n,a)=>e[(t+a)%e.length])}const[rb,XA]=Ct("PopperRoot");var QA=oe({inheritAttrs:!1,__name:"PopperRoot",setup(e){const t=P();return XA({anchor:t,onAnchorChange:n=>t.value=n}),(n,a)=>xe(n.$slots,"default")}}),lb=QA,e3=oe({__name:"PopperAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,{forwardRef:n,currentElement:a}=tt(),r=rb();return Mh(()=>{r.onAnchorChange(t.reference??a.value)}),(l,o)=>(v(),j(u(nt),{ref:u(n),as:l.as,"as-child":l.asChild},{default:F(()=>[xe(l.$slots,"default")]),_:3},8,["as","as-child"]))}}),mf=e3;function t3(e){return e!==null}function n3(e){return{name:"transformOrigin",options:e,fn(t){const{placement:n,rects:a,middlewareData:r}=t,o=r.arrow?.centerOffset!==0,i=o?0:e.arrowWidth,s=o?0:e.arrowHeight,[c,d]=ld(n),f={start:"0%",center:"50%",end:"100%"}[d],m=(r.arrow?.x??0)+i/2,p=(r.arrow?.y??0)+s/2;let h="",x="";return c==="bottom"?(h=o?f:`${m}px`,x=`${-s}px`):c==="top"?(h=o?f:`${m}px`,x=`${a.floating.height+s}px`):c==="right"?(h=`${-s}px`,x=o?f:`${p}px`):c==="left"&&(h=`${a.floating.width+s}px`,x=o?f:`${p}px`),{data:{x:h,y:x}}}}}function ld(e){const[t,n="center"]=e.split("-");return[t,n]}const a3=["top","right","bottom","left"],or=Math.min,ga=Math.max,_s=Math.round,Ri=Math.floor,ba=e=>({x:e,y:e}),r3={left:"right",right:"left",bottom:"top",top:"bottom"};function ob(e,t,n){return ga(e,or(t,n))}function Ca(e,t){return typeof e=="function"?e(t):e}function ir(e){return e.split("-")[0]}function Kl(e){return e.split("-")[1]}function hf(e){return e==="x"?"y":"x"}function yf(e){return e==="y"?"height":"width"}function Yn(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function gf(e){return hf(Yn(e))}function l3(e,t,n){n===void 0&&(n=!1);const a=Kl(e),r=gf(e),l=yf(r);let o=r==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(o=xs(o)),[o,xs(o)]}function o3(e){const t=xs(e);return[od(e),t,od(t)]}function od(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Jv=["left","right"],Zv=["right","left"],i3=["top","bottom"],s3=["bottom","top"];function u3(e,t,n){switch(e){case"top":case"bottom":return n?t?Zv:Jv:t?Jv:Zv;case"left":case"right":return t?i3:s3;default:return[]}}function c3(e,t,n,a){const r=Kl(e);let l=u3(ir(e),n==="start",a);return r&&(l=l.map(o=>o+"-"+r),t&&(l=l.concat(l.map(od)))),l}function xs(e){const t=ir(e);return r3[t]+e.slice(t.length)}function d3(e){var t,n,a,r;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(a=e.bottom)!=null?a:0,left:(r=e.left)!=null?r:0}}function ib(e){return typeof e!="number"?d3(e):{top:e,right:e,bottom:e,left:e}}function ks(e){const{x:t,y:n,width:a,height:r}=e;return{width:a,height:r,top:n,left:t,right:t+a,bottom:n+r,x:t,y:n}}function Xv(e,t,n){let{reference:a,floating:r}=e;const l=Yn(t),o=gf(t),i=yf(o),s=ir(t),c=l==="y",d=a.x+a.width/2-r.width/2,f=a.y+a.height/2-r.height/2,m=a[i]/2-r[i]/2;let p;switch(s){case"top":p={x:d,y:a.y-r.height};break;case"bottom":p={x:d,y:a.y+a.height};break;case"right":p={x:a.x+a.width,y:f};break;case"left":p={x:a.x-r.width,y:f};break;default:p={x:a.x,y:a.y}}const h=Kl(t);return h&&(p[o]+=m*(h==="end"?1:-1)*(n&&c?-1:1)),p}async function f3(e,t){var n;t===void 0&&(t={});const{x:a,y:r,platform:l,rects:o,elements:i,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:m=!1,padding:p=0}=Ca(t,e),h=ib(p),k=i[m?f==="floating"?"reference":"floating":f],y=ks(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(k)))==null||n?k:k.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(i.floating)),boundary:c,rootBoundary:d,strategy:s})),$=f==="floating"?{x:a,y:r,width:o.floating.width,height:o.floating.height}:o.reference,E=await(l.getOffsetParent==null?void 0:l.getOffsetParent(i.floating)),O=await(l.isElement==null?void 0:l.isElement(E))&&await(l.getScale==null?void 0:l.getScale(E))||{x:1,y:1},M=ks(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:$,offsetParent:E,strategy:s}):$);return{top:(y.top-M.top+h.top)/O.y,bottom:(M.bottom-y.bottom+h.bottom)/O.y,left:(y.left-M.left+h.left)/O.x,right:(M.right-y.right+h.right)/O.x}}const p3=50,v3=async(e,t,n)=>{const{placement:a="bottom",strategy:r="absolute",middleware:l=[],platform:o}=n,i=o.detectOverflow?o:{...o,detectOverflow:f3},s=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:f}=Xv(c,a,s),m=a,p=0;const h={};for(let x=0;x({name:"arrow",options:e,async fn(t){const{x:n,y:a,placement:r,rects:l,platform:o,elements:i,middlewareData:s}=t,{element:c,padding:d=0}=Ca(e,t)||{};if(c==null)return{};const f=ib(d),m={x:n,y:a},p=gf(r),h=yf(p),x=await o.getDimensions(c),k=p==="y",y=k?"top":"left",$=k?"bottom":"right",E=k?"clientHeight":"clientWidth",O=l.reference[h]+l.reference[p]-m[p]-l.floating[h],M=m[p]-l.reference[p],B=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let z=B?B[E]:0;(!z||!await(o.isElement==null?void 0:o.isElement(B)))&&(z=i.floating[E]||l.floating[h]);const H=O/2-M/2,S=z/2-x[h]/2-1,N=or(f[y],S),Y=or(f[$],S),R=z-x[h]-Y,U=z/2-x[h]/2+H,Q=ob(N,U,R),q=!s.arrow&&Kl(r)!=null&&U!==Q&&l.reference[h]/2-(UQ<=0)){var Y,R;const Q=(((Y=l.flip)==null?void 0:Y.index)||0)+1,q=z[Q];if(q&&(!(f==="alignment"?$!==Yn(q):!1)||N.every(fe=>Yn(fe.placement)===$?fe.overflows[0]>0:!0)))return{data:{index:Q,overflows:N},reset:{placement:q}};let ee=(R=N.filter(ne=>ne.overflows[0]<=0).sort((ne,fe)=>ne.overflows[1]-fe.overflows[1])[0])==null?void 0:R.placement;if(!ee)switch(p){case"bestFit":{var U;const ne=(U=N.filter(fe=>{if(B){const ge=Yn(fe.placement);return ge===$||ge==="y"}return!0}).map(fe=>[fe.placement,fe.overflows.filter(ge=>ge>0).reduce((ge,Ee)=>ge+Ee,0)]).sort((fe,ge)=>fe[1]-ge[1])[0])==null?void 0:U[0];ne&&(ee=ne);break}case"initialPlacement":ee=i;break}if(r!==ee)return{reset:{placement:ee}}}return{}}}};function Qv(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function em(e){return a3.some(t=>e[t]>=0)}const y3=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:a}=t,{strategy:r="referenceHidden",...l}=Ca(e,t);switch(r){case"referenceHidden":{const o=await a.detectOverflow(t,{...l,elementContext:"reference"}),i=Qv(o,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:em(i)}}}case"escaped":{const o=await a.detectOverflow(t,{...l,altBoundary:!0}),i=Qv(o,n.floating);return{data:{escapedOffsets:i,escaped:em(i)}}}default:return{}}}}},sb=new Set(["left","top"]);async function g3(e,t){const{placement:n,platform:a,elements:r}=e,l=await(a.isRTL==null?void 0:a.isRTL(r.floating)),o=ir(n),i=Kl(n),s=Yn(n)==="y",c=sb.has(o)?-1:1,d=l&&s?-1:1,f=Ca(t,e);let{mainAxis:m,crossAxis:p,alignmentAxis:h}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return i&&typeof h=="number"&&(p=i==="end"?h*-1:h),s?{x:p*d,y:m*c}:{x:m*c,y:p*d}}const b3=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,a;const{x:r,y:l,placement:o,middlewareData:i}=t,s=await g3(t,e);return o===((n=i.offset)==null?void 0:n.placement)&&(a=i.arrow)!=null&&a.alignmentOffset?{}:{x:r+s.x,y:l+s.y,data:{...s,placement:o}}}}},_3=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:a,placement:r,platform:l}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:s={fn:$=>{let{x:E,y:O}=$;return{x:E,y:O}}},...c}=Ca(e,t),d={x:n,y:a},f=await l.detectOverflow(t,c),m=Yn(r),p=hf(m);let h=d[p],x=d[m];const k=($,E)=>ob(E+f[$==="y"?"top":"left"],E,E-f[$==="y"?"bottom":"right"]);o&&(h=k(p,h)),i&&(x=k(m,x));const y=s.fn({...t,[p]:h,[m]:x});return{...y,data:{x:y.x-n,y:y.y-a,enabled:{[p]:o,[m]:i}}}}}},x3=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,a;const{x:r,y:l,placement:o,rects:i,middlewareData:s}=t,{offset:c=0,mainAxis:d=!0,crossAxis:f=!0}=Ca(e,t),m={x:r,y:l},p=Yn(o),h=hf(p);let x=m[h],k=m[p];const y=Ca(c,t),$=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:(n=y.mainAxis)!=null?n:0,crossAxis:(a=y.crossAxis)!=null?a:0};if(d){const M=h==="y"?"height":"width",B=i.reference[h]-i.floating[M]+$.mainAxis,z=i.reference[h]+i.reference[M]-$.mainAxis;xz&&(x=z)}if(f){var E,O;const M=h==="y"?"width":"height",B=sb.has(ir(o)),z=i.reference[p]-i.floating[M]+(B&&((E=s.offset)==null?void 0:E[p])||0)+(B?0:$.crossAxis),H=i.reference[p]+i.reference[M]+(B?0:((O=s.offset)==null?void 0:O[p])||0)-(B?$.crossAxis:0);kH&&(k=H)}return{[h]:x,[p]:k}}}},k3=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:a,platform:r,elements:l}=t,{apply:o=()=>{},...i}=Ca(e,t),s=await r.detectOverflow(t,i),c=ir(n),d=Kl(n),f=Yn(n)==="y",{width:m,height:p}=a.floating;let h,x;c==="top"||c==="bottom"?(h=c,x=d===(await(r.isRTL==null?void 0:r.isRTL(l.floating))?"start":"end")?"left":"right"):(x=c,h=d==="end"?"top":"bottom");const k=p-s.top-s.bottom,y=m-s.left-s.right,$=or(p-s[h],k),E=or(m-s[x],y),O=t.middlewareData.shift,M=!O;let B=$,z=E;O!=null&&O.enabled.x&&(z=y),O!=null&&O.enabled.y&&(B=k),M&&!d&&(f?z=m-2*ga(s.left,s.right):B=p-2*ga(s.top,s.bottom)),await o({...t,availableWidth:z,availableHeight:B});const H=await r.getDimensions(l.floating);return m!==H.width||p!==H.height?{reset:{rects:!0}}:{}}}};function iu(){return typeof window<"u"}function Wr(e){return bf(e)?(e.nodeName||"").toLowerCase():"#document"}function sn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ma(e){var t;return(t=(bf(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function bf(e){return iu()?e instanceof Node||e instanceof sn(e).Node:!1}function na(e){return iu()?e instanceof Element||e instanceof sn(e).Element:!1}function vr(e){return iu()?e instanceof HTMLElement||e instanceof sn(e).HTMLElement:!1}function tm(e){return!iu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof sn(e).ShadowRoot}function su(e){const{overflow:t,overflowX:n,overflowY:a,display:r}=aa(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+n)&&r!=="inline"&&r!=="contents"}function w3(e){return/^(table|td|th)$/.test(Wr(e))}function uu(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const $3=/transform|translate|scale|rotate|perspective|filter/,C3=/paint|layout|strict|content/,Cr=e=>!!e&&e!=="none";let ac;function _f(e){const t=na(e)?aa(e):e;return Cr(t.transform)||Cr(t.translate)||Cr(t.scale)||Cr(t.rotate)||Cr(t.perspective)||!xf()&&(Cr(t.backdropFilter)||Cr(t.filter))||$3.test(t.willChange||"")||C3.test(t.contain||"")}function S3(e){let t=zr(e);for(;vr(t)&&!Go(t);){if(_f(t))return t;if(uu(t))return null;t=zr(t)}return null}function xf(){return ac==null&&(ac=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ac}function Go(e){return/^(html|body|#document)$/.test(Wr(e))}function aa(e){return sn(e).getComputedStyle(e)}function cu(e){return na(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function zr(e){if(Wr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||tm(e)&&e.host||Ma(e);return tm(t)?t.host:t}function ub(e){const t=zr(e);return Go(t)?(e.ownerDocument||e).body:vr(t)&&su(t)?t:ub(t)}function Yo(e,t,n){var a;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=ub(e),l=r===((a=e.ownerDocument)==null?void 0:a.body),o=sn(r);if(l){const i=id(o);return t.concat(o,o.visualViewport||[],su(r)?r:[],i&&n?Yo(i):[])}else return t.concat(r,Yo(r,[],n))}function id(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function cb(e){const t=aa(e);let n=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const r=vr(e),l=r?e.offsetWidth:n,o=r?e.offsetHeight:a,i=_s(n)!==l||_s(a)!==o;return i&&(n=l,a=o),{width:n,height:a,$:i}}function kf(e){return na(e)?e:e.contextElement}function Tl(e){const t=kf(e);if(!vr(t))return ba(1);const n=t.getBoundingClientRect(),{width:a,height:r,$:l}=cb(t);let o=(l?_s(n.width):n.width)/a,i=(l?_s(n.height):n.height)/r;return(!o||!Number.isFinite(o))&&(o=1),(!i||!Number.isFinite(i))&&(i=1),{x:o,y:i}}const E3=ba(0);function db(e){const t=sn(e);return!xf()||!t.visualViewport?E3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function A3(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===sn(e)}function jr(e,t,n,a){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),l=kf(e);let o=ba(1);t&&(a?na(a)&&(o=Tl(a)):o=Tl(e));const i=A3(l,n,a)?db(l):ba(0);let s=(r.left+i.x)/o.x,c=(r.top+i.y)/o.y,d=r.width/o.x,f=r.height/o.y;if(l&&a){const m=sn(l),p=na(a)?sn(a):a;let h=m,x=id(h);for(;x&&p!==h;){const k=Tl(x),y=x.getBoundingClientRect(),$=aa(x),E=y.left+(x.clientLeft+parseFloat($.paddingLeft))*k.x,O=y.top+(x.clientTop+parseFloat($.paddingTop))*k.y;s*=k.x,c*=k.y,d*=k.x,f*=k.y,s+=E,c+=O,h=sn(x),x=id(h)}}return ks({width:d,height:f,x:s,y:c})}function du(e,t){const n=cu(e).scrollLeft;return t?t.left+n:jr(Ma(e)).left+n}function fb(e,t){const n=e.getBoundingClientRect(),a=n.left+t.scrollLeft-du(e,n),r=n.top+t.scrollTop;return{x:a,y:r}}function T3(e){let{elements:t,rect:n,offsetParent:a,strategy:r}=e;const l=r==="fixed",o=Ma(a),i=t?uu(t.floating):!1;if(a===o||i&&l)return n;let s={scrollLeft:0,scrollTop:0},c=ba(1);const d=ba(0),f=vr(a);if((f||!l)&&((Wr(a)!=="body"||su(o))&&(s=cu(a)),f)){const p=jr(a);c=Tl(a),d.x=p.x+a.clientLeft,d.y=p.y+a.clientTop}const m=o&&!f&&!l?fb(o,s):ba(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+d.x+m.x,y:n.y*c.y-s.scrollTop*c.y+d.y+m.y}}function D3(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function O3(e){const t=cu(e),n=e.ownerDocument.body,a=ga(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=ga(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let l=-t.scrollLeft+du(e);const o=-t.scrollTop;return aa(n).direction==="rtl"&&(l+=ga(e.clientWidth,n.clientWidth)-a),{width:a,height:r,x:l,y:o}}const M3=25;function P3(e,t,n){n===void 0&&(n="viewport");const a=n==="layoutViewport",r=sn(e),l=Ma(e),o=r.visualViewport;let i=l.clientWidth,s=l.clientHeight,c=0,d=0;if(o){const m=!xf()||t==="fixed";a?m||(c=-o.offsetLeft,d=-o.offsetTop):(i=o.width,s=o.height,m&&(c=o.offsetLeft,d=o.offsetTop))}if(du(l)<=0){const m=l.ownerDocument,p=m.body,h=getComputedStyle(p),x=m.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,k=Math.abs(l.clientWidth-p.clientWidth-x),y=getComputedStyle(l).scrollbarGutter==="stable both-edges"?k/2:k;y<=M3&&(i-=y)}return{width:i,height:s,x:c,y:d}}function R3(e,t){const n=jr(e,!0,t==="fixed"),a=n.top+e.clientTop,r=n.left+e.clientLeft,l=Tl(e),o=e.clientWidth*l.x,i=e.clientHeight*l.y,s=r*l.x,c=a*l.y;return{width:o,height:i,x:s,y:c}}function nm(e,t,n){let a;if(t==="viewport"||t==="layoutViewport")a=P3(e,n,t);else if(t==="document")a=O3(Ma(e));else if(na(t))a=R3(t,n);else{const r=db(e);a={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return ks(a)}function I3(e,t){const n=t.get(e);if(n)return n;let a=Yo(e,[],!1).filter(i=>na(i)&&Wr(i)!=="body"),r=null;const l=aa(e).position==="fixed";let o=l?zr(e):e;for(;na(o)&&!Go(o);){const i=aa(o),s=_f(o),c=r?r.position:l?"fixed":"";!s&&(c==="fixed"||c==="absolute"&&i.position==="static")?a=a.filter(f=>f!==o):r=i,o=zr(o)}return t.set(e,a),a}function q3(e){let{element:t,boundary:n,rootBoundary:a,strategy:r}=e;const o=[...n==="clippingAncestors"?uu(t)?[]:I3(t,this._c):[].concat(n),a],i=nm(t,o[0],r);let s=i.top,c=i.right,d=i.bottom,f=i.left;for(let m=1;m{i(!1,1e-7)},1e3)}z=!1}try{a=new IntersectionObserver(H,{...B,root:l.ownerDocument})}catch{a=new IntersectionObserver(H,B)}a.observe(e)}const s=sn(e),c=()=>i(n);return s.addEventListener("resize",c),i(!0),()=>{s.removeEventListener("resize",c),o()}}function j3(e,t,n,a){a===void 0&&(a={});const{ancestorScroll:r=!0,ancestorResize:l=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:s=!1}=a,c=kf(e),d=r||l?[...c?Yo(c):[],...t?Yo(t):[]]:[];d.forEach(y=>{r&&y.addEventListener("scroll",n),l&&y.addEventListener("resize",n)});const f=c&&i?z3(c,n,l):null;let m=-1,p=null;o&&(p=new ResizeObserver(y=>{let[$]=y;$&&$.target===c&&p&&t&&(p.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var E;(E=p)==null||E.observe(t)})),n()}),c&&!s&&p.observe(c),t&&p.observe(t));let h,x=s?jr(e):null;s&&k();function k(){const y=jr(e);x&&!vb(x,y)&&n(),x=y,h=requestAnimationFrame(k)}return n(),()=>{var y;d.forEach($=>{r&&$.removeEventListener("scroll",n),l&&$.removeEventListener("resize",n)}),f?.(),(y=p)==null||y.disconnect(),p=null,s&&cancelAnimationFrame(h)}}const U3=b3,H3=_3,rm=h3,W3=k3,K3=y3,G3=m3,Y3=x3,J3=(e,t,n)=>{const a=new Map,r=n??{},l={...V3,...r.platform,_c:a};return v3(e,t,{...r,platform:l})};function Z3(e){return e!=null&&typeof e=="object"&&"$el"in e}function sd(e){if(Z3(e)){const t=e.$el;return bf(t)&&Wr(t)==="#comment"?null:t}return e}function vl(e){return typeof e=="function"?e():u(e)}function X3(e){return{name:"arrow",options:e,fn(t){const n=sd(vl(e.element));return n==null?{}:G3({element:n,padding:e.padding}).fn(t)}}}function mb(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function lm(e,t){const n=mb(e);return Math.round(t*n)/n}function Q3(e,t,n){n===void 0&&(n={});const a=n.whileElementsMounted,r=_(()=>{var z;return(z=vl(n.open))!=null?z:!0}),l=_(()=>vl(n.middleware)),o=_(()=>{var z;return(z=vl(n.placement))!=null?z:"bottom"}),i=_(()=>{var z;return(z=vl(n.strategy))!=null?z:"absolute"}),s=_(()=>{var z;return(z=vl(n.transform))!=null?z:!0}),c=_(()=>sd(e.value)),d=_(()=>sd(t.value)),f=P(0),m=P(0),p=P(i.value),h=P(o.value),x=ni({}),k=P(!1),y=_(()=>{const z={position:p.value,left:"0",top:"0"};if(!d.value)return z;const H=lm(d.value,f.value),S=lm(d.value,m.value);return s.value?{...z,transform:"translate("+H+"px, "+S+"px)",...mb(d.value)>=1.5&&{willChange:"transform"}}:{position:p.value,left:H+"px",top:S+"px"}});let $;function E(){if(c.value==null||d.value==null)return;const z=r.value;J3(c.value,d.value,{middleware:l.value,placement:o.value,strategy:i.value}).then(H=>{f.value=H.x,m.value=H.y,p.value=H.strategy,h.value=H.placement,x.value=H.middlewareData,k.value=z!==!1})}function O(){typeof $=="function"&&($(),$=void 0)}function M(){if(O(),a===void 0){E();return}if(c.value!=null&&d.value!=null){$=a(c.value,d.value,E);return}}function B(){r.value||(k.value=!1)}return ze([l,o,i,r],E,{flush:"sync"}),ze([c,d],M,{flush:"sync"}),ze(r,B,{flush:"sync"}),wd()&&oh(O),{x:nl(f),y:nl(m),strategy:nl(p),placement:nl(h),middlewareData:nl(x),isPositioned:nl(k),floatingStyles:y,update:E}}const hb={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},[WF,eT]=Ct("PopperContent");var tT=oe({inheritAttrs:!1,__name:"PopperContent",props:Kh({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}},{...hb}),emits:["placed"],setup(e,{emit:t}){const n=e,a=t,r=rb(),{forwardRef:l,currentElement:o}=tt(),i=P(),s=P(),{width:c,height:d}=FE(s),f=_(()=>n.side+(n.align!=="center"?`-${n.align}`:"")),m=_(()=>typeof n.collisionPadding=="number"?n.collisionPadding:{top:0,right:0,bottom:0,left:0,...n.collisionPadding}),p=_(()=>Array.isArray(n.collisionBoundary)?n.collisionBoundary:[n.collisionBoundary]),h=_(()=>({padding:m.value,boundary:p.value.filter(t3),altBoundary:p.value.length>0})),x=_(()=>({mainAxis:n.sideFlip,crossAxis:n.alignFlip})),k=hS(()=>[U3({mainAxis:n.sideOffset+d.value,alignmentAxis:n.alignOffset}),n.prioritizePosition&&n.avoidCollisions&&rm({...h.value,...x.value}),n.avoidCollisions&&H3({mainAxis:!0,crossAxis:!!n.prioritizePosition,limiter:n.sticky==="partial"?Y3():void 0,...h.value}),!n.prioritizePosition&&n.avoidCollisions&&rm({...h.value,...x.value}),W3({...h.value,apply:({elements:R,rects:U,availableWidth:Q,availableHeight:q})=>{const{width:ee,height:ne}=U.reference,fe=R.floating.style;fe.setProperty("--reka-popper-available-width",`${Q}px`),fe.setProperty("--reka-popper-available-height",`${q}px`),fe.setProperty("--reka-popper-anchor-width",`${ee}px`),fe.setProperty("--reka-popper-anchor-height",`${ne}px`)}}),s.value&&X3({element:s.value,padding:n.arrowPadding}),n3({arrowWidth:c.value,arrowHeight:d.value}),n.hideWhenDetached&&K3({strategy:"referenceHidden",...h.value})]),y=_(()=>n.reference??r.anchor.value),{floatingStyles:$,placement:E,isPositioned:O,middlewareData:M}=Q3(y,i,{strategy:n.positionStrategy,placement:f,whileElementsMounted:(...R)=>j3(...R,{layoutShift:!n.disableUpdateOnLayoutShift,animationFrame:n.updatePositionStrategy==="always"}),middleware:k}),B=_(()=>ld(E.value)[0]),z=_(()=>ld(E.value)[1]);Mh(()=>{O.value&&a("placed")});const H=_(()=>{const R=M.value.arrow?.centerOffset!==0;return n.hideShiftedArrow&&R}),S=P("");gn(()=>{o.value&&(S.value=window.getComputedStyle(o.value).zIndex)});const N=_(()=>M.value.arrow?.x??0),Y=_(()=>M.value.arrow?.y??0);return eT({placedSide:B,onArrowChange:R=>s.value=R,arrowX:N,arrowY:Y,shouldHideArrow:H}),(R,U)=>(v(),b("div",{ref_key:"floatingRef",ref:i,"data-reka-popper-content-wrapper":"",style:Tn({...u($),transform:u(O)?u($).transform:"translate(0, -200%)",minWidth:"max-content",zIndex:S.value,"--reka-popper-transform-origin":[u(M).transformOrigin?.x,u(M).transformOrigin?.y].join(" "),...u(M).hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}})},[V(u(nt),Ue({ref:u(l)},R.$attrs,{"as-child":n.asChild,as:R.as,"data-side":B.value,"data-align":z.value,style:{animation:u(O)?void 0:"none"}}),{default:F(()=>[xe(R.$slots,"default")]),_:3},16,["as-child","as","data-side","data-align","style"])],4))}}),yb=tT;const wf=["day","month","year"],$f=["hour","minute","second","dayPeriod"],gb=[...wf,...$f];function nT(e){return wf.includes(e)}function bb(e){return gb.includes(e)}const aT=["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"],rT=["year","month","day"],lc={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 lT(e){if(om(e))return lc[e];{const t=uT(e);return om(t)?lc[t]:lc.en}}function oc(e,t,n){return oT(e)?lT(n)[e]:sT(e)?t:iT(e)?"––":""}function om(e){return aT.includes(e)}function oT(e){return rT.includes(e)}function iT(e){return e==="hour"||e==="minute"||e==="second"}function sT(e){return e==="era"||e==="dayPeriod"}function uT(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const cT=["hour","minute","second"];function ud(e){return Object.fromEntries($f.map(t=>t==="dayPeriod"?[t,e.formatter.dayPeriod(wn(e.value))]:[t,e.value[t]]))}function im(e){const{formatter:t}=e,n=wf.map(a=>[a,e.value[a]]);if("hour"in e.value){const a=ud({value:e.value,formatter:t});return{...Object.fromEntries(n),...a}}return Object.fromEntries(n)}function dT(e){return Object.fromEntries($f.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 fT(e){const t=gb.map(n=>n==="dayPeriod"?[n,"AM"]:[n,null]).filter(([n])=>n==="literal"||n===null||e==="minute"&&n==="second"||e==="hour"&&(n==="second"||n==="minute")?!1:e==="day"?!cT.includes(n)&&n!=="dayPeriod":!0);return Object.fromEntries(t)}function pT(e){const{segmentValues:t,formatter:n,locale:a}=e;function r(o){if("hour"in t){const i=t[o];return i!==null?o==="day"?n.part(e.dateRef.set({[o]:i,month:t.month??1}),o,{hourCycle:Ko(e.hourCycle)}):n.part(e.dateRef.set({[o]:i}),o,{hourCycle:Ko(e.hourCycle)}):oc(o,"",a.value)}else{if(nT(o)){const i=t[o];return i!==null?o==="day"?n.part(e.dateRef.set({[o]:i,month:t.month??1}),o):n.part(e.dateRef.set({[o]:i}),o):oc(o,"",a.value)}return""}}return Object.keys(t).reduce((o,i)=>{if(!bb(i))return o;if("hour"in t&&i==="dayPeriod"){const s=t[i];s!==null?o[i]=s:o[i]=oc(i,"AM",a.value)}else o[i]=r(i);return o},{})}function vT(e){const{granularity:t,formatter:n,contentObj:a,hideTimeZone:r,hourCycle:l,isTimeValue:o}=e;return n.toParts(e.dateRef,RE(t,l,o)).map(c=>["literal","timeZoneName",null].includes(c.type)||!bb(c.type)?{part:c.type,value:c.value}:{part:c.type,value:a[c.type]}).filter(c=>!(c.part===null||c.value===null||c.part==="timeZoneName"&&(!Wo(e.dateRef)||r)||(!Wo(e.dateRef)||r)&&c.part==="literal"&&["[","]"].includes(c.value.trim())))}function _b(e){const t=pT(e),n=vT({contentObj:t,...e});return{obj:t,arr:n}}function ca(e){const t=zl();return e===t.ARROW_RIGHT||e===t.ARROW_LEFT}function Er(e){return!Number.isNaN(Number.parseInt(e))}function Fa(e){const t=zl();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)||Er(e))}function sm(e){return Array.from(e.querySelectorAll("[data-reka-date-field-segment]")).filter(t=>t.getAttribute("data-reka-date-field-segment")!=="literal")}function um(e){return Array.from(e.querySelectorAll("[data-reka-time-field-segment]")).filter(t=>t.getAttribute("data-reka-time-field-segment")!=="literal")}const mT=/^\d$/;function mr(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 hT(e){const{segmentValues:t,placeholder:n}=e,a=t.day===null,r={};t.day&&(r.day=t.day),t.month&&(r.month=t.month);const l=Object.keys(r).length>0?n.set(r):n,o=l.day,i=1,s=Qa(l),c=a?"Empty":`${o}`;return{...mr(e),"aria-label":"day,","aria-valuemin":i,"aria-valuemax":s,"aria-valuenow":o,"aria-valuetext":c,"data-placeholder":a?"":void 0}}function yT(e){const{segmentValues:t,placeholder:n,formatter:a}=e,r=t.month===null,l=t.month?n.set({month:t.month}):n,o=l.month,i=1,s=12,c=r?"Empty":`${o} - ${a.fullMonth(wn(l))}`;return{...mr(e),"aria-label":"month, ",contenteditable:!0,"aria-valuemin":i,"aria-valuemax":s,"aria-valuenow":o,"aria-valuetext":c,"data-placeholder":r?"":void 0}}function gT(e){const{segmentValues:t,placeholder:n}=e,a=t.year===null,r=t.year?n.set({year:t.year}):n,l=1,o=9999,i=r.year,s=a?"Empty":`${i}`;return{...mr(e),"aria-label":"year, ","aria-valuemin":l,"aria-valuemax":o,"aria-valuenow":i,"aria-valuetext":s,"data-placeholder":a?"":void 0}}function bT(e){const{segmentValues:t,hourCycle:n,placeholder:a}=e;if(!("hour"in t)||!("hour"in a))return{};const r=t.hour===null,l=t.hour?a.set({hour:t.hour}):a,o=n===12?1:0,i=n===12?12:23,s=l.hour,c=r?"Empty":`${s} ${t.dayPeriod??""}`;return{...mr(e),"aria-label":"hour, ","aria-valuemin":o,"aria-valuemax":i,"aria-valuenow":s,"aria-valuetext":c,"data-placeholder":r?"":void 0}}function _T(e){const{segmentValues:t,placeholder:n}=e;if(!("minute"in t)||!("minute"in n))return{};const a=t.minute===null,l=(t.minute?n.set({minute:t.minute}):n).minute,o=0,i=59,s=a?"Empty":`${l}`;return{...mr(e),"aria-label":"minute, ","aria-valuemin":o,"aria-valuemax":i,"aria-valuenow":l,"aria-valuetext":s,"data-placeholder":a?"":void 0}}function xT(e){const{segmentValues:t,placeholder:n}=e;if(!("second"in t)||!("second"in n))return{};const a=t.second===null,l=(t.second?n.set({second:t.second}):n).second,o=0,i=59,s=a?"Empty":`${l}`;return{...mr(e),"aria-label":"second, ","aria-valuemin":o,"aria-valuemax":i,"aria-valuenow":l,"aria-valuetext":s,"data-placeholder":a?"":void 0}}function kT(e){const{segmentValues:t}=e;if(!("dayPeriod"in t))return{};const n=0,a=12,r=t.hour?t.hour>12?t.hour-12:t.hour:0,l=t.dayPeriod??"AM";return{...mr(e),inputmode:"text","aria-label":"AM/PM","aria-valuemin":n,"aria-valuemax":a,"aria-valuenow":r,"aria-valuetext":l}}function wT(e){return{"aria-hidden":!0,"data-segment":"literal"}}function $T(e){return{role:"textbox","aria-label":"timezone, ","data-readonly":!0,"data-segment":"timeZoneName",tabindex:e.disabled?void 0:0,style:"caret-color: transparent;"}}function CT(e){const{segmentValues:t,placeholder:n}=e,a=0,r=0,l=0,o="era"in t?t.era:n.era;return{...mr(e),"aria-label":"era","aria-valuemin":a,"aria-valuemax":r,"aria-valuenow":l,"aria-valuetext":o}}const ST={day:{attrs:hT},month:{attrs:yT},year:{attrs:gT},hour:{attrs:bT},minute:{attrs:_T},second:{attrs:xT},dayPeriod:{attrs:kT},literal:{attrs:wT},timeZoneName:{attrs:$T},era:{attrs:CT}};function xb(e){const t=zl();function n({e:S,part:N,dateRef:Y,prevValue:R}){const U=e.step.value[N]??1,Q=S.key===t.ARROW_UP?U:-U,q=0,ee=59;if(R===null)return Q>0?q:ee;const ne=[N,Q];return Y.set({[N]:R}).cycle(...ne)[N]}function a(S){if(e.hasLeftFocus.value=!1,S===null)return S;const N=S.toString();return N.length===1?(e.modelValue.value=void 0,null):Number.parseInt(N.slice(0,-1))}function r({e:S,part:N,dateRef:Y,prevValue:R}){const U=e.step.value[N]??1,Q=S.key===t.ARROW_UP?U:-U;if(R===null)return Y[N];if(N==="hour"&&"hour"in Y){const ee=[N,Q];return Y.set({[N]:R}).cycle(...ee)[N]}const q=[N,Q];return N==="day"?Y.set({[N]:R,month:e.segmentValues.value.month??1}).cycle(...q)[N]:Y.set({[N]:R}).cycle(...q)[N]}function l(S,N,Y){let R=!1;const U=Math.floor(S/10);if(e.hasLeftFocus.value&&(e.hasLeftFocus.value=!1,e.lastKeyZero.value=!1,Y=null),Y===null)return N===0?(e.lastKeyZero.value=!0,{value:null,moveToNext:R}):((e.lastKeyZero.value||N>U)&&(R=!0),e.lastKeyZero.value=!1,{value:N,moveToNext:R});const Q=Y.toString().length,q=Number.parseInt(Y.toString()+N.toString());return Q===2||q>S?((N>U||q>S)&&(R=!0),{value:N,moveToNext:R}):(R=!0,{value:q,moveToNext:R})}function o(S,N){let R=!1;const U=Math.floor(59/10);if(e.hasLeftFocus.value&&(e.hasLeftFocus.value=!1,e.lastKeyZero.value=!1,N=null),N===null)return S===0?(e.lastKeyZero.value=!0,{value:0,moveToNext:R}):((e.lastKeyZero.value||S>U)&&(R=!0),e.lastKeyZero.value=!1,{value:S,moveToNext:R});const Q=N.toString().length,q=Number.parseInt(N.toString()+S.toString());return Q===2||q>59?(S>U&&(R=!0),{value:S,moveToNext:R}):(R=!0,{value:q,moveToNext:R})}function i(S,N,Y){let R=!1;const U=Math.floor(S/10);if(e.hasLeftFocus.value&&(e.hasLeftFocus.value=!1,e.lastKeyZero.value=!1,Y=null),Y===null)return N===0?(e.lastKeyZero.value=!0,{value:0,moveToNext:R}):((e.lastKeyZero.value||N>U)&&(R=!0),e.lastKeyZero.value=!1,{value:N,moveToNext:R});const Q=Y.toString().length,q=Number.parseInt(Y.toString()+N.toString());return Q===2||q>S?(N>U&&(R=!0),{value:N,moveToNext:R}):(R=!0,{value:q,moveToNext:R})}function s(S,N){let Y=!1;if(e.hasLeftFocus.value&&(e.hasLeftFocus.value=!1,N=null),N===null)return{value:S===0?1:S,moveToNext:Y};const R=N.toString()+S.toString();return R.length>4?{value:S===0?1:S,moveToNext:Y}:(R.length===4&&(Y=!0),{value:Number.parseInt(R),moveToNext:Y})}const c=_(()=>ST[e.part]?.attrs({disabled:e.disabled.value,placeholder:e.placeholder.value,hourCycle:e.hourCycle,segmentValues:e.segmentValues.value,formatter:e.formatter})??{});function d(S){if(!Fa(S.key)||ca(S.key))return;const N=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:N});return}if(Er(S.key)){const Y=Number.parseInt(S.key),R=e.segmentValues.value.month,U=R?Qa(e.placeholder.value.set({month:R})):31,{value:Q,moveToNext:q}=l(U,Y,N);e.segmentValues.value.day=Q,q&&e.focusNext()}S.key===t.BACKSPACE&&(e.hasLeftFocus.value=!1,e.segmentValues.value.day=a(N))}function f(S){if(!Fa(S.key)||ca(S.key))return;const N=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:N});return}if(Er(S.key)){const Y=Number.parseInt(S.key),{value:R,moveToNext:U}=l(12,Y,N);e.segmentValues.value.month=R,U&&e.focusNext()}S.key===t.BACKSPACE&&(e.hasLeftFocus.value=!1,e.segmentValues.value.month=a(N))}function m(S){if(!Fa(S.key)||ca(S.key))return;const N=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:N});return}if(Er(S.key)){const Y=Number.parseInt(S.key),{value:R,moveToNext:U}=s(Y,N);e.segmentValues.value.year=R,U&&e.focusNext()}S.key===t.BACKSPACE&&(e.hasLeftFocus.value=!1,e.segmentValues.value.year=a(N))}function p(S){const N=new An(S,{hour:"numeric"}).resolvedOptions().hourCycle;return N==="h11"||N==="h12"}function h(S){const N=e.placeholder.value;if(!Fa(S.key)||ca(S.key)||!("hour"in N)||!("hour"in e.segmentValues.value))return;const Y=e.segmentValues.value.hour;if(S.key===t.ARROW_UP||S.key===t.ARROW_DOWN){const R=r({e:S,part:"hour",dateRef:e.placeholder.value,prevValue:Y});e.segmentValues.value.hour=R,"dayPeriod"in e.segmentValues.value&&R!==null&&(e.segmentValues.value.dayPeriod=R>=12?"PM":"AM");return}if(Er(S.key)){const R=Number.parseInt(S.key),U=e.hourCycle!==void 0?e.hourCycle===12:p(e.formatter.getLocale()),Q=U?12:24;let q=Y;U&&Y!==null&&(q=Y%12===0?0:Y>12?Y-12:Y);const{value:ee,moveToNext:ne}=i(Q,R,q);let fe=ee;if(U&&ee!==null){const ge=e.segmentValues.value.dayPeriod||"AM";ee===12?fe=ge==="AM"?0:12:fe=ge==="PM"?ee+12:ee}e.segmentValues.value.hour=fe,ne&&e.focusNext()}S.key===t.BACKSPACE&&(e.hasLeftFocus.value=!1,e.segmentValues.value.hour=a(Y))}function x(S){const N=e.placeholder.value;if(!Fa(S.key)||ca(S.key)||!("minute"in N)||!("minute"in e.segmentValues.value))return;const Y=e.segmentValues.value.minute;if((S.key===t.ARROW_UP||S.key===t.ARROW_DOWN)&&(e.segmentValues.value.minute=n({e:S,part:"minute",dateRef:e.placeholder.value,prevValue:Y})),Er(S.key)){const R=Number.parseInt(S.key),{value:U,moveToNext:Q}=o(R,Y);e.segmentValues.value.minute=U,Q&&e.focusNext()}S.key===t.BACKSPACE&&(e.hasLeftFocus.value=!1,e.segmentValues.value.minute=a(Y))}function k(S){const N=e.placeholder.value;if(!Fa(S.key)||ca(S.key)||!("second"in N)||!("second"in e.segmentValues.value))return;const Y=e.segmentValues.value.second;if((S.key===t.ARROW_UP||S.key===t.ARROW_DOWN)&&(e.segmentValues.value.second=n({e:S,part:"second",dateRef:e.placeholder.value,prevValue:Y})),Er(S.key)){const R=Number.parseInt(S.key),{value:U,moveToNext:Q}=o(R,Y);e.segmentValues.value.second=U,Q&&e.focusNext()}S.key===t.BACKSPACE&&(e.hasLeftFocus.value=!1,e.segmentValues.value.second=a(Y))}function y(S){if(!((!Fa(S.key)||ca(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 $(S){e.disabled.value&&S.preventDefault()}function E(S){if(S.isComposing||S.key==="Process")return;const N=e.disabled.value,Y=e.readonly.value;if(N||Y)return;if(S.key!==t.TAB&&S.preventDefault(),{day:d,month:f,year:m,hour:h,minute:x,second:k,dayPeriod:y,timeZoneName:()=>{}}[e.part](S),![t.ARROW_LEFT,t.ARROW_RIGHT].includes(S.key)&&S.key!==t.TAB&&S.key!==t.SHIFT&&Fa(S.key)&&Object.values(e.segmentValues.value).every(U=>U!==null)){const U={...e.segmentValues.value},Q=e.placeholder.value.set(U);e.modelValue.value=Q.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=Fu(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=Fu(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=Fu(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 M=null;function B(S){S.isComposing||S.preventDefault()}function z(S){const N=S.target;M=Array.from(N.childNodes,Y=>({node:Y,value:Y.nodeValue}))}function H(S){const N=S.target,Y=M;if(M=null,Y){for(const{node:U,value:Q}of Y)U.nodeValue=Q;N.replaceChildren(...Y.map(U=>U.node))}const R=S.data;if(R)for(const U of R){if(!mT.test(U))continue;const Q=It();if(!(Q instanceof HTMLElement))break;Q.dispatchEvent(new KeyboardEvent("keydown",{key:U,bubbles:!0,cancelable:!0}))}}return{handleSegmentClick:$,handleSegmentKeydown:E,handleSegmentBeforeInput:B,handleSegmentCompositionStart:z,handleSegmentCompositionEnd:H,handleSegmentFocusOut:O,attributes:c}}function ET(e){function t(l){return Array.isArray(e.date.value)?e.date.value.some(o=>rr(o,l)):e.date.value?rr(e.date.value,l):!1}const n=_(()=>{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}),a=_(()=>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:n,hasSelectedDate:a,isSelectedDateDisabled:r}}function AT(e,t){const n=t(e),a=n.compare(e),r={};return a>=7&&(r.day=1),a>=Qa(e)&&(r.month=1),n.set({...r})}function TT(e,t){const n=t(e),a=e.compare(n),r={};return a>=7&&(r.day=35),a>=Qa(e)&&(r.month=13),n.set({...r})}function DT(e,t){return t(e)}function OT(e,t){return t(e)}function MT(e){const t=of(e.locale.value),n=_(()=>{const y={calendar:e.placeholder.value.calendar.identifier};return e.placeholder.value.calendar.identifier==="gregory"&&e.placeholder.value.era==="BC"&&(y.era="short"),y}),a=P($r({dateObj:e.placeholder.value,weekStartsOn:e.weekStartsOn.value,locale:e.locale.value,fixedWeeks:e.fixedWeeks.value,numberOfMonths:e.numberOfMonths.value})),r=_(()=>a.value.map(y=>y.value));function l(y){return!r.value.some($=>kv(y,$))}const o=y=>{if(!e.maxValue.value||!a.value.length)return!1;if(e.disabled.value)return!0;const $=a.value.at(-1).value;if(!y&&!e.nextPage.value){const O=$.add({months:1}).set({day:1});return Ju(O,e.maxValue.value)}const E=AT($,y||e.nextPage.value);return Ju(E,e.maxValue.value)},i=y=>{if(!e.minValue.value||!a.value.length)return!1;if(e.disabled.value)return!0;const $=a.value[0].value;if(!y&&!e.prevPage.value){const O=$.subtract({months:1}).set({day:35});return Ja(O,e.minValue.value)}const E=TT($,y||e.prevPage.value);return Ja(E,e.minValue.value)};function s(y){return!!(e.isDateDisabled?.(y)||e.disabled.value||e.maxValue.value&&Ju(y,e.maxValue.value)||e.minValue.value&&Ja(y,e.minValue.value))}const c=y=>!!e.isDateUnavailable?.(y),d=_(()=>a.value.length?a.value[0].rows[0].map(y=>t.dayOfWeek(wn(y),e.weekdayFormat.value)):[]),f=y=>{const $=a.value[0].value;if(!y&&!e.nextPage.value){const B=$.add({months:e.pagedNavigation.value?e.numberOfMonths.value:1}),z=$r({dateObj:B,weekStartsOn:e.weekStartsOn.value,locale:e.locale.value,fixedWeeks:e.fixedWeeks.value,numberOfMonths:e.numberOfMonths.value});a.value=z,e.placeholder.value=z[0].value.set({day:1});return}const E=DT($,y||e.nextPage.value),O=$r({dateObj:E,weekStartsOn:e.weekStartsOn.value,locale:e.locale.value,fixedWeeks:e.fixedWeeks.value,numberOfMonths:e.numberOfMonths.value});a.value=O;const M={};if(!y){const B=O[0].value.compare($);B>=Qa($)&&(M.day=1),B>=365&&(M.month=1)}e.placeholder.value=O[0].value.set({...M})},m=y=>{const $=a.value[0].value;if(!y&&!e.prevPage.value){const B=$.subtract({months:e.pagedNavigation.value?e.numberOfMonths.value:1}),z=$r({dateObj:B,weekStartsOn:e.weekStartsOn.value,locale:e.locale.value,fixedWeeks:e.fixedWeeks.value,numberOfMonths:e.numberOfMonths.value});a.value=z,e.placeholder.value=z[0].value.set({day:1});return}const E=OT($,y||e.prevPage.value),O=$r({dateObj:E,weekStartsOn:e.weekStartsOn.value,locale:e.locale.value,fixedWeeks:e.fixedWeeks.value,numberOfMonths:e.numberOfMonths.value});a.value=O;const M={};if(!y){const B=$.compare(O[0].value);B>=Qa($)&&(M.day=1),B>=365&&(M.month=1)}e.placeholder.value=O[0].value.set({...M})};ze(e.placeholder,y=>{r.value.some($=>kv($,y))||(a.value=$r({dateObj:y,weekStartsOn:e.weekStartsOn.value,locale:e.locale.value,fixedWeeks:e.fixedWeeks.value,numberOfMonths:e.numberOfMonths.value}))}),ze([e.locale,e.weekStartsOn,e.fixedWeeks,e.numberOfMonths],()=>{a.value=$r({dateObj:e.placeholder.value,weekStartsOn:e.weekStartsOn.value,locale:e.locale.value,fixedWeeks:e.fixedWeeks.value,numberOfMonths:e.numberOfMonths.value})});const p=_(()=>{if(!a.value.length)return"";if(e.locale.value!==t.getLocale()&&t.setLocale(e.locale.value),a.value.length===1){const H=a.value[0].value;return`${t.fullMonthAndYear(wn(H),n.value)}`}const y=wn(a.value[0].value),$=wn(a.value.at(-1).value),E=t.fullMonth(y,n.value),O=t.fullMonth($,n.value),M=t.fullYear(y,n.value),B=t.fullYear($,n.value);return M===B?`${E} - ${O} ${B}`:`${E} ${M} - ${O} ${B}`}),h=_(()=>`${e.calendarLabel.value??"Event Date"}, ${p.value}`),x=_(()=>!(s(e.placeholder.value)||c(e.placeholder.value)||l(e.placeholder.value))),k=_(()=>{for(const y of a.value){if(e.minValue.value&&Ja(y.value,e.minValue.value))continue;const $=Qa(y.value),E=e.minValue.value&&Gd(e.minValue.value,y.value)?e.minValue.value.day:1;for(let O=E;O<=$;O++){const M=y.value.set({day:O});if(!(s(M)||c(M)))return M}}});return{isDateDisabled:s,isDateUnavailable:c,isNextButtonDisabled:o,isPrevButtonDisabled:i,grid:a,weekdays:d,visibleView:r,isOutsideVisibleView:l,formatter:t,nextPage:f,prevPage:m,headingValue:p,fullCalendarLabel:h,isPlaceholderFocusable:x,firstFocusableDate:k}}const PT={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"}},RT={role:"heading","aria-level":"2"},[Gl,IT]=Ct("CalendarRoot");var qT=oe({__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 n=e,a=t,{disabled:r,readonly:l,initialFocus:o,pagedNavigation:i,weekdayFormat:s,fixedWeeks:c,multiple:d,minValue:f,maxValue:m,numberOfMonths:p,preventDeselect:h,isDateDisabled:x,isDateUnavailable:k,calendarLabel:y,defaultValue:$,nextPage:E,prevPage:O,dir:M,locale:B,disableDaysOutsideCurrentView:z}=Gt(n),{primitiveElement:H,currentElement:S}=Fr(),N=lu(B),Y=Ta(M),R=_(()=>n.weekStartsOn??Gg(N.value)),U=Pt(n,"modelValue",a,{defaultValue:$.value,passive:n.modelValue===void 0}),Q=lf({defaultPlaceholder:n.placeholder,defaultValue:U.value,locale:n.locale}),q=Pt(n,"placeholder",a,{defaultValue:n.defaultPlaceholder??Q.copy(),passive:n.placeholder===void 0});function ee(J){q.value=J.copy()}const{fullCalendarLabel:ne,headingValue:fe,isDateDisabled:ge,isDateUnavailable:Ee,isNextButtonDisabled:be,isPrevButtonDisabled:ve,weekdays:Ae,isOutsideVisibleView:L,nextPage:pe,prevPage:G,formatter:K,grid:ie,isPlaceholderFocusable:Z,firstFocusableDate:te}=MT({locale:N,placeholder:q,weekStartsOn:R,fixedWeeks:c,numberOfMonths:p,minValue:f,maxValue:m,disabled:r,weekdayFormat:s,pagedNavigation:i,isDateDisabled:x.value,isDateUnavailable:k.value,calendarLabel:y,nextPage:E,prevPage:O}),{isInvalid:ce,isDateSelected:g,hasSelectedDate:A,isSelectedDateDisabled:D}=ET({date:U,isDateDisabled:ge,isDateUnavailable:Ee});ze(U,J=>{if(Array.isArray(J)&&J.length){const ue=J.at(-1);ue&&!Sl(q.value,ue)&&ee(ue)}else!Array.isArray(J)&&J&&!Sl(q.value,J)&&ee(J)});function re(J){if(d.value){if(!U.value)U.value=[J.copy()];else if(Array.isArray(U.value)){if(U.value.findIndex($e=>rr($e,J))===-1)U.value=[...U.value,J];else if(!h.value){const $e=U.value.filter(Se=>!rr(Se,J));if(!$e.length){q.value=J.copy(),U.value=void 0;return}U.value=$e.map(Se=>Se.copy())}}}else{if(!U.value){U.value=J.copy();return}!h.value&&Sl(U.value,J)?(q.value=J.copy(),U.value=void 0):U.value=J.copy()}}return kt(()=>{o.value&&Wg(S.value)}),IT({isDateUnavailable:Ee,dir:Y,isDateDisabled:ge,locale:N,formatter:K,modelValue:U,placeholder:q,disabled:r,initialFocus:o,pagedNavigation:i,grid:ie,weekDays:Ae,weekStartsOn:R,weekdayFormat:s,fixedWeeks:c,multiple:d,numberOfMonths:p,readonly:l,preventDeselect:h,fullCalendarLabel:ne,headingValue:fe,isInvalid:ce,isDateSelected:g,isNextButtonDisabled:be,isPrevButtonDisabled:ve,isOutsideVisibleView:L,nextPage:pe,prevPage:G,parentElement:S,onPlaceholderChange:ee,onDateChange:re,disableDaysOutsideCurrentView:z,minValue:f,maxValue:m,isPlaceholderFocusable:Z,firstFocusableDate:te,hasSelectedDate:A,isSelectedDateDisabled:D}),(J,ue)=>(v(),j(u(nt),{ref_key:"primitiveElement",ref:H,as:J.as,"as-child":J.asChild,"aria-label":u(ne),"data-readonly":u(l)?"":void 0,"data-disabled":u(r)?"":void 0,"data-invalid":u(ce)?"":void 0,dir:u(Y)},{default:F(()=>[xe(J.$slots,"default",{date:u(q),grid:u(ie),weekDays:u(Ae),weekStartsOn:R.value,locale:u(N),fixedWeeks:u(c),modelValue:u(U)}),C("div",PT,[C("div",RT,T(u(ne)),1)])]),_:3},8,["as","as-child","aria-label","data-readonly","data-disabled","data-invalid","dir"]))}}),NT=qT,LT=oe({__name:"CalendarCell",props:{date:{type:null,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"td"}},setup(e){const t=Gl();return(n,a)=>(v(),j(u(nt),{as:n.as,"as-child":n.asChild,role:"gridcell","aria-selected":u(t).isDateSelected(n.date)?!0:void 0,"aria-disabled":u(t).isDateDisabled(n.date)||u(t).isDateUnavailable?.(n.date)||u(t).disableDaysOutsideCurrentView.value,"data-disabled":u(t).isDateDisabled(n.date)||u(t).disableDaysOutsideCurrentView.value?"":void 0},{default:F(()=>[xe(n.$slots,"default")]),_:3},8,["as","as-child","aria-selected","aria-disabled","data-disabled"]))}}),BT=LT,FT=oe({__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,n=zl(),a=Gl(),{primitiveElement:r}=Fr(),l=_(()=>t.day.day.toLocaleString(a.locale.value)),o=_(()=>a.formatter.custom(wn(t.day),{weekday:"long",month:"long",day:"numeric",year:"numeric"})),i=_(()=>a.isDateUnavailable?.(t.day)??!1),s=_(()=>BS(t.day,Nn())),c=_(()=>!Gd(t.day,t.month)),d=_(()=>a.isOutsideVisibleView(t.day)),f=_(()=>a.isDateDisabled(t.day)||a.disableDaysOutsideCurrentView.value&&c.value),m=_(()=>c.value||f.value?!1:!a.disabled.value&&a.isPlaceholderFocusable.value&&rr(t.day,a.placeholder.value)?!0:(!a.hasSelectedDate.value||a.isSelectedDateDisabled.value)&&!a.isPlaceholderFocusable.value?a.firstFocusableDate.value&&rr(t.day,a.firstFocusableDate.value):!1),p=_(()=>a.isDateSelected(t.day));function h(y){a.readonly.value||a.isDateDisabled(y)||a.isDateUnavailable?.(y)||a.onDateChange(y)}function x(){f.value||h(t.day)}function k(y){if(f.value)return;y.preventDefault(),y.stopPropagation();const $=a.parentElement.value,E=7,O=a.dir.value==="rtl"?-1:1;switch(y.code){case n.ARROW_RIGHT:M(t.day,O);break;case n.ARROW_LEFT:M(t.day,-O);break;case n.ARROW_UP:M(t.day,-E);break;case n.ARROW_DOWN:M(t.day,E);break;case n.ENTER:case n.SPACE_CODE:h(t.day)}function M(B,z){const H=B.add({days:z});if(a.minValue.value&&H.compare(a.minValue.value)<0||a.maxValue.value&&H.compare(a.maxValue.value)>0)return;const S=$.querySelector(`[data-value='${H.toString()}']:not([data-outside-view])`);if(!S){if(z>0){if(a.isNextButtonDisabled())return;a.nextPage()}else{if(a.isPrevButtonDisabled())return;a.prevPage()}Ze(()=>{M(B,z)});return}if(S&&S.hasAttribute("data-disabled"))return M(H,z);a.onPlaceholderChange(H),S?.focus()}}return(y,$)=>(v(),j(u(nt),{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":p.value?!0:void 0,"data-value":y.day.toString(),"data-disabled":f.value?"":void 0,"data-unavailable":i.value?"":void 0,"data-today":s.value?"":void 0,"data-outside-view":c.value?"":void 0,"data-outside-visible-view":d.value?"":void 0,"data-focused":m.value?"":void 0,tabindex:m.value?0:c.value||f.value?void 0:-1,onClick:x,onKeydown:[tr(k,["up","down","left","right","space","enter"]),$[0]||($[0]=tr(vt(()=>{},["prevent"]),["enter"]))]},{default:F(()=>[xe(y.$slots,"default",{dayValue:l.value,disabled:f.value,today:s.value,selected:p.value,outsideView:c.value,outsideVisibleView:d.value,unavailable:i.value},()=>[we(T(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"]))}}),VT=FT,zT=oe({__name:"CalendarGrid",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"table"}},setup(e){const t=e,n=Gl(),a=_(()=>n.disabled.value?!0:void 0),r=_(()=>n.readonly.value?!0:void 0);return(l,o)=>(v(),j(u(nt),Ue(t,{tabindex:"-1",role:"application","aria-readonly":r.value,"aria-disabled":a.value,"data-readonly":r.value&&"","data-disabled":a.value&&""}),{default:F(()=>[xe(l.$slots,"default")]),_:3},16,["aria-readonly","aria-disabled","data-readonly","data-disabled"]))}}),jT=zT,UT=oe({__name:"CalendarGridBody",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"tbody"}},setup(e){const t=e;return(n,a)=>(v(),j(u(nt),lt(it(t)),{default:F(()=>[xe(n.$slots,"default")]),_:3},16))}}),HT=UT,WT=oe({__name:"CalendarGridHead",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"thead"}},setup(e){const t=e;return(n,a)=>(v(),j(u(nt),Ue(t,{"aria-hidden":"true"}),{default:F(()=>[xe(n.$slots,"default")]),_:3},16))}}),KT=WT,GT=oe({__name:"CalendarGridRow",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"tr"}},setup(e){const t=e;return(n,a)=>(v(),j(u(nt),lt(it(t)),{default:F(()=>[xe(n.$slots,"default")]),_:3},16))}}),YT=GT,JT=oe({__name:"CalendarHeadCell",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"th"}},setup(e){const t=e;return(n,a)=>(v(),j(u(nt),lt(it(t)),{default:F(()=>[xe(n.$slots,"default")]),_:3},16))}}),ZT=JT,XT=oe({__name:"CalendarHeader",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"div"}},setup(e){const t=e;return(n,a)=>(v(),j(u(nt),lt(it(t)),{default:F(()=>[xe(n.$slots,"default")]),_:3},16))}}),QT=XT,e4=oe({__name:"CalendarHeading",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"div"}},setup(e){const t=e,n=Gl();return(a,r)=>(v(),j(u(nt),Ue(t,{"data-disabled":u(n).disabled.value?"":void 0}),{default:F(()=>[xe(a.$slots,"default",{headingValue:u(n).headingValue.value},()=>[we(T(u(n).headingValue.value),1)])]),_:3},16,["data-disabled"]))}}),t4=e4,n4=oe({__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,n=_(()=>a.disabled.value||a.isNextButtonDisabled(t.nextPage)),a=Gl();function r(){n.value||a.nextPage(t.nextPage)}return(l,o)=>(v(),j(u(nt),{as:t.as,"as-child":t.asChild,"aria-label":"Next page",type:t.as==="button"?"button":void 0,"aria-disabled":n.value||void 0,"data-disabled":n.value||void 0,disabled:n.value,onClick:r},{default:F(()=>[xe(l.$slots,"default",{disabled:n.value},()=>[o[0]||(o[0]=we(" Next page "))])]),_:3},8,["as","as-child","type","aria-disabled","data-disabled","disabled"]))}}),a4=n4,r4=oe({__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,n=_(()=>a.disabled.value||a.isPrevButtonDisabled(t.prevPage)),a=Gl();function r(){n.value||a.prevPage(t.prevPage)}return(l,o)=>(v(),j(u(nt),{"aria-label":"Previous page",as:t.as,"as-child":t.asChild,type:t.as==="button"?"button":void 0,"aria-disabled":n.value||void 0,"data-disabled":n.value||void 0,disabled:n.value,onClick:r},{default:F(()=>[xe(l.$slots,"default",{disabled:n.value},()=>[o[0]||(o[0]=we(" Prev page "))])]),_:3},8,["as","as-child","type","aria-disabled","data-disabled","disabled"]))}}),l4=r4;const[o4,i4]=Ct("RovingFocusGroup");var s4=oe({__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:n}){const a=e,r=n,{loop:l,orientation:o,dir:i}=Gt(a),s=Ta(i),c=Pt(a,"currentTabStopId",r,{defaultValue:a.defaultCurrentTabStopId,passive:a.currentTabStopId===void 0}),d=P(!1),f=P(!1),m=P(0),{getItems:p,CollectionSlot:h}=ff({isProvider:!0});function x(y){const $=!f.value;if(y.currentTarget&&y.target===y.currentTarget&&$&&!d.value){const E=new CustomEvent(WA,KA);if(y.currentTarget.dispatchEvent(E),r("entryFocus",E),!E.defaultPrevented){const O=p().map(S=>S.ref).filter(S=>S.dataset.disabled!==""),M=O.find(S=>S.getAttribute("data-active")===""),B=O.find(S=>S.getAttribute("data-highlighted")===""),z=O.find(S=>S.id===c.value),H=[M,B,z,...O].filter(Boolean);ab(H,a.preventScrollOnEntryFocus)}}f.value=!1}function k(){setTimeout(()=>{f.value=!1},1)}return t({getItems:p}),i4({loop:l,dir:s,orientation:o,currentTabStopId:c,onItemFocus:y=>{c.value=y},onItemShiftTab:()=>{d.value=!0},onFocusableItemAdd:()=>{m.value++},onFocusableItemRemove:()=>{m.value--}}),(y,$)=>(v(),j(u(h),null,{default:F(()=>[V(u(nt),{tabindex:d.value||m.value===0?-1:0,"data-orientation":u(o),as:y.as,"as-child":y.asChild,dir:u(s),style:{outline:"none"},onMousedown:$[0]||($[0]=E=>f.value=!0),onMouseup:k,onFocus:x,onBlur:$[1]||($[1]=E=>d.value=!1)},{default:F(()=>[xe(y.$slots,"default")]),_:3},8,["tabindex","data-orientation","as","as-child","dir"])]),_:3}))}}),Cf=s4,u4=oe({__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,n=o4(),a=Br(),r=_(()=>t.tabStopId||a),l=_(()=>n.currentTabStopId.value===r.value),{getItems:o,CollectionItem:i}=ff();kt(()=>{t.focusable&&n.onFocusableItemAdd()}),Ea(()=>{t.focusable&&n.onFocusableItemRemove()});function s(c){if(c.key==="Tab"&&c.shiftKey){n.onItemShiftTab();return}if(c.target!==c.currentTarget)return;const d=JA(c,n.orientation.value,n.dir.value);if(d!==void 0){if(c.metaKey||c.ctrlKey||c.altKey||!t.allowShiftKey&&c.shiftKey)return;c.preventDefault();let f=[...o().map(m=>m.ref).filter(m=>m.dataset.disabled!=="")];if(d==="last")f.reverse();else if(d==="prev"||d==="next"){d==="prev"&&f.reverse();const m=f.indexOf(c.currentTarget);f=n.loop.value?ZA(f,m+1):f.slice(m+1)}Ze(()=>ab(f))}}return(c,d)=>(v(),j(u(i),null,{default:F(()=>[V(u(nt),{tabindex:l.value?0:-1,"data-orientation":u(n).orientation.value,"data-active":c.active?"":void 0,"data-disabled":c.focusable?void 0:"",as:c.as,"as-child":c.asChild,onMousedown:d[0]||(d[0]=f=>{c.focusable?u(n).onItemFocus(r.value):f.preventDefault()}),onFocus:d[1]||(d[1]=f=>u(n).onItemFocus(r.value)),onKeydown:s},{default:F(()=>[xe(c.$slots,"default")]),_:3},8,["tabindex","data-orientation","data-active","data-disabled","as","as-child"])]),_:3}))}}),Sf=u4;const[c4]=Ct("CheckboxGroupRoot");function Ef(e){return e==="indeterminate"}function kb(e){return Ef(e)?"indeterminate":e?"checked":"unchecked"}const[d4,f4]=Ct("CheckboxRoot");var p4=oe({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 n=e,a=t,{forwardRef:r,currentElement:l}=tt(),o=c4(null),i=Pt(n,"modelValue",a,{defaultValue:n.defaultValue??n.falseValue,passive:n.modelValue===void 0}),s=_(()=>o?.disabled.value||n.disabled),c=_(()=>Uo(i.value,n.trueValue)),d=_(()=>vn(o?.modelValue.value)?i.value==="indeterminate"?"indeterminate":c.value:bv(o.modelValue.value,n.value));function f(){if(vn(o?.modelValue.value))i.value==="indeterminate"?i.value=n.trueValue:i.value=c.value?n.falseValue:n.trueValue;else{const h=[...o.modelValue.value||[]];if(bv(h,n.value)){const x=h.findIndex(k=>Uo(k,n.value));h.splice(x,1)}else h.push(n.value);o.modelValue.value=h}}const m=sf(l),p=_(()=>n.id&&l.value?document.querySelector(`[for="${n.id}"]`)?.innerText:void 0);return f4({disabled:s,state:d}),(h,x)=>(v(),j(zt(u(o)?.rovingFocus.value?u(Sf):u(nt)),Ue(h.$attrs,{id:h.id,ref:u(r),role:"checkbox","as-child":h.asChild,as:h.as,type:h.as==="button"?"button":void 0,"aria-checked":u(Ef)(d.value)?"mixed":d.value,"aria-required":h.required,"aria-label":h.$attrs["aria-label"]||p.value,"data-state":u(kb)(d.value),"data-disabled":s.value?"":void 0,disabled:s.value,focusable:u(o)?.rovingFocus.value?!s.value:void 0,onKeydown:tr(vt(()=>{},["prevent"]),["enter"]),onClick:f}),{default:F(()=>[xe(h.$slots,"default",{modelValue:u(i),state:d.value}),u(m)&&h.name&&!u(o)?(v(),j(u(vf),{key:0,type:"checkbox",checked:!!d.value,name:h.name,value:h.value,disabled:s.value,required:h.required},null,8,["checked","name","value","disabled","required"])):ae("v-if",!0)]),_:3},16,["id","as-child","as","type","aria-checked","aria-required","aria-label","data-state","data-disabled","disabled","focusable","onKeydown"]))}}),v4=p4,m4=oe({__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}=tt(),n=d4();return(a,r)=>(v(),j(u(vi),{present:a.forceMount||u(Ef)(u(n).state.value)||u(n).state.value===!0},{default:F(()=>[V(u(nt),Ue({ref:u(t),"data-state":u(kb)(u(n).state.value),"data-disabled":u(n).disabled.value?"":void 0,style:{pointerEvents:"none"},"as-child":a.asChild,as:a.as},a.$attrs),{default:F(()=>[xe(a.$slots,"default")]),_:3},16,["data-state","data-disabled","as-child","as"])]),_:3},8,["present"]))}}),h4=m4,y4=oe({__name:"MenuAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,a)=>(v(),j(u(mf),lt(it(t)),{default:F(()=>[xe(n.$slots,"default")]),_:3},16))}}),g4=y4;function b4(){const e=P(!1);return kt(()=>{Ll("keydown",()=>{e.value=!0},{capture:!0,passive:!0}),Ll(["pointerdown","pointermove"],()=>{e.value=!1},{capture:!0,passive:!0})}),e}const _4=vg(b4),[fu,x4]=Ct(["MenuRoot","MenuSub"],"MenuContext"),[Af,k4]=Ct("MenuRoot");var w4=oe({__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 n=e,a=t,{modal:r,dir:l}=Gt(n),o=Ta(l),i=Pt(n,"open",a),s=P(),c=_4();return x4({open:i,onOpenChange:d=>{i.value=d},content:s,onContentChange:d=>{s.value=d}}),k4({onClose:()=>{i.value=!1},isUsingKeyboardRef:c,dir:o,modal:r}),(d,f)=>(v(),j(u(lb),null,{default:F(()=>[xe(d.$slots,"default")]),_:3}))}}),$4=w4;const[wb,C4]=Ct("MenuContent");var S4=oe({__name:"MenuContentImpl",props:Kh({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}},{...hb}),emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","entryFocus","openAutoFocus","closeAutoFocus","dismiss"],setup(e,{emit:t}){const n=e,a=t,r=fu(),l=Af(),{trapFocus:o,disableOutsidePointerEvents:i,loop:s}=Gt(n);Yg(),Kd(i.value);const c=P(""),d=P(0),f=P(0),m=P(null),p=P("right"),h=P(0),x=P(null),k=P(),{forwardRef:y,currentElement:$}=tt(),{handleTypeaheadSearch:E}=zE(),O=P();function M(q){const ee=xv(q,O.value||It(),$.value,{loop:s.value,arrowKeyOptions:"vertical",dir:l?.dir.value,focus:!1,attributeName:"[data-reka-collection-item]:not([data-disabled])"});ee&&(O.value=ee,ee.scrollIntoView({block:"nearest"}))}function B(){O.value&&O.value.click()}const z=P(),H=P();ze(O,q=>{H.value&&(q===void 0||q!==H.value.trigger.value)&&(H.value.onOpenChange(!1),H.value=void 0)}),ze($,q=>{r.onContentChange(q)}),Ea(()=>{window.clearTimeout(d.value)});function S(q){return p.value===m.value?.side&&pA(q,m.value?.area)}async function N(q){a("openAutoFocus",q),!q.defaultPrevented&&(q.preventDefault(),$.value?.focus({preventScroll:!0}))}function Y(q){if(q.defaultPrevented)return;const ee=q.target,ne=ee.closest("[data-reka-menu-content]")===q.currentTarget,fe=["input","textarea"].includes(ee.tagName.toLowerCase()),ge=q.ctrlKey||q.altKey||q.metaKey,Ee=q.key.length===1,be=xv(q,It(),$.value,{loop:s.value,arrowKeyOptions:"vertical",dir:l?.dir.value,focus:!0,attributeName:"[data-reka-collection-item]:not([data-disabled])"});if(be)return be?.focus();if(q.code==="Space")return;const ve=k.value?.getItems()??[];if(ne&&(q.key==="Tab"&&q.preventDefault(),!ge&&Ee&&!fe&&E(q.key,ve)),q.target!==$.value||!cA.includes(q.key))return;q.preventDefault();const Ae=[...ve.map(L=>L.ref)];eb.includes(q.key)&&Ae.reverse(),dA(Ae)}function R(q){q?.currentTarget?.contains?.(q.target)||(window.clearTimeout(d.value),c.value="")}function U(q){if(!bs(q))return;const ee=q.target,ne=h.value!==q.clientX;if(q?.currentTarget?.contains(ee)&&ne){const fe=q.clientX>h.value?"right":"left";p.value=fe,h.value=q.clientX}}function Q(q){bs(q)&&z.value&&z.value.focus()}return C4({onItemEnter:q=>!!S(q),onItemLeave:q=>S(q)?!0:(["INPUT","TEXTAREA"].includes(It()?.tagName||"")||$.value?.focus(),x.value=null,!1),onTriggerLeave:q=>!!S(q),searchRef:c,highlightedElement:O,onKeydownNavigation:M,onKeydownEnter:B,filterElement:z,onFilterElementChange:q=>{z.value=q},activeSubmenuContext:H,pointerGraceTimerRef:f,onPointerGraceIntentChange:q=>{m.value=q}}),(q,ee)=>(v(),j(u(df),{"as-child":"",trapped:u(o),onMountAutoFocus:N,onUnmountAutoFocus:ee[7]||(ee[7]=ne=>a("closeAutoFocus",ne))},{default:F(()=>[V(u(cf),{"as-child":"","disable-outside-pointer-events":u(i),onEscapeKeyDown:ee[2]||(ee[2]=ne=>a("escapeKeyDown",ne)),onPointerDownOutside:ee[3]||(ee[3]=ne=>a("pointerDownOutside",ne)),onFocusOutside:ee[4]||(ee[4]=ne=>a("focusOutside",ne)),onInteractOutside:ee[5]||(ee[5]=ne=>a("interactOutside",ne)),onDismiss:ee[6]||(ee[6]=ne=>a("dismiss"))},{default:F(()=>[V(u(Cf),{ref_key:"rovingFocusGroupRef",ref:k,"current-tab-stop-id":x.value,"onUpdate:currentTabStopId":ee[0]||(ee[0]=ne=>x.value=ne),"as-child":"",orientation:"vertical",dir:u(l).dir.value,loop:u(s),onEntryFocus:ee[1]||(ee[1]=ne=>{a("entryFocus",ne),u(l).isUsingKeyboardRef.value||ne.preventDefault()})},{default:F(()=>[V(u(yb),{ref:u(y),role:"menu",as:q.as,"as-child":q.asChild,"aria-orientation":"vertical","data-reka-menu-content":"","data-state":u(tb)(u(r).open.value),dir:u(l).dir.value,side:q.side,"side-offset":q.sideOffset,align:q.align,"align-offset":q.alignOffset,"avoid-collisions":q.avoidCollisions,"collision-boundary":q.collisionBoundary,"collision-padding":q.collisionPadding,"arrow-padding":q.arrowPadding,"prioritize-position":q.prioritizePosition,"position-strategy":q.positionStrategy,"update-position-strategy":q.updatePositionStrategy,sticky:q.sticky,"hide-when-detached":q.hideWhenDetached,reference:q.reference,onKeydown:Y,onBlur:R,onPointermove:U,onPointerenter:Q},{default:F(()=>[xe(q.$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"]))}}),$b=S4,E4=oe({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,n=wb(),{forwardRef:a,currentElement:r}=tt(),{CollectionItem:l}=ff(),o=P(!1),i=_(()=>o.value||r.value!=null&&n.highlightedElement.value===r.value);async function s(d){if(!(d.defaultPrevented||!bs(d))){if(t.disabled)n.onItemLeave(d);else if(!n.onItemEnter(d)){const m=d.currentTarget;n.highlightedElement.value=m,["INPUT","TEXTAREA"].includes(It()?.tagName||"")||m.focus({preventScroll:!0})}}}async function c(d){if(await Ze(),d.defaultPrevented||!bs(d)||n.highlightedElement.value!==r.value)return;!n.onItemLeave(d)&&n.highlightedElement.value===r.value&&(n.highlightedElement.value=void 0)}return(d,f)=>(v(),j(u(l),{value:{textValue:d.textValue}},{default:F(()=>[V(u(nt),Ue({ref:u(a),role:"menuitem",tabindex:"-1"},d.$attrs,{as:d.as,"as-child":d.asChild,"aria-disabled":d.disabled||void 0,"data-disabled":d.disabled?"":void 0,"data-highlighted":i.value?"":void 0,onPointermove:s,onPointerleave:c,onFocus:f[0]||(f[0]=async m=>{await Ze(),!(m.defaultPrevented||d.disabled)&&(o.value=!0,u(n).highlightedElement.value=m.currentTarget)}),onBlur:f[1]||(f[1]=async m=>{await Ze(),!m.defaultPrevented&&(o.value=!1)})}),{default:F(()=>[xe(d.$slots,"default")]),_:3},16,["as","as-child","aria-disabled","data-disabled","data-highlighted"])]),_:3},8,["value"]))}}),A4=E4,T4=oe({__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 n=e,a=t,{forwardRef:r,currentElement:l}=tt(),o=Af(),i=wb(),s=P(!1);async function c(){const d=l.value;if(!n.disabled&&d){const f=new CustomEvent(sA,{bubbles:!0,cancelable:!0});a("select",f),await Ze(),f.defaultPrevented?s.value=!1:o.onClose()}}return(d,f)=>(v(),j(A4,Ue(n,{ref:u(r),onClick:c,onPointerdown:f[0]||(f[0]=()=>{s.value=!0}),onPointerup:f[1]||(f[1]=async m=>{await Ze(),!m.defaultPrevented&&(s.value||m.currentTarget?.click())}),onKeydown:f[2]||(f[2]=async m=>{const p=u(i).searchRef.value!=="";d.disabled||p&&m.key===" "||u(rd).includes(m.key)&&(m.currentTarget?.click(),m.preventDefault())})}),{default:F(()=>[xe(d.$slots,"default")]),_:3},16))}}),D4=T4,O4=oe({__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 n=e,a=t,r=Da(n,a),l=fu(),{forwardRef:o,currentElement:i}=tt();return uf(i),(s,c)=>(v(),j($b,Ue(u(r),{ref:u(o),"trap-focus":u(l).open.value,"disable-outside-pointer-events":u(l).open.value,"disable-outside-scroll":!0,onDismiss:c[0]||(c[0]=d=>u(l).onOpenChange(!1)),onFocusOutside:c[1]||(c[1]=vt(d=>a("focusOutside",d),["prevent"]))}),{default:F(()=>[xe(s.$slots,"default")]),_:3},16,["trap-focus","disable-outside-pointer-events"]))}}),M4=O4,P4=oe({__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=Da(e,t),l=fu();return(o,i)=>(v(),j($b,Ue(u(r),{"trap-focus":!1,"disable-outside-pointer-events":!1,"disable-outside-scroll":!1,onDismiss:i[0]||(i[0]=s=>u(l).onOpenChange(!1))}),{default:F(()=>[xe(o.$slots,"default")]),_:3},16))}}),R4=P4,I4=oe({__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=Da(e,t),l=fu(),o=Af();return(i,s)=>(v(),j(u(vi),{present:i.forceMount||u(l).open.value},{default:F(()=>[u(o).modal.value?(v(),j(M4,lt(Ue({key:0},{...i.$attrs,...u(r)})),{default:F(()=>[xe(i.$slots,"default")]),_:3},16)):(v(),j(R4,lt(Ue({key:1},{...i.$attrs,...u(r)})),{default:F(()=>[xe(i.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),q4=I4,N4=oe({__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(n,a)=>(v(),j(u(ou),lt(it(t)),{default:F(()=>[xe(n.$slots,"default")]),_:3},16))}}),L4=N4,B4=oe({__name:"MenuSeparator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,a)=>(v(),j(u(nt),Ue(t,{role:"separator","aria-orientation":"horizontal"}),{default:F(()=>[xe(n.$slots,"default")]),_:3},16))}}),F4=B4;const[V4,z4]=Ct("DateFieldRoot");var j4=oe({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:n}){const a=e,r=n,{disabled:l,readonly:o,isDateUnavailable:i,granularity:s,defaultValue:c,dir:d,locale:f}=Gt(a),m=lu(f),p=Ta(d),h=of(m.value,{hourCycle:Ko(a.hourCycle)}),{primitiveElement:x,currentElement:k}=Fr(),y=P(new Set);kt(()=>{sm(k.value).forEach(L=>y.value.add(L))});const $=Pt(a,"modelValue",r,{defaultValue:c.value,passive:a.modelValue===void 0}),E=lf({defaultPlaceholder:a.placeholder,granularity:s.value,defaultValue:$.value,locale:a.locale}),O=Pt(a,"placeholder",r,{defaultValue:a.defaultPlaceholder??E.copy(),passive:a.placeholder===void 0}),M=_(()=>Hg(a)),B=_(()=>a.granularity?nd(O.value)?a.granularity:"day":nd(O.value)?"minute":"day"),z=_(()=>$.value?!!(i.value?.($.value)||a.minValue&&Ja($.value,a.minValue)||a.maxValue&&Ja(a.maxValue,$.value)):!1),H=fT(B.value),S=P($.value?{...im({value:$.value,formatter:h})}:{...H}),N=_(()=>_b({granularity:B.value,dateRef:O.value,formatter:h,hideTimeZone:a.hideTimeZone,hourCycle:a.hourCycle,segmentValues:S.value,locale:m})),Y=_(()=>N.value.arr),R=_(()=>Y.value.filter(({part:L})=>L!=="literal"));ze(m,L=>{h.getLocale()!==L&&(h.setLocale(L),Ze(()=>{y.value.clear(),sm(k.value).forEach(pe=>y.value.add(pe))}))}),ze($,L=>{!vn(L)&&O.value.compare(L)!==0&&(O.value=L.copy())}),ze([$,m],([L])=>{vn(L)?Object.values(S.value).every(pe=>pe!==null)&&vn(L)&&(S.value={...H}):S.value={...im({value:L,formatter:h})}});const U=P(null),Q=_(()=>Array.from(y.value).findIndex(L=>L.getAttribute("data-reka-date-field-segment")===U.value?.getAttribute("data-reka-date-field-segment"))),q=_(()=>{const L=p.value==="rtl"?-1:1;return(L<0?Q.value<0:Q.value>y.value.size-1)?null:Array.from(y.value)[Q.value+L]}),ee=_(()=>{const L=p.value==="rtl"?-1:1;return(L>0?Q.value<0:Q.value>y.value.size-1)?null:Array.from(y.value)[Q.value-L]}),ne=_(()=>Kg(B.value)),fe=_(()=>Zu($.value,B.value)),ge=_(()=>a.maxValue?Zu(a.maxValue,B.value):void 0),Ee=_(()=>a.minValue?Zu(a.minValue,B.value):void 0),be=zl();function ve(L){L.isComposing||ca(L.key)&&(L.key===be.ARROW_LEFT&&ee.value?.focus(),L.key===be.ARROW_RIGHT&&q.value?.focus())}function Ae(L){U.value=L}return z4({isDateUnavailable:i.value,locale:m,modelValue:$,placeholder:O,disabled:l,formatter:h,hourCycle:a.hourCycle,step:M,readonly:o,segmentValues:S,isInvalid:z,segmentContents:R,elements:y,setFocusedElement:Ae,focusNext(){q.value?.focus()}}),t({setFocusedElement:Ae}),(L,pe)=>(v(),j(u(nt),Ue(L.$attrs,{ref_key:"primitiveElement",ref:x,role:"group","aria-disabled":u(l)?!0:void 0,"data-disabled":u(l)?"":void 0,"data-readonly":u(o)?"":void 0,"data-invalid":z.value?"":void 0,dir:u(p),onKeydown:tr(ve,["left","right"])}),{default:F(()=>[xe(L.$slots,"default",{modelValue:u($),segments:Y.value,isInvalid:z.value}),V(u(pf),{id:L.id,as:"input",type:ne.value,feature:"focusable",tabindex:"-1",value:fe.value,name:L.name,disabled:u(l),required:L.required,max:ge.value,min:Ee.value,onFocus:pe[0]||(pe[0]=G=>Array.from(y.value)?.[0]?.focus())},null,8,["id","type","value","name","disabled","required","max","min"])]),_:3},16,["aria-disabled","data-disabled","data-readonly","data-invalid","dir"]))}}),U4=j4,H4=oe({__name:"DateFieldInput",props:{part:{type:null,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,n=V4(),a=P(!0),r=P(!1),{handleSegmentClick:l,handleSegmentKeydown:o,handleSegmentBeforeInput:i,handleSegmentCompositionStart:s,handleSegmentCompositionEnd:c,attributes:d}=xb({hasLeftFocus:a,lastKeyZero:r,placeholder:n.placeholder,hourCycle:n.hourCycle,step:n.step,segmentValues:n.segmentValues,formatter:n.formatter,part:t.part,disabled:n.disabled,readonly:n.readonly,focusNext:n.focusNext,modelValue:n.modelValue}),f=_(()=>n.disabled.value),m=_(()=>n.readonly.value),p=_(()=>n.isInvalid.value);return(h,x)=>(v(),j(u(nt),Ue({as:h.as,"as-child":h.asChild},u(d),{contenteditable:f.value||m.value?!1:h.part!=="literal","data-reka-date-field-segment":h.part,"aria-disabled":f.value?!0:void 0,"aria-readonly":m.value?!0:void 0,"data-disabled":f.value?"":void 0,"data-invalid":p.value?"":void 0,"aria-invalid":p.value?!0:void 0},Wh(h.part!=="literal"?{mousedown:u(l),keydown:u(o),beforeinput:u(i),compositionstart:u(s),compositionend:u(c),focusout:()=>{a.value=!0},focusin:k=>{u(n).setFocusedElement(k.target)}}:{})),{default:F(()=>[xe(h.$slots,"default")]),_:3},16,["as","as-child","contenteditable","data-reka-date-field-segment","aria-disabled","aria-readonly","data-disabled","data-invalid","aria-invalid"]))}}),W4=H4;const[Yl,K4]=Ct("PopoverRoot");var G4=oe({__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 n=e,a=t,{modal:r}=Gt(n),l=Pt(n,"open",a,{defaultValue:n.defaultOpen,passive:n.open===void 0});return K4({contentId:"",triggerId:"",modal:r,open:l,onOpenChange:s=>{l.value=s},onOpenToggle:()=>{l.value=!l.value},triggerElement:P(),hasCustomAnchor:P(!1)}),(s,c)=>(v(),j(u(lb),null,{default:F(()=>[xe(s.$slots,"default",{open:u(l),close:()=>l.value=!1})]),_:3}))}}),Cb=G4,Y4=oe({__name:"PopoverAnchor",props:{reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;tt();const n=Yl();return Vh(()=>{n.hasCustomAnchor.value=!0}),Ea(()=>{n.hasCustomAnchor.value=!1}),(a,r)=>(v(),j(u(mf),lt(it(t)),{default:F(()=>[xe(a.$slots,"default")]),_:3},16))}}),J4=Y4;const[Tf,Z4]=Ct("DatePickerRoot");var X4=oe({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 n=e,a=t,{locale:r,disabled:l,readonly:o,pagedNavigation:i,weekdayFormat:s,fixedWeeks:c,numberOfMonths:d,preventDeselect:f,isDateDisabled:m,isDateUnavailable:p,defaultOpen:h,modal:x,id:k,name:y,required:$,minValue:E,maxValue:O,granularity:M,hideTimeZone:B,hourCycle:z,defaultValue:H,dir:S,step:N,closeOnSelect:Y}=Gt(n),R=Ta(S),U=lu(r),Q=_(()=>n.weekStartsOn??Gg(U.value)),q=Pt(n,"modelValue",a,{defaultValue:H.value,passive:n.modelValue===void 0}),ee=_(()=>lf({defaultPlaceholder:n.placeholder,granularity:n.granularity,defaultValue:q.value,locale:U.value})),ne=Pt(n,"placeholder",a,{defaultValue:n.defaultPlaceholder??ee.value.copy(),passive:n.placeholder===void 0}),fe=Pt(n,"open",a,{defaultValue:h.value,passive:n.open===void 0}),ge=P();function Ee(be){return"hour"in be?be.set({hour:0,minute:0,second:0,millisecond:0}):be}return ze(q,be=>{be&&be.compare(ne.value)!==0?ne.value=be.copy():!be&&"hour"in ne.value&&(ne.value=Ee(ne.value)),Y.value&&(fe.value=!1)}),Z4({isDateUnavailable:p.value,isDateDisabled:m.value,locale:U,disabled:l,pagedNavigation:i,weekStartsOn:Q,weekdayFormat:s,fixedWeeks:c,numberOfMonths:d,readonly:o,preventDeselect:f,modelValue:q,placeholder:ne,defaultOpen:h,modal:x,open:fe,id:k,name:y,required:$,minValue:E,maxValue:O,granularity:M,hideTimeZone:B,hourCycle:z,dateFieldRef:ge,dir:R,step:N,onDateChange(be){be?q.value&&!f.value&&be&&q.value.compare(be)===0?q.value=void 0:q.value=be.copy():q.value=void 0},onPlaceholderChange(be){ne.value=be.copy()},closeOnSelect:Y}),(be,ve)=>(v(),j(u(Cb),{open:u(fe),"onUpdate:open":ve[0]||(ve[0]=Ae=>_t(fe)?fe.value=Ae:null),"default-open":u(h),modal:u(x)},{default:F(()=>[xe(be.$slots,"default")]),_:3},8,["open","default-open","modal"]))}}),Q4=X4,eD=oe({__name:"DatePickerCalendar",setup(e){const t=Tf();return(n,a)=>(v(),j(u(NT),Ue({isDateDisabled:u(t).isDateDisabled,isDateUnavailable:u(t).isDateUnavailable,minValue:u(t).minValue.value,maxValue:u(t).maxValue.value,locale:u(t).locale.value,disabled:u(t).disabled.value,pagedNavigation:u(t).pagedNavigation.value,weekStartsOn:u(t).weekStartsOn.value,weekdayFormat:u(t).weekdayFormat.value,fixedWeeks:u(t).fixedWeeks.value,numberOfMonths:u(t).numberOfMonths.value,readonly:u(t).readonly.value,preventDeselect:u(t).preventDeselect.value,dir:u(t).dir.value},{"model-value":u(t).modelValue.value,placeholder:u(t).placeholder.value,multiple:!1,"onUpdate:modelValue":a[0]||(a[0]=r=>{r&&u(t).modelValue.value&&u(Sl)(r,u(t).modelValue.value)||u(t).onDateChange(r)}),"onUpdate:placeholder":a[1]||(a[1]=r=>{u(Sl)(r,u(t).placeholder.value)||u(t).onPlaceholderChange(r)})}),{default:F(({weekDays:r,grid:l,date:o,weekStartsOn:i,locale:s,fixedWeeks:c})=>[xe(n.$slots,"default",{date:o,grid:l,weekDays:r,weekStartsOn:i,locale:s,fixedWeeks:c})]),_:3},16,["model-value","placeholder"]))}}),tD=eD,nD=oe({__name:"DatePickerCell",props:{date:{type:null,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,a)=>(v(),j(u(BT),lt(it(t)),{default:F(()=>[xe(n.$slots,"default")]),_:3},16))}}),aD=nD,rD=oe({__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(n,a)=>(v(),j(u(VT),lt(it(t)),{default:F(r=>[xe(n.$slots,"default",lt(it(r)))]),_:3},16))}}),lD=rD,oD=oe({__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 n=e,a=t,r=Jg(CS(n,"trapFocus","disableOutsidePointerEvents")),{forwardRef:l}=tt(),o=Yl();return Yg(),(i,s)=>(v(),j(u(df),{"as-child":"",loop:"",trapped:i.trapFocus,onMountAutoFocus:s[5]||(s[5]=c=>a("openAutoFocus",c)),onUnmountAutoFocus:s[6]||(s[6]=c=>a("closeAutoFocus",c))},{default:F(()=>[V(u(cf),{"as-child":"","disable-outside-pointer-events":i.disableOutsidePointerEvents,onPointerDownOutside:s[0]||(s[0]=c=>a("pointerDownOutside",c)),onInteractOutside:s[1]||(s[1]=c=>a("interactOutside",c)),onEscapeKeyDown:s[2]||(s[2]=c=>a("escapeKeyDown",c)),onFocusOutside:s[3]||(s[3]=c=>a("focusOutside",c)),onDismiss:s[4]||(s[4]=c=>u(o).onOpenChange(!1))},{default:F(()=>[V(u(yb),Ue(u(r),{id:u(o).contentId,ref:u(l),"data-state":u(o).open.value?"open":"closed","aria-labelledby":u(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(()=>[xe(i.$slots,"default")]),_:3},16,["id","data-state","aria-labelledby"])]),_:3},8,["disable-outside-pointer-events"])]),_:3},8,["trapped"]))}}),Sb=oD,iD=oe({__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 n=e,a=t,r=Yl(),l=P(!1);Kd(!0);const o=Da(n,a),{forwardRef:i,currentElement:s}=tt();return uf(s),(c,d)=>(v(),j(Sb,Ue(u(o),{ref:u(i),"trap-focus":u(r).open.value,"disable-outside-pointer-events":"",onCloseAutoFocus:d[0]||(d[0]=vt(f=>{a("closeAutoFocus",f),l.value||u(r).triggerElement.value?.focus()},["prevent"])),onPointerDownOutside:d[1]||(d[1]=f=>{a("pointerDownOutside",f);const m=f.detail.originalEvent,p=m.button===0&&m.ctrlKey===!0,h=m.button===2||p;l.value=h}),onFocusOutside:d[2]||(d[2]=vt(()=>{},["prevent"]))}),{default:F(()=>[xe(c.$slots,"default")]),_:3},16,["trap-focus"]))}}),sD=iD,uD=oe({__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 n=e,a=t,r=Yl(),l=P(!1),o=P(!1),i=Da(n,a);return(s,c)=>(v(),j(Sb,Ue(u(i),{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:c[0]||(c[0]=d=>{a("closeAutoFocus",d),d.defaultPrevented||(l.value||u(r).triggerElement.value?.focus(),d.preventDefault()),l.value=!1,o.value=!1}),onInteractOutside:c[1]||(c[1]=async d=>{a("interactOutside",d),d.defaultPrevented||(l.value=!0,d.detail.originalEvent.type==="pointerdown"&&(o.value=!0));const f=d.target;u(r).triggerElement.value?.contains(f)&&d.preventDefault(),d.detail.originalEvent.type==="focusin"&&o.value&&d.preventDefault()})}),{default:F(()=>[xe(s.$slots,"default")]),_:3},16))}}),cD=uD,dD=oe({__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 n=e,a=t,r=Yl(),l=Da(n,a),{forwardRef:o}=tt();return r.contentId||=Br(void 0,"reka-popover-content"),(i,s)=>(v(),j(u(vi),{present:i.forceMount||u(r).open.value},{default:F(()=>[u(r).modal.value?(v(),j(sD,Ue({key:0},u(l),{ref:u(o)}),{default:F(()=>[xe(i.$slots,"default")]),_:3},16)):(v(),j(cD,Ue({key:1},u(l),{ref:u(o)}),{default:F(()=>[xe(i.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),Eb=dD,fD=oe({__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(n,a)=>(v(),j(u(ou),lt(it(t)),{default:F(()=>[xe(n.$slots,"default")]),_:3},16))}}),Ab=fD,pD=oe({__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 n=e,a=t,r=_(()=>({...n,portal:void 0})),l=Da(r,a);return(o,i)=>(v(),j(u(Ab),lt(it(o.portal)),{default:F(()=>[V(u(Eb),Ue({...u(l),...o.$attrs},{onOpenAutoFocus:i[0]||(i[0]=s=>{a("openAutoFocus",s),!s.defaultPrevented&&s.target&&(u(Wg)(s.target),s.preventDefault())})}),{default:F(()=>[xe(o.$slots,"default")]),_:3},16)]),_:3},16))}}),vD=pD,mD=oe({__name:"DatePickerField",setup(e){const t=Tf();return(n,a)=>(v(),j(u(U4),Ue({ref:u(t).dateFieldRef,"model-value":u(t).modelValue.value,placeholder:u(t).placeholder.value},{id:u(t).id.value,name:u(t).name.value,disabled:u(t).disabled.value,minValue:u(t).minValue.value,maxValue:u(t).maxValue.value,readonly:u(t).readonly.value,hourCycle:u(t).hourCycle.value,granularity:u(t).granularity.value,hideTimeZone:u(t).hideTimeZone.value,locale:u(t).locale.value,isDateUnavailable:u(t).isDateUnavailable,required:u(t).required.value,dir:u(t).dir.value,step:u(t).step.value},{"onUpdate:modelValue":a[0]||(a[0]=r=>{r&&u(t).modelValue.value&&r.compare(u(t).modelValue.value)===0||u(t).onDateChange(r)}),"onUpdate:placeholder":a[1]||(a[1]=r=>{r.compare(u(t).placeholder.value)!==0&&u(t).onPlaceholderChange(r)})}),{default:F(({segments:r,modelValue:l})=>[xe(n.$slots,"default",{segments:r,modelValue:l})]),_:3},16,["model-value","placeholder"]))}}),hD=mD,yD=oe({__name:"DatePickerGrid",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,a)=>(v(),j(u(jT),lt(it(t)),{default:F(()=>[xe(n.$slots,"default")]),_:3},16))}}),gD=yD,bD=oe({__name:"DatePickerGridBody",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,a)=>(v(),j(u(HT),lt(it(t)),{default:F(()=>[xe(n.$slots,"default")]),_:3},16))}}),_D=bD,xD=oe({__name:"DatePickerGridHead",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,a)=>(v(),j(u(KT),lt(it(t)),{default:F(()=>[xe(n.$slots,"default")]),_:3},16))}}),kD=xD,wD=oe({__name:"DatePickerGridRow",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,a)=>(v(),j(u(YT),lt(it(t)),{default:F(()=>[xe(n.$slots,"default")]),_:3},16))}}),cm=wD,$D=oe({__name:"DatePickerHeadCell",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,a)=>(v(),j(u(ZT),lt(it(t)),{default:F(()=>[xe(n.$slots,"default")]),_:3},16))}}),CD=$D,SD=oe({__name:"DatePickerHeader",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,a)=>(v(),j(u(QT),lt(it(t)),{default:F(()=>[xe(n.$slots,"default")]),_:3},16))}}),ED=SD,AD=oe({__name:"DatePickerHeading",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,a)=>(v(),j(u(t4),lt(it(t)),{default:F(({headingValue:r})=>[xe(n.$slots,"default",{headingValue:r},()=>[we(T(r),1)])]),_:3},16))}}),TD=AD,DD=oe({__name:"DatePickerInput",props:{part:{type:null,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,a)=>(v(),j(u(W4),lt(it(t)),{default:F(()=>[xe(n.$slots,"default")]),_:3},16))}}),OD=DD,MD=oe({__name:"DatePickerNext",props:{nextPage:{type:Function,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,a)=>(v(),j(u(a4),lt(it(t)),{default:F(r=>[xe(n.$slots,"default",lt(it(r)))]),_:3},16))}}),PD=MD,RD=oe({__name:"DatePickerPrev",props:{prevPage:{type:Function,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,a)=>(v(),j(u(l4),lt(it(t)),{default:F(r=>[xe(n.$slots,"default",lt(it(r)))]),_:3},16))}}),ID=RD,qD=oe({__name:"PopoverTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(e){const t=e,n=Yl(),{forwardRef:a,currentElement:r}=tt();return n.triggerId||=Br(void 0,"reka-popover-trigger"),kt(()=>{n.triggerElement.value=r.value}),(l,o)=>(v(),j(zt(u(n).hasCustomAnchor.value?u(nt):u(mf)),{"as-child":""},{default:F(()=>[V(u(nt),{id:u(n).triggerId,ref:u(a),type:l.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":u(n).open.value,"aria-controls":u(n).contentId,"data-state":u(n).open.value?"open":"closed",as:l.as,"as-child":t.asChild,onClick:u(n).onOpenToggle},{default:F(()=>[xe(l.$slots,"default")]),_:3},8,["id","type","aria-expanded","aria-controls","data-state","as","as-child","onClick"])]),_:3}))}}),ND=qD,LD=oe({__name:"DatePickerTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,n=Tf();return(a,r)=>(v(),j(u(ND),Ue({"data-reka-date-field-segment":"trigger"},t,{disabled:u(n).disabled.value,onFocusin:r[0]||(r[0]=l=>{u(n).dateFieldRef.value?.setFocusedElement(l.target)})}),{default:F(()=>[xe(a.$slots,"default")]),_:3},16,["disabled"]))}}),BD=LD;const[Tb,FD]=Ct("DropdownMenuRoot");var VD=oe({__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 n=e,a=t;tt();const r=Pt(n,"open",a,{defaultValue:n.defaultOpen,passive:n.open===void 0}),l=P(),{modal:o,dir:i}=Gt(n),s=Ta(i);return FD({open:r,onOpenChange:c=>{r.value=c},onOpenToggle:()=>{r.value=!r.value},triggerId:"",triggerElement:l,contentId:"",modal:o,dir:s}),(c,d)=>(v(),j(u($4),{open:u(r),"onUpdate:open":d[0]||(d[0]=f=>_t(r)?r.value=f:null),dir:u(s),modal:u(o)},{default:F(()=>[xe(c.$slots,"default",{open:u(r)})]),_:3},8,["open","dir","modal"]))}}),Db=VD,zD=oe({__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=Da(e,t);tt();const l=Tb(),o=P(!1);function i(s){s.defaultPrevented||(o.value||setTimeout(()=>{l.triggerElement.value?.focus()},0),o.value=!1,s.preventDefault())}return l.contentId||=Br(void 0,"reka-dropdown-menu-content"),(s,c)=>(v(),j(u(q4),Ue(u(r),{id:u(l).contentId,"aria-labelledby":u(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:c[0]||(c[0]=d=>{if(d.defaultPrevented)return;const f=d.detail.originalEvent,m=f.button===0&&f.ctrlKey===!0,p=f.button===2||m;(!u(l).modal.value||p)&&(o.value=!0),u(l).triggerElement.value?.contains(d.target)&&d.preventDefault()})}),{default:F(()=>[xe(s.$slots,"default")]),_:3},16,["id","aria-labelledby"]))}}),Ob=zD,jD=oe({__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 n=e,r=Vl(t);return tt(),(l,o)=>(v(),j(u(D4),lt(it({...n,...u(r)})),{default:F(()=>[xe(l.$slots,"default")]),_:3},16))}}),cd=jD,UD=oe({__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(n,a)=>(v(),j(u(L4),lt(it(t)),{default:F(()=>[xe(n.$slots,"default")]),_:3},16))}}),Mb=UD,HD=oe({__name:"DropdownMenuSeparator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return tt(),(n,a)=>(v(),j(u(F4),lt(it(t)),{default:F(()=>[xe(n.$slots,"default")]),_:3},16))}}),WD=HD,KD=oe({__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,n=Tb(),{forwardRef:a,currentElement:r}=tt();return kt(()=>{n.triggerElement=r}),n.triggerId||=Br(void 0,"reka-dropdown-menu-trigger"),(l,o)=>(v(),j(u(g4),{"as-child":""},{default:F(()=>[V(u(nt),{id:u(n).triggerId,ref:u(a),type:l.as==="button"?"button":void 0,"as-child":t.asChild,as:l.as,"aria-haspopup":"menu","aria-expanded":u(n).open.value,"aria-controls":u(n).open.value?u(n).contentId:void 0,"data-disabled":l.disabled?"":void 0,disabled:l.disabled,"data-state":u(n).open.value?"open":"closed",onClick:o[0]||(o[0]=async i=>{!l.disabled&&i.button===0&&i.ctrlKey===!1&&(u(n)?.onOpenToggle(),await Ze(),u(n).open.value&&i.preventDefault())}),onKeydown:o[1]||(o[1]=tr(i=>{l.disabled||(["Enter"," "].includes(i.key)&&u(n).onOpenToggle(),i.key==="ArrowDown"&&u(n).onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())},["enter","space","arrow-down"]))},{default:F(()=>[xe(l.$slots,"default")]),_:3},8,["id","type","as-child","as","aria-expanded","aria-controls","data-disabled","disabled","data-state"])]),_:3}))}}),Pb=KD;const Jo=100,[GD,YD]=Ct("ProgressRoot"),ws=e=>typeof e=="number";function JD(e,t){return vn(e)||ws(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 ${Jo} if no \`max\` prop is set) - - \`null\` or \`undefined\` if the progress is indeterminate. - -Defaulting to \`null\`.`),null)}function ZD(e){return ws(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 \`${Jo}\`.`),Jo)}var XD=oe({__name:"ProgressRoot",props:{modelValue:{type:[Number,null],required:!1},max:{type:Number,required:!1,default:Jo},getValueLabel:{type:Function,required:!1,default:(e,t)=>ws(e)?`${Math.round(e/t*Jo)}%`: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 n=e,a=t;tt();const r=Pt(n,"modelValue",a,{passive:n.modelValue===void 0}),l=Pt(n,"max",a,{passive:n.max===void 0});ze(()=>r.value,async i=>{const s=JD(i,n.max);s!==i&&(await Ze(),r.value=s)},{immediate:!0}),ze(()=>n.max,i=>{const s=ZD(n.max);s!==i&&(l.value=s)},{immediate:!0});const o=_(()=>vn(r.value)?"indeterminate":r.value===l.value?"complete":"loading");return YD({modelValue:r,max:l,progressState:o}),(i,s)=>(v(),j(u(nt),{"as-child":i.asChild,as:i.as,"aria-valuemax":u(l),"aria-valuemin":0,"aria-valuenow":ws(u(r))?u(r):void 0,"aria-valuetext":i.getValueText?.(u(r),u(l)),"aria-label":i.getValueLabel(u(r),u(l)),role:"progressbar","data-state":o.value,"data-value":u(r)??void 0,"data-max":u(l)},{default:F(()=>[xe(i.$slots,"default",{modelValue:u(r)})]),_:3},8,["as-child","as","aria-valuemax","aria-valuenow","aria-valuetext","aria-label","data-state","data-value","data-max"]))}}),ic=XD,QD=oe({__name:"ProgressIndicator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,n=GD();return tt(),(a,r)=>(v(),j(u(nt),Ue(t,{"data-state":u(n).progressState.value,"data-value":u(n).modelValue?.value??void 0,"data-max":u(n).max.value}),{default:F(()=>[xe(a.$slots,"default")]),_:3},16,["data-state","data-value","data-max"]))}}),sc=QD;const eO="radio.select";function tO(e,t,n){Ud(eO,n,{originalEvent:e,value:t})}var nO=oe({__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 n=e,a=t,r=Pt(n,"checked",a,{passive:n.checked===void 0}),{value:l}=Gt(n),{forwardRef:o,currentElement:i}=tt(),s=sf(i),c=_(()=>n.id&&i.value?document.querySelector(`[for="${n.id}"]`)?.innerText??n.value:void 0);function d(f){n.disabled||tO(f,n.value,m=>{a("select",m),!m?.defaultPrevented&&(r.value=!0,s.value&&m.stopPropagation())})}return(f,m)=>(v(),j(u(nt),Ue(f.$attrs,{id:f.id,ref:u(o),role:"radio",type:f.as==="button"?"button":void 0,as:f.as,"aria-checked":u(r),"aria-label":c.value,"as-child":f.asChild,disabled:f.disabled?"":void 0,"data-state":u(r)?"checked":"unchecked","data-disabled":f.disabled?"":void 0,value:u(l),required:f.required,name:f.name,onClick:vt(d,["stop"])}),{default:F(()=>[xe(f.$slots,"default",{checked:u(r)}),u(s)&&f.name?(v(),j(u(vf),{key:0,type:"radio",tabindex:"-1",value:u(l),checked:!!u(r),name:f.name,disabled:f.disabled,required:f.required},null,8,["value","checked","name","disabled","required"])):ae("v-if",!0)]),_:3},16,["id","type","as","aria-checked","aria-label","as-child","disabled","data-state","data-disabled","value","required","name"]))}}),aO=nO;const[rO,lO]=Ct("RadioGroupRoot");var oO=oe({__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 n=e,a=t,{forwardRef:r,currentElement:l}=tt(),o=Pt(n,"modelValue",a,{defaultValue:n.defaultValue,passive:n.modelValue===void 0}),{disabled:i,loop:s,orientation:c,name:d,required:f,dir:m}=Gt(n),p=Ta(m),h=sf(l);return lO({modelValue:o,changeModelValue:x=>{o.value=x},disabled:i,loop:s,orientation:c,name:d?.value,required:f}),(x,k)=>(v(),j(u(Cf),{"as-child":"",orientation:u(c),dir:u(p),loop:u(s)},{default:F(()=>[V(u(nt),{ref:u(r),role:"radiogroup","data-disabled":u(i)?"":void 0,"as-child":x.asChild,as:x.as,"aria-orientation":u(c),"aria-required":u(f),dir:u(p)},{default:F(()=>[xe(x.$slots,"default",{modelValue:u(o)}),u(h)&&u(d)?(v(),j(u(vf),{key:0,required:u(f),disabled:u(i),value:u(o),name:u(d)},null,8,["required","disabled","value","name"])):ae("v-if",!0)]),_:3},8,["data-disabled","as-child","as","aria-orientation","aria-required","dir"])]),_:3},8,["orientation","dir","loop"]))}}),Rb=oO;const[KF,iO]=Ct("RadioGroupItem");var sO=oe({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 n=e,a=t,{forwardRef:r,currentElement:l}=tt(),o=rO(),i=_(()=>o.disabled.value||n.disabled),s=_(()=>o.required.value||n.required),c=_(()=>Uo(o.modelValue?.value,n.value));iO({disabled:i,checked:c});const d=P(!1),f=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"];Ll("keydown",p=>{f.includes(p.key)&&(d.value=!0)}),Ll("keyup",()=>{d.value=!1});function m(){setTimeout(()=>{d.value&&l.value?.click()},0)}return(p,h)=>(v(),j(u(Sf),{checked:c.value,disabled:i.value,"as-child":"",focusable:!i.value,active:c.value},{default:F(()=>[V(aO,Ue({...p.$attrs,...n},{ref:u(r),checked:c.value,required:s.value,disabled:i.value,"onUpdate:checked":h[0]||(h[0]=x=>u(o).changeModelValue(p.value)),onSelect:h[1]||(h[1]=x=>a("select",x)),onKeydown:h[2]||(h[2]=tr(vt(()=>{},["prevent"]),["enter"])),onFocus:m}),{default:F(()=>[xe(p.$slots,"default",{checked:c.value,required:s.value,disabled:i.value})]),_:3},16,["checked","required","disabled"])]),_:3},8,["checked","disabled","focusable","active"]))}}),Ib=sO,uO=oe({__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,n=["horizontal","vertical"];function a(i){return n.includes(i)}const r=_(()=>a(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,s)=>(v(),j(u(nt),Ue({as:i.as,"as-child":i.asChild,"data-orientation":r.value},o.value),{default:F(()=>[xe(i.$slots,"default")]),_:3},16,["as","as-child","data-orientation"]))}}),cO=uO;const[dO,fO]=Ct("TimeFieldRoot");function Ii(e,t=pi(Nn())){return e&&"day"in e?e:ta(t,e)}var pO=oe({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:n}){const a=e,r=n,{disabled:l,readonly:o,granularity:i,defaultValue:s,minValue:c,maxValue:d,stepSnapping:f,dir:m,locale:p}=Gt(a),h=lu(p),x=Ta(m),k=of(h.value,{hourCycle:Ko(a.hourCycle)}),{primitiveElement:y,currentElement:$}=Fr(),E=P(new Set),O=_(()=>Hg(a)),M=_(()=>c.value?Ii(c.value):void 0),B=_(()=>d.value?Ii(d.value):void 0);kt(()=>{um($.value).forEach(G=>E.value.add(G))});const z=Pt(a,"modelValue",r,{defaultValue:s.value,passive:a.modelValue===void 0}),H=_({get(){return vn(z.value)?z.value:Ii(z.value)},set(G){return G?z.value=z.value&&"day"in z.value?G:new Gn(G.hour,G.minute,G.second,z.value?.millisecond):z.value=G,G}}),S=ME({defaultPlaceholder:a.placeholder,defaultValue:z.value}),N=Pt(a,"placeholder",r,{defaultValue:a.defaultPlaceholder??S.copy(),passive:a.placeholder===void 0}),Y=_({get(){return Ii(N.value)},set(G){return G&&(N.value="day"in N.value?G.copy():new Gn(G.hour,G.minute,G.second,N.value?.millisecond)),G}}),R=_(()=>i.value?i.value:"minute"),U=_(()=>z.value?!!(M.value&&Ja(H.value,M.value)||B.value&&Ja(B.value,H.value)):!1),Q=dT(R.value),q=P(z.value?{...ud({value:H.value,formatter:k})}:{...Q}),ee=_(()=>_b({granularity:R.value,dateRef:Y.value,formatter:k,hideTimeZone:a.hideTimeZone,hourCycle:a.hourCycle,segmentValues:q.value,locale:h,isTimeValue:!0})),ne=_(()=>{const G=ee.value.arr;return a.hourCycle===12?G.map(K=>{if(K.part==="hour"&&"hour"in q.value){const ie=q.value.hour;if(ie!==null){const Z=ie===0?12:ie>12?ie-12:ie;return{...K,value:Z.toString()}}}return K}):G}),fe=_(()=>ne.value.filter(({part:G})=>G!=="literal"));ze(h,G=>{k.getLocale()!==G&&(k.setLocale(G),Ze(()=>{E.value.clear(),um($.value).forEach(K=>E.value.add(K))}))}),ze(H,G=>{!vn(G)&&(!Sl(Y.value,G)||Y.value.compare(G)!==0)&&(N.value=G.copy())}),ze([H,h],([G])=>{vn(G)?Object.values(q.value).every(K=>K!==null)&&vn(G)&&(q.value={...Q}):q.value={...ud({value:G,formatter:k})}});const ge=P(null),Ee=_(()=>Array.from(E.value).findIndex(G=>G.getAttribute("data-reka-time-field-segment")===ge.value?.getAttribute("data-reka-time-field-segment"))),be=_(()=>{const G=x.value==="rtl"?-1:1;return(G<0?Ee.value<0:Ee.value>E.value.size-1)?null:Array.from(E.value)[Ee.value+G]}),ve=_(()=>{const G=x.value==="rtl"?-1:1;return(G>0?Ee.value<0:Ee.value>E.value.size-1)?null:Array.from(E.value)[Ee.value-G]}),Ae=zl();function L(G){G.isComposing||ca(G.key)&&(G.key===Ae.ARROW_LEFT&&ve.value?.focus(),G.key===Ae.ARROW_RIGHT&&be.value?.focus())}function pe(G){ge.value=G}return fO({locale:h,modelValue:H,placeholder:Y,disabled:l,formatter:k,hourCycle:a.hourCycle,step:O,stepSnapping:f,readonly:o,segmentValues:q,isInvalid:U,segmentContents:fe,elements:E,setFocusedElement:pe,focusNext(){be.value?.focus()}}),t({setFocusedElement:pe}),(G,K)=>(v(),j(u(nt),Ue(G.$attrs,{ref_key:"primitiveElement",ref:y,role:"group","aria-disabled":u(l)?!0:void 0,"data-disabled":u(l)?"":void 0,"data-readonly":u(o)?"":void 0,"data-invalid":U.value?"":void 0,dir:u(x),onKeydown:tr(L,["left","right"])}),{default:F(()=>[xe(G.$slots,"default",{modelValue:u(z),segments:ne.value,isInvalid:U.value}),V(u(pf),{id:G.id,as:"input",feature:"focusable",tabindex:"-1",value:u(z)?u(z).toString():"",name:G.name,disabled:u(l),required:G.required,onFocus:K[0]||(K[0]=ie=>Array.from(E.value)?.[0]?.focus())},null,8,["id","value","name","disabled","required"])]),_:3},16,["aria-disabled","data-disabled","data-readonly","data-invalid","dir"]))}}),dm=pO,vO=oe({__name:"TimeFieldInput",props:{part:{type:null,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,n=dO(),a=P(!0),r=P(!1),{handleSegmentClick:l,handleSegmentKeydown:o,handleSegmentBeforeInput:i,handleSegmentCompositionStart:s,handleSegmentCompositionEnd:c,handleSegmentFocusOut:d,attributes:f}=xb({hasLeftFocus:a,lastKeyZero:r,placeholder:n.placeholder,hourCycle:n.hourCycle,step:n.step,stepSnapping:n.stepSnapping,segmentValues:n.segmentValues,formatter:n.formatter,part:t.part,disabled:n.disabled,readonly:n.readonly,focusNext:n.focusNext,modelValue:n.modelValue}),m=_(()=>n.disabled.value),p=_(()=>n.readonly.value),h=_(()=>n.isInvalid.value);return(x,k)=>(v(),j(u(nt),Ue({as:x.as,"as-child":x.asChild},u(f),{contenteditable:m.value||p.value?!1:x.part!=="literal","data-reka-time-field-segment":x.part,"aria-disabled":m.value?!0:void 0,"aria-readonly":p.value?!0:void 0,"data-disabled":m.value?"":void 0,"data-invalid":h.value?"":void 0,"aria-invalid":h.value?!0:void 0},Wh(x.part!=="literal"?{mousedown:u(l),keydown:u(o),beforeinput:u(i),compositionstart:u(s),compositionend:u(c),focusout:()=>{a.value=!0,u(d)()},focusin:y=>{u(n).setFocusedElement(y.target)}}:{})),{default:F(()=>[xe(x.$slots,"default")]),_:3},16,["as","as-child","contenteditable","data-reka-time-field-segment","aria-disabled","aria-readonly","data-disabled","data-invalid","aria-invalid"]))}}),fm=vO,mO=oe({__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:n}=tt();return(a,r)=>(v(),j(u(Sf),{"as-child":"",focusable:!a.disabled},{default:F(()=>[V(u(nt),Ue({ref:u(n),type:a.as==="button"?"button":void 0},t),{default:F(()=>[xe(a.$slots,"default")]),_:3},16,["type"])]),_:3},8,["focusable"]))}}),co=mO;const[hO,yO]=Ct("ToolbarRoot");var gO=oe({__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:n,dir:a}=Gt(t),r=Ta(a),{forwardRef:l}=tt();return yO({orientation:n,dir:r}),(o,i)=>(v(),j(u(Cf),{"as-child":"",orientation:u(n),dir:u(r),loop:o.loop},{default:F(()=>[V(u(nt),{ref:u(l),role:"toolbar","aria-orientation":u(n),"as-child":o.asChild,as:o.as},{default:F(()=>[xe(o.$slots,"default")]),_:3},8,["aria-orientation","as-child","as"])]),_:3},8,["orientation","dir","loop"]))}}),bO=gO,_O=oe({__name:"ToolbarSeparator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,n=hO();return tt(),(a,r)=>(v(),j(cO,{orientation:u(n).orientation.value,"as-child":t.asChild,as:a.as},{default:F(()=>[xe(a.$slots,"default")]),_:3},8,["orientation","as-child","as"]))}}),uc=_O;const xO=/^filter\[(.+)\]$/,kO=/^[1-9]\d*$/;function ol(e){const t=Array.isArray(e)?e[e.length-1]:e;return typeof t=="string"?t:""}function pm(e){return kO.test(e)?Number(e):void 0}function qb(e){const t={},n=ol(e.search).trim();n!==""&&(t.search=n);const a=ol(e.sort).trim();if(a!==""){t.sort=a;const i=ol(e.dir);t.dir=i==="desc"?"desc":"asc"}const r=pm(ol(e.page));r!==void 0&&(t.page=r);const l=pm(ol(e.per_page));l!==void 0&&(t.per_page=l);const o={};for(const i of Object.keys(e).sort()){const s=xO.exec(i)?.[1],c=ol(e[i]);s&&c!==""&&(o[s]=c)}return Object.keys(o).length>0&&(t.filter=o),t}function $s(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 n of Object.keys(e.filter??{}).sort()){const a=e.filter?.[n];a!==void 0&&a!==""&&(t[`filter[${n}]`]=a)}return t}function gl(e){return JSON.stringify($s(e))}const Nb="summer-admin.list:",wO=gl({});let dd=null;function pu(){try{return typeof window>"u"?null:window.localStorage}catch{return null}}function Lb(e){return`${Nb}${e}:`}function Bb(e){return dd===null?null:Lb(dd)+e}function fd(e){try{pu()?.removeItem(e)}catch{}}function vm(e){const t=pu();if(t)try{const n=[];for(let a=0;a!0);return}const n=Lb(t);vm(a=>!a.startsWith(n))}function $O(e){const t=Bb(e);if(t===null)return{};let n=null;try{n=pu()?.getItem(t)??null}catch{return{}}if(n===null)return{};let a;try{a=JSON.parse(n)}catch{return fd(t),{}}return typeof a!="object"||a===null||Array.isArray(a)||Object.getPrototypeOf(a)!==Object.prototype||!Object.values(a).every(r=>typeof r=="string")?(fd(t),{}):qb(a)}function qi(e,t){const n=Bb(e);if(n!==null){if(gl(t)===wO){fd(n);return}try{pu()?.setItem(n,JSON.stringify($s(t)))}catch{}}}const Dl=P(null),Fb=P(null);let qo=null;function Vb(e){zb(),Fb.value=e,!(e===null||e<=0)&&(qo=setTimeout(()=>{qo=null,qd()},e*800))}function zb(){qo!==null&&(clearTimeout(qo),qo=null)}Uk(Vb);const ln=Mt(Dl);async function CO(e,t){const{data:n,response:a}=await Be.POST("/auth/login",{body:{login:e,password:t}});return!a.ok||!n?!1:(Vb(typeof n.data.expires_in=="number"?n.data.expires_in:null),!0)}async function jb(){const{data:e,response:t}=await Be.GET("/auth/me");return Dl.value=t.ok&&e?e.data:null,Df(Dl.value?.id??null),Dl.value}function Ub(e){if(!e)return"";const t=[e.first_name,e.last_name].map(n=>n.trim()).filter(Boolean);return t.length>0?t.slice(0,2).map(n=>n.charAt(0).toUpperCase()).join(""):e.login.slice(0,2).toUpperCase()}function cc(e){Dl.value=e,Df(e.id)}function Hb(){zb(),Dl.value=null,Fb.value=null,Df(null)}function SO(e){Hb();const t=e.currentRoute.value;t.name!=="login"&&e.push({name:"login",query:{redirect:t.fullPath}}).catch(()=>{})}async function EO(e){try{await Be.POST("/auth/logout")}catch{}finally{Hb(),Jk([]),Qk([])}e&&await e.replace({name:"login"}).catch(()=>{})}const AO=["src"],TO={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":""},DO={class:"flex flex-col leading-tight max-[1099px]:hidden","data-user-identity":""},OO={class:"font-semibold"},MO={key:0,class:"text-[12px] text-muted","data-user-role":""},PO={class:"flex items-center gap-3 px-2 py-2"},RO=["src"],IO={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"},qO={class:"flex min-w-0 flex-col leading-tight"},NO={class:"truncate font-bold"},LO={class:"truncate text-[13px] text-muted"},BO=oe({__name:"UserMenu",setup(e){const t=pr(),n=_(()=>{const s=ln.value;if(!s)return"";const c=`${s.first_name} ${s.last_name}`.trim();return c===""?s.login:c}),a=_(()=>Ub(ln.value)),r=_(()=>ln.value?.avatar?.thumb_url||ln.value?.avatar?.url||""),l=_(()=>ln.value?.role?.name??"");async function o(){await t.push({name:"account"}).catch(()=>{})}async function i(){await EO(t)}return(s,c)=>(v(),j(u(Db),{modal:!1},{default:F(()=>[V(u(Pb),{"data-user-menu":"",disabled:!u(ln),"aria-label":`${u(w)("backend::lang.nav.user_menu")}: ${n.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?(v(),b("img",{key:0,src:r.value,alt:"","data-user-avatar":"",class:"size-[34px] shrink-0 rounded-full object-cover"},null,8,AO)):(v(),b("span",TO,T(a.value),1)),C("span",DO,[C("span",OO,T(n.value),1),l.value?(v(),b("span",MO,T(l.value),1)):ae("",!0)]),V(u(ar),{size:16,class:"text-muted","aria-hidden":"true"})]),_:1},8,["disabled","aria-label"]),V(u(Mb),null,{default:F(()=>[V(u(Ob),{"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(()=>[C("div",PO,[r.value?(v(),b("img",{key:0,src:r.value,alt:"","data-user-avatar":"",class:"size-10 shrink-0 rounded-full object-cover"},null,8,RO)):(v(),b("span",IO,T(a.value),1)),C("span",qO,[C("span",NO,T(n.value),1),C("span",LO,T(u(ln)?.email),1)])]),V(u(cd),{"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:o},{default:F(()=>[V(u(MC),{size:18,"aria-hidden":"true"}),C("span",null,T(u(w)("backend::lang.myaccount.menu_label")),1)]),_:1}),V(u(WD),{class:"my-1 h-px bg-border"}),V(u(cd),{"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:i},{default:F(()=>[V(u(Qy),{size:18,"aria-hidden":"true"}),C("span",null,T(u(w)("backend::lang.auth.logout")),1)]),_:1})]),_:1})]),_:1})]),_:1}))}}),FO=4e3,Zo=P([]),pd=new Map;let VO=1;const zO=Mt(Zo);function Le(e,t="success"){const n=VO++;return Zo.value=[{id:n,text:e,tone:t},...Zo.value],pd.set(n,setTimeout(()=>Wb(n),FO)),n}function Wb(e){const t=pd.get(e);t!==void 0&&(clearTimeout(t),pd.delete(e)),Zo.value=Zo.value.filter(n=>n.id!==e)}const jO=["role","data-tone"],UO={class:"font-medium"},HO=["aria-label","onClick"],WO=oe({__name:"Toast",setup(e){return(t,n)=>(v(),j(yx,{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(()=>[(v(!0),b(he,null,qe(u(zO),a=>(v(),b("div",{key:a.id,role:a.tone==="danger"?"alert":"status","data-tone":a.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"},[C("span",{class:ye([a.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"},[a.tone==="danger"?(v(),j(u(bt),{key:0,size:16})):(v(),j(u(nr),{key:1,size:16}))],2),C("span",UO,T(a.text),1),C("button",{type:"button","aria-label":u(w)("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=>u(Wb)(a.id)},[V(u(hn),{size:16,"aria-hidden":"true"})],8,HO)],8,jO))),128))]),_:1}))}}),KO={class:"flex min-h-screen bg-bg text-text"},GO={class:"flex min-w-0 flex-1 flex-col"},YO={class:"flex h-header shrink-0 items-center justify-between gap-4 border-b border-border bg-surface pr-6 pl-8"},JO={class:"flex shrink-0 items-center gap-1"},ZO=["title","aria-label"],XO={class:"min-w-0 flex-1 px-8 py-7"},QO=oe({__name:"AppShell",setup(e){const t=En(),{collapsed:n,watchViewport:a}=fg(),r=a();At(r);const l=`${window.location.origin}/`,o=_(()=>si(String(t.params.vendor??""),String(t.params.plugin??"")));return(i,s)=>(v(),b("div",KO,[V(rS),o.value&&!u(n)?(v(),j(uS,{key:0,entry:o.value},null,8,["entry"])):ae("",!0),C("div",GO,[C("header",YO,[V(pS),C("div",JO,[C("a",{"data-view-site":"",href:l,target:"_blank",rel:"noopener noreferrer",title:u(w)("backend::lang.nav.view_site"),"aria-label":u(w)("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"},[V(u(Yy),{class:"size-[18px]","aria-hidden":"true"})],8,ZO),V(BO)])]),C("main",XO,[xe(i.$slots,"default")])]),V(WO)]))}}),eM=oe({__name:"App",setup(e){const t=En(),n=_(()=>t.meta.shell===!0);return gn(()=>{document.title=tw(t)}),(a,r)=>n.value?(v(),j(QO,{key:0},{default:F(()=>[V(u(jc),null,{default:F(({Component:l,route:o})=>[(v(),j(zt(l),{key:o.path}))]),_:1})]),_:1})):(v(),j(u(jc),{key:1}))}}),tM="data-summer-controller",Kb="*",dc=new Map,vd=new Map;let Gb="";function Yb(){return`${Ks.base}/assets/`}function Jb(e){if(!e.startsWith(Yb())||e.includes("\\"))return!1;for(const n of e){const a=n.codePointAt(0)??0;if(a<=32||a===127)return!1}return!(e.split(/[?#]/,1)[0]??"").split("/").some(n=>{const a=n.toLowerCase().replaceAll("%2e",".");return a==="."||a===".."})}function Zb(e){if(!Jb(e))return Promise.reject(new Error(`plugin script outside ${Yb()}: ${e}`));const t=dc.get(e);if(t)return t;const n=new Promise((a,r)=>{const l=document.createElement("script");l.type="module",l.addEventListener("load",()=>a(),{once:!0}),l.addEventListener("error",()=>{dc.delete(e),l.remove(),r(new Error(`plugin script failed to load: ${e}`))},{once:!0}),l.src=e,document.head.appendChild(l)});return dc.set(e,n),n}function Xb(e,t){for(const n of t){const a=`${e} -${n}`;if(!Jb(n)||vd.has(a))continue;const r=document.createElement("link");r.rel="stylesheet",r.setAttribute(tM,e),r.disabled=!Qb(e),r.href=n,vd.set(a,{owner:e,link:r}),document.head.appendChild(r)}}function nM(e){Gb=e;for(const{owner:t,link:n}of vd.values())n.disabled=!Qb(t)}function Qb(e){return e===Kb||e===Gb}function aM(e){Xb(Kb,e)}async function Of(e,t){Xb(e,t?.styles??[]);const n=t?.scripts??[],a=await Promise.allSettled(n.map(r=>Zb(r)));return n.filter((r,l)=>a[l]?.status==="rejected")}const e1=new Map;async function t1(){let e=[];try{const{data:t,response:n}=await Be.GET("/field-types");e=n.ok&&t?t.data:[]}catch{return[]}for(const t of e){aM(t.styles??[]);const n=t.scripts??[];e1.set(t.element,Promise.allSettled(n.map(a=>Zb(a))).then(a=>n.filter((r,l)=>a[l]?.status==="rejected")))}return e}function rM(e){return e1.get(e)??Promise.resolve([])}const lM={class:"flex min-h-screen items-center justify-center px-4",style:{background:"radial-gradient(ellipse at 50% 35%, #2b3a5c 0%, #1d2740 60%)"}},oM={class:"flex w-full max-w-[400px] flex-col gap-6"},iM={class:"flex items-center justify-center gap-3"},sM={class:"flex size-[34px] items-center justify-center rounded-full bg-accent-soft"},uM={class:"text-[22px] font-bold tracking-[-0.02em]"},cM={class:"flex flex-col gap-1.5"},dM={class:"font-semibold"},fM={class:"flex flex-col gap-1.5"},pM={class:"font-semibold"},vM=["aria-invalid"],mM={key:0,role:"alert",class:"flex items-center gap-2.5 rounded-control bg-[#fdf0f0] px-3.5 py-3 text-[#c62828]"},hM=["disabled"],yM=oe({__name:"LoginView",setup(e){const t=En(),n=pr(),a=P(""),r=P(""),l=P(!1),o=P(!1);async function i(){if(!o.value){o.value=!0,l.value=!1;try{if(!await CO(a.value.trim(),r.value)||!await jb()){l.value=!0;return}r.value="",await Promise.all([By(),Fy().catch(()=>[]),t1()]),await n.replace(B1(t.query.redirect)??"/")}finally{o.value=!1}}}return(s,c)=>(v(),b("main",lM,[C("div",oM,[C("div",iM,[C("span",sM,[V(u(Zs),{size:20,class:"text-accent","aria-hidden":"true"})]),c[2]||(c[2]=C("span",{class:"text-[18px] font-bold text-white"},[we("Summer"),C("span",{class:"text-accent"},"CMS")],-1))]),C("form",{class:"flex flex-col gap-[18px] rounded-card bg-white p-8 text-[#141b2d] shadow-login",novalidate:"",onSubmit:vt(i,["prevent"])},[C("h1",uM,T(u(w)("backend::lang.auth.title")),1),C("label",cM,[C("span",dM,T(u(w)("backend::lang.auth.login")),1),Qn(C("input",{"onUpdate:modelValue":c[0]||(c[0]=d=>a.value=d),name:"login",type:"text",autocomplete:"username",required:"",class:"h-input rounded-control border border-[#d2d8e2] bg-white px-3.5"},null,512),[[Rl,a.value]])]),C("label",fM,[C("span",pM,T(u(w)("backend::lang.auth.password")),1),Qn(C("input",{"onUpdate:modelValue":c[1]||(c[1]=d=>r.value=d),name:"password",type:"password",autocomplete:"current-password",required:"","aria-invalid":l.value?"true":void 0,class:ye([l.value?"border-[#c62828]":"border-[#d2d8e2]","h-input rounded-control border bg-white px-3.5"])},null,10,vM),[[Rl,r.value]])]),l.value?(v(),b("div",mM,[V(u(bt),{size:18,"aria-hidden":"true"}),C("span",null,T(u(w)("backend::lang.auth.invalid")),1)])):ae("",!0),C("button",{type:"submit",disabled:o.value,class:"h-input rounded-control bg-[#22304d] font-semibold text-white disabled:opacity-60"},T(u(w)("backend::lang.auth.submit")),9,hM)],32)])]))}}),mm=/^\d+$/;function n1(e,t,n){const a=li(t),r=In(t);if(!a||!r)return"/";const o=((e??"").trim().split(/[?#]/,1)[0]??"").split("/").filter(d=>d!==""),i=[a.vendor,a.plugin,a.controller];if(!i.every((d,f)=>o[f]?.toLowerCase()===d.toLowerCase()))return r;const c=o.slice(i.length);if(c.length===0)return r;if(c.length===1&&c[0]==="create")return`${r}/create`;if(c.length===2&&c[0]==="update"){const d=c[1]===":id"?String(n??""):c[1]??"";return mm.test(d)?`${r}/${d}`:r}if(c.length===2&&c[0]==="preview"){const d=c[1]===":id"?String(n??""):c[1]??"";return mm.test(d)?`${r}/${d}/preview`:r}return r}const gM={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"},bM={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"},_M={key:1,class:"text-muted","data-empty":""},xM={key:2,class:"text-[13px] text-muted tabular-nums"},il=oe({__name:"CellValue",props:{column:{},value:{}},setup(e){const t=e;function n(f){return f==null||f===""}function a(f){return n(f)?"":Array.isArray(f)?f.map(a).filter(m=>m!=="").join(", "):typeof f=="boolean"?w(f?"backend::lang.list.column_switch_true":"backend::lang.list.column_switch_false"):typeof f=="object"?"":String(f)}function r(f){return String(f).padStart(2,"0")}function l(f){if(typeof f!="string"&&typeof f!="number")return"";const m=new Date(f);return Number.isNaN(m.getTime())?String(f):`${m.getFullYear()}-${r(m.getMonth()+1)}-${r(m.getDate())} ${r(m.getHours())}:${r(m.getMinutes())}`}function o(f){if(typeof f!="string")return"";const m=/^\d{4}-\d{2}-\d{2}/.exec(f.trim());return m?m[0]:f.trim()}function i(f){if(typeof f!="string")return"";const m=/(\d{2}):(\d{2})/.exec(f);return m?`${m[1]}:${m[2]}`:f.trim()}function s(f){return typeof f=="string"?f!==""&&f!=="0"&&f.toLowerCase()!=="false":!!f}const c=_(()=>t.column.type==="switch"?"switch":t.column.type==="datetime"?"datetime":t.column.type==="date"?"date":t.column.type==="time"?"time":"text"),d=_(()=>{switch(c.value){case"datetime":return l(t.value);case"date":return o(t.value);case"time":return i(t.value);default:return a(t.value)}});return(f,m)=>c.value==="switch"&&!n(e.value)?(v(),b(he,{key:0},[s(e.value)?(v(),b("span",gM,[V(u(jy),{size:14,"aria-hidden":"true"}),we(T(u(w)("backend::lang.list.column_switch_true")),1)])):(v(),b("span",bM,T(u(w)("backend::lang.list.column_switch_false")),1))],64)):d.value===""?(v(),b("span",_M,"—")):c.value==="datetime"||c.value==="date"||c.value==="time"?(v(),b("span",xM,T(d.value),1)):(v(),b(he,{key:3},[we(T(d.value),1)],64))}}),kM={key:0,class:"flex shrink-0 gap-2"},wM=["data-row-state"],$M=oe({__name:"RowStateBadges",props:{states:{},labels:{}},setup(e){const t=e,n={deleted:"border border-border-strong text-muted",negative:"bg-danger-soft text-danger",disabled:"bg-subtle text-muted"},a=["deleted","negative","disabled"],r=_(()=>a.filter(l=>t.states.includes(l)));return(l,o)=>r.value.length>0?(v(),b("span",kM,[(v(!0),b(he,null,qe(r.value,i=>(v(),b("span",{key:i,"data-row-state":i,class:ye([n[i],"inline-flex h-6 shrink-0 items-center rounded-pill px-2.5 text-[12px] font-semibold whitespace-nowrap"])},T(e.labels[i]??i),11,wM))),128))])):ae("",!0)}}),CM={class:"overflow-x-auto"},SM={class:"sticky top-0 z-10"},EM={class:"h-row-head border-y border-border bg-subtle"},AM={key:0,scope:"col","data-select":"",class:"w-[52px] pl-5"},TM=["aria-checked","aria-label","disabled"],DM=["aria-sort"],OM=["data-sort","onClick"],MM={key:1,class:"w-[56px] pr-5"},PM=["aria-busy"],RM={key:0,class:"pl-5"},IM={key:1,class:"pr-5"},qM={key:1},NM=["colspan"],LM={class:"text-muted"},BM=["aria-selected","data-row-states","onClick"],FM={key:0,"data-select":"",class:"pl-5"},VM=["aria-checked","aria-label","onClick"],zM={key:0,class:"flex items-center gap-3"},jM={"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"},UM=["onClick"],HM={key:1,class:"flex items-center gap-2"},WM={key:1,"data-trailing":"",class:"w-[56px] pr-5"},a1=oe({__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 n=e,a=t,r=pr();function l(U){const Q=U.id;return typeof Q=="number"||typeof Q=="string"?Q:null}function o(U,Q){const q=l(U);return q===null?`row-${Q}`:String(q)}function i(U){return n.rowLink?n.rowLink(U):null}function s(U,Q){if(U.target?.closest("a, button, input, label, select"))return;if(n.openable){const ne=U.currentTarget?.querySelector("[data-row-open]")??null;a("open",Q,ne);return}const ee=i(Q);ee&&r.push(ee)}const c=_(()=>n.rows.map(l).filter(U=>U!==null)),d=_(()=>new Set(n.selected.map(String))),f=_(()=>{const U=c.value,Q=U.filter(q=>d.value.has(String(q))).length;return Q===0?"false":Q===U.length?"true":"mixed"});function m(U){const Q=l(U);return Q!==null&&d.value.has(String(Q))}function p(){a("update:selected",f.value==="true"?[]:[...c.value])}function h(U){const Q=l(U);Q!==null&&(d.value.has(String(Q))?a("update:selected",n.selected.filter(q=>String(q)!==String(Q))):a("update:selected",[...n.selected,Q]))}function x(U){if(n.sort?.column===U.key)return n.sort.dir==="desc"?"descending":"ascending"}function k(U){return n.sortable&&U.sortable}const y=_(()=>n.variant==="relation"),$=_(()=>y.value?"h-[56px]":"h-row"),E=_(()=>y.value?3:8);function O(U){return(typeof U=="string"||typeof U=="number"?String(U):"").split(/[\s@._-]+/).filter(Boolean).slice(0,2).map(q=>q.charAt(0).toUpperCase()).join("")}const M=["deleted","negative","disabled"];function B(U){const Q=l(U),q=Q===null?void 0:n.rowStates[String(Q)];return Array.isArray(q)?M.filter(ee=>q.includes(ee)):[]}function z(U,Q,q=[]){const ee=q.includes("deleted")||q.includes("disabled");return Q===0?ee?"font-semibold text-muted":"font-semibold":ee||y.value||U.relation?"text-muted":""}function H(U){return["min-w-0 truncate",U.includes("deleted")?"line-through":"no-underline",U.includes("negative")?"text-danger":U.includes("deleted")||U.includes("disabled")?"text-muted":"text-text"]}const S=_(()=>n.columns.filter(U=>!U.invisible)),N=_(()=>Math.max(S.value.length+(n.selectable?1:0)+(n.trailing?1:0),1));function Y(U,Q){a("open",Q,U.currentTarget)}const R=["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(U,Q)=>(v(),b("div",CM,[C("table",{class:ye([y.value?"min-w-[480px]":"min-w-[640px]","w-full border-collapse text-left"])},[C("thead",SM,[C("tr",EM,[e.selectable?(v(),b("th",AM,[C("button",{type:"button",role:"checkbox","aria-checked":f.value,"aria-label":u(w)("backend::lang.list.select_all"),disabled:e.loading||c.value.length===0,class:ye([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:p},[f.value==="mixed"?(v(),j(u(eg),{key:0,size:14,"aria-hidden":"true"})):f.value==="true"?(v(),j(u(nr),{key:1,size:14,"aria-hidden":"true"})):ae("",!0)],10,TM)])):ae("",!0),(v(!0),b(he,null,qe(S.value,q=>(v(),b("th",{key:q.key,scope:"col","aria-sort":k(q)?x(q)??"none":void 0,class:ye([x(q)?"text-text":"text-muted","px-3.5 text-[12px] font-semibold first:pl-5 last:pr-5"])},[k(q)?(v(),b("button",{key:0,type:"button","data-sort":q.key,class:"inline-flex items-center gap-1 font-semibold",onClick:ee=>a("sort",q.key)},[we(T(q.label)+" ",1),x(q)==="ascending"?(v(),j(u(Uy),{key:0,size:14,"aria-hidden":"true"})):x(q)==="descending"?(v(),j(u(Vy),{key:1,size:14,"aria-hidden":"true"})):ae("",!0)],8,OM)):(v(),b(he,{key:1},[we(T(q.label),1)],64))],10,DM))),128)),e.trailing?(v(),b("td",MM)):ae("",!0)])]),C("tbody",{"aria-busy":e.loading?"true":void 0},[e.loading?(v(!0),b(he,{key:0},qe(E.value,q=>(v(),b("tr",{key:`skeleton-${q}`,"data-skeleton":"",class:ye([$.value,"border-b border-border"])},[e.selectable?(v(),b("td",RM,[...Q[0]||(Q[0]=[C("span",{class:"block size-[18px] rounded-checkbox bg-skel"},null,-1)])])):ae("",!0),(v(!0),b(he,null,qe(S.value,ee=>(v(),b("td",{key:ee.key,class:"px-3.5 first:pl-5 last:pr-5"},[C("span",{class:ye([R[(q-1)%R.length],"block h-3 rounded-[6px] bg-skel"])},null,2)]))),128)),e.trailing?(v(),b("td",IM)):ae("",!0)],2))),128)):e.rows.length===0?(v(),b("tr",qM,[C("td",{colspan:N.value,class:"px-5 py-20 text-center"},[xe(U.$slots,"empty",{},()=>[C("span",LM,T(u(w)("backend::lang.list.no_records")),1)])],8,NM)])):(v(!0),b(he,{key:2},qe(e.rows,(q,ee)=>(v(),b("tr",{key:o(q,ee),class:ye([[$.value,m(q)?"bg-sel":i(q)||e.openable?"hover:bg-hover":"",i(q)||e.openable?"cursor-pointer":""],"border-b border-border transition-colors duration-150 ease-out"]),"aria-selected":e.selectable?m(q)?"true":"false":void 0,"data-row-states":B(q).length>0?B(q).join(" "):void 0,onClick:ne=>s(ne,q)},[e.selectable?(v(),b("td",FM,[C("button",{type:"button",role:"checkbox","aria-checked":m(q)?"true":"false","aria-label":u(w)("backend::lang.list.select_row"),class:ye([m(q)?"border-primary bg-primary text-on-primary":"border-border-strong bg-surface","flex size-[18px] items-center justify-center rounded-checkbox border"]),onClick:ne=>h(q)},[m(q)?(v(),j(u(nr),{key:0,size:14,"aria-hidden":"true"})):ae("",!0)],10,VM)])):ae("",!0),(v(!0),b(he,null,qe(S.value,(ne,fe)=>(v(),b("td",{key:ne.key,class:ye([z(ne,fe,B(q)),"px-3.5 first:pl-5 last:pr-5"])},[y.value&&fe===0?(v(),b("span",zM,[C("span",jM,T(O(q[ne.key])),1),e.openable?(v(),b("button",{key:0,type:"button","data-row-open":"",class:"min-w-0 truncate text-left font-semibold text-text",onClick:ge=>Y(ge,q)},[V(il,{column:ne,value:q[ne.key]},null,8,["column","value"])],8,UM)):(v(),j(il,{key:1,column:ne,value:q[ne.key]},null,8,["column","value"]))])):fe===0&&B(q).length>0?(v(),b("span",HM,[i(q)?(v(),j(u(ea),{key:0,to:i(q),class:ye(H(B(q)))},{default:F(()=>[V(il,{column:ne,value:q[ne.key]},null,8,["column","value"])]),_:2},1032,["to","class"])):(v(),b("span",{key:1,class:ye(H(B(q)))},[V(il,{column:ne,value:q[ne.key]},null,8,["column","value"])],2)),V($M,{states:B(q),labels:e.stateLabels},null,8,["states","labels"])])):fe===0&&i(q)?(v(),j(u(ea),{key:2,to:i(q),class:"text-text no-underline"},{default:F(()=>[V(il,{column:ne,value:q[ne.key]},null,8,["column","value"])]),_:2},1032,["to"])):(v(),j(il,{key:3,column:ne,value:q[ne.key]},null,8,["column","value"]))],2))),128)),e.trailing?(v(),b("td",WM,[xe(U.$slots,"trailing",{row:q})])):ae("",!0)],10,BM))),128))],8,PM)],2)]))}}),KM=["aria-label"],GM={key:0,class:"flex flex-col gap-1 text-[13px]"},YM={class:"font-semibold text-muted"},JM=["data-filter","value","onChange"],ZM=["value"],XM={key:1,class:"flex flex-col gap-1 text-[13px]"},QM={class:"mb-1 font-semibold text-muted"},e5={class:"flex items-center gap-2"},t5=["data-filter","aria-label","value","onChange"],n5=["data-filter","aria-label","value","onChange"],a5={key:2,class:"flex flex-col gap-1 text-[13px]"},r5={class:"font-semibold text-muted"},l5=["data-filter","value","onChange"],o5=["value"],fo="",Ni="h-button rounded-control border border-border-strong bg-surface px-3 text-text",i5=oe({__name:"FilterBar",props:{filters:{},values:{},source:{}},emits:["update"],setup(e,{emit:t}){const n=e,a=t;function r(f){if(f.options&&f.options.length>0)return f.options.map(p=>({value:JSON.stringify(p.value),label:p.label}));const m=[];return f.trueValue!==void 0&&m.push({value:JSON.stringify(f.trueValue),label:w("backend::lang.list.column_switch_true")}),f.falseValue!==void 0&&m.push({value:JSON.stringify(f.falseValue),label:w("backend::lang.list.column_switch_false")}),m}const l=P({});async function o(f){const{data:m}=await Be.GET("/{vendor}/{plugin}/{controller}/filters/{scope}/options",{params:{path:{...n.source,scope:f.name}}});l.value={...l.value,[f.name]:m?.data??[]}}kt(()=>{for(const f of n.filters)f.type==="scope"&&o(f)});const i=On({});function s(){for(const f of n.filters){if(f.type!=="daterange")continue;const[m="",p=""]=(n.values[f.name]??"").split(".."),h=i[f.name];(!h||n.values[f.name]!==void 0||h.from!==""&&h.to!=="")&&(i[f.name]={from:m,to:p})}}ze(()=>n.values,s,{immediate:!0,deep:!0});function c(f,m,p){const h={...i[f.name]??{from:"",to:""},[m]:p};i[f.name]=h,h.from!==""&&h.to!==""?a("update",f.name,`${h.from}..${h.to}`):(h.from===""&&h.to===""||n.values[f.name]!==void 0)&&a("update",f.name,null)}function d(f,m){a("update",f.name,m===fo?null:m)}return(f,m)=>(v(),b("div",{role:"group","aria-label":u(w)("backend::lang.list.filters"),"data-filter-bar":"",class:"flex flex-wrap items-end gap-4 border-t border-border px-5 py-3.5"},[(v(!0),b(he,null,qe(e.filters,p=>(v(),b(he,{key:p.name},[p.type==="switch"?(v(),b("label",GM,[C("span",YM,T(p.label||p.name),1),C("select",{"data-filter":p.name,value:e.values[p.name]??fo,class:ye(Ni),onChange:h=>d(p,h.target.value)},[C("option",{value:fo},T(u(w)("backend::lang.list.filter_all")),1),(v(!0),b(he,null,qe(r(p),h=>(v(),b("option",{key:h.value,value:h.value},T(h.label),9,ZM))),128))],40,JM)])):p.type==="daterange"?(v(),b("fieldset",XM,[C("legend",QM,T(p.label||p.name),1),C("div",e5,[C("input",{type:"date","data-filter":`${p.name}-from`,"aria-label":u(w)("backend::lang.list.filter_from"),value:i[p.name]?.from??"",class:ye(Ni),onChange:h=>c(p,"from",h.target.value)},null,40,t5),m[0]||(m[0]=C("span",{"aria-hidden":"true"},"–",-1)),C("input",{type:"date","data-filter":`${p.name}-to`,"aria-label":u(w)("backend::lang.list.filter_to"),value:i[p.name]?.to??"",class:ye(Ni),onChange:h=>c(p,"to",h.target.value)},null,40,n5)])])):p.type==="scope"?(v(),b("label",a5,[C("span",r5,T(p.label||p.name),1),(v(),b("select",{key:`${p.name}-${l.value[p.name]?.length??-1}`,"data-filter":p.name,value:e.values[p.name]??fo,class:ye(Ni),onChange:h=>d(p,h.target.value)},[C("option",{value:fo},T(u(w)("backend::lang.list.filter_all")),1),(v(!0),b(he,null,qe(l.value[p.name]??[],h=>(v(),b("option",{key:h.value,value:h.value},T(h.label),9,o5))),128))],40,l5))])):ae("",!0)],64))),128))],8,KM))}}),s5=["type","disabled"],et=oe({__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}},setup(e){const t=e,n={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"},a=_(()=>["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",n[t.variant]]);return(r,l)=>e.to!==void 0?(v(),j(u(ea),{key:0,to:e.to,class:ye(a.value)},{default:F(()=>[e.icon?(v(),j(zt(e.icon),{key:0,size:16,"aria-hidden":"true"})):ae("",!0),xe(r.$slots,"default")]),_:3},8,["to","class"])):(v(),b("button",{key:1,type:e.type,disabled:e.disabled,class:ye(a.value)},[e.icon?(v(),j(zt(e.icon),{key:0,size:16,"aria-hidden":"true"})):ae("",!0),xe(r.$slots,"default")],10,s5))}}),u5=oe({__name:"BulkActionsMenu",props:{actions:{},disabled:{type:Boolean}},emits:["select"],setup(e,{expose:t,emit:n}){const a=n,r=P(null);function l(){const o=r.value?.$el;o instanceof HTMLElement&&o.focus()}return t({focus:l}),(o,i)=>(v(),j(u(Db),{modal:!1},{default:F(()=>[V(u(Pb),{"as-child":"",disabled:e.disabled},{default:F(()=>[V(et,{ref_key:"trigger",ref:r,variant:"outline",size:"md","data-action":"bulk-actions",disabled:e.disabled},{default:F(()=>[we(T(u(w)("backend::lang.list.bulk_actions"))+" ",1),V(u(ar),{size:16,class:"text-muted","aria-hidden":"true"})]),_:1},8,["disabled"])]),_:1},8,["disabled"]),V(u(Mb),null,{default:F(()=>[V(u(Ob),{"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(()=>[(v(!0),b(he,null,qe(e.actions,s=>(v(),j(u(cd),{key:s.name,"data-bulk-action":s.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:c=>a("select",s.name)},{default:F(()=>[we(T(s.label),1)]),_:2},1032,["data-bulk-action","onSelect"]))),128))]),_:1})]),_:1})]),_:1}))}}),c5={class:"flex flex-wrap items-center justify-between gap-3 px-5 py-4"},d5={key:0,class:"relative block w-[320px] max-w-full"},f5={class:"sr-only"},p5=["value","placeholder"],v5={key:1},m5={class:"flex flex-wrap items-center justify-end gap-2.5"},h5={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"},y5=oe({__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:n}){const a=e,r=n,l=_(()=>new Map(a.actions.map(s=>[s.name,s.label]))),o=P(null);function i(){o.value?.focus()}return t({focusBulk:i}),(s,c)=>(v(),b("div",c5,[e.showSearch?(v(),b("label",d5,[C("span",f5,T(u(w)("backend::lang.list.search")),1),V(u(Js),{size:18,class:"pointer-events-none absolute top-1/2 left-3.5 -translate-y-1/2 text-muted","aria-hidden":"true"}),C("input",{type:"search","data-list-search":"",value:e.search,placeholder:e.searchPrompt,class:"h-button w-full rounded-control border border-transparent bg-subtle pr-3.5 pl-10",onInput:c[0]||(c[0]=d=>r("update:search",d.target.value))},null,40,p5)])):(v(),b("span",v5)),C("div",m5,[e.selectedCount>0?(v(),b("span",h5,[V(u(nr),{size:14,"aria-hidden":"true"}),we(T(e.selectedLabel),1)])):ae("",!0),e.bulkActions.length>0?(v(),j(u5,{key:1,ref_key:"bulkMenu",ref:o,actions:e.bulkActions,disabled:e.selectedCount===0||e.bulkBusy,onSelect:c[1]||(c[1]=d=>r("bulk",d))},null,8,["actions","disabled"])):ae("",!0),(v(!0),b(he,null,qe(e.buttons,d=>(v(),b(he,{key:d},[d==="delete"?(v(),j(et,{key:0,"data-action":"delete",variant:e.selectedCount>0?"danger":"outline",icon:u(Ur),disabled:e.selectedCount===0,onClick:c[2]||(c[2]=f=>r("delete"))},{default:F(()=>[we(T(e.deleteLabel),1)]),_:1},8,["variant","icon","disabled"])):l.value.has(d)?(v(),j(et,{key:1,variant:"outline",size:"md","data-action":d,disabled:e.busyAction===d,"aria-busy":e.busyAction===d?"true":void 0,onClick:f=>r("action",d)},{default:F(()=>[we(T(l.value.get(d)),1)]),_:2},1032,["data-action","disabled","aria-busy","onClick"])):ae("",!0)],64))),128))])]))}}),g5={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"},b5={"data-range":""},_5={key:0,class:"flex items-center gap-2"},x5=["value"],k5=["value"],w5=["aria-label"],$5=["disabled"],C5={key:0,"aria-hidden":"true",class:"px-1"},S5=["data-page","aria-current","onClick"],E5=["disabled"],fc="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",r1=oe({__name:"Pagination",props:{meta:{},loading:{type:Boolean},perPageOptions:{},perPage:{}},emits:["page","perPage"],setup(e,{emit:t}){const n=e,a=t,r=_(()=>n.meta?.total??0),l=_(()=>n.meta?.page??1),o=_(()=>Math.max(n.meta?.last_page??1,1)),i=_(()=>{const d=n.meta;if(!d||d.total===0)return qr("backend::lang.list.results",0);const f=(d.page-1)*d.per_page+1,m=Math.min(d.page*d.per_page,d.total);return w("backend::lang.list.pagination_range",{from:f,to:m,total:d.total})}),s=_(()=>{const d=o.value,f=l.value,m=new Set([1,d,f-1,f,f+1].filter(x=>x>=1&&x<=d));f<=3&&[2,3].forEach(x=>x<=d&&m.add(x)),f>=d-2&&[d-1,d-2].forEach(x=>x>=1&&m.add(x));const p=[...m].sort((x,k)=>x-k),h=[];return p.forEach((x,k)=>{const y=p[k-1];y!==void 0&&x-y>1&&h.push(null),h.push(x)}),h});function c(d){const f=Number(d.target.value);Number.isFinite(f)&&f>0&&a("perPage",f)}return(d,f)=>(v(),b("footer",g5,[C("span",b5,T(e.loading?u(w)("backend::lang.list.loading"):i.value),1),e.perPageOptions.length>1?(v(),b("label",_5,[C("span",null,T(u(w)("backend::lang.list.records_per_page")),1),C("select",{"data-per-page":"",value:String(e.perPage),class:"h-pager rounded-pager border border-border-strong bg-surface px-2 text-text",onChange:c},[(v(!0),b(he,null,qe(e.perPageOptions,m=>(v(),b("option",{key:m,value:String(m)},T(m),9,k5))),128))],40,x5)])):ae("",!0),!e.loading&&r.value>0?(v(),b("nav",{key:1,"aria-label":u(w)("backend::lang.list.pagination"),class:"ml-auto flex items-center gap-1.5"},[C("button",{type:"button","data-page":"prev",class:ye(fc),disabled:l.value<=1,onClick:f[0]||(f[0]=m=>a("page",l.value-1))},[V(u(Gs),{size:14,"aria-hidden":"true"}),we(T(u(w)("backend::lang.list.prev_page")),1)],8,$5),(v(!0),b(he,null,qe(s.value,(m,p)=>(v(),b(he,{key:m??`gap-${p}`},[m===null?(v(),b("span",C5,"…")):(v(),b("button",{key:1,type:"button","data-page":m,"aria-current":m===l.value?"page":void 0,class:ye([fc,m===l.value?"border-transparent bg-sel font-bold":""]),onClick:h=>m!==l.value&&a("page",m)},T(m),11,S5))],64))),128)),C("button",{type:"button","data-page":"next",class:ye(fc),disabled:l.value>=o.value,onClick:f[1]||(f[1]=m=>a("page",l.value+1))},[we(T(u(w)("backend::lang.list.next_page")),1),V(u(ci),{size:14,"aria-hidden":"true"})],8,E5)],8,w5)):ae("",!0)]))}}),A5={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"},T5={class:"flex min-w-0 items-start gap-2.5"},D5={class:"min-w-0 [overflow-wrap:anywhere]"},vu=oe({__name:"ExtensionFailure",props:{text:{}},setup(e){return(t,n)=>(v(),b("div",A5,[C("span",T5,[V(u(bt),{size:16,class:"mt-0.5 shrink-0 text-danger","aria-hidden":"true"}),C("span",D5,T(e.text),1)])]))}}),O5=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"]),M5=new Set(["script","style","template","iframe","object","embed","noscript","textarea","title","xmp","svg","math","form","input","button","select","link","meta","base"]),P5=32,R5=2e3,I5=new Set(["class","title","lang","dir","role"]),q5={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"])},N5=/^(aria|data)-[a-z0-9_-]+$/;function L5(e,t){if(e==="")return!1;for(const n of e){const a=n.codePointAt(0)??0;if(a<=32||a===127)return!1}return e.startsWith("#")?t:e.startsWith("/")?e.length===1||e[1]!=="/"&&e[1]!=="\\":!1}function B5(e,t,n){return I5.has(t)||q5[e]?.has(t)===!0||N5.test(t)?e==="a"&&t==="href"||e==="img"&&t==="src"?L5(n,e==="a"):!0:!1}function F5(e,t){const n={};for(const[a,r]of Object.entries(t??{})){const l=a.toLowerCase();typeof r=="string"&&B5(e,l,r)&&(n[l]=r)}return n}function md(e,t,n){const a=[];for(const r of e??[]){if(n.left<=0)break;if(r.tag===void 0||r.tag===""){typeof r.text=="string"&&r.text!==""&&(n.left-=1,a.push(r.text));continue}const l=r.tag.toLowerCase();if(M5.has(l))continue;if(!O5.has(l)){a.push(...md(r.children,t,n));continue}if(t+1>P5)continue;n.left-=1;const o=md(r.children,t+1,n);a.push(Cn(l,F5(l,r.attrs),o.length>0?o:void 0))}return a}function V5(e){return md(e,0,{left:R5})}const z5={key:1,"data-partial-loading":"","aria-busy":"true"},j5=["data-partial","aria-busy"],Mf=oe({__name:"PartialHost",props:{source:{},name:{},recordId:{default:null},variant:{},reloadKey:{default:0},hint:{type:Boolean,default:!1}},setup(e){const t=e,n=P(null),a=P(!1),r=P(!1);let l=0;const o=s=>V5(s.nodes);o.props=["nodes"];async function i(){const s=++l;r.value=!0;let c=null;try{c=(await Be.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{c=null}s===l&&(r.value=!1,a.value=c===null,n.value=c)}return ze(()=>t.reloadKey,()=>{i()}),i(),(s,c)=>a.value?(v(),j(vu,{key:0,"data-partial-failed":"",text:u(w)("backend::lang.extension.partial_failed")},null,8,["text"])):n.value===null?(v(),b("div",z5,[C("div",{"data-partial-skeleton":"",class:ye([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)])):n.value.length>0?(v(),b("div",{key:2,class:"summer-partial","data-partial":e.variant,"aria-busy":r.value?"true":void 0},[V(o,{nodes:n.value},null,8,["nodes"])],8,j5)):ae("",!0)}}),U5={class:"flex gap-2.5"},H5=["disabled","aria-busy"],hr=oe({__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}},emits:["update:open","confirm","cancel"],setup(e,{emit:t}){const n=e,a=t;function r(o){!o&&n.busy||(a("update:open",o),o||a("cancel"))}function l(){n.busy||(a("confirm"),a("update:open",!1))}return(o,i)=>(v(),j(u(FA),{open:e.open,"onUpdate:open":r},{default:F(()=>[V(u(LA),null,{default:F(()=>[V(u(qA),{class:"pointer-events-auto fixed inset-0 z-[80] bg-overlay"}),V(u(DA),{"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(()=>[V(u(zA),{class:"text-[20px] font-bold tracking-[-0.01em]"},{default:F(()=>[we(T(e.title??u(w)("backend::lang.form.confirm")),1)]),_:1}),V(u(RA),{class:"text-muted [overflow-wrap:anywhere]"},{default:F(()=>[we(T(e.message),1)]),_:1}),C("div",U5,[V(u(MA),{"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(()=>[we(T(e.cancelLabel??u(w)("backend::lang.form.cancel")),1)]),_:1},8,["disabled"]),C("button",{type:"button","data-action":"confirm",disabled:e.busy,"aria-busy":e.busy?"true":void 0,class:ye([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:vt(l,["prevent"])},[e.busy?(v(),j(u($l),{key:0,size:16,class:"animate-spin","aria-hidden":"true"})):ae("",!0),we(" "+T(e.confirmLabel??u(w)("backend::lang.form.confirm")),1)],10,H5)])]),_:1})]),_:1})]),_:1},8,["open"]))}});function yr(){const e=P(null),t=P(!1);let n=null,a=null;function r(s){const c=n;n=null,a=null,e.value=null,c?.(s)}function l(s,c){return r(!1),e.value=s,a=c??null,new Promise(d=>{n=d})}async function o(){if(t.value)return;const s=a;if(s){t.value=!0;try{await s()}finally{t.value=!1}}r(!0)}function i(){t.value||r(!1)}return{request:e,busy:t,ask:l,confirm:o,cancel:i}}const W5={class:"flex flex-col gap-5"},K5={class:"flex flex-wrap items-end justify-between gap-4"},G5={class:"flex flex-col"},Y5={class:"text-[26px] font-bold tracking-[-0.02em]"},J5={key:0,"data-record-count":"",class:"text-muted"},Z5={key:0,class:"flex items-center gap-2.5"},X5={class:"overflow-hidden rounded-card border border-border bg-surface shadow-card"},Q5={key:2,"data-list-failed":"",class:"flex flex-wrap items-center justify-between gap-3 border-t border-border px-5 py-4"},eP={role:"alert",class:"text-danger"},tP={key:0,"data-empty-search":"",class:"flex flex-col items-center gap-3"},nP={class:"flex size-14 items-center justify-center rounded-full bg-subtle text-muted"},aP={class:"text-[17px] font-bold"},rP={class:"max-w-[420px] text-muted"},lP={key:1,"data-empty-list":"",class:"text-muted"},oP=300,iP=oe({__name:"ListView",setup(e){const t=En(),n=pr(),a={vendor:String(t.params.vendor??""),plugin:String(t.params.plugin??""),controller:String(t.params.controller??"")},r=oi(a),l=In(r)??"/",o=P(null),i=P([]),s=P(null),c=P(!0),d=P(!1),f=P(!1),m=_(()=>d.value||f.value),p=P([]),h=P(!1),x=P(0),k=yr(),y=_(()=>qb(t.query)),$=P(y.value.search??""),E=_(()=>o.value?.messages),O=_(()=>o.value?.title?o.value.title:si(a.vendor,a.plugin)?.sideMenu.find(se=>se.controller===r)?.label??r),M=_(()=>s.value?Je(E.value?.recordCount,s.value.total):""),B=_(()=>o.value?.toolbarButtons??[]),z=_(()=>B.value.filter(de=>de==="create")),H=_(()=>{const de=o.value?.reorder;if(!de)return null;const se=de.partition?.column,Te=se?o.value?.filters.find(Ie=>Ie.column===se||Ie.name===se):void 0,De=Te?y.value.filter?.[Te.name]:void 0;return{path:`${l}/reorder`,query:De!==void 0&&De!==""?{partition:String(De)}:{}}}),S=_(()=>o.value?.toolbarActions??[]),N=_(()=>B.value.filter(de=>de==="delete"||S.value.some(se=>se.name===de))),Y=P(null),R=_(()=>s.value?.row_states??{}),U=_(()=>({deleted:Je(E.value?.rowStateDeleted),negative:Je(E.value?.rowStateNegative),disabled:Je(E.value?.rowStateDisabled)})),Q=_(()=>(o.value?.bulkActions??[]).filter(de=>de.name!=="delete")),q=P(!1),ee=P(null),ne=_(()=>{const de=o.value?.perPageOptions??[];return de.length>0?de:[o.value?.recordsPerPage||20]}),fe=_(()=>y.value.per_page??s.value?.per_page??o.value?.recordsPerPage??20),ge=_(()=>y.value.sort?{column:y.value.sort,dir:y.value.dir==="desc"?"desc":"asc"}:null);function Ee(de){const se=o.value?.recordUrl,Te=de.id;return!se||typeof Te!="number"&&typeof Te!="string"?null:n1(se,r,Te)}function be(de){qi(r,de),n.replace({path:t.path,query:$s(de)})}const ve=gl({}),Ae=_(()=>gl(y.value)!==ve);let L=0,pe=null;function G(){be({})}async function K(de=!1){const se=++L;c.value=!0,f.value=!1;let Te=null;try{Te=await ie()}catch{Te=null}if(se!==L)return;if(!Te?.data&&de){qi(r,{}),n.replace({path:t.path,query:{}});return}if(i.value=Te?.data?.data??[],s.value=Te?.data?.meta??null,f.value=!Te?.data,c.value=!1,Te?.response?.status===422){qi(r,{});return}const De=s.value?.last_page??0;De>=1&&(s.value?.page??0)>De&&be({...y.value,page:De})}function ie(){return Be.GET("/{vendor}/{plugin}/{controller}",{params:{path:a,query:y.value}})}async function Z(){const de=await Be.GET("/{vendor}/{plugin}/{controller}/schema/list",{params:{path:a}});o.value=de.data?.data??null,d.value=!o.value,o.value&&Of(r,o.value.assets)}Z(),ze(()=>gl(y.value),de=>{if(de===ve){const Te=$O(r),De=gl(Te);if(De!==ve){pe=De,n.replace({path:t.path,query:$s(Te)});return}}const se=pe!==null&&pe===de;pe=null,qi(r,y.value),p.value=[],$.value=y.value.search??"",K(se)},{immediate:!0});let te=null;function ce(de){$.value=de,te!==null&&clearTimeout(te),te=setTimeout(()=>{te=null;const se=de.trim();be({...y.value,search:se===""?void 0:se,page:void 0})},oP)}At(()=>{te!==null&&clearTimeout(te)});function g(){$.value="",be({...y.value,search:void 0,page:void 0})}function A(de){const se=ge.value;se?.column!==de?be({...y.value,sort:de,dir:"asc",page:void 0}):se.dir==="asc"?be({...y.value,sort:de,dir:"desc",page:void 0}):be({...y.value,sort:void 0,dir:void 0,page:void 0})}function D(de){be({...y.value,page:de})}function re(de){be({...y.value,per_page:de,page:void 0})}function J(de,se){const Te={...y.value.filter??{}};se===null?delete Te[de]:Te[de]=se,be({...y.value,filter:Te,page:void 0})}async function ue(){const de=p.value.map(Number).filter(Te=>Number.isInteger(Te)&&Te>0);if(!(de.length===0||h.value||!await k.ask({message:Je(E.value?.deleteConfirm,de.length),confirmLabel:w("backend::lang.form.delete"),danger:!0}))){h.value=!0;try{const Te=await Be.POST("/{vendor}/{plugin}/{controller}/bulk-delete",{params:{path:a},body:{ids:de}});if(Te.data){Le(Je(E.value?.deleted,Te.data.data.deleted)),p.value=[],await K(),x.value+=1;return}Le(Te.error?.error.message||w("backend::lang.list.delete_failed"),"danger")}catch{Le(w("backend::lang.list.delete_failed"),"danger")}finally{h.value=!1}}}async function $e(de){const se=Q.value.find(Ne=>Ne.name===de),Te=p.value.map(Number).filter(Ne=>Number.isInteger(Ne)&&Ne>0);if(!se||Te.length===0||q.value)return;const De=se.label??de;let Ie=0,je=null,We="";const _e=await k.ask({message:se.confirm||qr("backend::lang.list.bulk_confirm",Te.length,{action:De}),confirmLabel:De,danger:!1},async()=>{q.value=!0;try{const Ne=await Be.POST("/{vendor}/{plugin}/{controller}/bulk/{action}",{params:{path:{...a,action:de}},body:{ids:Te}});Ie=Ne.response.status,je=Ne.data?.data??null,We=Ne.error?.error.message??""}catch{Ie=0}finally{q.value=!1}});if(await new Promise(Ne=>setTimeout(Ne,0)),ee.value?.focusBulk(),!_e)return;const ke=je;if(ke){Le(ke.message||qr("backend::lang.list.bulk_done",ke.affected)),p.value=[],await K(),x.value+=1;return}if(Ie===409){Le(w("backend::lang.list.bulk_stale"),"danger"),p.value=[],await K();return}if(Ie===403){Le(We||w("backend::lang.list.action_forbidden"),"danger");return}Le(We||w("backend::lang.extension.action_failed"),"danger")}async function Se(de){if(Y.value===null){Y.value=de;try{const se=await Be.POST("/{vendor}/{plugin}/{controller}/toolbar/{action}",{params:{path:{...a,action:de}},body:{}});if(se.data){se.data.data.message&&Le(se.data.data.message),await K(),x.value+=1;return}Le(se.error?.error.message||w("backend::lang.extension.action_failed"),"danger")}catch{Le(w("backend::lang.extension.action_failed"),"danger")}finally{Y.value=null}}}return(de,se)=>(v(),b("section",W5,[C("header",K5,[C("div",G5,[C("h1",Y5,T(O.value),1),M.value?(v(),b("p",J5,T(M.value),1)):ae("",!0)]),z.value.length>0||H.value?(v(),b("div",Z5,[H.value?(v(),j(et,{key:0,"data-action":"reorder",variant:"outline",icon:u(zy),to:H.value},{default:F(()=>[we(T(u(w)("backend::lang.messages.list.reorder")),1)]),_:1},8,["icon","to"])):ae("",!0),(v(!0),b(he,null,qe(z.value,Te=>(v(),j(et,{key:Te,"data-action":"create",variant:"primary",icon:u(di),to:`${u(l)}/create`},{default:F(()=>[we(T(u(Je)(E.value?.create)),1)]),_:1},8,["icon","to"]))),128))])):ae("",!0)]),o.value?.headerPartial?(v(),j(Mf,{key:0,variant:"header",source:a,name:o.value.headerPartial,"reload-key":x.value},null,8,["name","reload-key"])):ae("",!0),C("div",X5,[o.value?(v(),j(y5,{key:0,ref_key:"toolbar",ref:ee,"show-search":o.value.showSearch,search:$.value,"search-prompt":u(Je)(E.value?.searchPrompt),buttons:N.value,"selected-count":p.value.length,"selected-label":u(Je)(E.value?.selected,p.value.length),"delete-label":u(Je)(E.value?.deleteSelected,p.value.length),actions:S.value,"busy-action":Y.value,"bulk-actions":Q.value,"bulk-busy":q.value,"onUpdate:search":ce,onDelete:ue,onAction:Se,onBulk:$e},null,8,["show-search","search","search-prompt","buttons","selected-count","selected-label","delete-label","actions","busy-action","bulk-actions","bulk-busy"])):ae("",!0),o.value&&o.value.filters.length>0?(v(),j(i5,{key:1,filters:o.value.filters,values:y.value.filter??{},source:a,onUpdate:J},null,8,["filters","values"])):ae("",!0),m.value&&!c.value?(v(),b("div",Q5,[C("p",eP,T(u(w)("backend::lang.list.load_failed")),1),f.value&&Ae.value?(v(),j(et,{key:0,"data-action":"reset-list",onClick:G},{default:F(()=>[we(T(u(w)("backend::lang.list.reset_list")),1)]),_:1})):ae("",!0)])):(v(),j(a1,{key:3,columns:o.value?.columns??[],rows:i.value,loading:c.value||!o.value,"row-link":Ee,selectable:o.value?.showCheckboxes??!1,selected:p.value,sortable:o.value?.showSorting??!1,sort:ge.value,"row-states":R.value,"state-labels":U.value,"onUpdate:selected":se[0]||(se[0]=Te=>p.value=Te),onSort:A},{empty:F(()=>[y.value.search?(v(),b("div",tP,[C("span",nP,[V(u(rg),{size:24,"aria-hidden":"true"})]),C("p",aP,T(u(Je)(E.value?.emptySearch,void 0,{term:y.value.search})),1),C("p",rP,T(u(Je)(E.value?.emptySearchHint,void 0,{term:y.value.search})),1),V(et,{"data-action":"clear-search",onClick:g},{default:F(()=>[we(T(u(w)("backend::lang.list.clear_search")),1)]),_:1})])):(v(),b("p",lP,T(u(Je)(E.value?.empty)||o.value?.noRecordsMessage||u(w)("backend::lang.list.no_records")),1))]),_:1},8,["columns","rows","loading","selectable","selected","sortable","sort","row-states","state-labels"])),V(r1,{meta:s.value,loading:c.value||!o.value,"per-page-options":ne.value,"per-page":fe.value,onPage:D,onPerPage:re},null,8,["meta","loading","per-page-options","per-page"])]),V(hr,{open:u(k).request.value!==null,message:u(k).request.value?.message??"","confirm-label":u(k).request.value?.confirmLabel,danger:u(k).request.value?.danger,busy:u(k).busy.value,onConfirm:u(k).confirm,onCancel:u(k).cancel},null,8,["open","message","confirm-label","danger","busy","onConfirm","onCancel"])]))}}),sr="X-Session-Key",l1="X-Child-Session-Key",sP=32;function Xo(){const e=new Uint8Array(sP);globalThis.crypto.getRandomValues(e);let t="";for(const n of e)t+=String.fromCharCode(n);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}const uP="X-Upload-Id";async function Za(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 Cs(e){try{const t=await e();return t.response.ok&&t.data instanceof Blob?t.data:null}catch{return null}}function ya(e){return encodeURIComponent(String(e))}function o1(e){return`${Ks.api}/${ya(e.vendor)}/${ya(e.plugin)}/${ya(e.controller)}`}function cP(e){try{return e===""?null:JSON.parse(e)}catch{return null}}function Pf(e){if(!e)return"";for(const t of Object.values(e.details??{})){const n=Array.isArray(t)?t.find(a=>typeof a=="string"&&a!==""):t;if(typeof n=="string"&&n!=="")return n}return e.message??""}function dP(e,t){const n=t;if((e===200||e===201)&&n?.data)return{ok:!0,item:n.data};const a=Pf(n?.error);return e===413?{ok:!1,reason:"too_large",status:e,message:a}:e===422?{ok:!1,reason:"invalid",status:e,message:a}:e===0?{ok:!1,reason:"network",status:e,message:a}:{ok:!1,reason:"failed",status:e,message:a}}function i1(e,t,n,a,r){let l=null,o=!1;const i=()=>new Promise(c=>{const d=new XMLHttpRequest;l=d,d.open("POST",e),d.setRequestHeader("X-Requested-With",Ny),d.setRequestHeader("Accept","application/json");for(const[m,p]of Object.entries(n))d.setRequestHeader(m,p);r&&d.setRequestHeader(uP,r),d.upload.onprogress=m=>{m.lengthComputable&&a?.(m.loaded,m.total)},d.onload=()=>c({status:d.status,body:cP(d.responseText)}),d.onerror=()=>c("network"),d.ontimeout=()=>c("network"),d.onabort=()=>c("aborted");const f=new FormData;f.append("file_data",t,t.name),d.send(f)});return{promise:(async()=>{let c=await i();return typeof c=="object"&&c.status===401&&!o&&(await qd()&&(c=o?"aborted":await i()),typeof c=="object"&&c.status===401&&jk()),c==="aborted"||o?{ok:!1,reason:"aborted",status:0,message:""}:c==="network"?{ok:!1,reason:"network",status:0,message:""}:dP(c.status,c.body)})(),abort(){o=!0,l?.abort()}}}function s1(e,t,n,a){const r={...e,id:t,field:n},l={[sr]:a},o=`${o1(e)}/${ya(t)}/files/${ya(n)}`;return{list:()=>Za(()=>Be.GET("/{vendor}/{plugin}/{controller}/{id}/files/{field}",{params:{path:r,header:l}})),upload:(i,s,c)=>i1(o,i,{...l},s,c),update:(i,s)=>Za(()=>Be.PUT("/{vendor}/{plugin}/{controller}/{id}/files/{field}/{file}",{params:{path:{...r,file:i},header:l},body:s})),remove:i=>Za(()=>Be.DELETE("/{vendor}/{plugin}/{controller}/{id}/files/{field}/{file}",{params:{path:{...r,file:i},header:l}})),reorder:i=>Za(()=>Be.POST("/{vendor}/{plugin}/{controller}/{id}/files/{field}/reorder",{params:{path:r,header:l},body:{ids:i}})),download:i=>Cs(()=>Be.GET("/{vendor}/{plugin}/{controller}/{id}/files/{field}/{file}/download",{params:{path:{...r,file:i},header:l},parseAs:"blob"})),thumb:i=>Cs(()=>Be.GET("/{vendor}/{plugin}/{controller}/{id}/files/{field}/{file}/thumb",{params:{path:{...r,file:i},header:l},parseAs:"blob"}))}}function fP(e,t,n,a,r,l,o){const i={...e,id:t,name:n,child:a,field:r},s={[sr]:l,[l1]:o},c=`${o1(e)}/${ya(t)}/relations/${ya(n)}/records/${ya(a)}/files/${ya(r)}`;return{list:()=>Za(()=>Be.GET("/{vendor}/{plugin}/{controller}/{id}/relations/{name}/records/{child}/files/{field}",{params:{path:i,header:s}})),upload:(d,f,m)=>i1(c,d,{...s},f,m),update:(d,f)=>Za(()=>Be.PUT("/{vendor}/{plugin}/{controller}/{id}/relations/{name}/records/{child}/files/{field}/{file}",{params:{path:{...i,file:d},header:s},body:f})),remove:d=>Za(()=>Be.DELETE("/{vendor}/{plugin}/{controller}/{id}/relations/{name}/records/{child}/files/{field}/{file}",{params:{path:{...i,file:d},header:s}})),reorder:d=>Za(()=>Be.POST("/{vendor}/{plugin}/{controller}/{id}/relations/{name}/records/{child}/files/{field}/reorder",{params:{path:i,header:s},body:{ids:d}})),download:d=>Cs(()=>Be.GET("/{vendor}/{plugin}/{controller}/{id}/relations/{name}/records/{child}/files/{field}/{file}/download",{params:{path:{...i,file:d},header:s},parseAs:"blob"})),thumb:d=>Cs(()=>Be.GET("/{vendor}/{plugin}/{controller}/{id}/relations/{name}/records/{child}/files/{field}/{file}/thumb",{params:{path:{...i,file:d},header:s},parseAs:"blob"}))}}const pP=new Set(["readonly","placeholder","maxlength","minlength","min","max","step","autocomplete","spellcheck","pattern"]);function Jl(e){const t={};for(const[n,a]of Object.entries(e.attributes??{})){const r=n.toLowerCase();!pP.has(r)||a===null||a===!1||(t[r]=a)}return t}function Vt(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 Rf(e){return typeof e=="string"?e!==""&&e!=="0"&&e.toLowerCase()!=="false":!!e}function u1(e,t){return typeof e=="number"?t?1:0:t}function c1(e,t){const n={};if(t===null||typeof t!="object"||Array.isArray(t))return n;const a=t;for(const r of e.permissionOptions??[]){const l=Number(a[r.code]);(l===1||e.mode==="radio"&&l===-1)&&(n[r.code]=l)}return n}const vP=new Set(["mltext","mltextarea","mlmarkdown"]);function mP(e){return e!==void 0&&vP.has(e)}function ur(e){return e?mP(e.type)||!!e.element&&e.translatable===!0:!1}const Qo="summer:ml-locale";function hP(e){typeof window>"u"||e===""||window.dispatchEvent(new CustomEvent(Qo,{detail:e}))}function Jn(e){const t={};if(e===null||typeof e!="object"||Array.isArray(e))return t;for(const[n,a]of Object.entries(e))typeof a=="string"&&(t[n]=a);return t}const yP={class:"flex min-w-0 flex-col"},gP=["for"],bP={key:0,class:"text-danger","aria-hidden":"true"},_P=["id"],xP=["id","name","checked","aria-invalid","aria-describedby"],kP=oe({__name:"CheckboxField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=t,r=_(()=>Rf(n.modelValue));function l(o){a("update:modelValue",u1(n.modelValue,o.target.checked))}return(o,i)=>(v(),b("div",{class:ye([e.invalid?"border-danger":"border-border","flex items-center justify-between gap-4 rounded-inner border px-4 py-3.5"]),"data-toggle-card":""},[C("div",yP,[C("label",{for:e.controlId,class:"font-semibold"},[we(T(e.field.label||e.field.name),1),e.field.required?(v(),b("span",bP," *")):ae("",!0)],8,gP),e.field.comment?(v(),b("p",{key:0,id:`${e.controlId}-comment`,class:"text-[13px] text-muted"},T(e.field.comment),9,_P)):ae("",!0)]),C("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,xP)],2))}});function wP(e){return e==="date"||e==="time"?e:"datetime"}function rn(e,t=2){return String(e).padStart(t,"0")}const $P=/(Z|[+-]\d{2}:?\d{2})$/i;function CP(e,t,n=!1){if(typeof t!="string"||t.trim()==="")return null;const a=t.trim();try{if(e==="date")return Mg(a.slice(0,10));if(e==="time"){const l=/(\d{2}:\d{2}(:\d{2})?)/.exec(a.includes("T")?a.slice(a.indexOf("T")):a);return l?aE(l[1]):null}const r=$P.test(a)?a.replace(" ","T"):`${a.replace(" ","T")}Z`;return n?ta(Av(r,"UTC")):Av(r,Nn())}catch{return null}}function pc(e){return`${rn(e.year,4)}-${rn(e.month)}-${rn(e.day)}`}function vc(e){return`${rn(e.hour)}:${rn(e.minute)}:${rn(e.second)}`}function hm(e,t,n=!1){if(!t)return null;if(e==="time")return"hour"in t?vc(t):null;if(!("year"in t))return null;if(e==="date")return pc(t);if(n){const l=t instanceof $a?ta(t):t,o="hour"in l?vc(l):"00:00:00";return`${pc(l)}T${o}Z`}const a=t instanceof $a?t:Jd(t instanceof mt?ta(t):t,Nn()),r=au(a,"UTC");return`${pc(r)}T${vc(r)}Z`}const SP={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm",time:"HH:mm"},EP=/\[([^\]]*)\]|YYYY|YY|MMMM|MMM|MM|M|dddd|ddd|DD|D|HH|H|hh|h|mm|ss|A|a/g;function AP(e){return"year"in e?new mt(e.year,e.month,e.day):null}function mc(e,t,n,a){return new An(e,{...n,timeZone:"UTC"}).formatToParts(t.toDate("UTC")).find(l=>l.type===a)?.value??""}function TP(e,t,n,a){if(!e)return"";const r=n||SP[t],l=AP(e),o="hour"in e?e:null,i=/D/.test(r.replace(/\[[^\]]*\]/g,""));return r.replace(EP,(s,c)=>{if(c!==void 0)return c;switch(s){case"YYYY":return l?rn(l.year,4):"";case"YY":return l?rn(l.year%100):"";case"MMMM":case"MMM":{if(!l)return"";const d=s==="MMMM"?"long":"short";return i?mc(a,l,{day:"numeric",month:d},"month"):mc(a,l,{month:d},"month")}case"MM":return l?rn(l.month):"";case"M":return l?String(l.month):"";case"dddd":case"ddd":return l?mc(a,l,{weekday:s==="dddd"?"long":"short"},"weekday"):"";case"DD":return l?rn(l.day):"";case"D":return l?String(l.day):"";case"HH":return o?rn(o.hour):"";case"H":return o?String(o.hour):"";case"hh":return o?rn(o.hour%12||12):"";case"h":return o?String(o.hour%12||12):"";case"mm":return o?rn(o.minute):"";case"ss":return o?rn(o.second):"";case"A":return o?o.hour<12?"AM":"PM":"";case"a":return o?o.hour<12?"am":"pm":"";default:return s}})}const DP=new mt(2026,10,4);function OP(e,t){if(typeof t=="number"&&Number.isInteger(t)&&t>=0&&t<=6)return t;try{return(7-nu(DP,e))%7}catch{return 1}}function ym(e){if(e)try{return Mg(e.slice(0,10))}catch{return}}function MP(e,t=pi(Nn())){const n=ym(e.minDate),a=ym(e.maxDate);if(n||a)return{min:n,max:a};const r=e.yearRange??[];return r.length===1&&typeof r[0]=="number"?{min:new mt(t.year-r[0],1,1),max:new mt(t.year+r[0],12,31)}:r.length===2&&typeof r[0]=="number"&&typeof r[1]=="number"?{min:new mt(r[0],1,1),max:new mt(r[1],12,31)}:{}}function hd(e,t,n,a){if(!e||t==="time")return;if(t==="date")return e;const r=new lr(e.year,e.month,e.day,a?23:0,a?59:0,a?59:0);return n?r:au(Jd(r,"UTC"),Nn())}function PP(e,t){const n=pi(Nn());return hd(n,e==="time"?"datetime":e,t,!1)??n}const RP=["id","aria-describedby"],IP={key:0},qP={key:1,class:"text-muted","data-empty":""},NP=["aria-label"],LP={class:"flex size-8 shrink-0 items-center justify-center text-muted","aria-hidden":"true"},BP=["data-mode"],FP=["aria-label"],VP={key:0,"data-datepicker-time":"",class:"mt-3 flex items-center gap-2 border-t border-border pt-3"},po="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",zP=oe({__name:"DatepickerField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=t,r=_(()=>wP(n.field.mode)),l=_(()=>r.value==="datetime"&&!!n.field.ignoreTimezone),o=_(()=>Nl.value||"pl"),i=_(()=>{const ve=n.field.attributes?.readonly;return!!n.field.readOnly||ve!=null&&ve!==!1}),s=_(()=>CP(r.value,n.modelValue,l.value)),c=_(()=>r.value==="time"?null:s.value),d=_(()=>r.value==="time"?s.value:null),f=_(()=>MP(n.field)),m=_(()=>hd(f.value.min,r.value,l.value,!1)),p=_(()=>hd(f.value.max,r.value,l.value,!0)),h=PP(r.value,l.value),x=_(()=>OP(o.value,n.field.firstDay)),k=_(()=>n.field.twelveHour?12:24),y=_(()=>r.value==="date"?"day":"minute"),$=_(()=>TP(s.value,r.value,n.field.displayFormat,o.value)),E=_(()=>!n.field.required&&s.value!==null&&!i.value),O=_(()=>{const ve=c.value;return ve?!!m.value&&ve.compare(m.value)<0||!!p.value&&ve.compare(p.value)>0:!1}),M=new Set(["day","month","year","hour","minute","second"]),B=P(null),z=P(!1);function H(){const ve=B.value;if(!ve){z.value=!1;return}const Ae=Array.from(ve.querySelectorAll("[data-reka-date-field-segment], [data-reka-time-field-segment]")).filter(pe=>M.has(pe.dataset.rekaDateFieldSegment??pe.dataset.rekaTimeFieldSegment??"")),L=Ae.filter(pe=>!pe.hasAttribute("data-placeholder")).length;z.value=L>0&&L!!n.invalid||O.value||z.value),Y=_(()=>hm(r.value,s.value,l.value));function R(ve){const Ae=hm(r.value,ve??null,l.value);S(),!(Ae===Y.value&&(Ae!==null||n.modelValue===null))&&a("update:modelValue",Ae)}function U(ve){if(!ve||r.value!=="datetime"){R(ve);return}const Ae=c.value,L=ee.value,pe=!Ae||Ae.year!==ve.year||Ae.month!==ve.month||Ae.day!==ve.day,G=!("hour"in ve)||ve.hour!==L.hour||ve.minute!==L.minute;pe&&G&&(ve=ne(ve,L)),q.value=ve,R(ve)}function Q(){a("update:modelValue",null),S()}const q=P(null);ze(c,ve=>{q.value=ve},{immediate:!0});const ee=_(()=>{const ve=q.value??c.value;return ve&&"hour"in ve?new Gn(ve.hour,ve.minute):new Gn(0,0)});function ne(ve,Ae){return"hour"in ve?ve.set({hour:Ae.hour,minute:Ae.minute,second:0,millisecond:0}):new lr(ve.year,ve.month,ve.day,Ae.hour,Ae.minute)}function fe(ve){if(!ve)return;const Ae=ve instanceof Gn?ve:new Gn(ve.hour,ve.minute),L=q.value??c.value??h,pe=ne(L,Ae);q.value=pe,R(pe)}function ge(ve){return ve.charAt(0).toLocaleUpperCase(o.value)+ve.slice(1)}const Ee=_(()=>[Vt(N.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 be(ve){return ve==="literal"?"text-muted":ve==="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(ve,Ae)=>i.value?(v(),b("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"},[$.value!==""?(v(),b("span",IP,T($.value),1)):(v(),b("span",qP,"—"))],8,RP)):r.value==="time"?(v(),b("div",{key:1,ref_key:"container",ref:B,"data-datepicker":"","data-mode":"time",class:ye(Ee.value),onKeyup:S,onFocusout:S},[V(u(dm),{id:e.controlId,"model-value":d.value,locale:o.value,"hour-cycle":k.value,granularity:"minute",name:e.field.name,required:e.field.required||void 0,"aria-invalid":N.value?"true":void 0,"aria-describedby":e.describedBy||void 0,class:"flex min-w-0 flex-1 items-center","onUpdate:modelValue":R},{default:F(({segments:L})=>[(v(!0),b(he,null,qe(L,pe=>(v(),j(u(fm),{key:pe.part,part:pe.part,class:ye(be(pe.part))},{default:F(()=>[we(T(pe.value),1)]),_:2},1032,["part","class"]))),128))]),_:1},8,["id","model-value","locale","hour-cycle","name","required","aria-invalid","aria-describedby"]),E.value?(v(),b("button",{key:0,type:"button","data-action":"clear","aria-label":u(w)("backend::lang.datepicker.clear"),class:ye(po),onClick:Q},[V(u(hn),{size:16,"aria-hidden":"true"})],8,NP)):ae("",!0),C("span",LP,[V(u(Wc),{size:16})])],34)):(v(),j(u(Q4),{key:2,id:e.controlId,"model-value":c.value,"default-placeholder":u(h),locale:o.value,granularity:y.value,"hour-cycle":k.value,"hide-time-zone":r.value!=="datetime"||l.value,"min-value":m.value,"max-value":p.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":U},{default:F(()=>[C("div",{ref_key:"container",ref:B,"data-datepicker":"","data-mode":r.value,class:ye(Ee.value),onKeyup:S,onFocusout:S},[V(u(hD),{"aria-invalid":N.value?"true":void 0,"aria-describedby":e.describedBy||void 0,class:"flex min-w-0 flex-1 items-center overflow-hidden"},{default:F(({segments:L})=>[(v(!0),b(he,null,qe(L,pe=>(v(),j(u(OD),{key:pe.part,part:pe.part,class:ye(be(pe.part))},{default:F(()=>[we(T(pe.value),1)]),_:2},1032,["part","class"]))),128))]),_:1},8,["aria-invalid","aria-describedby"]),E.value?(v(),b("button",{key:0,type:"button","data-action":"clear","aria-label":u(w)("backend::lang.datepicker.clear"),class:ye(po),onClick:Q},[V(u(hn),{size:16,"aria-hidden":"true"})],8,FP)):ae("",!0),V(u(BD),{"data-action":"open-calendar","aria-label":u(w)("backend::lang.datepicker.open_calendar"),class:ye(po)},{default:F(()=>[V(u(Hy),{size:16,"aria-hidden":"true"})]),_:1},8,["aria-label"])],42,BP),V(u(vD),{"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(()=>[V(u(tD),null,{default:F(({weekDays:L,grid:pe})=>[V(u(ED),{class:"flex h-9 items-center justify-between"},{default:F(()=>[V(u(ID),{"aria-label":u(w)("backend::lang.datepicker.prev_month"),class:ye(po)},{default:F(()=>[V(u(Gs),{size:16,"aria-hidden":"true"})]),_:1},8,["aria-label"]),V(u(TD),{class:"font-semibold"},{default:F(({headingValue:G})=>[we(T(ge(G)),1)]),_:1}),V(u(PD),{"aria-label":u(w)("backend::lang.datepicker.next_month"),class:ye(po)},{default:F(()=>[V(u(ci),{size:16,"aria-hidden":"true"})]),_:1},8,["aria-label"])]),_:1}),(v(!0),b(he,null,qe(pe,G=>(v(),j(u(gD),{key:G.value.toString(),class:"mt-2 w-full border-collapse select-none"},{default:F(()=>[V(u(kD),null,{default:F(()=>[V(u(cm),{class:"flex"},{default:F(()=>[(v(!0),b(he,null,qe(L,K=>(v(),j(u(CD),{key:K,class:"flex h-9 w-9 items-center justify-center text-[13px] font-normal text-muted"},{default:F(()=>[we(T(K),1)]),_:2},1024))),128))]),_:2},1024)]),_:2},1024),V(u(_D),null,{default:F(()=>[(v(!0),b(he,null,qe(G.rows,(K,ie)=>(v(),j(u(cm),{key:`week-${ie}`,class:"flex"},{default:F(()=>[(v(!0),b(he,null,qe(K,Z=>(v(),j(u(aD),{key:Z.toString(),date:Z,class:"p-0"},{default:F(()=>[V(u(lD),{day:Z,month:G.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"?(v(),b("div",VP,[V(u(Wc),{size:16,class:"shrink-0 text-muted","aria-hidden":"true"}),V(u(dm),{"model-value":ee.value,locale:o.value,"hour-cycle":k.value,granularity:"minute","hide-time-zone":"",class:"flex min-w-0 items-center","onUpdate:modelValue":fe},{default:F(({segments:L})=>[(v(!0),b(he,null,qe(L,pe=>(v(),j(u(fm),{key:pe.part,part:pe.part,class:ye(be(pe.part))},{default:F(()=>[we(T(pe.value),1)]),_:2},1032,["part","class"]))),128))]),_:1},8,["model-value","locale","hour-cycle"])])):ae("",!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"]))}}),If=Symbol("summer.form.values"),qf=Symbol("summer.form.patch"),Nf=Symbol("summer.form.locale"),Ss=Symbol("summer.form.enabledLocales"),d1=Symbol("summer.form.assets");function Lf(){const e=P(0);return{activeUploads:e,beginUpload(){e.value++;let t=!1;return()=>{t||(t=!0,e.value>0&&e.value--)}}}}const Zl=Symbol("summer.form.session"),gm="summer-action",jP="summer-result",bm="summer-change",_m="summer-upload",UP="summer-upload-result",f1=5e3,Bf=Symbol("summer.form.feedback"),p1=Symbol("summer.form.fieldScope"),v1=Symbol("summer.form.dependentCache"),HP=["data-dependent"],WP={class:"relative"},KP=["id","name","value","disabled","required","aria-required","aria-invalid","aria-busy","aria-describedby"],GP={key:0,value:"state",class:"text-muted"},YP=["value"],JP=["id"],ZP={key:1,class:"flex flex-wrap items-center gap-2"},XP=["id"],Li="empty",Bi="placeholder",QP=oe({__name:"DropdownField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=t,r=" ".repeat(4),l=ct(p1,null),o=ct(Bf,null),i=ct(v1,null)??new Map,s=_(()=>n.field.dependsOn??""),c=_(()=>s.value!==""),d=P("waiting"),f=P([]),m=_(()=>{const ee=l?.values.value[s.value];return ee==null||ee===""||typeof ee=="object"?null:String(ee)}),p=_(()=>l?.fields.value.find(ee=>ee.name===s.value)),h=_(()=>p.value?.label||s.value),x=_(()=>(p.value?.options??[]).find(ne=>y(ne.value,m.value))?.label??m.value??""),k=_(()=>c.value?f.value:n.field.options??[]);function y(ee,ne){return ee==null||ne===null||ne===void 0?ee===ne||ee==null&&ne==null:String(ee)===String(ne)}function $(){return n.modelValue!==null&&n.modelValue!==void 0&&n.modelValue!==""}function E(){$()&&(a("update:modelValue",null),o?.announce(w("backend::lang.form.dependent_cleared",{field:n.field.label||n.field.name})))}function O(ee,ne){if(!ee.applies){f.value=[],d.value="unused",ne&&E();return}f.value=ee.options.map(fe=>({value:fe.value,label:r.repeat(Math.max(0,fe.depth))+fe.label})),d.value=f.value.length>0?"ready":"empty",ne&&$()&&!f.value.some(fe=>y(fe.value,n.modelValue))&&E()}let M=0,B=!1;async function z(ee){const ne=++M,fe=m.value;if(fe===null){f.value=[],d.value="waiting",ee&&E();return}const ge=l?.path(n.field.name)??n.field.name,Ee=`${ge}\0${fe}`,be=i.get(Ee);if(be){O(be,ee);return}if(!n.source){B=ee,d.value="failed";return}d.value="loading";try{const{data:ve}=await Be.GET("/{vendor}/{plugin}/{controller}/fields/{field}/dependent-options",{params:{path:{...n.source,field:ge},query:{[`values[${s.value}]`]:fe}}});if(ne!==M)return;if(!ve){B=ee,d.value="failed";return}i.set(Ee,ve.data),O(ve.data,ee)}catch{ne===M&&(B=ee,d.value="failed")}}function H(){z(B)}ze(m,(ee,ne)=>{c.value&&ee!==ne&&z(!0)}),kt(()=>{c.value&&z(!1)}),At(()=>{M++});const S=_(()=>{const ee=k.value.findIndex(ne=>y(ne.value,n.modelValue));return ee>=0?String(ee):n.field.emptyOption!==void 0&&!$()?Li:Bi}),N=_(()=>{switch(d.value){case"waiting":return w("backend::lang.form.dependent_waiting",{field:h.value});case"loading":return w("backend::lang.form.loading_options");case"unused":return w("backend::lang.form.dependent_not_used");case"empty":return w("backend::lang.form.dependent_empty",{type:x.value});case"failed":return w("backend::lang.form.dependent_failed");default:return""}}),Y=_(()=>c.value&&d.value!=="ready"),R=_(()=>Y.value||S.value===Li||S.value===Bi),U=_(()=>`${n.controlId}-dependent`),Q=_(()=>[n.describedBy??"",c.value&&(d.value==="empty"||d.value==="failed")?U.value:""].filter(Boolean).join(" "));function q(ee){const ne=ee.target.value;if(ne===Li){a("update:modelValue",null);return}const fe=k.value[Number(ne)];fe&&a("update:modelValue",fe.value)}return(ee,ne)=>(v(),b("div",{class:"flex flex-col gap-1.5","data-dependent":c.value?d.value:void 0},[C("div",WP,[C("select",{id:e.controlId,name:e.field.name,value:Y.value?"state":S.value,disabled:Y.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":c.value&&d.value==="loading"?"true":void 0,"aria-describedby":Q.value||void 0,class:ye([[u(Vt)(e.invalid),R.value?"text-muted":""],"h-input appearance-none pr-10 disabled:cursor-not-allowed"]),onChange:q},[Y.value?(v(),b("option",GP,T(N.value),1)):(v(),b(he,{key:1},[e.field.emptyOption!==void 0?(v(),b("option",{key:0,value:Li,class:"text-muted"},T(e.field.emptyOption),1)):ae("",!0),S.value===Bi?(v(),b("option",{key:1,value:Bi,disabled:""},T(u(w)("backend::lang.form.select_placeholder")),1)):ae("",!0),(v(!0),b(he,null,qe(k.value,(fe,ge)=>(v(),b("option",{key:ge,value:String(ge),class:"text-text"},T(fe.label),9,YP))),128))],64))],42,KP),V(u(ar),{size:16,class:"pointer-events-none absolute top-1/2 right-3.5 -translate-y-1/2 text-muted","aria-hidden":"true"})]),c.value&&d.value==="empty"?(v(),b("p",{key:0,id:U.value,"data-dependent-hint":"",class:"text-[13px] text-muted"},T(N.value),9,JP)):c.value&&d.value==="failed"?(v(),b("div",ZP,[C("p",{id:U.value,role:"alert",class:"flex items-center gap-1.5 text-[13px] text-danger"},[V(u(bt),{size:14,class:"shrink-0","aria-hidden":"true"}),C("span",null,T(u(w)("backend::lang.form.dependent_failed")),1)],8,XP),V(et,{variant:"ghost",size:"sm",icon:u(Ki),"data-action":"dependent-retry",onClick:H},{default:F(()=>[we(T(u(w)("backend::lang.form.dependent_retry")),1)]),_:1},8,["icon"])])):ae("",!0)],8,HP))}}),e6={class:"flex items-start gap-3"},t6={class:"flex min-w-0 flex-1 flex-col gap-1"},n6={key:0,class:"flex items-center gap-4"},a6=["src"],r6={key:1,class:"flex size-16 shrink-0 items-center justify-center rounded-inner bg-subtle","aria-hidden":"true"},l6=["title"],o6={class:"flex flex-col gap-1.5"},i6=["for"],s6=["id","disabled","aria-invalid","aria-describedby"],u6=["id"],c6={class:"flex flex-col gap-1.5"},d6=["for"],f6=["id","disabled","aria-invalid","aria-describedby"],p6=["id"],v6={class:"flex gap-2.5"},m6=["disabled"],h6=["disabled"],y6=oe({__name:"FileCaptionModal",props:{open:{type:Boolean},file:{},routes:{},preview:{},idPrefix:{}},emits:["update:open","saved","closed"],setup(e,{emit:t}){const n=e,a=t,r=P(""),l=P(""),o=P({}),i=P(!1),s=yr();function c(k){const y={};for(const[$,E]of Object.entries(k??{})){const O=(Array.isArray(E)?E:[E]).filter(M=>typeof M=="string"&&M!=="");O.length>0&&(y[$]=O)}return y}const d=_(()=>`${n.idPrefix}-caption-title`),f=_(()=>`${n.idPrefix}-caption-description`),m=_(()=>!!n.file&&(r.value!==n.file.title||l.value!==n.file.description));ze(()=>n.open,k=>{k&&n.file&&(r.value=n.file.title??"",l.value=n.file.description??"",o.value={},i.value=!1)},{immediate:!0});async function p(k){if(k){a("update:open",!0);return}i.value||m.value&&!await s.ask({message:w("backend::lang.form.unsaved_confirm"),confirmLabel:w("backend::lang.form.discard"),danger:!0})||a("update:open",!1)}async function h(){if(!(i.value||!n.file||!n.routes)){i.value=!0;try{const k=await n.routes.update(n.file.id,{title:r.value,description:l.value});if(k.data){o.value={},a("saved",k.data),a("update:open",!1),Le(w("backend::lang.fileupload.details_saved"));return}if(k.status===422){o.value=c(k.error?.details),Object.keys(o.value).length===0&&(o.value={title:[Pf(k.error)||w("backend::lang.form.error_generic")]});return}Le(k.error?.message||w("backend::lang.form.error_generic"),"danger")}finally{i.value=!1}}}function x(k){k.preventDefault(),a("closed")}return(k,y)=>(v(),b(he,null,[V(u(jl),{open:e.open,"onUpdate:open":p},{default:F(()=>[V(u(mi),null,{default:F(()=>[V(u(Hl),{"data-dialog-overlay":"",class:"fixed inset-0 z-40 bg-overlay"}),V(u(Ul),{"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(()=>[C("div",e6,[C("div",t6,[V(u(Wl),{class:"text-[20px] font-bold tracking-[-0.01em]"},{default:F(()=>[we(T(u(w)("backend::lang.fileupload.attachment")),1)]),_:1}),V(u(Vr),{class:"text-muted"},{default:F(()=>[we(T(u(w)("backend::lang.fileupload.help")),1)]),_:1})]),V(u(Fl),{"data-action":"close","aria-label":u(w)("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(()=>[V(u(hn),{size:16,"aria-hidden":"true"})]),_:1},8,["aria-label","disabled"])]),e.file?(v(),b("div",n6,[e.preview?(v(),b("img",{key:0,src:e.preview,alt:"",class:"size-16 shrink-0 rounded-inner object-cover"},null,8,a6)):(v(),b("span",r6,[V(u(yl),{size:16,class:"text-muted"})])),C("span",{class:"min-w-0 truncate text-[13px] text-muted",title:e.file.file_name},T(e.file.file_name),9,l6)])):ae("",!0),C("form",{class:"flex flex-col gap-4",novalidate:"",onSubmit:vt(h,["prevent"])},[C("div",o6,[C("label",{for:d.value,class:"font-semibold"},T(u(w)("backend::lang.fileupload.title_label")),9,i6),Qn(C("input",{id:d.value,"onUpdate:modelValue":y[0]||(y[0]=$=>r.value=$),type:"text","data-caption-title":"",disabled:i.value,"aria-invalid":o.value.title?"true":void 0,"aria-describedby":o.value.title?`${d.value}-error`:void 0,class:ye([u(Vt)(!!o.value.title),"h-input"])},null,10,s6),[[Rl,r.value]]),o.value.title?(v(),b("p",{key:0,id:`${d.value}-error`,class:"flex items-center gap-1.5 text-[13px] text-danger"},[V(u(bt),{size:14,class:"shrink-0","aria-hidden":"true"}),C("span",null,T(o.value.title.join(" ")),1)],8,u6)):ae("",!0)]),C("div",c6,[C("label",{for:f.value,class:"font-semibold"},T(u(w)("backend::lang.fileupload.description_label")),9,d6),Qn(C("textarea",{id:f.value,"onUpdate:modelValue":y[1]||(y[1]=$=>l.value=$),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:ye([u(Vt)(!!o.value.description),"min-h-input resize-y py-2.5"])},null,10,f6),[[Rl,l.value]]),o.value.description?(v(),b("p",{key:0,id:`${f.value}-error`,class:"flex items-center gap-1.5 text-[13px] text-danger"},[V(u(bt),{size:14,class:"shrink-0","aria-hidden":"true"}),C("span",null,T(o.value.description.join(" ")),1)],8,p6)):ae("",!0)]),C("div",v6,[C("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:y[2]||(y[2]=$=>p(!1))},T(u(w)("backend::lang.form.cancel")),9,m6),C("button",{type:"submit","data-action":"save-caption",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"},T(i.value?u(w)("backend::lang.form.saving"):u(w)("backend::lang.fileupload.details_submit")),9,h6)])],32)]),_:1})]),_:1})]),_:1},8,["open"]),V(hr,{open:u(s).request.value!==null,message:u(s).request.value?.message??"","confirm-label":u(s).request.value?.confirmLabel,danger:u(s).request.value?.danger,onConfirm:u(s).confirm,onCancel:u(s).cancel},null,8,["open","message","confirm-label","danger","onConfirm","onCancel"])],64))}}),g6=["id","data-field-name","aria-labelledby","aria-describedby","aria-busy"],b6={key:0,"data-fileupload-loading":"",class:"h-[112px] rounded-control bg-skel","aria-hidden":"true"},_6={key:1,role:"alert","data-fileupload-failed":"",class:"rounded-inner bg-danger-soft px-[18px] py-3.5 text-danger"},x6={key:0,"data-fileupload-empty":"",class:"flex min-h-input items-center rounded-control border border-border bg-subtle px-3.5 text-muted"},k6={key:1,"data-fileupload-grid":"",class:"grid grid-cols-[repeat(auto-fill,minmax(160px,1fr))] gap-4"},w6=["data-file-item","data-state","onDragover","onDrop"],$6={class:"relative flex aspect-square items-center justify-center bg-subtle"},C6=["href","aria-label"],S6=["src","alt","onError"],E6=["aria-label","onClick"],A6=["src","alt"],T6={key:2,"data-preview-unavailable":"",class:"flex flex-col items-center gap-2 text-[13px] text-muted"},D6=["data-handle","aria-label","onKeydown","onDragstart"],O6={key:5,class:"absolute top-2 right-2 flex gap-1"},M6=["data-caption","aria-label","onClick"],P6=["aria-label","onClick"],R6=["aria-label","onClick"],I6={class:"flex flex-col gap-1 p-2"},q6=["title"],N6={class:"flex items-center gap-2 text-[13px] text-muted tabular-nums"},L6={key:0},B6={key:1},F6={key:2},V6={key:3,"data-unsaved-chip":"",class:"inline-flex h-6 items-center rounded-pill bg-sel px-2 text-[13px] font-semibold text-text"},z6={key:1,"data-file-error":"",class:"text-[13px] text-danger"},j6={class:"sr-only"},U6={key:2,"data-fileupload-single":"",class:"flex flex-col gap-2"},H6=["data-file-item","data-state"],W6=["src","alt","onError"],K6={key:3,"data-preview-unavailable":"",class:"flex flex-col items-center gap-2 text-[13px] text-muted"},G6={class:"flex min-w-0 flex-1 flex-col gap-1"},Y6=["title"],J6={class:"flex items-center gap-2 text-[13px] text-muted tabular-nums"},Z6={key:0},X6={key:1},Q6={key:2},e8={key:3,"data-unsaved-chip":"",class:"inline-flex h-6 items-center rounded-pill bg-sel px-2 text-[13px] font-semibold text-text"},t8={key:1,"data-file-error":"",class:"text-[13px] text-danger"},n8={class:"sr-only"},a8={key:2,class:"mt-1 flex flex-wrap gap-2"},r8={key:3,"data-fileupload-rows":"",class:"flex flex-col gap-2"},l8=["data-file-item","data-state","onDragover","onDrop"],o8={class:"flex items-center gap-3"},i8=["data-handle","aria-label","onKeydown","onDragstart"],s8={class:"flex size-8 shrink-0 items-center justify-center overflow-hidden rounded-pager bg-subtle"},u8=["src","onError"],c8={class:"flex min-w-0 flex-1 flex-col leading-tight"},d8=["title"],f8=["title"],p8=["title"],v8={class:"flex shrink-0 items-center gap-2 text-[13px] text-muted tabular-nums"},m8={key:0},h8={key:1},y8={key:2},g8={key:3,"data-unsaved-chip":"",class:"inline-flex h-6 items-center rounded-pill bg-sel px-2 text-[13px] font-semibold text-text"},b8={class:"flex shrink-0 items-center gap-1"},_8=["href","aria-label"],x8=["aria-label","onClick"],k8=["data-caption","aria-label","onClick"],w8=["aria-label","onClick"],$8=["aria-label","onClick"],C8={key:1,"data-file-error":"",class:"text-[13px] text-danger"},S8={class:"sr-only"},E8=["aria-describedby"],A8={class:"flex size-10 items-center justify-center rounded-full bg-surface","aria-hidden":"true"},T8={class:"text-text"},D8={key:0,"data-fileupload-limits":"",class:"text-[13px] text-muted tabular-nums"},O8={key:5,"data-fileupload-limits":"",class:"text-[13px] text-muted tabular-nums"},M8={key:6,role:"alert","data-fileupload-too-many":"",class:"flex items-center gap-1.5 text-[13px] text-danger"},P8=["accept","multiple"],R8={class:"sr-only","aria-live":"polite","data-fileupload-live":""},I8=1<<20,q8=400,hc="inline-flex size-8 items-center justify-center rounded-pager border border-border bg-surface text-muted hover:text-text",N8="inline-flex size-8 items-center justify-center rounded-pager border border-border bg-surface text-muted hover:bg-danger-soft hover:text-danger",sl="inline-flex size-8 shrink-0 items-center justify-center rounded-pager text-muted hover:bg-hover hover:text-text",L8=oe({__name:"FileuploadField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},setup(e){const t=e,n=ct(Zl,null),a=["jpg","jpeg","png","gif","webp"],r=["image/jpeg","image/png","image/gif","image/webp"];let l=1;const o=P([]),i=P("loading"),s=P(!1),c=P(0),d=P(""),f=P(null),m=P(null),p=P(null),h=P(null),x=P(null),k=P(!1),y=P({}),$=P(new Set),E=new Set,O=[],M=n?n.routes(t.field.name):null;let B=null,z=null,H=!1,S=null,N=0,Y=!1;const R=_(()=>{const W=t.field.attributes?.readonly;return!!t.field.readOnly||W!=null&&W!==!1}),U=_(()=>t.field.multiple===!0),Q=_(()=>t.field.mode==="image"),q=_(()=>U.value?t.field.maxFiles:1),ee=_(()=>(n?.recordId??0)!==0),ne=_(()=>o.value.filter(W=>W.state!=="failed")),fe=_(()=>{if(U.value)return o.value;const W=ne.value,Oe=W[W.length-1];return o.value.filter(X=>X.state==="failed"||X===Oe)}),ge=_(()=>fe.value.filter(W=>W.state!=="failed").length),Ee=_(()=>R.value||i.value!=="ready"?!1:U.value?q.value===void 0||q.value===null||ne.value.lengthU.value&&!R.value&&typeof q.value=="number"&&ne.value.length>=q.value),ve=_(()=>t.field.fileTypes?.length?t.field.fileTypes.map(W=>W.toLowerCase()):Q.value&&!t.field.mimeTypes?.length?a:null),Ae=_(()=>(t.field.fileTypes?.length?t.field.fileTypes:t.field.mimeTypes??[]).join(", ")),L=_(()=>{const W=[];for(const Oe of t.field.fileTypes??[])W.push(`.${Oe.toLowerCase()}`);for(const Oe of t.field.mimeTypes??[])W.push(Oe.includes("/")?Oe:`.${Oe.toLowerCase()}`);return W.length===0&&Q.value&&W.push(...r),W.length>0?W.join(","):void 0}),pe=_(()=>t.field.prompt||w(U.value?"backend::lang.fileupload.default_prompt_many":"backend::lang.fileupload.default_prompt"));function G(W,Oe){return new Intl.NumberFormat(Nl.value,{minimumFractionDigits:Oe,maximumFractionDigits:Oe}).format(W)}function K(W){const Oe=["B","kB","MB","GB"];let X=W,Re=0;for(;X>=1e3&&Re{const W=t.field.maxFilesize;return typeof W=="number"?`${new Intl.NumberFormat(Nl.value).format(W)} MB`:""}),Z=_(()=>{const W=[];return Ae.value!==""&&W.push(w("backend::lang.fileupload.limits_types",{types:Ae.value})),ie.value!==""&&W.push(w("backend::lang.fileupload.limits_size",{size:ie.value})),U.value&&typeof q.value=="number"&&W.push(w("backend::lang.fileupload.limits_count",{current:ne.value.length,max:q.value})),W.join(" · ")});function te(W){const Oe=W.lastIndexOf(".");return Oe<0?"":W.slice(Oe+1).toLowerCase()}function ce(W){const Oe=t.field.mimeTypes??[];if(Oe.length===0||W.type==="")return!0;const X=W.type.toLowerCase(),Re=te(W.name);return Oe.some(Xe=>{const Lt=Xe.toLowerCase();return Lt.includes("/")?Lt.endsWith("/*")?X.startsWith(Lt.slice(0,-1)):X===Lt:Lt===Re})}function g(W){const Oe=ve.value;if(Oe&&!Oe.includes(te(W.name)))return w("backend::lang.fileupload.wrong_type",{name:W.name,types:Oe.join(", ")});if(!ce(W))return w("backend::lang.fileupload.wrong_type",{name:W.name,types:Ae.value});const X=t.field.maxFilesize;return typeof X=="number"&&W.size>Math.ceil(X*I8)?w("backend::lang.fileupload.too_large",{name:W.name,size:ie.value}):""}function A(W){return On({uid:l++,name:W.file_name,size:W.file_size,state:"done",progress:100,error:"",retryable:!1,file:W,source:null,handle:null,uploadId:""})}function D(){return globalThis.crypto?.randomUUID?.()??`u${Date.now().toString(36)}${Math.random().toString(36).slice(2,10)}`}function re(W,Oe){return On({uid:l++,name:W.name,size:W.size,state:Oe===""?"queued":"failed",progress:0,error:Oe,retryable:!1,file:null,source:Qi(W),handle:null,uploadId:D()})}function J(W){return o.value.find(Oe=>Oe.uid===W)}async function ue(W){if(!M){i.value="failed";return}W&&(i.value="loading");const Oe=await M.list();if(Y)return;if(!Oe.data){W&&(i.value="failed");return}const X=o.value.filter(Re=>Re.state!=="done");for(const Re of o.value)Re.state==="done"&&Yr(Re.uid);o.value=[...Oe.data.map(A),...X],i.value="ready"}function $e(){R.value||f.value?.click()}function Se(W){if(W.length===0||R.value)return;if(c.value=0,!U.value)for(const Xe of[...o.value])Xe.state!=="failed"&&(Xe.state!=="done"||Xe.file?.pending)&&ke(Xe);let Oe=U.value?typeof q.value=="number"?Math.max(q.value-ne.value.length,0):Number.POSITIVE_INFINITY:1,X=0;const Re=[];for(const Xe of W.slice(0,U.value?W.length:1)){const Lt=g(Xe);if(Lt===""&&Oe<=0){X++;continue}Lt===""&&Oe--,Re.push(re(Xe,Lt))}o.value=[...o.value,...Re],c.value=X,Ie()}function de(W){const Oe=W.target;Se(Array.from(Oe.files??[])),Oe.value=""}function se(W){return p.value===null&&Array.from(W.dataTransfer?.types??[]).includes("Files")}function Te(W){se(W)&&(W.preventDefault(),s.value=!0)}function De(W){se(W)&&(W.preventDefault(),s.value=!1,Se(Array.from(W.dataTransfer?.files??[])))}function Ie(){if(!M||o.value.some(Oe=>Oe.state==="uploading"))return;const W=o.value.find(Oe=>Oe.state==="queued");W&&je(W)}async function je(W){if(!M||!W.source)return;W.state="uploading",W.progress=0,W.error="",W.retryable=!1;const Oe=new Set(o.value.filter(Re=>Re.file).map(Re=>Re.file.id)),X=n?.beginUpload();try{const Re=M.upload(W.source,(nn,qa)=>{W.progress=qa>0?Math.min(100,Math.round(nn/qa*100)):0},W.uploadId||void 0);W.handle=Qi(Re);const Xe=await Re.promise;W.handle=null;const Lt=!!J(W.uid);if(Xe.ok)!Lt||Y?M.remove(Xe.item.id):(W.state="done",W.progress=100,W.file=Xe.item,W.name=Xe.item.file_name,W.size=Xe.item.file_size,n?.markDirty());else if(Xe.reason==="aborted"||Xe.reason==="network"){const nn=await We(Oe);if(Xe.reason==="aborted"){for(const qa of nn)M.remove(qa.id);o.value=o.value.filter(qa=>qa.uid!==W.uid),Yr(W.uid)}else Lt&&nn[0]&&nn.length===1?(W.state="done",W.progress=100,W.file=nn[0],W.name=nn[0].file_name,W.size=nn[0].file_size,n?.markDirty()):(W.state="failed",W.error=w("backend::lang.fileupload.upload_failed"),W.retryable=!0)}else if(Lt)switch(W.state="failed",Xe.reason){case"too_large":W.error=ie.value?w("backend::lang.fileupload.too_large",{name:W.name,size:ie.value}):Xe.message||w("backend::lang.fileupload.upload_failed");break;case"invalid":W.error=Xe.message||w("backend::lang.fileupload.upload_failed");break;default:W.error=Xe.message||w("backend::lang.fileupload.upload_failed"),W.retryable=Xe.status>=500}}finally{X?.(),Y||Ie()}}async function We(W){if(!M)return[];const Oe=await M.list();return Oe.data?Oe.data.filter(X=>X.pending&&!W.has(X.id)):[]}function _e(W){W.state!=="failed"||!W.source||(W.state="queued",W.error="",W.retryable=!1,Ie())}async function ke(W){const Oe=o.value.findIndex(Re=>Re.uid===W.uid);if(Oe<0)return;switch(o.value=o.value.filter(Re=>Re.uid!==W.uid),Yr(W.uid),W.state){case"uploading":W.handle?.abort(),n?.markDirty(),Ie();return;case"queued":case"failed":return}if(!M||!W.file)return;n?.markDirty();const X=await M.remove(W.file.id);if(!X.data&&!Y){const Re=[...o.value];Re.splice(Math.min(Oe,Re.length),0,W),o.value=Re,Le(X.error?.message||w("backend::lang.form.error_generic"),"danger")}}function Ne(){return o.value.map(W=>W.uid)}function Ye(W){const Oe=new Map(o.value.map(Xe=>[Xe.uid,Xe])),X=W.map(Xe=>Oe.get(Xe)).filter(Xe=>!!Xe),Re=o.value.filter(Xe=>!W.includes(Xe.uid));o.value=[...X,...Re]}function rt(){B!==null&&clearTimeout(B),B=setTimeout(()=>{B=null,Nt()},q8)}function St(){return o.value.filter(W=>W.state==="done"&&W.file).map(W=>W.file.id)}async function Nt(){if(!M)return;const W=St();if(H){S=W;return}const Oe=z;z=null;const X=++N;H=!0;try{const Re=await M.reorder(W);if(S)return;!Re.data&&!Y&&X===N&&(Oe&&Ye(Oe),Le(w("backend::lang.fileupload.reorder_failed"),"danger"))}finally{H=!1,S&&(S=null,Nt())}}function Ve(W,Oe){const X=o.value.findIndex(Lt=>Lt.uid===W);if(X<0||Oe<0||Oe>=o.value.length||Oe===X)return!1;z===null&&(z=Ne());const Re=[...o.value],[Xe]=Re.splice(X,1);return Re.splice(Oe,0,Xe),o.value=Re,d.value=w("backend::lang.fileupload.moved",{name:Xe.name,position:Oe+1,total:Re.length}),rt(),!0}async function Fe(W,Oe){const X=o.value.findIndex(Xe=>Xe.uid===Oe.uid);let Re;switch(W.key){case"ArrowUp":case"ArrowLeft":Re=X-1;break;case"ArrowDown":case"ArrowRight":Re=X+1;break;default:return}W.preventDefault(),Ve(Oe.uid,Re)&&(await Ze(),m.value?.querySelector(`[data-handle="${Oe.uid}"]`)?.focus())}function Ke(W,Oe){p.value=Oe.uid,W.dataTransfer&&(W.dataTransfer.effectAllowed="move",W.dataTransfer.setData("text/plain",Oe.name))}function Rt(W,Oe){p.value!==null&&(W.preventDefault(),h.value=Oe.uid)}function Pa(W,Oe){p.value!==null&&(W.preventDefault(),Ve(p.value,o.value.findIndex(X=>X.uid===Oe.uid)),gr())}function gr(){p.value=null,h.value=null}function Gr(W){const Oe=W.file?.content_type??W.source?.type??"";return r.includes(Oe.toLowerCase())}function jt(W){return!W.file||!Gr(W)||$.value.has(W.uid)?null:t.field.protected?y.value[W.uid]??null:W.file.thumb_url||W.file.url||null}function la(){return typeof URL.revokeObjectURL=="function"}function Yr(W){const Oe=y.value[W];if(Oe!==void 0){la()&&URL.revokeObjectURL(Oe);const X={...y.value};delete X[W],y.value=X}E.delete(W)}async function hi(W){if(!M||!W.file||E.has(W.uid)||typeof URL.createObjectURL!="function")return;E.add(W.uid);const Oe=await M.thumb(W.file.id);if(!(Y||!J(W.uid)||!E.has(W.uid))){if(!Oe){$.value=new Set([...$.value,W.uid]);return}y.value={...y.value,[W.uid]:URL.createObjectURL(Oe)}}}ze(()=>o.value.map(W=>`${W.uid}:${W.state}`).join(","),()=>{if(t.field.protected)for(const W of o.value)W.state==="done"&&Gr(W)&&hi(W)});function Jr(W){$.value=new Set([...$.value,W.uid])}async function eo(W,Oe){if(!M||!W.file||typeof URL.createObjectURL!="function")return;const X=await M.download(W.file.id);if(!X){Le(w("backend::lang.form.error_generic"),"danger");return}const Re=URL.createObjectURL(X);O.push(Re);const Xe=document.createElement("a");Xe.href=Re,Xe.rel="noopener",Oe?Xe.download=W.file.file_name:Xe.target="_blank",Xe.click()}function Ln(W){return t.field.useCaption&&W.file?.title?W.file.title:W.name}function Ra(W){return ee.value&&!!W.file?.pending}const oa=_(()=>x.value===null?void 0:J(x.value));function tn(W){x.value=W.uid,k.value=!0}function Ia(W){const Oe=oa.value;Oe&&(Oe.file=W)}function to(){const W=x.value;x.value=null,W!==null&&m.value?.querySelector(`[data-caption="${W}"]`)?.focus()}const br=_(()=>{const W=t.field.thumbOptions?.mode;return W==="fit"||W==="auto"?"object-contain":"object-cover"});return kt(()=>{ue(!0)}),n&&ze(n.revision,()=>{ue(!1)}),At(()=>{Y=!0,B!==null&&(clearTimeout(B),B=null);for(const W of o.value)W.handle?.abort();if(la()){for(const W of Object.values(y.value))URL.revokeObjectURL(W);for(const W of O)URL.revokeObjectURL(W)}}),(W,Oe)=>(v(),b("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"?(v(),b("span",b6)):i.value==="failed"?(v(),b("p",_6,T(u(w)("backend::lang.fileupload.load_failed")),1)):(v(),b(he,{key:2},[R.value&&fe.value.length===0?(v(),b("p",x6,T(u(w)("backend::lang.fileupload.empty")),1)):Q.value&&U.value&&fe.value.length>0?(v(),b("ul",k6,[(v(!0),b(he,null,qe(fe.value,X=>(v(),b("li",{key:X.uid,"data-file-item":X.uid,"data-state":X.state,class:ye([[X.state==="failed"?"border-danger":"border-border",p.value===X.uid?"opacity-50":"",h.value===X.uid&&p.value!==X.uid?"border-2 border-dashed border-primary bg-sel":""],"relative overflow-hidden rounded-inner border bg-surface"]),onDragover:Re=>Rt(Re,X),onDrop:Re=>Pa(Re,X)},[C("div",$6,[X.state==="uploading"?(v(),j(u($l),{key:0,size:20,class:"animate-spin text-muted","aria-hidden":"true"})):X.state==="failed"?(v(),j(u(bt),{key:1,size:16,class:"text-danger","aria-hidden":"true"})):X.state==="done"?(v(),b(he,{key:2},[jt(X)&&!e.field.protected&&X.file?.url?(v(),b("a",{key:0,href:X.file.url,target:"_blank",rel:"noopener",class:"block size-full","aria-label":u(w)("backend::lang.fileupload.open_preview",{name:X.name})},[C("img",{src:jt(X)??void 0,alt:Ln(X),class:ye([br.value,"size-full"]),onError:Re=>Jr(X)},null,42,S6)],8,C6)):jt(X)?(v(),b("button",{key:1,type:"button",class:"block size-full","aria-label":u(w)("backend::lang.fileupload.open_preview",{name:X.name}),onClick:Re=>eo(X,!1)},[C("img",{src:jt(X)??void 0,alt:Ln(X),class:ye([br.value,"size-full"])},null,10,A6)],8,E6)):$.value.has(X.uid)?(v(),b("span",T6,[V(u(mv),{size:20,"aria-hidden":"true"}),we(" "+T(u(w)("backend::lang.fileupload.preview_unavailable")),1)])):(v(),j(u(yl),{key:3,size:20,class:"text-muted","aria-hidden":"true"}))],64)):(v(),j(u(yl),{key:3,size:20,class:"text-muted","aria-hidden":"true"})),!R.value&&X.state==="done"?(v(),b("button",{key:4,type:"button",draggable:"true","data-handle":X.uid,"aria-label":u(w)("backend::lang.fileupload.move",{name:X.name}),class:ye([hc,"absolute top-2 left-2 cursor-grab"]),onKeydown:Re=>Fe(Re,X),onDragstart:Re=>Ke(Re,X),onDragend:gr},[V(u(ms),{size:16,"aria-hidden":"true"})],40,D6)):ae("",!0),R.value?ae("",!0):(v(),b("div",O6,[e.field.useCaption&&X.state==="done"?(v(),b("button",{key:0,type:"button","data-caption":X.uid,"aria-label":u(w)("backend::lang.fileupload.edit_details",{name:X.name}),class:ye(hc),onClick:Re=>tn(X)},[V(u(Mo),{size:16,"aria-hidden":"true"})],8,M6)):ae("",!0),X.state==="failed"&&X.retryable?(v(),b("button",{key:1,type:"button","data-action":"retry","aria-label":u(w)("backend::lang.fileupload.retry"),class:ye(hc),onClick:Re=>_e(X)},[V(u(Ki),{size:16,"aria-hidden":"true"})],8,P6)):ae("",!0),C("button",{type:"button","data-action":"remove-file","aria-label":X.state==="uploading"||X.state==="queued"?u(w)("backend::lang.fileupload.cancel_upload",{name:X.name}):u(w)("backend::lang.form.remove_item",{name:X.name}),class:ye(N8),onClick:Re=>ke(X)},[V(u(hn),{size:16,"aria-hidden":"true"})],8,R6)]))]),C("div",I6,[C("span",{class:"truncate text-[13px]",title:Ln(X)},T(Ln(X)),9,q6),C("span",N6,[X.state==="queued"?(v(),b("span",L6,T(u(w)("backend::lang.fileupload.queued")),1)):X.state==="uploading"?(v(),b("span",B6,T(u(w)("backend::lang.fileupload.uploading",{percent:X.progress})),1)):(v(),b("span",F6,T(K(X.size)),1)),Ra(X)?(v(),b("span",V6,T(u(w)("backend::lang.fileupload.unsaved")),1)):ae("",!0)]),X.state==="uploading"?(v(),j(u(ic),{key:0,"model-value":X.progress,max:100,"aria-label":u(w)("backend::lang.fileupload.uploading",{percent:X.progress}),class:"h-1 w-full overflow-hidden rounded-pill bg-subtle"},{default:F(()=>[V(u(sc),{class:"h-full bg-primary",style:Tn({width:`${X.progress}%`})},null,8,["style"])]),_:2},1032,["model-value","aria-label"])):ae("",!0),X.state==="failed"?(v(),b("p",z6,[C("span",j6,T(u(w)("backend::lang.fileupload.upload_error"))+": ",1),we(T(X.error),1)])):ae("",!0)])],42,w6))),128))])):Q.value&&!U.value&&fe.value.length>0?(v(),b("div",U6,[(v(!0),b(he,null,qe(fe.value,X=>(v(),b("div",{key:X.uid,"data-file-item":X.uid,"data-state":X.state,class:"flex items-start gap-4"},[C("div",{class:ye([X.state==="failed"?"border-danger":"border-border","flex size-40 shrink-0 items-center justify-center overflow-hidden rounded-inner border bg-subtle"])},[X.state==="uploading"?(v(),j(u($l),{key:0,size:20,class:"animate-spin text-muted","aria-hidden":"true"})):X.state==="failed"?(v(),j(u(bt),{key:1,size:16,class:"text-danger","aria-hidden":"true"})):jt(X)?(v(),b("img",{key:2,src:jt(X)??void 0,alt:Ln(X),class:ye([br.value,"size-full"]),onError:Re=>Jr(X)},null,42,W6)):$.value.has(X.uid)?(v(),b("span",K6,[V(u(mv),{size:20,"aria-hidden":"true"}),we(" "+T(u(w)("backend::lang.fileupload.preview_unavailable")),1)])):(v(),j(u(yl),{key:4,size:20,class:"text-muted","aria-hidden":"true"}))],2),C("div",G6,[C("span",{class:"truncate font-semibold",title:Ln(X)},T(Ln(X)),9,Y6),C("span",J6,[X.state==="queued"?(v(),b("span",Z6,T(u(w)("backend::lang.fileupload.queued")),1)):X.state==="uploading"?(v(),b("span",X6,T(u(w)("backend::lang.fileupload.uploading",{percent:X.progress})),1)):(v(),b("span",Q6,T(K(X.size)),1)),Ra(X)?(v(),b("span",e8,T(u(w)("backend::lang.fileupload.unsaved")),1)):ae("",!0)]),X.state==="uploading"?(v(),j(u(ic),{key:0,"model-value":X.progress,max:100,"aria-label":u(w)("backend::lang.fileupload.uploading",{percent:X.progress}),class:"h-1 w-full overflow-hidden rounded-pill bg-subtle"},{default:F(()=>[V(u(sc),{class:"h-full bg-primary",style:Tn({width:`${X.progress}%`})},null,8,["style"])]),_:2},1032,["model-value","aria-label"])):ae("",!0),X.state==="failed"?(v(),b("p",t8,[C("span",n8,T(u(w)("backend::lang.fileupload.upload_error"))+": ",1),we(T(X.error),1)])):ae("",!0),R.value?ae("",!0):(v(),b("div",a8,[X.state!=="failed"?(v(),j(et,{key:0,size:"sm",variant:"outline","data-action":"replace-file",icon:u(Gi),onClick:$e},{default:F(()=>[we(T(u(w)("backend::lang.fileupload.replace_file")),1)]),_:1},8,["icon"])):ae("",!0),X.state==="failed"&&X.retryable?(v(),j(et,{key:1,size:"sm",variant:"outline","data-action":"retry",icon:u(Ki),onClick:Re=>_e(X)},{default:F(()=>[we(T(u(w)("backend::lang.fileupload.retry")),1)]),_:1},8,["icon","onClick"])):ae("",!0),e.field.useCaption&&X.state==="done"?(v(),j(et,{key:2,size:"sm",variant:"outline","data-caption":X.uid,icon:u(Mo),onClick:Re=>tn(X)},{default:F(()=>[we(T(u(w)("backend::lang.fileupload.details_submit")),1)]),_:1},8,["data-caption","icon","onClick"])):ae("",!0),V(et,{size:"sm",variant:"danger","data-action":"remove-file",icon:u(hn),onClick:Re=>ke(X)},{default:F(()=>[we(T(u(w)("backend::lang.fileupload.remove_file")),1)]),_:1},8,["icon","onClick"])]))])],8,H6))),128))])):fe.value.length>0?(v(),b("ul",r8,[(v(!0),b(he,null,qe(fe.value,X=>(v(),b("li",{key:X.uid,"data-file-item":X.uid,"data-state":X.state,class:ye([[X.state==="failed"?"border-danger":"border-border",p.value===X.uid?"opacity-50":"",h.value===X.uid&&p.value!==X.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:Re=>Rt(Re,X),onDrop:Re=>Pa(Re,X)},[C("div",o8,[U.value&&!R.value&&X.state==="done"?(v(),b("button",{key:0,type:"button",draggable:"true","data-handle":X.uid,"aria-label":u(w)("backend::lang.fileupload.move",{name:X.name}),class:ye([sl,"cursor-grab"]),onKeydown:Re=>Fe(Re,X),onDragstart:Re=>Ke(Re,X),onDragend:gr},[V(u(ms),{size:16,"aria-hidden":"true"})],40,i8)):ae("",!0),C("span",s8,[X.state==="uploading"?(v(),j(u($l),{key:0,size:16,class:"animate-spin text-muted","aria-hidden":"true"})):X.state==="failed"?(v(),j(u(bt),{key:1,size:16,class:"text-danger","aria-hidden":"true"})):jt(X)?(v(),b("img",{key:2,src:jt(X)??void 0,alt:"",class:"size-8 object-cover",onError:Re=>Jr(X)},null,40,u8)):(v(),j(u(yl),{key:3,size:16,class:"text-muted","aria-hidden":"true"}))]),C("span",c8,[e.field.useCaption&&X.file?.title?(v(),b(he,{key:0},[C("span",{class:"truncate font-semibold",title:X.file.title},T(X.file.title),9,d8),C("span",{class:"truncate text-[13px] text-muted",title:X.name},T(X.name),9,f8)],64)):(v(),b("span",{key:1,class:"truncate",title:X.name},T(X.name),9,p8))]),C("span",v8,[X.state==="queued"?(v(),b("span",m8,T(u(w)("backend::lang.fileupload.queued")),1)):X.state==="uploading"?(v(),b("span",h8,T(u(w)("backend::lang.fileupload.uploading",{percent:X.progress})),1)):(v(),b("span",y8,T(K(X.size)),1)),Ra(X)?(v(),b("span",g8,T(u(w)("backend::lang.fileupload.unsaved")),1)):ae("",!0)]),!U.value&&!R.value&&X.state!=="failed"?(v(),j(et,{key:1,size:"sm",variant:"outline","data-action":"replace-file",icon:u(Gi),onClick:$e},{default:F(()=>[we(T(u(w)("backend::lang.fileupload.replace_file")),1)]),_:1},8,["icon"])):ae("",!0),C("span",b8,[X.state==="done"&&X.file?(v(),b(he,{key:0},[!e.field.protected&&X.file.url?(v(),b("a",{key:0,href:X.file.url,download:"",target:"_blank",rel:"noopener","aria-label":u(w)("backend::lang.fileupload.download",{name:X.name}),class:ye(sl)},[V(u(Kc),{size:16,"aria-hidden":"true"})],8,_8)):e.field.protected?(v(),b("button",{key:1,type:"button","data-action":"download","aria-label":u(w)("backend::lang.fileupload.download",{name:X.name}),class:ye(sl),onClick:Re=>eo(X,!0)},[V(u(Kc),{size:16,"aria-hidden":"true"})],8,x8)):ae("",!0),e.field.useCaption&&!R.value?(v(),b("button",{key:2,type:"button","data-caption":X.uid,"aria-label":u(w)("backend::lang.fileupload.edit_details",{name:X.name}),class:ye(sl),onClick:Re=>tn(X)},[V(u(Mo),{size:16,"aria-hidden":"true"})],8,k8)):ae("",!0)],64)):ae("",!0),X.state==="failed"&&X.retryable?(v(),b("button",{key:1,type:"button","data-action":"retry","aria-label":u(w)("backend::lang.fileupload.retry"),class:ye(sl),onClick:Re=>_e(X)},[V(u(Ki),{size:16,"aria-hidden":"true"})],8,w8)):ae("",!0),R.value?ae("",!0):(v(),b("button",{key:2,type:"button","data-action":"remove-file","aria-label":X.state==="uploading"||X.state==="queued"?u(w)("backend::lang.fileupload.cancel_upload",{name:X.name}):u(w)("backend::lang.form.remove_item",{name:X.name}),class:ye([sl,"hover:bg-danger-soft hover:text-danger"]),onClick:Re=>ke(X)},[V(u(hn),{size:16,"aria-hidden":"true"})],8,$8))])]),X.state==="uploading"?(v(),j(u(ic),{key:0,"model-value":X.progress,max:100,"aria-label":u(w)("backend::lang.fileupload.uploading",{percent:X.progress}),class:"h-1 w-full overflow-hidden rounded-pill bg-subtle"},{default:F(()=>[V(u(sc),{class:"h-full bg-primary",style:Tn({width:`${X.progress}%`})},null,8,["style"])]),_:2},1032,["model-value","aria-label"])):ae("",!0),X.state==="failed"?(v(),b("p",C8,[C("span",S8,T(u(w)("backend::lang.fileupload.upload_error"))+": ",1),we(T(X.error),1)])):ae("",!0)],42,l8))),128))])):ae("",!0),Ee.value?(v(),b("button",{key:4,type:"button","data-fileupload-dropzone":"","aria-describedby":e.describedBy||void 0,class:ye([[s.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:$e,onDragover:Te,onDragleave:Oe[0]||(Oe[0]=X=>s.value=!1),onDrop:De},[C("span",A8,[V(u(Gi),{size:20,class:"text-muted"})]),C("span",T8,T(pe.value),1),Z.value!==""?(v(),b("span",D8,T(Z.value),1)):ae("",!0)],42,E8)):be.value&&Z.value!==""?(v(),b("p",O8,T(Z.value),1)):ae("",!0),c.value>0?(v(),b("p",M8,[V(u(bt),{size:14,class:"shrink-0","aria-hidden":"true"}),C("span",null,T(u(qr)("backend::lang.fileupload.too_many",c.value,{max:q.value??0})),1)])):ae("",!0)],64)),C("input",{ref_key:"input",ref:f,type:"file",hidden:"",tabindex:"-1","data-fileupload-input":"",accept:L.value,multiple:U.value||void 0,onChange:de},null,40,P8),C("p",R8,T(d.value),1),e.field.useCaption?(v(),j(y6,{key:3,open:k.value,"onUpdate:open":Oe[1]||(Oe[1]=X=>k.value=X),file:oa.value?.file??null,routes:u(M),preview:oa.value?jt(oa.value):null,"id-prefix":e.controlId,onSaved:Ia,onClosed:to},null,8,["open","file","routes","preview","id-prefix"])):ae("",!0)],8,g6))}}),B8=["id","name","value","required","aria-required","aria-invalid","aria-describedby"],F8=oe({__name:"NumberField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=t,r=_(()=>n.modelValue===null||n.modelValue===void 0?"":String(n.modelValue)),l=_(()=>Jl(n.field));function o(i){const s=i.target.value.trim();if(s===""){a("update:modelValue",null);return}const c=Number(s);a("update:modelValue",Number.isFinite(c)?c:null)}return(i,s)=>(v(),b("input",Ue({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:[u(Vt)(e.invalid),"h-input tabular-nums"],onInput:o}),null,16,B8))}}),V8=["id","aria-labelledby","aria-describedby"],z8=oe({__name:"PartialField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},setup(e){const t=e;return(n,a)=>(v(),b("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?(v(),j(Mf,{key:0,variant:"field",source:e.source,name:t.field.path||t.field.name,"record-id":e.recordId??null},null,8,["source","name","record-id"])):(v(),j(vu,{key:1,"data-partial-failed":"",text:u(w)("backend::lang.extension.partial_failed")},null,8,["text"]))],8,V8))}}),j8={class:"relative"},U8=["id","name","type","value","required","aria-required","aria-invalid","aria-describedby"],H8=["aria-pressed","aria-label"],W8=oe({__name:"PasswordField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=t,r=P(!1),l=_(()=>typeof n.modelValue=="string"?n.modelValue:""),o=_(()=>Jl(n.field)),i=ct(Zl,null);return i&&ze(i.revision,()=>{r.value=!1}),(s,c)=>(v(),b("div",j8,[C("input",Ue({id:e.controlId,autocomplete:"new-password",spellcheck:"false"},o.value,{name:e.field.name,type:r.value?"text":"password",value:l.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:[u(Vt)(e.invalid),"h-input pr-12"],onInput:c[0]||(c[0]=d=>a("update:modelValue",d.target.value))}),null,16,U8),C("button",{type:"button","data-password-toggle":"","aria-pressed":r.value?"true":"false","aria-label":u(w)(r.value?"backend::lang.form.hide_password":"backend::lang.form.show_password"),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",onClick:c[1]||(c[1]=d=>r.value=!r.value)},[(v(),j(zt(r.value?u(h2):u(g2)),{size:16,"aria-hidden":"true"}))],8,H8)]))}}),K8=["aria-labelledby","data-ml-field"],G8={class:"flex flex-wrap items-center gap-2"},Y8=["value","aria-label"],J8=["value"],mu=oe({__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 n=e,a=t,r=_(()=>Jn(n.modelValue)),l=ct(Ss,null),o=_(()=>{const y=l?.value;return y&&y.length>0?[...y]:[]}),i=P(o.value[0]??"en"),s=_(()=>`${n.controlId}-label`),c=_(()=>`${n.controlId}-editor`),d=_(()=>r.value[i.value]??""),f=_(()=>({...n.field,type:n.innerType})),m=_(()=>n.contentLocale?{contentLocale:i.value}:{});function p(y){y&&(i.value=y)}function h(y){const $=y.target.value;p($),hP($)}function x(y){a("update:modelValue",{...r.value,[i.value]:y})}function k(y){const $=y.detail;typeof $=="string"&&$!==""&&p($)}return kt(()=>{window.addEventListener(Qo,k)}),Ea(()=>{window.removeEventListener(Qo,k)}),(y,$)=>(v(),b("div",{class:"flex flex-col gap-1.5",role:"group","aria-labelledby":s.value,"data-ml-field":e.mlType},[C("div",G8,[C("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:h},[(v(!0),b(he,null,qe(o.value,E=>(v(),b("option",{key:E,value:E},T(E),9,J8))),128))],40,Y8)]),(v(),j(zt(e.inner),Ue({field:f.value,"model-value":d.value,"control-id":c.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,K8))}}),Z8=["id","aria-labelledby","aria-describedby","aria-busy"],X8={key:0,"data-plugin-field-skeleton":"",class:"h-[42px] w-full rounded-control bg-skel","aria-hidden":"true"},m1=oe({__name:"PluginField",props:{contentLocale:{},field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=t,r=ct(Nf,null),l=P("loading"),o=P(null);let i=null,s=!1;const c=_(()=>r?.value||Nl.value),d=_(()=>JSON.stringify(n.field.typeOptions??{})),f=_(()=>n.field.readOnly===!0);function m(M,B){if(Object.is(M,B))return!0;if(M===null||B===null||typeof M!="object"||typeof B!="object")return!1;try{return JSON.stringify(M)===JSON.stringify(B)}catch{return!1}}function p(M,B){m(M.value,B)||(M.value=B)}function h(M,B,z){z?M.setAttribute(B,""):M.removeAttribute(B)}function x(M){M.setAttribute("field-name",n.field.name),M.setAttribute("record-id",n.recordId==null?"":String(n.recordId)),M.setAttribute("locale",n.contentLocale??""),M.setAttribute("ui-locale",c.value),M.setAttribute("options",d.value),h(M,"disabled",f.value),h(M,"invalid",n.invalid===!0)}function k(M){let B;return{promise:new Promise((H,S)=>{B=setTimeout(()=>S(new Error("field type element was not defined in time")),M)}),cancel:()=>clearTimeout(B)}}async function y(M){const B=await rM(M);if(customElements.get(M))return;if(B.length>0)throw new Error(`plugin script failed: ${B.join(", ")}`);const z=k(f1);try{await Promise.race([customElements.whenDefined(M),z.promise])}finally{z.cancel()}}async function $(M){const B=i,z=M.detail;if(!B||z===null||typeof z!="object")return;const{id:H,file:S}=z,N=Q=>{!s&&i===B&&B.dispatchEvent(new CustomEvent(UP,{detail:{id:H,...Q}}))},Y=()=>w("backend::lang.fileupload.upload_failed"),R=n.source;if(!(S instanceof Blob)||!R){N({error:Y()});return}const U=S instanceof File&&S.name!==""?S.name:"upload";try{const Q=await Be.POST("/{vendor}/{plugin}/{controller}/{id}/fields/{field}/upload",{params:{path:{...R,id:n.recordId??0,field:n.field.name}},body:{file:""},bodySerializer:()=>{const ee=new FormData;return ee.append("file",S,U),ee}});if(Q.data){N({url:Q.data.data.url});return}const q=Q.response.status===422?Pf(Q.error?.error):"";N({error:q||Y()})}catch{N({error:Y()})}}function E(M){$(M)}function O(M){const B=M.detail;B!==null&&typeof B=="object"&&Object.hasOwn(B,"value")&&a("update:modelValue",B.value)}return kt(async()=>{const M=n.field.element??"";try{if(M==="")throw new Error("plugin field without an element");if(await y(M),s||!o.value)return;const B=document.createElement(M);x(B),p(B,n.modelValue),B.addEventListener(bm,O),B.addEventListener(_m,E),o.value.append(B),i=B,l.value="ready"}catch{s||(l.value="failed")}}),ze(()=>[n.recordId,n.invalid,n.contentLocale,f.value,c.value,d.value],()=>{i&&x(i)}),ze(()=>n.modelValue,M=>{i&&p(i,M)},{deep:!0}),At(()=>{s=!0,i?.removeEventListener(bm,O),i?.removeEventListener(_m,E),i=null}),(M,B)=>l.value==="failed"?(v(),j(vu,{key:0,id:e.controlId,"data-plugin-field-failed":"","aria-describedby":e.describedBy||void 0,text:u(w)("backend::lang.extension.widget_failed")},null,8,["id","aria-describedby","text"])):(v(),b("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"?(v(),b("span",X8)):ae("",!0),C("div",{ref_key:"mountPoint",ref:o,class:"contents"},null,512)],8,Z8))}}),Q8=oe({__name:"MLPluginField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=t;return(r,l)=>(v(),j(mu,Ue(n,{inner:m1,"inner-type":e.field.type,"ml-type":e.field.type,"content-locale":"","onUpdate:modelValue":l[0]||(l[0]=o=>a("update:modelValue",o))}),null,16,["inner-type","ml-type"]))}}),eR=["id"],tR=["id","aria-labelledby","aria-label","aria-describedby","data-mode"],nR=["aria-labelledby"],aR=["id"],rR={class:"min-w-0 [overflow-wrap:anywhere]"},lR={key:0,class:"shrink-0 text-[12px] font-semibold text-muted","aria-hidden":"true"},oR=["data-permission","data-locked"],iR={class:"flex min-w-0 flex-col"},sR=["id"],uR=["id"],cR=oe({__name:"PermissionEditorField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=t,r=_(()=>n.field.permissionOptions??[]),l=_(()=>n.field.mode==="radio"),o=_(()=>!!n.field.readOnly||!!Jl(n.field).readonly),i=_(()=>c1(n.field,n.modelValue)),s=_(()=>{const k=[],y=[];for(const $ of r.value){if(!$.tab){y.push($);continue}let E=k.find(O=>O.label===$.tab);E||(E={key:`tab:${$.tab}`,label:$.tab,options:[]},k.push(E)),E.options.push($)}return y.length>0&&k.push({key:"other",label:w("backend::lang.permissioneditor.other"),options:y}),k}),c=[{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"}],d=_(()=>`${n.controlId}-label`);function f(k,y){return`${n.controlId}-${k}-${y}`}function m(k){return o.value||!!k.locked}function p(k){return!!k.locked&&!o.value}function h(k){return i.value[k.code]??0}function x(k,y){if(m(k))return;const $={...i.value};y===1||l.value&&y===-1?$[k.code]=y:delete $[k.code],a("update:modelValue",$)}return(k,y)=>r.value.length===0?(v(),b("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"},T(u(w)("backend::lang.permissioneditor.empty")),9,eR)):(v(),b("div",{key:1,id:e.controlId,role:"group","aria-labelledby":e.field.label?d.value:void 0,"aria-label":e.field.label?void 0:e.field.name,"aria-describedby":e.describedBy||void 0,class:ye([e.invalid?"border-danger":"border-border","overflow-hidden rounded-inner border"]),"data-permission-editor":"","data-mode":l.value?"radio":"checkbox"},[(v(!0),b(he,null,qe(s.value,($,E)=>(v(),b("div",{key:$.key,role:"group","aria-labelledby":`${e.controlId}-section-${E}`,"data-permission-section":""},[C("h3",{id:`${e.controlId}-section-${E}`,class:ye([E>0?"border-t border-border":"","flex h-row-head items-center justify-between gap-4 bg-subtle px-4 font-semibold"])},[C("span",rR,T($.label),1),l.value?ae("",!0):(v(),b("span",lR,T(u(w)("backend::lang.permissioneditor.allow")),1))],10,aR),(v(!0),b(he,null,qe($.options,(O,M)=>(v(),b("div",{key:O.code,"data-permission":O.code,"data-locked":p(O)?"":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"},[C("div",iR,[(v(),j(zt(l.value?"span":"label"),{id:`${f(E,M)}-label`,for:l.value?void 0:f(E,M),class:"[overflow-wrap:anywhere]"},{default:F(()=>[we(T(O.label||O.code)+" ",1),p(O)?(v(),j(u(Or),{key:0,size:14,class:"ml-1 inline-block align-[-2px] text-muted","aria-hidden":"true"})):ae("",!0)]),_:2},1032,["id","for"])),p(O)?(v(),b("p",{key:0,id:`${f(E,M)}-note`,class:"text-[13px] text-muted [overflow-wrap:anywhere]","data-permission-locked":""},T(u(w)("backend::lang.permissioneditor.locked")),9,sR)):O.comment?(v(),b("p",{key:1,id:`${f(E,M)}-note`,class:"text-[13px] text-muted [overflow-wrap:anywhere]"},T(O.comment),9,uR)):ae("",!0)]),l.value?(v(),j(u(Rb),{key:0,orientation:"horizontal","model-value":String(h(O)),disabled:m(O),"aria-disabled":m(O)?"true":void 0,"aria-labelledby":`${f(E,M)}-label`,"aria-describedby":p(O)||O.comment?`${f(E,M)}-note`:void 0,class:"inline-flex shrink-0 gap-1 rounded-inner border border-border bg-subtle p-1","onUpdate:modelValue":B=>x(O,Number(B))},{default:F(()=>[(v(),b(he,null,qe(c,B=>V(u(Ib),{key:B.value,value:B.value,"data-segment":B.value,class:ye([B.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(()=>[we(T(u(w)(B.label)),1)]),_:2},1032,["value","data-segment","class"])),64))]),_:1},8,["model-value","disabled","aria-disabled","aria-labelledby","aria-describedby","onUpdate:modelValue"])):(v(),j(u(v4),{key:1,id:f(E,M),"model-value":h(O)===1,disabled:m(O),"aria-disabled":m(O)?"true":void 0,"aria-labelledby":`${f(E,M)}-label`,"aria-describedby":p(O)||O.comment?`${f(E,M)}-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":B=>x(O,B===!0?1:0)},{default:F(()=>[V(u(h4),null,{default:F(()=>[V(u(nr),{size:14,"aria-hidden":"true"})]),_:1})]),_:1},8,["id","model-value","disabled","aria-disabled","aria-labelledby","aria-describedby","onUpdate:modelValue"]))],8,oR))),128))],8,nR))),128))],10,tR))}}),dR=oe({__name:"FieldRenderer",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=t,r=_(()=>O1(n.field));return(l,o)=>(v(),j(zt(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=>a("update:modelValue",i))},null,8,["field","model-value","control-id","invalid","described-by","labels","source","record-id"]))}}),fR=["data-field"],pR=["id"],vR={key:0,class:"text-danger","aria-hidden":"true"},mR=["id","for"],hR={key:0,class:"text-danger","aria-hidden":"true"},yR=["id"],gR=["id"],bR=["id"],_R=oe({__name:"FormField",props:{field:{},modelValue:{},errors:{},notices:{},labels:{},source:{},recordId:{},idPrefix:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=t,r=_(()=>`${n.idPrefix??"field"}-${n.field.name}`),l=_(()=>r.value),o=_(()=>`${r.value}-comment`),i=_(()=>`${r.value}-error`),s=_(()=>`${r.value}-notice`),c=_(()=>(n.errors?.length??0)>0),d=_(()=>(n.notices?.length??0)>0),f=_(()=>k9(n.field.type)),m=_(()=>w9(n.field.type)||hu(n.field)),p=_(()=>!f.value&&!!n.field.comment),h=_(()=>[p.value||f.value&&n.field.comment?o.value:"",c.value?i.value:"",d.value?s.value:""].filter(Boolean).join(" "));return(x,k)=>(v(),b("div",{class:"flex min-w-0 flex-col gap-1.5","data-field":e.field.name},[m.value&&e.field.label?(v(),b("span",{key:0,id:`${l.value}-label`,class:"font-semibold"},[we(T(e.field.label),1),e.field.required?(v(),b("span",vR," *")):ae("",!0)],8,pR)):!f.value&&!m.value?(v(),b("label",{key:1,id:`${l.value}-label`,for:l.value,class:"font-semibold"},[we(T(e.field.label||e.field.name),1),e.field.required?(v(),b("span",hR," *")):ae("",!0)],8,mR)):ae("",!0),V(dR,{field:e.field,"model-value":e.modelValue,"control-id":l.value,invalid:c.value,"described-by":h.value,labels:e.labels,source:e.source,"record-id":e.recordId,"onUpdate:modelValue":k[0]||(k[0]=y=>a("update:modelValue",y))},null,8,["field","model-value","control-id","invalid","described-by","labels","source","record-id"]),p.value?(v(),b("p",{key:2,id:o.value,class:"text-[13px] text-muted"},T(e.field.comment),9,yR)):ae("",!0),d.value?(v(),b("div",{key:3,id:s.value,role:"status","data-field-notice":"",class:"summer-callout summer-callout--warning text-[13px]!"},[(v(!0),b(he,null,qe(e.notices,(y,$)=>(v(),b("p",{key:$,class:"summer-callout__text"},T(y),1))),128))],8,gR)):ae("",!0),c.value?(v(),b("div",{key:4,id:i.value,class:"flex flex-col gap-0.5 text-[13px] text-danger"},[(v(!0),b(he,null,qe(e.errors,(y,$)=>(v(),b("p",{key:$,class:"flex items-center gap-1.5"},[V(u(bt),{size:14,class:"shrink-0","aria-hidden":"true"}),C("span",null,T(y),1)]))),128))],8,bR)):ae("",!0)],8,fR))}}),xR={class:"grid grid-cols-1 gap-x-6 gap-y-[22px] min-[600px]:grid-cols-2"},Xl=oe({__name:"FormGrid",props:{fields:{},values:{},errors:{},notices:{},labels:{},source:{},recordId:{},idPrefix:{},scopePath:{}},emits:["update"],setup(e,{emit:t}){const n=e,a=t;$t(p1,{fields:_(()=>n.fields),values:_(()=>n.values),path:l=>n.scopePath?`${n.scopePath}.${l}`:l});function r(l){if(l.type===Kr)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)=>(v(),b("div",xR,[(v(!0),b(he,null,qe(e.fields,i=>(v(),j(_R,{key:i.name,class:ye(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":s=>a("update",i.name,s)},null,8,["class","field","model-value","errors","notices","labels","source","record-id","id-prefix","onUpdate:modelValue"]))),128))]))}}),kR=["data-preview-field"],wR=["id"],$R={class:"m-0 min-w-0"},CR={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"},SR={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"},ER={class:"flex size-[22px] shrink-0 items-center justify-center rounded-full bg-primary text-[10px] font-bold text-on-primary","aria-hidden":"true"},AR={class:"font-semibold"},TR={key:0,class:"px-2 text-muted","data-empty":""},DR={key:0},OR={key:1,class:"text-muted","data-empty":""},MR={key:0},PR={key:1,class:"text-muted","data-empty":""},yc="flex min-h-input items-center rounded-control border border-border bg-subtle px-3.5 [overflow-wrap:anywhere]",h1=oe({__name:"PreviewField",props:{field:{},value:{},labels:{},source:{},recordId:{},idPrefix:{}},setup(e){const t=e,n=new Set(["datepicker","fileupload","partial","permissioneditor","richeditor","repeater"]),a=_(()=>`${t.idPrefix??"preview"}-${t.field.name}`),r=_(()=>`${a.value}-label`),l=_(()=>{const p=t.field.type;return n.has(p)||hu(t.field)?"control":p==="checkbox"||p==="switch"?"toggle":p==="relation"?t.field.multiple?"chips":"relation":p==="textarea"?"textarea":"text"}),o=_(()=>({...t.field,readOnly:!0})),i=_(()=>O1(t.field));function s(p){return p==null||p===""}const c=_(()=>{const p=t.value;if(s(p)||typeof p=="object")return"";if(t.field.type==="dropdown"){const h=(t.field.options??[]).find(x=>String(x.value)===String(p));return h?h.label:String(p)}return String(p)}),d=_(()=>t.labels?.[0]?.label??""),f=_(()=>Array.isArray(t.value)?t.labels??[]:[]);function m(p){return p.trim().split(/\s+/).filter(Boolean).slice(0,2).map(x=>x.charAt(0).toUpperCase()).join("")}return(p,h)=>(v(),b("div",{class:"flex min-w-0 flex-col gap-1.5","data-preview-field":e.field.name},[C("dt",{id:r.value,class:"font-semibold"},T(e.field.label||e.field.name),9,wR),C("dd",$R,[l.value==="control"?(v(),j(zt(i.value),{key:0,field:o.value,"model-value":e.value,"control-id":a.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"?(v(),b(he,{key:1},[u(Rf)(e.value)?(v(),b("span",CR,T(u(w)("backend::lang.list.column_switch_true")),1)):(v(),b("span",SR,T(u(w)("backend::lang.list.column_switch_false")),1))],64)):l.value==="chips"?(v(),b("div",{key:2,"data-preview-value":"",class:ye([yc,"flex-wrap gap-1.5 p-1.5"])},[(v(!0),b(he,null,qe(f.value,x=>(v(),b("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"},[C("span",ER,T(m(x.label)),1),C("span",AR,T(x.label),1)]))),128)),f.value.length===0?(v(),b("span",TR,T(u(w)("backend::lang.list.empty_value")),1)):ae("",!0)])):l.value==="relation"?(v(),b("div",{key:3,"data-preview-value":"",class:ye(yc)},[d.value!==""?(v(),b("span",DR,T(d.value),1)):(v(),b("span",OR,T(e.field.emptyOption||u(w)("backend::lang.list.empty_value")),1))])):(v(),b("div",{key:4,"data-preview-value":"",class:ye([yc,l.value==="textarea"?"items-start! py-3 whitespace-pre-wrap":""])},[c.value!==""?(v(),b("span",MR,T(c.value),1)):(v(),b("span",PR,T(u(w)("backend::lang.list.empty_value")),1))],2))])],8,kR))}}),y1=new Set(["p","br","strong","b","em","i","u","s","h3","ul","ol","li","blockquote","a","div","span"]);function g1(e){const t=document.createElement("template");return t.innerHTML=e,t.content}function RR(e){if(e==="")return[];const t=new Set;for(const n of Array.from(g1(e).querySelectorAll("*")))t.add(n.localName.toLowerCase());return[...t]}function xm(e){return RR(e).some(t=>!y1.has(t))}const IR=["aria-labelledby","aria-describedby","data-repeater"],qR={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"},NR={class:"font-semibold"},LR={key:0,class:"max-w-[420px] text-[13px] text-muted"},BR={key:0,"data-repeater-slot":"",class:"h-12 rounded-inner border-2 border-dashed border-primary bg-sel"},FR=["data-repeater-row","data-repeater-key","onDragover"],VR=["data-repeater-handle","aria-label","onKeydown","onDragstart"],zR={class:"text-[13px] text-muted tabular-nums"},jR=["title"],UR={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"},HR={key:2,class:"flex gap-1"},WR=["aria-label","disabled","onClick"],KR=["aria-label","disabled","onClick"],GR=["aria-label","aria-expanded","aria-controls","onClick"],YR=["aria-label","disabled","onClick"],JR=["id"],ZR={key:0,class:"m-0 grid grid-cols-1 gap-x-6 gap-y-[22px] min-[600px]:grid-cols-2"},XR={key:2,class:"flex flex-wrap items-center gap-4"},QR={key:0,"data-repeater-count":"",class:"text-[13px] text-muted tabular-nums"},vo="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",eI=oe({__name:"RepeaterField",props:{field:{},modelValue:{},controlId:{},invalid:{type:Boolean},describedBy:{},labels:{},source:{},recordId:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,a=t,r=ct(Bf,null),l=_(()=>n.field.form?.fields??[]),o=_(()=>!!n.field.readOnly),i=_(()=>Array.isArray(n.modelValue)?n.modelValue.map(Z=>Z!==null&&typeof Z=="object"&&!Array.isArray(Z)?Z:{}):[]),s=_(()=>typeof n.field.maxItems=="number"?n.field.maxItems:null),c=_(()=>typeof n.field.minItems=="number"?n.field.minItems:0),d=_(()=>n.field.prompt||w("backend::lang.repeater.add")),f=_(()=>`${n.controlId}-label`);let m=0;const p=P([]),h=P(new Set);let x;function k(){return m+=1,`r${m}`}ze(()=>n.modelValue,Z=>{Z===x&&p.value.length===i.value.length||p.value.length!==i.value.length&&(p.value=i.value.map(()=>k()),h.value=new Set)},{immediate:!0});function y(Z,te){p.value=te,x=Z,a("update:modelValue",Z)}function $(Z){return Z==null||Z===""||Z===!1||Array.isArray(Z)&&Z.length===0}function E(){const Z={};for(const te of l.value)te.default!==void 0?Z[te.name]=te.default:te.type==="checkbox"||te.type==="switch"?Z[te.name]=!1:Z[te.name]=null;return Z}function O(Z){return l.value.some(te=>{const ce=Z[te.name];return $(ce)?!1:te.default===void 0||String(te.default)!==String(ce)})}function M(Z){return(g1(Z).textContent??"").replace(/\s+/g," ").trim()}function B(Z){const te=i.value[Z]??{},ce=l.value.find(D=>D.name===n.field.titleFrom),g=ce?te[ce.name]:void 0;let A="";return ce&&!$(g)&&typeof g!="object"&&(ce.type==="dropdown"?A=(ce.options??[]).find(D=>String(D.value)===String(g))?.label??String(g):ce.type==="richeditor"?A=M(String(g)):A=String(g).trim()),A!==""?A:w("backend::lang.repeater.untitled",{n:Z+1})}function z(Z,te){const ce=`${n.field.name}.${te}.`,g={};for(const[A,D]of Object.entries(Z??{}))A.startsWith(ce)&&A.length>ce.length&&(g[A.slice(ce.length)]=D);return g}const H=_(()=>i.value.map((Z,te)=>z(r?.errors.value,te))),S=_(()=>i.value.map((Z,te)=>z(r?.notices.value,te))),N=Z=>Object.keys(H.value[Z]??{}).length;ze(H,Z=>{const te=Z.flatMap((ce,g)=>Object.keys(ce).length>0?[p.value[g]]:[]);if(te.length>0){const ce=new Set(h.value);for(const g of te)ce.delete(g);h.value=ce}});function Y(Z){return o.value||!h.value.has(Z)}function R(Z,te){const ce=new Set(h.value);te?ce.delete(Z):ce.add(Z),h.value=ce}const U=_(()=>p.value.some(Z=>!h.value.has(Z)));function Q(){h.value=U.value?new Set(p.value):new Set}const q=P(null),ee=P(null);function ne(Z){return q.value?.querySelector(`[data-repeater-handle="${Z}"]`)??null}function fe(Z,te,ce){const g=i.value.map((A,D)=>D===Z?{...A,[te]:ce}:A);y(g,[...p.value]),r?.clearError(`${n.field.name}.${Z}.${te}`)}async function ge(){if(o.value||s.value!==null&&i.value.length>=s.value)return;const Z=k();y([...i.value,E()],[...p.value,Z]),await Ze(),q.value?.querySelector(`[data-repeater-key="${Z}"]`)?.querySelector('[data-repeater-body] input, [data-repeater-body] select, [data-repeater-body] textarea, [data-repeater-body] [contenteditable="true"]')?.focus()}async function Ee(Z){const te=i.value[Z];if(!te||o.value||i.value.length<=c.value)return;if(O(te)&&r){const D=B(Z);if(!await r.confirm({message:w("backend::lang.repeater.remove_confirm",{title:D}),confirmLabel:w("backend::lang.repeater.remove"),danger:!0}))return}const ce=p.value.filter((D,re)=>re!==Z);y(i.value.filter((D,re)=>re!==Z),ce),await Ze();const g=ce[Z]??ce[Z-1],A=g?ne(g):null;A?A.focus():ee.value?.$el.focus()}async function be(Z,te){const ce=i.value.length;if(o.value||Z===te||Z<0||te<0||Z>=ce||te>=ce)return;const g=[...i.value],A=[...p.value],[D]=g.splice(Z,1),[re]=A.splice(Z,1);g.splice(te,0,D),A.splice(te,0,re),y(g,A),await Ze(),ne(re)?.focus(),r?.announce(w("backend::lang.repeater.moved",{title:B(te),position:te+1,total:ce}))}function ve(Z,te){(Z.key==="ArrowUp"||Z.key==="ArrowDown")&&(Z.preventDefault(),be(te,Z.key==="ArrowUp"?te-1:te+1))}const Ae=P(null),L=P(null);function pe(Z,te){Ae.value=te,L.value=null,Z.dataTransfer?.setData("text/plain",p.value[te]??""),Z.dataTransfer&&(Z.dataTransfer.effectAllowed="move")}function G(Z,te){if(Ae.value===null)return;Z.preventDefault();const g=Z.currentTarget.getBoundingClientRect();L.value=Z.clientY>g.top+g.height/2?te+1:te}function K(Z){if(Ae.value===null||L.value===null)return;Z.preventDefault();const te=Ae.value,ce=L.value>te?L.value-1:L.value;ie(),be(te,ce)}function ie(){Ae.value=null,L.value=null}return(Z,te)=>(v(),b("div",{ref_key:"root",ref:q,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?(v(),b("div",qR,[C("p",NR,T(u(w)("backend::lang.repeater.empty")),1),o.value?ae("",!0):(v(),b("p",LR,T(u(w)("backend::lang.repeater.empty_hint",{prompt:d.value})),1))])):ae("",!0),(v(!0),b(he,null,qe(i.value,(ce,g)=>(v(),b(he,{key:p.value[g]},[Ae.value!==null&&L.value===g&&L.value!==Ae.value&&L.value!==Ae.value+1?(v(),b("div",BR)):ae("",!0),C("div",{"data-repeater-row":g,"data-repeater-key":p.value[g],class:ye([[N(g)>0?"border-danger":"border-border",Ae.value===g?"opacity-50":""],"rounded-inner border bg-surface"]),onDragover:A=>G(A,g),onDrop:K},[C("div",{class:ye([Y(p.value[g])?"rounded-t-inner border-b border-border":"rounded-inner","flex min-h-12 items-center gap-2 bg-subtle px-2"])},[o.value?ae("",!0):(v(),b("button",{key:0,type:"button",draggable:"true","data-repeater-handle":p.value[g],"aria-label":u(w)("backend::lang.repeater.move",{title:B(g)}),class:ye([vo,"cursor-grab"]),onKeydown:A=>ve(A,g),onDragstart:A=>pe(A,g),onDragend:ie},[V(u(ms),{size:16,"aria-hidden":"true"})],40,VR)),C("span",zR,T(g+1)+".",1),C("span",{"data-repeater-title":"",class:"min-w-0 flex-1 truncate font-semibold",title:B(g)},T(B(g)),9,jR),N(g)>0?(v(),b("span",UR,T(u(qr)("backend::lang.form.tab_errors",N(g))),1)):ae("",!0),o.value?ae("",!0):(v(),b("div",HR,[C("button",{type:"button","data-action":"repeater-up","aria-label":u(w)("backend::lang.repeater.move_up",{title:B(g)}),disabled:g===0,class:ye(vo),onClick:A=>be(g,g-1)},[V(u(Wy),{size:16,"aria-hidden":"true"})],8,WR),C("button",{type:"button","data-action":"repeater-down","aria-label":u(w)("backend::lang.repeater.move_down",{title:B(g)}),disabled:g===i.value.length-1,class:ye(vo),onClick:A=>be(g,g+1)},[V(u(ar),{size:16,"aria-hidden":"true"})],8,KR),C("button",{type:"button","data-action":"repeater-toggle","aria-label":u(w)(Y(p.value[g])?"backend::lang.repeater.collapse":"backend::lang.repeater.expand",{title:B(g)}),"aria-expanded":Y(p.value[g])?"true":"false","aria-controls":`${e.controlId}-${p.value[g]}-body`,class:ye(vo),onClick:A=>R(p.value[g],!Y(p.value[g]))},[V(u(ar),{size:16,class:ye([Y(p.value[g])?"rotate-180":"","transition-transform duration-150"]),"aria-hidden":"true"},null,8,["class"])],8,GR),C("button",{type:"button","data-action":"repeater-remove","aria-label":u(w)("backend::lang.repeater.remove_named",{title:B(g)}),disabled:i.value.length<=c.value,class:ye([vo,"hover:bg-danger-soft hover:text-danger"]),onClick:A=>Ee(g)},[V(u(Ur),{size:16,"aria-hidden":"true"})],8,YR)]))],2),Y(p.value[g])?(v(),b("div",{key:0,id:`${e.controlId}-${p.value[g]}-body`,"data-repeater-body":"",class:"p-4"},[o.value?(v(),b("dl",ZR,[(v(!0),b(he,null,qe(l.value,A=>(v(),j(h1,{key:A.name,class:ye(A.span==="left"?"min-[600px]:col-start-1":A.span==="right"?"min-[600px]:col-start-2":"col-span-full"),field:{...A,readOnly:!0},value:ce[A.name],source:e.source,"record-id":e.recordId,"id-prefix":`${e.controlId}-${p.value[g]}`},null,8,["class","field","value","source","record-id","id-prefix"]))),128))])):(v(),j(Xl,{key:1,fields:l.value,values:ce,errors:H.value[g]??{},notices:S.value[g],source:e.source,"record-id":e.recordId,"id-prefix":`${e.controlId}-${p.value[g]}`,"scope-path":e.field.name,onUpdate:(A,D)=>fe(g,A,D)},null,8,["fields","values","errors","notices","source","record-id","id-prefix","scope-path","onUpdate"]))],8,JR)):ae("",!0)],42,FR)],64))),128)),Ae.value!==null&&L.value===i.value.length&&L.value!==Ae.value+1?(v(),b("div",{key:1,"data-repeater-slot":"",class:"h-12 rounded-inner border-2 border-dashed border-primary bg-sel",onDragover:te[0]||(te[0]=vt(()=>{},["prevent"])),onDrop:K},null,32)):ae("",!0),o.value?ae("",!0):(v(),b("div",XR,[V(et,{ref_key:"addButton",ref:ee,variant:"outline",size:"sm",icon:u(di),"data-action":"repeater-add",disabled:s.value!==null&&i.value.length>=s.value,onClick:ge},{default:F(()=>[we(T(d.value),1)]),_:1},8,["icon","disabled"]),s.value!==null?(v(),b("span",QR,T(u(w)("backend::lang.repeater.count",{current:i.value.length,max:s.value})),1)):ae("",!0),i.value.length>1?(v(),j(et,{key:1,variant:"ghost",size:"sm",class:"ml-auto","data-action":"repeater-toggle-all",onClick:Q},{default:F(()=>[we(T(u(w)(U.value?"backend::lang.repeater.collapse_all":"backend::lang.repeater.expand_all")),1)]),_:1})):ae("",!0)]))],8,IR))}}),tI="modulepreload",nI=function(e,t){return new URL(e,t).href},km={},aI=function(t,n,a){let r=Promise.resolve();if(n&&n.length>0){let c=function(d){return Promise.all(d.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]"),s=i?.nonce||i?.getAttribute("nonce");r=c(n.map(d=>{if(d=nI(d,a),d in km)return;km[d]=!0;const f=d.endsWith(".css"),m=f?'[rel="stylesheet"]':"";if(a)for(let h=o.length-1;h>=0;h--){const x=o[h];if(x.href===d&&(!f||x.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${d}"]${m}`))return;const p=document.createElement("link");if(p.rel=f?"stylesheet":tI,f||(p.as="script"),p.crossOrigin="",p.href=d,s&&p.setAttribute("nonce",s),document.head.appendChild(p),f)return new Promise((h,x)=>{p.addEventListener("load",h),p.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${d}`)))})}))}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 wm(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n2?a-2:0),l=2;l1?n-1:0),r=1;r"u"?null:Tt(BigInt.prototype.toString),Tm=typeof Symbol>"u"?null:Tt(Symbol.prototype.toString),an=Tt(Object.prototype.hasOwnProperty),yo=Tt(Object.prototype.toString),Ut=Tt(RegExp.prototype.test),Va=yI(TypeError);function Tt(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r2&&arguments[2]!==void 0?arguments[2]:wo;if($m&&$m(e,null),!Ol(t))return e;let a=t.length;for(;a--;){let r=t[a];if(typeof r=="string"){const l=n(r);l!==r&&(uI(t)||(t[a]=l),r=l)}e[r]=!0}return e}function gI(e){for(let t=0;t/g),CI=qt(/\${[\w\W]*/g),SI=qt(/^data-[\-\w.\u00B7-\uFFFF]+$/),EI=qt(/^aria-[\-\w]+$/),Rm=qt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),AI=qt(/^(?:\w+script|data):/i),TI=qt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),DI=qt(/^html$/i),OI=qt(/^[a-z][.\w]*(-[.\w]+)+$/i),Im=qt(/<[/\w!]/g),qm=qt(/<[/\w]/g),MI=qt(/<\/no(script|embed|frames)/i),PI=qt(/\/>/i),dn={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},x1=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],RI=Ot(st({},x1)),II=(function(){const e={};return Ar(x1,t=>{e[t]=qt(new RegExp("])","i"))}),Ot(e)})(),qI=function(){return typeof window>"u"?null:window},NI=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let a=null;const r="data-tt-policy-suffix";n&&n.hasAttribute(r)&&(a=n.getAttribute(r));const l="dompurify"+(a?"#"+a:"");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}},Nm=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},za=function(t,n,a,r){return an(t,n)&&Ol(t[n])?st(r.base?fn(r.base):{},t[n],r.transform):a},wc=function(t,n,a){const r=an(t,n)?t[n]:void 0;return r&&typeof r=="object"?fn(r):a()};function k1(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:qI();const t=Me=>k1(Me);if(t.version="3.4.16",t.removed=[],!e||!e.document||e.document.nodeType!==dn.document||!e.Element)return t.isSupported=!1,t;let n=e.document;const a=n,r=a.currentScript;e.DocumentFragment;const l=e.HTMLTemplateElement,o=e.Node,i=e.Element,s=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const c=e.DOMParser,d=e.trustedTypes,f=i.prototype,m=xn(f,"cloneNode"),p=xn(f,"remove"),h=xn(f,"removeAttributeNode"),x=xn(f,"nextSibling"),k=xn(f,"childNodes"),y=xn(f,"parentNode"),$=xn(f,"shadowRoot"),E=xn(f,"attributes"),O=o&&o.prototype?xn(o.prototype,"nodeType"):null,M=o&&o.prototype?xn(o.prototype,"nodeName"):null,B=o&&o.prototype?xn(o.prototype,"ownerDocument"):null,z=function(I){return O?O(I):I.nodeType},H=function(I){return M?M(I):I.nodeName};if(typeof l=="function"){const Me=n.createElement("template");Me.content&&Me.content.ownerDocument&&(n=Me.content.ownerDocument)}let S,N="",Y,R=!1,U=0;const Q=function(){if(U>0)throw Va('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.')},q=function(I){Q(),U++;try{return S.createHTML(I)}finally{U--}},ee=function(I){Q(),U++;try{return S.createScriptURL(I)}finally{U--}},ne=function(){return R||(Y=NI(d,r),R=!0),Y},fe=n,ge=fe.implementation,Ee=fe.createNodeIterator,be=fe.createDocumentFragment,ve=fe.getElementsByTagName,Ae=a.importNode;let L=Nm();t.isSupported=typeof b1=="function"&&typeof y=="function"&&ge&&ge.createHTMLDocument!==void 0;const pe=wI,G=$I,K=CI,ie=SI,Z=EI,te=AI,ce=TI,g=OI;let A=Rm,D=null;const re=st({},[...Dm,...bc,..._c,...xc,...Om]);let J=null;const ue=st({},[...Mm,...kc,...Pm,...Fi]);let $e=Object.seal(ml(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,de=null;const se=Object.seal(ml(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Te=!0,De=!0,Ie=!1,je=!0,We=!1,_e=!0,ke=!1,Ne=!1,Ye=null,rt=null,St=!1,Nt=!1,Ve=!1,Fe=!1,Ke=!0,Rt=!1;const Pa="user-content-";let gr=!0,Gr=!1,jt={},la=null;const Yr=st({},["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 hi=null;const Jr=st({},["audio","video","img","source","image","track"]);let eo=null;const Ln=st({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ra="http://www.w3.org/1998/Math/MathML",oa="http://www.w3.org/2000/svg",tn="http://www.w3.org/1999/xhtml";let Ia=tn,to=!1,br=null;const W=st({},[Ra,oa,tn],gc),Oe=Ot(["mi","mo","mn","ms","mtext"]);let X=st({},Oe);const Re=Ot(["annotation-xml"]);let Xe=st({},Re);const Lt=st({},["title","style","font","a","script"]);let nn=null;const qa=["application/xhtml+xml","text/html"],F1="text/html";let wt=null,Zr=null;const V1=n.createElement("form"),zf=function(I){return I instanceof RegExp||I instanceof Function},bu=function(){let I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Zr&&Zr===I)return;(!I||typeof I!="object")&&(I={}),I=fn(I),nn=qa.indexOf(I.PARSER_MEDIA_TYPE)===-1?F1:I.PARSER_MEDIA_TYPE,wt=nn==="application/xhtml+xml"?gc:wo,D=za(I,"ALLOWED_TAGS",re,{transform:wt}),J=za(I,"ALLOWED_ATTR",ue,{transform:wt}),br=za(I,"ALLOWED_NAMESPACES",W,{transform:gc}),eo=za(I,"ADD_URI_SAFE_ATTR",Ln,{transform:wt,base:Ln}),hi=za(I,"ADD_DATA_URI_TAGS",Jr,{transform:wt,base:Jr}),la=za(I,"FORBID_CONTENTS",Yr,{transform:wt}),Se=za(I,"FORBID_TAGS",fn({}),{transform:wt}),de=za(I,"FORBID_ATTR",fn({}),{transform:wt}),jt=an(I,"USE_PROFILES")?I.USE_PROFILES&&typeof I.USE_PROFILES=="object"?fn(I.USE_PROFILES):I.USE_PROFILES:!1,Te=I.ALLOW_ARIA_ATTR!==!1,De=I.ALLOW_DATA_ATTR!==!1,Ie=I.ALLOW_UNKNOWN_PROTOCOLS||!1,je=I.ALLOW_SELF_CLOSE_IN_ATTR!==!1,We=I.SAFE_FOR_TEMPLATES||!1,_e=I.SAFE_FOR_XML!==!1,ke=I.WHOLE_DOCUMENT||!1,Nt=I.RETURN_DOM||!1,Ve=I.RETURN_DOM_FRAGMENT||!1,Fe=I.RETURN_TRUSTED_TYPE||!1,St=I.FORCE_BODY||!1,Ke=I.SANITIZE_DOM!==!1,Rt=I.SANITIZE_NAMED_PROPS||!1,gr=I.KEEP_CONTENT!==!1,Gr=I.IN_PLACE||!1,A=_I(I.ALLOWED_URI_REGEXP)?I.ALLOWED_URI_REGEXP:Rm,Ia=typeof I.NAMESPACE=="string"?I.NAMESPACE:tn,X=wc(I,"MATHML_TEXT_INTEGRATION_POINTS",()=>st({},Oe)),Xe=wc(I,"HTML_INTEGRATION_POINTS",()=>st({},Re));const le=wc(I,"CUSTOM_ELEMENT_HANDLING",()=>ml(null));if($e=ml(null),an(le,"tagNameCheck")&&zf(le.tagNameCheck)&&($e.tagNameCheck=le.tagNameCheck),an(le,"attributeNameCheck")&&zf(le.attributeNameCheck)&&($e.attributeNameCheck=le.attributeNameCheck),an(le,"allowCustomizedBuiltInElements")&&typeof le.allowCustomizedBuiltInElements=="boolean"&&($e.allowCustomizedBuiltInElements=le.allowCustomizedBuiltInElements),qt($e),We&&(De=!1),Ve&&(Nt=!0),jt&&(D=st({},Om),J=ml(null),jt.html===!0&&(st(D,Dm),st(J,Mm)),jt.svg===!0&&(st(D,bc),st(J,kc),st(J,Fi)),jt.svgFilters===!0&&(st(D,_c),st(J,kc),st(J,Fi)),jt.mathMl===!0&&(st(D,xc),st(J,Pm),st(J,Fi))),se.tagCheck=null,se.attributeCheck=null,an(I,"ADD_TAGS")&&(typeof I.ADD_TAGS=="function"?se.tagCheck=I.ADD_TAGS:Ol(I.ADD_TAGS)&&(D===re&&(D=fn(D)),st(D,I.ADD_TAGS,wt))),an(I,"ADD_ATTR")&&(typeof I.ADD_ATTR=="function"?se.attributeCheck=I.ADD_ATTR:Ol(I.ADD_ATTR)&&(J===ue&&(J=fn(J)),st(J,I.ADD_ATTR,wt))),an(I,"ADD_FORBID_CONTENTS")&&Ol(I.ADD_FORBID_CONTENTS)&&(la===Yr&&(la=fn(la)),st(la,I.ADD_FORBID_CONTENTS,wt)),gr&&(D["#text"]=!0),ke&&st(D,["html","head","body"]),D.table&&(st(D,["tbody"]),delete Se.tbody),I.TRUSTED_TYPES_POLICY){if(typeof I.TRUSTED_TYPES_POLICY.createHTML!="function")throw Va('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof I.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Va('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const Ce=S;S=I.TRUSTED_TYPES_POLICY;try{N=q("")}catch(Pe){throw S=Ce,Pe}}else I.TRUSTED_TYPES_POLICY===null?(S=void 0,N=""):(S===void 0&&(S=ne()),S&&typeof N=="string"&&(N=q("")));Ot&&Ot(I),Zr=I},jf=st({},[...bc,..._c,...xI]),Uf=st({},[...xc,...kI]),z1=function(I,le,Ce){return le.namespaceURI===tn?I==="svg":le.namespaceURI===Ra?I==="svg"&&(Ce==="annotation-xml"||X[Ce]):!!jf[I]},j1=function(I,le,Ce){return le.namespaceURI===tn?I==="math":le.namespaceURI===oa?I==="math"&&Xe[Ce]:!!Uf[I]},U1=function(I,le,Ce){return le.namespaceURI===oa&&!Xe[Ce]||le.namespaceURI===Ra&&!X[Ce]?!1:!Uf[I]&&(Lt[I]||!jf[I])},H1=function(I){let le=y(I);(!le||!le.tagName)&&(le={namespaceURI:Ia,tagName:"template"});const Ce=wo(I.tagName),Pe=wo(le.tagName);return br[I.namespaceURI]?I.namespaceURI===oa?z1(Ce,le,Pe):I.namespaceURI===Ra?j1(Ce,le,Pe):I.namespaceURI===tn?U1(Ce,le,Pe):!!(nn==="application/xhtml+xml"&&br[I.namespaceURI]):!1},Na=function(I){mo(t.removed,{element:I});try{y(I).removeChild(I)}catch{if(p(I),!y(I))throw Va("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Hf=function(I,le,Ce){try{h(I,le)}catch{try{I.removeAttribute(Ce)}catch{}}},yi=function(I){gi(I);const le=k(I);if(le){const Pe=[];Ar(le,He=>{mo(Pe,He)}),Ar(Pe,He=>{try{p(He)}catch{}})}const Ce=E(I);if(Ce)for(let Pe=Ce.length-1;Pe>=0;--Pe){const He=Ce[Pe],at=He&&He.name;typeof at=="string"&&Hf(I,He,at)}},_r=function(I,le,Ce){if(!Ce)try{Ce=le.getAttributeNode(I)}catch{Ce=null}mo(t.removed,{attribute:Ce||null,from:le});try{Ce?h(le,Ce):le.removeAttribute(I)}catch{try{le.removeAttribute(I)}catch{}}if(I==="is")if(Nt||Ve)try{Na(le)}catch{}else try{le.setAttribute(I,"")}catch{}},W1=function(I){const le=E(I);if(le)for(let Ce=le.length-1;Ce>=0;--Ce){const Pe=le[Ce],He=Pe&&Pe.name;typeof He!="string"||J[wt(He)]||Hf(I,Pe,He)}},gi=function(I){const le=[I];for(;le.length>0;){const Ce=le.pop();z(Ce)===dn.element&&W1(Ce);const Pe=k(Ce);if(Pe)for(let He=Pe.length-1;He>=0;--He)le.push(Pe[He])}},Wf=function(I,le){return _e?I==="patchsrc"?!0:I==="for"&&le!=="label"&&le!=="output":!1},K1=function(I){if(!_e)return;const le=[I];for(;le.length>0;){const Ce=le.pop(),Pe=z(Ce);if(Pe===dn.processingInstruction||Pe===dn.comment&&Ut(qm,Ce.data)){try{p(Ce)}catch{}continue}if(Pe===dn.element){const at=Ce,ot=wt(H(Ce));try{at.hasAttribute&&at.hasAttribute("patchsrc")&&at.removeAttribute("patchsrc"),at.hasAttribute&&at.hasAttribute("for")&&Wf("for",ot)&&at.removeAttribute("for")}catch{}}const He=k(Ce);if(He)for(let at=He.length-1;at>=0;--at)le.push(He[at])}},Kf=function(I){let le=null,Ce=null;if(St)I=""+I;else{const at=Sm(I,/^[\r\n\t ]+/);Ce=at&&at[0]}nn==="application/xhtml+xml"&&Ia===tn&&(I=''+I+"");const Pe=S?q(I):I;if(Ia===tn)try{le=new c().parseFromString(Pe,nn)}catch{}if(!le||!le.documentElement){le=ge.createDocument(Ia,"template",null);try{le.documentElement.innerHTML=to?N:Pe}catch{}}const He=le.body||le.documentElement;return I&&Ce&&He.insertBefore(n.createTextNode(Ce),He.childNodes[0]||null),Ia===tn?ve.call(le,ke?"html":"body")[0]:ke?le.documentElement:He},Gf=function(I){const le=B?B(I):I.ownerDocument;return Ee.call(le||I,I,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT|s.SHOW_PROCESSING_INSTRUCTION|s.SHOW_CDATA_SECTION,null)},bi=function(I){return I=ho(I,pe," "),I=ho(I,G," "),I=ho(I,K," "),I},_u=function(I){var le;I.normalize();const Ce=B?B(I):I.ownerDocument,Pe=Ee.call(Ce||I,I,s.SHOW_TEXT|s.SHOW_COMMENT|s.SHOW_CDATA_SECTION|s.SHOW_PROCESSING_INSTRUCTION,null);let He=Pe.nextNode();for(;He;)He.data=bi(He.data),He=Pe.nextNode();const at=(le=I.querySelectorAll)===null||le===void 0?void 0:le.call(I,"template");at&&Ar(at,ot=>{Xr(ot.content)&&_u(ot.content)})},_i=function(I){const le=M?M(I):null;return typeof le!="string"||wt(le)!=="form"?!1:typeof I.nodeName!="string"||typeof I.textContent!="string"||typeof I.removeChild!="function"||I.attributes!==E(I)||typeof I.removeAttribute!="function"||typeof I.removeAttributeNode!="function"||typeof I.getAttributeNode!="function"||typeof I.setAttribute!="function"||typeof I.namespaceURI!="string"||typeof I.insertBefore!="function"||typeof I.hasChildNodes!="function"||I.nodeType!==O(I)||I.childNodes!==k(I)},Xr=function(I){if(!O||typeof I!="object"||I===null)return!1;try{return O(I)===dn.documentFragment}catch{return!1}},no=function(I){if(!O||typeof I!="object"||I===null)return!1;try{return typeof O(I)=="number"}catch{return!1}};function Bn(Me,I,le){Me.length!==0&&Ar(Me,Ce=>{Ce.call(t,I,le,Zr)})}const G1=function(I,le){return!!(_e&&I.hasChildNodes()&&!no(I.firstElementChild)&&Ut(Im,I.textContent)&&Ut(Im,I.innerHTML)||_e&&I.namespaceURI===tn&&RI[le]&&(no(I.firstElementChild)||typeof I.textContent=="string"&&Ut(II[le],I.textContent))||I.nodeType===dn.processingInstruction||_e&&I.nodeType===dn.comment&&Ut(qm,I.data))},xi=function(I,le){if(I instanceof RegExp)return Ut(I,le);if(I instanceof Function){for(var Ce=arguments.length,Pe=new Array(Ce>2?Ce-2:0),He=2;He=0;--ot){const xt=I===Ce?m(He[ot],!0):He[ot];Pe.insertBefore(xt,x(I))}}}return Na(I),!0},Yf=function(I,le,Ce,Pe){return I.length===0?le:le===Ce||le===Pe?fn(le):le},Qr=function(I,le){return I===le||y(I)!==null?!1:(Gr&&gi(I),!0)},Jf=function(I,le){if(Bn(L.beforeSanitizeElements,I,null),Qr(I,le))return!0;if(_i(I))return Na(I),!0;const Ce=wt(H(I));if(D=Yf(L.uponSanitizeElement,D,re,Ye),Bn(L.uponSanitizeElement,I,{tagName:Ce,allowedTags:D}),Qr(I,le))return!0;if(G1(I,Ce))return Na(I),!0;if(Se[Ce]||!(se.tagCheck instanceof Function&&se.tagCheck(Ce))&&!D[Ce]){const Pe=Y1(I,Ce,le);return Pe===!1&&(Bn(L.afterSanitizeElements,I,null),Qr(I,le))?!0:Pe}if(z(I)===dn.element&&!H1(I)||(Ce==="noscript"||Ce==="noembed"||Ce==="noframes")&&Ut(MI,I.innerHTML))return Na(I),!0;if(We&&I.nodeType===dn.text){const Pe=bi(I.textContent);I.textContent!==Pe&&(mo(t.removed,{element:I.cloneNode()}),I.textContent=Pe)}return Bn(L.afterSanitizeElements,I,null),Qr(I,le)},Zf=function(I,le,Ce){if(de[le]||Wf(le,I)||Ke&&(le==="id"||le==="name")&&(Ce in n||Ce in V1))return!1;const Pe=J[le]||se.attributeCheck instanceof Function&&se.attributeCheck(le,I);return De&&Ut(ie,le)||Te&&Ut(Z,le)?!0:Pe?eo[le]||Ut(A,ho(Ce,ce,""))||(le==="src"||le==="xlink:href"||le==="href")&&I!=="script"&&Em(Ce,"data:")===0&&hi[I]||Ie&&!Ut(te,ho(Ce,ce,""))?!0:!Ce:Xf(I)&&xi($e.tagNameCheck,I)&&xi($e.attributeNameCheck,le,I)||le==="is"&&$e.allowCustomizedBuiltInElements&&xi($e.tagNameCheck,Ce)},J1=st({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Xf=function(I){return!J1[wo(I)]&&Ut(g,I)},Z1=function(I,le,Ce,Pe){if(S&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!Ce)switch(d.getAttributeType(I,le)){case"TrustedHTML":return q(Pe);case"TrustedScriptURL":return ee(Pe)}return Pe},X1=function(I,le,Ce,Pe){try{return Ce?I.setAttributeNS(Ce,le,Pe):I.setAttribute(le,Pe),_i(I)?(Na(I),!1):!0}catch{return _r(le,I),!1}},Qf=function(I,le){if(Bn(L.beforeSanitizeAttributes,I,null),Qr(I,le))return;const Ce=I.attributes;if(!Ce||_i(I))return;J=Yf(L.uponSanitizeAttribute,J,ue,rt);const Pe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:J,forceKeepAttr:void 0};let He=Ce.length;const at=wt(I.nodeName);for(;He--;){const ot=Ce[He],xt=ot.name,bn=ot.namespaceURI,un=ot.value,el=wt(xt),ku=un;let Yt=xt==="value"?ku:vI(ku),ep=!1;if(Pe.attrName=el,Pe.attrValue=Yt,Pe.keepAttr=!0,Pe.forceKeepAttr=void 0,Bn(L.uponSanitizeAttribute,I,Pe),Yt=Pe.attrValue,Rt&&(el==="id"||el==="name")&&Em(Yt,Pa)!==0&&(_r(xt,I,ot),Yt=Pa+Yt,ep=!0),_e&&Ut(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Yt)){_r(xt,I,ot);continue}if(el==="attributename"&&Sm(Yt,"href")){_r(xt,I,ot);continue}if(!Pe.forceKeepAttr){if(!Pe.keepAttr){_r(xt,I,ot);continue}if(!je&&Ut(PI,Yt)){_r(xt,I,ot);continue}if(We&&(Yt=bi(Yt)),!Zf(at,el,Yt)){_r(xt,I,ot);continue}Yt=Z1(at,el,bn,Yt),Yt!==ku&&X1(I,xt,bn,Yt)&&ep&&Cm(t.removed)}}Bn(L.afterSanitizeAttributes,I,null),Qr(I,le)},ki=function(I){let le=null;const Ce=Gf(I);for(Bn(L.beforeSanitizeShadowDOM,I,null);le=Ce.nextNode();)if(Bn(L.uponSanitizeShadowNode,le,null),Jf(le,I),Qf(le,I),Xr(le.content)&&ki(le.content),z(le)===dn.element){const Pe=$(le);Xr(Pe)&&(xu(Pe),ki(Pe))}Bn(L.afterSanitizeShadowDOM,I,null)},xu=function(I){const le=[{node:I,shadow:null}];for(;le.length>0;){const Ce=le.pop();if(Ce.shadow){ki(Ce.shadow);continue}const Pe=Ce.node,He=z(Pe)===dn.element,at=k(Pe);if(at)for(let ot=at.length-1;ot>=0;--ot)le.push({node:at[ot],shadow:null});if(He){const ot=M?M(Pe):null;if(typeof ot=="string"&&wt(ot)==="template"){const xt=Pe.content;Xr(xt)&&le.push({node:xt,shadow:null})}}if(He){const ot=$(Pe);Xr(ot)&&le.push({node:null,shadow:ot},{node:ot,shadow:null})}}};return t.sanitize=function(Me){let I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},le=null,Ce=null,Pe=null,He=null;if(to=!Me,to&&(Me=""),typeof Me!="string"&&!no(Me)&&(Me=bI(Me),typeof Me!="string"))throw Va("dirty is not a string, aborting");if(!t.isSupported)return Me;Ne?(D=Ye,J=rt):bu(I),(L.uponSanitizeElement.length>0||L.uponSanitizeAttribute.length>0)&&(D=fn(D)),L.uponSanitizeAttribute.length>0&&(J=fn(J)),t.removed=[];const at=Gr&&typeof Me!="string"&&no(Me);if(at){K1(Me);const bn=H(Me);if(typeof bn=="string"){const un=wt(bn);if(!D[un]||Se[un])throw yi(Me),Va("root node is forbidden and cannot be sanitized in-place")}if(_i(Me))throw yi(Me),Va("root node is clobbered and cannot be sanitized in-place");try{xu(Me)}catch(un){throw yi(Me),un}}else if(no(Me))le=Kf(""),Ce=le.ownerDocument.importNode(Me,!0),Ce.nodeType===dn.element&&Ce.nodeName==="BODY"||Ce.nodeName==="HTML"?le=Ce:le.appendChild(Ce),xu(le);else{if(!Nt&&!We&&!ke&&Me.indexOf("<")===-1)return S&&Fe?q(Me):Me;if(le=Kf(Me),!le)return Nt?null:Fe?N:""}le&&St&&Na(le.firstChild);const ot=at?Me:le;try{const bn=Gf(ot);for(;Pe=bn.nextNode();)Jf(Pe,ot),Qf(Pe,ot),Xr(Pe.content)&&ki(Pe.content)}catch(bn){throw at&&(yi(Me),Ar(t.removed,un=>{un.element&&gi(un.element)})),bn}if(at){let bn=!1;if(Ar(t.removed,un=>{un.element&&(un.element===Me&&(bn=!0),gi(un.element))}),bn)throw Va("a node selected for removal could not be safely returned; refusing to sanitize in place");return We&&_u(Me),Me}if(Nt){if(We&&_u(le),Ve)for(He=be.call(le.ownerDocument);le.firstChild;)He.appendChild(le.firstChild);else He=le;return(J.shadowroot||J.shadowrootmode)&&(He=Ae.call(a,He,!0)),He}let xt=ke?le.outerHTML:le.innerHTML;return ke&&D["!doctype"]&&le.ownerDocument&&le.ownerDocument.doctype&&le.ownerDocument.doctype.name&&Ut(DI,le.ownerDocument.doctype.name)&&(xt=" -`+xt),We&&(xt=bi(xt)),S&&Fe?q(xt):xt},t.setConfig=function(){let Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};bu(Me),Ne=!0,Ye=D,rt=J},t.clearConfig=function(){Zr=null,Ne=!1,Ye=null,rt=null,S=Y,N=""},t.isValidAttribute=function(Me,I,le){Zr||bu({});const Ce=wt(Me),Pe=wt(I);return Zf(Ce,Pe,le)},t.addHook=function(Me,I){typeof I=="function"&&an(L,Me)&&mo(L[Me],I)},t.removeHook=function(Me,I){if(an(L,Me)){if(I!==void 0){const le=fI(L[Me],I);return le===-1?void 0:pI(L[Me],le,1)[0]}return Cm(L[Me])}},t.removeHooks=function(Me){an(L,Me)&&(L[Me]=[])},t.removeAllHooks=function(){L=Nm()},t}var LI=k1();const BI=["http","https","mailto","tel"],FI=/[\x00-\x20\x7f]+/g,VI=/^([a-z][a-z0-9+.-]*):/i;function w1(e){if(e==null)return!1;const t=e.replace(FI,"");if(t==="")return!1;const n=VI.exec(t);if(n)return BI.includes(n[1].toLowerCase());try{return new URL(t,"https://admin.invalid/"),!0}catch{return!1}}const zI=["script","style","template","noscript","iframe","frame","frameset","object","embed","applet","svg","math","title","head","meta","link","base"],$1=Object.freeze({ALLOWED_TAGS:[...y1],ALLOWED_ATTR:["href"],ALLOW_DATA_ATTR:!1,ALLOW_ARIA_ATTR:!1,ADD_FORBID_CONTENTS:[...zI],KEEP_CONTENT:!0,RETURN_TRUSTED_TYPE:!1}),jI='

a +