$&&(P=$)):P=$;const G=g.length;P>G/2&&(P=G/2);let at;for(at=0;at>>0,isFinite(v)?(v=v>>>0,P===void 0&&(P="utf8")):(P=v,v=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const $=this.length-g;if((v===void 0||v>$)&&(v=$),h.length>0&&(v<0||g<0)||g>this.length)throw new RangeError("Attempt to write outside buffer bounds");P||(P="utf8");let G=!1;for(;;)switch(P){case"hex":return et(this,h,g,v);case"utf8":case"utf-8":return T(this,h,g,v);case"ascii":case"latin1":case"binary":return F(this,h,g,v);case"base64":return Q(this,h,g,v);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,h,g,v);default:if(G)throw new TypeError("Unknown encoding: "+P);P=(""+P).toLowerCase(),G=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Z(h,g,v){return g===0&&v===h.length?e.fromByteArray(h):e.fromByteArray(h.slice(g,v))}function rt(h,g,v){v=Math.min(h.length,v);const P=[];let $=g;for(;$239?4:G>223?3:G>191?2:1;if($+Wt<=v){let he,qt,Nt,le;switch(Wt){case 1:G<128&&(at=G);break;case 2:he=h[$+1],(he&192)===128&&(le=(G&31)<<6|he&63,le>127&&(at=le));break;case 3:he=h[$+1],qt=h[$+2],(he&192)===128&&(qt&192)===128&&(le=(G&15)<<12|(he&63)<<6|qt&63,le>2047&&(le<55296||le>57343)&&(at=le));break;case 4:he=h[$+1],qt=h[$+2],Nt=h[$+3],(he&192)===128&&(qt&192)===128&&(Nt&192)===128&&(le=(G&15)<<18|(he&63)<<12|(qt&63)<<6|Nt&63,le>65535&&le<1114112&&(at=le))}}at===null?(at=65533,Wt=1):at>65535&&(at-=65536,P.push(at>>>10&1023|55296),at=56320|at&1023),P.push(at),$+=Wt}return ft(P)}const lt=4096;function ft(h){const g=h.length;if(g<=lt)return String.fromCharCode.apply(String,h);let v="",P=0;for(;PP)&&(v=P);let $="";for(let G=g;Gv&&(h=v),g<0?(g+=v,g<0&&(g=0)):g>v&&(g=v),gv)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(h,g,v){h=h>>>0,g=g>>>0,v||Pt(h,g,this.length);let P=this[h],$=1,G=0;for(;++G>>0,g=g>>>0,v||Pt(h,g,this.length);let P=this[h+--g],$=1;for(;g>0&&($*=256);)P+=this[h+--g]*$;return P},u.prototype.readUint8=u.prototype.readUInt8=function(h,g){return h=h>>>0,g||Pt(h,1,this.length),this[h]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(h,g){return h=h>>>0,g||Pt(h,2,this.length),this[h]|this[h+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(h,g){return h=h>>>0,g||Pt(h,2,this.length),this[h]<<8|this[h+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(h,g){return h=h>>>0,g||Pt(h,4,this.length),(this[h]|this[h+1]<<8|this[h+2]<<16)+this[h+3]*16777216},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(h,g){return h=h>>>0,g||Pt(h,4,this.length),this[h]*16777216+(this[h+1]<<16|this[h+2]<<8|this[h+3])},u.prototype.readBigUInt64LE=It(function(h){h=h>>>0,B(h,"offset");const g=this[h],v=this[h+7];(g===void 0||v===void 0)&&it(h,this.length-8);const P=g+this[++h]*2**8+this[++h]*2**16+this[++h]*2**24,$=this[++h]+this[++h]*2**8+this[++h]*2**16+v*2**24;return BigInt(P)+(BigInt($)<>>0,B(h,"offset");const g=this[h],v=this[h+7];(g===void 0||v===void 0)&&it(h,this.length-8);const P=g*2**24+this[++h]*2**16+this[++h]*2**8+this[++h],$=this[++h]*2**24+this[++h]*2**16+this[++h]*2**8+v;return(BigInt(P)<>>0,g=g>>>0,v||Pt(h,g,this.length);let P=this[h],$=1,G=0;for(;++G=$&&(P-=Math.pow(2,8*g)),P},u.prototype.readIntBE=function(h,g,v){h=h>>>0,g=g>>>0,v||Pt(h,g,this.length);let P=g,$=1,G=this[h+--P];for(;P>0&&($*=256);)G+=this[h+--P]*$;return $*=128,G>=$&&(G-=Math.pow(2,8*g)),G},u.prototype.readInt8=function(h,g){return h=h>>>0,g||Pt(h,1,this.length),this[h]&128?(255-this[h]+1)*-1:this[h]},u.prototype.readInt16LE=function(h,g){h=h>>>0,g||Pt(h,2,this.length);const v=this[h]|this[h+1]<<8;return v&32768?v|4294901760:v},u.prototype.readInt16BE=function(h,g){h=h>>>0,g||Pt(h,2,this.length);const v=this[h+1]|this[h]<<8;return v&32768?v|4294901760:v},u.prototype.readInt32LE=function(h,g){return h=h>>>0,g||Pt(h,4,this.length),this[h]|this[h+1]<<8|this[h+2]<<16|this[h+3]<<24},u.prototype.readInt32BE=function(h,g){return h=h>>>0,g||Pt(h,4,this.length),this[h]<<24|this[h+1]<<16|this[h+2]<<8|this[h+3]},u.prototype.readBigInt64LE=It(function(h){h=h>>>0,B(h,"offset");const g=this[h],v=this[h+7];(g===void 0||v===void 0)&&it(h,this.length-8);const P=this[h+4]+this[h+5]*2**8+this[h+6]*2**16+(v<<24);return(BigInt(P)<>>0,B(h,"offset");const g=this[h],v=this[h+7];(g===void 0||v===void 0)&&it(h,this.length-8);const P=(g<<24)+this[++h]*2**16+this[++h]*2**8+this[++h];return(BigInt(P)<>>0,g||Pt(h,4,this.length),n.read(this,h,!0,23,4)},u.prototype.readFloatBE=function(h,g){return h=h>>>0,g||Pt(h,4,this.length),n.read(this,h,!1,23,4)},u.prototype.readDoubleLE=function(h,g){return h=h>>>0,g||Pt(h,8,this.length),n.read(this,h,!0,52,8)},u.prototype.readDoubleBE=function(h,g){return h=h>>>0,g||Pt(h,8,this.length),n.read(this,h,!1,52,8)};function $t(h,g,v,P,$,G){if(!u.isBuffer(h))throw new TypeError('"buffer" argument must be a Buffer instance');if(g>$||gh.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(h,g,v,P){if(h=+h,g=g>>>0,v=v>>>0,!P){const at=Math.pow(2,8*v)-1;$t(this,h,g,v,at,0)}let $=1,G=0;for(this[g]=h&255;++G>>0,v=v>>>0,!P){const at=Math.pow(2,8*v)-1;$t(this,h,g,v,at,0)}let $=v-1,G=1;for(this[g+$]=h&255;--$>=0&&(G*=256);)this[g+$]=h/G&255;return g+v},u.prototype.writeUint8=u.prototype.writeUInt8=function(h,g,v){return h=+h,g=g>>>0,v||$t(this,h,g,1,255,0),this[g]=h&255,g+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(h,g,v){return h=+h,g=g>>>0,v||$t(this,h,g,2,65535,0),this[g]=h&255,this[g+1]=h>>>8,g+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(h,g,v){return h=+h,g=g>>>0,v||$t(this,h,g,2,65535,0),this[g]=h>>>8,this[g+1]=h&255,g+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(h,g,v){return h=+h,g=g>>>0,v||$t(this,h,g,4,4294967295,0),this[g+3]=h>>>24,this[g+2]=h>>>16,this[g+1]=h>>>8,this[g]=h&255,g+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(h,g,v){return h=+h,g=g>>>0,v||$t(this,h,g,4,4294967295,0),this[g]=h>>>24,this[g+1]=h>>>16,this[g+2]=h>>>8,this[g+3]=h&255,g+4};function Et(h,g,v,P,$){X(g,P,$,h,v,7);let G=Number(g&BigInt(4294967295));h[v++]=G,G=G>>8,h[v++]=G,G=G>>8,h[v++]=G,G=G>>8,h[v++]=G;let at=Number(g>>BigInt(32)&BigInt(4294967295));return h[v++]=at,at=at>>8,h[v++]=at,at=at>>8,h[v++]=at,at=at>>8,h[v++]=at,v}function ne(h,g,v,P,$){X(g,P,$,h,v,7);let G=Number(g&BigInt(4294967295));h[v+7]=G,G=G>>8,h[v+6]=G,G=G>>8,h[v+5]=G,G=G>>8,h[v+4]=G;let at=Number(g>>BigInt(32)&BigInt(4294967295));return h[v+3]=at,at=at>>8,h[v+2]=at,at=at>>8,h[v+1]=at,at=at>>8,h[v]=at,v+8}u.prototype.writeBigUInt64LE=It(function(h,g=0){return Et(this,h,g,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=It(function(h,g=0){return ne(this,h,g,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(h,g,v,P){if(h=+h,g=g>>>0,!P){const Wt=Math.pow(2,8*v-1);$t(this,h,g,v,Wt-1,-Wt)}let $=0,G=1,at=0;for(this[g]=h&255;++$>0)-at&255;return g+v},u.prototype.writeIntBE=function(h,g,v,P){if(h=+h,g=g>>>0,!P){const Wt=Math.pow(2,8*v-1);$t(this,h,g,v,Wt-1,-Wt)}let $=v-1,G=1,at=0;for(this[g+$]=h&255;--$>=0&&(G*=256);)h<0&&at===0&&this[g+$+1]!==0&&(at=1),this[g+$]=(h/G>>0)-at&255;return g+v},u.prototype.writeInt8=function(h,g,v){return h=+h,g=g>>>0,v||$t(this,h,g,1,127,-128),h<0&&(h=255+h+1),this[g]=h&255,g+1},u.prototype.writeInt16LE=function(h,g,v){return h=+h,g=g>>>0,v||$t(this,h,g,2,32767,-32768),this[g]=h&255,this[g+1]=h>>>8,g+2},u.prototype.writeInt16BE=function(h,g,v){return h=+h,g=g>>>0,v||$t(this,h,g,2,32767,-32768),this[g]=h>>>8,this[g+1]=h&255,g+2},u.prototype.writeInt32LE=function(h,g,v){return h=+h,g=g>>>0,v||$t(this,h,g,4,2147483647,-2147483648),this[g]=h&255,this[g+1]=h>>>8,this[g+2]=h>>>16,this[g+3]=h>>>24,g+4},u.prototype.writeInt32BE=function(h,g,v){return h=+h,g=g>>>0,v||$t(this,h,g,4,2147483647,-2147483648),h<0&&(h=4294967295+h+1),this[g]=h>>>24,this[g+1]=h>>>16,this[g+2]=h>>>8,this[g+3]=h&255,g+4},u.prototype.writeBigInt64LE=It(function(h,g=0){return Et(this,h,g,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=It(function(h,g=0){return ne(this,h,g,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function nn(h,g,v,P,$,G){if(v+P>h.length)throw new RangeError("Index out of range");if(v<0)throw new RangeError("Index out of range")}function mn(h,g,v,P,$){return g=+g,v=v>>>0,$||nn(h,g,v,4),n.write(h,g,v,P,23,4),v+4}u.prototype.writeFloatLE=function(h,g,v){return mn(this,h,g,!0,v)},u.prototype.writeFloatBE=function(h,g,v){return mn(this,h,g,!1,v)};function vn(h,g,v,P,$){return g=+g,v=v>>>0,$||nn(h,g,v,8),n.write(h,g,v,P,52,8),v+8}u.prototype.writeDoubleLE=function(h,g,v){return vn(this,h,g,!0,v)},u.prototype.writeDoubleBE=function(h,g,v){return vn(this,h,g,!1,v)},u.prototype.copy=function(h,g,v,P){if(!u.isBuffer(h))throw new TypeError("argument should be a Buffer");if(v||(v=0),!P&&P!==0&&(P=this.length),g>=h.length&&(g=h.length),g||(g=0),P>0&&P=this.length)throw new RangeError("Index out of range");if(P<0)throw new RangeError("sourceEnd out of bounds");P>this.length&&(P=this.length),h.length-g>>0,v=v===void 0?this.length:v>>>0,h||(h=0);let $;if(typeof h=="number")for($=g;$2**32?$=W(String(v)):typeof v=="bigint"&&($=String(v),(v>BigInt(2)**BigInt(32)||v<-(BigInt(2)**BigInt(32)))&&($=W($)),$+="n"),P+=` It must be ${g}. Received ${$}`,P},RangeError);function W(h){let g="",v=h.length;const P=h[0]==="-"?1:0;for(;v>=P+4;v-=3)g=`_${h.slice(v-3,v)}${g}`;return`${h.slice(0,v)}${g}`}function K(h,g,v){B(g,"offset"),(h[g]===void 0||h[g+v]===void 0)&&it(g,h.length-(v+1))}function X(h,g,v,P,$,G){if(h>v||h= 0${at} and < 2${at} ** ${(G+1)*8}${at}`:Wt=`>= -(2${at} ** ${(G+1)*8-1}${at}) and < 2 ** ${(G+1)*8-1}${at}`,new C.ERR_OUT_OF_RANGE("value",Wt,h)}K(P,$,G)}function B(h,g){if(typeof h!="number")throw new C.ERR_INVALID_ARG_TYPE(g,"number",h)}function it(h,g,v){throw Math.floor(h)!==h?(B(h,v),new C.ERR_OUT_OF_RANGE("offset","an integer",h)):g<0?new C.ERR_BUFFER_OUT_OF_BOUNDS:new C.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${g}`,h)}const st=/[^+/0-9A-Za-z-_]/g;function nt(h){if(h=h.split("=")[0],h=h.trim().replace(st,""),h.length<2)return"";for(;h.length%4!==0;)h=h+"=";return h}function tt(h,g){g=g||1/0;let v;const P=h.length;let $=null;const G=[];for(let at=0;at55295&&v<57344){if(!$){if(v>56319){(g-=3)>-1&&G.push(239,191,189);continue}else if(at+1===P){(g-=3)>-1&&G.push(239,191,189);continue}$=v;continue}if(v<56320){(g-=3)>-1&&G.push(239,191,189),$=v;continue}v=($-55296<<10|v-56320)+65536}else $&&(g-=3)>-1&&G.push(239,191,189);if($=null,v<128){if((g-=1)<0)break;G.push(v)}else if(v<2048){if((g-=2)<0)break;G.push(v>>6|192,v&63|128)}else if(v<65536){if((g-=3)<0)break;G.push(v>>12|224,v>>6&63|128,v&63|128)}else if(v<1114112){if((g-=4)<0)break;G.push(v>>18|240,v>>12&63|128,v>>6&63|128,v&63|128)}else throw new Error("Invalid code point")}return G}function mt(h){const g=[];for(let v=0;v>8,$=v%256,G.push($),G.push(P);return G}function yt(h){return e.toByteArray(nt(h))}function vt(h,g,v,P){let $;for($=0;$=g.length||$>=h.length);++$)g[$+v]=h[$];return $}function wt(h,g){return h instanceof g||h!=null&&h.constructor!=null&&h.constructor.name!=null&&h.constructor.name===g.name}function Lt(h){return h!==h}const Jt=(function(){const h="0123456789abcdef",g=new Array(256);for(let v=0;v<16;++v){const P=v*16;for(let $=0;$<16;++$)g[P+$]=h[v]+h[$]}return g})();function It(h){return typeof BigInt>"u"?ae:h}function ae(){throw new Error("BigInt not supported")}})(om);const qh=om.Buffer,rm=Symbol.for("NcFormBox:context");function am(){return Ci(rm,{isInFormBox:!1,formBoxItemClass:void 0})}const kx={class:"button-vue__wrapper"},Rx={class:"button-vue__icon"},Px={class:"button-vue__text"},Lx=Rt({__name:"NcButton",props:{alignment:{default:"center"},ariaLabel:{default:void 0},disabled:{type:Boolean},download:{type:[String,Boolean],default:void 0},href:{default:void 0},pressed:{type:Boolean,default:void 0},size:{default:"normal"},target:{default:"_self"},text:{default:void 0},to:{default:void 0},type:{default:"button"},variant:{default:"secondary"},wide:{type:Boolean}},emits:["click","update:pressed"],setup(t,{emit:e}){const n=t,i=e,{formBoxItemClass:o}=am(),s=Ci(im,null)!==null,r=ht(()=>s&&n.to?"RouterLink":n.href?"a":"button"),a=ht(()=>r.value==="button"&&typeof n.pressed=="boolean"),l=ht(()=>n.pressed?"primary":n.pressed===!1&&n.variant==="primary"?"secondary":n.variant),c=ht(()=>l.value.startsWith("tertiary")),u=ht(()=>n.alignment.split("-")[0]),d=ht(()=>n.alignment.includes("-")),f=Ci("NcPopover:trigger:attrs",()=>({}),!1),p=ht(()=>f()),y=ht(()=>{if(r.value==="RouterLink")return{to:n.to,activeClass:"active"};if(r.value==="a")return{href:n.href||"#",target:n.target,rel:"nofollow noreferrer noopener",download:n.download||void 0};if(r.value==="button")return{...p.value,"aria-pressed":n.pressed,type:n.type,disabled:n.disabled}});function m(x){a.value&&i("update:pressed",!n.pressed),i("click",x)}return(x,b)=>(O(),Ct(_l(r.value),ee({class:["button-vue",[`button-vue--size-${t.size}`,{[`button-vue--${l.value}`]:l.value,"button-vue--tertiary":c.value,"button-vue--wide":t.wide,[`button-vue--${u.value}`]:u.value!=="center","button-vue--reverse":d.value,"button-vue--legacy":E(qc),"button-vue--legacy34":E(Jw)},E(o)]],"aria-label":t.ariaLabel},y.value,{onClick:m}),{default:kt(()=>[w("span",kx,[w("span",Rx,[Zt(x.$slots,"icon",{},void 0,!0)]),w("span",Px,[Zt(x.$slots,"default",{},()=>[Dt(L(t.text),1)],!0)])])]),_:3},16,["class","aria-label"]))}}),si=Ie(Lx,[["__scopeId","data-v-00a99684"]]),Dx=["aria-label"],Nx=["width","height"],Ox=["fill"],$x=["fill"],Bx={key:0},Fx=Rt({__name:"NcLoadingIcon",props:{appearance:{default:"auto"},name:{default:""},size:{default:20}},setup(t){const e=t,n=ht(()=>{const i=["#777","#CCC"];return e.appearance==="light"?i:e.appearance==="dark"?i.reverse():["var(--color-loading-light)","var(--color-loading-dark)"]});return(i,o)=>(O(),J("span",{"aria-label":t.name,role:"img",class:"material-design-icon loading-icon"},[(O(),J("svg",{width:t.size,height:t.size,viewBox:"0 0 24 24"},[w("path",{fill:n.value[0],d:"M12,4V2A10,10 0 1,0 22,12H20A8,8 0 1,1 12,4Z"},null,8,Ox),w("path",{fill:n.value[1],d:"M12,4V2A10,10 0 0,1 22,12H20A8,8 0 0,0 12,4Z"},[t.name?(O(),J("title",Bx,L(t.name),1)):_t("",!0)],8,$x)],8,Nx))],8,Dx))}}),jx=Ie(Fx,[["__scopeId","data-v-cf399190"]]);wr(Sw);const Ux=Rt({__name:"NcDialogButton",props:{callback:{type:Function,default:()=>{}},disabled:{type:Boolean,default:!1},icon:{default:void 0},label:{},type:{default:"button"},variant:{default:"tertiary"}},emits:["click"],setup(t,{emit:e}){const n=t,i=e,o=ge(!1);async function s(r){if(!o.value){o.value=!0;try{const a=n.type==="reset"?!1:void 0,l=await n.callback?.()??a;l!==!1&&i("click",r,l)}finally{o.value=!1}}}return(r,a)=>(O(),Ct(E(si),{"aria-label":t.label,disabled:t.disabled,type:t.type,variant:t.variant,onClick:s},{icon:kt(()=>[Zt(r.$slots,"icon",{},()=>[o.value?(O(),Ct(E(jx),{key:0,name:E(We)("Loading …")},null,8,["name"])):t.icon!==void 0?(O(),Ct(E(Vn),{key:1,svg:t.icon},null,8,["svg"])):_t("",!0)])]),default:kt(()=>[Dt(L(t.label)+" ",1)]),_:3},8,["aria-label","disabled","type","variant"]))}});var lm=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","area[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],Na=lm.join(","),um=typeof Element>"u",fo=um?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Oa=!um&&Element.prototype.getRootNode?function(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}:function(t){return t?.ownerDocument},$a=function(t,e){var n;e===void 0&&(e=!0);var i=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"inert"),o=i===""||i==="true",s=o||e&&t&&(typeof t.closest=="function"?t.closest("[inert]"):$a(t.parentNode));return s},Vx=function(t){var e,n=t==null||(e=t.getAttribute)===null||e===void 0?void 0:e.call(t,"contenteditable");return n===""||n==="true"},cm=function(t,e,n){if($a(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(Na));return e&&fo.call(t,Na)&&i.unshift(t),i=i.filter(n),i},Ba=function(t,e,n){for(var i=[],o=Array.from(t);o.length;){var s=o.shift();if(!$a(s,!1))if(s.tagName==="SLOT"){var r=s.assignedElements(),a=r.length?r:s.children,l=Ba(a,!0,n);n.flatten?i.push.apply(i,l):i.push({scopeParent:s,candidates:l})}else{var c=fo.call(s,Na);c&&n.filter(s)&&(e||!t.includes(s))&&i.push(s);var u=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),d=!$a(u,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(s));if(u&&d){var f=Ba(u===!0?s.children:u.children,!0,n);n.flatten?i.push.apply(i,f):i.push({scopeParent:s,candidates:f})}else o.unshift.apply(o,s.children)}}return i},dm=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Qi=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||Vx(t))&&!dm(t)?0:t.tabIndex},Ix=function(t,e){var n=Qi(t);return n<0&&e&&!dm(t)?0:n},zx=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},hm=function(t){return t.tagName==="INPUT"},Hx=function(t){return hm(t)&&t.type==="hidden"},Jx=function(t){var e=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(n){return n.tagName==="SUMMARY"});return e},Wx=function(t,e){for(var n=0;nsummary:first-of-type"),l=a?t.parentElement:t;if(fo.call(l,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="full-native"||n==="legacy-full"){if(typeof i=="function"){for(var c=t;t;){var u=t.parentElement,d=Oa(t);if(u&&!u.shadowRoot&&i(u)===!0)return Kh(t);t.assignedSlot?t=t.assignedSlot:!u&&d!==t.ownerDocument?t=d.host:t=u}t=c}if(Xx(t))return!t.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return Kh(t);return!1},Zx=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if(e.tagName==="FIELDSET"&&e.disabled){for(var n=0;n=0)},fm=function(t){var e=[],n=[];return t.forEach(function(i,o){var s=!!i.scopeParent,r=s?i.scopeParent:i,a=Ix(r,s),l=s?fm(i.candidates):r;a===0?s?e.push.apply(e,l):e.push(r):n.push({documentOrder:o,tabIndex:a,item:i,isScope:s,content:l})}),n.sort(zx).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(e)},Mx=function(t,e){e=e||{};var n;return e.getShadowRoot?n=Ba([t],e.includeContainer,{filter:ac.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:Qx}):n=cm(t,e.includeContainer,ac.bind(null,e)),fm(n)},t2=function(t,e){e=e||{};var n;return e.getShadowRoot?n=Ba([t],e.includeContainer,{filter:Fa.bind(null,e),flatten:!0,getShadowRoot:e.getShadowRoot}):n=cm(t,e.includeContainer,Fa.bind(null,e)),n},ko=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return fo.call(t,Na)===!1?!1:ac(e,t)},e2=lm.concat("iframe:not([inert]):not([inert] *)").join(","),uu=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return fo.call(t,e2)===!1?!1:Fa(e,t)};function lc(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
+In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,r=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return r=l.done,l},e:function(l){a=!0,s=l},f:function(){try{r||n.return==null||n.return()}finally{if(a)throw s}}}}function i2(t,e,n){return(e=l2(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o2(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function s2(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
+In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,i)}return n}function Zh(t){for(var e=1;e0?t[t.length-1]:null},activateTrap:function(t,e){var n=oi.getActiveTrap(t);e!==n&&oi.pauseTrap(t);var i=t.indexOf(e);i===-1||t.splice(i,1),t.push(e)},deactivateTrap:function(t,e){var n=t.indexOf(e);n!==-1&&t.splice(n,1),oi.unpauseTrap(t)},pauseTrap:function(t){var e=oi.getActiveTrap(t);e?._setPausedState(!0)},unpauseTrap:function(t){var e=oi.getActiveTrap(t);e&&!e._isManuallyPaused()&&e._setPausedState(!1)}},u2=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},c2=function(t){return t?.key==="Escape"||t?.key==="Esc"||t?.keyCode===27},Os=function(t){return t?.key==="Tab"||t?.keyCode===9},d2=function(t){return Os(t)&&!t.shiftKey},h2=function(t){return Os(t)&&t.shiftKey},Qh=function(t){return setTimeout(t,0)},hs=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i1&&arguments[1]!==void 0?arguments[1]:{},Q=F.hasFallback,M=Q===void 0?!1:Q,Z=F.params,rt=Z===void 0?[]:Z,lt=o[T];if(typeof lt=="function"&&(lt=lt.apply(void 0,r2(rt))),lt===!0&&(lt=void 0),!lt){if(lt===void 0||lt===!1)return lt;throw new Error("`".concat(T,"` was specified but was not a node, or did not return a node"))}var ft=lt;if(typeof lt=="string"){try{ft=n.querySelector(lt)}catch(pt){throw new Error("`".concat(T,'` appears to be an invalid selector; error="').concat(pt.message,'"'))}if(!ft&&!M)throw new Error("`".concat(T,"` as selector refers to no known node"))}return ft},u=function(T){var F=T.activeElement;return F?F.shadowRoot&&F.shadowRoot.activeElement!==null?u(F.shadowRoot):F:null},d=function(){var T=c("initialFocus",{hasFallback:!0});if(T===!1)return!1;if(T===void 0||T&&!uu(T,o.tabbableOptions)){var F=u(n);if(l(F)>=0)T=F;else{var Q=s.tabbableGroups[0],M=Q&&Q.firstTabbableNode;T=M||c("fallbackFocus")}}else T===null&&(T=c("fallbackFocus"));if(!T)throw new Error("Your focus-trap needs to have at least one focusable element");return T},f=function(){if(s.containerGroups=s.containers.map(function(T){var F=Mx(T,o.tabbableOptions),Q=t2(T,o.tabbableOptions),M=F.length>0?F[0]:void 0,Z=F.length>0?F[F.length-1]:void 0,rt=Q.find(function(pt){return ko(pt)}),lt=Q.slice().reverse().find(function(pt){return ko(pt)}),ft=!!F.find(function(pt){return Qi(pt)>0});return{container:T,tabbableNodes:F,focusableNodes:Q,posTabIndexesFound:ft,firstTabbableNode:M,lastTabbableNode:Z,firstDomTabbableNode:rt,lastDomTabbableNode:lt,nextTabbableNode:function(pt){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,gt=F.indexOf(pt);return gt<0?xt?Q.slice(Q.indexOf(pt)+1).find(function(Gt){return ko(Gt)}):Q.slice(0,Q.indexOf(pt)).reverse().find(function(Gt){return ko(Gt)}):F[gt+(xt?1:-1)]}}}),s.tabbableGroups=s.containerGroups.filter(function(T){return T.tabbableNodes.length>0}),s.tabbableGroups.length<=0&&!c("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(s.containerGroups.find(function(T){return T.posTabIndexesFound})&&s.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},p=function(T){if(T!==!1&&T!==u(document)){if(!T||!T.focus){p(d());return}T.focus({preventScroll:!!o.preventScroll}),s.mostRecentlyFocusedNode=T,u2(T)&&T.select()}},y=function(T){var F=c("setReturnFocus",{params:[T]});return F||(F===!1?!1:T)},m=function(T){var F=T.target,Q=T.event,M=T.isBackward,Z=M===void 0?!1:M;F=F||Vr(Q),f();var rt=null;if(s.tabbableGroups.length>0){var lt=l(F,Q),ft=lt>=0?s.containerGroups[lt]:void 0;if(lt<0)Z?rt=s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:rt=s.tabbableGroups[0].firstTabbableNode;else if(Z){var pt=s.tabbableGroups.findIndex(function(Et){var ne=Et.firstTabbableNode;return F===ne});if(pt<0&&(ft.container===F||uu(F,o.tabbableOptions)&&!ko(F,o.tabbableOptions)&&!ft.nextTabbableNode(F,!1))&&(pt=lt),pt>=0){var xt=pt===0?s.tabbableGroups.length-1:pt-1,gt=s.tabbableGroups[xt];rt=Qi(F)>=0?gt.lastTabbableNode:gt.lastDomTabbableNode}else Os(Q)||(rt=ft.nextTabbableNode(F,!1))}else{var Gt=s.tabbableGroups.findIndex(function(Et){var ne=Et.lastTabbableNode;return F===ne});if(Gt<0&&(ft.container===F||uu(F,o.tabbableOptions)&&!ko(F,o.tabbableOptions)&&!ft.nextTabbableNode(F))&&(Gt=lt),Gt>=0){var Pt=Gt===s.tabbableGroups.length-1?0:Gt+1,$t=s.tabbableGroups[Pt];rt=Qi(F)>=0?$t.firstTabbableNode:$t.firstDomTabbableNode}else Os(Q)||(rt=ft.nextTabbableNode(F))}}else rt=c("fallbackFocus");return rt},x=function(T){var F=Vr(T);if(!(l(F,T)>=0)){if(hs(o.clickOutsideDeactivates,T)){r.deactivate({returnFocus:o.returnFocusOnDeactivate});return}hs(o.allowOutsideClick,T)||T.preventDefault()}},b=function(T){var F=Vr(T),Q=l(F,T)>=0;if(Q||F instanceof Document)Q&&(s.mostRecentlyFocusedNode=F);else{T.stopImmediatePropagation();var M,Z=!0;if(s.mostRecentlyFocusedNode)if(Qi(s.mostRecentlyFocusedNode)>0){var rt=l(s.mostRecentlyFocusedNode),lt=s.containerGroups[rt].tabbableNodes;if(lt.length>0){var ft=lt.findIndex(function(pt){return pt===s.mostRecentlyFocusedNode});ft>=0&&(o.isKeyForward(s.recentNavEvent)?ft+1=0&&(M=lt[ft-1],Z=!1))}}else s.containerGroups.some(function(pt){return pt.tabbableNodes.some(function(xt){return Qi(xt)>0})})||(Z=!1);else Z=!1;Z&&(M=m({target:s.mostRecentlyFocusedNode,isBackward:o.isKeyBackward(s.recentNavEvent)})),p(M||s.mostRecentlyFocusedNode||d())}s.recentNavEvent=void 0},A=function(T){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;s.recentNavEvent=T;var Q=m({event:T,isBackward:F});Q&&(Os(T)&&T.preventDefault(),p(Q))},R=function(T){(o.isKeyForward(T)||o.isKeyBackward(T))&&A(T,o.isKeyBackward(T))},S=function(T){c2(T)&&hs(o.escapeDeactivates,T)!==!1&&(T.preventDefault(),r.deactivate())},N=function(T){var F=Vr(T);l(F,T)>=0||hs(o.clickOutsideDeactivates,T)||hs(o.allowOutsideClick,T)||(T.preventDefault(),T.stopImmediatePropagation())},j=function(){if(s.active){oi.activateTrap(i,r);var T;return o.delayInitialFocus?T=new Promise(function(F){s.delayInitialFocusTimer=Qh(function(){p(d()),F()})}):p(d()),n.addEventListener("focusin",b,!0),n.addEventListener("mousedown",x,{capture:!0,passive:!1}),n.addEventListener("touchstart",x,{capture:!0,passive:!1}),n.addEventListener("click",N,{capture:!0,passive:!1}),n.addEventListener("keydown",R,{capture:!0,passive:!1}),n.addEventListener("keydown",S),T}},U=function(T){s.active&&!s.paused&&r._setSubtreeIsolation(!1),s.adjacentElements.clear(),s.alreadySilent.clear();var F=new Set,Q=new Set,M=Xh(T),Z;try{for(M.s();!(Z=M.n()).done;){var rt=Z.value;F.add(rt);for(var lt=typeof ShadowRoot<"u"&&rt.getRootNode()instanceof ShadowRoot,ft=rt;ft;){F.add(ft);var pt=ft.parentElement,xt=[];pt?xt=pt.children:!pt&<&&(xt=ft.getRootNode().children,pt=ft.getRootNode().host,lt=typeof ShadowRoot<"u"&&pt.getRootNode()instanceof ShadowRoot);var gt=Xh(xt),Gt;try{for(gt.s();!(Gt=gt.n()).done;){var Pt=Gt.value;Q.add(Pt)}}catch($t){gt.e($t)}finally{gt.f()}ft=pt}}}catch($t){M.e($t)}finally{M.f()}F.forEach(function($t){Q.delete($t)}),s.adjacentElements=Q},H=function(){if(s.active)return n.removeEventListener("focusin",b,!0),n.removeEventListener("mousedown",x,!0),n.removeEventListener("touchstart",x,!0),n.removeEventListener("click",N,!0),n.removeEventListener("keydown",R,!0),n.removeEventListener("keydown",S),r},q=function(T){var F=s.mostRecentlyFocusedNode;if(F){var Q=T.some(function(Z){var rt=Array.from(Z.removedNodes);return rt.some(function(lt){return lt===F||typeof lt.contains=="function"&<.contains(F)})});if(Q&&s.containers.some(function(Z){return Z?.isConnected})){f();var M=d();p(M)}}},V=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(q):void 0,et=function(){V&&(V.disconnect(),s.active&&!s.paused&&s.containers.map(function(T){V.observe(T,{subtree:!0,childList:!0})}))};return r={get active(){return s.active},get paused(){return s.paused},activate:function(T){if(s.active)return this;var F=a(T,"onActivate"),Q=a(T,"onPostActivate"),M=a(T,"checkCanFocusTrap"),Z=oi.getActiveTrap(i),rt=!1;if(Z&&!Z.paused){var lt;(lt=Z._setSubtreeIsolation)===null||lt===void 0||lt.call(Z,!1),rt=!0}try{M||f(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=u(n),F?.({trap:r});var ft=function(){M&&f();var xt=function(){r._setSubtreeIsolation(!0),et(),Q?.({trap:r})},gt=j();gt?gt.then(xt):xt()};if(M)return M(s.containers.concat()).then(ft,ft),this;ft()}catch(xt){if(Z===oi.getActiveTrap(i)&&rt){var pt;(pt=Z._setSubtreeIsolation)===null||pt===void 0||pt.call(Z,!0)}throw xt}return this},deactivate:function(T){if(!s.active)return this;var F=Zh({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},T);clearTimeout(s.delayInitialFocusTimer),s.delayInitialFocusTimer=void 0,s.paused||r._setSubtreeIsolation(!1),s.alreadySilent.clear(),H(),s.active=!1,s.paused=!1,et(),oi.deactivateTrap(i,r);var Q=a(F,"onDeactivate"),M=a(F,"onPostDeactivate"),Z=a(F,"checkCanReturnFocus"),rt=a(F,"delayReturnFocus"),lt=a(F,"returnFocus","returnFocusOnDeactivate");Q?.({trap:r});var ft=function(){lt&&p(y(s.nodeFocusedBeforeActivation)),M?.({trap:r})},pt=function(){rt&<?Qh(ft):ft()};return lt&&Z?(Z(y(s.nodeFocusedBeforeActivation)).then(pt,pt),this):(pt(),this)},pause:function(T){return s.active?(s.manuallyPaused=!0,this._setPausedState(!0,T)):this},unpause:function(T){return s.active?(s.manuallyPaused=!1,i[i.length-1]!==this?this:this._setPausedState(!1,T)):this},updateContainerElements:function(T){var F=[].concat(T).filter(Boolean);return s.containers=F.map(function(Q){return typeof Q=="string"?n.querySelector(Q):Q}),o.isolateSubtrees&&U(s.containers),s.active&&(f(),s.paused||r._setSubtreeIsolation(!0)),et(),this}},Object.defineProperties(r,{_isManuallyPaused:{value:function(){return s.manuallyPaused}},_setPausedState:{value:function(T,F){if(s.paused===T)return this;if(s.paused=T,T){var Q=a(F,"onPause"),M=a(F,"onPostPause");Q?.({trap:r}),H(),r._setSubtreeIsolation(!1),et(),M?.({trap:r})}else{var Z=a(F,"onUnpause"),rt=a(F,"onPostUnpause");Z?.({trap:r});var lt=function(){f();var ft=function(){r._setSubtreeIsolation(!0),et(),rt?.({trap:r})},pt=j();pt?pt.then(ft):ft()};lt()}return this}},_setSubtreeIsolation:{value:function(T){o.isolateSubtrees&&s.adjacentElements.forEach(function(F){var Q;T?o.isolateSubtrees==="aria-hidden"?((F.ariaHidden==="true"||((Q=F.getAttribute("aria-hidden"))===null||Q===void 0?void 0:Q.toLowerCase())==="true")&&s.alreadySilent.add(F),F.setAttribute("aria-hidden","true")):((F.inert||F.hasAttribute("inert"))&&s.alreadySilent.add(F),F.setAttribute("inert",!0)):s.alreadySilent.has(F)||(o.isolateSubtrees==="aria-hidden"?F.removeAttribute("aria-hidden"):F.removeAttribute("inert"))})}}}),r.updateContainerElements(t),r};function er(){return window._nc_focus_trap??=[],window._nc_focus_trap}function p2(){let t=[];return{pause(){t=[...er()];for(const e of t)e.pause()},unpause(){if(t.length===er().length)for(const e of t)e.unpause();t=[]}}}function g2(t,e={}){const n=p2();Ke(t,()=>{Fe(e.disabled)||(Fe(t)?n.pause():n.unpause())}),Wn(()=>{n.unpause()})}const m2=["top","right","bottom","left"],Mh=["start","end"],tf=m2.reduce((t,e)=>t.concat(e,e+"-"+Mh[0],e+"-"+Mh[1]),[]),nr=Math.min,uc=Math.max,v2={left:"right",right:"left",bottom:"top",top:"bottom"};function mm(t,e,n){return uc(t,nr(e,n))}function yo(t,e){return typeof t=="function"?t(e):t}function hi(t){return t.split("-")[0]}function An(t){return t.split("-")[1]}function vm(t){return t==="x"?"y":"x"}function Kc(t){return t==="y"?"height":"width"}function ri(t){const e=t[0];return e==="t"||e==="b"?"y":"x"}function Xc(t){return vm(ri(t))}function ym(t,e,n){n===void 0&&(n=!1);const i=An(t),o=Xc(t),s=Kc(o);let r=o==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(r=Ua(r)),[r,Ua(r)]}function y2(t){const e=Ua(t);return[ja(t),e,ja(e)]}function ja(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const ef=["left","right"],nf=["right","left"],b2=["top","bottom"],_2=["bottom","top"];function w2(t,e,n){switch(t){case"top":case"bottom":return n?e?nf:ef:e?ef:nf;case"left":case"right":return e?b2:_2;default:return[]}}function x2(t,e,n,i){const o=An(t);let s=w2(hi(t),n==="start",i);return o&&(s=s.map(r=>r+"-"+o),e&&(s=s.concat(s.map(ja)))),s}function Ua(t){const e=hi(t);return v2[e]+t.slice(e.length)}function E2(t){var e,n,i,o;return{top:(e=t.top)!=null?e:0,right:(n=t.right)!=null?n:0,bottom:(i=t.bottom)!=null?i:0,left:(o=t.left)!=null?o:0}}function bm(t){return typeof t!="number"?E2(t):{top:t,right:t,bottom:t,left:t}}function $s(t){const{x:e,y:n,width:i,height:o}=t;return{width:i,height:o,top:n,left:e,right:e+i,bottom:n+o,x:e,y:n}}function of(t,e,n){let{reference:i,floating:o}=t;const s=ri(e),r=Xc(e),a=Kc(r),l=hi(e),c=s==="y",u=i.x+i.width/2-o.width/2,d=i.y+i.height/2-o.height/2,f=i[a]/2-o[a]/2;let p;switch(l){case"top":p={x:u,y:i.y-o.height};break;case"bottom":p={x:u,y:i.y+i.height};break;case"right":p={x:i.x+i.width,y:d};break;case"left":p={x:i.x-o.width,y:d};break;default:p={x:i.x,y:i.y}}const y=An(e);return y&&(p[r]+=f*(y==="end"?1:-1)*(n&&c?-1:1)),p}async function A2(t,e){var n;e===void 0&&(e={});const{x:i,y:o,platform:s,rects:r,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=yo(e,t),y=bm(p),m=a[f?d==="floating"?"reference":"floating":d],x=$s(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(m)))==null||n?m:m.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),b=d==="floating"?{x:i,y:o,width:r.floating.width,height:r.floating.height}:r.reference,A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),R=await(s.isElement==null?void 0:s.isElement(A))&&await(s.getScale==null?void 0:s.getScale(A))||{x:1,y:1},S=$s(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:A,strategy:l}):b);return{top:(x.top-S.top+y.top)/R.y,bottom:(S.bottom-x.bottom+y.bottom)/R.y,left:(x.left-S.left+y.left)/R.x,right:(S.right-x.right+y.right)/R.x}}const S2=50,C2=async(t,e,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:s=[],platform:r}=n,a=r.detectOverflow?r:{...r,detectOverflow:A2},l=await(r.isRTL==null?void 0:r.isRTL(e));let c=await r.getElementRects({reference:t,floating:e,strategy:o}),{x:u,y:d}=of(c,i,l),f=i,p=0;const y={};for(let m=0;m({name:"arrow",options:t,async fn(e){const{x:n,y:i,placement:o,rects:s,platform:r,elements:a,middlewareData:l}=e,{element:c,padding:u=0}=yo(t,e)||{};if(c==null)return{};const d=bm(u),f={x:n,y:i},p=Xc(o),y=Kc(p),m=await r.getDimensions(c),x=p==="y",b=x?"top":"left",A=x?"bottom":"right",R=x?"clientHeight":"clientWidth",S=s.reference[y]+s.reference[p]-f[p]-s.floating[y],N=f[p]-s.reference[p],j=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c));let U=j?j[R]:0;(!U||!await(r.isElement==null?void 0:r.isElement(j)))&&(U=a.floating[R]||s.floating[y]);const H=S/2-N/2,q=U/2-m[y]/2-1,V=nr(d[b],q),et=nr(d[A],q),T=U-m[y]-et,F=U/2-m[y]/2+H,Q=mm(V,F,T),M=!l.arrow&&An(o)!=null&&F!==Q&&s.reference[y]/2-(FAn(i)===t),...n.filter(i=>An(i)!==t)]:n.filter(i=>hi(i)===i)).filter(i=>t?An(i)===t||(e?ja(i)!==i:!1):!0)}const R2=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var n,i,o;const{rects:s,middlewareData:r,placement:a,platform:l,elements:c}=e,{crossAxis:u=!1,alignment:d,allowedPlacements:f=tf,autoAlignment:p=!0,...y}=yo(t,e),m=d!==void 0||f===tf?k2(d||null,p,f):f,x=((n=r.autoPlacement)==null?void 0:n.index)||0,b=m[x];if(b==null)return{};if(a!==b)return{reset:{placement:m[0]}};const A=await l.detectOverflow(e,y),R=ym(b,s,await(l.isRTL==null?void 0:l.isRTL(c.floating))),S=[A[hi(b)],A[R[0]],A[R[1]]],N=[...((i=r.autoPlacement)==null?void 0:i.overflows)||[],{placement:b,overflows:S}],j=m[x+1];if(j)return{data:{index:x+1,overflows:N},reset:{placement:j}};const U=N.map(q=>{const V=An(q.placement);return[q.placement,V&&u?q.overflows.slice(0,2).reduce((et,T)=>et+T,0):q.overflows[0],q.overflows]}).sort((q,V)=>q[1]-V[1]),H=((o=U.filter(q=>q[2].slice(0,An(q[0])?2:3).every(V=>V<=0))[0])==null?void 0:o[0])||U[0][0];return H!==a?{data:{index:x+1,overflows:N},reset:{placement:H}}:{}}}},P2=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,i;const{placement:o,middlewareData:s,rects:r,initialPlacement:a,platform:l,elements:c}=e,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:m=!0,...x}=yo(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const b=hi(o),A=ri(a),R=hi(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),N=f||(R||!m?[Ua(a)]:y2(a)),j=y!=="none";!f&&j&&N.push(...x2(a,m,y,S));const U=[a,...N],H=await l.detectOverflow(e,x),q=[];let V=((i=s.flip)==null?void 0:i.overflows)||[];if(u&&q.push(H[b]),d){const Q=ym(o,r,S);q.push(H[Q[0]],H[Q[1]])}if(V=[...V,{placement:o,overflows:q}],!q.every(Q=>Q<=0)){var et,T;const Q=(((et=s.flip)==null?void 0:et.index)||0)+1,M=U[Q];if(M&&(!(d==="alignment"&&A!==ri(M))||V.every(rt=>ri(rt.placement)===A?rt.overflows[0]>0:!0)))return{data:{index:Q,overflows:V},reset:{placement:M}};let Z=(T=V.filter(rt=>rt.overflows[0]<=0).sort((rt,lt)=>rt.overflows[1]-lt.overflows[1])[0])==null?void 0:T.placement;if(!Z)switch(p){case"bestFit":{var F;const rt=(F=V.filter(lt=>{if(j){const ft=ri(lt.placement);return ft===A||ft==="y"}return!0}).map(lt=>[lt.placement,lt.overflows.filter(ft=>ft>0).reduce((ft,pt)=>ft+pt,0)]).sort((lt,ft)=>lt[1]-ft[1])[0])==null?void 0:F[0];rt&&(Z=rt);break}case"initialPlacement":Z=a;break}if(o!==Z)return{reset:{placement:Z}}}return{}}}},L2=new Set(["left","top"]);async function D2(t,e){const{placement:n,platform:i,elements:o}=t,s=await(i.isRTL==null?void 0:i.isRTL(o.floating)),r=hi(n),a=An(n),l=ri(n)==="y",c=L2.has(r)?-1:1,u=s&&l?-1:1,d=yo(e,t);let{mainAxis:f,crossAxis:p,alignmentAxis:y}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof y=="number"&&(p=a==="end"?y*-1:y),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}const N2=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,i;const{x:o,y:s,placement:r,middlewareData:a}=e,l=await D2(e,t);return r===((n=a.offset)==null?void 0:n.placement)&&(i=a.arrow)!=null&&i.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:r}}}}},O2=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:i,placement:o,platform:s}=e,{mainAxis:r=!0,crossAxis:a=!1,limiter:l={fn:A=>{let{x:R,y:S}=A;return{x:R,y:S}}},...c}=yo(t,e),u={x:n,y:i},d=await s.detectOverflow(e,c),f=ri(o),p=vm(f);let y=u[p],m=u[f];const x=(A,R)=>mm(R+d[A==="y"?"top":"left"],R,R-d[A==="y"?"bottom":"right"]);r&&(y=x(p,y)),a&&(m=x(f,m));const b=l.fn({...e,[p]:y,[f]:m});return{...b,data:{x:b.x-n,y:b.y-i,enabled:{[p]:r,[f]:a}}}}}},$2=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:i,platform:o,elements:s}=e,{apply:r=()=>{},...a}=yo(t,e),l=await o.detectOverflow(e,a),c=hi(n),u=An(n),d=ri(n)==="y",{width:f,height:p}=i.floating;let y,m;c==="top"||c==="bottom"?(y=c,m=u===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(m=c,y=u==="end"?"top":"bottom");const x=p-l.top-l.bottom,b=f-l.left-l.right,A=nr(p-l[y],x),R=nr(f-l[m],b),S=e.middlewareData.shift,N=!S;let j=A,U=R;S!=null&&S.enabled.x&&(U=b),S!=null&&S.enabled.y&&(j=x),N&&!u&&(d?U=f-2*uc(l.left,l.right):j=p-2*uc(l.top,l.bottom)),await r({...e,availableWidth:U,availableHeight:j});const H=await o.getDimensions(s.floating);return f!==H.width||p!==H.height?{reset:{rects:!0}}:{}}}};function pn(t){var e;return((e=t.ownerDocument)==null?void 0:e.defaultView)||window}function zn(t){return pn(t).getComputedStyle(t)}const sf=Math.min,Bs=Math.max,Va=Math.round;function _m(t){const e=zn(t);let n=parseFloat(e.width),i=parseFloat(e.height);const o=t.offsetWidth,s=t.offsetHeight,r=Va(n)!==o||Va(i)!==s;return r&&(n=o,i=s),{width:n,height:i,fallback:r}}function Di(t){return xm(t)?(t.nodeName||"").toLowerCase():""}let Ir;function wm(){if(Ir)return Ir;const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?(Ir=t.brands.map((e=>e.brand+"/"+e.version)).join(" "),Ir):navigator.userAgent}function Hn(t){return t instanceof pn(t).HTMLElement}function Ti(t){return t instanceof pn(t).Element}function xm(t){return t instanceof pn(t).Node}function rf(t){return typeof ShadowRoot>"u"?!1:t instanceof pn(t).ShadowRoot||t instanceof ShadowRoot}function Cl(t){const{overflow:e,overflowX:n,overflowY:i,display:o}=zn(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!["inline","contents"].includes(o)}function B2(t){return["table","td","th"].includes(Di(t))}function cc(t){const e=/firefox/i.test(wm()),n=zn(t),i=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!=="none"||n.perspective!=="none"||!!i&&i!=="none"||e&&n.willChange==="filter"||e&&!!n.filter&&n.filter!=="none"||["transform","perspective"].some((o=>n.willChange.includes(o)))||["paint","layout","strict","content"].some((o=>{const s=n.contain;return s!=null&&s.includes(o)}))}function Em(){return!/^((?!chrome|android).)*safari/i.test(wm())}function Yc(t){return["html","body","#document"].includes(Di(t))}function Am(t){return Ti(t)?t:t.contextElement}const Sm={x:1,y:1};function Io(t){const e=Am(t);if(!Hn(e))return Sm;const n=e.getBoundingClientRect(),{width:i,height:o,fallback:s}=_m(e);let r=(s?Va(n.width):n.width)/i,a=(s?Va(n.height):n.height)/o;return r&&Number.isFinite(r)||(r=1),a&&Number.isFinite(a)||(a=1),{x:r,y:a}}function ir(t,e,n,i){var o,s;e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),a=Am(t);let l=Sm;e&&(i?Ti(i)&&(l=Io(i)):l=Io(t));const c=a?pn(a):window,u=!Em()&&n;let d=(r.left+(u&&((o=c.visualViewport)==null?void 0:o.offsetLeft)||0))/l.x,f=(r.top+(u&&((s=c.visualViewport)==null?void 0:s.offsetTop)||0))/l.y,p=r.width/l.x,y=r.height/l.y;if(a){const m=pn(a),x=i&&Ti(i)?pn(i):i;let b=m.frameElement;for(;b&&i&&x!==m;){const A=Io(b),R=b.getBoundingClientRect(),S=getComputedStyle(b);R.x+=(b.clientLeft+parseFloat(S.paddingLeft))*A.x,R.y+=(b.clientTop+parseFloat(S.paddingTop))*A.y,d*=A.x,f*=A.y,p*=A.x,y*=A.y,d+=R.x,f+=R.y,b=pn(b).frameElement}}return{width:p,height:y,top:f,right:d+p,bottom:f+y,left:d,x:d,y:f}}function ki(t){return((xm(t)?t.ownerDocument:t.document)||window.document).documentElement}function Tl(t){return Ti(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Cm(t){return ir(ki(t)).left+Tl(t).scrollLeft}function or(t){if(Di(t)==="html")return t;const e=t.assignedSlot||t.parentNode||rf(t)&&t.host||ki(t);return rf(e)?e.host:e}function Tm(t){const e=or(t);return Yc(e)?e.ownerDocument.body:Hn(e)&&Cl(e)?e:Tm(e)}function Ia(t,e){var n;e===void 0&&(e=[]);const i=Tm(t),o=i===((n=t.ownerDocument)==null?void 0:n.body),s=pn(i);return o?e.concat(s,s.visualViewport||[],Cl(i)?i:[]):e.concat(i,Ia(i))}function af(t,e,n){return e==="viewport"?$s((function(i,o){const s=pn(i),r=ki(i),a=s.visualViewport;let l=r.clientWidth,c=r.clientHeight,u=0,d=0;if(a){l=a.width,c=a.height;const f=Em();(f||!f&&o==="fixed")&&(u=a.offsetLeft,d=a.offsetTop)}return{width:l,height:c,x:u,y:d}})(t,n)):Ti(e)?$s((function(i,o){const s=ir(i,!0,o==="fixed"),r=s.top+i.clientTop,a=s.left+i.clientLeft,l=Hn(i)?Io(i):{x:1,y:1};return{width:i.clientWidth*l.x,height:i.clientHeight*l.y,x:a*l.x,y:r*l.y}})(e,n)):$s((function(i){const o=ki(i),s=Tl(i),r=i.ownerDocument.body,a=Bs(o.scrollWidth,o.clientWidth,r.scrollWidth,r.clientWidth),l=Bs(o.scrollHeight,o.clientHeight,r.scrollHeight,r.clientHeight);let c=-s.scrollLeft+Cm(i);const u=-s.scrollTop;return zn(r).direction==="rtl"&&(c+=Bs(o.clientWidth,r.clientWidth)-a),{width:a,height:l,x:c,y:u}})(ki(t)))}function lf(t){return Hn(t)&&zn(t).position!=="fixed"?t.offsetParent:null}function uf(t){const e=pn(t);let n=lf(t);for(;n&&B2(n)&&zn(n).position==="static";)n=lf(n);return n&&(Di(n)==="html"||Di(n)==="body"&&zn(n).position==="static"&&!cc(n))?e:n||(function(i){let o=or(i);for(;Hn(o)&&!Yc(o);){if(cc(o))return o;o=or(o)}return null})(t)||e}function F2(t,e,n){const i=Hn(e),o=ki(e),s=ir(t,!0,n==="fixed",e);let r={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(i||!i&&n!=="fixed")if((Di(e)!=="body"||Cl(o))&&(r=Tl(e)),Hn(e)){const l=ir(e,!0);a.x=l.x+e.clientLeft,a.y=l.y+e.clientTop}else o&&(a.x=Cm(o));return{x:s.left+r.scrollLeft-a.x,y:s.top+r.scrollTop-a.y,width:s.width,height:s.height}}const j2={getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:i,strategy:o}=t;const s=n==="clippingAncestors"?(function(c,u){const d=u.get(c);if(d)return d;let f=Ia(c).filter((x=>Ti(x)&&Di(x)!=="body")),p=null;const y=zn(c).position==="fixed";let m=y?or(c):c;for(;Ti(m)&&!Yc(m);){const x=zn(m),b=cc(m);(y?b||p:b||x.position!=="static"||!p||!["absolute","fixed"].includes(p.position))?p=x:f=f.filter((A=>A!==m)),m=or(m)}return u.set(c,f),f})(e,this._c):[].concat(n),r=[...s,i],a=r[0],l=r.reduce(((c,u)=>{const d=af(e,u,o);return c.top=Bs(d.top,c.top),c.right=sf(d.right,c.right),c.bottom=sf(d.bottom,c.bottom),c.left=Bs(d.left,c.left),c}),af(e,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:n,strategy:i}=t;const o=Hn(n),s=ki(n);if(n===s)return e;let r={scrollLeft:0,scrollTop:0},a={x:1,y:1};const l={x:0,y:0};if((o||!o&&i!=="fixed")&&((Di(n)!=="body"||Cl(s))&&(r=Tl(n)),Hn(n))){const c=ir(n);a=Io(n),l.x=c.x+n.clientLeft,l.y=c.y+n.clientTop}return{width:e.width*a.x,height:e.height*a.y,x:e.x*a.x-r.scrollLeft*a.x+l.x,y:e.y*a.y-r.scrollTop*a.y+l.y}},isElement:Ti,getDimensions:function(t){return Hn(t)?_m(t):t.getBoundingClientRect()},getOffsetParent:uf,getDocumentElement:ki,getScale:Io,async getElementRects(t){let{reference:e,floating:n,strategy:i}=t;const o=this.getOffsetParent||uf,s=this.getDimensions;return{reference:F2(e,await o(n),i),floating:{x:0,y:0,...await s(n)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>zn(t).direction==="rtl"},U2=(t,e,n)=>{const i=new Map,o={platform:j2,...n},s={...o.platform,_c:i};return C2(t,e,{...o,platform:s})},Ri={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:t=>[...t,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function V2(t,e){let n=Ri.themes[t]||{},i;do i=n[e],typeof i>"u"?n.$extend?n=Ri.themes[n.$extend]||{}:(n=null,i=Ri[e]):n=null;while(n);return i}function I2(t){const e=[t];let n=Ri.themes[t]||{};do n.$extend&&!n.$resetCss?(e.push(n.$extend),n=Ri.themes[n.$extend]||{}):n=null;while(n);return e.map(i=>`v-popper--theme-${i}`)}function cf(t){const e=[t];let n=Ri.themes[t]||{};do n.$extend?(e.push(n.$extend),n=Ri.themes[n.$extend]||{}):n=null;while(n);return e}let sr=!1;if(typeof window<"u"){sr=!1;try{const t=Object.defineProperty({},"passive",{get(){sr=!0}});window.addEventListener("test",null,t)}catch{}}let km=!1;typeof window<"u"&&typeof navigator<"u"&&(km=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const z2=["auto","top","bottom","left","right"].reduce((t,e)=>t.concat([e,`${e}-start`,`${e}-end`]),[]),df={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},hf={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function ff(t,e){const n=t.indexOf(e);n!==-1&&t.splice(n,1)}function cu(){return new Promise(t=>requestAnimationFrame(()=>{requestAnimationFrame(t)}))}const wn=[];let Hi=null;const pf={};function gf(t){let e=pf[t];return e||(e=pf[t]=[]),e}let dc=function(){};typeof window<"u"&&(dc=window.Element);function zt(t){return function(e){return V2(e.theme,t)}}const du="__floating-vue__popper",Rm=()=>Rt({name:"VPopper",provide(){return{[du]:{parentPopper:this}}},inject:{[du]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:zt("disabled")},positioningDisabled:{type:Boolean,default:zt("positioningDisabled")},placement:{type:String,default:zt("placement"),validator:t=>z2.includes(t)},delay:{type:[String,Number,Object],default:zt("delay")},distance:{type:[Number,String],default:zt("distance")},skidding:{type:[Number,String],default:zt("skidding")},triggers:{type:Array,default:zt("triggers")},showTriggers:{type:[Array,Function],default:zt("showTriggers")},hideTriggers:{type:[Array,Function],default:zt("hideTriggers")},popperTriggers:{type:Array,default:zt("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:zt("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:zt("popperHideTriggers")},container:{type:[String,Object,dc,Boolean],default:zt("container")},boundary:{type:[String,dc],default:zt("boundary")},strategy:{type:String,validator:t=>["absolute","fixed"].includes(t),default:zt("strategy")},autoHide:{type:[Boolean,Function],default:zt("autoHide")},handleResize:{type:Boolean,default:zt("handleResize")},instantMove:{type:Boolean,default:zt("instantMove")},eagerMount:{type:Boolean,default:zt("eagerMount")},popperClass:{type:[String,Array,Object],default:zt("popperClass")},computeTransformOrigin:{type:Boolean,default:zt("computeTransformOrigin")},autoMinSize:{type:Boolean,default:zt("autoMinSize")},autoSize:{type:[Boolean,String],default:zt("autoSize")},autoMaxSize:{type:Boolean,default:zt("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:zt("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:zt("preventOverflow")},overflowPadding:{type:[Number,String],default:zt("overflowPadding")},arrowPadding:{type:[Number,String],default:zt("arrowPadding")},arrowOverflow:{type:Boolean,default:zt("arrowOverflow")},flip:{type:Boolean,default:zt("flip")},shift:{type:Boolean,default:zt("shift")},shiftCrossAxis:{type:Boolean,default:zt("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:zt("noAutoFocus")},disposeTimeout:{type:Number,default:zt("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":t=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(t=>t.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var t;return(t=this[du])==null?void 0:t.parentPopper},hasPopperShowTriggerHover(){var t,e;return((t=this.popperTriggers)==null?void 0:t.includes("hover"))||((e=this.popperShowTriggers)==null?void 0:e.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(t){t?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((t,e)=>(t[e]="$_computePosition",t),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:t=null,skipDelay:e=!1,force:n=!1}={}){var i,o;(i=this.parentPopper)!=null&&i.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(n||!this.disabled)&&(((o=this.parentPopper)==null?void 0:o.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(t,e),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:t=null,skipDelay:e=!1}={}){var n;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:e}),this.parentPopper.lockedChild=null)},1e3));return}((n=this.parentPopper)==null?void 0:n.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(t,e),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var t;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((t=this.referenceNode)==null?void 0:t.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(e=>e.nodeType===e.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const t={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&t.middleware.push(N2({mainAxis:this.distance,crossAxis:this.skidding}));const e=this.placement.startsWith("auto");if(e?t.middleware.push(R2({alignment:this.placement.split("-")[1]??""})):t.placement=this.placement,this.preventOverflow&&(this.shift&&t.middleware.push(O2({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!e&&this.flip&&t.middleware.push(P2({padding:this.overflowPadding,boundary:this.boundary}))),t.middleware.push(T2({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&t.middleware.push({name:"arrowOverflow",fn:({placement:i,rects:o,middlewareData:s})=>{let r;const{centerOffset:a}=s.arrow;return i.startsWith("top")||i.startsWith("bottom")?r=Math.abs(a)>o.reference.width/2:r=Math.abs(a)>o.reference.height/2,{data:{overflow:r}}}}),this.autoMinSize||this.autoSize){const i=this.autoSize?this.autoSize:this.autoMinSize?"min":null;t.middleware.push({name:"autoSize",fn:({rects:o,placement:s,middlewareData:r})=>{var a;if((a=r.autoSize)!=null&&a.skip)return{};let l,c;return s.startsWith("top")||s.startsWith("bottom")?l=o.reference.width:c=o.reference.height,this.$_innerNode.style[i==="min"?"minWidth":i==="max"?"maxWidth":"width"]=l!=null?`${l}px`:null,this.$_innerNode.style[i==="min"?"minHeight":i==="max"?"maxHeight":"height"]=c!=null?`${c}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,t.middleware.push($2({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:i,availableHeight:o})=>{this.$_innerNode.style.maxWidth=i!=null?`${i}px`:null,this.$_innerNode.style.maxHeight=o!=null?`${o}px`:null}})));const n=await U2(this.$_referenceNode,this.$_popperNode,t);Object.assign(this.result,{x:n.x,y:n.y,placement:n.placement,strategy:n.strategy,arrow:{...n.middlewareData.arrow,...n.middlewareData.arrowOverflow}})},$_scheduleShow(t,e=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Hi&&this.instantMove&&Hi.instantMove&&Hi!==this.parentPopper){Hi.$_applyHide(!0),this.$_applyShow(!0);return}e?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(t,e=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Hi=this),e?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(t){const e=this.delay;return parseInt(e&&e[t]||e||0)},async $_applyShow(t=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=t,!this.isShown&&(this.$_ensureTeleport(),await cu(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Ia(this.$_referenceNode),...Ia(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const e=this.$_referenceNode.getBoundingClientRect(),n=this.$_popperNode.querySelector(".v-popper__wrapper"),i=n.parentNode.getBoundingClientRect(),o=e.x+e.width/2-(i.left+n.offsetLeft),s=e.y+e.height/2-(i.top+n.offsetTop);this.result.transformOrigin=`${o}px ${s}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const t=this.showGroup;if(t){let e;for(let n=0;n0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=t,ff(wn,this),wn.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of cf(this.theme)){const i=gf(n);ff(i,this),i.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}Hi===this&&(Hi=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const e=this.disposeTimeout;e!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},e)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await cu(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let t=this.container;if(typeof t=="string"?t=window.document.querySelector(t):t===!1&&(t=this.$_targetNodes[0].parentNode),!t)throw new Error("No container for popover: "+this.container);t.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const t=n=>{this.isShown&&!this.$_hideInProgress||(n.usedByTooltip=!0,!this.$_preventShow&&this.show({event:n}))};this.$_registerTriggerListeners(this.$_targetNodes,df,this.triggers,this.showTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],df,this.popperTriggers,this.popperShowTriggers,t);const e=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,hf,this.triggers,this.hideTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],hf,this.popperTriggers,this.popperHideTriggers,e)},$_registerEventListeners(t,e,n){this.$_events.push({targetNodes:t,eventType:e,handler:n}),t.forEach(i=>i.addEventListener(e,n,sr?{passive:!0}:void 0))},$_registerTriggerListeners(t,e,n,i,o){let s=n;i!=null&&(s=typeof i=="function"?i(s):i),s.forEach(r=>{const a=e[r];a&&this.$_registerEventListeners(t,a,o)})},$_removeEventListeners(t){const e=[];this.$_events.forEach(n=>{const{targetNodes:i,eventType:o,handler:s}=n;!t||t===o?i.forEach(r=>r.removeEventListener(o,s)):e.push(n)}),this.$_events=e},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(t,e=!1){this.$_showFrameLocked||(this.hide({event:t}),t.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),e&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(t,e){for(const n of this.$_targetNodes){const i=n.getAttribute(t);i&&(n.removeAttribute(t),n.setAttribute(e,i))}},$_applyAttrsToTarget(t){for(const e of this.$_targetNodes)for(const n in t){const i=t[n];i==null?e.removeAttribute(n):e.setAttribute(n,i)}},$_updateParentShownChildren(t){let e=this.parentPopper;for(;e;)t?e.shownChildren.add(this.randomId):(e.shownChildren.delete(this.randomId),e.pendingHide&&e.hide()),e=e.parentPopper},$_isAimingPopper(){const t=this.$_referenceNode.getBoundingClientRect();if(Fs>=t.left&&Fs<=t.right&&js>=t.top&&js<=t.bottom){const e=this.$_popperNode.getBoundingClientRect(),n=Fs-bi,i=js-_i,o=e.left+e.width/2-bi+(e.top+e.height/2)-_i+e.width+e.height,s=bi+n*o,r=_i+i*o;return zr(bi,_i,s,r,e.left,e.top,e.left,e.bottom)||zr(bi,_i,s,r,e.left,e.top,e.right,e.top)||zr(bi,_i,s,r,e.right,e.top,e.right,e.bottom)||zr(bi,_i,s,r,e.left,e.bottom,e.right,e.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(km){const t=sr?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",e=>mf(e),t),document.addEventListener("touchend",e=>vf(e,!0),t)}else window.addEventListener("mousedown",t=>mf(t),!0),window.addEventListener("click",t=>vf(t,!1),!0);window.addEventListener("resize",W2)}function mf(t,e){for(let n=0;n=0;i--){const o=wn[i];try{const s=o.containsGlobalTarget=o.mouseDownContains||o.popperNode().contains(t.target);o.pendingHide=!1,requestAnimationFrame(()=>{if(o.pendingHide=!1,!n[o.randomId]&&yf(o,s,t)){if(o.$_handleGlobalClose(t,e),!t.closeAllPopover&&t.closePopover&&s){let a=o.parentPopper;for(;a;)n[a.randomId]=!0,a=a.parentPopper;return}let r=o.parentPopper;for(;r&&yf(r,r.containsGlobalTarget,t);)r.$_handleGlobalClose(t,e),r=r.parentPopper}})}catch{}}}function yf(t,e,n){return n.closeAllPopover||n.closePopover&&e||J2(t,n)&&!e}function J2(t,e){if(typeof t.autoHide=="function"){const n=t.autoHide(e);return t.lastAutoHide=n,n}return t.autoHide}function W2(){for(let t=0;t{bi=Fs,_i=js,Fs=t.clientX,js=t.clientY},sr?{passive:!0}:void 0);function zr(t,e,n,i,o,s,r,a){const l=((r-o)*(e-s)-(a-s)*(t-o))/((a-s)*(n-t)-(r-o)*(i-e)),c=((n-t)*(e-s)-(i-e)*(t-o))/((a-s)*(n-t)-(r-o)*(i-e));return l>=0&&l<=1&&c>=0&&c<=1}const G2={extends:Rm()},Zc=(t,e)=>{const n=t.__vccOpts||t;for(const[i,o]of e)n[i]=o;return n};function q2(t,e,n,i,o,s){return O(),J("div",{ref:"reference",class:Yt(["v-popper",{"v-popper--shown":t.slotData.isShown}])},[Zt(t.$slots,"default",Vu(Ra(t.slotData)))],2)}const K2=Zc(G2,[["render",q2]]);function X2(){var t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);var n=t.indexOf("Trident/");if(n>0){var i=t.indexOf("rv:");return parseInt(t.substring(i+3,t.indexOf(".",i)),10)}var o=t.indexOf("Edge/");return o>0?parseInt(t.substring(o+5,t.indexOf(".",o)),10):-1}let da;function hc(){hc.init||(hc.init=!0,da=X2()!==-1)}var ha={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){hc(),yr(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",da&&this.$el.appendChild(t),t.data="about:blank",da||this.$el.appendChild(t)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!da&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Y2=Cy();Ay("data-v-b329ee4c");const Z2={class:"resize-observer",tabindex:"-1"};Sy();const Q2=Y2((t,e,n,i,o,s)=>(O(),Ct("div",Z2)));ha.render=Q2,ha.__scopeId="data-v-b329ee4c",ha.__file="src/components/ResizeObserver.vue";const Pm=(t="theme")=>({computed:{themeClass(){return I2(this[t])}}}),M2=Rt({name:"VPopperContent",components:{ResizeObserver:ha},mixins:[Pm()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(t){return t!=null&&!isNaN(t)?`${t}px`:null}}}),tE=["id","aria-hidden","tabindex","data-popper-placement"],eE={ref:"inner",class:"v-popper__inner"},nE=w("div",{class:"v-popper__arrow-outer"},null,-1),iE=w("div",{class:"v-popper__arrow-inner"},null,-1),oE=[nE,iE];function sE(t,e,n,i,o,s){const r=Ys("ResizeObserver");return O(),J("div",{id:t.popperId,ref:"popover",class:Yt(["v-popper__popper",[t.themeClass,t.classes.popperClass,{"v-popper__popper--shown":t.shown,"v-popper__popper--hidden":!t.shown,"v-popper__popper--show-from":t.classes.showFrom,"v-popper__popper--show-to":t.classes.showTo,"v-popper__popper--hide-from":t.classes.hideFrom,"v-popper__popper--hide-to":t.classes.hideTo,"v-popper__popper--skip-transition":t.skipTransition,"v-popper__popper--arrow-overflow":t.result&&t.result.arrow.overflow,"v-popper__popper--no-positioning":!t.result}]]),style:ro(t.result?{position:t.result.strategy,transform:`translate3d(${Math.round(t.result.x)}px,${Math.round(t.result.y)}px,0)`}:void 0),"aria-hidden":t.shown?"false":"true",tabindex:t.autoHide?0:void 0,"data-popper-placement":t.result?t.result.placement:void 0,onKeyup:e[2]||(e[2]=r_(a=>t.autoHide&&t.$emit("hide"),["esc"]))},[w("div",{class:"v-popper__backdrop",onClick:e[0]||(e[0]=a=>t.autoHide&&t.$emit("hide"))}),w("div",{class:"v-popper__wrapper",style:ro(t.result?{transformOrigin:t.result.transformOrigin}:void 0)},[w("div",eE,[t.mounted?(O(),J(At,{key:0},[w("div",null,[Zt(t.$slots,"default")]),t.handleResize?(O(),Ct(r,{key:0,onNotify:e[1]||(e[1]=a=>t.$emit("resize",a))})):_t("",!0)],64)):_t("",!0)],512),w("div",{ref:"arrow",class:"v-popper__arrow-container",style:ro(t.result?{left:t.toPx(t.result.arrow.x),top:t.toPx(t.result.arrow.y)}:void 0)},oE,4)],4)],46,tE)}const rE=Zc(M2,[["render",sE]]),aE={methods:{show(...t){return this.$refs.popper.show(...t)},hide(...t){return this.$refs.popper.hide(...t)},dispose(...t){return this.$refs.popper.dispose(...t)},onResize(...t){return this.$refs.popper.onResize(...t)}}};let fc=function(){};typeof window<"u"&&(fc=window.Element);const lE=Rt({name:"VPopperWrapper",components:{Popper:K2,PopperContent:rE},mixins:[aE,Pm("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,fc,Boolean],default:void 0},boundary:{type:[String,fc],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":t=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(t=>t!==this.$refs.popperContent.$el)}}});function uE(t,e,n,i,o,s){const r=Ys("PopperContent"),a=Ys("Popper");return O(),Ct(a,ee({ref:"popper"},t.$props,{theme:t.finalTheme,"target-nodes":t.getTargetNodes,"popper-node":()=>t.$refs.popperContent.$el,class:[t.themeClass],onShow:e[0]||(e[0]=()=>t.$emit("show")),onHide:e[1]||(e[1]=()=>t.$emit("hide")),"onUpdate:shown":e[2]||(e[2]=l=>t.$emit("update:shown",l)),onApplyShow:e[3]||(e[3]=()=>t.$emit("apply-show")),onApplyHide:e[4]||(e[4]=()=>t.$emit("apply-hide")),onCloseGroup:e[5]||(e[5]=()=>t.$emit("close-group")),onCloseDirective:e[6]||(e[6]=()=>t.$emit("close-directive")),onAutoHide:e[7]||(e[7]=()=>t.$emit("auto-hide")),onResize:e[8]||(e[8]=()=>t.$emit("resize"))}),{default:kt(({popperId:l,isShown:c,shouldMountContent:u,skipTransition:d,autoHide:f,show:p,hide:y,handleResize:m,onResize:x,classes:b,result:A})=>[Zt(t.$slots,"default",{shown:c,show:p,hide:y}),ot(r,{ref:"popperContent","popper-id":l,theme:t.finalTheme,shown:c,mounted:u,"skip-transition":d,"auto-hide":f,"handle-resize":m,classes:b,result:A,onHide:y,onResize:x},{default:kt(()=>[Zt(t.$slots,"popper",{shown:c,hide:y})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const pc=Zc(lE,[["render",uE]]),cE={...pc,name:"VDropdown",vPopperTheme:"dropdown"};({...pc},{...pc}),Rm();const bf=Ri,dE=cE;function hE(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Lm={exports:{}},fe=Lm.exports={},Bn,Fn;function gc(){throw new Error("setTimeout has not been defined")}function mc(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Bn=setTimeout:Bn=gc}catch{Bn=gc}try{typeof clearTimeout=="function"?Fn=clearTimeout:Fn=mc}catch{Fn=mc}})();function Dm(t){if(Bn===setTimeout)return setTimeout(t,0);if((Bn===gc||!Bn)&&setTimeout)return Bn=setTimeout,setTimeout(t,0);try{return Bn(t,0)}catch{try{return Bn.call(null,t,0)}catch{return Bn.call(this,t,0)}}}function fE(t){if(Fn===clearTimeout)return clearTimeout(t);if((Fn===mc||!Fn)&&clearTimeout)return Fn=clearTimeout,clearTimeout(t);try{return Fn(t)}catch{try{return Fn.call(null,t)}catch{return Fn.call(this,t)}}}var ai=[],zo=!1,no,fa=-1;function pE(){!zo||!no||(zo=!1,no.length?ai=no.concat(ai):fa=-1,ai.length&&Nm())}function Nm(){if(!zo){var t=Dm(pE);zo=!0;for(var e=ai.length;e;){for(no=ai,ai=[];++fa1)for(var n=1;nconsole.error("SEMVER",...e):()=>{},hu}var fu,wf;function Bm(){if(wf)return fu;wf=1;const t="2.0.0",e=256,n=Number.MAX_SAFE_INTEGER||9007199254740991,i=16,o=e-6;return fu={MAX_LENGTH:e,MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:o,MAX_SAFE_INTEGER:n,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},fu}var pu={exports:{}},xf;function mE(){return xf||(xf=1,(function(t,e){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:o}=Bm(),s=$m();e=t.exports={};const r=e.re=[],a=e.safeRe=[],l=e.src=[],c=e.safeSrc=[],u=e.t={};let d=0;const f="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",o],[f,i]],y=x=>{for(const[b,A]of p)x=x.split(`${b}*`).join(`${b}{0,${A}}`).split(`${b}+`).join(`${b}{1,${A}}`);return x},m=(x,b,A)=>{const R=y(b),S=d++;s(x,S,b),u[x]=S,l[S]=b,c[S]=R,r[S]=new RegExp(b,A?"g":void 0),a[S]=new RegExp(R,A?"g":void 0)};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),m("MAINVERSION",`(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${l[u.NONNUMERICIDENTIFIER]}|${l[u.NUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${l[u.NONNUMERICIDENTIFIER]}|${l[u.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASE",`(?:-(${l[u.PRERELEASEIDENTIFIER]}(?:\\.${l[u.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${l[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[u.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${f}+`),m("BUILD",`(?:\\+(${l[u.BUILDIDENTIFIER]}(?:\\.${l[u.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${l[u.MAINVERSION]}${l[u.PRERELEASE]}?${l[u.BUILD]}?`),m("FULL",`^${l[u.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${l[u.MAINVERSIONLOOSE]}${l[u.PRERELEASELOOSE]}?${l[u.BUILD]}?`),m("LOOSE",`^${l[u.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${l[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${l[u.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:${l[u.PRERELEASE]})?${l[u.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:${l[u.PRERELEASELOOSE]})?${l[u.BUILD]}?)?)?`),m("XRANGE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAINLOOSE]}$`),m("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),m("COERCE",`${l[u.COERCEPLAIN]}(?:$|[^\\d])`),m("COERCEFULL",l[u.COERCEPLAIN]+`(?:${l[u.PRERELEASE]})?(?:${l[u.BUILD]})?(?:$|[^\\d])`),m("COERCERTL",l[u.COERCE],!0),m("COERCERTLFULL",l[u.COERCEFULL],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${l[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",m("TILDE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${l[u.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",m("CARET",`^${l[u.LONECARET]}${l[u.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${l[u.LONECARET]}${l[u.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${l[u.GTLT]}\\s*(${l[u.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]}|${l[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${l[u.XRANGEPLAIN]})\\s+-\\s+(${l[u.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${l[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[u.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(pu,pu.exports)),pu.exports}var gu,Ef;function vE(){if(Ef)return gu;Ef=1;const t=Object.freeze({loose:!0}),e=Object.freeze({});return gu=n=>n?typeof n!="object"?t:n:e,gu}var mu,Af;function yE(){if(Af)return mu;Af=1;const t=/^[0-9]+$/,e=(n,i)=>{if(typeof n=="number"&&typeof i=="number")return n===i?0:ne(i,n)},mu}var vu,Sf;function Fm(){if(Sf)return vu;Sf=1;const t=$m(),{MAX_LENGTH:e,MAX_SAFE_INTEGER:n}=Bm(),{safeRe:i,t:o}=mE(),s=vE(),{compareIdentifiers:r}=yE();class a{constructor(c,u){if(u=s(u),c instanceof a){if(c.loose===!!u.loose&&c.includePrerelease===!!u.includePrerelease)return c;c=c.version}else if(typeof c!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof c}".`);if(c.length>e)throw new TypeError(`version is longer than ${e} characters`);t("SemVer",c,u),this.options=u,this.loose=!!u.loose,this.includePrerelease=!!u.includePrerelease;const d=c.trim().match(u.loose?i[o.LOOSE]:i[o.FULL]);if(!d)throw new TypeError(`Invalid Version: ${c}`);if(this.raw=c,this.major=+d[1],this.minor=+d[2],this.patch=+d[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");d[4]?this.prerelease=d[4].split(".").map(f=>{if(/^[0-9]+$/.test(f)){const p=+f;if(p>=0&&pc.major?1:this.minorc.minor?1:this.patchc.patch?1:0}comparePre(c){if(c instanceof a||(c=new a(c,this.options)),this.prerelease.length&&!c.prerelease.length)return-1;if(!this.prerelease.length&&c.prerelease.length)return 1;if(!this.prerelease.length&&!c.prerelease.length)return 0;let u=0;do{const d=this.prerelease[u],f=c.prerelease[u];if(t("prerelease compare",u,d,f),d===void 0&&f===void 0)return 0;if(f===void 0)return 1;if(d===void 0)return-1;if(d!==f)return r(d,f)}while(++u)}compareBuild(c){c instanceof a||(c=new a(c,this.options));let u=0;do{const d=this.build[u],f=c.build[u];if(t("build compare",u,d,f),d===void 0&&f===void 0)return 0;if(f===void 0)return 1;if(d===void 0)return-1;if(d!==f)return r(d,f)}while(++u)}inc(c,u,d){if(c.startsWith("pre")){if(!u&&d===!1)throw new Error("invalid increment argument: identifier is empty");if(u){const f=`-${u}`.match(this.options.loose?i[o.PRERELEASELOOSE]:i[o.PRERELEASE]);if(!f||f[1]!==u)throw new Error(`invalid identifier: ${u}`)}}switch(c){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",u,d);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",u,d);break;case"prepatch":this.prerelease.length=0,this.inc("patch",u,d),this.inc("pre",u,d);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",u,d),this.inc("pre",u,d);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const f=Number(d)?1:0;if(this.prerelease.length===0)this.prerelease=[f];else{let p=this.prerelease.length;for(;--p>=0;)typeof this.prerelease[p]=="number"&&(this.prerelease[p]++,p=-2);if(p===-1){if(u===this.prerelease.join(".")&&d===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(f)}}if(u){let p=[u,f];d===!1&&(p=[u]),r(this.prerelease[0],u)===0?isNaN(this.prerelease[1])&&(this.prerelease=p):this.prerelease=p}break}default:throw new Error(`invalid increment argument: ${c}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return vu=a,vu}var yu,Cf;function bE(){if(Cf)return yu;Cf=1;const t=Fm();return yu=(e,n)=>new t(e,n).major,yu}var _E=bE();const Tf=Wc(_E);var bu,kf;function wE(){if(kf)return bu;kf=1;const t=Fm();return bu=(e,n,i=!1)=>{if(e instanceof t)return e;try{return new t(e,n)}catch(o){if(!i)return null;throw o}},bu}var _u,Rf;function xE(){if(Rf)return _u;Rf=1;const t=wE();return _u=(e,n)=>{const i=t(e,n);return i?i.version:null},_u}var EE=xE();const AE=Wc(EE);class SE{bus;constructor(e){typeof e.getVersion!="function"||!AE(e.getVersion())?console.warn("Proxying an event bus with an unknown or invalid version"):Tf(e.getVersion())!==Tf(this.getVersion())&&console.warn("Proxying an event bus of version "+e.getVersion()+" with "+this.getVersion()),this.bus=e}getVersion(){return"3.3.3"}subscribe(e,n){this.bus.subscribe(e,n)}unsubscribe(e,n){this.bus.unsubscribe(e,n)}emit(e,...n){this.bus.emit(e,...n)}}class CE{handlers=new Map;getVersion(){return"3.3.3"}subscribe(e,n){this.handlers.set(e,(this.handlers.get(e)||[]).concat(n))}unsubscribe(e,n){this.handlers.set(e,(this.handlers.get(e)||[]).filter(i=>i!==n))}emit(e,...n){(this.handlers.get(e)||[]).forEach(i=>{try{i(n[0])}catch(o){console.error("could not invoke event listener",o)}})}}let fs=null;function Qc(){return fs!==null?fs:typeof window>"u"?new Proxy({},{get:()=>()=>console.error("Window not available, EventBus can not be established!")}):(window.OC?._eventBus&&typeof window._nc_event_bus>"u"&&(console.warn("found old event bus instance at OC._eventBus. Update your version!"),window._nc_event_bus=window.OC._eventBus),typeof window?._nc_event_bus<"u"?fs=new SE(window._nc_event_bus):fs=window._nc_event_bus=new CE,fs)}function jm(t,e){Qc().subscribe(t,e)}function TE(t,e){Qc().unsubscribe(t,e)}function kE(t,...e){Qc().emit(t,...e)}class za{static GLOBAL_SCOPE_VOLATILE="nextcloud_vol";static GLOBAL_SCOPE_PERSISTENT="nextcloud_per";scope;wrapped;constructor(e,n,i){this.scope=`${i?za.GLOBAL_SCOPE_PERSISTENT:za.GLOBAL_SCOPE_VOLATILE}_${btoa(e)}_`,this.wrapped=n}scopeKey(e){return`${this.scope}${e}`}setItem(e,n){this.wrapped.setItem(this.scopeKey(e),n)}getItem(e){return this.wrapped.getItem(this.scopeKey(e))}removeItem(e){this.wrapped.removeItem(this.scopeKey(e))}clear(){Object.keys(this.wrapped).filter(e=>e.startsWith(this.scope)).map(this.wrapped.removeItem.bind(this.wrapped))}}class RE{appId;persisted=!1;clearedOnLogout=!1;constructor(e){this.appId=e}persist(e=!0){return this.persisted=e,this}clearOnLogout(e=!0){return this.clearedOnLogout=e,this}build(){return new za(this.appId,this.persisted?window.localStorage:window.sessionStorage,!this.clearedOnLogout)}}function PE(t){return new RE(t)}OE();function LE(){return globalThis._nc_auth_requestToken?globalThis._nc_auth_requestToken:globalThis.document?document.head.dataset.requesttoken??null:null}function Um(t){if(!t||typeof t!="string")throw new Error("Invalid CSRF token given",{cause:{token:t}});globalThis._nc_auth_requestToken!==t&&(globalThis._nc_auth_requestToken=t,globalThis.document&&(document.head.dataset.requesttoken=t),kE("csrf-token-update",{token:t,_internal:!0}))}async function DE(){const t=Jc("/csrftoken"),e=await fetch(t);if(!e.ok)throw new Error("Could not fetch CSRF token from API",{cause:e});try{const{token:n}=await e.json();return Um(n),n}catch(n){throw new Error("Could not parse CSRF token from API response",{cause:n})}}function NE(t){const e=async({token:n})=>{try{t(n)}catch(i){console.error("Error updating CSRF token observer",i)}};return jm("csrf-token-update",e),()=>TE("csrf-token-update",e)}function OE(){jm("csrf-token-update",({token:t,_internal:e})=>{e||Um(t)})}PE("public").persist().build();let Ro;function Pf(t,e){return t?t.getAttribute(e):null}function $E(){if(Ro!==void 0)return Ro;const t=document?.getElementsByTagName("head")[0];if(!t)return null;const e=Pf(t,"data-user");return e===null?(Ro=null,Ro):(Ro={uid:e,displayName:Pf(t,"data-user-displayname"),isAdmin:!!window._oc_isadmin},Ro)}var me=(t=>(t[t.Debug=0]="Debug",t[t.Info=1]="Info",t[t.Warn=2]="Warn",t[t.Error=3]="Error",t[t.Fatal=4]="Fatal",t))(me||{});class BE{context;constructor(e){this.context=e||{}}formatMessage(e,n,i){let o="["+me[n].toUpperCase()+"] ";return i&&i.app&&(o+=i.app+": "),typeof e=="string"?o+e:(o+=`Unexpected ${e.name}`,e.message&&(o+=` "${e.message}"`),n===me.Debug&&e.stack&&(o+=`
+
+Stack trace:
+${e.stack}`),o)}log(e,n,i){if(!(typeof this.context?.level=="number"&&e{document.readyState==="complete"||document.readyState==="interactive"?(e.context.level=window._oc_config?.loglevel??me.Warn,window._oc_debug&&(e.context.level=me.Debug),document.removeEventListener("readystatechange",n)):document.addEventListener("readystatechange",n)};return n(),this}build(){return this.context.level===void 0&&this.detectLogLevel(),this.factory(this.context)}}function UE(){return new jE(FE)}const VE=UE().detectUser().setApp("@nextcloud/vue").build(),Ha=K_(),IE=Rt({name:"NcPopoverTriggerProvider",provide(){return{"NcPopover:trigger:shown":()=>this.shown,"NcPopover:trigger:attrs":()=>this.triggerAttrs}},props:{shown:{type:Boolean,required:!0},popupRole:{type:String,default:void 0}},computed:{triggerAttrs(){return{"aria-haspopup":this.popupRole,"aria-expanded":this.shown.toString()}}},render(){return this.$slots.default?.({attrs:this.triggerAttrs})}}),zE="_ncPopover_zfWgY",HE={"material-design-icon":"_material-design-icon_bkeq-",ncPopover:zE},Vm="nc-popover-9";bf.themes[Vm]=structuredClone(bf.themes.dropdown);const JE={name:"NcPopover",components:{Dropdown:dE,NcPopoverTriggerProvider:IE},props:{boundary:{type:[String,Object],default:""},closeOnClickOutside:{type:Boolean,default:!0},noCloseOnClickOutside:{type:Boolean,default:!1},container:{type:[Boolean,String],default:"body"},delay:{type:[Number,Object],default:0},noFocusTrap:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},popoverBaseClass:{type:String,default:""},popoverTriggers:{type:[Array,Object],default:null},popupRole:{type:String,default:void 0,validator:t=>["menu","listbox","tree","grid","dialog","true"].includes(t)},setReturnFocus:{default:void 0,type:[Boolean,HTMLElement,SVGElement,String,Function]},shown:{type:Boolean,default:!1},triggers:{type:[Array,Object],default:()=>["click"]}},emits:["afterShow","afterHide","update:shown"],setup(){return{theme:Vm}},data(){return{internalShown:this.shown}},computed:{popperTriggers(){if(this.popoverTriggers&&Array.isArray(this.popoverTriggers))return this.popoverTriggers},popperHideTriggers(){if(this.popoverTriggers&&typeof this.popoverTriggers=="object")return this.popoverTriggers.hide},popperShowTriggers(){if(this.popoverTriggers&&typeof this.popoverTriggers=="object")return this.popoverTriggers.show},internalTriggers(){if(this.triggers&&Array.isArray(this.triggers))return this.triggers},hideTriggers(){if(this.triggers&&typeof this.triggers=="object")return this.triggers.hide},showTriggers(){if(this.triggers&&typeof this.triggers=="object")return this.triggers.show},internalPlacement(){return this.placement==="start"?Ha?"right":"left":this.placement==="end"?Ha?"left":"right":this.placement}},watch:{shown(t){this.internalShown=t},internalShown(t){this.$emit("update:shown",t)}},mounted(){this.checkTriggerA11y()},beforeUnmount(){this.clearFocusTrap(),this.clearEscapeStopPropagation()},methods:{checkTriggerA11y(){window.OC?.debug&&this.getPopoverTriggerContainerElement().querySelector("[aria-expanded]")},removeFloatingVueAriaDescribedBy(){const t=this.getPopoverTriggerContainerElement().querySelectorAll("[data-popper-shown]");for(const e of t)e.removeAttribute("aria-describedby")},getPopoverContentElement(){return this.$refs.popover?.$refs.popperContent?.$el},getPopoverTriggerContainerElement(){return this.$refs.popover?.$refs.popper?.$refs.reference},async useFocusTrap(){if(await this.$nextTick(),this.noFocusTrap)return;const t=this.getPopoverContentElement();t.tabIndex=-1,t&&(this.$focusTrap=gm(t,{escapeDeactivates:!1,allowOutsideClick:!0,setReturnFocus:this.setReturnFocus,trapStack:er(),fallBackFocus:t}),this.$focusTrap.activate())},clearFocusTrap(t={}){try{this.$focusTrap?.deactivate(t),this.$focusTrap=null}catch(e){VE.warn("[NcPopover] Failed to clear focus trap",{error:e})}},addEscapeStopPropagation(){this.getPopoverContentElement()?.addEventListener("keydown",this.stopKeydownEscapeHandler)},clearEscapeStopPropagation(){this.getPopoverContentElement()?.removeEventListener("keydown",this.stopKeydownEscapeHandler)},stopKeydownEscapeHandler(t){t.type==="keydown"&&t.key==="Escape"&&t.stopPropagation()},async afterShow(){this.getPopoverContentElement().addEventListener("transitionend",()=>{this.$emit("afterShow")},{once:!0,passive:!0}),this.removeFloatingVueAriaDescribedBy(),await this.$nextTick(),await this.useFocusTrap(),this.addEscapeStopPropagation()},afterHide(){this.getPopoverContentElement()?.addEventListener("transitionend",()=>{this.$emit("afterHide")},{once:!0,passive:!0}),this.clearFocusTrap(),this.clearEscapeStopPropagation()}}};function WE(t,e,n,i,o,s){const r=Ys("NcPopoverTriggerProvider"),a=Ys("Dropdown");return O(),Ct(a,{ref:"popover",shown:o.internalShown,"onUpdate:shown":[e[0]||(e[0]=l=>o.internalShown=l),e[1]||(e[1]=l=>o.internalShown=l)],arrowPadding:10,autoHide:!n.noCloseOnClickOutside&&n.closeOnClickOutside,boundary:n.boundary||void 0,container:n.container,delay:n.delay,distance:10,handleResize:"",noAutoFocus:!0,placement:s.internalPlacement,popperClass:[t.$style.ncPopover,n.popoverBaseClass],popperTriggers:s.popperTriggers,popperHideTriggers:s.popperHideTriggers,popperShowTriggers:s.popperShowTriggers,theme:i.theme,triggers:s.internalTriggers,hideTriggers:s.hideTriggers,showTriggers:s.showTriggers,onApplyShow:s.afterShow,onApplyHide:s.afterHide},{popper:kt(l=>[Zt(t.$slots,"default",Vu(Ra(l)))]),default:kt(()=>[ot(r,{shown:o.internalShown,popupRole:n.popupRole},{default:kt(l=>[Zt(t.$slots,"trigger",Vu(Ra(l)))]),_:3},8,["shown","popupRole"])]),_:3},8,["shown","autoHide","boundary","container","delay","placement","popperClass","popperTriggers","popperHideTriggers","popperShowTriggers","theme","triggers","hideTriggers","showTriggers","onApplyShow","onApplyHide"])}const GE={$style:HE},Lf=Ie(JE,[["render",WE],["__cssModules",GE]]),qE=Symbol.for("NcActions:isSemanticMenu"),KE=Symbol.for("NcActions:closeMenu"),XE={name:"DotsHorizontalIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},YE=["aria-hidden","aria-label"],ZE=["fill","width","height"],QE={d:"M16,12A2,2 0 0,1 18,10A2,2 0 0,1 20,12A2,2 0 0,1 18,14A2,2 0 0,1 16,12M10,12A2,2 0 0,1 12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12M4,12A2,2 0 0,1 6,10A2,2 0 0,1 8,12A2,2 0 0,1 6,14A2,2 0 0,1 4,12Z"},ME={key:0};function tA(t,e,n,i,o,s){return O(),J("span",ee(t.$attrs,{"aria-hidden":n.title?null:"true","aria-label":n.title,class:"material-design-icon dots-horizontal-icon",role:"img",onClick:e[0]||(e[0]=r=>t.$emit("click",r))}),[(O(),J("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[w("path",QE,[n.title?(O(),J("title",ME,L(n.title),1)):_t("",!0)])],8,ZE))],16,YE)}const eA=Ie(XE,[["render",tA]]);wr(xw);function Im(t){return Array.isArray(t)&&t.some(e=>{if(e===null)return!1;if(typeof e=="object"){const n=e;if(n.type===Se||n.type===At&&!Im(n.children)||n.type===br&&!n.children.trim())return!1}return!0})}const nA=".focusable",iA={name:"NcActions",components:{NcButton:si,NcPopover:Lf},provide(){return{[qE]:ht(()=>this.actionsMenuSemanticType==="menu"),[KE]:this.closeMenu}},props:{open:{type:Boolean,default:!1},manualOpen:{type:Boolean,default:!1},forceMenu:{type:Boolean,default:!1},forceName:{type:Boolean,default:!1},menuName:{type:String,default:null},primary:{type:Boolean,default:!1},defaultIcon:{type:String,default:""},ariaLabel:{type:String,default:We("Actions")},placement:{type:String,default:"bottom"},boundariesElement:{type:Element,default:()=>document.getElementById("content-vue")??document.querySelector("body")},container:{type:[Boolean,String,Object,Element],default:"body"},disabled:{type:Boolean,default:!1},inline:{type:Number,default:0},variant:{type:String,validator(t){return["primary","secondary","tertiary","tertiary-no-background","tertiary-on-primary","error","warning","success"].includes(t)},default:null},wide:{type:Boolean,default:!1},size:{type:String,default:"normal",validator(t){return["small","normal","large"].includes(t)}}},emits:["click","blur","focus","close","closed","open","opened","update:open"],setup(){return{randomId:Qo()}},data(){return{opened:this.open,focusIndex:0,actionsMenuSemanticType:"unknown"}},computed:{triggerButtonVariant(){return this.variant||(this.primary?"primary":this.menuName?"secondary":"tertiary")},config(){return{menu:{popupRole:"menu",withArrowNavigation:!0,withTabNavigation:!1,withFocusTrap:!1},navigation:{popupRole:void 0,withArrowNavigation:!1,withTabNavigation:!0,withFocusTrap:!1},dialog:{popupRole:"dialog",withArrowNavigation:!1,withTabNavigation:!0,withFocusTrap:!0},tooltip:{popupRole:void 0,withArrowNavigation:!1,withTabNavigation:!1,withFocusTrap:!1},unknown:{popupRole:void 0,role:void 0,withArrowNavigation:!0,withTabNavigation:!1,withFocusTrap:!0}}[this.actionsMenuSemanticType]},withFocusTrap(){return this.config.withFocusTrap}},watch:{open(t){t!==this.opened&&(this.opened=t)},opened(){this.opened?document.body.addEventListener("keydown",this.handleEscapePressed):document.body.removeEventListener("keydown",this.handleEscapePressed)}},created(){g2(()=>this.opened,{disabled:()=>this.config.withFocusTrap}),"ariaHidden"in this.$attrs},methods:{getActionName(t){return t?.type?.name},isValidSingleAction(t){return["NcActionButton","NcActionLink","NcActionRouter"].includes(this.getActionName(t))},isAction(t){return this.getActionName(t)?.startsWith?.("NcAction")},isIconUrl(t){try{return!!new URL(t,t.startsWith("/")?window.location.origin:void 0)}catch{return!1}},toggleMenu(t){t?this.openMenu():this.closeMenu()},openMenu(){this.opened||(this.opened=!0,this.$emit("update:open",!0),this.$emit("open"))},async closeMenu(t=!0){this.opened&&(await this.$nextTick(),this.opened=!1,this.$refs.popover?.clearFocusTrap({returnFocus:t}),this.$emit("update:open",!1),this.$emit("close"),this.focusIndex=0,t&&this.$refs.triggerButton?.$el.focus())},onOpened(){this.$nextTick(()=>{this.focusFirstAction(null),this.$emit("opened")})},onClosed(){this.$emit("closed")},getCurrentActiveMenuItemElement(){return this.$refs.menu.querySelector("li.active")},getFocusableMenuItemElements(){return this.$refs.menu.querySelectorAll(nA)},onKeydown(t){if(t.key==="Tab"){if(this.config.withFocusTrap)return;if(!this.config.withTabNavigation){this.closeMenu(!0);return}t.preventDefault();const e=this.getFocusableMenuItemElements(),n=[...e].indexOf(document.activeElement);if(n===-1)return;const i=t.shiftKey?n-1:n+1;(i<0||i===e.length)&&this.closeMenu(!0),this.focusIndex=i,this.focusAction();return}this.config.withArrowNavigation&&(t.key==="ArrowUp"&&this.focusPreviousAction(t),t.key==="ArrowDown"&&this.focusNextAction(t),t.key==="PageUp"&&this.focusFirstAction(t),t.key==="PageDown"&&this.focusLastAction(t)),this.handleEscapePressed(t)},onTriggerKeydown(t){t.key==="Escape"&&this.actionsMenuSemanticType==="tooltip"&&this.closeMenu()},handleEscapePressed(t){t.key==="Escape"&&(this.closeMenu(),t.preventDefault())},removeCurrentActive(){const t=this.$refs.menu.querySelector("li.active");t&&t.classList.remove("active")},focusAction(){const t=this.getFocusableMenuItemElements()[this.focusIndex];if(t){this.removeCurrentActive();const e=t.closest("li.action");t.focus(),e&&e.classList.add("active")}},focusPreviousAction(t){this.opened&&(this.focusIndex===0?this.focusLastAction(t):(this.preventIfEvent(t),this.focusIndex=this.focusIndex-1),this.focusAction())},focusNextAction(t){if(this.opened){const e=this.getFocusableMenuItemElements().length-1;this.focusIndex===e?this.focusFirstAction(t):(this.preventIfEvent(t),this.focusIndex=this.focusIndex+1),this.focusAction()}},focusFirstAction(t){if(this.opened){this.preventIfEvent(t);const e=[...this.getFocusableMenuItemElements()].findIndex(n=>n.getAttribute("aria-checked")==="true"&&n.getAttribute("role")==="menuitemradio");this.focusIndex=e>-1?e:0,this.focusAction()}},focusLastAction(t){this.opened&&(this.preventIfEvent(t),this.focusIndex=this.getFocusableMenuItemElements().length-1,this.focusAction())},preventIfEvent(t){t&&(t.preventDefault(),t.stopPropagation())},onFocus(t){this.$emit("focus",t)},onBlur(t){this.$emit("blur",t),this.actionsMenuSemanticType==="tooltip"&&this.$refs.menu&&this.getFocusableMenuItemElements().length===0&&this.closeMenu(!1)},onClick(t){this.$emit("click",t)}},render(){const t=[],e=(p,y)=>{p.forEach(m=>{if(this.isAction(m)){y.push(m);return}m.type===At&&e(m.children,y)})};if(e(this.$slots.default?.(),t),t.length===0)return;let n=t.filter(this.isValidSingleAction);this.forceMenu&&n.length>0&&this.inline>0&&(n=[]);const i=n.slice(0,this.inline),o=t.filter(p=>!i.includes(p)),s=["NcActionButton","NcActionButtonGroup","NcActionCheckbox","NcActionRadio"],r=["NcActionInput","NcActionTextEditable"],a=["NcActionLink","NcActionRouter"],l=o.some(p=>r.includes(this.getActionName(p))),c=o.some(p=>s.includes(this.getActionName(p))),u=o.some(p=>a.includes(this.getActionName(p)));l?this.actionsMenuSemanticType="dialog":c?this.actionsMenuSemanticType="menu":u?this.actionsMenuSemanticType="navigation":t.filter(p=>this.getActionName(p).startsWith("NcAction")).length===t.length?this.actionsMenuSemanticType="tooltip":this.actionsMenuSemanticType="unknown";const d=p=>{const y=p?.props?.icon,m=p?.children?.icon?.()?.[0]??(this.isIconUrl(y)?Ne("img",{class:"action-item__menutoggle__icon",src:y,alt:""}):Ne("span",{class:["icon",y]})),x=p?.children?.default?.()?.[0]?.children?.trim(),b=this.forceName?x:"";let A=p?.props?.title;this.forceName||A||(A=x);const R={...p?.props??{}},S=["submit","reset"].includes(R.type)?R.modelValue:"button";return delete R.modelValue,delete R.type,Ne(si,ee(R,{class:["action-item action-item--single",{"action-item--wide":this.wide}],"aria-label":p?.props?.["aria-label"]||x,title:A,disabled:this.disabled||p?.props?.disabled,pressed:p?.props?.modelValue,size:this.size,type:S,wide:this.wide,variant:this.variant||(b?"secondary":"tertiary"),onFocus:this.onFocus,onBlur:this.onBlur,"onUpdate:pressed":p?.props?.["onUpdate:modelValue"]??(()=>{})}),{default:()=>b,icon:()=>m})},f=p=>{const y=Im(this.$slots.icon?.())?this.$slots.icon?.():this.defaultIcon?Ne("span",{class:["icon",this.defaultIcon]}):Ne(eA,{size:20}),m=`${this.randomId}-trigger`;return Ne(Lf,{ref:"popover",delay:0,shown:this.opened,placement:this.placement,boundary:this.boundariesElement,autoBoundaryMaxSize:!0,container:this.container,...this.manualOpen&&{triggers:[]},noCloseOnClickOutside:this.manualOpen,popoverBaseClass:"action-item__popper",popupRole:this.config.popupRole,setReturnFocus:this.config.withFocusTrap?this.$refs.triggerButton?.$el:void 0,noFocusTrap:!this.config.withFocusTrap,"onUpdate:shown":this.toggleMenu,onAfterShow:this.onOpened,onAfterClose:this.onClosed},{trigger:()=>Ne(si,{id:m,class:"action-item__menutoggle",disabled:this.disabled,size:this.size,variant:this.triggerButtonVariant,wide:this.wide,ref:"triggerButton","aria-label":this.menuName?null:this.ariaLabel,"aria-controls":this.opened&&this.config.popupRole?this.randomId:null,onFocus:this.onFocus,onBlur:this.onBlur,onClick:this.onClick,onKeydown:this.onTriggerKeydown},{icon:()=>y,default:()=>this.menuName}),default:()=>Ne("div",{class:{open:this.opened},tabindex:"-1",onKeydown:this.onKeydown,ref:"menu"},[Ne("ul",{id:this.randomId,tabindex:"-1",ref:"menuList",role:this.config.popupRole,"aria-labelledby":m,"aria-modal":this.actionsMenuSemanticType==="dialog"?"true":void 0},[p])])})};return t.length===1&&n.length===1&&!this.forceMenu?d(t[0]):(this.$nextTick(()=>{this.opened&&this.$refs.menu&&(this.$refs.menu.querySelector("li.active")||[]).length===0&&this.focusFirstAction()}),i.length>0&&this.inline>0?Ne("div",{class:["action-items",`action-item--${this.triggerButtonVariant}`]},[...i.map(d),o.length>0?Ne("div",{class:["action-item",{"action-item--open":this.opened}]},[f(o)]):null]):Ne("div",{class:["action-item action-item--default-popover",`action-item--${this.triggerButtonVariant}`,{"action-item--open":this.opened,"action-item--wide":this.wide}]},[f(t)]))}},oA=Ie(iA,[["__scopeId","data-v-23e5cae7"]]),sA=/mac|ipad|iphone|darwin/i.test(navigator.userAgent),rA=window.OCP?.Accessibility?.disableKeyboardShortcuts?.(),aA=/^[a-zA-Z0-9]$/,lA=/^[^\x20-\x7F]$/;function uA(t,e){return!(t.target instanceof HTMLElement)||t.target instanceof HTMLInputElement||t.target instanceof HTMLTextAreaElement||t.target instanceof HTMLSelectElement||t.target.isContentEditable?!0:e.allowInModal?!1:Array.from(document.getElementsByClassName("modal-mask")).filter(n=>n.checkVisibility()).length>0}function Df(t,e){return n=>{if((sA?n.metaKey:n.ctrlKey)===!!e.ctrl){if(n.altKey!==!!e.alt||e.shift!==void 0&&n.shiftKey!==!!e.shift||uA(n,e))return;e.prevent&&n.preventDefault(),e.stop&&n.stopPropagation(),t(n)}}}function Nf(t,e=()=>{},n={}){if(rA)return()=>{};const i=(a,l)=>{if(a.key===l)return!0;if(n.caseSensitive){const c=l===l.toLowerCase(),u=a.key===a.key.toLowerCase();if(c!==u)return!1}return aA.test(l)&&lA.test(a.key)?a.code.replace(/^(?:Key|Digit|Numpad)/,"")===l.toUpperCase():a.key.toLowerCase()===l.toLowerCase()},o=a=>typeof t=="function"?t(a):typeof t=="string"?i(a,t):Array.isArray(t)?t.some(l=>i(a,l)):!0,s=Gh(o,Df(e,n),{eventName:"keydown",dedupe:!0,passive:!n.prevent}),r=n.push?Gh(o,Df(e,n),{eventName:"keyup",passive:!n.prevent}):()=>{};return()=>{s(),r()}}function cA(t=document.body){const e=window.getComputedStyle(t).getPropertyValue("--background-invert-if-dark");return e!==void 0?e==="invert(100%)":!1}cA();const dA=ge(zm());window.addEventListener("resize",()=>{dA.value=zm()});function zm(){return window.outerHeight===window.screen.height}const Mc=1024,Hm=Mc/2,Ja=t=>document.documentElement.clientWidth{hA.value=Ja(Mc),fA.value=Ja(Hm)},{passive:!0});function Of(t){return!t.parent||"vapor"in t||"vapor"in t.parent||t.parent.subTree!==t.vnode?null:t.parent}function pA(t){const e=[t];let n=Of(t);for(;n;)e.push(n),n=Of(n);return e}function gA(){const t=Gn();if(!t)throw new Error("useScopeId must be called within a setup context");const e=pA(t).map(n=>n.vnode.scopeId).filter(Boolean);return Object.fromEntries(e.map(n=>[n,""]))}wr(Ew,Cw);const mA=["aria-labelledby","aria-describedby"],vA=["data-theme-light","data-theme-dark"],yA=["id"],bA={class:"icons-menu"},_A=["title"],wA=["id"],xA={class:"modal-container__content"},EA=Rt({inheritAttrs:!1,__name:"NcModal",props:Wo({name:{default:""},hasPrevious:{type:Boolean},hasNext:{type:Boolean},outTransition:{type:Boolean},enableSlideshow:{type:Boolean},slideshowDelay:{default:5e3},slideshowPaused:{type:Boolean},disableSwipe:{type:Boolean},spreadNavigation:{type:Boolean},size:{default:"normal"},noClose:{type:Boolean},closeOnClickOutside:{type:Boolean},dark:{type:Boolean},lightBackdrop:{type:Boolean},container:{default:"body"},closeButtonOutside:{type:Boolean},additionalTrapElements:{default:()=>[]},inlineActions:{default:0},labelId:{default:""},setReturnFocus:{default:void 0}},{show:{type:Boolean,default:!0},showModifiers:{}}),emits:Wo(["next","previous","close","update:show"],["update:show"]),setup(t,{emit:e}){Al(V=>({v046d2bb2:b.value,v71f7c020:y.value}));const n=Uc(t,"show"),i=t,o=e,s=gA(),r=Qo(),a=qu("mask");let l;Wn(()=>q()),Ke(()=>i.additionalTrapElements,V=>{l&&l.updateContainerElements([a.value,...V])});const{isActive:c,pause:u,resume:d}=dx(A,to(()=>i.slideshowDelay),{immediate:!1}),f=ge(0),p=ge(!1);ig(()=>{p.value&&!i.slideshowPaused?d():c.value&&u()});const y=ht(()=>`${i.slideshowDelay}ms`),{stop:m}=bx(a,{onSwipeEnd:S});Wn(m),Nf("Escape",()=>{er().at(-1)===l&&j()},{allowInModal:!0}),Nf(["ArrowLeft","ArrowRight"],V=>{document.activeElement&&!a.value.contains(document.activeElement)||(V.key==="ArrowLeft"!==Ha?R():A())},{allowInModal:!0});const x=wl(),b=ht(()=>{let V=0;return i.hasNext&&i.enableSlideshow&&V++,!i.noClose&&i.closeButtonOutside&&V++,x.actions&&V++,V});Oi(()=>{!i.name&&i.labelId});function A(V){if(!i.hasNext){p.value=!1;return}V&&c.value&&N(),o("next",V)}function R(V){i.hasPrevious&&(V&&c.value&&N(),o("previous",V))}function S(V,et){if(!i.disableSwipe){if(et!=="left"&&et!=="right")return;et==="left"!==Ha?A(V):R(V)}}function N(){u(),d(),f.value++}function j(V){i.noClose||(n.value=!1,setTimeout(()=>{o("close",V)},300))}function U(V){i.closeOnClickOutside&&j(V)}async function H(){if(l)return;await yr();const V={allowOutsideClick:!0,fallbackFocus:a.value,trapStack:er(),escapeDeactivates:!1,setReturnFocus:i.setReturnFocus};l=gm([a.value,...i.additionalTrapElements],V),l.activate()}function q(){l&&(l?.deactivate(),l=void 0)}return(V,et)=>(O(),Ct(Oy,{disabled:t.container===null,to:t.container},[ot(ls,{name:"fade",appear:"",onAfterEnter:H,onBeforeLeave:q},{default:kt(()=>[_s(w("div",ee({...V.$attrs,...E(s)},{ref:"mask",class:["modal-mask",{"modal-mask--opaque":t.dark||t.closeButtonOutside||t.hasPrevious||t.hasNext,"modal-mask--light":t.lightBackdrop}],role:"dialog","aria-modal":"true","aria-labelledby":t.labelId||`modal-name-${E(r)}`,"aria-describedby":"modal-description-"+E(r),tabindex:"-1"}),[ot(ls,{name:"fade-visibility",appear:""},{default:kt(()=>[w("div",{class:"modal-header","data-theme-light":t.lightBackdrop,"data-theme-dark":!t.lightBackdrop},[t.name.trim()!==""?(O(),J("h2",{key:0,id:"modal-name-"+E(r),class:"modal-header__name"},L(t.name),9,yA)):_t("",!0),w("div",bA,[t.hasNext&&t.enableSlideshow?(O(),J("button",{key:0,class:Yt(["play-pause-icons",{"play-pause-icons--paused":t.slideshowPaused}]),title:E(c)?E(We)("Pause slideshow"):E(We)("Start slideshow"),type:"button",onClick:et[0]||(et[0]=T=>p.value=!p.value)},[ot(Vn,{class:"play-pause-icons__icon",inline:"",name:E(c)?E(We)("Pause slideshow"):E(We)("Start slideshow"),path:E(c)?E(Iw):E(zw)},null,8,["name","path"]),E(c)?(O(),J("svg",{key:`${E(r)}-animation-${f.value}`,class:"progress-ring",height:"50",width:"50"},[...et[1]||(et[1]=[w("circle",{class:"progress-ring__circle",stroke:"white","stroke-width":"2",fill:"transparent",r:"15",cx:"25",cy:"25"},null,-1)])])):_t("",!0)],10,_A)):_t("",!0),ot(oA,{class:"header-actions",inline:t.inlineActions},{default:kt(()=>[Zt(V.$slots,"actions",{},void 0,!0)]),_:3},8,["inline"]),!t.noClose&&t.closeButtonOutside?(O(),Ct(si,{key:1,"aria-label":E(We)("Close"),class:"header-close",variant:"tertiary",onClick:j},{icon:kt(()=>[ot(Vn,{path:E(Wh)},null,8,["path"])]),_:1},8,["aria-label"])):_t("",!0)])],8,vA)]),_:3}),ot(ls,{name:`modal-${t.outTransition?"out":"in"}`,appear:""},{default:kt(()=>[_s(w("div",{class:Yt(["modal-wrapper",[`modal-wrapper--${t.size}`,{"modal-wrapper--spread-navigation":t.spreadNavigation}]]),onMousedown:o_(U,["self"])},[ot(ls,{name:"fade-visibility",appear:""},{default:kt(()=>[_s(ot(si,{"aria-label":E(We)("Previous"),class:"prev",variant:"tertiary-no-background",onClick:R},{icon:kt(()=>[ot(Vn,{directional:"",path:E(Bw),size:40},null,8,["path"])]),_:1},8,["aria-label"]),[[jr,t.hasPrevious]])]),_:1}),w("div",{id:"modal-description-"+E(r),class:"modal-container"},[w("div",xA,[Zt(V.$slots,"default",{},void 0,!0)]),!t.noClose&&!t.closeButtonOutside?(O(),Ct(si,{key:0,"aria-label":E(We)("Close"),class:"modal-container__close",variant:"tertiary",onClick:j},{icon:kt(()=>[ot(Vn,{path:E(Wh)},null,8,["path"])]),_:1},8,["aria-label"])):_t("",!0)],8,wA),ot(ls,{name:"fade-visibility",appear:""},{default:kt(()=>[_s(ot(si,{"aria-label":E(We)("Next"),class:"next",variant:"tertiary-no-background",onClick:A},{icon:kt(()=>[ot(Vn,{directional:"",path:E(Fw),size:40},null,8,["path"])]),_:1},8,["aria-label"]),[[jr,t.hasNext]])]),_:1})],34),[[jr,n.value]])]),_:3},8,["name"])],16,mA),[[jr,n.value]])]),_:3})],8,["disabled","to"]))}}),AA=Ie(EA,[["__scopeId","data-v-3c357e2d"]]),SA=["id","textContent"],CA=["aria-label","aria-labelledby"],TA={class:"dialog__text"},kA={class:"dialog__actions"},RA=Rt({__name:"NcDialog",props:Wo({name:{},message:{default:""},additionalTrapElements:{default:()=>[]},container:{default:"body"},size:{default:"small"},buttons:{default:()=>[]},isForm:{type:Boolean},noClose:{type:Boolean},closeOnClickOutside:{type:Boolean},outTransition:{type:Boolean},navigationAriaLabel:{default:""},navigationAriaLabelledby:{default:""},contentClasses:{default:""},dialogClasses:{default:""},navigationClasses:{default:""}},{open:{type:Boolean,default:!0},openModifiers:{}}),emits:Wo(["closing","reset","submit"],["update:open"]),setup(t,{emit:e}){const n=Uc(t,"open"),i=t,o=e,s=wl(),r=qu("wrapper"),{width:a}=yx(r,{width:900,height:0}),l=ht(()=>a.value<876),c=ht(()=>s?.navigation!==void 0),u=Qo(),d=ht(()=>i.navigationAriaLabel||void 0),f=ht(()=>{if(!i.navigationAriaLabel)return i.navigationAriaLabelledby||u}),p=qu("dialogElement"),y=ht(()=>i.isForm&&!c.value?"form":"div"),m=ht(()=>y.value!=="form"?{}:{submit(N){N.preventDefault(),o("submit",N)},reset(N){N.preventDefault(),o("reset",N)}}),x=ge(!0);function b(N,j){N.type==="submit"&&y.value==="form"&&"reportValidity"in p.value&&!p.value.reportValidity()||(A(j),window.setTimeout(()=>R(),300))}function A(N){x.value=!1,o("closing",N)}function R(){x.value=!0,n.value=!1}const S=ht(()=>({noClose:i.noClose,container:i.container===void 0?"body":i.container,labelId:u,size:i.size,show:n.value&&x.value,outTransition:i.outTransition,closeOnClickOutside:i.closeOnClickOutside,additionalTrapElements:i.additionalTrapElements}));return(N,j)=>n.value?(O(),Ct(E(AA),ee({key:0,class:"dialog__modal",disableSwipe:""},S.value,{onClose:R,"onUpdate:show":j[0]||(j[0]=U=>A())}),{default:kt(()=>[w("h2",{id:E(u),class:"dialog__name",textContent:L(t.name)},null,8,SA),(O(),Ct(_l(y.value),ee({ref:"dialogElement",class:["dialog",t.dialogClasses]},qy(m.value)),{default:kt(()=>[w("div",{ref:"wrapper",class:Yt(["dialog__wrapper",[{"dialog__wrapper--collapsed":l.value}]])},[c.value?(O(),J("nav",{key:0,class:Yt(["dialog__navigation",t.navigationClasses]),"aria-label":d.value,"aria-labelledby":f.value},[Zt(N.$slots,"navigation",{isCollapsed:l.value},void 0,!0)],10,CA)):_t("",!0),w("div",{class:Yt(["dialog__content",t.contentClasses])},[Zt(N.$slots,"default",{},()=>[w("p",TA,L(t.message),1)],!0)],2)],2),w("div",kA,[Zt(N.$slots,"actions",{},()=>[(O(!0),J(At,null,$i(t.buttons,(U,H)=>(O(),Ct(E(Ux),ee({key:H},{ref_for:!0},U,{onClick:(q,V)=>b(U,V)}),null,16,["onClick"]))),128))],!0)])]),_:3},16,["class"]))]),_:3},16)):_t("",!0)}}),PA=Ie(RA,[["__scopeId","data-v-24e91b99"]]),LA=["title"],DA=Rt({__name:"JobStatusIndicator",props:{status:{},dotOnly:{type:Boolean}},setup(t){const e=t,n=ht(()=>{switch(e.status){case"SUCCEEDED":return I("serverinfo","Succeeded");case"FAILED":return I("serverinfo","Failed");case"CRASHED":return I("serverinfo","Crashed");default:return I("serverinfo","Running")}});return(i,o)=>(O(),J("span",{class:Yt(["job-status",`job-status--${t.status.toLowerCase()}`]),title:t.dotOnly?n.value:void 0},[o[0]||(o[0]=w("span",{class:"job-status__dot","aria-hidden":"true"},null,-1)),w("span",{class:Yt(t.dotOnly&&"hidden-visually")},L(n.value),3)],10,LA))}}),Jm=Qt(DA,[["__scopeId","data-v-0e5a1326"]]);function _n(t){const e=["MB","GB","TB","PB","EB"];let n=t,i=0;for(;n>=1024&&i=1024&&i(O(),Ct(E(PA),{name:E(Wa)(t.run.className),size:"normal",onClosing:i[0]||(i[0]=o=>n.$emit("close"))},{default:kt(()=>[w("dl",NA,[w("dt",null,L(E(I)("serverinfo","Class")),1),w("dd",OA,L(t.run.className),1),w("dt",null,L(E(I)("serverinfo","Status")),1),w("dd",null,[ot(Jm,{status:t.run.status},null,8,["status"])]),w("dt",null,L(E(I)("serverinfo","Started")),1),w("dd",null,[ot(E(Gc),{timestamp:t.run.startedAt*1e3,format:e,relativeTime:!1},null,8,["timestamp"])]),w("dt",null,L(E(I)("serverinfo","Duration")),1),w("dd",null,L(E(Ga)(t.run.duration)),1),w("dt",null,L(E(I)("serverinfo","Peak memory")),1),w("dd",null,L(E(ed)(t.run.memoryPeak)),1),w("dt",null,L(E(I)("serverinfo","Run ID")),1),w("dd",null,L(t.run.runId),1),w("dt",null,L(E(I)("serverinfo","Server ID")),1),w("dd",null,L(t.run.serverId),1),w("dt",null,L(E(I)("serverinfo","Process ID")),1),w("dd",null,L(t.run.pid),1)])]),_:1},8,["name"]))}}),BA=Qt($A,[["__scopeId","data-v-c21cb020"]]),FA={name:"InformationOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},jA=["aria-hidden","aria-label"],UA=["fill","width","height"],VA={d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M11,17H13V11H11V17Z"},IA={key:0};function zA(t,e,n,i,o,s){return O(),J("span",ee(t.$attrs,{"aria-hidden":n.title?null:"true","aria-label":n.title,class:"material-design-icon information-outline-icon",role:"img",onClick:e[0]||(e[0]=r=>t.$emit("click",r))}),[(O(),J("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[w("path",VA,[n.title?(O(),J("title",IA,L(n.title),1)):_t("",!0)])],8,UA))],16,jA)}const HA=Qt(FA,[["render",zA]]),JA={class:"server-info-table"},WA={class:"status-cell"},GA={class:"hidden-visually"},qA={class:"when-cell"},KA={class:"duration-cell"},XA={class:"memory-cell"},YA={class:"info-cell"},ZA={class:"hidden-visually"},QA={class:"status-cell"},MA=["title"],tS={class:"info-cell"},eS=Rt({__name:"JobRunsTable",props:{runs:{}},emits:["select"],setup(t){const e={dateStyle:"short",timeStyle:"medium"};function n(i){return I("serverinfo","Details about {job} from {time}",{job:Wa(i.className),time:new Date(i.startedAt*1e3).toLocaleString(Mg(),e)})}return(i,o)=>(O(),J("div",JA,[w("table",null,[w("thead",null,[w("tr",null,[w("th",WA,[w("span",GA,L(E(I)("serverinfo","Status")),1)]),w("th",null,L(E(I)("serverinfo","Job")),1),w("th",qA,L(E(I)("serverinfo","When")),1),w("th",KA,L(E(I)("serverinfo","Duration")),1),w("th",XA,L(E(I)("serverinfo","Peak memory")),1),w("th",YA,[w("span",ZA,L(E(I)("serverinfo","Details")),1)])])]),w("tbody",null,[(O(!0),J(At,null,$i(t.runs,s=>(O(),J("tr",{key:s.runId},[w("td",QA,[ot(Jm,{status:s.status,dotOnly:""},null,8,["status"])]),w("td",{title:s.className},L(E(Wa)(s.className)),9,MA),w("td",null,[ot(E(Gc),{timestamp:s.startedAt*1e3,format:e,relativeTime:!1},null,8,["timestamp"])]),w("td",null,L(E(Ga)(s.duration)),1),w("td",null,L(E(ed)(s.memoryPeak)),1),w("td",tS,[ot(E(si),{variant:"tertiary",size:"small","aria-label":n(s),title:n(s),onClick:r=>i.$emit("select",s)},{icon:kt(()=>[ot(HA,{size:20})]),_:1},8,["aria-label","title","onClick"])])]))),128))])])]))}}),$f=Qt(eS,[["__scopeId","data-v-0f6631a0"]]),nS={class:"server-info-table"},iS={class:"job-cell"},oS={class:"count-cell"},sS={class:"count-cell"},rS={class:"count-cell"},aS={class:"memory-cell"},lS=["title"],uS={class:"count-cell"},cS={class:"count-cell"},dS={class:"count-cell"},hS={class:"memory-cell"},fS=Rt({__name:"SlowJobsTable",props:{jobs:{}},setup(t){return(e,n)=>(O(),J("div",nS,[w("table",null,[w("thead",null,[w("tr",null,[w("th",iS,L(E(I)("serverinfo","Job")),1),w("th",oS,L(E(I)("serverinfo","Runs")),1),w("th",sS,L(E(I)("serverinfo","Average")),1),w("th",rS,L(E(I)("serverinfo","Longest")),1),w("th",aS,L(E(I)("serverinfo","Peak memory")),1)])]),w("tbody",null,[(O(!0),J(At,null,$i(t.jobs,i=>(O(),J("tr",{key:i.className},[w("td",{class:"job-cell",title:i.className},L(E(Wa)(i.className)),9,lS),w("td",uS,L(i.runs),1),w("td",cS,L(E(Ga)(i.avgDuration)),1),w("td",dS,L(E(Ga)(i.maxDuration)),1),w("td",hS,L(E(ed)(i.memoryPeak)),1)]))),128))])])]))}}),pS=Qt(fS,[["__scopeId","data-v-452808c1"]]),gS={class:"stat-tile"},mS={class:"stat-tile__label"},vS={key:0,class:"hidden-visually"},yS=Rt({__name:"StatTile",props:{label:{},value:{},status:{}},setup(t){const e=t,n=ht(()=>{switch(e.status){case"warning":return I("serverinfo","Warning");case"critical":return I("serverinfo","Critical");default:return""}});return(i,o)=>(O(),J("div",gS,[w("div",mS,L(t.label),1),w("div",{class:Yt(["stat-tile__value",t.status&&`stat-tile__value--${t.status}`])},[Zt(i.$slots,"default",{},()=>[Dt(L(t.value),1)],!0),n.value?(O(),J("span",vS,L(n.value),1)):_t("",!0)],2)]))}}),tn=Qt(yS,[["__scopeId","data-v-4a64fa3b"]]),bS={class:"section background-jobs"},_S={class:"row row--tiles"},wS=Rt({__name:"BackgroundJobsSection",props:{cron:{},jobs:{}},setup(t){const e=t,n=ge(null);function i(a){n.value={...a}}const o=ht(()=>e.cron.lastRun>0?Math.max(0,e.cron.now-e.cron.lastRun):-1),s=ht(()=>{const a=o.value;return a<0?"critical":e.cron.mode==="cron"?a>3600?"critical":a>900?"warning":"ok":a>7200?"critical":a>3600?"warning":"ok"}),r=ht(()=>{switch(e.cron.mode){case"cron":return I("serverinfo","System cron");case"webcron":return I("serverinfo","Webcron");default:return I("serverinfo","AJAX (not recommended)")}});return(a,l)=>(O(),J("div",bS,[ot(Xe,{icon:rx,title:E(I)("serverinfo","Background jobs")},null,8,["title"]),w("div",_S,[ot(tn,{label:E(I)("serverinfo","Mode"),value:r.value,status:t.cron.mode==="ajax"?"warning":void 0},null,8,["label","value","status"]),ot(tn,{label:E(I)("serverinfo","Last run"),status:s.value},{default:kt(()=>[t.cron.lastRun>0?(O(),Ct(E(Gc),{key:0,timestamp:t.cron.lastRun*1e3},null,8,["timestamp"])):(O(),J(At,{key:1},[Dt(L(E(I)("serverinfo","Never")),1)],64))]),_:1},8,["label","status"])]),w("h3",null,L(E(ic)("serverinfo","Latest failures (last %n day)","Latest failures (last %n days)",t.jobs.retentionDays)),1),t.jobs.failures.length===0?(O(),Ct(E(au),{key:0,type:"success"},{default:kt(()=>[Dt(L(E(ic)("serverinfo","No background job failed in the last %n day.","No background job failed in the last %n days.",t.jobs.retentionDays)),1)]),_:1})):(O(),Ct($f,{key:1,runs:t.jobs.failures,onSelect:i},null,8,["runs"])),w("h3",null,L(E(I)("serverinfo","Latest runs")),1),t.jobs.recent.length===0?(O(),Ct(E(au),{key:2,type:"info"},{default:kt(()=>[Dt(L(E(I)("serverinfo","No background job has run yet.")),1)]),_:1})):(O(),Ct($f,{key:3,runs:t.jobs.recent,onSelect:i},null,8,["runs"])),w("h3",null,L(E(I)("serverinfo","Slowest jobs")),1),t.jobs.slowest.length===0?(O(),Ct(E(au),{key:4,type:"info"},{default:kt(()=>[Dt(L(E(I)("serverinfo","The slow jobs statistics are not available yet. They are collected by a background job and appear after its next run.")),1)]),_:1})):(O(),Ct(pS,{key:5,jobs:t.jobs.slowest},null,8,["jobs"])),n.value?(O(),Ct(BA,{key:6,run:n.value,onClose:l[0]||(l[0]=c=>n.value=null)},null,8,["run"])):_t("",!0)]))}}),xS=Qt(wS,[["__scopeId","data-v-612ee243"]]);function xr(t){return t+.5|0}const Ei=(t,e,n)=>Math.max(Math.min(t,n),e);function Ss(t){return Ei(xr(t*2.55),0,255)}function Pi(t){return Ei(xr(t*255),0,255)}function ei(t){return Ei(xr(t/2.55)/100,0,1)}function Bf(t){return Ei(xr(t*100),0,100)}const dn={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},bc=[..."0123456789ABCDEF"],ES=t=>bc[t&15],AS=t=>bc[(t&240)>>4]+bc[t&15],Hr=t=>(t&240)>>4===(t&15),SS=t=>Hr(t.r)&&Hr(t.g)&&Hr(t.b)&&Hr(t.a);function CS(t){var e=t.length,n;return t[0]==="#"&&(e===4||e===5?n={r:255&dn[t[1]]*17,g:255&dn[t[2]]*17,b:255&dn[t[3]]*17,a:e===5?dn[t[4]]*17:255}:(e===7||e===9)&&(n={r:dn[t[1]]<<4|dn[t[2]],g:dn[t[3]]<<4|dn[t[4]],b:dn[t[5]]<<4|dn[t[6]],a:e===9?dn[t[7]]<<4|dn[t[8]]:255})),n}const TS=(t,e)=>t<255?e(t):"";function kS(t){var e=SS(t)?ES:AS;return t?"#"+e(t.r)+e(t.g)+e(t.b)+TS(t.a,e):void 0}const RS=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Gm(t,e,n){const i=e*Math.min(n,1-n),o=(s,r=(s+t/30)%12)=>n-i*Math.max(Math.min(r-3,9-r,1),-1);return[o(0),o(8),o(4)]}function PS(t,e,n){const i=(o,s=(o+t/60)%6)=>n-n*e*Math.max(Math.min(s,4-s,1),0);return[i(5),i(3),i(1)]}function LS(t,e,n){const i=Gm(t,1,.5);let o;for(e+n>1&&(o=1/(e+n),e*=o,n*=o),o=0;o<3;o++)i[o]*=1-e-n,i[o]+=e;return i}function DS(t,e,n,i,o){return t===o?(e-n)/i+(e.5?c/(2-o-s):c/(o+s),a=DS(e,n,i,c,o),a=a*60+.5),[a|0,l||0,r]}function id(t,e,n,i){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,i)).map(Pi)}function od(t,e,n){return id(Gm,t,e,n)}function NS(t,e,n){return id(LS,t,e,n)}function OS(t,e,n){return id(PS,t,e,n)}function qm(t){return(t%360+360)%360}function $S(t){const e=RS.exec(t);let n=255,i;if(!e)return;e[5]!==i&&(n=e[6]?Ss(+e[5]):Pi(+e[5]));const o=qm(+e[2]),s=+e[3]/100,r=+e[4]/100;return e[1]==="hwb"?i=NS(o,s,r):e[1]==="hsv"?i=OS(o,s,r):i=od(o,s,r),{r:i[0],g:i[1],b:i[2],a:n}}function BS(t,e){var n=nd(t);n[0]=qm(n[0]+e),n=od(n),t.r=n[0],t.g=n[1],t.b=n[2]}function FS(t){if(!t)return;const e=nd(t),n=e[0],i=Bf(e[1]),o=Bf(e[2]);return t.a<255?`hsla(${n}, ${i}%, ${o}%, ${ei(t.a)})`:`hsl(${n}, ${i}%, ${o}%)`}const Ff={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},jf={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function jS(){const t={},e=Object.keys(jf),n=Object.keys(Ff);let i,o,s,r,a;for(i=0;i>16&255,s>>8&255,s&255]}return t}let Jr;function US(t){Jr||(Jr=jS(),Jr.transparent=[0,0,0,0]);const e=Jr[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const VS=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function IS(t){const e=VS.exec(t);let n=255,i,o,s;if(e){if(e[7]!==i){const r=+e[7];n=e[8]?Ss(r):Ei(r*255,0,255)}return i=+e[1],o=+e[3],s=+e[5],i=255&(e[2]?Ss(i):Ei(i,0,255)),o=255&(e[4]?Ss(o):Ei(o,0,255)),s=255&(e[6]?Ss(s):Ei(s,0,255)),{r:i,g:o,b:s,a:n}}}function zS(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${ei(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const wu=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,Po=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function HS(t,e,n){const i=Po(ei(t.r)),o=Po(ei(t.g)),s=Po(ei(t.b));return{r:Pi(wu(i+n*(Po(ei(e.r))-i))),g:Pi(wu(o+n*(Po(ei(e.g))-o))),b:Pi(wu(s+n*(Po(ei(e.b))-s))),a:t.a+n*(e.a-t.a)}}function Wr(t,e,n){if(t){let i=nd(t);i[e]=Math.max(0,Math.min(i[e]+i[e]*n,e===0?360:1)),i=od(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function Km(t,e){return t&&Object.assign(e||{},t)}function Uf(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=Pi(t[3]))):(e=Km(t,{r:0,g:0,b:0,a:1}),e.a=Pi(e.a)),e}function JS(t){return t.charAt(0)==="r"?IS(t):$S(t)}class ar{constructor(e){if(e instanceof ar)return e;const n=typeof e;let i;n==="object"?i=Uf(e):n==="string"&&(i=CS(e)||US(e)||JS(e)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var e=Km(this._rgb);return e&&(e.a=ei(e.a)),e}set rgb(e){this._rgb=Uf(e)}rgbString(){return this._valid?zS(this._rgb):void 0}hexString(){return this._valid?kS(this._rgb):void 0}hslString(){return this._valid?FS(this._rgb):void 0}mix(e,n){if(e){const i=this.rgb,o=e.rgb;let s;const r=n===s?.5:n,a=2*r-1,l=i.a-o.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;s=1-c,i.r=255&c*i.r+s*o.r+.5,i.g=255&c*i.g+s*o.g+.5,i.b=255&c*i.b+s*o.b+.5,i.a=r*i.a+(1-r)*o.a,this.rgb=i}return this}interpolate(e,n){return e&&(this._rgb=HS(this._rgb,e._rgb,n)),this}clone(){return new ar(this.rgb)}alpha(e){return this._rgb.a=Pi(e),this}clearer(e){const n=this._rgb;return n.a*=1-e,this}greyscale(){const e=this._rgb,n=xr(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=n,this}opaquer(e){const n=this._rgb;return n.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return Wr(this._rgb,2,e),this}darken(e){return Wr(this._rgb,2,-e),this}saturate(e){return Wr(this._rgb,1,e),this}desaturate(e){return Wr(this._rgb,1,-e),this}rotate(e){return BS(this._rgb,e),this}}function Yn(){}const WS=(()=>{let t=0;return()=>t++})();function oe(t){return t==null}function Ae(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function Vt(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function Ve(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function Dn(t,e){return Ve(t)?t:e}function Ot(t,e){return typeof t>"u"?e:t}const GS=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/e,Xm=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function re(t,e,n){if(t&&typeof t.call=="function")return t.apply(n,e)}function Mt(t,e,n,i){let o,s,r;if(Ae(t))for(s=t.length,o=0;ot,x:t=>t.x,y:t=>t.y};function XS(t){const e=t.split("."),n=[];let i="";for(const o of e)i+=o,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}function YS(t){const e=XS(t);return n=>{for(const i of e){if(i==="")break;n=n&&n[i]}return n}}function ur(t,e){return(Vf[e]||(Vf[e]=YS(e)))(t)}function sd(t){return t.charAt(0).toUpperCase()+t.slice(1)}const Xa=t=>typeof t<"u",Ni=t=>typeof t=="function",If=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function ZS(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const te=Math.PI,de=2*te,QS=de+te,Ya=Number.POSITIVE_INFINITY,MS=te/180,we=te/2,Ji=te/4,zf=te*2/3,Zm=Math.log10,Go=Math.sign;function Vs(t,e,n){return Math.abs(t-e)o-s).pop(),e}function e4(t){return typeof t=="symbol"||typeof t=="object"&&t!==null&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}function cr(t){return!e4(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function n4(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}function i4(t,e,n){let i,o,s;for(i=0,o=t.length;il&&c=Math.min(e,n)-i&&t<=Math.max(e,n)+i}function rd(t,e,n){n=n||(r=>t[r]1;)s=o+i>>1,n(s)?o=s:i=s;return{lo:o,hi:i}}const oo=(t,e,n,i)=>rd(t,n,i?o=>{const s=t[o][e];return st[o][e]rd(t,n,i=>t[i][e]>=n);function l4(t,e,n){let i=0,o=t.length;for(;ii&&t[o-1]>n;)o--;return i>0||o{const i="_onData"+sd(n),o=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value(...s){const r=o.apply(this,s);return t._chartjs.listeners.forEach(a=>{typeof a[i]=="function"&&a[i](...s)}),r}})})}function Wf(t,e){const n=t._chartjs;if(!n)return;const i=n.listeners,o=i.indexOf(e);o!==-1&&i.splice(o,1),!(i.length>0)&&(Mm.forEach(s=>{delete t[s]}),delete t._chartjs)}function c4(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const t1=(function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame})();function e1(t,e){let n=[],i=!1;return function(...o){n=o,i||(i=!0,t1.call(window,()=>{i=!1,t.apply(e,n)}))}}function d4(t,e){let n;return function(...i){return e?(clearTimeout(n),n=setTimeout(t,e,i)):t.apply(this,i),e}}const n1=t=>t==="start"?"left":t==="end"?"right":"center",sn=(t,e,n)=>t==="start"?e:t==="end"?n:(e+n)/2,h4=(t,e,n,i)=>t===(i?"left":"right")?n:t==="center"?(e+n)/2:e;function f4(t,e,n){const i=e.length;let o=0,s=i;if(t._sorted){const{iScale:r,vScale:a,_parsed:l}=t,c=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null,u=r.axis,{min:d,max:f,minDefined:p,maxDefined:y}=r.getUserBounds();if(p){if(o=Math.min(oo(l,u,d).lo,n?i:oo(e,u,r.getPixelForValue(d)).lo),c){const m=l.slice(0,o+1).reverse().findIndex(x=>!oe(x[a.axis]));o-=Math.max(0,m)}o=qe(o,0,i-1)}if(y){let m=Math.max(oo(l,r.axis,f,!0).hi+1,n?0:oo(e,u,r.getPixelForValue(f),!0).hi+1);if(c){const x=l.slice(m-1).findIndex(b=>!oe(b[a.axis]));m+=Math.max(0,x)}s=qe(m,o,i)-o}else s=i-o}return{start:o,count:s}}function p4(t){const{xScale:e,yScale:n,_scaleRanges:i}=t,o={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!i)return t._scaleRanges=o,!0;const s=i.xmin!==e.min||i.xmax!==e.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,o),s}const Gr=t=>t===0||t===1,Gf=(t,e,n)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*de/n)),qf=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*de/n)+1,Is={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*we)+1,easeOutSine:t=>Math.sin(t*we),easeInOutSine:t=>-.5*(Math.cos(te*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>Gr(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>Gr(t)?t:Gf(t,.075,.3),easeOutElastic:t=>Gr(t)?t:qf(t,.075,.3),easeInOutElastic(t){return Gr(t)?t:t<.5?.5*Gf(t*2,.1125,.45):.5+.5*qf(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-Is.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?Is.easeInBounce(t*2)*.5:Is.easeOutBounce(t*2-1)*.5+.5};function ad(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function Kf(t){return ad(t)?t:new ar(t)}function xu(t){return ad(t)?t:new ar(t).saturate(.5).darken(.1).hexString()}const g4=["x","y","borderWidth","radius","tension"],m4=["color","borderColor","backgroundColor"];function v4(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),t.set("animations",{colors:{type:"color",properties:m4},numbers:{type:"number",properties:g4}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}})}function y4(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Xf=new Map;function b4(t,e){e=e||{};const n=t+JSON.stringify(e);let i=Xf.get(n);return i||(i=new Intl.NumberFormat(t,e),Xf.set(n,i)),i}function ld(t,e,n){return b4(e,n).format(t)}const _4={values(t){return Ae(t)?t:""+t},numeric(t,e,n){if(t===0)return"0";const i=this.chart.options.locale;let o,s=t;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(o="scientific"),s=w4(t,n)}const r=Zm(Math.abs(s)),a=isNaN(r)?1:Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:o,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),ld(t,i,l)}};function w4(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}var i1={formatters:_4};function x4(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,n)=>n.lineWidth,tickColor:(e,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:i1.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const po=Object.create(null),wc=Object.create(null);function zs(t,e){if(!e)return t;const n=e.split(".");for(let i=0,o=n.length;ii.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,o)=>xu(o.backgroundColor),this.hoverBorderColor=(i,o)=>xu(o.borderColor),this.hoverColor=(i,o)=>xu(o.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(n)}set(e,n){return Eu(this,e,n)}get(e){return zs(this,e)}describe(e,n){return Eu(wc,e,n)}override(e,n){return Eu(po,e,n)}route(e,n,i,o){const s=zs(this,e),r=zs(this,i),a="_"+n;Object.defineProperties(s,{[a]:{value:s[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[a],c=r[o];return Vt(l)?Object.assign({},c,l):Ot(l,c)},set(l){this[a]=l}}})}apply(e){e.forEach(n=>n(this))}}var pe=new E4({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[v4,y4,x4]);function A4(t){return!t||oe(t.size)||oe(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function Yf(t,e,n,i,o){let s=e[o];return s||(s=e[o]=t.measureText(o).width,n.push(o)),s>i&&(i=s),i}function Wi(t,e,n){const i=t.currentDevicePixelRatio,o=n!==0?Math.max(n/2,.5):0;return Math.round((e-o)*i)/i+o}function Zf(t,e){!e&&!t||(e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function xc(t,e,n,i){o1(t,e,n,i,null)}function o1(t,e,n,i,o){let s,r,a,l,c,u,d,f;const p=e.pointStyle,y=e.rotation,m=e.radius;let x=(y||0)*MS;if(p&&typeof p=="object"&&(s=p.toString(),s==="[object HTMLImageElement]"||s==="[object HTMLCanvasElement]")){t.save(),t.translate(n,i),t.rotate(x),t.drawImage(p,-p.width/2,-p.height/2,p.width,p.height),t.restore();return}if(!(isNaN(m)||m<=0)){switch(t.beginPath(),p){default:o?t.ellipse(n,i,o/2,m,0,0,de):t.arc(n,i,m,0,de),t.closePath();break;case"triangle":u=o?o/2:m,t.moveTo(n+Math.sin(x)*u,i-Math.cos(x)*m),x+=zf,t.lineTo(n+Math.sin(x)*u,i-Math.cos(x)*m),x+=zf,t.lineTo(n+Math.sin(x)*u,i-Math.cos(x)*m),t.closePath();break;case"rectRounded":c=m*.516,l=m-c,r=Math.cos(x+Ji)*l,d=Math.cos(x+Ji)*(o?o/2-c:l),a=Math.sin(x+Ji)*l,f=Math.sin(x+Ji)*(o?o/2-c:l),t.arc(n-d,i-a,c,x-te,x-we),t.arc(n+f,i-r,c,x-we,x),t.arc(n+d,i+a,c,x,x+we),t.arc(n-f,i+r,c,x+we,x+te),t.closePath();break;case"rect":if(!y){l=Math.SQRT1_2*m,u=o?o/2:l,t.rect(n-u,i-l,2*u,2*l);break}x+=Ji;case"rectRot":d=Math.cos(x)*(o?o/2:m),r=Math.cos(x)*m,a=Math.sin(x)*m,f=Math.sin(x)*(o?o/2:m),t.moveTo(n-d,i-a),t.lineTo(n+f,i-r),t.lineTo(n+d,i+a),t.lineTo(n-f,i+r),t.closePath();break;case"crossRot":x+=Ji;case"cross":d=Math.cos(x)*(o?o/2:m),r=Math.cos(x)*m,a=Math.sin(x)*m,f=Math.sin(x)*(o?o/2:m),t.moveTo(n-d,i-a),t.lineTo(n+d,i+a),t.moveTo(n+f,i-r),t.lineTo(n-f,i+r);break;case"star":d=Math.cos(x)*(o?o/2:m),r=Math.cos(x)*m,a=Math.sin(x)*m,f=Math.sin(x)*(o?o/2:m),t.moveTo(n-d,i-a),t.lineTo(n+d,i+a),t.moveTo(n+f,i-r),t.lineTo(n-f,i+r),x+=Ji,d=Math.cos(x)*(o?o/2:m),r=Math.cos(x)*m,a=Math.sin(x)*m,f=Math.sin(x)*(o?o/2:m),t.moveTo(n-d,i-a),t.lineTo(n+d,i+a),t.moveTo(n+f,i-r),t.lineTo(n-f,i+r);break;case"line":r=o?o/2:Math.cos(x)*m,a=Math.sin(x)*m,t.moveTo(n-r,i-a),t.lineTo(n+r,i+a);break;case"dash":t.moveTo(n,i),t.lineTo(n+Math.cos(x)*(o?o/2:m),i+Math.sin(x)*m);break;case!1:t.closePath();break}t.fill(),e.borderWidth>0&&t.stroke()}}function hr(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.xe.top-n&&t.y0&&s.strokeColor!=="";let l,c;for(t.save(),t.font=o.string,T4(t,s),l=0;l+t||0;function ud(t,e){const n={},i=Vt(e),o=i?Object.keys(e):e,s=Vt(t)?i?r=>Ot(t[r],t[e[r]]):r=>t[r]:()=>t;for(const r of o)n[r]=N4(s(r));return n}function O4(t){return ud(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Hs(t){return ud(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Cn(t){const e=O4(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Me(t,e){t=t||{},e=e||pe.font;let n=Ot(t.size,e.size);typeof n=="string"&&(n=parseInt(n,10));let i=Ot(t.style,e.style);i&&!(""+i).match(L4)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const o={family:Ot(t.family,e.family),lineHeight:D4(Ot(t.lineHeight,e.lineHeight),n),size:n,style:i,weight:Ot(t.weight,e.weight),string:""};return o.string=A4(o),o}function qr(t,e,n,i){let o,s,r;for(o=0,s=t.length;on&&a===0?0:a+l;return{min:r(i,-Math.abs(s)),max:r(o,s)}}function bo(t,e){return Object.assign(Object.create(t),e)}function cd(t,e=[""],n,i,o=()=>t[0]){const s=n||t;typeof i>"u"&&(i=l1("_fallback",t));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:s,_fallback:i,_getTarget:o,override:a=>cd([a,...t],e,s,i)};return new Proxy(r,{deleteProperty(a,l){return delete a[l],delete a._keys,delete t[0][l],!0},get(a,l){return r1(a,l,()=>H4(l,e,t,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(a,l){return Mf(a).includes(l)},ownKeys(a){return Mf(a)},set(a,l,c){const u=a._storage||(a._storage=o());return a[l]=u[l]=c,delete a._keys,!0}})}function qo(t,e,n,i){const o={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:s1(t,i),setContext:s=>qo(t,s,n,i),override:s=>qo(t.override(s),e,n,i)};return new Proxy(o,{deleteProperty(s,r){return delete s[r],delete t[r],!0},get(s,r,a){return r1(s,r,()=>F4(s,r,a))},getOwnPropertyDescriptor(s,r){return s._descriptors.allKeys?Reflect.has(t,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,r)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(s,r){return Reflect.has(t,r)},ownKeys(){return Reflect.ownKeys(t)},set(s,r,a){return t[r]=a,delete s[r],!0}})}function s1(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:i=e.indexable,_allKeys:o=e.allKeys}=t;return{allKeys:o,scriptable:n,indexable:i,isScriptable:Ni(n)?n:()=>n,isIndexable:Ni(i)?i:()=>i}}const B4=(t,e)=>t?t+sd(e):e,dd=(t,e)=>Vt(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function r1(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e)||e==="constructor")return t[e];const i=n();return t[e]=i,i}function F4(t,e,n){const{_proxy:i,_context:o,_subProxy:s,_descriptors:r}=t;let a=i[e];return Ni(a)&&r.isScriptable(e)&&(a=j4(e,a,t,n)),Ae(a)&&a.length&&(a=U4(e,a,t,r.isIndexable)),dd(e,a)&&(a=qo(a,o,s&&s[e],r)),a}function j4(t,e,n,i){const{_proxy:o,_context:s,_subProxy:r,_stack:a}=n;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t);let l=e(s,r||i);return a.delete(t),dd(t,l)&&(l=hd(o._scopes,o,t,l)),l}function U4(t,e,n,i){const{_proxy:o,_context:s,_subProxy:r,_descriptors:a}=n;if(typeof s.index<"u"&&i(t))return e[s.index%e.length];if(Vt(e[0])){const l=e,c=o._scopes.filter(u=>u!==l);e=[];for(const u of l){const d=hd(c,o,t,u);e.push(qo(d,s,r&&r[t],a))}}return e}function a1(t,e,n){return Ni(t)?t(e,n):t}const V4=(t,e)=>t===!0?e:typeof t=="string"?ur(e,t):void 0;function I4(t,e,n,i,o){for(const s of e){const r=V4(n,s);if(r){t.add(r);const a=a1(r._fallback,n,o);if(typeof a<"u"&&a!==n&&a!==i)return a}else if(r===!1&&typeof i<"u"&&n!==i)return null}return!1}function hd(t,e,n,i){const o=e._rootScopes,s=a1(e._fallback,n,i),r=[...t,...o],a=new Set;a.add(i);let l=Qf(a,r,n,s||n,i);return l===null||typeof s<"u"&&s!==n&&(l=Qf(a,r,s,l,i),l===null)?!1:cd(Array.from(a),[""],o,s,()=>z4(e,n,i))}function Qf(t,e,n,i,o){for(;n;)n=I4(t,e,n,i,o);return n}function z4(t,e,n){const i=t._getTarget();e in i||(i[e]={});const o=i[e];return Ae(o)&&Vt(n)?n:o||{}}function H4(t,e,n,i){let o;for(const s of e)if(o=l1(B4(s,t),n),typeof o<"u")return dd(t,o)?hd(n,i,t,o):o}function l1(t,e){for(const n of e){if(!n)continue;const i=n[t];if(typeof i<"u")return i}}function Mf(t){let e=t._keys;return e||(e=t._keys=J4(t._scopes)),e}function J4(t){const e=new Set;for(const n of t)for(const i of Object.keys(n).filter(o=>!o.startsWith("_")))e.add(i);return Array.from(e)}const W4=Number.EPSILON||1e-14,Ko=(t,e)=>et==="x"?"y":"x";function G4(t,e,n,i){const o=t.skip?e:t,s=e,r=n.skip?e:n,a=_c(s,o),l=_c(r,s);let c=a/(a+l),u=l/(a+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=i*c,f=i*u;return{previous:{x:s.x-d*(r.x-o.x),y:s.y-d*(r.y-o.y)},next:{x:s.x+f*(r.x-o.x),y:s.y+f*(r.y-o.y)}}}function q4(t,e,n){const i=t.length;let o,s,r,a,l,c=Ko(t,0);for(let u=0;u!c.skip)),e.cubicInterpolationMode==="monotone")X4(t,o);else{let c=i?t[t.length-1]:t[0];for(s=0,r=t.length;st.ownerDocument.defaultView.getComputedStyle(t,null);function Q4(t,e){return Pl(t).getPropertyValue(e)}const M4=["top","right","bottom","left"];function co(t,e,n){const i={};n=n?"-"+n:"";for(let o=0;o<4;o++){const s=M4[o];i[s]=parseFloat(t[e+"-"+s+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}const tC=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function eC(t,e){const n=t.touches,i=n&&n.length?n[0]:t,{offsetX:o,offsetY:s}=i;let r=!1,a,l;if(tC(o,s,t.target))a=o,l=s;else{const c=e.getBoundingClientRect();a=i.clientX-c.left,l=i.clientY-c.top,r=!0}return{x:a,y:l,box:r}}function Ki(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:i}=e,o=Pl(n),s=o.boxSizing==="border-box",r=co(o,"padding"),a=co(o,"border","width"),{x:l,y:c,box:u}=eC(t,n),d=r.left+(u&&a.left),f=r.top+(u&&a.top);let{width:p,height:y}=e;return s&&(p-=r.width+a.width,y-=r.height+a.height),{x:Math.round((l-d)/p*n.width/i),y:Math.round((c-f)/y*n.height/i)}}function nC(t,e,n){let i,o;if(e===void 0||n===void 0){const s=t&&pd(t);if(!s)e=t.clientWidth,n=t.clientHeight;else{const r=s.getBoundingClientRect(),a=Pl(s),l=co(a,"border","width"),c=co(a,"padding");e=r.width-c.width-l.width,n=r.height-c.height-l.height,i=Qa(a.maxWidth,s,"clientWidth"),o=Qa(a.maxHeight,s,"clientHeight")}}return{width:e,height:n,maxWidth:i||Ya,maxHeight:o||Ya}}const Ai=t=>Math.round(t*10)/10;function iC(t,e,n,i){const o=Pl(t),s=co(o,"margin"),r=Qa(o.maxWidth,t,"clientWidth")||Ya,a=Qa(o.maxHeight,t,"clientHeight")||Ya,l=nC(t,e,n);let{width:c,height:u}=l;if(o.boxSizing==="content-box"){const d=co(o,"border","width"),f=co(o,"padding");c-=f.width+d.width,u-=f.height+d.height}return c=Math.max(0,c-s.width),u=Math.max(0,i?c/i:u-s.height),c=Ai(Math.min(c,r,l.maxWidth)),u=Ai(Math.min(u,a,l.maxHeight)),c&&!u&&(u=Ai(c/2)),(e!==void 0||n!==void 0)&&i&&l.height&&u>l.height&&(u=l.height,c=Ai(Math.floor(u*i))),{width:c,height:u}}function tp(t,e,n){const i=e||1,o=Ai(t.height*i),s=Ai(t.width*i);t.height=Ai(t.height),t.width=Ai(t.width);const r=t.canvas;return r.style&&(n||!r.style.height&&!r.style.width)&&(r.style.height=`${t.height}px`,r.style.width=`${t.width}px`),t.currentDevicePixelRatio!==i||r.height!==o||r.width!==s?(t.currentDevicePixelRatio=i,r.height=o,r.width=s,t.ctx.setTransform(i,0,0,i,0,0),!0):!1}const oC=(function(){let t=!1;try{const e={get passive(){return t=!0,!1}};fd()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch{}return t})();function ep(t,e){const n=Q4(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function Xi(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function sC(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:i==="middle"?n<.5?t.y:e.y:i==="after"?n<1?t.y:e.y:n>0?e.y:t.y}}function rC(t,e,n,i){const o={x:t.cp2x,y:t.cp2y},s={x:e.cp1x,y:e.cp1y},r=Xi(t,o,n),a=Xi(o,s,n),l=Xi(s,e,n),c=Xi(r,a,n),u=Xi(a,l,n);return Xi(c,u,n)}const aC=function(t,e){return{x(n){return t+t+e-n},setWidth(n){e=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,i){return n-i},leftForLtr(n,i){return n-i}}},lC=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function Ho(t,e,n){return t?aC(e,n):lC()}function c1(t,e){let n,i;(e==="ltr"||e==="rtl")&&(n=t.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=i)}function d1(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function h1(t){return t==="angle"?{between:dr,compare:s4,normalize:rn}:{between:io,compare:(e,n)=>e-n,normalize:e=>e}}function np({start:t,end:e,count:n,loop:i,style:o}){return{start:t%n,end:e%n,loop:i&&(e-t+1)%n===0,style:o}}function uC(t,e,n){const{property:i,start:o,end:s}=n,{between:r,normalize:a}=h1(i),l=e.length;let{start:c,end:u,loop:d}=t,f,p;if(d){for(c+=l,u+=l,f=0,p=l;fl(o,R,b)&&a(o,R)!==0,N=()=>a(s,b)===0||l(s,R,b),j=()=>m||S(),U=()=>!m||N();for(let H=u,q=u;H<=d;++H)A=e[H%r],!A.skip&&(b=c(A[i]),b!==R&&(m=l(b,o,s),x===null&&j()&&(x=a(b,o)===0?H:q),x!==null&&U()&&(y.push(np({start:x,end:H,loop:f,count:r,style:p})),x=null),q=H,R=b));return x!==null&&y.push(np({start:x,end:d,loop:f,count:r,style:p})),y}function p1(t,e){const n=[],i=t.segments;for(let o=0;oo&&t[s%e].skip;)s--;return s%=e,{start:o,end:s}}function dC(t,e,n,i){const o=t.length,s=[];let r=e,a=t[e],l;for(l=e+1;l<=n;++l){const c=t[l%o];c.skip||c.stop?a.skip||(i=!1,s.push({start:e%o,end:(l-1)%o,loop:i}),e=r=c.stop?l:null):(r=l,a.skip&&(e=l)),a=c}return r!==null&&s.push({start:e%o,end:r%o,loop:i}),s}function hC(t,e){const n=t.points,i=t.options.spanGaps,o=n.length;if(!o)return[];const s=!!t._loop,{start:r,end:a}=cC(n,o,s,i);if(i===!0)return ip(t,[{start:r,end:a,loop:s}],n,e);const l=aa({chart:e,initial:n.initial,numSteps:r,currentStep:Math.min(i-n.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=t1.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((i,o)=>{if(!i.running||!i.items.length)return;const s=i.items;let r=s.length-1,a=!1,l;for(;r>=0;--r)l=s[r],l._active?(l._total>i.duration&&(i.duration=l._total),l.tick(e),a=!0):(s[r]=s[s.length-1],s.pop());a&&(o.draw(),this._notify(o,i,e,"progress")),s.length||(i.running=!1,this._notify(o,i,e,"complete"),i.initial=!1),n+=s.length}),this._lastDate=e,n===0&&(this._running=!1)}_getAnims(e){const n=this._charts;let i=n.get(e);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(e,i)),i}listen(e,n,i){this._getAnims(e).listeners[n].push(i)}add(e,n){!n||!n.length||this._getAnims(e).items.push(...n)}has(e){return this._getAnims(e).items.length>0}start(e){const n=this._charts.get(e);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((i,o)=>Math.max(i,o._duration),0),this._refresh())}running(e){if(!this._running)return!1;const n=this._charts.get(e);return!(!n||!n.running||!n.items.length)}stop(e){const n=this._charts.get(e);if(!n||!n.items.length)return;const i=n.items;let o=i.length-1;for(;o>=0;--o)i[o].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var Zn=new mC;const sp="transparent",vC={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const i=Kf(t||sp),o=i.valid&&Kf(e||sp);return o&&o.valid?o.mix(i,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class yC{constructor(e,n,i,o){const s=n[i];o=qr([e.to,o,s,e.from]);const r=qr([e.from,s,o]);this._active=!0,this._fn=e.fn||vC[e.type||typeof r],this._easing=Is[e.easing]||Is.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=n,this._prop=i,this._from=r,this._to=o,this._promises=void 0}active(){return this._active}update(e,n,i){if(this._active){this._notify(!1);const o=this._target[this._prop],s=i-this._start,r=this._duration-s;this._start=i,this._duration=Math.floor(Math.max(r,e.duration)),this._total+=s,this._loop=!!e.loop,this._to=qr([e.to,n,o,e.from]),this._from=qr([e.from,o,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,i=this._duration,o=this._prop,s=this._from,r=this._loop,a=this._to;let l;if(this._active=s!==a&&(r||n1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[o]=this._fn(s,a,l)}wait(){const e=this._promises||(this._promises=[]);return new Promise((n,i)=>{e.push({res:n,rej:i})})}_notify(e){const n=e?"res":"rej",i=this._promises||[];for(let o=0;o{const s=e[o];if(!Vt(s))return;const r={};for(const a of n)r[a]=s[a];(Ae(s.properties)&&s.properties||[o]).forEach(a=>{(a===o||!i.has(a))&&i.set(a,r)})})}_animateOptions(e,n){const i=n.options,o=_C(e,i);if(!o)return[];const s=this._createAnimations(o,i);return i.$shared&&bC(e.options.$animations,i).then(()=>{e.options=i},()=>{}),s}_createAnimations(e,n){const i=this._properties,o=[],s=e.$animations||(e.$animations={}),r=Object.keys(n),a=Date.now();let l;for(l=r.length-1;l>=0;--l){const c=r[l];if(c.charAt(0)==="$")continue;if(c==="options"){o.push(...this._animateOptions(e,n));continue}const u=n[c];let d=s[c];const f=i.get(c);if(d)if(f&&d.active()){d.update(f,u,a);continue}else d.cancel();if(!f||!f.duration){e[c]=u;continue}s[c]=d=new yC(f,e,c,u),o.push(d)}return o}update(e,n){if(this._properties.size===0){Object.assign(e,n);return}const i=this._createAnimations(e,n);if(i.length)return Zn.add(this._chart,i),!0}}function bC(t,e){const n=[],i=Object.keys(e);for(let o=0;o0||!n&&s<0)return o.index}return null}function up(t,e){const{chart:n,_cachedMeta:i}=t,o=n._stacks||(n._stacks={}),{iScale:s,vScale:r,index:a}=i,l=s.axis,c=r.axis,u=AC(s,r,i),d=e.length;let f;for(let p=0;pn[i].axis===e).shift()}function TC(t,e){return bo(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function kC(t,e,n){return bo(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function ps(t,e){const n=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){e=e||t._parsed;for(const o of e){const s=o._stacks;if(!s||s[i]===void 0||s[i][n]===void 0)return;delete s[i][n],s[i]._visualValues!==void 0&&s[i]._visualValues[n]!==void 0&&delete s[i]._visualValues[n]}}}const Cu=t=>t==="reset"||t==="none",cp=(t,e)=>e?t:Object.assign({},t),RC=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:v1(n,!0),values:null};class gd{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,n){this.chart=e,this._ctx=e.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=Au(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&ps(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,i=this.getDataset(),o=(d,f,p,y)=>d==="x"?f:d==="r"?y:p,s=n.xAxisID=Ot(i.xAxisID,Su(e,"x")),r=n.yAxisID=Ot(i.yAxisID,Su(e,"y")),a=n.rAxisID=Ot(i.rAxisID,Su(e,"r")),l=n.indexAxis,c=n.iAxisID=o(l,s,r,a),u=n.vAxisID=o(l,r,s,a);n.xScale=this.getScaleForId(s),n.yScale=this.getScaleForId(r),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&Wf(this._data,this),e._stacked&&ps(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),i=this._data;if(Vt(n)){const o=this._cachedMeta;this._data=EC(n,o)}else if(i!==n){if(i){Wf(i,this);const o=this._cachedMeta;ps(o),o._parsed=[]}n&&Object.isExtensible(n)&&u4(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,i=this.getDataset();let o=!1;this._dataCheck();const s=n._stacked;n._stacked=Au(n.vScale,n),n.stack!==i.stack&&(o=!0,ps(n),n.stack=i.stack),this._resyncElements(e),(o||s!==n._stacked)&&(up(this,n._parsed),n._stacked=Au(n.vScale,n))}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),i=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:i,_data:o}=this,{iScale:s,_stacked:r}=i,a=s.axis;let l=e===0&&n===o.length?!0:i._sorted,c=e>0&&i._parsed[e-1],u,d,f;if(this._parsing===!1)i._parsed=o,i._sorted=!0,f=o;else{Ae(o[e])?f=this.parseArrayData(i,o,e,n):Vt(o[e])?f=this.parseObjectData(i,o,e,n):f=this.parsePrimitiveData(i,o,e,n);const p=()=>d[a]===null||c&&d[a]m||d=0;--f)if(!y()){this.updateRangeFromParsed(c,e,p,l);break}}return c}getAllParsedValues(e){const n=this._cachedMeta._parsed,i=[];let o,s,r;for(o=0,s=n.length;o=0&ðis.getContext(i,o,n),m=c.resolveNamedOptions(f,p,y,d);return m.$shared&&(m.$shared=l,s[r]=Object.freeze(cp(m,l))),m}_resolveAnimations(e,n,i){const o=this.chart,s=this._cachedDataOpts,r=`animation-${n}`,a=s[r];if(a)return a;let l;if(o.options.animation!==!1){const u=this.chart.config,d=u.datasetAnimationScopeKeys(this._type,n),f=u.getOptionScopes(this.getDataset(),d);l=u.createResolver(f,this.getContext(e,i,n))}const c=new m1(o,l&&l.animations);return l&&l._cacheable&&(s[r]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||Cu(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const i=this.resolveDataElementOptions(e,n),o=this._sharedOptions,s=this.getSharedOptions(i),r=this.includeOptions(n,s)||s!==o;return this.updateSharedOptions(s,n,i),{sharedOptions:s,includeOptions:r}}updateElement(e,n,i,o){Cu(o)?Object.assign(e,i):this._resolveAnimations(n,o).update(e,i)}updateSharedOptions(e,n,i){e&&!Cu(n)&&this._resolveAnimations(void 0,n).update(e,i)}_setStyle(e,n,i,o){e.active=o;const s=this.getStyle(n,o);this._resolveAnimations(n,i,o).update(e,{options:!o&&this.getSharedOptions(s)||s})}removeHoverStyle(e,n,i){this._setStyle(e,i,"active",!1)}setHoverStyle(e,n,i){this._setStyle(e,i,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const n=this._data,i=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const o=i.length,s=n.length,r=Math.min(s,o);r&&this.parse(0,r),s>o?this._insertElements(o,s-o,e):s{for(c.length+=n,a=c.length-1;a>=r;a--)c[a]=c[a-n]};for(l(s),a=e;adr(R,a,l,!0)?1:Math.max(S,S*n,N,N*n),y=(R,S,N)=>dr(R,a,l,!0)?-1:Math.min(S,S*n,N,N*n),m=p(0,c,d),x=p(we,u,f),b=y(te,c,d),A=y(te+we,u,f);i=(m-b)/2,o=(x-A)/2,s=-(m+b)/2,r=-(x+A)/2}return{ratioX:i,ratioY:o,offsetX:s,offsetY:r}}class LC extends gd{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data,{labels:{pointStyle:i,textAlign:o,color:s,useBorderRadius:r,borderRadius:a}}=e.legend.options;return n.labels.length&&n.datasets.length?n.labels.map((l,c)=>{const u=e.getDatasetMeta(0).controller.getStyle(c);return{text:l,fillStyle:u.backgroundColor,fontColor:s,hidden:!e.getDataVisibility(c),lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:u.borderWidth,strokeStyle:u.borderColor,textAlign:o,pointStyle:i,borderRadius:r&&(a||u.borderRadius),index:c}}):[]}},onClick(e,n,i){i.chart.toggleDataVisibility(n.index),i.chart.update()}}}};constructor(e,n){super(e,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,n){const i=this.getDataset().data,o=this._cachedMeta;if(this._parsing===!1)o._parsed=i;else{let s=l=>+i[l];if(Vt(i[e])){const{key:l="value"}=this._parsing;s=c=>+ur(i[c],l)}let r,a;for(r=e,a=e+n;r0&&!isNaN(e)?de*(Math.abs(e)/n):0}getLabelAndValue(e){const n=this._cachedMeta,i=this.chart,o=i.data.labels||[],s=ld(n._parsed[e],i.options.locale);return{label:o[e]||"",value:s}}getMaxBorderWidth(e){let n=0;const i=this.chart;let o,s,r,a,l;if(!e){for(o=0,s=i.data.datasets.length;o0&&this.getParsed(n-1);for(let N=0;N=A){U.skip=!0;continue}const H=this.getParsed(N),q=oe(H[p]),V=U[f]=r.getPixelForValue(H[f],N),et=U[p]=s||q?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,H,l):H[p],N);U.skip=isNaN(V)||isNaN(et)||q,U.stop=N>0&&Math.abs(H[f]-S[f])>x,m&&(U.parsed=H,U.raw=c.data[N]),d&&(U.options=u||this.resolveDataElementOptions(N,j.active?"active":o)),b||this.updateElement(j,N,U,o),S=H}}getMaxOverflow(){const e=this._cachedMeta,n=e.dataset,i=n.options&&n.options.borderWidth||0,o=e.data||[];if(!o.length)return i;const s=o[0].size(this.resolveDataElementOptions(0)),r=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(i,s,r)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}function Gi(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class vd{static override(e){Object.assign(vd.prototype,e)}options;constructor(e){this.options=e||{}}init(){}formats(){return Gi()}parse(){return Gi()}format(){return Gi()}add(){return Gi()}diff(){return Gi()}startOf(){return Gi()}endOf(){return Gi()}}var DC={_date:vd};function NC(t,e,n,i){const{controller:o,data:s,_sorted:r}=t,a=o._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(a&&e===a.axis&&e!=="r"&&r&&s.length){const c=a._reversePixels?a4:oo;if(i){if(o._sharedOptions){const u=s[0],d=typeof u.getRange=="function"&&u.getRange(e);if(d){const f=c(s,e,n-d),p=c(s,e,n+d);return{lo:f.lo,hi:p.hi}}}}else{const u=c(s,e,n);if(l){const{vScale:d}=o._cachedMeta,{_parsed:f}=t,p=f.slice(0,u.lo+1).reverse().findIndex(m=>!oe(m[d.axis]));u.lo-=Math.max(0,p);const y=f.slice(u.hi).findIndex(m=>!oe(m[d.axis]));u.hi+=Math.max(0,y)}return u}}return{lo:0,hi:s.length-1}}function Ll(t,e,n,i,o){const s=t.getSortedVisibleDatasetMetas(),r=n[e];for(let a=0,l=s.length;a{l[r]&&l[r](e[n],o)&&(s.push({element:l,datasetIndex:c,index:u}),a=a||l.inRange(e.x,e.y,o))}),i&&!a?[]:s}var FC={modes:{index(t,e,n,i){const o=Ki(e,t),s=n.axis||"x",r=n.includeInvisible||!1,a=n.intersect?Tu(t,o,s,i,r):ku(t,o,s,!1,i,r),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{const u=a[0].index,d=c.data[u];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:u})}),l):[]},dataset(t,e,n,i){const o=Ki(e,t),s=n.axis||"xy",r=n.includeInvisible||!1;let a=n.intersect?Tu(t,o,s,i,r):ku(t,o,s,!1,i,r);if(a.length>0){const l=a[0].datasetIndex,c=t.getDatasetMeta(l).data;a=[];for(let u=0;un.pos===e)}function hp(t,e){return t.filter(n=>y1.indexOf(n.pos)===-1&&n.box.axis===e)}function ms(t,e){return t.sort((n,i)=>{const o=e?i:n,s=e?n:i;return o.weight===s.weight?o.index-s.index:o.weight-s.weight})}function jC(t){const e=[];let n,i,o,s,r,a;for(n=0,i=(t||[]).length;nc.box.fullSize),!0),i=ms(gs(e,"left"),!0),o=ms(gs(e,"right")),s=ms(gs(e,"top"),!0),r=ms(gs(e,"bottom")),a=hp(e,"x"),l=hp(e,"y");return{fullSize:n,leftAndTop:i.concat(s),rightAndBottom:o.concat(l).concat(r).concat(a),chartArea:gs(e,"chartArea"),vertical:i.concat(o).concat(l),horizontal:s.concat(r).concat(a)}}function fp(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function b1(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function zC(t,e,n,i){const{pos:o,box:s}=n,r=t.maxPadding;if(!Vt(o)){n.size&&(t[o]-=n.size);const d=i[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?s.height:s.width),n.size=d.size/d.count,t[o]+=n.size}s.getPadding&&b1(r,s.getPadding());const a=Math.max(0,e.outerWidth-fp(r,t,"left","right")),l=Math.max(0,e.outerHeight-fp(r,t,"top","bottom")),c=a!==t.w,u=l!==t.h;return t.w=a,t.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function HC(t){const e=t.maxPadding;function n(i){const o=Math.max(e[i]-t[i],0);return t[i]+=o,o}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function JC(t,e){const n=e.maxPadding;function i(o){const s={left:0,top:0,right:0,bottom:0};return o.forEach(r=>{s[r]=Math.max(e[r],n[r])}),s}return i(t?["left","right"]:["top","bottom"])}function Cs(t,e,n,i){const o=[];let s,r,a,l,c,u;for(s=0,r=t.length,c=0;s{typeof m.beforeLayout=="function"&&m.beforeLayout()});const u=l.reduce((m,x)=>x.box.options&&x.box.options.display===!1?m:m+1,0)||1,d=Object.freeze({outerWidth:e,outerHeight:n,padding:o,availableWidth:s,availableHeight:r,vBoxMaxWidth:s/2/u,hBoxMaxHeight:r/2}),f=Object.assign({},o);b1(f,Cn(i));const p=Object.assign({maxPadding:f,w:s,h:r,x:o.left,y:o.top},o),y=VC(l.concat(c),d);Cs(a.fullSize,p,d,y),Cs(l,p,d,y),Cs(c,p,d,y)&&Cs(l,p,d,y),HC(p),pp(a.leftAndTop,p,d,y),p.x+=p.w,p.y+=p.h,pp(a.rightAndBottom,p,d,y),t.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},Mt(a.chartArea,m=>{const x=m.box;Object.assign(x,t.chartArea),x.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}};class _1{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,i){}removeEventListener(e,n,i){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,i,o){return n=Math.max(0,n||e.width),i=i||e.height,{width:n,height:Math.max(0,o?Math.floor(n/o):i)}}isAttached(e){return!0}updateConfig(e){}}class WC extends _1{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const pa="$chartjs",GC={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},gp=t=>t===null||t==="";function qC(t,e){const n=t.style,i=t.getAttribute("height"),o=t.getAttribute("width");if(t[pa]={initial:{height:i,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",gp(o)){const s=ep(t,"width");s!==void 0&&(t.width=s)}if(gp(i))if(t.style.height==="")t.height=t.width/(e||2);else{const s=ep(t,"height");s!==void 0&&(t.height=s)}return t}const w1=oC?{passive:!0}:!1;function KC(t,e,n){t&&t.addEventListener(e,n,w1)}function XC(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,w1)}function YC(t,e){const n=GC[t.type]||t.type,{x:i,y:o}=Ki(t,e);return{type:n,chart:e,native:t,x:i!==void 0?i:null,y:o!==void 0?o:null}}function Ma(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function ZC(t,e,n){const i=t.canvas,o=new MutationObserver(s=>{let r=!1;for(const a of s)r=r||Ma(a.addedNodes,i),r=r&&!Ma(a.removedNodes,i);r&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}function QC(t,e,n){const i=t.canvas,o=new MutationObserver(s=>{let r=!1;for(const a of s)r=r||Ma(a.removedNodes,i),r=r&&!Ma(a.addedNodes,i);r&&n()});return o.observe(document,{childList:!0,subtree:!0}),o}const fr=new Map;let mp=0;function x1(){const t=window.devicePixelRatio;t!==mp&&(mp=t,fr.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function MC(t,e){fr.size||window.addEventListener("resize",x1),fr.set(t,e)}function tT(t){fr.delete(t),fr.size||window.removeEventListener("resize",x1)}function eT(t,e,n){const i=t.canvas,o=i&&pd(i);if(!o)return;const s=e1((a,l)=>{const c=o.clientWidth;n(a,l),c