@luizleon/sf.prefeiturasp.vuecomponents 4.1.26 → 4.1.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(U,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],s):(U=typeof globalThis<"u"?globalThis:U||self,s((U.sf=U.sf||{},U.sf.prefeiturasp=U.sf.prefeiturasp||{},U.sf.prefeiturasp.vuecomponents={}),U.Vue))})(this,function(U,s){"use strict";var df=Object.defineProperty;var ff=(U,s,pt)=>s in U?df(U,s,{enumerable:!0,configurable:!0,writable:!0,value:pt}):U[s]=pt;var Ke=(U,s,pt)=>ff(U,typeof s!="symbol"?s+"":s,pt);class pt{constructor(){Ke(this,"_visible",s.ref(!1))}get IsVisible(){return this._visible.value===!0}Toggle(){this._visible.value=!this._visible.value}Close(){this._visible.value=!1}Open(){this._visible.value=!0}}const zi=new pt,Bn=()=>zi,an=(t,e)=>{const n=t.__vccOpts||t;for(const[o,r]of e)n[o]=r;return n},Wi={},Gi={xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",class:"sf-svg-icon"};function qi(t,e){return s.openBlock(),s.createElementBlock("svg",Gi,e[0]||(e[0]=[s.createElementVNode("path",{d:"m307.231-83.463-54.999-55.23 343.923-343.922-343.923-343.539 54.999-54.614 398.153 398.153L307.231-83.462Z"},null,-1)]))}const Yi=an(Wi,[["render",qi]]);class Xi{get storedTheme(){return localStorage.getItem("color-scheme")}get IsDark(){return document.documentElement.classList.contains("dark")}Toggle(){this.IsDark?this.EnableLightMode():this.EnableDarkMode()}EnableDarkMode(){document.documentElement.classList.add("dark"),document.documentElement.classList.remove("light"),localStorage.setItem("color-scheme","dark")}EnableLightMode(){document.documentElement.classList.remove("dark"),document.documentElement.classList.add("light"),localStorage.setItem("color-scheme","light")}SetInitialTheme(){if(this.storedTheme==="light")return this.EnableLightMode();if(this.storedTheme==="dark")return this.EnableDarkMode();if(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)return this.EnableDarkMode();this.EnableLightMode()}ClearStoredTheme(){localStorage.removeItem("color-scheme")}}const st=new Xi,Zi=s.defineComponent({__name:"ThemeToggle",setup(t){return(e,n)=>(s.openBlock(),s.createElementBlock("button",{id:"sf-theme-toggle",onClick:n[0]||(n[0]=(...o)=>s.unref(st).Toggle&&s.unref(st).Toggle(...o))},n[1]||(n[1]=[s.createStaticVNode('<svg xmlns="http://www.w3.org/2000/svg" width="472.39" height="472.39" viewBox="0 0 472.39 472.39"><g class="toggle-sun"><path d="M403.21,167V69.18H305.38L236.2,0,167,69.18H69.18V167L0,236.2l69.18,69.18v97.83H167l69.18,69.18,69.18-69.18h97.83V305.38l69.18-69.18Zm-167,198.17a129,129,0,1,1,129-129A129,129,0,0,1,236.2,365.19Z"></path></g><g class="toggle-circle"><circle class="cls-1" cx="236.2" cy="236.2" r="103.78"></circle></g></svg>',1)])))}});function Ao(t=[]){let e="body > *:not(script):not(style)";for(const o of t)e+=`, ${o}`;const n=Math.max(...Array.from(document.querySelectorAll(e)).map(o=>{const r=getComputedStyle(o).zIndex;return+r==+r?+r:0}));return n>=100?n:100}const Nn=s.defineComponent({__name:"Tooltip",props:{text:{}},setup(t){const e=t;class n{constructor(){Ke(this,"wrapper",null);Ke(this,"inner",null)}Render(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("sf-tooltip-wrapper"),this.wrapper.style.zIndex=`${Ao()??1}`,this.inner=document.createElement("div"),this.inner.classList.add("sf-tooltip-inner"),this.wrapper.appendChild(this.inner)}Show(i){this.Render(),this.inner.textContent=e.text,document.body.appendChild(this.wrapper),this.wrapper.classList.add("visible"),this.Position(i)}Hide(){const i=this.wrapper,c=this.inner;!i||!c||(i.classList.remove("visible"),document.body.removeChild(i),this.wrapper=null,this.inner=null)}Position(i){const a=i.currentTarget.getBoundingClientRect();this.FixWidth();const l=this.wrapper;if(!l)return;const d=5;l.style.top=`${a.top+a.height-d}px`,l.style.left=`${a.left+a.width-d}px`,this.OutOfBottom()&&(l.style.top=`${a.top-l.clientHeight+d}px`),this.OutOfRight()&&(l.style.left=`${a.left-l.clientWidth+d}px`)}FixWidth(){const i=this.wrapper;if(!i)return;i.style.width="fit-content",i.style.wordBreak="normal",i.style.whiteSpace="nowrap";const c=window.innerWidth/2;i.clientWidth>c&&(i.style.width=`${c}px`,i.style.wordBreak="break-word",i.style.whiteSpace="normal")}OutOfBottom(){const i=this.wrapper;if(!i)return!1;const c=i.getBoundingClientRect(),a=window.innerHeight||document.documentElement.clientHeight;return c.bottom+10>a}OutOfRight(){const i=this.wrapper;if(!i)return!1;const c=i.getBoundingClientRect(),a=window.innerWidth||document.documentElement.clientWidth;return c.right+10>a}}const o=new n;return s.onBeforeUnmount(()=>{o.Hide()}),(r,i)=>(s.openBlock(),s.createElementBlock("div",{class:"sf-tooltip-anchor",onMouseenter:i[0]||(i[0]=(...c)=>s.unref(o).Show&&s.unref(o).Show(...c)),onMouseleave:i[1]||(i[1]=(...c)=>s.unref(o).Hide&&s.unref(o).Hide(...c)),onMousedown:i[2]||(i[2]=(...c)=>s.unref(o).Hide&&s.unref(o).Hide(...c))},[s.renderSlot(r.$slots,"default")],32))}}),Ji={id:"sf-layout"},Qi={class:"title"},es={class:"sf-layout-nav-content"},ts={id:"sf-layout-content"},ns=s.defineComponent({__name:"Layout",emits:["mounted","logout"],setup(t,{emit:e}){const n=Bn(),o=e;return s.onMounted(()=>{o("mounted")}),(r,i)=>(s.openBlock(),s.createElementBlock("div",Ji,[s.createElementVNode("header",null,[s.createElementVNode("div",{class:s.normalizeClass(["sf-layout-menu-toggler",{invert:s.unref(n).IsVisible}]),onClick:i[0]||(i[0]=c=>s.unref(n).Toggle())},[i[1]||(i[1]=s.createElementVNode("div",{class:"sf-layout-menu-toggler-logo"},null,-1)),s.createVNode(Yi)],2),s.createElementVNode("div",Qi,[s.renderSlot(r.$slots,"title")]),s.renderSlot(r.$slots,"action"),s.createVNode(Nn,{text:"Tema"},{default:s.withCtx(()=>[s.createVNode(Zi)]),_:1})]),s.createElementVNode("nav",{class:s.normalizeClass({visible:s.unref(n).IsVisible})},[s.createElementVNode("div",es,[s.renderSlot(r.$slots,"menu")]),i[2]||(i[2]=s.createElementVNode("div",{class:"sf-layout-nav-footer"},[s.createElementVNode("div",{class:"sf-layout-nav-footer-logo"})],-1))],2),s.createElementVNode("main",{class:s.normalizeClass({"menu-visible":s.unref(n).IsVisible})},[i[3]||(i[3]=s.createElementVNode("section",{id:"sf-layout-page-title"},null,-1)),s.createElementVNode("section",ts,[s.renderSlot(r.$slots,"content")])],2)]))}}),os={},rs={class:"sf-loading-circle"};function is(t,e){return s.openBlock(),s.createElementBlock("div",rs,e[0]||(e[0]=[s.createElementVNode("div",null,[s.createElementVNode("svg",{viewBox:"25 25 50 50"},[s.createElementVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"})])],-1)]))}const ss=an(os,[["render",is]]);class ze{constructor(e){Ke(this,"retorno");this.retorno=e??""}Concat(e){return e&&e.trim().length&&(this.retorno+=` ${e}`),this}AddClass(e,n=!0){return n?this.Concat(e):this}Build(){return this.retorno.trim()}}const as=["disabled","tabindex"],ls=["data-color"],ln=an(s.defineComponent({__name:"Icon",props:{icon:{},visible:{type:Boolean,default:!0},class:{default:""},style:{type:[Boolean,null,String,Object,Array],default:""},disabled:{type:Boolean},loading:{type:Boolean},button:{type:Boolean},size:{default:"md"},dot:{type:Boolean},dotColor:{default:"error"},filled:{type:Boolean},buttonProps:{},tooltip:{},color:{default:"inherit"}},setup(t){const e=t,n=s.computed(()=>e.tooltip?Nn:"div"),o=s.computed(()=>new ze(e.tooltip?"":"display-content").AddClass("sf-component-loading",e.loading).AddClass("sf-component-disabled",e.disabled).Build()),r=s.computed(()=>new ze(`${e.class} sf-icon`).AddClass("sf-component-loading",e.loading).AddClass("sf-component-disabled",e.disabled).AddClass("sf-icon-button",e.button).AddClass("sf-icon-small",e.size==="sm").AddClass("sf-icon-medium",e.size==="md").AddClass("sf-icon-large",e.size==="lg").AddClass("sf-icon-xlarge",e.size==="xl").AddClass("sf-icon-2xlarge",e.size==="2xl").AddClass("sf-icon-3xlarge",e.size==="3xl").AddClass("sf-ripple",e.button===!0).AddClass(`${e.color}-color`,!!e.color&&e.color!=="inherit").Build());return(i,c)=>(s.openBlock(),s.createBlock(s.resolveDynamicComponent(n.value),{text:e.tooltip,class:s.normalizeClass(o.value)},{default:s.withCtx(()=>[e.visible?(s.openBlock(),s.createElementBlock("div",{key:0,style:s.normalizeStyle(e.style),class:s.normalizeClass(r.value)},[s.createElementVNode("button",s.mergeProps({class:["material-symbols-outlined",{"icon-filled":!!e.filled}],disabled:e.disabled||e.loading},e.buttonProps,{tabindex:e.button?void 0:-1}),[e.loading?(s.openBlock(),s.createBlock(ss,{key:0})):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(e.icon),1)],64))],16,as),e.dot?(s.openBlock(),s.createElementBlock("span",{key:0,"data-color":e.dotColor},null,8,ls)):s.createCommentVNode("",!0)],6)):s.createCommentVNode("",!0)]),_:1},8,["text","class"]))}}),[["__scopeId","data-v-545d34b6"]]),cs=s.defineComponent({__name:"ScrollToTop",setup(t){const e=s.ref(!1),n=`--${+new Date}`;let o=null;function r(){o==null||o.scrollTo(0,0)}return s.onMounted(()=>{var i;o=((i=document.getElementById(n))==null?void 0:i.parentElement)??null,o&&o.addEventListener("scroll",function(){e.value=this.scrollTop-this.clientHeight>0})}),(i,c)=>(s.openBlock(),s.createElementBlock("button",{id:n,class:s.normalizeClass(["sf-scrollToTop",{"sf-scrollToTop-visible":e.value}]),onClick:r},null,2))}}),us=s.defineComponent({__name:"Content",props:{class:{},style:{type:[Boolean,null,String,Object,Array]},disableBodyPadding:{type:Boolean},disableHeaderPadding:{type:Boolean},disableFooterPadding:{type:Boolean}},setup(t){const e=t;function n(){return new ze("sf-content").AddClass(e.class,!!e.class).Build()}function o(){return new ze("sf-content-body").AddClass("sf-content-no-padding",e.disableBodyPadding).Build()}function r(){return new ze("sf-content-header").AddClass("sf-content-no-padding",e.disableHeaderPadding).Build()}function i(){return new ze("sf-content-footer").AddClass("sf-content-no-padding",e.disableFooterPadding).Build()}return(c,a)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(n()),style:s.normalizeStyle(e.style)},[s.createElementVNode("div",{class:s.normalizeClass(r())},[s.renderSlot(c.$slots,"header")],2),s.createElementVNode("div",{class:s.normalizeClass(o())},[s.renderSlot(c.$slots,"default"),s.createVNode(cs)],2),s.createElementVNode("div",{class:s.normalizeClass(i())},[s.renderSlot(c.$slots,"footer")],2)],6))}}),ds={class:"sf-tab-navigation"},fs=["data-active"],ms=["href","onClick"],ps=s.defineComponent({__name:"TabNavigation",props:{tabs:{}},setup(t){const e=t,n=s.ref(null),o=new ResizeObserver(l=>{a()}),r=s.ref(!1),i=s.ref(!1);function c(l=!1){const d=n.value.clientWidth;n.value.scrollLeft+=l?-d:d}function a(){const l=n.value.scrollWidth-n.value.clientWidth;r.value=n.value.scrollLeft>10,i.value=n.value.scrollLeft<l-10}return s.onMounted(()=>{n.value.addEventListener("scroll",a),o.observe(n.value)}),s.onBeforeUnmount(()=>{var l;try{(l=n.value)==null||l.removeEventListener("scroll",a),o.unobserve(n.value),o.disconnect()}catch{}}),(l,d)=>{const m=s.resolveComponent("RouterLink");return s.openBlock(),s.createElementBlock("div",ds,[s.createElementVNode("div",{class:s.normalizeClass(["left-arrow",{active:r.value}]),onClick:d[0]||(d[0]=h=>c(!0))},d[2]||(d[2]=[s.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})],-1)]),2),s.createElementVNode("ul",{ref_key:"trackerContainer",ref:n},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.tabs,h=>(s.openBlock(),s.createBlock(m,{to:h.route,custom:!0},{default:s.withCtx(({navigate:v,isActive:C})=>[s.createElementVNode("li",{"data-active":C},[s.renderSlot(l.$slots,"item",{item:h,navigate:v,isActive:C},()=>[s.createElementVNode("a",{href:h.route,class:s.normalizeClass({active:C}),onClick:v},s.toDisplayString(h.text),11,ms)])],8,fs)]),_:2},1032,["to"]))),256))],512),s.createElementVNode("div",{class:s.normalizeClass(["right-arrow",{active:i.value}]),onClick:d[1]||(d[1]=h=>c())},d[3]||(d[3]=[s.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})],-1)]),2)])}}}),hs=["id","name","disabled","data-color","form","type"],gs={class:"sf-button-label"},ys=s.defineComponent({__name:"Button",props:{icon:{},visible:{type:Boolean,default:!0},class:{},style:{type:[Boolean,null,String,Object,Array]},disabled:{type:Boolean},loading:{type:Boolean},color:{default:"primary"},size:{default:"md"},variant:{default:"filled"},autofocus:{type:Boolean},form:{},name:{},id:{},type:{default:"button"},value:{},iconFilled:{type:Boolean}},setup(t){const e=t;function n(){return new ze(`${e.class??""} sf-button`).AddClass("sf-component-loading",e.loading).AddClass("sf-component-disabled",e.disabled).AddClass("sf-button-small",e.size==="sm").AddClass("sf-button-medium",e.size==="md").AddClass("sf-button-large",e.size==="lg").AddClass("sf-button-filled",e.variant==="filled").AddClass("sf-button-text",e.variant==="text").AddClass("sf-button-outlined",e.variant==="outlined").AddClass("sf-button-with-icon",!!e.icon).AddClass("sf-ripple").Build()}return(o,r)=>e.visible?(s.openBlock(),s.createElementBlock("button",{key:0,id:e.id,name:e.name,class:s.normalizeClass(n()),style:s.normalizeStyle(e.style),disabled:e.disabled||e.loading,"data-color":e.color,form:e.form,type:e.type},[e.icon?(s.openBlock(),s.createBlock(ln,{key:0,icon:e.icon,loading:e.loading,size:e.size,color:void 0,"button-props":{tabindex:-1},filled:e.iconFilled},null,8,["icon","loading","size","filled"])):e.loading?(s.openBlock(),s.createBlock(ln,{key:1,loading:!0,size:e.size,"button-props":{tabindex:-1}},null,8,["size"])):s.createCommentVNode("",!0),s.createElementVNode("span",gs,[s.renderSlot(o.$slots,"default")])],14,hs)):s.createCommentVNode("",!0)}}),bs={class:"sf-drawer-header"},vs={class:"sf-drawer-title"},ws={class:"sf-drawer-content"},_s={key:0,class:"sf-drawer-footer"},ks=s.defineComponent({__name:"Drawer",props:{visible:{type:Boolean,default:!1},position:{default:"left"},style:{type:[Boolean,null,String,Object,Array]}},emits:["update:visible","open","before-close"],setup(t,{emit:e}){const n=t,o=e,r=s.useSlots(),i=s.ref(n.visible),c=s.ref(!1),a=s.ref(0),l="sf-drawer-"+Math.random().toString(36).slice(2,11)+"-"+Date.now();function d(){i.value=!1}function m(x){(x.key==="Escape"||x.code==="Escape")&&d()}function h(){o("open"),window.document.addEventListener("keydown",m,!0)}function v(x){a.value=Ao(),x.style.zIndex=`${a.value}`}function C(x){var R;o("before-close"),(R=x==null?void 0:x.parentElement)==null||R.classList.add("sf-mask-overlay-leave")}function T(){window.document.removeEventListener("keydown",m,!0),c.value=!1}function $(){return new ze("sf-mask sf-mask-overlay").AddClass("right",n.position==="right").AddClass("bottom",n.position==="bottom").AddClass("full",n.position==="full").AddClass("sf-mask-overlay-enter",n.visible===!0).Build()}return s.watch(()=>n.visible,x=>{i.value=x}),s.watch(()=>i.value,x=>{o("update:visible",x),x&&(c.value=!0)}),(x,R)=>(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[c.value?(s.openBlock(),s.createElementBlock("div",{key:0,id:l,class:s.normalizeClass($()),style:s.normalizeStyle({zIndex:a.value-1}),onClick:s.withModifiers(d,["stop"])},[s.createVNode(s.Transition,{name:"sf-drawer",appear:"",onBeforeEnter:v,onEnter:h,onBeforeLeave:C,onAfterLeave:T},{default:s.withCtx(()=>[i.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["sf-drawer",{"sf-drawer-with-footer":!!s.unref(r).footer}]),style:s.normalizeStyle(n.style),role:"dialog",onClick:R[0]||(R[0]=s.withModifiers(I=>x.void,["stop"]))},[s.createElementVNode("div",bs,[s.createElementVNode("span",vs,[s.renderSlot(x.$slots,"title")]),s.createVNode(ln,{button:!0,icon:"close",onClick:s.withModifiers(d,["stop"])})]),s.createElementVNode("div",ws,[s.renderSlot(x.$slots,"default")]),s.unref(r).footer?(s.openBlock(),s.createElementBlock("div",_s,[s.renderSlot(x.$slots,"footer")])):s.createCommentVNode("",!0)],6)):s.createCommentVNode("",!0)]),_:3})],6)):s.createCommentVNode("",!0)]))}}),Ss=["data-icon"],Cs=s.defineComponent({__name:"Message",props:{color:{default:"info"},class:{},style:{type:[Boolean,null,String,Object,Array]},icon:{}},setup(t){const e=t,n=s.computed(()=>{if(e.icon)return e.icon;switch(e.color){case"error":return"cancel";case"info":return"info";case"warn":return"warning";case"success":return"check";case"help":return"help";default:return null}}),o=s.computed(()=>new ze("sf-message").AddClass("sf-message-error",e.color==="error").AddClass("sf-message-info",e.color==="info").AddClass("sf-message-warning",e.color==="warn").AddClass("sf-message-success",e.color==="success").AddClass("sf-message-help",e.color==="help").AddClass("sf-message-primary",e.color==="primary").AddClass("sf-message-secondary",e.color==="secondary").AddClass(e.class).Build());return(r,i)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(o.value),"data-icon":n.value},[s.renderSlot(r.$slots,"default")],10,Ss))}});function Is(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function Ts(t,e){if(t&&e){const n=o=>{Is(t,o)||(t.classList?t.classList.add(o):t.className+=" "+o)};[e].flat().filter(Boolean).forEach(o=>o.split(" ").forEach(n))}}function Dn(t,e){if(t&&e){const n=o=>{t.classList?t.classList.remove(o):t.className=t.className.replace(new RegExp("(^|\\b)"+o.split(" ").join("|")+"(\\b|$)","gi")," ")};[e].flat().filter(Boolean).forEach(o=>o.split(" ").forEach(n))}}function Es(t,e){return t instanceof HTMLElement?t.offsetWidth:0}function cn(t){return typeof HTMLElement=="object"?t instanceof HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string"}function un(t,e={}){if(cn(t)){const n=(o,r)=>{var i,c;const a=(i=t==null?void 0:t.$attrs)!=null&&i[o]?[(c=t==null?void 0:t.$attrs)==null?void 0:c[o]]:[];return[r].flat().reduce((l,d)=>{if(d!=null){const m=typeof d;if(m==="string"||m==="number")l.push(d);else if(m==="object"){const h=Array.isArray(d)?n(o,d):Object.entries(d).map(([v,C])=>o==="style"&&(C||C===0)?`${v.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${C}`:C?v:void 0);l=h.length?l.concat(h.filter(v=>!!v)):l}}return l},a)};Object.entries(e).forEach(([o,r])=>{if(r!=null){const i=o.match(/^on(.+)/);i?t.addEventListener(i[1].toLowerCase(),r):o==="p-bind"?un(t,r):(r=o==="class"?[...new Set(n("class",r))].join(" ").trim():o==="style"?n("style",r).join(";").trim():r,(t.$attrs=t.$attrs||{})&&(t.$attrs[o]=r),t.setAttribute(o,r))}})}}function Ps(t,e={},...n){{const o=document.createElement(t);return un(o,e),o.append(...n),o}}function Le(t,e){return cn(t)?t.matches(e)?t:t.querySelector(e):null}function Pt(t,e){t&&document.activeElement!==t&&t.focus(e)}function At(t,e){if(cn(t)){const n=t.getAttribute(e);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function xo(t){if(t){let e=t.offsetHeight,n=getComputedStyle(t);return e-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),e}return 0}function As(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function xs(t){if(t){let e=t.getBoundingClientRect();return{top:e.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:e.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:"auto",left:"auto"}}function Ls(t,e){return t?t.offsetHeight:0}function Os(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&As(t))}function Lo(t){if(t){let e=t.offsetWidth,n=getComputedStyle(t);return e-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth),e}return 0}function $s(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Bs(t,e="",n){cn(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}function Oo(){const t=new Map;return{on(e,n){let o=t.get(e);return o?o.push(n):o=[n],t.set(e,o),this},off(e,n){let o=t.get(e);return o&&o.splice(o.indexOf(n)>>>0,1),this},emit(e,n){let o=t.get(e);o&&o.slice().map(r=>{r(n)})},clear(){t.clear()}}}function at(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function Mn(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){var n=Array.isArray(t),o=Array.isArray(e),r,i,c;if(n&&o){if(i=t.length,i!=e.length)return!1;for(r=i;r--!==0;)if(!Mn(t[r],e[r]))return!1;return!0}if(n!=o)return!1;var a=t instanceof Date,l=e instanceof Date;if(a!=l)return!1;if(a&&l)return t.getTime()==e.getTime();var d=t instanceof RegExp,m=e instanceof RegExp;if(d!=m)return!1;if(d&&m)return t.toString()==e.toString();var h=Object.keys(t);if(i=h.length,i!==Object.keys(e).length)return!1;for(r=i;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,h[r]))return!1;for(r=i;r--!==0;)if(c=h[r],!Mn(t[c],e[c]))return!1;return!0}return t!==t&&e!==e}function Rn(t){return!!(t&&t.constructor&&t.call&&t.apply)}function G(t){return!at(t)}function ht(t,e,n){return Mn(t,e)}function $o(t,e){let n;if(G(t))try{n=t.findLast(e)}catch{n=[...t].reverse().find(e)}return n}function Qe(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function _e(t,...e){return Rn(t)?t(...e):t}function pe(t,e=!0){return typeof t=="string"&&(e||t!=="")}function Oe(t){return pe(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function Un(t,e="",n={}){const o=Oe(e).split("."),r=o.shift();return r?Qe(t)?Un(_e(t[Object.keys(t).find(i=>Oe(i)===r)||""],n),o.join("."),n):void 0:_e(t,n)}function Vn(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function Bo(t){return G(t)&&!isNaN(t)}function Ns(t=""){return G(t)&&t.length===1&&!!t.match(/\S| /)}function We(t,e){if(e){const n=e.test(t);return e.lastIndex=0,n}return!1}function xt(t){return t&&t.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":")}function Ds(t){return pe(t,!1)?t[0].toUpperCase()+t.slice(1):t}function No(t){return pe(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,n)=>n===0?e:"-"+e.toLowerCase()).toLowerCase():t}function Do(t){return pe(t)?t.replace(/[A-Z]/g,(e,n)=>n===0?e:"."+e.toLowerCase()).toLowerCase():t}var dn={};function Ms(t="pui_id_"){return dn.hasOwnProperty(t)||(dn[t]=0),dn[t]++,`${t}${dn[t]}`}function fn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pv_id_";return Ms(t)}var Rs=Object.defineProperty,Us=Object.defineProperties,Vs=Object.getOwnPropertyDescriptors,mn=Object.getOwnPropertySymbols,Mo=Object.prototype.hasOwnProperty,Ro=Object.prototype.propertyIsEnumerable,Uo=(t,e,n)=>e in t?Rs(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Lt=(t,e)=>{for(var n in e||(e={}))Mo.call(e,n)&&Uo(t,n,e[n]);if(mn)for(var n of mn(e))Ro.call(e,n)&&Uo(t,n,e[n]);return t},Hn=(t,e)=>Us(t,Vs(e)),Ot=(t,e)=>{var n={};for(var o in t)Mo.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&mn)for(var o of mn(t))e.indexOf(o)<0&&Ro.call(t,o)&&(n[o]=t[o]);return n},Hs=Oo(),Ge=Hs;function Vo(t,e){Vn(t)?t.push(...e||[]):Qe(t)&&Object.assign(t,e)}function js(t){return Qe(t)&&t.hasOwnProperty("value")&&t.hasOwnProperty("type")?t.value:t}function Ho(t,e=""){return["opacity","z-index","line-height","font-weight","flex","flex-grow","flex-shrink","order"].some(o=>e.endsWith(o))?t:`${t}`.trim().split(" ").map(i=>Bo(i)?`${i}px`:i).join(" ")}function Fs(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function jn(t="",e=""){return Fs(`${pe(t,!1)&&pe(e,!1)?`${t}-`:t}${e}`)}function jo(t="",e=""){return`--${jn(t,e)}`}function Fo(t,e="",n="",o=[],r){if(pe(t)){const i=/{([^}]*)}/g,c=t.trim();if(We(c,i)){const a=c.replaceAll(i,m=>{const v=m.replace(/{|}/g,"").split(".").filter(C=>!o.some(T=>We(C,T)));return`var(${jo(n,No(v.join("-")))}${G(r)?`, ${r}`:""})`}),l=/(\d+\s+[\+\-\*\/]\s+\d+)/g,d=/var\([^)]+\)/g;return We(a.replace(d,"0"),l)?`calc(${a})`:a}return Ho(c,e)}else if(Bo(t))return Ho(t,e)}function Ks(t,e,n){pe(e,!1)&&t.push(`${e}:${n};`)}function $t(t,e){return t?`${t}{${e}}`:""}var Fn=(...t)=>zs(Z.getTheme(),...t),zs=(t={},e,n,o="variable")=>{if(e){const{variable:r,options:i}=Z.defaults||{},{prefix:c,transform:a}=(t==null?void 0:t.options)||i||{},d=We(e,/{([^}]*)}/g)?e:`{${e}}`;return o==="value"||a==="strict"?Z.getTokenValue(e):Fo(d,void 0,c,[r.excludedKeyRegex],n)}return""};function Ws(t,e={}){const n=Z.defaults.variable,{prefix:o=n.prefix,selector:r=n.selector,excludedKeyRegex:i=n.excludedKeyRegex}=e,c=(d,m="")=>Object.entries(d).reduce((h,[v,C])=>{const T=We(v,i)?jn(m):jn(m,No(v)),$=js(C);if(Qe($)){const{variables:x,tokens:R}=c($,T);Vo(h.tokens,R),Vo(h.variables,x)}else h.tokens.push((o?T.replace(`${o}-`,""):T).replaceAll("-",".")),Ks(h.variables,jo(T),Fo($,T,o,[i]));return h},{variables:[],tokens:[]}),{variables:a,tokens:l}=c(t,o);return{value:a,tokens:l,declarations:a.join(""),css:$t(r,a.join(""))}}var $e={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(t){return{type:"class",selector:t,matched:this.pattern.test(t.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(t){return{type:"attr",selector:`:root${t}`,matched:this.pattern.test(t.trim())}}},media:{pattern:/^@media (.*)$/,resolve(t){return{type:"media",selector:`${t}{:root{[CSS]}}`,matched:this.pattern.test(t.trim())}}},system:{pattern:/^system$/,resolve(t){return{type:"system",selector:"@media (prefers-color-scheme: dark){:root{[CSS]}}",matched:this.pattern.test(t.trim())}}},custom:{resolve(t){return{type:"custom",selector:t,matched:!0}}}},resolve(t){const e=Object.keys(this.rules).filter(n=>n!=="custom").map(n=>this.rules[n]);return[t].flat().map(n=>{var o;return(o=e.map(r=>r.resolve(n)).find(r=>r.matched))!=null?o:this.rules.custom.resolve(n)})}},_toVariables(t,e){return Ws(t,{prefix:e==null?void 0:e.prefix})},getCommon({name:t="",theme:e={},params:n,set:o,defaults:r}){var i,c,a,l;const{preset:d,options:m}=e;let h,v,C,T;if(G(d)){const{primitive:$,semantic:x}=d,R=x||{},{colorScheme:I}=R,B=Ot(R,["colorScheme"]),F=I||{},{dark:J}=F,ye=Ot(F,["dark"]),ee=G($)?this._toVariables({primitive:$},m):{},De=G(B)?this._toVariables({semantic:B},m):{},Ie=G(ye)?this._toVariables({light:ye},m):{},Y=G(J)?this._toVariables({dark:J},m):{},[Q,be]=[(i=ee.declarations)!=null?i:"",ee.tokens],[Me,Te]=[(c=De.declarations)!=null?c:"",De.tokens||[]],[it,Ye]=[(a=Ie.declarations)!=null?a:"",Ie.tokens||[]],[Ve,He]=[(l=Y.declarations)!=null?l:"",Y.tokens||[]];h=this.transformCSS(t,Q,"light","variable",m,o,r),v=be;const mt=this.transformCSS(t,`${Me}${it}color-scheme:light`,"light","variable",m,o,r),xe=this.transformCSS(t,`${Ve}color-scheme:dark`,"dark","variable",m,o,r);C=`${mt}${xe}`,T=[...new Set([...Te,...Ye,...He])]}return{primitive:{css:h,tokens:v},semantic:{css:C,tokens:T}}},getPreset({name:t="",preset:e={},options:n,params:o,set:r,defaults:i,selector:c}){var a,l,d;const m=t.replace("-directive",""),h=e,{colorScheme:v}=h,C=Ot(h,["colorScheme"]),T=v||{},{dark:$}=T,x=Ot(T,["dark"]),R=G(C)?this._toVariables({[m]:C},n):{},I=G(x)?this._toVariables({[m]:x},n):{},B=G($)?this._toVariables({[m]:$},n):{},[F,J]=[(a=R.declarations)!=null?a:"",R.tokens||[]],[ye,ee]=[(l=I.declarations)!=null?l:"",I.tokens||[]],[De,Ie]=[(d=B.declarations)!=null?d:"",B.tokens||[]],Y=[...new Set([...J,...ee,...Ie])],Q=this.transformCSS(m,`${F}${ye}`,"light","variable",n,r,i,c),be=this.transformCSS(m,De,"dark","variable",n,r,i,c);return{css:`${Q}${be}`,tokens:Y}},getPresetC({name:t="",theme:e={},params:n,set:o,defaults:r}){var i;const{preset:c,options:a}=e,l=(i=c==null?void 0:c.components)==null?void 0:i[t];return this.getPreset({name:t,preset:l,options:a,params:n,set:o,defaults:r})},getPresetD({name:t="",theme:e={},params:n,set:o,defaults:r}){var i;const c=t.replace("-directive",""),{preset:a,options:l}=e,d=(i=a==null?void 0:a.directives)==null?void 0:i[c];return this.getPreset({name:c,preset:d,options:l,params:n,set:o,defaults:r})},getColorSchemeOption(t,e){var n;return this.regex.resolve((n=t.darkModeSelector)!=null?n:e.options.darkModeSelector)},getLayerOrder(t,e={},n,o){const{cssLayer:r}=e;return r?`@layer ${_e(r.order||"primeui",n)}`:""},getCommonStyleSheet({name:t="",theme:e={},params:n,props:o={},set:r,defaults:i}){const c=this.getCommon({name:t,theme:e,params:n,set:r,defaults:i}),a=Object.entries(o).reduce((l,[d,m])=>l.push(`${d}="${m}"`)&&l,[]).join(" ");return Object.entries(c||{}).reduce((l,[d,m])=>{if(m!=null&&m.css){const h=xt(m==null?void 0:m.css),v=`${d}-variables`;l.push(`<style type="text/css" data-primevue-style-id="${v}" ${a}>${h}</style>`)}return l},[]).join("")},getStyleSheet({name:t="",theme:e={},params:n,props:o={},set:r,defaults:i}){var c;const a={name:t,theme:e,params:n,set:r,defaults:i},l=(c=t.includes("-directive")?this.getPresetD(a):this.getPresetC(a))==null?void 0:c.css,d=Object.entries(o).reduce((m,[h,v])=>m.push(`${h}="${v}"`)&&m,[]).join(" ");return l?`<style type="text/css" data-primevue-style-id="${t}-variables" ${d}>${xt(l)}</style>`:""},createTokens(t={},e,n="",o="",r={}){return Object.entries(t).forEach(([i,c])=>{const a=We(i,e.variable.excludedKeyRegex)?n:n?`${n}.${Do(i)}`:Do(i),l=o?`${o}.${i}`:i;Qe(c)?this.createTokens(c,e,a,l,r):(r[a]||(r[a]={paths:[],computed(d,m={}){if(d){const h=this.paths.find(v=>v.scheme===d)||this.paths.find(v=>v.scheme==="none");return h==null?void 0:h.computed(d,m.binding)}return this.paths.map(h=>h.computed(h.scheme,m[h.scheme]))}}),r[a].paths.push({path:l,value:c,scheme:l.includes("colorScheme.light")?"light":l.includes("colorScheme.dark")?"dark":"none",computed(d,m={}){const h=/{([^}]*)}/g;let v=c;if(m.name=this.path,m.binding||(m.binding={}),We(c,h)){const T=c.trim().replaceAll(h,R=>{var I,B;const F=R.replace(/{|}/g,"");return(B=(I=r[F])==null?void 0:I.computed(d,m))==null?void 0:B.value}),$=/(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g,x=/var\([^)]+\)/g;v=We(T.replace(x,"0"),$)?`calc(${T})`:T}return at(m.binding)&&delete m.binding,{colorScheme:d,path:this.path,paths:m,value:v.includes("undefined")?void 0:v}}}))}),r},getTokenValue(t,e,n){var o;const i=(l=>l.split(".").filter(m=>!We(m.toLowerCase(),n.variable.excludedKeyRegex)).join("."))(e),c=e.includes("colorScheme.light")?"light":e.includes("colorScheme.dark")?"dark":void 0,a=[(o=t[i])==null?void 0:o.computed(c)].flat().filter(l=>l);return a.length===1?a[0].value:a.reduce((l={},d)=>{const m=d,{colorScheme:h}=m,v=Ot(m,["colorScheme"]);return l[h]=v,l},void 0)},transformCSS(t,e,n,o,r={},i,c,a){if(G(e)){const{cssLayer:l}=r;if(o!=="style"){const d=this.getColorSchemeOption(r,c),m=a?$t(a,e):e;e=n==="dark"?d.reduce((h,{selector:v})=>(G(v)&&(h+=v.includes("[CSS]")?v.replace("[CSS]",m):$t(v,m)),h),""):$t(a??":root",e)}if(l){const d={name:"primeui",order:"primeui"};Qe(l)&&(d.name=_e(l.name,{name:t,type:o})),G(d.name)&&(e=$t(`@layer ${d.name}`,e),i==null||i.layerNames(d.name))}return e}return""}},Z={defaults:{variable:{prefix:"p",selector:":root",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(t={}){const{theme:e}=t;e&&(this._theme=Hn(Lt({},e),{options:Lt(Lt({},this.defaults.options),e.options)}),this._tokens=$e.createTokens(this.preset,this.defaults),this.clearLoadedStyleNames())},get theme(){return this._theme},get preset(){var t;return((t=this.theme)==null?void 0:t.preset)||{}},get options(){var t;return((t=this.theme)==null?void 0:t.options)||{}},get tokens(){return this._tokens},getTheme(){return this.theme},setTheme(t){this.update({theme:t}),Ge.emit("theme:change",t)},getPreset(){return this.preset},setPreset(t){this._theme=Hn(Lt({},this.theme),{preset:t}),this._tokens=$e.createTokens(t,this.defaults),this.clearLoadedStyleNames(),Ge.emit("preset:change",t),Ge.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(t){this._theme=Hn(Lt({},this.theme),{options:t}),this.clearLoadedStyleNames(),Ge.emit("options:change",t),Ge.emit("theme:change",this.theme)},getLayerNames(){return[...this._layerNames]},setLayerNames(t){this._layerNames.add(t)},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(t){return this._loadedStyleNames.has(t)},setLoadedStyleName(t){this._loadedStyleNames.add(t)},deleteLoadedStyleName(t){this._loadedStyleNames.delete(t)},clearLoadedStyleNames(){this._loadedStyleNames.clear()},getTokenValue(t){return $e.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return $e.getCommon({name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(t="",e){const n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return $e.getPresetC(n)},getDirective(t="",e){const n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return $e.getPresetD(n)},getCustomPreset(t="",e,n,o){const r={name:t,preset:e,options:this.options,selector:n,params:o,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return $e.getPreset(r)},getLayerOrderCSS(t=""){return $e.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,n="style",o){return $e.transformCSS(t,e,o,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,n={}){return $e.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,n={}){return $e.getStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},onStyleMounted(t){this._loadingStyles.add(t)},onStyleUpdated(t){this._loadingStyles.add(t)},onStyleLoaded(t,{name:e}){this._loadingStyles.size&&(this._loadingStyles.delete(e),Ge.emit(`theme:${e}:load`,t),!this._loadingStyles.size&&Ge.emit("theme:load"))}},et={_loadedStyleNames:new Set,getLoadedStyleNames:function(){return this._loadedStyleNames},isStyleNameLoaded:function(e){return this._loadedStyleNames.has(e)},setLoadedStyleName:function(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName:function(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames:function(){this._loadedStyleNames.clear()}};function Bt(t){"@babel/helpers - typeof";return Bt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bt(t)}function Ko(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,o)}return n}function zo(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ko(Object(n),!0).forEach(function(o){Gs(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ko(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Gs(t,e,n){return(e=qs(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function qs(t){var e=Ys(t,"string");return Bt(e)=="symbol"?e:e+""}function Ys(t,e){if(Bt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(Bt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Xs(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;s.getCurrentInstance()?s.onMounted(t):e?t():s.nextTick(t)}var Zs=0;function Js(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=s.ref(!1),o=s.ref(t),r=s.ref(null),i=$s()?window.document:void 0,c=e.document,a=c===void 0?i:c,l=e.immediate,d=l===void 0?!0:l,m=e.manual,h=m===void 0?!1:m,v=e.name,C=v===void 0?"style_".concat(++Zs):v,T=e.id,$=T===void 0?void 0:T,x=e.media,R=x===void 0?void 0:x,I=e.nonce,B=I===void 0?void 0:I,F=e.first,J=F===void 0?!1:F,ye=e.onMounted,ee=ye===void 0?void 0:ye,De=e.onUpdated,Ie=De===void 0?void 0:De,Y=e.onLoad,Q=Y===void 0?void 0:Y,be=e.props,Me=be===void 0?{}:be,Te=function(){},it=function(He){var mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a){var xe=zo(zo({},Me),mt),u=xe.name||C,p=xe.id||$,b=xe.nonce||B;r.value=a.querySelector('style[data-primevue-style-id="'.concat(u,'"]'))||a.getElementById(p)||a.createElement("style"),r.value.isConnected||(o.value=He||t,un(r.value,{type:"text/css",id:p,media:R,nonce:b}),J?a.head.prepend(r.value):a.head.appendChild(r.value),Bs(r.value,"data-primevue-style-id",u),un(r.value,xe),r.value.onload=function(S){return Q==null?void 0:Q(S,{name:u})},ee==null||ee(u)),!n.value&&(Te=s.watch(o,function(S){r.value.textContent=S,Ie==null||Ie(u)},{immediate:!0}),n.value=!0)}},Ye=function(){!a||!n.value||(Te(),Os(r.value)&&a.head.removeChild(r.value),n.value=!1)};return d&&!h&&Xs(it),{id:$,name:C,el:r,css:o,unload:Ye,load:it,isLoaded:s.readonly(n)}}function Nt(t){"@babel/helpers - typeof";return Nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nt(t)}function Wo(t,e){return na(t)||ta(t,e)||ea(t,e)||Qs()}function Qs(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ (function(U,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],s):(U=typeof globalThis<"u"?globalThis:U||self,s((U.sf=U.sf||{},U.sf.prefeiturasp=U.sf.prefeiturasp||{},U.sf.prefeiturasp.vuecomponents={}),U.Vue))})(this,function(U,s){"use strict";var df=Object.defineProperty;var ff=(U,s,pt)=>s in U?df(U,s,{enumerable:!0,configurable:!0,writable:!0,value:pt}):U[s]=pt;var Re=(U,s,pt)=>ff(U,typeof s!="symbol"?s+"":s,pt);class pt{constructor(){Re(this,"_visible",s.ref(!1))}get IsVisible(){return this._visible.value===!0}Toggle(){this._visible.value=!this._visible.value}Close(){this._visible.value=!1}Open(){this._visible.value=!0}}const zi=new pt,Bn=()=>zi,an=(t,e)=>{const n=t.__vccOpts||t;for(const[o,r]of e)n[o]=r;return n},Wi={},Gi={xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",class:"sf-svg-icon"};function qi(t,e){return s.openBlock(),s.createElementBlock("svg",Gi,e[0]||(e[0]=[s.createElementVNode("path",{d:"m307.231-83.463-54.999-55.23 343.923-343.922-343.923-343.539 54.999-54.614 398.153 398.153L307.231-83.462Z"},null,-1)]))}const Yi=an(Wi,[["render",qi]]);class Xi{get storedTheme(){return localStorage.getItem("color-scheme")}get IsDark(){return document.documentElement.classList.contains("dark")}Toggle(){this.IsDark?this.EnableLightMode():this.EnableDarkMode()}EnableDarkMode(){document.documentElement.classList.add("dark"),document.documentElement.classList.remove("light"),localStorage.setItem("color-scheme","dark")}EnableLightMode(){document.documentElement.classList.remove("dark"),document.documentElement.classList.add("light"),localStorage.setItem("color-scheme","light")}SetInitialTheme(){if(this.storedTheme==="light")return this.EnableLightMode();if(this.storedTheme==="dark")return this.EnableDarkMode();if(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)return this.EnableDarkMode();this.EnableLightMode()}ClearStoredTheme(){localStorage.removeItem("color-scheme")}}const st=new Xi,Zi=s.defineComponent({__name:"ThemeToggle",setup(t){return(e,n)=>(s.openBlock(),s.createElementBlock("button",{id:"sf-theme-toggle",onClick:n[0]||(n[0]=(...o)=>s.unref(st).Toggle&&s.unref(st).Toggle(...o))},n[1]||(n[1]=[s.createStaticVNode('<svg xmlns="http://www.w3.org/2000/svg" width="472.39" height="472.39" viewBox="0 0 472.39 472.39"><g class="toggle-sun"><path d="M403.21,167V69.18H305.38L236.2,0,167,69.18H69.18V167L0,236.2l69.18,69.18v97.83H167l69.18,69.18,69.18-69.18h97.83V305.38l69.18-69.18Zm-167,198.17a129,129,0,1,1,129-129A129,129,0,0,1,236.2,365.19Z"></path></g><g class="toggle-circle"><circle class="cls-1" cx="236.2" cy="236.2" r="103.78"></circle></g></svg>',1)])))}});function Po(t=[]){let e="body > *:not(script):not(style)";for(const o of t)e+=`, ${o}`;const n=Math.max(...Array.from(document.querySelectorAll(e)).map(o=>{const r=getComputedStyle(o).zIndex;return+r==+r?+r:0}));return n>=100?n:100}const Nn=s.defineComponent({__name:"Tooltip",props:{text:{}},setup(t){const e=t;class n{constructor(){Re(this,"wrapper",null);Re(this,"inner",null)}Render(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("sf-tooltip-wrapper"),this.wrapper.style.zIndex=`${Po()??1}`,this.inner=document.createElement("div"),this.inner.classList.add("sf-tooltip-inner"),this.wrapper.appendChild(this.inner)}Show(i){this.Render(),this.inner.textContent=e.text,document.body.appendChild(this.wrapper),this.wrapper.classList.add("visible"),this.Position(i)}Hide(){const i=this.wrapper,c=this.inner;!i||!c||(i.classList.remove("visible"),document.body.removeChild(i),this.wrapper=null,this.inner=null)}Position(i){const a=i.currentTarget.getBoundingClientRect();this.FixWidth();const l=this.wrapper;if(!l)return;const d=5;l.style.top=`${a.top+a.height-d}px`,l.style.left=`${a.left+a.width-d}px`,this.OutOfBottom()&&(l.style.top=`${a.top-l.clientHeight+d}px`),this.OutOfRight()&&(l.style.left=`${a.left-l.clientWidth+d}px`)}FixWidth(){const i=this.wrapper;if(!i)return;i.style.width="fit-content",i.style.wordBreak="normal",i.style.whiteSpace="nowrap";const c=window.innerWidth/2;i.clientWidth>c&&(i.style.width=`${c}px`,i.style.wordBreak="break-word",i.style.whiteSpace="normal")}OutOfBottom(){const i=this.wrapper;if(!i)return!1;const c=i.getBoundingClientRect(),a=window.innerHeight||document.documentElement.clientHeight;return c.bottom+10>a}OutOfRight(){const i=this.wrapper;if(!i)return!1;const c=i.getBoundingClientRect(),a=window.innerWidth||document.documentElement.clientWidth;return c.right+10>a}}const o=new n;return s.onBeforeUnmount(()=>{o.Hide()}),(r,i)=>(s.openBlock(),s.createElementBlock("div",{class:"sf-tooltip-anchor",onMouseenter:i[0]||(i[0]=(...c)=>s.unref(o).Show&&s.unref(o).Show(...c)),onMouseleave:i[1]||(i[1]=(...c)=>s.unref(o).Hide&&s.unref(o).Hide(...c)),onMousedown:i[2]||(i[2]=(...c)=>s.unref(o).Hide&&s.unref(o).Hide(...c))},[s.renderSlot(r.$slots,"default")],32))}}),Ji={id:"sf-layout"},Qi={class:"title"},es={class:"sf-layout-nav-content"},ts={id:"sf-layout-content"},ns=s.defineComponent({__name:"Layout",emits:["mounted","logout"],setup(t,{emit:e}){const n=Bn(),o=e;return s.onMounted(()=>{o("mounted")}),(r,i)=>(s.openBlock(),s.createElementBlock("div",Ji,[s.createElementVNode("header",null,[s.createElementVNode("div",{class:s.normalizeClass(["sf-layout-menu-toggler",{invert:s.unref(n).IsVisible}]),onClick:i[0]||(i[0]=c=>s.unref(n).Toggle())},[i[1]||(i[1]=s.createElementVNode("div",{class:"sf-layout-menu-toggler-logo"},null,-1)),s.createVNode(Yi)],2),s.createElementVNode("div",Qi,[s.renderSlot(r.$slots,"title")]),s.renderSlot(r.$slots,"action"),s.createVNode(Nn,{text:"Tema"},{default:s.withCtx(()=>[s.createVNode(Zi)]),_:1})]),s.createElementVNode("nav",{class:s.normalizeClass({visible:s.unref(n).IsVisible})},[s.createElementVNode("div",es,[s.renderSlot(r.$slots,"menu")]),i[2]||(i[2]=s.createElementVNode("div",{class:"sf-layout-nav-footer"},[s.createElementVNode("div",{class:"sf-layout-nav-footer-logo"})],-1))],2),s.createElementVNode("main",{class:s.normalizeClass({"menu-visible":s.unref(n).IsVisible})},[i[3]||(i[3]=s.createElementVNode("section",{id:"sf-layout-page-title"},null,-1)),s.createElementVNode("section",ts,[s.renderSlot(r.$slots,"content")])],2)]))}}),os={},rs={class:"sf-loading-circle"};function is(t,e){return s.openBlock(),s.createElementBlock("div",rs,e[0]||(e[0]=[s.createElementVNode("div",null,[s.createElementVNode("svg",{viewBox:"25 25 50 50"},[s.createElementVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"})])],-1)]))}const ss=an(os,[["render",is]]);class ze{constructor(e){Re(this,"retorno");this.retorno=e??""}Concat(e){return e&&e.trim().length&&(this.retorno+=` ${e}`),this}AddClass(e,n=!0){return n?this.Concat(e):this}Build(){return this.retorno.trim()}}const as=["disabled","tabindex"],ls=["data-color"],ln=an(s.defineComponent({__name:"Icon",props:{icon:{},visible:{type:Boolean,default:!0},class:{default:""},style:{type:[Boolean,null,String,Object,Array],default:""},disabled:{type:Boolean},loading:{type:Boolean},button:{type:Boolean},size:{default:"md"},dot:{type:Boolean},dotColor:{default:"error"},filled:{type:Boolean},buttonProps:{},tooltip:{},color:{default:"inherit"}},setup(t){const e=t,n=s.computed(()=>e.tooltip?Nn:"div"),o=s.computed(()=>new ze(e.tooltip?"":"display-content").AddClass("sf-component-loading",e.loading).AddClass("sf-component-disabled",e.disabled).Build()),r=s.computed(()=>new ze(`${e.class} sf-icon`).AddClass("sf-component-loading",e.loading).AddClass("sf-component-disabled",e.disabled).AddClass("sf-icon-button",e.button).AddClass("sf-icon-small",e.size==="sm").AddClass("sf-icon-medium",e.size==="md").AddClass("sf-icon-large",e.size==="lg").AddClass("sf-icon-xlarge",e.size==="xl").AddClass("sf-icon-2xlarge",e.size==="2xl").AddClass("sf-icon-3xlarge",e.size==="3xl").AddClass("sf-ripple",e.button===!0).AddClass(`${e.color}-color`,!!e.color&&e.color!=="inherit").Build());return(i,c)=>(s.openBlock(),s.createBlock(s.resolveDynamicComponent(n.value),{text:e.tooltip,class:s.normalizeClass(o.value)},{default:s.withCtx(()=>[e.visible?(s.openBlock(),s.createElementBlock("div",{key:0,style:s.normalizeStyle(e.style),class:s.normalizeClass(r.value)},[s.createElementVNode("button",s.mergeProps({class:["material-symbols-outlined",{"icon-filled":!!e.filled}],disabled:e.disabled||e.loading},e.buttonProps,{tabindex:e.button?void 0:-1}),[e.loading?(s.openBlock(),s.createBlock(ss,{key:0})):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(e.icon),1)],64))],16,as),e.dot?(s.openBlock(),s.createElementBlock("span",{key:0,"data-color":e.dotColor},null,8,ls)):s.createCommentVNode("",!0)],6)):s.createCommentVNode("",!0)]),_:1},8,["text","class"]))}}),[["__scopeId","data-v-545d34b6"]]),cs=s.defineComponent({__name:"ScrollToTop",setup(t){const e=s.ref(!1),n=`--${+new Date}`;let o=null;function r(){o==null||o.scrollTo(0,0)}return s.onMounted(()=>{var i;o=((i=document.getElementById(n))==null?void 0:i.parentElement)??null,o&&o.addEventListener("scroll",function(){e.value=this.scrollTop-this.clientHeight>0})}),(i,c)=>(s.openBlock(),s.createElementBlock("button",{id:n,class:s.normalizeClass(["sf-scrollToTop",{"sf-scrollToTop-visible":e.value}]),onClick:r},null,2))}}),us=s.defineComponent({__name:"Content",props:{class:{},style:{type:[Boolean,null,String,Object,Array]},disableBodyPadding:{type:Boolean},disableHeaderPadding:{type:Boolean},disableFooterPadding:{type:Boolean}},setup(t){const e=t;function n(){return new ze("sf-content").AddClass(e.class,!!e.class).Build()}function o(){return new ze("sf-content-body").AddClass("sf-content-no-padding",e.disableBodyPadding).Build()}function r(){return new ze("sf-content-header").AddClass("sf-content-no-padding",e.disableHeaderPadding).Build()}function i(){return new ze("sf-content-footer").AddClass("sf-content-no-padding",e.disableFooterPadding).Build()}return(c,a)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(n()),style:s.normalizeStyle(e.style)},[s.createElementVNode("div",{class:s.normalizeClass(r())},[s.renderSlot(c.$slots,"header")],2),s.createElementVNode("div",{class:s.normalizeClass(o())},[s.renderSlot(c.$slots,"default"),s.createVNode(cs)],2),s.createElementVNode("div",{class:s.normalizeClass(i())},[s.renderSlot(c.$slots,"footer")],2)],6))}}),ds={class:"sf-tab-navigation"},fs=["data-active"],ms=["href","onClick"],ps=s.defineComponent({__name:"TabNavigation",props:{tabs:{}},setup(t){const e=t,n=s.ref(null),o=new ResizeObserver(l=>{a()}),r=s.ref(!1),i=s.ref(!1);function c(l=!1){const d=n.value.clientWidth;n.value.scrollLeft+=l?-d:d}function a(){const l=n.value.scrollWidth-n.value.clientWidth;r.value=n.value.scrollLeft>10,i.value=n.value.scrollLeft<l-10}return s.onMounted(()=>{n.value.addEventListener("scroll",a),o.observe(n.value)}),s.onBeforeUnmount(()=>{var l;try{(l=n.value)==null||l.removeEventListener("scroll",a),o.unobserve(n.value),o.disconnect()}catch{}}),(l,d)=>{const m=s.resolveComponent("RouterLink");return s.openBlock(),s.createElementBlock("div",ds,[s.createElementVNode("div",{class:s.normalizeClass(["left-arrow",{active:r.value}]),onClick:d[0]||(d[0]=h=>c(!0))},d[2]||(d[2]=[s.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})],-1)]),2),s.createElementVNode("ul",{ref_key:"trackerContainer",ref:n},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.tabs,h=>(s.openBlock(),s.createBlock(m,{to:h.route,custom:!0},{default:s.withCtx(({navigate:v,isActive:C})=>[s.createElementVNode("li",{"data-active":C},[s.renderSlot(l.$slots,"item",{item:h,navigate:v,isActive:C},()=>[s.createElementVNode("a",{href:h.route,class:s.normalizeClass({active:C}),onClick:v},s.toDisplayString(h.text),11,ms)])],8,fs)]),_:2},1032,["to"]))),256))],512),s.createElementVNode("div",{class:s.normalizeClass(["right-arrow",{active:i.value}]),onClick:d[1]||(d[1]=h=>c())},d[3]||(d[3]=[s.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})],-1)]),2)])}}}),hs=["id","name","disabled","data-color","form","type"],gs={class:"sf-button-label"},ys=s.defineComponent({__name:"Button",props:{icon:{},visible:{type:Boolean,default:!0},class:{},style:{type:[Boolean,null,String,Object,Array]},disabled:{type:Boolean},loading:{type:Boolean},color:{default:"primary"},size:{default:"md"},variant:{default:"filled"},autofocus:{type:Boolean},form:{},name:{},id:{},type:{default:"button"},value:{},iconFilled:{type:Boolean}},setup(t){const e=t;function n(){return new ze(`${e.class??""} sf-button`).AddClass("sf-component-loading",e.loading).AddClass("sf-component-disabled",e.disabled).AddClass("sf-button-small",e.size==="sm").AddClass("sf-button-medium",e.size==="md").AddClass("sf-button-large",e.size==="lg").AddClass("sf-button-filled",e.variant==="filled").AddClass("sf-button-text",e.variant==="text").AddClass("sf-button-outlined",e.variant==="outlined").AddClass("sf-button-with-icon",!!e.icon).AddClass("sf-ripple").Build()}return(o,r)=>e.visible?(s.openBlock(),s.createElementBlock("button",{key:0,id:e.id,name:e.name,class:s.normalizeClass(n()),style:s.normalizeStyle(e.style),disabled:e.disabled||e.loading,"data-color":e.color,form:e.form,type:e.type},[e.icon?(s.openBlock(),s.createBlock(ln,{key:0,icon:e.icon,loading:e.loading,size:e.size,color:void 0,"button-props":{tabindex:-1},filled:e.iconFilled},null,8,["icon","loading","size","filled"])):e.loading?(s.openBlock(),s.createBlock(ln,{key:1,loading:!0,size:e.size,"button-props":{tabindex:-1}},null,8,["size"])):s.createCommentVNode("",!0),s.createElementVNode("span",gs,[s.renderSlot(o.$slots,"default")])],14,hs)):s.createCommentVNode("",!0)}}),bs={class:"sf-drawer-header"},vs={class:"sf-drawer-title"},ws={class:"sf-drawer-content"},_s={key:0,class:"sf-drawer-footer"},ks=s.defineComponent({__name:"Drawer",props:{visible:{type:Boolean,default:!1},position:{default:"left"},style:{type:[Boolean,null,String,Object,Array]}},emits:["update:visible","open","before-close"],setup(t,{emit:e}){const n=t,o=e,r=s.useSlots(),i=s.ref(n.visible),c=s.ref(!1),a=s.ref(0),l="sf-drawer-"+Math.random().toString(36).slice(2,11)+"-"+Date.now();function d(){i.value=!1}function m(x){(x.key==="Escape"||x.code==="Escape")&&d()}function h(){o("open"),window.document.addEventListener("keydown",m,!0)}function v(x){a.value=Po(),x.style.zIndex=`${a.value}`}function C(x){var R;o("before-close"),(R=x==null?void 0:x.parentElement)==null||R.classList.add("sf-mask-overlay-leave")}function T(){window.document.removeEventListener("keydown",m,!0),c.value=!1}function $(){return new ze("sf-mask sf-mask-overlay").AddClass("right",n.position==="right").AddClass("bottom",n.position==="bottom").AddClass("full",n.position==="full").AddClass("sf-mask-overlay-enter",n.visible===!0).Build()}return s.watch(()=>n.visible,x=>{i.value=x}),s.watch(()=>i.value,x=>{o("update:visible",x),x&&(c.value=!0)}),(x,R)=>(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[c.value?(s.openBlock(),s.createElementBlock("div",{key:0,id:l,class:s.normalizeClass($()),style:s.normalizeStyle({zIndex:a.value-1}),onClick:s.withModifiers(d,["stop"])},[s.createVNode(s.Transition,{name:"sf-drawer",appear:"",onBeforeEnter:v,onEnter:h,onBeforeLeave:C,onAfterLeave:T},{default:s.withCtx(()=>[i.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["sf-drawer",{"sf-drawer-with-footer":!!s.unref(r).footer}]),style:s.normalizeStyle(n.style),role:"dialog",onClick:R[0]||(R[0]=s.withModifiers(I=>x.void,["stop"]))},[s.createElementVNode("div",bs,[s.createElementVNode("span",vs,[s.renderSlot(x.$slots,"title")]),s.createVNode(ln,{button:!0,icon:"close",onClick:s.withModifiers(d,["stop"])})]),s.createElementVNode("div",ws,[s.renderSlot(x.$slots,"default")]),s.unref(r).footer?(s.openBlock(),s.createElementBlock("div",_s,[s.renderSlot(x.$slots,"footer")])):s.createCommentVNode("",!0)],6)):s.createCommentVNode("",!0)]),_:3})],6)):s.createCommentVNode("",!0)]))}}),Ss=["data-icon"],Cs=s.defineComponent({__name:"Message",props:{color:{default:"info"},class:{},style:{type:[Boolean,null,String,Object,Array]},icon:{}},setup(t){const e=t,n=s.computed(()=>{if(e.icon)return e.icon;switch(e.color){case"error":return"cancel";case"info":return"info";case"warn":return"warning";case"success":return"check";case"help":return"help";default:return null}}),o=s.computed(()=>new ze("sf-message").AddClass("sf-message-error",e.color==="error").AddClass("sf-message-info",e.color==="info").AddClass("sf-message-warning",e.color==="warn").AddClass("sf-message-success",e.color==="success").AddClass("sf-message-help",e.color==="help").AddClass("sf-message-primary",e.color==="primary").AddClass("sf-message-secondary",e.color==="secondary").AddClass(e.class).Build());return(r,i)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(o.value),"data-icon":n.value},[s.renderSlot(r.$slots,"default")],10,Ss))}});function Is(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function Ts(t,e){if(t&&e){const n=o=>{Is(t,o)||(t.classList?t.classList.add(o):t.className+=" "+o)};[e].flat().filter(Boolean).forEach(o=>o.split(" ").forEach(n))}}function Dn(t,e){if(t&&e){const n=o=>{t.classList?t.classList.remove(o):t.className=t.className.replace(new RegExp("(^|\\b)"+o.split(" ").join("|")+"(\\b|$)","gi")," ")};[e].flat().filter(Boolean).forEach(o=>o.split(" ").forEach(n))}}function Es(t,e){return t instanceof HTMLElement?t.offsetWidth:0}function cn(t){return typeof HTMLElement=="object"?t instanceof HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string"}function un(t,e={}){if(cn(t)){const n=(o,r)=>{var i,c;const a=(i=t==null?void 0:t.$attrs)!=null&&i[o]?[(c=t==null?void 0:t.$attrs)==null?void 0:c[o]]:[];return[r].flat().reduce((l,d)=>{if(d!=null){const m=typeof d;if(m==="string"||m==="number")l.push(d);else if(m==="object"){const h=Array.isArray(d)?n(o,d):Object.entries(d).map(([v,C])=>o==="style"&&(C||C===0)?`${v.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${C}`:C?v:void 0);l=h.length?l.concat(h.filter(v=>!!v)):l}}return l},a)};Object.entries(e).forEach(([o,r])=>{if(r!=null){const i=o.match(/^on(.+)/);i?t.addEventListener(i[1].toLowerCase(),r):o==="p-bind"?un(t,r):(r=o==="class"?[...new Set(n("class",r))].join(" ").trim():o==="style"?n("style",r).join(";").trim():r,(t.$attrs=t.$attrs||{})&&(t.$attrs[o]=r),t.setAttribute(o,r))}})}}function As(t,e={},...n){{const o=document.createElement(t);return un(o,e),o.append(...n),o}}function Le(t,e){return cn(t)?t.matches(e)?t:t.querySelector(e):null}function At(t,e){t&&document.activeElement!==t&&t.focus(e)}function Pt(t,e){if(cn(t)){const n=t.getAttribute(e);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function xo(t){if(t){let e=t.offsetHeight,n=getComputedStyle(t);return e-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),e}return 0}function Ps(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function xs(t){if(t){let e=t.getBoundingClientRect();return{top:e.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:e.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:"auto",left:"auto"}}function Ls(t,e){return t?t.offsetHeight:0}function Os(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&Ps(t))}function Lo(t){if(t){let e=t.offsetWidth,n=getComputedStyle(t);return e-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth),e}return 0}function $s(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Bs(t,e="",n){cn(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}function Oo(){const t=new Map;return{on(e,n){let o=t.get(e);return o?o.push(n):o=[n],t.set(e,o),this},off(e,n){let o=t.get(e);return o&&o.splice(o.indexOf(n)>>>0,1),this},emit(e,n){let o=t.get(e);o&&o.slice().map(r=>{r(n)})},clear(){t.clear()}}}function at(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function Mn(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){var n=Array.isArray(t),o=Array.isArray(e),r,i,c;if(n&&o){if(i=t.length,i!=e.length)return!1;for(r=i;r--!==0;)if(!Mn(t[r],e[r]))return!1;return!0}if(n!=o)return!1;var a=t instanceof Date,l=e instanceof Date;if(a!=l)return!1;if(a&&l)return t.getTime()==e.getTime();var d=t instanceof RegExp,m=e instanceof RegExp;if(d!=m)return!1;if(d&&m)return t.toString()==e.toString();var h=Object.keys(t);if(i=h.length,i!==Object.keys(e).length)return!1;for(r=i;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,h[r]))return!1;for(r=i;r--!==0;)if(c=h[r],!Mn(t[c],e[c]))return!1;return!0}return t!==t&&e!==e}function Rn(t){return!!(t&&t.constructor&&t.call&&t.apply)}function G(t){return!at(t)}function ht(t,e,n){return Mn(t,e)}function $o(t,e){let n;if(G(t))try{n=t.findLast(e)}catch{n=[...t].reverse().find(e)}return n}function Qe(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function _e(t,...e){return Rn(t)?t(...e):t}function pe(t,e=!0){return typeof t=="string"&&(e||t!=="")}function Oe(t){return pe(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function Un(t,e="",n={}){const o=Oe(e).split("."),r=o.shift();return r?Qe(t)?Un(_e(t[Object.keys(t).find(i=>Oe(i)===r)||""],n),o.join("."),n):void 0:_e(t,n)}function Vn(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function Bo(t){return G(t)&&!isNaN(t)}function Ns(t=""){return G(t)&&t.length===1&&!!t.match(/\S| /)}function We(t,e){if(e){const n=e.test(t);return e.lastIndex=0,n}return!1}function xt(t){return t&&t.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":")}function Ds(t){return pe(t,!1)?t[0].toUpperCase()+t.slice(1):t}function No(t){return pe(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,n)=>n===0?e:"-"+e.toLowerCase()).toLowerCase():t}function Do(t){return pe(t)?t.replace(/[A-Z]/g,(e,n)=>n===0?e:"."+e.toLowerCase()).toLowerCase():t}var dn={};function Ms(t="pui_id_"){return dn.hasOwnProperty(t)||(dn[t]=0),dn[t]++,`${t}${dn[t]}`}function fn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pv_id_";return Ms(t)}var Rs=Object.defineProperty,Us=Object.defineProperties,Vs=Object.getOwnPropertyDescriptors,mn=Object.getOwnPropertySymbols,Mo=Object.prototype.hasOwnProperty,Ro=Object.prototype.propertyIsEnumerable,Uo=(t,e,n)=>e in t?Rs(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Lt=(t,e)=>{for(var n in e||(e={}))Mo.call(e,n)&&Uo(t,n,e[n]);if(mn)for(var n of mn(e))Ro.call(e,n)&&Uo(t,n,e[n]);return t},Hn=(t,e)=>Us(t,Vs(e)),Ot=(t,e)=>{var n={};for(var o in t)Mo.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&mn)for(var o of mn(t))e.indexOf(o)<0&&Ro.call(t,o)&&(n[o]=t[o]);return n},Hs=Oo(),Ge=Hs;function Vo(t,e){Vn(t)?t.push(...e||[]):Qe(t)&&Object.assign(t,e)}function js(t){return Qe(t)&&t.hasOwnProperty("value")&&t.hasOwnProperty("type")?t.value:t}function Ho(t,e=""){return["opacity","z-index","line-height","font-weight","flex","flex-grow","flex-shrink","order"].some(o=>e.endsWith(o))?t:`${t}`.trim().split(" ").map(i=>Bo(i)?`${i}px`:i).join(" ")}function Fs(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function jn(t="",e=""){return Fs(`${pe(t,!1)&&pe(e,!1)?`${t}-`:t}${e}`)}function jo(t="",e=""){return`--${jn(t,e)}`}function Fo(t,e="",n="",o=[],r){if(pe(t)){const i=/{([^}]*)}/g,c=t.trim();if(We(c,i)){const a=c.replaceAll(i,m=>{const v=m.replace(/{|}/g,"").split(".").filter(C=>!o.some(T=>We(C,T)));return`var(${jo(n,No(v.join("-")))}${G(r)?`, ${r}`:""})`}),l=/(\d+\s+[\+\-\*\/]\s+\d+)/g,d=/var\([^)]+\)/g;return We(a.replace(d,"0"),l)?`calc(${a})`:a}return Ho(c,e)}else if(Bo(t))return Ho(t,e)}function Ks(t,e,n){pe(e,!1)&&t.push(`${e}:${n};`)}function $t(t,e){return t?`${t}{${e}}`:""}var Fn=(...t)=>zs(Z.getTheme(),...t),zs=(t={},e,n,o="variable")=>{if(e){const{variable:r,options:i}=Z.defaults||{},{prefix:c,transform:a}=(t==null?void 0:t.options)||i||{},d=We(e,/{([^}]*)}/g)?e:`{${e}}`;return o==="value"||a==="strict"?Z.getTokenValue(e):Fo(d,void 0,c,[r.excludedKeyRegex],n)}return""};function Ws(t,e={}){const n=Z.defaults.variable,{prefix:o=n.prefix,selector:r=n.selector,excludedKeyRegex:i=n.excludedKeyRegex}=e,c=(d,m="")=>Object.entries(d).reduce((h,[v,C])=>{const T=We(v,i)?jn(m):jn(m,No(v)),$=js(C);if(Qe($)){const{variables:x,tokens:R}=c($,T);Vo(h.tokens,R),Vo(h.variables,x)}else h.tokens.push((o?T.replace(`${o}-`,""):T).replaceAll("-",".")),Ks(h.variables,jo(T),Fo($,T,o,[i]));return h},{variables:[],tokens:[]}),{variables:a,tokens:l}=c(t,o);return{value:a,tokens:l,declarations:a.join(""),css:$t(r,a.join(""))}}var $e={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(t){return{type:"class",selector:t,matched:this.pattern.test(t.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(t){return{type:"attr",selector:`:root${t}`,matched:this.pattern.test(t.trim())}}},media:{pattern:/^@media (.*)$/,resolve(t){return{type:"media",selector:`${t}{:root{[CSS]}}`,matched:this.pattern.test(t.trim())}}},system:{pattern:/^system$/,resolve(t){return{type:"system",selector:"@media (prefers-color-scheme: dark){:root{[CSS]}}",matched:this.pattern.test(t.trim())}}},custom:{resolve(t){return{type:"custom",selector:t,matched:!0}}}},resolve(t){const e=Object.keys(this.rules).filter(n=>n!=="custom").map(n=>this.rules[n]);return[t].flat().map(n=>{var o;return(o=e.map(r=>r.resolve(n)).find(r=>r.matched))!=null?o:this.rules.custom.resolve(n)})}},_toVariables(t,e){return Ws(t,{prefix:e==null?void 0:e.prefix})},getCommon({name:t="",theme:e={},params:n,set:o,defaults:r}){var i,c,a,l;const{preset:d,options:m}=e;let h,v,C,T;if(G(d)){const{primitive:$,semantic:x}=d,R=x||{},{colorScheme:I}=R,B=Ot(R,["colorScheme"]),F=I||{},{dark:J}=F,ye=Ot(F,["dark"]),ee=G($)?this._toVariables({primitive:$},m):{},De=G(B)?this._toVariables({semantic:B},m):{},Ie=G(ye)?this._toVariables({light:ye},m):{},Y=G(J)?this._toVariables({dark:J},m):{},[Q,be]=[(i=ee.declarations)!=null?i:"",ee.tokens],[Me,Te]=[(c=De.declarations)!=null?c:"",De.tokens||[]],[it,Ye]=[(a=Ie.declarations)!=null?a:"",Ie.tokens||[]],[He,je]=[(l=Y.declarations)!=null?l:"",Y.tokens||[]];h=this.transformCSS(t,Q,"light","variable",m,o,r),v=be;const mt=this.transformCSS(t,`${Me}${it}color-scheme:light`,"light","variable",m,o,r),xe=this.transformCSS(t,`${He}color-scheme:dark`,"dark","variable",m,o,r);C=`${mt}${xe}`,T=[...new Set([...Te,...Ye,...je])]}return{primitive:{css:h,tokens:v},semantic:{css:C,tokens:T}}},getPreset({name:t="",preset:e={},options:n,params:o,set:r,defaults:i,selector:c}){var a,l,d;const m=t.replace("-directive",""),h=e,{colorScheme:v}=h,C=Ot(h,["colorScheme"]),T=v||{},{dark:$}=T,x=Ot(T,["dark"]),R=G(C)?this._toVariables({[m]:C},n):{},I=G(x)?this._toVariables({[m]:x},n):{},B=G($)?this._toVariables({[m]:$},n):{},[F,J]=[(a=R.declarations)!=null?a:"",R.tokens||[]],[ye,ee]=[(l=I.declarations)!=null?l:"",I.tokens||[]],[De,Ie]=[(d=B.declarations)!=null?d:"",B.tokens||[]],Y=[...new Set([...J,...ee,...Ie])],Q=this.transformCSS(m,`${F}${ye}`,"light","variable",n,r,i,c),be=this.transformCSS(m,De,"dark","variable",n,r,i,c);return{css:`${Q}${be}`,tokens:Y}},getPresetC({name:t="",theme:e={},params:n,set:o,defaults:r}){var i;const{preset:c,options:a}=e,l=(i=c==null?void 0:c.components)==null?void 0:i[t];return this.getPreset({name:t,preset:l,options:a,params:n,set:o,defaults:r})},getPresetD({name:t="",theme:e={},params:n,set:o,defaults:r}){var i;const c=t.replace("-directive",""),{preset:a,options:l}=e,d=(i=a==null?void 0:a.directives)==null?void 0:i[c];return this.getPreset({name:c,preset:d,options:l,params:n,set:o,defaults:r})},getColorSchemeOption(t,e){var n;return this.regex.resolve((n=t.darkModeSelector)!=null?n:e.options.darkModeSelector)},getLayerOrder(t,e={},n,o){const{cssLayer:r}=e;return r?`@layer ${_e(r.order||"primeui",n)}`:""},getCommonStyleSheet({name:t="",theme:e={},params:n,props:o={},set:r,defaults:i}){const c=this.getCommon({name:t,theme:e,params:n,set:r,defaults:i}),a=Object.entries(o).reduce((l,[d,m])=>l.push(`${d}="${m}"`)&&l,[]).join(" ");return Object.entries(c||{}).reduce((l,[d,m])=>{if(m!=null&&m.css){const h=xt(m==null?void 0:m.css),v=`${d}-variables`;l.push(`<style type="text/css" data-primevue-style-id="${v}" ${a}>${h}</style>`)}return l},[]).join("")},getStyleSheet({name:t="",theme:e={},params:n,props:o={},set:r,defaults:i}){var c;const a={name:t,theme:e,params:n,set:r,defaults:i},l=(c=t.includes("-directive")?this.getPresetD(a):this.getPresetC(a))==null?void 0:c.css,d=Object.entries(o).reduce((m,[h,v])=>m.push(`${h}="${v}"`)&&m,[]).join(" ");return l?`<style type="text/css" data-primevue-style-id="${t}-variables" ${d}>${xt(l)}</style>`:""},createTokens(t={},e,n="",o="",r={}){return Object.entries(t).forEach(([i,c])=>{const a=We(i,e.variable.excludedKeyRegex)?n:n?`${n}.${Do(i)}`:Do(i),l=o?`${o}.${i}`:i;Qe(c)?this.createTokens(c,e,a,l,r):(r[a]||(r[a]={paths:[],computed(d,m={}){if(d){const h=this.paths.find(v=>v.scheme===d)||this.paths.find(v=>v.scheme==="none");return h==null?void 0:h.computed(d,m.binding)}return this.paths.map(h=>h.computed(h.scheme,m[h.scheme]))}}),r[a].paths.push({path:l,value:c,scheme:l.includes("colorScheme.light")?"light":l.includes("colorScheme.dark")?"dark":"none",computed(d,m={}){const h=/{([^}]*)}/g;let v=c;if(m.name=this.path,m.binding||(m.binding={}),We(c,h)){const T=c.trim().replaceAll(h,R=>{var I,B;const F=R.replace(/{|}/g,"");return(B=(I=r[F])==null?void 0:I.computed(d,m))==null?void 0:B.value}),$=/(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g,x=/var\([^)]+\)/g;v=We(T.replace(x,"0"),$)?`calc(${T})`:T}return at(m.binding)&&delete m.binding,{colorScheme:d,path:this.path,paths:m,value:v.includes("undefined")?void 0:v}}}))}),r},getTokenValue(t,e,n){var o;const i=(l=>l.split(".").filter(m=>!We(m.toLowerCase(),n.variable.excludedKeyRegex)).join("."))(e),c=e.includes("colorScheme.light")?"light":e.includes("colorScheme.dark")?"dark":void 0,a=[(o=t[i])==null?void 0:o.computed(c)].flat().filter(l=>l);return a.length===1?a[0].value:a.reduce((l={},d)=>{const m=d,{colorScheme:h}=m,v=Ot(m,["colorScheme"]);return l[h]=v,l},void 0)},transformCSS(t,e,n,o,r={},i,c,a){if(G(e)){const{cssLayer:l}=r;if(o!=="style"){const d=this.getColorSchemeOption(r,c),m=a?$t(a,e):e;e=n==="dark"?d.reduce((h,{selector:v})=>(G(v)&&(h+=v.includes("[CSS]")?v.replace("[CSS]",m):$t(v,m)),h),""):$t(a??":root",e)}if(l){const d={name:"primeui",order:"primeui"};Qe(l)&&(d.name=_e(l.name,{name:t,type:o})),G(d.name)&&(e=$t(`@layer ${d.name}`,e),i==null||i.layerNames(d.name))}return e}return""}},Z={defaults:{variable:{prefix:"p",selector:":root",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(t={}){const{theme:e}=t;e&&(this._theme=Hn(Lt({},e),{options:Lt(Lt({},this.defaults.options),e.options)}),this._tokens=$e.createTokens(this.preset,this.defaults),this.clearLoadedStyleNames())},get theme(){return this._theme},get preset(){var t;return((t=this.theme)==null?void 0:t.preset)||{}},get options(){var t;return((t=this.theme)==null?void 0:t.options)||{}},get tokens(){return this._tokens},getTheme(){return this.theme},setTheme(t){this.update({theme:t}),Ge.emit("theme:change",t)},getPreset(){return this.preset},setPreset(t){this._theme=Hn(Lt({},this.theme),{preset:t}),this._tokens=$e.createTokens(t,this.defaults),this.clearLoadedStyleNames(),Ge.emit("preset:change",t),Ge.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(t){this._theme=Hn(Lt({},this.theme),{options:t}),this.clearLoadedStyleNames(),Ge.emit("options:change",t),Ge.emit("theme:change",this.theme)},getLayerNames(){return[...this._layerNames]},setLayerNames(t){this._layerNames.add(t)},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(t){return this._loadedStyleNames.has(t)},setLoadedStyleName(t){this._loadedStyleNames.add(t)},deleteLoadedStyleName(t){this._loadedStyleNames.delete(t)},clearLoadedStyleNames(){this._loadedStyleNames.clear()},getTokenValue(t){return $e.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return $e.getCommon({name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(t="",e){const n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return $e.getPresetC(n)},getDirective(t="",e){const n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return $e.getPresetD(n)},getCustomPreset(t="",e,n,o){const r={name:t,preset:e,options:this.options,selector:n,params:o,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return $e.getPreset(r)},getLayerOrderCSS(t=""){return $e.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,n="style",o){return $e.transformCSS(t,e,o,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,n={}){return $e.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,n={}){return $e.getStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},onStyleMounted(t){this._loadingStyles.add(t)},onStyleUpdated(t){this._loadingStyles.add(t)},onStyleLoaded(t,{name:e}){this._loadingStyles.size&&(this._loadingStyles.delete(e),Ge.emit(`theme:${e}:load`,t),!this._loadingStyles.size&&Ge.emit("theme:load"))}},et={_loadedStyleNames:new Set,getLoadedStyleNames:function(){return this._loadedStyleNames},isStyleNameLoaded:function(e){return this._loadedStyleNames.has(e)},setLoadedStyleName:function(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName:function(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames:function(){this._loadedStyleNames.clear()}};function Bt(t){"@babel/helpers - typeof";return Bt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bt(t)}function Ko(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,o)}return n}function zo(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ko(Object(n),!0).forEach(function(o){Gs(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ko(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Gs(t,e,n){return(e=qs(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function qs(t){var e=Ys(t,"string");return Bt(e)=="symbol"?e:e+""}function Ys(t,e){if(Bt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(Bt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Xs(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;s.getCurrentInstance()?s.onMounted(t):e?t():s.nextTick(t)}var Zs=0;function Js(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=s.ref(!1),o=s.ref(t),r=s.ref(null),i=$s()?window.document:void 0,c=e.document,a=c===void 0?i:c,l=e.immediate,d=l===void 0?!0:l,m=e.manual,h=m===void 0?!1:m,v=e.name,C=v===void 0?"style_".concat(++Zs):v,T=e.id,$=T===void 0?void 0:T,x=e.media,R=x===void 0?void 0:x,I=e.nonce,B=I===void 0?void 0:I,F=e.first,J=F===void 0?!1:F,ye=e.onMounted,ee=ye===void 0?void 0:ye,De=e.onUpdated,Ie=De===void 0?void 0:De,Y=e.onLoad,Q=Y===void 0?void 0:Y,be=e.props,Me=be===void 0?{}:be,Te=function(){},it=function(je){var mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a){var xe=zo(zo({},Me),mt),u=xe.name||C,p=xe.id||$,b=xe.nonce||B;r.value=a.querySelector('style[data-primevue-style-id="'.concat(u,'"]'))||a.getElementById(p)||a.createElement("style"),r.value.isConnected||(o.value=je||t,un(r.value,{type:"text/css",id:p,media:R,nonce:b}),J?a.head.prepend(r.value):a.head.appendChild(r.value),Bs(r.value,"data-primevue-style-id",u),un(r.value,xe),r.value.onload=function(S){return Q==null?void 0:Q(S,{name:u})},ee==null||ee(u)),!n.value&&(Te=s.watch(o,function(S){r.value.textContent=S,Ie==null||Ie(u)},{immediate:!0}),n.value=!0)}},Ye=function(){!a||!n.value||(Te(),Os(r.value)&&a.head.removeChild(r.value),n.value=!1)};return d&&!h&&Xs(it),{id:$,name:C,el:r,css:o,unload:Ye,load:it,isLoaded:s.readonly(n)}}function Nt(t){"@babel/helpers - typeof";return Nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nt(t)}function Wo(t,e){return na(t)||ta(t,e)||ea(t,e)||Qs()}function Qs(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ea(t,e){if(t){if(typeof t=="string")return Go(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Go(t,e):void 0}}function Go(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function ta(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,r,i,c,a=[],l=!0,d=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(o=i.call(n)).done)&&(a.push(o.value),a.length!==e);l=!0);}catch(m){d=!0,r=m}finally{try{if(!l&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(d)throw r}}return a}}function na(t){if(Array.isArray(t))return t}function qo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,o)}return n}function Kn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?qo(Object(n),!0).forEach(function(o){oa(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qo(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function oa(t,e,n){return(e=ra(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ra(t){var e=ia(t,"string");return Nt(e)=="symbol"?e:e+""}function ia(t,e){if(Nt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(Nt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var sa=function(e){var n=e.dt;return`
3
3
  * {
4
4
  box-sizing: border-box;
@@ -315,7 +315,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
315
315
  .p-panelmenu-item:not(.p-disabled) > .p-panelmenu-item-content:hover .p-panelmenu-submenu-icon {
316
316
  color: `).concat(n("panelmenu.submenu.icon.focus.color"),`;
317
317
  }
318
- `)},Ea={root:"p-panelmenu p-component",panel:"p-panelmenu-panel",header:function(e){var n=e.instance,o=e.item;return["p-panelmenu-header",{"p-panelmenu-header-active":n.isItemActive(o)&&!!o.items,"p-disabled":n.isItemDisabled(o)}]},headerContent:"p-panelmenu-header-content",headerLink:"p-panelmenu-header-link",headerIcon:"p-panelmenu-header-icon",headerLabel:"p-panelmenu-header-label",contentContainer:"p-panelmenu-content-container",content:"p-panelmenu-content",rootList:"p-panelmenu-root-list",item:function(e){var n=e.instance,o=e.processedItem;return["p-panelmenu-item",{"p-focus":n.isItemFocused(o),"p-disabled":n.isItemDisabled(o)}]},itemContent:"p-panelmenu-item-content",itemLink:"p-panelmenu-item-link",itemIcon:"p-panelmenu-item-icon",itemLabel:"p-panelmenu-item-label",submenuIcon:"p-panelmenu-submenu-icon",submenu:"p-panelmenu-submenu",separator:"p-menuitem-separator"},Pa=ue.extend({name:"panelmenu",theme:Ta,classes:Ea}),rr=Oo();function Rt(t){"@babel/helpers - typeof";return Rt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rt(t)}function ir(t,e){return Oa(t)||La(t,e)||xa(t,e)||Aa()}function Aa(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
318
+ `)},Ea={root:"p-panelmenu p-component",panel:"p-panelmenu-panel",header:function(e){var n=e.instance,o=e.item;return["p-panelmenu-header",{"p-panelmenu-header-active":n.isItemActive(o)&&!!o.items,"p-disabled":n.isItemDisabled(o)}]},headerContent:"p-panelmenu-header-content",headerLink:"p-panelmenu-header-link",headerIcon:"p-panelmenu-header-icon",headerLabel:"p-panelmenu-header-label",contentContainer:"p-panelmenu-content-container",content:"p-panelmenu-content",rootList:"p-panelmenu-root-list",item:function(e){var n=e.instance,o=e.processedItem;return["p-panelmenu-item",{"p-focus":n.isItemFocused(o),"p-disabled":n.isItemDisabled(o)}]},itemContent:"p-panelmenu-item-content",itemLink:"p-panelmenu-item-link",itemIcon:"p-panelmenu-item-icon",itemLabel:"p-panelmenu-item-label",submenuIcon:"p-panelmenu-submenu-icon",submenu:"p-panelmenu-submenu",separator:"p-menuitem-separator"},Aa=ue.extend({name:"panelmenu",theme:Ta,classes:Ea}),rr=Oo();function Rt(t){"@babel/helpers - typeof";return Rt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rt(t)}function ir(t,e){return Oa(t)||La(t,e)||xa(t,e)||Pa()}function Pa(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
319
319
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xa(t,e){if(t){if(typeof t=="string")return sr(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sr(t,e):void 0}}function sr(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function La(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,r,i,c,a=[],l=!0,d=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(o=i.call(n)).done)&&(a.push(o.value),a.length!==e);l=!0);}catch(m){d=!0,r=m}finally{try{if(!l&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(d)throw r}}return a}}function Oa(t){if(Array.isArray(t))return t}function ar(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,o)}return n}function W(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ar(Object(n),!0).forEach(function(o){Gn(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ar(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Gn(t,e,n){return(e=$a(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $a(t){var e=Ba(t,"string");return Rt(e)=="symbol"?e:e+""}function Ba(t,e){if(Rt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(Rt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var V={_getMeta:function(){return[Qe(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],_e(Qe(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:arguments.length<=1?void 0:arguments[1])]},_getConfig:function(e,n){var o,r,i;return(o=(e==null||(r=e.instance)===null||r===void 0?void 0:r.$primevue)||(n==null||(i=n.ctx)===null||i===void 0||(i=i.appContext)===null||i===void 0||(i=i.config)===null||i===void 0||(i=i.globalProperties)===null||i===void 0?void 0:i.$primevue))===null||o===void 0?void 0:o.config},_getOptionValue:Un,_getPTValue:function(){var e,n,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,l=function(){var I=V._getOptionValue.apply(V,arguments);return pe(I)||Vn(I)?{class:I}:I},d=((e=o.binding)===null||e===void 0||(e=e.value)===null||e===void 0?void 0:e.ptOptions)||((n=o.$primevueConfig)===null||n===void 0?void 0:n.ptOptions)||{},m=d.mergeSections,h=m===void 0?!0:m,v=d.mergeProps,C=v===void 0?!1:v,T=a?V._useDefaultPT(o,o.defaultPT(),l,i,c):void 0,$=V._usePT(o,V._getPT(r,o.$name),l,i,W(W({},c),{},{global:T||{}})),x=V._getPTDatasets(o,i);return h||!h&&$?C?V._mergeProps(o,C,T,$,x):W(W(W({},T),$),x):W(W({},$),x)},_getPTDatasets:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o="data-pc-";return W(W({},n==="root"&&Gn({},"".concat(o,"name"),Oe(e.$name))),{},Gn({},"".concat(o,"section"),Oe(n)))},_getPT:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,r=function(c){var a,l=o?o(c):c,d=Oe(n);return(a=l==null?void 0:l[d])!==null&&a!==void 0?a:l};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:r(e.originalValue),value:r(e.value)}:r(e)},_usePT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,c=function(x){return o(x,r,i)};if(n!=null&&n.hasOwnProperty("_usept")){var a,l=n._usept||((a=e.$primevueConfig)===null||a===void 0?void 0:a.ptOptions)||{},d=l.mergeSections,m=d===void 0?!0:d,h=l.mergeProps,v=h===void 0?!1:h,C=c(n.originalValue),T=c(n.value);return C===void 0&&T===void 0?void 0:pe(T)?T:pe(C)?C:m||!m&&T?v?V._mergeProps(e,v,C,T):W(W({},C),T):T}return c(n)},_useDefaultPT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;return V._usePT(e,n,o,r,i)},_loadStyles:function(e,n,o){var r,i=V._getConfig(n,o),c={nonce:i==null||(r=i.csp)===null||r===void 0?void 0:r.nonce};V._loadCoreStyles(e.$instance,c),V._loadThemeStyles(e.$instance,c),V._loadScopedThemeStyles(e.$instance,c),V._themeChangeListener(function(){return V._loadThemeStyles(e.$instance,c)})},_loadCoreStyles:function(){var e,n,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(!et.isStyleNameLoaded((e=o.$style)===null||e===void 0?void 0:e.name)&&(n=o.$style)!==null&&n!==void 0&&n.name){var i;ue.loadCSS(r),o.isUnstyled()&&((i=o.$style)===null||i===void 0||i.loadCSS(r)),et.setLoadedStyleName(o.$style.name)}},_loadThemeStyles:function(){var e,n,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(!(o!=null&&o.isUnstyled())){if(!Z.isStyleNameLoaded("common")){var i,c,a=((i=o.$style)===null||i===void 0||(c=i.getCommonTheme)===null||c===void 0?void 0:c.call(i))||{},l=a.primitive,d=a.semantic;ue.load(l==null?void 0:l.css,W({name:"primitive-variables"},r)),ue.load(d==null?void 0:d.css,W({name:"semantic-variables"},r)),ue.loadTheme(W({name:"global-style"},r)),Z.setLoadedStyleName("common")}if(!Z.isStyleNameLoaded((e=o.$style)===null||e===void 0?void 0:e.name)&&(n=o.$style)!==null&&n!==void 0&&n.name){var m,h,v,C,T=((m=o.$style)===null||m===void 0||(h=m.getDirectiveTheme)===null||h===void 0?void 0:h.call(m))||{},$=T.css;(v=o.$style)===null||v===void 0||v.load($,W({name:"".concat(o.$style.name,"-variables")},r)),(C=o.$style)===null||C===void 0||C.loadTheme(W({name:"".concat(o.$style.name,"-style")},r)),Z.setLoadedStyleName(o.$style.name)}if(!Z.isStyleNameLoaded("layer-order")){var x,R,I=(x=o.$style)===null||x===void 0||(R=x.getLayerOrderThemeCSS)===null||R===void 0?void 0:R.call(x);ue.load(I,W({name:"layer-order",first:!0},r)),Z.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,o=e.preset();if(o&&e.$attrSelector){var r,i,c,a=((r=e.$style)===null||r===void 0||(i=r.getPresetTheme)===null||i===void 0?void 0:i.call(r,o,"[".concat(e.$attrSelector,"]")))||{},l=a.css,d=(c=e.$style)===null||c===void 0?void 0:c.load(l,W({name:"".concat(e.$attrSelector,"-").concat(e.$style.name)},n));e.scopedStyleEl=d.el}},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};et.clearLoadedStyleNames(),Ge.on("theme:change",e)},_hook:function(e,n,o,r,i,c){var a,l,d="on".concat(Ds(n)),m=V._getConfig(r,i),h=o==null?void 0:o.$instance,v=V._usePT(h,V._getPT(r==null||(a=r.value)===null||a===void 0?void 0:a.pt,e),V._getOptionValue,"hooks.".concat(d)),C=V._useDefaultPT(h,m==null||(l=m.pt)===null||l===void 0||(l=l.directives)===null||l===void 0?void 0:l[e],V._getOptionValue,"hooks.".concat(d)),T={el:o,binding:r,vnode:i,prevVnode:c};v==null||v(h,T),C==null||C(h,T)},_mergeProps:function(){for(var e=arguments.length>1?arguments[1]:void 0,n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];return Rn(e)?e.apply(void 0,o):s.mergeProps.apply(void 0,o)},_extend:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=function(c,a,l,d,m){var h,v,C;a._$instances=a._$instances||{};var T=V._getConfig(l,d),$=a._$instances[e]||{},x=at($)?W(W({},n),n==null?void 0:n.methods):{};a._$instances[e]=W(W({},$),{},{$name:e,$host:a,$binding:l,$modifiers:l==null?void 0:l.modifiers,$value:l==null?void 0:l.value,$el:$.$el||a||void 0,$style:W({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},n==null?void 0:n.style),$primevueConfig:T,$attrSelector:a.$attrSelector,defaultPT:function(){return V._getPT(T==null?void 0:T.pt,void 0,function(I){var B;return I==null||(B=I.directives)===null||B===void 0?void 0:B[e]})},isUnstyled:function(){var I,B;return((I=a.$instance)===null||I===void 0||(I=I.$binding)===null||I===void 0||(I=I.value)===null||I===void 0?void 0:I.unstyled)!==void 0?(B=a.$instance)===null||B===void 0||(B=B.$binding)===null||B===void 0||(B=B.value)===null||B===void 0?void 0:B.unstyled:T==null?void 0:T.unstyled},theme:function(){var I;return(I=a.$instance)===null||I===void 0||(I=I.$primevueConfig)===null||I===void 0?void 0:I.theme},preset:function(){var I;return(I=a.$instance)===null||I===void 0||(I=I.$binding)===null||I===void 0||(I=I.value)===null||I===void 0?void 0:I.dt},ptm:function(){var I,B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return V._getPTValue(a.$instance,(I=a.$instance)===null||I===void 0||(I=I.$binding)===null||I===void 0||(I=I.value)===null||I===void 0?void 0:I.pt,B,W({},F))},ptmo:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return V._getPTValue(a.$instance,I,B,F,!1)},cx:function(){var I,B,F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(I=a.$instance)!==null&&I!==void 0&&I.isUnstyled()?void 0:V._getOptionValue((B=a.$instance)===null||B===void 0||(B=B.$style)===null||B===void 0?void 0:B.classes,F,W({},J))},sx:function(){var I,B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return F?V._getOptionValue((I=a.$instance)===null||I===void 0||(I=I.$style)===null||I===void 0?void 0:I.inlineStyles,B,W({},J)):void 0}},x),a.$instance=a._$instances[e],(h=(v=a.$instance)[c])===null||h===void 0||h.call(v,a,l,d,m),a["$".concat(e)]=a.$instance,V._hook(e,c,a,l,d,m),a.$pd||(a.$pd={}),a.$pd[e]=W(W({},(C=a.$pd)===null||C===void 0?void 0:C[e]),{},{name:e,instance:a.$instance})},r=function(c){var a,l,d,m,h,v=(a=c.$instance)===null||a===void 0?void 0:a.watch;v==null||(l=v.config)===null||l===void 0||l.call(c.$instance,(d=c.$instance)===null||d===void 0?void 0:d.$primevueConfig),rr.on("config:change",function(C){var T,$=C.newValue,x=C.oldValue;return v==null||(T=v.config)===null||T===void 0?void 0:T.call(c.$instance,$,x)}),v==null||(m=v["config.ripple"])===null||m===void 0||m.call(c.$instance,(h=c.$instance)===null||h===void 0||(h=h.$primevueConfig)===null||h===void 0?void 0:h.ripple),rr.on("config:ripple:change",function(C){var T,$=C.newValue,x=C.oldValue;return v==null||(T=v["config.ripple"])===null||T===void 0?void 0:T.call(c.$instance,$,x)})};return{created:function(c,a,l,d){o("created",c,a,l,d)},beforeMount:function(c,a,l,d){c.$attrSelector=fn("pd"),V._loadStyles(c,a,l),o("beforeMount",c,a,l,d),r(c)},mounted:function(c,a,l,d){V._loadStyles(c,a,l),o("mounted",c,a,l,d)},beforeUpdate:function(c,a,l,d){o("beforeUpdate",c,a,l,d)},updated:function(c,a,l,d){V._loadStyles(c,a,l),o("updated",c,a,l,d)},beforeUnmount:function(c,a,l,d){o("beforeUnmount",c,a,l,d)},unmounted:function(c,a,l,d){var m;(m=c.$instance)===null||m===void 0||(m=m.scopedStyleEl)===null||m===void 0||(m=m.value)===null||m===void 0||m.remove(),o("unmounted",c,a,l,d)}}},extend:function(){var e=V._getMeta.apply(V,arguments),n=ir(e,2),o=n[0],r=n[1];return W({extend:function(){var c=V._getMeta.apply(V,arguments),a=ir(c,2),l=a[0],d=a[1];return V.extend(l,W(W(W({},r),r==null?void 0:r.methods),d))}},V._extend(o,r))}},Na=function(e){var n=e.dt;return`
320
320
  .p-ink {
321
321
  display: block;
@@ -337,8 +337,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
337
337
  }
338
338
  }
339
339
  `)},Da={root:"p-ink"},Ma=ue.extend({name:"ripple-directive",theme:Na,classes:Da}),Ra=V.extend({style:Ma});function Ut(t){"@babel/helpers - typeof";return Ut=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ut(t)}function Ua(t){return Fa(t)||ja(t)||Ha(t)||Va()}function Va(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
340
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ha(t,e){if(t){if(typeof t=="string")return qn(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qn(t,e):void 0}}function ja(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Fa(t){if(Array.isArray(t))return qn(t)}function qn(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function lr(t,e,n){return(e=Ka(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ka(t){var e=za(t,"string");return Ut(e)=="symbol"?e:e+""}function za(t,e){if(Ut(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(Ut(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Wa=Ra.extend("ripple",{watch:{"config.ripple":function(e){e?(this.createRipple(this.$host),this.bindEvents(this.$host),this.$host.setAttribute("data-pd-ripple",!0),this.$host.style.overflow="hidden",this.$host.style.position="relative"):(this.remove(this.$host),this.$host.removeAttribute("data-pd-ripple"))}},unmounted:function(e){this.remove(e)},timeout:void 0,methods:{bindEvents:function(e){e.addEventListener("mousedown",this.onMouseDown.bind(this))},unbindEvents:function(e){e.removeEventListener("mousedown",this.onMouseDown.bind(this))},createRipple:function(e){var n=Ps("span",lr(lr({role:"presentation","aria-hidden":!0,"data-p-ink":!0,"data-p-ink-active":!1,class:!this.isUnstyled()&&this.cx("root"),onAnimationEnd:this.onAnimationEnd.bind(this)},this.$attrSelector,""),"p-bind",this.ptm("root")));e.appendChild(n),this.$el=n},remove:function(e){var n=this.getInk(e);n&&(this.$host.style.overflow="",this.$host.style.position="",this.unbindEvents(e),n.removeEventListener("animationend",this.onAnimationEnd),n.remove())},onMouseDown:function(e){var n=this,o=e.currentTarget,r=this.getInk(o);if(!(!r||getComputedStyle(r,null).display==="none")){if(!this.isUnstyled()&&Dn(r,"p-ink-active"),r.setAttribute("data-p-ink-active","false"),!xo(r)&&!Lo(r)){var i=Math.max(Es(o),Ls(o));r.style.height=i+"px",r.style.width=i+"px"}var c=xs(o),a=e.pageX-c.left+document.body.scrollTop-Lo(r)/2,l=e.pageY-c.top+document.body.scrollLeft-xo(r)/2;r.style.top=l+"px",r.style.left=a+"px",!this.isUnstyled()&&Ts(r,"p-ink-active"),r.setAttribute("data-p-ink-active","true"),this.timeout=setTimeout(function(){r&&(!n.isUnstyled()&&Dn(r,"p-ink-active"),r.setAttribute("data-p-ink-active","false"))},401)}},onAnimationEnd:function(e){this.timeout&&clearTimeout(this.timeout),!this.isUnstyled()&&Dn(e.currentTarget,"p-ink-active"),e.currentTarget.setAttribute("data-p-ink-active","false")},getInk:function(e){return e&&e.children?Ua(e.children).find(function(n){return At(n,"data-pc-name")==="ripple"}):void 0}}}),Ga={name:"BasePanelMenu",extends:gn,props:{model:{type:Array,default:null},expandedKeys:{type:Object,default:null},multiple:{type:Boolean,default:!1},tabindex:{type:Number,default:0}},style:Pa,provide:function(){return{$pcPanelMenu:this,$parentInstance:this}}},cr={name:"PanelMenuSub",hostName:"PanelMenu",extends:gn,emits:["item-toggle","item-mousemove"],props:{panelId:{type:String,default:null},focusedItemId:{type:String,default:null},items:{type:Array,default:null},level:{type:Number,default:0},templates:{type:Object,default:null},activeItemPath:{type:Object,default:null},tabindex:{type:Number,default:-1}},methods:{getItemId:function(e){return"".concat(this.panelId,"_").concat(e.key)},getItemKey:function(e){return this.getItemId(e)},getItemProp:function(e,n,o){return e&&e.item?_e(e.item[n],o):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},getPTOptions:function(e,n,o){return this.ptm(e,{context:{item:n.item,index:o,active:this.isItemActive(n),focused:this.isItemFocused(n),disabled:this.isItemDisabled(n)}})},isItemActive:function(e){return this.activeItemPath.some(function(n){return n.key===e.key})},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return this.focusedItemId===this.getItemId(e)},isItemGroup:function(e){return G(e.items)},onItemClick:function(e,n){this.getItemProp(n,"command",{originalEvent:e,item:n.item}),this.$emit("item-toggle",{processedItem:n,expanded:!this.isItemActive(n)})},onItemToggle:function(e){this.$emit("item-toggle",e)},onItemMouseMove:function(e,n){this.$emit("item-mousemove",{originalEvent:e,processedItem:n})},getAriaSetSize:function(){var e=this;return this.items.filter(function(n){return e.isItemVisible(n)&&!e.getItemProp(n,"separator")}).length},getAriaPosInset:function(e){var n=this;return e-this.items.slice(0,e).filter(function(o){return n.isItemVisible(o)&&n.getItemProp(o,"separator")}).length+1},getMenuItemProps:function(e,n){return{action:s.mergeProps({class:this.cx("itemLink"),tabindex:-1,"aria-hidden":!0},this.getPTOptions("itemLink",e,n)),icon:s.mergeProps({class:[this.cx("itemIcon"),this.getItemProp(e,"icon")]},this.getPTOptions("itemIcon",e,n)),label:s.mergeProps({class:this.cx("itemLabel")},this.getPTOptions("itemLabel",e,n)),submenuicon:s.mergeProps({class:this.cx("submenuIcon")},this.getPTOptions("submenuicon",e,n))}}},components:{ChevronRightIcon:Wn,ChevronDownIcon:zn},directives:{ripple:Wa}},qa=["tabindex"],Ya=["id","aria-label","aria-expanded","aria-level","aria-setsize","aria-posinset","data-p-focused","data-p-disabled"],Xa=["onClick","onMousemove"],Za=["href","target"];function Ja(t,e,n,o,r,i){var c=s.resolveComponent("PanelMenuSub",!0),a=s.resolveDirective("ripple");return s.openBlock(),s.createElementBlock("ul",{class:s.normalizeClass(t.cx("submenu")),tabindex:n.tabindex},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.items,function(l,d){return s.openBlock(),s.createElementBlock(s.Fragment,{key:i.getItemKey(l)},[i.isItemVisible(l)&&!i.getItemProp(l,"separator")?(s.openBlock(),s.createElementBlock("li",s.mergeProps({key:0,id:i.getItemId(l),class:[t.cx("item",{processedItem:l}),i.getItemProp(l,"class")],style:i.getItemProp(l,"style"),role:"treeitem","aria-label":i.getItemLabel(l),"aria-expanded":i.isItemGroup(l)?i.isItemActive(l):void 0,"aria-level":n.level+1,"aria-setsize":i.getAriaSetSize(),"aria-posinset":i.getAriaPosInset(d),ref_for:!0},i.getPTOptions("item",l,d),{"data-p-focused":i.isItemFocused(l),"data-p-disabled":i.isItemDisabled(l)}),[s.createElementVNode("div",s.mergeProps({class:t.cx("itemContent"),onClick:function(h){return i.onItemClick(h,l)},onMousemove:function(h){return i.onItemMouseMove(h,l)},ref_for:!0},i.getPTOptions("itemContent",l,d)),[n.templates.item?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(n.templates.item),{key:1,item:l.item,root:!1,active:i.isItemActive(l),hasSubmenu:i.isItemGroup(l),label:i.getItemLabel(l),props:i.getMenuItemProps(l,d)},null,8,["item","active","hasSubmenu","label","props"])):s.withDirectives((s.openBlock(),s.createElementBlock("a",s.mergeProps({key:0,href:i.getItemProp(l,"url"),class:t.cx("itemLink"),target:i.getItemProp(l,"target"),tabindex:"-1",ref_for:!0},i.getPTOptions("itemLink",l,d)),[i.isItemGroup(l)?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[n.templates.submenuicon?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(n.templates.submenuicon),s.mergeProps({key:0,class:t.cx("submenuIcon"),active:i.isItemActive(l),ref_for:!0},i.getPTOptions("submenuIcon",l,d)),null,16,["class","active"])):(s.openBlock(),s.createBlock(s.resolveDynamicComponent(i.isItemActive(l)?"ChevronDownIcon":"ChevronRightIcon"),s.mergeProps({key:1,class:t.cx("submenuIcon"),ref_for:!0},i.getPTOptions("submenuIcon",l,d)),null,16,["class"]))],64)):s.createCommentVNode("",!0),n.templates.itemicon?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(n.templates.itemicon),{key:1,item:l.item,class:s.normalizeClass(t.cx("itemIcon"))},null,8,["item","class"])):i.getItemProp(l,"icon")?(s.openBlock(),s.createElementBlock("span",s.mergeProps({key:2,class:[t.cx("itemIcon"),i.getItemProp(l,"icon")],ref_for:!0},i.getPTOptions("itemIcon",l,d)),null,16)):s.createCommentVNode("",!0),s.createElementVNode("span",s.mergeProps({class:t.cx("itemLabel"),ref_for:!0},i.getPTOptions("itemLabel",l,d)),s.toDisplayString(i.getItemLabel(l)),17)],16,Za)),[[a]])],16,Xa),s.createVNode(s.Transition,s.mergeProps({name:"p-toggleable-content",ref_for:!0},t.ptm("transition")),{default:s.withCtx(function(){return[s.withDirectives(s.createElementVNode("div",s.mergeProps({class:t.cx("contentContainer"),ref_for:!0},t.ptm("contentContainer")),[i.isItemVisible(l)&&i.isItemGroup(l)?(s.openBlock(),s.createBlock(c,s.mergeProps({key:0,id:i.getItemId(l)+"_list",role:"group",panelId:n.panelId,focusedItemId:n.focusedItemId,items:l.items,level:n.level+1,templates:n.templates,activeItemPath:n.activeItemPath,onItemToggle:i.onItemToggle,onItemMousemove:e[0]||(e[0]=function(m){return t.$emit("item-mousemove",m)}),pt:t.pt,unstyled:t.unstyled,ref_for:!0},t.ptm("submenu")),null,16,["id","panelId","focusedItemId","items","level","templates","activeItemPath","onItemToggle","pt","unstyled"])):s.createCommentVNode("",!0)],16),[[s.vShow,i.isItemActive(l)]])]}),_:2},1040)],16,Ya)):s.createCommentVNode("",!0),i.isItemVisible(l)&&i.getItemProp(l,"separator")?(s.openBlock(),s.createElementBlock("li",s.mergeProps({key:1,style:i.getItemProp(l,"style"),class:[t.cx("separator"),i.getItemProp(l,"class")],role:"separator",ref_for:!0},t.ptm("separator")),null,16)):s.createCommentVNode("",!0)],64)}),128))],10,qa)}cr.render=Ja;function Qa(t,e){return ol(t)||nl(t,e)||tl(t,e)||el()}function el(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
341
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tl(t,e){if(t){if(typeof t=="string")return ur(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ur(t,e):void 0}}function ur(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function nl(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,r,i,c,a=[],l=!0,d=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(o=i.call(n)).done)&&(a.push(o.value),a.length!==e);l=!0);}catch(m){d=!0,r=m}finally{try{if(!l&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(d)throw r}}return a}}function ol(t){if(Array.isArray(t))return t}var dr={name:"PanelMenuList",hostName:"PanelMenu",extends:gn,emits:["item-toggle","header-focus"],props:{panelId:{type:String,default:null},items:{type:Array,default:null},templates:{type:Object,default:null},expandedKeys:{type:Object,default:null}},searchTimeout:null,searchValue:null,data:function(){return{focused:!1,focusedItem:null,activeItemPath:[]}},watch:{expandedKeys:function(e){this.autoUpdateActiveItemPath(e)}},mounted:function(){this.autoUpdateActiveItemPath(this.expandedKeys)},methods:{getItemProp:function(e,n){return e&&e.item?_e(e.item[n]):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemActive:function(e){return this.activeItemPath.some(function(n){return n.key===e.parentKey})},isItemGroup:function(e){return G(e.items)},onFocus:function(e){this.focused=!0,this.focusedItem=this.focusedItem||(this.isElementInPanel(e,e.relatedTarget)?this.findFirstItem():this.findLastItem())},onBlur:function(){this.focused=!1,this.focusedItem=null,this.searchValue=""},onKeyDown:function(e){var n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":case"Tab":case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!n&&Ns(e.key)&&this.searchItems(e,e.key);break}},onArrowDownKey:function(e){var n=G(this.focusedItem)?this.findNextItem(this.focusedItem):this.findFirstItem();this.changeFocusedItem({originalEvent:e,processedItem:n,focusOnNext:!0}),e.preventDefault()},onArrowUpKey:function(e){var n=G(this.focusedItem)?this.findPrevItem(this.focusedItem):this.findLastItem();this.changeFocusedItem({originalEvent:e,processedItem:n,selfCheck:!0}),e.preventDefault()},onArrowLeftKey:function(e){var n=this;if(G(this.focusedItem)){var o=this.activeItemPath.some(function(r){return r.key===n.focusedItem.key});o?this.activeItemPath=this.activeItemPath.filter(function(r){return r.key!==n.focusedItem.key}):this.focusedItem=G(this.focusedItem.parent)?this.focusedItem.parent:this.focusedItem,e.preventDefault()}},onArrowRightKey:function(e){var n=this;if(G(this.focusedItem)){var o=this.isItemGroup(this.focusedItem);if(o){var r=this.activeItemPath.some(function(i){return i.key===n.focusedItem.key});r?this.onArrowDownKey(e):(this.activeItemPath=this.activeItemPath.filter(function(i){return i.parentKey!==n.focusedItem.parentKey}),this.activeItemPath.push(this.focusedItem))}e.preventDefault()}},onHomeKey:function(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findFirstItem(),allowHeaderFocus:!1}),e.preventDefault()},onEndKey:function(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findLastItem(),focusOnNext:!0,allowHeaderFocus:!1}),e.preventDefault()},onEnterKey:function(e){if(G(this.focusedItem)){var n=Le(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]')),o=n&&(Le(n,'[data-pc-section="itemlink"]')||Le(n,"a,button"));o?o.click():n&&n.click()}e.preventDefault()},onSpaceKey:function(e){this.onEnterKey(e)},onItemToggle:function(e){var n=e.processedItem,o=e.expanded;this.expandedKeys?this.$emit("item-toggle",{item:n.item,expanded:o}):(this.activeItemPath=this.activeItemPath.filter(function(r){return r.parentKey!==n.parentKey}),o&&this.activeItemPath.push(n)),this.focusedItem=n,Pt(this.$el)},onItemMouseMove:function(e){this.focused&&(this.focusedItem=e.processedItem)},isElementInPanel:function(e,n){var o=e.currentTarget.closest('[data-pc-section="panel"]');return o&&o.contains(n)},isItemMatched:function(e){var n;return this.isValidItem(e)&&((n=this.getItemLabel(e))===null||n===void 0?void 0:n.toLocaleLowerCase(this.searchLocale).startsWith(this.searchValue.toLocaleLowerCase(this.searchLocale)))},isVisibleItem:function(e){return!!e&&(e.level===0||this.isItemActive(e))&&this.isItemVisible(e)},isValidItem:function(e){return!!e&&!this.isItemDisabled(e)&&!this.getItemProp(e,"separator")},findFirstItem:function(){var e=this;return this.visibleItems.find(function(n){return e.isValidItem(n)})},findLastItem:function(){var e=this;return $o(this.visibleItems,function(n){return e.isValidItem(n)})},findNextItem:function(e){var n=this,o=this.visibleItems.findIndex(function(i){return i.key===e.key}),r=o<this.visibleItems.length-1?this.visibleItems.slice(o+1).find(function(i){return n.isValidItem(i)}):void 0;return r||e},findPrevItem:function(e){var n=this,o=this.visibleItems.findIndex(function(i){return i.key===e.key}),r=o>0?$o(this.visibleItems.slice(0,o),function(i){return n.isValidItem(i)}):void 0;return r||e},searchItems:function(e,n){var o=this;this.searchValue=(this.searchValue||"")+n;var r=null,i=!1;if(G(this.focusedItem)){var c=this.visibleItems.findIndex(function(a){return a.key===o.focusedItem.key});r=this.visibleItems.slice(c).find(function(a){return o.isItemMatched(a)}),r=at(r)?this.visibleItems.slice(0,c).find(function(a){return o.isItemMatched(a)}):r}else r=this.visibleItems.find(function(a){return o.isItemMatched(a)});return G(r)&&(i=!0),at(r)&&at(this.focusedItem)&&(r=this.findFirstItem()),G(r)&&this.changeFocusedItem({originalEvent:e,processedItem:r,allowHeaderFocus:!1}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){o.searchValue="",o.searchTimeout=null},500),i},changeFocusedItem:function(e){var n=e.originalEvent,o=e.processedItem,r=e.focusOnNext,i=e.selfCheck,c=e.allowHeaderFocus,a=c===void 0?!0:c;G(this.focusedItem)&&this.focusedItem.key!==o.key?(this.focusedItem=o,this.scrollInView()):a&&this.$emit("header-focus",{originalEvent:n,focusOnNext:r,selfCheck:i})},scrollInView:function(){var e=Le(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]'));e&&e.scrollIntoView&&e.scrollIntoView({block:"nearest",inline:"start"})},autoUpdateActiveItemPath:function(e){var n=this;this.activeItemPath=Object.entries(e||{}).reduce(function(o,r){var i=Qa(r,2),c=i[0],a=i[1];if(a){var l=n.findProcessedItemByItemKey(c);l&&o.push(l)}return o},[])},findProcessedItemByItemKey:function(e,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(n=n||o===0&&this.processedItems,!n)return null;for(var r=0;r<n.length;r++){var i=n[r];if(this.getItemProp(i,"key")===e)return i;var c=this.findProcessedItemByItemKey(e,i.items,o+1);if(c)return c}},createProcessedItems:function(e){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",c=[];return e&&e.forEach(function(a,l){var d=(i!==""?i+"_":"")+l,m={item:a,index:l,level:o,key:d,parent:r,parentKey:i};m.items=n.createProcessedItems(a.items,o+1,m,d),c.push(m)}),c},flatItems:function(e){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e&&e.forEach(function(r){n.isVisibleItem(r)&&(o.push(r),n.flatItems(r.items,o))}),o}},computed:{processedItems:function(){return this.createProcessedItems(this.items||[])},visibleItems:function(){return this.flatItems(this.processedItems)},focusedItemId:function(){return G(this.focusedItem)?"".concat(this.panelId,"_").concat(this.focusedItem.key):null}},components:{PanelMenuSub:cr}};function rl(t,e,n,o,r,i){var c=s.resolveComponent("PanelMenuSub");return s.openBlock(),s.createBlock(c,s.mergeProps({id:n.panelId+"_list",class:t.cx("rootList"),role:"tree",tabindex:-1,"aria-activedescendant":r.focused?i.focusedItemId:void 0,panelId:n.panelId,focusedItemId:r.focused?i.focusedItemId:void 0,items:i.processedItems,templates:n.templates,activeItemPath:r.activeItemPath,onFocus:i.onFocus,onBlur:i.onBlur,onKeydown:i.onKeyDown,onItemToggle:i.onItemToggle,onItemMousemove:i.onItemMouseMove,pt:t.pt,unstyled:t.unstyled},t.ptm("rootList")),null,16,["id","class","aria-activedescendant","panelId","focusedItemId","items","templates","activeItemPath","onFocus","onBlur","onKeydown","onItemToggle","onItemMousemove","pt","unstyled"])}dr.render=rl;function Vt(t){"@babel/helpers - typeof";return Vt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vt(t)}function fr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,o)}return n}function il(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?fr(Object(n),!0).forEach(function(o){sl(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function sl(t,e,n){return(e=al(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function al(t){var e=ll(t,"string");return Vt(e)=="symbol"?e:e+""}function ll(t,e){if(Vt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(Vt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var mr={name:"PanelMenu",extends:Ga,inheritAttrs:!1,emits:["update:expandedKeys","panel-open","panel-close"],data:function(){return{id:this.$attrs.id,activeItem:null,activeItems:[]}},watch:{"$attrs.id":function(e){this.id=e||fn()}},mounted:function(){this.id=this.id||fn()},methods:{getItemProp:function(e,n){return e?_e(e[n]):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},getPTOptions:function(e,n,o){return this.ptm(e,{context:{index:o,active:this.isItemActive(n),focused:this.isItemFocused(n),disabled:this.isItemDisabled(n)}})},isItemActive:function(e){return this.expandedKeys?this.expandedKeys[this.getItemProp(e,"key")]:this.multiple?this.activeItems.some(function(n){return ht(e,n)}):ht(e,this.activeItem)},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return ht(e,this.activeItem)},getPanelId:function(e){return"".concat(this.id,"_").concat(e)},getPanelKey:function(e){return this.getPanelId(e)},getHeaderId:function(e){return"".concat(this.getPanelId(e),"_header")},getContentId:function(e){return"".concat(this.getPanelId(e),"_content")},onHeaderClick:function(e,n){if(this.isItemDisabled(n)){e.preventDefault();return}n.command&&n.command({originalEvent:e,item:n}),this.changeActiveItem(e,n),Pt(e.currentTarget)},onHeaderKeyDown:function(e,n){switch(e.code){case"ArrowDown":this.onHeaderArrowDownKey(e);break;case"ArrowUp":this.onHeaderArrowUpKey(e);break;case"Home":this.onHeaderHomeKey(e);break;case"End":this.onHeaderEndKey(e);break;case"Enter":case"NumpadEnter":case"Space":this.onHeaderEnterKey(e,n);break}},onHeaderArrowDownKey:function(e){var n=At(e.currentTarget,"data-p-active")===!0?Le(e.currentTarget.nextElementSibling,'[data-pc-section="rootlist"]'):null;n?Pt(n):this.updateFocusedHeader({originalEvent:e,focusOnNext:!0}),e.preventDefault()},onHeaderArrowUpKey:function(e){var n=this.findPrevHeader(e.currentTarget.parentElement)||this.findLastHeader(),o=At(n,"data-p-active")===!0?Le(n.nextElementSibling,'[data-pc-section="rootlist"]'):null;o?Pt(o):this.updateFocusedHeader({originalEvent:e,focusOnNext:!1}),e.preventDefault()},onHeaderHomeKey:function(e){this.changeFocusedHeader(e,this.findFirstHeader()),e.preventDefault()},onHeaderEndKey:function(e){this.changeFocusedHeader(e,this.findLastHeader()),e.preventDefault()},onHeaderEnterKey:function(e,n){var o=Le(e.currentTarget,'[data-pc-section="headerlink"]');o?o.click():this.onHeaderClick(e,n),e.preventDefault()},findNextHeader:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=n?e:e.nextElementSibling,r=Le(o,'[data-pc-section="header"]');return r?At(r,"data-p-disabled")?this.findNextHeader(r.parentElement):r:null},findPrevHeader:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=n?e:e.previousElementSibling,r=Le(o,'[data-pc-section="header"]');return r?At(r,"data-p-disabled")?this.findPrevHeader(r.parentElement):r:null},findFirstHeader:function(){return this.findNextHeader(this.$el.firstElementChild,!0)},findLastHeader:function(){return this.findPrevHeader(this.$el.lastElementChild,!0)},updateFocusedHeader:function(e){var n=e.originalEvent,o=e.focusOnNext,r=e.selfCheck,i=n.currentTarget.closest('[data-pc-section="panel"]'),c=r?Le(i,'[data-pc-section="header"]'):o?this.findNextHeader(i):this.findPrevHeader(i);c?this.changeFocusedHeader(n,c):o?this.onHeaderHomeKey(n):this.onHeaderEndKey(n)},changeActiveItem:function(e,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!this.isItemDisabled(n)){var r=this.isItemActive(n),i=r?"panel-close":"panel-open";this.activeItem=o?n:this.activeItem&&ht(n,this.activeItem)?null:n,this.multiple&&(this.activeItems.some(function(c){return ht(n,c)})?this.activeItems=this.activeItems.filter(function(c){return!ht(n,c)}):this.activeItems.push(n)),this.changeExpandedKeys({item:n,expanded:!r}),this.$emit(i,{originalEvent:e,item:n})}},changeExpandedKeys:function(e){var n=e.item,o=e.expanded,r=o===void 0?!1:o;if(this.expandedKeys){var i=il({},this.expandedKeys);r?i[n.key]=!0:delete i[n.key],this.$emit("update:expandedKeys",i)}},changeFocusedHeader:function(e,n){n&&Pt(n)},getMenuItemProps:function(e,n){return{icon:s.mergeProps({class:[this.cx("headerIcon"),this.getItemProp(e,"icon")]},this.getPTOptions("headerIcon",e,n)),label:s.mergeProps({class:this.cx("headerLabel")},this.getPTOptions("headerLabel",e,n))}}},components:{PanelMenuList:dr,ChevronRightIcon:Wn,ChevronDownIcon:zn}},cl=["id"],ul=["id","tabindex","aria-label","aria-expanded","aria-controls","aria-disabled","onClick","onKeydown","data-p-active","data-p-disabled"],dl=["href"],fl=["id","aria-labelledby"];function ml(t,e,n,o,r,i){var c=s.resolveComponent("PanelMenuList");return s.openBlock(),s.createElementBlock("div",s.mergeProps({id:r.id,class:t.cx("root")},t.ptmi("root")),[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.model,function(a,l){return s.openBlock(),s.createElementBlock(s.Fragment,{key:i.getPanelKey(l)},[i.isItemVisible(a)?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:0,style:i.getItemProp(a,"style"),class:[t.cx("panel"),i.getItemProp(a,"class")],ref_for:!0},t.ptm("panel")),[s.createElementVNode("div",s.mergeProps({id:i.getHeaderId(l),class:[t.cx("header",{item:a}),i.getItemProp(a,"headerClass")],tabindex:i.isItemDisabled(a)?-1:t.tabindex,role:"button","aria-label":i.getItemLabel(a),"aria-expanded":i.isItemActive(a),"aria-controls":i.getContentId(l),"aria-disabled":i.isItemDisabled(a),onClick:function(m){return i.onHeaderClick(m,a)},onKeydown:function(m){return i.onHeaderKeyDown(m,a)},ref_for:!0},i.getPTOptions("header",a,l),{"data-p-active":i.isItemActive(a),"data-p-disabled":i.isItemDisabled(a)}),[s.createElementVNode("div",s.mergeProps({class:t.cx("headerContent"),ref_for:!0},i.getPTOptions("headerContent",a,l)),[t.$slots.item?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.$slots.item),{key:1,item:a,root:!0,active:i.isItemActive(a),hasSubmenu:i.getItemProp(a,"items"),label:i.getItemLabel(a),props:i.getMenuItemProps(a,l)},null,8,["item","active","hasSubmenu","label","props"])):(s.openBlock(),s.createElementBlock("a",s.mergeProps({key:0,href:i.getItemProp(a,"url"),class:t.cx("headerLink"),tabindex:-1,ref_for:!0},i.getPTOptions("headerLink",a,l)),[i.getItemProp(a,"items")?s.renderSlot(t.$slots,"submenuicon",{key:0,active:i.isItemActive(a)},function(){return[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(i.isItemActive(a)?"ChevronDownIcon":"ChevronRightIcon"),s.mergeProps({class:t.cx("submenuIcon"),ref_for:!0},i.getPTOptions("submenuIcon",a,l)),null,16,["class"]))]}):s.createCommentVNode("",!0),t.$slots.headericon?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.$slots.headericon),{key:1,item:a,class:s.normalizeClass([t.cx("headerIcon"),i.getItemProp(a,"icon")])},null,8,["item","class"])):i.getItemProp(a,"icon")?(s.openBlock(),s.createElementBlock("span",s.mergeProps({key:2,class:[t.cx("headerIcon"),i.getItemProp(a,"icon")],ref_for:!0},i.getPTOptions("headerIcon",a,l)),null,16)):s.createCommentVNode("",!0),s.createElementVNode("span",s.mergeProps({class:t.cx("headerLabel"),ref_for:!0},i.getPTOptions("headerLabel",a,l)),s.toDisplayString(i.getItemLabel(a)),17)],16,dl))],16)],16,ul),s.createVNode(s.Transition,s.mergeProps({name:"p-toggleable-content",ref_for:!0},t.ptm("transition")),{default:s.withCtx(function(){return[s.withDirectives(s.createElementVNode("div",s.mergeProps({id:i.getContentId(l),class:t.cx("contentContainer"),role:"region","aria-labelledby":i.getHeaderId(l),ref_for:!0},t.ptm("contentContainer")),[i.getItemProp(a,"items")?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:0,class:t.cx("content"),ref_for:!0},t.ptm("content")),[s.createVNode(c,{panelId:i.getPanelId(l),items:i.getItemProp(a,"items"),templates:t.$slots,expandedKeys:t.expandedKeys,onItemToggle:i.changeExpandedKeys,onHeaderFocus:i.updateFocusedHeader,pt:t.pt,unstyled:t.unstyled},null,8,["panelId","items","templates","expandedKeys","onItemToggle","onHeaderFocus","pt","unstyled"])],16)):s.createCommentVNode("",!0)],16,fl),[[s.vShow,i.isItemActive(a)]])]}),_:2},1040)],16)):s.createCommentVNode("",!0)],64)}),128))],16,cl)}mr.render=ml;const pl={class:"panel-menu-wrapper"},hl=["data-active","href","onClick"],gl={class:"material-symbols-outlined item-menu-icon-left"},yl={key:1,class:"item-menu sf-ripple"},bl={key:0,class:"material-symbols-outlined item-menu-icon-left"},vl=an(s.defineComponent({__name:"NavMenu",props:{items:{}},setup(t){const e=t,n=Bn();function o(r,i){r.preventDefault();const a=r.target.closest(".panel-menu-wrapper");a&&a.clientWidth+10>document.body.clientWidth&&n.Close(),i()}return(r,i)=>{const c=s.resolveComponent("router-link");return s.openBlock(),s.createElementBlock("div",pl,[s.createVNode(s.unref(mr),{model:e.items,unstyled:!0},{item:s.withCtx(({item:a,active:l})=>[a.href?(s.openBlock(),s.createBlock(c,{key:0,to:{path:a.href,params:a.params??{},query:a.query??{}},custom:""},{default:s.withCtx(({navigate:d,isActive:m})=>[s.createElementVNode("a",{class:"item-menu sf-ripple","data-active":m,href:a.href,onClick:h=>o(h,d)},[s.createElementVNode("span",gl,s.toDisplayString(a.icon??"chevron_right"),1),s.createElementVNode("span",null,s.toDisplayString(a.text),1)],8,hl)]),_:2},1032,["to"])):(s.openBlock(),s.createElementBlock("a",yl,[a.icon?(s.openBlock(),s.createElementBlock("span",bl,s.toDisplayString(a.icon),1)):s.createCommentVNode("",!0),s.createElementVNode("span",null,s.toDisplayString(a.text),1),i[0]||(i[0]=s.createElementVNode("div",{class:"sf-flex-grow-1"},null,-1)),s.createElementVNode("span",{class:s.normalizeClass(["material-symbols-outlined arrow",{"--expand":l}])}," chevron_right ",2)]))]),_:1},8,["model"])])}}}),[["__scopeId","data-v-1411187f"]]),pr="SweetAlert2:",wl=t=>{const e=[];for(let n=0;n<t.length;n++)e.indexOf(t[n])===-1&&e.push(t[n]);return e},Yn=t=>t.charAt(0).toUpperCase()+t.slice(1),ke=t=>Array.prototype.slice.call(t),he=t=>{console.warn(`${pr} ${typeof t=="object"?t.join(" "):t}`)},lt=t=>{console.error(`${pr} ${t}`)},hr=[],_l=t=>{hr.includes(t)||(hr.push(t),he(t))},kl=(t,e)=>{_l(`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`)},yn=t=>typeof t=="function"?t():t,Xn=t=>t&&typeof t.toPromise=="function",Ht=t=>Xn(t)?t.toPromise():Promise.resolve(t),Zn=t=>t&&Promise.resolve(t)===t,gt={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},Sl=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],Cl={},Il=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],gr=t=>Object.prototype.hasOwnProperty.call(gt,t),yr=t=>Sl.indexOf(t)!==-1,Jn=t=>Cl[t],Tl=t=>{gr(t)||he(`Unknown parameter "${t}"`)},El=t=>{Il.includes(t)&&he(`The parameter "${t}" is incompatible with toasts`)},Pl=t=>{Jn(t)&&kl(t,Jn(t))},Al=t=>{!t.backdrop&&t.allowOutsideClick&&he('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)Tl(e),t.toast&&El(e),Pl(e)},xl="swal2-",br=t=>{const e={};for(const n in t)e[t[n]]=xl+t[n];return e},g=br(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),jt=br(["success","warning","info","question","error"]),re=()=>document.body.querySelector(`.${g.container}`),Ft=t=>{const e=re();return e?e.querySelector(t):null},Ee=t=>Ft(`.${t}`),q=()=>Ee(g.popup),Kt=()=>Ee(g.icon),vr=()=>Ee(g.title),bn=()=>Ee(g["html-container"]),wr=()=>Ee(g.image),_r=()=>Ee(g["progress-steps"]),vn=()=>Ee(g["validation-message"]),Be=()=>Ft(`.${g.actions} .${g.confirm}`),tt=()=>Ft(`.${g.actions} .${g.deny}`),Ll=()=>Ee(g["input-label"]),yt=()=>Ft(`.${g.loader}`),ct=()=>Ft(`.${g.actions} .${g.cancel}`),zt=()=>Ee(g.actions),kr=()=>Ee(g.footer),wn=()=>Ee(g["timer-progress-bar"]),Qn=()=>Ee(g.close),Ol=`
340
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ha(t,e){if(t){if(typeof t=="string")return qn(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qn(t,e):void 0}}function ja(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Fa(t){if(Array.isArray(t))return qn(t)}function qn(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function lr(t,e,n){return(e=Ka(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ka(t){var e=za(t,"string");return Ut(e)=="symbol"?e:e+""}function za(t,e){if(Ut(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(Ut(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Wa=Ra.extend("ripple",{watch:{"config.ripple":function(e){e?(this.createRipple(this.$host),this.bindEvents(this.$host),this.$host.setAttribute("data-pd-ripple",!0),this.$host.style.overflow="hidden",this.$host.style.position="relative"):(this.remove(this.$host),this.$host.removeAttribute("data-pd-ripple"))}},unmounted:function(e){this.remove(e)},timeout:void 0,methods:{bindEvents:function(e){e.addEventListener("mousedown",this.onMouseDown.bind(this))},unbindEvents:function(e){e.removeEventListener("mousedown",this.onMouseDown.bind(this))},createRipple:function(e){var n=As("span",lr(lr({role:"presentation","aria-hidden":!0,"data-p-ink":!0,"data-p-ink-active":!1,class:!this.isUnstyled()&&this.cx("root"),onAnimationEnd:this.onAnimationEnd.bind(this)},this.$attrSelector,""),"p-bind",this.ptm("root")));e.appendChild(n),this.$el=n},remove:function(e){var n=this.getInk(e);n&&(this.$host.style.overflow="",this.$host.style.position="",this.unbindEvents(e),n.removeEventListener("animationend",this.onAnimationEnd),n.remove())},onMouseDown:function(e){var n=this,o=e.currentTarget,r=this.getInk(o);if(!(!r||getComputedStyle(r,null).display==="none")){if(!this.isUnstyled()&&Dn(r,"p-ink-active"),r.setAttribute("data-p-ink-active","false"),!xo(r)&&!Lo(r)){var i=Math.max(Es(o),Ls(o));r.style.height=i+"px",r.style.width=i+"px"}var c=xs(o),a=e.pageX-c.left+document.body.scrollTop-Lo(r)/2,l=e.pageY-c.top+document.body.scrollLeft-xo(r)/2;r.style.top=l+"px",r.style.left=a+"px",!this.isUnstyled()&&Ts(r,"p-ink-active"),r.setAttribute("data-p-ink-active","true"),this.timeout=setTimeout(function(){r&&(!n.isUnstyled()&&Dn(r,"p-ink-active"),r.setAttribute("data-p-ink-active","false"))},401)}},onAnimationEnd:function(e){this.timeout&&clearTimeout(this.timeout),!this.isUnstyled()&&Dn(e.currentTarget,"p-ink-active"),e.currentTarget.setAttribute("data-p-ink-active","false")},getInk:function(e){return e&&e.children?Ua(e.children).find(function(n){return Pt(n,"data-pc-name")==="ripple"}):void 0}}}),Ga={name:"BasePanelMenu",extends:gn,props:{model:{type:Array,default:null},expandedKeys:{type:Object,default:null},multiple:{type:Boolean,default:!1},tabindex:{type:Number,default:0}},style:Aa,provide:function(){return{$pcPanelMenu:this,$parentInstance:this}}},cr={name:"PanelMenuSub",hostName:"PanelMenu",extends:gn,emits:["item-toggle","item-mousemove"],props:{panelId:{type:String,default:null},focusedItemId:{type:String,default:null},items:{type:Array,default:null},level:{type:Number,default:0},templates:{type:Object,default:null},activeItemPath:{type:Object,default:null},tabindex:{type:Number,default:-1}},methods:{getItemId:function(e){return"".concat(this.panelId,"_").concat(e.key)},getItemKey:function(e){return this.getItemId(e)},getItemProp:function(e,n,o){return e&&e.item?_e(e.item[n],o):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},getPTOptions:function(e,n,o){return this.ptm(e,{context:{item:n.item,index:o,active:this.isItemActive(n),focused:this.isItemFocused(n),disabled:this.isItemDisabled(n)}})},isItemActive:function(e){return this.activeItemPath.some(function(n){return n.key===e.key})},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return this.focusedItemId===this.getItemId(e)},isItemGroup:function(e){return G(e.items)},onItemClick:function(e,n){this.getItemProp(n,"command",{originalEvent:e,item:n.item}),this.$emit("item-toggle",{processedItem:n,expanded:!this.isItemActive(n)})},onItemToggle:function(e){this.$emit("item-toggle",e)},onItemMouseMove:function(e,n){this.$emit("item-mousemove",{originalEvent:e,processedItem:n})},getAriaSetSize:function(){var e=this;return this.items.filter(function(n){return e.isItemVisible(n)&&!e.getItemProp(n,"separator")}).length},getAriaPosInset:function(e){var n=this;return e-this.items.slice(0,e).filter(function(o){return n.isItemVisible(o)&&n.getItemProp(o,"separator")}).length+1},getMenuItemProps:function(e,n){return{action:s.mergeProps({class:this.cx("itemLink"),tabindex:-1,"aria-hidden":!0},this.getPTOptions("itemLink",e,n)),icon:s.mergeProps({class:[this.cx("itemIcon"),this.getItemProp(e,"icon")]},this.getPTOptions("itemIcon",e,n)),label:s.mergeProps({class:this.cx("itemLabel")},this.getPTOptions("itemLabel",e,n)),submenuicon:s.mergeProps({class:this.cx("submenuIcon")},this.getPTOptions("submenuicon",e,n))}}},components:{ChevronRightIcon:Wn,ChevronDownIcon:zn},directives:{ripple:Wa}},qa=["tabindex"],Ya=["id","aria-label","aria-expanded","aria-level","aria-setsize","aria-posinset","data-p-focused","data-p-disabled"],Xa=["onClick","onMousemove"],Za=["href","target"];function Ja(t,e,n,o,r,i){var c=s.resolveComponent("PanelMenuSub",!0),a=s.resolveDirective("ripple");return s.openBlock(),s.createElementBlock("ul",{class:s.normalizeClass(t.cx("submenu")),tabindex:n.tabindex},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.items,function(l,d){return s.openBlock(),s.createElementBlock(s.Fragment,{key:i.getItemKey(l)},[i.isItemVisible(l)&&!i.getItemProp(l,"separator")?(s.openBlock(),s.createElementBlock("li",s.mergeProps({key:0,id:i.getItemId(l),class:[t.cx("item",{processedItem:l}),i.getItemProp(l,"class")],style:i.getItemProp(l,"style"),role:"treeitem","aria-label":i.getItemLabel(l),"aria-expanded":i.isItemGroup(l)?i.isItemActive(l):void 0,"aria-level":n.level+1,"aria-setsize":i.getAriaSetSize(),"aria-posinset":i.getAriaPosInset(d),ref_for:!0},i.getPTOptions("item",l,d),{"data-p-focused":i.isItemFocused(l),"data-p-disabled":i.isItemDisabled(l)}),[s.createElementVNode("div",s.mergeProps({class:t.cx("itemContent"),onClick:function(h){return i.onItemClick(h,l)},onMousemove:function(h){return i.onItemMouseMove(h,l)},ref_for:!0},i.getPTOptions("itemContent",l,d)),[n.templates.item?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(n.templates.item),{key:1,item:l.item,root:!1,active:i.isItemActive(l),hasSubmenu:i.isItemGroup(l),label:i.getItemLabel(l),props:i.getMenuItemProps(l,d)},null,8,["item","active","hasSubmenu","label","props"])):s.withDirectives((s.openBlock(),s.createElementBlock("a",s.mergeProps({key:0,href:i.getItemProp(l,"url"),class:t.cx("itemLink"),target:i.getItemProp(l,"target"),tabindex:"-1",ref_for:!0},i.getPTOptions("itemLink",l,d)),[i.isItemGroup(l)?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[n.templates.submenuicon?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(n.templates.submenuicon),s.mergeProps({key:0,class:t.cx("submenuIcon"),active:i.isItemActive(l),ref_for:!0},i.getPTOptions("submenuIcon",l,d)),null,16,["class","active"])):(s.openBlock(),s.createBlock(s.resolveDynamicComponent(i.isItemActive(l)?"ChevronDownIcon":"ChevronRightIcon"),s.mergeProps({key:1,class:t.cx("submenuIcon"),ref_for:!0},i.getPTOptions("submenuIcon",l,d)),null,16,["class"]))],64)):s.createCommentVNode("",!0),n.templates.itemicon?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(n.templates.itemicon),{key:1,item:l.item,class:s.normalizeClass(t.cx("itemIcon"))},null,8,["item","class"])):i.getItemProp(l,"icon")?(s.openBlock(),s.createElementBlock("span",s.mergeProps({key:2,class:[t.cx("itemIcon"),i.getItemProp(l,"icon")],ref_for:!0},i.getPTOptions("itemIcon",l,d)),null,16)):s.createCommentVNode("",!0),s.createElementVNode("span",s.mergeProps({class:t.cx("itemLabel"),ref_for:!0},i.getPTOptions("itemLabel",l,d)),s.toDisplayString(i.getItemLabel(l)),17)],16,Za)),[[a]])],16,Xa),s.createVNode(s.Transition,s.mergeProps({name:"p-toggleable-content",ref_for:!0},t.ptm("transition")),{default:s.withCtx(function(){return[s.withDirectives(s.createElementVNode("div",s.mergeProps({class:t.cx("contentContainer"),ref_for:!0},t.ptm("contentContainer")),[i.isItemVisible(l)&&i.isItemGroup(l)?(s.openBlock(),s.createBlock(c,s.mergeProps({key:0,id:i.getItemId(l)+"_list",role:"group",panelId:n.panelId,focusedItemId:n.focusedItemId,items:l.items,level:n.level+1,templates:n.templates,activeItemPath:n.activeItemPath,onItemToggle:i.onItemToggle,onItemMousemove:e[0]||(e[0]=function(m){return t.$emit("item-mousemove",m)}),pt:t.pt,unstyled:t.unstyled,ref_for:!0},t.ptm("submenu")),null,16,["id","panelId","focusedItemId","items","level","templates","activeItemPath","onItemToggle","pt","unstyled"])):s.createCommentVNode("",!0)],16),[[s.vShow,i.isItemActive(l)]])]}),_:2},1040)],16,Ya)):s.createCommentVNode("",!0),i.isItemVisible(l)&&i.getItemProp(l,"separator")?(s.openBlock(),s.createElementBlock("li",s.mergeProps({key:1,style:i.getItemProp(l,"style"),class:[t.cx("separator"),i.getItemProp(l,"class")],role:"separator",ref_for:!0},t.ptm("separator")),null,16)):s.createCommentVNode("",!0)],64)}),128))],10,qa)}cr.render=Ja;function Qa(t,e){return ol(t)||nl(t,e)||tl(t,e)||el()}function el(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
341
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tl(t,e){if(t){if(typeof t=="string")return ur(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ur(t,e):void 0}}function ur(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function nl(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,r,i,c,a=[],l=!0,d=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(o=i.call(n)).done)&&(a.push(o.value),a.length!==e);l=!0);}catch(m){d=!0,r=m}finally{try{if(!l&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(d)throw r}}return a}}function ol(t){if(Array.isArray(t))return t}var dr={name:"PanelMenuList",hostName:"PanelMenu",extends:gn,emits:["item-toggle","header-focus"],props:{panelId:{type:String,default:null},items:{type:Array,default:null},templates:{type:Object,default:null},expandedKeys:{type:Object,default:null}},searchTimeout:null,searchValue:null,data:function(){return{focused:!1,focusedItem:null,activeItemPath:[]}},watch:{expandedKeys:function(e){this.autoUpdateActiveItemPath(e)}},mounted:function(){this.autoUpdateActiveItemPath(this.expandedKeys)},methods:{getItemProp:function(e,n){return e&&e.item?_e(e.item[n]):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemActive:function(e){return this.activeItemPath.some(function(n){return n.key===e.parentKey})},isItemGroup:function(e){return G(e.items)},onFocus:function(e){this.focused=!0,this.focusedItem=this.focusedItem||(this.isElementInPanel(e,e.relatedTarget)?this.findFirstItem():this.findLastItem())},onBlur:function(){this.focused=!1,this.focusedItem=null,this.searchValue=""},onKeyDown:function(e){var n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":case"Tab":case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!n&&Ns(e.key)&&this.searchItems(e,e.key);break}},onArrowDownKey:function(e){var n=G(this.focusedItem)?this.findNextItem(this.focusedItem):this.findFirstItem();this.changeFocusedItem({originalEvent:e,processedItem:n,focusOnNext:!0}),e.preventDefault()},onArrowUpKey:function(e){var n=G(this.focusedItem)?this.findPrevItem(this.focusedItem):this.findLastItem();this.changeFocusedItem({originalEvent:e,processedItem:n,selfCheck:!0}),e.preventDefault()},onArrowLeftKey:function(e){var n=this;if(G(this.focusedItem)){var o=this.activeItemPath.some(function(r){return r.key===n.focusedItem.key});o?this.activeItemPath=this.activeItemPath.filter(function(r){return r.key!==n.focusedItem.key}):this.focusedItem=G(this.focusedItem.parent)?this.focusedItem.parent:this.focusedItem,e.preventDefault()}},onArrowRightKey:function(e){var n=this;if(G(this.focusedItem)){var o=this.isItemGroup(this.focusedItem);if(o){var r=this.activeItemPath.some(function(i){return i.key===n.focusedItem.key});r?this.onArrowDownKey(e):(this.activeItemPath=this.activeItemPath.filter(function(i){return i.parentKey!==n.focusedItem.parentKey}),this.activeItemPath.push(this.focusedItem))}e.preventDefault()}},onHomeKey:function(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findFirstItem(),allowHeaderFocus:!1}),e.preventDefault()},onEndKey:function(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findLastItem(),focusOnNext:!0,allowHeaderFocus:!1}),e.preventDefault()},onEnterKey:function(e){if(G(this.focusedItem)){var n=Le(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]')),o=n&&(Le(n,'[data-pc-section="itemlink"]')||Le(n,"a,button"));o?o.click():n&&n.click()}e.preventDefault()},onSpaceKey:function(e){this.onEnterKey(e)},onItemToggle:function(e){var n=e.processedItem,o=e.expanded;this.expandedKeys?this.$emit("item-toggle",{item:n.item,expanded:o}):(this.activeItemPath=this.activeItemPath.filter(function(r){return r.parentKey!==n.parentKey}),o&&this.activeItemPath.push(n)),this.focusedItem=n,At(this.$el)},onItemMouseMove:function(e){this.focused&&(this.focusedItem=e.processedItem)},isElementInPanel:function(e,n){var o=e.currentTarget.closest('[data-pc-section="panel"]');return o&&o.contains(n)},isItemMatched:function(e){var n;return this.isValidItem(e)&&((n=this.getItemLabel(e))===null||n===void 0?void 0:n.toLocaleLowerCase(this.searchLocale).startsWith(this.searchValue.toLocaleLowerCase(this.searchLocale)))},isVisibleItem:function(e){return!!e&&(e.level===0||this.isItemActive(e))&&this.isItemVisible(e)},isValidItem:function(e){return!!e&&!this.isItemDisabled(e)&&!this.getItemProp(e,"separator")},findFirstItem:function(){var e=this;return this.visibleItems.find(function(n){return e.isValidItem(n)})},findLastItem:function(){var e=this;return $o(this.visibleItems,function(n){return e.isValidItem(n)})},findNextItem:function(e){var n=this,o=this.visibleItems.findIndex(function(i){return i.key===e.key}),r=o<this.visibleItems.length-1?this.visibleItems.slice(o+1).find(function(i){return n.isValidItem(i)}):void 0;return r||e},findPrevItem:function(e){var n=this,o=this.visibleItems.findIndex(function(i){return i.key===e.key}),r=o>0?$o(this.visibleItems.slice(0,o),function(i){return n.isValidItem(i)}):void 0;return r||e},searchItems:function(e,n){var o=this;this.searchValue=(this.searchValue||"")+n;var r=null,i=!1;if(G(this.focusedItem)){var c=this.visibleItems.findIndex(function(a){return a.key===o.focusedItem.key});r=this.visibleItems.slice(c).find(function(a){return o.isItemMatched(a)}),r=at(r)?this.visibleItems.slice(0,c).find(function(a){return o.isItemMatched(a)}):r}else r=this.visibleItems.find(function(a){return o.isItemMatched(a)});return G(r)&&(i=!0),at(r)&&at(this.focusedItem)&&(r=this.findFirstItem()),G(r)&&this.changeFocusedItem({originalEvent:e,processedItem:r,allowHeaderFocus:!1}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){o.searchValue="",o.searchTimeout=null},500),i},changeFocusedItem:function(e){var n=e.originalEvent,o=e.processedItem,r=e.focusOnNext,i=e.selfCheck,c=e.allowHeaderFocus,a=c===void 0?!0:c;G(this.focusedItem)&&this.focusedItem.key!==o.key?(this.focusedItem=o,this.scrollInView()):a&&this.$emit("header-focus",{originalEvent:n,focusOnNext:r,selfCheck:i})},scrollInView:function(){var e=Le(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]'));e&&e.scrollIntoView&&e.scrollIntoView({block:"nearest",inline:"start"})},autoUpdateActiveItemPath:function(e){var n=this;this.activeItemPath=Object.entries(e||{}).reduce(function(o,r){var i=Qa(r,2),c=i[0],a=i[1];if(a){var l=n.findProcessedItemByItemKey(c);l&&o.push(l)}return o},[])},findProcessedItemByItemKey:function(e,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(n=n||o===0&&this.processedItems,!n)return null;for(var r=0;r<n.length;r++){var i=n[r];if(this.getItemProp(i,"key")===e)return i;var c=this.findProcessedItemByItemKey(e,i.items,o+1);if(c)return c}},createProcessedItems:function(e){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",c=[];return e&&e.forEach(function(a,l){var d=(i!==""?i+"_":"")+l,m={item:a,index:l,level:o,key:d,parent:r,parentKey:i};m.items=n.createProcessedItems(a.items,o+1,m,d),c.push(m)}),c},flatItems:function(e){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e&&e.forEach(function(r){n.isVisibleItem(r)&&(o.push(r),n.flatItems(r.items,o))}),o}},computed:{processedItems:function(){return this.createProcessedItems(this.items||[])},visibleItems:function(){return this.flatItems(this.processedItems)},focusedItemId:function(){return G(this.focusedItem)?"".concat(this.panelId,"_").concat(this.focusedItem.key):null}},components:{PanelMenuSub:cr}};function rl(t,e,n,o,r,i){var c=s.resolveComponent("PanelMenuSub");return s.openBlock(),s.createBlock(c,s.mergeProps({id:n.panelId+"_list",class:t.cx("rootList"),role:"tree",tabindex:-1,"aria-activedescendant":r.focused?i.focusedItemId:void 0,panelId:n.panelId,focusedItemId:r.focused?i.focusedItemId:void 0,items:i.processedItems,templates:n.templates,activeItemPath:r.activeItemPath,onFocus:i.onFocus,onBlur:i.onBlur,onKeydown:i.onKeyDown,onItemToggle:i.onItemToggle,onItemMousemove:i.onItemMouseMove,pt:t.pt,unstyled:t.unstyled},t.ptm("rootList")),null,16,["id","class","aria-activedescendant","panelId","focusedItemId","items","templates","activeItemPath","onFocus","onBlur","onKeydown","onItemToggle","onItemMousemove","pt","unstyled"])}dr.render=rl;function Vt(t){"@babel/helpers - typeof";return Vt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vt(t)}function fr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,o)}return n}function il(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?fr(Object(n),!0).forEach(function(o){sl(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function sl(t,e,n){return(e=al(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function al(t){var e=ll(t,"string");return Vt(e)=="symbol"?e:e+""}function ll(t,e){if(Vt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(Vt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var mr={name:"PanelMenu",extends:Ga,inheritAttrs:!1,emits:["update:expandedKeys","panel-open","panel-close"],data:function(){return{id:this.$attrs.id,activeItem:null,activeItems:[]}},watch:{"$attrs.id":function(e){this.id=e||fn()}},mounted:function(){this.id=this.id||fn()},methods:{getItemProp:function(e,n){return e?_e(e[n]):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},getPTOptions:function(e,n,o){return this.ptm(e,{context:{index:o,active:this.isItemActive(n),focused:this.isItemFocused(n),disabled:this.isItemDisabled(n)}})},isItemActive:function(e){return this.expandedKeys?this.expandedKeys[this.getItemProp(e,"key")]:this.multiple?this.activeItems.some(function(n){return ht(e,n)}):ht(e,this.activeItem)},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return ht(e,this.activeItem)},getPanelId:function(e){return"".concat(this.id,"_").concat(e)},getPanelKey:function(e){return this.getPanelId(e)},getHeaderId:function(e){return"".concat(this.getPanelId(e),"_header")},getContentId:function(e){return"".concat(this.getPanelId(e),"_content")},onHeaderClick:function(e,n){if(this.isItemDisabled(n)){e.preventDefault();return}n.command&&n.command({originalEvent:e,item:n}),this.changeActiveItem(e,n),At(e.currentTarget)},onHeaderKeyDown:function(e,n){switch(e.code){case"ArrowDown":this.onHeaderArrowDownKey(e);break;case"ArrowUp":this.onHeaderArrowUpKey(e);break;case"Home":this.onHeaderHomeKey(e);break;case"End":this.onHeaderEndKey(e);break;case"Enter":case"NumpadEnter":case"Space":this.onHeaderEnterKey(e,n);break}},onHeaderArrowDownKey:function(e){var n=Pt(e.currentTarget,"data-p-active")===!0?Le(e.currentTarget.nextElementSibling,'[data-pc-section="rootlist"]'):null;n?At(n):this.updateFocusedHeader({originalEvent:e,focusOnNext:!0}),e.preventDefault()},onHeaderArrowUpKey:function(e){var n=this.findPrevHeader(e.currentTarget.parentElement)||this.findLastHeader(),o=Pt(n,"data-p-active")===!0?Le(n.nextElementSibling,'[data-pc-section="rootlist"]'):null;o?At(o):this.updateFocusedHeader({originalEvent:e,focusOnNext:!1}),e.preventDefault()},onHeaderHomeKey:function(e){this.changeFocusedHeader(e,this.findFirstHeader()),e.preventDefault()},onHeaderEndKey:function(e){this.changeFocusedHeader(e,this.findLastHeader()),e.preventDefault()},onHeaderEnterKey:function(e,n){var o=Le(e.currentTarget,'[data-pc-section="headerlink"]');o?o.click():this.onHeaderClick(e,n),e.preventDefault()},findNextHeader:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=n?e:e.nextElementSibling,r=Le(o,'[data-pc-section="header"]');return r?Pt(r,"data-p-disabled")?this.findNextHeader(r.parentElement):r:null},findPrevHeader:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=n?e:e.previousElementSibling,r=Le(o,'[data-pc-section="header"]');return r?Pt(r,"data-p-disabled")?this.findPrevHeader(r.parentElement):r:null},findFirstHeader:function(){return this.findNextHeader(this.$el.firstElementChild,!0)},findLastHeader:function(){return this.findPrevHeader(this.$el.lastElementChild,!0)},updateFocusedHeader:function(e){var n=e.originalEvent,o=e.focusOnNext,r=e.selfCheck,i=n.currentTarget.closest('[data-pc-section="panel"]'),c=r?Le(i,'[data-pc-section="header"]'):o?this.findNextHeader(i):this.findPrevHeader(i);c?this.changeFocusedHeader(n,c):o?this.onHeaderHomeKey(n):this.onHeaderEndKey(n)},changeActiveItem:function(e,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!this.isItemDisabled(n)){var r=this.isItemActive(n),i=r?"panel-close":"panel-open";this.activeItem=o?n:this.activeItem&&ht(n,this.activeItem)?null:n,this.multiple&&(this.activeItems.some(function(c){return ht(n,c)})?this.activeItems=this.activeItems.filter(function(c){return!ht(n,c)}):this.activeItems.push(n)),this.changeExpandedKeys({item:n,expanded:!r}),this.$emit(i,{originalEvent:e,item:n})}},changeExpandedKeys:function(e){var n=e.item,o=e.expanded,r=o===void 0?!1:o;if(this.expandedKeys){var i=il({},this.expandedKeys);r?i[n.key]=!0:delete i[n.key],this.$emit("update:expandedKeys",i)}},changeFocusedHeader:function(e,n){n&&At(n)},getMenuItemProps:function(e,n){return{icon:s.mergeProps({class:[this.cx("headerIcon"),this.getItemProp(e,"icon")]},this.getPTOptions("headerIcon",e,n)),label:s.mergeProps({class:this.cx("headerLabel")},this.getPTOptions("headerLabel",e,n))}}},components:{PanelMenuList:dr,ChevronRightIcon:Wn,ChevronDownIcon:zn}},cl=["id"],ul=["id","tabindex","aria-label","aria-expanded","aria-controls","aria-disabled","onClick","onKeydown","data-p-active","data-p-disabled"],dl=["href"],fl=["id","aria-labelledby"];function ml(t,e,n,o,r,i){var c=s.resolveComponent("PanelMenuList");return s.openBlock(),s.createElementBlock("div",s.mergeProps({id:r.id,class:t.cx("root")},t.ptmi("root")),[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.model,function(a,l){return s.openBlock(),s.createElementBlock(s.Fragment,{key:i.getPanelKey(l)},[i.isItemVisible(a)?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:0,style:i.getItemProp(a,"style"),class:[t.cx("panel"),i.getItemProp(a,"class")],ref_for:!0},t.ptm("panel")),[s.createElementVNode("div",s.mergeProps({id:i.getHeaderId(l),class:[t.cx("header",{item:a}),i.getItemProp(a,"headerClass")],tabindex:i.isItemDisabled(a)?-1:t.tabindex,role:"button","aria-label":i.getItemLabel(a),"aria-expanded":i.isItemActive(a),"aria-controls":i.getContentId(l),"aria-disabled":i.isItemDisabled(a),onClick:function(m){return i.onHeaderClick(m,a)},onKeydown:function(m){return i.onHeaderKeyDown(m,a)},ref_for:!0},i.getPTOptions("header",a,l),{"data-p-active":i.isItemActive(a),"data-p-disabled":i.isItemDisabled(a)}),[s.createElementVNode("div",s.mergeProps({class:t.cx("headerContent"),ref_for:!0},i.getPTOptions("headerContent",a,l)),[t.$slots.item?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.$slots.item),{key:1,item:a,root:!0,active:i.isItemActive(a),hasSubmenu:i.getItemProp(a,"items"),label:i.getItemLabel(a),props:i.getMenuItemProps(a,l)},null,8,["item","active","hasSubmenu","label","props"])):(s.openBlock(),s.createElementBlock("a",s.mergeProps({key:0,href:i.getItemProp(a,"url"),class:t.cx("headerLink"),tabindex:-1,ref_for:!0},i.getPTOptions("headerLink",a,l)),[i.getItemProp(a,"items")?s.renderSlot(t.$slots,"submenuicon",{key:0,active:i.isItemActive(a)},function(){return[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(i.isItemActive(a)?"ChevronDownIcon":"ChevronRightIcon"),s.mergeProps({class:t.cx("submenuIcon"),ref_for:!0},i.getPTOptions("submenuIcon",a,l)),null,16,["class"]))]}):s.createCommentVNode("",!0),t.$slots.headericon?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.$slots.headericon),{key:1,item:a,class:s.normalizeClass([t.cx("headerIcon"),i.getItemProp(a,"icon")])},null,8,["item","class"])):i.getItemProp(a,"icon")?(s.openBlock(),s.createElementBlock("span",s.mergeProps({key:2,class:[t.cx("headerIcon"),i.getItemProp(a,"icon")],ref_for:!0},i.getPTOptions("headerIcon",a,l)),null,16)):s.createCommentVNode("",!0),s.createElementVNode("span",s.mergeProps({class:t.cx("headerLabel"),ref_for:!0},i.getPTOptions("headerLabel",a,l)),s.toDisplayString(i.getItemLabel(a)),17)],16,dl))],16)],16,ul),s.createVNode(s.Transition,s.mergeProps({name:"p-toggleable-content",ref_for:!0},t.ptm("transition")),{default:s.withCtx(function(){return[s.withDirectives(s.createElementVNode("div",s.mergeProps({id:i.getContentId(l),class:t.cx("contentContainer"),role:"region","aria-labelledby":i.getHeaderId(l),ref_for:!0},t.ptm("contentContainer")),[i.getItemProp(a,"items")?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:0,class:t.cx("content"),ref_for:!0},t.ptm("content")),[s.createVNode(c,{panelId:i.getPanelId(l),items:i.getItemProp(a,"items"),templates:t.$slots,expandedKeys:t.expandedKeys,onItemToggle:i.changeExpandedKeys,onHeaderFocus:i.updateFocusedHeader,pt:t.pt,unstyled:t.unstyled},null,8,["panelId","items","templates","expandedKeys","onItemToggle","onHeaderFocus","pt","unstyled"])],16)):s.createCommentVNode("",!0)],16,fl),[[s.vShow,i.isItemActive(a)]])]}),_:2},1040)],16)):s.createCommentVNode("",!0)],64)}),128))],16,cl)}mr.render=ml;const pl={class:"panel-menu-wrapper"},hl=["data-active","href","onClick"],gl={class:"material-symbols-outlined item-menu-icon-left"},yl={key:1,class:"item-menu sf-ripple"},bl={key:0,class:"material-symbols-outlined item-menu-icon-left"},vl=an(s.defineComponent({__name:"NavMenu",props:{items:{}},setup(t){const e=t,n=Bn();function o(r,i){r.preventDefault();const a=r.target.closest(".panel-menu-wrapper");a&&a.clientWidth+10>document.body.clientWidth&&n.Close(),i()}return(r,i)=>{const c=s.resolveComponent("router-link");return s.openBlock(),s.createElementBlock("div",pl,[s.createVNode(s.unref(mr),{model:e.items,unstyled:!0},{item:s.withCtx(({item:a,active:l})=>[a.href?(s.openBlock(),s.createBlock(c,{key:0,to:{path:a.href,params:a.params??{},query:a.query??{}},custom:""},{default:s.withCtx(({navigate:d,isActive:m})=>[s.createElementVNode("a",{class:"item-menu sf-ripple","data-active":m,href:a.href,onClick:h=>o(h,d)},[s.createElementVNode("span",gl,s.toDisplayString(a.icon??"chevron_right"),1),s.createElementVNode("span",null,s.toDisplayString(a.text),1)],8,hl)]),_:2},1032,["to"])):(s.openBlock(),s.createElementBlock("a",yl,[a.icon?(s.openBlock(),s.createElementBlock("span",bl,s.toDisplayString(a.icon),1)):s.createCommentVNode("",!0),s.createElementVNode("span",null,s.toDisplayString(a.text),1),i[0]||(i[0]=s.createElementVNode("div",{class:"sf-flex-grow-1"},null,-1)),s.createElementVNode("span",{class:s.normalizeClass(["material-symbols-outlined arrow",{"--expand":l}])}," chevron_right ",2)]))]),_:1},8,["model"])])}}}),[["__scopeId","data-v-1411187f"]]),pr="SweetAlert2:",wl=t=>{const e=[];for(let n=0;n<t.length;n++)e.indexOf(t[n])===-1&&e.push(t[n]);return e},Yn=t=>t.charAt(0).toUpperCase()+t.slice(1),ke=t=>Array.prototype.slice.call(t),he=t=>{console.warn(`${pr} ${typeof t=="object"?t.join(" "):t}`)},lt=t=>{console.error(`${pr} ${t}`)},hr=[],_l=t=>{hr.includes(t)||(hr.push(t),he(t))},kl=(t,e)=>{_l(`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`)},yn=t=>typeof t=="function"?t():t,Xn=t=>t&&typeof t.toPromise=="function",Ht=t=>Xn(t)?t.toPromise():Promise.resolve(t),Zn=t=>t&&Promise.resolve(t)===t,gt={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},Sl=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],Cl={},Il=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],gr=t=>Object.prototype.hasOwnProperty.call(gt,t),yr=t=>Sl.indexOf(t)!==-1,Jn=t=>Cl[t],Tl=t=>{gr(t)||he(`Unknown parameter "${t}"`)},El=t=>{Il.includes(t)&&he(`The parameter "${t}" is incompatible with toasts`)},Al=t=>{Jn(t)&&kl(t,Jn(t))},Pl=t=>{!t.backdrop&&t.allowOutsideClick&&he('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)Tl(e),t.toast&&El(e),Al(e)},xl="swal2-",br=t=>{const e={};for(const n in t)e[t[n]]=xl+t[n];return e},g=br(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),jt=br(["success","warning","info","question","error"]),re=()=>document.body.querySelector(`.${g.container}`),Ft=t=>{const e=re();return e?e.querySelector(t):null},Ee=t=>Ft(`.${t}`),q=()=>Ee(g.popup),Kt=()=>Ee(g.icon),vr=()=>Ee(g.title),bn=()=>Ee(g["html-container"]),wr=()=>Ee(g.image),_r=()=>Ee(g["progress-steps"]),vn=()=>Ee(g["validation-message"]),Be=()=>Ft(`.${g.actions} .${g.confirm}`),tt=()=>Ft(`.${g.actions} .${g.deny}`),Ll=()=>Ee(g["input-label"]),yt=()=>Ft(`.${g.loader}`),ct=()=>Ft(`.${g.actions} .${g.cancel}`),zt=()=>Ee(g.actions),kr=()=>Ee(g.footer),wn=()=>Ee(g["timer-progress-bar"]),Qn=()=>Ee(g.close),Ol=`
342
342
  a[href],
343
343
  area[href],
344
344
  input:not([disabled]),
@@ -353,7 +353,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
353
353
  audio[controls],
354
354
  video[controls],
355
355
  summary
356
- `,eo=()=>{const t=ke(q().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((n,o)=>{const r=parseInt(n.getAttribute("tabindex")),i=parseInt(o.getAttribute("tabindex"));return r>i?1:r<i?-1:0}),e=ke(q().querySelectorAll(Ol)).filter(n=>n.getAttribute("tabindex")!=="-1");return wl(t.concat(e)).filter(n=>Se(n))},to=()=>qe(document.body,g.shown)&&!qe(document.body,g["toast-shown"])&&!qe(document.body,g["no-backdrop"]),_n=()=>q()&&qe(q(),g.toast),$l=()=>q().hasAttribute("data-loading"),bt={previousBodyPadding:null},ie=(t,e)=>{if(t.textContent="",e){const o=new DOMParser().parseFromString(e,"text/html");ke(o.querySelector("head").childNodes).forEach(r=>{t.appendChild(r)}),ke(o.querySelector("body").childNodes).forEach(r=>{t.appendChild(r)})}},qe=(t,e)=>{if(!e)return!1;const n=e.split(/\s+/);for(let o=0;o<n.length;o++)if(!t.classList.contains(n[o]))return!1;return!0},Bl=(t,e)=>{ke(t.classList).forEach(n=>{!Object.values(g).includes(n)&&!Object.values(jt).includes(n)&&!Object.values(e.showClass).includes(n)&&t.classList.remove(n)})},Pe=(t,e,n)=>{if(Bl(t,e),e.customClass&&e.customClass[n]){if(typeof e.customClass[n]!="string"&&!e.customClass[n].forEach)return he(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof e.customClass[n]}"`);z(t,e.customClass[n])}},no=(t,e)=>{if(!e)return null;switch(e){case"select":case"textarea":case"file":return t.querySelector(`.${g.popup} > .${g[e]}`);case"checkbox":return t.querySelector(`.${g.popup} > .${g.checkbox} input`);case"radio":return t.querySelector(`.${g.popup} > .${g.radio} input:checked`)||t.querySelector(`.${g.popup} > .${g.radio} input:first-child`);case"range":return t.querySelector(`.${g.popup} > .${g.range} input`);default:return t.querySelector(`.${g.popup} > .${g.input}`)}},Sr=t=>{if(t.focus(),t.type!=="file"){const e=t.value;t.value="",t.value=e}},Cr=(t,e,n)=>{!t||!e||(typeof e=="string"&&(e=e.split(/\s+/).filter(Boolean)),e.forEach(o=>{Array.isArray(t)?t.forEach(r=>{n?r.classList.add(o):r.classList.remove(o)}):n?t.classList.add(o):t.classList.remove(o)}))},z=(t,e)=>{Cr(t,e,!0)},Re=(t,e)=>{Cr(t,e,!1)},nt=(t,e)=>{const n=ke(t.childNodes);for(let o=0;o<n.length;o++)if(qe(n[o],e))return n[o]},Wt=(t,e,n)=>{n===`${parseInt(n)}`&&(n=parseInt(n)),n||parseInt(n)===0?t.style[e]=typeof n=="number"?`${n}px`:n:t.style.removeProperty(e)},ne=(t,e="flex")=>{t.style.display=e},se=t=>{t.style.display="none"},Ir=(t,e,n,o)=>{const r=t.querySelector(e);r&&(r.style[n]=o)},kn=(t,e,n)=>{e?ne(t,n):se(t)},Se=t=>!!(t&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),Nl=()=>!Se(Be())&&!Se(tt())&&!Se(ct()),Tr=t=>t.scrollHeight>t.clientHeight,Er=t=>{const e=window.getComputedStyle(t),n=parseFloat(e.getPropertyValue("animation-duration")||"0"),o=parseFloat(e.getPropertyValue("transition-duration")||"0");return n>0||o>0},oo=(t,e=!1)=>{const n=wn();Se(n)&&(e&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${t/1e3}s linear`,n.style.width="0%"},10))},Dl=()=>{const t=wn(),e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";const n=parseInt(window.getComputedStyle(t).width),o=e/n*100;t.style.removeProperty("transition"),t.style.width=`${o}%`},Pr=()=>typeof window>"u"||typeof document>"u",Ml=100,D={},Rl=()=>{D.previousActiveElement&&D.previousActiveElement.focus?(D.previousActiveElement.focus(),D.previousActiveElement=null):document.body&&document.body.focus()},Ul=t=>new Promise(e=>{if(!t)return e();const n=window.scrollX,o=window.scrollY;D.restoreFocusTimeout=setTimeout(()=>{Rl(),e()},Ml),window.scrollTo(n,o)}),Vl=`
356
+ `,eo=()=>{const t=ke(q().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((n,o)=>{const r=parseInt(n.getAttribute("tabindex")),i=parseInt(o.getAttribute("tabindex"));return r>i?1:r<i?-1:0}),e=ke(q().querySelectorAll(Ol)).filter(n=>n.getAttribute("tabindex")!=="-1");return wl(t.concat(e)).filter(n=>Se(n))},to=()=>qe(document.body,g.shown)&&!qe(document.body,g["toast-shown"])&&!qe(document.body,g["no-backdrop"]),_n=()=>q()&&qe(q(),g.toast),$l=()=>q().hasAttribute("data-loading"),bt={previousBodyPadding:null},ie=(t,e)=>{if(t.textContent="",e){const o=new DOMParser().parseFromString(e,"text/html");ke(o.querySelector("head").childNodes).forEach(r=>{t.appendChild(r)}),ke(o.querySelector("body").childNodes).forEach(r=>{t.appendChild(r)})}},qe=(t,e)=>{if(!e)return!1;const n=e.split(/\s+/);for(let o=0;o<n.length;o++)if(!t.classList.contains(n[o]))return!1;return!0},Bl=(t,e)=>{ke(t.classList).forEach(n=>{!Object.values(g).includes(n)&&!Object.values(jt).includes(n)&&!Object.values(e.showClass).includes(n)&&t.classList.remove(n)})},Ae=(t,e,n)=>{if(Bl(t,e),e.customClass&&e.customClass[n]){if(typeof e.customClass[n]!="string"&&!e.customClass[n].forEach)return he(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof e.customClass[n]}"`);z(t,e.customClass[n])}},no=(t,e)=>{if(!e)return null;switch(e){case"select":case"textarea":case"file":return t.querySelector(`.${g.popup} > .${g[e]}`);case"checkbox":return t.querySelector(`.${g.popup} > .${g.checkbox} input`);case"radio":return t.querySelector(`.${g.popup} > .${g.radio} input:checked`)||t.querySelector(`.${g.popup} > .${g.radio} input:first-child`);case"range":return t.querySelector(`.${g.popup} > .${g.range} input`);default:return t.querySelector(`.${g.popup} > .${g.input}`)}},Sr=t=>{if(t.focus(),t.type!=="file"){const e=t.value;t.value="",t.value=e}},Cr=(t,e,n)=>{!t||!e||(typeof e=="string"&&(e=e.split(/\s+/).filter(Boolean)),e.forEach(o=>{Array.isArray(t)?t.forEach(r=>{n?r.classList.add(o):r.classList.remove(o)}):n?t.classList.add(o):t.classList.remove(o)}))},z=(t,e)=>{Cr(t,e,!0)},Ue=(t,e)=>{Cr(t,e,!1)},nt=(t,e)=>{const n=ke(t.childNodes);for(let o=0;o<n.length;o++)if(qe(n[o],e))return n[o]},Wt=(t,e,n)=>{n===`${parseInt(n)}`&&(n=parseInt(n)),n||parseInt(n)===0?t.style[e]=typeof n=="number"?`${n}px`:n:t.style.removeProperty(e)},ne=(t,e="flex")=>{t.style.display=e},se=t=>{t.style.display="none"},Ir=(t,e,n,o)=>{const r=t.querySelector(e);r&&(r.style[n]=o)},kn=(t,e,n)=>{e?ne(t,n):se(t)},Se=t=>!!(t&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),Nl=()=>!Se(Be())&&!Se(tt())&&!Se(ct()),Tr=t=>t.scrollHeight>t.clientHeight,Er=t=>{const e=window.getComputedStyle(t),n=parseFloat(e.getPropertyValue("animation-duration")||"0"),o=parseFloat(e.getPropertyValue("transition-duration")||"0");return n>0||o>0},oo=(t,e=!1)=>{const n=wn();Se(n)&&(e&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${t/1e3}s linear`,n.style.width="0%"},10))},Dl=()=>{const t=wn(),e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";const n=parseInt(window.getComputedStyle(t).width),o=e/n*100;t.style.removeProperty("transition"),t.style.width=`${o}%`},Ar=()=>typeof window>"u"||typeof document>"u",Ml=100,D={},Rl=()=>{D.previousActiveElement&&D.previousActiveElement.focus?(D.previousActiveElement.focus(),D.previousActiveElement=null):document.body&&document.body.focus()},Ul=t=>new Promise(e=>{if(!t)return e();const n=window.scrollX,o=window.scrollY;D.restoreFocusTimeout=setTimeout(()=>{Rl(),e()},Ml),window.scrollTo(n,o)}),Vl=`
357
357
  <div aria-labelledby="${g.title}" aria-describedby="${g["html-container"]}" class="${g.popup}" tabindex="-1">
358
358
  <button type="button" class="${g.close}"></button>
359
359
  <ul class="${g["progress-steps"]}"></ul>
@@ -386,7 +386,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
386
386
  <div class="${g["timer-progress-bar"]}"></div>
387
387
  </div>
388
388
  </div>
389
- `.replace(/(^|\n)\s*/g,""),Hl=()=>{const t=re();return t?(t.remove(),Re([document.documentElement,document.body],[g["no-backdrop"],g["toast-shown"],g["has-column"]]),!0):!1},ut=()=>{D.currentInstance.resetValidationMessage()},jl=()=>{const t=q(),e=nt(t,g.input),n=nt(t,g.file),o=t.querySelector(`.${g.range} input`),r=t.querySelector(`.${g.range} output`),i=nt(t,g.select),c=t.querySelector(`.${g.checkbox} input`),a=nt(t,g.textarea);e.oninput=ut,n.onchange=ut,i.onchange=ut,c.onchange=ut,a.oninput=ut,o.oninput=()=>{ut(),r.value=o.value},o.onchange=()=>{ut(),o.nextSibling.value=o.value}},Fl=t=>typeof t=="string"?document.querySelector(t):t,Kl=t=>{const e=q();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},zl=t=>{window.getComputedStyle(t).direction==="rtl"&&z(re(),g.rtl)},Wl=t=>{const e=Hl();if(Pr()){lt("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=g.container,e&&z(n,g["no-transition"]),ie(n,Vl);const o=Fl(t.target);o.appendChild(n),Kl(t),zl(o),jl()},ro=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):typeof t=="object"?Gl(t,e):t&&ie(e,t)},Gl=(t,e)=>{t.jquery?ql(e,t):ie(e,t.toString())},ql=(t,e)=>{if(t.textContent="",0 in e)for(let n=0;n in e;n++)t.appendChild(e[n].cloneNode(!0));else t.appendChild(e.cloneNode(!0))},Gt=(()=>{if(Pr())return!1;const t=document.createElement("div"),e={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&typeof t.style[n]<"u")return e[n];return!1})(),Yl=()=>{const t=document.createElement("div");t.className=g["scrollbar-measure"],document.body.appendChild(t);const e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},Xl=(t,e)=>{const n=zt(),o=yt();!e.showConfirmButton&&!e.showDenyButton&&!e.showCancelButton?se(n):ne(n),Pe(n,e,"actions"),Zl(n,o,e),ie(o,e.loaderHtml),Pe(o,e,"loader")};function Zl(t,e,n){const o=Be(),r=tt(),i=ct();io(o,"confirm",n),io(r,"deny",n),io(i,"cancel",n),Jl(o,r,i,n),n.reverseButtons&&(n.toast?(t.insertBefore(i,o),t.insertBefore(r,o)):(t.insertBefore(i,e),t.insertBefore(r,e),t.insertBefore(o,e)))}function Jl(t,e,n,o){if(!o.buttonsStyling)return Re([t,e,n],g.styled);z([t,e,n],g.styled),o.confirmButtonColor&&(t.style.backgroundColor=o.confirmButtonColor,z(t,g["default-outline"])),o.denyButtonColor&&(e.style.backgroundColor=o.denyButtonColor,z(e,g["default-outline"])),o.cancelButtonColor&&(n.style.backgroundColor=o.cancelButtonColor,z(n,g["default-outline"]))}function io(t,e,n){kn(t,n[`show${Yn(e)}Button`],"inline-block"),ie(t,n[`${e}ButtonText`]),t.setAttribute("aria-label",n[`${e}ButtonAriaLabel`]),t.className=g[e],Pe(t,n,`${e}Button`),z(t,n[`${e}ButtonClass`])}function Ql(t,e){typeof e=="string"?t.style.background=e:e||z([document.documentElement,document.body],g["no-backdrop"])}function ec(t,e){e in g?z(t,g[e]):(he('The "position" parameter is not valid, defaulting to "center"'),z(t,g.center))}function tc(t,e){if(e&&typeof e=="string"){const n=`grow-${e}`;n in g&&z(t,g[n])}}const nc=(t,e)=>{const n=re();n&&(Ql(n,e.backdrop),ec(n,e.position),tc(n,e.grow),Pe(n,e,"container"))},M={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},oc=["input","file","range","select","radio","checkbox","textarea"],rc=(t,e)=>{const n=q(),o=M.innerParams.get(t),r=!o||e.input!==o.input;oc.forEach(i=>{const c=g[i],a=nt(n,c);ac(i,e.inputAttributes),a.className=c,r&&se(a)}),e.input&&(r&&ic(e),lc(e))},ic=t=>{if(!ge[t.input])return lt(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${t.input}"`);const e=Ar(t.input),n=ge[t.input](e,t);ne(n),setTimeout(()=>{Sr(n)})},sc=t=>{for(let e=0;e<t.attributes.length;e++){const n=t.attributes[e].name;["type","value","style"].includes(n)||t.removeAttribute(n)}},ac=(t,e)=>{const n=no(q(),t);if(n){sc(n);for(const o in e)n.setAttribute(o,e[o])}},lc=t=>{const e=Ar(t.input);t.customClass&&z(e,t.customClass.input)},so=(t,e)=>{(!t.placeholder||e.inputPlaceholder)&&(t.placeholder=e.inputPlaceholder)},qt=(t,e,n)=>{if(n.inputLabel){t.id=g.input;const o=document.createElement("label"),r=g["input-label"];o.setAttribute("for",t.id),o.className=r,z(o,n.customClass.inputLabel),o.innerText=n.inputLabel,e.insertAdjacentElement("beforebegin",o)}},Ar=t=>{const e=g[t]?g[t]:g.input;return nt(q(),e)},ge={};ge.text=ge.email=ge.password=ge.number=ge.tel=ge.url=(t,e)=>(typeof e.inputValue=="string"||typeof e.inputValue=="number"?t.value=e.inputValue:Zn(e.inputValue)||he(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e.inputValue}"`),qt(t,t,e),so(t,e),t.type=e.input,t),ge.file=(t,e)=>(qt(t,t,e),so(t,e),t),ge.range=(t,e)=>{const n=t.querySelector("input"),o=t.querySelector("output");return n.value=e.inputValue,n.type=e.input,o.value=e.inputValue,qt(n,t,e),t},ge.select=(t,e)=>{if(t.textContent="",e.inputPlaceholder){const n=document.createElement("option");ie(n,e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)}return qt(t,t,e),t},ge.radio=t=>(t.textContent="",t),ge.checkbox=(t,e)=>{const n=no(q(),"checkbox");n.value="1",n.id=g.checkbox,n.checked=!!e.inputValue;const o=t.querySelector("span");return ie(o,e.inputPlaceholder),t},ge.textarea=(t,e)=>{t.value=e.inputValue,so(t,e),qt(t,t,e);const n=o=>parseInt(window.getComputedStyle(o).marginLeft)+parseInt(window.getComputedStyle(o).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const o=parseInt(window.getComputedStyle(q()).width),r=()=>{const i=t.offsetWidth+n(t);i>o?q().style.width=`${i}px`:q().style.width=null};new MutationObserver(r).observe(t,{attributes:!0,attributeFilter:["style"]})}}),t};const cc=(t,e)=>{const n=bn();Pe(n,e,"htmlContainer"),e.html?(ro(e.html,n),ne(n,"block")):e.text?(n.textContent=e.text,ne(n,"block")):se(n),rc(t,e)},uc=(t,e)=>{const n=kr();kn(n,e.footer),e.footer&&ro(e.footer,n),Pe(n,e,"footer")},dc=(t,e)=>{const n=Qn();ie(n,e.closeButtonHtml),Pe(n,e,"closeButton"),kn(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel)},fc=(t,e)=>{const n=M.innerParams.get(t),o=Kt();if(n&&e.icon===n.icon){Lr(o,e),xr(o,e);return}if(!e.icon&&!e.iconHtml)return se(o);if(e.icon&&Object.keys(jt).indexOf(e.icon)===-1)return lt(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`),se(o);ne(o),Lr(o,e),xr(o,e),z(o,e.showClass.icon)},xr=(t,e)=>{for(const n in jt)e.icon!==n&&Re(t,jt[n]);z(t,jt[e.icon]),gc(t,e),mc(),Pe(t,e,"icon")},mc=()=>{const t=q(),e=window.getComputedStyle(t).getPropertyValue("background-color"),n=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let o=0;o<n.length;o++)n[o].style.backgroundColor=e},pc=`
389
+ `.replace(/(^|\n)\s*/g,""),Hl=()=>{const t=re();return t?(t.remove(),Ue([document.documentElement,document.body],[g["no-backdrop"],g["toast-shown"],g["has-column"]]),!0):!1},ut=()=>{D.currentInstance.resetValidationMessage()},jl=()=>{const t=q(),e=nt(t,g.input),n=nt(t,g.file),o=t.querySelector(`.${g.range} input`),r=t.querySelector(`.${g.range} output`),i=nt(t,g.select),c=t.querySelector(`.${g.checkbox} input`),a=nt(t,g.textarea);e.oninput=ut,n.onchange=ut,i.onchange=ut,c.onchange=ut,a.oninput=ut,o.oninput=()=>{ut(),r.value=o.value},o.onchange=()=>{ut(),o.nextSibling.value=o.value}},Fl=t=>typeof t=="string"?document.querySelector(t):t,Kl=t=>{const e=q();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},zl=t=>{window.getComputedStyle(t).direction==="rtl"&&z(re(),g.rtl)},Wl=t=>{const e=Hl();if(Ar()){lt("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=g.container,e&&z(n,g["no-transition"]),ie(n,Vl);const o=Fl(t.target);o.appendChild(n),Kl(t),zl(o),jl()},ro=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):typeof t=="object"?Gl(t,e):t&&ie(e,t)},Gl=(t,e)=>{t.jquery?ql(e,t):ie(e,t.toString())},ql=(t,e)=>{if(t.textContent="",0 in e)for(let n=0;n in e;n++)t.appendChild(e[n].cloneNode(!0));else t.appendChild(e.cloneNode(!0))},Gt=(()=>{if(Ar())return!1;const t=document.createElement("div"),e={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&typeof t.style[n]<"u")return e[n];return!1})(),Yl=()=>{const t=document.createElement("div");t.className=g["scrollbar-measure"],document.body.appendChild(t);const e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},Xl=(t,e)=>{const n=zt(),o=yt();!e.showConfirmButton&&!e.showDenyButton&&!e.showCancelButton?se(n):ne(n),Ae(n,e,"actions"),Zl(n,o,e),ie(o,e.loaderHtml),Ae(o,e,"loader")};function Zl(t,e,n){const o=Be(),r=tt(),i=ct();io(o,"confirm",n),io(r,"deny",n),io(i,"cancel",n),Jl(o,r,i,n),n.reverseButtons&&(n.toast?(t.insertBefore(i,o),t.insertBefore(r,o)):(t.insertBefore(i,e),t.insertBefore(r,e),t.insertBefore(o,e)))}function Jl(t,e,n,o){if(!o.buttonsStyling)return Ue([t,e,n],g.styled);z([t,e,n],g.styled),o.confirmButtonColor&&(t.style.backgroundColor=o.confirmButtonColor,z(t,g["default-outline"])),o.denyButtonColor&&(e.style.backgroundColor=o.denyButtonColor,z(e,g["default-outline"])),o.cancelButtonColor&&(n.style.backgroundColor=o.cancelButtonColor,z(n,g["default-outline"]))}function io(t,e,n){kn(t,n[`show${Yn(e)}Button`],"inline-block"),ie(t,n[`${e}ButtonText`]),t.setAttribute("aria-label",n[`${e}ButtonAriaLabel`]),t.className=g[e],Ae(t,n,`${e}Button`),z(t,n[`${e}ButtonClass`])}function Ql(t,e){typeof e=="string"?t.style.background=e:e||z([document.documentElement,document.body],g["no-backdrop"])}function ec(t,e){e in g?z(t,g[e]):(he('The "position" parameter is not valid, defaulting to "center"'),z(t,g.center))}function tc(t,e){if(e&&typeof e=="string"){const n=`grow-${e}`;n in g&&z(t,g[n])}}const nc=(t,e)=>{const n=re();n&&(Ql(n,e.backdrop),ec(n,e.position),tc(n,e.grow),Ae(n,e,"container"))},M={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},oc=["input","file","range","select","radio","checkbox","textarea"],rc=(t,e)=>{const n=q(),o=M.innerParams.get(t),r=!o||e.input!==o.input;oc.forEach(i=>{const c=g[i],a=nt(n,c);ac(i,e.inputAttributes),a.className=c,r&&se(a)}),e.input&&(r&&ic(e),lc(e))},ic=t=>{if(!ge[t.input])return lt(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${t.input}"`);const e=Pr(t.input),n=ge[t.input](e,t);ne(n),setTimeout(()=>{Sr(n)})},sc=t=>{for(let e=0;e<t.attributes.length;e++){const n=t.attributes[e].name;["type","value","style"].includes(n)||t.removeAttribute(n)}},ac=(t,e)=>{const n=no(q(),t);if(n){sc(n);for(const o in e)n.setAttribute(o,e[o])}},lc=t=>{const e=Pr(t.input);t.customClass&&z(e,t.customClass.input)},so=(t,e)=>{(!t.placeholder||e.inputPlaceholder)&&(t.placeholder=e.inputPlaceholder)},qt=(t,e,n)=>{if(n.inputLabel){t.id=g.input;const o=document.createElement("label"),r=g["input-label"];o.setAttribute("for",t.id),o.className=r,z(o,n.customClass.inputLabel),o.innerText=n.inputLabel,e.insertAdjacentElement("beforebegin",o)}},Pr=t=>{const e=g[t]?g[t]:g.input;return nt(q(),e)},ge={};ge.text=ge.email=ge.password=ge.number=ge.tel=ge.url=(t,e)=>(typeof e.inputValue=="string"||typeof e.inputValue=="number"?t.value=e.inputValue:Zn(e.inputValue)||he(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e.inputValue}"`),qt(t,t,e),so(t,e),t.type=e.input,t),ge.file=(t,e)=>(qt(t,t,e),so(t,e),t),ge.range=(t,e)=>{const n=t.querySelector("input"),o=t.querySelector("output");return n.value=e.inputValue,n.type=e.input,o.value=e.inputValue,qt(n,t,e),t},ge.select=(t,e)=>{if(t.textContent="",e.inputPlaceholder){const n=document.createElement("option");ie(n,e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)}return qt(t,t,e),t},ge.radio=t=>(t.textContent="",t),ge.checkbox=(t,e)=>{const n=no(q(),"checkbox");n.value="1",n.id=g.checkbox,n.checked=!!e.inputValue;const o=t.querySelector("span");return ie(o,e.inputPlaceholder),t},ge.textarea=(t,e)=>{t.value=e.inputValue,so(t,e),qt(t,t,e);const n=o=>parseInt(window.getComputedStyle(o).marginLeft)+parseInt(window.getComputedStyle(o).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const o=parseInt(window.getComputedStyle(q()).width),r=()=>{const i=t.offsetWidth+n(t);i>o?q().style.width=`${i}px`:q().style.width=null};new MutationObserver(r).observe(t,{attributes:!0,attributeFilter:["style"]})}}),t};const cc=(t,e)=>{const n=bn();Ae(n,e,"htmlContainer"),e.html?(ro(e.html,n),ne(n,"block")):e.text?(n.textContent=e.text,ne(n,"block")):se(n),rc(t,e)},uc=(t,e)=>{const n=kr();kn(n,e.footer),e.footer&&ro(e.footer,n),Ae(n,e,"footer")},dc=(t,e)=>{const n=Qn();ie(n,e.closeButtonHtml),Ae(n,e,"closeButton"),kn(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel)},fc=(t,e)=>{const n=M.innerParams.get(t),o=Kt();if(n&&e.icon===n.icon){Lr(o,e),xr(o,e);return}if(!e.icon&&!e.iconHtml)return se(o);if(e.icon&&Object.keys(jt).indexOf(e.icon)===-1)return lt(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`),se(o);ne(o),Lr(o,e),xr(o,e),z(o,e.showClass.icon)},xr=(t,e)=>{for(const n in jt)e.icon!==n&&Ue(t,jt[n]);z(t,jt[e.icon]),gc(t,e),mc(),Ae(t,e,"icon")},mc=()=>{const t=q(),e=window.getComputedStyle(t).getPropertyValue("background-color"),n=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let o=0;o<n.length;o++)n[o].style.backgroundColor=e},pc=`
390
390
  <div class="swal2-success-circular-line-left"></div>
391
391
  <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
392
392
  <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>
@@ -396,16 +396,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
396
396
  <span class="swal2-x-mark-line-left"></span>
397
397
  <span class="swal2-x-mark-line-right"></span>
398
398
  </span>
399
- `,Lr=(t,e)=>{t.textContent="",e.iconHtml?ie(t,Or(e.iconHtml)):e.icon==="success"?ie(t,pc):e.icon==="error"?ie(t,hc):ie(t,Or({question:"?",warning:"!",info:"i"}[e.icon]))},gc=(t,e)=>{if(e.iconColor){t.style.color=e.iconColor,t.style.borderColor=e.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])Ir(t,n,"backgroundColor",e.iconColor);Ir(t,".swal2-success-ring","borderColor",e.iconColor)}},Or=t=>`<div class="${g["icon-content"]}">${t}</div>`,yc=(t,e)=>{const n=wr();if(!e.imageUrl)return se(n);ne(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt),Wt(n,"width",e.imageWidth),Wt(n,"height",e.imageHeight),n.className=g.image,Pe(n,e,"image")},bc=t=>{const e=document.createElement("li");return z(e,g["progress-step"]),ie(e,t),e},vc=t=>{const e=document.createElement("li");return z(e,g["progress-step-line"]),t.progressStepsDistance&&(e.style.width=t.progressStepsDistance),e},wc=(t,e)=>{const n=_r();if(!e.progressSteps||e.progressSteps.length===0)return se(n);ne(n),n.textContent="",e.currentProgressStep>=e.progressSteps.length&&he("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach((o,r)=>{const i=bc(o);if(n.appendChild(i),r===e.currentProgressStep&&z(i,g["active-progress-step"]),r!==e.progressSteps.length-1){const c=vc(e);n.appendChild(c)}})},_c=(t,e)=>{const n=vr();kn(n,e.title||e.titleText,"block"),e.title&&ro(e.title,n),e.titleText&&(n.innerText=e.titleText),Pe(n,e,"title")},kc=(t,e)=>{const n=re(),o=q();e.toast?(Wt(n,"width",e.width),o.style.width="100%",o.insertBefore(yt(),Kt())):Wt(o,"width",e.width),Wt(o,"padding",e.padding),e.color&&(o.style.color=e.color),e.background&&(o.style.background=e.background),se(vn()),Sc(o,e)},Sc=(t,e)=>{t.className=`${g.popup} ${Se(t)?e.showClass.popup:""}`,e.toast?(z([document.documentElement,document.body],g["toast-shown"]),z(t,g.toast)):z(t,g.modal),Pe(t,e,"popup"),typeof e.customClass=="string"&&z(t,e.customClass),e.icon&&z(t,g[`icon-${e.icon}`])},$r=(t,e)=>{kc(t,e),nc(t,e),wc(t,e),fc(t,e),yc(t,e),_c(t,e),dc(t,e),cc(t,e),Xl(t,e),uc(t,e),typeof e.didRender=="function"&&e.didRender(q())},vt=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Cc=()=>{ke(document.body.children).forEach(e=>{e===re()||e.contains(re())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))})},Br=()=>{ke(document.body.children).forEach(e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")})},Nr=["swal-title","swal-html","swal-footer"],Ic=t=>{const e=typeof t.template=="string"?document.querySelector(t.template):t.template;if(!e)return{};const n=e.content;return Oc(n),Object.assign(Tc(n),Ec(n),Pc(n),Ac(n),xc(n),Lc(n,Nr))},Tc=t=>{const e={};return ke(t.querySelectorAll("swal-param")).forEach(n=>{dt(n,["name","value"]);const o=n.getAttribute("name"),r=n.getAttribute("value");typeof gt[o]=="boolean"&&r==="false"&&(e[o]=!1),typeof gt[o]=="object"&&(e[o]=JSON.parse(r))}),e},Ec=t=>{const e={};return ke(t.querySelectorAll("swal-button")).forEach(n=>{dt(n,["type","color","aria-label"]);const o=n.getAttribute("type");e[`${o}ButtonText`]=n.innerHTML,e[`show${Yn(o)}Button`]=!0,n.hasAttribute("color")&&(e[`${o}ButtonColor`]=n.getAttribute("color")),n.hasAttribute("aria-label")&&(e[`${o}ButtonAriaLabel`]=n.getAttribute("aria-label"))}),e},Pc=t=>{const e={},n=t.querySelector("swal-image");return n&&(dt(n,["src","width","height","alt"]),n.hasAttribute("src")&&(e.imageUrl=n.getAttribute("src")),n.hasAttribute("width")&&(e.imageWidth=n.getAttribute("width")),n.hasAttribute("height")&&(e.imageHeight=n.getAttribute("height")),n.hasAttribute("alt")&&(e.imageAlt=n.getAttribute("alt"))),e},Ac=t=>{const e={},n=t.querySelector("swal-icon");return n&&(dt(n,["type","color"]),n.hasAttribute("type")&&(e.icon=n.getAttribute("type")),n.hasAttribute("color")&&(e.iconColor=n.getAttribute("color")),e.iconHtml=n.innerHTML),e},xc=t=>{const e={},n=t.querySelector("swal-input");n&&(dt(n,["type","label","placeholder","value"]),e.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(e.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(e.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(e.inputValue=n.getAttribute("value")));const o=t.querySelectorAll("swal-input-option");return o.length&&(e.inputOptions={},ke(o).forEach(r=>{dt(r,["value"]);const i=r.getAttribute("value"),c=r.innerHTML;e.inputOptions[i]=c})),e},Lc=(t,e)=>{const n={};for(const o in e){const r=e[o],i=t.querySelector(r);i&&(dt(i,[]),n[r.replace(/^swal-/,"")]=i.innerHTML.trim())}return n},Oc=t=>{const e=Nr.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);ke(t.children).forEach(n=>{const o=n.tagName.toLowerCase();e.indexOf(o)===-1&&he(`Unrecognized element <${o}>`)})},dt=(t,e)=>{ke(t.attributes).forEach(n=>{e.indexOf(n.name)===-1&&he([`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`,`${e.length?`Allowed attributes are: ${e.join(", ")}`:"To set the value, use HTML within the element."}`])})},Dr={email:(t,e)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid email address"),url:(t,e)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid URL")};function $c(t){t.inputValidator||Object.keys(Dr).forEach(e=>{t.input===e&&(t.inputValidator=Dr[e])})}function Bc(t){(!t.target||typeof t.target=="string"&&!document.querySelector(t.target)||typeof t.target!="string"&&!t.target.appendChild)&&(he('Target parameter is not valid, defaulting to "body"'),t.target="body")}function Nc(t){$c(t),t.showLoaderOnConfirm&&!t.preConfirm&&he(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
399
+ `,Lr=(t,e)=>{t.textContent="",e.iconHtml?ie(t,Or(e.iconHtml)):e.icon==="success"?ie(t,pc):e.icon==="error"?ie(t,hc):ie(t,Or({question:"?",warning:"!",info:"i"}[e.icon]))},gc=(t,e)=>{if(e.iconColor){t.style.color=e.iconColor,t.style.borderColor=e.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])Ir(t,n,"backgroundColor",e.iconColor);Ir(t,".swal2-success-ring","borderColor",e.iconColor)}},Or=t=>`<div class="${g["icon-content"]}">${t}</div>`,yc=(t,e)=>{const n=wr();if(!e.imageUrl)return se(n);ne(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt),Wt(n,"width",e.imageWidth),Wt(n,"height",e.imageHeight),n.className=g.image,Ae(n,e,"image")},bc=t=>{const e=document.createElement("li");return z(e,g["progress-step"]),ie(e,t),e},vc=t=>{const e=document.createElement("li");return z(e,g["progress-step-line"]),t.progressStepsDistance&&(e.style.width=t.progressStepsDistance),e},wc=(t,e)=>{const n=_r();if(!e.progressSteps||e.progressSteps.length===0)return se(n);ne(n),n.textContent="",e.currentProgressStep>=e.progressSteps.length&&he("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach((o,r)=>{const i=bc(o);if(n.appendChild(i),r===e.currentProgressStep&&z(i,g["active-progress-step"]),r!==e.progressSteps.length-1){const c=vc(e);n.appendChild(c)}})},_c=(t,e)=>{const n=vr();kn(n,e.title||e.titleText,"block"),e.title&&ro(e.title,n),e.titleText&&(n.innerText=e.titleText),Ae(n,e,"title")},kc=(t,e)=>{const n=re(),o=q();e.toast?(Wt(n,"width",e.width),o.style.width="100%",o.insertBefore(yt(),Kt())):Wt(o,"width",e.width),Wt(o,"padding",e.padding),e.color&&(o.style.color=e.color),e.background&&(o.style.background=e.background),se(vn()),Sc(o,e)},Sc=(t,e)=>{t.className=`${g.popup} ${Se(t)?e.showClass.popup:""}`,e.toast?(z([document.documentElement,document.body],g["toast-shown"]),z(t,g.toast)):z(t,g.modal),Ae(t,e,"popup"),typeof e.customClass=="string"&&z(t,e.customClass),e.icon&&z(t,g[`icon-${e.icon}`])},$r=(t,e)=>{kc(t,e),nc(t,e),wc(t,e),fc(t,e),yc(t,e),_c(t,e),dc(t,e),cc(t,e),Xl(t,e),uc(t,e),typeof e.didRender=="function"&&e.didRender(q())},vt=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Cc=()=>{ke(document.body.children).forEach(e=>{e===re()||e.contains(re())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))})},Br=()=>{ke(document.body.children).forEach(e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")})},Nr=["swal-title","swal-html","swal-footer"],Ic=t=>{const e=typeof t.template=="string"?document.querySelector(t.template):t.template;if(!e)return{};const n=e.content;return Oc(n),Object.assign(Tc(n),Ec(n),Ac(n),Pc(n),xc(n),Lc(n,Nr))},Tc=t=>{const e={};return ke(t.querySelectorAll("swal-param")).forEach(n=>{dt(n,["name","value"]);const o=n.getAttribute("name"),r=n.getAttribute("value");typeof gt[o]=="boolean"&&r==="false"&&(e[o]=!1),typeof gt[o]=="object"&&(e[o]=JSON.parse(r))}),e},Ec=t=>{const e={};return ke(t.querySelectorAll("swal-button")).forEach(n=>{dt(n,["type","color","aria-label"]);const o=n.getAttribute("type");e[`${o}ButtonText`]=n.innerHTML,e[`show${Yn(o)}Button`]=!0,n.hasAttribute("color")&&(e[`${o}ButtonColor`]=n.getAttribute("color")),n.hasAttribute("aria-label")&&(e[`${o}ButtonAriaLabel`]=n.getAttribute("aria-label"))}),e},Ac=t=>{const e={},n=t.querySelector("swal-image");return n&&(dt(n,["src","width","height","alt"]),n.hasAttribute("src")&&(e.imageUrl=n.getAttribute("src")),n.hasAttribute("width")&&(e.imageWidth=n.getAttribute("width")),n.hasAttribute("height")&&(e.imageHeight=n.getAttribute("height")),n.hasAttribute("alt")&&(e.imageAlt=n.getAttribute("alt"))),e},Pc=t=>{const e={},n=t.querySelector("swal-icon");return n&&(dt(n,["type","color"]),n.hasAttribute("type")&&(e.icon=n.getAttribute("type")),n.hasAttribute("color")&&(e.iconColor=n.getAttribute("color")),e.iconHtml=n.innerHTML),e},xc=t=>{const e={},n=t.querySelector("swal-input");n&&(dt(n,["type","label","placeholder","value"]),e.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(e.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(e.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(e.inputValue=n.getAttribute("value")));const o=t.querySelectorAll("swal-input-option");return o.length&&(e.inputOptions={},ke(o).forEach(r=>{dt(r,["value"]);const i=r.getAttribute("value"),c=r.innerHTML;e.inputOptions[i]=c})),e},Lc=(t,e)=>{const n={};for(const o in e){const r=e[o],i=t.querySelector(r);i&&(dt(i,[]),n[r.replace(/^swal-/,"")]=i.innerHTML.trim())}return n},Oc=t=>{const e=Nr.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);ke(t.children).forEach(n=>{const o=n.tagName.toLowerCase();e.indexOf(o)===-1&&he(`Unrecognized element <${o}>`)})},dt=(t,e)=>{ke(t.attributes).forEach(n=>{e.indexOf(n.name)===-1&&he([`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`,`${e.length?`Allowed attributes are: ${e.join(", ")}`:"To set the value, use HTML within the element."}`])})},Dr={email:(t,e)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid email address"),url:(t,e)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid URL")};function $c(t){t.inputValidator||Object.keys(Dr).forEach(e=>{t.input===e&&(t.inputValidator=Dr[e])})}function Bc(t){(!t.target||typeof t.target=="string"&&!document.querySelector(t.target)||typeof t.target!="string"&&!t.target.appendChild)&&(he('Target parameter is not valid, defaulting to "body"'),t.target="body")}function Nc(t){$c(t),t.showLoaderOnConfirm&&!t.preConfirm&&he(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
400
400
  showLoaderOnConfirm should be used together with preConfirm, see usage example:
401
401
  https://sweetalert2.github.io/#ajax-request`),Bc(t),typeof t.title=="string"&&(t.title=t.title.split(`
402
- `).join("<br />")),Wl(t)}class Dc{constructor(e,n){this.callback=e,this.remaining=n,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(e){const n=this.running;return n&&this.stop(),this.remaining+=e,n&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const Mc=()=>{bt.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(bt.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${bt.previousBodyPadding+Yl()}px`)},Rc=()=>{bt.previousBodyPadding!==null&&(document.body.style.paddingRight=`${bt.previousBodyPadding}px`,bt.previousBodyPadding=null)},Uc=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!qe(document.body,g.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,z(document.body,g.iosfix),Hc(),Vc()}},Vc=()=>{const t=navigator.userAgent,e=!!t.match(/iPad/i)||!!t.match(/iPhone/i),n=!!t.match(/WebKit/i);e&&n&&!t.match(/CriOS/i)&&q().scrollHeight>window.innerHeight-44&&(re().style.paddingBottom="44px")},Hc=()=>{const t=re();let e;t.ontouchstart=n=>{e=jc(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},jc=t=>{const e=t.target,n=re();return Fc(t)||Kc(t)?!1:e===n||!Tr(n)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(Tr(bn())&&bn().contains(e))},Fc=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",Kc=t=>t.touches&&t.touches.length>1,zc=()=>{if(qe(document.body,g.iosfix)){const t=parseInt(document.body.style.top,10);Re(document.body,g.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},Mr=10,Wc=t=>{const e=re(),n=q();typeof t.willOpen=="function"&&t.willOpen(n);const r=window.getComputedStyle(document.body).overflowY;Yc(e,n,t),setTimeout(()=>{Gc(e,n)},Mr),to()&&(qc(e,t.scrollbarPadding,r),Cc()),!_n()&&!D.previousActiveElement&&(D.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),Re(e,g["no-transition"])},Rr=t=>{const e=q();if(t.target!==e)return;const n=re();e.removeEventListener(Gt,Rr),n.style.overflowY="auto"},Gc=(t,e)=>{Gt&&Er(e)?(t.style.overflowY="hidden",e.addEventListener(Gt,Rr)):t.style.overflowY="auto"},qc=(t,e,n)=>{Uc(),e&&n!=="hidden"&&Mc(),setTimeout(()=>{t.scrollTop=0})},Yc=(t,e,n)=>{z(t,n.showClass.backdrop),e.style.setProperty("opacity","0","important"),ne(e,"grid"),setTimeout(()=>{z(e,n.showClass.popup),e.style.removeProperty("opacity")},Mr),z([document.documentElement,document.body],g.shown),n.heightAuto&&n.backdrop&&!n.toast&&z([document.documentElement,document.body],g["height-auto"])},wt=t=>{let e=q();e||new kt,e=q();const n=yt();_n()?se(Kt()):Xc(e,t),ne(n),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},Xc=(t,e)=>{const n=zt(),o=yt();!e&&Se(Be())&&(e=Be()),ne(n),e&&(se(e),o.setAttribute("data-button-to-replace",e.className)),o.parentNode.insertBefore(o,e),z([t,n],g.loading)},Zc=(t,e)=>{e.input==="select"||e.input==="radio"?nu(t,e):["text","email","number","tel","textarea"].includes(e.input)&&(Xn(e.inputValue)||Zn(e.inputValue))&&(wt(Be()),ou(t,e))},Jc=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return Qc(n);case"radio":return eu(n);case"file":return tu(n);default:return e.inputAutoTrim?n.value.trim():n.value}},Qc=t=>t.checked?1:0,eu=t=>t.checked?t.value:null,tu=t=>t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,nu=(t,e)=>{const n=q(),o=r=>ru[e.input](n,ao(r),e);Xn(e.inputOptions)||Zn(e.inputOptions)?(wt(Be()),Ht(e.inputOptions).then(r=>{t.hideLoading(),o(r)})):typeof e.inputOptions=="object"?o(e.inputOptions):lt(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},ou=(t,e)=>{const n=t.getInput();se(n),Ht(e.inputValue).then(o=>{n.value=e.input==="number"?parseFloat(o)||0:`${o}`,ne(n),n.focus(),t.hideLoading()}).catch(o=>{lt(`Error in inputValue promise: ${o}`),n.value="",ne(n),n.focus(),t.hideLoading()})},ru={select:(t,e,n)=>{const o=nt(t,g.select),r=(i,c,a)=>{const l=document.createElement("option");l.value=a,ie(l,c),l.selected=Ur(a,n.inputValue),i.appendChild(l)};e.forEach(i=>{const c=i[0],a=i[1];if(Array.isArray(a)){const l=document.createElement("optgroup");l.label=c,l.disabled=!1,o.appendChild(l),a.forEach(d=>r(l,d[1],d[0]))}else r(o,a,c)}),o.focus()},radio:(t,e,n)=>{const o=nt(t,g.radio);e.forEach(i=>{const c=i[0],a=i[1],l=document.createElement("input"),d=document.createElement("label");l.type="radio",l.name=g.radio,l.value=c,Ur(c,n.inputValue)&&(l.checked=!0);const m=document.createElement("span");ie(m,a),m.className=g.label,d.appendChild(l),d.appendChild(m),o.appendChild(d)});const r=o.querySelectorAll("input");r.length&&r[0].focus()}},ao=t=>{const e=[];return typeof Map<"u"&&t instanceof Map?t.forEach((n,o)=>{let r=n;typeof r=="object"&&(r=ao(r)),e.push([o,r])}):Object.keys(t).forEach(n=>{let o=t[n];typeof o=="object"&&(o=ao(o)),e.push([n,o])}),e},Ur=(t,e)=>e&&e.toString()===t.toString();function Vr(){const t=M.innerParams.get(this);if(!t)return;const e=M.domCache.get(this);se(e.loader),_n()?t.icon&&ne(Kt()):iu(e),Re([e.popup,e.actions],g.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const iu=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?ne(e[0],"inline-block"):Nl()&&se(t.actions)};function su(t){const e=M.innerParams.get(t||this),n=M.domCache.get(t||this);return n?no(n.popup,e.input):null}const Yt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap},au=()=>Se(q()),Hr=()=>Be()&&Be().click(),lu=()=>tt()&&tt().click(),cu=()=>ct()&&ct().click(),jr=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},uu=(t,e,n,o)=>{jr(e),n.toast||(e.keydownHandler=r=>fu(t,r,o),e.keydownTarget=n.keydownListenerCapture?window:q(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},lo=(t,e,n)=>{const o=eo();if(o.length)return e=e+n,e===o.length?e=0:e===-1&&(e=o.length-1),o[e].focus();q().focus()},Fr=["ArrowRight","ArrowDown"],du=["ArrowLeft","ArrowUp"],fu=(t,e,n)=>{const o=M.innerParams.get(t);o&&(e.isComposing||e.keyCode===229||(o.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?mu(t,e,o):e.key==="Tab"?pu(e,o):[...Fr,...du].includes(e.key)?hu(e.key):e.key==="Escape"&&gu(e,o,n)))},mu=(t,e,n)=>{if(yn(n.allowEnterKey)&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;Hr(),e.preventDefault()}},pu=(t,e)=>{const n=t.target,o=eo();let r=-1;for(let i=0;i<o.length;i++)if(n===o[i]){r=i;break}t.shiftKey?lo(e,r,-1):lo(e,r,1),t.stopPropagation(),t.preventDefault()},hu=t=>{const e=Be(),n=tt(),o=ct();if(![e,n,o].includes(document.activeElement))return;const r=Fr.includes(t)?"nextElementSibling":"previousElementSibling";let i=document.activeElement;for(let c=0;c<zt().children.length;c++){if(i=i[r],!i)return;if(Se(i)&&i instanceof HTMLButtonElement)break}i instanceof HTMLButtonElement&&i.focus()},gu=(t,e,n)=>{yn(e.allowEscapeKey)&&(t.preventDefault(),n(vt.esc))};function Kr(t,e,n,o){_n()?zr(t,o):(Ul(n).then(()=>zr(t,o)),jr(D)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),to()&&(Rc(),zc(),Br()),yu()}function yu(){Re([document.documentElement,document.body],[g.shown,g["height-auto"],g["no-backdrop"],g["toast-shown"]])}function Sn(t){t=_u(t);const e=Yt.swalPromiseResolve.get(this),n=vu(this);this.isAwaitingPromise()?t.isDismissed||(Xt(this),e(t)):n&&e(t)}function bu(){return!!M.awaitingPromise.get(this)}const vu=t=>{const e=q();if(!e)return!1;const n=M.innerParams.get(t);if(!n||qe(e,n.hideClass.popup))return!1;Re(e,n.showClass.popup),z(e,n.hideClass.popup);const o=re();return Re(o,n.showClass.backdrop),z(o,n.hideClass.backdrop),ku(t,e,n),!0};function wu(t){const e=Yt.swalPromiseReject.get(this);Xt(this),e&&e(t)}const Xt=t=>{t.isAwaitingPromise()&&(M.awaitingPromise.delete(t),M.innerParams.get(t)||t._destroy())},_u=t=>typeof t>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),ku=(t,e,n)=>{const o=re(),r=Gt&&Er(e);typeof n.willClose=="function"&&n.willClose(e),r?Su(t,e,o,n.returnFocus,n.didClose):Kr(t,o,n.returnFocus,n.didClose)},Su=(t,e,n,o,r)=>{D.swalCloseEventFinishedCallback=Kr.bind(null,t,n,o,r),e.addEventListener(Gt,function(i){i.target===e&&(D.swalCloseEventFinishedCallback(),delete D.swalCloseEventFinishedCallback)})},zr=(t,e)=>{setTimeout(()=>{typeof e=="function"&&e.bind(t.params)(),t._destroy()})};function Wr(t,e,n){const o=M.domCache.get(t);e.forEach(r=>{o[r].disabled=n})}function Gr(t,e){if(!t)return!1;if(t.type==="radio"){const o=t.parentNode.parentNode.querySelectorAll("input");for(let r=0;r<o.length;r++)o[r].disabled=e}else t.disabled=e}function Cu(){Wr(this,["confirmButton","denyButton","cancelButton"],!1)}function Iu(){Wr(this,["confirmButton","denyButton","cancelButton"],!0)}function Tu(){return Gr(this.getInput(),!1)}function Eu(){return Gr(this.getInput(),!0)}function Pu(t){const e=M.domCache.get(this),n=M.innerParams.get(this);ie(e.validationMessage,t),e.validationMessage.className=g["validation-message"],n.customClass&&n.customClass.validationMessage&&z(e.validationMessage,n.customClass.validationMessage),ne(e.validationMessage);const o=this.getInput();o&&(o.setAttribute("aria-invalid",!0),o.setAttribute("aria-describedby",g["validation-message"]),Sr(o),z(o,g.inputerror))}function Au(){const t=M.domCache.get(this);t.validationMessage&&se(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),Re(e,g.inputerror))}function xu(){return M.domCache.get(this).progressSteps}function Lu(t){const e=q(),n=M.innerParams.get(this);if(!e||qe(e,n.hideClass.popup))return he("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const o=Ou(t),r=Object.assign({},n,o);$r(this,r),M.innerParams.set(this,r),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const Ou=t=>{const e={};return Object.keys(t).forEach(n=>{yr(n)?e[n]=t[n]:he(`Invalid parameter to update: "${n}". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js
402
+ `).join("<br />")),Wl(t)}class Dc{constructor(e,n){this.callback=e,this.remaining=n,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(e){const n=this.running;return n&&this.stop(),this.remaining+=e,n&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const Mc=()=>{bt.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(bt.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${bt.previousBodyPadding+Yl()}px`)},Rc=()=>{bt.previousBodyPadding!==null&&(document.body.style.paddingRight=`${bt.previousBodyPadding}px`,bt.previousBodyPadding=null)},Uc=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!qe(document.body,g.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,z(document.body,g.iosfix),Hc(),Vc()}},Vc=()=>{const t=navigator.userAgent,e=!!t.match(/iPad/i)||!!t.match(/iPhone/i),n=!!t.match(/WebKit/i);e&&n&&!t.match(/CriOS/i)&&q().scrollHeight>window.innerHeight-44&&(re().style.paddingBottom="44px")},Hc=()=>{const t=re();let e;t.ontouchstart=n=>{e=jc(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},jc=t=>{const e=t.target,n=re();return Fc(t)||Kc(t)?!1:e===n||!Tr(n)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(Tr(bn())&&bn().contains(e))},Fc=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",Kc=t=>t.touches&&t.touches.length>1,zc=()=>{if(qe(document.body,g.iosfix)){const t=parseInt(document.body.style.top,10);Ue(document.body,g.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},Mr=10,Wc=t=>{const e=re(),n=q();typeof t.willOpen=="function"&&t.willOpen(n);const r=window.getComputedStyle(document.body).overflowY;Yc(e,n,t),setTimeout(()=>{Gc(e,n)},Mr),to()&&(qc(e,t.scrollbarPadding,r),Cc()),!_n()&&!D.previousActiveElement&&(D.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),Ue(e,g["no-transition"])},Rr=t=>{const e=q();if(t.target!==e)return;const n=re();e.removeEventListener(Gt,Rr),n.style.overflowY="auto"},Gc=(t,e)=>{Gt&&Er(e)?(t.style.overflowY="hidden",e.addEventListener(Gt,Rr)):t.style.overflowY="auto"},qc=(t,e,n)=>{Uc(),e&&n!=="hidden"&&Mc(),setTimeout(()=>{t.scrollTop=0})},Yc=(t,e,n)=>{z(t,n.showClass.backdrop),e.style.setProperty("opacity","0","important"),ne(e,"grid"),setTimeout(()=>{z(e,n.showClass.popup),e.style.removeProperty("opacity")},Mr),z([document.documentElement,document.body],g.shown),n.heightAuto&&n.backdrop&&!n.toast&&z([document.documentElement,document.body],g["height-auto"])},wt=t=>{let e=q();e||new kt,e=q();const n=yt();_n()?se(Kt()):Xc(e,t),ne(n),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},Xc=(t,e)=>{const n=zt(),o=yt();!e&&Se(Be())&&(e=Be()),ne(n),e&&(se(e),o.setAttribute("data-button-to-replace",e.className)),o.parentNode.insertBefore(o,e),z([t,n],g.loading)},Zc=(t,e)=>{e.input==="select"||e.input==="radio"?nu(t,e):["text","email","number","tel","textarea"].includes(e.input)&&(Xn(e.inputValue)||Zn(e.inputValue))&&(wt(Be()),ou(t,e))},Jc=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return Qc(n);case"radio":return eu(n);case"file":return tu(n);default:return e.inputAutoTrim?n.value.trim():n.value}},Qc=t=>t.checked?1:0,eu=t=>t.checked?t.value:null,tu=t=>t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,nu=(t,e)=>{const n=q(),o=r=>ru[e.input](n,ao(r),e);Xn(e.inputOptions)||Zn(e.inputOptions)?(wt(Be()),Ht(e.inputOptions).then(r=>{t.hideLoading(),o(r)})):typeof e.inputOptions=="object"?o(e.inputOptions):lt(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},ou=(t,e)=>{const n=t.getInput();se(n),Ht(e.inputValue).then(o=>{n.value=e.input==="number"?parseFloat(o)||0:`${o}`,ne(n),n.focus(),t.hideLoading()}).catch(o=>{lt(`Error in inputValue promise: ${o}`),n.value="",ne(n),n.focus(),t.hideLoading()})},ru={select:(t,e,n)=>{const o=nt(t,g.select),r=(i,c,a)=>{const l=document.createElement("option");l.value=a,ie(l,c),l.selected=Ur(a,n.inputValue),i.appendChild(l)};e.forEach(i=>{const c=i[0],a=i[1];if(Array.isArray(a)){const l=document.createElement("optgroup");l.label=c,l.disabled=!1,o.appendChild(l),a.forEach(d=>r(l,d[1],d[0]))}else r(o,a,c)}),o.focus()},radio:(t,e,n)=>{const o=nt(t,g.radio);e.forEach(i=>{const c=i[0],a=i[1],l=document.createElement("input"),d=document.createElement("label");l.type="radio",l.name=g.radio,l.value=c,Ur(c,n.inputValue)&&(l.checked=!0);const m=document.createElement("span");ie(m,a),m.className=g.label,d.appendChild(l),d.appendChild(m),o.appendChild(d)});const r=o.querySelectorAll("input");r.length&&r[0].focus()}},ao=t=>{const e=[];return typeof Map<"u"&&t instanceof Map?t.forEach((n,o)=>{let r=n;typeof r=="object"&&(r=ao(r)),e.push([o,r])}):Object.keys(t).forEach(n=>{let o=t[n];typeof o=="object"&&(o=ao(o)),e.push([n,o])}),e},Ur=(t,e)=>e&&e.toString()===t.toString();function Vr(){const t=M.innerParams.get(this);if(!t)return;const e=M.domCache.get(this);se(e.loader),_n()?t.icon&&ne(Kt()):iu(e),Ue([e.popup,e.actions],g.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const iu=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?ne(e[0],"inline-block"):Nl()&&se(t.actions)};function su(t){const e=M.innerParams.get(t||this),n=M.domCache.get(t||this);return n?no(n.popup,e.input):null}const Yt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap},au=()=>Se(q()),Hr=()=>Be()&&Be().click(),lu=()=>tt()&&tt().click(),cu=()=>ct()&&ct().click(),jr=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},uu=(t,e,n,o)=>{jr(e),n.toast||(e.keydownHandler=r=>fu(t,r,o),e.keydownTarget=n.keydownListenerCapture?window:q(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},lo=(t,e,n)=>{const o=eo();if(o.length)return e=e+n,e===o.length?e=0:e===-1&&(e=o.length-1),o[e].focus();q().focus()},Fr=["ArrowRight","ArrowDown"],du=["ArrowLeft","ArrowUp"],fu=(t,e,n)=>{const o=M.innerParams.get(t);o&&(e.isComposing||e.keyCode===229||(o.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?mu(t,e,o):e.key==="Tab"?pu(e,o):[...Fr,...du].includes(e.key)?hu(e.key):e.key==="Escape"&&gu(e,o,n)))},mu=(t,e,n)=>{if(yn(n.allowEnterKey)&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;Hr(),e.preventDefault()}},pu=(t,e)=>{const n=t.target,o=eo();let r=-1;for(let i=0;i<o.length;i++)if(n===o[i]){r=i;break}t.shiftKey?lo(e,r,-1):lo(e,r,1),t.stopPropagation(),t.preventDefault()},hu=t=>{const e=Be(),n=tt(),o=ct();if(![e,n,o].includes(document.activeElement))return;const r=Fr.includes(t)?"nextElementSibling":"previousElementSibling";let i=document.activeElement;for(let c=0;c<zt().children.length;c++){if(i=i[r],!i)return;if(Se(i)&&i instanceof HTMLButtonElement)break}i instanceof HTMLButtonElement&&i.focus()},gu=(t,e,n)=>{yn(e.allowEscapeKey)&&(t.preventDefault(),n(vt.esc))};function Kr(t,e,n,o){_n()?zr(t,o):(Ul(n).then(()=>zr(t,o)),jr(D)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),to()&&(Rc(),zc(),Br()),yu()}function yu(){Ue([document.documentElement,document.body],[g.shown,g["height-auto"],g["no-backdrop"],g["toast-shown"]])}function Sn(t){t=_u(t);const e=Yt.swalPromiseResolve.get(this),n=vu(this);this.isAwaitingPromise()?t.isDismissed||(Xt(this),e(t)):n&&e(t)}function bu(){return!!M.awaitingPromise.get(this)}const vu=t=>{const e=q();if(!e)return!1;const n=M.innerParams.get(t);if(!n||qe(e,n.hideClass.popup))return!1;Ue(e,n.showClass.popup),z(e,n.hideClass.popup);const o=re();return Ue(o,n.showClass.backdrop),z(o,n.hideClass.backdrop),ku(t,e,n),!0};function wu(t){const e=Yt.swalPromiseReject.get(this);Xt(this),e&&e(t)}const Xt=t=>{t.isAwaitingPromise()&&(M.awaitingPromise.delete(t),M.innerParams.get(t)||t._destroy())},_u=t=>typeof t>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),ku=(t,e,n)=>{const o=re(),r=Gt&&Er(e);typeof n.willClose=="function"&&n.willClose(e),r?Su(t,e,o,n.returnFocus,n.didClose):Kr(t,o,n.returnFocus,n.didClose)},Su=(t,e,n,o,r)=>{D.swalCloseEventFinishedCallback=Kr.bind(null,t,n,o,r),e.addEventListener(Gt,function(i){i.target===e&&(D.swalCloseEventFinishedCallback(),delete D.swalCloseEventFinishedCallback)})},zr=(t,e)=>{setTimeout(()=>{typeof e=="function"&&e.bind(t.params)(),t._destroy()})};function Wr(t,e,n){const o=M.domCache.get(t);e.forEach(r=>{o[r].disabled=n})}function Gr(t,e){if(!t)return!1;if(t.type==="radio"){const o=t.parentNode.parentNode.querySelectorAll("input");for(let r=0;r<o.length;r++)o[r].disabled=e}else t.disabled=e}function Cu(){Wr(this,["confirmButton","denyButton","cancelButton"],!1)}function Iu(){Wr(this,["confirmButton","denyButton","cancelButton"],!0)}function Tu(){return Gr(this.getInput(),!1)}function Eu(){return Gr(this.getInput(),!0)}function Au(t){const e=M.domCache.get(this),n=M.innerParams.get(this);ie(e.validationMessage,t),e.validationMessage.className=g["validation-message"],n.customClass&&n.customClass.validationMessage&&z(e.validationMessage,n.customClass.validationMessage),ne(e.validationMessage);const o=this.getInput();o&&(o.setAttribute("aria-invalid",!0),o.setAttribute("aria-describedby",g["validation-message"]),Sr(o),z(o,g.inputerror))}function Pu(){const t=M.domCache.get(this);t.validationMessage&&se(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),Ue(e,g.inputerror))}function xu(){return M.domCache.get(this).progressSteps}function Lu(t){const e=q(),n=M.innerParams.get(this);if(!e||qe(e,n.hideClass.popup))return he("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const o=Ou(t),r=Object.assign({},n,o);$r(this,r),M.innerParams.set(this,r),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const Ou=t=>{const e={};return Object.keys(t).forEach(n=>{yr(n)?e[n]=t[n]:he(`Invalid parameter to update: "${n}". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js
403
403
 
404
- If you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md`)}),e};function $u(){const t=M.domCache.get(this),e=M.innerParams.get(this);if(!e){qr(this);return}t.popup&&D.swalCloseEventFinishedCallback&&(D.swalCloseEventFinishedCallback(),delete D.swalCloseEventFinishedCallback),D.deferDisposalTimer&&(clearTimeout(D.deferDisposalTimer),delete D.deferDisposalTimer),typeof e.didDestroy=="function"&&e.didDestroy(),Bu(this)}const Bu=t=>{qr(t),delete t.params,delete D.keydownHandler,delete D.keydownTarget,delete D.currentInstance},qr=t=>{t.isAwaitingPromise()?(co(M,t),M.awaitingPromise.set(t,!0)):(co(Yt,t),co(M,t))},co=(t,e)=>{for(const n in t)t[n].delete(e)},Yr=Object.freeze(Object.defineProperty({__proto__:null,_destroy:$u,close:Sn,closeModal:Sn,closePopup:Sn,closeToast:Sn,disableButtons:Iu,disableInput:Eu,disableLoading:Vr,enableButtons:Cu,enableInput:Tu,getInput:su,getProgressSteps:xu,handleAwaitingPromise:Xt,hideLoading:Vr,isAwaitingPromise:bu,rejectPromise:wu,resetValidationMessage:Au,showValidationMessage:Pu,update:Lu},Symbol.toStringTag,{value:"Module"})),Nu=t=>{const e=M.innerParams.get(t);t.disableButtons(),e.input?Xr(t,"confirm"):fo(t,!0)},Du=t=>{const e=M.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?Xr(t,"deny"):uo(t,!1)},Mu=(t,e)=>{t.disableButtons(),e(vt.cancel)},Xr=(t,e)=>{const n=M.innerParams.get(t);if(!n.input)return lt(`The "input" parameter is needed to be set when using returnInputValueOn${Yn(e)}`);const o=Jc(t,n);n.inputValidator?Ru(t,o,e):t.getInput().checkValidity()?e==="deny"?uo(t,o):fo(t,o):(t.enableButtons(),t.showValidationMessage(n.validationMessage))},Ru=(t,e,n)=>{const o=M.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>Ht(o.inputValidator(e,o.validationMessage))).then(i=>{t.enableButtons(),t.enableInput(),i?t.showValidationMessage(i):n==="deny"?uo(t,e):fo(t,e)})},uo=(t,e)=>{const n=M.innerParams.get(t||void 0);n.showLoaderOnDeny&&wt(tt()),n.preDeny?(M.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>Ht(n.preDeny(e,n.validationMessage))).then(r=>{r===!1?(t.hideLoading(),Xt(t)):t.closePopup({isDenied:!0,value:typeof r>"u"?e:r})}).catch(r=>Jr(t||void 0,r))):t.closePopup({isDenied:!0,value:e})},Zr=(t,e)=>{t.closePopup({isConfirmed:!0,value:e})},Jr=(t,e)=>{t.rejectPromise(e)},fo=(t,e)=>{const n=M.innerParams.get(t||void 0);n.showLoaderOnConfirm&&wt(),n.preConfirm?(t.resetValidationMessage(),M.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>Ht(n.preConfirm(e,n.validationMessage))).then(r=>{Se(vn())||r===!1?(t.hideLoading(),Xt(t)):Zr(t,typeof r>"u"?e:r)}).catch(r=>Jr(t||void 0,r))):Zr(t,e)},Uu=(t,e,n)=>{M.innerParams.get(t).toast?Vu(t,e,n):(ju(e),Fu(e),Ku(t,e,n))},Vu=(t,e,n)=>{e.popup.onclick=()=>{const o=M.innerParams.get(t);o&&(Hu(o)||o.timer||o.input)||n(vt.close)}},Hu=t=>t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton;let Cn=!1;const ju=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(Cn=!0)}}},Fu=t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(Cn=!0)}}},Ku=(t,e,n)=>{e.container.onclick=o=>{const r=M.innerParams.get(t);if(Cn){Cn=!1;return}o.target===e.container&&yn(r.allowOutsideClick)&&n(vt.backdrop)}},zu=t=>typeof t=="object"&&t.jquery,Qr=t=>t instanceof Element||zu(t),Wu=t=>{const e={};return typeof t[0]=="object"&&!Qr(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,o)=>{const r=t[o];typeof r=="string"||Qr(r)?e[n]=r:r!==void 0&&lt(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof r}`)}),e};function Gu(...t){const e=this;return new e(...t)}function qu(t){class e extends this{_main(o,r){return super._main(o,Object.assign({},t,r))}}return e}const Yu=()=>D.timeout&&D.timeout.getTimerLeft(),ei=()=>{if(D.timeout)return Dl(),D.timeout.stop()},ti=()=>{if(D.timeout){const t=D.timeout.start();return oo(t),t}},Xu=()=>{const t=D.timeout;return t&&(t.running?ei():ti())},Zu=t=>{if(D.timeout){const e=D.timeout.increase(t);return oo(e,!0),e}},Ju=()=>D.timeout&&D.timeout.isRunning();let ni=!1;const mo={};function Qu(t="data-swal-template"){mo[t]=this,ni||(document.body.addEventListener("click",ed),ni=!0)}const ed=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in mo){const o=e.getAttribute(n);if(o){mo[n].fire({template:o});return}}},td=Object.freeze(Object.defineProperty({__proto__:null,argsToParams:Wu,bindClickHandler:Qu,clickCancel:cu,clickConfirm:Hr,clickDeny:lu,enableLoading:wt,fire:Gu,getActions:zt,getCancelButton:ct,getCloseButton:Qn,getConfirmButton:Be,getContainer:re,getDenyButton:tt,getFocusableElements:eo,getFooter:kr,getHtmlContainer:bn,getIcon:Kt,getImage:wr,getInputLabel:Ll,getLoader:yt,getPopup:q,getTimerLeft:Yu,getTimerProgressBar:wn,getTitle:vr,getValidationMessage:vn,increaseTimer:Zu,isDeprecatedParameter:Jn,isLoading:$l,isTimerRunning:Ju,isUpdatableParameter:yr,isValidParameter:gr,isVisible:au,mixin:qu,resumeTimer:ti,showLoading:wt,stopTimer:ei,toggleTimer:Xu},Symbol.toStringTag,{value:"Module"}));let po;class _t{constructor(...e){if(typeof window>"u")return;po=this;const n=Object.freeze(this.constructor.argsToParams(e));Object.defineProperties(this,{params:{value:n,writable:!1,enumerable:!0,configurable:!0}});const o=this._main(this.params);M.promise.set(this,o)}_main(e,n={}){Al(Object.assign({},n,e)),D.currentInstance&&(D.currentInstance._destroy(),to()&&Br()),D.currentInstance=this;const o=od(e,n);Nc(o),Object.freeze(o),D.timeout&&(D.timeout.stop(),delete D.timeout),clearTimeout(D.restoreFocusTimeout);const r=rd(this);return $r(this,o),M.innerParams.set(this,o),nd(this,r,o)}then(e){return M.promise.get(this).then(e)}finally(e){return M.promise.get(this).finally(e)}}const nd=(t,e,n)=>new Promise((o,r)=>{const i=c=>{t.closePopup({isDismissed:!0,dismiss:c})};Yt.swalPromiseResolve.set(t,o),Yt.swalPromiseReject.set(t,r),e.confirmButton.onclick=()=>Nu(t),e.denyButton.onclick=()=>Du(t),e.cancelButton.onclick=()=>Mu(t,i),e.closeButton.onclick=()=>i(vt.close),Uu(t,e,i),uu(t,D,n,i),Zc(t,n),Wc(n),id(D,n,i),sd(e,n),setTimeout(()=>{e.container.scrollTop=0})}),od=(t,e)=>{const n=Ic(t),o=Object.assign({},gt,e,n,t);return o.showClass=Object.assign({},gt.showClass,o.showClass),o.hideClass=Object.assign({},gt.hideClass,o.hideClass),o},rd=t=>{const e={popup:q(),container:re(),actions:zt(),confirmButton:Be(),denyButton:tt(),cancelButton:ct(),loader:yt(),closeButton:Qn(),validationMessage:vn(),progressSteps:_r()};return M.domCache.set(t,e),e},id=(t,e,n)=>{const o=wn();se(o),e.timer&&(t.timeout=new Dc(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(ne(o),Pe(o,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&oo(e.timer)})))},sd=(t,e)=>{if(!e.toast){if(!yn(e.allowEnterKey))return ld();ad(t,e)||lo(e,-1,1)}},ad=(t,e)=>e.focusDeny&&Se(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&Se(t.cancelButton)?(t.cancelButton.focus(),!0):e.focusConfirm&&Se(t.confirmButton)?(t.confirmButton.focus(),!0):!1,ld=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Object.assign(_t.prototype,Yr),Object.assign(_t,td),Object.keys(Yr).forEach(t=>{_t[t]=function(...e){if(po)return po[t](...e)}}),_t.DismissReason=vt,_t.version="11.4.8";const kt=_t;kt.default=kt;/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */const{entries:oi,setPrototypeOf:ri,isFrozen:cd,getPrototypeOf:ud,getOwnPropertyDescriptor:dd}=Object;let{freeze:de,seal:Ae,create:ii}=Object,{apply:ho,construct:go}=typeof Reflect<"u"&&Reflect;de||(de=function(e){return e}),Ae||(Ae=function(e){return e}),ho||(ho=function(e,n,o){return e.apply(n,o)}),go||(go=function(e,n){return new e(...n)});const In=Ce(Array.prototype.forEach),si=Ce(Array.prototype.pop),Zt=Ce(Array.prototype.push),Tn=Ce(String.prototype.toLowerCase),yo=Ce(String.prototype.toString),ai=Ce(String.prototype.match),Jt=Ce(String.prototype.replace),fd=Ce(String.prototype.indexOf),md=Ce(String.prototype.trim),Ne=Ce(Object.prototype.hasOwnProperty),fe=Ce(RegExp.prototype.test),Qt=pd(TypeError);function Ce(t){return function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return ho(t,e,o)}}function pd(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return go(t,n)}}function j(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Tn;ri&&ri(t,null);let o=e.length;for(;o--;){let r=e[o];if(typeof r=="string"){const i=n(r);i!==r&&(cd(e)||(e[o]=i),r=i)}t[r]=!0}return t}function hd(t){for(let e=0;e<t.length;e++)Ne(t,e)||(t[e]=null);return t}function ft(t){const e=ii(null);for(const[n,o]of oi(t))Ne(t,n)&&(Array.isArray(o)?e[n]=hd(o):o&&typeof o=="object"&&o.constructor===Object?e[n]=ft(o):e[n]=o);return e}function en(t,e){for(;t!==null;){const o=dd(t,e);if(o){if(o.get)return Ce(o.get);if(typeof o.value=="function")return Ce(o.value)}t=ud(t)}function n(){return null}return n}const li=de(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),bo=de(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),vo=de(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),gd=de(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),wo=de(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),yd=de(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ci=de(["#text"]),ui=de(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),_o=de(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),di=de(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),En=de(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),bd=Ae(/\{\{[\w\W]*|[\w\W]*\}\}/gm),vd=Ae(/<%[\w\W]*|[\w\W]*%>/gm),wd=Ae(/\${[\w\W]*}/gm),_d=Ae(/^data-[\-\w.\u00B7-\uFFFF]/),kd=Ae(/^aria-[\-\w]+$/),fi=Ae(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Sd=Ae(/^(?:\w+script|data):/i),Cd=Ae(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),mi=Ae(/^html$/i),Id=Ae(/^[a-z][.\w]*(-[.\w]+)+$/i);var pi=Object.freeze({__proto__:null,MUSTACHE_EXPR:bd,ERB_EXPR:vd,TMPLIT_EXPR:wd,DATA_ATTR:_d,ARIA_ATTR:kd,IS_ALLOWED_URI:fi,IS_SCRIPT_OR_DATA:Sd,ATTR_WHITESPACE:Cd,DOCTYPE_NAME:mi,CUSTOM_ELEMENT:Id});const tn={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Td=function(){return typeof window>"u"?null:window},Ed=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let o=null;const r="data-tt-policy-suffix";n&&n.hasAttribute(r)&&(o=n.getAttribute(r));const i="dompurify"+(o?"#"+o:"");try{return e.createPolicy(i,{createHTML(c){return c},createScriptURL(c){return c}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function hi(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Td();const e=O=>hi(O);if(e.version="3.1.6",e.removed=[],!t||!t.document||t.document.nodeType!==tn.document)return e.isSupported=!1,e;let{document:n}=t;const o=n,r=o.currentScript,{DocumentFragment:i,HTMLTemplateElement:c,Node:a,Element:l,NodeFilter:d,NamedNodeMap:m=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:v,trustedTypes:C}=t,T=l.prototype,$=en(T,"cloneNode"),x=en(T,"remove"),R=en(T,"nextSibling"),I=en(T,"childNodes"),B=en(T,"parentNode");if(typeof c=="function"){const O=n.createElement("template");O.content&&O.content.ownerDocument&&(n=O.content.ownerDocument)}let F,J="";const{implementation:ye,createNodeIterator:ee,createDocumentFragment:De,getElementsByTagName:Ie}=n,{importNode:Y}=o;let Q={};e.isSupported=typeof oi=="function"&&typeof B=="function"&&ye&&ye.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:be,ERB_EXPR:Me,TMPLIT_EXPR:Te,DATA_ATTR:it,ARIA_ATTR:Ye,IS_SCRIPT_OR_DATA:Ve,ATTR_WHITESPACE:He,CUSTOM_ELEMENT:mt}=pi;let{IS_ALLOWED_URI:xe}=pi,u=null;const p=j({},[...li,...bo,...vo,...wo,...ci]);let b=null;const S=j({},[...ui,..._o,...di,...En]);let y=Object.seal(ii(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}})),E=null,w=null,_=!0,A=!0,P=!1,N=!0,H=!1,ve=!0,ae=!1,le=!1,Xe=!1,St=!1,An=!1,xn=!1,Ci=!0,Ii=!1;const nf="user-content-";let Co=!0,on=!1,Ct={},It=null;const Ti=j({},["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 Ei=null;const Pi=j({},["audio","video","img","source","image","track"]);let Io=null;const Ai=j({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ln="http://www.w3.org/1998/Math/MathML",On="http://www.w3.org/2000/svg",Ze="http://www.w3.org/1999/xhtml";let Tt=Ze,To=!1,Eo=null;const of=j({},[Ln,On,Ze],yo);let rn=null;const rf=["application/xhtml+xml","text/html"],sf="text/html";let te=null,Et=null;const af=n.createElement("form"),xi=function(f){return f instanceof RegExp||f instanceof Function},Po=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Et&&Et===f)){if((!f||typeof f!="object")&&(f={}),f=ft(f),rn=rf.indexOf(f.PARSER_MEDIA_TYPE)===-1?sf:f.PARSER_MEDIA_TYPE,te=rn==="application/xhtml+xml"?yo:Tn,u=Ne(f,"ALLOWED_TAGS")?j({},f.ALLOWED_TAGS,te):p,b=Ne(f,"ALLOWED_ATTR")?j({},f.ALLOWED_ATTR,te):S,Eo=Ne(f,"ALLOWED_NAMESPACES")?j({},f.ALLOWED_NAMESPACES,yo):of,Io=Ne(f,"ADD_URI_SAFE_ATTR")?j(ft(Ai),f.ADD_URI_SAFE_ATTR,te):Ai,Ei=Ne(f,"ADD_DATA_URI_TAGS")?j(ft(Pi),f.ADD_DATA_URI_TAGS,te):Pi,It=Ne(f,"FORBID_CONTENTS")?j({},f.FORBID_CONTENTS,te):Ti,E=Ne(f,"FORBID_TAGS")?j({},f.FORBID_TAGS,te):{},w=Ne(f,"FORBID_ATTR")?j({},f.FORBID_ATTR,te):{},Ct=Ne(f,"USE_PROFILES")?f.USE_PROFILES:!1,_=f.ALLOW_ARIA_ATTR!==!1,A=f.ALLOW_DATA_ATTR!==!1,P=f.ALLOW_UNKNOWN_PROTOCOLS||!1,N=f.ALLOW_SELF_CLOSE_IN_ATTR!==!1,H=f.SAFE_FOR_TEMPLATES||!1,ve=f.SAFE_FOR_XML!==!1,ae=f.WHOLE_DOCUMENT||!1,St=f.RETURN_DOM||!1,An=f.RETURN_DOM_FRAGMENT||!1,xn=f.RETURN_TRUSTED_TYPE||!1,Xe=f.FORCE_BODY||!1,Ci=f.SANITIZE_DOM!==!1,Ii=f.SANITIZE_NAMED_PROPS||!1,Co=f.KEEP_CONTENT!==!1,on=f.IN_PLACE||!1,xe=f.ALLOWED_URI_REGEXP||fi,Tt=f.NAMESPACE||Ze,y=f.CUSTOM_ELEMENT_HANDLING||{},f.CUSTOM_ELEMENT_HANDLING&&xi(f.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(y.tagNameCheck=f.CUSTOM_ELEMENT_HANDLING.tagNameCheck),f.CUSTOM_ELEMENT_HANDLING&&xi(f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(y.attributeNameCheck=f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),f.CUSTOM_ELEMENT_HANDLING&&typeof f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(y.allowCustomizedBuiltInElements=f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),H&&(A=!1),An&&(St=!0),Ct&&(u=j({},ci),b=[],Ct.html===!0&&(j(u,li),j(b,ui)),Ct.svg===!0&&(j(u,bo),j(b,_o),j(b,En)),Ct.svgFilters===!0&&(j(u,vo),j(b,_o),j(b,En)),Ct.mathMl===!0&&(j(u,wo),j(b,di),j(b,En))),f.ADD_TAGS&&(u===p&&(u=ft(u)),j(u,f.ADD_TAGS,te)),f.ADD_ATTR&&(b===S&&(b=ft(b)),j(b,f.ADD_ATTR,te)),f.ADD_URI_SAFE_ATTR&&j(Io,f.ADD_URI_SAFE_ATTR,te),f.FORBID_CONTENTS&&(It===Ti&&(It=ft(It)),j(It,f.FORBID_CONTENTS,te)),Co&&(u["#text"]=!0),ae&&j(u,["html","head","body"]),u.table&&(j(u,["tbody"]),delete E.tbody),f.TRUSTED_TYPES_POLICY){if(typeof f.TRUSTED_TYPES_POLICY.createHTML!="function")throw Qt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof f.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Qt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');F=f.TRUSTED_TYPES_POLICY,J=F.createHTML("")}else F===void 0&&(F=Ed(C,r)),F!==null&&typeof J=="string"&&(J=F.createHTML(""));de&&de(f),Et=f}},Li=j({},["mi","mo","mn","ms","mtext"]),Oi=j({},["foreignobject","annotation-xml"]),lf=j({},["title","style","font","a","script"]),$i=j({},[...bo,...vo,...gd]),Bi=j({},[...wo,...yd]),cf=function(f){let k=B(f);(!k||!k.tagName)&&(k={namespaceURI:Tt,tagName:"template"});const L=Tn(f.tagName),X=Tn(k.tagName);return Eo[f.namespaceURI]?f.namespaceURI===On?k.namespaceURI===Ze?L==="svg":k.namespaceURI===Ln?L==="svg"&&(X==="annotation-xml"||Li[X]):!!$i[L]:f.namespaceURI===Ln?k.namespaceURI===Ze?L==="math":k.namespaceURI===On?L==="math"&&Oi[X]:!!Bi[L]:f.namespaceURI===Ze?k.namespaceURI===On&&!Oi[X]||k.namespaceURI===Ln&&!Li[X]?!1:!Bi[L]&&(lf[L]||!$i[L]):!!(rn==="application/xhtml+xml"&&Eo[f.namespaceURI]):!1},je=function(f){Zt(e.removed,{element:f});try{B(f).removeChild(f)}catch{x(f)}},$n=function(f,k){try{Zt(e.removed,{attribute:k.getAttributeNode(f),from:k})}catch{Zt(e.removed,{attribute:null,from:k})}if(k.removeAttribute(f),f==="is"&&!b[f])if(St||An)try{je(k)}catch{}else try{k.setAttribute(f,"")}catch{}},Ni=function(f){let k=null,L=null;if(Xe)f="<remove></remove>"+f;else{const oe=ai(f,/^[\r\n\t ]+/);L=oe&&oe[0]}rn==="application/xhtml+xml"&&Tt===Ze&&(f='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+f+"</body></html>");const X=F?F.createHTML(f):f;if(Tt===Ze)try{k=new v().parseFromString(X,rn)}catch{}if(!k||!k.documentElement){k=ye.createDocument(Tt,"template",null);try{k.documentElement.innerHTML=To?J:X}catch{}}const ce=k.body||k.documentElement;return f&&L&&ce.insertBefore(n.createTextNode(L),ce.childNodes[0]||null),Tt===Ze?Ie.call(k,ae?"html":"body")[0]:ae?k.documentElement:ce},Di=function(f){return ee.call(f.ownerDocument||f,f,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},Mi=function(f){return f instanceof h&&(typeof f.nodeName!="string"||typeof f.textContent!="string"||typeof f.removeChild!="function"||!(f.attributes instanceof m)||typeof f.removeAttribute!="function"||typeof f.setAttribute!="function"||typeof f.namespaceURI!="string"||typeof f.insertBefore!="function"||typeof f.hasChildNodes!="function")},Ri=function(f){return typeof a=="function"&&f instanceof a},Je=function(f,k,L){Q[f]&&In(Q[f],X=>{X.call(e,k,L,Et)})},Ui=function(f){let k=null;if(Je("beforeSanitizeElements",f,null),Mi(f))return je(f),!0;const L=te(f.nodeName);if(Je("uponSanitizeElement",f,{tagName:L,allowedTags:u}),f.hasChildNodes()&&!Ri(f.firstElementChild)&&fe(/<[/\w]/g,f.innerHTML)&&fe(/<[/\w]/g,f.textContent)||f.nodeType===tn.progressingInstruction||ve&&f.nodeType===tn.comment&&fe(/<[/\w]/g,f.data))return je(f),!0;if(!u[L]||E[L]){if(!E[L]&&Hi(L)&&(y.tagNameCheck instanceof RegExp&&fe(y.tagNameCheck,L)||y.tagNameCheck instanceof Function&&y.tagNameCheck(L)))return!1;if(Co&&!It[L]){const X=B(f)||f.parentNode,ce=I(f)||f.childNodes;if(ce&&X){const oe=ce.length;for(let we=oe-1;we>=0;--we){const Fe=$(ce[we],!0);Fe.__removalCount=(f.__removalCount||0)+1,X.insertBefore(Fe,R(f))}}}return je(f),!0}return f instanceof l&&!cf(f)||(L==="noscript"||L==="noembed"||L==="noframes")&&fe(/<\/no(script|embed|frames)/i,f.innerHTML)?(je(f),!0):(H&&f.nodeType===tn.text&&(k=f.textContent,In([be,Me,Te],X=>{k=Jt(k,X," ")}),f.textContent!==k&&(Zt(e.removed,{element:f.cloneNode()}),f.textContent=k)),Je("afterSanitizeElements",f,null),!1)},Vi=function(f,k,L){if(Ci&&(k==="id"||k==="name")&&(L in n||L in af))return!1;if(!(A&&!w[k]&&fe(it,k))){if(!(_&&fe(Ye,k))){if(!b[k]||w[k]){if(!(Hi(f)&&(y.tagNameCheck instanceof RegExp&&fe(y.tagNameCheck,f)||y.tagNameCheck instanceof Function&&y.tagNameCheck(f))&&(y.attributeNameCheck instanceof RegExp&&fe(y.attributeNameCheck,k)||y.attributeNameCheck instanceof Function&&y.attributeNameCheck(k))||k==="is"&&y.allowCustomizedBuiltInElements&&(y.tagNameCheck instanceof RegExp&&fe(y.tagNameCheck,L)||y.tagNameCheck instanceof Function&&y.tagNameCheck(L))))return!1}else if(!Io[k]){if(!fe(xe,Jt(L,He,""))){if(!((k==="src"||k==="xlink:href"||k==="href")&&f!=="script"&&fd(L,"data:")===0&&Ei[f])){if(!(P&&!fe(Ve,Jt(L,He,"")))){if(L)return!1}}}}}}return!0},Hi=function(f){return f!=="annotation-xml"&&ai(f,mt)},ji=function(f){Je("beforeSanitizeAttributes",f,null);const{attributes:k}=f;if(!k)return;const L={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:b};let X=k.length;for(;X--;){const ce=k[X],{name:oe,namespaceURI:we,value:Fe}=ce,sn=te(oe);let me=oe==="value"?Fe:md(Fe);if(L.attrName=sn,L.attrValue=me,L.keepAttr=!0,L.forceKeepAttr=void 0,Je("uponSanitizeAttribute",f,L),me=L.attrValue,ve&&fe(/((--!?|])>)|<\/(style|title)/i,me)){$n(oe,f);continue}if(L.forceKeepAttr||($n(oe,f),!L.keepAttr))continue;if(!N&&fe(/\/>/i,me)){$n(oe,f);continue}H&&In([be,Me,Te],Ki=>{me=Jt(me,Ki," ")});const Fi=te(f.nodeName);if(Vi(Fi,sn,me)){if(Ii&&(sn==="id"||sn==="name")&&($n(oe,f),me=nf+me),F&&typeof C=="object"&&typeof C.getAttributeType=="function"&&!we)switch(C.getAttributeType(Fi,sn)){case"TrustedHTML":{me=F.createHTML(me);break}case"TrustedScriptURL":{me=F.createScriptURL(me);break}}try{we?f.setAttributeNS(we,oe,me):f.setAttribute(oe,me),Mi(f)?je(f):si(e.removed)}catch{}}}Je("afterSanitizeAttributes",f,null)},uf=function O(f){let k=null;const L=Di(f);for(Je("beforeSanitizeShadowDOM",f,null);k=L.nextNode();)Je("uponSanitizeShadowNode",k,null),!Ui(k)&&(k.content instanceof i&&O(k.content),ji(k));Je("afterSanitizeShadowDOM",f,null)};return e.sanitize=function(O){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},k=null,L=null,X=null,ce=null;if(To=!O,To&&(O="<!-->"),typeof O!="string"&&!Ri(O))if(typeof O.toString=="function"){if(O=O.toString(),typeof O!="string")throw Qt("dirty is not a string, aborting")}else throw Qt("toString is not a function");if(!e.isSupported)return O;if(le||Po(f),e.removed=[],typeof O=="string"&&(on=!1),on){if(O.nodeName){const Fe=te(O.nodeName);if(!u[Fe]||E[Fe])throw Qt("root node is forbidden and cannot be sanitized in-place")}}else if(O instanceof a)k=Ni("<!---->"),L=k.ownerDocument.importNode(O,!0),L.nodeType===tn.element&&L.nodeName==="BODY"||L.nodeName==="HTML"?k=L:k.appendChild(L);else{if(!St&&!H&&!ae&&O.indexOf("<")===-1)return F&&xn?F.createHTML(O):O;if(k=Ni(O),!k)return St?null:xn?J:""}k&&Xe&&je(k.firstChild);const oe=Di(on?O:k);for(;X=oe.nextNode();)Ui(X)||(X.content instanceof i&&uf(X.content),ji(X));if(on)return O;if(St){if(An)for(ce=De.call(k.ownerDocument);k.firstChild;)ce.appendChild(k.firstChild);else ce=k;return(b.shadowroot||b.shadowrootmode)&&(ce=Y.call(o,ce,!0)),ce}let we=ae?k.outerHTML:k.innerHTML;return ae&&u["!doctype"]&&k.ownerDocument&&k.ownerDocument.doctype&&k.ownerDocument.doctype.name&&fe(mi,k.ownerDocument.doctype.name)&&(we="<!DOCTYPE "+k.ownerDocument.doctype.name+`>
405
- `+we),H&&In([be,Me,Te],Fe=>{we=Jt(we,Fe," ")}),F&&xn?F.createHTML(we):we},e.setConfig=function(){let O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Po(O),le=!0},e.clearConfig=function(){Et=null,le=!1},e.isValidAttribute=function(O,f,k){Et||Po({});const L=te(O),X=te(f);return Vi(L,X,k)},e.addHook=function(O,f){typeof f=="function"&&(Q[O]=Q[O]||[],Zt(Q[O],f))},e.removeHook=function(O){if(Q[O])return si(Q[O])},e.removeHooks=function(O){Q[O]&&(Q[O]=[])},e.removeAllHooks=function(){Q={}},e}var gi=hi();class yi{get IsVisible(){return kt.isVisible()}}class Pd extends yi{constructor(){super()}async CreateAlertAsync(e){let n="info",o,r;return typeof e=="string"||Array.isArray(e)?o=Array.isArray(e)?e.join("<br />"):e:(n=e.icon??"info",r=e.title??"",o=Array.isArray(e.text)?e.text.join("<br />"):e.text),new Promise(i=>{kt.fire({allowEscapeKey:!1,allowOutsideClick:!1,icon:n,title:r,html:`<div style="max-height: 50vh; overflow: auto">${gi.sanitize(o)}</div>`}).then(()=>i(!0))})}async AlertAsync(e){return this.CreateAlertAsync({text:e,icon:"info"})}async AlertErrorAsync(e){return this.CreateAlertAsync({text:e,icon:"error"})}async AlertSuccessAsync(e){return this.CreateAlertAsync({text:e,icon:"success"})}}class Ad extends yi{async CreateConfirmAsync(e){return new Promise(n=>{kt.fire({showCancelButton:!0,allowEscapeKey:!1,allowOutsideClick:!1,icon:"question",title:e.title,html:gi.sanitize(e.text),confirmButtonText:e.confirmLabel??"confirmar",cancelButtonText:e.rejectLabel??"cancelar"}).then(o=>{n(o.isConfirmed===!0)})})}async ConfirmAsync(e){return this.CreateConfirmAsync({text:e})}}const xd=()=>new Pd,Ld=()=>new Ad;function Od(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}function bi(t,...e){if(!Od(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error(`Uint8Array expected of length ${e}, not of length=${t.length}`)}function vi(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function $d(t,e){bi(t);const n=e.outputLen;if(t.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const ko=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),Ue=(t,e)=>t<<32-e|t>>>e;new Uint8Array(new Uint32Array([287454020]).buffer)[0];function Bd(t){if(typeof t!="string")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}function wi(t){return typeof t=="string"&&(t=Bd(t)),bi(t),t}class Nd{clone(){return this._cloneInto()}}function Dd(t){const e=o=>t().update(wi(o)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function Md(t,e,n,o){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,n,o);const r=BigInt(32),i=BigInt(4294967295),c=Number(n>>r&i),a=Number(n&i),l=o?4:0,d=o?0:4;t.setUint32(e+l,c,o),t.setUint32(e+d,a,o)}const Rd=(t,e,n)=>t&e^~t&n,Ud=(t,e,n)=>t&e^t&n^e&n;class Vd extends Nd{constructor(e,n,o,r){super(),this.blockLen=e,this.outputLen=n,this.padOffset=o,this.isLE=r,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=ko(this.buffer)}update(e){vi(this);const{view:n,buffer:o,blockLen:r}=this;e=wi(e);const i=e.length;for(let c=0;c<i;){const a=Math.min(r-this.pos,i-c);if(a===r){const l=ko(e);for(;r<=i-c;c+=r)this.process(l,c);continue}o.set(e.subarray(c,c+a),this.pos),this.pos+=a,c+=a,this.pos===r&&(this.process(n,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){vi(this),$d(e,this),this.finished=!0;const{buffer:n,view:o,blockLen:r,isLE:i}=this;let{pos:c}=this;n[c++]=128,this.buffer.subarray(c).fill(0),this.padOffset>r-c&&(this.process(o,0),c=0);for(let h=c;h<r;h++)n[h]=0;Md(o,r-8,BigInt(this.length*8),i),this.process(o,0);const a=ko(e),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const d=l/4,m=this.get();if(d>m.length)throw new Error("_sha2: outputLen bigger than state");for(let h=0;h<d;h++)a.setUint32(4*h,m[h],i)}digest(){const{buffer:e,outputLen:n}=this;this.digestInto(e);const o=e.slice(0,n);return this.destroy(),o}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:n,buffer:o,length:r,finished:i,destroyed:c,pos:a}=this;return e.length=r,e.pos=a,e.finished=i,e.destroyed=c,r%n&&e.buffer.set(o),e}}const Hd=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),ot=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),rt=new Uint32Array(64);class jd extends Vd{constructor(){super(64,32,8,!1),this.A=ot[0]|0,this.B=ot[1]|0,this.C=ot[2]|0,this.D=ot[3]|0,this.E=ot[4]|0,this.F=ot[5]|0,this.G=ot[6]|0,this.H=ot[7]|0}get(){const{A:e,B:n,C:o,D:r,E:i,F:c,G:a,H:l}=this;return[e,n,o,r,i,c,a,l]}set(e,n,o,r,i,c,a,l){this.A=e|0,this.B=n|0,this.C=o|0,this.D=r|0,this.E=i|0,this.F=c|0,this.G=a|0,this.H=l|0}process(e,n){for(let h=0;h<16;h++,n+=4)rt[h]=e.getUint32(n,!1);for(let h=16;h<64;h++){const v=rt[h-15],C=rt[h-2],T=Ue(v,7)^Ue(v,18)^v>>>3,$=Ue(C,17)^Ue(C,19)^C>>>10;rt[h]=$+rt[h-7]+T+rt[h-16]|0}let{A:o,B:r,C:i,D:c,E:a,F:l,G:d,H:m}=this;for(let h=0;h<64;h++){const v=Ue(a,6)^Ue(a,11)^Ue(a,25),C=m+v+Rd(a,l,d)+Hd[h]+rt[h]|0,$=(Ue(o,2)^Ue(o,13)^Ue(o,22))+Ud(o,r,i)|0;m=d,d=l,l=a,a=c+C|0,c=i,i=r,r=o,o=C+$|0}o=o+this.A|0,r=r+this.B|0,i=i+this.C|0,c=c+this.D|0,a=a+this.E|0,l=l+this.F|0,d=d+this.G|0,m=m+this.H|0,this.set(o,r,i,c,a,l,d,m)}roundClean(){rt.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const Fd=Dd(()=>new jd);class nn extends Error{}nn.prototype.name="InvalidTokenError";function Kd(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,n)=>{let o=n.charCodeAt(0).toString(16).toUpperCase();return o.length<2&&(o="0"+o),"%"+o}))}function zd(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return Kd(e)}catch{return atob(e)}}function So(t,e){if(typeof t!="string")throw new nn("Invalid token specified: must be a string");e||(e={});const n=e.header===!0?0:1,o=t.split(".")[n];if(typeof o!="string")throw new nn(`Invalid token specified: missing part #${n+1}`);let r;try{r=zd(o)}catch(i){throw new nn(`Invalid token specified: invalid base64 for part #${n+1} (${i.message})`)}try{return JSON.parse(r)}catch(i){throw new nn(`Invalid token specified: invalid json for part #${n+1} (${i.message})`)}}if(typeof Promise>"u")throw Error("Keycloak requires an environment that supports Promises. Make sure that you include the appropriate polyfill.");function _i(t){if(!(this instanceof _i))throw new Error("The 'Keycloak' constructor must be invoked with 'new'.");var e=this,n,o=[],r,i={enable:!0,callbackList:[],interval:5};e.didInitialize=!1;for(var c=document.getElementsByTagName("script"),a=0;a<c.length;a++)(c[a].src.indexOf("keycloak.js")!==-1||c[a].src.indexOf("keycloak.min.js")!==-1)&&c[a].src.indexOf("version=")!==-1&&(e.iframeVersion=c[a].src.substring(c[a].src.indexOf("version=")+8).split("&")[0]);var l=!0,d=xe(console.info),m=xe(console.warn);e.init=function(u){if(e.didInitialize)throw new Error("A 'Keycloak' instance can only be initialized once.");e.didInitialize=!0,e.authenticated=!1,r=mt();var p=["default","cordova","cordova-native"];if(u&&p.indexOf(u.adapter)>-1?n=Ye(u.adapter):u&&typeof u.adapter=="object"?n=u.adapter:window.Cordova||window.cordova?n=Ye("cordova"):n=Ye(),u){if(typeof u.useNonce<"u"&&(l=u.useNonce),typeof u.checkLoginIframe<"u"&&(i.enable=u.checkLoginIframe),u.checkLoginIframeInterval&&(i.interval=u.checkLoginIframeInterval),u.onLoad==="login-required"&&(e.loginRequired=!0),u.responseMode)if(u.responseMode==="query"||u.responseMode==="fragment")e.responseMode=u.responseMode;else throw"Invalid value for responseMode";if(u.flow){switch(u.flow){case"standard":e.responseType="code";break;case"implicit":e.responseType="id_token token";break;case"hybrid":e.responseType="code id_token token";break;default:throw"Invalid value for flow"}e.flow=u.flow}if(u.timeSkew!=null&&(e.timeSkew=u.timeSkew),u.redirectUri&&(e.redirectUri=u.redirectUri),u.silentCheckSsoRedirectUri&&(e.silentCheckSsoRedirectUri=u.silentCheckSsoRedirectUri),typeof u.silentCheckSsoFallback=="boolean"?e.silentCheckSsoFallback=u.silentCheckSsoFallback:e.silentCheckSsoFallback=!0,typeof u.pkceMethod<"u"){if(u.pkceMethod!=="S256"&&u.pkceMethod!==!1)throw new TypeError(`Invalid value for pkceMethod', expected 'S256' or false but got ${u.pkceMethod}.`);e.pkceMethod=u.pkceMethod}else e.pkceMethod="S256";typeof u.enableLogging=="boolean"?e.enableLogging=u.enableLogging:e.enableLogging=!1,u.logoutMethod==="POST"?e.logoutMethod="POST":e.logoutMethod="GET",typeof u.scope=="string"&&(e.scope=u.scope),typeof u.acrValues=="string"&&(e.acrValues=u.acrValues),typeof u.messageReceiveTimeout=="number"&&u.messageReceiveTimeout>0?e.messageReceiveTimeout=u.messageReceiveTimeout:e.messageReceiveTimeout=1e4}e.responseMode||(e.responseMode="fragment"),e.responseType||(e.responseType="code",e.flow="standard");var b=Y(),S=Y();S.promise.then(function(){e.onReady&&e.onReady(e.authenticated),b.setSuccess(e.authenticated)}).catch(function(A){b.setError(A)});var y=B();function E(){var A=function(H){H||(N.prompt="none"),u&&u.locale&&(N.locale=u.locale),e.login(N).then(function(){S.setSuccess()}).catch(function(ve){S.setError(ve)})},P=function(){var H=document.createElement("iframe"),ve=e.createLoginUrl({prompt:"none",redirectUri:e.silentCheckSsoRedirectUri});H.setAttribute("src",ve),H.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),H.setAttribute("title","keycloak-silent-check-sso"),H.style.display="none",document.body.appendChild(H);var ae=function(le){if(!(le.origin!==window.location.origin||H.contentWindow!==le.source)){var Xe=ee(le.data);I(Xe,S),document.body.removeChild(H),window.removeEventListener("message",ae)}};window.addEventListener("message",ae)},N={};switch(u.onLoad){case"check-sso":i.enable?be().then(function(){Te().then(function(H){H?S.setSuccess():e.silentCheckSsoRedirectUri?P():A(!1)}).catch(function(H){S.setError(H)})}):e.silentCheckSsoRedirectUri?P():A(!1);break;case"login-required":A(!0);break;default:throw"Invalid value for onLoad"}}function w(){var A=ee(window.location.href);if(A&&window.history.replaceState(window.history.state,null,A.newUrl),A&&A.valid)return be().then(function(){I(A,S)}).catch(function(P){S.setError(P)});u?u.token&&u.refreshToken?(J(u.token,u.refreshToken,u.idToken),i.enable?be().then(function(){Te().then(function(P){P?(e.onAuthSuccess&&e.onAuthSuccess(),S.setSuccess(),Me()):S.setSuccess()}).catch(function(P){S.setError(P)})}):e.updateToken(-1).then(function(){e.onAuthSuccess&&e.onAuthSuccess(),S.setSuccess()}).catch(function(P){e.onAuthError&&e.onAuthError(),u.onLoad?E():S.setError(P)})):u.onLoad?E():S.setSuccess():S.setSuccess()}function _(){var A=Y(),P=function(){(document.readyState==="interactive"||document.readyState==="complete")&&(document.removeEventListener("readystatechange",P),A.setSuccess())};return document.addEventListener("readystatechange",P),P(),A.promise}return y.then(function(){_().then(it).then(w).catch(function(A){b.setError(A)})}),y.catch(function(A){b.setError(A)}),b.promise},e.login=function(u){return n.login(u)};function h(u){var p=null,b=window.crypto||window.msCrypto;if(b&&b.getRandomValues&&window.Uint8Array)return p=new Uint8Array(u),b.getRandomValues(p),p;p=new Array(u);for(var S=0;S<p.length;S++)p[S]=Math.floor(256*Math.random());return p}function v(u){return C(u,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function C(u,p){for(var b=h(u),S=new Array(u),y=0;y<u;y++)S[y]=p.charCodeAt(b[y]%p.length);return String.fromCharCode.apply(null,S)}function T(u,p){if(u!=="S256")throw new TypeError(`Invalid value for 'pkceMethod', expected 'S256' but got '${u}'.`);const b=Fd(p);return Wd(b).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}function $(u){var p={id_token:{acr:u}};return JSON.stringify(p)}e.createLoginUrl=function(u){var p=ye(),b=ye(),S=n.redirectUri(u),y={state:p,nonce:b,redirectUri:encodeURIComponent(S),loginOptions:u};u&&u.prompt&&(y.prompt=u.prompt);var E;u&&u.action=="register"?E=e.endpoints.register():E=e.endpoints.authorize();var w=u&&u.scope||e.scope;w?w.indexOf("openid")===-1&&(w="openid "+w):w="openid";var _=E+"?client_id="+encodeURIComponent(e.clientId)+"&redirect_uri="+encodeURIComponent(S)+"&state="+encodeURIComponent(p)+"&response_mode="+encodeURIComponent(e.responseMode)+"&response_type="+encodeURIComponent(e.responseType)+"&scope="+encodeURIComponent(w);if(l&&(_=_+"&nonce="+encodeURIComponent(b)),u&&u.prompt&&(_+="&prompt="+encodeURIComponent(u.prompt)),u&&u.maxAge&&(_+="&max_age="+encodeURIComponent(u.maxAge)),u&&u.loginHint&&(_+="&login_hint="+encodeURIComponent(u.loginHint)),u&&u.idpHint&&(_+="&kc_idp_hint="+encodeURIComponent(u.idpHint)),u&&u.action&&u.action!="register"&&(_+="&kc_action="+encodeURIComponent(u.action)),u&&u.locale&&(_+="&ui_locales="+encodeURIComponent(u.locale)),u&&u.acr){var A=$(u.acr);_+="&claims="+encodeURIComponent(A)}if((u&&u.acrValues||e.acrValues)&&(_+="&acr_values="+encodeURIComponent(u.acrValues||e.acrValues)),e.pkceMethod){var P=v(96);y.pkceCodeVerifier=P;var N=T(e.pkceMethod,P);_+="&code_challenge="+N,_+="&code_challenge_method="+e.pkceMethod}return r.add(y),_},e.logout=function(u){return n.logout(u)},e.createLogoutUrl=function(u){if(((u==null?void 0:u.logoutMethod)??e.logoutMethod)==="POST")return e.endpoints.logout();var b=e.endpoints.logout()+"?client_id="+encodeURIComponent(e.clientId)+"&post_logout_redirect_uri="+encodeURIComponent(n.redirectUri(u,!1));return e.idToken&&(b+="&id_token_hint="+encodeURIComponent(e.idToken)),b},e.register=function(u){return n.register(u)},e.createRegisterUrl=function(u){return u||(u={}),u.action="register",e.createLoginUrl(u)},e.createAccountUrl=function(u){var p=x(),b=void 0;return typeof p<"u"&&(b=p+"/account?referrer="+encodeURIComponent(e.clientId)+"&referrer_uri="+encodeURIComponent(n.redirectUri(u))),b},e.accountManagement=function(){return n.accountManagement()},e.hasRealmRole=function(u){var p=e.realmAccess;return!!p&&p.roles.indexOf(u)>=0},e.hasResourceRole=function(u,p){if(!e.resourceAccess)return!1;var b=e.resourceAccess[p||e.clientId];return!!b&&b.roles.indexOf(u)>=0},e.loadUserProfile=function(){var u=x()+"/account",p=new XMLHttpRequest;p.open("GET",u,!0),p.setRequestHeader("Accept","application/json"),p.setRequestHeader("Authorization","bearer "+e.token);var b=Y();return p.onreadystatechange=function(){p.readyState==4&&(p.status==200?(e.profile=JSON.parse(p.responseText),b.setSuccess(e.profile)):b.setError())},p.send(),b.promise},e.loadUserInfo=function(){var u=e.endpoints.userinfo(),p=new XMLHttpRequest;p.open("GET",u,!0),p.setRequestHeader("Accept","application/json"),p.setRequestHeader("Authorization","bearer "+e.token);var b=Y();return p.onreadystatechange=function(){p.readyState==4&&(p.status==200?(e.userInfo=JSON.parse(p.responseText),b.setSuccess(e.userInfo)):b.setError())},p.send(),b.promise},e.isTokenExpired=function(u){if(!e.tokenParsed||!e.refreshToken&&e.flow!="implicit")throw"Not authenticated";if(e.timeSkew==null)return d("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;var p=e.tokenParsed.exp-Math.ceil(new Date().getTime()/1e3)+e.timeSkew;if(u){if(isNaN(u))throw"Invalid minValidity";p-=u}return p<0},e.updateToken=function(u){var p=Y();if(!e.refreshToken)return p.setError(),p.promise;u=u||5;var b=function(){var y=!1;if(u==-1?(y=!0,d("[KEYCLOAK] Refreshing token: forced refresh")):(!e.tokenParsed||e.isTokenExpired(u))&&(y=!0,d("[KEYCLOAK] Refreshing token: token expired")),!y)p.setSuccess(!1);else{var E="grant_type=refresh_token&refresh_token="+e.refreshToken,w=e.endpoints.token();if(o.push(p),o.length==1){var _=new XMLHttpRequest;_.open("POST",w,!0),_.setRequestHeader("Content-type","application/x-www-form-urlencoded"),_.withCredentials=!0,E+="&client_id="+encodeURIComponent(e.clientId);var A=new Date().getTime();_.onreadystatechange=function(){if(_.readyState==4)if(_.status==200){d("[KEYCLOAK] Token refreshed"),A=(A+new Date().getTime())/2;var P=JSON.parse(_.responseText);J(P.access_token,P.refresh_token,P.id_token,A),e.onAuthRefreshSuccess&&e.onAuthRefreshSuccess();for(var N=o.pop();N!=null;N=o.pop())N.setSuccess(!0)}else{m("[KEYCLOAK] Failed to refresh token"),_.status==400&&e.clearToken(),e.onAuthRefreshError&&e.onAuthRefreshError();for(var N=o.pop();N!=null;N=o.pop())N.setError(!0)}},_.send(E)}}};if(i.enable){var S=Te();S.then(function(){b()}).catch(function(y){p.setError(y)})}else b();return p.promise},e.clearToken=function(){e.token&&(J(null,null,null),e.onAuthLogout&&e.onAuthLogout(),e.loginRequired&&e.login())};function x(){if(typeof e.authServerUrl<"u")return e.authServerUrl.charAt(e.authServerUrl.length-1)=="/"?e.authServerUrl+"realms/"+encodeURIComponent(e.realm):e.authServerUrl+"/realms/"+encodeURIComponent(e.realm)}function R(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}function I(u,p){var b=u.code,S=u.error,y=u.prompt,E=new Date().getTime();if(u.kc_action_status&&e.onActionUpdate&&e.onActionUpdate(u.kc_action_status,u.kc_action),S){if(y!="none")if(u.error_description&&u.error_description==="authentication_expired")e.login(u.loginOptions);else{var w={error:S,error_description:u.error_description};e.onAuthError&&e.onAuthError(w),p&&p.setError(w)}else p&&p.setSuccess();return}else e.flow!="standard"&&(u.access_token||u.id_token)&&N(u.access_token,null,u.id_token,!0);if(e.flow!="implicit"&&b){var _="code="+b+"&grant_type=authorization_code",A=e.endpoints.token(),P=new XMLHttpRequest;P.open("POST",A,!0),P.setRequestHeader("Content-type","application/x-www-form-urlencoded"),_+="&client_id="+encodeURIComponent(e.clientId),_+="&redirect_uri="+u.redirectUri,u.pkceCodeVerifier&&(_+="&code_verifier="+u.pkceCodeVerifier),P.withCredentials=!0,P.onreadystatechange=function(){if(P.readyState==4)if(P.status==200){var H=JSON.parse(P.responseText);N(H.access_token,H.refresh_token,H.id_token,e.flow==="standard"),Me()}else e.onAuthError&&e.onAuthError(),p&&p.setError()},P.send(_)}function N(H,ve,ae,le){E=(E+new Date().getTime())/2,J(H,ve,ae,E),l&&e.idTokenParsed&&e.idTokenParsed.nonce!=u.storedNonce?(d("[KEYCLOAK] Invalid nonce, clearing token"),e.clearToken(),p&&p.setError()):le&&(e.onAuthSuccess&&e.onAuthSuccess(),p&&p.setSuccess())}}function B(u){var p=Y(),b;t?typeof t=="string"&&(b=t):b="keycloak.json";function S(P){P?e.endpoints={authorize:function(){return P.authorization_endpoint},token:function(){return P.token_endpoint},logout:function(){if(!P.end_session_endpoint)throw"Not supported by the OIDC server";return P.end_session_endpoint},checkSessionIframe:function(){if(!P.check_session_iframe)throw"Not supported by the OIDC server";return P.check_session_iframe},register:function(){throw'Redirection to "Register user" page not supported in standard OIDC mode'},userinfo:function(){if(!P.userinfo_endpoint)throw"Not supported by the OIDC server";return P.userinfo_endpoint}}:e.endpoints={authorize:function(){return x()+"/protocol/openid-connect/auth"},token:function(){return x()+"/protocol/openid-connect/token"},logout:function(){return x()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){var N=x()+"/protocol/openid-connect/login-status-iframe.html";return e.iframeVersion&&(N=N+"?version="+e.iframeVersion),N},thirdPartyCookiesIframe:function(){var N=x()+"/protocol/openid-connect/3p-cookies/step1.html";return e.iframeVersion&&(N=N+"?version="+e.iframeVersion),N},register:function(){return x()+"/protocol/openid-connect/registrations"},userinfo:function(){return x()+"/protocol/openid-connect/userinfo"}}}if(b){var y=new XMLHttpRequest;y.open("GET",b,!0),y.setRequestHeader("Accept","application/json"),y.onreadystatechange=function(){if(y.readyState==4)if(y.status==200||F(y)){var P=JSON.parse(y.responseText);e.authServerUrl=P["auth-server-url"],e.realm=P.realm,e.clientId=P.resource,S(null),p.setSuccess()}else p.setError()},y.send()}else{if(!t.clientId)throw"clientId missing";e.clientId=t.clientId;var E=t.oidcProvider;if(E)if(typeof E=="string"){var A;E.charAt(E.length-1)=="/"?A=E+".well-known/openid-configuration":A=E+"/.well-known/openid-configuration";var y=new XMLHttpRequest;y.open("GET",A,!0),y.setRequestHeader("Accept","application/json"),y.onreadystatechange=function(){if(y.readyState==4)if(y.status==200||F(y)){var N=JSON.parse(y.responseText);S(N),p.setSuccess()}else p.setError()},y.send()}else S(E),p.setSuccess();else{if(!t.url){for(var w=document.getElementsByTagName("script"),_=0;_<w.length;_++)if(w[_].src.match(/.*keycloak\.js/)){t.url=w[_].src.substr(0,w[_].src.indexOf("/js/keycloak.js"));break}}if(!t.realm)throw"realm missing";e.authServerUrl=t.url,e.realm=t.realm,S(null),p.setSuccess()}}return p.promise}function F(u){return u.status==0&&u.responseText&&u.responseURL.startsWith("file:")}function J(u,p,b,S){if(e.tokenTimeoutHandle&&(clearTimeout(e.tokenTimeoutHandle),e.tokenTimeoutHandle=null),p?(e.refreshToken=p,e.refreshTokenParsed=So(p)):(delete e.refreshToken,delete e.refreshTokenParsed),b?(e.idToken=b,e.idTokenParsed=So(b)):(delete e.idToken,delete e.idTokenParsed),u){if(e.token=u,e.tokenParsed=So(u),e.sessionId=e.tokenParsed.sid,e.authenticated=!0,e.subject=e.tokenParsed.sub,e.realmAccess=e.tokenParsed.realm_access,e.resourceAccess=e.tokenParsed.resource_access,S&&(e.timeSkew=Math.floor(S/1e3)-e.tokenParsed.iat),e.timeSkew!=null&&(d("[KEYCLOAK] Estimated time difference between browser and server is "+e.timeSkew+" seconds"),e.onTokenExpired)){var y=(e.tokenParsed.exp-new Date().getTime()/1e3+e.timeSkew)*1e3;d("[KEYCLOAK] Token expires in "+Math.round(y/1e3)+" s"),y<=0?e.onTokenExpired():e.tokenTimeoutHandle=setTimeout(e.onTokenExpired,y)}}else delete e.token,delete e.tokenParsed,delete e.subject,delete e.realmAccess,delete e.resourceAccess,e.authenticated=!1}function ye(){var u="0123456789abcdef",p=C(36,u).split("");p[14]="4",p[19]=u.substr(p[19]&3|8,1),p[8]=p[13]=p[18]=p[23]="-";var b=p.join("");return b}function ee(u){var p=De(u);if(p){var b=r.get(p.state);return b&&(p.valid=!0,p.redirectUri=b.redirectUri,p.storedNonce=b.nonce,p.prompt=b.prompt,p.pkceCodeVerifier=b.pkceCodeVerifier,p.loginOptions=b.loginOptions),p}}function De(u){var p;switch(e.flow){case"standard":p=["code","state","session_state","kc_action_status","kc_action","iss"];break;case"implicit":p=["access_token","token_type","id_token","state","session_state","expires_in","kc_action_status","kc_action","iss"];break;case"hybrid":p=["access_token","token_type","id_token","code","state","session_state","expires_in","kc_action_status","kc_action","iss"];break}p.push("error"),p.push("error_description"),p.push("error_uri");var b=u.indexOf("?"),S=u.indexOf("#"),y,E;if(e.responseMode==="query"&&b!==-1?(y=u.substring(0,b),E=Ie(u.substring(b+1,S!==-1?S:u.length),p),E.paramsString!==""&&(y+="?"+E.paramsString),S!==-1&&(y+=u.substring(S))):e.responseMode==="fragment"&&S!==-1&&(y=u.substring(0,S),E=Ie(u.substring(S+1),p),E.paramsString!==""&&(y+="#"+E.paramsString)),E&&E.oauthParams){if(e.flow==="standard"||e.flow==="hybrid"){if((E.oauthParams.code||E.oauthParams.error)&&E.oauthParams.state)return E.oauthParams.newUrl=y,E.oauthParams}else if(e.flow==="implicit"&&(E.oauthParams.access_token||E.oauthParams.error)&&E.oauthParams.state)return E.oauthParams.newUrl=y,E.oauthParams}}function Ie(u,p){for(var b=u.split("&"),S={paramsString:"",oauthParams:{}},y=0;y<b.length;y++){var E=b[y].indexOf("="),w=b[y].slice(0,E);p.indexOf(w)!==-1?S.oauthParams[w]=b[y].slice(E+1):(S.paramsString!==""&&(S.paramsString+="&"),S.paramsString+=b[y])}return S}function Y(){var u={setSuccess:function(p){u.resolve(p)},setError:function(p){u.reject(p)}};return u.promise=new Promise(function(p,b){u.resolve=p,u.reject=b}),u}function Q(u,p,b){var S=null,y=new Promise(function(E,w){S=setTimeout(function(){w({error:b})},p)});return Promise.race([u,y]).finally(function(){clearTimeout(S)})}function be(){var u=Y();if(!i.enable||i.iframe)return u.setSuccess(),u.promise;var p=document.createElement("iframe");i.iframe=p,p.onload=function(){var y=e.endpoints.authorize();y.charAt(0)==="/"?i.iframeOrigin=R():i.iframeOrigin=y.substring(0,y.indexOf("/",8)),u.setSuccess()};var b=e.endpoints.checkSessionIframe();p.setAttribute("src",b),p.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),p.setAttribute("title","keycloak-session-iframe"),p.style.display="none",document.body.appendChild(p);var S=function(y){if(!(y.origin!==i.iframeOrigin||i.iframe.contentWindow!==y.source)&&(y.data=="unchanged"||y.data=="changed"||y.data=="error")){y.data!="unchanged"&&e.clearToken();for(var E=i.callbackList.splice(0,i.callbackList.length),w=E.length-1;w>=0;--w){var _=E[w];y.data=="error"?_.setError():_.setSuccess(y.data=="unchanged")}}};return window.addEventListener("message",S,!1),u.promise}function Me(){i.enable&&e.token&&setTimeout(function(){Te().then(function(u){u&&Me()})},i.interval*1e3)}function Te(){var u=Y();if(i.iframe&&i.iframeOrigin){var p=e.clientId+" "+(e.sessionId?e.sessionId:"");i.callbackList.push(u);var b=i.iframeOrigin;i.callbackList.length==1&&i.iframe.contentWindow.postMessage(p,b)}else u.setSuccess();return u.promise}function it(){var u=Y();if(i.enable||e.silentCheckSsoRedirectUri){var p=document.createElement("iframe");p.setAttribute("src",e.endpoints.thirdPartyCookiesIframe()),p.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),p.setAttribute("title","keycloak-3p-check-iframe"),p.style.display="none",document.body.appendChild(p);var b=function(S){p.contentWindow===S.source&&(S.data!=="supported"&&S.data!=="unsupported"||(S.data==="unsupported"&&(m(`[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:
404
+ If you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md`)}),e};function $u(){const t=M.domCache.get(this),e=M.innerParams.get(this);if(!e){qr(this);return}t.popup&&D.swalCloseEventFinishedCallback&&(D.swalCloseEventFinishedCallback(),delete D.swalCloseEventFinishedCallback),D.deferDisposalTimer&&(clearTimeout(D.deferDisposalTimer),delete D.deferDisposalTimer),typeof e.didDestroy=="function"&&e.didDestroy(),Bu(this)}const Bu=t=>{qr(t),delete t.params,delete D.keydownHandler,delete D.keydownTarget,delete D.currentInstance},qr=t=>{t.isAwaitingPromise()?(co(M,t),M.awaitingPromise.set(t,!0)):(co(Yt,t),co(M,t))},co=(t,e)=>{for(const n in t)t[n].delete(e)},Yr=Object.freeze(Object.defineProperty({__proto__:null,_destroy:$u,close:Sn,closeModal:Sn,closePopup:Sn,closeToast:Sn,disableButtons:Iu,disableInput:Eu,disableLoading:Vr,enableButtons:Cu,enableInput:Tu,getInput:su,getProgressSteps:xu,handleAwaitingPromise:Xt,hideLoading:Vr,isAwaitingPromise:bu,rejectPromise:wu,resetValidationMessage:Pu,showValidationMessage:Au,update:Lu},Symbol.toStringTag,{value:"Module"})),Nu=t=>{const e=M.innerParams.get(t);t.disableButtons(),e.input?Xr(t,"confirm"):fo(t,!0)},Du=t=>{const e=M.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?Xr(t,"deny"):uo(t,!1)},Mu=(t,e)=>{t.disableButtons(),e(vt.cancel)},Xr=(t,e)=>{const n=M.innerParams.get(t);if(!n.input)return lt(`The "input" parameter is needed to be set when using returnInputValueOn${Yn(e)}`);const o=Jc(t,n);n.inputValidator?Ru(t,o,e):t.getInput().checkValidity()?e==="deny"?uo(t,o):fo(t,o):(t.enableButtons(),t.showValidationMessage(n.validationMessage))},Ru=(t,e,n)=>{const o=M.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>Ht(o.inputValidator(e,o.validationMessage))).then(i=>{t.enableButtons(),t.enableInput(),i?t.showValidationMessage(i):n==="deny"?uo(t,e):fo(t,e)})},uo=(t,e)=>{const n=M.innerParams.get(t||void 0);n.showLoaderOnDeny&&wt(tt()),n.preDeny?(M.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>Ht(n.preDeny(e,n.validationMessage))).then(r=>{r===!1?(t.hideLoading(),Xt(t)):t.closePopup({isDenied:!0,value:typeof r>"u"?e:r})}).catch(r=>Jr(t||void 0,r))):t.closePopup({isDenied:!0,value:e})},Zr=(t,e)=>{t.closePopup({isConfirmed:!0,value:e})},Jr=(t,e)=>{t.rejectPromise(e)},fo=(t,e)=>{const n=M.innerParams.get(t||void 0);n.showLoaderOnConfirm&&wt(),n.preConfirm?(t.resetValidationMessage(),M.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>Ht(n.preConfirm(e,n.validationMessage))).then(r=>{Se(vn())||r===!1?(t.hideLoading(),Xt(t)):Zr(t,typeof r>"u"?e:r)}).catch(r=>Jr(t||void 0,r))):Zr(t,e)},Uu=(t,e,n)=>{M.innerParams.get(t).toast?Vu(t,e,n):(ju(e),Fu(e),Ku(t,e,n))},Vu=(t,e,n)=>{e.popup.onclick=()=>{const o=M.innerParams.get(t);o&&(Hu(o)||o.timer||o.input)||n(vt.close)}},Hu=t=>t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton;let Cn=!1;const ju=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(Cn=!0)}}},Fu=t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(Cn=!0)}}},Ku=(t,e,n)=>{e.container.onclick=o=>{const r=M.innerParams.get(t);if(Cn){Cn=!1;return}o.target===e.container&&yn(r.allowOutsideClick)&&n(vt.backdrop)}},zu=t=>typeof t=="object"&&t.jquery,Qr=t=>t instanceof Element||zu(t),Wu=t=>{const e={};return typeof t[0]=="object"&&!Qr(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,o)=>{const r=t[o];typeof r=="string"||Qr(r)?e[n]=r:r!==void 0&&lt(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof r}`)}),e};function Gu(...t){const e=this;return new e(...t)}function qu(t){class e extends this{_main(o,r){return super._main(o,Object.assign({},t,r))}}return e}const Yu=()=>D.timeout&&D.timeout.getTimerLeft(),ei=()=>{if(D.timeout)return Dl(),D.timeout.stop()},ti=()=>{if(D.timeout){const t=D.timeout.start();return oo(t),t}},Xu=()=>{const t=D.timeout;return t&&(t.running?ei():ti())},Zu=t=>{if(D.timeout){const e=D.timeout.increase(t);return oo(e,!0),e}},Ju=()=>D.timeout&&D.timeout.isRunning();let ni=!1;const mo={};function Qu(t="data-swal-template"){mo[t]=this,ni||(document.body.addEventListener("click",ed),ni=!0)}const ed=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in mo){const o=e.getAttribute(n);if(o){mo[n].fire({template:o});return}}},td=Object.freeze(Object.defineProperty({__proto__:null,argsToParams:Wu,bindClickHandler:Qu,clickCancel:cu,clickConfirm:Hr,clickDeny:lu,enableLoading:wt,fire:Gu,getActions:zt,getCancelButton:ct,getCloseButton:Qn,getConfirmButton:Be,getContainer:re,getDenyButton:tt,getFocusableElements:eo,getFooter:kr,getHtmlContainer:bn,getIcon:Kt,getImage:wr,getInputLabel:Ll,getLoader:yt,getPopup:q,getTimerLeft:Yu,getTimerProgressBar:wn,getTitle:vr,getValidationMessage:vn,increaseTimer:Zu,isDeprecatedParameter:Jn,isLoading:$l,isTimerRunning:Ju,isUpdatableParameter:yr,isValidParameter:gr,isVisible:au,mixin:qu,resumeTimer:ti,showLoading:wt,stopTimer:ei,toggleTimer:Xu},Symbol.toStringTag,{value:"Module"}));let po;class _t{constructor(...e){if(typeof window>"u")return;po=this;const n=Object.freeze(this.constructor.argsToParams(e));Object.defineProperties(this,{params:{value:n,writable:!1,enumerable:!0,configurable:!0}});const o=this._main(this.params);M.promise.set(this,o)}_main(e,n={}){Pl(Object.assign({},n,e)),D.currentInstance&&(D.currentInstance._destroy(),to()&&Br()),D.currentInstance=this;const o=od(e,n);Nc(o),Object.freeze(o),D.timeout&&(D.timeout.stop(),delete D.timeout),clearTimeout(D.restoreFocusTimeout);const r=rd(this);return $r(this,o),M.innerParams.set(this,o),nd(this,r,o)}then(e){return M.promise.get(this).then(e)}finally(e){return M.promise.get(this).finally(e)}}const nd=(t,e,n)=>new Promise((o,r)=>{const i=c=>{t.closePopup({isDismissed:!0,dismiss:c})};Yt.swalPromiseResolve.set(t,o),Yt.swalPromiseReject.set(t,r),e.confirmButton.onclick=()=>Nu(t),e.denyButton.onclick=()=>Du(t),e.cancelButton.onclick=()=>Mu(t,i),e.closeButton.onclick=()=>i(vt.close),Uu(t,e,i),uu(t,D,n,i),Zc(t,n),Wc(n),id(D,n,i),sd(e,n),setTimeout(()=>{e.container.scrollTop=0})}),od=(t,e)=>{const n=Ic(t),o=Object.assign({},gt,e,n,t);return o.showClass=Object.assign({},gt.showClass,o.showClass),o.hideClass=Object.assign({},gt.hideClass,o.hideClass),o},rd=t=>{const e={popup:q(),container:re(),actions:zt(),confirmButton:Be(),denyButton:tt(),cancelButton:ct(),loader:yt(),closeButton:Qn(),validationMessage:vn(),progressSteps:_r()};return M.domCache.set(t,e),e},id=(t,e,n)=>{const o=wn();se(o),e.timer&&(t.timeout=new Dc(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(ne(o),Ae(o,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&oo(e.timer)})))},sd=(t,e)=>{if(!e.toast){if(!yn(e.allowEnterKey))return ld();ad(t,e)||lo(e,-1,1)}},ad=(t,e)=>e.focusDeny&&Se(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&Se(t.cancelButton)?(t.cancelButton.focus(),!0):e.focusConfirm&&Se(t.confirmButton)?(t.confirmButton.focus(),!0):!1,ld=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Object.assign(_t.prototype,Yr),Object.assign(_t,td),Object.keys(Yr).forEach(t=>{_t[t]=function(...e){if(po)return po[t](...e)}}),_t.DismissReason=vt,_t.version="11.4.8";const kt=_t;kt.default=kt;/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */const{entries:oi,setPrototypeOf:ri,isFrozen:cd,getPrototypeOf:ud,getOwnPropertyDescriptor:dd}=Object;let{freeze:de,seal:Pe,create:ii}=Object,{apply:ho,construct:go}=typeof Reflect<"u"&&Reflect;de||(de=function(e){return e}),Pe||(Pe=function(e){return e}),ho||(ho=function(e,n,o){return e.apply(n,o)}),go||(go=function(e,n){return new e(...n)});const In=Ce(Array.prototype.forEach),si=Ce(Array.prototype.pop),Zt=Ce(Array.prototype.push),Tn=Ce(String.prototype.toLowerCase),yo=Ce(String.prototype.toString),ai=Ce(String.prototype.match),Jt=Ce(String.prototype.replace),fd=Ce(String.prototype.indexOf),md=Ce(String.prototype.trim),Ne=Ce(Object.prototype.hasOwnProperty),fe=Ce(RegExp.prototype.test),Qt=pd(TypeError);function Ce(t){return function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return ho(t,e,o)}}function pd(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return go(t,n)}}function j(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Tn;ri&&ri(t,null);let o=e.length;for(;o--;){let r=e[o];if(typeof r=="string"){const i=n(r);i!==r&&(cd(e)||(e[o]=i),r=i)}t[r]=!0}return t}function hd(t){for(let e=0;e<t.length;e++)Ne(t,e)||(t[e]=null);return t}function ft(t){const e=ii(null);for(const[n,o]of oi(t))Ne(t,n)&&(Array.isArray(o)?e[n]=hd(o):o&&typeof o=="object"&&o.constructor===Object?e[n]=ft(o):e[n]=o);return e}function en(t,e){for(;t!==null;){const o=dd(t,e);if(o){if(o.get)return Ce(o.get);if(typeof o.value=="function")return Ce(o.value)}t=ud(t)}function n(){return null}return n}const li=de(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),bo=de(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),vo=de(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),gd=de(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),wo=de(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),yd=de(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ci=de(["#text"]),ui=de(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),_o=de(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),di=de(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),En=de(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),bd=Pe(/\{\{[\w\W]*|[\w\W]*\}\}/gm),vd=Pe(/<%[\w\W]*|[\w\W]*%>/gm),wd=Pe(/\${[\w\W]*}/gm),_d=Pe(/^data-[\-\w.\u00B7-\uFFFF]/),kd=Pe(/^aria-[\-\w]+$/),fi=Pe(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Sd=Pe(/^(?:\w+script|data):/i),Cd=Pe(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),mi=Pe(/^html$/i),Id=Pe(/^[a-z][.\w]*(-[.\w]+)+$/i);var pi=Object.freeze({__proto__:null,MUSTACHE_EXPR:bd,ERB_EXPR:vd,TMPLIT_EXPR:wd,DATA_ATTR:_d,ARIA_ATTR:kd,IS_ALLOWED_URI:fi,IS_SCRIPT_OR_DATA:Sd,ATTR_WHITESPACE:Cd,DOCTYPE_NAME:mi,CUSTOM_ELEMENT:Id});const tn={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Td=function(){return typeof window>"u"?null:window},Ed=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let o=null;const r="data-tt-policy-suffix";n&&n.hasAttribute(r)&&(o=n.getAttribute(r));const i="dompurify"+(o?"#"+o:"");try{return e.createPolicy(i,{createHTML(c){return c},createScriptURL(c){return c}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function hi(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Td();const e=O=>hi(O);if(e.version="3.1.6",e.removed=[],!t||!t.document||t.document.nodeType!==tn.document)return e.isSupported=!1,e;let{document:n}=t;const o=n,r=o.currentScript,{DocumentFragment:i,HTMLTemplateElement:c,Node:a,Element:l,NodeFilter:d,NamedNodeMap:m=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:v,trustedTypes:C}=t,T=l.prototype,$=en(T,"cloneNode"),x=en(T,"remove"),R=en(T,"nextSibling"),I=en(T,"childNodes"),B=en(T,"parentNode");if(typeof c=="function"){const O=n.createElement("template");O.content&&O.content.ownerDocument&&(n=O.content.ownerDocument)}let F,J="";const{implementation:ye,createNodeIterator:ee,createDocumentFragment:De,getElementsByTagName:Ie}=n,{importNode:Y}=o;let Q={};e.isSupported=typeof oi=="function"&&typeof B=="function"&&ye&&ye.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:be,ERB_EXPR:Me,TMPLIT_EXPR:Te,DATA_ATTR:it,ARIA_ATTR:Ye,IS_SCRIPT_OR_DATA:He,ATTR_WHITESPACE:je,CUSTOM_ELEMENT:mt}=pi;let{IS_ALLOWED_URI:xe}=pi,u=null;const p=j({},[...li,...bo,...vo,...wo,...ci]);let b=null;const S=j({},[...ui,..._o,...di,...En]);let y=Object.seal(ii(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}})),E=null,w=null,_=!0,P=!0,A=!1,N=!0,H=!1,ve=!0,ae=!1,le=!1,Xe=!1,St=!1,Pn=!1,xn=!1,Ci=!0,Ii=!1;const nf="user-content-";let Co=!0,on=!1,Ct={},It=null;const Ti=j({},["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 Ei=null;const Ai=j({},["audio","video","img","source","image","track"]);let Io=null;const Pi=j({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ln="http://www.w3.org/1998/Math/MathML",On="http://www.w3.org/2000/svg",Ze="http://www.w3.org/1999/xhtml";let Tt=Ze,To=!1,Eo=null;const of=j({},[Ln,On,Ze],yo);let rn=null;const rf=["application/xhtml+xml","text/html"],sf="text/html";let te=null,Et=null;const af=n.createElement("form"),xi=function(f){return f instanceof RegExp||f instanceof Function},Ao=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Et&&Et===f)){if((!f||typeof f!="object")&&(f={}),f=ft(f),rn=rf.indexOf(f.PARSER_MEDIA_TYPE)===-1?sf:f.PARSER_MEDIA_TYPE,te=rn==="application/xhtml+xml"?yo:Tn,u=Ne(f,"ALLOWED_TAGS")?j({},f.ALLOWED_TAGS,te):p,b=Ne(f,"ALLOWED_ATTR")?j({},f.ALLOWED_ATTR,te):S,Eo=Ne(f,"ALLOWED_NAMESPACES")?j({},f.ALLOWED_NAMESPACES,yo):of,Io=Ne(f,"ADD_URI_SAFE_ATTR")?j(ft(Pi),f.ADD_URI_SAFE_ATTR,te):Pi,Ei=Ne(f,"ADD_DATA_URI_TAGS")?j(ft(Ai),f.ADD_DATA_URI_TAGS,te):Ai,It=Ne(f,"FORBID_CONTENTS")?j({},f.FORBID_CONTENTS,te):Ti,E=Ne(f,"FORBID_TAGS")?j({},f.FORBID_TAGS,te):{},w=Ne(f,"FORBID_ATTR")?j({},f.FORBID_ATTR,te):{},Ct=Ne(f,"USE_PROFILES")?f.USE_PROFILES:!1,_=f.ALLOW_ARIA_ATTR!==!1,P=f.ALLOW_DATA_ATTR!==!1,A=f.ALLOW_UNKNOWN_PROTOCOLS||!1,N=f.ALLOW_SELF_CLOSE_IN_ATTR!==!1,H=f.SAFE_FOR_TEMPLATES||!1,ve=f.SAFE_FOR_XML!==!1,ae=f.WHOLE_DOCUMENT||!1,St=f.RETURN_DOM||!1,Pn=f.RETURN_DOM_FRAGMENT||!1,xn=f.RETURN_TRUSTED_TYPE||!1,Xe=f.FORCE_BODY||!1,Ci=f.SANITIZE_DOM!==!1,Ii=f.SANITIZE_NAMED_PROPS||!1,Co=f.KEEP_CONTENT!==!1,on=f.IN_PLACE||!1,xe=f.ALLOWED_URI_REGEXP||fi,Tt=f.NAMESPACE||Ze,y=f.CUSTOM_ELEMENT_HANDLING||{},f.CUSTOM_ELEMENT_HANDLING&&xi(f.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(y.tagNameCheck=f.CUSTOM_ELEMENT_HANDLING.tagNameCheck),f.CUSTOM_ELEMENT_HANDLING&&xi(f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(y.attributeNameCheck=f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),f.CUSTOM_ELEMENT_HANDLING&&typeof f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(y.allowCustomizedBuiltInElements=f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),H&&(P=!1),Pn&&(St=!0),Ct&&(u=j({},ci),b=[],Ct.html===!0&&(j(u,li),j(b,ui)),Ct.svg===!0&&(j(u,bo),j(b,_o),j(b,En)),Ct.svgFilters===!0&&(j(u,vo),j(b,_o),j(b,En)),Ct.mathMl===!0&&(j(u,wo),j(b,di),j(b,En))),f.ADD_TAGS&&(u===p&&(u=ft(u)),j(u,f.ADD_TAGS,te)),f.ADD_ATTR&&(b===S&&(b=ft(b)),j(b,f.ADD_ATTR,te)),f.ADD_URI_SAFE_ATTR&&j(Io,f.ADD_URI_SAFE_ATTR,te),f.FORBID_CONTENTS&&(It===Ti&&(It=ft(It)),j(It,f.FORBID_CONTENTS,te)),Co&&(u["#text"]=!0),ae&&j(u,["html","head","body"]),u.table&&(j(u,["tbody"]),delete E.tbody),f.TRUSTED_TYPES_POLICY){if(typeof f.TRUSTED_TYPES_POLICY.createHTML!="function")throw Qt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof f.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Qt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');F=f.TRUSTED_TYPES_POLICY,J=F.createHTML("")}else F===void 0&&(F=Ed(C,r)),F!==null&&typeof J=="string"&&(J=F.createHTML(""));de&&de(f),Et=f}},Li=j({},["mi","mo","mn","ms","mtext"]),Oi=j({},["foreignobject","annotation-xml"]),lf=j({},["title","style","font","a","script"]),$i=j({},[...bo,...vo,...gd]),Bi=j({},[...wo,...yd]),cf=function(f){let k=B(f);(!k||!k.tagName)&&(k={namespaceURI:Tt,tagName:"template"});const L=Tn(f.tagName),X=Tn(k.tagName);return Eo[f.namespaceURI]?f.namespaceURI===On?k.namespaceURI===Ze?L==="svg":k.namespaceURI===Ln?L==="svg"&&(X==="annotation-xml"||Li[X]):!!$i[L]:f.namespaceURI===Ln?k.namespaceURI===Ze?L==="math":k.namespaceURI===On?L==="math"&&Oi[X]:!!Bi[L]:f.namespaceURI===Ze?k.namespaceURI===On&&!Oi[X]||k.namespaceURI===Ln&&!Li[X]?!1:!Bi[L]&&(lf[L]||!$i[L]):!!(rn==="application/xhtml+xml"&&Eo[f.namespaceURI]):!1},Fe=function(f){Zt(e.removed,{element:f});try{B(f).removeChild(f)}catch{x(f)}},$n=function(f,k){try{Zt(e.removed,{attribute:k.getAttributeNode(f),from:k})}catch{Zt(e.removed,{attribute:null,from:k})}if(k.removeAttribute(f),f==="is"&&!b[f])if(St||Pn)try{Fe(k)}catch{}else try{k.setAttribute(f,"")}catch{}},Ni=function(f){let k=null,L=null;if(Xe)f="<remove></remove>"+f;else{const oe=ai(f,/^[\r\n\t ]+/);L=oe&&oe[0]}rn==="application/xhtml+xml"&&Tt===Ze&&(f='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+f+"</body></html>");const X=F?F.createHTML(f):f;if(Tt===Ze)try{k=new v().parseFromString(X,rn)}catch{}if(!k||!k.documentElement){k=ye.createDocument(Tt,"template",null);try{k.documentElement.innerHTML=To?J:X}catch{}}const ce=k.body||k.documentElement;return f&&L&&ce.insertBefore(n.createTextNode(L),ce.childNodes[0]||null),Tt===Ze?Ie.call(k,ae?"html":"body")[0]:ae?k.documentElement:ce},Di=function(f){return ee.call(f.ownerDocument||f,f,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},Mi=function(f){return f instanceof h&&(typeof f.nodeName!="string"||typeof f.textContent!="string"||typeof f.removeChild!="function"||!(f.attributes instanceof m)||typeof f.removeAttribute!="function"||typeof f.setAttribute!="function"||typeof f.namespaceURI!="string"||typeof f.insertBefore!="function"||typeof f.hasChildNodes!="function")},Ri=function(f){return typeof a=="function"&&f instanceof a},Je=function(f,k,L){Q[f]&&In(Q[f],X=>{X.call(e,k,L,Et)})},Ui=function(f){let k=null;if(Je("beforeSanitizeElements",f,null),Mi(f))return Fe(f),!0;const L=te(f.nodeName);if(Je("uponSanitizeElement",f,{tagName:L,allowedTags:u}),f.hasChildNodes()&&!Ri(f.firstElementChild)&&fe(/<[/\w]/g,f.innerHTML)&&fe(/<[/\w]/g,f.textContent)||f.nodeType===tn.progressingInstruction||ve&&f.nodeType===tn.comment&&fe(/<[/\w]/g,f.data))return Fe(f),!0;if(!u[L]||E[L]){if(!E[L]&&Hi(L)&&(y.tagNameCheck instanceof RegExp&&fe(y.tagNameCheck,L)||y.tagNameCheck instanceof Function&&y.tagNameCheck(L)))return!1;if(Co&&!It[L]){const X=B(f)||f.parentNode,ce=I(f)||f.childNodes;if(ce&&X){const oe=ce.length;for(let we=oe-1;we>=0;--we){const Ke=$(ce[we],!0);Ke.__removalCount=(f.__removalCount||0)+1,X.insertBefore(Ke,R(f))}}}return Fe(f),!0}return f instanceof l&&!cf(f)||(L==="noscript"||L==="noembed"||L==="noframes")&&fe(/<\/no(script|embed|frames)/i,f.innerHTML)?(Fe(f),!0):(H&&f.nodeType===tn.text&&(k=f.textContent,In([be,Me,Te],X=>{k=Jt(k,X," ")}),f.textContent!==k&&(Zt(e.removed,{element:f.cloneNode()}),f.textContent=k)),Je("afterSanitizeElements",f,null),!1)},Vi=function(f,k,L){if(Ci&&(k==="id"||k==="name")&&(L in n||L in af))return!1;if(!(P&&!w[k]&&fe(it,k))){if(!(_&&fe(Ye,k))){if(!b[k]||w[k]){if(!(Hi(f)&&(y.tagNameCheck instanceof RegExp&&fe(y.tagNameCheck,f)||y.tagNameCheck instanceof Function&&y.tagNameCheck(f))&&(y.attributeNameCheck instanceof RegExp&&fe(y.attributeNameCheck,k)||y.attributeNameCheck instanceof Function&&y.attributeNameCheck(k))||k==="is"&&y.allowCustomizedBuiltInElements&&(y.tagNameCheck instanceof RegExp&&fe(y.tagNameCheck,L)||y.tagNameCheck instanceof Function&&y.tagNameCheck(L))))return!1}else if(!Io[k]){if(!fe(xe,Jt(L,je,""))){if(!((k==="src"||k==="xlink:href"||k==="href")&&f!=="script"&&fd(L,"data:")===0&&Ei[f])){if(!(A&&!fe(He,Jt(L,je,"")))){if(L)return!1}}}}}}return!0},Hi=function(f){return f!=="annotation-xml"&&ai(f,mt)},ji=function(f){Je("beforeSanitizeAttributes",f,null);const{attributes:k}=f;if(!k)return;const L={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:b};let X=k.length;for(;X--;){const ce=k[X],{name:oe,namespaceURI:we,value:Ke}=ce,sn=te(oe);let me=oe==="value"?Ke:md(Ke);if(L.attrName=sn,L.attrValue=me,L.keepAttr=!0,L.forceKeepAttr=void 0,Je("uponSanitizeAttribute",f,L),me=L.attrValue,ve&&fe(/((--!?|])>)|<\/(style|title)/i,me)){$n(oe,f);continue}if(L.forceKeepAttr||($n(oe,f),!L.keepAttr))continue;if(!N&&fe(/\/>/i,me)){$n(oe,f);continue}H&&In([be,Me,Te],Ki=>{me=Jt(me,Ki," ")});const Fi=te(f.nodeName);if(Vi(Fi,sn,me)){if(Ii&&(sn==="id"||sn==="name")&&($n(oe,f),me=nf+me),F&&typeof C=="object"&&typeof C.getAttributeType=="function"&&!we)switch(C.getAttributeType(Fi,sn)){case"TrustedHTML":{me=F.createHTML(me);break}case"TrustedScriptURL":{me=F.createScriptURL(me);break}}try{we?f.setAttributeNS(we,oe,me):f.setAttribute(oe,me),Mi(f)?Fe(f):si(e.removed)}catch{}}}Je("afterSanitizeAttributes",f,null)},uf=function O(f){let k=null;const L=Di(f);for(Je("beforeSanitizeShadowDOM",f,null);k=L.nextNode();)Je("uponSanitizeShadowNode",k,null),!Ui(k)&&(k.content instanceof i&&O(k.content),ji(k));Je("afterSanitizeShadowDOM",f,null)};return e.sanitize=function(O){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},k=null,L=null,X=null,ce=null;if(To=!O,To&&(O="<!-->"),typeof O!="string"&&!Ri(O))if(typeof O.toString=="function"){if(O=O.toString(),typeof O!="string")throw Qt("dirty is not a string, aborting")}else throw Qt("toString is not a function");if(!e.isSupported)return O;if(le||Ao(f),e.removed=[],typeof O=="string"&&(on=!1),on){if(O.nodeName){const Ke=te(O.nodeName);if(!u[Ke]||E[Ke])throw Qt("root node is forbidden and cannot be sanitized in-place")}}else if(O instanceof a)k=Ni("<!---->"),L=k.ownerDocument.importNode(O,!0),L.nodeType===tn.element&&L.nodeName==="BODY"||L.nodeName==="HTML"?k=L:k.appendChild(L);else{if(!St&&!H&&!ae&&O.indexOf("<")===-1)return F&&xn?F.createHTML(O):O;if(k=Ni(O),!k)return St?null:xn?J:""}k&&Xe&&Fe(k.firstChild);const oe=Di(on?O:k);for(;X=oe.nextNode();)Ui(X)||(X.content instanceof i&&uf(X.content),ji(X));if(on)return O;if(St){if(Pn)for(ce=De.call(k.ownerDocument);k.firstChild;)ce.appendChild(k.firstChild);else ce=k;return(b.shadowroot||b.shadowrootmode)&&(ce=Y.call(o,ce,!0)),ce}let we=ae?k.outerHTML:k.innerHTML;return ae&&u["!doctype"]&&k.ownerDocument&&k.ownerDocument.doctype&&k.ownerDocument.doctype.name&&fe(mi,k.ownerDocument.doctype.name)&&(we="<!DOCTYPE "+k.ownerDocument.doctype.name+`>
405
+ `+we),H&&In([be,Me,Te],Ke=>{we=Jt(we,Ke," ")}),F&&xn?F.createHTML(we):we},e.setConfig=function(){let O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ao(O),le=!0},e.clearConfig=function(){Et=null,le=!1},e.isValidAttribute=function(O,f,k){Et||Ao({});const L=te(O),X=te(f);return Vi(L,X,k)},e.addHook=function(O,f){typeof f=="function"&&(Q[O]=Q[O]||[],Zt(Q[O],f))},e.removeHook=function(O){if(Q[O])return si(Q[O])},e.removeHooks=function(O){Q[O]&&(Q[O]=[])},e.removeAllHooks=function(){Q={}},e}var gi=hi();class yi{get IsVisible(){return kt.isVisible()}}class Ad extends yi{constructor(){super()}async CreateAlertAsync(e){let n="info",o,r;return typeof e=="string"||Array.isArray(e)?o=Array.isArray(e)?e.join("<br />"):e:(n=e.icon??"info",r=e.title??"",o=Array.isArray(e.text)?e.text.join("<br />"):e.text),new Promise(i=>{kt.fire({allowEscapeKey:!1,allowOutsideClick:!1,icon:n,title:r,html:`<div style="max-height: 50vh; overflow: auto">${gi.sanitize(o)}</div>`}).then(()=>i(!0))})}async AlertAsync(e){return this.CreateAlertAsync({text:e,icon:"info"})}async AlertErrorAsync(e){return this.CreateAlertAsync({text:e,icon:"error"})}async AlertSuccessAsync(e){return this.CreateAlertAsync({text:e,icon:"success"})}}class Pd extends yi{async CreateConfirmAsync(e){return new Promise(n=>{kt.fire({showCancelButton:!0,allowEscapeKey:!1,allowOutsideClick:!1,icon:"question",title:e.title,html:gi.sanitize(e.text),confirmButtonText:e.confirmLabel??"confirmar",cancelButtonText:e.rejectLabel??"cancelar"}).then(o=>{n(o.isConfirmed===!0)})})}async ConfirmAsync(e){return this.CreateConfirmAsync({text:e})}}const xd=()=>new Ad,Ld=()=>new Pd;function Od(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}function bi(t,...e){if(!Od(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error(`Uint8Array expected of length ${e}, not of length=${t.length}`)}function vi(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function $d(t,e){bi(t);const n=e.outputLen;if(t.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const ko=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),Ve=(t,e)=>t<<32-e|t>>>e;new Uint8Array(new Uint32Array([287454020]).buffer)[0];function Bd(t){if(typeof t!="string")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}function wi(t){return typeof t=="string"&&(t=Bd(t)),bi(t),t}class Nd{clone(){return this._cloneInto()}}function Dd(t){const e=o=>t().update(wi(o)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function Md(t,e,n,o){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,n,o);const r=BigInt(32),i=BigInt(4294967295),c=Number(n>>r&i),a=Number(n&i),l=o?4:0,d=o?0:4;t.setUint32(e+l,c,o),t.setUint32(e+d,a,o)}const Rd=(t,e,n)=>t&e^~t&n,Ud=(t,e,n)=>t&e^t&n^e&n;class Vd extends Nd{constructor(e,n,o,r){super(),this.blockLen=e,this.outputLen=n,this.padOffset=o,this.isLE=r,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=ko(this.buffer)}update(e){vi(this);const{view:n,buffer:o,blockLen:r}=this;e=wi(e);const i=e.length;for(let c=0;c<i;){const a=Math.min(r-this.pos,i-c);if(a===r){const l=ko(e);for(;r<=i-c;c+=r)this.process(l,c);continue}o.set(e.subarray(c,c+a),this.pos),this.pos+=a,c+=a,this.pos===r&&(this.process(n,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){vi(this),$d(e,this),this.finished=!0;const{buffer:n,view:o,blockLen:r,isLE:i}=this;let{pos:c}=this;n[c++]=128,this.buffer.subarray(c).fill(0),this.padOffset>r-c&&(this.process(o,0),c=0);for(let h=c;h<r;h++)n[h]=0;Md(o,r-8,BigInt(this.length*8),i),this.process(o,0);const a=ko(e),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const d=l/4,m=this.get();if(d>m.length)throw new Error("_sha2: outputLen bigger than state");for(let h=0;h<d;h++)a.setUint32(4*h,m[h],i)}digest(){const{buffer:e,outputLen:n}=this;this.digestInto(e);const o=e.slice(0,n);return this.destroy(),o}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:n,buffer:o,length:r,finished:i,destroyed:c,pos:a}=this;return e.length=r,e.pos=a,e.finished=i,e.destroyed=c,r%n&&e.buffer.set(o),e}}const Hd=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),ot=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),rt=new Uint32Array(64);class jd extends Vd{constructor(){super(64,32,8,!1),this.A=ot[0]|0,this.B=ot[1]|0,this.C=ot[2]|0,this.D=ot[3]|0,this.E=ot[4]|0,this.F=ot[5]|0,this.G=ot[6]|0,this.H=ot[7]|0}get(){const{A:e,B:n,C:o,D:r,E:i,F:c,G:a,H:l}=this;return[e,n,o,r,i,c,a,l]}set(e,n,o,r,i,c,a,l){this.A=e|0,this.B=n|0,this.C=o|0,this.D=r|0,this.E=i|0,this.F=c|0,this.G=a|0,this.H=l|0}process(e,n){for(let h=0;h<16;h++,n+=4)rt[h]=e.getUint32(n,!1);for(let h=16;h<64;h++){const v=rt[h-15],C=rt[h-2],T=Ve(v,7)^Ve(v,18)^v>>>3,$=Ve(C,17)^Ve(C,19)^C>>>10;rt[h]=$+rt[h-7]+T+rt[h-16]|0}let{A:o,B:r,C:i,D:c,E:a,F:l,G:d,H:m}=this;for(let h=0;h<64;h++){const v=Ve(a,6)^Ve(a,11)^Ve(a,25),C=m+v+Rd(a,l,d)+Hd[h]+rt[h]|0,$=(Ve(o,2)^Ve(o,13)^Ve(o,22))+Ud(o,r,i)|0;m=d,d=l,l=a,a=c+C|0,c=i,i=r,r=o,o=C+$|0}o=o+this.A|0,r=r+this.B|0,i=i+this.C|0,c=c+this.D|0,a=a+this.E|0,l=l+this.F|0,d=d+this.G|0,m=m+this.H|0,this.set(o,r,i,c,a,l,d,m)}roundClean(){rt.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const Fd=Dd(()=>new jd);class nn extends Error{}nn.prototype.name="InvalidTokenError";function Kd(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,n)=>{let o=n.charCodeAt(0).toString(16).toUpperCase();return o.length<2&&(o="0"+o),"%"+o}))}function zd(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return Kd(e)}catch{return atob(e)}}function So(t,e){if(typeof t!="string")throw new nn("Invalid token specified: must be a string");e||(e={});const n=e.header===!0?0:1,o=t.split(".")[n];if(typeof o!="string")throw new nn(`Invalid token specified: missing part #${n+1}`);let r;try{r=zd(o)}catch(i){throw new nn(`Invalid token specified: invalid base64 for part #${n+1} (${i.message})`)}try{return JSON.parse(r)}catch(i){throw new nn(`Invalid token specified: invalid json for part #${n+1} (${i.message})`)}}if(typeof Promise>"u")throw Error("Keycloak requires an environment that supports Promises. Make sure that you include the appropriate polyfill.");function _i(t){if(!(this instanceof _i))throw new Error("The 'Keycloak' constructor must be invoked with 'new'.");var e=this,n,o=[],r,i={enable:!0,callbackList:[],interval:5};e.didInitialize=!1;for(var c=document.getElementsByTagName("script"),a=0;a<c.length;a++)(c[a].src.indexOf("keycloak.js")!==-1||c[a].src.indexOf("keycloak.min.js")!==-1)&&c[a].src.indexOf("version=")!==-1&&(e.iframeVersion=c[a].src.substring(c[a].src.indexOf("version=")+8).split("&")[0]);var l=!0,d=xe(console.info),m=xe(console.warn);e.init=function(u){if(e.didInitialize)throw new Error("A 'Keycloak' instance can only be initialized once.");e.didInitialize=!0,e.authenticated=!1,r=mt();var p=["default","cordova","cordova-native"];if(u&&p.indexOf(u.adapter)>-1?n=Ye(u.adapter):u&&typeof u.adapter=="object"?n=u.adapter:window.Cordova||window.cordova?n=Ye("cordova"):n=Ye(),u){if(typeof u.useNonce<"u"&&(l=u.useNonce),typeof u.checkLoginIframe<"u"&&(i.enable=u.checkLoginIframe),u.checkLoginIframeInterval&&(i.interval=u.checkLoginIframeInterval),u.onLoad==="login-required"&&(e.loginRequired=!0),u.responseMode)if(u.responseMode==="query"||u.responseMode==="fragment")e.responseMode=u.responseMode;else throw"Invalid value for responseMode";if(u.flow){switch(u.flow){case"standard":e.responseType="code";break;case"implicit":e.responseType="id_token token";break;case"hybrid":e.responseType="code id_token token";break;default:throw"Invalid value for flow"}e.flow=u.flow}if(u.timeSkew!=null&&(e.timeSkew=u.timeSkew),u.redirectUri&&(e.redirectUri=u.redirectUri),u.silentCheckSsoRedirectUri&&(e.silentCheckSsoRedirectUri=u.silentCheckSsoRedirectUri),typeof u.silentCheckSsoFallback=="boolean"?e.silentCheckSsoFallback=u.silentCheckSsoFallback:e.silentCheckSsoFallback=!0,typeof u.pkceMethod<"u"){if(u.pkceMethod!=="S256"&&u.pkceMethod!==!1)throw new TypeError(`Invalid value for pkceMethod', expected 'S256' or false but got ${u.pkceMethod}.`);e.pkceMethod=u.pkceMethod}else e.pkceMethod="S256";typeof u.enableLogging=="boolean"?e.enableLogging=u.enableLogging:e.enableLogging=!1,u.logoutMethod==="POST"?e.logoutMethod="POST":e.logoutMethod="GET",typeof u.scope=="string"&&(e.scope=u.scope),typeof u.acrValues=="string"&&(e.acrValues=u.acrValues),typeof u.messageReceiveTimeout=="number"&&u.messageReceiveTimeout>0?e.messageReceiveTimeout=u.messageReceiveTimeout:e.messageReceiveTimeout=1e4}e.responseMode||(e.responseMode="fragment"),e.responseType||(e.responseType="code",e.flow="standard");var b=Y(),S=Y();S.promise.then(function(){e.onReady&&e.onReady(e.authenticated),b.setSuccess(e.authenticated)}).catch(function(P){b.setError(P)});var y=B();function E(){var P=function(H){H||(N.prompt="none"),u&&u.locale&&(N.locale=u.locale),e.login(N).then(function(){S.setSuccess()}).catch(function(ve){S.setError(ve)})},A=function(){var H=document.createElement("iframe"),ve=e.createLoginUrl({prompt:"none",redirectUri:e.silentCheckSsoRedirectUri});H.setAttribute("src",ve),H.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),H.setAttribute("title","keycloak-silent-check-sso"),H.style.display="none",document.body.appendChild(H);var ae=function(le){if(!(le.origin!==window.location.origin||H.contentWindow!==le.source)){var Xe=ee(le.data);I(Xe,S),document.body.removeChild(H),window.removeEventListener("message",ae)}};window.addEventListener("message",ae)},N={};switch(u.onLoad){case"check-sso":i.enable?be().then(function(){Te().then(function(H){H?S.setSuccess():e.silentCheckSsoRedirectUri?A():P(!1)}).catch(function(H){S.setError(H)})}):e.silentCheckSsoRedirectUri?A():P(!1);break;case"login-required":P(!0);break;default:throw"Invalid value for onLoad"}}function w(){var P=ee(window.location.href);if(P&&window.history.replaceState(window.history.state,null,P.newUrl),P&&P.valid)return be().then(function(){I(P,S)}).catch(function(A){S.setError(A)});u?u.token&&u.refreshToken?(J(u.token,u.refreshToken,u.idToken),i.enable?be().then(function(){Te().then(function(A){A?(e.onAuthSuccess&&e.onAuthSuccess(),S.setSuccess(),Me()):S.setSuccess()}).catch(function(A){S.setError(A)})}):e.updateToken(-1).then(function(){e.onAuthSuccess&&e.onAuthSuccess(),S.setSuccess()}).catch(function(A){e.onAuthError&&e.onAuthError(),u.onLoad?E():S.setError(A)})):u.onLoad?E():S.setSuccess():S.setSuccess()}function _(){var P=Y(),A=function(){(document.readyState==="interactive"||document.readyState==="complete")&&(document.removeEventListener("readystatechange",A),P.setSuccess())};return document.addEventListener("readystatechange",A),A(),P.promise}return y.then(function(){_().then(it).then(w).catch(function(P){b.setError(P)})}),y.catch(function(P){b.setError(P)}),b.promise},e.login=function(u){return n.login(u)};function h(u){var p=null,b=window.crypto||window.msCrypto;if(b&&b.getRandomValues&&window.Uint8Array)return p=new Uint8Array(u),b.getRandomValues(p),p;p=new Array(u);for(var S=0;S<p.length;S++)p[S]=Math.floor(256*Math.random());return p}function v(u){return C(u,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function C(u,p){for(var b=h(u),S=new Array(u),y=0;y<u;y++)S[y]=p.charCodeAt(b[y]%p.length);return String.fromCharCode.apply(null,S)}function T(u,p){if(u!=="S256")throw new TypeError(`Invalid value for 'pkceMethod', expected 'S256' but got '${u}'.`);const b=Fd(p);return Wd(b).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}function $(u){var p={id_token:{acr:u}};return JSON.stringify(p)}e.createLoginUrl=function(u){var p=ye(),b=ye(),S=n.redirectUri(u),y={state:p,nonce:b,redirectUri:encodeURIComponent(S),loginOptions:u};u&&u.prompt&&(y.prompt=u.prompt);var E;u&&u.action=="register"?E=e.endpoints.register():E=e.endpoints.authorize();var w=u&&u.scope||e.scope;w?w.indexOf("openid")===-1&&(w="openid "+w):w="openid";var _=E+"?client_id="+encodeURIComponent(e.clientId)+"&redirect_uri="+encodeURIComponent(S)+"&state="+encodeURIComponent(p)+"&response_mode="+encodeURIComponent(e.responseMode)+"&response_type="+encodeURIComponent(e.responseType)+"&scope="+encodeURIComponent(w);if(l&&(_=_+"&nonce="+encodeURIComponent(b)),u&&u.prompt&&(_+="&prompt="+encodeURIComponent(u.prompt)),u&&u.maxAge&&(_+="&max_age="+encodeURIComponent(u.maxAge)),u&&u.loginHint&&(_+="&login_hint="+encodeURIComponent(u.loginHint)),u&&u.idpHint&&(_+="&kc_idp_hint="+encodeURIComponent(u.idpHint)),u&&u.action&&u.action!="register"&&(_+="&kc_action="+encodeURIComponent(u.action)),u&&u.locale&&(_+="&ui_locales="+encodeURIComponent(u.locale)),u&&u.acr){var P=$(u.acr);_+="&claims="+encodeURIComponent(P)}if((u&&u.acrValues||e.acrValues)&&(_+="&acr_values="+encodeURIComponent(u.acrValues||e.acrValues)),e.pkceMethod){var A=v(96);y.pkceCodeVerifier=A;var N=T(e.pkceMethod,A);_+="&code_challenge="+N,_+="&code_challenge_method="+e.pkceMethod}return r.add(y),_},e.logout=function(u){return n.logout(u)},e.createLogoutUrl=function(u){if(((u==null?void 0:u.logoutMethod)??e.logoutMethod)==="POST")return e.endpoints.logout();var b=e.endpoints.logout()+"?client_id="+encodeURIComponent(e.clientId)+"&post_logout_redirect_uri="+encodeURIComponent(n.redirectUri(u,!1));return e.idToken&&(b+="&id_token_hint="+encodeURIComponent(e.idToken)),b},e.register=function(u){return n.register(u)},e.createRegisterUrl=function(u){return u||(u={}),u.action="register",e.createLoginUrl(u)},e.createAccountUrl=function(u){var p=x(),b=void 0;return typeof p<"u"&&(b=p+"/account?referrer="+encodeURIComponent(e.clientId)+"&referrer_uri="+encodeURIComponent(n.redirectUri(u))),b},e.accountManagement=function(){return n.accountManagement()},e.hasRealmRole=function(u){var p=e.realmAccess;return!!p&&p.roles.indexOf(u)>=0},e.hasResourceRole=function(u,p){if(!e.resourceAccess)return!1;var b=e.resourceAccess[p||e.clientId];return!!b&&b.roles.indexOf(u)>=0},e.loadUserProfile=function(){var u=x()+"/account",p=new XMLHttpRequest;p.open("GET",u,!0),p.setRequestHeader("Accept","application/json"),p.setRequestHeader("Authorization","bearer "+e.token);var b=Y();return p.onreadystatechange=function(){p.readyState==4&&(p.status==200?(e.profile=JSON.parse(p.responseText),b.setSuccess(e.profile)):b.setError())},p.send(),b.promise},e.loadUserInfo=function(){var u=e.endpoints.userinfo(),p=new XMLHttpRequest;p.open("GET",u,!0),p.setRequestHeader("Accept","application/json"),p.setRequestHeader("Authorization","bearer "+e.token);var b=Y();return p.onreadystatechange=function(){p.readyState==4&&(p.status==200?(e.userInfo=JSON.parse(p.responseText),b.setSuccess(e.userInfo)):b.setError())},p.send(),b.promise},e.isTokenExpired=function(u){if(!e.tokenParsed||!e.refreshToken&&e.flow!="implicit")throw"Not authenticated";if(e.timeSkew==null)return d("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;var p=e.tokenParsed.exp-Math.ceil(new Date().getTime()/1e3)+e.timeSkew;if(u){if(isNaN(u))throw"Invalid minValidity";p-=u}return p<0},e.updateToken=function(u){var p=Y();if(!e.refreshToken)return p.setError(),p.promise;u=u||5;var b=function(){var y=!1;if(u==-1?(y=!0,d("[KEYCLOAK] Refreshing token: forced refresh")):(!e.tokenParsed||e.isTokenExpired(u))&&(y=!0,d("[KEYCLOAK] Refreshing token: token expired")),!y)p.setSuccess(!1);else{var E="grant_type=refresh_token&refresh_token="+e.refreshToken,w=e.endpoints.token();if(o.push(p),o.length==1){var _=new XMLHttpRequest;_.open("POST",w,!0),_.setRequestHeader("Content-type","application/x-www-form-urlencoded"),_.withCredentials=!0,E+="&client_id="+encodeURIComponent(e.clientId);var P=new Date().getTime();_.onreadystatechange=function(){if(_.readyState==4)if(_.status==200){d("[KEYCLOAK] Token refreshed"),P=(P+new Date().getTime())/2;var A=JSON.parse(_.responseText);J(A.access_token,A.refresh_token,A.id_token,P),e.onAuthRefreshSuccess&&e.onAuthRefreshSuccess();for(var N=o.pop();N!=null;N=o.pop())N.setSuccess(!0)}else{m("[KEYCLOAK] Failed to refresh token"),_.status==400&&e.clearToken(),e.onAuthRefreshError&&e.onAuthRefreshError();for(var N=o.pop();N!=null;N=o.pop())N.setError(!0)}},_.send(E)}}};if(i.enable){var S=Te();S.then(function(){b()}).catch(function(y){p.setError(y)})}else b();return p.promise},e.clearToken=function(){e.token&&(J(null,null,null),e.onAuthLogout&&e.onAuthLogout(),e.loginRequired&&e.login())};function x(){if(typeof e.authServerUrl<"u")return e.authServerUrl.charAt(e.authServerUrl.length-1)=="/"?e.authServerUrl+"realms/"+encodeURIComponent(e.realm):e.authServerUrl+"/realms/"+encodeURIComponent(e.realm)}function R(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}function I(u,p){var b=u.code,S=u.error,y=u.prompt,E=new Date().getTime();if(u.kc_action_status&&e.onActionUpdate&&e.onActionUpdate(u.kc_action_status,u.kc_action),S){if(y!="none")if(u.error_description&&u.error_description==="authentication_expired")e.login(u.loginOptions);else{var w={error:S,error_description:u.error_description};e.onAuthError&&e.onAuthError(w),p&&p.setError(w)}else p&&p.setSuccess();return}else e.flow!="standard"&&(u.access_token||u.id_token)&&N(u.access_token,null,u.id_token,!0);if(e.flow!="implicit"&&b){var _="code="+b+"&grant_type=authorization_code",P=e.endpoints.token(),A=new XMLHttpRequest;A.open("POST",P,!0),A.setRequestHeader("Content-type","application/x-www-form-urlencoded"),_+="&client_id="+encodeURIComponent(e.clientId),_+="&redirect_uri="+u.redirectUri,u.pkceCodeVerifier&&(_+="&code_verifier="+u.pkceCodeVerifier),A.withCredentials=!0,A.onreadystatechange=function(){if(A.readyState==4)if(A.status==200){var H=JSON.parse(A.responseText);N(H.access_token,H.refresh_token,H.id_token,e.flow==="standard"),Me()}else e.onAuthError&&e.onAuthError(),p&&p.setError()},A.send(_)}function N(H,ve,ae,le){E=(E+new Date().getTime())/2,J(H,ve,ae,E),l&&e.idTokenParsed&&e.idTokenParsed.nonce!=u.storedNonce?(d("[KEYCLOAK] Invalid nonce, clearing token"),e.clearToken(),p&&p.setError()):le&&(e.onAuthSuccess&&e.onAuthSuccess(),p&&p.setSuccess())}}function B(u){var p=Y(),b;t?typeof t=="string"&&(b=t):b="keycloak.json";function S(A){A?e.endpoints={authorize:function(){return A.authorization_endpoint},token:function(){return A.token_endpoint},logout:function(){if(!A.end_session_endpoint)throw"Not supported by the OIDC server";return A.end_session_endpoint},checkSessionIframe:function(){if(!A.check_session_iframe)throw"Not supported by the OIDC server";return A.check_session_iframe},register:function(){throw'Redirection to "Register user" page not supported in standard OIDC mode'},userinfo:function(){if(!A.userinfo_endpoint)throw"Not supported by the OIDC server";return A.userinfo_endpoint}}:e.endpoints={authorize:function(){return x()+"/protocol/openid-connect/auth"},token:function(){return x()+"/protocol/openid-connect/token"},logout:function(){return x()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){var N=x()+"/protocol/openid-connect/login-status-iframe.html";return e.iframeVersion&&(N=N+"?version="+e.iframeVersion),N},thirdPartyCookiesIframe:function(){var N=x()+"/protocol/openid-connect/3p-cookies/step1.html";return e.iframeVersion&&(N=N+"?version="+e.iframeVersion),N},register:function(){return x()+"/protocol/openid-connect/registrations"},userinfo:function(){return x()+"/protocol/openid-connect/userinfo"}}}if(b){var y=new XMLHttpRequest;y.open("GET",b,!0),y.setRequestHeader("Accept","application/json"),y.onreadystatechange=function(){if(y.readyState==4)if(y.status==200||F(y)){var A=JSON.parse(y.responseText);e.authServerUrl=A["auth-server-url"],e.realm=A.realm,e.clientId=A.resource,S(null),p.setSuccess()}else p.setError()},y.send()}else{if(!t.clientId)throw"clientId missing";e.clientId=t.clientId;var E=t.oidcProvider;if(E)if(typeof E=="string"){var P;E.charAt(E.length-1)=="/"?P=E+".well-known/openid-configuration":P=E+"/.well-known/openid-configuration";var y=new XMLHttpRequest;y.open("GET",P,!0),y.setRequestHeader("Accept","application/json"),y.onreadystatechange=function(){if(y.readyState==4)if(y.status==200||F(y)){var N=JSON.parse(y.responseText);S(N),p.setSuccess()}else p.setError()},y.send()}else S(E),p.setSuccess();else{if(!t.url){for(var w=document.getElementsByTagName("script"),_=0;_<w.length;_++)if(w[_].src.match(/.*keycloak\.js/)){t.url=w[_].src.substr(0,w[_].src.indexOf("/js/keycloak.js"));break}}if(!t.realm)throw"realm missing";e.authServerUrl=t.url,e.realm=t.realm,S(null),p.setSuccess()}}return p.promise}function F(u){return u.status==0&&u.responseText&&u.responseURL.startsWith("file:")}function J(u,p,b,S){if(e.tokenTimeoutHandle&&(clearTimeout(e.tokenTimeoutHandle),e.tokenTimeoutHandle=null),p?(e.refreshToken=p,e.refreshTokenParsed=So(p)):(delete e.refreshToken,delete e.refreshTokenParsed),b?(e.idToken=b,e.idTokenParsed=So(b)):(delete e.idToken,delete e.idTokenParsed),u){if(e.token=u,e.tokenParsed=So(u),e.sessionId=e.tokenParsed.sid,e.authenticated=!0,e.subject=e.tokenParsed.sub,e.realmAccess=e.tokenParsed.realm_access,e.resourceAccess=e.tokenParsed.resource_access,S&&(e.timeSkew=Math.floor(S/1e3)-e.tokenParsed.iat),e.timeSkew!=null&&(d("[KEYCLOAK] Estimated time difference between browser and server is "+e.timeSkew+" seconds"),e.onTokenExpired)){var y=(e.tokenParsed.exp-new Date().getTime()/1e3+e.timeSkew)*1e3;d("[KEYCLOAK] Token expires in "+Math.round(y/1e3)+" s"),y<=0?e.onTokenExpired():e.tokenTimeoutHandle=setTimeout(e.onTokenExpired,y)}}else delete e.token,delete e.tokenParsed,delete e.subject,delete e.realmAccess,delete e.resourceAccess,e.authenticated=!1}function ye(){var u="0123456789abcdef",p=C(36,u).split("");p[14]="4",p[19]=u.substr(p[19]&3|8,1),p[8]=p[13]=p[18]=p[23]="-";var b=p.join("");return b}function ee(u){var p=De(u);if(p){var b=r.get(p.state);return b&&(p.valid=!0,p.redirectUri=b.redirectUri,p.storedNonce=b.nonce,p.prompt=b.prompt,p.pkceCodeVerifier=b.pkceCodeVerifier,p.loginOptions=b.loginOptions),p}}function De(u){var p;switch(e.flow){case"standard":p=["code","state","session_state","kc_action_status","kc_action","iss"];break;case"implicit":p=["access_token","token_type","id_token","state","session_state","expires_in","kc_action_status","kc_action","iss"];break;case"hybrid":p=["access_token","token_type","id_token","code","state","session_state","expires_in","kc_action_status","kc_action","iss"];break}p.push("error"),p.push("error_description"),p.push("error_uri");var b=u.indexOf("?"),S=u.indexOf("#"),y,E;if(e.responseMode==="query"&&b!==-1?(y=u.substring(0,b),E=Ie(u.substring(b+1,S!==-1?S:u.length),p),E.paramsString!==""&&(y+="?"+E.paramsString),S!==-1&&(y+=u.substring(S))):e.responseMode==="fragment"&&S!==-1&&(y=u.substring(0,S),E=Ie(u.substring(S+1),p),E.paramsString!==""&&(y+="#"+E.paramsString)),E&&E.oauthParams){if(e.flow==="standard"||e.flow==="hybrid"){if((E.oauthParams.code||E.oauthParams.error)&&E.oauthParams.state)return E.oauthParams.newUrl=y,E.oauthParams}else if(e.flow==="implicit"&&(E.oauthParams.access_token||E.oauthParams.error)&&E.oauthParams.state)return E.oauthParams.newUrl=y,E.oauthParams}}function Ie(u,p){for(var b=u.split("&"),S={paramsString:"",oauthParams:{}},y=0;y<b.length;y++){var E=b[y].indexOf("="),w=b[y].slice(0,E);p.indexOf(w)!==-1?S.oauthParams[w]=b[y].slice(E+1):(S.paramsString!==""&&(S.paramsString+="&"),S.paramsString+=b[y])}return S}function Y(){var u={setSuccess:function(p){u.resolve(p)},setError:function(p){u.reject(p)}};return u.promise=new Promise(function(p,b){u.resolve=p,u.reject=b}),u}function Q(u,p,b){var S=null,y=new Promise(function(E,w){S=setTimeout(function(){w({error:b})},p)});return Promise.race([u,y]).finally(function(){clearTimeout(S)})}function be(){var u=Y();if(!i.enable||i.iframe)return u.setSuccess(),u.promise;var p=document.createElement("iframe");i.iframe=p,p.onload=function(){var y=e.endpoints.authorize();y.charAt(0)==="/"?i.iframeOrigin=R():i.iframeOrigin=y.substring(0,y.indexOf("/",8)),u.setSuccess()};var b=e.endpoints.checkSessionIframe();p.setAttribute("src",b),p.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),p.setAttribute("title","keycloak-session-iframe"),p.style.display="none",document.body.appendChild(p);var S=function(y){if(!(y.origin!==i.iframeOrigin||i.iframe.contentWindow!==y.source)&&(y.data=="unchanged"||y.data=="changed"||y.data=="error")){y.data!="unchanged"&&e.clearToken();for(var E=i.callbackList.splice(0,i.callbackList.length),w=E.length-1;w>=0;--w){var _=E[w];y.data=="error"?_.setError():_.setSuccess(y.data=="unchanged")}}};return window.addEventListener("message",S,!1),u.promise}function Me(){i.enable&&e.token&&setTimeout(function(){Te().then(function(u){u&&Me()})},i.interval*1e3)}function Te(){var u=Y();if(i.iframe&&i.iframeOrigin){var p=e.clientId+" "+(e.sessionId?e.sessionId:"");i.callbackList.push(u);var b=i.iframeOrigin;i.callbackList.length==1&&i.iframe.contentWindow.postMessage(p,b)}else u.setSuccess();return u.promise}function it(){var u=Y();if(i.enable||e.silentCheckSsoRedirectUri){var p=document.createElement("iframe");p.setAttribute("src",e.endpoints.thirdPartyCookiesIframe()),p.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),p.setAttribute("title","keycloak-3p-check-iframe"),p.style.display="none",document.body.appendChild(p);var b=function(S){p.contentWindow===S.source&&(S.data!=="supported"&&S.data!=="unsupported"||(S.data==="unsupported"&&(m(`[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:
406
406
 
407
407
  - It is not possible to retrieve tokens without redirecting to the Keycloak server (a.k.a. no support for silent authentication).
408
408
  - It is not possible to automatically detect changes to the session status (such as the user logging out in another tab).
409
409
 
410
- For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_modern_browsers`),i.enable=!1,e.silentCheckSsoFallback&&(e.silentCheckSsoRedirectUri=!1)),document.body.removeChild(p),window.removeEventListener("message",b),u.setSuccess()))};window.addEventListener("message",b,!1)}else u.setSuccess();return Q(u.promise,e.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function Ye(u){if(!u||u=="default")return{login:function(w){return window.location.assign(e.createLoginUrl(w)),Y().promise},logout:async function(w){if(((w==null?void 0:w.logoutMethod)??e.logoutMethod)==="GET"){window.location.replace(e.createLogoutUrl(w));return}const A=e.createLogoutUrl(w),P=await fetch(A,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({id_token_hint:e.idToken,client_id:e.clientId,post_logout_redirect_uri:n.redirectUri(w,!1)})});if(P.redirected){window.location.href=P.url;return}if(P.ok){window.location.reload();return}throw new Error("Logout failed, request returned an error code.")},register:function(w){return window.location.assign(e.createRegisterUrl(w)),Y().promise},accountManagement:function(){var w=e.createAccountUrl();if(typeof w<"u")window.location.href=w;else throw"Not supported by the OIDC server";return Y().promise},redirectUri:function(w,_){return w&&w.redirectUri?w.redirectUri:e.redirectUri?e.redirectUri:location.href}};if(u=="cordova"){i.enable=!1;var p=function(w,_,A){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(w,_,A):window.open(w,_,A)},b=function(w){return w&&w.cordovaOptions?Object.keys(w.cordovaOptions).reduce(function(_,A){return _[A]=w.cordovaOptions[A],_},{}):{}},S=function(w){return Object.keys(w).reduce(function(_,A){return _.push(A+"="+w[A]),_},[]).join(",")},y=function(w){var _=b(w);return _.location="no",w&&w.prompt=="none"&&(_.hidden="yes"),S(_)},E=function(){return e.redirectUri||"http://localhost"};return{login:function(w){var _=Y(),A=y(w),P=e.createLoginUrl(w),N=p(P,"_blank",A),H=!1,ve=!1,ae=function(){ve=!0,N.close()};return N.addEventListener("loadstart",function(le){if(le.url.indexOf(E())==0){var Xe=ee(le.url);I(Xe,_),ae(),H=!0}}),N.addEventListener("loaderror",function(le){if(!H)if(le.url.indexOf(E())==0){var Xe=ee(le.url);I(Xe,_),ae(),H=!0}else _.setError(),ae()}),N.addEventListener("exit",function(le){ve||_.setError({reason:"closed_by_user"})}),_.promise},logout:function(w){var _=Y(),A=e.createLogoutUrl(w),P=p(A,"_blank","location=no,hidden=yes,clearcache=yes"),N;return P.addEventListener("loadstart",function(H){H.url.indexOf(E())==0&&P.close()}),P.addEventListener("loaderror",function(H){H.url.indexOf(E())==0||(N=!0),P.close()}),P.addEventListener("exit",function(H){N?_.setError():(e.clearToken(),_.setSuccess())}),_.promise},register:function(w){var _=Y(),A=e.createRegisterUrl(),P=y(w),N=p(A,"_blank",P);return N.addEventListener("loadstart",function(H){if(H.url.indexOf(E())==0){N.close();var ve=ee(H.url);I(ve,_)}}),_.promise},accountManagement:function(){var w=e.createAccountUrl();if(typeof w<"u"){var _=p(w,"_blank","location=no");_.addEventListener("loadstart",function(A){A.url.indexOf(E())==0&&_.close()})}else throw"Not supported by the OIDC server"},redirectUri:function(w){return E()}}}if(u=="cordova-native")return i.enable=!1,{login:function(w){var _=Y(),A=e.createLoginUrl(w);return universalLinks.subscribe("keycloak",function(P){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var N=ee(P.url);I(N,_)}),window.cordova.plugins.browsertab.openUrl(A),_.promise},logout:function(w){var _=Y(),A=e.createLogoutUrl(w);return universalLinks.subscribe("keycloak",function(P){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),e.clearToken(),_.setSuccess()}),window.cordova.plugins.browsertab.openUrl(A),_.promise},register:function(w){var _=Y(),A=e.createRegisterUrl(w);return universalLinks.subscribe("keycloak",function(P){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var N=ee(P.url);I(N,_)}),window.cordova.plugins.browsertab.openUrl(A),_.promise},accountManagement:function(){var w=e.createAccountUrl();if(typeof w<"u")window.cordova.plugins.browsertab.openUrl(w);else throw"Not supported by the OIDC server"},redirectUri:function(w){return w&&w.redirectUri?w.redirectUri:e.redirectUri?e.redirectUri:"http://localhost"}};throw"invalid adapter type: "+u}var Ve=function(){if(!(this instanceof Ve))return new Ve;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");var u=this;function p(){for(var b=new Date().getTime(),S=0;S<localStorage.length;S++){var y=localStorage.key(S);if(y&&y.indexOf("kc-callback-")==0){var E=localStorage.getItem(y);if(E)try{var w=JSON.parse(E).expires;(!w||w<b)&&localStorage.removeItem(y)}catch{localStorage.removeItem(y)}}}}u.get=function(b){if(b){var S="kc-callback-"+b,y=localStorage.getItem(S);return y&&(localStorage.removeItem(S),y=JSON.parse(y)),p(),y}},u.add=function(b){p();var S="kc-callback-"+b.state;b.expires=new Date().getTime()+60*60*1e3,localStorage.setItem(S,JSON.stringify(b))}},He=function(){if(!(this instanceof He))return new He;var u=this;u.get=function(y){if(y){var E=b("kc-callback-"+y);if(S("kc-callback-"+y,"",p(-100)),E)return JSON.parse(E)}},u.add=function(y){S("kc-callback-"+y.state,JSON.stringify(y),p(60))},u.removeItem=function(y){S(y,"",p(-100))};var p=function(y){var E=new Date;return E.setTime(E.getTime()+y*60*1e3),E},b=function(y){for(var E=y+"=",w=document.cookie.split(";"),_=0;_<w.length;_++){for(var A=w[_];A.charAt(0)==" ";)A=A.substring(1);if(A.indexOf(E)==0)return A.substring(E.length,A.length)}return""},S=function(y,E,w){var _=y+"="+E+"; expires="+w.toUTCString()+"; ";document.cookie=_}};function mt(){try{return new Ve}catch{}return new He}function xe(u){return function(){e.enableLogging&&u.apply(console,Array.prototype.slice.call(arguments))}}}function Wd(t){const e=String.fromCodePoint(...t);return btoa(e)}class Gd{constructor(e){Ke(this,"oidc");Ke(this,"isAuthenticated",!1);this.oidc=new _i(e)}async InitAsync(e={}){return await this.oidc.init(e).then(async n=>(this.isAuthenticated=n,n)).catch(n=>(console.info("Ocorreu um erro na inicialização. Verifique o console para mais detalhes."),console.error(n),!1))}}let ki;function qd(t){ki=new Gd(t)}const Yd=()=>ki;class Xd{constructor(e=null){Ke(this,"errors",[]);Ke(this,"_value",null);Ke(this,"_httpStatusCode");this._value=e,this._httpStatusCode=200}get value(){return this._value}set value(e){this._value=e}get hasSuccess(){return!this.hasError}get hasError(){return this.errors.length>0}get httpStatusCode(){return this._httpStatusCode}set httpStatusCode(e){this._httpStatusCode=e}WithError(e){this.errors.push(e),this._httpStatusCode===200&&(this._httpStatusCode=400)}WithErrors(e){e.forEach(n=>this.WithError(n))}}class Pn{static get IsTouch(){return window.matchMedia("(pointer: coarse)").matches}static GetMaxZindex(e=[]){let n="body > *:not(script):not(style)";for(const r of e)n+=`, ${r}`;const o=Math.max(...Array.from(document.querySelectorAll(n)).map(r=>{const i=getComputedStyle(r).zIndex;return+i==+i?+i:0}));return o>=100?o:100}static AjustarFuso(e){const n=e.getTimezoneOffset()/60;e.setHours(e.getHours()-n)}static Mask(e,n){let o=0,r=e.toString();return n.replace(/#/g,()=>r[o++]||"")}static MaskCpf(e){return Pn.Mask(e.padStart(11,"0"),"###.###.###-##")}static MaskCnpj(e){return Pn.Mask(e.padStart(14,"0"),"##.###.###/####-##")}static async DelayAsync(e){return new Promise(n=>setTimeout(n,e))}}function Zd(){document.documentElement.classList.add("app-mounted")}function Si(){st.SetInitialTheme()}function Jd(){st.Toggle()}function Qd(){st.EnableDarkMode()}function ef(){st.EnableLightMode()}function tf(){st.ClearStoredTheme()}Si(),U.AppResult=Xd,U.ClearStoredTheme=tf,U.ConfigAuth=qd,U.EnableDarkMode=Qd,U.EnableLightMode=ef,U.RemovePreloader=Zd,U.SetInitialTheme=Si,U.SfButton=ys,U.SfContent=us,U.SfDrawer=ks,U.SfIcon=ln,U.SfLayout=ns,U.SfMessage=Cs,U.SfNavMenu=vl,U.SfTabNavigation=ps,U.SfTooltip=Nn,U.ToggleTheme=Jd,U.UseAlertService=xd,U.UseAuth=Yd,U.UseConfirmService=Ld,U.UseNavMenuService=Bn,U.Utilities=Pn,Object.defineProperty(U,Symbol.toStringTag,{value:"Module"})});
410
+ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_modern_browsers`),i.enable=!1,e.silentCheckSsoFallback&&(e.silentCheckSsoRedirectUri=!1)),document.body.removeChild(p),window.removeEventListener("message",b),u.setSuccess()))};window.addEventListener("message",b,!1)}else u.setSuccess();return Q(u.promise,e.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function Ye(u){if(!u||u=="default")return{login:function(w){return window.location.assign(e.createLoginUrl(w)),Y().promise},logout:async function(w){if(((w==null?void 0:w.logoutMethod)??e.logoutMethod)==="GET"){window.location.replace(e.createLogoutUrl(w));return}const P=e.createLogoutUrl(w),A=await fetch(P,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({id_token_hint:e.idToken,client_id:e.clientId,post_logout_redirect_uri:n.redirectUri(w,!1)})});if(A.redirected){window.location.href=A.url;return}if(A.ok){window.location.reload();return}throw new Error("Logout failed, request returned an error code.")},register:function(w){return window.location.assign(e.createRegisterUrl(w)),Y().promise},accountManagement:function(){var w=e.createAccountUrl();if(typeof w<"u")window.location.href=w;else throw"Not supported by the OIDC server";return Y().promise},redirectUri:function(w,_){return w&&w.redirectUri?w.redirectUri:e.redirectUri?e.redirectUri:location.href}};if(u=="cordova"){i.enable=!1;var p=function(w,_,P){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(w,_,P):window.open(w,_,P)},b=function(w){return w&&w.cordovaOptions?Object.keys(w.cordovaOptions).reduce(function(_,P){return _[P]=w.cordovaOptions[P],_},{}):{}},S=function(w){return Object.keys(w).reduce(function(_,P){return _.push(P+"="+w[P]),_},[]).join(",")},y=function(w){var _=b(w);return _.location="no",w&&w.prompt=="none"&&(_.hidden="yes"),S(_)},E=function(){return e.redirectUri||"http://localhost"};return{login:function(w){var _=Y(),P=y(w),A=e.createLoginUrl(w),N=p(A,"_blank",P),H=!1,ve=!1,ae=function(){ve=!0,N.close()};return N.addEventListener("loadstart",function(le){if(le.url.indexOf(E())==0){var Xe=ee(le.url);I(Xe,_),ae(),H=!0}}),N.addEventListener("loaderror",function(le){if(!H)if(le.url.indexOf(E())==0){var Xe=ee(le.url);I(Xe,_),ae(),H=!0}else _.setError(),ae()}),N.addEventListener("exit",function(le){ve||_.setError({reason:"closed_by_user"})}),_.promise},logout:function(w){var _=Y(),P=e.createLogoutUrl(w),A=p(P,"_blank","location=no,hidden=yes,clearcache=yes"),N;return A.addEventListener("loadstart",function(H){H.url.indexOf(E())==0&&A.close()}),A.addEventListener("loaderror",function(H){H.url.indexOf(E())==0||(N=!0),A.close()}),A.addEventListener("exit",function(H){N?_.setError():(e.clearToken(),_.setSuccess())}),_.promise},register:function(w){var _=Y(),P=e.createRegisterUrl(),A=y(w),N=p(P,"_blank",A);return N.addEventListener("loadstart",function(H){if(H.url.indexOf(E())==0){N.close();var ve=ee(H.url);I(ve,_)}}),_.promise},accountManagement:function(){var w=e.createAccountUrl();if(typeof w<"u"){var _=p(w,"_blank","location=no");_.addEventListener("loadstart",function(P){P.url.indexOf(E())==0&&_.close()})}else throw"Not supported by the OIDC server"},redirectUri:function(w){return E()}}}if(u=="cordova-native")return i.enable=!1,{login:function(w){var _=Y(),P=e.createLoginUrl(w);return universalLinks.subscribe("keycloak",function(A){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var N=ee(A.url);I(N,_)}),window.cordova.plugins.browsertab.openUrl(P),_.promise},logout:function(w){var _=Y(),P=e.createLogoutUrl(w);return universalLinks.subscribe("keycloak",function(A){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),e.clearToken(),_.setSuccess()}),window.cordova.plugins.browsertab.openUrl(P),_.promise},register:function(w){var _=Y(),P=e.createRegisterUrl(w);return universalLinks.subscribe("keycloak",function(A){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var N=ee(A.url);I(N,_)}),window.cordova.plugins.browsertab.openUrl(P),_.promise},accountManagement:function(){var w=e.createAccountUrl();if(typeof w<"u")window.cordova.plugins.browsertab.openUrl(w);else throw"Not supported by the OIDC server"},redirectUri:function(w){return w&&w.redirectUri?w.redirectUri:e.redirectUri?e.redirectUri:"http://localhost"}};throw"invalid adapter type: "+u}var He=function(){if(!(this instanceof He))return new He;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");var u=this;function p(){for(var b=new Date().getTime(),S=0;S<localStorage.length;S++){var y=localStorage.key(S);if(y&&y.indexOf("kc-callback-")==0){var E=localStorage.getItem(y);if(E)try{var w=JSON.parse(E).expires;(!w||w<b)&&localStorage.removeItem(y)}catch{localStorage.removeItem(y)}}}}u.get=function(b){if(b){var S="kc-callback-"+b,y=localStorage.getItem(S);return y&&(localStorage.removeItem(S),y=JSON.parse(y)),p(),y}},u.add=function(b){p();var S="kc-callback-"+b.state;b.expires=new Date().getTime()+60*60*1e3,localStorage.setItem(S,JSON.stringify(b))}},je=function(){if(!(this instanceof je))return new je;var u=this;u.get=function(y){if(y){var E=b("kc-callback-"+y);if(S("kc-callback-"+y,"",p(-100)),E)return JSON.parse(E)}},u.add=function(y){S("kc-callback-"+y.state,JSON.stringify(y),p(60))},u.removeItem=function(y){S(y,"",p(-100))};var p=function(y){var E=new Date;return E.setTime(E.getTime()+y*60*1e3),E},b=function(y){for(var E=y+"=",w=document.cookie.split(";"),_=0;_<w.length;_++){for(var P=w[_];P.charAt(0)==" ";)P=P.substring(1);if(P.indexOf(E)==0)return P.substring(E.length,P.length)}return""},S=function(y,E,w){var _=y+"="+E+"; expires="+w.toUTCString()+"; ";document.cookie=_}};function mt(){try{return new He}catch{}return new je}function xe(u){return function(){e.enableLogging&&u.apply(console,Array.prototype.slice.call(arguments))}}}function Wd(t){const e=String.fromCodePoint(...t);return btoa(e)}class Gd{constructor(e){Re(this,"oidc");Re(this,"isAuthenticated",!1);Re(this,"authenticatedWith",null);this.oidc=new _i(e)}async InitAsync(e={}){return await this.oidc.init(e).then(async n=>(this.isAuthenticated=n,this.authenticatedWith=this.AuthenticatedWith(),n)).catch(n=>(console.info("Ocorreu um erro na inicialização. Verifique o console para mais detalhes."),console.error(n),!1))}LoginGovBr(){this.oidc.login({idpHint:"GOV.BR"})}LoginSenhaweb(){var n;const e=(n=this.oidc.authServerUrl)!=null&&n.startsWith("https://keycloak.dev.apps.sf.prefeitura.sp.gov.br")?"senhawebdev":"senhaweb";this.oidc.login({idpHint:e})}AuthenticatedWith(){var n,o;const e=this.oidc.tokenParsed;return e?(n=e.identity_provider)!=null&&n.startsWith("GOV.BR")?"govbr":(o=e.identity_provider)!=null&&o.startsWith("senhaweb")?"senhaweb":"ad":null}}let ki;function qd(t){ki=new Gd(t)}const Yd=()=>ki;class Xd{constructor(e=null){Re(this,"errors",[]);Re(this,"_value",null);Re(this,"_httpStatusCode");this._value=e,this._httpStatusCode=200}get value(){return this._value}set value(e){this._value=e}get hasSuccess(){return!this.hasError}get hasError(){return this.errors.length>0}get httpStatusCode(){return this._httpStatusCode}set httpStatusCode(e){this._httpStatusCode=e}WithError(e){this.errors.push(e),this._httpStatusCode===200&&(this._httpStatusCode=400)}WithErrors(e){e.forEach(n=>this.WithError(n))}}class An{static get IsTouch(){return window.matchMedia("(pointer: coarse)").matches}static GetMaxZindex(e=[]){let n="body > *:not(script):not(style)";for(const r of e)n+=`, ${r}`;const o=Math.max(...Array.from(document.querySelectorAll(n)).map(r=>{const i=getComputedStyle(r).zIndex;return+i==+i?+i:0}));return o>=100?o:100}static AjustarFuso(e){const n=e.getTimezoneOffset()/60;e.setHours(e.getHours()-n)}static Mask(e,n){let o=0,r=e.toString();return n.replace(/#/g,()=>r[o++]||"")}static MaskCpf(e){return An.Mask(e.padStart(11,"0"),"###.###.###-##")}static MaskCnpj(e){return An.Mask(e.padStart(14,"0"),"##.###.###/####-##")}static async DelayAsync(e){return new Promise(n=>setTimeout(n,e))}}function Zd(){document.documentElement.classList.add("app-mounted")}function Si(){st.SetInitialTheme()}function Jd(){st.Toggle()}function Qd(){st.EnableDarkMode()}function ef(){st.EnableLightMode()}function tf(){st.ClearStoredTheme()}Si(),U.AppResult=Xd,U.ClearStoredTheme=tf,U.ConfigAuth=qd,U.EnableDarkMode=Qd,U.EnableLightMode=ef,U.RemovePreloader=Zd,U.SetInitialTheme=Si,U.SfButton=ys,U.SfContent=us,U.SfDrawer=ks,U.SfIcon=ln,U.SfLayout=ns,U.SfMessage=Cs,U.SfNavMenu=vl,U.SfTabNavigation=ps,U.SfTooltip=Nn,U.ToggleTheme=Jd,U.UseAlertService=xd,U.UseAuth=Yd,U.UseConfirmService=Ld,U.UseNavMenuService=Bn,U.Utilities=An,Object.defineProperty(U,Symbol.toStringTag,{value:"Module"})});
411
411
  //# sourceMappingURL=sf.prefeiturasp.vuecomponents.umd.cjs.map