const Vt=globalThis||void 0||self;var Lc={},ve=Object.freeze({}),z=Array.isArray;function M(e){return e==null}function h(e){return e!=null}function ee(e){return e===!0}function Dc(e){return e===!1}function An(e){return typeof e=="string"||typeof e=="number"||typeof e=="symbol"||typeof e=="boolean"}function q(e){return typeof e=="function"}function ce(e){return e!==null&&typeof e=="object"}var Gi=Object.prototype.toString;function we(e){return Gi.call(e)==="[object Object]"}function Fc(e){return Gi.call(e)==="[object RegExp]"}function Bs(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function di(e){return h(e)&&typeof e.then=="function"&&typeof e.catch=="function"}function zc(e){return e==null?"":Array.isArray(e)||we(e)&&e.toString===Gi?JSON.stringify(e,Bc,2):String(e)}function Bc(e,t){return t&&t.__v_isRef?t.value:t}function bn(e){var t=parseFloat(e);return isNaN(t)?e:t}function Oe(e,t){for(var n=Object.create(null),o=e.split(","),i=0;i-1)return e.splice(o,1)}}var jc=Object.prototype.hasOwnProperty;function de(e,t){return jc.call(e,t)}function xt(e){var t=Object.create(null);return function(n){var o=t[n];return o||(t[n]=e(n))}}var Vc=/-(\w)/g,gt=xt(function(e){return e.replace(Vc,function(t,n){return n?n.toUpperCase():""})}),Uc=xt(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),Wc=/\B([A-Z])/g,kn=xt(function(e){return e.replace(Wc,"-$1").toLowerCase()});function Gc(e,t){function n(o){var i=arguments.length;return i?i>1?e.apply(t,arguments):e.call(t,o):e.call(t)}return n._length=e.length,n}function qc(e,t){return e.bind(t)}var Hs=Function.prototype.bind?qc:Gc;function pi(e,t){t=t||0;for(var n=e.length-t,o=new Array(n);n--;)o[n]=e[n+t];return o}function Z(e,t){for(var n in t)e[n]=t[n];return e}function js(e){for(var t={},n=0;n0,qs=Se&&Se.indexOf("edge/")>0;Se&&Se.indexOf("android")>0;var Jc=Se&&/iphone|ipad|ipod|ios/.test(Se),Gr=Se&&Se.match(/firefox\/(\d+)/),hi={}.watch,Ks=!1;if(_e)try{var qr={};Object.defineProperty(qr,"passive",{get:function(){Ks=!0}}),window.addEventListener("test-passive",null,qr)}catch{}var Bn,rt=function(){return Bn===void 0&&(!_e&&typeof Vt<"u"?Bn=Vt.process&&Lc.VUE_ENV==="server":Bn=!1),Bn},lo=_e&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function Ht(e){return typeof e=="function"&&/native code/.test(e.toString())}var Tn=typeof Symbol<"u"&&Ht(Symbol)&&typeof Reflect<"u"&&Ht(Reflect.ownKeys),wn;typeof Set<"u"&&Ht(Set)?wn=Set:wn=(function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(t){return this.set[t]===!0},e.prototype.add=function(t){this.set[t]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e})();var ye=null;function qi(){return ye&&{proxy:ye}}function tt(e){e===void 0&&(e=null),e||ye&&ye._scope.off(),ye=e,e&&e._scope.on()}var $e=(function(){function e(t,n,o,i,r,a,s,l){this.tag=t,this.data=n,this.children=o,this.text=i,this.elm=r,this.ns=void 0,this.context=a,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=n&&n.key,this.componentOptions=s,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=l,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(e.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),e})(),Ut=function(e){e===void 0&&(e="");var t=new $e;return t.text=e,t.isComment=!0,t};function Dt(e){return new $e(void 0,void 0,void 0,String(e))}function mi(e){var t=new $e(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var Qc=0,Qn=[],eu=function(){for(var e=0;e0&&(i=nl(i,"".concat(t||"","_").concat(o)),on(i[0])&&on(a)&&(n[r]=Dt(a.text+i[0].text),i.shift()),n.push.apply(n,i)):An(i)?on(a)?n[r]=Dt(a.text+i):i!==""&&n.push(Dt(i)):on(i)&&on(a)?n[r]=Dt(a.text+i.text):(ee(e._isVList)&&h(i.tag)&&M(i.key)&&h(t)&&(i.key="__vlist".concat(t,"_").concat(o,"__")),n.push(i)));return n}function vu(e,t){var n=null,o,i,r,a;if(z(e)||typeof e=="string")for(n=new Array(e.length),o=0,i=e.length;o0,a=t?!!t.$stable:!r,s=t&&t.$key;if(!t)i={};else{if(t._normalized)return t._normalized;if(a&&o&&o!==ve&&s===o.$key&&!r&&!o.$hasNormal)return o;i={};for(var l in t)t[l]&&l[0]!=="$"&&(i[l]=ku(e,n,l,t[l]))}for(var c in n)c in i||(i[c]=Tu(n,c));return t&&Object.isExtensible(t)&&(t._normalized=i),ge(i,"$stable",a),ge(i,"$key",s),ge(i,"$hasNormal",r),i}function ku(e,t,n,o){var i=function(){var r=ye;tt(e);var a=arguments.length?o.apply(null,arguments):o({});a=a&&typeof a=="object"&&!z(a)?[a]:Ji(a);var s=a&&a[0];return tt(r),a&&(!s||a.length===1&&s.isComment&&!$n(s))?void 0:a};return o.proxy&&Object.defineProperty(t,n,{get:i,enumerable:!0,configurable:!0}),i}function Tu(e,t){return function(){return e[t]}}function Eu(e){var t=e.$options,n=t.setup;if(n){var o=e._setupContext=Nu(e);tt(e),Xt();var i=Ue(n,null,[e._props||Qs({}),o],e,"setup");if(Jt(),tt(),q(i))t.render=i;else if(ce(i))if(e._setupState=i,i.__sfc){var r=e._setupProxy={};for(var a in i)a!=="__sfc"&&vi(r,i,a)}else for(var a in i)Gs(a)||vi(e,i,a)}}function Nu(e){return{get attrs(){if(!e._attrsProxy){var t=e._attrsProxy={};ge(t,"_v_attr_proxy",!0),uo(t,e.$attrs,ve,e,"$attrs")}return e._attrsProxy},get listeners(){if(!e._listenersProxy){var t=e._listenersProxy={};uo(t,e.$listeners,ve,e,"$listeners")}return e._listenersProxy},get slots(){return Pu(e)},emit:Hs(e.$emit,e),expose:function(t){t&&Object.keys(t).forEach(function(n){return vi(e,t,n)})}}}function uo(e,t,n,o,i){var r=!1;for(var a in t)a in e?t[a]!==n[a]&&(r=!0):(r=!0,Ou(e,a,o,i));for(var a in e)a in t||(r=!0,delete e[a]);return r}function Ou(e,t,n,o){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){return n[o][t]}})}function Pu(e){return e._slotsProxy||al(e._slotsProxy={},e.$scopedSlots),e._slotsProxy}function al(e,t){for(var n in t)e[n]=t[n];for(var n in e)n in t||delete e[n]}function Iu(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,o=n&&n.context;e.$slots=Qi(t._renderChildren,o),e.$scopedSlots=n?hn(e.$parent,n.data.scopedSlots,e.$slots):ve,e._c=function(r,a,s,l){return po(e,r,a,s,l,!1)},e.$createElement=function(r,a,s,l){return po(e,r,a,s,l,!0)};var i=n&&n.data;ot(e,"$attrs",i&&i.attrs||ve,null,!0),ot(e,"$listeners",t._parentListeners||ve,null,!0)}var no=null;function Mu(e){rl(e.prototype),e.prototype.$nextTick=function(t){return Oo(t,this)},e.prototype._render=function(){var t=this,n=t.$options,o=n.render,i=n._parentVnode;i&&t._isMounted&&(t.$scopedSlots=hn(t.$parent,i.data.scopedSlots,t.$slots,t.$scopedSlots),t._slotsProxy&&al(t._slotsProxy,t.$scopedSlots)),t.$vnode=i;var r=ye,a=no,s;try{tt(t),no=t,s=o.call(t._renderProxy,t.$createElement)}catch(l){yt(l,t,"render"),s=t._vnode}finally{no=a,tt(r)}return z(s)&&s.length===1&&(s=s[0]),s instanceof $e||(s=Ut()),s.parent=i,s}}function Ko(e,t){return(e.__esModule||Tn&&e[Symbol.toStringTag]==="Module")&&(e=e.default),ce(e)?t.extend(e):e}function Ru(e,t,n,o,i){var r=Ut();return r.asyncFactory=e,r.asyncMeta={data:t,context:n,children:o,tag:i},r}function Lu(e,t){if(ee(e.error)&&h(e.errorComp))return e.errorComp;if(h(e.resolved))return e.resolved;var n=no;if(n&&h(e.owners)&&e.owners.indexOf(n)===-1&&e.owners.push(n),ee(e.loading)&&h(e.loadingComp))return e.loadingComp;if(n&&!h(e.owners)){var o=e.owners=[n],i=!0,r=null,a=null;n.$on("hook:destroyed",function(){return it(o,n)});var s=function(m){for(var v=0,y=o.length;v1?pi(i):i;for(var r=pi(arguments,1),a='event handler for "'.concat(n,'"'),s=0,l=i.length;sdocument.createEvent("Event").timeStamp&&($i=function(){return Yo.now()})}var od=function(e,t){if(e.post){if(!t.post)return 1}else if(t.post)return-1;return e.id-t.id};function id(){vl=$i(),nr=!0;var e,t;for(ze.sort(od),Ft=0;FtFt&&ze[n].id>e.id;)n--;ze.splice(n+1,0,e)}wi||(wi=!0,Oo(id))}}function ld(e){var t=e.$options.provide;if(t){var n=q(t)?t.call(e):t;if(!ce(n))return;for(var o=fu(e),i=Tn?Reflect.ownKeys(n):Object.keys(n),r=0;r-1){if(r&&!de(i,"default"))a=!1;else if(a===""||a===kn(e)){var l=ha(String,i.type);(l<0||s-1)return this;var o=pi(arguments,1);return o.unshift(this),q(t.install)?t.install.apply(t,o):q(t)&&t.apply(null,o),n.push(t),this}}function Fd(e){e.mixin=function(t){return this.options=bt(this.options,t),this}}function zd(e){e.cid=0;var t=1;e.extend=function(n){n=n||{};var o=this,i=o.cid,r=n._Ctor||(n._Ctor={});if(r[i])return r[i];var a=ho(n)||ho(o.options),s=function(l){this._init(l)};return s.prototype=Object.create(o.prototype),s.prototype.constructor=s,s.cid=t++,s.options=bt(o.options,n),s.super=o,s.options.props&&Bd(s),s.options.computed&&Hd(s),s.extend=o.extend,s.mixin=o.mixin,s.use=o.use,To.forEach(function(l){s[l]=o[l]}),a&&(s.options.components[a]=s),s.superOptions=o.options,s.extendOptions=n,s.sealedOptions=Z({},s.options),r[i]=s,s}}function Bd(e){var t=e.options.props;for(var n in t)ar(e.prototype,"_props",n)}function Hd(e){var t=e.options.computed;for(var n in t)yl(e.prototype,n,t[n])}function jd(e){To.forEach(function(t){e[t]=function(n,o){return o?(t==="component"&&we(o)&&(o.name=o.name||n,o=this.options._base.extend(o)),t==="directive"&&q(o)&&(o={bind:o,update:o}),this.options[t+"s"][n]=o,o):this.options[t+"s"][n]}})}function ga(e){return e&&(ho(e.Ctor.options)||e.tag)}function Vn(e,t){return z(e)?e.indexOf(t)>-1:typeof e=="string"?e.split(",").indexOf(t)>-1:Fc(e)?e.test(t):!1}function _a(e,t){var n=e.cache,o=e.keys,i=e._vnode,r=e.$vnode;for(var a in n){var s=n[a];if(s){var l=s.name;l&&!t(l)&&Ai(n,a,o,i)}}r.componentOptions.children=void 0}function Ai(e,t,n,o){var i=e[t];i&&(!o||i.tag!==o.tag)&&i.componentInstance.$destroy(),e[t]=null,it(n,t)}var ya=[String,RegExp,Array],Vd={name:"keep-alive",abstract:!0,props:{include:ya,exclude:ya,max:[String,Number]},methods:{cacheVNode:function(){var e=this,t=e.cache,n=e.keys,o=e.vnodeToCache,i=e.keyToCache;if(o){var r=o.tag,a=o.componentInstance,s=o.componentOptions;t[i]={name:ga(s),tag:r,componentInstance:a},n.push(i),this.max&&n.length>parseInt(this.max)&&Ai(t,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Ai(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",function(t){_a(e,function(n){return Vn(t,n)})}),this.$watch("exclude",function(t){_a(e,function(n){return!Vn(t,n)})})},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=sl(e),n=t&&t.componentOptions;if(n){var o=ga(n),i=this,r=i.include,a=i.exclude;if(r&&(!o||!Vn(r,o))||a&&o&&Vn(a,o))return t;var s=this,l=s.cache,c=s.keys,p=t.key==null?n.Ctor.cid+(n.tag?"::".concat(n.tag):""):t.key;l[p]?(t.componentInstance=l[p].componentInstance,it(c,p),c.push(p)):(this.vnodeToCache=t,this.keyToCache=p),t.data.keepAlive=!0}return t||e&&e[0]}},Ud={KeepAlive:Vd};function Wd(e){var t={};t.get=function(){return xe},Object.defineProperty(e,"config",t),e.util={warn:md,extend:Z,mergeOptions:bt,defineReactive:ot},e.set=Yi,e.delete=Xs,e.nextTick=Oo,e.observable=function(n){return Ve(n),n},e.options=Object.create(null),To.forEach(function(n){e.options[n+"s"]=Object.create(null)}),e.options._base=e,Z(e.options.components,Ud),Dd(e),Fd(e),zd(e),jd(e)}Wd(V),Object.defineProperty(V.prototype,"$isServer",{get:rt}),Object.defineProperty(V.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(V,"FunctionalRenderContext",{value:or}),V.version=Wu;var Gd=Oe("style,class"),qd=Oe("input,textarea,option,select,progress"),Kd=function(e,t,n){return n==="value"&&qd(e)&&t!=="button"||n==="selected"&&e==="option"||n==="checked"&&e==="input"||n==="muted"&&e==="video"},bl=Oe("contenteditable,draggable,spellcheck"),Yd=Oe("events,caret,typing,plaintext-only"),Zd=function(e,t){return vo(t)||t==="false"?"false":e==="contenteditable"&&Yd(t)?t:"true"},Xd=Oe("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),ki="http://www.w3.org/1999/xlink",lr=function(e){return e.charAt(5)===":"&&e.slice(0,5)==="xlink"},wl=function(e){return lr(e)?e.slice(6,e.length):""},vo=function(e){return e==null||e===!1};function Jd(e){for(var t=e.data,n=e,o=e;h(o.componentInstance);)o=o.componentInstance._vnode,o&&o.data&&(t=ba(o.data,t));for(;h(n=n.parent);)n&&n.data&&(t=ba(t,n.data));return Qd(t.staticClass,t.class)}function ba(e,t){return{staticClass:cr(e.staticClass,t.staticClass),class:h(e.class)?[e.class,t.class]:t.class}}function Qd(e,t){return h(e)||h(t)?cr(e,ur(t)):""}function cr(e,t){return e?t?e+" "+t:e:t||""}function ur(e){return Array.isArray(e)?ep(e):ce(e)?tp(e):typeof e=="string"?e:""}function ep(e){for(var t="",n,o=0,i=e.length;o-1?Un[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Un[e]=/HTMLUnknownElement/.test(t.toString())}var Ti=Oe("text,number,password,search,email,tel,url");function ap(e){if(typeof e=="string"){var t=document.querySelector(e);return t||document.createElement("div")}else return e}function sp(e,t){var n=document.createElement(e);return e!=="select"||t.data&&t.data.attrs&&t.data.attrs.multiple!==void 0&&n.setAttribute("multiple","multiple"),n}function lp(e,t){return document.createElementNS(np[e],t)}function cp(e){return document.createTextNode(e)}function up(e){return document.createComment(e)}function dp(e,t,n){e.insertBefore(t,n)}function pp(e,t){e.removeChild(t)}function fp(e,t){e.appendChild(t)}function hp(e){return e.parentNode}function mp(e){return e.nextSibling}function vp(e){return e.tagName}function gp(e,t){e.textContent=t}function _p(e,t){e.setAttribute(t,"")}var yp=Object.freeze({__proto__:null,createElement:sp,createElementNS:lp,createTextNode:cp,createComment:up,insertBefore:dp,removeChild:pp,appendChild:fp,parentNode:hp,nextSibling:mp,tagName:vp,setTextContent:gp,setStyleScope:_p}),bp={create:function(e,t){zt(t)},update:function(e,t){e.data.ref!==t.data.ref&&(zt(e,!0),zt(t))},destroy:function(e){zt(e,!0)}};function zt(e,t){var n=e.data.ref;if(h(n)){var o=e.context,i=e.componentInstance||e.elm,r=t?null:i,a=t?void 0:i;if(q(n)){Ue(n,o,[r],o,"template ref function");return}var s=e.data.refInFor,l=typeof n=="string"||typeof n=="number",c=pe(n),p=o.$refs;if(l||c){if(s){var m=l?p[n]:n.value;t?z(m)&&it(m,i):z(m)?m.includes(i)||m.push(i):l?(p[n]=[i],wa(o,n,p[n])):n.value=[i]}else if(l){if(t&&p[n]!==i)return;p[n]=a,wa(o,n,r)}else if(c){if(t&&n.value!==i)return;n.value=r}}}}function wa(e,t,n){var o=e._setupState;o&&de(o,t)&&(pe(o[t])?o[t].value=n:o[t]=n)}var et=new $e("",{},[]),rn=["create","activate","update","remove","destroy"];function dt(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&h(e.data)===h(t.data)&&wp(e,t)||ee(e.isAsyncPlaceholder)&&M(t.asyncFactory.error))}function wp(e,t){if(e.tag!=="input")return!0;var n,o=h(n=e.data)&&h(n=n.attrs)&&n.type,i=h(n=t.data)&&h(n=n.attrs)&&n.type;return o===i||Ti(o)&&Ti(i)}function $p(e,t,n){var o,i,r={};for(o=t;o<=n;++o)i=e[o].key,h(i)&&(r[i]=o);return r}function Cp(e){var t,n,o={},i=e.modules,r=e.nodeOps;for(t=0;tI?(en=M(g[W+1])?null:g[W+1].elm,$(u,en,g,E,W,w)):E>W&&L(f,N,I)}function X(u,f,g,w){for(var A=g;A-1?Sa(e,t,n):Xd(t)?vo(n)?e.removeAttribute(t):(n=t==="allowfullscreen"&&e.tagName==="EMBED"?"true":t,e.setAttribute(t,n)):bl(t)?e.setAttribute(t,Zd(t,n)):lr(t)?vo(n)?e.removeAttributeNS(ki,wl(t)):e.setAttributeNS(ki,t,n):Sa(e,t,n)}function Sa(e,t,n){if(vo(n))e.removeAttribute(t);else{if(Yt&&!Zt&&e.tagName==="TEXTAREA"&&t==="placeholder"&&n!==""&&!e.__ieph){var o=function(i){i.stopImmediatePropagation(),e.removeEventListener("input",o)};e.addEventListener("input",o),e.__ieph=!0}e.setAttribute(t,n)}}var Ep={create:Ca,update:Ca};function Aa(e,t){var n=t.elm,o=t.data,i=e.data;if(!(M(o.staticClass)&&M(o.class)&&(M(i)||M(i.staticClass)&&M(i.class)))){var r=Jd(t),a=n._transitionClasses;h(a)&&(r=cr(r,ur(a))),r!==n._prevClass&&(n.setAttribute("class",r),n._prevClass=r)}}var Np={create:Aa,update:Aa},Xo="__r",Jo="__c";function Op(e){if(h(e[Xo])){var t=Yt?"change":"input";e[t]=[].concat(e[Xo],e[t]||[]),delete e[Xo]}h(e[Jo])&&(e.change=[].concat(e[Jo],e.change||[]),delete e[Jo])}var Sn;function Pp(e,t,n){var o=Sn;return function i(){var r=t.apply(null,arguments);r!==null&&Cl(e,i,n,o)}}var Ip=_i&&!(Gr&&Number(Gr[1])<=53);function Mp(e,t,n,o){if(Ip){var i=vl,r=t;t=r._wrapper=function(a){if(a.target===a.currentTarget||a.timeStamp>=i||a.timeStamp<=0||a.target.ownerDocument!==document)return r.apply(this,arguments)}}Sn.addEventListener(e,t,Ks?{capture:n,passive:o}:n)}function Cl(e,t,n,o){(o||Sn).removeEventListener(e,t._wrapper||t,n)}function Qo(e,t){if(!(M(e.data.on)&&M(t.data.on))){var n=t.data.on||{},o=e.data.on||{};Sn=t.elm||e.elm,Op(n),tl(n,o,Mp,Cl,Pp,t.context),Sn=void 0}}var Rp={create:Qo,update:Qo,destroy:function(e){return Qo(e,et)}},Wn;function ka(e,t){if(!(M(e.data.domProps)&&M(t.data.domProps))){var n,o,i=t.elm,r=e.data.domProps||{},a=t.data.domProps||{};(h(a.__ob__)||ee(a._v_attr_proxy))&&(a=t.data.domProps=Z({},a));for(n in r)n in a||(i[n]="");for(n in a){if(o=a[n],n==="textContent"||n==="innerHTML"){if(t.children&&(t.children.length=0),o===r[n])continue;i.childNodes.length===1&&i.removeChild(i.childNodes[0])}if(n==="value"&&i.tagName!=="PROGRESS"){i._value=o;var s=M(o)?"":String(o);Lp(i,s)&&(i.value=s)}else if(n==="innerHTML"&&dr(i.tagName)&&M(i.innerHTML)){Wn=Wn||document.createElement("div"),Wn.innerHTML="".concat(o,"");for(var l=Wn.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;l.firstChild;)i.appendChild(l.firstChild)}else if(o!==r[n])try{i[n]=o}catch{}}}}function Lp(e,t){return!e.composing&&(e.tagName==="OPTION"||Dp(e,t)||Fp(e,t))}function Dp(e,t){var n=!0;try{n=document.activeElement!==e}catch{}return n&&e.value!==t}function Fp(e,t){var n=e.value,o=e._vModifiers;if(h(o)){if(o.number)return bn(n)!==bn(t);if(o.trim)return n.trim()!==t.trim()}return n!==t}var zp={create:ka,update:ka},Bp=xt(function(e){var t={},n=/;(?![^(]*\))/g,o=/:(.+)/;return e.split(n).forEach(function(i){if(i){var r=i.split(o);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t});function ei(e){var t=xl(e.style);return e.staticStyle?Z(e.staticStyle,t):t}function xl(e){return Array.isArray(e)?js(e):typeof e=="string"?Bp(e):e}function Hp(e,t){for(var n={},o,i=e;i.componentInstance;)i=i.componentInstance._vnode,i&&i.data&&(o=ei(i.data))&&Z(n,o);(o=ei(e.data))&&Z(n,o);for(var r=e;r=r.parent;)r.data&&(o=ei(r.data))&&Z(n,o);return n}var jp=/^--/,Ta=/\s*!important$/,Ea=function(e,t,n){if(jp.test(t))e.style.setProperty(t,n);else if(Ta.test(n))e.style.setProperty(kn(t),n.replace(Ta,""),"important");else{var o=Vp(t);if(Array.isArray(n))for(var i=0,r=n.length;i-1?t.split(Sl).forEach(function(o){return e.classList.add(o)}):e.classList.add(t);else{var n=" ".concat(e.getAttribute("class")||""," ");n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function kl(e,t){if(!(!t||!(t=t.trim())))if(e.classList)t.indexOf(" ")>-1?t.split(Sl).forEach(function(i){return e.classList.remove(i)}):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" ".concat(e.getAttribute("class")||""," "),o=" "+t+" ";n.indexOf(o)>=0;)n=n.replace(o," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function Tl(e){if(e){if(typeof e=="object"){var t={};return e.css!==!1&&Z(t,Pa(e.name||"v")),Z(t,e),t}else if(typeof e=="string")return Pa(e)}}var Pa=xt(function(e){return{enterClass:"".concat(e,"-enter"),enterToClass:"".concat(e,"-enter-to"),enterActiveClass:"".concat(e,"-enter-active"),leaveClass:"".concat(e,"-leave"),leaveToClass:"".concat(e,"-leave-to"),leaveActiveClass:"".concat(e,"-leave-active")}}),El=_e&&!Zt,Rt="transition",ti="animation",io="transition",go="transitionend",Ei="animation",Nl="animationend";El&&(window.ontransitionend===void 0&&window.onwebkittransitionend!==void 0&&(io="WebkitTransition",go="webkitTransitionEnd"),window.onanimationend===void 0&&window.onwebkitanimationend!==void 0&&(Ei="WebkitAnimation",Nl="webkitAnimationEnd"));var Ia=_e?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Ol(e){Ia(function(){Ia(e)})}function vt(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Al(e,t))}function Be(e,t){e._transitionClasses&&it(e._transitionClasses,t),kl(e,t)}function Pl(e,t,n){var o=Il(e,t),i=o.type,r=o.timeout,a=o.propCount;if(!i)return n();var s=i===Rt?go:Nl,l=0,c=function(){e.removeEventListener(s,p),n()},p=function(m){m.target===e&&++l>=a&&c()};setTimeout(function(){l0&&(c=Rt,p=r,m=i.length):t===ti?l>0&&(c=ti,p=l,m=s.length):(p=Math.max(r,l),c=p>0?r>l?Rt:ti:null,m=c?c===Rt?i.length:s.length:0);var v=c===Rt&&Wp.test(n[io+"Property"]);return{type:c,timeout:p,propCount:m,hasTransform:v}}function Ma(e,t){for(;e.length1}function La(e,t){t.data.show!==!0&&Ni(t)}var Gp=_e?{create:La,activate:La,remove:function(e,t){e.data.show!==!0?Ml(e,t):t()}}:{},qp=[Ep,Np,Rp,zp,Up,Gp],Kp=qp.concat(Tp),Yp=Cp({nodeOps:yp,modules:Kp});Zt&&document.addEventListener("selectionchange",function(){var e=document.activeElement;e&&e.vmodel&&fr(e,"input")});var Ll={inserted:function(e,t,n,o){n.tag==="select"?(o.elm&&!o.elm._vOptions?Qe(n,"postpatch",function(){Ll.componentUpdated(e,t,n)}):Da(e,t,n.context),e._vOptions=[].map.call(e.options,_o)):(n.tag==="textarea"||Ti(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",Zp),e.addEventListener("compositionend",Ba),e.addEventListener("change",Ba),Zt&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if(n.tag==="select"){Da(e,t,n.context);var o=e._vOptions,i=e._vOptions=[].map.call(e.options,_o);if(i.some(function(a,s){return!_t(a,o[s])})){var r=e.multiple?t.value.some(function(a){return za(a,i)}):t.value!==t.oldValue&&za(t.value,i);r&&fr(e,"change")}}}};function Da(e,t,n){Fa(e,t),(Yt||qs)&&setTimeout(function(){Fa(e,t)},0)}function Fa(e,t,n){var o=t.value,i=e.multiple;if(!(i&&!Array.isArray(o))){for(var r,a,s=0,l=e.options.length;s-1,a.selected!==r&&(a.selected=r);else if(_t(_o(a),o)){e.selectedIndex!==s&&(e.selectedIndex=s);return}i||(e.selectedIndex=-1)}}function za(e,t){return t.every(function(n){return!_t(n,e)})}function _o(e){return"_value"in e?e._value:e.value}function Zp(e){e.target.composing=!0}function Ba(e){e.target.composing&&(e.target.composing=!1,fr(e.target,"input"))}function fr(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Oi(e){return e.componentInstance&&(!e.data||!e.data.transition)?Oi(e.componentInstance._vnode):e}var Xp={bind:function(e,t,n){var o=t.value;n=Oi(n);var i=n.data&&n.data.transition,r=e.__vOriginalDisplay=e.style.display==="none"?"":e.style.display;o&&i?(n.data.show=!0,Ni(n,function(){e.style.display=r})):e.style.display=o?r:"none"},update:function(e,t,n){var o=t.value,i=t.oldValue;if(!o!=!i){n=Oi(n);var r=n.data&&n.data.transition;r?(n.data.show=!0,o?Ni(n,function(){e.style.display=e.__vOriginalDisplay}):Ml(n,function(){e.style.display="none"})):e.style.display=o?e.__vOriginalDisplay:"none"}},unbind:function(e,t,n,o,i){i||(e.style.display=e.__vOriginalDisplay)}},Jp={model:Ll,show:Xp},Dl={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Pi(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Pi(sl(t.children)):e}function Fl(e){var t={},n=e.$options;for(var o in n.propsData)t[o]=e[o];var i=n._parentListeners;for(var o in i)t[gt(o)]=i[o];return t}function Ha(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function Qp(e){for(;e=e.parent;)if(e.data.transition)return!0}function ef(e,t){return t.key===e.key&&t.tag===e.tag}var tf=function(e){return e.tag||$n(e)},nf=function(e){return e.name==="show"},of={name:"transition",props:Dl,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(tf),!!n.length)){var o=this.mode,i=n[0];if(Qp(this.$vnode))return i;var r=Pi(i);if(!r)return i;if(this._leaving)return Ha(e,i);var a="__transition-".concat(this._uid,"-");r.key=r.key==null?r.isComment?a+"comment":a+r.tag:An(r.key)?String(r.key).indexOf(a)===0?r.key:a+r.key:r.key;var s=(r.data||(r.data={})).transition=Fl(this),l=this._vnode,c=Pi(l);if(r.data.directives&&r.data.directives.some(nf)&&(r.data.show=!0),c&&c.data&&!ef(r,c)&&!$n(c)&&!(c.componentInstance&&c.componentInstance._vnode.isComment)){var p=c.data.transition=Z({},s);if(o==="out-in")return this._leaving=!0,Qe(p,"afterLeave",function(){t._leaving=!1,t.$forceUpdate()}),Ha(e,i);if(o==="in-out"){if($n(r))return l;var m,v=function(){m()};Qe(s,"afterEnter",v),Qe(s,"enterCancelled",v),Qe(p,"delayLeave",function(y){m=y})}}return i}}},zl=Z({tag:String,moveClass:String},Dl);delete zl.mode;var rf={props:zl,beforeMount:function(){var e=this,t=this._update;this._update=function(n,o){var i=fl(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,o)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),o=this.prevChildren=this.children,i=this.$slots.default||[],r=this.children=[],a=Fl(this),s=0;s1?n-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:ro;ja&&ja(e,null);let o=t.length;for(;o--;){let i=t[o];if(typeof i=="string"){const r=n(i);r!==i&&(pf(t)||(t[o]=r),i=r)}e[i]=!0}return e}function bf(e){for(let t=0;t/gm),Sf=Ae(/\$\{[\w\W]*/gm),Af=Ae(/^data-[\-\w.\u00B7-\uFFFF]+$/),kf=Ae(/^aria-[\-\w]+$/),jl=Ae(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Tf=Ae(/^(?:\w+script|data):/i),Ef=Ae(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Vl=Ae(/^html$/i),Nf=Ae(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ya=Object.freeze({__proto__:null,ARIA_ATTR:kf,ATTR_WHITESPACE:Ef,CUSTOM_ELEMENT:Nf,DATA_ATTR:Af,DOCTYPE_NAME:Vl,ERB_EXPR:xf,IS_ALLOWED_URI:jl,IS_SCRIPT_OR_DATA:Tf,MUSTACHE_EXPR:Cf,TMPLIT_EXPR:Sf});const dn={element:1,text:3,progressingInstruction:7,comment:8,document:9},Of=function(){return typeof window>"u"?null:window},Pf=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML(r){return r},createScriptURL(r){return r}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},Za=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Ul(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Of();const t=d=>Ul(d);if(t.version="3.2.6",t.removed=[],!e||!e.document||e.document.nodeType!==dn.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const o=n,i=o.currentScript,{DocumentFragment:r,HTMLTemplateElement:a,Node:s,Element:l,NodeFilter:c,NamedNodeMap:p=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:m,DOMParser:v,trustedTypes:y}=e,S=l.prototype,O=un(S,"cloneNode"),x=un(S,"remove"),P=un(S,"nextSibling"),$=un(S,"childNodes"),R=un(S,"parentNode");if(typeof a=="function"){const d=n.createElement("template");d.content&&d.content.ownerDocument&&(n=d.content.ownerDocument)}let L,Y="";const{implementation:ne,createNodeIterator:X,createDocumentFragment:G,getElementsByTagName:Q}=n,{importNode:b}=o;let _=Za();t.isSupported=typeof Bl=="function"&&typeof R=="function"&&ne&&ne.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:u,ERB_EXPR:f,TMPLIT_EXPR:g,DATA_ATTR:w,ARIA_ATTR:A,IS_SCRIPT_OR_DATA:N,ATTR_WHITESPACE:E,CUSTOM_ELEMENT:I}=Ya;let{IS_ALLOWED_URI:D}=Ya,T=null;const W=B({},[...Wa,...oi,...ii,...ri,...Ga]);let F=null;const oe=B({},[...qa,...ai,...Ka,...Kn]);let j=Object.seal(Hl(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),be=null,Ce=null,en=!0,lt=!0,Ar=!1,kr=!0,kt=!1,Pn=!0,ct=!1,zo=!1,Bo=!1,Tt=!1,In=!1,Mn=!1,Tr=!0,Er=!1;const kc="user-content-";let Ho=!0,tn=!1,Et={},Nt=null;const Nr=B({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Or=null;const Pr=B({},["audio","video","img","source","image","track"]);let jo=null;const Ir=B({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Rn="http://www.w3.org/1998/Math/MathML",Ln="http://www.w3.org/2000/svg",Re="http://www.w3.org/1999/xhtml";let Ot=Re,Vo=!1,Uo=null;const Tc=B({},[Rn,Ln,Re],ni);let Dn=B({},["mi","mo","mn","ms","mtext"]),Fn=B({},["annotation-xml"]);const Ec=B({},["title","style","font","a","script"]);let nn=null;const Nc=["application/xhtml+xml","text/html"],Oc="text/html";let ie=null,Pt=null;const Pc=n.createElement("form"),Mr=function(d){return d instanceof RegExp||d instanceof Function},Wo=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Pt&&Pt===d)){if((!d||typeof d!="object")&&(d={}),d=Fe(d),nn=Nc.indexOf(d.PARSER_MEDIA_TYPE)===-1?Oc:d.PARSER_MEDIA_TYPE,ie=nn==="application/xhtml+xml"?ni:ro,T=Te(d,"ALLOWED_TAGS")?B({},d.ALLOWED_TAGS,ie):W,F=Te(d,"ALLOWED_ATTR")?B({},d.ALLOWED_ATTR,ie):oe,Uo=Te(d,"ALLOWED_NAMESPACES")?B({},d.ALLOWED_NAMESPACES,ni):Tc,jo=Te(d,"ADD_URI_SAFE_ATTR")?B(Fe(Ir),d.ADD_URI_SAFE_ATTR,ie):Ir,Or=Te(d,"ADD_DATA_URI_TAGS")?B(Fe(Pr),d.ADD_DATA_URI_TAGS,ie):Pr,Nt=Te(d,"FORBID_CONTENTS")?B({},d.FORBID_CONTENTS,ie):Nr,be=Te(d,"FORBID_TAGS")?B({},d.FORBID_TAGS,ie):Fe({}),Ce=Te(d,"FORBID_ATTR")?B({},d.FORBID_ATTR,ie):Fe({}),Et=Te(d,"USE_PROFILES")?d.USE_PROFILES:!1,en=d.ALLOW_ARIA_ATTR!==!1,lt=d.ALLOW_DATA_ATTR!==!1,Ar=d.ALLOW_UNKNOWN_PROTOCOLS||!1,kr=d.ALLOW_SELF_CLOSE_IN_ATTR!==!1,kt=d.SAFE_FOR_TEMPLATES||!1,Pn=d.SAFE_FOR_XML!==!1,ct=d.WHOLE_DOCUMENT||!1,Tt=d.RETURN_DOM||!1,In=d.RETURN_DOM_FRAGMENT||!1,Mn=d.RETURN_TRUSTED_TYPE||!1,Bo=d.FORCE_BODY||!1,Tr=d.SANITIZE_DOM!==!1,Er=d.SANITIZE_NAMED_PROPS||!1,Ho=d.KEEP_CONTENT!==!1,tn=d.IN_PLACE||!1,D=d.ALLOWED_URI_REGEXP||jl,Ot=d.NAMESPACE||Re,Dn=d.MATHML_TEXT_INTEGRATION_POINTS||Dn,Fn=d.HTML_INTEGRATION_POINTS||Fn,j=d.CUSTOM_ELEMENT_HANDLING||{},d.CUSTOM_ELEMENT_HANDLING&&Mr(d.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(j.tagNameCheck=d.CUSTOM_ELEMENT_HANDLING.tagNameCheck),d.CUSTOM_ELEMENT_HANDLING&&Mr(d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(j.attributeNameCheck=d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),d.CUSTOM_ELEMENT_HANDLING&&typeof d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(j.allowCustomizedBuiltInElements=d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),kt&&(lt=!1),In&&(Tt=!0),Et&&(T=B({},Ga),F=[],Et.html===!0&&(B(T,Wa),B(F,qa)),Et.svg===!0&&(B(T,oi),B(F,ai),B(F,Kn)),Et.svgFilters===!0&&(B(T,ii),B(F,ai),B(F,Kn)),Et.mathMl===!0&&(B(T,ri),B(F,Ka),B(F,Kn))),d.ADD_TAGS&&(T===W&&(T=Fe(T)),B(T,d.ADD_TAGS,ie)),d.ADD_ATTR&&(F===oe&&(F=Fe(F)),B(F,d.ADD_ATTR,ie)),d.ADD_URI_SAFE_ATTR&&B(jo,d.ADD_URI_SAFE_ATTR,ie),d.FORBID_CONTENTS&&(Nt===Nr&&(Nt=Fe(Nt)),B(Nt,d.FORBID_CONTENTS,ie)),Ho&&(T["#text"]=!0),ct&&B(T,["html","head","body"]),T.table&&(B(T,["tbody"]),delete be.tbody),d.TRUSTED_TYPES_POLICY){if(typeof d.TRUSTED_TYPES_POLICY.createHTML!="function")throw cn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof d.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw cn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');L=d.TRUSTED_TYPES_POLICY,Y=L.createHTML("")}else L===void 0&&(L=Pf(y,i)),L!==null&&typeof Y=="string"&&(Y=L.createHTML(""));fe&&fe(d),Pt=d}},Rr=B({},[...oi,...ii,...wf]),Lr=B({},[...ri,...$f]),Ic=function(d){let k=R(d);(!k||!k.tagName)&&(k={namespaceURI:Ot,tagName:"template"});const C=ro(d.tagName),U=ro(k.tagName);return Uo[d.namespaceURI]?d.namespaceURI===Ln?k.namespaceURI===Re?C==="svg":k.namespaceURI===Rn?C==="svg"&&(U==="annotation-xml"||Dn[U]):!!Rr[C]:d.namespaceURI===Rn?k.namespaceURI===Re?C==="math":k.namespaceURI===Ln?C==="math"&&Fn[U]:!!Lr[C]:d.namespaceURI===Re?k.namespaceURI===Ln&&!Fn[U]||k.namespaceURI===Rn&&!Dn[U]?!1:!Lr[C]&&(Ec[C]||!Rr[C]):!!(nn==="application/xhtml+xml"&&Uo[d.namespaceURI]):!1},ut=function(d){sn(t.removed,{element:d});try{R(d).removeChild(d)}catch{x(d)}},It=function(d,k){try{sn(t.removed,{attribute:k.getAttributeNode(d),from:k})}catch{sn(t.removed,{attribute:null,from:k})}if(k.removeAttribute(d),d==="is")if(Tt||In)try{ut(k)}catch{}else try{k.setAttribute(d,"")}catch{}},Dr=function(d){let k=null,C=null;if(Bo)d=""+d;else{const te=Ua(d,/^[\r\n\t ]+/);C=te&&te[0]}nn==="application/xhtml+xml"&&Ot===Re&&(d=''+d+"");const U=L?L.createHTML(d):d;if(Ot===Re)try{k=new v().parseFromString(U,nn)}catch{}if(!k||!k.documentElement){k=ne.createDocument(Ot,"template",null);try{k.documentElement.innerHTML=Vo?Y:U}catch{}}const re=k.body||k.documentElement;return d&&C&&re.insertBefore(n.createTextNode(C),re.childNodes[0]||null),Ot===Re?Q.call(k,ct?"html":"body")[0]:ct?k.documentElement:re},Fr=function(d){return X.call(d.ownerDocument||d,d,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Go=function(d){return d instanceof m&&(typeof d.nodeName!="string"||typeof d.textContent!="string"||typeof d.removeChild!="function"||!(d.attributes instanceof p)||typeof d.removeAttribute!="function"||typeof d.setAttribute!="function"||typeof d.namespaceURI!="string"||typeof d.insertBefore!="function"||typeof d.hasChildNodes!="function")},zr=function(d){return typeof s=="function"&&d instanceof s};function Le(d,k,C){qn(d,U=>{U.call(t,k,C,Pt)})}const Br=function(d){let k=null;if(Le(_.beforeSanitizeElements,d,null),Go(d))return ut(d),!0;const C=ie(d.nodeName);if(Le(_.uponSanitizeElement,d,{tagName:C,allowedTags:T}),Pn&&d.hasChildNodes()&&!zr(d.firstElementChild)&&ue(/<[/\w!]/g,d.innerHTML)&&ue(/<[/\w!]/g,d.textContent)||d.nodeType===dn.progressingInstruction||Pn&&d.nodeType===dn.comment&&ue(/<[/\w]/g,d.data))return ut(d),!0;if(!T[C]||be[C]){if(!be[C]&&jr(C)&&(j.tagNameCheck instanceof RegExp&&ue(j.tagNameCheck,C)||j.tagNameCheck instanceof Function&&j.tagNameCheck(C)))return!1;if(Ho&&!Nt[C]){const U=R(d)||d.parentNode,re=$(d)||d.childNodes;if(re&&U){const te=re.length;for(let De=te-1;De>=0;--De){const ke=O(re[De],!0);ke.__removalCount=(d.__removalCount||0)+1,U.insertBefore(ke,P(d))}}}return ut(d),!0}return d instanceof l&&!Ic(d)||(C==="noscript"||C==="noembed"||C==="noframes")&&ue(/<\/no(script|embed|frames)/i,d.innerHTML)?(ut(d),!0):(kt&&d.nodeType===dn.text&&(k=d.textContent,qn([u,f,g],U=>{k=ln(k,U," ")}),d.textContent!==k&&(sn(t.removed,{element:d.cloneNode()}),d.textContent=k)),Le(_.afterSanitizeElements,d,null),!1)},Hr=function(d,k,C){if(Tr&&(k==="id"||k==="name")&&(C in n||C in Pc))return!1;if(!(lt&&!Ce[k]&&ue(w,k))&&!(en&&ue(A,k))){if(!F[k]||Ce[k]){if(!(jr(d)&&(j.tagNameCheck instanceof RegExp&&ue(j.tagNameCheck,d)||j.tagNameCheck instanceof Function&&j.tagNameCheck(d))&&(j.attributeNameCheck instanceof RegExp&&ue(j.attributeNameCheck,k)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(k))||k==="is"&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&ue(j.tagNameCheck,C)||j.tagNameCheck instanceof Function&&j.tagNameCheck(C))))return!1}else if(!jo[k]&&!ue(D,ln(C,E,""))&&!((k==="src"||k==="xlink:href"||k==="href")&&d!=="script"&&gf(C,"data:")===0&&Or[d])&&!(Ar&&!ue(N,ln(C,E,"")))&&C)return!1}return!0},jr=function(d){return d!=="annotation-xml"&&Ua(d,I)},Vr=function(d){Le(_.beforeSanitizeAttributes,d,null);const{attributes:k}=d;if(!k||Go(d))return;const C={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F,forceKeepAttr:void 0};let U=k.length;for(;U--;){const re=k[U],{name:te,namespaceURI:De,value:ke}=re,Pe=ie(te),qo=ke;let ae=te==="value"?qo:_f(qo);if(C.attrName=Pe,C.attrValue=ae,C.keepAttr=!0,C.forceKeepAttr=void 0,Le(_.uponSanitizeAttribute,d,C),ae=C.attrValue,Er&&(Pe==="id"||Pe==="name")&&(It(te,d),ae=kc+ae),Pn&&ue(/((--!?|])>)|<\/(style|title)/i,ae)){It(te,d);continue}if(C.forceKeepAttr)continue;if(!C.keepAttr){It(te,d);continue}if(!kr&&ue(/\/>/i,ae)){It(te,d);continue}kt&&qn([u,f,g],Rc=>{ae=ln(ae,Rc," ")});const Ur=ie(d.nodeName);if(!Hr(Ur,Pe,ae)){It(te,d);continue}if(L&&typeof y=="object"&&typeof y.getAttributeType=="function"&&!De)switch(y.getAttributeType(Ur,Pe)){case"TrustedHTML":{ae=L.createHTML(ae);break}case"TrustedScriptURL":{ae=L.createScriptURL(ae);break}}if(ae!==qo)try{De?d.setAttributeNS(De,te,ae):d.setAttribute(te,ae),Go(d)?ut(d):Va(t.removed)}catch{It(te,d)}}Le(_.afterSanitizeAttributes,d,null)},Mc=function d(k){let C=null;const U=Fr(k);for(Le(_.beforeSanitizeShadowDOM,k,null);C=U.nextNode();)Le(_.uponSanitizeShadowNode,C,null),Br(C),Vr(C),C.content instanceof r&&d(C.content);Le(_.afterSanitizeShadowDOM,k,null)};return t.sanitize=function(d){let k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=null,U=null,re=null,te=null;if(Vo=!d,Vo&&(d=""),typeof d!="string"&&!zr(d))if(typeof d.toString=="function"){if(d=d.toString(),typeof d!="string")throw cn("dirty is not a string, aborting")}else throw cn("toString is not a function");if(!t.isSupported)return d;if(zo||Wo(k),t.removed=[],typeof d=="string"&&(tn=!1),tn){if(d.nodeName){const Pe=ie(d.nodeName);if(!T[Pe]||be[Pe])throw cn("root node is forbidden and cannot be sanitized in-place")}}else if(d instanceof s)C=Dr(""),U=C.ownerDocument.importNode(d,!0),U.nodeType===dn.element&&U.nodeName==="BODY"||U.nodeName==="HTML"?C=U:C.appendChild(U);else{if(!Tt&&!kt&&!ct&&d.indexOf("<")===-1)return L&&Mn?L.createHTML(d):d;if(C=Dr(d),!C)return Tt?null:Mn?Y:""}C&&Bo&&ut(C.firstChild);const De=Fr(tn?d:C);for(;re=De.nextNode();)Br(re),Vr(re),re.content instanceof r&&Mc(re.content);if(tn)return d;if(Tt){if(In)for(te=G.call(C.ownerDocument);C.firstChild;)te.appendChild(C.firstChild);else te=C;return(F.shadowroot||F.shadowrootmode)&&(te=b.call(o,te,!0)),te}let ke=ct?C.outerHTML:C.innerHTML;return ct&&T["!doctype"]&&C.ownerDocument&&C.ownerDocument.doctype&&C.ownerDocument.doctype.name&&ue(Vl,C.ownerDocument.doctype.name)&&(ke=" `+ke),kt&&qn([u,f,g],Pe=>{ke=ln(ke,Pe," ")}),L&&Mn?L.createHTML(ke):ke},t.setConfig=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Wo(d),zo=!0},t.clearConfig=function(){Pt=null,zo=!1},t.isValidAttribute=function(d,k,C){Pt||Wo({});const U=ie(d),re=ie(k);return Hr(U,re,C)},t.addHook=function(d,k){typeof k=="function"&&sn(_[d],k)},t.removeHook=function(d,k){if(k!==void 0){const C=mf(_[d],k);return C===-1?void 0:vf(_[d],C,1)[0]}return Va(_[d])},t.removeHooks=function(d){_[d]=[]},t.removeAllHooks=function(){_=Za()},t}var Wl=Ul();function If(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var si,Xa;function Mf(){if(Xa)return si;Xa=1;var e=/["'&<>]/;si=t;function t(n){var o=""+n,i=e.exec(o);if(!i)return o;var r,a="",s=0,l=0;for(s=i.index;st)}}globalThis._oc_l10n_registry_translations??={},globalThis._oc_l10n_registry_plural_functions??={};function Me(e,t,n,o,i){const r=typeof n=="object"?n:void 0,a=typeof o=="number"?o:typeof n=="number"?n:void 0,s={escape:!0,sanitize:!0,...typeof i=="object"?i:typeof o=="object"?o:{}},l=S=>S,c=(s.sanitize?Wl.sanitize:l)||l,p=s.escape?Ja:l,m=S=>typeof S=="string"||typeof S=="number",v=(S,O,x)=>S.replace(/%n/g,""+x).replace(/{([^{}]*)}/g,(P,$)=>{if(O===void 0||!($ in O))return p(P);const R=O[$];return m(R)?p(`${R}`):typeof R=="object"&&m(R.value)?(R.escape!==!1?Ja:l)(`${R.value}`):p(P)});let y=(i?.bundle??Gl(e)).translations[t]||t;return y=Array.isArray(y)?y[0]:y,c(typeof r=="object"||a!==void 0?v(y,r,a):y)}function Lf(e,t,n,o,i,r){const a="_"+t+"_::_"+n+"_",s=r?.bundle??Gl(e),l=s.translations[a];if(typeof l<"u"){const c=l;if(Array.isArray(c)){const p=s.pluralFunction(o);return Me(e,c[p],i,o,r)}}return o===1?Me(e,t,i,o,r):Me(e,n,i,o,r)}function Df(e,t=hr()){switch(t==="pt-BR"&&(t="xbr"),t.length>3&&(t=t.substring(0,t.lastIndexOf("-"))),t){case"az":case"bo":case"dz":case"id":case"ja":case"jv":case"ka":case"km":case"kn":case"ko":case"ms":case"th":case"tr":case"vi":case"zh":return 0;case"af":case"bn":case"bg":case"ca":case"da":case"de":case"el":case"en":case"eo":case"es":case"et":case"eu":case"fa":case"fi":case"fo":case"fur":case"fy":case"gl":case"gu":case"ha":case"he":case"hu":case"is":case"it":case"ku":case"lb":case"ml":case"mn":case"mr":case"nah":case"nb":case"ne":case"nl":case"nn":case"no":case"oc":case"om":case"or":case"pa":case"pap":case"ps":case"pt":case"so":case"sq":case"sv":case"sw":case"ta":case"te":case"tk":case"ur":case"zu":return e===1?0:1;case"am":case"bh":case"fil":case"fr":case"gun":case"hi":case"hy":case"ln":case"mg":case"nso":case"xbr":case"ti":case"wa":return e===0||e===1?0:1;case"be":case"bs":case"hr":case"ru":case"sh":case"sr":case"uk":return e%10===1&&e%100!==11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2;case"cs":case"sk":return e===1?0:e>=2&&e<=4?1:2;case"ga":return e===1?0:e===2?1:2;case"lt":return e%10===1&&e%100!==11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2;case"sl":return e%100===1?0:e%100===2?1:e%100===3||e%100===4?2:3;case"mk":return e%10===1?0:1;case"mt":return e===1?0:e===0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3;case"lv":return e===0?0:e%10===1&&e%100!==11?1:2;case"pl":return e===1?0:e%10>=2&&e%10<=4&&(e%100<12||e%100>14)?1:2;case"cy":return e===1?0:e===2?1:e===8||e===11?2:3;case"ro":return e===1?0:e===0||e%100>0&&e%100<20?1:2;case"ar":return e===0?0:e===1?1:e===2?2:e%100>=3&&e%100<=10?3:e%100>=11&&e%100<=99?4:5;default:return 0}}const ql={account:Me("password_policy","Account password policies"),sharing:Me("password_policy","Share password policies")},Ff={enforceHaveIBeenPwned:!1,enforceNonCommonPassword:!0,enforceNumericCharacters:!1,enforceSpecialCharacters:!1,enforceUpperLowerCase:!1,minLength:10};function zf(e,t,n){const o=document.querySelector(`#initial-state-${e}-${t}`);if(o===null){if(n!==void 0)return n;throw new Error(`Could not find initial state ${t} of ${e}`)}try{return JSON.parse(atob(o.value))}catch{throw new Error(`Could not parse initial state ${t} of ${e}`)}}class Bf{bundle;constructor(t){this.bundle={pluralFunction:t,translations:{}}}addTranslations(t){const n=Object.values(t.translations[""]??{}).map(({msgid:o,msgid_plural:i,msgstr:r})=>i!==void 0?[`_${o}_::_${i}_`,r]:[o,r[0]]);this.bundle.translations={...this.bundle.translations,...Object.fromEntries(n)}}gettext(t,n={}){return Me("",t,n,void 0,{bundle:this.bundle})}ngettext(t,n,o,i={}){return Lf("",t,n,o,i,{bundle:this.bundle})}}class Hf{debug=!1;language="en";translations={};setLanguage(t){return this.language=t,this}detectLocale(){return this.detectLanguage()}detectLanguage(){return this.setLanguage(hr().replace("-","_"))}addTranslation(t,n){return this.translations[t]=n,this}enableDebugMode(){return this.debug=!0,this}build(){this.debug&&console.debug(`Creating gettext instance for language ${this.language}`);const t=new Bf(n=>Df(n,this.language));return this.language in this.translations&&t.addTranslations(this.translations[this.language]),t}}function jf(){return new Hf}const mr=jf().detectLanguage().build(),Vf=(...e)=>mr.ngettext(...e),vr=(...e)=>mr.gettext(...e);function gr(...e){for(const t of e)if(!t.registered){for(const{l:n,t:o}of t){if(n!==hr()||!o)continue;const i=Object.fromEntries(Object.entries(o).map(([r,a])=>[r,{msgid:r,msgid_plural:a.p,msgstr:a.v}]));mr.addTranslations({translations:{"":i}})}t.registered=!0}}const Uf=[{l:"ar",t:{Actions:{v:["إجراءات"]}}},{l:"ast",t:{Actions:{v:["Aiciones"]}}},{l:"br",t:{Actions:{v:["Oberioù"]}}},{l:"ca",t:{Actions:{v:["Accions"]}}},{l:"cs",t:{Actions:{v:["Akce"]}}},{l:"cs-CZ",t:{Actions:{v:["Akce"]}}},{l:"da",t:{Actions:{v:["Handlinger"]}}},{l:"de",t:{Actions:{v:["Aktionen"]}}},{l:"de-DE",t:{Actions:{v:["Aktionen"]}}},{l:"el",t:{Actions:{v:["Ενέργειες"]}}},{l:"en-GB",t:{Actions:{v:["Actions"]}}},{l:"eo",t:{Actions:{v:["Agoj"]}}},{l:"es",t:{Actions:{v:["Acciones"]}}},{l:"es-AR",t:{Actions:{v:["Acciones"]}}},{l:"es-EC",t:{Actions:{v:["Acciones"]}}},{l:"es-MX",t:{Actions:{v:["Acciones"]}}},{l:"et-EE",t:{Actions:{v:["Tegevus"]}}},{l:"eu",t:{Actions:{v:["Ekintzak"]}}},{l:"fa",t:{Actions:{v:["کنش‌ها"]}}},{l:"fi",t:{Actions:{v:["Toiminnot"]}}},{l:"fr",t:{Actions:{v:["Actions"]}}},{l:"ga",t:{Actions:{v:["Gníomhartha"]}}},{l:"gl",t:{Actions:{v:["Accións"]}}},{l:"he",t:{Actions:{v:["פעולות"]}}},{l:"hu",t:{Actions:{v:["Műveletek"]}}},{l:"id",t:{Actions:{v:["Tindakan"]}}},{l:"is",t:{Actions:{v:["Aðgerðir"]}}},{l:"it",t:{Actions:{v:["Azioni"]}}},{l:"ja",t:{Actions:{v:["操作"]}}},{l:"ja-JP",t:{Actions:{v:["操作"]}}},{l:"ko",t:{Actions:{v:["동작"]}}},{l:"lt-LT",t:{Actions:{v:["Veiksmai"]}}},{l:"lv",t:{}},{l:"mk",t:{Actions:{v:["Акции"]}}},{l:"my",t:{Actions:{v:["လုပ်ဆောင်ချက်များ"]}}},{l:"nb",t:{Actions:{v:["Handlinger"]}}},{l:"nl",t:{Actions:{v:["Acties"]}}},{l:"oc",t:{Actions:{v:["Accions"]}}},{l:"pl",t:{Actions:{v:["Działania"]}}},{l:"pt-BR",t:{Actions:{v:["Ações"]}}},{l:"pt-PT",t:{Actions:{v:["Ações"]}}},{l:"ro",t:{Actions:{v:["Acțiuni"]}}},{l:"ru",t:{Actions:{v:["Действия "]}}},{l:"sk",t:{Actions:{v:["Akcie"]}}},{l:"sl",t:{Actions:{v:["Dejanja"]}}},{l:"sr",t:{Actions:{v:["Радње"]}}},{l:"sv",t:{Actions:{v:["Åtgärder"]}}},{l:"tr",t:{Actions:{v:["İşlemler"]}}},{l:"uk",t:{Actions:{v:["Дії"]}}},{l:"uz",t:{Actions:{v:["Harakatlar"]}}},{l:"zh-CN",t:{Actions:{v:["行为"]}}},{l:"zh-HK",t:{Actions:{v:["動作"]}}},{l:"zh-TW",t:{Actions:{v:["動作"]}}}],Wf=[{l:"ar",t:{"External documentation for {name}":{v:["التوثيق الخارجي لـ {name}"]}}},{l:"ast",t:{"External documentation for {name}":{v:["Documentación esterna pa: {name}"]}}},{l:"br",t:{}},{l:"ca",t:{}},{l:"cs",t:{"External documentation for {name}":{v:["Externí dokumentace pro {name}"]}}},{l:"cs-CZ",t:{"External documentation for {name}":{v:["Externí dokumentace pro {name}"]}}},{l:"da",t:{"External documentation for {name}":{v:["Ekstern dokumentation for {name}"]}}},{l:"de",t:{"External documentation for {name}":{v:["Externe Dokumentation für {name}"]}}},{l:"de-DE",t:{"External documentation for {name}":{v:["Externe Dokumentation für {name}"]}}},{l:"el",t:{"External documentation for {name}":{v:["Εξωτερική τεκμηρίωση για {name}"]}}},{l:"en-GB",t:{"External documentation for {name}":{v:["External documentation for {name}"]}}},{l:"eo",t:{}},{l:"es",t:{"External documentation for {name}":{v:["Documentación externa para {name}"]}}},{l:"es-AR",t:{"External documentation for {name}":{v:["Documentación externa para {name}"]}}},{l:"es-EC",t:{"External documentation for {name}":{v:["Documentación externa para {name}"]}}},{l:"es-MX",t:{"External documentation for {name}":{v:["Documentación externa para {name}"]}}},{l:"et-EE",t:{"External documentation for {name}":{v:["Väline dokumentatsioon {nimi}"]}}},{l:"eu",t:{"External documentation for {name}":{v:["{name}-ren kanpoko dokumentazioa"]}}},{l:"fa",t:{"External documentation for {name}":{v:["اسناد بیرونی برای {name}"]}}},{l:"fi",t:{"External documentation for {name}":{v:["Ulkoinen dokumentaatio {name}lle"]}}},{l:"fr",t:{"External documentation for {name}":{v:["Documentation externe pour {name}"]}}},{l:"ga",t:{"External documentation for {name}":{v:["Doiciméadúchán seachtrach le haghaidh {name}"]}}},{l:"gl",t:{"External documentation for {name}":{v:["Documentación externa para {name}"]}}},{l:"he",t:{"External documentation for {name}":{v:["תיעוד חיצוני עבור {name}"]}}},{l:"hu",t:{}},{l:"id",t:{"External documentation for {name}":{v:["Dokumentasi eksternal untuk {name}"]}}},{l:"is",t:{"External documentation for {name}":{v:["Utanaðkomandi leiðbeiningar fyrir {name}"]}}},{l:"it",t:{"External documentation for {name}":{v:["Documentazione esterna per {name}"]}}},{l:"ja",t:{"External documentation for {name}":{v:["{name} の外部ドキュメント"]}}},{l:"ja-JP",t:{"External documentation for {name}":{v:["{name} の外部ドキュメント"]}}},{l:"ko",t:{"External documentation for {name}":{v:["{name}의 외부 문서"]}}},{l:"lt-LT",t:{}},{l:"lv",t:{}},{l:"mk",t:{}},{l:"my",t:{}},{l:"nb",t:{"External documentation for {name}":{v:["Ekstern dokumentasjon for {name}"]}}},{l:"nl",t:{"External documentation for {name}":{v:["Externe documentatie voor {name}"]}}},{l:"oc",t:{}},{l:"pl",t:{"External documentation for {name}":{v:["Dokumentacja zewnętrzna dla {name}"]}}},{l:"pt-BR",t:{"External documentation for {name}":{v:["Documentação externa para {name}"]}}},{l:"pt-PT",t:{"External documentation for {name}":{v:["Documentação externa para {name}"]}}},{l:"ro",t:{"External documentation for {name}":{v:["Documentație externă pentru {name}"]}}},{l:"ru",t:{"External documentation for {name}":{v:["Внешняя документация для {name}"]}}},{l:"sk",t:{"External documentation for {name}":{v:["Externá dokumentácia pre {name}"]}}},{l:"sl",t:{}},{l:"sr",t:{"External documentation for {name}":{v:["Спољна документација за {name}"]}}},{l:"sv",t:{"External documentation for {name}":{v:["Extern dokumentation för {name}"]}}},{l:"tr",t:{"External documentation for {name}":{v:["{name} için dış belgeler"]}}},{l:"uk",t:{"External documentation for {name}":{v:["Зовнішня документація для {name}"]}}},{l:"uz",t:{"External documentation for {name}":{v:["{name}uchun tashqi hujjatlar"]}}},{l:"zh-CN",t:{"External documentation for {name}":{v:["{name} 的外部文档"]}}},{l:"zh-HK",t:{"External documentation for {name}":{v:["{name} 的外部文件"]}}},{l:"zh-TW",t:{"External documentation for {name}":{v:["{name} 的外部文件"]}}}];function K(e,t,n,o,i,r,a,s){var l=typeof e=="function"?e.options:e;return t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l._scopeId="data-v-"+r),{exports:e,options:l}}gr(Wf);const Gf={name:"HelpCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var qf=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon help-circle-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M15.07,11.25L14.17,12.17C13.45,12.89 13,13.5 13,15H11V14.5C11,13.39 11.45,12.39 12.17,11.67L13.41,10.41C13.78,10.05 14,9.55 14,9C14,7.89 13.1,7 12,7A2,2 0 0,0 10,9H8A4,4 0 0,1 12,5A4,4 0 0,1 16,9C16,9.88 15.64,10.67 15.07,11.25M13,19H11V17H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Kf=[],Yf=K(Gf,qf,Kf,!1,null,null);const Zf=Yf.exports,[Qa]=zf("core","config",{version:"30.0"}).version.split(".",2)??[],Xf=Qa&&Number.parseInt(Qa)<30,Jf={name:"NcSettingsSection",components:{HelpCircle:Zf},props:{name:{type:String,required:!0},description:{type:String,default:""},docUrl:{type:String,default:""},limitWidth:{type:Boolean,default:!0}},data(){return{docNameTranslated:vr("External documentation for {name}",{name:this.name})}},computed:{forceLimitWidth(){return this.limitWidth||!Xf},hasDescription(){return this.description.length>0},hasDocUrl(){return this.docUrl.length>0}}};var Qf=function(){var e=this,t=e._self._c;return t("div",{staticClass:"settings-section",class:{"settings-section--limit-width":e.forceLimitWidth}},[t("h2",{staticClass:"settings-section__name"},[e._v(" "+e._s(e.name)+" "),e.hasDocUrl?t("a",{staticClass:"settings-section__info",attrs:{href:e.docUrl,title:e.docNameTranslated,"aria-label":e.docNameTranslated,target:"_blank",rel:"noreferrer nofollow"}},[t("HelpCircle",{attrs:{size:20}})],1):e._e()]),e.hasDescription?t("p",{staticClass:"settings-section__desc"},[e._v(" "+e._s(e.description)+" ")]):e._e(),e._t("default")],2)},eh=[],th=K(Jf,Qf,eh,!1,null,"5e563b2b");const nh=th.exports,oh=window.OC?.config?.version?.split(".")[0]||"32",Kl=Number.parseInt(oh)<32,ih={name:"NcButton",inject:{getNcPopoverTriggerAttrs:{from:"NcPopover:trigger:attrs",default:()=>()=>({})}},props:{alignment:{type:String,default:"center",validator:e=>["start","start-reverse","center","center-reverse","end","end-reverse"].includes(e)},disabled:{type:Boolean,default:!1},size:{type:String,default:"normal",validator(e){return["small","normal","large"].includes(e)}},type:{type:String,validator(e){return["primary","secondary","tertiary","tertiary-no-background","tertiary-on-primary","error","warning","success"].includes(e)||["submit","reset","button"].includes(e)},default:"secondary"},nativeType:{type:String,validator(e){return["submit","reset","button"].indexOf(e)!==-1},default:"button"},wide:{type:Boolean,default:!1},ariaLabel:{type:String,default:null},href:{type:String,default:null},target:{type:String,default:"_self"},download:{type:String,default:null},to:{type:[String,Object],default:null},exact:{type:Boolean,default:!1},ariaHidden:{type:Boolean,default:null},pressed:{type:Boolean,default:null},variant:{type:String,validator(e){return["primary","secondary","tertiary","tertiary-no-background","tertiary-on-primary","error","warning","success"].includes(e)},default:"secondary"}},emits:["update:pressed","click"],computed:{realVariant(){return this.pressed?"primary":this.pressed===!1&&(this.type==="primary"||this.variant==="primary")?"secondary":this.type!=="secondary"&&["primary","tertiary","tertiary-no-background","tertiary-on-primary","error","warning","success"].includes(this.type)?this.type:this.variant},realType(){return typeof this.pressed=="boolean"?"button":this.nativeType!=="button"?this.nativeType:["primary","secondary","tertiary","tertiary-no-background","tertiary-on-primary","error","warning","success"].includes(this.type)?this.nativeType:this.type},isTertiary(){return this.realVariant.startsWith("tertiary")},flexAlignment(){return this.alignment.split("-")[0]},isReverseAligned(){return this.alignment.includes("-")},ncPopoverTriggerAttrs(){return this.getNcPopoverTriggerAttrs()}},render(e){const t=!!this.$slots.default,n=this.$slots?.icon;!t&&!this.ariaLabel&&console.warn("You need to fill either the text or the ariaLabel props in the button component.",{text:this.$slots.default?.[0]?.text,ariaLabel:this.ariaLabel},this);const o=this.to||this.href,i=!o&&typeof this.pressed=="boolean",r=({href:a,navigate:s,isActive:l,isExactActive:c}={})=>e(o?"a":"button",{class:["button-vue",`button-vue--size-${this.size}`,{"button-vue--icon-only":n&&!t,"button-vue--text-only":t&&!n,"button-vue--icon-and-text":n&&t,[`button-vue--vue-${this.realVariant}`]:this.realVariant,"button-vue--legacy":Kl,"button-vue--tertiary":this.isTertiary,"button-vue--wide":this.wide,[`button-vue--${this.flexAlignment}`]:this.flexAlignment!=="center","button-vue--reverse":this.isReverseAligned,active:l,"router-link-exact-active":c}],attrs:{"aria-label":this.ariaLabel,"aria-pressed":i?this.pressed.toString():void 0,disabled:this.disabled,type:o?null:this.realType,role:o?"button":null,href:this.to?a:this.href||null,target:o?this.target||"_self":null,rel:o?"nofollow noreferrer noopener":null,download:!this.to&&this.href&&this.download?this.download:null,...this.ncPopoverTriggerAttrs,...this.$attrs},on:{...this.$listeners,click:p=>{i&&this.$emit("update:pressed",!this.pressed),this.$emit("click",p),s?.(p)}}},[e("span",{class:"button-vue__wrapper"},[n?e("span",{class:"button-vue__icon",attrs:{"aria-hidden":"true"}},[this.$slots.icon]):null,t?e("span",{class:"button-vue__text"},[this.$slots.default]):null])]);return this.to?e("router-link",{props:{custom:!0,to:this.to,exact:this.exact},scopedSlots:{default:r}}):r()}},rh=null,ah=null;var sh=K(ih,rh,ah,!1,null,"9624cf58");const _r=sh.exports,yr=e=>Math.random().toString(36).replace(/[^a-z]+/g,"").slice(0,5),lh={name:"NcLoadingIcon",props:{size:{type:Number,default:20},appearance:{type:String,validator(e){return["auto","light","dark"].includes(e)},default:"auto"},name:{type:String,default:""}},computed:{colors(){const e=["#777","#CCC"];return this.appearance==="light"?e:this.appearance==="dark"?e.reverse():["var(--color-loading-light)","var(--color-loading-dark)"]}}};var ch=function(){var e=this,t=e._self._c;return t("span",{staticClass:"material-design-icon loading-icon",attrs:{"aria-label":e.name,role:"img"}},[t("svg",{attrs:{width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{fill:e.colors[0],d:"M12,4V2A10,10 0 1,0 22,12H20A8,8 0 1,1 12,4Z"}}),t("path",{attrs:{fill:e.colors[1],d:"M12,4V2A10,10 0 0,1 22,12H20A8,8 0 0,0 12,4Z"}},[e.name?t("title",[e._v(e._s(e.name))]):e._e()])])])},uh=[],dh=K(lh,ch,uh,!1,null,"d5de7f82");const ph=dh.exports;function Yl(e,t,n=!1){const o=qi().proxy;return n&&o.$props[e]===void 0&&o.$props.modelValue===void 0&&V.util.warn(`Missing required prop: "modelValue" or old "${e}"`),me({get(){return o.$props[e]!==void 0?o.$props[e]:o.$props.modelValue},set(i){o.$emit("update:modelValue",i),o.$emit("update:model-value",i),o.$emit(t,i)}})}gr();const fh={name:"CheckboxBlankOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var hh=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon checkbox-blank-outline-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},mh=[],vh=K(fh,hh,mh,!1,null,null);const gh=vh.exports,_h={name:"MinusBoxIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var yh=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon minus-box-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M17,13H7V11H17M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},bh=[],wh=K(_h,yh,bh,!1,null,null);const $h=wh.exports,Ch={name:"CheckboxMarkedIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var xh=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon checkbox-marked-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Sh=[],Ah=K(Ch,xh,Sh,!1,null,null);const kh=Ah.exports,Th={name:"RadioboxMarkedIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Eh=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon radiobox-marked-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 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,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Nh=[],Oh=K(Th,Eh,Nh,!1,null,null);const Ph=Oh.exports,Ih={name:"RadioboxBlankIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Mh=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon radiobox-blank-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 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,2Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Rh=[],Lh=K(Ih,Mh,Rh,!1,null,null);const Dh=Lh.exports,Fh={name:"ToggleSwitchOffIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var zh=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon toggle-switch-off-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M17,7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7M7,15A3,3 0 0,1 4,12A3,3 0 0,1 7,9A3,3 0 0,1 10,12A3,3 0 0,1 7,15Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Bh=[],Hh=K(Fh,zh,Bh,!1,null,null);const jh=Hh.exports,Vh={name:"ToggleSwitchIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Uh=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon toggle-switch-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M17,7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7M17,15A3,3 0 0,1 14,12A3,3 0 0,1 17,9A3,3 0 0,1 20,12A3,3 0 0,1 17,15Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Wh=[],Gh=K(Vh,Uh,Wh,!1,null,null);const qh=Gh.exports,Lt="checkbox",Bt="radio",Ze="switch",mn="button",Kh={name:"NcCheckboxContent",components:{NcLoadingIcon:ph},props:{iconClass:{type:[String,Object],default:null},textClass:{type:[String,Object],default:null},type:{type:String,default:"checkbox",validator:e=>[Lt,Bt,Ze,mn].includes(e)},buttonVariant:{type:Boolean,default:!1},isChecked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},size:{type:Number,default:24}},computed:{isButtonType(){return this.type===mn},checkboxRadioIconElement(){return this.type===Bt?this.isChecked?Ph:Dh:this.type===Ze?this.isChecked?qh:jh:this.indeterminate?$h:this.isChecked?kh:gh}}};var Yh=function(){var e=this,t=e._self._c;return t("span",{staticClass:"checkbox-content",class:{["checkbox-content-"+e.type]:!0,"checkbox-content--button-variant":e.buttonVariant,"checkbox-content--has-text":!!e.$slots.default}},[t("span",{class:{"checkbox-content__icon":!0,"checkbox-content__icon--checked":e.isChecked,[e.iconClass]:!0},attrs:{"aria-hidden":!0,inert:""}},[e._t("icon",function(){return[e.loading?t("NcLoadingIcon"):e.buttonVariant?e._e():t(e.checkboxRadioIconElement,{tag:"component",attrs:{size:e.size}})]},{checked:e.isChecked,loading:e.loading})],2),e.$slots.default?t("span",{class:["checkbox-content__text",e.textClass]},[e._t("default")],2):e._e()])},Zh=[],Xh=K(Kh,Yh,Zh,!1,null,"3714b019");const Jh=Xh.exports,Qh={name:"NcCheckboxRadioSwitch",components:{NcCheckboxContent:Jh},inheritAttrs:!1,model:{prop:"modelValue",event:"update:modelValue"},props:{id:{type:String,default:()=>"checkbox-radio-switch-"+yr(),validator:e=>e.trim()!==""},wrapperId:{type:String,default:null},name:{type:String,default:null},ariaLabel:{type:String,default:""},type:{type:String,default:"checkbox",validator:e=>[Lt,Bt,Ze,mn].includes(e)},buttonVariant:{type:Boolean,default:!1},buttonVariantGrouped:{type:String,default:"no",validator:e=>["no","vertical","horizontal"].includes(e)},checked:{type:[Boolean,Array,String],default:void 0},modelValue:{type:[Boolean,Array,String],default:!1},value:{type:String,default:null},disabled:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},required:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},wrapperElement:{type:String,default:null}},emits:["update:checked","update:modelValue","update:model-value"],setup(){return{model:Yl("checked","update:checked")}},computed:{dataAttrs(){return Object.fromEntries(Object.entries(this.$attrs).filter(([e])=>e.startsWith("data-")))},nonDataAttrs(){return Object.fromEntries(Object.entries(this.$attrs).filter(([e])=>!e.startsWith("data-")))},isButtonType(){return this.type===mn},computedWrapperElement(){return this.isButtonType?"button":this.wrapperElement!==null?this.wrapperElement:"span"},listeners(){return this.isButtonType?{click:this.onToggle}:{change:this.onToggle}},size(){return this.type===Ze?36:24},cssVars(){return{"--icon-size":this.size+"px","--icon-height":(this.type===Ze?16:this.size)+"px"}},inputType(){return[Lt,Bt,mn].includes(this.type)?this.type:Lt},isChecked(){return this.value!==null?Array.isArray(this.model)?[...this.model].indexOf(this.value)>-1:this.model===this.value:this.model===!0},hasIndeterminate(){return[Lt,Bt].includes(this.inputType)}},mounted(){if(this.name&&this.type===Lt&&!Array.isArray(this.model))throw new Error("When using groups of checkboxes, the updated value will be an array.");if(this.name&&this.type===Ze)throw new Error("Switches are not made to be used for data sets. Please use checkboxes instead.");if(typeof this.model!="boolean"&&this.type===Ze)throw new Error("Switches can only be used with boolean as checked prop.")},methods:{t:vr,n:Vf,onToggle(e){if(this.disabled||e.target.tagName.toLowerCase()==="a")return;if(this.type===Bt){this.model=this.value;return}if(this.type===Ze){this.model=!this.isChecked;return}if(typeof this.model=="boolean"){this.model=!this.model;return}const t=this.getInputsSet().filter(n=>n.checked).map(n=>n.value);t.includes(this.value)?this.model=t.filter(n=>n!==this.value):this.model=[...t,this.value]},getInputsSet(){return[...document.getElementsByName(this.name)]}}};var em=function(){var e=this,t=e._self._c;return t(e.computedWrapperElement,e._g(e._b({tag:"component",staticClass:"checkbox-radio-switch",class:{["checkbox-radio-switch-"+e.type]:e.type,"checkbox-radio-switch--checked":e.isChecked,"checkbox-radio-switch--disabled":e.disabled,"checkbox-radio-switch--indeterminate":e.hasIndeterminate?e.indeterminate:!1,"checkbox-radio-switch--button-variant":e.buttonVariant,"checkbox-radio-switch--button-variant-v-grouped":e.buttonVariant&&e.buttonVariantGrouped==="vertical","checkbox-radio-switch--button-variant-h-grouped":e.buttonVariant&&e.buttonVariantGrouped==="horizontal","button-vue":e.isButtonType},style:e.cssVars,attrs:{id:e.wrapperId,"aria-label":e.isButtonType&&e.ariaLabel?e.ariaLabel:void 0,type:e.isButtonType?"button":null}},"component",e.isButtonType?e.$attrs:e.dataAttrs,!1),e.isButtonType?e.listeners:null),[e.isButtonType?e._e():t("input",e._g(e._b({staticClass:"checkbox-radio-switch__input",attrs:{id:e.id,"aria-labelledby":!e.isButtonType&&!e.ariaLabel?`${e.id}-label`:null,"aria-label":e.ariaLabel||void 0,disabled:e.disabled,type:e.inputType,required:e.required,name:e.name},domProps:{value:e.value,checked:e.isChecked,indeterminate:e.hasIndeterminate?e.indeterminate:null}},"input",e.nonDataAttrs,!1),e.listeners)),t("NcCheckboxContent",{staticClass:"checkbox-radio-switch__content",attrs:{id:e.isButtonType?void 0:`${e.id}-label`,"icon-class":"checkbox-radio-switch__icon","text-class":"checkbox-radio-switch__text",type:e.type,indeterminate:e.hasIndeterminate?e.indeterminate:!1,"button-variant":e.buttonVariant,"is-checked":e.isChecked,loading:e.loading,size:e.size},nativeOn:{click:function(n){return e.onToggle.apply(null,arguments)}},scopedSlots:e._u([{key:"icon",fn:function(){return[e._t("icon")]},proxy:!0}],null,!0)},[e._t("default")],2)],1)},tm=[],nm=K(Qh,em,tm,!1,null,"2c897dd5");const om=nm.exports,im={name:"AlertCircleOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var rm=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon alert-circle-outline-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M11,15H13V17H11V15M11,7H13V13H11V7M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},am=[],sm=K(im,rm,am,!1,null,null);const lm=sm.exports,cm={name:"CheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var um=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon check-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},dm=[],pm=K(cm,um,dm,!1,null,null);const fm=pm.exports,hm={name:"NcInputField",components:{NcButton:_r,AlertCircle:lm,Check:fm},inheritAttrs:!1,model:{prop:"modelValue",event:"update:modelValue"},props:{value:{type:[String,Number],default:void 0},modelValue:{type:[String,Number],default:void 0},type:{type:String,default:"text",validator:e=>["text","password","email","tel","url","search","number"].includes(e)},label:{type:String,default:void 0},labelOutside:{type:Boolean,default:!1},placeholder:{type:String,default:void 0},showTrailingButton:{type:Boolean,default:!1},trailingButtonLabel:{type:String,default:""},success:{type:Boolean,default:!1},error:{type:Boolean,default:!1},helperText:{type:String,default:""},disabled:{type:Boolean,default:!1},pill:{type:Boolean,default:!1},inputClass:{type:[Object,String],default:""}},emits:["update:value","update:modelValue","update:model-value","trailing-button-click"],setup(){return{model:Yl("value","update:value",!0)}},computed:{computedId(){return this.$attrs.id&&this.$attrs.id!==""?this.$attrs.id:this.inputName},inputName(){return"input"+yr()},hasTrailingIcon(){return this.success},hasPlaceholder(){return this.placeholder!==""&&this.placeholder!==void 0},computedPlaceholder(){if(this.hasPlaceholder)return this.placeholder;if(Kl)return this.label},isValidLabel(){const e=this.label||this.labelOutside;return e||console.warn("You need to add a label to the NcInputField component. Either use the prop label or use an external one, as per the example in the documentation."),e},ariaDescribedby(){const e=[];return this.helperText.length>0&&e.push(`${this.inputName}-helper-text`),this.$attrs["aria-describedby"]&&e.push(this.$attrs["aria-describedby"]),e.join(" ")||null}},methods:{focus(){this.$refs.input.focus()},select(){this.$refs.input.select()},handleInput(e){const t=this.type==="number"&&typeof this.model=="number"?parseFloat(e.target.value,10):e.target.value;this.model=t},handleTrailingButtonClick(e){this.$emit("trailing-button-click",e)}}};var mm=function(){var e=this,t=e._self._c;return t("div",{staticClass:"input-field",class:{"input-field--disabled":e.disabled,"input-field--label-outside":e.labelOutside||!e.isValidLabel,"input-field--leading-icon":!!e.$scopedSlots.icon||!!e.$scopedSlots.default||!!e.$slots.default,"input-field--trailing-icon":e.showTrailingButton||e.hasTrailingIcon,"input-field--pill":e.pill}},[t("div",{staticClass:"input-field__main-wrapper"},[t("input",e._g(e._b({ref:"input",staticClass:"input-field__input",class:[e.inputClass,{"input-field__input--success":e.success,"input-field__input--error":e.error}],attrs:{id:e.computedId,type:e.type,disabled:e.disabled,placeholder:e.computedPlaceholder,"aria-describedby":e.ariaDescribedby,"aria-live":"polite"},domProps:{value:e.model?.toString()},on:{input:e.handleInput}},"input",e.$attrs,!1),e.$listeners)),!e.labelOutside&&e.isValidLabel?t("label",{staticClass:"input-field__label",attrs:{for:e.computedId}},[e._v(" "+e._s(e.label)+" ")]):e._e(),t("div",{directives:[{name:"show",rawName:"v-show",value:!!e.$scopedSlots.icon||!!e.$scopedSlots.default||!!e.$slots.default,expression:"!!$scopedSlots.icon || !!$scopedSlots.default || !!$slots.default"}],staticClass:"input-field__icon input-field__icon--leading"},[e._t("icon",function(){return[e._t("default")]})],2),e.showTrailingButton?t("NcButton",{staticClass:"input-field__trailing-button",attrs:{"aria-label":e.trailingButtonLabel,disabled:e.disabled,variant:"tertiary-no-background"},on:{click:e.handleTrailingButtonClick},scopedSlots:e._u([{key:"icon",fn:function(){return[e._t("trailing-button-icon")]},proxy:!0}],null,!0)}):e.success||e.error?t("div",{staticClass:"input-field__icon input-field__icon--trailing"},[e.success?t("Check",{staticStyle:{color:"var(--color-success-text)"},attrs:{size:20}}):e.error?t("AlertCircle",{staticStyle:{color:"var(--color-error-text)"},attrs:{size:20}}):e._e()],1):e._e()],1),e.helperText.length>0?t("p",{staticClass:"input-field__helper-text-message",class:{"input-field__helper-text-message--error":e.error,"input-field__helper-text-message--success":e.success},attrs:{id:`${e.inputName}-helper-text`}},[e.success?t("Check",{staticClass:"input-field__helper-text-message__icon",attrs:{size:18}}):e.error?t("AlertCircle",{staticClass:"input-field__helper-text-message__icon",attrs:{size:18}}):e._e(),e._v(" "+e._s(e.helperText)+" ")],1):e._e()])},vm=[],gm=K(hm,mm,vm,!1,null,"d3e09474");const Zl=gm.exports;function At(e,t,n,o,i,r,a,s){var l=typeof e=="function"?e.options:e;t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0);var c;if(i&&(c=i),c)if(l.functional){l._injectStyles=c;var p=l.render;l.render=function(v,y){return c.call(y),p(v,y)}}else{var m=l.beforeCreate;l.beforeCreate=m?[].concat(m,c):[c]}return{exports:e,options:l}}const _m={name:"TrashCanIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var ym=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon trash-can-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M9,8H11V17H9V8M13,8H15V17H13V8Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},bm=[],wm=At(_m,ym,bm,!1,null);const $m=wm.exports,Cm={__name:"PasswordPolicy",props:{modelValue:null,heading:null,canRemove:{type:Boolean}},emits:["update:modelValue","remove"],setup(e,{emit:t}){const n=e,o=me({get:()=>n.modelValue.minLength,set:c=>t("update:modelValue",{...n.modelValue,minLength:Number.isNaN(c)?0:c})}),i=me({get:()=>n.modelValue.enforceHaveIBeenPwned,set:c=>t("update:modelValue",{...n.modelValue,enforceHaveIBeenPwned:c})}),r=me({get:()=>n.modelValue.enforceNonCommonPassword,set:c=>t("update:modelValue",{...n.modelValue,enforceNonCommonPassword:c})}),a=me({get:()=>n.modelValue.enforceNumericCharacters,set:c=>t("update:modelValue",{...n.modelValue,enforceNumericCharacters:c})}),s=me({get:()=>n.modelValue.enforceSpecialCharacters,set:c=>t("update:modelValue",{...n.modelValue,enforceSpecialCharacters:c})}),l=me({get:()=>n.modelValue.enforceUpperLowerCase,set:c=>t("update:modelValue",{...n.modelValue,enforceUpperLowerCase:c})});return{__sfc:!0,props:n,emit:t,minLength:o,enforceHaveIBeenPwned:i,enforceNonCommonPassword:r,enforceNumericCharacters:a,enforceSpecialCharacters:s,enforceUpperLowerCase:l,t:Me,NcButton:_r,NcCheckboxRadioSwitch:om,NcInputField:Zl,IconTrashbin:$m}}},xm="_heading_nsb3k_2",Sm="_headingWrapper_nsb3k_7",Am="_hint_nsb3k_12",km="_inputField_nsb3k_17",Tm={heading:xm,headingWrapper:Sm,hint:Am,inputField:km};var Em=function(){var e=this,t=e._self._c,n=e._self._setupProxy;return t("form",{on:{submit:function(o){o.preventDefault()}}},[t("div",{class:e.$style.headingWrapper},[t("h3",{class:e.$style.heading},[e._v(" "+e._s(e.heading)+" ")]),e.canRemove?t(n.NcButton,{attrs:{"aria-label":n.t("password_policy","Remove policy"),title:n.t("password_policy","Remove policy"),type:"tertiary"},on:{click:function(o){return e.$emit("remove")}},scopedSlots:e._u([{key:"icon",fn:function(){return[t(n.IconTrashbin,{attrs:{size:20}})]},proxy:!0}],null,!1,3422420218)}):e._e()],1),t(n.NcInputField,{class:e.$style.inputField,attrs:{label:n.t("password_policy","Minimum password length"),type:"number",min:"0"},model:{value:n.minLength,callback:function(o){n.minLength=o},expression:"minLength"}}),t(n.NcCheckboxRadioSwitch,{attrs:{checked:n.enforceNonCommonPassword,type:"switch"},on:{"update:checked":function(o){n.enforceNonCommonPassword=o}}},[e._v(" "+e._s(n.t("password_policy","Forbid common passwords"))+" ")]),t(n.NcCheckboxRadioSwitch,{attrs:{checked:n.enforceUpperLowerCase,type:"switch"},on:{"update:checked":function(o){n.enforceUpperLowerCase=o}}},[e._v(" "+e._s(n.t("password_policy","Enforce upper and lower case characters"))+" ")]),t(n.NcCheckboxRadioSwitch,{attrs:{checked:n.enforceNumericCharacters,type:"switch"},on:{"update:checked":function(o){n.enforceNumericCharacters=o}}},[e._v(" "+e._s(n.t("password_policy","Enforce numeric characters"))+" ")]),t(n.NcCheckboxRadioSwitch,{attrs:{checked:n.enforceSpecialCharacters,type:"switch"},on:{"update:checked":function(o){n.enforceSpecialCharacters=o}}},[e._v(" "+e._s(n.t("password_policy","Enforce special characters"))+" ")]),t(n.NcCheckboxRadioSwitch,{attrs:{checked:n.enforceHaveIBeenPwned,type:"switch"},on:{"update:checked":function(o){n.enforceHaveIBeenPwned=o}}},[e._v(" "+e._s(n.t("password_policy","Check password against the list of breached passwords from haveibeenpwned.com"))+" ")]),t("p",{class:e.$style.hint},[e._v(" "+e._s(n.t("password_policy","This check creates a hash of the password and sends the first 5 characters of this hash to the haveibeenpwned.com API to retrieve a list of all hashes that start with those. Then it checks on the Nextcloud instance if the password hash is in the result set."))+" ")])],1)},Nm=[];const es={$style:Tm};function Om(e){for(var t in es)this[t]=es[t]}var Pm=At(Cm,Em,Nm,!1,Om);const Im=Pm.exports;function ts(e,t,n){const o=`#initial-state-${e}-${t}`;if(window._nc_initial_state?.has(o))return window._nc_initial_state.get(o);window._nc_initial_state||(window._nc_initial_state=new Map);const i=document.querySelector(o);if(i===null)throw new Error(`Could not find initial state ${t} of ${e}`);try{const r=JSON.parse(atob(i.value));return window._nc_initial_state.set(o,r),r}catch(r){throw console.error("[@nextcloud/initial-state] Could not parse initial state",{key:t,app:e,error:r}),new Error(`Could not parse initial state ${t} of ${e}`,{cause:r})}}const Mm={name:"CheckboxMarkedCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Rm=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon checkbox-marked-circle-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Lm=[],Dm=K(Mm,Rm,Lm,!1,null,null);const Fm=Dm.exports,zm={name:"AlertDecagramIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Bm=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon alert-decagram-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M23,12L20.56,9.22L20.9,5.54L17.29,4.72L15.4,1.54L12,3L8.6,1.54L6.71,4.72L3.1,5.53L3.44,9.21L1,12L3.44,14.78L3.1,18.47L6.71,19.29L8.6,22.47L12,21L15.4,22.46L17.29,19.28L20.9,18.46L20.56,14.78L23,12M13,17H11V15H13V17M13,13H11V7H13V13Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Hm=[],jm=K(zm,Bm,Hm,!1,null,null);const Vm=jm.exports,Um={name:"AlertIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Wm=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon alert-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Gm=[],qm=K(Um,Wm,Gm,!1,null,null);const ns=qm.exports,Km={name:"InformationIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Ym=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon information-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Zm=[],Xm=K(Km,Ym,Zm,!1,null,null);const Jm=Xm.exports,Qm={name:"NcNoteCard",props:{type:{type:String,default:"warning",validator:e=>["success","info","warning","error"].includes(e)},showAlert:{type:Boolean,default:!1},heading:{type:String,default:""},text:{type:String,default:""}},computed:{shouldShowAlert(){return this.showAlert||this.type==="error"},icon(){switch(this.type){case"error":return Vm;case"success":return Fm;case"info":return Jm;case"warning":return ns;default:return ns}},color(){switch(this.type){case"error":return"var(--color-error)";case"success":return"var(--color-success)";case"info":return"var(--color-info)";case"warning":return"var(--color-warning)";default:return"var(--color-warning)"}}}};var ev=function(){var e=this,t=e._self._c;return t("div",{staticClass:"notecard",class:`notecard--${e.type}`,attrs:{role:e.shouldShowAlert?"alert":"note"}},[e._t("icon",function(){return[t(e.icon,{tag:"component",staticClass:"notecard__icon",class:{"notecard__icon--heading":e.heading},attrs:{"fill-color":e.color,size:20}})]}),t("div",[e.heading?t("p",{staticClass:"notecard__heading"},[e._v(" "+e._s(e.heading)+" ")]):e._e(),e._t("default",function(){return[t("p",{staticClass:"notecard__text"},[e._v(" "+e._s(e.text)+" ")])]})],2)],2)},tv=[],nv=K(Qm,ev,tv,!1,null,"7df28e9e");const ov=nv.exports,iv={__name:"ComplianceConfig",setup(e){const t=le(ts("password_policy","loginConfig")),n=le(ts("password_policy","loginConfig"));St(t,o,{deep:!0});function o(){for(const[i,r]of Object.entries(t.value)){let a=Math.max(r||0,0);a=Number.isNaN(a)?0:a,console.debug(a,r,n.value[i]),n.value[i]!==a&&(window.OCP.AppConfig.setValue("password_policy",i,JSON.stringify(a)),n.value[i]=a),t.value[i]!==a&&(t.value[i]=a)}}return{__sfc:!0,config:t,oldConfig:n,saveComplianceConfig:o,t:Me,NcInputField:Zl,NcNoteCard:ov}}},rv="_form_5u8co_2",av="_heading_5u8co_8",sv="_inputField_5u8co_13",lv={form:rv,heading:av,inputField:sv};var cv=function(){var e=this,t=e._self._c,n=e._self._setupProxy;return t("form",{class:e.$style.form,on:{submit:function(o){o.preventDefault()}}},[t("h3",{class:e.$style.heading},[e._v(" "+e._s(n.t("password_policy","Login policies"))+" ")]),t("div",{class:e.$style.inputField},[t(n.NcInputField,{attrs:{label:n.t("password_policy","Password history size"),"helper-text":n.t("password_policy","Number of passwords to keep (securely hashed) to prevent users from reusing previously used passwords."),min:"0",type:"number"},model:{value:n.config.historySize,callback:function(o){e.$set(n.config,"historySize",o)},expression:"config.historySize"}})],1),t("div",{class:e.$style.inputField},[t(n.NcInputField,{attrs:{label:n.t("password_policy","Maximum login attempts"),min:"0",type:"number","helper-text":n.t("password_policy","Number of login attempts before the user account will be disabled until manual action is taken. (0 for no limit)")},model:{value:n.config.maximumLoginAttempts,callback:function(o){e.$set(n.config,"maximumLoginAttempts",o)},expression:"config.maximumLoginAttempts"}}),t(n.NcNoteCard,{directives:[{name:"show",rawName:"v-show",value:n.config.maximumLoginAttempts>0,expression:"config.maximumLoginAttempts > 0"}],attrs:{heading:n.t("password_policy","Maximum login attempts"),text:n.t("password_policy","Please note, this option is meant to protect attacked accounts. Disabled accounts have to be re-enabled manually by administration. Attackers that try to guess passwords of accounts will have their IP address blocked by the bruteforce protection independent from this setting."),type:"info"}})],1),t("div",{class:e.$style.inputField},[t(n.NcInputField,{attrs:{label:n.t("password_policy","Number of days until user password expires"),min:"0",type:"number"},model:{value:n.config.expiration,callback:function(o){e.$set(n.config,"expiration",o)},expression:"config.expiration"}}),t(n.NcNoteCard,{directives:[{name:"show",rawName:"v-show",value:n.config.expiration>0,expression:"config.expiration > 0"}],attrs:{heading:n.t("password_policy","Password expiration"),text:n.t("password_policy","Warning: enabling password expiration is nowadays considered a security risk by several security agencies."),type:"warning"}})],1)])},uv=[];const os={$style:lv};function dv(e){for(var t in os)this[t]=os[t]}var pv=At(iv,cv,uv,!1,dv);const fv=pv.exports;function qe(e){return e.split("-")[0]}function jt(e){return e.split("-")[1]}function Nn(e){return["top","bottom"].includes(qe(e))?"x":"y"}function br(e){return e==="y"?"height":"width"}function is(e){let{reference:t,floating:n,placement:o}=e;const i=t.x+t.width/2-n.width/2,r=t.y+t.height/2-n.height/2;let a;switch(qe(o)){case"top":a={x:i,y:t.y-n.height};break;case"bottom":a={x:i,y:t.y+t.height};break;case"right":a={x:t.x+t.width,y:r};break;case"left":a={x:t.x-n.width,y:r};break;default:a={x:t.x,y:t.y}}const s=Nn(o),l=br(s);switch(jt(o)){case"start":a[s]=a[s]-(t[l]/2-n[l]/2);break;case"end":a[s]=a[s]+(t[l]/2-n[l]/2);break}return a}const hv=async(e,t,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:a}=n;let s=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:l,y:c}=is({...s,placement:o}),p=o,m={};for(let v=0;v({name:"arrow",options:e,async fn(t){const{element:n,padding:o=0}=e??{},{x:i,y:r,placement:a,rects:s,platform:l}=t;if(n==null)return{};const c=Xl(o),p={x:i,y:r},m=qe(a),v=Nn(m),y=br(v),S=await l.getDimensions({element:n}),O=v==="y"?"top":"left",x=v==="y"?"bottom":"right",P=s.reference[y]+s.reference[v]-p[v]-s.floating[y],$=p[v]-s.reference[v],R=await l.getOffsetParent({element:n}),L=R?v==="y"?R.clientHeight||0:R.clientWidth||0:0,Y=P/2-$/2,ne=c[O],X=L-S[y]-c[x],G=L/2-S[y]/2+Y,Q=Li(ne,G,X);return{data:{[v]:Q,centerOffset:G-Q}}}}),_v={left:"right",right:"left",bottom:"top",top:"bottom"};function yo(e){return e.replace(/left|right|bottom|top/g,t=>_v[t])}function Jl(e,t){const n=jt(e)==="start",o=Nn(e),i=br(o);let r=o==="x"?n?"right":"left":n?"bottom":"top";return t.reference[i]>t.floating[i]&&(r=yo(r)),{main:r,cross:yo(r)}}const yv={start:"end",end:"start"};function Di(e){return e.replace(/start|end/g,t=>yv[t])}const bv=["top","right","bottom","left"],wv=bv.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);function $v(e,t,n){return(e?[...n.filter(o=>jt(o)===e),...n.filter(o=>jt(o)!==e)]:n.filter(o=>qe(o)===o)).filter(o=>e?jt(o)===e||(t?Di(o)!==o:!1):!0)}const Cv=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,i,r,a,s;const{x:l,y:c,rects:p,middlewareData:m,placement:v}=t,{alignment:y=null,allowedPlacements:S=wv,autoAlignment:O=!0,...x}=e;if((n=m.autoPlacement)!=null&&n.skip)return{};const P=$v(y,O,S),$=await Po(t,x),R=(o=(i=m.autoPlacement)==null?void 0:i.index)!=null?o:0,L=P[R],{main:Y,cross:ne}=Jl(L,p);if(v!==L)return{x:l,y:c,reset:{placement:P[0]}};const X=[$[qe(L)],$[Y],$[ne]],G=[...(r=(a=m.autoPlacement)==null?void 0:a.overflows)!=null?r:[],{placement:L,overflows:X}],Q=P[R+1];if(Q)return{data:{index:R+1,overflows:G},reset:{placement:Q}};const b=G.slice().sort((u,f)=>u.overflows[0]-f.overflows[0]),_=(s=b.find(u=>{let{overflows:f}=u;return f.every(g=>g<=0)}))==null?void 0:s.placement;return{data:{skip:!0},reset:{placement:_??b[0].placement}}}}};function xv(e){const t=yo(e);return[Di(e),t,Di(t)]}const Sv=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:i,middlewareData:r,rects:a,initialPlacement:s}=t;if((n=r.flip)!=null&&n.skip)return{};const{mainAxis:l=!0,crossAxis:c=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",flipAlignment:v=!0,...y}=e,S=qe(i),O=p||(S===s||!v?[yo(s)]:xv(s)),x=[s,...O],P=await Po(t,y),$=[];let R=((o=r.flip)==null?void 0:o.overflows)||[];if(l&&$.push(P[S]),c){const{main:X,cross:G}=Jl(i,a);$.push(P[X],P[G])}if(R=[...R,{placement:i,overflows:$}],!$.every(X=>X<=0)){var L,Y;const X=((L=(Y=r.flip)==null?void 0:Y.index)!=null?L:0)+1,G=x[X];if(G)return{data:{index:X,overflows:R},reset:{placement:G}};let Q="bottom";switch(m){case"bestFit":{var ne;const b=(ne=R.slice().sort((_,u)=>_.overflows.filter(f=>f>0).reduce((f,g)=>f+g,0)-u.overflows.filter(f=>f>0).reduce((f,g)=>f+g,0))[0])==null?void 0:ne.placement;b&&(Q=b);break}case"initialPlacement":Q=s;break}return{data:{skip:!0},reset:{placement:Q}}}return{}}}};function Av(e){let{placement:t,rects:n,value:o}=e;const i=qe(t),r=["left","top"].includes(i)?-1:1,a=typeof o=="function"?o({...n,placement:t}):o,{mainAxis:s,crossAxis:l}=typeof a=="number"?{mainAxis:a,crossAxis:0}:{mainAxis:0,crossAxis:0,...a};return Nn(i)==="x"?{x:l,y:s*r}:{x:s*r,y:l}}const kv=function(e){return e===void 0&&(e=0),{name:"offset",options:e,fn(t){const{x:n,y:o,placement:i,rects:r}=t,a=Av({placement:i,rects:r,value:e});return{x:n+a.x,y:o+a.y,data:a}}}};function Tv(e){return e==="x"?"y":"x"}const Ev=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:i}=t,{mainAxis:r=!0,crossAxis:a=!1,limiter:s={fn:x=>{let{x:P,y:$}=x;return{x:P,y:$}}},...l}=e,c={x:n,y:o},p=await Po(t,l),m=Nn(qe(i)),v=Tv(m);let y=c[m],S=c[v];if(r){const x=m==="y"?"top":"left",P=m==="y"?"bottom":"right",$=y+p[x],R=y-p[P];y=Li($,y,R)}if(a){const x=v==="y"?"top":"left",P=v==="y"?"bottom":"right",$=S+p[x],R=S-p[P];S=Li($,S,R)}const O=s.fn({...t,[m]:y,[v]:S});return{...O,data:{x:O.x-n,y:O.y-o}}}}},Nv=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n;const{placement:o,rects:i,middlewareData:r}=t,{apply:a,...s}=e;if((n=r.size)!=null&&n.skip)return{};const l=await Po(t,s),c=qe(o),p=jt(o)==="end";let m,v;c==="top"||c==="bottom"?(m=c,v=p?"left":"right"):(v=c,m=p?"top":"bottom");const y=ft(l.left,0),S=ft(l.right,0),O=ft(l.top,0),x=ft(l.bottom,0),P={height:i.floating.height-(["left","right"].includes(o)?2*(O!==0||x!==0?O+x:ft(l.top,l.bottom)):l[m]),width:i.floating.width-(["top","bottom"].includes(o)?2*(y!==0||S!==0?y+S:ft(l.left,l.right)):l[v])};return a?.({...P,...i}),{data:{skip:!0},reset:{rects:!0}}}}};function wr(e){return e?.toString()==="[object Window]"}function at(e){if(e==null)return window;if(!wr(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Io(e){return at(e).getComputedStyle(e)}function We(e){return wr(e)?"":e?(e.nodeName||"").toLowerCase():""}function Ge(e){return e instanceof at(e).HTMLElement}function bo(e){return e instanceof at(e).Element}function Ov(e){return e instanceof at(e).Node}function Ql(e){const t=at(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Mo(e){const{overflow:t,overflowX:n,overflowY:o}=Io(e);return/auto|scroll|overlay|hidden/.test(t+o+n)}function Pv(e){return["table","td","th"].includes(We(e))}function ec(e){const t=navigator.userAgent.toLowerCase().includes("firefox"),n=Io(e);return n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].includes(n.willChange)||t&&n.willChange==="filter"||t&&(n.filter?n.filter!=="none":!1)}const rs=Math.min,vn=Math.max,wo=Math.round;function Gt(e,t){t===void 0&&(t=!1);const n=e.getBoundingClientRect();let o=1,i=1;return t&&Ge(e)&&(o=e.offsetWidth>0&&wo(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&wo(n.height)/e.offsetHeight||1),{width:n.width/o,height:n.height/i,top:n.top/i,right:n.right/o,bottom:n.bottom/i,left:n.left/o,x:n.left/o,y:n.top/i}}function st(e){return((Ov(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ro(e){return wr(e)?{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}:{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function tc(e){return Gt(st(e)).left+Ro(e).scrollLeft}function Iv(e){const t=Gt(e);return wo(t.width)!==e.offsetWidth||wo(t.height)!==e.offsetHeight}function Mv(e,t,n){const o=Ge(t),i=st(t),r=Gt(e,o&&Iv(t));let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(o||!o&&n!=="fixed")if((We(t)!=="body"||Mo(i))&&(a=Ro(t)),Ge(t)){const l=Gt(t,!0);s.x=l.x+t.clientLeft,s.y=l.y+t.clientTop}else i&&(s.x=tc(i));return{x:r.left+a.scrollLeft-s.x,y:r.top+a.scrollTop-s.y,width:r.width,height:r.height}}function Lo(e){return We(e)==="html"?e:e.assignedSlot||e.parentNode||(Ql(e)?e.host:null)||st(e)}function as(e){return!Ge(e)||getComputedStyle(e).position==="fixed"?null:e.offsetParent}function Rv(e){let t=Lo(e);for(;Ge(t)&&!["html","body"].includes(We(t));){if(ec(t))return t;t=t.parentNode}return null}function Fi(e){const t=at(e);let n=as(e);for(;n&&Pv(n)&&getComputedStyle(n).position==="static";)n=as(n);return n&&(We(n)==="html"||We(n)==="body"&&getComputedStyle(n).position==="static"&&!ec(n))?t:n||Rv(e)||t}function ss(e){return{width:e.offsetWidth,height:e.offsetHeight}}function Lv(e){let{rect:t,offsetParent:n,strategy:o}=e;const i=Ge(n),r=st(n);if(n===r)return t;let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((i||!i&&o!=="fixed")&&((We(n)!=="body"||Mo(r))&&(a=Ro(n)),Ge(n))){const l=Gt(n,!0);s.x=l.x+n.clientLeft,s.y=l.y+n.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}}function Dv(e){const t=at(e),n=st(e),o=t.visualViewport;let i=n.clientWidth,r=n.clientHeight,a=0,s=0;return o&&(i=o.width,r=o.height,Math.abs(t.innerWidth/o.scale-o.width)<.01&&(a=o.offsetLeft,s=o.offsetTop)),{width:i,height:r,x:a,y:s}}function Fv(e){var t;const n=st(e),o=Ro(e),i=(t=e.ownerDocument)==null?void 0:t.body,r=vn(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=vn(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);let s=-o.scrollLeft+tc(e);const l=-o.scrollTop;return Io(i||n).direction==="rtl"&&(s+=vn(n.clientWidth,i?i.clientWidth:0)-r),{width:r,height:a,x:s,y:l}}function nc(e){return["html","body","#document"].includes(We(e))?e.ownerDocument.body:Ge(e)&&Mo(e)?e:nc(Lo(e))}function $o(e,t){var n;t===void 0&&(t=[]);const o=nc(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),r=at(o),a=i?[r].concat(r.visualViewport||[],Mo(o)?o:[]):o,s=t.concat(a);return i?s:s.concat($o(Lo(a)))}function zv(e,t){const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Ql(n)){let o=t;do{if(o&&e===o)return!0;o=o.parentNode||o.host}while(o)}return!1}function Bv(e){const t=Gt(e),n=t.top+e.clientTop,o=t.left+e.clientLeft;return{top:n,left:o,x:o,y:n,right:o+e.clientWidth,bottom:n+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}function ls(e,t){return t==="viewport"?Ri(Dv(e)):bo(t)?Bv(t):Ri(Fv(st(e)))}function Hv(e){const t=$o(Lo(e)),n=["absolute","fixed"].includes(Io(e).position)&&Ge(e)?Fi(e):e;return bo(n)?t.filter(o=>bo(o)&&zv(o,n)&&We(o)!=="body"):[]}function jv(e){let{element:t,boundary:n,rootBoundary:o}=e;const i=[...n==="clippingParents"?Hv(t):[].concat(n),o],r=i[0],a=i.reduce((s,l)=>{const c=ls(t,l);return s.top=vn(c.top,s.top),s.right=rs(c.right,s.right),s.bottom=rs(c.bottom,s.bottom),s.left=vn(c.left,s.left),s},ls(t,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}const Vv={getElementRects:e=>{let{reference:t,floating:n,strategy:o}=e;return{reference:Mv(t,Fi(n),o),floating:{...ss(n),x:0,y:0}}},convertOffsetParentRelativeRectToViewportRelativeRect:e=>Lv(e),getOffsetParent:e=>{let{element:t}=e;return Fi(t)},isElement:e=>bo(e),getDocumentElement:e=>{let{element:t}=e;return st(t)},getClippingClientRect:e=>jv(e),getDimensions:e=>{let{element:t}=e;return ss(t)},getClientRects:e=>{let{element:t}=e;return t.getClientRects()}},Uv=(e,t,n)=>hv(e,t,{platform:Vv,...n});var Wv=Object.defineProperty,Gv=Object.defineProperties,qv=Object.getOwnPropertyDescriptors,Co=Object.getOwnPropertySymbols,oc=Object.prototype.hasOwnProperty,ic=Object.prototype.propertyIsEnumerable,cs=(e,t,n)=>t in e?Wv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Je=(e,t)=>{for(var n in t||(t={}))oc.call(t,n)&&cs(e,n,t[n]);if(Co)for(var n of Co(t))ic.call(t,n)&&cs(e,n,t[n]);return e},Do=(e,t)=>Gv(e,qv(t)),Kv=(e,t)=>{var n={};for(var o in e)oc.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Co)for(var o of Co(e))t.indexOf(o)<0&&ic.call(e,o)&&(n[o]=e[o]);return n};function rc(e,t){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]=="object"&&e[n]?rc(e[n],t[n]):e[n]=t[n])}const He={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:5e3,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"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","focus"],delay:{show:0,hide:400}}}};function qt(e,t){let n=He.themes[e]||{},o;do o=n[t],typeof o>"u"?n.$extend?n=He.themes[n.$extend]||{}:(n=null,o=He[t]):n=null;while(n);return o}function Yv(e){const t=[e];let n=He.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=He.themes[n.$extend]||{}):n=null;while(n);return t.map(o=>`v-popper--theme-${o}`)}function us(e){const t=[e];let n=He.themes[e]||{};do n.$extend?(t.push(n.$extend),n=He.themes[n.$extend]||{}):n=null;while(n);return t}let wt=!1;if(typeof window<"u"){wt=!1;try{const e=Object.defineProperty({},"passive",{get(){wt=!0}});window.addEventListener("test",null,e)}catch{}}let ac=!1;typeof window<"u"&&typeof navigator<"u"&&(ac=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const sc=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),ds={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},ps={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function fs(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function li(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const Ee=[];let pt=null;const hs={};function ms(e){let t=hs[e];return t||(t=hs[e]=[]),t}let zi=function(){};typeof window<"u"&&(zi=window.Element);function H(e){return function(){const t=this.$props;return qt(t.theme,e)}}const ci="__floating-vue__popper";var lc=()=>({name:"VPopper",props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,required:!0},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:H("disabled")},positioningDisabled:{type:Boolean,default:H("positioningDisabled")},placement:{type:String,default:H("placement"),validator:e=>sc.includes(e)},delay:{type:[String,Number,Object],default:H("delay")},distance:{type:[Number,String],default:H("distance")},skidding:{type:[Number,String],default:H("skidding")},triggers:{type:Array,default:H("triggers")},showTriggers:{type:[Array,Function],default:H("showTriggers")},hideTriggers:{type:[Array,Function],default:H("hideTriggers")},popperTriggers:{type:Array,default:H("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:H("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:H("popperHideTriggers")},container:{type:[String,Object,zi,Boolean],default:H("container")},boundary:{type:[String,zi],default:H("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:H("strategy")},autoHide:{type:[Boolean,Function],default:H("autoHide")},handleResize:{type:Boolean,default:H("handleResize")},instantMove:{type:Boolean,default:H("instantMove")},eagerMount:{type:Boolean,default:H("eagerMount")},popperClass:{type:[String,Array,Object],default:H("popperClass")},computeTransformOrigin:{type:Boolean,default:H("computeTransformOrigin")},autoMinSize:{type:Boolean,default:H("autoMinSize")},autoSize:{type:[Boolean,String],default:H("autoSize")},autoMaxSize:{type:Boolean,default:H("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:H("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:H("preventOverflow")},overflowPadding:{type:[Number,String],default:H("overflowPadding")},arrowPadding:{type:[Number,String],default:H("arrowPadding")},arrowOverflow:{type:Boolean,default:H("arrowOverflow")},flip:{type:Boolean,default:H("flip")},shift:{type:Boolean,default:H("shift")},shiftCrossAxis:{type:Boolean,default:H("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:H("noAutoFocus")}},provide(){return{[ci]:{parentPopper:this}}},inject:{[ci]:{default:null}},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},shownChildren:new Set,lastAutoHide:!0}},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:Do(Je({},this.classes),{popperClass:this.popperClass}),result:this.positioningDisabled?null:this.result}},parentPopper(){var e;return(e=this[ci])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:Je(Je({shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())}},["triggers","positioningDisabled"].reduce((e,t)=>(e[t]="$_refreshListeners",e),{})),["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})),created(){this.$_isDisposed=!0,this.randomId=`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,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()},beforeDestroy(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:n=!1}={}){var o,i;(o=this.parentPopper)!=null&&o.lockedChild&&this.parentPopper.lockedChild!==this||(this.$_pendingHide=!1,(n||!this.disabled)&&(((i=this.parentPopper)==null?void 0:i.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1,skipAiming:n=!1}={}){var o;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}if(!n&&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:t}),this.parentPopper.lockedChild=null)},1e3));return}((o=this.parentPopper)==null?void 0:o.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){this.$_isDisposed&&(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=this.referenceNode(),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"),this.$emit("dispose"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){var e;if(this.$_isDisposed||this.positioningDisabled)return;const t={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&t.middleware.push(kv({mainAxis:this.distance,crossAxis:this.skidding}));const n=this.placement.startsWith("auto");if(n?t.middleware.push(Cv({alignment:(e=this.placement.split("-")[1])!=null?e:""})):t.placement=this.placement,this.preventOverflow&&(this.shift&&t.middleware.push(Ev({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!n&&this.flip&&t.middleware.push(Sv({padding:this.overflowPadding,boundary:this.boundary}))),t.middleware.push(gv({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&t.middleware.push({name:"arrowOverflow",fn:({placement:i,rects:r,middlewareData:a})=>{let s;const{centerOffset:l}=a.arrow;return i.startsWith("top")||i.startsWith("bottom")?s=Math.abs(l)>r.reference.width/2:s=Math.abs(l)>r.reference.height/2,{data:{overflow:s}}}}),this.autoMinSize||this.autoSize){const i=this.autoSize?this.autoSize:this.autoMinSize?"min":null;t.middleware.push({name:"autoSize",fn:({rects:r,placement:a,middlewareData:s})=>{var l;if((l=s.autoSize)!=null&&l.skip)return{};let c,p;return a.startsWith("top")||a.startsWith("bottom")?c=r.reference.width:p=r.reference.height,this.$_innerNode.style[i==="min"?"minWidth":i==="max"?"maxWidth":"width"]=c!=null?`${c}px`:null,this.$_innerNode.style[i==="min"?"minHeight":i==="max"?"maxHeight":"height"]=p!=null?`${p}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(Nv({boundary:this.boundary,padding:this.overflowPadding,apply:({width:i,height:r})=>{this.$_innerNode.style.maxWidth=i!=null?`${i}px`:null,this.$_innerNode.style.maxHeight=r!=null?`${r}px`:null}})));const o=await Uv(this.$_referenceNode,this.$_popperNode,t);Object.assign(this.result,{x:o.x,y:o.y,placement:o.placement,strategy:o.strategy,arrow:Je(Je({},o.middlewareData.arrow),o.middlewareData.arrowOverflow)})},$_scheduleShow(e=null,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),pt&&this.instantMove&&pt.instantMove&&pt!==this.parentPopper){pt.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e=null,t=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(pt=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await li(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...$o(this.$_referenceNode),...$o(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),n=this.$_popperNode.querySelector(".v-popper__wrapper"),o=n.parentNode.getBoundingClientRect(),i=t.x+t.width/2-(o.left+n.offsetLeft),r=t.y+t.height/2-(o.top+n.offsetTop);this.result.transformOrigin=`${i}px ${r}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let n=0;n0){this.$_pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,fs(Ee,this),Ee.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of us(this.theme)){const o=ms(n);fs(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}pt===this&&(pt=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=qt(this.theme,"disposeTimeout");t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await li(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.$_isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=n=>{this.isShown&&!this.$_hideInProgress||(n.usedByTooltip=!0,!this.$_preventShow&&this.show({event:n}))};this.$_registerTriggerListeners(this.$_targetNodes,ds,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],ds,this.popperTriggers,this.popperShowTriggers,e);const t=n=>o=>{o.usedByTooltip||this.hide({event:o,skipAiming:n})};this.$_registerTriggerListeners(this.$_targetNodes,ps,this.triggers,this.hideTriggers,t(!1)),this.$_registerTriggerListeners([this.$_popperNode],ps,this.popperTriggers,this.popperHideTriggers,t(!0))},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(o=>o.addEventListener(t,n,wt?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,n,o,i){let r=n;o!=null&&(r=typeof o=="function"?o(r):o),r.forEach(a=>{const s=t[a];s&&this.$_registerEventListeners(e,s,i)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(n=>{const{targetNodes:o,eventType:i,handler:r}=n;!e||e===i?o.forEach(a=>a.removeEventListener(i,r)):t.push(n)}),this.$_events=t},$_refreshListeners(){this.$_isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const n of this.$_targetNodes){const o=n.getAttribute(e);o&&(n.removeAttribute(e),n.setAttribute(t,o))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const n in e){const o=e[n];o==null?t.removeAttribute(n):t.setAttribute(n,o)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.$_pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$el.getBoundingClientRect();if(gn>=e.left&&gn<=e.right&&_n>=e.top&&_n<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=gn-Ke,o=_n-Ye,i=t.left+t.width/2-Ke+(t.top+t.height/2)-Ye+t.width+t.height,r=Ke+n*i,a=Ye+o*i;return Yn(Ke,Ye,r,a,t.left,t.top,t.left,t.bottom)||Yn(Ke,Ye,r,a,t.left,t.top,t.right,t.top)||Yn(Ke,Ye,r,a,t.right,t.top,t.right,t.bottom)||Yn(Ke,Ye,r,a,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$scopedSlots.default(this.slotData)[0]}});typeof document<"u"&&typeof window<"u"&&(ac?(document.addEventListener("touchstart",vs,wt?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",Xv,wt?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",vs,!0),window.addEventListener("click",Zv,!0)),window.addEventListener("resize",eg));function vs(e){for(let t=0;t=0;o--){const i=Ee[o];try{const r=i.$_containsGlobalTarget=Jv(i,e);i.$_pendingHide=!1,requestAnimationFrame(()=>{if(i.$_pendingHide=!1,!n[i.randomId]&&gs(i,r,e)){if(i.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&r){let s=i.parentPopper;for(;s;)n[s.randomId]=!0,s=s.parentPopper;return}let a=i.parentPopper;for(;a&&gs(a,a.$_containsGlobalTarget,e);)a.$_handleGlobalClose(e,t),a=a.parentPopper}})}catch{}}}function Jv(e,t){const n=e.popperNode();return e.$_mouseDownContains||n.contains(t.target)}function gs(e,t,n){return n.closeAllPopover||n.closePopover&&t||Qv(e,n)&&!t}function Qv(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function eg(e){for(let t=0;t{Ke=gn,Ye=_n,gn=e.clientX,_n=e.clientY},wt?{passive:!0}:void 0);function Yn(e,t,n,o,i,r,a,s){const l=((a-i)*(t-r)-(s-r)*(e-i))/((s-r)*(n-e)-(a-i)*(o-t)),c=((n-e)*(t-r)-(o-t)*(e-i))/((s-r)*(n-e)-(a-i)*(o-t));return l>=0&&l<=1&&c>=0&&c<=1}function tg(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var i=e.indexOf("Edge/");return i>0?parseInt(e.substring(i+5,e.indexOf(".",i)),10):-1}var ao;function Bi(){Bi.init||(Bi.init=!0,ao=tg()!==-1)}var ng={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},mounted:function(){var e=this;Bi(),this.$nextTick(function(){e._w=e.$el.offsetWidth,e._h=e.$el.offsetHeight,e.emitOnMount&&e.emitSize()});var t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",ao&&this.$el.appendChild(t),t.data="about:blank",ao||this.$el.appendChild(t)},beforeDestroy:function(){this.removeResizeHandlers()},methods:{compareAndNotify:function(){(!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:function(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers:function(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers:function(){this._resizeObject&&this._resizeObject.onload&&(!ao&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};function og(e,t,n,o,i,r,a,s,l,c){var p=typeof n=="function"?n.options:n;return e&&e.render&&(p.render=e.render,p.staticRenderFns=e.staticRenderFns,p._compiled=!0),p._scopeId=o,n}var ig=ng,uc=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"resize-observer",attrs:{tabindex:"-1"}})},rg=[];uc._withStripped=!0;var ag=void 0,sg="data-v-8859cc6c",Hi=og({render:uc,staticRenderFns:rg},ag,ig,sg);function lg(e){e.component("resize-observer",Hi),e.component("ResizeObserver",Hi)}var cg={version:"1.0.1",install:lg},Zn=null;typeof window<"u"?Zn=window.Vue:typeof Vt<"u"&&(Zn=Vt.Vue),Zn&&Zn.use(cg);var dc={computed:{themeClass(){return Yv(this.theme)}}},ug={name:"VPopperContent",components:{ResizeObserver:Hi},mixins:[dc],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}},dg=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"popover",staticClass:"v-popper__popper",class:[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}],style:e.result?{position:e.result.strategy,transform:"translate3d("+Math.round(e.result.x)+"px,"+Math.round(e.result.y)+"px,0)"}:void 0,attrs:{id:e.popperId,"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0},on:{keyup:function(o){if(!o.type.indexOf("key")&&e._k(o.keyCode,"esc",27,o.key,["Esc","Escape"]))return null;e.autoHide&&e.$emit("hide")}}},[n("div",{staticClass:"v-popper__backdrop",on:{click:function(o){e.autoHide&&e.$emit("hide")}}}),n("div",{staticClass:"v-popper__wrapper",style:e.result?{transformOrigin:e.result.transformOrigin}:void 0},[n("div",{ref:"inner",staticClass:"v-popper__inner"},[e.mounted?[n("div",[e._t("default")],2),e.handleResize?n("ResizeObserver",{on:{notify:function(o){return e.$emit("resize",o)}}}):e._e()]:e._e()],2),n("div",{ref:"arrow",staticClass:"v-popper__arrow-container",style:e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0},[n("div",{staticClass:"v-popper__arrow-outer"}),n("div",{staticClass:"v-popper__arrow-inner"})])])])},pg=[];function Qt(e,t,n,o,i,r,a,s){var l=typeof e=="function"?e.options:e;t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0);var c;if(i&&(c=i),c)if(l.functional){l._injectStyles=c;var p=l.render;l.render=function(v,y){return c.call(y),p(v,y)}}else{var m=l.beforeCreate;l.beforeCreate=m?[].concat(m,c):[c]}return{exports:e,options:l}}const _s={};var fg=Qt(ug,dg,pg,!1,hg);function hg(e){for(let t in _s)this[t]=_s[t]}var pc=(function(){return fg.exports})(),$r={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}},mg={name:"VPopperWrapper",components:{Popper:lc(),PopperContent:pc},mixins:[$r,dc],inheritAttrs:!1,props:{theme:{type:String,default(){return this.$options.vPopperTheme}}},methods:{getTargetNodes(){return Array.from(this.$refs.reference.children).filter(e=>e!==this.$refs.popperContent.$el)}}},vg=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("Popper",e._g(e._b({ref:"popper",attrs:{theme:e.theme,"target-nodes":e.getTargetNodes,"reference-node":function(){return e.$refs.reference},"popper-node":function(){return e.$refs.popperContent.$el}},scopedSlots:e._u([{key:"default",fn:function(o){var i=o.popperId,r=o.isShown,a=o.shouldMountContent,s=o.skipTransition,l=o.autoHide,c=o.show,p=o.hide,m=o.handleResize,v=o.onResize,y=o.classes,S=o.result;return[n("div",{ref:"reference",staticClass:"v-popper",class:[e.themeClass,{"v-popper--shown":r}]},[e._t("default",null,{shown:r,show:c,hide:p}),n("PopperContent",{ref:"popperContent",attrs:{"popper-id":i,theme:e.theme,shown:r,mounted:a,"skip-transition":s,"auto-hide":l,"handle-resize":m,classes:y,result:S},on:{hide:p,resize:v}},[e._t("popper",null,{shown:r,hide:p})],2)],2)]}}],null,!0)},"Popper",e.$attrs,!1),e.$listeners))},gg=[];const ys={};var _g=Qt(mg,vg,gg,!1,yg);function yg(e){for(let t in ys)this[t]=ys[t]}var Cr=(function(){return _g.exports})(),bg=Do(Je({},Cr),{name:"VDropdown",vPopperTheme:"dropdown"});let wg,$g;const bs={};var Cg=Qt(bg,wg,$g,!1,xg);function xg(e){for(let t in bs)this[t]=bs[t]}var ji=(function(){return Cg.exports})(),Sg=Do(Je({},Cr),{name:"VMenu",vPopperTheme:"menu"});let Ag,kg;const ws={};var Tg=Qt(Sg,Ag,kg,!1,Eg);function Eg(e){for(let t in ws)this[t]=ws[t]}var $s=(function(){return Tg.exports})(),Ng=Do(Je({},Cr),{name:"VTooltip",vPopperTheme:"tooltip"});let Og,Pg;const Cs={};var Ig=Qt(Ng,Og,Pg,!1,Mg);function Mg(e){for(let t in Cs)this[t]=Cs[t]}var xs=(function(){return Ig.exports})(),Rg={name:"VTooltipDirective",components:{Popper:lc(),PopperContent:pc},mixins:[$r],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default(){return qt(this.theme,"html")}},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default(){return qt(this.theme,"loadingContent")}}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(e){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,n=this.content(this);n.then?n.then(o=>this.onResult(t,o)):this.onResult(t,n)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}},Lg=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("Popper",e._g(e._b({ref:"popper",attrs:{theme:e.theme,"popper-node":function(){return e.$refs.popperContent.$el}},on:{"apply-show":e.onShow,"apply-hide":e.onHide},scopedSlots:e._u([{key:"default",fn:function(o){var i=o.popperId,r=o.isShown,a=o.shouldMountContent,s=o.skipTransition,l=o.autoHide,c=o.hide,p=o.handleResize,m=o.onResize,v=o.classes,y=o.result;return[n("PopperContent",{ref:"popperContent",class:{"v-popper--tooltip-loading":e.loading},attrs:{"popper-id":i,theme:e.theme,shown:r,mounted:a,"skip-transition":s,"auto-hide":l,"handle-resize":p,classes:v,result:y},on:{hide:c,resize:m}},[e.html?n("div",{domProps:{innerHTML:e._s(e.finalContent)}}):n("div",{domProps:{textContent:e._s(e.finalContent)}})])]}}])},"Popper",e.$attrs,!1),e.$listeners))},Dg=[];const Ss={};var Fg=Qt(Rg,Lg,Dg,!1,zg);function zg(e){for(let t in Ss)this[t]=Ss[t]}var Bg=(function(){return Fg.exports})();const fc="v-popper--has-tooltip";function Hg(e,t){let n=e.placement;if(!n&&t)for(const o of sc)t[o]&&(n=o);return n||(n=qt(e.theme||"tooltip","placement")),n}function hc(e,t,n){let o;const i=typeof t;return i==="string"?o={content:t}:t&&i==="object"?o=t:o={content:!1},o.placement=Hg(o,n),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}function jg(e,t,n){const o=hc(e,t,n),i=e.$_popper=new V({mixins:[$r],data(){return{options:o}},render(a){const s=this.options,{theme:l,html:c,content:p,loadingContent:m}=s,v=Kv(s,["theme","html","content","loadingContent"]);return a(Bg,{props:{theme:l,html:c,content:p,loadingContent:m},attrs:v,ref:"popper"})},devtools:{hide:!0}}),r=document.createElement("div");return document.body.appendChild(r),i.$mount(r),e.classList&&e.classList.add(fc),i}function mc(e){e.$_popper&&(e.$_popper.$destroy(),delete e.$_popper,delete e.$_popperOldShown),e.classList&&e.classList.remove(fc)}function As(e,{value:t,oldValue:n,modifiers:o}){const i=hc(e,t,o);if(!i.content||qt(i.theme||"tooltip","disabled"))mc(e);else{let r;e.$_popper?(r=e.$_popper,r.options=i):r=jg(e,t,o),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?r.show():r.hide())}}var Vg={bind:As,update:As,unbind(e){mc(e)}};function ks(e){e.addEventListener("click",vc),e.addEventListener("touchstart",gc,wt?{passive:!0}:!1)}function Ts(e){e.removeEventListener("click",vc),e.removeEventListener("touchstart",gc),e.removeEventListener("touchend",_c),e.removeEventListener("touchcancel",yc)}function vc(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function gc(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0;const n=e.changedTouches[0];t.$_vclosepopover_touchPoint=n,t.addEventListener("touchend",_c),t.addEventListener("touchcancel",yc)}}function _c(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const n=e.changedTouches[0],o=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-o.screenY)<20&&Math.abs(n.screenX-o.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function yc(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}var Ug={bind(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>"u"||t)&&ks(e)},update(e,{value:t,oldValue:n,modifiers:o}){e.$_closePopoverModifiers=o,t!==n&&(typeof t>"u"||t?ks(e):Ts(e))},unbind(e){Ts(e)}};const Wg=ji;function Gg(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,rc(He,t),e.directive("tooltip",Vg),e.directive("close-popper",Ug),e.component("v-tooltip",xs),e.component("VTooltip",xs),e.component("v-dropdown",ji),e.component("VDropdown",ji),e.component("v-menu",$s),e.component("VMenu",$s))}const qg={version:"1.0.0-beta.19",install:Gg,options:He};let Xn=null;typeof window<"u"?Xn=window.Vue:typeof Vt<"u"&&(Xn=Vt.Vue),Xn&&Xn.use(qg);var bc=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],xo=bc.join(","),wc=typeof Element>"u",$t=wc?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,So=!wc&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},Ao=function e(t,n){var o;n===void 0&&(n=!0);var i=t==null||(o=t.getAttribute)===null||o===void 0?void 0:o.call(t,"inert"),r=i===""||i==="true",a=r||n&&t&&e(t.parentNode);return a},Kg=function(e){var t,n=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return n===""||n==="true"},$c=function(e,t,n){if(Ao(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(xo));return t&&$t.call(e,xo)&&o.unshift(e),o=o.filter(n),o},Cc=function e(t,n,o){for(var i=[],r=Array.from(t);r.length;){var a=r.shift();if(!Ao(a,!1))if(a.tagName==="SLOT"){var s=a.assignedElements(),l=s.length?s:a.children,c=e(l,!0,o);o.flatten?i.push.apply(i,c):i.push({scopeParent:a,candidates:c})}else{var p=$t.call(a,xo);p&&o.filter(a)&&(n||!t.includes(a))&&i.push(a);var m=a.shadowRoot||typeof o.getShadowRoot=="function"&&o.getShadowRoot(a),v=!Ao(m,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(a));if(m&&v){var y=e(m===!0?a.children:m.children,!0,o);o.flatten?i.push.apply(i,y):i.push({scopeParent:a,candidates:y})}else r.unshift.apply(r,a.children)}}return i},xc=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},ht=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Kg(e))&&!xc(e)?0:e.tabIndex},Yg=function(e,t){var n=ht(e);return n<0&&t&&!xc(e)?0:n},Zg=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Sc=function(e){return e.tagName==="INPUT"},Xg=function(e){return Sc(e)&&e.type==="hidden"},Jg=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return t},Qg=function(e,t){for(var n=0;nsummary:first-of-type"),r=i?e.parentElement:e;if($t.call(r,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof o=="function"){for(var a=e;e;){var s=e.parentElement,l=So(e);if(s&&!s.shadowRoot&&o(s)===!0)return Es(e);e.assignedSlot?e=e.assignedSlot:!s&&l!==e.ownerDocument?e=l.host:e=s}e=a}if(o_(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return Es(e);return!1},r_=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var n=0;n=0)},s_=function e(t){var n=[],o=[];return t.forEach(function(i,r){var a=!!i.scopeParent,s=a?i.scopeParent:i,l=Yg(s,a),c=a?e(i.candidates):s;l===0?a?n.push.apply(n,c):n.push(s):o.push({documentOrder:r,tabIndex:l,item:i,isScope:a,content:c})}),o.sort(Zg).reduce(function(i,r){return r.isScope?i.push.apply(i,r.content):i.push(r.content),i},[]).concat(n)},l_=function(e,t){t=t||{};var n;return t.getShadowRoot?n=Cc([e],t.includeContainer,{filter:Vi.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:a_}):n=$c(e,t.includeContainer,Vi.bind(null,t)),s_(n)},c_=function(e,t){t=t||{};var n;return t.getShadowRoot?n=Cc([e],t.includeContainer,{filter:ko.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):n=$c(e,t.includeContainer,ko.bind(null,t)),n},Mt=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return $t.call(e,xo)===!1?!1:Vi(t,e)},u_=bc.concat("iframe").join(","),ui=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return $t.call(e,u_)===!1?!1:ko(t,e)};function Ns(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,o)}return n}function Os(e){for(var t=1;t0){var n=e[e.length-1];n!==t&&n.pause()}var o=e.indexOf(t);o===-1||e.splice(o,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}},h_=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},m_=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},yn=function(e){return e?.key==="Tab"||e?.keyCode===9},v_=function(e){return yn(e)&&!e.shiftKey},g_=function(e){return yn(e)&&e.shiftKey},Is=function(e){return setTimeout(e,0)},Ms=function(e,t){var n=-1;return e.every(function(o,i){return t(o)?(n=i,!1):!0}),n},pn=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o1?u-1:0),g=1;g=0)b=n.activeElement;else{var _=r.tabbableGroups[0],u=_&&_.firstTabbableNode;b=u||c("fallbackFocus")}if(!b)throw new Error("Your focus-trap needs to have at least one focusable element");return b},m=function(){if(r.containerGroups=r.containers.map(function(b){var _=l_(b,i.tabbableOptions),u=c_(b,i.tabbableOptions),f=_.length>0?_[0]:void 0,g=_.length>0?_[_.length-1]:void 0,w=u.find(function(E){return Mt(E)}),A=u.slice().reverse().find(function(E){return Mt(E)}),N=!!_.find(function(E){return ht(E)>0});return{container:b,tabbableNodes:_,focusableNodes:u,posTabIndexesFound:N,firstTabbableNode:f,lastTabbableNode:g,firstDomTabbableNode:w,lastDomTabbableNode:A,nextTabbableNode:function(E){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,D=_.indexOf(E);return D<0?I?u.slice(u.indexOf(E)+1).find(function(T){return Mt(T)}):u.slice(0,u.indexOf(E)).reverse().find(function(T){return Mt(T)}):_[D+(I?1:-1)]}}}),r.tabbableGroups=r.containerGroups.filter(function(b){return b.tabbableNodes.length>0}),r.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(r.containerGroups.find(function(b){return b.posTabIndexesFound})&&r.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.")},v=function b(_){var u=_.activeElement;if(u)return u.shadowRoot&&u.shadowRoot.activeElement!==null?b(u.shadowRoot):u},y=function b(_){if(_!==!1&&_!==v(document)){if(!_||!_.focus){b(p());return}_.focus({preventScroll:!!i.preventScroll}),r.mostRecentlyFocusedNode=_,h_(_)&&_.select()}},S=function(b){var _=c("setReturnFocus",b);return _||(_===!1?!1:b)},O=function(b){var _=b.target,u=b.event,f=b.isBackward,g=f===void 0?!1:f;_=_||Jn(u),m();var w=null;if(r.tabbableGroups.length>0){var A=l(_,u),N=A>=0?r.containerGroups[A]:void 0;if(A<0)g?w=r.tabbableGroups[r.tabbableGroups.length-1].lastTabbableNode:w=r.tabbableGroups[0].firstTabbableNode;else if(g){var E=Ms(r.tabbableGroups,function(oe){var j=oe.firstTabbableNode;return _===j});if(E<0&&(N.container===_||ui(_,i.tabbableOptions)&&!Mt(_,i.tabbableOptions)&&!N.nextTabbableNode(_,!1))&&(E=A),E>=0){var I=E===0?r.tabbableGroups.length-1:E-1,D=r.tabbableGroups[I];w=ht(_)>=0?D.lastTabbableNode:D.lastDomTabbableNode}else yn(u)||(w=N.nextTabbableNode(_,!1))}else{var T=Ms(r.tabbableGroups,function(oe){var j=oe.lastTabbableNode;return _===j});if(T<0&&(N.container===_||ui(_,i.tabbableOptions)&&!Mt(_,i.tabbableOptions)&&!N.nextTabbableNode(_))&&(T=A),T>=0){var W=T===r.tabbableGroups.length-1?0:T+1,F=r.tabbableGroups[W];w=ht(_)>=0?F.firstTabbableNode:F.firstDomTabbableNode}else yn(u)||(w=N.nextTabbableNode(_))}}else w=c("fallbackFocus");return w},x=function(b){var _=Jn(b);if(!(l(_,b)>=0)){if(pn(i.clickOutsideDeactivates,b)){a.deactivate({returnFocus:i.returnFocusOnDeactivate});return}pn(i.allowOutsideClick,b)||b.preventDefault()}},P=function(b){var _=Jn(b),u=l(_,b)>=0;if(u||_ instanceof Document)u&&(r.mostRecentlyFocusedNode=_);else{b.stopImmediatePropagation();var f,g=!0;if(r.mostRecentlyFocusedNode)if(ht(r.mostRecentlyFocusedNode)>0){var w=l(r.mostRecentlyFocusedNode),A=r.containerGroups[w].tabbableNodes;if(A.length>0){var N=A.findIndex(function(E){return E===r.mostRecentlyFocusedNode});N>=0&&(i.isKeyForward(r.recentNavEvent)?N+1=0&&(f=A[N-1],g=!1))}}else r.containerGroups.some(function(E){return E.tabbableNodes.some(function(I){return ht(I)>0})})||(g=!1);else g=!1;g&&(f=O({target:r.mostRecentlyFocusedNode,isBackward:i.isKeyBackward(r.recentNavEvent)})),y(f||r.mostRecentlyFocusedNode||p())}r.recentNavEvent=void 0},$=function(b){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;r.recentNavEvent=b;var u=O({event:b,isBackward:_});u&&(yn(b)&&b.preventDefault(),y(u))},R=function(b){if(m_(b)&&pn(i.escapeDeactivates,b)!==!1){b.preventDefault(),a.deactivate();return}(i.isKeyForward(b)||i.isKeyBackward(b))&&$(b,i.isKeyBackward(b))},L=function(b){var _=Jn(b);l(_,b)>=0||pn(i.clickOutsideDeactivates,b)||pn(i.allowOutsideClick,b)||(b.preventDefault(),b.stopImmediatePropagation())},Y=function(){if(r.active)return Ps.activateTrap(o,a),r.delayInitialFocusTimer=i.delayInitialFocus?Is(function(){y(p())}):y(p()),n.addEventListener("focusin",P,!0),n.addEventListener("mousedown",x,{capture:!0,passive:!1}),n.addEventListener("touchstart",x,{capture:!0,passive:!1}),n.addEventListener("click",L,{capture:!0,passive:!1}),n.addEventListener("keydown",R,{capture:!0,passive:!1}),a},ne=function(){if(r.active)return n.removeEventListener("focusin",P,!0),n.removeEventListener("mousedown",x,!0),n.removeEventListener("touchstart",x,!0),n.removeEventListener("click",L,!0),n.removeEventListener("keydown",R,!0),a},X=function(b){var _=b.some(function(u){var f=Array.from(u.removedNodes);return f.some(function(g){return g===r.mostRecentlyFocusedNode})});_&&y(p())},G=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(X):void 0,Q=function(){G&&(G.disconnect(),r.active&&!r.paused&&r.containers.map(function(b){G.observe(b,{subtree:!0,childList:!0})}))};return a={get active(){return r.active},get paused(){return r.paused},activate:function(b){if(r.active)return this;var _=s(b,"onActivate"),u=s(b,"onPostActivate"),f=s(b,"checkCanFocusTrap");f||m(),r.active=!0,r.paused=!1,r.nodeFocusedBeforeActivation=n.activeElement,_?.();var g=function(){f&&m(),Y(),Q(),u?.()};return f?(f(r.containers.concat()).then(g,g),this):(g(),this)},deactivate:function(b){if(!r.active)return this;var _=Os({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},b);clearTimeout(r.delayInitialFocusTimer),r.delayInitialFocusTimer=void 0,ne(),r.active=!1,r.paused=!1,Q(),Ps.deactivateTrap(o,a);var u=s(_,"onDeactivate"),f=s(_,"onPostDeactivate"),g=s(_,"checkCanReturnFocus"),w=s(_,"returnFocus","returnFocusOnDeactivate");u?.();var A=function(){Is(function(){w&&y(S(r.nodeFocusedBeforeActivation)),f?.()})};return w&&g?(g(S(r.nodeFocusedBeforeActivation)).then(A,A),this):(A(),this)},pause:function(b){if(r.paused||!r.active)return this;var _=s(b,"onPause"),u=s(b,"onPostPause");return r.paused=!0,_?.(),ne(),Q(),u?.(),this},unpause:function(b){if(!r.paused||!r.active)return this;var _=s(b,"onUnpause"),u=s(b,"onPostUnpause");return r.paused=!1,_?.(),m(),Y(),Q(),u?.(),this},updateContainerElements:function(b){var _=[].concat(b).filter(Boolean);return r.containers=_.map(function(u){return typeof u=="string"?n.querySelector(u):u}),r.active&&m(),Q(),this}},a.updateContainerElements(e),a};function Ui(){return window._nc_focus_trap??=[],window._nc_focus_trap}function b_(){let e=[];return{pause(){e=[...Ui()];for(const t of e)t.pause()},unpause(){if(e.length===Ui().length)for(const t of e)t.unpause();e=[]}}}const w_={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.$scopedSlots.default?.({attrs:this.triggerAttrs})}},$_=null,C_=null;var x_=K(w_,$_,C_,!1,null,null);const S_=x_.exports,A_={name:"NcPopover",components:{Dropdown:Wg,NcPopoverTriggerProvider:S_},inheritAttrs:!1,props:{shown:{type:Boolean,default:!1},popupRole:{type:String,default:void 0,validator:e=>["menu","listbox","tree","grid","dialog","true"].includes(e)},popoverBaseClass:{type:String,default:""},focusTrap:{type:Boolean,default:!0},noFocusTrap:{type:Boolean,default:!1},setReturnFocus:{default:void 0,type:[HTMLElement,SVGElement,String,Boolean,Function]}},emits:["after-show","after-hide","update:shown"],data(){return{internalShown:this.shown}},watch:{shown(e){this.internalShown=e},internalShown(e){this.$emit("update:shown",e)}},mounted(){this.checkTriggerA11y()},beforeDestroy(){this.clearFocusTrap(),this.clearEscapeStopPropagation()},methods:{checkTriggerA11y(){window.OC?.debug&&(this.getPopoverTriggerContainerElement().querySelector("[aria-expanded]")||V.util.warn("It looks like you are using a custom button as a or other popover #trigger. If you are not using as a trigger, you need to bind attrs from the #trigger slot props to your custom button. See docs for an example."))},removeFloatingVueAriaDescribedBy(){const e=this.getPopoverTriggerContainerElement().querySelectorAll("[data-popper-shown]");for(const t of e)t.removeAttribute("aria-describedby")},getPopoverContentElement(){return this.$refs.popover?.$refs.popperContent?.$el},getPopoverTriggerContainerElement(){return this.$refs.popover.$refs.reference},async useFocusTrap(){if(await this.$nextTick(),this.noFocusTrap||!this.focusTrap)return;const e=this.getPopoverContentElement();e.tabIndex=-1,e&&(this.$focusTrap=y_(e,{escapeDeactivates:!1,allowOutsideClick:!0,setReturnFocus:this.setReturnFocus,trapStack:Ui(),fallBackFocus:e}),this.$focusTrap.activate())},clearFocusTrap(e={}){try{this.$focusTrap?.deactivate(e),this.$focusTrap=null}catch(t){console.warn(t)}},addEscapeStopPropagation(){this.getPopoverContentElement()?.addEventListener("keydown",this.stopKeydownEscapeHandler)},clearEscapeStopPropagation(){this.getPopoverContentElement()?.removeEventListener("keydown",this.stopKeydownEscapeHandler)},stopKeydownEscapeHandler(e){e.type==="keydown"&&e.key==="Escape"&&e.stopPropagation()},async afterShow(){this.getPopoverContentElement().addEventListener("transitionend",()=>{this.$emit("after-show")},{once:!0,passive:!0}),this.removeFloatingVueAriaDescribedBy(),await this.$nextTick(),await this.useFocusTrap(),this.addEscapeStopPropagation()},afterHide(){this.getPopoverContentElement().addEventListener("transitionend",()=>{this.$emit("after-hide")},{once:!0,passive:!0}),this.clearFocusTrap(),this.clearEscapeStopPropagation()}}};var k_=function(){var e=this,t=e._self._c;return t("Dropdown",e._g(e._b({ref:"popover",attrs:{distance:10,"arrow-padding":10,"no-auto-focus":!0,"popper-class":e.popoverBaseClass,shown:e.internalShown},on:{"update:shown":function(n){e.internalShown=n},"apply-show":e.afterShow,"apply-hide":e.afterHide},scopedSlots:e._u([{key:"popper",fn:function(n){return[e._t("default",null,null,n)]}}],null,!0)},"Dropdown",e.$attrs,!1),e.$listeners),[t("NcPopoverTriggerProvider",{attrs:{shown:e.internalShown,"popup-role":e.popupRole},scopedSlots:e._u([{key:"default",fn:function(n){return[e._t("trigger",null,null,n)]}}],null,!0)})],1)},T_=[],E_=K(A_,k_,T_,!1,null,null);const N_=E_.exports;V.util.warn;function Fo(e){return el()?(pu(e),!0):!1}function Ct(e){return typeof e=="function"?e():ru(e)}const O_=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const P_=e=>e!=null,I_=Object.prototype.toString,M_=e=>I_.call(e)==="[object Object]",R_=()=>{};function L_(e){return qi()}function Ac(e,t=!0,n){L_()?dl(e,n):t?e():Oo(e)}V.util.warn;function Kt(e){var t;const n=Ct(e);return(t=n?.$el)!=null?t:n}const On=O_?window:void 0;function Wi(...e){let t,n,o,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,i]=e,t=On):[t,n,o,i]=e,!t)return R_;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const r=[],a=()=>{r.forEach(p=>p()),r.length=0},s=(p,m,v,y)=>(p.addEventListener(m,v,y),()=>p.removeEventListener(m,v,y)),l=St(()=>[Kt(t),Ct(i)],([p,m])=>{if(a(),!p)return;const v=M_(m)?{...m}:m;r.push(...n.flatMap(y=>o.map(S=>s(p,y,S,v))))},{immediate:!0,flush:"post"}),c=()=>{l(),a()};return Fo(c),c}function D_(){const e=le(!1);return qi()&&dl(()=>{e.value=!0},void 0),e}function xr(e){const t=D_();return me(()=>(t.value,!!e()))}function F_(e,t,n={}){const{window:o=On,...i}=n;let r;const a=xr(()=>o&&"MutationObserver"in o),s=()=>{r&&(r.disconnect(),r=void 0)},l=me(()=>{const v=Ct(e),y=(Array.isArray(v)?v:[v]).map(Kt).filter(P_);return new Set(y)}),c=St(()=>l.value,v=>{s(),a.value&&v.size&&(r=new MutationObserver(t),v.forEach(y=>r.observe(y,i)))},{immediate:!0,flush:"post"}),p=()=>r?.takeRecords(),m=()=>{c(),s()};return Fo(m),{isSupported:a,stop:m,takeRecords:p}}function z_(e,t={}){const{window:n=On}=t,o=xr(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let i;const r=le(!1),a=c=>{r.value=c.matches},s=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",a):i.removeListener(a))},l=lu(()=>{o.value&&(s(),i=n.matchMedia(Ct(e)),"addEventListener"in i?i.addEventListener("change",a):i.addListener(a),r.value=i.matches)});return Fo(()=>{l(),s(),i=void 0}),r}function B_(e,t,n={}){const{window:o=On,...i}=n;let r;const a=xr(()=>o&&"ResizeObserver"in o),s=()=>{r&&(r.disconnect(),r=void 0)},l=me(()=>{const m=Ct(e);return Array.isArray(m)?m.map(v=>Kt(v)):[Kt(m)]}),c=St(l,m=>{if(s(),a.value&&o){r=new ResizeObserver(t);for(const v of m)v&&r.observe(v,i)}},{immediate:!0,flush:"post"}),p=()=>{s(),c()};return Fo(p),{isSupported:a,stop:p}}function Rs(e,t={}){const{reset:n=!0,windowResize:o=!0,windowScroll:i=!0,immediate:r=!0,updateTiming:a="sync"}=t,s=le(0),l=le(0),c=le(0),p=le(0),m=le(0),v=le(0),y=le(0),S=le(0);function O(){const P=Kt(e);if(!P){n&&(s.value=0,l.value=0,c.value=0,p.value=0,m.value=0,v.value=0,y.value=0,S.value=0);return}const $=P.getBoundingClientRect();s.value=$.height,l.value=$.bottom,c.value=$.left,p.value=$.right,m.value=$.top,v.value=$.width,y.value=$.x,S.value=$.y}function x(){a==="sync"?O():a==="next-frame"&&requestAnimationFrame(()=>O())}return B_(e,x),St(()=>Kt(e),P=>!P&&x()),F_(e,x,{attributeFilter:["style","class"]}),i&&Wi("scroll",x,{capture:!0,passive:!0}),o&&Wi("resize",x,{passive:!0}),Ac(()=>{r&&x()}),{height:s,bottom:l,left:c,right:p,top:m,width:v,x:y,y:S,update:x}}function H_(e={}){const{window:t=On,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:i=!0,includeScrollbar:r=!0,type:a="inner"}=e,s=le(n),l=le(o),c=()=>{t&&(a==="outer"?(s.value=t.outerWidth,l.value=t.outerHeight):r?(s.value=t.innerWidth,l.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};if(c(),Ac(c),Wi("resize",c,{passive:!0}),i){const p=z_("(orientation: portrait)");St(p,()=>c())}return{width:s,height:l}}function j_(e,t={}){const n=b_();St(e,()=>{Ct(t.disabled)||(Ct(e)?n.pause():n.unpause())}),Uu(()=>{n.unpause()})}const V_={name:"DotsHorizontalIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var U_=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon dots-horizontal-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{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"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},W_=[],G_=K(V_,U_,W_,!1,null,null);const q_=G_.exports;gr(Uf);const K_=".focusable",Y_={name:"NcActions",components:{NcButton:_r,NcPopover:N_},provide(){return{"NcActions:isSemanticMenu":me(()=>this.actionsMenuSemanticType==="menu")}},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},forceSemanticType:{type:String,default:null,validator(e){return["dialog","menu","expanded","tooltip"].includes(e)}},primary:{type:Boolean,default:!1},type:{type:String,validator(e){return["primary","secondary","tertiary","tertiary-no-background","tertiary-on-primary","error","warning","success"].includes(e)},default:null},defaultIcon:{type:String,default:""},ariaLabel:{type:String,default:vr("Actions")},ariaHidden:{type:Boolean,default:null},placement:{type:String,default:"bottom"},boundariesElement:{type:Element,default:()=>document.querySelector("#content-vue")??document.querySelector("body")},container:{type:[String,Object,Element,Boolean],default:"body"},disabled:{type:Boolean,default:!1},inline:{type:Number,default:0},variant:{type:String,validator(e){return["primary","secondary","tertiary","tertiary-no-background","tertiary-on-primary","error","warning","success"].includes(e)},default:null}},emits:["click","blur","focus","close","closed","open","opened","update:open"],setup(e){const t=`menu-${yr()}`,n=`trigger-${t}`,o=le(),{top:i,bottom:r}=Rs(o),{top:a,bottom:s}=Rs(au(e,"boundariesElement")),{height:l}=H_(),c=me(()=>Math.max(Math.min(i.value-84,i.value-a.value),Math.min(l.value-r.value-34,s.value-r.value)));return{triggerButton:o,maxMenuHeight:c,randomId:t,triggerRandomId:n}},data(){return{opened:this.open,focusIndex:0,actionsMenuSemanticType:"unknown"}},computed:{triggerButtonVariant(){return(this.type??this.variant)||(this.primary?"primary":this.menuName?"secondary":"tertiary")},config(){return{menu:{popupRole:"menu",withArrowNavigation:!0,withTabNavigation:!1,withFocusTrap:!1,triggerA11yAttr:{"aria-controls":this.opened?this.randomId:null},popoverContainerA11yAttrs:{},popoverUlA11yAttrs:{"aria-labelledby":this.triggerRandomId,id:this.randomId,role:"menu"}},expanded:{popupRole:void 0,withArrowNavigation:!1,withTabNavigation:!0,withFocusTrap:!1,triggerA11yAttr:{},popoverContainerA11yAttrs:{},popoverUlA11yAttrs:{}},dialog:{popupRole:"dialog",withArrowNavigation:!1,withTabNavigation:!0,withFocusTrap:!0,triggerA11yAttr:{"aria-controls":this.opened?this.randomId:null},popoverContainerA11yAttrs:{id:this.randomId,role:"dialog","aria-labelledby":this.triggerRandomId,"aria-modal":"true"},popoverUlA11yAttrs:{}},tooltip:{popupRole:void 0,withArrowNavigation:!1,withTabNavigation:!1,withFocusTrap:!1,triggerA11yAttr:{},popoverContainerA11yAttrs:{},popoverUlA11yAttrs:{}},unknown:{popupRole:void 0,role:void 0,withArrowNavigation:!0,withTabNavigation:!1,withFocusTrap:!0,triggerA11yAttr:{},popoverContainerA11yAttrs:{},popoverUlA11yAttrs:{"aria-labelledby":this.triggerRandomId}}}[this.actionsMenuSemanticType]}},watch:{open(e){e!==this.opened&&(this.opened=e)},opened(){this.opened?document.body.addEventListener("keydown",this.handleEscapePressed):document.body.removeEventListener("keydown",this.handleEscapePressed)}},created(){j_(()=>this.opened,{disabled:()=>this.config.withFocusTrap})},methods:{getActionName(e){return e?.componentOptions?.Ctor?.extendOptions?.name??e?.componentOptions?.tag},isValidSingleAction(e){return["NcActionButton","NcActionLink","NcActionRouter"].includes(this.getActionName(e))},isIconUrl(e){try{return!!new URL(e,e.startsWith("/")?window.location.origin:void 0)}catch{return!1}},openMenu(e){this.opened||(this.opened=!0,this.$emit("update:open",!0),this.$emit("open"))},async closeMenu(e=!0){this.opened&&(await this.$nextTick(),this.opened=!1,this.$refs.popover?.clearFocusTrap({returnFocus:e}),this.$emit("update:open",!1),this.$emit("close"),this.focusIndex=0,e&&this.$refs.triggerButton?.$el.focus())},onClosed(){this.$emit("closed")},onOpened(){this.$nextTick(()=>{this.focusFirstAction(null),this.resizePopover(),this.$emit("opened")})},resizePopover(){const e=this.$refs.menu.closest(".v-popper__inner");if(this.$refs.menu.clientHeight>this.maxMenuHeight){let t=0,n=0;for(const o of this.$refs.menuList.children){if(t+o.clientHeight/2>this.maxMenuHeight){e.style.height=`${t-n/2}px`;break}n=o.clientHeight,t+=n}}else e.style.height="fit-content"},getCurrentActiveMenuItemElement(){return this.$refs.menu.querySelector("li.active")},getFocusableMenuItemElements(){return this.$refs.menu.querySelectorAll(K_)},onKeydown(e){if(e.key==="Tab"){if(this.config.withFocusTrap)return;if(!this.config.withTabNavigation){this.closeMenu(!0);return}e.preventDefault();const t=this.getFocusableMenuItemElements(),n=[...t].indexOf(document.activeElement);if(n===-1)return;const o=e.shiftKey?n-1:n+1;(o<0||o===t.length)&&this.closeMenu(!0),this.focusIndex=o,this.focusAction();return}this.config.withArrowNavigation&&(e.key==="ArrowUp"&&this.focusPreviousAction(e),e.key==="ArrowDown"&&this.focusNextAction(e),e.key==="PageUp"&&this.focusFirstAction(e),e.key==="PageDown"&&this.focusLastAction(e)),this.handleEscapePressed(e)},onTriggerKeydown(e){e.key==="Escape"&&this.actionsMenuSemanticType==="tooltip"&&this.closeMenu()},handleEscapePressed(e){e.key==="Escape"&&(this.closeMenu(),e.preventDefault())},removeCurrentActive(){const e=this.$refs.menu.querySelector("li.active");e&&e.classList.remove("active")},focusAction(){const e=this.getFocusableMenuItemElements()[this.focusIndex];if(e){this.removeCurrentActive();const t=e.closest("li.action");e.focus(),t&&t.classList.add("active")}},focusPreviousAction(e){this.opened&&(this.focusIndex===0?this.focusLastAction(e):(this.preventIfEvent(e),this.focusIndex=this.focusIndex-1),this.focusAction())},focusNextAction(e){if(this.opened){const t=this.getFocusableMenuItemElements().length-1;this.focusIndex===t?this.focusFirstAction(e):(this.preventIfEvent(e),this.focusIndex=this.focusIndex+1),this.focusAction()}},focusFirstAction(e){if(this.opened){this.preventIfEvent(e);const t=[...this.getFocusableMenuItemElements()].findIndex(n=>n.getAttribute("aria-checked")==="true"&&n.getAttribute("role")==="menuitemradio");this.focusIndex=t>-1?t:0,this.focusAction()}},focusLastAction(e){this.opened&&(this.preventIfEvent(e),this.focusIndex=this.getFocusableMenuItemElements().length-1,this.focusAction())},preventIfEvent(e){e&&(e.preventDefault(),e.stopPropagation())},onFocus(e){this.$emit("focus",e)},onBlur(e){this.$emit("blur",e),this.actionsMenuSemanticType==="tooltip"&&this.$refs.menu&&this.getFocusableMenuItemElements().length===0&&this.closeMenu(!1)},onClick(e){this.$emit("click",e)}},render(e){const t=(this.$slots.default||[]).filter(s=>this.getActionName(s));if(t.length===0)return;let n=t.filter(this.isValidSingleAction);this.forceMenu&&n.length>0&&this.inline>0&&(V.util.warn("Specifying forceMenu will ignore any inline actions rendering."),n=[]);const o=n.slice(0,this.inline),i=t.filter(s=>!o.includes(s));if(this.forceSemanticType)this.actionsMenuSemanticType=this.forceSemanticType;else{const s=["NcActionInput","NcActionTextEditable"],l=["NcActionButton","NcActionButtonGroup","NcActionCheckbox","NcActionRadio"],c=["NcActionLink","NcActionRouter"],p=i.some(y=>s.includes(this.getActionName(y))),m=i.some(y=>l.includes(this.getActionName(y))),v=i.some(y=>c.includes(this.getActionName(y)));p?this.actionsMenuSemanticType="dialog":m?this.actionsMenuSemanticType="menu":v?this.actionsMenuSemanticType="expanded":t.filter(y=>this.getActionName(y).startsWith("NcAction")).length===t.length?this.actionsMenuSemanticType="tooltip":this.actionsMenuSemanticType="unknown"}const r=s=>{const l=s?.componentOptions?.propsData?.icon,c=s?.data?.scopedSlots?.icon()?.[0]??(this.isIconUrl(l)?e("img",{class:"action-item__menutoggle__icon",attrs:{src:l,alt:""}}):e("span",{class:["icon",l]})),p=s?.data?.attrs||{},m=s?.componentOptions?.listeners?.click,v=s?.componentOptions?.children?.[0]?.text?.trim?.(),y=s?.componentOptions?.propsData?.ariaLabel||v,S=this.forceName?v:"";let O=s?.componentOptions?.propsData?.title;this.forceName||O||(O=v);const x={...s?.componentOptions?.propsData??{}},P=["submit","reset"].includes(x.type)?x.modelValue:"button";return delete x.modelValue,delete x.type,e("NcButton",{class:["action-item action-item--single",s?.data?.staticClass,s?.data?.class],attrs:{...p,"aria-label":y,title:O},ref:s?.data?.ref,props:{...x,disabled:this.disabled||s?.componentOptions?.propsData?.disabled,pressed:s?.componentOptions?.propsData?.modelValue,type:P,variant:(this.type??this.variant)||(S?"secondary":"tertiary")},on:{focus:this.onFocus,blur:this.onBlur,"update:pressed":s?.componentOptions?.listeners?.["update:modelValue"]??(()=>{}),...!!m&&{click:$=>{m&&m($)}}}},[e("template",{slot:"icon"},[c]),S])},a=s=>{const l=this.$slots.icon?.[0]||(this.defaultIcon?e("span",{class:["icon",this.defaultIcon]}):e(q_,{props:{size:20}}));return e("NcPopover",{ref:"popover",props:{delay:0,handleResize:!0,shown:this.opened,placement:this.placement,boundary:this.boundariesElement,container:this.container,popoverBaseClass:"action-item__popper",popupRole:this.config.popupRole,setReturnFocus:this.config.withFocusTrap?this.$refs.triggerButton?.$el:null,focusTrap:this.config.withFocusTrap},attrs:{delay:0,handleResize:!0,shown:this.opened,placement:this.placement,boundary:this.boundariesElement,container:this.container,...this.manualOpen&&{triggers:[]}},on:{show:this.openMenu,"after-show":this.onOpened,hide:this.closeMenu,"after-hide":this.onClosed}},[e("NcButton",{class:"action-item__menutoggle",props:{variant:this.triggerButtonVariant,disabled:this.disabled},slot:"trigger",ref:"triggerButton",attrs:{id:this.triggerRandomId,"aria-label":this.menuName?null:this.ariaLabel,...this.config.triggerA11yAttr},on:{focus:this.onFocus,blur:this.onBlur,click:this.onClick,keydown:this.onTriggerKeydown}},[e("template",{slot:"icon"},[l]),this.menuName]),e("div",{class:{open:this.opened},attrs:{tabindex:"-1",...this.config.popoverContainerA11yAttrs},on:{keydown:this.onKeydown},ref:"menu"},[e("ul",{attrs:{tabindex:"-1",...this.config.popoverUlA11yAttrs},ref:"menuList"},[s])])])};return t.length===1&&n.length===1&&!this.forceMenu?r(t[0]):(this.$nextTick(()=>{this.opened&&this.$refs.menu&&(this.resizePopover(),(this.$refs.menu.querySelector("li.active")||[]).length===0&&this.focusFirstAction())}),o.length>0&&this.inline>0?e("div",{class:["action-items",`action-item--${this.triggerButtonVariant}`]},[...o.map(r),i.length>0?e("div",{class:["action-item",{"action-item--open":this.opened}]},[a(i)]):null]):e("div",{class:["action-item action-item--default-popover",`action-item--${this.triggerButtonVariant}`,{"action-item--open":this.opened}]},[a(t)]))}},Z_=null,X_=null;var J_=K(Y_,Z_,X_,!1,null,"bc42d907");const Q_=J_.exports;var ey="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",ty="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z";const ny={beforeUpdate(){this.text=this.getText()},data(){return{text:this.getText()}},computed:{isLongText(){return this.text&&this.text.trim().length>20}},methods:{getText(){return this.$slots.default?this.$slots.default[0].text.trim():""}}},oy=function(e,t){let n=e.$parent;for(;n;){if(n.$options.name===t)return n;n=n.$parent}},iy={mixins:[ny],props:{icon:{type:String,default:""},name:{type:String,default:""},title:{type:String,default:""},closeAfterClick:{type:Boolean,default:!1},ariaLabel:{type:String,default:null},ariaHidden:{type:Boolean,default:null}},emits:["click"],computed:{isIconUrl(){try{return!!new URL(this.icon,this.icon.startsWith("/")?window.location.origin:void 0)}catch{return!1}}},methods:{onClick(e){if(this.$emit("click",e),this.closeAfterClick){const t=oy(this,"NcActions");t&&t.closeMenu&&t.closeMenu(!1)}}}},Sr={name:"NcIconSvgWrapper",props:{directional:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},svg:{type:String,default:""},name:{type:String,default:""},path:{type:String,default:""},size:{type:[Number,String],default:20,validator:e=>typeof e=="number"||e==="auto"}},computed:{iconSize(){return typeof this.size=="number"?`${this.size}px`:this.size},cleanSvg(){if(!this.svg||this.path)return;const e=Wl.sanitize(this.svg),t=new DOMParser().parseFromString(e,"image/svg+xml");return t.querySelector("parsererror")?(V.util.warn("SVG is not valid"),""):(t.documentElement.id&&t.documentElement.removeAttribute("id"),t.documentElement.outerHTML)}}},Ls=()=>{ju((e,t)=>({adec40c8:e.iconSize}))},Ds=Sr.setup;Sr.setup=Ds?(e,t)=>(Ls(),Ds(e,t)):Ls;const ry=Sr;var ay=function(){var e=this,t=e._self._c;return t("span",{staticClass:"icon-vue",class:{"icon-vue--directional":e.directional,"icon-vue--inline":e.inline},attrs:{"aria-hidden":e.name?void 0:"true","aria-label":e.name||void 0,role:"img"}},[e.cleanSvg?t("span",{domProps:{innerHTML:e._s(e.cleanSvg)}}):t("svg",{attrs:{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:e.path}})])])},sy=[],ly=K(ry,ay,sy,!1,null,"a4f5b92e");const cy=ly.exports,uy={name:"NcActionButton",components:{NcIconSvgWrapper:cy},mixins:[iy],inject:{isInSemanticMenu:{from:"NcActions:isSemanticMenu",default:!1}},props:{ariaHidden:{type:Boolean,default:null},disabled:{type:Boolean,default:!1},isMenu:{type:Boolean,default:!1},type:{type:String,default:"button",validator:e=>["button","checkbox","radio","reset","submit"].includes(e)},modelValue:{type:[Boolean,String],default:null},value:{type:String,default:null},description:{type:String,default:""}},setup(){return{mdiCheck:ey,mdiChevronRight:ty}},computed:{isFocusable(){return!this.disabled},isChecked(){return this.type==="radio"&&typeof this.modelValue!="boolean"?this.modelValue===this.value:this.modelValue},nativeType(){return this.type==="submit"||this.type==="reset"?this.type:"button"},buttonAttributes(){const e={};return this.isInSemanticMenu?(e.role="menuitem",this.type==="radio"?(e.role="menuitemradio",e["aria-checked"]=this.isChecked?"true":"false"):(this.type==="checkbox"||this.nativeType==="button"&&this.modelValue!==null)&&(e.role="menuitemcheckbox",e["aria-checked"]=this.modelValue===null?"mixed":this.modelValue?"true":"false")):this.modelValue!==null&&this.nativeType==="button"&&(e["aria-pressed"]=this.modelValue?"true":"false"),e}},methods:{handleClick(e){this.onClick(e),(this.modelValue!==null||this.type!=="button")&&(this.type==="radio"?typeof this.modelValue!="boolean"?this.isChecked||this.$emit("update:modelValue",this.value):this.$emit("update:modelValue",!this.isChecked):this.$emit("update:modelValue",!this.isChecked))}}};var dy=function(){var e=this,t=e._self._c;return t("li",{staticClass:"action",class:{"action--disabled":e.disabled},attrs:{role:e.isInSemanticMenu&&"presentation"}},[t("button",e._b({class:["action-button button-vue",{"action-button--active":e.isChecked,focusable:e.isFocusable}],attrs:{"aria-label":e.ariaLabel,disabled:e.disabled,title:e.title,type:e.nativeType},on:{click:e.handleClick}},"button",e.buttonAttributes,!1),[e._t("icon",function(){return[t("span",{staticClass:"action-button__icon",class:[e.isIconUrl?"action-button__icon--url":e.icon],style:{backgroundImage:e.isIconUrl?`url(${e.icon})`:null},attrs:{"aria-hidden":"true"}})]}),t("span",{staticClass:"action-button__longtext-wrapper"},[e.name?t("strong",{staticClass:"action-button__name"},[e._v(" "+e._s(e.name)+" ")]):e._e(),e.isLongText?t("span",{staticClass:"action-button__longtext",domProps:{textContent:e._s(e.text)}}):t("span",{staticClass:"action-button__text"},[e._v(" "+e._s(e.text)+" ")]),e.description?t("span",{staticClass:"action-button__description",domProps:{textContent:e._s(e.description)}}):e._e()]),e.isMenu?t("NcIconSvgWrapper",{staticClass:"action-button__menu-icon",attrs:{directional:"",path:e.mdiChevronRight}}):e.isChecked?t("NcIconSvgWrapper",{staticClass:"action-button__pressed-icon",attrs:{path:e.mdiCheck}}):e.isChecked===!1?t("span",{staticClass:"action-button__pressed-icon material-design-icon"}):e._e(),e._e()],2)])},py=[],fy=K(uy,dy,py,!1,null,"102cfc0a");const hy=fy.exports,my={name:"PlusIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var vy=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon plus-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},gy=[],_y=At(my,vy,gy,!1,null);const yy=_y.exports,by={name:"ShieldCheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var wy=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon shield-check-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M10,17L6,13L7.41,11.59L10,14.17L16.59,7.58L18,9M12,1L3,5V11C3,16.55 6.84,21.74 12,23C17.16,21.74 21,16.55 21,11V5L12,1Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},$y=[],Cy=At(by,wy,$y,!1,null);const xy=Cy.exports,Sy={__name:"AddPolicyButton",props:{policies:null},emits:["add-policy"],setup(e){const t=e,n=["account","sharing"],o=me(()=>n.filter(i=>!(i in t.policies)));return{__sfc:!0,props:t,allPasswordContexts:n,unusedPasswordContexts:o,t:Me,PolicyHeadings:ql,NcActions:Q_,NcActionButton:hy,IconPlus:yy,IconShieldCheck:xy}}},Ay="_container_10xyb_2",ky={container:Ay};var Ty=function(){var e=this,t=e._self._c,n=e._self._setupProxy;return t("div",{class:e.$style.container},[t(n.NcActions,{attrs:{"menu-name":n.t("password_policy","Add policy set"),"force-menu":""},scopedSlots:e._u([{key:"icon",fn:function(){return[t(n.IconPlus,{attrs:{size:20}})]},proxy:!0}])},e._l(n.unusedPasswordContexts,function(o){return t(n.NcActionButton,{key:o,attrs:{"close-after-click":""},on:{click:function(i){return e.$emit("add-policy",o)}},scopedSlots:e._u([{key:"icon",fn:function(){return[t(n.IconShieldCheck,{attrs:{size:20}})]},proxy:!0}],null,!0)},[e._v(" "+e._s(n.PolicyHeadings[o])+" ")])}),1)],1)},Ey=[];const Fs={$style:ky};function Ny(e){for(var t in Fs)this[t]=Fs[t]}var Oy=At(Sy,Ty,Ey,!1,Ny);const Py=Oy.exports,Iy={__name:"AdminSettings",setup(e){const t=le(df().password_policy.policies),n=me(()=>Object.keys(t.value));function o(a,s){console.debug(`Update password policy ${a}`,s);for(const[l,c]of Object.entries(s))if(c!==t.value[a]?.[l]){const p=typeof c=="boolean"?c?"1":"0":String(c);window.OCP.AppConfig.setValue("password_policy",a==="account"?l:`${l}_${a}`,p)}V.set(t.value,a,s)}function i(a){if(a in t.value){console.warn(`Password context "${a}" already registered`);return}const s=[...Object.keys(t.value),a];window.OCP.AppConfig.setValue("password_policy","passwordContexts",JSON.stringify(s)),V.set(t.value,a,{...Ff})}function r(a){console.debug(`Remove password policy ${a}`);const s=Object.keys(t.value).filter(l=>l!==a);window.OCP.AppConfig.setValue("password_policy","passwordContexts",JSON.stringify(s)),V.delete(t.value,a)}return{__sfc:!0,policies:t,configuredPolicies:n,onUpdatePolicy:o,onAddPolicy:i,onRemovePolicy:r,t:Me,PolicyHeadings:ql,NcSettingsSection:nh,PasswordPolicy:Im,ComplianceConfig:fv,AddPolicyButton:Py}}},My="_policyWrapper_18ut1_2",Ry={policyWrapper:My};var Ly=function(){var e=this,t=e._self._c,n=e._self._setupProxy;return t(n.NcSettingsSection,{attrs:{name:n.t("password_policy","Password policy")}},[t(n.ComplianceConfig),t("div",{class:e.$style.policyWrapper},[e._l(n.configuredPolicies,function(o){return t(n.PasswordPolicy,{key:o,attrs:{"can-remove":o!=="account",heading:n.configuredPolicies.length===1?n.t("password_policy","General password policies"):n.PolicyHeadings[o],"model-value":n.policies[o]},on:{"update:modelValue":function(i){return n.onUpdatePolicy(o,i)},remove:function(i){return n.onRemovePolicy(o)}}})}),n.configuredPolicies.lengthe(By)}); //# sourceMappingURL=password_policy-settings.mjs.map