@luizleon/sf.prefeiturasp.vuecomponents 5.1.0 → 6.0.0

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,146 +1,148 @@
1
- (function(N,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router"],r):(N=typeof globalThis<"u"?globalThis:N||self,r((N.sf=N.sf||{},N.sf.prefeiturasp=N.sf.prefeiturasp||{},N.sf.prefeiturasp.vuecomponents={}),N.Vue,N.VueRouter))})(this,function(N,r,gt){"use strict";var cm=Object.defineProperty;var um=(N,r,gt)=>r in N?cm(N,r,{enumerable:!0,configurable:!0,writable:!0,value:gt}):N[r]=gt;var ee=(N,r,gt)=>um(N,typeof r!="symbol"?r+"":r,gt);class Ot{constructor(e){ee(this,"retorno");this.retorno=e??""}Concat(e){return e&&e.trim().length&&(this.retorno+=` ${e}`),this}AddClass(e,n=!0){return n?this.Concat(e):this}Build(){return this.retorno.trim()}}function jn(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{constructor(){ee(this,"target",null);ee(this,"wrapper",null);ee(this,"inner",null);ee(this,"showTimeout",null)}Render(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("sf-tooltip-wrapper"),this.wrapper.style.zIndex=`${jn()??1}`,this.wrapper.addEventListener("mouseup",function(){this.classList.remove("visible"),Array.from(this.children).forEach(s=>s.remove()),this.remove()}),this.inner=document.createElement("div"),this.inner.classList.add("sf-tooltip-inner"),this.wrapper.appendChild(this.inner)}Show(s){this.showTimeout&&clearTimeout(this.showTimeout),this.target=s.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 s=this.target.getBoundingClientRect();this.FixWidth();const l=this.wrapper,a=5;l.style.top=`${s.top+s.height-a}px`,l.style.left=`${s.left+s.width-a}px`,this.OutOfBottom()&&(l.style.top=`${s.top-l.clientHeight+a}px`),this.OutOfRight()&&(l.style.left=`${s.left-l.clientWidth+a}px`)}FixWidth(){const s=this.wrapper;if(!s)return;s.style.width="fit-content",s.style.wordBreak="normal",s.style.whiteSpace="nowrap";const l=window.innerWidth/2;s.clientWidth>l&&(s.style.width=`${l}px`,s.style.wordBreak="break-word",s.style.whiteSpace="normal")}OutOfBottom(){const s=this.wrapper;if(!s)return!1;const l=s.getBoundingClientRect(),a=window.innerHeight||document.documentElement.clientHeight;return l.bottom+10>a}OutOfRight(){const s=this.wrapper;if(!s)return!1;const l=s.getBoundingClientRect(),a=window.innerWidth||document.documentElement.clientWidth;return l.right+10>a}}const o=new n;return r.onBeforeUnmount(()=>{o.Hide()}),(i,s)=>(r.openBlock(),r.createElementBlock("div",{class:"sf-tooltip-anchor",onMouseenter:s[0]||(s[0]=(...l)=>r.unref(o).Show&&r.unref(o).Show(...l)),onMousedown:s[1]||(s[1]=(...l)=>r.unref(o).Hide&&r.unref(o).Hide(...l)),onMouseleave:s[2]||(s[2]=(...l)=>r.unref(o).Hide&&r.unref(o).Hide(...l))},[r.renderSlot(i.$slots,"default")],32))}}),We=(t,e)=>{const n=t.__vccOpts||t;for(const[o,i]of e)n[o]=i;return n},gs={},ys={class:"sf-loading-circle"};function bs(t,e){return r.openBlock(),r.createElementBlock("div",ys,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=We(gs,[["render",bs]]),vs=["data-size"],ws=["disabled","data-p-loading","tabindex"],ks=["data-color"],Ue=We(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 Ot(n.tooltip?"":"display-content").AddClass("loading",n.loading).AddClass("disabled",n.disabled).Build()),s=r.computed(()=>new Ot(`${n.class} sf-icon`).AddClass("select-none").AddClass(`${n.color}-color`,!!n.color&&n.color!=="inherit").Build()),l=c=>{n.disabled||n.loading||a("click",c)},a=e;return(c,d)=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent(o.value),{text:n.tooltip,class:r.normalizeClass(i.value),onClick:l},{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(s.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,ws),n.dot&&!n.disabled&&!n.loading?(r.openBlock(),r.createElementBlock("span",{key:0,"data-color":n.dotColor},null,8,ks)):r.createCommentVNode("",!0)],64))],6)):r.createCommentVNode("",!0)],10,vs)]),_:1},8,["text","class"]))}}),[["__scopeId","data-v-c242d02a"]]),Ss={class:"sf-tab-navigation"},_s=["data-active"],Cs=["href","onClick"],Es=r.defineComponent({__name:"TabNavigation",props:{tabs:{}},setup(t){const e=t,n=r.ref(null),o=new ResizeObserver(c=>{a()}),i=r.ref(!1),s=r.ref(!1);function l(c=!1){const d=n.value.clientWidth;n.value.scrollLeft+=c?-d:d}function a(){const c=n.value.scrollWidth-n.value.clientWidth;i.value=n.value.scrollLeft>10,s.value=n.value.scrollLeft<c-10}return r.onMounted(()=>{n.value.addEventListener("scroll",a),o.observe(n.value)}),r.onBeforeUnmount(()=>{var c;try{(c=n.value)==null||c.removeEventListener("scroll",a),o.unobserve(n.value),o.disconnect()}catch{}}),(c,d)=>{const f=r.resolveComponent("RouterLink");return r.openBlock(),r.createElementBlock("div",Ss,[r.createElementVNode("div",{class:r.normalizeClass(["left-arrow",{active:i.value}]),onClick:d[0]||(d[0]=p=>l(!0))},d[2]||(d[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,p=>(r.openBlock(),r.createBlock(f,{to:p.route,custom:!0},{default:r.withCtx(({navigate:g,isActive:v})=>[r.createElementVNode("li",{"data-active":v},[r.renderSlot(c.$slots,"item",{item:p,navigate:g,isActive:v},()=>[r.createElementVNode("a",{href:p.route,class:r.normalizeClass({active:v}),onClick:g},r.toDisplayString(p.text),11,Cs)])],8,_s)]),_:2},1032,["to"]))),256))],512),r.createElementVNode("div",{class:r.normalizeClass(["right-arrow",{active:s.value}]),onClick:d[1]||(d[1]=p=>l())},d[3]||(d[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=We(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"]]),Ts=["id","name","disabled","data-color","form","type","data-p-loading"],Fn=We(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 Ot(`${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=l=>{n.disabled||n.loading||s("click",l)},s=e;return(l,a)=>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(Ue,{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(l.$slots,"default",{},void 0,!0)],2)],14,Ts)):r.createCommentVNode("",!0)}}),[["__scopeId","data-v-79a81e53"]]),Is={class:"sf-drawer-title"},As={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(),s=r.ref(n.visible),l=r.ref(!1),a=r.ref(0),c="sf-drawer-"+Math.random().toString(36).slice(2,11)+"-"+Date.now();function d(){s.value=!1}function f(S){if(!n.dismissableMask)return;const k=S.target;k&&k.id===c&&(s.value=!1)}function p(S){(S.key==="Escape"||S.code==="Escape")&&d()}function g(){o("open"),window.document.addEventListener("keydown",p,!0)}function v(S){a.value=jn()+1,S.style.zIndex=`${a.value}`}function _(S){var k;o("before-close"),(k=S==null?void 0:S.parentElement)==null||k.classList.add("sf-mask-overlay-leave")}function A(){window.document.removeEventListener("keydown",p,!0),l.value=!1}function L(){return new Ot("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,S=>{s.value=S}),r.watch(()=>s.value,S=>{o("update:visible",S),S&&(l.value=!0)}),(S,k)=>(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[l.value?(r.openBlock(),r.createElementBlock("div",{key:0,id:c,class:r.normalizeClass(L()),style:r.normalizeStyle({zIndex:a.value-1}),onClick:r.withModifiers(f,["stop"])},[r.createVNode(r.Transition,{name:"sf-drawer",appear:"",onBeforeEnter:v,onEnter:g,onBeforeLeave:_,onAfterLeave:A},{default:r.withCtx(()=>[s.value?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["sf-drawer"]),style:r.normalizeStyle(n.style),role:"dialog"},[r.renderSlot(S.$slots,"header",r.normalizeProps(r.guardReactiveProps({Close:d})),()=>[r.createElementVNode("div",{class:r.normalizeClass(["sf-drawer-header",{unstyled:n.unstyledHeader}])},[r.renderSlot(S.$slots,"title",{},()=>[r.createElementVNode("div",Is,r.toDisplayString(n.title),1)]),k[0]||(k[0]=r.createElementVNode("div",{class:"sf-drawer-spacer"},null,-1)),r.createElementVNode("div",As,[r.renderSlot(S.$slots,"action",r.normalizeProps(r.guardReactiveProps({Close:d})),()=>[r.createVNode(Ue,{button:!0,icon:"close",onClick:d})])])],2)]),r.createElementVNode("div",{class:r.normalizeClass(["sf-drawer-content",{unstyled:n.unstyledContent}])},[r.renderSlot(S.$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(S.$slots,"footer",r.normalizeProps(r.guardReactiveProps({Close:d})))],2)):r.createCommentVNode("",!0)],4)):r.createCommentVNode("",!0)]),_:3})],6)):r.createCommentVNode("",!0)]))}}),Ps=["data-icon"],Ls=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 Ot("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,s)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(o.value),"data-icon":n.value},[r.renderSlot(i.$slots,"default")],10,Ps))}});function xs(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function Os(t,e){if(t&&e){const n=o=>{xs(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){const n=o=>{t.classList?t.classList.remove(o):t.className=t.className.replace(new RegExp("(^|\\b)"+o.split(" ").join("|")+"(\\b|$)","gi")," ")};[e].flat().filter(Boolean).forEach(o=>o.split(" ").forEach(n))}}function $s(t,e){return t instanceof HTMLElement?t.offsetWidth:0}function pn(t){return typeof HTMLElement=="object"?t instanceof HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string"}function hn(t,e={}){if(pn(t)){const n=(o,i)=>{var s,l;const a=(s=t==null?void 0:t.$attrs)!=null&&s[o]?[(l=t==null?void 0:t.$attrs)==null?void 0:l[o]]:[];return[i].flat().reduce((c,d)=>{if(d!=null){const f=typeof d;if(f==="string"||f==="number")c.push(d);else if(f==="object"){const p=Array.isArray(d)?n(o,d):Object.entries(d).map(([g,v])=>o==="style"&&(v||v===0)?`${g.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${v}`:v?g:void 0);c=p.length?c.concat(p.filter(g=>!!g)):c}}return c},a)};Object.entries(e).forEach(([o,i])=>{if(i!=null){const s=o.match(/^on(.+)/);s?t.addEventListener(s[1].toLowerCase(),i):o==="p-bind"?hn(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 Bs(t,e={},...n){{const o=document.createElement(t);return hn(o,e),o.append(...n),o}}function Be(t,e){return pn(t)?t.matches(e)?t:t.querySelector(e):null}function $t(t,e){t&&document.activeElement!==t&&t.focus(e)}function Bt(t,e){if(pn(t)){const n=t.getAttribute(e);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function qo(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 Ns(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function Ms(t){if(t){let e=t.getBoundingClientRect();return{top:e.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:e.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:"auto",left:"auto"}}function Ds(t,e){return t?t.offsetHeight:0}function Rs(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&Ns(t))}function Yo(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 Us(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Vs(t,e="",n){pn(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}function Xo(){const t=new Map;return{on(e,n){let o=t.get(e);return o?o.push(n):o=[n],t.set(e,o),this},off(e,n){let o=t.get(e);return o&&o.splice(o.indexOf(n)>>>0,1),this},emit(e,n){let o=t.get(e);o&&o.slice().map(i=>{i(n)})},clear(){t.clear()}}}function ct(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function Kn(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){var n=Array.isArray(t),o=Array.isArray(e),i,s,l;if(n&&o){if(s=t.length,s!=e.length)return!1;for(i=s;i--!==0;)if(!Kn(t[i],e[i]))return!1;return!0}if(n!=o)return!1;var a=t instanceof Date,c=e instanceof Date;if(a!=c)return!1;if(a&&c)return t.getTime()==e.getTime();var d=t instanceof RegExp,f=e instanceof RegExp;if(d!=f)return!1;if(d&&f)return t.toString()==e.toString();var p=Object.keys(t);if(s=p.length,s!==Object.keys(e).length)return!1;for(i=s;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,p[i]))return!1;for(i=s;i--!==0;)if(l=p[i],!Kn(t[l],e[l]))return!1;return!0}return t!==t&&e!==e}function Wn(t){return!!(t&&t.constructor&&t.call&&t.apply)}function Z(t){return!ct(t)}function yt(t,e,n){return Kn(t,e)}function Zo(t,e){let n;if(Z(t))try{n=t.findLast(e)}catch{n=[...t].reverse().find(e)}return n}function nt(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function Te(t,...e){return Wn(t)?t(...e):t}function Se(t,e=!0){return typeof t=="string"&&(e||t!=="")}function Ne(t){return Se(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function Gn(t,e="",n={}){const o=Ne(e).split("."),i=o.shift();return i?nt(t)?Gn(Te(t[Object.keys(t).find(s=>Ne(s)===i)||""],n),o.join("."),n):void 0:Te(t,n)}function qn(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function Jo(t){return Z(t)&&!isNaN(t)}function Hs(t=""){return Z(t)&&t.length===1&&!!t.match(/\S| /)}function Ge(t,e){if(e){const n=e.test(t);return e.lastIndex=0,n}return!1}function Nt(t){return t&&t.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":")}function js(t){return Se(t,!1)?t[0].toUpperCase()+t.slice(1):t}function Qo(t){return Se(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,n)=>n===0?e:"-"+e.toLowerCase()).toLowerCase():t}function er(t){return Se(t)?t.replace(/[A-Z]/g,(e,n)=>n===0?e:"."+e.toLowerCase()).toLowerCase():t}var gn={};function Fs(t="pui_id_"){return gn.hasOwnProperty(t)||(gn[t]=0),gn[t]++,`${t}${gn[t]}`}function yn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pv_id_";return Fs(t)}var zs=Object.defineProperty,Ks=Object.defineProperties,Ws=Object.getOwnPropertyDescriptors,bn=Object.getOwnPropertySymbols,tr=Object.prototype.hasOwnProperty,nr=Object.prototype.propertyIsEnumerable,or=(t,e,n)=>e in t?zs(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Mt=(t,e)=>{for(var n in e||(e={}))tr.call(e,n)&&or(t,n,e[n]);if(bn)for(var n of bn(e))nr.call(e,n)&&or(t,n,e[n]);return t},Yn=(t,e)=>Ks(t,Ws(e)),Dt=(t,e)=>{var n={};for(var o in t)tr.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&bn)for(var o of bn(t))e.indexOf(o)<0&&nr.call(t,o)&&(n[o]=t[o]);return n},Gs=Xo(),qe=Gs;function rr(t,e){qn(t)?t.push(...e||[]):nt(t)&&Object.assign(t,e)}function qs(t){return nt(t)&&t.hasOwnProperty("value")&&t.hasOwnProperty("type")?t.value:t}function ir(t,e=""){return["opacity","z-index","line-height","font-weight","flex","flex-grow","flex-shrink","order"].some(o=>e.endsWith(o))?t:`${t}`.trim().split(" ").map(s=>Jo(s)?`${s}px`:s).join(" ")}function Ys(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function Xn(t="",e=""){return Ys(`${Se(t,!1)&&Se(e,!1)?`${t}-`:t}${e}`)}function sr(t="",e=""){return`--${Xn(t,e)}`}function ar(t,e="",n="",o=[],i){if(Se(t)){const s=/{([^}]*)}/g,l=t.trim();if(Ge(l,s)){const a=l.replaceAll(s,f=>{const g=f.replace(/{|}/g,"").split(".").filter(v=>!o.some(_=>Ge(v,_)));return`var(${sr(n,Qo(g.join("-")))}${Z(i)?`, ${i}`:""})`}),c=/(\d+\s+[\+\-\*\/]\s+\d+)/g,d=/var\([^)]+\)/g;return Ge(a.replace(d,"0"),c)?`calc(${a})`:a}return ir(l,e)}else if(Jo(t))return ir(t,e)}function Xs(t,e,n){Se(e,!1)&&t.push(`${e}:${n};`)}function Rt(t,e){return t?`${t}{${e}}`:""}var Zn=(...t)=>Zs(Q.getTheme(),...t),Zs=(t={},e,n,o="variable")=>{if(e){const{variable:i,options:s}=Q.defaults||{},{prefix:l,transform:a}=(t==null?void 0:t.options)||s||{},d=Ge(e,/{([^}]*)}/g)?e:`{${e}}`;return o==="value"||a==="strict"?Q.getTokenValue(e):ar(d,void 0,l,[i.excludedKeyRegex],n)}return""};function Js(t,e={}){const n=Q.defaults.variable,{prefix:o=n.prefix,selector:i=n.selector,excludedKeyRegex:s=n.excludedKeyRegex}=e,l=(d,f="")=>Object.entries(d).reduce((p,[g,v])=>{const _=Ge(g,s)?Xn(f):Xn(f,Qo(g)),A=qs(v);if(nt(A)){const{variables:L,tokens:S}=l(A,_);rr(p.tokens,S),rr(p.variables,L)}else p.tokens.push((o?_.replace(`${o}-`,""):_).replaceAll("-",".")),Xs(p.variables,sr(_),ar(A,_,o,[s]));return p},{variables:[],tokens:[]}),{variables:a,tokens:c}=l(t,o);return{value:a,tokens:c,declarations:a.join(""),css:Rt(i,a.join(""))}}var Me={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(t){return{type:"class",selector:t,matched:this.pattern.test(t.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(t){return{type:"attr",selector:`:root${t}`,matched:this.pattern.test(t.trim())}}},media:{pattern:/^@media (.*)$/,resolve(t){return{type:"media",selector:`${t}{:root{[CSS]}}`,matched:this.pattern.test(t.trim())}}},system:{pattern:/^system$/,resolve(t){return{type:"system",selector:"@media (prefers-color-scheme: dark){:root{[CSS]}}",matched:this.pattern.test(t.trim())}}},custom:{resolve(t){return{type:"custom",selector:t,matched:!0}}}},resolve(t){const e=Object.keys(this.rules).filter(n=>n!=="custom").map(n=>this.rules[n]);return[t].flat().map(n=>{var o;return(o=e.map(i=>i.resolve(n)).find(i=>i.matched))!=null?o:this.rules.custom.resolve(n)})}},_toVariables(t,e){return Js(t,{prefix:e==null?void 0:e.prefix})},getCommon({name:t="",theme:e={},params:n,set:o,defaults:i}){var s,l,a,c;const{preset:d,options:f}=e;let p,g,v,_;if(Z(d)){const{primitive:A,semantic:L}=d,S=L||{},{colorScheme:k}=S,D=Dt(S,["colorScheme"]),U=k||{},{dark:G}=U,ue=Dt(U,["dark"]),ne=Z(A)?this._toVariables({primitive:A},f):{},Pe=Z(D)?this._toVariables({semantic:D},f):{},oe=Z(ue)?this._toVariables({light:ue},f):{},Y=Z(G)?this._toVariables({dark:G},f):{},[M,X]=[(s=ne.declarations)!=null?s:"",ne.tokens],[de,fe]=[(l=Pe.declarations)!=null?l:"",Pe.tokens||[]],[je,Ze]=[(a=oe.declarations)!=null?a:"",oe.tokens||[]],[Fe,ze]=[(c=Y.declarations)!=null?c:"",Y.tokens||[]];p=this.transformCSS(t,M,"light","variable",f,o,i),g=X;const ht=this.transformCSS(t,`${de}${je}color-scheme:light`,"light","variable",f,o,i),$e=this.transformCSS(t,`${Fe}color-scheme:dark`,"dark","variable",f,o,i);v=`${ht}${$e}`,_=[...new Set([...fe,...Ze,...ze])]}return{primitive:{css:p,tokens:g},semantic:{css:v,tokens:_}}},getPreset({name:t="",preset:e={},options:n,params:o,set:i,defaults:s,selector:l}){var a,c,d;const f=t.replace("-directive",""),p=e,{colorScheme:g}=p,v=Dt(p,["colorScheme"]),_=g||{},{dark:A}=_,L=Dt(_,["dark"]),S=Z(v)?this._toVariables({[f]:v},n):{},k=Z(L)?this._toVariables({[f]:L},n):{},D=Z(A)?this._toVariables({[f]:A},n):{},[U,G]=[(a=S.declarations)!=null?a:"",S.tokens||[]],[ue,ne]=[(c=k.declarations)!=null?c:"",k.tokens||[]],[Pe,oe]=[(d=D.declarations)!=null?d:"",D.tokens||[]],Y=[...new Set([...G,...ne,...oe])],M=this.transformCSS(f,`${U}${ue}`,"light","variable",n,i,s,l),X=this.transformCSS(f,Pe,"dark","variable",n,i,s,l);return{css:`${M}${X}`,tokens:Y}},getPresetC({name:t="",theme:e={},params:n,set:o,defaults:i}){var s;const{preset:l,options:a}=e,c=(s=l==null?void 0:l.components)==null?void 0:s[t];return this.getPreset({name:t,preset:c,options:a,params:n,set:o,defaults:i})},getPresetD({name:t="",theme:e={},params:n,set:o,defaults:i}){var s;const l=t.replace("-directive",""),{preset:a,options:c}=e,d=(s=a==null?void 0:a.directives)==null?void 0:s[l];return this.getPreset({name:l,preset:d,options:c,params:n,set:o,defaults:i})},getColorSchemeOption(t,e){var n;return this.regex.resolve((n=t.darkModeSelector)!=null?n:e.options.darkModeSelector)},getLayerOrder(t,e={},n,o){const{cssLayer:i}=e;return i?`@layer ${Te(i.order||"primeui",n)}`:""},getCommonStyleSheet({name:t="",theme:e={},params:n,props:o={},set:i,defaults:s}){const l=this.getCommon({name:t,theme:e,params:n,set:i,defaults:s}),a=Object.entries(o).reduce((c,[d,f])=>c.push(`${d}="${f}"`)&&c,[]).join(" ");return Object.entries(l||{}).reduce((c,[d,f])=>{if(f!=null&&f.css){const p=Nt(f==null?void 0:f.css),g=`${d}-variables`;c.push(`<style type="text/css" data-primevue-style-id="${g}" ${a}>${p}</style>`)}return c},[]).join("")},getStyleSheet({name:t="",theme:e={},params:n,props:o={},set:i,defaults:s}){var l;const a={name:t,theme:e,params:n,set:i,defaults:s},c=(l=t.includes("-directive")?this.getPresetD(a):this.getPresetC(a))==null?void 0:l.css,d=Object.entries(o).reduce((f,[p,g])=>f.push(`${p}="${g}"`)&&f,[]).join(" ");return c?`<style type="text/css" data-primevue-style-id="${t}-variables" ${d}>${Nt(c)}</style>`:""},createTokens(t={},e,n="",o="",i={}){return Object.entries(t).forEach(([s,l])=>{const a=Ge(s,e.variable.excludedKeyRegex)?n:n?`${n}.${er(s)}`:er(s),c=o?`${o}.${s}`:s;nt(l)?this.createTokens(l,e,a,c,i):(i[a]||(i[a]={paths:[],computed(d,f={}){if(d){const p=this.paths.find(g=>g.scheme===d)||this.paths.find(g=>g.scheme==="none");return p==null?void 0:p.computed(d,f.binding)}return this.paths.map(p=>p.computed(p.scheme,f[p.scheme]))}}),i[a].paths.push({path:c,value:l,scheme:c.includes("colorScheme.light")?"light":c.includes("colorScheme.dark")?"dark":"none",computed(d,f={}){const p=/{([^}]*)}/g;let g=l;if(f.name=this.path,f.binding||(f.binding={}),Ge(l,p)){const _=l.trim().replaceAll(p,S=>{var k,D;const U=S.replace(/{|}/g,"");return(D=(k=i[U])==null?void 0:k.computed(d,f))==null?void 0:D.value}),A=/(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g,L=/var\([^)]+\)/g;g=Ge(_.replace(L,"0"),A)?`calc(${_})`:_}return ct(f.binding)&&delete f.binding,{colorScheme:d,path:this.path,paths:f,value:g.includes("undefined")?void 0:g}}}))}),i},getTokenValue(t,e,n){var o;const s=(c=>c.split(".").filter(f=>!Ge(f.toLowerCase(),n.variable.excludedKeyRegex)).join("."))(e),l=e.includes("colorScheme.light")?"light":e.includes("colorScheme.dark")?"dark":void 0,a=[(o=t[s])==null?void 0:o.computed(l)].flat().filter(c=>c);return a.length===1?a[0].value:a.reduce((c={},d)=>{const f=d,{colorScheme:p}=f,g=Dt(f,["colorScheme"]);return c[p]=g,c},void 0)},transformCSS(t,e,n,o,i={},s,l,a){if(Z(e)){const{cssLayer:c}=i;if(o!=="style"){const d=this.getColorSchemeOption(i,l),f=a?Rt(a,e):e;e=n==="dark"?d.reduce((p,{selector:g})=>(Z(g)&&(p+=g.includes("[CSS]")?g.replace("[CSS]",f):Rt(g,f)),p),""):Rt(a??":root",e)}if(c){const d={name:"primeui"};nt(c)&&(d.name=Te(c.name,{name:t,type:o})),Z(d.name)&&(e=Rt(`@layer ${d.name}`,e),s==null||s.layerNames(d.name))}return e}return""}},Q={defaults:{variable:{prefix:"p",selector:":root",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(t={}){const{theme:e}=t;e&&(this._theme=Yn(Mt({},e),{options:Mt(Mt({},this.defaults.options),e.options)}),this._tokens=Me.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}),qe.emit("theme:change",t)},getPreset(){return this.preset},setPreset(t){this._theme=Yn(Mt({},this.theme),{preset:t}),this._tokens=Me.createTokens(t,this.defaults),this.clearLoadedStyleNames(),qe.emit("preset:change",t),qe.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(t){this._theme=Yn(Mt({},this.theme),{options:t}),this.clearLoadedStyleNames(),qe.emit("options:change",t),qe.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 Me.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return Me.getCommon({name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(t="",e){const n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Me.getPresetC(n)},getDirective(t="",e){const n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Me.getPresetD(n)},getCustomPreset(t="",e,n,o){const i={name:t,preset:e,options:this.options,selector:n,params:o,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Me.getPreset(i)},getLayerOrderCSS(t=""){return Me.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,n="style",o){return Me.transformCSS(t,e,o,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,n={}){return Me.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,n={}){return Me.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),qe.emit(`theme:${e}:load`,t),!this._loadingStyles.size&&qe.emit("theme:load"))}},ot={_loadedStyleNames:new Set,getLoadedStyleNames:function(){return this._loadedStyleNames},isStyleNameLoaded:function(e){return this._loadedStyleNames.has(e)},setLoadedStyleName:function(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName:function(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames:function(){this._loadedStyleNames.clear()}};function Ut(t){"@babel/helpers - typeof";return Ut=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ut(t)}function 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 cr(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){Qs(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 Qs(t,e,n){return(e=ea(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ea(t){var e=ta(t,"string");return Ut(e)=="symbol"?e:e+""}function ta(t,e){if(Ut(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Ut(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function na(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;r.getCurrentInstance()?r.onMounted(t):e?t():r.nextTick(t)}var oa=0;function ra(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.ref(!1),o=r.ref(t),i=r.ref(null),s=Us()?window.document:void 0,l=e.document,a=l===void 0?s:l,c=e.immediate,d=c===void 0?!0:c,f=e.manual,p=f===void 0?!1:f,g=e.name,v=g===void 0?"style_".concat(++oa):g,_=e.id,A=_===void 0?void 0:_,L=e.media,S=L===void 0?void 0:L,k=e.nonce,D=k===void 0?void 0:k,U=e.first,G=U===void 0?!1:U,ue=e.onMounted,ne=ue===void 0?void 0:ue,Pe=e.onUpdated,oe=Pe===void 0?void 0:Pe,Y=e.onLoad,M=Y===void 0?void 0:Y,X=e.props,de=X===void 0?{}:X,fe=function(){},je=function(ze){var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a){var $e=cr(cr({},de),ht),u=$e.name||v,h=$e.id||A,w=$e.nonce||D;i.value=a.querySelector('style[data-primevue-style-id="'.concat(u,'"]'))||a.getElementById(h)||a.createElement("style"),i.value.isConnected||(o.value=ze||t,hn(i.value,{type:"text/css",id:h,media:S,nonce:w}),G?a.head.prepend(i.value):a.head.appendChild(i.value),Vs(i.value,"data-primevue-style-id",u),hn(i.value,$e),i.value.onload=function(I){return M==null?void 0:M(I,{name:u})},ne==null||ne(u)),!n.value&&(fe=r.watch(o,function(I){i.value.textContent=I,oe==null||oe(u)},{immediate:!0}),n.value=!0)}},Ze=function(){!a||!n.value||(fe(),Rs(i.value)&&a.head.removeChild(i.value),n.value=!1)};return d&&!p&&na(je),{id:A,name:v,el:i,css:o,unload:Ze,load:je,isLoaded:r.readonly(n)}}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 ur(t,e){return la(t)||aa(t,e)||sa(t,e)||ia()}function ia(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sa(t,e){if(t){if(typeof t=="string")return dr(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)?dr(t,e):void 0}}function dr(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 aa(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,i,s,l,a=[],c=!0,d=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(c=(o=s.call(n)).done)&&(a.push(o.value),a.length!==e);c=!0);}catch(f){d=!0,i=f}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw i}}return a}}function la(t){if(Array.isArray(t))return t}function fr(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 Jn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?fr(Object(n),!0).forEach(function(o){ca(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function ca(t,e,n){return(e=ua(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ua(t){var e=da(t,"string");return Vt(e)=="symbol"?e:e+""}function da(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 fa=function(e){var n=e.dt;return`
3
- * {
4
- box-sizing: border-box;
5
- }
6
-
7
- /* Non vue overlay animations */
8
- .p-connected-overlay {
9
- opacity: 0;
10
- transform: scaleY(0.8);
11
- transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1),
12
- opacity 0.12s cubic-bezier(0, 0, 0.2, 1);
13
- }
14
-
15
- .p-connected-overlay-visible {
16
- opacity: 1;
17
- transform: scaleY(1);
18
- }
1
+ (function(L,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):(L=typeof globalThis<"u"?globalThis:L||self,r(L.SfPrefeituraSPVueComponents={},L.Vue,L.SfPrefeituraSPVueAuth,L.VueRouter))})(this,function(L,r,Hn,as){"use strict";class Tt{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 Vo=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(s=>s.remove()),this.remove()}),this.inner=document.createElement("div"),this.inner.classList.add("sf-tooltip-inner"),this.wrapper.appendChild(this.inner)}Show(s){this.showTimeout&&clearTimeout(this.showTimeout),this.target=s.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 s=this.target.getBoundingClientRect();this.FixWidth();const c=this.wrapper,l=5;c.style.top=`${s.top+s.height-l}px`,c.style.left=`${s.left+s.width-l}px`,this.OutOfBottom()&&(c.style.top=`${s.top-c.clientHeight+l}px`),this.OutOfRight()&&(c.style.left=`${s.left-c.clientWidth+l}px`)}FixWidth(){const s=this.wrapper;if(!s)return;s.style.width="fit-content",s.style.wordBreak="normal",s.style.whiteSpace="nowrap";const c=window.innerWidth/2;s.clientWidth>c&&(s.style.width=`${c}px`,s.style.wordBreak="break-word",s.style.whiteSpace="normal")}OutOfBottom(){const s=this.wrapper;if(!s)return!1;const c=s.getBoundingClientRect(),l=window.innerHeight||document.documentElement.clientHeight;return c.bottom+10>l}OutOfRight(){const s=this.wrapper;if(!s)return!1;const c=s.getBoundingClientRect(),l=window.innerWidth||document.documentElement.clientWidth;return c.right+10>l}}const o=new n;return r.onBeforeUnmount(()=>{o.Hide()}),(i,s)=>(r.openBlock(),r.createElementBlock("div",{class:"sf-tooltip-anchor",onMouseenter:s[0]||(s[0]=(...c)=>r.unref(o).Show&&r.unref(o).Show(...c)),onMousedown:s[1]||(s[1]=(...c)=>r.unref(o).Hide&&r.unref(o).Hide(...c)),onMouseleave:s[2]||(s[2]=(...c)=>r.unref(o).Hide&&r.unref(o).Hide(...c))},[r.renderSlot(i.$slots,"default")],32))}}),xe=(t,e)=>{const n=t.__vccOpts||t;for(const[o,i]of e)n[o]=i;return n},ls={},cs={class:"sf-loading-circle"};function us(t,e){return r.openBlock(),r.createElementBlock("div",cs,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 jo=xe(ls,[["render",us]]),ds=["data-size"],fs=["disabled","data-p-loading","tabindex"],ms=["data-color"],Ie=xe(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?Vo:"div"),i=r.computed(()=>new Tt(n.tooltip?"":"display-content").AddClass("loading",n.loading).AddClass("disabled",n.disabled).Build()),s=r.computed(()=>new Tt(`${n.class} sf-icon`).AddClass("select-none").AddClass(`${n.color}-color`,!!n.color&&n.color!=="inherit").Build()),c=a=>{n.disabled||n.loading||l("click",a)},l=e;return(a,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(s.value)},[n.loading?(r.openBlock(),r.createBlock(jo,{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,fs),n.dot&&!n.disabled&&!n.loading?(r.openBlock(),r.createElementBlock("span",{key:0,"data-color":n.dotColor},null,8,ms)):r.createCommentVNode("",!0)],64))],6)):r.createCommentVNode("",!0)],10,ds)]),_:1},8,["text","class"]))}}),[["__scopeId","data-v-c242d02a"]]),ps={class:"sf-tab-navigation"},hs=["data-active"],gs=["href","onClick"],ys=r.defineComponent({__name:"TabNavigation",props:{tabs:{}},setup(t){const e=t,n=r.ref(null),o=new ResizeObserver(a=>{l()}),i=r.ref(!1),s=r.ref(!1);function c(a=!1){const u=n.value.clientWidth;n.value.scrollLeft+=a?-u:u}function l(){const a=n.value.scrollWidth-n.value.clientWidth;i.value=n.value.scrollLeft>10,s.value=n.value.scrollLeft<a-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{}}),(a,u)=>{const f=r.resolveComponent("RouterLink");return r.openBlock(),r.createElementBlock("div",ps,[r.createElementVNode("div",{class:r.normalizeClass(["left-arrow",{active:i.value}]),onClick:u[0]||(u[0]=m=>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,m=>(r.openBlock(),r.createBlock(f,{to:m.route,custom:!0},{default:r.withCtx(({navigate:p,isActive:g})=>[r.createElementVNode("li",{"data-active":g},[r.renderSlot(a.$slots,"item",{item:m,navigate:p,isActive:g},()=>[r.createElementVNode("a",{href:m.route,class:r.normalizeClass({active:g}),onClick:p},r.toDisplayString(m.text),11,gs)])],8,hs)]),_:2},1032,["to"]))),256))],512),r.createElementVNode("div",{class:r.normalizeClass(["right-arrow",{active:s.value}]),onClick:u[1]||(u[1]=m=>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)])}}}),Ho=xe(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"]]),bs=["id","name","disabled","data-color","form","type","data-p-loading"],zn=xe(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 Tt(`${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||s("click",c)},s=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(Ho,{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,bs)):r.createCommentVNode("",!0)}}),[["__scopeId","data-v-79a81e53"]]),vs={class:"sf-drawer-title"},_s={class:"sf-drawer-action"},Fo=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(),s=r.ref(n.visible),c=r.ref(!1),l=r.ref(0),a="sf-drawer-"+Math.random().toString(36).slice(2,11)+"-"+Date.now();function u(){s.value=!1}function f(y){if(!n.dismissableMask)return;const I=y.target;I&&I.id===a&&(s.value=!1)}function m(y){(y.key==="Escape"||y.code==="Escape")&&u()}function p(){o("open"),window.document.addEventListener("keydown",m,!0)}function g(y){l.value=Fn()+1,y.style.zIndex=`${l.value}`}function _(y){o("before-close"),y?.parentElement?.classList.add("sf-mask-overlay-leave")}function w(){window.document.removeEventListener("keydown",m,!0),c.value=!1}function S(){return new Tt("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=>{s.value=y}),r.watch(()=>s.value,y=>{o("update:visible",y),y&&(c.value=!0)}),(y,I)=>(r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[c.value?(r.openBlock(),r.createElementBlock("div",{key:0,id:a,class:r.normalizeClass(S()),style:r.normalizeStyle({zIndex:l.value-1}),onClick:r.withModifiers(f,["stop"])},[r.createVNode(r.Transition,{name:"sf-drawer",appear:"",onBeforeEnter:g,onEnter:p,onBeforeLeave:_,onAfterLeave:w},{default:r.withCtx(()=>[s.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",vs,r.toDisplayString(n.title),1)]),I[0]||(I[0]=r.createElementVNode("div",{class:"sf-drawer-spacer"},null,-1)),r.createElementVNode("div",_s,[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)]))}}),ws=["data-icon"],Ss=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 Tt("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,s)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(o.value),"data-icon":n.value},[r.renderSlot(i.$slots,"default")],10,ws))}});function Cs(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function ks(t,e){if(t&&e){const n=o=>{Cs(t,o)||(t.classList?t.classList.add(o):t.className+=" "+o)};[e].flat().filter(Boolean).forEach(o=>o.split(" ").forEach(n))}}function Un(t,e){if(t&&e){const n=o=>{t.classList?t.classList.remove(o):t.className=t.className.replace(new RegExp("(^|\\b)"+o.split(" ").join("|")+"(\\b|$)","gi")," ")};[e].flat().filter(Boolean).forEach(o=>o.split(" ").forEach(n))}}function zo(t){return t?Math.abs(t.scrollLeft):0}function Es(t,e){return t instanceof HTMLElement?t.offsetWidth:0}function Ps(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function Ts(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&Ps(t))}function It(t){return typeof Element<"u"?t instanceof Element:t!==null&&typeof t=="object"&&t.nodeType===1&&typeof t.nodeName=="string"}function fn(t,e={}){if(It(t)){const n=(o,i)=>{var s,c;const l=(s=t?.$attrs)!=null&&s[o]?[(c=t?.$attrs)==null?void 0:c[o]]:[];return[i].flat().reduce((a,u)=>{if(u!=null){const f=typeof u;if(f==="string"||f==="number")a.push(u);else if(f==="object"){const m=Array.isArray(u)?n(o,u):Object.entries(u).map(([p,g])=>o==="style"&&(g||g===0)?`${p.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${g}`:g?p:void 0);a=m.length?a.concat(m.filter(p=>!!p)):a}}return a},l)};Object.entries(e).forEach(([o,i])=>{if(i!=null){const s=o.match(/^on(.+)/);s?t.addEventListener(s[1].toLowerCase(),i):o==="p-bind"||o==="pBind"?fn(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 Is(t,e={},...n){{const o=document.createElement(t);return fn(o,e),o.append(...n),o}}function Se(t,e){return It(t)?t.matches(e)?t:t.querySelector(e):null}function At(t,e){t&&document.activeElement!==t&&t.focus(e)}function Ot(t,e){if(It(t)){const n=t.getAttribute(e);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function Uo(t){if(t){let e=t.offsetHeight;const n=getComputedStyle(t);return e-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),e}return 0}function As(t){if(t){const e=t.getBoundingClientRect();return{top:e.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:e.left+(window.pageXOffset||zo(document.documentElement)||zo(document.body)||0)}}return{top:"auto",left:"auto"}}function Os(t,e){return t?t.offsetHeight:0}function Ko(t){if(t){let e=t.offsetWidth;const n=getComputedStyle(t);return e-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth),e}return 0}function $s(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ls(t,e="",n){It(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}function Qe(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function Kn(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);const o=Array.isArray(t),i=Array.isArray(e);let s,c,l;if(o&&i){if(c=t.length,c!=e.length)return!1;for(s=c;s--!==0;)if(!Kn(t[s],e[s],n))return!1;return!0}if(o!=i)return!1;const a=t instanceof Date,u=e instanceof Date;if(a!=u)return!1;if(a&&u)return t.getTime()==e.getTime();const f=t instanceof RegExp,m=e instanceof RegExp;if(f!=m)return!1;if(f&&m)return t.toString()==e.toString();const p=Object.keys(t);if(c=p.length,c!==Object.keys(e).length)return!1;for(s=c;s--!==0;)if(!Object.prototype.hasOwnProperty.call(e,p[s]))return!1;for(s=c;s--!==0;)if(l=p[s],!Kn(t[l],e[l],n))return!1;return!0}function xs(t,e){return Kn(t,e)}function Wn(t){return typeof t=="function"&&"call"in t&&"apply"in t}function O(t){return!Qe(t)}function lt(t,e,n){return xs(t,e)}function et(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function Wo(t,e){let n;if(O(t))try{n=t.findLast(e)}catch{n=[...t].reverse().find(e)}return n}function Z(t,...e){return Wn(t)?t(...e):t}function me(t,e=!0){return typeof t=="string"&&(e||t!=="")}function Ae(t){return me(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function Gn(t,e="",n={}){const o=Ae(e).split("."),i=o.shift();if(i){if(et(t)){const s=Object.keys(t).find(c=>Ae(c)===i)||"";return Gn(Z(t[s],n),o.join("."),n)}return}return Z(t,n)}function Go(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function Bs(t){return O(t)&&!isNaN(t)}function Ns(t=""){return O(t)&&t.length===1&&!!t.match(/\S| /)}function ct(t,e){if(e){const n=e.test(t);return e.lastIndex=0,n}return!1}function $t(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 Ds(t){return me(t,!1)?t[0].toUpperCase()+t.slice(1):t}function qo(t){return me(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,n)=>n===0?e:"-"+e.toLowerCase()).toLowerCase():t}function Yo(){const t=new Map;return{on(e,n){let o=t.get(e);return o?o.push(n):o=[n],t.set(e,o),this},off(e,n){const o=t.get(e);return o&&o.splice(o.indexOf(n)>>>0,1),this},emit(e,n){const o=t.get(e);o&&o.forEach(i=>{i(n)})},clear(){t.clear()}}}var mn={};function Ms(t="pui_id_"){return Object.hasOwn(mn,t)||(mn[t]=0),mn[t]++,`${t}${mn[t]}`}var Rs=Object.defineProperty,Vs=Object.defineProperties,js=Object.getOwnPropertyDescriptors,pn=Object.getOwnPropertySymbols,Xo=Object.prototype.hasOwnProperty,Zo=Object.prototype.propertyIsEnumerable,Jo=(t,e,n)=>e in t?Rs(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ce=(t,e)=>{for(var n in e||(e={}))Xo.call(e,n)&&Jo(t,n,e[n]);if(pn)for(var n of pn(e))Zo.call(e,n)&&Jo(t,n,e[n]);return t},qn=(t,e)=>Vs(t,js(e)),Be=(t,e)=>{var n={};for(var o in t)Xo.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&&Zo.call(t,o)&&(n[o]=t[o]);return n},Hs=Yo(),ie=Hs,Yn=/{([^}]*)}/g,Fs=/(\d+\s+[\+\-\*\/]\s+\d+)/g,zs=/var\([^)]+\)/g;function Us(t){return et(t)&&t.hasOwnProperty("$value")&&t.hasOwnProperty("$type")?t.$value:t}function Ks(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function Xn(t="",e=""){return Ks(`${me(t,!1)&&me(e,!1)?`${t}-`:t}${e}`)}function Qo(t="",e=""){return`--${Xn(t,e)}`}function Ws(t=""){const e=(t.match(/{/g)||[]).length,n=(t.match(/}/g)||[]).length;return(e+n)%2!==0}function er(t,e="",n="",o=[],i){if(me(t)){const s=t.trim();if(Ws(s))return;if(ct(s,Yn)){const c=s.replaceAll(Yn,l=>{const u=l.replace(/{|}/g,"").split(".").filter(f=>!o.some(m=>ct(f,m)));return`var(${Qo(n,qo(u.join("-")))}${O(i)?`, ${i}`:""})`});return ct(c.replace(zs,"0"),Fs)?`calc(${c})`:c}return s}else if(Bs(t))return t}function Gs(t,e,n){me(e,!1)&&t.push(`${e}:${n};`)}function ut(t,e){return t?`${t}{${e}}`:""}function tr(t,e){if(t.indexOf("dt(")===-1)return t;function n(c,l){const a=[];let u=0,f="",m=null,p=0;for(;u<=c.length;){const g=c[u];if((g==='"'||g==="'"||g==="`")&&c[u-1]!=="\\"&&(m=m===g?null:g),!m&&(g==="("&&p++,g===")"&&p--,(g===","||u===c.length)&&p===0)){const _=f.trim();_.startsWith("dt(")?a.push(tr(_,l)):a.push(o(_)),f="",u++;continue}g!==void 0&&(f+=g),u++}return a}function o(c){const l=c[0];if((l==='"'||l==="'"||l==="`")&&c[c.length-1]===l)return c.slice(1,-1);const a=Number(c);return isNaN(a)?c:a}const i=[],s=[];for(let c=0;c<t.length;c++)if(t[c]==="d"&&t.slice(c,c+3)==="dt(")s.push(c),c+=2;else if(t[c]===")"&&s.length>0){const l=s.pop();s.length===0&&i.push([l,c])}if(!i.length)return t;for(let c=i.length-1;c>=0;c--){const[l,a]=i[c],u=t.slice(l+3,a),f=n(u,e),m=e(...f);t=t.slice(0,l)+m+t.slice(a+1)}return t}var tt=(...t)=>qs(H.getTheme(),...t),qs=(t={},e,n,o)=>{if(e){const{variable:i,options:s}=H.defaults||{},{prefix:c,transform:l}=t?.options||s||{},a=ct(e,Yn)?e:`{${e}}`;return o==="value"||Qe(o)&&l==="strict"?H.getTokenValue(e):er(a,void 0,c,[i.excludedKeyRegex],n)}return""};function hn(t,...e){if(t instanceof Array){const n=t.reduce((o,i,s)=>{var c;return o+i+((c=Z(e[s],{dt:tt}))!=null?c:"")},"");return tr(n,tt)}return Z(t,{dt:tt})}function Ys(t,e={}){const n=H.defaults.variable,{prefix:o=n.prefix,selector:i=n.selector,excludedKeyRegex:s=n.excludedKeyRegex}=e,c=[],l=[],a=[{node:t,path:o}];for(;a.length;){const{node:f,path:m}=a.pop();for(const p in f){const g=f[p],_=Us(g),S=ct(p,s)?Xn(m):Xn(m,qo(p));if(et(_))a.push({node:_,path:S});else{const y=Qo(S),I=er(_,S,o,[s]);Gs(l,y,I);let k=S;o&&k.startsWith(o+"-")&&(k=k.slice(o.length+1)),c.push(k.replace(/-/g,"."))}}}const u=l.join("");return{value:l,tokens:c,declarations:u,css:ut(i,u)}}var ke={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(t){return{type:"class",selector:t,matched:this.pattern.test(t.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(t){return{type:"attr",selector:`:root${t}`,matched:this.pattern.test(t.trim())}}},media:{pattern:/^@media (.*)$/,resolve(t){return{type:"media",selector:`${t}{:root{[CSS]}}`,matched:this.pattern.test(t.trim())}}},system:{pattern:/^system$/,resolve(t){return{type:"system",selector:"@media (prefers-color-scheme: dark){:root{[CSS]}}",matched:this.pattern.test(t.trim())}}},custom:{resolve(t){return{type:"custom",selector:t,matched:!0}}}},resolve(t){const e=Object.keys(this.rules).filter(n=>n!=="custom").map(n=>this.rules[n]);return[t].flat().map(n=>{var o;return(o=e.map(i=>i.resolve(n)).find(i=>i.matched))!=null?o:this.rules.custom.resolve(n)})}},_toVariables(t,e){return Ys(t,{prefix:e?.prefix})},getCommon({name:t="",theme:e={},params:n,set:o,defaults:i}){var s,c,l,a,u,f,m;const{preset:p,options:g}=e;let _,w,S,y,I,k,b;if(O(p)&&g.transform!=="strict"){const{primitive:E,semantic:U,extend:X}=p,ve=U||{},{colorScheme:te}=ve,_e=Be(ve,["colorScheme"]),T=X||{},{colorScheme:j}=T,ne=Be(T,["colorScheme"]),ce=te||{},{dark:Te}=ce,qe=Be(ce,["dark"]),Me=j||{},{dark:Re}=Me,Ye=Be(Me,["dark"]),we=O(E)?this._toVariables({primitive:E},g):{},V=O(_e)?this._toVariables({semantic:_e},g):{},$e=O(qe)?this._toVariables({light:qe},g):{},K=O(Te)?this._toVariables({dark:Te},g):{},Ve=O(ne)?this._toVariables({semantic:ne},g):{},F=O(Ye)?this._toVariables({light:Ye},g):{},Xe=O(Re)?this._toVariables({dark:Re},g):{},[rn,Ln]=[(s=we.declarations)!=null?s:"",we.tokens],[sn,xn]=[(c=V.declarations)!=null?c:"",V.tokens||[]],[Bn,Ze]=[(l=$e.declarations)!=null?l:"",$e.tokens||[]],[vt,je]=[(a=K.declarations)!=null?a:"",K.tokens||[]],[an,ln]=[(u=Ve.declarations)!=null?u:"",Ve.tokens||[]],[Je,_t]=[(f=F.declarations)!=null?f:"",F.tokens||[]],[wt,Nn]=[(m=Xe.declarations)!=null?m:"",Xe.tokens||[]];_=this.transformCSS(t,rn,"light","variable",g,o,i),w=Ln;const Dn=this.transformCSS(t,`${sn}${Bn}`,"light","variable",g,o,i),Lo=this.transformCSS(t,`${vt}`,"dark","variable",g,o,i);S=`${Dn}${Lo}`,y=[...new Set([...xn,...Ze,...je])];const cn=this.transformCSS(t,`${an}${Je}color-scheme:light`,"light","variable",g,o,i),at=this.transformCSS(t,`${wt}color-scheme:dark`,"dark","variable",g,o,i);I=`${cn}${at}`,k=[...new Set([...ln,..._t,...Nn])],b=Z(p.css,{dt:tt})}return{primitive:{css:_,tokens:w},semantic:{css:S,tokens:y},global:{css:I,tokens:k},style:b}},getPreset({name:t="",preset:e={},options:n,params:o,set:i,defaults:s,selector:c}){var l,a,u;let f,m,p;if(O(e)&&n.transform!=="strict"){const g=t.replace("-directive",""),_=e,{colorScheme:w,extend:S,css:y}=_,I=Be(_,["colorScheme","extend","css"]),k=S||{},{colorScheme:b}=k,E=Be(k,["colorScheme"]),U=w||{},{dark:X}=U,ve=Be(U,["dark"]),te=b||{},{dark:_e}=te,T=Be(te,["dark"]),j=O(I)?this._toVariables({[g]:Ce(Ce({},I),E)},n):{},ne=O(ve)?this._toVariables({[g]:Ce(Ce({},ve),T)},n):{},ce=O(X)?this._toVariables({[g]:Ce(Ce({},X),_e)},n):{},[Te,qe]=[(l=j.declarations)!=null?l:"",j.tokens||[]],[Me,Re]=[(a=ne.declarations)!=null?a:"",ne.tokens||[]],[Ye,we]=[(u=ce.declarations)!=null?u:"",ce.tokens||[]],V=this.transformCSS(g,`${Te}${Me}`,"light","variable",n,i,s,c),$e=this.transformCSS(g,Ye,"dark","variable",n,i,s,c);f=`${V}${$e}`,m=[...new Set([...qe,...Re,...we])],p=Z(y,{dt:tt})}return{css:f,tokens:m,style:p}},getPresetC({name:t="",theme:e={},params:n,set:o,defaults:i}){var s;const{preset:c,options:l}=e,a=(s=c?.components)==null?void 0:s[t];return this.getPreset({name:t,preset:a,options:l,params:n,set:o,defaults:i})},getPresetD({name:t="",theme:e={},params:n,set:o,defaults:i}){var s,c;const l=t.replace("-directive",""),{preset:a,options:u}=e,f=((s=a?.components)==null?void 0:s[l])||((c=a?.directives)==null?void 0:c[l]);return this.getPreset({name:l,preset:f,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){const{cssLayer:i}=e;return i?`@layer ${Z(i.order||"primeui",n)}`:""},getCommonStyleSheet({name:t="",theme:e={},params:n,props:o={},set:i,defaults:s}){const c=this.getCommon({name:t,theme:e,params:n,set:i,defaults:s}),l=Object.entries(o).reduce((a,[u,f])=>a.push(`${u}="${f}"`)&&a,[]).join(" ");return Object.entries(c||{}).reduce((a,[u,f])=>{if(et(f)&&Object.hasOwn(f,"css")){const m=$t(f.css),p=`${u}-variables`;a.push(`<style type="text/css" data-primevue-style-id="${p}" ${l}>${m}</style>`)}return a},[]).join("")},getStyleSheet({name:t="",theme:e={},params:n,props:o={},set:i,defaults:s}){var c;const l={name:t,theme:e,params:n,set:i,defaults:s},a=(c=t.includes("-directive")?this.getPresetD(l):this.getPresetC(l))==null?void 0:c.css,u=Object.entries(o).reduce((f,[m,p])=>f.push(`${m}="${p}"`)&&f,[]).join(" ");return a?`<style type="text/css" data-primevue-style-id="${t}-variables" ${u}>${$t(a)}</style>`:""},createTokens(t={},e,n="",o="",i={}){return{}},getTokenValue(t,e,n){var o;const s=(a=>a.split(".").filter(f=>!ct(f.toLowerCase(),n.variable.excludedKeyRegex)).join("."))(e),c=e.includes("colorScheme.light")?"light":e.includes("colorScheme.dark")?"dark":void 0,l=[(o=t[s])==null?void 0:o.computed(c)].flat().filter(a=>a);return l.length===1?l[0].value:l.reduce((a={},u)=>{const f=u,{colorScheme:m}=f,p=Be(f,["colorScheme"]);return a[m]=p,a},void 0)},getSelectorRule(t,e,n,o){return n==="class"||n==="attr"?ut(O(e)?`${t}${e},${t} ${e}`:t,o):ut(t,O(e)?ut(e,o):o)},transformCSS(t,e,n,o,i={},s,c,l){if(O(e)){const{cssLayer:a}=i;if(o!=="style"){const u=this.getColorSchemeOption(i,c);e=n==="dark"?u.reduce((f,{type:m,selector:p})=>(O(p)&&(f+=p.includes("[CSS]")?p.replace("[CSS]",e):this.getSelectorRule(p,l,m,e)),f),""):ut(l??":root",e)}if(a){const u={name:"primeui"};et(a)&&(u.name=Z(a.name,{name:t,type:o})),O(u.name)&&(e=ut(`@layer ${u.name}`,e),s?.layerNames(u.name))}return e}return""}},H={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={}){const{theme:e}=t;e&&(this._theme=qn(Ce({},e),{options:Ce(Ce({},this.defaults.options),e.options)}),this._tokens=ke.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(Ce({},this.theme),{preset:t}),this._tokens=ke.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(Ce({},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 ke.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return ke.getCommon({name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(t="",e){const n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return ke.getPresetC(n)},getDirective(t="",e){const n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return ke.getPresetD(n)},getCustomPreset(t="",e,n,o){const i={name:t,preset:e,options:this.options,selector:n,params:o,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return ke.getPreset(i)},getLayerOrderCSS(t=""){return ke.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,n="style",o){return ke.transformCSS(t,e,o,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,n={}){return ke.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,n={}){return ke.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"))}},Ue={_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()}},Xs=`
2
+ *,
3
+ ::before,
4
+ ::after {
5
+ box-sizing: border-box;
6
+ }
19
7
 
20
- .p-connected-overlay-hidden {
21
- opacity: 0;
22
- transform: scaleY(1);
23
- transition: opacity 0.1s linear;
24
- }
8
+ /* Non vue overlay animations */
9
+ .p-connected-overlay {
10
+ opacity: 0;
11
+ transform: scaleY(0.8);
12
+ transition:
13
+ transform 0.12s cubic-bezier(0, 0, 0.2, 1),
14
+ opacity 0.12s cubic-bezier(0, 0, 0.2, 1);
15
+ }
25
16
 
26
- /* Vue based overlay animations */
27
- .p-connected-overlay-enter-from {
28
- opacity: 0;
29
- transform: scaleY(0.8);
30
- }
17
+ .p-connected-overlay-visible {
18
+ opacity: 1;
19
+ transform: scaleY(1);
20
+ }
31
21
 
32
- .p-connected-overlay-leave-to {
33
- opacity: 0;
34
- }
22
+ .p-connected-overlay-hidden {
23
+ opacity: 0;
24
+ transform: scaleY(1);
25
+ transition: opacity 0.1s linear;
26
+ }
35
27
 
36
- .p-connected-overlay-enter-active {
37
- transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1),
38
- opacity 0.12s cubic-bezier(0, 0, 0.2, 1);
39
- }
28
+ /* Vue based overlay animations */
29
+ .p-connected-overlay-enter-from {
30
+ opacity: 0;
31
+ transform: scaleY(0.8);
32
+ }
40
33
 
41
- .p-connected-overlay-leave-active {
42
- transition: opacity 0.1s linear;
43
- }
34
+ .p-connected-overlay-leave-to {
35
+ opacity: 0;
36
+ }
44
37
 
45
- /* Toggleable Content */
46
- .p-toggleable-content-enter-from,
47
- .p-toggleable-content-leave-to {
48
- max-height: 0;
49
- }
38
+ .p-connected-overlay-enter-active {
39
+ transition:
40
+ transform 0.12s cubic-bezier(0, 0, 0.2, 1),
41
+ opacity 0.12s cubic-bezier(0, 0, 0.2, 1);
42
+ }
50
43
 
51
- .p-toggleable-content-enter-to,
52
- .p-toggleable-content-leave-from {
53
- max-height: 1000px;
54
- }
44
+ .p-connected-overlay-leave-active {
45
+ transition: opacity 0.1s linear;
46
+ }
55
47
 
56
- .p-toggleable-content-leave-active {
57
- overflow: hidden;
58
- transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);
59
- }
48
+ /* Toggleable Content */
49
+ .p-toggleable-content-enter-from,
50
+ .p-toggleable-content-leave-to {
51
+ max-height: 0;
52
+ }
60
53
 
61
- .p-toggleable-content-enter-active {
62
- overflow: hidden;
63
- transition: max-height 1s ease-in-out;
64
- }
54
+ .p-toggleable-content-enter-to,
55
+ .p-toggleable-content-leave-from {
56
+ max-height: 1000px;
57
+ }
65
58
 
66
- .p-disabled,
67
- .p-disabled * {
68
- cursor: default;
69
- pointer-events: none;
70
- user-select: none;
71
- }
59
+ .p-toggleable-content-leave-active {
60
+ overflow: hidden;
61
+ transition: max-height 0.45s cubic-bezier(0, 1, 0, 1);
62
+ }
72
63
 
73
- .p-disabled,
74
- .p-component:disabled {
75
- opacity: `.concat(n("disabled.opacity"),`;
76
- }
64
+ .p-toggleable-content-enter-active {
65
+ overflow: hidden;
66
+ transition: max-height 1s ease-in-out;
67
+ }
77
68
 
78
- .pi {
79
- font-size: `).concat(n("icon.size"),`;
80
- }
69
+ .p-disabled,
70
+ .p-disabled * {
71
+ cursor: default;
72
+ pointer-events: none;
73
+ user-select: none;
74
+ }
81
75
 
82
- .p-icon {
83
- width: `).concat(n("icon.size"),`;
84
- height: `).concat(n("icon.size"),`;
85
- }
76
+ .p-disabled,
77
+ .p-component:disabled {
78
+ opacity: dt('disabled.opacity');
79
+ }
86
80
 
87
- .p-overlay-mask {
88
- background: `).concat(n("mask.background"),`;
89
- color: `).concat(n("mask.color"),`;
90
- position: fixed;
91
- top: 0;
92
- left: 0;
93
- width: 100%;
94
- height: 100%;
95
- }
81
+ .pi {
82
+ font-size: dt('icon.size');
83
+ }
96
84
 
97
- .p-overlay-mask-enter {
98
- animation: p-overlay-mask-enter-animation `).concat(n("mask.transition.duration"),` forwards;
99
- }
85
+ .p-icon {
86
+ width: dt('icon.size');
87
+ height: dt('icon.size');
88
+ }
100
89
 
101
- .p-overlay-mask-leave {
102
- animation: p-overlay-mask-leave-animation `).concat(n("mask.transition.duration"),` forwards;
103
- }
90
+ .p-overlay-mask {
91
+ background: dt('mask.background');
92
+ color: dt('mask.color');
93
+ position: fixed;
94
+ top: 0;
95
+ left: 0;
96
+ width: 100%;
97
+ height: 100%;
98
+ }
104
99
 
105
- @keyframes p-overlay-mask-enter-animation {
106
- from {
107
- background: transparent;
100
+ .p-overlay-mask-enter {
101
+ animation: p-overlay-mask-enter-animation dt('mask.transition.duration') forwards;
108
102
  }
109
- to {
110
- background: `).concat(n("mask.background"),`;
103
+
104
+ .p-overlay-mask-leave {
105
+ animation: p-overlay-mask-leave-animation dt('mask.transition.duration') forwards;
111
106
  }
112
- }
113
- @keyframes p-overlay-mask-leave-animation {
114
- from {
115
- background: `).concat(n("mask.background"),`;
107
+
108
+ @keyframes p-overlay-mask-enter-animation {
109
+ from {
110
+ background: transparent;
111
+ }
112
+ to {
113
+ background: dt('mask.background');
114
+ }
116
115
  }
117
- to {
118
- background: transparent;
116
+ @keyframes p-overlay-mask-leave-animation {
117
+ from {
118
+ background: dt('mask.background');
119
+ }
120
+ to {
121
+ background: transparent;
122
+ }
119
123
  }
120
- }
121
- `)},ma=function(e){var n=e.dt;return`
124
+ `;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 nr(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 or(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?nr(Object(n),!0).forEach(function(o){Zs(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Zs(t,e,n){return(e=Js(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Js(t){var e=Qs(t,"string");return Lt(e)=="symbol"?e:e+""}function Qs(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)}function ea(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 ta=0;function na(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.ref(!1),o=r.ref(t),i=r.ref(null),s=$s()?window.document:void 0,c=e.document,l=c===void 0?s:c,a=e.immediate,u=a===void 0?!0:a,f=e.manual,m=f===void 0?!1:f,p=e.name,g=p===void 0?"style_".concat(++ta):p,_=e.id,w=_===void 0?void 0:_,S=e.media,y=S===void 0?void 0:S,I=e.nonce,k=I===void 0?void 0:I,b=e.first,E=b===void 0?!1:b,U=e.onMounted,X=U===void 0?void 0:U,ve=e.onUpdated,te=ve===void 0?void 0:ve,_e=e.onLoad,T=_e===void 0?void 0:_e,j=e.props,ne=j===void 0?{}:j,ce=function(){},Te=function(Re){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(l){var we=or(or({},ne),Ye),V=we.name||g,$e=we.id||w,K=we.nonce||k;i.value=l.querySelector('style[data-primevue-style-id="'.concat(V,'"]'))||l.getElementById($e)||l.createElement("style"),i.value.isConnected||(o.value=Re||t,fn(i.value,{type:"text/css",id:$e,media:y,nonce:K}),E?l.head.prepend(i.value):l.head.appendChild(i.value),Ls(i.value,"data-primevue-style-id",V),fn(i.value,we),i.value.onload=function(Ve){return T?.(Ve,{name:V})},X?.(V)),!n.value&&(ce=r.watch(o,function(Ve){i.value.textContent=Ve,te?.(V)},{immediate:!0}),n.value=!0)}},qe=function(){!l||!n.value||(ce(),Ts(i.value)&&l.head.removeChild(i.value),n.value=!1,i.value=null)};return u&&!m&&ea(Te),{id:w,name:g,el:i,css:o,unload:qe,load:Te,isLoaded:r.readonly(n)}}function xt(t){"@babel/helpers - typeof";return xt=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},xt(t)}var rr,ir,sr,ar;function lr(t,e){return sa(t)||ia(t,e)||ra(t,e)||oa()}function oa(){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 ra(t,e){if(t){if(typeof t=="string")return cr(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)?cr(t,e):void 0}}function cr(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 ia(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,i,s,c,l=[],a=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(a=(o=s.call(n)).done)&&(l.push(o.value),l.length!==e);a=!0);}catch(f){u=!0,i=f}finally{try{if(!a&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(u)throw i}}return l}}function sa(t){if(Array.isArray(t))return t}function ur(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 Zn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ur(Object(n),!0).forEach(function(o){aa(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ur(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function aa(t,e,n){return(e=la(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function la(t){var e=ca(t,"string");return xt(e)=="symbol"?e:e+""}function ca(t,e){if(xt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(xt(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 ua=function(e){var n=e.dt;return`
122
126
  .p-hidden-accessible {
123
127
  border: 0;
124
128
  clip: rect(0 0 0 0);
125
129
  height: 1px;
126
130
  margin: -1px;
131
+ opacity: 0;
127
132
  overflow: hidden;
128
133
  padding: 0;
134
+ pointer-events: none;
129
135
  position: absolute;
136
+ white-space: nowrap;
130
137
  width: 1px;
131
138
  }
132
139
 
133
- .p-hidden-accessible input,
134
- .p-hidden-accessible select {
135
- transform: scale(0);
136
- }
137
-
138
140
  .p-overflow-hidden {
139
141
  overflow: hidden;
140
142
  padding-right: `.concat(n("scrollbar.width"),`;
141
143
  }
142
- `)},pa={},ha={},ye={name:"base",css:ma,theme:fa,classes:pa,inlineStyles:ha,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(s){return s},i=o(Te(e,{dt:Zn}));return i?ra(Nt(i),Jn({name:this.name},n)):{}},loadCSS:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.load(this.css,e)},loadTheme:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.load(this.theme,n,function(o){return Q.transformCSS(n.name||e.name,o)})},getCommonTheme:function(e){return Q.getCommon(this.name,e)},getComponentTheme:function(e){return Q.getComponent(this.name,e)},getDirectiveTheme:function(e){return Q.getDirective(this.name,e)},getPresetTheme:function(e,n,o){return Q.getCustomPreset(this.name,e,n,o)},getLayerOrderThemeCSS:function(){return Q.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=Te(this.css,{dt:Zn}),i=Nt("".concat(o).concat(e)),s=Object.entries(n).reduce(function(l,a){var c=ur(a,2),d=c[0],f=c[1];return l.push("".concat(d,'="').concat(f,'"'))&&l},[]).join(" ");return'<style type="text/css" data-primevue-style-id="'.concat(this.name,'" ').concat(s,">").concat(i,"</style>")}return""},getCommonThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Q.getCommonStyleSheet(this.name,e,n)},getThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=[Q.getStyleSheet(this.name,e,n)];if(this.theme){var i=this.name==="base"?"global-style":"".concat(this.name,"-style"),s=Te(this.theme,{dt:Zn}),l=Nt(Q.transformCSS(i,s)),a=Object.entries(n).reduce(function(c,d){var f=ur(d,2),p=f[0],g=f[1];return c.push("".concat(p,'="').concat(g,'"'))&&c},[]).join(" ");o.push('<style type="text/css" data-primevue-style-id="'.concat(i,'" ').concat(a,">").concat(l,"</style>"))}return o.join("")},extend:function(e){return Jn(Jn({},this),{},{css:void 0,theme:void 0},e)}},mr=ye.extend({name:"common"});function Ht(t){"@babel/helpers - typeof";return Ht=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},Ht(t)}function ga(t){return yr(t)||ya(t)||hr(t)||pr()}function ya(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function vn(t,e){return yr(t)||ba(t,e)||hr(t,e)||pr()}function pr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
143
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hr(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 ba(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,i,s,l,a=[],c=!0,d=!1;try{if(s=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=s.call(n)).done)&&(a.push(o.value),a.length!==e);c=!0);}catch(f){d=!0,i=f}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw i}}return a}}function yr(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 K(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){wn(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 wn(t,e,n){return(e=va(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function va(t){var e=wa(t,"string");return Ht(e)=="symbol"?e:e+""}function wa(t,e){if(Ht(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Ht(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var kn={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){e||(this._loadCoreStyles(),this._themeChangeListener(this._loadCoreStyles))}},dt:{immediate:!0,handler:function(e){var n=this;e?(this._loadScopedThemeStyles(e),this._themeChangeListener(function(){return n._loadScopedThemeStyles(e)})):this._unloadScopedThemeStyles()}}},scopedStyleEl:void 0,rootEl:void 0,beforeCreate:function(){var e,n,o,i,s,l,a,c,d,f,p,g=(e=this.pt)===null||e===void 0?void 0:e._usept,v=g?(n=this.pt)===null||n===void 0||(n=n.originalValue)===null||n===void 0?void 0:n[this.$.type.name]:void 0,_=g?(o=this.pt)===null||o===void 0||(o=o.value)===null||o===void 0?void 0:o[this.$.type.name]:this.pt;(i=_||v)===null||i===void 0||(i=i.hooks)===null||i===void 0||(s=i.onBeforeCreate)===null||s===void 0||s.call(i);var A=(l=this.$primevueConfig)===null||l===void 0||(l=l.pt)===null||l===void 0?void 0:l._usept,L=A?(a=this.$primevue)===null||a===void 0||(a=a.config)===null||a===void 0||(a=a.pt)===null||a===void 0?void 0:a.originalValue:void 0,S=A?(c=this.$primevue)===null||c===void 0||(c=c.config)===null||c===void 0||(c=c.pt)===null||c===void 0?void 0:c.value:(d=this.$primevue)===null||d===void 0||(d=d.config)===null||d===void 0?void 0:d.pt;(f=S||L)===null||f===void 0||(f=f[this.$.type.name])===null||f===void 0||(f=f.hooks)===null||f===void 0||(p=f.onBeforeCreate)===null||p===void 0||p.call(f)},created:function(){this._hook("onCreated")},beforeMount:function(){this._loadStyles(),this._hook("onBeforeMount")},mounted:function(){this.rootEl=Be(this.$el,'[data-pc-name="'.concat(Ne(this.$.type.name),'"]')),this.rootEl&&(this.rootEl.setAttribute(this.$attrSelector,""),this.rootEl.$pc=K({name:this.$.type.name},this.$params)),this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){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==null||n(),o==null||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 Wn(e)?e.apply(void 0,o):r.mergeProps.apply(void 0,o)},_loadStyles:function(){var e=this,n=function(){ot.isStyleNameLoaded("base")||(ye.loadCSS(e.$styleOptions),e._loadGlobalStyles(),ot.setLoadedStyleName("base")),e._loadThemeStyles()};n(),this._themeChangeListener(n)},_loadCoreStyles:function(){var e,n;!ot.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name&&(mr.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),ot.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);Z(e)&&ye.load(e,K({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,n;if(!this.isUnstyled){if(!Q.isStyleNameLoaded("common")){var o,i,s=((o=this.$style)===null||o===void 0||(i=o.getCommonTheme)===null||i===void 0?void 0:i.call(o))||{},l=s.primitive,a=s.semantic;ye.load(l==null?void 0:l.css,K({name:"primitive-variables"},this.$styleOptions)),ye.load(a==null?void 0:a.css,K({name:"semantic-variables"},this.$styleOptions)),ye.loadTheme(K({name:"global-style"},this.$styleOptions)),Q.setLoadedStyleName("common")}if(!Q.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name){var c,d,f,p,g=((c=this.$style)===null||c===void 0||(d=c.getComponentTheme)===null||d===void 0?void 0:d.call(c))||{},v=g.css;(f=this.$style)===null||f===void 0||f.load(v,K({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(p=this.$style)===null||p===void 0||p.loadTheme(K({name:"".concat(this.$style.name,"-style")},this.$styleOptions)),Q.setLoadedStyleName(this.$style.name)}if(!Q.isStyleNameLoaded("layer-order")){var _,A,L=(_=this.$style)===null||_===void 0||(A=_.getLayerOrderThemeCSS)===null||A===void 0?void 0:A.call(_);ye.load(L,K({name:"layer-order",first:!0},this.$styleOptions)),Q.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(e){var n,o,i,s=((n=this.$style)===null||n===void 0||(o=n.getPresetTheme)===null||o===void 0?void 0:o.call(n,e,"[".concat(this.$attrSelector,"]")))||{},l=s.css,a=(i=this.$style)===null||i===void 0?void 0:i.load(l,K({name:"".concat(this.$attrSelector,"-").concat(this.$style.name)},this.$styleOptions));this.scopedStyleEl=a.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(){};ot.clearLoadedStyleNames(),qe.on("theme:change",e)},_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 Gn(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]:{},s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,l=/./g.test(o)&&!!i[o.split(".")[0]],a=this._getPropValue("ptOptions")||((e=this.$primevueConfig)===null||e===void 0?void 0:e.ptOptions)||{},c=a.mergeSections,d=c===void 0?!0:c,f=a.mergeProps,p=f===void 0?!1:f,g=s?l?this._useGlobalPT(this._getPTClassValue,o,i):this._useDefaultPT(this._getPTClassValue,o,i):void 0,v=l?void 0:this._getPTSelf(n,this._getPTClassValue,o,K(K({},i),{},{global:g||{}})),_=this._getPTDatasets(o);return d||!d&&v?p?this._mergeProps(p,g,v,_):K(K(K({},g),v),_):K(K({},v),_)},_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-",s=o==="root"&&Z((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return o!=="transition"&&K(K({},o==="root"&&K(wn({},"".concat(i,"name"),Ne(s?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),s&&wn({},"".concat(i,"extend"),Ne(this.$.type.name)))),{},wn({},"".concat(i,"section"),Ne(o)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return Se(e)||qn(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,s=function(a){var c,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=i?i(a):a,p=Ne(o),g=Ne(n.$name);return(c=d?p!==g?f==null?void 0:f[p]:void 0:f==null?void 0:f[p])!==null&&c!==void 0?c:f};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:s(e.originalValue),value:s(e.value)}:s(e,!0)},_usePT:function(e,n,o,i){var s=function(A){return n(A,o,i)};if(e!=null&&e.hasOwnProperty("_usept")){var l,a=e._usept||((l=this.$primevueConfig)===null||l===void 0?void 0:l.ptOptions)||{},c=a.mergeSections,d=c===void 0?!0:c,f=a.mergeProps,p=f===void 0?!1:f,g=s(e.originalValue),v=s(e.value);return g===void 0&&v===void 0?void 0:Se(v)?v:Se(g)?g:d||!d&&v?p?this._mergeProps(p,g,v):K(K({},g),v):v}return s(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,K(K({},this.$params),n))},ptmi:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return r.mergeProps(this.$_attrsWithoutPT,this.ptm(e,n))},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,K({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,K(K({},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,K(K({},this.$params),o)),s=this._getOptionValue(mr.inlineStyles,e,K(K({},this.$params),o));return[s,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 Te(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,K({},n.$params))||Te(o,K({},n.$params))})},isUnstyled:function(){var e;return this.unstyled!==void 0?this.unstyled:(e=this.$primevueConfig)===null||e===void 0?void 0:e.unstyled},$theme:function(){var e;return(e=this.$primevueConfig)===null||e===void 0?void 0:e.theme},$style:function(){return K(K({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme: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==null?void 0:e.$props,state:e==null?void 0:e.$data,attrs:e==null?void 0:e.$attrs}}},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=vn(e,1),o=n[0];return o==null?void 0:o.startsWith("pt:")}).reduce(function(e,n){var o=vn(n,2),i=o[0],s=o[1],l=i.split(":"),a=ga(l),c=a.slice(1);return c==null||c.reduce(function(d,f,p,g){return!d[f]&&(d[f]=p===g.length-1?s:{}),d[f]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=vn(e,1),o=n[0];return!(o!=null&&o.startsWith("pt:"))}).reduce(function(e,n){var o=vn(n,2),i=o[0],s=o[1];return e[i]=s,e},{})},$attrSelector:function(){return yn("pc")}}},ka=`
144
+ `)},da={},fa={},q={name:"base",css:ua,style:Xs,classes:da,inlineStyles:fa,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(s){return s},i=o(hn(rr||(rr=gn(["",""])),e));return O(i)?na($t(i),Zn({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 H.transformCSS(n.name||e.name,"".concat(i).concat(hn(ir||(ir=gn(["",""])),o)))})},getCommonTheme:function(e){return H.getCommon(this.name,e)},getComponentTheme:function(e){return H.getComponent(this.name,e)},getDirectiveTheme:function(e){return H.getDirective(this.name,e)},getPresetTheme:function(e,n,o){return H.getCustomPreset(this.name,e,n,o)},getLayerOrderThemeCSS:function(){return H.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=Z(this.css,{dt:tt})||"",i=$t(hn(sr||(sr=gn(["","",""])),o,e)),s=Object.entries(n).reduce(function(c,l){var a=lr(l,2),u=a[0],f=a[1];return c.push("".concat(u,'="').concat(f,'"'))&&c},[]).join(" ");return O(i)?'<style type="text/css" data-primevue-style-id="'.concat(this.name,'" ').concat(s,">").concat(i,"</style>"):""}return""},getCommonThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return H.getCommonStyleSheet(this.name,e,n)},getThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=[H.getStyleSheet(this.name,e,n)];if(this.style){var i=this.name==="base"?"global-style":"".concat(this.name,"-style"),s=hn(ar||(ar=gn(["",""])),Z(this.style,{dt:tt})),c=$t(H.transformCSS(i,s)),l=Object.entries(n).reduce(function(a,u){var f=lr(u,2),m=f[0],p=f[1];return a.push("".concat(m,'="').concat(p,'"'))&&a},[]).join(" ");O(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 Zn(Zn({},this),{},{css:void 0,style:void 0},e)}};function ma(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pc",e=r.useId();return"".concat(t).concat(e.replace("v-","").replaceAll("-","_"))}var dr=q.extend({name:"common"});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 pa(t){return hr(t)||ha(t)||mr(t)||fr()}function ha(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Nt(t,e){return hr(t)||ga(t,e)||mr(t,e)||fr()}function fr(){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 mr(t,e){if(t){if(typeof t=="string")return pr(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)?pr(t,e):void 0}}function pr(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 ga(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,i,s,c,l=[],a=!0,u=!1;try{if(s=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;a=!1}else for(;!(a=(o=s.call(n)).done)&&(l.push(o.value),l.length!==e);a=!0);}catch(f){u=!0,i=f}finally{try{if(!a&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(u)throw i}}return l}}function hr(t){if(Array.isArray(t))return t}function gr(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 N(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?gr(Object(n),!0).forEach(function(o){Dt(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Dt(t,e,n){return(e=ya(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ya(t){var e=ba(t,"string");return Bt(e)=="symbol"?e:e+""}function ba(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)}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,s,c,l,a,u,f,m,p=(e=this.pt)===null||e===void 0?void 0:e._usept,g=p?(n=this.pt)===null||n===void 0||(n=n.originalValue)===null||n===void 0?void 0:n[this.$.type.name]:void 0,_=p?(o=this.pt)===null||o===void 0||(o=o.value)===null||o===void 0?void 0:o[this.$.type.name]:this.pt;(i=_||g)===null||i===void 0||(i=i.hooks)===null||i===void 0||(s=i.onBeforeCreate)===null||s===void 0||s.call(i);var w=(c=this.$primevueConfig)===null||c===void 0||(c=c.pt)===null||c===void 0?void 0:c._usept,S=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?(a=this.$primevue)===null||a===void 0||(a=a.config)===null||a===void 0||(a=a.pt)===null||a===void 0?void 0:a.value:(u=this.$primevue)===null||u===void 0||(u=u.config)===null||u===void 0?void 0:u.pt;(f=y||S)===null||f===void 0||(f=f[this.$.type.name])===null||f===void 0||(f=f.hooks)===null||f===void 0||(m=f.onBeforeCreate)===null||m===void 0||m.call(f),this.$attrSelector=ma(),this.uid=this.$attrs.id||this.$attrSelector.replace("pc","pv_id_")},created:function(){this._hook("onCreated")},beforeMount:function(){var e;this.rootEl=Se(It(this.$el)?this.$el:(e=this.$el)===null||e===void 0?void 0:e.parentElement,"[".concat(this.$attrSelector,"]")),this.rootEl&&(this.rootEl.$pc=N({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 Wn(e)?e.apply(void 0,o):r.mergeProps.apply(void 0,o)},_load:function(){Ue.isStyleNameLoaded("base")||(q.loadCSS(this.$styleOptions),this._loadGlobalStyles(),Ue.setLoadedStyleName("base")),this._loadThemeStyles()},_loadStyles:function(){this._load(),this._themeChangeListener(this._load)},_loadCoreStyles:function(){var e,n;!Ue.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name&&(dr.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),Ue.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);O(e)&&q.load(e,N({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,n;if(!(this.isUnstyled||this.$theme==="none")){if(!H.isStyleNameLoaded("common")){var o,i,s=((o=this.$style)===null||o===void 0||(i=o.getCommonTheme)===null||i===void 0?void 0:i.call(o))||{},c=s.primitive,l=s.semantic,a=s.global,u=s.style;q.load(c?.css,N({name:"primitive-variables"},this.$styleOptions)),q.load(l?.css,N({name:"semantic-variables"},this.$styleOptions)),q.load(a?.css,N({name:"global-variables"},this.$styleOptions)),q.loadStyle(N({name:"global-style"},this.$styleOptions),u),H.setLoadedStyleName("common")}if(!H.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name){var f,m,p,g,_=((f=this.$style)===null||f===void 0||(m=f.getComponentTheme)===null||m===void 0?void 0:m.call(f))||{},w=_.css,S=_.style;(p=this.$style)===null||p===void 0||p.load(w,N({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(g=this.$style)===null||g===void 0||g.loadStyle(N({name:"".concat(this.$style.name,"-style")},this.$styleOptions),S),H.setLoadedStyleName(this.$style.name)}if(!H.isStyleNameLoaded("layer-order")){var y,I,k=(y=this.$style)===null||y===void 0||(I=y.getLayerOrderThemeCSS)===null||I===void 0?void 0:I.call(y);q.load(k,N({name:"layer-order",first:!0},this.$styleOptions)),H.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(e){var n,o,i,s=((n=this.$style)===null||n===void 0||(o=n.getPresetTheme)===null||o===void 0?void 0:o.call(n,e,"[".concat(this.$attrSelector,"]")))||{},c=s.css,l=(i=this.$style)===null||i===void 0?void 0:i.load(c,N({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(){};Ue.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 Gn(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]:{},s=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)||{},a=l.mergeSections,u=a===void 0?!0:a,f=l.mergeProps,m=f===void 0?!1:f,p=s?c?this._useGlobalPT(this._getPTClassValue,o,i):this._useDefaultPT(this._getPTClassValue,o,i):void 0,g=c?void 0:this._getPTSelf(n,this._getPTClassValue,o,N(N({},i),{},{global:p||{}})),_=this._getPTDatasets(o);return u||!u&&g?m?this._mergeProps(m,p,g,_):N(N(N({},p),g),_):N(N({},g),_)},_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-",s=o==="root"&&O((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return o!=="transition"&&N(N({},o==="root"&&N(N(Dt({},"".concat(i,"name"),Ae(s?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),s&&Dt({},"".concat(i,"extend"),Ae(this.$.type.name))),{},Dt({},"".concat(this.$attrSelector),""))),{},Dt({},"".concat(i,"section"),Ae(o)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return me(e)||Go(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,s=function(l){var a,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=i?i(l):l,m=Ae(o),p=Ae(n.$name);return(a=u?m!==p?f?.[m]:void 0:f?.[m])!==null&&a!==void 0?a:f};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:s(e.originalValue),value:s(e.value)}:s(e,!0)},_usePT:function(e,n,o,i){var s=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)||{},a=l.mergeSections,u=a===void 0?!0:a,f=l.mergeProps,m=f===void 0?!1:f,p=s(e.originalValue),g=s(e.value);return p===void 0&&g===void 0?void 0:me(g)?g:me(p)?p:u||!u&&g?m?this._mergeProps(m,p,g):N(N({},p),g):g}return s(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,N(N({},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,N({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,N(N({},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,N(N({},this.$params),o)),s=this._getOptionValue(dr.inlineStyles,e,N(N({},this.$params),o));return[s,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 Z(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,N({},n.$params))||Z(o,N({},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),s=i[0];return n?.includes(s)}))},$theme:function(){var e;return(e=this.$primevueConfig)===null||e===void 0?void 0:e.theme},$style:function(){return N(N({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],s=o[1],c=i.split(":"),l=pa(c),a=l.slice(1);return a?.reduce(function(u,f,m,p){return!u[f]&&(u[f]=m===p.length-1?s:{}),u[f]},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],s=o[1];return e[i]=s,e},{})}}},va=`
144
146
  .p-icon {
145
147
  display: inline-block;
146
148
  vertical-align: baseline;
@@ -172,178 +174,189 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
172
174
  transform: rotate(359deg);
173
175
  }
174
176
  }
175
- `,Sa=ye.extend({name:"baseicon",css:ka});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 vr(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 wr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?vr(Object(n),!0).forEach(function(o){_a(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function _a(t,e,n){return(e=Ca(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ca(t){var e=Ea(t,"string");return jt(e)=="symbol"?e:e+""}function Ea(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 kr={name:"BaseIcon",extends:kn,props:{label:{type:String,default:void 0},spin:{type:Boolean,default:!1}},style:Sa,provide:function(){return{$pcIcon:this,$parentInstance:this}},methods:{pti:function(){var e=ct(this.label);return wr(wr({},!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})}}},Qn={name:"ChevronDownIcon",extends:kr},Ta=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),Ia=[Ta];function Aa(t,e,n,o,i,s){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()),Ia,16)}Qn.render=Aa;var eo={name:"ChevronRightIcon",extends:kr},Pa=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),La=[Pa];function xa(t,e,n,o,i,s){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()),La,16)}eo.render=xa;var Oa=function(e){var n=e.dt;return`
176
- .p-panelmenu {
177
- display: flex;
178
- flex-direction: column;
179
- gap: `.concat(n("panelmenu.gap"),`;
180
- }
177
+ `,_a=q.extend({name:"baseicon",css:va});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 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 br(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){wa(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 wa(t,e,n){return(e=Sa(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Sa(t){var e=Ca(t,"string");return Mt(e)=="symbol"?e:e+""}function Ca(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 vr={name:"BaseIcon",extends:yn,props:{label:{type:String,default:void 0},spin:{type:Boolean,default:!1}},style:_a,provide:function(){return{$pcIcon:this,$parentInstance:this}},methods:{pti:function(){var e=Qe(this.label);return br(br({},!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})}}},Jn={name:"ChevronDownIcon",extends:vr};function ka(t,e,n,o,i,s){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)}Jn.render=ka;var Qn={name:"ChevronRightIcon",extends:vr};function Ea(t,e,n,o,i,s){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)}Qn.render=Ea;var Pa=`
178
+ .p-panelmenu {
179
+ display: flex;
180
+ flex-direction: column;
181
+ gap: dt('panelmenu.gap');
182
+ }
181
183
 
182
- .p-panelmenu-panel {
183
- background: `).concat(n("panelmenu.panel.background"),`;
184
- border-width: `).concat(n("panelmenu.panel.border.width"),`;
185
- border-style: solid;
186
- border-color: `).concat(n("panelmenu.panel.border.color"),`;
187
- color: `).concat(n("panelmenu.panel.color"),`;
188
- border-radius: `).concat(n("panelmenu.panel.border.radius"),`;
189
- padding: `).concat(n("panelmenu.panel.padding"),`;
190
- }
184
+ .p-panelmenu-panel {
185
+ background: dt('panelmenu.panel.background');
186
+ border-width: dt('panelmenu.panel.border.width');
187
+ border-style: solid;
188
+ border-color: dt('panelmenu.panel.border.color');
189
+ color: dt('panelmenu.panel.color');
190
+ border-radius: dt('panelmenu.panel.border.radius');
191
+ padding: dt('panelmenu.panel.padding');
192
+ }
191
193
 
192
- .p-panelmenu-panel:first-child {
193
- border-width: `).concat(n("panelmenu.panel.first.border.width"),`;
194
- border-top-left-radius: `).concat(n("panelmenu.panel.first.top.border.radius"),`;
195
- border-top-right-radius: `).concat(n("panelmenu.panel.first.top.border.radius"),`;
196
- }
194
+ .p-panelmenu-panel:first-child {
195
+ border-width: dt('panelmenu.panel.first.border.width');
196
+ border-start-start-radius: dt('panelmenu.panel.first.top.border.radius');
197
+ border-start-end-radius: dt('panelmenu.panel.first.top.border.radius');
198
+ }
197
199
 
198
- .p-panelmenu-panel:last-child {
199
- border-width: `).concat(n("panelmenu.panel.last.border.width"),`;
200
- border-bottom-left-radius: `).concat(n("panelmenu.panel.last.bottom.border.radius"),`;
201
- border-bottom-right-radius: `).concat(n("panelmenu.panel.last.bottom.border.radius"),`;
202
- }
200
+ .p-panelmenu-panel:last-child {
201
+ border-width: dt('panelmenu.panel.last.border.width');
202
+ border-end-start-radius: dt('panelmenu.panel.last.bottom.border.radius');
203
+ border-end-end-radius: dt('panelmenu.panel.last.bottom.border.radius');
204
+ }
203
205
 
204
- .p-panelmenu-header {
205
- outline: 0 none;
206
- }
206
+ .p-panelmenu-header {
207
+ outline: 0 none;
208
+ }
207
209
 
208
- .p-panelmenu-header-content {
209
- border-radius: `).concat(n("panelmenu.item.border.radius"),`;
210
- transition: background `).concat(n("panelmenu.transition.duration"),", color ").concat(n("panelmenu.transition.duration"),", outline-color ").concat(n("panelmenu.transition.duration"),", box-shadow ").concat(n("panelmenu.transition.duration"),`;
211
- outline-color: transparent;
212
- color: `).concat(n("panelmenu.item.color"),`;
213
- }
210
+ .p-panelmenu-header-content {
211
+ border-radius: dt('panelmenu.item.border.radius');
212
+ transition:
213
+ background dt('panelmenu.transition.duration'),
214
+ color dt('panelmenu.transition.duration'),
215
+ outline-color dt('panelmenu.transition.duration'),
216
+ box-shadow dt('panelmenu.transition.duration');
217
+ outline-color: transparent;
218
+ color: dt('panelmenu.item.color');
219
+ }
214
220
 
215
- .p-panelmenu-header-link {
216
- display: flex;
217
- gap: `).concat(n("panelmenu.item.gap"),`;
218
- padding: `).concat(n("panelmenu.item.padding"),`;
219
- align-items: center;
220
- user-select: none;
221
- cursor: pointer;
222
- position: relative;
223
- text-decoration: none;
224
- color: inherit;
225
- }
221
+ .p-panelmenu-header-link {
222
+ display: flex;
223
+ gap: dt('panelmenu.item.gap');
224
+ padding: dt('panelmenu.item.padding');
225
+ align-items: center;
226
+ user-select: none;
227
+ cursor: pointer;
228
+ position: relative;
229
+ text-decoration: none;
230
+ color: inherit;
231
+ }
226
232
 
227
- .p-panelmenu-header-icon,
228
- .p-panelmenu-item-icon {
229
- color: `).concat(n("panelmenu.item.icon.color"),`;
230
- }
233
+ .p-panelmenu-header-icon,
234
+ .p-panelmenu-item-icon {
235
+ color: dt('panelmenu.item.icon.color');
236
+ }
231
237
 
232
- .p-panelmenu-submenu-icon {
233
- color: `).concat(n("panelmenu.submenu.icon.color"),`;
234
- }
238
+ .p-panelmenu-submenu-icon {
239
+ color: dt('panelmenu.submenu.icon.color');
240
+ }
235
241
 
236
- .p-panelmenu-header:not(.p-disabled):focus-visible .p-panelmenu-header-content {
237
- background: `).concat(n("panelmenu.item.focus.background"),`;
238
- color: `).concat(n("panelmenu.item.focus.color"),`;
239
- }
242
+ .p-panelmenu-submenu-icon:dir(rtl) {
243
+ transform: rotate(180deg);
244
+ }
240
245
 
241
- .p-panelmenu-header:not(.p-disabled):focus-visible .p-panelmenu-header-content .p-panelmenu-header-icon {
242
- color: `).concat(n("panelmenu.item.icon.focus.color"),`;
243
- }
246
+ .p-panelmenu-header:not(.p-disabled):focus-visible .p-panelmenu-header-content {
247
+ background: dt('panelmenu.item.focus.background');
248
+ color: dt('panelmenu.item.focus.color');
249
+ }
244
250
 
245
- .p-panelmenu-header:not(.p-disabled):focus-visible .p-panelmenu-header-content .p-panelmenu-submenu-icon {
246
- color: `).concat(n("panelmenu.submenu.icon.focus.color"),`;
247
- }
251
+ .p-panelmenu-header:not(.p-disabled):focus-visible .p-panelmenu-header-content .p-panelmenu-header-icon {
252
+ color: dt('panelmenu.item.icon.focus.color');
253
+ }
248
254
 
249
- .p-panelmenu-header:not(.p-disabled) .p-panelmenu-header-content:hover {
250
- background: `).concat(n("panelmenu.item.focus.background"),`;
251
- color: `).concat(n("panelmenu.item.focus.color"),`;
252
- }
255
+ .p-panelmenu-header:not(.p-disabled):focus-visible .p-panelmenu-header-content .p-panelmenu-submenu-icon {
256
+ color: dt('panelmenu.submenu.icon.focus.color');
257
+ }
253
258
 
254
- .p-panelmenu-header:not(.p-disabled) .p-panelmenu-header-content:hover .p-panelmenu-header-icon {
255
- color: `).concat(n("panelmenu.item.icon.focus.color"),`;
256
- }
259
+ .p-panelmenu-header:not(.p-disabled) .p-panelmenu-header-content:hover {
260
+ background: dt('panelmenu.item.focus.background');
261
+ color: dt('panelmenu.item.focus.color');
262
+ }
257
263
 
258
- .p-panelmenu-header:not(.p-disabled) .p-panelmenu-header-content:hover .p-panelmenu-submenu-icon {
259
- color: `).concat(n("panelmenu.submenu.icon.focus.color"),`;
260
- }
264
+ .p-panelmenu-header:not(.p-disabled) .p-panelmenu-header-content:hover .p-panelmenu-header-icon {
265
+ color: dt('panelmenu.item.icon.focus.color');
266
+ }
261
267
 
262
- .p-panelmenu-submenu {
263
- margin: 0;
264
- padding: 0 0 0 `).concat(n("panelmenu.submenu.indent"),`;
265
- outline: 0;
266
- list-style: none;
267
- }
268
+ .p-panelmenu-header:not(.p-disabled) .p-panelmenu-header-content:hover .p-panelmenu-submenu-icon {
269
+ color: dt('panelmenu.submenu.icon.focus.color');
270
+ }
268
271
 
269
- .p-panelmenu-item-link {
270
- display: flex;
271
- gap: `).concat(n("panelmenu.item.gap"),`;
272
- padding: `).concat(n("panelmenu.item.padding"),`;
273
- align-items: center;
274
- user-select: none;
275
- cursor: pointer;
276
- text-decoration: none;
277
- color: inherit;
278
- position: relative;
279
- overflow: hidden;
280
- }
272
+ .p-panelmenu-submenu {
273
+ margin: 0;
274
+ padding: 0 0 0 dt('panelmenu.submenu.indent');
275
+ outline: 0;
276
+ list-style: none;
277
+ }
281
278
 
282
- .p-panelmenu-item-label {
283
- line-height: 1;
284
- }
279
+ .p-panelmenu-submenu:dir(rtl) {
280
+ padding: 0 dt('panelmenu.submenu.indent') 0 0;
281
+ }
285
282
 
286
- .p-panelmenu-item-content {
287
- border-radius: `).concat(n("panelmenu.item.border.radius"),`;
288
- transition: background `).concat(n("panelmenu.transition.duration"),", color ").concat(n("panelmenu.transition.duration"),", outline-color ").concat(n("panelmenu.transition.duration"),", box-shadow ").concat(n("panelmenu.transition.duration"),`;
289
- color: `).concat(n("panelmenu.item.color"),`;
290
- outline-color: transparent;
291
- }
283
+ .p-panelmenu-item-link {
284
+ display: flex;
285
+ gap: dt('panelmenu.item.gap');
286
+ padding: dt('panelmenu.item.padding');
287
+ align-items: center;
288
+ user-select: none;
289
+ cursor: pointer;
290
+ text-decoration: none;
291
+ color: inherit;
292
+ position: relative;
293
+ overflow: hidden;
294
+ }
292
295
 
293
- .p-panelmenu-item.p-focus > .p-panelmenu-item-content {
294
- background: `).concat(n("panelmenu.item.focus.background"),`;
295
- color: `).concat(n("panelmenu.item.focus.color"),`;
296
- }
296
+ .p-panelmenu-item-label {
297
+ line-height: 1;
298
+ }
297
299
 
298
- .p-panelmenu-item.p-focus > .p-panelmenu-item-content .p-panelmenu-item-icon {
299
- color: `).concat(n("panelmenu.item.focus.color"),`;
300
- }
300
+ .p-panelmenu-item-content {
301
+ border-radius: dt('panelmenu.item.border.radius');
302
+ transition:
303
+ background dt('panelmenu.transition.duration'),
304
+ color dt('panelmenu.transition.duration'),
305
+ outline-color dt('panelmenu.transition.duration'),
306
+ box-shadow dt('panelmenu.transition.duration');
307
+ color: dt('panelmenu.item.color');
308
+ outline-color: transparent;
309
+ }
301
310
 
302
- .p-panelmenu-item.p-focus > .p-panelmenu-item-content .p-panelmenu-submenu-icon {
303
- color: `).concat(n("panelmenu.submenu.icon.focus.color"),`;
304
- }
311
+ .p-panelmenu-item.p-focus > .p-panelmenu-item-content {
312
+ background: dt('panelmenu.item.focus.background');
313
+ color: dt('panelmenu.item.focus.color');
314
+ }
305
315
 
306
- .p-panelmenu-item:not(.p-disabled) > .p-panelmenu-item-content:hover {
307
- background: `).concat(n("panelmenu.item.focus.background"),`;
308
- color: `).concat(n("panelmenu.item.focus.color"),`;
309
- }
316
+ .p-panelmenu-item.p-focus > .p-panelmenu-item-content .p-panelmenu-item-icon {
317
+ color: dt('panelmenu.item.focus.color');
318
+ }
310
319
 
311
- .p-panelmenu-item:not(.p-disabled) > .p-panelmenu-item-content:hover .p-panelmenu-item-icon {
312
- color: `).concat(n("panelmenu.item.icon.focus.color"),`;
313
- }
320
+ .p-panelmenu-item.p-focus > .p-panelmenu-item-content .p-panelmenu-submenu-icon {
321
+ color: dt('panelmenu.submenu.icon.focus.color');
322
+ }
314
323
 
315
- .p-panelmenu-item:not(.p-disabled) > .p-panelmenu-item-content:hover .p-panelmenu-submenu-icon {
316
- color: `).concat(n("panelmenu.submenu.icon.focus.color"),`;
317
- }
318
- `)},$a={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"},Ba=ye.extend({name:"panelmenu",theme:Oa,classes:$a}),Sr=Xo();function Ft(t){"@babel/helpers - typeof";return Ft=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},Ft(t)}function _r(t,e){return Ra(t)||Da(t,e)||Ma(t,e)||Na()}function Na(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
319
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ma(t,e){if(t){if(typeof t=="string")return Cr(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)?Cr(t,e):void 0}}function Cr(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 Da(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,i,s,l,a=[],c=!0,d=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(c=(o=s.call(n)).done)&&(a.push(o.value),a.length!==e);c=!0);}catch(f){d=!0,i=f}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw i}}return a}}function Ra(t){if(Array.isArray(t))return t}function Er(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 q(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Er(Object(n),!0).forEach(function(o){to(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Er(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function to(t,e,n){return(e=Ua(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ua(t){var e=Va(t,"string");return Ft(e)=="symbol"?e:e+""}function Va(t,e){if(Ft(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Ft(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var j={_getMeta:function(){return[nt(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],Te(nt(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,s;return(o=(e==null||(i=e.instance)===null||i===void 0?void 0:i.$primevue)||(n==null||(s=n.ctx)===null||s===void 0||(s=s.appContext)===null||s===void 0||(s=s.config)===null||s===void 0||(s=s.globalProperties)===null||s===void 0?void 0:s.$primevue))===null||o===void 0?void 0:o.config},_getOptionValue:Gn,_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]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,c=function(){var k=j._getOptionValue.apply(j,arguments);return Se(k)||qn(k)?{class:k}:k},d=((e=o.binding)===null||e===void 0||(e=e.value)===null||e===void 0?void 0:e.ptOptions)||((n=o.$primevueConfig)===null||n===void 0?void 0:n.ptOptions)||{},f=d.mergeSections,p=f===void 0?!0:f,g=d.mergeProps,v=g===void 0?!1:g,_=a?j._useDefaultPT(o,o.defaultPT(),c,s,l):void 0,A=j._usePT(o,j._getPT(i,o.$name),c,s,q(q({},l),{},{global:_||{}})),L=j._getPTDatasets(o,s);return p||!p&&A?v?j._mergeProps(o,v,_,A,L):q(q(q({},_),A),L):q(q({},A),L)},_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 q(q({},n==="root"&&to({},"".concat(o,"name"),Ne(e.$name))),{},to({},"".concat(o,"section"),Ne(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(l){var a,c=o?o(l):l,d=Ne(n);return(a=c==null?void 0:c[d])!==null&&a!==void 0?a:c};return e!=null&&e.hasOwnProperty("_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,s=arguments.length>4?arguments[4]:void 0,l=function(L){return o(L,i,s)};if(n!=null&&n.hasOwnProperty("_usept")){var a,c=n._usept||((a=e.$primevueConfig)===null||a===void 0?void 0:a.ptOptions)||{},d=c.mergeSections,f=d===void 0?!0:d,p=c.mergeProps,g=p===void 0?!1:p,v=l(n.originalValue),_=l(n.value);return v===void 0&&_===void 0?void 0:Se(_)?_:Se(v)?v:f||!f&&_?g?j._mergeProps(e,g,v,_):q(q({},v),_):_}return l(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,s=arguments.length>4?arguments[4]:void 0;return j._usePT(e,n,o,i,s)},_loadStyles:function(e,n,o){var i,s=j._getConfig(n,o),l={nonce:s==null||(i=s.csp)===null||i===void 0?void 0:i.nonce};j._loadCoreStyles(e.$instance,l),j._loadThemeStyles(e.$instance,l),j._loadScopedThemeStyles(e.$instance,l),j._themeChangeListener(function(){return j._loadThemeStyles(e.$instance,l)})},_loadCoreStyles:function(){var e,n,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(!ot.isStyleNameLoaded((e=o.$style)===null||e===void 0?void 0:e.name)&&(n=o.$style)!==null&&n!==void 0&&n.name){var s;ye.loadCSS(i),o.isUnstyled()&&((s=o.$style)===null||s===void 0||s.loadCSS(i)),ot.setLoadedStyleName(o.$style.name)}},_loadThemeStyles:function(){var e,n,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(!(o!=null&&o.isUnstyled())){if(!Q.isStyleNameLoaded("common")){var s,l,a=((s=o.$style)===null||s===void 0||(l=s.getCommonTheme)===null||l===void 0?void 0:l.call(s))||{},c=a.primitive,d=a.semantic;ye.load(c==null?void 0:c.css,q({name:"primitive-variables"},i)),ye.load(d==null?void 0:d.css,q({name:"semantic-variables"},i)),ye.loadTheme(q({name:"global-style"},i)),Q.setLoadedStyleName("common")}if(!Q.isStyleNameLoaded((e=o.$style)===null||e===void 0?void 0:e.name)&&(n=o.$style)!==null&&n!==void 0&&n.name){var f,p,g,v,_=((f=o.$style)===null||f===void 0||(p=f.getDirectiveTheme)===null||p===void 0?void 0:p.call(f))||{},A=_.css;(g=o.$style)===null||g===void 0||g.load(A,q({name:"".concat(o.$style.name,"-variables")},i)),(v=o.$style)===null||v===void 0||v.loadTheme(q({name:"".concat(o.$style.name,"-style")},i)),Q.setLoadedStyleName(o.$style.name)}if(!Q.isStyleNameLoaded("layer-order")){var L,S,k=(L=o.$style)===null||L===void 0||(S=L.getLayerOrderThemeCSS)===null||S===void 0?void 0:S.call(L);ye.load(k,q({name:"layer-order",first:!0},i)),Q.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,s,l,a=((i=e.$style)===null||i===void 0||(s=i.getPresetTheme)===null||s===void 0?void 0:s.call(i,o,"[".concat(e.$attrSelector,"]")))||{},c=a.css,d=(l=e.$style)===null||l===void 0?void 0:l.load(c,q({name:"".concat(e.$attrSelector,"-").concat(e.$style.name)},n));e.scopedStyleEl=d.el}},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};ot.clearLoadedStyleNames(),qe.on("theme:change",e)},_hook:function(e,n,o,i,s,l){var a,c,d="on".concat(js(n)),f=j._getConfig(i,s),p=o==null?void 0:o.$instance,g=j._usePT(p,j._getPT(i==null||(a=i.value)===null||a===void 0?void 0:a.pt,e),j._getOptionValue,"hooks.".concat(d)),v=j._useDefaultPT(p,f==null||(c=f.pt)===null||c===void 0||(c=c.directives)===null||c===void 0?void 0:c[e],j._getOptionValue,"hooks.".concat(d)),_={el:o,binding:i,vnode:s,prevVnode:l};g==null||g(p,_),v==null||v(p,_)},_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 Wn(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,a,c,d,f){var p,g,v;a._$instances=a._$instances||{};var _=j._getConfig(c,d),A=a._$instances[e]||{},L=ct(A)?q(q({},n),n==null?void 0:n.methods):{};a._$instances[e]=q(q({},A),{},{$name:e,$host:a,$binding:c,$modifiers:c==null?void 0:c.modifiers,$value:c==null?void 0:c.value,$el:A.$el||a||void 0,$style:q({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},n==null?void 0:n.style),$primevueConfig:_,$attrSelector:a.$attrSelector,defaultPT:function(){return j._getPT(_==null?void 0:_.pt,void 0,function(k){var D;return k==null||(D=k.directives)===null||D===void 0?void 0:D[e]})},isUnstyled:function(){var k,D;return((k=a.$instance)===null||k===void 0||(k=k.$binding)===null||k===void 0||(k=k.value)===null||k===void 0?void 0:k.unstyled)!==void 0?(D=a.$instance)===null||D===void 0||(D=D.$binding)===null||D===void 0||(D=D.value)===null||D===void 0?void 0:D.unstyled:_==null?void 0:_.unstyled},theme:function(){var k;return(k=a.$instance)===null||k===void 0||(k=k.$primevueConfig)===null||k===void 0?void 0:k.theme},preset:function(){var k;return(k=a.$instance)===null||k===void 0||(k=k.$binding)===null||k===void 0||(k=k.value)===null||k===void 0?void 0:k.dt},ptm:function(){var k,D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return j._getPTValue(a.$instance,(k=a.$instance)===null||k===void 0||(k=k.$binding)===null||k===void 0||(k=k.value)===null||k===void 0?void 0:k.pt,D,q({},U))},ptmo:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return j._getPTValue(a.$instance,k,D,U,!1)},cx:function(){var k,D,U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(k=a.$instance)!==null&&k!==void 0&&k.isUnstyled()?void 0:j._getOptionValue((D=a.$instance)===null||D===void 0||(D=D.$style)===null||D===void 0?void 0:D.classes,U,q({},G))},sx:function(){var k,D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return U?j._getOptionValue((k=a.$instance)===null||k===void 0||(k=k.$style)===null||k===void 0?void 0:k.inlineStyles,D,q({},G)):void 0}},L),a.$instance=a._$instances[e],(p=(g=a.$instance)[l])===null||p===void 0||p.call(g,a,c,d,f),a["$".concat(e)]=a.$instance,j._hook(e,l,a,c,d,f),a.$pd||(a.$pd={}),a.$pd[e]=q(q({},(v=a.$pd)===null||v===void 0?void 0:v[e]),{},{name:e,instance:a.$instance})},i=function(l){var a,c,d,f,p,g=(a=l.$instance)===null||a===void 0?void 0:a.watch;g==null||(c=g.config)===null||c===void 0||c.call(l.$instance,(d=l.$instance)===null||d===void 0?void 0:d.$primevueConfig),Sr.on("config:change",function(v){var _,A=v.newValue,L=v.oldValue;return g==null||(_=g.config)===null||_===void 0?void 0:_.call(l.$instance,A,L)}),g==null||(f=g["config.ripple"])===null||f===void 0||f.call(l.$instance,(p=l.$instance)===null||p===void 0||(p=p.$primevueConfig)===null||p===void 0?void 0:p.ripple),Sr.on("config:ripple:change",function(v){var _,A=v.newValue,L=v.oldValue;return g==null||(_=g["config.ripple"])===null||_===void 0?void 0:_.call(l.$instance,A,L)})};return{created:function(l,a,c,d){o("created",l,a,c,d)},beforeMount:function(l,a,c,d){l.$attrSelector=yn("pd"),j._loadStyles(l,a,c),o("beforeMount",l,a,c,d),i(l)},mounted:function(l,a,c,d){j._loadStyles(l,a,c),o("mounted",l,a,c,d)},beforeUpdate:function(l,a,c,d){o("beforeUpdate",l,a,c,d)},updated:function(l,a,c,d){j._loadStyles(l,a,c),o("updated",l,a,c,d)},beforeUnmount:function(l,a,c,d){o("beforeUnmount",l,a,c,d)},unmounted:function(l,a,c,d){var f;(f=l.$instance)===null||f===void 0||(f=f.scopedStyleEl)===null||f===void 0||(f=f.value)===null||f===void 0||f.remove(),o("unmounted",l,a,c,d)}}},extend:function(){var e=j._getMeta.apply(j,arguments),n=_r(e,2),o=n[0],i=n[1];return q({extend:function(){var l=j._getMeta.apply(j,arguments),a=_r(l,2),c=a[0],d=a[1];return j.extend(c,q(q(q({},i),i==null?void 0:i.methods),d))}},j._extend(o,i))}},Ha=function(e){var n=e.dt;return`
320
- .p-ink {
321
- display: block;
322
- position: absolute;
323
- background: `.concat(n("ripple.background"),`;
324
- border-radius: 100%;
325
- transform: scale(0);
326
- pointer-events: none;
327
- }
324
+ .p-panelmenu-item:not(.p-disabled) > .p-panelmenu-item-content:hover {
325
+ background: dt('panelmenu.item.focus.background');
326
+ color: dt('panelmenu.item.focus.color');
327
+ }
328
328
 
329
- .p-ink-active {
330
- animation: ripple 0.4s linear;
331
- }
329
+ .p-panelmenu-item:not(.p-disabled) > .p-panelmenu-item-content:hover .p-panelmenu-item-icon {
330
+ color: dt('panelmenu.item.icon.focus.color');
331
+ }
332
332
 
333
- @keyframes ripple {
334
- 100% {
335
- opacity: 0;
336
- transform: scale(2.5);
333
+ .p-panelmenu-item:not(.p-disabled) > .p-panelmenu-item-content:hover .p-panelmenu-submenu-icon {
334
+ color: dt('panelmenu.submenu.icon.focus.color');
335
+ }
336
+ `,Ta={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"},Ia=q.extend({name:"panelmenu",style:Pa,classes:Ta}),bn=Yo();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 _r(t,e){return La(t)||$a(t,e)||Oa(t,e)||Aa()}function Aa(){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 Oa(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 $a(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,i,s,c,l=[],a=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(a=(o=s.call(n)).done)&&(l.push(o.value),l.length!==e);a=!0);}catch(f){u=!0,i=f}finally{try{if(!a&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(u)throw i}}return l}}function La(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 M(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){eo(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 eo(t,e,n){return(e=xa(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function xa(t){var e=Ba(t,"string");return Rt(e)=="symbol"?e:e+""}function Ba(t,e){if(Rt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);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[et(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],Z(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,s;return(o=(e==null||(i=e.instance)===null||i===void 0?void 0:i.$primevue)||(n==null||(s=n.ctx)===null||s===void 0||(s=s.appContext)===null||s===void 0||(s=s.config)===null||s===void 0||(s=s.globalProperties)===null||s===void 0?void 0:s.$primevue))===null||o===void 0?void 0:o.config},_getOptionValue:Gn,_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]:{},s=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,a=function(){var I=$._getOptionValue.apply($,arguments);return me(I)||Go(I)?{class:I}:I},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)||{},f=u.mergeSections,m=f===void 0?!0:f,p=u.mergeProps,g=p===void 0?!1:p,_=l?$._useDefaultPT(o,o.defaultPT(),a,s,c):void 0,w=$._usePT(o,$._getPT(i,o.$name),a,s,M(M({},c),{},{global:_||{}})),S=$._getPTDatasets(o,s);return m||!m&&w?g?$._mergeProps(o,g,_,w,S):M(M(M({},_),w),S):M(M({},w),S)},_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"&&eo({},"".concat(o,"name"),Ae(e.$name))),{},eo({},"".concat(o,"section"),Ae(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,a=o?o(c):c,u=Ae(n);return(l=a?.[u])!==null&&l!==void 0?l:a};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,s=arguments.length>4?arguments[4]:void 0,c=function(S){return o(S,i,s)};if(n&&Object.hasOwn(n,"_usept")){var l,a=n._usept||((l=e.$primevueConfig)===null||l===void 0?void 0:l.ptOptions)||{},u=a.mergeSections,f=u===void 0?!0:u,m=a.mergeProps,p=m===void 0?!1:m,g=c(n.originalValue),_=c(n.value);return g===void 0&&_===void 0?void 0:me(_)?_:me(g)?g:f||!f&&_?p?$._mergeProps(e,p,g,_):M(M({},g),_):_}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,s=arguments.length>4?arguments[4]:void 0;return $._usePT(e,n,o,i,s)},_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,s=$._getConfig(o,i),c={nonce:s==null||(e=s.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(!Ue.isStyleNameLoaded((e=o.$style)===null||e===void 0?void 0:e.name)&&(n=o.$style)!==null&&n!==void 0&&n.name){var s;q.loadCSS(i),(s=o.$style)===null||s===void 0||s.loadCSS(i),Ue.setLoadedStyleName(o.$style.name)}},_loadThemeStyles:function(){var e,n,o,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=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(!H.isStyleNameLoaded("common")){var c,l,a=((c=i.$style)===null||c===void 0||(l=c.getCommonTheme)===null||l===void 0?void 0:l.call(c))||{},u=a.primitive,f=a.semantic,m=a.global,p=a.style;q.load(u?.css,M({name:"primitive-variables"},s)),q.load(f?.css,M({name:"semantic-variables"},s)),q.load(m?.css,M({name:"global-variables"},s)),q.loadStyle(M({name:"global-style"},s),p),H.setLoadedStyleName("common")}if(!H.isStyleNameLoaded((n=i.$style)===null||n===void 0?void 0:n.name)&&(o=i.$style)!==null&&o!==void 0&&o.name){var g,_,w,S,y=((g=i.$style)===null||g===void 0||(_=g.getDirectiveTheme)===null||_===void 0?void 0:_.call(g))||{},I=y.css,k=y.style;(w=i.$style)===null||w===void 0||w.load(I,M({name:"".concat(i.$style.name,"-variables")},s)),(S=i.$style)===null||S===void 0||S.loadStyle(M({name:"".concat(i.$style.name,"-style")},s),k),H.setLoadedStyleName(i.$style.name)}if(!H.isStyleNameLoaded("layer-order")){var b,E,U=(b=i.$style)===null||b===void 0||(E=b.getLayerOrderThemeCSS)===null||E===void 0?void 0:E.call(b);q.load(U,M({name:"layer-order",first:!0},s)),H.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,s,c,l=((i=e.$style)===null||i===void 0||(s=i.getPresetTheme)===null||s===void 0?void 0:s.call(i,o,"[".concat(e.$attrSelector,"]")))||{},a=l.css,u=(c=e.$style)===null||c===void 0?void 0:c.load(a,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(){};Ue.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,s,c){var l,a,u="on".concat(Ds(n)),f=$._getConfig(i,s),m=o?.$instance,p=$._usePT(m,$._getPT(i==null||(l=i.value)===null||l===void 0?void 0:l.pt,e),$._getOptionValue,"hooks.".concat(u)),g=$._useDefaultPT(m,f==null||(a=f.pt)===null||a===void 0||(a=a.directives)===null||a===void 0?void 0:a[e],$._getOptionValue,"hooks.".concat(u)),_={el:o,binding:i,vnode:s,prevVnode:c};p?.(m,_),g?.(m,_)},_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 Wn(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,a,u,f,m){var p,g,_,w;a._$instances=a._$instances||{};var S=$._getConfig(u,f),y=a._$instances[e]||{},I=Qe(y)?M(M({},n),n?.methods):{};a._$instances[e]=M(M({},y),{},{$name:e,$host:a,$binding:u,$modifiers:u?.modifiers,$value:u?.value,$el:y.$el||a||void 0,$style:M({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadStyle:function(){}},n?.style),$primevueConfig:S,$attrSelector:(p=a.$pd)===null||p===void 0||(p=p[e])===null||p===void 0?void 0:p.attrSelector,defaultPT:function(){return $._getPT(S?.pt,void 0,function(b){var E;return b==null||(E=b.directives)===null||E===void 0?void 0:E[e]})},isUnstyled:function(){var b,E;return((b=a._$instances[e])===null||b===void 0||(b=b.$binding)===null||b===void 0||(b=b.value)===null||b===void 0?void 0:b.unstyled)!==void 0?(E=a._$instances[e])===null||E===void 0||(E=E.$binding)===null||E===void 0||(E=E.value)===null||E===void 0?void 0:E.unstyled:S?.unstyled},theme:function(){var b;return(b=a._$instances[e])===null||b===void 0||(b=b.$primevueConfig)===null||b===void 0?void 0:b.theme},preset:function(){var b;return(b=a._$instances[e])===null||b===void 0||(b=b.$binding)===null||b===void 0||(b=b.value)===null||b===void 0?void 0:b.dt},ptm:function(){var b,E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return $._getPTValue(a._$instances[e],(b=a._$instances[e])===null||b===void 0||(b=b.$binding)===null||b===void 0||(b=b.value)===null||b===void 0?void 0:b.pt,E,M({},U))},ptmo:function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return $._getPTValue(a._$instances[e],b,E,U,!1)},cx:function(){var b,E,U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(b=a._$instances[e])!==null&&b!==void 0&&b.isUnstyled()?void 0:$._getOptionValue((E=a._$instances[e])===null||E===void 0||(E=E.$style)===null||E===void 0?void 0:E.classes,U,M({},X))},sx:function(){var b,E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return U?$._getOptionValue((b=a._$instances[e])===null||b===void 0||(b=b.$style)===null||b===void 0?void 0:b.inlineStyles,E,M({},X)):void 0}},I),a.$instance=a._$instances[e],(g=(_=a.$instance)[l])===null||g===void 0||g.call(_,a,u,f,m),a["$".concat(e)]=a.$instance,$._hook(e,l,a,u,f,m),a.$pd||(a.$pd={}),a.$pd[e]=M(M({},(w=a.$pd)===null||w===void 0?void 0:w[e]),{},{name:e,instance:a._$instances[e]})},i=function(l){var a,u,f,m=l._$instances[e],p=m?.watch,g=function(S){var y,I=S.newValue,k=S.oldValue;return p==null||(y=p.config)===null||y===void 0?void 0:y.call(m,I,k)},_=function(S){var y,I=S.newValue,k=S.oldValue;return p==null||(y=p["config.ripple"])===null||y===void 0?void 0:y.call(m,I,k)};m.$watchersCallback={config:g,"config.ripple":_},p==null||(a=p.config)===null||a===void 0||a.call(m,m?.$primevueConfig),bn.on("config:change",g),p==null||(u=p["config.ripple"])===null||u===void 0||u.call(m,m==null||(f=m.$primevueConfig)===null||f===void 0?void 0:f.ripple),bn.on("config:ripple:change",_)},s=function(l){var a=l._$instances[e].$watchersCallback;a&&(bn.off("config:change",a.config),bn.off("config:ripple:change",a["config.ripple"]),l._$instances[e].$watchersCallback=void 0)};return{created:function(l,a,u,f){l.$pd||(l.$pd={}),l.$pd[e]={name:e,attrSelector:Ms("pd")},o("created",l,a,u,f)},beforeMount:function(l,a,u,f){var m;$._loadStyles((m=l.$pd[e])===null||m===void 0?void 0:m.instance,a,u),o("beforeMount",l,a,u,f),i(l)},mounted:function(l,a,u,f){var m;$._loadStyles((m=l.$pd[e])===null||m===void 0?void 0:m.instance,a,u),o("mounted",l,a,u,f)},beforeUpdate:function(l,a,u,f){o("beforeUpdate",l,a,u,f)},updated:function(l,a,u,f){var m;$._loadStyles((m=l.$pd[e])===null||m===void 0?void 0:m.instance,a,u),o("updated",l,a,u,f)},beforeUnmount:function(l,a,u,f){var m;s(l),$._removeThemeListeners((m=l.$pd[e])===null||m===void 0?void 0:m.instance),o("beforeUnmount",l,a,u,f)},unmounted:function(l,a,u,f){var m;(m=l.$pd[e])===null||m===void 0||(m=m.instance)===null||m===void 0||(m=m.scopedStyleEl)===null||m===void 0||(m=m.value)===null||m===void 0||m.remove(),o("unmounted",l,a,u,f)}}},extend:function(){var e=$._getMeta.apply($,arguments),n=_r(e,2),o=n[0],i=n[1];return M({extend:function(){var c=$._getMeta.apply($,arguments),l=_r(c,2),a=l[0],u=l[1];return $.extend(a,M(M(M({},i),i?.methods),u))}},$._extend(o,i))}},Na=`
338
+ .p-ink {
339
+ display: block;
340
+ position: absolute;
341
+ background: dt('ripple.background');
342
+ border-radius: 100%;
343
+ transform: scale(0);
344
+ pointer-events: none;
337
345
  }
338
- }
339
- `)},ja={root:"p-ink"},Fa=ye.extend({name:"ripple-directive",theme:Ha,classes:ja}),za=j.extend({style:Fa});function zt(t){"@babel/helpers - typeof";return zt=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},zt(t)}function Ka(t){return Ya(t)||qa(t)||Ga(t)||Wa()}function Wa(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
340
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ga(t,e){if(t){if(typeof t=="string")return no(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)?no(t,e):void 0}}function qa(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Ya(t){if(Array.isArray(t))return no(t)}function no(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 Tr(t,e,n){return(e=Xa(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Xa(t){var e=Za(t,"string");return zt(e)=="symbol"?e:e+""}function Za(t,e){if(zt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(zt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Ja=za.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=Bs("span",Tr(Tr({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"),!qo(i)&&!Yo(i)){var s=Math.max($s(o),Ds(o));i.style.height=s+"px",i.style.width=s+"px"}var l=Ms(o),a=e.pageX-l.left+document.body.scrollTop-Yo(i)/2,c=e.pageY-l.top+document.body.scrollLeft-qo(i)/2;i.style.top=c+"px",i.style.left=a+"px",!this.isUnstyled()&&Os(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?Ka(e.children).find(function(n){return Bt(n,"data-pc-name")==="ripple"}):void 0}}}),Qa={name:"BasePanelMenu",extends:kn,props:{model:{type:Array,default:null},expandedKeys:{type:Object,default:null},multiple:{type:Boolean,default:!1},tabindex:{type:Number,default:0}},style:Ba,provide:function(){return{$pcPanelMenu:this,$parentInstance:this}}},Ir={name:"PanelMenuSub",hostName:"PanelMenu",extends:kn,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?Te(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,"aria-hidden":!0},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:eo,ChevronDownIcon:Qn},directives:{ripple:Ja}},el=["tabindex"],tl=["id","aria-label","aria-expanded","aria-level","aria-setsize","aria-posinset","data-p-focused","data-p-disabled"],nl=["onClick","onMousemove"],ol=["href","target"];function rl(t,e,n,o,i,s){var l=r.resolveComponent("PanelMenuSub",!0),a=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(c,d){return r.openBlock(),r.createElementBlock(r.Fragment,{key:s.getItemKey(c)},[s.isItemVisible(c)&&!s.getItemProp(c,"separator")?(r.openBlock(),r.createElementBlock("li",r.mergeProps({key:0,id:s.getItemId(c),class:[t.cx("item",{processedItem:c}),s.getItemProp(c,"class")],style:s.getItemProp(c,"style"),role:"treeitem","aria-label":s.getItemLabel(c),"aria-expanded":s.isItemGroup(c)?s.isItemActive(c):void 0,"aria-level":n.level+1,"aria-setsize":s.getAriaSetSize(),"aria-posinset":s.getAriaPosInset(d),ref_for:!0},s.getPTOptions("item",c,d),{"data-p-focused":s.isItemFocused(c),"data-p-disabled":s.isItemDisabled(c)}),[r.createElementVNode("div",r.mergeProps({class:t.cx("itemContent"),onClick:function(p){return s.onItemClick(p,c)},onMousemove:function(p){return s.onItemMouseMove(p,c)},ref_for:!0},s.getPTOptions("itemContent",c,d)),[n.templates.item?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.templates.item),{key:1,item:c.item,root:!1,active:s.isItemActive(c),hasSubmenu:s.isItemGroup(c),label:s.getItemLabel(c),props:s.getMenuItemProps(c,d)},null,8,["item","active","hasSubmenu","label","props"])):r.withDirectives((r.openBlock(),r.createElementBlock("a",r.mergeProps({key:0,href:s.getItemProp(c,"url"),class:t.cx("itemLink"),target:s.getItemProp(c,"target"),tabindex:"-1",ref_for:!0},s.getPTOptions("itemLink",c,d)),[s.isItemGroup(c)?(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:s.isItemActive(c),ref_for:!0},s.getPTOptions("submenuIcon",c,d)),null,16,["class","active"])):(r.openBlock(),r.createBlock(r.resolveDynamicComponent(s.isItemActive(c)?"ChevronDownIcon":"ChevronRightIcon"),r.mergeProps({key:1,class:t.cx("submenuIcon"),ref_for:!0},s.getPTOptions("submenuIcon",c,d)),null,16,["class"]))],64)):r.createCommentVNode("",!0),n.templates.itemicon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.templates.itemicon),{key:1,item:c.item,class:r.normalizeClass(t.cx("itemIcon"))},null,8,["item","class"])):s.getItemProp(c,"icon")?(r.openBlock(),r.createElementBlock("span",r.mergeProps({key:2,class:[t.cx("itemIcon"),s.getItemProp(c,"icon")],ref_for:!0},s.getPTOptions("itemIcon",c,d)),null,16)):r.createCommentVNode("",!0),r.createElementVNode("span",r.mergeProps({class:t.cx("itemLabel"),ref_for:!0},s.getPTOptions("itemLabel",c,d)),r.toDisplayString(s.getItemLabel(c)),17)],16,ol)),[[a]])],16,nl),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")),[s.isItemVisible(c)&&s.isItemGroup(c)?(r.openBlock(),r.createBlock(l,r.mergeProps({key:0,id:s.getItemId(c)+"_list",role:"group",panelId:n.panelId,focusedItemId:n.focusedItemId,items:c.items,level:n.level+1,templates:n.templates,activeItemPath:n.activeItemPath,onItemToggle:s.onItemToggle,onItemMousemove:e[0]||(e[0]=function(f){return t.$emit("item-mousemove",f)}),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,s.isItemActive(c)]])]}),_:2},1040)],16,tl)):r.createCommentVNode("",!0),s.isItemVisible(c)&&s.getItemProp(c,"separator")?(r.openBlock(),r.createElementBlock("li",r.mergeProps({key:1,style:s.getItemProp(c,"style"),class:[t.cx("separator"),s.getItemProp(c,"class")],role:"separator",ref_for:!0},t.ptm("separator")),null,16)):r.createCommentVNode("",!0)],64)}),128))],10,el)}Ir.render=rl;function il(t,e){return cl(t)||ll(t,e)||al(t,e)||sl()}function sl(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
341
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function al(t,e){if(t){if(typeof t=="string")return Ar(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)?Ar(t,e):void 0}}function Ar(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 ll(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,i,s,l,a=[],c=!0,d=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(c=(o=s.call(n)).done)&&(a.push(o.value),a.length!==e);c=!0);}catch(f){d=!0,i=f}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw i}}return a}}function cl(t){if(Array.isArray(t))return t}var Pr={name:"PanelMenuList",hostName:"PanelMenu",extends:kn,emits:["item-toggle","header-focus"],props:{panelId:{type:String,default:null},items:{type:Array,default:null},templates:{type:Object,default:null},expandedKeys:{type:Object,default:null}},searchTimeout:null,searchValue:null,data:function(){return{focused:!1,focusedItem:null,activeItemPath:[]}},watch:{expandedKeys:function(e){this.autoUpdateActiveItemPath(e)}},mounted:function(){this.autoUpdateActiveItemPath(this.expandedKeys)},methods:{getItemProp:function(e,n){return e&&e.item?Te(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&&Hs(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(s){return s.key===n.focusedItem.key});i?this.onArrowDownKey(e):(this.activeItemPath=this.activeItemPath.filter(function(s){return s.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=Be(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]')),o=n&&(Be(n,'[data-pc-section="itemlink"]')||Be(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,$t(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 Zo(this.visibleItems,function(n){return e.isValidItem(n)})},findNextItem:function(e){var n=this,o=this.visibleItems.findIndex(function(s){return s.key===e.key}),i=o<this.visibleItems.length-1?this.visibleItems.slice(o+1).find(function(s){return n.isValidItem(s)}):void 0;return i||e},findPrevItem:function(e){var n=this,o=this.visibleItems.findIndex(function(s){return s.key===e.key}),i=o>0?Zo(this.visibleItems.slice(0,o),function(s){return n.isValidItem(s)}):void 0;return i||e},searchItems:function(e,n){var o=this;this.searchValue=(this.searchValue||"")+n;var i=null,s=!1;if(Z(this.focusedItem)){var l=this.visibleItems.findIndex(function(a){return a.key===o.focusedItem.key});i=this.visibleItems.slice(l).find(function(a){return o.isItemMatched(a)}),i=ct(i)?this.visibleItems.slice(0,l).find(function(a){return o.isItemMatched(a)}):i}else i=this.visibleItems.find(function(a){return o.isItemMatched(a)});return Z(i)&&(s=!0),ct(i)&&ct(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),s},changeFocusedItem:function(e){var n=e.originalEvent,o=e.processedItem,i=e.focusOnNext,s=e.selfCheck,l=e.allowHeaderFocus,a=l===void 0?!0:l;Z(this.focusedItem)&&this.focusedItem.key!==o.key?(this.focusedItem=o,this.scrollInView()):a&&this.$emit("header-focus",{originalEvent:n,focusOnNext:i,selfCheck:s})},scrollInView:function(){var e=Be(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 s=il(i,2),l=s[0],a=s[1];if(a){var c=n.findProcessedItemByItemKey(l);c&&o.push(c)}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 s=n[i];if(this.getItemProp(s,"key")===e)return s;var l=this.findProcessedItemByItemKey(e,s.items,o+1);if(l)return l}},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]:{},s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",l=[];return e&&e.forEach(function(a,c){var d=(s!==""?s+"_":"")+c,f={item:a,index:c,level:o,key:d,parent:i,parentKey:s};f.items=n.createProcessedItems(a.items,o+1,f,d),l.push(f)}),l},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:Ir}};function ul(t,e,n,o,i,s){var l=r.resolveComponent("PanelMenuSub");return r.openBlock(),r.createBlock(l,r.mergeProps({id:n.panelId+"_list",class:t.cx("rootList"),role:"tree",tabindex:-1,"aria-activedescendant":i.focused?s.focusedItemId:void 0,panelId:n.panelId,focusedItemId:i.focused?s.focusedItemId:void 0,items:s.processedItems,templates:n.templates,activeItemPath:i.activeItemPath,onFocus:s.onFocus,onBlur:s.onBlur,onKeydown:s.onKeyDown,onItemToggle:s.onItemToggle,onItemMousemove:s.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"])}Pr.render=ul;function Kt(t){"@babel/helpers - typeof";return Kt=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},Kt(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 dl(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){fl(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 fl(t,e,n){return(e=ml(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ml(t){var e=pl(t,"string");return Kt(e)=="symbol"?e:e+""}function pl(t,e){if(Kt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(Kt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var xr={name:"PanelMenu",extends:Qa,inheritAttrs:!1,emits:["update:expandedKeys","panel-open","panel-close"],data:function(){return{id:this.$attrs.id,activeItem:null,activeItems:[]}},watch:{"$attrs.id":function(e){this.id=e||yn()}},mounted:function(){this.id=this.id||yn()},methods:{getItemProp:function(e,n){return e?Te(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 yt(e,n)}):yt(e,this.activeItem)},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return yt(e,this.activeItem)},getPanelId:function(e){return"".concat(this.id,"_").concat(e)},getPanelKey:function(e){return this.getPanelId(e)},getHeaderId:function(e){return"".concat(this.getPanelId(e),"_header")},getContentId:function(e){return"".concat(this.getPanelId(e),"_content")},onHeaderClick:function(e,n){if(this.isItemDisabled(n)){e.preventDefault();return}n.command&&n.command({originalEvent:e,item:n}),this.changeActiveItem(e,n),$t(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=Bt(e.currentTarget,"data-p-active")===!0?Be(e.currentTarget.nextElementSibling,'[data-pc-section="rootlist"]'):null;n?$t(n):this.updateFocusedHeader({originalEvent:e,focusOnNext:!0}),e.preventDefault()},onHeaderArrowUpKey:function(e){var n=this.findPrevHeader(e.currentTarget.parentElement)||this.findLastHeader(),o=Bt(n,"data-p-active")===!0?Be(n.nextElementSibling,'[data-pc-section="rootlist"]'):null;o?$t(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=Be(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=Be(o,'[data-pc-section="header"]');return i?Bt(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=Be(o,'[data-pc-section="header"]');return i?Bt(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,s=n.currentTarget.closest('[data-pc-section="panel"]'),l=i?Be(s,'[data-pc-section="header"]'):o?this.findNextHeader(s):this.findPrevHeader(s);l?this.changeFocusedHeader(n,l):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),s=i?"panel-close":"panel-open";this.activeItem=o?n:this.activeItem&&yt(n,this.activeItem)?null:n,this.multiple&&(this.activeItems.some(function(l){return yt(n,l)})?this.activeItems=this.activeItems.filter(function(l){return!yt(n,l)}):this.activeItems.push(n)),this.changeExpandedKeys({item:n,expanded:!i}),this.$emit(s,{originalEvent:e,item:n})}},changeExpandedKeys:function(e){var n=e.item,o=e.expanded,i=o===void 0?!1:o;if(this.expandedKeys){var s=dl({},this.expandedKeys);i?s[n.key]=!0:delete s[n.key],this.$emit("update:expandedKeys",s)}},changeFocusedHeader:function(e,n){n&&$t(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:Pr,ChevronRightIcon:eo,ChevronDownIcon:Qn}},hl=["id"],gl=["id","tabindex","aria-label","aria-expanded","aria-controls","aria-disabled","onClick","onKeydown","data-p-active","data-p-disabled"],yl=["href"],bl=["id","aria-labelledby"];function vl(t,e,n,o,i,s){var l=r.resolveComponent("PanelMenuList");return r.openBlock(),r.createElementBlock("div",r.mergeProps({id:i.id,class:t.cx("root")},t.ptmi("root")),[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.model,function(a,c){return r.openBlock(),r.createElementBlock(r.Fragment,{key:s.getPanelKey(c)},[s.isItemVisible(a)?(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:0,style:s.getItemProp(a,"style"),class:[t.cx("panel"),s.getItemProp(a,"class")],ref_for:!0},t.ptm("panel")),[r.createElementVNode("div",r.mergeProps({id:s.getHeaderId(c),class:[t.cx("header",{item:a}),s.getItemProp(a,"headerClass")],tabindex:s.isItemDisabled(a)?-1:t.tabindex,role:"button","aria-label":s.getItemLabel(a),"aria-expanded":s.isItemActive(a),"aria-controls":s.getContentId(c),"aria-disabled":s.isItemDisabled(a),onClick:function(f){return s.onHeaderClick(f,a)},onKeydown:function(f){return s.onHeaderKeyDown(f,a)},ref_for:!0},s.getPTOptions("header",a,c),{"data-p-active":s.isItemActive(a),"data-p-disabled":s.isItemDisabled(a)}),[r.createElementVNode("div",r.mergeProps({class:t.cx("headerContent"),ref_for:!0},s.getPTOptions("headerContent",a,c)),[t.$slots.item?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.$slots.item),{key:1,item:a,root:!0,active:s.isItemActive(a),hasSubmenu:s.getItemProp(a,"items"),label:s.getItemLabel(a),props:s.getMenuItemProps(a,c)},null,8,["item","active","hasSubmenu","label","props"])):(r.openBlock(),r.createElementBlock("a",r.mergeProps({key:0,href:s.getItemProp(a,"url"),class:t.cx("headerLink"),tabindex:-1,ref_for:!0},s.getPTOptions("headerLink",a,c)),[s.getItemProp(a,"items")?r.renderSlot(t.$slots,"submenuicon",{key:0,active:s.isItemActive(a)},function(){return[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(s.isItemActive(a)?"ChevronDownIcon":"ChevronRightIcon"),r.mergeProps({class:t.cx("submenuIcon"),ref_for:!0},s.getPTOptions("submenuIcon",a,c)),null,16,["class"]))]}):r.createCommentVNode("",!0),t.$slots.headericon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.$slots.headericon),{key:1,item:a,class:r.normalizeClass([t.cx("headerIcon"),s.getItemProp(a,"icon")])},null,8,["item","class"])):s.getItemProp(a,"icon")?(r.openBlock(),r.createElementBlock("span",r.mergeProps({key:2,class:[t.cx("headerIcon"),s.getItemProp(a,"icon")],ref_for:!0},s.getPTOptions("headerIcon",a,c)),null,16)):r.createCommentVNode("",!0),r.createElementVNode("span",r.mergeProps({class:t.cx("headerLabel"),ref_for:!0},s.getPTOptions("headerLabel",a,c)),r.toDisplayString(s.getItemLabel(a)),17)],16,yl))],16)],16,gl),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:s.getContentId(c),class:t.cx("contentContainer"),role:"region","aria-labelledby":s.getHeaderId(c),ref_for:!0},t.ptm("contentContainer")),[s.getItemProp(a,"items")?(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:0,class:t.cx("content"),ref_for:!0},t.ptm("content")),[r.createVNode(l,{panelId:s.getPanelId(c),items:s.getItemProp(a,"items"),templates:t.$slots,expandedKeys:t.expandedKeys,onItemToggle:s.changeExpandedKeys,onHeaderFocus:s.updateFocusedHeader,pt:t.pt,unstyled:t.unstyled},null,8,["panelId","items","templates","expandedKeys","onItemToggle","onHeaderFocus","pt","unstyled"])],16)):r.createCommentVNode("",!0)],16,bl),[[r.vShow,s.isItemActive(a)]])]}),_:2},1040)],16)):r.createCommentVNode("",!0)],64)}),128))],16,hl)}xr.render=vl;const wl={class:"panel-menu-wrapper select-none"},kl=["data-active","onClick"],Sl={key:0,class:"material-symbols-outlined item-menu-icon-left"},_l=["textContent"],Cl=["onClick"],El={key:0,class:"material-symbols-outlined item-menu-icon-left"},Tl=["textContent"],Il={key:2,class:r.normalizeClass(["item-menu"])},Al={key:0,class:"material-symbols-outlined item-menu-icon-left"},Pl=["textContent"],Ll=We(r.defineComponent({__name:"NavMenu",props:{items:{}},setup(t){const e=t,n=(a,c)=>{a.disabled||a.command&&typeof a.command=="function"||c()},o=(a,c)=>{c.disabled||typeof c.command=="function"&&c.command(a)},i=a=>typeof a.label=="function"?a.label():a.label??"Item",s=(a,c,d)=>a.to?(a.exact=a.exact??!1,a.exact?d:c):!1,l=r.computed(()=>e.items.filter(a=>a.visible===!1?!1:typeof a.visible=="function"?a.visible()===!0:!0));return(a,c)=>{const d=r.resolveComponent("router-link");return r.openBlock(),r.createElementBlock("div",wl,[r.createVNode(r.unref(xr),{model:l.value,unstyled:!0},{item:r.withCtx(({item:f,active:p})=>[f.to?(r.openBlock(),r.createBlock(d,{key:0,to:f.to,custom:""},{default:r.withCtx(({navigate:g,isExactActive:v,isActive:_})=>[r.createElementVNode("a",{class:r.normalizeClass(["item-menu",{disabled:f.disabled}]),"data-active":s(f,_,v),onClick:r.withModifiers(A=>n(f,g),["prevent"])},[f.icon?(r.openBlock(),r.createElementBlock("span",Sl,r.toDisplayString(f.icon),1)):r.createCommentVNode("",!0),r.createElementVNode("span",{textContent:r.toDisplayString(i(f))},null,8,_l)],10,kl)]),_:2},1032,["to"])):typeof f.command=="function"?(r.openBlock(),r.createElementBlock("span",{key:1,class:r.normalizeClass(["item-menu",{disabled:f.disabled}]),onClick:r.withModifiers(g=>o(g,f),["stop"])},[f.icon?(r.openBlock(),r.createElementBlock("span",El,r.toDisplayString(f.icon),1)):r.createCommentVNode("",!0),r.createElementVNode("span",{textContent:r.toDisplayString(i(f))},null,8,Tl)],10,Cl)):(r.openBlock(),r.createElementBlock("a",Il,[f.icon?(r.openBlock(),r.createElementBlock("span",Al,r.toDisplayString(f.icon),1)):r.createCommentVNode("",!0),r.createElementVNode("span",{textContent:r.toDisplayString(i(f))},null,8,Pl),c[0]||(c[0]=r.createElementVNode("div",{class:"sep"},null,-1)),r.createElementVNode("span",{class:r.normalizeClass(["material-symbols-outlined arrow",{"--expand":p}])}," chevron_right ",2)]))]),_:1},8,["model"])])}}}),[["__scopeId","data-v-17765f50"]]),xl=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,s)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.renderSlot(i.$slots,"anchor",r.normalizeProps(r.guardReactiveProps({Show:o})),()=>[r.createVNode(Ue,{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":s[0]||(s[0]=l=>n.value=l),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))}}),Ol=We(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 $l(t){return r.getCurrentScope()?(r.onScopeDispose(t),!0):!1}const Bl=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function Nl(t){return r.getCurrentInstance()}function Ml(t){return Array.isArray(t)?t:[t]}function Dl(t,e=!0,n){Nl()?r.onMounted(t,n):e?t():r.nextTick(t)}const Or=Bl?window:void 0;function bt(t){var e;const n=r.toValue(t);return(e=n==null?void 0:n.$el)!=null?e:n}function Rl(){const t=r.ref(!1),e=r.getCurrentInstance();return e&&r.onMounted(()=>{t.value=!0},e),t}function Ul(t){const e=Rl();return r.computed(()=>(e.value,!!t()))}function $r(t,e,n={}){const{window:o=Or,...i}=n;let s;const l=Ul(()=>o&&"ResizeObserver"in o),a=()=>{s&&(s.disconnect(),s=void 0)},c=r.computed(()=>{const p=r.toValue(t);return Array.isArray(p)?p.map(g=>bt(g)):[bt(p)]}),d=r.watch(c,p=>{if(a(),l.value&&o){s=new ResizeObserver(e);for(const g of p)g&&s.observe(g,i)}},{immediate:!0,flush:"post"}),f=()=>{a(),d()};return $l(f),{isSupported:l,stop:f}}function Vl(t,e={width:0,height:0},n={}){const{window:o=Or,box:i="content-box"}=n,s=r.computed(()=>{var p,g;return(g=(p=bt(t))==null?void 0:p.namespaceURI)==null?void 0:g.includes("svg")}),l=r.ref(e.width),a=r.ref(e.height),{stop:c}=$r(t,([p])=>{const g=i==="border-box"?p.borderBoxSize:i==="content-box"?p.contentBoxSize:p.devicePixelContentBoxSize;if(o&&s.value){const v=bt(t);if(v){const _=v.getBoundingClientRect();l.value=_.width,a.value=_.height}}else if(g){const v=Ml(g);l.value=v.reduce((_,{inlineSize:A})=>_+A,0),a.value=v.reduce((_,{blockSize:A})=>_+A,0)}else l.value=p.contentRect.width,a.value=p.contentRect.height},n);Dl(()=>{const p=bt(t);p&&(l.value="offsetWidth"in p?p.offsetWidth:e.width,a.value="offsetHeight"in p?p.offsetHeight:e.height)});const d=r.watch(()=>bt(t),p=>{l.value=p?e.width:0,a.value=p?e.height:0});function f(){c(),d()}return{width:l,height:a,stop:f}}/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Hl(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"}function oo(t,...e){if(!Hl(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error("Uint8Array expected of length "+e+", got length="+t.length)}function Br(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function jl(t,e){oo(t);const n=e.outputLen;if(t.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}function ro(...t){for(let e=0;e<t.length;e++)t[e].fill(0)}function io(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function Ve(t,e){return t<<32-e|t>>>e}function Fl(t){if(typeof t!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(t))}function Nr(t){return typeof t=="string"&&(t=Fl(t)),oo(t),t}class zl{}function Kl(t){const e=o=>t().update(Nr(o)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function Wl(t,e,n,o){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,n,o);const i=BigInt(32),s=BigInt(4294967295),l=Number(n>>i&s),a=Number(n&s),c=o?4:0,d=o?0:4;t.setUint32(e+c,l,o),t.setUint32(e+d,a,o)}function Gl(t,e,n){return t&e^~t&n}function ql(t,e,n){return t&e^t&n^e&n}class Yl extends zl{constructor(e,n,o,i){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=n,this.padOffset=o,this.isLE=i,this.buffer=new Uint8Array(e),this.view=io(this.buffer)}update(e){Br(this),e=Nr(e),oo(e);const{view:n,buffer:o,blockLen:i}=this,s=e.length;for(let l=0;l<s;){const a=Math.min(i-this.pos,s-l);if(a===i){const c=io(e);for(;i<=s-l;l+=i)this.process(c,l);continue}o.set(e.subarray(l,l+a),this.pos),this.pos+=a,l+=a,this.pos===i&&(this.process(n,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){Br(this),jl(e,this),this.finished=!0;const{buffer:n,view:o,blockLen:i,isLE:s}=this;let{pos:l}=this;n[l++]=128,ro(this.buffer.subarray(l)),this.padOffset>i-l&&(this.process(o,0),l=0);for(let p=l;p<i;p++)n[p]=0;Wl(o,i-8,BigInt(this.length*8),s),this.process(o,0);const a=io(e),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const d=c/4,f=this.get();if(d>f.length)throw new Error("_sha2: outputLen bigger than state");for(let p=0;p<d;p++)a.setUint32(4*p,f[p],s)}digest(){const{buffer:e,outputLen:n}=this;this.digestInto(e);const o=e.slice(0,n);return this.destroy(),o}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:n,buffer:o,length:i,finished:s,destroyed:l,pos:a}=this;return e.destroyed=l,e.finished=s,e.length=i,e.pos=a,i%n&&e.buffer.set(o),e}clone(){return this._cloneInto()}}const rt=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Xl=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),it=new Uint32Array(64);class Zl extends Yl{constructor(e=32){super(64,e,8,!1),this.A=rt[0]|0,this.B=rt[1]|0,this.C=rt[2]|0,this.D=rt[3]|0,this.E=rt[4]|0,this.F=rt[5]|0,this.G=rt[6]|0,this.H=rt[7]|0}get(){const{A:e,B:n,C:o,D:i,E:s,F:l,G:a,H:c}=this;return[e,n,o,i,s,l,a,c]}set(e,n,o,i,s,l,a,c){this.A=e|0,this.B=n|0,this.C=o|0,this.D=i|0,this.E=s|0,this.F=l|0,this.G=a|0,this.H=c|0}process(e,n){for(let p=0;p<16;p++,n+=4)it[p]=e.getUint32(n,!1);for(let p=16;p<64;p++){const g=it[p-15],v=it[p-2],_=Ve(g,7)^Ve(g,18)^g>>>3,A=Ve(v,17)^Ve(v,19)^v>>>10;it[p]=A+it[p-7]+_+it[p-16]|0}let{A:o,B:i,C:s,D:l,E:a,F:c,G:d,H:f}=this;for(let p=0;p<64;p++){const g=Ve(a,6)^Ve(a,11)^Ve(a,25),v=f+g+Gl(a,c,d)+Xl[p]+it[p]|0,A=(Ve(o,2)^Ve(o,13)^Ve(o,22))+ql(o,i,s)|0;f=d,d=c,c=a,a=l+v|0,l=s,s=i,i=o,o=v+A|0}o=o+this.A|0,i=i+this.B|0,s=s+this.C|0,l=l+this.D|0,a=a+this.E|0,c=c+this.F|0,d=d+this.G|0,f=f+this.H|0,this.set(o,i,s,l,a,c,d,f)}roundClean(){ro(it)}destroy(){this.set(0,0,0,0,0,0,0,0),ro(this.buffer)}}const Jl=Kl(()=>new Zl);class Wt extends Error{}Wt.prototype.name="InvalidTokenError";function Ql(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,n)=>{let o=n.charCodeAt(0).toString(16).toUpperCase();return o.length<2&&(o="0"+o),"%"+o}))}function ec(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return Ql(e)}catch{return atob(e)}}function so(t,e){if(typeof t!="string")throw new Wt("Invalid token specified: must be a string");e||(e={});const n=e.header===!0?0:1,o=t.split(".")[n];if(typeof o!="string")throw new Wt(`Invalid token specified: missing part #${n+1}`);let i;try{i=ec(o)}catch(s){throw new Wt(`Invalid token specified: invalid base64 for part #${n+1} (${s.message})`)}try{return JSON.parse(i)}catch(s){throw new Wt(`Invalid token specified: invalid json for part #${n+1} (${s.message})`)}}if(typeof Promise>"u")throw Error("Keycloak requires an environment that supports Promises. Make sure that you include the appropriate polyfill.");function Mr(t){if(!(this instanceof Mr))throw new Error("The 'Keycloak' constructor must be invoked with 'new'.");var e=this,n,o=[],i,s={enable:!0,callbackList:[],interval:5};e.didInitialize=!1;for(var l=document.getElementsByTagName("script"),a=0;a<l.length;a++)(l[a].src.indexOf("keycloak.js")!==-1||l[a].src.indexOf("keycloak.min.js")!==-1)&&l[a].src.indexOf("version=")!==-1&&(e.iframeVersion=l[a].src.substring(l[a].src.indexOf("version=")+8).split("&")[0]);var c=!0,d=$e(console.info),f=$e(console.warn);e.init=function(u){if(e.didInitialize)throw new Error("A 'Keycloak' instance can only be initialized once.");e.didInitialize=!0,e.authenticated=!1,i=ht();var h=["default","cordova","cordova-native"];if(u&&h.indexOf(u.adapter)>-1?n=Ze(u.adapter):u&&typeof u.adapter=="object"?n=u.adapter:window.Cordova||window.cordova?n=Ze("cordova"):n=Ze(),u){if(typeof u.useNonce<"u"&&(c=u.useNonce),typeof u.checkLoginIframe<"u"&&(s.enable=u.checkLoginIframe),u.checkLoginIframeInterval&&(s.interval=u.checkLoginIframeInterval),u.onLoad==="login-required"&&(e.loginRequired=!0),u.responseMode)if(u.responseMode==="query"||u.responseMode==="fragment")e.responseMode=u.responseMode;else throw"Invalid value for responseMode";if(u.flow){switch(u.flow){case"standard":e.responseType="code";break;case"implicit":e.responseType="id_token token";break;case"hybrid":e.responseType="code id_token token";break;default:throw"Invalid value for flow"}e.flow=u.flow}if(u.timeSkew!=null&&(e.timeSkew=u.timeSkew),u.redirectUri&&(e.redirectUri=u.redirectUri),u.silentCheckSsoRedirectUri&&(e.silentCheckSsoRedirectUri=u.silentCheckSsoRedirectUri),typeof u.silentCheckSsoFallback=="boolean"?e.silentCheckSsoFallback=u.silentCheckSsoFallback:e.silentCheckSsoFallback=!0,typeof u.pkceMethod<"u"){if(u.pkceMethod!=="S256"&&u.pkceMethod!==!1)throw new TypeError(`Invalid value for pkceMethod', expected 'S256' or false but got ${u.pkceMethod}.`);e.pkceMethod=u.pkceMethod}else e.pkceMethod="S256";typeof u.enableLogging=="boolean"?e.enableLogging=u.enableLogging:e.enableLogging=!1,u.logoutMethod==="POST"?e.logoutMethod="POST":e.logoutMethod="GET",typeof u.scope=="string"&&(e.scope=u.scope),typeof u.acrValues=="string"&&(e.acrValues=u.acrValues),typeof u.messageReceiveTimeout=="number"&&u.messageReceiveTimeout>0?e.messageReceiveTimeout=u.messageReceiveTimeout:e.messageReceiveTimeout=1e4}e.responseMode||(e.responseMode="fragment"),e.responseType||(e.responseType="code",e.flow="standard");var w=Y(),I=Y();I.promise.then(function(){e.onReady&&e.onReady(e.authenticated),w.setSuccess(e.authenticated)}).catch(function(O){w.setError(O)});var b=D();function P(){var O=function(F){F||(R.prompt="none"),u&&u.locale&&(R.locale=u.locale),e.login(R).then(function(){I.setSuccess()}).catch(function(ke){I.setError(ke)})},x=function(){var F=document.createElement("iframe"),ke=e.createLoginUrl({prompt:"none",redirectUri:e.silentCheckSsoRedirectUri});F.setAttribute("src",ke),F.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),F.setAttribute("title","keycloak-silent-check-sso"),F.style.display="none",document.body.appendChild(F);var me=function(pe){if(!(pe.origin!==window.location.origin||F.contentWindow!==pe.source)){var Je=ne(pe.data);k(Je,I),document.body.removeChild(F),window.removeEventListener("message",me)}};window.addEventListener("message",me)},R={};switch(u.onLoad){case"check-sso":s.enable?X().then(function(){fe().then(function(F){F?I.setSuccess():e.silentCheckSsoRedirectUri?x():O(!1)}).catch(function(F){I.setError(F)})}):e.silentCheckSsoRedirectUri?x():O(!1);break;case"login-required":O(!0);break;default:throw"Invalid value for onLoad"}}function C(){var O=ne(window.location.href);if(O&&window.history.replaceState(window.history.state,null,O.newUrl),O&&O.valid)return X().then(function(){k(O,I)}).catch(function(x){I.setError(x)});u?u.token&&u.refreshToken?(G(u.token,u.refreshToken,u.idToken),s.enable?X().then(function(){fe().then(function(x){x?(e.onAuthSuccess&&e.onAuthSuccess(),I.setSuccess(),de()):I.setSuccess()}).catch(function(x){I.setError(x)})}):e.updateToken(-1).then(function(){e.onAuthSuccess&&e.onAuthSuccess(),I.setSuccess()}).catch(function(x){e.onAuthError&&e.onAuthError(),u.onLoad?P():I.setError(x)})):u.onLoad?P():I.setSuccess():I.setSuccess()}function E(){var O=Y(),x=function(){(document.readyState==="interactive"||document.readyState==="complete")&&(document.removeEventListener("readystatechange",x),O.setSuccess())};return document.addEventListener("readystatechange",x),x(),O.promise}return b.then(function(){E().then(je).then(C).catch(function(O){w.setError(O)})}),b.catch(function(O){w.setError(O)}),w.promise},e.login=function(u){return n.login(u)};function p(u){var h=null,w=window.crypto||window.msCrypto;if(w&&w.getRandomValues&&window.Uint8Array)return h=new Uint8Array(u),w.getRandomValues(h),h;h=new Array(u);for(var I=0;I<h.length;I++)h[I]=Math.floor(256*Math.random());return h}function g(u){return v(u,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function v(u,h){for(var w=p(u),I=new Array(u),b=0;b<u;b++)I[b]=h.charCodeAt(w[b]%h.length);return String.fromCharCode.apply(null,I)}function _(u,h){if(u!=="S256")throw new TypeError(`Invalid value for 'pkceMethod', expected 'S256' but got '${u}'.`);const w=Jl(h);return tc(w).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}function A(u){var h={id_token:{acr:u}};return JSON.stringify(h)}e.createLoginUrl=function(u){var h=ue(),w=ue(),I=n.redirectUri(u),b={state:h,nonce:w,redirectUri:encodeURIComponent(I),loginOptions:u};u&&u.prompt&&(b.prompt=u.prompt);var P;u&&u.action=="register"?P=e.endpoints.register():P=e.endpoints.authorize();var C=u&&u.scope||e.scope;C?C.indexOf("openid")===-1&&(C="openid "+C):C="openid";var E=P+"?client_id="+encodeURIComponent(e.clientId)+"&redirect_uri="+encodeURIComponent(I)+"&state="+encodeURIComponent(h)+"&response_mode="+encodeURIComponent(e.responseMode)+"&response_type="+encodeURIComponent(e.responseType)+"&scope="+encodeURIComponent(C);if(c&&(E=E+"&nonce="+encodeURIComponent(w)),u&&u.prompt&&(E+="&prompt="+encodeURIComponent(u.prompt)),u&&u.maxAge&&(E+="&max_age="+encodeURIComponent(u.maxAge)),u&&u.loginHint&&(E+="&login_hint="+encodeURIComponent(u.loginHint)),u&&u.idpHint&&(E+="&kc_idp_hint="+encodeURIComponent(u.idpHint)),u&&u.action&&u.action!="register"&&(E+="&kc_action="+encodeURIComponent(u.action)),u&&u.locale&&(E+="&ui_locales="+encodeURIComponent(u.locale)),u&&u.acr){var O=A(u.acr);E+="&claims="+encodeURIComponent(O)}if((u&&u.acrValues||e.acrValues)&&(E+="&acr_values="+encodeURIComponent(u.acrValues||e.acrValues)),e.pkceMethod){var x=g(96);b.pkceCodeVerifier=x;var R=_(e.pkceMethod,x);E+="&code_challenge="+R,E+="&code_challenge_method="+e.pkceMethod}return i.add(b),E},e.logout=function(u){return n.logout(u)},e.createLogoutUrl=function(u){if(((u==null?void 0:u.logoutMethod)??e.logoutMethod)==="POST")return e.endpoints.logout();var w=e.endpoints.logout()+"?client_id="+encodeURIComponent(e.clientId)+"&post_logout_redirect_uri="+encodeURIComponent(n.redirectUri(u,!1));return e.idToken&&(w+="&id_token_hint="+encodeURIComponent(e.idToken)),w},e.register=function(u){return n.register(u)},e.createRegisterUrl=function(u){return u||(u={}),u.action="register",e.createLoginUrl(u)},e.createAccountUrl=function(u){var h=L(),w=void 0;return typeof h<"u"&&(w=h+"/account?referrer="+encodeURIComponent(e.clientId)+"&referrer_uri="+encodeURIComponent(n.redirectUri(u))),w},e.accountManagement=function(){return n.accountManagement()},e.hasRealmRole=function(u){var h=e.realmAccess;return!!h&&h.roles.indexOf(u)>=0},e.hasResourceRole=function(u,h){if(!e.resourceAccess)return!1;var w=e.resourceAccess[h||e.clientId];return!!w&&w.roles.indexOf(u)>=0},e.loadUserProfile=function(){var u=L()+"/account",h=new XMLHttpRequest;h.open("GET",u,!0),h.setRequestHeader("Accept","application/json"),h.setRequestHeader("Authorization","bearer "+e.token);var w=Y();return h.onreadystatechange=function(){h.readyState==4&&(h.status==200?(e.profile=JSON.parse(h.responseText),w.setSuccess(e.profile)):w.setError())},h.send(),w.promise},e.loadUserInfo=function(){var u=e.endpoints.userinfo(),h=new XMLHttpRequest;h.open("GET",u,!0),h.setRequestHeader("Accept","application/json"),h.setRequestHeader("Authorization","bearer "+e.token);var w=Y();return h.onreadystatechange=function(){h.readyState==4&&(h.status==200?(e.userInfo=JSON.parse(h.responseText),w.setSuccess(e.userInfo)):w.setError())},h.send(),w.promise},e.isTokenExpired=function(u){if(!e.tokenParsed||!e.refreshToken&&e.flow!="implicit")throw"Not authenticated";if(e.timeSkew==null)return d("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;var h=e.tokenParsed.exp-Math.ceil(new Date().getTime()/1e3)+e.timeSkew;if(u){if(isNaN(u))throw"Invalid minValidity";h-=u}return h<0},e.updateToken=function(u){var h=Y();if(!e.refreshToken)return h.setError(),h.promise;u=u||5;var w=function(){var b=!1;if(u==-1?(b=!0,d("[KEYCLOAK] Refreshing token: forced refresh")):(!e.tokenParsed||e.isTokenExpired(u))&&(b=!0,d("[KEYCLOAK] Refreshing token: token expired")),!b)h.setSuccess(!1);else{var P="grant_type=refresh_token&refresh_token="+e.refreshToken,C=e.endpoints.token();if(o.push(h),o.length==1){var E=new XMLHttpRequest;E.open("POST",C,!0),E.setRequestHeader("Content-type","application/x-www-form-urlencoded"),E.withCredentials=!0,P+="&client_id="+encodeURIComponent(e.clientId);var O=new Date().getTime();E.onreadystatechange=function(){if(E.readyState==4)if(E.status==200){d("[KEYCLOAK] Token refreshed"),O=(O+new Date().getTime())/2;var x=JSON.parse(E.responseText);G(x.access_token,x.refresh_token,x.id_token,O),e.onAuthRefreshSuccess&&e.onAuthRefreshSuccess();for(var R=o.pop();R!=null;R=o.pop())R.setSuccess(!0)}else{f("[KEYCLOAK] Failed to refresh token"),E.status==400&&e.clearToken(),e.onAuthRefreshError&&e.onAuthRefreshError();for(var R=o.pop();R!=null;R=o.pop())R.setError(!0)}},E.send(P)}}};if(s.enable){var I=fe();I.then(function(){w()}).catch(function(b){h.setError(b)})}else w();return h.promise},e.clearToken=function(){e.token&&(G(null,null,null),e.onAuthLogout&&e.onAuthLogout(),e.loginRequired&&e.login())};function L(){if(typeof e.authServerUrl<"u")return e.authServerUrl.charAt(e.authServerUrl.length-1)=="/"?e.authServerUrl+"realms/"+encodeURIComponent(e.realm):e.authServerUrl+"/realms/"+encodeURIComponent(e.realm)}function S(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}function k(u,h){var w=u.code,I=u.error,b=u.prompt,P=new Date().getTime();if(u.kc_action_status&&e.onActionUpdate&&e.onActionUpdate(u.kc_action_status,u.kc_action),I){if(b!="none")if(u.error_description&&u.error_description==="authentication_expired")e.login(u.loginOptions);else{var C={error:I,error_description:u.error_description};e.onAuthError&&e.onAuthError(C),h&&h.setError(C)}else h&&h.setSuccess();return}else e.flow!="standard"&&(u.access_token||u.id_token)&&R(u.access_token,null,u.id_token,!0);if(e.flow!="implicit"&&w){var E="code="+w+"&grant_type=authorization_code",O=e.endpoints.token(),x=new XMLHttpRequest;x.open("POST",O,!0),x.setRequestHeader("Content-type","application/x-www-form-urlencoded"),E+="&client_id="+encodeURIComponent(e.clientId),E+="&redirect_uri="+u.redirectUri,u.pkceCodeVerifier&&(E+="&code_verifier="+u.pkceCodeVerifier),x.withCredentials=!0,x.onreadystatechange=function(){if(x.readyState==4)if(x.status==200){var F=JSON.parse(x.responseText);R(F.access_token,F.refresh_token,F.id_token,e.flow==="standard"),de()}else e.onAuthError&&e.onAuthError(),h&&h.setError()},x.send(E)}function R(F,ke,me,pe){P=(P+new Date().getTime())/2,G(F,ke,me,P),c&&e.idTokenParsed&&e.idTokenParsed.nonce!=u.storedNonce?(d("[KEYCLOAK] Invalid nonce, clearing token"),e.clearToken(),h&&h.setError()):pe&&(e.onAuthSuccess&&e.onAuthSuccess(),h&&h.setSuccess())}}function D(u){var h=Y(),w;t?typeof t=="string"&&(w=t):w="keycloak.json";function I(x){x?e.endpoints={authorize:function(){return x.authorization_endpoint},token:function(){return x.token_endpoint},logout:function(){if(!x.end_session_endpoint)throw"Not supported by the OIDC server";return x.end_session_endpoint},checkSessionIframe:function(){if(!x.check_session_iframe)throw"Not supported by the OIDC server";return x.check_session_iframe},register:function(){throw'Redirection to "Register user" page not supported in standard OIDC mode'},userinfo:function(){if(!x.userinfo_endpoint)throw"Not supported by the OIDC server";return x.userinfo_endpoint}}:e.endpoints={authorize:function(){return L()+"/protocol/openid-connect/auth"},token:function(){return L()+"/protocol/openid-connect/token"},logout:function(){return L()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){var R=L()+"/protocol/openid-connect/login-status-iframe.html";return e.iframeVersion&&(R=R+"?version="+e.iframeVersion),R},thirdPartyCookiesIframe:function(){var R=L()+"/protocol/openid-connect/3p-cookies/step1.html";return e.iframeVersion&&(R=R+"?version="+e.iframeVersion),R},register:function(){return L()+"/protocol/openid-connect/registrations"},userinfo:function(){return L()+"/protocol/openid-connect/userinfo"}}}if(w){var b=new XMLHttpRequest;b.open("GET",w,!0),b.setRequestHeader("Accept","application/json"),b.onreadystatechange=function(){if(b.readyState==4)if(b.status==200||U(b)){var x=JSON.parse(b.responseText);e.authServerUrl=x["auth-server-url"],e.realm=x.realm,e.clientId=x.resource,I(null),h.setSuccess()}else h.setError()},b.send()}else{if(!t.clientId)throw"clientId missing";e.clientId=t.clientId;var P=t.oidcProvider;if(P)if(typeof P=="string"){var O;P.charAt(P.length-1)=="/"?O=P+".well-known/openid-configuration":O=P+"/.well-known/openid-configuration";var b=new XMLHttpRequest;b.open("GET",O,!0),b.setRequestHeader("Accept","application/json"),b.onreadystatechange=function(){if(b.readyState==4)if(b.status==200||U(b)){var R=JSON.parse(b.responseText);I(R),h.setSuccess()}else h.setError()},b.send()}else I(P),h.setSuccess();else{if(!t.url){for(var C=document.getElementsByTagName("script"),E=0;E<C.length;E++)if(C[E].src.match(/.*keycloak\.js/)){t.url=C[E].src.substr(0,C[E].src.indexOf("/js/keycloak.js"));break}}if(!t.realm)throw"realm missing";e.authServerUrl=t.url,e.realm=t.realm,I(null),h.setSuccess()}}return h.promise}function U(u){return u.status==0&&u.responseText&&u.responseURL.startsWith("file:")}function G(u,h,w,I){if(e.tokenTimeoutHandle&&(clearTimeout(e.tokenTimeoutHandle),e.tokenTimeoutHandle=null),h?(e.refreshToken=h,e.refreshTokenParsed=so(h)):(delete e.refreshToken,delete e.refreshTokenParsed),w?(e.idToken=w,e.idTokenParsed=so(w)):(delete e.idToken,delete e.idTokenParsed),u){if(e.token=u,e.tokenParsed=so(u),e.sessionId=e.tokenParsed.sid,e.authenticated=!0,e.subject=e.tokenParsed.sub,e.realmAccess=e.tokenParsed.realm_access,e.resourceAccess=e.tokenParsed.resource_access,I&&(e.timeSkew=Math.floor(I/1e3)-e.tokenParsed.iat),e.timeSkew!=null&&(d("[KEYCLOAK] Estimated time difference between browser and server is "+e.timeSkew+" seconds"),e.onTokenExpired)){var b=(e.tokenParsed.exp-new Date().getTime()/1e3+e.timeSkew)*1e3;d("[KEYCLOAK] Token expires in "+Math.round(b/1e3)+" s"),b<=0?e.onTokenExpired():e.tokenTimeoutHandle=setTimeout(e.onTokenExpired,b)}}else delete e.token,delete e.tokenParsed,delete e.subject,delete e.realmAccess,delete e.resourceAccess,e.authenticated=!1}function ue(){var u="0123456789abcdef",h=v(36,u).split("");h[14]="4",h[19]=u.substr(h[19]&3|8,1),h[8]=h[13]=h[18]=h[23]="-";var w=h.join("");return w}function ne(u){var h=Pe(u);if(h){var w=i.get(h.state);return w&&(h.valid=!0,h.redirectUri=w.redirectUri,h.storedNonce=w.nonce,h.prompt=w.prompt,h.pkceCodeVerifier=w.pkceCodeVerifier,h.loginOptions=w.loginOptions),h}}function Pe(u){var h;switch(e.flow){case"standard":h=["code","state","session_state","kc_action_status","kc_action","iss"];break;case"implicit":h=["access_token","token_type","id_token","state","session_state","expires_in","kc_action_status","kc_action","iss"];break;case"hybrid":h=["access_token","token_type","id_token","code","state","session_state","expires_in","kc_action_status","kc_action","iss"];break}h.push("error"),h.push("error_description"),h.push("error_uri");var w=u.indexOf("?"),I=u.indexOf("#"),b,P;if(e.responseMode==="query"&&w!==-1?(b=u.substring(0,w),P=oe(u.substring(w+1,I!==-1?I:u.length),h),P.paramsString!==""&&(b+="?"+P.paramsString),I!==-1&&(b+=u.substring(I))):e.responseMode==="fragment"&&I!==-1&&(b=u.substring(0,I),P=oe(u.substring(I+1),h),P.paramsString!==""&&(b+="#"+P.paramsString)),P&&P.oauthParams){if(e.flow==="standard"||e.flow==="hybrid"){if((P.oauthParams.code||P.oauthParams.error)&&P.oauthParams.state)return P.oauthParams.newUrl=b,P.oauthParams}else if(e.flow==="implicit"&&(P.oauthParams.access_token||P.oauthParams.error)&&P.oauthParams.state)return P.oauthParams.newUrl=b,P.oauthParams}}function oe(u,h){for(var w=u.split("&"),I={paramsString:"",oauthParams:{}},b=0;b<w.length;b++){var P=w[b].indexOf("="),C=w[b].slice(0,P);h.indexOf(C)!==-1?I.oauthParams[C]=w[b].slice(P+1):(I.paramsString!==""&&(I.paramsString+="&"),I.paramsString+=w[b])}return I}function Y(){var u={setSuccess:function(h){u.resolve(h)},setError:function(h){u.reject(h)}};return u.promise=new Promise(function(h,w){u.resolve=h,u.reject=w}),u}function M(u,h,w){var I=null,b=new Promise(function(P,C){I=setTimeout(function(){C({error:w})},h)});return Promise.race([u,b]).finally(function(){clearTimeout(I)})}function X(){var u=Y();if(!s.enable||s.iframe)return u.setSuccess(),u.promise;var h=document.createElement("iframe");s.iframe=h,h.onload=function(){var b=e.endpoints.authorize();b.charAt(0)==="/"?s.iframeOrigin=S():s.iframeOrigin=b.substring(0,b.indexOf("/",8)),u.setSuccess()};var w=e.endpoints.checkSessionIframe();h.setAttribute("src",w),h.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),h.setAttribute("title","keycloak-session-iframe"),h.style.display="none",document.body.appendChild(h);var I=function(b){if(!(b.origin!==s.iframeOrigin||s.iframe.contentWindow!==b.source)&&(b.data=="unchanged"||b.data=="changed"||b.data=="error")){b.data!="unchanged"&&e.clearToken();for(var P=s.callbackList.splice(0,s.callbackList.length),C=P.length-1;C>=0;--C){var E=P[C];b.data=="error"?E.setError():E.setSuccess(b.data=="unchanged")}}};return window.addEventListener("message",I,!1),u.promise}function de(){s.enable&&e.token&&setTimeout(function(){fe().then(function(u){u&&de()})},s.interval*1e3)}function fe(){var u=Y();if(s.iframe&&s.iframeOrigin){var h=e.clientId+" "+(e.sessionId?e.sessionId:"");s.callbackList.push(u);var w=s.iframeOrigin;s.callbackList.length==1&&s.iframe.contentWindow.postMessage(h,w)}else u.setSuccess();return u.promise}function je(){var u=Y();if(s.enable||e.silentCheckSsoRedirectUri){var h=document.createElement("iframe");h.setAttribute("src",e.endpoints.thirdPartyCookiesIframe()),h.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),h.setAttribute("title","keycloak-3p-check-iframe"),h.style.display="none",document.body.appendChild(h);var w=function(I){h.contentWindow===I.source&&(I.data!=="supported"&&I.data!=="unsupported"||(I.data==="unsupported"&&(f(`[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:
342
346
 
343
- - It is not possible to retrieve tokens without redirecting to the Keycloak server (a.k.a. no support for silent authentication).
344
- - It is not possible to automatically detect changes to the session status (such as the user logging out in another tab).
347
+ .p-ink-active {
348
+ animation: ripple 0.4s linear;
349
+ }
345
350
 
346
- For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_modern_browsers`),s.enable=!1,e.silentCheckSsoFallback&&(e.silentCheckSsoRedirectUri=!1)),document.body.removeChild(h),window.removeEventListener("message",w),u.setSuccess()))};window.addEventListener("message",w,!1)}else u.setSuccess();return M(u.promise,e.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function Ze(u){if(!u||u=="default")return{login:function(C){return window.location.assign(e.createLoginUrl(C)),Y().promise},logout:async function(C){if(((C==null?void 0:C.logoutMethod)??e.logoutMethod)==="GET"){window.location.replace(e.createLogoutUrl(C));return}const O=e.createLogoutUrl(C),x=await fetch(O,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({id_token_hint:e.idToken,client_id:e.clientId,post_logout_redirect_uri:n.redirectUri(C,!1)})});if(x.redirected){window.location.href=x.url;return}if(x.ok){window.location.reload();return}throw new Error("Logout failed, request returned an error code.")},register:function(C){return window.location.assign(e.createRegisterUrl(C)),Y().promise},accountManagement:function(){var C=e.createAccountUrl();if(typeof C<"u")window.location.href=C;else throw"Not supported by the OIDC server";return Y().promise},redirectUri:function(C,E){return C&&C.redirectUri?C.redirectUri:e.redirectUri?e.redirectUri:location.href}};if(u=="cordova"){s.enable=!1;var h=function(C,E,O){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(C,E,O):window.open(C,E,O)},w=function(C){return C&&C.cordovaOptions?Object.keys(C.cordovaOptions).reduce(function(E,O){return E[O]=C.cordovaOptions[O],E},{}):{}},I=function(C){return Object.keys(C).reduce(function(E,O){return E.push(O+"="+C[O]),E},[]).join(",")},b=function(C){var E=w(C);return E.location="no",C&&C.prompt=="none"&&(E.hidden="yes"),I(E)},P=function(){return e.redirectUri||"http://localhost"};return{login:function(C){var E=Y(),O=b(C),x=e.createLoginUrl(C),R=h(x,"_blank",O),F=!1,ke=!1,me=function(){ke=!0,R.close()};return R.addEventListener("loadstart",function(pe){if(pe.url.indexOf(P())==0){var Je=ne(pe.url);k(Je,E),me(),F=!0}}),R.addEventListener("loaderror",function(pe){if(!F)if(pe.url.indexOf(P())==0){var Je=ne(pe.url);k(Je,E),me(),F=!0}else E.setError(),me()}),R.addEventListener("exit",function(pe){ke||E.setError({reason:"closed_by_user"})}),E.promise},logout:function(C){var E=Y(),O=e.createLogoutUrl(C),x=h(O,"_blank","location=no,hidden=yes,clearcache=yes"),R;return x.addEventListener("loadstart",function(F){F.url.indexOf(P())==0&&x.close()}),x.addEventListener("loaderror",function(F){F.url.indexOf(P())==0||(R=!0),x.close()}),x.addEventListener("exit",function(F){R?E.setError():(e.clearToken(),E.setSuccess())}),E.promise},register:function(C){var E=Y(),O=e.createRegisterUrl(),x=b(C),R=h(O,"_blank",x);return R.addEventListener("loadstart",function(F){if(F.url.indexOf(P())==0){R.close();var ke=ne(F.url);k(ke,E)}}),E.promise},accountManagement:function(){var C=e.createAccountUrl();if(typeof C<"u"){var E=h(C,"_blank","location=no");E.addEventListener("loadstart",function(O){O.url.indexOf(P())==0&&E.close()})}else throw"Not supported by the OIDC server"},redirectUri:function(C){return P()}}}if(u=="cordova-native")return s.enable=!1,{login:function(C){var E=Y(),O=e.createLoginUrl(C);return universalLinks.subscribe("keycloak",function(x){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var R=ne(x.url);k(R,E)}),window.cordova.plugins.browsertab.openUrl(O),E.promise},logout:function(C){var E=Y(),O=e.createLogoutUrl(C);return universalLinks.subscribe("keycloak",function(x){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),e.clearToken(),E.setSuccess()}),window.cordova.plugins.browsertab.openUrl(O),E.promise},register:function(C){var E=Y(),O=e.createRegisterUrl(C);return universalLinks.subscribe("keycloak",function(x){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var R=ne(x.url);k(R,E)}),window.cordova.plugins.browsertab.openUrl(O),E.promise},accountManagement:function(){var C=e.createAccountUrl();if(typeof C<"u")window.cordova.plugins.browsertab.openUrl(C);else throw"Not supported by the OIDC server"},redirectUri:function(C){return C&&C.redirectUri?C.redirectUri:e.redirectUri?e.redirectUri:"http://localhost"}};throw"invalid adapter type: "+u}var Fe=function(){if(!(this instanceof Fe))return new Fe;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");var u=this;function h(){for(var w=new Date().getTime(),I=0;I<localStorage.length;I++){var b=localStorage.key(I);if(b&&b.indexOf("kc-callback-")==0){var P=localStorage.getItem(b);if(P)try{var C=JSON.parse(P).expires;(!C||C<w)&&localStorage.removeItem(b)}catch{localStorage.removeItem(b)}}}}u.get=function(w){if(w){var I="kc-callback-"+w,b=localStorage.getItem(I);return b&&(localStorage.removeItem(I),b=JSON.parse(b)),h(),b}},u.add=function(w){h();var I="kc-callback-"+w.state;w.expires=new Date().getTime()+60*60*1e3,localStorage.setItem(I,JSON.stringify(w))}},ze=function(){if(!(this instanceof ze))return new ze;var u=this;u.get=function(b){if(b){var P=w("kc-callback-"+b);if(I("kc-callback-"+b,"",h(-100)),P)return JSON.parse(P)}},u.add=function(b){I("kc-callback-"+b.state,JSON.stringify(b),h(60))},u.removeItem=function(b){I(b,"",h(-100))};var h=function(b){var P=new Date;return P.setTime(P.getTime()+b*60*1e3),P},w=function(b){for(var P=b+"=",C=document.cookie.split(";"),E=0;E<C.length;E++){for(var O=C[E];O.charAt(0)==" ";)O=O.substring(1);if(O.indexOf(P)==0)return O.substring(P.length,O.length)}return""},I=function(b,P,C){var E=b+"="+P+"; expires="+C.toUTCString()+"; ";document.cookie=E}};function ht(){try{return new Fe}catch{}return new ze}function $e(u){return function(){e.enableLogging&&u.apply(console,Array.prototype.slice.call(arguments))}}}function tc(t){const e=String.fromCodePoint(...t);return btoa(e)}class nc{constructor(e){ee(this,"oidc");ee(this,"isAuthenticated",!1);ee(this,"authenticatedWith",null);this.oidc=new Mr(e)}async InitAsync(e={}){return await this.oidc.init(e).then(async n=>(this.isAuthenticated=n,this.authenticatedWith=this.AuthenticatedWith(),n)).catch(n=>(console.info("Ocorreu um erro na inicialização. Verifique o console para mais detalhes."),console.error(n),!1))}LoginGovBr(){this.oidc.login({idpHint:"GOV.BR"})}LoginSenhaweb(){var n;const e=(n=this.oidc.authServerUrl)!=null&&n.startsWith("https://keycloak.dev.apps.sf.prefeitura.sp.gov.br")?"senhawebdev":"senhaweb";this.oidc.login({idpHint:e})}AuthenticatedWith(){var n,o;const e=this.oidc.tokenParsed;return e?(n=e.identity_provider)!=null&&n.startsWith("GOV.BR")?"govbr":(o=e.identity_provider)!=null&&o.startsWith("senhaweb")?"senhaweb":"ad":null}}let Dr;function oc(t){Dr=new nc(t)}const Sn=()=>Dr,Rr=Symbol();function rc(){return r.inject(Rr)}const Gt=()=>rc(),ic={class:"body"},sc={class:"my-3 name"},ac={class:"login-buttons py-3 mx-auto"},lc={class:"my-3 footer"},cc=We(r.defineComponent({__name:"Login",props:{enableAdlogin:{type:Boolean}},setup(t){const e=t,n=r.ref(null),{width:o}=Vl(n),i=r.computed(()=>o.value>300?"md":"sm"),s=Sn(),{ClearStoredTheme:l,EnableLightMode:a}=Gt(),c=r.computed(()=>e.enableAdlogin===!0),d=r.ref(!1),f=r.ref(null);async function p(g){d.value||(d.value=!0,f.value=g,await new Promise(v=>setTimeout(v,400)),l(),g==="govbr"?s.LoginGovBr():c&&g==="sf"&&s.oidc.login())}return r.onBeforeMount(()=>{a()}),(g,v)=>(r.openBlock(),r.createElementBlock("div",ic,[v[6]||(v[6]=r.createElementVNode("div",{class:"bg"},null,-1)),r.createElementVNode("div",{class:"card",ref_key:"cardRef",ref:n},[v[5]||(v[5]=r.createElementVNode("div",{class:"my-3 logo"},null,-1)),r.createElementVNode("div",sc,[r.renderSlot(g.$slots,"name",{},()=>[v[2]||(v[2]=r.createTextVNode("Nome do sistema"))],!0)]),r.createElementVNode("div",ac,[r.renderSlot(g.$slots,"buttons",r.normalizeProps(r.guardReactiveProps({Login:p})),()=>[r.createVNode(r.unref(Fn),{size:i.value,icon:"person","icon-filled":!0,class:r.normalizeClass("w-full text-nowrap justify-content-center"),loading:d.value&&f.value==="govbr",onClick:v[0]||(v[0]=_=>p("govbr"))},{default:r.withCtx(()=>v[3]||(v[3]=[r.createTextVNode(" Entrar com "),r.createElementVNode("b",null,"Gov.br",-1)])),_:1},8,["size","loading"]),c.value?(r.openBlock(),r.createBlock(r.unref(Fn),{key:0,size:i.value,icon:"person","icon-filled":!0,class:r.normalizeClass("w-full text-nowrap justify-content-center"),loading:d.value&&f.value==="sf",onClick:v[1]||(v[1]=_=>p("sf"))},{default:r.withCtx(()=>v[4]||(v[4]=[r.createTextVNode(" Entrar com "),r.createElementVNode("b",null,"SF",-1)])),_:1},8,["size","loading"])):r.createCommentVNode("",!0),r.renderSlot(g.$slots,"extra-button",{},void 0,!0)],!0)]),r.createElementVNode("div",lc,[r.renderSlot(g.$slots,"footer",{},void 0,!0)])],512)]))}}),[["__scopeId","data-v-c097519d"]]);class uc{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 qt=new uc,Ur="SweetAlert2:",dc=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),Ie=t=>Array.prototype.slice.call(t),_e=t=>{console.warn(`${Ur} ${typeof t=="object"?t.join(" "):t}`)},ut=t=>{console.error(`${Ur} ${t}`)},Vr=[],fc=t=>{Vr.includes(t)||(Vr.push(t),_e(t))},mc=(t,e)=>{fc(`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`)},_n=t=>typeof t=="function"?t():t,lo=t=>t&&typeof t.toPromise=="function",Yt=t=>lo(t)?t.toPromise():Promise.resolve(t),co=t=>t&&Promise.resolve(t)===t,vt={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},pc=["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"],hc={},gc=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Hr=t=>Object.prototype.hasOwnProperty.call(vt,t),jr=t=>pc.indexOf(t)!==-1,uo=t=>hc[t],yc=t=>{Hr(t)||_e(`Unknown parameter "${t}"`)},bc=t=>{gc.includes(t)&&_e(`The parameter "${t}" is incompatible with toasts`)},vc=t=>{uo(t)&&mc(t,uo(t))},wc=t=>{!t.backdrop&&t.allowOutsideClick&&_e('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)yc(e),t.toast&&bc(e),vc(e)},kc="swal2-",Fr=t=>{const e={};for(const n in t)e[t[n]]=kc+t[n];return e},y=Fr(["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"]),Xt=Fr(["success","warning","info","question","error"]),ae=()=>document.body.querySelector(`.${y.container}`),Zt=t=>{const e=ae();return e?e.querySelector(t):null},Le=t=>Zt(`.${t}`),J=()=>Le(y.popup),Jt=()=>Le(y.icon),zr=()=>Le(y.title),Cn=()=>Le(y["html-container"]),Kr=()=>Le(y.image),Wr=()=>Le(y["progress-steps"]),En=()=>Le(y["validation-message"]),De=()=>Zt(`.${y.actions} .${y.confirm}`),st=()=>Zt(`.${y.actions} .${y.deny}`),Sc=()=>Le(y["input-label"]),wt=()=>Zt(`.${y.loader}`),dt=()=>Zt(`.${y.actions} .${y.cancel}`),Qt=()=>Le(y.actions),Gr=()=>Le(y.footer),Tn=()=>Le(y["timer-progress-bar"]),fo=()=>Le(y.close),_c=`
351
+ @keyframes ripple {
352
+ 100% {
353
+ opacity: 0;
354
+ transform: scale(2.5);
355
+ }
356
+ }
357
+ `,Da={root:"p-ink"},Ma=q.extend({name:"ripple-directive",style:Na,classes:Da}),Ra=$.extend({style:Ma});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 Va(t){return za(t)||Fa(t)||Ha(t)||ja()}function ja(){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 Ha(t,e){if(t){if(typeof t=="string")return to(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)?to(t,e):void 0}}function Fa(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function za(t){if(Array.isArray(t))return to(t)}function to(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 Cr(t,e,n){return(e=Ua(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ua(t){var e=Ka(t,"string");return Vt(e)=="symbol"?e:e+""}function Ka(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 Wa=Ra.extend("ripple",{watch:{"config.ripple":function(e){e?(this.createRipple(this.$host),this.bindEvents(this.$host),this.$host.setAttribute("data-pd-ripple",!0),this.$host.style.overflow="hidden",this.$host.style.position="relative"):(this.remove(this.$host),this.$host.removeAttribute("data-pd-ripple"))}},unmounted:function(e){this.remove(e)},timeout:void 0,methods:{bindEvents:function(e){e.addEventListener("mousedown",this.onMouseDown.bind(this))},unbindEvents:function(e){e.removeEventListener("mousedown",this.onMouseDown.bind(this))},createRipple:function(e){var n=this.getInk(e);n||(n=Is("span",Cr(Cr({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()&&Un(i,"p-ink-active"),i.setAttribute("data-p-ink-active","false"),!Uo(i)&&!Ko(i)){var s=Math.max(Es(o),Os(o));i.style.height=s+"px",i.style.width=s+"px"}var c=As(o),l=e.pageX-c.left+document.body.scrollTop-Ko(i)/2,a=e.pageY-c.top+document.body.scrollLeft-Uo(i)/2;i.style.top=a+"px",i.style.left=l+"px",!this.isUnstyled()&&ks(i,"p-ink-active"),i.setAttribute("data-p-ink-active","true"),this.timeout=setTimeout(function(){i&&(!n.isUnstyled()&&Un(i,"p-ink-active"),i.setAttribute("data-p-ink-active","false"))},401)}},onAnimationEnd:function(e){this.timeout&&clearTimeout(this.timeout),!this.isUnstyled()&&Un(e.currentTarget,"p-ink-active"),e.currentTarget.setAttribute("data-p-ink-active","false")},getInk:function(e){return e&&e.children?Va(e.children).find(function(n){return Ot(n,"data-pc-name")==="ripple"}):void 0}}}),Ga={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:Ia,provide:function(){return{$pcPanelMenu:this,$parentInstance:this}}},kr={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?Z(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 O(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:Qn,ChevronDownIcon:Jn},directives:{ripple:Wa}},qa=["tabindex"],Ya=["id","aria-label","aria-expanded","aria-level","aria-setsize","aria-posinset","data-p-focused","data-p-disabled"],Xa=["onClick","onMousemove"],Za=["href","target"];function Ja(t,e,n,o,i,s){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(a,u){return r.openBlock(),r.createElementBlock(r.Fragment,{key:s.getItemKey(a)},[s.isItemVisible(a)&&!s.getItemProp(a,"separator")?(r.openBlock(),r.createElementBlock("li",r.mergeProps({key:0,id:s.getItemId(a),class:[t.cx("item",{processedItem:a}),s.getItemProp(a,"class")],style:s.getItemProp(a,"style"),role:"treeitem","aria-label":s.getItemLabel(a),"aria-expanded":s.isItemGroup(a)?s.isItemActive(a):void 0,"aria-level":n.level+1,"aria-setsize":s.getAriaSetSize(),"aria-posinset":s.getAriaPosInset(u)},{ref_for:!0},s.getPTOptions("item",a,u),{"data-p-focused":s.isItemFocused(a),"data-p-disabled":s.isItemDisabled(a)}),[r.createElementVNode("div",r.mergeProps({class:t.cx("itemContent"),onClick:function(m){return s.onItemClick(m,a)},onMousemove:function(m){return s.onItemMouseMove(m,a)}},{ref_for:!0},s.getPTOptions("itemContent",a,u)),[n.templates.item?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.templates.item),{key:1,item:a.item,root:!1,active:s.isItemActive(a),hasSubmenu:s.isItemGroup(a),label:s.getItemLabel(a),props:s.getMenuItemProps(a,u)},null,8,["item","active","hasSubmenu","label","props"])):r.withDirectives((r.openBlock(),r.createElementBlock("a",r.mergeProps({key:0,href:s.getItemProp(a,"url"),class:t.cx("itemLink"),target:s.getItemProp(a,"target"),tabindex:"-1"},{ref_for:!0},s.getPTOptions("itemLink",a,u)),[s.isItemGroup(a)?(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:s.isItemActive(a)},{ref_for:!0},s.getPTOptions("submenuIcon",a,u)),null,16,["class","active"])):(r.openBlock(),r.createBlock(r.resolveDynamicComponent(s.isItemActive(a)?"ChevronDownIcon":"ChevronRightIcon"),r.mergeProps({key:1,class:t.cx("submenuIcon")},{ref_for:!0},s.getPTOptions("submenuIcon",a,u)),null,16,["class"]))],64)):r.createCommentVNode("",!0),n.templates.itemicon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.templates.itemicon),{key:1,item:a.item,class:r.normalizeClass(t.cx("itemIcon"))},null,8,["item","class"])):s.getItemProp(a,"icon")?(r.openBlock(),r.createElementBlock("span",r.mergeProps({key:2,class:[t.cx("itemIcon"),s.getItemProp(a,"icon")]},{ref_for:!0},s.getPTOptions("itemIcon",a,u)),null,16)):r.createCommentVNode("",!0),r.createElementVNode("span",r.mergeProps({class:t.cx("itemLabel")},{ref_for:!0},s.getPTOptions("itemLabel",a,u)),r.toDisplayString(s.getItemLabel(a)),17)],16,Za)),[[l]])],16,Xa),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")),[s.isItemVisible(a)&&s.isItemGroup(a)?(r.openBlock(),r.createBlock(c,r.mergeProps({key:0,id:s.getItemId(a)+"_list",role:"group",panelId:n.panelId,focusedItemId:n.focusedItemId,items:a.items,level:n.level+1,templates:n.templates,activeItemPath:n.activeItemPath,onItemToggle:s.onItemToggle,onItemMousemove:e[0]||(e[0]=function(f){return t.$emit("item-mousemove",f)}),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,s.isItemActive(a)]])]}),_:2},1040)],16,Ya)):r.createCommentVNode("",!0),s.isItemVisible(a)&&s.getItemProp(a,"separator")?(r.openBlock(),r.createElementBlock("li",r.mergeProps({key:1,style:s.getItemProp(a,"style"),class:[t.cx("separator"),s.getItemProp(a,"class")],role:"separator"},{ref_for:!0},t.ptm("separator")),null,16)):r.createCommentVNode("",!0)],64)}),128))],10,qa)}kr.render=Ja;function Qa(t,e){return ol(t)||nl(t,e)||tl(t,e)||el()}function el(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
359
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tl(t,e){if(t){if(typeof t=="string")return Er(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)?Er(t,e):void 0}}function Er(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function nl(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,i,s,c,l=[],a=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(a=(o=s.call(n)).done)&&(l.push(o.value),l.length!==e);a=!0);}catch(f){u=!0,i=f}finally{try{if(!a&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(u)throw i}}return l}}function ol(t){if(Array.isArray(t))return t}var Pr={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?Z(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 O(e.items)},onFocus:function(e){this.focused=!0,this.focusedItem=this.focusedItem||(this.isElementInPanel(e,e.relatedTarget)?this.findFirstItem():this.findLastItem())},onBlur:function(){this.focused=!1,this.focusedItem=null,this.searchValue=""},onKeyDown:function(e){var n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":case"Tab":case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!n&&Ns(e.key)&&this.searchItems(e,e.key);break}},onArrowDownKey:function(e){var n=O(this.focusedItem)?this.findNextItem(this.focusedItem):this.findFirstItem();this.changeFocusedItem({originalEvent:e,processedItem:n,focusOnNext:!0}),e.preventDefault()},onArrowUpKey:function(e){var n=O(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(O(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=O(this.focusedItem.parent)?this.focusedItem.parent:this.focusedItem,e.preventDefault()}},onArrowRightKey:function(e){var n=this;if(O(this.focusedItem)){var o=this.isItemGroup(this.focusedItem);if(o){var i=this.activeItemPath.some(function(s){return s.key===n.focusedItem.key});i?this.onArrowDownKey(e):(this.activeItemPath=this.activeItemPath.filter(function(s){return s.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(O(this.focusedItem)){var n=Se(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]')),o=n&&(Se(n,'[data-pc-section="itemlink"]')||Se(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,At(this.$el)},onItemMouseMove:function(e){this.focused&&(this.focusedItem=e.processedItem)},isElementInPanel:function(e,n){var o=e.currentTarget.closest('[data-pc-section="panel"]');return o&&o.contains(n)},isItemMatched:function(e){var n;return this.isValidItem(e)&&((n=this.getItemLabel(e))===null||n===void 0?void 0:n.toLocaleLowerCase(this.searchLocale).startsWith(this.searchValue.toLocaleLowerCase(this.searchLocale)))},isVisibleItem:function(e){return!!e&&(e.level===0||this.isItemActive(e))&&this.isItemVisible(e)},isValidItem:function(e){return!!e&&!this.isItemDisabled(e)&&!this.getItemProp(e,"separator")},findFirstItem:function(){var e=this;return this.visibleItems.find(function(n){return e.isValidItem(n)})},findLastItem:function(){var e=this;return Wo(this.visibleItems,function(n){return e.isValidItem(n)})},findNextItem:function(e){var n=this,o=this.visibleItems.findIndex(function(s){return s.key===e.key}),i=o<this.visibleItems.length-1?this.visibleItems.slice(o+1).find(function(s){return n.isValidItem(s)}):void 0;return i||e},findPrevItem:function(e){var n=this,o=this.visibleItems.findIndex(function(s){return s.key===e.key}),i=o>0?Wo(this.visibleItems.slice(0,o),function(s){return n.isValidItem(s)}):void 0;return i||e},searchItems:function(e,n){var o=this;this.searchValue=(this.searchValue||"")+n;var i=null,s=!1;if(O(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=Qe(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 O(i)&&(s=!0),Qe(i)&&Qe(this.focusedItem)&&(i=this.findFirstItem()),O(i)&&this.changeFocusedItem({originalEvent:e,processedItem:i,allowHeaderFocus:!1}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){o.searchValue="",o.searchTimeout=null},500),s},changeFocusedItem:function(e){var n=e.originalEvent,o=e.processedItem,i=e.focusOnNext,s=e.selfCheck,c=e.allowHeaderFocus,l=c===void 0?!0:c;O(this.focusedItem)&&this.focusedItem.key!==o.key?(this.focusedItem=o,this.scrollInView()):l&&this.$emit("header-focus",{originalEvent:n,focusOnNext:i,selfCheck:s})},scrollInView:function(){var e=Se(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 s=Qa(i,2),c=s[0],l=s[1];if(l){var a=n.findProcessedItemByItemKey(c);a&&o.push(a)}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 s=n[i];if(this.getItemProp(s,"key")===e)return s;var c=this.findProcessedItemByItemKey(e,s.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]:{},s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",c=[];return e&&e.forEach(function(l,a){var u=(s!==""?s+"_":"")+a,f={item:l,index:a,level:o,key:u,parent:i,parentKey:s};f.items=n.createProcessedItems(l.items,o+1,f,u),c.push(f)}),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 O(this.focusedItem)?"".concat(this.panelId,"_").concat(this.focusedItem.key):null}},components:{PanelMenuSub:kr}};function rl(t,e,n,o,i,s){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?s.focusedItemId:void 0,panelId:n.panelId,focusedItemId:i.focused?s.focusedItemId:void 0,items:s.processedItems,templates:n.templates,activeItemPath:i.activeItemPath,onFocus:s.onFocus,onBlur:s.onBlur,onKeydown:s.onKeyDown,onItemToggle:s.onItemToggle,onItemMousemove:s.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"])}Pr.render=rl;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 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 il(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){sl(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 sl(t,e,n){return(e=al(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function al(t){var e=ll(t,"string");return jt(e)=="symbol"?e:e+""}function ll(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 Ir={name:"PanelMenu",extends:Ga,inheritAttrs:!1,emits:["update:expandedKeys","panel-open","panel-close"],data:function(){return{activeItem:null,activeItems:[]}},methods:{getItemProp:function(e,n){return e?Z(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 O(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),At(e.currentTarget)},onHeaderKeyDown:function(e,n){switch(e.code){case"ArrowDown":this.onHeaderArrowDownKey(e);break;case"ArrowUp":this.onHeaderArrowUpKey(e);break;case"Home":this.onHeaderHomeKey(e);break;case"End":this.onHeaderEndKey(e);break;case"Enter":case"NumpadEnter":case"Space":this.onHeaderEnterKey(e,n);break}},onHeaderArrowDownKey:function(e){var n=Ot(e.currentTarget,"data-p-active")===!0?Se(e.currentTarget.nextElementSibling,'[data-pc-section="rootlist"]'):null;n?At(n):this.updateFocusedHeader({originalEvent:e,focusOnNext:!0}),e.preventDefault()},onHeaderArrowUpKey:function(e){var n=this.findPrevHeader(e.currentTarget.parentElement)||this.findLastHeader(),o=Ot(n,"data-p-active")===!0?Se(n.nextElementSibling,'[data-pc-section="rootlist"]'):null;o?At(o):this.updateFocusedHeader({originalEvent:e,focusOnNext:!1}),e.preventDefault()},onHeaderHomeKey:function(e){this.changeFocusedHeader(e,this.findFirstHeader()),e.preventDefault()},onHeaderEndKey:function(e){this.changeFocusedHeader(e,this.findLastHeader()),e.preventDefault()},onHeaderEnterKey:function(e,n){var o=Se(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=Se(o,'[data-pc-section="header"]');return i?Ot(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=Se(o,'[data-pc-section="header"]');return i?Ot(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,s=n.currentTarget.closest('[data-pc-section="panel"]'),c=i?Se(s,'[data-pc-section="header"]'):o?this.findNextHeader(s):this.findPrevHeader(s);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),s=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(s,{originalEvent:e,item:n})}},changeExpandedKeys:function(e){var n=e.item,o=e.expanded,i=o===void 0?!1:o;if(this.expandedKeys){var s=il({},this.expandedKeys);i?s[n.key]=!0:delete s[n.key],this.$emit("update:expandedKeys",s)}},changeFocusedHeader:function(e,n){n&&At(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:Pr,ChevronRightIcon:Qn,ChevronDownIcon:Jn}},cl=["id"],ul=["id","tabindex","aria-label","aria-expanded","aria-controls","aria-disabled","onClick","onKeydown","data-p-active","data-p-disabled"],dl=["href"],fl=["id","aria-labelledby"];function ml(t,e,n,o,i,s){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,a){return r.openBlock(),r.createElementBlock(r.Fragment,{key:s.getPanelKey(a)},[s.isItemVisible(l)?(r.openBlock(),r.createElementBlock("div",r.mergeProps({key:0,style:s.getItemProp(l,"style"),class:[t.cx("panel"),s.getItemProp(l,"class")]},{ref_for:!0},t.ptm("panel")),[r.createElementVNode("div",r.mergeProps({id:s.getHeaderId(a),class:[t.cx("header",{item:l}),s.getItemProp(l,"headerClass")],tabindex:s.isItemDisabled(l)?-1:t.tabindex,role:"button","aria-label":s.getItemLabel(l),"aria-expanded":s.isItemActive(l),"aria-controls":s.getContentId(a),"aria-disabled":s.isItemDisabled(l),onClick:function(f){return s.onHeaderClick(f,l)},onKeydown:function(f){return s.onHeaderKeyDown(f,l)}},{ref_for:!0},s.getPTOptions("header",l,a),{"data-p-active":s.isItemActive(l),"data-p-disabled":s.isItemDisabled(l)}),[r.createElementVNode("div",r.mergeProps({class:t.cx("headerContent")},{ref_for:!0},s.getPTOptions("headerContent",l,a)),[t.$slots.item?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.$slots.item),{key:1,item:l,root:!0,active:s.isItemActive(l),hasSubmenu:s.isItemGroup(l),label:s.getItemLabel(l),props:s.getMenuItemProps(l,a)},null,8,["item","active","hasSubmenu","label","props"])):(r.openBlock(),r.createElementBlock("a",r.mergeProps({key:0,href:s.getItemProp(l,"url"),class:t.cx("headerLink"),tabindex:-1},{ref_for:!0},s.getPTOptions("headerLink",l,a)),[s.getItemProp(l,"items")?r.renderSlot(t.$slots,"submenuicon",{key:0,active:s.isItemActive(l)},function(){return[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(s.isItemActive(l)?"ChevronDownIcon":"ChevronRightIcon"),r.mergeProps({class:t.cx("submenuIcon")},{ref_for:!0},s.getPTOptions("submenuIcon",l,a)),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"),s.getItemProp(l,"icon")])},null,8,["item","class"])):s.getItemProp(l,"icon")?(r.openBlock(),r.createElementBlock("span",r.mergeProps({key:2,class:[t.cx("headerIcon"),s.getItemProp(l,"icon")]},{ref_for:!0},s.getPTOptions("headerIcon",l,a)),null,16)):r.createCommentVNode("",!0),r.createElementVNode("span",r.mergeProps({class:t.cx("headerLabel")},{ref_for:!0},s.getPTOptions("headerLabel",l,a)),r.toDisplayString(s.getItemLabel(l)),17)],16,dl))],16)],16,ul),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:s.getContentId(a),class:t.cx("contentContainer"),role:"region","aria-labelledby":s.getHeaderId(a)},{ref_for:!0},t.ptm("contentContainer")),[s.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:s.getPanelId(a),items:s.getItemProp(l,"items"),templates:t.$slots,expandedKeys:t.expandedKeys,onItemToggle:s.changeExpandedKeys,onHeaderFocus:s.updateFocusedHeader,pt:t.pt,unstyled:t.unstyled},null,8,["panelId","items","templates","expandedKeys","onItemToggle","onHeaderFocus","pt","unstyled"])],16)):r.createCommentVNode("",!0)],16,fl),[[r.vShow,s.isItemActive(l)]])]}),_:2},1040)],16)):r.createCommentVNode("",!0)],64)}),128))],16,cl)}Ir.render=ml;const pl={class:"panel-menu-wrapper select-none"},hl=["data-active","onClick"],gl={key:0,class:"material-symbols-outlined item-menu-icon-left"},yl=["textContent"],bl=["onClick"],vl={key:0,class:"material-symbols-outlined item-menu-icon-left"},_l=["textContent"],wl={key:2,class:r.normalizeClass(["item-menu"])},Sl={key:0,class:"material-symbols-outlined item-menu-icon-left"},Cl=["textContent"],kl=xe(r.defineComponent({__name:"NavMenu",props:{items:{}},setup(t){const e=t,n=(l,a)=>{l.disabled||l.command&&typeof l.command=="function"||a()},o=(l,a)=>{a.disabled||typeof a.command=="function"&&a.command(l)},i=l=>typeof l.label=="function"?l.label():l.label??"Item",s=(l,a,u)=>l.to?(l.exact=l.exact??!1,l.exact?u:a):!1,c=r.computed(()=>e.items.filter(l=>l.visible===!1?!1:typeof l.visible=="function"?l.visible()===!0:!0));return(l,a)=>{const u=r.resolveComponent("router-link");return r.openBlock(),r.createElementBlock("div",pl,[r.createVNode(r.unref(Ir),{model:c.value,unstyled:!0},{item:r.withCtx(({item:f,active:m})=>[f.to?(r.openBlock(),r.createBlock(u,{key:0,to:f.to,custom:""},{default:r.withCtx(({navigate:p,isExactActive:g,isActive:_})=>[r.createElementVNode("a",{class:r.normalizeClass(["item-menu",{disabled:f.disabled}]),"data-active":s(f,_,g),onClick:r.withModifiers(w=>n(f,p),["prevent"])},[f.icon?(r.openBlock(),r.createElementBlock("span",gl,r.toDisplayString(f.icon),1)):r.createCommentVNode("",!0),r.createElementVNode("span",{textContent:r.toDisplayString(i(f))},null,8,yl)],10,hl)]),_:2},1032,["to"])):typeof f.command=="function"?(r.openBlock(),r.createElementBlock("span",{key:1,class:r.normalizeClass(["item-menu",{disabled:f.disabled}]),onClick:r.withModifiers(p=>o(p,f),["stop"])},[f.icon?(r.openBlock(),r.createElementBlock("span",vl,r.toDisplayString(f.icon),1)):r.createCommentVNode("",!0),r.createElementVNode("span",{textContent:r.toDisplayString(i(f))},null,8,_l)],10,bl)):(r.openBlock(),r.createElementBlock("a",wl,[f.icon?(r.openBlock(),r.createElementBlock("span",Sl,r.toDisplayString(f.icon),1)):r.createCommentVNode("",!0),r.createElementVNode("span",{textContent:r.toDisplayString(i(f))},null,8,Cl),a[0]||(a[0]=r.createElementVNode("div",{class:"sep"},null,-1)),r.createElementVNode("span",{class:r.normalizeClass(["material-symbols-outlined arrow",{"--expand":m}])}," chevron_right ",2)]))]),_:1},8,["model"])])}}}),[["__scopeId","data-v-17765f50"]]),El=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,s)=>(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(Fo,{visible:n.value,"onUpdate:visible":s[0]||(s[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))}}),Pl=xe(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 Tl(t){return r.getCurrentScope()?(r.onScopeDispose(t),!0):!1}const Il=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function Al(t){return Array.isArray(t)?t:[t]}function Ol(t){return r.getCurrentInstance()}function $l(t,e=!0,n){Ol()?r.onMounted(t,n):e?t():r.nextTick(t)}const Ar=Il?window:void 0;function dt(t){var e;const n=r.toValue(t);return(e=n?.$el)!=null?e:n}function Ll(){const t=r.shallowRef(!1),e=r.getCurrentInstance();return e&&r.onMounted(()=>{t.value=!0},e),t}function xl(t){const e=Ll();return r.computed(()=>(e.value,!!t()))}function Or(t,e,n={}){const{window:o=Ar,...i}=n;let s;const c=xl(()=>o&&"ResizeObserver"in o),l=()=>{s&&(s.disconnect(),s=void 0)},a=r.computed(()=>{const m=r.toValue(t);return Array.isArray(m)?m.map(p=>dt(p)):[dt(m)]}),u=r.watch(a,m=>{if(l(),c.value&&o){s=new ResizeObserver(e);for(const p of m)p&&s.observe(p,i)}},{immediate:!0,flush:"post"}),f=()=>{l(),u()};return Tl(f),{isSupported:c,stop:f}}function Bl(t,e={width:0,height:0},n={}){const{window:o=Ar,box:i="content-box"}=n,s=r.computed(()=>{var m,p;return(p=(m=dt(t))==null?void 0:m.namespaceURI)==null?void 0:p.includes("svg")}),c=r.shallowRef(e.width),l=r.shallowRef(e.height),{stop:a}=Or(t,([m])=>{const p=i==="border-box"?m.borderBoxSize:i==="content-box"?m.contentBoxSize:m.devicePixelContentBoxSize;if(o&&s.value){const g=dt(t);if(g){const _=g.getBoundingClientRect();c.value=_.width,l.value=_.height}}else if(p){const g=Al(p);c.value=g.reduce((_,{inlineSize:w})=>_+w,0),l.value=g.reduce((_,{blockSize:w})=>_+w,0)}else c.value=m.contentRect.width,l.value=m.contentRect.height},n);$l(()=>{const m=dt(t);m&&(c.value="offsetWidth"in m?m.offsetWidth:e.width,l.value="offsetHeight"in m?m.offsetHeight:e.height)});const u=r.watch(()=>dt(t),m=>{c.value=m?e.width:0,l.value=m?e.height:0});function f(){a(),u()}return{width:c,height:l,stop:f}}const $r=Symbol();function Nl(){return r.inject($r)}const Ht=()=>Nl(),Dl={class:"body"},Ml={class:"my-3 name"},Rl={class:"login-buttons py-3 mx-auto"},Vl={class:"my-3 footer"},jl=xe(r.defineComponent({__name:"Login",props:{enableAdlogin:{type:Boolean}},setup(t){const e=t,n=r.ref(null),{width:o}=Bl(n),i=r.computed(()=>o.value>300?"md":"sm"),s=Hn.UseAuth(),{ClearStoredTheme:c,EnableLightMode:l}=Ht(),a=r.computed(()=>e.enableAdlogin===!0),u=r.ref(!1),f=r.ref(null);async function m(p){u.value||(u.value=!0,f.value=p,await new Promise(g=>setTimeout(g,400)),c(),p==="govbr"?s.LoginGovBr():a&&p==="sf"&&s.oidc.login())}return r.onBeforeMount(()=>{l()}),(p,g)=>(r.openBlock(),r.createElementBlock("div",Dl,[g[6]||(g[6]=r.createElementVNode("div",{class:"bg"},null,-1)),r.createElementVNode("div",{class:"card",ref_key:"cardRef",ref:n},[g[5]||(g[5]=r.createElementVNode("div",{class:"my-3 logo"},null,-1)),r.createElementVNode("div",Ml,[r.renderSlot(p.$slots,"name",{},()=>[g[2]||(g[2]=r.createTextVNode("Nome do sistema"))],!0)]),r.createElementVNode("div",Rl,[r.renderSlot(p.$slots,"buttons",r.normalizeProps(r.guardReactiveProps({Login:m})),()=>[r.createVNode(r.unref(zn),{size:i.value,icon:"person","icon-filled":!0,class:r.normalizeClass("w-full text-nowrap justify-content-center"),loading:u.value&&f.value==="govbr",onClick:g[0]||(g[0]=_=>m("govbr"))},{default:r.withCtx(()=>g[3]||(g[3]=[r.createTextVNode(" Entrar com "),r.createElementVNode("b",null,"Gov.br",-1)])),_:1,__:[3]},8,["size","loading"]),a.value?(r.openBlock(),r.createBlock(r.unref(zn),{key:0,size:i.value,icon:"person","icon-filled":!0,class:r.normalizeClass("w-full text-nowrap justify-content-center"),loading:u.value&&f.value==="sf",onClick:g[1]||(g[1]=_=>m("sf"))},{default:r.withCtx(()=>g[4]||(g[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",Vl,[r.renderSlot(p.$slots,"footer",{},void 0,!0)])],512)]))}}),[["__scopeId","data-v-a9cae4be"]]);class Hl{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 Hl,Lr="SweetAlert2:",Fl=t=>{const e=[];for(let n=0;n<t.length;n++)e.indexOf(t[n])===-1&&e.push(t[n]);return e},no=t=>t.charAt(0).toUpperCase()+t.slice(1),pe=t=>Array.prototype.slice.call(t),ue=t=>{console.warn(`${Lr} ${typeof t=="object"?t.join(" "):t}`)},nt=t=>{console.error(`${Lr} ${t}`)},xr=[],zl=t=>{xr.includes(t)||(xr.push(t),ue(t))},Ul=(t,e)=>{zl(`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`)},vn=t=>typeof t=="function"?t():t,oo=t=>t&&typeof t.toPromise=="function",zt=t=>oo(t)?t.toPromise():Promise.resolve(t),ro=t=>t&&Promise.resolve(t)===t,ft={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},Kl=["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"],Wl={},Gl=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Br=t=>Object.prototype.hasOwnProperty.call(ft,t),Nr=t=>Kl.indexOf(t)!==-1,io=t=>Wl[t],ql=t=>{Br(t)||ue(`Unknown parameter "${t}"`)},Yl=t=>{Gl.includes(t)&&ue(`The parameter "${t}" is incompatible with toasts`)},Xl=t=>{io(t)&&Ul(t,io(t))},Zl=t=>{!t.backdrop&&t.allowOutsideClick&&ue('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)ql(e),t.toast&&Yl(e),Xl(e)},Jl="swal2-",Dr=t=>{const e={};for(const n in t)e[t[n]]=Jl+t[n];return e},h=Dr(["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=Dr(["success","warning","info","question","error"]),J=()=>document.body.querySelector(`.${h.container}`),Kt=t=>{const e=J();return e?e.querySelector(t):null},ge=t=>Kt(`.${t}`),R=()=>ge(h.popup),Wt=()=>ge(h.icon),Mr=()=>ge(h.title),_n=()=>ge(h["html-container"]),Rr=()=>ge(h.image),Vr=()=>ge(h["progress-steps"]),wn=()=>ge(h["validation-message"]),Ee=()=>Kt(`.${h.actions} .${h.confirm}`),Ke=()=>Kt(`.${h.actions} .${h.deny}`),Ql=()=>ge(h["input-label"]),mt=()=>Kt(`.${h.loader}`),ot=()=>Kt(`.${h.actions} .${h.cancel}`),Gt=()=>ge(h.actions),jr=()=>ge(h.footer),Sn=()=>ge(h["timer-progress-bar"]),so=()=>ge(h.close),ec=`
347
360
  a[href],
348
361
  area[href],
349
362
  input:not([disabled]),
@@ -358,55 +371,55 @@ For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_m
358
371
  audio[controls],
359
372
  video[controls],
360
373
  summary
361
- `,mo=()=>{const t=Ie(J().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((n,o)=>{const i=parseInt(n.getAttribute("tabindex")),s=parseInt(o.getAttribute("tabindex"));return i>s?1:i<s?-1:0}),e=Ie(J().querySelectorAll(_c)).filter(n=>n.getAttribute("tabindex")!=="-1");return dc(t.concat(e)).filter(n=>Ae(n))},po=()=>Ye(document.body,y.shown)&&!Ye(document.body,y["toast-shown"])&&!Ye(document.body,y["no-backdrop"]),In=()=>J()&&Ye(J(),y.toast),Cc=()=>J().hasAttribute("data-loading"),kt={previousBodyPadding:null},le=(t,e)=>{if(t.textContent="",e){const o=new DOMParser().parseFromString(e,"text/html");Ie(o.querySelector("head").childNodes).forEach(i=>{t.appendChild(i)}),Ie(o.querySelector("body").childNodes).forEach(i=>{t.appendChild(i)})}},Ye=(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},Ec=(t,e)=>{Ie(t.classList).forEach(n=>{!Object.values(y).includes(n)&&!Object.values(Xt).includes(n)&&!Object.values(e.showClass).includes(n)&&t.classList.remove(n)})},xe=(t,e,n)=>{if(Ec(t,e),e.customClass&&e.customClass[n]){if(typeof e.customClass[n]!="string"&&!e.customClass[n].forEach)return _e(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof e.customClass[n]}"`);W(t,e.customClass[n])}},ho=(t,e)=>{if(!e)return null;switch(e){case"select":case"textarea":case"file":return t.querySelector(`.${y.popup} > .${y[e]}`);case"checkbox":return t.querySelector(`.${y.popup} > .${y.checkbox} input`);case"radio":return t.querySelector(`.${y.popup} > .${y.radio} input:checked`)||t.querySelector(`.${y.popup} > .${y.radio} input:first-child`);case"range":return t.querySelector(`.${y.popup} > .${y.range} input`);default:return t.querySelector(`.${y.popup} > .${y.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)}))},W=(t,e)=>{Yr(t,e,!0)},He=(t,e)=>{Yr(t,e,!1)},at=(t,e)=>{const n=Ie(t.childNodes);for(let o=0;o<n.length;o++)if(Ye(n[o],e))return n[o]},en=(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)},se=(t,e="flex")=>{t.style.display=e},ce=t=>{t.style.display="none"},Xr=(t,e,n,o)=>{const i=t.querySelector(e);i&&(i.style[n]=o)},An=(t,e,n)=>{e?se(t,n):ce(t)},Ae=t=>!!(t&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),Tc=()=>!Ae(De())&&!Ae(st())&&!Ae(dt()),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},go=(t,e=!1)=>{const n=Tn();Ae(n)&&(e&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${t/1e3}s linear`,n.style.width="0%"},10))},Ic=()=>{const t=Tn(),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",Ac=100,V={},Pc=()=>{V.previousActiveElement&&V.previousActiveElement.focus?(V.previousActiveElement.focus(),V.previousActiveElement=null):document.body&&document.body.focus()},Lc=t=>new Promise(e=>{if(!t)return e();const n=window.scrollX,o=window.scrollY;V.restoreFocusTimeout=setTimeout(()=>{Pc(),e()},Ac),window.scrollTo(n,o)}),xc=`
362
- <div aria-labelledby="${y.title}" aria-describedby="${y["html-container"]}" class="${y.popup}" tabindex="-1">
363
- <button type="button" class="${y.close}"></button>
364
- <ul class="${y["progress-steps"]}"></ul>
365
- <div class="${y.icon}"></div>
366
- <img class="${y.image}" />
367
- <h2 class="${y.title}" id="${y.title}"></h2>
368
- <div class="${y["html-container"]}" id="${y["html-container"]}"></div>
369
- <input class="${y.input}" />
370
- <input type="file" class="${y.file}" />
371
- <div class="${y.range}">
374
+ `,ao=()=>{const t=pe(R().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((n,o)=>{const i=parseInt(n.getAttribute("tabindex")),s=parseInt(o.getAttribute("tabindex"));return i>s?1:i<s?-1:0}),e=pe(R().querySelectorAll(ec)).filter(n=>n.getAttribute("tabindex")!=="-1");return Fl(t.concat(e)).filter(n=>he(n))},lo=()=>Ne(document.body,h.shown)&&!Ne(document.body,h["toast-shown"])&&!Ne(document.body,h["no-backdrop"]),Cn=()=>R()&&Ne(R(),h.toast),tc=()=>R().hasAttribute("data-loading"),pt={previousBodyPadding:null},Q=(t,e)=>{if(t.textContent="",e){const o=new DOMParser().parseFromString(e,"text/html");pe(o.querySelector("head").childNodes).forEach(i=>{t.appendChild(i)}),pe(o.querySelector("body").childNodes).forEach(i=>{t.appendChild(i)})}},Ne=(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},nc=(t,e)=>{pe(t.classList).forEach(n=>{!Object.values(h).includes(n)&&!Object.values(Ut).includes(n)&&!Object.values(e.showClass).includes(n)&&t.classList.remove(n)})},ye=(t,e,n)=>{if(nc(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]}"`);D(t,e.customClass[n])}},co=(t,e)=>{if(!e)return null;switch(e){case"select":case"textarea":case"file":return t.querySelector(`.${h.popup} > .${h[e]}`);case"checkbox":return t.querySelector(`.${h.popup} > .${h.checkbox} input`);case"radio":return t.querySelector(`.${h.popup} > .${h.radio} input:checked`)||t.querySelector(`.${h.popup} > .${h.radio} input:first-child`);case"range":return t.querySelector(`.${h.popup} > .${h.range} input`);default:return t.querySelector(`.${h.popup} > .${h.input}`)}},Hr=t=>{if(t.focus(),t.type!=="file"){const e=t.value;t.value="",t.value=e}},Fr=(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)}))},D=(t,e)=>{Fr(t,e,!0)},Oe=(t,e)=>{Fr(t,e,!1)},We=(t,e)=>{const n=pe(t.childNodes);for(let o=0;o<n.length;o++)if(Ne(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"},zr=(t,e,n,o)=>{const i=t.querySelector(e);i&&(i.style[n]=o)},kn=(t,e,n)=>{e?Y(t,n):ee(t)},he=t=>!!(t&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),oc=()=>!he(Ee())&&!he(Ke())&&!he(ot()),Ur=t=>t.scrollHeight>t.clientHeight,Kr=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},uo=(t,e=!1)=>{const n=Sn();he(n)&&(e&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${t/1e3}s linear`,n.style.width="0%"},10))},rc=()=>{const t=Sn(),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}%`},Wr=()=>typeof window>"u"||typeof document>"u",ic=100,A={},sc=()=>{A.previousActiveElement&&A.previousActiveElement.focus?(A.previousActiveElement.focus(),A.previousActiveElement=null):document.body&&document.body.focus()},ac=t=>new Promise(e=>{if(!t)return e();const n=window.scrollX,o=window.scrollY;A.restoreFocusTimeout=setTimeout(()=>{sc(),e()},ic),window.scrollTo(n,o)}),lc=`
375
+ <div aria-labelledby="${h.title}" aria-describedby="${h["html-container"]}" class="${h.popup}" tabindex="-1">
376
+ <button type="button" class="${h.close}"></button>
377
+ <ul class="${h["progress-steps"]}"></ul>
378
+ <div class="${h.icon}"></div>
379
+ <img class="${h.image}" />
380
+ <h2 class="${h.title}" id="${h.title}"></h2>
381
+ <div class="${h["html-container"]}" id="${h["html-container"]}"></div>
382
+ <input class="${h.input}" />
383
+ <input type="file" class="${h.file}" />
384
+ <div class="${h.range}">
372
385
  <input type="range" />
373
386
  <output></output>
374
387
  </div>
375
- <select class="${y.select}"></select>
376
- <div class="${y.radio}"></div>
377
- <label for="${y.checkbox}" class="${y.checkbox}">
388
+ <select class="${h.select}"></select>
389
+ <div class="${h.radio}"></div>
390
+ <label for="${h.checkbox}" class="${h.checkbox}">
378
391
  <input type="checkbox" />
379
- <span class="${y.label}"></span>
392
+ <span class="${h.label}"></span>
380
393
  </label>
381
- <textarea class="${y.textarea}"></textarea>
382
- <div class="${y["validation-message"]}" id="${y["validation-message"]}"></div>
383
- <div class="${y.actions}">
384
- <div class="${y.loader}"></div>
385
- <button type="button" class="${y.confirm}"></button>
386
- <button type="button" class="${y.deny}"></button>
387
- <button type="button" class="${y.cancel}"></button>
394
+ <textarea class="${h.textarea}"></textarea>
395
+ <div class="${h["validation-message"]}" id="${h["validation-message"]}"></div>
396
+ <div class="${h.actions}">
397
+ <div class="${h.loader}"></div>
398
+ <button type="button" class="${h.confirm}"></button>
399
+ <button type="button" class="${h.deny}"></button>
400
+ <button type="button" class="${h.cancel}"></button>
388
401
  </div>
389
- <div class="${y.footer}"></div>
390
- <div class="${y["timer-progress-bar-container"]}">
391
- <div class="${y["timer-progress-bar"]}"></div>
402
+ <div class="${h.footer}"></div>
403
+ <div class="${h["timer-progress-bar-container"]}">
404
+ <div class="${h["timer-progress-bar"]}"></div>
392
405
  </div>
393
406
  </div>
394
- `.replace(/(^|\n)\s*/g,""),Oc=()=>{const t=ae();return t?(t.remove(),He([document.documentElement,document.body],[y["no-backdrop"],y["toast-shown"],y["has-column"]]),!0):!1},ft=()=>{V.currentInstance.resetValidationMessage()},$c=()=>{const t=J(),e=at(t,y.input),n=at(t,y.file),o=t.querySelector(`.${y.range} input`),i=t.querySelector(`.${y.range} output`),s=at(t,y.select),l=t.querySelector(`.${y.checkbox} input`),a=at(t,y.textarea);e.oninput=ft,n.onchange=ft,s.onchange=ft,l.onchange=ft,a.oninput=ft,o.oninput=()=>{ft(),i.value=o.value},o.onchange=()=>{ft(),o.nextSibling.value=o.value}},Bc=t=>typeof t=="string"?document.querySelector(t):t,Nc=t=>{const e=J();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},Mc=t=>{window.getComputedStyle(t).direction==="rtl"&&W(ae(),y.rtl)},Dc=t=>{const e=Oc();if(Qr()){ut("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=y.container,e&&W(n,y["no-transition"]),le(n,xc);const o=Bc(t.target);o.appendChild(n),Nc(t),Mc(o),$c()},yo=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):typeof t=="object"?Rc(t,e):t&&le(e,t)},Rc=(t,e)=>{t.jquery?Uc(e,t):le(e,t.toString())},Uc=(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))},tn=(()=>{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})(),Vc=()=>{const t=document.createElement("div");t.className=y["scrollbar-measure"],document.body.appendChild(t);const e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},Hc=(t,e)=>{const n=Qt(),o=wt();!e.showConfirmButton&&!e.showDenyButton&&!e.showCancelButton?ce(n):se(n),xe(n,e,"actions"),jc(n,o,e),le(o,e.loaderHtml),xe(o,e,"loader")};function jc(t,e,n){const o=De(),i=st(),s=dt();bo(o,"confirm",n),bo(i,"deny",n),bo(s,"cancel",n),Fc(o,i,s,n),n.reverseButtons&&(n.toast?(t.insertBefore(s,o),t.insertBefore(i,o)):(t.insertBefore(s,e),t.insertBefore(i,e),t.insertBefore(o,e)))}function Fc(t,e,n,o){if(!o.buttonsStyling)return He([t,e,n],y.styled);W([t,e,n],y.styled),o.confirmButtonColor&&(t.style.backgroundColor=o.confirmButtonColor,W(t,y["default-outline"])),o.denyButtonColor&&(e.style.backgroundColor=o.denyButtonColor,W(e,y["default-outline"])),o.cancelButtonColor&&(n.style.backgroundColor=o.cancelButtonColor,W(n,y["default-outline"]))}function bo(t,e,n){An(t,n[`show${ao(e)}Button`],"inline-block"),le(t,n[`${e}ButtonText`]),t.setAttribute("aria-label",n[`${e}ButtonAriaLabel`]),t.className=y[e],xe(t,n,`${e}Button`),W(t,n[`${e}ButtonClass`])}function zc(t,e){typeof e=="string"?t.style.background=e:e||W([document.documentElement,document.body],y["no-backdrop"])}function Kc(t,e){e in y?W(t,y[e]):(_e('The "position" parameter is not valid, defaulting to "center"'),W(t,y.center))}function Wc(t,e){if(e&&typeof e=="string"){const n=`grow-${e}`;n in y&&W(t,y[n])}}const Gc=(t,e)=>{const n=ae();n&&(zc(n,e.backdrop),Kc(n,e.position),Wc(n,e.grow),xe(n,e,"container"))},H={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},qc=["input","file","range","select","radio","checkbox","textarea"],Yc=(t,e)=>{const n=J(),o=H.innerParams.get(t),i=!o||e.input!==o.input;qc.forEach(s=>{const l=y[s],a=at(n,l);Jc(s,e.inputAttributes),a.className=l,i&&ce(a)}),e.input&&(i&&Xc(e),Qc(e))},Xc=t=>{if(!Ce[t.input])return ut(`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=Ce[t.input](e,t);se(n),setTimeout(()=>{qr(n)})},Zc=t=>{for(let e=0;e<t.attributes.length;e++){const n=t.attributes[e].name;["type","value","style"].includes(n)||t.removeAttribute(n)}},Jc=(t,e)=>{const n=ho(J(),t);if(n){Zc(n);for(const o in e)n.setAttribute(o,e[o])}},Qc=t=>{const e=ei(t.input);t.customClass&&W(e,t.customClass.input)},vo=(t,e)=>{(!t.placeholder||e.inputPlaceholder)&&(t.placeholder=e.inputPlaceholder)},nn=(t,e,n)=>{if(n.inputLabel){t.id=y.input;const o=document.createElement("label"),i=y["input-label"];o.setAttribute("for",t.id),o.className=i,W(o,n.customClass.inputLabel),o.innerText=n.inputLabel,e.insertAdjacentElement("beforebegin",o)}},ei=t=>{const e=y[t]?y[t]:y.input;return at(J(),e)},Ce={};Ce.text=Ce.email=Ce.password=Ce.number=Ce.tel=Ce.url=(t,e)=>(typeof e.inputValue=="string"||typeof e.inputValue=="number"?t.value=e.inputValue:co(e.inputValue)||_e(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e.inputValue}"`),nn(t,t,e),vo(t,e),t.type=e.input,t),Ce.file=(t,e)=>(nn(t,t,e),vo(t,e),t),Ce.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,nn(n,t,e),t},Ce.select=(t,e)=>{if(t.textContent="",e.inputPlaceholder){const n=document.createElement("option");le(n,e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)}return nn(t,t,e),t},Ce.radio=t=>(t.textContent="",t),Ce.checkbox=(t,e)=>{const n=ho(J(),"checkbox");n.value="1",n.id=y.checkbox,n.checked=!!e.inputValue;const o=t.querySelector("span");return le(o,e.inputPlaceholder),t},Ce.textarea=(t,e)=>{t.value=e.inputValue,vo(t,e),nn(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(J()).width),i=()=>{const s=t.offsetWidth+n(t);s>o?J().style.width=`${s}px`:J().style.width=null};new MutationObserver(i).observe(t,{attributes:!0,attributeFilter:["style"]})}}),t};const eu=(t,e)=>{const n=Cn();xe(n,e,"htmlContainer"),e.html?(yo(e.html,n),se(n,"block")):e.text?(n.textContent=e.text,se(n,"block")):ce(n),Yc(t,e)},tu=(t,e)=>{const n=Gr();An(n,e.footer),e.footer&&yo(e.footer,n),xe(n,e,"footer")},nu=(t,e)=>{const n=fo();le(n,e.closeButtonHtml),xe(n,e,"closeButton"),An(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel)},ou=(t,e)=>{const n=H.innerParams.get(t),o=Jt();if(n&&e.icon===n.icon){ni(o,e),ti(o,e);return}if(!e.icon&&!e.iconHtml)return ce(o);if(e.icon&&Object.keys(Xt).indexOf(e.icon)===-1)return ut(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`),ce(o);se(o),ni(o,e),ti(o,e),W(o,e.showClass.icon)},ti=(t,e)=>{for(const n in Xt)e.icon!==n&&He(t,Xt[n]);W(t,Xt[e.icon]),au(t,e),ru(),xe(t,e,"icon")},ru=()=>{const t=J(),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},iu=`
407
+ `.replace(/(^|\n)\s*/g,""),cc=()=>{const t=J();return t?(t.remove(),Oe([document.documentElement,document.body],[h["no-backdrop"],h["toast-shown"],h["has-column"]]),!0):!1},rt=()=>{A.currentInstance.resetValidationMessage()},uc=()=>{const t=R(),e=We(t,h.input),n=We(t,h.file),o=t.querySelector(`.${h.range} input`),i=t.querySelector(`.${h.range} output`),s=We(t,h.select),c=t.querySelector(`.${h.checkbox} input`),l=We(t,h.textarea);e.oninput=rt,n.onchange=rt,s.onchange=rt,c.onchange=rt,l.oninput=rt,o.oninput=()=>{rt(),i.value=o.value},o.onchange=()=>{rt(),o.nextSibling.value=o.value}},dc=t=>typeof t=="string"?document.querySelector(t):t,fc=t=>{const e=R();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},mc=t=>{window.getComputedStyle(t).direction==="rtl"&&D(J(),h.rtl)},pc=t=>{const e=cc();if(Wr()){nt("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=h.container,e&&D(n,h["no-transition"]),Q(n,lc);const o=dc(t.target);o.appendChild(n),fc(t),mc(o),uc()},fo=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):typeof t=="object"?hc(t,e):t&&Q(e,t)},hc=(t,e)=>{t.jquery?gc(e,t):Q(e,t.toString())},gc=(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(Wr())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})(),yc=()=>{const t=document.createElement("div");t.className=h["scrollbar-measure"],document.body.appendChild(t);const e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},bc=(t,e)=>{const n=Gt(),o=mt();!e.showConfirmButton&&!e.showDenyButton&&!e.showCancelButton?ee(n):Y(n),ye(n,e,"actions"),vc(n,o,e),Q(o,e.loaderHtml),ye(o,e,"loader")};function vc(t,e,n){const o=Ee(),i=Ke(),s=ot();mo(o,"confirm",n),mo(i,"deny",n),mo(s,"cancel",n),_c(o,i,s,n),n.reverseButtons&&(n.toast?(t.insertBefore(s,o),t.insertBefore(i,o)):(t.insertBefore(s,e),t.insertBefore(i,e),t.insertBefore(o,e)))}function _c(t,e,n,o){if(!o.buttonsStyling)return Oe([t,e,n],h.styled);D([t,e,n],h.styled),o.confirmButtonColor&&(t.style.backgroundColor=o.confirmButtonColor,D(t,h["default-outline"])),o.denyButtonColor&&(e.style.backgroundColor=o.denyButtonColor,D(e,h["default-outline"])),o.cancelButtonColor&&(n.style.backgroundColor=o.cancelButtonColor,D(n,h["default-outline"]))}function mo(t,e,n){kn(t,n[`show${no(e)}Button`],"inline-block"),Q(t,n[`${e}ButtonText`]),t.setAttribute("aria-label",n[`${e}ButtonAriaLabel`]),t.className=h[e],ye(t,n,`${e}Button`),D(t,n[`${e}ButtonClass`])}function wc(t,e){typeof e=="string"?t.style.background=e:e||D([document.documentElement,document.body],h["no-backdrop"])}function Sc(t,e){e in h?D(t,h[e]):(ue('The "position" parameter is not valid, defaulting to "center"'),D(t,h.center))}function Cc(t,e){if(e&&typeof e=="string"){const n=`grow-${e}`;n in h&&D(t,h[n])}}const kc=(t,e)=>{const n=J();n&&(wc(n,e.backdrop),Sc(n,e.position),Cc(n,e.grow),ye(n,e,"container"))},x={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},Ec=["input","file","range","select","radio","checkbox","textarea"],Pc=(t,e)=>{const n=R(),o=x.innerParams.get(t),i=!o||e.input!==o.input;Ec.forEach(s=>{const c=h[s],l=We(n,c);Ac(s,e.inputAttributes),l.className=c,i&&ee(l)}),e.input&&(i&&Tc(e),Oc(e))},Tc=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=Gr(t.input),n=de[t.input](e,t);Y(n),setTimeout(()=>{Hr(n)})},Ic=t=>{for(let e=0;e<t.attributes.length;e++){const n=t.attributes[e].name;["type","value","style"].includes(n)||t.removeAttribute(n)}},Ac=(t,e)=>{const n=co(R(),t);if(n){Ic(n);for(const o in e)n.setAttribute(o,e[o])}},Oc=t=>{const e=Gr(t.input);t.customClass&&D(e,t.customClass.input)},po=(t,e)=>{(!t.placeholder||e.inputPlaceholder)&&(t.placeholder=e.inputPlaceholder)},Xt=(t,e,n)=>{if(n.inputLabel){t.id=h.input;const o=document.createElement("label"),i=h["input-label"];o.setAttribute("for",t.id),o.className=i,D(o,n.customClass.inputLabel),o.innerText=n.inputLabel,e.insertAdjacentElement("beforebegin",o)}},Gr=t=>{const e=h[t]?h[t]:h.input;return We(R(),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:ro(e.inputValue)||ue(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e.inputValue}"`),Xt(t,t,e),po(t,e),t.type=e.input,t),de.file=(t,e)=>(Xt(t,t,e),po(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,Xt(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 Xt(t,t,e),t},de.radio=t=>(t.textContent="",t),de.checkbox=(t,e)=>{const n=co(R(),"checkbox");n.value="1",n.id=h.checkbox,n.checked=!!e.inputValue;const o=t.querySelector("span");return Q(o,e.inputPlaceholder),t},de.textarea=(t,e)=>{t.value=e.inputValue,po(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(R()).width),i=()=>{const s=t.offsetWidth+n(t);s>o?R().style.width=`${s}px`:R().style.width=null};new MutationObserver(i).observe(t,{attributes:!0,attributeFilter:["style"]})}}),t};const $c=(t,e)=>{const n=_n();ye(n,e,"htmlContainer"),e.html?(fo(e.html,n),Y(n,"block")):e.text?(n.textContent=e.text,Y(n,"block")):ee(n),Pc(t,e)},Lc=(t,e)=>{const n=jr();kn(n,e.footer),e.footer&&fo(e.footer,n),ye(n,e,"footer")},xc=(t,e)=>{const n=so();Q(n,e.closeButtonHtml),ye(n,e,"closeButton"),kn(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel)},Bc=(t,e)=>{const n=x.innerParams.get(t),o=Wt();if(n&&e.icon===n.icon){Yr(o,e),qr(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),Yr(o,e),qr(o,e),D(o,e.showClass.icon)},qr=(t,e)=>{for(const n in Ut)e.icon!==n&&Oe(t,Ut[n]);D(t,Ut[e.icon]),Rc(t,e),Nc(),ye(t,e,"icon")},Nc=()=>{const t=R(),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},Dc=`
395
408
  <div class="swal2-success-circular-line-left"></div>
396
409
  <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
397
410
  <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>
398
411
  <div class="swal2-success-circular-line-right"></div>
399
- `,su=`
412
+ `,Mc=`
400
413
  <span class="swal2-x-mark">
401
414
  <span class="swal2-x-mark-line-left"></span>
402
415
  <span class="swal2-x-mark-line-right"></span>
403
416
  </span>
404
- `,ni=(t,e)=>{t.textContent="",e.iconHtml?le(t,oi(e.iconHtml)):e.icon==="success"?le(t,iu):e.icon==="error"?le(t,su):le(t,oi({question:"?",warning:"!",info:"i"}[e.icon]))},au=(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="${y["icon-content"]}">${t}</div>`,lu=(t,e)=>{const n=Kr();if(!e.imageUrl)return ce(n);se(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt),en(n,"width",e.imageWidth),en(n,"height",e.imageHeight),n.className=y.image,xe(n,e,"image")},cu=t=>{const e=document.createElement("li");return W(e,y["progress-step"]),le(e,t),e},uu=t=>{const e=document.createElement("li");return W(e,y["progress-step-line"]),t.progressStepsDistance&&(e.style.width=t.progressStepsDistance),e},du=(t,e)=>{const n=Wr();if(!e.progressSteps||e.progressSteps.length===0)return ce(n);se(n),n.textContent="",e.currentProgressStep>=e.progressSteps.length&&_e("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach((o,i)=>{const s=cu(o);if(n.appendChild(s),i===e.currentProgressStep&&W(s,y["active-progress-step"]),i!==e.progressSteps.length-1){const l=uu(e);n.appendChild(l)}})},fu=(t,e)=>{const n=zr();An(n,e.title||e.titleText,"block"),e.title&&yo(e.title,n),e.titleText&&(n.innerText=e.titleText),xe(n,e,"title")},mu=(t,e)=>{const n=ae(),o=J();e.toast?(en(n,"width",e.width),o.style.width="100%",o.insertBefore(wt(),Jt())):en(o,"width",e.width),en(o,"padding",e.padding),e.color&&(o.style.color=e.color),e.background&&(o.style.background=e.background),ce(En()),pu(o,e)},pu=(t,e)=>{t.className=`${y.popup} ${Ae(t)?e.showClass.popup:""}`,e.toast?(W([document.documentElement,document.body],y["toast-shown"]),W(t,y.toast)):W(t,y.modal),xe(t,e,"popup"),typeof e.customClass=="string"&&W(t,e.customClass),e.icon&&W(t,y[`icon-${e.icon}`])},ri=(t,e)=>{mu(t,e),Gc(t,e),du(t,e),ou(t,e),lu(t,e),fu(t,e),nu(t,e),eu(t,e),Hc(t,e),tu(t,e),typeof e.didRender=="function"&&e.didRender(J())},St=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),hu=()=>{Ie(document.body.children).forEach(e=>{e===ae()||e.contains(ae())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))})},ii=()=>{Ie(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")})},si=["swal-title","swal-html","swal-footer"],gu=t=>{const e=typeof t.template=="string"?document.querySelector(t.template):t.template;if(!e)return{};const n=e.content;return _u(n),Object.assign(yu(n),bu(n),vu(n),wu(n),ku(n),Su(n,si))},yu=t=>{const e={};return Ie(t.querySelectorAll("swal-param")).forEach(n=>{mt(n,["name","value"]);const o=n.getAttribute("name"),i=n.getAttribute("value");typeof vt[o]=="boolean"&&i==="false"&&(e[o]=!1),typeof vt[o]=="object"&&(e[o]=JSON.parse(i))}),e},bu=t=>{const e={};return Ie(t.querySelectorAll("swal-button")).forEach(n=>{mt(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},vu=t=>{const e={},n=t.querySelector("swal-image");return n&&(mt(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},wu=t=>{const e={},n=t.querySelector("swal-icon");return n&&(mt(n,["type","color"]),n.hasAttribute("type")&&(e.icon=n.getAttribute("type")),n.hasAttribute("color")&&(e.iconColor=n.getAttribute("color")),e.iconHtml=n.innerHTML),e},ku=t=>{const e={},n=t.querySelector("swal-input");n&&(mt(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={},Ie(o).forEach(i=>{mt(i,["value"]);const s=i.getAttribute("value"),l=i.innerHTML;e.inputOptions[s]=l})),e},Su=(t,e)=>{const n={};for(const o in e){const i=e[o],s=t.querySelector(i);s&&(mt(s,[]),n[i.replace(/^swal-/,"")]=s.innerHTML.trim())}return n},_u=t=>{const e=si.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Ie(t.children).forEach(n=>{const o=n.tagName.toLowerCase();e.indexOf(o)===-1&&_e(`Unrecognized element <${o}>`)})},mt=(t,e)=>{Ie(t.attributes).forEach(n=>{e.indexOf(n.name)===-1&&_e([`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`,`${e.length?`Allowed attributes are: ${e.join(", ")}`:"To set the value, use HTML within the element."}`])})},ai={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 Cu(t){t.inputValidator||Object.keys(ai).forEach(e=>{t.input===e&&(t.inputValidator=ai[e])})}function Eu(t){(!t.target||typeof t.target=="string"&&!document.querySelector(t.target)||typeof t.target!="string"&&!t.target.appendChild)&&(_e('Target parameter is not valid, defaulting to "body"'),t.target="body")}function Tu(t){Cu(t),t.showLoaderOnConfirm&&!t.preConfirm&&_e(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
417
+ `,Yr=(t,e)=>{t.textContent="",e.iconHtml?Q(t,Xr(e.iconHtml)):e.icon==="success"?Q(t,Dc):e.icon==="error"?Q(t,Mc):Q(t,Xr({question:"?",warning:"!",info:"i"}[e.icon]))},Rc=(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"])zr(t,n,"backgroundColor",e.iconColor);zr(t,".swal2-success-ring","borderColor",e.iconColor)}},Xr=t=>`<div class="${h["icon-content"]}">${t}</div>`,Vc=(t,e)=>{const n=Rr();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=h.image,ye(n,e,"image")},jc=t=>{const e=document.createElement("li");return D(e,h["progress-step"]),Q(e,t),e},Hc=t=>{const e=document.createElement("li");return D(e,h["progress-step-line"]),t.progressStepsDistance&&(e.style.width=t.progressStepsDistance),e},Fc=(t,e)=>{const n=Vr();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 s=jc(o);if(n.appendChild(s),i===e.currentProgressStep&&D(s,h["active-progress-step"]),i!==e.progressSteps.length-1){const c=Hc(e);n.appendChild(c)}})},zc=(t,e)=>{const n=Mr();kn(n,e.title||e.titleText,"block"),e.title&&fo(e.title,n),e.titleText&&(n.innerText=e.titleText),ye(n,e,"title")},Uc=(t,e)=>{const n=J(),o=R();e.toast?(qt(n,"width",e.width),o.style.width="100%",o.insertBefore(mt(),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(wn()),Kc(o,e)},Kc=(t,e)=>{t.className=`${h.popup} ${he(t)?e.showClass.popup:""}`,e.toast?(D([document.documentElement,document.body],h["toast-shown"]),D(t,h.toast)):D(t,h.modal),ye(t,e,"popup"),typeof e.customClass=="string"&&D(t,e.customClass),e.icon&&D(t,h[`icon-${e.icon}`])},Zr=(t,e)=>{Uc(t,e),kc(t,e),Fc(t,e),Bc(t,e),Vc(t,e),zc(t,e),xc(t,e),$c(t,e),bc(t,e),Lc(t,e),typeof e.didRender=="function"&&e.didRender(R())},ht=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Wc=()=>{pe(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"))})},Jr=()=>{pe(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")})},Qr=["swal-title","swal-html","swal-footer"],Gc=t=>{const e=typeof t.template=="string"?document.querySelector(t.template):t.template;if(!e)return{};const n=e.content;return eu(n),Object.assign(qc(n),Yc(n),Xc(n),Zc(n),Jc(n),Qc(n,Qr))},qc=t=>{const e={};return pe(t.querySelectorAll("swal-param")).forEach(n=>{it(n,["name","value"]);const o=n.getAttribute("name"),i=n.getAttribute("value");typeof ft[o]=="boolean"&&i==="false"&&(e[o]=!1),typeof ft[o]=="object"&&(e[o]=JSON.parse(i))}),e},Yc=t=>{const e={};return pe(t.querySelectorAll("swal-button")).forEach(n=>{it(n,["type","color","aria-label"]);const o=n.getAttribute("type");e[`${o}ButtonText`]=n.innerHTML,e[`show${no(o)}Button`]=!0,n.hasAttribute("color")&&(e[`${o}ButtonColor`]=n.getAttribute("color")),n.hasAttribute("aria-label")&&(e[`${o}ButtonAriaLabel`]=n.getAttribute("aria-label"))}),e},Xc=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},Zc=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},Jc=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={},pe(o).forEach(i=>{it(i,["value"]);const s=i.getAttribute("value"),c=i.innerHTML;e.inputOptions[s]=c})),e},Qc=(t,e)=>{const n={};for(const o in e){const i=e[o],s=t.querySelector(i);s&&(it(s,[]),n[i.replace(/^swal-/,"")]=s.innerHTML.trim())}return n},eu=t=>{const e=Qr.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);pe(t.children).forEach(n=>{const o=n.tagName.toLowerCase();e.indexOf(o)===-1&&ue(`Unrecognized element <${o}>`)})},it=(t,e)=>{pe(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."}`])})},ei={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 tu(t){t.inputValidator||Object.keys(ei).forEach(e=>{t.input===e&&(t.inputValidator=ei[e])})}function nu(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 ou(t){tu(t),t.showLoaderOnConfirm&&!t.preConfirm&&ue(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
405
418
  showLoaderOnConfirm should be used together with preConfirm, see usage example:
406
- https://sweetalert2.github.io/#ajax-request`),Eu(t),typeof t.title=="string"&&(t.title=t.title.split(`
407
- `).join("<br />")),Dc(t)}class Iu{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 Au=()=>{kt.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(kt.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${kt.previousBodyPadding+Vc()}px`)},Pu=()=>{kt.previousBodyPadding!==null&&(document.body.style.paddingRight=`${kt.previousBodyPadding}px`,kt.previousBodyPadding=null)},Lu=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!Ye(document.body,y.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,W(document.body,y.iosfix),Ou(),xu()}},xu=()=>{const t=navigator.userAgent,e=!!t.match(/iPad/i)||!!t.match(/iPhone/i),n=!!t.match(/WebKit/i);e&&n&&!t.match(/CriOS/i)&&J().scrollHeight>window.innerHeight-44&&(ae().style.paddingBottom="44px")},Ou=()=>{const t=ae();let e;t.ontouchstart=n=>{e=$u(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},$u=t=>{const e=t.target,n=ae();return Bu(t)||Nu(t)?!1:e===n||!Zr(n)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(Zr(Cn())&&Cn().contains(e))},Bu=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",Nu=t=>t.touches&&t.touches.length>1,Mu=()=>{if(Ye(document.body,y.iosfix)){const t=parseInt(document.body.style.top,10);He(document.body,y.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},li=10,Du=t=>{const e=ae(),n=J();typeof t.willOpen=="function"&&t.willOpen(n);const i=window.getComputedStyle(document.body).overflowY;Vu(e,n,t),setTimeout(()=>{Ru(e,n)},li),po()&&(Uu(e,t.scrollbarPadding,i),hu()),!In()&&!V.previousActiveElement&&(V.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),He(e,y["no-transition"])},ci=t=>{const e=J();if(t.target!==e)return;const n=ae();e.removeEventListener(tn,ci),n.style.overflowY="auto"},Ru=(t,e)=>{tn&&Jr(e)?(t.style.overflowY="hidden",e.addEventListener(tn,ci)):t.style.overflowY="auto"},Uu=(t,e,n)=>{Lu(),e&&n!=="hidden"&&Au(),setTimeout(()=>{t.scrollTop=0})},Vu=(t,e,n)=>{W(t,n.showClass.backdrop),e.style.setProperty("opacity","0","important"),se(e,"grid"),setTimeout(()=>{W(e,n.showClass.popup),e.style.removeProperty("opacity")},li),W([document.documentElement,document.body],y.shown),n.heightAuto&&n.backdrop&&!n.toast&&W([document.documentElement,document.body],y["height-auto"])},_t=t=>{let e=J();e||new pt,e=J();const n=wt();In()?ce(Jt()):Hu(e,t),se(n),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},Hu=(t,e)=>{const n=Qt(),o=wt();!e&&Ae(De())&&(e=De()),se(n),e&&(ce(e),o.setAttribute("data-button-to-replace",e.className)),o.parentNode.insertBefore(o,e),W([t,n],y.loading)},ju=(t,e)=>{e.input==="select"||e.input==="radio"?Gu(t,e):["text","email","number","tel","textarea"].includes(e.input)&&(lo(e.inputValue)||co(e.inputValue))&&(_t(De()),qu(t,e))},Fu=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return zu(n);case"radio":return Ku(n);case"file":return Wu(n);default:return e.inputAutoTrim?n.value.trim():n.value}},zu=t=>t.checked?1:0,Ku=t=>t.checked?t.value:null,Wu=t=>t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,Gu=(t,e)=>{const n=J(),o=i=>Yu[e.input](n,wo(i),e);lo(e.inputOptions)||co(e.inputOptions)?(_t(De()),Yt(e.inputOptions).then(i=>{t.hideLoading(),o(i)})):typeof e.inputOptions=="object"?o(e.inputOptions):ut(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},qu=(t,e)=>{const n=t.getInput();ce(n),Yt(e.inputValue).then(o=>{n.value=e.input==="number"?parseFloat(o)||0:`${o}`,se(n),n.focus(),t.hideLoading()}).catch(o=>{ut(`Error in inputValue promise: ${o}`),n.value="",se(n),n.focus(),t.hideLoading()})},Yu={select:(t,e,n)=>{const o=at(t,y.select),i=(s,l,a)=>{const c=document.createElement("option");c.value=a,le(c,l),c.selected=ui(a,n.inputValue),s.appendChild(c)};e.forEach(s=>{const l=s[0],a=s[1];if(Array.isArray(a)){const c=document.createElement("optgroup");c.label=l,c.disabled=!1,o.appendChild(c),a.forEach(d=>i(c,d[1],d[0]))}else i(o,a,l)}),o.focus()},radio:(t,e,n)=>{const o=at(t,y.radio);e.forEach(s=>{const l=s[0],a=s[1],c=document.createElement("input"),d=document.createElement("label");c.type="radio",c.name=y.radio,c.value=l,ui(l,n.inputValue)&&(c.checked=!0);const f=document.createElement("span");le(f,a),f.className=y.label,d.appendChild(c),d.appendChild(f),o.appendChild(d)});const i=o.querySelectorAll("input");i.length&&i[0].focus()}},wo=t=>{const e=[];return typeof Map<"u"&&t instanceof Map?t.forEach((n,o)=>{let i=n;typeof i=="object"&&(i=wo(i)),e.push([o,i])}):Object.keys(t).forEach(n=>{let o=t[n];typeof o=="object"&&(o=wo(o)),e.push([n,o])}),e},ui=(t,e)=>e&&e.toString()===t.toString();function di(){const t=H.innerParams.get(this);if(!t)return;const e=H.domCache.get(this);ce(e.loader),In()?t.icon&&se(Jt()):Xu(e),He([e.popup,e.actions],y.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const Xu=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?se(e[0],"inline-block"):Tc()&&ce(t.actions)};function Zu(t){const e=H.innerParams.get(t||this),n=H.domCache.get(t||this);return n?ho(n.popup,e.input):null}const on={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap},Ju=()=>Ae(J()),fi=()=>De()&&De().click(),Qu=()=>st()&&st().click(),ed=()=>dt()&&dt().click(),mi=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},td=(t,e,n,o)=>{mi(e),n.toast||(e.keydownHandler=i=>od(t,i,o),e.keydownTarget=n.keydownListenerCapture?window:J(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},ko=(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();J().focus()},pi=["ArrowRight","ArrowDown"],nd=["ArrowLeft","ArrowUp"],od=(t,e,n)=>{const o=H.innerParams.get(t);o&&(e.isComposing||e.keyCode===229||(o.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?rd(t,e,o):e.key==="Tab"?id(e,o):[...pi,...nd].includes(e.key)?sd(e.key):e.key==="Escape"&&ad(e,o,n)))},rd=(t,e,n)=>{if(_n(n.allowEnterKey)&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;fi(),e.preventDefault()}},id=(t,e)=>{const n=t.target,o=mo();let i=-1;for(let s=0;s<o.length;s++)if(n===o[s]){i=s;break}t.shiftKey?ko(e,i,-1):ko(e,i,1),t.stopPropagation(),t.preventDefault()},sd=t=>{const e=De(),n=st(),o=dt();if(![e,n,o].includes(document.activeElement))return;const i=pi.includes(t)?"nextElementSibling":"previousElementSibling";let s=document.activeElement;for(let l=0;l<Qt().children.length;l++){if(s=s[i],!s)return;if(Ae(s)&&s instanceof HTMLButtonElement)break}s instanceof HTMLButtonElement&&s.focus()},ad=(t,e,n)=>{_n(e.allowEscapeKey)&&(t.preventDefault(),n(St.esc))};function hi(t,e,n,o){In()?gi(t,o):(Lc(n).then(()=>gi(t,o)),mi(V)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),po()&&(Pu(),Mu(),ii()),ld()}function ld(){He([document.documentElement,document.body],[y.shown,y["height-auto"],y["no-backdrop"],y["toast-shown"]])}function Pn(t){t=fd(t);const e=on.swalPromiseResolve.get(this),n=ud(this);this.isAwaitingPromise()?t.isDismissed||(rn(this),e(t)):n&&e(t)}function cd(){return!!H.awaitingPromise.get(this)}const ud=t=>{const e=J();if(!e)return!1;const n=H.innerParams.get(t);if(!n||Ye(e,n.hideClass.popup))return!1;He(e,n.showClass.popup),W(e,n.hideClass.popup);const o=ae();return He(o,n.showClass.backdrop),W(o,n.hideClass.backdrop),md(t,e,n),!0};function dd(t){const e=on.swalPromiseReject.get(this);rn(this),e&&e(t)}const rn=t=>{t.isAwaitingPromise()&&(H.awaitingPromise.delete(t),H.innerParams.get(t)||t._destroy())},fd=t=>typeof t>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),md=(t,e,n)=>{const o=ae(),i=tn&&Jr(e);typeof n.willClose=="function"&&n.willClose(e),i?pd(t,e,o,n.returnFocus,n.didClose):hi(t,o,n.returnFocus,n.didClose)},pd=(t,e,n,o,i)=>{V.swalCloseEventFinishedCallback=hi.bind(null,t,n,o,i),e.addEventListener(tn,function(s){s.target===e&&(V.swalCloseEventFinishedCallback(),delete V.swalCloseEventFinishedCallback)})},gi=(t,e)=>{setTimeout(()=>{typeof e=="function"&&e.bind(t.params)(),t._destroy()})};function yi(t,e,n){const o=H.domCache.get(t);e.forEach(i=>{o[i].disabled=n})}function bi(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 hd(){yi(this,["confirmButton","denyButton","cancelButton"],!1)}function gd(){yi(this,["confirmButton","denyButton","cancelButton"],!0)}function yd(){return bi(this.getInput(),!1)}function bd(){return bi(this.getInput(),!0)}function vd(t){const e=H.domCache.get(this),n=H.innerParams.get(this);le(e.validationMessage,t),e.validationMessage.className=y["validation-message"],n.customClass&&n.customClass.validationMessage&&W(e.validationMessage,n.customClass.validationMessage),se(e.validationMessage);const o=this.getInput();o&&(o.setAttribute("aria-invalid",!0),o.setAttribute("aria-describedby",y["validation-message"]),qr(o),W(o,y.inputerror))}function wd(){const t=H.domCache.get(this);t.validationMessage&&ce(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),He(e,y.inputerror))}function kd(){return H.domCache.get(this).progressSteps}function Sd(t){const e=J(),n=H.innerParams.get(this);if(!e||Ye(e,n.hideClass.popup))return _e("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=_d(t),i=Object.assign({},n,o);ri(this,i),H.innerParams.set(this,i),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const _d=t=>{const e={};return Object.keys(t).forEach(n=>{jr(n)?e[n]=t[n]:_e(`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`),nu(t),typeof t.title=="string"&&(t.title=t.title.split(`
420
+ `).join("<br />")),pc(t)}class ru{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 iu=()=>{pt.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(pt.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${pt.previousBodyPadding+yc()}px`)},su=()=>{pt.previousBodyPadding!==null&&(document.body.style.paddingRight=`${pt.previousBodyPadding}px`,pt.previousBodyPadding=null)},au=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!Ne(document.body,h.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,D(document.body,h.iosfix),cu(),lu()}},lu=()=>{const t=navigator.userAgent,e=!!t.match(/iPad/i)||!!t.match(/iPhone/i),n=!!t.match(/WebKit/i);e&&n&&!t.match(/CriOS/i)&&R().scrollHeight>window.innerHeight-44&&(J().style.paddingBottom="44px")},cu=()=>{const t=J();let e;t.ontouchstart=n=>{e=uu(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},uu=t=>{const e=t.target,n=J();return du(t)||fu(t)?!1:e===n||!Ur(n)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(Ur(_n())&&_n().contains(e))},du=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",fu=t=>t.touches&&t.touches.length>1,mu=()=>{if(Ne(document.body,h.iosfix)){const t=parseInt(document.body.style.top,10);Oe(document.body,h.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},ti=10,pu=t=>{const e=J(),n=R();typeof t.willOpen=="function"&&t.willOpen(n);const i=window.getComputedStyle(document.body).overflowY;yu(e,n,t),setTimeout(()=>{hu(e,n)},ti),lo()&&(gu(e,t.scrollbarPadding,i),Wc()),!Cn()&&!A.previousActiveElement&&(A.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),Oe(e,h["no-transition"])},ni=t=>{const e=R();if(t.target!==e)return;const n=J();e.removeEventListener(Yt,ni),n.style.overflowY="auto"},hu=(t,e)=>{Yt&&Kr(e)?(t.style.overflowY="hidden",e.addEventListener(Yt,ni)):t.style.overflowY="auto"},gu=(t,e,n)=>{au(),e&&n!=="hidden"&&iu(),setTimeout(()=>{t.scrollTop=0})},yu=(t,e,n)=>{D(t,n.showClass.backdrop),e.style.setProperty("opacity","0","important"),Y(e,"grid"),setTimeout(()=>{D(e,n.showClass.popup),e.style.removeProperty("opacity")},ti),D([document.documentElement,document.body],h.shown),n.heightAuto&&n.backdrop&&!n.toast&&D([document.documentElement,document.body],h["height-auto"])},gt=t=>{let e=R();e||new st,e=R();const n=mt();Cn()?ee(Wt()):bu(e,t),Y(n),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},bu=(t,e)=>{const n=Gt(),o=mt();!e&&he(Ee())&&(e=Ee()),Y(n),e&&(ee(e),o.setAttribute("data-button-to-replace",e.className)),o.parentNode.insertBefore(o,e),D([t,n],h.loading)},vu=(t,e)=>{e.input==="select"||e.input==="radio"?ku(t,e):["text","email","number","tel","textarea"].includes(e.input)&&(oo(e.inputValue)||ro(e.inputValue))&&(gt(Ee()),Eu(t,e))},_u=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return wu(n);case"radio":return Su(n);case"file":return Cu(n);default:return e.inputAutoTrim?n.value.trim():n.value}},wu=t=>t.checked?1:0,Su=t=>t.checked?t.value:null,Cu=t=>t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,ku=(t,e)=>{const n=R(),o=i=>Pu[e.input](n,ho(i),e);oo(e.inputOptions)||ro(e.inputOptions)?(gt(Ee()),zt(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}`)},Eu=(t,e)=>{const n=t.getInput();ee(n),zt(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()})},Pu={select:(t,e,n)=>{const o=We(t,h.select),i=(s,c,l)=>{const a=document.createElement("option");a.value=l,Q(a,c),a.selected=oi(l,n.inputValue),s.appendChild(a)};e.forEach(s=>{const c=s[0],l=s[1];if(Array.isArray(l)){const a=document.createElement("optgroup");a.label=c,a.disabled=!1,o.appendChild(a),l.forEach(u=>i(a,u[1],u[0]))}else i(o,l,c)}),o.focus()},radio:(t,e,n)=>{const o=We(t,h.radio);e.forEach(s=>{const c=s[0],l=s[1],a=document.createElement("input"),u=document.createElement("label");a.type="radio",a.name=h.radio,a.value=c,oi(c,n.inputValue)&&(a.checked=!0);const f=document.createElement("span");Q(f,l),f.className=h.label,u.appendChild(a),u.appendChild(f),o.appendChild(u)});const i=o.querySelectorAll("input");i.length&&i[0].focus()}},ho=t=>{const e=[];return typeof Map<"u"&&t instanceof Map?t.forEach((n,o)=>{let i=n;typeof i=="object"&&(i=ho(i)),e.push([o,i])}):Object.keys(t).forEach(n=>{let o=t[n];typeof o=="object"&&(o=ho(o)),e.push([n,o])}),e},oi=(t,e)=>e&&e.toString()===t.toString();function ri(){const t=x.innerParams.get(this);if(!t)return;const e=x.domCache.get(this);ee(e.loader),Cn()?t.icon&&Y(Wt()):Tu(e),Oe([e.popup,e.actions],h.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const Tu=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?Y(e[0],"inline-block"):oc()&&ee(t.actions)};function Iu(t){const e=x.innerParams.get(t||this),n=x.domCache.get(t||this);return n?co(n.popup,e.input):null}const Zt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap},Au=()=>he(R()),ii=()=>Ee()&&Ee().click(),Ou=()=>Ke()&&Ke().click(),$u=()=>ot()&&ot().click(),si=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},Lu=(t,e,n,o)=>{si(e),n.toast||(e.keydownHandler=i=>Bu(t,i,o),e.keydownTarget=n.keydownListenerCapture?window:R(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},go=(t,e,n)=>{const o=ao();if(o.length)return e=e+n,e===o.length?e=0:e===-1&&(e=o.length-1),o[e].focus();R().focus()},ai=["ArrowRight","ArrowDown"],xu=["ArrowLeft","ArrowUp"],Bu=(t,e,n)=>{const o=x.innerParams.get(t);o&&(e.isComposing||e.keyCode===229||(o.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?Nu(t,e,o):e.key==="Tab"?Du(e,o):[...ai,...xu].includes(e.key)?Mu(e.key):e.key==="Escape"&&Ru(e,o,n)))},Nu=(t,e,n)=>{if(vn(n.allowEnterKey)&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;ii(),e.preventDefault()}},Du=(t,e)=>{const n=t.target,o=ao();let i=-1;for(let s=0;s<o.length;s++)if(n===o[s]){i=s;break}t.shiftKey?go(e,i,-1):go(e,i,1),t.stopPropagation(),t.preventDefault()},Mu=t=>{const e=Ee(),n=Ke(),o=ot();if(![e,n,o].includes(document.activeElement))return;const i=ai.includes(t)?"nextElementSibling":"previousElementSibling";let s=document.activeElement;for(let c=0;c<Gt().children.length;c++){if(s=s[i],!s)return;if(he(s)&&s instanceof HTMLButtonElement)break}s instanceof HTMLButtonElement&&s.focus()},Ru=(t,e,n)=>{vn(e.allowEscapeKey)&&(t.preventDefault(),n(ht.esc))};function li(t,e,n,o){Cn()?ci(t,o):(ac(n).then(()=>ci(t,o)),si(A)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),lo()&&(su(),mu(),Jr()),Vu()}function Vu(){Oe([document.documentElement,document.body],[h.shown,h["height-auto"],h["no-backdrop"],h["toast-shown"]])}function En(t){t=zu(t);const e=Zt.swalPromiseResolve.get(this),n=Hu(this);this.isAwaitingPromise()?t.isDismissed||(Jt(this),e(t)):n&&e(t)}function ju(){return!!x.awaitingPromise.get(this)}const Hu=t=>{const e=R();if(!e)return!1;const n=x.innerParams.get(t);if(!n||Ne(e,n.hideClass.popup))return!1;Oe(e,n.showClass.popup),D(e,n.hideClass.popup);const o=J();return Oe(o,n.showClass.backdrop),D(o,n.hideClass.backdrop),Uu(t,e,n),!0};function Fu(t){const e=Zt.swalPromiseReject.get(this);Jt(this),e&&e(t)}const Jt=t=>{t.isAwaitingPromise()&&(x.awaitingPromise.delete(t),x.innerParams.get(t)||t._destroy())},zu=t=>typeof t>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),Uu=(t,e,n)=>{const o=J(),i=Yt&&Kr(e);typeof n.willClose=="function"&&n.willClose(e),i?Ku(t,e,o,n.returnFocus,n.didClose):li(t,o,n.returnFocus,n.didClose)},Ku=(t,e,n,o,i)=>{A.swalCloseEventFinishedCallback=li.bind(null,t,n,o,i),e.addEventListener(Yt,function(s){s.target===e&&(A.swalCloseEventFinishedCallback(),delete A.swalCloseEventFinishedCallback)})},ci=(t,e)=>{setTimeout(()=>{typeof e=="function"&&e.bind(t.params)(),t._destroy()})};function ui(t,e,n){const o=x.domCache.get(t);e.forEach(i=>{o[i].disabled=n})}function di(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 Wu(){ui(this,["confirmButton","denyButton","cancelButton"],!1)}function Gu(){ui(this,["confirmButton","denyButton","cancelButton"],!0)}function qu(){return di(this.getInput(),!1)}function Yu(){return di(this.getInput(),!0)}function Xu(t){const e=x.domCache.get(this),n=x.innerParams.get(this);Q(e.validationMessage,t),e.validationMessage.className=h["validation-message"],n.customClass&&n.customClass.validationMessage&&D(e.validationMessage,n.customClass.validationMessage),Y(e.validationMessage);const o=this.getInput();o&&(o.setAttribute("aria-invalid",!0),o.setAttribute("aria-describedby",h["validation-message"]),Hr(o),D(o,h.inputerror))}function Zu(){const t=x.domCache.get(this);t.validationMessage&&ee(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),Oe(e,h.inputerror))}function Ju(){return x.domCache.get(this).progressSteps}function Qu(t){const e=R(),n=x.innerParams.get(this);if(!e||Ne(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=ed(t),i=Object.assign({},n,o);Zr(this,i),x.innerParams.set(this,i),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const ed=t=>{const e={};return Object.keys(t).forEach(n=>{Nr(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
408
421
 
409
- 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 Cd(){const t=H.domCache.get(this),e=H.innerParams.get(this);if(!e){vi(this);return}t.popup&&V.swalCloseEventFinishedCallback&&(V.swalCloseEventFinishedCallback(),delete V.swalCloseEventFinishedCallback),V.deferDisposalTimer&&(clearTimeout(V.deferDisposalTimer),delete V.deferDisposalTimer),typeof e.didDestroy=="function"&&e.didDestroy(),Ed(this)}const Ed=t=>{vi(t),delete t.params,delete V.keydownHandler,delete V.keydownTarget,delete V.currentInstance},vi=t=>{t.isAwaitingPromise()?(So(H,t),H.awaitingPromise.set(t,!0)):(So(on,t),So(H,t))},So=(t,e)=>{for(const n in t)t[n].delete(e)},wi=Object.freeze(Object.defineProperty({__proto__:null,_destroy:Cd,close:Pn,closeModal:Pn,closePopup:Pn,closeToast:Pn,disableButtons:gd,disableInput:bd,disableLoading:di,enableButtons:hd,enableInput:yd,getInput:Zu,getProgressSteps:kd,handleAwaitingPromise:rn,hideLoading:di,isAwaitingPromise:cd,rejectPromise:dd,resetValidationMessage:wd,showValidationMessage:vd,update:Sd},Symbol.toStringTag,{value:"Module"})),Td=t=>{const e=H.innerParams.get(t);t.disableButtons(),e.input?ki(t,"confirm"):Co(t,!0)},Id=t=>{const e=H.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?ki(t,"deny"):_o(t,!1)},Ad=(t,e)=>{t.disableButtons(),e(St.cancel)},ki=(t,e)=>{const n=H.innerParams.get(t);if(!n.input)return ut(`The "input" parameter is needed to be set when using returnInputValueOn${ao(e)}`);const o=Fu(t,n);n.inputValidator?Pd(t,o,e):t.getInput().checkValidity()?e==="deny"?_o(t,o):Co(t,o):(t.enableButtons(),t.showValidationMessage(n.validationMessage))},Pd=(t,e,n)=>{const o=H.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>Yt(o.inputValidator(e,o.validationMessage))).then(s=>{t.enableButtons(),t.enableInput(),s?t.showValidationMessage(s):n==="deny"?_o(t,e):Co(t,e)})},_o=(t,e)=>{const n=H.innerParams.get(t||void 0);n.showLoaderOnDeny&&_t(st()),n.preDeny?(H.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>Yt(n.preDeny(e,n.validationMessage))).then(i=>{i===!1?(t.hideLoading(),rn(t)):t.closePopup({isDenied:!0,value:typeof i>"u"?e:i})}).catch(i=>_i(t||void 0,i))):t.closePopup({isDenied:!0,value:e})},Si=(t,e)=>{t.closePopup({isConfirmed:!0,value:e})},_i=(t,e)=>{t.rejectPromise(e)},Co=(t,e)=>{const n=H.innerParams.get(t||void 0);n.showLoaderOnConfirm&&_t(),n.preConfirm?(t.resetValidationMessage(),H.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>Yt(n.preConfirm(e,n.validationMessage))).then(i=>{Ae(En())||i===!1?(t.hideLoading(),rn(t)):Si(t,typeof i>"u"?e:i)}).catch(i=>_i(t||void 0,i))):Si(t,e)},Ld=(t,e,n)=>{H.innerParams.get(t).toast?xd(t,e,n):($d(e),Bd(e),Nd(t,e,n))},xd=(t,e,n)=>{e.popup.onclick=()=>{const o=H.innerParams.get(t);o&&(Od(o)||o.timer||o.input)||n(St.close)}},Od=t=>t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton;let Ln=!1;const $d=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(Ln=!0)}}},Bd=t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(Ln=!0)}}},Nd=(t,e,n)=>{e.container.onclick=o=>{const i=H.innerParams.get(t);if(Ln){Ln=!1;return}o.target===e.container&&_n(i.allowOutsideClick)&&n(St.backdrop)}},Md=t=>typeof t=="object"&&t.jquery,Ci=t=>t instanceof Element||Md(t),Dd=t=>{const e={};return typeof t[0]=="object"&&!Ci(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,o)=>{const i=t[o];typeof i=="string"||Ci(i)?e[n]=i:i!==void 0&&ut(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof i}`)}),e};function Rd(...t){const e=this;return new e(...t)}function Ud(t){class e extends this{_main(o,i){return super._main(o,Object.assign({},t,i))}}return e}const Vd=()=>V.timeout&&V.timeout.getTimerLeft(),Ei=()=>{if(V.timeout)return Ic(),V.timeout.stop()},Ti=()=>{if(V.timeout){const t=V.timeout.start();return go(t),t}},Hd=()=>{const t=V.timeout;return t&&(t.running?Ei():Ti())},jd=t=>{if(V.timeout){const e=V.timeout.increase(t);return go(e,!0),e}},Fd=()=>V.timeout&&V.timeout.isRunning();let Ii=!1;const Eo={};function zd(t="data-swal-template"){Eo[t]=this,Ii||(document.body.addEventListener("click",Kd),Ii=!0)}const Kd=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in Eo){const o=e.getAttribute(n);if(o){Eo[n].fire({template:o});return}}},Wd=Object.freeze(Object.defineProperty({__proto__:null,argsToParams:Dd,bindClickHandler:zd,clickCancel:ed,clickConfirm:fi,clickDeny:Qu,enableLoading:_t,fire:Rd,getActions:Qt,getCancelButton:dt,getCloseButton:fo,getConfirmButton:De,getContainer:ae,getDenyButton:st,getFocusableElements:mo,getFooter:Gr,getHtmlContainer:Cn,getIcon:Jt,getImage:Kr,getInputLabel:Sc,getLoader:wt,getPopup:J,getTimerLeft:Vd,getTimerProgressBar:Tn,getTitle:zr,getValidationMessage:En,increaseTimer:jd,isDeprecatedParameter:uo,isLoading:Cc,isTimerRunning:Fd,isUpdatableParameter:jr,isValidParameter:Hr,isVisible:Ju,mixin:Ud,resumeTimer:Ti,showLoading:_t,stopTimer:Ei,toggleTimer:Hd},Symbol.toStringTag,{value:"Module"}));let To;class Ct{constructor(...e){if(typeof window>"u")return;To=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);H.promise.set(this,o)}_main(e,n={}){wc(Object.assign({},n,e)),V.currentInstance&&(V.currentInstance._destroy(),po()&&ii()),V.currentInstance=this;const o=qd(e,n);Tu(o),Object.freeze(o),V.timeout&&(V.timeout.stop(),delete V.timeout),clearTimeout(V.restoreFocusTimeout);const i=Yd(this);return ri(this,o),H.innerParams.set(this,o),Gd(this,i,o)}then(e){return H.promise.get(this).then(e)}finally(e){return H.promise.get(this).finally(e)}}const Gd=(t,e,n)=>new Promise((o,i)=>{const s=l=>{t.closePopup({isDismissed:!0,dismiss:l})};on.swalPromiseResolve.set(t,o),on.swalPromiseReject.set(t,i),e.confirmButton.onclick=()=>Td(t),e.denyButton.onclick=()=>Id(t),e.cancelButton.onclick=()=>Ad(t,s),e.closeButton.onclick=()=>s(St.close),Ld(t,e,s),td(t,V,n,s),ju(t,n),Du(n),Xd(V,n,s),Zd(e,n),setTimeout(()=>{e.container.scrollTop=0})}),qd=(t,e)=>{const n=gu(t),o=Object.assign({},vt,e,n,t);return o.showClass=Object.assign({},vt.showClass,o.showClass),o.hideClass=Object.assign({},vt.hideClass,o.hideClass),o},Yd=t=>{const e={popup:J(),container:ae(),actions:Qt(),confirmButton:De(),denyButton:st(),cancelButton:dt(),loader:wt(),closeButton:fo(),validationMessage:En(),progressSteps:Wr()};return H.domCache.set(t,e),e},Xd=(t,e,n)=>{const o=Tn();ce(o),e.timer&&(t.timeout=new Iu(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(se(o),xe(o,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&go(e.timer)})))},Zd=(t,e)=>{if(!e.toast){if(!_n(e.allowEnterKey))return Qd();Jd(t,e)||ko(e,-1,1)}},Jd=(t,e)=>e.focusDeny&&Ae(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&Ae(t.cancelButton)?(t.cancelButton.focus(),!0):e.focusConfirm&&Ae(t.confirmButton)?(t.confirmButton.focus(),!0):!1,Qd=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Object.assign(Ct.prototype,wi),Object.assign(Ct,Wd),Object.keys(wi).forEach(t=>{Ct[t]=function(...e){if(To)return To[t](...e)}}),Ct.DismissReason=St,Ct.version="11.4.8";const pt=Ct;pt.default=pt;/*! @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:Ai,setPrototypeOf:Pi,isFrozen:ef,getPrototypeOf:tf,getOwnPropertyDescriptor:nf}=Object;let{freeze:be,seal:Oe,create:Li}=Object,{apply:Io,construct:Ao}=typeof Reflect<"u"&&Reflect;be||(be=function(e){return e}),Oe||(Oe=function(e){return e}),Io||(Io=function(e,n,o){return e.apply(n,o)}),Ao||(Ao=function(e,n){return new e(...n)});const xn=we(Array.prototype.forEach),of=we(Array.prototype.lastIndexOf),xi=we(Array.prototype.pop),sn=we(Array.prototype.push),rf=we(Array.prototype.splice),On=we(String.prototype.toLowerCase),Po=we(String.prototype.toString),Oi=we(String.prototype.match),an=we(String.prototype.replace),sf=we(String.prototype.indexOf),af=we(String.prototype.trim),Re=we(Object.prototype.hasOwnProperty),ve=we(RegExp.prototype.test),ln=lf(TypeError);function we(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 Io(t,e,o)}}function lf(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return Ao(t,n)}}function z(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:On;Pi&&Pi(t,null);let o=e.length;for(;o--;){let i=e[o];if(typeof i=="string"){const s=n(i);s!==i&&(ef(e)||(e[o]=s),i=s)}t[i]=!0}return t}function cf(t){for(let e=0;e<t.length;e++)Re(t,e)||(t[e]=null);return t}function Xe(t){const e=Li(null);for(const[n,o]of Ai(t))Re(t,n)&&(Array.isArray(o)?e[n]=cf(o):o&&typeof o=="object"&&o.constructor===Object?e[n]=Xe(o):e[n]=o);return e}function cn(t,e){for(;t!==null;){const o=nf(t,e);if(o){if(o.get)return we(o.get);if(typeof o.value=="function")return we(o.value)}t=tf(t)}function n(){return null}return n}const $i=be(["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"]),Lo=be(["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=be(["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"]),uf=be(["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"]),Oo=be(["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"]),df=be(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Bi=be(["#text"]),Ni=be(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),$o=be(["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=be(["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=be(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ff=Oe(/\{\{[\w\W]*|[\w\W]*\}\}/gm),mf=Oe(/<%[\w\W]*|[\w\W]*%>/gm),pf=Oe(/\$\{[\w\W]*/gm),hf=Oe(/^data-[\-\w.\u00B7-\uFFFF]+$/),gf=Oe(/^aria-[\-\w]+$/),Di=Oe(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),yf=Oe(/^(?:\w+script|data):/i),bf=Oe(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ri=Oe(/^html$/i),vf=Oe(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ui=Object.freeze({__proto__:null,ARIA_ATTR:gf,ATTR_WHITESPACE:bf,CUSTOM_ELEMENT:vf,DATA_ATTR:hf,DOCTYPE_NAME:Ri,ERB_EXPR:mf,IS_ALLOWED_URI:Di,IS_SCRIPT_OR_DATA:yf,MUSTACHE_EXPR:ff,TMPLIT_EXPR:pf});const un={element:1,text:3,progressingInstruction:7,comment:8,document:9},wf=function(){return typeof window>"u"?null:window},kf=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 s="dompurify"+(o?"#"+o:"");try{return e.createPolicy(s,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},Vi=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Hi(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wf();const e=B=>Hi(B);if(e.version="3.2.6",e.removed=[],!t||!t.document||t.document.nodeType!==un.document||!t.Element)return e.isSupported=!1,e;let{document:n}=t;const o=n,i=o.currentScript,{DocumentFragment:s,HTMLTemplateElement:l,Node:a,Element:c,NodeFilter:d,NamedNodeMap:f=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:g,trustedTypes:v}=t,_=c.prototype,A=cn(_,"cloneNode"),L=cn(_,"remove"),S=cn(_,"nextSibling"),k=cn(_,"childNodes"),D=cn(_,"parentNode");if(typeof l=="function"){const B=n.createElement("template");B.content&&B.content.ownerDocument&&(n=B.content.ownerDocument)}let U,G="";const{implementation:ue,createNodeIterator:ne,createDocumentFragment:Pe,getElementsByTagName:oe}=n,{importNode:Y}=o;let M=Vi();e.isSupported=typeof Ai=="function"&&typeof D=="function"&&ue&&ue.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:X,ERB_EXPR:de,TMPLIT_EXPR:fe,DATA_ATTR:je,ARIA_ATTR:Ze,IS_SCRIPT_OR_DATA:Fe,ATTR_WHITESPACE:ze,CUSTOM_ELEMENT:ht}=Ui;let{IS_ALLOWED_URI:$e}=Ui,u=null;const h=z({},[...$i,...Lo,...xo,...Oo,...Bi]);let w=null;const I=z({},[...Ni,...$o,...Mi,...$n]);let b=Object.seal(Li(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}})),P=null,C=null,E=!0,O=!0,x=!1,R=!0,F=!1,ke=!0,me=!1,pe=!1,Je=!1,Tt=!1,Mn=!1,Dn=!1,Ji=!0,Qi=!1;const tm="user-content-";let Do=!0,dn=!1,It={},At=null;const es=z({},["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 ts=null;const ns=z({},["audio","video","img","source","image","track"]);let Ro=null;const os=z({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Rn="http://www.w3.org/1998/Math/MathML",Un="http://www.w3.org/2000/svg",Qe="http://www.w3.org/1999/xhtml";let Pt=Qe,Uo=!1,Vo=null;const nm=z({},[Rn,Un,Qe],Po);let Vn=z({},["mi","mo","mn","ms","mtext"]),Hn=z({},["annotation-xml"]);const om=z({},["title","style","font","a","script"]);let fn=null;const rm=["application/xhtml+xml","text/html"],im="text/html";let ie=null,Lt=null;const sm=n.createElement("form"),rs=function(m){return m instanceof RegExp||m instanceof Function},Ho=function(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Lt&&Lt===m)){if((!m||typeof m!="object")&&(m={}),m=Xe(m),fn=rm.indexOf(m.PARSER_MEDIA_TYPE)===-1?im:m.PARSER_MEDIA_TYPE,ie=fn==="application/xhtml+xml"?Po:On,u=Re(m,"ALLOWED_TAGS")?z({},m.ALLOWED_TAGS,ie):h,w=Re(m,"ALLOWED_ATTR")?z({},m.ALLOWED_ATTR,ie):I,Vo=Re(m,"ALLOWED_NAMESPACES")?z({},m.ALLOWED_NAMESPACES,Po):nm,Ro=Re(m,"ADD_URI_SAFE_ATTR")?z(Xe(os),m.ADD_URI_SAFE_ATTR,ie):os,ts=Re(m,"ADD_DATA_URI_TAGS")?z(Xe(ns),m.ADD_DATA_URI_TAGS,ie):ns,At=Re(m,"FORBID_CONTENTS")?z({},m.FORBID_CONTENTS,ie):es,P=Re(m,"FORBID_TAGS")?z({},m.FORBID_TAGS,ie):Xe({}),C=Re(m,"FORBID_ATTR")?z({},m.FORBID_ATTR,ie):Xe({}),It=Re(m,"USE_PROFILES")?m.USE_PROFILES:!1,E=m.ALLOW_ARIA_ATTR!==!1,O=m.ALLOW_DATA_ATTR!==!1,x=m.ALLOW_UNKNOWN_PROTOCOLS||!1,R=m.ALLOW_SELF_CLOSE_IN_ATTR!==!1,F=m.SAFE_FOR_TEMPLATES||!1,ke=m.SAFE_FOR_XML!==!1,me=m.WHOLE_DOCUMENT||!1,Tt=m.RETURN_DOM||!1,Mn=m.RETURN_DOM_FRAGMENT||!1,Dn=m.RETURN_TRUSTED_TYPE||!1,Je=m.FORCE_BODY||!1,Ji=m.SANITIZE_DOM!==!1,Qi=m.SANITIZE_NAMED_PROPS||!1,Do=m.KEEP_CONTENT!==!1,dn=m.IN_PLACE||!1,$e=m.ALLOWED_URI_REGEXP||Di,Pt=m.NAMESPACE||Qe,Vn=m.MATHML_TEXT_INTEGRATION_POINTS||Vn,Hn=m.HTML_INTEGRATION_POINTS||Hn,b=m.CUSTOM_ELEMENT_HANDLING||{},m.CUSTOM_ELEMENT_HANDLING&&rs(m.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(b.tagNameCheck=m.CUSTOM_ELEMENT_HANDLING.tagNameCheck),m.CUSTOM_ELEMENT_HANDLING&&rs(m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(b.attributeNameCheck=m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),m.CUSTOM_ELEMENT_HANDLING&&typeof m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(b.allowCustomizedBuiltInElements=m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),F&&(O=!1),Mn&&(Tt=!0),It&&(u=z({},Bi),w=[],It.html===!0&&(z(u,$i),z(w,Ni)),It.svg===!0&&(z(u,Lo),z(w,$o),z(w,$n)),It.svgFilters===!0&&(z(u,xo),z(w,$o),z(w,$n)),It.mathMl===!0&&(z(u,Oo),z(w,Mi),z(w,$n))),m.ADD_TAGS&&(u===h&&(u=Xe(u)),z(u,m.ADD_TAGS,ie)),m.ADD_ATTR&&(w===I&&(w=Xe(w)),z(w,m.ADD_ATTR,ie)),m.ADD_URI_SAFE_ATTR&&z(Ro,m.ADD_URI_SAFE_ATTR,ie),m.FORBID_CONTENTS&&(At===es&&(At=Xe(At)),z(At,m.FORBID_CONTENTS,ie)),Do&&(u["#text"]=!0),me&&z(u,["html","head","body"]),u.table&&(z(u,["tbody"]),delete P.tbody),m.TRUSTED_TYPES_POLICY){if(typeof m.TRUSTED_TYPES_POLICY.createHTML!="function")throw ln('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof m.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ln('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');U=m.TRUSTED_TYPES_POLICY,G=U.createHTML("")}else U===void 0&&(U=kf(v,i)),U!==null&&typeof G=="string"&&(G=U.createHTML(""));be&&be(m),Lt=m}},is=z({},[...Lo,...xo,...uf]),ss=z({},[...Oo,...df]),am=function(m){let T=D(m);(!T||!T.tagName)&&(T={namespaceURI:Pt,tagName:"template"});const $=On(m.tagName),te=On(T.tagName);return Vo[m.namespaceURI]?m.namespaceURI===Un?T.namespaceURI===Qe?$==="svg":T.namespaceURI===Rn?$==="svg"&&(te==="annotation-xml"||Vn[te]):!!is[$]:m.namespaceURI===Rn?T.namespaceURI===Qe?$==="math":T.namespaceURI===Un?$==="math"&&Hn[te]:!!ss[$]:m.namespaceURI===Qe?T.namespaceURI===Un&&!Hn[te]||T.namespaceURI===Rn&&!Vn[te]?!1:!ss[$]&&(om[$]||!is[$]):!!(fn==="application/xhtml+xml"&&Vo[m.namespaceURI]):!1},Ke=function(m){sn(e.removed,{element:m});try{D(m).removeChild(m)}catch{L(m)}},xt=function(m,T){try{sn(e.removed,{attribute:T.getAttributeNode(m),from:T})}catch{sn(e.removed,{attribute:null,from:T})}if(T.removeAttribute(m),m==="is")if(Tt||Mn)try{Ke(T)}catch{}else try{T.setAttribute(m,"")}catch{}},as=function(m){let T=null,$=null;if(Je)m="<remove></remove>"+m;else{const re=Oi(m,/^[\r\n\t ]+/);$=re&&re[0]}fn==="application/xhtml+xml"&&Pt===Qe&&(m='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+m+"</body></html>");const te=U?U.createHTML(m):m;if(Pt===Qe)try{T=new g().parseFromString(te,fn)}catch{}if(!T||!T.documentElement){T=ue.createDocument(Pt,"template",null);try{T.documentElement.innerHTML=Uo?G:te}catch{}}const he=T.body||T.documentElement;return m&&$&&he.insertBefore(n.createTextNode($),he.childNodes[0]||null),Pt===Qe?oe.call(T,me?"html":"body")[0]:me?T.documentElement:he},ls=function(m){return ne.call(m.ownerDocument||m,m,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},jo=function(m){return m instanceof p&&(typeof m.nodeName!="string"||typeof m.textContent!="string"||typeof m.removeChild!="function"||!(m.attributes instanceof f)||typeof m.removeAttribute!="function"||typeof m.setAttribute!="function"||typeof m.namespaceURI!="string"||typeof m.insertBefore!="function"||typeof m.hasChildNodes!="function")},cs=function(m){return typeof a=="function"&&m instanceof a};function et(B,m,T){xn(B,$=>{$.call(e,m,T,Lt)})}const us=function(m){let T=null;if(et(M.beforeSanitizeElements,m,null),jo(m))return Ke(m),!0;const $=ie(m.nodeName);if(et(M.uponSanitizeElement,m,{tagName:$,allowedTags:u}),ke&&m.hasChildNodes()&&!cs(m.firstElementChild)&&ve(/<[/\w!]/g,m.innerHTML)&&ve(/<[/\w!]/g,m.textContent)||m.nodeType===un.progressingInstruction||ke&&m.nodeType===un.comment&&ve(/<[/\w]/g,m.data))return Ke(m),!0;if(!u[$]||P[$]){if(!P[$]&&fs($)&&(b.tagNameCheck instanceof RegExp&&ve(b.tagNameCheck,$)||b.tagNameCheck instanceof Function&&b.tagNameCheck($)))return!1;if(Do&&!At[$]){const te=D(m)||m.parentNode,he=k(m)||m.childNodes;if(he&&te){const re=he.length;for(let Ee=re-1;Ee>=0;--Ee){const tt=A(he[Ee],!0);tt.__removalCount=(m.__removalCount||0)+1,te.insertBefore(tt,S(m))}}}return Ke(m),!0}return m instanceof c&&!am(m)||($==="noscript"||$==="noembed"||$==="noframes")&&ve(/<\/no(script|embed|frames)/i,m.innerHTML)?(Ke(m),!0):(F&&m.nodeType===un.text&&(T=m.textContent,xn([X,de,fe],te=>{T=an(T,te," ")}),m.textContent!==T&&(sn(e.removed,{element:m.cloneNode()}),m.textContent=T)),et(M.afterSanitizeElements,m,null),!1)},ds=function(m,T,$){if(Ji&&(T==="id"||T==="name")&&($ in n||$ in sm))return!1;if(!(O&&!C[T]&&ve(je,T))){if(!(E&&ve(Ze,T))){if(!w[T]||C[T]){if(!(fs(m)&&(b.tagNameCheck instanceof RegExp&&ve(b.tagNameCheck,m)||b.tagNameCheck instanceof Function&&b.tagNameCheck(m))&&(b.attributeNameCheck instanceof RegExp&&ve(b.attributeNameCheck,T)||b.attributeNameCheck instanceof Function&&b.attributeNameCheck(T))||T==="is"&&b.allowCustomizedBuiltInElements&&(b.tagNameCheck instanceof RegExp&&ve(b.tagNameCheck,$)||b.tagNameCheck instanceof Function&&b.tagNameCheck($))))return!1}else if(!Ro[T]){if(!ve($e,an($,ze,""))){if(!((T==="src"||T==="xlink:href"||T==="href")&&m!=="script"&&sf($,"data:")===0&&ts[m])){if(!(x&&!ve(Fe,an($,ze,"")))){if($)return!1}}}}}}return!0},fs=function(m){return m!=="annotation-xml"&&Oi(m,ht)},ms=function(m){et(M.beforeSanitizeAttributes,m,null);const{attributes:T}=m;if(!T||jo(m))return;const $={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:w,forceKeepAttr:void 0};let te=T.length;for(;te--;){const he=T[te],{name:re,namespaceURI:Ee,value:tt}=he,mn=ie(re),Fo=tt;let ge=re==="value"?Fo:af(Fo);if($.attrName=mn,$.attrValue=ge,$.keepAttr=!0,$.forceKeepAttr=void 0,et(M.uponSanitizeAttribute,m,$),ge=$.attrValue,Qi&&(mn==="id"||mn==="name")&&(xt(re,m),ge=tm+ge),ke&&ve(/((--!?|])>)|<\/(style|title)/i,ge)){xt(re,m);continue}if($.forceKeepAttr)continue;if(!$.keepAttr){xt(re,m);continue}if(!R&&ve(/\/>/i,ge)){xt(re,m);continue}F&&xn([X,de,fe],hs=>{ge=an(ge,hs," ")});const ps=ie(m.nodeName);if(!ds(ps,mn,ge)){xt(re,m);continue}if(U&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!Ee)switch(v.getAttributeType(ps,mn)){case"TrustedHTML":{ge=U.createHTML(ge);break}case"TrustedScriptURL":{ge=U.createScriptURL(ge);break}}if(ge!==Fo)try{Ee?m.setAttributeNS(Ee,re,ge):m.setAttribute(re,ge),jo(m)?Ke(m):xi(e.removed)}catch{xt(re,m)}}et(M.afterSanitizeAttributes,m,null)},lm=function B(m){let T=null;const $=ls(m);for(et(M.beforeSanitizeShadowDOM,m,null);T=$.nextNode();)et(M.uponSanitizeShadowNode,T,null),us(T),ms(T),T.content instanceof s&&B(T.content);et(M.afterSanitizeShadowDOM,m,null)};return e.sanitize=function(B){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T=null,$=null,te=null,he=null;if(Uo=!B,Uo&&(B="<!-->"),typeof B!="string"&&!cs(B))if(typeof B.toString=="function"){if(B=B.toString(),typeof B!="string")throw ln("dirty is not a string, aborting")}else throw ln("toString is not a function");if(!e.isSupported)return B;if(pe||Ho(m),e.removed=[],typeof B=="string"&&(dn=!1),dn){if(B.nodeName){const tt=ie(B.nodeName);if(!u[tt]||P[tt])throw ln("root node is forbidden and cannot be sanitized in-place")}}else if(B instanceof a)T=as("<!---->"),$=T.ownerDocument.importNode(B,!0),$.nodeType===un.element&&$.nodeName==="BODY"||$.nodeName==="HTML"?T=$:T.appendChild($);else{if(!Tt&&!F&&!me&&B.indexOf("<")===-1)return U&&Dn?U.createHTML(B):B;if(T=as(B),!T)return Tt?null:Dn?G:""}T&&Je&&Ke(T.firstChild);const re=ls(dn?B:T);for(;te=re.nextNode();)us(te),ms(te),te.content instanceof s&&lm(te.content);if(dn)return B;if(Tt){if(Mn)for(he=Pe.call(T.ownerDocument);T.firstChild;)he.appendChild(T.firstChild);else he=T;return(w.shadowroot||w.shadowrootmode)&&(he=Y.call(o,he,!0)),he}let Ee=me?T.outerHTML:T.innerHTML;return me&&u["!doctype"]&&T.ownerDocument&&T.ownerDocument.doctype&&T.ownerDocument.doctype.name&&ve(Ri,T.ownerDocument.doctype.name)&&(Ee="<!DOCTYPE "+T.ownerDocument.doctype.name+`>
410
- `+Ee),F&&xn([X,de,fe],tt=>{Ee=an(Ee,tt," ")}),U&&Dn?U.createHTML(Ee):Ee},e.setConfig=function(){let B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ho(B),pe=!0},e.clearConfig=function(){Lt=null,pe=!1},e.isValidAttribute=function(B,m,T){Lt||Ho({});const $=ie(B),te=ie(m);return ds($,te,T)},e.addHook=function(B,m){typeof m=="function"&&sn(M[B],m)},e.removeHook=function(B,m){if(m!==void 0){const T=of(M[B],m);return T===-1?void 0:rf(M[B],T,1)[0]}return xi(M[B])},e.removeHooks=function(B){M[B]=[]},e.removeAllHooks=function(){M=Vi()},e}var Bo=Hi();class ji{get IsVisible(){return pt.isVisible()}async CreateConfirmAsync(e){return new Promise(n=>{pt.fire({showCancelButton:!0,allowEscapeKey:!1,allowOutsideClick:!1,icon:"question",title:e.title,html:Bo.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 Fi=()=>new ji,Sf=()=>new ji;function _f(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Bn={exports:{}},Cf=Bn.exports,zi;function Ef(){return zi||(zi=1,function(t){(function(e,n){t.exports?t.exports=n():e.log=n()})(Cf,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"],s={},l=null;function a(A,L){var S=A[L];if(typeof S.bind=="function")return S.bind(A);try{return Function.prototype.bind.call(S,A)}catch{return function(){return Function.prototype.apply.apply(S,[A,arguments])}}}function c(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function d(A){return A==="debug"&&(A="log"),typeof console===n?!1:A==="trace"&&o?c:console[A]!==void 0?a(console,A):console.log!==void 0?a(console,"log"):e}function f(){for(var A=this.getLevel(),L=0;L<i.length;L++){var S=i[L];this[S]=L<A?e:this.methodFactory(S,A,this.name)}if(this.log=this.debug,typeof console===n&&A<this.levels.SILENT)return"No console available for logging"}function p(A){return function(){typeof console!==n&&(f.call(this),this[A].apply(this,arguments))}}function g(A,L,S){return d(A)||p.apply(this,arguments)}function v(A,L){var S=this,k,D,U,G="loglevel";typeof A=="string"?G+=":"+A:typeof A=="symbol"&&(G=void 0);function ue(M){var X=(i[M]||"silent").toUpperCase();if(!(typeof window===n||!G)){try{window.localStorage[G]=X;return}catch{}try{window.document.cookie=encodeURIComponent(G)+"="+X+";"}catch{}}}function ne(){var M;if(!(typeof window===n||!G)){try{M=window.localStorage[G]}catch{}if(typeof M===n)try{var X=window.document.cookie,de=encodeURIComponent(G),fe=X.indexOf(de+"=");fe!==-1&&(M=/^([^;]+)/.exec(X.slice(fe+de.length+1))[1])}catch{}return S.levels[M]===void 0&&(M=void 0),M}}function Pe(){if(!(typeof window===n||!G)){try{window.localStorage.removeItem(G)}catch{}try{window.document.cookie=encodeURIComponent(G)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function oe(M){var X=M;if(typeof X=="string"&&S.levels[X.toUpperCase()]!==void 0&&(X=S.levels[X.toUpperCase()]),typeof X=="number"&&X>=0&&X<=S.levels.SILENT)return X;throw new TypeError("log.setLevel() called with invalid level: "+M)}S.name=A,S.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},S.methodFactory=L||g,S.getLevel=function(){return U??D??k},S.setLevel=function(M,X){return U=oe(M),X!==!1&&ue(U),f.call(S)},S.setDefaultLevel=function(M){D=oe(M),ne()||S.setLevel(M,!1)},S.resetLevel=function(){U=null,Pe(),f.call(S)},S.enableAll=function(M){S.setLevel(S.levels.TRACE,M)},S.disableAll=function(M){S.setLevel(S.levels.SILENT,M)},S.rebuild=function(){if(l!==S&&(k=oe(l.getLevel())),f.call(S),l===S)for(var M in s)s[M].rebuild()},k=oe(l?l.getLevel():"WARN");var Y=ne();Y!=null&&(U=oe(Y)),f.call(S)}l=new v,l.getLogger=function(L){if(typeof L!="symbol"&&typeof L!="string"||L==="")throw new TypeError("You must supply a name when creating a logger.");var S=s[L];return S||(S=s[L]=new v(L,l.methodFactory)),S};var _=typeof window!==n?window.log:void 0;return l.noConflict=function(){return typeof window!==n&&window.log===l&&(window.log=_),l},l.getLoggers=function(){return s},l.default=l,l})}(Bn)),Bn.exports}var Tf=Ef();const Nn=_f(Tf),If={install(t,e){const n=e??{};Nn.setDefaultLevel(n.enableLogging?Nn.levels.DEBUG:Nn.levels.SILENT);const o=240;document.documentElement.style.setProperty("--nav-menu-width",`${o}px`);const i=r.ref(!0),s=r.ref(0),l=r.ref(!1),a=r.ref(!1),c=r.ref(""),d=r.ref(null),f=r.ref(0);let p=null;$r(d,v=>{p&&clearTimeout(p),p=setTimeout(()=>{const{width:_}=v[0].contentRect;r.nextTick(()=>{f.value=_})},50)}),t.provide(Rr,{navMenuWidth:o,isMenuOpened:i,ToggleMenu:()=>{i.value=!i.value},OpenMenu:()=>{i.value=!0},CloseMenu:()=>{i.value=!1},scrollY:s,pageTitle:c,isDarkMode:l,ToggleTheme:()=>qt.Toggle(),EnableDarkMode:()=>qt.EnableDarkMode(),EnableLightMode:()=>qt.EnableLightMode(),ClearStoredTheme:()=>qt.ClearStoredTheme(),LogoutAsync:async()=>{const v=Fi(),{oidc:_}=Sn();await v.ConfirmAsync("Deseja realmente sair da sua conta?")&&(Zi("Saindo..."),a.value=!0,await new Promise(L=>setTimeout(L,1e3)),_.logout({redirectUri:window.location.origin}).catch(()=>{a.value=!1,Xi()}))},Login:()=>{const{oidc:v}=Sn();v.login()},isLoggingOut:a,mainRef:d,mainWidth:f,isMainXs:r.computed(()=>f.value<=384),isMainSm:r.computed(()=>f.value>384),isMainMd:r.computed(()=>f.value>768),isMainLg:r.computed(()=>f.value>992),isMainXl:r.computed(()=>f.value>1280),isMain2Xl:r.computed(()=>f.value>1536),isMain3Xl:r.computed(()=>f.value>1920)}),new MutationObserver(()=>{l.value=document.documentElement.classList.contains("dark")}).observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),document.addEventListener("scroll",()=>{s.value=document.documentElement.scrollTop}),qt.SetInitialTheme()}},Af=Nn;class No extends Error{constructor(n=[]){const o=Array.isArray(n)?n:[n];super(o[0]);ee(this,"errors",[]);this.errors=o}}class Ki{constructor(e=null){ee(this,"errors",[]);ee(this,"_value",null);ee(this,"_httpStatusCode");this._value=e,this._httpStatusCode=200}get value(){return this._value}set value(e){this._value=e}get hasSuccess(){return!this.hasError}get hasError(){return this.errors.length>0}get httpStatusCode(){return this._httpStatusCode}set httpStatusCode(e){this._httpStatusCode=e}WithError(e){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 No(this.errors)}get firstError(){return this.hasSuccess?null:this.errors[0]}}class Wi{get IsVisible(){return pt.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(s=>{pt.fire({allowEscapeKey:!1,allowOutsideClick:!1,icon:n,title:i,html:`<div style="max-height: 50vh; overflow: auto">${Bo.sanitize(o)}</div>`}).then(()=>s(!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,Pf=()=>new Wi;window.addEventListener("error",function(t){return Mo(t.error)||console.error(t.error||t.message),t.preventDefault(),!1}),window.addEventListener("unhandledrejection",function(t){return Mo(t.reason)||console.error("Unhandled Rejection",t.reason),t.preventDefault(),!1});const Lf=t=>{t.config.errorHandler=(e,n,o)=>{Mo(e)||console.error("Vue Global Error Handler: ",{err:e,vm:n,info:o})}},Mo=t=>{try{if(t.httpStatusCode===401)return!0}catch{}return t instanceof No||t instanceof Ki?(Gi().AlertErrorAsync(t.errors),!0):!1},xf={class:"font-percentage"},qi="--font-size-increment",Of="tamanho-fonte",$f=We(r.defineComponent({__name:"FontSize",setup(t){const e=r.ref(!1),n=r.ref(0),o=()=>{n.value=jn(),e.value=!0},i=()=>{e.value=!1},s=()=>document.documentElement,l=()=>parseInt(getComputedStyle(s()).getPropertyValue(qi)||"1"),a=g=>{g<.5||g>1.6||(s().style.setProperty(qi,g.toString()),p.value=g)},c=()=>{a(p.value+.1)},d=()=>{a(p.value-.1)},f=()=>{a(1)},p=r.ref(1);return r.onBeforeMount(()=>{localStorage.removeItem(Of)}),r.onMounted(()=>{p.value=l()}),(g,v)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(Ue,{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:d}),r.createElementVNode("span",xf,r.toDisplayString(p.value.toLocaleString("pt-br",{style:"percent",maximumFractionDigits:0})),1),r.createElementVNode("div",{class:"icon add",onClick:c}),r.createElementVNode("span",{class:"redefinir",onClick:f}," 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"]]),Bf=r.defineComponent({__name:"ScrollToTop",setup(t){const{scrollY:e}=Gt(),n=r.computed(()=>e.value>800);function o(){document.documentElement.scrollTo(0,0)}return(i,s)=>(r.openBlock(),r.createElementBlock("button",{class:r.normalizeClass(["sf-scrollToTop",{"sf-scrollToTop-visible":n.value}]),onClick:o},null,2))}}),Nf={class:"nav-menu-header"},Mf={class:"nav-menu-inner-close"},Df={class:"main-content"},Rf={class:"page-title"},Uf={class:"action"},Vf={id:"content"},Hf={key:0,id:"logging-out"},jf={class:"info-fazenda"},Ff={class:"font-bold"},zf={class:"info-endereco text-muted"},Kf={class:"footer-right"},Wf=We(r.defineComponent({__name:"Main",props:{auth:{}},emits:["login"],setup(t,{emit:e}){const n=t,{navMenuWidth:o,isMenuOpened:i,pageTitle:s,scrollY:l,ToggleMenu:a,isDarkMode:c,ToggleTheme:d,CloseMenu:f,LogoutAsync:p,isLoggingOut:g,mainRef:v}=Gt(),_=r.ref(null),A=()=>{if(!_.value||!i.value)return!1;_.value.offsetWidth!==o&&f()};r.onMounted(()=>{gt.useRouter().afterEach(()=>{A()})});const L=e;return(S,k)=>(r.openBlock(),r.createElementBlock("main",{ref_key:"mainRef",ref:v,class:r.normalizeClass({disabled:r.unref(g),"nav-menu-visible":r.unref(i)})},[r.createElementVNode("aside",{id:"nav-menu",ref_key:"navMenuRef",ref:_,class:r.normalizeClass({"nav-menu-hidden":!r.unref(i)})},[r.createElementVNode("div",Nf,[k[1]||(k[1]=r.createElementVNode("span",null,"Menu",-1)),r.createElementVNode("div",Mf,[r.createVNode(Ue,{button:!0,icon:"close",onClick:r.unref(a)},null,8,["onClick"])])]),r.renderSlot(S.$slots,"nav-menu",{},void 0,!0)],2),r.createElementVNode("div",Df,[r.createElementVNode("div",{id:"top-bar",class:r.normalizeClass({"shadow-bottom":r.unref(l)>72})},[r.createVNode(Ue,{button:!0,icon:r.unref(i)?"menu_open":"menu",tooltip:"Menu",onClick:r.unref(a)},null,8,["icon","onClick"]),r.createElementVNode("div",Rf,r.toDisplayString(r.unref(g)?"Saindo...":r.unref(s)),1),k[2]||(k[2]=r.createElementVNode("span",{class:"sep"},null,-1)),r.createElementVNode("div",Uf,[r.createVNode(Ue,{button:!0,size:"sm",icon:r.unref(c)?"light_mode":"dark_mode",tooltip:r.unref(c)?"Modo claro":"Modo escuro",onClick:r.unref(d)},null,8,["icon","tooltip","onClick"]),r.createVNode($f),n.auth?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[n.auth.isAuthenticated?(r.openBlock(),r.createBlock(Ue,{key:0,button:!0,size:"sm",icon:"logout",tooltip:"Sair",onClick:r.unref(p)},null,8,["onClick"])):(r.openBlock(),r.createBlock(Ue,{key:1,button:!0,size:"sm",icon:"login",tooltip:"Entrar",onClick:k[0]||(k[0]=D=>L("login"))}))],64)):r.createCommentVNode("",!0)])],2),r.createElementVNode("div",Vf,[r.unref(g)?(r.openBlock(),r.createElementBlock("div",Hf,[r.createVNode(Ko)])):r.renderSlot(S.$slots,"content",{key:1},void 0,!0)])]),r.createElementVNode("footer",null,[k[5]||(k[5]=r.createElementVNode("div",{class:"logo-fazenda"},null,-1)),r.createElementVNode("div",jf,[r.createElementVNode("span",Ff,[r.renderSlot(S.$slots,"footer-nome-fazenda",{},()=>[k[3]||(k[3]=r.createTextVNode(" SECRETARIA MUNICIPAL DA FAZENDA "))],!0)]),r.createElementVNode("span",zf,[r.renderSlot(S.$slots,"footer-endereco-fazenda",{},()=>[k[4]||(k[4]=r.createTextVNode(" Rua Líbero Badaró, 190 - Centro - São Paulo - SP - CEP 01008-000 "))],!0)])]),r.createElementVNode("div",Kf,[r.renderSlot(S.$slots,"footer-right",{},void 0,!0)])]),r.createVNode(Bf)],2))}}),[["__scopeId","data-v-7170230f"]]),Gf=r.defineComponent({__name:"PageTitle",props:{title:{}},setup(t){const{pageTitle:e}=Gt(),n=t;return r.watchEffect(()=>{document.title=n.title,e.value=n.title}),(o,i)=>null}}),Et=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)"}}},qf={semantic:{disabled:{opacity:"1"},transitionDuration:"0",primary:{50:"var(--primary-color)",100:"var(--primary-color)",200:"var(--primary-color)",300:"var(--primary-color)",400:"var(--primary-color)",500:"var(--primary-color)",600:"var(--primary-color)",700:"var(--primary-color)",800:"var(--primary-color)",900:"var(--primary-color)",950:"var(--primary-color)"},colorScheme:{light:{...Yi},dark:{...Yi}}},components:{blockui:{root:{borderRadius:"0px"}},button:{root:{paddingX:"0.75rem",paddingY:"0.5rem",sm:{paddingX:"0.625rem",paddingY:"0.375rem"},lg:{paddingX:"0.875rem",paddingY:"0.575rem"},primary:{hoverBackground:"var(--primary-color) !important",hoverBorderColor:"var(--primary-color) !important"}},text:{secondary:{color:"var(--secondary-color) !important",hoverBackground:"var(--surface-200-color) !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:Et("light")}},dark:{root:{background:"var(--surface-300-color)",shadow:Et("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:Et("light")}},dark:{root:{background:"var(--surface-300-color)",shadow:Et("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:Et("light")}},dark:{root:{background:"var(--surface-200-color)",shadow:Et("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)"}}}};class lt{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 s=getComputedStyle(i).zIndex;return+s==+s?+s: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 lt.Mask(e.padStart(11,"0"),"###.###.###-##")}static MaskCnpj(e){return lt.Mask(e.padStart(14,"0"),"##.###.###/####-##")}static MaskCcm(e){return lt.Mask(e.padStart(8,"0"),"#.###.###-#")}static async DelayAsync(e){return new Promise(n=>setTimeout(n,e))}}class Yf{constructor(e){ee(this,"sub");ee(this,"username");ee(this,"name");ee(this,"email");ee(this,"roles");ee(this,"groups");ee(this,"userinfo");ee(this,"department");ee(this,"jobTitle");ee(this,"idp");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?lt.MaskCpf(this.username):this.username.length===14?lt.MaskCnpj(this.username):this.username:""}IsInRole(e){return this.roles.includes(e)}IsInGroup(e){return this.groups.includes(e)}SetIdp(){var n;const e=((n=this.userinfo)==null?void 0:n.identity_provider)??null;return(e==null?void 0:e.toLocaleLowerCase())==="gov.br"?"govbr":e!=null&&e.toLocaleLowerCase().startsWith("senhaweb")?"senhaweb":null}SetDepartment(){var e;return((e=this.userinfo)==null?void 0:e.department)??null}SetJobTitle(){var e;return((e=this.userinfo)==null?void 0:e.jobTitle)??null}}function Xf(){const t=r.ref("development");function e(c){t.value=c.toLocaleLowerCase()}const n=r.computed(()=>t.value==="development"),o=r.computed(()=>t.value==="pack"),i=r.computed(()=>t.value==="hml"),s=r.computed(()=>t.value==="production"),l=r.ref(null);function a(){l.value=null}return{environment:t,SetEnvironment:e,isDev:n,isPack:o,isHml:i,isProd:s,user:l,$reset:a}}const Zf=t=>{const e=new Set;function n(o){const{name:i,children:s}=o;if(i){if(e.has(i))throw new Error(["Erro na validação das rotas!",`Nome de rota duplicado: ${i}`].join(`
411
- `));e.add(i)}if(s&&Array.isArray(s))for(const l of s)n(l)}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 Jf{constructor(){ee(this,"current",null);ee(this,"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"),s=document.createElement("div");i.className="content",s.className="progress",i.appendChild(s),o.className="sf-toast",o.style.zIndex=lt.GetMaxZindex().toString(),o.appendChild(i),this.current=o,document.body.appendChild(o),o.addEventListener("transitionend",c=>{const d=c.propertyName==="opacity",f=c.target.classList.contains("visible");d&&!f&&(document.body.removeChild(o),this.current===o&&(this.current=null))});const l=[];Array.isArray(e.message)?l.push(...e.message):l.push(e.message);for(const c of l){const d=document.createElement("p");d.innerHTML=Bo.sanitize(c),i.appendChild(d)}const a=document.createElement("i");if(a.classList.add("icon","material-symbols-outlined"),a.innerText="close",a.addEventListener("click",()=>{this.Close()}),i.appendChild(a),getComputedStyle(o).bottom,getComputedStyle(o).top,o.classList.add("visible"),e.life){s.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 Qf=new Jf,em=()=>Qf;function Xi(){document.documentElement.removeAttribute("data-app-message"),document.documentElement.classList.add("app-mounted")}function Zi(t){typeof t=="string"&&document.documentElement.setAttribute("data-app-message",t),document.documentElement.classList.remove("app-mounted")}N.AppError=No,N.AppResult=Ki,N.BaseAppState=Xf,N.ConfigAuth=oc,N.EnsureUniqueRouteNames=Zf,N.RemovePreloader=Xi,N.RestorePreloader=Zi,N.SfButton=Fn,N.SfContent=Ol,N.SfDrawer=Go,N.SfHelpButton=xl,N.SfIcon=Ue,N.SfLoadingCircle=Wo,N.SfLogin=cc,N.SfMain=Wf,N.SfMessage=Ls,N.SfNavMenu=Ll,N.SfPageTitle=Gf,N.SfTabNavigation=Es,N.SfTooltip=zo,N.UseAlert=Gi,N.UseAlertService=Pf,N.UseAppInject=Gt,N.UseAuth=Sn,N.UseConfirm=Fi,N.UseConfirmService=Sf,N.UseSimpleToast=em,N.User=Yf,N.Utilities=lt,N._logger=Af,N.configSF=If,N.globalErrorHandler=Lf,N.themePreset=qf,Object.defineProperty(N,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 td(){const t=x.domCache.get(this),e=x.innerParams.get(this);if(!e){fi(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(),nd(this)}const nd=t=>{fi(t),delete t.params,delete A.keydownHandler,delete A.keydownTarget,delete A.currentInstance},fi=t=>{t.isAwaitingPromise()?(yo(x,t),x.awaitingPromise.set(t,!0)):(yo(Zt,t),yo(x,t))},yo=(t,e)=>{for(const n in t)t[n].delete(e)},mi=Object.freeze(Object.defineProperty({__proto__:null,_destroy:td,close:En,closeModal:En,closePopup:En,closeToast:En,disableButtons:Gu,disableInput:Yu,disableLoading:ri,enableButtons:Wu,enableInput:qu,getInput:Iu,getProgressSteps:Ju,handleAwaitingPromise:Jt,hideLoading:ri,isAwaitingPromise:ju,rejectPromise:Fu,resetValidationMessage:Zu,showValidationMessage:Xu,update:Qu},Symbol.toStringTag,{value:"Module"})),od=t=>{const e=x.innerParams.get(t);t.disableButtons(),e.input?pi(t,"confirm"):vo(t,!0)},rd=t=>{const e=x.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?pi(t,"deny"):bo(t,!1)},id=(t,e)=>{t.disableButtons(),e(ht.cancel)},pi=(t,e)=>{const n=x.innerParams.get(t);if(!n.input)return nt(`The "input" parameter is needed to be set when using returnInputValueOn${no(e)}`);const o=_u(t,n);n.inputValidator?sd(t,o,e):t.getInput().checkValidity()?e==="deny"?bo(t,o):vo(t,o):(t.enableButtons(),t.showValidationMessage(n.validationMessage))},sd=(t,e,n)=>{const o=x.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>zt(o.inputValidator(e,o.validationMessage))).then(s=>{t.enableButtons(),t.enableInput(),s?t.showValidationMessage(s):n==="deny"?bo(t,e):vo(t,e)})},bo=(t,e)=>{const n=x.innerParams.get(t||void 0);n.showLoaderOnDeny&&gt(Ke()),n.preDeny?(x.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>zt(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=>gi(t||void 0,i))):t.closePopup({isDenied:!0,value:e})},hi=(t,e)=>{t.closePopup({isConfirmed:!0,value:e})},gi=(t,e)=>{t.rejectPromise(e)},vo=(t,e)=>{const n=x.innerParams.get(t||void 0);n.showLoaderOnConfirm&&gt(),n.preConfirm?(t.resetValidationMessage(),x.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>zt(n.preConfirm(e,n.validationMessage))).then(i=>{he(wn())||i===!1?(t.hideLoading(),Jt(t)):hi(t,typeof i>"u"?e:i)}).catch(i=>gi(t||void 0,i))):hi(t,e)},ad=(t,e,n)=>{x.innerParams.get(t).toast?ld(t,e,n):(ud(e),dd(e),fd(t,e,n))},ld=(t,e,n)=>{e.popup.onclick=()=>{const o=x.innerParams.get(t);o&&(cd(o)||o.timer||o.input)||n(ht.close)}},cd=t=>t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton;let Pn=!1;const ud=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(Pn=!0)}}},dd=t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(Pn=!0)}}},fd=(t,e,n)=>{e.container.onclick=o=>{const i=x.innerParams.get(t);if(Pn){Pn=!1;return}o.target===e.container&&vn(i.allowOutsideClick)&&n(ht.backdrop)}},md=t=>typeof t=="object"&&t.jquery,yi=t=>t instanceof Element||md(t),pd=t=>{const e={};return typeof t[0]=="object"&&!yi(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,o)=>{const i=t[o];typeof i=="string"||yi(i)?e[n]=i:i!==void 0&&nt(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof i}`)}),e};function hd(...t){const e=this;return new e(...t)}function gd(t){class e extends this{_main(o,i){return super._main(o,Object.assign({},t,i))}}return e}const yd=()=>A.timeout&&A.timeout.getTimerLeft(),bi=()=>{if(A.timeout)return rc(),A.timeout.stop()},vi=()=>{if(A.timeout){const t=A.timeout.start();return uo(t),t}},bd=()=>{const t=A.timeout;return t&&(t.running?bi():vi())},vd=t=>{if(A.timeout){const e=A.timeout.increase(t);return uo(e,!0),e}},_d=()=>A.timeout&&A.timeout.isRunning();let _i=!1;const _o={};function wd(t="data-swal-template"){_o[t]=this,_i||(document.body.addEventListener("click",Sd),_i=!0)}const Sd=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}}},Cd=Object.freeze(Object.defineProperty({__proto__:null,argsToParams:pd,bindClickHandler:wd,clickCancel:$u,clickConfirm:ii,clickDeny:Ou,enableLoading:gt,fire:hd,getActions:Gt,getCancelButton:ot,getCloseButton:so,getConfirmButton:Ee,getContainer:J,getDenyButton:Ke,getFocusableElements:ao,getFooter:jr,getHtmlContainer:_n,getIcon:Wt,getImage:Rr,getInputLabel:Ql,getLoader:mt,getPopup:R,getTimerLeft:yd,getTimerProgressBar:Sn,getTitle:Mr,getValidationMessage:wn,increaseTimer:vd,isDeprecatedParameter:io,isLoading:tc,isTimerRunning:_d,isUpdatableParameter:Nr,isValidParameter:Br,isVisible:Au,mixin:gd,resumeTimer:vi,showLoading:gt,stopTimer:bi,toggleTimer:bd},Symbol.toStringTag,{value:"Module"}));let wo;class yt{constructor(...e){if(typeof window>"u")return;wo=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);x.promise.set(this,o)}_main(e,n={}){Zl(Object.assign({},n,e)),A.currentInstance&&(A.currentInstance._destroy(),lo()&&Jr()),A.currentInstance=this;const o=Ed(e,n);ou(o),Object.freeze(o),A.timeout&&(A.timeout.stop(),delete A.timeout),clearTimeout(A.restoreFocusTimeout);const i=Pd(this);return Zr(this,o),x.innerParams.set(this,o),kd(this,i,o)}then(e){return x.promise.get(this).then(e)}finally(e){return x.promise.get(this).finally(e)}}const kd=(t,e,n)=>new Promise((o,i)=>{const s=c=>{t.closePopup({isDismissed:!0,dismiss:c})};Zt.swalPromiseResolve.set(t,o),Zt.swalPromiseReject.set(t,i),e.confirmButton.onclick=()=>od(t),e.denyButton.onclick=()=>rd(t),e.cancelButton.onclick=()=>id(t,s),e.closeButton.onclick=()=>s(ht.close),ad(t,e,s),Lu(t,A,n,s),vu(t,n),pu(n),Td(A,n,s),Id(e,n),setTimeout(()=>{e.container.scrollTop=0})}),Ed=(t,e)=>{const n=Gc(t),o=Object.assign({},ft,e,n,t);return o.showClass=Object.assign({},ft.showClass,o.showClass),o.hideClass=Object.assign({},ft.hideClass,o.hideClass),o},Pd=t=>{const e={popup:R(),container:J(),actions:Gt(),confirmButton:Ee(),denyButton:Ke(),cancelButton:ot(),loader:mt(),closeButton:so(),validationMessage:wn(),progressSteps:Vr()};return x.domCache.set(t,e),e},Td=(t,e,n)=>{const o=Sn();ee(o),e.timer&&(t.timeout=new ru(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(Y(o),ye(o,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&uo(e.timer)})))},Id=(t,e)=>{if(!e.toast){if(!vn(e.allowEnterKey))return Od();Ad(t,e)||go(e,-1,1)}},Ad=(t,e)=>e.focusDeny&&he(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&he(t.cancelButton)?(t.cancelButton.focus(),!0):e.focusConfirm&&he(t.confirmButton)?(t.confirmButton.focus(),!0):!1,Od=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Object.assign(yt.prototype,mi),Object.assign(yt,Cd),Object.keys(mi).forEach(t=>{yt[t]=function(...e){if(wo)return wo[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:wi,setPrototypeOf:Si,isFrozen:$d,getPrototypeOf:Ld,getOwnPropertyDescriptor:xd}=Object;let{freeze:se,seal:be,create:Ci}=Object,{apply:So,construct:Co}=typeof Reflect<"u"&&Reflect;se||(se=function(e){return e}),be||(be=function(e){return e}),So||(So=function(e,n,o){return e.apply(n,o)}),Co||(Co=function(e,n){return new e(...n)});const Tn=le(Array.prototype.forEach),Bd=le(Array.prototype.lastIndexOf),ki=le(Array.prototype.pop),Qt=le(Array.prototype.push),Nd=le(Array.prototype.splice),In=le(String.prototype.toLowerCase),ko=le(String.prototype.toString),Ei=le(String.prototype.match),en=le(String.prototype.replace),Dd=le(String.prototype.indexOf),Md=le(String.prototype.trim),Pe=le(Object.prototype.hasOwnProperty),ae=le(RegExp.prototype.test),tn=Rd(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 So(t,e,o)}}function Rd(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return Co(t,n)}}function B(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:In;Si&&Si(t,null);let o=e.length;for(;o--;){let i=e[o];if(typeof i=="string"){const s=n(i);s!==i&&($d(e)||(e[o]=s),i=s)}t[i]=!0}return t}function Vd(t){for(let e=0;e<t.length;e++)Pe(t,e)||(t[e]=null);return t}function De(t){const e=Ci(null);for(const[n,o]of wi(t))Pe(t,n)&&(Array.isArray(o)?e[n]=Vd(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=xd(t,e);if(o){if(o.get)return le(o.get);if(typeof o.value=="function")return le(o.value)}t=Ld(t)}function n(){return null}return n}const Pi=se(["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"]),Eo=se(["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"]),Po=se(["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"]),jd=se(["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"]),To=se(["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"]),Hd=se(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ti=se(["#text"]),Ii=se(["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"]),Io=se(["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"]),Ai=se(["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=se(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Fd=be(/\{\{[\w\W]*|[\w\W]*\}\}/gm),zd=be(/<%[\w\W]*|[\w\W]*%>/gm),Ud=be(/\$\{[\w\W]*/gm),Kd=be(/^data-[\-\w.\u00B7-\uFFFF]+$/),Wd=be(/^aria-[\-\w]+$/),Oi=be(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Gd=be(/^(?:\w+script|data):/i),qd=be(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$i=be(/^html$/i),Yd=be(/^[a-z][.\w]*(-[.\w]+)+$/i);var Li=Object.freeze({__proto__:null,ARIA_ATTR:Wd,ATTR_WHITESPACE:qd,CUSTOM_ELEMENT:Yd,DATA_ATTR:Kd,DOCTYPE_NAME:$i,ERB_EXPR:zd,IS_ALLOWED_URI:Oi,IS_SCRIPT_OR_DATA:Gd,MUSTACHE_EXPR:Fd,TMPLIT_EXPR:Ud});const on={element:1,text:3,progressingInstruction:7,comment:8,document:9},Xd=function(){return typeof window>"u"?null:window},Zd=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 s="dompurify"+(o?"#"+o:"");try{return e.createPolicy(s,{createHTML(c){return c},createScriptURL(c){return c}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},xi=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Bi(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Xd();const e=P=>Bi(P);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:s,HTMLTemplateElement:c,Node:l,Element:a,NodeFilter:u,NamedNodeMap:f=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:m,DOMParser:p,trustedTypes:g}=t,_=a.prototype,w=nn(_,"cloneNode"),S=nn(_,"remove"),y=nn(_,"nextSibling"),I=nn(_,"childNodes"),k=nn(_,"parentNode");if(typeof c=="function"){const P=n.createElement("template");P.content&&P.content.ownerDocument&&(n=P.content.ownerDocument)}let b,E="";const{implementation:U,createNodeIterator:X,createDocumentFragment:ve,getElementsByTagName:te}=n,{importNode:_e}=o;let T=xi();e.isSupported=typeof wi=="function"&&typeof k=="function"&&U&&U.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:j,ERB_EXPR:ne,TMPLIT_EXPR:ce,DATA_ATTR:Te,ARIA_ATTR:qe,IS_SCRIPT_OR_DATA:Me,ATTR_WHITESPACE:Re,CUSTOM_ELEMENT:Ye}=Li;let{IS_ALLOWED_URI:we}=Li,V=null;const $e=B({},[...Pi,...Eo,...Po,...To,...Ti]);let K=null;const Ve=B({},[...Ii,...Io,...Ai,...An]);let F=Object.seal(Ci(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}})),Xe=null,rn=null,Ln=!0,sn=!0,xn=!1,Bn=!0,Ze=!1,vt=!0,je=!1,an=!1,ln=!1,Je=!1,_t=!1,wt=!1,Nn=!0,Dn=!1;const Lo="user-content-";let cn=!0,at=!1,St={},Ct=null;const Ki=B({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Wi=null;const Gi=B({},["audio","video","img","source","image","track"]);let xo=null;const qi=B({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Mn="http://www.w3.org/1998/Math/MathML",Rn="http://www.w3.org/2000/svg",He="http://www.w3.org/1999/xhtml";let kt=He,Bo=!1,No=null;const Lf=B({},[Mn,Rn,He],ko);let Vn=B({},["mi","mo","mn","ms","mtext"]),jn=B({},["annotation-xml"]);const xf=B({},["title","style","font","a","script"]);let un=null;const Bf=["application/xhtml+xml","text/html"],Nf="text/html";let G=null,Et=null;const Df=n.createElement("form"),Yi=function(d){return d instanceof RegExp||d instanceof Function},Do=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),un=Bf.indexOf(d.PARSER_MEDIA_TYPE)===-1?Nf:d.PARSER_MEDIA_TYPE,G=un==="application/xhtml+xml"?ko:In,V=Pe(d,"ALLOWED_TAGS")?B({},d.ALLOWED_TAGS,G):$e,K=Pe(d,"ALLOWED_ATTR")?B({},d.ALLOWED_ATTR,G):Ve,No=Pe(d,"ALLOWED_NAMESPACES")?B({},d.ALLOWED_NAMESPACES,ko):Lf,xo=Pe(d,"ADD_URI_SAFE_ATTR")?B(De(qi),d.ADD_URI_SAFE_ATTR,G):qi,Wi=Pe(d,"ADD_DATA_URI_TAGS")?B(De(Gi),d.ADD_DATA_URI_TAGS,G):Gi,Ct=Pe(d,"FORBID_CONTENTS")?B({},d.FORBID_CONTENTS,G):Ki,Xe=Pe(d,"FORBID_TAGS")?B({},d.FORBID_TAGS,G):De({}),rn=Pe(d,"FORBID_ATTR")?B({},d.FORBID_ATTR,G):De({}),St=Pe(d,"USE_PROFILES")?d.USE_PROFILES:!1,Ln=d.ALLOW_ARIA_ATTR!==!1,sn=d.ALLOW_DATA_ATTR!==!1,xn=d.ALLOW_UNKNOWN_PROTOCOLS||!1,Bn=d.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ze=d.SAFE_FOR_TEMPLATES||!1,vt=d.SAFE_FOR_XML!==!1,je=d.WHOLE_DOCUMENT||!1,Je=d.RETURN_DOM||!1,_t=d.RETURN_DOM_FRAGMENT||!1,wt=d.RETURN_TRUSTED_TYPE||!1,ln=d.FORCE_BODY||!1,Nn=d.SANITIZE_DOM!==!1,Dn=d.SANITIZE_NAMED_PROPS||!1,cn=d.KEEP_CONTENT!==!1,at=d.IN_PLACE||!1,we=d.ALLOWED_URI_REGEXP||Oi,kt=d.NAMESPACE||He,Vn=d.MATHML_TEXT_INTEGRATION_POINTS||Vn,jn=d.HTML_INTEGRATION_POINTS||jn,F=d.CUSTOM_ELEMENT_HANDLING||{},d.CUSTOM_ELEMENT_HANDLING&&Yi(d.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(F.tagNameCheck=d.CUSTOM_ELEMENT_HANDLING.tagNameCheck),d.CUSTOM_ELEMENT_HANDLING&&Yi(d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(F.attributeNameCheck=d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),d.CUSTOM_ELEMENT_HANDLING&&typeof d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(F.allowCustomizedBuiltInElements=d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ze&&(sn=!1),_t&&(Je=!0),St&&(V=B({},Ti),K=[],St.html===!0&&(B(V,Pi),B(K,Ii)),St.svg===!0&&(B(V,Eo),B(K,Io),B(K,An)),St.svgFilters===!0&&(B(V,Po),B(K,Io),B(K,An)),St.mathMl===!0&&(B(V,To),B(K,Ai),B(K,An))),d.ADD_TAGS&&(V===$e&&(V=De(V)),B(V,d.ADD_TAGS,G)),d.ADD_ATTR&&(K===Ve&&(K=De(K)),B(K,d.ADD_ATTR,G)),d.ADD_URI_SAFE_ATTR&&B(xo,d.ADD_URI_SAFE_ATTR,G),d.FORBID_CONTENTS&&(Ct===Ki&&(Ct=De(Ct)),B(Ct,d.FORBID_CONTENTS,G)),cn&&(V["#text"]=!0),je&&B(V,["html","head","body"]),V.table&&(B(V,["tbody"]),delete Xe.tbody),d.TRUSTED_TYPES_POLICY){if(typeof d.TRUSTED_TYPES_POLICY.createHTML!="function")throw tn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof d.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw tn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');b=d.TRUSTED_TYPES_POLICY,E=b.createHTML("")}else b===void 0&&(b=Zd(g,i)),b!==null&&typeof E=="string"&&(E=b.createHTML(""));se&&se(d),Et=d}},Xi=B({},[...Eo,...Po,...jd]),Zi=B({},[...To,...Hd]),Mf=function(d){let v=k(d);(!v||!v.tagName)&&(v={namespaceURI:kt,tagName:"template"});const C=In(d.tagName),z=In(v.tagName);return No[d.namespaceURI]?d.namespaceURI===Rn?v.namespaceURI===He?C==="svg":v.namespaceURI===Mn?C==="svg"&&(z==="annotation-xml"||Vn[z]):!!Xi[C]:d.namespaceURI===Mn?v.namespaceURI===He?C==="math":v.namespaceURI===Rn?C==="math"&&jn[z]:!!Zi[C]:d.namespaceURI===He?v.namespaceURI===Rn&&!jn[z]||v.namespaceURI===Mn&&!Vn[z]?!1:!Zi[C]&&(xf[C]||!Xi[C]):!!(un==="application/xhtml+xml"&&No[d.namespaceURI]):!1},Le=function(d){Qt(e.removed,{element:d});try{k(d).removeChild(d)}catch{S(d)}},Pt=function(d,v){try{Qt(e.removed,{attribute:v.getAttributeNode(d),from:v})}catch{Qt(e.removed,{attribute:null,from:v})}if(v.removeAttribute(d),d==="is")if(Je||_t)try{Le(v)}catch{}else try{v.setAttribute(d,"")}catch{}},Ji=function(d){let v=null,C=null;if(ln)d="<remove></remove>"+d;else{const W=Ei(d,/^[\r\n\t ]+/);C=W&&W[0]}un==="application/xhtml+xml"&&kt===He&&(d='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+d+"</body></html>");const z=b?b.createHTML(d):d;if(kt===He)try{v=new p().parseFromString(z,un)}catch{}if(!v||!v.documentElement){v=U.createDocument(kt,"template",null);try{v.documentElement.innerHTML=Bo?E:z}catch{}}const oe=v.body||v.documentElement;return d&&C&&oe.insertBefore(n.createTextNode(C),oe.childNodes[0]||null),kt===He?te.call(v,je?"html":"body")[0]:je?v.documentElement:oe},Qi=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)},Mo=function(d){return d instanceof m&&(typeof d.nodeName!="string"||typeof d.textContent!="string"||typeof d.removeChild!="function"||!(d.attributes instanceof f)||typeof d.removeAttribute!="function"||typeof d.setAttribute!="function"||typeof d.namespaceURI!="string"||typeof d.insertBefore!="function"||typeof d.hasChildNodes!="function")},es=function(d){return typeof l=="function"&&d instanceof l};function Fe(P,d,v){Tn(P,C=>{C.call(e,d,v,Et)})}const ts=function(d){let v=null;if(Fe(T.beforeSanitizeElements,d,null),Mo(d))return Le(d),!0;const C=G(d.nodeName);if(Fe(T.uponSanitizeElement,d,{tagName:C,allowedTags:V}),vt&&d.hasChildNodes()&&!es(d.firstElementChild)&&ae(/<[/\w!]/g,d.innerHTML)&&ae(/<[/\w!]/g,d.textContent)||d.nodeType===on.progressingInstruction||vt&&d.nodeType===on.comment&&ae(/<[/\w]/g,d.data))return Le(d),!0;if(!V[C]||Xe[C]){if(!Xe[C]&&os(C)&&(F.tagNameCheck instanceof RegExp&&ae(F.tagNameCheck,C)||F.tagNameCheck instanceof Function&&F.tagNameCheck(C)))return!1;if(cn&&!Ct[C]){const z=k(d)||d.parentNode,oe=I(d)||d.childNodes;if(oe&&z){const W=oe.length;for(let fe=W-1;fe>=0;--fe){const ze=w(oe[fe],!0);ze.__removalCount=(d.__removalCount||0)+1,z.insertBefore(ze,y(d))}}}return Le(d),!0}return d instanceof a&&!Mf(d)||(C==="noscript"||C==="noembed"||C==="noframes")&&ae(/<\/no(script|embed|frames)/i,d.innerHTML)?(Le(d),!0):(Ze&&d.nodeType===on.text&&(v=d.textContent,Tn([j,ne,ce],z=>{v=en(v,z," ")}),d.textContent!==v&&(Qt(e.removed,{element:d.cloneNode()}),d.textContent=v)),Fe(T.afterSanitizeElements,d,null),!1)},ns=function(d,v,C){if(Nn&&(v==="id"||v==="name")&&(C in n||C in Df))return!1;if(!(sn&&!rn[v]&&ae(Te,v))){if(!(Ln&&ae(qe,v))){if(!K[v]||rn[v]){if(!(os(d)&&(F.tagNameCheck instanceof RegExp&&ae(F.tagNameCheck,d)||F.tagNameCheck instanceof Function&&F.tagNameCheck(d))&&(F.attributeNameCheck instanceof RegExp&&ae(F.attributeNameCheck,v)||F.attributeNameCheck instanceof Function&&F.attributeNameCheck(v))||v==="is"&&F.allowCustomizedBuiltInElements&&(F.tagNameCheck instanceof RegExp&&ae(F.tagNameCheck,C)||F.tagNameCheck instanceof Function&&F.tagNameCheck(C))))return!1}else if(!xo[v]){if(!ae(we,en(C,Re,""))){if(!((v==="src"||v==="xlink:href"||v==="href")&&d!=="script"&&Dd(C,"data:")===0&&Wi[d])){if(!(xn&&!ae(Me,en(C,Re,"")))){if(C)return!1}}}}}}return!0},os=function(d){return d!=="annotation-xml"&&Ei(d,Ye)},rs=function(d){Fe(T.beforeSanitizeAttributes,d,null);const{attributes:v}=d;if(!v||Mo(d))return;const C={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:K,forceKeepAttr:void 0};let z=v.length;for(;z--;){const oe=v[z],{name:W,namespaceURI:fe,value:ze}=oe,dn=G(W),Ro=ze;let re=W==="value"?Ro:Md(Ro);if(C.attrName=dn,C.attrValue=re,C.keepAttr=!0,C.forceKeepAttr=void 0,Fe(T.uponSanitizeAttribute,d,C),re=C.attrValue,Dn&&(dn==="id"||dn==="name")&&(Pt(W,d),re=Lo+re),vt&&ae(/((--!?|])>)|<\/(style|title)/i,re)){Pt(W,d);continue}if(C.forceKeepAttr)continue;if(!C.keepAttr){Pt(W,d);continue}if(!Bn&&ae(/\/>/i,re)){Pt(W,d);continue}Ze&&Tn([j,ne,ce],ss=>{re=en(re,ss," ")});const is=G(d.nodeName);if(!ns(is,dn,re)){Pt(W,d);continue}if(b&&typeof g=="object"&&typeof g.getAttributeType=="function"&&!fe)switch(g.getAttributeType(is,dn)){case"TrustedHTML":{re=b.createHTML(re);break}case"TrustedScriptURL":{re=b.createScriptURL(re);break}}if(re!==Ro)try{fe?d.setAttributeNS(fe,W,re):d.setAttribute(W,re),Mo(d)?Le(d):ki(e.removed)}catch{Pt(W,d)}}Fe(T.afterSanitizeAttributes,d,null)},Rf=function P(d){let v=null;const C=Qi(d);for(Fe(T.beforeSanitizeShadowDOM,d,null);v=C.nextNode();)Fe(T.uponSanitizeShadowNode,v,null),ts(v),rs(v),v.content instanceof s&&P(v.content);Fe(T.afterSanitizeShadowDOM,d,null)};return e.sanitize=function(P){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},v=null,C=null,z=null,oe=null;if(Bo=!P,Bo&&(P="<!-->"),typeof P!="string"&&!es(P))if(typeof P.toString=="function"){if(P=P.toString(),typeof P!="string")throw tn("dirty is not a string, aborting")}else throw tn("toString is not a function");if(!e.isSupported)return P;if(an||Do(d),e.removed=[],typeof P=="string"&&(at=!1),at){if(P.nodeName){const ze=G(P.nodeName);if(!V[ze]||Xe[ze])throw tn("root node is forbidden and cannot be sanitized in-place")}}else if(P instanceof l)v=Ji("<!---->"),C=v.ownerDocument.importNode(P,!0),C.nodeType===on.element&&C.nodeName==="BODY"||C.nodeName==="HTML"?v=C:v.appendChild(C);else{if(!Je&&!Ze&&!je&&P.indexOf("<")===-1)return b&&wt?b.createHTML(P):P;if(v=Ji(P),!v)return Je?null:wt?E:""}v&&ln&&Le(v.firstChild);const W=Qi(at?P:v);for(;z=W.nextNode();)ts(z),rs(z),z.content instanceof s&&Rf(z.content);if(at)return P;if(Je){if(_t)for(oe=ve.call(v.ownerDocument);v.firstChild;)oe.appendChild(v.firstChild);else oe=v;return(K.shadowroot||K.shadowrootmode)&&(oe=_e.call(o,oe,!0)),oe}let fe=je?v.outerHTML:v.innerHTML;return je&&V["!doctype"]&&v.ownerDocument&&v.ownerDocument.doctype&&v.ownerDocument.doctype.name&&ae($i,v.ownerDocument.doctype.name)&&(fe="<!DOCTYPE "+v.ownerDocument.doctype.name+`>
423
+ `+fe),Ze&&Tn([j,ne,ce],ze=>{fe=en(fe,ze," ")}),b&&wt?b.createHTML(fe):fe},e.setConfig=function(){let P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Do(P),an=!0},e.clearConfig=function(){Et=null,an=!1},e.isValidAttribute=function(P,d,v){Et||Do({});const C=G(P),z=G(d);return ns(C,z,v)},e.addHook=function(P,d){typeof d=="function"&&Qt(T[P],d)},e.removeHook=function(P,d){if(d!==void 0){const v=Bd(T[P],d);return v===-1?void 0:Nd(T[P],v,1)[0]}return ki(T[P])},e.removeHooks=function(P){T[P]=[]},e.removeAllHooks=function(){T=xi()},e}var Ao=Bi();class Ni{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:Ao.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 Di=()=>new Ni,Jd=()=>new Ni;function Qd(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var On={exports:{}},ef=On.exports,Mi;function tf(){return Mi||(Mi=1,function(t){(function(e,n){t.exports?t.exports=n():e.log=n()})(ef,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"],s={},c=null;function l(w,S){var y=w[S];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 a(){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?a:console[w]!==void 0?l(console,w):console.log!==void 0?l(console,"log"):e}function f(){for(var w=this.getLevel(),S=0;S<i.length;S++){var y=i[S];this[y]=S<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 m(w){return function(){typeof console!==n&&(f.call(this),this[w].apply(this,arguments))}}function p(w,S,y){return u(w)||m.apply(this,arguments)}function g(w,S){var y=this,I,k,b,E="loglevel";typeof w=="string"?E+=":"+w:typeof w=="symbol"&&(E=void 0);function U(T){var j=(i[T]||"silent").toUpperCase();if(!(typeof window===n||!E)){try{window.localStorage[E]=j;return}catch{}try{window.document.cookie=encodeURIComponent(E)+"="+j+";"}catch{}}}function X(){var T;if(!(typeof window===n||!E)){try{T=window.localStorage[E]}catch{}if(typeof T===n)try{var j=window.document.cookie,ne=encodeURIComponent(E),ce=j.indexOf(ne+"=");ce!==-1&&(T=/^([^;]+)/.exec(j.slice(ce+ne.length+1))[1])}catch{}return y.levels[T]===void 0&&(T=void 0),T}}function ve(){if(!(typeof window===n||!E)){try{window.localStorage.removeItem(E)}catch{}try{window.document.cookie=encodeURIComponent(E)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function te(T){var j=T;if(typeof j=="string"&&y.levels[j.toUpperCase()]!==void 0&&(j=y.levels[j.toUpperCase()]),typeof j=="number"&&j>=0&&j<=y.levels.SILENT)return j;throw new TypeError("log.setLevel() called with invalid level: "+T)}y.name=w,y.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},y.methodFactory=S||p,y.getLevel=function(){return b??k??I},y.setLevel=function(T,j){return b=te(T),j!==!1&&U(b),f.call(y)},y.setDefaultLevel=function(T){k=te(T),X()||y.setLevel(T,!1)},y.resetLevel=function(){b=null,ve(),f.call(y)},y.enableAll=function(T){y.setLevel(y.levels.TRACE,T)},y.disableAll=function(T){y.setLevel(y.levels.SILENT,T)},y.rebuild=function(){if(c!==y&&(I=te(c.getLevel())),f.call(y),c===y)for(var T in s)s[T].rebuild()},I=te(c?c.getLevel():"WARN");var _e=X();_e!=null&&(b=te(_e)),f.call(y)}c=new g,c.getLogger=function(S){if(typeof S!="symbol"&&typeof S!="string"||S==="")throw new TypeError("You must supply a name when creating a logger.");var y=s[S];return y||(y=s[S]=new g(S,c.methodFactory)),y};var _=typeof window!==n?window.log:void 0;return c.noConflict=function(){return typeof window!==n&&window.log===c&&(window.log=_),c},c.getLoggers=function(){return s},c.default=c,c})}(On)),On.exports}var nf=tf();const $n=Qd(nf),of=(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),s=r.ref(!1),c=r.ref(!1),l=r.ref(""),a=r.ref(null),u=r.ref(0);t.provide($r,{navMenuWidth:n,isMenuOpened:o,ToggleMenu:()=>{o.value=!o.value},OpenMenu:()=>{o.value=!0},CloseMenu:()=>{o.value=!1},scrollY:i,pageTitle:l,isDarkMode:s,ToggleTheme:()=>Ft.Toggle(),EnableDarkMode:()=>Ft.EnableDarkMode(),EnableLightMode:()=>Ft.EnableLightMode(),ClearStoredTheme:()=>Ft.ClearStoredTheme(),LogoutAsync:async()=>{const m=Di(),{oidc:p}=Hn.UseAuth();await m.ConfirmAsync("Deseja realmente sair da sua conta?")&&(Ui("Saindo..."),c.value=!0,await new Promise(_=>setTimeout(_,1e3)),p.logout({redirectUri:window.location.origin}).catch(()=>{c.value=!1,zi()}))},Login:()=>{const{oidc:m}=Hn.UseAuth();m.login()},isLoggingOut:c,mainRef:a,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(()=>{s.value=document.documentElement.classList.contains("dark")}).observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),document.addEventListener("scroll",()=>{i.value=document.documentElement.scrollTop}),Ft.SetInitialTheme()},rf=$n;class Oo extends Error{constructor(e=[]){const n=Array.isArray(e)?e:[e];super(n[0]),this.errors=n}errors=[]}class Ri{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.hasError}get hasError(){return this.errors.length>0}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 Oo(this.errors)}get firstError(){return this.hasSuccess?null:this.errors[0]}}class Vi{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(s=>{st.fire({allowEscapeKey:!1,allowOutsideClick:!1,icon:n,title:i,html:`<div style="max-height: 50vh; overflow: auto">${Ao.sanitize(o)}</div>`}).then(()=>s(!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 ji=()=>new Vi,sf=()=>new Vi;window.addEventListener("error",function(t){return $o(t.error)||console.error(t.error||t.message),t.preventDefault(),!1}),window.addEventListener("unhandledrejection",function(t){return $o(t.reason)||console.error("Unhandled Rejection",t.reason),t.preventDefault(),!1});const af=t=>{t.config.errorHandler=(e,n,o)=>{$o(e)||console.error("Vue Global Error Handler: ",{err:e,vm:n,info:o})}},$o=t=>{if(!t)return!0;try{if(t.httpStatusCode===401)return!0}catch{}return t instanceof Oo||t instanceof Ri?(ji().AlertErrorAsync(t.errors),!0):!1},lf={class:"font-percentage"},Hi="--font-size-increment",cf="tamanho-fonte",uf=xe(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},s=()=>document.documentElement,c=()=>parseInt(getComputedStyle(s()).getPropertyValue(Hi)||"1"),l=p=>{p<.5||p>1.6||(s().style.setProperty(Hi,p.toString()),m.value=p)},a=()=>{l(m.value+.1)},u=()=>{l(m.value-.1)},f=()=>{l(1)},m=r.ref(1);return r.onBeforeMount(()=>{localStorage.removeItem(cf)}),r.onMounted(()=>{m.value=c()}),(p,g)=>(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",lf,r.toDisplayString(m.value.toLocaleString("pt-br",{style:"percent",maximumFractionDigits:0})),1),r.createElementVNode("div",{class:"icon add",onClick:a}),r.createElementVNode("span",{class:"redefinir",onClick:f}," 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"]]),df=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,s)=>(r.openBlock(),r.createElementBlock("button",{class:r.normalizeClass(["sf-scrollToTop",{"sf-scrollToTop-visible":n.value}]),onClick:o},null,2))}}),ff={class:"nav-menu-header"},mf={class:"nav-menu-inner-close"},pf={class:"main-content"},hf={class:"page-title"},gf={class:"action"},yf={id:"content"},bf={key:0,id:"logging-out"},vf={class:"info-fazenda"},_f={class:"font-bold"},wf={class:"info-endereco text-muted"},Sf={class:"footer-right"},Cf=xe(r.defineComponent({__name:"Main",props:{auth:{}},emits:["login"],setup(t,{emit:e}){const n=t,{navMenuWidth:o,isMenuOpened:i,pageTitle:s,scrollY:c,ToggleMenu:l,isDarkMode:a,ToggleTheme:u,CloseMenu:f,LogoutAsync:m,isLoggingOut:p,mainRef:g,mainWidth:_}=Ht(),w=r.ref(null),S=()=>{if(!w.value||!i.value)return!1;w.value.offsetWidth!==o&&f()};r.onMounted(()=>{if(as.useRouter().afterEach(()=>{S()}),g.value){let k=null;Or(g,b=>{r.nextTick(()=>{k&&clearTimeout(k),k=setTimeout(()=>{_.value=b[0].contentRect.width},10)}),_.value=b[0].contentRect.width}),_.value=g.value.clientWidth}});const y=e;return(I,k)=>(r.openBlock(),r.createElementBlock("main",{ref_key:"mainRef",ref:g,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",ff,[k[1]||(k[1]=r.createElementVNode("span",null,"Menu",-1)),r.createElementVNode("div",mf,[r.createVNode(Ie,{button:!0,icon:"close",onClick:r.unref(l)},null,8,["onClick"])])]),r.renderSlot(I.$slots,"nav-menu",{},void 0,!0)],2),r.createElementVNode("div",pf,[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",hf,r.toDisplayString(r.unref(p)?"Saindo...":r.unref(s)),1),k[2]||(k[2]=r.createElementVNode("span",{class:"sep"},null,-1)),r.createElementVNode("div",gf,[r.createVNode(Ie,{button:!0,size:"sm",icon:r.unref(a)?"light_mode":"dark_mode",tooltip:r.unref(a)?"Modo claro":"Modo escuro",onClick:r.unref(u)},null,8,["icon","tooltip","onClick"]),r.createVNode(uf),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(m)},null,8,["onClick"])):(r.openBlock(),r.createBlock(Ie,{key:1,button:!0,size:"sm",icon:"login",tooltip:"Entrar",onClick:k[0]||(k[0]=b=>y("login"))}))],64)):r.createCommentVNode("",!0)])],2),r.createElementVNode("div",yf,[r.unref(p)?(r.openBlock(),r.createElementBlock("div",bf,[r.createVNode(jo)])):r.renderSlot(I.$slots,"content",{key:1},void 0,!0)])]),r.createElementVNode("footer",null,[k[5]||(k[5]=r.createElementVNode("div",{class:"logo-fazenda"},null,-1)),r.createElementVNode("div",vf,[r.createElementVNode("span",_f,[r.renderSlot(I.$slots,"footer-nome-fazenda",{},()=>[k[3]||(k[3]=r.createTextVNode(" SECRETARIA MUNICIPAL DA FAZENDA "))],!0)]),r.createElementVNode("span",wf,[r.renderSlot(I.$slots,"footer-endereco-fazenda",{},()=>[k[4]||(k[4]=r.createTextVNode(" Rua Líbero Badaró, 190 - Centro - São Paulo - SP - CEP 01008-000 "))],!0)])]),r.createElementVNode("div",Sf,[r.renderSlot(I.$slots,"footer-right",{},void 0,!0)])]),r.createVNode(df)],2))}}),[["__scopeId","data-v-5108e4ac"]]),kf=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}}),bt=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);`},Fi={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)"}}},Ef={semantic:{disabled:{opacity:"1"},transitionDuration:"0",primary:{50:"var(--primary-color)",100:"var(--primary-color)",200:"var(--primary-color)",300:"var(--primary-color)",400:"var(--primary-color)",500:"var(--primary-color)",600:"var(--primary-color)",700:"var(--primary-color)",800:"var(--primary-color)",900:"var(--primary-color)",950:"var(--primary-color)"},colorScheme:{light:{...Fi},dark:{...Fi}}},components:{blockui:{root:{borderRadius:"0px"}},button:{root:{paddingX:"0.75rem",paddingY:"0.5rem",sm:{paddingX:"0.625rem",paddingY:"0.375rem"},lg:{paddingX:"0.875rem",paddingY:"0.575rem"},primary:{hoverBackground:"var(--primary-color) !important",hoverBorderColor:"var(--primary-color) !important"}},text:{secondary:{color:"var(--secondary-color) !important",hoverBackground:"var(--surface-200-color) !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:bt("light")}},dark:{root:{background:"var(--surface-300-color)",shadow:bt("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:bt("light")}},dark:{root:{background:"var(--surface-300-color)",shadow:bt("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:bt("light")}},dark:{root:{background:"var(--surface-200-color)",shadow:bt("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)"}}}};class Ge{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 s=getComputedStyle(i).zIndex;return+s==+s?+s: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 Ge.Mask(e.padStart(11,"0"),"###.###.###-##")}static MaskCnpj(e){return Ge.Mask(e.padStart(14,"0"),"##.###.###/####-##")}static MaskCcm(e){return Ge.Mask(e.padStart(8,"0"),"#.###.###-#")}static async DelayAsync(e){return new Promise(n=>setTimeout(n,e))}}class Pf{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?Ge.MaskCpf(this.username):this.username.length===14?Ge.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 Tf(){const t=r.ref("development");function e(a){t.value=a.toLocaleLowerCase()}const n=r.computed(()=>t.value==="development"),o=r.computed(()=>t.value==="pack"),i=r.computed(()=>t.value==="hml"),s=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:s,user:c,$reset:l}}const If=t=>{const e=new Set;function n(o){const{name:i,children:s}=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(s&&Array.isArray(s))for(const c of s)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 Af{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"),s=document.createElement("div");i.className="content",s.className="progress",i.appendChild(s),o.className="sf-toast",o.style.zIndex=Ge.GetMaxZindex().toString(),o.appendChild(i),this.current=o,document.body.appendChild(o),o.addEventListener("transitionend",a=>{const u=a.propertyName==="opacity",f=a.target.classList.contains("visible");u&&!f&&(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 a of c){const u=document.createElement("p");u.innerHTML=Ao.sanitize(a),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){s.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 Of=new Af,$f=()=>Of;function zi(){document.documentElement.removeAttribute("data-app-message"),document.documentElement.classList.add("app-mounted")}function Ui(t){typeof t=="string"&&document.documentElement.setAttribute("data-app-message",t),document.documentElement.classList.remove("app-mounted")}L.AppError=Oo,L.AppResult=Ri,L.BaseAppState=Tf,L.EnsureUniqueRouteNames=If,L.RemovePreloader=zi,L.RestorePreloader=Ui,L.SfButton=zn,L.SfContent=Pl,L.SfDrawer=Fo,L.SfHelpButton=El,L.SfIcon=Ie,L.SfLoadingCircle=Ho,L.SfLogin=jl,L.SfMain=Cf,L.SfMessage=Ss,L.SfNavMenu=kl,L.SfPageTitle=kf,L.SfTabNavigation=ys,L.SfTooltip=Vo,L.UseAlert=ji,L.UseAlertService=sf,L.UseAppInject=Ht,L.UseConfirm=Di,L.UseConfirmService=Jd,L.UseSimpleToast=$f,L.User=Pf,L.Utilities=Ge,L._logger=rf,L.configSF=of,L.globalErrorHandler=af,L.themePreset=Ef,Object.defineProperty(L,Symbol.toStringTag,{value:"Module"})});
412
425
  //# sourceMappingURL=sf.prefeiturasp.vuecomponents.umd.cjs.map