@luizleon/sf.prefeiturasp.vuecomponents 6.0.6 → 6.0.7

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(x,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("@luizleon/sf.prefeiturasp.vueauth"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","@luizleon/sf.prefeiturasp.vueauth","vue-router"],r):(x=typeof globalThis<"u"?globalThis:x||self,r(x.SfPrefeituraSPVueComponents={},x.Vue,x.SfPrefeituraSPVueAuth,x.VueRouter))})(this,function(x,r,Hn,fa){"use strict";class Pt{constructor(e){this.retorno=e??""}retorno;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()}}function Fn(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 i=getComputedStyle(o).zIndex;return+i==+i?+i:0}));return n>=100?n:100}const zo=r.defineComponent({__name:"Tooltip",props:{text:{}},setup(t){const e=t;class n{target=null;wrapper=null;inner=null;showTimeout=null;Render(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("sf-tooltip-wrapper"),this.wrapper.style.zIndex=`${Fn()??1}`,this.wrapper.addEventListener("mouseup",function(){this.classList.remove("visible"),Array.from(this.children).forEach(a=>a.remove()),this.remove()}),this.inner=document.createElement("div"),this.inner.classList.add("sf-tooltip-inner"),this.wrapper.appendChild(this.inner)}Show(a){this.showTimeout&&clearTimeout(this.showTimeout),this.target=a.currentTarget,this.showTimeout=setTimeout(()=>{this.Render(),this.inner.textContent=e.text,document.body.appendChild(this.wrapper),this.wrapper.classList.add("visible"),this.Position()},500)}Hide(){this.showTimeout&&clearTimeout(this.showTimeout);try{this.wrapper.classList.remove("visible"),this.inner.remove(),this.wrapper.remove(),this.inner=null,this.wrapper=null,this.target=null}catch{}}Position(){if(!this.target||!this.wrapper)return;const a=this.target.getBoundingClientRect();this.FixWidth();const c=this.wrapper,l=5;c.style.top=`${a.top+a.height-l}px`,c.style.left=`${a.left+a.width-l}px`,this.OutOfBottom()&&(c.style.top=`${a.top-c.clientHeight+l}px`),this.OutOfRight()&&(c.style.left=`${a.left-c.clientWidth+l}px`)}FixWidth(){const a=this.wrapper;if(!a)return;a.style.width="fit-content",a.style.wordBreak="normal",a.style.whiteSpace="nowrap";const c=window.innerWidth/2;a.clientWidth>c&&(a.style.width=`${c}px`,a.style.wordBreak="break-word",a.style.whiteSpace="normal")}OutOfBottom(){const a=this.wrapper;if(!a)return!1;const c=a.getBoundingClientRect(),l=window.innerHeight||document.documentElement.clientHeight;return c.bottom+10>l}OutOfRight(){const a=this.wrapper;if(!a)return!1;const c=a.getBoundingClientRect(),l=window.innerWidth||document.documentElement.clientWidth;return c.right+10>l}}const o=new n;return r.onBeforeUnmount(()=>{o.Hide()}),(i,a)=>(r.openBlock(),r.createElementBlock("div",{class:"sf-tooltip-anchor",onMouseenter:a[0]||(a[0]=(...c)=>r.unref(o).Show&&r.unref(o).Show(...c)),onMousedown:a[1]||(a[1]=(...c)=>r.unref(o).Hide&&r.unref(o).Hide(...c)),onMouseleave:a[2]||(a[2]=(...c)=>r.unref(o).Hide&&r.unref(o).Hide(...c))},[r.renderSlot(i.$slots,"default")],32))}}),Le=(t,e)=>{const n=t.__vccOpts||t;for(const[o,i]of e)n[o]=i;return n},pa={},ha={class:"sf-loading-circle"};function ga(t,e){return r.openBlock(),r.createElementBlock("div",ha,e[0]||(e[0]=[r.createElementVNode("div",null,[r.createElementVNode("svg",{viewBox:"25 25 50 50"},[r.createElementVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"})])],-1)]))}const Ko=Le(pa,[["render",ga]]),ya=["data-size"],va=["disabled","data-p-loading","tabindex"],ba=["data-color"],Ie=Le(r.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"}},emits:["click"],setup(t,{emit:e}){const n=t,o=r.computed(()=>n.tooltip?zo:"div"),i=r.computed(()=>new Pt(n.tooltip?"":"display-content").AddClass("loading",n.loading).AddClass("disabled",n.disabled).Build()),a=r.computed(()=>new Pt(`${n.class} sf-icon`).AddClass("select-none").AddClass(`${n.color}-color`,!!n.color&&n.color!=="inherit").Build()),c=s=>{n.disabled||n.loading||l("click",s)},l=e;return(s,u)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(o.value),{text:n.tooltip,class:r.normalizeClass(i.value),onClick:c},{default:r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass(["icon-wrapper",{"--button":!!n.button&&!n.disabled&&!n.loading,"--relative":!n.loading}]),"data-size":n.size},[n.visible?(r.openBlock(),r.createElementBlock("div",{key:0,style:r.normalizeStyle(n.style),class:r.normalizeClass(a.value)},[n.loading?(r.openBlock(),r.createBlock(Ko,{key:0})):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createElementVNode("button",r.mergeProps({class:["material-symbols-outlined",{"icon-filled":!!n.filled}],disabled:n.disabled,"data-p-loading":n.loading},n.buttonProps,{tabindex:n.button?void 0:-1}),r.toDisplayString(n.icon),17,va),n.dot&&!n.disabled&&!n.loading?(r.openBlock(),r.createElementBlock("span",{key:0,"data-color":n.dotColor},null,8,ba)):r.createCommentVNode("",!0)],64))],6)):r.createCommentVNode("",!0)],10,ya)]),_:1},8,["text","class"]))}}),[["__scopeId","data-v-c242d02a"]]),Ca={class:"sf-tab-navigation"},wa=["data-active"],ka=["href","onClick"],Sa=r.defineComponent({__name:"TabNavigation",props:{tabs:{}},setup(t){const e=t,n=r.ref(null),o=new ResizeObserver(s=>{l()}),i=r.ref(!1),a=r.ref(!1);function c(s=!1){const u=n.value.clientWidth;n.value.scrollLeft+=s?-u:u}function l(){const s=n.value.scrollWidth-n.value.clientWidth;i.value=n.value.scrollLeft>10,a.value=n.value.scrollLeft<s-10}return r.onMounted(()=>{n.value.addEventListener("scroll",l),o.observe(n.value)}),r.onBeforeUnmount(()=>{try{n.value?.removeEventListener("scroll",l),o.unobserve(n.value),o.disconnect()}catch{}}),(s,u)=>{const m=r.resolveComponent("RouterLink");return r.openBlock(),r.createElementBlock("div",Ca,[r.createElementVNode("div",{class:r.normalizeClass(["left-arrow",{active:i.value}]),onClick:u[0]||(u[0]=f=>c(!0))},u[2]||(u[2]=[r.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"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})],-1)]),2),r.createElementVNode("ul",{ref_key:"trackerContainer",ref:n},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.tabs,f=>(r.openBlock(),r.createBlock(m,{to:f.route,custom:!0},{default:r.withCtx(({navigate:p,isActive:h})=>[r.createElementVNode("li",{"data-active":h},[r.renderSlot(s.$slots,"item",{item:f,navigate:p,isActive:h},()=>[r.createElementVNode("a",{href:f.route,class:r.normalizeClass({active:h}),onClick:p},r.toDisplayString(f.text),11,ka)])],8,wa)]),_:2},1032,["to"]))),256))],512),r.createElementVNode("div",{class:r.normalizeClass(["right-arrow",{active:a.value}]),onClick:u[1]||(u[1]=f=>c())},u[3]||(u[3]=[r.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"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})],-1)]),2)])}}}),Wo=Le(r.defineComponent({__name:"LoadingCircle",props:{delay:{},dense:{type:Boolean}},setup(t){const e=t,n=r.ref(!1);return r.onMounted(async()=>{await new Promise(o=>setTimeout(o,e.delay??300)),n.value=!0}),(o,i)=>n.value?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["loading-circle",{dense:e.dense}])},i[0]||(i[0]=[r.createElementVNode("div",null,[r.createElementVNode("svg",{viewBox:"25 25 50 50"},[r.createElementVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"3","stroke-miterlimit":"10"})])],-1)]),2)):r.createCommentVNode("",!0)}}),[["__scopeId","data-v-29f59fc6"]]),_a=["id","name","disabled","data-color","form","type","data-p-loading"],Un=Le(r.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}},emits:["click"],setup(t,{emit:e}){const n=t;function o(){return new Pt(`${n.class??""} sf-button`).AddClass("select-none").AddClass("sf-button-small",n.size==="sm").AddClass("sf-button-medium",n.size==="md").AddClass("sf-button-large",n.size==="lg").AddClass("sf-button-filled",n.variant==="filled").AddClass("sf-button-text",n.variant==="text").AddClass("sf-button-outlined",n.variant==="outlined").AddClass("sf-button-with-icon",!!n.icon).Build()}const i=c=>{n.disabled||n.loading||a("click",c)},a=e;return(c,l)=>n.visible?(r.openBlock(),r.createElementBlock("button",{key:0,id:n.id,name:n.name,class:r.normalizeClass(o()),style:r.normalizeStyle(n.style),disabled:n.disabled,"data-color":n.color,form:n.form,type:n.type,"data-p-loading":n.loading,onClick:i},[n.loading?(r.openBlock(),r.createBlock(Wo,{key:0,dense:!0,delay:0,class:r.normalizeClass("icon-loading")})):r.createCommentVNode("",!0),n.icon?(r.openBlock(),r.createBlock(Ie,{key:1,icon:n.icon,size:n.size,"button-props":{tabindex:-1},filled:n.iconFilled,class:r.normalizeClass({transparent:n.loading})},null,8,["icon","size","filled","class"])):r.createCommentVNode("",!0),r.createElementVNode("span",{class:r.normalizeClass({"button-label":!0,"pl-2":!!n.icon,transparent:!n.disabled&&n.loading})},[r.renderSlot(c.$slots,"default",{},void 0,!0)],2)],14,_a)):r.createCommentVNode("",!0)}}),[["__scopeId","data-v-b8d46db3"]]),Ea={class:"sf-drawer-title"},Ta={class:"sf-drawer-action"},Go=r.defineComponent({__name:"Drawer",props:{visible:{type:Boolean,default:!1},position:{default:"left"},style:{type:[Boolean,null,String,Object,Array]},dismissableMask:{type:Boolean,default:!0},title:{},unstyledHeader:{type:Boolean},unstyledContent:{type:Boolean},unstyledFooter:{type:Boolean}},emits:["update:visible","open","before-close"],setup(t,{emit:e}){const n=t,o=e,i=r.useSlots(),a=r.ref(n.visible),c=r.ref(!1),l=r.ref(0),s="sf-drawer-"+Math.random().toString(36).slice(2,11)+"-"+Date.now();function u(){a.value=!1}function m(y){if(!n.dismissableMask)return;const P=y.target;P&&P.id===s&&(a.value=!1)}function f(y){(y.key==="Escape"||y.code==="Escape")&&u()}function p(){o("open"),window.document.addEventListener("keydown",f,!0)}function h(y){l.value=Fn()+1,y.style.zIndex=`${l.value}`}function C(y){o("before-close"),y?.parentElement?.classList.add("sf-mask-overlay-leave")}function w(){window.document.removeEventListener("keydown",f,!0),c.value=!1}function k(){return new Pt("sf-mask sf-mask-overlay").AddClass("right",n.position==="right").AddClass("bottom",n.position==="bottom").AddClass("center",n.position==="center").AddClass("full",n.position==="full").AddClass("sf-mask-overlay-enter",n.visible===!0).Build()}return r.watch(()=>n.visible,y=>{a.value=y}),r.watch(()=>a.value,y=>{o("update:visible",y),y&&(c.value=!0)}),(y,P)=>(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[c.value?(r.openBlock(),r.createElementBlock("div",{key:0,id:s,class:r.normalizeClass(k()),style:r.normalizeStyle({zIndex:l.value-1}),onClick:r.withModifiers(m,["stop"])},[r.createVNode(r.Transition,{name:"sf-drawer",appear:"",onBeforeEnter:h,onEnter:p,onBeforeLeave:C,onAfterLeave:w},{default:r.withCtx(()=>[a.value?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["sf-drawer"]),style:r.normalizeStyle(n.style),role:"dialog"},[r.renderSlot(y.$slots,"header",r.normalizeProps(r.guardReactiveProps({Close:u})),()=>[r.createElementVNode("div",{class:r.normalizeClass(["sf-drawer-header",{unstyled:n.unstyledHeader}])},[r.renderSlot(y.$slots,"title",{},()=>[r.createElementVNode("div",Ea,r.toDisplayString(n.title),1)]),P[0]||(P[0]=r.createElementVNode("div",{class:"sf-drawer-spacer"},null,-1)),r.createElementVNode("div",Ta,[r.renderSlot(y.$slots,"action",r.normalizeProps(r.guardReactiveProps({Close:u})),()=>[r.createVNode(Ie,{button:!0,icon:"close",onClick:u})])])],2)]),r.createElementVNode("div",{class:r.normalizeClass(["sf-drawer-content",{unstyled:n.unstyledContent}])},[r.renderSlot(y.$slots,"default")],2),r.unref(i).footer?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["sf-drawer-footer",{unstyled:n.unstyledFooter}])},[r.renderSlot(y.$slots,"footer",r.normalizeProps(r.guardReactiveProps({Close:u})))],2)):r.createCommentVNode("",!0)],4)):r.createCommentVNode("",!0)]),_:3})],6)):r.createCommentVNode("",!0)]))}}),Pa=["data-icon"],Ia=r.defineComponent({__name:"Message",props:{color:{default:"info"},class:{},style:{type:[Boolean,null,String,Object,Array]},icon:{}},setup(t){const e=t,n=r.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=r.computed(()=>new Pt("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(i,a)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(o.value),"data-icon":n.value},[r.renderSlot(i.$slots,"default")],10,Pa))}});function Aa(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function xa(t,e){if(t&&e){let n=o=>{Aa(t,o)||(t.classList?t.classList.add(o):t.className+=" "+o)};[e].flat().filter(Boolean).forEach(o=>o.split(" ").forEach(n))}}function zn(t,e){if(t&&e){let 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 qo(t){return t?Math.abs(t.scrollLeft):0}function $a(t,e){return t instanceof HTMLElement?t.offsetWidth:0}function Kn(t){return typeof Element<"u"?t instanceof Element:t!==null&&typeof t=="object"&&t.nodeType===1&&typeof t.nodeName=="string"}function Yo(t,e={}){if(Kn(t)){let n=(o,i)=>{var a,c;let l=(a=t?.$attrs)!=null&&a[o]?[(c=t?.$attrs)==null?void 0:c[o]]:[];return[i].flat().reduce((s,u)=>{if(u!=null){let m=typeof u;if(m==="string"||m==="number")s.push(u);else if(m==="object"){let f=Array.isArray(u)?n(o,u):Object.entries(u).map(([p,h])=>o==="style"&&(h||h===0)?`${p.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${h}`:h?p:void 0);s=f.length?s.concat(f.filter(p=>!!p)):s}}return s},l)};Object.entries(e).forEach(([o,i])=>{if(i!=null){let a=o.match(/^on(.+)/);a?t.addEventListener(a[1].toLowerCase(),i):o==="p-bind"||o==="pBind"?Yo(t,i):(i=o==="class"?[...new Set(n("class",i))].join(" ").trim():o==="style"?n("style",i).join(";").trim():i,(t.$attrs=t.$attrs||{})&&(t.$attrs[o]=i),t.setAttribute(o,i))}})}}function Ba(t,e={},...n){{let o=document.createElement(t);return Yo(o,e),o.append(...n),o}}function Ae(t,e){return Kn(t)?t.matches(e)?t:t.querySelector(e):null}function It(t,e){t&&document.activeElement!==t&&t.focus(e)}function At(t,e){if(Kn(t)){let 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 Oa(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||qo(document.documentElement)||qo(document.body)||0)}}return{top:"auto",left:"auto"}}function La(t,e){return t?t.offsetHeight:0}function Zo(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 dn(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function Wn(t,e,n=new WeakSet){if(t===e)return!0;if(!t||!e||typeof t!="object"||typeof e!="object"||n.has(t)||n.has(e))return!1;n.add(t).add(e);let o=Array.isArray(t),i=Array.isArray(e),a,c,l;if(o&&i){if(c=t.length,c!=e.length)return!1;for(a=c;a--!==0;)if(!Wn(t[a],e[a],n))return!1;return!0}if(o!=i)return!1;let s=t instanceof Date,u=e instanceof Date;if(s!=u)return!1;if(s&&u)return t.getTime()==e.getTime();let m=t instanceof RegExp,f=e instanceof RegExp;if(m!=f)return!1;if(m&&f)return t.toString()==e.toString();let p=Object.keys(t);if(c=p.length,c!==Object.keys(e).length)return!1;for(a=c;a--!==0;)if(!Object.prototype.hasOwnProperty.call(e,p[a]))return!1;for(a=c;a--!==0;)if(l=p[a],!Wn(t[l],e[l],n))return!1;return!0}function Na(t,e){return Wn(t,e)}function Ma(t){return typeof t=="function"&&"call"in t&&"apply"in t}function Z(t){return!dn(t)}function Jo(t,e){return null}function lt(t,e,n){return n?Jo()===Jo():Na(t,e)}function Qo(t,e){let n;if(Z(t))try{n=t.findLast(e)}catch{n=[...t].reverse().find(e)}return n}function Gn(t,...e){return Ma(t)?t(...e):t}function Da(t=""){return Z(t)&&t.length===1&&!!t.match(/\S| /)}function Ra(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function qn(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function Yn(t){return typeof t=="function"&&"call"in t&&"apply"in t}function U(t){return!qn(t)}function et(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function fe(t,...e){return Yn(t)?t(...e):t}function pe(t,e=!0){return typeof t=="string"&&(e||t!=="")}function xe(t){return pe(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function Xn(t,e="",n={}){let o=xe(e).split("."),i=o.shift();if(i){if(et(t)){let a=Object.keys(t).find(c=>xe(c)===i)||"";return Xn(fe(t[a],n),o.join("."),n)}return}return fe(t,n)}function er(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function Va(t){return U(t)&&!isNaN(t)}function ct(t,e){if(e){let 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,":").trim()}function ja(t){return pe(t,!1)?t[0].toUpperCase()+t.slice(1):t}function tr(t){return pe(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,n)=>n===0?e:"-"+e.toLowerCase()).toLowerCase():t}function nr(){let 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.forEach(i=>{i(n)})},clear(){t.clear()}}}function Ha(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function Fa(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&Ha(t))}function mn(t){return typeof Element<"u"?t instanceof Element:t!==null&&typeof t=="object"&&t.nodeType===1&&typeof t.nodeName=="string"}function Zn(t,e={}){if(mn(t)){let n=(o,i)=>{var a,c;let l=(a=t?.$attrs)!=null&&a[o]?[(c=t?.$attrs)==null?void 0:c[o]]:[];return[i].flat().reduce((s,u)=>{if(u!=null){let m=typeof u;if(m==="string"||m==="number")s.push(u);else if(m==="object"){let f=Array.isArray(u)?n(o,u):Object.entries(u).map(([p,h])=>o==="style"&&(h||h===0)?`${p.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${h}`:h?p:void 0);s=f.length?s.concat(f.filter(p=>!!p)):s}}return s},l)};Object.entries(e).forEach(([o,i])=>{if(i!=null){let a=o.match(/^on(.+)/);a?t.addEventListener(a[1].toLowerCase(),i):o==="p-bind"||o==="pBind"?Zn(t,i):(i=o==="class"?[...new Set(n("class",i))].join(" ").trim():o==="style"?n("style",i).join(";").trim():i,(t.$attrs=t.$attrs||{})&&(t.$attrs[o]=i),t.setAttribute(o,i))}})}}function Ua(t,e){return mn(t)?t.matches(e)?t:t.querySelector(e):null}function za(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ka(t,e="",n){mn(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}var fn={};function Wa(t="pui_id_"){return Object.hasOwn(fn,t)||(fn[t]=0),fn[t]++,`${t}${fn[t]}`}var Ga=Object.defineProperty,qa=Object.defineProperties,Ya=Object.getOwnPropertyDescriptors,pn=Object.getOwnPropertySymbols,or=Object.prototype.hasOwnProperty,rr=Object.prototype.propertyIsEnumerable,ir=(t,e,n)=>e in t?Ga(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Se=(t,e)=>{for(var n in e||(e={}))or.call(e,n)&&ir(t,n,e[n]);if(pn)for(var n of pn(e))rr.call(e,n)&&ir(t,n,e[n]);return t},Jn=(t,e)=>qa(t,Ya(e)),Ne=(t,e)=>{var n={};for(var o in t)or.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&pn)for(var o of pn(t))e.indexOf(o)<0&&rr.call(t,o)&&(n[o]=t[o]);return n},Xa=nr(),ie=Xa,Qn=/{([^}]*)}/g,Za=/(\d+\s+[\+\-\*\/]\s+\d+)/g,Ja=/var\([^)]+\)/g;function Qa(t){return et(t)&&t.hasOwnProperty("$value")&&t.hasOwnProperty("$type")?t.$value:t}function es(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function eo(t="",e=""){return es(`${pe(t,!1)&&pe(e,!1)?`${t}-`:t}${e}`)}function ar(t="",e=""){return`--${eo(t,e)}`}function ts(t=""){let e=(t.match(/{/g)||[]).length,n=(t.match(/}/g)||[]).length;return(e+n)%2!==0}function sr(t,e="",n="",o=[],i){if(pe(t)){let a=t.trim();if(ts(a))return;if(ct(a,Qn)){let c=a.replaceAll(Qn,l=>{let s=l.replace(/{|}/g,"").split(".").filter(u=>!o.some(m=>ct(u,m)));return`var(${ar(n,tr(s.join("-")))}${U(i)?`, ${i}`:""})`});return ct(c.replace(Ja,"0"),Za)?`calc(${c})`:c}return a}else if(Va(t))return t}function ns(t,e,n){pe(e,!1)&&t.push(`${e}:${n};`)}function ut(t,e){return t?`${t}{${e}}`:""}function lr(t,e){if(t.indexOf("dt(")===-1)return t;function n(c,l){let s=[],u=0,m="",f=null,p=0;for(;u<=c.length;){let h=c[u];if((h==='"'||h==="'"||h==="`")&&c[u-1]!=="\\"&&(f=f===h?null:h),!f&&(h==="("&&p++,h===")"&&p--,(h===","||u===c.length)&&p===0)){let C=m.trim();C.startsWith("dt(")?s.push(lr(C,l)):s.push(o(C)),m="",u++;continue}h!==void 0&&(m+=h),u++}return s}function o(c){let l=c[0];if((l==='"'||l==="'"||l==="`")&&c[c.length-1]===l)return c.slice(1,-1);let s=Number(c);return isNaN(s)?c:s}let i=[],a=[];for(let c=0;c<t.length;c++)if(t[c]==="d"&&t.slice(c,c+3)==="dt(")a.push(c),c+=2;else if(t[c]===")"&&a.length>0){let l=a.pop();a.length===0&&i.push([l,c])}if(!i.length)return t;for(let c=i.length-1;c>=0;c--){let[l,s]=i[c],u=t.slice(l+3,s),m=n(u,e),f=e(...m);t=t.slice(0,l)+f+t.slice(s+1)}return t}var tt=(...t)=>os(j.getTheme(),...t),os=(t={},e,n,o)=>{if(e){let{variable:i,options:a}=j.defaults||{},{prefix:c,transform:l}=t?.options||a||{},s=ct(e,Qn)?e:`{${e}}`;return o==="value"||qn(o)&&l==="strict"?j.getTokenValue(e):sr(s,void 0,c,[i.excludedKeyRegex],n)}return""};function hn(t,...e){if(t instanceof Array){let n=t.reduce((o,i,a)=>{var c;return o+i+((c=fe(e[a],{dt:tt}))!=null?c:"")},"");return lr(n,tt)}return fe(t,{dt:tt})}function rs(t,e={}){let n=j.defaults.variable,{prefix:o=n.prefix,selector:i=n.selector,excludedKeyRegex:a=n.excludedKeyRegex}=e,c=[],l=[],s=[{node:t,path:o}];for(;s.length;){let{node:m,path:f}=s.pop();for(let p in m){let h=m[p],C=Qa(h),w=ct(p,a)?eo(f):eo(f,tr(p));if(et(C))s.push({node:C,path:w});else{let k=ar(w),y=sr(C,w,o,[a]);ns(l,k,y);let P=w;o&&P.startsWith(o+"-")&&(P=P.slice(o.length+1)),c.push(P.replace(/-/g,"."))}}}let u=l.join("");return{value:l,tokens:c,declarations:u,css:ut(i,u)}}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,matched:this.pattern.test(t.trim())}}},system:{pattern:/^system$/,resolve(t){return{type:"system",selector:"@media (prefers-color-scheme: dark)",matched:this.pattern.test(t.trim())}}},custom:{resolve(t){return{type:"custom",selector:t,matched:!0}}}},resolve(t){let 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(i=>i.resolve(n)).find(i=>i.matched))!=null?o:this.rules.custom.resolve(n)})}},_toVariables(t,e){return rs(t,{prefix:e?.prefix})},getCommon({name:t="",theme:e={},params:n,set:o,defaults:i}){var a,c,l,s,u,m,f;let{preset:p,options:h}=e,C,w,k,y,P,T,v;if(U(p)&&h.transform!=="strict"){let{primitive:_,semantic:z,extend:X}=p,Ce=z||{},{colorScheme:te}=Ce,we=Ne(Ce,["colorScheme"]),I=X||{},{colorScheme:V}=I,ne=Ne(I,["colorScheme"]),ce=te||{},{dark:Pe}=ce,Ye=Ne(ce,["dark"]),Re=V||{},{dark:Ve}=Re,Xe=Ne(Re,["dark"]),ke=U(_)?this._toVariables({primitive:_},h):{},R=U(we)?this._toVariables({semantic:we},h):{},Be=U(Ye)?this._toVariables({light:Ye},h):{},K=U(Pe)?this._toVariables({dark:Pe},h):{},je=U(ne)?this._toVariables({semantic:ne},h):{},H=U(Xe)?this._toVariables({light:Xe},h):{},Ze=U(Ve)?this._toVariables({dark:Ve},h):{},[on,Bn]=[(a=ke.declarations)!=null?a:"",ke.tokens],[rn,On]=[(c=R.declarations)!=null?c:"",R.tokens||[]],[Ln,Je]=[(l=Be.declarations)!=null?l:"",Be.tokens||[]],[bt,He]=[(s=K.declarations)!=null?s:"",K.tokens||[]],[an,sn]=[(u=je.declarations)!=null?u:"",je.tokens||[]],[Qe,Ct]=[(m=H.declarations)!=null?m:"",H.tokens||[]],[wt,Nn]=[(f=Ze.declarations)!=null?f:"",Ze.tokens||[]];C=this.transformCSS(t,on,"light","variable",h,o,i),w=Bn;let Mn=this.transformCSS(t,`${rn}${Ln}`,"light","variable",h,o,i),Do=this.transformCSS(t,`${bt}`,"dark","variable",h,o,i);k=`${Mn}${Do}`,y=[...new Set([...On,...Je,...He])];let ln=this.transformCSS(t,`${an}${Qe}color-scheme:light`,"light","variable",h,o,i),st=this.transformCSS(t,`${wt}color-scheme:dark`,"dark","variable",h,o,i);P=`${ln}${st}`,T=[...new Set([...sn,...Ct,...Nn])],v=fe(p.css,{dt:tt})}return{primitive:{css:C,tokens:w},semantic:{css:k,tokens:y},global:{css:P,tokens:T},style:v}},getPreset({name:t="",preset:e={},options:n,params:o,set:i,defaults:a,selector:c}){var l,s,u;let m,f,p;if(U(e)&&n.transform!=="strict"){let h=t.replace("-directive",""),C=e,{colorScheme:w,extend:k,css:y}=C,P=Ne(C,["colorScheme","extend","css"]),T=k||{},{colorScheme:v}=T,_=Ne(T,["colorScheme"]),z=w||{},{dark:X}=z,Ce=Ne(z,["dark"]),te=v||{},{dark:we}=te,I=Ne(te,["dark"]),V=U(P)?this._toVariables({[h]:Se(Se({},P),_)},n):{},ne=U(Ce)?this._toVariables({[h]:Se(Se({},Ce),I)},n):{},ce=U(X)?this._toVariables({[h]:Se(Se({},X),we)},n):{},[Pe,Ye]=[(l=V.declarations)!=null?l:"",V.tokens||[]],[Re,Ve]=[(s=ne.declarations)!=null?s:"",ne.tokens||[]],[Xe,ke]=[(u=ce.declarations)!=null?u:"",ce.tokens||[]],R=this.transformCSS(h,`${Pe}${Re}`,"light","variable",n,i,a,c),Be=this.transformCSS(h,Xe,"dark","variable",n,i,a,c);m=`${R}${Be}`,f=[...new Set([...Ye,...Ve,...ke])],p=fe(y,{dt:tt})}return{css:m,tokens:f,style:p}},getPresetC({name:t="",theme:e={},params:n,set:o,defaults:i}){var a;let{preset:c,options:l}=e,s=(a=c?.components)==null?void 0:a[t];return this.getPreset({name:t,preset:s,options:l,params:n,set:o,defaults:i})},getPresetD({name:t="",theme:e={},params:n,set:o,defaults:i}){var a,c;let l=t.replace("-directive",""),{preset:s,options:u}=e,m=((a=s?.components)==null?void 0:a[l])||((c=s?.directives)==null?void 0:c[l]);return this.getPreset({name:l,preset:m,options:u,params:n,set:o,defaults:i})},applyDarkColorScheme(t){return!(t.darkModeSelector==="none"||t.darkModeSelector===!1)},getColorSchemeOption(t,e){var n;return this.applyDarkColorScheme(t)?this.regex.resolve(t.darkModeSelector===!0?e.options.darkModeSelector:(n=t.darkModeSelector)!=null?n:e.options.darkModeSelector):[]},getLayerOrder(t,e={},n,o){let{cssLayer:i}=e;return i?`@layer ${fe(i.order||i.name||"primeui",n)}`:""},getCommonStyleSheet({name:t="",theme:e={},params:n,props:o={},set:i,defaults:a}){let c=this.getCommon({name:t,theme:e,params:n,set:i,defaults:a}),l=Object.entries(o).reduce((s,[u,m])=>s.push(`${u}="${m}"`)&&s,[]).join(" ");return Object.entries(c||{}).reduce((s,[u,m])=>{if(et(m)&&Object.hasOwn(m,"css")){let f=xt(m.css),p=`${u}-variables`;s.push(`<style type="text/css" data-primevue-style-id="${p}" ${l}>${f}</style>`)}return s},[]).join("")},getStyleSheet({name:t="",theme:e={},params:n,props:o={},set:i,defaults:a}){var c;let l={name:t,theme:e,params:n,set:i,defaults:a},s=(c=t.includes("-directive")?this.getPresetD(l):this.getPresetC(l))==null?void 0:c.css,u=Object.entries(o).reduce((m,[f,p])=>m.push(`${f}="${p}"`)&&m,[]).join(" ");return s?`<style type="text/css" data-primevue-style-id="${t}-variables" ${u}>${xt(s)}</style>`:""},createTokens(t={},e,n="",o="",i={}){return{}},getTokenValue(t,e,n){var o;let i=(l=>l.split(".").filter(s=>!ct(s.toLowerCase(),n.variable.excludedKeyRegex)).join("."))(e),a=e.includes("colorScheme.light")?"light":e.includes("colorScheme.dark")?"dark":void 0,c=[(o=t[i])==null?void 0:o.computed(a)].flat().filter(l=>l);return c.length===1?c[0].value:c.reduce((l={},s)=>{let u=s,{colorScheme:m}=u,f=Ne(u,["colorScheme"]);return l[m]=f,l},void 0)},getSelectorRule(t,e,n,o){return n==="class"||n==="attr"?ut(U(e)?`${t}${e},${t} ${e}`:t,o):ut(t,ut(e??":root",o))},transformCSS(t,e,n,o,i={},a,c,l){if(U(e)){let{cssLayer:s}=i;if(o!=="style"){let u=this.getColorSchemeOption(i,c);e=n==="dark"?u.reduce((m,{type:f,selector:p})=>(U(p)&&(m+=p.includes("[CSS]")?p.replace("[CSS]",e):this.getSelectorRule(p,l,f,e)),m),""):ut(l??":root",e)}if(s){let u={name:"primeui"};et(s)&&(u.name=fe(s.name,{name:t,type:o})),U(u.name)&&(e=ut(`@layer ${u.name}`,e),a?.layerNames(u.name))}return e}return""}},j={defaults:{variable:{prefix:"p",selector:":root",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(t={}){let{theme:e}=t;e&&(this._theme=Jn(Se({},e),{options:Se(Se({},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}),ie.emit("theme:change",t)},getPreset(){return this.preset},setPreset(t){this._theme=Jn(Se({},this.theme),{preset:t}),this._tokens=_e.createTokens(t,this.defaults),this.clearLoadedStyleNames(),ie.emit("preset:change",t),ie.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(t){this._theme=Jn(Se({},this.theme),{options:t}),this.clearLoadedStyleNames(),ie.emit("options:change",t),ie.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){let n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return _e.getPresetC(n)},getDirective(t="",e){let 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){let i={name:t,preset:e,options:this.options,selector:n,params:o,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return _e.getPreset(i)},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),ie.emit(`theme:${e}:load`,t),!this._loadingStyles.size&&ie.emit("theme:load"))}},Ke={_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()}},is=`
1
+ (function(x,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("@luizleon/sf.prefeiturasp.vueauth"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","@luizleon/sf.prefeiturasp.vueauth","vue-router"],r):(x=typeof globalThis<"u"?globalThis:x||self,r(x.SfPrefeituraSPVueComponents={},x.Vue,x.SfPrefeituraSPVueAuth,x.VueRouter))})(this,function(x,r,Un,ga){"use strict";class Pt{constructor(e){this.retorno=e??""}retorno;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()}}function zn(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 i=getComputedStyle(o).zIndex;return+i==+i?+i:0}));return n>=100?n:100}const zo=r.defineComponent({__name:"Tooltip",props:{text:{}},setup(t){const e=t;class n{target=null;wrapper=null;inner=null;showTimeout=null;Render(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("sf-tooltip-wrapper"),this.wrapper.style.zIndex=`${zn()??1}`,this.wrapper.addEventListener("mouseup",function(){this.classList.remove("visible"),Array.from(this.children).forEach(a=>a.remove()),this.remove()}),this.inner=document.createElement("div"),this.inner.classList.add("sf-tooltip-inner"),this.wrapper.appendChild(this.inner)}Show(a){this.showTimeout&&clearTimeout(this.showTimeout),this.target=a.currentTarget,this.showTimeout=setTimeout(()=>{this.Render(),this.inner.textContent=e.text,document.body.appendChild(this.wrapper),this.wrapper.classList.add("visible"),this.Position()},500)}Hide(){this.showTimeout&&clearTimeout(this.showTimeout);try{this.wrapper.classList.remove("visible"),this.inner.remove(),this.wrapper.remove(),this.inner=null,this.wrapper=null,this.target=null}catch{}}Position(){if(!this.target||!this.wrapper)return;const a=this.target.getBoundingClientRect();this.FixWidth();const c=this.wrapper,l=5;c.style.top=`${a.top+a.height-l}px`,c.style.left=`${a.left+a.width-l}px`,this.OutOfBottom()&&(c.style.top=`${a.top-c.clientHeight+l}px`),this.OutOfRight()&&(c.style.left=`${a.left-c.clientWidth+l}px`)}FixWidth(){const a=this.wrapper;if(!a)return;a.style.width="fit-content",a.style.wordBreak="normal",a.style.whiteSpace="nowrap";const c=window.innerWidth/2;a.clientWidth>c&&(a.style.width=`${c}px`,a.style.wordBreak="break-word",a.style.whiteSpace="normal")}OutOfBottom(){const a=this.wrapper;if(!a)return!1;const c=a.getBoundingClientRect(),l=window.innerHeight||document.documentElement.clientHeight;return c.bottom+10>l}OutOfRight(){const a=this.wrapper;if(!a)return!1;const c=a.getBoundingClientRect(),l=window.innerWidth||document.documentElement.clientWidth;return c.right+10>l}}const o=new n;return r.onBeforeUnmount(()=>{o.Hide()}),(i,a)=>(r.openBlock(),r.createElementBlock("div",{class:"sf-tooltip-anchor",onMouseenter:a[0]||(a[0]=(...c)=>r.unref(o).Show&&r.unref(o).Show(...c)),onMousedown:a[1]||(a[1]=(...c)=>r.unref(o).Hide&&r.unref(o).Hide(...c)),onMouseleave:a[2]||(a[2]=(...c)=>r.unref(o).Hide&&r.unref(o).Hide(...c))},[r.renderSlot(i.$slots,"default")],32))}}),Le=(t,e)=>{const n=t.__vccOpts||t;for(const[o,i]of e)n[o]=i;return n},ya={},va={class:"sf-loading-circle"};function ba(t,e){return r.openBlock(),r.createElementBlock("div",va,e[0]||(e[0]=[r.createElementVNode("div",null,[r.createElementVNode("svg",{viewBox:"25 25 50 50"},[r.createElementVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"})])],-1)]))}const Ko=Le(ya,[["render",ba]]),Ca=["data-size"],wa=["disabled","data-p-loading","tabindex"],ka=["data-color"],Ie=Le(r.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"}},emits:["click"],setup(t,{emit:e}){const n=t,o=r.computed(()=>n.tooltip?zo:"div"),i=r.computed(()=>new Pt(n.tooltip?"":"display-content").AddClass("loading",n.loading).AddClass("disabled",n.disabled).Build()),a=r.computed(()=>new Pt(`${n.class} sf-icon`).AddClass("select-none").AddClass(`${n.color}-color`,!!n.color&&n.color!=="inherit").Build()),c=s=>{n.disabled||n.loading||l("click",s)},l=e;return(s,u)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(o.value),{text:n.tooltip,class:r.normalizeClass(i.value),onClick:c},{default:r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass(["icon-wrapper",{"--button":!!n.button&&!n.disabled&&!n.loading,"--relative":!n.loading}]),"data-size":n.size},[n.visible?(r.openBlock(),r.createElementBlock("div",{key:0,style:r.normalizeStyle(n.style),class:r.normalizeClass(a.value)},[n.loading?(r.openBlock(),r.createBlock(Ko,{key:0})):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createElementVNode("button",r.mergeProps({class:["material-symbols-outlined",{"icon-filled":!!n.filled}],disabled:n.disabled,"data-p-loading":n.loading},n.buttonProps,{tabindex:n.button?void 0:-1}),r.toDisplayString(n.icon),17,wa),n.dot&&!n.disabled&&!n.loading?(r.openBlock(),r.createElementBlock("span",{key:0,"data-color":n.dotColor},null,8,ka)):r.createCommentVNode("",!0)],64))],6)):r.createCommentVNode("",!0)],10,Ca)]),_:1},8,["text","class"]))}}),[["__scopeId","data-v-c242d02a"]]),Sa={class:"sf-tab-navigation"},_a=["data-active"],Ea=["href","onClick"],Ta=r.defineComponent({__name:"TabNavigation",props:{tabs:{}},setup(t){const e=t,n=r.ref(null),o=new ResizeObserver(s=>{l()}),i=r.ref(!1),a=r.ref(!1);function c(s=!1){const u=n.value.clientWidth;n.value.scrollLeft+=s?-u:u}function l(){const s=n.value.scrollWidth-n.value.clientWidth;i.value=n.value.scrollLeft>10,a.value=n.value.scrollLeft<s-10}return r.onMounted(()=>{n.value.addEventListener("scroll",l),o.observe(n.value)}),r.onBeforeUnmount(()=>{try{n.value?.removeEventListener("scroll",l),o.unobserve(n.value),o.disconnect()}catch{}}),(s,u)=>{const d=r.resolveComponent("RouterLink");return r.openBlock(),r.createElementBlock("div",Sa,[r.createElementVNode("div",{class:r.normalizeClass(["left-arrow",{active:i.value}]),onClick:u[0]||(u[0]=f=>c(!0))},u[2]||(u[2]=[r.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"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})],-1)]),2),r.createElementVNode("ul",{ref_key:"trackerContainer",ref:n},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.tabs,f=>(r.openBlock(),r.createBlock(d,{to:f.route,custom:!0},{default:r.withCtx(({navigate:p,isActive:h})=>[r.createElementVNode("li",{"data-active":h},[r.renderSlot(s.$slots,"item",{item:f,navigate:p,isActive:h},()=>[r.createElementVNode("a",{href:f.route,class:r.normalizeClass({active:h}),onClick:p},r.toDisplayString(f.text),11,Ea)])],8,_a)]),_:2},1032,["to"]))),256))],512),r.createElementVNode("div",{class:r.normalizeClass(["right-arrow",{active:a.value}]),onClick:u[1]||(u[1]=f=>c())},u[3]||(u[3]=[r.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"},[r.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})],-1)]),2)])}}}),Wo=Le(r.defineComponent({__name:"LoadingCircle",props:{delay:{},dense:{type:Boolean}},setup(t){const e=t,n=r.ref(!1);return r.onMounted(async()=>{await new Promise(o=>setTimeout(o,e.delay??300)),n.value=!0}),(o,i)=>n.value?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["loading-circle",{dense:e.dense}])},i[0]||(i[0]=[r.createElementVNode("div",null,[r.createElementVNode("svg",{viewBox:"25 25 50 50"},[r.createElementVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"3","stroke-miterlimit":"10"})])],-1)]),2)):r.createCommentVNode("",!0)}}),[["__scopeId","data-v-29f59fc6"]]),Pa=["id","name","disabled","data-color","form","type","data-p-loading"],Kn=Le(r.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}},emits:["click"],setup(t,{emit:e}){const n=t;function o(){return new Pt(`${n.class??""} sf-button`).AddClass("select-none").AddClass("sf-button-small",n.size==="sm").AddClass("sf-button-medium",n.size==="md").AddClass("sf-button-large",n.size==="lg").AddClass("sf-button-filled",n.variant==="filled").AddClass("sf-button-text",n.variant==="text").AddClass("sf-button-outlined",n.variant==="outlined").AddClass("sf-button-with-icon",!!n.icon).Build()}const i=c=>{n.disabled||n.loading||a("click",c)},a=e;return(c,l)=>n.visible?(r.openBlock(),r.createElementBlock("button",{key:0,id:n.id,name:n.name,class:r.normalizeClass(o()),style:r.normalizeStyle(n.style),disabled:n.disabled,"data-color":n.color,form:n.form,type:n.type,"data-p-loading":n.loading,onClick:i},[n.loading?(r.openBlock(),r.createBlock(Wo,{key:0,dense:!0,delay:0,class:r.normalizeClass("icon-loading")})):r.createCommentVNode("",!0),n.icon?(r.openBlock(),r.createBlock(Ie,{key:1,icon:n.icon,size:n.size,"button-props":{tabindex:-1},filled:n.iconFilled,class:r.normalizeClass({transparent:n.loading})},null,8,["icon","size","filled","class"])):r.createCommentVNode("",!0),r.createElementVNode("span",{class:r.normalizeClass({"button-label":!0,"pl-2":!!n.icon,transparent:!n.disabled&&n.loading})},[r.renderSlot(c.$slots,"default",{},void 0,!0)],2)],14,Pa)):r.createCommentVNode("",!0)}}),[["__scopeId","data-v-b8d46db3"]]),Ia={class:"sf-drawer-title"},Aa={class:"sf-drawer-action"},Go=r.defineComponent({__name:"Drawer",props:{visible:{type:Boolean,default:!1},position:{default:"left"},style:{type:[Boolean,null,String,Object,Array]},dismissableMask:{type:Boolean,default:!0},title:{},unstyledHeader:{type:Boolean},unstyledContent:{type:Boolean},unstyledFooter:{type:Boolean}},emits:["update:visible","open","before-close"],setup(t,{emit:e}){const n=t,o=e,i=r.useSlots(),a=r.ref(n.visible),c=r.ref(!1),l=r.ref(0),s="sf-drawer-"+Math.random().toString(36).slice(2,11)+"-"+Date.now();function u(){a.value=!1}function d(y){if(!n.dismissableMask)return;const T=y.target;T&&T.id===s&&(a.value=!1)}function f(y){(y.key==="Escape"||y.code==="Escape")&&u()}function p(){o("open"),window.document.addEventListener("keydown",f,!0)}function h(y){l.value=zn()+1,y.style.zIndex=`${l.value}`}function C(y){o("before-close"),y?.parentElement?.classList.add("sf-mask-overlay-leave")}function w(){window.document.removeEventListener("keydown",f,!0),c.value=!1}function k(){return new Pt("sf-mask sf-mask-overlay").AddClass("right",n.position==="right").AddClass("bottom",n.position==="bottom").AddClass("center",n.position==="center").AddClass("full",n.position==="full").AddClass("sf-mask-overlay-enter",n.visible===!0).Build()}return r.watch(()=>n.visible,y=>{a.value=y}),r.watch(()=>a.value,y=>{o("update:visible",y),y&&(c.value=!0)}),(y,T)=>(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[c.value?(r.openBlock(),r.createElementBlock("div",{key:0,id:s,class:r.normalizeClass(k()),style:r.normalizeStyle({zIndex:l.value-1}),onClick:r.withModifiers(d,["stop"])},[r.createVNode(r.Transition,{name:"sf-drawer",appear:"",onBeforeEnter:h,onEnter:p,onBeforeLeave:C,onAfterLeave:w},{default:r.withCtx(()=>[a.value?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["sf-drawer"]),style:r.normalizeStyle(n.style),role:"dialog"},[r.renderSlot(y.$slots,"header",r.normalizeProps(r.guardReactiveProps({Close:u})),()=>[r.createElementVNode("div",{class:r.normalizeClass(["sf-drawer-header",{unstyled:n.unstyledHeader}])},[r.renderSlot(y.$slots,"title",{},()=>[r.createElementVNode("div",Ia,r.toDisplayString(n.title),1)]),T[0]||(T[0]=r.createElementVNode("div",{class:"sf-drawer-spacer"},null,-1)),r.createElementVNode("div",Aa,[r.renderSlot(y.$slots,"action",r.normalizeProps(r.guardReactiveProps({Close:u})),()=>[r.createVNode(Ie,{button:!0,icon:"close",onClick:u})])])],2)]),r.createElementVNode("div",{class:r.normalizeClass(["sf-drawer-content",{unstyled:n.unstyledContent}])},[r.renderSlot(y.$slots,"default")],2),r.unref(i).footer?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["sf-drawer-footer",{unstyled:n.unstyledFooter}])},[r.renderSlot(y.$slots,"footer",r.normalizeProps(r.guardReactiveProps({Close:u})))],2)):r.createCommentVNode("",!0)],4)):r.createCommentVNode("",!0)]),_:3})],6)):r.createCommentVNode("",!0)]))}}),xa=["data-icon"],$a=r.defineComponent({__name:"Message",props:{color:{default:"info"},class:{},style:{type:[Boolean,null,String,Object,Array]},icon:{}},setup(t){const e=t,n=r.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=r.computed(()=>new Pt("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(i,a)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(o.value),"data-icon":n.value},[r.renderSlot(i.$slots,"default")],10,xa))}});function Ba(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function Oa(t,e){if(t&&e){let n=o=>{Ba(t,o)||(t.classList?t.classList.add(o):t.className+=" "+o)};[e].flat().filter(Boolean).forEach(o=>o.split(" ").forEach(n))}}function Wn(t,e){if(t&&e){let 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 qo(t){return t?Math.abs(t.scrollLeft):0}function La(t,e){return t instanceof HTMLElement?t.offsetWidth:0}function Gn(t){return typeof Element<"u"?t instanceof Element:t!==null&&typeof t=="object"&&t.nodeType===1&&typeof t.nodeName=="string"}function Yo(t,e={}){if(Gn(t)){let n=(o,i)=>{var a,c;let l=(a=t?.$attrs)!=null&&a[o]?[(c=t?.$attrs)==null?void 0:c[o]]:[];return[i].flat().reduce((s,u)=>{if(u!=null){let d=typeof u;if(d==="string"||d==="number")s.push(u);else if(d==="object"){let f=Array.isArray(u)?n(o,u):Object.entries(u).map(([p,h])=>o==="style"&&(h||h===0)?`${p.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${h}`:h?p:void 0);s=f.length?s.concat(f.filter(p=>!!p)):s}}return s},l)};Object.entries(e).forEach(([o,i])=>{if(i!=null){let a=o.match(/^on(.+)/);a?t.addEventListener(a[1].toLowerCase(),i):o==="p-bind"||o==="pBind"?Yo(t,i):(i=o==="class"?[...new Set(n("class",i))].join(" ").trim():o==="style"?n("style",i).join(";").trim():i,(t.$attrs=t.$attrs||{})&&(t.$attrs[o]=i),t.setAttribute(o,i))}})}}function Na(t,e={},...n){{let o=document.createElement(t);return Yo(o,e),o.append(...n),o}}function Ae(t,e){return Gn(t)?t.matches(e)?t:t.querySelector(e):null}function It(t,e){t&&document.activeElement!==t&&t.focus(e)}function At(t,e){if(Gn(t)){let 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 Ma(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||qo(document.documentElement)||qo(document.body)||0)}}return{top:"auto",left:"auto"}}function Da(t,e){return t?t.offsetHeight:0}function Zo(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 mn(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function qn(t,e,n=new WeakSet){if(t===e)return!0;if(!t||!e||typeof t!="object"||typeof e!="object"||n.has(t)||n.has(e))return!1;n.add(t).add(e);let o=Array.isArray(t),i=Array.isArray(e),a,c,l;if(o&&i){if(c=t.length,c!=e.length)return!1;for(a=c;a--!==0;)if(!qn(t[a],e[a],n))return!1;return!0}if(o!=i)return!1;let s=t instanceof Date,u=e instanceof Date;if(s!=u)return!1;if(s&&u)return t.getTime()==e.getTime();let d=t instanceof RegExp,f=e instanceof RegExp;if(d!=f)return!1;if(d&&f)return t.toString()==e.toString();let p=Object.keys(t);if(c=p.length,c!==Object.keys(e).length)return!1;for(a=c;a--!==0;)if(!Object.prototype.hasOwnProperty.call(e,p[a]))return!1;for(a=c;a--!==0;)if(l=p[a],!qn(t[l],e[l],n))return!1;return!0}function Ra(t,e){return qn(t,e)}function Va(t){return typeof t=="function"&&"call"in t&&"apply"in t}function Z(t){return!mn(t)}function Jo(t,e){return null}function ct(t,e,n){return n?Jo()===Jo():Ra(t,e)}function Qo(t,e){let n;if(Z(t))try{n=t.findLast(e)}catch{n=[...t].reverse().find(e)}return n}function Yn(t,...e){return Va(t)?t(...e):t}function ja(t=""){return Z(t)&&t.length===1&&!!t.match(/\S| /)}function Ha(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function fn(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function Xn(t){return typeof t=="function"&&"call"in t&&"apply"in t}function U(t){return!fn(t)}function Ke(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function pe(t,...e){return Xn(t)?t(...e):t}function ue(t,e=!0){return typeof t=="string"&&(e||t!=="")}function xe(t){return ue(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function Zn(t,e="",n={}){let o=xe(e).split("."),i=o.shift();if(i){if(Ke(t)){let a=Object.keys(t).find(c=>xe(c)===i)||"";return Zn(pe(t[a],n),o.join("."),n)}return}return pe(t,n)}function er(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function Fa(t){return U(t)&&!isNaN(t)}function tt(t,e){if(e){let 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,":").trim()}function Ua(t){return ue(t,!1)?t[0].toUpperCase()+t.slice(1):t}function tr(t){return ue(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,n)=>n===0?e:"-"+e.toLowerCase()).toLowerCase():t}function nr(){let 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.forEach(i=>{i(n)})},clear(){t.clear()}}}function za(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function Ka(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&za(t))}function pn(t){return typeof Element<"u"?t instanceof Element:t!==null&&typeof t=="object"&&t.nodeType===1&&typeof t.nodeName=="string"}function Jn(t,e={}){if(pn(t)){let n=(o,i)=>{var a,c;let l=(a=t?.$attrs)!=null&&a[o]?[(c=t?.$attrs)==null?void 0:c[o]]:[];return[i].flat().reduce((s,u)=>{if(u!=null){let d=typeof u;if(d==="string"||d==="number")s.push(u);else if(d==="object"){let f=Array.isArray(u)?n(o,u):Object.entries(u).map(([p,h])=>o==="style"&&(h||h===0)?`${p.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${h}`:h?p:void 0);s=f.length?s.concat(f.filter(p=>!!p)):s}}return s},l)};Object.entries(e).forEach(([o,i])=>{if(i!=null){let a=o.match(/^on(.+)/);a?t.addEventListener(a[1].toLowerCase(),i):o==="p-bind"||o==="pBind"?Jn(t,i):(i=o==="class"?[...new Set(n("class",i))].join(" ").trim():o==="style"?n("style",i).join(";").trim():i,(t.$attrs=t.$attrs||{})&&(t.$attrs[o]=i),t.setAttribute(o,i))}})}}function Wa(t,e){return pn(t)?t.matches(e)?t:t.querySelector(e):null}function Ga(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function qa(t,e="",n){pn(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}var hn={};function Ya(t="pui_id_"){return Object.hasOwn(hn,t)||(hn[t]=0),hn[t]++,`${t}${hn[t]}`}var Xa=Object.defineProperty,Za=Object.defineProperties,Ja=Object.getOwnPropertyDescriptors,gn=Object.getOwnPropertySymbols,or=Object.prototype.hasOwnProperty,rr=Object.prototype.propertyIsEnumerable,ir=(t,e,n)=>e in t?Xa(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Se=(t,e)=>{for(var n in e||(e={}))or.call(e,n)&&ir(t,n,e[n]);if(gn)for(var n of gn(e))rr.call(e,n)&&ir(t,n,e[n]);return t},Qn=(t,e)=>Za(t,Ja(e)),Ne=(t,e)=>{var n={};for(var o in t)or.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&gn)for(var o of gn(t))e.indexOf(o)<0&&rr.call(t,o)&&(n[o]=t[o]);return n},Qa=nr(),ie=Qa,$t=/{([^}]*)}/g,ar=/(\d+\s+[\+\-\*\/]\s+\d+)/g,sr=/var\([^)]+\)/g;function lr(t){return ue(t)?t.replace(/[A-Z]/g,(e,n)=>n===0?e:"."+e.toLowerCase()).toLowerCase():t}function es(t){return Ke(t)&&t.hasOwnProperty("$value")&&t.hasOwnProperty("$type")?t.$value:t}function ts(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function eo(t="",e=""){return ts(`${ue(t,!1)&&ue(e,!1)?`${t}-`:t}${e}`)}function cr(t="",e=""){return`--${eo(t,e)}`}function ns(t=""){let e=(t.match(/{/g)||[]).length,n=(t.match(/}/g)||[]).length;return(e+n)%2!==0}function ur(t,e="",n="",o=[],i){if(ue(t)){let a=t.trim();if(ns(a))return;if(tt(a,$t)){let c=a.replaceAll($t,l=>{let s=l.replace(/{|}/g,"").split(".").filter(u=>!o.some(d=>tt(u,d)));return`var(${cr(n,tr(s.join("-")))}${U(i)?`, ${i}`:""})`});return tt(c.replace(sr,"0"),ar)?`calc(${c})`:c}return a}else if(Fa(t))return t}function os(t,e,n){ue(e,!1)&&t.push(`${e}:${n};`)}function ut(t,e){return t?`${t}{${e}}`:""}function dr(t,e){if(t.indexOf("dt(")===-1)return t;function n(c,l){let s=[],u=0,d="",f=null,p=0;for(;u<=c.length;){let h=c[u];if((h==='"'||h==="'"||h==="`")&&c[u-1]!=="\\"&&(f=f===h?null:h),!f&&(h==="("&&p++,h===")"&&p--,(h===","||u===c.length)&&p===0)){let C=d.trim();C.startsWith("dt(")?s.push(dr(C,l)):s.push(o(C)),d="",u++;continue}h!==void 0&&(d+=h),u++}return s}function o(c){let l=c[0];if((l==='"'||l==="'"||l==="`")&&c[c.length-1]===l)return c.slice(1,-1);let s=Number(c);return isNaN(s)?c:s}let i=[],a=[];for(let c=0;c<t.length;c++)if(t[c]==="d"&&t.slice(c,c+3)==="dt(")a.push(c),c+=2;else if(t[c]===")"&&a.length>0){let l=a.pop();a.length===0&&i.push([l,c])}if(!i.length)return t;for(let c=i.length-1;c>=0;c--){let[l,s]=i[c],u=t.slice(l+3,s),d=n(u,e),f=e(...d);t=t.slice(0,l)+f+t.slice(s+1)}return t}var nt=(...t)=>rs(j.getTheme(),...t),rs=(t={},e,n,o)=>{if(e){let{variable:i,options:a}=j.defaults||{},{prefix:c,transform:l}=t?.options||a||{},s=tt(e,$t)?e:`{${e}}`;return o==="value"||fn(o)&&l==="strict"?j.getTokenValue(e):ur(s,void 0,c,[i.excludedKeyRegex],n)}return""};function yn(t,...e){if(t instanceof Array){let n=t.reduce((o,i,a)=>{var c;return o+i+((c=pe(e[a],{dt:nt}))!=null?c:"")},"");return dr(n,nt)}return pe(t,{dt:nt})}function is(t,e={}){let n=j.defaults.variable,{prefix:o=n.prefix,selector:i=n.selector,excludedKeyRegex:a=n.excludedKeyRegex}=e,c=[],l=[],s=[{node:t,path:o}];for(;s.length;){let{node:d,path:f}=s.pop();for(let p in d){let h=d[p],C=es(h),w=tt(p,a)?eo(f):eo(f,tr(p));if(Ke(C))s.push({node:C,path:w});else{let k=cr(w),y=ur(C,w,o,[a]);os(l,k,y);let T=w;o&&T.startsWith(o+"-")&&(T=T.slice(o.length+1)),c.push(T.replace(/-/g,"."))}}}let u=l.join("");return{value:l,tokens:c,declarations:u,css:ut(i,u)}}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,matched:this.pattern.test(t.trim())}}},system:{pattern:/^system$/,resolve(t){return{type:"system",selector:"@media (prefers-color-scheme: dark)",matched:this.pattern.test(t.trim())}}},custom:{resolve(t){return{type:"custom",selector:t,matched:!0}}}},resolve(t){let 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(i=>i.resolve(n)).find(i=>i.matched))!=null?o:this.rules.custom.resolve(n)})}},_toVariables(t,e){return is(t,{prefix:e?.prefix})},getCommon({name:t="",theme:e={},params:n,set:o,defaults:i}){var a,c,l,s,u,d,f;let{preset:p,options:h}=e,C,w,k,y,T,P,v;if(U(p)&&h.transform!=="strict"){let{primitive:_,semantic:z,extend:X}=p,Ce=z||{},{colorScheme:te}=Ce,we=Ne(Ce,["colorScheme"]),I=X||{},{colorScheme:V}=I,ne=Ne(I,["colorScheme"]),ce=te||{},{dark:Pe}=ce,Xe=Ne(ce,["dark"]),Re=V||{},{dark:Ve}=Re,Ze=Ne(Re,["dark"]),ke=U(_)?this._toVariables({primitive:_},h):{},R=U(we)?this._toVariables({semantic:we},h):{},Be=U(Xe)?this._toVariables({light:Xe},h):{},K=U(Pe)?this._toVariables({dark:Pe},h):{},je=U(ne)?this._toVariables({semantic:ne},h):{},H=U(Ze)?this._toVariables({light:Ze},h):{},Je=U(Ve)?this._toVariables({dark:Ve},h):{},[rn,Ln]=[(a=ke.declarations)!=null?a:"",ke.tokens],[an,Nn]=[(c=R.declarations)!=null?c:"",R.tokens||[]],[Mn,Qe]=[(l=Be.declarations)!=null?l:"",Be.tokens||[]],[bt,He]=[(s=K.declarations)!=null?s:"",K.tokens||[]],[sn,ln]=[(u=je.declarations)!=null?u:"",je.tokens||[]],[et,Ct]=[(d=H.declarations)!=null?d:"",H.tokens||[]],[wt,Dn]=[(f=Je.declarations)!=null?f:"",Je.tokens||[]];C=this.transformCSS(t,rn,"light","variable",h,o,i),w=Ln;let Rn=this.transformCSS(t,`${an}${Mn}`,"light","variable",h,o,i),Do=this.transformCSS(t,`${bt}`,"dark","variable",h,o,i);k=`${Rn}${Do}`,y=[...new Set([...Nn,...Qe,...He])];let cn=this.transformCSS(t,`${sn}${et}color-scheme:light`,"light","variable",h,o,i),lt=this.transformCSS(t,`${wt}color-scheme:dark`,"dark","variable",h,o,i);T=`${cn}${lt}`,P=[...new Set([...ln,...Ct,...Dn])],v=pe(p.css,{dt:nt})}return{primitive:{css:C,tokens:w},semantic:{css:k,tokens:y},global:{css:T,tokens:P},style:v}},getPreset({name:t="",preset:e={},options:n,params:o,set:i,defaults:a,selector:c}){var l,s,u;let d,f,p;if(U(e)&&n.transform!=="strict"){let h=t.replace("-directive",""),C=e,{colorScheme:w,extend:k,css:y}=C,T=Ne(C,["colorScheme","extend","css"]),P=k||{},{colorScheme:v}=P,_=Ne(P,["colorScheme"]),z=w||{},{dark:X}=z,Ce=Ne(z,["dark"]),te=v||{},{dark:we}=te,I=Ne(te,["dark"]),V=U(T)?this._toVariables({[h]:Se(Se({},T),_)},n):{},ne=U(Ce)?this._toVariables({[h]:Se(Se({},Ce),I)},n):{},ce=U(X)?this._toVariables({[h]:Se(Se({},X),we)},n):{},[Pe,Xe]=[(l=V.declarations)!=null?l:"",V.tokens||[]],[Re,Ve]=[(s=ne.declarations)!=null?s:"",ne.tokens||[]],[Ze,ke]=[(u=ce.declarations)!=null?u:"",ce.tokens||[]],R=this.transformCSS(h,`${Pe}${Re}`,"light","variable",n,i,a,c),Be=this.transformCSS(h,Ze,"dark","variable",n,i,a,c);d=`${R}${Be}`,f=[...new Set([...Xe,...Ve,...ke])],p=pe(y,{dt:nt})}return{css:d,tokens:f,style:p}},getPresetC({name:t="",theme:e={},params:n,set:o,defaults:i}){var a;let{preset:c,options:l}=e,s=(a=c?.components)==null?void 0:a[t];return this.getPreset({name:t,preset:s,options:l,params:n,set:o,defaults:i})},getPresetD({name:t="",theme:e={},params:n,set:o,defaults:i}){var a,c;let l=t.replace("-directive",""),{preset:s,options:u}=e,d=((a=s?.components)==null?void 0:a[l])||((c=s?.directives)==null?void 0:c[l]);return this.getPreset({name:l,preset:d,options:u,params:n,set:o,defaults:i})},applyDarkColorScheme(t){return!(t.darkModeSelector==="none"||t.darkModeSelector===!1)},getColorSchemeOption(t,e){var n;return this.applyDarkColorScheme(t)?this.regex.resolve(t.darkModeSelector===!0?e.options.darkModeSelector:(n=t.darkModeSelector)!=null?n:e.options.darkModeSelector):[]},getLayerOrder(t,e={},n,o){let{cssLayer:i}=e;return i?`@layer ${pe(i.order||i.name||"primeui",n)}`:""},getCommonStyleSheet({name:t="",theme:e={},params:n,props:o={},set:i,defaults:a}){let c=this.getCommon({name:t,theme:e,params:n,set:i,defaults:a}),l=Object.entries(o).reduce((s,[u,d])=>s.push(`${u}="${d}"`)&&s,[]).join(" ");return Object.entries(c||{}).reduce((s,[u,d])=>{if(Ke(d)&&Object.hasOwn(d,"css")){let f=xt(d.css),p=`${u}-variables`;s.push(`<style type="text/css" data-primevue-style-id="${p}" ${l}>${f}</style>`)}return s},[]).join("")},getStyleSheet({name:t="",theme:e={},params:n,props:o={},set:i,defaults:a}){var c;let l={name:t,theme:e,params:n,set:i,defaults:a},s=(c=t.includes("-directive")?this.getPresetD(l):this.getPresetC(l))==null?void 0:c.css,u=Object.entries(o).reduce((d,[f,p])=>d.push(`${f}="${p}"`)&&d,[]).join(" ");return s?`<style type="text/css" data-primevue-style-id="${t}-variables" ${u}>${xt(s)}</style>`:""},createTokens(t={},e,n="",o="",i={}){let a=function(l,s={},u=[]){if(u.includes(this.path))return console.warn(`Circular reference detected at ${this.path}`),{colorScheme:l,path:this.path,paths:s,value:void 0};u.push(this.path),s.name=this.path,s.binding||(s.binding={});let d=this.value;if(typeof this.value=="string"&&$t.test(this.value)){let f=this.value.trim().replace($t,p=>{var h;let C=p.slice(1,-1),w=this.tokens[C];if(!w)return console.warn(`Token not found for path: ${C}`),"__UNRESOLVED__";let k=w.computed(l,s,u);return Array.isArray(k)&&k.length===2?`light-dark(${k[0].value},${k[1].value})`:(h=k?.value)!=null?h:"__UNRESOLVED__"});d=ar.test(f.replace(sr,"0"))?`calc(${f})`:f}return fn(s.binding)&&delete s.binding,u.pop(),{colorScheme:l,path:this.path,paths:s,value:d.includes("__UNRESOLVED__")?void 0:d}},c=(l,s,u)=>{Object.entries(l).forEach(([d,f])=>{let p=tt(d,e.variable.excludedKeyRegex)?s:s?`${s}.${lr(d)}`:lr(d),h=u?`${u}.${d}`:d;Ke(f)?c(f,p,h):(i[p]||(i[p]={paths:[],computed:(C,w={},k=[])=>{if(i[p].paths.length===1)return i[p].paths[0].computed(i[p].paths[0].scheme,w.binding,k);if(C&&C!=="none")for(let y=0;y<i[p].paths.length;y++){let T=i[p].paths[y];if(T.scheme===C)return T.computed(C,w.binding,k)}return i[p].paths.map(y=>y.computed(y.scheme,w[y.scheme],k))}}),i[p].paths.push({path:h,value:f,scheme:h.includes("colorScheme.light")?"light":h.includes("colorScheme.dark")?"dark":"none",computed:a,tokens:i}))})};return c(t,n,o),i},getTokenValue(t,e,n){var o;let i=(l=>l.split(".").filter(s=>!tt(s.toLowerCase(),n.variable.excludedKeyRegex)).join("."))(e),a=e.includes("colorScheme.light")?"light":e.includes("colorScheme.dark")?"dark":void 0,c=[(o=t[i])==null?void 0:o.computed(a)].flat().filter(l=>l);return c.length===1?c[0].value:c.reduce((l={},s)=>{let u=s,{colorScheme:d}=u,f=Ne(u,["colorScheme"]);return l[d]=f,l},void 0)},getSelectorRule(t,e,n,o){return n==="class"||n==="attr"?ut(U(e)?`${t}${e},${t} ${e}`:t,o):ut(t,ut(e??":root",o))},transformCSS(t,e,n,o,i={},a,c,l){if(U(e)){let{cssLayer:s}=i;if(o!=="style"){let u=this.getColorSchemeOption(i,c);e=n==="dark"?u.reduce((d,{type:f,selector:p})=>(U(p)&&(d+=p.includes("[CSS]")?p.replace("[CSS]",e):this.getSelectorRule(p,l,f,e)),d),""):ut(l??":root",e)}if(s){let u={name:"primeui"};Ke(s)&&(u.name=pe(s.name,{name:t,type:o})),U(u.name)&&(e=ut(`@layer ${u.name}`,e),a?.layerNames(u.name))}return e}return""}},j={defaults:{variable:{prefix:"p",selector:":root",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(t={}){let{theme:e}=t;e&&(this._theme=Qn(Se({},e),{options:Se(Se({},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}),ie.emit("theme:change",t)},getPreset(){return this.preset},setPreset(t){this._theme=Qn(Se({},this.theme),{preset:t}),this._tokens=_e.createTokens(t,this.defaults),this.clearLoadedStyleNames(),ie.emit("preset:change",t),ie.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(t){this._theme=Qn(Se({},this.theme),{options:t}),this.clearLoadedStyleNames(),ie.emit("options:change",t),ie.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){let n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return _e.getPresetC(n)},getDirective(t="",e){let 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){let i={name:t,preset:e,options:this.options,selector:n,params:o,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return _e.getPreset(i)},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),ie.emit(`theme:${e}:load`,t),!this._loadingStyles.size&&ie.emit("theme:load"))}},We={_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()}},as=`
2
2
  *,
3
3
  ::before,
4
4
  ::after {
@@ -121,8 +121,8 @@
121
121
  background: transparent;
122
122
  }
123
123
  }
124
- `;function $t(t){"@babel/helpers - typeof";return $t=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},$t(t)}function cr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function ur(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?cr(Object(n),!0).forEach(function(o){as(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):cr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function as(t,e,n){return(e=ss(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ss(t){var e=ls(t,"string");return $t(e)=="symbol"?e:e+""}function ls(t,e){if($t(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if($t(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function cs(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;r.getCurrentInstance()&&r.getCurrentInstance().components?r.onMounted(t):e?t():r.nextTick(t)}var us=0;function ds(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.ref(!1),o=r.ref(t),i=r.ref(null),a=za()?window.document:void 0,c=e.document,l=c===void 0?a:c,s=e.immediate,u=s===void 0?!0:s,m=e.manual,f=m===void 0?!1:m,p=e.name,h=p===void 0?"style_".concat(++us):p,C=e.id,w=C===void 0?void 0:C,k=e.media,y=k===void 0?void 0:k,P=e.nonce,T=P===void 0?void 0:P,v=e.first,_=v===void 0?!1:v,z=e.onMounted,X=z===void 0?void 0:z,Ce=e.onUpdated,te=Ce===void 0?void 0:Ce,we=e.onLoad,I=we===void 0?void 0:we,V=e.props,ne=V===void 0?{}:V,ce=function(){},Pe=function(Ve){var Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(l){var ke=ur(ur({},ne),Xe),R=ke.name||h,Be=ke.id||w,K=ke.nonce||T;i.value=l.querySelector('style[data-primevue-style-id="'.concat(R,'"]'))||l.getElementById(Be)||l.createElement("style"),i.value.isConnected||(o.value=Ve||t,Zn(i.value,{type:"text/css",id:Be,media:y,nonce:K}),_?l.head.prepend(i.value):l.head.appendChild(i.value),Ka(i.value,"data-primevue-style-id",R),Zn(i.value,ke),i.value.onload=function(je){return I?.(je,{name:R})},X?.(R)),!n.value&&(ce=r.watch(o,function(je){i.value.textContent=je,te?.(R)},{immediate:!0}),n.value=!0)}},Ye=function(){!l||!n.value||(ce(),Fa(i.value)&&l.head.removeChild(i.value),n.value=!1,i.value=null)};return u&&!f&&cs(Pe),{id:w,name:h,el:i,css:o,unload:Ye,load:Pe,isLoaded:r.readonly(n)}}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)}var dr,mr,fr,pr;function hr(t,e){return hs(t)||ps(t,e)||fs(t,e)||ms()}function ms(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
125
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fs(t,e){if(t){if(typeof t=="string")return gr(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)?gr(t,e):void 0}}function gr(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 ps(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,i,a,c,l=[],s=!0,u=!1;try{if(a=(n=n.call(t)).next,e!==0)for(;!(s=(o=a.call(n)).done)&&(l.push(o.value),l.length!==e);s=!0);}catch(m){u=!0,i=m}finally{try{if(!s&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(u)throw i}}return l}}function hs(t){if(Array.isArray(t))return t}function yr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function to(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?yr(Object(n),!0).forEach(function(o){gs(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function gs(t,e,n){return(e=ys(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ys(t){var e=vs(t,"string");return Bt(e)=="symbol"?e:e+""}function vs(t,e){if(Bt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Bt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function gn(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var bs=function(e){var n=e.dt;return`
124
+ `;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 mr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function fr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?mr(Object(n),!0).forEach(function(o){ss(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):mr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function ss(t,e,n){return(e=ls(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ls(t){var e=cs(t,"string");return Bt(e)=="symbol"?e:e+""}function cs(t,e){if(Bt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Bt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function us(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;r.getCurrentInstance()&&r.getCurrentInstance().components?r.onMounted(t):e?t():r.nextTick(t)}var ds=0;function ms(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.ref(!1),o=r.ref(t),i=r.ref(null),a=Ga()?window.document:void 0,c=e.document,l=c===void 0?a:c,s=e.immediate,u=s===void 0?!0:s,d=e.manual,f=d===void 0?!1:d,p=e.name,h=p===void 0?"style_".concat(++ds):p,C=e.id,w=C===void 0?void 0:C,k=e.media,y=k===void 0?void 0:k,T=e.nonce,P=T===void 0?void 0:T,v=e.first,_=v===void 0?!1:v,z=e.onMounted,X=z===void 0?void 0:z,Ce=e.onUpdated,te=Ce===void 0?void 0:Ce,we=e.onLoad,I=we===void 0?void 0:we,V=e.props,ne=V===void 0?{}:V,ce=function(){},Pe=function(Ve){var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(l){var ke=fr(fr({},ne),Ze),R=ke.name||h,Be=ke.id||w,K=ke.nonce||P;i.value=l.querySelector('style[data-primevue-style-id="'.concat(R,'"]'))||l.getElementById(Be)||l.createElement("style"),i.value.isConnected||(o.value=Ve||t,Jn(i.value,{type:"text/css",id:Be,media:y,nonce:K}),_?l.head.prepend(i.value):l.head.appendChild(i.value),qa(i.value,"data-primevue-style-id",R),Jn(i.value,ke),i.value.onload=function(je){return I?.(je,{name:R})},X?.(R)),!n.value&&(ce=r.watch(o,function(je){i.value.textContent=je,te?.(R)},{immediate:!0}),n.value=!0)}},Xe=function(){!l||!n.value||(ce(),Ka(i.value)&&l.head.removeChild(i.value),n.value=!1,i.value=null)};return u&&!f&&us(Pe),{id:w,name:h,el:i,css:o,unload:Xe,load:Pe,isLoaded:r.readonly(n)}}function Ot(t){"@babel/helpers - typeof";return Ot=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},Ot(t)}var pr,hr,gr,yr;function vr(t,e){return gs(t)||hs(t,e)||ps(t,e)||fs()}function fs(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
125
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ps(t,e){if(t){if(typeof t=="string")return br(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)?br(t,e):void 0}}function br(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 hs(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,i,a,c,l=[],s=!0,u=!1;try{if(a=(n=n.call(t)).next,e!==0)for(;!(s=(o=a.call(n)).done)&&(l.push(o.value),l.length!==e);s=!0);}catch(d){u=!0,i=d}finally{try{if(!s&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(u)throw i}}return l}}function gs(t){if(Array.isArray(t))return t}function Cr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function to(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Cr(Object(n),!0).forEach(function(o){ys(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Cr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function ys(t,e,n){return(e=vs(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function vs(t){var e=bs(t,"string");return Ot(e)=="symbol"?e:e+""}function bs(t,e){if(Ot(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Ot(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function vn(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var Cs=function(e){var n=e.dt;return`
126
126
  .p-hidden-accessible {
127
127
  border: 0;
128
128
  clip: rect(0 0 0 0);
@@ -141,8 +141,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
141
141
  overflow: hidden;
142
142
  padding-right: `.concat(n("scrollbar.width"),`;
143
143
  }
144
- `)},Cs={},ws={},q={name:"base",css:bs,style:is,classes:Cs,inlineStyles:ws,load:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(a){return a},i=o(hn(dr||(dr=gn(["",""])),e));return U(i)?ds(xt(i),to({name:this.name},n)):{}},loadCSS:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.load(this.css,e)},loadStyle:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return this.load(this.style,n,function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return j.transformCSS(n.name||e.name,"".concat(i).concat(hn(mr||(mr=gn(["",""])),o)))})},getCommonTheme:function(e){return j.getCommon(this.name,e)},getComponentTheme:function(e){return j.getComponent(this.name,e)},getDirectiveTheme:function(e){return j.getDirective(this.name,e)},getPresetTheme:function(e,n,o){return j.getCustomPreset(this.name,e,n,o)},getLayerOrderThemeCSS:function(){return j.getLayerOrderCSS(this.name)},getStyleSheet:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.css){var o=fe(this.css,{dt:tt})||"",i=xt(hn(fr||(fr=gn(["","",""])),o,e)),a=Object.entries(n).reduce(function(c,l){var s=hr(l,2),u=s[0],m=s[1];return c.push("".concat(u,'="').concat(m,'"'))&&c},[]).join(" ");return U(i)?'<style type="text/css" data-primevue-style-id="'.concat(this.name,'" ').concat(a,">").concat(i,"</style>"):""}return""},getCommonThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return j.getCommonStyleSheet(this.name,e,n)},getThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=[j.getStyleSheet(this.name,e,n)];if(this.style){var i=this.name==="base"?"global-style":"".concat(this.name,"-style"),a=hn(pr||(pr=gn(["",""])),fe(this.style,{dt:tt})),c=xt(j.transformCSS(i,a)),l=Object.entries(n).reduce(function(s,u){var m=hr(u,2),f=m[0],p=m[1];return s.push("".concat(f,'="').concat(p,'"'))&&s},[]).join(" ");U(c)&&o.push('<style type="text/css" data-primevue-style-id="'.concat(i,'" ').concat(l,">").concat(c,"</style>"))}return o.join("")},extend:function(e){return to(to({},this),{},{css:void 0,style:void 0},e)}};function ks(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pc",e=r.useId();return"".concat(t).concat(e.replace("v-","").replaceAll("-","_"))}var vr=q.extend({name:"common"});function Ot(t){"@babel/helpers - typeof";return Ot=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},Ot(t)}function Ss(t){return kr(t)||_s(t)||Cr(t)||br()}function _s(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Lt(t,e){return kr(t)||Es(t,e)||Cr(t,e)||br()}function br(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
145
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cr(t,e){if(t){if(typeof t=="string")return wr(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)?wr(t,e):void 0}}function wr(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 Es(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,i,a,c,l=[],s=!0,u=!1;try{if(a=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=a.call(n)).done)&&(l.push(o.value),l.length!==e);s=!0);}catch(m){u=!0,i=m}finally{try{if(!s&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(u)throw i}}return l}}function kr(t){if(Array.isArray(t))return t}function Sr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function L(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Sr(Object(n),!0).forEach(function(o){Nt(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Sr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Nt(t,e,n){return(e=Ts(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ts(t){var e=Ps(t,"string");return Ot(e)=="symbol"?e:e+""}function Ps(t,e){if(Ot(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Ot(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var yn={name:"BaseComponent",props:{pt:{type:Object,default:void 0},ptOptions:{type:Object,default:void 0},unstyled:{type:Boolean,default:void 0},dt:{type:Object,default:void 0}},inject:{$parentInstance:{default:void 0}},watch:{isUnstyled:{immediate:!0,handler:function(e){ie.off("theme:change",this._loadCoreStyles),e||(this._loadCoreStyles(),this._themeChangeListener(this._loadCoreStyles))}},dt:{immediate:!0,handler:function(e,n){var o=this;ie.off("theme:change",this._themeScopedListener),e?(this._loadScopedThemeStyles(e),this._themeScopedListener=function(){return o._loadScopedThemeStyles(e)},this._themeChangeListener(this._themeScopedListener)):this._unloadScopedThemeStyles()}}},scopedStyleEl:void 0,rootEl:void 0,uid:void 0,$attrSelector:void 0,beforeCreate:function(){var e,n,o,i,a,c,l,s,u,m,f,p=(e=this.pt)===null||e===void 0?void 0:e._usept,h=p?(n=this.pt)===null||n===void 0||(n=n.originalValue)===null||n===void 0?void 0:n[this.$.type.name]:void 0,C=p?(o=this.pt)===null||o===void 0||(o=o.value)===null||o===void 0?void 0:o[this.$.type.name]:this.pt;(i=C||h)===null||i===void 0||(i=i.hooks)===null||i===void 0||(a=i.onBeforeCreate)===null||a===void 0||a.call(i);var w=(c=this.$primevueConfig)===null||c===void 0||(c=c.pt)===null||c===void 0?void 0:c._usept,k=w?(l=this.$primevue)===null||l===void 0||(l=l.config)===null||l===void 0||(l=l.pt)===null||l===void 0?void 0:l.originalValue:void 0,y=w?(s=this.$primevue)===null||s===void 0||(s=s.config)===null||s===void 0||(s=s.pt)===null||s===void 0?void 0:s.value:(u=this.$primevue)===null||u===void 0||(u=u.config)===null||u===void 0?void 0:u.pt;(m=y||k)===null||m===void 0||(m=m[this.$.type.name])===null||m===void 0||(m=m.hooks)===null||m===void 0||(f=m.onBeforeCreate)===null||f===void 0||f.call(m),this.$attrSelector=ks(),this.uid=this.$attrs.id||this.$attrSelector.replace("pc","pv_id_")},created:function(){this._hook("onCreated")},beforeMount:function(){var e;this.rootEl=Ua(mn(this.$el)?this.$el:(e=this.$el)===null||e===void 0?void 0:e.parentElement,"[".concat(this.$attrSelector,"]")),this.rootEl&&(this.rootEl.$pc=L({name:this.$.type.name,attrSelector:this.$attrSelector},this.$params)),this._loadStyles(),this._hook("onBeforeMount")},mounted:function(){this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._removeThemeListeners(),this._unloadScopedThemeStyles(),this._hook("onUnmounted")},methods:{_hook:function(e){if(!this.$options.hostName){var n=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,"hooks.".concat(e)),o=this._useDefaultPT(this._getOptionValue,"hooks.".concat(e));n?.(),o?.()}},_mergeProps:function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return Yn(e)?e.apply(void 0,o):r.mergeProps.apply(void 0,o)},_load:function(){Ke.isStyleNameLoaded("base")||(q.loadCSS(this.$styleOptions),this._loadGlobalStyles(),Ke.setLoadedStyleName("base")),this._loadThemeStyles()},_loadStyles:function(){this._load(),this._themeChangeListener(this._load)},_loadCoreStyles:function(){var e,n;!Ke.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name&&(vr.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),Ke.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);U(e)&&q.load(e,L({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,n;if(!(this.isUnstyled||this.$theme==="none")){if(!j.isStyleNameLoaded("common")){var o,i,a=((o=this.$style)===null||o===void 0||(i=o.getCommonTheme)===null||i===void 0?void 0:i.call(o))||{},c=a.primitive,l=a.semantic,s=a.global,u=a.style;q.load(c?.css,L({name:"primitive-variables"},this.$styleOptions)),q.load(l?.css,L({name:"semantic-variables"},this.$styleOptions)),q.load(s?.css,L({name:"global-variables"},this.$styleOptions)),q.loadStyle(L({name:"global-style"},this.$styleOptions),u),j.setLoadedStyleName("common")}if(!j.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name){var m,f,p,h,C=((m=this.$style)===null||m===void 0||(f=m.getComponentTheme)===null||f===void 0?void 0:f.call(m))||{},w=C.css,k=C.style;(p=this.$style)===null||p===void 0||p.load(w,L({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(h=this.$style)===null||h===void 0||h.loadStyle(L({name:"".concat(this.$style.name,"-style")},this.$styleOptions),k),j.setLoadedStyleName(this.$style.name)}if(!j.isStyleNameLoaded("layer-order")){var y,P,T=(y=this.$style)===null||y===void 0||(P=y.getLayerOrderThemeCSS)===null||P===void 0?void 0:P.call(y);q.load(T,L({name:"layer-order",first:!0},this.$styleOptions)),j.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(e){var n,o,i,a=((n=this.$style)===null||n===void 0||(o=n.getPresetTheme)===null||o===void 0?void 0:o.call(n,e,"[".concat(this.$attrSelector,"]")))||{},c=a.css,l=(i=this.$style)===null||i===void 0?void 0:i.load(c,L({name:"".concat(this.$attrSelector,"-").concat(this.$style.name)},this.$styleOptions));this.scopedStyleEl=l.el},_unloadScopedThemeStyles:function(){var e;(e=this.scopedStyleEl)===null||e===void 0||(e=e.value)===null||e===void 0||e.remove()},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};Ke.clearLoadedStyleNames(),ie.on("theme:change",e)},_removeThemeListeners:function(){ie.off("theme:change",this._loadCoreStyles),ie.off("theme:change",this._load),ie.off("theme:change",this._themeScopedListener)},_getHostInstance:function(e){return e?this.$options.hostName?e.$.type.name===this.$options.hostName?e:this._getHostInstance(e.$parentInstance):e.$parentInstance:void 0},_getPropValue:function(e){var n;return this[e]||((n=this._getHostInstance(this))===null||n===void 0?void 0:n[e])},_getOptionValue:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Xn(e,n,o)},_getPTValue:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,c=/./g.test(o)&&!!i[o.split(".")[0]],l=this._getPropValue("ptOptions")||((e=this.$primevueConfig)===null||e===void 0?void 0:e.ptOptions)||{},s=l.mergeSections,u=s===void 0?!0:s,m=l.mergeProps,f=m===void 0?!1:m,p=a?c?this._useGlobalPT(this._getPTClassValue,o,i):this._useDefaultPT(this._getPTClassValue,o,i):void 0,h=c?void 0:this._getPTSelf(n,this._getPTClassValue,o,L(L({},i),{},{global:p||{}})),C=this._getPTDatasets(o);return u||!u&&h?f?this._mergeProps(f,p,h,C):L(L(L({},p),h),C):L(L({},h),C)},_getPTSelf:function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.mergeProps(this._usePT.apply(this,[this._getPT(e,this.$name)].concat(o)),this._usePT.apply(this,[this.$_attrsPT].concat(o)))},_getPTDatasets:function(){var e,n,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",i="data-pc-",a=o==="root"&&U((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return o!=="transition"&&L(L({},o==="root"&&L(L(Nt({},"".concat(i,"name"),xe(a?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),a&&Nt({},"".concat(i,"extend"),xe(this.$.type.name))),{},Nt({},"".concat(this.$attrSelector),""))),{},Nt({},"".concat(i,"section"),xe(o)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return pe(e)||er(e)?{class:e}:e},_getPT:function(e){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,a=function(l){var s,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=i?i(l):l,f=xe(o),p=xe(n.$name);return(s=u?f!==p?m?.[f]:void 0:m?.[f])!==null&&s!==void 0?s:m};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:a(e.originalValue),value:a(e.value)}:a(e,!0)},_usePT:function(e,n,o,i){var a=function(w){return n(w,o,i)};if(e!=null&&e.hasOwnProperty("_usept")){var c,l=e._usept||((c=this.$primevueConfig)===null||c===void 0?void 0:c.ptOptions)||{},s=l.mergeSections,u=s===void 0?!0:s,m=l.mergeProps,f=m===void 0?!1:m,p=a(e.originalValue),h=a(e.value);return p===void 0&&h===void 0?void 0:pe(h)?h:pe(p)?p:u||!u&&h?f?this._mergeProps(f,p,h):L(L({},p),h):h}return a(e)},_useGlobalPT:function(e,n,o){return this._usePT(this.globalPT,e,n,o)},_useDefaultPT:function(e,n,o){return this._usePT(this.defaultPT,e,n,o)},ptm:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._getPTValue(this.pt,e,L(L({},this.$params),n))},ptmi:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.mergeProps(this.$_attrsWithoutPT,this.ptm(n,o));return i?.hasOwnProperty("id")&&((e=i.id)!==null&&e!==void 0||(i.id=this.$id)),i},ptmo: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?arguments[2]:{};return this._getPTValue(e,n,L({instance:this},o),!1)},cx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,e,L(L({},this.$params),n))},sx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(n){var i=this._getOptionValue(this.$style.inlineStyles,e,L(L({},this.$params),o)),a=this._getOptionValue(vr.inlineStyles,e,L(L({},this.$params),o));return[a,i]}}},computed:{globalPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(o){return fe(o,{instance:n})})},defaultPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(o){return n._getOptionValue(o,n.$name,L({},n.$params))||fe(o,L({},n.$params))})},isUnstyled:function(){var e;return this.unstyled!==void 0?this.unstyled:(e=this.$primevueConfig)===null||e===void 0?void 0:e.unstyled},$id:function(){return this.$attrs.id||this.uid},$inProps:function(){var e,n=Object.keys(((e=this.$.vnode)===null||e===void 0?void 0:e.props)||{});return Object.fromEntries(Object.entries(this.$props).filter(function(o){var i=Lt(o,1),a=i[0];return n?.includes(a)}))},$theme:function(){var e;return(e=this.$primevueConfig)===null||e===void 0?void 0:e.theme},$style:function(){return L(L({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadStyle:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$styleOptions:function(){var e;return{nonce:(e=this.$primevueConfig)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce}},$primevueConfig:function(){var e;return(e=this.$primevue)===null||e===void 0?void 0:e.config},$name:function(){return this.$options.hostName||this.$.type.name},$params:function(){var e=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:e,props:e?.$props,state:e?.$data,attrs:e?.$attrs}}},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=Lt(e,1),o=n[0];return o?.startsWith("pt:")}).reduce(function(e,n){var o=Lt(n,2),i=o[0],a=o[1],c=i.split(":"),l=Ss(c),s=l.slice(1);return s?.reduce(function(u,m,f,p){return!u[m]&&(u[m]=f===p.length-1?a:{}),u[m]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=Lt(e,1),o=n[0];return!(o!=null&&o.startsWith("pt:"))}).reduce(function(e,n){var o=Lt(n,2),i=o[0],a=o[1];return e[i]=a,e},{})}}},Is=`
144
+ `)},ws={},ks={},q={name:"base",css:Cs,style:as,classes:ws,inlineStyles:ks,load:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(a){return a},i=o(yn(pr||(pr=vn(["",""])),e));return U(i)?ms(xt(i),to({name:this.name},n)):{}},loadCSS:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.load(this.css,e)},loadStyle:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return this.load(this.style,n,function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return j.transformCSS(n.name||e.name,"".concat(i).concat(yn(hr||(hr=vn(["",""])),o)))})},getCommonTheme:function(e){return j.getCommon(this.name,e)},getComponentTheme:function(e){return j.getComponent(this.name,e)},getDirectiveTheme:function(e){return j.getDirective(this.name,e)},getPresetTheme:function(e,n,o){return j.getCustomPreset(this.name,e,n,o)},getLayerOrderThemeCSS:function(){return j.getLayerOrderCSS(this.name)},getStyleSheet:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.css){var o=pe(this.css,{dt:nt})||"",i=xt(yn(gr||(gr=vn(["","",""])),o,e)),a=Object.entries(n).reduce(function(c,l){var s=vr(l,2),u=s[0],d=s[1];return c.push("".concat(u,'="').concat(d,'"'))&&c},[]).join(" ");return U(i)?'<style type="text/css" data-primevue-style-id="'.concat(this.name,'" ').concat(a,">").concat(i,"</style>"):""}return""},getCommonThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return j.getCommonStyleSheet(this.name,e,n)},getThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=[j.getStyleSheet(this.name,e,n)];if(this.style){var i=this.name==="base"?"global-style":"".concat(this.name,"-style"),a=yn(yr||(yr=vn(["",""])),pe(this.style,{dt:nt})),c=xt(j.transformCSS(i,a)),l=Object.entries(n).reduce(function(s,u){var d=vr(u,2),f=d[0],p=d[1];return s.push("".concat(f,'="').concat(p,'"'))&&s},[]).join(" ");U(c)&&o.push('<style type="text/css" data-primevue-style-id="'.concat(i,'" ').concat(l,">").concat(c,"</style>"))}return o.join("")},extend:function(e){return to(to({},this),{},{css:void 0,style:void 0},e)}};function Ss(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pc",e=r.useId();return"".concat(t).concat(e.replace("v-","").replaceAll("-","_"))}var wr=q.extend({name:"common"});function Lt(t){"@babel/helpers - typeof";return Lt=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},Lt(t)}function _s(t){return Er(t)||Es(t)||Sr(t)||kr()}function Es(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Nt(t,e){return Er(t)||Ts(t,e)||Sr(t,e)||kr()}function kr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
145
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sr(t,e){if(t){if(typeof t=="string")return _r(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)?_r(t,e):void 0}}function _r(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 Ts(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,i,a,c,l=[],s=!0,u=!1;try{if(a=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=a.call(n)).done)&&(l.push(o.value),l.length!==e);s=!0);}catch(d){u=!0,i=d}finally{try{if(!s&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(u)throw i}}return l}}function Er(t){if(Array.isArray(t))return t}function Tr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function L(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Tr(Object(n),!0).forEach(function(o){Mt(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Tr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Mt(t,e,n){return(e=Ps(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ps(t){var e=Is(t,"string");return Lt(e)=="symbol"?e:e+""}function Is(t,e){if(Lt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Lt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var bn={name:"BaseComponent",props:{pt:{type:Object,default:void 0},ptOptions:{type:Object,default:void 0},unstyled:{type:Boolean,default:void 0},dt:{type:Object,default:void 0}},inject:{$parentInstance:{default:void 0}},watch:{isUnstyled:{immediate:!0,handler:function(e){ie.off("theme:change",this._loadCoreStyles),e||(this._loadCoreStyles(),this._themeChangeListener(this._loadCoreStyles))}},dt:{immediate:!0,handler:function(e,n){var o=this;ie.off("theme:change",this._themeScopedListener),e?(this._loadScopedThemeStyles(e),this._themeScopedListener=function(){return o._loadScopedThemeStyles(e)},this._themeChangeListener(this._themeScopedListener)):this._unloadScopedThemeStyles()}}},scopedStyleEl:void 0,rootEl:void 0,uid:void 0,$attrSelector:void 0,beforeCreate:function(){var e,n,o,i,a,c,l,s,u,d,f,p=(e=this.pt)===null||e===void 0?void 0:e._usept,h=p?(n=this.pt)===null||n===void 0||(n=n.originalValue)===null||n===void 0?void 0:n[this.$.type.name]:void 0,C=p?(o=this.pt)===null||o===void 0||(o=o.value)===null||o===void 0?void 0:o[this.$.type.name]:this.pt;(i=C||h)===null||i===void 0||(i=i.hooks)===null||i===void 0||(a=i.onBeforeCreate)===null||a===void 0||a.call(i);var w=(c=this.$primevueConfig)===null||c===void 0||(c=c.pt)===null||c===void 0?void 0:c._usept,k=w?(l=this.$primevue)===null||l===void 0||(l=l.config)===null||l===void 0||(l=l.pt)===null||l===void 0?void 0:l.originalValue:void 0,y=w?(s=this.$primevue)===null||s===void 0||(s=s.config)===null||s===void 0||(s=s.pt)===null||s===void 0?void 0:s.value:(u=this.$primevue)===null||u===void 0||(u=u.config)===null||u===void 0?void 0:u.pt;(d=y||k)===null||d===void 0||(d=d[this.$.type.name])===null||d===void 0||(d=d.hooks)===null||d===void 0||(f=d.onBeforeCreate)===null||f===void 0||f.call(d),this.$attrSelector=Ss(),this.uid=this.$attrs.id||this.$attrSelector.replace("pc","pv_id_")},created:function(){this._hook("onCreated")},beforeMount:function(){var e;this.rootEl=Wa(pn(this.$el)?this.$el:(e=this.$el)===null||e===void 0?void 0:e.parentElement,"[".concat(this.$attrSelector,"]")),this.rootEl&&(this.rootEl.$pc=L({name:this.$.type.name,attrSelector:this.$attrSelector},this.$params)),this._loadStyles(),this._hook("onBeforeMount")},mounted:function(){this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._removeThemeListeners(),this._unloadScopedThemeStyles(),this._hook("onUnmounted")},methods:{_hook:function(e){if(!this.$options.hostName){var n=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,"hooks.".concat(e)),o=this._useDefaultPT(this._getOptionValue,"hooks.".concat(e));n?.(),o?.()}},_mergeProps:function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return Xn(e)?e.apply(void 0,o):r.mergeProps.apply(void 0,o)},_load:function(){We.isStyleNameLoaded("base")||(q.loadCSS(this.$styleOptions),this._loadGlobalStyles(),We.setLoadedStyleName("base")),this._loadThemeStyles()},_loadStyles:function(){this._load(),this._themeChangeListener(this._load)},_loadCoreStyles:function(){var e,n;!We.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name&&(wr.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),We.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);U(e)&&q.load(e,L({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,n;if(!(this.isUnstyled||this.$theme==="none")){if(!j.isStyleNameLoaded("common")){var o,i,a=((o=this.$style)===null||o===void 0||(i=o.getCommonTheme)===null||i===void 0?void 0:i.call(o))||{},c=a.primitive,l=a.semantic,s=a.global,u=a.style;q.load(c?.css,L({name:"primitive-variables"},this.$styleOptions)),q.load(l?.css,L({name:"semantic-variables"},this.$styleOptions)),q.load(s?.css,L({name:"global-variables"},this.$styleOptions)),q.loadStyle(L({name:"global-style"},this.$styleOptions),u),j.setLoadedStyleName("common")}if(!j.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name){var d,f,p,h,C=((d=this.$style)===null||d===void 0||(f=d.getComponentTheme)===null||f===void 0?void 0:f.call(d))||{},w=C.css,k=C.style;(p=this.$style)===null||p===void 0||p.load(w,L({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(h=this.$style)===null||h===void 0||h.loadStyle(L({name:"".concat(this.$style.name,"-style")},this.$styleOptions),k),j.setLoadedStyleName(this.$style.name)}if(!j.isStyleNameLoaded("layer-order")){var y,T,P=(y=this.$style)===null||y===void 0||(T=y.getLayerOrderThemeCSS)===null||T===void 0?void 0:T.call(y);q.load(P,L({name:"layer-order",first:!0},this.$styleOptions)),j.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(e){var n,o,i,a=((n=this.$style)===null||n===void 0||(o=n.getPresetTheme)===null||o===void 0?void 0:o.call(n,e,"[".concat(this.$attrSelector,"]")))||{},c=a.css,l=(i=this.$style)===null||i===void 0?void 0:i.load(c,L({name:"".concat(this.$attrSelector,"-").concat(this.$style.name)},this.$styleOptions));this.scopedStyleEl=l.el},_unloadScopedThemeStyles:function(){var e;(e=this.scopedStyleEl)===null||e===void 0||(e=e.value)===null||e===void 0||e.remove()},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};We.clearLoadedStyleNames(),ie.on("theme:change",e)},_removeThemeListeners:function(){ie.off("theme:change",this._loadCoreStyles),ie.off("theme:change",this._load),ie.off("theme:change",this._themeScopedListener)},_getHostInstance:function(e){return e?this.$options.hostName?e.$.type.name===this.$options.hostName?e:this._getHostInstance(e.$parentInstance):e.$parentInstance:void 0},_getPropValue:function(e){var n;return this[e]||((n=this._getHostInstance(this))===null||n===void 0?void 0:n[e])},_getOptionValue:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Zn(e,n,o)},_getPTValue:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,c=/./g.test(o)&&!!i[o.split(".")[0]],l=this._getPropValue("ptOptions")||((e=this.$primevueConfig)===null||e===void 0?void 0:e.ptOptions)||{},s=l.mergeSections,u=s===void 0?!0:s,d=l.mergeProps,f=d===void 0?!1:d,p=a?c?this._useGlobalPT(this._getPTClassValue,o,i):this._useDefaultPT(this._getPTClassValue,o,i):void 0,h=c?void 0:this._getPTSelf(n,this._getPTClassValue,o,L(L({},i),{},{global:p||{}})),C=this._getPTDatasets(o);return u||!u&&h?f?this._mergeProps(f,p,h,C):L(L(L({},p),h),C):L(L({},h),C)},_getPTSelf:function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.mergeProps(this._usePT.apply(this,[this._getPT(e,this.$name)].concat(o)),this._usePT.apply(this,[this.$_attrsPT].concat(o)))},_getPTDatasets:function(){var e,n,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",i="data-pc-",a=o==="root"&&U((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return o!=="transition"&&L(L({},o==="root"&&L(L(Mt({},"".concat(i,"name"),xe(a?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),a&&Mt({},"".concat(i,"extend"),xe(this.$.type.name))),{},Mt({},"".concat(this.$attrSelector),""))),{},Mt({},"".concat(i,"section"),xe(o)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return ue(e)||er(e)?{class:e}:e},_getPT:function(e){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=arguments.length>2?arguments[2]:void 0,a=function(l){var s,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=i?i(l):l,f=xe(o),p=xe(n.$name);return(s=u?f!==p?d?.[f]:void 0:d?.[f])!==null&&s!==void 0?s:d};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:a(e.originalValue),value:a(e.value)}:a(e,!0)},_usePT:function(e,n,o,i){var a=function(w){return n(w,o,i)};if(e!=null&&e.hasOwnProperty("_usept")){var c,l=e._usept||((c=this.$primevueConfig)===null||c===void 0?void 0:c.ptOptions)||{},s=l.mergeSections,u=s===void 0?!0:s,d=l.mergeProps,f=d===void 0?!1:d,p=a(e.originalValue),h=a(e.value);return p===void 0&&h===void 0?void 0:ue(h)?h:ue(p)?p:u||!u&&h?f?this._mergeProps(f,p,h):L(L({},p),h):h}return a(e)},_useGlobalPT:function(e,n,o){return this._usePT(this.globalPT,e,n,o)},_useDefaultPT:function(e,n,o){return this._usePT(this.defaultPT,e,n,o)},ptm:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._getPTValue(this.pt,e,L(L({},this.$params),n))},ptmi:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.mergeProps(this.$_attrsWithoutPT,this.ptm(n,o));return i?.hasOwnProperty("id")&&((e=i.id)!==null&&e!==void 0||(i.id=this.$id)),i},ptmo: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?arguments[2]:{};return this._getPTValue(e,n,L({instance:this},o),!1)},cx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,e,L(L({},this.$params),n))},sx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(n){var i=this._getOptionValue(this.$style.inlineStyles,e,L(L({},this.$params),o)),a=this._getOptionValue(wr.inlineStyles,e,L(L({},this.$params),o));return[a,i]}}},computed:{globalPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(o){return pe(o,{instance:n})})},defaultPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(o){return n._getOptionValue(o,n.$name,L({},n.$params))||pe(o,L({},n.$params))})},isUnstyled:function(){var e;return this.unstyled!==void 0?this.unstyled:(e=this.$primevueConfig)===null||e===void 0?void 0:e.unstyled},$id:function(){return this.$attrs.id||this.uid},$inProps:function(){var e,n=Object.keys(((e=this.$.vnode)===null||e===void 0?void 0:e.props)||{});return Object.fromEntries(Object.entries(this.$props).filter(function(o){var i=Nt(o,1),a=i[0];return n?.includes(a)}))},$theme:function(){var e;return(e=this.$primevueConfig)===null||e===void 0?void 0:e.theme},$style:function(){return L(L({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadStyle:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$styleOptions:function(){var e;return{nonce:(e=this.$primevueConfig)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce}},$primevueConfig:function(){var e;return(e=this.$primevue)===null||e===void 0?void 0:e.config},$name:function(){return this.$options.hostName||this.$.type.name},$params:function(){var e=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:e,props:e?.$props,state:e?.$data,attrs:e?.$attrs}}},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=Nt(e,1),o=n[0];return o?.startsWith("pt:")}).reduce(function(e,n){var o=Nt(n,2),i=o[0],a=o[1],c=i.split(":"),l=_s(c),s=l.slice(1);return s?.reduce(function(u,d,f,p){return!u[d]&&(u[d]=f===p.length-1?a:{}),u[d]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=Nt(e,1),o=n[0];return!(o!=null&&o.startsWith("pt:"))}).reduce(function(e,n){var o=Nt(n,2),i=o[0],a=o[1];return e[i]=a,e},{})}}},As=`
146
146
  .p-icon {
147
147
  display: inline-block;
148
148
  vertical-align: baseline;
@@ -174,7 +174,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
174
174
  transform: rotate(359deg);
175
175
  }
176
176
  }
177
- `,As=q.extend({name:"baseicon",css:Is});function Mt(t){"@babel/helpers - typeof";return Mt=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},Mt(t)}function _r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function Er(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?_r(Object(n),!0).forEach(function(o){xs(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_r(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function xs(t,e,n){return(e=$s(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $s(t){var e=Bs(t,"string");return Mt(e)=="symbol"?e:e+""}function Bs(t,e){if(Mt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Mt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Tr={name:"BaseIcon",extends:yn,props:{label:{type:String,default:void 0},spin:{type:Boolean,default:!1}},style:As,provide:function(){return{$pcIcon:this,$parentInstance:this}},methods:{pti:function(){var e=Ra(this.label);return Er(Er({},!this.isUnstyled&&{class:["p-icon",{"p-icon-spin":this.spin}]}),{},{role:e?void 0:"img","aria-label":e?void 0:this.label,"aria-hidden":e})}}},no={name:"ChevronDownIcon",extends:Tr};function Os(t,e,n,o,i,a){return r.openBlock(),r.createElementBlock("svg",r.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),e[0]||(e[0]=[r.createElementVNode("path",{d:"M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z",fill:"currentColor"},null,-1)]),16)}no.render=Os;var oo={name:"ChevronRightIcon",extends:Tr};function Ls(t,e,n,o,i,a){return r.openBlock(),r.createElementBlock("svg",r.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),e[0]||(e[0]=[r.createElementVNode("path",{d:"M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z",fill:"currentColor"},null,-1)]),16)}oo.render=Ls;var Ns=`
177
+ `,xs=q.extend({name:"baseicon",css:As});function Dt(t){"@babel/helpers - typeof";return Dt=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},Dt(t)}function Pr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function Ir(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Pr(Object(n),!0).forEach(function(o){$s(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Pr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function $s(t,e,n){return(e=Bs(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Bs(t){var e=Os(t,"string");return Dt(e)=="symbol"?e:e+""}function Os(t,e){if(Dt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Dt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Ar={name:"BaseIcon",extends:bn,props:{label:{type:String,default:void 0},spin:{type:Boolean,default:!1}},style:xs,provide:function(){return{$pcIcon:this,$parentInstance:this}},methods:{pti:function(){var e=Ha(this.label);return Ir(Ir({},!this.isUnstyled&&{class:["p-icon",{"p-icon-spin":this.spin}]}),{},{role:e?void 0:"img","aria-label":e?void 0:this.label,"aria-hidden":e})}}},no={name:"ChevronDownIcon",extends:Ar};function Ls(t,e,n,o,i,a){return r.openBlock(),r.createElementBlock("svg",r.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),e[0]||(e[0]=[r.createElementVNode("path",{d:"M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z",fill:"currentColor"},null,-1)]),16)}no.render=Ls;var oo={name:"ChevronRightIcon",extends:Ar};function Ns(t,e,n,o,i,a){return r.openBlock(),r.createElementBlock("svg",r.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),e[0]||(e[0]=[r.createElementVNode("path",{d:"M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z",fill:"currentColor"},null,-1)]),16)}oo.render=Ns;var Ms=`
178
178
  .p-panelmenu {
179
179
  display: flex;
180
180
  flex-direction: column;
@@ -333,8 +333,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
333
333
  .p-panelmenu-item:not(.p-disabled) > .p-panelmenu-item-content:hover .p-panelmenu-submenu-icon {
334
334
  color: dt('panelmenu.submenu.icon.focus.color');
335
335
  }
336
- `,Ms={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"},Ds=q.extend({name:"panelmenu",style:Ns,classes:Ms}),vn=nr();function Dt(t){"@babel/helpers - typeof";return Dt=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},Dt(t)}function Pr(t,e){return Hs(t)||js(t,e)||Vs(t,e)||Rs()}function Rs(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
337
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vs(t,e){if(t){if(typeof t=="string")return Ir(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)?Ir(t,e):void 0}}function Ir(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 js(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,i,a,c,l=[],s=!0,u=!1;try{if(a=(n=n.call(t)).next,e!==0)for(;!(s=(o=a.call(n)).done)&&(l.push(o.value),l.length!==e);s=!0);}catch(m){u=!0,i=m}finally{try{if(!s&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(u)throw i}}return l}}function Hs(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(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function M(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){ro(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 ro(t,e,n){return(e=Fs(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Fs(t){var e=Us(t,"string");return Dt(e)=="symbol"?e:e+""}function Us(t,e){if(Dt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Dt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var $={_getMeta:function(){return[et(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],fe(et(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,i,a;return(o=(e==null||(i=e.instance)===null||i===void 0?void 0:i.$primevue)||(n==null||(a=n.ctx)===null||a===void 0||(a=a.appContext)===null||a===void 0||(a=a.config)===null||a===void 0||(a=a.globalProperties)===null||a===void 0?void 0:a.$primevue))===null||o===void 0?void 0:o.config},_getOptionValue:Xn,_getPTValue:function(){var e,n,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=function(){var P=$._getOptionValue.apply($,arguments);return pe(P)||er(P)?{class:P}:P},u=((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=u.mergeSections,f=m===void 0?!0:m,p=u.mergeProps,h=p===void 0?!1:p,C=l?$._useDefaultPT(o,o.defaultPT(),s,a,c):void 0,w=$._usePT(o,$._getPT(i,o.$name),s,a,M(M({},c),{},{global:C||{}})),k=$._getPTDatasets(o,a);return f||!f&&w?h?$._mergeProps(o,h,C,w,k):M(M(M({},C),w),k):M(M({},w),k)},_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 M(M({},n==="root"&&ro({},"".concat(o,"name"),xe(e.$name))),{},ro({},"".concat(o,"section"),xe(n)))},_getPT:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,i=function(c){var l,s=o?o(c):c,u=xe(n);return(l=s?.[u])!==null&&l!==void 0?l:s};return e&&Object.hasOwn(e,"_usept")?{_usept:e._usept,originalValue:i(e.originalValue),value:i(e.value)}:i(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,i=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,c=function(k){return o(k,i,a)};if(n&&Object.hasOwn(n,"_usept")){var l,s=n._usept||((l=e.$primevueConfig)===null||l===void 0?void 0:l.ptOptions)||{},u=s.mergeSections,m=u===void 0?!0:u,f=s.mergeProps,p=f===void 0?!1:f,h=c(n.originalValue),C=c(n.value);return h===void 0&&C===void 0?void 0:pe(C)?C:pe(h)?h:m||!m&&C?p?$._mergeProps(e,p,h,C):M(M({},h),C):C}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,i=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0;return $._usePT(e,n,o,i,a)},_loadStyles:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,a=$._getConfig(o,i),c={nonce:a==null||(e=a.csp)===null||e===void 0?void 0:e.nonce};$._loadCoreStyles(n,c),$._loadThemeStyles(n,c),$._loadScopedThemeStyles(n,c),$._removeThemeListeners(n),n.$loadStyles=function(){return $._loadThemeStyles(n,c)},$._themeChangeListener(n.$loadStyles)},_loadCoreStyles:function(){var e,n,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(!Ke.isStyleNameLoaded((e=o.$style)===null||e===void 0?void 0:e.name)&&(n=o.$style)!==null&&n!==void 0&&n.name){var a;q.loadCSS(i),(a=o.$style)===null||a===void 0||a.loadCSS(i),Ke.setLoadedStyleName(o.$style.name)}},_loadThemeStyles:function(){var e,n,o,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;if(!(i!=null&&i.isUnstyled()||(i==null||(e=i.theme)===null||e===void 0?void 0:e.call(i))==="none")){if(!j.isStyleNameLoaded("common")){var c,l,s=((c=i.$style)===null||c===void 0||(l=c.getCommonTheme)===null||l===void 0?void 0:l.call(c))||{},u=s.primitive,m=s.semantic,f=s.global,p=s.style;q.load(u?.css,M({name:"primitive-variables"},a)),q.load(m?.css,M({name:"semantic-variables"},a)),q.load(f?.css,M({name:"global-variables"},a)),q.loadStyle(M({name:"global-style"},a),p),j.setLoadedStyleName("common")}if(!j.isStyleNameLoaded((n=i.$style)===null||n===void 0?void 0:n.name)&&(o=i.$style)!==null&&o!==void 0&&o.name){var h,C,w,k,y=((h=i.$style)===null||h===void 0||(C=h.getDirectiveTheme)===null||C===void 0?void 0:C.call(h))||{},P=y.css,T=y.style;(w=i.$style)===null||w===void 0||w.load(P,M({name:"".concat(i.$style.name,"-variables")},a)),(k=i.$style)===null||k===void 0||k.loadStyle(M({name:"".concat(i.$style.name,"-style")},a),T),j.setLoadedStyleName(i.$style.name)}if(!j.isStyleNameLoaded("layer-order")){var v,_,z=(v=i.$style)===null||v===void 0||(_=v.getLayerOrderThemeCSS)===null||_===void 0?void 0:_.call(v);q.load(z,M({name:"layer-order",first:!0},a)),j.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 i,a,c,l=((i=e.$style)===null||i===void 0||(a=i.getPresetTheme)===null||a===void 0?void 0:a.call(i,o,"[".concat(e.$attrSelector,"]")))||{},s=l.css,u=(c=e.$style)===null||c===void 0?void 0:c.load(s,M({name:"".concat(e.$attrSelector,"-").concat(e.$style.name)},n));e.scopedStyleEl=u.el}},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};Ke.clearLoadedStyleNames(),ie.on("theme:change",e)},_removeThemeListeners:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ie.off("theme:change",e.$loadStyles),e.$loadStyles=void 0},_hook:function(e,n,o,i,a,c){var l,s,u="on".concat(ja(n)),m=$._getConfig(i,a),f=o?.$instance,p=$._usePT(f,$._getPT(i==null||(l=i.value)===null||l===void 0?void 0:l.pt,e),$._getOptionValue,"hooks.".concat(u)),h=$._useDefaultPT(f,m==null||(s=m.pt)===null||s===void 0||(s=s.directives)===null||s===void 0?void 0:s[e],$._getOptionValue,"hooks.".concat(u)),C={el:o,binding:i,vnode:a,prevVnode:c};p?.(f,C),h?.(f,C)},_mergeProps:function(){for(var e=arguments.length>1?arguments[1]:void 0,n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];return Yn(e)?e.apply(void 0,o):r.mergeProps.apply(void 0,o)},_extend:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=function(l,s,u,m,f){var p,h,C,w;s._$instances=s._$instances||{};var k=$._getConfig(u,m),y=s._$instances[e]||{},P=qn(y)?M(M({},n),n?.methods):{};s._$instances[e]=M(M({},y),{},{$name:e,$host:s,$binding:u,$modifiers:u?.modifiers,$value:u?.value,$el:y.$el||s||void 0,$style:M({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadStyle:function(){}},n?.style),$primevueConfig:k,$attrSelector:(p=s.$pd)===null||p===void 0||(p=p[e])===null||p===void 0?void 0:p.attrSelector,defaultPT:function(){return $._getPT(k?.pt,void 0,function(v){var _;return v==null||(_=v.directives)===null||_===void 0?void 0:_[e]})},isUnstyled:function(){var v,_;return((v=s._$instances[e])===null||v===void 0||(v=v.$binding)===null||v===void 0||(v=v.value)===null||v===void 0?void 0:v.unstyled)!==void 0?(_=s._$instances[e])===null||_===void 0||(_=_.$binding)===null||_===void 0||(_=_.value)===null||_===void 0?void 0:_.unstyled:k?.unstyled},theme:function(){var v;return(v=s._$instances[e])===null||v===void 0||(v=v.$primevueConfig)===null||v===void 0?void 0:v.theme},preset:function(){var v;return(v=s._$instances[e])===null||v===void 0||(v=v.$binding)===null||v===void 0||(v=v.value)===null||v===void 0?void 0:v.dt},ptm:function(){var v,_=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return $._getPTValue(s._$instances[e],(v=s._$instances[e])===null||v===void 0||(v=v.$binding)===null||v===void 0||(v=v.value)===null||v===void 0?void 0:v.pt,_,M({},z))},ptmo:function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return $._getPTValue(s._$instances[e],v,_,z,!1)},cx:function(){var v,_,z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(v=s._$instances[e])!==null&&v!==void 0&&v.isUnstyled()?void 0:$._getOptionValue((_=s._$instances[e])===null||_===void 0||(_=_.$style)===null||_===void 0?void 0:_.classes,z,M({},X))},sx:function(){var v,_=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return z?$._getOptionValue((v=s._$instances[e])===null||v===void 0||(v=v.$style)===null||v===void 0?void 0:v.inlineStyles,_,M({},X)):void 0}},P),s.$instance=s._$instances[e],(h=(C=s.$instance)[l])===null||h===void 0||h.call(C,s,u,m,f),s["$".concat(e)]=s.$instance,$._hook(e,l,s,u,m,f),s.$pd||(s.$pd={}),s.$pd[e]=M(M({},(w=s.$pd)===null||w===void 0?void 0:w[e]),{},{name:e,instance:s._$instances[e]})},i=function(l){var s,u,m,f=l._$instances[e],p=f?.watch,h=function(k){var y,P=k.newValue,T=k.oldValue;return p==null||(y=p.config)===null||y===void 0?void 0:y.call(f,P,T)},C=function(k){var y,P=k.newValue,T=k.oldValue;return p==null||(y=p["config.ripple"])===null||y===void 0?void 0:y.call(f,P,T)};f.$watchersCallback={config:h,"config.ripple":C},p==null||(s=p.config)===null||s===void 0||s.call(f,f?.$primevueConfig),vn.on("config:change",h),p==null||(u=p["config.ripple"])===null||u===void 0||u.call(f,f==null||(m=f.$primevueConfig)===null||m===void 0?void 0:m.ripple),vn.on("config:ripple:change",C)},a=function(l){var s=l._$instances[e].$watchersCallback;s&&(vn.off("config:change",s.config),vn.off("config:ripple:change",s["config.ripple"]),l._$instances[e].$watchersCallback=void 0)};return{created:function(l,s,u,m){l.$pd||(l.$pd={}),l.$pd[e]={name:e,attrSelector:Wa("pd")},o("created",l,s,u,m)},beforeMount:function(l,s,u,m){var f;$._loadStyles((f=l.$pd[e])===null||f===void 0?void 0:f.instance,s,u),o("beforeMount",l,s,u,m),i(l)},mounted:function(l,s,u,m){var f;$._loadStyles((f=l.$pd[e])===null||f===void 0?void 0:f.instance,s,u),o("mounted",l,s,u,m)},beforeUpdate:function(l,s,u,m){o("beforeUpdate",l,s,u,m)},updated:function(l,s,u,m){var f;$._loadStyles((f=l.$pd[e])===null||f===void 0?void 0:f.instance,s,u),o("updated",l,s,u,m)},beforeUnmount:function(l,s,u,m){var f;a(l),$._removeThemeListeners((f=l.$pd[e])===null||f===void 0?void 0:f.instance),o("beforeUnmount",l,s,u,m)},unmounted:function(l,s,u,m){var f;(f=l.$pd[e])===null||f===void 0||(f=f.instance)===null||f===void 0||(f=f.scopedStyleEl)===null||f===void 0||(f=f.value)===null||f===void 0||f.remove(),o("unmounted",l,s,u,m)}}},extend:function(){var e=$._getMeta.apply($,arguments),n=Pr(e,2),o=n[0],i=n[1];return M({extend:function(){var c=$._getMeta.apply($,arguments),l=Pr(c,2),s=l[0],u=l[1];return $.extend(s,M(M(M({},i),i?.methods),u))}},$._extend(o,i))}},zs=`
336
+ `,Ds={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"},Rs=q.extend({name:"panelmenu",style:Ms,classes:Ds}),Cn=nr();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 xr(t,e){return Fs(t)||Hs(t,e)||js(t,e)||Vs()}function Vs(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
337
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function js(t,e){if(t){if(typeof t=="string")return $r(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)?$r(t,e):void 0}}function $r(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 Hs(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,i,a,c,l=[],s=!0,u=!1;try{if(a=(n=n.call(t)).next,e!==0)for(;!(s=(o=a.call(n)).done)&&(l.push(o.value),l.length!==e);s=!0);}catch(d){u=!0,i=d}finally{try{if(!s&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(u)throw i}}return l}}function Fs(t){if(Array.isArray(t))return t}function Br(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function M(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Br(Object(n),!0).forEach(function(o){ro(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Br(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function ro(t,e,n){return(e=Us(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Us(t){var e=zs(t,"string");return Rt(e)=="symbol"?e:e+""}function zs(t,e){if(Rt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Rt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var $={_getMeta:function(){return[Ke(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],pe(Ke(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,i,a;return(o=(e==null||(i=e.instance)===null||i===void 0?void 0:i.$primevue)||(n==null||(a=n.ctx)===null||a===void 0||(a=a.appContext)===null||a===void 0||(a=a.config)===null||a===void 0||(a=a.globalProperties)===null||a===void 0?void 0:a.$primevue))===null||o===void 0?void 0:o.config},_getOptionValue:Zn,_getPTValue:function(){var e,n,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=function(){var T=$._getOptionValue.apply($,arguments);return ue(T)||er(T)?{class:T}:T},u=((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)||{},d=u.mergeSections,f=d===void 0?!0:d,p=u.mergeProps,h=p===void 0?!1:p,C=l?$._useDefaultPT(o,o.defaultPT(),s,a,c):void 0,w=$._usePT(o,$._getPT(i,o.$name),s,a,M(M({},c),{},{global:C||{}})),k=$._getPTDatasets(o,a);return f||!f&&w?h?$._mergeProps(o,h,C,w,k):M(M(M({},C),w),k):M(M({},w),k)},_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 M(M({},n==="root"&&ro({},"".concat(o,"name"),xe(e.$name))),{},ro({},"".concat(o,"section"),xe(n)))},_getPT:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,i=function(c){var l,s=o?o(c):c,u=xe(n);return(l=s?.[u])!==null&&l!==void 0?l:s};return e&&Object.hasOwn(e,"_usept")?{_usept:e._usept,originalValue:i(e.originalValue),value:i(e.value)}:i(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,i=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,c=function(k){return o(k,i,a)};if(n&&Object.hasOwn(n,"_usept")){var l,s=n._usept||((l=e.$primevueConfig)===null||l===void 0?void 0:l.ptOptions)||{},u=s.mergeSections,d=u===void 0?!0:u,f=s.mergeProps,p=f===void 0?!1:f,h=c(n.originalValue),C=c(n.value);return h===void 0&&C===void 0?void 0:ue(C)?C:ue(h)?h:d||!d&&C?p?$._mergeProps(e,p,h,C):M(M({},h),C):C}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,i=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0;return $._usePT(e,n,o,i,a)},_loadStyles:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,a=$._getConfig(o,i),c={nonce:a==null||(e=a.csp)===null||e===void 0?void 0:e.nonce};$._loadCoreStyles(n,c),$._loadThemeStyles(n,c),$._loadScopedThemeStyles(n,c),$._removeThemeListeners(n),n.$loadStyles=function(){return $._loadThemeStyles(n,c)},$._themeChangeListener(n.$loadStyles)},_loadCoreStyles:function(){var e,n,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(!We.isStyleNameLoaded((e=o.$style)===null||e===void 0?void 0:e.name)&&(n=o.$style)!==null&&n!==void 0&&n.name){var a;q.loadCSS(i),(a=o.$style)===null||a===void 0||a.loadCSS(i),We.setLoadedStyleName(o.$style.name)}},_loadThemeStyles:function(){var e,n,o,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;if(!(i!=null&&i.isUnstyled()||(i==null||(e=i.theme)===null||e===void 0?void 0:e.call(i))==="none")){if(!j.isStyleNameLoaded("common")){var c,l,s=((c=i.$style)===null||c===void 0||(l=c.getCommonTheme)===null||l===void 0?void 0:l.call(c))||{},u=s.primitive,d=s.semantic,f=s.global,p=s.style;q.load(u?.css,M({name:"primitive-variables"},a)),q.load(d?.css,M({name:"semantic-variables"},a)),q.load(f?.css,M({name:"global-variables"},a)),q.loadStyle(M({name:"global-style"},a),p),j.setLoadedStyleName("common")}if(!j.isStyleNameLoaded((n=i.$style)===null||n===void 0?void 0:n.name)&&(o=i.$style)!==null&&o!==void 0&&o.name){var h,C,w,k,y=((h=i.$style)===null||h===void 0||(C=h.getDirectiveTheme)===null||C===void 0?void 0:C.call(h))||{},T=y.css,P=y.style;(w=i.$style)===null||w===void 0||w.load(T,M({name:"".concat(i.$style.name,"-variables")},a)),(k=i.$style)===null||k===void 0||k.loadStyle(M({name:"".concat(i.$style.name,"-style")},a),P),j.setLoadedStyleName(i.$style.name)}if(!j.isStyleNameLoaded("layer-order")){var v,_,z=(v=i.$style)===null||v===void 0||(_=v.getLayerOrderThemeCSS)===null||_===void 0?void 0:_.call(v);q.load(z,M({name:"layer-order",first:!0},a)),j.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 i,a,c,l=((i=e.$style)===null||i===void 0||(a=i.getPresetTheme)===null||a===void 0?void 0:a.call(i,o,"[".concat(e.$attrSelector,"]")))||{},s=l.css,u=(c=e.$style)===null||c===void 0?void 0:c.load(s,M({name:"".concat(e.$attrSelector,"-").concat(e.$style.name)},n));e.scopedStyleEl=u.el}},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};We.clearLoadedStyleNames(),ie.on("theme:change",e)},_removeThemeListeners:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ie.off("theme:change",e.$loadStyles),e.$loadStyles=void 0},_hook:function(e,n,o,i,a,c){var l,s,u="on".concat(Ua(n)),d=$._getConfig(i,a),f=o?.$instance,p=$._usePT(f,$._getPT(i==null||(l=i.value)===null||l===void 0?void 0:l.pt,e),$._getOptionValue,"hooks.".concat(u)),h=$._useDefaultPT(f,d==null||(s=d.pt)===null||s===void 0||(s=s.directives)===null||s===void 0?void 0:s[e],$._getOptionValue,"hooks.".concat(u)),C={el:o,binding:i,vnode:a,prevVnode:c};p?.(f,C),h?.(f,C)},_mergeProps:function(){for(var e=arguments.length>1?arguments[1]:void 0,n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];return Xn(e)?e.apply(void 0,o):r.mergeProps.apply(void 0,o)},_extend:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=function(l,s,u,d,f){var p,h,C,w;s._$instances=s._$instances||{};var k=$._getConfig(u,d),y=s._$instances[e]||{},T=fn(y)?M(M({},n),n?.methods):{};s._$instances[e]=M(M({},y),{},{$name:e,$host:s,$binding:u,$modifiers:u?.modifiers,$value:u?.value,$el:y.$el||s||void 0,$style:M({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadStyle:function(){}},n?.style),$primevueConfig:k,$attrSelector:(p=s.$pd)===null||p===void 0||(p=p[e])===null||p===void 0?void 0:p.attrSelector,defaultPT:function(){return $._getPT(k?.pt,void 0,function(v){var _;return v==null||(_=v.directives)===null||_===void 0?void 0:_[e]})},isUnstyled:function(){var v,_;return((v=s._$instances[e])===null||v===void 0||(v=v.$binding)===null||v===void 0||(v=v.value)===null||v===void 0?void 0:v.unstyled)!==void 0?(_=s._$instances[e])===null||_===void 0||(_=_.$binding)===null||_===void 0||(_=_.value)===null||_===void 0?void 0:_.unstyled:k?.unstyled},theme:function(){var v;return(v=s._$instances[e])===null||v===void 0||(v=v.$primevueConfig)===null||v===void 0?void 0:v.theme},preset:function(){var v;return(v=s._$instances[e])===null||v===void 0||(v=v.$binding)===null||v===void 0||(v=v.value)===null||v===void 0?void 0:v.dt},ptm:function(){var v,_=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return $._getPTValue(s._$instances[e],(v=s._$instances[e])===null||v===void 0||(v=v.$binding)===null||v===void 0||(v=v.value)===null||v===void 0?void 0:v.pt,_,M({},z))},ptmo:function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return $._getPTValue(s._$instances[e],v,_,z,!1)},cx:function(){var v,_,z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(v=s._$instances[e])!==null&&v!==void 0&&v.isUnstyled()?void 0:$._getOptionValue((_=s._$instances[e])===null||_===void 0||(_=_.$style)===null||_===void 0?void 0:_.classes,z,M({},X))},sx:function(){var v,_=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return z?$._getOptionValue((v=s._$instances[e])===null||v===void 0||(v=v.$style)===null||v===void 0?void 0:v.inlineStyles,_,M({},X)):void 0}},T),s.$instance=s._$instances[e],(h=(C=s.$instance)[l])===null||h===void 0||h.call(C,s,u,d,f),s["$".concat(e)]=s.$instance,$._hook(e,l,s,u,d,f),s.$pd||(s.$pd={}),s.$pd[e]=M(M({},(w=s.$pd)===null||w===void 0?void 0:w[e]),{},{name:e,instance:s._$instances[e]})},i=function(l){var s,u,d,f=l._$instances[e],p=f?.watch,h=function(k){var y,T=k.newValue,P=k.oldValue;return p==null||(y=p.config)===null||y===void 0?void 0:y.call(f,T,P)},C=function(k){var y,T=k.newValue,P=k.oldValue;return p==null||(y=p["config.ripple"])===null||y===void 0?void 0:y.call(f,T,P)};f.$watchersCallback={config:h,"config.ripple":C},p==null||(s=p.config)===null||s===void 0||s.call(f,f?.$primevueConfig),Cn.on("config:change",h),p==null||(u=p["config.ripple"])===null||u===void 0||u.call(f,f==null||(d=f.$primevueConfig)===null||d===void 0?void 0:d.ripple),Cn.on("config:ripple:change",C)},a=function(l){var s=l._$instances[e].$watchersCallback;s&&(Cn.off("config:change",s.config),Cn.off("config:ripple:change",s["config.ripple"]),l._$instances[e].$watchersCallback=void 0)};return{created:function(l,s,u,d){l.$pd||(l.$pd={}),l.$pd[e]={name:e,attrSelector:Ya("pd")},o("created",l,s,u,d)},beforeMount:function(l,s,u,d){var f;$._loadStyles((f=l.$pd[e])===null||f===void 0?void 0:f.instance,s,u),o("beforeMount",l,s,u,d),i(l)},mounted:function(l,s,u,d){var f;$._loadStyles((f=l.$pd[e])===null||f===void 0?void 0:f.instance,s,u),o("mounted",l,s,u,d)},beforeUpdate:function(l,s,u,d){o("beforeUpdate",l,s,u,d)},updated:function(l,s,u,d){var f;$._loadStyles((f=l.$pd[e])===null||f===void 0?void 0:f.instance,s,u),o("updated",l,s,u,d)},beforeUnmount:function(l,s,u,d){var f;a(l),$._removeThemeListeners((f=l.$pd[e])===null||f===void 0?void 0:f.instance),o("beforeUnmount",l,s,u,d)},unmounted:function(l,s,u,d){var f;(f=l.$pd[e])===null||f===void 0||(f=f.instance)===null||f===void 0||(f=f.scopedStyleEl)===null||f===void 0||(f=f.value)===null||f===void 0||f.remove(),o("unmounted",l,s,u,d)}}},extend:function(){var e=$._getMeta.apply($,arguments),n=xr(e,2),o=n[0],i=n[1];return M({extend:function(){var c=$._getMeta.apply($,arguments),l=xr(c,2),s=l[0],u=l[1];return $.extend(s,M(M(M({},i),i?.methods),u))}},$._extend(o,i))}},Ks=`
338
338
  .p-ink {
339
339
  display: block;
340
340
  position: absolute;
@@ -354,9 +354,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
354
354
  transform: scale(2.5);
355
355
  }
356
356
  }
357
- `,Ks={root:"p-ink"},Ws=q.extend({name:"ripple-directive",style:zs,classes:Ks}),Gs=$.extend({style:Ws});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 qs(t){return Js(t)||Zs(t)||Xs(t)||Ys()}function Ys(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
358
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xs(t,e){if(t){if(typeof t=="string")return io(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)?io(t,e):void 0}}function Zs(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Js(t){if(Array.isArray(t))return io(t)}function io(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 xr(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=el(t,"string");return Rt(e)=="symbol"?e:e+""}function el(t,e){if(Rt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Rt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var tl=Gs.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=this.getInk(e);n||(n=Ba("span",xr(xr({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,i=this.getInk(o);if(!(!i||getComputedStyle(i,null).display==="none")){if(!this.isUnstyled()&&zn(i,"p-ink-active"),i.setAttribute("data-p-ink-active","false"),!Xo(i)&&!Zo(i)){var a=Math.max($a(o),La(o));i.style.height=a+"px",i.style.width=a+"px"}var c=Oa(o),l=e.pageX-c.left+document.body.scrollTop-Zo(i)/2,s=e.pageY-c.top+document.body.scrollLeft-Xo(i)/2;i.style.top=s+"px",i.style.left=l+"px",!this.isUnstyled()&&xa(i,"p-ink-active"),i.setAttribute("data-p-ink-active","true"),this.timeout=setTimeout(function(){i&&(!n.isUnstyled()&&zn(i,"p-ink-active"),i.setAttribute("data-p-ink-active","false"))},401)}},onAnimationEnd:function(e){this.timeout&&clearTimeout(this.timeout),!this.isUnstyled()&&zn(e.currentTarget,"p-ink-active"),e.currentTarget.setAttribute("data-p-ink-active","false")},getInk:function(e){return e&&e.children?qs(e.children).find(function(n){return At(n,"data-pc-name")==="ripple"}):void 0}}}),nl={name:"BasePanelMenu",extends:yn,props:{model:{type:Array,default:null},expandedKeys:{type:Object,default:null},multiple:{type:Boolean,default:!1},tabindex:{type:Number,default:0}},style:Ds,provide:function(){return{$pcPanelMenu:this,$parentInstance:this}}},$r={name:"PanelMenuSub",hostName:"PanelMenu",extends:yn,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?Gn(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 Z(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:r.mergeProps({class:this.cx("itemLink"),tabindex:-1},this.getPTOptions("itemLink",e,n)),icon:r.mergeProps({class:[this.cx("itemIcon"),this.getItemProp(e,"icon")]},this.getPTOptions("itemIcon",e,n)),label:r.mergeProps({class:this.cx("itemLabel")},this.getPTOptions("itemLabel",e,n)),submenuicon:r.mergeProps({class:this.cx("submenuIcon")},this.getPTOptions("submenuicon",e,n))}}},components:{ChevronRightIcon:oo,ChevronDownIcon:no},directives:{ripple:tl}},ol=["tabindex"],rl=["id","aria-label","aria-expanded","aria-level","aria-setsize","aria-posinset","data-p-focused","data-p-disabled"],il=["onClick","onMousemove"],al=["href","target"];function sl(t,e,n,o,i,a){var c=r.resolveComponent("PanelMenuSub",!0),l=r.resolveDirective("ripple");return r.openBlock(),r.createElementBlock("ul",{class:r.normalizeClass(t.cx("submenu")),tabindex:n.tabindex},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.items,function(s,u){return r.openBlock(),r.createElementBlock(r.Fragment,{key:a.getItemKey(s)},[a.isItemVisible(s)&&!a.getItemProp(s,"separator")?(r.openBlock(),r.createElementBlock("li",r.mergeProps({key:0,id:a.getItemId(s),class:[t.cx("item",{processedItem:s}),a.getItemProp(s,"class")],style:a.getItemProp(s,"style"),role:"treeitem","aria-label":a.getItemLabel(s),"aria-expanded":a.isItemGroup(s)?a.isItemActive(s):void 0,"aria-level":n.level+1,"aria-setsize":a.getAriaSetSize(),"aria-posinset":a.getAriaPosInset(u)},{ref_for:!0},a.getPTOptions("item",s,u),{"data-p-focused":a.isItemFocused(s),"data-p-disabled":a.isItemDisabled(s)}),[r.createElementVNode("div",r.mergeProps({class:t.cx("itemContent"),onClick:function(f){return a.onItemClick(f,s)},onMousemove:function(f){return a.onItemMouseMove(f,s)}},{ref_for:!0},a.getPTOptions("itemContent",s,u)),[n.templates.item?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.templates.item),{key:1,item:s.item,root:!1,active:a.isItemActive(s),hasSubmenu:a.isItemGroup(s),label:a.getItemLabel(s),props:a.getMenuItemProps(s,u)},null,8,["item","active","hasSubmenu","label","props"])):r.withDirectives((r.openBlock(),r.createElementBlock("a",r.mergeProps({key:0,href:a.getItemProp(s,"url"),class:t.cx("itemLink"),target:a.getItemProp(s,"target"),tabindex:"-1"},{ref_for:!0},a.getPTOptions("itemLink",s,u)),[a.isItemGroup(s)?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[n.templates.submenuicon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.templates.submenuicon),r.mergeProps({key:0,class:t.cx("submenuIcon"),active:a.isItemActive(s)},{ref_for:!0},a.getPTOptions("submenuIcon",s,u)),null,16,["class","active"])):(r.openBlock(),r.createBlock(r.resolveDynamicComponent(a.isItemActive(s)?"ChevronDownIcon":"ChevronRightIcon"),r.mergeProps({key:1,class:t.cx("submenuIcon")},{ref_for:!0},a.getPTOptions("submenuIcon",s,u)),null,16,["class"]))],64)):r.createCommentVNode("",!0),n.templates.itemicon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.templates.itemicon),{key:1,item:s.item,class:r.normalizeClass(t.cx("itemIcon"))},null,8,["item","class"])):a.getItemProp(s,"icon")?(r.openBlock(),r.createElementBlock("span",r.mergeProps({key:2,class:[t.cx("itemIcon"),a.getItemProp(s,"icon")]},{ref_for:!0},a.getPTOptions("itemIcon",s,u)),null,16)):r.createCommentVNode("",!0),r.createElementVNode("span",r.mergeProps({class:t.cx("itemLabel")},{ref_for:!0},a.getPTOptions("itemLabel",s,u)),r.toDisplayString(a.getItemLabel(s)),17)],16,al)),[[l]])],16,il),r.createVNode(r.Transition,r.mergeProps({name:"p-toggleable-content"},{ref_for:!0},t.ptm("transition")),{default:r.withCtx(function(){return[r.withDirectives(r.createElementVNode("div",r.mergeProps({class:t.cx("contentContainer")},{ref_for:!0},t.ptm("contentContainer")),[a.isItemVisible(s)&&a.isItemGroup(s)?(r.openBlock(),r.createBlock(c,r.mergeProps({key:0,id:a.getItemId(s)+"_list",role:"group",panelId:n.panelId,focusedItemId:n.focusedItemId,items:s.items,level:n.level+1,templates:n.templates,activeItemPath:n.activeItemPath,onItemToggle:a.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"])):r.createCommentVNode("",!0)],16),[[r.vShow,a.isItemActive(s)]])]}),_:2},1040)],16,rl)):r.createCommentVNode("",!0),a.isItemVisible(s)&&a.getItemProp(s,"separator")?(r.openBlock(),r.createElementBlock("li",r.mergeProps({key:1,style:a.getItemProp(s,"style"),class:[t.cx("separator"),a.getItemProp(s,"class")],role:"separator"},{ref_for:!0},t.ptm("separator")),null,16)):r.createCommentVNode("",!0)],64)}),128))],10,ol)}$r.render=sl;function ll(t,e){return ml(t)||dl(t,e)||ul(t,e)||cl()}function cl(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
359
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ul(t,e){if(t){if(typeof t=="string")return Br(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)?Br(t,e):void 0}}function Br(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 dl(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,i,a,c,l=[],s=!0,u=!1;try{if(a=(n=n.call(t)).next,e!==0)for(;!(s=(o=a.call(n)).done)&&(l.push(o.value),l.length!==e);s=!0);}catch(m){u=!0,i=m}finally{try{if(!s&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(u)throw i}}return l}}function ml(t){if(Array.isArray(t))return t}var Or={name:"PanelMenuList",hostName:"PanelMenu",extends:yn,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)}},created:function(){this.autoUpdateActiveItemPath(this.expandedKeys)},methods:{getItemProp:function(e,n){return e&&e.item?Gn(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 Z(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&&Da(e.key)&&this.searchItems(e,e.key);break}},onArrowDownKey:function(e){var n=Z(this.focusedItem)?this.findNextItem(this.focusedItem):this.findFirstItem();this.changeFocusedItem({originalEvent:e,processedItem:n,focusOnNext:!0}),e.preventDefault()},onArrowUpKey:function(e){var n=Z(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(Z(this.focusedItem)){var o=this.activeItemPath.some(function(i){return i.key===n.focusedItem.key});o?this.activeItemPath=this.activeItemPath.filter(function(i){return i.key!==n.focusedItem.key}):this.focusedItem=Z(this.focusedItem.parent)?this.focusedItem.parent:this.focusedItem,e.preventDefault()}},onArrowRightKey:function(e){var n=this;if(Z(this.focusedItem)){var o=this.isItemGroup(this.focusedItem);if(o){var i=this.activeItemPath.some(function(a){return a.key===n.focusedItem.key});i?this.onArrowDownKey(e):(this.activeItemPath=this.activeItemPath.filter(function(a){return a.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(Z(this.focusedItem)){var n=Ae(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]')),o=n&&(Ae(n,'[data-pc-section="itemlink"]')||Ae(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(i){return i.parentKey!==n.parentKey}),o&&this.activeItemPath.push(n)),this.focusedItem=n,It(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 Qo(this.visibleItems,function(n){return e.isValidItem(n)})},findNextItem:function(e){var n=this,o=this.visibleItems.findIndex(function(a){return a.key===e.key}),i=o<this.visibleItems.length-1?this.visibleItems.slice(o+1).find(function(a){return n.isValidItem(a)}):void 0;return i||e},findPrevItem:function(e){var n=this,o=this.visibleItems.findIndex(function(a){return a.key===e.key}),i=o>0?Qo(this.visibleItems.slice(0,o),function(a){return n.isValidItem(a)}):void 0;return i||e},searchItems:function(e,n){var o=this;this.searchValue=(this.searchValue||"")+n;var i=null,a=!1;if(Z(this.focusedItem)){var c=this.visibleItems.findIndex(function(l){return l.key===o.focusedItem.key});i=this.visibleItems.slice(c).find(function(l){return o.isItemMatched(l)}),i=dn(i)?this.visibleItems.slice(0,c).find(function(l){return o.isItemMatched(l)}):i}else i=this.visibleItems.find(function(l){return o.isItemMatched(l)});return Z(i)&&(a=!0),dn(i)&&dn(this.focusedItem)&&(i=this.findFirstItem()),Z(i)&&this.changeFocusedItem({originalEvent:e,processedItem:i,allowHeaderFocus:!1}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){o.searchValue="",o.searchTimeout=null},500),a},changeFocusedItem:function(e){var n=e.originalEvent,o=e.processedItem,i=e.focusOnNext,a=e.selfCheck,c=e.allowHeaderFocus,l=c===void 0?!0:c;Z(this.focusedItem)&&this.focusedItem.key!==o.key?(this.focusedItem=o,this.scrollInView()):l&&this.$emit("header-focus",{originalEvent:n,focusOnNext:i,selfCheck:a})},scrollInView:function(){var e=Ae(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,i){var a=ll(i,2),c=a[0],l=a[1];if(l){var s=n.findProcessedItemByItemKey(c);s&&o.push(s)}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 i=0;i<n.length;i++){var a=n[i];if(this.getItemProp(a,"key")===e)return a;var c=this.findProcessedItemByItemKey(e,a.items,o+1);if(c)return c}},createProcessedItems:function(e){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",c=[];return e&&e.forEach(function(l,s){var u=(a!==""?a+"_":"")+s,m={item:l,index:s,level:o,key:u,parent:i,parentKey:a};m.items=n.createProcessedItems(l.items,o+1,m,u),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(i){n.isVisibleItem(i)&&(o.push(i),n.flatItems(i.items,o))}),o}},computed:{processedItems:function(){return this.createProcessedItems(this.items||[])},visibleItems:function(){return this.flatItems(this.processedItems)},focusedItemId:function(){return Z(this.focusedItem)?"".concat(this.panelId,"_").concat(this.focusedItem.key):null}},components:{PanelMenuSub:$r}};function fl(t,e,n,o,i,a){var c=r.resolveComponent("PanelMenuSub");return r.openBlock(),r.createBlock(c,r.mergeProps({id:n.panelId+"_list",class:t.cx("rootList"),role:"tree",tabindex:-1,"aria-activedescendant":i.focused?a.focusedItemId:void 0,panelId:n.panelId,focusedItemId:i.focused?a.focusedItemId:void 0,items:a.processedItems,templates:n.templates,activeItemPath:i.activeItemPath,onFocus:a.onFocus,onBlur:a.onBlur,onKeydown:a.onKeyDown,onItemToggle:a.onItemToggle,onItemMousemove:a.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"])}Or.render=fl;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 Lr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function pl(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Lr(Object(n),!0).forEach(function(o){hl(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Lr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function hl(t,e,n){return(e=gl(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gl(t){var e=yl(t,"string");return Vt(e)=="symbol"?e:e+""}function yl(t,e){if(Vt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Vt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Nr={name:"PanelMenu",extends:nl,inheritAttrs:!1,emits:["update:expandedKeys","panel-open","panel-close"],data:function(){return{activeItem:null,activeItems:[]}},methods:{getItemProp:function(e,n){return e?Gn(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 lt(e,n)}):lt(e,this.activeItem)},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return lt(e,this.activeItem)},isItemGroup:function(e){return Z(e.items)},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),It(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?Ae(e.currentTarget.nextElementSibling,'[data-pc-section="rootlist"]'):null;n?It(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?Ae(n.nextElementSibling,'[data-pc-section="rootlist"]'):null;o?It(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=Ae(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,i=Ae(o,'[data-pc-section="header"]');return i?At(i,"data-p-disabled")?this.findNextHeader(i.parentElement):i:null},findPrevHeader:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=n?e:e.previousElementSibling,i=Ae(o,'[data-pc-section="header"]');return i?At(i,"data-p-disabled")?this.findPrevHeader(i.parentElement):i: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,i=e.selfCheck,a=n.currentTarget.closest('[data-pc-section="panel"]'),c=i?Ae(a,'[data-pc-section="header"]'):o?this.findNextHeader(a):this.findPrevHeader(a);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 i=this.isItemActive(n),a=i?"panel-close":"panel-open";this.activeItem=o?n:this.activeItem&&lt(n,this.activeItem)?null:n,this.multiple&&(this.activeItems.some(function(c){return lt(n,c)})?this.activeItems=this.activeItems.filter(function(c){return!lt(n,c)}):this.activeItems.push(n)),this.changeExpandedKeys({item:n,expanded:!i}),this.$emit(a,{originalEvent:e,item:n})}},changeExpandedKeys:function(e){var n=e.item,o=e.expanded,i=o===void 0?!1:o;if(this.expandedKeys){var a=pl({},this.expandedKeys);i?a[n.key]=!0:delete a[n.key],this.$emit("update:expandedKeys",a)}},changeFocusedHeader:function(e,n){n&&It(n)},getMenuItemProps:function(e,n){return{icon:r.mergeProps({class:[this.cx("headerIcon"),this.getItemProp(e,"icon")]},this.getPTOptions("headerIcon",e,n)),label:r.mergeProps({class:this.cx("headerLabel")},this.getPTOptions("headerLabel",e,n))}}},components:{PanelMenuList:Or,ChevronRightIcon:oo,ChevronDownIcon:no}},vl=["id"],bl=["id","tabindex","aria-label","aria-expanded","aria-controls","aria-disabled","onClick","onKeydown","data-p-active","data-p-disabled"],Cl=["href"],wl=["id","aria-labelledby"];function kl(t,e,n,o,i,a){var c=r.resolveComponent("PanelMenuList");return r.openBlock(),r.createElementBlock("div",r.mergeProps({id:t.$id,class:t.cx("root")},t.ptmi("root")),[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.model,function(l,s){return r.openBlock(),r.createElementBlock(r.Fragment,{key:a.getPanelKey(s)},[a.isItemVisible(l)?(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:0,style:a.getItemProp(l,"style"),class:[t.cx("panel"),a.getItemProp(l,"class")]},{ref_for:!0},t.ptm("panel")),[r.createElementVNode("div",r.mergeProps({id:a.getHeaderId(s),class:[t.cx("header",{item:l}),a.getItemProp(l,"headerClass")],tabindex:a.isItemDisabled(l)?-1:t.tabindex,role:"button","aria-label":a.getItemLabel(l),"aria-expanded":a.isItemActive(l),"aria-controls":a.getContentId(s),"aria-disabled":a.isItemDisabled(l),onClick:function(m){return a.onHeaderClick(m,l)},onKeydown:function(m){return a.onHeaderKeyDown(m,l)}},{ref_for:!0},a.getPTOptions("header",l,s),{"data-p-active":a.isItemActive(l),"data-p-disabled":a.isItemDisabled(l)}),[r.createElementVNode("div",r.mergeProps({class:t.cx("headerContent")},{ref_for:!0},a.getPTOptions("headerContent",l,s)),[t.$slots.item?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.$slots.item),{key:1,item:l,root:!0,active:a.isItemActive(l),hasSubmenu:a.isItemGroup(l),label:a.getItemLabel(l),props:a.getMenuItemProps(l,s)},null,8,["item","active","hasSubmenu","label","props"])):(r.openBlock(),r.createElementBlock("a",r.mergeProps({key:0,href:a.getItemProp(l,"url"),class:t.cx("headerLink"),tabindex:-1},{ref_for:!0},a.getPTOptions("headerLink",l,s)),[a.getItemProp(l,"items")?r.renderSlot(t.$slots,"submenuicon",{key:0,active:a.isItemActive(l)},function(){return[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(a.isItemActive(l)?"ChevronDownIcon":"ChevronRightIcon"),r.mergeProps({class:t.cx("submenuIcon")},{ref_for:!0},a.getPTOptions("submenuIcon",l,s)),null,16,["class"]))]}):r.createCommentVNode("",!0),t.$slots.headericon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.$slots.headericon),{key:1,item:l,class:r.normalizeClass([t.cx("headerIcon"),a.getItemProp(l,"icon")])},null,8,["item","class"])):a.getItemProp(l,"icon")?(r.openBlock(),r.createElementBlock("span",r.mergeProps({key:2,class:[t.cx("headerIcon"),a.getItemProp(l,"icon")]},{ref_for:!0},a.getPTOptions("headerIcon",l,s)),null,16)):r.createCommentVNode("",!0),r.createElementVNode("span",r.mergeProps({class:t.cx("headerLabel")},{ref_for:!0},a.getPTOptions("headerLabel",l,s)),r.toDisplayString(a.getItemLabel(l)),17)],16,Cl))],16)],16,bl),r.createVNode(r.Transition,r.mergeProps({name:"p-toggleable-content"},{ref_for:!0},t.ptm("transition")),{default:r.withCtx(function(){return[r.withDirectives(r.createElementVNode("div",r.mergeProps({id:a.getContentId(s),class:t.cx("contentContainer"),role:"region","aria-labelledby":a.getHeaderId(s)},{ref_for:!0},t.ptm("contentContainer")),[a.getItemProp(l,"items")?(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:0,class:t.cx("content")},{ref_for:!0},t.ptm("content")),[r.createVNode(c,{panelId:a.getPanelId(s),items:a.getItemProp(l,"items"),templates:t.$slots,expandedKeys:t.expandedKeys,onItemToggle:a.changeExpandedKeys,onHeaderFocus:a.updateFocusedHeader,pt:t.pt,unstyled:t.unstyled},null,8,["panelId","items","templates","expandedKeys","onItemToggle","onHeaderFocus","pt","unstyled"])],16)):r.createCommentVNode("",!0)],16,wl),[[r.vShow,a.isItemActive(l)]])]}),_:2},1040)],16)):r.createCommentVNode("",!0)],64)}),128))],16,vl)}Nr.render=kl;const Sl={class:"panel-menu-wrapper select-none"},_l=["data-active","onClick"],El={key:0,class:"material-symbols-outlined item-menu-icon-left"},Tl=["textContent"],Pl=["onClick"],Il={key:0,class:"material-symbols-outlined item-menu-icon-left"},Al=["textContent"],xl={key:2,class:r.normalizeClass(["item-menu"])},$l={key:0,class:"material-symbols-outlined item-menu-icon-left"},Bl=["textContent"],Ol=Le(r.defineComponent({__name:"NavMenu",props:{items:{}},setup(t){const e=t,n=(l,s)=>{l.disabled||l.command&&typeof l.command=="function"||s()},o=(l,s)=>{s.disabled||typeof s.command=="function"&&s.command(l)},i=l=>typeof l.label=="function"?l.label():l.label??"Item",a=(l,s,u)=>l.to?(l.exact=l.exact??!1,l.exact?u:s):!1,c=r.computed(()=>e.items.filter(l=>l.visible===!1?!1:typeof l.visible=="function"?l.visible()===!0:!0));return(l,s)=>{const u=r.resolveComponent("router-link");return r.openBlock(),r.createElementBlock("div",Sl,[r.createVNode(r.unref(Nr),{model:c.value,unstyled:!0},{item:r.withCtx(({item:m,active:f})=>[m.to?(r.openBlock(),r.createBlock(u,{key:0,to:m.to,custom:""},{default:r.withCtx(({navigate:p,isExactActive:h,isActive:C})=>[r.createElementVNode("a",{class:r.normalizeClass(["item-menu",{disabled:m.disabled}]),"data-active":a(m,C,h),onClick:r.withModifiers(w=>n(m,p),["prevent"])},[m.icon?(r.openBlock(),r.createElementBlock("span",El,r.toDisplayString(m.icon),1)):r.createCommentVNode("",!0),r.createElementVNode("span",{textContent:r.toDisplayString(i(m))},null,8,Tl)],10,_l)]),_:2},1032,["to"])):typeof m.command=="function"?(r.openBlock(),r.createElementBlock("span",{key:1,class:r.normalizeClass(["item-menu",{disabled:m.disabled}]),onClick:r.withModifiers(p=>o(p,m),["stop"])},[m.icon?(r.openBlock(),r.createElementBlock("span",Il,r.toDisplayString(m.icon),1)):r.createCommentVNode("",!0),r.createElementVNode("span",{textContent:r.toDisplayString(i(m))},null,8,Al)],10,Pl)):(r.openBlock(),r.createElementBlock("a",xl,[m.icon?(r.openBlock(),r.createElementBlock("span",$l,r.toDisplayString(m.icon),1)):r.createCommentVNode("",!0),r.createElementVNode("span",{textContent:r.toDisplayString(i(m))},null,8,Bl),s[0]||(s[0]=r.createElementVNode("div",{class:"sep"},null,-1)),r.createElementVNode("span",{class:r.normalizeClass(["material-symbols-outlined arrow",{"--expand":f}])}," chevron_right ",2)]))]),_:1},8,["model"])])}}}),[["__scopeId","data-v-17765f50"]]),Ll=r.defineComponent({__name:"HelpButton",props:{title:{},tooltip:{},size:{},color:{},filled:{type:Boolean},icon:{}},setup(t){const e=t;r.useSlots();const n=r.ref(!1);function o(){n.value=!0}return(i,a)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.renderSlot(i.$slots,"anchor",r.normalizeProps(r.guardReactiveProps({Show:o})),()=>[r.createVNode(Ie,{button:!0,icon:e.icon??"help",size:e.size??"sm",filled:e.filled,color:e.color??"text",tooltip:e.tooltip??"Ajuda",style:{minWidth:"fit-content"},onClick:o},null,8,["icon","size","filled","color","tooltip"])]),r.createVNode(Go,{visible:n.value,"onUpdate:visible":a[0]||(a[0]=c=>n.value=c),position:"center"},{title:r.withCtx(()=>[r.createElementVNode("b",null,r.toDisplayString(e.title??"Ajuda"),1)]),default:r.withCtx(()=>[r.renderSlot(i.$slots,"default")]),_:3},8,["visible"])],64))}}),Nl=Le(r.defineComponent({__name:"Content",props:{fluid:{type:Boolean}},setup(t){const e=t;return r.useSlots(),(n,o)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["sf-content-wrapper",{"--fluid":e.fluid}])},[r.renderSlot(n.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-32e5acfa"]]);function Ml(t){return r.getCurrentScope()?(r.onScopeDispose(t),!0):!1}const Dl=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function Rl(t){return Array.isArray(t)?t:[t]}function Vl(t){return r.getCurrentInstance()}function jl(t,e=!0,n){Vl()?r.onMounted(t,n):e?t():r.nextTick(t)}const Mr=Dl?window:void 0;function dt(t){var e;const n=r.toValue(t);return(e=n?.$el)!=null?e:n}function Hl(){const t=r.shallowRef(!1),e=r.getCurrentInstance();return e&&r.onMounted(()=>{t.value=!0},e),t}function Fl(t){const e=Hl();return r.computed(()=>(e.value,!!t()))}function Dr(t,e,n={}){const{window:o=Mr,...i}=n;let a;const c=Fl(()=>o&&"ResizeObserver"in o),l=()=>{a&&(a.disconnect(),a=void 0)},s=r.computed(()=>{const f=r.toValue(t);return Array.isArray(f)?f.map(p=>dt(p)):[dt(f)]}),u=r.watch(s,f=>{if(l(),c.value&&o){a=new ResizeObserver(e);for(const p of f)p&&a.observe(p,i)}},{immediate:!0,flush:"post"}),m=()=>{l(),u()};return Ml(m),{isSupported:c,stop:m}}function Ul(t,e={width:0,height:0},n={}){const{window:o=Mr,box:i="content-box"}=n,a=r.computed(()=>{var f,p;return(p=(f=dt(t))==null?void 0:f.namespaceURI)==null?void 0:p.includes("svg")}),c=r.shallowRef(e.width),l=r.shallowRef(e.height),{stop:s}=Dr(t,([f])=>{const p=i==="border-box"?f.borderBoxSize:i==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(o&&a.value){const h=dt(t);if(h){const C=h.getBoundingClientRect();c.value=C.width,l.value=C.height}}else if(p){const h=Rl(p);c.value=h.reduce((C,{inlineSize:w})=>C+w,0),l.value=h.reduce((C,{blockSize:w})=>C+w,0)}else c.value=f.contentRect.width,l.value=f.contentRect.height},n);jl(()=>{const f=dt(t);f&&(c.value="offsetWidth"in f?f.offsetWidth:e.width,l.value="offsetHeight"in f?f.offsetHeight:e.height)});const u=r.watch(()=>dt(t),f=>{c.value=f?e.width:0,l.value=f?e.height:0});function m(){s(),u()}return{width:c,height:l,stop:m}}const Rr=Symbol();function zl(){return r.inject(Rr)}const jt=()=>zl(),Kl={class:"body"},Wl={class:"my-3 name"},Gl={class:"login-buttons py-3 mx-auto"},ql={class:"my-3 footer"},Yl=Le(r.defineComponent({__name:"Login",props:{enableAdlogin:{type:Boolean}},setup(t){const e=t,n=r.ref(null),{width:o}=Ul(n),i=r.computed(()=>o.value>300?"md":"sm"),a=Hn.UseAuth(),{ClearStoredTheme:c,EnableLightMode:l}=jt(),s=r.computed(()=>e.enableAdlogin===!0),u=r.ref(!1),m=r.ref(null);async function f(p){u.value||(u.value=!0,m.value=p,await new Promise(h=>setTimeout(h,400)),c(),p==="govbr"?a.LoginGovBr():s&&p==="sf"&&a.oidc.login())}return r.onBeforeMount(()=>{l()}),(p,h)=>(r.openBlock(),r.createElementBlock("div",Kl,[h[6]||(h[6]=r.createElementVNode("div",{class:"bg"},null,-1)),r.createElementVNode("div",{class:"card",ref_key:"cardRef",ref:n},[h[5]||(h[5]=r.createElementVNode("div",{class:"my-3 logo"},null,-1)),r.createElementVNode("div",Wl,[r.renderSlot(p.$slots,"name",{},()=>[h[2]||(h[2]=r.createTextVNode("Nome do sistema"))],!0)]),r.createElementVNode("div",Gl,[r.renderSlot(p.$slots,"buttons",r.normalizeProps(r.guardReactiveProps({Login:f})),()=>[r.createVNode(r.unref(Un),{size:i.value,icon:"person","icon-filled":!0,class:r.normalizeClass("w-full text-nowrap justify-content-center"),loading:u.value&&m.value==="govbr",onClick:h[0]||(h[0]=C=>f("govbr"))},{default:r.withCtx(()=>h[3]||(h[3]=[r.createTextVNode(" Entrar com "),r.createElementVNode("b",null,"Gov.br",-1)])),_:1,__:[3]},8,["size","loading"]),s.value?(r.openBlock(),r.createBlock(r.unref(Un),{key:0,size:i.value,icon:"person","icon-filled":!0,class:r.normalizeClass("w-full text-nowrap justify-content-center"),loading:u.value&&m.value==="sf",onClick:h[1]||(h[1]=C=>f("sf"))},{default:r.withCtx(()=>h[4]||(h[4]=[r.createTextVNode(" Entrar com "),r.createElementVNode("b",null,"SF",-1)])),_:1,__:[4]},8,["size","loading"])):r.createCommentVNode("",!0),r.renderSlot(p.$slots,"extra-button",{},void 0,!0)],!0)]),r.createElementVNode("div",ql,[r.renderSlot(p.$slots,"footer",{},void 0,!0)])],512)]))}}),[["__scopeId","data-v-a9cae4be"]]);class Xl{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 Ht=new Xl,Vr="SweetAlert2:",Zl=t=>{const e=[];for(let n=0;n<t.length;n++)e.indexOf(t[n])===-1&&e.push(t[n]);return e},ao=t=>t.charAt(0).toUpperCase()+t.slice(1),he=t=>Array.prototype.slice.call(t),ue=t=>{console.warn(`${Vr} ${typeof t=="object"?t.join(" "):t}`)},nt=t=>{console.error(`${Vr} ${t}`)},jr=[],Jl=t=>{jr.includes(t)||(jr.push(t),ue(t))},Ql=(t,e)=>{Jl(`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`)},bn=t=>typeof t=="function"?t():t,so=t=>t&&typeof t.toPromise=="function",Ft=t=>so(t)?t.toPromise():Promise.resolve(t),lo=t=>t&&Promise.resolve(t)===t,mt={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},ec=["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"],tc={},nc=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Hr=t=>Object.prototype.hasOwnProperty.call(mt,t),Fr=t=>ec.indexOf(t)!==-1,co=t=>tc[t],oc=t=>{Hr(t)||ue(`Unknown parameter "${t}"`)},rc=t=>{nc.includes(t)&&ue(`The parameter "${t}" is incompatible with toasts`)},ic=t=>{co(t)&&Ql(t,co(t))},ac=t=>{!t.backdrop&&t.allowOutsideClick&&ue('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)oc(e),t.toast&&rc(e),ic(e)},sc="swal2-",Ur=t=>{const e={};for(const n in t)e[t[n]]=sc+t[n];return e},g=Ur(["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"]),Ut=Ur(["success","warning","info","question","error"]),J=()=>document.body.querySelector(`.${g.container}`),zt=t=>{const e=J();return e?e.querySelector(t):null},ye=t=>zt(`.${t}`),D=()=>ye(g.popup),Kt=()=>ye(g.icon),zr=()=>ye(g.title),Cn=()=>ye(g["html-container"]),Kr=()=>ye(g.image),Wr=()=>ye(g["progress-steps"]),wn=()=>ye(g["validation-message"]),Ee=()=>zt(`.${g.actions} .${g.confirm}`),We=()=>zt(`.${g.actions} .${g.deny}`),lc=()=>ye(g["input-label"]),ft=()=>zt(`.${g.loader}`),ot=()=>zt(`.${g.actions} .${g.cancel}`),Wt=()=>ye(g.actions),Gr=()=>ye(g.footer),kn=()=>ye(g["timer-progress-bar"]),uo=()=>ye(g.close),cc=`
357
+ `,Ws={root:"p-ink"},Gs=q.extend({name:"ripple-directive",style:Ks,classes:Ws}),qs=$.extend({style:Gs});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 Ys(t){return Qs(t)||Js(t)||Zs(t)||Xs()}function Xs(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
358
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zs(t,e){if(t){if(typeof t=="string")return io(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)?io(t,e):void 0}}function Js(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Qs(t){if(Array.isArray(t))return io(t)}function io(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 Or(t,e,n){return(e=el(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function el(t){var e=tl(t,"string");return Vt(e)=="symbol"?e:e+""}function tl(t,e){if(Vt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Vt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var nl=qs.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=this.getInk(e);n||(n=Na("span",Or(Or({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,i=this.getInk(o);if(!(!i||getComputedStyle(i,null).display==="none")){if(!this.isUnstyled()&&Wn(i,"p-ink-active"),i.setAttribute("data-p-ink-active","false"),!Xo(i)&&!Zo(i)){var a=Math.max(La(o),Da(o));i.style.height=a+"px",i.style.width=a+"px"}var c=Ma(o),l=e.pageX-c.left+document.body.scrollTop-Zo(i)/2,s=e.pageY-c.top+document.body.scrollLeft-Xo(i)/2;i.style.top=s+"px",i.style.left=l+"px",!this.isUnstyled()&&Oa(i,"p-ink-active"),i.setAttribute("data-p-ink-active","true"),this.timeout=setTimeout(function(){i&&(!n.isUnstyled()&&Wn(i,"p-ink-active"),i.setAttribute("data-p-ink-active","false"))},401)}},onAnimationEnd:function(e){this.timeout&&clearTimeout(this.timeout),!this.isUnstyled()&&Wn(e.currentTarget,"p-ink-active"),e.currentTarget.setAttribute("data-p-ink-active","false")},getInk:function(e){return e&&e.children?Ys(e.children).find(function(n){return At(n,"data-pc-name")==="ripple"}):void 0}}}),ol={name:"BasePanelMenu",extends:bn,props:{model:{type:Array,default:null},expandedKeys:{type:Object,default:null},multiple:{type:Boolean,default:!1},tabindex:{type:Number,default:0}},style:Rs,provide:function(){return{$pcPanelMenu:this,$parentInstance:this}}},Lr={name:"PanelMenuSub",hostName:"PanelMenu",extends:bn,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?Yn(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 Z(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:r.mergeProps({class:this.cx("itemLink"),tabindex:-1},this.getPTOptions("itemLink",e,n)),icon:r.mergeProps({class:[this.cx("itemIcon"),this.getItemProp(e,"icon")]},this.getPTOptions("itemIcon",e,n)),label:r.mergeProps({class:this.cx("itemLabel")},this.getPTOptions("itemLabel",e,n)),submenuicon:r.mergeProps({class:this.cx("submenuIcon")},this.getPTOptions("submenuicon",e,n))}}},components:{ChevronRightIcon:oo,ChevronDownIcon:no},directives:{ripple:nl}},rl=["tabindex"],il=["id","aria-label","aria-expanded","aria-level","aria-setsize","aria-posinset","data-p-focused","data-p-disabled"],al=["onClick","onMousemove"],sl=["href","target"];function ll(t,e,n,o,i,a){var c=r.resolveComponent("PanelMenuSub",!0),l=r.resolveDirective("ripple");return r.openBlock(),r.createElementBlock("ul",{class:r.normalizeClass(t.cx("submenu")),tabindex:n.tabindex},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.items,function(s,u){return r.openBlock(),r.createElementBlock(r.Fragment,{key:a.getItemKey(s)},[a.isItemVisible(s)&&!a.getItemProp(s,"separator")?(r.openBlock(),r.createElementBlock("li",r.mergeProps({key:0,id:a.getItemId(s),class:[t.cx("item",{processedItem:s}),a.getItemProp(s,"class")],style:a.getItemProp(s,"style"),role:"treeitem","aria-label":a.getItemLabel(s),"aria-expanded":a.isItemGroup(s)?a.isItemActive(s):void 0,"aria-level":n.level+1,"aria-setsize":a.getAriaSetSize(),"aria-posinset":a.getAriaPosInset(u)},{ref_for:!0},a.getPTOptions("item",s,u),{"data-p-focused":a.isItemFocused(s),"data-p-disabled":a.isItemDisabled(s)}),[r.createElementVNode("div",r.mergeProps({class:t.cx("itemContent"),onClick:function(f){return a.onItemClick(f,s)},onMousemove:function(f){return a.onItemMouseMove(f,s)}},{ref_for:!0},a.getPTOptions("itemContent",s,u)),[n.templates.item?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.templates.item),{key:1,item:s.item,root:!1,active:a.isItemActive(s),hasSubmenu:a.isItemGroup(s),label:a.getItemLabel(s),props:a.getMenuItemProps(s,u)},null,8,["item","active","hasSubmenu","label","props"])):r.withDirectives((r.openBlock(),r.createElementBlock("a",r.mergeProps({key:0,href:a.getItemProp(s,"url"),class:t.cx("itemLink"),target:a.getItemProp(s,"target"),tabindex:"-1"},{ref_for:!0},a.getPTOptions("itemLink",s,u)),[a.isItemGroup(s)?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[n.templates.submenuicon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.templates.submenuicon),r.mergeProps({key:0,class:t.cx("submenuIcon"),active:a.isItemActive(s)},{ref_for:!0},a.getPTOptions("submenuIcon",s,u)),null,16,["class","active"])):(r.openBlock(),r.createBlock(r.resolveDynamicComponent(a.isItemActive(s)?"ChevronDownIcon":"ChevronRightIcon"),r.mergeProps({key:1,class:t.cx("submenuIcon")},{ref_for:!0},a.getPTOptions("submenuIcon",s,u)),null,16,["class"]))],64)):r.createCommentVNode("",!0),n.templates.itemicon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.templates.itemicon),{key:1,item:s.item,class:r.normalizeClass(t.cx("itemIcon"))},null,8,["item","class"])):a.getItemProp(s,"icon")?(r.openBlock(),r.createElementBlock("span",r.mergeProps({key:2,class:[t.cx("itemIcon"),a.getItemProp(s,"icon")]},{ref_for:!0},a.getPTOptions("itemIcon",s,u)),null,16)):r.createCommentVNode("",!0),r.createElementVNode("span",r.mergeProps({class:t.cx("itemLabel")},{ref_for:!0},a.getPTOptions("itemLabel",s,u)),r.toDisplayString(a.getItemLabel(s)),17)],16,sl)),[[l]])],16,al),r.createVNode(r.Transition,r.mergeProps({name:"p-toggleable-content"},{ref_for:!0},t.ptm("transition")),{default:r.withCtx(function(){return[r.withDirectives(r.createElementVNode("div",r.mergeProps({class:t.cx("contentContainer")},{ref_for:!0},t.ptm("contentContainer")),[a.isItemVisible(s)&&a.isItemGroup(s)?(r.openBlock(),r.createBlock(c,r.mergeProps({key:0,id:a.getItemId(s)+"_list",role:"group",panelId:n.panelId,focusedItemId:n.focusedItemId,items:s.items,level:n.level+1,templates:n.templates,activeItemPath:n.activeItemPath,onItemToggle:a.onItemToggle,onItemMousemove:e[0]||(e[0]=function(d){return t.$emit("item-mousemove",d)}),pt:t.pt,unstyled:t.unstyled},{ref_for:!0},t.ptm("submenu")),null,16,["id","panelId","focusedItemId","items","level","templates","activeItemPath","onItemToggle","pt","unstyled"])):r.createCommentVNode("",!0)],16),[[r.vShow,a.isItemActive(s)]])]}),_:2},1040)],16,il)):r.createCommentVNode("",!0),a.isItemVisible(s)&&a.getItemProp(s,"separator")?(r.openBlock(),r.createElementBlock("li",r.mergeProps({key:1,style:a.getItemProp(s,"style"),class:[t.cx("separator"),a.getItemProp(s,"class")],role:"separator"},{ref_for:!0},t.ptm("separator")),null,16)):r.createCommentVNode("",!0)],64)}),128))],10,rl)}Lr.render=ll;function cl(t,e){return fl(t)||ml(t,e)||dl(t,e)||ul()}function ul(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
359
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dl(t,e){if(t){if(typeof t=="string")return Nr(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)?Nr(t,e):void 0}}function Nr(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 ml(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,i,a,c,l=[],s=!0,u=!1;try{if(a=(n=n.call(t)).next,e!==0)for(;!(s=(o=a.call(n)).done)&&(l.push(o.value),l.length!==e);s=!0);}catch(d){u=!0,i=d}finally{try{if(!s&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(u)throw i}}return l}}function fl(t){if(Array.isArray(t))return t}var Mr={name:"PanelMenuList",hostName:"PanelMenu",extends:bn,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)}},created:function(){this.autoUpdateActiveItemPath(this.expandedKeys)},methods:{getItemProp:function(e,n){return e&&e.item?Yn(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 Z(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&&ja(e.key)&&this.searchItems(e,e.key);break}},onArrowDownKey:function(e){var n=Z(this.focusedItem)?this.findNextItem(this.focusedItem):this.findFirstItem();this.changeFocusedItem({originalEvent:e,processedItem:n,focusOnNext:!0}),e.preventDefault()},onArrowUpKey:function(e){var n=Z(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(Z(this.focusedItem)){var o=this.activeItemPath.some(function(i){return i.key===n.focusedItem.key});o?this.activeItemPath=this.activeItemPath.filter(function(i){return i.key!==n.focusedItem.key}):this.focusedItem=Z(this.focusedItem.parent)?this.focusedItem.parent:this.focusedItem,e.preventDefault()}},onArrowRightKey:function(e){var n=this;if(Z(this.focusedItem)){var o=this.isItemGroup(this.focusedItem);if(o){var i=this.activeItemPath.some(function(a){return a.key===n.focusedItem.key});i?this.onArrowDownKey(e):(this.activeItemPath=this.activeItemPath.filter(function(a){return a.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(Z(this.focusedItem)){var n=Ae(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]')),o=n&&(Ae(n,'[data-pc-section="itemlink"]')||Ae(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(i){return i.parentKey!==n.parentKey}),o&&this.activeItemPath.push(n)),this.focusedItem=n,It(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 Qo(this.visibleItems,function(n){return e.isValidItem(n)})},findNextItem:function(e){var n=this,o=this.visibleItems.findIndex(function(a){return a.key===e.key}),i=o<this.visibleItems.length-1?this.visibleItems.slice(o+1).find(function(a){return n.isValidItem(a)}):void 0;return i||e},findPrevItem:function(e){var n=this,o=this.visibleItems.findIndex(function(a){return a.key===e.key}),i=o>0?Qo(this.visibleItems.slice(0,o),function(a){return n.isValidItem(a)}):void 0;return i||e},searchItems:function(e,n){var o=this;this.searchValue=(this.searchValue||"")+n;var i=null,a=!1;if(Z(this.focusedItem)){var c=this.visibleItems.findIndex(function(l){return l.key===o.focusedItem.key});i=this.visibleItems.slice(c).find(function(l){return o.isItemMatched(l)}),i=mn(i)?this.visibleItems.slice(0,c).find(function(l){return o.isItemMatched(l)}):i}else i=this.visibleItems.find(function(l){return o.isItemMatched(l)});return Z(i)&&(a=!0),mn(i)&&mn(this.focusedItem)&&(i=this.findFirstItem()),Z(i)&&this.changeFocusedItem({originalEvent:e,processedItem:i,allowHeaderFocus:!1}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){o.searchValue="",o.searchTimeout=null},500),a},changeFocusedItem:function(e){var n=e.originalEvent,o=e.processedItem,i=e.focusOnNext,a=e.selfCheck,c=e.allowHeaderFocus,l=c===void 0?!0:c;Z(this.focusedItem)&&this.focusedItem.key!==o.key?(this.focusedItem=o,this.scrollInView()):l&&this.$emit("header-focus",{originalEvent:n,focusOnNext:i,selfCheck:a})},scrollInView:function(){var e=Ae(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,i){var a=cl(i,2),c=a[0],l=a[1];if(l){var s=n.findProcessedItemByItemKey(c);s&&o.push(s)}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 i=0;i<n.length;i++){var a=n[i];if(this.getItemProp(a,"key")===e)return a;var c=this.findProcessedItemByItemKey(e,a.items,o+1);if(c)return c}},createProcessedItems:function(e){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",c=[];return e&&e.forEach(function(l,s){var u=(a!==""?a+"_":"")+s,d={item:l,index:s,level:o,key:u,parent:i,parentKey:a};d.items=n.createProcessedItems(l.items,o+1,d,u),c.push(d)}),c},flatItems:function(e){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e&&e.forEach(function(i){n.isVisibleItem(i)&&(o.push(i),n.flatItems(i.items,o))}),o}},computed:{processedItems:function(){return this.createProcessedItems(this.items||[])},visibleItems:function(){return this.flatItems(this.processedItems)},focusedItemId:function(){return Z(this.focusedItem)?"".concat(this.panelId,"_").concat(this.focusedItem.key):null}},components:{PanelMenuSub:Lr}};function pl(t,e,n,o,i,a){var c=r.resolveComponent("PanelMenuSub");return r.openBlock(),r.createBlock(c,r.mergeProps({id:n.panelId+"_list",class:t.cx("rootList"),role:"tree",tabindex:-1,"aria-activedescendant":i.focused?a.focusedItemId:void 0,panelId:n.panelId,focusedItemId:i.focused?a.focusedItemId:void 0,items:a.processedItems,templates:n.templates,activeItemPath:i.activeItemPath,onFocus:a.onFocus,onBlur:a.onBlur,onKeydown:a.onKeyDown,onItemToggle:a.onItemToggle,onItemMousemove:a.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"])}Mr.render=pl;function jt(t){"@babel/helpers - typeof";return jt=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},jt(t)}function Dr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function hl(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Dr(Object(n),!0).forEach(function(o){gl(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Dr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function gl(t,e,n){return(e=yl(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yl(t){var e=vl(t,"string");return jt(e)=="symbol"?e:e+""}function vl(t,e){if(jt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(jt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Rr={name:"PanelMenu",extends:ol,inheritAttrs:!1,emits:["update:expandedKeys","panel-open","panel-close"],data:function(){return{activeItem:null,activeItems:[]}},methods:{getItemProp:function(e,n){return e?Yn(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 ct(e,n)}):ct(e,this.activeItem)},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return ct(e,this.activeItem)},isItemGroup:function(e){return Z(e.items)},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),It(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?Ae(e.currentTarget.nextElementSibling,'[data-pc-section="rootlist"]'):null;n?It(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?Ae(n.nextElementSibling,'[data-pc-section="rootlist"]'):null;o?It(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=Ae(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,i=Ae(o,'[data-pc-section="header"]');return i?At(i,"data-p-disabled")?this.findNextHeader(i.parentElement):i:null},findPrevHeader:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=n?e:e.previousElementSibling,i=Ae(o,'[data-pc-section="header"]');return i?At(i,"data-p-disabled")?this.findPrevHeader(i.parentElement):i: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,i=e.selfCheck,a=n.currentTarget.closest('[data-pc-section="panel"]'),c=i?Ae(a,'[data-pc-section="header"]'):o?this.findNextHeader(a):this.findPrevHeader(a);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 i=this.isItemActive(n),a=i?"panel-close":"panel-open";this.activeItem=o?n:this.activeItem&&ct(n,this.activeItem)?null:n,this.multiple&&(this.activeItems.some(function(c){return ct(n,c)})?this.activeItems=this.activeItems.filter(function(c){return!ct(n,c)}):this.activeItems.push(n)),this.changeExpandedKeys({item:n,expanded:!i}),this.$emit(a,{originalEvent:e,item:n})}},changeExpandedKeys:function(e){var n=e.item,o=e.expanded,i=o===void 0?!1:o;if(this.expandedKeys){var a=hl({},this.expandedKeys);i?a[n.key]=!0:delete a[n.key],this.$emit("update:expandedKeys",a)}},changeFocusedHeader:function(e,n){n&&It(n)},getMenuItemProps:function(e,n){return{icon:r.mergeProps({class:[this.cx("headerIcon"),this.getItemProp(e,"icon")]},this.getPTOptions("headerIcon",e,n)),label:r.mergeProps({class:this.cx("headerLabel")},this.getPTOptions("headerLabel",e,n))}}},components:{PanelMenuList:Mr,ChevronRightIcon:oo,ChevronDownIcon:no}},bl=["id"],Cl=["id","tabindex","aria-label","aria-expanded","aria-controls","aria-disabled","onClick","onKeydown","data-p-active","data-p-disabled"],wl=["href"],kl=["id","aria-labelledby"];function Sl(t,e,n,o,i,a){var c=r.resolveComponent("PanelMenuList");return r.openBlock(),r.createElementBlock("div",r.mergeProps({id:t.$id,class:t.cx("root")},t.ptmi("root")),[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.model,function(l,s){return r.openBlock(),r.createElementBlock(r.Fragment,{key:a.getPanelKey(s)},[a.isItemVisible(l)?(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:0,style:a.getItemProp(l,"style"),class:[t.cx("panel"),a.getItemProp(l,"class")]},{ref_for:!0},t.ptm("panel")),[r.createElementVNode("div",r.mergeProps({id:a.getHeaderId(s),class:[t.cx("header",{item:l}),a.getItemProp(l,"headerClass")],tabindex:a.isItemDisabled(l)?-1:t.tabindex,role:"button","aria-label":a.getItemLabel(l),"aria-expanded":a.isItemActive(l),"aria-controls":a.getContentId(s),"aria-disabled":a.isItemDisabled(l),onClick:function(d){return a.onHeaderClick(d,l)},onKeydown:function(d){return a.onHeaderKeyDown(d,l)}},{ref_for:!0},a.getPTOptions("header",l,s),{"data-p-active":a.isItemActive(l),"data-p-disabled":a.isItemDisabled(l)}),[r.createElementVNode("div",r.mergeProps({class:t.cx("headerContent")},{ref_for:!0},a.getPTOptions("headerContent",l,s)),[t.$slots.item?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.$slots.item),{key:1,item:l,root:!0,active:a.isItemActive(l),hasSubmenu:a.isItemGroup(l),label:a.getItemLabel(l),props:a.getMenuItemProps(l,s)},null,8,["item","active","hasSubmenu","label","props"])):(r.openBlock(),r.createElementBlock("a",r.mergeProps({key:0,href:a.getItemProp(l,"url"),class:t.cx("headerLink"),tabindex:-1},{ref_for:!0},a.getPTOptions("headerLink",l,s)),[a.getItemProp(l,"items")?r.renderSlot(t.$slots,"submenuicon",{key:0,active:a.isItemActive(l)},function(){return[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(a.isItemActive(l)?"ChevronDownIcon":"ChevronRightIcon"),r.mergeProps({class:t.cx("submenuIcon")},{ref_for:!0},a.getPTOptions("submenuIcon",l,s)),null,16,["class"]))]}):r.createCommentVNode("",!0),t.$slots.headericon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.$slots.headericon),{key:1,item:l,class:r.normalizeClass([t.cx("headerIcon"),a.getItemProp(l,"icon")])},null,8,["item","class"])):a.getItemProp(l,"icon")?(r.openBlock(),r.createElementBlock("span",r.mergeProps({key:2,class:[t.cx("headerIcon"),a.getItemProp(l,"icon")]},{ref_for:!0},a.getPTOptions("headerIcon",l,s)),null,16)):r.createCommentVNode("",!0),r.createElementVNode("span",r.mergeProps({class:t.cx("headerLabel")},{ref_for:!0},a.getPTOptions("headerLabel",l,s)),r.toDisplayString(a.getItemLabel(l)),17)],16,wl))],16)],16,Cl),r.createVNode(r.Transition,r.mergeProps({name:"p-toggleable-content"},{ref_for:!0},t.ptm("transition")),{default:r.withCtx(function(){return[r.withDirectives(r.createElementVNode("div",r.mergeProps({id:a.getContentId(s),class:t.cx("contentContainer"),role:"region","aria-labelledby":a.getHeaderId(s)},{ref_for:!0},t.ptm("contentContainer")),[a.getItemProp(l,"items")?(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:0,class:t.cx("content")},{ref_for:!0},t.ptm("content")),[r.createVNode(c,{panelId:a.getPanelId(s),items:a.getItemProp(l,"items"),templates:t.$slots,expandedKeys:t.expandedKeys,onItemToggle:a.changeExpandedKeys,onHeaderFocus:a.updateFocusedHeader,pt:t.pt,unstyled:t.unstyled},null,8,["panelId","items","templates","expandedKeys","onItemToggle","onHeaderFocus","pt","unstyled"])],16)):r.createCommentVNode("",!0)],16,kl),[[r.vShow,a.isItemActive(l)]])]}),_:2},1040)],16)):r.createCommentVNode("",!0)],64)}),128))],16,bl)}Rr.render=Sl;const _l={class:"panel-menu-wrapper select-none"},El=["data-active","onClick"],Tl={key:0,class:"material-symbols-outlined item-menu-icon-left"},Pl=["textContent"],Il=["onClick"],Al={key:0,class:"material-symbols-outlined item-menu-icon-left"},xl=["textContent"],$l={key:2,class:r.normalizeClass(["item-menu"])},Bl={key:0,class:"material-symbols-outlined item-menu-icon-left"},Ol=["textContent"],Ll=Le(r.defineComponent({__name:"NavMenu",props:{items:{}},setup(t){const e=t,n=(l,s)=>{l.disabled||l.command&&typeof l.command=="function"||s()},o=(l,s)=>{s.disabled||typeof s.command=="function"&&s.command(l)},i=l=>typeof l.label=="function"?l.label():l.label??"Item",a=(l,s,u)=>l.to?(l.exact=l.exact??!1,l.exact?u:s):!1,c=r.computed(()=>e.items.filter(l=>l.visible===!1?!1:typeof l.visible=="function"?l.visible()===!0:!0));return(l,s)=>{const u=r.resolveComponent("router-link");return r.openBlock(),r.createElementBlock("div",_l,[r.createVNode(r.unref(Rr),{model:c.value,unstyled:!0},{item:r.withCtx(({item:d,active:f})=>[d.to?(r.openBlock(),r.createBlock(u,{key:0,to:d.to,custom:""},{default:r.withCtx(({navigate:p,isExactActive:h,isActive:C})=>[r.createElementVNode("a",{class:r.normalizeClass(["item-menu",{disabled:d.disabled}]),"data-active":a(d,C,h),onClick:r.withModifiers(w=>n(d,p),["prevent"])},[d.icon?(r.openBlock(),r.createElementBlock("span",Tl,r.toDisplayString(d.icon),1)):r.createCommentVNode("",!0),r.createElementVNode("span",{textContent:r.toDisplayString(i(d))},null,8,Pl)],10,El)]),_:2},1032,["to"])):typeof d.command=="function"?(r.openBlock(),r.createElementBlock("span",{key:1,class:r.normalizeClass(["item-menu",{disabled:d.disabled}]),onClick:r.withModifiers(p=>o(p,d),["stop"])},[d.icon?(r.openBlock(),r.createElementBlock("span",Al,r.toDisplayString(d.icon),1)):r.createCommentVNode("",!0),r.createElementVNode("span",{textContent:r.toDisplayString(i(d))},null,8,xl)],10,Il)):(r.openBlock(),r.createElementBlock("a",$l,[d.icon?(r.openBlock(),r.createElementBlock("span",Bl,r.toDisplayString(d.icon),1)):r.createCommentVNode("",!0),r.createElementVNode("span",{textContent:r.toDisplayString(i(d))},null,8,Ol),s[0]||(s[0]=r.createElementVNode("div",{class:"sep"},null,-1)),r.createElementVNode("span",{class:r.normalizeClass(["material-symbols-outlined arrow",{"--expand":f}])}," chevron_right ",2)]))]),_:1},8,["model"])])}}}),[["__scopeId","data-v-17765f50"]]),Nl=r.defineComponent({__name:"HelpButton",props:{title:{},tooltip:{},size:{},color:{},filled:{type:Boolean},icon:{}},setup(t){const e=t;r.useSlots();const n=r.ref(!1);function o(){n.value=!0}return(i,a)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.renderSlot(i.$slots,"anchor",r.normalizeProps(r.guardReactiveProps({Show:o})),()=>[r.createVNode(Ie,{button:!0,icon:e.icon??"help",size:e.size??"sm",filled:e.filled,color:e.color??"text",tooltip:e.tooltip??"Ajuda",style:{minWidth:"fit-content"},onClick:o},null,8,["icon","size","filled","color","tooltip"])]),r.createVNode(Go,{visible:n.value,"onUpdate:visible":a[0]||(a[0]=c=>n.value=c),position:"center"},{title:r.withCtx(()=>[r.createElementVNode("b",null,r.toDisplayString(e.title??"Ajuda"),1)]),default:r.withCtx(()=>[r.renderSlot(i.$slots,"default")]),_:3},8,["visible"])],64))}}),Ml=Le(r.defineComponent({__name:"Content",props:{fluid:{type:Boolean}},setup(t){const e=t;return r.useSlots(),(n,o)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["sf-content-wrapper",{"--fluid":e.fluid}])},[r.renderSlot(n.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-32e5acfa"]]);function Dl(t){return r.getCurrentScope()?(r.onScopeDispose(t),!0):!1}const Rl=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function Vl(t){return Array.isArray(t)?t:[t]}function jl(t){return r.getCurrentInstance()}function Hl(t,e=!0,n){jl()?r.onMounted(t,n):e?t():r.nextTick(t)}const Vr=Rl?window:void 0;function dt(t){var e;const n=r.toValue(t);return(e=n?.$el)!=null?e:n}function Fl(){const t=r.shallowRef(!1),e=r.getCurrentInstance();return e&&r.onMounted(()=>{t.value=!0},e),t}function Ul(t){const e=Fl();return r.computed(()=>(e.value,!!t()))}function jr(t,e,n={}){const{window:o=Vr,...i}=n;let a;const c=Ul(()=>o&&"ResizeObserver"in o),l=()=>{a&&(a.disconnect(),a=void 0)},s=r.computed(()=>{const f=r.toValue(t);return Array.isArray(f)?f.map(p=>dt(p)):[dt(f)]}),u=r.watch(s,f=>{if(l(),c.value&&o){a=new ResizeObserver(e);for(const p of f)p&&a.observe(p,i)}},{immediate:!0,flush:"post"}),d=()=>{l(),u()};return Dl(d),{isSupported:c,stop:d}}function zl(t,e={width:0,height:0},n={}){const{window:o=Vr,box:i="content-box"}=n,a=r.computed(()=>{var f,p;return(p=(f=dt(t))==null?void 0:f.namespaceURI)==null?void 0:p.includes("svg")}),c=r.shallowRef(e.width),l=r.shallowRef(e.height),{stop:s}=jr(t,([f])=>{const p=i==="border-box"?f.borderBoxSize:i==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(o&&a.value){const h=dt(t);if(h){const C=h.getBoundingClientRect();c.value=C.width,l.value=C.height}}else if(p){const h=Vl(p);c.value=h.reduce((C,{inlineSize:w})=>C+w,0),l.value=h.reduce((C,{blockSize:w})=>C+w,0)}else c.value=f.contentRect.width,l.value=f.contentRect.height},n);Hl(()=>{const f=dt(t);f&&(c.value="offsetWidth"in f?f.offsetWidth:e.width,l.value="offsetHeight"in f?f.offsetHeight:e.height)});const u=r.watch(()=>dt(t),f=>{c.value=f?e.width:0,l.value=f?e.height:0});function d(){s(),u()}return{width:c,height:l,stop:d}}const Hr=Symbol();function Kl(){return r.inject(Hr)}const Ht=()=>Kl(),Wl={class:"body"},Gl={class:"my-3 name"},ql={class:"login-buttons py-3 mx-auto"},Yl={class:"my-3 footer"},Xl=Le(r.defineComponent({__name:"Login",props:{enableAdlogin:{type:Boolean}},setup(t){const e=t,n=r.ref(null),{width:o}=zl(n),i=r.computed(()=>o.value>300?"md":"sm"),a=Un.UseAuth(),{ClearStoredTheme:c,EnableLightMode:l}=Ht(),s=r.computed(()=>e.enableAdlogin===!0),u=r.ref(!1),d=r.ref(null);async function f(p){u.value||(u.value=!0,d.value=p,await new Promise(h=>setTimeout(h,400)),c(),p==="govbr"?a.LoginGovBr():s&&p==="sf"&&a.oidc.login())}return r.onBeforeMount(()=>{l()}),(p,h)=>(r.openBlock(),r.createElementBlock("div",Wl,[h[6]||(h[6]=r.createElementVNode("div",{class:"bg"},null,-1)),r.createElementVNode("div",{class:"card",ref_key:"cardRef",ref:n},[h[5]||(h[5]=r.createElementVNode("div",{class:"my-3 logo"},null,-1)),r.createElementVNode("div",Gl,[r.renderSlot(p.$slots,"name",{},()=>[h[2]||(h[2]=r.createTextVNode("Nome do sistema",-1))],!0)]),r.createElementVNode("div",ql,[r.renderSlot(p.$slots,"buttons",r.normalizeProps(r.guardReactiveProps({Login:f})),()=>[r.createVNode(r.unref(Kn),{size:i.value,icon:"person","icon-filled":!0,class:r.normalizeClass("w-full text-nowrap justify-content-center"),loading:u.value&&d.value==="govbr",onClick:h[0]||(h[0]=C=>f("govbr"))},{default:r.withCtx(()=>h[3]||(h[3]=[r.createTextVNode(" Entrar com ",-1),r.createElementVNode("b",null,"Gov.br",-1)])),_:1,__:[3]},8,["size","loading"]),s.value?(r.openBlock(),r.createBlock(r.unref(Kn),{key:0,size:i.value,icon:"person","icon-filled":!0,class:r.normalizeClass("w-full text-nowrap justify-content-center"),loading:u.value&&d.value==="sf",onClick:h[1]||(h[1]=C=>f("sf"))},{default:r.withCtx(()=>h[4]||(h[4]=[r.createTextVNode(" Entrar com ",-1),r.createElementVNode("b",null,"SF",-1)])),_:1,__:[4]},8,["size","loading"])):r.createCommentVNode("",!0),r.renderSlot(p.$slots,"extra-button",{},void 0,!0)],!0)]),r.createElementVNode("div",Yl,[r.renderSlot(p.$slots,"footer",{},void 0,!0)])],512)]))}}),[["__scopeId","data-v-a9cae4be"]]);class Zl{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 Ft=new Zl,Fr="SweetAlert2:",Jl=t=>{const e=[];for(let n=0;n<t.length;n++)e.indexOf(t[n])===-1&&e.push(t[n]);return e},ao=t=>t.charAt(0).toUpperCase()+t.slice(1),he=t=>Array.prototype.slice.call(t),de=t=>{console.warn(`${Fr} ${typeof t=="object"?t.join(" "):t}`)},ot=t=>{console.error(`${Fr} ${t}`)},Ur=[],Ql=t=>{Ur.includes(t)||(Ur.push(t),de(t))},ec=(t,e)=>{Ql(`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`)},wn=t=>typeof t=="function"?t():t,so=t=>t&&typeof t.toPromise=="function",Ut=t=>so(t)?t.toPromise():Promise.resolve(t),lo=t=>t&&Promise.resolve(t)===t,mt={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},tc=["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"],nc={},oc=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],zr=t=>Object.prototype.hasOwnProperty.call(mt,t),Kr=t=>tc.indexOf(t)!==-1,co=t=>nc[t],rc=t=>{zr(t)||de(`Unknown parameter "${t}"`)},ic=t=>{oc.includes(t)&&de(`The parameter "${t}" is incompatible with toasts`)},ac=t=>{co(t)&&ec(t,co(t))},sc=t=>{!t.backdrop&&t.allowOutsideClick&&de('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)rc(e),t.toast&&ic(e),ac(e)},lc="swal2-",Wr=t=>{const e={};for(const n in t)e[t[n]]=lc+t[n];return e},g=Wr(["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"]),zt=Wr(["success","warning","info","question","error"]),J=()=>document.body.querySelector(`.${g.container}`),Kt=t=>{const e=J();return e?e.querySelector(t):null},ye=t=>Kt(`.${t}`),D=()=>ye(g.popup),Wt=()=>ye(g.icon),Gr=()=>ye(g.title),kn=()=>ye(g["html-container"]),qr=()=>ye(g.image),Yr=()=>ye(g["progress-steps"]),Sn=()=>ye(g["validation-message"]),Ee=()=>Kt(`.${g.actions} .${g.confirm}`),Ge=()=>Kt(`.${g.actions} .${g.deny}`),cc=()=>ye(g["input-label"]),ft=()=>Kt(`.${g.loader}`),rt=()=>Kt(`.${g.actions} .${g.cancel}`),Gt=()=>ye(g.actions),Xr=()=>ye(g.footer),_n=()=>ye(g["timer-progress-bar"]),uo=()=>ye(g.close),uc=`
360
360
  a[href],
361
361
  area[href],
362
362
  input:not([disabled]),
@@ -371,7 +371,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
371
371
  audio[controls],
372
372
  video[controls],
373
373
  summary
374
- `,mo=()=>{const t=he(D().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((n,o)=>{const i=parseInt(n.getAttribute("tabindex")),a=parseInt(o.getAttribute("tabindex"));return i>a?1:i<a?-1:0}),e=he(D().querySelectorAll(cc)).filter(n=>n.getAttribute("tabindex")!=="-1");return Zl(t.concat(e)).filter(n=>ge(n))},fo=()=>Me(document.body,g.shown)&&!Me(document.body,g["toast-shown"])&&!Me(document.body,g["no-backdrop"]),Sn=()=>D()&&Me(D(),g.toast),uc=()=>D().hasAttribute("data-loading"),pt={previousBodyPadding:null},Q=(t,e)=>{if(t.textContent="",e){const o=new DOMParser().parseFromString(e,"text/html");he(o.querySelector("head").childNodes).forEach(i=>{t.appendChild(i)}),he(o.querySelector("body").childNodes).forEach(i=>{t.appendChild(i)})}},Me=(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},dc=(t,e)=>{he(t.classList).forEach(n=>{!Object.values(g).includes(n)&&!Object.values(Ut).includes(n)&&!Object.values(e.showClass).includes(n)&&t.classList.remove(n)})},ve=(t,e,n)=>{if(dc(t,e),e.customClass&&e.customClass[n]){if(typeof e.customClass[n]!="string"&&!e.customClass[n].forEach)return ue(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof e.customClass[n]}"`);N(t,e.customClass[n])}},po=(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}`)}},qr=t=>{if(t.focus(),t.type!=="file"){const e=t.value;t.value="",t.value=e}},Yr=(t,e,n)=>{!t||!e||(typeof e=="string"&&(e=e.split(/\s+/).filter(Boolean)),e.forEach(o=>{Array.isArray(t)?t.forEach(i=>{n?i.classList.add(o):i.classList.remove(o)}):n?t.classList.add(o):t.classList.remove(o)}))},N=(t,e)=>{Yr(t,e,!0)},$e=(t,e)=>{Yr(t,e,!1)},Ge=(t,e)=>{const n=he(t.childNodes);for(let o=0;o<n.length;o++)if(Me(n[o],e))return n[o]},Gt=(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)},Y=(t,e="flex")=>{t.style.display=e},ee=t=>{t.style.display="none"},Xr=(t,e,n,o)=>{const i=t.querySelector(e);i&&(i.style[n]=o)},_n=(t,e,n)=>{e?Y(t,n):ee(t)},ge=t=>!!(t&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),mc=()=>!ge(Ee())&&!ge(We())&&!ge(ot()),Zr=t=>t.scrollHeight>t.clientHeight,Jr=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},ho=(t,e=!1)=>{const n=kn();ge(n)&&(e&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${t/1e3}s linear`,n.style.width="0%"},10))},fc=()=>{const t=kn(),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}%`},Qr=()=>typeof window>"u"||typeof document>"u",pc=100,A={},hc=()=>{A.previousActiveElement&&A.previousActiveElement.focus?(A.previousActiveElement.focus(),A.previousActiveElement=null):document.body&&document.body.focus()},gc=t=>new Promise(e=>{if(!t)return e();const n=window.scrollX,o=window.scrollY;A.restoreFocusTimeout=setTimeout(()=>{hc(),e()},pc),window.scrollTo(n,o)}),yc=`
374
+ `,mo=()=>{const t=he(D().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((n,o)=>{const i=parseInt(n.getAttribute("tabindex")),a=parseInt(o.getAttribute("tabindex"));return i>a?1:i<a?-1:0}),e=he(D().querySelectorAll(uc)).filter(n=>n.getAttribute("tabindex")!=="-1");return Jl(t.concat(e)).filter(n=>ge(n))},fo=()=>Me(document.body,g.shown)&&!Me(document.body,g["toast-shown"])&&!Me(document.body,g["no-backdrop"]),En=()=>D()&&Me(D(),g.toast),dc=()=>D().hasAttribute("data-loading"),pt={previousBodyPadding:null},Q=(t,e)=>{if(t.textContent="",e){const o=new DOMParser().parseFromString(e,"text/html");he(o.querySelector("head").childNodes).forEach(i=>{t.appendChild(i)}),he(o.querySelector("body").childNodes).forEach(i=>{t.appendChild(i)})}},Me=(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},mc=(t,e)=>{he(t.classList).forEach(n=>{!Object.values(g).includes(n)&&!Object.values(zt).includes(n)&&!Object.values(e.showClass).includes(n)&&t.classList.remove(n)})},ve=(t,e,n)=>{if(mc(t,e),e.customClass&&e.customClass[n]){if(typeof e.customClass[n]!="string"&&!e.customClass[n].forEach)return de(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof e.customClass[n]}"`);N(t,e.customClass[n])}},po=(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}`)}},Zr=t=>{if(t.focus(),t.type!=="file"){const e=t.value;t.value="",t.value=e}},Jr=(t,e,n)=>{!t||!e||(typeof e=="string"&&(e=e.split(/\s+/).filter(Boolean)),e.forEach(o=>{Array.isArray(t)?t.forEach(i=>{n?i.classList.add(o):i.classList.remove(o)}):n?t.classList.add(o):t.classList.remove(o)}))},N=(t,e)=>{Jr(t,e,!0)},$e=(t,e)=>{Jr(t,e,!1)},qe=(t,e)=>{const n=he(t.childNodes);for(let o=0;o<n.length;o++)if(Me(n[o],e))return n[o]},qt=(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)},Y=(t,e="flex")=>{t.style.display=e},ee=t=>{t.style.display="none"},Qr=(t,e,n,o)=>{const i=t.querySelector(e);i&&(i.style[n]=o)},Tn=(t,e,n)=>{e?Y(t,n):ee(t)},ge=t=>!!(t&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),fc=()=>!ge(Ee())&&!ge(Ge())&&!ge(rt()),ei=t=>t.scrollHeight>t.clientHeight,ti=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},ho=(t,e=!1)=>{const n=_n();ge(n)&&(e&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${t/1e3}s linear`,n.style.width="0%"},10))},pc=()=>{const t=_n(),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}%`},ni=()=>typeof window>"u"||typeof document>"u",hc=100,A={},gc=()=>{A.previousActiveElement&&A.previousActiveElement.focus?(A.previousActiveElement.focus(),A.previousActiveElement=null):document.body&&document.body.focus()},yc=t=>new Promise(e=>{if(!t)return e();const n=window.scrollX,o=window.scrollY;A.restoreFocusTimeout=setTimeout(()=>{gc(),e()},hc),window.scrollTo(n,o)}),vc=`
375
375
  <div aria-labelledby="${g.title}" aria-describedby="${g["html-container"]}" class="${g.popup}" tabindex="-1">
376
376
  <button type="button" class="${g.close}"></button>
377
377
  <ul class="${g["progress-steps"]}"></ul>
@@ -404,22 +404,22 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
404
404
  <div class="${g["timer-progress-bar"]}"></div>
405
405
  </div>
406
406
  </div>
407
- `.replace(/(^|\n)\s*/g,""),vc=()=>{const t=J();return t?(t.remove(),$e([document.documentElement,document.body],[g["no-backdrop"],g["toast-shown"],g["has-column"]]),!0):!1},rt=()=>{A.currentInstance.resetValidationMessage()},bc=()=>{const t=D(),e=Ge(t,g.input),n=Ge(t,g.file),o=t.querySelector(`.${g.range} input`),i=t.querySelector(`.${g.range} output`),a=Ge(t,g.select),c=t.querySelector(`.${g.checkbox} input`),l=Ge(t,g.textarea);e.oninput=rt,n.onchange=rt,a.onchange=rt,c.onchange=rt,l.oninput=rt,o.oninput=()=>{rt(),i.value=o.value},o.onchange=()=>{rt(),o.nextSibling.value=o.value}},Cc=t=>typeof t=="string"?document.querySelector(t):t,wc=t=>{const e=D();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},kc=t=>{window.getComputedStyle(t).direction==="rtl"&&N(J(),g.rtl)},Sc=t=>{const e=vc();if(Qr()){nt("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=g.container,e&&N(n,g["no-transition"]),Q(n,yc);const o=Cc(t.target);o.appendChild(n),wc(t),kc(o),bc()},go=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):typeof t=="object"?_c(t,e):t&&Q(e,t)},_c=(t,e)=>{t.jquery?Ec(e,t):Q(e,t.toString())},Ec=(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))},qt=(()=>{if(Qr())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})(),Tc=()=>{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},Pc=(t,e)=>{const n=Wt(),o=ft();!e.showConfirmButton&&!e.showDenyButton&&!e.showCancelButton?ee(n):Y(n),ve(n,e,"actions"),Ic(n,o,e),Q(o,e.loaderHtml),ve(o,e,"loader")};function Ic(t,e,n){const o=Ee(),i=We(),a=ot();yo(o,"confirm",n),yo(i,"deny",n),yo(a,"cancel",n),Ac(o,i,a,n),n.reverseButtons&&(n.toast?(t.insertBefore(a,o),t.insertBefore(i,o)):(t.insertBefore(a,e),t.insertBefore(i,e),t.insertBefore(o,e)))}function Ac(t,e,n,o){if(!o.buttonsStyling)return $e([t,e,n],g.styled);N([t,e,n],g.styled),o.confirmButtonColor&&(t.style.backgroundColor=o.confirmButtonColor,N(t,g["default-outline"])),o.denyButtonColor&&(e.style.backgroundColor=o.denyButtonColor,N(e,g["default-outline"])),o.cancelButtonColor&&(n.style.backgroundColor=o.cancelButtonColor,N(n,g["default-outline"]))}function yo(t,e,n){_n(t,n[`show${ao(e)}Button`],"inline-block"),Q(t,n[`${e}ButtonText`]),t.setAttribute("aria-label",n[`${e}ButtonAriaLabel`]),t.className=g[e],ve(t,n,`${e}Button`),N(t,n[`${e}ButtonClass`])}function xc(t,e){typeof e=="string"?t.style.background=e:e||N([document.documentElement,document.body],g["no-backdrop"])}function $c(t,e){e in g?N(t,g[e]):(ue('The "position" parameter is not valid, defaulting to "center"'),N(t,g.center))}function Bc(t,e){if(e&&typeof e=="string"){const n=`grow-${e}`;n in g&&N(t,g[n])}}const Oc=(t,e)=>{const n=J();n&&(xc(n,e.backdrop),$c(n,e.position),Bc(n,e.grow),ve(n,e,"container"))},B={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},Lc=["input","file","range","select","radio","checkbox","textarea"],Nc=(t,e)=>{const n=D(),o=B.innerParams.get(t),i=!o||e.input!==o.input;Lc.forEach(a=>{const c=g[a],l=Ge(n,c);Rc(a,e.inputAttributes),l.className=c,i&&ee(l)}),e.input&&(i&&Mc(e),Vc(e))},Mc=t=>{if(!de[t.input])return nt(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${t.input}"`);const e=ei(t.input),n=de[t.input](e,t);Y(n),setTimeout(()=>{qr(n)})},Dc=t=>{for(let e=0;e<t.attributes.length;e++){const n=t.attributes[e].name;["type","value","style"].includes(n)||t.removeAttribute(n)}},Rc=(t,e)=>{const n=po(D(),t);if(n){Dc(n);for(const o in e)n.setAttribute(o,e[o])}},Vc=t=>{const e=ei(t.input);t.customClass&&N(e,t.customClass.input)},vo=(t,e)=>{(!t.placeholder||e.inputPlaceholder)&&(t.placeholder=e.inputPlaceholder)},Yt=(t,e,n)=>{if(n.inputLabel){t.id=g.input;const o=document.createElement("label"),i=g["input-label"];o.setAttribute("for",t.id),o.className=i,N(o,n.customClass.inputLabel),o.innerText=n.inputLabel,e.insertAdjacentElement("beforebegin",o)}},ei=t=>{const e=g[t]?g[t]:g.input;return Ge(D(),e)},de={};de.text=de.email=de.password=de.number=de.tel=de.url=(t,e)=>(typeof e.inputValue=="string"||typeof e.inputValue=="number"?t.value=e.inputValue:lo(e.inputValue)||ue(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e.inputValue}"`),Yt(t,t,e),vo(t,e),t.type=e.input,t),de.file=(t,e)=>(Yt(t,t,e),vo(t,e),t),de.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,Yt(n,t,e),t},de.select=(t,e)=>{if(t.textContent="",e.inputPlaceholder){const n=document.createElement("option");Q(n,e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)}return Yt(t,t,e),t},de.radio=t=>(t.textContent="",t),de.checkbox=(t,e)=>{const n=po(D(),"checkbox");n.value="1",n.id=g.checkbox,n.checked=!!e.inputValue;const o=t.querySelector("span");return Q(o,e.inputPlaceholder),t},de.textarea=(t,e)=>{t.value=e.inputValue,vo(t,e),Yt(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(D()).width),i=()=>{const a=t.offsetWidth+n(t);a>o?D().style.width=`${a}px`:D().style.width=null};new MutationObserver(i).observe(t,{attributes:!0,attributeFilter:["style"]})}}),t};const jc=(t,e)=>{const n=Cn();ve(n,e,"htmlContainer"),e.html?(go(e.html,n),Y(n,"block")):e.text?(n.textContent=e.text,Y(n,"block")):ee(n),Nc(t,e)},Hc=(t,e)=>{const n=Gr();_n(n,e.footer),e.footer&&go(e.footer,n),ve(n,e,"footer")},Fc=(t,e)=>{const n=uo();Q(n,e.closeButtonHtml),ve(n,e,"closeButton"),_n(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel)},Uc=(t,e)=>{const n=B.innerParams.get(t),o=Kt();if(n&&e.icon===n.icon){ni(o,e),ti(o,e);return}if(!e.icon&&!e.iconHtml)return ee(o);if(e.icon&&Object.keys(Ut).indexOf(e.icon)===-1)return nt(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`),ee(o);Y(o),ni(o,e),ti(o,e),N(o,e.showClass.icon)},ti=(t,e)=>{for(const n in Ut)e.icon!==n&&$e(t,Ut[n]);N(t,Ut[e.icon]),Gc(t,e),zc(),ve(t,e,"icon")},zc=()=>{const t=D(),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},Kc=`
407
+ `.replace(/(^|\n)\s*/g,""),bc=()=>{const t=J();return t?(t.remove(),$e([document.documentElement,document.body],[g["no-backdrop"],g["toast-shown"],g["has-column"]]),!0):!1},it=()=>{A.currentInstance.resetValidationMessage()},Cc=()=>{const t=D(),e=qe(t,g.input),n=qe(t,g.file),o=t.querySelector(`.${g.range} input`),i=t.querySelector(`.${g.range} output`),a=qe(t,g.select),c=t.querySelector(`.${g.checkbox} input`),l=qe(t,g.textarea);e.oninput=it,n.onchange=it,a.onchange=it,c.onchange=it,l.oninput=it,o.oninput=()=>{it(),i.value=o.value},o.onchange=()=>{it(),o.nextSibling.value=o.value}},wc=t=>typeof t=="string"?document.querySelector(t):t,kc=t=>{const e=D();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},Sc=t=>{window.getComputedStyle(t).direction==="rtl"&&N(J(),g.rtl)},_c=t=>{const e=bc();if(ni()){ot("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=g.container,e&&N(n,g["no-transition"]),Q(n,vc);const o=wc(t.target);o.appendChild(n),kc(t),Sc(o),Cc()},go=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):typeof t=="object"?Ec(t,e):t&&Q(e,t)},Ec=(t,e)=>{t.jquery?Tc(e,t):Q(e,t.toString())},Tc=(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))},Yt=(()=>{if(ni())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})(),Pc=()=>{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},Ic=(t,e)=>{const n=Gt(),o=ft();!e.showConfirmButton&&!e.showDenyButton&&!e.showCancelButton?ee(n):Y(n),ve(n,e,"actions"),Ac(n,o,e),Q(o,e.loaderHtml),ve(o,e,"loader")};function Ac(t,e,n){const o=Ee(),i=Ge(),a=rt();yo(o,"confirm",n),yo(i,"deny",n),yo(a,"cancel",n),xc(o,i,a,n),n.reverseButtons&&(n.toast?(t.insertBefore(a,o),t.insertBefore(i,o)):(t.insertBefore(a,e),t.insertBefore(i,e),t.insertBefore(o,e)))}function xc(t,e,n,o){if(!o.buttonsStyling)return $e([t,e,n],g.styled);N([t,e,n],g.styled),o.confirmButtonColor&&(t.style.backgroundColor=o.confirmButtonColor,N(t,g["default-outline"])),o.denyButtonColor&&(e.style.backgroundColor=o.denyButtonColor,N(e,g["default-outline"])),o.cancelButtonColor&&(n.style.backgroundColor=o.cancelButtonColor,N(n,g["default-outline"]))}function yo(t,e,n){Tn(t,n[`show${ao(e)}Button`],"inline-block"),Q(t,n[`${e}ButtonText`]),t.setAttribute("aria-label",n[`${e}ButtonAriaLabel`]),t.className=g[e],ve(t,n,`${e}Button`),N(t,n[`${e}ButtonClass`])}function $c(t,e){typeof e=="string"?t.style.background=e:e||N([document.documentElement,document.body],g["no-backdrop"])}function Bc(t,e){e in g?N(t,g[e]):(de('The "position" parameter is not valid, defaulting to "center"'),N(t,g.center))}function Oc(t,e){if(e&&typeof e=="string"){const n=`grow-${e}`;n in g&&N(t,g[n])}}const Lc=(t,e)=>{const n=J();n&&($c(n,e.backdrop),Bc(n,e.position),Oc(n,e.grow),ve(n,e,"container"))},B={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},Nc=["input","file","range","select","radio","checkbox","textarea"],Mc=(t,e)=>{const n=D(),o=B.innerParams.get(t),i=!o||e.input!==o.input;Nc.forEach(a=>{const c=g[a],l=qe(n,c);Vc(a,e.inputAttributes),l.className=c,i&&ee(l)}),e.input&&(i&&Dc(e),jc(e))},Dc=t=>{if(!me[t.input])return ot(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${t.input}"`);const e=oi(t.input),n=me[t.input](e,t);Y(n),setTimeout(()=>{Zr(n)})},Rc=t=>{for(let e=0;e<t.attributes.length;e++){const n=t.attributes[e].name;["type","value","style"].includes(n)||t.removeAttribute(n)}},Vc=(t,e)=>{const n=po(D(),t);if(n){Rc(n);for(const o in e)n.setAttribute(o,e[o])}},jc=t=>{const e=oi(t.input);t.customClass&&N(e,t.customClass.input)},vo=(t,e)=>{(!t.placeholder||e.inputPlaceholder)&&(t.placeholder=e.inputPlaceholder)},Xt=(t,e,n)=>{if(n.inputLabel){t.id=g.input;const o=document.createElement("label"),i=g["input-label"];o.setAttribute("for",t.id),o.className=i,N(o,n.customClass.inputLabel),o.innerText=n.inputLabel,e.insertAdjacentElement("beforebegin",o)}},oi=t=>{const e=g[t]?g[t]:g.input;return qe(D(),e)},me={};me.text=me.email=me.password=me.number=me.tel=me.url=(t,e)=>(typeof e.inputValue=="string"||typeof e.inputValue=="number"?t.value=e.inputValue:lo(e.inputValue)||de(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e.inputValue}"`),Xt(t,t,e),vo(t,e),t.type=e.input,t),me.file=(t,e)=>(Xt(t,t,e),vo(t,e),t),me.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,Xt(n,t,e),t},me.select=(t,e)=>{if(t.textContent="",e.inputPlaceholder){const n=document.createElement("option");Q(n,e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)}return Xt(t,t,e),t},me.radio=t=>(t.textContent="",t),me.checkbox=(t,e)=>{const n=po(D(),"checkbox");n.value="1",n.id=g.checkbox,n.checked=!!e.inputValue;const o=t.querySelector("span");return Q(o,e.inputPlaceholder),t},me.textarea=(t,e)=>{t.value=e.inputValue,vo(t,e),Xt(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(D()).width),i=()=>{const a=t.offsetWidth+n(t);a>o?D().style.width=`${a}px`:D().style.width=null};new MutationObserver(i).observe(t,{attributes:!0,attributeFilter:["style"]})}}),t};const Hc=(t,e)=>{const n=kn();ve(n,e,"htmlContainer"),e.html?(go(e.html,n),Y(n,"block")):e.text?(n.textContent=e.text,Y(n,"block")):ee(n),Mc(t,e)},Fc=(t,e)=>{const n=Xr();Tn(n,e.footer),e.footer&&go(e.footer,n),ve(n,e,"footer")},Uc=(t,e)=>{const n=uo();Q(n,e.closeButtonHtml),ve(n,e,"closeButton"),Tn(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel)},zc=(t,e)=>{const n=B.innerParams.get(t),o=Wt();if(n&&e.icon===n.icon){ii(o,e),ri(o,e);return}if(!e.icon&&!e.iconHtml)return ee(o);if(e.icon&&Object.keys(zt).indexOf(e.icon)===-1)return ot(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`),ee(o);Y(o),ii(o,e),ri(o,e),N(o,e.showClass.icon)},ri=(t,e)=>{for(const n in zt)e.icon!==n&&$e(t,zt[n]);N(t,zt[e.icon]),qc(t,e),Kc(),ve(t,e,"icon")},Kc=()=>{const t=D(),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},Wc=`
408
408
  <div class="swal2-success-circular-line-left"></div>
409
409
  <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
410
410
  <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>
411
411
  <div class="swal2-success-circular-line-right"></div>
412
- `,Wc=`
412
+ `,Gc=`
413
413
  <span class="swal2-x-mark">
414
414
  <span class="swal2-x-mark-line-left"></span>
415
415
  <span class="swal2-x-mark-line-right"></span>
416
416
  </span>
417
- `,ni=(t,e)=>{t.textContent="",e.iconHtml?Q(t,oi(e.iconHtml)):e.icon==="success"?Q(t,Kc):e.icon==="error"?Q(t,Wc):Q(t,oi({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"])Xr(t,n,"backgroundColor",e.iconColor);Xr(t,".swal2-success-ring","borderColor",e.iconColor)}},oi=t=>`<div class="${g["icon-content"]}">${t}</div>`,qc=(t,e)=>{const n=Kr();if(!e.imageUrl)return ee(n);Y(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt),Gt(n,"width",e.imageWidth),Gt(n,"height",e.imageHeight),n.className=g.image,ve(n,e,"image")},Yc=t=>{const e=document.createElement("li");return N(e,g["progress-step"]),Q(e,t),e},Xc=t=>{const e=document.createElement("li");return N(e,g["progress-step-line"]),t.progressStepsDistance&&(e.style.width=t.progressStepsDistance),e},Zc=(t,e)=>{const n=Wr();if(!e.progressSteps||e.progressSteps.length===0)return ee(n);Y(n),n.textContent="",e.currentProgressStep>=e.progressSteps.length&&ue("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach((o,i)=>{const a=Yc(o);if(n.appendChild(a),i===e.currentProgressStep&&N(a,g["active-progress-step"]),i!==e.progressSteps.length-1){const c=Xc(e);n.appendChild(c)}})},Jc=(t,e)=>{const n=zr();_n(n,e.title||e.titleText,"block"),e.title&&go(e.title,n),e.titleText&&(n.innerText=e.titleText),ve(n,e,"title")},Qc=(t,e)=>{const n=J(),o=D();e.toast?(Gt(n,"width",e.width),o.style.width="100%",o.insertBefore(ft(),Kt())):Gt(o,"width",e.width),Gt(o,"padding",e.padding),e.color&&(o.style.color=e.color),e.background&&(o.style.background=e.background),ee(wn()),eu(o,e)},eu=(t,e)=>{t.className=`${g.popup} ${ge(t)?e.showClass.popup:""}`,e.toast?(N([document.documentElement,document.body],g["toast-shown"]),N(t,g.toast)):N(t,g.modal),ve(t,e,"popup"),typeof e.customClass=="string"&&N(t,e.customClass),e.icon&&N(t,g[`icon-${e.icon}`])},ri=(t,e)=>{Qc(t,e),Oc(t,e),Zc(t,e),Uc(t,e),qc(t,e),Jc(t,e),Fc(t,e),jc(t,e),Pc(t,e),Hc(t,e),typeof e.didRender=="function"&&e.didRender(D())},ht=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),tu=()=>{he(document.body.children).forEach(e=>{e===J()||e.contains(J())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))})},ii=()=>{he(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")})},ai=["swal-title","swal-html","swal-footer"],nu=t=>{const e=typeof t.template=="string"?document.querySelector(t.template):t.template;if(!e)return{};const n=e.content;return cu(n),Object.assign(ou(n),ru(n),iu(n),au(n),su(n),lu(n,ai))},ou=t=>{const e={};return he(t.querySelectorAll("swal-param")).forEach(n=>{it(n,["name","value"]);const o=n.getAttribute("name"),i=n.getAttribute("value");typeof mt[o]=="boolean"&&i==="false"&&(e[o]=!1),typeof mt[o]=="object"&&(e[o]=JSON.parse(i))}),e},ru=t=>{const e={};return he(t.querySelectorAll("swal-button")).forEach(n=>{it(n,["type","color","aria-label"]);const o=n.getAttribute("type");e[`${o}ButtonText`]=n.innerHTML,e[`show${ao(o)}Button`]=!0,n.hasAttribute("color")&&(e[`${o}ButtonColor`]=n.getAttribute("color")),n.hasAttribute("aria-label")&&(e[`${o}ButtonAriaLabel`]=n.getAttribute("aria-label"))}),e},iu=t=>{const e={},n=t.querySelector("swal-image");return n&&(it(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},au=t=>{const e={},n=t.querySelector("swal-icon");return n&&(it(n,["type","color"]),n.hasAttribute("type")&&(e.icon=n.getAttribute("type")),n.hasAttribute("color")&&(e.iconColor=n.getAttribute("color")),e.iconHtml=n.innerHTML),e},su=t=>{const e={},n=t.querySelector("swal-input");n&&(it(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={},he(o).forEach(i=>{it(i,["value"]);const a=i.getAttribute("value"),c=i.innerHTML;e.inputOptions[a]=c})),e},lu=(t,e)=>{const n={};for(const o in e){const i=e[o],a=t.querySelector(i);a&&(it(a,[]),n[i.replace(/^swal-/,"")]=a.innerHTML.trim())}return n},cu=t=>{const e=ai.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);he(t.children).forEach(n=>{const o=n.tagName.toLowerCase();e.indexOf(o)===-1&&ue(`Unrecognized element <${o}>`)})},it=(t,e)=>{he(t.attributes).forEach(n=>{e.indexOf(n.name)===-1&&ue([`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`,`${e.length?`Allowed attributes are: ${e.join(", ")}`:"To set the value, use HTML within the element."}`])})},si={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 uu(t){t.inputValidator||Object.keys(si).forEach(e=>{t.input===e&&(t.inputValidator=si[e])})}function du(t){(!t.target||typeof t.target=="string"&&!document.querySelector(t.target)||typeof t.target!="string"&&!t.target.appendChild)&&(ue('Target parameter is not valid, defaulting to "body"'),t.target="body")}function mu(t){uu(t),t.showLoaderOnConfirm&&!t.preConfirm&&ue(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
417
+ `,ii=(t,e)=>{t.textContent="",e.iconHtml?Q(t,ai(e.iconHtml)):e.icon==="success"?Q(t,Wc):e.icon==="error"?Q(t,Gc):Q(t,ai({question:"?",warning:"!",info:"i"}[e.icon]))},qc=(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"])Qr(t,n,"backgroundColor",e.iconColor);Qr(t,".swal2-success-ring","borderColor",e.iconColor)}},ai=t=>`<div class="${g["icon-content"]}">${t}</div>`,Yc=(t,e)=>{const n=qr();if(!e.imageUrl)return ee(n);Y(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt),qt(n,"width",e.imageWidth),qt(n,"height",e.imageHeight),n.className=g.image,ve(n,e,"image")},Xc=t=>{const e=document.createElement("li");return N(e,g["progress-step"]),Q(e,t),e},Zc=t=>{const e=document.createElement("li");return N(e,g["progress-step-line"]),t.progressStepsDistance&&(e.style.width=t.progressStepsDistance),e},Jc=(t,e)=>{const n=Yr();if(!e.progressSteps||e.progressSteps.length===0)return ee(n);Y(n),n.textContent="",e.currentProgressStep>=e.progressSteps.length&&de("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach((o,i)=>{const a=Xc(o);if(n.appendChild(a),i===e.currentProgressStep&&N(a,g["active-progress-step"]),i!==e.progressSteps.length-1){const c=Zc(e);n.appendChild(c)}})},Qc=(t,e)=>{const n=Gr();Tn(n,e.title||e.titleText,"block"),e.title&&go(e.title,n),e.titleText&&(n.innerText=e.titleText),ve(n,e,"title")},eu=(t,e)=>{const n=J(),o=D();e.toast?(qt(n,"width",e.width),o.style.width="100%",o.insertBefore(ft(),Wt())):qt(o,"width",e.width),qt(o,"padding",e.padding),e.color&&(o.style.color=e.color),e.background&&(o.style.background=e.background),ee(Sn()),tu(o,e)},tu=(t,e)=>{t.className=`${g.popup} ${ge(t)?e.showClass.popup:""}`,e.toast?(N([document.documentElement,document.body],g["toast-shown"]),N(t,g.toast)):N(t,g.modal),ve(t,e,"popup"),typeof e.customClass=="string"&&N(t,e.customClass),e.icon&&N(t,g[`icon-${e.icon}`])},si=(t,e)=>{eu(t,e),Lc(t,e),Jc(t,e),zc(t,e),Yc(t,e),Qc(t,e),Uc(t,e),Hc(t,e),Ic(t,e),Fc(t,e),typeof e.didRender=="function"&&e.didRender(D())},ht=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),nu=()=>{he(document.body.children).forEach(e=>{e===J()||e.contains(J())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))})},li=()=>{he(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")})},ci=["swal-title","swal-html","swal-footer"],ou=t=>{const e=typeof t.template=="string"?document.querySelector(t.template):t.template;if(!e)return{};const n=e.content;return uu(n),Object.assign(ru(n),iu(n),au(n),su(n),lu(n),cu(n,ci))},ru=t=>{const e={};return he(t.querySelectorAll("swal-param")).forEach(n=>{at(n,["name","value"]);const o=n.getAttribute("name"),i=n.getAttribute("value");typeof mt[o]=="boolean"&&i==="false"&&(e[o]=!1),typeof mt[o]=="object"&&(e[o]=JSON.parse(i))}),e},iu=t=>{const e={};return he(t.querySelectorAll("swal-button")).forEach(n=>{at(n,["type","color","aria-label"]);const o=n.getAttribute("type");e[`${o}ButtonText`]=n.innerHTML,e[`show${ao(o)}Button`]=!0,n.hasAttribute("color")&&(e[`${o}ButtonColor`]=n.getAttribute("color")),n.hasAttribute("aria-label")&&(e[`${o}ButtonAriaLabel`]=n.getAttribute("aria-label"))}),e},au=t=>{const e={},n=t.querySelector("swal-image");return n&&(at(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},su=t=>{const e={},n=t.querySelector("swal-icon");return n&&(at(n,["type","color"]),n.hasAttribute("type")&&(e.icon=n.getAttribute("type")),n.hasAttribute("color")&&(e.iconColor=n.getAttribute("color")),e.iconHtml=n.innerHTML),e},lu=t=>{const e={},n=t.querySelector("swal-input");n&&(at(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={},he(o).forEach(i=>{at(i,["value"]);const a=i.getAttribute("value"),c=i.innerHTML;e.inputOptions[a]=c})),e},cu=(t,e)=>{const n={};for(const o in e){const i=e[o],a=t.querySelector(i);a&&(at(a,[]),n[i.replace(/^swal-/,"")]=a.innerHTML.trim())}return n},uu=t=>{const e=ci.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);he(t.children).forEach(n=>{const o=n.tagName.toLowerCase();e.indexOf(o)===-1&&de(`Unrecognized element <${o}>`)})},at=(t,e)=>{he(t.attributes).forEach(n=>{e.indexOf(n.name)===-1&&de([`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`,`${e.length?`Allowed attributes are: ${e.join(", ")}`:"To set the value, use HTML within the element."}`])})},ui={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 du(t){t.inputValidator||Object.keys(ui).forEach(e=>{t.input===e&&(t.inputValidator=ui[e])})}function mu(t){(!t.target||typeof t.target=="string"&&!document.querySelector(t.target)||typeof t.target!="string"&&!t.target.appendChild)&&(de('Target parameter is not valid, defaulting to "body"'),t.target="body")}function fu(t){du(t),t.showLoaderOnConfirm&&!t.preConfirm&&de(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
418
418
  showLoaderOnConfirm should be used together with preConfirm, see usage example:
419
- https://sweetalert2.github.io/#ajax-request`),du(t),typeof t.title=="string"&&(t.title=t.title.split(`
420
- `).join("<br />")),Sc(t)}class fu{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 pu=()=>{pt.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(pt.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${pt.previousBodyPadding+Tc()}px`)},hu=()=>{pt.previousBodyPadding!==null&&(document.body.style.paddingRight=`${pt.previousBodyPadding}px`,pt.previousBodyPadding=null)},gu=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!Me(document.body,g.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,N(document.body,g.iosfix),vu(),yu()}},yu=()=>{const t=navigator.userAgent,e=!!t.match(/iPad/i)||!!t.match(/iPhone/i),n=!!t.match(/WebKit/i);e&&n&&!t.match(/CriOS/i)&&D().scrollHeight>window.innerHeight-44&&(J().style.paddingBottom="44px")},vu=()=>{const t=J();let e;t.ontouchstart=n=>{e=bu(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},bu=t=>{const e=t.target,n=J();return Cu(t)||wu(t)?!1:e===n||!Zr(n)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(Zr(Cn())&&Cn().contains(e))},Cu=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",wu=t=>t.touches&&t.touches.length>1,ku=()=>{if(Me(document.body,g.iosfix)){const t=parseInt(document.body.style.top,10);$e(document.body,g.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},li=10,Su=t=>{const e=J(),n=D();typeof t.willOpen=="function"&&t.willOpen(n);const i=window.getComputedStyle(document.body).overflowY;Tu(e,n,t),setTimeout(()=>{_u(e,n)},li),fo()&&(Eu(e,t.scrollbarPadding,i),tu()),!Sn()&&!A.previousActiveElement&&(A.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),$e(e,g["no-transition"])},ci=t=>{const e=D();if(t.target!==e)return;const n=J();e.removeEventListener(qt,ci),n.style.overflowY="auto"},_u=(t,e)=>{qt&&Jr(e)?(t.style.overflowY="hidden",e.addEventListener(qt,ci)):t.style.overflowY="auto"},Eu=(t,e,n)=>{gu(),e&&n!=="hidden"&&pu(),setTimeout(()=>{t.scrollTop=0})},Tu=(t,e,n)=>{N(t,n.showClass.backdrop),e.style.setProperty("opacity","0","important"),Y(e,"grid"),setTimeout(()=>{N(e,n.showClass.popup),e.style.removeProperty("opacity")},li),N([document.documentElement,document.body],g.shown),n.heightAuto&&n.backdrop&&!n.toast&&N([document.documentElement,document.body],g["height-auto"])},gt=t=>{let e=D();e||new at,e=D();const n=ft();Sn()?ee(Kt()):Pu(e,t),Y(n),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},Pu=(t,e)=>{const n=Wt(),o=ft();!e&&ge(Ee())&&(e=Ee()),Y(n),e&&(ee(e),o.setAttribute("data-button-to-replace",e.className)),o.parentNode.insertBefore(o,e),N([t,n],g.loading)},Iu=(t,e)=>{e.input==="select"||e.input==="radio"?Ou(t,e):["text","email","number","tel","textarea"].includes(e.input)&&(so(e.inputValue)||lo(e.inputValue))&&(gt(Ee()),Lu(t,e))},Au=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return xu(n);case"radio":return $u(n);case"file":return Bu(n);default:return e.inputAutoTrim?n.value.trim():n.value}},xu=t=>t.checked?1:0,$u=t=>t.checked?t.value:null,Bu=t=>t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,Ou=(t,e)=>{const n=D(),o=i=>Nu[e.input](n,bo(i),e);so(e.inputOptions)||lo(e.inputOptions)?(gt(Ee()),Ft(e.inputOptions).then(i=>{t.hideLoading(),o(i)})):typeof e.inputOptions=="object"?o(e.inputOptions):nt(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},Lu=(t,e)=>{const n=t.getInput();ee(n),Ft(e.inputValue).then(o=>{n.value=e.input==="number"?parseFloat(o)||0:`${o}`,Y(n),n.focus(),t.hideLoading()}).catch(o=>{nt(`Error in inputValue promise: ${o}`),n.value="",Y(n),n.focus(),t.hideLoading()})},Nu={select:(t,e,n)=>{const o=Ge(t,g.select),i=(a,c,l)=>{const s=document.createElement("option");s.value=l,Q(s,c),s.selected=ui(l,n.inputValue),a.appendChild(s)};e.forEach(a=>{const c=a[0],l=a[1];if(Array.isArray(l)){const s=document.createElement("optgroup");s.label=c,s.disabled=!1,o.appendChild(s),l.forEach(u=>i(s,u[1],u[0]))}else i(o,l,c)}),o.focus()},radio:(t,e,n)=>{const o=Ge(t,g.radio);e.forEach(a=>{const c=a[0],l=a[1],s=document.createElement("input"),u=document.createElement("label");s.type="radio",s.name=g.radio,s.value=c,ui(c,n.inputValue)&&(s.checked=!0);const m=document.createElement("span");Q(m,l),m.className=g.label,u.appendChild(s),u.appendChild(m),o.appendChild(u)});const i=o.querySelectorAll("input");i.length&&i[0].focus()}},bo=t=>{const e=[];return typeof Map<"u"&&t instanceof Map?t.forEach((n,o)=>{let i=n;typeof i=="object"&&(i=bo(i)),e.push([o,i])}):Object.keys(t).forEach(n=>{let o=t[n];typeof o=="object"&&(o=bo(o)),e.push([n,o])}),e},ui=(t,e)=>e&&e.toString()===t.toString();function di(){const t=B.innerParams.get(this);if(!t)return;const e=B.domCache.get(this);ee(e.loader),Sn()?t.icon&&Y(Kt()):Mu(e),$e([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 Mu=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?Y(e[0],"inline-block"):mc()&&ee(t.actions)};function Du(t){const e=B.innerParams.get(t||this),n=B.domCache.get(t||this);return n?po(n.popup,e.input):null}const Xt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap},Ru=()=>ge(D()),mi=()=>Ee()&&Ee().click(),Vu=()=>We()&&We().click(),ju=()=>ot()&&ot().click(),fi=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},Hu=(t,e,n,o)=>{fi(e),n.toast||(e.keydownHandler=i=>Uu(t,i,o),e.keydownTarget=n.keydownListenerCapture?window:D(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},Co=(t,e,n)=>{const o=mo();if(o.length)return e=e+n,e===o.length?e=0:e===-1&&(e=o.length-1),o[e].focus();D().focus()},pi=["ArrowRight","ArrowDown"],Fu=["ArrowLeft","ArrowUp"],Uu=(t,e,n)=>{const o=B.innerParams.get(t);o&&(e.isComposing||e.keyCode===229||(o.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?zu(t,e,o):e.key==="Tab"?Ku(e,o):[...pi,...Fu].includes(e.key)?Wu(e.key):e.key==="Escape"&&Gu(e,o,n)))},zu=(t,e,n)=>{if(bn(n.allowEnterKey)&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;mi(),e.preventDefault()}},Ku=(t,e)=>{const n=t.target,o=mo();let i=-1;for(let a=0;a<o.length;a++)if(n===o[a]){i=a;break}t.shiftKey?Co(e,i,-1):Co(e,i,1),t.stopPropagation(),t.preventDefault()},Wu=t=>{const e=Ee(),n=We(),o=ot();if(![e,n,o].includes(document.activeElement))return;const i=pi.includes(t)?"nextElementSibling":"previousElementSibling";let a=document.activeElement;for(let c=0;c<Wt().children.length;c++){if(a=a[i],!a)return;if(ge(a)&&a instanceof HTMLButtonElement)break}a instanceof HTMLButtonElement&&a.focus()},Gu=(t,e,n)=>{bn(e.allowEscapeKey)&&(t.preventDefault(),n(ht.esc))};function hi(t,e,n,o){Sn()?gi(t,o):(gc(n).then(()=>gi(t,o)),fi(A)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),fo()&&(hu(),ku(),ii()),qu()}function qu(){$e([document.documentElement,document.body],[g.shown,g["height-auto"],g["no-backdrop"],g["toast-shown"]])}function En(t){t=Ju(t);const e=Xt.swalPromiseResolve.get(this),n=Xu(this);this.isAwaitingPromise()?t.isDismissed||(Zt(this),e(t)):n&&e(t)}function Yu(){return!!B.awaitingPromise.get(this)}const Xu=t=>{const e=D();if(!e)return!1;const n=B.innerParams.get(t);if(!n||Me(e,n.hideClass.popup))return!1;$e(e,n.showClass.popup),N(e,n.hideClass.popup);const o=J();return $e(o,n.showClass.backdrop),N(o,n.hideClass.backdrop),Qu(t,e,n),!0};function Zu(t){const e=Xt.swalPromiseReject.get(this);Zt(this),e&&e(t)}const Zt=t=>{t.isAwaitingPromise()&&(B.awaitingPromise.delete(t),B.innerParams.get(t)||t._destroy())},Ju=t=>typeof t>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),Qu=(t,e,n)=>{const o=J(),i=qt&&Jr(e);typeof n.willClose=="function"&&n.willClose(e),i?ed(t,e,o,n.returnFocus,n.didClose):hi(t,o,n.returnFocus,n.didClose)},ed=(t,e,n,o,i)=>{A.swalCloseEventFinishedCallback=hi.bind(null,t,n,o,i),e.addEventListener(qt,function(a){a.target===e&&(A.swalCloseEventFinishedCallback(),delete A.swalCloseEventFinishedCallback)})},gi=(t,e)=>{setTimeout(()=>{typeof e=="function"&&e.bind(t.params)(),t._destroy()})};function yi(t,e,n){const o=B.domCache.get(t);e.forEach(i=>{o[i].disabled=n})}function vi(t,e){if(!t)return!1;if(t.type==="radio"){const o=t.parentNode.parentNode.querySelectorAll("input");for(let i=0;i<o.length;i++)o[i].disabled=e}else t.disabled=e}function td(){yi(this,["confirmButton","denyButton","cancelButton"],!1)}function nd(){yi(this,["confirmButton","denyButton","cancelButton"],!0)}function od(){return vi(this.getInput(),!1)}function rd(){return vi(this.getInput(),!0)}function id(t){const e=B.domCache.get(this),n=B.innerParams.get(this);Q(e.validationMessage,t),e.validationMessage.className=g["validation-message"],n.customClass&&n.customClass.validationMessage&&N(e.validationMessage,n.customClass.validationMessage),Y(e.validationMessage);const o=this.getInput();o&&(o.setAttribute("aria-invalid",!0),o.setAttribute("aria-describedby",g["validation-message"]),qr(o),N(o,g.inputerror))}function ad(){const t=B.domCache.get(this);t.validationMessage&&ee(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),$e(e,g.inputerror))}function sd(){return B.domCache.get(this).progressSteps}function ld(t){const e=D(),n=B.innerParams.get(this);if(!e||Me(e,n.hideClass.popup))return ue("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=cd(t),i=Object.assign({},n,o);ri(this,i),B.innerParams.set(this,i),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const cd=t=>{const e={};return Object.keys(t).forEach(n=>{Fr(n)?e[n]=t[n]:ue(`Invalid parameter to update: "${n}". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js
419
+ https://sweetalert2.github.io/#ajax-request`),mu(t),typeof t.title=="string"&&(t.title=t.title.split(`
420
+ `).join("<br />")),_c(t)}class pu{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 hu=()=>{pt.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(pt.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${pt.previousBodyPadding+Pc()}px`)},gu=()=>{pt.previousBodyPadding!==null&&(document.body.style.paddingRight=`${pt.previousBodyPadding}px`,pt.previousBodyPadding=null)},yu=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!Me(document.body,g.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,N(document.body,g.iosfix),bu(),vu()}},vu=()=>{const t=navigator.userAgent,e=!!t.match(/iPad/i)||!!t.match(/iPhone/i),n=!!t.match(/WebKit/i);e&&n&&!t.match(/CriOS/i)&&D().scrollHeight>window.innerHeight-44&&(J().style.paddingBottom="44px")},bu=()=>{const t=J();let e;t.ontouchstart=n=>{e=Cu(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},Cu=t=>{const e=t.target,n=J();return wu(t)||ku(t)?!1:e===n||!ei(n)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(ei(kn())&&kn().contains(e))},wu=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",ku=t=>t.touches&&t.touches.length>1,Su=()=>{if(Me(document.body,g.iosfix)){const t=parseInt(document.body.style.top,10);$e(document.body,g.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},di=10,_u=t=>{const e=J(),n=D();typeof t.willOpen=="function"&&t.willOpen(n);const i=window.getComputedStyle(document.body).overflowY;Pu(e,n,t),setTimeout(()=>{Eu(e,n)},di),fo()&&(Tu(e,t.scrollbarPadding,i),nu()),!En()&&!A.previousActiveElement&&(A.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),$e(e,g["no-transition"])},mi=t=>{const e=D();if(t.target!==e)return;const n=J();e.removeEventListener(Yt,mi),n.style.overflowY="auto"},Eu=(t,e)=>{Yt&&ti(e)?(t.style.overflowY="hidden",e.addEventListener(Yt,mi)):t.style.overflowY="auto"},Tu=(t,e,n)=>{yu(),e&&n!=="hidden"&&hu(),setTimeout(()=>{t.scrollTop=0})},Pu=(t,e,n)=>{N(t,n.showClass.backdrop),e.style.setProperty("opacity","0","important"),Y(e,"grid"),setTimeout(()=>{N(e,n.showClass.popup),e.style.removeProperty("opacity")},di),N([document.documentElement,document.body],g.shown),n.heightAuto&&n.backdrop&&!n.toast&&N([document.documentElement,document.body],g["height-auto"])},gt=t=>{let e=D();e||new st,e=D();const n=ft();En()?ee(Wt()):Iu(e,t),Y(n),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},Iu=(t,e)=>{const n=Gt(),o=ft();!e&&ge(Ee())&&(e=Ee()),Y(n),e&&(ee(e),o.setAttribute("data-button-to-replace",e.className)),o.parentNode.insertBefore(o,e),N([t,n],g.loading)},Au=(t,e)=>{e.input==="select"||e.input==="radio"?Lu(t,e):["text","email","number","tel","textarea"].includes(e.input)&&(so(e.inputValue)||lo(e.inputValue))&&(gt(Ee()),Nu(t,e))},xu=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return $u(n);case"radio":return Bu(n);case"file":return Ou(n);default:return e.inputAutoTrim?n.value.trim():n.value}},$u=t=>t.checked?1:0,Bu=t=>t.checked?t.value:null,Ou=t=>t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,Lu=(t,e)=>{const n=D(),o=i=>Mu[e.input](n,bo(i),e);so(e.inputOptions)||lo(e.inputOptions)?(gt(Ee()),Ut(e.inputOptions).then(i=>{t.hideLoading(),o(i)})):typeof e.inputOptions=="object"?o(e.inputOptions):ot(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},Nu=(t,e)=>{const n=t.getInput();ee(n),Ut(e.inputValue).then(o=>{n.value=e.input==="number"?parseFloat(o)||0:`${o}`,Y(n),n.focus(),t.hideLoading()}).catch(o=>{ot(`Error in inputValue promise: ${o}`),n.value="",Y(n),n.focus(),t.hideLoading()})},Mu={select:(t,e,n)=>{const o=qe(t,g.select),i=(a,c,l)=>{const s=document.createElement("option");s.value=l,Q(s,c),s.selected=fi(l,n.inputValue),a.appendChild(s)};e.forEach(a=>{const c=a[0],l=a[1];if(Array.isArray(l)){const s=document.createElement("optgroup");s.label=c,s.disabled=!1,o.appendChild(s),l.forEach(u=>i(s,u[1],u[0]))}else i(o,l,c)}),o.focus()},radio:(t,e,n)=>{const o=qe(t,g.radio);e.forEach(a=>{const c=a[0],l=a[1],s=document.createElement("input"),u=document.createElement("label");s.type="radio",s.name=g.radio,s.value=c,fi(c,n.inputValue)&&(s.checked=!0);const d=document.createElement("span");Q(d,l),d.className=g.label,u.appendChild(s),u.appendChild(d),o.appendChild(u)});const i=o.querySelectorAll("input");i.length&&i[0].focus()}},bo=t=>{const e=[];return typeof Map<"u"&&t instanceof Map?t.forEach((n,o)=>{let i=n;typeof i=="object"&&(i=bo(i)),e.push([o,i])}):Object.keys(t).forEach(n=>{let o=t[n];typeof o=="object"&&(o=bo(o)),e.push([n,o])}),e},fi=(t,e)=>e&&e.toString()===t.toString();function pi(){const t=B.innerParams.get(this);if(!t)return;const e=B.domCache.get(this);ee(e.loader),En()?t.icon&&Y(Wt()):Du(e),$e([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 Du=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?Y(e[0],"inline-block"):fc()&&ee(t.actions)};function Ru(t){const e=B.innerParams.get(t||this),n=B.domCache.get(t||this);return n?po(n.popup,e.input):null}const Zt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap},Vu=()=>ge(D()),hi=()=>Ee()&&Ee().click(),ju=()=>Ge()&&Ge().click(),Hu=()=>rt()&&rt().click(),gi=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},Fu=(t,e,n,o)=>{gi(e),n.toast||(e.keydownHandler=i=>zu(t,i,o),e.keydownTarget=n.keydownListenerCapture?window:D(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},Co=(t,e,n)=>{const o=mo();if(o.length)return e=e+n,e===o.length?e=0:e===-1&&(e=o.length-1),o[e].focus();D().focus()},yi=["ArrowRight","ArrowDown"],Uu=["ArrowLeft","ArrowUp"],zu=(t,e,n)=>{const o=B.innerParams.get(t);o&&(e.isComposing||e.keyCode===229||(o.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?Ku(t,e,o):e.key==="Tab"?Wu(e,o):[...yi,...Uu].includes(e.key)?Gu(e.key):e.key==="Escape"&&qu(e,o,n)))},Ku=(t,e,n)=>{if(wn(n.allowEnterKey)&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;hi(),e.preventDefault()}},Wu=(t,e)=>{const n=t.target,o=mo();let i=-1;for(let a=0;a<o.length;a++)if(n===o[a]){i=a;break}t.shiftKey?Co(e,i,-1):Co(e,i,1),t.stopPropagation(),t.preventDefault()},Gu=t=>{const e=Ee(),n=Ge(),o=rt();if(![e,n,o].includes(document.activeElement))return;const i=yi.includes(t)?"nextElementSibling":"previousElementSibling";let a=document.activeElement;for(let c=0;c<Gt().children.length;c++){if(a=a[i],!a)return;if(ge(a)&&a instanceof HTMLButtonElement)break}a instanceof HTMLButtonElement&&a.focus()},qu=(t,e,n)=>{wn(e.allowEscapeKey)&&(t.preventDefault(),n(ht.esc))};function vi(t,e,n,o){En()?bi(t,o):(yc(n).then(()=>bi(t,o)),gi(A)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),fo()&&(gu(),Su(),li()),Yu()}function Yu(){$e([document.documentElement,document.body],[g.shown,g["height-auto"],g["no-backdrop"],g["toast-shown"]])}function Pn(t){t=Qu(t);const e=Zt.swalPromiseResolve.get(this),n=Zu(this);this.isAwaitingPromise()?t.isDismissed||(Jt(this),e(t)):n&&e(t)}function Xu(){return!!B.awaitingPromise.get(this)}const Zu=t=>{const e=D();if(!e)return!1;const n=B.innerParams.get(t);if(!n||Me(e,n.hideClass.popup))return!1;$e(e,n.showClass.popup),N(e,n.hideClass.popup);const o=J();return $e(o,n.showClass.backdrop),N(o,n.hideClass.backdrop),ed(t,e,n),!0};function Ju(t){const e=Zt.swalPromiseReject.get(this);Jt(this),e&&e(t)}const Jt=t=>{t.isAwaitingPromise()&&(B.awaitingPromise.delete(t),B.innerParams.get(t)||t._destroy())},Qu=t=>typeof t>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),ed=(t,e,n)=>{const o=J(),i=Yt&&ti(e);typeof n.willClose=="function"&&n.willClose(e),i?td(t,e,o,n.returnFocus,n.didClose):vi(t,o,n.returnFocus,n.didClose)},td=(t,e,n,o,i)=>{A.swalCloseEventFinishedCallback=vi.bind(null,t,n,o,i),e.addEventListener(Yt,function(a){a.target===e&&(A.swalCloseEventFinishedCallback(),delete A.swalCloseEventFinishedCallback)})},bi=(t,e)=>{setTimeout(()=>{typeof e=="function"&&e.bind(t.params)(),t._destroy()})};function Ci(t,e,n){const o=B.domCache.get(t);e.forEach(i=>{o[i].disabled=n})}function wi(t,e){if(!t)return!1;if(t.type==="radio"){const o=t.parentNode.parentNode.querySelectorAll("input");for(let i=0;i<o.length;i++)o[i].disabled=e}else t.disabled=e}function nd(){Ci(this,["confirmButton","denyButton","cancelButton"],!1)}function od(){Ci(this,["confirmButton","denyButton","cancelButton"],!0)}function rd(){return wi(this.getInput(),!1)}function id(){return wi(this.getInput(),!0)}function ad(t){const e=B.domCache.get(this),n=B.innerParams.get(this);Q(e.validationMessage,t),e.validationMessage.className=g["validation-message"],n.customClass&&n.customClass.validationMessage&&N(e.validationMessage,n.customClass.validationMessage),Y(e.validationMessage);const o=this.getInput();o&&(o.setAttribute("aria-invalid",!0),o.setAttribute("aria-describedby",g["validation-message"]),Zr(o),N(o,g.inputerror))}function sd(){const t=B.domCache.get(this);t.validationMessage&&ee(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),$e(e,g.inputerror))}function ld(){return B.domCache.get(this).progressSteps}function cd(t){const e=D(),n=B.innerParams.get(this);if(!e||Me(e,n.hideClass.popup))return de("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=ud(t),i=Object.assign({},n,o);si(this,i),B.innerParams.set(this,i),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const ud=t=>{const e={};return Object.keys(t).forEach(n=>{Kr(n)?e[n]=t[n]:de(`Invalid parameter to update: "${n}". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js
421
421
 
422
- 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 ud(){const t=B.domCache.get(this),e=B.innerParams.get(this);if(!e){bi(this);return}t.popup&&A.swalCloseEventFinishedCallback&&(A.swalCloseEventFinishedCallback(),delete A.swalCloseEventFinishedCallback),A.deferDisposalTimer&&(clearTimeout(A.deferDisposalTimer),delete A.deferDisposalTimer),typeof e.didDestroy=="function"&&e.didDestroy(),dd(this)}const dd=t=>{bi(t),delete t.params,delete A.keydownHandler,delete A.keydownTarget,delete A.currentInstance},bi=t=>{t.isAwaitingPromise()?(wo(B,t),B.awaitingPromise.set(t,!0)):(wo(Xt,t),wo(B,t))},wo=(t,e)=>{for(const n in t)t[n].delete(e)},Ci=Object.freeze(Object.defineProperty({__proto__:null,_destroy:ud,close:En,closeModal:En,closePopup:En,closeToast:En,disableButtons:nd,disableInput:rd,disableLoading:di,enableButtons:td,enableInput:od,getInput:Du,getProgressSteps:sd,handleAwaitingPromise:Zt,hideLoading:di,isAwaitingPromise:Yu,rejectPromise:Zu,resetValidationMessage:ad,showValidationMessage:id,update:ld},Symbol.toStringTag,{value:"Module"})),md=t=>{const e=B.innerParams.get(t);t.disableButtons(),e.input?wi(t,"confirm"):So(t,!0)},fd=t=>{const e=B.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?wi(t,"deny"):ko(t,!1)},pd=(t,e)=>{t.disableButtons(),e(ht.cancel)},wi=(t,e)=>{const n=B.innerParams.get(t);if(!n.input)return nt(`The "input" parameter is needed to be set when using returnInputValueOn${ao(e)}`);const o=Au(t,n);n.inputValidator?hd(t,o,e):t.getInput().checkValidity()?e==="deny"?ko(t,o):So(t,o):(t.enableButtons(),t.showValidationMessage(n.validationMessage))},hd=(t,e,n)=>{const o=B.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>Ft(o.inputValidator(e,o.validationMessage))).then(a=>{t.enableButtons(),t.enableInput(),a?t.showValidationMessage(a):n==="deny"?ko(t,e):So(t,e)})},ko=(t,e)=>{const n=B.innerParams.get(t||void 0);n.showLoaderOnDeny&&gt(We()),n.preDeny?(B.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>Ft(n.preDeny(e,n.validationMessage))).then(i=>{i===!1?(t.hideLoading(),Zt(t)):t.closePopup({isDenied:!0,value:typeof i>"u"?e:i})}).catch(i=>Si(t||void 0,i))):t.closePopup({isDenied:!0,value:e})},ki=(t,e)=>{t.closePopup({isConfirmed:!0,value:e})},Si=(t,e)=>{t.rejectPromise(e)},So=(t,e)=>{const n=B.innerParams.get(t||void 0);n.showLoaderOnConfirm&&gt(),n.preConfirm?(t.resetValidationMessage(),B.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>Ft(n.preConfirm(e,n.validationMessage))).then(i=>{ge(wn())||i===!1?(t.hideLoading(),Zt(t)):ki(t,typeof i>"u"?e:i)}).catch(i=>Si(t||void 0,i))):ki(t,e)},gd=(t,e,n)=>{B.innerParams.get(t).toast?yd(t,e,n):(bd(e),Cd(e),wd(t,e,n))},yd=(t,e,n)=>{e.popup.onclick=()=>{const o=B.innerParams.get(t);o&&(vd(o)||o.timer||o.input)||n(ht.close)}},vd=t=>t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton;let Tn=!1;const bd=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(Tn=!0)}}},Cd=t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(Tn=!0)}}},wd=(t,e,n)=>{e.container.onclick=o=>{const i=B.innerParams.get(t);if(Tn){Tn=!1;return}o.target===e.container&&bn(i.allowOutsideClick)&&n(ht.backdrop)}},kd=t=>typeof t=="object"&&t.jquery,_i=t=>t instanceof Element||kd(t),Sd=t=>{const e={};return typeof t[0]=="object"&&!_i(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,o)=>{const i=t[o];typeof i=="string"||_i(i)?e[n]=i:i!==void 0&&nt(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof i}`)}),e};function _d(...t){const e=this;return new e(...t)}function Ed(t){class e extends this{_main(o,i){return super._main(o,Object.assign({},t,i))}}return e}const Td=()=>A.timeout&&A.timeout.getTimerLeft(),Ei=()=>{if(A.timeout)return fc(),A.timeout.stop()},Ti=()=>{if(A.timeout){const t=A.timeout.start();return ho(t),t}},Pd=()=>{const t=A.timeout;return t&&(t.running?Ei():Ti())},Id=t=>{if(A.timeout){const e=A.timeout.increase(t);return ho(e,!0),e}},Ad=()=>A.timeout&&A.timeout.isRunning();let Pi=!1;const _o={};function xd(t="data-swal-template"){_o[t]=this,Pi||(document.body.addEventListener("click",$d),Pi=!0)}const $d=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in _o){const o=e.getAttribute(n);if(o){_o[n].fire({template:o});return}}},Bd=Object.freeze(Object.defineProperty({__proto__:null,argsToParams:Sd,bindClickHandler:xd,clickCancel:ju,clickConfirm:mi,clickDeny:Vu,enableLoading:gt,fire:_d,getActions:Wt,getCancelButton:ot,getCloseButton:uo,getConfirmButton:Ee,getContainer:J,getDenyButton:We,getFocusableElements:mo,getFooter:Gr,getHtmlContainer:Cn,getIcon:Kt,getImage:Kr,getInputLabel:lc,getLoader:ft,getPopup:D,getTimerLeft:Td,getTimerProgressBar:kn,getTitle:zr,getValidationMessage:wn,increaseTimer:Id,isDeprecatedParameter:co,isLoading:uc,isTimerRunning:Ad,isUpdatableParameter:Fr,isValidParameter:Hr,isVisible:Ru,mixin:Ed,resumeTimer:Ti,showLoading:gt,stopTimer:Ei,toggleTimer:Pd},Symbol.toStringTag,{value:"Module"}));let Eo;class yt{constructor(...e){if(typeof window>"u")return;Eo=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);B.promise.set(this,o)}_main(e,n={}){ac(Object.assign({},n,e)),A.currentInstance&&(A.currentInstance._destroy(),fo()&&ii()),A.currentInstance=this;const o=Ld(e,n);mu(o),Object.freeze(o),A.timeout&&(A.timeout.stop(),delete A.timeout),clearTimeout(A.restoreFocusTimeout);const i=Nd(this);return ri(this,o),B.innerParams.set(this,o),Od(this,i,o)}then(e){return B.promise.get(this).then(e)}finally(e){return B.promise.get(this).finally(e)}}const Od=(t,e,n)=>new Promise((o,i)=>{const a=c=>{t.closePopup({isDismissed:!0,dismiss:c})};Xt.swalPromiseResolve.set(t,o),Xt.swalPromiseReject.set(t,i),e.confirmButton.onclick=()=>md(t),e.denyButton.onclick=()=>fd(t),e.cancelButton.onclick=()=>pd(t,a),e.closeButton.onclick=()=>a(ht.close),gd(t,e,a),Hu(t,A,n,a),Iu(t,n),Su(n),Md(A,n,a),Dd(e,n),setTimeout(()=>{e.container.scrollTop=0})}),Ld=(t,e)=>{const n=nu(t),o=Object.assign({},mt,e,n,t);return o.showClass=Object.assign({},mt.showClass,o.showClass),o.hideClass=Object.assign({},mt.hideClass,o.hideClass),o},Nd=t=>{const e={popup:D(),container:J(),actions:Wt(),confirmButton:Ee(),denyButton:We(),cancelButton:ot(),loader:ft(),closeButton:uo(),validationMessage:wn(),progressSteps:Wr()};return B.domCache.set(t,e),e},Md=(t,e,n)=>{const o=kn();ee(o),e.timer&&(t.timeout=new fu(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(Y(o),ve(o,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&ho(e.timer)})))},Dd=(t,e)=>{if(!e.toast){if(!bn(e.allowEnterKey))return Vd();Rd(t,e)||Co(e,-1,1)}},Rd=(t,e)=>e.focusDeny&&ge(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&ge(t.cancelButton)?(t.cancelButton.focus(),!0):e.focusConfirm&&ge(t.confirmButton)?(t.confirmButton.focus(),!0):!1,Vd=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Object.assign(yt.prototype,Ci),Object.assign(yt,Bd),Object.keys(Ci).forEach(t=>{yt[t]=function(...e){if(Eo)return Eo[t](...e)}}),yt.DismissReason=ht,yt.version="11.4.8";const at=yt;at.default=at;/*! @license DOMPurify 3.2.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.2.6/LICENSE */const{entries:Ii,setPrototypeOf:Ai,isFrozen:jd,getPrototypeOf:Hd,getOwnPropertyDescriptor:Fd}=Object;let{freeze:ae,seal:be,create:xi}=Object,{apply:To,construct:Po}=typeof Reflect<"u"&&Reflect;ae||(ae=function(e){return e}),be||(be=function(e){return e}),To||(To=function(e,n,o){return e.apply(n,o)}),Po||(Po=function(e,n){return new e(...n)});const Pn=le(Array.prototype.forEach),Ud=le(Array.prototype.lastIndexOf),$i=le(Array.prototype.pop),Jt=le(Array.prototype.push),zd=le(Array.prototype.splice),In=le(String.prototype.toLowerCase),Io=le(String.prototype.toString),Bi=le(String.prototype.match),Qt=le(String.prototype.replace),Kd=le(String.prototype.indexOf),Wd=le(String.prototype.trim),Te=le(Object.prototype.hasOwnProperty),se=le(RegExp.prototype.test),en=Gd(TypeError);function le(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return To(t,e,o)}}function Gd(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return Po(t,n)}}function O(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:In;Ai&&Ai(t,null);let o=e.length;for(;o--;){let i=e[o];if(typeof i=="string"){const a=n(i);a!==i&&(jd(e)||(e[o]=a),i=a)}t[i]=!0}return t}function qd(t){for(let e=0;e<t.length;e++)Te(t,e)||(t[e]=null);return t}function De(t){const e=xi(null);for(const[n,o]of Ii(t))Te(t,n)&&(Array.isArray(o)?e[n]=qd(o):o&&typeof o=="object"&&o.constructor===Object?e[n]=De(o):e[n]=o);return e}function tn(t,e){for(;t!==null;){const o=Fd(t,e);if(o){if(o.get)return le(o.get);if(typeof o.value=="function")return le(o.value)}t=Hd(t)}function n(){return null}return n}const Oi=ae(["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"]),Ao=ae(["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"]),xo=ae(["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"]),Yd=ae(["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"]),$o=ae(["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"]),Xd=ae(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Li=ae(["#text"]),Ni=ae(["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"]),Bo=ae(["accent-height","accumulate","additive","alignment-baseline","amplitude","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","exponent","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","intercept","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","slope","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","tablevalues","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"]),Mi=ae(["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"]),An=ae(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Zd=be(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Jd=be(/<%[\w\W]*|[\w\W]*%>/gm),Qd=be(/\$\{[\w\W]*/gm),em=be(/^data-[\-\w.\u00B7-\uFFFF]+$/),tm=be(/^aria-[\-\w]+$/),Di=be(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),nm=be(/^(?:\w+script|data):/i),om=be(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ri=be(/^html$/i),rm=be(/^[a-z][.\w]*(-[.\w]+)+$/i);var Vi=Object.freeze({__proto__:null,ARIA_ATTR:tm,ATTR_WHITESPACE:om,CUSTOM_ELEMENT:rm,DATA_ATTR:em,DOCTYPE_NAME:Ri,ERB_EXPR:Jd,IS_ALLOWED_URI:Di,IS_SCRIPT_OR_DATA:nm,MUSTACHE_EXPR:Zd,TMPLIT_EXPR:Qd});const nn={element:1,text:3,progressingInstruction:7,comment:8,document:9},im=function(){return typeof window>"u"?null:window},am=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let o=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(o=n.getAttribute(i));const a="dompurify"+(o?"#"+o:"");try{return e.createPolicy(a,{createHTML(c){return c},createScriptURL(c){return c}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},ji=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Hi(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:im();const e=E=>Hi(E);if(e.version="3.2.6",e.removed=[],!t||!t.document||t.document.nodeType!==nn.document||!t.Element)return e.isSupported=!1,e;let{document:n}=t;const o=n,i=o.currentScript,{DocumentFragment:a,HTMLTemplateElement:c,Node:l,Element:s,NodeFilter:u,NamedNodeMap:m=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:f,DOMParser:p,trustedTypes:h}=t,C=s.prototype,w=tn(C,"cloneNode"),k=tn(C,"remove"),y=tn(C,"nextSibling"),P=tn(C,"childNodes"),T=tn(C,"parentNode");if(typeof c=="function"){const E=n.createElement("template");E.content&&E.content.ownerDocument&&(n=E.content.ownerDocument)}let v,_="";const{implementation:z,createNodeIterator:X,createDocumentFragment:Ce,getElementsByTagName:te}=n,{importNode:we}=o;let I=ji();e.isSupported=typeof Ii=="function"&&typeof T=="function"&&z&&z.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:V,ERB_EXPR:ne,TMPLIT_EXPR:ce,DATA_ATTR:Pe,ARIA_ATTR:Ye,IS_SCRIPT_OR_DATA:Re,ATTR_WHITESPACE:Ve,CUSTOM_ELEMENT:Xe}=Vi;let{IS_ALLOWED_URI:ke}=Vi,R=null;const Be=O({},[...Oi,...Ao,...xo,...$o,...Li]);let K=null;const je=O({},[...Ni,...Bo,...Mi,...An]);let H=Object.seal(xi(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}})),Ze=null,on=null,Bn=!0,rn=!0,On=!1,Ln=!0,Je=!1,bt=!0,He=!1,an=!1,sn=!1,Qe=!1,Ct=!1,wt=!1,Nn=!0,Mn=!1;const Do="user-content-";let ln=!0,st=!1,kt={},St=null;const Zi=O({},["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 Ji=null;const Qi=O({},["audio","video","img","source","image","track"]);let Ro=null;const ea=O({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Dn="http://www.w3.org/1998/Math/MathML",Rn="http://www.w3.org/2000/svg",Fe="http://www.w3.org/1999/xhtml";let _t=Fe,Vo=!1,jo=null;const Hm=O({},[Dn,Rn,Fe],Io);let Vn=O({},["mi","mo","mn","ms","mtext"]),jn=O({},["annotation-xml"]);const Fm=O({},["title","style","font","a","script"]);let cn=null;const Um=["application/xhtml+xml","text/html"],zm="text/html";let G=null,Et=null;const Km=n.createElement("form"),ta=function(d){return d instanceof RegExp||d instanceof Function},Ho=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Et&&Et===d)){if((!d||typeof d!="object")&&(d={}),d=De(d),cn=Um.indexOf(d.PARSER_MEDIA_TYPE)===-1?zm:d.PARSER_MEDIA_TYPE,G=cn==="application/xhtml+xml"?Io:In,R=Te(d,"ALLOWED_TAGS")?O({},d.ALLOWED_TAGS,G):Be,K=Te(d,"ALLOWED_ATTR")?O({},d.ALLOWED_ATTR,G):je,jo=Te(d,"ALLOWED_NAMESPACES")?O({},d.ALLOWED_NAMESPACES,Io):Hm,Ro=Te(d,"ADD_URI_SAFE_ATTR")?O(De(ea),d.ADD_URI_SAFE_ATTR,G):ea,Ji=Te(d,"ADD_DATA_URI_TAGS")?O(De(Qi),d.ADD_DATA_URI_TAGS,G):Qi,St=Te(d,"FORBID_CONTENTS")?O({},d.FORBID_CONTENTS,G):Zi,Ze=Te(d,"FORBID_TAGS")?O({},d.FORBID_TAGS,G):De({}),on=Te(d,"FORBID_ATTR")?O({},d.FORBID_ATTR,G):De({}),kt=Te(d,"USE_PROFILES")?d.USE_PROFILES:!1,Bn=d.ALLOW_ARIA_ATTR!==!1,rn=d.ALLOW_DATA_ATTR!==!1,On=d.ALLOW_UNKNOWN_PROTOCOLS||!1,Ln=d.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Je=d.SAFE_FOR_TEMPLATES||!1,bt=d.SAFE_FOR_XML!==!1,He=d.WHOLE_DOCUMENT||!1,Qe=d.RETURN_DOM||!1,Ct=d.RETURN_DOM_FRAGMENT||!1,wt=d.RETURN_TRUSTED_TYPE||!1,sn=d.FORCE_BODY||!1,Nn=d.SANITIZE_DOM!==!1,Mn=d.SANITIZE_NAMED_PROPS||!1,ln=d.KEEP_CONTENT!==!1,st=d.IN_PLACE||!1,ke=d.ALLOWED_URI_REGEXP||Di,_t=d.NAMESPACE||Fe,Vn=d.MATHML_TEXT_INTEGRATION_POINTS||Vn,jn=d.HTML_INTEGRATION_POINTS||jn,H=d.CUSTOM_ELEMENT_HANDLING||{},d.CUSTOM_ELEMENT_HANDLING&&ta(d.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=d.CUSTOM_ELEMENT_HANDLING.tagNameCheck),d.CUSTOM_ELEMENT_HANDLING&&ta(d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),d.CUSTOM_ELEMENT_HANDLING&&typeof d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(H.allowCustomizedBuiltInElements=d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Je&&(rn=!1),Ct&&(Qe=!0),kt&&(R=O({},Li),K=[],kt.html===!0&&(O(R,Oi),O(K,Ni)),kt.svg===!0&&(O(R,Ao),O(K,Bo),O(K,An)),kt.svgFilters===!0&&(O(R,xo),O(K,Bo),O(K,An)),kt.mathMl===!0&&(O(R,$o),O(K,Mi),O(K,An))),d.ADD_TAGS&&(R===Be&&(R=De(R)),O(R,d.ADD_TAGS,G)),d.ADD_ATTR&&(K===je&&(K=De(K)),O(K,d.ADD_ATTR,G)),d.ADD_URI_SAFE_ATTR&&O(Ro,d.ADD_URI_SAFE_ATTR,G),d.FORBID_CONTENTS&&(St===Zi&&(St=De(St)),O(St,d.FORBID_CONTENTS,G)),ln&&(R["#text"]=!0),He&&O(R,["html","head","body"]),R.table&&(O(R,["tbody"]),delete Ze.tbody),d.TRUSTED_TYPES_POLICY){if(typeof d.TRUSTED_TYPES_POLICY.createHTML!="function")throw en('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof d.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw en('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=d.TRUSTED_TYPES_POLICY,_=v.createHTML("")}else v===void 0&&(v=am(h,i)),v!==null&&typeof _=="string"&&(_=v.createHTML(""));ae&&ae(d),Et=d}},na=O({},[...Ao,...xo,...Yd]),oa=O({},[...$o,...Xd]),Wm=function(d){let b=T(d);(!b||!b.tagName)&&(b={namespaceURI:_t,tagName:"template"});const S=In(d.tagName),F=In(b.tagName);return jo[d.namespaceURI]?d.namespaceURI===Rn?b.namespaceURI===Fe?S==="svg":b.namespaceURI===Dn?S==="svg"&&(F==="annotation-xml"||Vn[F]):!!na[S]:d.namespaceURI===Dn?b.namespaceURI===Fe?S==="math":b.namespaceURI===Rn?S==="math"&&jn[F]:!!oa[S]:d.namespaceURI===Fe?b.namespaceURI===Rn&&!jn[F]||b.namespaceURI===Dn&&!Vn[F]?!1:!oa[S]&&(Fm[S]||!na[S]):!!(cn==="application/xhtml+xml"&&jo[d.namespaceURI]):!1},Oe=function(d){Jt(e.removed,{element:d});try{T(d).removeChild(d)}catch{k(d)}},Tt=function(d,b){try{Jt(e.removed,{attribute:b.getAttributeNode(d),from:b})}catch{Jt(e.removed,{attribute:null,from:b})}if(b.removeAttribute(d),d==="is")if(Qe||Ct)try{Oe(b)}catch{}else try{b.setAttribute(d,"")}catch{}},ra=function(d){let b=null,S=null;if(sn)d="<remove></remove>"+d;else{const W=Bi(d,/^[\r\n\t ]+/);S=W&&W[0]}cn==="application/xhtml+xml"&&_t===Fe&&(d='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+d+"</body></html>");const F=v?v.createHTML(d):d;if(_t===Fe)try{b=new p().parseFromString(F,cn)}catch{}if(!b||!b.documentElement){b=z.createDocument(_t,"template",null);try{b.documentElement.innerHTML=Vo?_:F}catch{}}const oe=b.body||b.documentElement;return d&&S&&oe.insertBefore(n.createTextNode(S),oe.childNodes[0]||null),_t===Fe?te.call(b,He?"html":"body")[0]:He?b.documentElement:oe},ia=function(d){return X.call(d.ownerDocument||d,d,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Fo=function(d){return d instanceof f&&(typeof d.nodeName!="string"||typeof d.textContent!="string"||typeof d.removeChild!="function"||!(d.attributes instanceof m)||typeof d.removeAttribute!="function"||typeof d.setAttribute!="function"||typeof d.namespaceURI!="string"||typeof d.insertBefore!="function"||typeof d.hasChildNodes!="function")},aa=function(d){return typeof l=="function"&&d instanceof l};function Ue(E,d,b){Pn(E,S=>{S.call(e,d,b,Et)})}const sa=function(d){let b=null;if(Ue(I.beforeSanitizeElements,d,null),Fo(d))return Oe(d),!0;const S=G(d.nodeName);if(Ue(I.uponSanitizeElement,d,{tagName:S,allowedTags:R}),bt&&d.hasChildNodes()&&!aa(d.firstElementChild)&&se(/<[/\w!]/g,d.innerHTML)&&se(/<[/\w!]/g,d.textContent)||d.nodeType===nn.progressingInstruction||bt&&d.nodeType===nn.comment&&se(/<[/\w]/g,d.data))return Oe(d),!0;if(!R[S]||Ze[S]){if(!Ze[S]&&ca(S)&&(H.tagNameCheck instanceof RegExp&&se(H.tagNameCheck,S)||H.tagNameCheck instanceof Function&&H.tagNameCheck(S)))return!1;if(ln&&!St[S]){const F=T(d)||d.parentNode,oe=P(d)||d.childNodes;if(oe&&F){const W=oe.length;for(let me=W-1;me>=0;--me){const ze=w(oe[me],!0);ze.__removalCount=(d.__removalCount||0)+1,F.insertBefore(ze,y(d))}}}return Oe(d),!0}return d instanceof s&&!Wm(d)||(S==="noscript"||S==="noembed"||S==="noframes")&&se(/<\/no(script|embed|frames)/i,d.innerHTML)?(Oe(d),!0):(Je&&d.nodeType===nn.text&&(b=d.textContent,Pn([V,ne,ce],F=>{b=Qt(b,F," ")}),d.textContent!==b&&(Jt(e.removed,{element:d.cloneNode()}),d.textContent=b)),Ue(I.afterSanitizeElements,d,null),!1)},la=function(d,b,S){if(Nn&&(b==="id"||b==="name")&&(S in n||S in Km))return!1;if(!(rn&&!on[b]&&se(Pe,b))){if(!(Bn&&se(Ye,b))){if(!K[b]||on[b]){if(!(ca(d)&&(H.tagNameCheck instanceof RegExp&&se(H.tagNameCheck,d)||H.tagNameCheck instanceof Function&&H.tagNameCheck(d))&&(H.attributeNameCheck instanceof RegExp&&se(H.attributeNameCheck,b)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(b))||b==="is"&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&se(H.tagNameCheck,S)||H.tagNameCheck instanceof Function&&H.tagNameCheck(S))))return!1}else if(!Ro[b]){if(!se(ke,Qt(S,Ve,""))){if(!((b==="src"||b==="xlink:href"||b==="href")&&d!=="script"&&Kd(S,"data:")===0&&Ji[d])){if(!(On&&!se(Re,Qt(S,Ve,"")))){if(S)return!1}}}}}}return!0},ca=function(d){return d!=="annotation-xml"&&Bi(d,Xe)},ua=function(d){Ue(I.beforeSanitizeAttributes,d,null);const{attributes:b}=d;if(!b||Fo(d))return;const S={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:K,forceKeepAttr:void 0};let F=b.length;for(;F--;){const oe=b[F],{name:W,namespaceURI:me,value:ze}=oe,un=G(W),Uo=ze;let re=W==="value"?Uo:Wd(Uo);if(S.attrName=un,S.attrValue=re,S.keepAttr=!0,S.forceKeepAttr=void 0,Ue(I.uponSanitizeAttribute,d,S),re=S.attrValue,Mn&&(un==="id"||un==="name")&&(Tt(W,d),re=Do+re),bt&&se(/((--!?|])>)|<\/(style|title)/i,re)){Tt(W,d);continue}if(S.forceKeepAttr)continue;if(!S.keepAttr){Tt(W,d);continue}if(!Ln&&se(/\/>/i,re)){Tt(W,d);continue}Je&&Pn([V,ne,ce],ma=>{re=Qt(re,ma," ")});const da=G(d.nodeName);if(!la(da,un,re)){Tt(W,d);continue}if(v&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!me)switch(h.getAttributeType(da,un)){case"TrustedHTML":{re=v.createHTML(re);break}case"TrustedScriptURL":{re=v.createScriptURL(re);break}}if(re!==Uo)try{me?d.setAttributeNS(me,W,re):d.setAttribute(W,re),Fo(d)?Oe(d):$i(e.removed)}catch{Tt(W,d)}}Ue(I.afterSanitizeAttributes,d,null)},Gm=function E(d){let b=null;const S=ia(d);for(Ue(I.beforeSanitizeShadowDOM,d,null);b=S.nextNode();)Ue(I.uponSanitizeShadowNode,b,null),sa(b),ua(b),b.content instanceof a&&E(b.content);Ue(I.afterSanitizeShadowDOM,d,null)};return e.sanitize=function(E){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=null,S=null,F=null,oe=null;if(Vo=!E,Vo&&(E="<!-->"),typeof E!="string"&&!aa(E))if(typeof E.toString=="function"){if(E=E.toString(),typeof E!="string")throw en("dirty is not a string, aborting")}else throw en("toString is not a function");if(!e.isSupported)return E;if(an||Ho(d),e.removed=[],typeof E=="string"&&(st=!1),st){if(E.nodeName){const ze=G(E.nodeName);if(!R[ze]||Ze[ze])throw en("root node is forbidden and cannot be sanitized in-place")}}else if(E instanceof l)b=ra("<!---->"),S=b.ownerDocument.importNode(E,!0),S.nodeType===nn.element&&S.nodeName==="BODY"||S.nodeName==="HTML"?b=S:b.appendChild(S);else{if(!Qe&&!Je&&!He&&E.indexOf("<")===-1)return v&&wt?v.createHTML(E):E;if(b=ra(E),!b)return Qe?null:wt?_:""}b&&sn&&Oe(b.firstChild);const W=ia(st?E:b);for(;F=W.nextNode();)sa(F),ua(F),F.content instanceof a&&Gm(F.content);if(st)return E;if(Qe){if(Ct)for(oe=Ce.call(b.ownerDocument);b.firstChild;)oe.appendChild(b.firstChild);else oe=b;return(K.shadowroot||K.shadowrootmode)&&(oe=we.call(o,oe,!0)),oe}let me=He?b.outerHTML:b.innerHTML;return He&&R["!doctype"]&&b.ownerDocument&&b.ownerDocument.doctype&&b.ownerDocument.doctype.name&&se(Ri,b.ownerDocument.doctype.name)&&(me="<!DOCTYPE "+b.ownerDocument.doctype.name+`>
423
- `+me),Je&&Pn([V,ne,ce],ze=>{me=Qt(me,ze," ")}),v&&wt?v.createHTML(me):me},e.setConfig=function(){let E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ho(E),an=!0},e.clearConfig=function(){Et=null,an=!1},e.isValidAttribute=function(E,d,b){Et||Ho({});const S=G(E),F=G(d);return la(S,F,b)},e.addHook=function(E,d){typeof d=="function"&&Jt(I[E],d)},e.removeHook=function(E,d){if(d!==void 0){const b=Ud(I[E],d);return b===-1?void 0:zd(I[E],b,1)[0]}return $i(I[E])},e.removeHooks=function(E){I[E]=[]},e.removeAllHooks=function(){I=ji()},e}var Oo=Hi();class Fi{get IsVisible(){return at.isVisible()}async CreateConfirmAsync(e){return new Promise(n=>{at.fire({showCancelButton:!0,allowEscapeKey:!1,allowOutsideClick:!1,icon:"question",title:e.title,html:Oo.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 Ui=()=>new Fi,sm=()=>new Fi;function lm(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var xn={exports:{}},cm=xn.exports,zi;function um(){return zi||(zi=1,function(t){(function(e,n){t.exports?t.exports=n():e.log=n()})(cm,function(){var e=function(){},n="undefined",o=typeof window!==n&&typeof window.navigator!==n&&/Trident\/|MSIE /.test(window.navigator.userAgent),i=["trace","debug","info","warn","error"],a={},c=null;function l(w,k){var y=w[k];if(typeof y.bind=="function")return y.bind(w);try{return Function.prototype.bind.call(y,w)}catch{return function(){return Function.prototype.apply.apply(y,[w,arguments])}}}function s(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function u(w){return w==="debug"&&(w="log"),typeof console===n?!1:w==="trace"&&o?s:console[w]!==void 0?l(console,w):console.log!==void 0?l(console,"log"):e}function m(){for(var w=this.getLevel(),k=0;k<i.length;k++){var y=i[k];this[y]=k<w?e:this.methodFactory(y,w,this.name)}if(this.log=this.debug,typeof console===n&&w<this.levels.SILENT)return"No console available for logging"}function f(w){return function(){typeof console!==n&&(m.call(this),this[w].apply(this,arguments))}}function p(w,k,y){return u(w)||f.apply(this,arguments)}function h(w,k){var y=this,P,T,v,_="loglevel";typeof w=="string"?_+=":"+w:typeof w=="symbol"&&(_=void 0);function z(I){var V=(i[I]||"silent").toUpperCase();if(!(typeof window===n||!_)){try{window.localStorage[_]=V;return}catch{}try{window.document.cookie=encodeURIComponent(_)+"="+V+";"}catch{}}}function X(){var I;if(!(typeof window===n||!_)){try{I=window.localStorage[_]}catch{}if(typeof I===n)try{var V=window.document.cookie,ne=encodeURIComponent(_),ce=V.indexOf(ne+"=");ce!==-1&&(I=/^([^;]+)/.exec(V.slice(ce+ne.length+1))[1])}catch{}return y.levels[I]===void 0&&(I=void 0),I}}function Ce(){if(!(typeof window===n||!_)){try{window.localStorage.removeItem(_)}catch{}try{window.document.cookie=encodeURIComponent(_)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function te(I){var V=I;if(typeof V=="string"&&y.levels[V.toUpperCase()]!==void 0&&(V=y.levels[V.toUpperCase()]),typeof V=="number"&&V>=0&&V<=y.levels.SILENT)return V;throw new TypeError("log.setLevel() called with invalid level: "+I)}y.name=w,y.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},y.methodFactory=k||p,y.getLevel=function(){return v??T??P},y.setLevel=function(I,V){return v=te(I),V!==!1&&z(v),m.call(y)},y.setDefaultLevel=function(I){T=te(I),X()||y.setLevel(I,!1)},y.resetLevel=function(){v=null,Ce(),m.call(y)},y.enableAll=function(I){y.setLevel(y.levels.TRACE,I)},y.disableAll=function(I){y.setLevel(y.levels.SILENT,I)},y.rebuild=function(){if(c!==y&&(P=te(c.getLevel())),m.call(y),c===y)for(var I in a)a[I].rebuild()},P=te(c?c.getLevel():"WARN");var we=X();we!=null&&(v=te(we)),m.call(y)}c=new h,c.getLogger=function(k){if(typeof k!="symbol"&&typeof k!="string"||k==="")throw new TypeError("You must supply a name when creating a logger.");var y=a[k];return y||(y=a[k]=new h(k,c.methodFactory)),y};var C=typeof window!==n?window.log:void 0;return c.noConflict=function(){return typeof window!==n&&window.log===c&&(window.log=C),c},c.getLoggers=function(){return a},c.default=c,c})}(xn)),xn.exports}var dm=um();const $n=lm(dm),mm=(t,e={})=>{$n.setDefaultLevel(e.enableLogging?$n.levels.DEBUG:$n.levels.SILENT);const n=240;document.documentElement.style.setProperty("--nav-menu-width",`${n}px`);const o=r.ref(!0),i=r.ref(0),a=r.ref(!1),c=r.ref(!1),l=r.ref(""),s=r.ref(null),u=r.ref(0);t.provide(Rr,{navMenuWidth:n,isMenuOpened:o,ToggleMenu:()=>{o.value=!o.value},OpenMenu:()=>{o.value=!0},CloseMenu:()=>{o.value=!1},scrollY:i,pageTitle:l,isDarkMode:a,ToggleTheme:()=>Ht.Toggle(),EnableDarkMode:()=>Ht.EnableDarkMode(),EnableLightMode:()=>Ht.EnableLightMode(),ClearStoredTheme:()=>Ht.ClearStoredTheme(),LogoutAsync:async()=>{const f=Ui(),{oidc:p}=Hn.UseAuth();await f.ConfirmAsync("Deseja realmente sair da sua conta?")&&(Mo("Saindo..."),c.value=!0,await new Promise(C=>setTimeout(C,1e3)),p.logout({redirectUri:window.location.origin}).catch(()=>{c.value=!1,Xi()}))},Login:()=>{const{oidc:f}=Hn.UseAuth();f.login()},isLoggingOut:c,mainRef:s,mainWidth:u,isMainXs:r.computed(()=>u.value<=384),isMainSm:r.computed(()=>u.value>384),isMainMd:r.computed(()=>u.value>768),isMainLg:r.computed(()=>u.value>992),isMainXl:r.computed(()=>u.value>1280),isMain2Xl:r.computed(()=>u.value>1536),isMain3Xl:r.computed(()=>u.value>1920)}),new MutationObserver(()=>{a.value=document.documentElement.classList.contains("dark")}).observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),document.addEventListener("scroll",()=>{i.value=document.documentElement.scrollTop}),Ht.SetInitialTheme()},fm=$n;class Lo extends Error{constructor(e=[]){const n=Array.isArray(e)?e:[e];super(n[0]),this.errors=n}errors=[]}class Ki{constructor(e=null){this._value=e,this._httpStatusCode=200}errors=[];_value=null;_httpStatusCode;get value(){return this._value}set value(e){this._value=e}get hasSuccess(){return this.isSuccessfulHttpStatusCode&&this.errors.length===0}get hasError(){return!this.hasSuccess}get httpStatusCode(){return this._httpStatusCode}set httpStatusCode(e){this._httpStatusCode=e}WithError(e){if(Array.isArray(e)){e.forEach(n=>this.WithError(n));return}this.errors.push(e),this.isSuccessfulHttpStatusCode||(this._httpStatusCode=400)}get isSuccessfulHttpStatusCode(){return this._httpStatusCode>=200&&this._httpStatusCode<300}[Symbol.toPrimitive](e){if(e==="throw")throw new Lo(this.errors)}get firstError(){return this.hasSuccess?null:this.errors[0]}}class Wi{get IsVisible(){return at.isVisible()}async CreateAlertAsync(e){let n="info",o,i;return typeof e=="string"||Array.isArray(e)?o=Array.isArray(e)?e.join("<br />"):e:(n=e.icon??"info",i=e.title??"",o=Array.isArray(e.text)?e.text.join("<br />"):e.text),new Promise(a=>{at.fire({allowEscapeKey:!1,allowOutsideClick:!1,icon:n,title:i,html:`<div style="max-height: 50vh; overflow: auto">${Oo.sanitize(o)}</div>`}).then(()=>a(!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"})}}const Gi=()=>new Wi,pm=()=>new Wi;window.addEventListener("error",function(t){return No(t.error)||console.error(t.error||t.message),t.preventDefault(),!1}),window.addEventListener("unhandledrejection",function(t){return No(t.reason)||console.error("Unhandled Rejection",t.reason),t.preventDefault(),!1});const hm=t=>{t.config.errorHandler=(e,n,o)=>{No(e)||console.error("Vue Global Error Handler: ",{err:e,vm:n,info:o})}},No=t=>{if(!t)return!0;try{if(t.httpStatusCode===401)return!0}catch{}return t instanceof Lo||t instanceof Ki?(Gi().AlertErrorAsync(t.errors),!0):!1},gm={class:"font-percentage"},qi="--font-size-increment",ym="tamanho-fonte",vm=Le(r.defineComponent({__name:"FontSize",setup(t){const e=r.ref(!1),n=r.ref(0),o=()=>{n.value=Fn(),e.value=!0},i=()=>{e.value=!1},a=()=>document.documentElement,c=()=>parseInt(getComputedStyle(a()).getPropertyValue(qi)||"1"),l=p=>{p<.5||p>1.6||(a().style.setProperty(qi,p.toString()),f.value=p)},s=()=>{l(f.value+.1)},u=()=>{l(f.value-.1)},m=()=>{l(1)},f=r.ref(1);return r.onBeforeMount(()=>{localStorage.removeItem(ym)}),r.onMounted(()=>{f.value=c()}),(p,h)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(Ie,{button:!0,size:"sm",icon:"text_increase",tooltip:"Tamanho da fonte",onClick:o}),e.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createElementVNode("div",{class:r.normalizeClass(["border","fadein","font-size-wrapper"]),style:r.normalizeStyle({zIndex:n.value+1})},[r.createElementVNode("div",{class:"icon",onClick:u}),r.createElementVNode("span",gm,r.toDisplayString(f.value.toLocaleString("pt-br",{style:"percent",maximumFractionDigits:0})),1),r.createElementVNode("div",{class:"icon add",onClick:s}),r.createElementVNode("span",{class:"redefinir",onClick:m}," Redefinir ")],4),r.createElementVNode("div",{class:"font-size-mask",style:r.normalizeStyle({zIndex:n.value}),onClick:i},null,4)],64)):r.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-d17f4a5f"]]),bm=r.defineComponent({__name:"ScrollToTop",setup(t){const{scrollY:e}=jt(),n=r.computed(()=>e.value>800);function o(){document.documentElement.scrollTo(0,0)}return(i,a)=>(r.openBlock(),r.createElementBlock("button",{class:r.normalizeClass(["sf-scrollToTop",{"sf-scrollToTop-visible":n.value}]),onClick:o},null,2))}}),Cm={class:"nav-menu-header"},wm={class:"nav-menu-inner-close"},km={class:"main-content"},Sm={class:"page-title"},_m={class:"action"},Em={id:"content"},Tm={key:0,id:"logging-out"},Pm={class:"info-fazenda"},Im={class:"font-bold"},Am={class:"info-endereco text-muted"},xm={class:"footer-right"},$m=Le(r.defineComponent({__name:"Main",props:{auth:{}},emits:["login"],setup(t,{emit:e}){const n=t,{navMenuWidth:o,isMenuOpened:i,pageTitle:a,scrollY:c,ToggleMenu:l,isDarkMode:s,ToggleTheme:u,CloseMenu:m,LogoutAsync:f,isLoggingOut:p,mainRef:h,mainWidth:C}=jt(),w=r.ref(null),k=()=>{if(!w.value||!i.value)return!1;w.value.offsetWidth!==o&&m()};r.onMounted(()=>{if(fa.useRouter().afterEach(()=>{k()}),h.value){let T=null;Dr(h,v=>{r.nextTick(()=>{T&&clearTimeout(T),T=setTimeout(()=>{C.value=v[0].contentRect.width},10)}),C.value=v[0].contentRect.width}),C.value=h.value.clientWidth}});const y=e;return(P,T)=>(r.openBlock(),r.createElementBlock("main",{ref_key:"mainRef",ref:h,class:r.normalizeClass({disabled:r.unref(p),"nav-menu-visible":r.unref(i)})},[r.createElementVNode("aside",{id:"nav-menu",ref_key:"navMenuRef",ref:w,class:r.normalizeClass({"nav-menu-hidden":!r.unref(i)})},[r.createElementVNode("div",Cm,[T[1]||(T[1]=r.createElementVNode("span",null,"Menu",-1)),r.createElementVNode("div",wm,[r.createVNode(Ie,{button:!0,icon:"close",onClick:r.unref(l)},null,8,["onClick"])])]),r.renderSlot(P.$slots,"nav-menu",{},void 0,!0)],2),r.createElementVNode("div",km,[r.createElementVNode("div",{id:"top-bar",class:r.normalizeClass({"shadow-bottom":r.unref(c)>72})},[r.createVNode(Ie,{button:!0,icon:r.unref(i)?"menu_open":"menu",tooltip:"Menu",onClick:r.unref(l)},null,8,["icon","onClick"]),r.createElementVNode("div",Sm,r.toDisplayString(r.unref(p)?"Saindo...":r.unref(a)),1),T[2]||(T[2]=r.createElementVNode("span",{class:"sep"},null,-1)),r.createElementVNode("div",_m,[r.createVNode(Ie,{button:!0,size:"sm",icon:r.unref(s)?"light_mode":"dark_mode",tooltip:r.unref(s)?"Modo claro":"Modo escuro",onClick:r.unref(u)},null,8,["icon","tooltip","onClick"]),r.createVNode(vm),n.auth?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[n.auth.isAuthenticated?(r.openBlock(),r.createBlock(Ie,{key:0,button:!0,size:"sm",icon:"logout",tooltip:"Sair",onClick:r.unref(f)},null,8,["onClick"])):(r.openBlock(),r.createBlock(Ie,{key:1,button:!0,size:"sm",icon:"login",tooltip:"Entrar",onClick:T[0]||(T[0]=v=>y("login"))}))],64)):r.createCommentVNode("",!0)])],2),r.createElementVNode("div",Em,[r.unref(p)?(r.openBlock(),r.createElementBlock("div",Tm,[r.createVNode(Ko)])):r.renderSlot(P.$slots,"content",{key:1},void 0,!0)])]),r.createElementVNode("footer",null,[T[5]||(T[5]=r.createElementVNode("div",{class:"logo-fazenda"},null,-1)),r.createElementVNode("div",Pm,[r.createElementVNode("span",Im,[r.renderSlot(P.$slots,"footer-nome-fazenda",{},()=>[T[3]||(T[3]=r.createTextVNode(" SECRETARIA MUNICIPAL DA FAZENDA "))],!0)]),r.createElementVNode("span",Am,[r.renderSlot(P.$slots,"footer-endereco-fazenda",{},()=>[T[4]||(T[4]=r.createTextVNode(" Rua Líbero Badaró, 190 - Centro - São Paulo - SP - CEP 01008-000 "))],!0)])]),r.createElementVNode("div",xm,[r.renderSlot(P.$slots,"footer-right",{},void 0,!0)])]),r.createVNode(bm)],2))}}),[["__scopeId","data-v-5108e4ac"]]),Bm=r.defineComponent({__name:"PageTitle",props:{title:{}},setup(t){const{pageTitle:e}=jt(),n=t;return r.watchEffect(()=>{document.title=n.title,e.value=n.title}),(o,i)=>null}}),vt=t=>{const e=t==="light"?"0, 0, 0":"198, 198, 198";return`0 1px 3px 0 rgba(${e}, 0.1), 0 1px 2px -1px rgba(${e}, 0.1);`},Yi={surface:{0:"var(--surface-0-color)",50:"var(--surface-100-color)",100:"var(--surface-100-color)",200:"var(--surface-200-color)",300:"var(--surface-300-color)",400:"var(--surface-400-color)",500:"var(--surface-1000-color)",600:"var(--surface-600-color)",700:"var(--surface-700-color)",800:"var(--surface-800-color)",900:"var(--surface-900-color)",950:"var(--surface-1000-color)"},primary:{color:"var(--primary-color)",contrastColor:"var(--bg-color)",hoverColor:"var(--primary-hover-color)",activeColor:"var(--primary-color)"},highlight:{background:"var(--primary-color)",color:"var(--bg-color)"},formField:{background:"var(--surface-0-color)",disabledBackground:"var(--surface-0-color)",filledBackground:"var(--surface-100-color)",filledFocusBackground:"var(--surface-100-color)",borderColor:"var(--surface-1000-color)",hoverBorderColor:"var(--primary-color)",focusBorderColor:"var(--primary-color)",invalidBorderColor:"var(--error-color)",color:"var(--text-color)",disabledColor:"var(--disabled-color)",placeholderColor:"var(--muted-color)",floatLabelColor:"var(--secondary-color)",floatLabelFocusColor:"var(--secondary-color)",floatLabelInvalidColor:"var(--error-color)",iconColor:"var(--primary-color)"},text:{color:"var(--text-color)",hoverColor:"var(--primary-color)",mutedColor:"var(--muted-color)",hoverMutedColor:"var(--muted-color)"},mask:{background:"var(--maskbg-color)",color:"var(--surface-200-color)"},content:{background:"var(--bg-color)",color:"var(--text-color)",border:{color:"var(--surface-1000-color)",radius:"var(--border-radius)"},hover:{background:"var(--primary-hover-color)",color:"var(--primary-color)"}}},Om={semantic:{disabled:{opacity:"1"},transitionDuration:"0",primary:{50:"color-mix(in srgb, currentColor 5%, transparent)",100:"color-mix(in srgb, currentColor 10%, transparent)",200:"color-mix(in srgb, currentColor 20%, transparent)",300:"color-mix(in srgb, currentColor 30%, transparent)",400:"color-mix(in srgb, currentColor 40%, transparent)",500:"color-mix(in srgb, currentColor 50%, transparent)",600:"color-mix(in srgb, currentColor 60%, transparent)",700:"color-mix(in srgb, currentColor 70%, transparent)",800:"color-mix(in srgb, currentColor 80%, transparent)",900:"color-mix(in srgb, currentColor 90%, transparent)",950:"color-mix(in srgb, currentColor 95%, transparent)"},colorScheme:{light:{...Yi},dark:{...Yi}}},components:{accordion:{header:{background:"transparent",activeBackground:"transparent",hoverBackground:"transparent",activeHoverBackground:"transparent"},content:{background:"transparent"}},blockui:{root:{borderRadius:"0px"}},button:{colorScheme:{light:{root:{primary:{background:"var(--primary-color) ",borderColor:"var(--primary-color)",focusRing:{color:"var(--primary-color)"},hoverBorderColor:"var(--primary-color)",hoverBackground:"color-mix(in srgb, var(--primary-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--primary-color) 80%, black 20%)",activeBorderColor:"var(--primary-color)"},secondary:{background:"var(--secondary-color) ",borderColor:"var(--secondary-color)",focusRing:{color:"var(--secondary-color)"},hoverBorderColor:"var(--secondary-color)",hoverBackground:"color-mix(in srgb, var(--secondary-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--secondary-color) 80%, black 20%)",activeBorderColor:"var(--secondary-color)"},success:{background:"var(--success-color) ",borderColor:"var(--success-color)",focusRing:{color:"var(--success-color)"},hoverBorderColor:"var(--success-color)",hoverBackground:"color-mix(in srgb, var(--success-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--success-color) 80%, black 20%)",activeBorderColor:"var(--success-color)"},info:{background:"var(--info-color) ",borderColor:"var(--info-color)",focusRing:{color:"var(--info-color)"},hoverBorderColor:"var(--info-color)",hoverBackground:"color-mix(in srgb, var(--info-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--info-color) 80%, black 20%)",activeBorderColor:"var(--info-color)"},warn:{background:"var(--warn-color) ",borderColor:"var(--warn-color)",focusRing:{color:"var(--warn-color)"},hoverBorderColor:"var(--warn-color)",hoverBackground:"color-mix(in srgb, var(--warn-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--warn-color) 80%, black 20%)",activeBorderColor:"var(--warn-color)"},help:{background:"var(--help-color) ",borderColor:"var(--help-color)",focusRing:{color:"var(--help-color)"},hoverBorderColor:"var(--help-color)",hoverBackground:"color-mix(in srgb, var(--help-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--help-color) 80%, black 20%)",activeBorderColor:"var(--help-color)"},danger:{background:"var(--error-color) ",borderColor:"var(--error-color)",focusRing:{color:"var(--error-color)"},hoverBorderColor:"var(--error-color)",hoverBackground:"color-mix(in srgb, var(--error-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--error-color) 80%, black 20%)",activeBorderColor:"var(--error-color)"},contrast:{background:"var(--text-color) ",borderColor:"var(--text-color)",focusRing:{color:"var(--text-color)"},hoverBorderColor:"var(--text-color)",hoverBackground:"color-mix(in srgb, var(--text-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--text-color) 80%, black 20%)",activeBorderColor:"var(--text-color)"}},outlined:{primary:{color:"var(--primary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},secondary:{color:"var(--secondary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},success:{color:"var(--success-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},info:{color:"var(--info-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},warn:{color:"var(--warn-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},help:{color:"var(--help-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},danger:{color:"var(--error-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},contrast:{color:"var(--text-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"}},text:{primary:{color:"var(--primary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},secondary:{color:"var(--secondary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},success:{color:"var(--success-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},info:{color:"var(--info-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},warn:{color:"var(--warn-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},help:{color:"var(--help-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},danger:{color:"var(--error-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},contrast:{color:"var(--text-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"}}},dark:{root:{primary:{background:"var(--primary-color) ",borderColor:"var(--primary-color)",focusRing:{color:"var(--primary-color)"},hoverBorderColor:"var(--primary-color)",hoverBackground:"color-mix(in srgb, var(--primary-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--primary-color) 80%, white 20%)"},secondary:{background:"var(--secondary-color) ",borderColor:"var(--secondary-color)",focusRing:{color:"var(--secondary-color)"},hoverBorderColor:"var(--secondary-color)",hoverBackground:"color-mix(in srgb, var(--secondary-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--secondary-color) 80%, white 20%)",activeBorderColor:"var(--secondary-color)"},success:{background:"var(--success-color) ",borderColor:"var(--success-color)",focusRing:{color:"var(--success-color)"},hoverBorderColor:"var(--success-color)",hoverBackground:"color-mix(in srgb, var(--success-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--success-color) 80%, white 20%)",activeBorderColor:"var(--success-color)"},info:{background:"var(--info-color) ",borderColor:"var(--info-color)",focusRing:{color:"var(--info-color)"},hoverBorderColor:"var(--info-color)",hoverBackground:"color-mix(in srgb, var(--info-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--info-color) 80%, white 20%)",activeBorderColor:"var(--info-color)"},warn:{background:"var(--warn-color) ",borderColor:"var(--warn-color)",focusRing:{color:"var(--warn-color)"},hoverBorderColor:"var(--warn-color)",hoverBackground:"color-mix(in srgb, var(--warn-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--warn-color) 80%, white 20%)",activeBorderColor:"var(--warn-color)"},help:{background:"var(--help-color) ",borderColor:"var(--help-color)",focusRing:{color:"var(--help-color)"},hoverBorderColor:"var(--help-color)",hoverBackground:"color-mix(in srgb, var(--help-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--help-color) 80%, white 20%)",activeBorderColor:"var(--help-color)"},danger:{background:"var(--error-color) ",borderColor:"var(--error-color)",focusRing:{color:"var(--error-color)"},hoverBorderColor:"var(--error-color)",hoverBackground:"color-mix(in srgb, var(--error-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--error-color) 80%, white 20%)",activeBorderColor:"var(--error-color)"},contrast:{background:"var(--text-color) ",borderColor:"var(--text-color)",focusRing:{color:"var(--text-color)"},hoverBorderColor:"var(--text-color)",hoverBackground:"color-mix(in srgb, var(--text-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--text-color) 80%, white 20%)",activeBorderColor:"var(--text-color)"}},outlined:{primary:{color:"var(--primary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},secondary:{color:"var(--secondary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},success:{color:"var(--success-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},info:{color:"var(--info-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},warn:{color:"var(--warn-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},help:{color:"var(--help-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},danger:{color:"var(--error-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},contrast:{color:"var(--text-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"}},text:{primary:{color:"var(--primary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},secondary:{color:"var(--secondary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},success:{color:"var(--success-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},info:{color:"var(--info-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},warn:{color:"var(--warn-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},help:{color:"var(--help-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},danger:{color:"var(--error-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},contrast:{color:"var(--text-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"}}}}},card:{root:{borderRadius:"var(--border-radius)"},title:{fontWeight:"700",fontSize:"var(--text-md)"},body:{padding:"var(--content-gutter)"},colorScheme:{light:{root:{background:"var(--bg-color)",shadow:vt("light")}},dark:{root:{background:"var(--surface-300-color)",shadow:vt("dark")}}}},checkbox:{root:{background:"var(--surface-200-color) !important",borderColor:"var(--muted-color) !important",borderRadius:"var(--border-radius) !important",checkedBackground:"var(--primary-color) !important",checkedHoverBackground:"var(--primary-color) !important",sm:{width:"1rem",height:"1rem"},lg:{width:"1.5rem",height:"1.5rem"}}},confirmpopup:{root:{borderColor:"var(--border-color)"},colorScheme:{light:{root:{background:"var(--bg-color)",shadow:vt("light")}},dark:{root:{background:"var(--surface-300-color)",shadow:vt("dark")}}}},datatable:{root:{borderColor:"var(--border-color) !important"},header:{borderColor:"var(--border-color) !important",padding:"0 0 var(--content-gutter) 0",sm:{padding:"0 0 var(--content-gutter-sm) 0"}},headerCell:{borderColor:"var(--border-color) !important",hoverColor:"var(--primary-color) !important",hoverBackground:"var(--primary-hover-color) !important"},bodyCell:{borderColor:"var(--border-color) !important"},footer:{borderColor:"var(--border-color) !important"},colorScheme:{light:{header:{background:"var(--bg-color)",color:"var(--text-color)"},headerCell:{background:"var(--bg-color)"},footerCell:{background:"var(--bg-color)"},row:{background:"var(--bg-color)",stripedBackground:"var(--surface-300-color)"}},dark:{header:{background:"var(--surface-300-color)",color:"var(--text-color)"},headerCell:{background:"var(--surface-300-color)"},footerCell:{background:"var(--surface-300-color)"},row:{stripedBackground:"var(--bg-color)",background:"var(--surface-300-color)"}}}},datepicker:{today:{background:"var(--primary-hover-color) !important",color:"var(--primary-color) !important"}},dialog:{root:{background:"var(--bg-color) !important",color:"var(--text-color) !important",borderColor:"var(--border-color) !important",borderRadius:"var(--border-radius) !important",shadow:"none !important"},title:{fontSize:"var(--font-size) !important",fontWeight:"700 !important"},header:{padding:"0.75rem 0.75rem 0 1rem !important",gap:"var(--content-gutter-sm) !important"},content:{padding:"var(--content-gutter) !important"},footer:{padding:"0.75rem 0.75rem 0 1rem !important",gap:"var(--content-gutter-sm) !important"}},inputtext:{root:{background:"var(--surface-100-color)",color:"var(--text-color)",borderColor:"var(--border-color) !important",borderRadius:"var(--border-radius) !important",shadow:"none !important",hoverBorderColor:"var(--primary-color) !important",placeholderColor:"var(--muted-color)"}},menu:{item:{focusBackground:"var(--surface-400-color)",focusColor:"var(--text-color)"},colorScheme:{light:{root:{background:"var(--bg-color)",shadow:vt("light")}},dark:{root:{background:"var(--surface-200-color)",shadow:vt("dark")}}}},popover:{root:{background:"var(--bg-color)",color:"var(--text-color)",borderColor:"var(--border-color)",borderRadius:"var(--border-radius)",shadow:"none",gutter:"8px",arrowOffset:"0.75rem"},content:{padding:"0"}},select:{root:{background:"var(--bg-color)",color:"var(--text-color)",hoverBorderColor:"var(--primary-color)",placeholderColor:"var(--muted-color)",disabledColor:"var(--disabled-color)"},option:{focusBackground:"var(--surface-200-color)",focusColor:"var(--primary-color)",selectedFocusColor:"var(--bg-color)",selectedFocusBackground:"var(--primary-color)"},overlay:{borderColor:"var(--border-color)"},dropdown:{color:"var(--primary-color)"},colorScheme:{light:{overlay:{background:"var(--bg-color)"}},dark:{overlay:{background:"var(--surface-100-color)"}}}},skeleton:{root:{background:"var(--surface-700-color)",animationBackground:"var(--surface-100-color)"}},textarea:{root:{background:"var(--surface-100-color)",hoverBorderColor:"var(--primary-color)",placeholderColor:"var(--muted-color)"}},toast:{root:{width:"min(90vw, 320px)"},colorScheme:{light:{contrast:{background:"var(--text-color)",color:"var(--bg-color)",detailColor:"var(--bg-color)"}},dark:{contrast:{background:"var(--bg-color)",color:"var(--text-color)",detailColor:"var(--text-color)"}}},info:{background:"var(--info-color)",color:"var(--info-hover-color)",detailColor:"var(--text-color)"},success:{background:"var(--success-color)",color:"var(--success-hover-color)",detailColor:"var(--text-color)"},warn:{background:"var(--warn-color)",color:"var(--warn-hover-color)",detailColor:"var(--text-color)"},error:{background:"var(--error-color)",color:"var(--error-hover-color)",detailColor:"var(--text-color)"},secondary:{background:"var(--secondary-color)",color:"var(--secondary-hover-color)",detailColor:"var(--text-color)"}},toggleswitch:{colorScheme:{light:{root:{background:"var(--border-color)",hoverBackground:"var(--border-color)",hoverBorderColor:"transparent",checkedBackground:"var(--primary-color)",checkedHoverBackground:"var(--primary-color)",checkedBorderColor:"transparent"}},dark:{root:{background:"var(--border-color)",hoverBackground:"var(--border-color)",hoverBorderColor:"transparent",checkedBackground:"var(--primary-color)",checkedHoverBackground:"var(--primary-color)",checkedBorderColor:"transparent"}}}}}};class qe{static get IsTouch(){return window.matchMedia("(pointer: coarse)").matches}static GetMaxZindex(e=[]){let n="body > *:not(script):not(style)";for(const i of e)n+=`, ${i}`;const o=Math.max(...Array.from(document.querySelectorAll(n)).map(i=>{const a=getComputedStyle(i).zIndex;return+a==+a?+a: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,i=e.toString();return n.replace(/#/g,()=>i[o++]||"")}static MaskCpf(e){return qe.Mask(e.padStart(11,"0"),"###.###.###-##")}static MaskCnpj(e){return qe.Mask(e.padStart(14,"0"),"##.###.###/####-##")}static MaskCcm(e){return qe.Mask(e.padStart(8,"0"),"#.###.###-#")}static async DelayAsync(e=400){return new Promise(n=>setTimeout(n,e))}static FormatNumber(e,n=0,o="pt-BR"){return e.toLocaleString(o,{minimumFractionDigits:n,maximumFractionDigits:n})}static FormatCurrency(e,n="pt-BR"){return e.toLocaleString(n,{style:"currency",currency:"BRL"})}static HasKey(e,n){return e&&n in e}static GetFilenameFromContentDisposition(e){if(!e)return null;const n=e.match(/filename\*\s*=\s*(?:UTF-8'')?([^;\r\n]+)/i);if(n)try{return decodeURIComponent(n[1].trim().replace(/^"|"$/g,""))}catch{return n[1].trim().replace(/^"|"$/g,"")}const o=e.match(/filename\s*=\s*("(.*?)"|([^;,\r\n]+))/i);return o?(o[2]||o[3]).trim().replace(/^"|"$/g,""):null}}class Lm{sub;username;name;email;roles;groups;userinfo;department;jobTitle;idp;constructor(e){this.userinfo=e,this.sub=e.sub,this.username=e.employeeID??e.cpf??"",this.name=e.name??"",this.email=e.email??null,this.roles=e.role??[],this.groups=e.group??[],this.department=this.SetDepartment(),this.jobTitle=this.SetJobTitle(),this.idp=this.SetIdp()}get firstname(){return this.name.split(" ")[0]??this.name}get maskedUsername(){return this.username?this.username.length<=11?qe.MaskCpf(this.username):this.username.length===14?qe.MaskCnpj(this.username):this.username:""}IsInRole(e){return this.roles.includes(e)}IsInGroup(e){return this.groups.includes(e)}SetIdp(){const e=this.userinfo?.identity_provider??null;return e?.toLocaleLowerCase()==="gov.br"?"govbr":e?.toLocaleLowerCase().startsWith("senhaweb")?"senhaweb":null}SetDepartment(){return this.userinfo?.department??null}SetJobTitle(){return this.userinfo?.jobTitle??null}}function Nm(){const t=r.ref("development");function e(s){t.value=s.toLocaleLowerCase()}const n=r.computed(()=>t.value==="development"),o=r.computed(()=>t.value==="pack"),i=r.computed(()=>t.value==="hml"),a=r.computed(()=>t.value==="production"),c=r.ref(null);function l(){c.value=null}return{environment:t,SetEnvironment:e,isDev:n,isPack:o,isHml:i,isProd:a,user:c,$reset:l}}const Mm=t=>{const e=new Set;function n(o){const{name:i,children:a}=o;if(i){if(e.has(i))throw new Error(["Erro na validação das rotas!",`Nome de rota duplicado: ${i}`].join(`
424
- `));e.add(i)}if(a&&Array.isArray(a))for(const c of a)n(c)}for(const o of t)n(o)};Promise.prototype.TrackStateWith||(Promise.prototype.TrackStateWith=async function(t){t.value=!0;try{return await this}finally{t.value=!1}});class Dm{current=null;resolve=null;async showAsync(e,n){const o={message:e,life:n??5e3};return this.Render(o)}async Render(e){return new Promise(n=>{this.resolve=n,this.current&&(this.current.style.opacity="0",setTimeout((function(){this.parentElement&&this.parentElement.removeChild(this)}).bind(this.current),500));const o=document.createElement("div"),i=document.createElement("div"),a=document.createElement("div");i.className="content",a.className="progress",i.appendChild(a),o.className="sf-toast",o.style.zIndex=qe.GetMaxZindex().toString(),o.appendChild(i),this.current=o,document.body.appendChild(o),o.addEventListener("transitionend",s=>{const u=s.propertyName==="opacity",m=s.target.classList.contains("visible");u&&!m&&(document.body.removeChild(o),this.current===o&&(this.current=null))});const c=[];Array.isArray(e.message)?c.push(...e.message):c.push(e.message);for(const s of c){const u=document.createElement("p");u.innerHTML=Oo.sanitize(s),i.appendChild(u)}const l=document.createElement("i");if(l.classList.add("icon","material-symbols-outlined"),l.innerText="close",l.addEventListener("click",()=>{this.Close()}),i.appendChild(l),getComputedStyle(o).bottom,getComputedStyle(o).top,o.classList.add("visible"),e.life){a.style.transitionDuration=`${e.life-300}ms`,i.classList.add("animate"),setTimeout(()=>{this.current===o&&this.Close()},e.life);return}})}Close(){this.resolve&&this.resolve(),this.current&&this.current.classList.remove("visible")}}const Rm=new Dm,Vm=()=>Rm;function Xi(){document.documentElement.removeAttribute("data-app-message"),document.documentElement.classList.add("app-mounted")}function Mo(t){typeof t=="string"&&document.documentElement.setAttribute("data-app-message",t),document.documentElement.classList.remove("app-mounted")}async function jm(){return await fetch(window.location.origin+"/api/get-environment").then(async t=>{if(!t.ok)throw Mo("Ocorreu um erro ao inicializar a aplicação."),new Error(`Erro ao obter ambiente: ${t.status} ${t.statusText}`);return await t.text()})}x.AppError=Lo,x.AppResult=Ki,x.BaseAppState=Nm,x.EnsureUniqueRouteNames=Mm,x.GetEnvironmentAsync=jm,x.RemovePreloader=Xi,x.RestorePreloader=Mo,x.SfButton=Un,x.SfContent=Nl,x.SfDrawer=Go,x.SfHelpButton=Ll,x.SfIcon=Ie,x.SfLoadingCircle=Wo,x.SfLogin=Yl,x.SfMain=$m,x.SfMessage=Ia,x.SfNavMenu=Ol,x.SfPageTitle=Bm,x.SfTabNavigation=Sa,x.SfTooltip=zo,x.UseAlert=Gi,x.UseAlertService=pm,x.UseAppInject=jt,x.UseConfirm=Ui,x.UseConfirmService=sm,x.UseSimpleToast=Vm,x.User=Lm,x.Utilities=qe,x._logger=fm,x.configSF=mm,x.globalErrorHandler=hm,x.themePreset=Om,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});
422
+ 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 dd(){const t=B.domCache.get(this),e=B.innerParams.get(this);if(!e){ki(this);return}t.popup&&A.swalCloseEventFinishedCallback&&(A.swalCloseEventFinishedCallback(),delete A.swalCloseEventFinishedCallback),A.deferDisposalTimer&&(clearTimeout(A.deferDisposalTimer),delete A.deferDisposalTimer),typeof e.didDestroy=="function"&&e.didDestroy(),md(this)}const md=t=>{ki(t),delete t.params,delete A.keydownHandler,delete A.keydownTarget,delete A.currentInstance},ki=t=>{t.isAwaitingPromise()?(wo(B,t),B.awaitingPromise.set(t,!0)):(wo(Zt,t),wo(B,t))},wo=(t,e)=>{for(const n in t)t[n].delete(e)},Si=Object.freeze(Object.defineProperty({__proto__:null,_destroy:dd,close:Pn,closeModal:Pn,closePopup:Pn,closeToast:Pn,disableButtons:od,disableInput:id,disableLoading:pi,enableButtons:nd,enableInput:rd,getInput:Ru,getProgressSteps:ld,handleAwaitingPromise:Jt,hideLoading:pi,isAwaitingPromise:Xu,rejectPromise:Ju,resetValidationMessage:sd,showValidationMessage:ad,update:cd},Symbol.toStringTag,{value:"Module"})),fd=t=>{const e=B.innerParams.get(t);t.disableButtons(),e.input?_i(t,"confirm"):So(t,!0)},pd=t=>{const e=B.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?_i(t,"deny"):ko(t,!1)},hd=(t,e)=>{t.disableButtons(),e(ht.cancel)},_i=(t,e)=>{const n=B.innerParams.get(t);if(!n.input)return ot(`The "input" parameter is needed to be set when using returnInputValueOn${ao(e)}`);const o=xu(t,n);n.inputValidator?gd(t,o,e):t.getInput().checkValidity()?e==="deny"?ko(t,o):So(t,o):(t.enableButtons(),t.showValidationMessage(n.validationMessage))},gd=(t,e,n)=>{const o=B.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>Ut(o.inputValidator(e,o.validationMessage))).then(a=>{t.enableButtons(),t.enableInput(),a?t.showValidationMessage(a):n==="deny"?ko(t,e):So(t,e)})},ko=(t,e)=>{const n=B.innerParams.get(t||void 0);n.showLoaderOnDeny&&gt(Ge()),n.preDeny?(B.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>Ut(n.preDeny(e,n.validationMessage))).then(i=>{i===!1?(t.hideLoading(),Jt(t)):t.closePopup({isDenied:!0,value:typeof i>"u"?e:i})}).catch(i=>Ti(t||void 0,i))):t.closePopup({isDenied:!0,value:e})},Ei=(t,e)=>{t.closePopup({isConfirmed:!0,value:e})},Ti=(t,e)=>{t.rejectPromise(e)},So=(t,e)=>{const n=B.innerParams.get(t||void 0);n.showLoaderOnConfirm&&gt(),n.preConfirm?(t.resetValidationMessage(),B.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>Ut(n.preConfirm(e,n.validationMessage))).then(i=>{ge(Sn())||i===!1?(t.hideLoading(),Jt(t)):Ei(t,typeof i>"u"?e:i)}).catch(i=>Ti(t||void 0,i))):Ei(t,e)},yd=(t,e,n)=>{B.innerParams.get(t).toast?vd(t,e,n):(Cd(e),wd(e),kd(t,e,n))},vd=(t,e,n)=>{e.popup.onclick=()=>{const o=B.innerParams.get(t);o&&(bd(o)||o.timer||o.input)||n(ht.close)}},bd=t=>t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton;let In=!1;const Cd=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(In=!0)}}},wd=t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(In=!0)}}},kd=(t,e,n)=>{e.container.onclick=o=>{const i=B.innerParams.get(t);if(In){In=!1;return}o.target===e.container&&wn(i.allowOutsideClick)&&n(ht.backdrop)}},Sd=t=>typeof t=="object"&&t.jquery,Pi=t=>t instanceof Element||Sd(t),_d=t=>{const e={};return typeof t[0]=="object"&&!Pi(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,o)=>{const i=t[o];typeof i=="string"||Pi(i)?e[n]=i:i!==void 0&&ot(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof i}`)}),e};function Ed(...t){const e=this;return new e(...t)}function Td(t){class e extends this{_main(o,i){return super._main(o,Object.assign({},t,i))}}return e}const Pd=()=>A.timeout&&A.timeout.getTimerLeft(),Ii=()=>{if(A.timeout)return pc(),A.timeout.stop()},Ai=()=>{if(A.timeout){const t=A.timeout.start();return ho(t),t}},Id=()=>{const t=A.timeout;return t&&(t.running?Ii():Ai())},Ad=t=>{if(A.timeout){const e=A.timeout.increase(t);return ho(e,!0),e}},xd=()=>A.timeout&&A.timeout.isRunning();let xi=!1;const _o={};function $d(t="data-swal-template"){_o[t]=this,xi||(document.body.addEventListener("click",Bd),xi=!0)}const Bd=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in _o){const o=e.getAttribute(n);if(o){_o[n].fire({template:o});return}}},Od=Object.freeze(Object.defineProperty({__proto__:null,argsToParams:_d,bindClickHandler:$d,clickCancel:Hu,clickConfirm:hi,clickDeny:ju,enableLoading:gt,fire:Ed,getActions:Gt,getCancelButton:rt,getCloseButton:uo,getConfirmButton:Ee,getContainer:J,getDenyButton:Ge,getFocusableElements:mo,getFooter:Xr,getHtmlContainer:kn,getIcon:Wt,getImage:qr,getInputLabel:cc,getLoader:ft,getPopup:D,getTimerLeft:Pd,getTimerProgressBar:_n,getTitle:Gr,getValidationMessage:Sn,increaseTimer:Ad,isDeprecatedParameter:co,isLoading:dc,isTimerRunning:xd,isUpdatableParameter:Kr,isValidParameter:zr,isVisible:Vu,mixin:Td,resumeTimer:Ai,showLoading:gt,stopTimer:Ii,toggleTimer:Id},Symbol.toStringTag,{value:"Module"}));let Eo;class yt{constructor(...e){if(typeof window>"u")return;Eo=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);B.promise.set(this,o)}_main(e,n={}){sc(Object.assign({},n,e)),A.currentInstance&&(A.currentInstance._destroy(),fo()&&li()),A.currentInstance=this;const o=Nd(e,n);fu(o),Object.freeze(o),A.timeout&&(A.timeout.stop(),delete A.timeout),clearTimeout(A.restoreFocusTimeout);const i=Md(this);return si(this,o),B.innerParams.set(this,o),Ld(this,i,o)}then(e){return B.promise.get(this).then(e)}finally(e){return B.promise.get(this).finally(e)}}const Ld=(t,e,n)=>new Promise((o,i)=>{const a=c=>{t.closePopup({isDismissed:!0,dismiss:c})};Zt.swalPromiseResolve.set(t,o),Zt.swalPromiseReject.set(t,i),e.confirmButton.onclick=()=>fd(t),e.denyButton.onclick=()=>pd(t),e.cancelButton.onclick=()=>hd(t,a),e.closeButton.onclick=()=>a(ht.close),yd(t,e,a),Fu(t,A,n,a),Au(t,n),_u(n),Dd(A,n,a),Rd(e,n),setTimeout(()=>{e.container.scrollTop=0})}),Nd=(t,e)=>{const n=ou(t),o=Object.assign({},mt,e,n,t);return o.showClass=Object.assign({},mt.showClass,o.showClass),o.hideClass=Object.assign({},mt.hideClass,o.hideClass),o},Md=t=>{const e={popup:D(),container:J(),actions:Gt(),confirmButton:Ee(),denyButton:Ge(),cancelButton:rt(),loader:ft(),closeButton:uo(),validationMessage:Sn(),progressSteps:Yr()};return B.domCache.set(t,e),e},Dd=(t,e,n)=>{const o=_n();ee(o),e.timer&&(t.timeout=new pu(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(Y(o),ve(o,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&ho(e.timer)})))},Rd=(t,e)=>{if(!e.toast){if(!wn(e.allowEnterKey))return jd();Vd(t,e)||Co(e,-1,1)}},Vd=(t,e)=>e.focusDeny&&ge(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&ge(t.cancelButton)?(t.cancelButton.focus(),!0):e.focusConfirm&&ge(t.confirmButton)?(t.confirmButton.focus(),!0):!1,jd=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Object.assign(yt.prototype,Si),Object.assign(yt,Od),Object.keys(Si).forEach(t=>{yt[t]=function(...e){if(Eo)return Eo[t](...e)}}),yt.DismissReason=ht,yt.version="11.4.8";const st=yt;st.default=st;/*! @license DOMPurify 3.2.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.2.6/LICENSE */const{entries:$i,setPrototypeOf:Bi,isFrozen:Hd,getPrototypeOf:Fd,getOwnPropertyDescriptor:Ud}=Object;let{freeze:ae,seal:be,create:Oi}=Object,{apply:To,construct:Po}=typeof Reflect<"u"&&Reflect;ae||(ae=function(e){return e}),be||(be=function(e){return e}),To||(To=function(e,n,o){return e.apply(n,o)}),Po||(Po=function(e,n){return new e(...n)});const An=le(Array.prototype.forEach),zd=le(Array.prototype.lastIndexOf),Li=le(Array.prototype.pop),Qt=le(Array.prototype.push),Kd=le(Array.prototype.splice),xn=le(String.prototype.toLowerCase),Io=le(String.prototype.toString),Ni=le(String.prototype.match),en=le(String.prototype.replace),Wd=le(String.prototype.indexOf),Gd=le(String.prototype.trim),Te=le(Object.prototype.hasOwnProperty),se=le(RegExp.prototype.test),tn=qd(TypeError);function le(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return To(t,e,o)}}function qd(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return Po(t,n)}}function O(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:xn;Bi&&Bi(t,null);let o=e.length;for(;o--;){let i=e[o];if(typeof i=="string"){const a=n(i);a!==i&&(Hd(e)||(e[o]=a),i=a)}t[i]=!0}return t}function Yd(t){for(let e=0;e<t.length;e++)Te(t,e)||(t[e]=null);return t}function De(t){const e=Oi(null);for(const[n,o]of $i(t))Te(t,n)&&(Array.isArray(o)?e[n]=Yd(o):o&&typeof o=="object"&&o.constructor===Object?e[n]=De(o):e[n]=o);return e}function nn(t,e){for(;t!==null;){const o=Ud(t,e);if(o){if(o.get)return le(o.get);if(typeof o.value=="function")return le(o.value)}t=Fd(t)}function n(){return null}return n}const Mi=ae(["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"]),Ao=ae(["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"]),xo=ae(["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"]),Xd=ae(["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"]),$o=ae(["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"]),Zd=ae(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Di=ae(["#text"]),Ri=ae(["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"]),Bo=ae(["accent-height","accumulate","additive","alignment-baseline","amplitude","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","exponent","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","intercept","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","slope","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","tablevalues","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"]),Vi=ae(["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"]),$n=ae(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Jd=be(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Qd=be(/<%[\w\W]*|[\w\W]*%>/gm),em=be(/\$\{[\w\W]*/gm),tm=be(/^data-[\-\w.\u00B7-\uFFFF]+$/),nm=be(/^aria-[\-\w]+$/),ji=be(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),om=be(/^(?:\w+script|data):/i),rm=be(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Hi=be(/^html$/i),im=be(/^[a-z][.\w]*(-[.\w]+)+$/i);var Fi=Object.freeze({__proto__:null,ARIA_ATTR:nm,ATTR_WHITESPACE:rm,CUSTOM_ELEMENT:im,DATA_ATTR:tm,DOCTYPE_NAME:Hi,ERB_EXPR:Qd,IS_ALLOWED_URI:ji,IS_SCRIPT_OR_DATA:om,MUSTACHE_EXPR:Jd,TMPLIT_EXPR:em});const on={element:1,text:3,progressingInstruction:7,comment:8,document:9},am=function(){return typeof window>"u"?null:window},sm=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let o=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(o=n.getAttribute(i));const a="dompurify"+(o?"#"+o:"");try{return e.createPolicy(a,{createHTML(c){return c},createScriptURL(c){return c}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},Ui=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function zi(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:am();const e=E=>zi(E);if(e.version="3.2.6",e.removed=[],!t||!t.document||t.document.nodeType!==on.document||!t.Element)return e.isSupported=!1,e;let{document:n}=t;const o=n,i=o.currentScript,{DocumentFragment:a,HTMLTemplateElement:c,Node:l,Element:s,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:f,DOMParser:p,trustedTypes:h}=t,C=s.prototype,w=nn(C,"cloneNode"),k=nn(C,"remove"),y=nn(C,"nextSibling"),T=nn(C,"childNodes"),P=nn(C,"parentNode");if(typeof c=="function"){const E=n.createElement("template");E.content&&E.content.ownerDocument&&(n=E.content.ownerDocument)}let v,_="";const{implementation:z,createNodeIterator:X,createDocumentFragment:Ce,getElementsByTagName:te}=n,{importNode:we}=o;let I=Ui();e.isSupported=typeof $i=="function"&&typeof P=="function"&&z&&z.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:V,ERB_EXPR:ne,TMPLIT_EXPR:ce,DATA_ATTR:Pe,ARIA_ATTR:Xe,IS_SCRIPT_OR_DATA:Re,ATTR_WHITESPACE:Ve,CUSTOM_ELEMENT:Ze}=Fi;let{IS_ALLOWED_URI:ke}=Fi,R=null;const Be=O({},[...Mi,...Ao,...xo,...$o,...Di]);let K=null;const je=O({},[...Ri,...Bo,...Vi,...$n]);let H=Object.seal(Oi(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}})),Je=null,rn=null,Ln=!0,an=!0,Nn=!1,Mn=!0,Qe=!1,bt=!0,He=!1,sn=!1,ln=!1,et=!1,Ct=!1,wt=!1,Dn=!0,Rn=!1;const Do="user-content-";let cn=!0,lt=!1,kt={},St=null;const ea=O({},["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 ta=null;const na=O({},["audio","video","img","source","image","track"]);let Ro=null;const oa=O({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Vn="http://www.w3.org/1998/Math/MathML",jn="http://www.w3.org/2000/svg",Fe="http://www.w3.org/1999/xhtml";let _t=Fe,Vo=!1,jo=null;const Fm=O({},[Vn,jn,Fe],Io);let Hn=O({},["mi","mo","mn","ms","mtext"]),Fn=O({},["annotation-xml"]);const Um=O({},["title","style","font","a","script"]);let un=null;const zm=["application/xhtml+xml","text/html"],Km="text/html";let G=null,Et=null;const Wm=n.createElement("form"),ra=function(m){return m instanceof RegExp||m instanceof Function},Ho=function(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Et&&Et===m)){if((!m||typeof m!="object")&&(m={}),m=De(m),un=zm.indexOf(m.PARSER_MEDIA_TYPE)===-1?Km:m.PARSER_MEDIA_TYPE,G=un==="application/xhtml+xml"?Io:xn,R=Te(m,"ALLOWED_TAGS")?O({},m.ALLOWED_TAGS,G):Be,K=Te(m,"ALLOWED_ATTR")?O({},m.ALLOWED_ATTR,G):je,jo=Te(m,"ALLOWED_NAMESPACES")?O({},m.ALLOWED_NAMESPACES,Io):Fm,Ro=Te(m,"ADD_URI_SAFE_ATTR")?O(De(oa),m.ADD_URI_SAFE_ATTR,G):oa,ta=Te(m,"ADD_DATA_URI_TAGS")?O(De(na),m.ADD_DATA_URI_TAGS,G):na,St=Te(m,"FORBID_CONTENTS")?O({},m.FORBID_CONTENTS,G):ea,Je=Te(m,"FORBID_TAGS")?O({},m.FORBID_TAGS,G):De({}),rn=Te(m,"FORBID_ATTR")?O({},m.FORBID_ATTR,G):De({}),kt=Te(m,"USE_PROFILES")?m.USE_PROFILES:!1,Ln=m.ALLOW_ARIA_ATTR!==!1,an=m.ALLOW_DATA_ATTR!==!1,Nn=m.ALLOW_UNKNOWN_PROTOCOLS||!1,Mn=m.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Qe=m.SAFE_FOR_TEMPLATES||!1,bt=m.SAFE_FOR_XML!==!1,He=m.WHOLE_DOCUMENT||!1,et=m.RETURN_DOM||!1,Ct=m.RETURN_DOM_FRAGMENT||!1,wt=m.RETURN_TRUSTED_TYPE||!1,ln=m.FORCE_BODY||!1,Dn=m.SANITIZE_DOM!==!1,Rn=m.SANITIZE_NAMED_PROPS||!1,cn=m.KEEP_CONTENT!==!1,lt=m.IN_PLACE||!1,ke=m.ALLOWED_URI_REGEXP||ji,_t=m.NAMESPACE||Fe,Hn=m.MATHML_TEXT_INTEGRATION_POINTS||Hn,Fn=m.HTML_INTEGRATION_POINTS||Fn,H=m.CUSTOM_ELEMENT_HANDLING||{},m.CUSTOM_ELEMENT_HANDLING&&ra(m.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=m.CUSTOM_ELEMENT_HANDLING.tagNameCheck),m.CUSTOM_ELEMENT_HANDLING&&ra(m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),m.CUSTOM_ELEMENT_HANDLING&&typeof m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(H.allowCustomizedBuiltInElements=m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Qe&&(an=!1),Ct&&(et=!0),kt&&(R=O({},Di),K=[],kt.html===!0&&(O(R,Mi),O(K,Ri)),kt.svg===!0&&(O(R,Ao),O(K,Bo),O(K,$n)),kt.svgFilters===!0&&(O(R,xo),O(K,Bo),O(K,$n)),kt.mathMl===!0&&(O(R,$o),O(K,Vi),O(K,$n))),m.ADD_TAGS&&(R===Be&&(R=De(R)),O(R,m.ADD_TAGS,G)),m.ADD_ATTR&&(K===je&&(K=De(K)),O(K,m.ADD_ATTR,G)),m.ADD_URI_SAFE_ATTR&&O(Ro,m.ADD_URI_SAFE_ATTR,G),m.FORBID_CONTENTS&&(St===ea&&(St=De(St)),O(St,m.FORBID_CONTENTS,G)),cn&&(R["#text"]=!0),He&&O(R,["html","head","body"]),R.table&&(O(R,["tbody"]),delete Je.tbody),m.TRUSTED_TYPES_POLICY){if(typeof m.TRUSTED_TYPES_POLICY.createHTML!="function")throw tn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof m.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw tn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=m.TRUSTED_TYPES_POLICY,_=v.createHTML("")}else v===void 0&&(v=sm(h,i)),v!==null&&typeof _=="string"&&(_=v.createHTML(""));ae&&ae(m),Et=m}},ia=O({},[...Ao,...xo,...Xd]),aa=O({},[...$o,...Zd]),Gm=function(m){let b=P(m);(!b||!b.tagName)&&(b={namespaceURI:_t,tagName:"template"});const S=xn(m.tagName),F=xn(b.tagName);return jo[m.namespaceURI]?m.namespaceURI===jn?b.namespaceURI===Fe?S==="svg":b.namespaceURI===Vn?S==="svg"&&(F==="annotation-xml"||Hn[F]):!!ia[S]:m.namespaceURI===Vn?b.namespaceURI===Fe?S==="math":b.namespaceURI===jn?S==="math"&&Fn[F]:!!aa[S]:m.namespaceURI===Fe?b.namespaceURI===jn&&!Fn[F]||b.namespaceURI===Vn&&!Hn[F]?!1:!aa[S]&&(Um[S]||!ia[S]):!!(un==="application/xhtml+xml"&&jo[m.namespaceURI]):!1},Oe=function(m){Qt(e.removed,{element:m});try{P(m).removeChild(m)}catch{k(m)}},Tt=function(m,b){try{Qt(e.removed,{attribute:b.getAttributeNode(m),from:b})}catch{Qt(e.removed,{attribute:null,from:b})}if(b.removeAttribute(m),m==="is")if(et||Ct)try{Oe(b)}catch{}else try{b.setAttribute(m,"")}catch{}},sa=function(m){let b=null,S=null;if(ln)m="<remove></remove>"+m;else{const W=Ni(m,/^[\r\n\t ]+/);S=W&&W[0]}un==="application/xhtml+xml"&&_t===Fe&&(m='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+m+"</body></html>");const F=v?v.createHTML(m):m;if(_t===Fe)try{b=new p().parseFromString(F,un)}catch{}if(!b||!b.documentElement){b=z.createDocument(_t,"template",null);try{b.documentElement.innerHTML=Vo?_:F}catch{}}const oe=b.body||b.documentElement;return m&&S&&oe.insertBefore(n.createTextNode(S),oe.childNodes[0]||null),_t===Fe?te.call(b,He?"html":"body")[0]:He?b.documentElement:oe},la=function(m){return X.call(m.ownerDocument||m,m,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Fo=function(m){return m instanceof f&&(typeof m.nodeName!="string"||typeof m.textContent!="string"||typeof m.removeChild!="function"||!(m.attributes instanceof d)||typeof m.removeAttribute!="function"||typeof m.setAttribute!="function"||typeof m.namespaceURI!="string"||typeof m.insertBefore!="function"||typeof m.hasChildNodes!="function")},ca=function(m){return typeof l=="function"&&m instanceof l};function Ue(E,m,b){An(E,S=>{S.call(e,m,b,Et)})}const ua=function(m){let b=null;if(Ue(I.beforeSanitizeElements,m,null),Fo(m))return Oe(m),!0;const S=G(m.nodeName);if(Ue(I.uponSanitizeElement,m,{tagName:S,allowedTags:R}),bt&&m.hasChildNodes()&&!ca(m.firstElementChild)&&se(/<[/\w!]/g,m.innerHTML)&&se(/<[/\w!]/g,m.textContent)||m.nodeType===on.progressingInstruction||bt&&m.nodeType===on.comment&&se(/<[/\w]/g,m.data))return Oe(m),!0;if(!R[S]||Je[S]){if(!Je[S]&&ma(S)&&(H.tagNameCheck instanceof RegExp&&se(H.tagNameCheck,S)||H.tagNameCheck instanceof Function&&H.tagNameCheck(S)))return!1;if(cn&&!St[S]){const F=P(m)||m.parentNode,oe=T(m)||m.childNodes;if(oe&&F){const W=oe.length;for(let fe=W-1;fe>=0;--fe){const ze=w(oe[fe],!0);ze.__removalCount=(m.__removalCount||0)+1,F.insertBefore(ze,y(m))}}}return Oe(m),!0}return m instanceof s&&!Gm(m)||(S==="noscript"||S==="noembed"||S==="noframes")&&se(/<\/no(script|embed|frames)/i,m.innerHTML)?(Oe(m),!0):(Qe&&m.nodeType===on.text&&(b=m.textContent,An([V,ne,ce],F=>{b=en(b,F," ")}),m.textContent!==b&&(Qt(e.removed,{element:m.cloneNode()}),m.textContent=b)),Ue(I.afterSanitizeElements,m,null),!1)},da=function(m,b,S){if(Dn&&(b==="id"||b==="name")&&(S in n||S in Wm))return!1;if(!(an&&!rn[b]&&se(Pe,b))){if(!(Ln&&se(Xe,b))){if(!K[b]||rn[b]){if(!(ma(m)&&(H.tagNameCheck instanceof RegExp&&se(H.tagNameCheck,m)||H.tagNameCheck instanceof Function&&H.tagNameCheck(m))&&(H.attributeNameCheck instanceof RegExp&&se(H.attributeNameCheck,b)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(b))||b==="is"&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&se(H.tagNameCheck,S)||H.tagNameCheck instanceof Function&&H.tagNameCheck(S))))return!1}else if(!Ro[b]){if(!se(ke,en(S,Ve,""))){if(!((b==="src"||b==="xlink:href"||b==="href")&&m!=="script"&&Wd(S,"data:")===0&&ta[m])){if(!(Nn&&!se(Re,en(S,Ve,"")))){if(S)return!1}}}}}}return!0},ma=function(m){return m!=="annotation-xml"&&Ni(m,Ze)},fa=function(m){Ue(I.beforeSanitizeAttributes,m,null);const{attributes:b}=m;if(!b||Fo(m))return;const S={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:K,forceKeepAttr:void 0};let F=b.length;for(;F--;){const oe=b[F],{name:W,namespaceURI:fe,value:ze}=oe,dn=G(W),Uo=ze;let re=W==="value"?Uo:Gd(Uo);if(S.attrName=dn,S.attrValue=re,S.keepAttr=!0,S.forceKeepAttr=void 0,Ue(I.uponSanitizeAttribute,m,S),re=S.attrValue,Rn&&(dn==="id"||dn==="name")&&(Tt(W,m),re=Do+re),bt&&se(/((--!?|])>)|<\/(style|title)/i,re)){Tt(W,m);continue}if(S.forceKeepAttr)continue;if(!S.keepAttr){Tt(W,m);continue}if(!Mn&&se(/\/>/i,re)){Tt(W,m);continue}Qe&&An([V,ne,ce],ha=>{re=en(re,ha," ")});const pa=G(m.nodeName);if(!da(pa,dn,re)){Tt(W,m);continue}if(v&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!fe)switch(h.getAttributeType(pa,dn)){case"TrustedHTML":{re=v.createHTML(re);break}case"TrustedScriptURL":{re=v.createScriptURL(re);break}}if(re!==Uo)try{fe?m.setAttributeNS(fe,W,re):m.setAttribute(W,re),Fo(m)?Oe(m):Li(e.removed)}catch{Tt(W,m)}}Ue(I.afterSanitizeAttributes,m,null)},qm=function E(m){let b=null;const S=la(m);for(Ue(I.beforeSanitizeShadowDOM,m,null);b=S.nextNode();)Ue(I.uponSanitizeShadowNode,b,null),ua(b),fa(b),b.content instanceof a&&E(b.content);Ue(I.afterSanitizeShadowDOM,m,null)};return e.sanitize=function(E){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=null,S=null,F=null,oe=null;if(Vo=!E,Vo&&(E="<!-->"),typeof E!="string"&&!ca(E))if(typeof E.toString=="function"){if(E=E.toString(),typeof E!="string")throw tn("dirty is not a string, aborting")}else throw tn("toString is not a function");if(!e.isSupported)return E;if(sn||Ho(m),e.removed=[],typeof E=="string"&&(lt=!1),lt){if(E.nodeName){const ze=G(E.nodeName);if(!R[ze]||Je[ze])throw tn("root node is forbidden and cannot be sanitized in-place")}}else if(E instanceof l)b=sa("<!---->"),S=b.ownerDocument.importNode(E,!0),S.nodeType===on.element&&S.nodeName==="BODY"||S.nodeName==="HTML"?b=S:b.appendChild(S);else{if(!et&&!Qe&&!He&&E.indexOf("<")===-1)return v&&wt?v.createHTML(E):E;if(b=sa(E),!b)return et?null:wt?_:""}b&&ln&&Oe(b.firstChild);const W=la(lt?E:b);for(;F=W.nextNode();)ua(F),fa(F),F.content instanceof a&&qm(F.content);if(lt)return E;if(et){if(Ct)for(oe=Ce.call(b.ownerDocument);b.firstChild;)oe.appendChild(b.firstChild);else oe=b;return(K.shadowroot||K.shadowrootmode)&&(oe=we.call(o,oe,!0)),oe}let fe=He?b.outerHTML:b.innerHTML;return He&&R["!doctype"]&&b.ownerDocument&&b.ownerDocument.doctype&&b.ownerDocument.doctype.name&&se(Hi,b.ownerDocument.doctype.name)&&(fe="<!DOCTYPE "+b.ownerDocument.doctype.name+`>
423
+ `+fe),Qe&&An([V,ne,ce],ze=>{fe=en(fe,ze," ")}),v&&wt?v.createHTML(fe):fe},e.setConfig=function(){let E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ho(E),sn=!0},e.clearConfig=function(){Et=null,sn=!1},e.isValidAttribute=function(E,m,b){Et||Ho({});const S=G(E),F=G(m);return da(S,F,b)},e.addHook=function(E,m){typeof m=="function"&&Qt(I[E],m)},e.removeHook=function(E,m){if(m!==void 0){const b=zd(I[E],m);return b===-1?void 0:Kd(I[E],b,1)[0]}return Li(I[E])},e.removeHooks=function(E){I[E]=[]},e.removeAllHooks=function(){I=Ui()},e}var Oo=zi();class Ki{get IsVisible(){return st.isVisible()}async CreateConfirmAsync(e){return new Promise(n=>{st.fire({showCancelButton:!0,allowEscapeKey:!1,allowOutsideClick:!1,icon:"question",title:e.title,html:Oo.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 Wi=()=>new Ki,lm=()=>new Ki;function cm(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Bn={exports:{}},um=Bn.exports,Gi;function dm(){return Gi||(Gi=1,function(t){(function(e,n){t.exports?t.exports=n():e.log=n()})(um,function(){var e=function(){},n="undefined",o=typeof window!==n&&typeof window.navigator!==n&&/Trident\/|MSIE /.test(window.navigator.userAgent),i=["trace","debug","info","warn","error"],a={},c=null;function l(w,k){var y=w[k];if(typeof y.bind=="function")return y.bind(w);try{return Function.prototype.bind.call(y,w)}catch{return function(){return Function.prototype.apply.apply(y,[w,arguments])}}}function s(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function u(w){return w==="debug"&&(w="log"),typeof console===n?!1:w==="trace"&&o?s:console[w]!==void 0?l(console,w):console.log!==void 0?l(console,"log"):e}function d(){for(var w=this.getLevel(),k=0;k<i.length;k++){var y=i[k];this[y]=k<w?e:this.methodFactory(y,w,this.name)}if(this.log=this.debug,typeof console===n&&w<this.levels.SILENT)return"No console available for logging"}function f(w){return function(){typeof console!==n&&(d.call(this),this[w].apply(this,arguments))}}function p(w,k,y){return u(w)||f.apply(this,arguments)}function h(w,k){var y=this,T,P,v,_="loglevel";typeof w=="string"?_+=":"+w:typeof w=="symbol"&&(_=void 0);function z(I){var V=(i[I]||"silent").toUpperCase();if(!(typeof window===n||!_)){try{window.localStorage[_]=V;return}catch{}try{window.document.cookie=encodeURIComponent(_)+"="+V+";"}catch{}}}function X(){var I;if(!(typeof window===n||!_)){try{I=window.localStorage[_]}catch{}if(typeof I===n)try{var V=window.document.cookie,ne=encodeURIComponent(_),ce=V.indexOf(ne+"=");ce!==-1&&(I=/^([^;]+)/.exec(V.slice(ce+ne.length+1))[1])}catch{}return y.levels[I]===void 0&&(I=void 0),I}}function Ce(){if(!(typeof window===n||!_)){try{window.localStorage.removeItem(_)}catch{}try{window.document.cookie=encodeURIComponent(_)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function te(I){var V=I;if(typeof V=="string"&&y.levels[V.toUpperCase()]!==void 0&&(V=y.levels[V.toUpperCase()]),typeof V=="number"&&V>=0&&V<=y.levels.SILENT)return V;throw new TypeError("log.setLevel() called with invalid level: "+I)}y.name=w,y.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},y.methodFactory=k||p,y.getLevel=function(){return v??P??T},y.setLevel=function(I,V){return v=te(I),V!==!1&&z(v),d.call(y)},y.setDefaultLevel=function(I){P=te(I),X()||y.setLevel(I,!1)},y.resetLevel=function(){v=null,Ce(),d.call(y)},y.enableAll=function(I){y.setLevel(y.levels.TRACE,I)},y.disableAll=function(I){y.setLevel(y.levels.SILENT,I)},y.rebuild=function(){if(c!==y&&(T=te(c.getLevel())),d.call(y),c===y)for(var I in a)a[I].rebuild()},T=te(c?c.getLevel():"WARN");var we=X();we!=null&&(v=te(we)),d.call(y)}c=new h,c.getLogger=function(k){if(typeof k!="symbol"&&typeof k!="string"||k==="")throw new TypeError("You must supply a name when creating a logger.");var y=a[k];return y||(y=a[k]=new h(k,c.methodFactory)),y};var C=typeof window!==n?window.log:void 0;return c.noConflict=function(){return typeof window!==n&&window.log===c&&(window.log=C),c},c.getLoggers=function(){return a},c.default=c,c})}(Bn)),Bn.exports}var mm=dm();const On=cm(mm),fm=(t,e={})=>{On.setDefaultLevel(e.enableLogging?On.levels.DEBUG:On.levels.SILENT);const n=240;document.documentElement.style.setProperty("--nav-menu-width",`${n}px`);const o=r.ref(!0),i=r.ref(0),a=r.ref(!1),c=r.ref(!1),l=r.ref(""),s=r.ref(null),u=r.ref(0);t.provide(Hr,{navMenuWidth:n,isMenuOpened:o,ToggleMenu:()=>{o.value=!o.value},OpenMenu:()=>{o.value=!0},CloseMenu:()=>{o.value=!1},scrollY:i,pageTitle:l,isDarkMode:a,ToggleTheme:()=>Ft.Toggle(),EnableDarkMode:()=>Ft.EnableDarkMode(),EnableLightMode:()=>Ft.EnableLightMode(),ClearStoredTheme:()=>Ft.ClearStoredTheme(),LogoutAsync:async()=>{const f=Wi(),{oidc:p}=Un.UseAuth();await f.ConfirmAsync("Deseja realmente sair da sua conta?")&&(Mo("Saindo..."),c.value=!0,await new Promise(C=>setTimeout(C,1e3)),p.logout({redirectUri:window.location.origin}).catch(()=>{c.value=!1,Qi()}))},Login:()=>{const{oidc:f}=Un.UseAuth();f.login()},isLoggingOut:c,mainRef:s,mainWidth:u,isMainXs:r.computed(()=>u.value<=384),isMainSm:r.computed(()=>u.value>384),isMainMd:r.computed(()=>u.value>768),isMainLg:r.computed(()=>u.value>992),isMainXl:r.computed(()=>u.value>1280),isMain2Xl:r.computed(()=>u.value>1536),isMain3Xl:r.computed(()=>u.value>1920)}),new MutationObserver(()=>{a.value=document.documentElement.classList.contains("dark")}).observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),document.addEventListener("scroll",()=>{i.value=document.documentElement.scrollTop}),Ft.SetInitialTheme()},pm=On;class Lo extends Error{constructor(e=[]){const n=Array.isArray(e)?e:[e];super(n[0]),this.errors=n}errors=[]}class qi{constructor(e=null){this._value=e,this._httpStatusCode=200}errors=[];_value=null;_httpStatusCode;get value(){return this._value}set value(e){this._value=e}get hasSuccess(){return this.isSuccessfulHttpStatusCode&&this.errors.length===0}get hasError(){return!this.hasSuccess}get httpStatusCode(){return this._httpStatusCode}set httpStatusCode(e){this._httpStatusCode=e}WithError(e){if(Array.isArray(e)){e.forEach(n=>this.WithError(n));return}this.errors.push(e),this.isSuccessfulHttpStatusCode||(this._httpStatusCode=400)}get isSuccessfulHttpStatusCode(){return this._httpStatusCode>=200&&this._httpStatusCode<300}[Symbol.toPrimitive](e){if(e==="throw")throw new Lo(this.errors)}get firstError(){return this.hasSuccess?null:this.errors[0]}}class Yi{get IsVisible(){return st.isVisible()}async CreateAlertAsync(e){let n="info",o,i;return typeof e=="string"||Array.isArray(e)?o=Array.isArray(e)?e.join("<br />"):e:(n=e.icon??"info",i=e.title??"",o=Array.isArray(e.text)?e.text.join("<br />"):e.text),new Promise(a=>{st.fire({allowEscapeKey:!1,allowOutsideClick:!1,icon:n,title:i,html:`<div style="max-height: 50vh; overflow: auto">${Oo.sanitize(o)}</div>`}).then(()=>a(!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"})}}const Xi=()=>new Yi,hm=()=>new Yi;window.addEventListener("error",function(t){return No(t.error)||console.error(t.error||t.message),t.preventDefault(),!1}),window.addEventListener("unhandledrejection",function(t){return No(t.reason)||console.error("Unhandled Rejection",t.reason),t.preventDefault(),!1});const gm=t=>{t.config.errorHandler=(e,n,o)=>{No(e)||console.error("Vue Global Error Handler: ",{err:e,vm:n,info:o})}},No=t=>{if(!t)return!0;try{if(t.httpStatusCode===401)return!0}catch{}return t instanceof Lo||t instanceof qi?(Xi().AlertErrorAsync(t.errors),!0):!1},ym={class:"font-percentage"},Zi="--font-size-increment",vm="tamanho-fonte",bm=Le(r.defineComponent({__name:"FontSize",setup(t){const e=r.ref(!1),n=r.ref(0),o=()=>{n.value=zn(),e.value=!0},i=()=>{e.value=!1},a=()=>document.documentElement,c=()=>parseInt(getComputedStyle(a()).getPropertyValue(Zi)||"1"),l=p=>{p<.5||p>1.6||(a().style.setProperty(Zi,p.toString()),f.value=p)},s=()=>{l(f.value+.1)},u=()=>{l(f.value-.1)},d=()=>{l(1)},f=r.ref(1);return r.onBeforeMount(()=>{localStorage.removeItem(vm)}),r.onMounted(()=>{f.value=c()}),(p,h)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(Ie,{button:!0,size:"sm",icon:"text_increase",tooltip:"Tamanho da fonte",onClick:o}),e.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createElementVNode("div",{class:r.normalizeClass(["border","fadein","font-size-wrapper"]),style:r.normalizeStyle({zIndex:n.value+1})},[r.createElementVNode("div",{class:"icon",onClick:u}),r.createElementVNode("span",ym,r.toDisplayString(f.value.toLocaleString("pt-br",{style:"percent",maximumFractionDigits:0})),1),r.createElementVNode("div",{class:"icon add",onClick:s}),r.createElementVNode("span",{class:"redefinir",onClick:d}," Redefinir ")],4),r.createElementVNode("div",{class:"font-size-mask",style:r.normalizeStyle({zIndex:n.value}),onClick:i},null,4)],64)):r.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-d17f4a5f"]]),Cm=r.defineComponent({__name:"ScrollToTop",setup(t){const{scrollY:e}=Ht(),n=r.computed(()=>e.value>800);function o(){document.documentElement.scrollTo(0,0)}return(i,a)=>(r.openBlock(),r.createElementBlock("button",{class:r.normalizeClass(["sf-scrollToTop",{"sf-scrollToTop-visible":n.value}]),onClick:o},null,2))}}),wm={class:"nav-menu-header"},km={class:"nav-menu-inner-close"},Sm={class:"main-content"},_m={class:"page-title"},Em={class:"action"},Tm={id:"content"},Pm={key:0,id:"logging-out"},Im={class:"info-fazenda"},Am={class:"font-bold"},xm={class:"info-endereco text-muted"},$m={class:"footer-right"},Bm=Le(r.defineComponent({__name:"Main",props:{auth:{}},emits:["login"],setup(t,{emit:e}){const n=t,{navMenuWidth:o,isMenuOpened:i,pageTitle:a,scrollY:c,ToggleMenu:l,isDarkMode:s,ToggleTheme:u,CloseMenu:d,LogoutAsync:f,isLoggingOut:p,mainRef:h,mainWidth:C}=Ht(),w=r.ref(null),k=()=>{if(!w.value||!i.value)return!1;w.value.offsetWidth!==o&&d()};r.onMounted(()=>{if(ga.useRouter().afterEach(()=>{k()}),h.value){let P=null;jr(h,v=>{r.nextTick(()=>{P&&clearTimeout(P),P=setTimeout(()=>{C.value=v[0].contentRect.width},10)}),C.value=v[0].contentRect.width}),C.value=h.value.clientWidth}});const y=e;return(T,P)=>(r.openBlock(),r.createElementBlock("main",{ref_key:"mainRef",ref:h,class:r.normalizeClass({disabled:r.unref(p),"nav-menu-visible":r.unref(i)})},[r.createElementVNode("aside",{id:"nav-menu",ref_key:"navMenuRef",ref:w,class:r.normalizeClass({"nav-menu-hidden":!r.unref(i)})},[r.createElementVNode("div",wm,[P[1]||(P[1]=r.createElementVNode("span",null,"Menu",-1)),r.createElementVNode("div",km,[r.createVNode(Ie,{button:!0,icon:"close",onClick:r.unref(l)},null,8,["onClick"])])]),r.renderSlot(T.$slots,"nav-menu",{},void 0,!0)],2),r.createElementVNode("div",Sm,[r.createElementVNode("div",{id:"top-bar",class:r.normalizeClass({"shadow-bottom":r.unref(c)>72})},[r.createVNode(Ie,{button:!0,icon:r.unref(i)?"menu_open":"menu",tooltip:"Menu",onClick:r.unref(l)},null,8,["icon","onClick"]),r.createElementVNode("div",_m,r.toDisplayString(r.unref(p)?"Saindo...":r.unref(a)),1),P[2]||(P[2]=r.createElementVNode("span",{class:"sep"},null,-1)),r.createElementVNode("div",Em,[r.createVNode(Ie,{button:!0,size:"sm",icon:r.unref(s)?"light_mode":"dark_mode",tooltip:r.unref(s)?"Modo claro":"Modo escuro",onClick:r.unref(u)},null,8,["icon","tooltip","onClick"]),r.createVNode(bm),n.auth?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[n.auth.isAuthenticated?(r.openBlock(),r.createBlock(Ie,{key:0,button:!0,size:"sm",icon:"logout",tooltip:"Sair",onClick:r.unref(f)},null,8,["onClick"])):(r.openBlock(),r.createBlock(Ie,{key:1,button:!0,size:"sm",icon:"login",tooltip:"Entrar",onClick:P[0]||(P[0]=v=>y("login"))}))],64)):r.createCommentVNode("",!0)])],2),r.createElementVNode("div",Tm,[r.unref(p)?(r.openBlock(),r.createElementBlock("div",Pm,[r.createVNode(Ko)])):r.renderSlot(T.$slots,"content",{key:1},void 0,!0)])]),r.createElementVNode("footer",null,[P[5]||(P[5]=r.createElementVNode("div",{class:"logo-fazenda"},null,-1)),r.createElementVNode("div",Im,[r.createElementVNode("span",Am,[r.renderSlot(T.$slots,"footer-nome-fazenda",{},()=>[P[3]||(P[3]=r.createTextVNode(" SECRETARIA MUNICIPAL DA FAZENDA ",-1))],!0)]),r.createElementVNode("span",xm,[r.renderSlot(T.$slots,"footer-endereco-fazenda",{},()=>[P[4]||(P[4]=r.createTextVNode(" Rua Líbero Badaró, 190 - Centro - São Paulo - SP - CEP 01008-000 ",-1))],!0)])]),r.createElementVNode("div",$m,[r.renderSlot(T.$slots,"footer-right",{},void 0,!0)])]),r.createVNode(Cm)],2))}}),[["__scopeId","data-v-5108e4ac"]]),Om=r.defineComponent({__name:"PageTitle",props:{title:{}},setup(t){const{pageTitle:e}=Ht(),n=t;return r.watchEffect(()=>{document.title=n.title,e.value=n.title}),(o,i)=>null}}),vt=t=>{const e=t==="light"?"0, 0, 0":"198, 198, 198";return`0 1px 3px 0 rgba(${e}, 0.1), 0 1px 2px -1px rgba(${e}, 0.1);`},Ji={surface:{0:"var(--surface-0-color)",50:"var(--surface-100-color)",100:"var(--surface-100-color)",200:"var(--surface-200-color)",300:"var(--surface-300-color)",400:"var(--surface-400-color)",500:"var(--surface-1000-color)",600:"var(--surface-600-color)",700:"var(--surface-700-color)",800:"var(--surface-800-color)",900:"var(--surface-900-color)",950:"var(--surface-1000-color)"},primary:{color:"var(--primary-color)",contrastColor:"var(--bg-color)",hoverColor:"var(--primary-hover-color)",activeColor:"var(--primary-color)"},highlight:{background:"var(--primary-color)",color:"var(--bg-color)"},formField:{background:"var(--surface-0-color)",disabledBackground:"var(--surface-0-color)",filledBackground:"var(--surface-100-color)",filledFocusBackground:"var(--surface-100-color)",borderColor:"var(--surface-1000-color)",hoverBorderColor:"var(--primary-color)",focusBorderColor:"var(--primary-color)",invalidBorderColor:"var(--error-color)",color:"var(--text-color)",disabledColor:"var(--disabled-color)",placeholderColor:"var(--muted-color)",floatLabelColor:"var(--secondary-color)",floatLabelFocusColor:"var(--secondary-color)",floatLabelInvalidColor:"var(--error-color)",iconColor:"var(--primary-color)"},text:{color:"var(--text-color)",hoverColor:"var(--primary-color)",mutedColor:"var(--muted-color)",hoverMutedColor:"var(--muted-color)"},mask:{background:"var(--maskbg-color)",color:"var(--surface-200-color)"},content:{background:"var(--bg-color)",color:"var(--text-color)",border:{color:"var(--surface-1000-color)",radius:"var(--border-radius)"},hover:{background:"var(--primary-hover-color)",color:"var(--primary-color)"}}},Lm={semantic:{disabled:{opacity:"1"},transitionDuration:"0",primary:{50:"color-mix(in srgb, currentColor 5%, transparent)",100:"color-mix(in srgb, currentColor 10%, transparent)",200:"color-mix(in srgb, currentColor 20%, transparent)",300:"color-mix(in srgb, currentColor 30%, transparent)",400:"color-mix(in srgb, currentColor 40%, transparent)",500:"color-mix(in srgb, currentColor 50%, transparent)",600:"color-mix(in srgb, currentColor 60%, transparent)",700:"color-mix(in srgb, currentColor 70%, transparent)",800:"color-mix(in srgb, currentColor 80%, transparent)",900:"color-mix(in srgb, currentColor 90%, transparent)",950:"color-mix(in srgb, currentColor 95%, transparent)"},colorScheme:{light:{...Ji},dark:{...Ji}}},components:{accordion:{header:{background:"transparent",activeBackground:"transparent",hoverBackground:"transparent",activeHoverBackground:"transparent"},content:{background:"transparent"}},blockui:{root:{borderRadius:"0px"}},button:{colorScheme:{light:{root:{primary:{background:"var(--primary-color) ",borderColor:"var(--primary-color)",focusRing:{color:"var(--primary-color)"},hoverBorderColor:"var(--primary-color)",hoverBackground:"color-mix(in srgb, var(--primary-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--primary-color) 80%, black 20%)",activeBorderColor:"var(--primary-color)"},secondary:{background:"var(--secondary-color) ",borderColor:"var(--secondary-color)",focusRing:{color:"var(--secondary-color)"},hoverBorderColor:"var(--secondary-color)",hoverBackground:"color-mix(in srgb, var(--secondary-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--secondary-color) 80%, black 20%)",activeBorderColor:"var(--secondary-color)"},success:{background:"var(--success-color) ",borderColor:"var(--success-color)",focusRing:{color:"var(--success-color)"},hoverBorderColor:"var(--success-color)",hoverBackground:"color-mix(in srgb, var(--success-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--success-color) 80%, black 20%)",activeBorderColor:"var(--success-color)"},info:{background:"var(--info-color) ",borderColor:"var(--info-color)",focusRing:{color:"var(--info-color)"},hoverBorderColor:"var(--info-color)",hoverBackground:"color-mix(in srgb, var(--info-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--info-color) 80%, black 20%)",activeBorderColor:"var(--info-color)"},warn:{background:"var(--warn-color) ",borderColor:"var(--warn-color)",focusRing:{color:"var(--warn-color)"},hoverBorderColor:"var(--warn-color)",hoverBackground:"color-mix(in srgb, var(--warn-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--warn-color) 80%, black 20%)",activeBorderColor:"var(--warn-color)"},help:{background:"var(--help-color) ",borderColor:"var(--help-color)",focusRing:{color:"var(--help-color)"},hoverBorderColor:"var(--help-color)",hoverBackground:"color-mix(in srgb, var(--help-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--help-color) 80%, black 20%)",activeBorderColor:"var(--help-color)"},danger:{background:"var(--error-color) ",borderColor:"var(--error-color)",focusRing:{color:"var(--error-color)"},hoverBorderColor:"var(--error-color)",hoverBackground:"color-mix(in srgb, var(--error-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--error-color) 80%, black 20%)",activeBorderColor:"var(--error-color)"},contrast:{background:"var(--text-color) ",borderColor:"var(--text-color)",focusRing:{color:"var(--text-color)"},hoverBorderColor:"var(--text-color)",hoverBackground:"color-mix(in srgb, var(--text-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--text-color) 80%, black 20%)",activeBorderColor:"var(--text-color)"}},outlined:{primary:{color:"var(--primary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},secondary:{color:"var(--secondary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},success:{color:"var(--success-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},info:{color:"var(--info-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},warn:{color:"var(--warn-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},help:{color:"var(--help-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},danger:{color:"var(--error-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},contrast:{color:"var(--text-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"}},text:{primary:{color:"var(--primary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},secondary:{color:"var(--secondary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},success:{color:"var(--success-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},info:{color:"var(--info-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},warn:{color:"var(--warn-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},help:{color:"var(--help-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},danger:{color:"var(--error-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},contrast:{color:"var(--text-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"}}},dark:{root:{primary:{background:"var(--primary-color) ",borderColor:"var(--primary-color)",focusRing:{color:"var(--primary-color)"},hoverBorderColor:"var(--primary-color)",hoverBackground:"color-mix(in srgb, var(--primary-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--primary-color) 80%, white 20%)"},secondary:{background:"var(--secondary-color) ",borderColor:"var(--secondary-color)",focusRing:{color:"var(--secondary-color)"},hoverBorderColor:"var(--secondary-color)",hoverBackground:"color-mix(in srgb, var(--secondary-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--secondary-color) 80%, white 20%)",activeBorderColor:"var(--secondary-color)"},success:{background:"var(--success-color) ",borderColor:"var(--success-color)",focusRing:{color:"var(--success-color)"},hoverBorderColor:"var(--success-color)",hoverBackground:"color-mix(in srgb, var(--success-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--success-color) 80%, white 20%)",activeBorderColor:"var(--success-color)"},info:{background:"var(--info-color) ",borderColor:"var(--info-color)",focusRing:{color:"var(--info-color)"},hoverBorderColor:"var(--info-color)",hoverBackground:"color-mix(in srgb, var(--info-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--info-color) 80%, white 20%)",activeBorderColor:"var(--info-color)"},warn:{background:"var(--warn-color) ",borderColor:"var(--warn-color)",focusRing:{color:"var(--warn-color)"},hoverBorderColor:"var(--warn-color)",hoverBackground:"color-mix(in srgb, var(--warn-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--warn-color) 80%, white 20%)",activeBorderColor:"var(--warn-color)"},help:{background:"var(--help-color) ",borderColor:"var(--help-color)",focusRing:{color:"var(--help-color)"},hoverBorderColor:"var(--help-color)",hoverBackground:"color-mix(in srgb, var(--help-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--help-color) 80%, white 20%)",activeBorderColor:"var(--help-color)"},danger:{background:"var(--error-color) ",borderColor:"var(--error-color)",focusRing:{color:"var(--error-color)"},hoverBorderColor:"var(--error-color)",hoverBackground:"color-mix(in srgb, var(--error-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--error-color) 80%, white 20%)",activeBorderColor:"var(--error-color)"},contrast:{background:"var(--text-color) ",borderColor:"var(--text-color)",focusRing:{color:"var(--text-color)"},hoverBorderColor:"var(--text-color)",hoverBackground:"color-mix(in srgb, var(--text-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--text-color) 80%, white 20%)",activeBorderColor:"var(--text-color)"}},outlined:{primary:{color:"var(--primary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},secondary:{color:"var(--secondary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},success:{color:"var(--success-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},info:{color:"var(--info-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},warn:{color:"var(--warn-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},help:{color:"var(--help-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},danger:{color:"var(--error-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},contrast:{color:"var(--text-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"}},text:{primary:{color:"var(--primary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},secondary:{color:"var(--secondary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},success:{color:"var(--success-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},info:{color:"var(--info-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},warn:{color:"var(--warn-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},help:{color:"var(--help-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},danger:{color:"var(--error-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},contrast:{color:"var(--text-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"}}}}},card:{root:{borderRadius:"var(--border-radius)"},title:{fontWeight:"700",fontSize:"var(--text-md)"},body:{padding:"var(--content-gutter)"},colorScheme:{light:{root:{background:"var(--bg-color)",shadow:vt("light")}},dark:{root:{background:"var(--surface-300-color)",shadow:vt("dark")}}}},checkbox:{root:{background:"var(--surface-200-color) !important",borderColor:"var(--muted-color) !important",borderRadius:"var(--border-radius) !important",checkedBackground:"var(--primary-color) !important",checkedHoverBackground:"var(--primary-color) !important",sm:{width:"1rem",height:"1rem"},lg:{width:"1.5rem",height:"1.5rem"}}},confirmpopup:{root:{borderColor:"var(--border-color)"},colorScheme:{light:{root:{background:"var(--bg-color)",shadow:vt("light")}},dark:{root:{background:"var(--surface-300-color)",shadow:vt("dark")}}}},datatable:{root:{borderColor:"var(--border-color) !important"},header:{borderColor:"var(--border-color) !important",padding:"0 0 var(--content-gutter) 0",sm:{padding:"0 0 var(--content-gutter-sm) 0"}},headerCell:{borderColor:"var(--border-color) !important",hoverColor:"var(--primary-color) !important",hoverBackground:"var(--primary-hover-color) !important"},bodyCell:{borderColor:"var(--border-color) !important"},footer:{borderColor:"var(--border-color) !important"},colorScheme:{light:{header:{background:"var(--bg-color)",color:"var(--text-color)"},headerCell:{background:"var(--bg-color)"},footerCell:{background:"var(--bg-color)"},row:{background:"var(--bg-color)",stripedBackground:"var(--surface-300-color)"}},dark:{header:{background:"var(--surface-300-color)",color:"var(--text-color)"},headerCell:{background:"var(--surface-300-color)"},footerCell:{background:"var(--surface-300-color)"},row:{stripedBackground:"var(--bg-color)",background:"var(--surface-300-color)"}}}},datepicker:{today:{background:"var(--primary-hover-color) !important",color:"var(--primary-color) !important"}},dialog:{root:{background:"var(--bg-color) !important",color:"var(--text-color) !important",borderColor:"var(--border-color) !important",borderRadius:"var(--border-radius) !important",shadow:"none !important"},title:{fontSize:"var(--font-size) !important",fontWeight:"700 !important"},header:{padding:"0.75rem 0.75rem 0 1rem !important",gap:"var(--content-gutter-sm) !important"},content:{padding:"var(--content-gutter) !important"},footer:{padding:"0.75rem 0.75rem 0 1rem !important",gap:"var(--content-gutter-sm) !important"}},inputtext:{root:{background:"var(--surface-100-color)",color:"var(--text-color)",borderColor:"var(--border-color) !important",borderRadius:"var(--border-radius) !important",shadow:"none !important",hoverBorderColor:"var(--primary-color) !important",placeholderColor:"var(--muted-color)"}},menu:{item:{focusBackground:"var(--surface-400-color)",focusColor:"var(--text-color)"},colorScheme:{light:{root:{background:"var(--bg-color)",shadow:vt("light")}},dark:{root:{background:"var(--surface-200-color)",shadow:vt("dark")}}}},popover:{root:{background:"var(--bg-color)",color:"var(--text-color)",borderColor:"var(--border-color)",borderRadius:"var(--border-radius)",shadow:"none",gutter:"8px",arrowOffset:"0.75rem"},content:{padding:"0"}},select:{root:{background:"var(--bg-color)",color:"var(--text-color)",hoverBorderColor:"var(--primary-color)",placeholderColor:"var(--muted-color)",disabledColor:"var(--disabled-color)"},option:{focusBackground:"var(--surface-200-color)",focusColor:"var(--primary-color)",selectedFocusColor:"var(--bg-color)",selectedFocusBackground:"var(--primary-color)"},overlay:{borderColor:"var(--border-color)"},dropdown:{color:"var(--primary-color)"},colorScheme:{light:{overlay:{background:"var(--bg-color)"}},dark:{overlay:{background:"var(--surface-100-color)"}}}},skeleton:{root:{background:"var(--surface-700-color)",animationBackground:"var(--surface-100-color)"}},textarea:{root:{background:"var(--surface-100-color)",hoverBorderColor:"var(--primary-color)",placeholderColor:"var(--muted-color)"}},toast:{root:{width:"min(90vw, 320px)"},colorScheme:{light:{contrast:{background:"var(--text-color)",color:"var(--bg-color)",detailColor:"var(--bg-color)"}},dark:{contrast:{background:"var(--bg-color)",color:"var(--text-color)",detailColor:"var(--text-color)"}}},info:{background:"var(--info-color)",color:"var(--info-hover-color)",detailColor:"var(--text-color)"},success:{background:"var(--success-color)",color:"var(--success-hover-color)",detailColor:"var(--text-color)"},warn:{background:"var(--warn-color)",color:"var(--warn-hover-color)",detailColor:"var(--text-color)"},error:{background:"var(--error-color)",color:"var(--error-hover-color)",detailColor:"var(--text-color)"},secondary:{background:"var(--secondary-color)",color:"var(--secondary-hover-color)",detailColor:"var(--text-color)"}},toggleswitch:{colorScheme:{light:{root:{background:"var(--border-color)",hoverBackground:"var(--border-color)",hoverBorderColor:"transparent",checkedBackground:"var(--primary-color)",checkedHoverBackground:"var(--primary-color)",checkedBorderColor:"transparent"}},dark:{root:{background:"var(--border-color)",hoverBackground:"var(--border-color)",hoverBorderColor:"transparent",checkedBackground:"var(--primary-color)",checkedHoverBackground:"var(--primary-color)",checkedBorderColor:"transparent"}}}}}};class Ye{static get IsTouch(){return window.matchMedia("(pointer: coarse)").matches}static GetMaxZindex(e=[]){let n="body > *:not(script):not(style)";for(const i of e)n+=`, ${i}`;const o=Math.max(...Array.from(document.querySelectorAll(n)).map(i=>{const a=getComputedStyle(i).zIndex;return+a==+a?+a: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,i=e.toString();return n.replace(/#/g,()=>i[o++]||"")}static MaskCpf(e){return Ye.Mask(e.padStart(11,"0"),"###.###.###-##")}static MaskCnpj(e){return Ye.Mask(e.padStart(14,"0"),"##.###.###/####-##")}static MaskCcm(e){return Ye.Mask(e.padStart(8,"0"),"#.###.###-#")}static async DelayAsync(e=400){return new Promise(n=>setTimeout(n,e))}static FormatNumber(e,n=0,o="pt-BR"){return e.toLocaleString(o,{minimumFractionDigits:n,maximumFractionDigits:n})}static FormatCurrency(e,n="pt-BR"){return e.toLocaleString(n,{style:"currency",currency:"BRL"})}static HasKey(e,n){return e&&n in e}static GetFilenameFromContentDisposition(e){if(!e)return null;const n=e.match(/filename\*\s*=\s*(?:UTF-8'')?([^;\r\n]+)/i);if(n)try{return decodeURIComponent(n[1].trim().replace(/^"|"$/g,""))}catch{return n[1].trim().replace(/^"|"$/g,"")}const o=e.match(/filename\s*=\s*("(.*?)"|([^;,\r\n]+))/i);return o?(o[2]||o[3]).trim().replace(/^"|"$/g,""):null}}class Nm{sub;username;name;email;roles;groups;userinfo;department;jobTitle;idp;constructor(e){this.userinfo=e,this.sub=e.sub,this.username=e.employeeID??e.cpf??"",this.name=e.name??"",this.email=e.email??null,this.roles=e.role??[],this.groups=e.group??[],this.department=this.SetDepartment(),this.jobTitle=this.SetJobTitle(),this.idp=this.SetIdp()}get firstname(){return this.name.split(" ")[0]??this.name}get maskedUsername(){return this.username?this.username.length<=11?Ye.MaskCpf(this.username):this.username.length===14?Ye.MaskCnpj(this.username):this.username:""}IsInRole(e){return this.roles.includes(e)}IsInGroup(e){return this.groups.includes(e)}SetIdp(){const e=this.userinfo?.identity_provider??null;return e?.toLocaleLowerCase()==="gov.br"?"govbr":e?.toLocaleLowerCase().startsWith("senhaweb")?"senhaweb":null}SetDepartment(){return this.userinfo?.department??null}SetJobTitle(){return this.userinfo?.jobTitle??null}}function Mm(){const t=r.ref("development");function e(s){t.value=s.toLocaleLowerCase()}const n=r.computed(()=>t.value==="development"),o=r.computed(()=>t.value==="pack"),i=r.computed(()=>t.value==="hml"),a=r.computed(()=>t.value==="production"),c=r.ref(null);function l(){c.value=null}return{environment:t,SetEnvironment:e,isDev:n,isPack:o,isHml:i,isProd:a,user:c,$reset:l}}const Dm=t=>{const e=new Set;function n(o){const{name:i,children:a}=o;if(i){if(e.has(i))throw new Error(["Erro na validação das rotas!",`Nome de rota duplicado: ${i}`].join(`
424
+ `));e.add(i)}if(a&&Array.isArray(a))for(const c of a)n(c)}for(const o of t)n(o)};Promise.prototype.TrackStateWith||(Promise.prototype.TrackStateWith=async function(t){t.value=!0;try{return await this}finally{t.value=!1}});class Rm{current=null;resolve=null;async showAsync(e,n){const o={message:e,life:n??5e3};return this.Render(o)}async Render(e){return new Promise(n=>{this.resolve=n,this.current&&(this.current.style.opacity="0",setTimeout((function(){this.parentElement&&this.parentElement.removeChild(this)}).bind(this.current),500));const o=document.createElement("div"),i=document.createElement("div"),a=document.createElement("div");i.className="content",a.className="progress",i.appendChild(a),o.className="sf-toast",o.style.zIndex=Ye.GetMaxZindex().toString(),o.appendChild(i),this.current=o,document.body.appendChild(o),o.addEventListener("transitionend",s=>{const u=s.propertyName==="opacity",d=s.target.classList.contains("visible");u&&!d&&(document.body.removeChild(o),this.current===o&&(this.current=null))});const c=[];Array.isArray(e.message)?c.push(...e.message):c.push(e.message);for(const s of c){const u=document.createElement("p");u.innerHTML=Oo.sanitize(s),i.appendChild(u)}const l=document.createElement("i");if(l.classList.add("icon","material-symbols-outlined"),l.innerText="close",l.addEventListener("click",()=>{this.Close()}),i.appendChild(l),getComputedStyle(o).bottom,getComputedStyle(o).top,o.classList.add("visible"),e.life){a.style.transitionDuration=`${e.life-300}ms`,i.classList.add("animate"),setTimeout(()=>{this.current===o&&this.Close()},e.life);return}})}Close(){this.resolve&&this.resolve(),this.current&&this.current.classList.remove("visible")}}const Vm=new Rm,jm=()=>Vm;function Qi(){document.documentElement.removeAttribute("data-app-message"),document.documentElement.classList.add("app-mounted")}function Mo(t){typeof t=="string"&&document.documentElement.setAttribute("data-app-message",t),document.documentElement.classList.remove("app-mounted")}async function Hm(){return await fetch(window.location.origin+"/api/get-environment").then(async t=>{if(!t.ok)throw Mo("Ocorreu um erro ao inicializar a aplicação."),new Error(`Erro ao obter ambiente: ${t.status} ${t.statusText}`);return await t.text()})}x.AppError=Lo,x.AppResult=qi,x.BaseAppState=Mm,x.EnsureUniqueRouteNames=Dm,x.GetEnvironmentAsync=Hm,x.RemovePreloader=Qi,x.RestorePreloader=Mo,x.SfButton=Kn,x.SfContent=Ml,x.SfDrawer=Go,x.SfHelpButton=Nl,x.SfIcon=Ie,x.SfLoadingCircle=Wo,x.SfLogin=Xl,x.SfMain=Bm,x.SfMessage=$a,x.SfNavMenu=Ll,x.SfPageTitle=Om,x.SfTabNavigation=Ta,x.SfTooltip=zo,x.UseAlert=Xi,x.UseAlertService=hm,x.UseAppInject=Ht,x.UseConfirm=Wi,x.UseConfirmService=lm,x.UseSimpleToast=jm,x.User=Nm,x.Utilities=Ye,x._logger=pm,x.configSF=fm,x.globalErrorHandler=gm,x.themePreset=Lm,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});
425
425
  //# sourceMappingURL=sf.prefeiturasp.vuecomponents.umd.cjs.map